"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7730],{"37Qu":function(e,t,n){n.d(t,{B:function(){return BmiForm},F:function(){return FitnessToolUnitPicker},H:function(){return M},N:function(){return NewsletterCheckbox},Q:function(){return Question1Label},a:function(){return Question2Label},b:function(){return Question2Description}});var l=n("vEfc"),a=n("q1tI"),o=n("wUmw"),i=n("soWg"),r=n("2O1/"),s=n("/npG"),c=n("SPK5"),u=n("Eso5"),d=n("8vDj"),m=n("Zo/N"),p=n("mYVa"),h=n("lSJj"),g=n("TIp3"),E=n("OAL+"),v=n("iuhU"),C=n("C/sX"),b=n("aHnw"),f=n("uzh1"),y=n("NXxl"),I=n("sFNn"),T=n("eM6a"),N=n("jjeI"),O=n("NEg/"),x=n("8PyR"),_=n("4BRW"),S=n("xrdX"),k=n("mx4j");let Question1Label=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:o}=(0,I.u)(),i=t?{}:Object.assign({size:"p2"},n),r=t||f.T;return a.createElement(r,Object.assign({},i),o("bmi.question.weightLossSupport"))},Question2Label=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:o}=(0,I.u)(),i=t?{}:Object.assign({size:"p2"},n),r=t||f.T;return a.createElement(r,Object.assign({},i),o("bmi.question.glp1Awareness"))},Question2Description=e=>{var{LabelWrapper:t}=e,n=(0,l.a)(e,["LabelWrapper"]);let{t:o}=(0,I.u)(),i=t?{}:Object.assign({size:"p2"},n),r=t||f.T;return a.createElement(r,Object.assign({},i),o("bmi.question.glp1Awareness.desc"))},A=(0,a.createContext)({});var P=(0,s.k)(()=>({label:{marginTop:2,cursor:"pointer",userSelect:"none"}}));let NewsletterCheckbox=e=>{var{labelTextProps:t,checked:n,LabelWrapper:o,useCollapse:i=!0}=e,r=(0,l.a)(e,["labelTextProps","checked","LabelWrapper","useCollapse"]);let{t:s}=(0,I.u)(),[d,m]=(0,a.useState)(!i),[p,h]=(0,a.useState)(!0),[g,E]=(0,a.useState)(n),v=o?{}:Object.assign({size:"p3"},t),C=o||f.T,{classes:y}=P(void 0,{name:"NewsletterCheckbox"});return a.createElement(c.k,{gap:8,align:"flex-start"},a.createElement(b.d,Object.assign({},r,{label:void 0,size:"sm",checked:g,onChange:e=>{p?h(!1):E(e.currentTarget.checked)},styles:{labelWrapper:{display:"none"}}})),a.createElement(u.x,null,a.createElement(C,Object.assign({},v,{onClick:()=>{i&&m(e=>!e)},className:y.label,lineClamp:d?void 0:1}),s("bmi.newsletter.label"))))},FitnessToolUnitPicker=({displayValue:e,field:t,onChange:n})=>{let l=(0,d.rZ)(),o=l.colors.gray[1],i="height"===t?[{label:"cm",system:"metric"},{label:"ft",system:"imperial"}]:[{label:"kg",system:"metric"},{label:"lbs",system:"imperial"}];return a.createElement(m.v,{position:"bottom-end",withinPortal:!0,offset:0,styles:{dropdown:{backgroundColor:l.white,border:`${(0,p.h)(1)} solid ${o}`,borderRadius:12,boxShadow:"0px 0px 1px 0px #0000000A,0px 2px 8px 0px #0000000A,0px 10px 16px 0px #0000000A",padding:(0,p.h)(4),minWidth:(0,p.h)(90)},item:{fontSize:l.fontSizes.sm,lineHeight:1.4,padding:`${(0,p.h)(6)} ${(0,p.h)(10)}`,borderRadius:l.radius.xs,color:l.colors.dark[9],"&[data-hovered]":{backgroundColor:"transparent"}}}},a.createElement(m.v.Target,null,a.createElement(h.k,{type:"button",sx:e=>({height:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%",paddingRight:e.spacing.xs,gap:4})},a.createElement(g.x,{component:"span",size:"sm",sx:{lineHeight:1}},e),a.createElement(N.C,{style:{width:18,height:18}}))),a.createElement(m.v.Dropdown,null,i.map(o=>{let i=e===o.label;return a.createElement(m.v.Item,{key:o.label,onClick:()=>n(o.system,t),sx:{backgroundColor:i?l.colors.gray[1]:void 0,"&[data-hovered]":{backgroundColor:i?l.colors.gray[1]:"transparent"}}},o.label)})))},DefaultForm=e=>{var t,n,i,r,s,d,m;let{t:p,locale:h}=(0,I.u)(),{classes:g={}}=(0,a.useContext)(O.C),{control:C,bmiGenerated:f,linkTool:y,submitProps:N,withAdditionalQuestion:x,classes:k={},enableUnitPicker:P,unitSystem:L,unitHeight:w,unitWeight:R,onUnitChange:B}=(0,a.useContext)(A),H={body:{alignItems:"center"}};return a.createElement(T.H,Object.assign({formLayout:"default"},e),a.createElement(M,{isMobile:e.isMobile,gutter:4},a.createElement(E.K,{spacing:4,px:16},a.createElement(o.Qr,{name:"gender",control:C,rules:null===(t=f.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>a.createElement("div",null,a.createElement(M.GenderControl,{LabelWrapper:M.Label,error:void 0,onChange:e,gap:4}),(null==t?void 0:t.message)&&a.createElement(M.Error,{label:t.message}))}),a.createElement(o.Qr,{name:"age",control:C,rules:null===(n=f.age)||void 0===n?void 0:n.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(M.InputNumber,{label:a.createElement(M.Label,null,p("bmi.ageInput")),placeholder:p("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:n,min:0,rightSection:p("bmi.ageInput.desc"),classNames:{rightSection:k.inputRightSection}}),(null==l?void 0:l.message)&&a.createElement(M.Error,{label:l.message}))}),a.createElement(o.Qr,{name:"height",control:C,rules:null===(i=f.height)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(M.InputNumber,{label:a.createElement(M.Label,null,p("bmi.heightInput")),placeholder:p("tools.inputPlaceholder",{content:"imperial"===L?6:170}),name:e,value:t,onChange:n,min:0,precision:1,inputMode:"decimal",rightSection:P?a.createElement(FitnessToolUnitPicker,{displayValue:w,field:"height",onChange:B}):p("bmi.heightInput.desc"),rightSectionWidth:70,classNames:{rightSection:k.inputRightSection},styles:P?void 0:()=>({rightSection:{paddingRight:0}})}),(null==l?void 0:l.message)&&a.createElement(M.Error,{label:l.message}))}),a.createElement(o.Qr,{name:"weight",control:C,rules:null===(r=f.weight)||void 0===r?void 0:r.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(M.InputNumber,{label:a.createElement(M.Label,null,p("bmi.weightInput")),placeholder:p("tools.inputPlaceholder",{content:"imperial"===L?130:60}),name:e,value:t,onChange:n,precision:1,inputMode:"decimal",min:0,rightSection:P?a.createElement(FitnessToolUnitPicker,{displayValue:R,field:"weight",onChange:B}):p("bmi.weightInput.desc"),rightSectionWidth:70,classNames:{rightSection:k.inputRightSection},styles:P?void 0:()=>({rightSection:{paddingRight:0}})}),(null==l?void 0:l.message)&&a.createElement(M.Error,{label:l.message}))})),x?a.createElement(a.Fragment,null,a.createElement(E.K,{spacing:4,px:16},a.createElement(o.Qr,{name:"question1",control:C,rules:null===(s=f.question1)||void 0===s?void 0:s.rule,render:({field:{value:e,onChange:t,name:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(b.R.Group,{name:n,value:e,onChange:t,sx:{flex:1},label:a.createElement(Question1Label,{LabelWrapper:M.Label}),size:"lg"},a.createElement(c.k,{gap:"lg"},a.createElement(b.R,{size:"sm",value:"1",label:a.createElement(M.OptionLabel,null,p("switchBtn.yes")),styles:H}),a.createElement(b.R,{size:"sm",value:"0",label:a.createElement(M.OptionLabel,null,p("switchBtn.no")),styles:H}))),(null==l?void 0:l.message)&&a.createElement(M.Error,{label:l.message}))}),a.createElement(o.Qr,{name:"question2",control:C,rules:null===(d=f.question2)||void 0===d?void 0:d.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement("div",null,a.createElement(b.R.Group,{name:e,value:t,onChange:n,sx:{flex:1},label:a.createElement(Question2Label,{LabelWrapper:M.Label}),size:"lg",description:h!==_.L.Malaysia&&a.createElement(Question2Description,{LabelWrapper:M.SubLabel})},a.createElement(c.k,{gap:"lg"},a.createElement(b.R,{size:"sm",value:"1",label:a.createElement(M.OptionLabel,null,p("switchBtn.yes")),styles:H}),a.createElement(b.R,{size:"sm",value:"0",label:a.createElement(M.OptionLabel,null,p("switchBtn.no")),styles:H}))),(null==l?void 0:l.message)&&a.createElement(M.Error,{label:l.message}))})),a.createElement(u.x,{className:(0,v.default)(k.newsletterBlock,g.newsletterBlock)},a.createElement(E.K,{spacing:8,px:16,py:12},a.createElement(o.Qr,{name:"newsletter",control:C,rules:null===(m=f.newsletter)||void 0===m?void 0:m.rule,render:e=>{var t=e.field,{value:n,onChange:o,name:i}=t,r=(0,l.a)(t,["value","onChange","name"]);return a.createElement(NewsletterCheckbox,Object.assign({size:"sm",onChange:e=>o(e.currentTarget.checked),name:i,checked:!!n},r))}}),a.createElement(T.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${S.v[h]}/${y}`,type:"submit",fullWidth:!0},N),p("bmi.submit"))))):a.createElement(u.x,{px:16,sx:{paddingBottom:8}},a.createElement(T.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${S.v[h]}/${y}`,type:"submit",fullWidth:!0},N),p("bmi.submit")))))};var L=(0,s.k)(e=>({newsletterBlock:{backgroundColor:e.colors.neutral[0],borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",".bmi-btn":{marginTop:0}},inputRightSection:{fontSize:(0,p.h)(13),lineHeight:(0,p.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8,whiteSpace:"nowrap"}}));let InlineForm=e=>{var t,n,i,r,s,d,m,h;let{t:g,locale:C}=(0,I.u)(),{control:y,bmiGenerated:N,isTouched:k,linkTool:P,submitProps:L,withAdditionalQuestion:w,enableUnitPicker:M,unitSystem:R,unitHeight:B,unitWeight:H,onUnitChange:D}=(0,a.useContext)(A),{classes:G={},variant:U}=(0,a.useContext)(O.C),{classes:Y={}}=(0,a.useContext)(A);return a.createElement(T.H,Object.assign({formLayout:"inline"},e),a.createElement(o.Qr,{name:"gender",control:y,rules:null===(t=N.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>a.createElement(T.H.FormRow,null,a.createElement(T.H.BorderInlineControl,{label:g("tools.selectGender"),width:"none",errorMess:k&&(null==t?void 0:t.message)},a.createElement(x.G,{type:"radio",hideLabel:!0,error:k?a.createElement(a.Fragment,null):"",onChange:e})))}),a.createElement(o.Qr,{name:"age",control:y,rules:null===(n=N.age)||void 0===n?void 0:n.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(T.H.FormRow,null,a.createElement(T.H.BorderInlineControl,{label:g("bmi.ageInput"),errorMess:k&&(null==l?void 0:l.message)},a.createElement(b.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:n,error:k&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",min:0,rightSection:a.createElement(T.H.Unit,null,g("tools.yearsOld")),styles:()=>({rightSection:{width:"auto"}})})))}),a.createElement(o.Qr,{name:"height",control:y,rules:null===(i=N.height)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(T.H.FormRow,null,a.createElement(T.H.BorderInlineControl,{label:g("bmi.heightInput"),errorMess:k&&(null==l?void 0:l.message)},a.createElement(b.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"imperial"===R?6:170}),name:e,value:t,onChange:n,min:0,precision:1,inputMode:"decimal",error:k&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",rightSection:M?a.createElement(FitnessToolUnitPicker,{displayValue:B,field:"height",onChange:D}):a.createElement(T.H.Unit,{styles:{root:{paddingRight:0}}},g("bmi.heightInput.desc")),rightSectionWidth:70,styles:M?void 0:()=>({rightSection:{paddingRight:0}})})))}),a.createElement(o.Qr,{name:"weight",control:y,rules:null===(r=N.weight)||void 0===r?void 0:r.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(T.H.FormRow,null,a.createElement(T.H.BorderInlineControl,{label:g("bmi.weightInput"),errorMess:k&&(null==l?void 0:l.message)},a.createElement(b.I.Number,{placeholder:g("tools.inputPlaceholder",{content:"imperial"===R?130:60}),name:e,value:t,onChange:n,error:k&&(null==l?void 0:l.message)?a.createElement(a.Fragment,null):"",precision:1,inputMode:"decimal",min:0,rightSection:M?a.createElement(FitnessToolUnitPicker,{displayValue:H,field:"weight",onChange:D}):a.createElement(T.H.Unit,{styles:{root:{paddingRight:0}}},g("bmi.weightInput.desc")),rightSectionWidth:70,styles:M?void 0:()=>({rightSection:{paddingRight:0}})})))}),w?a.createElement(a.Fragment,null,a.createElement(o.Qr,{name:"question1",control:y,rules:null===(s=N.question1)||void 0===s?void 0:s.rule,render:({field:{value:e,onChange:t,name:n},fieldState:{error:l}})=>a.createElement(T.H.FormRow,null,a.createElement(b.R.Group,{name:n,value:e,onChange:t,sx:{flex:1},label:a.createElement(f.T,{size:"s4",weight:"semiBold",span:!0},g("bmi.question.weightLossSupport")),size:"lg"},a.createElement(c.k,{gap:"lg",sx:{paddingTop:(0,p.h)(8)}},a.createElement(b.R,{size:"sm",value:"1",label:g("switchBtn.yes")}),a.createElement(b.R,{size:"sm",value:"0",label:g("switchBtn.no")}))),k&&(null==l?void 0:l.message)&&a.createElement(b.e,{label:l.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),a.createElement(o.Qr,{name:"question2",control:y,rules:null===(d=N.question2)||void 0===d?void 0:d.rule,render:({field:{name:e,value:t,onChange:n},fieldState:{error:l}})=>a.createElement(T.H.FormRow,null,a.createElement(b.R.Group,{name:e,value:t,onChange:n,sx:{flex:1},label:a.createElement(f.T,{size:"s4",weight:"semiBold",span:!0},g("bmi.question.glp1Awareness")),size:"lg",description:C!==_.L.Malaysia&&a.createElement(f.T,{style:{fontSize:"10px"},span:!0},g("bmi.question.glp1Awareness.desc"))},a.createElement(c.k,{gap:"lg",sx:{paddingTop:(0,p.h)(8)}},a.createElement(b.R,{size:"sm",value:"1",label:g("switchBtn.yes")}),a.createElement(b.R,{size:"sm",value:"0",label:g("switchBtn.no")}))),k&&(null==l?void 0:l.message)&&a.createElement(b.e,{label:l.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),"gray"===U||"violet"===U?a.createElement(a.Fragment,null,a.createElement(o.Qr,{name:"newsletter",control:y,rules:null===(m=N.newsletter)||void 0===m?void 0:m.rule,render:e=>{var t=e.field,{value:n,onChange:o,name:i}=t,r=(0,l.a)(t,["value","onChange","name"]);return a.createElement(T.H.FormRow,null,a.createElement(b.d,Object.assign({size:"sm",label:a.createElement(f.T,{size:"p3"},g("bmi.newsletter.label")),onChange:e=>o(e.currentTarget.checked),name:i,checked:!!n},r)))}}),a.createElement(T.H.FormRow,{className:(0,v.default)(G.submitWrapper)},a.createElement(T.H.Submit,Object.assign({className:(0,v.default)("bmi-btn bmi--btn-submit",G.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${S.v[C]}/${P}`,type:"submit"},L),g("bmi.submit")))):a.createElement(T.H.FormRow,{py:16,className:(0,v.default)(Y.newsletterBlock,G.newsletterBlock)},a.createElement(E.K,{spacing:16},a.createElement(o.Qr,{name:"newsletter",control:y,rules:null===(h=N.newsletter)||void 0===h?void 0:h.rule,render:e=>{var t=e.field,{value:n,onChange:o,name:i}=t,r=(0,l.a)(t,["value","onChange","name"]);return a.createElement(NewsletterCheckbox,Object.assign({size:"sm",labelTextProps:{size:"p4"},onChange:e=>o(e.currentTarget.checked),name:i,checked:!!n,useCollapse:!1},r))}}),a.createElement(u.x,{className:(0,v.default)(G.submitWrapper)},a.createElement(T.H.Submit,Object.assign({className:(0,v.default)("bmi-btn bmi--btn-submit",G.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${S.v[C]}/${P}`,type:"submit"},L),g("bmi.submit")))))):a.createElement(T.H.FormRow,{className:(0,v.default)(G.submitWrapper)},a.createElement(T.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${S.v[C]}/${P}`,type:"submit"},L),g("bmi.submit"))))},BmiForm=e=>{var{value:t,onChange:n,onSubmit:s,bmiGenerated:c,bmiUnit:u,defaultUnitSystem:d,enableUnitPicker:m=!0,formLayout:p="default",submitProps:h,withAdditionalQuestion:g,isMobile:E}=e,v=(0,l.a)(e,["value","onChange","onSubmit","bmiGenerated","bmiUnit","defaultUnitSystem","enableUnitPicker","formLayout","submitProps","withAdditionalQuestion","isMobile"]);let{classes:C}=L(void 0,{name:"BmiForm"}),{locale:b}=(0,I.u)(),[f,T]=(0,a.useState)(!1),N=(0,a.useMemo)(()=>d||"metric",[d]),[O,x]=(0,a.useState)(N),{control:_,handleSubmit:S,setValue:P,watch:w}=(0,o.cI)({defaultValues:{question1:void 0,question2:void 0,newsletter:!0}}),M=w(),{getHealthToolLink:R}=(0,i.u)(b),B=(0,a.useMemo)(()=>R(r.H.OVULATION),[R]),H="imperial"===O?"ft":"cm",D="imperial"===O?"lbs":"kg",convertHeightToCm=e=>"imperial"===O?30.48*e:e,convertWeightToKg=e=>"imperial"===O?.45359237*e:e,onInValid=()=>{T(!0)};(0,a.useEffect)(()=>{Object.keys(t||{}).forEach(e=>{P(e,null==t?void 0:t[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})})},[t]),(0,a.useEffect)(()=>{n&&n(M)},[M]),(0,a.useEffect)(()=>{x(N)},[N]);let G=Object.assign({onSubmit:S(e=>(0,l._)(void 0,void 0,void 0,function*(){let t="number"==typeof e.height?e.height:Number(e.height),n="number"==typeof e.weight?e.weight:Number(e.weight),l=m?Object.assign(Object.assign({},e),{bmi:(0,k.F)({height:convertHeightToCm(t),weight:convertWeightToKg(n)}),unit:O}):(()=>{let l=u.heightConvert(t),a=u.weightConvert(n);return Object.assign(Object.assign({},e),{height:l,weight:a,bmi:(0,k.F)({height:l,weight:a})})})();onInValid(),s&&s(l)}),onInValid)},v);return a.createElement(y.T,{variant:y.C.LEADGEN},a.createElement(A.Provider,{value:{control:_,bmiGenerated:c,isTouched:f,linkTool:B,submitProps:h,withAdditionalQuestion:g,classes:C,enableUnitPicker:m,unitSystem:O,unitHeight:H,unitWeight:D,onUnitChange:(e,t)=>{m&&e!==O&&(x(e),P("height","",{shouldDirty:!0,shouldValidate:!1}),P("weight","",{shouldDirty:!0,shouldValidate:!1}))}}},"inline"===p?a.createElement(InlineForm,Object.assign({},G)):a.createElement(DefaultForm,Object.assign({},G,{isMobile:E}))))},w=(0,a.createContext)({}),Error=e=>{let{errorLabelSize:t}=(0,a.useContext)(w);return a.createElement(b.e,Object.assign({textProps:{size:t},sx:{marginTop:5}},e))};var M=Object.assign(e=>{var t,n,o,i,r,s,{children:c,isMobile:u}=e,d=(0,l.a)(e,["children","isMobile"]);let m=Object.assign({isMobile:u,labelSize:null!==(t=d.labelSize)&&void 0!==t?t:u?"p2":"s4",subLabelSize:null!==(n=d.subLabelSize)&&void 0!==n?n:"subText",optionLabelSize:null!==(o=d.optionLabelSize)&&void 0!==o?o:u?"p2":"s4",inputSize:null!==(i=d.inputSize)&&void 0!==i?i:u?"sm":"md",gutter:null!==(r=d.gutter)&&void 0!==r?r:u?4:12,errorLabelSize:null!==(s=d.errorLabelSize)&&void 0!==s?s:"p3"},d);return a.createElement(w.Provider,{value:m},c)},{Row:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{gutter:o}=(0,a.useContext)(w);return a.createElement(C.r,Object.assign({gutter:o},n),t)},Col:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);return a.createElement(C.r.Col,Object.assign({span:12},n),t)},SubLabel:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{subLabelSize:o}=(0,a.useContext)(w);return a.createElement(f.T,Object.assign({size:o},n),t)},Label:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{labelSize:o}=(0,a.useContext)(w);return a.createElement(f.T,Object.assign({size:o,weight:"semiBold"},n,{span:!0}),t)},OptionLabel:e=>{var{children:t}=e,n=(0,l.a)(e,["children"]);let{optionLabelSize:o}=(0,a.useContext)(w);return a.createElement(f.T,Object.assign({size:o,weight:"regular"},n,{span:!0}),t)},Input:b.I,InputNumber:e=>{var{error:t}=e,n=(0,l.a)(e,["error"]);let{inputSize:o}=(0,a.useContext)(w);return a.createElement("div",null,a.createElement(b.I.Number,Object.assign({size:o},n)),t&&a.createElement(Error,{label:t}))},GenderControl:e=>{let{inputSize:t}=(0,a.useContext)(w);return a.createElement(x.G,Object.assign({size:t},e))},Error})},"62F8":function(e,t,n){n.d(t,{P:function(){return PostContent},T:function(){return o},U:function(){return i},a:function(){return ProfileDetail},b:function(){return Z}});var l,a,o,i,r=n("vEfc"),s=n("q1tI"),c=n("Wgwc"),u=n.n(c),d=n("PGYf"),m=n("DJ4l"),p=n("XsRk"),h=n("IQVP"),g=n("d/ZZ"),E=n("vWP/"),v=n("/npG"),C=n("eito"),b=n("bpvy"),f=n("SPK5"),y=n("8vDj"),I=n("Wbba"),T=n("RBzE"),N=n("/Llt"),O=n("HG5m"),x=n("sFNn"),_=n("iBNF"),S=n("Frvz"),k=n("h84G"),A=n("aHnw"),P=n("uzh1"),L=n("abax"),w=n("rBCA"),M=n("aZjv"),R=n("p4EI"),B=n("tuDO");let H=w.Z.div` padding: 0.5rem 1rem 1rem; line-height: 1.5; word-break: break-word; .post-content-replying { margin-right: 5px; cursor: pointer; display: inline-block; &.tag-only { margin-right: 0; } } .post-content { display: inline; white-space: pre-wrap; /* > *:first-child, */ > mention:first-child ~ * { &:not(ul), &:not(ol) { display: inline-block; } } > mention:first-child { margin-right: 5px; } &.has-see-more { *:last-child { &:not(ul), &:not(ol) { display: inline; } } } img { width: 100%; height: unset; } ul, ol { list-style-position: inside; padding-left: 1rem; display: block; } ol { list-style-type: decimal; } ul { list-style-type: disc; } mention { color: ${e=>e.mentionColor||"#1890ff"}; padding-right: 4px; :hover { text-decoration: underline; } } .markdown { white-space: normal; p, ul, ol { margin-top: 1em; &:first-child { margin-top: 0; } } li { margin-top: 0.5em; &:first-child { margin-top: 0; } } } } `,D=w.Z.span` overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: ${e=>e.line||1}; display: -webkit-box; -webkit-box-orient: vertical; &.post-content-show-all { display: block; } `,G=w.Z.span` padding-left: 2px; background-color: ${_.r.colors.white}; bottom: 8px; position: absolute; right: 0; z-index: 10; cursor: pointer; `;var U=(0,v.k)(e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}}));let PostContent=e=>{var{trackingCategory:t,url:n,className:l,style:a,replyingTo:o,mentionedUser:i,description:c,disableShortenContent:u,mentions:d=[],maxChars:m=1e3,maxLines:p,hideShowAllBtn:h,styles:E,onClickCreatePostLink:v}=e,b=(0,r.a)(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","maxLines","hideShowAllBtn","styles","onClickCreatePostLink"]);let{classes:f,theme:y}=U(void 0,{name:"PostContent",styles:E}),[I,T]=(0,s.useState)(!1),[O,_]=(0,s.useState)(!1),{t:S}=(0,x.u)(),{authActionWrapper:k}=(0,M.iV)(),[A,P]=(0,s.useState)(!1),L=(0,R.d)((0,R.b)(c||"","display"),d),{action:{sanitizeFunction:w}}=(0,s.useContext)(g.T),B=(0,s.useMemo)(()=>{let e=w(L||"");if(u||I)return{showContent:e,hasSeeMore:!1};let t=e.slice(0,m),n=m-((t.match(/<\/div>/g)||[]).length-1)*27,l=(t||"").slice(0,n<40?40:n),a=w(l.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),o=a.lengths.createElement(s.Fragment,null,"... ",!h&&s.createElement(C.e,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),k(()=>T(!0))},className:"see-more-text"},t?{"data-event-category":t,"data-event-action":"See More Post Click","data-event-label":n}:{}),S("post.seeMore"))),[h,n,t]),handleCreatePostClick=e=>{e.preventDefault(),null==v||v()},isEllipsisActive=e=>e.scrollHeight>e.clientHeight;return(0,s.useEffect)(()=>{var e;return null===(e=null==z?void 0:z.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.addEventListener("click",handleCreatePostClick,{passive:!0})}),()=>{var e;null===(e=null==z?void 0:z.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.removeEventListener("click",handleCreatePostClick,!1)})}},[u,I,L]),(0,s.useEffect)(()=>{V.current&&L&&p&&(isEllipsisActive(V.current)?_(!0):_(!1))},[L,p]),s.createElement(s.Fragment,null,F&&s.createElement(N.P,{isOpen:A,onClose:()=>P(!1),expertId:String(null==i?void 0:i.partnerId)}),s.createElement(H,Object.assign({ref:z,className:`${f.root} ${l} no-replace-click`,style:a,mentionColor:y.fn.primaryColor()},b),Y&&s.createElement(C.e,{onClick:()=>F&&P(!0),className:"post-content-replying"},"@",Y),(null==c?void 0:c.startsWith("[mention+id="))&&s.createElement("span",{className:"post-content-replying tag-only",style:{color:y.fn.primaryColor()}},"@"),p?s.createElement(s.Fragment,null,s.createElement(D,{dangerouslySetInnerHTML:{__html:L},className:`post-content-line ${I?"post-content-show-all":""}`,line:p,ref:V}),O&&!I&&s.createElement(G,null,$())):s.createElement(s.Fragment,null,s.createElement("span",{dangerouslySetInnerHTML:{__html:B.showContent},className:`post-content ${B.hasSeeMore?"has-see-more":""}`}),B.hasSeeMore&&!I&&s.createElement("span",null,$()))))},CategoryText=({children:e,className:t=""})=>s.createElement("div",{className:`l5fL1xL ${t}`},e),Title=({children:e,className:t=""})=>s.createElement("div",{className:`L-aGKo7 ${t}`},e),Thumbnail=({src:e,defaultSrc:t=I.C.getAssetPath("logo/logomark.png"),ratio:n=1,size:l=80,radius:a=8,alt:o,className:i=""})=>s.createElement("div",{className:i},s.createElement("div",{className:"DZmf3s7",style:{width:`${l}px`,height:`${l*n}px`,borderRadius:`${a}px`}},s.createElement(T.I,{src:e,backupSrc:t,alt:o}))),CardArticle=({category:e,title:t,src:n,children:l,className:a=""})=>s.createElement("div",{className:`eaR8ATZ ${a}`},s.createElement(Thumbnail,{src:n}),s.createElement("div",{className:"xM-7K0a"},l||s.createElement("div",null,e&&s.createElement(CategoryText,null,e),t&&s.createElement(Title,null,t))));CardArticle.CategoryText=CategoryText,CardArticle.Title=Title;let ArticleCard=({featureImage:e,postTitle:t,author:n,categories:l,isReview:a,className:o=""})=>{var i;return s.createElement(CardArticle,{src:e,className:o},s.createElement(s.Fragment,null,s.createElement(CardArticle.CategoryText,null,null===(i=null==l?void 0:l[0])||void 0===i?void 0:i.name),s.createElement(CardArticle.Title,null,t),s.createElement(N.d,{avatarProps:Object.assign(Object.assign({},n),{size:32}),subTitle:s.createElement(s.Fragment,null,a?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD",s.createElement(N.d.SubDivider,null),"Dec 12, 2022")})))};var Y={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};let F=(0,s.createContext)({}),About=({className:e=""})=>{var t,n,l,a,o;let{t:i}=(0,x.u)(),{info:r,isMarryBaby:c,currentPageUrl:u}=(0,s.useContext)(F),d=null==r?void 0:r.data,m=[{type:O.S.LinkedIn,icon:I.C.getAssetPath("linkedin.svg"),url:null===(t=null==r?void 0:r.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:O.S.Instagram,icon:I.C.getAssetPath("instagram.svg"),url:null===(n=null==r?void 0:r.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:O.S.Facebook,icon:I.C.getAssetPath("facebook.svg"),url:null===(l=null==r?void 0:r.contact)||void 0===l?void 0:l.facebook,eventAction:"Doctor Profile - Facebook"},{type:O.S.Youtube,icon:I.C.getAssetPath("youtube.svg"),url:null===(a=null==r?void 0:r.contact)||void 0===a?void 0:a.youtube,eventAction:"Doctor Profile - Youtube"},{type:O.S.Tiktok,icon:I.C.getAssetPath("tiktok.svg"),url:null===(o=null==r?void 0:r.contact)||void 0===o?void 0:o.tiktok,eventAction:"Doctor Profile - TikTok"}],p=[...((null==r?void 0:r.experiences)||[]).length>0?[{key:"experience",heading:i("profilePanel.experience"),iconSrc:I.C.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:s.createElement("div",{className:Y.accBodyGroup},null==r?void 0:r.experiences.map((e,t)=>s.createElement("div",{className:Y.accBodyGroupItem,key:String(t)},s.createElement("div",{className:Y.accBodyGroupTitle},e.title),s.createElement("div",{className:Y.accBodyGroupDesc},s.createElement("p",null,e.organization),s.createElement("p",null,e.duration)))))}]:[],...((null==r?void 0:r.educations)||[]).length>0?[{key:"education",heading:i("profilePanel.education"),iconSrc:I.C.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:s.createElement("div",{className:Y.accBodyGroup},null==r?void 0:r.educations.map((e,t)=>s.createElement("div",{className:Y.accBodyGroupItem,key:String(t)},s.createElement("div",{className:Y.accBodyGroupTitle},e.schoolName),s.createElement("div",{className:Y.accBodyGroupDesc},s.createElement("p",null,e.study),s.createElement("p",null,e.completedYear)))))}]:[],...((null==r?void 0:r.awards)||[]).length>0?[{key:"awards",heading:i("profilePanel.awards"),iconSrc:I.C.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:s.createElement("div",{className:Y.accBodyGroup},null==r?void 0:r.awards.map((e,t)=>s.createElement("div",{className:Y.accBodyGroupTitle,key:t},e.title)))}]:[]],h=(null==r?void 0:r.relatedPosts)||[],g=m.filter(e=>e.url);return s.createElement("div",{className:`${Y.container} ${e}`,"data-is-marrybaby":c},p.length>0&&s.createElement(b.U,{defaultValue:p[0].key,chevron:c?s.createElement("div",{className:Y.mbChevronWrapper},s.createElement(E.Z,{size:12,color:_.r.mbColors.midGray})):s.createElement(E.Z,{color:_.r.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},p.map(e=>s.createElement(b.U.Item,{key:e.key,value:e.key},s.createElement(b.U.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":u},s.createElement("div",{className:Y.header},s.createElement("div",{className:Y.headingIcon},s.createElement("img",{src:e.iconSrc,loading:"lazy"})),s.createElement("div",{className:Y.heading},e.heading))),s.createElement(b.U.Panel,null,e.panel)))),h.length>0&&s.createElement("div",{className:Y.group},s.createElement("div",{className:Y.subTitle},s.createElement("img",{className:Y.subIcon,src:I.C.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),i("profilePanel.publishedArticles")),s.createElement("div",{className:`${Y.relatedList}`},null==r?void 0:r.relatedPosts.map(e=>s.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Y.articleCardLink},s.createElement(ArticleCard,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==d?void 0:d.name,avatar:null==d?void 0:d.avatar}}),{isReview:!0})))))),g.length>0&&s.createElement("div",{className:Y.group},s.createElement("div",{className:Y.subTitle},s.createElement("img",{className:Y.subIcon,src:I.C.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),i("profilePanel.socialLinks")),s.createElement("div",{className:Y.groupBody},s.createElement(f.k,null,m.map((e,t)=>e.url&&s.createElement("div",{className:Y.socialItem,key:t},s.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},s.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":u}))))))))};var z={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};let PostCard$1=({post:e,className:t=""})=>{var n,l,a,o,i,r,c,u;let{t:d}=(0,x.u)(),{data:{userInfo:m,env:{togetherBasePath:p}}}=(0,s.useContext)(g.T),{authActionWrapper:h,authorProps:E,currentPageUrl:v}=(0,s.useContext)(F),C=`${window.location.origin}${p}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`${z.container} ${t}`},s.createElement("div",{className:z.header},s.createElement("div",{className:z.question},d("profilePanel.question")," ",s.createElement(A.b,{className:z.questionTitle,href:"#",onClick:()=>{(null==m?void 0:m.id)||null==h||h(()=>window.location.href=C,{_location:C})}},"#",null==e?void 0:e.title)),s.createElement("div",{className:z.community},null===(l=null==e?void 0:e.community)||void 0===l?void 0:l.name," - ",null==e?void 0:e.createdTime)),s.createElement("div",{className:z.questionCard},s.createElement(N.C,Object.assign({className:"card-author"},E,{role:"user",avatarIcon:s.createElement(S.Z,null),subLine:s.createElement(N.C.SubTextRow,null,s.createElement(N.C.SubText,null,null===(i=null===(o=null===(a=null==e?void 0:e.expertAnswer)||void 0===a?void 0:a.answer)||void 0===o?void 0:o[0])||void 0===i?void 0:i.createdTime))})),s.createElement(PostContent,{className:"post-content-wrapper",description:(null===(u=null===(c=null===(r=null==e?void 0:e.expertAnswer)||void 0===r?void 0:r.answer)||void 0===c?void 0:c[0])||void 0===u?void 0:u.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),s.createElement(L.B,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":v,size:"md",onClick:()=>{(null==m?void 0:m.id)?window.location.href=C:null==h||h(()=>window.location.href=C,{_location:C})}},d("profilePanel.anserwing.viewFull")))};var V={container:"_8fd7YMs",thumb:"DomiQfw",content:"-b2qnfL"};let EmptyMessage=({message:e,buttonTxt:t,imgSrc:n,onBtnClick:l})=>{let{siteType:a,isMarryBaby:o}=(0,s.useContext)(F);return s.createElement("div",{className:V.container},s.createElement("div",{className:V.thumb},s.createElement("img",{src:n||I.C.getAssetPath(o?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&s.createElement("div",{className:V.content},e),t&&s.createElement(B.B,{size:"md",theme:a,color:"secondary",onClick:l},t))},Answering=({id:e})=>{let{t}=(0,x.u)(),{data:{locale:n}}=(0,s.useContext)(g.T),{authorProps:l}=(0,s.useContext)(F),[a,o]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(0,r._)(void 0,void 0,void 0,function*(){var t;c(!0);let l=yield(0,g.c)((0,g.f)(h.yy.USER.LIST_ANSWERS,{_locale:n,id:e}),"GET"),a=((null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.replies)||[]).map(p.b);o(a),c(!1)})},[]),s.createElement("div",{className:"MrdoES3"},i?s.createElement(m.L,null):null!==a&&(a.length>0?a.map(e=>s.createElement(PostCard$1,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:t("profilePanel.emptyPostMess.content",{name:(null==l?void 0:l.name)||(null==l?void 0:l.username)})})))},QuestionCard=e=>{var t,n,l,a,{post:o}=e,i=(0,r.a)(e,["post"]);let{data:{env:{togetherBasePath:c}}}=(0,s.useContext)(g.T);return s.createElement(s.Fragment,null,s.createElement("div",Object.assign({},i,{className:`toEutn7 ${(null==i?void 0:i.className)||""}`}),s.createElement(N.C,{className:"card-author",avatar:null===(t=null==o?void 0:o.author)||void 0===t?void 0:t.avatar,name:(null===(n=null==o?void 0:o.author)||void 0===n?void 0:n.name)||(null===(l=null==o?void 0:o.author)||void 0===l?void 0:l.username),isAnonymous:!!(null==o?void 0:o.isAnonymous),subLine:s.createElement(N.C.SubTextRow,null,s.createElement(N.C.SubText,null,null==o?void 0:o.createdTime))}),s.createElement(A.b,{href:`${window.location.origin}${c}/${null===(a=null==o?void 0:o.community)||void 0===a?void 0:a.slug}/${null==o?void 0:o.slug}/`,className:"drdisHs",rel:"noreferrer"},null==o?void 0:o.title)))};var $={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",chevron:"L2Q9T6m",container:"h-pSmhX"};let Care=()=>{var e,t;let{t:n}=(0,x.u)(),{data:{locale:l,userInfo:a}}=(0,s.useContext)(g.T),{onSkipQuestion:o,countValues:i,setCountValues:c}=(0,s.useContext)(F),[u,d]=(0,s.useState)(),[E,v]=(0,s.useState)([]),[C,f]=(0,s.useState)(!1),y=null==a?void 0:a.id;(0,s.useEffect)(()=>{y&&(0,r._)(void 0,void 0,void 0,function*(){var e;f(!0);let t=yield(0,g.e)((0,g.f)(h.yy.USER.LIST_QUESTION_NEED_REPLY,{_locale:l}),"GET"),n=[],a=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter(e=>((null==e?void 0:e.question)||[]).length>0).map(e=>{a[e.id]=e.question.map(p.b),delete e.question,n.push((0,p.a)(e))}),v(n),d(a),f(!1)})},[]);let handleSkipQuestion=({id:e,communityId:t})=>{if(e&&t&&u){let n=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter(t=>t.id!==e)]}),l=0;Object.keys(n).map(e=>l+=n[e].length||0),d(n),c(Object.assign(Object.assign({},i),{total_question:l})),null==o||o(l)}};return s.createElement("div",{className:$.container},C?s.createElement(m.L,null):(null==i?void 0:i.total_question)>0?E.length>0&&s.createElement(b.U,{className:$.accordion,defaultValue:String((null===(t=E[null===(e=Object.keys(E))||void 0===e?void 0:e[0]])||void 0===t?void 0:t.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:s.createElement("div",{className:$.chevron},s.createElement(k.Z,{color:_.r.colors.gray600,size:20}))},E.map(e=>{let t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&s.createElement(b.U.Item,{key:e.id,value:String(e.id)},s.createElement(b.U.Control,null,s.createElement("div",{className:$.header},s.createElement("div",{className:$.headingIcon},s.createElement("img",{src:e.thumbnail,loading:"lazy"})),s.createElement("div",{className:$.heading},e.name))),s.createElement(b.U.Panel,null,s.createElement("div",{className:$.body},t.map(e=>s.createElement(QuestionCard,{className:"question-card",key:e.id,post:e,onSkip:handleSkipQuestion})))))})):s.createElement(EmptyMessage,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.C.getAssetPath("questions.svg")}))},PostCard=({post:e,className:t=""})=>{var n;let{data:{userInfo:l,env:{togetherBasePath:a}}}=(0,s.useContext)(g.T),{t:o}=(0,x.u)(),i=(0,y.rZ)(),{authActionWrapper:r,authorProps:c}=(0,s.useContext)(F),u=`${window.location.origin}${a}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`GA-zc-O ${t}`},s.createElement("div",{className:"IB049vj"},s.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":u,className:"_8I--vEV",href:u,onClick:e=>{(null==l?void 0:l.id)||(e.preventDefault(),null==r||r(()=>window.location.href=u,{_location:u}))}}),s.createElement(N.d,{className:"card-author",avatarProps:{avatar:null==c?void 0:c.avatar,size:32}},s.createElement(N.C.MainText,{className:"A18McWD"},null==e?void 0:e.title),s.createElement(N.C.SubTextRow,null,s.createElement(N.C.SubText,null,null==e?void 0:e.createdTime))),s.createElement(PostContent,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),s.createElement(P.T,{size:"p3",color:i.fn.primaryColor()},o("post.seeMore"))))},Posts=()=>{let{t:e}=(0,x.u)(),{data:{locale:t}}=(0,s.useContext)(g.T),{authorId:n,authorProps:l,isAuthorLogin:a,onCloseFromPost:o}=(0,s.useContext)(F),[i,c]=(0,s.useState)(null),[u,d]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n&&(0,r._)(void 0,void 0,void 0,function*(){var e;d(!0);let l=yield(0,g.c)((0,g.f)(h.yy.USER.LIST_POST,{_locale:t,id:n,isAnonymous:0}),"GET"),a=((null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.posts)||[]).map(p.b);c(a),d(!1)})},[n]),s.createElement("div",{className:"TSMHoEM"},u?s.createElement(m.L,null):null!==i&&(i.length>0?i.map(e=>s.createElement(PostCard,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:e("profilePanel.emptyPostMess.content",{name:(null==l?void 0:l.name)||(null==l?void 0:l.username)||""}),buttonTxt:a&&e("profilePanel.createPost"),onBtnClick:()=>{null==o||o()}})))};var j={container:"_4Vekw96",info:"DIJdGcB",body:"aQSt4-Q"};let formatExperience=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},formatEducation=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};(l=o||(o={}))[l.About=0]="About",l[l.Care=1]="Care",l[l.Answer=2]="Answer",l[l.Posts=3]="Posts",(a=i||(i={}))[a.Expert=0]="Expert",a[a.User=1]="User";let Z={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail=e=>{var t,{authorProps:n,selectedTab:l,authActionWrapper:a,onSkipQuestion:i,onCloseFromPost:c,hideQuestionTab:E,hideAnswerTab:v,showSkipQuestionTag:C,rolesToShowQuestionsTab:b=["expert"],currentPageUrl:f}=e,y=(0,r.a)(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);let{data:{locale:I,userInfo:T,env:{isMarryBaby:O}}}=(0,s.useContext)(g.T),{t:_}=(0,x.u)(),S=null==n?void 0:n.role,k=null==T?void 0:T.role,A=String(null==n?void 0:n.userId),[P,L]=(0,s.useState)(),[w,M]=(0,s.useState)(!1),[R,B]=(0,s.useState)(),H=(null==T?void 0:T._togetherUserId)===(null==n?void 0:n.userId),D=[...-1!==b.indexOf(S)?[{value:o.About,text:_("profilePanel.tabs.highlight"),content:s.createElement(About,{id:A,info:R}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:f}]:[],{value:o.Posts,text:_("profilePanel.tabs.posts"),content:s.createElement(Posts,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...E||-1===b.indexOf(k)||(null==T?void 0:T._togetherUserId)!==(null==n?void 0:n.userId)?[]:[{value:o.Care,text:`${_("profilePanel.tabs.care")}`,content:s.createElement(Care,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:f}],...v||-1===b.indexOf(S)?[]:[{value:o.Answer,text:`${_("profilePanel.tabs.expertAnswer")}`,content:s.createElement(Answering,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:f}]],[G,U]=(0,s.useState)(null),[Y,z]=(0,s.useState)(null),V={value:String(Y),dataList:G,onTabChange:e=>z(Number(e))},$=null==D?void 0:D.filter(e=>null==e?void 0:e.hasCountResult);(0,s.useEffect)(()=>{(0,r._)(void 0,void 0,void 0,function*(){var e,t,n,a,i,r,s,c,u,d;M(!0);let m=yield Promise.all([(0,g.c)((0,g.f)(h.yy.USER.DETAIL,{_locale:I,id:A}),"GET"),...$.map(e=>(0,g.c)((0,g.f)(h.yy.USER.COUNT_TABS,{_locale:I,id:A,[e.keyOfCountApi]:1}),"GET"))]),[E]=m,v={data:null==E?void 0:E.data,experiences:((null===(t=null===(e=null==E?void 0:E.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(formatExperience),relatedPosts:((null===(n=null==E?void 0:E.data)||void 0===n?void 0:n.related_post)||[]).map(e=>(0,p.f)(e.post)),educations:((null===(i=null===(a=null==E?void 0:E.data)||void 0===a?void 0:a.fields)||void 0===i?void 0:i.educations)||[]).map(formatEducation),awards:(null===(s=null===(r=null==E?void 0:E.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.awards_accreditations)||[],contact:(null===(u=null===(c=null==E?void 0:E.data)||void 0===c?void 0:c.fields)||void 0===u?void 0:u.contact)||{}};(null==E?void 0:E.status)===1&&B(v);let C=(null==v?void 0:v.relatedPosts)||[],b=Object.keys(v.contact).map(e=>{var t;return(null===(t=null==v?void 0:v.contact)||void 0===t?void 0:t[e])!==""}),f=[...(null==v?void 0:v.experiences)||[],...(null==v?void 0:v.educations)||[],...(null==v?void 0:v.awards)||[]],y=C.length>0||b.length>0||f.length>0,T={},N=$.map((e,t)=>{var n,l,a;let i=(null===(a=null===(l=null===(n=m[t+1])||void 0===n?void 0:n.data)||void 0===l?void 0:l.counting)||void 0===a?void 0:a[e.keyOfResult])||0;return i>0?(T[e.keyOfResult]=i,e):-1!==[o.Care,o.Posts].indexOf(e.value)?e:void 0}).filter(Boolean).map(e=>e.value),O=D.map(e=>{let t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==T?void 0:T[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==N.indexOf(t.value)?t:void 0:t.value===o.About?y&&t:t}).filter(Boolean);U(O),z(l||(null===(d=null==O?void 0:O[0])||void 0===d?void 0:d.value)),L(T),M(!1)})},[]);let Z=null==R?void 0:R.data;return s.createElement(F.Provider,{value:{isMarryBaby:O,siteType:O?"marryBaby":"helloSites",authorId:String((null==n?void 0:n.userId)||""),authActionWrapper:a,onSkipQuestion:i,info:R,authorProps:n,onCloseFromPost:c,countValues:P,setCountValues:L,isAuthorLogin:H,showSkipQuestionTag:C,currentPageUrl:f}},s.createElement("div",Object.assign({},y,{className:`${j.container} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":O}),w?s.createElement(m.L,null):s.createElement(s.Fragment,null,s.createElement(N.C,Object.assign({},n,{className:"card-author",showDetailPopup:!1,subLine:(null==n?void 0:n.role)==="expert"?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&s.createElement(N.C.SubTextRow,null,(null==Z?void 0:Z.specialty)&&s.createElement(s.Fragment,null,s.createElement(N.C.SubText,null,null==Z?void 0:Z.specialty),s.createElement(N.C.SubDivider,null)),s.createElement(N.C.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&s.createElement(N.C.SubTextRow,null,s.createElement(N.C.SubText,null,_("profilePanel.joined")," ",u()(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===S&&s.createElement("div",{className:j.info,dangerouslySetInnerHTML:{__html:null===(t=null==R?void 0:R.data)||void 0===t?void 0:t.description}}),null!==G&&null!==Y&&(G.length>0?s.createElement("div",{className:j.body},s.createElement(d.T,Object.assign({},V))):s.createElement(EmptyMessage,{message:_("profilePanel.emptyPostMess.content",{text:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""})})))))}},ouS7:function(e,t,n){n.d(t,{A:function(){return ArticleDetailCard},C:function(){return ClinicInfo},D:function(){return DoctorExpertise},E:function(){return i},H:function(){return HospitalInfo},M:function(){return Mobile},N:function(){return NavHeader},P:function(){return PopupCollectPhone},R:function(){return RequestConsultationForm},U:function(){return UserProfileNavigation},a:function(){return UserStats},b:function(){return CollectPhoneForm},c:function(){return r},d:function(){return RequestConsultationSuccess},e:function(){return s},f:function(){return eC},g:function(){return PopupRequestConsultation},h:function(){return ProductInsuranceInfo},i:function(){return Check},j:function(){return Clock},k:function(){return Comment},l:function(){return Credential},m:function(){return Education},n:function(){return Email},o:function(){return HelloZalo},p:function(){return Highlight},q:function(){return Ellipse},r:function(){return PhoneInactive}});var l,a,o,i,r,s,c=n("q1tI"),u=n("sFNn"),d=n("27Mu"),m=n("Wbba"),p=n("8TMT"),h=n("iBNF"),g=n("ZI5f"),E=n("lv+5"),v=n("tuDO"),C=n("ToCa"),b=n("rBCA"),f=n("CL9C"),y=n("mYVa"),I=n("iuhU"),T=n("SPK5"),N=n("Eso5"),O=n("GcSG"),x=n("xXM3"),_=n.n(x),S=n("W9Px"),k=n("2O1/"),A=n("+YhV"),P=n("TEJ+"),L=n("vEfc"),w=n("Iblh"),M=n("fUCd"),R=n("F1Uu"),B=n("A9bs"),H=n("aHnw"),D=n("NXxl"),G=n("abax"),U=n("6sNj"),Y=n("uzh1"),F=n("8PyR"),z=n("uJ2t"),V=n("9bJQ"),$=n("RBzE"),j=n("j2Vd");let Check=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 81 80",fill:"none"},e),c.createElement("circle",{cx:39.5,cy:40,r:36,fill:"#00B16A"}),c.createElement("path",{d:"M25.6113 40.5543L34.5002 51.6654L53.3891 28.332",stroke:"white",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Clock=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),c.createElement("path",{d:"M6 11.25C8.8995 11.25 11.25 8.8995 11.25 6C11.25 3.10051 8.8995 0.75 6 0.75C3.10051 0.75 0.75 3.10051 0.75 6C0.75 8.8995 3.10051 11.25 6 11.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 3.25V6L8 7.75",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Comment=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none"},e),c.createElement("path",{d:"M20.0002 3.33203C29.1902 3.33203 36.6671 10.0621 36.6672 18.332C36.6672 18.8686 36.6342 19.4005 36.5725 19.9238C35.5792 29.1272 26.1203 35.6308 24.2336 36.8408L23.3333 37.417C21.8711 38.2196 21.7181 37.0263 21.6799 36.7295C21.6746 36.6884 21.6713 36.665 21.6672 36.666V33.2539C11.7339 34.1789 3.33325 27.097 3.33325 18.332C3.3334 10.0622 10.8104 3.33209 20.0002 3.33203ZM13.3333 16.666C12.4131 16.6663 11.6674 17.4118 11.6672 18.332C11.6672 19.2524 12.413 19.9988 13.3333 19.999C14.2537 19.999 15.0002 19.2525 15.0002 18.332C15.0001 17.4117 14.2536 16.666 13.3333 16.666ZM20.0002 16.666C19.0799 16.6661 18.3334 17.4117 18.3333 18.332C18.3333 19.2525 19.0798 19.999 20.0002 19.999C20.9207 19.999 21.6672 19.2525 21.6672 18.332C21.6671 17.4117 20.9206 16.666 20.0002 16.666ZM26.6672 16.666C25.7468 16.666 25.0004 17.4117 25.0002 18.332C25.0002 19.2525 25.7468 19.999 26.6672 19.999C27.5876 19.9989 28.3333 19.2524 28.3333 18.332C28.3331 17.4117 27.5875 16.6661 26.6672 16.666Z",fill:"#2D87F3"})),Credential=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),c.createElement("path",{d:"M10.7146 13.4812L11.5779 12.7568C11.7779 12.589 12.0312 12.4968 12.2923 12.4968H13.419C13.9579 12.4968 14.4201 12.1101 14.5135 11.579L14.709 10.469C14.7546 10.2112 14.889 9.97901 15.089 9.81124L15.9523 9.08679C16.3657 8.74012 16.4701 8.14679 16.2001 7.68012L15.6368 6.70346C15.5057 6.47679 15.459 6.21235 15.5046 5.95457L15.7001 4.84457C15.7935 4.31346 15.4923 3.79235 14.9857 3.6079L13.9268 3.22235C13.6812 3.13346 13.4757 2.96012 13.3446 2.73346L12.7812 1.75679C12.5112 1.29012 11.9457 1.08346 11.439 1.2679L10.3801 1.65346C10.1346 1.74235 9.86568 1.74235 9.62012 1.65346L8.56123 1.2679C8.05457 1.08346 7.48901 1.28901 7.21901 1.75679L6.65568 2.73346C6.52457 2.96012 6.31901 3.13235 6.07346 3.22235L5.01457 3.6079C4.5079 3.79235 4.20679 4.31346 4.30012 4.84457L4.49568 5.95457C4.54123 6.21235 4.49457 6.47679 4.36346 6.70346L3.80012 7.68012C3.53012 8.14679 3.63457 8.74012 4.0479 9.08679L4.91123 9.81124C5.11123 9.97901 5.24568 10.2123 5.29123 10.469L5.48679 11.579C5.58012 12.1101 6.04234 12.4968 6.58123 12.4968H7.7079C7.96901 12.4968 8.22234 12.589 8.42234 12.7568L9.28568 13.4812C9.69901 13.8279 10.3012 13.8279 10.7146 13.4812Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.6114 15.2778V19.1667L10.0003 16.3889L6.38916 19.1667V15.2778",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M10.0001 9.69347C11.2274 9.69347 12.2223 8.69855 12.2223 7.47125C12.2223 6.24395 11.2274 5.24902 10.0001 5.24902C8.77275 5.24902 7.77783 6.24395 7.77783 7.47125C7.77783 8.69855 8.77275 9.69347 10.0001 9.69347Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Education=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),c.createElement("g",{clipPath:"url(#clip0_2422_9990)"},c.createElement("path",{d:"M15.5 15.5003C14.678 15.5003 13.956 15.0983 13.5 14.4863V18.5003C13.5 18.7023 13.622 18.8853 13.809 18.9623C13.996 19.0413 14.21 18.9973 14.354 18.8543L15.5 17.7083L16.646 18.8543C16.742 18.9503 16.87 19.0003 17 19.0003C17.064 19.0003 17.13 18.9883 17.191 18.9623C17.378 18.8853 17.5 18.7023 17.5 18.5003V14.4863C17.044 15.0983 16.322 15.5003 15.5 15.5003Z",fill:"currentColor"}),c.createElement("path",{d:"M11.75 17.25H5.25C4.145 17.25 3.25 16.355 3.25 15.25V4.75C3.25 3.645 4.145 2.75 5.25 2.75H13.75C14.855 2.75 15.75 3.645 15.75 4.75V8",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.25 6.75H12.75",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.25 10H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.25 13.2505H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15.5 15.5C16.8807 15.5 18 14.3807 18 13C18 11.6193 16.8807 10.5 15.5 10.5C14.1193 10.5 13 11.6193 13 13C13 14.3807 14.1193 15.5 15.5 15.5Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_2422_9990"},c.createElement("rect",{width:18,height:18,fill:"white",transform:"translate(1 1)"})))),Email=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),c.createElement("path",{d:"M2 4.66668C2 4.31305 2.14048 3.97392 2.39052 3.72387C2.64057 3.47382 2.97971 3.33334 3.33333 3.33334H12.6667C13.0203 3.33334 13.3594 3.47382 13.6095 3.72387C13.8595 3.97392 14 4.31305 14 4.66668V11.3333C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3333V4.66668Z",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2 4.66666L8 8.66666L14 4.66666",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),HelloZalo=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 85 49",fill:"none"},e),c.createElement("g",{clipPath:"url(#clip0_4296_167461)"},c.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:12,transform:"rotate(-9 0.446777 6.57019)",fill:"url(#paint0_linear_4296_167461)"})),c.createElement("g",{filter:"url(#filter0_d_4296_167461)"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.0704 15.8758C22.0399 15.6835 21.9937 15.478 21.949 15.2821C21.8766 14.911 21.6943 14.5612 21.4056 14.242C20.7176 13.4843 19.8778 13.1977 18.9096 13.394C18.3946 13.5068 18.0388 13.811 17.8488 14.2998C17.6892 14.7096 17.7052 15.1677 17.8916 15.5559C18.0774 15.9402 18.4069 16.2218 18.8154 16.3484C19.03 16.4217 19.1016 16.5041 19.1099 16.6921L19.1108 16.6978L20.8289 27.5452C20.8334 27.5738 20.8363 27.6046 20.8395 27.6372C20.8469 27.7083 20.8568 27.7828 20.8777 27.8537C20.9096 27.9931 20.875 28.0708 20.7489 28.1493C20.1621 28.5233 19.9468 29.0863 20.112 29.8214C20.2773 30.5818 20.9404 31.0467 21.7218 30.9522C21.7563 30.9487 21.7906 30.9433 21.8249 30.9378C23.2472 30.7126 24.1124 29.3478 24.0029 28.2253C23.9862 28.021 23.9665 27.8231 23.9343 27.6194L23.0054 21.7549C22.9023 21.1037 22.801 20.4522 22.6998 19.8007C22.4943 18.5158 22.2877 17.1862 22.0704 15.8758Z",fill:"url(#paint1_radial_4296_167461)"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1017 28.7679C16.8433 28.7015 16.7458 28.5783 16.7271 28.3002L14.9771 17.251C14.9662 17.1083 15.0045 17.03 15.1188 16.963C15.1867 16.923 15.258 16.8805 15.3117 16.8251C15.8063 16.374 15.9509 15.6484 15.6692 15.0158C15.3717 14.3817 14.7876 14.0585 14.1038 14.1531C14.0867 14.1558 14.0696 14.1586 14.0524 14.1613C13.2432 14.2894 12.6134 14.7249 12.1809 15.4571C11.8782 15.9734 11.7746 16.5637 11.8774 17.213L12.8469 23.3345C13.0116 24.3741 13.1798 25.4113 13.3473 26.4446C13.5146 27.4759 13.6813 28.5035 13.8444 29.5336C13.9855 30.4247 14.6791 31.4391 15.9127 31.6985C16.2352 31.7626 16.5295 31.7726 16.8018 31.7294C16.9598 31.7044 17.1091 31.6612 17.2535 31.5993C17.8075 31.3633 18.1509 30.7955 18.1257 30.1554C18.1011 29.5074 17.681 28.9377 17.1017 28.7679Z",fill:"url(#paint2_radial_4296_167461)"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.5518 28.5261L33.4621 28.3666L33.2972 28.4103C33.1886 28.4392 32.6966 28.5366 32.2214 28.6295C31.1557 28.8392 31.0258 28.8695 30.9791 28.8945L30.8763 28.9479L30.8966 29.0637C31.1931 30.7266 30.2735 31.9692 29.3939 32.5281C29.032 32.7572 28.6159 32.9519 28.1252 33.1194C26.8906 33.5199 25.613 33.7222 24.3304 33.7205C23.7168 33.7161 23.1571 33.633 22.6675 33.4744C21.9917 33.2496 21.4545 32.8155 21.0733 32.183C20.9885 32.0422 20.9077 31.8891 20.8296 31.7415C20.7378 31.5686 20.6533 31.4044 20.5743 31.2881C20.2226 30.7309 19.5433 30.5086 18.9603 30.7591C18.3548 31.015 18.0228 31.6297 18.1511 32.2555C18.2243 32.6186 18.3468 32.9486 18.5761 33.3983C18.8115 33.849 19.142 34.2846 19.5269 34.6569C20.2278 35.3481 21.0901 35.8264 22.1587 36.1158C23.1874 36.3998 24.2868 36.4892 25.5177 36.386C25.9642 36.3464 26.3817 36.2959 26.7778 36.2332C27.6213 36.0996 28.3625 35.912 29.0561 35.6577C30.085 35.2898 30.9185 34.8338 31.6054 34.2663C32.9455 33.1523 34.1597 31.7732 33.5518 28.5261Z",fill:"url(#paint3_radial_4296_167461)"}),c.createElement("path",{d:"M30.3378 16.8439C26.9562 17.3795 24.6466 20.6048 25.1898 24.034C25.7329 27.4632 28.9261 29.8169 32.3077 29.2813C35.6893 28.7457 37.9989 25.5205 37.4557 22.0913C36.9126 18.662 33.7194 16.3083 30.3378 16.8439ZM34.6453 22.5364C34.9397 24.3947 33.6885 26.1446 31.8568 26.4347C30.0251 26.7248 28.2948 25.4491 28.0002 23.5889C27.7058 21.7305 28.957 19.9806 30.7887 19.6905C32.6204 19.4004 34.3507 20.6761 34.6453 22.5364Z",fill:"url(#paint4_radial_4296_167461)"}),c.createElement("path",{d:"M32.7364 23.0984C32.7097 22.328 32.0636 21.7251 31.2933 21.7517C30.5229 21.7784 29.92 22.4245 29.9466 23.1948C29.9733 23.9652 30.6194 24.5681 31.3898 24.5415C32.1601 24.5148 32.763 23.8687 32.7364 23.0984Z",fill:"url(#paint5_radial_4296_167461)"})),c.createElement("path",{d:"M68.2974 17.9266C68.8728 18.0177 69.4481 18.1088 70.0248 18.2002C69.4816 21.569 68.9476 24.9406 68.4232 28.3123C67.8724 28.144 66.8779 28.3563 66.7847 27.573C67.2588 24.3542 67.8003 21.1432 68.2974 17.9266Z",fill:"#0068FF"}),c.createElement("path",{d:"M50.6775 15.2582C53.3548 15.6795 56.0318 16.0856 58.7044 16.5282C58.6025 17.0496 58.4825 17.6162 58.064 17.9844C55.874 19.9719 53.7183 21.9951 51.5296 23.9828C53.471 24.3027 55.4156 24.6024 57.3589 24.9102C57.2507 25.3591 57.3264 25.9141 56.9689 26.2617C56.7434 26.4872 56.4118 26.4113 56.1337 26.37C53.7044 25.9715 51.2689 25.6119 48.8428 25.2015C48.9308 24.6889 49.0263 24.1211 49.4505 23.769C51.6175 21.7875 53.8035 19.8254 55.9633 17.8373C54.1135 17.547 52.265 17.2391 50.4124 16.9663C50.4904 16.3958 50.5847 15.8264 50.6775 15.2582Z",fill:"#0068FF"}),c.createElement("path",{d:"M73.9347 21.2294C75.9287 21.104 77.8179 22.6996 78.0446 24.6794C78.3933 26.757 76.8148 28.9114 74.7254 29.1964C72.937 29.5249 71.0326 28.4246 70.4014 26.7243C69.8948 25.4618 70.0924 23.9451 70.9067 22.8574C71.6036 21.8941 72.7509 21.2908 73.9347 21.2294ZM73.6319 22.9329C72.3914 23.1613 71.532 24.4907 71.8077 25.718C72.0144 26.8698 73.1867 27.7401 74.3502 27.5807C75.6656 27.4784 76.6666 26.115 76.4099 24.8275C76.2252 23.5636 74.8801 22.6385 73.6319 22.9329Z",fill:"#0068FF"}),c.createElement("path",{d:"M59.4453 20.3739C60.5538 19.3727 62.2662 19.0638 63.6311 19.6992C64.0843 19.8934 64.4747 20.1972 64.8481 20.5134C64.864 20.3867 64.8943 20.1344 64.9103 20.0077C65.4512 20.0906 65.9901 20.1774 66.531 20.2603C66.129 22.7812 65.727 25.3021 65.3341 27.8258C64.9388 27.7522 64.5277 27.7352 64.1502 27.5929C63.8943 27.4383 63.8571 27.1258 63.7872 26.8646C62.1123 27.7871 59.811 27.1531 58.7952 25.546C57.6906 23.9701 57.991 21.6311 59.4453 20.3739ZM61.5751 21.0577C60.264 21.2982 59.4084 22.8028 59.8547 24.0558C60.2132 25.2647 61.6485 25.9759 62.8263 25.5273C63.9114 25.1603 64.5807 23.9286 64.3155 22.817C64.0781 21.6164 62.7719 20.7578 61.5751 21.0577Z",fill:"#0068FF"}),c.createElement("path",{d:"M50.7263 1.42608C52.1821 1.42705 53.6267 1.65448 55.0566 1.91395L54.9152 2.00841C52.8428 2.94085 51.0183 4.38272 49.5862 6.14245C46.7159 9.66507 45.1671 14.1229 44.6491 18.5996C44.2607 22.25 44.553 26.0288 45.8972 29.4683C46.1165 30.0804 46.5513 30.6594 46.451 31.3446C46.2763 32.821 45.3317 34.0887 44.1839 34.982C44.2377 35.0593 44.2901 35.1363 44.3438 35.2136C45.1036 36.3622 45.9347 37.4603 46.7113 38.5979C47.8003 40.3074 49.1014 41.8745 50.1593 43.6066C47.9922 43.2963 45.7889 43.0505 43.7164 42.3084C41.1101 41.3608 39.0181 39.1185 38.2728 36.4462C37.8103 34.8964 37.8588 33.253 38.0552 31.666C39.2081 24.378 40.3622 17.0916 41.5176 9.80546C41.9328 7.37463 42.9815 4.92865 44.9816 3.39361C46.5812 2.07834 48.6606 1.3876 50.7263 1.42608Z",fill:"#0068FF"}),c.createElement("path",{d:"M54.9152 2.00841C55.2292 1.97016 55.5473 1.99304 55.8599 2.03293C61.2199 2.9025 66.5867 3.72914 71.9484 4.58798C73.3793 4.83248 74.8363 4.96427 76.2247 5.40825C78.171 5.87049 79.9352 7.00503 81.1923 8.55554C82.7539 10.6052 83.3345 13.2927 82.9654 15.823C81.8407 22.9326 80.7098 30.0466 79.591 37.1544C79.5656 37.193 79.5158 37.2731 79.4902 37.313C77.2405 39.1481 74.4417 40.1882 71.6072 40.6988C67.792 41.3594 63.8519 41.1423 60.093 40.25C56.34 39.3201 52.6631 37.719 49.7694 35.1051C48.0036 35.5774 46.1268 35.6486 44.3438 35.2136C44.2901 35.1363 44.2377 35.0593 44.1839 34.982C45.3317 34.0887 46.2763 32.821 46.451 31.3446C46.5513 30.6594 46.1165 30.0804 45.8972 29.4683C44.553 26.0288 44.2607 22.25 44.6491 18.5996C45.1671 14.1229 46.7159 9.66507 49.5862 6.14245C51.0183 4.38272 52.8428 2.94085 54.9152 2.00841ZM68.2974 17.9266C67.8003 21.1432 67.2588 24.3542 66.7847 27.573C66.8779 28.3563 67.8724 28.144 68.4232 28.3123C68.9476 24.9406 69.4816 21.569 70.0248 18.2002C69.4481 18.1088 68.8728 18.0177 68.2974 17.9266ZM50.6775 15.2582C50.5847 15.8264 50.4904 16.3958 50.4124 16.9663C52.265 17.2391 54.1135 17.547 55.9633 17.8373C53.8035 19.8254 51.6175 21.7875 49.4505 23.769C49.0263 24.1211 48.9308 24.6889 48.8428 25.2015C51.2689 25.6119 53.7044 25.9715 56.1337 26.37C56.4118 26.4113 56.7434 26.4872 56.9689 26.2617C57.3264 25.9141 57.2507 25.3591 57.3589 24.9102C55.4156 24.6024 53.471 24.3027 51.5296 23.9828C53.7183 21.9951 55.874 19.9719 58.064 17.9844C58.4825 17.6162 58.6025 17.0496 58.7044 16.5282C56.0318 16.0856 53.3548 15.6795 50.6775 15.2582ZM73.9347 21.2294C72.7509 21.2908 71.6036 21.8941 70.9067 22.8574C70.0924 23.9451 69.8948 25.4618 70.4014 26.7243C71.0326 28.4246 72.937 29.5249 74.7254 29.1964C76.8148 28.9114 78.3933 26.757 78.0446 24.6794C77.8179 22.6996 75.9287 21.104 73.9347 21.2294ZM59.4453 20.3739C57.991 21.6311 57.6906 23.9701 58.7952 25.546C59.811 27.1531 62.1123 27.7871 63.7872 26.8646C63.8571 27.1258 63.8943 27.4383 64.1502 27.5929C64.5277 27.7352 64.9388 27.7522 65.3341 27.8258C65.727 25.3021 66.129 22.7812 66.531 20.2603C65.9901 20.1774 65.4512 20.0906 64.9103 20.0077C64.8943 20.1344 64.864 20.3867 64.8481 20.5134C64.4747 20.1972 64.0843 19.8934 63.6311 19.6992C62.2662 19.0638 60.5538 19.3727 59.4453 20.3739Z",fill:"white"}),c.createElement("path",{d:"M61.5753 21.0583C62.7721 20.7584 64.0782 21.6169 64.3156 22.8176C64.5809 23.9292 63.9115 25.1608 62.8264 25.5278C61.6487 25.9765 60.2133 25.2652 59.8549 24.0564C59.4085 22.8034 60.2641 21.2988 61.5753 21.0583Z",fill:"white"}),c.createElement("path",{d:"M73.6318 22.9336C74.88 22.6391 76.2251 23.5643 76.4099 24.8281C76.6665 26.1157 75.6656 27.479 74.3502 27.5814C73.1866 27.7408 72.0143 26.8705 71.8077 25.7187C71.5319 24.4913 72.3914 23.1619 73.6318 22.9336Z",fill:"white"}),c.createElement("path",{d:"M79.4899 37.3134L79.6141 37.2149C79.3371 39.3198 78.764 41.4713 77.4398 43.1739C75.8969 45.1731 73.4695 46.4549 70.9462 46.5887C69.5321 46.6548 68.1179 46.4954 66.7259 46.2571C62.4354 45.5789 58.1453 44.898 53.8548 44.2199C52.6242 44.0043 51.3785 43.8661 50.1589 43.607C49.1011 41.8749 47.7999 40.3078 46.711 38.5984C45.9343 37.4608 45.1033 36.3627 44.3435 35.214C46.1264 35.649 48.0033 35.5778 49.769 35.1055C52.6628 37.7194 56.3397 39.3205 60.0926 40.2504C63.8515 41.1427 67.7916 41.3598 71.6068 40.6993C74.4413 40.1886 77.2402 39.1485 79.4899 37.3134Z",fill:"#005BE0"}),c.createElement("defs",null,c.createElement("filter",{id:"filter0_d_4296_167461",x:7.83887,y:13.3341,width:33.696,height:31.0933,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),c.createElement("feOffset",{dy:4}),c.createElement("feGaussianBlur",{stdDeviation:2}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),c.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4296_167461"}),c.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4296_167461",result:"shape"})),c.createElement("linearGradient",{id:"paint0_linear_4296_167461",x1:21.4468,y1:6.57019,x2:21.4468,y2:48.5702,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"#68B8FE"}),c.createElement("stop",{offset:1,stopColor:"#2C89F3"})),c.createElement("radialGradient",{id:"paint1_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20.9589 22.0707) rotate(81) scale(8.89343 2.07462)"},c.createElement("stop",{offset:.25,stopColor:"white"}),c.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),c.createElement("radialGradient",{id:"paint2_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(14.9033 23.0283) rotate(81) scale(8.89098 2.07896)"},c.createElement("stop",{offset:.25,stopColor:"white"}),c.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),c.createElement("radialGradient",{id:"paint3_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26.2523 32.9125) rotate(81) scale(3.36206 7.90006)"},c.createElement("stop",{offset:.25,stopColor:"white"}),c.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),c.createElement("radialGradient",{id:"paint4_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3227 23.0626) rotate(81) scale(6.29618 6.20942)"},c.createElement("stop",{offset:.25,stopColor:"white"}),c.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),c.createElement("radialGradient",{id:"paint5_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3415 23.1466) rotate(-1.98088) scale(1.39571 1.39571)"},c.createElement("stop",{offset:.25,stopColor:"white"}),c.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),c.createElement("clipPath",{id:"clip0_4296_167461"},c.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:10.5,transform:"rotate(-9 0.446777 6.57019)",fill:"white"})))),Highlight=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),c.createElement("path",{d:"M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2.22217 17.7777L5.5555 14.4443",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M1.94434 13.6112L2.49989 13.0557",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.38867 18.0556L6.94423 17.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Ellipse=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 4 4",fill:"none"},e),c.createElement("circle",{cx:2,cy:2,r:2,fill:"#BFBFBF"})),Mobile=e=>c.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none"},e),c.createElement("path",{d:"M11.3889 1.55566H5.61115C4.62931 1.55566 3.83337 2.3516 3.83337 3.33344V12.6668C3.83337 13.6486 4.62931 14.4446 5.61115 14.4446H11.3889C12.3708 14.4446 13.1667 13.6486 13.1667 12.6668V3.33344C13.1667 2.3516 12.3708 1.55566 11.3889 1.55566Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7.38892 1.55566V2.44455H9.61114V1.55566",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8.49997 12.4448C8.99089 12.4448 9.38886 12.0468 9.38886 11.5559C9.38886 11.065 8.99089 10.667 8.49997 10.667C8.00905 10.667 7.61108 11.065 7.61108 11.5559C7.61108 12.0468 8.00905 12.4448 8.49997 12.4448Z",fill:"currentColor"})),PhoneInactive=e=>c.createElement("svg",Object.assign({className:"callTrigger",width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none"},e),c.createElement("path",{d:"M14.4198 11.4486L12.526 11.2306C12.0676 11.178 11.6167 11.3358 11.2935 11.659L9.9032 13.0493C8.8368 12.5082 7.8696 11.8025 7.03391 10.9661C6.19747 10.1304 5.4918 9.1632 4.95071 8.0968L6.34101 6.70649C6.66416 6.38334 6.82198 5.93243 6.76938 5.47401L6.55144 3.58018C6.46125 2.82115 5.82247 2.25 5.05592 2.25H3.75579C2.90658 2.25 2.20015 2.95643 2.25276 3.80564C2.45191 7.01386 3.83395 9.89894 5.96751 12.0325C8.10106 14.166 10.9861 15.5481 14.1944 15.7472C15.0436 15.7998 15.75 15.0934 15.75 14.2442V12.9441C15.75 12.1775 15.1788 11.5387 14.4198 11.4486Z",fill:"#8C8C8C"})),Z={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};function NavHeader({userInfo:e,onClickMyProfileButton:t,themeName:n="helloSites"}){let{t:l}=(0,u.u)(),a=(0,c.useMemo)(()=>{let t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"},[null==e?void 0:e.username,null==e?void 0:e.name]);return c.createElement("div",{className:"uJQBNNg",onClick:()=>{t&&t()}},c.createElement(g.A,{className:"TfG3dM5",type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:a,backgroundColor:"marryBaby"===n?h.r.mbColors.pink:h.r.colors.secondaryBase}),c.createElement("div",{className:"aMtjFNf"},c.createElement("div",{className:"cSz2RR-"},(null==e?void 0:e.name)||(null==e?void 0:e.username)),c.createElement("div",{className:"GyFm00F",style:{"--bg-hellosites":`url(${m.C.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.C.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},l("userProfile.nav.header.viewProfile"))))}let W={myHealth:h.r.mbColors.toneYellow,myCommunity:h.r.mbColors.toneBlue,mySaved:h.r.mbColors.toneGreen},q={helloSites:{myBooking:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},NavigationCard=({type:e,themeName:t,className:n,onClick:l=()=>void 0})=>{let{t:a}=(0,u.u)(),o=(0,c.useMemo)(()=>{var n,l;return(null===(l=null===(n=q[t])||void 0===n?void 0:n[e])||void 0===l?void 0:l.call(n))||""},[e,t]),i=(0,c.useMemo)(()=>"marryBaby"!==t?"transparent":W[e],[e,t]);return c.createElement("div",{onClick:function(){l(e)},className:`fVk18fq ${n}`},c.createElement("div",{className:"mx7T4V3",style:{backgroundColor:i,backgroundImage:`url("${o}")`}}),c.createElement("h3",{className:"v8TCvUb"},a(`userProfile.nav.card.${e}`)))},navMenuItemsHelloSites=()=>[{key:"userProfile.nav.menu.accountSettings",icon:m.C.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]},{key:"userProfile.nav.menu.dataPrivacy",link:"data-privacy",disableLocale:["vi-VN","ms-MY","km-KH","en-PH","th-TH","my-MM","zh-TW","hi-IN","tl-PH"]}]},{key:"userProfile.nav.menu.help",icon:m.C.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}],navMenuItemsMarryBaby=()=>[{key:"userProfile.nav.menu.password",icon:m.C.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.C.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}];var Q={navMenu:"gn6HmGG",navMenuItem:"FCx8FEM",navMenuItemContent:"zMiRxaE",navMenuItemIcon:"lZ2Z9MQ",navMenuItemDropdown:"rwm-agG",navFooterSubMenu:"qMOscoq"};let NavMenu=({themeName:e,locale:t,onClickItem:n})=>{let[l,a]=(0,c.useState)(""),o=(0,c.useMemo)(()=>"marryBaby"===e?navMenuItemsMarryBaby():navMenuItemsHelloSites(),[e]);function handleParentItemClick(e){e.subMenu?a(t=>t?"":e.key):n&&n(e)}return c.createElement("div",{className:Q.navMenu},o.map(e=>c.createElement(NavMenuItem,{key:e.key,item:e,openKey:l,onClickItem:handleParentItemClick,locale:t})))},NavMenuItem=({item:e,openKey:t,onClickItem:n,locale:l})=>{var a;let{t:o}=(0,u.u)();return(null===(a=e.disableLocale)||void 0===a?void 0:a.includes(l))?null:c.createElement("div",{className:`${Q.navMenuItem} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},c.createElement("div",{className:Q.navMenuItemContent,onClick:()=>n(e)},e.icon&&c.createElement("div",{className:Q.navMenuItemIcon,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&c.createElement("div",{className:Q.navMenuItemDropdown,style:{"--after-bg":`url(${m.C.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&c.createElement("div",{className:Q.navFooterSubMenu},e.subMenu.map(e=>c.createElement(NavMenuItem,{key:e.key,item:e,openKey:t,onClickItem:n,locale:l}))))};var K={userStats:"_4y-O0w3",wrapper:"kO8iNgD",header:"a1d4E10",headerIcon:"Tdguxxf",headerTitle:"-mOxsaU",headerPoints:"yPeDBNZ"};let X={helloSites:{member:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.C.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.C.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},UserStats=({themeName:e,rank:t="member",numberOfPosts:n=0})=>{let{t:l}=(0,u.u)(),a=(0,c.useMemo)(()=>{var n,l;return(null===(l=null===(n=X[e])||void 0===n?void 0:n[t])||void 0===l?void 0:l.call(n))||""},[t,e]);return c.createElement("div",{className:K.userStats,"data-user-rank":t},c.createElement("div",{className:K.wrapper},c.createElement("div",{className:K.header},c.createElement("div",{className:K.headerIcon,style:{backgroundImage:`url("${a}")`}}),c.createElement("h3",{className:K.headerTitle},l(`userProfile.userRank.${t}`)),n>0&&c.createElement("p",{className:K.headerPoints},n," ",l("userProfile.nav.header.count.posts")))))},UserProfileNavigation=({SSO_URL:e,UP_BASEPATH:t="user",themeName:n="helloSites",cardUrls:l=Z,enableCare:a,enableTogether:o,enableEcom:i,enableMySaved:r,userInfo:s,togetherApiDomain:h,userPostsNumber:g,onClickNavigationCard:C,onClickMyProfileButton:b,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:I=!1,isMyHealthEnabled:T=!1,locale:N})=>{let{t:O}=(0,u.u)(),[x,_]=(0,c.useState)(g||0),S="marryBaby"===n;(0,c.useEffect)(()=>{if(s&&void 0===g){let e=(0,d.ej)("hhg_user_token");e&&fetch((0,p.e)((0,E.k)(N,S,h)),{headers:{Authorization:`Bearer ${e}`}}).then(e=>e.json()).then(e=>{var t,n,l;(null==e?void 0:e.status)===1&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&_((null===(l=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.pagination)||void 0===l?void 0:l.total_items)||0)}).catch(e=>console.error("Error fetching post number",e))}},[N,null!==s,g,h,S]);let k=(0,c.useMemo)(()=>(S?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter(e=>"myBooking"===e?a:"myCommunity"===e?o:"myHealth"===e?T:"eCom"===e?i:"mySaved"!==e||r),[S,T]),A=(0,c.useMemo)(()=>"marryBaby"===n?null:c.createElement(v.B,{color:"tertiary",icon:c.createElement("img",{src:m.C.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:"XIyViFs"},O("userProfile.nav.menu.logout")),[n]),push=n=>{n.startsWith("http")||n.startsWith("/")?window.location.href=(0,p.n)(n):e&&(window.location.href=(0,p.n)(`${e}${t}/${n}`))},handleClickCardItem=e=>{let t=l[e];C?C(t):push(t)};return s?c.createElement("div",{className:"-AZt1au","data-theme":n},c.createElement(NavHeader,{userInfo:s,themeName:n,onClickMyProfileButton:()=>{b?b():push("profile")}}),c.createElement(UserStats,{themeName:n,rank:"member",numberOfPosts:x}),c.createElement("div",{className:"IvSIfCI"},k.map(e=>c.createElement(NavigationCard,{className:"eahCJov",key:e,themeName:n,type:e,onClick:handleClickCardItem}))),!I&&c.createElement(c.Fragment,null,c.createElement(NavMenu,{themeName:n,locale:N,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):push(e.link))}}),A)):null},J=b.Z.div` ${f.M.mbUp} { margin: 0; } color: ${h.r.colors.gray1000}; margin-bottom: 1rem; .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; ${f.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; color: ${h.r.colors.gray700}; } } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; padding: 0.75rem 0 0; font-weight: 500; ${f.M.mbUp} { padding: 0; font-weight: 600; } } .txt-hours { font-weight: 500; color: ${h.r.colors.gray1000}; } `,ee=b.Z.div` ${f.M.mbUp} { padding: 8px 0; gap: 4px; } display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid ${h.r.colors.neutral100}; &:last-child { border-bottom: 0; } `;function OpeningHours({workingTimes:e}){let{t}=(0,u.u)(),n=(0,c.useMemo)(()=>{let n=[],l="";return C.w.forEach(t=>{let a=e[t];if(a){let e=a.map(e=>`${e.start_at}-${e.end_at}`).join("|");l===e?n[n.length-1]=[...n[n.length-1],t]:n.push([t]),l=e}}),n.map(n=>{var l;if(!n.length)return null;let a=t(`workingDays.${n[0]}`);return n.length>1&&(a=`${a} - ${t(`workingDays.${n.at(-1)}`)}`),{day:a,value:null===(l=e[n[0]])||void 0===l?void 0:l.map(e=>`${e.start_at.slice(0,5)} - ${e.end_at.slice(0,5)}`).join(", ")}})},[e]);return c.createElement(J,null,c.createElement("div",{className:"txt-body-2"},t("detail.openHours")),c.createElement("div",{className:"opening-hours-container"},n.map((e,t)=>c.createElement(ee,{className:"txt-body-1",key:t},c.createElement("div",null,null==e?void 0:e.day),c.createElement("div",{className:"txt-hours"},null==e?void 0:e.value)))))}let getHospitalUrl=(e,t)=>{var n;return`/${null===(n=k.L[e])||void 0===n?void 0:n.HOSPITAL}/${t.slug}-${t.id}`},et=b.Z.div` position: relative; min-height: calc(var(--mapHeight) + var(--card-height)); &:not([data-has-card]) { --mapCardHeight: calc(var(--mapHeight) + 32px); height: var(--mapCardHeight); } strong { font-weight: 700; &::after { content: ' '; } } iframe { max-width: 100%; /* padding-top: calc(var(--mapHeight) / var(--mapWidth) * 100%); */ } &[data-has-floating-card='true'] { --card-height: 0; .card { position: absolute; top: 10px; left: 10px; max-width: 329px; } } .map { width: 100%; height: var(--mapHeight); border-radius: 6px 6px 0px 0px; @media (max-width: 768px) { height: auto; } } .infoList { display: flex; margin-top: 8px; svg { min-width: 24px; margin-right: 8px; } } a { text-decoration: none; } .directions { margin-top: 16px; } .directionsNo { display: inline-block; margin-top: 8px; margin-bottom: 24px; color: ${h.r.colors.primaryBase}; } `,en=b.Z.div` padding: 16px; border: 1px solid ${h.r.colors.neutral200} background: ${h.r.colors.white} border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 0; border-top-right-radius: 0; max-width: 100%; &:not([data-is-full-width]) { @media (min-width: 768px) { width: var(--mapWidth); } } `,el=b.Z.div` margin-top: 4px; color: ${h.r.colors.gray600}; font-size: 14px; line-height: 22px; letter-spacing: -0.1px; address { display: inline; } .dots { display: inline-flex; margin: 0 0.5rem; vertical-align: middle; ~ span { color: ${h.r.colors.gray500}; } } `,ea=b.Z.a` display: flex; align-items: center; span { color: ${h.r.colors.gray500}; } svg { margin: 0 8px; } `,eo=(0,b.Z)(v.B)` margin-top: 12px; width: max-content; `,ei=b.Z.div` ${f.M.mbUp} { display: flex; gap: ${(0,y.h)(24)}; padding: 0 ${(0,y.h)(24)} ${(0,y.h)(24)}; } color: #111111; padding: 0 ${(0,y.h)(16)} ${(0,y.h)(16)}; .name { ${f.M.mbUp} { font-weight: 600; } font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; } address { ${f.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; font-style: normal; } font-size: 0.8125rem; line-height: 1.25rem; font-weight: 400; } .contact-item { display: inline-flex; align-items: center; padding: 8px 12px; gap: 8px; border: ${h.r.colors.neutral100} 1px solid; border-radius: 12px; a { text-decoration: none; color: currentColor; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; } } /* .map-card { border: none; } */ `,er=(0,b.Z)(e=>{let{className:t,hospital:n,hasNoCard:l,isFullWidth:a,height:o=256,width:i=768,isUsingEmbedMap:r=!0,isCardFloating:s=!1,distance:d,isLoggedIn:m,locale:p,googleMapKey:E,onPhoneHospital:v,dataEventCategory:C,dataEventAction:b,dataEventLabel:f}=e,{latitude:y,longitude:I,address:T,name:N}=n,x=parseFloat(y),k=parseFloat(I),P={lng:k,lat:x},L=(0,c.useRef)(null),{t:w}=(0,u.u)(),M=c.useCallback(function(e){setTimeout(()=>{e.setZoom(14),e.setCenter(P)},100)},[]),R={"--mapHeight":o+"px","--mapWidth":i+"px","--card-height":l||s||!L.current?0:L.current.clientHeight+"px"};return c.createElement(et,{className:_()(t),style:R,"data-has-card":!l||void 0,"data-has-floating-card":s||void 0},c.createElement("div",{className:"map"},r?c.createElement("iframe",{width:i,height:o,style:{border:0},className:"aspect-ratio-map",loading:"lazy",allowFullScreen:!0,src:`https://www.google.com/maps/embed/v1/place?key=${E}&q=${n.latitude},${n.longitude}&zoom=14`}):c.createElement(O.LoadScript,{googleMapsApiKey:E||""},c.createElement(O.GoogleMap,{mapContainerClassName:"map",center:P,zoom:14,onLoad:M,options:{mapTypeControl:!1,fullscreenControl:!1}},c.createElement(O.Marker,{position:P}))),l?null:c.createElement(en,{className:_()("map-card"),"data-is-full-width":a||void 0,ref:L},c.createElement(ea,{href:`${S.b}${getHospitalUrl(p,n)}`},c.createElement(A.T,{size:"s2",type:"semiBold"},N)),c.createElement(el,null,c.createElement("address",null,T),void 0!==d&&c.createElement(c.Fragment,null,c.createElement(g.I,{iconSize:4,wrapperSize:16,svgIcon:{fill:h.r.colors.gray400},wrapperStyle:{transform:"translateY(-2px)"}},c.createElement(Ellipse,null)),c.createElement("span",null,d," km"))),n.phone&&c.createElement(eo,{size:"md",color:"tertiary",isBlock:!1,onClick:v,icon:c.createElement(PhoneInactive,null),dataEventCategory:C,dataEventAction:b,dataEventLabel:f},m||"ms-MY"===p?n.phone:w("doctorInfoComponent.loginToCall")))))})` &.panel-map { --mapCardHeight: --cardHeight; } iframe { ${f.M.mbUp} { width: ${(0,y.h)(180)}; height: ${(0,y.h)(180)}; } border-radius: 12px; overflow: hidden; } `,es=(0,b.Z)(Mobile)` width: 1rem; height: 1rem; `,ec=(0,b.Z)(Email)` width: 1rem; height: 1rem; `,eu=b.Z.div` ${f.M.mbUp} { padding: 0; display: flex; flex-direction: column; gap: 24px; } .clinic-content { display: flex; flex-direction: column; ${f.M.mbUp} { gap: 8px; } gap: 12px; } padding-top: 1rem; padding-bottom: 1rem; padding-left: 4.5px; padding-right: 4.5px; flex: 1; & > * + * { margin-top: 0.75rem; } `,ed=b.Z.div` display: flex; flex-wrap: nowrap; gap: 0.75rem; `,em=(0,b.Z)(g.D)` border-radius: 0.75rem !important; `,ep=b.Z.div` display: flex; gap: 4px; flex-direction: column; ${f.M.mbUp} { flex-direction: row; } .contact-item { width: fit-content; } `;function ClinicInfo(e){let{hospitalInfo:t,distance:n,isLoggedIn:l,locale:a,googleMapKey:o,onPhoneHospital:i,dataEventCategory:r,dataEventAction:s,dataEventLabel:u}=e,d={latitude:t.latitude||"",longitude:t.longitude||"",address:t.address||"",name:t.name||"",phone:t.phone||"",email:t.email||""};return c.createElement(ei,null,c.createElement(er,{dataEventAction:s,dataEventCategory:r,dataEventLabel:u,googleMapKey:o,hasNoCard:!0,hospital:d,locale:a,isLoggedIn:l,isFullWidth:!0,height:220,className:"panel-map",onPhoneHospital:i}),c.createElement(eu,null,c.createElement("div",{className:"clinic-content"},c.createElement("div",{className:"name"},t.name),c.createElement(ed,null,c.createElement("address",null,t.address),n&&c.createElement("div",{style:{flexShrink:0}},c.createElement(em,{value:`${n} km`}))),c.createElement(ep,null,t.phone&&c.createElement("div",{className:"contact-item"},c.createElement(es,null),c.createElement("a",{href:`tel:${t.phone}`},(0,P.f)(t.phone))),t.email&&c.createElement("div",{className:"contact-item"},c.createElement(ec,null),c.createElement("a",{href:`mailto:${null==t?void 0:t.email}`},t.email)))),t.working_times&&c.createElement(OpeningHours,{workingTimes:t.working_times})))}let eh=b.Z.div` .mantine-Input-input.custom_input { /* font-size: 16px; */ } .info { display: flex; flex-direction: column; gap: 24px; align-items: center; padding: 24px 16px; h5 { font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.4px; text-align: center; } .description { color: ${h.r.colors.gray700}; text-align: center; font-size: 0.8125rem; font-weight: 400; line-height: 1.25rem; letter-spacing: -0.3px; } } .mb-1 { margin-bottom: 4px; } .w-full { width: 100%; } .px-3 { padding-left: 12px; padding-right: 12px; } .action { padding: 8px 16px; &.actionBox { border-top: 0.5px solid ${h.r.colors.neutral100}; } } `,eg=(0,b.Z)(G.B)` &.mantine-Button-root { border-radius: 12px; border: 1px solid; font-size: 15px; &.tertiary { border-color: ${h.r.colors.neutral200}; } } .mantine-Button-label { display: flex; align-items: center; justify-content: center; gap: 8px; } `;(0,b.Z)(M.D)``;let eE=(0,b.Z)(H.P)` --custom-primary-text: #111111; .PhoneInputCountry { pointer-events: none; --phone-select: 58px; } &.PhoneInput { .PhoneInputCountry { } .PhoneInputCountryIconCallingCode { color: var(--custom-primary-text); } .PhoneInputInput { color: var(--custom-primary-text) !important ; :focus { color: var(--custom-primary-text) !important ; } } } `,ev=(0,b.Z)(H.I.Wrapper)` --phone-input-space-x: -8px; .mantine-Text-root[data-size='c1'] { font-size: 0.75rem; } .mantine-Text-root[data-size='p3'] { font-size: 0.8125rem; } .mantine-Text-root[data-size='p2'] { font-size: 0.9375rem; } `,eC={ZALO:"Zalo",WHATS_APP:"Whatsapp"};function CollectPhoneForm({onSubmit:e,title:t,formType:n=eC.ZALO,isLoading:l,locale:a}){let{t:o}=(0,u.u)(),[i,r]=(0,c.useState)(""),[s,d]=(0,c.useState)(""),[m,p]=(0,c.useState)(!1),{classes:h}=(0,R.u)(),validatePhone=e=>{try{if(!e){d(o("collectPhoneNumber.phoneRequired"));return}let t=(0,B.parsePhoneNumber)(e,"VN");(null==t?void 0:t.isValid())?d(""):d(o("collectPhoneNumber.inputInvalid"))}catch(e){d(o("collectPhoneNumber.inputInvalid"))}},handleChange=e=>{validatePhone(e),r(e)};return c.createElement(eh,null,c.createElement("div",{className:"info"},n===eC.ZALO&&c.createElement(HelloZalo,{width:84,height:48})," ",c.createElement("h5",{className:"px-3"},t||o("collectPhoneNumber.title",{name:n})),c.createElement(R.T,{shrink:!!i,className:(0,I.default)("leadgen-form_input w-full",{"leadgen-form_field_error":!!(m&&s)})},c.createElement(R.T.Control,{htmlFor:"collection_phone_input"},({shrink:e})=>c.createElement(ev,{"data-invalid":!!(m&&s),labelElement:"div",label:c.createElement(Y.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},o("collectPhoneNumber.inputLabel")),inputWrapperOrder:["label","input","description","error"],error:m&&s&&c.createElement(T.k,{align:"center",gap:4},c.createElement(H.E,{size:12}),c.createElement(Y.T,{size:"c1",variant:"error"},s))},c.createElement(N.x,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,D.G)(e)[D.C.LEADGEN].p2),{fontWeight:D.F.halfBold})})},c.createElement(eE,{inputId:"collection_phone_input",onChange:handleChange,className:`mantine-Input-input ${h.p2}`,name:"phoneNumber",spellCheck:!1,placeholder:" ",defaultCountry:a&&U.M[a]||"VN",type:"text",value:i,"data-control":"tel",countries:["VN"],arrowComponent:()=>c.createElement(c.Fragment,null)})))))),c.createElement("div",{className:"action actionBox"},c.createElement(eg,{variant:"primary",onClick:()=>{validatePhone(i),p(!0);let t=(0,B.parsePhoneNumber)(i,"VN");if(t&&t.isValid()){let n=t.countryCallingCode;e({phone:t.nationalNumber,countryCode:t.country,callingCode:(null==n?void 0:n.includes("+"))?n:`+${n}`})}},fullWidth:!0,size:"lg",loading:l},c.createElement("div",null,o("collectPhoneNumber.action")),c.createElement("img",{src:"data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.04169 13.5416L12.5834 9.99998L9.04169 6.45831' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"arrow icon",width:20,height:20}))))}function CollectPhoneSuccess({onClose:e}){let{t}=(0,u.u)();return c.createElement(eh,null,c.createElement("div",{className:"info"},c.createElement(Check,{width:80,height:80}),c.createElement("div",null,c.createElement("h5",{className:"mb-1"},t("collectPhoneNumber.titleSuccess")),c.createElement("p",{className:"description"},t("collectPhoneNumber.descriptionSuccess")))),c.createElement("div",{className:"action"},c.createElement(eg,{variant:"tertiary",onClick:e,fullWidth:!0,size:"lg"},t("common.action.close"))))}function PopupCollectPhone({children:e,isMobile:t,onSubmit:n,isOpen:l,onOpenChange:a,drawerProps:o={}}){let r=(0,w.q)(l),[s,u]=(0,c.useState)(i.FORM),[d,{open:m,toggle:p,close:h}]=r,[g,E]=(0,c.useState)(!1),handleOpenChange=e=>{e?m():h(),null==a||a(e)},handleClose=()=>{handleOpenChange(!1)};return(0,c.useEffect)(()=>{d&&u(i.FORM)},[d]),(0,c.useEffect)(()=>{handleOpenChange(l)},[l]),c.createElement(c.Fragment,null,"function"==typeof e?e(r):c.createElement("div",{onClick:p},e),c.createElement(M.D,Object.assign({isOpen:d,onClose:handleClose,onOpenChange:handleOpenChange,isMobile:t,fadeFromIndex:S.c-9e6,zIndex:S.c,repositionInputs:!1,isLinear:s===i.SUCCESS},o),s===i.FORM&&c.createElement(CollectPhoneForm,{onSubmit:e=>(0,L._)(this,void 0,void 0,function*(){try{E(!0),yield n(e),u(i.SUCCESS)}catch(e){console.log("\uD83D\uDE80 ~ handleSubmit ~ error:",e)}finally{E(!1)}}),isLoading:g}),s===i.SUCCESS&&c.createElement(CollectPhoneSuccess,{onClose:handleClose})))}(l=i||(i={}))[l.FORM=0]="FORM",l[l.SUCCESS=1]="SUCCESS";let eb=b.Z.div` padding-top: 16px; padding-bottom: 16px; width: 100%; & #request_consultation_name_input.mantine-Input-input { font-size: 15px; font-weight: 500; line-height: 24px; letter-spacing: -0.3px; color: ${h.r.colors.gray1000}; } & #gender-option-control-label { font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: -0.3px; color: ${h.r.colors.gray600}; } & .radio-group .gender-item .mantine-Radio-label { border-radius: 8px; } & .info { .PhoneInput .PhoneInputInput { &:focus { border-color: unset; outline: none; box-shadow: none; } &:hover { border-color: unset; outline: none; box-shadow: none; } } } ${f.M.mbUp} { width: 420px; padding-top: 32px; padding-bottom: 32px; } .mantine-Input-input.custom_input { /* font-size: 16px; */ } .formHeader { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 24px; margin-bottom: 34px; ${f.M.mbUp} { margin-bottom: 24px; } } .formHeaderIcon { width: 40px; height: 40px; flex-shrink: 0; svg { width: 40px; height: 40px; } } .formCloseButton { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: ${h.r.colors.white}; border: none; cursor: pointer; color: ${h.r.colors.gray800}; :hover { background: ${h.r.colors.gray100}; } } .formTitleBlock { margin-top: 4px; padding: 0 24px 24px; } .formTitle { font-weight: 600; font-size: 1.375rem; line-height: 2rem; letter-spacing: -0.4px; color: ${h.r.colors.gray800}; margin-bottom: 12px; } .formSubtitle { color: ${h.r.colors.gray600}; font-size: 0.875rem; font-weight: 400; line-height: 1.375rem; letter-spacing: -0.2px; margin: 0; } .info { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 0 24px 16px; text-align: left; h5 { font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.4px; text-align: center; } .description { color: ${h.r.colors.gray700}; text-align: center; font-size: 0.8125rem; font-weight: 400; line-height: 1.25rem; letter-spacing: -0.3px; } &.center { align-items: center; } } .mb-1 { margin-bottom: 4px; } .w-full { width: 100%; } .px-3 { padding-left: 12px; padding-right: 12px; } .action { padding: 0px 24px; width: 100%; &.actionBox { border-top: 0.5px solid ${h.r.colors.neutral100}; padding-top: 16px; } } &.formSuccess { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; height: 100%; .action { padding: 0px 24px; } } `,ef=(0,b.Z)(G.B)` &.mantine-Button-root { border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 24px; &:hover { background-color: ${h.r.colors.primaryBase}; } background-color: ${h.r.colors.primaryBase}; color: ${h.r.colors.white}; &.tertiary { border-color: ${h.r.colors.neutral200}; } } .mantine-Button-label { display: flex; align-items: center; justify-content: center; gap: 8px; } `,ey=(0,b.Z)(M.D)` ${f.M.mbDown} { .mantine-Modal-content { height: 100dvh; } } .mantine-Modal-body { padding: 0; height: 100%; .formSuccess { background: linear-gradient(180deg, #a5d4ff 0%, #ffffff 50%); } } `,eI=(0,b.Z)(H.P)` --custom-primary-text: #111111; .PhoneInputCountry { pointer-events: none; --phone-select: 58px; } &.PhoneInput { .PhoneInputCountry { } .PhoneInputCountryIconCallingCode { color: var(--custom-primary-text); } .PhoneInputInput { color: var(--custom-primary-text) !important ; :focus { color: var(--custom-primary-text) !important ; } } } `,eT=(0,b.Z)(H.I.Wrapper)` --phone-input-space-x: -8px; .mantine-Text-root[data-size='c1'] { font-size: 0.75rem; } .mantine-Text-root[data-size='p3'] { font-size: 0.8125rem; } .mantine-Text-root[data-size='p2'] { font-size: 0.9375rem; } `;(a=r||(r={})).Male="male",a.Female="female";let eN=["VN","MY"];function RequestConsultationForm({onSubmit:e,onClose:t,title:n,isLoading:l,locale:a}){let{t:o}=(0,u.u)(),[i,s]=(0,c.useState)(""),[d,m]=(0,c.useState)(""),[p,h]=(0,c.useState)(r.Female),[g,E]=(0,c.useState)(""),[v,C]=(0,c.useState)(""),[b,f]=(0,c.useState)(""),[y,O]=(0,c.useState)(!1),{classes:x}=(0,R.u)(),_=a&&V.M[a]||"VN",validatePhone=e=>{try{if(!e)return C(o("collectPhoneNumber.phoneRequired")),!1;let t=(0,B.parsePhoneNumber)(e,_);if(!(null==t?void 0:t.isValid()))return C(o("collectPhoneNumber.inputInvalid")),!1;return C(""),!0}catch(e){return C(o("collectPhoneNumber.inputInvalid")),!1}},handlePhoneChange=e=>{m(e),e?validatePhone(e):C("")};return c.createElement(eb,null,c.createElement("div",{className:"formHeader"},c.createElement("div",{className:"formHeaderIcon"},c.createElement(Comment,{width:24,height:24})),c.createElement("button",{type:"button",className:"formCloseButton",onClick:t,"aria-label":o("common.action.close")},c.createElement(z.C,{width:20,height:20}))),c.createElement("div",{className:"formTitleBlock"},c.createElement("h2",{className:"formTitle"},n||o("popupRequestConsultation.title")),c.createElement("p",{className:"formSubtitle"},o("popupRequestConsultation.subtitle"))),c.createElement("div",{className:"info"},c.createElement(R.T,{shrink:!!i,className:(0,I.default)("leadgen-form_input w-full",{"leadgen-form_field_error":!!(y&&g)})},c.createElement(R.T.Control,{htmlFor:"request_consultation_name_input"},({shrink:e})=>c.createElement(eT,{"data-invalid":!!(y&&g),labelElement:"div",label:c.createElement(Y.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},o("popupRequestConsultation.yourName")),inputWrapperOrder:["label","input","description","error"],error:y&&g&&c.createElement(T.k,{align:"center",gap:4},c.createElement(H.E,{size:12}),c.createElement(Y.T,{size:"c1",variant:"error"},g))},c.createElement(H.I,{id:"request_consultation_name_input",value:i,onChange:e=>{s(null!=e?e:""),y&&g&&E("")},placeholder:" ",classNames:{input:`mantine-Input-input ${x.p2}`}})))),c.createElement(R.T,{shrink:!!d,className:(0,I.default)("leadgen-form_input w-full",{"leadgen-form_field_error":!!(y&&v)})},c.createElement(R.T.Control,{htmlFor:"request_consultation_phone_input"},({shrink:e})=>c.createElement(eT,{"data-invalid":!!(y&&v),labelElement:"div",label:c.createElement(Y.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},o("popupRequestConsultation.phoneLabel")),inputWrapperOrder:["label","input","description","error"],error:y&&v&&c.createElement(T.k,{align:"center",gap:4},c.createElement(H.E,{size:12}),c.createElement(Y.T,{size:"c1",variant:"error"},v))},c.createElement(N.x,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,D.G)(e)[D.C.LEADGEN].p2),{fontWeight:D.F.halfBold})})},c.createElement(eI,{inputId:"request_consultation_phone_input",onChange:handlePhoneChange,className:`mantine-Input-input ${x.p2}`,name:"phoneNumber",spellCheck:!1,placeholder:" ",defaultCountry:_,type:"text",value:d,"data-control":"tel",countries:eN,arrowComponent:()=>c.createElement(c.Fragment,null)}))))),c.createElement(F.G,{id:"gender-option-control-consultation",label:o("popupRequestConsultation.gender"),type:"button",value:p||void 0,onChange:e=>{h(e),y&&b&&f("")},error:y&&b?b:void 0,styles:{wrapper:{flexDirection:"row-reverse"}},labelText:{size:"title2",color:"gray800",fw:500}})),c.createElement("div",{className:"action"},c.createElement(ef,{variant:"primary",onClick:()=>{O(!0);let t=!!(null==i?void 0:i.trim());t?E(""):E(o("popupRequestConsultation.nameRequired"));let n=validatePhone(d),l=p===r.Male||p===r.Female;if(l?f(""):f(o("popupRequestConsultation.genderRequired")),!t||!n||!l)return;let a=(0,B.parsePhoneNumber)(d,_);if(!a||!a.isValid())return;let s=a.countryCallingCode;e({name:i.trim(),phone:a.nationalNumber,countryCode:a.country,callingCode:(null==s?void 0:s.includes("+"))?s:`+${s}`,gender:p})},fullWidth:!0,size:"lg",loading:l},o("popupRequestConsultation.action"))))}function RequestConsultationSuccess({onClose:e}){let{t}=(0,u.u)();return c.createElement(eb,{className:"formSuccess"},c.createElement("div",{className:"formTitleBlock"},c.createElement(Check,{width:64,height:64})),c.createElement("div",{className:"formTitleBlock"},c.createElement("h2",{className:"formTitle"},t("popupRequestConsultation.titleSuccess")),c.createElement("p",{className:"formSubtitle"},t("popupRequestConsultation.descriptionSuccess"))),c.createElement("div",{className:"action"},c.createElement(ef,{variant:"tertiary",onClick:e,fullWidth:!0,size:"lg"},t("common.action.close"))))}function PopupRequestConsultation({children:e,isMobile:t,onSubmit:n,isOpen:l,onOpenChange:a,drawerProps:o={},locale:i}){let r=(0,w.q)(l),[u,d]=(0,c.useState)(s.FORM),[m,{open:p,toggle:h,close:g}]=r,[E,v]=(0,c.useState)(!1),handleOpenChange=e=>{e?p():g(),null==a||a(e)},handleClose=()=>{handleOpenChange(!1)};return(0,c.useEffect)(()=>{m&&d(s.FORM)},[m]),(0,c.useEffect)(()=>{handleOpenChange(l)},[l]),c.createElement(c.Fragment,null,"function"==typeof e?e(r):c.createElement("div",{onClick:h},e),c.createElement(ey,Object.assign({isOpen:m,onClose:handleClose,onOpenChange:handleOpenChange,isMobile:!1,fadeFromIndex:S.c-9e6,zIndex:S.c,repositionInputs:!1,isLinear:!0,withCloseButton:!1,fullScreen:t},o),u===s.FORM&&c.createElement(RequestConsultationForm,{onSubmit:e=>(0,L._)(this,void 0,void 0,function*(){try{v(!0),yield n(e),d(s.SUCCESS)}catch(e){console.log("\uD83D\uDE80 ~ handleSubmit ~ error:",e)}finally{v(!1)}}),onClose:handleClose,isLoading:E,locale:i}),u===s.SUCCESS&&c.createElement(RequestConsultationSuccess,{onClose:handleClose})))}(o=s||(s={}))[o.FORM=0]="FORM",o[o.SUCCESS=1]="SUCCESS";let eO=b.Z.div` display: flex; align-items: center; justify-content: space-between; gap: 12px; .hospitalName { color: #111111; font-size: 0.8125rem; font-weight: 500; line-height: 1.25rem; } .hospitalStatus { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; font-size: 0.6875rem; line-height: 1rem; color: ${h.r.colors.red600}; &[data-is-opened='true'] { color: ${h.r.colors.primaryBase}; } } .distanceTag { padding: 4px 0px; } .flex-1 { flex: 1 1 0%; } `,ex=(0,b.Z)($.I)` /* object-contain object-center aspect-square */ width: 44px; height: 44px; background-color: ${h.r.colors.neutral50}; padding: 2px; object-fit: contain; object-position: center; border-radius: 8px; flex-shrink: 0; aspect-ratio: 1; align-self: baseline; `,e_=(0,b.Z)(Clock)` width: 12px; height: 12px; `,eS=(0,b.Z)(g.S)` flex-shrink: 0; color: ${h.r.colors.gray400}; width: 12px; height: 12px; transform: rotate(90deg); & > path { stroke-width: 1.5; } `,ek=(0,b.Z)(g.D)` & > span { color: ${h.r.colors.gray800}; } & { border: none; } `,checkHospitalStatus=e=>{if(!e)return!1;let t=new Date,n=C.w.at(t.getDay()-1),l=e[n];return null==l?void 0:l.some(e=>{let[n,l]=e.start_at.split(":").map(parseInt),[a,o]=e.end_at.split(":").map(parseInt),i=t.getHours(),r=t.getMinutes();return n===a&&a==i?!(ro):!(ia)})};function HospitalInfo({hospitalInfo:e,distance:t,className:n}){let{t:l}=(0,u.u)(),[a,o]=(0,c.useState)(null);return(0,c.useEffect)(()=>{o(checkHospitalStatus(e.working_times))},[e.working_times]),c.createElement(eO,{className:n},c.createElement(ex,{src:e.logo,backupSrc:m.C.getAssetPath("avatar.jpg"),alt:"hospital"}),c.createElement("div",{className:"flex-1"},c.createElement("div",{className:"hospitalName"},e.name),e.working_times&&null!==a&&c.createElement("div",{className:"hospitalStatus","data-is-opened":a},c.createElement(e_,null),c.createElement(Y.T,{size:"p3",weight:"regular",color:"inherit"},l(a?"hospital.status.opening":"hospital.status.closed"))),t&&c.createElement(ek,{className:_()({distanceTag:null===e.working_times}),value:`${t} km`})),c.createElement(eS,null))}let eA=b.Z.div` padding: 0 1rem 1.25rem; & > :not(:first-child) { margin-top: 1.25rem; } .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; color: ${h.r.colors.gray700}; } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; color: ${h.r.colors.gray800}; font-weight: 600; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${h.r.colors.gray800}; } h3 { padding: 1rem 0; } `,eP=(0,b.Z)(j.I)` gap: 8px; margin-top: 1rem; & .insuranceItem > .insuranceLogo { height: 64px; border-radius: 12px; border-color: ${h.r.colors.neutral100}; & > img { height: auto; aspect-ratio: 109/64; } } `;function ProductInsuranceInfo({hospitalInfo:e,isMobile:t=!1}){let{t:n}=(0,u.u)(),l=(null==e?void 0:e.accepted_payments)&&e.accepted_payments.length>0;return c.createElement(eA,{id:"insurance-container"},c.createElement("div",null,c.createElement("h3",{className:"txt-body-2"},n("common.insurance")),c.createElement("p",{className:"txt-body-1"},n("common.insuranceIntro")),c.createElement(eP,{insurances:e.insurances,isName:!1})),l&&c.createElement("div",null,c.createElement("h3",{className:"txt-body-2"},n("common.paymentMethods")),c.createElement(j.P,{payments:e.accepted_payments,isMobile:t})))}let eL=(0,c.createContext)({id:"",name:"",specialty:"",experience:"",profileImage:"",clinics:"",educations:[],expertise:"",otherHighlights:[]}),DoctorExpertiseProvider=({children:e,value:t})=>c.createElement(eL.Provider,{value:t},e),ew=b.Z.div` display: flex; align-items: center; flex-direction: column; background-color: ${h.r.colors.blue50}; border-radius: 12px; padding: 0px 4px 4px; .body-section { width: 100%; height: 100%; } `,eM=b.Z.div` background-color: #ffffffcc; border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; .flex-item-doctor-info { display: flex; flex-direction: column; gap: 12px; } `,eR=b.Z.div` cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; `,eB=b.Z.div` display: flex; justify-content: flex-end; `,eH=(0,b.Z)(j.A)` width: 0.65rem; height: 0.65rem; & > path { stroke-width: 1.25; } `,DoctorExpertise=e=>{var t,n,l,a;let{className:o,doctorInformation:i,onClickReadMore:r,children:s,isShowReadMoreButton:d,style:m,defaultProfileImage:p}=e,{t:g}=(0,u.u)(),E=(null===(t=null==i?void 0:i.clinics)||void 0===t?void 0:t.length)>0||(null===(n=null==i?void 0:i.educations)||void 0===n?void 0:n.length)>0||s||d;return c.createElement(DoctorExpertiseProvider,{value:i},c.createElement(ew,{className:o,style:m},c.createElement(j.a,{name:i.name,specialty:i.specialty,experience:i.experience,profileImage:i.profileImage||p}),E&&c.createElement(eM,{className:"body-section"},c.createElement("div",{className:"flex-item-doctor-info"},(null===(l=null==i?void 0:i.clinics)||void 0===l?void 0:l.length)>0&&c.createElement(j.D,{doctorInfo:i.clinics,Icon:j.C,title:g("common.clinicHospital")}),(null===(a=null==i?void 0:i.educations)||void 0===a?void 0:a.length)>0&&c.createElement(j.D,{doctorInfo:i.educations,Icon:Education,title:g("common.education")}),s),d&&c.createElement(eB,null,c.createElement(eR,{onClick:r},c.createElement(Y.T,{size:"p2",weight:"halfBold",color:h.r.colors.primaryBase},g("common.readMore")),c.createElement(eH,null))))))};DoctorExpertise.Expertise=()=>{let{expertise:e}=(0,c.useContext)(eL),{t}=(0,u.u)();return e?c.createElement(j.D,{doctorInfo:e,Icon:Credential,title:t("common.expertiseCredentials")}):null},DoctorExpertise.OtherHighlights=()=>{let{otherHighlights:e}=(0,c.useContext)(eL),{t}=(0,u.u)();return e?c.createElement(j.D,{doctorInfo:e,Icon:Highlight,title:t("common.otherHighlights")}):null};let eD=b.Z.div` display: flex; flex-direction: column; gap: ${(0,y.h)(12)}; `,eG=b.Z.div` display: flex; flex-direction: column; gap: ${(0,y.h)(8)}; `,eU=b.Z.div` display: flex; flex-direction: column; gap: ${(0,y.h)(4)}; `,eY=b.Z.div` display: flex; gap: ${(0,y.h)(4)}; align-items: center; `,eF=b.Z.span` color: ${h.r.colors.gray600}; `,ArticleDetailCard=e=>{let{article:t,doctor:n,className:l,style:a,handleClick:o,altText:i}=e,{articleType:r,articleTitle:s,articleTypeColor:d,image:m,defaultImage:p}=t||{},{doctorName:g,doctorAvatar:E,defaultDoctorAvatar:v}=n||{},{t:C}=(0,u.u)();return c.createElement(eD,{className:l,style:a,onClick:o},c.createElement($.I,{alt:i||s||"article-image",src:m||p,style:{width:"100%",height:(0,y.h)(143.5),objectFit:"cover",borderRadius:(0,y.h)(4)}}),c.createElement(eG,null,c.createElement(eU,null,c.createElement(Y.T,{color:d||h.r.colors.green600,size:"c1",weight:"halfBold"},r),c.createElement(Y.T,{size:"p2",weight:"semiBold",color:h.r.colors.gray800,lineClamp:2},s)),c.createElement(eY,null,c.createElement($.I,{alt:`${C("common.articleCard.reviewedDoctor")} ${g}`,src:E||v,style:{width:(0,y.h)(20),height:(0,y.h)(20),borderRadius:"50%"}}),c.createElement("div",null,c.createElement(Y.T,{size:"c1",weight:"regular",color:h.r.colors.gray800,lineClamp:1},c.createElement(eF,null,C("common.articleCard.reviewedDoctor"),":")," ",g)))))}},OESL:function(e,t,n){n.d(t,{A:function(){return AuthorBadge},B:function(){return BookingBtn}});var l=n("vEfc"),a=n("q1tI"),o=n("sFNn"),i=n("/npG"),r=n("LrmT"),s=n("LuOk"),c=n("abax"),u=n("d/ZZ"),d=n("xrdX"),m=n("GOBr"),p=(0,i.k)(e=>({root:{display:"inline-block",flexShrink:0,padding:"2px 0.5rem",marginLeft:"4px",borderRadius:e.radius.xs,fontSize:"12px",fontWeight:400,lineHeight:"18px",'&[data-label-type="admin"]':{background:e.primaryColor[0],color:e.primaryColor[9]},'&[data-label-type="local admin"]':{background:e.primaryColor[8]},'&[data-label-type="ambassador"]':{background:e.colors.green[4]},'&[data-label-type="expert"]':{background:e.colors.yellow[6]},'&[data-label-type="moderator"]':{background:e.colors.red[0],color:e.colors.red[8]},'&[data-label-type="sponsor"]':{background:e.colors.teal[4]},'&[data-label-type="guide"]':{background:e.colors.teal[4]},'&[data-label-type="influencer"]':{background:e.colors.teal[4]}}}));let h={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},looselyMatchRole=e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find(t=>t===e),AuthorBadge=e=>{var{siteType:t,role:n,title:i,styles:r,className:s}=e,c=(0,l.a)(e,["siteType","role","title","styles","className"]);let{t:u}=(0,o.u)(),d=n?looselyMatchRole(n):"",{classes:m,cx:g}=p(void 0,{name:"AuthorBadge",styles:r});return d&&h[d]?a.createElement("div",Object.assign({className:g(m.root,s),"data-label-type":d,"data-is-marrybaby":"marryBaby"===t},c),i||u(h[d])):null},BookingBtn=e=>{var{label:t,bookingId:n,bookingType:i="doctor",locale:p="vi-VN"}=e,h=(0,l.a)(e,["label","bookingId","bookingType","locale"]);let{t:g}=(0,o.u)(),[E,v]=(0,a.useState)(!1),C=(0,a.useMemo)(()=>"undefined"!=typeof window?window.location.href:"",[]),b=(0,a.useCallback)(()=>(0,l._)(void 0,void 0,void 0,function*(){var e,t,l,a,o,c,h,g,E,C,b,f,y,I,T;let N="doctor"===i?r.P.GET_DOCTOR_DETAIL:"hospital"===i?r.P.GET_HOSPITAL_DETAIL:"service"===i?r.P.GET_SERVICE_DETAIL:"";try{v(!0);let r=yield(0,u.c)((0,u.b)(N,{id:n,site:d.v[p]}),"get");if((null==r?void 0:r._status)===1){let n="doctor"===i?{id:null===(t=null===(e=null==r?void 0:r._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(a=null===(l=null==r?void 0:r._data)||void 0===l?void 0:l.doctor)||void 0===a?void 0:a.slug,localSlug:null===(o=s.L[p])||void 0===o?void 0:o.DOCTOR}:"hospital"===i?{id:null===(h=null===(c=null==r?void 0:r._data)||void 0===c?void 0:c.branch)||void 0===h?void 0:h.id,slug:null===(E=null===(g=null==r?void 0:r._data)||void 0===g?void 0:g.branch)||void 0===E?void 0:E.slug,localSlug:null===(C=s.L[p])||void 0===C?void 0:C.HOSPITAL}:{id:null===(f=null===(b=null==r?void 0:r._data)||void 0===b?void 0:b.service)||void 0===f?void 0:f.id,slug:null===(I=null===(y=null==r?void 0:r._data)||void 0===y?void 0:y.service)||void 0===I?void 0:I.slug,localSlug:null===(T=s.L[p])||void 0===T?void 0:T.SERVICE};window.location.href=`https://${m.y?"":"discover."}${d.v[p]}/care/${n.localSlug}/${n.slug}-${n.id}/`}else v(!1)}catch(e){console.log(e),v(!1)}}),[]);return n&&i?a.createElement(c.B,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:C,onClick:b,loading:E},h),t||g("careBooking.bookAnAppointment")):null}},PGYf:function(e,t,n){n.d(t,{T:function(){return Tabs}});var l=n("vEfc"),a=n("q1tI"),o=n("aKYm"),i=n("VLUI"),r=n("/npG"),s=n("mYVa"),c=n("rlLN"),u=n("vaps"),d=n("abax"),m=n("uzh1"),p=(0,r.k)((e,t)=>{let{variant:n}=t,l={content:"none",top:0,bottom:0,zIndex:1,width:(0,s.h)(56)};return Object.assign({},"inline"===n&&{root:{},tabsList:{gap:(0,s.h)(24),borderBottom:"none",flexWrap:"nowrap"},tab:{padding:`${(0,s.h)(8)} 0`,color:e.colors.gray[4],borderColor:"transparent",borderBottomWidth:(0,s.h)(2),marginBottom:(0,s.h)(-1),transition:"border 0.2s ease","&:hover":{backgroundColor:"initial",borderColor:"transparent"},"&[data-active='true']":{color:e.fn.primaryColor(),borderColor:e.fn.primaryColor()}},tabRightSection:{},tabLabel:{},tabIcon:{},panel:{},scrollArea:{position:"relative","&.prev-bg":{"&:before":Object.assign(Object.assign({},l),{content:'""',position:"absolute",left:0,background:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)"})},"&.next-bg":{"&:after":Object.assign(Object.assign({},l),{content:'""',position:"absolute",right:0,background:"linear-gradient(90deg, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%)"})}},list:{borderBottom:`1px solid ${e.colors.neutral[1]}`},btn:{position:"absolute",top:"50%",zIndex:2,transform:"translate(0, -50%)",width:(0,s.h)(28),height:(0,s.h)(28),padding:0,background:"white",borderRadius:"50%",cursor:"pointer",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))",".mantine-Button-icon":{display:"flex",alignItems:"center",justifyContent:"center"},"&.disabled":{opacity:0,zIndex:0}},prevBtn:{left:0},nextBtn:{right:0}})});let Tabs=e=>{var t,{variant:n="inline",value:r,styles:s,children:h,dataList:g=[],tabProps:E,listProps:v,panelProps:C,TabComponentDisplay:b,startPadding:f=40,defaultValue:y}=e,I=(0,l.a)(e,["variant","value","styles","children","dataList","tabProps","listProps","panelProps","TabComponentDisplay","startPadding","defaultValue"]);let{cx:T,classes:N}=p({variant:n},{name:"Tabs",styles:s}),O=(0,a.useRef)(null),x=(0,a.useRef)([]),[_,S]=(0,a.useState)(y||(null===(t=null==g?void 0:g[0])||void 0===t?void 0:t.value)),[k,A]=(0,a.useState)(0),[P,L]=(0,a.useState)(!1),[w,M]=(0,a.useState)(!0),[R,B]=(0,a.useState)({x:0,y:0}),H=(0,a.useRef)(null),D=Object.assign({defaultValue:y,classNames:N},h?{value:r}:{value:_,onTabChange:e=>S(e)});(0,a.useEffect)(()=>{S(r)},[r]),(0,a.useEffect)(()=>{var e,t,n;null===(e=H.current)||void 0===e||e.scrollTo({left:(null===(n=null===(t=null==x?void 0:x.current)||void 0===t?void 0:t[k])||void 0===n?void 0:n.offsetLeft)-f,behavior:"smooth"})},[k]),(0,a.useEffect)(()=>{A(g.findIndex(e=>e.value==_))},[_]),(0,a.useEffect)(()=>{var e,t;M(0===R.x),L((null===(e=null==H?void 0:H.current)||void 0===e?void 0:e.clientWidth)+R.x===(null===(t=null==H?void 0:H.current)||void 0===t?void 0:t.scrollWidth))},[R]);let TabTextComponent=({text:e,dataEventCategory:t,dataEventAction:n,dataEventLabel:l})=>b?a.createElement(b,null,e):a.createElement(m.T,{size:"s3",color:"inherit",weight:"semiBold","data-event-category":t,"data-event-action":n,"data-event-label":l},e);return a.createElement(c.m,Object.assign({},D,I),h||a.createElement(a.Fragment,null,a.createElement(u.x,{className:T(N.scrollArea,`${w?"":"prev-bg"} ${P?"":"next-bg"}`),scrollbarSize:0,viewportRef:H,onScrollPositionChange:B},a.createElement(c.m.List,Object.assign({className:N.list,ref:O},v),g.map((e,t)=>a.createElement(c.m.Tab,Object.assign({ref:e=>x.current[t]=e,className:N.tab,key:String(e.value),value:String(e.value)},E),a.createElement(TabTextComponent,Object.assign({},e))))),a.createElement(d.B,{className:T(N.btn,N.prevBtn,w?"disabled":""),unstyled:!0,onClick:()=>A(k-1>-1?k-1:0),leftIcon:a.createElement(o.Z,{size:16})}),a.createElement(d.B,{className:T(N.btn,N.nextBtn,P?"disabled":""),unstyled:!0,onClick:()=>A(k+1a.createElement(c.m.Panel,Object.assign({value:String(e.value),key:String(e.value)},C),e.content))))};Tabs.List=c.m.List,Tabs.Tab=c.m.Tab,Tabs.Panel=c.m.Panel},W9Px:function(e,t,n){n.d(t,{A:function(){return $},B:function(){return U},C:function(){return R},D:function(){return M},E:function(){return w},F:function(){return D},G:function(){return V},H:function(){return P},I:function(){return G},L:function(){return _},Q:function(){return r},S:function(){return k},U:function(){return x},V:function(){return H},Z:function(){return Z},a:function(){return A},b:function(){return N},c:function(){return j},d:function(){return B},e:function(){return L},f:function(){return W},g:function(){return z},h:function(){return q},i:function(){return X},j:function(){return F},k:function(){return Y},l:function(){return O},m:function(){return S},r:function(){return u},s:function(){return Q}});var l,a,o,i,r,s,c,u,d=n("EikE"),m=n("OT65"),p=n("G2RZ"),h=n("YNYf"),g=n("R43W"),E=n("+xLi"),v=n("tO2/"),C=n("YJaS"),b=n("tiWT"),f=n("xrdX"),y=n("UIg8"),I=n("GOBr"),T=n("4BRW");let N="",O="https://id.hellobacsi.com/",x="userGeoLocationCoordinates",_={"vi-VN":{PHONE:"+84",LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},S=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],k={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/T0Op0XUtt0b"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/eyzYCiacZ0b"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},A=[T.L.Vietnam,T.L.Indonesia,T.L.PhilippinesEnglish,T.L.PhilippinesTagalog,T.L.Thailand,T.L.Malaysia,T.L.Myanmar],P=[T.L.Indonesia,T.L.Cambodia,T.L.PhilippinesEnglish,T.L.PhilippinesTagalog,T.L.Thailand,T.L.Singapore],L=[T.L.Vietnam],w=["vi-VN"],M=["id-ID"],R=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],B=["vi-VN","id-ID"],H=[T.L.Vietnam,T.L.Taiwan],D={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(l=r||(r={})).bmi="mi",l.gender="gndr",l.age="ge",l.slug="slug",l.resultId="resultId",l.bmr="mr",l.height="gt",l.weight="wght",l.source="surc",l.type="tp",l.startDate="sd",l.additional="tnl",l.week="wk",l.twins="twn",l.weightBefore="wb",l.yourself="yrslf",l.intensity="sy",l.rate="rt",l.method="mthd",l.day="dy",l.pwg="pwg",l.cycle="le",l.period="prd",l.access_token="tkn",l.name="nm",l.id="id",l.activityLevel="actl",l.status="status",l.birthday="brd",l.withImperialUnit="lbs";let G={[T.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[T.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[T.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[T.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[T.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[T.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[T.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[T.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[T.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[T.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[T.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},U="hhg_user_token",Y="hhg_user_refresh_token",F={[T.L.PhilippinesEnglish]:d.Z,[T.L.Vietnam]:m.default,[T.L.Cambodia]:p.Z,[T.L.India]:h.Z,[T.L.Indonesia]:g.Z,[T.L.Myanmar]:d.Z,[T.L.Malaysia]:E.Z,[T.L.Thailand]:v.Z,[T.L.Taiwan]:C.Z},z="https://cdn.hellohealthgroup.com/countries",V="_ga",$="YYYY-MM-DD",j=9999999,Z=305,W="video_item_detail",q="hhg_cart_care_store_key";(a=s||(s={}))[a.UNAVAILABLE=0]="UNAVAILABLE",a[a.AVAILABLE=1]="AVAILABLE",(o=c||(c={}))[o.FIXED=1]="FIXED",o[o.STARTING=2]="STARTING",o[o.RANGE=3]="RANGE",(i=u||(u={})).VACCINE="VACCINE",i.IVF="IVF",i.EGG_FREEZING="EGG_FREEZING",i.HEALTH_SCREENER="HEALTH_SCREENER";let Q={vaccine:u.VACCINE,ivf:u.IVF,"egg-freezing":u.EGG_FREEZING,screener:u.HEALTH_SCREENER},K={[u.VACCINE]:"vaccine",[u.IVF]:"ivf",[u.EGG_FREEZING]:"egg-freezing",[u.HEALTH_SCREENER]:"screener"};var X=Object.freeze({__proto__:null,basePath:N,SSO_URL:O,USER_GEOLOCATION_COORDINATES_COOKIE:x,LOCALE_SPECS:_,COUNTRY_LIST:S,STATIC_PAGES:k,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:A,HAS_CLINITY_DOWNLOAD_SITE:P,LOCALE_HAS_CART_CARE_SITE:L,ECOM_LOCALES:w,DATA_PRIVACY_LOCALES:M,CARE_LOCALES:R,CARE_BOOKING_LOCALES:B,VIDEO_LOCALES:H,FAVICONS:D,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:G,BEARER_TOKEN_COOKIE:U,BEARER_REFRESH_TOKEN_COOKIE:Y,DATE_FNS_LOCALE:F,CDN_ADDRESS:z,GA_TOKEN_COOKIE:V,API_DATE_FORMAT:$,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:j,ZINDEX_HEADER:Z,VIDEO_DETAIL_TEMP_STORAGE:W,HHG_CART_CARE_STORE_KEY:q,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return u},serviceTypeByProductType:Q,productTypeByServiceType:K,siteHost:b.Cf,siteOptions:b.x9,COUNTRY_CURRENCY_SYMBOL:b.Z5,domainLocales:f.v,MAP_DOMAIN_BY_LOCALE:f.f,get RISK_SCREENER_NAME(){return y.t},RISK_SCREENER_SLUG:y.n,isProduction:I.y})}}]);