(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[6443],{85509:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var i=n(73884);const a=e=>i.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),i.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"}))},94688:function(e,t,n){"use strict";n.d(t,{L:function(){return P},S:function(){return X},V:function(){return Z},i:function(){return M}});var i=n(73884),a=n.n(i),o=n(87018),r=n(11851),l=n(35291),s=n(15096),c=n(20763),d=n(49697),u=n(20486),m=n(73591),p=n(50736),h=n(50315),g=n(36814),f=n(29019),v=n(61718),E=n(48085),b=n(14677),y=n(74558),C=n(72809),_=n(9669),x=n(30055),w=n(85716),k=n(27516),S=n(43388),T=n(80037),I=n(36257);const O=["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"],M=(e="")=>O.some((t=>new URL(e).origin.endsWith(t))),A=r.A.a`
display: inline-flex;
position: relative;
flex-direction: row;
align-items: center;
padding: 7px 11px;
gap: 2px;
background: ${l.w.colors.white};
border: 1px solid ${l.w.colors.neutral100};
border-radius: 20px;
color: ${l.w.colors.gray600};
font-weight: 600;
font-size: 12px;
line-height: 18px;
text-decoration: none;
cursor: pointer;
`,B=r.A.div`
position: relative;
display: inline-block;
`,N=r.A.div`
position: relative;
`,R=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));
}
}
`,L=r.A.div`
display: flex;
height: 40px;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-radius: ${l.w.borderRadius};
cursor: pointer;
.check-icon {
width: 16px;
height: 16px;
}
&[data-selected='false'] {
background-color: ${l.w.colors.gray100};
}
`,D=r.A.div`
position: fixed;
z-index: 20;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: default;
`,U=({options:e,label:t,labelRenderer:n,selected:o,onChange:r,showSelected:l=!0,style:d={},showIndicator:u=!0})=>{const[m,p]=(0,i.useState)(!1);return a().createElement(a().Fragment,null,a().createElement(B,null,a().createElement(N,{onClick:()=>p((e=>!e))},t||(null===n||void 0===n?void 0:n(m))||null,a().createElement(R,{"data-is-open":m,style:d,"data-show-indicator":u},e.map(((e,t)=>a().createElement(L,{key:t,"data-selected":l&&o===e.value,onClick:t=>{o!==e.value&&(r(e.value),p((e=>!e))),t.stopPropagation()}},a().createElement(s.T,{size:"p3"},e.label),l&&o===e.value&&a().createElement("img",{src:c.C.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a().createElement(D,{onClick:()=>p(!1)}))},P=({languageOptions:e,locale:t})=>{var n,i;const o=null===e||void 0===e?void 0:e.find((e=>e.locale===t));return(null===e||void 0===e?void 0:e.length)?a().createElement(U,{options:e,selected:o.value,label:a().createElement(F,{locale:t,label:o.label||(null===(i=null===(n=t.split("-"))||void 0===n?void 0:n[0])||void 0===i?void 0:i.toUpperCase())}),onChange:e=>{"undefined"!==typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},F=({locale:e,label:t,href:n})=>{var i,r,l;return a().createElement(A,{href:n},a().createElement(o.F,{country:null===(r=null===(i=null===e||void 0===e?void 0:e.split("-"))||void 0===i?void 0:i[1])||void 0===r?void 0:r.toUpperCase(),width:16,height:16,rounded:!0,language:null===(l=null===e||void 0===e?void 0:e.split("-"))||void 0===l?void 0:l[0]}),a().createElement("span",null,t))};var j=(0,p.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 z=e=>{var{data:t,layout:n,styles:o}=e,r=(0,d._)(e,["data","layout","styles"]);const{title:l,totalView:c,imageMedium:u,createTime:m}=t,{classes:p,cx:v}=j({layout:n},{name:"VideoItem__ShortsItem",styles:o}),{t:E}=(0,C.u)(),b=(0,i.useMemo)((()=>[c&&E("common.totalView",{number:(0,y.a)(c)}),m].filter(Boolean).join(' ')),[c,m]),_=(0,i.useMemo)((()=>a().createElement(h.B,{spacing:4,className:v(p.overlayInfo,"overlay-info")},a().createElement(s.T,{size:"s3",className:v(p.title),lineClamp:2},l),a().createElement(s.T,{className:p.subTitle,size:"n1",dangerouslySetInnerHTML:{__html:b}}))),[l,b]);return a().createElement(g.a,Object.assign({},r,{className:p.root}),a().createElement(g.a,{className:p.inner},a().createElement("div",{className:p.thumbWrapper},a().createElement(f.g,{ratio:240/431,className:p.thumbFrame},a().createElement("img",{src:u||"",className:p.itemThumbImg,alt:l,loading:"lazy"}),"overlay"===n&&a().createElement(g.a,{className:v(p.overlayWrapper,"item-overlay-wrapper")},a().createElement(g.a,{className:v(p.overlay,"item-overlay")},_)))),"overlay"!==n&&_))},$=e=>{var{size:t=24,color:n=l.w.colors.neutral600}=e,i=(0,d._)(e,["size","color"]);return a().createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 47 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a().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:n,fillOpacity:".75"}),a().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,p.r)(((e,{active:t,layout:n})=>({root:{display:"block",borderRadius:4,[e.fn.largerThan("sm")]:{"&:hover":{[`.${(0,v.k)("overlay")}`]:Object.assign({},!t&&{backgroundColor:"rgba(0, 0, 0, .4)"})}}},inner:Object.assign(Object.assign({display:"flex",gap:8,"&, *":{pointerEvents:"none !important"}},"default"===n&&{flexDirection:"column"}),"horizon"===n&&{gap:12,[e.fn.largerThan("sm")]:{gap:24}}),thumb:Object.assign({},"horizon"===n&&{width:140,flexShrink:0,[e.fn.largerThan("sm")]:{width:164}}),thumbWrapper:{},thumbFrame:{},title:{lineHeight:(0,E.D)(22)},subTitle:{span:{margin:"0 4px",position:"relative","&:before":{content:'"."',position:"absolute",top:-5,fontSize:"14px"}}},overlay:{ref:(0,v.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,E.D)(1)} ${(0,E.D)(4)}`},durationTxt:{color:"#fff"}})));const G=e=>{var{isMobile:t,data:n,styles:o,className:r,classNames:l,layout:u}=e,m=(0,d._)(e,["isMobile","data","styles","className","classNames","layout"]);const{title:p,imageMedium:v,createTime:E,totalView:_,active:x,duration:w}=n,{locale:k,t:S}=(0,C.u)(),{cx:T,classes:I,theme:O}=H({active:x,layout:u},{name:"VideoItem__VideoItem",classNames:l,styles:o}),M=(0,i.useMemo)((()=>[_&&S("common.totalView",{number:(0,y.a)(_)}),E].filter(Boolean).join(' ')),[_,E]);return a().createElement(g.a,Object.assign({},m,{className:T(r,I.root)}),a().createElement(g.a,{className:I.inner},a().createElement(g.a,{className:I.thumbWrapper},a().createElement(g.a,{className:I.thumb,sx:()=>({position:"relative","div, img":{borderRadius:4}})},a().createElement(f.g,{ratio:264/148,className:I.thumbFrame},a().createElement("img",{loading:"lazy",src:v||c.C.getAssetPath(`videoThumbDefault/${k}.jpg`),alt:p,onError:e=>{e.currentTarget.src=c.C.getAssetPath(`videoThumbDefault/${k}.jpg`)}})),"number"===typeof w&&w>0&&a().createElement(g.a,{className:I.duration},a().createElement(s.T,{size:"n1",className:I.durationTxt},w)),a().createElement(b.s,{className:I.overlay,align:"center",justify:"center"},x?a().createElement(s.T,{size:"s3",weight:"semiBold",color:"#fff"},S("common.playing")):a().createElement($,{size:t?32:46})))),a().createElement(h.B,{sx:{[O.fn.largerThan("sm")]:{gap:4},gap:2}},a().createElement(s.T,{className:I.title,size:"s3",color:x?O.fn.primaryColor():"#262626",weight:"semiBold",lineClamp:2},p),a().createElement(s.T,{className:I.subTitle,size:"n1",color:"#595959",dangerouslySetInnerHTML:{__html:M}}))))},V=e=>{var{data:t,isMobile:n}=e,i=(0,d._)(e,["data","isMobile"]);const{type:o,videoId:r,url:l}=t,s="ios"===(0,_.c)();return a().createElement(x.M,Object.assign({size:o===m.V.SHORTS?n?360:375:(0,E.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:u.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:u.a+1,[e.fn.smallerThan("sm")]:{backgroundColor:"rgba(0, 0, 0, 0.85)"}}})},i),o===m.V.SHORTS?a().createElement(f.g,{ratio:.5625},a().createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${r}?autoplay=${Number(!s)}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media;\ngyroscope; picture-in-picture;\nweb-share",allowFullScreen:!0})):a().createElement(w.S,{key:l,url:l||"",autoPlay:!s}))},Z=e=>{var{data:t,layout:n="default",disableDefaultFn:o,redirectToLandingPage:r,onClick:l,dataEventCategory:s,dataEventAction:c,isMobile:p}=e,h=(0,d._)(e,["data","layout","disableDefaultFn","redirectToLandingPage","onClick","dataEventCategory","dataEventAction","isMobile"]);const{articleLink:g,id:f,videoId:v,title:E,url:b,type:y}=t,[_,x]=(0,i.useState)(!1),w=(0,i.useMemo)((()=>g||`/videos/${y}/?id=${f}`),[]),{locale:S}=(0,C.u)(),T={component:"a",href:w,target:g?"_blank":"_self","data-event-category":s,"data-event-action":c,"data-event-label":`https://${k.y[S]}${w}`,onClick:o?l:g?void 0:e=>{r?localStorage.setItem(u.f,JSON.stringify({articleLink:g,id:f,videoId:v,title:E,url:b,type:y})):(e.preventDefault(),x(!0))}};return a().createElement(a().Fragment,null,y===m.V.SHORTS?a().createElement(z,Object.assign({},h,T,{data:t,layout:n,isMobile:p})):a().createElement(G,Object.assign({},h,T,{layout:n,data:t,isMobile:p})),!g&&a().createElement(V,{opened:Boolean(_),data:t,onClose:()=>x(!1),isMobile:p}))},W=c.C.getAssetPath("sitewide/vn-public-desktop.png"),Y=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;
}
${I.M.mbDown} {
&[data-is-collapse='false'] {
height: 48px;
}
}
&[data-is-vn-public-day='true'] {
background-color: ${l.w.colors.red900};
${I.M.mbDown} {
overflow: hidden;
}
${I.M.mbUp} {
background-image: url(${W});
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;
}
${I.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;
}
}
`,K=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;
}
}
}
`,q={daily:1,weekly:7,"bi-weekly":14},X=({site:e="discover",banner:t,isMobile:n,onClose:o,currentUrl:r})=>{var l;const{link:c,icon:d,content:u,type:m,layoutType:p,bannerDesktop:h,bannerMobile:g,backgroundColor:f,bannerDisplayFrequency:v}=t||{},[E,b]=(0,i.useState)(!0),y=u,C=(0,i.useMemo)((()=>`${e}-disable-sitewide-${m}`),[m]),_=(0,i.useCallback)((e=>{e.preventDefault(),T.A.set(C,"true",{expires:q[v]}),b(!1),null===o||void 0===o||o()}),[r,C,v]),x=null===(l=/]*href=["']([^"']*)["']/g.exec(y))||void 0===l?void 0:l[1];return(0,i.useEffect)((()=>{"true"===T.A.get(C)&&b(!1)}),[null===t||void 0===t?void 0:t.type]),y&&E?a().createElement(Y,{"data-is-mobile":n,"data-is-collapse":!E,id:"sitewide-container",bgColor:f},a().createElement("a",{className:"no-replace-click","data-event-category":"Header Banner","data-event-action":"Link Click","data-event-label":r,href:c||x},"icon-text"===p?a().createElement(a().Fragment,null,d&&a().createElement(K,{className:"site-wide-content"},a().createElement("div",{className:"image-wrapper"},a().createElement("img",{src:d,className:"icon",loading:"lazy","data-is-mobile":n,alt:"",width:64,height:64}))),a().createElement("div",{className:"site-wide-content"},y&&a().createElement(s.T,{size:"s3",className:"content","data-is-mobile":n,dangerouslySetInnerHTML:{__html:y},lineClamp:2,styles:{root:{fontFamily:"Inter, -apple-system,\n BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell,\n 'Helvetica Neue', sans-serif;"}}}))):a().createElement("img",{src:n?g:h,className:"banner-full",loading:"lazy","data-is-mobile":n,alt:""})),a().createElement(S.A,{color:"#fff",size:24,className:"close-icon","data-event-category":"Header Banner","data-event-action":"Close Click","data-vars-event-label":r,onClick:_})):null}},55059:function(e,t,n){"use strict";n.d(t,{C:function(){return r},L:function(){return c}});var i=n(6432),a=n(65606);const o="vi-VN",r=(a.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,"care"),l={"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"};i.K,i.K;var s;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(s||(s={}));const c={"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"}}},66189:function(e,t,n){"use strict";n.d(t,{C:function(){return r},I:function(){return o},L:function(){return i},M:function(){return c},S:function(){return s},a:function(){return a}});const i={"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"}},a=-1,o=-2;var r,l;!function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="msd"}(r||(r={})),function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="spesialis"}(l||(l={}));const s="vaksin-rotavirus",c={"vi-VN":{gsk:l.GSK,msd:l.MSD},"id-ID":{gsk:l.GSK,msd:l.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{},"th-TH":{}}},39084:function(e,t,n){"use strict";n.d(t,{a:function(){return o},f:function(){return i}});n(49697);const i=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)}:{},a=e=>e?{answer:null===e||void 0===e?void 0:e.answer.map(r),expert:null===e||void 0===e?void 0:e.expert}:{},o=e=>{var t,n,i,o,r,l,s,c,d,u,m,p,h,g,f,v,E,b,y,C,_;return e?{id:e.id,topics:(null===(t=e.topics)||void 0===t?void 0:t.map((t=>{var n,i,a,o;return{id:t.id||0,name:t.name||"",slug:t.slug||"",url:"/"+(null===(n=e.community)||void 0===n?void 0:n.slug)+"/"+t.slug,communityId:String(null===(i=e.community)||void 0===i?void 0:i.id),communitySlug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",communityName:(null===(o=e.community)||void 0===o?void 0:o.name)||"",isHidden:Boolean(t.is_hidden),isActive:!0}})))||[],community:{id:(null===(n=e.community)||void 0===n?void 0:n.id)||0,name:(null===(i=e.community)||void 0===i?void 0:i.name)||"",slug:(null===(o=e.community)||void 0===o?void 0:o.slug)||"",isActive:!0,isHidden:Boolean(null===(r=e.community)||void 0===r?void 0:r.is_hidden)},slug:e.slug||"",author:{id:(null===(l=e.user)||void 0===l?void 0:l.id)||0,username:(null===(s=e.user)||void 0===s?void 0:s.user_name)||"",email:(null===(c=e.user)||void 0===c?void 0:c.email)||"",name:(null===(d=e.user)||void 0===d?void 0:d.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(h=null===(p=e.user)||void 0===p?void 0:p.role)||void 0===h?void 0:h.toLowerCase():"",type:(null===(g=e.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(f=e.user)||void 0===f?void 0:f.partner_id)?String(null===(v=e.user)||void 0===v?void 0:v.partner_id):"",title:(null===(E=e.user)||void 0===E?void 0:E.title)||"",doctorId:(null===(b=e.user)||void 0===b?void 0:b.doctor_id)?String(null===(y=e.user)||void 0===y?void 0:y.doctor_id):"",hospitalId:(null===(C=e.user)||void 0===C?void 0:C.hospital_id)?String(null===(_=e.user)||void 0===_?void 0:_.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:a(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}:{}},r=e=>{var t,n,i,a,o,l,s,c,d,u,m,p,h,g,f,v,E,b,y,C,_,x,w,k,S,T,I,O,M,A,B,N;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(r):[],author:{id:(null===(t=e.user)||void 0===t?void 0:t.id)||0,username:(null===(n=e.user)||void 0===n?void 0:n.user_name)||"",name:(null===(i=e.user)||void 0===i?void 0:i.name)||"",role:(null===(a=e.user)||void 0===a?void 0:a.role)?null===(l=null===(o=e.user)||void 0===o?void 0:o.role)||void 0===l?void 0:l.toLowerCase():"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.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===(h=e.user)||void 0===h?void 0:h.doctor_id)?String(null===(g=e.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(f=e.user)||void 0===f?void 0:f.hospital_id)?String(null===(v=e.user)||void 0===v?void 0:v.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(E=e.mentioned)||void 0===E?void 0:E.id)||0,username:(null===(b=e.mentioned)||void 0===b?void 0:b.user_name)||"",name:(null===(y=e.mentioned)||void 0===y?void 0:y.name)||"",role:(null===(C=e.mentioned)||void 0===C?void 0:C.role)?null===(x=null===(_=e.mentioned)||void 0===_?void 0:_.role)||void 0===x?void 0:x.toLowerCase():"",avatar:(null===(w=e.mentioned)||void 0===w?void 0:w.avatar)||"",type:(null===(k=e.mentioned)||void 0===k?void 0:k.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(I=e.mentioned)||void 0===I?void 0:I.partner_id):"",doctorId:(null===(O=e.mentioned)||void 0===O?void 0:O.doctor_id)?String(null===(M=e.mentioned)||void 0===M?void 0:M.doctor_id):"",hospitalId:(null===(A=e.mentioned)||void 0===A?void 0:A.hospital_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.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))}:{}}},12747:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var i=n(49697),a=n(73884),o=n.n(a),r=n(61249),l=n(35291);const s=e=>{var{styles:t,color:n=l.w.colors.red700}=e,a=(0,i._)(e,["styles","color"]);return o().createElement(r.C,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:n},a))}},12690:function(e,t,n){"use strict";n.d(t,{N:function(){return ue},a:function(){return ne},b:function(){return ie},u:function(){return ae}});var i=n(49697),a=n(73884),o=n.n(a),r=n(41303),l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{var{size:t=24,color:n=r.fT,isActive:i,activeColor:a=r.NP,isSolid:s}=e,c=l(e,["size","color","isActive","activeColor","isSolid"]);const d=i?a:n;return o().createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",width:t,height:t},c),o().createElement("path",{d:s?"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:d}))},c=n(61604),d=n(87018),u=n(89103),m=n(15096),p=n(72809),h=n(20763),g=n(35291),f=n(11851),v=n(36257),E=n(47788),b=n(52056),y=n.n(b),C=n(20486),_=n(93750),x=n(58751),w=n(27516),k=n(85509),S=n(17437);n(74353);const T=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"})),I=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"})),O=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"})),M=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"})),A=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"})),B=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"})),N=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"})),R=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"})),L=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"})),D=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"})),U=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"})),P=f.A.div`
padding: 16px;
border-radius: 16px;
background-color: white;
hr {
border-color: ${g.w.colors.neutral100};
border-bottom-width: 0px;
border-style: solid;
}
.profile-nav-item-group {
background-color: white;
border-radius: 8px;
}
`,F=f.A.div`
display: block;
border: 1px solid transparent;
transition: all 300ms linear;
cursor: pointer;
position: relative;
${e=>e.hasSubmenu&&S.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: ${g.w.colors.neutral100};
}
}
.nav-menu-item {
background-color: ${g.w.colors.neutral50};
}
.nav-menu-item {
padding-left: 38px;
}
`,j=f.A.div`
display: flex;
align-items: center;
height: 48px;
border: 1px solid transparent;
transition: all 300ms;
border-radius: 8px;
&:hover {
background-color: ${g.w.colors.neutral150};
}
&[data-active='true'] {
background-color: ${g.w.colors.blue50};
}
`,z=f.A.div`
margin-left: auto;
svg {
fill: ${g.w.colors.gray600};
transition: transform 300ms;
}
&[data-is-open='true'] svg {
transform: rotate(180deg);
}
`,$=f.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;
}
`,H={helloSites:{member:()=>h.C.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>h.C.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>h.C.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>h.C.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>h.C.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>h.C.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>h.C.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>h.C.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>h.C.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>h.C.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},G=({rank:e,siteType:t="helloSites"})=>{const n=(0,a.useMemo)((()=>{var n,i;return(null===(i=null===(n=H[t])||void 0===n?void 0:n[e])||void 0===i?void 0:i.call(n))||""}),[e,t]),{t:i}=(0,p.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?g.w.colors.blue100:g.w.colors.mb100}`}},o().createElement("img",{src:n,alt:e,style:{height:16,width:16}}),o().createElement(m.T,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},V=({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(d.A,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),o().createElement(G,{rank:"member",siteType:e})),o().createElement(m.T,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),o().createElement(m.T,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),o().createElement("hr",null)):null,Z=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:r,siteType:l="helloSites",userInfo:s,onNavigate:c,configs:d={}})=>{const{enableProfileFindMyBooking:u=!1}=d,{locale:m}=(0,p.u)(),[h,g]=(0,a.useState)(),f="string"===typeof t?t:h,v=(0,x.n)((0,x.a)(m,"marryBaby"===l)+"/"),E=(0,x.n)((0,x.g)(m,"marryBaby"===l)+"/"),b=n||[[{key:"userProfile.nav.header.viewProfile",icon:o().createElement(D,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${v}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:o().createElement(N,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${v}user/health/`},{key:"userProfile.nav.card.mySaved",icon:o().createElement(R,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${v}user/saved/`},!!u&&{key:"navigation.find_my_booking",icon:o().createElement(U,{width:"24",height:"24"}),value:"find_my_booking",tracking:{action:"Find My Booking"},link:`${E}care/find-my-booking`},{key:"userProfile.nav.card.myBooking",icon:o().createElement(T,{width:"24",height:"24"}),value:"booking",disabled:!C.C.includes(m),tracking:{action:"Manage Booking Click"},link:`${v}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:o().createElement(I,{width:"24",height:"24"}),value:"myCommunities",disabled:!C.c.includes(m),tracking:{action:"Community Click"},link:`${v}user/my-communities/`}],...C.E.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:o().createElement(M,{width:"24",height:"24"}),value:"eCom",disabled:!C.E.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:o().createElement(O,{width:"24",height:"24"}),link:`${E}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:o().createElement(O,{width:"24",height:"24"}),link:`${E}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:o().createElement(O,{width:"24",height:"24"}),link:`${E}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:o().createElement(L,{width:"24",height:"24"}),subMenu:[{key:"userProfile.nav.menu.password",value:"password",icon:o().createElement(O,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${v}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:o().createElement(O,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${v}user/disable-account/`},...C.D.includes(m)?[{key:"userProfile.nav.menu.dataPrivacy",value:"data-privacy",icon:o().createElement(O,{width:"24",height:"24"}),tracking:{action:"Data Privacy Click"},link:`${v}user/data-privacy/`}]:[]]}],[{key:"userProfile.nav.menu.help",icon:o().createElement(A,{width:"24",height:"24"}),value:"help",link:`${v}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:o().createElement(B,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return o().createElement(P,{className:e,style:i},o().createElement(V,{userInfo:s,siteType:l}),b.map(((e,t)=>o().createElement(a.Fragment,{key:t},o().createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>e?o().createElement(W,{key:e.key,item:e,activeKey:f||"",onLogout:r,onClick:()=>g((t=>t===e.key?void 0:e.key)),siteType:l,onNavigate:c}):null))),t!==b.length-1&&o().createElement("hr",null)))))},W=({item:e,activeKey:t,forceOpen:n,onLogout:i,onClick:r,siteType:l="helloSites",onNavigate:s})=>{var c,d;const[u,h]=(0,a.useState)(!1),g=(0,a.useMemo)((()=>"undefined"!==typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:f}=(0,p.u)(),v=null===(c=e.subMenu)||void 0===c?void 0:c.some((e=>e.key===t)),E=t===e.key;(0,a.useEffect)((()=>{(v||E)&&h(!0)}),[v,E]);const b="boolean"===typeof n?n:u;return o().createElement(F,{as:e.subMenu?void 0:"a","data-is-open":b,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null===r||void 0===r||r(),e.subMenu&&!n?h((e=>!e)):"logout"===e.value?null===i||void 0===i||i():e.link&&(s?s(e.link):window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(d=null===e||void 0===e?void 0:e.tracking)||void 0===d?void 0:d.action)||"","data-event-label":g},o().createElement(j,{"data-active":E},e.icon,o().createElement(m.T,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:E?"helloSites"===l?"hb.6":"mb.6":"gray.8"},f(e.key)),e.subMenu&&o().createElement(z,{"data-is-open":b},o().createElement(k.C,{width:14}))),e.subMenu&&o().createElement($,null,e.subMenu.map((e=>o().createElement(W,{key:e.key,item:e,activeKey:t,onLogout:i,siteType:l})))))};var Y=n(9794),K=n(69988),q=n(79830);const X=f.A.div`
background-color: white;
text-align: center;
.cancle-img {
margin-top: 24px;
${v.M.mbDown} {
width: 80px;
height: 80px;
}
${v.M.mbUp} {
width: 100px;
height: 100px;
}
}
h2 {
margin-top: 32px;
color: ${g.w.colors.gray800};
font-style: normal;
font-weight: bold;
${v.M.mbDown} {
font-size: 24px;
line-height: 32px;
}
${v.M.mbUp} {
font-size: 32px;
line-height: 42px;
}
}
p {
margin-top: 8px;
color: ${g.w.colors.gray600};
font-style: normal;
font-weight: normal;
${v.M.mbDown} {
font-size: 16px;
line-height: 24px;
}
${v.M.mbUp} {
font-size: 16px;
line-height: 24px;
}
}
`,J=f.A.div`
display: flex;
${v.M.mbDown} {
margin-top: 24px;
}
${v.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 ":""}
`,Q=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:n,siteType:i="helloSites"})=>{const{t:r}=(0,p.u)();return(0,a.useEffect)((()=>{document.body.classList.toggle("noscroll",e)}),[e]),o().createElement(Y.Z,null,o().createElement(q.P,{type:"confirm",isOpen:e,closeIcon:o().createElement("img",{src:h.C.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},o().createElement(X,null,"helloSites"===i&&o().createElement("img",{src:h.C.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),o().createElement("h2",null,r("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),o().createElement("p",null,r("logout.popup.ask2")),o().createElement(J,{siteType:i},o().createElement(K.B,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},r("logout.popup.button.logout")),o().createElement(K.B,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},ee=e=>a.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),a.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"}),a.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"})),te=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a.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"}),a.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"})),ne=o().createContext({}),ie=e=>{var{children:t}=e,n=(0,i._)(e,["children"]);const[r,l]=o().useState((()=>n.currentUrl||`https://${"marryBaby"===n.siteType?_.d[n.locale||"en-PH"]:w.y[n.locale||"en-PH"]}${"together"===n.projectType?"/community":"ecom"===n.projectType?"/ecom":"care"===n.projectType?"/care":""}/`));(0,a.useEffect)((()=>{const e=()=>{l(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const s=(({locale:e,projectType:t,siteType:n,enableBookingBtn:i})=>(0,a.useMemo)((()=>{const a="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===n,o="marryBaby"!==n&&"marryBaby"!==t&&C.C.includes(e),r=i&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==n&&C.d.includes(e),l="marryBaby"===t||C.c.includes(e),s="marryBaby"!==n&&C.E.includes(e),c="marryBaby"!==n&&C.E.includes(e),d=C.V.includes(e),u=C.H.includes(e),m=C.e.includes(e);let p=(0,x.g)(e,"marryBaby"===n);"undefined"!==typeof window&&(p.includes("//id.")&&(p=p.replace("id.","")),p.includes("//staging-id.")&&(p=p.replace("staging-id.","discover.")));return{enableSearchBar:a,enableNavCare:o,enableNavCareBooking:r,enableNavTogether:l,enableNavEcom:s,enableProfileEcom:c,enableNavVideo:d,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:p,CARE_URL_FE:`${p}/care`,TOGETHER_URL_FE:`${p}/community`,VIDEO_URL_FE:`${p}/videos`,SSO_URL:(0,x.a)(e,"marryBaby"===n),TOGETHER_API:(0,x.b)(),DISCOVER_API:(0,x.c)(e)},enableNavClinityDownload:u,enableNavCartCare:m}}),[]))({locale:n.locale,projectType:n.projectType,siteType:n.siteType,enableBookingBtn:n.enableBookingBtn});return o().createElement(ne.Provider,{value:Object.assign(Object.assign({},n),{customClasses:n.customClasses||{},configs:Object.assign(Object.assign({},s),n.configs),currentUrl:n.currentUrl||r})},t)},ae=e=>{const{allowBgScroll:t}=e||{},n=(0,a.useRef)();return{containerRef:n,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{n.current&&(document.activeElement===n.current||n.current.contains(document.activeElement))&&(n.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{n.current&&(document.activeElement===n.current||n.current.contains(document.activeElement))&&(n.current.blur(),document.activeElement.blur())}}},oe=(0,E.s)(f.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; */
${v.M.mbUp} {
width: 320px;
}
${v.M.mbDown} {
position: fixed;
left: 0;
width: 100%;
padding-bottom: 70px;
}
`,"hhgcomp-navprofilebutton-popup"),re=(0,E.s)(f.A.div`
position: fixed;
z-index: 150;
top: var(--header-bottom, 56px);
left: 0;
width: 100%;
height: 100%;
align-items: center;
${v.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);
}
}
${v.M.mbDown} {
background: rgba(38, 38, 38, 0.3);
}
&[data-type='welcome'] {
top: 0;
}
&[data-open='false'] {
display: none;
}
`,"hhgcomp-navprofilebutton-popupwrapper"),le=f.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: ${g.w.colors.secondaryBase};
border-radius: 50%;
color: white;
font-size: 20px;
font-weight: bold;
}
`,se=f.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;
}
${oe.classSelector} {
z-index: 200;
top: 120%;
opacity: 1;
visibility: visible;
display: initial;
${v.M.mbDown} {
top: 100%;
}
}
${re.classSelector} {
display: initial;
}
}
`,ce=f.A.a`
display: inline-flex;
.login-btn[data-color='tertiary'][data-size='md'] {
padding-left: 12px;
padding-right: 12px;
}
.mobile-only {
${v.M.mbUp} {
display: none;
}
}
.login-btn {
display: none;
${v.M.mbUp} {
display: block;
border: 1px solid ${g.w.colors.neutral100};
}
}
&[data-win-cash-back-theme='true'] {
.login-btn {
${v.M.mbUp} {
color: ${g.w.colors.white};
}
}
}
`,de=({isOpen:e,userInfo:t,closePopup:n,siteType:i="helloSites",dispatchLogout:r})=>{const{customClasses:l={},configs:{enableProfileFindMyBooking:s}}=(0,a.useContext)(ne);return o().createElement(oe,{className:l.profilePopup,"data-open":e},o().createElement("div",{className:y()("popup-content",l.profilePopupContent)},o().createElement(Z,{siteType:i,onLogout:()=>{r&&(r(),n())},userInfo:t,configs:{enableProfileFindMyBooking:s}})))},ue=({userInfo:e,siteType:t,onLoginClick:n,currentUrl:r,isMinifyLogin:l,onLogout:f,style:v,isLoading:E,isMobile:b,className:y})=>{const{isWinCashBackTheme:C}=(0,a.useContext)(ne),{t:_}=(0,p.u)(),[x,w]=(0,a.useState)(!1),k=(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.username),{containerRef:S,onContainerFocus:T,onContainerBlur:I,onButtonMouseDown:O,onClose:M}=ae(),A=(0,a.useMemo)((()=>b&&"helloSites"===t),[b]);return E?A?o().createElement(c.S,null):o().createElement(u.B,{size:"sm",color:"transparent",loading:!0}):(null===e||void 0===e?void 0:e.id)?o().createElement(o().Fragment,null,o().createElement(se,{ref:S,style:v,tabIndex:0,onBlur:I,onFocus:()=>{var e;T();const t=null===(e=S.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:y},o().createElement("div",{onMouseDown:O},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(d.A,{size:32,className:"user-avatar",src:null===e||void 0===e?void 0:e.avatar,color:"marryBaby"===t?g.w.mbColors.pink:g.w.colors.secondaryBase,placeholderText:k&&k.length?k[0].toUpperCase():"A"})),o().createElement(de,{dispatchLogout:()=>{M(),w(!0)},isOpen:!1,closePopup:M,siteType:t,userInfo:e})),o().createElement(Q,{openLogoutPopup:x,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),w(!1)},siteType:t,onLogoutHandler:()=>(0,i.a)(void 0,void 0,void 0,(function*(){w(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):o().createElement(ce,{style:Object.assign({textDecoration:"none"},v),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,"data-win-cash-back-theme":C,"data-site-type":t,onClick:n},l?o().createElement(le,null,o().createElement("img",{src:h.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):o().createElement(o().Fragment,null,"helloSites"===t&&(A?C?o().createElement(ee,{className:"mobile-only",style:{cursor:"pointer",width:32,height:32,flexShrink:0}}):o().createElement("img",{className:"mobile-only",src:h.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):o().createElement(u.B,{className:"mobile-only",size:"sm",leftIcon:o().createElement(s,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},_("navigation.loginJoin"))),"marryBaby"===t&&o().createElement("div",{className:"mobile-only",style:{paddingLeft:16}},o().createElement(m.T,{size:"p3",color:g.w.mbColors.pink},_("navigation.loginJoin"))),"marryBaby"===t?o().createElement(u.B,{className:"login-btn",size:"md",leftIcon:o().createElement(s,{color:"currentColor",isSolid:!0,size:22})},_("navigation.loginJoin")):o().createElement(u.B,{className:"login-btn",size:"md",leftIcon:C?o().createElement(te,{style:{flexShrink:0,width:20,height:20}}):o().createElement(s,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626",sx:{fontWeight:500,fontSize:14,lineHeight:22}},_("navigation.loginJoin"))))}},11510:function(e,t,n){"use strict";n.d(t,{F:function(){return R}});var i=n(73884),a=n.n(i),o=n(40503),r=n(74353),l=n.n(r),s=n(14677),c=n(50315),d=n(36814),u=n(15096),m=n(36257),p=n(71202),h=n(11851),g=n(35291),f=n(27516),v=n(43277),E=n(49697);(0,h.A)((e=>{var{type:t}=e,n=(0,E._)(e,["type"]);return a().createElement(t,n)}))`
color: var(--text-color, ${g.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=h.A.p`
color: var(--text-color, ${g.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;
}
`,y=e=>{var{type:t,color:n,style:i}=e,o=(0,E._)(e,["type","color","style"]);return a().createElement(b,Object.assign({"data-type":t,style:Object.assign(Object.assign({},i),n&&{"--text-color":n})},o))},C=h.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: ${g.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: ${g.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 ${g.w.colors.neutral100}1a;
border-bottom: 1px solid ${g.w.colors.neutral100}1a;
.flags {
display: flex;
gap: 12px;
}
}
.signupButton {
display: none;
border: none;
margin-top: 16px;
outline: none;
text-transform: uppercase;
}
${m.M.mbDown} {
.inner {
padding: 64px 0;
}
.social {
flex-direction: column;
gap: 10px;
align-items: start;
}
hr {
margin-top: 0px;
}
.copyright {
align-items: center;
text-align: center;
}
.copyright-image-wrapper {
justify-content: center;
max-width: unset;
}
.otherSites {
flex-direction: column;
padding: 24px 0;
.linkTitle {
text-align: center;
}
.flags {
flex-wrap: wrap;
justify-content: center;
}
}
.footer-menu-title {
margin-bottom: 12px;
}
.footer-menu {
display: grid;
grid-template-columns: repeat(2, 1fr);
> .footer-menu-column {
padding: 24px 0;
}
> .footer-menu-column:first-child {
grid-column-start: 1;
grid-column-end: 3;
border-top: 1px solid ${g.w.colors.neutral100}1a;
border-bottom: 1px solid ${g.w.colors.neutral100}1a;
> .footer-menu-link-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}
}
.otherSites {
margin-bottom: 24px;
}
}
${m.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;
}
}
}
`,_=h.A.img`
width: 32px;
height: 32px;
${m.M.mbDown} {
width: 24px;
height: 24px;
}
.country-flag {
width: 100%;
height: 100%;
}
`,x=({url:e,dataEventCategory:t,dataEventAction:n,dataEventLabel:i})=>a().createElement(_,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":n,"data-content-label":i}),w=({title:e,items:t,locale:n,index:i})=>{const{isMobile:o}=(0,p.u)();return a().createElement("div",{className:"footer-menu-column"},e?a().createElement(u.T,{size:o?"s4":"s3",className:"footer-menu-title",weight:o?"regular":"semiBold",color:"neutral.6"},e):null,a().createElement("div",{className:"footer-menu-link-wrapper"},null===t||void 0===t?void 0:t.map(((e,t)=>a().createElement(u.T,{size:o?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${f.y[n]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:o&&0===i?"semiBold":"regular"},e.title)))))},k=({className:e,footerInfo:t,locale:n})=>{var i,r,s,c,d,m,h,g,f,v,E;const{isMobile:b}=(0,p.u)(),y=null===t||void 0===t?void 0:t.menu,_=(null===(r=null===(i=null===t||void 0===t?void 0:t.general)||void 0===i?void 0:i.verified)||void 0===r?void 0:r.filter(Boolean))||[];return a().createElement(C,{className:e},a().createElement(o.C,null,a().createElement("div",{className:"inner"},a().createElement("a",{href:"/"},a().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"===n})),a().createElement("div",{className:"columns"},a().createElement("div",{className:"newsletter"},a().createElement(u.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),a().createElement("div",{className:"social"},a().createElement(u.T,{size:"p4",color:"neutral.6"},null===(d=null===t||void 0===t?void 0:t.social)||void 0===d?void 0:d.title),a().createElement("div",{className:"icons"},null===(h=null===(m=null===t||void 0===t?void 0:t.social)||void 0===m?void 0:m.socials)||void 0===h?void 0:h.map(((e,t)=>a().createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},a().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"}))))))),a().createElement("div",{className:"footer-menu"},y&&a().createElement(a().Fragment,null,null===y||void 0===y?void 0:y.map(((e,t)=>a().createElement(w,{title:e.menu_title,items:e.items,locale:n,key:t,index:t})))))),a().createElement("div",{className:"otherSites"},a().createElement(u.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(g=null===t||void 0===t?void 0:t.branch)||void 0===g?void 0:g.title),a().createElement("div",{className:"flags"},null===(v=null===(f=null===t||void 0===t?void 0:t.branch)||void 0===f?void 0:f.branch)||void 0===v?void 0:v.map(((e,t)=>a().createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},a().createElement(x,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))),a().createElement("div",{className:"copyright"},a().createElement("div",{className:"copyright-image-wrapper"},_.length?_.map(((e,t)=>a().createElement("a",{href:e.url,key:t,className:"copyright-image"},a().createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),a().createElement(u.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},a().createElement("div",{dangerouslySetInnerHTML:{__html:null===(E=null===t||void 0===t?void 0:t.general)||void 0===E?void 0:E.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}}))))))},S=h.A.footer`
position: relative;
overflow: hidden;
.icons {
margin-top: 12px;
margin-bottom: 20px;
> a:not(:last-child) {
margin-right: 16px;
}
}
a {
text-decoration: none;
}
`,T=h.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 ${g.w.colors.neutral200};
${m.M.tdDown} {
margin: auto 16px;
flex-wrap: wrap;
row-gap: 32px;
column-gap: 16px;
}
${m.M.mbDown} {
margin: auto 0;
}
`,I=h.A.div`
display: flex;
justify-content: space-between;
gap: 12px;
flex-direction: column;
${m.M.mbDown} {
flex: 1 1 160px;
}
.title {
padding-bottom: 4px;
}
`,O=h.A.div`
display: flex;
justify-content: space-between;
gap: 12px;
flex-direction: column;
`,M=h.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;
${m.M.tdDown} {
margin: auto 16px;
}
${m.M.mbDown} {
flex-direction: column-reverse;
gap: 16px;
align-items: flex-start;
margin: auto 0;
}
}
.verify {
display: flex;
align-items: flex-start;
gap: 8px;
}
`,A=h.A.div`
padding: 40px 0;
${m.M.mbUp} {
margin: auto 68px;
}
`,B=h.A.div`
display: flex;
gap: 16px;
.social-logo {
width: 28px;
}
`,N=({logoType:e="marryBaby",footerMenu:t,background:n})=>{var i;if(!t)return null;const{general:r,menu:m,socials:p}=t;return a().createElement(S,{style:{backgroundColor:n||"none"}},a().createElement(o.C,null,a().createElement(T,null,null===m||void 0===m?void 0:m.map((({menu_title:e,items:t},n)=>a().createElement(I,{key:`mbf${n}`},a().createElement(y,{className:"title",type:"subtitle-1",color:g.w.mbColors.pink},e),null===t||void 0===t?void 0:t.map((({title:e,url:t},n)=>a().createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${n}`},a().createElement(O,{key:`mbitem${n}`},a().createElement(y,{type:"bodytext-2",color:g.w.mbColors.gray},e)))))))))),a().createElement(o.C,null,a().createElement(A,null,a().createElement(s.s,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},a().createElement(c.B,{spacing:"24px",className:"info-item"},a().createElement(v.L,{className:"logo",type:e}),a().createElement(u.T,{size:"p4",as:"div"},a().createElement("div",{dangerouslySetInnerHTML:{__html:null===r||void 0===r?void 0:r.content}})),a().createElement(B,null,null===p||void 0===p?void 0:p.map((({icon:e,name:t,url:n},i)=>a().createElement("a",{key:`social${i}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:n},a().createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),a().createElement(d.a,{className:"info-item",sx:{paddingTop:"7px"}},a().createElement(u.T,{size:"p4",as:"div"},a().createElement("div",{dangerouslySetInnerHTML:{__html:null===r||void 0===r?void 0:r.information}})))))),a().createElement(M,null,a().createElement(o.C,null,a().createElement("div",{className:"content"},a().createElement(u.T,{size:"p5",color:"#fff",as:"div"},a().createElement("div",{dangerouslySetInnerHTML:{__html:null===r||void 0===r?void 0:r.copyright.replace(/{currentYear}/gi,l()().get("year").toString())}})),a().createElement("div",{className:"verify"},null===(i=null===r||void 0===r?void 0:r.verified)||void 0===i?void 0:i.map((({image:e,url:t},n)=>a().createElement("img",{loading:"lazy",key:`imgMbFt${n}`,src:e,alt:t}))))))))},R=({locale:e,footerInfo:t,siteType:n,background:i})=>"helloSites"===n?a().createElement(k,{locale:e,footerInfo:t||{}}):a().createElement(N,{footerMenu:t,background:i})},40503:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var i=n(73884),a=n.n(i),o="d76E4SH";const r=({children:e,className:t,style:n,type:i})=>a().createElement("div",{className:`${o} ${t||""}`,style:n,"data-type":i},e)},73591:function(e,t,n){"use strict";n.d(t,{C:function(){return g},V:function(){return p}});var i,a,o,r,l,s,c;n(78783);!function(e){e.Boy="boy",e.Girl="girl"}(i||(i={})),function(e){e[e.Height=0]="Height",e[e.Weight=1]="Weight",e[e.Head=2]="Head",e[e.BMI=3]="BMI"}(a||(a={})),function(e){e[e.Weekly=0]="Weekly",e[e.Monthly=1]="Monthly",e[e.Yearly=2]="Yearly"}(o||(o={})),function(e){e[e.Height=0]="Height",e[e.Weight=1]="Weight",e[e.Head=2]="Head",e[e.BMI=3]="BMI",e[e.Record=4]="Record"}(r||(r={})),function(e){e[e.Phone=0]="Phone",e[e.OTP=1]="OTP",e[e.OTPEmail=2]="OTPEmail",e[e.PersonalInfo=3]="PersonalInfo",e[e.UpdatePassword=4]="UpdatePassword",e[e.Result=5]="Result",e[e.DynamicForm=6]="DynamicForm"}(l||(l={})),function(e){e[e.HEAD=0]="HEAD",e[e.TAIL=1]="TAIL",e[e.MIDDLE=2]="MIDDLE",e[e.CONNECT=3]="CONNECT",e[e.SSO=4]="SSO",e[e.MULTIPLE=5]="MULTIPLE"}(s||(s={})),function(e){e[e.UNDEFINED=-1]="UNDEFINED",e[e.TEXT=0]="TEXT",e[e.IMAGE=1]="IMAGE",e[e.FORM=2]="FORM",e[e.CONDITION=3]="CONDITION",e[e.POLL=4]="POLL",e[e.FINAL_STANDARD=5]="FINAL_STANDARD",e[e.FINAL=6]="FINAL",e[e.FINAL_THANK_YOU=7]="FINAL_THANK_YOU",e[e.RATING=8]="RATING",e[e.REACTION=9]="REACTION",e[e.REVIEW=10]="REVIEW",e[e.RESULT_POLL=11]="RESULT_POLL",e[e.RESULT_RATING=12]="RESULT_RATING",e[e.RESULT_REACTION=13]="RESULT_REACTION",e[e.OTP=14]="OTP"}(c||(c={}));c.FINAL,c.FINAL_STANDARD,c.FINAL_THANK_YOU;var d,u;!function(e){e.BOT_TEXT="bot-text",e.BOT_IMAGE="bot-image",e.BOT_BACKGROUND_IMAGE="bot-background-image",e.BOT_BUTTON="bot-button",e.BOT_URL="bot-url",e.BOT_RECALCULATE="bot-recalculate",e.BOT_BOOKING="bot-booking",e.BOT_MAIN_TITLE="bot-main-title",e.BOT_MAIN_IMAGE="bot-main-image",e.BOT_MAIN_BODY="bot-main-body",e.BOT_MAIN_BUTTON="bot-main-button",e.BOT_SUB_TITLE="bot-sub-title",e.BOT_SUB_BODY="bot-sub-body",e.BOT_LANDING_PAGE_URL="bot-landing-page-url",e.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",e.BOT_RISK_SCREEN="bot-risk-screen",e.BOT_RELATED_ARTICLE="bot-related-article",e.THANK_YOU_IMAGE="thank-you-image",e.THANK_YOU_TITLE="thank-you-title",e.THANK_YOU_BODY="thank-you-body",e.TOTAL_LINE="total-line",e.BOT_SUBMISSION="bot-submission",e.BOT_EVENT_SUBMISSION="bot-event-submission",e.BOT_SUGGESTED_SERVICE="bot-suggested-service",e.SSO_INTENT="sso-intent"}(d||(d={})),function(e){e.ACTION_CONDITION="action-condition",e.ACTION_INTERNAL="action-internal",e.ACTION_EXTERNAL="action-external",e.ACTION_SSO_REDIRECT="action-sso-redirect",e.ACTION_MULTIPLE_BUTTON="action-multiple-button",e.USER_CHOICE_TEXT="user-choice-text",e.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",e.USER_CHOICE_NEXT="user-choice-next",e.USER_CHOICE_IMAGE="user-choice-image",e.USER_SUBMIT_TEXT="user-submit-text",e.USER_SUBMIT_NUMBER="user-submit-number",e.USER_SUBMIT_NAME="user-submit-name",e.USER_SUBMIT_PHONE="user-submit-phone",e.USER_SUBMIT_EMAIL="user-submit-email",e.USER_SUBMIT_DROPDOWN="user-submit-dropdown",e.USER_SUBMIT_DATE="user-submit-date",e.USER_SUBMIT_DOB="user-submit-dob",e.USER_SUBMIT_CONFIRM="user-submit-confirm",e.USER_SUBMIT_SEND="user-submit-send",e.USER_SUBMIT_RESEND="user-submit-resend",e.USER_SUBMIT_ADDRESS="user-submit-address",e.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",e.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",e.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",e.USER_SUBMIT_BMI="user-submit-bmi",e.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",e.USER_SUBMIT_TERMS="user-submit-terms",e.USER_SUBMIT_GENDER="user-submit-gender",e.USER_SUBMIT_OTP="user-submit-otp",e.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",e.POLL_CHOICE="poll-choice",e.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",e.POLL_CHOICE_IMAGE="poll-choice-image",e.POLL_BUTTON="poll-button",e.RATING_STAR="rating-star",e.RATING_DESCRIPTION="rating-description",e.RATING_BUTTON="rating-button",e.LIKE_CHOICE="like-choice",e.DISLIKE_CHOICE="dislike-choice",e.REVIEW_CHOICE="review-choice",e.REVIEW_DESCRIPTION="review-description",e.REVIEW_BUTTON="review-button",e.RESULT_BUTTON="result-button",e.POLL_RESULT="poll-result",e.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address"}(u||(u={}));u.USER_SUBMIT_ADDRESS_PROVINCE,u.USER_SUBMIT_ADDRESS_DISTRICT,u.USER_SUBMIT_ADDRESS_COMMUNE,u.USER_SUBMIT_ADDRESS;var m;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(m||(m={}));u.USER_SUBMIT_EMAIL,u.USER_SUBMIT_TEXT,u.USER_SUBMIT_DROPDOWN,u.USER_SUBMIT_NAME,u.USER_SUBMIT_NUMBER,u.USER_SUBMIT_ADDRESS,u.USER_SUBMIT_PHONE,u.USER_SUBMIT_OTP,u.USER_SUBMIT_WHATSAPP,u.USER_SUBMIT_DATE,u.USER_SUBMIT_CONFIRM,u.USER_SUBMIT_SEND,u.USER_SUBMIT_TERMS,u.USER_SUBMIT_ADDRESS_PROVINCE,u.USER_SUBMIT_ADDRESS_DISTRICT,u.USER_SUBMIT_ADDRESS_COMMUNE,u.USER_SUBMIT_BMI,u.USER_SUBMIT_GENDER,u.POLL_CHOICE,u.POLL_CHOICE_TEXT_BY_INPUT,u.POLL_CHOICE_IMAGE,u.RATING_STAR,u.RATING_DESCRIPTION,u.LIKE_CHOICE,u.DISLIKE_CHOICE,u.REVIEW_CHOICE,u.USER_SUBMIT_GOOGLE_API_ADDRESS,u.USER_SUBMIT_DOB;var p,h;!function(e){e.VIDEO="video",e.SHORTS="short",e.PODCAST="podcast",e.LIVESTREAM="live-stream"}(p||(p={})),function(e){e.Facebook="facebook",e.Zalo="zalo",e.Twitter="twitter",e.WhatsApp="whatsApp",e.Line="line",e.Instagram="instagram",e.LinkedIn="linkedin",e.Youtube="youtube",e.Tiktok="tiktok",e.Telegram="telegram",e.Viber="viber"}(h||(h={}));const g={DD:{id:"common.day",defaultMessage:"Day"},MM:{id:"common.month",defaultMessage:"Month"},YYYY:{id:"common.year",defaultMessage:"Year"}}},20687:function(e,t,n){"use strict";n.d(t,{C:function(){return f}});var i=n(73884),a=n.n(i),o=n(52056),r=n.n(o),l=n(11851),s=n(36814),c=n(36257),d=n(35291),u=n(72809),m=n(15096);const p=e=>i.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),i.createElement("path",{d:"M1.94434 1.94434L3.44545 2.31989C3.88211 2.42878 4.20989 2.791 4.27545 3.23656L5.55656 11.9454",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.9444 14.7218H4.99997C4.23331 14.7218 3.61108 14.0996 3.61108 13.3329C3.61108 12.5662 4.23331 11.944 4.99997 11.944H14.4766C14.9544 11.944 15.38 11.6385 15.5311 11.184L17.0122 6.73957C17.2522 6.01957 16.7166 5.27734 15.9578 5.27734H4.57553",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.16648 18.8891C4.93354 18.8891 5.55537 18.2673 5.55537 17.5002C5.55537 16.7332 4.93354 16.1113 4.16648 16.1113C3.39941 16.1113 2.77759 16.7332 2.77759 17.5002C2.77759 18.2673 3.39941 18.8891 4.16648 18.8891Z",fill:"currentColor"}),i.createElement("path",{d:"M15.8332 18.8891C16.6003 18.8891 17.2221 18.2673 17.2221 17.5002C17.2221 16.7332 16.6003 16.1113 15.8332 16.1113C15.0662 16.1113 14.4443 16.7332 14.4443 17.5002C14.4443 18.2673 15.0662 18.8891 15.8332 18.8891Z",fill:"currentColor"})),h=(0,l.A)(s.a)`
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid #ffffff33;
position: relative;
flex-shrink: 0;
cursor: pointer;
/* Desktop: Square layout */
border-radius: 28px;
max-height: 40px;
padding: 9px 1rem;
background-color: inherit;
white-space: nowrap;
.cart-care-icon {
width: 20px;
height: 20px;
color: ${d.w.colors.white};
flex-shrink: 0;
}
.cart-care-button-text {
display: block;
font-size: 14px;
font-weight: 500;
line-height: 22px;
}
/* Mobile: Circle layout */
${c.M.mbDown} {
border-radius: 100%;
aspect-ratio: 1/1;
width: 32px;
height: 32px;
padding: auto;
background-color: ${d.w.colors.white};
max-height: none;
padding: 0;
.cart-care-icon {
width: 20px;
height: 20px;
color: ${d.w.colors.blue900};
flex-shrink: 0;
}
.cart-care-button-text {
display: none;
}
}
`,g=(0,l.A)(s.a)`
min-width: 20px;
min-height: 20px;
aspect-ratio: 1/1;
border-radius: 100%;
background-color: ${d.w.colors.red500};
color: ${d.w.colors.white};
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
position: absolute;
top: -4px;
right: -4px;
${c.M.mbDown} {
top: -8px;
right: -8px;
}
`,f=e=>{const{count:t=0,href:n,classes:i,boxProps:o,anchorProps:l,tracking:s}=e,{t:c}=(0,u.u)();return a().createElement("a",Object.assign({className:r()("cart-care-button"),href:n,"data-testid":"cart-care-button","data-event-category":"Hamburger Navigation","data-event-action":"Cart Click","data-event-label":n},s,l),a().createElement(h,Object.assign({className:r()("cart-care-button-box",null===i||void 0===i?void 0:i.box)},o),a().createElement(p,{className:"cart-care-icon"}),a().createElement(m.T,{size:"label1",color:d.w.colors.white,fw:500,className:"cart-care-button-text"},c("navigation.button.cartCareService")),t>0&&a().createElement(g,{className:r()("cart-care-button-count-box",null===i||void 0===i?void 0:i.count)},a().createElement(m.T,{size:t>99?"label2":"c1",color:d.w.colors.white,fw:600,className:"cart-care-button-count-text"},t>99?"99+":t))))}},97907:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var i=n(49697),a=n(73884),o=n.n(a),r=n(93750),l=n(11851),s=n(35291);const c=l.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};
}
}
`,d=e=>{var{className:t,isMarryBaby:n,style:l,avatar:s,username:d,size:u}=e,m=(0,i._)(e,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:p}}}=(0,a.useContext)(r.T),h="boolean"===typeof n?n:p,[g,f]=(0,a.useState)(!1);return o().createElement(c,Object.assign({"data-is-marrybaby":h,className:t,style:l,size:u},m),s&&!g?o().createElement("img",{loading:"lazy",src:s,className:"avatar",alt:"avatar",onError:()=>{g||f(!0)}}):o().createElement("div",{className:"avatar avatar-default"},d&&(null===d||void 0===d?void 0:d.length)>0?d[0].toUpperCase():"A"))}},85716:function(e,t,n){"use strict";n.d(t,{S:function(){return _}});var i=n(49697),a=n(73884),o=n.n(a),r=n(36814),l=n(86566),s=n(71202),c=n(93750),d=n(11851);const u="fetch/preview?website_url={website_url}";var m=n(84944);var p=n(69988),h=n(72809),g=n(17437),f=n(35291);const v=d.A.div`
display: flex;
align-items: center;
justify-content: center;
padding: 1em;
button {
position: relative;
}
`,E=g.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: ${f.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: ${E} 1.2s linear infinite;
}
&[data-is-marrybaby='true'] {
box-shadow: none;
}
`;const b=({className:e,size:t="md"})=>{const{t:n}=(0,h.u)();return o().createElement(v,{className:e},o().createElement(p.B,{size:t,color:"transparent",isLoading:!0},n("loading")))},y=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;
}
`,C=({id:e,autoplay:t})=>{const n=(0,a.useRef)(null),i=(({url:e,onLoad:t,onError:n})=>{const[i,o]=(0,a.useState)(e?"loading":"idle");return(0,a.useEffect)((()=>{if(!e)return void o("idle");let i=document.querySelector(`script[src="${e}"]`);const a=()=>{o("ready"),null===t||void 0===t||t()},r=()=>{o("error"),null===n||void 0===n||n()};return i||(i=document.createElement("script"),i.type="application/javascript",i.src=e,i.async=!0,document.body.appendChild(i),i.addEventListener("load",a),i.addEventListener("error",r)),i.addEventListener("load",a),i.addEventListener("error",r),()=>{i.removeEventListener("load",a),i.removeEventListener("error",r)}}),[e]),i})({url:"https://cdn.plyr.io/3.7.8/plyr.js"});return(0,a.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"!==i&&"undefined"===typeof Plyr||new Plyr(n.current.querySelector('[data-id="player"]'),{autoplay:t,muted:!0})}),[i]),o().createElement(o().Fragment,null,o().createElement(r.a,{ref:n,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"}))))},_=({url:e,image:t,className:n,style:r,baseUrl:d="",autoPlay:p=!0,onPushStatus:h})=>{const{data:{locale:g}}=(0,a.useContext)(c.T),[f,v]=(0,a.useState)(null);(0,a.useEffect)((()=>{(0,i.a)(void 0,void 0,void 0,(function*(){if(!t){if(!e)return v(null);v((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),(0,c.c)((0,c.e)(u,{_locale:g},void 0,d),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!d).then((t=>{var n,i;v({url:e,image:(null===(n=null===t||void 0===t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(i=null===t||void 0===t?void 0:t.data)||void 0===i?void 0:i.logo)})})).catch((()=>{v(null)}))}}))}),[e,t]);const E=t||(null===f||void 0===f?void 0:f.image),_=(null===f||void 0===f?void 0:f.url)||e,x=(0,a.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=(0,a.useMemo)((()=>_.includes("facebook.com")||_.includes("fb.watch")),[_]),k=(0,a.useRef)(0),S=(0,a.useRef)(0),[T,I]=(0,a.useState)(!1);(0,a.useEffect)((()=>{const e=()=>{var e;const t=null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect();let n=!1;t&&(!k.current||Math.abs((k.current-t.width)/(null===t||void 0===t?void 0:t.width))>.2)&&(k.current=Math.floor(t.width),n=!0),t&&(!S.current||Math.abs((S.current-t.height)/(null===t||void 0===t?void 0:t.height))>.2)&&(S.current=Math.floor(t.height),n=!0),n&&I((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),(0,a.useEffect)((()=>{(null===f||void 0===f?void 0:f.image)&&(null===f||void 0===f?void 0:f.url)&&(null===h||void 0===h||h(!0))}),[f]);const O=(0,a.useRef)(null),M=(0,l.xd)();return o().createElement(y,{className:`${n} no-replace-click`,style:r,ref:O,color:M.colors[M.primaryColor][0]},t||!x&&!w?o().createElement("a",{href:_,target:"_blank",rel:"noreferrer"},o().createElement("div",{className:"link-image-wrapper "+((null===f||void 0===f?void 0:f.isFetching)?"fetching":"")},(null===f||void 0===f?void 0:f.isFetching)?o().createElement(b,{className:"loading-spinner"}):o().createElement(s.I,{className:"link-image",src:E||m.D,backupSrc:m.D,alt:_}))):o().createElement("div",{className:"link-image-wrapper"},x?o().createElement(C,{id:x,autoplay:p}):w?o().createElement("iframe",{key:String(T),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(_)}&autoplay=${p?1:0}&show_text=false&t=0&width=${k.current}&height=${S.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:S.current,width:k.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))}},74558:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});const i=e=>{let t=String(e);if(e>=1e3){const n=["","k","m","b","t"],i=(""+e).length;let a=Math.floor(i/3);const o=6===i;let r;if(o)r=Math.round(e/1e3);else for(let t=2;t>=1;t--){r=parseFloat((0!=a?e/Math.pow(1e3,a):e).toPrecision(t));if((r+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}r&&r%1!=0?r=r.toFixed(1):o&&r&&r/1e3>=1&&(a+=1,r/=1e3),t=r+(6===i?n[a-1]:n[a])}return t}},93750:function(e,t,n){"use strict";n.d(t,{T:function(){return s},c:function(){return f},d:function(){return u},e:function(){return h}});var i=n(49697),a=(n(87775),n(35616)),o=n.n(a),r=n(73884);const l={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},s=(0,r.createContext)({data:l,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});let c=l;const d={"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"},u={"vi-VN":"marrybaby.vn"},m=e=>{const{env:{isMarryBaby:t}}=c;return`https://${t?u[e]:d[e]}`},p=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},h=(e,t,n,i)=>{let a="";n&&(a=Object.keys(n).map((e=>e+"="+n[e])).join("&"));const{togetherBaseApiUrl:r=""}=(null===c||void 0===c?void 0:c.env)||{};let l=o()(e,Object.assign(Object.assign({},(null===t||void 0===t?void 0:t._locale)?{website_url:m(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(i||r)+"api/v1/"+p(l)},g=e=>((null===e||void 0===e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"===typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),f=(e,t,n,a=!1)=>(0,i.a)(void 0,void 0,void 0,(function*(){var i,o,r,l;try{const i=yield fetch(a?e:(l=e,encodeURI(l).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:t},g(n)),{headers:Object.assign({},null===n||void 0===n?void 0:n.headers)})).then((e=>e.json()));if(i)return i}catch(s){return console.log(s),console.log({url:e,status:null===(i=null===s||void 0===s?void 0:s.response)||void 0===i?void 0:i.status,statusText:null===(o=null===s||void 0===s?void 0:s.response)||void 0===o?void 0:o.statusText}),(null===(r=null===s||void 0===s?void 0:s.response)||void 0===r?void 0:r.data)||null}return null}))},91557:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},a:function(){return d},b:function(){return f},c:function(){return u},d:function(){return m},e:function(){return l},f:function(){return r},h:function(){return h},i:function(){return p},j:function(){return s},k:function(){return c},r:function(){return g}});var i=n(66189),a=n(73591);n(35616);const o={adBlock:48,headerContainerHome:99,headerContainerPopup:300,headerContainerPopupSUbLevel:400,menuCategoryPopupWrapper:200,menuCategoryPopupContainer:210,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:300,homeSearchComponent:200},r=e=>{var t,n,i,a;return e?{termId:e.term_id||null,sponsor:e.sponsor?(a=e.sponsor,a?{title:a.title,logo:a.logo,link:a.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=>r(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===(n=e.cat_parent)||void 0===n?void 0:n.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(i=e.reviewed_by,{postTitle:i.post_title,permalink:i.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}:{}},l=e=>{var t,n;if(!e)return{};const i=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),a=null===(n=e.link)||void 0===n?void 0:n.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||i?e.link:a?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)}},s=e=>{var t,n,i,a,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===(n=null===e||void 0===e?void 0:e.object_id)||void 0===n?void 0:n.slug)||"",subtitle:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},c=e=>{var t,n,i,a,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===(n=e.object_id)||void 0===n?void 0:n.name)||"",logo:(null===(i=null===e||void 0===e?void 0:e.object_id)||void 0===i?void 0:i.logo)||"",description:(null===(a=e.object_id)||void 0===a?void 0:a.description)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},d=({type:e,specialtySlug:t,locale:n})=>{var a,o;return`${null===(a=i.L[n])||void 0===a?void 0:a.ALL}/${(null===(o=i.L[n])||void 0===o?void 0:o[e])||"doctor"}/${null!==t&&void 0!==t?t:""}`},u=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}:{},m=e=>{const t=new Date;if(null===e||void 0===e?void 0:e.startDate){const n=new Date(e.startDate);if(t.getTime()n.getTime())return!1}return!0},p=e=>"undefined"!==typeof e&&e?{id:e.ID||"",videoId:e.video_id||"",url:e.video_url||"",title:e.video_title||"",type:e.type||a.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;function h(e,t=!1){let n=!1,i=e.slice(e.startsWith("#")?1:0);3===i.length?i=[...i].map((e=>e+e)).join(""):8===i.length&&(n=!0),i=parseInt(i,16);const a={r:i>>>(n?24:16),g:(i&(n?16711680:65280))>>>(n?16:8),b:(i&(n?65280:255))>>>(n?8:0)};return t?a:"rgb"+(n?"a":"")+"("+a.r+", "+a.g+", "+a.b+(n?", "+(255&i):"")+")"}function g(e,t,n){e/=255,t/=255,n/=255;const i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=0===a?0:a&&i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a;return[60*(o<0?o+6:o),i&&a/i*100,100*i]}function f(e,t,n){t/=100,n/=100;const i=t=>(t+e/60)%6,a=e=>n*(1-t*Math.max(0,Math.min(i(e),4-i(e),1)));return[255*a(5),255*a(3),255*a(1)]}},43388:function(e,t,n){"use strict";var i=n(73884),a=n.n(i),o=n(41303),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{var{size:t,color:n=o.fT}=e,i=r(e,["size","color"]);const l=(0,o.D5)(t);return a().createElement("svg",Object.assign({width:l,height:l,viewBox:"0 0 24 24",fill:"none"},i),a().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:n}))}},385:function(e,t,n){"use strict";var i=n(73884),a=n.n(i),o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{var{size:t=15,width:n=16,height:i=15}=e,r=o(e,["size","width","height"]);return a().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n||t,height:i||t,viewBox:"0 0 16 15"},r),a().createElement("g",{filter:"url(#filter0_dd_1935_42974)"},a().createElement("g",{filter:"url(#filter1_iii_1935_42974)"},a().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"}),a().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"}),a().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"}),a().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"})),a().createElement("mask",{id:"mask0_1935_42974",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"12",height:"12"},a().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"}),a().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"}),a().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"}),a().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"})),a().createElement("g",{mask:"url(#mask0_1935_42974)"},a().createElement("g",{filter:"url(#filter2_f_1935_42974)"},a().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"})),a().createElement("g",{filter:"url(#filter3_f_1935_42974)"},a().createElement("ellipse",{cx:"3.63046",cy:"1.59449",rx:"0.249023",ry:"0.373535",transform:"rotate(30 3.63046 1.59449)",fill:"white"})),a().createElement("g",{filter:"url(#filter4_f_1935_42974)"},a().createElement("rect",{x:"3.0625",y:"2.05957",width:"0.166016",height:"6.3916",fill:"white"})),a().createElement("g",{filter:"url(#filter5_f_1935_42974)"},a().createElement("rect",{x:"6.38281",y:"2.05957",width:"0.166016",height:"6.3916",fill:"white"})),a().createElement("g",{filter:"url(#filter6_f_1935_42974)"},a().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"})),a().createElement("g",{filter:"url(#filter7_f_1935_42974)"},a().createElement("ellipse",{cx:"6.20712",cy:"1.7605",rx:"0.249023",ry:"0.373535",transform:"rotate(-30 6.20712 1.7605)",fill:"white"})))),a().createElement("defs",null,a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"0.332031"}),a().createElement("feGaussianBlur",{stdDeviation:"0.332031"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1935_42974"}),a().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"}),a().createElement("feOffset",{dy:"1.49414"}),a().createElement("feGaussianBlur",{stdDeviation:"0.996094"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_1935_42974",result:"effect2_dropShadow_1935_42974"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1935_42974",result:"shape"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().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"}),a().createElement("feOffset",{dx:"-0.332031",dy:"-0.830078"}),a().createElement("feGaussianBlur",{stdDeviation:"0.830078"}),a().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_1935_42974"}),a().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"}),a().createElement("feOffset",{dx:"0.166016",dy:"-0.332031"}),a().createElement("feGaussianBlur",{stdDeviation:"0.166016"}),a().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_1935_42974",result:"effect2_innerShadow_1935_42974"}),a().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"}),a().createElement("feOffset",{dx:"-0.166016",dy:"-0.830078"}),a().createElement("feGaussianBlur",{stdDeviation:"0.415039"}),a().createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_1935_42974",result:"effect3_innerShadow_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"})),a().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"},a().createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a().createElement("feGaussianBlur",{stdDeviation:"0.212419",result:"effect1_foregroundBlur_1935_42974"}))))}},41262:function(e,t,n){"use strict";var i=n(73884),a=n.n(i),o=n(41303),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{var{size:t=24,color:n=o.fT,useCurrentColor:i,isActive:l,activeColor:s=o.NP}=e,c=r(e,["size","color","useCurrentColor","isActive","activeColor"]);const d=i?"currentColor":l?s:n,u=Object.assign({width:t,height:t},c);return a().createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},u),a().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:d}))}},95647:function(e,t,n){"use strict";var i=n(73884),a=n.n(i),o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{var{size:t=15,color:n="#fff"}=e,i=o(e,["size","color"]);const r=Object.assign({width:t,height:t},i);return a().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none"},r),a().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)"}),a().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)"}),a().createElement("defs",null,a().createElement("linearGradient",{id:"paint0_linear_1645_53328",x1:"5.37533",y1:"6.85466",x2:"9.67227",y2:"6.30304",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{"stop-color":n}),a().createElement("stop",{offset:"1","stop-color":"#79E3DB"})),a().createElement("linearGradient",{id:"paint1_linear_1645_53328",x1:"8.37538",y1:"13.6442",x2:"21.2654",y2:"11.9966",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{"stop-color":n}),a().createElement("stop",{offset:"1","stop-color":"#79E3DB"}))))}},84144:function(e){e.exports=function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t1,r={elements_selector:".lazy",container:n||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},l=function(t){return e({},r,t)},s=function(e,t){var n,i="LazyLoad::Initialized",a=new e(t);try{n=new CustomEvent(i,{detail:{instance:a}})}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(i,!1,!1,{instance:a})}window.dispatchEvent(n)},c="src",d="srcset",u="sizes",m="poster",p="llOriginalAttrs",h="data",g="loading",f="loaded",v="applied",E="error",b="native",y="data-",C="ll-status",_=function(e,t){return e.getAttribute(y+t)},x=function(e){return _(e,C)},w=function(e,t){return function(e,t,n){var i="data-ll-status";null!==n?e.setAttribute(i,n):e.removeAttribute(i)}(e,0,t)},k=function(e){return w(e,null)},S=function(e){return null===x(e)},T=function(e){return x(e)===b},I=[g,f,v,E],O=function(e,t,n,i){e&&(void 0===i?void 0===n?e(t):e(t,n):e(t,n,i))},M=function(e,t){a?e.classList.add(t):e.className+=(e.className?" ":"")+t},A=function(e,t){a?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},B=function(e){return e.llTempImage},N=function(e,t){if(t){var n=t._observer;n&&n.unobserve(e)}},R=function(e,t){e&&(e.loadingCount+=t)},L=function(e,t){e&&(e.toLoadCount=t)},D=function(e){for(var t,n=[],i=0;t=e.children[i];i+=1)"SOURCE"===t.tagName&&n.push(t);return n},U=function(e,t){var n=e.parentNode;n&&"PICTURE"===n.tagName&&D(n).forEach(t)},P=function(e,t){D(e).forEach(t)},F=[c],j=[c,m],z=[c,d,u],$=[h],H=function(e){return!!e[p]},G=function(e){return e[p]},V=function(e){return delete e[p]},Z=function(e,t){if(!H(e)){var n={};t.forEach((function(t){n[t]=e.getAttribute(t)})),e[p]=n}},W=function(e,t){if(H(e)){var n=G(e);t.forEach((function(t){!function(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}(e,t,n[t])}))}},Y=function(e,t,n){M(e,t.class_applied),w(e,v),n&&(t.unobserve_completed&&N(e,t),O(t.callback_applied,e,n))},K=function(e,t,n){M(e,t.class_loading),w(e,g),n&&(R(n,1),O(t.callback_loading,e,n))},q=function(e,t,n){n&&e.setAttribute(t,n)},X=function(e,t){q(e,u,_(e,t.data_sizes)),q(e,d,_(e,t.data_srcset)),q(e,c,_(e,t.data_src))},J={IMG:function(e,t){U(e,(function(e){Z(e,z),X(e,t)})),Z(e,z),X(e,t)},IFRAME:function(e,t){Z(e,F),q(e,c,_(e,t.data_src))},VIDEO:function(e,t){P(e,(function(e){Z(e,F),q(e,c,_(e,t.data_src))})),Z(e,j),q(e,m,_(e,t.data_poster)),q(e,c,_(e,t.data_src)),e.load()},OBJECT:function(e,t){Z(e,$),q(e,h,_(e,t.data_src))}},Q=["IMG","IFRAME","VIDEO","OBJECT"],ee=function(e,t){!t||function(e){return e.loadingCount>0}(t)||function(e){return e.toLoadCount>0}(t)||O(e.callback_finish,t)},te=function(e,t,n){e.addEventListener(t,n),e.llEvLisnrs[t]=n},ne=function(e,t,n){e.removeEventListener(t,n)},ie=function(e){return!!e.llEvLisnrs},ae=function(e){if(ie(e)){var t=e.llEvLisnrs;for(var n in t){var i=t[n];ne(e,n,i)}delete e.llEvLisnrs}},oe=function(e,t,n){!function(e){delete e.llTempImage}(e),R(n,-1),function(e){e&&(e.toLoadCount-=1)}(n),A(e,t.class_loading),t.unobserve_completed&&N(e,n)},re=function(e,t,n){var i=B(e)||e;ie(i)||function(e,t,n){ie(e)||(e.llEvLisnrs={});var i="VIDEO"===e.tagName?"loadeddata":"load";te(e,i,t),te(e,"error",n)}(i,(function(a){!function(e,t,n,i){var a=T(t);oe(t,n,i),M(t,n.class_loaded),w(t,f),O(n.callback_loaded,t,i),a||ee(n,i)}(0,e,t,n),ae(i)}),(function(a){!function(e,t,n,i){var a=T(t);oe(t,n,i),M(t,n.class_error),w(t,E),O(n.callback_error,t,i),n.restore_on_error&&W(t,z),a||ee(n,i)}(0,e,t,n),ae(i)}))},le=function(e,t,n){!function(e){return Q.indexOf(e.tagName)>-1}(e)?function(e,t,n){!function(e){e.llTempImage=document.createElement("IMG")}(e),re(e,t,n),function(e){H(e)||(e[p]={backgroundImage:e.style.backgroundImage})}(e),function(e,t,n){var i=_(e,t.data_bg),a=_(e,t.data_bg_hidpi),r=o&&a?a:i;r&&(e.style.backgroundImage='url("'.concat(r,'")'),B(e).setAttribute(c,r),K(e,t,n))}(e,t,n),function(e,t,n){var i=_(e,t.data_bg_multi),a=_(e,t.data_bg_multi_hidpi),r=o&&a?a:i;r&&(e.style.backgroundImage=r,Y(e,t,n))}(e,t,n),function(e,t,n){var i=_(e,t.data_bg_set);if(i){var a=i.split("|"),o=a.map((function(e){return"image-set(".concat(e,")")}));e.style.backgroundImage=o.join(),""===e.style.backgroundImage&&(o=a.map((function(e){return"-webkit-image-set(".concat(e,")")})),e.style.backgroundImage=o.join()),Y(e,t,n)}}(e,t,n)}(e,t,n):function(e,t,n){re(e,t,n),function(e,t,n){var i=J[e.tagName];i&&(i(e,t),K(e,t,n))}(e,t,n)}(e,t,n)},se=function(e){e.removeAttribute(c),e.removeAttribute(d),e.removeAttribute(u)},ce=function(e){U(e,(function(e){W(e,z)})),W(e,z)},de={IMG:ce,IFRAME:function(e){W(e,F)},VIDEO:function(e){P(e,(function(e){W(e,F)})),W(e,j),e.load()},OBJECT:function(e){W(e,$)}},ue=function(e,t){(function(e){var t=de[e.tagName];t?t(e):function(e){if(H(e)){var t=G(e);e.style.backgroundImage=t.backgroundImage}}(e)})(e),function(e,t){S(e)||T(e)||(A(e,t.class_entered),A(e,t.class_exited),A(e,t.class_applied),A(e,t.class_loading),A(e,t.class_loaded),A(e,t.class_error))}(e,t),k(e),V(e)},me=["IMG","IFRAME","VIDEO"],pe=function(e){return e.use_native&&"loading"in HTMLImageElement.prototype},he=function(e,t,n){e.forEach((function(e){return function(e){return e.isIntersecting||e.intersectionRatio>0}(e)?function(e,t,n,i){var a=function(e){return I.indexOf(x(e))>=0}(e);w(e,"entered"),M(e,n.class_entered),A(e,n.class_exited),function(e,t,n){t.unobserve_entered&&N(e,n)}(e,n,i),O(n.callback_enter,e,t,i),a||le(e,n,i)}(e.target,e,t,n):function(e,t,n,i){S(e)||(M(e,n.class_exited),function(e,t,n,i){n.cancel_on_exit&&function(e){return x(e)===g}(e)&&"IMG"===e.tagName&&(ae(e),function(e){U(e,(function(e){se(e)})),se(e)}(e),ce(e),A(e,n.class_loading),R(i,-1),k(e),O(n.callback_cancel,e,t,i))}(e,t,n,i),O(n.callback_exit,e,t,i))}(e.target,e,t,n)}))},ge=function(e){return Array.prototype.slice.call(e)},fe=function(e){return e.container.querySelectorAll(e.elements_selector)},ve=function(e){return function(e){return x(e)===E}(e)},Ee=function(e,t){return function(e){return ge(e).filter(S)}(e||fe(t))},be=function(e,n){var a=l(e);this._settings=a,this.loadingCount=0,function(e,t){i&&!pe(e)&&(t._observer=new IntersectionObserver((function(n){he(n,e,t)}),function(e){return{root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}}(e)))}(a,this),function(e,n){t&&(n._onlineHandler=function(){!function(e,t){var n;(n=fe(e),ge(n).filter(ve)).forEach((function(t){A(t,e.class_error),k(t)})),t.update()}(e,n)},window.addEventListener("online",n._onlineHandler))}(a,this),this.update(n)};return be.prototype={update:function(e){var t,a,o=this._settings,r=Ee(e,o);L(this,r.length),!n&&i?pe(o)?function(e,t,n){e.forEach((function(e){-1!==me.indexOf(e.tagName)&&function(e,t,n){e.setAttribute("loading","lazy"),re(e,t,n),function(e,t){var n=J[e.tagName];n&&n(e,t)}(e,t),w(e,b)}(e,t,n)})),L(n,0)}(r,o,this):(a=r,function(e){e.disconnect()}(t=this._observer),function(e,t){t.forEach((function(t){e.observe(t)}))}(t,a)):this.loadAll(r)},destroy:function(){this._observer&&this._observer.disconnect(),t&&window.removeEventListener("online",this._onlineHandler),fe(this._settings).forEach((function(e){V(e)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){var t=this,n=this._settings;Ee(e,n).forEach((function(e){N(e,t),le(e,n,t)}))},restoreAll:function(){var e=this._settings;fe(e).forEach((function(t){ue(t,e)}))}},be.load=function(e,t){var n=l(t);le(e,n)},be.resetStatus=function(e){k(e)},t&&function(e,t){if(t)if(t.length)for(var n,i=0;n=t[i];i+=1)s(e,n);else s(e,t)}(be,window.lazyLoadOptions),be}()}}]);