"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[8754],{84655:function(e,t,n){n.d(t,{W:function(){return o}});var a=n(858),i=n(44898),r=n(83776),o={cached:{},clearCached:function(e){console.log(o.cached),Object.keys(o.cached).filter((function(t){return t.startsWith(e)})).forEach((function(e){console.log(e),o.cached[e]=void 0}))},withCached:function(){var e=(0,a.A)((function(e,t){var n,a,c;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if("waitingTheFirstResponse"===o.cached[e])return[2,new Promise((function(t){var n=(new Date).getTime(),a=setInterval((function(){(new Date).getTime()-n>3e3&&clearInterval(a),"object"===typeof o.cached[e]&&(t(o.cached[e]),clearInterval(a))}),100)}))];if("object"===typeof o.cached[e])return[2,o.cached[e]];o.cached[e]="waitingTheFirstResponse",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,t()];case 2:return n=r.sent(),o.cached[e]=n,setTimeout((function(){o.cached[e]=void 0}),18e5),[2,n];case 3:return a=r.sent(),o.cached[e]=void 0,c=(0,i.A)(a,Error)?a:new Error(String(a)),[2,Promise.reject(c)];case 4:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}()}},48894:function(e,t,n){n.d(t,{F:function(){return m}});var a=n(858),i=n(53513),r=n(53455),o=n(83776),c=n(84886),l=n(94886),s=n.n(l),d=n(13306),u=n(40959),p=s().create({baseURL:"".concat(u.Yif,"api")});p.interceptors.request.use(c.HH,c.DV),p.interceptors.response.use(c.U1,c.DV);var f=function(){var e=(0,a.A)((function(e){var t,n,a,c,l,s,u,f,m,g,h,v,y,_;return(0,o.__generator)(this,(function(o){return t=e.source_type,n=void 0===t?d.Y1.VACCINATION:t,a=e.widget_type,c=void 0===a?d.xO.STANDALONE_CTA_BUTTON:a,l=e.article_id,s=void 0===l?"":l,u=e.article_name,f=void 0===u?"NA":u,m=e.category_id,g=void 0===m?"":m,h=e.category_name,v=void 0===h?"NA":h,y=e.area_code,_=(0,r.A)(e,["source_type","widget_type","article_id","article_name","category_id","category_name","area_code"]),[2,p.post("/collection/cta-submit",(0,i.A)({source_type:n,widget_type:c,article_id:s,article_name:f,category_id:g,category_name:v,area_code:(null===y||void 0===y?void 0:y.includes("+"))?y:"+".concat(y)},_)).then((function(e){return 200===e.status}))]}))}));return function(t){return e.apply(this,arguments)}}(),m={collectionSubmitCTA:f}},14265:function(e,t,n){n.d(t,{L:function(){return o},V:function(){return r}});var a,i=n(38971),r={vaccine:"Vaccination",vaccine_package:"Vaccination Package",screener:"Health Screener",ivf:"IVF",egg_freezing:"Egg Freezing",weight_loss:"Weight Loss"},o=(a={vaccine:r.vaccine},(0,i.A)(a,"vaccine-package",r.vaccine_package),(0,i.A)(a,"screener",r.screener),(0,i.A)(a,"ivf",r.ivf),(0,i.A)(a,"egg-freezing",r.egg_freezing),(0,i.A)(a,"weight_loss",r.weight_loss),a)},20394:function(e,t,n){n.d(t,{Y:function(){return N}});var a,i=n(38971),r=n(2445),o=n(73),c=n(35291),l=n(85322),s=n(22067),d=n(26142),u=n(2763),p=n(48085),f=n(36814),m=n(94858),g=n(88491),h=n(73419),v=n(6442),y=n(12034),_=(a={},(0,i.A)(a,u.L.Vietnam,{label:"Zalo",icon:s.C.getAssetPath("zalo-mini.png")}),(0,i.A)(a,u.L.Malaysia,{label:"WhatsApp",icon:s.C.getAssetPath("whatsapp.svg")}),a),x="CustomerSupport",b={root:{borderColor:"".concat(c.w.colors.gray200," !important")},label:{color:c.w.colors.gray700,fontSize:(0,p.D)(13),fontWeight:600,lineHeight:(0,p.D)(20),letterSpacing:(0,p.D)(-.3)}},N=function(e){var t=e.className,n=e.style,a=(0,g.d)().isMobile,i=(0,v.A)().formatMessage,c=(0,h.$)(),u=c.locale,p=c.push,N=(0,y.ZN)(),w=N.isOpenPopupCollection,Y=N.setIsOpenPopupCollection,k=N.onSubmitPopupCollection,A=o.Kt[u]||"",C=o.dm[u]||"",P=(null===_||void 0===_?void 0:_[u])||{},D=P.icon,M=P.label;return(0,r.Y)(r.FK,{children:(0,r.FD)(f.a,{className:(0,m.A)(x,"pt-6 pb-7 px-4 bg-white lg:pb-6 lg:rounded-b-2xl",t),style:n,children:[(0,r.Y)("h2",{className:"".concat(x,"__title text-[17px] leading-6 tracking-[-0.4px] text-dark font-semibold mb-4"),children:i({id:"vaccination.payment.customer_support_title",defaultMessage:"Customer Support"})}),(0,r.Y)("p",{className:"".concat(x,"__desc text-[13px] leading-5 tracking-[-0.3px] text-gray700 mb-4 lg:mb-5"),children:i({id:"vaccination.payment.customer_support_desc",defaultMessage:"For any questions or concerns regarding your booking, appointment scheduling, or cancellations, please contact the HelloBacsi customer care team via Zalo or Facebook Messenger."})}),(0,r.FD)("div",{className:"".concat(x,"__footer flex gap-2"),children:[!!A&&(0,r.Y)(d.B,{"data-testid":"customer_support_button_1",variant:"tertiary",size:"lg",className:"".concat(x,"__button_1 flex-1 min-w-0"),onClick:function(){return p(A)},styles:b,leftIcon:(0,r.Y)("img",{src:s.C.getAssetPath("messenger.png"),className:"w-[23px] h-[23px]"}),children:"Messenger"}),!!D&&!!M&&(0,r.Y)(d.B,{"data-testid":"customer_support_button_2",variant:"tertiary",size:"lg",className:"".concat(x,"__button_2 flex-1 min-w-0"),onClick:function(){"Zalo"!==M?p(C):Y(!0)},styles:b,leftIcon:(0,r.Y)("img",{src:D,className:"w-[23px] h-[23px] rounded-md"}),children:M})]}),(0,r.Y)(l.P,{onOpenChange:Y,isOpen:w,isMobile:a,onSubmit:k})]})})}},60785:function(e,t,n){n.d(t,{F:function(){return p}});var a=n(2445),i=n(40141),r=n(29975),o=n(36814),c=n(32485),l=n.n(c),s=n(73419),d=n(32876),u=n.n(d),p=function(e){var t,n=e.customSize,o=(0,s.$)().locale,c=null===(t=r.L[o])||void 0===t?void 0:t.LOGO_TYPE;return(0,a.Y)(u(),{href:"/",children:(0,a.Y)("a",{href:"/",className:"block text-[0px]",children:(0,a.Y)(i.L,{customSize:n,type:c})})})};t.A=function(e){var t=e.className,n=e.customSize;return(0,a.Y)(o.a,{className:l()("p-4 sticky top-0 bg-white z-10",t),children:(0,a.Y)(p,{customSize:n})})}},86706:function(e,t,n){n.d(t,{T:function(){return l}});var a=n(73884),i=n(84091),r=n(73419),o=n(6442),c=n(42280),l=function(){var e=(0,r.$)().locale,t=(0,o.A)().formatMessage,n=(0,c.Jf)(),l=n.vaccinationDetail,s=n.computedPrice,d=(l||{}).price_unit,u=void 0===d?"":d,p=(0,a.useCallback)((function(n,a,r){return"%"===n&&a?"".concat(r,"%"):a?(0,i.nd)(t,(0,i.$g)(a,e),u):""}),[u,e]),f=(0,a.useMemo)((function(){return(null===s||void 0===s?void 0:s.show_delivery_fee)?(0,i.nd)(t,(0,i.$g)(s.delivery_fee,e),s.delivery_fee_currency):""}),[s.delivery_fee,s.delivery_fee_currency,e]);return l?{displayTotalPrice:(0,i.nd)(t,(0,i.$g)(s.final_price,e),u),displayShippingFee:f,displayPriceWithUnit:(0,i.nd)(t,(0,i.$g)(s.original_price,e),u),displayDiscountPrice:s.voucher_discount_value+s.referral_discount_value>0?(0,i.nd)(t,(0,i.$g)(s.voucher_discount_value+s.referral_discount_value,e),u):"",displayDiscountReferral:(0,i.nd)(t,(0,i.$g)(s.referral_discount_value,e),u),displayTaxPrice:p(s.tax_unit,s.tax_computed,s.tax_amount),displayPricePayTenPercentage:(0,i.nd)(t,(0,i.$g)(Math.floor(.1*s.final_price)),u),displayPriceRemaining:(0,i.nd)(t,(0,i.$g)(s.final_price-Math.floor(.1*s.final_price)),u),getDisplayTaxPrice:p}:{displayTotalPrice:"",displayShippingFee:"",displayPriceWithUnit:"",displayDiscountPrice:"",displayDiscountReferral:"",displayTaxPrice:"",displayPricePayTenPercentage:"",displayPriceRemaining:"",getDisplayTaxPrice:p}}},67111:function(e,t,n){n.d(t,{Ai:function(){return S},Ay:function(){return T},ze:function(){return I}});var a=n(40568),i=n(2445),r=n(73884),o=n(36814),c=n(51387),l=n(48085),s=n(84655),d=n(59850),u=n(84091),p=n(73419),f=n(6442),m=n(86706),g=n(42280),h=n(53513),v=n(53455),y=n(35291),_=n(2624),x=n(1657),b=n(94858),N=n(73827),w=n(30686),Y=n(95204),k=function(e){var t=e.collapsed,n=void 0===t||t,a=e.content,r=e.className,o=e.style,c=(0,f.A)().formatMessage,l=(null===a||void 0===a?void 0:a.split("\n").filter(Boolean))||[];if(!l.length)return null;if(1===(null===l||void 0===l?void 0:l.length))return(0,i.Y)("p",{className:(0,b.A)(r,"payment__listItemDescription text-[13px] leading-5 tracking-[-0.3px] text-gray700 [&>b]:text-green600"),style:o,dangerouslySetInnerHTML:{__html:l[0]}});var s=c({id:"vaccination.payment.offers_number",defaultMessage:"{number} offers"},{number:l.length});return(0,i.FD)("div",{className:(0,b.A)(r,"payment__listItemDescription text-[13px] leading-5 tracking-[-0.3px] text-gray700"),style:o,children:[n&&(0,i.Y)("span",{className:"text-green600",children:s}),!n&&(0,i.Y)("ul",{className:"payment__listItemDescription-list mt-1",children:l.map((function(e,t){return(0,i.Y)("li",{dangerouslySetInnerHTML:{__html:e},className:(0,b.A)("[&>b]:text-green600 pl-5 relative [&~&]:mt-1","before:content-[''] before:w-[4px] before:h-[4px] before:bg-dark before:absolute before:top-[8px] before:left-[6px] before:rounded-[50%]")},"".concat(e,"-").concat(t))}))})]})},A=n(24360);function C(e){var t=e.provider,n=e.payment_via,a=e.payment_type,i=e.title;return"".concat(t,"-").concat(n,"-").concat(a,"-").concat(i)}var P=function(e){var t=e.loading,n=e.options,a=e.defaultValue,s=e.onChange,d=e.className,u=e.style,p=(0,g.Jf)(),m=p.selectedPaymentValue,P=p.setSelectedPaymentValue,D=p.openOnlineBanking,M=p.setOpenOnlineBanking,E=p.selectedSubPaymentValue,F=p.setSelectedSubPaymentValue,V=(0,f.A)().formatMessage,S=(0,r.useMemo)((function(){var e,t=null===n||void 0===n?void 0:n.find((function(e){return m===C(e)}));return t&&(null===(e=t.sub_payment_methods)||void 0===e?void 0:e.length)?(E||M(!0),t.sub_payment_methods.filter((function(e){return e.is_active}))):[]}),[m]),I=(0,r.useMemo)((function(){return S.find((function(e){return e.code===E}))}),[E,S]),T=(0,r.useCallback)((function(e){P(e),F(""),null===s||void 0===s||s(e)}),[n,s]),R=(0,r.useCallback)((function(){M(!1),E||T("")}),[E,T]),L=(0,r.useCallback)((function(e){M(!1),F("".concat(e))}),[]);return t?(0,i.FD)(o.a,{className:(0,b.A)(d,"payment__list","p-4 flex flex-col gap-2","border border-solid border-[rgba(0,0,0,0.1)] rounded-xl"),children:[(0,i.FD)("label",{className:"payment__listItem flex justify-between py-2",children:[(0,i.Y)(c.E,{width:24,height:24,radius:3,mr:(0,l.D)(8)}),(0,i.FD)("div",{className:"flex-1 min-w-0",children:[(0,i.Y)(c.E,{width:"100%",height:18,radius:5}),(0,i.Y)(c.E,{width:"30%",height:16,radius:5,mt:4})]}),(0,i.Y)(c.E,{width:16,height:16,circle:!0,ml:(0,l.D)(12)})]}),(0,i.Y)(N.c,{color:"rgba(0,0,0,0.1)"}),(0,i.FD)("label",{className:"payment__listItem flex justify-between py-2",children:[(0,i.Y)(c.E,{width:24,height:24,radius:3,mr:(0,l.D)(8)}),(0,i.FD)("div",{className:"flex-1 min-w-0",children:[(0,i.Y)(c.E,{width:"100%",height:18,radius:5}),(0,i.Y)(c.E,{width:"30%",height:16,radius:5,mt:4})]}),(0,i.Y)(c.E,{width:16,height:16,circle:!0,ml:(0,l.D)(12)})]}),(0,i.Y)(N.c,{color:"rgba(0,0,0,0.1)"}),(0,i.FD)("label",{className:"payment__listItem flex justify-between py-2",children:[(0,i.Y)(c.E,{width:24,height:24,radius:3,mr:(0,l.D)(8)}),(0,i.FD)("div",{className:"flex-1 min-w-0",children:[(0,i.Y)(c.E,{width:"100%",height:18,radius:5}),(0,i.Y)(c.E,{width:"30%",height:16,radius:5,mt:4})]}),(0,i.Y)(c.E,{width:16,height:16,circle:!0,ml:(0,l.D)(12)})]})]}):n&&n.length?(0,i.FD)(i.FK,{children:[(0,i.Y)(w.s.Group,{defaultValue:a,value:m,onChange:T,className:(0,b.A)(d,"payment__list","p-4 flex flex-col gap-2","border border-solid border-[rgba(0,0,0,0.1)] rounded-xl"),style:u,children:n.map((function(e,t){var a,c=e.logo,s=e.title,d=e.description,u=e.provider,p=c||(null===Y.pf||void 0===Y.pf?void 0:Y.pf[u])||Y.uY.HHG,f=C(e);return(0,i.FD)(r.Fragment,{children:[(0,i.FD)("label",{className:"payment__listItem flex justify-between py-2 cursor-pointer",children:[(0,i.Y)("img",{src:p,alt:s,className:(0,b.A)("payment__listItemLogo","w-6 h-6 object-contain object-center mr-3")}),(0,i.FD)("div",{className:"payment__listItemContent flex-1 min-w-0 mr-4",children:[(0,i.Y)("p",{className:"payment__listItemTitle text-[15px] leading-6 tracking-[-0.3px] font-medium text-dark mb-0",children:s}),(0,i.Y)(k,{content:d,collapsed:f!==m})]}),(0,i.Y)(w.s,{value:f,checked:f===m,styles:{root:{marginTop:(0,l.D)(2)},radio:{width:(0,l.D)(16),height:(0,l.D)(16)},icon:{color:y.w.colors.primary600}}})]}),!!(null===(a=e.sub_payment_methods)||void 0===a?void 0:a.length)&&I&&(0,i.FD)(o.a,{className:"bg-neutral50 rounded-xl flex items-center gap-2 flex-col lg:flex-row p-3 lg:p-4 -mt-2",children:[(0,i.FD)(o.a,{className:"flex gap-3 items-center flex-1 min-w-full w-full md:min-w-0 text-gray900 text-[13px] leading-5 tracking-[-0.3px] font-medium",children:[(0,i.Y)("img",{src:null===I||void 0===I?void 0:I.logo,className:"w-8 h-6"}),(0,i.Y)("p",{className:"m-0 flex-1 min-w-0",children:null===I||void 0===I?void 0:I.title})]}),(0,i.Y)(N.c,{color:"rgba(0,0,0,0.1)",className:"border-[rgba(0,0,0,0.1)] border-[0.7px] w-full lg:hidden"}),(0,i.FD)(_.b,{onClick:function(){return M(!0)},className:"flex items-center text-primary600 !text-[13px] !leading-5 tracking-[-0.3px] cursor-pointer",children:[V({id:"vaccination.payment.change_method",defaultMessage:"Change method"}),(0,i.Y)(x.A,{size:"1em",color:"currentColor"})]})]}),t!==n.length-1&&(0,i.Y)(N.c,{color:"rgba(0,0,0,0.1)"})]},"".concat(e.title,"-").concat(t))}))}),(0,i.Y)(A.R,{open:D,onOpen:R,options:S.map((function(e){var t=e.title,n=e.code,a=(0,v.A)(e,["title","code"]);return(0,h.A)({label:t,value:n},a)})),value:"".concat(E),itemRender:function(e){return(0,i.FD)(o.a,{className:"flex gap-3 items-center flex-1 min-w-full w-full md:min-w-0 text-gray900 text-[13px] leading-5 tracking-[-0.3px] font-medium",children:[(0,i.Y)("img",{src:null===e||void 0===e?void 0:e.logo,className:"w-8 h-6"}),(0,i.Y)("p",{className:"m-0 flex-1 min-w-0",children:null===e||void 0===e?void 0:e.label})]})},onChange:L})]}):null},D=n(63538),M=function(e){var t=e||{},n=t.w,a=t.h,o=t.active,c=t.className,l=t.style,s=(0,r.useMemo)((function(){return{width:n+2,height:a+2,viewBox:"0 0 ".concat(n+2," ").concat(a+2),className:(0,b.A)(c,"absolute z-[-1] inset-x-[-32px] top-[-1px] pointer-events-none"),style:l,xmlns:"http://www.w3.org/2000/svg"}}),[n,a,c,l]),d=(0,r.useMemo)((function(){if(!o)return"M0 56 H".concat(n+1," V").concat(a," H0 Z");var e=o.w,t=o.h,i=o.x,r=o.y,c=12,l=4/3*(Math.sqrt(2)-1)*c;return"M0,".concat(r+a,"\n\t\t\tV").concat(r+t,"\n\t\t\tH").concat(i-c,"\n\t\t\tC").concat(i-c+l,",").concat(r+t," ").concat(i,",").concat(r+t-l," ").concat(i,",").concat(r+t-c,"\n\t\t\tV").concat(r+c+1,"\n\t\t\tC").concat(i,",").concat(r+c+1-l," ").concat(i+l,",").concat(r+1," ").concat(i+c,",").concat(r+1,"\n\t\t\tH").concat(i+e-c,"\n\t\t\tC").concat(i+e-l,",").concat(r+1," ").concat(i+e,",").concat(r+c+1-l," ").concat(i+e,",").concat(r+c+1,"\n\t\t\tV").concat(t-c,"\n\t\t\tC").concat(i+e,",").concat(r+t-l," ").concat(i+e+c-l,",").concat(r+t," ").concat(i+e+c,",").concat(r+t,"\n\t\t\tH").concat(n+2,"\n\t\t\tV").concat(a+2,"\n\t\t\tH0\n\t\t\tZ")}),[n,a,null===o||void 0===o?void 0:o.x,null===o||void 0===o?void 0:o.y,null===o||void 0===o?void 0:o.w,null===o||void 0===o?void 0:o.h]);return(0,i.FD)("svg",(0,D.A)((0,h.A)({},s),{children:[(0,i.Y)("path",{d:d,fill:"white",stroke:y.w.colors.neutral100,strokeWidth:"1"}),(0,i.FD)("defs",{children:[(0,i.FD)("linearGradient",{id:"line__gradient",x1:(null===o||void 0===o?void 0:o.x)||0,y1:1,x2:((null===o||void 0===o?void 0:o.x)||0)+((null===o||void 0===o?void 0:o.w)||0),y2:1,gradientUnits:"userSpaceOnUse",colorInterpolation:"linearRGB",children:[(0,i.Y)("stop",{offset:"0%",stopColor:y.w.colors.neutral100,stopOpacity:"0"}),(0,i.Y)("stop",{offset:"50%",stopColor:y.w.colors.primary600,stopOpacity:"0.5"}),(0,i.Y)("stop",{offset:"100%",stopColor:y.w.colors.neutral100,stopOpacity:"0"})]}),(0,i.FD)("radialGradient",{id:"ellipse__radial",cx:"50%",cy:"50%",r:"50%",gradientTransform:"translate(0.5,0.5) scale(1,0.6) translate(-0.5,-0.5)",children:[(0,i.Y)("stop",{offset:"0%",stopColor:y.w.colors.primary600,stopOpacity:"0.1"}),(0,i.Y)("stop",{offset:"100%",stopColor:"white",stopOpacity:"0"})]})]}),(0,i.Y)("line",{fill:"none",stroke:"url(#line__gradient)",strokeWidth:"1",x1:(null===o||void 0===o?void 0:o.x)||0,y1:1,x2:((null===o||void 0===o?void 0:o.x)||0)+((null===o||void 0===o?void 0:o.w)||0),y2:1}),(0,i.Y)("rect",{x:(null===o||void 0===o?void 0:o.x)||0,y:-"".concat(((null===o||void 0===o?void 0:o.h)||0)/2),width:(null===o||void 0===o?void 0:o.w)||0,height:(null===o||void 0===o?void 0:o.h)||0,fill:"url(#ellipse__radial)"})]}))},E=function(e){var t=e.tabs,n=e.defaultTab,a=e.currentTab,c=e.onChangeTab,l=e.className,s=e.style,d=(0,r.useState)(n||a),u=d[0],p=d[1],f=(0,r.useRef)({}),m=(0,r.useRef)(null),g=(0,r.useState)(null),v=g[0],y=g[1],_=(0,r.useState)({w:1600,h:72}),x=_[0],N=_[1],w=(0,r.useCallback)((function(e){requestAnimationFrame((function(){var t,n=f.current[e],a=m.current,i=null===a||void 0===a||null===(t=a.children)||void 0===t?void 0:t[0];n&&a&&i&&a.offsetWidth=d&&"after:content-[''] after:absolute after:h-[1px] after:bg-neutral100 after:bottom-[0.5px]",{"text-gray700":c!==u},{"payment__tabsNav-nav-active text-blue600":c===u}),"data-testid":c,onClick:Y(c),sx:function(){return{"&::after":{width:"".concat(p,"px"),right:"-".concat(p+16,"px")}}},children:[c===u&&(0,i.Y)(M,(0,D.A)((0,h.A)({},x),{active:v,className:"payment__tabsNav-svg"})),a]})},"".concat(c,"-").concat(n))}))})})})}):null},F=function(e){var t=e.icon,n=e.titleComponent,a=e.rightComponent,r=e.className,c=e.style;return t||n||a?(0,i.FD)(o.a,{className:(0,b.A)(r,"payment__warningBox","p-3 flex gap-2 items-center justify-between bg-yellow50","border border-solid border-yellow200 rounded-xl"),style:c,children:[!!t&&(0,i.Y)("img",{src:t,className:"payment__warningBoxIcon w-5 h-5 leading-none"}),!!n&&(0,i.Y)("div",{className:"payment__warningBoxContent flex-1 min-w-0 text-[13px] font-semibold leading-5 tracking-[-0.3px]",children:n}),!!a&&(0,i.Y)("p",{className:"payment__warningBoxPrice text-gray900 font-semibold text-[15px] leading-6 tracking-[-0.3px]",children:a})]}):null},V=n(40959),S={ten_percent:"10_percent",one_hundred_percent:"100_percent",full_payment:"full_payment"};function I(e){var t=(0,a.A)(e.split("-"),4);return{provider:t[0],paymentVia:t[1],paymentType:t[2],providerTitle:t[3]}}var T=function(e){var t=e.loadingPrice,n=e.displayPricePayNow,a=e.displayPriceRemaining,h=(0,p.$)().locale,v=(0,f.A)().formatMessage,y=(0,r.useState)(!0),_=y[0],x=y[1],b=(0,r.useState)(),N=b[0],w=b[1],Y=(0,g.Jf)(),k=Y.providers,A=Y.setProviders,C=Y.selectedPaymentValue,D=Y.vaccinationDetail,M=(0,m.T)().displayTotalPrice,I=(0,r.useMemo)((function(){var e=k.filter((function(e){return"10_percent"===e.payment_type})),t=k.filter((function(e){return"full_payment"===e.payment_type})),n=k.filter((function(e){return"100_percent"===e.payment_type}));return{ten_percent:e,full_payment:t,one_hundred_percent:n}}),[k]),T=(0,r.useMemo)((function(){var e=[];return I.ten_percent.length&&e.push({label:I.ten_percent[0].display_label||v({id:"vaccination.payment.tabs.pay_10_percent",defaultMessage:"Pay 10% to Book"}),value:S.ten_percent}),I.one_hundred_percent.length&&e.push({label:I.one_hundred_percent[0].display_label||v({id:"vaccination.payment.tabs.pay_100_percent",defaultMessage:"Pay 100%"}),value:S.one_hundred_percent}),I.full_payment.length&&e.push({label:I.full_payment[0].display_label||v({id:"vaccination.payment.tabs.buy_now_pay_later",defaultMessage:"Buy Now Pay Later"}),value:S.full_payment}),e}),[I.ten_percent,I.full_payment]);return(0,r.useEffect)((function(){var e;(null===D||void 0===D||null===(e=D.organization)||void 0===e?void 0:e.id)&&(x(!0),s.W.withCached(d.R.GET_VACCINATION_PAYMENT_PROVIDER,(function(){var e;return(0,u.px)((0,u.fK)(d.R.GET_VACCINATION_PAYMENT_PROVIDER,{locale:String(h),hospitalId:null===D||void 0===D||null===(e=D.organization)||void 0===e?void 0:e.id}),"GET")})).then((function(e){var t,n;(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.items)||void 0===n?void 0:n.length)&&(A(e.data.items),x(!1))})))}),[D]),(0,r.useMemo)((function(){if(T.length){var e=null===T||void 0===T?void 0:T[0].value;C&&C.includes(S.full_payment)&&(e=S.full_payment),C&&C.includes(S.ten_percent)&&(e=S.ten_percent),C&&C.includes(S.one_hundred_percent)&&(e=S.one_hundred_percent),w(e)}}),[T,C]),(0,i.FD)("div",{id:"payment-method-step-1",className:"paymentMethod",children:[(0,i.Y)(E,{tabs:T,currentTab:N,onChangeTab:w}),(0,i.FD)(o.a,{className:"pt-[14px] bg-white",children:[N==S.ten_percent&&(0,i.FD)(o.a,{className:"px-4 pb-5 lg:pb-6",children:[(0,i.Y)(F,{icon:"".concat(V.JpE,"/svg/coin.svg"),titleComponent:v({id:"vaccination.payment.warning.pay_now",defaultMessage:"Pay Now ({number})"},{number:"10%"}),rightComponent:t?(0,i.Y)(c.E,{width:"100%",height:(0,l.D)(24)}):n}),(0,i.Y)("p",{className:"mt-2 text-gray700 text-[13px] leading-5 tracking-[-0.3px]",children:v({id:"vaccination.payment.notice.remaining",defaultMessage:"You\u2019ll pay the remaining {percent} of the amount ({price}) at the clinic when you get the vaccine."},{percent:"90%",price:t?(0,i.Y)(c.E,{width:"50px"}):a})}),(0,i.Y)(P,{loading:_,options:I.ten_percent,className:"mt-4"})]}),N==S.full_payment&&(0,i.Y)(o.a,{className:"px-4 pb-5 lg:pb-6",children:(0,i.Y)(P,{loading:_,options:I.full_payment})}),N==S.one_hundred_percent&&(0,i.FD)(o.a,{className:"px-4 pb-5 lg:pb-6",children:[(0,i.Y)(F,{icon:"".concat(V.JpE,"/svg/coin.svg"),titleComponent:v({id:"vaccination.payment.warning.pay_now",defaultMessage:"Pay Now ({number})"},{number:"100%"}),rightComponent:t?(0,i.Y)(c.E,{width:"100%",height:(0,l.D)(24)}):M,className:"mb-4"}),(0,i.Y)(P,{loading:_,options:I.one_hundred_percent})]})]})]})}},18754:function(e,t,n){n.d(t,{A:function(){return $}});var a=n(858),i=n(53513),r=n(63538),o=n(83776),c=n(2445),l=n(73884),s=n(35291),d=n(22067),u=n(26142),p=n(2763),f=n(86436),m=n(36814),g=n(94858),h=n(59850),v=n(14265),y=n(84091),_=n(32485),x=n.n(_),b=n(74353),N=n.n(b),w=n(88491),Y=n(65147),k=n(67722),A=function(e){var t,n=(0,Y.a)();if("success"===(null===e||void 0===e||null===(t=e.transaction)||void 0===t?void 0:t.status)){var a=n.getHref();if(a){var i,r=(0,k.VG)(a);r!==(null===e||void 0===e||null===(i=e.snapshot_order)||void 0===i?void 0:i.product_id)&&null!==r||n.resetHref()}}},C=n(73419),P=n(6442),D=n(36259),M=n(12034),E=n(92047),F=n(20394),V=n(60785),S=n(70254),I=n(42280),T=n(9655),R=n(95204),L=n(37639),O=n(40959),H=function(e){var t,n,s=e.vaccinationDetail,d=(0,P.A)().formatMessage,p=(0,w.d)().isMobileOrTablet,f=(0,C.$)().query,g=String(f.ref_id||""),_=(0,I.Jf)(),b=_.paymentResult,N=_.setPaymentResult,Y=(0,l.useState)(60),k=Y[0],R=Y[1],O=(0,l.useContext)(D.B).pushNotifications,H=(0,E.eZ)();A(b);var j=function(){var e=(0,a.A)((function(){var e,t,n,a,c,l,u,p,f,m,_,x,N,w,Y,k,A,C,P,D,M;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(K||!b||!q)return[2];t=(e=b||{}).snapshot_order,n=e.payment_via,a=e.payment_type,c=e.payment_provider,u=(l=t||{}).type,p=l.product_id,f=l.clinic_id,m=l.voucher_code,_=l.referral_code,x=l.customer_info,N="".concat(window.location.origin).concat(window.location.pathname),w=s.id,Y=null===c||void 0===c?void 0:c.toLowerCase(),u===v.V.vaccine_package&&(w=p),o.label=1;case 1:return o.trys.push([1,3,,4]),Q(!0),[4,(0,y.px)((0,y.fK)(h.R.GET_PAYMENT_URL,{provider:Y}),"POST",{data:(0,r.A)((0,i.A)({},b.snapshot_order),{ref_id:g,amount:q.amount,price_unit:s.price_unit,order_info:s.name,product_name:s.name,clinic_name:null===(k=s.hospital_branch)||void 0===k?void 0:k.name,hospital_name:null===(A=s.organization)||void 0===A?void 0:A.name,hospital_branch_name:null===(C=s.hospital_branch)||void 0===C?void 0:C.name,image:s.logo,type:u,provider:Y,return_url:N,product_id:w,payment_via:n,payment_type:a,clinic_id:f,voucher_code:m,referral_code:_,customer_info:x,sub_payment_method_code:null===b||void 0===b||null===(P=b.sub_payment_method)||void 0===P?void 0:P.code})})];case 2:if(D=o.sent(),!(M=D.data.url))throw new Error("");return window.location.href=M,Q(!1),[3,4];case 3:return o.sent(),O({message:d({id:"vaccination.payment.failed_desc",defaultMessage:"There was an issue with your {provider} transaction. Please try again or use another payment method."},{provider:b.payment_provider_title}),type:"danger"}),Q(!1),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),X=null===b||void 0===b||null===(t=b.transaction)||void 0===t?void 0:t.status,$=f.hhg_payment_token?String(f.hhg_payment_token):"",B=function(){"default"===X&&$&&(Q(!0),(0,y.px)((0,y.fK)(h.R.GET_PAYMENT_RESULT,{hhgToken:$}),"GET").then((function(e){var t,n=null===e||void 0===e?void 0:e.data,a=null===n||void 0===n||null===(t=n.transaction)||void 0===t?void 0:t.status;b&&a&&"default"!==a&&N(n)})).finally((function(){Q(!1)})))},W=b||{},Z=W.payment_provider_title,q=W.transaction,U=(W.user_referral||{}).code,J=(0,l.useState)(!1),K=J[0],Q=J[1],ee=(0,l.useState)(!1),te=ee[0],ne=ee[1],ae="success"===X,ie="failed"===X,re="default"===X,oe=ie&&(0,c.Y)(u.B,{size:"lg",fullWidth:!0,loading:K,onClick:j,children:(0,c.Y)("span",{className:"text-[15px] leading-6 tracking-[-0.3px] font-medium",children:d({id:"vaccination.payment.retry",defaultMessage:"Retry Payment"})})}),ce=re&&(0,c.Y)(u.B,{size:"lg",fullWidth:!0,loading:K,onClick:B,children:(0,c.Y)("span",{className:"text-[15px] leading-6 tracking-[-0.3px] font-medium pointer-events-none",children:d({id:"vaccination.payment.reload",defaultMessage:"Reload ({count})"},{count:k})})});return(0,l.useEffect)((function(){var e;if((null===b||void 0===b||null===(e=b.snapshot_order)||void 0===e?void 0:e.type)===v.V.vaccine_package){var t,n=null===b||void 0===b||null===(t=b.snapshot_order)||void 0===t?void 0:t.product_id.toString();(0,E.Gp)(n,((null===H||void 0===H?void 0:H[n])||0)-1)}}),[]),(0,l.useEffect)((function(){if("default"===X&&$){var e=setInterval((function(){R((function(e){var t=e-1;return 0===t&&B(),t||60}))}),1e3);return function(){R(60),clearInterval(e)}}}),[X,$]),b&&q?(0,c.FD)(M.Ue,{value:{isOpenPopupCollection:te,setIsOpenPopupCollection:ne},children:[(0,c.FD)(m.a,{className:"bg-neutral50 min-h-screen",children:[(0,c.Y)(V.A,{className:"lg:mb-8 lg:border-b lg:border-solid lg:border-gray200 lg:py-6 lg:flex lg:justify-center",customSize:p?void 0:{width:"141px",height:"32px"}}),(0,c.FD)(m.a,{className:"max-w-[552px] mx-auto",children:[(0,c.FD)(m.a,{className:x()("flex flex-col gap-3 lg:gap-2",ie||re?"pb-[100px]":"pb-[50px] lg:pb-[40px]"),children:[(null===q||void 0===q?void 0:q.status)&&(0,c.Y)(z,{status:q.status,provider:Z}),(0,c.FD)(m.a,{className:"bg-white p-4 pt-6 lg:pb-6",children:[(0,c.Y)("div",{className:"payment__productInfo",children:(0,c.Y)(S.Ay.Inner,{stepNumber:0,vaccinationDetail:s,className:"mt-0",showDeliveryFee:null===(n=b.snapshot_order)||void 0===n?void 0:n.show_delivery_fee})}),U&&ae&&(0,c.Y)(G,{paymentResult:b,vaccinationDetail:s,userReferral:b.user_referral,className:"mt-4 !px-0"})]}),(0,c.Y)(T.A,{paymentResult:b,vaccinationDetail:s,isFailed:ie,isSuccess:ae,isPending:re,action:!p&&(ie||re)&&(0,c.Y)(m.a,{className:"py-1","data-testid":ie?"retry-button":"reload-button",children:ie?oe:ce})}),ae&&(0,c.Y)(F.Y,{})]}),ie&&p&&(0,c.Y)(m.a,{"data-testid":"retry-button",className:"fixed bottom-0 left-0 right-0 border-t border-solid border-neutral100 py-2 px-4 bg-white",children:oe}),re&&p&&(0,c.Y)(m.a,{"data-testid":"reload-button",className:"fixed bottom-0 left-0 right-0 border-t border-solid border-neutral100 py-2 px-4 bg-white",children:ce})]})]}),(0,c.Y)(L.A,{className:"!top-4 !right-4 !left-4"})]}):null},j={success:d.C.getAssetPath("payment/payment_success.png"),failed:d.C.getAssetPath("payment/payment_failed.png"),default:d.C.getAssetPath("payment/payment_pending.png")},X={success:{title:{id:"vaccination.payment.success_title",defaultMessage:"Payment Successful"},description:{id:"vaccination.payment.success_desc",defaultMessage:"Your payment has been completed successfully. Thank you for your purchase!"}},failed:{title:{id:"vaccination.payment.failed_title",defaultMessage:"Payment Unsuccessful"},description:{id:"vaccination.payment.failed_desc",defaultMessage:"There was an issue with your {provider} transaction. Please try again or use another payment method."}},default:{title:{id:"vaccination.payment.pending_title",defaultMessage:"Pending Transaction"},description:{id:"vaccination.payment.pending_desc",defaultMessage:"Your payment is being processed. Please refresh to see the latest status"}}},z=function(e){var t=e.status,n=e.provider,a=e.className,i=e.style,r=(0,P.A)().formatMessage,o=(null===j||void 0===j?void 0:j[t])||j.failed,s=(0,l.useMemo)((function(){var e=X.failed.title,a=X.failed.description;if(t in X){var i=X[t];e=i.title,a=i.description}return{title:r(e),description:r(a,{provider:n})}}),[r,n,t]),d=s.title,u=s.description;return(0,c.Y)(c.FK,{children:(0,c.FD)("div",{className:(0,g.A)(a,"result","result-".concat(t),"bg-white p-4 text-center lg:rounded-t-2xl"),style:i,"data-testid":"result-message",children:[(0,c.Y)("img",{src:o,alt:"hhg",className:"result__icon leading-none w-auto h-[96px] mb-2 block mx-auto"}),(0,c.Y)("h4",{className:"result__title mb-0 font-semibold text-[22px] text-dark leading-8 tracking-[-0.6px]",children:d}),(0,c.Y)("p",{className:"result__description mt-2 mb-0 text-[13px] text-gray600 leading-5 tracking-[-0.3px] lg:text-[14px] lg:leading-[22px] lg:tracking-[-0.2px]",children:u})]})})},G=function(e){var t=e.paymentResult,n=e.vaccinationDetail,a=e.userReferral,i=e.className,r=e.style,o=(0,P.A)().formatMessage,u=(0,C.$)(),h=u.locale,_=u.asPath,x=(0,w.d)().isMobileOrTablet,b=(0,l.useContext)(D.B).pushNotifications,Y=null===a||void 0===a?void 0:a.code,k=n||{},A=k.name,M=(k.hospital_branch||{}).name,E=t.snapshot_order,F=E.type,V=E.product_id,S=E.product_package_name,I="percentage"===(null===a||void 0===a?void 0:a.discount_type)?"".concat(null===a||void 0===a?void 0:a.discount_value,"%"):(0,y.nd)(o,(0,y.$g)((null===a||void 0===a?void 0:a.discount_value)||0,h),n.price_unit),T=(0,l.useMemo)((function(){if(O.kUY)return"";var e=(0,R.jX)(n)?R.kx:(0,R.J8)(n)?R.W:(0,R.FL)(n)?R.km:(0,R.LJ)(n)?R.w7:R.OP,t="".concat(window.location.origin).concat(O.JpE).concat(e(n.slug,n.id,_),"payment?referral_code=").concat(Y);if(F===v.V.vaccine_package){var a=encodeURIComponent(S);t+="&pkg_name=".concat(a,"&pkg_id=").concat(V)}return t}),[Y,F,V,S,n]),L=(0,l.useMemo)((function(){var e=N()(1e3*((null===a||void 0===a?void 0:a.expires_at)||0)),t=N()(1e3*((null===a||void 0===a?void 0:a.created_at)||0)),n=function(e,t){var n=(t-e)/864e5;return Math.max(Math.round(n),1)}(Number(t),Number(e)),i=A;return F===v.V.vaccine_package&&S&&(i+=" - ".concat(S)),[o({id:"vaccination.share_sentence1"},{productName:i,clinicName:M}),o({id:"vaccination.share_sentence2"},{refCode:Y,refAmount:I,expiresLength:o({id:"vaccination.share_day_length"},{days:n}),createdAt:t.format("DD/MM/YYYY")}),o({id:"vaccination.share_sentence3"}),o({id:"vaccination.share_sentence4"})].join("\n")}),[o,a,I,Y,A,S]),H=function(e){(0,R.lW)(e||T,(function(){b({type:"success",message:o({id:"widget.integrations.document.copiedToClipboard",defaultMessage:"Copied to clipboard!"})})}),(function(){}))};return(0,c.Y)(m.a,{"data-testid":"referral-code-box",className:(0,g.A)(i,"px-4"),style:r,children:(0,c.FD)(m.a,{style:x?R.yi:R.IL,className:"py-[20px] rounded-lg lg:rounded-2xl bg-primary500",children:[(0,c.Y)("div",{className:"w-[196px] h-[78px] mx-auto relative",children:(0,c.Y)("img",{alt:"cash back 40%",className:"w-[320px] absolute top-[-15px] left-1/2 pointer-events-none",style:{transform:"translateX(-50%)"},src:d.C.getAssetPath(h===p.L.Vietnam?"payment/referral_title_bg_vi-VN.png":"payment/referral_title_bg.png")})}),(0,c.Y)("p",{className:"text-[15px] leading-6 font-semibold tracking-[-0.3px] px-9 text-white text-center",children:o({id:"vaccination.payment_referral_desc",defaultMessage:"Share this code with your friends and get {amount} cashback for every friend (max {count}) who gets vaccinated using it."},{amount:I,count:(null===a||void 0===a?void 0:a.usage_limit)||2})}),(0,c.FD)(m.a,{className:"px-6 flex gap-2 mt-[18px]",children:[(0,c.FD)(m.a,{className:"flex justify-between rounded bg-white/[0.64] flex-1 px-4 py-[10px] backdrop-blur-[24px] min-w-0",children:[(0,c.Y)("p",{className:"text-[15px] leading-6 font-semibold tracking-[-0.3px] text-gray700 text-ellipsis overflow-hidden whitespace-nowrap pr-1",children:Y}),(0,c.Y)(m.a,{className:"cursor-pointer",onClick:function(){return H()},children:(0,c.Y)(f.A,{color:s.w.colors.gray600,size:20})})]}),(0,c.Y)("button",{onClick:function(){if("undefined"!==typeof(null===navigator||void 0===navigator?void 0:navigator.share)){var e={url:T,title:n.name,text:L};navigator.share(e).then((function(){return console.log("Successful share")})).catch((function(e){console.log("Error sharing",e),H(L)}))}else H(L)},className:"bg-white rounded-xl text-[15px] leading-6 font-semibold tracking-[-0.3px] text-primaryBase px-[26px] py-[10px] w-auto whitespace-nowrap",children:o({id:"vaccination.payment_share",defaultMessage:"Share"})})]})]})})};H.Result=z,H.ResultIcon=j,H.ReferralCode=G;var $=H},70254:function(e,t,n){n.d(t,{UB:function(){return f},tn:function(){return m}});var a=n(2445),i=n(36814),r=n(32485),o=n.n(r),c=n(73419),l=n(32876),s=n.n(l),d=n(6442),u=n(42280),p=n(95204),f=function(e){var t=e.stepNumber,n=e.vaccinationDetail,r=e.className,l=void 0===r?"mt-4":r,d=e.showDeliveryFee,u=n.id,f=n.slug,m=n.logo,g=n.hospital_branch,h=(n.name,n.display_name),v=(0,c.$)().asPath,y=(0,p.jX)(n),_=(0,p.OP)(f,u,v);return(0,a.FD)(i.a,{"data-testid":"product-info",className:o()("flex gap-3",l),children:[(0,a.FD)(i.a,{className:"flex-1",children:[y?(0,a.Y)("span",{className:"text-[17px] tracking-[-0.4px] leading-6 font-semibold text-dark block",children:h}):(0,a.Y)(s(),{href:_,children:(0,a.Y)("a",{className:"text-[17px] tracking-[-0.4px] leading-6 font-semibold text-dark block cursor-pointer",children:h})}),t!==p.RZ.ONE&&!d&&(0,a.Y)("p",{className:"border-l-2 border-solid border-gray200 pl-2 text-[13px] leading-5 tracking-[-0.3px] text-gray700 mt-2",children:g.name})]}),(0,a.Y)(i.a,{className:"w-[72px] h-[72px] min-w-[72px]",children:(0,a.Y)("img",{src:m||p.XS,className:"block w-full h-full object-cover rounded-lg"})})]})},m=function(){var e=(0,d.A)().formatMessage,t=(0,u.Jf)().currentStep;return t>0?(0,a.FD)(i.a,{"data-testid":"step-bar",className:"flex gap-1 justify-between items-start text-center",children:[(0,a.FD)(i.a,{className:"flex-1",children:[(0,a.Y)(i.a,{className:"h-1 rounded bg-primaryBase mb-2"}),(0,a.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] font-semibold text-primaryBase lg:whitespace-nowrap lg:px-4",children:e({id:"vaccination.payment.step_select_payment",defaultMessage:"SELECT PAYMENT"})})]}),(0,a.FD)(i.a,{className:"flex-1",children:[(0,a.Y)(i.a,{className:o()("h-1 rounded mb-2",{"bg-primaryBase":2===t,"bg-neutral100":t<2})}),(0,a.Y)("p",{className:o()("text-[13px] leading-5 tracking-[-0.3px] font-semibold lg:whitespace-nowrap lg:px-4",2===t?"text-primaryBase":"text-gray300"),children:e({id:"vaccination.payment.step_review_confirm",defaultMessage:"REVIEW AND CONFIRM"})})]})]}):null},g=function(e){var t=e.stepNumber,n=e.vaccinationDetail,r=e.children,c=e.showDeliveryFee,l=(0,d.A)().formatMessage,s=t===p.RZ.RESULT;return(0,a.FD)(i.a,{className:o()("bg-white pb-5 px-4 pt-3",s?"pt-2.5 pb-0":"pt-3"),children:[(0,a.Y)(m,{}),r,s&&(0,a.Y)("p",{className:"text-[22px] leading-8 font-semibold tracking-[-0.6px] text-dark",children:s&&l({id:"vaccination.payment_summary",defaultMessage:"Payment summary"})}),(0,a.Y)(f,{stepNumber:t,vaccinationDetail:n,className:s?"pt-5":"mt-7",showDeliveryFee:c})]})};g.Inner=f,t.Ay=g},42280:function(e,t,n){n.d(t,{Jf:function(){return c},Ou:function(){return l},Zb:function(){return s}});var a=n(53513),i=n(63538),r=n(44745),o=n(95204),c=(0,r.vt)()((function(e){return{currentStep:o.RZ.ONE,setCurrentStep:function(t){return e((function(){return{currentStep:t}}))},providers:[],setProviders:function(t){return e((function(){return{providers:t}}))},setPaymentResult:function(t){return e((function(){return{paymentResult:t}}))},computedPrice:o.vp,setComputedPrice:function(t){return e((function(){return{computedPrice:t}}))},setSelectedPaymentValue:function(t){return e((function(){return{selectedPaymentValue:t}}))},setVaccinationDetail:function(t){return e((function(){return{vaccinationDetail:t}}))},setOpenOnlineBanking:function(t){return e((function(){return{openOnlineBanking:t}}))},setSelectedSubPaymentValue:function(t){e((function(){return{selectedSubPaymentValue:t}}))}}})),l={loading:!1,isOpenVoucher:!1,openResult:!1,listVoucher:[],appliedVoucher:null,referralData:null,appliedReferralCode:"",count:1},s=(0,r.vt)((function(e){return(0,i.A)((0,a.A)({},l),{setLoading:function(t){e((function(){return{loading:t}}))},setIsOpenVoucher:function(t){e((function(){return{isOpenVoucher:t}}))},setOpenResult:function(t){e((function(){return{openResult:t}}))},setListVoucher:function(t){e((function(){return{listVoucher:t}}))},setAppliedVoucher:function(t){e((function(){return{appliedVoucher:t}}))},setReferralData:function(t){e((function(){return{referralData:t}}))},setAppliedReferralCode:function(t){e((function(){return{appliedReferralCode:t}}))},setVoucherStore:function(t,n){e(t,n)}})}))},9655:function(e,t,n){n.d(t,{Y:function(){return h}});var a,i=n(38971),r=n(2445),o=n(2763),c=n(36814),l=n(94858),s=n(84091),d=n(74353),u=n.n(d),p=n(73419),f=n(6442),m=n(86706),g=n(67111);n(40860),n(65826);var h=(a={},(0,i.A)(a,o.L.Vietnam,"vaccination.payment.product_price"),(0,i.A)(a,o.L.Malaysia,"vaccination.payment.product_price"),a);t.A=function(e){var t=e.paymentResult,n=e.vaccinationDetail,a=e.isFailed,i=e.isSuccess,d=e.isPending,v=e.className,y=e.style,_=e.action,x=(0,p.$)().locale,b=(0,f.A)().formatMessage,N=x===o.L.Vietnam?"vi":"en",w=t.payment_provider_title,Y=t.snapshot_order,k=t.sub_payment_method,A=(0,m.T)().getDisplayTaxPrice,C={default:b({id:"vaccination.payment.status_default",defaultMessage:"Pending"}),success:b({id:"vaccination.payment.success",defaultMessage:"Success"}),failed:b({id:"vaccination.payment.failed",defaultMessage:"Failed"})},P=(0,s.nd)(b,(0,s.$g)(Y.final_price,x),n.price_unit),D=(0,s.nd)(b,(0,s.$g)(Y.original_price,x),n.price_unit),M=A(Y.tax_unit,Y.tax_computed,Y.tax_amount),E=(0,s.nd)(b,(0,s.$g)(t.remain_amount,x),n.price_unit),F=(0,s.nd)(b,(0,s.$g)(t.transaction.amount,x),n.price_unit),V=Number((null===Y||void 0===Y?void 0:Y.referral_discount_value)||0)+Number((null===Y||void 0===Y?void 0:Y.voucher_discount_value)||0),S=V>0?(0,s.nd)(b,(0,s.$g)(V,x),n.price_unit):"",I=null===n||void 0===n?void 0:n.hospital_branch.name;return(0,r.FD)(c.a,{"data-testid":"transaction-info",className:(0,l.A)(v,"bg-white pt-6 px-4 pb-2 lg:pb-3"),style:y,children:[(0,r.FD)(c.a,{className:"pb-4 flex justify-between items-center",children:[(0,r.Y)("h2",{className:"text-[17px] leading-6 tracking-[-0.4px] text-dark font-semibold",children:b({id:"vaccination.payment.transaction_info",defaultMessage:"Transaction Info"})}),i&&(0,r.Y)("label",{className:"rounded-[40px] py-[3px] px-2 bg-green50 font-medium text-[12px] leading-4 tracking-[-0.2px] text-green600",children:C.success}),a&&(0,r.Y)("label",{className:"rounded-[40px] py-[3px] px-2 bg-red50 font-medium text-[12px] leading-4 tracking-[-0.2px] text-red700",children:C.failed}),d&&(0,r.Y)("label",{className:"rounded-[40px] py-[3px] px-2 bg-yellow50 font-medium text-[12px] leading-4 tracking-[-0.2px] text-yellow800",children:C.default})]}),(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.date"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:u()(t.transaction.created_at).locale(N).format("DD MMM YYYY - HH:mm")})]}),(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.transaction_id"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:t.transaction.transaction_id})]}),(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:(null===h||void 0===h?void 0:h[x])||h[o.L.Vietnam],defaultMessage:"Package price"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:D})]}),M&&(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.tax"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:M})]}),S&&(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.discount"})}),(0,r.FD)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-green600 font-medium",children:["-",S]})]}),(null===t||void 0===t?void 0:t.payment_type)===g.Ai.ten_percent&&(0,r.FD)(r.FK,{children:[(0,r.FD)(c.a,{className:"py-3 gap-2 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700 min-w-0",children:b({id:"vaccination.payment.pay_later",defaultMessage:"Pay later (at {hospital_name})"},{hospital_name:I})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium whitespace-nowrap",children:E})]}),(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:i?"vaccination.payment.already_paid_10_percentage":a?"vaccination.payment.failed_paid_10_percentage":"vaccination.payment.pending_paid_10_percentage"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:F})]})]}),g.Ai.full_payment===(null===t||void 0===t?void 0:t.payment_type)&&(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.price_after_tax_discount",defaultMessage:"Package price after tax & discount"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:P})]}),g.Ai.one_hundred_percent===(null===t||void 0===t?void 0:t.payment_type)&&(0,r.FD)(c.a,{className:"py-3 flex justify-between border-b border-solid border-neutral100",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:i?"vaccination.payment.already_paid_100":a?"vaccination.payment.failed_paid_100_percentage":"vaccination.payment.pending_paid_100_percentage"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:P})]}),(0,r.FD)(c.a,{className:"py-3 flex justify-between",children:[(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-gray700",children:b({id:"vaccination.payment.method"})}),(0,r.Y)("p",{className:"text-[13px] leading-5 tracking-[-0.3px] text-dark font-medium",children:(null===k||void 0===k?void 0:k.title)?"".concat(b({id:"vaccination.payment.online_banking"})," - ").concat(null===k||void 0===k?void 0:k.title):w})]}),_]})}},95204:function(e,t,n){n.d(t,{FL:function(){return C},IL:function(){return y},J8:function(){return A},LJ:function(){return P},O7:function(){return d},OP:function(){return _},RZ:function(){return u},SE:function(){return D},W:function(){return x},XS:function(){return f},Y$:function(){return E},b_:function(){return F},jX:function(){return k},km:function(){return w},kx:function(){return b},lW:function(){return Y},pf:function(){return g},q:function(){return h},tz:function(){return M},uY:function(){return m},vp:function(){return p},w7:function(){return N},yi:function(){return v}});var a=n(24537),i=n(22067),r=n(2763),o=n(14265),c=n(27317),l=n(40959);function s(){var e=(0,a.A)(["\n .PhoneInputCountry {\n pointer-events: none;\n }\n .PhoneInputCountryIconCallingCode {\n font-size: 15px;\n line-height: 24px;\n font-weight: 500;\n }\n .mantine-Select-rightSection {\n svg {\n position: relative;\n bottom: -10px;\n }\n }\n div .PhoneInput .PhoneInputInput {\n font-weight: 500;\n line-height: 24px;\n font-size: 15px;\n }\n\n .form--phone_field .PhoneInputCountry {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: flex-start;\n }\n\n .form--phone_field .PhoneInputCountry .PhoneInputCountryIcon {\n width: 100%;\n display: flex;\n gap: 4px;\n align-items: center;\n box-shadow: none;\n background: transparent;\n }\n"]);return s=function(){return e},e}var d,u={RESULT:0,ONE:1,TWO:2},p={original_price:0,final_price:0,voucher_discount_value:0,referral_discount_value:0,tax_amount:"0",tax_unit:"%",tax_computed:0,show_delivery_fee:!1,delivery_fee:0,delivery_fee_currency:"VND",prescription_required:!1,prescription_max_files:3},f="".concat(l.JpE,"/images/default-image.jpg"),m={"Golden Healthcare":i.C.getAssetPath("payment/GoldenHealthcare.jpg"),CIH:i.C.getAssetPath("payment/CIH.jpg"),HHG:i.C.getAssetPath("payment/HHG_short.jpg"),"Long Chau":i.C.getAssetPath("payment/LongChau.jpg"),"Nhi \u0110\u1ed3ng 315":i.C.getAssetPath("payment/NhiDong315.jpg"),"Sim Med":i.C.getAssetPath("payment/SIMMed.jpg"),VNVC:i.C.getAssetPath("payment/VCNV.jpg"),VinMec:i.C.getAssetPath("payment/VinMec.jpg"),"\u0110H Y D\u01b0\u1ee3c 1":i.C.getAssetPath("payment/YDuoc.jpg"),"Columbia Asia":i.C.getAssetPath("payment/ColumbiaAsia.jpg"),Qualitas:i.C.getAssetPath("payment/Qualitas.jpg")},g={MOMO:i.C.getAssetPath("payment/VTS_MoMo.png")},h=c.Ay.form.withConfig({componentId:"sc-440225ce-0"})(s()),v={backgroundImage:"url('".concat(i.C.getAssetPath("payment/referral_bg.jpg"),"')"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},y={backgroundImage:"url('".concat(i.C.getAssetPath("payment/referral_bg_desktop.jpg"),"')"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},_=function(e,t,n){var a=n.split("?")[0];if(a.includes("/payment"))return"".concat(a.split("/payment")[0],"/");if(a.endsWith("-".concat(t,"/")))return a;var i=l.y1A[l.HgX];return"vi-VN"!==l.HgX?"/".concat(null===i||void 0===i?void 0:i.VACCINATIONS,"/").concat(e,"-").concat(t,"/"):"/".concat(null===i||void 0===i?void 0:i.SERVICE,"/").concat(null===i||void 0===i?void 0:i.VACCINATIONS,"/").concat(e,"-").concat(t,"/")},x=function(e,t,n){var a=n.split("?")[0];if(a.includes("/payment"))return"".concat(a.split("/payment")[0],"/");if(a.endsWith("-".concat(t,"/")))return a;var i=l.y1A[l.HgX];return"vi-VN"!==l.HgX?"/".concat(null===i||void 0===i?void 0:i.HEALTH_SCREENER,"/").concat(e,"-").concat(t,"/"):"/".concat(null===i||void 0===i?void 0:i.SERVICE,"/").concat(null===i||void 0===i?void 0:i.HEALTH_SCREENER,"/").concat(e,"-").concat(t,"/")},b=function(e,t,n){var a=n.split("?")[0];if(a.includes("/payment"))return"".concat(a.split("/payment")[0],"/");if(a.endsWith("-".concat(t,"/")))return a;var i=l.y1A[l.HgX];return"/".concat(null===i||void 0===i?void 0:i.WEIGHT_LOSS,"/").concat(e,"-").concat(t,"/")},N=function(e,t,n){var a=n.split("?")[0];if(a.includes("/payment"))return"".concat(a.split("/payment")[0],"/");if(a.endsWith("-".concat(t,"/")))return a;var i=l.y1A[l.HgX];return"vi-VN"!==l.HgX?"/".concat(null===i||void 0===i?void 0:i.EGG_FREEZING,"/").concat(e,"-").concat(t,"/"):"/".concat(null===i||void 0===i?void 0:i.SERVICE,"/").concat(null===i||void 0===i?void 0:i.EGG_FREEZING,"/").concat(e,"-").concat(t,"/")},w=function(e,t,n){var a=n.split("?")[0];if(a.includes("/payment"))return"".concat(a.split("/payment")[0],"/");if(a.endsWith("-".concat(t,"/")))return a;var i=l.y1A[l.HgX];return"vi-VN"!==l.HgX?"/".concat(null===i||void 0===i?void 0:i.IVF,"/").concat(e,"-").concat(t,"/"):"/".concat(null===i||void 0===i?void 0:i.SERVICE,"/").concat(null===i||void 0===i?void 0:i.IVF,"/").concat(e,"-").concat(t,"/")};function Y(e,t,n){navigator.clipboard?navigator.clipboard.writeText(e).then(t,n):function(e,t,n){var a=document.createElement("textarea");a.value=e,a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy"),t()}catch(i){n()}document.body.removeChild(a)}(e,t,n)}!function(e){e.VOUCHER="VOUCHER",e.REFERRAL="REFERRAL"}(d||(d={}));var k=function(e){return o.L[e.product_type]===o.V.weight_loss},A=function(e){return o.L[e.product_type]===o.V.screener},C=function(e){return o.L[e.product_type]===o.V.ivf},P=function(e){return o.L[e.product_type]===o.V.egg_freezing},D=function(e,t){if(!e)return t({id:"booking.question.idPassport.required",defaultMessage:"Please enter your ID/Passport number"});if(l.HgX===r.L.Malaysia){if(!/^\d{6}-\d{2}-\d{4}$/.test(e)&&!/^[A-Za-z]\d{8}$/.test(e))return t({id:"booking.question.idPassport.invalid",defaultMessage:"Please enter a valid ID/Passport number (Format: XXXXXX-XX-XXXX for ID or A12345678 for Passport)"})}if(l.HgX===r.L.Vietnam){if(!/^\d{12}$/.test(e)&&!/^[A-Za-z]\d{7}$/.test(e))return t({id:"booking.question.idPassport.invalid",defaultMessage:"Please enter a valid ID/Passport number (Format: XXXXXX-XX-XXXX for ID or A12345678 for Passport)"})}return""},M=function(e,t){if(!e)return t({id:"common.error.requiredField"});if(e.length>200)return t({id:"booking.question.addressLine.maxLength",defaultMessage:"Address must not exceed {count} characters"},{count:200});if(l.HgX===r.L.Vietnam&&!/^[a-zA-Z0-9\s,\-/#a\xe0\xe1\u1ea3\xe3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\xe2\u1ea7\u1ea5\u1ea9\u1eab\u1eade\xe8\xe9\u1ebb\u1ebd\u1eb9\xea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7i\xec\xed\u1ec9\u0129\u1ecbo\xf2\xf3\u1ecf\xf5\u1ecd\xf4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edd\u1edb\u1edf\u1ee1\u1ee3u\xf9\xfa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1y\u1ef3\xfd\u1ef7\u1ef9\u1ef5A\xc0\xc1\u1ea2\xc3\u1ea0\u0102\u1eb0\u1eae\u1eb2\u1eb4\u1eb6\xc2\u1ea6\u1ea4\u1ea8\u1eaa\u1eacE\xc8\xc9\u1eba\u1ebc\u1eb8\xca\u1ec0\u1ebe\u1ec2\u1ec4\u1ec6I\xcc\xcd\u1ec8\u0128\u1ecaO\xd2\xd3\u1ece\xd5\u1ecc\xd4\u1ed2\u1ed0\u1ed4\u1ed6\u1ed8\u01a0\u1edc\u1eda\u1ede\u1ee0\u1ee2U\xd9\xda\u1ee6\u0168\u1ee4\u01af\u1eea\u1ee8\u1eec\u1eee\u1ef0Y\u1ef2\xdd\u1ef6\u1ef8\u1ef4\u0111\u0110]+$/.test(e))return t({id:"booking.question.addressLine.invalid",defaultMessage:"Address can only contain letters, numbers, spaces, and these characters: , - / #"});return l.HgX!==r.L.Malaysia||/^[a-zA-Z0-9\s,\-/#]+$/.test(e)?"":t({id:"booking.question.addressLine.invalid",defaultMessage:"Address can only contain letters, numbers, spaces, and these characters: , - / #"})},E=function(e,t){if(!e)return t({id:"common.error.requiredField",defaultMessage:"This field is required"});if(e.length>100)return t({id:"booking.question.city.maxLength",defaultMessage:"City must not exceed {count} characters"},{count:100});if(l.HgX===r.L.Vietnam){if(!/^[a-zA-Z\sa\xe0\xe1\u1ea3\xe3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\xe2\u1ea7\u1ea5\u1ea9\u1eab\u1eade\xe8\xe9\u1ebb\u1ebd\u1eb9\xea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7i\xec\xed\u1ec9\u0129\u1ecbo\xf2\xf3\u1ecf\xf5\u1ecd\xf4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edd\u1edb\u1edf\u1ee1\u1ee3u\xf9\xfa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1y\u1ef3\xfd\u1ef7\u1ef9\u1ef5A\xc0\xc1\u1ea2\xc3\u1ea0\u0102\u1eb0\u1eae\u1eb2\u1eb4\u1eb6\xc2\u1ea6\u1ea4\u1ea8\u1eaa\u1eacE\xc8\xc9\u1eba\u1ebc\u1eb8\xca\u1ec0\u1ebe\u1ec2\u1ec4\u1ec6I\xcc\xcd\u1ec8\u0128\u1ecaO\xd2\xd3\u1ece\xd5\u1ecc\xd4\u1ed2\u1ed0\u1ed4\u1ed6\u1ed8\u01a0\u1edc\u1eda\u1ede\u1ee0\u1ee2U\xd9\xda\u1ee6\u0168\u1ee4\u01af\u1eea\u1ee8\u1eec\u1eee\u1ef0Y\u1ef2\xdd\u1ef6\u1ef8\u1ef4\u0111\u0110]+$/.test(e))return t({id:"booking.question.city.invalid",defaultMessage:"City can only contain letters and spaces"})}else if(!/^[a-zA-Z\s]+$/.test(e))return t({id:"booking.question.city.invalid",defaultMessage:"City can only contain letters and spaces"});return""},F=function(e,t){if(!e)return t({id:"common.error.requiredField",defaultMessage:"This field is required"});return/^\d{5}$/.test(e)?"":t({id:"booking.question.zipCode.invalid",defaultMessage:"Please enter a valid 5-digit postal code"})}},12034:function(e,t,n){n.d(t,{Ue:function(){return p},ZN:function(){return u}});var a=n(53513),i=n(63538),r=n(2445),o=n(73884),c=n(48894),l=n(13306),s=n(6442),d=(0,o.createContext)({isOpenPopupCollection:!1,setIsOpenPopupCollection:function(){},onSubmitPopupCollection:function(){return new Promise((function(){return!0}))}}),u=function(){return(0,o.useContext)(d)},p=function(e){var t=e.value,n=e.children,o=(0,s.A)().formatMessage;return(0,r.Y)(d.Provider,{value:(0,i.A)((0,a.A)({},t),{onSubmitPopupCollection:function(e){var t=e.callingCode,n=e.countryCode,a=e.phone;return c.F.collectionSubmitCTA({area_code:t,country_code:n,cta_text:o({id:"common.contactVia",defaultMessage:"Contact {name}"},{name:l.so.Zalo}),phone_number:a,source_url:window.location.href,messaging_app:l.so.Zalo})}}),children:n})}},92047:function(e,t,n){n.d(t,{Gp:function(){return _},IL:function(){return g},eZ:function(){return y}});var a=n(53513),i=n(63538),r=n(73884),o=n(27516),c=n(84655),l=n(59850),s=n(14265),d=n(84091),u=n(73419),p=n(12215),f=n.n(p),m=n(28543),g=function(e){var t=e.vaccinationDetail,n=e.vaccinationPackages,p=t.id,f=t.hospital_branch,g=t.organization,h=f.id,v=g.id,y=(0,r.useState)(!0),_=y[0],b=y[1],N=(0,r.useState)(n||[]),w=N[0],Y=N[1],k=(0,u.$)().locale,A=o.y[k],C=(0,r.useCallback)((function(e){var t=e.clinic_id,n=e.product_id,r=e.hospital_id,o=e.product_type,u=void 0===o?s.V.vaccine_package:o,p=e.site;b(!0);var f={clinic_id:t,product_id:n,hospital_id:r,product_type:u,site:p};c.W.withCached(l.R.GET_VACCINATION_PACKAGES,(function(){return(0,d.px)((0,d.$k)(l.R.GET_VACCINATION_PACKAGES,f),"GET")})).then((function(e){var t=(e.data||{}).packages;if(t&&(null===t||void 0===t?void 0:t.length)){var n=x(t.map((function(e){var t=e.id;return"".concat(t)})));Y(t.map((function(e){return(0,i.A)((0,a.A)({},e),{stock:n[e.id]})})))}})).finally((function(){return b(!1)}))}),[]);return(0,r.useEffect)((function(){p&&h&&v&&m.LG.includes(k)?C({product_id:p,clinic_id:h,hospital_id:v,site:A}):b(!1)}),[p,h,v]),(0,r.useEffect)((function(){if(null===n||void 0===n?void 0:n.length){var e=x(n.map((function(e){var t=e.id;return"".concat(t)})));Y(n.map((function(t){return(0,i.A)((0,a.A)({},t),{stock:e[t.id]})})))}}),[n]),(0,r.useMemo)((function(){return{loading:_,setLoading:b,vaccinationPackages:w,setVaccinationPackages:Y,fetchVaccinationPackages:C}}),[_,b,w,Y,C])},h="VC_PKG_MG_NUM",v=function(e,t){return e+Math.floor(Math.random()*(t-e+1))};function y(){try{return JSON.parse(f().get(h)||"{}")||{}}catch(e){return{}}}function _(e,t){var n=y();return n[e]?n[e]=t>0?t:v(3,6):n[e]=v(3,6),f().set(h,JSON.stringify(n)),n}function x(e){var t=y(),n=!0,a=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var c=r.value;t[c]||(t[c]=v(3,6))}}catch(l){a=!0,i=l}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return Object.keys(t).length&&f().set(h,JSON.stringify(t)),t}},73:function(e,t,n){n.d(t,{Kt:function(){return o},dm:function(){return c}});var a,i=n(38971),r=n(2763),o=(a={},(0,i.A)(a,r.L.Vietnam,"https://m.me/hellobacsi"),(0,i.A)(a,r.L.Malaysia,"https://m.me/HelloDoktorMY"),a),c=(0,i.A)({},r.L.Malaysia,"https://wa.me/60163469577");(0,i.A)({},r.L.Vietnam,"https://zalo.me/3186943975751313634")},28543:function(e,t,n){n.d(t,{LG:function(){return o},lL:function(){return i},zF:function(){return a}});var a,i,r=n(2763),o=[r.L.Vietnam,r.L.Malaysia];!function(e){e[e.available=1]="available",e[e.out_of_stock=0]="out_of_stock",e[e.limit=2]="limit"}(a||(a={})),function(e){e.PRICE="price",e.DISCOUNT="discount"}(i||(i={}))}}]);