"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{e9Kr:function(e,t,a){a.d(t,{I:function(){return Indicator}});var l=a("vEfc"),r=a("q1tI"),n=a("QJsO"),i=a("iBNF");let Indicator=e=>{var{styles:t,color:a=i.r.colors.red700}=e,o=(0,l.a)(e,["styles","color"]);return r.createElement(n.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:a},o))}},kJ9R:function(e,t,a){a.d(t,{B:function(){return BabyGrowthForm}});var l=a("vEfc"),r=a("q1tI"),n=a("/npG"),i=a("mYVa"),o=a("8vDj"),s=a("iuhU"),c=a("cChf"),d=a("ZFu2"),m=a("aHnw"),p=a("KaGd"),u=a("uzh1"),g=a("iBNF"),h=a("sFNn"),b=a("NEg/"),f=a("bcw8"),x=a("eM6a"),v=a("8PyR"),E=a("4BRW"),w=a("fkrl");let y=(0,r.createContext)({}),DefaultForm=e=>{let{t,locale:a}=(0,h.u)(),{classes:l={}}=(0,r.useContext)(b.C),{form:n,currentUrl:i,submitProps:o}=(0,r.useContext)(y),s={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(x.H,Object.assign({formLayout:"default"},e),r.createElement(x.H.FormRow,null,r.createElement(x.H.Control,null,r.createElement(v.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},n.getInputProps("gender"),{error:null}))),n.errors.gender&&r.createElement(x.H.Error,null,n.errors.gender)),r.createElement(x.H.FormRow,null,r.createElement(m.I.Wrapper,{label:r.createElement(u.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.birthday"))},r.createElement(p.D,Object.assign({},s,{maxDate:new Date},n.getInputProps("birthday"),{error:null,onChange:e=>{e&&n.validateField("measurementDate"),n.getInputProps("birthday").onChange(e)}}))),n.errors.birthday&&r.createElement(x.H.Error,null,n.errors.birthday)),r.createElement(x.H.FormRow,null,r.createElement(m.I.Number,Object.assign({label:r.createElement(u.T,{size:"p2",weight:"semiBold"},t("babyGrowth.height"),r.createElement(u.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.cm")})`))},n.getInputProps("height"),{placeholder:t("babyGrowth.height"),min:f.I.height.min,max:f.I.height.max,onChange:e=>{n.setFieldValue("height",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),r.createElement(x.H.FormRow,null,r.createElement(m.I.Number,Object.assign({label:r.createElement(u.T,{size:"p2",weight:"semiBold"},t("babyGrowth.weight"),r.createElement(u.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.kg")})`))},n.getInputProps("weight"),{placeholder:t("babyGrowth.weight"),min:f.I.weight.min,max:f.I.weight.max,onChange:e=>{n.setFieldValue("weight",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),a!==E.L.Vietnam&&r.createElement(x.H.FormRow,null,r.createElement(m.I.Number,Object.assign({label:r.createElement(u.T,{size:"p2",weight:"semiBold"},t("babyGrowth.head"),r.createElement(u.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.cm")})`))},n.getInputProps("head"),{placeholder:t("babyGrowth.head"),onChange:e=>{n.setFieldValue("head",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.checkMesureVal&&r.createElement(x.H.Error,null,n.errors.checkMesureVal),r.createElement(x.H.FormRow,null,r.createElement(m.I.Wrapper,{label:r.createElement(u.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.measurementDate"))},r.createElement(p.D,Object.assign({},s,{defaultValue:new Date},n.getInputProps("measurementDate"),{maxDate:new Date,error:null}))),n.errors.measurementDate&&r.createElement(x.H.Error,null,n.errors.measurementDate)),r.createElement(x.H.FormRow,{className:l.submitWrapper},r.createElement(x.H.Submit,Object.assign({className:l.submitBtn,type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":i},o),t("babyGrowth.input.submit"))))};var C=(0,n.k)(e=>({root:{display:"flex",flexDirection:"column",gap:(0,i.h)(8)},bmiVal:{display:"inline-block"},unitText:{color:e.colors.gray[6]},submitBtn:{}}));let localizeNumberFormat=(e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e),bmiCalculate=(e=0,t=0)=>{try{if(e&&t){let a=Number(t)/Math.pow(Number(e)/100,2);if(isNaN(a))return 0;return Number(localizeNumberFormat(a))}}catch(e){}return 0},InlineForm=e=>{var{styles:t,classNames:a}=e,n=(0,l.a)(e,["styles","classNames"]);let{t:i,locale:c}=(0,h.u)(),{form:d,currentUrl:g,submitProps:w}=(0,r.useContext)(y),{classes:F={}}=(0,r.useContext)(b.C),k=(0,o.rZ)(),{classes:N}=C(void 0,{name:"BabyGrowthForm__InlineForm",styles:t,classNames:a}),D={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(x.H,Object.assign({formLayout:"inline"},n),r.createElement(x.H.FormRow,null,r.createElement(x.H.BorderInlineControl,{label:i("tools.selectBabyGender")},r.createElement(v.G,Object.assign({type:"radio",hideLabel:!0,isBaby:!0,genderValue:{male:"boy",female:"girl"}},d.getInputProps("gender")))),d.errors.gender&&r.createElement(x.H.Error,null,d.errors.gender)),r.createElement(x.H.FormRow,null,r.createElement(x.H.BorderInlineControl,{label:i("babyGrowth.input.birthday")},r.createElement(p.D,Object.assign({},D,{maxDate:new Date},d.getInputProps("birthday"),{error:null,onChange:e=>{e&&d.validateField("measurementDate"),d.getInputProps("birthday").onChange(e)}}))),d.errors.birthday&&r.createElement(x.H.Error,null,d.errors.birthday)),r.createElement(x.H.FormRow,null,r.createElement(x.H.BorderInlineControl,{label:"BMI",styles:{control:{"&:first-child":{width:"auto"}}}},r.createElement(u.T,{size:"p3"},r.createElement("span",{className:N.bmiVal},d.getInputProps("height").value&&d.getInputProps("weight").value&&bmiCalculate(Number(d.getInputProps("height").value),Number(d.getInputProps("weight").value))),"(",i("babyGrowth.kg.m2"),")"),r.createElement(m.I.Number,Object.assign({},d.getInputProps("height"),{placeholder:i("babyGrowth.height"),min:f.I.height.min,max:f.I.height.max,onChange:e=>{d.setFieldValue("height",e),d.setFieldValue("checkMesureVal",!d.values.checkMesureVal)},rightSection:r.createElement(x.H.Unit,null,i("babyGrowth.cm"))})),r.createElement(m.I.Number,Object.assign({},d.getInputProps("weight"),{placeholder:i("babyGrowth.weight"),min:f.I.weight.min,max:f.I.weight.max,onChange:e=>{d.setFieldValue("weight",e),d.setFieldValue("checkMesureVal",!d.values.checkMesureVal)},rightSection:r.createElement(x.H.Unit,null,i("babyGrowth.kg"))}))),("mb"===k.other.template||c!==E.L.Vietnam)&&r.createElement(x.H.BorderInlineControl,{label:i("babyGrowth.head")},r.createElement(m.I.Number,Object.assign({},d.getInputProps("head"),{placeholder:i("babyGrowth.head"),onChange:e=>{d.setFieldValue("head",e),d.setFieldValue("checkMesureVal",!d.values.checkMesureVal)},rightSection:r.createElement(x.H.Unit,null,i("babyGrowth.cm"))}))),d.errors.checkMesureVal&&r.createElement(x.H.Error,null,d.errors.checkMesureVal)),r.createElement(x.H.FormRow,null,r.createElement(x.H.BorderInlineControl,{label:i("babyGrowth.input.measurementDate")},r.createElement(p.D,Object.assign({},D,{maxDate:new Date},d.getInputProps("measurementDate"),{error:null}))),d.errors.measurementDate&&r.createElement(x.H.Error,null,d.errors.measurementDate)),r.createElement(x.H.FormRow,{className:F.submitWrapper},r.createElement(x.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":g,className:(0,s.default)(N.submitBtn,F.submitBtn)},w),i("babyGrowth.input.submit"))))},MbLayout=e=>{var t=(0,l.a)(e,[]);let{t:a}=(0,h.u)(),{form:n,currentUrl:i,submitProps:o}=(0,r.useContext)(y),s={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(x.H,Object.assign({formLayout:"default"},t),r.createElement(x.H.FormRow,null,r.createElement(x.H.Control,null,r.createElement(v.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},n.getInputProps("gender"),{error:null}))),n.errors.gender&&r.createElement(x.H.Error,null,n.errors.gender)),r.createElement(x.H.BorderBoxControl,{label:a("babyGrowth.input.birthday"),rightSection:r.createElement(w.Z,null)},r.createElement(p.D,Object.assign({},s,{maxDate:new Date},n.getInputProps("birthday"),{error:null,rightSection:null,onChange:e=>{e&&n.validateField("measurementDate"),n.getInputProps("birthday").onChange(e)}}))),n.errors.birthday&&r.createElement(x.H.Error,null,n.errors.birthday),r.createElement(x.H.BorderBoxControl,{label:a("babyGrowth.height"),rightSection:a("babyGrowth.cm")},r.createElement(m.I.Number,Object.assign({},n.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"}),min:f.I.height.min,max:f.I.height.max,onChange:e=>{n.setFieldValue("height",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.height&&r.createElement(x.H.Error,null,n.errors.height),r.createElement(x.H.BorderBoxControl,{label:a("babyGrowth.weight"),rightSection:a("babyGrowth.kg")},r.createElement(m.I.Number,Object.assign({},n.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"}),min:f.I.weight.min,max:f.I.weight.max,onChange:e=>{n.setFieldValue("weight",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.weight&&r.createElement(x.H.Error,null,n.errors.weight),r.createElement(x.H.BorderBoxControl,{label:a("babyGrowth.head"),rightSection:a("babyGrowth.cm")},r.createElement(m.I.Number,Object.assign({},n.getInputProps("head"),{placeholder:a("tools.inputPlaceholder",{content:"50"}),onChange:e=>{n.setFieldValue("head",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.checkMesureVal&&r.createElement(x.H.Error,null,n.errors.checkMesureVal),r.createElement(x.H.BorderBoxControl,{label:a("babyGrowth.input.measurementDate"),rightSection:r.createElement(w.Z,null)},r.createElement(m.I.Wrapper,null,r.createElement(p.D,Object.assign({},s,{defaultValue:new Date},n.getInputProps("measurementDate"),{maxDate:new Date,rightSection:null,error:null})))),n.errors.measurementDate&&r.createElement(x.H.Error,null,n.errors.measurementDate),r.createElement(x.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":i},o),a("babyGrowth.input.submit")))},BabyGrowthForm=e=>{var{onSubmit:t,formLayout:a="default",submitProps:n,currentUrl:i}=e,s=(0,l.a)(e,["onSubmit","formLayout","submitProps","currentUrl"]);let{t:m}=(0,h.u)(),p=(0,o.rZ)(),u=(0,c.c)({initialValues:{measurementDate:new Date},validate:{gender:(0,d.U)(m("validation.error.requiredField")),birthday:(0,d.U)(m("validation.error.requiredField")),measurementDate:(e,t)=>t.birthday?t.birthday instanceof Date&&e instanceof Date&&t.birthday.getTime()<=e.getTime()?null:m("babyGrowth.error.measurementDateLowerThanBirthday",{name:""}):null,checkMesureVal:(e,t)=>void 0===t.head&&void 0===t.height&&void 0===t.weight||t.head||t.height||t.weight?null:m("babyGrowth.error.atLeastOneOf")},validateInputOnChange:["checkMesureVal"]}),g=Object.assign({onSubmit:u.onSubmit(e=>null==t?void 0:t(Object.assign(Object.assign({},e),{bmi:bmiCalculate(Number(u.getInputProps("height").value),Number(u.getInputProps("weight").value)).toString()})))},s);return r.createElement(y.Provider,{value:{submitProps:n,currentUrl:i,form:u}},"default"===a?"mb"===p.other.template?r.createElement(MbLayout,Object.assign({formLayout:a},g)):r.createElement(DefaultForm,Object.assign({},g)):r.createElement(InlineForm,Object.assign({},g)))}},eM6a:function(e,t,a){a.d(t,{H:function(){return HealthToolFormWrapper}});var l=a("vEfc"),r=a("q1tI"),n=a("/npG"),i=a("mYVa"),o=a("Eso5"),s=a("aDCK"),c=a("9n+W"),d=a("8vDj"),m=a("SPK5"),p=a("2wr/"),u=a("uzh1"),g=a("abax"),h=a("sFNn"),b=a("yVya"),f=a("iBNF"),x=(0,n.k)(()=>({root:{justifyContent:"flex-start"},group:{display:"flex",alignItems:"stretch",gap:(0,i.h)(8)},item:{flex:"1 1 0px"},icon:{flexShrink:0}}));let v=(0,r.createContext)({}),E=(0,n.k)(()=>({root:{display:"flex",flexDirection:"column",gap:(0,i.h)(8),paddingLeft:16,paddingRight:16,"&:last-child":{paddingBottom:16}}}));var w=(0,n.k)((e,{formLayout:t})=>({root:{display:"flex",flexDirection:"column",gap:(0,i.h)("inline"===t?8:16),borderRadius:"inherit",".mantine-Input-input::placeholder, .mantine-Input-input[data-invalid]::placeholder":{color:"#8C8C8C"},[e.fn.smallerThan("sm")]:Object.assign({"input, .mantine-DatePickerInput-input":{fontSize:(0,i.h)(14)}},"default"===t&&{gap:8})},control:{width:(0,i.h)(180),flexShrink:1,"&.error":{"button, input":{borderColor:e.colors.red[7]}}}}));let y=(0,n.k)((e,{formLayout:t})=>{let a="mb"===e.other.template;return{root:Object.assign(Object.assign({minWidth:(0,i.h)(180)},"inline"===t&&{alignSelf:"flex-end",marginTop:(0,i.h)(16)}),"default"===t&&Object.assign({},a&&{alignSelf:"center"}))}}),C=(0,n.k)(e=>({root:{color:e.colors.gray[6],whiteSpace:"nowrap",paddingRight:(0,i.h)(16)}}));var F=(0,n.k)(()=>({root:{display:"flex",gap:(0,i.h)(8),border:"1px solid #EAEAEC",borderRadius:(0,i.h)(16),padding:"10px 16px 12px 16px",flex:"1 1 0px",".mantine-Input-input":{border:0,paddingLeft:0,height:"22px",borderRadius:0,"&:focus":{outline:0,boxShadow:"none"}}},info:{display:"flex",flexDirection:"column",gap:0,flex:"1 1 0px"},label:{color:"#7C7C8F",fontWeight:"normal"},content:{},rightSection:{display:"flex",alignItems:"center",textTransform:"lowercase",color:"#3E3F58"}})),k=(0,n.k)((e,{width:t,direction:a})=>{let l="mb"===e.other.template;return{root:{display:"flex",flexDirection:"column",gap:(0,i.h)(8)},row:{display:"flex",flexDirection:a,alignItems:"stretch",justifyContent:"space-between",gap:(0,i.h)(16),minHeight:(0,i.h)(40)},labelWrapper:Object.assign({flex:"1 1 0px",display:"flex",alignItems:"center"},"row"===a&&{borderBottom:`1px solid ${e.colors.neutral[1]}`}),label:{fontSize:(0,i.h)(14),lineHeight:(0,i.h)(22),color:e.colors.gray[6]},content:{display:"flex",alignItems:"center",gap:(0,i.h)(8),input:{backgroundColor:"#fff"}},control:{width:"number"==typeof t?(0,i.h)(t):t,flexShrink:1,input:Object.assign({},l&&{borderRadius:(0,i.h)(12)}),"&.error":{"button, input":{borderColor:e.colors.red[7]}}},error:{color:"red",textAlign:"right"}}});let N=(0,n.k)(()=>({root:{color:"red",textAlign:"right",width:"auto"}}));var D=(0,n.k)(e=>{let t="mb"===e.other.template;return{root:{label:Object.assign({},t&&{color:f.r.mbColors.midGray,fontSize:(0,i.h)(12),fontWeight:"normal"})}}});let HealthToolFormWrapper=e=>{var{children:t,formLayout:a,styles:n,classNames:i,className:s,component:c="form"}=e,d=(0,l.a)(e,["children","formLayout","styles","classNames","className","component"]);let m=a||"default",{classes:p,cx:u}=w({formLayout:m},{name:"HealthToolFormWrapper",styles:n,classNames:i});return r.createElement(v.Provider,{value:{formLayout:m}},r.createElement(o.x,Object.assign({component:c,className:u(s,p.root)},d),t))};HealthToolFormWrapper.Control=e=>{var{className:t,styles:a,classNames:n}=e,i=(0,l.a)(e,["className","styles","classNames"]);let{classes:s,cx:c}=D(void 0,{name:"HealthToolFormWrapper__Control",styles:a,classNames:n});return r.createElement(o.x,Object.assign({className:c(t,s.root)},i))},HealthToolFormWrapper.BorderInlineControl=({label:e,children:t,styles:a,classNames:l,direction:n="row",width:i=180,errorMess:s})=>{let{classes:c}=k({width:i,direction:n},{name:"HealthToolFormWrapper__BorderInlineControl",styles:a,classNames:l});return r.createElement(o.x,{className:c.root},r.createElement(o.x,{className:c.row},r.createElement(o.x,{className:c.labelWrapper},e&&r.createElement("label",{className:c.label,htmlFor:"gender"},e)),r.createElement(o.x,{className:c.content},(0,b.Z)(t).map((e,t)=>r.createElement(o.x,{key:t,className:c.control},e)))),s&&r.createElement(u.T,{size:"p4",className:c.error},s))},HealthToolFormWrapper.BorderBoxControl=e=>{var{label:t,rightSection:a,children:n,styles:i,className:s,classNames:c}=e,d=(0,l.a)(e,["label","rightSection","children","styles","className","classNames"]);let{classes:m,cx:p}=F(void 0,{name:"HealthToolFormWrapper__BorderBoxControl",styles:i,classNames:c});return r.createElement(o.x,Object.assign({className:p(m.root,s)},d),r.createElement(o.x,{className:m.info},t&&r.createElement(u.T,{size:"n1",as:"label",className:m.label},t),r.createElement(o.x,{className:m.content},r.isValidElement(n)?r.cloneElement(n,Object.assign(Object.assign({},n.props),{size:"sm",error:null})):null)),a&&r.createElement(o.x,{className:m.rightSection},"string"==typeof a?r.createElement(u.T,{size:"p4"},a):r.isValidElement(a)?r.cloneElement(a,{size:24}):null))},HealthToolFormWrapper.Error=e=>{var{styles:t,classNames:a,className:n}=e,i=(0,l.a)(e,["styles","classNames","className"]);let{classes:o,cx:s}=N(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return r.createElement(u.T,Object.assign({size:"p4",className:s(n,o.root)},i))},HealthToolFormWrapper.FormRow=e=>{var{styles:t,classNames:a,className:n,children:i}=e,s=(0,l.a)(e,["styles","classNames","className","children"]);let{classes:c,cx:d}=E(void 0,{name:"HealthToolFormWrapper__FormRow",styles:t,classNames:a});return r.createElement(o.x,Object.assign({className:d(n,c.root)},s),i)},HealthToolFormWrapper.Submit=e=>{var{styles:t,classNames:a,className:n}=e,i=(0,l.a)(e,["styles","classNames","className"]);let{formLayout:o}=(0,r.useContext)(v),{classes:s,cx:c}=y({formLayout:o},{name:"HealthToolFormWrapper__SubmitBtn",styles:t,classNames:a});return r.createElement(g.B,Object.assign({className:c("submit-btn",n,s.root)},i,{variant:"primary",size:"md"}))},HealthToolFormWrapper.Unit=e=>{var{styles:t,classNames:a,className:n}=e,i=(0,l.a)(e,["styles","classNames","className"]);let{classes:o,cx:s}=C(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return r.createElement(u.T,Object.assign({size:"p4",className:s(n,o.root)},i))},HealthToolFormWrapper.Switching=e=>{var{label:t}=e,a=(0,l.a)(e,["label"]);let{t:n}=(0,h.u)(),o=(0,d.rZ)(),s="mb"===o.other.template;return r.createElement(m.k,{gap:(0,i.h)(4),sx:()=>({justifyContent:"space-between",alignItems:"center"})},t&&r.createElement(u.T,{size:s?"p4":"s4",color:"gray.6"},t),r.createElement(p.r,Object.assign({labelPosition:"left",onLabel:n("switchBtn.yes"),offLabel:n("switchBtn.no")},a,{styles:e=>({trackLabel:{fontSize:(0,i.h)(12)},track:{cursor:"pointer"},body:{[e.fn.largerThan("sm")]:{flexDirection:"column",alignItems:"flex-start"},[e.fn.smallerThan("sm")]:{justifyContent:"space-between"}},labelWrapper:{[e.fn.smallerThan("sm")]:{display:"flex",justifyContent:"center"}}})})))},HealthToolFormWrapper.ChipGroup=e=>{var{data:t=[],label:a,isMobile:n,layout:d="horizonal",classNames:m,styles:p}=e,g=(0,l.a)(e,["data","label","isMobile","layout","classNames","styles"]);let{classes:h,theme:b}=x(void 0,{name:"ChipGroup",classNames:m,styles:p}),f="mb"===b.other.template,v=n?48:f?32:"vertical"===d?32:18;return r.createElement(o.x,null,r.createElement(s.I.Wrapper,{label:a&&r.createElement(u.T,{size:"p3",weight:"semiBold"},a)},r.createElement(c.A.Group,Object.assign({},g),r.createElement(o.x,{className:h.group},t.map((e,t)=>r.createElement(c.A,{className:h.item,key:t,value:String(e.value),styles:{iconWrapper:{display:"none"},label:{width:"100%",borderRadius:(0,i.h)(f?12:8),padding:0,border:`1px solid ${f?"#EAEAEC":b.colors.neutral[2]}`,height:"100%","&[data-checked]":{padding:0,backgroundColor:f?"#FFE9F1":b.colors.blue[0],border:`1px solid ${f?"#F5B4CB":b.colors.blue[1]}`},[b.fn.smallerThan("sm")]:{alignItems:"flex-start"}}}},r.createElement(o.x,{sx:Object.assign(Object.assign(Object.assign({width:"100%",display:"flex",gap:(0,i.h)(f?2:8),padding:"8px 16px 8px 12px",justifyContent:"center",alignItems:"center"},f&&{flexDirection:"column"}),"vertical"===d&&{flexDirection:"column",padding:"16px 8px 8px"}),{[b.fn.smallerThan("sm")]:{flexDirection:"column",padding:"16px 8px 8px"}})},r.isValidElement(e.icon)?r.cloneElement(e.icon,{size:v,isMarryBaby:f,className:h.icon}):null,r.createElement(u.T,{size:"p4",styles:{root:Object.assign(Object.assign({},f&&{textAlign:"center"}),{whiteSpace:"normal",[b.fn.smallerThan("sm")]:{fontSize:(0,i.h)(12),lineHeight:(0,i.h)(18),textAlign:"center"}})}},e.label))))))))}},UcVs:function(e,t,a){a.d(t,{D:function(){return Dropdown}});var l=a("q1tI"),r=a("8vDj"),n=a("rBCA"),i=a("iBNF");let o=n.Z.div` --dropdown-padding: 12px 18px 12px 16px; position: relative; box-sizing: border-box; border: 1px solid ${i.r.colors.gray200}; background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat; background-position: right 16px center; border-radius: ${i.r.borderRadius}; &[data-disabled='true'], :disabled { background-color: #f2f2f2; cursor: not-allowed; } &[data-size='sm'] { font-size: 13px; line-height: 20px; } &[data-size='md'] { font-size: 14px; line-height: 21px; } &[data-size='lg'] { font-size: 16px; line-height: 24px; } &[data-has-icons='true'] { border: none; background: ${i.r.colors.gray100}; img, svg { display: inline-block; max-width: 16px; margin-right: 6px; } span { display: inline-block; vertical-align: middle; } &:hover { box-shadow: none; } > div { position: relative; display: flex; width: 100%; box-sizing: border-box; align-items: center; } > div::after { position: absolute; top: 50%; right: 12px; width: 10px; height: 8px; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; content: ''; transform: translateY(-50%); } } &:hover { box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } &[data-is-native='true'] { padding: var(--dropdown-padding); line-height: 24px; &:focus { box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } } `,s=n.Z.div` padding: var(--dropdown-padding); cursor: pointer; &.with-label { padding-top: 34px; padding-bottom: 12px; } &[data-dropdown-open] { padding: 11px 15px 11px 15px; border: 1px solid ${e=>e.color}; border-radius: ${i.r.borderRadius}; box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } `,c=n.Z.ul` position: absolute; top: 100%; /* right: 0; */ min-width: 100%; left: 0; display: block; margin-top: 4px; background: ${i.r.colors.white}; border-radius: ${i.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); cursor: pointer; &[data-has-icons='true'] { border: 1px solid ${i.r.colors.gray200}; background: white; box-shadow: none; filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04)); } `,d=n.Z.li` display: flex; padding: 12px 18px 12px 16px; &[data-disabled='true'] { cursor: not-allowed; color: #bfbfbf; & > * { pointer-events: none; } } &:hover, :active { background: ${i.r.colors.gray100}; } `,m=n.Z.div` max-width: 16px; margin-right: 8px; `,p=n.Z.div` position: absolute; top: 12px; left: 16px; pointer-events: none; `,Dropdown=({className:e,value:t,options:a,onChange:n=()=>void 0,id:i,placeholderIcon:u,placeholder:g,style:h,size:b="lg",groupedWithLabel:f,disabled:x,dropdownLabelTrackingAttributes:v={},isNativeSelect:E=!1})=>{let w=(0,r.rZ)(),[y,C]=l.useState(!1),showDropdown=()=>!x&&C(!y);if(E){let e="object"==typeof(null==t?void 0:t.value)&&t.value instanceof Date?t.value.toString():null==t?void 0:t.value;return l.createElement(o,{color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:x,onChange:e=>{if("string"==typeof e.target.value){let t=a.find(t=>t.value===e.target.value);t&&n(t)}}},g&&l.createElement("option",{value:g,disabled:!0,selected:!0},g),a.map(e=>l.createElement("option",{key:`${i}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))}return l.createElement(o,{color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][2],className:e,"data-dropdown-open":y||void 0,"data-size":b,id:i,"data-has-icons":!!u,style:h,onBlur:()=>C(!1),tabIndex:0,"data-disabled":x},!!f&&l.createElement(p,null,f),l.createElement(s,Object.assign({color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][2],onClick:showDropdown,className:f&&"with-label"},v),u," ",l.createElement("span",null,t&&t.value?t.label:g)),y&&l.createElement(c,{onClick:showDropdown,"data-has-icons":!!u},a.map(e=>l.createElement(d,{key:`${i}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>!e.disabled&&!x&&(null==n?void 0:n(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&l.createElement(m,null,e.icon),e.label))))}},"6sNj":function(e,t,a){a.d(t,{M:function(){return f},N:function(){return NotificationsHandler},a:function(){return getHeadingStyles},g:function(){return getMantineThemeOverride},s:function(){return showNotification},t:function(){return k},u:function(){return useMantineLocale}});var l=a("vEfc"),r=a("q1tI"),n=a("Wgwc"),i=a.n(n),o=a("4BRW"),s=a("INKa"),c=a("0Woy"),d=a("W9Px"),m=a("mYVa"),p=a("Wbba"),u=a("iBNF"),g=a("CL9C"),h=a("NXxl"),b=a("xsRI");let f={[o.L.Vietnam]:"vi",[o.L.Cambodia]:"km",[o.L.India]:"hi",[o.L.Indonesia]:"id",[o.L.Malaysia]:"ms",[o.L.Thailand]:"th",[o.L.Taiwan]:"zh-tw",[o.L.PhilippinesTagalog]:"tl-ph",[o.L.PhilippinesEnglish]:"en",[o.L.Myanmar]:"my",[o.L.Singapore]:"zh-cn"},x={[o.L.Vietnam]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"EdQk",23)),[o.L.Cambodia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"9mFM",23)),[o.L.India]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"sjup",23)),[o.L.Indonesia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"gydT",23)),[o.L.Malaysia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"KjFU",23)),[o.L.Thailand]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"axPs",23)),[o.L.Taiwan]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"UIeI",23)),[o.L.Singapore]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"pHGr",23)),[o.L.PhilippinesTagalog]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"BmsB",23)),[o.L.PhilippinesEnglish]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"njAx",23)),[o.L.Myanmar]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(9862),a.e(3800),a.e(8132),a.e(1375),a.e(4561),a.e(1193),a.e(2094),a.e(1797),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(1152),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(8639),a.e(7082),a.e(553),a.e(9309),a.e(7221),a.e(2853),a.e(8232),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(3566)]).then(a.t.bind(a,"5EMu",23))},useMantineLocale=e=>{let[t,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(0,l._)(void 0,void 0,void 0,function*(){var t;a(!1),yield null===(t=x[e])||void 0===t?void 0:t.call(x),i().locale(f[e]),a(!0)})},[e]),{isLoaded:t}},GlobalButtonStyle=()=>({Button:{defaultProps:{variant:"primary",size:"md"}}}),v={[h.C.NONE]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#1a1a1a"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]},[h.C.LEADGEN]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#111111"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]}};function NotificationsHandler(){return r.createElement(s.T,{position:"top-right",zIndex:d.c+5,autoClose:5e3})}let E={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},w={success:r.createElement(()=>r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M10 18.333a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 0 0 0 16.666",fill:"#00B16A"}),r.createElement("path",{d:"m13.833 7.5-5.5 5-2.5-2.273",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),danger:r.createElement(()=>r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",fill:"#262626"}),r.createElement("path",{d:"m14.829 9.172-5.657 5.656m-.001-5.656 5.657 5.656",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),warning:r.createElement(()=>r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"})),null),info:r.createElement(()=>r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12",fill:"#2D87F3"}),r.createElement("path",{d:"M8 11V8m0-3h.01",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),firebase:""},showNotification=e=>{var{type:t,title:a}=e,n=(0,l.a)(e,["type","title"]);let i=w[t];c.N9.show(Object.assign(Object.assign({title:r.createElement("b",null,a),icon:i,withCloseButton:!0,closeButtonProps:{label:"Close alert"}},n),{styles:e=>{let a=E[t]||"blue";return{root:{backgroundColor:e.colors[a][0],borderColor:e.colors[a][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[a][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[a][0]}},icon:{backgroundColor:"transparent",padding:0}}}}))},y={Container:{defaultProps:{sizes:{lg:(0,m.em)(g.S.LG)}}}},C={none:{default:[{size:"40px",lineHeight:"52px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"42px",letterSpacing:"-1px"},{size:"26px",lineHeight:"36px",letterSpacing:"-0.8px"},{size:"22px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"18px",lineHeight:"28px",letterSpacing:"-0.2px"},{size:"16px",lineHeight:"24px",letterSpacing:0}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]},leadgen:{default:[{size:"40px",lineHeight:"48px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"40px",letterSpacing:"-1px"},{size:"26px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"20px",lineHeight:"28px",letterSpacing:"-0.4px"},{size:"17px",lineHeight:"24px",letterSpacing:"-0.4px"},{size:"15px",lineHeight:"24px",letterSpacing:"-0.3px"}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]}},getHeadingStyles=e=>{let{version:t=h.C.NONE,mbDown:a}=e||{},l=C[t]||{};return Object.fromEntries((l[a?"mbDown":"default"]||[]).map((e,t)=>[`h${t+1}`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))},GlobalHeadingStyle=(e=h.C.NONE)=>({Title:{styles:{root:Object.assign(Object.assign({fontWeight:h.F.bold},getHeadingStyles({version:e})),{[`&${g.M.mbDown}`]:Object.assign({},getHeadingStyles({version:e,mbDown:!0}))})}}}),GlobalInputStyle=e=>{var t;return{InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:(0,m.h)(14),lineHeight:"22px",color:u.r.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:u.r.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:null===(t=d.I[e])||void 0===t?void 0:t.separator}},Input:{styles:(e,t,{size:a})=>({input:{border:`1px solid ${u.r.colors.gray200}`,transition:`all ${b.A} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(a){case"lg":return{height:48,minHeight:"unset",fontSize:16,lineHeight:"24px"};case"md":return{height:40,minHeight:"unset",fontSize:(0,m.h)(14),lineHeight:"22px"};case"sm":return{height:32,minHeight:"unset",fontSize:(0,m.h)(14),lineHeight:"22px"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},'&[data-invalid="true"]':{border:`1px solid ${u.r.colors.red600}`,color:"#000"}})}}},F={Radio:{defaultProps:{size:"sm",color:"blue.6"},styles:{radio:{backgroundColor:"transparent","&:checked":{backgroundColor:"transparent"}}}}},k=v[h.C.NONE],getMantineThemeOverride=(e,t="hb",a)=>{var l;return{defaultRadius:"hb"===t?8:16,cursorType:"pointer",colors:Object.assign(Object.assign(Object.assign({},null!==(l=v[a])&&void 0!==l?l:v[h.C.NONE]),u.r.colors),{toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"}),primaryColor:t,primaryShade:6,fontFamily:(e===o.L.Cambodia?"Battambang":e===o.L.Thailand?"Noto Sans Thai":"Inter")+", -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:(0,m.em)(g.B.BREAK_POINT_SMALL_MOBILE),sm:(0,m.em)(g.B.BREAK_POINT_MOBILE),md:(0,m.em)(g.B.BREAK_POINT_TABLET),lg:(0,m.em)(g.B.BREAK_POINT_PC),xl:(0,m.em)(g.B.BREAK_POINT_LGPC)},components:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GlobalInputStyle(e)),F),GlobalButtonStyle()),GlobalHeadingStyle(a)),y),other:{template:t,customStyleType:a,defaultImage:p.C.getAssetPath("mb"===t?"default-image-mb.jpg":"default-image.jpg")}}}},"09fm":function(e,t,a){a.d(t,{R:function(){return RadioImageGroup}});var l=a("q1tI"),r=a("iBNF"),n=a("rBCA"),i=a("1hey"),o=a("+YhV");let s=n.Z.div` display: flex; width: 100%; &[data-direction='vertical'] { flex-direction: column; } &[data-direction='horizontal'] { flex-wrap: wrap; } `,c=n.Z.div` display: flex; padding: 8px; border-radius: ${r.r.borderRadius}; cursor: pointer; & > div { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: flex-start; } &[data-is-mb='false'] { &[data-selected='true'] { border: 1px solid #2d87f3; background: white; } &[data-selected='false'] { border: 1px solid #f2f2f2; box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08); } } &[data-is-mb='true'] { border-radius: 16px; background: white; padding: 16px auto; &[data-selected='true'] { border: 1px solid ${r.r.mbColors.mint}; box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06); } &[data-selected='false'] { border: none; } } &[data-disabled='true'] { cursor: auto; } .radio-group-item-heading { margin-top: 8px; //height: 48px; text-align: center; } .gender-image { width: 70px; height: 70px; &[data-is-mobile='true'] { width: 40px; height: 40px; } } `,RadioImageGroup=({value:e,options:t,className:a,direction:n="horizontal",onChange:d,isDisabled:m,siteType:p})=>{let[u,g]=(0,l.useState)(e),handleOnChange=e=>{!m&&(g(e),d&&d(e))},h="marryBaby"===p;return l.createElement(s,{className:a,"data-direction":n},t.map((t,a)=>l.createElement(c,{"data-selected":(e||u)===t.value,"data-is-mb":h,"data-disabled":m,key:a,onClick:()=>{handleOnChange(t.value)}},l.createElement("div",null,t.content,t.label&&l.createElement(l.Fragment,null,h?l.createElement(i.M,{type:"subtitle-2",color:(e||u)===t.value?r.r.mbColors.dark:r.r.mbColors.midGray},t.label):l.createElement(o.T,{type:"bold",color:(e||u)===t.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},t.label))))))}},Pn4S:function(e,t,a){a.d(t,{I:function(){return Input},L:function(){return Label},S:function(){return p},a:function(){return m},b:function(){return d}});var l=a("vEfc"),r=a("q1tI"),n=a("8vDj"),i=a("rBCA"),o=a("iBNF"),s=a("CL9C");let c=i.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${o.r.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${o.r.colors.gray200}; border-radius: ${o.r.borderRadius}; &:active, &:focus, &.focused { border-color: ${e=>e.color}; box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } &:disabled { background-color: ${o.r.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${o.r.sizes.fwRegular}; ${s.M.mbDown} { font-size: 22px; line-height: 1.2; } ${s.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${o.r.sizes.fwRegular}; line-height: 22px; ${s.M.mbDown} { font-size: 14px; line-height: 1.2; } ${s.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${o.r.sizes.fwRegular}; line-height: 20px; ${s.M.mbDown} { font-size: 13px; line-height: 1.5; } ${s.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,d=i.Z.label` color: ${o.r.colors.red700}; font-weight: ${o.r.sizes.fwRegular}; `,m=i.Z.div` position: absolute; top: 50%; right: 16px; cursor: pointer; transform: translateY(-50%); `,p=i.Z.div` position: absolute; top: 50%; left: 16px; display: inline-flex; cursor: default; transform: translateY(-50%); `,Label=({children:e,className:t,style:a,htmlFor:l,size:n})=>r.createElement("label",{"data-size":n,className:`DjBFAbd ${t||""}`,style:a,htmlFor:l},e),Input=e=>{var{name:t,value:a,errorMessage:i,isNumerousKeyboard:o=!1,showErrorMessage:s=!0,actionIcon:u,displayIcon:g,onActionClick:h,label:b,className:f,onChange:x,isDisabled:v,CustomInput:E,size:w,style:y,autoComplete:C="off",type:F="text",inputClassName:k,trackingAttributes:N,enterKeyHint:D}=e,P=(0,l.a)(e,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);let A=(0,n.rZ)(),z=(0,r.useMemo)(()=>N?{"data-event-category":N.dataEventCategory,"data-event-action":N.dataEventAction,"data-event-label":N.dataEventLabel}:{},[N]);return r.createElement(c,{"data-size":w,className:f,"data-has-action-icon":!!u||void 0,"data-has-display-icon":!!g||void 0,"data-has-error":i&&i.length>0||void 0,color:A.fn.primaryColor(),shadowColor:A.colors[A.primaryColor][0],style:y},b&&r.createElement(Label,{size:"label2",htmlFor:t,className:"inputLabel"},b),r.createElement("div",{style:{position:"relative"}},E||r.createElement("input",Object.assign({id:t,name:t,onChange:e=>x&&x(e.target.value),type:F,"aria-label":F,value:a,disabled:v,autoComplete:C,inputMode:o||"number"===F?"numeric":F,pattern:o?"[0-9]*":".*",className:k,enterKeyHint:D},z,P)),g&&r.createElement(p,{className:"displayIcon"},g),u&&r.createElement(m,{className:"actionIcon",onClick:h},u)),i&&i.length>0&&s&&r.createElement(d,{className:"errorLabel"},i))}},oxwC:function(e,t,a){a.d(t,{F:function(){return Footer}});var l=a("q1tI"),r=a("cSIu"),n=a("Wgwc"),i=a.n(n),o=a("SPK5"),s=a("OAL+"),c=a("Eso5"),d=a("uzh1"),m=a("CL9C"),p=a("RBzE"),u=a("rBCA"),g=a("iBNF"),h=a("xrdX"),b=a("zgme"),f=a("1hey");let x=u.Z.footer` background-color: #1b3250; .inner { padding: 64px 24px 98px 24px; margin: 0 auto; } .newsletter { padding: 24px 0; } .footer-logo { max-width: 132px; max-height: 32px; &[data-is-sehat='true'] { max-width: 250px; } img { object-fit: contain; } } .social { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; > .icons { display: flex; gap: 16px; } } hr { height: 1px; border: none; margin: 16px 0 16px 0; background: ${g.r.colors.neutral500}; opacity: 0.1; outline: none; } .footer-menu-column { min-width: 168px; } .footer-menu-title { margin-bottom: 16px; } .footer-menu-link { display: block; } .footer-menu-link-wrapper { display: flex; flex-direction: column; gap: 12px; } .copyright { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; .copyright-content { color: ${g.r.colors.neutral500}; font-size: 12px; } .copyright-image-wrapper { flex-shrink: 0; flex-wrap: wrap; display: flex; gap: 16px; justify-content: flex-end; .copyright-image { align-self: flex-start; img { height: 32px; } } } } .otherSites { display: flex; gap: 16px; align-items: center; padding: 19px 0; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; .flags { display: flex; gap: 12px; } } .signupButton { display: none; border: none; margin-top: 16px; outline: none; text-transform: uppercase; } ${m.M.mbDown} { .inner { padding: 64px 0; } .social { flex-direction: column; gap: 10px; align-items: start; } hr { margin-top: 0px; } .copyright { align-items: center; text-align: center; } .copyright-image-wrapper { justify-content: center; max-width: unset; } .otherSites { flex-direction: column; padding: 24px 0; .linkTitle { text-align: center; } .flags { flex-wrap: wrap; justify-content: center; } } .footer-menu-title { margin-bottom: 12px; } .footer-menu { display: grid; grid-template-columns: repeat(2, 1fr); > .footer-menu-column { padding: 24px 0; } > .footer-menu-column:first-child { grid-column-start: 1; grid-column-end: 3; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; > .footer-menu-link-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); } } } .otherSites { margin-bottom: 24px; } } ${m.M.mbUp} { .newsletter > p { max-width: 360px; } .hrMobile { display: none; } .copyright { gap: 24px; flex-direction: row-reverse; align-items: center; justify-content: space-between; } .otherSites { margin-bottom: 40px; } .columns { display: flex; flex-direction: row; width: 100%; gap: 16px; margin-bottom: 40px; > div:nth-child(1) { display: flex; flex-direction: column; flex: 1; } > div:nth-child(2) { display: flex; flex-direction: row; gap: 24px; } } } `,v=u.Z.img` width: 32px; height: 32px; ${m.M.mbDown} { width: 24px; height: 24px; } .country-flag { width: 100%; height: 100%; } `,Flag=({url:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:r})=>l.createElement(v,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":a,"data-content-label":r}),FooterMenuColumn=({title:e,items:t,locale:a,index:r})=>{let{isMobile:n}=(0,p.u)();return l.createElement("div",{className:"footer-menu-column"},e?l.createElement(d.T,{size:n?"s4":"s3",className:"footer-menu-title",weight:n?"regular":"semiBold",color:"neutral.6"},e):null,l.createElement("div",{className:"footer-menu-link-wrapper"},null==t?void 0:t.map((e,t)=>l.createElement(d.T,{size:n?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${h.v[a]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:n&&0===r?"semiBold":"regular"},e.title))))},DiscoverFooter=({className:e,footerInfo:t,locale:a})=>{var n,o,s,c,m,u,g,h,b,f,v;let{isMobile:E}=(0,p.u)(),w=null==t?void 0:t.menu,y=(null===(o=null===(n=null==t?void 0:t.general)||void 0===n?void 0:n.verified)||void 0===o?void 0:o.filter(Boolean))||[];return l.createElement(x,{className:e},l.createElement(r.C,null,l.createElement("div",{className:"inner"},l.createElement("a",{href:"/"},l.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(s=null==t?void 0:t.general)||void 0===s?void 0:s.logo,alt:"Logo","data-is-sehat":"id-ID"===a})),l.createElement("div",{className:"columns"},l.createElement("div",{className:"newsletter"},l.createElement(d.T,{size:E?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(c=null==t?void 0:t.general)||void 0===c?void 0:c.content),l.createElement("div",{className:"social"},l.createElement(d.T,{size:"p4",color:"neutral.6"},null===(m=null==t?void 0:t.social)||void 0===m?void 0:m.title),l.createElement("div",{className:"icons"},null===(g=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===g?void 0:g.map((e,t)=>l.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},l.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon",width:"24",height:"24"})))))),l.createElement("div",{className:"footer-menu"},w&&l.createElement(l.Fragment,null,null==w?void 0:w.map((e,t)=>l.createElement(FooterMenuColumn,{title:e.menu_title,items:e.items,locale:a,key:t,index:t}))))),l.createElement("div",{className:"otherSites"},l.createElement(d.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(h=null==t?void 0:t.branch)||void 0===h?void 0:h.title),l.createElement("div",{className:"flags"},null===(f=null===(b=null==t?void 0:t.branch)||void 0===b?void 0:b.branch)||void 0===f?void 0:f.map((e,t)=>l.createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},l.createElement(Flag,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url}))))),l.createElement("div",{className:"copyright"},l.createElement("div",{className:"copyright-image-wrapper"},y.length?y.map((e,t)=>l.createElement("a",{href:e.url,key:t,className:"copyright-image"},l.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))):null),l.createElement(d.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},l.createElement("div",{dangerouslySetInnerHTML:{__html:null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}}))))))},E=u.Z.footer` position: relative; overflow: hidden; .icons { margin-top: 12px; margin-bottom: 20px; > a:not(:last-child) { margin-right: 16px; } } a { text-decoration: none; } `,w=u.Z.div` position: relative; padding: 80px 0 40px; margin: auto 68px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid ${g.r.colors.neutral200}; ${m.M.tdDown} { margin: auto 16px; flex-wrap: wrap; row-gap: 32px; column-gap: 16px; } ${m.M.mbDown} { margin: auto 0; } `,y=u.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; ${m.M.mbDown} { flex: 1 1 160px; } .title { padding-bottom: 4px; } `,C=u.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; `,F=u.Z.div` background-color: #{map-get($mbColors, 'dark')}; padding: 16px 0; position: relative; img { width: 89px; height: 32px; } .content { display: flex; align-items: center; justify-content: space-between; gap: 174px; margin: auto 68px; ${m.M.tdDown} { margin: auto 16px; } ${m.M.mbDown} { flex-direction: column-reverse; gap: 16px; align-items: flex-start; margin: auto 0; } } .verify { display: flex; align-items: flex-start; gap: 8px; } `,k=u.Z.div` padding: 40px 0; ${m.M.mbUp} { margin: auto 68px; } `,N=u.Z.div` display: flex; gap: 16px; .social-logo { width: 28px; } `,MarryBabyFooter=({logoType:e="marryBaby",footerMenu:t,background:a})=>{var n;if(!t)return null;let{general:m,menu:p,socials:u}=t;return l.createElement(E,{style:{backgroundColor:a||"none"}},l.createElement(r.C,null,l.createElement(w,null,null==p?void 0:p.map(({menu_title:e,items:t},a)=>l.createElement(y,{key:`mbf${a}`},l.createElement(f.M,{className:"title",type:"subtitle-1",color:g.r.mbColors.pink},e),null==t?void 0:t.map(({title:e,url:t},a)=>l.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},l.createElement(C,{key:`mbitem${a}`},l.createElement(f.M,{type:"bodytext-2",color:g.r.mbColors.gray},e)))))))),l.createElement(r.C,null,l.createElement(k,null,l.createElement(o.k,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},l.createElement(s.K,{spacing:"24px",className:"info-item"},l.createElement(b.L,{className:"logo",type:e}),l.createElement(d.T,{size:"p4",as:"div"},l.createElement("div",{dangerouslySetInnerHTML:{__html:null==m?void 0:m.content}})),l.createElement(N,null,null==u?void 0:u.map(({icon:e,name:t,url:a},r)=>l.createElement("a",{key:`social${r}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},l.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t}))))),l.createElement(c.x,{className:"info-item",sx:{paddingTop:"7px"}},l.createElement(d.T,{size:"p4",as:"div"},l.createElement("div",{dangerouslySetInnerHTML:{__html:null==m?void 0:m.information}})))))),l.createElement(F,null,l.createElement(r.C,null,l.createElement("div",{className:"content"},l.createElement(d.T,{size:"p5",color:"#fff",as:"div"},l.createElement("div",{dangerouslySetInnerHTML:{__html:null==m?void 0:m.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}})),l.createElement("div",{className:"verify"},null===(n=null==m?void 0:m.verified)||void 0===n?void 0:n.map(({image:e,url:t},a)=>l.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))},Footer=({locale:e,footerInfo:t,siteType:a,background:r})=>"helloSites"===a?l.createElement(DiscoverFooter,{locale:e,footerInfo:t||{}}):l.createElement(MarryBabyFooter,{footerMenu:t,background:r})},uq6l:function(e,t,a){a.d(t,{i:function(){return isVideo}});let isVideo=e=>e.endsWith(".mp4")},"/Llt":function(e,t,a){a.d(t,{C:function(){return CardAuthor},P:function(){return PopupExpert},a:function(){return PopupDoctor},b:function(){return PopupHospital},c:function(){return ProfileDetailModal},d:function(){return CardAuthor$1}});var l=a("q1tI"),r=a("Frvz"),n=a("daqB"),i=a("/npG"),o=a("Eso5"),s=a("SPK5"),c=a("mAfZ"),d=a("mYVa"),m=a("Wgwc"),p=a.n(m),u=a("QgiU"),g=a.n(u),h=a("sFNn"),b=a("CL9C"),f=a("OESL"),x=a("oz0L"),v=a("vEfc"),E=a("KoWj"),w=a("RBzE"),y=a("Wbba"),C=a("d/ZZ"),F=a("tuDO"),k=a("uzh1"),N=a("iBNF"),D=a("rBCA"),P=a("IQVP"),A=a("EiMf"),z=a("U+Ez"),H=a("TWAq"),I=a("xrdX");let MainText=({children:e,className:t=""})=>l.createElement("div",{className:`tMiOKib ${t}`},e),SubText=({children:e,className:t=""})=>l.createElement("div",{className:`uDcqD-2 ${t}`},e);var B={container:"sTU4T4I",info:"tCql9Je",avatarWrapper:"_3j7uYhH",avatarIcon:"PHABgoT"};let CardAuthor$1=({avatarProps:e,title:t,subTitle:a,children:r,className:n="",style:i,onAvatarClick:o,avatarIcon:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>l.createElement("div",{className:`${B.container} ${n}`,style:i},l.createElement("div",{className:B.avatarWrapper,onClick:o,"data-event-category":c,"data-event-action":d,"data-event-label":m},l.createElement(E.U,Object.assign({},e)),s&&l.createElement("div",{className:B.avatarIcon},s)),l.createElement("div",{className:`${B.info} ${n}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},r||l.createElement(l.Fragment,null,t&&l.createElement(MainText,null,t),a&&l.createElement(SubText,null,a))));CardAuthor$1.MainText=MainText,CardAuthor$1.SubText=SubText,CardAuthor$1.SubDivider=({className:e=""})=>l.createElement("span",{className:`m-HVXw1 ${e}`}),CardAuthor$1.Row=({children:e,className:t=""})=>l.createElement("div",{className:`dZWeHns ${t} row`},e),CardAuthor$1.ColLeft=({children:e,className:t=""})=>l.createElement("div",{className:`${t} col-left`},e),CardAuthor$1.ColRight=({children:e,className:t=""})=>l.createElement("div",{className:`${t} col-right`},e),CardAuthor$1.SubTextRow=e=>{var{children:t,className:a=""}=e,r=(0,v.a)(e,["children","className"]);return l.createElement("div",Object.assign({className:`pDlsows ${a}`},r),t)};var M=(0,i.k)(()=>({root:{verticalAlign:"bottom"}}));let j=(0,l.createContext)({}),AuthorBadgeItem=({styles:e,className:t,classNames:a})=>{let{role:r,siteType:n,title:i}=(0,l.useContext)(j),{cx:o,classes:s}=M(void 0,{name:"AuthorBadgeItem",styles:e,classNames:a});return r?l.createElement(f.A,{className:o(s.root,t),siteType:n,role:r,title:i}):null};var S=(0,i.k)(()=>({root:{}}));let T=D.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${N.r.colors.white}; border-radius: ${N.r.borderRadius}; box-shadow: 0px 0px 4px ${N.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${b.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${b.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${N.r.colors.primary50}; border-radius: ${N.r.borderRadius}; .btn-booking { display: flex; margin: 12px auto; } .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,O=D.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,$=D.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,L=D.Z.div` position: relative; z-index: 9; .specialty { display: flex; flex-wrap: wrap; justify-content: center; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; } `,R=D.Z.ul` padding-left: 18px; li { list-style-type: disc; } `;var V="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' stroke='%23E4E8EC' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16'/%3e%3cpath fill='%23FF5331' d='M10.333 7.667V5H7.667v2.667H5v2.667h2.667V13h2.666v-2.666H13V7.667z'/%3e%3c/svg%3e";let PopupDoctor=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:r,locale:n,isMobile:i,overwriteProfileProps:o,avatarFallback:s=y.C.getAssetPath("avatar.jpg"),trackingCategory:c="Together"})=>{var d,m,p;let{t:u}=(0,h.u)(),[g,b]=(0,l.useState)(null),[f,x]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(e&&r&&String(null==g?void 0:g.id)!==String(r)){x(!0);try{b(null),(0,C.c)((0,C.b)(P.tC.GET_DOCTOR_INFO,{doctorId:r,website_url:C.m[n]}),"get").then(e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),o))})}catch(e){console.error(e)}x(!1)}},[e,r,null==g?void 0:g.id]);let v=(null==g?void 0:g.experiences)||[],E=(null==g?void 0:g.specialties)||[],D=E.map(e=>(null==e?void 0:e.name)||e).join(" • "),z=v.map(e=>{try{return JSON.parse(e.description)}catch(t){return e.description}}).filter(e=>e.content),renderExperienceText=e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"";return l.createElement(l.Fragment,null,l.createElement(T,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!g?l.createElement(A.L,null):l.createElement("div",{className:"popup-content"},l.createElement("div",{className:"close-button",onClick:t},l.createElement("img",{src:V,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),l.createElement("div",{className:"main-info"},l.createElement("div",{className:"border-banner"}),l.createElement("div",{className:"avatar-title"},l.createElement($,null,l.createElement("div",{className:"image-container"},l.createElement("div",{style:{position:"relative"}},l.createElement(w.I,{src:null==g?void 0:g.avatar,backupSrc:s,className:"profile-image",alt:"avatar"}),l.createElement("img",{className:"badge-avatar",src:G,alt:"badge",loading:"lazy"})))),l.createElement(L,null,l.createElement(k.T,{size:"s3",weight:"semiBold",className:"full-name"},null==g?void 0:g.name),l.createElement("div",{className:"specialty"},D&&l.createElement(l.Fragment,null,l.createElement(k.T,{size:"p4",color:N.r.colors.gray800},D," • ")),l.createElement("a",{href:(0,C.n)({id:null===(d=null==g?void 0:g.organization)||void 0===d?void 0:d.id,name:null===(m=null==g?void 0:g.organization)||void 0===m?void 0:m.name,slug:null===(p=null==g?void 0:g.organization)||void 0===p?void 0:p.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},l.createElement(k.T,{size:"p4",className:"organisation",color:N.r.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.organization.name))))),!i&&l.createElement("div",{className:"btn-wrapper"},l.createElement("a",{href:(0,C.o)({name:g.name,id:g.id,locale:n})},l.createElement(F.B,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),z&&l.createElement(L,null,l.createElement("div",{className:"experience"},l.createElement(k.T,{weight:"bold",size:"s3",color:N.r.colors.gray800,style:{paddingBottom:16}},u("expert.content.description").toUpperCase()),l.createElement(R,null,z.map((e,t)=>l.createElement("li",{key:t},l.createElement(k.T,{size:"p2"},renderExperienceText(e))))),i?l.createElement("div",{className:"btn-wrapper"},l.createElement("a",{href:(0,C.o)({name:g.name,id:g.id,locale:n})},l.createElement(F.B,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):l.createElement("a",{href:(0,C.o)({name:g.name,id:g.id,locale:n})},l.createElement(k.T,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":c,"data-event-action":"See Full Doctor Profile","data-event-label":(0,C.l)(n)+(0,C.o)({name:g.name,id:g.id,locale:n})},u("home.seeExpert"))))))),l.createElement(O,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Z=D.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${N.r.colors.white}; border-radius: ${N.r.borderRadius}; box-shadow: 0px 0px 4px ${N.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${b.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${b.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${N.r.colors.primary50}; border-radius: ${N.r.borderRadius}; .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,_=D.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,W=D.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,U=D.Z.div` position: relative; z-index: 9; .specialty { display: flex; flex-wrap: wrap; justify-content: center; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; } `,Y=D.Z.div` display: flex; margin-top: 8px; .bullet-point { width: 24px; height: 24px; } `;var q="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12'/%3e%3cpath fill='%232D87F3' d='M24 12a12 12 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533l-.41 1.427 1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";let K={author:q,edtior:q,expert:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath fill='white' d='M11.443 5.137a.6.6 0 0 1 1.114 0l1.436 3.577a.6.6 0 0 0 .516.375l3.846.26a.6.6 0 0 1 .344 1.06l-2.958 2.471a.6.6 0 0 0-.197.607l.94 3.738a.6.6 0 0 1-.9.655l-3.265-2.05a.6.6 0 0 0-.638 0l-3.265 2.05a.6.6 0 0 1-.9-.655l.94-3.738a.6.6 0 0 0-.198-.607L5.3 10.41a.6.6 0 0 1 .344-1.06l3.846-.26a.6.6 0 0 0 .517-.375z'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%2300C076' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m11.946 5.466-5.28 4.8-2.4-2.182'/%3e%3c/svg%3e",medical:G},PopupExpert=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:r,enableAnimation:n=!0,expertId:i,overwriteProfileProps:o,avatarFallback:s=y.C.getAssetPath("avatar.jpg")})=>{let{t:c}=(0,h.u)(),[d,m]=(0,l.useState)(null),[p,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(a&&i&&String(null==d?void 0:d.user_id)!==String(i)){u(!0);try{m(null),(0,C.c)((0,C.g)(P.D9.GET_EXPERT_BY_ID,{id:i}),"get").then(e=>{m(Object.assign(Object.assign({},null==e?void 0:e.data),o))})}catch(e){console.error(e)}u(!1)}},[a,i,null==d?void 0:d.user_id]),l.createElement(l.Fragment,null,l.createElement(Z,{"data-open":a,"data-animation":n,onClick:e=>e.stopPropagation()},p||!d?l.createElement(A.L,null):l.createElement("div",{className:"popup-content"},l.createElement("div",{className:"close-button",onClick:r},l.createElement("img",{src:V,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),l.createElement("div",{className:"main-info"},l.createElement("div",{className:"border-banner"}),l.createElement("div",{className:"avatar-title"},l.createElement(W,null,l.createElement("div",{className:"image-container"},l.createElement("div",{style:{position:"relative"}},l.createElement(w.I,{src:null==d?void 0:d.avatar,className:"profile-image",alt:"avatar",backupSrc:s}),l.createElement("img",{className:"badge-avatar",src:K[null==d?void 0:d.role],alt:"badge",loading:"lazy"})))),l.createElement(U,null,l.createElement(k.T,{size:"s3",className:"full-name",weight:"semiBold"},null==d?void 0:d.display_name),l.createElement("div",null,l.createElement(k.T,{size:"p4",color:N.r.colors.gray800},null==d?void 0:d.specialty," • "),l.createElement("a",{href:null==d?void 0:d.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},l.createElement(k.T,{size:"p4",className:"organisation",color:N.r.colors.gray800,style:{textDecoration:"underline"}},null==d?void 0:d.organisation)))))),l.createElement(U,null,l.createElement("div",{className:"experience"},l.createElement(k.T,{weight:"bold",size:"p4",color:N.r.colors.gray800,style:{paddingBottom:16}},c("expert.content.description").toUpperCase()),l.createElement("div",{className:"list-items"},null!=d&&!!d.experiences&&d.experiences.filter(e=>!!(e&&(e.title||e.organization))).slice(0,3).map((e,t)=>l.createElement(Y,{key:t},l.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),l.createElement("div",{className:"text-contain"},l.createElement(z.H,{tag:"h6",color:N.r.colors.gray800},null==e?void 0:e.title),l.createElement(k.T,{size:"p2",color:N.r.colors.gray500},null==e?void 0:e.organization))))),l.createElement("a",{href:null==d?void 0:d.profile_url,style:{display:"inline-block",paddingTop:24}},l.createElement(k.T,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":(0,C.l)(t)+(null==d?void 0:d.profile_url)},c("home.seeExpert"))))))),l.createElement(_,{"data-open":a,onClick:e=>{e.stopPropagation(),r()}}))},X=D.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${N.r.colors.white}; border-radius: ${N.r.borderRadius}; box-shadow: 0px 0px 4px ${N.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${b.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${b.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${N.r.colors.primary50}; border-radius: ${N.r.borderRadius}; .btn-booking { display: flex; margin: 12px auto; } .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,J=D.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,Q=D.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,ee=D.Z.div` position: relative; z-index: 9; .specialty { display: block; min-width: 240px; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; } `,PopupHospital=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:r,locale:n,isMobile:i,overwriteProfileProps:o,avatarFallback:s=y.C.getAssetPath("avatar.jpg"),trackingCategory:c="Together"})=>{let{t:d}=(0,h.u)(),[m,p]=(0,l.useState)(null),[u,g]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(e&&r&&String(null==m?void 0:m.id)!==String(r)){g(!0);try{p(null),(0,C.c)((0,C.b)(P.tC.GET_HOSPITAL_INFO,{hospital_branch_id:r,website_url:C.m[n]}),"get").then(e=>{p(Object.assign(Object.assign({},null==e?void 0:e._data.branch),o))})}catch(e){console.error(e)}g(!1)}},[e,r,null==m?void 0:m.id]);let b=(null==m?void 0:m.specialties)||[],f=(0,l.useMemo)(()=>b.map(e=>e.name),[b]);return l.createElement(l.Fragment,null,l.createElement(X,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},u||!m?l.createElement(A.L,null):l.createElement("div",{className:"popup-content"},l.createElement("div",{className:"close-button",onClick:t},l.createElement("img",{src:V,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),l.createElement("div",{className:"main-info"},l.createElement("div",{className:"border-banner"}),l.createElement("div",{className:"avatar-title"},l.createElement(Q,null,l.createElement("div",{className:"image-container"},l.createElement("div",{style:{position:"relative"}},l.createElement(w.I,{src:null==m?void 0:m.logo,className:"profile-image",alt:"avatar",backupSrc:s}),l.createElement("img",{className:"badge-avatar",src:G,alt:"badge",loading:"lazy"})))),l.createElement(ee,null,l.createElement(k.T,{size:"s3",weight:"semiBold",className:"full-name"},null==m?void 0:m.name),l.createElement("div",{className:"specialty"},b&&l.createElement(k.T,{size:"p4",color:N.r.colors.gray800},f.join(" • "),"•"),l.createElement("a",{href:(0,C.n)({id:m.id,name:m.name,slug:m.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},l.createElement(k.T,{size:"p4",className:"organisation",color:N.r.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.name))))),!i&&l.createElement("a",{href:(0,C.n)({id:m.id,name:m.name,slug:m.slug,locale:n})},l.createElement("div",{className:"btn-wrapper"},l.createElement(F.B,{color:"primary",size:"md",className:"btn-booking"},d("careBooking.bookAnAppointment"))))),l.createElement(ee,null,l.createElement("div",{className:"experience"},l.createElement(k.T,{weight:"bold",size:"s3",color:N.r.colors.gray800,style:{paddingBottom:16}},d("hospital.content.description").toUpperCase()),l.createElement(k.T,{size:"p2",color:N.r.colors.gray500},m.about),i?l.createElement("a",{href:(0,C.n)({id:m.id,name:m.name,slug:m.slug,locale:n})},l.createElement("div",{className:"btn-wrapper"},l.createElement(F.B,{color:"primary",size:"md",className:"btn-booking"},d("careBooking.bookAnAppointment")))):l.createElement("a",{href:(0,C.n)({id:m.id,name:m.name,slug:m.slug,locale:n})},l.createElement(k.T,{size:"s4",color:"#2D87F3",as:"span","data-event-category":c,"data-event-action":"See Full Hospital Profile","data-event-label":(0,C.l)(n)+(0,C.n)({id:m.id,name:m.name,slug:m.slug,locale:n})},d("home.seeHospital"))))))),l.createElement(J,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},ProfileDetailModal=({open:e,onClose:t,children:a,profileModalProps:r})=>{let{t:n}=(0,h.u)();return l.createElement(H.M,Object.assign({title:n("profilePanel.modal.heading"),titleProps:!0,className:"_2UKyiK1",opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",transitionProps:{transition:"slide-left"},styles:{header:{borderBottom:0},inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}}},r),a)};p().extend(g());let CardAuthor=e=>{let{className:t="",community:i,name:m,username:p,url:u,avatar:g,role:v,title:E,userType:F="user",expertId:k,specialty:D,organisation:P,isMarryBaby:A,doctorId:z,hospitalId:H,hasQuickBooking:B,handleMakeAppointment:M,communityTrackingAttr:T,isAnonymous:O,showDetailPopup:$,showChatbotButton:L=!1,subLine:R,authActionWrapper:V,profileProps:G,profileModalProps:Z,extendEle:_,avatarProps:W,hideInfo:U,timeText:Y,onCloseFromPost:q,onChatWithBot:K,avatarIcon:X,badgeIconSize:J,hideBackground:Q,children:ee,styles:et,dataEventCategory:ea,dataEventAction:el,dataEventLabel:er}=e,{data:{locale:en,router:ei,env:{isMarryBaby:eo,togetherBasePath:es}}}=(0,l.useContext)(C.T),{isMobile:ec}=(0,w.u)(),{t:ed}=(0,h.u)(),{classes:em}=S(void 0,{name:"CardAuthor",styles:et}),ep="boolean"==typeof A?A:eo,eu=ep?"marryBaby":"helloSites",eg=O?ed("cardPost.anonymous"):m||p||"",eh=O?y.C.getAssetPath("avatar.jpg"):g,eb=O?void 0:v,[ef,ex]=(0,l.useState)(!1),{asPath:ev}=ei||{},eE=`https://${I.v[en]}${ev}`,onAuthorClick=()=>{if(O)return!1;$?ey(!0):u&&(window.location.href=u)};(0,l.useEffect)(()=>{(0,b.t)(ef)},[ef]);let[ew,ey]=(0,l.useState)(!1),eC=(null==e?void 0:e.role)==="expert",eF=!!(z||H),ek=["expert"===eb&&P&&l.createElement("span",null,P),"expert"===eb&&D&&l.createElement("span",null,D),!("expert"===eb&&D&&P)&&(null==i?void 0:i.name)&&l.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${es}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},T),`${null==i?void 0:i.name}`),Y&&l.createElement("span",null,Y)].filter(Boolean),[eN,eD]=(0,l.useState)(null);return(0,l.useEffect)(()=>{ew&&!eN&&("chatbot"===F?Promise.all([a.e(5231),a.e(1500),a.e(9226),a.e(5454),a.e(5481),a.e(2354),a.e(3684),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4447),a.e(2582),a.e(9412),a.e(8261),a.e(9301),a.e(9353),a.e(7730),a.e(7884),a.e(891),a.e(4072),a.e(4414),a.e(7613),a.e(8098),a.e(3416),a.e(3012),a.e(1570),a.e(6192),a.e(6918),a.e(5965),a.e(3301),a.e(1413)]).then(a.bind(a,"o8a9")).then(e=>{eD(()=>e.ProfileChatbot)}):Promise.all([a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(1500),a.e(9226),a.e(5454),a.e(5481),a.e(2354),a.e(3684),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4447),a.e(2582),a.e(9412),a.e(8261),a.e(9301),a.e(9353),a.e(7730),a.e(7884),a.e(891),a.e(4072),a.e(4414),a.e(7613),a.e(8098),a.e(3416),a.e(3012),a.e(1570),a.e(6192),a.e(6918),a.e(5965),a.e(3301),a.e(1413)]).then(a.bind(a,"aUqw")).then(e=>{eD(()=>e.ProfileDetail)}))},[ew,F]),l.createElement(j.Provider,{value:{displayName:eg,title:E,role:eb,siteType:eu,handleMakeAppointment:M,doctorId:z,hospitalId:H,currentUrl:eE}},l.createElement(ProfileDetailModal,{open:ew,onClose:()=>ey(!1),profileModalProps:Z},eN&&l.createElement(eN,Object.assign({currentPageUrl:er,authActionWrapper:V,onCloseFromPost:()=>{ey(!1),null==q||q()},onChatWithBot:K},G,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:eh,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:z,hospitalId:H,hasQuickBooking:B,userType:F},null==G?void 0:G.authorProps)}))),"expert"===eb&&k?l.createElement(PopupExpert,{isOpen:ef,onClose:()=>ex(!1),expertId:k}):null,"expert"===eb&&z?l.createElement(PopupDoctor,{isOpen:ef,onClose:()=>ex(!1),doctorId:z,locale:en}):null,"expert"===eb&&H?l.createElement(PopupHospital,{isOpen:ef,onClose:()=>ex(!1),hospitalId:H,locale:en}):null,l.createElement("div",{className:`hhg-card-author ${em.root} ${t} ${eC?"expert-author":""}`,"data-background":!Q&&eC,"data-is-marrybaby":ep},l.createElement(CardAuthor$1,{dataEventCategory:ea,dataEventAction:el,dataEventLabel:er,onAvatarClick:onAuthorClick,avatarProps:Object.assign(Object.assign({avatar:O?y.C.getAssetPath(ep?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):eh,username:eg},W),{style:{cursor:!O&&(u||$)?"pointer":"default"}}),avatarIcon:X||eC&&l.createElement(r.Z,{size:J||15})},ee?l.createElement("div",{onClick:onAuthorClick},ee):!U&&l.createElement(CardAuthor$1.Row,null,l.createElement(CardAuthor$1.ColLeft,null,l.createElement(s.k,{align:"center",onClick:onAuthorClick},l.createElement(CardAuthor$1.MainText,{onClick:onAuthorClick},eg,"chatbot"===F?l.createElement(l.Fragment,null," ",l.createElement(n.Z,{color:N.r.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}}),L&&l.createElement("div",{style:{marginTop:"8px"}},l.createElement(c.z,{color:"primary",size:"xs",variant:"filled",type:"button",leftIcon:l.createElement(x.I.App,{size:16}),onClick:()=>{null==K||K()}},ed("chatbot.with.me")))):l.createElement(AuthorBadgeItem,null))),R||l.createElement(CardAuthor$1.SubTextRow,{style:B?{position:"relative"}:{}},ek.map((e,t)=>l.createElement(l.Fragment,null,0!==t&&l.createElement(CardAuthor$1.SubDivider,null),l.createElement(CardAuthor$1.SubText,null,e))),B&&eF&&l.createElement(o.x,{sx:{marginTop:(0,d.h)(5)}},l.createElement(f.B,{bookingId:z||H,bookingType:z?"doctor":H?"hospital":void 0,size:ec?"xs":"sm"})))))),_&&_))};CardAuthor.MainText=CardAuthor$1.MainText,CardAuthor.SubText=CardAuthor$1.SubText,CardAuthor.SubTextRow=CardAuthor$1.SubTextRow,CardAuthor.SubDivider=CardAuthor$1.SubDivider,CardAuthor.AuthorBadge=AuthorBadgeItem,CardAuthor.DisplayName=()=>{let{displayName:e}=(0,l.useContext)(j);return l.createElement(o.x,null,e)}},O6Wk:function(e,t,a){a.d(t,{C:function(){return g},I:function(){return ImagePreviewPopup},P:function(){return PostSingleImageViewPopup},a:function(){return PostImagePreview},b:function(){return h}});var l=a("q1tI"),r=a("U+Ez"),n=a("CL9C"),i=a("sFNn"),o=a("d/ZZ"),s=a("t/pd"),c=a("uzh1"),d=a("rBCA"),m=a("vEfc"),p=a("iBNF"),u=a("gEnE"),g="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.05 18.06 4 12.038l6.05-6.025M4.002 12.035h15'/%3e%3c/svg%3e";let b=d.Z.div` padding: 14px 16px 14px 17px; background: ${e=>e.bgColor}; border-left: 3px solid ${e=>e.highlight}; ${n.M.mbUp} { padding: 12px 12px 12px 17px; } `,f=d.Z.div` display: flex; `,x=d.Z.div` font-size: 12px; line-height: 18px; &[data-has-icon='true'] { margin-left: 10px; } `,v=d.Z.div` flex-shrink: 0; `,E=d.Z.div` display: grid; grid-gap: 3px; grid-template-columns: 1fr 1fr; grid-template-rows: auto; .img-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; grid-column: auto; & > img { cursor: zoom-in; } .img-preview-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .img-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } .img-more-overlay { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); z-index: 4; } } &[data-image-count='1'] { .img-wrapper { /* padding-top: 100%; */ grid-column: 1/3; } } &[data-image-count='2'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='3'] { .img-wrapper { &:first-child { grid-column: 1/3; } } } &[data-image-count='4'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='5'] { grid-template-columns: repeat(6, 1fr); .img-wrapper { /* padding-top: 100%; */ grid-column: auto/ span 2; &:first-child { padding-top: 56.25%; grid-column: 1/4; } &:nth-child(2) { padding-top: 56.25%; grid-column: 4/7; } } } &[data-is-marrybaby='true'] { grid-gap: 8px; .img-wrapper { padding-top: 66.66%; border-radius: 1rem; .img-preview { object-fit: cover; } } &[data-image-count='3'] { grid-template-columns: 1fr 1fr 1fr; .img-wrapper { &:first-child { padding-top: 100%; grid-column: 1/3; grid-row: 1/3; } } } } `,w=d.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; overflow: hidden; width: 100vw; height: 100vh; flex-direction: column; background: white; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } .top-bar { position: relative; padding: 20px 40px; .icon-arrow-left { position: absolute; top: 50%; left: 20px; height: 24px; width: 24px; cursor: pointer; transform: translateY(-50%); } } .container { flex: 1; overflow-y: auto; .img-preview { width: 100%; min-width: 100%; margin-bottom: 0.5rem; cursor: pointer; max-height: 100%; object-fit: cover; } } `,y=(0,d.Z)(e=>{var{icon:t,bgColor:a=p.r.colors.yellow50,highlightColor:r=p.r.colors.yellow800,message:n}=e,i=(0,m.a)(e,["icon","bgColor","highlightColor","message"]);return l.createElement(b,Object.assign({bgColor:a,highlight:r},i),l.createElement(f,null,t&&l.createElement(v,null,t),l.createElement(x,{"data-has-icon":!!t},n)))})` margin-bottom: 16px; &.noti-bottom { border-left: none; margin-top: 4px; padding: 4px 8px; margin-left: 16px; margin-right: 16px; border-radius: 4px; } `,ImagePreviewPopup=({className:e,style:t,authorName:a,images:r,onClose:n,onOpenSingleView:o,alt:d})=>{let{t:m}=(0,i.u)(),[p,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{setTimeout(()=>{u(!0)},0)},[]),l.createElement(s.h,null,l.createElement(w,{className:e,style:t,"data-open":p},l.createElement("div",{className:"top-bar"},l.createElement("img",{className:"icon-arrow-left",src:h,onClick:n,alt:"go back",loading:"lazy"}),l.createElement(c.T,{size:"p2",weight:"bold",style:{textAlign:"center"}},m("previewPhotos.title",{name:a}))),l.createElement("div",{className:"container"},r.map((e,t)=>l.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==o?void 0:o(t),alt:d,loading:"lazy"})))),",")},C=d.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; width: 100%; height: 100%; flex-direction: column; background: black; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } `,F=d.Z.div` padding: 1rem; background: white; .icon-close { width: 26px; height: 26px; cursor: pointer; } `,k=d.Z.div` position: relative; flex: 1; overflow: hidden; > img { height: 100%; width: 100%; object-fit: contain; object-position: center; } `,N=d.Z.div` --inner-padding: max(16px, 20%); height: 100%; position: absolute; left: 0; padding: 8px; padding-right: var(--inner-padding); display: flex; align-items: center; top: 0; cursor: pointer; &[data-right] { padding-right: 8px; padding-left: var(--inner-padding); left: unset; right: 0; } &[data-disabled='true'] { cursor: not-allowed; } `,D=d.Z.div` border-radius: 50%; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; padding: 4px; > img { width: 16px; height: 16px; &[data-disabled='true'] { opacity: 0.5; } } ${n.M.tdUp} { padding: 8px; > img { width: 30px; height: 30px; } } `;var P="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 12.813 4-4-4-4'/%3e%3c/svg%3e";let PostSingleImageViewPopup=({initialViewIndex:e,images:t,onClose:a,alt:r})=>{let[n,i]=(0,l.useState)(e),[o,c]=(0,l.useState)(!1);(0,l.useEffect)(()=>{setTimeout(()=>{c(!0)},0)},[]);let d=null==t?void 0:t[n],m=0===n,p=!(null==t?void 0:t.length)||n===(null==t?void 0:t.length)-1;return l.createElement(s.h,null,l.createElement(C,{"data-open":o&&!!d},l.createElement(F,null,l.createElement("img",{src:g,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),d&&n>=0&&l.createElement(l.Fragment,null,l.createElement(k,null,l.createElement("img",{className:"img-preview",src:d,alt:r,loading:"lazy"}),l.createElement(N,{"data-disabled":m,onClick:()=>!m&&i(n-1)},l.createElement(D,null,l.createElement("img",{src:P,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":m,loading:"lazy"}))),l.createElement(N,{"data-right":!0,"data-disabled":p,onClick:()=>!p&&i(n+1)},l.createElement(D,null,l.createElement("img",{src:P,alt:"right arrow","data-disabled":p,loading:"lazy"})))))))},A=(0,u.Z)(d.Z.div` position: absolute; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; `,"hhgcomp-sensitivemask-inner"),z=d.Z.div``,H=d.Z.div` position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 3; background: white; cursor: pointer; &, * { // transition: all 300ms; transform-origin: bottom left; } img { transition: none; } .img-preview { width: 100%; } &[data-is-blurred='true'] { .img-preview { /* Add the blur effect */ -webkit-filter: blur(24px); filter: blur(24px); } } &[data-is-blurred='false'] { background: transparent; cursor: zoom-in; ${A.classSelector} { top: auto; right: auto; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0); align-items: flex-end; justify-content: flex-start; } } `,SensitiveMask=({image:e,showIcon:t=!0})=>{let[a,r]=(0,l.useState)(!0);return l.createElement(H,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},l.createElement("img",{loading:"lazy",className:"img-preview",src:e}),l.createElement(A,{onClick:e=>{e.stopPropagation(),r(!a)}},t&&l.createElement(z,null,a?l.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},l.createElement("path",{d:"M1.71 2.54a.996.996 0 0 1 0-1.41c.39-.39 1.03-.39 1.42 0l16.31 16.33a.996.996 0 1 1-1.41 1.41l-2.72-2.72c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5C.77 7.5 2.06 5.8 3.68 4.51zM16 9.47c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L7.36 2.54c1.15-.37 2.37-.57 3.64-.57 5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46m-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14L8.06 8.9c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07l1.57 1.57c-.65.32-1.37.5-2.14.5m2.97-5.33a2.97 2.97 0 0 0-2.64-2.64z",fill:"#fff"})):l.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},l.createElement("path",{d:"M12 0C5.142 0 1.886 5.879 1.096 7.557c-.132.28-.132.604 0 .884C1.886 10.121 5.142 16 12 16c6.834 0 10.092-5.837 10.896-7.54a1.08 1.08 0 0 0 0-.92C22.092 5.836 18.834 0 12 0m0 3a5 5 0 1 1-.001 10.001 5 5 0 0 1 0-10.001m0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6",fill:"#2D87F3"})))))},PostImagePreview=({className:e,images:t=[],style:a,authorName:s,isSensitive:c=!1,alt:d,positionAlert:m="top"})=>{let{data:{env:{isMarryBaby:p}}}=(0,l.useContext)(o.T),{t:u}=(0,i.u)(),g=`+ ${(t.length||0)-4}`,[h,b]=(0,l.useState)(!1),[f,x]=(0,l.useState)(-1),v=t.length>5,w=(0,l.useRef)(!1);return(0,l.useEffect)(()=>()=>{w.current&&(0,n.t)(!1)},[]),(0,l.useEffect)(()=>{h||f>=0?((0,n.t)(!0),w.current=!0):((0,n.t)(!1),w.current=!1)},[h,f]),l.createElement(l.Fragment,null,c&&"top"===m&&l.createElement(y,{message:u("sensitiveMask.contentWarningDescription"),icon:l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},l.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}),l.createElement(E,{className:e,style:a,"data-image-count":v?5:t.length||0,"data-is-marrybaby":p,"data-cursor-pointer":!c},null==t?void 0:t.slice(0,5).map((e,t)=>{let a=4===t&&v;return l.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&v?b(!0):x(t)}},c&&l.createElement(SensitiveMask,{image:e,showIcon:!a}),!p&&l.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:d}),l.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:d}),a&&l.createElement("div",{className:"img-more-overlay"},l.createElement(r.H,{tag:"h1",as:"h2",color:"white"},g)))})),h&&l.createElement(ImagePreviewPopup,{authorName:s||"",images:t,onClose:()=>b(!1),onOpenSingleView:x,alt:d}),f>=0&&l.createElement(PostSingleImageViewPopup,{images:t,initialViewIndex:f,onClose:()=>x(-1),alt:d}),c&&"bottom"===m&&l.createElement(y,{message:u("sensitiveMask.contentWarningDescription.community"),className:"noti-bottom",icon:l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},l.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}))}},yXuZ:function(e,t,a){a.d(t,{O:function(){return OvulationForm}});var l,r,n=a("vEfc"),i=a("q1tI"),o=a("/npG"),s=a("mYVa"),c=a("iuhU"),d=a("8vDj"),m=a("cChf"),p=a("ZFu2"),u=a("IlJR"),g=a("aHnw"),h=a("KaGd"),b=a("uzh1"),f=a("sFNn"),x=a("NEg/"),v=a("eM6a"),E=a("fkrl");let AvoidPregnancy=e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,n.a)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return t?i.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("path",{d:"M16.5 27.133c1.298 0 2.596-.149 3.868-.447a9.15 9.15 0 0 0 6.818-6.818 16.94 16.94 0 0 0 0-7.736 9.15 9.15 0 0 0-6.818-6.818 16.94 16.94 0 0 0-7.736 0 9.15 9.15 0 0 0-6.818 6.818A17 17 0 0 0 5.367 16a.867.867 0 0 1-1.734 0c0-1.43.165-2.862.494-4.264a10.88 10.88 0 0 1 8.109-8.11 18.7 18.7 0 0 1 8.528 0 10.88 10.88 0 0 1 8.11 8.11 18.7 18.7 0 0 1 0 8.528 10.88 10.88 0 0 1-8.11 8.11 18.7 18.7 0 0 1-4.264.493.867.867 0 0 1 0-1.734",fill:"#3E3F58"}),i.createElement("path",{d:"M12.5 16a4 4 0 1 1 8 0 4 4 0 0 1-8 0",fill:"#fff"}),i.createElement("path",{d:"M11.633 16a4.867 4.867 0 1 1 9.734 0 4.867 4.867 0 0 1-9.734 0m4.867-3.133a3.133 3.133 0 1 0 0 6.266 3.133 3.133 0 0 0 0-6.266m-4 9.8a2.667 2.667 0 1 1-5.333 0 2.667 2.667 0 0 1 5.333 0",fill:"#3E3F58"}),i.createElement("path",{d:"M10.305 22.195c.26.26.26.683 0 .943l-1.91 1.91c-.36.36-.562.847-.562 1.355a3.25 3.25 0 0 1-1.796 2.907l-1.239.62a.667.667 0 1 1-.596-1.193l1.238-.62a1.92 1.92 0 0 0 1.06-1.714c0-.862.342-1.688.952-2.298l1.91-1.91c.26-.26.682-.26.943 0",fill:"#3E3F58"}),i.createElement("path",{d:"M3.874 4.788a1 1 0 0 1 1.414-1.414l23.099 23.098a1 1 0 1 1-1.415 1.415z",fill:"#E85388"})):i.createElement("svg",Object.assign({viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{clipPath:"url(#clip0_1530_7251)"},i.createElement("path",{d:"M8.983 10.87a.23.23 0 0 1 .049-.16c.08-.114.156-.229.207-.36.1-.166.168-.348.233-.528.246-.668.397-1.36.508-2.062.036-.235.076-.471.09-.71.065-.511.101-1.024.095-1.541.004-.015.011-.03.011-.044a13 13 0 0 0-.089-1.62c-.023-.196-.093-.335-.298-.406-.293-.1-.48-.316-.568-.615a2.7 2.7 0 0 0-.217-.566c-.123-.222-.29-.391-.54-.47-.057-.018-.088-.016-.106.052q-.045.165-.073.336c-.005.044 0 .058.048.058q.122.005.244.017c.127.009.21.09.202.196-.011.111-.108.179-.239.166-.065-.007-.133-.009-.198-.016-.058-.008-.077.016-.067.072q.027.165.052.332c.006.043.031.053.07.053.078 0 .147-.03.218-.057.104-.042.2-.004.242.093.04.09.004.187-.093.235-.13.063-.27.113-.411.085a.23.23 0 0 0-.235.077c-.04-.084-.106-.146-.167-.211-.46-.475-.55-1.194-.235-1.82.18-.359.45-.627.828-.776A.4.4 0 0 0 8.69.595c.33-.317.734-.477 1.172-.55.641-.11 1.25-.024 1.819.3.41.233.728.566.942.983.131.253.188.535.246.814.16.762.233 1.538.293 2.313q.108 1.411.213 2.826c.055.712.13 1.422.24 2.128.066.428.175.846.26 1.27.097.479.039.941-.24 1.358a1.2 1.2 0 0 1-.517.428c-.163.05-.327.105-.491.155-.178.052-.302-.059-.268-.239a4.6 4.6 0 0 0 .077-.72 13.6 13.6 0 0 0-.133-2.225c-.03-.196-.055-.395-.087-.591-.07-.43-.151-.857-.257-1.28l-.015-.07a16 16 0 0 0-.282-1.03c-.012-.039-.025-.079-.076-.075-.038.003-.053.034-.058.07l-.146 1.105c-.05.219-.094.437-.158.652a5.5 5.5 0 0 1-.806 1.654l-.091.113c-.308.382-.654.719-1.094.95-.122.06-.177.048-.252-.063",fill:"#1B3250"}),i.createElement("path",{d:"M12.304 9.435c.1.737.154 1.477.133 2.224a4.6 4.6 0 0 1-.077.72c-.034.182.09.293.268.239q.246-.075.491-.155c.053.226.126.448.17.675q.09.452.129.912c.025.302.043.603.032.905q-.015.483-.065.964a14 14 0 0 1-.299 1.707c-.02.086-.045.17-.065.255-.02.09-.068.12-.16.12L8.789 18H7.781c-.111 0-.117-.011-.13-.124a3 3 0 0 0-.361-1.121c-.132-.235-.297-.448-.415-.692a3.14 3.14 0 0 1-.324-1.521c.233.07.418.001.571-.184q.236-.281.477-.559c.07-.08.136-.164.244-.193.315-.087.631-.166.94-.262.665-.207 1.324-.43 1.917-.804.251-.159.475-.344.595-.63.237-.564.415-1.147.592-1.733.085-.28.184-.55.417-.742",fill:"#2D87F3"}),i.createElement("path",{d:"M12.304 9.435c-.233.194-.33.462-.413.74-.177.585-.355 1.169-.592 1.733-.12.286-.344.471-.595.63-.593.375-1.254.597-1.916.804-.312.097-.628.177-.941.262-.11.031-.177.113-.244.193q-.24.277-.477.559c-.153.184-.34.253-.571.184a.87.87 0 0 1-.44-.54.64.64 0 0 1 .045-.503 1 1 0 0 0 .094-.31.47.47 0 0 1 .392-.405c.132-.03.269-.039.404-.053a.4.4 0 0 0 .114-.024c.115-.009.21-.069.31-.12.322-.167.646-.328.966-.497q.586-.308 1.192-.571a.78.78 0 0 0 .473-.524q.09-.305.177-.608c.047-.171.113-.337.14-.514a5.5 5.5 0 0 0 .806-1.654c.064-.215.108-.433.159-.652a.63.63 0 0 1 .342-.054c.08.013.156.036.237.054.105.423.187.85.256 1.28q.039.292.082.59m-4.19-5.947a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.071.027-.14.056-.218.056-.039 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.198.017.131.013.228-.053.239-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.046 0-.053-.014-.047-.058.016-.115.043-.224.072-.337.017-.067.05-.069.106-.05.25.078.417.247.54.469.1.178.16.371.217.566.087.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.272-.016-.525.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.309-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.013-.319.06-.07.126-.134.186-.202",fill:"#FCCAAF"}),i.createElement("path",{d:"M10.069 7.052c-.013.239-.053.473-.09.71-.11.7-.261 1.394-.507 2.062-.066.18-.135.362-.233.528a.46.46 0 0 0-.235-.4c-.328-.21-.544-.508-.599-.898a.86.86 0 0 1 .242-.742c.237-.244.504-.459.761-.683.188-.162.37-.327.555-.493.033-.031.064-.064.106-.084m.349 2.818c-.025.176-.093.341-.14.513-.057.204-.119.404-.177.608a.78.78 0 0 1-.473.524q-.607.261-1.192.571c-.32.17-.646.33-.966.497-.099.051-.195.111-.31.12.066-.15.177-.266.277-.387.273-.334.615-.596.932-.881q.306-.28.611-.565c.077.11.13.124.251.06.439-.229.787-.567 1.094-.95z",fill:"#2D87F3"}),i.createElement("path",{d:"M8.271 4.49a1 1 0 0 0 .377-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"}),i.createElement("path",{d:"M11.96 7.563c-.079-.018-.157-.041-.237-.054a.65.65 0 0 0-.342.054l.146-1.104c.005-.037.02-.068.058-.071.05-.006.063.034.076.074q.159.511.282 1.03.01.036.017.071",fill:"#2D87F3"}),i.createElement("path",{d:"M9.834 1.004a7.996 7.996 0 1 0 0 15.992 7.996 7.996 0 0 0 0-15.992M9.465 2.26c1.606-.09 3.191.4 4.467 1.378a.282.282 0 0 1 .03.424l-9.066 9.066a.283.283 0 0 1-.424-.03A6.749 6.749 0 0 1 9.465 2.26m.369 13.49a6.72 6.72 0 0 1-4.016-1.325.284.284 0 0 1-.032-.426l9.046-9.047a.283.283 0 0 1 .427.032A6.75 6.75 0 0 1 9.834 15.75",fill:"#F44D2C"}),i.createElement("path",{d:"M10.159 5.509c.005.517 2.997-1.054 2.997-1.054s-.133-1.55-.293-2.313c-.058-.279-.114-.56-.245-.814a2.35 2.35 0 0 0-.943-.983c-.568-.324-1.178-.41-1.818-.3-.44.073-.843.233-1.173.55a.4.4 0 0 1-.147.085c-.379.15-.648.417-.828.776-.315.626-.224 1.345.235 1.82.062.065.127.127.167.21a.23.23 0 0 1 .235-.076c.142.028.282-.022.411-.085.097-.048.133-.144.093-.235-.042-.097-.138-.135-.242-.093-.071.027-.14.057-.218.057-.039 0-.064-.01-.07-.053q-.024-.165-.052-.332c-.01-.056.009-.08.067-.072.066.007.133.009.198.016.131.013.228-.055.239-.166.009-.105-.075-.187-.202-.196h-.007q-.118-.013-.237-.017c-.047 0-.053-.014-.047-.058.016-.114.043-.225.072-.336.019-.068.05-.07.106-.051.25.078.417.247.54.47.099.178.16.37.217.565.087.299.275.515.568.615.206.071.275.21.298.406.066.539.091 1.078.09 1.62z",fill:"#1B3250"}),i.createElement("path",{d:"M8.107 3.488a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.07.027-.14.056-.218.056-.038 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.199.017.13.013.227-.053.238-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.045 0-.053-.014-.047-.058.016-.115.043-.224.073-.337.016-.067.049-.069.105-.05.25.078.417.247.54.469.1.178.16.371.217.566.088.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.271-.016-.524.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.31-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.012-.319.06-.07.125-.134.185-.202",fill:"#FCCAAF"}),i.createElement("path",{d:"M8.265 4.49a1 1 0 0 0 .376-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_1530_7251"},i.createElement("path",{fill:"#fff",d:"M.834 0h18v18h-18z"}))))},TryConceive=e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,n.a)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return t?i.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("path",{d:"M14.018 9.155c-1.422 1.066-1.777 1.777-1.067 2.843.57.853 2.133 2.488 3.2 3.554-.712 2.133-6.753 1.422-6.753 1.422l-.711 1.421-1.067 3.199c-1.066 0-3.198.142-3.198.71 0 .712 2.843 2.844 3.554 2.844.569 0 1.658-2.132 2.132-3.199 1.54 1.777 5.474 4.905 8.885 3.199 4.265-2.132 6.398-5.331 5.687-7.819-.274-.959-.284-1.495-.132-1.813a4.62 4.62 0 0 0 3.438-2.3c.715-1.108.78-2.417.397-3.652-.41-1.663-1.15-2.955-2.637-3.252-3.423-.685-6.397 1.016-6.397 4.62a4.6 4.6 0 0 0 .971 2.834c-1.184.316-2.414-.236-6.302-4.611",fill:"#fff"}),i.createElement("path",{d:"M29.3 10.825A5.235 5.235 0 0 0 24.077 5.6c-2.876 0-5.245 2.348-5.245 5.224 0 .36.275.634.634.634.36 0 .635-.275.635-.634 0-2.179 1.776-3.955 3.976-3.955s3.954 1.776 3.954 3.955a3.947 3.947 0 0 1-3.531 3.933.8.8 0 0 0-.381-.021c-.042.021-.085.021-.106.042a.64.64 0 0 0-.57.635c0 .254.147.465.359.57.105.487.148.995.148 1.502a7.175 7.175 0 0 1-7.17 7.17 7.22 7.22 0 0 1-5.773-2.898l-.02-.021c.507-.317 1.902-.17 2.41-.106a.637.637 0 0 0 .698-.57.637.637 0 0 0-.571-.699c-1.184-.148-3.384-.38-3.891 1.164-.064.19-.127.401-.19.592-.318.994-.74 2.347-1.27 2.58-.634.063-2.918-1.587-3.172-2.284.212-.275 1.248-.444 2.623 0 .169.063.36.042.507-.064s.275-.232.296-.423c.571-2.707.74-3.278.74-3.299v-.021c.212-.888.867-.973 2.538-.93 1.523.042 3.384.084 4.674-1.46a7.8 7.8 0 0 0 3.235.994h.043a.643.643 0 0 0 .634-.592c.021-.36-.232-.655-.57-.677-4.4-.36-6.028-4.652-6.091-4.842 0 0 0-.022-.022-.022-.274-.634-.063-1.036.19-1.163.17-.105.445-.105.614.17 1.248 2.008 2.432 3.32 3.574 4.018.021 0 .042.02.042.02.677.34 2.052.762 3.596-.295.296-.19.359-.592.169-.889-.19-.296-.592-.36-.889-.169-.951.635-1.776.487-2.305.233-.93-.571-1.988-1.777-3.108-3.574-.508-.783-1.48-1.036-2.284-.613-.762.401-1.312 1.438-.762 2.77.085.254.93 2.368 2.898 3.934a2.7 2.7 0 0 1-.614.486c-.02 0-.02 0-.042-.021-8.205-2.517-8.86-8.586-8.924-9.77a.61.61 0 0 0-.656-.614.63.63 0 0 0-.592.656c.042 1.226.655 7.084 7.74 10.172h-.508c-1.48-.042-3.34-.085-3.806 1.882-.021.106-.17.677-.613 2.707-1.587-.36-3.194-.127-3.574 1.036-.19.55.126 1.206.972 2.01.571.549 2.263 1.902 3.447 1.902.149 0 .297-.02.423-.063.952-.36 1.438-1.544 1.861-2.813a8.48 8.48 0 0 0 6.324 2.855c4.652 0 8.438-3.785 8.438-8.438 0-.507-.043-1.015-.148-1.522a5.264 5.264 0 0 0 4.23-5.16",fill:"#3E3F58"}),i.createElement("rect",{x:"23.005",y:"8.444",width:"1.942",height:"1.422",rx:".711",transform:"rotate(34.869 23.005 8.444)",fill:"#FB8C00"})):i.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("path",{d:"M13.996 8.62v3.221c1.054.035 1.682-.705 1.845-1.467.209-.977-.444-2.041-1.845-1.754",fill:"#FEAA96"}),i.createElement("path",{d:"M14.055 10.67a.21.21 0 0 1-.2-.277c.166-.508.594-.69.92-.644a.21.21 0 1 1-.059.418c-.163-.023-.37.079-.461.358a.21.21 0 0 1-.2.145",fill:"#FF886C"}),i.createElement("path",{d:"M2.16 10.374c.162.762.79 1.502 1.844 1.467V8.62c-1.4-.287-2.054.777-1.845 1.754",fill:"#FEAA96"}),i.createElement("path",{d:"M3.98 10.67a.21.21 0 0 1-.2-.145c-.093-.28-.299-.381-.462-.358a.21.21 0 0 1-.21-.102.21.21 0 0 1 .152-.316c.326-.046.753.136.92.644a.21.21 0 0 1-.2.277",fill:"#FF886C"}),i.createElement("path",{d:"M9 15.831c1.325 0 3.365-.561 4.534-2.292 1.057-1.563.436-4.144.462-5.169.053-2.079-1.447-4.78-4.996-4.78s-5.05 2.7-4.996 4.78c.026 1.025-.595 3.606.461 5.169 1.17 1.73 3.21 2.292 4.535 2.292",fill:"#FECCBF"}),i.createElement("path",{d:"M6.881 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),i.createElement("path",{d:"M7.114 9.777a.21.21 0 0 1-.188-.116c-.049-.097-.205-.122-.27-.129-.225-.022-.44.056-.477.104a.211.211 0 1 1-.347-.241c.149-.215.53-.306.831-.285.306.021.533.15.64.362a.21.21 0 0 1-.189.305",fill:"#8C2F39"}),i.createElement("path",{d:"M11.119 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),i.createElement("path",{d:"M9 13.329c.777 0 .994-.61 1.046-.92.031-.185-.132-.35-.34-.35H8.293c-.208 0-.371.165-.34.35.052.31.27.92 1.047.92",fill:"#D84023"}),i.createElement("path",{d:"M10.763 7.94a.2.2 0 0 1-.107-.03.33.33 0 0 0-.18-.029.21.21 0 1 1-.07-.416.74.74 0 0 1 .464.081.211.211 0 0 1-.107.393m-3.526 0a.21.21 0 0 1-.107-.393.74.74 0 0 1 .463-.08.211.211 0 1 1-.07.415.3.3 0 0 0-.18.029.2.2 0 0 1-.106.029",fill:"#FEAA96"}),i.createElement("path",{d:"M10.887 9.777a.21.21 0 0 1-.189-.305c.107-.212.334-.34.64-.362.3-.021.682.07.83.285a.211.211 0 0 1-.346.24c-.038-.048-.252-.125-.477-.103-.065.007-.221.032-.27.129a.21.21 0 0 1-.188.116",fill:"#8C2F39"}),i.createElement("path",{d:"M9.284 11.02a.21.21 0 0 1-.22-.15.07.07 0 0 0-.063-.05H9a.07.07 0 0 0-.064.05.21.21 0 0 1-.22.15.22.22 0 0 1-.192-.244c.018-.221.213-.379.476-.379.264 0 .458.158.476.38a.22.22 0 0 1-.192.244",fill:"#FEAA96"}),i.createElement("path",{d:"M9.55 12.06h-1.1l-.003.054a.552.552 0 1 0 1.102-.055m2.041-.774-.29.53a.1.1 0 0 1-.041.04l-.53.29a.1.1 0 0 0-.053.09.1.1 0 0 0 .053.09l.53.29q.026.015.04.04l.29.53a.103.103 0 0 0 .18 0l.29-.53a.1.1 0 0 1 .041-.04l.53-.29a.103.103 0 0 0 0-.18l-.53-.29a.1.1 0 0 1-.04-.04l-.29-.53a.1.1 0 0 0-.143-.039.1.1 0 0 0-.038.04",fill:"#fff"}),i.createElement("path",{d:"M11.055 2.193c-.147-.422-.524-.698-1.01-.738a.9.9 0 0 0-.535.154c-.206.155-.37.358-.478.592a.036.036 0 0 1-.066 0 1.55 1.55 0 0 0-.475-.592.9.9 0 0 0-.537-.154c-.485.04-.862.316-1.008.739a1.03 1.03 0 0 0 .259 1.09c.479.447 1.156.518 1.543.518h.502c.387 0 1.066-.07 1.545-.517a1.03 1.03 0 0 0 .26-1.092M8.79 3.243a.13.13 0 0 1-.134.135c-.316-.012-.821-.084-1.163-.402a.61.61 0 0 1-.148-.644.66.66 0 0 1 .438-.417c.242-.078.404-.006.456.033.446.33.539.932.551 1.295m1.718-.267c-.342.319-.847.39-1.163.402a.13.13 0 0 1-.135-.135c.013-.362.105-.964.551-1.295a.47.47 0 0 1 .25-.073c.318.027.554.193.645.457a.61.61 0 0 1-.149.644",fill:"#2D87F3"}),i.createElement("path",{d:"M8.998 3.338a.21.21 0 0 1 .122.383l-.04.028c-.16.118-.957.76-.991 1.758-.027.78.403 1.132.814 1.202.367.062.831-.096.985-.59a.415.415 0 0 0-.211-.52c-.136-.069-.32-.076-.425.064a.211.211 0 0 1-.337-.253c.215-.287.607-.363.954-.186a.836.836 0 0 1 .422 1.02 1.28 1.28 0 0 1-1.458.88c-.56-.095-1.202-.58-1.166-1.631.046-1.334 1.17-2.093 1.222-2.125a.2.2 0 0 1 .109-.03",fill:"#BA8288"}))},w=(0,i.createContext)({});var y=(0,o.k)(e=>({inputRightSection:{fontSize:(0,s.h)(13),lineHeight:(0,s.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8}}));let DefaultLayout=e=>{var t=(0,n.a)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:o,calculatingMethods:s,isMobile:d}=(0,i.useContext)(w),{classes:m={}}=(0,i.useContext)(x.C),{classes:p}=y(void 0,{name:"OvulationTool__DefaultLayout"});return i.createElement(v.H,Object.assign({formLayout:"default"},t),i.createElement(v.H.FormRow,null,i.createElement(v.H.Control,null,i.createElement(v.H.ChipGroup,Object.assign({data:s,label:a("dueDatePage.calculationMethod"),isMobile:d},o.getInputProps("calculatorType"))))),i.createElement(v.H.FormRow,null,i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:i.createElement(b.T,{size:"p2",weight:"semiBold"},` (${a("dueDatePage.lastPeriod.lastPeriodLabel")})`),maxDate:new Date},o.getInputProps("lastPeriodDate")))),i.createElement(v.H.FormRow,null,i.createElement(g.I.Number,Object.assign({label:i.createElement(b.T,{size:"p2",weight:"semiBold"},a("ovulationPage.cycleLength")),rightSection:a("ovulationPage.dayUnit"),min:21,max:45,defaultValue:1},o.getInputProps("cycleLength"),{classNames:{rightSection:p.inputRightSection}}))),i.createElement(v.H.FormRow,null,i.createElement(g.I.Number,Object.assign({label:i.createElement(b.T,{size:"p2",weight:"semiBold"},a("ovulationPage.periodDuration")),rightSection:a("ovulationPage.dayUnit"),min:1,max:15,defaultValue:1},o.getInputProps("periodLength"),{classNames:{rightSection:p.inputRightSection}}))),i.createElement(v.H.FormRow,{className:m.submitWrapper},i.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,c.default)("due-date-calculate-button",m.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,n.a)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:o,calculatingMethods:s}=(0,i.useContext)(w),{classes:d={}}=(0,i.useContext)(x.C);return i.createElement(v.H,Object.assign({formLayout:"inline"},t),i.createElement(v.H.FormRow,null,i.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},i.createElement(v.H.ChipGroup,Object.assign({data:s},o.getInputProps("calculatorType"))))),i.createElement(v.H.FormRow,null,i.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},o.getInputProps("lastPeriodDate"))))),i.createElement(v.H.FormRow,null,i.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},o.getInputProps("cycleLength"),{error:null}))),o.errors.cycleLength&&i.createElement(v.H.Error,null,o.errors.cycleLength)),i.createElement(v.H.FormRow,null,i.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},o.getInputProps("periodLength"),{error:null}))),o.errors.periodLength&&i.createElement(v.H.Error,null,o.errors.periodLength)),i.createElement(v.H.FormRow,{className:d.submitWrapper},i.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,c.default)("due-date-calculate-button",d.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,n.a)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:o,calculatingMethods:s}=(0,i.useContext)(w);return i.createElement(v.H,Object.assign({formLayout:"inline"},t),i.createElement(v.H.Control,null,i.createElement(g.I.Wrapper,{label:i.createElement(b.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},i.createElement(v.H.ChipGroup,Object.assign({data:s},o.getInputProps("calculatorType"))))),i.createElement(v.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:i.createElement(E.Z,null)},i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},o.getInputProps("lastPeriodDate")))),i.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},o.getInputProps("cycleLength")))),o.errors.cycleLength&&i.createElement(v.H.Error,null,o.errors.cycleLength),i.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},o.getInputProps("periodLength")))),o.errors.periodLength&&i.createElement(v.H.Error,null,o.errors.periodLength),i.createElement(v.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate")))};(l=r||(r={}))[l.trackPeriod=0]="trackPeriod",l[l.conceive=1]="conceive",l[l.avoidPregnancy=2]="avoidPregnancy";let OvulationForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:l,isMobile:o,onSubmit:s}=e,c=(0,n.a)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let g=(0,d.rZ)(),{t:h}=(0,f.u)(),b="mb"===g.other.template,x=(0,m.c)({initialValues:{calculatorType:String(r.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,p.U)(h("validation.error.requiredField")),cycleLength:(0,p.U)(h("validation.error.requiredField"))}}),v=Object.assign({onSubmit:x.onSubmit(s)},c),E=[{label:h("ovulationPage.trackPeriod"),value:r.trackPeriod,icon:i.createElement(u.L,null)},{label:h("ovulationPage.conceive"),value:r.conceive,icon:i.createElement(TryConceive,null)},{label:h("ovulationPage.avoidPregnancy"),value:r.avoidPregnancy,icon:i.createElement(AvoidPregnancy,null)}];return i.createElement(w.Provider,{value:{submitProps:a,currentUrl:l,form:x,isMobile:o,calculatingMethods:E}},"inline"===t?i.createElement(InlineLayout,Object.assign({},v)):b?i.createElement(MbLayout,Object.assign({formLayout:t},v)):i.createElement(DefaultLayout,Object.assign({},v)))}},lyNv:function(e,t,a){a.d(t,{T:function(){return ThrForm}});var l=a("vEfc"),r=a("q1tI"),n=a("cChf"),i=a("ZFu2"),o=a("soWg"),s=a("sFNn"),c=a("Wbba"),d=a("2O1/"),m=a("8PyR"),p=a("aHnw"),u=a("KaGd"),g=a("uzh1"),h=a("NEg/"),b=a("eM6a"),f=a("xrdX");let x=(0,r.createContext)({}),DefaultForm=e=>{var t,a=(0,l.a)(e,[]);let{t:n,locale:i}=(0,s.u)(),{isAdult:o,activeValueNote:c,linkTool:d,form:v,submitProps:E}=(0,r.useContext)(x),{classes:w={}}=(0,r.useContext)(h.C);return r.createElement(b.H,Object.assign({formLayout:"default"},a),r.createElement(b.H.FormRow,null,r.createElement(m.G,Object.assign({},v.getInputProps("gender")))),r.createElement(b.H.FormRow,null,r.createElement(u.D,Object.assign({},v.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:r.createElement(g.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.ageInput")),maxDate:new Date}))),r.createElement(b.H.FormRow,null,r.createElement(p.I.Number,Object.assign({label:r.createElement(g.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.heartRateInput")),placeholder:n("tools.inputPlaceholder",{content:"60"})},v.getInputProps("heartRate"),{min:40,max:200,styles:()=>({rightSection:{width:"auto"}})}))),o&&r.createElement(b.H.FormRow,null,r.createElement(p.S,Object.assign({label:r.createElement(g.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.selectActive")),defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},v.getInputProps("activeValue")))),r.createElement(b.H.FormRow,{className:w.submitWrapper},r.createElement(b.H.Submit,Object.assign({className:w.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${f.v[i]}/${d}`},E),n("bmi.submit"))))},InlineForm=e=>{var t,a=(0,l.a)(e,[]);let{t:n,locale:i}=(0,s.u)(),{isAdult:o,activeValueNote:c,linkTool:d,form:g,submitProps:v}=(0,r.useContext)(x),{classes:E={}}=(0,r.useContext)(h.C);return r.createElement(b.H,Object.assign({formLayout:"inline"},a),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:n("tools.selectGender"),width:"none"},r.createElement(m.G,Object.assign({type:"radio",hideLabel:!0,error:null},g.getInputProps("gender")))),g.errors.gender&&r.createElement(b.H.Error,null,g.errors.gender)),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.ageInput")},r.createElement(u.D,Object.assign({},g.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},error:null,maxDate:new Date}))),g.errors.age&&r.createElement(b.H.Error,null,g.errors.age)),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.heartRateInput")},r.createElement(p.I.Number,Object.assign({placeholder:n("tools.inputPlaceholder",{content:"60"})},g.getInputProps("heartRate"),{error:null,min:40,max:200,rightSection:r.createElement(b.H.Unit,null,"bmp"),styles:()=>({rightSection:{width:"auto"}})}))),g.errors.heartRate&&r.createElement(b.H.Error,null,g.errors.heartRate)),o&&r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.selectActive")},r.createElement(p.S,Object.assign({defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},g.getInputProps("activeValue"))))),r.createElement(b.H.FormRow,{className:E.submitWrapper},r.createElement(b.H.Submit,Object.assign({className:E.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${f.v[i]}/${d}`},v),n("bmi.submit"))))},ThrForm=e=>{var{formLayout:t,onSubmit:a,onError:m,submitProps:p}=e,u=(0,l.a)(e,["formLayout","onSubmit","onError","submitProps"]);let{t:g,locale:h}=(0,s.u)(),b=(0,r.useRef)(40),{getHealthToolLink:f}=(0,o.u)(h),v=(0,n.c)({initialValues:{heartRate:60,activeValue:"low_intensity"},validate:{gender:(0,i.U)(g("validation.error.requiredField")),age:(0,i.U)(g("validation.error.requiredField")),heartRate:e=>Number(e)>=b.current&&200>=Number(e)?null:g("tools.heartRateRangeErr",{min:b.current,max:200})}}),E=(0,r.useMemo)(()=>f(d.H.THR),[f]),[w,y]=(0,r.useState)(!1),C=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],F=[{value:"low_intensity",label:g("targetHeartRate.lowIntensity.title"),image:c.C.getAssetPath("/low.svg"),imageActive:c.C.getAssetPath("/low-active.svg"),content:g("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:g("targetHeartRate.moderateIntensity.title"),image:c.C.getAssetPath("/moderate.svg"),imageActive:c.C.getAssetPath("/moderate-active.svg"),content:g("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:g("targetHeartRate.aerobicZone.title"),image:c.C.getAssetPath("/aerobic.svg"),imageActive:c.C.getAssetPath("/aerobic-active.svg"),content:g("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:g("targetHeartRate.vigorousIntensity.title"),image:c.C.getAssetPath("/vigorous.svg"),imageActive:c.C.getAssetPath("/vigorous-active.svg"),content:g("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:g("targetHeartRate.maximumIntensity.title"),image:c.C.getAssetPath("/maximum.svg"),imageActive:c.C.getAssetPath("/maximum-active.svg"),content:g("targetHeartRate.maximumIntensity.note")}];(0,r.useEffect)(()=>{let e=v.getInputProps("age").value,t=v.getInputProps("gender").value;if(e instanceof Date){let a=(new Date().getTime()-e.getTime())/1e3;a>=567648e3?y(!0):y(!1);let l=C.find(e=>a>=31536e3*e.minAge&&a<31536e3*e.maxAge)||C[0];b.current="male"===t?l.rangeMale:l.rangeFemale}},[v]);let k=Object.assign(Object.assign({},u),{onSubmit:v.onSubmit(a,m)});return r.createElement(x.Provider,{value:{isAdult:w,activeValueNote:F,linkTool:E,form:v,submitProps:p}},"inline"===t?r.createElement(InlineForm,Object.assign({},k)):r.createElement(DefaultForm,Object.assign({},k)))}}}]);