"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1873],{Ie8o:function(e,t,n){n.d(t,{L:function(){return Loading}});var o=n("q1tI"),r=n("xt28"),a=n("FQi+");let Loading=({className:e,theme:t,hideText:n})=>{let{t:i}=(0,a.u)();return o.createElement("div",{className:`tliWyii ${e}`},o.createElement(r.I.Spinner,{isMarryBaby:"marryBaby"===t}),!n&&i("loading"))}},"20jx":function(e,t,n){n.d(t,{F:function(){return Footer}});var o=n("q1tI"),r=n("HesN"),a=n("Wgwc"),i=n.n(a),l=n("SPK5"),s=n("OAL+"),c=n("Eso5"),d=n("srUE"),u=n("pvoY"),m=n("D0kt"),p=n("rBCA"),g=n("iBNF"),E=n("xrdX"),f=n("MkKI"),h=n("PbJh");let b=p.Z.footer` background-color: #1b3250; .inner { padding: 64px 24px 98px 24px; margin: 0 auto; } .newsletter { padding: 24px 0; } .footer-logo { max-width: 132px; max-height: 32px; &[data-is-sehat='true'] { max-width: 250px; } img { object-fit: contain; } } .social { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; > .icons { display: flex; gap: 16px; } } hr { height: 1px; border: none; margin: 16px 0 16px 0; background: ${g.r.colors.neutral500}; opacity: 0.1; outline: none; } .footer-menu-column { min-width: 168px; } .footer-menu-title { margin-bottom: 16px; } .footer-menu-link { display: block; } .footer-menu-link-wrapper { display: flex; flex-direction: column; gap: 12px; } .copyright { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; .copyright-content { color: ${g.r.colors.neutral500}; font-size: 12px; } .copyright-image-wrapper { flex-shrink: 0; flex-wrap: wrap; display: flex; gap: 16px; justify-content: flex-end; .copyright-image { align-self: flex-start; img { height: 32px; } } } } .otherSites { display: flex; gap: 16px; align-items: center; padding: 19px 0; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; .flags { display: flex; gap: 12px; } } .signupButton { display: none; border: none; margin-top: 16px; outline: none; text-transform: uppercase; } ${u.M.mbDown} { .inner { padding: 64px 0; } .social { flex-direction: column; gap: 10px; align-items: start; } hr { margin-top: 0px; } .copyright { align-items: center; text-align: center; } .copyright-image-wrapper { justify-content: center; max-width: unset; } .otherSites { flex-direction: column; padding: 24px 0; .linkTitle { text-align: center; } .flags { flex-wrap: wrap; justify-content: center; } } .footer-menu-title { margin-bottom: 12px; } .footer-menu { display: grid; grid-template-columns: repeat(2, 1fr); > .footer-menu-column { padding: 24px 0; } > .footer-menu-column:first-child { grid-column-start: 1; grid-column-end: 3; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; > .footer-menu-link-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); } } } .otherSites { margin-bottom: 24px; } } ${u.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; } } } `,T=p.Z.img` width: 32px; height: 32px; ${u.M.mbDown} { width: 24px; height: 24px; } .country-flag { width: 100%; height: 100%; } `,Flag=({url:e,dataEventCategory:t,dataEventAction:n,dataEventLabel:r})=>o.createElement(T,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":n,"data-content-label":r}),FooterMenuColumn=({title:e,items:t,locale:n,index:r})=>{let{isMobile:a}=(0,m.u)();return o.createElement("div",{className:"footer-menu-column"},e?o.createElement(d.T,{size:a?"s4":"s3",className:"footer-menu-title",weight:a?"regular":"semiBold",color:"neutral.6"},e):null,o.createElement("div",{className:"footer-menu-link-wrapper"},null==t?void 0:t.map((e,t)=>o.createElement(d.T,{size:a?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${E.v[n]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:a&&0===r?"semiBold":"regular"},e.title))))},DiscoverFooter=({className:e,footerInfo:t,locale:n})=>{var a,l,s,c,u,p,g,E,f,h,T;let{isMobile:v}=(0,m.u)(),_=null==t?void 0:t.menu,y=(null===(l=null===(a=null==t?void 0:t.general)||void 0===a?void 0:a.verified)||void 0===l?void 0:l.filter(Boolean))||[];return o.createElement(b,{className:e},o.createElement(r.C,null,o.createElement("div",{className:"inner"},o.createElement("a",{href:"/"},o.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(s=null==t?void 0:t.general)||void 0===s?void 0:s.logo,alt:"Logo","data-is-sehat":"id-ID"===n})),o.createElement("div",{className:"columns"},o.createElement("div",{className:"newsletter"},o.createElement(d.T,{size:v?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(c=null==t?void 0:t.general)||void 0===c?void 0:c.content),o.createElement("div",{className:"social"},o.createElement(d.T,{size:"p4",color:"neutral.6"},null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.title),o.createElement("div",{className:"icons"},null===(g=null===(p=null==t?void 0:t.social)||void 0===p?void 0:p.socials)||void 0===g?void 0:g.map((e,t)=>o.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},o.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"})))))),o.createElement("div",{className:"footer-menu"},_&&o.createElement(o.Fragment,null,null==_?void 0:_.map((e,t)=>o.createElement(FooterMenuColumn,{title:e.menu_title,items:e.items,locale:n,key:t,index:t}))))),o.createElement("div",{className:"otherSites"},o.createElement(d.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(E=null==t?void 0:t.branch)||void 0===E?void 0:E.title),o.createElement("div",{className:"flags"},null===(h=null===(f=null==t?void 0:t.branch)||void 0===f?void 0:f.branch)||void 0===h?void 0:h.map((e,t)=>o.createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},o.createElement(Flag,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url}))))),o.createElement("div",{className:"copyright"},o.createElement("div",{className:"copyright-image-wrapper"},y.length?y.map((e,t)=>o.createElement("a",{href:e.url,key:t,className:"copyright-image"},o.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))):null),o.createElement(d.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},o.createElement("div",{dangerouslySetInnerHTML:{__html:null===(T=null==t?void 0:t.general)||void 0===T?void 0:T.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}}))))))},v=p.Z.footer` position: relative; overflow: hidden; .icons { margin-top: 12px; margin-bottom: 20px; > a:not(:last-child) { margin-right: 16px; } } a { text-decoration: none; } `,_=p.Z.div` position: relative; padding: 80px 0 40px; margin: auto 68px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid ${g.r.colors.neutral200}; ${u.M.tdDown} { margin: auto 16px; flex-wrap: wrap; row-gap: 32px; column-gap: 16px; } ${u.M.mbDown} { margin: auto 0; } `,y=p.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; ${u.M.mbDown} { flex: 1 1 160px; } .title { padding-bottom: 4px; } `,S=p.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; `,I=p.Z.div` background-color: #{map-get($mbColors, 'dark')}; padding: 16px 0; position: relative; img { width: 89px; height: 32px; } .content { display: flex; align-items: center; justify-content: space-between; gap: 174px; margin: auto 68px; ${u.M.tdDown} { margin: auto 16px; } ${u.M.mbDown} { flex-direction: column-reverse; gap: 16px; align-items: flex-start; margin: auto 0; } } .verify { display: flex; align-items: flex-start; gap: 8px; } `,x=p.Z.div` padding: 40px 0; ${u.M.mbUp} { margin: auto 68px; } `,N=p.Z.div` display: flex; gap: 16px; .social-logo { width: 28px; } `,MarryBabyFooter=({logoType:e="marryBaby",footerMenu:t,background:n})=>{var a;if(!t)return null;let{general:u,menu:m,socials:p}=t;return o.createElement(v,{style:{backgroundColor:n||"none"}},o.createElement(r.C,null,o.createElement(_,null,null==m?void 0:m.map(({menu_title:e,items:t},n)=>o.createElement(y,{key:`mbf${n}`},o.createElement(h.M,{className:"title",type:"subtitle-1",color:g.r.mbColors.pink},e),null==t?void 0:t.map(({title:e,url:t},n)=>o.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${n}`},o.createElement(S,{key:`mbitem${n}`},o.createElement(h.M,{type:"bodytext-2",color:g.r.mbColors.gray},e)))))))),o.createElement(r.C,null,o.createElement(x,null,o.createElement(l.k,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},o.createElement(s.K,{spacing:"24px",className:"info-item"},o.createElement(f.L,{className:"logo",type:e}),o.createElement(d.T,{size:"p4",as:"div"},o.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.content}})),o.createElement(N,null,null==p?void 0:p.map(({icon:e,name:t,url:n},r)=>o.createElement("a",{key:`social${r}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:n},o.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t}))))),o.createElement(c.x,{className:"info-item",sx:{paddingTop:"7px"}},o.createElement(d.T,{size:"p4",as:"div"},o.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.information}})))))),o.createElement(I,null,o.createElement(r.C,null,o.createElement("div",{className:"content"},o.createElement(d.T,{size:"p5",color:"#fff",as:"div"},o.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}})),o.createElement("div",{className:"verify"},null===(a=null==u?void 0:u.verified)||void 0===a?void 0:a.map(({image:e,url:t},n)=>o.createElement("img",{loading:"lazy",key:`imgMbFt${n}`,src:e,alt:t})))))))},Footer=({locale:e,footerInfo:t,siteType:n,background:r})=>"helloSites"===n?o.createElement(DiscoverFooter,{locale:e,footerInfo:t||{}}):o.createElement(MarryBabyFooter,{footerMenu:t,background:r})},"6Dmq":function(e,t,n){n.d(t,{H:function(){return Heading}});var o=n("usZY"),r=n("q1tI"),a=n("8vDj"),i=n("srUE");let Heading=e=>{var{as:t,tag:n,color:l,fontWeight:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:u}=e,m=(0,o._)(e,["as","tag","color","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]);let p=(0,a.rZ)();return r.createElement(i.T,Object.assign({as:t||n,color:l||p.colors.gray[8],"data-event-category":c,"data-event-action":d,"data-event-label":u,weight:"semibold"===s?"semiBold":"bold",size:n,"data-size":n,"data-font-weight":s||void 0},m))}},"FQi+":function(e,t,n){n.d(t,{u:function(){return useTranslations}});var o=n("q1tI"),r=n("r1A1");function format(e,t){let n=[e];return(Object.keys(t).forEach(e=>{n=function(e,t,n){let r=[];return e.forEach(e=>{if("string"==typeof e){let a=RegExp(`\\{${n}\\}`,"gi");if("string"==typeof t||"number"==typeof t)r.push(e.replace(a,`${t}`));else{let n=e.split(a);n.forEach((e,a)=>{e&&(function(e){let t=[],n=!1,r=!1;return e.match(/^\s+/gi)&&(e=e.replace(/^\s+/gi,""),n=!0),e.match(/\s+$/gi)&&(e=e.replace(/\s+$/gi,""),r=!0),n&&t.push(o.createElement(o.Fragment,null,"\xa0")),t.push(e),r&&t.push(o.createElement(o.Fragment,null,"\xa0")),t})(e).forEach(e=>r.push(e)),a+1"string"==typeof e)?n.join(""):o.createElement(o.Fragment,null,n.map((e,t)=>o.createElement(o.Fragment,{key:t},e)))}function useTranslations(){let{values:e,locale:t}=(0,o.useContext)(r.T)||{locale:"en-PH"};return(0,o.useMemo)(()=>({t:(t,n)=>e?e[t]?n?format(e[t]||t,n):e[t]||t:n?format(t,n):t:t,locale:t}),[e,t])}},Dphd:function(e,t,n){n.d(t,{B:function(){return f},C:function(){return C},E:function(){return B},F:function(){return M},G:function(){return E},N:function(){return y},S:function(){return N},V:function(){return x},a:function(){return h},c:function(){return v},d:function(){return _},e:function(){return R},f:function(){return S},g:function(){return I},h:function(){return O},i:function(){return w}});var o,r,a,i,l,s,c,d,u,m,p,g,E,f,h,b,T,v,_,y,S,I,x,N,U=n("e6f9");(o=E||(E={})).Boy="boy",o.Girl="girl",(r=f||(f={}))[r.Height=0]="Height",r[r.Weight=1]="Weight",r[r.Head=2]="Head",r[r.BMI=3]="BMI",(a=h||(h={}))[a.Weekly=0]="Weekly",a[a.Monthly=1]="Monthly",a[a.Yearly=2]="Yearly",(i=b||(b={}))[i.Height=0]="Height",i[i.Weight=1]="Weight",i[i.Head=2]="Head",i[i.BMI=3]="BMI",i[i.Record=4]="Record",(l=T||(T={}))[l.Phone=0]="Phone",l[l.OTP=1]="OTP",l[l.OTPEmail=2]="OTPEmail",l[l.PersonalInfo=3]="PersonalInfo",l[l.UpdatePassword=4]="UpdatePassword",l[l.Result=5]="Result",l[l.DynamicForm=6]="DynamicForm",(s=v||(v={}))[s.HEAD=0]="HEAD",s[s.TAIL=1]="TAIL",s[s.MIDDLE=2]="MIDDLE",s[s.CONNECT=3]="CONNECT",s[s.SSO=4]="SSO",s[s.MULTIPLE=5]="MULTIPLE",(c=_||(_={}))[c.UNDEFINED=-1]="UNDEFINED",c[c.TEXT=0]="TEXT",c[c.IMAGE=1]="IMAGE",c[c.FORM=2]="FORM",c[c.CONDITION=3]="CONDITION",c[c.POLL=4]="POLL",c[c.FINAL_STANDARD=5]="FINAL_STANDARD",c[c.FINAL=6]="FINAL",c[c.FINAL_THANK_YOU=7]="FINAL_THANK_YOU",c[c.RATING=8]="RATING",c[c.REACTION=9]="REACTION",c[c.REVIEW=10]="REVIEW",c[c.RESULT_POLL=11]="RESULT_POLL",c[c.RESULT_RATING=12]="RESULT_RATING",c[c.RESULT_REACTION=13]="RESULT_REACTION",c[c.OTP=14]="OTP";let R=[_.FINAL,_.FINAL_STANDARD,_.FINAL_THANK_YOU];(d=y||(y={})).BOT_TEXT="bot-text",d.BOT_IMAGE="bot-image",d.BOT_BACKGROUND_IMAGE="bot-background-image",d.BOT_BUTTON="bot-button",d.BOT_URL="bot-url",d.BOT_RECALCULATE="bot-recalculate",d.BOT_BOOKING="bot-booking",d.BOT_MAIN_TITLE="bot-main-title",d.BOT_MAIN_IMAGE="bot-main-image",d.BOT_MAIN_BODY="bot-main-body",d.BOT_MAIN_BUTTON="bot-main-button",d.BOT_SUB_TITLE="bot-sub-title",d.BOT_SUB_BODY="bot-sub-body",d.BOT_LANDING_PAGE_URL="bot-landing-page-url",d.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",d.BOT_RISK_SCREEN="bot-risk-screen",d.BOT_RELATED_ARTICLE="bot-related-article",d.THANK_YOU_IMAGE="thank-you-image",d.THANK_YOU_TITLE="thank-you-title",d.THANK_YOU_BODY="thank-you-body",d.TOTAL_LINE="total-line",d.BOT_SUBMISSION="bot-submission",d.BOT_EVENT_SUBMISSION="bot-event-submission",d.BOT_SUGGESTED_SERVICE="bot-suggested-service",d.SSO_INTENT="sso-intent",(u=S||(S={})).ACTION_CONDITION="action-condition",u.ACTION_INTERNAL="action-internal",u.ACTION_EXTERNAL="action-external",u.ACTION_SSO_REDIRECT="action-sso-redirect",u.ACTION_MULTIPLE_BUTTON="action-multiple-button",u.USER_CHOICE_TEXT="user-choice-text",u.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",u.USER_CHOICE_NEXT="user-choice-next",u.USER_CHOICE_IMAGE="user-choice-image",u.USER_SUBMIT_TEXT="user-submit-text",u.USER_SUBMIT_NUMBER="user-submit-number",u.USER_SUBMIT_NAME="user-submit-name",u.USER_SUBMIT_PHONE="user-submit-phone",u.USER_SUBMIT_EMAIL="user-submit-email",u.USER_SUBMIT_DROPDOWN="user-submit-dropdown",u.USER_SUBMIT_DATE="user-submit-date",u.USER_SUBMIT_DOB="user-submit-dob",u.USER_SUBMIT_CONFIRM="user-submit-confirm",u.USER_SUBMIT_SEND="user-submit-send",u.USER_SUBMIT_RESEND="user-submit-resend",u.USER_SUBMIT_ADDRESS="user-submit-address",u.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",u.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",u.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",u.USER_SUBMIT_BMI="user-submit-bmi",u.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",u.USER_SUBMIT_TERMS="user-submit-terms",u.USER_SUBMIT_GENDER="user-submit-gender",u.USER_SUBMIT_OTP="user-submit-otp",u.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",u.POLL_CHOICE="poll-choice",u.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",u.POLL_CHOICE_IMAGE="poll-choice-image",u.POLL_BUTTON="poll-button",u.RATING_STAR="rating-star",u.RATING_DESCRIPTION="rating-description",u.RATING_BUTTON="rating-button",u.LIKE_CHOICE="like-choice",u.DISLIKE_CHOICE="dislike-choice",u.REVIEW_CHOICE="review-choice",u.REVIEW_DESCRIPTION="review-description",u.REVIEW_BUTTON="review-button",u.RESULT_BUTTON="result-button",u.POLL_RESULT="poll-result",u.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address";let M=[S.USER_SUBMIT_ADDRESS_PROVINCE,S.USER_SUBMIT_ADDRESS_DISTRICT,S.USER_SUBMIT_ADDRESS_COMMUNE,S.USER_SUBMIT_ADDRESS];(m=I||(I={}))[m.UNLIMITED=0]="UNLIMITED",m[m.EXACT_NUMBER=1]="EXACT_NUMBER",m[m.RANGE=2]="RANGE";let B={[S.USER_SUBMIT_EMAIL]:"email",[S.USER_SUBMIT_TEXT]:"text",[S.USER_SUBMIT_DROPDOWN]:"text",[S.USER_SUBMIT_NAME]:"name",[S.USER_SUBMIT_NUMBER]:"number",[S.USER_SUBMIT_ADDRESS]:"address",[S.USER_SUBMIT_PHONE]:"tel",[S.USER_SUBMIT_OTP]:"tel",[S.USER_SUBMIT_WHATSAPP]:"tel",[S.USER_SUBMIT_DATE]:"date",[S.USER_SUBMIT_CONFIRM]:"confirm",[S.USER_SUBMIT_SEND]:"submit",[S.USER_SUBMIT_TERMS]:"terms",[S.USER_SUBMIT_ADDRESS_PROVINCE]:"province",[S.USER_SUBMIT_ADDRESS_DISTRICT]:"district",[S.USER_SUBMIT_ADDRESS_COMMUNE]:"commune",[S.USER_SUBMIT_BMI]:"bmi",[S.USER_SUBMIT_GENDER]:"gender",[S.POLL_CHOICE]:"poll",[S.POLL_CHOICE_TEXT_BY_INPUT]:"poll",[S.POLL_CHOICE_IMAGE]:"poll",[S.RATING_STAR]:"rating",[S.RATING_DESCRIPTION]:"text",[S.LIKE_CHOICE]:"like",[S.DISLIKE_CHOICE]:"dislike",[S.REVIEW_CHOICE]:"review",[S.USER_SUBMIT_GOOGLE_API_ADDRESS]:"google-api-address",[S.USER_SUBMIT_DOB]:"dob"},O={FRU:"FRU",survey:"Survey",ristScreener:"risk_screener",voucherAcuvue:"ACUVUE"};(p=x||(x={})).VIDEO="video",p.SHORTS="short",p.PODCAST="podcast",p.LIVESTREAM="live-stream",(g=N||(N={})).Facebook="facebook",g.Zalo="zalo",g.Twitter="twitter",g.WhatsApp="whatsApp",g.Line="line",g.Instagram="instagram",g.LinkedIn="linkedin",g.Youtube="youtube",g.Tiktok="tiktok",g.Telegram="telegram",g.Viber="viber";let C={DD:{id:"common.day",defaultMessage:"Day"},MM:{id:"common.month",defaultMessage:"Month"},YYYY:{id:"common.year",defaultMessage:"Year"}};var w=Object.freeze({__proto__:null,get SocialType(){return N},COMMON_DATE_TRANSLATE_KEY:C,get Gender(){return E},get BabyGrowthChartType(){return f},get BabyGrowthChartDuration(){return h},get BabyGrowthResultTab(){return b},get LOCALE(){return U.L},get OnboardingStep(){return T},get NodePosition(){return v},get NodeType(){return _},NodeFinalTypes:R,get NodeIntentType(){return y},get NodeActionType(){return S},FULL_KEY_ADDRESS:M,get NodeMultipleOptions(){return I},ELEMENT_CONTROL_INPUT_TYPE:B,SubotType:O,get VideoType(){return x}})},es6D:function(e,t,n){n.d(t,{S:function(){return r}});var o=n("2wr/");let r=o.r},"/M6t":function(e,t,n){n.d(t,{M:function(){return Modal}});var o=n("usZY"),r=n("q1tI"),a=n("h8tX"),i=n("gFfe");let Modal=e=>{var{styles:t,classNames:n,transitionProps:l}=e,s=(0,o._)(e,["styles","classNames","transitionProps"]);let{classes:c}=(0,i.u)(void 0,{name:"Modal",styles:t,classNames:n});return r.createElement(a.u,Object.assign({centered:!0,classNames:c,transitionProps:Object.assign({transition:"fade"},l),trapFocus:!1},s))}},"I+CB":function(e,t,n){n.d(t,{C:function(){return CardLink}});var o=n("usZY"),r=n("q1tI"),a=n("8vDj"),i=n("6Dmq"),l=n("srUE"),s=n("XAIn"),c=n("rBCA"),d=n("IQVP"),u=n("ORpR");let m=c.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: min(280px, 56.25%); .link-image-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; .link-info-container { padding-bottom: 1rem; p { color: #2661ad; } .link-logo { max-width: 2rem; height: 13px; margin-right: 4px; object-fit: contain; vertical-align: middle; } } .link-image-wrapper { padding-top: min(360px, 56.25%); .link-image { object-fit: cover; } } } `,CardLink=({title:e,url:t,image:n,logo:c,className:p,style:g,noRefetch:E})=>{let{data:{locale:f,env:{isMarryBaby:h}}}=(0,r.useContext)(s.T),[b,T]=(0,r.useState)(!1),v=(0,a.rZ)(),_=(0,r.useRef)(E);_.current=E;let[y,S]=(0,r.useState)(null);(0,r.useEffect)(()=>{(0,o.a)(void 0,void 0,void 0,function*(){if(!_.current){if(!t)return S(null);S(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,s.c)((0,s.e)(d.yy.FETCH_PREVIEW,{_locale:f}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then(e=>{var n,o,r;T(!1),S({title:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.title,url:t,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.logo)})}).catch(()=>{S(null)})}})},[t]);let I=(null==y?void 0:y.image)||n,x=(null==y?void 0:y.title)||e,N=(null==y?void 0:y.logo)||c,U=(null==y?void 0:y.url)||t,R=U.replace("http://","").replace("https://","").split(/[/?#]/),M=R[0],B=(0,r.useRef)(!1);return r.createElement(m,{"data-is-marrybaby":h,className:`${p} no-replace-click`,style:g,color:v.colors[v.primaryColor][0]},r.createElement("a",{href:U,target:"_blank",rel:"noreferrer"},I&&r.createElement("div",{className:"link-image-wrapper"},!h&&r.createElement("img",{className:"link-image-blur",src:I,onError:e=>{B.current||(B.current=!0,e.currentTarget.src=u.D)},loading:"lazy"}),r.createElement("img",{className:"link-image",src:I,onError:e=>{B.current||(B.current=!0,e.currentTarget.src=u.D)},loading:"lazy"})),r.createElement("div",{className:"link-info-container"},r.createElement(l.T,{size:"n1"},h&&N&&!b&&r.createElement("img",{className:"link-logo",src:N,onError:()=>T(!0),loading:"lazy"}),M),r.createElement(i.H,{tag:"h6"},x))))}},dto0:function(e,t,n){n.d(t,{B:function(){return BlueWhiteLogin},N:function(){return NavigationProfileButton},U:function(){return UserPlain},a:function(){return I},b:function(){return NavigationProvider},u:function(){return useCSSFocusPopupHelper}});var o=n("usZY"),r=n("q1tI"),a=n("Eq4O"),i=n("5yHH"),l=n("MQ5V"),s=n("5bY3"),c=n("srUE"),d=n("FQi+"),u=n("ipFv"),m=n("iBNF"),p=n("rBCA"),g=n("pvoY"),E=n("gEnE"),f=n("xXM3"),h=n.n(f),b=n("EoE9"),T=n("XAIn"),v=n("VkEI"),_=n("xrdX"),y=n("QHxc"),S=n("hPj0");let BlueWhiteLogin=e=>r.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),r.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"}),r.createElement("path",{d:"M19.9092 22.0335C20.7055 21.7825 21.124 20.9029 20.786 20.1399C19.8879 18.1112 17.861 16.6946 15.4999 16.6946C13.1388 16.6946 11.112 18.1112 10.2138 20.1399C9.87585 20.9038 10.2944 21.7825 11.0907 22.0335C12.2249 22.3909 13.7258 22.7131 15.4999 22.7131C17.274 22.7131 18.7749 22.3909 19.9092 22.0335Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),UserPlain=e=>r.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.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"}),r.createElement("path",{d:"M14.4092 16.0335C15.2055 15.7825 15.624 14.9029 15.286 14.1399C14.3879 12.1112 12.361 10.6946 9.99992 10.6946C7.63881 10.6946 5.61196 12.1112 4.71381 14.1399C4.37585 14.9038 4.79436 15.7825 5.59066 16.0335C6.72492 16.3909 8.22584 16.7131 9.99992 16.7131C11.774 16.7131 13.2749 16.3909 14.4092 16.0335Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),useNavConfig=({locale:e,projectType:t,siteType:n,enableBookingBtn:o})=>{let a=(0,r.useMemo)(()=>{let r="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===n,a="marryBaby"!==n&&"marryBaby"!==t&&b.C.includes(e),i=o&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==n&&b.d.includes(e),l="marryBaby"===t||b.c.includes(e),s="marryBaby"!==n&&b.E.includes(e),c="marryBaby"!==n&&b.E.includes(e),d=b.V.includes(e),u=b.H.includes(e),m=b.e.includes(e),p=(0,v.g)(e,"marryBaby"===n),g=p;"undefined"!=typeof window&&(g.includes("//id.")&&(g=g.replace("id.","")),g.includes("//staging-id.")&&(g=g.replace("staging-id.","discover.")));let E=(0,v.a)(e,"marryBaby"===n),f={HOME_PAGE_URL:g,CARE_URL_FE:`${g}/care`,TOGETHER_URL_FE:`${g}/community`,VIDEO_URL_FE:`${g}/videos`,SSO_URL:E,TOGETHER_API:(0,v.b)(),DISCOVER_API:(0,v.c)(e)};return{enableSearchBar:r,enableNavCare:a,enableNavCareBooking:i,enableNavTogether:l,enableNavEcom:s,enableProfileEcom:c,enableNavVideo:d,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:f,enableNavClinityDownload:u,enableNavCartCare:m}},[]);return a},I=r.createContext({}),NavigationProvider=e=>{var{children:t}=e,n=(0,o._)(e,["children"]);let[a,i]=r.useState(()=>n.currentUrl||`https://${"marryBaby"===n.siteType?T.d[n.locale||"en-PH"]:_.v[n.locale||"en-PH"]}${"together"===n.projectType?"/community":"ecom"===n.projectType?"/ecom":"care"===n.projectType?"/care":""}/`);(0,r.useEffect)(()=>{let update=()=>{i(window.location.href)};return window.addEventListener("popstate",update),update(),()=>{window.removeEventListener("popstate",update)}},[]);let l=useNavConfig({locale:n.locale,projectType:n.projectType,siteType:n.siteType,enableBookingBtn:n.enableBookingBtn});return r.createElement(I.Provider,{value:Object.assign(Object.assign({},n),{customClasses:n.customClasses||{},configs:Object.assign(Object.assign({},l),n.configs),currentUrl:n.currentUrl||a})},t)},useCSSFocusPopupHelper=e=>{let{allowBgScroll:t}=e||{},n=(0,r.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())}}},x=(0,E.Z)(p.Z.div` position: absolute; right: 0; transition: all 0.5s ease-in-out; overflow-y: auto; &[data-open='true'] { z-index: 200; top: 120%; opacity: 1; visibility: visible; } &[data-open='false'] { display: none; } .popup-content { z-index: 111; height: 100%; border: 1px solid #0000001a; border-radius: 16px; border-top-left-radius: 0; border-top-right-radius: 0; } /* min-height: 415px; */ ${g.M.mbUp} { width: 320px; } ${g.M.mbDown} { position: fixed; left: 0; width: 100%; padding-bottom: 70px; } `,"hhgcomp-navprofilebutton-popup"),N=(0,E.Z)(p.Z.div` position: fixed; z-index: 150; top: var(--header-bottom, 56px); left: 0; width: 100%; height: 100%; align-items: center; ${g.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); } } ${g.M.mbDown} { background: rgba(38, 38, 38, 0.3); } &[data-type='welcome'] { top: 0; } &[data-open='false'] { display: none; } `,"hhgcomp-navprofilebutton-popupwrapper"),U=p.Z.div` width: 36px; height: 36px; cursor: pointer; img { border-radius: 50%; } .avatar { width: 36px; height: 36px; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${m.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 20px; font-weight: bold; } `,R=p.Z.div` display: inline-flex; position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; cursor: pointer; .user-close-icon { display: none; } &:focus-within { .user-close-icon { display: block; } .user-avatar { display: none; } ${x.classSelector} { z-index: 200; top: 120%; opacity: 1; visibility: visible; display: initial; ${g.M.mbDown} { top: 100%; } } ${N.classSelector} { display: initial; } } `,M=p.Z.a` display: inline-flex; .login-btn[data-color='tertiary'][data-size='md'] { padding-left: 12px; padding-right: 12px; } .mobile-only { ${g.M.mbUp} { display: none; } } .login-btn { display: none; ${g.M.mbUp} { display: block; border: 1px solid ${m.r.colors.neutral100}; } } &[data-win-cash-back-theme='true'] { .login-btn { ${g.M.mbUp} { color: ${m.r.colors.white}; } } } `,ProfilePopup=({isOpen:e,userInfo:t,closePopup:n,siteType:o="helloSites",dispatchLogout:a})=>{let{customClasses:i={},configs:{enableProfileFindMyBooking:l}}=(0,r.useContext)(I);return r.createElement(x,{className:i.profilePopup,"data-open":e},r.createElement("div",{className:h()("popup-content",i.profilePopupContent)},r.createElement(y.l,{siteType:o,onLogout:()=>{a&&(a(),n())},userInfo:t,configs:{enableProfileFindMyBooking:l}})))},NavigationProfileButton=({userInfo:e,siteType:t,onLoginClick:n,currentUrl:p,isMinifyLogin:g,onLogout:E,style:f,isLoading:h,isMobile:b,className:T})=>{let{isWinCashBackTheme:v}=(0,r.useContext)(I),{t:_}=(0,d.u)(),[y,x]=(0,r.useState)(!1),N=(null==e?void 0:e.name)||(null==e?void 0:e.username),{containerRef:B,onContainerFocus:O,onContainerBlur:C,onButtonMouseDown:w,onClose:A}=useCSSFocusPopupHelper(),L=(0,r.useMemo)(()=>b&&"helloSites"===t,[b]);return h?L?r.createElement(i.S,null):r.createElement(s.B,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?r.createElement(r.Fragment,null,r.createElement(R,{ref:B,style:f,tabIndex:0,onBlur:C,onFocus:()=>{var e;O();let t=null===(e=B.current)||void 0===e?void 0:e.querySelector("#navigation-v2 .hhgcomp-navprofilebutton-popup");if(t){let e=t.getBoundingClientRect(),n=e.top,o=`calc(100vh - ${n}px)`;t.setAttribute("style",`max-height: ${o};`)}},className:T},r.createElement("div",{onMouseDown:w},r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},r.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),r.createElement(l.A,{size:32,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===t?m.r.mbColors.pink:m.r.colors.secondaryBase,placeholderText:N&&N.length?N[0].toUpperCase():"A"})),r.createElement(ProfilePopup,{dispatchLogout:()=>{A(),x(!0)},isOpen:!1,closePopup:A,siteType:t,userInfo:e})),r.createElement(S.F,{openLogoutPopup:y,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:t,onLogoutHandler:()=>(0,o.a)(void 0,void 0,void 0,function*(){x(!1),document.body.classList.toggle("noscroll",!1),yield E()})})):r.createElement(M,{style:Object.assign({textDecoration:"none"},f),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":p,"data-win-cash-back-theme":v,"data-site-type":t,onClick:n},g?r.createElement(U,null,r.createElement("img",{src:u.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):r.createElement(r.Fragment,null,"helloSites"===t&&(L?v?r.createElement(BlueWhiteLogin,{className:"mobile-only",style:{cursor:"pointer",width:32,height:32,flexShrink:0}}):r.createElement("img",{className:"mobile-only",src:u.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):r.createElement(s.B,{className:"mobile-only",size:"sm",leftIcon:r.createElement(a.Z,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},_("navigation.loginJoin"))),"marryBaby"===t&&r.createElement("div",{className:"mobile-only",style:{paddingLeft:16}},r.createElement(c.T,{size:"p3",color:m.r.mbColors.pink},_("navigation.loginJoin"))),"marryBaby"===t?r.createElement(s.B,{className:"login-btn",size:"md",leftIcon:r.createElement(a.Z,{color:"currentColor",isSolid:!0,size:22})},_("navigation.loginJoin")):r.createElement(s.B,{className:"login-btn",size:"md",leftIcon:v?r.createElement(UserPlain,{style:{flexShrink:0,width:20,height:20}}):r.createElement(a.Z,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626",sx:{fontWeight:500,fontSize:14,lineHeight:22}},_("navigation.loginJoin"))))}}}]);