"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4190],{To90:function(e,t,a){a.d(t,{C:function(){return o}});var n=a("q1tI");let o=(0,n.forwardRef)(function(e,t){return n.createElement("circle",Object.assign({},e,{ref:t}),n.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})},QDcS:function(e,t,a){a.d(t,{D:function(){return DrawerBottom}});var n=a("+MNf"),o=a("q1tI"),r=a("iuhU"),l=a("h8tX"),i=a("AatG"),s=a("rSBk"),c=a("rBCA"),d=a("iBNF"),p=a("+24l");(0,c.Z)(i.D)` /* max-height: 100vh; max-height: 100dvh; */ background-color: white; &[data-vaul-drawer-direction='bottom'] { top: initial !important; border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; padding-bottom: 32px; padding-left: 20px; padding-right: 20px; } .drawer__handle { width: 44px; height: 3px; background-color: ${d.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;let u=(0,c.Z)(s.dy.Content)` position: fixed; z-index: ${p.Z-9e6+1}; inset: 0; background-color: #fff; outline: none !important; &[data-is-linear='true'] { background: linear-gradient(180deg, #c3e3ff 1.86%, #fff 20%) !important; } &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-track { background-color: transparent; } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.4); border-radius: 6px; } &[data-vaul-drawer-direction='bottom'] { top: initial; border-top-left-radius: 16px; border-top-right-radius: 16px; /* padding-bottom: 16px; */ } ${e=>e.isDragging&&` input { caret-color: transparent; } `} `,m=(0,c.Z)(s.dy.Overlay)` position: fixed; inset: 0; z-index: ${p.Z-9e6}; width: 100%; max-height: 100%; background-color: rgb(0, 0, 0, 0.4); `,h=(0,c.Z)(s.dy.Handle)` &[data-vaul-handle] { width: 44px; height: 3px; background-color: ${d.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;function DrawerBottom(e){var{children:t,onClose:a,isOpen:c,onOpenChange:d,isMobile:p,classNames:g,isLinear:E,overlayClassName:b,contentClassName:f,handlerClassName:y,drawerOverlayProps:I}=e,T=(0,n._)(e,["children","onClose","isOpen","onOpenChange","isMobile","classNames","isLinear","overlayClassName","contentClassName","handlerClassName","drawerOverlayProps"]);let{isDragging:x,handleDragStart:v,handleDragEnd:_}=(0,i.u)(),{onDrag:O,onRelease:C}=T,N=(0,n._)(T,["onDrag","onRelease"]);return p?o.createElement(s.dy.Root,Object.assign({},N,{open:c,onOpenChange:d,onClose:a,onDrag:(e,t)=>{v(),null==O||O(e,t)},onRelease:(e,t)=>{_(),null==C||C(e,t)}}),o.createElement(s.dy.Portal,null,o.createElement(m,Object.assign({className:(0,r.default)(b,"drawer__overlay")},I)),o.createElement(u,{isDragging:x,className:(0,r.default)(f,"drawer__content"),"data-is-linear":E},o.createElement(s.dy.Title,{style:{display:"none"}}),o.createElement(h,{className:(0,r.default)(y,"drawer__handle")}),t))):o.createElement(l.u,Object.assign({withCloseButton:!0,centered:!0,zIndex:500,size:"auto",classNames:g,radius:"lg"},T,{onClose:a,opened:c,styles:{root:{maxHeight:"400px"},body:{background:E?"linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 20%)":void 0}}}),t)}},t4UM:function(e,t,a){a.d(t,{T:function(){return Tabs}});var n=a("+MNf"),o=a("q1tI"),r=a("aKYm"),l=a("VLUI"),i=a("/npG"),s=a("mYVa"),c=a("rlLN"),d=a("vaps"),p=a("mH4H"),u=a("UldL"),m=(0,i.k)((e,t)=>{let{variant:a}=t,n={content:"none",top:0,bottom:0,zIndex:1,width:(0,s.h)(56)};return Object.assign({},"inline"===a&&{root:{},tabsList:{gap:(0,s.h)(24),borderBottom:"none",flexWrap:"nowrap"},tab:{padding:`${(0,s.h)(8)} 0`,color:e.colors.gray[4],borderColor:"transparent",borderBottomWidth:(0,s.h)(2),marginBottom:(0,s.h)(-1),transition:"border 0.2s ease","&:hover":{backgroundColor:"initial",borderColor:"transparent"},"&[data-active='true']":{color:e.fn.primaryColor(),borderColor:e.fn.primaryColor()}},tabRightSection:{},tabLabel:{},tabIcon:{},panel:{},scrollArea:{position:"relative","&.prev-bg":{"&:before":Object.assign(Object.assign({},n),{content:'""',position:"absolute",left:0,background:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)"})},"&.next-bg":{"&:after":Object.assign(Object.assign({},n),{content:'""',position:"absolute",right:0,background:"linear-gradient(90deg, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%)"})}},list:{borderBottom:`1px solid ${e.colors.neutral[1]}`},btn:{position:"absolute",top:"50%",zIndex:2,transform:"translate(0, -50%)",width:(0,s.h)(28),height:(0,s.h)(28),padding:0,background:"white",borderRadius:"50%",cursor:"pointer",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))",".mantine-Button-icon":{display:"flex",alignItems:"center",justifyContent:"center"},"&.disabled":{opacity:0,zIndex:0}},prevBtn:{left:0},nextBtn:{right:0}})});let Tabs=e=>{var t,{variant:a="inline",value:i,styles:s,children:h,dataList:g=[],tabProps:E,listProps:b,panelProps:f,TabComponentDisplay:y,startPadding:I=40,defaultValue:T}=e,x=(0,n._)(e,["variant","value","styles","children","dataList","tabProps","listProps","panelProps","TabComponentDisplay","startPadding","defaultValue"]);let{cx:v,classes:_}=m({variant:a},{name:"Tabs",styles:s}),O=(0,o.useRef)(null),C=(0,o.useRef)([]),[N,S]=(0,o.useState)(T||(null===(t=null==g?void 0:g[0])||void 0===t?void 0:t.value)),[A,w]=(0,o.useState)(0),[L,R]=(0,o.useState)(!1),[k,M]=(0,o.useState)(!0),[D,P]=(0,o.useState)({x:0,y:0}),B=(0,o.useRef)(null),H=Object.assign({defaultValue:T,classNames:_},h?{value:i}:{value:N,onTabChange:e=>S(e)});(0,o.useEffect)(()=>{S(i)},[i]),(0,o.useEffect)(()=>{var e,t,a;null===(e=B.current)||void 0===e||e.scrollTo({left:(null===(a=null===(t=null==C?void 0:C.current)||void 0===t?void 0:t[A])||void 0===a?void 0:a.offsetLeft)-I,behavior:"smooth"})},[A]),(0,o.useEffect)(()=>{w(g.findIndex(e=>e.value==N))},[N]),(0,o.useEffect)(()=>{var e,t;M(0===D.x),R((null===(e=null==B?void 0:B.current)||void 0===e?void 0:e.clientWidth)+D.x===(null===(t=null==B?void 0:B.current)||void 0===t?void 0:t.scrollWidth))},[D]);let TabTextComponent=({text:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:n})=>y?o.createElement(y,null,e):o.createElement(u.T,{size:"s3",color:"inherit",weight:"semiBold","data-event-category":t,"data-event-action":a,"data-event-label":n},e);return o.createElement(c.m,Object.assign({},H,x),h||o.createElement(o.Fragment,null,o.createElement(d.x,{className:v(_.scrollArea,`${k?"":"prev-bg"} ${L?"":"next-bg"}`),scrollbarSize:0,viewportRef:B,onScrollPositionChange:P},o.createElement(c.m.List,Object.assign({className:_.list,ref:O},b),g.map((e,t)=>o.createElement(c.m.Tab,Object.assign({ref:e=>C.current[t]=e,className:_.tab,key:String(e.value),value:String(e.value)},E),o.createElement(TabTextComponent,Object.assign({},e))))),o.createElement(p.B,{className:v(_.btn,_.prevBtn,k?"disabled":""),unstyled:!0,onClick:()=>w(A-1>-1?A-1:0),leftIcon:o.createElement(r.Z,{size:16})}),o.createElement(p.B,{className:v(_.btn,_.nextBtn,L?"disabled":""),unstyled:!0,onClick:()=>w(A+1o.createElement(c.m.Panel,Object.assign({value:String(e.value),key:String(e.value)},f),e.content))))};Tabs.List=c.m.List,Tabs.Tab=c.m.Tab,Tabs.Panel=c.m.Panel},"638w":function(e,t,a){a.d(t,{F:function(){return Footer}});var n=a("q1tI"),o=a("rL2a"),r=a("Wgwc"),l=a.n(r),i=a("SPK5"),s=a("OAL+"),c=a("Eso5"),d=a("UldL"),p=a("Dt6F"),u=a("oxWm"),m=a("rBCA"),h=a("iBNF"),g=a("xrdX"),E=a("DzJw"),b=a("KLrS");let f=m.Z.footer` background-color: #1b3250; .inner { padding: 64px 24px 98px 24px; margin: 0 auto; } .newsletter { padding: 24px 0; } .footer-logo { max-width: 132px; max-height: 32px; &[data-is-sehat='true'] { max-width: 250px; } img { object-fit: contain; } } .social { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; > .icons { display: flex; gap: 16px; } } hr { height: 1px; border: none; margin: 16px 0 16px 0; background: ${h.r.colors.neutral500}; opacity: 0.1; outline: none; } .footer-menu-column { min-width: 168px; } .footer-menu-title { margin-bottom: 16px; } .footer-menu-link { display: block; } .footer-menu-link-wrapper { display: flex; flex-direction: column; gap: 12px; } .copyright { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; .copyright-content { color: ${h.r.colors.neutral500}; font-size: 12px; } .copyright-image-wrapper { flex-shrink: 0; flex-wrap: wrap; display: flex; gap: 16px; justify-content: flex-end; .copyright-image { align-self: flex-start; img { height: 32px; } } } } .otherSites { display: flex; gap: 16px; align-items: center; padding: 19px 0; border-top: 1px solid ${h.r.colors.neutral100}1a; border-bottom: 1px solid ${h.r.colors.neutral100}1a; .flags { display: flex; gap: 12px; } } .signupButton { display: none; border: none; margin-top: 16px; outline: none; text-transform: uppercase; } ${p.M.mbDown} { .inner { padding: 64px 0; } .social { flex-direction: column; gap: 10px; align-items: start; } hr { margin-top: 0px; } .copyright { align-items: center; text-align: center; } .copyright-image-wrapper { justify-content: center; max-width: unset; } .otherSites { flex-direction: column; padding: 24px 0; .linkTitle { text-align: center; } .flags { flex-wrap: wrap; justify-content: center; } } .footer-menu-title { margin-bottom: 12px; } .footer-menu { display: grid; grid-template-columns: repeat(2, 1fr); > .footer-menu-column { padding: 24px 0; } > .footer-menu-column:first-child { grid-column-start: 1; grid-column-end: 3; border-top: 1px solid ${h.r.colors.neutral100}1a; border-bottom: 1px solid ${h.r.colors.neutral100}1a; > .footer-menu-link-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); } } } .otherSites { margin-bottom: 24px; } } ${p.M.mbUp} { .newsletter > p { max-width: 360px; } .hrMobile { display: none; } .copyright { gap: 24px; flex-direction: row-reverse; align-items: center; justify-content: space-between; } .otherSites { margin-bottom: 40px; } .columns { display: flex; flex-direction: row; width: 100%; gap: 16px; margin-bottom: 40px; > div:nth-child(1) { display: flex; flex-direction: column; flex: 1; } > div:nth-child(2) { display: flex; flex-direction: row; gap: 24px; } } } `,y=m.Z.img` width: 32px; height: 32px; ${p.M.mbDown} { width: 24px; height: 24px; } .country-flag { width: 100%; height: 100%; } `,Flag=({url:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:o})=>n.createElement(y,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":a,"data-content-label":o}),FooterMenuColumn=({title:e,items:t,locale:a,index:o})=>{let{isMobile:r}=(0,u.u)();return n.createElement("div",{className:"footer-menu-column"},e?n.createElement(d.T,{size:r?"s4":"s3",className:"footer-menu-title",weight:r?"regular":"semiBold",color:"neutral.6"},e):null,n.createElement("div",{className:"footer-menu-link-wrapper"},null==t?void 0:t.map((e,t)=>n.createElement(d.T,{size:r?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${g.v[a]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:r&&0===o?"semiBold":"regular"},e.title))))},DiscoverFooter=({className:e,footerInfo:t,locale:a})=>{var r,i,s,c,p,m,h,g,E,b,y;let{isMobile:I}=(0,u.u)(),T=null==t?void 0:t.menu,x=(null===(i=null===(r=null==t?void 0:t.general)||void 0===r?void 0:r.verified)||void 0===i?void 0:i.filter(Boolean))||[];return n.createElement(f,{className:e},n.createElement(o.C,null,n.createElement("div",{className:"inner"},n.createElement("a",{href:"/"},n.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(s=null==t?void 0:t.general)||void 0===s?void 0:s.logo,alt:"Logo","data-is-sehat":"id-ID"===a})),n.createElement("div",{className:"columns"},n.createElement("div",{className:"newsletter"},n.createElement(d.T,{size:I?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(c=null==t?void 0:t.general)||void 0===c?void 0:c.content),n.createElement("div",{className:"social"},n.createElement(d.T,{size:"p4",color:"neutral.6"},null===(p=null==t?void 0:t.social)||void 0===p?void 0:p.title),n.createElement("div",{className:"icons"},null===(h=null===(m=null==t?void 0:t.social)||void 0===m?void 0:m.socials)||void 0===h?void 0:h.map((e,t)=>n.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},n.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon",width:"24",height:"24"})))))),n.createElement("div",{className:"footer-menu"},T&&n.createElement(n.Fragment,null,null==T?void 0:T.map((e,t)=>n.createElement(FooterMenuColumn,{title:e.menu_title,items:e.items,locale:a,key:t,index:t}))))),n.createElement("div",{className:"otherSites"},n.createElement(d.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(g=null==t?void 0:t.branch)||void 0===g?void 0:g.title),n.createElement("div",{className:"flags"},null===(b=null===(E=null==t?void 0:t.branch)||void 0===E?void 0:E.branch)||void 0===b?void 0:b.map((e,t)=>n.createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},n.createElement(Flag,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url}))))),n.createElement("div",{className:"copyright"},n.createElement("div",{className:"copyright-image-wrapper"},x.length?x.map((e,t)=>n.createElement("a",{href:e.url,key:t,className:"copyright-image"},n.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))):null),n.createElement(d.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null===(y=null==t?void 0:t.general)||void 0===y?void 0:y.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}}))))))},I=m.Z.footer` position: relative; overflow: hidden; .icons { margin-top: 12px; margin-bottom: 20px; > a:not(:last-child) { margin-right: 16px; } } a { text-decoration: none; } `,T=m.Z.div` position: relative; padding: 80px 0 40px; margin: auto 68px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid ${h.r.colors.neutral200}; ${p.M.tdDown} { margin: auto 16px; flex-wrap: wrap; row-gap: 32px; column-gap: 16px; } ${p.M.mbDown} { margin: auto 0; } `,x=m.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; ${p.M.mbDown} { flex: 1 1 160px; } .title { padding-bottom: 4px; } `,v=m.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; `,_=m.Z.div` background-color: #{map-get($mbColors, 'dark')}; padding: 16px 0; position: relative; img { width: 89px; height: 32px; } .content { display: flex; align-items: center; justify-content: space-between; gap: 174px; margin: auto 68px; ${p.M.tdDown} { margin: auto 16px; } ${p.M.mbDown} { flex-direction: column-reverse; gap: 16px; align-items: flex-start; margin: auto 0; } } .verify { display: flex; align-items: flex-start; gap: 8px; } `,O=m.Z.div` padding: 40px 0; ${p.M.mbUp} { margin: auto 68px; } `,C=m.Z.div` display: flex; gap: 16px; .social-logo { width: 28px; } `,MarryBabyFooter=({logoType:e="marryBaby",footerMenu:t,background:a})=>{var r;if(!t)return null;let{general:p,menu:u,socials:m}=t;return n.createElement(I,{style:{backgroundColor:a||"none"}},n.createElement(o.C,null,n.createElement(T,null,null==u?void 0:u.map(({menu_title:e,items:t},a)=>n.createElement(x,{key:`mbf${a}`},n.createElement(b.M,{className:"title",type:"subtitle-1",color:h.r.mbColors.pink},e),null==t?void 0:t.map(({title:e,url:t},a)=>n.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},n.createElement(v,{key:`mbitem${a}`},n.createElement(b.M,{type:"bodytext-2",color:h.r.mbColors.gray},e)))))))),n.createElement(o.C,null,n.createElement(O,null,n.createElement(i.k,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},n.createElement(s.K,{spacing:"24px",className:"info-item"},n.createElement(E.L,{className:"logo",type:e}),n.createElement(d.T,{size:"p4",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.content}})),n.createElement(C,null,null==m?void 0:m.map(({icon:e,name:t,url:a},o)=>n.createElement("a",{key:`social${o}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},n.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t}))))),n.createElement(c.x,{className:"info-item",sx:{paddingTop:"7px"}},n.createElement(d.T,{size:"p4",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.information}})))))),n.createElement(_,null,n.createElement(o.C,null,n.createElement("div",{className:"content"},n.createElement(d.T,{size:"p5",color:"#fff",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}})),n.createElement("div",{className:"verify"},null===(r=null==p?void 0:p.verified)||void 0===r?void 0:r.map(({image:e,url:t},a)=>n.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))},Footer=({locale:e,footerInfo:t,siteType:a,background:o})=>"helloSites"===a?n.createElement(DiscoverFooter,{locale:e,footerInfo:t||{}}):n.createElement(MarryBabyFooter,{footerMenu:t,background:o})},DOwl:function(e,t,a){a.d(t,{B:function(){return BabyVaccineForm}});var n,o,r=a("+MNf"),l=a("q1tI"),i=a("iuhU"),s=a("8vDj"),c=a("cChf"),d=a("ZFu2"),p=a("1BUe"),u=a("UldL"),m=a("eyMb"),h=a("MtwO"),g=a("FM21"),E=a("jK4w"),b=a("fkrl");let f=(0,l.createContext)({}),DefaultLayout=e=>{var t=(0,r._)(e,[]);let{t:a}=(0,m.u)(),{currentUrl:n,submitProps:o,form:s}=(0,l.useContext)(f),{classes:c={}}=(0,l.useContext)(h.C);return l.createElement(g.H,Object.assign({formLayout:"default"},t),l.createElement(g.H.FormRow,null,l.createElement(E.G,Object.assign({isBaby:!0},s.getInputProps("gender")))),l.createElement(g.H.FormRow,null,l.createElement(p.D,Object.assign({label:l.createElement(u.T,{size:"p2",weight:"semiBold"},a("babyGrowth.input.birthday")),placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},s.getInputProps("age")))),l.createElement(g.H.FormRow,{className:c.submitWrapper},l.createElement(g.H.Submit,Object.assign({type:"submit",className:(0,i.default)("due-date-calculate-button",c.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,r._)(e,[]);let{t:a}=(0,m.u)(),{currentUrl:n,submitProps:o,form:s}=(0,l.useContext)(f),{classes:c={}}=(0,l.useContext)(h.C);return l.createElement(g.H,Object.assign({formLayout:"inline"},t),l.createElement(g.H.FormRow,null,l.createElement(g.H.BorderInlineControl,{label:a("tools.selectBabyGender"),width:"none"},l.createElement(E.G,Object.assign({isBaby:!0,hideLabel:!0,type:"radio"},s.getInputProps("gender")))),s.errors.gender&&l.createElement(g.H.Error,null,s.errors.gender)),l.createElement(g.H.FormRow,null,l.createElement(g.H.BorderInlineControl,{label:a("babyGrowth.input.birthday")},l.createElement(p.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},s.getInputProps("age"),{error:null}))),s.errors.age&&l.createElement(g.H.Error,null,s.errors.age)),l.createElement(g.H.FormRow,{className:c.submitWrapper},l.createElement(g.H.Submit,Object.assign({type:"submit",className:(0,i.default)("due-date-calculate-button",c.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,r._)(e,[]);let{t:a}=(0,m.u)(),{currentUrl:n,submitProps:o,form:i}=(0,l.useContext)(f);return l.createElement(g.H,Object.assign({formLayout:"default"},t),l.createElement(g.H.Control,null,l.createElement(E.G,Object.assign({isBaby:!0},i.getInputProps("gender"),{error:null}))),i.errors.gender&&l.createElement(g.H.Error,null,i.errors.gender),l.createElement(g.H.FormRow,null,l.createElement(g.H.BorderBoxControl,{label:a("babyGrowth.input.birthday"),rightSection:l.createElement(b.Z,null)},l.createElement(p.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("age"),{error:null}))),i.errors.age&&l.createElement(g.H.Error,null,i.errors.age)),l.createElement(g.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:n},o),a("dueDatePage.lastPeriod.calculate")))};(n=o||(o={}))[n.trackPeriod=0]="trackPeriod",n[n.conceive=1]="conceive",n[n.avoidPregnancy=2]="avoidPregnancy";let BabyVaccineForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:n,onSubmit:o}=e,i=(0,r._)(e,["formLayout","submitProps","currentUrl","onSubmit"]);let{t:p}=(0,m.u)(),u=(0,s.rZ)(),h="mb"===u.other.template,g=(0,c.c)({validate:{gender:(0,d.U)(p("validation.error.requiredField")),age:(0,d.U)(p("validation.error.requiredField"))}}),E=Object.assign({onSubmit:g.onSubmit(o)},i);return l.createElement(f.Provider,{value:{submitProps:a,currentUrl:n,form:g}},"inline"===t?l.createElement(InlineLayout,Object.assign({},E)):h?l.createElement(MbLayout,Object.assign({formLayout:t},E)):l.createElement(DefaultLayout,Object.assign({},E)))}},oxWm:function(e,t,a){a.d(t,{I:function(){return ImageWrap},u:function(){return useScreenSize}});var n=a("q1tI"),o=a("Dt6F"),r=a("+MNf"),l=a("rBCA");let getIsMobile=()=>"undefined"!=typeof window&&window.innerWidth"undefined"!=typeof window&&window.innerWidth>=o.B.BREAK_POINT_MOBILE&&window.innerWidth{let[e,t]=(0,n.useState)(getIsMobile()),[a,o]=(0,n.useState)(getIsLargeMobile());return(0,n.useEffect)(()=>{let handleResize=()=>{t(getIsMobile()),o(getIsLargeMobile())};return window.addEventListener("resize",handleResize,{passive:!0}),()=>{window.removeEventListener("resize",handleResize)}},[]),{isMobile:e,isLargeMobile:a}},ImageWrap=e=>{var{alt:t,backupSrc:a,src:o,placeholderSrc:l,style:s,ref:c}=e,d=(0,r._)(e,["alt","backupSrc","src","placeholderSrc","style","ref"]);let[p,u]=(0,n.useState)(!1);return n.createElement(i,Object.assign({loading:"lazy",alt:t,onError:()=>!p&&u(!0),src:p?a||o:o||a,style:Object.assign(Object.assign({},l?{backgroundImage:`url(${l})`}:{}),s),"data-has-placeholder":!!l,ref:c},d))},i=l.Z.img` &[data-has-placeholder='true'] { background-position: center; background-repeat: no-repeat; background-size: cover; } `},jK4w:function(e,t,a){a.d(t,{G:function(){return GenderOptionControl}});var n=a("+MNf"),o=a("q1tI"),r=a("OyPk"),l=a("XHvu"),i=a("/npG"),s=a("mYVa"),c=a("Eso5"),d=a("SPK5"),p=a("u5t1"),u=a("5SVV"),m=a("UldL"),h=a("eyMb");let g={lg:{height:48},md:{height:40},sm:{height:32},xs:{height:32}};var E=(0,i.k)((e,{type:t,gap:a,size:n})=>{let o="mb"===e.other.template,r=g[n]||{},l=r.height;return{root:{},wrapper:Object.assign({gap:(0,s.h)(a||8)},"radio"===t&&{justifyContent:"flex-end",gap:(0,s.h)(a||24)}),groupErr:{fontSize:(0,s.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,s.h)(10)} 0`,margin:0}:{}),itemLabelWrapper:{padding:0,width:"100%"},itemLabel:Object.assign({whiteSpace:"nowrap"},"button"===t?{position:"relative",padding:`${(0,s.h)(2)} ${(0,s.h)(16)}`,border:`1px solid ${o?"#EAEAEC":e.colors.gray[2]}`,backgroundColor:"#fff",borderRadius:(0,s.h)(o?16:4),cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",height:l,'&[data-disabled="true"]':{background:e.colors.gray[1],color:`${e.colors.gray[4]} !important`,img:{opacity:.5}},img:{height:(0,s.h)("lg"===n?26:22)}}:"radio"===t?{fontSize:(0,s.h)(14)}:{}),itemInner:Object.assign(Object.assign({},"button"===t&&{display:"none"}),"radio"===t&&{alignSelf:"center"}),itemBody:Object.assign({},"radio"===t&&{alignItems:"center"})}});let GenderOptionControl=e=>{var{label:t,availableValue:a,styles:i,isBaby:g,genderValue:b={male:"male",female:"female"},type:f="button",hideLabel:y,labelTextProps:I,labelText:T,gap:x,size:v="md",LabelWrapper:_}=e,O=(0,n._)(e,["label","availableValue","styles","isBaby","genderValue","type","hideLabel","labelTextProps","labelText","gap","size","LabelWrapper"]);let{t:C}=(0,h.u)(),{classes:N,cx:S,theme:A}=E({type:f,gap:x,size:v},{name:"GenderOptionControl",styles:i}),w="mb"===A.other.template,[L,R]=(0,o.useState)(),k=(0,o.useRef)(null),M=_?{}:Object.assign({as:"label",size:"p2",weight:"semiBold",variant:"primary"},I),D=_||m.T,P=(0,o.useMemo)(()=>[{value:b.male,label:g?C("gender.boy"):C("gender.male"),icon:g?w?o.createElement(r.Z,null):u.C.getAssetPath("health-tools/boy-icon.svg"):u.C.getAssetPath("health-tools/male-icon.svg")},{value:b.female,label:g?C("gender.girl"):C("gender.female"),icon:g?w?o.createElement(l.Z,null):u.C.getAssetPath("health-tools/girl-icon.svg"):u.C.getAssetPath("health-tools/female-icon.svg")}],[]);return(0,o.useEffect)(()=>{R(a)},[a]),o.createElement(c.x,{ref:k,className:N.root},o.createElement(p.R.Group,Object.assign({className:"radio-group",label:y?void 0:o.createElement(D,Object.assign({id:"gender-option-control-label"},M),t||(g?C("tools.selectBabyGender"):C("tools.selectGender"))),size:"lg"},O,{classNames:{error:N.groupErr}},"radio"===f&&{error:null}),o.createElement(d.k,{className:S(N.wrapper)},P.map(e=>o.createElement(p.R,Object.assign({className:"gender-item",size:"sm",classNames:{root:N.itemRoot,labelWrapper:N.itemLabelWrapper,label:N.itemLabel,inner:N.itemInner,body:N.itemBody},key:e.value,value:e.value},L&&e.value!==L&&{disabled:!0},{label:o.createElement(d.k,{gap:(0,s.h)(8),align:"center",justify:"center",sx:{zIndex:0}},"button"===f&&("string"==typeof e.icon?o.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}):e.icon),o.createElement(m.T,Object.assign({size:"p3"},T),e.label))}))))))}},Naig:function(e,t,a){a.d(t,{L:function(){return Loading}});var n=a("q1tI"),o=a("KtSi"),r=a("eyMb"),l=a("AeFk"),i=a("rBCA"),s=a("iBNF");let c=i.Z.div` display: flex; align-items: center; justify-content: center; padding: 1em; button { position: relative; } `,d=l.F4` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `;i.Z.div` display: flex; width: fit-content; width: -moz-fit-content; flex-direction: column; align-items: center; justify-content: center; padding: 1rem 2rem; background: white; border-radius: ${s.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); .loading-spinner { width: 24px; height: 24px; margin-bottom: 0.5rem; animation: ${d} 1.2s linear infinite; } &[data-is-marrybaby='true'] { box-shadow: none; } `;let Loading=({className:e,size:t="md"})=>{let{t:a}=(0,r.u)();return n.createElement(c,{className:e},n.createElement(o.B,{size:t,color:"transparent",isLoading:!0},a("loading")))}},PrkZ:function(e,t,a){a.d(t,{T:function(){return TextArea}});var n=a("+MNf"),o=a("q1tI"),r=a("0qvZ"),l=a("u5t1"),i=a("4Jk+");let TextArea=e=>{var{styles:t}=e,a=(0,n._)(e,["styles"]);let s=(0,i.u)(),{classes:c}=(0,l.u)({variantStyle:s},{name:"MantineTextarea",styles:t});return o.createElement(r.g,Object.assign({classNames:{input:c.input},minRows:2,maxRows:4},a))}},wLwB:function(e,t,a){a.d(t,{B:function(){return BlueWhiteLogin},N:function(){return NavigationProfileButton},U:function(){return UserPlain},a:function(){return _},b:function(){return NavigationProvider},u:function(){return useCSSFocusPopupHelper}});var n=a("+MNf"),o=a("q1tI"),r=a("nmRb"),l=a("njy3"),i=a("u5t1"),s=a("mH4H"),c=a("UldL"),d=a("eyMb"),p=a("5SVV"),u=a("iBNF"),m=a("rBCA"),h=a("Dt6F"),g=a("gEnE"),E=a("xXM3"),b=a.n(E),f=a("+24l"),y=a("9cAc"),I=a("mF45"),T=a("xrdX"),x=a("QHxc"),v=a("hPj0");let BlueWhiteLogin=e=>o.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),o.createElement("path",{d:"M15.4999 14.3797C16.9062 14.3797 18.0462 13.2397 18.0462 11.8334C18.0462 10.4271 16.9062 9.28711 15.4999 9.28711C14.0936 9.28711 12.9536 10.4271 12.9536 11.8334C12.9536 13.2397 14.0936 14.3797 15.4999 14.3797Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.9092 22.0335C20.7055 21.7825 21.124 20.9029 20.786 20.1399C19.8879 18.1112 17.861 16.6946 15.4999 16.6946C13.1388 16.6946 11.112 18.1112 10.2138 20.1399C9.87585 20.9038 10.2944 21.7825 11.0907 22.0335C12.2249 22.3909 13.7258 22.7131 15.4999 22.7131C17.274 22.7131 18.7749 22.3909 19.9092 22.0335Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),UserPlain=e=>o.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{d:"M9.99991 8.3797C11.4062 8.3797 12.5462 7.23969 12.5462 5.83341C12.5462 4.42712 11.4062 3.28711 9.99991 3.28711C8.59363 3.28711 7.45361 4.42712 7.45361 5.83341C7.45361 7.23969 8.59363 8.3797 9.99991 8.3797Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M14.4092 16.0335C15.2055 15.7825 15.624 14.9029 15.286 14.1399C14.3879 12.1112 12.361 10.6946 9.99992 10.6946C7.63881 10.6946 5.61196 12.1112 4.71381 14.1399C4.37585 14.9038 4.79436 15.7825 5.59066 16.0335C6.72492 16.3909 8.22584 16.7131 9.99992 16.7131C11.774 16.7131 13.2749 16.3909 14.4092 16.0335Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),useNavConfig=({locale:e,projectType:t,siteType:a,enableBookingBtn:n})=>{let r=(0,o.useMemo)(()=>{let o="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===a,r="marryBaby"!==a&&"marryBaby"!==t&&f.C.includes(e),l=n&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==a&&f.d.includes(e),i="marryBaby"===t||f.c.includes(e),s="marryBaby"!==a&&f.E.includes(e),c="marryBaby"!==a&&f.E.includes(e),d=f.V.includes(e),p=f.H.includes(e),u=f.e.includes(e),m=(0,I.g)(e,"marryBaby"===a),h=m;"undefined"!=typeof window&&(h.includes("//id.")&&(h=h.replace("id.","")),h.includes("//staging-id.")&&(h=h.replace("staging-id.","discover.")));let g=(0,I.a)(e,"marryBaby"===a),E={HOME_PAGE_URL:h,CARE_URL_FE:`${h}/care`,TOGETHER_URL_FE:`${h}/community`,VIDEO_URL_FE:`${h}/videos`,SSO_URL:g,TOGETHER_API:(0,I.b)(),DISCOVER_API:(0,I.c)(e)};return{enableSearchBar:o,enableNavCare:r,enableNavCareBooking:l,enableNavTogether:i,enableNavEcom:s,enableProfileEcom:c,enableNavVideo:d,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:E,enableNavClinityDownload:p,enableNavCartCare:u}},[]);return r},_=o.createContext({}),NavigationProvider=e=>{var{children:t}=e,a=(0,n._)(e,["children"]);let[r,l]=o.useState(()=>a.currentUrl||`https://${"marryBaby"===a.siteType?y.d[a.locale||"en-PH"]:T.v[a.locale||"en-PH"]}${"together"===a.projectType?"/community":"ecom"===a.projectType?"/ecom":"care"===a.projectType?"/care":""}/`);(0,o.useEffect)(()=>{let update=()=>{l(window.location.href)};return window.addEventListener("popstate",update),update(),()=>{window.removeEventListener("popstate",update)}},[]);let i=useNavConfig({locale:a.locale,projectType:a.projectType,siteType:a.siteType,enableBookingBtn:a.enableBookingBtn});return o.createElement(_.Provider,{value:Object.assign(Object.assign({},a),{customClasses:a.customClasses||{},configs:Object.assign(Object.assign({},i),a.configs),currentUrl:a.currentUrl||r})},t)},useCSSFocusPopupHelper=e=>{let{allowBgScroll:t}=e||{},a=(0,o.useRef)();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},O=(0,g.Z)(m.Z.div` position: absolute; right: 0; transition: all 0.5s ease-in-out; overflow-y: auto; &[data-open='true'] { z-index: 200; top: 120%; opacity: 1; visibility: visible; } &[data-open='false'] { display: none; } .popup-content { z-index: 111; height: 100%; border: 1px solid #0000001a; border-radius: 16px; border-top-left-radius: 0; border-top-right-radius: 0; } /* min-height: 415px; */ ${h.M.mbUp} { width: 320px; } ${h.M.mbDown} { position: fixed; left: 0; width: 100%; padding-bottom: 70px; } `,"hhgcomp-navprofilebutton-popup"),C=(0,g.Z)(m.Z.div` position: fixed; z-index: 150; top: var(--header-bottom, 56px); left: 0; width: 100%; height: 100%; align-items: center; ${h.M.mbUp} { background-color: transparent; &[data-type='welcome'] { background: rgba(38, 38, 38, 0.3); } &[data-type='due-date'] { background: rgba(38, 38, 38, 0.3); } } ${h.M.mbDown} { background: rgba(38, 38, 38, 0.3); } &[data-type='welcome'] { top: 0; } &[data-open='false'] { display: none; } `,"hhgcomp-navprofilebutton-popupwrapper"),N=m.Z.div` width: 36px; height: 36px; cursor: pointer; img { border-radius: 50%; } .avatar { width: 36px; height: 36px; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${u.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 20px; font-weight: bold; } `,S=m.Z.div` display: inline-flex; position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; cursor: pointer; .user-close-icon { display: none; } &:focus-within { .user-close-icon { display: block; } .user-avatar { display: none; } ${O.classSelector} { z-index: 200; top: 120%; opacity: 1; visibility: visible; display: initial; ${h.M.mbDown} { top: 100%; } } ${C.classSelector} { display: initial; } } `,A=m.Z.a` display: inline-flex; .login-btn[data-color='tertiary'][data-size='md'] { padding-left: 12px; padding-right: 12px; } .mobile-only { ${h.M.mbUp} { display: none; } } .login-btn { display: none; ${h.M.mbUp} { display: block; border: 1px solid ${u.r.colors.neutral100}; } } &[data-win-cash-back-theme='true'] { .login-btn { ${h.M.mbUp} { color: ${u.r.colors.white}; } } } `,ProfilePopup=({isOpen:e,userInfo:t,closePopup:a,siteType:n="helloSites",dispatchLogout:r})=>{let{customClasses:l={},configs:{enableProfileFindMyBooking:i}}=(0,o.useContext)(_);return o.createElement(O,{className:l.profilePopup,"data-open":e},o.createElement("div",{className:b()("popup-content",l.profilePopupContent)},o.createElement(x.l,{siteType:n,onLogout:()=>{r&&(r(),a())},userInfo:t,configs:{enableProfileFindMyBooking:i}})))},NavigationProfileButton=({userInfo:e,siteType:t,onLoginClick:a,currentUrl:m,isMinifyLogin:h,onLogout:g,style:E,isLoading:b,isMobile:f,className:y})=>{let{isWinCashBackTheme:I}=(0,o.useContext)(_),{t:T}=(0,d.u)(),[x,O]=(0,o.useState)(!1),C=(null==e?void 0:e.name)||(null==e?void 0:e.username),{containerRef:w,onContainerFocus:L,onContainerBlur:R,onButtonMouseDown:k,onClose:M}=useCSSFocusPopupHelper(),D=(0,o.useMemo)(()=>f&&"helloSites"===t,[f]);return b?D?o.createElement(l.S,null):o.createElement(s.B,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?o.createElement(o.Fragment,null,o.createElement(S,{ref:w,style:E,tabIndex:0,onBlur:R,onFocus:()=>{var e;L();let t=null===(e=w.current)||void 0===e?void 0:e.querySelector("#navigation-v2 .hhgcomp-navprofilebutton-popup");if(t){let e=t.getBoundingClientRect(),a=e.top,n=`calc(100vh - ${a}px)`;t.setAttribute("style",`max-height: ${n};`)}},className:y},o.createElement("div",{onMouseDown:k},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},o.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),o.createElement(i.A,{size:32,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===t?u.r.mbColors.pink:u.r.colors.secondaryBase,placeholderText:C&&C.length?C[0].toUpperCase():"A"})),o.createElement(ProfilePopup,{dispatchLogout:()=>{M(),O(!0)},isOpen:!1,closePopup:M,siteType:t,userInfo:e})),o.createElement(v.F,{openLogoutPopup:x,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),O(!1)},siteType:t,onLogoutHandler:()=>(0,n.a)(void 0,void 0,void 0,function*(){O(!1),document.body.classList.toggle("noscroll",!1),yield g()})})):o.createElement(A,{style:Object.assign({textDecoration:"none"},E),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":m,"data-win-cash-back-theme":I,"data-site-type":t,onClick:a},h?o.createElement(N,null,o.createElement("img",{src:p.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):o.createElement(o.Fragment,null,"helloSites"===t&&(D?I?o.createElement(BlueWhiteLogin,{className:"mobile-only",style:{cursor:"pointer",width:32,height:32,flexShrink:0}}):o.createElement("img",{className:"mobile-only",src:p.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):o.createElement(s.B,{className:"mobile-only",size:"sm",leftIcon:o.createElement(r.Z,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},T("navigation.loginJoin"))),"marryBaby"===t&&o.createElement("div",{className:"mobile-only",style:{paddingLeft:16}},o.createElement(c.T,{size:"p3",color:u.r.mbColors.pink},T("navigation.loginJoin"))),"marryBaby"===t?o.createElement(s.B,{className:"login-btn",size:"md",leftIcon:o.createElement(r.Z,{color:"currentColor",isSolid:!0,size:22})},T("navigation.loginJoin")):o.createElement(s.B,{className:"login-btn",size:"md",leftIcon:I?o.createElement(UserPlain,{style:{flexShrink:0,width:20,height:20}}):o.createElement(r.Z,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626",sx:{fontWeight:500,fontSize:14,lineHeight:22}},T("navigation.loginJoin"))))}},VDdh:function(e,t,a){a.d(t,{T:function(){return Text}});var n=a("+MNf"),o=a("q1tI"),r=a("UldL");let Text=e=>{var{size:t="base",type:a="regular"}=e,l=(0,n._)(e,["size","type"]);return o.createElement(r.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":l.wordWrap,"data-is-uppercase":l.isUppercase},l))}},aTHo:function(e,t,a){a.d(t,{C:function(){return Checkbox},I:function(){return ImageWrapV2},P:function(){return Pagination},S:function(){return x},a:function(){return f},b:function(){return SearchInput},c:function(){return Search2}});var n=a("q1tI"),o=a("rBCA"),r=a("Dt6F"),l=a("iBNF"),i=a("+MNf"),s=a("3hJ3"),c=a("xrdX"),d=a("eyMb"),p=a("u5t1"),u=a("AatG");let Search2=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 25",fill:"none"},e),n.createElement("path",{d:"M11 18.957C14.866 18.957 18 15.823 18 11.957C18 8.09104 14.866 4.95703 11 4.95703C7.13401 4.95703 4 8.09104 4 11.957C4 15.823 7.13401 18.957 11 18.957Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M20 20.957L16 16.957",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),m=o.Z.div` display: flex; cursor: pointer; &[data-theme='marryBaby'] { input { width: 20px; height: 20px; border: 1.3px solid ${l.r.mbColors.midGray}; border-radius: 9px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${l.r.mbColors.cobalt}; box-shadow: 0 0 2px 2px ${l.r.mbColors.cobalt}; } &:focus-visible { border: 2px solid ${l.r.mbColors.cobalt}; } &:checked { border: 0; background: ${l.r.mbColors.cobalt} url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3.45455 6L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; } } label { max-width: 15rem; margin-left: 8px; width: calc(100% - 24px); cursor: inherit; font-weight: 600; font-size: 12px; line-height: 20px; letter-spacing: -0.2px; color: ${l.r.mbColors.gray}; } } input { width: 20px; height: 20px; border: solid 1px ${l.r.colors.gray500}; border-radius: 2px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${l.r.colors.primaryBase}; box-shadow: 0 0 2px 2px ${l.r.colors.primary200}; } &:focus-visible { border: 2px solid ${l.r.colors.primaryActive}; } &:checked { border: 0; background: ${l.r.colors.primaryBase} url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L4.125 8L1 4.81819' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; } } label { max-width: 15rem; margin-left: 8px; font-weight: ${l.r.sizes.fwRegular}; width: calc(100% - 24px); cursor: inherit; ${r.M.mbDown} { font-size: 14px; line-height: 24px; } ${r.M.mbUp} { font-size: 16px; line-height: 22px; } } &[data-is-rectangle] > input { position: relative; width: unset; height: unset; padding: 5px 12px; border: 1px solid ${l.r.colors.neutral100}; border-radius: 32px; &::after { color: ${l.r.colors.gray800}; content: attr(data-label-text); font-size: 13px; } &:checked { border-color: ${l.r.colors.primary50}; &::after { color: ${l.r.colors.primaryBase}; } } &:checked { background: ${l.r.colors.primary50}; } } &[data-disabled] { color: ${l.r.colors.gray300}; cursor: not-allowed; input { border-color: ${l.r.colors.gray300}; &:hover { border-color: ${l.r.colors.gray300}; box-shadow: none; } } } `,Checkbox=({label:e,name:t,checked:a,className:o,isDisabled:r,onChange:l,value:i,isRectangle:s,inputDataTestId:c,siteType:d})=>n.createElement(m,{className:o,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":d},n.createElement("input",{type:"checkbox",checked:a,name:t,onChange:()=>l(i,!a),disabled:r,value:i,id:`${t}-${i}`,"data-label-text":e,"data-testid":c}),!s&&n.createElement("label",{htmlFor:`${t}-${i}`},e)),h=o.Z.div` display: flex; align-items: center; justify-content: space-between; user-select: none; li { transition: all 0.3s ease; } [data-page-active] { background: ${l.r.colors.primaryBase}; color: ${l.r.colors.white}; > a { color: ${l.r.colors.white}; } } `,g=o.Z.div` display: flex; width: 32px; height: 32px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid ${l.r.colors.gray200}; margin: 0 2px; border-radius: 4px; color: ${l.r.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${l.r.sizes.fwBold}; &[data-last-page] { border: none; background-color: ${l.r.colors.gray100}; cursor: not-allowed; pointer-events: none; svg { path { stroke: ${l.r.colors.gray300}; } } } `,E=o.Z.li` display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 4px; color: ${l.r.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${l.r.sizes.fwBold}; > a { color: ${l.r.colors.gray800}; text-decoration: unset; display: block; width: 100%; height: 100%; line-height: 32px; text-align: center; } `,RenderPagiWithDots=({pagesAmount:e,activePage:t,handlePageChange:a,handleClick:o,href:l,queryPageName:i="page"})=>{let s=[...Array(e)].map((e,t)=>t+1),[c,d]=(0,n.useState)(t<=4?s.slice(0,5):t>=s.length-3?s.slice(s.length-5,s.length):s.slice(t-2,t+1));return(0,n.useEffect)(()=>{t<=4?d(s.slice(0,5)):t>=s.length-3?d(s.slice(s.length-5,s.length)):d(s.slice(t-2,t+1))},[t]),n.createElement(n.Fragment,null,t>4&&n.createElement(n.Fragment,null,n.createElement(E,{onClick:()=>a(1)},l?n.createElement("a",{href:l,onClick:o},1):1),n.createElement(E,null,"...")),c.map(e=>n.createElement(E,{key:`pagination+${e}`,"data-page-active":e===t||void 0,onClick:()=>a(e)},l?n.createElement("a",{href:(0,r.f)(l,e,i),onClick:o},e):e)),ta(s.length)},l?n.createElement("a",{href:(0,r.f)(l,s.length,i),onClick:o},s.length):s.length)))},Pagination=({className:e,pagesAmount:t,currentPage:a,onChange:o,onClick:l,style:i,href:s,queryPageName:c="page"})=>{let d=[...Array(t)].map((e,t)=>t+1),[p,u]=(0,n.useState)(a),m=(0,n.useMemo)(()=>s&&s.endsWith("&page=")?s.replace("&page=",""):s,[s]),b=t-1,handlePageChange=e=>{e<=t&&e>0&&(u(e),o(e))},handleClick=e=>{l&&l(e)};return(0,n.useEffect)(()=>{u(a)},[a]),n.createElement(h,{className:e,style:i},n.createElement(g,{className:"prev-page",onClick:()=>handlePageChange(p-1),"data-last-page":1===p||void 0},m?n.createElement("a",{href:(0,r.f)(m,p,c),onClick:handleClick},n.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},n.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):n.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},n.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),d.length>8?n.createElement(RenderPagiWithDots,{pagesAmount:t,activePage:p,handlePageChange:handlePageChange,handleClick:handleClick,href:m,queryPageName:c}):d.map(e=>n.createElement(E,{key:`pagination+${e}`,"data-page-active":e===p||void 0,onClick:()=>handlePageChange(e)},m?n.createElement("a",{href:(0,r.f)(m,e,c),onClick:handleClick},e):e)),n.createElement(g,{className:"next-page",onClick:()=>handlePageChange(p+1),"data-last-page":p===b+1||void 0},m?n.createElement("a",{href:(0,r.f)(m,p,c),onClick:handleClick},n.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},n.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):n.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},n.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},b=o.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${l.r.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${l.r.colors.gray200}; border-radius: ${l.r.borderRadius}; &:active, &:focus, .focused & { border-color: ${l.r.colors.primaryBase}; box-shadow: 0px 0px 2px 2px ${l.r.colors.primary200}; } &:disabled { background-color: ${l.r.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${l.r.sizes.fwRegular}; ${r.M.mbDown} { font-size: 22px; line-height: 1.2; } ${r.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${l.r.sizes.fwRegular}; ${r.M.mbDown} { font-size: 14px; line-height: 1.2; } ${r.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${l.r.sizes.fwRegular}; ${r.M.mbDown} { font-size: 13px; line-height: 1.5; } ${r.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,f=n.forwardRef((e,t)=>{var{name:a,errorMessage:o,autoComplete:r="off",defaultValue:l,actionIcon:c,displayIcon:d,isDeleteAction:p,onActionClick:u,label:m,placeholder:h,className:g,onChange:E,onKeyPress:f,isDisabled:y,CustomInput:I,size:T,style:x,autoFocus:v,type:_="text",isNumerousKeyboard:O=!1,onFocus:C,enterKeyHint:N,nativeOnChange:S}=e,A=(0,i._)(e,["name","errorMessage","autoComplete","defaultValue","actionIcon","displayIcon","isDeleteAction","onActionClick","label","placeholder","className","onChange","onKeyPress","isDisabled","CustomInput","size","style","autoFocus","type","isNumerousKeyboard","onFocus","enterKeyHint","nativeOnChange"]);let[w,L]=(0,n.useState)(l),handleOnChange=e=>{L(e),E(e)};return n.createElement(b,{"data-size":T,className:g,"data-has-action-icon":!!c||void 0,"data-has-display-icon":!!d||void 0,"data-has-error":o&&o.length>0||void 0,style:x},m&&n.createElement(s.L,{size:"label2",htmlFor:a,className:"inputLabel"},m),n.createElement("div",{style:{position:"relative"}},I||n.createElement("input",Object.assign({id:a,name:a,placeholder:h,onChange:null!=S?S:e=>handleOnChange(e.target.value),onKeyPress:f,type:_,"aria-label":_,disabled:y,value:w,autoComplete:r,ref:t,autoFocus:v,inputMode:O||"number"===_?"numeric":_,pattern:O?"[0-9]*":".*",onFocus:C,enterKeyHint:N},A)),d&&n.createElement(s.S,{className:"displayIcon"},d),c&&n.createElement(s.a,{className:"actionIcon",onClick:()=>{var e;p&&(L(""),null===(e=t.current)||void 0===e||e.focus()),u&&u()}},c)),o&&o.length>0&&n.createElement(s.b,{className:"errorLabel"},o))});f.displayName="PureInput";let y=[320,420,640,750,828,1080,1200,1440,1920,2048],defaultLoader=({src:e,width:t,quality:a,locale:n})=>{try{let o="undefined"!=typeof window?window.location.origin:c.v[n]?`https://${c.v[n]}`:"";if(!o)return e;let r=new URL(e,o);return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(null!=a?a:75)),r.toString()}catch(t){return e}},ImageWrapV2=e=>{var{alt:t,backupSrc:a,src:o,placeholderSrc:r,style:l,ref:s,unoptimized:c=!1,quality:p,sizes:u,width:m}=e,h=(0,i._)(e,["alt","backupSrc","src","placeholderSrc","style","ref","unoptimized","quality","sizes","width"]);let[g,E]=(0,n.useState)(!1),{locale:b="vi-VN"}=(0,d.u)(),f=(0,n.useMemo)(()=>c?[]:function(e){if(e.sizes)return y;if(e.width){let t=Math.max(1,Math.round(e.width));return Array.from(new Set([t,Math.min(2*t,2048)])).sort((e,t)=>e-t)}return y}({sizes:u,width:m}),[u,m,c]),T=(0,n.useMemo)(()=>{if(!c)return f.map(e=>`${defaultLoader({src:o,width:e,quality:p,locale:b})} ${e}w`).join(", ")},[c,f,o,p]),x=(0,n.useMemo)(()=>{if(c)return o;let e=f.length?f[f.length-1]:null!=m?m:1920;return defaultLoader({src:o,width:e,quality:p,locale:b})},[c,f,o,p,m]);return n.createElement(I,Object.assign({loading:"lazy",alt:t,srcSet:T,onError:()=>!g&&E(!0),src:g?a||x:x||a,style:Object.assign(Object.assign({},r?{backgroundImage:`url(${r})`}:{}),l),"data-has-placeholder":!!r,sizes:u,ref:s},h))},I=o.Z.img` &[data-has-placeholder='true'] { background-position: center; background-repeat: no-repeat; background-size: cover; } `,T=(0,o.Z)(p.I)` box-shadow: 0px 0px 1px 0px #0000000a, 0px 2px 8px 0px #0000000a, 0px 10px 16px 0px #0000000a; border-radius: 0.75rem; overflow: hidden; input.mantine-Input-input { border: none; font-size: 0.8125rem; line-height: 1.25rem; } .close-icon-wrapper { display: none; background-color: ${l.r.colors.gray400}; border-radius: 100%; cursor: pointer; width: 20px; height: 20px; padding: 2px; svg { pointer-events: none; } &[data-is-disabled='true'] { opacity: 0.2; cursor: not-allowed; pointer-events: none; } } input.mantine-Input-input:focus ~ .mantine-Input-rightSection .close-icon-wrapper, input.mantine-Input-input:not(:placeholder-shown) ~ .mantine-Input-rightSection .close-icon-wrapper { display: flex; } `,x=(0,o.Z)(Search2)` color: ${l.r.colors.primaryBase}; width: 20px; height: 20px; `,SearchInput=e=>{let{loading:t,disabled:a,placeholder:o,value:r,onChange:l,icon:s=n.createElement(x,null),className:c,style:d,enableClear:p}=e,m=(0,i._)(e,["loading","disabled","placeholder","value","onChange","icon","className","style","enableClear"]);return n.createElement(T,Object.assign({disabled:t||a,size:"lg",value:r,onChangeRaw:e=>{l(e.currentTarget.value)},type:"text",placeholder:o,className:c,icon:s,style:d,rightSection:p?n.createElement("div",{className:"close-icon-wrapper",onClick:()=>{l("")},"data-is-disabled":!r},n.createElement(u.C,{fill:"white",width:"100%",height:"100%"})):void 0},m,{"data-event-label":r}))}},mH4H:function(e,t,a){a.d(t,{B:function(){return m}});var n=a("+MNf"),o=a("q1tI"),r=a("/npG"),l=a("HC7W"),i=a("8vDj"),s=a("mAfZ"),c=a("bcWp"),d=a("4Jk+"),p=(0,r.k)((e,t)=>{var a,n,o,r,i,s;let{other:p}=e,{template:u}=p,{size:m,variant:h,skipHover:g,withColorHover:E,isError:b,isSuccess:f,color:y,gradient:I,children:T,theme:x,customStylesType:v}=t,_="mb"===u||"marryBaby"===x,O=y||(x&&_?"mb":e.primaryColor),C=O.startsWith("#"),N=C?e.fn.lighten(y,.9):(null===(n=null===(a=e.colors)||void 0===a?void 0:a[O])||void 0===n?void 0:n[0])||"",S=C?O:null===(r=null===(o=e.colors)||void 0===o?void 0:o[O])||void 0===r?void 0:r[e.fn.primaryShade()],A=C?e.fn.darken(y,.05):null===(s=null===(i=e.colors)||void 0===i?void 0:i[O])||void 0===s?void 0:s[e.fn.primaryShade()+1],w=v===d.C.LEADGEN;return{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${c.A} ease-in-out`},I&&Object.assign({border:0,position:"relative"},"secondary"===h&&{"&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",borderRadius:"inherit"}})),{"&:focus":{outline:"none"}}),w&&{borderRadius:12}),!T&&{paddingLeft:"10px",paddingRight:"10px",".mantine-Button-icon":{margin:0}}),(()=>{switch(m){case"xl":return Object.assign({height:56,fontWeight:w?d.F.halfBold:d.F.semiBold,fontSize:w?"15px":_?"14px":"16px",lineHeight:"24px"},w&&{letterSpacing:"-0.3px"});case"lg":return Object.assign({height:48,fontWeight:w?d.F.halfBold:d.F.semiBold,fontSize:w?"15px":_?"14px":"16px",lineHeight:"24px"},w&&{letterSpacing:"-0.3px"});case"md":return Object.assign({height:40,fontWeight:w?d.F.halfBold:d.F.semiBold,fontSize:w?"13px":"14px",lineHeight:w?"20px":"22px"},w&&{letterSpacing:"-0.3px"});case"sm":return Object.assign(Object.assign({height:32,fontWeight:w?d.F.halfBold:d.F.semiBold,fontSize:w?"11px":_?"12px":"14px",lineHeight:w?"16px":"22px"},w&&{letterSpacing:"-0.2px"}),{paddingLeft:"16px",paddingRight:"16px"});case"xs":return Object.assign({height:24,fontWeight:w?d.F.halfBold:d.F.semiBold,fontSize:w?"11px":"12px",lineHeight:w?"16px":"18px",paddingLeft:"8px",paddingRight:"8px"},w&&{letterSpacing:"-0.2px"})}})()),(()=>{switch(h){case"primary":return Object.assign(Object.assign({color:e.white},I?{backgroundImage:I,backgroundColor:"initial"}:{backgroundColor:S}),!g&&{"&:hover":{backgroundColor:I?"initial":A}});case"secondary":return Object.assign(Object.assign(Object.assign({color:S,backgroundColor:"transparent",border:`1px solid ${S}`},I&&{backgroundImage:I,borderColor:"transparent"}),!g&&!I&&{"&:hover":{backgroundColor:N,border:`1px solid ${S}`}}),E&&!I&&{"&:hover":{backgroundColor:S,border:`1px solid ${S}`,color:"#fff"}});case"white":return{color:S,backgroundColor:"transparent",border:"1px solid transparent","&:hover":{backgroundColor:"transparent",borderColor:"transparent"}};case"tertiary":return{color:e.colors.gray[8],backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`,"&:hover":Object.assign({},g?{backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`}:{backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[0]}`})};case"light":return{color:S,backgroundColor:N,border:"1px solid transparent","&:hover":Object.assign({},g?{backgroundColor:N,border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${N}`})};case"ghost":return Object.assign({color:S,backgroundColor:"transparent",border:"1px solid transparent"},!g&&{"&:hover":{backgroundColor:N,border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:e.colors.gray[1],color:e.colors.gray[4]}}),b?Object.assign({color:e.colors.red[6],backgroundColor:e.white,border:`1px solid ${e.colors.red[6]}`},!g&&{"&:hover":{backgroundColor:e.colors.red[0],border:`1px solid ${e.colors.red[6]}`}}):{}),f?Object.assign({color:e.colors.green[8],backgroundColor:e.colors.green[0]},!g&&{"&:hover":{backgroundColor:e.colors.green[0]}}):{}),inner:Object.assign({ref:(0,l.A)("inner")},I&&{position:"relative"}),leftIcon:{marginRight:8},rightIcon:{},label:Object.assign({},I&&"secondary"===h&&{background:I,"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})}});let u={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline",white:"white",success:"subtle"},m=(0,o.forwardRef)((e,t)=>{var a,r;let l=(0,i.rZ)(),c=Object.assign(Object.assign({},null===(r=null===(a=l.components)||void 0===a?void 0:a.Button)||void 0===r?void 0:r.defaultProps),function(e){let t={};return Object.keys(e).filter(t=>void 0!==e[t]).forEach(a=>t[a]=e[a]),t}(e)),{variant:m,size:h,color:g,gradient:E,skipHover:b,withColorHover:f,className:y,dataEventCategory:I,dataEventAction:T,dataEventLabel:x,children:v,theme:_,component:O,styles:C,classNames:N}=c,S=(0,n._)(c,["variant","size","color","gradient","skipHover","withColorHover","className","dataEventCategory","dataEventAction","dataEventLabel","children","theme","component","styles","classNames"]),A="error"===m,w=(0,d.u)(),{classes:L,cx:R}=p({variant:m,size:h,color:g,gradient:E,skipHover:b,withColorHover:f,isError:A,isSuccess:"success"===m,children:v,theme:_,customStylesType:w},{name:"ButtonMantine",styles:C,classNames:N});return o.createElement(s.z,Object.assign({component:O,className:R(y,m),classNames:{root:L.root,inner:L.inner,leftIcon:L.leftIcon,rightIcon:L.rightIcon,label:L.label},variant:u[m],"data-variant":m,"data-event-category":I,"data-event-action":T,"data-event-label":x,ref:t,loaderProps:S.disabled?{color:"currentColor"}:void 0},S),v)})},"+24l":function(e,t,a){a.d(t,{A:function(){return V},B:function(){return F},C:function(){return D},D:function(){return M},E:function(){return k},F:function(){return H},G:function(){return z},H:function(){return L},I:function(){return U},L:function(){return N},Q:function(){return i},S:function(){return A},U:function(){return C},V:function(){return B},Z:function(){return $},a:function(){return W},b:function(){return _},c:function(){return w},d:function(){return P},e:function(){return R},f:function(){return Z},g:function(){return j},h:function(){return K},i:function(){return J},j:function(){return Y},k:function(){return G},l:function(){return O},m:function(){return S},r:function(){return d},s:function(){return X}});var n,o,r,l,i,s,c,d,p=a("EikE"),u=a("OT65"),m=a("G2RZ"),h=a("YNYf"),g=a("R43W"),E=a("+xLi"),b=a("tO2/"),f=a("YJaS"),y=a("tiWT"),I=a("xrdX"),T=a("UIg8"),x=a("GOBr"),v=a("nwPE");let _="",O="https://id.hellobacsi.com/",C="userGeoLocationCoordinates",N={"vi-VN":{PHONE:"+84",LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},S=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],A={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/T0Op0XUtt0b"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/eyzYCiacZ0b"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},w=[v.L.Vietnam,v.L.Indonesia,v.L.Thailand,v.L.Malaysia,v.L.Myanmar],L=[v.L.Indonesia,v.L.Cambodia,v.L.PhilippinesEnglish,v.L.PhilippinesTagalog,v.L.Thailand,v.L.Singapore],R=[v.L.Vietnam],k=["vi-VN"],M=["id-ID"],D=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],P=["vi-VN","id-ID"],B=[v.L.Vietnam,v.L.Taiwan],H={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(n=i||(i={})).bmi="mi",n.gender="gndr",n.age="ge",n.slug="slug",n.resultId="resultId",n.bmr="mr",n.height="gt",n.weight="wght",n.source="surc",n.type="tp",n.startDate="sd",n.additional="tnl",n.week="wk",n.twins="twn",n.weightBefore="wb",n.yourself="yrslf",n.intensity="sy",n.rate="rt",n.method="mthd",n.day="dy",n.pwg="pwg",n.cycle="le",n.period="prd",n.access_token="tkn",n.name="nm",n.id="id",n.activityLevel="actl",n.status="status",n.birthday="brd",n.withImperialUnit="lbs";let U={[v.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[v.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[v.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[v.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[v.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[v.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[v.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[v.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},F="hhg_user_token",G="hhg_user_refresh_token",Y={[v.L.PhilippinesEnglish]:p.Z,[v.L.Vietnam]:u.default,[v.L.Cambodia]:m.Z,[v.L.India]:h.Z,[v.L.Indonesia]:g.Z,[v.L.Myanmar]:p.Z,[v.L.Malaysia]:E.Z,[v.L.Thailand]:b.Z,[v.L.Taiwan]:f.Z},j="https://cdn.hellohealthgroup.com/countries",z="_ga",V="YYYY-MM-DD",$=9999999,W=305,Z="video_item_detail",K="hhg_cart_care_store_key";(o=s||(s={}))[o.UNAVAILABLE=0]="UNAVAILABLE",o[o.AVAILABLE=1]="AVAILABLE",(r=c||(c={}))[r.FIXED=1]="FIXED",r[r.STARTING=2]="STARTING",r[r.RANGE=3]="RANGE",(l=d||(d={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let X={vaccine:d.VACCINE,ivf:d.IVF,"egg-freezing":d.EGG_FREEZING,screener:d.HEALTH_SCREENER},q={[d.VACCINE]:"vaccine",[d.IVF]:"ivf",[d.EGG_FREEZING]:"egg-freezing",[d.HEALTH_SCREENER]:"screener"};var J=Object.freeze({__proto__:null,basePath:_,SSO_URL:O,USER_GEOLOCATION_COORDINATES_COOKIE:C,LOCALE_SPECS:N,COUNTRY_LIST:S,STATIC_PAGES:A,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:w,HAS_CLINITY_DOWNLOAD_SITE:L,LOCALE_HAS_CART_CARE_SITE:R,ECOM_LOCALES:k,DATA_PRIVACY_LOCALES:M,CARE_LOCALES:D,CARE_BOOKING_LOCALES:P,VIDEO_LOCALES:B,FAVICONS:H,get QUERY_HEALTH_TOOL(){return i},ISO_FORMAT:U,BEARER_TOKEN_COOKIE:F,BEARER_REFRESH_TOKEN_COOKIE:G,DATE_FNS_LOCALE:Y,CDN_ADDRESS:j,GA_TOKEN_COOKIE:z,API_DATE_FORMAT:V,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:$,ZINDEX_HEADER:W,VIDEO_DETAIL_TEMP_STORAGE:Z,HHG_CART_CARE_STORE_KEY:K,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},serviceTypeByProductType:X,productTypeByServiceType:q,siteHost:y.Cf,siteOptions:y.x9,COUNTRY_CURRENCY_SYMBOL:y.Z5,domainLocales:I.v,MAP_DOMAIN_BY_LOCALE:I.f,get RISK_SCREENER_NAME(){return T.t},RISK_SCREENER_SLUG:T.n,isProduction:x.y})},"/LXB":function(e,t,a){a.d(t,{M:function(){return MantineProvider}});var n=a("+MNf"),o=a("q1tI"),r=a("8vDj"),l=a("UvOQ"),i=a("4Jk+");let MantineProvider=e=>{var{children:t,locale:a,template:s="hb",isNotifications:c=!0,customStyleType:d=i.C.NONE}=e,p=(0,n._)(e,["children","locale","template","isNotifications","customStyleType"]);return(0,l.u)(a),o.createElement(r.Me,Object.assign({theme:(0,l.g)(a,s,d)},p),o.createElement(i.T,{variant:d},t,c&&o.createElement(l.N,null)))}},VGkG:function(e,t,a){a.d(t,{T:function(){return ThrForm}});var n=a("+MNf"),o=a("q1tI"),r=a("cChf"),l=a("ZFu2"),i=a("IsoR"),s=a("eyMb"),c=a("5SVV"),d=a("HJLy"),p=a("jK4w"),u=a("u5t1"),m=a("1BUe"),h=a("UldL"),g=a("MtwO"),E=a("FM21"),b=a("xrdX");let f=(0,o.createContext)({}),DefaultForm=e=>{var t,a=(0,n._)(e,[]);let{t:r,locale:l}=(0,s.u)(),{isAdult:i,activeValueNote:c,linkTool:d,form:y,submitProps:I}=(0,o.useContext)(f),{classes:T={}}=(0,o.useContext)(g.C);return o.createElement(E.H,Object.assign({formLayout:"default"},a),o.createElement(E.H.FormRow,null,o.createElement(p.G,Object.assign({},y.getInputProps("gender")))),o.createElement(E.H.FormRow,null,o.createElement(m.D,Object.assign({},y.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:o.createElement(h.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.ageInput")),maxDate:new Date}))),o.createElement(E.H.FormRow,null,o.createElement(u.I.Number,Object.assign({label:o.createElement(h.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.heartRateInput")),placeholder:r("tools.inputPlaceholder",{content:"60"})},y.getInputProps("heartRate"),{min:40,max:200,styles:()=>({rightSection:{width:"auto"}})}))),i&&o.createElement(E.H.FormRow,null,o.createElement(u.S,Object.assign({label:o.createElement(h.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.selectActive")),defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},y.getInputProps("activeValue")))),o.createElement(E.H.FormRow,{className:T.submitWrapper},o.createElement(E.H.Submit,Object.assign({className:T.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${b.v[l]}/${d}`},I),r("bmi.submit"))))},InlineForm=e=>{var t,a=(0,n._)(e,[]);let{t:r,locale:l}=(0,s.u)(),{isAdult:i,activeValueNote:c,linkTool:d,form:h,submitProps:y}=(0,o.useContext)(f),{classes:I={}}=(0,o.useContext)(g.C);return o.createElement(E.H,Object.assign({formLayout:"inline"},a),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:r("tools.selectGender"),width:"none"},o.createElement(p.G,Object.assign({type:"radio",hideLabel:!0,error:null},h.getInputProps("gender")))),h.errors.gender&&o.createElement(E.H.Error,null,h.errors.gender)),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:r("targetHeartRate.ageInput")},o.createElement(m.D,Object.assign({},h.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},error:null,maxDate:new Date}))),h.errors.age&&o.createElement(E.H.Error,null,h.errors.age)),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:r("targetHeartRate.heartRateInput")},o.createElement(u.I.Number,Object.assign({placeholder:r("tools.inputPlaceholder",{content:"60"})},h.getInputProps("heartRate"),{error:null,min:40,max:200,rightSection:o.createElement(E.H.Unit,null,"bmp"),styles:()=>({rightSection:{width:"auto"}})}))),h.errors.heartRate&&o.createElement(E.H.Error,null,h.errors.heartRate)),i&&o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:r("targetHeartRate.selectActive")},o.createElement(u.S,Object.assign({defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},h.getInputProps("activeValue"))))),o.createElement(E.H.FormRow,{className:I.submitWrapper},o.createElement(E.H.Submit,Object.assign({className:I.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${b.v[l]}/${d}`},y),r("bmi.submit"))))},ThrForm=e=>{var{formLayout:t,onSubmit:a,onError:p,submitProps:u}=e,m=(0,n._)(e,["formLayout","onSubmit","onError","submitProps"]);let{t:h,locale:g}=(0,s.u)(),E=(0,o.useRef)(40),{getHealthToolLink:b}=(0,i.u)(g),y=(0,r.c)({initialValues:{heartRate:60,activeValue:"low_intensity"},validate:{gender:(0,l.U)(h("validation.error.requiredField")),age:(0,l.U)(h("validation.error.requiredField")),heartRate:e=>Number(e)>=E.current&&200>=Number(e)?null:h("tools.heartRateRangeErr",{min:E.current,max:200})}}),I=(0,o.useMemo)(()=>b(d.H.THR),[b]),[T,x]=(0,o.useState)(!1),v=[{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}],_=[{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,o.useEffect)(()=>{let e=y.getInputProps("age").value,t=y.getInputProps("gender").value;if(e instanceof Date){let a=(new Date().getTime()-e.getTime())/1e3;a>=567648e3?x(!0):x(!1);let n=v.find(e=>a>=31536e3*e.minAge&&a<31536e3*e.maxAge)||v[0];E.current="male"===t?n.rangeMale:n.rangeFemale}},[y]);let O=Object.assign(Object.assign({},m),{onSubmit:y.onSubmit(a,p)});return o.createElement(f.Provider,{value:{isAdult:T,activeValueNote:_,linkTool:I,form:y,submitProps:u}},"inline"===t?o.createElement(InlineForm,Object.assign({},O)):o.createElement(DefaultForm,Object.assign({},O)))}},KtSi:function(e,t,a){a.d(t,{B:function(){return Button}});var n=a("+MNf"),o=a("q1tI"),r=a("mH4H");let Button=e=>{var{size:t,color:a="primary",isDisabled:l,isBlock:i,title:s,onClick:c,icon:d,iconPosition:p="left",children:u,isLoading:m=!1,loadingText:h,dataEventCategory:g,dataEventAction:E,dataEventLabel:b,dataProductChannel:f,dataProductSku:y,dataProductBrand:I,dataProductName:T,dataProductPrice:x,dataProductCategory:v,dataProductPosition:_,type:O}=e,C=(0,n._)(e,["size","color","isDisabled","isBlock","title","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);return o.createElement(r.B,Object.assign({},{"data-event-category":g,"data-event-action":E,"data-event-label":b,"data-product-channel":f,"data-product-sku":y,"data-product-brand":I,"data-product-name":T,"data-product-price":x,"data-product-category":v,"data-product-position":_},{size:t,variant:"transparent"===a?"white":"danger"===a?"error":a,disabled:l,onClick:e=>{m||l||!c||c(e)},title:s,loading:m,type:O||"submit",leftIcon:"left"===p?d:void 0,rightIcon:"right"===p?d:void 0,w:i?"100%":void 0,p:i?"12px auto":void 0,"data-color":a,"data-size":t,"data-block":i,"data-has-icon":!!d||void 0,"data-theme":C.theme,"data-is-loading":m},C),m&&h||u)}},FM21:function(e,t,a){a.d(t,{H:function(){return HealthToolFormWrapper}});var n=a("+MNf"),o=a("q1tI"),r=a("/npG"),l=a("mYVa"),i=a("Eso5"),s=a("aDCK"),c=a("9n+W"),d=a("8vDj"),p=a("SPK5"),u=a("2wr/"),m=a("UldL"),h=a("mH4H"),g=a("eyMb"),E=a("yVya"),b=a("iBNF"),f=(0,r.k)(()=>({root:{justifyContent:"flex-start"},group:{display:"flex",alignItems:"stretch",gap:(0,l.h)(8)},item:{flex:"1 1 0px"},icon:{flexShrink:0}}));let y=(0,o.createContext)({}),I=(0,r.k)(()=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8),paddingLeft:16,paddingRight:16,"&:last-child":{paddingBottom:16}}}));var T=(0,r.k)((e,{formLayout:t})=>({root:{display:"flex",flexDirection:"column",gap:(0,l.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,l.h)(14)}},"default"===t&&{gap:8})},control:{width:(0,l.h)(180),flexShrink:1,"&.error":{"button, input":{borderColor:e.colors.red[7]}}}}));let x=(0,r.k)((e,{formLayout:t})=>{let a="mb"===e.other.template;return{root:Object.assign(Object.assign({minWidth:(0,l.h)(180)},"inline"===t&&{alignSelf:"flex-end",marginTop:(0,l.h)(16)}),"default"===t&&Object.assign({},a&&{alignSelf:"center"}))}}),v=(0,r.k)(e=>({root:{color:e.colors.gray[6],whiteSpace:"nowrap",paddingRight:(0,l.h)(16)}}));var _=(0,r.k)(()=>({root:{display:"flex",gap:(0,l.h)(8),border:"1px solid #EAEAEC",borderRadius:(0,l.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"}})),O=(0,r.k)((e,{width:t,direction:a})=>{let n="mb"===e.other.template;return{root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8)},row:{display:"flex",flexDirection:a,alignItems:"stretch",justifyContent:"space-between",gap:(0,l.h)(16),minHeight:(0,l.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,l.h)(14),lineHeight:(0,l.h)(22),color:e.colors.gray[6]},content:{display:"flex",alignItems:"center",gap:(0,l.h)(8),input:{backgroundColor:"#fff"}},control:{width:"number"==typeof t?(0,l.h)(t):t,flexShrink:1,input:Object.assign({},n&&{borderRadius:(0,l.h)(12)}),"&.error":{"button, input":{borderColor:e.colors.red[7]}}},error:{color:"red",textAlign:"right"}}});let C=(0,r.k)(()=>({root:{color:"red",textAlign:"right",width:"auto"}}));var N=(0,r.k)(e=>{let t="mb"===e.other.template;return{root:{label:Object.assign({},t&&{color:b.r.mbColors.midGray,fontSize:(0,l.h)(12),fontWeight:"normal"})}}});let HealthToolFormWrapper=e=>{var{children:t,formLayout:a,styles:r,classNames:l,className:s,component:c="form"}=e,d=(0,n._)(e,["children","formLayout","styles","classNames","className","component"]);let p=a||"default",{classes:u,cx:m}=T({formLayout:p},{name:"HealthToolFormWrapper",styles:r,classNames:l});return o.createElement(y.Provider,{value:{formLayout:p}},o.createElement(i.x,Object.assign({component:c,className:m(s,u.root)},d),t))};HealthToolFormWrapper.Control=e=>{var{className:t,styles:a,classNames:r}=e,l=(0,n._)(e,["className","styles","classNames"]);let{classes:s,cx:c}=N(void 0,{name:"HealthToolFormWrapper__Control",styles:a,classNames:r});return o.createElement(i.x,Object.assign({className:c(t,s.root)},l))},HealthToolFormWrapper.BorderInlineControl=({label:e,children:t,styles:a,classNames:n,direction:r="row",width:l=180,errorMess:s})=>{let{classes:c}=O({width:l,direction:r},{name:"HealthToolFormWrapper__BorderInlineControl",styles:a,classNames:n});return o.createElement(i.x,{className:c.root},o.createElement(i.x,{className:c.row},o.createElement(i.x,{className:c.labelWrapper},e&&o.createElement("label",{className:c.label,htmlFor:"gender"},e)),o.createElement(i.x,{className:c.content},(0,E.Z)(t).map((e,t)=>o.createElement(i.x,{key:t,className:c.control},e)))),s&&o.createElement(m.T,{size:"p4",className:c.error},s))},HealthToolFormWrapper.BorderBoxControl=e=>{var{label:t,rightSection:a,children:r,styles:l,className:s,classNames:c}=e,d=(0,n._)(e,["label","rightSection","children","styles","className","classNames"]);let{classes:p,cx:u}=_(void 0,{name:"HealthToolFormWrapper__BorderBoxControl",styles:l,classNames:c});return o.createElement(i.x,Object.assign({className:u(p.root,s)},d),o.createElement(i.x,{className:p.info},t&&o.createElement(m.T,{size:"n1",as:"label",className:p.label},t),o.createElement(i.x,{className:p.content},o.isValidElement(r)?o.cloneElement(r,Object.assign(Object.assign({},r.props),{size:"sm",error:null})):null)),a&&o.createElement(i.x,{className:p.rightSection},"string"==typeof a?o.createElement(m.T,{size:"p4"},a):o.isValidElement(a)?o.cloneElement(a,{size:24}):null))},HealthToolFormWrapper.Error=e=>{var{styles:t,classNames:a,className:r}=e,l=(0,n._)(e,["styles","classNames","className"]);let{classes:i,cx:s}=C(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(m.T,Object.assign({size:"p4",className:s(r,i.root)},l))},HealthToolFormWrapper.FormRow=e=>{var{styles:t,classNames:a,className:r,children:l}=e,s=(0,n._)(e,["styles","classNames","className","children"]);let{classes:c,cx:d}=I(void 0,{name:"HealthToolFormWrapper__FormRow",styles:t,classNames:a});return o.createElement(i.x,Object.assign({className:d(r,c.root)},s),l)},HealthToolFormWrapper.Submit=e=>{var{styles:t,classNames:a,className:r}=e,l=(0,n._)(e,["styles","classNames","className"]);let{formLayout:i}=(0,o.useContext)(y),{classes:s,cx:c}=x({formLayout:i},{name:"HealthToolFormWrapper__SubmitBtn",styles:t,classNames:a});return o.createElement(h.B,Object.assign({className:c("submit-btn",r,s.root)},l,{variant:"primary",size:"md"}))},HealthToolFormWrapper.Unit=e=>{var{styles:t,classNames:a,className:r}=e,l=(0,n._)(e,["styles","classNames","className"]);let{classes:i,cx:s}=v(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(m.T,Object.assign({size:"p4",className:s(r,i.root)},l))},HealthToolFormWrapper.Switching=e=>{var{label:t}=e,a=(0,n._)(e,["label"]);let{t:r}=(0,g.u)(),i=(0,d.rZ)(),s="mb"===i.other.template;return o.createElement(p.k,{gap:(0,l.h)(4),sx:()=>({justifyContent:"space-between",alignItems:"center"})},t&&o.createElement(m.T,{size:s?"p4":"s4",color:"gray.6"},t),o.createElement(u.r,Object.assign({labelPosition:"left",onLabel:r("switchBtn.yes"),offLabel:r("switchBtn.no")},a,{styles:e=>({trackLabel:{fontSize:(0,l.h)(12)},track:{cursor:"pointer"},body:{[e.fn.largerThan("sm")]:{flexDirection:"column",alignItems:"flex-start"},[e.fn.smallerThan("sm")]:{justifyContent:"space-between"}},labelWrapper:{[e.fn.smallerThan("sm")]:{display:"flex",justifyContent:"center"}}})})))},HealthToolFormWrapper.ChipGroup=e=>{var{data:t=[],label:a,isMobile:r,layout:d="horizonal",classNames:p,styles:u}=e,h=(0,n._)(e,["data","label","isMobile","layout","classNames","styles"]);let{classes:g,theme:E}=f(void 0,{name:"ChipGroup",classNames:p,styles:u}),b="mb"===E.other.template,y=r?48:b?32:"vertical"===d?32:18;return o.createElement(i.x,null,o.createElement(s.I.Wrapper,{label:a&&o.createElement(m.T,{size:"p3",weight:"semiBold"},a)},o.createElement(c.A.Group,Object.assign({},h),o.createElement(i.x,{className:g.group},t.map((e,t)=>o.createElement(c.A,{className:g.item,key:t,value:String(e.value),styles:{iconWrapper:{display:"none"},label:{width:"100%",borderRadius:(0,l.h)(b?12:8),padding:0,border:`1px solid ${b?"#EAEAEC":E.colors.neutral[2]}`,height:"100%","&[data-checked]":{padding:0,backgroundColor:b?"#FFE9F1":E.colors.blue[0],border:`1px solid ${b?"#F5B4CB":E.colors.blue[1]}`},[E.fn.smallerThan("sm")]:{alignItems:"flex-start"}}}},o.createElement(i.x,{sx:Object.assign(Object.assign(Object.assign({width:"100%",display:"flex",gap:(0,l.h)(b?2:8),padding:"8px 16px 8px 12px",justifyContent:"center",alignItems:"center"},b&&{flexDirection:"column"}),"vertical"===d&&{flexDirection:"column",padding:"16px 8px 8px"}),{[E.fn.smallerThan("sm")]:{flexDirection:"column",padding:"16px 8px 8px"}})},o.isValidElement(e.icon)?o.cloneElement(e.icon,{size:y,isMarryBaby:b,className:g.icon}):null,o.createElement(m.T,{size:"p4",styles:{root:Object.assign(Object.assign({},b&&{textAlign:"center"}),{whiteSpace:"normal",[E.fn.smallerThan("sm")]:{fontSize:(0,l.h)(12),lineHeight:(0,l.h)(18),textAlign:"center"}})}},e.label))))))))}},evbj:function(e,t,a){a.d(t,{B:function(){return E},C:function(){return R},E:function(){return w},F:function(){return A},G:function(){return g},N:function(){return x},S:function(){return C},V:function(){return O},a:function(){return b},c:function(){return I},d:function(){return T},e:function(){return S},f:function(){return v},g:function(){return _},h:function(){return L},i:function(){return k}});var n,o,r,l,i,s,c,d,p,u,m,h,g,E,b,f,y,I,T,x,v,_,O,C,N=a("nwPE");(n=g||(g={})).Boy="boy",n.Girl="girl",(o=E||(E={}))[o.Height=0]="Height",o[o.Weight=1]="Weight",o[o.Head=2]="Head",o[o.BMI=3]="BMI",(r=b||(b={}))[r.Weekly=0]="Weekly",r[r.Monthly=1]="Monthly",r[r.Yearly=2]="Yearly",(l=f||(f={}))[l.Height=0]="Height",l[l.Weight=1]="Weight",l[l.Head=2]="Head",l[l.BMI=3]="BMI",l[l.Record=4]="Record",(i=y||(y={}))[i.Phone=0]="Phone",i[i.OTP=1]="OTP",i[i.OTPEmail=2]="OTPEmail",i[i.PersonalInfo=3]="PersonalInfo",i[i.UpdatePassword=4]="UpdatePassword",i[i.Result=5]="Result",i[i.DynamicForm=6]="DynamicForm",(s=I||(I={}))[s.HEAD=0]="HEAD",s[s.TAIL=1]="TAIL",s[s.MIDDLE=2]="MIDDLE",s[s.CONNECT=3]="CONNECT",s[s.SSO=4]="SSO",s[s.MULTIPLE=5]="MULTIPLE",(c=T||(T={}))[c.UNDEFINED=-1]="UNDEFINED",c[c.TEXT=0]="TEXT",c[c.IMAGE=1]="IMAGE",c[c.FORM=2]="FORM",c[c.CONDITION=3]="CONDITION",c[c.POLL=4]="POLL",c[c.FINAL_STANDARD=5]="FINAL_STANDARD",c[c.FINAL=6]="FINAL",c[c.FINAL_THANK_YOU=7]="FINAL_THANK_YOU",c[c.RATING=8]="RATING",c[c.REACTION=9]="REACTION",c[c.REVIEW=10]="REVIEW",c[c.RESULT_POLL=11]="RESULT_POLL",c[c.RESULT_RATING=12]="RESULT_RATING",c[c.RESULT_REACTION=13]="RESULT_REACTION",c[c.OTP=14]="OTP";let S=[T.FINAL,T.FINAL_STANDARD,T.FINAL_THANK_YOU];(d=x||(x={})).BOT_TEXT="bot-text",d.BOT_IMAGE="bot-image",d.BOT_BACKGROUND_IMAGE="bot-background-image",d.BOT_BUTTON="bot-button",d.BOT_URL="bot-url",d.BOT_RECALCULATE="bot-recalculate",d.BOT_BOOKING="bot-booking",d.BOT_MAIN_TITLE="bot-main-title",d.BOT_MAIN_IMAGE="bot-main-image",d.BOT_MAIN_BODY="bot-main-body",d.BOT_MAIN_BUTTON="bot-main-button",d.BOT_SUB_TITLE="bot-sub-title",d.BOT_SUB_BODY="bot-sub-body",d.BOT_LANDING_PAGE_URL="bot-landing-page-url",d.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",d.BOT_RISK_SCREEN="bot-risk-screen",d.BOT_RELATED_ARTICLE="bot-related-article",d.THANK_YOU_IMAGE="thank-you-image",d.THANK_YOU_TITLE="thank-you-title",d.THANK_YOU_BODY="thank-you-body",d.TOTAL_LINE="total-line",d.BOT_SUBMISSION="bot-submission",d.BOT_EVENT_SUBMISSION="bot-event-submission",d.BOT_SUGGESTED_SERVICE="bot-suggested-service",d.SSO_INTENT="sso-intent",(p=v||(v={})).ACTION_CONDITION="action-condition",p.ACTION_INTERNAL="action-internal",p.ACTION_EXTERNAL="action-external",p.ACTION_SSO_REDIRECT="action-sso-redirect",p.ACTION_MULTIPLE_BUTTON="action-multiple-button",p.USER_CHOICE_TEXT="user-choice-text",p.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",p.USER_CHOICE_NEXT="user-choice-next",p.USER_CHOICE_IMAGE="user-choice-image",p.USER_SUBMIT_TEXT="user-submit-text",p.USER_SUBMIT_NUMBER="user-submit-number",p.USER_SUBMIT_NAME="user-submit-name",p.USER_SUBMIT_PHONE="user-submit-phone",p.USER_SUBMIT_EMAIL="user-submit-email",p.USER_SUBMIT_DROPDOWN="user-submit-dropdown",p.USER_SUBMIT_DATE="user-submit-date",p.USER_SUBMIT_DOB="user-submit-dob",p.USER_SUBMIT_CONFIRM="user-submit-confirm",p.USER_SUBMIT_SEND="user-submit-send",p.USER_SUBMIT_RESEND="user-submit-resend",p.USER_SUBMIT_ADDRESS="user-submit-address",p.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",p.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",p.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",p.USER_SUBMIT_BMI="user-submit-bmi",p.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",p.USER_SUBMIT_TERMS="user-submit-terms",p.USER_SUBMIT_GENDER="user-submit-gender",p.USER_SUBMIT_OTP="user-submit-otp",p.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",p.POLL_CHOICE="poll-choice",p.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",p.POLL_CHOICE_IMAGE="poll-choice-image",p.POLL_BUTTON="poll-button",p.RATING_STAR="rating-star",p.RATING_DESCRIPTION="rating-description",p.RATING_BUTTON="rating-button",p.LIKE_CHOICE="like-choice",p.DISLIKE_CHOICE="dislike-choice",p.REVIEW_CHOICE="review-choice",p.REVIEW_DESCRIPTION="review-description",p.REVIEW_BUTTON="review-button",p.RESULT_BUTTON="result-button",p.POLL_RESULT="poll-result",p.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address";let A=[v.USER_SUBMIT_ADDRESS_PROVINCE,v.USER_SUBMIT_ADDRESS_DISTRICT,v.USER_SUBMIT_ADDRESS_COMMUNE,v.USER_SUBMIT_ADDRESS];(u=_||(_={}))[u.UNLIMITED=0]="UNLIMITED",u[u.EXACT_NUMBER=1]="EXACT_NUMBER",u[u.RANGE=2]="RANGE";let w={[v.USER_SUBMIT_EMAIL]:"email",[v.USER_SUBMIT_TEXT]:"text",[v.USER_SUBMIT_DROPDOWN]:"text",[v.USER_SUBMIT_NAME]:"name",[v.USER_SUBMIT_NUMBER]:"number",[v.USER_SUBMIT_ADDRESS]:"address",[v.USER_SUBMIT_PHONE]:"tel",[v.USER_SUBMIT_OTP]:"tel",[v.USER_SUBMIT_WHATSAPP]:"tel",[v.USER_SUBMIT_DATE]:"date",[v.USER_SUBMIT_CONFIRM]:"confirm",[v.USER_SUBMIT_SEND]:"submit",[v.USER_SUBMIT_TERMS]:"terms",[v.USER_SUBMIT_ADDRESS_PROVINCE]:"province",[v.USER_SUBMIT_ADDRESS_DISTRICT]:"district",[v.USER_SUBMIT_ADDRESS_COMMUNE]:"commune",[v.USER_SUBMIT_BMI]:"bmi",[v.USER_SUBMIT_GENDER]:"gender",[v.POLL_CHOICE]:"poll",[v.POLL_CHOICE_TEXT_BY_INPUT]:"poll",[v.POLL_CHOICE_IMAGE]:"poll",[v.RATING_STAR]:"rating",[v.RATING_DESCRIPTION]:"text",[v.LIKE_CHOICE]:"like",[v.DISLIKE_CHOICE]:"dislike",[v.REVIEW_CHOICE]:"review",[v.USER_SUBMIT_GOOGLE_API_ADDRESS]:"google-api-address",[v.USER_SUBMIT_DOB]:"dob"},L={FRU:"FRU",survey:"Survey",ristScreener:"risk_screener",voucherAcuvue:"ACUVUE"};(m=O||(O={})).VIDEO="video",m.SHORTS="short",m.PODCAST="podcast",m.LIVESTREAM="live-stream",(h=C||(C={})).Facebook="facebook",h.Zalo="zalo",h.Twitter="twitter",h.WhatsApp="whatsApp",h.Line="line",h.Instagram="instagram",h.LinkedIn="linkedin",h.Youtube="youtube",h.Tiktok="tiktok",h.Telegram="telegram",h.Viber="viber";let R={DD:{id:"common.day",defaultMessage:"Day"},MM:{id:"common.month",defaultMessage:"Month"},YYYY:{id:"common.year",defaultMessage:"Year"}};var k=Object.freeze({__proto__:null,get SocialType(){return C},COMMON_DATE_TRANSLATE_KEY:R,get Gender(){return g},get BabyGrowthChartType(){return E},get BabyGrowthChartDuration(){return b},get BabyGrowthResultTab(){return f},get LOCALE(){return N.L},get OnboardingStep(){return y},get NodePosition(){return I},get NodeType(){return T},NodeFinalTypes:S,get NodeIntentType(){return x},get NodeActionType(){return v},FULL_KEY_ADDRESS:A,get NodeMultipleOptions(){return _},ELEMENT_CONTROL_INPUT_TYPE:w,SubotType:L,get VideoType(){return O}})},"4Jk+":function(e,t,a){a.d(t,{C:function(){return r},F:function(){return l},G:function(){return GlobalTextStyleNew},T:function(){return TemplateProvider},a:function(){return c},u:function(){return useTemplateVariant}});var n,o,r,l,i=a("mYVa"),s=a("q1tI");(n=r||(r={})).LEADGEN="leadgen",n.NONE="none",(o=l||(l={}))[o.regular=400]="regular",o[o.halfBold=500]="halfBold",o[o.semiBold=600]="semiBold",o[o.bold=700]="bold";let c={[r.NONE]:{fontSize:{base:[(0,i.h)(16),(0,i.h)(16)],lg:[(0,i.h)(18),(0,i.h)(16)],md:[(0,i.h)(18),(0,i.h)(16)],sm:[(0,i.h)(16),(0,i.h)(14)],xs:[(0,i.h)(14),(0,i.h)(12)],s1:[(0,i.h)(22),(0,i.h)(18)],s2:[(0,i.h)(18),(0,i.h)(16)],s3:[(0,i.h)(16),(0,i.h)(14)],s4:[(0,i.h)(14),(0,i.h)(12)],s5:[(0,i.h)(12),(0,i.h)(12)],p1:[(0,i.h)(18),(0,i.h)(16)],p2:[(0,i.h)(16),(0,i.h)(16)],p3:[(0,i.h)(16),(0,i.h)(14)],p4:[(0,i.h)(14),(0,i.h)(12)],p5:[(0,i.h)(12),(0,i.h)(12)],c1:[(0,i.h)(16),(0,i.h)(14)],c2:[(0,i.h)(14),(0,i.h)(12)],n1:[(0,i.h)(12),(0,i.h)(12)],label1:[(0,i.h)(14),(0,i.h)(14)],label2:[(0,i.h)(12),(0,i.h)(12)],h1:[(0,i.h)(40),(0,i.h)(26)],h2:[(0,i.h)(32),(0,i.h)(24)],h3:[(0,i.h)(26),(0,i.h)(20)],h4:[(0,i.h)(22),(0,i.h)(18)],h5:[(0,i.h)(18),(0,i.h)(16)],h5New:[(0,i.h)(20),(0,i.h)(18)],h6:[(0,i.h)(16),(0,i.h)(14)],title1:[(0,i.h)(17),(0,i.h)(17)],title2:[(0,i.h)(15),(0,i.h)(15)],body2:[(0,i.h)(15),(0,i.h)(15)]},lineHeight:{base:[(0,i.h)(24),(0,i.h)(24)],lg:[(0,i.h)(32),(0,i.h)(28)],md:[(0,i.h)(32),(0,i.h)(28)],sm:[(0,i.h)(24),(0,i.h)(22)],xs:[(0,i.h)(24),(0,i.h)(18)],s1:[(0,i.h)(32),(0,i.h)(26)],s2:[(0,i.h)(28),(0,i.h)(24)],s3:[(0,i.h)(24),(0,i.h)(24)],s4:[(0,i.h)(22),(0,i.h)(18)],s5:[(0,i.h)(18),(0,i.h)(18)],p1:[(0,i.h)(28),(0,i.h)(28)],p2:[(0,i.h)(24),(0,i.h)(24)],p3:[(0,i.h)(24),(0,i.h)(22)],p4:[(0,i.h)(22),(0,i.h)(18)],c1:[(0,i.h)(24),(0,i.h)(22)],c2:[(0,i.h)(22),(0,i.h)(18)],n1:[(0,i.h)(18),(0,i.h)(18)],label1:[(0,i.h)(22),(0,i.h)(22)],label2:[(0,i.h)(18),(0,i.h)(18)],h1:[(0,i.h)(52),(0,i.h)(34)],h2:[(0,i.h)(42),(0,i.h)(32)],h3:[(0,i.h)(36),(0,i.h)(26)],h4:[(0,i.h)(32),(0,i.h)(26)],h5:[(0,i.h)(28),(0,i.h)(24)],h5New:[(0,i.h)(28),(0,i.h)(24)],h6:[(0,i.h)(24),(0,i.h)(22)],title1:[(0,i.h)(24),(0,i.h)(24)],title2:[(0,i.h)(24),(0,i.h)(24)],body2:[(0,i.h)(24),(0,i.h)(24)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.2,-.2],p2:[0,-.2],p3:[0,-.2],p4:[-.2,0],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.8,-.7],h4:[-.6,-.6],h5:[-.2,-.2],h5New:[-.4,-.4],h6:[0,-.2],title1:[-.4,-.4],title2:[-.3,-.3],body2:[-.3,-.3]},fontWeightBySize:{s1:l.semiBold,s2:l.semiBold,s3:l.semiBold,s4:l.semiBold,h1:l.bold,h2:l.bold,h3:l.bold,h4:l.bold,h5:l.bold,h5New:l.semiBold,h6:l.bold},fontWeight:l},[r.LEADGEN]:{fontSize:{base:[(0,i.h)(16),(0,i.h)(16)],lg:[(0,i.h)(18),(0,i.h)(16)],md:[(0,i.h)(18),(0,i.h)(16)],sm:[(0,i.h)(16),(0,i.h)(14)],xs:[(0,i.h)(14),(0,i.h)(12)],s1:[(0,i.h)(22),(0,i.h)(18)],s2:[(0,i.h)(18),(0,i.h)(16)],s3:[(0,i.h)(16),(0,i.h)(14)],s4:[(0,i.h)(14),(0,i.h)(12)],s5:[(0,i.h)(12),(0,i.h)(12)],p1:[(0,i.h)(17),(0,i.h)(17)],p2:[(0,i.h)(15),(0,i.h)(15)],p3:[(0,i.h)(13),(0,i.h)(13)],p4:[(0,i.h)(14),(0,i.h)(12)],p5:[(0,i.h)(12),(0,i.h)(12)],c1:[(0,i.h)(12),(0,i.h)(12)],c2:[(0,i.h)(11),(0,i.h)(11)],n1:[(0,i.h)(12),(0,i.h)(12)],label1:[(0,i.h)(14),(0,i.h)(14)],label2:[(0,i.h)(12),(0,i.h)(12)],h1:[(0,i.h)(40),(0,i.h)(26)],h2:[(0,i.h)(32),(0,i.h)(24)],h3:[(0,i.h)(26),(0,i.h)(22)],h4:[(0,i.h)(22),(0,i.h)(20)],h5:[(0,i.h)(18),(0,i.h)(16)],h5New:[(0,i.h)(20),(0,i.h)(18)],h6:[(0,i.h)(16),(0,i.h)(14)],title1:[(0,i.h)(17),(0,i.h)(17)],title2:[(0,i.h)(15),(0,i.h)(15)],body2:[(0,i.h)(15),(0,i.h)(15)],overline:[(0,i.h)(11),(0,i.h)(11)],subText:[(0,i.h)(10),(0,i.h)(10)]},lineHeight:{base:[(0,i.h)(24),(0,i.h)(24)],lg:[(0,i.h)(32),(0,i.h)(28)],md:[(0,i.h)(32),(0,i.h)(28)],sm:[(0,i.h)(24),(0,i.h)(22)],xs:[(0,i.h)(24),(0,i.h)(18)],s1:[(0,i.h)(32),(0,i.h)(26)],s2:[(0,i.h)(28),(0,i.h)(24)],s3:[(0,i.h)(24),(0,i.h)(24)],s4:[(0,i.h)(22),(0,i.h)(18)],s5:[(0,i.h)(18),(0,i.h)(18)],p1:[(0,i.h)(28),(0,i.h)(28)],p2:[(0,i.h)(24),(0,i.h)(24)],p3:[(0,i.h)(20),(0,i.h)(20)],p4:[(0,i.h)(22),(0,i.h)(18)],c1:[(0,i.h)(16),(0,i.h)(16)],c2:[(0,i.h)(22),(0,i.h)(18)],n1:[(0,i.h)(18),(0,i.h)(18)],label1:[(0,i.h)(22),(0,i.h)(22)],label2:[(0,i.h)(18),(0,i.h)(18)],h1:[(0,i.h)(48),(0,i.h)(34)],h2:[(0,i.h)(40),(0,i.h)(32)],h3:[(0,i.h)(32),(0,i.h)(32)],h4:[(0,i.h)(32),(0,i.h)(28)],h5:[(0,i.h)(28),(0,i.h)(24)],h5New:[(0,i.h)(28),(0,i.h)(24)],h6:[(0,i.h)(24),(0,i.h)(22)],title1:[(0,i.h)(24),(0,i.h)(24)],title2:[(0,i.h)(24),(0,i.h)(24)],body2:[(0,i.h)(24),(0,i.h)(24)],overline:[(0,i.h)(12),(0,i.h)(12)],subText:[(0,i.h)(12),(0,i.h)(12)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.4,-.4],p2:[-.3,-.3],p3:[-.3,-.3],p4:[-.2,0],c1:[-.2,-.2],c2:[-.2,-.2],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.6,-.6],h4:[-.6,-.4],h5:[-.2,-.2],h5New:[-.4,-.4],h6:[0,-.2],n1:[-.2,-.2],title1:[-.4,-.4],title2:[-.3,-.3],body2:[-.3,-.3],overline:[-.2,-.2],subText:[-.2,-.2]},fontWeightBySize:{s1:l.semiBold,s2:l.semiBold,s3:l.semiBold,s4:l.semiBold,h1:l.bold,h2:l.bold,h3:l.bold,h4:l.bold,h5:l.bold,h5New:l.semiBold,h6:l.bold},fontWeight:l}},GlobalTextStyleNew=e=>({[r.LEADGEN]:{h1:{fontSize:(0,i.h)(40),lineHeight:(0,i.h)(48),letterSpacing:"-1.2px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(26),lineHeight:(0,i.h)(32),letterSpacing:"-0.6px"}},h2:{fontSize:(0,i.h)(32),lineHeight:(0,i.h)(40),letterSpacing:"-1px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(20),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"}},h3:{fontSize:(0,i.h)(26),lineHeight:(0,i.h)(32),letterSpacing:"-0.6px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(20),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"}},p1:{fontSize:(0,i.h)(17),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"},p2:{fontSize:(0,i.h)(15),lineHeight:(0,i.h)(24),letterSpacing:"-0.3px"}}}),d=(0,s.createContext)(r.NONE),TemplateProvider=({variant:e=r.NONE,children:t})=>s.createElement(d.Provider,{value:e},t),useTemplateVariant=()=>(0,s.useContext)(d)},"/6bZ":function(e,t,a){a.d(t,{C:function(){return ChoiceField},T:function(){return TextField},i:function(){return O},u:function(){return h}});var n=a("/npG"),o=a("iuhU"),r=a("Eso5"),l=a("8vDj"),i=a("4Jk+"),s=a("+MNf"),c=a("q1tI"),d=a("ChHM"),p=a("AeFk"),u=a("rBCA"),m=a("iBNF"),h=(0,n.k)(e=>(0,i.G)(e)[i.C.LEADGEN]);let g=(0,c.createContext)({}),E=p.iv` height: 100% !important; min-height: calc(var(--container-height, 56px) * 24 / 56); line-height: calc(var(--container-height, 56px) * 24 / 56); border: none !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; padding: 0; cursor: pointer; /* opacity: 0; */ ::placeholder { color: ${m.r.colors.gray400}; } `,b=p.iv` height: auto !important; cursor: text; opacity: 1; transition: 0.1s ease-in-out all; `,f=p.iv` position: absolute; top: calc(var(--container-height) / 2); left: var(--space-x, 16px); margin: 0; z-index: 1; cursor: pointer; transform: translateY(-50%); transition: 0.125s ease-in all; right: 0; // auto grow width `,y=p.iv` top: var(--space-y-shrink, 6px); transform: translateY(0); transition: 0.125s ease-out all; right: 0; // auto grow width `,I=p.iv` min-height: var(--container-height, 56px); display: flex; align-items: flex-end; border: 1px solid ${m.r.colors.gray200}; border-radius: 8px; background-color: #fff; padding-inline: var(--space-x, 16px); padding-block: var(--space-y-not-shrink, 16px); cursor: pointer; pointer-events: none; &:has(.mantine-Input-rightSection) { padding-right: var(--container-height, 56px); } .mantine-Input-icon { display: none; } .mantine-NumberInput-control { border-color: ${m.r.colors.gray200}; } `,T=p.iv` height: auto; min-height: var(--container-height, 56px); padding-block: var(--space-y-shrink, 6px); cursor: text; pointer-events: auto; `,x=p.iv` color: ${m.r.colors.red800}; font-size: 12px; line-height: 1.5; `,v=u.Z.div` --space-x: 16px; --space-y-not-shrink: 15px; --space-y-shrink: 6px; --container-height: 56px; --label-not-shrink: 16px; --label-shrink: 12px; --input: 15px; position: relative; min-width: 100px; max-width: 100%; display: inline-block; .textField_wrapper { display: inline-block; width: 100%; cursor: pointer; } .mantine-InputWrapper-root { &[data-invalid='true'] { .mantine-Input-wrapper { border-color: ${m.r.colors.red400}; } } .mantine-Input-wrapper { &:has([data-invalid]) { border-color: ${m.r.colors.red400}; } } } .mantine-InputWrapper-label { ${f} } .mantine-Input-wrapper { ${I} + .mantine-Popover-dropdown[data-position="bottom-start"] { left: 0 !important; } + .mantine-Popover-dropdown[data-position='top-start'] { top: unset !important; left: 0 !important; bottom: 100% !important; } } .mantine-Input-input { ${E} } &.textField_shrink { .mantine-InputWrapper-label { ${y} } .mantine-Input-wrapper { ${T} &.mantine-Select-wrapper { .mantine-Select-rightSection { pointer-events: auto !important; } } } .mantine-Input-input { ${b} } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: var(--space-x, 16px); } .PhoneInput { .PhoneInputInput { opacity: 1; } } } } &:focus-within { .mantine-Input-wrapper { transition: 0.25s linear border; border-color: ${m.r.colors.primary600}; box-shadow: 0 0 4px ${m.r.colors.primary200}; } } .PhoneInput { --phone-select: 75px; --phone-input-space-x: 8px; width: 100%; opacity: 1; border: none; .PhoneInputCountry { background-color: transparent; border: none; padding: 0; width: var(--phone-select, 75px); } .PhoneInputInput { flex: 1; min-width: 0; line-height: 1.5; outline: none !important; border: none; box-shadow: none; font-size: var(--input, 15px); padding: 0 var(--phone-input-space-x, 8px); /* opacity: 0; */ color: ${m.r.colors.gray800} !important; :focus { color: ${m.r.colors.gray800} !important; } } } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: calc( var(--space-x, 16px) + var(--phone-select, 75px) + var(--phone-input-space-x, 8px) ); } } .icon { position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); transform: translateY(-50%); transition: 0.125s ease-in all; &.shrink { top: calc(var(--container-height) / 2 - 4px); transform: translateY(0); } } `,_=u.Z.div` &.leadgen-form_checkbox, &.leadgen-form_radio { width: 100%; } &.leadgen-form_dropdown { width: calc(50% - 12px); } .mantine-InputWrapper-root { display: block; } .mantine-InputWrapper-label { margin-bottom: 0.5rem; color: ${m.r.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 1.5; } .mantine-Radio-root, .mantine-Checkbox-root { gap: 8px; min-width: calc(50% - 4px); // input[type='radio'], // input[type='checkbox'] { // border-color: ${m.r.colors.gray600}; // width: 18px; // height: 18px; // } // input[type='checkbox'] { // border-radius: 4px; // } // &[data-checked='true'] { // input[type='radio'], // input[type='checkbox'] { // border-color: ${m.r.colors.primary600}; // } // input[type='radio'] { // background-color: white; // } // } .mantine-Checkbox-input { &:checked { border-color: ${m.r.colors.primary600}; } } } .leadgen-choiceContainer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; } .mantine-InputWrapper-error { ${x} } `;u.Z.div` position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); `;let TextField=e=>{let{shrink:t,onChangeShrink:a,children:n,className:r}=e,l=(0,s._)(e,["shrink","onChangeShrink","children","className"]),[i,d]=(0,c.useState)(t),[p,u]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{d(t)},[t]),c.createElement(g.Provider,Object.assign({value:{shrinkProps:t,shrink:i,setShrink:d,onChangeShrink:a,hasIcon:p,setHasIcon:u}},l),c.createElement(v,Object.assign({shrink:i,className:(0,o.default)(r,"textField",{textField_shrink:!!i})},l),n))},TextFieldControl=e=>{let{shrink:t,shrinkProps:a,onChangeShrink:n,setShrink:o,hasIcon:l}=(0,c.useContext)(g),{children:i,htmlFor:s}=e,p=(0,d.O)(()=>{a||(o(!1),null==n||n(!1))}),focusInput=e=>{setTimeout(()=>{let t=e.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])'),a=t.item(t.length-1);a&&a.focus({preventScroll:!0})},150)},u=(0,c.useCallback)(e=>{if(t){focusInput(e.currentTarget);return}o(!0),null==n||n(!0),focusInput(e.currentTarget)},[t]);return(0,c.useEffect)(()=>{o(a)},[a]),c.createElement(r.x,{ref:p,onClick:u,className:"textField_wrapper",component:s?"label":"div",htmlFor:s},"function"==typeof i?i({shrink:!!t,hasIcon:l}):i)},TextFieldIcon=({Icon:e})=>{let{shrink:t,setHasIcon:a}=(0,c.useContext)(g),n=(0,l.rZ)();return(0,c.useEffect)(()=>{e&&a(!0)},[]),e?c.createElement(e,{className:`icon ${t?"shrink":""}`,shrink:t,size:24,color:n.colors.gray[9]}):null};TextField.Control=TextFieldControl,TextField.Icon=TextFieldIcon;let ChoiceField=e=>{let{children:t,className:a}=e,n=(0,s._)(e,["children","className"]);return c.createElement(_,Object.assign({className:(0,o.default)(a,"choiceField")},n),t)};var O=Object.freeze({__proto__:null,TextField:TextField,TextFieldControl:TextFieldControl,TextFieldIcon:TextFieldIcon,ChoiceField:ChoiceField})},JOTH:function(e,t,a){a.d(t,{i:function(){return isVideo}});let isVideo=e=>e.endsWith(".mp4")},DzJw:function(e,t,a){a.d(t,{L:function(){return Logo}});var n=a("q1tI"),o=a("nwPE"),r=a("5SVV"),l=a("rBCA"),i=a("Dt6F"),s=a("0/4J"),c=a("oxWm");let d=l.Z.div` position: relative; display: inline-flex; align-items: center; z-index: 0; .main-logo-icon { object-fit: contain; } &[data-logo-is-light] { > svg path { fill: #fff; } img { filter: brightness(0) invert(1); } } &[data-has-badge] { @supports (display: flex) and (gap: 1em) { gap: 0.5rem; } @supports not ((display: flex) and (gap: 1em)) { > img { margin-left: 0.25rem; } } } .common-logo-seasonal-left, .common-logo-seasonal-right { z-index: -1; max-width: unset; max-height: unset; pointer-events: none; } .common-logo-seasonal-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); pointer-events: none; } .common-logo-seasonal-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); } &[data-seasonal='christmas'] { padding-left: 37px; padding-right: 22px; .common-logo-seasonal-left { width: 125px; height: 56px; } .common-logo-seasonal-right { width: 23px; height: 17px; } ${i.M.mbDown} { padding-left: 30px; padding-right: 16px; .common-logo-seasonal-left { // width: 125px; height: 46px; } .common-logo-seasonal-right { // width: 23px; height: 12px; } } } &[data-seasonal='new-year'] { padding-right: 85px; .common-logo-seasonal-left { top: 35%; width: 100px; height: 56px; } .common-logo-seasonal-right { width: 85px; height: 54px; } ${i.M.mbDown} { padding-right: 0; .common-logo-seasonal-right { display: none; } } } &[data-seasonal='lunar-new-year'] { padding-left: 30px; padding-right: 35px; .common-logo-seasonal-left { width: 33px; height: 41px; } .common-logo-seasonal-right { width: 37px; height: 54px; } } &[data-seasonal='ramadan'] { &[data-type='hellosehat'] { padding-right: 35px; .common-logo-seasonal-left { width: 165px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 33px; height: unset; } } &[data-type='hellodoktor'] { padding-right: 66px; .common-logo-seasonal-left { width: 133px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 63px; height: unset; } } } &[data-seasonal='hung-king'] { &[data-type='hellobacsi'] { .common-logo-seasonal-left { width: 134px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left { width: 145px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } } &[data-seasonal='vn-independent-day'] { &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { width: unset; height: 56px; left: 65%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { left: 50%; z-index: 1; } } &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { width: unset; height: 56px; left: 60%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { left: 40%; z-index: 1; } } } .desktop-only { ${i.M.mbDown} { display: none; } } .mobile-only { ${i.M.mbUp} { display: none; } } `,p=l.Z.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,isChristmas=e=>{let t=e.getDate(),a=e.getMonth();return 11===a&&t>=16&&t<=25},u={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},m=[o.L.Vietnam,o.L.Taiwan,o.L.Indonesia,o.L.Malaysia],isLunarNewYear=e=>{let t=e.getFullYear(),a=u[t];if(!a)return!1;let n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-7);let r=new Date(n);return r.setDate(n.getDate()+5),o<=e&&e<=r},isNewYear=e=>{let t=e.getDate(),a=e.getMonth();return 11===a&&t>=26||0===a&&t<=15},h=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],isRamadan=e=>{let t=e.getFullYear(),a=h.filter(e=>e.year===t);return!!a.length&&a.some(a=>{let n=a.start[2]||t,o=new Date(n,a.start[1],a.start[0]),r=new Date(n,a.end[1],a.end[0]);return o<=e&&e<=r})},g={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]},isVNHungKing=e=>{let t=e.getFullYear(),a=g[t];if(!a)return!1;let n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-1);let r=new Date(n);return r.setDate(n.getDate()+1),o<=e&&e<=r},isVN3004=e=>{let t=e.getFullYear(),a=new Date(t,3,30),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+2),n<=e&&e<=o},isLabourDay=e=>{let t=e.getFullYear(),a=new Date(t,4,1),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o},isVNIndependentDay=e=>{let t=e.getFullYear(),a=new Date(t,8,2),n=new Date(a);n.setDate(a.getDate()-1);let o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o},Logo=({type:e,className:t,style:a,isLightLogo:l,customSize:i,badge:u,locale:h,dateForSeasonal:g,isPro:E})=>{let[b,f]=(0,n.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1,isVNIndependentDay:!1});return(0,n.useEffect)(()=>{if(!g||isNaN(new Date(g).getTime()))return;let e=new Date(g),t=isChristmas(e),a=m.includes(h)&&isLunarNewYear(e),n=!a&&isNewYear(e),r=isRamadan(e),l=h===o.L.Vietnam&&isVNHungKing(e),i=h===o.L.Vietnam&&isVN3004(e),s=h===o.L.Vietnam&&isLabourDay(e),c=h===o.L.Vietnam&&isVNIndependentDay(e);f({isChristmas:t,isLunarNewYear:a,isNewYear:n,isRamadan:r,isVNHungKing:l,isVN3004:i,isLabourDay:s,isVNIndependentDay:c})},[h,new Date(g).getDate()]),n.createElement(d,{className:t,style:a,"data-logo-is-light":l||void 0,"data-has-badge":!!u,"data-seasonal":b.isRamadan?"ramadan":b.isChristmas?"christmas":b.isLunarNewYear?"lunar-new-year":b.isNewYear?"new-year":b.isVNHungKing?"hung-king":b.isVN3004?"30-04":b.isLabourDay?"labour-day":b.isVNIndependentDay?"vn-independent-day":void 0,"data-type":e},b.isChristmas?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left xmas logo",src:r.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right xmas logo",src:r.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):b.isNewYear?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left new year logo",src:r.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right new year logo",src:r.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):b.isLunarNewYear?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left lunar new year logo",loading:"lazy",src:r.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right lunar new year logo",loading:"lazy",src:r.C.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):b.isRamadan&&"hellosehat"===e?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left ramadan logo",loading:"lazy",src:r.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right ramadan logo",loading:"lazy",src:r.C.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):b.isRamadan&&"hellodoktor"===e?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"left ramadan logo",loading:"lazy",src:r.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),n.createElement(c.I,{alt:"right ramadan logo",loading:"lazy",src:r.C.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):b.isVNHungKing&&("hellobacsi"===e||"marryBaby"===e)?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"Hung King logo",loading:"lazy",src:r.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})):b.isVNIndependentDay&&("hellobacsi"===e||"marryBaby"===e)?n.createElement(n.Fragment,null,n.createElement(c.I,{alt:"VN Independent day logo",loading:"lazy",src:r.C.getAssetPath("logo/vn-independence-desktop.png"),className:"common-logo-seasonal-left desktop-only"}),n.createElement(c.I,{alt:"VN Independent day logo",loading:"lazy",src:r.C.getAssetPath("logo/vn-independence-mobile.png"),className:"common-logo-seasonal-left mobile-only"})):null,n.createElement(s.L,{type:e,width:null==i?void 0:i.width,height:null==i?void 0:i.height,isLight:l}),E?n.createElement(p,{src:r.C.getAssetPath("logo/pro-suffix.svg")}):null,u)}},UldL:function(e,t,a){a.d(t,{T:function(){return d}});var n=a("+MNf"),o=a("q1tI"),r=a("/npG"),l=a("8vDj"),i=a("TIp3"),s=a("4Jk+"),c=(0,r.k)((e,t)=>{var a,n,o,r,l,i,c,d,p,u;let m=s.a[null==t?void 0:t.customStylesType]||s.a[s.C.NONE],h=null===(a=m.fontSize[null==t?void 0:t.size])||void 0===a?void 0:a[0],g=null===(n=m.lineHeight[null==t?void 0:t.size])||void 0===n?void 0:n[0],E=null!==(l=null===(r=null===(o=m.letterSpacing)||void 0===o?void 0:o[null==t?void 0:t.size])||void 0===r?void 0:r[0])&&void 0!==l?l:0,b=null===(i=m.fontSize[null==t?void 0:t.size])||void 0===i?void 0:i[1],f=null===(c=m.lineHeight[null==t?void 0:t.size])||void 0===c?void 0:c[1],y=null!==(u=null===(p=null===(d=m.letterSpacing)||void 0===d?void 0:d[null==t?void 0:t.size])||void 0===p?void 0:p[1])&&void 0!==u?u:0;return{root:Object.assign({},(null==t?void 0:t.size)&&{fontWeight:(null==t?void 0:t.as)==="label"?s.F.semiBold:m.fontWeight[t.weight]||m.fontWeightBySize[null==t?void 0:t.size]||s.F.regular,fontSize:`${h}`,lineHeight:`${g}`,letterSpacing:E,[e.fn.smallerThan("sm")]:{fontSize:`${b}`,lineHeight:`${f}`,letterSpacing:y}})}});let d=(0,o.forwardRef)((e,t)=>{var a,{size:r,color:d,weight:p,as:u="p",styles:m,className:h,dataEventCategory:g,dataEventAction:E,dataEventLabel:b,variant:f}=e,y=(0,n._)(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel","variant"]);let I=(0,l.rZ)(),T=(0,s.u)(),{classes:x,cx:v}=c({size:r,weight:"caption"===p?"bold":p,as:u,customStylesType:T},{name:"Text",styles:m}),_="string"==typeof I.colors[d]?I.colors[d]:d;return o.createElement(i.x,Object.assign({"data-size":r,className:v(x.root,h),color:_||("label"===u?I.colors.gray[6]:(null===(a=null==I?void 0:I.other)||void 0===a?void 0:a.template)==="mb"?I.colors.delftGray[7]:void 0)||("primary"===f?I.colors.gray[9]:"secondary"===f?I.colors.gray[7]:"tertiary"===f?I.colors.gray[4]:"disabled"===f?I.colors.gray[3]:"error"===f?I.colors.red[6]:"success"===f?I.colors.green[6]:void 0)||I.colors.gray[7],component:u,"data-event-category":g,"data-event-action":E,"data-event-label":b,classNames:{root:Object.assign(Object.assign({},y.wordWrap?{"word-wrap":y.wordWrap}:void 0),y.isUppercase||"caption"===p?{"text-transform":"uppercase"}:void 0)},ref:t},y))})},AatG:function(e,t,a){a.d(t,{C:function(){return Close},D:function(){return DrawerComponent},u:function(){return useDrawerDrag}});var n=a("q1tI"),o=a("+MNf"),r=a("iuhU"),l=a("rSBk"),i=a("rBCA"),s=a("+24l");let Close=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),n.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),c=300,useDrawerDrag=(e=c)=>{let[t,a]=(0,n.useState)(!1),o=(0,n.useCallback)(()=>{a(!0)},[]),r=(0,n.useCallback)(()=>{setTimeout(()=>{a(!1)},e)},[e]);return{isDragging:t,handleDragStart:o,handleDragEnd:r}},d=(0,i.Z)(l.dy.Content)` position: fixed; z-index: ${s.Z-9e6+1}; inset: 0; background-color: #fff; outline: none !important; &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-track { background-color: transparent; } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.4); border-radius: 6px; } &[data-vaul-drawer-direction='bottom'] { border-top-left-radius: 8px; border-top-right-radius: 8px; } &[data-vaul-drawer-direction='top'] { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } &[data-vaul-drawer-direction='left'] { border-top-right-radius: 8px; border-bottom-right-radius: 8px; } &[data-vaul-drawer-direction='right'] { border-top-left-radius: 8px; border-bottom-left-radius: 8px; } ${e=>e.isDragging&&` input { caret-color: transparent; } `} `,p=(0,i.Z)(l.dy.Overlay)` position: fixed; inset: 0; z-index: ${s.Z-9e6}; width: 100%; max-height: 100%; &[data-state='open'] { opacity: 0.6 !important; } `,DrawerComponent=e=>{let{open:t,onOpenChange:a,snapPoints:i,activeSnapPoint:c,setActiveSnapPoint:u,children:m,overlayClassName:h,className:g,fadeFromIndex:E=s.Z-9e6,onClose:b}=e,f=(0,o._)(e,["open","onOpenChange","snapPoints","activeSnapPoint","setActiveSnapPoint","children","overlayClassName","className","fadeFromIndex","onClose"]),[y,I]=(0,n.useState)(t),[T,x]=(0,n.useState)(i?null==i?void 0:i[0]:null),{isDragging:v,handleDragStart:_,handleDragEnd:O}=useDrawerDrag(),C=(0,n.useCallback)(e=>{I(e),null==a||a(e)},[a]),N=(0,n.useMemo)(()=>i&&i.length?T===i[i.length-1]:y,[T,i]),S=(0,n.useMemo)(()=>{let e={open:y,onOpenChange:C,fadeFromIndex:E};return i&&(null==i?void 0:i.length)&&(e.snapPoints=i,e.activeSnapPoint=T,e.setActiveSnapPoint=e=>{x(e),null==u||u(e)}),e},[y,C,T,x,u,i,E]);return(0,n.useEffect)(()=>{I(t)},[t]),(0,n.useEffect)(()=>{x(c)},[c]),n.createElement(l.dy.Root,Object.assign({onDrag:_,onRelease:O,onClose:b},f,S),n.createElement(l.dy.Portal,null,n.createElement(p,{className:(0,r.default)(h,"drawer__overlay",{drawer__overlay_full:N})}),n.createElement(d,{isDragging:v,className:(0,r.default)(g,"drawer__content",{drawer__content_full:N})},n.createElement(l.dy.Handle,{className:"drawer__handle"}),n.createElement(l.dy.Title,{style:{display:"none"}}),m)))}},"5SVV":function(e,t,a){a.d(t,{C:function(){return i}});var n=a("xrdX"),o=a("GOBr"),r=a("yNk5");let isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),l="hellosehat.com",i=new class{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,a)=>{let n="https://hhg-common."+[t||this.getBaseDomain(),a||this.subPath,e].join("/");return o.y||r.env.JEST_WORKER_ID?n:n+"?v="+Math.floor(new Date().getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){let{host:e}=window.location,t=e.split("."),a=n.v[Object.keys(n.v).find(t=>e.includes(n.v[t]))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every(e=>isNumeric(e))||!a?l:a}return l}};i.subPath="common",i.baseDomain=n.v["vi-VN"]}}]);