(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[448,4164,6852,7268],{"964S":function(e,t,n){"use strict";n.d(t,{I:function(){return N}});var o=n("vEfc"),i=n("+OUp"),l=n.n(i),s=n("vH4S"),u=n("xXM3"),d=n.n(u),c=n("8BcA"),f=n.n(c),p=n("NXxl"),h=n("AeFk"),v=n("rBCA"),g=n("iBNF"),m=n("4BRW"),y=n("+u84"),S=n("uzh1");let b=/^([0-9]*)$/,_={DD:"Day",MM:"Month",YYYY:"Year"},w={DD:(e,t)=>{if(!e)return null==t||t(""),"";let n=parseInt(e);if(n>31)return null==t||t(e[0]),e[0];if(n>=4){let e=String(n).padStart(2,"0");return null==t||t(e),e}return null==t||t(e),e},MM:(e,t)=>{if(!e)return null==t||t(""),"";let n=parseInt(e);if(n>12)return null==t||t(e[0]),e[0];if(n>=2){let e=String(n).padStart(2,"0");return null==t||t(e),e}return null==t||t(e),e},YYYY:(e,t)=>e?(null==t||t(e),e):(null==t||t(""),"")},x=[!1,!0,!0],getInputDateInputDisabled=e=>e.map((t,n)=>0!==n&&(0===n||!e[n-1])),O=(0,h.AH)` max-width: 100%; // color: ${g.w.colors.gray800}; // font-size: var(--input-font-size, 16px); // font-weight: 400; // line-height: calc(var(--input-height, 56px) * 24 / 56); opacity: 0; transition: 0.3s linear opacity; vertical-align: middle; &::placeholder { color: transparent; font-weight: 400; } `,E=(0,h.AH)` opacity: 1; line-height: calc(var(--input-height, 56px) * 24 / 56); transition: 0.3 linear opacity; `,A=(0,h.AH)` position: absolute; top: calc(var(--input-height, 56px) / 2); left: var(--input-padding, 16px); letter-spacing: -0.3px; transform: translateY(-50%); transition: 0.125s linear all; vertical-align: middle; `,R=(0,h.AH)` top: calc(var(--input-height, 56px) * 7 / 56); line-height: calc(var(--input-height, 56px) * 18 / 56); transform: translateY(0); transition: 0.125s linear all; `,I=v.A.div` --input-gap: 8px; --input-height: 56px; --input-max-width: 320px; --input-font-size: 15px; --input-line-height: 24px; --input-padding-x: 16px; --input-padding-y: 16px; --input-border-radius: 8px; --input-border-color: ${g.w.colors.gray200}; display: flex; gap: var(--input-gap, 8px); max-width: var(--input-max-width, 320px); font-weight: 400; * { box-sizing: border-box; } .input_date-input_container { position: relative; display: flex; align-items: center; width: 100%; height: var(--input-height, 56px); max-width: calc((100% / 3) - (var(--input-gap, 8px) * 2 / 3)); line-height: var(--input-line-height, 24px); padding: var(--input-padding-y, 16px) var(--input-padding-x, 16px); border-radius: var(--input-border-radius, 8px); border: 1px solid var(--input-border-color, ${g.w.colors.gray200}); .input_date-input_placeholder { ${A} } .input_date-input { ${O} } &:has([disabled]) { pointer-events: none; } &.input_date-input_shrink { --input-padding-y: 7px; align-items: flex-end; .input_date-input_placeholder { ${R} } .input_date-input { ${E} } } &.input_date-input_active { border-color: ${g.w.colors.primary600}; box-shadow: 0px 0px 5px ${g.w.colors.primary400}; transition: 0.25s linear all; } &.input_date-input_error { border-color: ${g.w.colors.red600}; } } `,P=n("+QaA");f().extend(P);let{BACKSPACE:D,SPACEBAR:T,ZERO:C}={BACKSPACE:8,SPACEBAR:32,ZERO:48},formatInputDateValue=(e,t)=>{if(void 0===e)return null;if("string"==typeof e){let n=f()(e,t,!0);return n.isValid()?n.toDate():null}let n=f()(e);return n.isValid()?n.toDate():null},formatInputDateValueString=(e,t)=>{if(!e)return[void 0,void 0,void 0];let n=f()(e);return n.format(t).split("/")},N=(0,i.forwardRef)((e,t)=>{let{id:n,name:u,locale:c=m.L.Vietnam,className:h,style:v,defaultValue:g,value:O,onChange:E,error:A,disabled:R,labelTuples:P,placeholderTuples:N,onFocus:U,onBlur:k,autoComplete:B="off"}=e,M=(0,o.a)(e,["id","name","locale","className","style","defaultValue","value","onChange","error","disabled","labelTuples","placeholderTuples","onFocus","onBlur","autoComplete"]),[L,F]=(0,i.useState)(-1),Y=(0,i.useRef)([]),[V,H]=(0,i.useState)(formatInputDateValue(g||O,y.I[c].dateFormat)),[j,$]=(0,i.useState)(["","",""]),[z,W]=(0,i.useState)(()=>getInputDateInputDisabled(formatInputDateValueString(g||O,y.I[c].dateFormat))),{dateFormat:q}=(0,i.useMemo)(()=>(null===y.I||void 0===y.I?void 0:y.I[c])||y.I["vi-VN"],[c]),G=(0,i.useMemo)(()=>q.split("/"),[q]),K=(0,i.useMemo)(()=>formatInputDateValueString(g,q),[g,q]),Z=(0,i.useMemo)(()=>G.map((e,t)=>(null==P?void 0:P[t])||_[e]),[P]),X=(0,i.useMemo)(()=>G.map((e,t)=>(null==N?void 0:N[t])||e),[N]),J=(0,i.useCallback)(()=>{var e,t;if(0===L||-1===L)return;let n=null===(e=Y.current)||void 0===e?void 0:e[L];n&&n.blur();let o=null===(t=Y.current)||void 0===t?void 0:t[L-1];o&&o.focus()},[L]),Q=(0,i.useCallback)(()=>{var e,t;if(L===G.length-1)return;let n=null===(e=Y.current)||void 0===e?void 0:e[L];n&&n.blur();let o=null===(t=Y.current)||void 0===t?void 0:t[L+1];o&&o.focus()},[L,G]),ee=(0,i.useCallback)(()=>{let e=0;requestAnimationFrame(function changeFocus(){let t=Y.current[L],n=Y.current[L+1],o=z[L+1];n&&1!==e&&(o&&(requestAnimationFrame(changeFocus),e++),t.value.length===t.maxLength&&Q())})},[...z,L,Q]),et=(0,i.useCallback)(e=>{let t=e||j,n=G.map((e,n)=>{let o=t[n];return o}).filter(Boolean).join("/"),o=f()(n,q,!0);o.isValid()?(H(o.toDate()),null==E||E(o.toDate(),n)):(H(null),null==E||E(n,n))},[G,q,...j]),en=(0,i.useCallback)(e=>t=>{let n=t.target.value,o=[...j];if(!n){o[e]="",$(o),et(o),0===e&&W(x);return}if(!n.trim().match(b))return;let i=G[e];w[i](n,t=>{o[e]=t,W(getInputDateInputDisabled(o)),$(o),ee()}),et(o)},[...j,G,ee,et]),er=(0,i.useCallback)(e=>{let t=e.target,n=Y.current.findIndex(e=>e===t);-1!==n&&F(n),0===n&&(null==U||U(e))},[...j,G,U]),eo=(0,i.useCallback)(e=>{F(-1);let t=e.target,n=Y.current.findIndex(e=>e===t);if(-1!==n){let e=t.value,o=[...j];""!==e&&(o[n]=String(e).padStart(t.maxLength,"0"),W(getInputDateInputDisabled(o)),$(o),et(o))}(2===n||0===n&&(!(null==j?void 0:j[0])||j.every(Boolean))||1===n&&(!(null==j?void 0:j[1])||j.every(Boolean)))&&requestAnimationFrame(()=>{null==k||k(e)})},[...j,L,G,V,k]),ei=(0,i.useCallback)(e=>{let t=Y.current[L];"0"===t.value&&(e.keyCode===C||"0"===e.key)&&e.preventDefault(),e.keyCode!==D&&"Backspace"!==e.key||t.value||J(),(e.keyCode===T||" "===e.key||"Spacebar"===e.key||"Space"===e.key)&&e.preventDefault()},[L,J,Q]),ea=(0,i.useCallback)(e=>{let t=e.target,n=Y.current.findIndex(e=>e===t);if(-1===n){let e=""!==j.join("")?Y.current.length-1:0;Y.current[e].focus(),F(e);return}Y.current[n].focus(),F(n)},[...j,Y.current,K]);return(0,i.useEffect)(()=>{H(formatInputDateValue(O,q))},[O,q]),(0,i.useEffect)(()=>{if(V){let e=formatInputDateValueString(V,q);$(e),W(getInputDateInputDisabled(e))}},[V,q]),(0,i.useImperativeHandle)(t,()=>Y.current[0],[]),l().createElement(I,Object.assign({className:h,style:v,onClick:ea},M),G.map((e,t)=>{let o=Z[t],i=null==K?void 0:K[t],c=j[t],f=z[t],h=X[t],v=e.length;return l().createElement(s.Box,{key:e,className:d()("input_date-input_container",{"input_date-input_active":L===t,"input_date-input_shrink":!!c,"input_date-input_error":A}),sx:e=>({input:Object.assign(Object.assign({},(0,p.G)(e)[p.C.LEADGEN].p2),{fontWeight:p.F.halfBold,color:e.colors.gray[9]})})},l().createElement(S.T,{className:"input_date-input_placeholder",as:"span",size:c?"p3":"p2",variant:"secondary",weight:"halfBold"},o),l().createElement("input",{ref:e=>Y.current[t]=e,name:`${n||""}-${u||""}-${e}`,type:"text",inputMode:"numeric",defaultValue:i,value:c,maxLength:v,disabled:R||f,placeholder:h,onChange:en(t),onBlur:eo,onFocus:er,onKeyDown:ei,className:"input_date-input",autoComplete:B}))}))})},xrdX:function(e,t,n){"use strict";n.d(t,{H:function(){return l},y:function(){return i}});var o=n("4BRW");let i={"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","zh-SG":"hellojiankang.com","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},l={[o.L.Vietnam]:"hellobacsi.com",[o.L.Indonesia]:"hellosehat.com",[o.L.Malaysia]:"hellodoktor.com",[o.L.Cambodia]:"hellokrupet.com",[o.L.PhilippinesEnglish]:"hellodoctor.com.ph",[o.L.PhilippinesTagalog]:"hellodoctor.com.ph",[o.L.Thailand]:"hellokhunmor.com",[o.L.Myanmar]:"hellosayarwon.com",[o.L.Taiwan]:"helloyishi.com.tw",[o.L.India]:"helloswasthya.com",[o.L.Singapore]:"hellojiankang.com"}},GOBr:function(e,t,n){"use strict";var o,i,l,s;n.d(t,{K:function(){return d}});let u="undefined"!=typeof window&&null!==(s=null===(l=null==(i=null===(o=null==window?void 0:window.location)||void 0===o?void 0:o.href)?void 0:i.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===l?void 0:l[1])&&void 0!==s?s:"";u.split(".");let d=!0},i6Rr:function(e,t,n){"use strict";n.d(t,{H:function(){return d},a:function(){return c},b:function(){return s}});var o,i,l,s,u=n("Wbba");(o=l||(l={})).DUE_DATE="due-date-calculator",o.BMI="bmi",o.BMR="bmr",o.OVULATION="ovulation",o.IFRAME="IFRAME",o.PWG="pregnancy-weight-gain",o.THR="heart-rate",o.BABY_VACCINE="vaccination-tool",o.BABY_GROWTH="baby-growth-tracking",o.BABY_POOP="baby-poop-checking",(i=s||(s={})).DUE_DATE="DueDate",i.BMI="BMI",i.BMR="BMR",i.OVULATION="Ovulation",i.PWG="PregnancyWeightGain",i.THR="TargetHeartRate",i.BABY_VACCINE="BabyVaccine",i.BABY_GROWTH="BabyGrowth",i.BABY_POOP="BabyPoopChecking";let d={DUE_DATE:l.DUE_DATE,BMI:l.BMI,BMR:l.BMR,OVULATION:l.OVULATION,IFRAME:l.IFRAME,PWG:l.PWG,THR:l.THR,BABY_VACCINE:l.BABY_VACCINE,BABY_GROWTH:l.BABY_GROWTH,BABY_POOP:l.BABY_POOP},c={[d.DUE_DATE]:u.C.getAssetPath("health-tools/due-date-icon.svg")}},"K+xq":function(e,t,n){"use strict";n.d(t,{M:function(){return Modal}});var o=n("+OUp"),i=n.n(o),l=n("rzfh"),s=n("xzYA"),u=n("rBCA"),d=n("CL9C"),c=n("gEnE"),f=n("iBNF");let p=(0,c.s)(u.A.div` position: relative; z-index: 200; background-color: ${f.w.colors.white}; border-radius: ${f.w.borderRadius}; box-shadow: 0px 8px 40px 0px #0000001a; &[data-site-type='marryBaby'] { border-radius: 16px; .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 24px; } } .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 16px; } .hhg-modal__video { position: relative; z-index: 111; height: 100%; background-color: none; box-shadow: none; } `,"hhgcomp-modal-modal"),h=u.A.div` position: fixed; top: 0; left: 0; z-index: 201; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; visibility: hidden; opacity: 0; background-color: rgba(0, 0, 0, 0.6); transition: opacity 0.3s ease-in-out; .hhg-modal__close { position: absolute; top: 16px; right: 16px; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } &[data-type='video'] { z-index: 1001; } &[data-open='true'] { opacity: 1; visibility: visible; } ${p.classSelector} { transition: transform 0.3s ease-in-out; } &.slideTop { ${p.classSelector} { transform: translate(0, -100vh); } &[data-open='true'] { ${p.classSelector} { transform: translate(0); } } } &.scaleUp { ${p.classSelector} { transform: scale(0.9); } &[data-open='true'] { ${p.classSelector} { transform: scale(1); } } } &[data-type='tail'] { justify-content: flex-end; ${p.classSelector} { width: 420px; height: 100%; border-radius: 0; overflow: hidden auto; } } &[data-type='form'] { ${p.classSelector} { width: 496px; height: 548px; max-height: 100%; overflow-y: auto; ${d.M.mbDown} { width: 340px; } } } &[data-type='video'] { ${p.classSelector} { height: 100%; max-height: 539px; ${d.M.mbDown} { height: 192px; width: 100%; height: 100%; border-radius: ${f.w.borderRadius}; max-height: 192px; } } } &[data-type='confirm'] { ${p.classSelector} { width: 100%; max-width: 407px; ${d.M.mbDown} { width: calc(100% - 32px); max-width: calc(100% - 32px); } } } `,v=u.A.div` position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; align-items: center; &[data-open='false'] { display: none; } &[data-type='video'] { background-color: ${f.w.colors.secondaryDark}; } `,g="hhg-modals",getModalsRoot=()=>{let e=document.getElementById(g);return e||((e=document.createElement("div")).setAttribute("id",g),document.body.append(e)),e},cleanUpModalShow=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&document.body.classList.remove("hhc-modal-show")},cleanUpDisabledScroll=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},Modal=({type:e="lead",closeIcon:t,isOpen:n=!0,onClose:u,children:d,className:c="",animationType:f="scaleUp",isStaticBackdrop:g=!1,siteType:m})=>{let[y,S]=(0,o.useState)(!1),b=(0,o.useRef)(null),{width:_}=(0,l.u)();if(!b.current&&y&&(b.current=document.createElement("div")),(0,o.useEffect)(()=>(S(!0),()=>{S(!1),cleanUpModalShow(),cleanUpDisabledScroll()}),[]),(0,o.useEffect)(()=>{if(y){let e=getModalsRoot();return e.appendChild(b.current),()=>{e.removeChild(b.current)}}},[y]),(0,o.useEffect)(()=>{n?document.body.classList.add("hhc-modal-show"):cleanUpModalShow()},[n]),(0,o.useEffect)(()=>{n?(document.body.style.overflow="hidden",document.body.style.paddingRight=_+"px",document.body.classList.add("hhc-disabled-scroll")):cleanUpDisabledScroll()},[n,_]),!y)return null;let w=["hhg-modal__wrapper",c,f].filter(e=>e).join(" ");return(0,s.createPortal)(i().createElement(h,{className:w,"data-open":n,"data-type":e},!g&&i().createElement(v,{"data-open":n,onClick:u,"data-type":e}),!g&&"video"===e&&!!t&&i().createElement("div",{className:"hhg-modal__close",onClick:u},t),i().createElement(p,{className:"hhg-modal","data-open":n,"data-site-type":m},i().createElement("div",{className:"video"===e?"hhg-modal__video":"hhg-modal__content"},!!t&&"video"!==e&&i().createElement("div",{className:"hhg-modal__close",onClick:u},t),d))),b.current)}},NQBa:function(e,t,n){"use strict";n.d(t,{D:function(){return Divider}});var o=n("+OUp"),i=n.n(o),l=n("rBCA"),s=n("iBNF");let u=l.A.hr` border-width: 1px; border-color: ${s.w.colors.neutral200}; border-style: ${e=>e.dividerType}; `,Divider=({type:e="solid",className:t,style:n})=>i().createElement(u,{style:n,className:t,"data-diver-type":e,dividerType:e})},Z0qH:function(e,t,n){"use strict";n.d(t,{B:function(){return v},F:function(){return m},G:function(){return g},S:function(){return f},a:function(){return fetchSSOV2ApiJson},c:function(){return checkUserExist},f:function(){return fetchSSOV2Api},g:function(){return getUserInfo},h:function(){return handleAuthSuccess},l:function(){return p},r:function(){return resetPassword},u:function(){return updateUserInfo},w:function(){return h}});var o=n("vEfc"),i=n("GOBr"),l=n("8TMT"),s=n("+u84"),u=n("27Mu"),d=n("4BRW"),c=n("xrdX");let f={LOGIN_BY_SOCIAL:"member/social-login",EMAIL:{REGISTER_BY_SEND_OTP:"login/login-with-email",LOGIN_BY_PASSWORD:"member/login",VERIFY_BY_OTP:"login/email-verify-code",SEND_OTP:"login/email-resend-otp-code"},PHONE:{REGISTER_BY_SEND_OTP:"login/login-with-sms",SEND_OTP:"login/sms/sent-otp",VERIFY_BY_OTP:"login/phone-verify-code",LOGIN_BY_PASSWORD:"member/login-by-phone",UPDATE_PHONE_SEND_OTP:"login/sms-social/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/phone-verify-code"},WHATSAPP:{LOGIN_OTP_WHATSAPP:"login/login-otp-whatsapp",REGISTER_BY_SEND_OTP:"login/login-with-whatsapp",SEND_OTP:"login/whatsapp/sent-otp",UPDATE_PHONE_SEND_OTP:"login/sms-social/whatsapp/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/whatsapp-verify-code",VERIFY_BY_OTP:"login/whatsapp-verify-code"},ZALO:{REGISTER_BY_SEND_OTP:"login/login-with-zalo",SEND_OTP:"login/zalo/sent-otp",VERIFY_BY_OTP:"login/zalo-verify-code",UPDATE_PHONE_SEND_OTP:"login/sms-social/zalo/sent-otp",UPDATE_PHONE_VERIFY_OTP:"login/sms-social/zalo-verify-code"},RESET_PASSWORD:"login/reset-password",CHECK_USER_EXIST:"member/check-user-exist",UPDATE_USER_INFO:"login/update-first-info",SETUP_USER_INFO:"login/setup-first-info",ECOM_CARE:{SEND_OTP:"login/ecom-care/send-email-otp-code",VERIFY_OTP:"login/ecom-care/email-verify-code",RESEND_OTP:"login/ecom-care/resend-email-otp-code"}},p="vi-VN",h={[d.L.Vietnam]:"1",[d.L.Indonesia]:"2",[d.L.Malaysia]:"3"}[p];s.L[p].PHONE;let getSSOV2ApiUrl=e=>(0,l.e)(`${(0,l.a)(p)}/api/v2/${e}`),getSSOApiUrl=e=>(0,l.e)(`${(0,l.a)(p)}/api/${e}`),v="hhg_user_token",fetchSSOV2Api=(e,t={},n)=>(0,o._)(void 0,void 0,void 0,function*(){var o;let i;let l=n?"":null===(o=document.cookie.split("; ").find(e=>e.startsWith(v)))||void 0===o?void 0:o.split("=")[1];try{t.body instanceof FormData&&(t.body.append("ga_client_id",(0,u.Ri)("_ga")||""),t.body.append("referrer",window.location.href)),i=yield fetch(getSSOV2ApiUrl(e),l?Object.assign(Object.assign({},t),{headers:Object.assign({Authorization:`Bearer ${l}`},null==t?void 0:t.headers)}):t)}catch(e){return console.error(e),null}return null==i?void 0:i.json()}),fetchSSOV2ApiJson=(e,t,n)=>(0,o._)(void 0,void 0,void 0,function*(){var o;let i;let l=n?"":null===(o=document.cookie.split("; ").find(e=>e.startsWith(v)))||void 0===o?void 0:o.split("=")[1];try{i=yield fetch(getSSOV2ApiUrl(e),{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json"},l?{Authorization:`Bearer ${l}`}:{}),body:JSON.stringify(t)})}catch(e){return console.error(e),null}return null==i?void 0:i.json()}),fetchSSOApi=(e,t={},n)=>(0,o._)(void 0,void 0,void 0,function*(){var o;let i;let l=n?"":null===(o=document.cookie.split("; ").find(e=>e.startsWith(v)))||void 0===o?void 0:o.split("=")[1];try{i=yield fetch(getSSOApiUrl(e),l?Object.assign(Object.assign({},t),{headers:Object.assign({Authorization:`Bearer ${l}`},null==t?void 0:t.headers)}):t)}catch(e){return console.error(e),null}return null==i?void 0:i.json()}),resetPassword=(e,t)=>(0,o._)(void 0,void 0,void 0,function*(){let n=new FormData;return n.append("password",e),n.append("confirm-password",t),fetchSSOV2Api(f.RESET_PASSWORD,{method:"POST",body:n})}),checkUserExist=({email:e,phone:t})=>(0,o._)(void 0,void 0,void 0,function*(){let n=new FormData;return e?n.append("email",e):n.append("phone_number",t),fetchSSOV2Api(f.CHECK_USER_EXIST,{method:"POST",body:n})}),updateUserInfo=e=>(0,o._)(void 0,void 0,void 0,function*(){let t=new FormData;return Object.keys(e).forEach(n=>{let o=e[n];null!=o&&("string"!=typeof o||o.trim())&&t.append(n,e[n])}),fetchSSOV2Api(f.SETUP_USER_INFO,{method:"POST",body:t})}),g=i.K?"289442006438-040a42cbidr6v5d178f3iqi9q95821r3.apps.googleusercontent.com":"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",m="2759888574045636",getUserInfo=()=>(0,o._)(void 0,void 0,void 0,function*(){return fetchSSOApi("user/profile",{method:"POST"})}),handleAuthSuccess=e=>{(null==e?void 0:e.token)&&(0,u.TV)(v,e.token,{domain:"localhost"===window.location.hostname?"localhost":`.${c.y[p]}`,expires:new Date(1e3*e.expire_in).toUTCString()}),(null==e?void 0:e.refresh_token)&&(0,u.TV)(s.k,e.refresh_token,{domain:"localhost"===window.location.hostname?"localhost":`.${c.y[p]}`})}},fvfU:function(e,t,n){"use strict";n.d(t,{T:function(){return TextArea}});var o=n("vEfc"),i=n("+OUp"),l=n.n(i),s=n("vH4S"),u=n("aHnw"),d=n("NXxl");let TextArea=e=>{var{styles:t}=e,n=(0,o.a)(e,["styles"]);let i=(0,d.u)(),{classes:c}=(0,u.u)({variantStyle:i},{name:"MantineTextarea",styles:t});return l().createElement(s.Textarea,Object.assign({classNames:{input:c.input},minRows:2,maxRows:4},n))}},Wbba:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var o=n("xrdX"),i=n("GOBr"),l=n("yNk5");let isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),s="hellosehat.com",u=new class{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,n)=>{let o="https://hhg-common."+[t||this.getBaseDomain(),n||this.subPath,e].join("/");return i.K||l.env.JEST_WORKER_ID?o:o+"?v="+Math.floor(new Date().getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){let{host:e}=window.location,t=e.split("."),n=o.y[Object.keys(o.y).find(t=>e.includes(o.y[t]))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every(e=>isNumeric(e))||!n?s:n}return s}};u.subPath="common",u.baseDomain=o.y["vi-VN"]},kn93:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var o=n("+OUp"),i=n.n(o),l=n("rBCA"),s=n("Pn4S"),u=n("iBNF");let d=l.A.div` textarea { width: 100%; height: var(--textarea-height, 116px); padding: 1rem; border: 1px solid ${u.w.colors.gray200}; border-radius: 6px; color: ${u.w.colors.gray800}; font-size: 14px; resize: none; &:focus { box-shadow: 0px 0px 2px 2px #91caff; } &::placeholder { color: ${u.w.colors.gray500}; } &:disabled { background-color: ${u.w.colors.neutral50}; cursor: not-allowed; } } `,c=i().forwardRef(({height:e,placeholder:t,labelText:n,labelColor:o,id:l,name:u,onChange:c,value:f,className:p,onKeyPress:h,disabled:v=!1},g)=>i().createElement(d,{className:p,style:{"--textarea-height":e||"116px"}},n&&i().createElement(s.L,{size:"label2",style:{color:o||"#595959"},htmlFor:l},n),i().createElement("textarea",{name:u,ref:g,placeholder:t,id:l,onChange:e=>c&&c(e.target.value),onKeyPress:e=>h&&h(e),value:f,disabled:v})))},"8TMT":function(e,t,n){"use strict";n.d(t,{a:function(){return getCurrentSsoUrl},b:function(){return getTogetherApiDomain},c:function(){return getDiscoverApiDomain},d:function(){return getCareApiDomain},e:function(){return normalizeLinkSlash},g:function(){return getCurrentBaseUrl},n:function(){return normalizeLink},r:function(){return resolveDiscoverNavLink}});var o=n("xrdX"),i=n("GOBr"),l=n("yNk5");let getCurrentBaseUrl=(e,t)=>{let n=!i.K;return`https://${n?t?"fe.":"discover.":t?"www.":""}${o.y[t?"vi-VN_MB":e]}`},getCurrentSsoUrl=(e,t)=>l.env.UNIFY_SSO_API||`https://${i.K?"id.":"staging-id."}${o.y[t?"vi-VN_MB":e]}`,getTogetherApiDomain=()=>l.env.UNIFY_INTERNAL_TOGETHER_API||l.env.UNIFY_TOGETHER_API||`https://${i.K?"together.":"staging-together."}hellohealthgroup.com`,getDiscoverApiDomain=e=>{let t=e.endsWith("_MB");return t?`https://${i.K?"wp.":"staging."}${o.y[e]}`:l.env.UNIFY_INTERNAL_DISCOVER_API||l.env.UNIFY_DISCOVER_API||`https://${i.K?"wp.":"staging."}${o.y[e]}`},getCareApiDomain=()=>l.env.UNIFY_INTERNAL_CARE_API||l.env.UNIFY_CARE_API||`https://${i.K?"health-care.":"service-health-care."}hellohealthgroup.com`,normalizeLinkSlash=e=>e.replace(/([^:]\/)\/+/g,"$1"),forceEndSlash=e=>e.replace(/\/?$/,"/"),normalizeLink=e=>normalizeLinkSlash(forceEndSlash(e)),resolveDiscoverNavLink=(e,t="")=>{if(!t)return normalizeLinkSlash(e);if(t.startsWith("http://")||t.startsWith("https://"))return normalizeLinkSlash(t);let n=t.startsWith("/")?t:`/${t}`;return normalizeLinkSlash(`${e}${n}`)}},D7zM:function(e,t,n){"use strict";n.d(t,{I:function(){return IS_SSOV2_ENABLED},S:function(){return i},a:function(){return h},b:function(){return isPhoneNotVerifedYet},c:function(){return isLoginWithPhoneNotVerifedYet},d:function(){return isFlowFinishedSetup},i:function(){return isUserFinishedSetup},r:function(){return redirect},s:function(){return splitPhone},u:function(){return v}});var o,i,l=n("vEfc"),s=n("VNqU"),u=n("Z0qH"),d=n("A9bs"),c=n("+u84"),f=n("27Mu"),p=n("yNk5");let mergePhone=(e,t)=>{let n=t.startsWith("+")?t:`+${t}`,o=e.startsWith("0")?e.slice(1):e;return`${n}${o}`},splitPhone=e=>{if(!e)return{areaCode:void 0,phoneNumber:void 0};let t=(0,d.parsePhoneNumber)(e);return{areaCode:t.countryCallingCode?"+"+t.countryCallingCode:"",phoneNumber:t.nationalNumber||""}};(o=i||(i={})).FIRST="first",o.WHATSAPP_PHONE_VERIFY="whatsapp_phone_verify",o.WHATSAPP_OTP="whatsapp_otp",o.EMAIL="email",o.VERIFY_PHONE="verify_phone",o.PASSWORD="password",o.UPDATE_EMAIL="update_email",o.FORGOT_PASSWORD_PHONE="forgot_password_phone",o.FORGOT_PASSWORD_SETUP="forgot_password_setup",o.OTP="otp",o.SETUP_FULL="setup_full";let h=(0,s.vt)(e=>({currentStepIndex:0,steps:[{type:i.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)}))}})),v=(0,s.vt)()((e,t)=>({isHaveReadAndAgreePolicy:!1,setIsHaveReadAndAgreePolicy:t=>e({isHaveReadAndAgreePolicy:t}),isGetUpdateFromHHG:!1,setIsGetUpdateFromHHG:t=>e({isGetUpdateFromHHG: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 o,l;let{source:s,returnUrl:u}=n||{},d=(0,f.Ri)(c.B);d?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,null==n?void 0:n.forceReloadOnClose),e({isOpen:!1}),null===(l=(o=t()).onCloseProp)||void 0===l||l.call(o)):(h.setState({steps:[{type:i.FIRST,config:{legalTextType:((null==u?void 0:u.includes("joincommunity=1"))?"community":null==n?void 0:n.legalTextType)||"default"}}],currentStepIndex:0}),e({isOpen:!0,returnUrl:u,source:s,overrideClose:void 0,forceReloadOnClose:null!=u&&!!u.includes("joincommunity=1")||(null==n?void 0:n.forceReloadOnClose)||!1,flowData:void 0,userInfo:void 0}))},triggerWhatsappLogin:t=>{let{source:n,returnUrl:o,referrer:l,forceReloadOnClose:s,isAlreadyLogin:u,phone_number:d,area_code:c}=t||{},f=u&&d&&c;if(f){let e=mergePhone(String(d),c);h.setState({steps:[{type:i.WHATSAPP_OTP,config:{phone:e,referrer:l,useAuthenticatedWhatsAppApis:!0}}],currentStepIndex:0})}else h.setState({steps:[{type:i.WHATSAPP_PHONE_VERIFY,config:Object.assign({referrer:l},u?{useAuthenticatedWhatsAppApis:!0}:{})}],currentStepIndex:0});e({isOpen:!0,returnUrl:o,source:n,overrideClose:void 0,forceReloadOnClose:s||!1,flowData:{method:"whatsapp",flow:"login"},userInfo:void 0})},triggerCareEmailPhoneVerify:n=>(0,l._)(void 0,void 0,void 0,function*(){var o,s,d;let c=yield(0,u.g)();(null===(o=null==c?void 0:c._data)||void 0===o?void 0:o.first_time_login)&&(c._data.first_time_login=0),e({userInfo:null==c?void 0:c._data});let forceUpdatePhoneEmail=o=>(0,l._)(void 0,void 0,void 0,function*(){var l,s,d,c,f,p,v,g,m,y,S,b,_,w,x;let O=yield(0,u.g)(),E=null===(l=null==O?void 0:O._data)||void 0===l?void 0:l.email,A=!E||E.endsWith("@hhg.com")||E.endsWith("@facebook.com")?void 0:E,R=(null==n?void 0:n.email)||A,I=!!(null===(s=null==O?void 0:O._data)||void 0===s?void 0:s.phone)&&!!(null===(d=null==O?void 0:O._data)||void 0===d?void 0:d.phone_verified_at),P=!!(null===(c=null==O?void 0:O._data)||void 0===c?void 0:c.email)&&!!(null===(f=null==O?void 0:O._data)||void 0===f?void 0:f.email_verified_at)&&!(null===(v=null===(p=null==O?void 0:O._data)||void 0===p?void 0:p.email)||void 0===v?void 0:v.endsWith("@hhg.com"))&&!(null===(m=null===(g=null==O?void 0:O._data)||void 0===g?void 0:g.email)||void 0===m?void 0:m.endsWith("@facebook.com")),D=!!(null===(y=null==O?void 0:O._data)||void 0===y?void 0:y.name),T=!!(null===(S=null==O?void 0:O._data)||void 0===S?void 0:S.birthday),C="number"==typeof(null===(b=null==O?void 0:O._data)||void 0===b?void 0:b.gender),N=null===(_=null==O?void 0:O._data)||void 0===_?void 0:_.provider;I&&P?(null==n?void 0:n.skipForceSetup)||D&&T&&C?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,!0),e({isOpen:!1,forceReloadOnClose:!1}),null===(x=(w=t()).onCloseProp)||void 0===x||x.call(w)):(h.setState({steps:[{type:i.SETUP_FULL,config:{userInfo:O._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},o&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==O?void 0:O._data)}:{}))):(h.setState({steps:[{type:I?i.UPDATE_EMAIL:i.VERIFY_PHONE,config:I||P?{provider:N,afterAction:(null==n?void 0:n.skipForceSetup)?"done":"setup",email:R}:{provider:N,afterAction:"update-email",email:R}}],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},o&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==O?void 0:O._data)}:{})))});if(null===(s=null==c?void 0:c._data)||void 0===s?void 0:s.id)forceUpdatePhoneEmail(!0);else{h.setState({steps:[{type:i.FIRST,config:{legalTextType:((null===(d=null==n?void 0:n.returnUrl)||void 0===d?void 0:d.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,l._)(void 0,void 0,void 0,function*(){var o,s,d;let c=yield(0,u.g)();(null===(o=null==c?void 0:c._data)||void 0===o?void 0:o.first_time_login)&&(c._data.first_time_login=0),e({userInfo:null==c?void 0:c._data});let forceUpdateEmail=o=>(0,l._)(void 0,void 0,void 0,function*(){var l,s,d,c,f,p,v,g,m,y,S,b;let _=yield(0,u.g)(),w=!!(null===(l=null==_?void 0:_._data)||void 0===l?void 0:l.email)&&!!(null===(s=null==_?void 0:_._data)||void 0===s?void 0:s.email_verified_at)&&!(null===(c=null===(d=null==_?void 0:_._data)||void 0===d?void 0:d.email)||void 0===c?void 0:c.endsWith("@hhg.com"))&&!(null===(p=null===(f=null==_?void 0:_._data)||void 0===f?void 0:f.email)||void 0===p?void 0:p.endsWith("@facebook.com")),x=!!(null===(v=null==_?void 0:_._data)||void 0===v?void 0:v.name),O=!!(null===(g=null==_?void 0:_._data)||void 0===g?void 0:g.birthday),E="number"==typeof(null===(m=null==_?void 0:_._data)||void 0===m?void 0:m.gender),A=null===(y=null==_?void 0:_._data)||void 0===y?void 0:y.provider;w?x&&O&&E?(redirect(null==n?void 0:n.returnUrl,null==n?void 0:n.source,!0),e({isOpen:!1,forceReloadOnClose:!1}),null===(b=(S=t()).onCloseProp)||void 0===b||b.call(S)):(h.setState({steps:[{type:i.SETUP_FULL,config:{userInfo:_._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},o&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==_?void 0:_._data)}:{}))):(h.setState({steps:[{type:i.UPDATE_EMAIL,config:{provider:A,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},o&&!e.flowData?{flowData:getSSOFlowFromUserProfile(null==_?void 0:_._data)}:{})))});if(null===(s=null==c?void 0:c._data)||void 0===s?void 0:s.id)forceUpdateEmail(!0);else{h.setState({steps:[{type:i.FIRST,config:{legalTextType:((null===(d=null==n?void 0:n.returnUrl)||void 0===d?void 0:d.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 o=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 i=n.searchParams.get("source");o.searchParams.delete("source"),n.searchParams.delete("source");let l=i||t;if(o.href!==n.href)return l&&n.searchParams.set("source",l||""),window.location.href=n.href,!0}if(t){o.searchParams.set("source",t),window.history.replaceState({},"",o.href);return}},g=["vi-VN","id-ID","ms-MY"],IS_SSOV2_ENABLED=e=>!p.env.NEXT_PUBLIC_MARRY_BABY&&g.includes(e||p.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),o="number"==typeof(null==e?void 0:e.gender);return{flow:t&&n&&o?"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),o="number"==typeof(null==e?void 0:e.gender);return t&&n&&o},isFlowFinishedSetup=e=>{var t,n,o;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===(o=null==e?void 0:e.metaData)||void 0===o?void 0:o.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)},uG5L:function(e,t,n){"use strict";n.d(t,{G:function(){return d},a:function(){return u},u:function(){return usePlacesAutocomplete}});var o=n("vEfc"),i=n("+OUp"),l=n("yNk5");let formatAutoCompleteAddress=e=>!e||e.length<1?[]:e.map(e=>({placeId:e.place_id,description:e.description,rawData:e})),s="undefined"==typeof window,u={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},d=l.env.GOOGLE_MAP_KEY||"AIzaSyDH2YEO0oZ0XzQv90_7nd2mBHIDhFxLw4s",googleAutocomplete=(e="",t="",n="vi")=>(0,o._)(void 0,void 0,void 0,function*(){return new Promise((o,i)=>{if(!e)return i("Need valid text input");if(s)return i("Need valid window object");try{new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({input:e},t?{componentRestrictions:{country:t}}:{}),{language:u[n]}),o)}catch(e){i(e)}})}),usePlacesAutocomplete=(e="",t="",n="",l=500)=>{let[s,u]=(0,i.useState)([]),[d,c]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let i;return e?i=window.setTimeout(()=>(0,o._)(void 0,void 0,void 0,function*(){if(!e){u([]);return}try{c(!0);let o=yield googleAutocomplete(e,t,n);u(formatAutoCompleteAddress(o))}catch(e){console.error(e)}finally{c(!1)}}),l):s.length&&u([]),()=>{window.clearTimeout(i)}},[e,l,t]),{isLoading:d,predictions:s}}},rzfh:function(e,t,n){"use strict";n.d(t,{M:function(){return s},u:function(){return useScrollbarSize}});var o=n("+OUp"),i=n("sEfC"),l=n.n(i);let s="measure-scrollbar-size",useScrollbarSize=(e=!0)=>{let[t,n]=(0,o.useState)({height:0,width:0}),i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!e||"undefined"==typeof window)return;let getElement=()=>(i.current||(i.current=document.createElement("div"),i.current.classList.add(s),i.current.style.width="99px",i.current.style.height="99px",i.current.style.overflow="scroll",i.current.style.position="absolute",i.current.style.top="-9999px",i.current.setAttribute("aria-hidden","true"),i.current.setAttribute("role","presentation")),i.current),updateState=()=>{let{offsetHeight:e,clientHeight:t,offsetWidth:o,clientWidth:i}=getElement(),l=e-t,s=o-i;n(e=>{let{height:t,width:n}=e;return t!==l||n!==s?{height:l,width:s}:e})},t=l()(updateState,100);window.addEventListener("resize",t,{passive:!0}),document.body.appendChild(getElement()),updateState();let o=getElement();return()=>{t.cancel(),window.removeEventListener("resize",t),document.body.removeChild(o)}},[e]),t}},Xanp:function(e,t,n){"use strict";n.d(t,{a:function(){return d},b:function(){return f},c:function(){return c},d:function(){return isSupportProduct},g:function(){return getURLwithSSOTracking},i:function(){return p}});var o=n("i6Rr"),i=n("Z0qH"),l=n("D7zM"),s=n("HG5m"),u=n("4BRW");let d=[u.L.Indonesia,u.L.Malaysia].includes(i.l),c=[u.L.Vietnam].includes(i.l),f=[u.L.Vietnam].includes(i.l),p=[u.L.Malaysia].includes(i.l),isSupportProduct=e=>{let t=l.u.getState().setupSource||"discover",n=(null==e?void 0:e.find(e=>"discover"===e.name))&&"discover"===t,o=(null==e?void 0:e.find(e=>"together"===e.name))&&"community"===t,i=(null==e?void 0:e.find(e=>"care"===e.name))&&"care"===t;return n||o||i},getURLwithSSOTracking=(e,{source:t,botItem:n})=>{var i;if(!t&&!n)return null;try{let l=new URL(e.startsWith("localhost")?`http://${e}`:e),u={bmi:o.b.BMI,bmr:o.b.BMR,"due-date":o.b.DUE_DATE,ovulation:o.b.OVULATION,"baby-growth":o.b.BABY_GROWTH,"baby-vaccine":o.b.BABY_VACCINE,"pregnancy-weight-gain":o.b.PWG,"target-heart-rate":o.b.THR,"baby-poop-checking":o.b.BABY_POOP},d=u[t],c=window.location.href.includes("/health-tools");return d&&!c?(l.searchParams.set("embeddedType","healthTool"),l.searchParams.set("toolName",d)):(null===(i=null==n?void 0:n.extra_settings)||void 0===i?void 0:i.subot_type)===s.h.ristScreener&&(l.searchParams.set("embeddedType","riskScreener"),l.searchParams.set("toolName",String(n.id))),l}catch(e){return null}}},"+QaA":function(e){var t,n,o,i,l,s,u,d,c,f,p,h;e.exports=(t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,s={},u=function(e){return(e=+e)+(e>68?1900:2e3)},d=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],f=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},p=function(e,t){var n,o=s.meridiem;if(o){for(var i=1;i<=24;i+=1)if(e.indexOf(o(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[l,function(e){this.afternoon=p(e,!1)}],a:[l,function(e){this.afternoon=p(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[l,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],M:[i,d("month")],MM:[o,d("month")],MMM:[l,function(e){var t=f("months"),n=(f("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[l,function(e){var t=f("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(e){this.year=u(e)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c},function(e,o,i){i.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(u=e.parseTwoDigitYear);var l=o.prototype,d=l.parse;l.parse=function(e){var o=e.date,l=e.utc,u=e.args;this.$u=l;var c=u[1];if("string"==typeof c){var f=!0===u[2],p=!0===u[3],v=u[2];p&&(v=u[2]),s=this.$locale(),!f&&v&&(s=i.Ls[v]),this.$d=function(e,o,i){try{if(["x","X"].indexOf(o)>-1)return new Date(("X"===o?1e3:1)*e);var l=(function(e){var o,i;o=e,i=s&&s.formats;for(var l=(e=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,o){var l=o&&o.toUpperCase();return n||i[o]||t[o]||i[l].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(n),u=l.length,d=0;d0?d-1:y.getMonth());var w=f||0,x=p||0,O=v||0,E=g||0;return m?new Date(Date.UTC(b,_,S,w,x,O,E+60*m.offset*1e3)):i?new Date(Date.UTC(b,_,S,w,x,O,E)):new Date(b,_,S,w,x,O,E)}catch(e){return new Date("")}}(o,c,l),this.init(),v&&!0!==v&&(this.$L=this.locale(v).$L),(f||p)&&o!=this.format(c)&&(this.$d=new Date("")),s={}}else if(c instanceof Array)for(var g=c.length,m=1;m<=g;m+=1){u[1]=c[m-1];var y=i.apply(this,u);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}m===g&&(this.$d=new Date(""))}else d.call(this,e)}})},s3Wo:function(e){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},KYiY:function(e,t,n){var o;!function(){var t={initialize:function(){this._tasks=new Map},mutate:function(e,t){return create(this,"mutate",e,t)},measure:function(e,t){return create(this,"measure",e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function create(e,t,n,o){var i,l=e._tasks,s=e.fastdom,u=new Promise(function(e,d){i=s[t](function(){l.delete(u);try{e(o?n.call(o):n())}catch(e){d(e)}},o)});return l.set(u,i),u}void 0!==(o=(function(){return t}).call(t,n,t,e))&&(e.exports=o)}()},Sn6X:function(e,t,n){var o;!function(t){"use strict";var debug=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function FastDom(){this.reads=[],this.writes=[],this.raf=i.bind(t),debug("initialized",this)}function scheduleFlush(e){e.scheduled||(e.scheduled=!0,e.raf(flush.bind(null,e)),debug("flush scheduled"))}function flush(e){debug("flush");var t,n=e.writes,o=e.reads;try{debug("flushing reads",o.length),e.runTasks(o),debug("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(o.length||n.length)&&scheduleFlush(e),t){if(debug("task errored",t.message),e.catch)e.catch(t);else throw t}}function remove(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}FastDom.prototype={constructor:FastDom,runTasks:function(e){var t;for(debug("run tasks");t=e.shift();)t()},measure:function(e,t){debug("measure");var n=t?e.bind(t):e;return this.reads.push(n),scheduleFlush(this),n},mutate:function(e,t){debug("mutate");var n=t?e.bind(t):e;return this.writes.push(n),scheduleFlush(this),n},clear:function(e){return debug("clear",e),remove(this.reads,e)||remove(this.writes,e)},extend:function(e){if(debug("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var l=t.fastdom=t.fastdom||new FastDom;void 0!==(o=(function(){return l}).call(l,n,l,e))&&(e.exports=o)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},p46w:function(e,t,n){var o,i,l;void 0!==(i="function"==typeof(o=l=function(){function extend(){for(var e=0,t={};ei?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(i);++o=i?e:o(e,t,n)}},"0ZTe":function(e,t,n){var o=n("wy8a"),i=n("quyA"),l=n("Em2t"),s=n("dt0z");e.exports=function(e){return function(t){var n=i(t=s(t))?l(t):void 0,u=n?n[0]:t.charAt(0),d=n?o(n,1).join(""):t.slice(1);return u[e]()+d}}},sgoq:function(e,t,n){var o=n("asDA"),i=n("TKrE"),l=n("6nK8"),s=RegExp("['’]","g");e.exports=function(e){return function(t){return o(l(i(t).replace(s,"")),e,"")}}},qRkn:function(e,t,n){var o=n("3cYt")({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=o},quyA:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},fo6e:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},Em2t:function(e,t,n){var o=n("bahg"),i=n("quyA"),l=n("0JQy");e.exports=function(e){return i(e)?l(e):o(e)}},"0JQy":function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+t+"]",l="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+n+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,l,s].join("|")+")"+d+u+")*",f=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,l,s,"["+t+"]"].join("|")+")"+(d+u+c),"g");e.exports=function(e){return e.match(f)||[]}},"9NmV":function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="['’]",u="["+l+"]",d="["+o+"]",c="[^"+t+l+"\\d+"+n+o+i+"]",f="(?:\ud83c[\udde6-\uddff]){2}",p="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",v="(?:"+d+"|"+c+")",g="(?:"+s+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+s+"(?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",S="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",f,p].join("|")+")"+S+y+")*",_="(?:"+["["+n+"]",f,p].join("|")+")"+(S+y+b),w=RegExp([h+"?"+d+"+"+g+"(?="+[u,h,"$"].join("|")+")","(?:"+h+"|"+c+")+"+m+"(?="+[u,h+v,"$"].join("|")+")",h+"?"+v+"+"+g,h+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",_].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},u6S6:function(e,t,n){var o=n("6acW"),i=n("sgoq")(function(e,t,n){return t=t.toLowerCase(),e+(n?o(t):t)});e.exports=i},"6acW":function(e,t,n){var o=n("dt0z"),i=n("gQMU");e.exports=function(e){return i(o(e).toLowerCase())}},TKrE:function(e,t,n){var o=n("qRkn"),i=n("dt0z"),l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(l,o).replace(s,"")}},gQMU:function(e,t,n){var o=n("0ZTe")("toUpperCase");e.exports=o},"6nK8":function(e,t,n){var o=n("dVn5"),i=n("fo6e"),l=n("dt0z"),s=n("9NmV");e.exports=function(e,t,n){return(e=l(e),void 0===(t=n?void 0:t))?i(e)?s(e):o(e):e.match(t)||[]}},Dfpe:function(){},oOSY:function(e,t,n){"use strict";var o,i=(o=n("6Egq"))&&o.__esModule?o:{default:o};Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.A=i.default},"6Egq":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function defineProperties(e,t){for(var n=0;n0?o:n,l=parseFloat(i.toFixed(2)).toString();Number.isInteger(i)&&(l=String(i));var s=t+"s";return"1"===l&&(s=t),l+" "+s}},{key:"offsetValue",get:function(){var e=this.props.rating,t=Number.isInteger(e),n="0%";return t||(n=e.toFixed(2).split(".")[1].slice(0,2)+"%"),n}},{key:"renderStars",get:function(){var e=this,t=this.props,n=t.changeRating,o=t.rating,l=t.numberOfStars,u=t.starDimension,d=t.starSpacing,c=t.starRatedColor,f=t.starEmptyColor,p=t.starHoverColor,h=t.gradientPathName,v=t.ignoreInlineStyles,g=t.svgIconPath,m=t.svgIconViewBox,y=t.name,S=this.state.highestStarHovered;return Array.apply(null,Array(l)).map(function(t,b){var _=b+1,w=_<=o,x=_<=S,O=_===S,E=_>o&&_-10,isCurrentHoveredStar:O,isFirstStar:A,isLastStar:R,starDimension:u,starSpacing:d,starHoverColor:p,starRatedColor:c,starEmptyColor:f,gradientPathName:h,ignoreInlineStyles:v,svgIconPath:g,svgIconViewBox:m})})}}]),StarRatings}(i.default.Component);u.propTypes={rating:l.default.number.isRequired,numberOfStars:l.default.number.isRequired,changeRating:l.default.func,starHoverColor:l.default.string.isRequired,starRatedColor:l.default.string.isRequired,starEmptyColor:l.default.string.isRequired,starDimension:l.default.string.isRequired,starSpacing:l.default.string.isRequired,gradientPathName:l.default.string.isRequired,ignoreInlineStyles:l.default.bool.isRequired,svgIconPath:l.default.string.isRequired,svgIconViewBox:l.default.string.isRequired,name:l.default.string},u.defaultProps={rating:0,typeOfWidget:"Star",numberOfStars:5,changeRating:null,starHoverColor:"rgb(230, 67, 47)",starRatedColor:"rgb(109, 122, 130)",starEmptyColor:"rgb(203, 211, 227)",starDimension:"50px",starSpacing:"7px",gradientPathName:"",ignoreInlineStyles:!1,svgIconPath:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z",svgIconViewBox:"0 0 51 48"},t.default=u},"4Ikp":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function defineProperties(e,t){for(var n=0;n{let o;if(!p&&y)return o=function(e,t,n={},o=d){if(void 0===window.IntersectionObserver&&void 0!==o){let i=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:c,elements:f}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(s.has(n)||(u+=1,s.set(n,u.toString())),s.get(n)):"0":e[t]}`}).toString(),n=l.get(t);if(!n){let o;let i=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var n;let l=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=l),null==(n=i.get(t.target))||n.forEach(e=>{e(l,t)})})},e);o=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:i},l.set(t,n)}return n}(n),p=f.get(e)||[];return f.has(e)||f.set(e,p),p.push(t),c.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(f.delete(e),c.unobserve(e)),0===f.size&&(c.disconnect(),l.delete(i))}}(y,(e,t)=>{w({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&f&&o&&(o(),o=void 0)},{root:c,rootMargin:i,threshold:e,trackVisibility:n,delay:t},v),()=>{o&&o()}},[Array.isArray(e)?e.toString():e,y,c,i,f,p,n,v,t]);let x=null==(m=_.entry)?void 0:m.target,O=o.useRef();y||!x||f||p||O.current===x||(O.current=x,w({inView:!!h,entry:void 0}));let E=[S,_.inView,_.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}o.Component},ECoa:function(e,t,n){"use strict";n.d(t,{A:function(){return Skeleton}});var o=n("+OUp");let i=o.createContext({});function Skeleton({count:e=1,wrapper:t,className:n,containerClassName:l,containerTestId:s,circle:u=!1,style:d,...c}){var f,p,h;let v=o.useContext(i),g={...c};for(let[e,t]of Object.entries(c))void 0===t&&delete g[e];let m={...v,...g,circle:u},y={...d,...function({baseColor:e,highlightColor:t,width:n,height:o,borderRadius:i,circle:l,direction:s,duration:u,enableAnimation:d=!0}){let c={};return"rtl"===s&&(c["--animation-direction"]="reverse"),"number"==typeof u&&(c["--animation-duration"]=`${u}s`),d||(c["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(c.width=n),("string"==typeof o||"number"==typeof o)&&(c.height=o),("string"==typeof i||"number"==typeof i)&&(c.borderRadius=i),l&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),c}(m)},S="react-loading-skeleton";n&&(S+=` ${n}`);let b=null!==(f=m.inline)&&void 0!==f&&f,_=[],w=Math.ceil(e);for(let t=0;te&&t===w-1){let t=null!==(p=n.width)&&void 0!==p?p:"100%",o=e%1,i="number"==typeof t?t*o:`calc(${t} * ${o})`;n={...n,width:i}}let i=o.createElement("span",{className:S,style:n,key:t},"‌");b?_.push(i):_.push(o.createElement(o.Fragment,{key:t},i,o.createElement("br",null)))}return o.createElement("span",{className:l,"data-testid":s,"aria-live":"polite","aria-busy":null===(h=m.enableAnimation)||void 0===h||h},t?_.map((e,n)=>o.createElement(t,{key:n},e)):_)}},VNqU:function(e,t,n){"use strict";n.d(t,{Pj:function(){return useStore},vt:function(){return create}});var o=n("oWg6"),i=n("+OUp"),l=n("ejks");let{useSyncExternalStoreWithSelector:s}=l;function useStore(e,t=e.getState,n){let o=s(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(o),o}let createImpl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(0,o.y)(e):e,useBoundStore=(e,n)=>useStore(t,e,n);return Object.assign(useBoundStore,t),useBoundStore},create=e=>e?createImpl(e):createImpl},a5vB:function(e,t,n){"use strict";function shallow(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,o]of e)if(!Object.is(o,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o{let t;let n=new Set,setState=(e,o)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=o?o:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},getState=()=>t,o={setState,getState,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(setState,getState,o),o},createStore=e=>e?createStoreImpl(e):createStoreImpl}}]);