(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7151],{65721:function(e,t,a){"use strict";a.d(t,{L:function(){return n}});var r=a(22470),l=a(67294);const n=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("path",{d:"M26.954 27.37H8.18a2.353 2.353 0 0 1-2.347-2.347V8.597A2.353 2.353 0 0 1 8.181 6.25l11.803 2.347 6.97-2.347A2.354 2.354 0 0 1 29.3 8.597v16.426a2.353 2.353 0 0 1-2.346 2.347",fill:"#E0E9FB"}),l.createElement("path",{d:"M22.706 22.677H6.256c-1.337 0-2.229-1.338-1.736-2.582l1.314-3.285V8.597A2.353 2.353 0 0 1 8.181 6.25h16.426a2.353 2.353 0 0 1 2.346 2.347v8.213l-1.642 4.107a2.81 2.81 0 0 1-2.605 1.76",fill:"#FFE9F1"}),l.createElement("path",{d:"M24.607 28.074H8.18a3.044 3.044 0 0 1-3.05-3.05c0-.4.304-.705.703-.705.4 0 .704.305.704.704 0 .915.728 1.643 1.643 1.643h16.426c.915 0 1.643-.728 1.643-1.643v-2.346c0-.4.305-.704.703-.704.4 0 .704.305.704.704v2.346c0 1.69-1.36 3.05-3.05 3.05",fill:"#202135"}),l.createElement("path",{d:"M24.607 5.547h-.47v-.47A1.883 1.883 0 0 0 22.26 3.2a1.883 1.883 0 0 0-1.877 1.877v2.347c0 1.032.845 1.877 1.877 1.877a.69.69 0 0 0 .704-.704.69.69 0 0 0-.704-.704.47.47 0 0 1-.469-.47V5.078a.47.47 0 0 1 .47-.47.47.47 0 0 1 .469.47V6.25c0 .4.305.704.704.704h1.173c.915 0 1.643.728 1.643 1.643v6.406a8.8 8.8 0 0 1-.61 3.215l-.963 2.417a2.14 2.14 0 0 1-1.97 1.337H6.256c-.4 0-.751-.187-.962-.516a1.22 1.22 0 0 1-.118-1.103l.657-1.619c.47-1.197.728-2.464.728-3.754V8.597c0-.915.727-1.643 1.642-1.643h1.174a.69.69 0 0 0 .704-.704.69.69 0 0 0-.704-.703H8.204a3.044 3.044 0 0 0-3.05 3.05v6.406a8.8 8.8 0 0 1-.61 3.215l-.657 1.62c-.329.797-.211 1.689.258 2.416a2.59 2.59 0 0 0 2.135 1.127h16.45a3.49 3.49 0 0 0 3.261-2.206l.962-2.417c.47-1.197.728-2.464.728-3.755V8.597a3.08 3.08 0 0 0-3.074-3.05",fill:"#202135"}),l.createElement("path",{d:"M12.874 9.301a.69.69 0 0 0 .704-.704.69.69 0 0 0-.704-.704.47.47 0 0 1-.469-.47V5.078a.47.47 0 0 1 .47-.47.47.47 0 0 1 .469.47V6.25c0 .4.305.704.704.704h4.693a.69.69 0 0 0 .704-.704.69.69 0 0 0-.704-.703h-3.99v-.47A1.883 1.883 0 0 0 12.875 3.2a1.883 1.883 0 0 0-1.877 1.877v2.347c0 1.032.845 1.877 1.877 1.877",fill:"#202135"}),l.createElement("path",{d:"M21.087 16.81a1.16 1.16 0 0 1-1.173-1.173c0-.657.516-1.174 1.173-1.174s1.174.517 1.174 1.174-.517 1.173-1.174 1.173",fill:"#E85388"}),l.createElement("path",{d:"M11.7 13.29a1.16 1.16 0 0 1-1.172-1.173c0-.657.516-1.173 1.173-1.173s1.173.516 1.173 1.173-.516 1.173-1.173 1.173m4.694 0a1.16 1.16 0 0 1-1.173-1.173c0-.657.516-1.173 1.173-1.173s1.173.516 1.173 1.173-.516 1.173-1.173 1.173m4.693 0a1.16 1.16 0 0 1-1.173-1.173c0-.657.516-1.173 1.173-1.173s1.174.516 1.174 1.173-.517 1.173-1.174 1.173m-9.386 3.52a1.16 1.16 0 0 1-1.173-1.173c0-.657.516-1.174 1.173-1.174s1.173.517 1.173 1.174-.516 1.173-1.173 1.173m4.693 0a1.16 1.16 0 0 1-1.173-1.173c0-.657.516-1.174 1.173-1.174s1.173.517 1.173 1.174-.516 1.173-1.173 1.173m3.778 3.403c-.657 0-1.08-.47-.962-1.056.117-.587.727-1.056 1.384-1.056s1.08.469.963 1.056c-.118.586-.728 1.056-1.385 1.056m-4.693 0c-.657 0-1.08-.47-.962-1.056.117-.587.727-1.056 1.384-1.056s1.08.469.962 1.056c-.117.586-.727 1.056-1.384 1.056m-5.655-1.056c-.118.586.305 1.056.962 1.056s1.267-.47 1.384-1.056c.118-.587-.305-1.056-.962-1.056s-1.267.469-1.384 1.056",fill:"#9898A9"})):l.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("rect",{y:"2.235",width:"22.05",height:"17.15",rx:"2",fill:"#E3F2FF"}),l.createElement("path",{d:"M0 4.235a2 2 0 0 1 2-2h18.05a2 2 0 0 1 2 2V5.91H0z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.135 1h-.05c-.553 0-1.001.449-1.001 1.002v1.637a1 1 0 0 0 1.001 1.001h.05c.553 0 1.002-.448 1.002-1.001V2.002c0-.553-.449-1.002-1.002-1.002M4.275 4.64h.05c.553 0 1.002-.448 1.002-1.001V2.002C5.327 1.449 4.878 1 4.325 1h-.05c-.553 0-1.002.449-1.002 1.002v1.637c0 .553.449 1.001 1.002 1.001",fill:"#284A75"}),l.createElement("path",{d:"M4.717 9.752H3.96a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757a.627.627 0 0 0 .627-.627v-.894a.627.627 0 0 0-.627-.627m4.17 0h-.758a.627.627 0 0 0-.627.627v.894c0 .346.281.627.627.627h.758a.627.627 0 0 0 .627-.627v-.894a.627.627 0 0 0-.627-.627m4.168 0h-.757a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757a.627.627 0 0 0 .627-.627v-.894a.627.627 0 0 0-.627-.627m4.434 0h-.758a.627.627 0 0 0-.626.627v.894c0 .346.28.627.626.627h.758a.627.627 0 0 0 .627-.627v-.894a.627.627 0 0 0-.627-.627M4.675 13.635h-.757a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757c.346 0 .627-.28.627-.627v-.894a.627.627 0 0 0-.627-.627m4.169 0h-.757a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757c.346 0 .627-.28.627-.627v-.894a.627.627 0 0 0-.627-.627m4.169 0h-.757a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757c.346 0 .627-.28.627-.627v-.894a.627.627 0 0 0-.627-.627m4.434 0h-.757a.627.627 0 0 0-.627.627v.894c0 .346.28.627.627.627h.757c.346 0 .627-.28.627-.627v-.894a.627.627 0 0 0-.627-.627",fill:"#2B62CD"}),l.createElement("path",{d:"M20.36 13.836c-.734-.081-.88 1.444-1.905 2.66-.6.713-1.388 1.914-1.49 2.978-.097 1.02.186 3.508 3.23 3.704q.52.03 1.038-.037c3.027-.562 2.92-3.343 2.63-4.326-.3-1.026-1.272-2.093-1.879-2.66-1.122-1.045-.936-2.244-1.624-2.32",fill:"#FF6F4D"}),l.createElement("path",{d:"M22.14 17.4c.057.214-.222.393-.387.059-.14-.284-.08-.38.029-.404.114-.026.31.168.358.345",fill:"#fff"}))}},66663:function(e,t,a){"use strict";a.d(t,{I:function(){return r}});const r={height:{min:1,max:300},weight:{min:1,max:200},pregnantWeek:{min:1,max:40}}},97629:function(e,t,a){"use strict";a.d(t,{C:function(){return r}});const r=(0,a(67294).createContext)({})},52744:function(e,t,a){"use strict";a.d(t,{h:function(){return B}});var r=a(22470),l=a(67294),n=a(44036),o=a(2566),i=a(19827),s=a(86010),c=a(9713),m=a(75762),u=a(67128),d=a(15456),g=a(83129),h=a(10917),p=a(58499),b=a(97629),v=a(66663),E=a(141),f=a(51320),C=a(86315),y=a(67688);const w=(0,l.createContext)({}),x=e=>{const{t:t,locale:a}=(0,p.u)(),{classes:r={}}=(0,l.useContext)(b.C),{form:n,currentUrl:o,submitProps:i}=(0,l.useContext)(w),s={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return l.createElement(E.H,Object.assign({formLayout:"default"},e),l.createElement(E.H.FormRow,null,l.createElement(E.H.Control,null,l.createElement(f.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},n.getInputProps("gender"),{error:null}))),n.errors.gender&&l.createElement(E.H.Error,null,n.errors.gender)),l.createElement(E.H.FormRow,null,l.createElement(u.I.Wrapper,{label:l.createElement(g.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.birthday"))},l.createElement(d.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&&l.createElement(E.H.Error,null,n.errors.birthday)),l.createElement(E.H.FormRow,null,l.createElement(u.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},t("babyGrowth.height"),l.createElement(g.T,{size:"p2",weight:"semiBold",color:h.r.colors.gray300,as:"span"},` (${t("babyGrowth.cm")})`))},n.getInputProps("height"),{placeholder:t("babyGrowth.height"),min:v.I.height.min,max:v.I.height.max,onChange:e=>{n.setFieldValue("height",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),l.createElement(E.H.FormRow,null,l.createElement(u.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},t("babyGrowth.weight"),l.createElement(g.T,{size:"p2",weight:"semiBold",color:h.r.colors.gray300,as:"span"},` (${t("babyGrowth.kg")})`))},n.getInputProps("weight"),{placeholder:t("babyGrowth.weight"),min:v.I.weight.min,max:v.I.weight.max,onChange:e=>{n.setFieldValue("weight",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),a!==C.L.Vietnam&&l.createElement(E.H.FormRow,null,l.createElement(u.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},t("babyGrowth.head"),l.createElement(g.T,{size:"p2",weight:"semiBold",color:h.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&&l.createElement(E.H.Error,null,n.errors.checkMesureVal),l.createElement(E.H.FormRow,null,l.createElement(u.I.Wrapper,{label:l.createElement(g.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.measurementDate"))},l.createElement(d.D,Object.assign({},s,{defaultValue:new Date},n.getInputProps("measurementDate"),{maxDate:new Date,error:null}))),n.errors.measurementDate&&l.createElement(E.H.Error,null,n.errors.measurementDate)),l.createElement(E.H.FormRow,{className:r.submitWrapper},l.createElement(E.H.Submit,Object.assign({className:r.submitBtn,type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":o},i),t("babyGrowth.input.submit"))))};var P=(0,n.k)((e=>({root:{display:"flex",flexDirection:"column",gap:(0,o.h)(8)},bmiVal:{display:"inline-block"},unitText:{color:e.colors.gray[6]},submitBtn:{}})));const H=(e=0,t=0)=>{try{if(e&&t){const a=Number(t)/Math.pow(Number(e)/100,2);return isNaN(a)?0:Number(((e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e))(a))}return 0}catch(a){}return 0},I=e=>{var{styles:t,classNames:a}=e,n=(0,r._)(e,["styles","classNames"]);const{t:o,locale:c}=(0,p.u)(),{form:m,currentUrl:h,submitProps:y}=(0,l.useContext)(w),{classes:x={}}=(0,l.useContext)(b.C),I=(0,i.rZ)(),{classes:O}=P(void 0,{name:"BabyGrowthForm__InlineForm",styles:t,classNames:a}),D={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return l.createElement(E.H,Object.assign({formLayout:"inline"},n),l.createElement(E.H.FormRow,null,l.createElement(E.H.BorderInlineControl,{label:o("tools.selectBabyGender")},l.createElement(f.G,Object.assign({type:"radio",hideLabel:!0,isBaby:!0,genderValue:{male:"boy",female:"girl"}},m.getInputProps("gender")))),m.errors.gender&&l.createElement(E.H.Error,null,m.errors.gender)),l.createElement(E.H.FormRow,null,l.createElement(E.H.BorderInlineControl,{label:o("babyGrowth.input.birthday")},l.createElement(d.D,Object.assign({},D,{maxDate:new Date},m.getInputProps("birthday"),{error:null,onChange:e=>{e&&m.validateField("measurementDate"),m.getInputProps("birthday").onChange(e)}}))),m.errors.birthday&&l.createElement(E.H.Error,null,m.errors.birthday)),l.createElement(E.H.FormRow,null,l.createElement(E.H.BorderInlineControl,{label:"BMI",styles:{control:{"&:first-child":{width:"auto"}}}},l.createElement(g.T,{size:"p3"},l.createElement("span",{className:O.bmiVal},m.getInputProps("height").value&&m.getInputProps("weight").value&&H(Number(m.getInputProps("height").value),Number(m.getInputProps("weight").value))),"(",o("babyGrowth.kg.m2"),")"),l.createElement(u.I.Number,Object.assign({},m.getInputProps("height"),{placeholder:o("babyGrowth.height"),min:v.I.height.min,max:v.I.height.max,onChange:e=>{m.setFieldValue("height",e),m.setFieldValue("checkMesureVal",!m.values.checkMesureVal)},rightSection:l.createElement(E.H.Unit,null,o("babyGrowth.cm"))})),l.createElement(u.I.Number,Object.assign({},m.getInputProps("weight"),{placeholder:o("babyGrowth.weight"),min:v.I.weight.min,max:v.I.weight.max,onChange:e=>{m.setFieldValue("weight",e),m.setFieldValue("checkMesureVal",!m.values.checkMesureVal)},rightSection:l.createElement(E.H.Unit,null,o("babyGrowth.kg"))}))),("mb"===I.other.template||c!==C.L.Vietnam)&&l.createElement(E.H.BorderInlineControl,{label:o("babyGrowth.head")},l.createElement(u.I.Number,Object.assign({},m.getInputProps("head"),{placeholder:o("babyGrowth.head"),onChange:e=>{m.setFieldValue("head",e),m.setFieldValue("checkMesureVal",!m.values.checkMesureVal)},rightSection:l.createElement(E.H.Unit,null,o("babyGrowth.cm"))}))),m.errors.checkMesureVal&&l.createElement(E.H.Error,null,m.errors.checkMesureVal)),l.createElement(E.H.FormRow,null,l.createElement(E.H.BorderInlineControl,{label:o("babyGrowth.input.measurementDate")},l.createElement(d.D,Object.assign({},D,{maxDate:new Date},m.getInputProps("measurementDate"),{error:null}))),m.errors.measurementDate&&l.createElement(E.H.Error,null,m.errors.measurementDate)),l.createElement(E.H.FormRow,{className:x.submitWrapper},l.createElement(E.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":h,className:(0,s.Z)(O.submitBtn,x.submitBtn)},y),o("babyGrowth.input.submit"))))},O=e=>{var t=(0,r._)(e,[]);const{t:a}=(0,p.u)(),{form:n,currentUrl:o,submitProps:i}=(0,l.useContext)(w),s={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return l.createElement(E.H,Object.assign({formLayout:"default"},t),l.createElement(E.H.FormRow,null,l.createElement(E.H.Control,null,l.createElement(f.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},n.getInputProps("gender"),{error:null}))),n.errors.gender&&l.createElement(E.H.Error,null,n.errors.gender)),l.createElement(E.H.BorderBoxControl,{label:a("babyGrowth.input.birthday"),rightSection:l.createElement(y.Z,null)},l.createElement(d.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&&l.createElement(E.H.Error,null,n.errors.birthday),l.createElement(E.H.BorderBoxControl,{label:a("babyGrowth.height"),rightSection:a("babyGrowth.cm")},l.createElement(u.I.Number,Object.assign({},n.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"}),min:v.I.height.min,max:v.I.height.max,onChange:e=>{n.setFieldValue("height",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.height&&l.createElement(E.H.Error,null,n.errors.height),l.createElement(E.H.BorderBoxControl,{label:a("babyGrowth.weight"),rightSection:a("babyGrowth.kg")},l.createElement(u.I.Number,Object.assign({},n.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"}),min:v.I.weight.min,max:v.I.weight.max,onChange:e=>{n.setFieldValue("weight",e),n.setFieldValue("checkMesureVal",!n.values.checkMesureVal)}}))),n.errors.weight&&l.createElement(E.H.Error,null,n.errors.weight),l.createElement(E.H.BorderBoxControl,{label:a("babyGrowth.head"),rightSection:a("babyGrowth.cm")},l.createElement(u.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&&l.createElement(E.H.Error,null,n.errors.checkMesureVal),l.createElement(E.H.BorderBoxControl,{label:a("babyGrowth.input.measurementDate"),rightSection:l.createElement(y.Z,null)},l.createElement(u.I.Wrapper,null,l.createElement(d.D,Object.assign({},s,{defaultValue:new Date},n.getInputProps("measurementDate"),{maxDate:new Date,rightSection:null,error:null})))),n.errors.measurementDate&&l.createElement(E.H.Error,null,n.errors.measurementDate),l.createElement(E.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":o},i),a("babyGrowth.input.submit")))},D=e=>{var{onSubmit:t,formLayout:a="default",submitProps:n,currentUrl:o}=e,s=(0,r._)(e,["onSubmit","formLayout","submitProps","currentUrl"]);const{t:u}=(0,p.u)(),d=(0,i.rZ)(),g=(0,c.c)({initialValues:{measurementDate:new Date},validate:{gender:(0,m.U)(u("validation.error.requiredField")),birthday:(0,m.U)(u("validation.error.requiredField")),measurementDate:(e,t)=>t.birthday?t.birthday instanceof Date&&e instanceof Date&&t.birthday.getTime()<=e.getTime()?null:u("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:u("babyGrowth.error.atLeastOneOf")},validateInputOnChange:["checkMesureVal"]}),h=Object.assign({onSubmit:g.onSubmit((e=>null===t||void 0===t?void 0:t(Object.assign(Object.assign({},e),{bmi:H(Number(g.getInputProps("height").value),Number(g.getInputProps("weight").value)).toString()}))))},s);return l.createElement(w.Provider,{value:{submitProps:n,currentUrl:o,form:g}},"default"===a?"mb"===d.other.template?l.createElement(O,Object.assign({formLayout:a},h)):l.createElement(x,Object.assign({},h)):l.createElement(I,Object.assign({},h)))};var j=a(43125),F=a(18551);a(93867),a(90411),a(94184),a(15536);const B=e=>{var t,a,n,{babyGrowthContent:o,formProps:i}=e,s=(0,r._)(e,["babyGrowthContent","formProps"]);return l.createElement(F.H,Object.assign({},s),l.createElement(F.H.Banner,{icon:l.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null===o||void 0===o?void 0:o.featuredImage)||j.C.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null===o||void 0===o?void 0:o.title)||"",medicalReview:{link:null===(t=null===o||void 0===o?void 0:o.reviewBy)||void 0===t?void 0:t.link,reviewer:null===(a=null===o||void 0===o?void 0:o.reviewBy)||void 0===a?void 0:a.reviewer.trim(),date:null===(n=null===o||void 0===o?void 0:o.reviewBy)||void 0===n?void 0:n.date}}),l.createElement(F.H.Body,null,l.createElement(D,Object.assign({},i))))}},70309:function(e,t,a){"use strict";a.d(t,{f:function(){return i}});var r=a(22470),l=a(67294),n=a(18551),o=a(64221);a(93867),a(90411),a(94184),a(15536);const i=e=>{var{babyPoopPage:t,formProps:a}=e,i=(0,r._)(e,["babyPoopPage","formProps"]);const{reviewedBy:s,reviewedDate:c}=t||{};return l.createElement(n.H,Object.assign({},i),l.createElement(n.H.Banner,{icon:l.createElement("img",{alt:"health-tool-icon",src:null===t||void 0===t?void 0:t.featuredImage,loading:"lazy"}),heading:t.title,medicalReview:{link:null===s||void 0===s?void 0:s.profileUrl,reviewer:null===s||void 0===s?void 0:s.displayName,date:c}}),l.createElement(n.H.Body,null,l.createElement(o.B,Object.assign({babyPoopPage:t},a))))}},43821:function(e,t,a){"use strict";a.d(t,{q:function(){return c}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(18551),s=a(51135);a(93867),a(90411),a(94184),a(15536);const c=e=>{var t,a,c,{bmiContent:m,bmiGenerated:u,bmiUnit:d,formProps:g}=e,h=(0,r._)(e,["bmiContent","bmiGenerated","bmiUnit","formProps"]);const{t:p}=(0,n.u)();return l.createElement(i.H,Object.assign({},h),l.createElement(i.H.Banner,{isRevamp:!0,icon:l.createElement("img",{alt:"health-tool-icon",src:(null===m||void 0===m?void 0:m.featured_image)||o.C.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:(null===m||void 0===m?void 0:m.title)||p("bmi.heading"),medicalReview:{link:null===(t=null===m||void 0===m?void 0:m.reviewBy)||void 0===t?void 0:t.link,reviewer:null===(a=null===m||void 0===m?void 0:m.reviewBy)||void 0===a?void 0:a.reviewer,date:null===(c=null===m||void 0===m?void 0:m.reviewBy)||void 0===c?void 0:c.date}}),l.createElement(i.H.Body,null,l.createElement(s.B,Object.assign({bmiGenerated:u,bmiUnit:d},g))))}},11120:function(e,t,a){"use strict";a.d(t,{l:function(){return c}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(18551),s=a(51135);a(93867),a(90411),a(94184),a(15536);const c=e=>{var t,a,c,{bmrContent:m,bmiGenerated:u,bmiUnit:d,formProps:g}=e,h=(0,r._)(e,["bmrContent","bmiGenerated","bmiUnit","formProps"]);const{t:p}=(0,n.u)();return l.createElement(i.H,Object.assign({},h),l.createElement(i.H.Banner,{icon:l.createElement("img",{alt:"health-tool-icon",src:(null===m||void 0===m?void 0:m.featured_image)||o.C.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:(null===m||void 0===m?void 0:m.title)||p("bmr.heading"),medicalReview:{link:null===(t=null===m||void 0===m?void 0:m.reviewBy)||void 0===t?void 0:t.link,reviewer:null===(a=null===m||void 0===m?void 0:m.reviewBy)||void 0===a?void 0:a.reviewer,date:null===(c=null===m||void 0===m?void 0:m.reviewBy)||void 0===c?void 0:c.date}}),l.createElement(i.H.Body,null,l.createElement(s.B,Object.assign({bmiGenerated:u,bmiUnit:d},g,{submitProps:Object.assign(Object.assign({},null===g||void 0===g?void 0:g.submitProps),{dataEventAction:"BMR"})}))))}},95355:function(e,t,a){"use strict";a.d(t,{w:function(){return c}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(18551),s=a(88756);a(93867),a(90411),a(94184),a(15536);const c=e=>{var t,{dueDatePageInfo:a,expertUrl:c,formProps:m}=e,u=(0,r._)(e,["dueDatePageInfo","expertUrl","formProps"]);const{t:d}=(0,n.u)();return l.createElement(i.H,Object.assign({isPregTool:!0},u),l.createElement(i.H.Banner,{isRevamp:!0,color:"pink",icon:l.createElement("img",{alt:"health-tool-icon",src:(null===a||void 0===a?void 0:a.featured_image)||o.C.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:(null===a||void 0===a?void 0:a.post_title)||d("healthTools.dueDateCalculator"),medicalReview:{link:c,reviewer:null===(t=null===a||void 0===a?void 0:a.reviewed_by)||void 0===t?void 0:t.display_name,date:null===a||void 0===a?void 0:a.reviewed_date}}),l.createElement(i.H.Body,null,l.createElement(s.D,Object.assign({},m,{locale:u.locale}))))}},83146:function(e,t,a){"use strict";a.d(t,{$:function(){return c}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(18551),s=a(536);a(93867),a(90411),a(94184),a(15536);const c=e=>{var t,{ovulationPageInfo:a,expertUrl:c,formProps:m,isMobile:u}=e,d=(0,r._)(e,["ovulationPageInfo","expertUrl","formProps","isMobile"]);const{t:g}=(0,n.u)();return l.createElement(i.H,Object.assign({isPregTool:!0},d),l.createElement(i.H.Banner,{icon:l.createElement("img",{alt:"health-tool-icon",src:(null===a||void 0===a?void 0:a.featured_image)||o.C.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:(null===a||void 0===a?void 0:a.title)||g("healthTools.ovulationCalculator"),medicalReview:{link:c,reviewer:null===(t=null===a||void 0===a?void 0:a.reviewed_by)||void 0===t?void 0:t.display_name,date:null===a||void 0===a?void 0:a.reviewed_date}}),l.createElement(i.H.Body,null,l.createElement(s.O,Object.assign({isMobile:u},m))))}},81762:function(e,t,a){"use strict";a.d(t,{z:function(){return m}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(51905),s=a(18551),c=a(18519);a(93867),a(90411),a(94184),a(15536);const m=e=>{var t,{pwgContent:a,formProps:m}=e,u=(0,r._)(e,["pwgContent","formProps"]);const{t:d}=(0,n.u)();return l.createElement(s.H,Object.assign({isPregTool:!0},u),l.createElement(s.H.Banner,{icon:l.createElement("img",{alt:"health-tool-icon",src:(null===a||void 0===a?void 0:a.featuredImage)||o.C.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:(null===a||void 0===a?void 0:a.title)||d("pregnancyWeightGain.heading"),medicalReview:{link:(0,i.b)(null===a||void 0===a?void 0:a.reviewedBy),reviewer:null===(t=null===a||void 0===a?void 0:a.reviewedBy)||void 0===t?void 0:t.display_name,date:null===a||void 0===a?void 0:a.reviewedDate}}),l.createElement(s.H.Body,null,l.createElement(c.P,Object.assign({},m))))}},10309:function(e,t,a){"use strict";a.d(t,{M:function(){return m}});var r=a(22470),l=a(67294),n=a(58499),o=a(43125),i=a(51905),s=a(18551),c=a(74725);a(93867),a(90411),a(94184),a(15536);const m=e=>{var t,a,{thrContent:m,formProps:u}=e,d=(0,r._)(e,["thrContent","formProps"]);const{t:g}=(0,n.u)();return l.createElement(s.H,Object.assign({},d),l.createElement(s.H.Banner,{icon:l.createElement("img",{alt:"health-tool-icon",src:(null===m||void 0===m?void 0:m.featured_image)||o.C.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:(null===m||void 0===m?void 0:m.title)||g("targetHearRate.heading"),medicalReview:(null===(t=null===m||void 0===m?void 0:m.reviewedBy)||void 0===t?void 0:t.display_name)?{link:(0,i.b)(null===m||void 0===m?void 0:m.reviewedBy),reviewer:null===(a=null===m||void 0===m?void 0:m.reviewedBy)||void 0===a?void 0:a.display_name,date:null===m||void 0===m?void 0:m.reviewedDate}:void 0}),l.createElement(s.H.Body,null,l.createElement(c.T,Object.assign({},u))))}},88756:function(e,t,a){"use strict";a.d(t,{D:function(){return se},a:function(){return F}});var r=a(22470),l=a(67294),n=a(19827),o=a(86010),i=a(81972),s=a(53515),c=a(39538),m=a(91938),u=a(70027),d=a(65721),g=a(86315),h=a(9713),p=a(75762),b=a(90411),v=a.n(b),E=a(67128),f=a(15456),C=a(83129),y=a(58499),w=a(141),x=a(67688),P=a(97629),H=a(74533),I=a(10917);var O;!function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF",e[e.IUI=3]="IUI",e[e.ultrasound=4]="ultrasound"}(O||(O={}));const D={[String(O.lastPeriod)]:{value:String(O.lastPeriod),icon:d.L,label:"dueDatePage.lastPeriod"},[String(O.IVF)]:{value:String(O.IVF),icon:e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("path",{d:"M15.804 28.278a3.16 3.16 0 0 1-3.18-3.208l.128-20.306 6.405.008-.128 20.307c-.012 1.757-1.452 3.191-3.225 3.2",fill:"#fff"}),l.createElement("path",{d:"m12.72 10.266-.116 14.788c-.011 1.757 1.423 3.197 3.18 3.208 1.774-.008 3.214-1.442 3.225-3.2V10.267",fill:"#FFEAF1"}),l.createElement("circle",{cx:"14.662",cy:"19.027",transform:"rotate(-49.83 14.662 19.027)",fill:"#3E3F58",r:"1.012"}),l.createElement("circle",{cx:"16.326",cy:"13.426",r:"1.012",transform:"rotate(-49.83 16.326 13.426)",fill:"#3E3F58"}),l.createElement("path",{d:"m14.662 19.026.087 1.022a.98.98 0 0 0 .344.667.98.98 0 0 1 .32.98l-.123.51m1.036-8.779.087 1.022a.98.98 0 0 0 .344.666.98.98 0 0 1 .32.98l-.123.511",stroke:"#3E3F58"}),l.createElement("path",{d:"M18.833 27.597a3.94 3.94 0 0 1-3.02 1.408 4 4 0 0 1-2.795-1.148 3.98 3.98 0 0 1-1.14-2.795l.108-20.553c0-.426.344-.756.753-.738.426 0 .757.345.738.754l-.108 20.553c.002.656.248 1.256.697 1.733a2.42 2.42 0 0 0 1.727.706 2.483 2.483 0 0 0 2.47-2.462l.109-20.553c0-.426.344-.757.753-.738.426 0 .757.344.738.754l-.108 20.553a3.85 3.85 0 0 1-.922 2.526",fill:"#202135"}),l.createElement("path",{d:"M20.753 4.975a.75.75 0 0 1-.58.262l-8.714-.027a.727.727 0 0 1-.738-.754c0-.425.344-.756.754-.737l8.713.026c.426 0 .756.344.738.754a.66.66 0 0 1-.173.476",fill:"#202135"})):l.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("path",{d:"M13.064 5.794a17.8 17.8 0 0 1 3.34-4.638l4.26 2.881a17.8 17.8 0 0 0-3.272 4.507l-1.08 2.12a.65.65 0 0 0 .124.76 7.9 7.9 0 0 1 2.296 4.81c.027.265-1.141 5.997-9.376 5.573-1.587-.082-5.724-1.269-6.12-2.86a8 8 0 0 1-.233-2.161c.124-4.165 3.718-7.648 7.884-7.647h.098a.65.65 0 0 0 .59-.36z",fill:"#BCDEFF"}),l.createElement("path",{d:"M20.75 3.234 16.696.496a.886.886 0 1 0-.992 1.469l4.056 2.738a.886.886 0 0 0 .992-1.469",fill:"#E3F2FF"}),l.createElement("path",{d:"M18.771 17.024a7.87 7.87 0 0 1-2.7 5.944A4.2 4.2 0 0 1 13.301 24H8.473a4.2 4.2 0 0 1-2.769-1.03 7.9 7.9 0 0 1-2.468-4.023c.924.468 2.191.805 3.922.805 1.142 0 2.01-.346 2.775-.834q.323-.21.629-.446c1.973-1.516 3.524-3.668 8.17-2.238q.04.39.04.79",fill:"#2D87F3"}),l.createElement("path",{d:"M11.858 15.5c-1.78.348-3.096-1.608-2.134-3.121a2.06 2.06 0 0 1 1.529-.944q.303-.03.588.025a.27.27 0 0 0 .268-.107c.282-.373.737-.573 1.2-.639.224-.031.374-.24.379-.44.021-.794.657-1.311 1.288-1.234.183.022.223.27.058.35l-.012.006a.9.9 0 0 0-.28.196c-.213.263-.187.407-.153.6.03.167.066.37-.04.715a1.45 1.45 0 0 1-.504.7c-.255.19-.445.23-.592.263-.088.019-.16.034-.223.076a.27.27 0 0 0-.07.379c.184.27.306.587.344.934a2.063 2.063 0 0 1-1.646 2.24",fill:"#fff"}),l.createElement("ellipse",{cx:"10",cy:"20.5",rx:"3",ry:"2.5",fill:"#FF6F4D"}))},label:"dueDatePage.ivf"},[String(O.conception)]:{value:String(O.conception),icon:e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.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 1 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"}),l.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.266",fill:"#E85388"}),l.createElement("path",{d:"M9.834 25.333a2.667 2.667 0 1 0-2.298-1.312l-.084.084a3.25 3.25 0 0 0-.952 2.298c0 .726-.41 1.39-1.06 1.715l-1.238.619a.667.667 0 0 0 .596 1.193l1.24-.62a3.25 3.25 0 0 0 1.796-2.907c0-.508.202-.995.561-1.355l.084-.084c.397.235.86.37 1.355.37",fill:"#3E3F58"})):l.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("circle",{cx:"9",cy:"6.75",fill:"#91CAFF",r:"6.75"}),l.createElement("circle",{cx:"9",cy:"6.75",fill:"#2D87F3",r:"5.4"}),l.createElement("path",{d:"M1.789 12.2a.245.245 0 0 1-.02-.489c.073-.006 1.795-.167 1.761-1.605-.013-.587.15-1.057.485-1.397.524-.53 1.273-.528 1.305-.527a.245.245 0 0 1-.002.49h-.002c-.011 0-.582.004-.955.385-.236.24-.351.59-.34 1.038.018.793-.367 1.41-1.114 1.787a3.3 3.3 0 0 1-1.118.319M.75 17.774a.245.245 0 0 1 .226-.263c.073-.006 1.786-.162 1.749-1.593-.016-.586.146-1.055.48-1.392.521-.528 1.27-.524 1.3-.523a.245.245 0 0 1-.006.49c-.015 0-.58.004-.949.38q-.352.362-.335 1.033c.02.791-.362 1.406-1.106 1.78a3.3 3.3 0 0 1-1.095.313.245.245 0 0 1-.263-.225",fill:"#D2D6DC"}),l.createElement("path",{d:"M8.659 5.035c-.562-.561-1.956-.078-2.699.665-.407.407-.635.91-.665 1.373v.124l1.145 1.16.181.042c.464-.03.966-.258 1.373-.665.743-.743 1.226-2.137.665-2.699",fill:"#E3F2FF"}),l.createElement("path",{d:"m5.295 7.073-.292.75a.55.55 0 0 0 .124.589l.155.155a.55.55 0 0 0 .589.124l.75-.292z",fill:"#91CAFF"}),l.createElement("path",{d:"M8.098 11.358a.87.87 0 0 0-.233-.523c-.562-.562-1.956-.079-2.699.664-.407.408-.635.91-.665 1.373v.125l1.146 1.16.18.042c.464-.03.966-.258 1.374-.666.566-.566.98-1.51.897-2.175",fill:"#E3F2FF"}),l.createElement("path",{d:"m4.5 12.872-.29.75a.55.55 0 0 0 .123.589l.156.155a.55.55 0 0 0 .588.124l.75-.292z",fill:"#91CAFF"}))},label:"dueDatePage.conceptionDate"},[String(O.IUI)]:{value:String(O.IUI),icon:e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return l.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("ellipse",{cx:"10",cy:"7.5",rx:"7.5",ry:"7.5",fill:"#91CAFF"}),l.createElement("ellipse",{cx:"10",cy:"7.5",rx:"6",ry:"6",fill:"#2D87F3"}),l.createElement("path",{d:"M1.98877 13.5566C1.8483 13.5566 1.72914 13.4487 1.71769 13.3062C1.7056 13.1563 1.81732 13.025 1.9672 13.013C2.04819 13.0061 3.96085 12.8267 3.92397 11.2296C3.90887 10.5766 4.09013 10.0544 4.46266 9.6775C5.04496 9.08834 5.87737 9.09055 5.91289 9.09138C6.06324 9.09309 6.18376 9.21636 6.18204 9.36675C6.18033 9.51603 6.05877 9.63593 5.90985 9.63593C5.9091 9.63593 5.90835 9.63593 5.9076 9.63593C5.8958 9.63593 5.26174 9.64041 4.84671 10.0637C4.58418 10.3314 4.4569 10.7194 4.46838 11.2171C4.48874 12.0983 4.06094 12.7846 3.23124 13.202C2.63342 13.5027 2.03606 13.5537 2.01095 13.5558C2.00351 13.5563 1.99611 13.5566 1.98877 13.5566Z",fill:"#D2D6DC"}),l.createElement("path",{d:"M0.834813 19.7487C0.823187 19.5988 0.935297 19.4678 1.08522 19.4562C1.16581 19.4496 3.06971 19.2768 3.02807 17.6868C3.011 17.0352 3.1904 16.5146 3.56121 16.1394C4.14076 15.5531 4.97192 15.5577 5.00687 15.5587C5.15722 15.5608 5.27734 15.6845 5.27516 15.8349C5.27301 15.9849 5.15117 16.106 4.99993 16.1032C4.99989 16.1032 4.99982 16.1032 4.99975 16.1032C4.98315 16.1032 4.35528 16.1074 3.9453 16.5255C3.68491 16.791 3.55946 17.177 3.57245 17.6725C3.59545 18.552 3.17051 19.2358 2.34353 19.6499C1.74807 19.948 1.15233 19.9971 1.12728 19.9991C0.976577 20.0107 0.846367 19.898 0.834813 19.7487Z",fill:"#D2D6DC"}),l.createElement("path",{d:"M9.62226 5.59508C8.99818 4.971 7.44969 5.50769 6.62421 6.33313C6.1713 6.78604 5.91828 7.34408 5.88477 7.85874V7.99721L7.15753 9.28601L7.35857 9.33258C7.87323 9.29906 8.43127 9.04605 8.88418 8.59314C9.70966 7.76766 10.2463 6.21916 9.62226 5.59508Z",fill:"#E3F2FF"}),l.createElement("path",{d:"M5.88516 7.85889L5.5611 8.69259C5.47325 8.91856 5.52723 9.17508 5.69865 9.3465L5.87139 9.51925C5.95823 9.60609 6.06693 9.66256 6.18243 9.68584C6.29486 9.70856 6.4137 9.70005 6.52509 9.65676L7.3588 9.3327L5.88516 7.85889Z",fill:"#91CAFF"}),l.createElement("path",{d:"M8.99894 12.6201C8.97018 12.3889 8.88805 12.1875 8.73945 12.0389C8.11537 11.4149 6.56687 11.9515 5.7414 12.777C5.28849 13.2299 5.03547 13.7879 5.00195 14.3026V14.4411L6.27493 15.7298L6.47597 15.7764C6.99063 15.7429 7.54867 15.4898 8.00158 15.0369C8.63034 14.4081 9.09073 13.3598 8.99894 12.6201Z",fill:"#E3F2FF"}),l.createElement("path",{d:"M5.00235 14.3027L4.67829 15.1364C4.59043 15.3624 4.64441 15.6189 4.81583 15.7904L4.98858 15.9631C5.07542 16.0499 5.18412 16.1064 5.29962 16.1297C5.41205 16.1524 5.53089 16.1439 5.64228 16.1006L6.47598 15.7766L5.00235 14.3027Z",fill:"#91CAFF"}))},label:"dueDatePage.IUI"},[String(O.ultrasound)]:{value:String(O.ultrasound),icon:e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return l.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("g",{clipPath:"url(#clip0_5646_32454)"},l.createElement("path",{d:"M17.278 1.47119H2.7207C2.03035 1.47119 1.4707 2.03084 1.4707 2.72119V17.2785C1.4707 17.9689 2.03035 18.5285 2.7207 18.5285H17.278C17.9684 18.5285 18.528 17.9689 18.528 17.2785V2.72119C18.528 2.03084 17.9684 1.47119 17.278 1.47119Z",fill:"#65B5FF"}),l.createElement("path",{d:"M11.23 9.94794C12.1285 10.4395 11.7085 11.7187 10.9077 11.7734C10.1386 11.8261 9.79346 11.6067 9.12721 11.1589C8.74409 10.9014 8.11299 9.67872 7.93815 9.36872C7.74008 9.01332 7.58143 8.63733 7.46503 8.24747C7.31862 7.75122 7.71315 7.30122 8.03987 7.31731C8.09475 7.32086 8.14794 7.33765 8.19491 7.36625C8.24188 7.39485 8.28122 7.43441 8.30956 7.48153C8.3227 7.49619 8.33867 7.50803 8.3565 7.51636C8.37433 7.52469 8.39367 7.52933 8.41334 7.53C8.43301 7.53067 8.45261 7.52736 8.47097 7.52027C8.48933 7.51317 8.50607 7.50244 8.52018 7.48872C8.55856 7.44827 8.60864 7.42084 8.66339 7.41028C8.71814 7.39972 8.77482 7.40655 8.82549 7.42981C9.03081 7.56731 8.99503 7.80294 9.13081 8.11544C9.34088 8.4938 9.61306 8.83417 9.93596 9.12231C10.3217 9.44809 10.5785 9.59138 11.23 9.94794Z",fill:"#2B62CD"}),l.createElement("path",{d:"M19.5332 1.54781C19.5129 1.54783 19.4928 1.54386 19.4741 1.53611C19.4553 1.52836 19.4383 1.51699 19.424 1.50265C19.4096 1.48832 19.3982 1.47129 19.3904 1.45255C19.3827 1.43381 19.3787 1.41372 19.3787 1.39344V0.932812C19.3784 0.850311 19.3455 0.771271 19.2872 0.712933C19.2288 0.654596 19.1498 0.621695 19.0673 0.621406H18.6066C18.5665 0.62013 18.5285 0.603298 18.5006 0.574472C18.4726 0.545646 18.457 0.507087 18.457 0.466953C18.457 0.42682 18.4726 0.38826 18.5006 0.359434C18.5285 0.330608 18.5665 0.313776 18.6066 0.3125H19.0673C19.2317 0.312707 19.3894 0.378127 19.5057 0.494414C19.622 0.6107 19.6874 0.768359 19.6876 0.932812V1.39344C19.6876 1.43438 19.6713 1.47365 19.6424 1.5026C19.6134 1.53155 19.5742 1.54781 19.5332 1.54781Z",fill:"#2D87F3"}),l.createElement("path",{d:"M0.689531 1.54789C0.648588 1.54789 0.609323 1.53163 0.580372 1.50268C0.551421 1.47372 0.535156 1.43446 0.535156 1.39352V0.932891C0.535363 0.768356 0.600848 0.610626 0.717236 0.494326C0.833623 0.378027 0.991403 0.312661 1.15594 0.312578H1.61641C1.6371 0.31192 1.65772 0.315428 1.67703 0.322893C1.69635 0.330359 1.71397 0.34163 1.72884 0.356038C1.74371 0.370445 1.75554 0.387695 1.76361 0.406762C1.77169 0.425829 1.77585 0.446324 1.77585 0.467031C1.77585 0.487738 1.77169 0.508234 1.76361 0.527301C1.75554 0.546368 1.74371 0.563618 1.72884 0.578025C1.71397 0.592432 1.69635 0.603703 1.67703 0.611169C1.65772 0.618635 1.6371 0.622143 1.61641 0.621484H1.15594C1.07325 0.621484 0.993926 0.654258 0.935352 0.712626C0.876779 0.770995 0.843727 0.8502 0.843437 0.932891V1.39352C0.843438 1.43438 0.827238 1.47357 0.798388 1.50251C0.769538 1.53145 0.730393 1.54777 0.689531 1.54789Z",fill:"#2D87F3"}),l.createElement("path",{d:"M19.0673 19.4648H18.6066C18.5665 19.4636 18.5285 19.4467 18.5006 19.4179C18.4726 19.3891 18.457 19.3505 18.457 19.3104C18.457 19.2702 18.4726 19.2317 18.5006 19.2029C18.5285 19.174 18.5665 19.1572 18.6066 19.1559H19.0673C19.1498 19.1556 19.2288 19.1227 19.2872 19.0644C19.3455 19.0061 19.3784 18.927 19.3787 18.8445V18.3841C19.378 18.3634 19.3815 18.3427 19.389 18.3234C19.3965 18.3041 19.4077 18.2865 19.4221 18.2716C19.4365 18.2567 19.4538 18.2449 19.4729 18.2368C19.4919 18.2288 19.5124 18.2246 19.5331 18.2246C19.5538 18.2246 19.5743 18.2288 19.5934 18.2368C19.6125 18.2449 19.6297 18.2567 19.6441 18.2716C19.6585 18.2865 19.6698 18.3041 19.6773 18.3234C19.6847 18.3427 19.6882 18.3634 19.6876 18.3841V18.8441C19.6875 19.0086 19.6221 19.1664 19.5058 19.2828C19.3895 19.3991 19.2318 19.4646 19.0673 19.4648Z",fill:"#2D87F3"}),l.createElement("path",{d:"M1.40625 19.6875H0.940156C0.773755 19.6873 0.614228 19.6211 0.496565 19.5034C0.378901 19.3858 0.312707 19.2262 0.3125 19.0598V18.5938C0.3125 18.5523 0.328962 18.5126 0.358265 18.4833C0.387567 18.454 0.42731 18.4375 0.46875 18.4375C0.51019 18.4375 0.549933 18.454 0.579235 18.4833C0.608538 18.5126 0.625 18.5523 0.625 18.5938V19.0595C0.624979 19.1009 0.633115 19.1419 0.648942 19.1802C0.664769 19.2185 0.687977 19.2532 0.717242 19.2825C0.746507 19.3118 0.781256 19.3351 0.819503 19.3509C0.857751 19.3668 0.898749 19.375 0.940156 19.375H1.40625C1.44769 19.375 1.48743 19.3915 1.51674 19.4208C1.54604 19.4501 1.5625 19.4898 1.5625 19.5312C1.5625 19.5727 1.54604 19.6124 1.51674 19.6417C1.48743 19.671 1.44769 19.6875 1.40625 19.6875Z",fill:"#2D87F3"}),l.createElement("path",{d:"M3.95953 2.8125H2.65625C2.61481 2.8125 2.57507 2.79604 2.54576 2.76674C2.51646 2.73743 2.5 2.69769 2.5 2.65625C2.5 2.61481 2.51646 2.57507 2.54576 2.54576C2.57507 2.51646 2.61481 2.5 2.65625 2.5H3.95953C4.00097 2.5 4.04071 2.51646 4.07002 2.54576C4.09932 2.57507 4.11578 2.61481 4.11578 2.65625C4.11578 2.69769 4.09932 2.73743 4.07002 2.76674C4.04071 2.79604 4.00097 2.8125 3.95953 2.8125Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.3443 14.9688H16.7285C16.6871 14.9688 16.6473 14.9523 16.618 14.923C16.5887 14.8937 16.5723 14.8539 16.5723 14.8125C16.5723 14.7711 16.5887 14.7313 16.618 14.702C16.6473 14.6727 16.6871 14.6562 16.7285 14.6562H17.3443C17.3857 14.6562 17.4255 14.6727 17.4548 14.702C17.4841 14.7313 17.5005 14.7711 17.5005 14.8125C17.5005 14.8539 17.4841 14.8937 17.4548 14.923C17.4255 14.9523 17.3857 14.9688 17.3443 14.9688Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.3443 16.3027H16.7285C16.6871 16.3027 16.6473 16.2863 16.618 16.257C16.5887 16.2277 16.5723 16.1879 16.5723 16.1465C16.5723 16.105 16.5887 16.0653 16.618 16.036C16.6473 16.0067 16.6871 15.9902 16.7285 15.9902H17.3443C17.3857 15.9902 17.4255 16.0067 17.4548 16.036C17.4841 16.0653 17.5005 16.105 17.5005 16.1465C17.5005 16.1879 17.4841 16.2277 17.4548 16.257C17.4255 16.2863 17.3857 16.3027 17.3443 16.3027Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.3443 13.6499H16.7285C16.6871 13.6499 16.6473 13.6334 16.618 13.6041C16.5887 13.5748 16.5723 13.5351 16.5723 13.4937C16.5723 13.4522 16.5887 13.4125 16.618 13.3832C16.6473 13.3539 16.6871 13.3374 16.7285 13.3374H17.3443C17.3857 13.3374 17.4255 13.3539 17.4548 13.3832C17.4841 13.4125 17.5005 13.4522 17.5005 13.4937C17.5005 13.5351 17.4841 13.5748 17.4548 13.6041C17.4255 13.6334 17.3857 13.6499 17.3443 13.6499Z",fill:"#2D87F3"}),l.createElement("path",{d:"M4.99063 3.84375H2.65625C2.61481 3.84375 2.57507 3.82729 2.54576 3.79799C2.51646 3.76868 2.5 3.72894 2.5 3.6875C2.5 3.64606 2.51646 3.60632 2.54576 3.57701C2.57507 3.54771 2.61481 3.53125 2.65625 3.53125H4.99063C5.03207 3.53125 5.07181 3.54771 5.10111 3.57701C5.13041 3.60632 5.14687 3.64606 5.14687 3.6875C5.14687 3.72894 5.13041 3.76868 5.10111 3.79799C5.07181 3.82729 5.03207 3.84375 4.99063 3.84375Z",fill:"#2D87F3"}),l.createElement("path",{d:"M4.99063 4.875H2.65625C2.61481 4.875 2.57507 4.85854 2.54576 4.82924C2.51646 4.79993 2.5 4.76019 2.5 4.71875C2.5 4.67731 2.51646 4.63757 2.54576 4.60826C2.57507 4.57896 2.61481 4.5625 2.65625 4.5625H4.99063C5.03207 4.5625 5.07181 4.57896 5.10111 4.60826C5.13041 4.63757 5.14687 4.67731 5.14687 4.71875C5.14687 4.76019 5.13041 4.79993 5.10111 4.82924C5.07181 4.85854 5.03207 4.875 4.99063 4.875Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.3443 12.3843H16.7285C16.6871 12.3843 16.6473 12.3678 16.618 12.3385C16.5887 12.3092 16.5723 12.2695 16.5723 12.228C16.5723 12.1866 16.5887 12.1468 16.618 12.1175C16.6473 12.0882 16.6871 12.0718 16.7285 12.0718H17.3443C17.3857 12.0718 17.4255 12.0882 17.4548 12.1175C17.4841 12.1468 17.5005 12.1866 17.5005 12.228C17.5005 12.2695 17.4841 12.3092 17.4548 12.3385C17.4255 12.3678 17.3857 12.3843 17.3443 12.3843Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.3443 17.6562H16.7285C16.6871 17.6562 16.6473 17.6398 16.618 17.6105C16.5887 17.5812 16.5723 17.5414 16.5723 17.5C16.5723 17.4586 16.5887 17.4188 16.618 17.3895C16.6473 17.3602 16.6871 17.3438 16.7285 17.3438H17.3443C17.3857 17.3438 17.4255 17.3602 17.4548 17.3895C17.4841 17.4188 17.5005 17.4586 17.5005 17.5C17.5005 17.5414 17.4841 17.5812 17.4548 17.6105C17.4255 17.6398 17.3857 17.6562 17.3443 17.6562Z",fill:"#2D87F3"}),l.createElement("path",{d:"M17.0352 17.6563C16.9937 17.6563 16.954 17.6398 16.9247 17.6105C16.8954 17.5812 16.8789 17.5415 16.8789 17.5001V12.228C16.8789 12.1866 16.8954 12.1468 16.9247 12.1175C16.954 12.0882 16.9937 12.0718 17.0352 12.0718C17.0766 12.0718 17.1163 12.0882 17.1456 12.1175C17.1749 12.1468 17.1914 12.1866 17.1914 12.228V17.5001C17.1914 17.5415 17.1749 17.5812 17.1456 17.6105C17.1163 17.6398 17.0766 17.6563 17.0352 17.6563Z",fill:"#2D87F3"}),l.createElement("path",{d:"M8.60596 12.3197C8.54189 12.4053 8.46174 12.4775 8.37002 12.5324C8.13096 12.6807 7.05018 13.0533 5.9919 12.0152C5.72695 11.7747 5.47994 11.5151 5.25284 11.2385C5.07471 11.0041 4.83877 10.959 4.57627 10.5683C4.34659 10.2262 4.36846 9.61991 4.57627 9.35412C4.84502 9.01194 5.32627 8.84022 5.62627 9.49631C5.76534 9.80256 6.47002 10.476 7.0294 10.6262C7.09603 10.6424 7.16404 10.6523 7.23252 10.6558C7.85752 10.6952 8.57627 11.1307 8.74659 11.6512C8.77467 11.766 8.77661 11.8857 8.75227 12.0014C8.72793 12.1172 8.67794 12.2259 8.60596 12.3197Z",fill:"#2B62CD"}),l.createElement("path",{d:"M17.8215 7.60137C17.3465 10.2436 15.2621 10.3982 14.3965 11.2482C13.9965 11.642 14.0606 11.7092 13.9965 12.7201C13.9231 13.8951 13.2621 16.1139 11.0356 16.7654C8.77777 17.4279 6.96371 16.5029 6.00121 14.6982C5.14339 13.0904 4.21527 13.6154 3.00121 13.1811C2.42152 12.9717 2.00433 12.4811 2.01996 11.9748C2.03871 11.3217 2.40902 10.8404 3.37777 11.3217C4.04964 11.6545 4.69496 11.5936 5.30433 11.5201C5.63507 11.4688 5.96971 11.4468 6.30433 11.4545C6.96796 11.5169 7.60602 11.7417 8.16214 12.1092C8.31527 12.2061 8.42621 12.2889 8.48402 12.3342C8.0626 11.9665 7.71478 11.5222 7.45902 11.0248C7.44183 10.9936 7.2848 10.655 7.25589 10.592C6.96136 9.95137 7.39027 9.35606 7.83714 9.35606C7.87141 9.35549 7.9056 9.3597 7.93871 9.36855C8.05114 9.39698 8.14976 9.46457 8.21683 9.55918C8.23545 9.57848 8.25784 9.59375 8.28261 9.60403C8.30738 9.61431 8.334 9.61939 8.36082 9.61895C8.38763 9.61851 8.41407 9.61256 8.43849 9.60147C8.46291 9.59038 8.48479 9.57439 8.50277 9.55449C8.54371 9.50394 8.60167 9.47004 8.66579 9.45911C8.72992 9.44818 8.79583 9.46098 8.85121 9.49512C9.13871 9.66699 8.98871 10.0232 9.19808 10.4342C9.42152 10.8732 10.109 11.3389 10.634 11.2389C11.0293 11.1623 11.8606 10.6811 10.634 10.167C9.94808 9.88105 9.86683 9.48418 9.93558 9.12168C9.96058 8.99356 10.1621 8.41543 10.1653 8.39356C10.1996 8.1248 9.64652 7.69668 10.1653 7.31699C10.4215 7.12949 10.459 6.88262 10.5075 6.56855C10.7934 4.6998 12.02 3.47168 13.9825 3.47168C16.5262 3.47168 18.1418 5.82793 17.8215 7.60137Z",fill:"#2D87F3"}),l.createElement("path",{d:"M11.0678 7.4316C11.006 7.43496 10.9443 7.42333 10.888 7.3977C10.8317 7.37207 10.7824 7.33321 10.7443 7.28441C10.7305 7.26814 10.7201 7.24921 10.7139 7.22877C10.7076 7.20833 10.7056 7.18683 10.708 7.16559C10.7104 7.14436 10.7171 7.12384 10.7278 7.1053C10.7384 7.08677 10.7527 7.07062 10.7699 7.05784C10.787 7.04507 10.8066 7.03594 10.8274 7.03103C10.8482 7.02613 10.8698 7.02553 10.8908 7.0293C10.9118 7.03306 10.9319 7.0411 10.9497 7.05292C10.9675 7.06474 10.9827 7.08009 10.9943 7.09801C11.0256 7.1391 11.159 7.11504 11.2378 7.0802C11.2756 7.06321 11.3186 7.06193 11.3573 7.07666C11.3961 7.09138 11.4274 7.1209 11.4444 7.15871C11.4614 7.19653 11.4627 7.23954 11.4479 7.27829C11.4332 7.31705 11.4037 7.34836 11.3659 7.36535C11.272 7.40738 11.1706 7.42991 11.0678 7.4316Z",fill:"#2B62CD"}),l.createElement("path",{d:"M11.548 13.1983C11.5518 13.2185 11.5515 13.2392 11.5471 13.2592C11.5428 13.2792 11.5345 13.2981 11.5227 13.3149C11.5109 13.3316 11.4958 13.3458 11.4785 13.3567C11.4611 13.3675 11.4417 13.3748 11.4215 13.378C11.2165 13.4117 11.0089 13.4279 10.8012 13.4265C10.5169 13.4214 10.2349 13.3757 9.96367 13.2905C9.44418 13.1038 8.96486 12.8201 8.55117 12.4546C7.77477 11.8262 7.66367 11.4171 7.45898 11.0249C7.74314 11.4988 8.12768 11.9047 8.58555 12.214C9.03605 12.5485 9.53089 12.8188 10.0559 13.0171C10.4848 13.1224 10.9305 13.141 11.3668 13.0718C11.387 13.0677 11.4079 13.0678 11.4281 13.0721C11.4483 13.0763 11.4675 13.0846 11.4844 13.0964C11.5014 13.1082 11.5157 13.1233 11.5267 13.1409C11.5376 13.1584 11.5449 13.1779 11.548 13.1983Z",fill:"#2B62CD"}),l.createElement("path",{d:"M10.5484 8.85297C10.511 8.86675 10.4712 8.87312 10.4313 8.87172C10.2958 8.86506 10.164 8.82594 10.0469 8.75766C10.0858 8.62969 10.1177 8.54703 10.1419 8.46875C10.2299 8.5323 10.3369 8.56419 10.4453 8.55922C10.464 8.55169 10.4839 8.54798 10.504 8.54833C10.5241 8.54867 10.5439 8.55306 10.5623 8.56122C10.5807 8.56939 10.5972 8.58116 10.6109 8.59585C10.6247 8.61054 10.6353 8.62784 10.6422 8.64672C10.6561 8.68656 10.6541 8.73021 10.6366 8.76862C10.6192 8.80703 10.5876 8.83724 10.5484 8.85297Z",fill:"#2B62CD"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_5646_32454"},l.createElement("rect",{width:"20",height:"20",fill:"white"}))))},label:"dueDatePage.ultrasound"}},j=[String(O.lastPeriod),String(O.IVF),String(O.conception)],F={[g.L.Cambodia]:j,[g.L.Singapore]:j,[g.L.India]:j,[g.L.Indonesia]:[String(O.lastPeriod),String(O.IUI),String(O.IVF),String(O.ultrasound)],[g.L.Malaysia]:j,[g.L.Myanmar]:j,[g.L.PhilippinesEnglish]:j,[g.L.PhilippinesTagalog]:j,[g.L.Taiwan]:j,[g.L.Thailand]:j,[g.L.Vietnam]:[String(O.lastPeriod),String(O.IVF),String(O.IUI),String(O.ultrasound)]},B="yyyy-MM-dd",S=(0,l.createContext)({}),k=(0,l.createContext)({}),M=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(k);return l.createElement(w.H.FormRow,null,l.createElement(f.D,Object.assign({label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},N=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(k);return l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:300,label:e("dueDatePage.lastPeriod.lastPeriodLabel")},l.createElement(f.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))),t.errors.lastPeriodDate&&l.createElement(w.H.Error,null,t.errors.lastPeriodDate))},L=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(k);return l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:l.createElement(x.Z,null)},l.createElement(f.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},T=({})=>{const{classes:e={}}=(0,l.useContext)(P.C),{formLayout:t,onSubmit:a,currentUrl:r,submitProps:i}=(0,l.useContext)(S),s=(0,n.rZ)(),{t:c}=(0,y.u)(),m=(0,h.c)({initialValues:{lastPeriodDate:new Date}}),d={onSubmit:m.onSubmit((e=>{const{lastPeriodDate:t}=e,r=[`${H.Q.type}=${O.conception}`,`${H.Q.startDate}=${v()(t).format(H.A)}`,`${H.Q.additional}= `].join("&");var l;a((l=t,{otherInfo:{method:O.conception+1,conception_date:(0,u.Z)(l,B),measurement_date:null,insemination_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}),r)}))};return l.createElement(k.Provider,{value:{form:m}},l.createElement(w.H,Object.assign({formLayout:t},d),"inline"===t?l.createElement(N,null):"mb"===s.other.template?l.createElement(L,null):l.createElement(M,null),l.createElement(w.H.FormRow,{className:e.submitWrapper},l.createElement(w.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:(0,o.Z)("due-date-calculate-button",e.submitBtn),type:"submit"},i),c("dueDatePage.lastPeriod.calculate")))))},R=(0,l.createContext)({}),z=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(R);return l.createElement(w.H.FormRow,null,l.createElement(f.D,Object.assign({label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_IUI_procedure"))},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},_=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(R);return l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_IUI_procedure")},l.createElement(f.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))))},A=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(R);return l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.date_of_IUI_procedure"),rightSection:l.createElement(x.Z,null)},l.createElement(f.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},V=({})=>{const{formLayout:e,onSubmit:t,currentUrl:a,submitProps:r}=(0,l.useContext)(S),{classes:i={}}=(0,l.useContext)(P.C),s=(0,n.rZ)(),{t:c}=(0,y.u)(),m=(0,h.c)({initialValues:{dateOfIUIProcedure:new Date}}),d={onSubmit:m.onSubmit((e=>{const{dateOfIUIProcedure:a}=e,r=[`${H.Q.type}=${O.IUI}`,`${H.Q.startDate}=${v()(a).format(H.A)}`,`${H.Q.additional}= `].join("&");t((e=>({otherInfo:{method:O.conception+1,insemination_date:(0,u.Z)(e,B),measurement_date:null,conception_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}))(a),r)}))};return l.createElement(R.Provider,{value:{form:m}},l.createElement(w.H,Object.assign({formLayout:e},d),"inline"===e?l.createElement(_,null):"mb"===s.other.template?l.createElement(A,null):l.createElement(z,null),l.createElement(w.H.FormRow,{className:i.submitWrapper},l.createElement(w.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:a,className:(0,o.Z)("due-date-calculate-button",i.submitBtn),type:"submit"},r),c("dueDatePage.lastPeriod.calculate")))))},Z=(0,l.createContext)({}),W=()=>{const{t:e}=(0,y.u)(),{form:t,transferDateOptions:a}=(0,l.useContext)(Z);return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(f.D,Object.assign({label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.ivf.transferDate"))},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),l.createElement(w.H.FormRow,null,l.createElement(E.R.Group,Object.assign({},t.getInputProps("dayTransfer")),l.createElement(i.Z,null,a.map(((e,t)=>l.createElement(E.R,{key:t,value:e.value,label:e.label})))))))},$=()=>{const{t:e}=(0,y.u)(),{form:t,transferDateOptions:a}=(0,l.useContext)(Z);return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:300,label:e("dueDatePage.ivf.transferDate")},l.createElement(f.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:"none"},l.createElement(E.R.Group,Object.assign({},t.getInputProps("dayTransfer")),l.createElement(i.Z,null,a.map(((e,t)=>l.createElement(E.R,{key:t,value:e.value,label:e.label}))))))))},G=()=>{const{t:e}=(0,y.u)(),{form:t,transferDateOptions:a}=(0,l.useContext)(Z);return l.createElement(l.Fragment,null,l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.ivf.transferDate"),rightSection:l.createElement(x.Z,null)},l.createElement(f.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null}))),l.createElement(E.R.Group,Object.assign({},t.getInputProps("dayTransfer")),l.createElement(i.Z,null,a.map(((e,t)=>l.createElement(E.R,{key:t,value:e.value,label:e.label}))))))},U=({})=>{var e;const{classes:t={}}=(0,l.useContext)(P.C),{formLayout:a,onSubmit:r,currentUrl:i,submitProps:s}=(0,l.useContext)(S),{t:c}=(0,y.u)(),m=(0,n.rZ)(),d=[{value:"3",label:c("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:c("dueDatePage.ivf.transferDateRadio",{number:5})}],g=(0,h.c)({initialValues:{IVFDate:new Date,dayTransfer:null===(e=null===d||void 0===d?void 0:d[0])||void 0===e?void 0:e.value}}),p={onSubmit:g.onSubmit((e=>{const{IVFDate:t}=e,a=Number(e.dayTransfer),l=[`${H.Q.type}=${O.IVF}`,`${H.Q.startDate}=${v()(t).format(H.A)}`,`${H.Q.additional}=${a}`].join("&");r(((e,t)=>({otherInfo:{method:O.IVF+1,ivf_transfer_date:(0,u.Z)(e,B),measurement_date:null,insemination_date:null,days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}))(t,Number(a)),l)}))};return l.createElement(Z.Provider,{value:{form:g,transferDateOptions:d}},l.createElement(w.H,Object.assign({formLayout:a},p),"inline"===a?l.createElement($,null):"mb"===m.other.template?l.createElement(G,null):l.createElement(W,null),l.createElement(w.H.FormRow,{className:t.submitWrapper},l.createElement(w.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:i,className:(0,o.Z)("due-date-calculate-button",t.submitBtn),type:"submit"},s),c("dueDatePage.lastPeriod.calculate")))))},q=(0,l.createContext)({}),Q=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(q),a=(0,l.useMemo)((()=>[...Array(21)].map(((t,a)=>({label:e("dueDatePage.daysText",{number:a+20}),value:`${a+20}`})))),[]);return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(f.D,Object.assign({label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),l.createElement(w.H.FormRow,null,l.createElement(E.I.Wrapper,{label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.periodLengthLabel"))},l.createElement(E.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:a,withinPortal:!0},t.getInputProps("periodLength"))))))},Y=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(q),a=(0,l.useMemo)((()=>[...Array(21)].map(((t,a)=>({label:e("dueDatePage.daysText",{number:a+20}),value:`${a+20}`})))),[]);return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),width:300},l.createElement(f.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),width:300},l.createElement(E.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:a},t.getInputProps("periodLength"),{error:null,withinPortal:!0})))),t.errors.periodLength&&l.createElement(w.H.FormRow,null,l.createElement(w.H.Error,null,t.errors.periodLength)))},X=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(q);return l.createElement(l.Fragment,null,l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:l.createElement(x.Z,null)},l.createElement(f.D,Object.assign({rightSection:null},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),rightSection:e("ovulationPage.dayUnit")},l.createElement(E.I.Number,Object.assign({min:20,max:40,placeholder:e("tools.inputPlaceholder",{content:"30"})},t.getInputProps("periodLength")))),t.errors.periodLength&&l.createElement(w.H.Error,null,t.errors.periodLength))},K=({})=>{const{formLayout:e,onSubmit:t,currentUrl:a,submitProps:r}=(0,l.useContext)(S),{classes:i={}}=(0,l.useContext)(P.C),{t:s}=(0,y.u)(),c="mb"===(0,n.rZ)().other.template,m=(0,h.c)({initialValues:{lastPeriodDate:new Date},validate:{periodLength:(0,p.U)(s("validation.error.requiredField"))}}),d={onSubmit:m.onSubmit((e=>{const{periodLength:a,lastPeriodDate:r}=e,l=[`${H.Q.type}=${O.lastPeriod}`,`${H.Q.startDate}=${v()(r).format(H.A)}`,`${H.Q.additional}=${a}`].join("&");t(((e,t)=>({otherInfo:{method:O.lastPeriod+1,first_day:(0,u.Z)(e,B),measurement_date:null,insemination_date:null,cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}))(r,a),l)}))};return l.createElement(q.Provider,{value:{form:m}},l.createElement(w.H,Object.assign({formLayout:e},d),"inline"===e?l.createElement(Y,null):c?l.createElement(X,null):l.createElement(Q,null),l.createElement(w.H.FormRow,{className:i.submitWrapper},l.createElement(w.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:a,className:(0,o.Z)("due-date-calculate-button",i.submitBtn),type:"submit"},r),s("dueDatePage.lastPeriod.calculate")))))},J=(0,l.createContext)({}),ee=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return l.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00065 1.3335C4.32065 1.3335 1.33398 4.32016 1.33398 8.00016C1.33398 11.6802 4.32065 14.6668 8.00065 14.6668C11.6807 14.6668 14.6673 11.6802 14.6673 8.00016C14.6673 4.32016 11.6807 1.3335 8.00065 1.3335ZM8.00065 11.3335C7.63398 11.3335 7.33398 11.0335 7.33398 10.6668V8.00016C7.33398 7.6335 7.63398 7.3335 8.00065 7.3335C8.36732 7.3335 8.66732 7.6335 8.66732 8.00016V10.6668C8.66732 11.0335 8.36732 11.3335 8.00065 11.3335ZM7.33398 6.00016H8.66732V4.66683H7.33398V6.00016Z",fill:"#2D87F3"}))},te=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(J),a=l.createElement(C.T,{size:"p4",color:I.r.colors.gray400},"mm"),r=t.getInputProps("ultrasoundCRL"),n=t.getInputProps("ultrasoundMSD");return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(f.D,Object.assign({label:l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_ultrasound"))},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),l.createElement(w.H.FormRow,null,l.createElement(s.k,{align:"center",gap:4,mb:4},l.createElement(C.T,{size:"p2",weight:"semiBold"},e("dueDatePage.validation.one_is_required")),l.createElement(c.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},l.createElement(s.k,null,l.createElement(ee,{size:16})))),l.createElement(s.k,{gap:8},l.createElement(E.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},r,{errorProps:{sx:{display:"none"}}})),l.createElement(E.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},n,{errorProps:{sx:{display:"none"}}}))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&l.createElement(C.T,{size:"p4",color:I.r.colors.red500},t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},ae=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(J),a=l.createElement(C.T,{size:"p4",color:I.r.colors.gray400},"mm"),r=t.getInputProps("ultrasoundCRL"),n=t.getInputProps("ultrasoundMSD");return l.createElement(l.Fragment,null,l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_ultrasound")},l.createElement(f.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null})))),l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{width:300,label:l.createElement(s.k,{align:"center",gap:4},l.createElement("span",null,e("dueDatePage.validation.one_is_required")),l.createElement(c.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},l.createElement(s.k,null,l.createElement(ee,{size:16}))))},l.createElement(m.x,null,l.createElement(s.k,{gap:8},l.createElement(E.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},r,{errorProps:{sx:{display:"none"}}})),l.createElement(E.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},n,{errorProps:{sx:{display:"none"}}}))))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&l.createElement(w.H.Error,null,t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},re=()=>{const{t:e}=(0,y.u)(),{form:t}=(0,l.useContext)(J);return l.createElement(w.H.BorderBoxControl,{label:e("dueDatePage.date_of_ultrasound"),rightSection:l.createElement(x.Z,null)},l.createElement(f.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},le=({})=>{const{classes:e={}}=(0,l.useContext)(P.C),{formLayout:t,onSubmit:a,currentUrl:r,submitProps:i}=(0,l.useContext)(S),s=(0,n.rZ)(),{t:c}=(0,y.u)(),m=(0,h.c)({initialValues:{dateOfUltrasound:new Date},validate:e=>{const t=Number(e.ultrasoundCRL),a=Number(e.ultrasoundMSD);if(!t&&!a)return{ultrasoundCRL:c("dueDatePage.validation.record_not_valid")};const r=t>=5&&t<=101,l=a>0&&a<=13;return r||l?{}:t&&!r?{ultrasoundCRL:c("dueDatePage.validation.record_not_valid")}:a&&!l?{ultrasoundMSD:c("dueDatePage.validation.crl")}:void 0}}),d={onSubmit:m.onSubmit((e=>{const{dateOfUltrasound:t,ultrasoundCRL:r,ultrasoundMSD:l}=e,n=`${r}|${l}`,o=[`${H.Q.type}=${O.ultrasound}`,`${H.Q.startDate}=${v()(t).format(H.A)}`,`${H.Q.additional}=${n}`].join("&");a(((e,t)=>{const[a,r]=t.split("|"),[l,n]=[Number(a),Number(r)];return{otherInfo:{method:O.conception+1,measurement_date:(0,u.Z)(e,B),conception_date:null,insemination_date:null,crl_value:l,msd_value:n,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(t,n),o)}))};return l.createElement(J.Provider,{value:{form:m}},l.createElement(w.H,Object.assign({formLayout:t},d),"inline"===t?l.createElement(ae,null):"mb"===s.other.template?l.createElement(re,null):l.createElement(te,null),l.createElement(w.H.FormRow,{className:e.submitWrapper},l.createElement(w.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:(0,o.Z)("due-date-calculate-button",e.submitBtn),type:"submit"},i),c("dueDatePage.lastPeriod.calculate")))))},ne=()=>{const{calculatorType:e}=(0,l.useContext)(S);switch(e){case O.lastPeriod:return l.createElement(K,null);case O.conception:return l.createElement(T,null);case O.IVF:return l.createElement(U,null);case O.IUI:return l.createElement(V,null);case O.ultrasound:return l.createElement(le,null);default:return null}};var oe;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(oe||(oe={}));const ie=(0,l.forwardRef)(((e,t)=>{var{label:a,icon:n}=e,o=(0,r._)(e,["label","icon"]);return l.createElement(m.x,Object.assign({ref:t,sx:{gap:"1rem",display:"flex",padding:"5px 6px",alignItems:"center","&[data-selected]":{backgroundColor:I.r.colors.gray100},"&[data-selected]:hover":{backgroundColor:I.r.colors.gray100},"&[data-hovered]":{backgroundColor:I.r.colors.gray100}},className:""},o),n,l.createElement(C.T,{size:"p4"},a))})),se=e=>{var{locale:t,formLayout:a="default",submitProps:n,currentUrl:o,isMobile:i,onSubmit:s}=e,c=(0,r._)(e,["locale","formLayout","submitProps","currentUrl","isMobile","onSubmit"]);const{t:m}=(0,y.u)(),[u,d]=(0,l.useState)(O.lastPeriod),g=(0,l.useMemo)((()=>(null===F||void 0===F?void 0:F[t].map((e=>{const t=D[e],a=t.icon;return Object.assign(Object.assign({},t),{label:m(t.label),icon:l.createElement(a,{size:20})})})))||[]),[t,m]),h=(0,l.useMemo)((()=>g.find((e=>e.value===String(u)))),[u,g]);return l.createElement(S.Provider,{value:{calculatingMethods:g,submitProps:n,currentUrl:o,isMobile:i,formLayout:a,onSubmit:s,calculatorType:u,setCalculatorType:d}},l.createElement(w.H,Object.assign({component:"div",formLayout:a},c),"default"===a?l.createElement(w.H.FormRow,null,l.createElement(w.H.Control,null,l.createElement(E.S,{label:l.createElement(C.T,{size:"p2",weight:"semiBold"},m("dueDatePage.calculationMethod")),value:String(u),data:g,itemComponent:ie,onChange:e=>d(Number(e)),icon:null===h||void 0===h?void 0:h.icon}))):l.createElement(w.H.FormRow,null,l.createElement(w.H.BorderInlineControl,{label:l.createElement(C.T,{size:"p2",weight:"semiBold"},m("dueDatePage.calculationMethod")),width:300},l.createElement(E.S,{value:String(u),data:g,itemComponent:ie,onChange:e=>d(Number(e))}))),l.createElement(ne,null)))}},141:function(e,t,a){"use strict";a.d(t,{H:function(){return de}});var r=a(22470),l=a(67294),n=a(68589),o=a(15851),i=a(19827);const s=(0,l.createContext)(null),c=s.Provider;var m=a(72647),u=Object.defineProperty,d=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(e,t,a)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))g.call(t,a)&&p(e,a,t[a]);if(d)for(var a of d(t))h.call(t,a)&&p(e,a,t[a]);return e};const v={size:"sm"},E=(0,l.forwardRef)(((e,t)=>{const a=(0,i.N4)("SwitchGroup",v,e),{children:r,value:n,defaultValue:s,onChange:u,size:p,wrapperProps:E}=a,f=((e,t)=>{var a={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&d)for(var r of d(e))t.indexOf(r)<0&&h.call(e,r)&&(a[r]=e[r]);return a})(a,["children","value","defaultValue","onChange","size","wrapperProps"]),[C,y]=(0,o.C)({value:n,defaultValue:s,finalValue:[],onChange:u});return l.createElement(c,{value:{value:C,onChange:e=>{const t=e.currentTarget.value;y(C.includes(t)?C.filter((e=>e!==t)):[...C,t])},size:p}},l.createElement(m.I.Wrapper,b(b({labelElement:"div",size:p,__staticSelector:"SwitchGroup",ref:t},E),f),r))}));E.displayName="@mantine/core/SwitchGroup";var f=a(2566),C=a(44036),y=a(21434),w=Object.defineProperty,x=Object.defineProperties,P=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,D=(e,t,a)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,j=(e,t)=>{for(var a in t||(t={}))I.call(t,a)&&D(e,a,t[a]);if(H)for(var a of H(t))O.call(t,a)&&D(e,a,t[a]);return e};const F={xs:(0,f.h)(16),sm:(0,f.h)(20),md:(0,f.h)(24),lg:(0,f.h)(30),xl:(0,f.h)(36)},B={xs:(0,f.h)(32),sm:(0,f.h)(38),md:(0,f.h)(46),lg:(0,f.h)(56),xl:(0,f.h)(72)},S={xs:(0,f.h)(12),sm:(0,f.h)(14),md:(0,f.h)(18),lg:(0,f.h)(22),xl:(0,f.h)(28)},k={xs:(0,f.h)(5),sm:(0,f.h)(6),md:(0,f.h)(7),lg:(0,f.h)(9),xl:(0,f.h)(11)},M={xs:(0,f.h)(4),sm:(0,f.h)(5),md:(0,f.h)(6),lg:(0,f.h)(8),xl:(0,f.h)(10)};var N=(0,C.k)(((e,{radius:t,color:a,labelPosition:r,error:l},{size:n})=>{const o=(0,y.a)({size:n,sizes:S}),i=(0,y.a)({size:t,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:a}),c=(0,y.a)({size:n,sizes:B}),m=(0,f.h)("xs"===n?1:2),u=e.fn.variant({variant:"filled",color:"red"}).background;return{root:{position:"relative"},input:{height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:(d=j({},e.fn.focusStyles("input:focus + &")),g={cursor:e.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:i,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[2],border:`${(0,f.h)(1)} solid ${l?u:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}`,height:(0,y.a)({size:n,sizes:F}),minWidth:c,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:(0,y.a)({size:n,sizes:k}),fontWeight:600,order:"left"===r?2:1,userSelect:"none",zIndex:0,lineHeight:0,color:"dark"===e.colorScheme?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`,"input:checked + &":{backgroundColor:s.background,borderColor:s.background,color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed",pointerEvents:"none"}},x(d,P(g))),thumb:{position:"absolute",zIndex:1,borderRadius:i,boxSizing:"border-box",display:"flex",backgroundColor:e.white,height:o,width:o,border:`${(0,f.h)(1)} solid ${"dark"===e.colorScheme?e.white:e.colors.gray[3]}`,left:m,transition:`left 150ms ${e.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${o} - ${m})`,borderColor:e.white},"input:disabled + * > &":{borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],backgroundColor:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:`calc(${c} - ${o})`,paddingInline:(0,y.a)({size:n,sizes:M}),marginLeft:`calc(${o} + ${m})`,transition:`margin 150ms ${e.transitionTimingFunction}`,"input:checked + * > &":{marginLeft:0,marginRight:`calc(${o} + ${m})`}}};var d,g})),L=a(12756),T=a(76290),R=Object.defineProperty,z=Object.defineProperties,_=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,W=(e,t,a)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,$=(e,t)=>{for(var a in t||(t={}))V.call(t,a)&&W(e,a,t[a]);if(A)for(var a of A(t))Z.call(t,a)&&W(e,a,t[a]);return e};const G={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},U=(0,l.forwardRef)(((e,t)=>{var a;const r=(0,i.N4)("Switch",G,e),{className:c,color:m,label:u,offLabel:d,onLabel:g,id:h,style:p,size:b,radius:v,wrapperProps:E,children:f,unstyled:C,styles:y,classNames:w,thumbIcon:x,sx:P,checked:H,defaultChecked:I,onChange:O,labelPosition:D,description:j,error:F,disabled:B,variant:S}=r,k=((e,t)=>{var a={};for(var r in e)V.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&A)for(var r of A(e))t.indexOf(r)<0&&Z.call(e,r)&&(a[r]=e[r]);return a})(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled","variant"]),M=(0,l.useContext)(s),R=(null==M?void 0:M.size)||b,{classes:W,cx:U}=N({color:m,radius:v,labelPosition:D,error:!!F},{name:"Switch",classNames:w,styles:y,unstyled:C,size:R,variant:S}),{systemStyles:q,rest:Q}=(0,L.x)(k),Y=(0,n.M)(h),X=M?{checked:M.value.includes(Q.value),onChange:M.onChange}:{},[K,J]=(0,o.C)({value:null!=(a=X.checked)?a:H,defaultValue:I,finalValue:!1});return l.createElement(T.Z,$($({className:U(c,W.root),sx:P,style:p,id:Y,size:(null==M?void 0:M.size)||b,labelPosition:D,label:u,description:j,error:F,disabled:B,__staticSelector:"Switch",classNames:w,styles:y,unstyled:C,"data-checked":X.checked||void 0,variant:S},q),E),l.createElement("input",(ee=$({},Q),te={disabled:B,checked:K,onChange:e=>{M?X.onChange(e):null==O||O(e),J(e.currentTarget.checked)},id:Y,ref:t,type:"checkbox",className:W.input},z(ee,_(te)))),l.createElement("label",{htmlFor:Y,className:W.track},l.createElement("div",{className:W.thumb},x),l.createElement("div",{className:W.trackLabel},K?g:d)));var ee,te}));U.displayName="@mantine/core/Switch",U.Group=E;var q=a(91938),Q=a(23314),Y=a(53515),X=a(83129),K=a(32763),J=a(58499),ee=a(15536),te=a(10917),ae=(0,C.k)((()=>({root:{justifyContent:"flex-start"},group:{display:"flex",alignItems:"stretch",gap:(0,f.h)(8)},item:{flex:"1 1 0px"},icon:{flexShrink:0}})));const re=(0,l.createContext)({}),le=(0,C.k)((()=>({root:{display:"flex",flexDirection:"column",gap:(0,f.h)(8),paddingLeft:16,paddingRight:16,"&:last-child":{paddingBottom:16}}})));var ne=(0,C.k)(((e,{formLayout:t})=>({root:{display:"flex",flexDirection:"column",gap:(0,f.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,f.h)(14)}},"default"===t&&{gap:8})},control:{width:(0,f.h)(180),flexShrink:1,"&.error":{"button, input":{borderColor:e.colors.red[7]}}}})));const oe=(0,C.k)(((e,{formLayout:t})=>{const a="mb"===e.other.template;return{root:Object.assign(Object.assign({minWidth:(0,f.h)(180)},"inline"===t&&{alignSelf:"flex-end",marginTop:(0,f.h)(16)}),"default"===t&&Object.assign({},a&&{alignSelf:"center"}))}})),ie=(0,C.k)((e=>({root:{color:e.colors.gray[6],whiteSpace:"nowrap",paddingRight:(0,f.h)(16)}})));var se=(0,C.k)((()=>({root:{display:"flex",gap:(0,f.h)(8),border:"1px solid #EAEAEC",borderRadius:(0,f.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"}})));var ce=(0,C.k)(((e,{width:t,direction:a})=>{const r="mb"===e.other.template;return{root:{display:"flex",flexDirection:"column",gap:(0,f.h)(8)},row:{display:"flex",flexDirection:a,alignItems:"stretch",justifyContent:"space-between",gap:(0,f.h)(16),minHeight:(0,f.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,f.h)(14),lineHeight:(0,f.h)(22),color:e.colors.gray[6]},content:{display:"flex",alignItems:"center",gap:(0,f.h)(8),input:{backgroundColor:"#fff"}},control:{width:"number"===typeof t?(0,f.h)(t):t,flexShrink:1,input:Object.assign({},r&&{borderRadius:(0,f.h)(12)}),"&.error":{"button, input":{borderColor:e.colors.red[7]}}},error:{color:"red",textAlign:"right"}}}));const me=(0,C.k)((()=>({root:{color:"red",textAlign:"right",width:"auto"}})));var ue=(0,C.k)((e=>{const t="mb"===e.other.template;return{root:{label:Object.assign({},t&&{color:te.r.mbColors.midGray,fontSize:(0,f.h)(12),fontWeight:"normal"})}}}));const de=e=>{var{children:t,formLayout:a,styles:n,classNames:o,className:i,component:s="form"}=e,c=(0,r._)(e,["children","formLayout","styles","classNames","className","component"]);const m=a||"default",{classes:u,cx:d}=ne({formLayout:m},{name:"HealthToolFormWrapper",styles:n,classNames:o});return l.createElement(re.Provider,{value:{formLayout:m}},l.createElement(q.x,Object.assign({component:s,className:d(i,u.root)},c),t))};de.Control=e=>{var{className:t,styles:a,classNames:n}=e,o=(0,r._)(e,["className","styles","classNames"]);const{classes:i,cx:s}=ue(void 0,{name:"HealthToolFormWrapper__Control",styles:a,classNames:n});return l.createElement(q.x,Object.assign({className:s(t,i.root)},o))},de.BorderInlineControl=({label:e,children:t,styles:a,classNames:r,direction:n="row",width:o=180,errorMess:i})=>{const{classes:s}=ce({width:o,direction:n},{name:"HealthToolFormWrapper__BorderInlineControl",styles:a,classNames:r});return l.createElement(q.x,{className:s.root},l.createElement(q.x,{className:s.row},l.createElement(q.x,{className:s.labelWrapper},e&&l.createElement("label",{className:s.label,htmlFor:"gender"},e)),l.createElement(q.x,{className:s.content},(0,ee.Z)(t).map(((e,t)=>l.createElement(q.x,{key:t,className:s.control},e))))),i&&l.createElement(X.T,{size:"p4",className:s.error},i))},de.BorderBoxControl=e=>{var{label:t,rightSection:a,children:n,styles:o,className:i,classNames:s}=e,c=(0,r._)(e,["label","rightSection","children","styles","className","classNames"]);const{classes:m,cx:u}=se(void 0,{name:"HealthToolFormWrapper__BorderBoxControl",styles:o,classNames:s});return l.createElement(q.x,Object.assign({className:u(m.root,i)},c),l.createElement(q.x,{className:m.info},t&&l.createElement(X.T,{size:"n1",as:"label",className:m.label},t),l.createElement(q.x,{className:m.content},l.isValidElement(n)?l.cloneElement(n,Object.assign(Object.assign({},n.props),{size:"sm",error:null})):null)),a&&l.createElement(q.x,{className:m.rightSection},"string"===typeof a?l.createElement(X.T,{size:"p4"},a):l.isValidElement(a)?l.cloneElement(a,{size:24}):null))},de.Error=e=>{var{styles:t,classNames:a,className:n}=e,o=(0,r._)(e,["styles","classNames","className"]);const{classes:i,cx:s}=me(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return l.createElement(X.T,Object.assign({size:"p4",className:s(n,i.root)},o))},de.FormRow=e=>{var{styles:t,classNames:a,className:n,children:o}=e,i=(0,r._)(e,["styles","classNames","className","children"]);const{classes:s,cx:c}=le(void 0,{name:"HealthToolFormWrapper__FormRow",styles:t,classNames:a});return l.createElement(q.x,Object.assign({className:c(n,s.root)},i),o)},de.Submit=e=>{var{styles:t,classNames:a,className:n}=e,o=(0,r._)(e,["styles","classNames","className"]);const{formLayout:i}=(0,l.useContext)(re),{classes:s,cx:c}=oe({formLayout:i},{name:"HealthToolFormWrapper__SubmitBtn",styles:t,classNames:a});return l.createElement(K.B,Object.assign({className:c("submit-btn",n,s.root)},o,{variant:"primary",size:"md"}))},de.Unit=e=>{var{styles:t,classNames:a,className:n}=e,o=(0,r._)(e,["styles","classNames","className"]);const{classes:i,cx:s}=ie(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return l.createElement(X.T,Object.assign({size:"p4",className:s(n,i.root)},o))},de.Switching=e=>{var{label:t}=e,a=(0,r._)(e,["label"]);const{t:n}=(0,J.u)(),o="mb"===(0,i.rZ)().other.template;return l.createElement(Y.k,{gap:(0,f.h)(4),sx:()=>({justifyContent:"space-between",alignItems:"center"})},t&&l.createElement(X.T,{size:o?"p4":"s4",color:"gray.6"},t),l.createElement(U,Object.assign({labelPosition:"left",onLabel:n("switchBtn.yes"),offLabel:n("switchBtn.no")},a,{styles:e=>({trackLabel:{fontSize:(0,f.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"}}})})))},de.ChipGroup=e=>{var{data:t=[],label:a,isMobile:n,layout:o="horizonal",classNames:i,styles:s}=e,c=(0,r._)(e,["data","label","isMobile","layout","classNames","styles"]);const{classes:u,theme:d}=ae(void 0,{name:"ChipGroup",classNames:i,styles:s}),g="mb"===d.other.template,h=n?48:g||"vertical"===o?32:18;return l.createElement(q.x,null,l.createElement(m.I.Wrapper,{label:a&&l.createElement(X.T,{size:"p3",weight:"semiBold"},a)},l.createElement(Q.A.Group,Object.assign({},c),l.createElement(q.x,{className:u.group},t.map(((e,t)=>l.createElement(Q.A,{className:u.item,key:t,value:String(e.value),styles:{iconWrapper:{display:"none"},label:{width:"100%",borderRadius:(0,f.h)(g?12:8),padding:0,border:`1px solid ${g?"#EAEAEC":d.colors.neutral[2]}`,height:"100%","&[data-checked]":{padding:0,backgroundColor:g?"#FFE9F1":d.colors.blue[0],border:`1px solid ${g?"#F5B4CB":d.colors.blue[1]}`},[d.fn.smallerThan("sm")]:{alignItems:"flex-start"}}}},l.createElement(q.x,{sx:Object.assign(Object.assign(Object.assign({width:"100%",display:"flex",gap:(0,f.h)(g?2:8),padding:"8px 16px 8px 12px",justifyContent:"center",alignItems:"center"},g&&{flexDirection:"column"}),"vertical"===o&&{flexDirection:"column",padding:"16px 8px 8px"}),{[d.fn.smallerThan("sm")]:{flexDirection:"column",padding:"16px 8px 8px"}})},l.isValidElement(e.icon)?l.cloneElement(e.icon,{size:h,isMarryBaby:g,className:u.icon}):null,l.createElement(X.T,{size:"p4",styles:{root:Object.assign(Object.assign({},g&&{textAlign:"center"}),{whiteSpace:"normal",[d.fn.smallerThan("sm")]:{fontSize:(0,f.h)(12),lineHeight:(0,f.h)(18),textAlign:"center"}})}},e.label)))))))))}},18519:function(e,t,a){"use strict";a.d(t,{P:function(){return w}});var r=a(22470),l=a(67294),n=a(19827),o=a(86010),i=a(9713),s=a(75762),c=a(65148),m=a(58499),u=a(26775),d=a(67128),g=a(83129),h=a(97629),p=a(141),b=a(66663),v=a(78577);const E=(0,l.createContext)({}),f=e=>{var t=(0,r._)(e,[]);const{t:a,locale:i}=(0,m.u)(),{linkTool:s,form:c,submitProps:u}=(0,l.useContext)(E),{classes:f={}}=(0,l.useContext)(h.C),C="mb"===(0,n.rZ)().other.template;return l.createElement(p.H,Object.assign({formLayout:"default"},t),l.createElement(p.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weekInput")),min:b.I.pregnantWeek.min,max:b.I.pregnantWeek.max,placeholder:`${b.I.pregnantWeek.min} - ${b.I.pregnantWeek.max}`},c.getInputProps("pregnantWeek")))),l.createElement(p.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightBeforeInput")),min:b.I.weight.min,max:b.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},c.getInputProps("lastWeight")))),l.createElement(p.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.heightInput")),min:b.I.height.min,max:b.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"})},c.getInputProps("height")))),l.createElement(p.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightInput")),min:b.I.weight.min,max:b.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},c.getInputProps("weight")))),l.createElement(p.H.FormRow,null,l.createElement(p.H.Switching,Object.assign({label:l.createElement(g.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.havingTwins"))},c.getInputProps("hasTwin")))),l.createElement(p.H.FormRow,{className:f.submitWrapper},l.createElement(p.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${v.v[C?"vi-VN_MB":i]}/${s}`,className:(0,o.Z)("due-date-calculate-button",f.submitBtn)},u),a("dueDatePage.lastPeriod.calculate"))))},C=e=>{var t=(0,r._)(e,[]);const{t:a,locale:i}=(0,m.u)(),{classes:s={}}=(0,l.useContext)(h.C),{linkTool:c,form:u,submitProps:g}=(0,l.useContext)(E),f="mb"===(0,n.rZ)().other.template;return l.createElement(p.H,Object.assign({formLayout:"inline"},t),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderInlineControl,{label:a("pregnancyWeightGain.weekInput")},l.createElement(d.I.Number,Object.assign({min:b.I.pregnantWeek.min,max:b.I.pregnantWeek.max,placeholder:`${b.I.pregnantWeek.min} - ${b.I.pregnantWeek.max}`,rightSection:l.createElement(p.H.Unit,null,a("pwgForm.week"))},u.getInputProps("pregnantWeek"))))),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightBeforeInput")},l.createElement(d.I.Number,Object.assign({},u.getInputProps("lastWeight"),{min:b.I.weight.min,max:b.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:l.createElement(p.H.Unit,null,a("babyGrowth.kg"))})))),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderInlineControl,{label:a("pregnancyWeightGain.heightInput")},l.createElement(d.I.Number,Object.assign({},u.getInputProps("height"),{min:b.I.height.min,max:b.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"}),rightSection:l.createElement(p.H.Unit,null,a("babyGrowth.cm"))})))),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightInput")},l.createElement(d.I.Number,Object.assign({},u.getInputProps("weight"),{min:b.I.weight.min,max:b.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:l.createElement(p.H.Unit,null,a("babyGrowth.kg"))})))),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderInlineControl,{label:a("pregnancyWeightGain.havingTwins"),width:"none"},l.createElement(p.H.Switching,Object.assign({},u.getInputProps("hasTwin"))))),l.createElement(p.H.FormRow,{className:s.submitWrapper},l.createElement(p.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${v.v[f?"vi-VN_MB":i]}/${c}`,className:(0,o.Z)("due-date-calculate-button",s.submitBtn)},g),a("dueDatePage.lastPeriod.calculate"))))},y=e=>{var t=(0,r._)(e,[]);const{t:a,locale:o}=(0,m.u)(),{linkTool:i,form:s,submitProps:c}=(0,l.useContext)(E),u="mb"===(0,n.rZ)().other.template;return l.createElement(p.H,Object.assign({formLayout:"inline"},t),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderBoxControl,{label:a("pregnancyWeightGain.weekInput"),rightSection:a("pregnancy.week")},l.createElement(d.I.Number,Object.assign({min:b.I.pregnantWeek.min,max:b.I.pregnantWeek.max,placeholder:`${b.I.pregnantWeek.min} - ${b.I.pregnantWeek.max}`},s.getInputProps("pregnantWeek")))),s.errors.pregnantWeek&&l.createElement(p.H.Error,null,s.errors.pregnantWeek)),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightBeforeInput"),rightSection:"kg"},l.createElement(d.I.Number,Object.assign({min:b.I.weight.min,max:b.I.weight.max},s.getInputProps("lastWeight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),s.errors.lastWeight&&l.createElement(p.H.Error,null,s.errors.lastWeight)),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderBoxControl,{label:a("pregnancyWeightGain.heightInput"),rightSection:"cm"},l.createElement(d.I.Number,Object.assign({min:b.I.height.min,max:b.I.height.max},s.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"})}))),s.errors.height&&l.createElement(p.H.Error,null,s.errors.height)),l.createElement(p.H.FormRow,null,l.createElement(p.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightInput"),rightSection:"kg"},l.createElement(d.I.Number,Object.assign({min:b.I.weight.min,max:b.I.weight.max},s.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),s.errors.weight&&l.createElement(p.H.Error,null,s.errors.weight)),l.createElement(p.H.Switching,Object.assign({label:a("pregnancyWeightGain.havingTwins")},s.getInputProps("hasTwin"))),l.createElement(p.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${v.v[u?"vi-VN_MB":o]}/${i}`,className:"due-date-calculate-button"},c),a("dueDatePage.lastPeriod.calculate")))},w=e=>{var{formLayout:t="default",submitProps:a,onSubmit:o}=e,d=(0,r._)(e,["formLayout","submitProps","onSubmit"]);const{t:g,locale:h}=(0,m.u)(),p="mb"===(0,n.rZ)().other.template,b=(0,i.c)({validate:{pregnantWeek:(0,s.U)(g("validation.error.requiredField")),height:(0,s.U)(g("validation.error.requiredField")),weight:(e,t)=>e?Number(e)>=Number(t.lastWeight)?null:g("pregnancyWeightGain.weightInput.error"):g("validation.error.requiredField"),lastWeight:(e,t)=>e?Number(e)v(u.H.PWG)),[v]),x=Object.assign({onSubmit:b.onSubmit(o)},d);return l.createElement(E.Provider,{value:{linkTool:w,form:b,submitProps:a}},"inline"===t?l.createElement(C,Object.assign({},x)):p?l.createElement(y,Object.assign({formLayout:t},x)):l.createElement(f,Object.assign({},x)))}},18551:function(e,t,a){"use strict";a.d(t,{H:function(){return I},T:function(){return w}});var r=a(22470),l=a(67294),n=a(44036),o=a(2566),i=a(19827),s=a(91938),c=a(53515),m=a(34261),u=a(76623),d=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l{var{size:t,color:a=u.SQ}=e,r=d(e,["size","color"]);const n=(0,u.jd)(t);return l.createElement("svg",Object.assign({width:n,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l.createElement("path",{d:"m6.79 3.107-4.823 8.352a1.398 1.398 0 0 0 1.21 2.097h9.645a1.398 1.398 0 0 0 1.21-2.097l-4.82-8.352a1.398 1.398 0 0 0-2.422 0M8 5.778v3.11",stroke:a,"stroke-linecap":"round","stroke-linejoin":"round"}),l.createElement("path",{d:"M8 12.061a.89.89 0 0 1 0-1.778.89.89 0 0 1 0 1.778",fill:a}))},h=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l{var{size:t=14,color:a=u.SQ,activeColor:r=u.SK,isActive:n}=e,o=h(e,["size","color","activeColor","isActive"]);return l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("circle",{cx:"7",cy:"7",r:"7",fill:"#FF6F4D"}),l.createElement("circle",{cx:"7",cy:"7",r:"6.125",fill:"#D84023"}),l.createElement("path",{d:"M8.60417 5.83333C8.36254 5.83333 8.16667 5.63746 8.16667 5.39583V3.9375C8.16667 3.69588 7.97079 3.5 7.72917 3.5H6.27083C6.02921 3.5 5.83333 3.69588 5.83333 3.9375V5.39583C5.83333 5.63746 5.63746 5.83333 5.39583 5.83333H3.9375C3.69588 5.83333 3.5 6.02921 3.5 6.27083V7.72917C3.5 7.97079 3.69588 8.16667 3.9375 8.16667H5.39583C5.63746 8.16667 5.83333 8.36254 5.83333 8.60417V10.0625C5.83333 10.3041 6.02921 10.5 6.27083 10.5H7.72917C7.97079 10.5 8.16667 10.3041 8.16667 10.0625V8.60417C8.16667 8.36254 8.36254 8.16667 8.60417 8.16667H10.0625C10.3041 8.16667 10.5 7.97079 10.5 7.72917V6.27083C10.5 6.02921 10.3041 5.83333 10.0625 5.83333H8.60417Z",fill:"white"}))},b=a(83129),v=a(51139),E=a(58499),f=a(36308),C=a(97629);const y=(0,n.k)(((e,{isRevamp:t,isPregTool:a,bannerColor:r,isMarryBaby:l})=>({wrapper:{position:"relative",width:"100%",height:"100%",display:"flex",gap:(0,o.h)(24),alignItems:"center",justifyContent:"space-between",padding:(0,o.h)(16),[e.fn.smallerThan("sm")]:{gap:(0,o.h)(12)}},container:{width:"100%",backgroundColor:r||(l?e.colors.mb[1]:a?e.colors.pink[1]:e.colors.blue[1]),position:"relative",display:"flex",gap:24,alignItems:"center",justifyContent:"space-between",padding:(0,o.h)(16),[e.fn.smallerThan("sm")]:{padding:`${(0,o.h)(12)} ${(0,o.h)(16)}`},a:{textDecoration:"none",color:"inherit"},'&[data-site="marryBaby"]':{a:{textDecoration:"underline"},[f.M.mbDown]:{paddingBottom:0}},[f.M.tdDown]:{height:"auto",".hhgcomp-toolbanner-wrapper":{".hhgcomp-toolbanner-inner":{display:"flex",alignItems:"center",[f.M.mbDown]:{justifyContent:"space-between"},".hhgcomp-toolbanner-iconcontainer":{position:"relative",right:(0,o.h)(-50),bottom:(0,o.h)(-20),width:(0,o.h)(110),minWidth:0,height:"auto",minHeight:0,alignSelf:"flex-end",marginBottom:(0,o.h)(-20),[f.M.mbDown]:{right:"unset"}}}}},".embedded-review":{gap:(0,o.h)(12),display:"flex",alignItems:"center"},".embedded-review__avatar":{position:"relative",minWidth:(0,o.h)(32),img:{width:(0,o.h)(32),height:(0,o.h)(32),display:"block",borderRadius:"100%"},svg:{bottom:0,right:0,position:"absolute"}}},headingWrapper:{display:"flex",flexDirection:"column",gap:t?(0,o.h)(8):0,[e.fn.smallerThan("sm")]:{gap:4}},avatarWrapper:{position:"relative",img:{maxWidth:(0,o.h)(48),maxHeight:(0,o.h)(48)},".embedded-review__avatar":{position:"relative"}},reviewText:{a:{textDecoration:"underline",textUnderlineOffset:"2px"}},iconWrapper:{display:"flex",justifyContent:"center",alignItems:"center",width:(0,o.h)(80),height:(0,o.h)(80),borderRadius:"50%",backgroundColor:"#fff",flexShrink:0,img:{maxWidth:(0,o.h)(48),maxHeight:(0,o.h)(48)},[e.fn.smallerThan("sm")]:{width:(0,o.h)(64),height:(0,o.h)(64),img:{maxWidth:(0,o.h)(40),maxHeight:(0,o.h)(40)}}},heading:{},disclaimerIcon:{flexShrink:0}}))),w=e=>{var{className:t,classNames:a,heading:n,bannerColor:o,medicalReview:m={link:"#",reviewer:"",date:""},icon:u,style:d,isPregTool:h,isRevamp:v,disclaimer:f,styles:C}=e,w=(0,r._)(e,["className","classNames","heading","bannerColor","medicalReview","icon","style","isPregTool","isRevamp","disclaimer","styles"]);const{t:x}=(0,E.u)(),P=(0,i.rZ)(),H="mb"===P.other.template,I=H?"marryBaby":"helloSites",{classes:O,cx:D}=y({isRevamp:v,isPregTool:h,bannerColor:o,isMarryBaby:H},{name:"ToolsBannerCard",styles:C,classNames:a}),j=(null===m||void 0===m?void 0:m.reviewer)?l.createElement(b.T,{size:"label2",as:"div",className:O.reviewText},m.avatar&&l.createElement("div",{className:"embedded-review__avatar"},l.createElement(s.x,{className:O.avatarWrapper},l.createElement("img",{src:m.avatar,alt:m.reviewer,loading:"lazy"}),l.createElement(p,{size:14}))),l.createElement("div",{dangerouslySetInnerHTML:{__html:x("toolPage.toolReviewer",{expert_name:`${m.reviewer.trim()}`,date:m.date})}})):null;return l.createElement(s.x,Object.assign({className:D(t,O.container),style:d,"data-site":I},w),l.createElement(c.k,{className:O.headingWrapper},l.createElement(b.T,{className:D(O.heading,"heading"),size:"h4",as:"h2"},n),j&&l.createElement(b.T,{size:"n1"},j),f&&l.createElement(c.k,{gap:4},l.createElement(g,{size:16,color:P.colors.yellow[8],className:O.disclaimerIcon}),l.createElement(b.T,{size:"c1",variant:"secondary"},f))),l.createElement(c.k,{className:O.iconWrapper},u))};var x=(0,n.k)((()=>({root:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}})));var P=(0,n.k)((e=>({root:{paddingTop:16,borderRadius:"inherit",[e.fn.smallerThan("sm")]:{paddingTop:8}}})));var H=(0,n.k)(((e,{isPregTool:t,variant:a})=>{const r="mb"===e.other.template;return{root:Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",borderRadius:(0,o.h)(r?16:8)},"default"===a&&{backgroundColor:"#fff",border:`1px solid ${r?e.colors.mb[2]:t?e.colors.pink[1]:e.colors.blue[2]}`}),"gray"===a&&{backgroundColor:e.colors.neutral[0]}),"violet"===a&&{backgroundColor:e.colors.violet[0]}),submitBtn:{},bodyWrapper:{},scrollAreaWrapper:{},bannerWrapper:Object.assign(Object.assign({},"gray"===a&&{backgroundColor:"transparent",padding:`${(0,o.h)(16)} ${(0,o.h)(16)} 0`}),"violet"===a&&{backgroundColor:"transparent",padding:`${(0,o.h)(16)} ${(0,o.h)(16)} 0`}),bannerHeading:Object.assign({},("gray"===a||"violet"===a)&&{fontSize:(0,o.h)(20),lineHeight:(0,o.h)(28),fontWeight:v.F.semiBold,[e.fn.smallerThan("sm")]:{fontSize:(0,o.h)(17),lineHeight:(0,o.h)(24)}}),bannerReviewText:Object.assign({},("gray"===a||"violet"===a)&&{fontSize:(0,o.h)(14),lineHeight:(0,o.h)(22),[e.fn.smallerThan("sm")]:{fontSize:(0,o.h)(12),lineHeight:(0,o.h)(18)}}),submitWrapper:Object.assign(Object.assign({[e.fn.smallerThan("sm")]:{button:{width:"100%"}},[e.fn.largerThan("sm")]:{textAlign:"right"}},"gray"===a&&{backgroundColor:e.colors.neutral[0],button:{marginTop:10}}),"violet"===a&&{backgroundColor:e.colors.violet[0],button:{marginTop:10}}),newsletterBlock:Object.assign(Object.assign({},"gray"===a&&{backgroundColor:e.colors.neutral[0]}),"violet"===a&&{backgroundColor:e.colors.violet[0]})}}));const I=e=>{var{children:t,styles:a,classNames:n,className:o,isPregTool:i,variant:c="default",hasBodyScroll:m}=e,u=(0,r._)(e,["children","styles","classNames","className","isPregTool","variant","hasBodyScroll"]);const{classes:d,cx:g}=H({isPregTool:i,variant:c},{name:"HealthToolCardWrapper",styles:a,classNames:n});return l.createElement(v.T,{variant:v.C.LEADGEN},l.createElement(C.C.Provider,{value:{isPregTool:i,classes:d,variant:c,hasBodyScroll:m}},l.createElement(s.x,Object.assign({className:g(o,d.root)},u),t)))};I.Body=e=>{var{children:t,className:a,styles:n,classNames:o}=e,i=(0,r._)(e,["children","className","styles","classNames"]);const{classes:c,hasBodyScroll:u}=(0,l.useContext)(C.C),{classes:d,cx:g}=P(void 0,{name:"HealthToolCardWrapper__Body",styles:n,classNames:o});return l.createElement(s.x,Object.assign({className:g(a,d.root,c.bodyWrapper)},i),u?l.createElement(m.x,{h:"100%",type:"auto",scrollbarSize:8,className:c.scrollAreaWrapper},t):t)},I.Banner=e=>{var{className:t,classNames:a,styles:n}=e,o=(0,r._)(e,["className","classNames","styles"]);const{classes:i}=(0,l.useContext)(C.C),{isPregTool:s}=(0,l.useContext)(C.C),{classes:c,cx:m}=x(void 0,{name:"HealthToolCardWrapper__Banner",classNames:a,styles:n});return l.createElement(w,Object.assign({isPregTool:s,classNames:{container:i.bannerWrapper,heading:i.bannerHeading,reviewText:i.bannerReviewText},className:m(t,c.root)},o))}},64221:function(e,t,a){"use strict";a.d(t,{B:function(){return p}});var r=a(22470),l=a(67294),n=a(44036),o=a(2566),i=a(91938),s=a(86010),c=a(83129),m=a(32763),u=a(58499),d=a(97629),g=a(141),h=(0,n.k)(((e,{hasOnClickFn:t})=>({root:{position:"relative",display:"flex",flexDirection:"column",gap:(0,o.h)(16)},sponsorBox:{display:"flex",gap:(0,o.h)(12),alignItems:"center",backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[1]}`,borderRadius:(0,o.h)(4),padding:"4px 12px",alignSelf:"flex-start"},sponsorLogo:{maxHeight:(0,o.h)(32)},btn:{minWidth:(0,o.h)(180),[e.fn.largerThan("sm")]:{alignSelf:"flex-end"},visibility:t?"visible":"hidden"}})));const p=e=>{var{babyPoopPage:t,onClickFindOut:a,currentUrl:n,sponsorLogo:o,btnProps:p,styles:b,classNames:v}=e,E=(0,r._)(e,["babyPoopPage","onClickFindOut","currentUrl","sponsorLogo","btnProps","styles","classNames"]);const{t:f}=(0,u.u)(),{classes:C}=h({hasOnClickFn:Boolean(a)},{name:"BabyPoopForm",styles:b,classNames:v}),{classes:y={}}=(0,l.useContext)(d.C);return l.createElement(g.H.FormRow,null,l.createElement(i.x,Object.assign({className:C.root},E),o&&l.createElement(i.x,{className:C.sponsorBox},l.createElement(c.T,{size:"p4"},f("common.sponsoredBy")),l.createElement("img",{loading:"lazy",src:o,alt:"sponsor",className:C.sponsorLogo})),l.createElement(c.T,{size:"p3",as:"div",className:"description",dangerouslySetInnerHTML:{__html:t.description}}),l.createElement(m.B,Object.assign({className:(0,s.Z)(C.btn,y.submitBtn),onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:n},p),f("babyPoop.findOut"))))}},74725:function(e,t,a){"use strict";a.d(t,{T:function(){return y}});var r=a(22470),l=a(67294),n=a(9713),o=a(75762),i=a(65148),s=a(58499),c=a(43125),m=a(26775),u=a(51320),d=a(67128),g=a(15456),h=a(83129),p=a(97629),b=a(141),v=a(78577);const E=(0,l.createContext)({}),f=e=>{var t,a=(0,r._)(e,[]);const{t:n,locale:o}=(0,s.u)(),{isAdult:i,activeValueNote:c,linkTool:m,form:f,submitProps:C}=(0,l.useContext)(E),{classes:y={}}=(0,l.useContext)(p.C);return l.createElement(b.H,Object.assign({formLayout:"default"},a),l.createElement(b.H.FormRow,null,l.createElement(u.G,Object.assign({},f.getInputProps("gender")))),l.createElement(b.H.FormRow,null,l.createElement(g.D,Object.assign({},f.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:l.createElement(h.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.ageInput")),maxDate:new Date}))),l.createElement(b.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(h.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.heartRateInput")),placeholder:n("tools.inputPlaceholder",{content:"60"})},f.getInputProps("heartRate"),{min:40,max:200,styles:()=>({rightSection:{width:"auto"}})}))),i&&l.createElement(b.H.FormRow,null,l.createElement(d.S,Object.assign({label:l.createElement(h.T,{size:"p2",weight:"semiBold"},n("targetHeartRate.selectActive")),defaultValue:null===(t=null===c||void 0===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},f.getInputProps("activeValue")))),l.createElement(b.H.FormRow,{className:y.submitWrapper},l.createElement(b.H.Submit,Object.assign({className:y.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${v.v[o]}/${m}`},C),n("bmi.submit"))))},C=e=>{var t,a=(0,r._)(e,[]);const{t:n,locale:o}=(0,s.u)(),{isAdult:i,activeValueNote:c,linkTool:m,form:h,submitProps:f}=(0,l.useContext)(E),{classes:C={}}=(0,l.useContext)(p.C);return l.createElement(b.H,Object.assign({formLayout:"inline"},a),l.createElement(b.H.FormRow,null,l.createElement(b.H.BorderInlineControl,{label:n("tools.selectGender"),width:"none"},l.createElement(u.G,Object.assign({type:"radio",hideLabel:!0,error:null},h.getInputProps("gender")))),h.errors.gender&&l.createElement(b.H.Error,null,h.errors.gender)),l.createElement(b.H.FormRow,null,l.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.ageInput")},l.createElement(g.D,Object.assign({},h.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},error:null,maxDate:new Date}))),h.errors.age&&l.createElement(b.H.Error,null,h.errors.age)),l.createElement(b.H.FormRow,null,l.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.heartRateInput")},l.createElement(d.I.Number,Object.assign({placeholder:n("tools.inputPlaceholder",{content:"60"})},h.getInputProps("heartRate"),{error:null,min:40,max:200,rightSection:l.createElement(b.H.Unit,null,"bmp"),styles:()=>({rightSection:{width:"auto"}})}))),h.errors.heartRate&&l.createElement(b.H.Error,null,h.errors.heartRate)),i&&l.createElement(b.H.FormRow,null,l.createElement(b.H.BorderInlineControl,{label:n("targetHeartRate.selectActive")},l.createElement(d.S,Object.assign({defaultValue:null===(t=null===c||void 0===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},h.getInputProps("activeValue"))))),l.createElement(b.H.FormRow,{className:C.submitWrapper},l.createElement(b.H.Submit,Object.assign({className:C.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${v.v[o]}/${m}`},f),n("bmi.submit"))))},y=e=>{var{formLayout:t,onSubmit:a,onError:u,submitProps:d}=e,g=(0,r._)(e,["formLayout","onSubmit","onError","submitProps"]);const{t:h,locale:p}=(0,s.u)(),b=(0,l.useRef)(40),{getHealthToolLink:v}=(0,i.u)(p),y=(0,n.c)({initialValues:{heartRate:60,activeValue:"low_intensity"},validate:{gender:(0,o.U)(h("validation.error.requiredField")),age:(0,o.U)(h("validation.error.requiredField")),heartRate:e=>Number(e)>=b.current&&Number(e)<=200?null:h("tools.heartRateRangeErr",{min:b.current,max:200})}}),w=(0,l.useMemo)((()=>v(m.H.THR)),[v]),[x,P]=(0,l.useState)(!1),H=[{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}],I=[{value:"low_intensity",label:h("targetHeartRate.lowIntensity.title"),image:c.C.getAssetPath("/low.svg"),imageActive:c.C.getAssetPath("/low-active.svg"),content:h("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:h("targetHeartRate.moderateIntensity.title"),image:c.C.getAssetPath("/moderate.svg"),imageActive:c.C.getAssetPath("/moderate-active.svg"),content:h("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:h("targetHeartRate.aerobicZone.title"),image:c.C.getAssetPath("/aerobic.svg"),imageActive:c.C.getAssetPath("/aerobic-active.svg"),content:h("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:h("targetHeartRate.vigorousIntensity.title"),image:c.C.getAssetPath("/vigorous.svg"),imageActive:c.C.getAssetPath("/vigorous-active.svg"),content:h("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:h("targetHeartRate.maximumIntensity.title"),image:c.C.getAssetPath("/maximum.svg"),imageActive:c.C.getAssetPath("/maximum-active.svg"),content:h("targetHeartRate.maximumIntensity.note")}];(0,l.useEffect)((()=>{const e=y.getInputProps("age").value,t=y.getInputProps("gender").value;if(e instanceof Date){const a=((new Date).getTime()-e.getTime())/1e3;P(a>=567648e3);const r=H.find((e=>a>=365*e.minAge*24*60*60&&a<365*e.maxAge*24*60*60))||H[0];b.current="male"===t?r.rangeMale:r.rangeFemale}}),[y]);const O=Object.assign(Object.assign({},g),{onSubmit:y.onSubmit(a,u)});return l.createElement(E.Provider,{value:{isAdult:x,activeValueNote:I,linkTool:w,form:y,submitProps:d}},"inline"===t?l.createElement(C,Object.assign({},O)):l.createElement(f,Object.assign({},O)))}},51320:function(e,t,a){"use strict";a.d(t,{G:function(){return f}});var r=a(22470),l=a(67294),n=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l{var{size:t=40}=e,a=n(e,["size"]);return l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 41 40",fill:"none"},a),l.createElement("circle",{cx:"20.5",cy:"20",r:"20",fill:"#E0E9FB"}),l.createElement("path",{d:"M26.92 21.285h-.15a6.5 6.5 0 0 0-6.35-5.14 6.5 6.5 0 0 0-6.35 5.14h-.151a1.961 1.961 0 0 0-1.965 1.965c0 1.089.876 1.966 1.965 1.966h.529a6.502 6.502 0 0 0 11.943 0h.53a1.961 1.961 0 0 0 1.965-1.966 1.961 1.961 0 0 0-1.965-1.965Zm-6.5-10.431a1.965 1.965 0 1 0 0 3.93 1.965 1.965 0 0 0 0-3.93Z",fill:"#fff"}),l.createElement("path",{d:"M20.42 15.238a2.426 2.426 0 0 1-2.42-2.42 2.426 2.426 0 0 1 2.42-2.418 2.426 2.426 0 0 1 2.419 2.419 2.426 2.426 0 0 1-2.42 2.419Zm0-3.931c-.832 0-1.512.68-1.512 1.512 0 .831.68 1.512 1.512 1.512.831 0 1.511-.68 1.511-1.512s-.68-1.512-1.511-1.512Z",fill:"#202135"}),l.createElement("path",{d:"M14.07 18.64c0-3.463 2.812-4.763 6.274-4.763s6.274 1.3 6.274 4.762",fill:"#FFF9EB"}),l.createElement("path",{d:"M25.71 19.093a.445.445 0 0 1-.453-.454c0-1.36-.574-2.298-1.768-2.842a.46.46 0 0 1-.227-.605.46.46 0 0 1 .604-.226c1.512.695 2.299 1.965 2.299 3.673a.445.445 0 0 1-.454.454Z",fill:"#E55C8A"}),l.createElement("path",{d:"M17.396 22.645a.605.605 0 1 0 0 1.21.605.605 0 0 0 0-1.21Zm6.047 0a.605.605 0 1 0 0 1.21.605.605 0 0 0 0-1.21Z",fill:"#202135"}),l.createElement("path",{d:"M26.165 18.261H14.825c-.832 0-1.512.68-1.512 1.512s.68 1.512 1.512 1.512h11.338c.832 0 1.512-.68 1.512-1.512 0-.831-.68-1.512-1.511-1.512Z",fill:"#E55C8A"}),l.createElement("path",{d:"M27.722 20.968c.257-.333.408-.741.408-1.195 0-.77-.438-1.436-1.089-1.753-.287-2.933-2.69-4.596-6.697-4.596-4.082 0-6.516 1.738-6.712 4.792a1.962 1.962 0 0 0 1.194 3.522h12.095c.831 0 1.511.68 1.511 1.512s-.68 1.512-1.511 1.512h-.53a.465.465 0 0 0-.423.272 6.029 6.029 0 0 1-5.548 3.659 6.024 6.024 0 0 1-5.564-3.674.457.457 0 0 0-.56-.257h-.377c-.832 0-1.512-.68-1.512-1.512 0-.347.106-.665.333-.937a.454.454 0 0 0-.076-.635.454.454 0 0 0-.635.076 2.35 2.35 0 0 0-.529 1.496 2.426 2.426 0 0 0 2.419 2.42h.242a6.945 6.945 0 0 0 6.259 3.93 6.928 6.928 0 0 0 6.259-3.93h.242a2.426 2.426 0 0 0 2.418-2.42c0-1.058-.68-1.95-1.617-2.282Zm-7.378-6.637c1.996 0 5.246.468 5.76 3.477H14.826c-.076 0-.166 0-.242.015.499-3.009 3.75-3.492 5.76-3.492Zm-5.518 6.5c-.59 0-1.058-.468-1.058-1.058 0-.59.468-1.058 1.058-1.058h11.339c.59 0 1.058.469 1.058 1.058 0 .59-.469 1.058-1.058 1.058H14.826Z",fill:"#202135"}),l.createElement("path",{d:"M20.42 27.181a.446.446 0 0 1-.454-.453c0-.257.197-.454.454-.454.302 0 .574-.106.77-.317a.452.452 0 0 1 .636-.015.452.452 0 0 1 .015.634 1.943 1.943 0 0 1-1.421.605Z",fill:"#202135"}))},i=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l{var{size:t=40}=e,a=i(e,["size"]);return l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 41 40",fill:"none"},a),l.createElement("circle",{cx:"20.5",cy:"20",r:"20",fill:"#FFEAF1"}),l.createElement("path",{d:"M20.225 10.857a1.981 1.981 0 1 0 0 3.962 1.981 1.981 0 0 0 0-3.962Z",fill:"#4BA5D1"}),l.createElement("path",{d:"M20.225 15.276a2.445 2.445 0 0 1-2.438-2.438 2.445 2.445 0 0 1 2.438-2.438 2.445 2.445 0 0 1 2.438 2.438 2.445 2.445 0 0 1-2.438 2.438Zm0-3.962c-.838 0-1.523.686-1.523 1.524s.685 1.524 1.523 1.524c.838 0 1.524-.686 1.524-1.524s-.685-1.524-1.524-1.524Z",fill:"#202135"}),l.createElement("path",{d:"M26.29 21.219h.564c1.372 0 2.286 1.417 1.722 2.682-.198.442-.229.93-.076 1.387l.457 1.371c.411 1.219-.503 2.484-1.798 2.484h-4.983l4.114-7.924Zm-12.16 0h-.564c-1.37 0-2.285 1.417-1.721 2.682.198.442.228.93.076 1.387l-.457 1.371c-.412 1.219.502 2.484 1.798 2.484h4.983",fill:"#9495A0"}),l.createElement("path",{d:"M26.778 21.219h-.152a6.553 6.553 0 0 0-6.4-5.18 6.552 6.552 0 0 0-6.4 5.18h-.153a1.977 1.977 0 0 0-1.98 1.981c0 1.097.883 1.98 1.98 1.98h.533a6.554 6.554 0 0 0 12.038 0h.534c1.097 0 1.98-.883 1.98-1.98a1.977 1.977 0 0 0-1.98-1.981Z",fill:"#fff"}),l.createElement("path",{d:"M14.13 22.59c0-.472.06-.93.152-1.371h-.716c-1.371 0-2.286 1.417-1.722 2.682.198.442.229.93.076 1.387 0 0 3.216.792 2.789-.092a6.265 6.265 0 0 1-.579-2.606Z",fill:"#9495A0"}),l.createElement("path",{d:"M20.225 27.162a1.996 1.996 0 0 1-1.417-.594.455.455 0 0 1 0-.64.455.455 0 0 1 .64 0c.198.213.473.32.762.32.305 0 .58-.107.777-.32a.456.456 0 0 1 .64-.016.456.456 0 0 1 .015.64 1.9 1.9 0 0 1-1.417.61Z",fill:"#202135"}),l.createElement("path",{d:"M16.111 24.419a.61.61 0 1 0 0 1.219.61.61 0 0 0 0-1.22Zm8.229 0a.61.61 0 1 0 0 1.219.61.61 0 0 0 0-1.22Z",fill:"#E55C8A"}),l.createElement("path",{d:"M13.825 18.552c0-3.49 2.835-4.8 6.324-4.8 3.49 0 6.324 1.31 6.324 4.8",fill:"#fff"}),l.createElement("path",{d:"M25.559 19.01a.449.449 0 0 1-.457-.458c0-1.371-.58-2.316-1.783-2.864a.463.463 0 0 1-.229-.61c.107-.229.381-.335.61-.229 1.524.701 2.316 1.981 2.316 3.703a.449.449 0 0 1-.457.457Z",fill:"#B8E4FF"}),l.createElement("path",{d:"M17.178 22.59a.61.61 0 1 0 0 1.219.61.61 0 0 0 0-1.219Zm6.095 0a.61.61 0 1 0 0 1.219.61.61 0 0 0 0-1.219Z",fill:"#202135"}),l.createElement("path",{d:"M26.016 18.171H14.587c-.838 0-1.524.686-1.524 1.524s.686 1.524 1.524 1.524h11.429c.838 0 1.524-.686 1.524-1.524s-.686-1.524-1.524-1.524Z",fill:"#E55C8A"}),l.createElement("path",{d:"m29.368 26.446-.442-1.31c-.106-.32-.06-.656.077-.96.152-.351.228-.763.198-1.174-.076-.975-.747-1.752-1.63-2.072.258-.336.426-.762.426-1.22 0-.777-.442-1.447-1.097-1.767-.29-2.972-2.713-4.648-6.75-4.648-4.115 0-6.568 1.752-6.766 4.83a1.978 1.978 0 0 0 1.203 3.551h12.13c.808 0 1.524.61 1.57 1.417.06.884-.64 1.63-1.524 1.63h-.534a.432.432 0 0 0-.411.275 6.077 6.077 0 0 1-5.593 3.688 6.088 6.088 0 0 1-5.607-3.703c-.076-.183-.244-.305-.442-.29a.458.458 0 0 0-.396.64 6.974 6.974 0 0 0 2.986 3.353h-3.459a1.48 1.48 0 0 1-1.204-.595 1.409 1.409 0 0 1-.198-1.295l.488-1.447c.183-.55.122-1.128-.122-1.662a1.43 1.43 0 0 1 .381-1.676c.183-.152.26-.441.107-.64a.468.468 0 0 0-.67-.091 2.353 2.353 0 0 0-.656 2.819c.152.32.152.686.046 1.02l-.442 1.311c-.26.762-.153 1.6.335 2.24a2.31 2.31 0 0 0 1.874.93h13.928c.747 0 1.417-.335 1.874-.93.473-.624.58-1.478.32-2.224ZM20.15 14.209c2.012 0 5.288.488 5.79 3.505H14.588c-.076 0-.167 0-.243.016.502-3.033 3.779-3.52 5.805-3.52Zm-5.562 6.553a1.06 1.06 0 0 1-1.066-1.067 1.06 1.06 0 0 1 1.066-1.067h11.429a1.06 1.06 0 0 1 1.067 1.067 1.06 1.06 0 0 1-1.067 1.067H14.587Zm13.745 7.33c-.274.38-.7.594-1.158.594h-3.49a6.902 6.902 0 0 0 2.85-3.048h.244c.457 0 .884-.137 1.25-.35l.045.137.457 1.371c.153.442.076.914-.198 1.295Z",fill:"#202135"}))},c=a(44036),m=a(2566),u=a(91938),d=a(53515),g=a(67128),h=a(43125),p=a(83129),b=a(58499);const v={lg:{height:48},md:{height:40},sm:{height:32},xs:{height:32}};var E=(0,c.k)(((e,{type:t,gap:a,size:r})=>{const l="mb"===e.other.template,n=(v[r]||{}).height;return{root:{},wrapper:Object.assign({gap:(0,m.h)(a||8)},"radio"===t&&{justifyContent:"flex-end",gap:(0,m.h)(a||24)}),groupErr:{fontSize:(0,m.h)(14)},itemRoot:Object.assign({},"button"===t?{flexGrow:1,width:"50%",'&[data-checked="true"]':{".mantine-Radio-label":{borderColor:e.fn.primaryColor()}}}:"radio"===t?{padding:`${(0,m.h)(10)} 0`,margin:0}:{}),itemLabelWrapper:{padding:0,width:"100%"},itemLabel:Object.assign({whiteSpace:"nowrap"},"button"===t?{position:"relative",padding:`${(0,m.h)(2)} ${(0,m.h)(16)}`,border:`1px solid ${l?"#EAEAEC":e.colors.gray[2]}`,backgroundColor:"#fff",borderRadius:(0,m.h)(l?16:4),cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",height:n,'&[data-disabled="true"]':{background:e.colors.gray[1],color:`${e.colors.gray[4]} !important`,img:{opacity:.5}},img:{height:(0,m.h)("lg"===r?26:22)}}:"radio"===t?{fontSize:(0,m.h)(14)}:{}),itemInner:Object.assign(Object.assign({},"button"===t&&{display:"none"}),"radio"===t&&{alignSelf:"center"}),itemBody:Object.assign({},"radio"===t&&{alignItems:"center"})}}));const f=e=>{var{label:t,availableValue:a,styles:n,isBaby:i,genderValue:c={male:"male",female:"female"},type:v="button",hideLabel:f,labelTextProps:C,gap:y,size:w="md",LabelWrapper:x}=e,P=(0,r._)(e,["label","availableValue","styles","isBaby","genderValue","type","hideLabel","labelTextProps","gap","size","LabelWrapper"]);const{t:H}=(0,b.u)(),{classes:I,cx:O,theme:D}=E({type:v,gap:y,size:w},{name:"GenderOptionControl",styles:n}),j="mb"===D.other.template,[F,B]=(0,l.useState)(),S=(0,l.useRef)(null),k=x?{}:Object.assign({as:"label",size:"p2",weight:"semiBold",variant:"primary"},C),M=x||p.T,N=(0,l.useMemo)((()=>[{value:c.male,label:H(i?"gender.boy":"gender.male"),icon:i?j?l.createElement(o,null):h.C.getAssetPath("health-tools/boy-icon.svg"):h.C.getAssetPath("health-tools/male-icon.svg")},{value:c.female,label:H(i?"gender.girl":"gender.female"),icon:i?j?l.createElement(s,null):h.C.getAssetPath("health-tools/girl-icon.svg"):h.C.getAssetPath("health-tools/female-icon.svg")}]),[]);return(0,l.useEffect)((()=>{B(a)}),[a]),l.createElement(u.x,{ref:S,className:I.root},l.createElement(g.R.Group,Object.assign({className:"radio-group",label:f?void 0:l.createElement(M,Object.assign({},k),t||H(i?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},P,{classNames:{error:I.groupErr}},"radio"===v&&{error:null}),l.createElement(d.k,{className:O(I.wrapper)},N.map((e=>l.createElement(g.R,Object.assign({className:"gender-item",size:"sm",classNames:{root:I.itemRoot,labelWrapper:I.itemLabelWrapper,label:I.itemLabel,inner:I.itemInner,body:I.itemBody},key:e.value,value:e.value},F&&e.value!==F&&{disabled:!0},{label:l.createElement(d.k,{gap:(0,m.h)(8),align:"center",justify:"center",sx:{zIndex:0}},"button"===v&&("string"===typeof e.icon?l.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}):e.icon),l.createElement(p.T,{size:"p3"},e.label))})))))))}},536:function(e,t,a){"use strict";a.d(t,{O:function(){return O}});var r=a(22470),l=a(67294),n=a(44036),o=a(2566),i=a(86010),s=a(19827),c=a(9713),m=a(75762),u=a(65721),d=a(67128),g=a(15456),h=a(83129),p=a(58499),b=a(97629),v=a(141),E=a(67688);const f=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.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"}),l.createElement("path",{d:"M12.5 16a4 4 0 1 1 8 0 4 4 0 0 1-8 0",fill:"#fff"}),l.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"}),l.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"}),l.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"})):l.createElement("svg",Object.assign({viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.createElement("g",{clipPath:"url(#clip0_1530_7251)"},l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1530_7251"},l.createElement("path",{fill:"#fff",d:"M.834 0h18v18h-18z"}))))},C=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,r._)(e,["isMarryBaby","size"]);const o=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.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"}),l.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"}),l.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"})):l.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}),l.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"}))},y=(0,l.createContext)({});var w=(0,n.k)((e=>({inputRightSection:{fontSize:(0,o.h)(13),lineHeight:(0,o.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8}})));const x=e=>{var t=(0,r._)(e,[]);const{t:a}=(0,p.u)(),{currentUrl:n,submitProps:o,form:s,calculatingMethods:c,isMobile:m}=(0,l.useContext)(y),{classes:u={}}=(0,l.useContext)(b.C),{classes:E}=w(void 0,{name:"OvulationTool__DefaultLayout"});return l.createElement(v.H,Object.assign({formLayout:"default"},t),l.createElement(v.H.FormRow,null,l.createElement(v.H.Control,null,l.createElement(v.H.ChipGroup,Object.assign({data:c,label:a("dueDatePage.calculationMethod"),isMobile:m},s.getInputProps("calculatorType"))))),l.createElement(v.H.FormRow,null,l.createElement(g.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:l.createElement(h.T,{size:"p2",weight:"semiBold"},` (${a("dueDatePage.lastPeriod.lastPeriodLabel")})`),maxDate:new Date},s.getInputProps("lastPeriodDate")))),l.createElement(v.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(h.T,{size:"p2",weight:"semiBold"},a("ovulationPage.cycleLength")),rightSection:a("ovulationPage.dayUnit"),min:21,max:45,defaultValue:1},s.getInputProps("cycleLength"),{classNames:{rightSection:E.inputRightSection}}))),l.createElement(v.H.FormRow,null,l.createElement(d.I.Number,Object.assign({label:l.createElement(h.T,{size:"p2",weight:"semiBold"},a("ovulationPage.periodDuration")),rightSection:a("ovulationPage.dayUnit"),min:1,max:15,defaultValue:1},s.getInputProps("periodLength"),{classNames:{rightSection:E.inputRightSection}}))),l.createElement(v.H.FormRow,{className:u.submitWrapper},l.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,i.Z)("due-date-calculate-button",u.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate"))))},P=e=>{var t=(0,r._)(e,[]);const{t:a}=(0,p.u)(),{currentUrl:n,submitProps:o,form:s,calculatingMethods:c}=(0,l.useContext)(y),{classes:m={}}=(0,l.useContext)(b.C);return l.createElement(v.H,Object.assign({formLayout:"inline"},t),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},l.createElement(v.H.ChipGroup,Object.assign({data:c},s.getInputProps("calculatorType"))))),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},l.createElement(g.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},s.getInputProps("lastPeriodDate"))))),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},l.createElement(d.I.Number,Object.assign({min:21,max:45,defaultValue:1},s.getInputProps("cycleLength"),{error:null}))),s.errors.cycleLength&&l.createElement(v.H.Error,null,s.errors.cycleLength)),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},l.createElement(d.I.Number,Object.assign({min:1,max:15,defaultValue:1},s.getInputProps("periodLength"),{error:null}))),s.errors.periodLength&&l.createElement(v.H.Error,null,s.errors.periodLength)),l.createElement(v.H.FormRow,{className:m.submitWrapper},l.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,i.Z)("due-date-calculate-button",m.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate"))))},H=e=>{var t=(0,r._)(e,[]);const{t:a}=(0,p.u)(),{currentUrl:n,submitProps:o,form:i,calculatingMethods:s}=(0,l.useContext)(y);return l.createElement(v.H,Object.assign({formLayout:"inline"},t),l.createElement(v.H.Control,null,l.createElement(d.I.Wrapper,{label:l.createElement(h.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},l.createElement(v.H.ChipGroup,Object.assign({data:s},i.getInputProps("calculatorType"))))),l.createElement(v.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:l.createElement(E.Z,null)},l.createElement(g.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("lastPeriodDate")))),l.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},l.createElement(d.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength")))),i.errors.cycleLength&&l.createElement(v.H.Error,null,i.errors.cycleLength),l.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},l.createElement(d.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength")))),i.errors.periodLength&&l.createElement(v.H.Error,null,i.errors.periodLength),l.createElement(v.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate")))};var I;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(I||(I={}));const O=e=>{var{formLayout:t="default",submitProps:a,currentUrl:n,isMobile:o,onSubmit:i}=e,d=(0,r._)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);const g=(0,s.rZ)(),{t:h}=(0,p.u)(),b="mb"===g.other.template,v=(0,c.c)({initialValues:{calculatorType:String(I.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,m.U)(h("validation.error.requiredField")),cycleLength:(0,m.U)(h("validation.error.requiredField"))}}),E=Object.assign({onSubmit:v.onSubmit(i)},d),w=[{label:h("ovulationPage.trackPeriod"),value:I.trackPeriod,icon:l.createElement(u.L,null)},{label:h("ovulationPage.conceive"),value:I.conceive,icon:l.createElement(C,null)},{label:h("ovulationPage.avoidPregnancy"),value:I.avoidPregnancy,icon:l.createElement(f,null)}];return l.createElement(y.Provider,{value:{submitProps:a,currentUrl:n,form:v,isMobile:o,calculatingMethods:w}},"inline"===t?l.createElement(P,Object.assign({},E)):b?l.createElement(H,Object.assign({formLayout:t},E)):l.createElement(x,Object.assign({},E)))}},51135:function(e,t,a){"use strict";a.d(t,{B:function(){return M},H:function(){return T},N:function(){return F},Q:function(){return H},a:function(){return I},b:function(){return O}});var r=a(22470),l=a(67294),n=a(32439),o=a(65148),i=a(26775),s=a(44036),c=a(53515),m=a(91938),u=a(97532),d=a(86010),g=a(2566),h=a(55157),p=a(67128),b=a(83129),v=a(51139),E=a(58499),f=a(141),C=a(97629),y=a(51320),w=a(86315),x=a(78577);function P({weight:e,height:t}){const a=t/100,r=e;return Math.round(r/(a*a)*10)/10}const H=e=>{var{LabelWrapper:t}=e,a=(0,r._)(e,["LabelWrapper"]);const{t:n}=(0,E.u)(),o=t?{}:Object.assign({size:"p2"},a),i=t||b.T;return l.createElement(i,Object.assign({},o),n("bmi.question.weightLossSupport"))},I=e=>{var{LabelWrapper:t}=e,a=(0,r._)(e,["LabelWrapper"]);const{t:n}=(0,E.u)(),o=t?{}:Object.assign({size:"p2"},a),i=t||b.T;return l.createElement(i,Object.assign({},o),n("bmi.question.glp1Awareness"))},O=e=>{var{LabelWrapper:t}=e,a=(0,r._)(e,["LabelWrapper"]);const{t:n}=(0,E.u)(),o=t?{}:Object.assign({size:"p2"},a),i=t||b.T;return l.createElement(i,Object.assign({},o),n("bmi.question.glp1Awareness.desc"))},D=(0,l.createContext)({});var j=(0,s.k)((()=>({label:{marginTop:2,cursor:"pointer",userSelect:"none"}})));const F=e=>{var{labelTextProps:t,checked:a,LabelWrapper:n,useCollapse:o=!0}=e,i=(0,r._)(e,["labelTextProps","checked","LabelWrapper","useCollapse"]);const{t:s}=(0,E.u)(),[u,d]=(0,l.useState)(!o),[g,h]=(0,l.useState)(!0),[v,f]=(0,l.useState)(a),C=n?{}:Object.assign({size:"p3"},t),y=n||b.T,{classes:w}=j(void 0,{name:"NewsletterCheckbox"});return l.createElement(c.k,{gap:8,align:"flex-start"},l.createElement(p.d,Object.assign({},i,{label:void 0,size:"sm",checked:v,onChange:e=>{g?h(!1):f(e.currentTarget.checked)},styles:{labelWrapper:{display:"none"}}})),l.createElement(m.x,null,l.createElement(y,Object.assign({},C,{onClick:()=>{o&&d((e=>!e))},className:w.label,lineClamp:u?void 0:1}),s("bmi.newsletter.label"))))},B=e=>{var t,a,o,i,s,g,h;const{t:b,locale:v}=(0,E.u)(),{classes:y={}}=(0,l.useContext)(C.C),{control:P,bmiGenerated:j,linkTool:B,submitProps:S,withAdditionalQuestion:k,classes:M={}}=(0,l.useContext)(D),N={body:{alignItems:"center"}};return l.createElement(f.H,Object.assign({formLayout:"default"},e),l.createElement(T,{isMobile:e.isMobile,gutter:4},l.createElement(T.Row,{px:16},l.createElement(T.Col,{span:12},l.createElement(n.Qr,{name:"gender",control:P,rules:null===(t=j.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>l.createElement("div",null,l.createElement(T.GenderControl,{LabelWrapper:T.Label,error:void 0,onChange:e,gap:4}),(null===t||void 0===t?void 0:t.message)&&l.createElement(T.Error,{label:t.message}))})),l.createElement(T.Col,{span:12},l.createElement(n.Qr,{name:"age",control:P,rules:null===(a=j.age)||void 0===a?void 0:a.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement("div",null,l.createElement(T.InputNumber,{label:l.createElement(T.Label,null,b("bmi.ageInput")),placeholder:b("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:a,min:0,rightSection:b("bmi.ageInput.desc"),classNames:{rightSection:M.inputRightSection}}),(null===r||void 0===r?void 0:r.message)&&l.createElement(T.Error,{label:r.message}))})),l.createElement(T.Col,{span:12},l.createElement(n.Qr,{name:"height",control:P,rules:null===(o=j.height)||void 0===o?void 0:o.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement("div",null,l.createElement(T.InputNumber,{label:l.createElement(T.Label,null,b("bmi.heightInput")),rightSection:b("bmi.heightInput.desc"),placeholder:b("tools.inputPlaceholder",{content:v===w.L.Myanmar?6:170}),name:e,value:t,onChange:a,min:0,classNames:{rightSection:M.inputRightSection}}),(null===r||void 0===r?void 0:r.message)&&l.createElement(T.Error,{label:r.message}))})),l.createElement(T.Col,{span:12},l.createElement(n.Qr,{name:"weight",control:P,rules:null===(i=j.weight)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement("div",null,l.createElement(T.InputNumber,{label:l.createElement(T.Label,null,b("bmi.weightInput")),rightSection:b("bmi.weightInput.desc"),placeholder:b("tools.inputPlaceholder",{content:v===w.L.Myanmar?130:60}),name:e,value:t,onChange:a,precision:1,min:0,classNames:{rightSection:M.inputRightSection}}),(null===r||void 0===r?void 0:r.message)&&l.createElement(T.Error,{label:r.message}))}))),k?l.createElement(l.Fragment,null,l.createElement(u.r,{gutter:4,px:16},l.createElement(T.Col,null,l.createElement(n.Qr,{name:"question1",control:P,rules:null===(s=j.question1)||void 0===s?void 0:s.rule,render:({field:{value:e,onChange:t,name:a},fieldState:{error:r}})=>l.createElement("div",null,l.createElement(p.R.Group,{name:a,value:e,onChange:t,sx:{flex:1},label:l.createElement(H,{LabelWrapper:T.Label}),size:"lg"},l.createElement(c.k,{gap:"lg"},l.createElement(p.R,{size:"sm",value:"1",label:l.createElement(T.OptionLabel,null,b("switchBtn.yes")),styles:N}),l.createElement(p.R,{size:"sm",value:"0",label:l.createElement(T.OptionLabel,null,b("switchBtn.no")),styles:N}))),(null===r||void 0===r?void 0:r.message)&&l.createElement(T.Error,{label:r.message}))})),l.createElement(T.Col,null,l.createElement(n.Qr,{name:"question2",control:P,rules:null===(g=j.question2)||void 0===g?void 0:g.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement("div",null,l.createElement(p.R.Group,{name:e,value:t,onChange:a,sx:{flex:1},label:l.createElement(I,{LabelWrapper:T.Label}),size:"lg",description:v!==w.L.Malaysia&&l.createElement(O,{LabelWrapper:T.SubLabel})},l.createElement(c.k,{gap:"lg"},l.createElement(p.R,{size:"sm",value:"1",label:l.createElement(T.OptionLabel,null,b("switchBtn.yes")),styles:N}),l.createElement(p.R,{size:"sm",value:"0",label:l.createElement(T.OptionLabel,null,b("switchBtn.no")),styles:N}))),(null===r||void 0===r?void 0:r.message)&&l.createElement(T.Error,{label:r.message}))}))),l.createElement(m.x,{className:(0,d.Z)(M.newsletterBlock,y.newsletterBlock)},l.createElement(u.r,{gutter:8,px:16,py:12},l.createElement(T.Col,null,l.createElement(n.Qr,{name:"newsletter",control:P,rules:null===(h=j.newsletter)||void 0===h?void 0:h.rule,render:e=>{var t=e.field,{value:a,onChange:n,name:o}=t,i=(0,r._)(t,["value","onChange","name"]);return l.createElement(F,Object.assign({size:"sm",onChange:e=>n(e.currentTarget.checked),name:o,checked:!!a},i))}})),l.createElement(T.Col,null,l.createElement(f.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${x.v[v]}/${B}`,type:"submit",fullWidth:!0},S),b("bmi.submit")))))):l.createElement(m.x,{px:16,sx:{paddingBottom:8}},l.createElement(f.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${x.v[v]}/${B}`,type:"submit",fullWidth:!0},S),b("bmi.submit")))))};var S=(0,s.k)((e=>({newsletterBlock:{backgroundColor:e.colors.neutral[0],borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",".bmi-btn":{marginTop:0}},inputRightSection:{fontSize:(0,g.h)(13),lineHeight:(0,g.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8,whiteSpace:"nowrap"}})));const k=e=>{var t,a,o,i,s,u,v,P;const{t:H,locale:I}=(0,E.u)(),{control:O,bmiGenerated:j,isTouched:B,linkTool:S,submitProps:k,withAdditionalQuestion:M}=(0,l.useContext)(D),{classes:N={},variant:L}=(0,l.useContext)(C.C),{classes:T={}}=(0,l.useContext)(D);return l.createElement(f.H,Object.assign({formLayout:"inline"},e),l.createElement(n.Qr,{name:"gender",control:O,rules:null===(t=j.gender)||void 0===t?void 0:t.rule,render:({field:{onChange:e},fieldState:{error:t}})=>l.createElement(f.H.FormRow,null,l.createElement(f.H.BorderInlineControl,{label:H("tools.selectGender"),width:"none",errorMess:B&&(null===t||void 0===t?void 0:t.message)},l.createElement(y.G,{type:"radio",hideLabel:!0,error:B?l.createElement(l.Fragment,null):"",onChange:e})))}),l.createElement(n.Qr,{name:"age",control:O,rules:null===(a=j.age)||void 0===a?void 0:a.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement(f.H.FormRow,null,l.createElement(f.H.BorderInlineControl,{label:H("bmi.ageInput"),errorMess:B&&(null===r||void 0===r?void 0:r.message)},l.createElement(p.I.Number,{placeholder:H("tools.inputPlaceholder",{content:"25"}),name:e,value:t,onChange:a,error:B&&(null===r||void 0===r?void 0:r.message)?l.createElement(l.Fragment,null):"",min:0,rightSection:l.createElement(f.H.Unit,null,H("tools.yearsOld")),styles:()=>({rightSection:{width:"auto"}})})))}),l.createElement(n.Qr,{name:"height",control:O,rules:null===(o=j.height)||void 0===o?void 0:o.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement(f.H.FormRow,null,l.createElement(f.H.BorderInlineControl,{label:H("bmi.heightInput"),errorMess:B&&(null===r||void 0===r?void 0:r.message)},l.createElement(p.I.Number,{placeholder:H("tools.inputPlaceholder",{content:I===w.L.Myanmar?6:170}),name:e,value:t,onChange:a,min:0,error:B&&(null===r||void 0===r?void 0:r.message)?l.createElement(l.Fragment,null):"",rightSection:l.createElement(f.H.Unit,null,H("bmi.heightInput.desc"))})))}),l.createElement(n.Qr,{name:"weight",control:O,rules:null===(i=j.weight)||void 0===i?void 0:i.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement(f.H.FormRow,null,l.createElement(f.H.BorderInlineControl,{label:H("bmi.weightInput"),errorMess:B&&(null===r||void 0===r?void 0:r.message)},l.createElement(p.I.Number,{placeholder:H("tools.inputPlaceholder",{content:I===w.L.Myanmar?130:60}),name:e,value:t,onChange:a,error:B&&(null===r||void 0===r?void 0:r.message)?l.createElement(l.Fragment,null):"",precision:1,min:0,rightSection:l.createElement(f.H.Unit,null,H("bmi.weightInput.desc"))})))}),M?l.createElement(l.Fragment,null,l.createElement(n.Qr,{name:"question1",control:O,rules:null===(s=j.question1)||void 0===s?void 0:s.rule,render:({field:{value:e,onChange:t,name:a},fieldState:{error:r}})=>l.createElement(f.H.FormRow,null,l.createElement(p.R.Group,{name:a,value:e,onChange:t,sx:{flex:1},label:l.createElement(b.T,{size:"s4",weight:"semiBold",span:!0},H("bmi.question.weightLossSupport")),size:"lg"},l.createElement(c.k,{gap:"lg",sx:{paddingTop:(0,g.h)(8)}},l.createElement(p.R,{size:"sm",value:"1",label:H("switchBtn.yes")}),l.createElement(p.R,{size:"sm",value:"0",label:H("switchBtn.no")}))),B&&(null===r||void 0===r?void 0:r.message)&&l.createElement(p.e,{label:r.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),l.createElement(n.Qr,{name:"question2",control:O,rules:null===(u=j.question2)||void 0===u?void 0:u.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:r}})=>l.createElement(f.H.FormRow,null,l.createElement(p.R.Group,{name:e,value:t,onChange:a,sx:{flex:1},label:l.createElement(b.T,{size:"s4",weight:"semiBold",span:!0},H("bmi.question.glp1Awareness")),size:"lg",description:I!==w.L.Malaysia&&l.createElement(b.T,{style:{fontSize:"10px"},span:!0},H("bmi.question.glp1Awareness.desc"))},l.createElement(c.k,{gap:"lg",sx:{paddingTop:(0,g.h)(8)}},l.createElement(p.R,{size:"sm",value:"1",label:H("switchBtn.yes")}),l.createElement(p.R,{size:"sm",value:"0",label:H("switchBtn.no")}))),B&&(null===r||void 0===r?void 0:r.message)&&l.createElement(p.e,{label:r.message,textProps:{size:"p4"},sx:{marginTop:6}}))}),"gray"===L||"violet"===L?l.createElement(l.Fragment,null,l.createElement(n.Qr,{name:"newsletter",control:O,rules:null===(v=j.newsletter)||void 0===v?void 0:v.rule,render:e=>{var t=e.field,{value:a,onChange:n,name:o}=t,i=(0,r._)(t,["value","onChange","name"]);return l.createElement(f.H.FormRow,null,l.createElement(p.d,Object.assign({size:"sm",label:l.createElement(b.T,{size:"p3"},H("bmi.newsletter.label")),onChange:e=>n(e.currentTarget.checked),name:o,checked:!!a},i)))}}),l.createElement(f.H.FormRow,{className:(0,d.Z)(N.submitWrapper)},l.createElement(f.H.Submit,Object.assign({className:(0,d.Z)("bmi-btn bmi--btn-submit",N.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${x.v[I]}/${S}`,type:"submit"},k),H("bmi.submit")))):l.createElement(f.H.FormRow,{py:16,className:(0,d.Z)(T.newsletterBlock,N.newsletterBlock)},l.createElement(h.K,{spacing:16},l.createElement(n.Qr,{name:"newsletter",control:O,rules:null===(P=j.newsletter)||void 0===P?void 0:P.rule,render:e=>{var t=e.field,{value:a,onChange:n,name:o}=t,i=(0,r._)(t,["value","onChange","name"]);return l.createElement(F,Object.assign({size:"sm",labelTextProps:{size:"p4"},onChange:e=>n(e.currentTarget.checked),name:o,checked:!!a,useCollapse:!1},i))}}),l.createElement(m.x,{className:(0,d.Z)(N.submitWrapper)},l.createElement(f.H.Submit,Object.assign({className:(0,d.Z)("bmi-btn bmi--btn-submit",N.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${x.v[I]}/${S}`,type:"submit"},k),H("bmi.submit")))))):l.createElement(f.H.FormRow,{className:(0,d.Z)(N.submitWrapper)},l.createElement(f.H.Submit,Object.assign({className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${x.v[I]}/${S}`,type:"submit"},k),H("bmi.submit"))))},M=e=>{var{value:t,onChange:a,onSubmit:s,bmiGenerated:c,bmiUnit:m,formLayout:u="default",submitProps:d,withAdditionalQuestion:g,isMobile:h}=e,p=(0,r._)(e,["value","onChange","onSubmit","bmiGenerated","bmiUnit","formLayout","submitProps","withAdditionalQuestion","isMobile"]);const{classes:b}=S(void 0,{name:"BmiForm"}),[f,C]=(0,l.useState)(!1),{control:y,handleSubmit:w,setValue:x,watch:H}=(0,n.cI)({defaultValues:{question1:void 0,question2:void 0,newsletter:!0}}),I=H(),{locale:O}=(0,E.u)(),{getHealthToolLink:j}=(0,o.u)(O),F=(0,l.useMemo)((()=>j(i.H.OVULATION)),[j]),M=()=>{C(!0)};(0,l.useEffect)((()=>{Object.keys(t||{}).forEach((e=>{x(e,null===t||void 0===t?void 0:t[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[t]),(0,l.useEffect)((()=>{a&&a(I)}),[I]);const N=Object.assign({onSubmit:w((e=>(0,r.a)(void 0,void 0,void 0,(function*(){const t=m.heightConvert(e.height),a=m.weightConvert(e.weight),r=Object.assign(Object.assign({},e),{height:t,weight:a,bmi:P({height:t,weight:a})});M(),s&&s(r)}))),M)},p);return l.createElement(v.T,{variant:v.C.LEADGEN},l.createElement(D.Provider,{value:{control:y,bmiGenerated:c,isTouched:f,linkTool:F,submitProps:d,withAdditionalQuestion:g,classes:b}},"inline"===u?l.createElement(k,Object.assign({},N)):l.createElement(B,Object.assign({},N,{isMobile:h}))))},N=(0,l.createContext)({}),L=e=>{const{errorLabelSize:t}=(0,l.useContext)(N);return l.createElement(p.e,Object.assign({textProps:{size:t},sx:{marginTop:5}},e))};var T=Object.assign((e=>{var t,a,n,o,i,s,{children:c,isMobile:m}=e,u=(0,r._)(e,["children","isMobile"]);const d=Object.assign({isMobile:m,labelSize:null!==(t=u.labelSize)&&void 0!==t?t:m?"p2":"s4",subLabelSize:null!==(a=u.subLabelSize)&&void 0!==a?a:"subText",optionLabelSize:null!==(n=u.optionLabelSize)&&void 0!==n?n:m?"p2":"s4",inputSize:null!==(o=u.inputSize)&&void 0!==o?o:m?"sm":"md",gutter:null!==(i=u.gutter)&&void 0!==i?i:m?4:12,errorLabelSize:null!==(s=u.errorLabelSize)&&void 0!==s?s:"p3"},u);return l.createElement(N.Provider,{value:d},c)}),{Row:e=>{var{children:t}=e,a=(0,r._)(e,["children"]);const{gutter:n}=(0,l.useContext)(N);return l.createElement(u.r,Object.assign({gutter:n},a),t)},Col:e=>{var{children:t}=e,a=(0,r._)(e,["children"]);return l.createElement(u.r.Col,Object.assign({span:12},a),t)},SubLabel:e=>{var{children:t}=e,a=(0,r._)(e,["children"]);const{subLabelSize:n}=(0,l.useContext)(N);return l.createElement(b.T,Object.assign({size:n},a),t)},Label:e=>{var{children:t}=e,a=(0,r._)(e,["children"]);const{labelSize:n}=(0,l.useContext)(N);return l.createElement(b.T,Object.assign({size:n,weight:"semiBold"},a,{span:!0}),t)},OptionLabel:e=>{var{children:t}=e,a=(0,r._)(e,["children"]);const{optionLabelSize:n}=(0,l.useContext)(N);return l.createElement(b.T,Object.assign({size:n,weight:"regular"},a,{span:!0}),t)},Input:p.I,InputNumber:e=>{var{error:t}=e,a=(0,r._)(e,["error"]);const{inputSize:n}=(0,l.useContext)(N);return l.createElement("div",null,l.createElement(p.I.Number,Object.assign({size:n},a)),t&&l.createElement(L,{label:t}))},GenderControl:e=>{const{inputSize:t}=(0,l.useContext)(N);return l.createElement(y.G,Object.assign({size:t},e))},Error:L})},99395:function(e,t,a){"use strict";a.d(t,{T:function(){return s}});var r=a(67294),l=a(93867),n=a(37699),o=a(10917);const i=l.Z.div` textarea { width: 100%; height: var(--textarea-height, 116px); padding: 1rem; border: 1px solid ${o.r.colors.gray200}; border-radius: 6px; color: ${o.r.colors.gray800}; font-size: 14px; resize: none; &:focus { box-shadow: 0px 0px 2px 2px #91caff; } &::placeholder { color: ${o.r.colors.gray500}; } &:disabled { background-color: ${o.r.colors.neutral50}; cursor: not-allowed; } } `,s=r.forwardRef((({height:e,placeholder:t,labelText:a,labelColor:l,id:o,name:s,onChange:c,value:m,className:u,onKeyPress:d,disabled:g=!1},h)=>r.createElement(i,{className:u,style:{"--textarea-height":e||"116px"}},a&&r.createElement(n.L,{size:"label2",style:{color:l||"#595959"},htmlFor:o},a),r.createElement("textarea",{name:s,ref:h,placeholder:t,id:o,onChange:e=>c&&c(e.target.value),onKeyPress:e=>d&&d(e),value:m,disabled:g}))))},62750:function(e,t,a){"use strict";a.d(t,{S:function(){return E},a:function(){return f}});var r=a(67294),l=a(57849),n=a(83129),o=a(94044),i=a(37699),s=a(99395),c=a(93867),m=a(10917);const u=c.Z.div` padding: 1rem; background: ${m.r.colors.neutral100}; .survey-inner-wrapper { padding: 1.25rem 1rem 1.5rem; background: ${m.r.colors.white}; border-radius: ${m.r.borderRadius}; .survey-header { border-bottom: 1px solid #dbdfe5; margin-bottom: 12px; .survey-header-text { color: ${m.r.colors.gray500}; } } .survey-contact-submit { width: 100%; margin-bottom: 1.5rem; } .term-policy-container { width: 70%; min-width: 210px; max-width: 100%; margin: 0 auto 1.5rem; text-align: center; } .survey-progress-wrapper { width: calc(100% + 2rem); height: 4px; margin-bottom: 1rem; margin-left: -1rem; background: #e4e8ec; .survey-progress { width: 100%; height: 100%; background: #00b16a; transform: scaleX(0); transform-origin: left; transition: transform ease-in-out 0.3s; } } .survey-button-wrapper { display: flex; justify-content: flex-end; button { justify-content: center; &[data-has-icon='true'] { svg { width: 10px; height: 10px; margin-right: 10px; vertical-align: unset; } } &.survey-next-button { &[data-has-icon='true'] { svg { margin-right: 0; margin-left: 10px; } } } } &[data-center='true'] { justify-content: center; button:only-child { width: 200px; max-width: 80%; } } .survey-prev-button { margin-right: 0.5rem; } } } `,d=c.Z.div` position: relative; display: flex; align-items: center; cursor: pointer; input { position: relative; width: 20px; height: 20px; flex-shrink: 0; border: solid 1px ${m.r.colors.gray500}; margin-right: 8px; border-radius: 100%; cursor: inherit; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${m.r.colors.primaryBase}; box-shadow: 0 0 2px 2px ${m.r.colors.primary600}; } &:checked { display: flex; align-items: center; justify-content: center; border-color: ${m.r.colors.primaryBase}; &:after { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; //left: 3px; //position: absolute; //top: 4px; background-color: ${m.r.colors.primaryBase}; border-radius: 50%; content: ''; transform: translate(-50%, -50%); } } } label { width: calc(100% - 24px); cursor: inherit; font-weight: ${m.r.sizes.fwRegular}; } &[data-disabled='true'] { color: ${m.r.colors.gray300}; cursor: not-allowed; input { border-color: ${m.r.colors.gray300}; &:hover { border-color: ${m.r.colors.gray300}; box-shadow: none; } } } padding: 16px 20px; border: 0.5px solid transparent; background: #fafafa; border-radius: ${m.r.borderRadius}; &[data-checked='true'] { border: 0.5px solid #2d87f3; background: #f7f9fc; } input { border: solid 2px #737373; margin-right: 0; background: white; &[type='checkbox'] { &:checked { border: 0; background: ${m.r.colors.primaryBase} url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; &:after { display: none; } } } } &[data-has-image='true'] { position: relative; display: block; padding: 12px; input { position: absolute; top: 20px; right: 20px; } .choice-image-wrapper { position: relative; padding-top: 56.25%; margin-bottom: 0.75rem; img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: ${m.r.borderRadius}; object-fit: cover; } } } `,g=c.Z.div` position: relative; width: 100%; padding-top: min(400px, 100%); .survey-thankyou-wrapper-inner { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; .survey-thankyou-icon { width: 36%; max-height: 50%; margin-bottom: 1.5rem; } .survey-thankyou-title { margin-bottom: 1rem; text-align: center; } .survey-thankyou-subtitle { text-align: center; > * { text-align: center; } } } `,h=c.Z.div` .survey-question-text-wrapper { margin-bottom: 24px; .survey-question-title { margin-bottom: 4px; } .survey-question-subtitle, .survey-question-description { color: ${m.r.colors.gray500}; } } .survey-question-image { width: 100%; margin-bottom: 12px; border-radius: ${m.r.borderRadius}; } .survey-question-answer-wrapper { margin-bottom: 1.5rem; .survey-question-options-wrapper { display: grid; grid-gap: 0.5rem; grid-template-columns: 1fr; &[data-has-image='true'] { grid-gap: 0.8rem; grid-template-columns: 1fr 1fr; } .survey-question-option-item { label { color: #262626; font-size: 16px; font-style: normal; font-weight: normal; line-height: 24px; } } } .survey-contact-input { margin-bottom: 1rem; &:first-child { margin-top: 1rem; } label { font-weight: 700; } input { margin-top: 6px; } } } `,p=({size:e="small",label:t,name:a,checked:l,value:n,className:o,isDisabled:i=!1,onChange:s,hasImage:c,inputType:m,image:u})=>r.createElement(d,{"data-disabled":i,className:o,"data-size":e,"data-checked":l,onClick:()=>{s(n)},"data-has-image":c},c&&r.createElement("div",{className:"choice-image-wrapper"},u&&r.createElement("img",{src:u,loading:"lazy"})),r.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${a}-${n}`},t),r.createElement("input",{type:m,checked:l,name:a,id:`${a}-${n}`,value:n,readOnly:!0})),b=({question:e,description:t,onOptionsChange:a,onTextOptionsChange:l,style:c,className:m})=>{const{type:u,title:d,subtitle:g,image:b,textOptions:v,options:E,name:f,is_multi_select:C}=e,y=!!(null===E||void 0===E?void 0:E.some((e=>e.image))),[w,x]=(0,r.useState)([]),[P,H]=(0,r.useState)((()=>(null===v||void 0===v?void 0:v.slice())||[]));return(0,r.useEffect)((()=>{a&&a(w.slice())}),[!!a,w]),(0,r.useEffect)((()=>{l&&l(P)}),[!!l,P]),r.createElement(h,{className:m,style:c},r.createElement("div",{className:"survey-question-text-wrapper"},d&&r.createElement(o.H,{"data-nosubtitle":!g,className:"survey-question-title",tag:"h4"},d),g&&r.createElement(n.T,{className:"survey-question-subtitle",size:"p2"},g),t&&r.createElement(n.T,{className:"survey-question-description",size:"p2"},t)),b&&r.createElement("img",{src:b,className:"survey-question-image",loading:"lazy"}),r.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===u&&r.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},E.map((e=>{var t;return r.createElement(p,{inputType:"radio",label:e.label,name:f,key:`${f}-${e.value}`,checked:(null===(t=w[0])||void 0===t?void 0:t.value)===e.value,value:e.value,onChange:e=>{x([E.find((t=>t.value===e))])},className:"survey-question-option-item",image:e.image,hasImage:y})}))),"checkbox"===u&&r.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},E.map((e=>r.createElement(p,{inputType:"checkbox",label:e.label,name:f,key:`${f}-${e.value}`,checked:!!w.find((t=>t.value===e.value)),value:e.value,onChange:()=>{const t=w.findIndex((t=>t.value===e.value));x(t>=0?e=>(e.splice(t,1),e.slice()):C?t=>t.concat(e).slice():[e])},className:"survey-question-option-item survey-option-radio",image:e.image,hasImage:y})))),"textbox"===u&&P.map(((e,t)=>e.isTextArea?r.createElement(s.T,{key:t,placeholder:e.placeholder,height:"150px",value:e.value,onChange:e=>H((a=>(a[t].value=e,a.slice())))}):r.createElement(i.I,{key:t,value:e.value,name:e.name,size:"md",className:"survey-contact-input",label:e.label,placeholder:e.placeholder,onChange:e=>{H((a=>(a[t].value=e,a.slice())))},type:e.type})))))};var v;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(v||(v={}));const E=({className:e,headerText:t,style:a,question:o,termAndPolicyText:i,prevText:s,nextText:c,isContactForm:m,isDisableNext:d,isDisablePrev:g,onPrevClick:h,onNextClick:p,isSubmitButton:E,isButtonCenter:f,progress:C,descriptionText:y})=>{var w,x,P;const[H,I]=(0,r.useState)([]),{is_multi_select:O,multi_select_option:D,from:j,to:F}=o,B=null===o||void 0===o?void 0:o.type,S="checkbox"===B&&(null===(w=o.options)||void 0===w?void 0:w.length)&&(!H||0===H.length||O&&D===v.RANGE&&(H.lengthF)||O&&D===v.EXACT_NUMBER&&H.length!==j)||"radio"===B&&(null===(x=o.options)||void 0===x?void 0:x.length)&&(!H||0===H.length)||"textbox"===B&&(null===(P=o.textOptions)||void 0===P?void 0:P.length)&&(H.length!e.value))),k="number"===typeof C?C>1?1:C<0?0:Number(C.toFixed(2)):-1,M=(0,r.useRef)(null),N=()=>"textbox"!==B||M.current.reportValidity();return r.createElement(u,{className:e,style:a},r.createElement("div",{className:"survey-inner-wrapper"},t&&r.createElement("div",{className:"survey-header"},r.createElement(n.T,{className:"survey-header-text",size:"c2"},t)),r.createElement("form",{ref:M,onSubmit:e=>e.preventDefault()},r.createElement(b,{question:o,description:y,onOptionsChange:e=>{I(e)},onTextOptionsChange:e=>{I(e)}})),m&&c&&r.createElement(l.B,{className:"survey-contact-submit",size:"lg",isDisabled:d||S,onClick:()=>N()&&p&&p(H)},c),i&&r.createElement("div",{className:"term-policy-container"},i),"number"===typeof C&&r.createElement("div",{className:"survey-progress-wrapper"},r.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${k})`}})),(s||c)&&r.createElement("div",{"data-center":f,className:"survey-button-wrapper"},s&&r.createElement(l.B,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:r.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},r.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:g?"#fff":"#2D87F3"})),onClick:h},s),!m&&c&&r.createElement(l.B,{onClick:()=>N()&&p&&p(H),className:"survey-next-button",size:"lg",isDisabled:d||S},c," ",E?void 0:r.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},r.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},f=({thankyou:e,thankyouSubtitle:t,className:a,style:l})=>r.createElement(u,{className:a,style:l},r.createElement("div",{className:"survey-inner-wrapper"},r.createElement(g,null,r.createElement("div",{className:"survey-thankyou-wrapper-inner"},r.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},r.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:m.r.colors.primary50}),r.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),r.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),r.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),r.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),r.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),r.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),r.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),r.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),r.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),r.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),r.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),e&&r.createElement(o.H,{className:"survey-thankyou-title",tag:"h3"},e),t&&r.createElement(n.T,{className:"survey-thankyou-subtitle",size:"p3"},t)))))},65148:function(e,t,a){"use strict";a.d(t,{u:function(){return s}});var r=a(22470),l=a(67294),n=a(68866),o=a(13125);const i=e=>(0,r.a)(void 0,void 0,void 0,(function*(){return(yield(0,o.g)("all-health-tools",(()=>(e=>(0,r.a)(void 0,void 0,void 0,(function*(){var t,a;try{const l="tl-PH"===e?"lang=fil":"";let o=[];const i=e.endsWith("_MB");try{const r=yield fetch((0,n.n)((0,n.n)(`${(0,n.c)(e)}/wp-json/api/${i?"health-tools":"healthtools"}?ismenu=0${l?"&"+l:""}`))).then((e=>e.json()));o=(null===(a=null===(t=null===r||void 0===r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,(t=>((e,t)=>{var a,r;if(!e)return{};const l="tl-PH"===t?"/fil":"";return{id:e.id,isSubot:e.is_subot,template:e.template,icon:e.icon,link:(null===(a=e.link)||void 0===a?void 0:a.startsWith("http"))?e.link:`${l}/health-tools`+(null===(r=e.link)||void 0===r?void 0:r.replace(`/${l}/`,"/").replace("/health-tools/","/")),subtitle:e.subtitle,title:e.title}})(t,e))))||[]}catch(r){}return o}catch(l){console.error(l)}})))(e||"en-PH")),(e=>!!(null===e||void 0===e?void 0:e.length)),6e4))||[]})),s=e=>{const[t,a]=(0,l.useState)([]);(0,l.useEffect)((()=>{(0,r.a)(void 0,void 0,void 0,(function*(){const t=yield i(e);a(t)}))}),[i,e]);const n=(0,l.useCallback)((e=>{var a;return(null===(a=t.find((t=>t.template===e)))||void 0===a?void 0:a.link)||""}),[t]);return{allTools:t,getHealthToolLink:n}}},67688:function(e,t,a){"use strict";var r=a(67294),l=a(76623),n=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l{var{size:t=24,color:a=l.SQ}=e,o=n(e,["size","color"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none"},o),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.05251 1.7627C6.32175 1.7627 6.54001 1.98096 6.54001 2.2502V2.53122C6.60161 2.51424 6.66362 2.49824 6.72604 2.48326C8.22164 2.12422 9.77827 2.12422 11.2739 2.48326C11.3363 2.49824 11.3983 2.51424 11.4599 2.53122V2.2502C11.4599 1.98096 11.6782 1.7627 11.9474 1.7627C12.2166 1.7627 12.4349 1.98096 12.4349 2.2502V2.89841C14.0148 3.66392 15.193 5.12969 15.6002 6.90621C15.9499 8.43197 15.9499 10.0197 15.6002 11.5455C15.0984 13.7345 13.426 15.4518 11.2739 15.9684C9.77827 16.3275 8.22164 16.3275 6.72605 15.9684C4.57393 15.4518 2.90146 13.7345 2.39973 11.5455C2.05003 10.0197 2.05003 8.43197 2.39973 6.90621C2.8069 5.12969 3.98512 3.66392 5.56501 2.89841V2.2502C5.56501 1.98096 5.78327 1.7627 6.05251 1.7627ZM5.56501 4.00938C4.8827 4.4302 4.31058 5.01866 3.90223 5.72184H14.0977C13.6893 5.01865 13.1172 4.4302 12.4349 4.00938V4.1355C12.4349 4.40474 12.2166 4.623 11.9474 4.623C11.6782 4.623 11.4599 4.40474 11.4599 4.1355V3.55069C11.3246 3.5049 11.1866 3.46501 11.0463 3.43132C9.70028 3.1082 8.29963 3.1082 6.95364 3.43132C6.81329 3.46501 6.67532 3.5049 6.54001 3.55069V4.1355C6.54001 4.40474 6.32175 4.623 6.05251 4.623C5.78327 4.623 5.56501 4.40474 5.56501 4.1355V4.00938ZM14.5321 6.69684H3.46781C3.42267 6.83649 3.38333 6.97898 3.35008 7.12403C3.03324 8.50643 3.03324 9.94525 3.35008 11.3277C3.77131 13.1654 5.17107 14.5924 6.95364 15.0204C8.29963 15.3435 9.70028 15.3435 11.0463 15.0204C12.8288 14.5924 14.2286 13.1654 14.6498 11.3276C14.9667 9.94525 14.9667 8.50643 14.6498 7.12403C14.6166 6.97898 14.5772 6.83649 14.5321 6.69684Z",fill:a}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.48543 8.60225C6.7051 8.82192 6.7051 9.17808 6.48543 9.39775L6.39775 9.48543C6.17808 9.7051 5.82192 9.7051 5.60225 9.48543C5.38258 9.26576 5.38258 8.9096 5.60225 8.68993L5.68994 8.60225C5.90961 8.38258 6.26576 8.38258 6.48543 8.60225Z",fill:a}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.48543 10.8523C6.7051 11.0719 6.7051 11.4281 6.48543 11.6477L6.39775 11.7354C6.17808 11.9551 5.82192 11.9551 5.60225 11.7354C5.38258 11.5158 5.38258 11.1596 5.60225 10.9399L5.68994 10.8523C5.90961 10.6326 6.26576 10.6326 6.48543 10.8523Z",fill:a}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.48543 8.60225C9.7051 8.82192 9.7051 9.17808 9.48543 9.39775L9.39775 9.48543C9.17808 9.7051 8.82192 9.7051 8.60225 9.48543C8.38258 9.26576 8.38258 8.9096 8.60225 8.68993L8.68994 8.60225C8.90961 8.38258 9.26576 8.38258 9.48543 8.60225Z",fill:a}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.48543 10.8523C9.7051 11.0719 9.7051 11.4281 9.48543 11.6477L9.39775 11.7354C9.17808 11.9551 8.82192 11.9551 8.60225 11.7354C8.38258 11.5158 8.38258 11.1596 8.60225 10.9399L8.68994 10.8523C8.90961 10.6326 9.26576 10.6326 9.48543 10.8523Z",fill:a}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4854 8.60225C12.7051 8.82192 12.7051 9.17808 12.4854 9.39775L12.3977 9.48543C12.1781 9.7051 11.8219 9.7051 11.6023 9.48543C11.3826 9.26576 11.3826 8.9096 11.6023 8.68993L11.6899 8.60225C11.9096 8.38258 12.2658 8.38258 12.4854 8.60225Z",fill:a}))}},75762:function(e,t,a){"use strict";function r(e){const t=e||!0;return e=>"string"===typeof e?e.trim().length>0?null:t:Array.isArray(e)?e.length>0?null:t:null===e||void 0===e||!1===e?t:null}a.d(t,{U:function(){return r}})}}]);