"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8674],{djP4:function(e,t,a){a.d(t,{F:function(){return Footer}});var r=a("q1tI"),n=a("jONk"),o=a("Wgwc"),l=a.n(o),i=a("SPK5"),c=a("OAL+"),d=a("Eso5"),s=a("HalR"),p=a("+J3I"),m=a("fkwy"),u=a("rBCA"),g=a("iBNF"),x=a("xrdX"),h=a("eQU5"),f=a("q8y3");let v=u.Z.footer` background-color: #1b3250; .inner { padding: 64px 24px 98px 24px; margin: 0 auto; } .newsletter { padding: 24px 0; } .footer-logo { max-width: 132px; max-height: 32px; &[data-is-sehat='true'] { max-width: 250px; } img { object-fit: contain; } } .social { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; > .icons { display: flex; gap: 16px; } } hr { height: 1px; border: none; margin: 16px 0 16px 0; background: ${g.r.colors.neutral500}; opacity: 0.1; outline: none; } .footer-menu-column { min-width: 168px; } .footer-menu-title { margin-bottom: 16px; } .footer-menu-link { display: block; } .footer-menu-link-wrapper { display: flex; flex-direction: column; gap: 12px; } .copyright { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; .copyright-content { color: ${g.r.colors.neutral500}; font-size: 12px; } .copyright-image-wrapper { flex-shrink: 0; flex-wrap: wrap; display: flex; gap: 16px; justify-content: flex-end; .copyright-image { align-self: flex-start; img { height: 32px; } } } } .otherSites { display: flex; gap: 16px; align-items: center; padding: 19px 0; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; .flags { display: flex; gap: 12px; } } .signupButton { display: none; border: none; margin-top: 16px; outline: none; text-transform: uppercase; } ${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 ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; > .footer-menu-link-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); } } } .otherSites { margin-bottom: 24px; } } ${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; } } } `,b=u.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:n})=>r.createElement(b,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":a,"data-content-label":n}),FooterMenuColumn=({title:e,items:t,locale:a,index:n})=>{let{isMobile:o}=(0,m.u)();return r.createElement("div",{className:"footer-menu-column"},e?r.createElement(s.T,{size:o?"s4":"s3",className:"footer-menu-title",weight:o?"regular":"semiBold",color:"neutral.6"},e):null,r.createElement("div",{className:"footer-menu-link-wrapper"},null==t?void 0:t.map((e,t)=>r.createElement(s.T,{size:o?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${x.v[a]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:o&&0===n?"semiBold":"regular"},e.title))))},DiscoverFooter=({className:e,footerInfo:t,locale:a})=>{var o,i,c,d,p,u,g,x,h,f,b;let{isMobile:y}=(0,m.u)(),w=null==t?void 0:t.menu,C=(null===(i=null===(o=null==t?void 0:t.general)||void 0===o?void 0:o.verified)||void 0===i?void 0:i.filter(Boolean))||[];return r.createElement(v,{className:e},r.createElement(n.C,null,r.createElement("div",{className:"inner"},r.createElement("a",{href:"/"},r.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(c=null==t?void 0:t.general)||void 0===c?void 0:c.logo,alt:"Logo","data-is-sehat":"id-ID"===a})),r.createElement("div",{className:"columns"},r.createElement("div",{className:"newsletter"},r.createElement(s.T,{size:y?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(d=null==t?void 0:t.general)||void 0===d?void 0:d.content),r.createElement("div",{className:"social"},r.createElement(s.T,{size:"p4",color:"neutral.6"},null===(p=null==t?void 0:t.social)||void 0===p?void 0:p.title),r.createElement("div",{className:"icons"},null===(g=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===g?void 0:g.map((e,t)=>r.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},r.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"})))))),r.createElement("div",{className:"footer-menu"},w&&r.createElement(r.Fragment,null,null==w?void 0:w.map((e,t)=>r.createElement(FooterMenuColumn,{title:e.menu_title,items:e.items,locale:a,key:t,index:t}))))),r.createElement("div",{className:"otherSites"},r.createElement(s.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(x=null==t?void 0:t.branch)||void 0===x?void 0:x.title),r.createElement("div",{className:"flags"},null===(f=null===(h=null==t?void 0:t.branch)||void 0===h?void 0:h.branch)||void 0===f?void 0:f.map((e,t)=>r.createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},r.createElement(Flag,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url}))))),r.createElement("div",{className:"copyright"},r.createElement("div",{className:"copyright-image-wrapper"},C.length?C.map((e,t)=>r.createElement("a",{href:e.url,key:t,className:"copyright-image"},r.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))):null),r.createElement(s.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},r.createElement("div",{dangerouslySetInnerHTML:{__html:null===(b=null==t?void 0:t.general)||void 0===b?void 0:b.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}}))))))},y=u.Z.footer` position: relative; overflow: hidden; .icons { margin-top: 12px; margin-bottom: 20px; > a:not(:last-child) { margin-right: 16px; } } a { text-decoration: none; } `,w=u.Z.div` position: relative; padding: 80px 0 40px; margin: auto 68px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid ${g.r.colors.neutral200}; ${p.M.tdDown} { margin: auto 16px; flex-wrap: wrap; row-gap: 32px; column-gap: 16px; } ${p.M.mbDown} { margin: auto 0; } `,C=u.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; ${p.M.mbDown} { flex: 1 1 160px; } .title { padding-bottom: 4px; } `,E=u.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; `,k=u.Z.div` background-color: #{map-get($mbColors, 'dark')}; padding: 16px 0; position: relative; img { width: 89px; height: 32px; } .content { display: flex; align-items: center; justify-content: space-between; gap: 174px; margin: auto 68px; ${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; } `,N=u.Z.div` padding: 40px 0; ${p.M.mbUp} { margin: auto 68px; } `,$=u.Z.div` display: flex; gap: 16px; .social-logo { width: 28px; } `,MarryBabyFooter=({logoType:e="marryBaby",footerMenu:t,background:a})=>{var o;if(!t)return null;let{general:p,menu:m,socials:u}=t;return r.createElement(y,{style:{backgroundColor:a||"none"}},r.createElement(n.C,null,r.createElement(w,null,null==m?void 0:m.map(({menu_title:e,items:t},a)=>r.createElement(C,{key:`mbf${a}`},r.createElement(f.M,{className:"title",type:"subtitle-1",color:g.r.mbColors.pink},e),null==t?void 0:t.map(({title:e,url:t},a)=>r.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},r.createElement(E,{key:`mbitem${a}`},r.createElement(f.M,{type:"bodytext-2",color:g.r.mbColors.gray},e)))))))),r.createElement(n.C,null,r.createElement(N,null,r.createElement(i.k,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},r.createElement(c.K,{spacing:"24px",className:"info-item"},r.createElement(h.L,{className:"logo",type:e}),r.createElement(s.T,{size:"p4",as:"div"},r.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.content}})),r.createElement($,null,null==u?void 0:u.map(({icon:e,name:t,url:a},n)=>r.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},r.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t}))))),r.createElement(d.x,{className:"info-item",sx:{paddingTop:"7px"}},r.createElement(s.T,{size:"p4",as:"div"},r.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.information}})))))),r.createElement(k,null,r.createElement(n.C,null,r.createElement("div",{className:"content"},r.createElement(s.T,{size:"p5",color:"#fff",as:"div"},r.createElement("div",{dangerouslySetInnerHTML:{__html:null==p?void 0:p.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}})),r.createElement("div",{className:"verify"},null===(o=null==p?void 0:p.verified)||void 0===o?void 0:o.map(({image:e,url:t},a)=>r.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))},Footer=({locale:e,footerInfo:t,siteType:a,background:n})=>"helloSites"===a?r.createElement(DiscoverFooter,{locale:e,footerInfo:t||{}}):r.createElement(MarryBabyFooter,{footerMenu:t,background:n})},"7OTr":function(e,t,a){a.d(t,{C:function(){return CartCareButton},S:function(){return ShoppingCartCare}});var r=a("q1tI"),n=a("xXM3"),o=a.n(n),l=a("rBCA"),i=a("Eso5"),c=a("+J3I"),d=a("iBNF"),s=a("RVQf"),p=a("HalR");let ShoppingCartCare=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),r.createElement("path",{d:"M1.94434 1.94434L3.44545 2.31989C3.88211 2.42878 4.20989 2.791 4.27545 3.23656L5.55656 11.9454",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.9444 14.7218H4.99997C4.23331 14.7218 3.61108 14.0996 3.61108 13.3329C3.61108 12.5662 4.23331 11.944 4.99997 11.944H14.4766C14.9544 11.944 15.38 11.6385 15.5311 11.184L17.0122 6.73957C17.2522 6.01957 16.7166 5.27734 15.9578 5.27734H4.57553",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M4.16648 18.8891C4.93354 18.8891 5.55537 18.2673 5.55537 17.5002C5.55537 16.7332 4.93354 16.1113 4.16648 16.1113C3.39941 16.1113 2.77759 16.7332 2.77759 17.5002C2.77759 18.2673 3.39941 18.8891 4.16648 18.8891Z",fill:"currentColor"}),r.createElement("path",{d:"M15.8332 18.8891C16.6003 18.8891 17.2221 18.2673 17.2221 17.5002C17.2221 16.7332 16.6003 16.1113 15.8332 16.1113C15.0662 16.1113 14.4443 16.7332 14.4443 17.5002C14.4443 18.2673 15.0662 18.8891 15.8332 18.8891Z",fill:"currentColor"})),m=(0,l.Z)(i.x)` display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #ffffff33; position: relative; flex-shrink: 0; cursor: pointer; /* Desktop: Square layout */ border-radius: 28px; max-height: 40px; padding: 9px 1rem; background-color: inherit; white-space: nowrap; .cart-care-icon { width: 20px; height: 20px; color: ${d.r.colors.white}; flex-shrink: 0; } .cart-care-button-text { display: block; font-size: 14px; font-weight: 500; line-height: 22px; } /* Mobile: Circle layout */ ${c.M.mbDown} { border-radius: 100%; aspect-ratio: 1/1; width: 32px; height: 32px; padding: auto; background-color: ${d.r.colors.white}; max-height: none; padding: 0; .cart-care-icon { width: 20px; height: 20px; color: ${d.r.colors.blue900}; flex-shrink: 0; } .cart-care-button-text { display: none; } } `,u=(0,l.Z)(i.x)` min-width: 20px; min-height: 20px; aspect-ratio: 1/1; border-radius: 100%; background-color: ${d.r.colors.red500}; color: ${d.r.colors.white}; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: absolute; top: -4px; right: -4px; ${c.M.mbDown} { top: -8px; right: -8px; } `,CartCareButton=e=>{let{count:t=0,href:a,classes:n,boxProps:l,anchorProps:i,tracking:c}=e,{t:g}=(0,s.u)();return r.createElement("a",Object.assign({className:o()("cart-care-button"),href:a,"data-testid":"cart-care-button","data-event-category":"Hamburger Navigation","data-event-action":"Cart Click","data-event-label":a},c,i),r.createElement(m,Object.assign({className:o()("cart-care-button-box",null==n?void 0:n.box)},l),r.createElement(ShoppingCartCare,{className:"cart-care-icon"}),r.createElement(p.T,{size:"label1",color:d.r.colors.white,fw:500,className:"cart-care-button-text"},g("navigation.button.cartCareService")),t>0&&r.createElement(u,{className:o()("cart-care-button-count-box",null==n?void 0:n.count)},r.createElement(p.T,{size:t>99?"label2":"c1",color:d.r.colors.white,fw:600,className:"cart-care-button-count-text"},t>99?"99+":t))))}},"3on8":function(e,t,a){a.d(t,{C:function(){return Close},D:function(){return DrawerComponent},u:function(){return useDrawerDrag}});var r=a("q1tI"),n=a("XBaX"),o=a("iuhU"),l=a("rSBk"),i=a("rBCA"),c=a("LBVr");let Close=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),r.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"})),d=300,useDrawerDrag=(e=d)=>{let[t,a]=(0,r.useState)(!1),n=(0,r.useCallback)(()=>{a(!0)},[]),o=(0,r.useCallback)(()=>{setTimeout(()=>{a(!1)},e)},[e]);return{isDragging:t,handleDragStart:n,handleDragEnd:o}},s=(0,i.Z)(l.dy.Content)` position: fixed; z-index: ${c.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: ${c.Z-9e6}; width: 100%; max-height: 100%; &[data-state='open'] { opacity: 0.6 !important; } `,DrawerComponent=e=>{let{open:t,onOpenChange:a,snapPoints:i,activeSnapPoint:d,setActiveSnapPoint:m,children:u,overlayClassName:g,className:x,fadeFromIndex:h=c.Z-9e6,onClose:f}=e,v=(0,n._)(e,["open","onOpenChange","snapPoints","activeSnapPoint","setActiveSnapPoint","children","overlayClassName","className","fadeFromIndex","onClose"]),[b,y]=(0,r.useState)(t),[w,C]=(0,r.useState)(i?null==i?void 0:i[0]:null),{isDragging:E,handleDragStart:k,handleDragEnd:N}=useDrawerDrag(),$=(0,r.useCallback)(e=>{y(e),null==a||a(e)},[a]),F=(0,r.useMemo)(()=>i&&i.length?w===i[i.length-1]:b,[w,i]),S=(0,r.useMemo)(()=>{let e={open:b,onOpenChange:$,fadeFromIndex:h};return i&&(null==i?void 0:i.length)&&(e.snapPoints=i,e.activeSnapPoint=w,e.setActiveSnapPoint=e=>{C(e),null==m||m(e)}),e},[b,$,w,C,m,i,h]);return(0,r.useEffect)(()=>{y(t)},[t]),(0,r.useEffect)(()=>{C(d)},[d]),r.createElement(l.dy.Root,Object.assign({onDrag:k,onRelease:N,onClose:f},v,S),r.createElement(l.dy.Portal,null,r.createElement(p,{className:(0,o.default)(g,"drawer__overlay",{drawer__overlay_full:F})}),r.createElement(s,{isDragging:E,className:(0,o.default)(x,"drawer__content",{drawer__content_full:F})},r.createElement(l.dy.Handle,{className:"drawer__handle"}),r.createElement(l.dy.Title,{style:{display:"none"}}),u)))}},Tx0o:function(e,t,a){a.d(t,{P:function(){return PillCarousel}});var r=a("XBaX"),n=a("q1tI"),o=a("rBCA"),l=a("0aVn"),i=a("iBNF"),c=a("fkwy"),d=a("5Pdi"),s=a("qpOh"),p=a("NQDR");let m=o.Z.div` display: inline-flex; overflow: hidden; width: ${e=>e.size}px; height: ${e=>e.size}px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid #e4e8ec; background-color: ${e=>e.backgroundColor||i.r.colors.white}; border-radius: ${e=>e.borderRadius||"50%"}; & > * { width: ${e=>e.iconSize}px; height: ${e=>e.iconSize}px; } `,u=o.Z.div` display: inline-block; height: 108px; background-color: ${i.r.colors.white}; border-radius: 60px; cursor: pointer; &.selected-week-pill { background-color: ${i.r.colors.pink100}; } & > div:first-child { margin: 4px 4px 0; } & > p { margin-top: 8px; text-align: center; } & > * { pointer-events: none; } `,g=[s.L.Myanmar,s.L.Taiwan],x=(0,o.Z)(e=>{var{icon:t,name:a,className:o,locale:s="en-PH",dataEventCategory:p,dataEventAction:x,dataEventLabel:h,onSelect:f}=e,v=(0,r._)(e,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);let b=(0,n.useMemo)(()=>null==o?void 0:o.includes("selected-week-pill"),[o]);return n.createElement(u,Object.assign({onClick:f,className:o?"week-pill".concat(" non-pointer-event-child ",o):"week-pill non-pointer-event-child","data-event-category":p,"data-event-action":x,"data-event-label":h},v),n.createElement(m,{size:64,iconSize:40,backgroundColor:i.r.colors.white},n.createElement(c.I,{src:t||l.C.getAssetPath("week_default.png"),alt:`week ${a}`})),b?n.createElement(d.T,Object.assign({type:"semiBold",size:"n1",color:i.r.colors.gray800},g.includes(s)&&{style:{fontSize:"10px"}}),a):n.createElement(d.T,Object.assign({size:"n1",color:i.r.colors.gray600},g.includes(s)&&{style:{fontSize:"10px"}}),a))})` box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08); `,h=(0,o.Z)(p.f.Slide)` cursor: pointer; > div * { pointer-events: none; } `,f=(0,o.Z)(p.f)` .centerred-pill-wrapper { padding: 16px 0; } `,PillCarousel=e=>{var{data:t,isMobile:a,onSlideChange:o,pillProps:l,locale:i=s.L.Vietnam,blurFromIndex:c,blurLength:d}=e,p=(0,r._)(e,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);let[m,u]=(0,n.useState)("");return(0,n.useEffect)(()=>{u(window.location.href)},[]),n.createElement(f,Object.assign({},{withControls:!a,slideGap:16,blurFromCenter:!0,blurFromIndex:c||(a?2:4),blurLength:d||(a?1:3),onSlideChange:o},p,{selectSlideWhenClick:!0,previousControlIcon:n.createElement(Arrow,{currentUrl:m}),nextControlIcon:n.createElement(Arrow,{currentUrl:m,isRight:!0})}),e=>t.map((t,a)=>n.createElement(h,Object.assign({key:a,onClick:o,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m}},l),n.createElement("div",{className:"centerred-pill-wrapper"},n.createElement(x,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":m,locale:i,name:t.name,icon:t.icon,className:a===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))},Arrow=({isRight:e,currentUrl:t})=>n.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":t,className:"pointer-event-child-none"},n.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))},"2Sv4":function(e,t,a){a.d(t,{D:function(){return DrawerBottom}});var r=a("XBaX"),n=a("q1tI"),o=a("iuhU"),l=a("h8tX"),i=a("3on8"),c=a("rSBk"),d=a("rBCA"),s=a("iBNF"),p=a("LBVr");(0,d.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: ${s.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;let m=(0,d.Z)(c.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; } `} `,u=(0,d.Z)(c.dy.Overlay)` position: fixed; inset: 0; z-index: ${p.Z-9e6}; width: 100%; max-height: 100%; background-color: rgb(0, 0, 0, 0.4); `,g=(0,d.Z)(c.dy.Handle)` &[data-vaul-handle] { width: 44px; height: 3px; background-color: ${s.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;function DrawerBottom(e){var{children:t,onClose:a,isOpen:d,onOpenChange:s,isMobile:p,classNames:x,isLinear:h,overlayClassName:f,contentClassName:v,handlerClassName:b,drawerOverlayProps:y}=e,w=(0,r._)(e,["children","onClose","isOpen","onOpenChange","isMobile","classNames","isLinear","overlayClassName","contentClassName","handlerClassName","drawerOverlayProps"]);let{isDragging:C,handleDragStart:E,handleDragEnd:k}=(0,i.u)(),{onDrag:N,onRelease:$}=w,F=(0,r._)(w,["onDrag","onRelease"]);return p?n.createElement(c.dy.Root,Object.assign({},F,{open:d,onOpenChange:s,onClose:a,onDrag:(e,t)=>{E(),null==N||N(e,t)},onRelease:(e,t)=>{k(),null==$||$(e,t)}}),n.createElement(c.dy.Portal,null,n.createElement(u,Object.assign({className:(0,o.default)(f,"drawer__overlay")},y)),n.createElement(m,{isDragging:C,className:(0,o.default)(v,"drawer__content"),"data-is-linear":h},n.createElement(c.dy.Title,{style:{display:"none"}}),n.createElement(g,{className:(0,o.default)(b,"drawer__handle")}),t))):n.createElement(l.u,Object.assign({withCloseButton:!0,centered:!0,zIndex:500,size:"auto",classNames:x,radius:"lg"},w,{onClose:a,opened:d,styles:{root:{maxHeight:"400px"},body:{background:h?"linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 20%)":void 0}}}),t)}}}]);