(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[4340],{20697:function(e,t,a){"use strict";a.d(t,{C:function(){return i}});var n=a(73884);const i=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),n.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}))},20404:function(e,t,a){"use strict";a.d(t,{C:function(){return l},I:function(){return o},L:function(){return n},M:function(){return c},S:function(){return s},a:function(){return i}});const n={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"th-TH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},i=-1,o=-2;var l,r;!function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="msd"}(l||(l={})),function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="spesialis"}(r||(r={}));const s="vaksin-rotavirus",c={"vi-VN":{gsk:r.GSK,msd:r.MSD},"id-ID":{gsk:r.GSK,msd:r.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{},"th-TH":{}}},22584:function(e,t,a){"use strict";a.d(t,{D:function(){return n},L:function(){return i}});const n="/images/default-image.jpg",i={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}}},35277:function(e,t,a){"use strict";a.d(t,{N:function(){return ii},g:function(){return oi}});var n=a(46587),i=a(73884),o=a.n(i),l=a(80084),r=a(11851),s=a(35291),c=a(74121),d=a(50191),m=a(68383),p=a(17192),u=a(50736),g=a(50315),h=a(36814),v=a(29019),f=a(61718),y=a(48085),b=a(14677),E=a(75734),x=a(79740),w=a(9669),C=a(47901),k=a(39693),_=a(27516),M=a(43388),A=a(80037),$=a(4766);const T=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","hellojiankang.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],N=r.A.a`
display: inline-flex;
position: relative;
flex-direction: row;
align-items: center;
padding: 7px 11px;
gap: 2px;
background: ${s.w.colors.white};
border: 1px solid ${s.w.colors.neutral100};
border-radius: 20px;
color: ${s.w.colors.gray600};
font-weight: 600;
font-size: 12px;
line-height: 18px;
text-decoration: none;
cursor: pointer;
`,L=r.A.div`
position: relative;
display: inline-block;
`,S=r.A.div`
position: relative;
`,B=r.A.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));
}
}
`,O=r.A.div`
display: flex;
height: 40px;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-radius: ${s.w.borderRadius};
cursor: pointer;
.check-icon {
width: 16px;
height: 16px;
}
&[data-selected='false'] {
background-color: ${s.w.colors.gray100};
}
`,I=r.A.div`
position: fixed;
z-index: 20;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: default;
`,D=({options:e,label:t,labelRenderer:a,selected:n,onChange:l,showSelected:r=!0,style:s={},showIndicator:m=!0})=>{const[p,u]=(0,i.useState)(!1);return o().createElement(o().Fragment,null,o().createElement(L,null,o().createElement(S,{onClick:()=>u((e=>!e))},t||(null===a||void 0===a?void 0:a(p))||null,o().createElement(B,{"data-is-open":p,style:s,"data-show-indicator":m},e.map(((e,t)=>o().createElement(O,{key:t,"data-selected":r&&n===e.value,onClick:t=>{n!==e.value&&(l(e.value),u((e=>!e))),t.stopPropagation()}},o().createElement(c.T,{size:"p3"},e.label),r&&n===e.value&&o().createElement("img",{src:d.C.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),p&&o().createElement(I,{onClick:()=>u(!1)}))},P=({languageOptions:e,locale:t})=>{var a,n;const i=null===e||void 0===e?void 0:e.find((e=>e.locale===t));return(null===e||void 0===e?void 0:e.length)?o().createElement(D,{options:e,selected:i.value,label:o().createElement(F,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!==typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},F=({locale:e,label:t,href:a})=>{var n,i,r;return o().createElement(N,{href:a},o().createElement(l.F,{country:null===(i=null===(n=null===e||void 0===e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(r=null===e||void 0===e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),o().createElement("span",null,t))};var z=(0,u.r)(((e,{layout:t})=>({root:{display:"block",transition:"all .3s ease","&, & *":{borderRadius:4},[e.fn.largerThan("sm")]:Object.assign({},"overlay"===t&&{"&:hover":{".overlay-info":{transform:"translateY(-10px)"},".item-overlay-wrapper":{backgroundColor:"rgba(0,0,0,0.4)"}}})},inner:Object.assign({display:"flex",gap:8,"&, *":{pointerEvents:"none !important"}},"horizon"===t?{gap:16,alignItems:"center"}:{flexDirection:"column"}),itemThumbImg:{},thumbFrame:{backgroundColor:"#000"},thumbWrapper:Object.assign({},"horizon"===t&&{width:64,flexShrink:0}),overlayWrapper:{transition:"all .3s ease"},overlay:{position:"absolute",left:0,bottom:0,right:0,backgroundImage:"linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, #111111 100%)",minHeight:96,padding:"16px 12px",display:"flex",alignItems:"flex-end"},overlayInfo:{transition:"all .3s ease"},title:Object.assign({},"overlay"===t&&{color:"#fff"}),subTitle:Object.assign({span:{margin:"0 4px",position:"relative",color:"#595959","&:before":{content:'"."',position:"absolute",top:-5,fontSize:"14px"}}},"overlay"===t&&{color:"#fff"})})));const R=e=>{var{data:t,layout:a,styles:l}=e,r=(0,n._)(e,["data","layout","styles"]);const{title:s,totalView:d,imageMedium:m,createTime:p}=t,{classes:u,cx:f}=z({layout:a},{name:"VideoItem__ShortsItem",styles:l}),{t:y}=(0,x.u)(),b=(0,i.useMemo)((()=>[d&&y("common.totalView",{number:(0,E.a)(d)}),p].filter(Boolean).join(' ')),[d,p]),w=(0,i.useMemo)((()=>o().createElement(g.B,{spacing:4,className:f(u.overlayInfo,"overlay-info")},o().createElement(c.T,{size:"s3",className:f(u.title),lineClamp:2},s),o().createElement(c.T,{className:u.subTitle,size:"n1",dangerouslySetInnerHTML:{__html:b}}))),[s,b]);return o().createElement(h.a,Object.assign({},r,{className:u.root}),o().createElement(h.a,{className:u.inner},o().createElement("div",{className:u.thumbWrapper},o().createElement(v.g,{ratio:240/431,className:u.thumbFrame},o().createElement("img",{src:m||"",className:u.itemThumbImg,alt:s,loading:"lazy"}),"overlay"===a&&o().createElement(h.a,{className:f(u.overlayWrapper,"item-overlay-wrapper")},o().createElement(h.a,{className:f(u.overlay,"item-overlay")},w)))),"overlay"!==a&&w))},j=e=>{var{size:t=24,color:a=s.w.colors.neutral600}=e,i=(0,n._)(e,["size","color"]);return o().createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 47 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o().createElement("path",{d:"M23.297 43.153c10.55 0 19.103-8.64 19.103-19.298S33.847 4.557 23.297 4.557 4.193 13.197 4.193 23.855s8.553 19.298 19.104 19.298",fill:a,fillOpacity:".75"}),o().createElement("path",{d:"m19.477 16.136 11.462 7.719-11.462 7.72z",fill:"#fff",stroke:"#fff",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}))};var H=(0,u.r)(((e,{active:t,layout:a})=>({root:{display:"block",borderRadius:4,[e.fn.largerThan("sm")]:{"&:hover":{[`.${(0,f.k)("overlay")}`]:Object.assign({},!t&&{backgroundColor:"rgba(0, 0, 0, .4)"})}}},inner:Object.assign(Object.assign({display:"flex",gap:8,"&, *":{pointerEvents:"none !important"}},"default"===a&&{flexDirection:"column"}),"horizon"===a&&{gap:12,[e.fn.largerThan("sm")]:{gap:24}}),thumb:Object.assign({},"horizon"===a&&{width:140,flexShrink:0,[e.fn.largerThan("sm")]:{width:164}}),thumbWrapper:{},thumbFrame:{},title:{lineHeight:(0,y.D)(22)},subTitle:{span:{margin:"0 4px",position:"relative","&:before":{content:'"."',position:"absolute",top:-5,fontSize:"14px"}}},overlay:{ref:(0,f.k)("overlay"),position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:t?"rgba(0, 0, 0, .55)":"transparent",transition:"all .2s ease"},duration:{position:"absolute",zIndex:0,background:"#262626",borderRadius:4,bottom:4,right:4,padding:`${(0,y.D)(1)} ${(0,y.D)(4)}`},durationTxt:{color:"#fff"}})));const U=e=>{var{isMobile:t,data:a,styles:l,className:r,classNames:s,layout:m}=e,p=(0,n._)(e,["isMobile","data","styles","className","classNames","layout"]);const{title:u,imageMedium:f,createTime:y,totalView:w,active:C,duration:k}=a,{locale:_,t:M}=(0,x.u)(),{cx:A,classes:$,theme:T}=H({active:C,layout:m},{name:"VideoItem__VideoItem",classNames:s,styles:l}),N=(0,i.useMemo)((()=>[w&&M("common.totalView",{number:(0,E.a)(w)}),y].filter(Boolean).join(' ')),[w,y]);return o().createElement(h.a,Object.assign({},p,{className:A(r,$.root)}),o().createElement(h.a,{className:$.inner},o().createElement(h.a,{className:$.thumbWrapper},o().createElement(h.a,{className:$.thumb,sx:()=>({position:"relative","div, img":{borderRadius:4}})},o().createElement(v.g,{ratio:264/148,className:$.thumbFrame},o().createElement("img",{loading:"lazy",src:f||d.C.getAssetPath(`videoThumbDefault/${_}.jpg`),alt:u,onError:e=>{e.currentTarget.src=d.C.getAssetPath(`videoThumbDefault/${_}.jpg`)}})),"number"===typeof k&&k>0&&o().createElement(h.a,{className:$.duration},o().createElement(c.T,{size:"n1",className:$.durationTxt},k)),o().createElement(b.s,{className:$.overlay,align:"center",justify:"center"},C?o().createElement(c.T,{size:"s3",weight:"semiBold",color:"#fff"},M("common.playing")):o().createElement(j,{size:t?32:46})))),o().createElement(g.B,{sx:{[T.fn.largerThan("sm")]:{gap:4},gap:2}},o().createElement(c.T,{className:$.title,size:"s3",color:C?T.fn.primaryColor():"#262626",weight:"semiBold",lineClamp:2},u),o().createElement(c.T,{className:$.subTitle,size:"n1",color:"#595959",dangerouslySetInnerHTML:{__html:N}}))))},V=e=>{var{data:t,isMobile:a}=e,i=(0,n._)(e,["data","isMobile"]);const{type:l,videoId:r,url:s}=t,c="ios"===(0,w.c)();return o().createElement(C.M,Object.assign({size:l===p.V.SHORTS?a?360:375:(0,y.D)(1128),withCloseButton:!0,styles:e=>({header:{padding:0,paddingBottom:8,backgroundColor:"transparent",border:0,[e.fn.smallerThan("sm")]:{position:"absolute",top:10,right:10}},body:{padding:0},content:{boxShadow:"none",backgroundColor:"transparent",borderRadius:0,[e.fn.largerThan("sm")]:{position:"relative"}},heading:{[e.fn.smallerThan("sm")]:{}},inner:{zIndex:m.a+2,[e.fn.smallerThan("sm")]:{padding:0}},close:{color:"#fff",backgroundColor:"#000",borderRadius:"50%",width:24,height:24,display:"flex",justifyContent:"center",alignItems:"center",transition:"all .3s ease",svg:{width:"18px !important",height:"18px !important"},"&:hover":{backgroundColor:"#fff",color:"#000"}},overlay:{zIndex:m.a+1,[e.fn.smallerThan("sm")]:{backgroundColor:"rgba(0, 0, 0, 0.85)"}}})},i),l===p.V.SHORTS?o().createElement(v.g,{ratio:.5625},o().createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${r}?autoplay=${Number(!c)}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media;\ngyroscope; picture-in-picture;\nweb-share",allowFullScreen:!0})):o().createElement(k.S,{key:s,url:s||"",autoPlay:!c}))},G=e=>{var{data:t,layout:a="default",disableDefaultFn:l,redirectToLandingPage:r,onClick:s,dataEventCategory:c,dataEventAction:d,isMobile:u}=e,g=(0,n._)(e,["data","layout","disableDefaultFn","redirectToLandingPage","onClick","dataEventCategory","dataEventAction","isMobile"]);const{articleLink:h,id:v,videoId:f,title:y,url:b,type:E}=t,[w,C]=(0,i.useState)(!1),k=(0,i.useMemo)((()=>h||`/videos/${E}/?id=${v}`),[]),{locale:M}=(0,x.u)(),A={component:"a",href:k,target:h?"_blank":"_self","data-event-category":c,"data-event-action":d,"data-event-label":`https://${_.y[M]}${k}`,onClick:l?s:h?void 0:e=>{r?localStorage.setItem(m.e,JSON.stringify({articleLink:h,id:v,videoId:f,title:y,url:b,type:E})):(e.preventDefault(),C(!0))}};return o().createElement(o().Fragment,null,E===p.V.SHORTS?o().createElement(R,Object.assign({},g,A,{data:t,layout:a,isMobile:u})):o().createElement(U,Object.assign({},g,A,{layout:a,data:t,isMobile:u})),!h&&o().createElement(V,{opened:Boolean(w),data:t,onClose:()=>C(!1),isMobile:u}))},Z=d.C.getAssetPath("sitewide/vn-public-desktop.png"),W=r.A.div`
position: relative;
display: flex;
overflow: hidden;
align-items: center;
background-color: ${e=>e.bgColor||"#284a75"};
background-position: center;
background-size: cover;
transition: height 0.25s;
&[data-is-mobile='true'] {
justify-content: flex-start;
}
&[data-is-mobile='false'] {
justify-content: center;
}
&[data-is-collapse='false'] {
height: 64px;
}
&[data-is-collapse='true'] {
height: 0;
}
${$.M.mbDown} {
&[data-is-collapse='false'] {
height: 48px;
}
}
&[data-is-vn-public-day='true'] {
background-color: ${s.w.colors.red900};
${$.M.mbDown} {
overflow: hidden;
}
${$.M.mbUp} {
background-image: url(${Z});
background-repeat: no-repeat;
background-size: cover;
.vn-bg {
display: none;
}
}
}
.banner-full {
object-fit: cover;
height: 100%;
}
& > a {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
text-decoration: none;
}
> a + .site-wide-content {
width: 100%;
}
.content {
padding-right: 48px;
color: white;
a {
color: white;
}
&[data-is-mobile='true'] {
font-size: 14px;
}
${$.M.mbDown} {
line-height: 18px;
}
}
.close-icon {
position: absolute;
right: 0px;
width: 64px;
height: 64px;
padding: 0 20px;
cursor: pointer;
}
[data-event-category] {
* {
pointer-events: none !important;
}
}
`,q=r.A.div`
max-width: 100px;
margin-right: 16px;
.image-wrapper {
display: inline-block;
overflow: hidden;
max-width: 100px;
padding: 8px 0 4px 16px;
img {
width: 64px;
height: 64px;
object-fit: contain;
&[data-is-mobile='true'] {
width: 52px;
height: 52px;
}
}
}
`,Y={daily:1,weekly:7,"bi-weekly":14},K=({site:e="discover",banner:t,isMobile:a,onClose:n,currentUrl:l})=>{var r;const{link:s,icon:d,content:m,type:p,layoutType:u,bannerDesktop:g,bannerMobile:h,backgroundColor:v,bannerDisplayFrequency:f}=t||{},[y,b]=(0,i.useState)(!0),E=m,x=(0,i.useMemo)((()=>`${e}-disable-sitewide-${p}`),[p]),w=(0,i.useCallback)((e=>{e.preventDefault(),A.A.set(x,"true",{expires:Y[f],path:l}),b(!1),null===n||void 0===n||n()}),[l,x,f]),C=null===(r=/]*href=["']([^"']*)["']/g.exec(E))||void 0===r?void 0:r[1];return(0,i.useEffect)((()=>{"true"===A.A.get(x)&&b(!1)}),[null===t||void 0===t?void 0:t.type]),E&&y?o().createElement(W,{"data-is-mobile":a,"data-is-collapse":!y,id:"sitewide-container",bgColor:v},o().createElement("a",{className:"no-replace-click","data-event-category":"Header Banner","data-event-action":"Link Click","data-event-label":l,href:s||C},"icon-text"===u?o().createElement(o().Fragment,null,d&&o().createElement(q,{className:"site-wide-content"},o().createElement("div",{className:"image-wrapper"},o().createElement("img",{src:d,className:"icon",loading:"lazy","data-is-mobile":a,alt:"",width:64,height:64}))),o().createElement("div",{className:"site-wide-content"},E&&o().createElement(c.T,{size:"s3",className:"content","data-is-mobile":a,dangerouslySetInnerHTML:{__html:E},lineClamp:2,styles:{root:{fontFamily:"Inter, -apple-system,\n BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell,\n 'Helvetica Neue', sans-serif;"}}}))):o().createElement("img",{src:a?h:g,className:"banner-full",loading:"lazy","data-is-mobile":a,alt:""})),o().createElement(M.A,{color:"#fff",size:24,className:"close-icon","data-event-category":"Header Banner","data-event-action":"Close Click","data-vars-event-label":l,onClick:w})):null};var Q=a(93202);const J=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||"undefined"===typeof e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},X=e=>e?{answer:null===e||void 0===e?void 0:e.answer.map(te),expert:null===e||void 0===e?void 0:e.expert}:{},ee=e=>{var t,a,n,i,o,l,r,s,c,d,m,p,u,g,h,v,f,y,b,E,x;return e?{id:e.id,topics:(null===(t=e.topics)||void 0===t?void 0:t.map((t=>{var a,n,i,o;return{id:t.id||0,name:t.name||"",slug:t.slug||"",url:"/"+(null===(a=e.community)||void 0===a?void 0:a.slug)+"/"+t.slug,communityId:String(null===(n=e.community)||void 0===n?void 0:n.id),communitySlug:(null===(i=e.community)||void 0===i?void 0:i.slug)||"",communityName:(null===(o=e.community)||void 0===o?void 0:o.name)||"",isHidden:Boolean(t.is_hidden),isActive:!0}})))||[],community:{id:(null===(a=e.community)||void 0===a?void 0:a.id)||0,name:(null===(n=e.community)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.community)||void 0===i?void 0:i.slug)||"",isActive:!0,isHidden:Boolean(null===(o=e.community)||void 0===o?void 0:o.is_hidden)},slug:e.slug||"",author:{id:(null===(l=e.user)||void 0===l?void 0:l.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",name:(null===(c=e.user)||void 0===c?void 0:c.name)||"",avatar:(null===(d=e.user)||void 0===d?void 0:d.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(u=null===(p=e.user)||void 0===p?void 0:p.role)||void 0===u?void 0:u.toLowerCase():"",type:(null===(g=e.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(h=e.user)||void 0===h?void 0:h.partner_id)?String(null===(v=e.user)||void 0===v?void 0:v.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(y=e.user)||void 0===y?void 0:y.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(E=e.user)||void 0===E?void 0:E.hospital_id)?String(null===(x=e.user)||void 0===x?void 0:x.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:X(null===e||void 0===e?void 0:e.expert_answer),createdTime:e.created_time||"",isMinigame:"mini_game"===e.event_type,eventStart:e.event_start,eventEnd:e.event_end,isSensitive:(null===e||void 0===e?void 0:e.is_sensitive)||0}:{}},te=e=>{var t,a,n,i,o,l,r,s,c,d,m,p,u,g,h,v,f,y,b,E,x,w,C,k,_,M,A,$,T,N,L,S;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(te):[],author:{id:(null===(t=e.user)||void 0===t?void 0:t.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",name:(null===(n=e.user)||void 0===n?void 0:n.name)||"",role:(null===(i=e.user)||void 0===i?void 0:i.role)?null===(l=null===(o=e.user)||void 0===o?void 0:o.role)||void 0===l?void 0:l.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(s=e.user)||void 0===s?void 0:s.type)||"",email:(null===(c=e.user)||void 0===c?void 0:c.email)||"",partnerId:(null===(d=e.user)||void 0===d?void 0:d.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(p=e.user)||void 0===p?void 0:p.title)||"",doctorId:(null===(u=e.user)||void 0===u?void 0:u.doctor_id)?String(null===(g=e.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(v=e.user)||void 0===v?void 0:v.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(f=e.mentioned)||void 0===f?void 0:f.id)||0,username:(null===(y=e.mentioned)||void 0===y?void 0:y.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(E=e.mentioned)||void 0===E?void 0:E.role)?null===(w=null===(x=e.mentioned)||void 0===x?void 0:x.role)||void 0===w?void 0:w.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(k=e.mentioned)||void 0===k?void 0:k.type)||"",email:(null===(_=e.mentioned)||void 0===_?void 0:_.email)||"",partnerId:(null===(M=e.mentioned)||void 0===M?void 0:M.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===($=e.mentioned)||void 0===$?void 0:$.doctor_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.doctor_id):"",hospitalId:(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id)?String(null===(L=e.mentioned)||void 0===L?void 0:L.hospital_id):"",title:(null===(S=e.mentioned)||void 0===S?void 0:S.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}};var ae=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{size:t=15,width:a=16,height:n=15}=e,i=ae(e,["size","width","height"]);return o().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:a||t,height:n||t,viewBox:"0 0 16 15"},i),o().createElement("g",{filter:"url(#filter0_dd_1935_42974)"},o().createElement("g",{filter:"url(#filter1_iii_1935_42974)"},o().createElement("path",{d:"M7.12068 2.00468C7.12068 1.91737 7.11455 1.82393 7.10842 1.73432C7.08622 1.12362 6.48538 0.663415 5.89984 0.688873C5.20975 0.729335 5.0613 1.69561 5.6517 1.98553C5.7413 2.03302 5.76658 2.07438 5.75739 2.15786C5.75739 3.76885 5.75739 5.6094 5.75739 7.20585C5.76122 7.26942 5.7413 7.30159 5.68003 7.32763C5.0491 7.60239 5.20568 8.60421 5.91286 8.63195C6.49619 8.66111 7.07338 8.1784 7.10842 7.58803C7.11532 7.49689 7.12068 7.40805 7.12068 7.31614C7.12068 5.54578 7.13438 3.775 7.12068 2.00468Z",fill:"white"}),o().createElement("path",{d:"M4.02804 7.34455C3.91928 7.29707 3.88405 7.23656 3.89554 7.11248V2.11657C3.90499 2.00317 3.99905 2.00853 4.07246 1.9519C4.61592 1.59515 4.3849 0.702926 3.72627 0.688181H3.7033C3.04437 0.688181 2.53148 1.23412 2.53148 1.88221C2.53148 3.27445 2.52998 4.66669 2.53455 6.05892C2.53608 6.52473 2.53761 6.98979 2.53761 7.45484C2.53761 8.07413 3.06525 8.62972 3.68875 8.62972C4.3681 8.62972 4.67694 7.65171 4.02804 7.34455Z",fill:"white"}),o().createElement("path",{d:"M11.3271 5.85629C11.3271 6.20061 11.048 6.47973 10.7037 6.47973C10.3594 6.47973 10.0803 6.20061 10.0803 5.85629C10.0803 5.51198 10.3594 5.23286 10.7037 5.23286C11.048 5.23286 11.3271 5.51198 11.3271 5.85629Z",fill:"white"}),o().createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92657 5.82117C7.92657 7.15854 8.85234 8.281 10.0886 8.56396C10.0001 10.1471 8.04007 10.2211 6.86951 10.0342C6.59915 9.98982 6.35789 9.914 6.15264 9.80907C5.87002 9.66279 5.66323 9.43302 5.53916 9.12819C5.48193 8.98672 5.44596 8.83614 5.38138 8.69776C5.26573 8.4274 4.98159 8.28188 4.70663 8.35158C4.42172 8.42204 4.23178 8.67019 4.2448 8.9551C4.26217 9.37 4.43712 9.78198 4.68442 10.1108C4.94559 10.4647 5.29177 10.7358 5.74288 10.938C6.37935 11.2276 7.07939 11.3125 7.7725 11.3125C8.54709 11.3125 9.36425 11.1805 10.0395 10.7825C10.6826 10.4023 11.2904 9.90524 11.3028 8.56586C12.5432 8.28605 13.4732 7.16155 13.4732 5.82117C13.4732 4.27101 12.2294 3.00959 10.6999 3.00959C9.17038 3.00959 7.92657 4.27101 7.92657 5.82117ZM12.2018 5.82117C12.2018 6.66212 11.5278 7.34607 10.6999 7.34607C9.87117 7.34607 9.19795 6.66212 9.19795 5.82117C9.19795 4.98022 9.87194 4.29628 10.6999 4.29628C11.5286 4.29705 12.2018 4.98099 12.2018 5.82117Z",fill:"white"})),o().createElement("mask",{id:"mask0_1935_42974",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"12",height:"12"},o().createElement("path",{d:"M7.12068 2.00468C7.12068 1.91737 7.11455 1.82393 7.10842 1.73432C7.08622 1.12362 6.48538 0.663415 5.89984 0.688873C5.20975 0.729335 5.0613 1.69561 5.6517 1.98553C5.7413 2.03302 5.76658 2.07438 5.75739 2.15786C5.75739 3.76885 5.75739 5.6094 5.75739 7.20585C5.76122 7.26942 5.7413 7.30159 5.68003 7.32763C5.0491 7.60239 5.20568 8.60421 5.91286 8.63195C6.49619 8.66111 7.07338 8.1784 7.10842 7.58803C7.11532 7.49689 7.12068 7.40805 7.12068 7.31614C7.12068 5.54578 7.13438 3.775 7.12068 2.00468Z",fill:"white"}),o().createElement("path",{d:"M4.02804 7.34455C3.91928 7.29707 3.88405 7.23656 3.89554 7.11248V2.11657C3.90499 2.00317 3.99905 2.00853 4.07246 1.9519C4.61592 1.59515 4.3849 0.702926 3.72627 0.688181H3.7033C3.04437 0.688181 2.53148 1.23412 2.53148 1.88221C2.53148 3.27445 2.52998 4.66669 2.53455 6.05892C2.53608 6.52473 2.53761 6.98979 2.53761 7.45484C2.53761 8.07413 3.06525 8.62972 3.68875 8.62972C4.3681 8.62972 4.67694 7.65171 4.02804 7.34455Z",fill:"white"}),o().createElement("path",{d:"M11.3271 5.85629C11.3271 6.20061 11.048 6.47973 10.7037 6.47973C10.3594 6.47973 10.0803 6.20061 10.0803 5.85629C10.0803 5.51198 10.3594 5.23286 10.7037 5.23286C11.048 5.23286 11.3271 5.51198 11.3271 5.85629Z",fill:"white"}),o().createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92657 5.82117C7.92657 7.15854 8.85234 8.281 10.0886 8.56396C10.0001 10.1471 8.04007 10.2211 6.86951 10.0342C6.59915 9.98982 6.35789 9.914 6.15264 9.80907C5.87002 9.66279 5.66323 9.43302 5.53916 9.12819C5.48193 8.98672 5.44596 8.83614 5.38138 8.69776C5.26573 8.4274 4.98159 8.28188 4.70663 8.35158C4.42172 8.42204 4.23178 8.67019 4.2448 8.9551C4.26217 9.37 4.43712 9.78198 4.68442 10.1108C4.94559 10.4647 5.29177 10.7358 5.74288 10.938C6.37935 11.2276 7.07939 11.3125 7.7725 11.3125C8.54709 11.3125 9.36425 11.1805 10.0395 10.7825C10.6826 10.4023 11.2904 9.90524 11.3028 8.56586C12.5432 8.28605 13.4732 7.16155 13.4732 5.82117C13.4732 4.27101 12.2294 3.00959 10.6999 3.00959C9.17038 3.00959 7.92657 4.27101 7.92657 5.82117ZM12.2018 5.82117C12.2018 6.66212 11.5278 7.34607 10.6999 7.34607C9.87117 7.34607 9.19795 6.66212 9.19795 5.82117C9.19795 4.98022 9.87194 4.29628 10.6999 4.29628C11.5286 4.29705 12.2018 4.98099 12.2018 5.82117Z",fill:"white"})),o().createElement("g",{mask:"url(#mask0_1935_42974)"},o().createElement("g",{filter:"url(#filter2_f_1935_42974)"},o().createElement("path",{d:"M3.61232 8.43666C3.72105 8.61198 4.17739 9.16729 4.06051 9.23977C3.94363 9.31226 3.42138 9.07376 3.18906 8.69916C3.08033 8.52384 3.08694 8.32295 3.20382 8.25047C3.3207 8.17798 3.50359 8.26134 3.61232 8.43666Z",fill:"white"})),o().createElement("g",{filter:"url(#filter3_f_1935_42974)"},o().createElement("ellipse",{cx:"3.63046",cy:"1.59449",rx:"0.249023",ry:"0.373535",transform:"rotate(30 3.63046 1.59449)",fill:"white"})),o().createElement("g",{filter:"url(#filter4_f_1935_42974)"},o().createElement("rect",{x:"3.0625",y:"2.05957",width:"0.166016",height:"6.3916",fill:"white"})),o().createElement("g",{filter:"url(#filter5_f_1935_42974)"},o().createElement("rect",{x:"6.38281",y:"2.05957",width:"0.166016",height:"6.3916",fill:"white"})),o().createElement("g",{filter:"url(#filter6_f_1935_42974)"},o().createElement("path",{d:"M6.56083 8.63727C6.41976 8.836 6.08056 9.02885 5.96841 8.94924C5.85627 8.86963 6.01364 8.5477 6.15471 8.34897C6.29579 8.15024 6.50107 8.05367 6.61322 8.13329C6.72536 8.2129 6.70191 8.43854 6.56083 8.63727Z",fill:"white"})),o().createElement("g",{filter:"url(#filter7_f_1935_42974)"},o().createElement("ellipse",{cx:"6.20712",cy:"1.7605",rx:"0.249023",ry:"0.373535",transform:"rotate(-30 6.20712 1.7605)",fill:"white"})))),o().createElement("defs",null,o().createElement("filter",{id:"filter0_dd_1935_42974",x:"0.539062",y:"0.189819",width:"14.9258",height:"14.609",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:"0.332031"}),o().createElement("feGaussianBlur",{stdDeviation:"0.332031"}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1935_42974"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:"1.49414"}),o().createElement("feGaussianBlur",{stdDeviation:"0.996094"}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_1935_42974",result:"effect2_dropShadow_1935_42974"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1935_42974",result:"shape"})),o().createElement("filter",{id:"filter1_iii_1935_42974",x:"2.19922",y:"-0.142212",width:"11.4395",height:"11.4547",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dx:"-0.332031",dy:"-0.830078"}),o().createElement("feGaussianBlur",{stdDeviation:"0.830078"}),o().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0582292 0 0 0 0 0.132925 0 0 0 0 0.325 0 0 0 0.25 0"}),o().createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_1935_42974"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dx:"0.166016",dy:"-0.332031"}),o().createElement("feGaussianBlur",{stdDeviation:"0.166016"}),o().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_1935_42974",result:"effect2_innerShadow_1935_42974"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dx:"-0.166016",dy:"-0.830078"}),o().createElement("feGaussianBlur",{stdDeviation:"0.415039"}),o().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.766667 0 0 0 0 0.888 0 0 0 0 1 0 0 0 1 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_1935_42974",result:"effect3_innerShadow_1935_42974"})),o().createElement("filter",{id:"filter2_f_1935_42974",x:"2.68844",y:"7.79953",width:"1.81452",height:"1.878",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),o().createElement("filter",{id:"filter3_f_1935_42974",x:"2.91891",y:"0.822964",width:"1.41999",height:"1.54304",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),o().createElement("filter",{id:"filter4_f_1935_42974",x:"2.63766",y:"1.63473",width:"1.01765",height:"7.24128",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),o().createElement("filter",{id:"filter5_f_1935_42974",x:"5.95797",y:"1.63473",width:"1.01765",height:"7.24128",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),o().createElement("filter",{id:"filter6_f_1935_42974",x:"5.50485",y:"7.68051",width:"1.60358",height:"1.71198",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),o().createElement("filter",{id:"filter7_f_1935_42974",x:"5.49704",y:"0.988979",width:"1.41999",height:"1.54304",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},o().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"}))))},ie=a(41303),oe=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{size:t=24,color:a=ie.fT,isActive:n,activeColor:i=ie.NP,isSolid:l}=e,r=oe(e,["size","color","isActive","activeColor","isSolid"]);const s=n?i:a;return o().createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",width:t,height:t},r),o().createElement("path",{d:l?"M12 11.6923C11.0346 11.6923 10.21 11.3503 9.52598 10.6664C8.84201 9.98239 8.50003 9.15773 8.50003 8.19236C8.50003 7.22698 8.84201 6.4023 9.52598 5.71833C10.21 5.03437 11.0346 4.69238 12 4.69238C12.9654 4.69238 13.79 5.03437 14.474 5.71833C15.158 6.4023 15.5 7.22698 15.5 8.19236C15.5 9.15773 15.158 9.98239 14.474 10.6664C13.79 11.3503 12.9654 11.6923 12 11.6923ZM6.01923 19.3077C5.59745 19.3077 5.23881 19.1599 4.94331 18.8644C4.64779 18.5689 4.50003 18.2103 4.50003 17.7885V17.0846C4.50003 16.5949 4.63305 16.1414 4.89908 15.7241C5.1651 15.3068 5.52054 14.986 5.96541 14.7616C6.95387 14.277 7.95099 13.9135 8.95676 13.6712C9.96252 13.4289 10.9769 13.3078 12 13.3078C13.0231 13.3078 14.0375 13.4289 15.0433 13.6712C16.049 13.9135 17.0461 14.277 18.0346 14.7616C18.4795 14.986 18.8349 15.3068 19.1009 15.7241C19.367 16.1414 19.5 16.5949 19.5 17.0846V17.7885C19.5 18.2103 19.3522 18.5689 19.0567 18.8644C18.7612 19.1599 18.4026 19.3077 17.9808 19.3077H6.01923Z":"M12 11.6923C11.0375 11.6923 10.2136 11.3496 9.52816 10.6642C8.84274 9.97879 8.50003 9.15484 8.50003 8.19236C8.50003 7.22986 8.84274 6.40591 9.52816 5.72051C10.2136 5.03509 11.0375 4.69238 12 4.69238C12.9625 4.69238 13.7864 5.03509 14.4719 5.72051C15.1573 6.40591 15.5 7.22986 15.5 8.19236C15.5 9.15484 15.1573 9.97879 14.4719 10.6642C13.7864 11.3496 12.9625 11.6923 12 11.6923ZM17.9808 19.3077H6.01923C5.59745 19.3077 5.23881 19.1599 4.94331 18.8644C4.64779 18.5689 4.50003 18.2103 4.50003 17.7885V17.0846C4.50003 16.5949 4.63305 16.1414 4.89908 15.7241C5.1651 15.3068 5.52054 14.986 5.96541 14.7616C6.95387 14.277 7.95099 13.9135 8.95676 13.6712C9.96252 13.4289 10.9769 13.3078 12 13.3078C13.0231 13.3078 14.0375 13.4289 15.0433 13.6712C16.049 13.9135 17.0461 14.277 18.0346 14.7616C18.4795 14.986 18.8349 15.3068 19.1009 15.7241C19.367 16.1414 19.5 16.5949 19.5 17.0846V17.7885C19.5 18.2103 19.3522 18.5689 19.0567 18.8644C18.7612 19.1599 18.4026 19.3077 17.9808 19.3077ZM6.00001 17.8077H18V17.0846C18 16.8821 17.9413 16.6946 17.824 16.5221C17.7067 16.3497 17.5474 16.209 17.3462 16.1C16.4846 15.6757 15.6061 15.3542 14.7107 15.1356C13.8153 14.917 12.9117 14.8077 12 14.8077C11.0883 14.8077 10.1847 14.917 9.28931 15.1356C8.39387 15.3542 7.51539 15.6757 6.65386 16.1C6.45257 16.209 6.29328 16.3497 6.17598 16.5221C6.05866 16.6946 6.00001 16.8821 6.00001 17.0846V17.8077ZM12 10.1924C12.55 10.1924 13.0208 9.99653 13.4125 9.60486C13.8042 9.21319 14 8.74236 14 8.19236C14 7.64236 13.8042 7.17153 13.4125 6.77986C13.0208 6.38819 12.55 6.19236 12 6.19236C11.45 6.19236 10.9792 6.38819 10.5875 6.77986C10.1958 7.17153 10 7.64236 10 8.19236C10 8.74236 10.1958 9.21319 10.5875 9.60486C10.9792 9.99653 11.45 10.1924 12 10.1924Z",fill:s}))},re=a(55361),se=a(93935),ce=a(47788),de=a(52056),me=a.n(de),pe=a(69441),ue=a(20697),ge=a(17437),he=a(74353),ve=a.n(he);const fe=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"})),ye=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"}),o().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"})),be=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().createElement("rect",{x:"8.333",y:"8.333",width:"3.333",height:"3.333",rx:"1.667",fill:"#2D87F3"})),Ee=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"})),xe=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"})),we=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"}),o().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"})),Ce=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"})),ke=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"})),_e=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"})),Me=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),o().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"}),o().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"}),o().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"})),Ae=e=>o().createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("path",{d:"M1.11848 19.1667C1.19427 19.1666 1.26693 19.1365 1.32049 19.0829L4.30733 16.0962C4.36096 16.0426 4.3911 15.9699 4.39111 15.8941C4.39113 15.8183 4.36103 15.7455 4.30743 15.6919C4.25383 15.6383 4.18112 15.6081 4.1053 15.6081C4.02948 15.6081 3.95675 15.6382 3.90313 15.6918L0.916285 18.6787C0.876281 18.7186 0.849035 18.7696 0.837994 18.825C0.826954 18.8805 0.832614 18.938 0.854261 18.9903C0.875908 19.0425 0.912567 19.0872 0.9596 19.1186C1.00663 19.15 1.06193 19.1667 1.11848 19.1667Z",fill:"#626D7C"}),o().createElement("path",{d:"M7.71853 15.4925H7.72043L15.3384 7.87534L12.1272 4.66228L4.45021 12.3366C5.39488 13.2971 7.71853 15.4925 7.71853 15.4925Z",fill:"#2D87F3"}),o().createElement("path",{d:"M3.18097 14.9702L5.02953 16.8187C5.19838 16.9989 5.43172 17.1049 5.67851 17.1135C5.9253 17.122 6.16544 17.0325 6.34638 16.8645L7.71851 15.4923L4.50736 12.2793L3.13524 13.6514C2.96661 13.8324 2.87671 14.073 2.88529 14.3203C2.89386 14.5675 3.00021 14.8013 3.18097 14.9702Z",fill:"#BCDEFF"}),o().createElement("path",{d:"M17.7683 3.58334L16.4183 2.2333L13.5601 5.09143L14.9102 6.44147L17.7683 3.58334Z",fill:"#2B62CD"}),o().createElement("path",{d:"M7.71889 15.7783C7.77545 15.7783 7.83074 15.7616 7.87778 15.7301C7.92481 15.6987 7.96147 15.6541 7.98312 15.6018C8.00476 15.5496 8.01042 15.4921 7.99938 15.4366C7.98834 15.3811 7.9611 15.3302 7.92109 15.2902L4.70861 12.0779C4.65452 12.0268 4.58261 11.9988 4.50818 11.9998C4.43375 12.0009 4.36267 12.0309 4.31005 12.0836C4.25742 12.1362 4.22741 12.2073 4.22639 12.2817C4.22538 12.3562 4.25343 12.4281 4.3046 12.4821L7.51689 15.6944C7.54337 15.721 7.57485 15.7421 7.60952 15.7565C7.64419 15.7709 7.68136 15.7783 7.71889 15.7783Z",fill:"#BCDEFF"}),o().createElement("path",{d:"M9.48781 11.3095C9.54746 11.3096 9.60653 11.2978 9.66161 11.2749C9.71669 11.252 9.76669 11.2184 9.80874 11.1761L9.83847 11.1462L9.86819 11.1758C9.95336 11.2609 10.0689 11.3088 10.1893 11.3088C10.3098 11.3088 10.4253 11.2609 10.5104 11.1758L10.8535 10.8327C10.8957 10.7905 10.9291 10.7404 10.952 10.6853C10.9748 10.6302 10.9866 10.5711 10.9866 10.5114C10.9866 10.4517 10.9748 10.3926 10.952 10.3375C10.9291 10.2824 10.8957 10.2323 10.8535 10.1901L10.8232 10.1625L10.8531 10.1326C10.9382 10.0474 10.9861 9.93182 10.9861 9.81135C10.9861 9.69087 10.9382 9.57533 10.8531 9.49014L10.51 9.14711C10.4679 9.10487 10.4179 9.07136 10.3628 9.0485C10.3077 9.02563 10.2486 9.01386 10.1889 9.01386C10.1293 9.01386 10.0702 9.02563 10.0151 9.0485C9.96 9.07136 9.90995 9.10487 9.86781 9.14711L9.83808 9.17664L9.80836 9.14692C9.72313 9.06179 9.6076 9.01397 9.48715 9.01397C9.36669 9.01397 9.25116 9.06179 9.16594 9.14692L8.8229 9.48995C8.73774 9.57511 8.6899 9.69062 8.6899 9.81106C8.6899 9.9315 8.73774 10.047 8.8229 10.1322L8.85282 10.1621L8.82329 10.1918C8.73826 10.2771 8.69052 10.3925 8.69052 10.5129C8.69052 10.6333 8.73826 10.7488 8.82329 10.8341L9.16632 11.1771C9.2085 11.2193 9.25863 11.2528 9.31381 11.2755C9.36899 11.2982 9.42813 11.3098 9.48781 11.3095Z",fill:"white"}),o().createElement("path",{d:"M12.6184 3.4438L16.5573 7.38277C16.8001 7.6255 16.8001 8.01905 16.5573 8.26178C16.3146 8.50451 15.921 8.50451 15.6783 8.26178L11.7393 4.32281C11.4966 4.08008 11.4966 3.68653 11.7393 3.4438C11.9821 3.20107 12.3756 3.20107 12.6184 3.4438Z",fill:"#BCDEFF"}),o().createElement("path",{d:"M16.4563 1.22324L18.7767 3.54364C18.9921 3.75907 18.9921 4.10834 18.7767 4.32376C18.5613 4.53918 18.212 4.53918 17.9966 4.32376L15.6762 2.00336C15.4608 1.78793 15.4608 1.43866 15.6762 1.22324C15.8916 1.00782 16.2409 1.00782 16.4563 1.22324Z",fill:"#BCDEFF"})),$e=r.A.div`
padding: 16px;
border-radius: 16px;
background-color: white;
hr {
border-color: ${s.w.colors.neutral100};
border-bottom-width: 0px;
border-style: solid;
}
.profile-nav-item-group {
background-color: white;
border-radius: 8px;
}
`,Te=r.A.div`
display: block;
border: 1px solid transparent;
transition: all 300ms linear;
cursor: pointer;
position: relative;
${e=>e.hasSubmenu&&ge.AH`
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: ${s.w.colors.neutral100};
}
}
.nav-menu-item {
background-color: ${s.w.colors.neutral50};
}
.nav-menu-item {
padding-left: 38px;
}
`,Ne=r.A.div`
display: flex;
align-items: center;
height: 48px;
border: 1px solid transparent;
transition: all 300ms;
border-radius: 8px;
&:hover {
background-color: ${s.w.colors.neutral150};
}
&[data-active='true'] {
background-color: ${s.w.colors.blue50};
}
`,Le=r.A.div`
margin-left: auto;
svg {
fill: ${s.w.colors.gray600};
transition: transform 300ms;
}
&[data-is-open='true'] svg {
transform: rotate(180deg);
}
`,Se=r.A.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;
}
`,Be={helloSites:{member:()=>d.C.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>d.C.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>d.C.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>d.C.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>d.C.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>d.C.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>d.C.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>d.C.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>d.C.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>d.C.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Oe=({rank:e,siteType:t="helloSites"})=>{const a=(0,i.useMemo)((()=>{var a,n;return(null===(n=null===(a=Be[t])||void 0===a?void 0:a[e])||void 0===n?void 0:n.call(a))||""}),[e,t]),{t:n}=(0,x.u)();return o().createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?s.w.colors.blue100:s.w.colors.mb100}`}},o().createElement("img",{src:a,alt:e,style:{height:16,width:16}}),o().createElement(c.T,{size:"s5",color:"gray.8",weight:"semiBold"},n(`userProfile.userRank.${e}`)))},Ie=({siteType:e="helloSites",userInfo:t})=>(null===t||void 0===t?void 0:t.id)?o().createElement(o().Fragment,null,o().createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},o().createElement(l.A,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),o().createElement(Oe,{rank:"member",siteType:e})),o().createElement(c.T,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),o().createElement(c.T,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),o().createElement("hr",null)):null,De=({className:e,activeItem:t,navMenuItems:a,style:n,onLogout:l,siteType:r="helloSites",userInfo:s,onNavigate:c,configs:d={}})=>{const{enableProfileFindMyBooking:p=!1}=d,{locale:u}=(0,x.u)(),[g,h]=(0,i.useState)(),v="string"===typeof t?t:g,f=(0,Q.n)((0,Q.a)(u,"marryBaby"===r)+"/"),y=(0,Q.n)((0,Q.g)(u,"marryBaby"===r)+"/"),b=a||[[{key:"userProfile.nav.header.viewProfile",icon:o().createElement(Me,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${f}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:o().createElement(Ce,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${f}user/health/`},{key:"userProfile.nav.card.mySaved",icon:o().createElement(ke,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${f}user/saved/`},!!p&&{key:"navigation.find_my_booking",icon:o().createElement(Ae,{width:"24",height:"24"}),value:"find_my_booking",tracking:{action:"Find My Booking"},link:`${y}care/find-my-booking`},{key:"userProfile.nav.card.myBooking",icon:o().createElement(fe,{width:"24",height:"24"}),value:"booking",disabled:!m.C.includes(u),tracking:{action:"Manage Booking Click"},link:`${f}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:o().createElement(ye,{width:"24",height:"24"}),value:"myCommunities",disabled:!m.c.includes(u),tracking:{action:"Community Click"},link:`${f}user/my-communities/`}],...m.E.includes(u)?[[{key:"userProfile.nav.card.eCom",icon:o().createElement(Ee,{width:"24",height:"24"}),value:"eCom",disabled:!m.E.includes(u),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:o().createElement(be,{width:"24",height:"24"}),link:`${y}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:o().createElement(be,{width:"24",height:"24"}),link:`${y}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:o().createElement(be,{width:"24",height:"24"}),link:`${y}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:o().createElement(_e,{width:"24",height:"24"}),subMenu:[{key:"userProfile.nav.menu.password",value:"password",icon:o().createElement(be,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${f}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:o().createElement(be,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${f}user/disable-account/`},...m.D.includes(u)?[{key:"userProfile.nav.menu.dataPrivacy",value:"data-privacy",icon:o().createElement(be,{width:"24",height:"24"}),tracking:{action:"Data Privacy Click"},link:`${f}user/data-privacy/`}]:[]]}],[{key:"userProfile.nav.menu.help",icon:o().createElement(xe,{width:"24",height:"24"}),value:"help",link:`${f}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:o().createElement(we,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return o().createElement($e,{className:e,style:n},o().createElement(Ie,{userInfo:s,siteType:r}),b.map(((e,t)=>o().createElement(i.Fragment,{key:t},o().createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>e?o().createElement(Pe,{key:e.key,item:e,activeKey:v||"",onLogout:l,onClick:()=>h((t=>t===e.key?void 0:e.key)),siteType:r,onNavigate:c}):null))),t!==b.length-1&&o().createElement("hr",null)))))},Pe=({item:e,activeKey:t,forceOpen:a,onLogout:n,onClick:l,siteType:r="helloSites",onNavigate:s})=>{var d,m;const[p,u]=(0,i.useState)(!1),g=(0,i.useMemo)((()=>"undefined"!==typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:h}=(0,x.u)(),v=null===(d=e.subMenu)||void 0===d?void 0:d.some((e=>e.key===t)),f=t===e.key;(0,i.useEffect)((()=>{(v||f)&&u(!0)}),[v,f]);const y="boolean"===typeof a?a:p;return o().createElement(Te,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null===l||void 0===l||l(),e.subMenu&&!a?u((e=>!e)):"logout"===e.value?null===n||void 0===n||n():e.link&&(s?s(e.link):window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(m=null===e||void 0===e?void 0:e.tracking)||void 0===m?void 0:m.action)||"","data-event-label":g},o().createElement(Ne,{"data-active":f},e.icon,o().createElement(c.T,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:f?"helloSites"===r?"hb.6":"mb.6":"gray.8"},h(e.key)),e.subMenu&&o().createElement(Le,{"data-is-open":y},o().createElement(ue.C,{width:14}))),e.subMenu&&o().createElement(Se,null,e.subMenu.map((e=>o().createElement(Pe,{key:e.key,item:e,activeKey:t,onLogout:n,siteType:r})))))};var Fe=a(9794),ze=a(50126),Re=a(69931);const je=r.A.div`
background-color: white;
text-align: center;
.cancle-img {
margin-top: 24px;
${$.M.mbDown} {
width: 80px;
height: 80px;
}
${$.M.mbUp} {
width: 100px;
height: 100px;
}
}
h2 {
margin-top: 32px;
color: ${s.w.colors.gray800};
font-style: normal;
font-weight: bold;
${$.M.mbDown} {
font-size: 24px;
line-height: 32px;
}
${$.M.mbUp} {
font-size: 32px;
line-height: 42px;
}
}
p {
margin-top: 8px;
color: ${s.w.colors.gray600};
font-style: normal;
font-weight: normal;
${$.M.mbDown} {
font-size: 16px;
line-height: 24px;
}
${$.M.mbUp} {
font-size: 16px;
line-height: 24px;
}
}
`,He=r.A.div`
display: flex;
${$.M.mbDown} {
margin-top: 24px;
}
${$.M.mbUp} {
margin-top: 32px;
}
justify-content: space-around;
button {
flex: 1;
margin: 4px;
}
${e=>"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""}
`,Ue=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:n="helloSites"})=>{const{t:l}=(0,x.u)();return(0,i.useEffect)((()=>{document.body.classList.toggle("noscroll",e)}),[e]),o().createElement(Fe.Z,null,o().createElement(Re.P,{type:"confirm",isOpen:e,closeIcon:o().createElement("img",{src:d.C.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},o().createElement(je,null,"helloSites"===n&&o().createElement("img",{src:d.C.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),o().createElement("h2",null,l("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),o().createElement("p",null,l("logout.popup.ask2")),o().createElement(He,{siteType:n},o().createElement(ze.B,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},l("logout.popup.button.logout")),o().createElement(ze.B,{className:"cancel-button",color:"primary",size:"lg",onClick:t},l("logout.popup.button.cancel"))))))},Ve=e=>i.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),i.createElement("path",{d:"M15.4999 14.3797C16.9062 14.3797 18.0462 13.2397 18.0462 11.8334C18.0462 10.4271 16.9062 9.28711 15.4999 9.28711C14.0936 9.28711 12.9536 10.4271 12.9536 11.8334C12.9536 13.2397 14.0936 14.3797 15.4999 14.3797Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19.9092 22.0335C20.7055 21.7825 21.124 20.9029 20.786 20.1399C19.8879 18.1112 17.861 16.6946 15.4999 16.6946C13.1388 16.6946 11.112 18.1112 10.2138 20.1399C9.87585 20.9038 10.2944 21.7825 11.0907 22.0335C12.2249 22.3909 13.7258 22.7131 15.4999 22.7131C17.274 22.7131 18.7749 22.3909 19.9092 22.0335Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),Ge=e=>i.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M9.99991 8.3797C11.4062 8.3797 12.5462 7.23969 12.5462 5.83341C12.5462 4.42712 11.4062 3.28711 9.99991 3.28711C8.59363 3.28711 7.45361 4.42712 7.45361 5.83341C7.45361 7.23969 8.59363 8.3797 9.99991 8.3797Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.4092 16.0335C15.2055 15.7825 15.624 14.9029 15.286 14.1399C14.3879 12.1112 12.361 10.6946 9.99992 10.6946C7.63881 10.6946 5.61196 12.1112 4.71381 14.1399C4.37585 14.9038 4.79436 15.7825 5.59066 16.0335C6.72492 16.3909 8.22584 16.7131 9.99992 16.7131C11.774 16.7131 13.2749 16.3909 14.4092 16.0335Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),Ze=o().createContext({}),We=e=>{var{children:t}=e,a=(0,n._)(e,["children"]);const[l,r]=o().useState((()=>a.currentUrl||`https://${"marryBaby"===a.siteType?pe.d[a.locale||"en-PH"]:_.y[a.locale||"en-PH"]}${"together"===a.projectType?"/community":"ecom"===a.projectType?"/ecom":"care"===a.projectType?"/care":""}/`));(0,i.useEffect)((()=>{const e=()=>{r(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const s=(({locale:e,projectType:t,siteType:a,enableBookingBtn:n})=>(0,i.useMemo)((()=>{const i="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===a,o="marryBaby"!==a&&"marryBaby"!==t&&m.C.includes(e),l=n&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==a&&m.d.includes(e),r="marryBaby"===t||m.c.includes(e),s="marryBaby"!==a&&m.E.includes(e),c="marryBaby"!==a&&m.E.includes(e),d=m.V.includes(e),p=m.H.includes(e);let u=(0,Q.g)(e,"marryBaby"===a);"undefined"!==typeof window&&(u.includes("//id.")&&(u=u.replace("id.","")),u.includes("//staging-id.")&&(u=u.replace("staging-id.","discover.")));return{enableSearchBar:i,enableNavCare:o,enableNavCareBooking:l,enableNavTogether:r,enableNavEcom:s,enableProfileEcom:c,enableNavVideo:d,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:u,CARE_URL_FE:`${u}/care`,TOGETHER_URL_FE:`${u}/community`,VIDEO_URL_FE:`${u}/videos`,SSO_URL:(0,Q.a)(e,"marryBaby"===a),TOGETHER_API:(0,Q.b)(),DISCOVER_API:(0,Q.c)(e)},enableNavClinityDownload:p}}),[]))({locale:a.locale,projectType:a.projectType,siteType:a.siteType,enableBookingBtn:a.enableBookingBtn});return o().createElement(Ze.Provider,{value:Object.assign(Object.assign({},a),{customClasses:a.customClasses||{},configs:Object.assign(Object.assign({},s),a.configs),currentUrl:a.currentUrl||l})},t)},qe=e=>{const{allowBgScroll:t}=e||{},a=(0,i.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())}}},Ye=(0,ce.s)(r.A.div`
position: absolute;
right: 0;
transition: all 0.5s ease-in-out;
overflow-y: auto;
&[data-open='true'] {
z-index: 200;
top: 120%;
opacity: 1;
visibility: visible;
}
&[data-open='false'] {
display: none;
}
.popup-content {
z-index: 111;
height: 100%;
border: 1px solid #0000001a;
border-radius: 16px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
/* min-height: 415px; */
${$.M.mbUp} {
width: 320px;
}
${$.M.mbDown} {
position: fixed;
left: 0;
width: 100%;
padding-bottom: 70px;
}
`,"hhgcomp-navprofilebutton-popup"),Ke=(0,ce.s)(r.A.div`
position: fixed;
z-index: 150;
top: var(--header-bottom, 56px);
left: 0;
width: 100%;
height: 100%;
align-items: center;
${$.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);
}
}
${$.M.mbDown} {
background: rgba(38, 38, 38, 0.3);
}
&[data-type='welcome'] {
top: 0;
}
&[data-open='false'] {
display: none;
}
`,"hhgcomp-navprofilebutton-popupwrapper"),Qe=r.A.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: ${s.w.colors.secondaryBase};
border-radius: 50%;
color: white;
font-size: 20px;
font-weight: bold;
}
`,Je=r.A.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;
}
${Ye.classSelector} {
z-index: 200;
top: 120%;
opacity: 1;
visibility: visible;
display: initial;
${$.M.mbDown} {
top: 100%;
}
}
${Ke.classSelector} {
display: initial;
}
}
`,Xe=r.A.a`
display: inline-flex;
.login-btn[data-color='tertiary'][data-size='md'] {
padding-left: 12px;
padding-right: 12px;
}
.mobile-only {
${$.M.mbUp} {
display: none;
}
}
.login-btn {
display: none;
${$.M.mbUp} {
display: block;
border: 1px solid ${s.w.colors.neutral100};
}
}
&[data-win-cash-back-theme='true'] {
.login-btn {
${$.M.mbUp} {
color: ${s.w.colors.white};
}
}
}
`,et=({isOpen:e,userInfo:t,closePopup:a,siteType:n="helloSites",dispatchLogout:l})=>{const{customClasses:r={},configs:{enableProfileFindMyBooking:s}}=(0,i.useContext)(Ze);return o().createElement(Ye,{className:r.profilePopup,"data-open":e},o().createElement("div",{className:me()("popup-content",r.profilePopupContent)},o().createElement(De,{siteType:n,onLogout:()=>{l&&(l(),a())},userInfo:t,configs:{enableProfileFindMyBooking:s}})))},tt=({userInfo:e,siteType:t,onLoginClick:a,currentUrl:r,isMinifyLogin:m,onLogout:p,style:u,isLoading:g,isMobile:h,className:v})=>{const{isWinCashBackTheme:f}=(0,i.useContext)(Ze),{t:y}=(0,x.u)(),[b,E]=(0,i.useState)(!1),w=(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.username),{containerRef:C,onContainerFocus:k,onContainerBlur:_,onButtonMouseDown:M,onClose:A}=qe(),$=(0,i.useMemo)((()=>h&&"helloSites"===t),[h]);return g?$?o().createElement(re.S,null):o().createElement(se.B,{size:"sm",color:"transparent",loading:!0}):(null===e||void 0===e?void 0:e.id)?o().createElement(o().Fragment,null,o().createElement(Je,{ref:C,style:u,tabIndex:0,onBlur:_,onFocus:()=>{var e;k();const t=null===(e=C.current)||void 0===e?void 0:e.querySelector("#navigation-v2 .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}},className:v},o().createElement("div",{onMouseDown:M},o().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},o().createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),o().createElement(l.A,{size:32,className:"user-avatar",src:null===e||void 0===e?void 0:e.avatar,color:"marryBaby"===t?s.w.mbColors.pink:s.w.colors.secondaryBase,placeholderText:w&&w.length?w[0].toUpperCase():"A"})),o().createElement(et,{dispatchLogout:()=>{A(),E(!0)},isOpen:!1,closePopup:A,siteType:t,userInfo:e})),o().createElement(Ue,{openLogoutPopup:b,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),E(!1)},siteType:t,onLogoutHandler:()=>(0,n.a)(void 0,void 0,void 0,(function*(){E(!1),document.body.classList.toggle("noscroll",!1),yield p()}))})):o().createElement(Xe,{style:Object.assign({textDecoration:"none"},u),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,"data-win-cash-back-theme":f,"data-site-type":t,onClick:a},m?o().createElement(Qe,null,o().createElement("img",{src:d.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):o().createElement(o().Fragment,null,"helloSites"===t&&($?f?o().createElement(Ve,{className:"mobile-only",style:{cursor:"pointer"}}):o().createElement("img",{className:"mobile-only",src:d.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):o().createElement(se.B,{className:"mobile-only",size:"sm",leftIcon:o().createElement(le,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},y("navigation.loginJoin"))),"marryBaby"===t&&o().createElement("div",{className:"mobile-only",style:{paddingLeft:16}},o().createElement(c.T,{size:"p3",color:s.w.mbColors.pink},y("navigation.loginJoin"))),"marryBaby"===t?o().createElement(se.B,{className:"login-btn",size:"md",leftIcon:o().createElement(le,{color:"currentColor",isSolid:!0,size:22})},y("navigation.loginJoin")):o().createElement(se.B,{className:"login-btn",size:"md",leftIcon:f?o().createElement(Ge,null):o().createElement(le,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626"},y("navigation.loginJoin"))))};var at=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{size:t=24,color:a=ie.fT,useCurrentColor:n,isActive:i,activeColor:l=ie.NP}=e,r=at(e,["size","color","useCurrentColor","isActive","activeColor"]);const s=n?"currentColor":i?l:a,c=Object.assign({width:t,height:t},r);return o().createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},c),o().createElement("path",{d:"M13.071 12 9.25 8.18a1.061 1.061 0 0 1 1.5-1.5l4.614 4.613a1 1 0 0 1 0 1.414l-4.614 4.614a1.061 1.061 0 0 1-1.5-1.5z",fill:s}))},it=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{size:t=15,color:a="#fff"}=e,n=it(e,["size","color"]);const i=Object.assign({width:t,height:t},n);return o().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},i),o().createElement("path",{d:"M6.40025 8.62258C6.46826 8.8266 6.66029 8.96462 6.87531 8.96462C7.09034 8.96462 7.28136 8.8266 7.35037 8.62258C7.61543 7.8274 8.23941 7.20343 9.03458 6.93837C9.23861 6.87036 9.37663 6.67933 9.37663 6.46431C9.37663 6.24928 9.23861 6.05826 9.03458 5.99025C8.23941 5.72519 7.61543 5.10121 7.35037 4.30604C7.21335 3.89799 6.53827 3.89799 6.40125 4.30604C6.13619 5.10121 5.51222 5.72519 4.71704 5.99025C4.51302 6.05826 4.375 6.24928 4.375 6.46431C4.375 6.67933 4.51302 6.87036 4.71704 6.93837C5.51196 7.20334 6.13585 7.82748 6.40025 8.62258Z",fill:"url(#paint0_linear_1645_53328)"}),o().createElement("path",{d:"M19.9028 11.803C17.0091 10.6589 14.7181 8.36794 13.574 5.47422C13.347 4.90215 12.4059 4.90215 12.1789 5.47422C11.0348 8.36794 8.74378 10.6589 5.85006 11.803C5.56402 11.916 5.375 12.1931 5.375 12.5001C5.375 12.8071 5.56302 13.0842 5.85006 13.1972C8.74378 14.3413 11.0348 16.6323 12.1789 19.526C12.2919 19.812 12.5689 20 12.8759 20C13.183 20 13.46 19.812 13.573 19.526C14.7171 16.6323 17.0081 14.3413 19.9018 13.1972C20.1879 13.0842 20.3769 12.8071 20.3769 12.5001C20.3769 12.1931 20.1899 11.916 19.9028 11.803Z",fill:"url(#paint1_linear_1645_53328)"}),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear_1645_53328",x1:"5.37533",y1:"6.85466",x2:"9.67227",y2:"6.30304",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{"stop-color":a}),o().createElement("stop",{offset:"1","stop-color":"#79E3DB"})),o().createElement("linearGradient",{id:"paint1_linear_1645_53328",x1:"8.37538",y1:"13.6442",x2:"21.2654",y2:"11.9966",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{"stop-color":a}),o().createElement("stop",{offset:"1","stop-color":"#79E3DB"}))))},lt=a(61249),rt=a(86566),st=a(94858),ct=a(40927),dt=a(7350),mt=a.n(dt),pt=a(6432),ut=a(65606);const gt="vi-VN",ht=(ut.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,{"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"});pt.K,pt.K;var vt;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(vt||(vt={}));const ft={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}};var yt=a(21171);const bt=e=>{var{styles:t,color:a=s.w.colors.red700}=e,i=(0,n._)(e,["styles","color"]);return o().createElement(lt.C,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:a},i))};var Et=a(20404),xt=a(44835),wt=(a(35616),a(87835)),Ct=a(6279),kt=a.n(Ct);const _t=r.A.div`
width: ${e=>e.size||40}px;
height: ${e=>e.size||40}px;
flex-shrink: 0;
cursor: pointer;
img {
border-radius: 50%;
}
.avatar {
width: 100%;
height: 100%;
object-fit: cover;
}
.avatar-default {
display: flex;
align-items: center;
justify-content: center;
background-color: ${s.w.colors.secondaryBase};
border-radius: 50%;
color: white;
font-size: 1em;
font-weight: bold;
line-height: 1;
}
&[data-is-marrybaby='true'] {
.avatar-default {
background-color: ${s.w.mbColors.pink};
}
}
`,Mt=e=>{var{className:t,isMarryBaby:a,style:l,avatar:r,username:s,size:c}=e,d=(0,n._)(e,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:m}}}=(0,i.useContext)(pe.T),p="boolean"===typeof a?a:m,[u,g]=(0,i.useState)(!1);return o().createElement(_t,Object.assign({"data-is-marrybaby":p,className:t,style:l,size:c},d),r&&!u?o().createElement("img",{loading:"lazy",src:r,className:"avatar",alt:"avatar",onError:()=>{u||g(!0)}}):o().createElement("div",{className:"avatar avatar-default"},s&&(null===s||void 0===s?void 0:s.length)>0?s[0].toUpperCase():"A"))};var At=a(50345),$t=a(38221),Tt=a.n($t);const Nt=e=>i.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M4 12H20",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 7H20",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 17H20",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Lt=e=>i.createElement("svg",Object.assign({width:"22",height:"28",viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M6.35278 10.7516C6.42759 10.976 6.63881 11.1279 6.87534 11.1279C7.11187 11.1279 7.322 10.976 7.39791 10.7516C7.68947 9.87691 8.37585 9.19053 9.25054 8.89896C9.47497 8.82415 9.62679 8.61403 9.62679 8.3775C9.62679 8.14097 9.47497 7.93084 9.25054 7.85603C8.37585 7.56446 7.68947 6.87809 7.39791 6.00339C7.24719 5.55453 6.5046 5.55453 6.35388 6.00339C6.06231 6.87809 5.37594 7.56446 4.50125 7.85603C4.27682 7.93084 4.125 8.14097 4.125 8.3775C4.125 8.61403 4.27682 8.82415 4.50125 8.89896C5.37565 9.19043 6.06193 9.87699 6.35278 10.7516Z",fill:"#2743AD"}),i.createElement("path",{d:"M20.1723 14.3286L18.5342 13.6789C16.821 12.9995 15.4655 11.6411 14.7897 9.92641L14.1396 8.27697C13.9232 7.72994 13.0262 7.72994 12.8097 8.27697L12.1597 9.92641C11.4839 11.6411 10.1284 12.9995 8.41517 13.6789L6.77705 14.3286C6.5044 14.4367 6.32422 14.7016 6.32422 14.9952C6.32422 15.2888 6.50345 15.5537 6.77705 15.6618L8.41517 16.3115C10.1284 16.991 11.4839 18.3494 12.1597 20.064L12.8097 21.7135C12.9175 21.987 13.1815 22.1668 13.4742 22.1668C13.7669 22.1668 14.031 21.987 14.1387 21.7135L14.7888 20.064C15.4646 18.3494 16.8201 16.991 18.5333 16.3115L20.1714 15.6618C20.444 15.5537 20.6242 15.2888 20.6242 14.9952C20.6242 14.7016 20.4459 14.4367 20.1723 14.3286Z",fill:"#2743AD"})),St=(0,r.A)(l.I)`
.mantine-Input-input {
border-radius: 40px;
background: ${s.w.colors.white};
border: 1px solid ${s.w.colors.blue200};
&:focus {
border: 1px solid ${s.w.colors.primaryBase};
}
}
.close-icon-wrapper {
display: flex;
background-color: ${s.w.colors.gray400};
border-radius: 100%;
cursor: pointer;
svg {
pointer-events: none;
}
}
.search-icon-btn {
display: flex;
justify-content: center;
align-items: center;
}
`,Bt="hhg_search_history",Ot=({id:e,isMobile:t=!1,isHomepage:a=!1,projectType:n,isRedirectSearchPage:l=!1})=>{const{locale:r,siteType:c,isWinCashBackTheme:d}=(0,i.useContext)(Ze),[p,u]=(0,i.useState)(""),[g,h]=(0,i.useState)("Search From Another Page"),{t:v}=(0,x.u)(),f=(0,i.useCallback)(((e="")=>{let t="";"together"===n&&(t="community"),"discover"===n&&(t=window.location.pathname.startsWith("/health-tools/")?"health-tools":n),localStorage.setItem(Bt,window.location.href);const a=new URLSearchParams(window.location.search);a.set("source",t),a.set("s",e),a.delete("page"),window.location.href=`/search/?${a.toString()}`}),[n]),y=(0,i.useCallback)((()=>{const e=localStorage.getItem(Bt);e?(localStorage.removeItem(Bt),window.location.href=e):f("")}),[f]);return(0,i.useEffect)((()=>{if("undefined"!==typeof window){const e=new URL(window.location.href),t=new URLSearchParams(e.search).get("s");"discover"===n&&window.location.pathname.startsWith("/search/")&&h("Search Page"),u(t)}}),[]),t&&!a?o().createElement(se.B,{variant:"tertiary",style:{padding:"6px"},size:"sm",onClick:y},o().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{verticalAlign:"bottom"}},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.3097 9.06111C3.3097 5.88483 5.88458 3.30994 9.06087 3.30994C12.2372 3.30994 14.812 5.88483 14.812 9.06111C14.812 12.2374 12.2372 14.8123 9.06087 14.8123C5.88458 14.8123 3.3097 12.2374 3.3097 9.06111ZM9.06087 1.66675C4.97707 1.66675 1.6665 4.97732 1.6665 9.06111C1.6665 13.1449 4.97707 16.4555 9.06087 16.4555C10.8067 16.4555 12.4112 15.8505 13.6761 14.8387L16.9305 18.0931C17.2514 18.4139 17.7716 18.4139 18.0924 18.0931C18.4133 17.7722 18.4133 17.252 18.0924 16.9312L14.8381 13.6768C15.8501 12.4118 16.4552 10.8071 16.4552 9.06111C16.4552 4.97732 13.1447 1.66675 9.06087 1.66675Z",fill:"#8C8C8C"}))):o().createElement(St,{className:"fake-search-input",name:"search-input-menu-service"+e,size:"md","data-event-category":g,"data-event-action":"Search","data-event-label":p,placeholder:"marryBaby"===c?v("navigation.search.input.placeholder"):v("home.search",{site:m.L[r||"en-PH"]?m.L[r||"en-PH"].SITE_NAME:""}),onChange:u,value:p,onKeyDown:e=>"Enter"===e.key&&f(e.target.value),type:"search",onFocus:e=>{e.preventDefault(),(t&&a||l)&&f("")},rightSection:p?o().createElement("div",{className:"close-icon-wrapper",onClick:()=>u(""),"data-event-category":"Search Page","data-event-action":"Delete Search"},o().createElement(M.A,{size:17,color:s.w.colors.white})):d?o().createElement(Lt,{className:"star-pair-icon"}):"",icon:o().createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",className:"search-icon-btn",onClick:()=>{(t&&a||l)&&f("")}},o().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{verticalAlign:"bottom"}},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.3097 9.06111C3.3097 5.88483 5.88458 3.30994 9.06087 3.30994C12.2372 3.30994 14.812 5.88483 14.812 9.06111C14.812 12.2374 12.2372 14.8123 9.06087 14.8123C5.88458 14.8123 3.3097 12.2374 3.3097 9.06111ZM9.06087 1.66675C4.97707 1.66675 1.6665 4.97732 1.6665 9.06111C1.6665 13.1449 4.97707 16.4555 9.06087 16.4555C10.8067 16.4555 12.4112 15.8505 13.6761 14.8387L16.9305 18.0931C17.2514 18.4139 17.7716 18.4139 18.0924 18.0931C18.4133 17.7722 18.4133 17.252 18.0924 16.9312L14.8381 13.6768C15.8501 12.4118 16.4552 10.8071 16.4552 9.06111C16.4552 4.97732 13.1447 1.66675 9.06087 1.66675Z",fill:"#8C8C8C"})))})},It=({path:e,locale:t})=>{var a;return`/shop/${null===(a=ft[t||"vi-VN"])||void 0===a?void 0:a[e]}/`};var Dt=(0,u.r)((()=>({root:{textDecoration:"none"},iconText:{color:"#fff"}})));const Pt=e=>{var{count:t,styles:a,className:i,classNames:l,locale:r}=e,s=(0,n._)(e,["count","styles","className","classNames","locale"]);const{classes:d,cx:m}=Dt(void 0,{name:"CartBadge",styles:a,classNames:l});return"undefined"!==typeof t?o().createElement(h.a,Object.assign({component:"a",href:It({path:"CART",locale:r}),className:m(d.root,i)},s),o().createElement(lt.C,{withBorder:!0,color:"red",size:20,disabled:0===t,label:o().createElement(c.T,{className:d.iconText,size:"s5"},t>99?"99+":t)},o().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},o().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},Ft=r.A.div`
&.block-show {
display: block;
}
`,zt=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:l})=>{const[r,s]=(0,i.useMemo)((()=>(0,$.g)(t)),[t]);return o().createElement(Ft,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:l},a)};var Rt="wnUb-dV",jt="cjbOxWe";const Ht=({item:e,menu:t})=>{const{containerRef:a,onButtonMouseDown:n,onClose:l}=qe({allowBgScroll:!0}),r=(()=>{const[e,t]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{t(!1)}),[]),e})();return!e.popupType&&e.link?o().createElement(Ut,{isNew:e.isNew},o().createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},o().createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:jt},e.name))):o().createElement(Ut,{isNew:e.isNew},o().createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},o().createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:n,className:jt},e.name,e.popupType&&o().createElement(o().Fragment,null,(null===e||void 0===e?void 0:e.icon)?o().createElement("div",{className:"wrapper-menu-icon"},o().createElement("div",{className:"origin-icon"},e.icon),o().createElement("div",{className:"close-icon",onClick:l},o().createElement(M.A,{size:16}))):o().createElement("div",{className:Rt},o().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},o().createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}))))),o().isValidElement(t)?o().cloneElement(t,{onClose:l}):null))},Ut=({isNew:e,children:t})=>{const{t:a}=(0,x.u)();return e?o().createElement(bt,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):o().createElement(o().Fragment,null,t)},Vt=r.A.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 3.5rem;
${$.M.tdDown} {
grid-template-columns: repeat(1, 1fr);
}
`,Gt=r.A.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;
}
${$.M.tdDown} {
margin-bottom: 0;
padding: 0;
height: 100%;
position: unset;
width: 150px;
}
${$.M.mbDown} {
width: 80px;
}
`,Zt=r.A.div`
background-color: #ffffff;
border-radius: 4px;
width: 100%;
height: 100%;
`,Wt=r.A.div`
display: flex;
margin-top: 1rem;
align-items: center;
color: ${s.w.colors.primaryBase};
font-weight: 400;
font-size: 14px;
text-decoration: none;
${$.M.tdDown} {
display: none;
}
`,qt=r.A.p`
font-size: 16px;
font-weight: 600;
line-height: 1.6;
color: ${s.w.colors.gray800};
${$.M.tdDown} {
padding: 0;
}
`,Yt=r.A.p`
font-size: 14px;
line-height: 1.6;
font-weight: 400;
color: ${s.w.colors.gray600};
height: 40px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: auto;
${$.M.tdDown} {
height: unset;
padding: 0;
}
`,Kt=(0,ce.s)(r.A.div`
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
z-index: 1;
${$.M.tdDown} {
gap: 4px;
}
`,"hhgcomp-navigation-menucareitem-contentwrapper"),Qt=r.A.a`
text-decoration: none;
border-radius: 4px;
background: ${s.w.colors.white};
position: relative;
overflow: hidden;
padding: 16px;
display: flex;
padding-top: 166px;
* {
pointer-events: none;
}
${$.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%;
}
}
${$.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;
> ${Kt.classSelector} {
flex: 1;
}
img {
width: 150px;
}
}
${$.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;
}
}
${$.M.tdOnly} {
border: 1px solid ${s.w.colors.neutral100};
}
.bg-svg {
width: 100%;
max-width: 245px;
height: 100%;
top: 0;
right: -40px;
position: absolute;
display: inline-block;
}
`,Jt=({item:e,index:t=0})=>{var a;const{t:n}=(0,x.u)(),{locale:l,configs:{statics:r}}=(0,i.useContext)(Ze);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(a=Et.L[l])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return o().createElement(Qt,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},o().createElement("img",{src:d.C.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),o().createElement(Gt,null,o().createElement(Zt,null,o().createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),o().createElement(Kt,null,o().createElement(qt,null,e.name),o().createElement(Yt,null,e.description),o().createElement(Wt,null,n("home.seeMore"),o().createElement("img",{src:d.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Xt=r.A.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;
}
${$.M.mbDown} {
display: block;
.bg-svg {
right: -24px;
left: unset;
top: 0;
transform: rotateY(180deg);
}
}
${$.M.mbUp} {
display: grid;
grid-gap: 10px;
grid-template-columns: 1fr 3fr;
}
`,ea=r.A.div`
font-weight: 400;
font-size: 14px;
line-height: 24px;
color: ${s.w.colors.gray600};
margin-bottom: 15px;
`,ta=r.A.div`
font-weight: 600;
font-size: 16px;
line-height: 26px;
color: #000000;
margin-bottom: 4px;
`,aa=r.A.div`
background: #fff;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50px;
`,na=r.A.div`
display: flex;
justify-content: center;
align-items: center;
position: relative;
${$.M.mbDown} {
justify-content: end;
min-height: 100px;
}
`,ia=({title:e,link:t,description:a,cta:n,icon:l})=>{const{siteType:r}=(0,i.useContext)(Ze);return o().createElement(Xt,{"data-theme":r},o().createElement(na,null,o().createElement("img",{src:"marryBaby"===r?d.C.getAssetPath("navMBSpotlightBgNoData.svg"):d.C.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),o().createElement(aa,null,l&&o().createElement("img",{src:l,width:64,height:64,loading:"lazy"}))),o().createElement("div",null,e&&o().createElement(ta,null,e),a&&o().createElement(ea,null,a),n&&o().createElement("div",null,o().createElement("a",{href:t},o().createElement(ze.B,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},oa=r.A.div`
margin-top: 10px;
background: #ffffff;
padding: 5px 15px;
position: relative;
${$.M.mbDown} {
&:after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background-color: ${s.w.colors.neutral100};
content: '';
}
}
`,la=r.A.div`
margin: 15px 0;
display: flex;
`,ra=r.A.a`
padding-left: 10px;
display: flex;
align-items: center;
text-decoration: none;
font-weight: 400;
font-size: 14px;
color: ${s.w.colors.primaryBase};
&[data-theme='marryBaby'] {
color: ${s.w.mbColors.pink};
}
img {
padding-left: 5px;
}
${$.M.mbDown} {
margin-left: auto;
}
`,sa=({title:e,viewMore:t,children:a,link:n,dataEventAction:l=""})=>{const{siteType:r}=(0,i.useContext)(Ze);return o().createElement(oa,null,o().createElement(la,null,o().createElement(xt.H,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&o().createElement(ra,{"data-event-category":"Hamburger Navigation","data-event-action":l,"data-event-label":n,href:n,"data-theme":r},t,o().createElement("img",{src:"marryBaby"===r?d.C.getAssetPath("chevronRightPink.svg"):d.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),a)},ca=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=(0,x.u)(),{siteType:n}=(0,i.useContext)(Ze);return o().createElement(sa,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?o().createElement(o().Fragment,null,o().createElement(Vt,null,null===e||void 0===e?void 0:e.slice(0,3).map(((e,t)=>o().createElement(Jt,{key:t,index:t,item:e})))),o().createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},o().createElement("a",{href:t},o().createElement(ze.B,{theme:n,className:"survey-contact-submit",size:"md"},a("home.navigator.menu.care.homeButton"))))):o().createElement(ia,{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:d.C.getAssetPath("community.svg")}))},da=e=>{var t,a,n,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.link}:{}):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=>da(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?(n=e.reviewed_by,{postTitle:n.post_title,permalink:n.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},ma=e=>{var t,a;if(!e)return{};const n=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||n?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title,isMobileAppTool:!!(null===e||void 0===e?void 0:e.is_mobile_app_tool)}},pa=e=>{var t,a,n,i,o;return e&&(null===e||void 0===e?void 0:e.object_id)?{thumbnail:(null===(t=null===e||void 0===e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null===e||void 0===e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},ua=e=>{var t,a,n,i,o;return e&&(null===e||void 0===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===(n=null===e||void 0===e?void 0:e.object_id)||void 0===n?void 0:n.logo)||"",description:(null===(i=e.object_id)||void 0===i?void 0:i.description)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},ga=({type:e,specialtySlug:t,locale:a})=>{var n,i;return`${null===(n=Et.L[a])||void 0===n?void 0:n.ALL}/${(null===(i=Et.L[a])||void 0===i?void 0:i[e])||"doctor"}/${null!==t&&void 0!==t?t:""}`},ha=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null===e||void 0===e?void 0:e.small_banner)||(null===e||void 0===e?void 0:e.image)||"",imageMedium:(null===e||void 0===e?void 0:e.image_medium)||null,imageThumbnail:(null===e||void 0===e?void 0:e.image_thumbnail)||null,startDate:null===e||void 0===e?void 0:e.start_date,endDate:null===e||void 0===e?void 0:e.end_date,buttonDisplay:e.button_display||null}:{},va=e=>{const t=new Date;if(null===e||void 0===e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()a.getTime())return!1}return!0},fa=e=>"undefined"!==typeof e&&e?{id:e.ID||"",videoId:e.video_id||"",url:e.video_url||"",title:e.video_title||"",type:e.type||p.V.VIDEO,totalView:e.total_view||0,description:e.description||"",createTime:e.create_time||"",duration:e.duration||0,image:e.image||"",imageMedium:e.image_medium||"",imageThumbnail:e.image_thumbnail||"",active:!1,articleLink:e.article_link||""}:null;var ya="q3nL5cp",ba="_2DNf80G",Ea="Q-glX-n";const xa=({onClosePopup:e})=>o().createElement("div",{className:`${Ea} close-btn`,onClick:e},o().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},o().createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),wa=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i,stylesContainer:l})=>o().createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},o().createElement(wt.C,{className:"hhgcomp-navigation-popupwrapper-menuwrapper-child"},!i&&o().createElement("div",{className:ba},o().createElement(xa,{onClosePopup:e})),o().createElement(wt.C,{className:ya,style:l},a))),Ca=e=>{var{size:t=24,color:a=s.w.colors.neutral600}=e,i=(0,n._)(e,["size","color"]);return o().createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o().createElement("path",{d:"M6.088 18.75q-.63 0-1.068-.437a1.45 1.45 0 0 1-.438-1.07V2.757q0-.63.438-1.068a1.45 1.45 0 0 1 1.068-.438h7.82q.633 0 1.07.438.437.437.437 1.068v14.488q0 .63-.437 1.069a1.45 1.45 0 0 1-1.07.437zm3.91-1.859a.7.7 0 0 0 .522-.216.7.7 0 0 0 .216-.521.7.7 0 0 0-.216-.522.7.7 0 0 0-.521-.215.7.7 0 0 0-.522.215.7.7 0 0 0-.215.522.7.7 0 0 0 .215.521.7.7 0 0 0 .522.216m-4.166-3.333h8.333V4.792H5.832z",fill:a}))},ka=r.A.div`
padding-right: 1rem;
background: #ffffff;
padding: 5px 15px;
${$.M.mbUp} {
border-right: 1px solid #e4e8ec;
display: flex;
flex-direction: column;
justify-content: space-between;
}
`,_a=r.A.a`
padding: 10px 0;
position: relative;
display: flex;
align-items: center;
&[data-is-mobile-tool='true'] {
align-items: flex-start;
.name,
.phone-icon {
margin-top: 4px;
}
}
text-decoration: none;
color: ${s.w.colors.gray800};
* {
pointer-events: none;
}
.name {
font-size: 16px;
font-weight: 400;
}
&[data-theme='marryBaby']:hover,
&[data-theme='marryBaby'][data-active='true'] {
p {
color: ${s.w.mbColors.pink};
}
.icon {
background-color: ${s.w.mbColors.lightPink};
}
}
&[data-theme='helloSites']:hover,
&[data-theme='helloSites'][data-active='true'] {
p {
color: ${s.w.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: ${s.w.mbColors.lightGray};
img {
border-radius: 50%;
}
}
}
`,Ma=r.A.div`
margin: 15px 0;
${$.M.mbDown} {
display: none;
}
`,Aa=r.A.div`
display: flex;
position: absolute;
right: 0;
${$.M.mbUp} {
&.arrow-icon {
display: none;
}
}
`,$a=r.A.div`
display: flex;
align-items: center;
color: ${s.w.colors.primaryBase};
font-size: ${s.w.sizes.fsParagraph4};
font-weight: ${s.w.sizes.fwBold};
line-height: 24px;
font-size: 14px;
font-weight: 600;
&[data-theme='marryBaby'] {
color: ${s.w.mbColors.pink};
}
`,Ta=r.A.div`
display: flex;
align-items: center;
margin-left: 10px;
`,Na=r.A.a`
border: 1px solid ${s.w.colors.primaryBase};
&[data-theme='marryBaby'] {
border: 1px solid ${s.w.mbColors.pink};
svg path {
stroke: ${s.w.mbColors.pink};
}
}
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 6px;
border-radius: 5px;
margin-top: 20px;
${$.M.mbDown} {
display: none;
}
`,La=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:l,headingTitle:r,activeItem:s})=>{const{siteType:m}=(0,i.useContext)(Ze),{t:p}=(0,x.u)(),u=(0,rt.xd)();return o().createElement(ka,null,o().createElement("div",null,o().createElement(Ma,null,o().createElement(xt.H,{tag:"marryBaby"===m?"h5":"h6",as:"p",fontWeight:"semibold"},r)),null===l||void 0===l?void 0:l.slice(0,6).map(((e,t)=>{const i=(null===e||void 0===e?void 0:e.link)?(null===e||void 0===e?void 0:e.link.startsWith("http"))?null===e||void 0===e?void 0:e.link:`${a}/${null===e||void 0===e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return o().createElement(_a,Object.assign({className:(0,st.A)("iconMenu",`itemMenu-${e.id}`),"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id&&e.id===s,"data-is-mobile-tool":e.isMobileAppTool,href:i},!((e="")=>T.some((t=>new URL(e).origin.endsWith(t))))(i)&&{target:"_blank"},{"data-theme":m,key:t,onClick:n}),o().createElement("div",{className:"icon"},o().createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),o().createElement(Ut,{isNew:e.isNew},o().createElement("div",{style:{padding:"0 0.4rem",paddingRight:e.isNew?10:0}},o().createElement("p",{className:"name"},e.name),e.isMobileAppTool&&o().createElement(c.T,{size:"n1",color:u.fn.primaryColor(),weight:"regular"},p("home.calcWithApp")))),e.isMobileAppTool&&o().createElement(Aa,null,o().createElement(Ca,{className:"phone-icon",size:16})),o().createElement(Aa,{className:"arrow-icon"},o().createElement("img",{src:d.C.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))}))),t&&o().createElement(Na,{"data-theme":m,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},o().createElement($a,{onClick:n,"data-theme":m,"data-is-heading-category":!1},t,o().createElement(Ta,null,o().createElement("img",{className:"svg",src:"marryBaby"===m?d.C.getAssetPath("chevronRightPink.svg"):d.C.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Sa=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var l;const{t:r}=(0,x.u)(),{locale:s,configs:{statics:c}}=(0,i.useContext)(Ze);return o().createElement(wa,{onClosePopup:a,isDisplay:t,isNavMenu:!0},o().createElement(La,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null===e||void 0===e?void 0:e.map((e=>e?{name:String(e.name)||"",link:ga({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null===e||void 0===e?void 0:e.thumbnail)||""}:{})))||[]}),o().createElement(ca,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(l=Et.L[s])||void 0===l?void 0:l.SPECIALTIES}/`}))},Ba=r.A.div`
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
${$.M.tdDown} {
gap: 12px;
grid-template-columns: 1fr;
}
`,Oa=r.A.a`
position: relative;
width: 100%;
display: flex;
align-items: center;
text-decoration: none;
* {
pointer-events: none;
}
`,Ia=r.A.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;
}
${$.M.tdDown} {
width: 72px;
padding-top: 100px;
flex-shrink: 0;
}
`,Da=r.A.a`
${$.M.tdDown} {
position: relative;
bottom: 0;
left: 16px;
right: 0;
padding: 4px 8px;
width: 90px;
height: 24px;
font-size: 11px;
line-height: 16px;
}
position: absolute;
bottom: 8px;
left: 8px;
right: 8px;
height: 32px;
padding: 6px 12px;
background: ${e=>e.bgColor};
border-radius: 10px;
border: none;
transition: all 0.2s ease-in-out;
color: ${e=>e.textColor};
font-family: 'Inter';
font-weight: 500;
font-size: 14px;
line-height: 20px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover {
background: ${e=>{const t=e.bgColor.toLowerCase();if("#ffffff"===t||"white"===t||"#fff"===t)return"#f0f0f0";if("string"===typeof t){const e=function(e,t=!1){let a=!1,n=e.slice(e.startsWith("#")?1:0);3===n.length?n=[...n].map((e=>e+e)).join(""):8===n.length&&(a=!0),n=parseInt(n,16);const i={r:n>>>(a?24:16),g:(n&(a?16711680:65280))>>>(a?16:8),b:(n&(a?65280:255))>>>(a?8:0)};return t?i:"rgb"+(a?"a":"")+"("+i.r+", "+i.g+", "+i.b+(a?", "+(255&n):"")+")"}(t,!0),a=function(e,t,a){e/=255,t/=255,a/=255;const n=Math.max(e,t,a),i=n-Math.min(e,t,a),o=0===i?0:i&&n===e?(t-a)/i:n===t?2+(a-e)/i:4+(e-t)/i;return[60*(o<0?o+6:o),n&&i/n*100,100*n]}(e.r,e.g,e.b),n=function(e,t,a){t/=100,a/=100;const n=t=>(t+e/60)%6,i=e=>a*(1-t*Math.max(0,Math.min(n(e),4-n(e),1)));return[255*i(5),255*i(3),255*i(1)]}(a[0],a[1]+16,a[2]-16);return`rgb(${n[0]},${n[1]},${n[2]})`}return""}};
}
`,Pa=r.A.p`
font-size: 16px;
font-weight: 400;
padding: 4px 15px;
line-height: 1.4;
color: ${s.w.colors.gray800};
flex: 1;
${$.M.tdUp} {
display: none;
}
`,Fa=({item:e,index:t=0})=>{if(!e)return null;const a={href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link};return o().createElement(Oa,Object.assign({key:e.id},a),o().createElement(Ia,null,o().createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),o().createElement("div",{style:{display:"flex",flexDirection:"column",gap:8}},o().createElement(Pa,null,e.title),!!e.buttonDisplay&&o().createElement(Da,Object.assign({bgColor:e.buttonDisplay.button_background_color,textColor:e.buttonDisplay.button_text_color},a),e.buttonDisplay.button_label)))},za=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=(0,x.u)(),{configs:{statics:n}}=(0,i.useContext)(Ze);return o().createElement(sa,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?o().createElement(Ba,null,null===e||void 0===e?void 0:e.slice(0,4).map(((e,t)=>o().createElement(Fa,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image,buttonDisplay:e.buttonDisplay}})))):o().createElement(ia,{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:d.C.getAssetPath("Spotlight.svg")}))},Ra=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:l}=(0,x.u)(),{locale:r,configs:{statics:s}}=(0,i.useContext)(Ze);return o().createElement(wa,{onClosePopup:a,isDisplay:n,isNavMenu:!0},o().createElement(La,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:l("home.navigator.menuItem.allCategories"),menuItems:(null===e||void 0===e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null===e||void 0===e?void 0:e.customizedUrl)||(null===e||void 0===e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:l("home.navigator.menuItem.healthCategories")}),o().createElement(za,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},ja=r.A.div`
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 48px;
${$.M.tdDown} {
grid-template-columns: 1fr;
grid-gap: 32px;
}
${$.M.mbDown} {
grid-gap: 24px;
}
`,Ha=r.A.div`
padding: 5px;
flex: 1;
`,Ua=r.A.img`
width: 88px;
height: 88px;
border-radius: 4px;
object-fit: cover;
`,Va=r.A.div`
font-size: 12px;
font-weight: 600;
color: ${s.w.colors.gray800};
text-decoration: none;
&[data-theme='marryBaby'] {
font-weight: 400;
letter-spacing: -0.2px;
}
`,Ga=r.A.div`
text-decoration: none;
font-size: 12px;
font-weight: 400;
color: ${s.w.colors.primaryBase};
&[data-theme='marryBaby'] {
font-weight: 400;
letter-spacing: -0.2px;
}
`,Za=r.A.div`
font-size: 12px;
font-weight: 400;
color: ${s.w.colors.gray600};
`,Wa=r.A.div`
font-size: 12px;
font-weight: 400;
color: ${s.w.colors.gray600};
`,qa=r.A.a`
display: flex;
gap: 10px;
text-decoration: none;
position: relative;
&::after {
content: '';
display: block;
width: 100%;
height: 1px;
border-top: 1px dashed ${s.w.colors.neutral100};
position: absolute;
bottom: -24px;
${$.M.tdOnly} {
bottom: -16px;
}
${$.M.mbDown} {
bottom: -12px;
}
}
&:last-child {
&::after {
display: none;
}
}
${$.M.tdUp} {
&:nth-last-child(2) {
&::after {
display: none;
}
}
}
`,Ya=r.A.div`
display: flex;
gap: 10px;
vertical-align: middle;
align-items: center;
`,Ka=r.A.div`
margin-top: 8px;
font-size: 16px;
font-weight: 600;
color: ${s.w.colors.gray800};
&[data-theme='marryBaby'] {
margin-top: 12px;
font-weight: 400;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.2px;
}
`,Qa=r.A.div`
display: flex;
flex-wrap: wrap;
align-items: center;
column-gap: 5px;
`,Ja=r.A.div`
display: flex;
gap: 4px;
flex-direction: column;
`;ve().extend(kt());const Xa=({post:e,index:t=0})=>{var a,n,l,r,s,c,d;const{siteType:m,configs:{statics:p}}=(0,i.useContext)(Ze);if(!e)return null;const u=[p.TOGETHER_URL_FE,null===(a=e.community)||void 0===a?void 0:a.slug].join("/"),g=[u,e.slug].join("/"),h=e.createdAt,v=h?isNaN(new Date(h).getTime())?null:new Date(h):null,f=v?ve()(v).toNow(!0):h;return o().createElement(qa,{href:g,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":g},o().createElement(Ha,null,o().createElement(Ya,null,o().createElement(Mt,{avatar:null===(n=e.author)||void 0===n?void 0:n.avatar,username:(null===(l=e.author)||void 0===l?void 0:l.name)||(null===(r=e.author)||void 0===r?void 0:r.username)}),o().createElement(Ja,null,o().createElement(Va,{"data-theme":m},null===(s=e.author)||void 0===s?void 0:s.name),o().createElement(Qa,null,o().createElement(Ga,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${t+1}`,"data-event-label":u,onClick:e=>{e.preventDefault(),location.href=u},"data-theme":m},null===(c=e.community)||void 0===c?void 0:c.name),o().createElement(Wa,null,"\u2022"),o().createElement(Za,{"data-theme":m},f)))),o().createElement(Ka,null,e.title)),!!(null===(d=e.photos)||void 0===d?void 0:d.length)&&o().createElement(Ua,{loading:"lazy",src:e.photos[0]}))},en=({spotlights:e=[]})=>{const{configs:{statics:t}}=(0,i.useContext)(Ze),{t:a}=(0,x.u)();return o().createElement(sa,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:(0,Q.e)(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?o().createElement(ja,null,null===e||void 0===e?void 0:e.slice(0,4).map(((e,t)=>o().createElement(Xa,{index:t,post:e,key:e.id})))):o().createElement(ia,{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:d.C.getAssetPath("community.svg")}))},tn=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:l}=(0,x.u)(),{configs:{statics:r}}=(0,i.useContext)(Ze);return o().createElement(wa,{onClosePopup:t,isDisplay:a,isNavMenu:!0},o().createElement(La,{hrefViewMore:(0,Q.e)(r.TOGETHER_URL_FE),UrlFE:(0,Q.n)(r.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:l("home.navigator.menuItem.allCommunities"),menuItems:(null===e||void 0===e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:l("home.navigator.menuItem.allCommunitiesheadingTitle")}),o().createElement(en,{spotlights:n}))},an=r.A.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
${$.M.tdDown} {
grid-template-columns: 1fr;
gap: 12px;
}
`,nn=e=>{var{size:t=24,color:a="#2D87F3"}=e,i=(0,n._)(e,["size","color"]);return o().createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o().createElement("rect",{width:"20",height:"20",rx:"4",fill:a}),o().createElement("path",{d:"M9.12 6.005c0-.088-.005-.181-.012-.27-.022-.611-.623-1.071-1.208-1.046-.69.04-.839 1.007-.248 1.297.09.047.115.088.105.172v5.048c.004.064-.016.096-.077.122-.63.274-.474 1.276.233 1.304.583.03 1.16-.453 1.195-1.044q.012-.135.013-.272c0-1.77.013-3.54 0-5.311m-3.093 5.34c-.109-.048-.144-.108-.132-.232V6.117c.009-.114.103-.108.176-.165.544-.357.313-1.249-.346-1.264h-.023c-.659 0-1.172.546-1.172 1.194q-.002 2.09.004 4.177l.003 1.396c0 .62.527 1.175 1.15 1.175.68 0 .989-.978.34-1.285m7.299-1.489a.623.623 0 1 1-1.247 0 .623.623 0 0 1 1.247 0",fill:"#fff"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.927 9.821c0 1.338.925 2.46 2.162 2.743-.089 1.583-2.049 1.657-3.22 1.47a2.5 2.5 0 0 1-.716-.225 1.3 1.3 0 0 1-.614-.68c-.057-.142-.093-.293-.158-.431a.58.58 0 0 0-.674-.346.59.59 0 0 0-.462.603c.017.415.192.827.44 1.156.26.354.607.625 1.058.827.636.29 1.336.375 2.03.375.774 0 1.591-.132 2.267-.53.643-.38 1.25-.878 1.263-2.217a2.81 2.81 0 0 0 2.17-2.745c0-1.55-1.244-2.811-2.773-2.811S9.927 8.27 9.927 9.82m4.275 0c0 .841-.674 1.525-1.502 1.525a1.515 1.515 0 0 1-1.502-1.525c0-.84.674-1.525 1.502-1.525a1.516 1.516 0 0 1 1.502 1.525",fill:"#fff"}))},on=r.A.a`
text-decoration: none;
border-radius: 4px;
background: ${s.w.colors.primary50};
position: relative;
overflow: hidden;
display: flex;
* {
pointer-events: none;
}
.bg-svg {
width: 245px;
top: 0;
right: 0;
height: 100%;
position: absolute;
${$.M.tdDown} {
top: calc(51% - 68px);
right: -8px;
}
}
padding: 180px 24px 16px;
a {
display: flex;
width: 100%;
}
.phone-badge {
position: absolute;
top: 16px;
left: 16px;
}
${$.M.tdDown} {
padding-top: 16px;
display: flex;
align-items: center;
}
${$.M.mbDown} {
.phone-badge {
display: none;
}
}
`,ln=r.A.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%);
}
${$.M.tdDown} {
position: relative;
top: unset;
right: unset;
}
`,rn=r.A.div`
display: flex;
align-items: center;
gap: 4px;
color: ${s.w.colors.primaryBase};
font-weight: 400;
font-size: 14px;
text-decoration: none;
`,sn=r.A.p`
font-size: 16px;
font-weight: 600;
line-height: 1.4;
color: ${s.w.colors.gray800};
`,cn=r.A.p`
font-size: 14px;
line-height: 1.4;
font-weight: 400;
color: ${s.w.colors.gray600};
height: 40px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: auto;
${$.M.tdDown} {
display: none;
}
`,dn=r.A.div`
display: flex;
flex-direction: column;
flex: 1;
z-index: 1;
${$.M.tdUp} {
gap: 8px;
}
${$.M.tdDown} {
gap: 4px;
flex: 1;
}
`,mn=({item:e,index:t=0})=>{const{t:a}=(0,x.u)(),{configs:{statics:n}}=(0,i.useContext)(Ze);if(!e)return null;const l=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return o().createElement(on,{href:l,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":l},e.isMobileAppTool&&o().createElement(Ca,{size:20,className:"phone-badge"}),o().createElement("img",{src:d.C.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),o().createElement(dn,null,o().createElement(sn,null,e.title),o().createElement(cn,null,e.subtitle),o().createElement(rn,null,e.isMobileAppTool?o().createElement(o().Fragment,null,o().createElement(nn,{size:16}),a("home.calcWithApp")):o().createElement(o().Fragment,null,a("home.seeMore"),o().createElement(nt,{size:18,useCurrentColor:!0})))),o().createElement(ln,null,o().createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},pn=r.A.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: ${s.w.mbColors.tonePink};
.bg-svg {
fill: ${s.w.mbColors.peach};
}
}
&[data-color='orange'] {
background: ${s.w.mbColors.toneYellow};
.bg-svg {
fill: ${s.w.mbColors.orange};
}
}
&[data-color='green'] {
background: ${s.w.mbColors.toneGreen};
.bg-svg {
fill: ${s.w.mbColors.mint};
}
}
padding: 180px 24px 16px;
a {
display: flex;
width: 100%;
}
${$.M.tdDown} {
padding-top: 16px;
display: flex;
align-items: flex-start;
justify-content: flex-start;
}
${$.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;
}
}
${$.M.tdUp} {
min-height: 296px;
}
.mobile-only {
${$.M.tdUp} {
display: none;
}
}
.desktop-only {
${$.M.tdDown} {
display: none;
}
}
`,un=r.A.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%);
}
${$.M.tdDown} {
position: relative;
top: unset;
right: unset;
}
${$.M.mbDown} {
position: absolute;
left: 32px;
top: 28px;
}
`,gn=r.A.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: ${s.w.mbColors.gray};
}
${$.M.tdDown} {
background: none;
width: 100%;
font-weight: 400;
font-size: 12px;
line-height: 18px;
color: ${s.w.mbColors.pink};
padding-left: 16px;
}
`,hn=r.A.p`
font-weight: 600;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.2px;
color: ${s.w.colors.gray800};
`,vn=r.A.p`
font-weight: 400;
font-size: 12px;
line-height: 18px;
letter-spacing: -0.2px;
color: ${s.w.colors.gray600};
height: 54px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
margin-bottom: auto;
${$.M.tdDown} {
display: none;
}
`,fn=r.A.div`
display: flex;
flex: 1;
z-index: 1;
align-items: flex-end;
justify-content: flex-end;
${$.M.tdUp} {
gap: 8px;
flex-direction: row;
}
${$.M.tdDown} {
align-items: flex-start;
justify-content: flex-start;
gap: 4px;
}
`,yn=r.A.div`
display: flex;
flex-direction: column;
flex: 1;
z-index: 1;
${$.M.tdUp} {
gap: 8px;
}
${$.M.tdDown} {
gap: 4px;
flex: 1;
padding-left: 16px;
}
`,bn=r.A.div`
display: flex;
flex-direction: row;
flex: 1;
z-index: 1;
${$.M.tdUp} {
gap: 8px;
justify-content: flex-end;
align-items: flex-end;
}
${$.M.tdDown} {
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
`,En=({item:e,index:t=0,color:a})=>{const{t:n}=(0,x.u)(),{configs:{statics:l}}=(0,i.useContext)(Ze);if(!e)return null;const r=e.link?e.link.startsWith("http")?e.link:`${l.HOME_PAGE_URL}${e.link}`:void 0,s=()=>o().createElement(un,null,o().createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>o().createElement(bn,null,o().createElement(yn,null,o().createElement(hn,null,e.title),o().createElement(vn,null,e.subtitle)),o().createElement(gn,null,o().createElement("div",{className:"mobile-only"},n("home.seeMore")),o().createElement("img",{src:d.C.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return o().createElement(pn,{href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":r,"data-color":a},o().createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},o().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"})),o().createElement("img",{src:d.C.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),o().createElement(fn,null,o().createElement("div",{className:"mobile-only"},s()),o().createElement("div",{className:"desktop-only"},c())),o().createElement("div",{className:"mobile-only"},c()),o().createElement("div",{className:"desktop-only"},s()))},xn=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=(0,x.u)(),n=["pink","orange","green"],{siteType:l}=(0,i.useContext)(Ze);return o().createElement(sa,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&o().createElement(an,null,null===t||void 0===t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===l?o().createElement(En,{key:t,index:t,item:e,color:n[t]}):o().createElement(mn,{key:t,index:t,item:e})))),0===t.length&&o().createElement(ia,{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:d.C.getAssetPath("community.svg")}))},wn=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:l=[]})=>{var r;const{t:s}=(0,x.u)(),{configs:{statics:c}}=(0,i.useContext)(Ze),d=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(r=m.S[e])||void 0===r?void 0:r.HEALTH_TOOLS)||""}`;return o().createElement(wa,{onClosePopup:t,isDisplay:a,isNavMenu:!0},o().createElement(La,{hrefViewMore:d,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:l.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon,isMobileAppTool:e.isMobileAppTool})))}),o().createElement(xn,{spotlightHealthTools:n,hrefViewMore:d}))},Cn=r.A.div`
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
${$.M.tdDown} {
gap: 12px;
grid-template-columns: 1fr;
}
`,kn=({spotlightsList:e=[],layout:t="default"})=>{const{t:a}=(0,x.u)(),{configs:{statics:n}}=(0,i.useContext)(Ze);return o().createElement(sa,{title:a("home.navigator.menu.lastestVideos")},0!==e.length?o().createElement(Cn,null,null===e||void 0===e?void 0:e.slice(0,4).map(((e,a)=>o().createElement(G,{key:a,data:Object.assign(Object.assign({},e),{type:p.V.SHORTS}),layout:"default"===t?"overlay":"horizon",dataEventCategory:"Hamburger Navigation",dataEventAction:`Video Click ${a+1}`})))):o().createElement(ia,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:`${n.VIDEO_URL_FE}/`,cta:a("home.navigator.menu.category.noDatas.cta"),icon:d.C.getAssetPath("Spotlight.svg")}))},_n=({spotlightsList:e=[],onClose:t,isOpen:a})=>{const{t:n}=(0,x.u)(),{locale:l,configs:{statics:r}}=(0,i.useContext)(Ze),s=(0,i.useMemo)((()=>[{name:n("home.navigator.menu.videos"),link:`${r.VIDEO_URL_FE}/video/`,thumbnail:d.C.getAssetPath("nav-icons/video.svg")},{name:n("home.navigator.menu.shorts"),link:`${r.VIDEO_URL_FE}/short/`,thumbnail:d.C.getAssetPath("nav-icons/short.svg")}]),[]);return o().createElement(wa,{onClosePopup:t,isDisplay:a,isNavMenu:!0},o().createElement(La,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/videos/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:t,titleBtnViewMore:n("home.navigator.menuItem.allVideos"),menuItems:s,headingTitle:n("home.navigator.menuItem.videoCategories")}),o().createElement(kn,{spotlightsList:e}))};r.A.div`
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
${$.M.tdDown} {
gap: 12px;
grid-template-columns: 1fr;
}
`;const Mn=(0,r.A)(se.B)`
border: 1px solid ${s.w.colors.white} !important;
.mantine-Button-leftIcon {
width: 24px;
height: 24px;
}
`,An=r.A.div`
width: 20px;
height: 20px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.1) 15.1%,
rgba(0, 0, 0, 0.01) 100%
),
linear-gradient(180deg, #65b5ff 0%, #2685f1 100%);
background-blend-mode: soft-light, normal;
`,$n=()=>o().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"},o().createElement("defs",null,o().createElement("clipPath",{id:"__lottie_element_2"},o().createElement("path",{d:"M0 0h512v512H0z"})),o().createElement("path",{fill:"#FFF",d:"m139 0-13 174h244l-30 292 165 1 4-466z",opacity:"1",id:"__lottie_element_6",display:"block"}),o().createElement("mask",{id:"__lottie_element_6_1","mask-type":"alpha"},o().createElement("use",{xlinkHref:"#__lottie_element_6"}))),o().createElement("g",{clipPath:"url(#__lottie_element_2)"},o().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"}),o().createElement("g",{display:"block"},o().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"}),o().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"}),o().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"})),o().createElement("g",{mask:"url(#__lottie_element_6_1)",display:"block"},o().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"}),o().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"}),o().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"}),o().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"})),o().createElement("g",{display:"block"},o().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"}),o().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"}),o().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"}),o().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"})))),Tn=()=>o().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"},o().createElement("defs",null,o().createElement("clipPath",{id:"__lottie_element_23"},o().createElement("path",{d:"M0 0h512v512H0z"}))),o().createElement("g",{clipPath:"url(#__lottie_element_23)"},o().createElement("g",{display:"block"},o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"}),o().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"})),o().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"}),o().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"}),o().createElement("path",{fill:"#284A75",d:"M280 218a9 9 0 1 0 0-19 9 9 0 0 0 0 19",display:"block"}),o().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"}),o().createElement("path",{fill:"#284A75",d:"M184 218a9 9 0 1 0 0-19 9 9 0 0 0 0 19",display:"block"}),o().createElement("g",{fill:"#FFF",display:"block"},o().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"}),o().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"})),o().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"}),o().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"}),o().createElement("g",{display:"block"},o().createElement("g",{fill:"#FFF"},o().createElement("path",{d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"}),o().createElement("path",{d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"})),o().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"}),o().createElement("path",{fill:"#FFF",d:"M469 405a85 85 0 1 1-170 0 85 85 0 0 1 170 0"}),o().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"}),o().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"})))),Nn=({menuItems:e=[],isOpen:t,onClose:a})=>{const{locale:n,configs:{enableAppIntroPage:l}}=(0,i.useContext)(Ze),r=e.find((e=>"ecom"===e.id)),s=e.find((e=>"care"===e.id));return o().createElement(wa,{onClosePopup:a,isDisplay:t,isNavMenu:!0,hideCloseBtn:!0,stylesContainer:{display:"flex",gap:0,padding:0}},r&&o().createElement("a",{tabIndex:0,href:r.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":r.link},o().createElement(Mn,{variant:"tertiary",leftIcon:o().createElement($n,null)},r.name)),s&&o().createElement("a",{tabIndex:0,href:s.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":s.link},o().createElement(Mn,{variant:"tertiary",leftIcon:o().createElement(Tn,null)},s.name)),l&&o().createElement("a",{tabIndex:0,href:"https://applink.hellobacsi.com/o9Q88rQh7Mb","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"https://applink.hellobacsi.com/o9Q88rQh7Mb"},o().createElement(Mn,{variant:"tertiary",leftIcon:o().createElement(An,null,o().createElement(ne,{width:16,height:15}))},`${m.L[n||"en-PH"].SITE_NAME_FORMATTED} App`)))};var Ln="y5VJdvw",Sn="oVhOSCy",Bn="pX8OXTM";function On({className:e}){return o().createElement("div",null,o().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},o().createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function In({siteType:e,enableSearch:t,className:a,style:n}){const{isWinCashBackTheme:l}=(0,i.useContext)(Ze);return"helloSites"===e?o().createElement("div",{className:"hamburger-container"},l?o().createElement(Nt,{className:a}):o().createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?d.C.getAssetPath("hamburgerMenuNewWithSearch.svg"):d.C.getAssetPath("hamburgerMenuNew.svg"),style:Object.assign({width:"24px",height:"24px"},n),alt:"home",className:a,loading:"lazy"})):o().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:a},o().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"}))}const Dn=r.A.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;
}
`;r.A.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: ${s.w.mbColors.lightGray};
border-radius: 16px;
border: none;
}
}
`;const Pn=r.A.div`
display: block;
overflow-y: auto;
flex: 1;
padding-bottom: 16px;
&::-webkit-scrollbar {
width: 0;
display: none;
}
`,Fn=r.A.div`
padding: 0 16px;
`,zn=r.A.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 3.5rem;
${$.M.tdDown} {
grid-template-columns: repeat(1, 1fr);
}
`,Rn=r.A.a`
text-decoration: none;
display: flex;
align-items: center;
`,jn=({item:e,index:t=0})=>e?o().createElement(Rn,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},o().createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),o().createElement(c.T,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),o().createElement("img",{src:d.C.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,Hn=({helpfulUrls:e=[]})=>{const{t:t}=(0,x.u)();return e.length?o().createElement(sa,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?o().createElement(zn,null,null===e||void 0===e?void 0:e.slice(0,5).map(((e,t)=>o().createElement(jn,{key:t,index:t,item:e})))):o().createElement(o().Fragment,null)):null},Un=({closePopup:e,menuItems:t=[],projectType:a,isHomepage:n=!1})=>{var l,r;const{siteType:s,ssrMenuContent:{categories:c,healthTools:d,care:p,together:u,ecom:g,videos:h},activeMenuService:v,configs:{statics:f},locale:y,customClasses:b}=(0,i.useContext)(Ze),{t:E}=(0,x.u)();return o().createElement(Dn,{className:b.categoriesMenu,id:"categories-menu"},!n&&o().createElement(Fn,null,o().createElement(ei,{siteType:s,projectType:a,isMobile:!1,isRedirectSearchPage:!0})),o().createElement(Pn,null,o().createElement(La,{UrlFE:f.HOME_PAGE_URL,titleBtnViewMore:E("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:E("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:v}),"categories"===v&&o().createElement(za,{spotlightsList:(null===c||void 0===c?void 0:c.spotlights)||[],hrefViewMore:`${f.HOME_PAGE_URL}${"tl-PH"===y?"/fil":""}/spotlight/`}),"tools"===v&&o().createElement(xn,{spotlightHealthTools:null===d||void 0===d?void 0:d.spotlights,hrefViewMore:`${f.HOME_PAGE_URL}${"tl-PH"===y?"/fil":""}${(null===(l=m.S[y])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===v&&o().createElement(ca,{spotlights:null===p||void 0===p?void 0:p.spotlights,hrefViewMore:`${f.CARE_URL_FE}/${null===(r=Et.L[y])||void 0===r?void 0:r.SPECIALTIES}`}),"together"===v&&o().createElement(en,{spotlights:null===u||void 0===u?void 0:u.spotlights}),"ecom"===v&&o().createElement(Hn,{helpfulUrls:null===g||void 0===g?void 0:g.helpfulUrls}),"video"===v&&o().createElement(kn,{spotlightsList:null===h||void 0===h?void 0:h.spotlights,layout:"stack"})))},Vn=({menuItems:e,isHomepage:t,projectType:a})=>{const{siteType:n}=(0,i.useContext)(Ze),{containerRef:l,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:c,onClose:d}=qe();return o().createElement(zt,{mediaQueryKey:"mbDown"},o().createElement("header",{className:Ln},o().createElement("div",{className:Sn,ref:l,role:"button",tabIndex:0,onBlur:s,onFocus:r},o().createElement("div",{className:Bn,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},o().createElement(On,{className:"mobile-close-icon"}),o().createElement(In,{siteType:n,enableSearch:!1,className:"mobile-hamburger-icon"})),o().createElement(Un,{menuItems:e,isHomepage:t,projectType:a,closePopup:d}))))},Gn=r.A.div`
z-index: 201;
width: 100%;
align-items: center;
background-color: ${s.w.colors.white};
transition: height 0.3s, transform 0.3s;
&[data-win-cash-back-theme='true'] {
background-color: ${s.w.colors.blue900};
.search-wrapper {
padding: 8px 16px;
}
.hhgcomp-navigation-itemnav-headeritem {
border-bottom: none;
color: ${s.w.colors.white};
svg {
path {
stroke: ${s.w.colors.white};
}
}
.wrapper-menu-icon {
.origin-icon {
filter: brightness(0) invert(1);
}
.close-icon {
svg {
path {
fill: ${s.w.colors.white};
}
}
}
}
}
.profile-nav-group {
.login-btn {
border-radius: 28px;
border-color: rgba(255, 255, 255, 0.2);
&:hover {
background-color: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
}
}
}
&[data-site-type='helloSites'] {
border-bottom: 1px solid ${s.w.colors.neutral100};
}
&[data-site-type='helloSites'][data-win-cash-back-theme='true'] {
border-bottom: none;
}
&[data-sponsored='true'] {
border-bottom: none;
}
&[data-marry-baby-tone='pink'] {
background-color: ${s.w.mbColors.lightPink};
}
${$.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: ${s.w.mbColors.lightGray};
border-radius: 16px;
border: none;
}
max-width: 172px;
}
&[data-site-type='marryBaby'] {
.close-btn {
top: 16px;
right: 16px;
}
}
`,Zn=r.A.div`
display: flex;
height: 100%;
align-items: center;
justify-content: space-between;
padding: 0 2rem;
height: 56px;
${$.M.pcDown} {
padding: 0 1rem;
}
${$.M.mbDown} {
position: relative;
height: 56px;
background: ${s.w.colors.white};
gap: 2px;
}
&[data-win-cash-back-theme='true'] {
height: 60px;
/* width: 100%;
margin: 0 auto;
padding: 0 16px;
max-width: 1160px;
margin: 0 auto;
width: 100%; */
${$.M.mbDown} {
/* padding: 0 16px; */
background: ${s.w.colors.blue900};
height: 56px;
}
}
&[data-site-type='marryBaby'] {
width: 100%;
margin: 0 auto;
padding: 0 16px;
${$.M.tdUp} {
max-width: 1064px;
}
}
`,Wn=r.A.div`
display: flex;
align-items: center;
height: 100%;
gap: 32px;
${$.M.pcDown} {
flex-shrink: 0;
gap: 12px;
&[data-site-type='marryBaby'] {
gap: 24px;
}
}
`,qn=r.A.div`
display: flex;
align-items: center;
height: 100%;
flex-shrink: 0;
${$.M.tdDown} {
flex-shrink: 0.6;
gap: 8px;
}
.hhgcomp-navigation-itemnav-headeritem {
gap: 2px;
${$.M.pcUp} {
padding: 0 10px;
}
${$.M.pcDown} {
padding: 0 6px;
}
${$.M.mbDown} {
display: none;
}
a {
text-decoration: none;
}
}
`;r.A.div`
.fake-search-input {
pointer-events: none;
input {
line-height: 20px;
padding-top: 10px;
padding-bottom: 10px;
}
}
`;const Yn=r.A.div`
margin-left: 16px;
display: flex;
gap: 12px;
align-items: center;
flex-shrink: 0;
${$.M.pcDown} {
margin-left: 8px;
gap: 8px;
}
${$.M.mbDown} {
margin-left: 0;
gap: 8px;
}
.ai-doctor-nav-item {
.ai-doctor-btn {
border-radius: 28px;
border: 1px solid ${s.w.colors.neutral200};
}
}
.clinity-logo {
width: 99px;
height: 40px;
${$.M.mbDown} {
width: 88px;
height: 36px;
}
}
`,Kn=r.A.div`
display: flex;
align-items: center;
height: 100%;
&[data-site-type='marryBaby'] {
gap: 26px;
}
.hamburger-container {
display: flex;
justify-content: center;
align-items: center;
}
`,Qn=r.A.div`
padding: 0 16px 6px;
`,Jn=(0,r.A)(se.B)`
border-radius: 28px;
border: 1px solid ${s.w.colors.neutral200};
&.ai-doctor-btn {
pointer-events: none !important;
* {
pointer-events: none !important;
}
}
${$.M.mbDown} {
padding: 0px 12px 0px 10px;
height: 36px;
color: ${s.w.colors.gray900};
font-size: 13px;
font-weight: 500;
line-height: 22px;
}
`,Xn=({onTopBarAppears:e,languageMenu:t,menuItems:a,logoComponent:n,subHead:l,projectType:r,customClasses:s})=>{var c,p,u,g;const{siteType:v,isMobile:f=!1,locale:y,sitewideBanner:b,sitewideBannerData:E,sitewideSite:x="discover",sponsorComponent:w,isHomepage:C=!1,currentUrl:k,onLoginClick:_,cartNumber:M,configs:{statics:A,enableSearchBar:$,enableNavChatbotAi:T,enableNavClinityDownload:N,enableAppIntroPage:L},userState:{userInfo:S},onLogout:B,isUserLoading:O,slot:I,isWinCashBackTheme:D}=(0,i.useContext)(Ze),{triggerLogin:P}=(0,yt.u)(),{SSO_URL:F,HOME_PAGE_URL:z}=A,R=!!w,[j,H]=(0,i.useState)(!1),U=(0,i.useRef)(47),V=(0,i.useRef)(null),G=(0,i.useRef)(!1),Z="helloSites"===v?null===(c=m.L[y])||void 0===c?void 0:c.LOGO_TYPE:v,W="undefined"!==typeof window,q=(0,i.useCallback)(mt()((()=>{if(W){if(!V.current)return;const e=30,t=V.current.getBoundingClientRect();t.top<=0&&window.scrollY>U.current+e&&window.scrollY>t.height+20&&!G.current&&(G.current=!0,H(!0)),window.scrollY=0&&(U.current=window.scrollY)}}),200),[]);return(0,i.useEffect)((()=>{null===e||void 0===e||e(!j)}),[j]),(0,i.useEffect)((()=>(window.addEventListener("scroll",q,{passive:!0}),()=>{window.removeEventListener("scroll",q)})),[]),(0,i.useEffect)((()=>{f&&q()}),[f]),o().createElement(Gn,{"data-site-type":v,"data-sponsored":R,"data-header-type":"home","data-collapsed":j,"data-is-displayed":!0,"data-win-cash-back-theme":D,id:"site-header",ref:V,className:s.wrapper},b||o().createElement(K,{site:x,currentUrl:k,banner:E}),o().createElement(Zn,{className:s.header,"data-site-type":v,"data-win-cash-back-theme":D},o().createElement(Wn,{className:s.leftGroup,"data-site-type":v},f&&o().createElement(Vn,{menuItems:a.filter((e=>!!e.link)),isHomepage:C,projectType:r}),n||o().createElement("a",{style:{flexShrink:0},href:z},o().createElement("div",null,o().createElement(ct.L,{style:{display:"flex"},type:Z,badge:"id-ID"===y&&o().createElement("img",{src:d.C.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:y,key:"undefined"!==typeof window?"client":"server",isLightLogo:D}))),!f&&o().createElement(o().Fragment,null,"marryBaby"===v?o().createElement(ti,{menuItems:a,originalMenuItems:a,className:s.navMenu}):$&&o().createElement(ei,{siteType:v,projectType:r,isMobile:f}))),o().createElement(qn,{className:s.rightGroup,"data-site-type":v},!f&&"marryBaby"!==v&&o().createElement(ti,{menuItems:a.filter((e=>y!==At.L.Vietnam||"ecom"!==e.id&&"care"!==e.id)),originalMenuItems:a,className:s.navMenu}),o().createElement(Yn,{className:"profile-nav-group"},t,T&&o().createElement(h.a,{component:"a",href:`${(0,Q.g)(y)}/ai-doctor`,"data-event-category":"Chatbot AI","data-event-action":"Open","data-event-label":"Hamburger Navigation",className:"ai-doctor-nav-item"},o().createElement(Jn,{variant:"tertiary",leftIcon:o().createElement(ot,{size:18,color:"#2F8AF2"}),size:"md",className:"ai-doctor-btn"},null===(p=m.L[y])||void 0===p?void 0:p.SITE_NAME," AI")),N&&o().createElement(h.a,{component:"a",href:`${null===(u=m.S[y])||void 0===u?void 0:u.CLINITY_DOWNLOAD_LINK}`,target:"_blank","data-event-category":"Hamburger Navigation","data-event-action":"Download Clinity","data-event-label":`${null===(g=m.S[y])||void 0===g?void 0:g.CLINITY_DOWNLOAD_LINK}`,"data-cart-menu":!0},o().createElement("img",{src:d.C.getAssetPath("clinity-download.png"),alt:"Clinity",className:"clinity-logo",style:{display:"block"}})),I,o().createElement(tt,{userInfo:S,siteType:v,onLoginClick:_||(()=>{if((0,yt.I)(y))return P();const e=window.location.href;window.location.href=F?(0,Q.n)(`${F}?returnUrl=${e}`):e}),currentUrl:k,onLogout:B,isLoading:O,locale:y,enableAppIntroPage:L,isMobile:f,className:s.profileBtn}),void 0!==M&&o().createElement(o().Fragment,null,!f&&o().createElement("hr",{style:{height:20,width:0,border:"none",borderLeft:"1px solid #E4E8EC"}}),o().createElement(Pt,{"data-cart-menu":"true","data-event-category":"Ecommerce","data-event-action":"Cart Click","data-event-label":k,count:M,locale:y}))))),f&&C&&o().createElement(Qn,{className:"search-wrapper"},o().createElement(ei,{siteType:v,projectType:r,isMobile:f,isHomepage:C})),w?o().isValidElement(w)?o().cloneElement(w,{isCollapsed:j,locale:y,isMobile:f}):w:null,l&&l)},ei=({siteType:e,projectType:t,isMobile:a=!1,isHomepage:n=!1,isRedirectSearchPage:i=!1})=>o().createElement(zt,{mediaQueryKey:"mbUp",className:`${"marryBaby"===e?"marry-baby":""} ${n?"block-show":""}`},o().createElement(Ot,{id:"desktop",projectType:t,isMobile:a,isHomepage:n,isRedirectSearchPage:i})),ti=({menuItems:e,originalMenuItems:t,className:a})=>{const{siteType:n,locale:l,ssrMenuContent:{categories:r,healthTools:s,care:c,together:d,videos:m}}=(0,i.useContext)(Ze);return o().createElement(zt,{className:a,mediaQueryKey:"mbUp",style:{height:"100%"}},o().createElement(Kn,{"data-site-type":n},null===e||void 0===e?void 0:e.map(((e,a)=>o().createElement(Ht,{key:a,item:e,menu:"categories"===e.popupType?o().createElement(Ra,{categories:null===r||void 0===r?void 0:r.items,spotlightsList:null===r||void 0===r?void 0:r.spotlights}):"tools"===e.popupType?o().createElement(wn,{locale:l,healthTools:null===s||void 0===s?void 0:s.items,spotlightHealthTools:null===s||void 0===s?void 0:s.spotlights}):"together"===e.popupType?o().createElement(tn,{communities:null===d||void 0===d?void 0:d.items,spotlights:null===d||void 0===d?void 0:d.spotlights}):"care"===e.popupType?o().createElement(Sa,{careSpecialties:null===c||void 0===c?void 0:c.items,spotlights:null===c||void 0===c?void 0:c.spotlights}):"video"===e.popupType?o().createElement(_n,{spotlightsList:null===m||void 0===m?void 0:m.spotlights}):"other"===e.popupType?o().createElement(Nn,{menuItems:t}):null})))))},ai=r.A.div`
--header-z-index: ${m.a};
top: 0;
z-index: var(--header-z-index);
${$.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;
}
`,ni=e=>{var t,a;const{isMobile:n,locale:l,onTopBarAppears:r,languageOptions:s,sponsorComponent:c,sitewideBanner:p,sitewideBannerShown:u,className:g,logoComponent:h,subHead:v,projectType:f,customClasses:y={}}=e,b=(()=>{const{t:e}=(0,x.u)(),{siteType:t,locale:a,configs:{enableNavDiscover:n,enableNavHealthTools:l,enableNavCare:r,enableNavTogether:s,enableNavEcom:c,enableNavVideo:p,enableAppIntroPage:u,statics:g}}=(0,i.useContext)(Ze),h="marryBaby"===t,v=[u,r,c].filter(Boolean).length>1;return(0,i.useMemo)((()=>{var i;const u=[];return n&&u.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${g.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories/`,niceName:"",thumbnail:h?d.C.getAssetPath("categories-mb.svg"):d.C.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),p&&u.push({name:e("home.navigator.menuItem.video"),id:"video",link:`${g.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/videos/`,niceName:"",thumbnail:d.C.getAssetPath("nav-icons/video.svg"),popupType:"video"}),l&&u.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${g.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(i=m.S[a])||void 0===i?void 0:i.HEALTH_TOOLS)||""}`,thumbnail:h?d.C.getAssetPath("healthtools-mb.svg"):d.C.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&u.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:(0,Q.n)(g.TOGETHER_URL_FE+"/"),thumbnail:h?d.C.getAssetPath("community-mb.svg"):d.C.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&u.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:(0,Q.n)(g.HOME_PAGE_URL+"/shop/"),thumbnail:d.C.getAssetPath("nav-icons/shop.svg"),popupType:null}),r&&u.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:(0,Q.n)(g.HOME_PAGE_URL+"/care/"),thumbnail:d.C.getAssetPath("nav-icons/care.svg"),popupType:null}),v&&u.push({name:e("home.seeMore"),id:"other",link:"",thumbnail:"",popupType:"other",icon:o().createElement(In,{siteType:t,enableSearch:!1,style:{width:"16px",height:"16px"},className:"mobile-hamburger-icon"})}),u}),[])})();(()=>{const{isFirstLogin:e,userState:t}=(0,i.useContext)(Ze),{userInfo:a}=t;(0,i.useEffect)((()=>{(null===a||void 0===a?void 0:a.id)&&(e?(null===a||void 0===a?void 0:a.email)&&""!==(null===a||void 0===a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null===a||void 0===a?void 0:a.id,email:null===a||void 0===a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null===a||void 0===a?void 0:a.name)?{name:null===a||void 0===a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null===a||void 0===a?void 0:a.id,sign_up:!0},(null===a||void 0===a?void 0:a.name)?{name:null===a||void 0===a?void 0:a.name}:{})}:(null===a||void 0===a?void 0:a.email)&&""!==(null===a||void 0===a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null===a||void 0===a?void 0:a.id,email:null===a||void 0===a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null===a||void 0===a?void 0:a.name)?{name:null===a||void 0===a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null===a||void 0===a?void 0:a.id,log_in:!0},(null===a||void 0===a?void 0:a.name)?{name:null===a||void 0===a?void 0:a.name}:{})})}),[])})();const E=u&&!!p,w=!!c,C=!!(null===(a=null===(t=null===c||void 0===c?void 0:c.props)||void 0===t?void 0:t.sponsoredBy)||void 0===a?void 0:a.length),{headerRef:k,defaultHeaderHeight:_,headerHeight:M,headerBottom:A}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:n})=>{const o=(0,i.useRef)(null),[l,r]=(0,i.useState)(0),[s,c]=(0,i.useState)(64),d=(0,i.useCallback)(Tt()((()=>{var e,t,a,n;const i=(null===(e=o.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=o.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=i+200&&(r(i),c((null===(n=o.current)||void 0===n?void 0:n.getBoundingClientRect().bottom)||l))}),200),[]);(0,i.useEffect)((()=>(window.addEventListener("resize",d,{passive:!0}),window.addEventListener("scroll",d,{passive:!0}),d(),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d)})),[]),(0,i.useEffect)((()=>{d()}),[n,a,t,e,o.current]);const m=(0,i.useMemo)((()=>{let i=n?56:60;return a&&(i+=64),t&&(i+=40,e&&(i+=57)),i}),[n,a,e,t]);return{defaultHeaderHeight:m,headerHeight:l||m,headerBottom:s,headerRef:o}})({isShowingSiteWideBanner:E,isSponsored:w,hasSponsoredBanners:C,isMobile:n});return o().createElement(ai,{id:"navigation-v2",style:{"--default-header-height":_+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":A+"px"},className:g},o().createElement("section",{ref:k},o().createElement(Xn,{menuItems:b,onTopBarAppears:r,logoComponent:h,subHead:v,projectType:f,languageMenu:o().createElement(P,{languageOptions:s,locale:l}),customClasses:y})))},ii=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return o().createElement(We,Object.assign({},t),o().createElement(ni,Object.assign({},t)))},oi=e=>(0,n.a)(void 0,void 0,void 0,(function*(){var t,a,n,i,o,l,r,s,c,d,p,u,g,h,v,f,y,b,E,x,w,C,k,M,A;const $={},T="vi-VN_MB"===e;try{const B="tl-PH"===e?"lang=fil":"";try{const[g,h,v,f,y]=yield Promise.all([fetch((0,Q.n)(`${(0,Q.c)(e)}/wp-json/api/categories${B?"?"+B:""}`)).then((e=>e.json())),fetch((0,Q.n)(`${(0,Q.c)(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${B?"&"+B:""}`)).then((e=>e.json())),fetch((0,Q.n)(`${(0,Q.c)(e)}/wp-json/api/${T?"health-tools":"healthtools"}${B?"?"+B:""}`)).then((e=>e.json())),fetch((0,Q.n)(`${(0,Q.c)(e)}/wp-json/api/${T?"health-tools":"healthtools"}/favorites${B?"?"+B:""}`)).then((e=>e.json())),m.V.includes(e)&&fetch((0,Q.n)(`${(0,Q.c)(e)}/wp-json/api/video/navigation`)).then((e=>e.json()))]);$.categories={items:(null===(a=null===(t=null===g||void 0===g?void 0:g.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,da))||[],spotlights:(null===(l=null===(o=null===(i=null===(n=null===h||void 0===h?void 0:h.data)||void 0===n?void 0:n.articles)||void 0===i?void 0:i.map)||void 0===o?void 0:o.call(i,ha))||void 0===l?void 0:l.filter(va))||[]},$.healthTools={items:(null===(s=null===(r=null===v||void 0===v?void 0:v.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,ma))||[],spotlights:(null===(d=null===(c=null===f||void 0===f?void 0:f.data)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,ma))||[]},$.videos={spotlights:(null!==(u=null===(p=null===y||void 0===y?void 0:y.data)||void 0===p?void 0:p.videos)&&void 0!==u?u:[]).map(fa)}}catch(N){}if(T||m.c.includes(e))try{const[t,a]=yield Promise.all([fetch((0,Q.n)(`${(0,Q.b)()}/api/v1/community?website_url=https://${_.y[e]}`)).then((e=>e.json())),fetch((0,Q.n)(`${(0,Q.b)()}/api/v1/options?website_url=https://${_.y[e]}&meta_key=popular_post`)).then((e=>e.json()))]);$.together={items:(null===(v=null===(h=null===(g=null===t||void 0===t?void 0:t.data)||void 0===g?void 0:g.communities)||void 0===h?void 0:h.map)||void 0===v?void 0:v.call(h,J))||[],spotlights:(null===(b=null===(y=null===(f=null===a||void 0===a?void 0:a.data)||void 0===f?void 0:f.posts)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ee))||[]}}catch(L){}if(m.C.includes(e))try{const[t,a]=yield Promise.all([fetch((0,Q.n)((0,Q.d)()+`/api/options/setting_menu?site=${_.y[e]}&type=0`)).then((e=>e.json())),fetch((0,Q.n)((0,Q.d)()+`/api/options/setting_menu?site=${_.y[e]}&type=1`)).then((e=>e.json()))]);$.care={items:(null===(C=null===(w=null===(x=null===(E=null===t||void 0===t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===x?void 0:x.menu_specialty)||void 0===w?void 0:w.map)||void 0===C?void 0:C.call(w,pa))||[],spotlights:(null===(A=null===(M=null===(k=null===a||void 0===a?void 0:a._data.setting_menu)||void 0===k?void 0:k.menu_hospital)||void 0===M?void 0:M.map)||void 0===A?void 0:A.call(M,ua))||[]}}catch(S){}}catch(B){console.error(B)}return $}))},39693:function(e,t,a){"use strict";a.d(t,{S:function(){return w}});var n=a(46587),i=a(73884),o=a.n(i),l=a(36814),r=a(86566),s=a(77686),c=a(69441),d=a(11851);const m="fetch/preview?website_url={website_url}";var p=a(22584);var u=a(50126),g=a(79740),h=a(17437),v=a(35291);const f=d.A.div`
display: flex;
align-items: center;
justify-content: center;
padding: 1em;
button {
position: relative;
}
`,y=h.i7`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`;d.A.div`
display: flex;
width: fit-content;
width: -moz-fit-content;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
background: white;
border-radius: ${v.w.borderRadius};
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
-2px 2px 5px rgba(67, 86, 100, 0.123689);
.loading-spinner {
width: 24px;
height: 24px;
margin-bottom: 0.5rem;
animation: ${y} 1.2s linear infinite;
}
&[data-is-marrybaby='true'] {
box-shadow: none;
}
`;const b=({className:e,size:t="md"})=>{const{t:a}=(0,g.u)();return o().createElement(f,{className:e},o().createElement(u.B,{size:t,color:"transparent",isLoading:!0},a("loading")))},E=d.A.div`
.link-info-container {
padding: 0.5rem 1rem;
background: ${e=>e.color||"#f4faff"};
}
.link-image-wrapper {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%;
&.fetching {
background: lightgray;
}
.loading-spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.link-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
}
a {
text-decoration: none;
}
&[data-is-marrybaby='true'] {
overflow: hidden;
border-radius: 1rem;
}
`,x=({id:e,autoplay:t})=>{const a=(0,i.useRef)(null),n=(({url:e,onLoad:t,onError:a})=>{const[n,o]=(0,i.useState)(e?"loading":"idle");return(0,i.useEffect)((()=>{if(!e)return void o("idle");let n=document.querySelector(`script[src="${e}"]`);const i=()=>{o("ready"),null===t||void 0===t||t()},l=()=>{o("error"),null===a||void 0===a||a()};return n||(n=document.createElement("script"),n.type="application/javascript",n.src=e,n.async=!0,document.body.appendChild(n),n.addEventListener("load",i),n.addEventListener("error",l)),n.addEventListener("load",i),n.addEventListener("error",l),()=>{n.removeEventListener("load",i),n.removeEventListener("error",l)}}),[e]),n})({url:"https://cdn.plyr.io/3.7.8/plyr.js"});return(0,i.useEffect)((()=>{if(!document.getElementById("hhg-plyr-player")){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href="https://cdn.plyr.io/3.7.8/plyr.css",e.id="hhg-plyr-player",document.head.appendChild(e)}"ready"!==n&&"undefined"===typeof Plyr||new Plyr(a.current.querySelector('[data-id="player"]'),{autoplay:t,muted:!0})}),[n]),o().createElement(o().Fragment,null,o().createElement(l.a,{ref:a,sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#000","&, > div":{width:"100%",height:"100%"}}},o().createElement("div",{"data-id":"player"},o().createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${e}?&mute=1&enablejsapi=1&rel=0`,allowFullScreen:!0,frameBorder:"0"}))))},w=({url:e,image:t,className:a,style:l,baseUrl:d="",autoPlay:u=!0,onPushStatus:g})=>{const{data:{locale:h}}=(0,i.useContext)(c.T),[v,f]=(0,i.useState)(null);(0,i.useEffect)((()=>{(0,n.a)(void 0,void 0,void 0,(function*(){if(!t){if(!e)return f(null);f((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),(0,c.c)((0,c.e)(m,{_locale:h},void 0,d),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!d).then((t=>{var a,n;f({url:e,image:(null===(a=null===t||void 0===t?void 0:t.data)||void 0===a?void 0:a.image)||(null===(n=null===t||void 0===t?void 0:t.data)||void 0===n?void 0:n.logo)})})).catch((()=>{f(null)}))}}))}),[e,t]);const y=t||(null===v||void 0===v?void 0:v.image),w=(null===v||void 0===v?void 0:v.url)||e,C=(0,i.useMemo)((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(w)),[w]),k=(0,i.useMemo)((()=>w.includes("facebook.com")||w.includes("fb.watch")),[w]),_=(0,i.useRef)(0),M=(0,i.useRef)(0),[A,$]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=()=>{var e;const t=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!_.current||Math.abs((_.current-t.width)/(null===t||void 0===t?void 0:t.width))>.2)&&(_.current=Math.floor(t.width),a=!0),t&&(!M.current||Math.abs((M.current-t.height)/(null===t||void 0===t?void 0:t.height))>.2)&&(M.current=Math.floor(t.height),a=!0),a&&$((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),(0,i.useEffect)((()=>{(null===v||void 0===v?void 0:v.image)&&(null===v||void 0===v?void 0:v.url)&&(null===g||void 0===g||g(!0))}),[v]);const T=(0,i.useRef)(null),N=(0,r.xd)();return o().createElement(E,{className:`${a} no-replace-click`,style:l,ref:T,color:N.colors[N.primaryColor][0]},t||!C&&!k?o().createElement("a",{href:w,target:"_blank",rel:"noreferrer"},o().createElement("div",{className:"link-image-wrapper "+((null===v||void 0===v?void 0:v.isFetching)?"fetching":"")},(null===v||void 0===v?void 0:v.isFetching)?o().createElement(b,{className:"loading-spinner"}):o().createElement(s.I,{className:"link-image",src:y||p.D,backupSrc:p.D,alt:w}))):o().createElement("div",{className:"link-image-wrapper"},C?o().createElement(x,{id:C,autoplay:u}):k?o().createElement("iframe",{key:String(A),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(w)}&autoplay=${u?1:0}&show_text=false&t=0&width=${_.current}&height=${M.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:M.current,width:_.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))}},28385:function(e,t,a){"use strict";a.d(t,{F:function(){return O}});var n=a(73884),i=a.n(n),o=a(87835),l=a(74353),r=a.n(l),s=a(14677),c=a(50315),d=a(36814),m=a(74121),p=a(4766),u=a(77686),g=a(11851),h=a(35291),v=a(27516),f=a(40927),y=a(46587);(0,g.A)((e=>{var{type:t}=e,a=(0,y._)(e,["type"]);return i().createElement(t,a)}))`
color: var(--text-color, ${h.w.mbColors.dark});
font-family: Krub;
font-weight: 600;
letter-spacing: -0.2px;
&[data-type='headline-1'] {
font-size: 40px;
line-height: 60px;
}
&[data-type='headline-2'] {
font-size: 32px;
line-height: 48px;
}
&[data-type='headline-3'] {
font-size: 24px;
line-height: 40px;
}
&[data-type='headline-4'] {
font-size: 18px;
line-height: 32px;
}
`;const b=g.A.p`
color: var(--text-color, ${h.w.mbColors.dark});
letter-spacing: -0.2px;
&[data-type='subtitle-1'] {
font-size: 16px;
font-weight: 600;
line-height: 26px;
}
&[data-type='subtitle-2'] {
font-size: 14px;
font-weight: 500;
line-height: 24px;
}
&[data-type='subtitle-3'] {
font-size: 12px;
font-weight: 500;
line-height: 20px;
}
&[data-type='bodytext-1'] {
font-size: 16px;
font-weight: 400;
line-height: 28px;
}
&[data-type='bodytext-2'] {
font-size: 14px;
font-weight: 400;
line-height: 24px;
}
&[data-type='bodytext-3'] {
font-size: 12px;
font-weight: 400;
line-height: 20px;
}
&[data-type='caption-1'] {
font-size: 10px;
font-weight: 500;
letter-spacing: -0.1px;
line-height: 14px;
}
&[data-type='caption-2'] {
font-size: 10px;
font-weight: 400;
letter-spacing: -0.1px;
line-height: 14px;
}
`,E=e=>{var{type:t,color:a,style:n}=e,o=(0,y._)(e,["type","color","style"]);return i().createElement(b,Object.assign({"data-type":t,style:Object.assign(Object.assign({},n),a&&{"--text-color":a})},o))},x=g.A.footer`
background-color: #1b3250;
.inner {
padding: 64px 24px 98px 24px;
margin: 0 auto;
}
.newsletter {
padding: 24px 0;
}
.footer-logo {
max-width: 132px;
max-height: 32px;
&[data-is-sehat='true'] {
max-width: 250px;
}
img {
object-fit: contain;
}
}
.social {
margin-top: 24px;
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
> .icons {
display: flex;
gap: 16px;
}
}
hr {
height: 1px;
border: none;
margin: 16px 0 16px 0;
background: ${h.w.colors.neutral500};
opacity: 0.1;
outline: none;
}
.footer-menu-column {
min-width: 168px;
}
.footer-menu-title {
margin-bottom: 16px;
}
.footer-menu-link {
display: block;
}
.footer-menu-link-wrapper {
display: flex;
flex-direction: column;
gap: 12px;
}
.copyright {
display: flex;
flex-direction: column;
gap: 16px;
padding-top: 8px;
.copyright-content {
color: ${h.w.colors.neutral500};
font-size: 12px;
}
.copyright-image-wrapper {
flex-shrink: 0;
flex-wrap: wrap;
display: flex;
gap: 16px;
justify-content: flex-end;
.copyright-image {
align-self: flex-start;
img {
height: 32px;
}
}
}
}
.otherSites {
display: flex;
gap: 16px;
align-items: center;
padding: 19px 0;
border-top: 1px solid ${h.w.colors.neutral100}1a;
border-bottom: 1px solid ${h.w.colors.neutral100}1a;
.flags {
display: flex;
gap: 12px;
}
}
.signupButton {
display: none;
border: none;
margin-top: 16px;
outline: none;
text-transform: uppercase;
}
${p.M.mbDown} {
.inner {
padding: 64px 0;
}
.social {
flex-direction: column;
gap: 10px;
align-items: start;
}
hr {
margin-top: 0px;
}
.copyright {
align-items: center;
text-align: center;
}
.copyright-image-wrapper {
justify-content: center;
max-width: unset;
}
.otherSites {
flex-direction: column;
padding: 24px 0;
.linkTitle {
text-align: center;
}
.flags {
flex-wrap: wrap;
justify-content: center;
}
}
.footer-menu-title {
margin-bottom: 12px;
}
.footer-menu {
display: grid;
grid-template-columns: repeat(2, 1fr);
> .footer-menu-column {
padding: 24px 0;
}
> .footer-menu-column:first-child {
grid-column-start: 1;
grid-column-end: 3;
border-top: 1px solid ${h.w.colors.neutral100}1a;
border-bottom: 1px solid ${h.w.colors.neutral100}1a;
> .footer-menu-link-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}
}
.otherSites {
margin-bottom: 24px;
}
}
${p.M.mbUp} {
.newsletter > p {
max-width: 360px;
}
.hrMobile {
display: none;
}
.copyright {
gap: 24px;
flex-direction: row-reverse;
align-items: center;
justify-content: space-between;
}
.otherSites {
margin-bottom: 40px;
}
.columns {
display: flex;
flex-direction: row;
width: 100%;
gap: 16px;
margin-bottom: 40px;
> div:nth-child(1) {
display: flex;
flex-direction: column;
flex: 1;
}
> div:nth-child(2) {
display: flex;
flex-direction: row;
gap: 24px;
}
}
}
`,w=g.A.img`
width: 32px;
height: 32px;
${p.M.mbDown} {
width: 24px;
height: 24px;
}
.country-flag {
width: 100%;
height: 100%;
}
`,C=({url:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:n})=>i().createElement(w,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":a,"data-content-label":n}),k=({title:e,items:t,locale:a,index:n})=>{const{isMobile:o}=(0,u.u)();return i().createElement("div",{className:"footer-menu-column"},e?i().createElement(m.T,{size:o?"s4":"s3",className:"footer-menu-title",weight:o?"regular":"semiBold",color:"neutral.6"},e):null,i().createElement("div",{className:"footer-menu-link-wrapper"},null===t||void 0===t?void 0:t.map(((e,t)=>i().createElement(m.T,{size:o?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${v.y[a]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:o&&0===n?"semiBold":"regular"},e.title)))))},_=({className:e,footerInfo:t,locale:a})=>{var n,l,s,c,d,p,g,h,v,f,y;const{isMobile:b}=(0,u.u)(),E=null===t||void 0===t?void 0:t.menu,w=(null===(l=null===(n=null===t||void 0===t?void 0:t.general)||void 0===n?void 0:n.verified)||void 0===l?void 0:l.filter(Boolean))||[];return i().createElement(x,{className:e},i().createElement(o.C,null,i().createElement("div",{className:"inner"},i().createElement("a",{href:"/"},i().createElement("img",{loading:"lazy",className:"footer-logo",src:null===(s=null===t||void 0===t?void 0:t.general)||void 0===s?void 0:s.logo,alt:"Logo","data-is-sehat":"id-ID"===a})),i().createElement("div",{className:"columns"},i().createElement("div",{className:"newsletter"},i().createElement(m.T,{size:b?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(c=null===t||void 0===t?void 0:t.general)||void 0===c?void 0:c.content),i().createElement("div",{className:"social"},i().createElement(m.T,{size:"p4",color:"neutral.6"},null===(d=null===t||void 0===t?void 0:t.social)||void 0===d?void 0:d.title),i().createElement("div",{className:"icons"},null===(g=null===(p=null===t||void 0===t?void 0:t.social)||void 0===p?void 0:p.socials)||void 0===g?void 0:g.map(((e,t)=>i().createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},i().createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon",width:"24",height:"24"}))))))),i().createElement("div",{className:"footer-menu"},E&&i().createElement(i().Fragment,null,null===E||void 0===E?void 0:E.map(((e,t)=>i().createElement(k,{title:e.menu_title,items:e.items,locale:a,key:t,index:t})))))),i().createElement("div",{className:"otherSites"},i().createElement(m.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(h=null===t||void 0===t?void 0:t.branch)||void 0===h?void 0:h.title),i().createElement("div",{className:"flags"},null===(f=null===(v=null===t||void 0===t?void 0:t.branch)||void 0===v?void 0:v.branch)||void 0===f?void 0:f.map(((e,t)=>i().createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},i().createElement(C,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))),i().createElement("div",{className:"copyright"},i().createElement("div",{className:"copyright-image-wrapper"},w.length?w.map(((e,t)=>i().createElement("a",{href:e.url,key:t,className:"copyright-image"},i().createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),i().createElement(m.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},i().createElement("div",{dangerouslySetInnerHTML:{__html:null===(y=null===t||void 0===t?void 0:t.general)||void 0===y?void 0:y.copyright.replace(/{currentYear}/gi,r()().get("year").toString())}}))))))},M=g.A.footer`
position: relative;
overflow: hidden;
.icons {
margin-top: 12px;
margin-bottom: 20px;
> a:not(:last-child) {
margin-right: 16px;
}
}
a {
text-decoration: none;
}
`,A=g.A.div`
position: relative;
padding: 80px 0 40px;
margin: auto 68px;
display: flex;
justify-content: space-between;
align-items: flex-start;
border-bottom: 1px solid ${h.w.colors.neutral200};
${p.M.tdDown} {
margin: auto 16px;
flex-wrap: wrap;
row-gap: 32px;
column-gap: 16px;
}
${p.M.mbDown} {
margin: auto 0;
}
`,$=g.A.div`
display: flex;
justify-content: space-between;
gap: 12px;
flex-direction: column;
${p.M.mbDown} {
flex: 1 1 160px;
}
.title {
padding-bottom: 4px;
}
`,T=g.A.div`
display: flex;
justify-content: space-between;
gap: 12px;
flex-direction: column;
`,N=g.A.div`
background-color: #{map-get($mbColors, 'dark')};
padding: 16px 0;
position: relative;
img {
width: 89px;
height: 32px;
}
.content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 174px;
margin: auto 68px;
${p.M.tdDown} {
margin: auto 16px;
}
${p.M.mbDown} {
flex-direction: column-reverse;
gap: 16px;
align-items: flex-start;
margin: auto 0;
}
}
.verify {
display: flex;
align-items: flex-start;
gap: 8px;
}
`,L=g.A.div`
padding: 40px 0;
${p.M.mbUp} {
margin: auto 68px;
}
`,S=g.A.div`
display: flex;
gap: 16px;
.social-logo {
width: 28px;
}
`,B=({logoType:e="marryBaby",footerMenu:t,background:a})=>{var n;if(!t)return null;const{general:l,menu:p,socials:u}=t;return i().createElement(M,{style:{backgroundColor:a||"none"}},i().createElement(o.C,null,i().createElement(A,null,null===p||void 0===p?void 0:p.map((({menu_title:e,items:t},a)=>i().createElement($,{key:`mbf${a}`},i().createElement(E,{className:"title",type:"subtitle-1",color:h.w.mbColors.pink},e),null===t||void 0===t?void 0:t.map((({title:e,url:t},a)=>i().createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},i().createElement(T,{key:`mbitem${a}`},i().createElement(E,{type:"bodytext-2",color:h.w.mbColors.gray},e)))))))))),i().createElement(o.C,null,i().createElement(L,null,i().createElement(s.s,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},i().createElement(c.B,{spacing:"24px",className:"info-item"},i().createElement(f.L,{className:"logo",type:e}),i().createElement(m.T,{size:"p4",as:"div"},i().createElement("div",{dangerouslySetInnerHTML:{__html:null===l||void 0===l?void 0:l.content}})),i().createElement(S,null,null===u||void 0===u?void 0:u.map((({icon:e,name:t,url:a},n)=>i().createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},i().createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),i().createElement(d.a,{className:"info-item",sx:{paddingTop:"7px"}},i().createElement(m.T,{size:"p4",as:"div"},i().createElement("div",{dangerouslySetInnerHTML:{__html:null===l||void 0===l?void 0:l.information}})))))),i().createElement(N,null,i().createElement(o.C,null,i().createElement("div",{className:"content"},i().createElement(m.T,{size:"p5",color:"#fff",as:"div"},i().createElement("div",{dangerouslySetInnerHTML:{__html:null===l||void 0===l?void 0:l.copyright.replace(/{currentYear}/gi,r()().get("year").toString())}})),i().createElement("div",{className:"verify"},null===(n=null===l||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>i().createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))},O=({locale:e,footerInfo:t,siteType:a,background:n})=>"helloSites"===a?i().createElement(_,{locale:e,footerInfo:t||{}}):i().createElement(B,{footerMenu:t,background:n})},87835:function(e,t,a){"use strict";a.d(t,{C:function(){return l}});var n=a(73884),i=a.n(n),o="d76E4SH";const l=({children:e,className:t,style:a,type:n})=>i().createElement("div",{className:`${o} ${t||""}`,style:a,"data-type":n},e)},47901:function(e,t,a){"use strict";a.d(t,{M:function(){return s}});var n=a(46587),i=a(73884),o=a.n(i),l=a(3328),r=(0,a(50736).r)((e=>({root:{},inner:{},content:{borderRadius:16},header:{borderBottom:`1px solid ${e.colors.neutral[1]}`,marginRight:0,marginBottom:0,padding:"12px"},overlay:{},title:{fontSize:16,fontWeight:700,lineHeight:1.5},body:{},close:{cursor:"pointer",width:"unset",height:"unset",svg:{width:"24px !important",height:"24px !important"}}})));const s=e=>{var{styles:t,classNames:a,transitionProps:i}=e,s=(0,n._)(e,["styles","classNames","transitionProps"]);const{classes:c}=r(void 0,{name:"Modal",styles:t,classNames:a});return o().createElement(l.a,Object.assign({centered:!0,classNames:c,transitionProps:Object.assign({transition:"fade"},i),trapFocus:!1},s))}},75734:function(e,t,a){"use strict";a.d(t,{a:function(){return n}});const n=e=>{let t=String(e);if(e>=1e3){const a=["","k","m","b","t"],n=(""+e).length;let i=Math.floor(n/3);const o=6===n;let l;if(o)l=Math.round(e/1e3);else for(let t=2;t>=1;t--){l=parseFloat((0!=i?e/Math.pow(1e3,i):e).toPrecision(t));if((l+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}l&&l%1!=0?l=l.toFixed(1):o&&l&&l/1e3>=1&&(i+=1,l/=1e3),t=l+(6===n?a[i-1]:a[i])}return t}},43388:function(e,t,a){"use strict";var n=a(73884),i=a.n(n),o=a(41303),l=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var{size:t,color:a=o.fT}=e,n=l(e,["size","color"]);const r=(0,o.D5)(t);return i().createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:"none"},n),i().createElement("path",{d:"m12 13.054-5.073 5.073a.73.73 0 0 1-.522.213.7.7 0 0 1-.532-.213.72.72 0 0 1-.217-.526q0-.31.217-.527L10.946 12 5.873 6.928a.73.73 0 0 1-.212-.522.7.7 0 0 1 .212-.531.72.72 0 0 1 .527-.218q.31 0 .527.218L12 10.947l5.073-5.073a.73.73 0 0 1 .522-.213.7.7 0 0 1 .532.213q.217.216.217.526a.72.72 0 0 1-.217.527l-5.073 5.074 5.073 5.073q.208.207.212.522a.7.7 0 0 1-.212.531.72.72 0 0 1-.527.218.72.72 0 0 1-.527-.218z",fill:a}))}},6279:function(e){e.exports=function(){"use strict";return function(e,t,a){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,a,i){return n.fromToBase(e,t,a,i)}a.en.relativeTime=i,n.fromToBase=function(t,n,o,l,r){for(var s,c,d,m=o.$locale().relativeTime||i,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],u=p.length,g=0;g0,v<=h.r||!h.r){v<=1&&g>0&&(h=p[g-1]);var f=m[h.l];r&&(v=r(""+v)),c="string"==typeof f?f.replace("%d",v):f(v,n,h.l,d);break}}if(n)return c;var y=d?m.future:m.past;return"function"==typeof y?y(c):y.replace("%s",c)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var l=function(e){return e.$u?a.utc():a()};n.toNow=function(e){return this.to(l(this),e)},n.fromNow=function(e){return this.from(l(this),e)}}}()},84144:function(e){e.exports=function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t1,l={elements_selector:".lazy",container:a||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},r=function(t){return e({},l,t)},s=function(e,t){var a,n="LazyLoad::Initialized",i=new e(t);try{a=new CustomEvent(n,{detail:{instance:i}})}catch(e){(a=document.createEvent("CustomEvent")).initCustomEvent(n,!1,!1,{instance:i})}window.dispatchEvent(a)},c="src",d="srcset",m="sizes",p="poster",u="llOriginalAttrs",g="data",h="loading",v="loaded",f="applied",y="error",b="native",E="data-",x="ll-status",w=function(e,t){return e.getAttribute(E+t)},C=function(e){return w(e,x)},k=function(e,t){return function(e,t,a){var n="data-ll-status";null!==a?e.setAttribute(n,a):e.removeAttribute(n)}(e,0,t)},_=function(e){return k(e,null)},M=function(e){return null===C(e)},A=function(e){return C(e)===b},$=[h,v,f,y],T=function(e,t,a,n){e&&(void 0===n?void 0===a?e(t):e(t,a):e(t,a,n))},N=function(e,t){i?e.classList.add(t):e.className+=(e.className?" ":"")+t},L=function(e,t){i?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},S=function(e){return e.llTempImage},B=function(e,t){if(t){var a=t._observer;a&&a.unobserve(e)}},O=function(e,t){e&&(e.loadingCount+=t)},I=function(e,t){e&&(e.toLoadCount=t)},D=function(e){for(var t,a=[],n=0;t=e.children[n];n+=1)"SOURCE"===t.tagName&&a.push(t);return a},P=function(e,t){var a=e.parentNode;a&&"PICTURE"===a.tagName&&D(a).forEach(t)},F=function(e,t){D(e).forEach(t)},z=[c],R=[c,p],j=[c,d,m],H=[g],U=function(e){return!!e[u]},V=function(e){return e[u]},G=function(e){return delete e[u]},Z=function(e,t){if(!U(e)){var a={};t.forEach((function(t){a[t]=e.getAttribute(t)})),e[u]=a}},W=function(e,t){if(U(e)){var a=V(e);t.forEach((function(t){!function(e,t,a){a?e.setAttribute(t,a):e.removeAttribute(t)}(e,t,a[t])}))}},q=function(e,t,a){N(e,t.class_applied),k(e,f),a&&(t.unobserve_completed&&B(e,t),T(t.callback_applied,e,a))},Y=function(e,t,a){N(e,t.class_loading),k(e,h),a&&(O(a,1),T(t.callback_loading,e,a))},K=function(e,t,a){a&&e.setAttribute(t,a)},Q=function(e,t){K(e,m,w(e,t.data_sizes)),K(e,d,w(e,t.data_srcset)),K(e,c,w(e,t.data_src))},J={IMG:function(e,t){P(e,(function(e){Z(e,j),Q(e,t)})),Z(e,j),Q(e,t)},IFRAME:function(e,t){Z(e,z),K(e,c,w(e,t.data_src))},VIDEO:function(e,t){F(e,(function(e){Z(e,z),K(e,c,w(e,t.data_src))})),Z(e,R),K(e,p,w(e,t.data_poster)),K(e,c,w(e,t.data_src)),e.load()},OBJECT:function(e,t){Z(e,H),K(e,g,w(e,t.data_src))}},X=["IMG","IFRAME","VIDEO","OBJECT"],ee=function(e,t){!t||function(e){return e.loadingCount>0}(t)||function(e){return e.toLoadCount>0}(t)||T(e.callback_finish,t)},te=function(e,t,a){e.addEventListener(t,a),e.llEvLisnrs[t]=a},ae=function(e,t,a){e.removeEventListener(t,a)},ne=function(e){return!!e.llEvLisnrs},ie=function(e){if(ne(e)){var t=e.llEvLisnrs;for(var a in t){var n=t[a];ae(e,a,n)}delete e.llEvLisnrs}},oe=function(e,t,a){!function(e){delete e.llTempImage}(e),O(a,-1),function(e){e&&(e.toLoadCount-=1)}(a),L(e,t.class_loading),t.unobserve_completed&&B(e,a)},le=function(e,t,a){var n=S(e)||e;ne(n)||function(e,t,a){ne(e)||(e.llEvLisnrs={});var n="VIDEO"===e.tagName?"loadeddata":"load";te(e,n,t),te(e,"error",a)}(n,(function(i){!function(e,t,a,n){var i=A(t);oe(t,a,n),N(t,a.class_loaded),k(t,v),T(a.callback_loaded,t,n),i||ee(a,n)}(0,e,t,a),ie(n)}),(function(i){!function(e,t,a,n){var i=A(t);oe(t,a,n),N(t,a.class_error),k(t,y),T(a.callback_error,t,n),a.restore_on_error&&W(t,j),i||ee(a,n)}(0,e,t,a),ie(n)}))},re=function(e,t,a){!function(e){return X.indexOf(e.tagName)>-1}(e)?function(e,t,a){!function(e){e.llTempImage=document.createElement("IMG")}(e),le(e,t,a),function(e){U(e)||(e[u]={backgroundImage:e.style.backgroundImage})}(e),function(e,t,a){var n=w(e,t.data_bg),i=w(e,t.data_bg_hidpi),l=o&&i?i:n;l&&(e.style.backgroundImage='url("'.concat(l,'")'),S(e).setAttribute(c,l),Y(e,t,a))}(e,t,a),function(e,t,a){var n=w(e,t.data_bg_multi),i=w(e,t.data_bg_multi_hidpi),l=o&&i?i:n;l&&(e.style.backgroundImage=l,q(e,t,a))}(e,t,a),function(e,t,a){var n=w(e,t.data_bg_set);if(n){var i=n.split("|"),o=i.map((function(e){return"image-set(".concat(e,")")}));e.style.backgroundImage=o.join(),""===e.style.backgroundImage&&(o=i.map((function(e){return"-webkit-image-set(".concat(e,")")})),e.style.backgroundImage=o.join()),q(e,t,a)}}(e,t,a)}(e,t,a):function(e,t,a){le(e,t,a),function(e,t,a){var n=J[e.tagName];n&&(n(e,t),Y(e,t,a))}(e,t,a)}(e,t,a)},se=function(e){e.removeAttribute(c),e.removeAttribute(d),e.removeAttribute(m)},ce=function(e){P(e,(function(e){W(e,j)})),W(e,j)},de={IMG:ce,IFRAME:function(e){W(e,z)},VIDEO:function(e){F(e,(function(e){W(e,z)})),W(e,R),e.load()},OBJECT:function(e){W(e,H)}},me=function(e,t){(function(e){var t=de[e.tagName];t?t(e):function(e){if(U(e)){var t=V(e);e.style.backgroundImage=t.backgroundImage}}(e)})(e),function(e,t){M(e)||A(e)||(L(e,t.class_entered),L(e,t.class_exited),L(e,t.class_applied),L(e,t.class_loading),L(e,t.class_loaded),L(e,t.class_error))}(e,t),_(e),G(e)},pe=["IMG","IFRAME","VIDEO"],ue=function(e){return e.use_native&&"loading"in HTMLImageElement.prototype},ge=function(e,t,a){e.forEach((function(e){return function(e){return e.isIntersecting||e.intersectionRatio>0}(e)?function(e,t,a,n){var i=function(e){return $.indexOf(C(e))>=0}(e);k(e,"entered"),N(e,a.class_entered),L(e,a.class_exited),function(e,t,a){t.unobserve_entered&&B(e,a)}(e,a,n),T(a.callback_enter,e,t,n),i||re(e,a,n)}(e.target,e,t,a):function(e,t,a,n){M(e)||(N(e,a.class_exited),function(e,t,a,n){a.cancel_on_exit&&function(e){return C(e)===h}(e)&&"IMG"===e.tagName&&(ie(e),function(e){P(e,(function(e){se(e)})),se(e)}(e),ce(e),L(e,a.class_loading),O(n,-1),_(e),T(a.callback_cancel,e,t,n))}(e,t,a,n),T(a.callback_exit,e,t,n))}(e.target,e,t,a)}))},he=function(e){return Array.prototype.slice.call(e)},ve=function(e){return e.container.querySelectorAll(e.elements_selector)},fe=function(e){return function(e){return C(e)===y}(e)},ye=function(e,t){return function(e){return he(e).filter(M)}(e||ve(t))},be=function(e,a){var i=r(e);this._settings=i,this.loadingCount=0,function(e,t){n&&!ue(e)&&(t._observer=new IntersectionObserver((function(a){ge(a,e,t)}),function(e){return{root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}}(e)))}(i,this),function(e,a){t&&(a._onlineHandler=function(){!function(e,t){var a;(a=ve(e),he(a).filter(fe)).forEach((function(t){L(t,e.class_error),_(t)})),t.update()}(e,a)},window.addEventListener("online",a._onlineHandler))}(i,this),this.update(a)};return be.prototype={update:function(e){var t,i,o=this._settings,l=ye(e,o);I(this,l.length),!a&&n?ue(o)?function(e,t,a){e.forEach((function(e){-1!==pe.indexOf(e.tagName)&&function(e,t,a){e.setAttribute("loading","lazy"),le(e,t,a),function(e,t){var a=J[e.tagName];a&&a(e,t)}(e,t),k(e,b)}(e,t,a)})),I(a,0)}(l,o,this):(i=l,function(e){e.disconnect()}(t=this._observer),function(e,t){t.forEach((function(t){e.observe(t)}))}(t,i)):this.loadAll(l)},destroy:function(){this._observer&&this._observer.disconnect(),t&&window.removeEventListener("online",this._onlineHandler),ve(this._settings).forEach((function(e){G(e)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){var t=this,a=this._settings;ye(e,a).forEach((function(e){B(e,t),re(e,a,t)}))},restoreAll:function(){var e=this._settings;ve(e).forEach((function(t){me(t,e)}))}},be.load=function(e,t){var a=r(t);re(e,a)},be.resetStatus=function(e){_(e)},t&&function(e,t){if(t)if(t.length)for(var a,n=0;a=t[n];n+=1)s(e,a);else s(e,t)}(be,window.lazyLoadOptions),be}()},80037:function(e,t,a){"use strict";function n(e){for(var t=1;t