"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4960],{71500:function(e,t,a){a.d(t,{N:function(){return a_},P:function(){return eB},a:function(){return aF}});var l=a(93028),n=a(67294),i=a(66494),o=a(82222),r=a(78411),s=a(26068),c=a(38559),d=a(162),m=a(92470),p=a(72112),h=a(34191),g=a(91620),u=a(87408),v=a(23493),f=a.n(v),b=a(56817),y=a(64523),E=a(57148),x=a(40254),w=a(49030);a(47856);var k=a(28220),C=a(94786),$=a(58809),M=a(98993),_=a(2618),B=a(70917),F=a(71600),P=a(7241),A=a(33122),D=a(52421),z=a(61261),N=a(27484),T=a.n(N),L=a(84110),Z=a.n(L),H=a(55816),S=a(23279),j=a.n(S),U=a(40418);let R=["hellobacsi.blog","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],O=(e="")=>R.some(t=>new URL(e).origin.endsWith(t)),I=o.Z.a` display: inline-flex; position: relative; flex-direction: row; align-items: center; padding: 7px 11px; gap: 2px; background: ${r.t.colors.white}; border: 1px solid ${r.t.colors.neutral100}; border-radius: 20px; color: ${r.t.colors.gray600}; font-weight: 600; font-size: 12px; line-height: 18px; text-decoration: none; cursor: pointer; `,V=o.Z.div` position: relative; display: inline-block; `,G=o.Z.div` position: relative; `,W=o.Z.div` position: absolute; z-index: 21; top: 100%; right: 0; width: 327px; padding: 8px; background: white; border-radius: 4px; filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1)); &[data-is-open='false'] { display: none; } &[data-show-indicator='true'] { &:before { position: absolute; right: 11px; bottom: 100%; width: 0; height: 0; border: 0.5rem solid transparent; border-top: none; border-bottom-color: #fff; content: ''; filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1)); } } `,q=o.Z.div` display: flex; height: 40px; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: ${r.t.borderRadius}; cursor: pointer; .check-icon { width: 16px; height: 16px; } &[data-selected='false'] { background-color: ${r.t.colors.gray100}; } `,Y=o.Z.div` position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 100%; cursor: default; `,K=({options:e,label:t,labelRenderer:a,selected:l,onChange:i,showSelected:o=!0,style:r={},showIndicator:d=!0})=>{let[m,p]=(0,n.useState)(!1);return n.createElement(n.Fragment,null,n.createElement(V,null,n.createElement(G,{onClick:()=>p(e=>!e)},t||(null==a?void 0:a(m))||null,n.createElement(W,{"data-is-open":m,style:r,"data-show-indicator":d},e.map((e,t)=>n.createElement(q,{key:t,"data-selected":o&&l===e.value,onClick:t=>{l!==e.value&&(i(e.value),p(e=>!e)),t.stopPropagation()}},n.createElement(s.T,{size:"p3"},e.label),o&&l===e.value&&n.createElement("img",{src:c.C.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"})))))),m&&n.createElement(Y,{onClick:()=>p(!1)}))},Q=({languageOptions:e,locale:t})=>{var a,l;let i=null==e?void 0:e.find(e=>e.locale===t);return(null==e?void 0:e.length)?n.createElement(K,{options:e,selected:i.value,label:n.createElement(J,{locale:t,label:i.label||(null===(l=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===l?void 0:l.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},J=({locale:e,label:t,href:a})=>{var l,o,r;return n.createElement(I,{href:a},n.createElement(i.F,{country:null===(o=null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(r=null==e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),n.createElement("span",null,t))},X=({path:e,locale:t})=>{var a;return`/shop/${null===(a=C.L[t||"vi-VN"])||void 0===a?void 0:a[e]}/`};var ee=(0,b.k)(()=>({root:{textDecoration:"none"},iconText:{color:"#fff"}}));let et=e=>{var{count:t,styles:a,className:i,classNames:o,locale:r}=e,c=(0,l._)(e,["count","styles","className","classNames","locale"]);let{classes:d,cx:m}=ee(void 0,{name:"CartBadge",styles:a,classNames:o});return void 0!==t?n.createElement(y.x,Object.assign({component:"a",href:X({path:"CART",locale:r}),className:m(d.root,i)},c),n.createElement(E.z,{withBorder:!0,color:"red",size:20,disabled:0===t,label:n.createElement(s.T,{className:d.iconText,size:"s5"},t>99?"99+":t)},n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n.createElement("path",{d:"M5.308 21.5q-.748 0-1.278-.53a1.74 1.74 0 0 1-.53-1.278V8.308q0-.75.53-1.278.53-.53 1.278-.53H7.5q0-1.873 1.313-3.187Q10.127 2 12 2t3.187 1.313T16.5 6.5h2.192q.749 0 1.278.53.53.53.53 1.278v11.384q0 .749-.53 1.278-.53.53-1.278.53zm0-1.5h13.384a.3.3 0 0 0 .212-.096.3.3 0 0 0 .096-.212V8.308a.3.3 0 0 0-.096-.212.3.3 0 0 0-.212-.096H5.308a.3.3 0 0 0-.212.096.3.3 0 0 0-.096.212v11.384q0 .116.096.212a.3.3 0 0 0 .212.096M9 6.5h6q0-1.25-.875-2.125A2.9 2.9 0 0 0 12 3.5q-1.25 0-2.125.875A2.9 2.9 0 0 0 9 6.5m2.985 7q1.695 0 3.047-1.148 1.35-1.148 1.335-2.606a.74.74 0 0 0-.207-.528.7.7 0 0 0-.527-.218.7.7 0 0 0-.471.182 1 1 0 0 0-.295.506 2.8 2.8 0 0 1-1.036 1.665 2.9 2.9 0 0 1-1.846.647 2.93 2.93 0 0 1-1.854-.647A2.73 2.73 0 0 1 9.1 9.688q-.086-.34-.278-.514A.66.66 0 0 0 8.367 9a.72.72 0 0 0-.534.218.72.72 0 0 0-.216.528q0 1.457 1.336 2.606 1.335 1.148 3.032 1.148",fill:"#2D87F3"})))):null},ea=o.Z.div` ${e=>` ${0!==e.lowerBound?`@media (max-width: ${e.lowerBound-1}px) { display: none; }`:""} ${0!==e.upperBound?`@media (min-width: ${e.upperBound}px) { display: none; }`:""} `} `,el=({forceDisplay:e,mediaQueryKey:t,children:a,className:l,style:i})=>{let[o,r]=(0,n.useMemo)(()=>(0,k.g)(t),[t]);return n.createElement(ea,{lowerBound:e?0:o,upperBound:e?0:r,className:l,style:i},a)},en=e=>{let{allowBgScroll:t}=e||{},a=(0,n.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())}}},ei=(0,M.s)(o.Z.div` position: absolute; right: 0; transition: all 0.5s ease-in-out; overflow-y: auto; padding-bottom: 70px; &[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; */ ${k.M.mbUp} { width: 320px; } ${k.M.mbDown} { position: fixed; left: 0; width: 100%; } `,"hhgcomp-navprofilebutton-popup"),eo=(0,M.s)(o.Z.div` position: fixed; z-index: 150; top: var(--header-bottom, 56px); left: 0; width: 100%; height: 100%; align-items: center; ${k.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); } } ${k.M.mbDown} { background: rgba(38, 38, 38, 0.3); } &[data-type='welcome'] { top: 0; } &[data-open='false'] { display: none; } `,"hhgcomp-navprofilebutton-popupwrapper"),er=o.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: ${r.t.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 20px; font-weight: bold; } `,es=o.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; } ${ei.classSelector} { z-index: 200; top: 120%; opacity: 1; visibility: visible; display: initial; ${k.M.mbDown} { top: 100%; } } ${eo.classSelector} { display: initial; } } `,ec=o.Z.a` display: inline-flex; .login-btn[data-color='tertiary'][data-size='md'] { padding-left: 12px; padding-right: 12px; } .mobile-only { ${k.M.mbUp} { display: none; } } .login-btn { display: none; ${k.M.mbUp} { display: block; } } `,ed=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),n.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38z",fill:"#2D87F3"}),n.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65M5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),n.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4m2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4m2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),n.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),n.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.2.2 0 0 1-.06-.15",fill:"#fff"})),em=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11m-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46m1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05",fill:"#2D87F3"}),n.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06m-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97m1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66m1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46",fill:"#FFB521"}),n.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17M13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14m1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1m1.34-.4a.23.23 0 1 1 .1-.01.2.2 0 0 1-.1.02Z",fill:"#91CAFF"})),ep=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("rect",{x:"8.333",y:"8.333",width:"3.333",height:"3.333",rx:"1.667",fill:"#2D87F3"})),eh=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02z",fill:"#2743AD"}),n.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7",fill:"#2D87F3"}),n.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.2.2 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22m-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23",fill:"#2743AD"}),n.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03",fill:"#FE921D"}),n.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46",fill:"#fff"}),n.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7",fill:"#BCDEFF"})),eg=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),eu=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),n.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),n.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),ev=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),n.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),ef=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),eb=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),ey=e=>n.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),n.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),n.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),eE=o.Z.div` padding: 16px; border-radius: 16px; background-color: white; hr { border-color: ${r.t.colors.neutral100}; border-bottom-width: 0px; border-style: solid; } .profile-nav-item-group { background-color: white; border-radius: 8px; } `,ex=o.Z.div` display: block; border: 1px solid transparent; transition: all 300ms linear; cursor: pointer; position: relative; ${e=>e.hasSubmenu&&(0,B.iv)` cursor: pointer; `} &[data-is-open='true'] { & + div { margin-top: 8px; } } border-left-width: 0; border-right-width: 0; &[data-is-open='true'] { & + div { margin-top: 0; } .nav-menu-item:last-child { border-bottom-color: ${r.t.colors.neutral100}; } } .nav-menu-item { background-color: ${r.t.colors.neutral50}; } .nav-menu-item { padding-left: 38px; } `,ew=o.Z.div` display: flex; align-items: center; height: 48px; border: 1px solid transparent; transition: all 300ms; border-radius: 8px; &:hover { background-color: ${r.t.colors.neutral150}; } &[data-active='true'] { background-color: ${r.t.colors.blue50}; } `,ek=o.Z.div` margin-left: auto; svg { fill: ${r.t.colors.gray600}; transition: transform 300ms; } &[data-is-open='true'] svg { transform: rotate(180deg); } `,eC=o.Z.div` overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out; [data-is-open='true'] & { max-height: 500px; transition-timing-function: ease-in; } `,e$={helloSites:{member:()=>c.C.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>c.C.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>c.C.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>c.C.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>c.C.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>c.C.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>c.C.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>c.C.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>c.C.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>c.C.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},eM=({rank:e,siteType:t="helloSites"})=>{let a=(0,n.useMemo)(()=>{var a,l;return(null===(l=null===(a=e$[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""},[e,t]),{t:l}=(0,u.u)();return n.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?r.t.colors.blue100:r.t.colors.mb100}`}},n.createElement("img",{src:a,alt:e,style:{height:16,width:16}}),n.createElement(s.T,{size:"s5",color:"gray.8",weight:"semiBold"},l(`userProfile.userRank.${e}`)))},e_=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?n.createElement(n.Fragment,null,n.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},n.createElement(i.a,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),n.createElement(eM,{rank:"member",siteType:e})),n.createElement(s.T,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),n.createElement(s.T,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),n.createElement("hr",null)):null,eB=({className:e,activeItem:t,navMenuItems:a,style:l,onLogout:i,siteType:o="helloSites",userInfo:r})=>{let{locale:s}=(0,u.u)(),[c,h]=(0,n.useState)(),g="string"==typeof t?t:c,v=(0,m.n)((0,p.a)(s,"marryBaby"===o)+"/"),f=(0,m.n)((0,p.g)(s,"marryBaby"===o)+"/"),b=a||[[{key:"userProfile.nav.header.viewProfile",icon:n.createElement(ey,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${v}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:n.createElement(ev,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${v}user/health/`},{key:"userProfile.nav.card.mySaved",icon:n.createElement(ef,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${v}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:n.createElement(ed,{width:"24",height:"24"}),value:"booking",disabled:!d.C.includes(s),tracking:{action:"Manage Booking Click"},link:`${v}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:n.createElement(em,{width:"24",height:"24"}),value:"myCommunities",disabled:!d.T.includes(s),tracking:{action:"Community Click"},link:`${v}user/my-communities/`}],...d.E.includes(s)?[[{key:"userProfile.nav.card.eCom",icon:n.createElement(eh,{width:"24",height:"24"}),value:"eCom",disabled:!d.E.includes(s),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:n.createElement(ep,{width:"24",height:"24"}),link:`${f}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:n.createElement(ep,{width:"24",height:"24"}),link:`${f}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:n.createElement(ep,{width:"24",height:"24"}),link:`${f}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:n.createElement(eb,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:n.createElement(ep,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${v}user/subscriptions/`,disabled:"vi-VN"!==s},{key:"userProfile.nav.menu.password",value:"password",icon:n.createElement(ep,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${v}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:n.createElement(ep,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${v}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:n.createElement(eg,{width:"24",height:"24"}),value:"help",link:`${v}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:n.createElement(eu,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return n.createElement(eE,{className:e,style:l},n.createElement(e_,{userInfo:r,siteType:o}),b.map((e,t)=>n.createElement(n.Fragment,{key:t},n.createElement("div",{className:"profile-nav-item-group",key:t},e.map(e=>n.createElement(eF,{key:e.key,item:e,activeKey:g||"",onLogout:i,onClick:()=>h(t=>t===e.key?void 0:e.key),siteType:o}))),t!==b.length-1&&n.createElement("hr",null))))},eF=({item:e,activeKey:t,forceOpen:a,onLogout:l,onClick:i,siteType:o="helloSites"})=>{var r,c;let[d,m]=(0,n.useState)(!1),p=(0,n.useMemo)(()=>"undefined"!=typeof window?window.location.href:"",[]);if(e.disabled)return null;let{t:h}=(0,u.u)(),g=null===(r=e.subMenu)||void 0===r?void 0:r.some(e=>e.key===t),v=t===e.key;(0,n.useEffect)(()=>{(g||v)&&m(!0)},[g,v]);let f="boolean"==typeof a?a:d;return n.createElement(ex,{as:e.subMenu?void 0:"a","data-is-open":f,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==i||i(),e.subMenu&&!a?m(e=>!e):"logout"===e.value?null==l||l():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(c=null==e?void 0:e.tracking)||void 0===c?void 0:c.action)||"","data-event-label":p},n.createElement(ew,{"data-active":v},e.icon,n.createElement(s.T,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:v?"helloSites"===o?"hb.6":"mb.6":"gray.8"},h(e.key)),e.subMenu&&n.createElement(ek,{"data-is-open":f},n.createElement(_.C,{width:14}))),e.subMenu&&n.createElement(eC,null,e.subMenu.map(e=>n.createElement(eF,{key:e.key,item:e,activeKey:t,onLogout:l,siteType:o}))))},eP=({isOpen:e,userInfo:t,closePopup:a,siteType:l="helloSites",dispatchLogout:i})=>n.createElement(ei,{"data-open":e},n.createElement("div",{className:"popup-content"},n.createElement(eB,{siteType:l,onLogout:()=>{i&&(i(),a())},userInfo:t}))),eA=o.Z.div` background-color: white; text-align: center; .cancle-img { margin-top: 24px; ${k.M.mbDown} { width: 80px; height: 80px; } ${k.M.mbUp} { width: 100px; height: 100px; } } h2 { margin-top: 32px; color: ${r.t.colors.gray800}; font-style: normal; font-weight: bold; ${k.M.mbDown} { font-size: 24px; line-height: 32px; } ${k.M.mbUp} { font-size: 32px; line-height: 42px; } } p { margin-top: 8px; color: ${r.t.colors.gray600}; font-style: normal; font-weight: normal; ${k.M.mbDown} { font-size: 16px; line-height: 24px; } ${k.M.mbUp} { font-size: 16px; line-height: 24px; } } `,eD=o.Z.div` display: flex; ${k.M.mbDown} { margin-top: 24px; } ${k.M.mbUp} { margin-top: 32px; } justify-content: space-around; button { flex: 1; margin: 4px; } ${e=>"marryBaby"===e.siteType?` .cancel-button { background-color: #E55C8A; } .cancel-button:hover { background-color: #E55C8A !important; } .logout-button { border-color: #E55C8A; color: #E55C8A; } `:""} `,ez=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:l="helloSites"})=>{let{t:i}=(0,u.u)();return(0,n.useEffect)(()=>{document.body.classList.toggle("noscroll",e)},[e]),n.createElement(x.h,null,n.createElement(h.P,{type:"confirm",isOpen:e,closeIcon:n.createElement("img",{src:c.C.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},n.createElement(eA,null,"helloSites"===l&&n.createElement("img",{src:c.C.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),n.createElement("h2",null,i("helloSites"===l?"logout.popup.ask1":"logout.popup.ask.mb")),n.createElement("p",null,i("logout.popup.ask2")),n.createElement(eD,{siteType:l},n.createElement(F.B,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},i("logout.popup.button.logout")),n.createElement(F.B,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},eN=({userInfo:e,siteType:t,onLoginClick:a,SSO_URL:o,currentUrl:d,isMinifyLogin:p,onLogout:h,style:g,isLoading:v,locale:f})=>{let{t:b}=(0,u.u)(),[y,E]=(0,n.useState)(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[k,C]=(0,n.useState)(!1);(0,n.useEffect)(()=>{C(!0)},[]);let{containerRef:M,onContainerFocus:_,onContainerBlur:B,onButtonMouseDown:F,onClose:P}=en();return v?n.createElement(i.B,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?n.createElement(n.Fragment,null,n.createElement(es,{ref:M,style:g,tabIndex:0,onBlur:B,onFocus:()=>{var e;_();let t=null===(e=M.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){let e=t.getBoundingClientRect().top,a=`calc(100vh - ${e}px)`;t.setAttribute("style",`max-height: ${a};`)}}},n.createElement("div",{onMouseDown:F},n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},n.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),n.createElement(i.a,{size:36,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===t?r.t.mbColors.pink:r.t.colors.secondaryBase,placeholderText:x&&x.length?x[0].toUpperCase():"A"})),n.createElement(eP,{dispatchLogout:()=>{P(),E(!0)},isOpen:!1,closePopup:P,siteType:t,userInfo:e})),n.createElement(ez,{openLogoutPopup:y,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),E(!1)},siteType:t,onLogoutHandler:()=>(0,l.a)(void 0,void 0,void 0,function*(){E(!1),document.body.classList.toggle("noscroll",!1),yield h()})})):n.createElement(ec,{style:Object.assign({textDecoration:"none"},g),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":d,href:k?void 0:(0,m.n)(`${o}?returnUrl=${d}`),"data-site-type":t},p?n.createElement(er,{onClick:a},n.createElement("img",{src:c.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):n.createElement(n.Fragment,null,"helloSites"===t&&(f===w.L.Indonesia||f===w.L.PhilippinesTagalog||f===w.L.PhilippinesEnglish?n.createElement("img",{className:"mobile-only",src:c.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:a}):n.createElement(i.B,{className:"mobile-only",size:"sm",onClick:a,leftIcon:n.createElement($.Z,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},b("navigation.loginJoin"))),"marryBaby"===t&&n.createElement("div",{className:"mobile-only",onClick:a,style:{paddingLeft:16}},n.createElement(s.T,{size:"p3",color:r.t.mbColors.pink},b("navigation.loginJoin"))),"marryBaby"===t?n.createElement(i.B,{className:"login-btn",size:"md",onClick:a,leftIcon:n.createElement($.Z,{color:"currentColor",isSolid:!0,size:22})},b("navigation.loginJoin")):n.createElement(i.B,{className:"login-btn",size:"md",onClick:a,leftIcon:n.createElement($.Z,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626"},b("navigation.loginJoin"))))};var eT={bookingButton:"spdlGfq",bookingButtonAnchor:"vgS16jX"};let eL=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:l})=>e?n.createElement(F.B,{className:eT.bookingButton,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},l):n.createElement("a",{href:a,className:`${eT.bookingButtonAnchor} care-button no-replace-click`},n.createElement(F.B,{className:eT.bookingButton,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},l)),eZ=({locale:e,projectType:t,siteType:a,enableBookingBtn:l})=>(0,n.useMemo)(()=>{let n="discover"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===a,i="marryBaby"!==a&&"marryBaby"!==t&&d.C.includes(e),o=l&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==a&&d.b.includes(e),r="marryBaby"===t||d.T.includes(e),s="marryBaby"!==a&&d.E.includes(e),c="marryBaby"!==a&&d.E.includes(e),m=(0,p.g)(e,"marryBaby"===a);return"undefined"!=typeof window&&(m.includes("//id.")&&(m=m.replace("id.","")),m.includes("//staging-id.")&&(m=m.replace("staging-id.","discover."))),{enableSearchBar:n,enableNavCare:i,enableNavCareBooking:o,enableNavTogether:r,enableNavEcom:s,enableProfileEcom:c,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:m,CARE_URL_FE:`${m}/care`,TOGETHER_URL_FE:`${m}/community`,SSO_URL:(0,p.a)(e,"marryBaby"===a),TOGETHER_API:(0,p.b)(),DISCOVER_API:(0,p.c)(e)}}},[e,t]),eH=n.createContext({}),eS=e=>{var{children:t}=e,a=(0,l._)(e,["children"]);let[i,o]=n.useState(()=>a.currentUrl||`https://${"marryBaby"===a.siteType?M.l[a.locale||"en-PH"]:d.d[a.locale||"en-PH"]}${"together"===a.projectType?"/community":"ecom"===a.projectType?"/ecom":"care"===a.projectType?"/care":""}/`);(0,n.useEffect)(()=>{let e=()=>{o(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}},[]);let r=eZ({locale:a.locale,projectType:a.projectType,siteType:a.siteType,enableBookingBtn:a.enableBookingBtn});return n.createElement(eH.Provider,{value:Object.assign(Object.assign({},a),{configs:Object.assign(Object.assign({},r),a.configs),currentUrl:a.currentUrl||i})},t)};function ej({className:e}){return n.createElement("div",null,n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},n.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function eU({siteType:e,enableSearch:t,className:a}){return"helloSites"===e?n.createElement("div",null,n.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?c.C.getAssetPath("hamburgerMenuNewWithSearch.svg"):c.C.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:a,loading:"lazy"})):n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:a},n.createElement("path",{d:"M3.35 15a.65.65 0 0 1 .65-.65h10a.65.65 0 1 1 0 1.3H4a.65.65 0 0 1-.65-.65m0-6A.65.65 0 0 1 4 8.35h16a.65.65 0 1 1 0 1.3H4A.65.65 0 0 1 3.35 9",fill:"#3E3F58"}))}let eR=o.Z.div` position: fixed; z-index: 201; top: calc(100% + 1px); width: 100%; height: calc(100vh - var(--header-bottom)); overflow-x: hidden; overflow-y: auto; background: white; display: flex; flex-direction: column; padding-bottom: 0; left: 0; .hhgcomp-navigation-popupwrapper-menuwrapper { position: unset; } `,eO=o.Z.div` padding: 16px; padding-bottom: 12px; .fake-search-input { pointer-events: none; input { line-height: 20px; padding-top: 10px; padding-bottom: 10px; } } &[data-theme='marryBaby'] { input { background: ${r.t.mbColors.lightGray}; border-radius: 16px; border: none; } } `,eI=o.Z.div` display: block; overflow-y: auto; flex: 1; padding-bottom: 16px; &::-webkit-scrollbar { width: 0; display: none; } `,eV=({id:e})=>{let{locale:t,configs:{statics:a},siteType:l}=(0,n.useContext)(eH),{t:o}=(0,u.u)();return n.createElement(i.c,{className:"fake-search-input",name:"search-input-menu-service"+e,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:d.L[t||"en-PH"]?d.L[t||"en-PH"].SITE_NAME:""}),onChange:()=>void 0,onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},icon:n.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{verticalAlign:"bottom"}},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))})},eG=o.Z.div` padding-right: 1rem; margin-top: 10px; background: #ffffff; padding: 5px 15px; ${k.M.mbUp} { border-right: 1px solid #e4e8ec; } `,eW=o.Z.a` padding: 10px 0; position: relative; display: flex; align-items: center; text-decoration: none; color: ${r.t.colors.gray800}; * { pointer-events: none; } p { font-size: 16px; font-weight: 400; padding: 0 0.4rem; } &[data-theme='marryBaby']:hover, &[data-theme='marryBaby'][data-active='true'] { p { color: ${r.t.mbColors.pink}; } .icon { background-color: ${r.t.mbColors.lightPink}; } } &[data-theme='helloSites']:hover, &[data-theme='helloSites'][data-active='true'] { p { color: ${r.t.colors.primaryActive}; } } a { } &[data-theme='marryBaby'] { .icon { display: flex; align-items: center; justify-content: center; max-width: 40px; width: 100%; height: 40px; border-radius: 50%; background-color: ${r.t.mbColors.lightGray}; img { border-radius: 50%; } } } `,eq=o.Z.div` margin: 15px 0; ${k.M.mbDown} { display: none; } `,eY=o.Z.div` display: flex; position: absolute; right: 0; ${k.M.mbUp} { display: none; } `,eK=o.Z.div` display: flex; align-items: center; color: ${r.t.colors.primaryBase}; font-size: ${r.t.sizes.fsParagraph4}; font-weight: ${r.t.sizes.fwBold}; line-height: 24px; font-size: 14px; font-weight: 600; &[data-event-category] * { pointer-events: none; } &[data-theme='marryBaby'] { color: ${r.t.mbColors.pink}; } `,eQ=o.Z.div` display: flex; align-items: center; margin-left: 10px; `,eJ=o.Z.a` border: 1px solid ${r.t.colors.primaryBase}; &[data-theme='marryBaby'] { border: 1px solid ${r.t.mbColors.pink}; svg path { stroke: ${r.t.mbColors.pink}; } } position: relative; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 5px; margin-top: 20px; ${k.M.mbDown} { display: none; } `;var eX={menuIconWrapper:"wnUb-dV",menuButton:"cjbOxWe",itemNavButton:"-sx0jrx"};let e0=({item:e,menu:t})=>{let{containerRef:a,onButtonMouseDown:l,onClose:i}=en({allowBgScroll:!0}),o=(0,z.u)();return!e.popupType&&e.link?n.createElement(e1,{isNew:e.isNew},n.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${o?"":`menu-handler-${e.id}`}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},n.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:eX.menuButton},e.name))):n.createElement(e1,{isNew:e.isNew},n.createElement("div",{ref:a,className:`hhgcomp-navigation-itemnav-headeritem ${o?"":`menu-handler-${e.id}`}`,tabIndex:0,key:e.id,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},n.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:l,className:eX.menuButton},e.name,e.popupType&&n.createElement("div",{className:eX.menuIconWrapper},n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),n.isValidElement(t)?n.cloneElement(t,{onClose:i}):null))},e1=({isNew:e,children:t})=>{let{t:a}=(0,u.u)();return e?n.createElement(D.I,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):n.createElement(n.Fragment,null,t)},e2=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:l,menuItems:i,headingTitle:o,activeItem:r})=>{let{siteType:s}=(0,n.useContext)(eH);return n.createElement(eG,null,n.createElement(eq,null,n.createElement(A.H,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map((e,t)=>{let i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return n.createElement(eW,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===r,href:i},!O(i)&&{target:"_blank"},{"data-theme":s,key:t,onClick:l}),n.createElement("div",{className:"icon"},n.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),n.createElement(e1,{isNew:e.isNew},n.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),n.createElement(eY,null,n.createElement("img",{src:c.C.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))}),t&&n.createElement(eJ,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},n.createElement(eK,{onClick:l,"data-theme":s,"data-is-heading-category":!1},t,n.createElement(eQ,null,n.createElement("img",{className:"svg",src:"marryBaby"===s?c.C.getAssetPath("chevronRightPink.svg"):c.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},e3=o.Z.div` display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 3.5rem; ${k.M.tdDown} { grid-template-columns: repeat(1, 1fr); } `,e4=o.Z.div` height: 152px; position: absolute; top: 0; left: 0; z-index: 3; overflow: hidden; border-radius: 4px; padding: 16px; width: 100%; .img-container { width: 100%; height: 100%; } img { width: 100%; height: 100%; display: block; object-fit: contain; } ${k.M.tdDown} { margin-bottom: 0; padding: 0; height: 100%; position: unset; width: 150px; } ${k.M.mbDown} { width: 80px; } `,e5=o.Z.div` background-color: #ffffff; border-radius: 4px; width: 100%; height: 100%; `,e6=o.Z.div` display: flex; margin-top: 1rem; align-items: center; color: ${r.t.colors.primaryBase}; font-weight: 400; font-size: 14px; text-decoration: none; ${k.M.tdDown} { display: none; } `,e8=o.Z.p` font-size: 16px; font-weight: 600; line-height: 1.6; color: ${r.t.colors.gray800}; ${k.M.tdDown} { padding: 0; } `,e7=o.Z.p` font-size: 14px; line-height: 1.6; font-weight: 400; color: ${r.t.colors.gray600}; height: 40px; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: auto; ${k.M.tdDown} { height: unset; padding: 0; } `,e9=(0,M.s)(o.Z.div` display: flex; flex-direction: column; gap: 8px; flex: 1; z-index: 1; ${k.M.tdDown} { gap: 4px; } `,"hhgcomp-navigation-menucareitem-contentwrapper"),te=o.Z.a` text-decoration: none; border-radius: 4px; background: ${r.t.colors.white}; position: relative; overflow: hidden; padding: 16px; display: flex; padding-top: 166px; * { pointer-events: none; } ${k.M.tdUp} { box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04); gap: 30px; flex-direction: column; a { display: flex; width: 100%; } } ${k.M.tdDown} { padding-top: 16px; a { display: none; } grid-template-columns: 2fr 1fr; gap: 10px; display: grid; max-height: 110px; display: flex; flex-direction: row-reverse; > ${e9.classSelector} { flex: 1; } img { width: 150px; } } ${k.M.mbDown} { box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04); display: flex; flex-direction: row-reverse; img { width: 80px; height: 80px; } } ${k.M.tdOnly} { border: 1px solid ${r.t.colors.neutral100}; } .bg-svg { width: 100%; max-width: 245px; height: 100%; top: 0; right: -40px; position: absolute; display: inline-block; } `,tt=({item:e,index:t=0})=>{var a;let{t:l}=(0,u.u)(),{locale:i,configs:{statics:o}}=(0,n.useContext)(eH);if(!e)return null;let r=`${o.CARE_URL_FE}/${null===(a=P.a[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return n.createElement(te,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":r},n.createElement("img",{src:c.C.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),n.createElement(e4,null,n.createElement(e5,null,n.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),n.createElement(e9,null,n.createElement(e8,null,e.name),n.createElement(e7,null,e.description),n.createElement(e6,null,l("home.seeMore"),n.createElement("img",{src:c.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},ta=o.Z.div` padding: 16px; border-radius: 8px; position: relative; z-index: 1; overflow: hidden; a { text-decoration: none; } .bg-svg { height: 100%; position: absolute; top: 0; left: 0; z-index: -1; } ${k.M.mbDown} { display: block; .bg-svg { right: -24px; left: unset; top: 0; transform: rotateY(180deg); } } ${k.M.mbUp} { display: grid; grid-gap: 10px; grid-template-columns: 1fr 3fr; } `,tl=o.Z.div` font-weight: 400; font-size: 14px; line-height: 24px; color: ${r.t.colors.gray600}; margin-bottom: 15px; `,tn=o.Z.div` font-weight: 600; font-size: 16px; line-height: 26px; color: #000000; margin-bottom: 4px; `,ti=o.Z.div` background: #fff; padding: 5px; display: flex; align-items: center; justify-content: center; border-radius: 50px; `,to=o.Z.div` display: flex; justify-content: center; align-items: center; position: relative; ${k.M.mbDown} { justify-content: end; min-height: 100px; } `,tr=({title:e,link:t,description:a,cta:l,icon:i})=>{let{siteType:o}=(0,n.useContext)(eH);return n.createElement(ta,{"data-theme":o},n.createElement(to,null,n.createElement("img",{src:"marryBaby"===o?c.C.getAssetPath("navMBSpotlightBgNoData.svg"):c.C.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),n.createElement(ti,null,i&&n.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),n.createElement("div",null,e&&n.createElement(tn,null,e),a&&n.createElement(tl,null,a),l&&n.createElement("div",null,n.createElement("a",{href:t},n.createElement(F.B,{theme:o,className:"survey-contact-submit",size:"md"},l)))))},ts=o.Z.div` margin-top: 10px; background: #ffffff; padding: 5px 15px; position: relative; ${k.M.mbDown} { &:after { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background-color: ${r.t.colors.neutral100}; content: ''; } } `,tc=o.Z.div` margin: 15px 0; display: flex; `,td=o.Z.a` padding-left: 10px; display: flex; align-items: center; text-decoration: none; font-weight: 400; font-size: 14px; color: ${r.t.colors.primaryBase}; &[data-theme='marryBaby'] { color: ${r.t.mbColors.pink}; } img { padding-left: 5px; } ${k.M.mbDown} { margin-left: auto; } `,tm=({title:e,viewMore:t,children:a,link:l,dataEventAction:i=""})=>{let{siteType:o}=(0,n.useContext)(eH);return n.createElement(ts,null,n.createElement(tc,null,n.createElement(A.H,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&n.createElement(td,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":l,href:l,"data-theme":o},t,n.createElement("img",{src:"marryBaby"===o?c.C.getAssetPath("chevronRightPink.svg"):c.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),a)},tp=({spotlights:e=[],hrefViewMore:t})=>{let{t:a}=(0,u.u)(),{siteType:l}=(0,n.useContext)(eH);return n.createElement(tm,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?n.createElement(n.Fragment,null,n.createElement(e3,null,null==e?void 0:e.slice(0,3).map((e,t)=>n.createElement(tt,{key:t,index:t,item:e}))),n.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},n.createElement("a",{href:t},n.createElement(F.B,{theme:l,className:"survey-contact-submit",size:"md"},a("home.navigator.menu.care.homeButton"))))):n.createElement(tr,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.homeButton"),icon:c.C.getAssetPath("community.svg")}))},th=o.Z.div` display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; ${k.M.tdDown} { gap: 12px; grid-template-columns: 1fr; } `,tg=o.Z.a` width: 100%; display: flex; align-items: center; text-decoration: none; * { pointer-events: none; } `,tu=o.Z.div` border-radius: 5px; display: block; overflow: hidden; padding-top: 140%; width: 100%; position: relative; height: 0; img { position: absolute; width: 100%; height: 100%; display: block; object-fit: cover; top: 0; left: 0; } ${k.M.tdDown} { width: 72px; padding-top: 100px; } `,tv=o.Z.p` font-size: 16px; font-weight: 400; padding: 4px 15px; line-height: 1.4; color: ${r.t.colors.gray800}; flex: 1; ${k.M.tdUp} { display: none; } `,tf=({item:e,index:t=0})=>e?n.createElement(tg,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},n.createElement(tu,null,n.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),n.createElement(tv,null,e.title)):null,tb=({spotlightsList:e=[],hrefViewMore:t})=>{let{t:a}=(0,u.u)(),{configs:{statics:l}}=(0,n.useContext)(eH);return n.createElement(tm,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?n.createElement(th,null,null==e?void 0:e.slice(0,4).map((e,t)=>n.createElement(tf,{key:t,index:t,item:{id:e.id,link:l.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}}))):n.createElement(tr,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:c.C.getAssetPath("Spotlight.svg")}))},ty=o.Z.div` display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 48px; ${k.M.tdDown} { grid-template-columns: 1fr; grid-gap: 32px; } ${k.M.mbDown} { grid-gap: 24px; } `,tE=o.Z.div` padding: 5px; flex: 1; `,tx=o.Z.img` width: 88px; height: 88px; border-radius: 4px; object-fit: cover; `,tw=o.Z.div` font-size: 12px; font-weight: 600; color: ${r.t.colors.gray800}; text-decoration: none; &[data-theme='marryBaby'] { font-weight: 400; letter-spacing: -0.2px; } `,tk=o.Z.div` text-decoration: none; font-size: 12px; font-weight: 400; color: ${r.t.colors.primaryBase}; &[data-theme='marryBaby'] { font-weight: 400; letter-spacing: -0.2px; } `,tC=o.Z.div` font-size: 12px; font-weight: 400; color: ${r.t.colors.gray600}; `,t$=o.Z.div` font-size: 12px; font-weight: 400; color: ${r.t.colors.gray600}; `,tM=o.Z.a` display: flex; gap: 10px; text-decoration: none; position: relative; &::after { content: ''; display: block; width: 100%; height: 1px; border-top: 1px dashed ${r.t.colors.neutral100}; position: absolute; bottom: -24px; ${k.M.tdOnly} { bottom: -16px; } ${k.M.mbDown} { bottom: -12px; } } &:last-child { &::after { display: none; } } ${k.M.tdUp} { &:nth-last-child(2) { &::after { display: none; } } } `,t_=o.Z.div` display: flex; gap: 10px; vertical-align: middle; align-items: center; `,tB=o.Z.div` margin-top: 8px; font-size: 16px; font-weight: 600; color: ${r.t.colors.gray800}; &[data-theme='marryBaby'] { margin-top: 12px; font-weight: 400; font-size: 14px; line-height: 24px; letter-spacing: -0.2px; } `,tF=o.Z.div` display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; `,tP=o.Z.div` display: flex; gap: 4px; flex-direction: column; `;T().extend(Z());let tA=({post:e,index:t=0})=>{var a,l,i,o,r,s,c;let{siteType:d,configs:{statics:m}}=(0,n.useContext)(eH);if(!e)return null;let p=[m.TOGETHER_URL_FE,null===(a=e.community)||void 0===a?void 0:a.slug].join("/"),g=[p,e.slug].join("/"),u=e.createdAt,v=u?isNaN(new Date(u).getTime())?null:new Date(u):null,f=v?T()(v).toNow(!0):u;return n.createElement(tM,{href:g,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":g},n.createElement(tE,null,n.createElement(t_,null,n.createElement(h.U,{avatar:null===(l=e.author)||void 0===l?void 0:l.avatar,username:(null===(i=e.author)||void 0===i?void 0:i.name)||(null===(o=e.author)||void 0===o?void 0:o.username)}),n.createElement(tP,null,n.createElement(tw,{"data-theme":d},null===(r=e.author)||void 0===r?void 0:r.name),n.createElement(tF,null,n.createElement(tk,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${t+1}`,"data-event-label":p,onClick:e=>{e.preventDefault(),location.href=p},"data-theme":d},null===(s=e.community)||void 0===s?void 0:s.name),n.createElement(t$,null,"•"),n.createElement(tC,{"data-theme":d},f)))),n.createElement(tB,null,e.title)),!!(null===(c=e.photos)||void 0===c?void 0:c.length)&&n.createElement(tx,{loading:"lazy",src:e.photos[0]}))},tD=({spotlights:e=[]})=>{let{configs:{statics:t}}=(0,n.useContext)(eH),{t:a}=(0,u.u)();return n.createElement(tm,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:(0,m.a)(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?n.createElement(ty,null,null==e?void 0:e.slice(0,4).map((e,t)=>n.createElement(tA,{index:t,post:e,key:e.id}))):n.createElement(tr,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:c.C.getAssetPath("community.svg")}))},tz=o.Z.div` display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 3.5rem; ${k.M.tdDown} { grid-template-columns: repeat(1, 1fr); } `,tN=o.Z.a` text-decoration: none; display: flex; align-items: center; `,tT=({item:e,index:t=0})=>e?n.createElement(tN,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},n.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),n.createElement(s.T,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),n.createElement("img",{src:c.C.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,tL=({helpfulUrls:e=[]})=>{let{t}=(0,u.u)();return e.length?n.createElement(tm,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?n.createElement(tz,null,null==e?void 0:e.slice(0,5).map((e,t)=>n.createElement(tT,{key:t,index:t,item:e}))):n.createElement(n.Fragment,null)):null},tZ=o.Z.div` display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; ${k.M.tdDown} { grid-template-columns: 1fr; gap: 12px; } `,tH=o.Z.a` text-decoration: none; border-radius: 4px; background: ${r.t.colors.primary50}; position: relative; overflow: hidden; display: flex; * { pointer-events: none; } .bg-svg { width: 245px; top: 0; right: 0; height: 100%; position: absolute; ${k.M.tdDown} { top: calc(51% - 68px); right: -8px; } } padding: 180px 24px 16px; a { display: flex; width: 100%; } ${k.M.tdDown} { padding-top: 16px; display: flex; align-items: center; } `,tS=o.Z.div` width: 64px; height: 64px; background: white; position: absolute; right: 25px; top: 35px; z-index: 3; border-radius: 50%; img { position: absolute; width: 64px; height: 64px; top: 50%; left: 50%; display: block; transform: translate(-50%, -50%); } ${k.M.tdDown} { position: relative; top: unset; right: unset; } `,tj=o.Z.div` display: flex; align-items: center; color: ${r.t.colors.primaryBase}; font-weight: 400; font-size: 14px; text-decoration: none; `,tU=o.Z.p` font-size: 16px; font-weight: 600; line-height: 1.4; color: ${r.t.colors.gray800}; `,tR=o.Z.p` font-size: 14px; line-height: 1.4; font-weight: 400; color: ${r.t.colors.gray600}; height: 40px; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: auto; ${k.M.tdDown} { display: none; } `,tO=o.Z.div` display: flex; flex-direction: column; flex: 1; z-index: 1; ${k.M.tdUp} { gap: 8px; } ${k.M.tdDown} { gap: 4px; flex: 1; } `,tI=({item:e,index:t=0})=>{let{t:a}=(0,u.u)(),{configs:{statics:l}}=(0,n.useContext)(eH);if(!e)return null;let i=e.link?e.link.startsWith("http")?e.link:`${l.HOME_PAGE_URL}${e.link}`:void 0;return n.createElement(tH,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},n.createElement("img",{src:c.C.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),n.createElement(tO,null,n.createElement(tU,null,e.title),n.createElement(tR,null,e.subtitle),n.createElement(tj,null,a("home.seeMore"),n.createElement("img",{src:c.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),n.createElement(tS,null,n.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},tV=o.Z.a` text-decoration: none; border-radius: 12px; position: relative; overflow: hidden; display: flex; * { pointer-events: none; } .bg-svg { top: 0; left: 0; position: absolute; } .dot-svg { width: 40px; height: 30px; top: 36px; left: 16px; position: absolute; stroke-width: 0; } &[data-color='pink'] { background: ${r.t.mbColors.tonePink}; .bg-svg { fill: ${r.t.mbColors.peach}; } } &[data-color='orange'] { background: ${r.t.mbColors.toneYellow}; .bg-svg { fill: ${r.t.mbColors.orange}; } } &[data-color='green'] { background: ${r.t.mbColors.toneGreen}; .bg-svg { fill: ${r.t.mbColors.mint}; } } padding: 180px 24px 16px; a { display: flex; width: 100%; } ${k.M.tdDown} { padding-top: 16px; display: flex; align-items: flex-start; justify-content: flex-start; } ${k.M.mbDown} { padding-top: 0; padding-left: 80px; height: 96px; align-items: flex-start; justify-content: center; flex-direction: column; .dot-svg { top: 22px; left: 16px; } } ${k.M.tdUp} { min-height: 296px; } .mobile-only { ${k.M.tdUp} { display: none; } } .desktop-only { ${k.M.tdDown} { display: none; } } `,tG=o.Z.div` width: 48px; height: 48px; background: white; position: absolute; right: 25px; top: 35px; z-index: 3; border-radius: 50%; img { position: absolute; width: 36px; height: 36px; top: 50%; left: 50%; display: block; transform: translate(-50%, -50%); } ${k.M.tdDown} { position: relative; top: unset; right: unset; } ${k.M.mbDown} { position: absolute; left: 32px; top: 28px; } `,tW=o.Z.div` display: flex; align-items: center; background: white; font-weight: 400; font-size: 14px; text-decoration: none; border-radius: 50%; width: 20px; height: 20px; svg path { fill: ${r.t.mbColors.gray}; } ${k.M.tdDown} { background: none; width: 100%; font-weight: 400; font-size: 12px; line-height: 18px; color: ${r.t.mbColors.pink}; padding-left: 16px; } `,tq=o.Z.p` font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: -0.2px; color: ${r.t.colors.gray800}; `,tY=o.Z.p` font-weight: 400; font-size: 12px; line-height: 18px; letter-spacing: -0.2px; color: ${r.t.colors.gray600}; height: 54px; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: auto; ${k.M.tdDown} { display: none; } `,tK=o.Z.div` display: flex; flex: 1; z-index: 1; align-items: flex-end; justify-content: flex-end; ${k.M.tdUp} { gap: 8px; flex-direction: row; } ${k.M.tdDown} { align-items: flex-start; justify-content: flex-start; gap: 4px; } `,tQ=o.Z.div` display: flex; flex-direction: column; flex: 1; z-index: 1; ${k.M.tdUp} { gap: 8px; } ${k.M.tdDown} { gap: 4px; flex: 1; padding-left: 16px; } `,tJ=o.Z.div` display: flex; flex-direction: row; flex: 1; z-index: 1; ${k.M.tdUp} { gap: 8px; justify-content: flex-end; align-items: flex-end; } ${k.M.tdDown} { flex-direction: column; justify-content: flex-start; align-items: flex-start; } `,tX=({item:e,index:t=0,color:a})=>{let{t:l}=(0,u.u)(),{configs:{statics:i}}=(0,n.useContext)(eH);if(!e)return null;let o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,r=()=>n.createElement(tG,null,n.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),s=()=>n.createElement(tJ,null,n.createElement(tQ,null,n.createElement(tq,null,e.title),n.createElement(tY,null,e.subtitle)),n.createElement(tW,null,n.createElement("div",{className:"mobile-only"},l("home.seeMore")),n.createElement("img",{src:c.C.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return n.createElement(tV,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},n.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},n.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),n.createElement("img",{src:c.C.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),n.createElement(tK,null,n.createElement("div",{className:"mobile-only"},r()),n.createElement("div",{className:"desktop-only"},s())),n.createElement("div",{className:"mobile-only"},s()),n.createElement("div",{className:"desktop-only"},r()))},t0=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{let{t:a}=(0,u.u)(),l=["pink","orange","green"],{siteType:i}=(0,n.useContext)(eH);return n.createElement(tm,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&n.createElement(tZ,null,null==t?void 0:t.slice(0,3).map((e,t)=>"marryBaby"===i?n.createElement(tX,{key:t,index:t,item:e,color:l[t]}):n.createElement(tI,{key:t,index:t,item:e}))),0===t.length&&n.createElement(tr,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:c.C.getAssetPath("community.svg")}))},t1=({closePopup:e,menuItems:t=[]})=>{var a,l;let{siteType:i,ssrMenuContent:{categories:o,healthTools:r,care:s,together:c,ecom:m},activeMenuService:p,configs:{statics:h,enableSearchBar:g},locale:v}=(0,n.useContext)(eH),{t:f}=(0,u.u)();return n.createElement(eR,{id:"categories-menu"},g?n.createElement(eO,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},n.createElement(eV,{id:"mobile"})):null,n.createElement(eI,null,n.createElement(e2,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:f("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:f("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:p}),"categories"===p&&n.createElement(tb,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===p&&n.createElement(t0,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(a=d.S[v])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===p&&n.createElement(tp,{spotlights:null==s?void 0:s.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(l=P.a[v])||void 0===l?void 0:l.SPECIALTIES}`}),"together"===p&&n.createElement(tD,{spotlights:null==c?void 0:c.spotlights}),"ecom"===p&&n.createElement(tL,{helpfulUrls:null==m?void 0:m.helpfulUrls})))},t2=({menuItems:e})=>{let{siteType:t,configs:{enableSearchBar:a}}=(0,n.useContext)(eH),{containerRef:l,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:r,onClose:s}=en();return n.createElement(el,{mediaQueryKey:"mbDown"},n.createElement("header",{className:"y5VJdvw"},n.createElement("div",{className:"oVhOSCy",ref:l,role:"button",tabIndex:0,onBlur:o,onFocus:i},n.createElement("div",{className:"pX8OXTM",onMouseDown:r,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},n.createElement(ej,{className:"mobile-close-icon"}),n.createElement(eU,{siteType:t,enableSearch:a,className:"mobile-hamburger-icon"})),n.createElement(t1,{menuItems:e,closePopup:s}))))},t3=o.Z.div` z-index: 201; width: 100%; align-items: center; background-color: ${r.t.colors.white}; transition: height 0.3s, transform 0.3s; &[data-site-type='helloSites'] { border-bottom: 1px solid ${r.t.colors.neutral100}; } &[data-sponsored='true'] { border-bottom: none; } &[data-marry-baby-tone='pink'] { background-color: ${r.t.mbColors.lightPink}; } ${k.M.mbUp} { &[data-sitewide-banner-shown='true'][data-collapsed='true'] { transform: translateY(-64px); } } ${k.M.mbDown} { &[data-site-type='marryBaby'] { border-bottom: none; } &[data-fixed-bar='true'] { position: fixed; transform: translateY(0); } &[data-fixed-bar='false'] { position: absolute; } &[data-collapsed='true'] { transform: translateY(-100%); transition: transform 0.5s; } &[data-collapsed='false'] { transform: translateY(0); transition: transform 0.5s; } .top-bar-header { line-height: normal; } &[data-header-type='home'] { z-index: ${99}; } &[data-is-displayed='false'] { //display: none; visibility: hidden; } } .marry-baby { input { background: ${r.t.mbColors.lightGray}; border-radius: 16px; border: none; } max-width: 172px; } &[data-site-type='marryBaby'] { .close-btn { top: 16px; right: 16px; } } `,t4=o.Z.div` display: flex; height: 100%; align-items: center; justify-content: space-between; padding: 0 2rem; height: 56px; ${k.M.pcDown} { padding: 0 1rem; } ${k.M.mbDown} { position: relative; height: 56px; background: white; gap: 2px; } &[data-site-type='marryBaby'] { width: 100%; margin: 0 auto; padding: 0 16px; ${k.M.tdUp} { max-width: 1064px; } } `,t5=o.Z.div` display: flex; align-items: center; height: 100%; gap: 24px; ${k.M.pcDown} { flex-shrink: 0; gap: 16px; } ${k.M.pcDown} { gap: 12px; } &[data-site-type='marryBaby'] { gap: 26px; } `,t6=o.Z.div` display: flex; align-items: center; height: 100%; flex-shrink: 0; /* gap: 16px; */ ${k.M.tdDown} { flex-shrink: 0.6; } .hhgcomp-navigation-itemnav-headeritem { gap: 2px; ${k.M.pcUp} { padding: 0 10px; } ${k.M.pcDown} { padding: 0 6px; } ${k.M.mbDown} { display: none; } a { text-decoration: none; } } `;o.Z.div` .fake-search-input { pointer-events: none; input { line-height: 20px; padding-top: 10px; padding-bottom: 10px; } } `;let t8=o.Z.div` margin-left: 16px; display: flex; gap: 12px; align-items: center; flex-shrink: 0; ${k.M.pcDown} { margin-left: 8px; gap: 8px; } ${k.M.mbDown} { margin-left: 0; gap: 10px; } `,t7=o.Z.div` display: flex; align-items: center; height: 100%; &[data-site-type='marryBaby'] { gap: 26px; } `,t9=()=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"512",height:"512",style:{width:"100%",height:"100%",contentVisibility:"visible"},viewBox:"0 0 512 512"},n.createElement("defs",null,n.createElement("clipPath",{id:"__lottie_element_2"},n.createElement("path",{d:"M0 0h512v512H0z"})),n.createElement("path",{fill:"#FFF",d:"m139 0-13 174h244l-30 292 165 1 4-466z",opacity:"1",id:"__lottie_element_6",display:"block"}),n.createElement("mask",{id:"__lottie_element_6_1","mask-type":"alpha"},n.createElement("use",{xlinkHref:"#__lottie_element_6"}))),n.createElement("g",{clipPath:"url(#__lottie_element_2)"},n.createElement("path",{fill:"#2B62CD",d:"m430 181-40 41-111-120a18 18 0 0 1-5-13c0-5 2-9 5-13l6-5a18 18 0 0 1 25-1zm-348 0 40 41 111-120a18 18 0 0 0 0-26l-6-5a18 18 0 0 0-25-1z",display:"block"}),n.createElement("g",{display:"block"},n.createElement("path",{fill:"#2D87F3",d:"M385 427H125c-4 0-9-1-13-5a20 20 0 0 1-6-12L88 239h335l-18 171a20 20 0 0 1-7 12c-3 4-8 5-13 5"}),n.createElement("path",{fill:"#2B62CD",d:"m160 402-5-2a6 6 0 0 1-1-4l-8-114v-2a6 6 0 0 1 3-4 6 6 0 0 1 5 0 6 6 0 0 1 4 5l8 115-1 2a6 6 0 0 1-1 2 6 6 0 0 1-4 2m61 0-5-2a6 6 0 0 1-1-4l-2-114c0-2 0-3 2-5a6 6 0 0 1 4-1l4 1a6 6 0 0 1 2 4l2 115a6 6 0 0 1-2 4 6 6 0 0 1-4 2zm131 0a6 6 0 0 1-5-4l-1-2 8-115a6 6 0 0 1 2-4l2-1a6 6 0 0 1 2 0 6 6 0 0 1 5 2 6 6 0 0 1 1 4l-8 114a6 6 0 0 1-6 6m-61 0a6 6 0 0 1-6-6l2-114 2-5a6 6 0 0 1 4-1 6 6 0 0 1 5 1 6 6 0 0 1 1 5l-2 114a6 6 0 0 1-1 4 6 6 0 0 1-5 2"}),n.createElement("path",{fill:"#91CAFF",d:"M424 243H88a20 20 0 0 1-21-18l-3-28a20 20 0 0 1 20-23h344a20 20 0 0 1 20 23l-3 28a20 20 0 0 1-21 18"})),n.createElement("g",{mask:"url(#__lottie_element_6_1)",display:"block"},n.createElement("path",{fill:"#FFC326",d:"m294 198-16 123a5 5 0 0 1-5 5h-80l-4-2a5 5 0 0 1-1-4l15-115h1z"}),n.createElement("path",{fill:"#FFD658",d:"M272 189c0 3 0 7 2 10a12 12 0 0 0 10 6h-81l-3-1c-3-1-5-3-6-5a15 15 0 0 1 5-19 17 17 0 0 1 9-3h80c-4 0-7 1-9 3a15 15 0 0 0-7 9"}),n.createElement("path",{fill:"#FEA21E",d:"M277 326h-4c3 0 5-2 5-4l15-115 1-9v1l-1 1a9 9 0 0 1-5 4 11 11 0 0 1-8 0c-3-1-5-3-6-5-4-7-2-15 5-19 2-2 5-3 9-3h1c4 0 7 2 10 4l6 9 1 11 14 119-1 4z"}),n.createElement("path",{fill:"#FC7419",d:"M303 310v-74a3 3 0 1 0-5 0v74l-21 16h38l4-2zm-5-109a13 13 0 0 1-5 6l1-9c0-1 0 0 0 0 0-3-1-6-4-7a4 4 0 0 0-5 1v1c0 2-1 3-2 3a3 3 0 0 1-3-2l1-4a9 9 0 0 1 11-4c3 1 5 3 6 6v9"})),n.createElement("g",{display:"block"},n.createElement("path",{fill:"#FFC326",d:"m460 330-16 123a5 5 0 0 1-5 5h-80l-4-2a5 5 0 0 1-1-4l15-115h1z"}),n.createElement("path",{fill:"#FFD658",d:"M438 321c0 3 0 6 2 9a12 12 0 0 0 10 7h-81l-3-1c-3-1-5-3-6-6a15 15 0 0 1 5-18 17 17 0 0 1 9-3h80c-4 0-7 1-9 3a15 15 0 0 0-7 9"}),n.createElement("path",{fill:"#FEA21E",d:"M443 458h-4c3 0 5-2 5-5l15-114 1-9v1l-1 1a9 9 0 0 1-5 4 11 11 0 0 1-8 0c-3-1-5-3-6-6-4-6-2-14 5-18 2-2 5-3 9-3h1c4 0 7 2 10 4s5 5 6 9l1 11 14 119-1 4z"}),n.createElement("path",{fill:"#FC7419",d:"M469 442v-74a3 3 0 1 0-5 0v74l-21 16h38l4-2zm-5-109a13 13 0 0 1-5 6l1-9c0-1 0 0 0 0 0-3-1-6-4-7a4 4 0 0 0-4 1l-1 1-2 3a3 3 0 0 1-3-3l1-3a9 9 0 0 1 11-4c3 1 5 3 6 5 1 3 2 7 0 10"})))),ae=()=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",style:{width:"100%",height:"100%",contentVisibility:"visible"},viewBox:"0 0 512 512"},n.createElement("defs",null,n.createElement("clipPath",{id:"__lottie_element_23"},n.createElement("path",{d:"M0 0h512v512H0z"}))),n.createElement("g",{clipPath:"url(#__lottie_element_23)"},n.createElement("g",{display:"block"},n.createElement("path",{fill:"#1B3250",d:"M430 332c-13-17-52-37-42-63 16-41-9-72-28-84-22-14-23-43-30-66-15-50-53-73-103-73s-88 21-103 71c-7 22-7 53-29 67-19 12-61 41-45 82 10 26-15 52-28 69-39 53 13 89 72 98l255 2c59-9 120-50 81-103"}),n.createElement("path",{fill:"#FFB497",d:"M120 202c-11 4-13 17-10 29a29 29 0 0 0 14 17 29 29 0 0 0 22 3l-8-49a25 25 0 0 0-18 0"}),n.createElement("path",{fill:"#FF977B",d:"M147 235a5 5 0 0 1-4-2c-6-8-17-8-17-8a5 5 0 0 1-4-2 5 5 0 0 1 0-7l4-1c1 0 16 0 25 11a5 5 0 0 1-4 9"}),n.createElement("path",{fill:"#FFB497",d:"M332 202a25 25 0 0 0-18 0l-8 49a29 29 0 0 0 22-3c7-3 12-10 14-17 3-12 1-25-10-29"}),n.createElement("path",{fill:"#FF977B",d:"M305 235a5 5 0 0 1-5-3 5 5 0 0 1 1-6c9-11 24-11 25-11a5 5 0 0 1 5 5 5 5 0 0 1-5 5s-11 0-17 8a5 5 0 0 1-4 2"}),n.createElement("path",{fill:"#E3F2FF",d:"M366 452H86a3 3 0 0 1-4-4c5-19 19-47 37-65a153 153 0 0 1 42-28l1-1a85 85 0 0 1 29-19h70a84 84 0 0 1 29 19l1 1a153 153 0 0 1 42 28c18 18 32 46 37 65a3 3 0 0 1-1 3 3 3 0 0 1-3 1"}),n.createElement("path",{fill:"#FCCAAF",d:"M261 335c-25 32-48 32-70 0l5-10v-1a45 45 0 0 0 2-13h56a48 48 0 0 0 2 13v1l5 10"}),n.createElement("path",{fill:"#2D87F3",d:"M281 452H175c-14-93 16-117 16-117 7 9 20 15 35 15s28-6 35-15c0 0 9 12 16 37 5 20 6 60 4 80"}),n.createElement("path",{fill:"#BCDEFF",d:"M191 335a84 84 0 0 0-30 19 53 53 0 0 0-13 28c0 3 11 1 16 0h1v1c-13 8-17 19-16 25 2 15 6 30 13 44h26s-12-72 3-117m96 48a1 1 0 0 1 0-1h1c1 0 0 0 0 0 5 1 16 3 16 0a53 53 0 0 0-13-28 83 83 0 0 0-30-19c15 45 3 117 3 117h26a157 157 0 0 0 13-44c1-6-3-17-16-25"}),n.createElement("path",{fill:"#FF977B",d:"M256 325c-20 18-40 18-60 0v-1a46 46 0 0 0 2-13h56a48 48 0 0 0 2 13v1"}),n.createElement("path",{fill:"#FCCAAF",d:"M314 205c-3 54-17 80-39 96-14 11-37 24-49 24s-35-13-49-24c-22-16-36-42-39-96 52-21 30-127 85-99a7 7 0 0 0 6 0c55-28 33 78 85 99"}),n.createElement("path",{fill:"#FFB497",d:"M221 106c-27-12-34 12-43 40-7 25-16 54-41 63l1 3c43 0 71-62 83-106"})),n.createElement("path",{fill:"#FF977B",d:"M233 233a5 5 0 0 0-4 2l-3 1-3-1a5 5 0 0 0-2-2 5 5 0 0 0-4 0 5 5 0 0 0-3 5c0 6 9 8 12 8s12-2 12-8a5 5 0 0 0-2-3 5 5 0 0 0-3-2",display:"block"}),n.createElement("path",{fill:"#1B3250",d:"m261 199 9-5a27 27 0 0 1 11-1c4 0 7 0 11 2l8 4a2 2 0 0 1 1 2 2 2 0 0 1 0 1h-1l-10-1h-9a20 20 0 0 0-7 2 65 65 0 0 0-7 4 5 5 0 0 1-4 1 5 5 0 0 1-3-2 5 5 0 0 1-1-2 5 5 0 0 1 2-5",display:"block"}),n.createElement("path",{fill:"#284A75",d:"M280 218a9 9 0 1 0 0-19 9 9 0 0 0 0 19",display:"block"}),n.createElement("path",{fill:"#1B3250",d:"m192 210-7-4-7-2h-9l-9 1a2 2 0 0 1-2-1v-1l1-1 9-4c3-2 6-2 10-2 4-1 7 0 11 1l9 5a5 5 0 0 1 2 3v4a5 5 0 0 1-7 2l-1-1",display:"block"}),n.createElement("path",{fill:"#284A75",d:"M184 218a9 9 0 1 0 0-19 9 9 0 0 0 0 19",display:"block"}),n.createElement("g",{fill:"#FFF",display:"block"},n.createElement("path",{d:"m216 213-4-1a5 5 0 0 1-1-3v-4a5 5 0 0 1 3-2 33 33 0 0 1 24 0 5 5 0 0 1 3 7 5 5 0 0 1-3 2h-3a23 23 0 0 0-18 1h-1"}),n.createElement("path",{d:"M183 249a38 38 0 0 1-35-23 38 38 0 0 1-2-22 38 38 0 0 1 11-19 38 38 0 0 1 19-11c7-1 15 0 22 2a38 38 0 0 1 16 14 38 38 0 0 1 7 21 38 38 0 0 1-11 27 38 38 0 0 1-27 11m0-65a27 27 0 0 0-25 17 27 27 0 0 0-2 15 27 27 0 0 0 8 14 27 27 0 0 0 42-4c3-4 4-9 4-15a27 27 0 0 0-8-19 27 27 0 0 0-19-8zm86 65a38 38 0 0 1-35-24 38 38 0 0 1 27-51 38 38 0 0 1 39 16 38 38 0 0 1 6 21 38 38 0 0 1-11 27 38 38 0 0 1-26 11m0-65a27 27 0 0 0-25 17 27 27 0 0 0-2 15 27 27 0 0 0 8 14 27 27 0 0 0 46-19 27 27 0 0 0-8-19 27 27 0 0 0-19-8z"})),n.createElement("path",{d:"m205 180-2-1c-10-4-39-9-47-1a5 5 0 0 1-3 2 5 5 0 0 1-4-2 5 5 0 0 1-2-3l1-4c14-15 52-4 59-1a5 5 0 0 1 3 6 5 5 0 0 1-2 3l-3 1zm42 0-3-1a5 5 0 0 1-1-7 5 5 0 0 1 2-2c7-3 45-14 59 1a5 5 0 0 1 1 4l-2 3a5 5 0 0 1-4 2l-3-2c-8-8-37-3-47 1l-2 1",fill:"#284A75",display:"block"}),n.createElement("path",{fill:"#FF886C",d:"M208 260a4 4 0 0 0-3 1 4 4 0 0 0-1 3c2 8 6 19 22 19s21-11 22-19a4 4 0 0 0-4-4l-18-1-18 1",display:"block"}),n.createElement("g",{display:"block"},n.createElement("g",{fill:"#FFF"},n.createElement("path",{d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"}),n.createElement("path",{d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"})),n.createElement("path",{fill:"#E4E8EC",d:"M384 480a75 75 0 1 0 0-149 75 75 0 0 0 0 149m0 11a85 85 0 1 0 0-171 85 85 0 0 0 0 171"}),n.createElement("path",{fill:"#FFF",d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"}),n.createElement("path",{fill:"#E4E8EC",d:"M384 480a75 75 0 1 0 0-149 75 75 0 0 0 0 149m0 11a85 85 0 1 0 0-171 85 85 0 0 0 0 171"}),n.createElement("path",{fill:"#FF6F4D",d:"M389 358h-11a17 17 0 0 0-12 5 17 17 0 0 0-5 12v3l-1 3a4 4 0 0 1-3 1h-3a17 17 0 0 0-17 17v12a17 17 0 0 0 17 17h3a4 4 0 0 1 4 3v3a17 17 0 0 0 17 17h11c5 0 9-2 12-5s5-7 5-12v-3a4 4 0 0 1 4-3h3c4 0 9-2 12-5s5-8 5-12v-12c0-5-2-9-5-12a17 17 0 0 0-12-5h-3a4 4 0 0 1-4-4v-3a17 17 0 0 0-5-12 17 17 0 0 0-12-5"})))),at=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},aa=e=>({postTitle:e.post_title,permalink:e.permalink}),al=e=>({title:e.title,content:e.content}),an=e=>{var t,a;return e?{termId:e.term_id||null,sponsor:e.sponsor?at(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map(e=>an(e)))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?aa(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map(e=>al(e)):null,customizedUrl:e.customized_url||null}:{}},ai=e=>{var t,a;if(!e)return{};let l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")?e.link:l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},ao=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},ar=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},as=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=P.a[a])||void 0===l?void 0:l.ALL}/${(null===(n=P.a[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},ac=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ad=e=>{let t=new Date;if(null==e?void 0:e.startDate){let a=new Date(e.startDate);if(t.getTime()a.getTime())return!1}return!0};var am={gridContainer:"q3nL5cp",container:"_2DNf80G",closeWrapper:"Q-glX-n"};let ap=({onClosePopup:e})=>n.createElement("div",{className:`${am.closeWrapper} close-btn`,onClick:e},n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ah=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:l,hideCloseBtn:i})=>n.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!l},n.createElement(H.C,null,!i&&n.createElement("div",{className:am.container},n.createElement(ap,{onClosePopup:e})),n.createElement(H.C,{className:am.gridContainer},a))),ag=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:l=[]})=>{var i;let{t:o}=(0,u.u)(),{locale:r,configs:{statics:s}}=(0,n.useContext)(eH);return n.createElement(ah,{onClosePopup:a,isDisplay:t,isNavMenu:!0},n.createElement(e2,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${s.CARE_URL_FE}/`,UrlFE:s.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map(e=>e?{name:String(e.name)||"",link:as({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{}))||[]}),n.createElement(tp,{spotlights:l,hrefViewMore:`${s.CARE_URL_FE}/${null===(i=P.a[r])||void 0===i?void 0:i.SPECIALTIES}/`}))},au=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:l})=>{let{t:i}=(0,u.u)(),{locale:o,configs:{statics:r}}=(0,n.useContext)(eH);return n.createElement(ah,{onClosePopup:a,isDisplay:l,isNavMenu:!0},n.createElement(e2,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map(e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{}))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),n.createElement(tb,{spotlightsList:t,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},av=({communities:e=[],onClose:t,isOpen:a,spotlights:l=[]})=>{let{t:i}=(0,u.u)(),{configs:{statics:o}}=(0,n.useContext)(eH);return n.createElement(ah,{onClosePopup:t,isDisplay:a,isNavMenu:!0},n.createElement(e2,{hrefViewMore:(0,m.a)(o.TOGETHER_URL_FE),UrlFE:(0,m.n)(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map(e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{}))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),n.createElement(tD,{spotlights:l}))},af=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:l=[],healthTools:i=[]})=>{var o;let{t:r}=(0,u.u)(),{configs:{statics:s}}=(0,n.useContext)(eH),c=`${s.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=d.S[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return n.createElement(ah,{onClosePopup:t,isDisplay:a,isNavMenu:!0},n.createElement(e2,{hrefViewMore:c,UrlFE:s.HOME_PAGE_URL,onClosePopup:t,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:i.map(e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${s.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon}))}),n.createElement(t0,{spotlightHealthTools:l,hrefViewMore:c}))},ab=({item:e,color:t="blue"})=>{let[l,o]=(0,n.useState)(),[r,s]=(0,n.useState)(),{locale:c,ssrMenuContent:{categories:d,healthTools:p,care:h,together:g}}=(0,n.useContext)(eH),{containerRef:u,onButtonMouseDown:v,onClose:f}=en({allowBgScroll:!0});(0,n.useEffect)(()=>{setTimeout(()=>{("care"===e.id||"ecom"===e.id)&&Promise.all([a.e(296),a.e(9464)]).then(a.bind(a,79464)).then(e=>{o(()=>e.default)}),"care"===e.id?a.e(5329).then(a.bind(a,85329)).then(e=>{(null==e?void 0:e.default)&&s(()=>e.default)}):"ecom"===e.id&&a.e(2789).then(a.bind(a,82789)).then(e=>{(null==e?void 0:e.default)&&s(()=>e.default)})},1e3)},[e.id]);let b="care"===e.id||"ecom"===e.id,y=!e.popupType&&!!e.link;return n.createElement(y?"a":"div",{tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:eX.itemNavButton,ref:u,onMouseDown:v},n.createElement(i.B,{variant:"light",leftIcon:l&&r?y?n.createElement(l,{options:{loop:!0,autoplay:!0,animationData:r},height:28,width:28}):n.createElement("a",{href:(0,m.n)(e.link+"/")},n.createElement(l,{options:{loop:!0,autoplay:!0,animationData:r},height:28,width:28})):b?n.createElement("div",{style:{width:28,height:28}},"care"===e.id?n.createElement(ae,null):"ecom"===e.id?n.createElement(t9,null):null):null,styles:{leftIcon:{marginRight:4,svg:{transform:"none !important",g:{willChange:"transform"}}}},style:Object.assign(Object.assign({},"gray"===t?{border:"1px solid #E4E8EC",background:"#F7F9FC"}:{border:"1px solid #BCDEFF",background:"#E3F2FF"}),{padding:"6px 8px 6px 8px",color:"#262626",height:"unset"}),size:"sm",rightIcon:e.popupType?n.createElement("div",{className:eX.menuIconWrapper},n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}))):n.createElement("div",null)},e.name),"categories"===e.popupType?n.createElement(au,{categories:null==d?void 0:d.items,spotlightsList:null==d?void 0:d.spotlights,onClose:f}):"tools"===e.popupType?n.createElement(af,{locale:c,healthTools:null==p?void 0:p.items,spotlightHealthTools:null==p?void 0:p.spotlights,onClose:f}):"together"===e.popupType?n.createElement(av,{communities:null==g?void 0:g.items,spotlights:null==g?void 0:g.spotlights,onClose:f}):"care"===e.popupType?n.createElement(ag,{careSpecialties:null==h?void 0:h.items,spotlights:null==h?void 0:h.spotlights,onClose:f}):null)},ay=({onTopBarAppears:e,languageMenu:t,menuItems:a,logoComponent:l})=>{var i;let{siteType:o,isMobile:r=!1,locale:s,sitewideBanner:p,sitewideBannerShown:h=!0,sponsorComponent:v,onBookingClick:b,currentUrl:y,onLoginClick:E,cartNumber:x,configs:{statics:w,enableNavCareBooking:k,enableSearchBar:C},userState:{userInfo:$},onLogout:M,isUserLoading:_}=(0,n.useContext)(eH),{t:B}=(0,u.u)(),{SSO_URL:F,HOME_PAGE_URL:P}=w,A=!!v,[D,z]=(0,n.useState)(!1),N=(0,n.useRef)(47),T=(0,n.useRef)(null),L=(0,n.useRef)(!1),Z="helloSites"===o?null===(i=d.L[s])||void 0===i?void 0:i.LOGO_TYPE:o,H="undefined"!=typeof window,S=(0,n.useCallback)(f()(()=>{if(H){if(!T.current)return;let e=T.current.getBoundingClientRect();e.top<=0&&window.scrollY>N.current+30&&window.scrollY>e.height+20&&!L.current&&(L.current=!0,z(!0)),window.scrollY=0&&(N.current=window.scrollY)}},200),[]);(0,n.useEffect)(()=>{null==e||e(!D)},[D]),(0,n.useEffect)(()=>(window.addEventListener("scroll",S,{passive:!0}),()=>{window.removeEventListener("scroll",S)}),[]),(0,n.useEffect)(()=>{r&&S()},[r]);let j=a.find(e=>"ecom"===e.id),U=a.find(e=>"care"===e.id);return n.createElement(t3,{"data-site-type":o,"data-sponsored":A,"data-sitewide-banner-shown":h&&!!p,"data-header-type":"home","data-collapsed":D,"data-is-displayed":!0,id:"site-header",ref:T},p,n.createElement(t4,{"data-site-type":o},n.createElement(t5,{"data-site-type":o},r&&n.createElement(t2,{menuItems:a}),l||n.createElement("a",{style:{flexShrink:0},href:P},n.createElement("div",null,n.createElement(g.L,{style:{display:"flex"},type:Z,badge:"id-ID"===s&&n.createElement("img",{src:c.C.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:s,key:"undefined"!=typeof window?"client":"server"}))),!r&&n.createElement(n.Fragment,null,"marryBaby"===o?n.createElement(ax,{menuItems:a}):C&&n.createElement(aE,{siteType:o}))),n.createElement(t6,{"data-site-type":o},!r&&n.createElement(n.Fragment,null,"marryBaby"===o?C&&n.createElement(aE,{siteType:o}):n.createElement(ax,{menuItems:a.filter(e=>"ecom"!==e.id&&"care"!==e.id)})),n.createElement(t8,null,!r&&n.createElement(n.Fragment,null,j?n.createElement(ab,{item:j}):null,U?n.createElement(ab,{item:U,color:"gray"}):null,k&&n.createElement(el,{mediaQueryKey:"mbUp"},n.createElement(eL,{careUrlFe:w.CARE_URL_FE,currentUrl:y,btnName:B("login.booking"),onCareHeaderClick:b}))),t,n.createElement(eN,{userInfo:$,siteType:o,onLoginClick:E||(()=>{let e=window.location.href;window.location.href=F?(0,m.n)(`${F}?returnUrl=${e}`):e}),SSO_URL:(0,m.a)(w.SSO_URL),currentUrl:y,onLogout:M,isLoading:_,locale:s}),void 0!==x&&n.createElement(n.Fragment,null,!r&&n.createElement("hr",{style:{height:20,width:0,border:"none",borderLeft:"1px solid #E4E8EC"}}),n.createElement(et,{"data-cart-menu":"true","data-event-category":"Ecommerce","data-event-action":"Cart Click","data-event-label":y,count:x,locale:s}))))),v?n.isValidElement(v)?n.cloneElement(v,{isCollapsed:D,locale:s,isMobile:r}):v:null)},aE=({siteType:e})=>n.createElement(el,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},n.createElement(eV,{id:"desktop"})),ax=({menuItems:e})=>{let{siteType:t,locale:a,ssrMenuContent:{categories:l,healthTools:i,care:o,together:r}}=(0,n.useContext)(eH);return n.createElement(el,{mediaQueryKey:"mbUp",style:{height:"100%"}},n.createElement(t7,{"data-site-type":t},null==e?void 0:e.map((e,t)=>n.createElement(e0,{key:t,item:e,menu:"categories"===e.popupType?n.createElement(au,{categories:null==l?void 0:l.items,spotlightsList:null==l?void 0:l.spotlights}):"tools"===e.popupType?n.createElement(af,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?n.createElement(av,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?n.createElement(ag,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null}))))},aw=({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:l})=>{let i=(0,n.useRef)(null),[o,r]=(0,n.useState)(0),[s,c]=(0,n.useState)(64),d=(0,n.useCallback)(j()(()=>{var e,t,a,l;let n=(null===(e=i.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=i.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(r(n),c((null===(l=i.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||o))},200),[]);(0,n.useEffect)(()=>(window.addEventListener("resize",d,{passive:!0}),window.addEventListener("scroll",d,{passive:!0}),d(),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d)}),[]),(0,n.useEffect)(()=>{d()},[l,a,t,e,i.current]);let m=(0,n.useMemo)(()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l},[l,a,e,t]);return{defaultHeaderHeight:m,headerHeight:o||m,headerBottom:s,headerRef:i}},ak=()=>{let{isFirstLogin:e,userState:t}=(0,n.useContext)(eH),{userInfo:a}=t;(0,n.useEffect)(()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&(null==a?void 0:a.email)!==""?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&(null==a?void 0:a.email)!==""?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})},[])},aC=()=>{let{t:e}=(0,u.u)(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:r,enableNavEcom:s,statics:p}}=(0,n.useContext)(eH),h="marryBaby"===t;return(0,n.useMemo)(()=>{var t;let n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${p.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:h?c.C.getAssetPath("categories-mb.svg"):c.C.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${p.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=d.S[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?c.C.getAssetPath("healthtools-mb.svg"):c.C.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:(0,m.n)(p.TOGETHER_URL_FE+"/"),thumbnail:h?c.C.getAssetPath("community-mb.svg"):c.C.getAssetPath("nav-icons/community.svg"),popupType:"together"}),s&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:(0,m.n)(p.HOME_PAGE_URL+"/shop"),thumbnail:c.C.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:"ms-MY"===a?(0,m.n)(p.HOME_PAGE_URL+"/care/current-location/hospital/"):(0,m.n)(p.HOME_PAGE_URL+"/care"),thumbnail:c.C.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n},[a,o,r,s])},a$=o.Z.div` --header-z-index: 305; top: 0; z-index: var(--header-z-index); ${k.M.mbDown} { width: 100vw; max-width: 100%; } --amp-site-wide-closed: 2px; -webkit-transform: translateZ(0); position: sticky; &.nav-open { margin-top: 64px; } &:not(.nav-open) { --amp-site-wide-closed: 66px; } pointer-events: none; > section *:not([data-cart-menu] *) { pointer-events: auto; } `,aM=e=>{var t,a;let{isMobile:l,locale:i,onTopBarAppears:o,languageOptions:r,sponsorComponent:s,sitewideBanner:c,sitewideBannerShown:d,className:m,logoComponent:p}=e,h=aC();ak();let g=!!(null===(a=null===(t=null==s?void 0:s.props)||void 0===t?void 0:t.sponsoredBy)||void 0===a?void 0:a.length),{headerRef:u,defaultHeaderHeight:v,headerHeight:f,headerBottom:b}=aw({isShowingSiteWideBanner:d&&!!c,isSponsored:!!s,hasSponsoredBanners:g,isMobile:l});return n.createElement(a$,{id:"navigation-v2",style:{"--default-header-height":v+"px","--header-height":`calc(${f}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":b+"px"},className:m},n.createElement("section",{ref:u},n.createElement(ay,{menuItems:h,onTopBarAppears:o,logoComponent:p,languageMenu:n.createElement(Q,{languageOptions:r,locale:i})})))},a_=e=>{let t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return n.createElement(eS,Object.assign({},t),n.createElement(aM,Object.assign({},t)))},aB=e=>(0,l.a)(void 0,void 0,void 0,function*(){var t,a,l,n,i,o,r,s,c,g,u,v,f,b,y,E,x,w,k,C,$,M,_;let B={},F="vi-VN_MB"===e;try{let P="tl-PH"===e?"lang=fil":"";try{let[d,h,u,v]=yield Promise.all([fetch((0,m.n)(`${(0,p.c)(e)}/wp-json/api/categories${P?"?"+P:""}`)).then(e=>e.json()),fetch((0,m.n)(`${(0,p.c)(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then(e=>e.json()),fetch((0,m.n)(`${(0,p.c)(e)}/wp-json/api/${F?"health-tools":"healthtools"}${P?"?"+P:""}`)).then(e=>e.json()),fetch((0,m.n)(`${(0,p.c)(e)}/wp-json/api/${F?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then(e=>e.json())]);B.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,an))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==h?void 0:h.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,ac))||void 0===o?void 0:o.filter(ad))||[]},B.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,ai))||[],spotlights:(null===(g=null===(c=null==v?void 0:v.data)||void 0===c?void 0:c.map)||void 0===g?void 0:g.call(c,ai))||[]}}catch(e){}if(F||d.T.includes(e))try{let[t,a]=yield Promise.all([fetch((0,m.n)(`${(0,p.b)()}/api/v1/community?website_url=https://${d.d[e]}`)).then(e=>e.json()),fetch((0,m.n)(`${(0,p.b)()}/api/v1/options?website_url=https://${d.d[e]}&meta_key=popular_post`)).then(e=>e.json())]);B.together={items:(null===(f=null===(v=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.communities)||void 0===v?void 0:v.map)||void 0===f?void 0:f.call(v,h.a))||[],spotlights:(null===(E=null===(y=null===(b=null==a?void 0:a.data)||void 0===b?void 0:b.posts)||void 0===y?void 0:y.map)||void 0===E?void 0:E.call(y,h.b))||[]}}catch(e){}if(d.C.includes(e))try{let[t,a]=yield Promise.all([fetch((0,m.n)((0,p.d)()+`/api/options/setting_menu?site=${d.d[e]}&type=0`)).then(e=>e.json()),fetch((0,m.n)((0,p.d)()+`/api/options/setting_menu?site=${d.d[e]}&type=1`)).then(e=>e.json())]);B.care={items:(null===(C=null===(k=null===(w=null===(x=null==t?void 0:t._data)||void 0===x?void 0:x.setting_menu)||void 0===w?void 0:w.menu_specialty)||void 0===k?void 0:k.map)||void 0===C?void 0:C.call(k,ao))||[],spotlights:(null===(_=null===(M=null===($=null==a?void 0:a._data.setting_menu)||void 0===$?void 0:$.menu_hospital)||void 0===M?void 0:M.map)||void 0===_?void 0:_.call(M,ar))||[]}}catch(e){}}catch(e){console.error(e)}return B}),aF=e=>(0,l.a)(void 0,void 0,void 0,function*(){return(yield(0,U.g)("nav-menu-content",()=>aB(e||"en-PH"),e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)}))||{}})}}]);