"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7613],{iwkL:function(e,t,n){n.d(t,{x:function(){return PregnancyWeightGainChart}});var r=n("q1tI"),a=n("W5tO"),i=n("wp0n"),l=n("tpb0"),o=n("Gx+P"),s=n("iBNF"),c=n("ps87"),u=n("S6KQ"),d=n("y9N3"),p=n("hNiv"),m=n("J+eN"),g=n("b+jq"),h=n("BChI"),v=n("wwo5"),f=n("N6qP"),_=n("BUnU"),b=n("rBCA"),E=n("FRPj");n("Wgwc"),n("xXM3");let CustomizedAxisTick=e=>{let{x:t,y:n,payload:a,activeWeek:i}=e;return i===a.value?r.createElement("g",{transform:`translate(${t},${n})`},r.createElement("circle",{r:12,fill:"marryBaby"===e.siteType?s.r.mbColors.pink:s.r.colors.primaryBase}),r.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.r.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},a.value)):r.createElement("g",{transform:`translate(${t},${n})`},r.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.r.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},a.value))},y=b.Z.div` /* position: absolute; */ display: flex; flex-direction: column; padding: 8px 12px; gap: 4px; min-width: 145px; max-width: 220px; min-height: 50px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); /* .risk { display: flex; align-items: center; padding: 4px 8px; background: ${s.r.colors.yellow600}; border-radius: 3px; } */ & > * { display: flex; gap: 4px; align-items: center; } .risk { display: inline-flex; padding: 2px 8px; border-radius: 2px; background: #ffffff; } `,w=b.Z.div` position: relative; width: 100%; .custom-chart-label { display: flex; width: 100%; justify-content: space-between; align-items: center; } .chart-legend { display: flex; justify-content: space-between; } `,T=b.Z.div` display: flex; gap: 40px; justify-content: center; margin-bottom: 8px; & > div { display: flex; align-items: center; gap: 4px; } `,C=[{name:"overweight",backgroundColor:s.r.colors.yellow50,color:s.r.colors.yellow900},{name:"underweight",backgroundColor:s.r.colors.yellow50,color:s.r.colors.yellow900},{name:"healthy",backgroundColor:s.r.colors.green50,color:s.r.colors.green900}],CustomizedTooltipLabel=e=>{var t,n,a,l,o;let{payload:c,active:u}=e,d=null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.payload;if(!d||!d.toolTipLabel||!u)return null;let{backgroundColor:p,color:m}=(0,r.useMemo)(()=>C.find(e=>e.name===d.status),[null==d?void 0:d.status]);return r.createElement(y,null,r.createElement("div",null,null===(n=d.toolTipLabel)||void 0===n?void 0:n[0]," ",null===(a=d.toolTipLabel)||void 0===a?void 0:a[1]),r.createElement("div",null,(null===(l=d.toolTipLabel)||void 0===l?void 0:l[2])&&r.createElement(i.T,{as:"span",size:"s3",color:s.r.colors.gray800,weight:"semiBold"},null===(o=d.toolTipLabel)||void 0===o?void 0:o[2]),r.createElement("div",{className:"risk",style:{backgroundColor:p}},r.createElement(i.T,{size:"n1",color:m},d.translatedStatus))))},generatePregnancyWeightGainChartData=({weightByWeek:e,weightBefore:t,toolTipLabel:n,status:r,activeWeek:a,t:i})=>{let l=i(`bmi.result.${r}`),generateAdditionalData=e=>e===a?{toolTipLabel:n,translatedStatus:l,status:r}:{};return e.map(e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},generateAdditionalData(e.week)))},Chart=({weightBefore:e,weightByWeek:t,activeWeek:n,currentWeight:l,toolTipLabel:b=[],status:E,withLine:y=!1,siteType:T})=>{let{t:C}=(0,o.u)(),I="marryBaby"===T,O=(0,r.useMemo)(()=>generatePregnancyWeightGainChartData({weightByWeek:t,weightBefore:e,toolTipLabel:b,status:E,activeWeek:n,t:C}),[t,e,b,E,n]),[S,A]=(0,r.useState)(!1),x=(0,r.useRef)(null);return(0,_.a)(x,()=>A(!1)),r.createElement(w,null,I?r.createElement(a.M,{type:"bodytext-3",color:s.r.mbColors.dark}," ",C("babyGrowth.weight")," ",C("pregnancyWeightGain.weightInput.desc")):r.createElement(i.T,{size:"n1",color:s.r.colors.gray500},C("babyGrowth.weight")," ",C("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&r.createElement(w,null,r.createElement(c.h,{height:388,className:"chart"},r.createElement(u.T,{data:O,margin:{top:16,right:0,left:0}},r.createElement(d.q,{stroke:s.r.colors.neutral100}),r.createElement(p.u,{trigger:"click",content:e=>r.createElement(CustomizedTooltipLabel,Object.assign({active:!y&&S&&void 0!==n&&void 0!==l},e))}),r.createElement(m.K,{type:"number",scale:"linear",ticks:Array.from({length:40},(e,t)=>t+1),dataKey:"name",tickLine:!1,tickMargin:12,tick:e=>r.createElement(CustomizedAxisTick,Object.assign({},e,{activeWeek:n,siteType:T})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),r.createElement(g.B,{domain:[t=>Math.max(t,e-10||t),t=>Math.max(t,e+20||t)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round((e+Number.EPSILON)*100)/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:s.r.colors.gray600}}),r.createElement(h.u,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),r.createElement(h.u,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:I?s.r.mbColors.tonePink:s.r.colors.primary100}),void 0!==n&&void 0!==l&&r.createElement(v.q,{onClick:()=>A(!0),x:0===n?1:n,y:l,r:4,shape:r.createElement(f.C,{ref:x,r:4}),fill:I?s.r.mbColors.pink:s.r.colors.primaryBase,stroke:I?s.r.mbColors.pink:s.r.colors.primaryBase}))),r.createElement("div",{className:"custom-chart-label"},r.createElement("i",null),I?r.createElement(a.M,{type:"bodytext-3",color:s.r.mbColors.dark},C("pregnancy.week")):r.createElement(i.T,{size:"n1",color:s.r.colors.gray500},C("pregnancy.week")))))},Dot=e=>{var{color:t}=e,n=(0,E._)(e,["color"]);return r.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},n),r.createElement("circle",{cx:"4",cy:"4",r:"4",fill:t||s.r.colors.primaryBase}))},ChartLegend=({idealWeight:e,siteType:t})=>{let{t:n}=(0,o.u)(),l="marryBaby"===t;return r.createElement(T,null,r.createElement("div",null,l?r.createElement(r.Fragment,null,r.createElement(Dot,{color:s.r.mbColors.lightPink}),r.createElement(a.M,{type:"bodytext-3",color:s.r.mbColors.dark},n("pregnancyTool.weightSuggested")," ",r.createElement(i.T,{size:"n1",color:s.r.colors.gray800,weight:"bold",as:"span"},e))):r.createElement(r.Fragment,null,r.createElement(Dot,{color:s.r.colors.primary100}),r.createElement(i.T,{size:"n1",color:s.r.colors.gray600},r.createElement(i.T,{size:"n1",as:"span"},n("pregnancyTool.weightSuggested")," "),r.createElement(i.T,{size:"n1",color:s.r.colors.gray800,weight:"bold",as:"span"},e)))),r.createElement("div",null,l?r.createElement(r.Fragment,null,r.createElement(Dot,{color:s.r.mbColors.pink}),r.createElement(a.M,{type:"bodytext-3",color:s.r.mbColors.dark},n("pwg.placeholder.weight"))):r.createElement(r.Fragment,null,r.createElement(Dot,null),r.createElement(i.T,{size:"n1",color:s.r.colors.gray600},n("pwg.placeholder.weight")))))},I=b.Z.div` display: flex; flex-direction: column; align-items: center; padding: 24px 16px; width: 100%; gap: 24px; border: 1px solid ${s.r.colors.neutral100}; border-radius: 8px; .chart-header { text-align: center; } > div { width: 100%; } `,PregnancyWeightGainChart=({chartProps:e,pillCarouselProps:t,idealWeight:n,description:c,siteType:u})=>{let{t:d}=(0,o.u)();return r.createElement(I,null,r.createElement("div",{className:"chart-header"},"marryBaby"===u?r.createElement(a.a,{type:"h3",color:s.r.mbColors.dark},d("pregnancyTool.weightSuggested")):r.createElement(i.T,{size:"s1",weight:"semiBold",color:s.r.colors.gray800},d("pregnancyTool.weightSuggested")),c&&c),r.createElement(l.P,Object.assign({},t)),r.createElement("div",null,r.createElement(ChartLegend,{idealWeight:n,siteType:u}),r.createElement(Chart,Object.assign({},e,{siteType:u}))))}},"nfB/":function(e,t,n){n.d(t,{A:function(){return r}});let r="100ms"},bVHi:function(e,t,n){n.d(t,{I:function(){return IS_SSOV2_ENABLED},S:function(){return a},a:function(){return d},b:function(){return isPhoneNotVerifedYet},c:function(){return isLoginWithPhoneNotVerifedYet},d:function(){return isFlowFinishedSetup},i:function(){return isUserFinishedSetup},r:function(){return redirect},u:function(){return p}});var r,a,i=n("FRPj"),l=n("VNqU"),o=n("NXHd"),s=n("LL/B"),c=n("27Mu"),u=n("yNk5");(r=a||(a={})).FIRST="first",r.EMAIL="email",r.VERIFY_PHONE="verify_phone",r.PASSWORD="password",r.UPDATE_EMAIL="update_email",r.FORGOT_PASSWORD_PHONE="forgot_password_phone",r.FORGOT_PASSWORD_SETUP="forgot_password_setup",r.OTP="otp",r.SETUP_FULL="setup_full";let d=(0,l.Ue)(e=>({currentStepIndex:0,steps:[{type:a.FIRST}],setSteps:t=>e(e=>({steps:"function"==typeof t?t(e.steps):t})),addStep:t=>{e(e=>({steps:[...e.steps,t]}))},goNext:()=>{e(e=>({currentStepIndex:e.currentStepIndex+1}))},goBack:()=>{e(e=>({currentStepIndex:e.currentStepIndex-1,steps:e.steps.slice(0,e.steps.length-1)}))}})),p=(0,l.Ue)()((e,t)=>({userInfo:void 0,abTestFlow:"A",setABTestFlow(t){e({abTestFlow:t})},setUserInfo:t=>e({userInfo:t}),isOpen:!1,setOpen:t=>e({isOpen:t}),returnUrl:void 0,setReturnUrl:t=>e({returnUrl:t}),mounted:!1,setMounted:t=>e({mounted:t}),source:void 0,setSource:t=>e({source:t}),setupSource:void 0,setSetupSource:t=>e({setupSource:t}),setOnCloseProp:t=>e({onCloseProp:t}),triggerLogin:n=>{var r,i;let{source:l,returnUrl:o}=n||{},u=(0,c.ej)(s.B);u?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,null==n?void 0:n.forceReloadOnClose),e({isOpen:!1}),null===(i=(r=t()).onCloseProp)||void 0===i||i.call(r)):(d.setState({steps:[{type:a.FIRST,config:{legalTextType:((null==o?void 0:o.includes("joincommunity=1"))?"community":null==n?void 0:n.legalTextType)||"default"}}],currentStepIndex:0}),e({isOpen:!0,returnUrl:o,source:l,overrideClose:void 0,forceReloadOnClose:null!=o&&!!o.includes("joincommunity=1")||(null==n?void 0:n.forceReloadOnClose)||!1,flowData:void 0,userInfo:void 0}))},triggerCareEmailPhoneVerify:n=>(0,i.a)(void 0,void 0,void 0,function*(){var r,l,s;let c=yield(0,o.g)();(null===(r=null==c?void 0:c._data)||void 0===r?void 0:r.first_time_login)&&(c._data.first_time_login=0),e({userInfo:null==c?void 0:c._data});let forceUpdatePhoneEmail=r=>(0,i.a)(void 0,void 0,void 0,function*(){var i,l,s,c,u,p,m,g,h,v,f,_,b,E;let y=yield(0,o.g)(),w=!!(null===(i=null==y?void 0:y._data)||void 0===i?void 0:i.phone)&&!!(null===(l=null==y?void 0:y._data)||void 0===l?void 0:l.phone_verified_at),T=!!(null===(s=null==y?void 0:y._data)||void 0===s?void 0:s.email)&&!!(null===(c=null==y?void 0:y._data)||void 0===c?void 0:c.email_verified_at)&&!(null===(p=null===(u=null==y?void 0:y._data)||void 0===u?void 0:u.email)||void 0===p?void 0:p.endsWith("@hhg.com"))&&!(null===(g=null===(m=null==y?void 0:y._data)||void 0===m?void 0:m.email)||void 0===g?void 0:g.endsWith("@facebook.com")),C=!!(null===(h=null==y?void 0:y._data)||void 0===h?void 0:h.name),I=!!(null===(v=null==y?void 0:y._data)||void 0===v?void 0:v.birthday),O="number"==typeof(null===(f=null==y?void 0:y._data)||void 0===f?void 0:f.gender),S=null===(_=null==y?void 0:y._data)||void 0===_?void 0:_.provider;w&&T?(null==n?void 0:n.skipForceSetup)||C&&I&&O?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,!0),e({isOpen:!1,forceReloadOnClose:!1}),null===(E=(b=t()).onCloseProp)||void 0===E||E.call(b)):(d.setState({steps:[{type:a.SETUP_FULL,config:{userInfo:y._data}}],currentStepIndex:0}),e(e=>Object.assign({source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,isOpen:!0,overrideClose:void 0,forceReloadOnClose:!0},r&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==y?void 0:y._data)}:{}))):(d.setState({steps:[{type:w?a.UPDATE_EMAIL:a.VERIFY_PHONE,config:w||T?{provider:S,afterAction:(null==n?void 0:n.skipForceSetup)?"done":"setup"}:{provider:S,afterAction:"update-email"}}],currentStepIndex:0}),e(e=>Object.assign({source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,isOpen:!0,overrideClose:void 0,forceReloadOnClose:!0},r&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==y?void 0:y._data)}:{})))});if(null===(l=null==c?void 0:c._data)||void 0===l?void 0:l.id)forceUpdatePhoneEmail(!0);else{d.setState({steps:[{type:a.FIRST,config:{legalTextType:((null===(s=null==n?void 0:n.returnUrl)||void 0===s?void 0:s.includes("joincommunity=1"))?"community":null==n?void 0:n.legalTextType)||"default"}}],currentStepIndex:0}),e({isOpen:!0,overrideClose:forceUpdatePhoneEmail,source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,forceReloadOnClose:!0,flowData:void 0});return}}),triggerCommunityEmailVerify:n=>(0,i.a)(void 0,void 0,void 0,function*(){var r,l,s;let c=yield(0,o.g)();(null===(r=null==c?void 0:c._data)||void 0===r?void 0:r.first_time_login)&&(c._data.first_time_login=0),e({userInfo:null==c?void 0:c._data});let forceUpdateEmail=r=>(0,i.a)(void 0,void 0,void 0,function*(){var i,l,s,c,u,p,m,g,h,v,f,_;let b=yield(0,o.g)(),E=!!(null===(i=null==b?void 0:b._data)||void 0===i?void 0:i.email)&&!!(null===(l=null==b?void 0:b._data)||void 0===l?void 0:l.email_verified_at)&&!(null===(c=null===(s=null==b?void 0:b._data)||void 0===s?void 0:s.email)||void 0===c?void 0:c.endsWith("@hhg.com"))&&!(null===(p=null===(u=null==b?void 0:b._data)||void 0===u?void 0:u.email)||void 0===p?void 0:p.endsWith("@facebook.com")),y=!!(null===(m=null==b?void 0:b._data)||void 0===m?void 0:m.name),w=!!(null===(g=null==b?void 0:b._data)||void 0===g?void 0:g.birthday),T="number"==typeof(null===(h=null==b?void 0:b._data)||void 0===h?void 0:h.gender),C=null===(v=null==b?void 0:b._data)||void 0===v?void 0:v.provider;E?y&&w&&T?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,!0),e({isOpen:!1,forceReloadOnClose:!1}),null===(_=(f=t()).onCloseProp)||void 0===_||_.call(f)):(d.setState({steps:[{type:a.SETUP_FULL,config:{userInfo:b._data}}],currentStepIndex:0}),e(e=>Object.assign({source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,isOpen:!0,overrideClose:void 0,forceReloadOnClose:!0},r&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==b?void 0:b._data)}:{}))):(d.setState({steps:[{type:a.UPDATE_EMAIL,config:{provider:C,afterAction:"setup"}}].filter(Boolean),currentStepIndex:0}),e(e=>Object.assign({source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,isOpen:!0,overrideClose:void 0,forceReloadOnClose:(null==n?void 0:n.forceReloadOnClose)||!1},r&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==b?void 0:b._data)}:{})))});if(null===(l=null==c?void 0:c._data)||void 0===l?void 0:l.id)forceUpdateEmail(!0);else{d.setState({steps:[{type:a.FIRST,config:{legalTextType:((null===(s=null==n?void 0:n.returnUrl)||void 0===s?void 0:s.includes("joincommunity=1"))?"community":null==n?void 0:n.legalTextType)||"default"}}],currentStepIndex:0}),e({isOpen:!0,overrideClose:forceUpdateEmail,source:null==n?void 0:n.source,returnUrl:null==n?void 0:n.returnUrl,forceReloadOnClose:!0,flowData:void 0});return}}),forceReloadOnClose:!1})),redirect=(e,t,n)=>{if(n){let n;return n=(null==e?void 0:e.startsWith("http"))||(null==e?void 0:e.startsWith("//"))?new URL(e):e?new URL(e,window.location.href):new URL(window.location.href),t&&n.searchParams.set("source",t),window.location.href=n.href,!0}let r=new URL(window.location.href);if(e){let n;n=e.startsWith("http")||e.startsWith("//")?new URL(e):new URL(e,window.location.href);let a=n.searchParams.get("source");r.searchParams.delete("source"),n.searchParams.delete("source");let i=a||t;if(r.href!==n.href)return i&&n.searchParams.set("source",i||""),window.location.href=n.href,!0}if(t){r.searchParams.set("source",t),window.history.replaceState({},"",r.href);return}},m=["vi-VN","id-ID","ms-MY"],IS_SSOV2_ENABLED=e=>!u.env.NEXT_PUBLIC_MARRY_BABY&&m.includes(e||u.env.UNIFY_LOCALE||"vi-VN"),getSSOFlowFromUserProfile=e=>{if(!e)throw Error("userInfo is required");let t=!!(null==e?void 0:e.name),n=!!(null==e?void 0:e.birthday),r="number"==typeof(null==e?void 0:e.gender);return{flow:t&&n&&r?"signup":"login",method:(null==e?void 0:e.provider)||"email"}},isUserFinishedSetup=e=>{if(!e)throw Error("userInfo is required");let t=!!(null==e?void 0:e.name),n=!!(null==e?void 0:e.birthday),r="number"==typeof(null==e?void 0:e.gender);return t&&n&&r},isFlowFinishedSetup=e=>{var t,n,r;return(null===(t=null==e?void 0:e.metaData)||void 0===t?void 0:t.is_gender)&&(null===(n=null==e?void 0:e.metaData)||void 0===n?void 0:n.is_name)&&(null===(r=null==e?void 0:e.metaData)||void 0===r?void 0:r.is_birthday)},isPhoneNotVerifedYet=e=>!(null==e?void 0:e.phone_verified_at)||!(null==e?void 0:e.phone),isLoginWithPhoneNotVerifedYet=(e,t)=>(null==e?void 0:e.flow)==="login"&&(null==t?void 0:t.phone)&&(null==t?void 0:t.area_code)&&!(null==t?void 0:t.phone_verified_at)},"x+vA":function(e,t,n){n.d(t,{S:function(){return SurveyQuestionCard},a:function(){return SurveyThankyouCard}});var r,a,i=n("q1tI"),l=n("LgdP"),o=n("wp0n"),s=n("DEkF"),c=n("l9Yf"),u=n("6lwj"),d=n("rBCA"),p=n("iBNF");let m=d.Z.div` padding: 1rem; background: ${p.r.colors.neutral100}; .survey-inner-wrapper { padding: 1.25rem 1rem 1.5rem; background: ${p.r.colors.white}; border-radius: ${p.r.borderRadius}; .survey-header { border-bottom: 1px solid #dbdfe5; margin-bottom: 12px; .survey-header-text { color: ${p.r.colors.gray500}; } } .survey-contact-submit { width: 100%; margin-bottom: 1.5rem; } .term-policy-container { width: 70%; min-width: 210px; max-width: 100%; margin: 0 auto 1.5rem; text-align: center; } .survey-progress-wrapper { width: calc(100% + 2rem); height: 4px; margin-bottom: 1rem; margin-left: -1rem; background: #e4e8ec; .survey-progress { width: 100%; height: 100%; background: #00b16a; transform: scaleX(0); transform-origin: left; transition: transform ease-in-out 0.3s; } } .survey-button-wrapper { display: flex; justify-content: flex-end; button { justify-content: center; &[data-has-icon='true'] { svg { width: 10px; height: 10px; margin-right: 10px; vertical-align: unset; } } &.survey-next-button { &[data-has-icon='true'] { svg { margin-right: 0; margin-left: 10px; } } } } &[data-center='true'] { justify-content: center; button:only-child { width: 200px; max-width: 80%; } } .survey-prev-button { margin-right: 0.5rem; } } } `,g=d.Z.div` position: relative; display: flex; align-items: center; cursor: pointer; input { position: relative; width: 20px; height: 20px; flex-shrink: 0; border: solid 1px ${p.r.colors.gray500}; margin-right: 8px; border-radius: 100%; cursor: inherit; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${p.r.colors.primaryBase}; box-shadow: 0 0 2px 2px ${p.r.colors.primary600}; } &:checked { display: flex; align-items: center; justify-content: center; border-color: ${p.r.colors.primaryBase}; &:after { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; //left: 3px; //position: absolute; //top: 4px; background-color: ${p.r.colors.primaryBase}; border-radius: 50%; content: ''; transform: translate(-50%, -50%); } } } label { width: calc(100% - 24px); cursor: inherit; font-weight: ${p.r.sizes.fwRegular}; } &[data-disabled='true'] { color: ${p.r.colors.gray300}; cursor: not-allowed; input { border-color: ${p.r.colors.gray300}; &:hover { border-color: ${p.r.colors.gray300}; box-shadow: none; } } } padding: 16px 20px; border: 0.5px solid transparent; background: #fafafa; border-radius: ${p.r.borderRadius}; &[data-checked='true'] { border: 0.5px solid #2d87f3; background: #f7f9fc; } input { border: solid 2px #737373; margin-right: 0; background: white; &[type='checkbox'] { &:checked { border: 0; background: ${p.r.colors.primaryBase} url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; &:after { display: none; } } } } &[data-has-image='true'] { position: relative; display: block; padding: 12px; input { position: absolute; top: 20px; right: 20px; } .choice-image-wrapper { position: relative; padding-top: 56.25%; margin-bottom: 0.75rem; img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: ${p.r.borderRadius}; object-fit: cover; } } } `,h=d.Z.div` position: relative; width: 100%; padding-top: min(400px, 100%); .survey-thankyou-wrapper-inner { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; .survey-thankyou-icon { width: 36%; max-height: 50%; margin-bottom: 1.5rem; } .survey-thankyou-title { margin-bottom: 1rem; text-align: center; } .survey-thankyou-subtitle { text-align: center; > * { text-align: center; } } } `,v=d.Z.div` .survey-question-text-wrapper { margin-bottom: 24px; .survey-question-title { margin-bottom: 4px; } .survey-question-subtitle, .survey-question-description { color: ${p.r.colors.gray500}; } } .survey-question-image { width: 100%; margin-bottom: 12px; border-radius: ${p.r.borderRadius}; } .survey-question-answer-wrapper { margin-bottom: 1.5rem; .survey-question-options-wrapper { display: grid; grid-gap: 0.5rem; grid-template-columns: 1fr; &[data-has-image='true'] { grid-gap: 0.8rem; grid-template-columns: 1fr 1fr; } .survey-question-option-item { label { color: #262626; font-size: 16px; font-style: normal; font-weight: normal; line-height: 24px; } } } .survey-contact-input { margin-bottom: 1rem; &:first-child { margin-top: 1rem; } label { font-weight: 700; } input { margin-top: 6px; } } } `,SurveyRadio=({size:e="small",label:t,name:n,checked:r,value:a,className:l,isDisabled:o=!1,onChange:s,hasImage:c,inputType:u,image:d})=>i.createElement(g,{"data-disabled":o,className:l,"data-size":e,"data-checked":r,onClick:()=>{s(a)},"data-has-image":c},c&&i.createElement("div",{className:"choice-image-wrapper"},d&&i.createElement("img",{src:d,loading:"lazy"})),i.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${n}-${a}`},t),i.createElement("input",{type:u,checked:r,name:n,id:`${n}-${a}`,value:a,readOnly:!0})),SurveyQuestionContent=({question:e,description:t,onOptionsChange:n,onTextOptionsChange:r,style:a,className:l})=>{let{type:d,title:p,subtitle:m,image:g,textOptions:h,options:f,name:_,is_multi_select:b}=e,E=!!(null==f?void 0:f.some(e=>e.image)),[y,w]=(0,i.useState)([]),[T,C]=(0,i.useState)(()=>(null==h?void 0:h.slice())||[]);return(0,i.useEffect)(()=>{n&&n(y.slice())},[!!n,y]),(0,i.useEffect)(()=>{r&&r(T)},[!!r,T]),i.createElement(v,{className:l,style:a},i.createElement("div",{className:"survey-question-text-wrapper"},p&&i.createElement(s.H,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},p),m&&i.createElement(o.T,{className:"survey-question-subtitle",size:"p2"},m),t&&i.createElement(o.T,{className:"survey-question-description",size:"p2"},t)),g&&i.createElement("img",{src:g,className:"survey-question-image",loading:"lazy"}),i.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===d&&i.createElement("div",{"data-has-image":E,className:"survey-question-options-wrapper"},f.map(e=>{var t;return i.createElement(SurveyRadio,{inputType:"radio",label:e.label,name:_,key:`${_}-${e.value}`,checked:(null===(t=y[0])||void 0===t?void 0:t.value)===e.value,value:e.value,onChange:e=>{w([f.find(t=>t.value===e)])},className:"survey-question-option-item",image:e.image,hasImage:E})})),"checkbox"===d&&i.createElement("div",{"data-has-image":E,className:"survey-question-options-wrapper"},f.map(e=>i.createElement(SurveyRadio,{inputType:"checkbox",label:e.label,name:_,key:`${_}-${e.value}`,checked:!!y.find(t=>t.value===e.value),value:e.value,onChange:()=>{let t=y.findIndex(t=>t.value===e.value);t>=0?w(e=>(e.splice(t,1),e.slice())):b?w(t=>t.concat(e).slice()):w([e])},className:"survey-question-option-item survey-option-radio",image:e.image,hasImage:E}))),"textbox"===d&&T.map((e,t)=>e.isTextArea?i.createElement(u.T,{key:t,placeholder:e.placeholder,height:"150px",value:e.value,onChange:e=>C(n=>(n[t].value=e,n.slice()))}):i.createElement(c.I,{key:t,value:e.value,name:e.name,size:"md",className:"survey-contact-input",label:e.label,placeholder:e.placeholder,onChange:e=>{C(n=>(n[t].value=e,n.slice()))},type:e.type}))))};(r=a||(a={}))[r.UNLIMITED=0]="UNLIMITED",r[r.EXACT_NUMBER=1]="EXACT_NUMBER",r[r.RANGE=2]="RANGE";let SurveyQuestionCard=({className:e,headerText:t,style:n,question:r,termAndPolicyText:s,prevText:c,nextText:u,isContactForm:d,isDisableNext:p,isDisablePrev:g,onPrevClick:h,onNextClick:v,isSubmitButton:f,isButtonCenter:_,progress:b,descriptionText:E})=>{var y,w,T;let[C,I]=(0,i.useState)([]),{is_multi_select:O,multi_select_option:S,from:A,to:x}=r,L=null==r?void 0:r.type,P="checkbox"===L&&(null===(y=r.options)||void 0===y?void 0:y.length)&&(!C||0===C.length||O&&S===a.RANGE&&(C.lengthx)||O&&S===a.EXACT_NUMBER&&C.length!==A)||"radio"===L&&(null===(w=r.options)||void 0===w?void 0:w.length)&&(!C||0===C.length)||"textbox"===L&&(null===(T=r.textOptions)||void 0===T?void 0:T.length)&&(C.length!e.value)),N="number"==typeof b?b>1?1:b<0?0:Number(b.toFixed(2)):-1,k=(0,i.useRef)(null),reportValidity=()=>"textbox"!==L||k.current.reportValidity();return i.createElement(m,{className:e,style:n},i.createElement("div",{className:"survey-inner-wrapper"},t&&i.createElement("div",{className:"survey-header"},i.createElement(o.T,{className:"survey-header-text",size:"c2"},t)),i.createElement("form",{ref:k,onSubmit:e=>e.preventDefault()},i.createElement(SurveyQuestionContent,{question:r,description:E,onOptionsChange:e=>{I(e)},onTextOptionsChange:e=>{I(e)}})),d&&u&&i.createElement(l.B,{className:"survey-contact-submit",size:"lg",isDisabled:p||P,onClick:()=>reportValidity()&&v&&v(C)},u),s&&i.createElement("div",{className:"term-policy-container"},s),"number"==typeof b&&i.createElement("div",{className:"survey-progress-wrapper"},i.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${N})`}})),(c||u)&&i.createElement("div",{"data-center":_,className:"survey-button-wrapper"},c&&i.createElement(l.B,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:i.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},i.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:g?"#fff":"#2D87F3"})),onClick:h},c),!d&&u&&i.createElement(l.B,{onClick:()=>reportValidity()&&v&&v(C),className:"survey-next-button",size:"lg",isDisabled:p||P},u," ",f?void 0:i.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},i.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},SurveyThankyouCard=({thankyou:e,thankyouSubtitle:t,className:n,style:r})=>i.createElement(m,{className:n,style:r},i.createElement("div",{className:"survey-inner-wrapper"},i.createElement(h,null,i.createElement("div",{className:"survey-thankyou-wrapper-inner"},i.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},i.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:p.r.colors.primary50}),i.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),i.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),i.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),i.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),i.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),i.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),i.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),i.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),i.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),i.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),i.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),e&&i.createElement(s.H,{className:"survey-thankyou-title",tag:"h3"},e),t&&i.createElement(o.T,{className:"survey-thankyou-subtitle",size:"p3"},t)))))},IQVP:function(e,t,n){n.d(t,{D9:function(){return i},qf:function(){return l},tC:function(){return a},yy:function(){return r}});let r={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}&items_per_page={pageSize}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}",GET_UNCATEGORIZED:"community/uncategorized?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}&items_per_page={pageSize}&topic_in={topic_in}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"},CHATBOT:{PROFILE:"chatbox/get-profile?website_url={website_url}",FAQS_LIST:"chatbox/get-faq?website_url={website_url}",GET_SUGGEST_COMMUNITY:"v2/community/topic"}},a={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},i={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},l={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}}},aUqw:function(e,t,n){n.r(t),n.d(t,{ProfileDetail:function(){return r.a},TabDataInit:function(){return r.b},TabName:function(){return r.T},UserType:function(){return r.U}}),n("q1tI"),n("Wgwc");var r=n("Idd8");n("NmYn"),n("gY0P"),n("rBCA"),n("xXM3"),n("QgiU")},eMJq:function(e,t,n){n.d(t,{T:function(){return a}});var r=n("q1tI");let a=(0,r.createContext)(null)},hf4S:function(e,t,n){n.d(t,{t:function(){return h}}),n("q1tI");var r=n("28jV"),a=n("GSig"),i=n("2mZo"),l=n("pTQe"),o=n("9N6U"),s=n("/VDm"),c=n("ksTz"),u=n("fjxZ"),d=n("dtCp"),p=n("ycZd"),m=n("LdxM"),g=n("oJoJ");let h={"en-PH":r.ZP,"vi-VN":d.ZP,"hi-IN":a.ZP,"id-ID":i.ZP,"ms-MY":o.ZP,"my-MM":s.ZP,"km-KH":l.ZP,"zh-TW":g.ZP,"zh-SG":m.ZP,"th-TH":c.ZP,"tl-PH":u.ZP,"vi-VN_MB":p.ZP}},"MFH/":function(e,t,n){n.d(t,{C:function(){return CardReactions},L:function(){return LabelSortPin},T:function(){return TagTopic},a:function(){return LabelPin},b:function(){return TreePopoverMenu},c:function(){return a}});var r,a,i=n("FRPj"),l=n("q1tI"),o=n("Gx+P"),s=n("ft6n"),c=n("Eso5"),u=n("/npG"),d=n("LL/B"),p=n("wp0n"),m=n("iBNF"),g=n("uuQu"),h=n("R7WV"),v=n("VhOp"),f=n("25AQ"),_=n("eosF"),b=n("rBCA"),E=n("DEkF"),y=n("ywlr");let w=(0,l.createContext)({});var T={wrapper:"vvR-m49"};let LikeWrapper=e=>{var{children:t,className:n=""}=e,r=(0,i._)(e,["children","className"]);let{isReplied:a,trackingCategory:o,trackingLabel:s,onLikeClick:u}=(0,l.useContext)(w);return l.createElement(c.x,Object.assign({className:`${T.wrapper} ${n}`,"data-event-category":o,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":s},r,{onClick:()=>{null==u||u()}}),t)},ShareWrapper=e=>{var{children:t,className:n=""}=e,r=(0,i._)(e,["children","className"]);let{trackingCategory:a,trackingLabel:o,onShareClick:s}=(0,l.useContext)(w);return l.createElement(c.x,Object.assign({className:`${T.wrapper} ${n}`,"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":o},r,{onClick:()=>{null==s||s()}}),t)},CommentWrapper=e=>{var{children:t,className:n=""}=e,r=(0,i._)(e,["children","className"]);let{isReplied:a,trackingCategory:o,trackingLabel:s,onCommentClick:u}=(0,l.useContext)(w);return l.createElement(c.x,Object.assign({className:`${T.wrapper} ${n}`,"data-event-category":o,"data-event-action":a?"Reply Comment Click":"Comment Text Click","data-event-label":s},r,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null==u||u()}}),t)},SaveWrapper=e=>{var{children:t,className:n=""}=e,r=(0,i._)(e,["children","className"]);let{trackingCategory:a,trackingLabel:o,onSaveClick:s}=(0,l.useContext)(w);return l.createElement(c.x,Object.assign({className:`${T.wrapper} ${n}`,"data-event-category":a,"data-event-action":"Save Post Click","data-event-label":o},r,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null==s||s()}}),t)};var C={wrapper:"UhiT4m5",inner:"oEfeTkV",iconTxt:"_9GXHCn3",clickableIcon:"HCsrR0N",labelReaction:"Ierg-Fq",actions:"_674BTR4",statistical:"XlkglSM",releatedStatistical:"KyekKc3",statisticalNoAction:"TTfvZpR"};(r=a||(a={}))[r.post=1]="post",r[r.reply=2]="reply";let CardReactions=e=>{var{type:t,viewCount:n=0,loveCount:r=0,replyCount:c=0,replyPadding:u,liked:d,isReplied:g,isSaved:f,onCommentClick:_,onLikeClick:b,onShareClick:E,onSaveClick:y,onGoToUrl:T,className:I,style:O,showingMostEngaging:S,isMarryBaby:A,hasShare:x=!0,hasSave:L=!0,hasActionStatistical:P=!0,hasShowAction:N=!0,isReleatedPost:k=!1,isVertical:R=!1,trackingCategory:B="Together",trackingLabel:M="",children:U}=e,D=(0,i._)(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","isSaved","onCommentClick","onLikeClick","onShareClick","onSaveClick","onGoToUrl","className","style","showingMostEngaging","isMarryBaby","hasShare","hasSave","hasActionStatistical","hasShowAction","isReleatedPost","isVertical","trackingCategory","trackingLabel","children"]);let{data:{env:{isMarryBaby:F}}}=(0,l.useContext)(v.T),G=A||F,{t:H}=(0,o.u)(),{isMobile:j}=(0,h.u)(),$=(0,l.useMemo)(()=>n>0||c>0,[n,c]),W=(0,l.useMemo)(()=>n>0||r>0||c>0,[n,r,c]),z=(0,l.useCallback)(()=>l.createElement("div",{className:`${C.releatedStatistical} ${P?"":C.statisticalNoAction} session-statistical`},l.createElement("div",{className:"releated-post-statistical"},l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div",onClick:()=>{P&&(null==T||T())}},n>0&&l.createElement(l.Fragment,null,l.createElement(s.I.Eye,{size:18,isMarryBaby:G}),l.createElement("div",{className:C.labelReaction},n))),l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div",onClick:()=>{P&&(null==T||T(c>0?"":"?action=comment"))}},l.createElement("div",{className:C.labelReaction},c>0?H("comment.count",{count:c}):H("comment.now"))))),[$,P,G,n,c]),K=(0,l.useCallback)(()=>W?l.createElement("div",{className:`${C.statistical} ${P?"":C.statisticalNoAction} session-statistical`},l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div",onClick:()=>{P&&(null==T||T())}},n>0&&l.createElement(l.Fragment,null,l.createElement(s.I.Eye,{size:18,isMarryBaby:G}),l.createElement("div",{className:C.labelReaction},n))),j||R?l.createElement("div",{className:"wrapper-list-statistical"},r>0?l.createElement(p.T,{className:C.iconTxt,size:"p3",as:"div",onClick:()=>{P&&(null==T||T())}},l.createElement("div",{className:C.labelReaction},r," ",H("cardReactions.like"))):l.createElement("div",null),c>0&&l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div",onClick:()=>{P&&(null==T||T())}},l.createElement("div",{className:C.labelReaction},c," ",H("cardReactions.comment")))):l.createElement(l.Fragment,null,r>0?l.createElement(p.T,{className:C.iconTxt,size:"p3",as:"div",onClick:()=>{P&&(null==T||T())}},l.createElement(s.I.Heart,{isMarryBaby:G,isSolid:!1,size:18,color:"#737373"}),l.createElement("div",{className:C.labelReaction},r)):l.createElement("div",null),c>0&&l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div",onClick:()=>{P&&(null==T||T())}},l.createElement(s.I.Comment,{size:18,className:"txt-icon",isMarryBaby:G}),l.createElement("div",{className:C.labelReaction},c)))):"",[W,P,G,j,n,r,c]);return l.createElement(w.Provider,{value:{liked:d,loveCount:r,trackingCategory:B,trackingLabel:M,isReplied:g,onLikeClick:b,onShareClick:E,onCommentClick:_,onSaveClick:y}},U||l.createElement("div",Object.assign({className:`${C.wrapper} ${I}`,"data-show-most-engaging":S,"data-type":t===a.post?"post":"reply","data-reply-padding":t===a.reply&&u,"data-is-marrybaby":G,style:O},D),l.createElement("div",{className:`${C.inner} ${R?"direction-vertical":""}`},N&&l.createElement("div",{className:`${C.actions} session-action`},l.createElement(LikeWrapper,{className:`${C.clickableIcon} wrapper-action`},l.createElement(p.T,{className:C.iconTxt,size:"p3",as:"div"},l.createElement(s.I.Heart,{isMarryBaby:G,isSolid:d,size:18,color:d?G?m.r.mbColors.pink:m.r.colors.red800:"#737373"}),l.createElement("div",{className:C.labelReaction},H("cardReactions.like")))),x&&l.createElement(ShareWrapper,{className:`${C.clickableIcon} wrapper-action`},l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div"},l.createElement(s.I.Share,{size:18,isMarryBaby:G}),l.createElement("div",{className:C.labelReaction},H("share.title")))),L&&l.createElement(SaveWrapper,{className:`${C.clickableIcon} wrapper-action`},l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div"},f?l.createElement(s.I.Bookmark,{size:18,isMarryBaby:G,color:G?"#3E3F58":"#737373"}):l.createElement(s.I.Save,{size:18,isMarryBaby:G,color:G?"#3E3F58":"#737373"}),l.createElement("div",{className:C.labelReaction},f?H("cardReactions.unSave"):H("cardReactions.save")))),l.createElement(CommentWrapper,{className:`${C.clickableIcon} wrapper-action`},l.createElement(p.T,{size:"p3",className:C.iconTxt,as:"div"},l.createElement(s.I.Comment,{size:18,className:"txt-icon",isMarryBaby:G}),l.createElement("div",{className:C.labelReaction},H("cardReactions.comment"))))),k?z():K())))};CardReactions.LikeWrapper=LikeWrapper,CardReactions.ShareWrapper=ShareWrapper,CardReactions.CommentWrapper=CommentWrapper;let I=(0,u.k)(e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}})),TagTopic=e=>{var{topics:t=[],onClick:n,className:r,style:a,trackingCategory:s="Together",locale:c="vi-VN",classNames:u,styles:m,unstyled:g,shortenedNumber:h=3,shortenedStyle:b}=e,E=(0,i._)(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);let{t:y}=(0,o.u)(),{classes:w}=I(void 0,{name:"TagTopic",classNames:u,styles:m,unstyled:g}),{data:{env:{togetherBasePath:T}},action:{sanitizeFunction:C}}=(0,l.useContext)(v.T),[O,S]=(0,l.useState)(!b);return l.createElement("div",Object.assign({onClick:n,className:`${w.wrapper} ${r}`,style:a},E),(O?t:t.slice(0,h)).map((e,t)=>{let n=(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateMonth)!==0&&(null==e?void 0:e.dueDateYear)&&(null==e?void 0:e.dueDateYear)!==0;return l.createElement("a",{className:w.item,key:t,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${(0,v.k)(c)}${T}${e.url}`,href:e.isActive&&!e.isHidden?`${T}${e.url}/`:void 0},l.createElement(p.T,{size:"p4"},l.createElement("span",{style:Object.assign({},n&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:n?`${(0,f.Z)(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:d.g[c]})}${c===_.L.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==C?void 0:C(e.name))||e.name}})))}),!O&&t.length>h&&l.createElement("a",{className:w.item,href:"#",onClick:e=>{e.preventDefault(),S(!0)}},l.createElement(p.T,{size:"p4"},"+",y("tagTopic.moreTopics",{number:t.length-h}))))},O=b.Z.div` display: flex; align-items: center; justify-content: space-between; padding: 16px; cursor: pointer; &[data-color='gray'] { background: ${m.r.colors.neutral50}; } &[data-color='white'] { border-bottom: 1px solid #e4e8ec; background: ${m.r.colors.white}; } .popover-menu__btn { display: flex; min-width: 2rem; height: 2rem; align-items: center; padding: 8px 0 !important; border: none; margin-left: 0.5rem; background: transparent; > span { display: flex; align-items: center; } &:hover { background: transparent !important; } } &.label-pinned { border-radius: ${m.r.borderRadius} 6px 0 0; .label-sort-pin-icon { width: 16px; height: 16px; vertical-align: middle; } } &[data-is-marrybaby='true'] { padding: 0.75rem 1rem; border-radius: 16px 16px 0px 0px; &[data-color='white'] { border-bottom: none; } &[data-color='gray'] { background: #f3f3f3; } .popover-menu__btn { width: unset; } &.label-pinned { border-bottom: none; background: #fff9eb; border-radius: 1rem 1rem 0 0; .label-sort-pin-icon { margin-right: 8px; } .label-sort-pin-heading { color: #fb8c00; } } &.label-sorting { ${g.M.tdUp} { padding-bottom: 1.5rem; margin-bottom: -0.75rem; } } } `,LabelSortPin=({label:e,rightLabel:t,onClick:n,color:r,className:a,style:i})=>{let{data:{env:{isMarryBaby:o}}}=(0,l.useContext)(v.T);return l.createElement(O,{"data-is-marrybaby":o,"data-color":r,onClick:n,className:a,style:i},l.createElement(p.T,{className:"label-sort-pin-heading",size:o?"p4":"p3",weight:"bold"},e),t)},LabelPin=({onClick:e,color:t,className:n,style:r})=>{let{data:{env:{isMarryBaby:a}}}=(0,l.useContext)(v.T),{t:i}=(0,o.u)();return l.createElement(LabelSortPin,{label:l.createElement(l.Fragment,null,a&&l.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3.5 20 4.37-4.37'/%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4.956 11.294a1 1 0 0 0 0 1.414l2.918 2.918 2.918 2.918a1 1 0 0 0 1.414 0l1.175-1.175a1 1 0 0 0 .293-.707v-3.936l2.9-2.9 2.31.123c.282.015.56-.091.76-.291l.573-.574a1 1 0 0 0 0-1.414l-4.386-4.386a1 1 0 0 0-1.414 0l-.574.574a1 1 0 0 0-.29.76l.122 2.309-2.9 2.9H6.838a1 1 0 0 0-.707.293z' clip-rule='evenodd'/%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m16.57 9.83-2.9-2.9'/%3e%3c/svg%3e",loading:"lazy"})," ",i("label.pinnedPost")),rightLabel:!a&&l.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23FEA21E' stroke-linecap='round' d='m7.186 7.682-3.504 6.132'/%3e%3cpath fill='%23FEA21E' stroke='%23FEA21E' stroke-linejoin='round' stroke-width='.5' d='M3.246 7.784a.25.25 0 0 0 .091.342l5.447 3.145a.25.25 0 0 0 .342-.092 3.39 3.39 0 0 0 .11-3.186l1.622-2.808a2.66 2.66 0 0 0 1.606-1.239.25.25 0 0 0-.092-.341l-4.19-2.42a.25.25 0 0 0-.341.092 2.66 2.66 0 0 0-.27 2.01L5.949 6.095a3.39 3.39 0 0 0-2.703 1.69Z'/%3e%3c/svg%3e",loading:"lazy"}),onClick:e,color:"white",className:`label-pinned ${n}`,style:r})},TreePopoverMenu=e=>{var{data:t}=e,n=(0,i._)(e,["data"]);return l.createElement(y.P,Object.assign({},n),({setShow:e})=>l.createElement(Tree,{data:t,setShow:e}))},getCurrentDataFromPath=(e,t)=>{let n=t.split("."),r=e;return n.forEach(e=>{var t,n;e&&r&&(null==r?void 0:r.type)==="list"&&(r=null===(n=null===(t=null==r?void 0:r.list)||void 0===t?void 0:t[Number(e)])||void 0===n?void 0:n.subTree)}),r},Tree=({data:e,setShow:t})=>{var n;let[r,a]=(0,l.useState)(""),i=(0,l.useMemo)(()=>e&&getCurrentDataFromPath(e,r),[e,r]);if(!e||!i)return null;let handleItemClick=(e,{subTree:n,onClick:r=()=>null})=>{r&&r(),n?a(t=>t.split(".").concat(String(e)).join(".")):t&&t(!1)};return l.createElement(y.S,null,i.isShowheader?l.createElement("div",{className:"__header"},r?l.createElement("img",{className:"__back-btn",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m15 18-6-6 6-6'/%3e%3c/svg%3e",onClick:()=>a(e=>e.split(".").slice(0,-1).join(".")),loading:"lazy"}):null,i.title?l.createElement(E.H,{className:"__title",tag:"h6"},i.title):null):null,i.description?l.createElement(p.T,{className:"tree-text-description",color:m.r.colors.gray600,size:"p3",weight:"regular"},i.description):null,l.createElement("div",{className:"__content"},"jsx"===i.type?null===(n=null==i?void 0:i.jsxRenderer)||void 0===n?void 0:n.call(i,t):null,"list"===i.type?l.createElement("ul",{className:"__list"},Array.isArray(i.list)?i.list.map((e,t)=>l.createElement("li",{key:t,style:e.style,className:`__item ${e.className}`}," ",l.createElement("div",{className:`__btn ${e.selected?"--checked":""}`,onClick:()=>handleItemClick(t,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&l.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),l.createElement("span",null,e.label)),e.subTree?l.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 12 4-4-4-4'/%3e%3c/svg%3e",loading:"lazy"}):null,e.selected?l.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%238C8C8C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M13.333 4 6 11.333 2.667 8'/%3e%3c/svg%3e",loading:"lazy"}):null)):null):null))}},FRPj:function(e,t,n){function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r.throw(e))}catch(e){i(e)}}function step(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})}n.d(t,{_:function(){return __rest},a:function(){return __awaiter}})},VTF6:function(e,t,n){n.d(t,{t:function(){return l},w:function(){return r}}),(a=i||(i={}))[a.SPECIALTY=1]="SPECIALTY",a[a.DOCTOR=2]="DOCTOR",a[a.CLINIC=3]="CLINIC",a[a.SERVICE=4]="SERVICE";let r=["mon","tue","wed","thu","fri","sat","sun"];var a,i,l=Object.freeze({__proto__:null,get RedirectType(){return i},workingDays:r})},KzWH:function(e,t,n){n.d(t,{t:function(){return r}});var r=Object.freeze({__proto__:null})},"+m3q":function(e,t,n){n.d(t,{E:function(){return setupUnifyEnv}});var r=n("yNk5");function setupUnifyEnv({DISCOVER_API:e,INTERNAL_DISCOVER_API:t,TOGETHER_API:n,INTERNAL_TOGETHER_API:a,CARE_API:i,INTERNAL_CARE_API:l,SIDIS_TEMPLATE_API:o,SIDIS_API:s,SIDIS_API_GET:c,SSO_API:u,LOCALE:d,DEPLOY_ENV:p,LEAD_API:m,SUBOT_API:g,INTERNAL_SUBOT_API:h,SUBOT_URL:v,PREMIUM_URL:f,VACCINATION_TOOL_API:_,LOGGING_ENABLED:b}){e&&(r.env.UNIFY_DISCOVER_API=e),t&&(r.env.UNIFY_INTERNAL_DISCOVER_API=t),n&&(r.env.UNIFY_TOGETHER_API=n),a&&(r.env.UNIFY_INTERNAL_TOGETHER_API=a),i&&(r.env.UNIFY_CARE_API=i),l&&(r.env.UNIFY_INTERNAL_CARE_API=l),o&&(r.env.UNIFY_SIDIS_TEMPLATE_API=o),s&&(r.env.UNIFY_SIDIS_API=s),c&&(r.env.UNIFY_SIDIS_API_GET=c),u&&(r.env.UNIFY_SSO_API=u),d&&(r.env.UNIFY_LOCALE=d),p&&(r.env.UNIFY_DEPLOY_ENV=p),m&&(r.env.UNIFY_LEAD_API=m),g&&(r.env.UNIFY_SUBOT_API=g),h&&(r.env.UNIFY_INTERNAL_SUBOT_API=h),v&&(r.env.UNIFY_SUBOT_URL=v),f&&(r.env.UNIFY_PREMIUM_URL=f),_&&(r.env.UNIFY_VACCINATION_TOOL_API=_),String(b)&&(r.env.UNIFY_LOGGING_ENABLED=String(b))}},"1HUI":function(e,t,n){n.d(t,{u:function(){return useHealthToolsCache}});var r=n("FRPj"),a=n("q1tI"),i=n("+GCU");let useHealthToolsCache=e=>{let[t,n]=(0,a.useState)([]);(0,a.useEffect)(()=>{(0,r.a)(void 0,void 0,void 0,function*(){let t=yield(0,i.E2)(e);n(t)})},[i.E2,e]);let l=(0,a.useCallback)(e=>{var n;return(null===(n=t.find(t=>t.template===e))||void 0===n?void 0:n.link)||""},[t]);return{allTools:t,getHealthToolLink:l}}},"6KnK":function(e,t,n){n.d(t,{u:function(){return useIsInit}});var r=n("q1tI");let useIsInit=()=>{let[e,t]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{t(!1)},[]),e}},BUnU:function(e,t,n){n.d(t,{a:function(){return useOutsideClick},i:function(){return initSharedOutSideClickListener},u:function(){return useSharedOutsideClick}});var r=n("q1tI");let a=new Map,handleClick=e=>{for(let[t,n]of a)t.current&&!t.current.contains(e.target)&&n(e)},initSharedOutSideClickListener=()=>{document.addEventListener("mousedown",handleClick,{passive:!0})},useSharedOutsideClick=(e,t)=>{(0,r.useEffect)(()=>(a.set(e,t),()=>{a.delete(e)}),[e,t])},useOutsideClick=(e,t)=>{let n=(0,r.useCallback)(n=>{var r;null!==(r=e.current)&&void 0!==r&&r.contains(n.target)||t(n)},[]);(0,r.useEffect)(()=>(document.addEventListener("mousedown",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n)}),[n])}},iBGz:function(e,t,n){n.d(t,{M:function(){return u},P:function(){return c},a:function(){return usePrevious},b:function(){return useRafState},c:function(){return useCategory},d:function(){return usePhoneValidator},u:function(){return useFbDataLayer}});var r=n("FRPj"),a=n("q1tI"),i=n("27Mu"),l=n("g35t"),o=n("Gx+P"),s=n("eosF");function normalizeAndHash(e){let t=new TextEncoder().encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then(e=>{let t=Array.from(new Uint8Array(e)),n=t.map(e=>e.toString(16).padStart(2,"0")).join("");return n})}let useFbDataLayer=e=>{let t=(0,a.useRef)("");(0,a.useEffect)(()=>((0,r.a)(void 0,void 0,void 0,function*(){var n,r,a,l,o;if(!t.current){let e=yield fetch("https://api.ipify.org").then(e=>e.text());e||(e=yield fetch("https://icanhazip.com").then(e=>e.text())),t.current=e}if(null===(r=null===(n=window.localStorage)||void 0===n?void 0:n.setItem)||void 0===r||r.call(n,"fbClientIp",JSON.stringify({client_ip_address:(null===(a=t.current)||void 0===a?void 0:a.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==e?void 0:e.id){let[t,n,r,a,s,c]=yield Promise.all([e.email?normalizeAndHash(e.email):null,e.phone?normalizeAndHash(e.phone):null,e.birthday?normalizeAndHash(e.birthday.split("-").join("")):null,e.gender?"m":"f",e.city_name?normalizeAndHash(e.city_name).then(e=>e.replace(/\s/g,"")):null,e.name?normalizeAndHash(e.name):null]);(0,i.ej)("_fbc"),(0,i.ej)("_fbp");let u={user_id:e.id};c&&(u.fn=c),t&&(u.em=t),n&&(u.ph=n),r&&(u.db=r),s&&(u.ct=s),null===(o=null===(l=window.localStorage)||void 0===l?void 0:l.setItem)||void 0===o||o.call(l,"fbDataLayer_userInfo",JSON.stringify(u))}}),()=>{}),[e])},usePrevious=e=>{let t=(0,a.useRef)(),n=(0,a.useRef)(e),r=(0,l.u)();return r||n.current===e||(t.current=n.current,n.current=e),t.current},useRafState=e=>{let[t,n]=(0,a.useState)(e),r=(0,a.useRef)(0),i=(0,a.useCallback)(e=>{cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{n(e)})},[]);return(0,a.useEffect)(()=>()=>cancelAnimationFrame(r.current)),[t,i]},c={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy","zh-SG":"pregnancy"},u={[s.L.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[s.L.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Singapore]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}},useCategory=e=>{let{locale:t}=(0,o.u)(),n=(0,a.useMemo)(()=>decodeURI(e.replace(/\//gi,"")).includes(c[t]),[]),r=(0,a.useMemo)(()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=u[t])||void 0===n?void 0:n.parenting)},[]),i=(0,a.useMemo)(()=>(function(e,t){let n=e.split("/");for(let e in t){let r=t[e];if(n.includes(r))return e}return null})(e,u[t]),[e,t]);return{isPregnancy:n,isParenting:r,type:i}};function usePhoneValidator(){let[e,t]=(0,a.useState)(!1);(0,a.useEffect)(()=>{(0,r.a)(this,void 0,void 0,function*(){if("undefined"==typeof window)return;if(!window.intlTelInputUtils)try{yield n.e(7034).then(n.t.bind(n,"cfI3",23))}catch(e){console.error("Failed to load intl-tel-input utils",e);return}let e=window.intlTelInputUtils;e&&"function"==typeof e.isValidNumber&&t(!0)})},[]);let i=(0,a.useMemo)(()=>e?(e,t)=>{try{let n=window.intlTelInputUtils;if(!n||"function"!=typeof n.isValidNumber)return!0;return n.isValidNumber(e,t)}catch(e){return console.warn("Phone validation error:",e),!0}}:null,[e]);return i}},NYfU:function(e,t,n){n.d(t,{G:function(){return s},a:function(){return o},u:function(){return usePlacesAutocomplete}});var r=n("FRPj"),a=n("q1tI"),i=n("yNk5");let formatAutoCompleteAddress=e=>!e||e.length<1?[]:e.map(e=>({placeId:e.place_id,description:e.description,rawData:e})),l="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},s=i.env.GOOGLE_MAP_KEY||"AIzaSyDH2YEO0oZ0XzQv90_7nd2mBHIDhFxLw4s",googleAutocomplete=(e="",t="",n="vi")=>(0,r.a)(void 0,void 0,void 0,function*(){return new Promise((r,a)=>{if(!e)return a("Need valid text input");if(l)return a("Need valid window object");try{new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({input:e},t?{componentRestrictions:{country:t}}:{}),{language:o[n]}),r)}catch(e){a(e)}})}),usePlacesAutocomplete=(e="",t="",n="",i=500)=>{let[l,o]=(0,a.useState)([]),[s,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let a;return e?a=window.setTimeout(()=>(0,r.a)(void 0,void 0,void 0,function*(){if(!e){o([]);return}try{c(!0);let r=yield googleAutocomplete(e,t,n);o(formatAutoCompleteAddress(r))}catch(e){console.error(e)}finally{c(!1)}}),i):l.length&&o([]),()=>{window.clearTimeout(a)}},[e,i,t]),{isLoading:s,predictions:l}}},"6VYw":function(e,t,n){n.d(t,{M:function(){return l},u:function(){return useScrollbarSize}});var r=n("q1tI"),a=n("sEfC"),i=n.n(a);let l="measure-scrollbar-size",useScrollbarSize=(e=!0)=>{let[t,n]=(0,r.useState)({height:0,width:0}),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!e||"undefined"==typeof window)return;let getElement=()=>(a.current||(a.current=document.createElement("div"),a.current.classList.add(l),a.current.style.width="99px",a.current.style.height="99px",a.current.style.overflow="scroll",a.current.style.position="absolute",a.current.style.top="-9999px",a.current.setAttribute("aria-hidden","true"),a.current.setAttribute("role","presentation")),a.current),updateState=()=>{let{offsetHeight:e,clientHeight:t,offsetWidth:r,clientWidth:a}=getElement(),i=e-t,l=r-a;n(e=>{let{height:t,width:n}=e;return t!==i||n!==l?{height:i,width:l}:e})},t=i()(updateState,100);window.addEventListener("resize",t,{passive:!0}),document.body.appendChild(getElement()),updateState();let r=getElement();return()=>{t.cancel(),window.removeEventListener("resize",t),document.body.removeChild(r)}},[e]),t}},aZjv:function(e,t,n){n.d(t,{I_:function(){return TogetherAuthConfigContextProvider},YS:function(){return s},iV:function(){return useTogetherAuthRequiredAction}});var r=n("q1tI"),a=n("27Mu"),i=n("bVHi"),l=n("VhOp"),o=n("Aqof");n("NmYn"),n("gY0P");let s=(0,r.createContext)({}),TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>r.createElement(s.Provider,{value:{defaultParams:t}},e),useTogetherAuthRequiredAction=e=>{let{triggerLogin:t}=(0,i.u)(),{data:{userInfo:n,env:{togetherBasePath:c}}}=(0,r.useContext)(l.T),{defaultParams:u}=(0,r.useContext)(s)||{},d=(0,r.useRef)(!!(null==n?void 0:n.id));d.current=!!(null==n?void 0:n.id);let p=(0,r.useRef)(n&&"number"==typeof n.communities_interacted&&0===n.communities_interacted);return p.current=n&&"number"==typeof n.communities_interacted&&0===n.communities_interacted,{authActionWrapper:(n,r)=>{let s=Object.assign(Object.assign(Object.assign({},u),e),r);if(d.current&&!p.current)return n&&n();{d.current||(0,a.kT)(o.B),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);let e=(null==s?void 0:s._location)||window.location.href;null==s||delete s._location;let n=(0,l.j)(e,s,c);if((0,i.I)()){let e=n.slice(n.indexOf("returnUrl=")+10);if(e){let n=decodeURIComponent(e);t({returnUrl:n,source:"communities"})}}else window.location.href=n;return null}},params:Object.assign(Object.assign({},u),e)}}},g35t:function(e,t,n){n.d(t,{a:function(){return useUniqueId},u:function(){return useInitialMount}});var r=n("q1tI");let useInitialMount=()=>{let e=(0,r.useRef)(!0);return!!e.current&&(e.current=!1,!0)},a=0,useUniqueId=()=>{let e=(0,r.useRef)(""),t=useInitialMount();return t&&(a+=1,e.current=`hhg-gen-id${a}`),e.current}},ARpY:function(e,t,n){n.d(t,{a:function(){return u},b:function(){return c},c:function(){return isSupportProduct},g:function(){return getURLwithSSOTracking},i:function(){return s}});var r=n("vjmd"),a=n("NXHd"),i=n("bVHi"),l=n("EoPH"),o=n("eosF");let s=[o.L.Indonesia,o.L.Malaysia].includes(a.l),c=[o.L.Vietnam].includes(a.l),u=[o.L.Vietnam].includes(a.l),isSupportProduct=e=>{let t=i.u.getState().setupSource||"discover",n=(null==e?void 0:e.find(e=>"discover"===e.name))&&"discover"===t,r=(null==e?void 0:e.find(e=>"together"===e.name))&&"community"===t,a=(null==e?void 0:e.find(e=>"care"===e.name))&&"care"===t;return n||r||a},getURLwithSSOTracking=(e,{source:t,botItem:n})=>{var a;if(!t&&!n)return null;try{let i=new URL(e.startsWith("localhost")?`http://${e}`:e),o={bmi:r.b.BMI,bmr:r.b.BMR,"due-date":r.b.DUE_DATE,ovulation:r.b.OVULATION,"baby-growth":r.b.BABY_GROWTH,"baby-vaccine":r.b.BABY_VACCINE,"pregnancy-weight-gain":r.b.PWG,"target-heart-rate":r.b.THR,"baby-poop-checking":r.b.BABY_POOP},s=o[t],c=window.location.href.includes("/health-tools");return s&&!c?(i.searchParams.set("embeddedType","healthTool"),i.searchParams.set("toolName",s)):(null===(a=null==n?void 0:n.extra_settings)||void 0===a?void 0:a.subot_type)===l.h.ristScreener&&(i.searchParams.set("embeddedType","riskScreener"),i.searchParams.set("toolName",String(n.id))),i}catch(e){return null}}},Bd2T:function(e,t,n){n.d(t,{C:function(){return CloseIcon},D:function(){return DefaultThumbnailAny},M:function(){return MagnifierIcon},P:function(){return PinIcon},S:function(){return h},a:function(){return v},b:function(){return b},c:function(){return _},d:function(){return f},e:function(){return ClearIcon},f:function(){return DefaultThumbnailDoctor},g:function(){return DefaultThumbnailService},h:function(){return getApiPath},i:function(){return g},u:function(){return useGeolocation}});var r=n("q1tI"),a=n("LL/B"),i=n("27Mu"),l=n("rBCA"),o=n("iBNF"),s=n("uuQu"),c=n("ECoa"),u=n("gY0P"),d=n.n(u),p=n("xrdX");function useGeolocation(){let[e,t]=(0,r.useState)(()=>{if("undefined"==typeof window)return"unset";if((0,i.ej)(a.U))return"granted";let e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"}),[n,l]=(0,r.useState)(()=>{if("undefined"==typeof window)return null;let e=(0,i.ej)(a.U);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null}),o=(0,r.useCallback)(function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{let n={lat:`${Math.round(1e7*e.coords.latitude)/1e7}`,lng:`${Math.round(1e7*e.coords.longitude)/1e7}`};(0,i.d8)(a.U,JSON.stringify(n),{minutes:15}),l(n),t("granted")},()=>{(0,i.kT)(a.U),t("denied")})},[]);return(0,r.useMemo)(()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:o}),[e,n])}let ClearIcon=({className:e,color:t})=>r.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"})),CloseIcon=({className:e,color:t})=>r.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),PinIcon=({className:e,color:t})=>r.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},r.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),MagnifierIcon=({className:e,color:t})=>r.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),DefaultThumbnailAny=({width:e,height:t})=>r.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),DefaultThumbnailDoctor=({width:e,height:t})=>r.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none"},r.createElement("g",{clipPath:"url(#clip0_14712_400114)"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),r.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_14712_400114"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),DefaultThumbnailService=({width:e,height:t})=>r.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),r.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"})),m=l.Z.li` display: flex; align-items: center; gap: 12px; padding: 8px 16px; > :first-child { flex: 1; } > :nth-child(2) { flex: 6; } & + li::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background-color: ${o.r.colors.neutral100}; } `,g="url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",h=l.Z.div` display: flex; position: absolute; top: 48px; min-width: 100%; box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04); border-radius: ${o.r.borderRadius}; background-color: white; z-index: 30; ${s.M.tdDown} { position: relative; top: 0; box-shadow: initial; } `,v=l.Z.ul` width: 100%; max-height: 600px; overflow-y: auto; `,f=(0,l.Z)(PinIcon)` width: 12px; height: 18px; `,_=l.Z.li` position: relative; cursor: pointer; padding: 12px 18px; display: flex; align-items: center; gap: 14px; overflow: hidden; ${({isSelected:e})=>e&&` &::after { content: ${g}; top: 50%; right: 18px; position: absolute; transform: translateY(-50%); } `} & + li::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background-color: ${o.r.colors.neutral100}; } &:not([data-is-denied='true']):hover { background-color: ${o.r.colors.neutral50}; } &:last-child:hover { border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; } &:first-child:hover { border-top-right-radius: 6px; border-top-left-radius: 6px; } &[data-is-denied='true'] { cursor: not-allowed; } `,b=(0,l.Z)(({count:e,className:t})=>r.createElement(r.Fragment,null,[...Array(e)].map((e,n)=>r.createElement(m,{className:t,key:n},r.createElement(c.Z,{count:1,height:32}),r.createElement(c.Z,{count:1,height:24})))))` &:first-child { padding-top: 18px; } `,getApiPath=(e,t,n)=>d()(e,Object.assign(Object.assign({},t),{domain:p.v[n||"en-PH"]}))},VhOp:function(e,t,n){n.d(t,{D:function(){return g},G:function(){return v},T:function(){return h},a:function(){return TogetherComponentGlobalContextProvider},b:function(){return callApiWithAuth},c:function(){return callApi},d:function(){return _},e:function(){return getApiPath},f:function(){return getPremiumApiPath},g:function(){return getCarePath},h:function(){return getWebsiteUrlApi},i:function(){return getSsoApiPath},j:function(){return getUrlToSignUp},k:function(){return getCurrentBaseUrl},l:function(){return f},m:function(){return getCareHospitalUrl},n:function(){return getCareDoctorUrl},o:function(){return getDiscoverApiPath},p:function(){return getCurrentHref},q:function(){return callApiWithAdminAuth},r:function(){return getChatbotAiApiPath},s:function(){return getMarryBabyApiPath},t:function(){return callApiWithOptionalAuth},u:function(){return b}});var r=n("FRPj"),a=n("pMpJ"),i=n("27Mu"),l=n("NmYn"),o=n.n(l),s=n("GOBr"),c=n("gY0P"),u=n.n(c),d=n("q1tI"),p=n("IQVP"),m=n("Aqof");let g={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},h=(0,d.createContext)({data:g,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null}),v=g,TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:t,userInfo:n,router:r,env:a={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:i=e=>e,pushNotifications:l=()=>!1,formatMessage:o})=>{let[s,c]=(0,d.useState)();return v={userInfo:n,locale:e,togetherUserId:s,router:r,env:a},(0,d.useEffect)(()=>{(null==n?void 0:n.id)&&callApiWithAuth(getApiPath(p.yy.PROFILE,{_locale:e}),"GET").then(e=>{var t;c(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)})},[null==n?void 0:n.id]),d.createElement(h.Provider,{value:{data:{userInfo:n,locale:e,togetherUserId:s,router:r,env:a},action:{pushNotifications:l,sanitizeFunction:i},formatMessage:o}},t)},f={"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"},_={"vi-VN":"marrybaby.vn"},b="vi-VN",getWebsiteUrlApi=e=>{let{env:{isMarryBaby:t}}=v;return`https://${t?_[e]:f[e]}`},cleanFormatString=e=>{let t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},getCurrentBaseUrl=e=>{let{env:{isMarryBaby:t}}=v;return"undefined"!=typeof window?window.location.origin:`https://${t?"www.":""}${f[e]}`},getCurrentHref=(e,t,n)=>"undefined"!=typeof window?window.location.href:`${getCurrentBaseUrl(e)}${t}${n}`,getApiPath=(e,t,n,r)=>{let a="";n&&(a=Object.keys(n).map(e=>e+"="+n[e]).join("&"));let{togetherBaseApiUrl:i=""}=(null==v?void 0:v.env)||{},l=u()(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:getWebsiteUrlApi(String(t._locale))}:{}),t));return(r||i)+"api/v1/"+cleanFormatString(l+=`${l.includes("?")?"&":"?"}${a}`)},getDiscoverApiPath=(e,t,n)=>{let{discoverBaseApiUrl:r="",discoverBaseProdApiUrl:a=""}=(null==v?void 0:v.env)||{},i=!s.y&&n?a:r;return i+"wp-json/api/"+cleanFormatString(u()(e,Object.assign({},t)))},getMarryBabyApiPath=(e,t,n)=>{let{marryBabyApiUrl:r="",marryBabyProdApiUrl:a=""}=(null==v?void 0:v.env)||{},i=n&&!s.y?a:r;return i+"wp-json/api/"+cleanFormatString(u()(e,Object.assign({},t)))},getCarePath=(e,t)=>{let{careBaseApiUrl:n=""}=(null==v?void 0:v.env)||{};return(n||"https://service-health-care.hellohealthgroup.com/")+cleanFormatString(u()(e,Object.assign({},t)))},getPremiumApiPath=(e,t)=>{let{premiumBaseApiUrl:n=""}=(null==v?void 0:v.env)||{};return(n||"https://premium-content-stag.hellohealthgroup.com/")+cleanFormatString(u()(e,Object.assign({},t)))},getSsoApiPath=(e,t)=>{let{publicSSO:n=""}=(null==v?void 0:v.env)||{};return(n||"https://staging-id.hellobacsi.com/")+"api/"+cleanFormatString(u()(e,Object.assign({},t)))},getChatbotAiApiPath=(e,t)=>{let{chatbotAiUrl:n=""}=(null==v?void 0:v.env)||{};return(n||"https://chatbot-staging-v2.hellohealthgroup.com/")+cleanFormatString(u()(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:getWebsiteUrlApi(String(t._locale))}:{}),t)))},fixedEncodeURI=e=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),convertApiOptionsToRequestInit=e=>((null==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),callApi=(e,t,n,a=!1)=>(0,r.a)(void 0,void 0,void 0,function*(){var r,i,l;try{let r=yield fetch(a?e:fixedEncodeURI(e),Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({},null==n?void 0:n.headers)})).then(e=>e.json());if(r)return r}catch(t){return console.log(t),console.log({url:e,status:null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.status,statusText:null===(i=null==t?void 0:t.response)||void 0===i?void 0:i.statusText}),(null===(l=null==t?void 0:t.response)||void 0===l?void 0:l.data)||null}return null}),callApiWithOptionalAuth=(e,t="GET",n,l)=>(0,r.a)(void 0,void 0,void 0,function*(){var r,o,s,c,u,d;try{let c="string"==typeof e?e:e.url,u="string"==typeof e?e:e.backupUrl,d=a.c.parse(l||""),p=d[m.B],g=p||(0,i.ej)(m.B);if(!g||!g.length)return callApi(u||c,t,n);try{let e=yield fetch(c,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({Authorization:"Bearer "+g},null==n?void 0:n.headers)})).then(e=>e.json());if(null===(r=null==e?void 0:e.messages)||void 0===r?void 0:r.find(e=>(null==e?void 0:e.toLowerCase())==="Unauthenticated"))return callApi(u||c,t,n);if(e)return e}catch(e){return console.log({status:null===(o=null==e?void 0:e.response)||void 0===o?void 0:o.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),callApi(u||c,t,n)}}catch(e){return console.log({status:null===(c=null==e?void 0:e.response)||void 0===c?void 0:c.status,statusText:null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.statusText}),(null===(d=null==e?void 0:e.response)||void 0===d?void 0:d.data)||null}return null}),callApiWithAuth=(e,t,n,l)=>(0,r.a)(void 0,void 0,void 0,function*(){try{let r=a.c.parse(l||""),o=r[m.B],s=o||(0,i.ej)(m.B);if(s&&s.length){let r=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({Authorization:"Bearer "+s},null==n?void 0:n.headers)})).then(e=>e.json());if(r)return r}}catch(e){}return null}),callApiWithAdminAuth=(e,t,n,l)=>(0,r.a)(void 0,void 0,void 0,function*(){try{let r=a.c.parse(l||""),o=r[m.b],s=o||(0,i.ej)(m.b);if(s&&s.length){let r=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({Authorization:"Bearer "+s},null==n?void 0:n.headers)})).then(e=>e.json());if(r)return r}}catch(e){}return null});function updateQueryStringParameter(e,t,n){let r=RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+a+t+"="+n}let getUrlToSSOWithReturnUrl=(e,t)=>{let{publicSSO:n}=v.env,r=e||window.location.href;return t&&Object.keys(t).map(e=>{updateQueryStringParameter(r,e,t[e])}),updateQueryStringParameter(r,"source","communities"),n?`${n}?returnUrl=${encodeURIComponent(r.toString())}`:r},getUrlToSignUp=(e,t,n="/community")=>{let r=e||("undefined"!=typeof window?window.location.href:"/"),a="undefined"!=typeof window?window.location.origin:"";!a&&e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));let i=`${a}${n}/on-boarding?return=${encodeURIComponent(r)}`;return getUrlToSSOWithReturnUrl(i,t)},slugifiedNameWithId=(e,t,n,r)=>n&&t?`${n}-${t}`:`${o()(e||"",{lower:!0,locale:r||b})}-${t}`,getCareDoctorUrl=({name:e,id:t,locale:n})=>{var r;return`/care/${null===(r=m.L[n||"vi-VN"])||void 0===r?void 0:r.DOCTOR}/${slugifiedNameWithId(e,t)}`},getCareHospitalUrl=({name:e,id:t,slug:n,locale:r})=>{var a;return`/care/${null===(a=m.L[r||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${slugifiedNameWithId(e,t,n)}`}},RZo4:function(e,t,n){n.d(t,{c:function(){return currencyFormat}});var r=n("tiWT");function currencyFormat(e,t,n){return e&&t?new Intl.NumberFormat(t,{style:"currency",currency:n}).format(Number(e)):`0 ${r.Z5["vi-VN"]||""}`}},rCsv:function(e,t,n){n.d(t,{M:function(){return a},h:function(){return hiddenEmailChar}});var r=n("eosF");let a={[r.L.Vietnam]:"VN",[r.L.Cambodia]:"KH",[r.L.Indonesia]:"ID",[r.L.Malaysia]:"MY",[r.L.PhilippinesEnglish]:"PH",[r.L.PhilippinesTagalog]:"PH",[r.L.Taiwan]:"TW",[r.L.Thailand]:"TH",[r.L.Myanmar]:"MM"},hiddenEmailChar=(e="")=>{let t=e.indexOf("@"),n=e.substring(0,t),r=n.length>3?3:n.length;return e.replace(e.substring(r,t),e.slice(r,t).replace(/./g,"x"))}},uuQu:function(e,t,n){n.d(t,{B:function(){return r},M:function(){return i},S:function(){return a},a:function(){return getPopupWrapperDom},b:function(){return getWrapperDomWithSelector},c:function(){return safeEncodeURI},d:function(){return convertDay},e:function(){return sleep},f:function(){return formatUrlWithPageParam},g:function(){return getBoundariesFromMediaQueryKey},m:function(){return makeParams},s:function(){return startCase},t:function(){return toggleNoScroll}});let makeParams=e=>{let t=Object.keys(e);return t.length?"?"+t.map(t=>`${t}=${e[t]}`).join("&"):""},formatUrlWithPageParam=(e,t=1,n="page")=>{let[r,a]=e.split("?"),i=new URLSearchParams(a||""),l={};return i.forEach((e,t)=>{e&&(l[t]=e)}),Number(t)>1?l[n]=String(t):delete l[n],r+makeParams(l)},toggleNoScroll=e=>{"undefined"!=typeof window&&(document.documentElement.style.overflow=e?"hidden":"")},r={BREAK_POINT_SMALL_MOBILE:480,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1159,BREAK_POINT_LGPC:1440},a={LG:1160},i={smbDown:`@media (max-width: ${r.BREAK_POINT_SMALL_MOBILE-1}px)`,smbUp:`@media (min-width: ${r.BREAK_POINT_SMALL_MOBILE}px)`,mbDown:`@media (max-width: ${r.BREAK_POINT_MOBILE-1}px)`,mbOnly:`@media (min-width: ${r.BREAK_POINT_SMALL_MOBILE}px) and (max-width: ${r.BREAK_POINT_MOBILE-1}px)`,mbUp:`@media (min-width: ${r.BREAK_POINT_MOBILE}px)`,tdDown:`@media (max-width: ${r.BREAK_POINT_TABLET-1}px)`,tdOnly:`@media (min-width: ${r.BREAK_POINT_MOBILE}px) and (max-width: ${r.BREAK_POINT_TABLET-1}px)`,tdUp:`@media (min-width: ${r.BREAK_POINT_TABLET}px)`,pcUp:`@media (min-width: ${r.BREAK_POINT_PC}px)`,pcOnly:`@media (min-width: ${r.BREAK_POINT_TABLET}px) and (max-width: ${r.BREAK_POINT_PC-1}px)`,pcDown:`@media (max-width: ${r.BREAK_POINT_PC-1}px)`,lgPcUp:`@media (min-width: ${r.BREAK_POINT_LGPC}px)`,lgPcOnly:`@media (min-width: ${r.BREAK_POINT_PC}px) and (max-width: ${r.BREAK_POINT_LGPC-1}px)`,lgPcDown:`@media (max-width: ${r.BREAK_POINT_LGPC-1}px)`,mbToPC:`@media (min-width: ${r.BREAK_POINT_MOBILE}px) and (max-width: ${r.BREAK_POINT_PC-1}px)`},getBoundariesFromMediaQueryKey=e=>{switch(e){case"smbDown":return[0,r.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[r.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,r.BREAK_POINT_MOBILE-1];case"mbOnly":return[r.BREAK_POINT_SMALL_MOBILE,r.BREAK_POINT_MOBILE-1];case"mbUp":return[r.BREAK_POINT_MOBILE,0];case"tdDown":return[0,r.BREAK_POINT_TABLET-1];case"tdOnly":return[r.BREAK_POINT_MOBILE,r.BREAK_POINT_TABLET-1];case"tdUp":return[r.BREAK_POINT_TABLET,0];case"pcUp":return[r.BREAK_POINT_PC,0];case"pcOnly":return[r.BREAK_POINT_TABLET,r.BREAK_POINT_PC-1];case"pcDown":return[0,r.BREAK_POINT_PC-1];case"lgPcUp":return[r.BREAK_POINT_LGPC,0];case"lgPcOnly":return[r.BREAK_POINT_PC,r.BREAK_POINT_LGPC-1];case"lgPcDown":return[0,r.BREAK_POINT_LGPC-1];case"mbToPC":return[r.BREAK_POINT_MOBILE,r.BREAK_POINT_PC-1]}},getPopupWrapperDom=()=>{if("undefined"==typeof document)return null;let e="hhg-comp-popup-wrapper";if(!document.querySelector("#"+e)){let t=document.createElement("div");t.id=e,document.body.appendChild(t)}return document.querySelector("#"+e)},getWrapperDomWithSelector=(e,t)=>{if("undefined"==typeof document)return null;if(!e.querySelector(`[data-wrapper-selector="${t}"]`)){let e=document.createElement("div");e.setAttribute("data-wrapper-selector",t),document.body.appendChild(e)}return e.querySelector(`[data-wrapper-selector="${t}"]`)},startCase=e=>e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}),safeEncodeURI=e=>decodeURI(e)!==e?e:encodeURI(e),convertDay=e=>{if(!e)return{years:0,months:0,weeks:0};let t=parseInt(`${e/365}`),n=parseInt(`${e/30}`),r=parseInt(`${e/7}`);return{years:t,months:n,weeks:r}},sleep=e=>new Promise(t=>setTimeout(t,e))}}]);