"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8098],{"+m3q":function(e,t,n){n.d(t,{E:function(){return setupUnifyEnv}});var a=n("yNk5");function setupUnifyEnv({DISCOVER_API:e,INTERNAL_DISCOVER_API:t,TOGETHER_API:n,INTERNAL_TOGETHER_API:r,CARE_API:i,INTERNAL_CARE_API:o,SIDIS_TEMPLATE_API:l,SIDIS_API:d,SIDIS_API_GET:c,SSO_API:s,LOCALE:u,DEPLOY_ENV:p,LEAD_API:m,SUBOT_API:g,INTERNAL_SUBOT_API:h,SUBOT_URL:b,PREMIUM_URL:x,VACCINATION_TOOL_API:_,LOGGING_ENABLED:v}){e&&(a.env.UNIFY_DISCOVER_API=e),t&&(a.env.UNIFY_INTERNAL_DISCOVER_API=t),n&&(a.env.UNIFY_TOGETHER_API=n),r&&(a.env.UNIFY_INTERNAL_TOGETHER_API=r),i&&(a.env.UNIFY_CARE_API=i),o&&(a.env.UNIFY_INTERNAL_CARE_API=o),l&&(a.env.UNIFY_SIDIS_TEMPLATE_API=l),d&&(a.env.UNIFY_SIDIS_API=d),c&&(a.env.UNIFY_SIDIS_API_GET=c),s&&(a.env.UNIFY_SSO_API=s),u&&(a.env.UNIFY_LOCALE=u),p&&(a.env.UNIFY_DEPLOY_ENV=p),m&&(a.env.UNIFY_LEAD_API=m),g&&(a.env.UNIFY_SUBOT_API=g),h&&(a.env.UNIFY_INTERNAL_SUBOT_API=h),b&&(a.env.UNIFY_SUBOT_URL=b),x&&(a.env.UNIFY_PREMIUM_URL=x),_&&(a.env.UNIFY_VACCINATION_TOOL_API=_),String(v)&&(a.env.UNIFY_LOGGING_ENABLED=String(v))}},AxWg:function(e,t,n){n.d(t,{a:function(){return l},u:function(){return useIsInit}});var a=n("q1tI"),r=n("VNqU"),i=n("caKH"),o=n("EoE9");let useIsInit=()=>{let[e,t]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{t(!1)},[]),e},l=(0,r.Ue)()((0,i.tJ)((e,t)=>({href:null,setHref:t=>{e({href:t})},getHref:()=>{var e;return null!==(e=t().href)&&void 0!==e?e:null},resetHref:()=>{e({href:null})}}),{name:o.h,storage:(0,i.FL)(()=>localStorage)}))},gcJ3:function(e,t,n){n.d(t,{u:function(){return useHealthToolsCache}});var a=n("usZY"),r=n("q1tI"),i=n("+GCU");let useHealthToolsCache=e=>{let[t,n]=(0,r.useState)([]);(0,r.useEffect)(()=>{(0,a.a)(void 0,void 0,void 0,function*(){let t=yield(0,i.E2)(e);n(t)})},[i.E2,e]);let o=(0,r.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:o}}},"4XNq":function(e,t,n){n.d(t,{a:function(){return useOutsideClick},i:function(){return initSharedOutSideClickListener},u:function(){return useSharedOutsideClick}});var a=n("q1tI");let r=new Map,handleClick=e=>{for(let[t,n]of r)t.current&&!t.current.contains(e.target)&&n(e)},initSharedOutSideClickListener=()=>{document.addEventListener("mousedown",handleClick,{passive:!0})},useSharedOutsideClick=(e,t)=>{(0,a.useEffect)(()=>(r.set(e,t),()=>{r.delete(e)}),[e,t])},useOutsideClick=(e,t)=>{let n=(0,a.useCallback)(n=>{var a;null!==(a=e.current)&&void 0!==a&&a.contains(n.target)||t(n)},[]);(0,a.useEffect)(()=>(document.addEventListener("mousedown",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n)}),[n])}},Amu4:function(e,t,n){n.d(t,{M:function(){return s},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 a=n("usZY"),r=n("q1tI"),i=n("27Mu"),o=n("r3pw"),l=n("FQi+"),d=n("e6f9");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,r.useRef)("");(0,r.useEffect)(()=>((0,a.a)(void 0,void 0,void 0,function*(){var n,a,r,o,l;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===(a=null===(n=window.localStorage)||void 0===n?void 0:n.setItem)||void 0===a||a.call(n,"fbClientIp",JSON.stringify({client_ip_address:(null===(r=t.current)||void 0===r?void 0:r.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==e?void 0:e.id){let[t,n,a,r,d,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 s={user_id:e.id};c&&(s.fn=c),t&&(s.em=t),n&&(s.ph=n),a&&(s.db=a),d&&(s.ct=d),null===(l=null===(o=window.localStorage)||void 0===o?void 0:o.setItem)||void 0===l||l.call(o,"fbDataLayer_userInfo",JSON.stringify(s))}}),()=>{}),[e])},usePrevious=e=>{let t=(0,r.useRef)(),n=(0,r.useRef)(e),a=(0,o.u)();return a||n.current===e||(t.current=n.current,n.current=e),t.current},useRafState=e=>{let[t,n]=(0,r.useState)(e),a=(0,r.useRef)(0),i=(0,r.useCallback)(e=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{n(e)})},[]);return(0,r.useEffect)(()=>()=>cancelAnimationFrame(a.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"},s={[d.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"},[d.L.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[d.L.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[d.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:""},[d.L.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[d.L.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[d.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:""},[d.L.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[d.L.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[d.L.Singapore]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[d.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,l.u)(),n=(0,r.useMemo)(()=>decodeURI(e.replace(/\//gi,"")).includes(c[t]),[]),a=(0,r.useMemo)(()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=s[t])||void 0===n?void 0:n.parenting)},[]),i=(0,r.useMemo)(()=>(function(e,t){let n=e.split("/");for(let e in t){let a=t[e];if(n.includes(a))return e}return null})(e,s[t]),[e,t]);return{isPregnancy:n,isParenting:a,type:i}};function usePhoneValidator(){let[e,t]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(0,a.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,r.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}},xu4k:function(e,t,n){n.d(t,{G:function(){return d},a:function(){return l},u:function(){return usePlacesAutocomplete}});var a=n("usZY"),r=n("q1tI"),i=n("yNk5");let formatAutoCompleteAddress=e=>!e||e.length<1?[]:e.map(e=>({placeId:e.place_id,description:e.description,rawData:e})),o="undefined"==typeof window,l={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},d=i.env.GOOGLE_MAP_KEY||"AIzaSyDH2YEO0oZ0XzQv90_7nd2mBHIDhFxLw4s",googleAutocomplete=(e="",t="",n="vi")=>(0,a.a)(void 0,void 0,void 0,function*(){return new Promise((a,r)=>{if(!e)return r("Need valid text input");if(o)return r("Need valid window object");try{new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({input:e},t?{componentRestrictions:{country:t}}:{}),{language:l[n]}),a)}catch(e){r(e)}})}),usePlacesAutocomplete=(e="",t="",n="",i=500)=>{let[o,l]=(0,r.useState)([]),[d,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let r;return e?r=window.setTimeout(()=>(0,a.a)(void 0,void 0,void 0,function*(){if(!e){l([]);return}try{c(!0);let a=yield googleAutocomplete(e,t,n);l(formatAutoCompleteAddress(a))}catch(e){console.error(e)}finally{c(!1)}}),i):o.length&&l([]),()=>{window.clearTimeout(r)}},[e,i,t]),{isLoading:d,predictions:o}}},"4db+":function(e,t,n){n.d(t,{M:function(){return o},u:function(){return useScrollbarSize}});var a=n("q1tI"),r=n("sEfC"),i=n.n(r);let o="measure-scrollbar-size",useScrollbarSize=(e=!0)=>{let[t,n]=(0,a.useState)({height:0,width:0}),r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e||"undefined"==typeof window)return;let getElement=()=>(r.current||(r.current=document.createElement("div"),r.current.classList.add(o),r.current.style.width="99px",r.current.style.height="99px",r.current.style.overflow="scroll",r.current.style.position="absolute",r.current.style.top="-9999px",r.current.setAttribute("aria-hidden","true"),r.current.setAttribute("role","presentation")),r.current),updateState=()=>{let{offsetHeight:e,clientHeight:t,offsetWidth:a,clientWidth:r}=getElement(),i=e-t,o=a-r;n(e=>{let{height:t,width:n}=e;return t!==i||n!==o?{height:i,width:o}:e})},t=i()(updateState,100);window.addEventListener("resize",t,{passive:!0}),document.body.appendChild(getElement()),updateState();let a=getElement();return()=>{t.cancel(),window.removeEventListener("resize",t),document.body.removeChild(a)}},[e]),t}},aZjv:function(e,t,n){n.d(t,{I_:function(){return TogetherAuthConfigContextProvider},YS:function(){return d},iV:function(){return useTogetherAuthRequiredAction}});var a=n("q1tI"),r=n("27Mu"),i=n("sHKU"),o=n("XAIn"),l=n("ORpR");n("NmYn"),n("gY0P");let d=(0,a.createContext)({}),TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>a.createElement(d.Provider,{value:{defaultParams:t}},e),useTogetherAuthRequiredAction=e=>{let{triggerLogin:t}=(0,i.u)(),{data:{userInfo:n,env:{togetherBasePath:c}}}=(0,a.useContext)(o.T),{defaultParams:s}=(0,a.useContext)(d)||{},u=(0,a.useRef)(!!(null==n?void 0:n.id));u.current=!!(null==n?void 0:n.id);let p=(0,a.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,a)=>{let d=Object.assign(Object.assign(Object.assign({},s),e),a);if(u.current&&!p.current)return n&&n();{u.current||(0,r.kT)(l.B),(null==d?void 0:d._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(d._joinCommunityIds).filter(Boolean))))),null==d||delete d._joinCommunityIds),(null==d?void 0:d._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(d._joinTopicIds).filter(Boolean))))),null==d||delete d._joinTopicIds);let e=(null==d?void 0:d._location)||window.location.href;null==d||delete d._location;let n=(0,o.j)(e,d,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({},s),e)}}},r3pw:function(e,t,n){n.d(t,{a:function(){return useUniqueId},u:function(){return useInitialMount}});var a=n("q1tI");let useInitialMount=()=>{let e=(0,a.useRef)(!0);return!!e.current&&(e.current=!1,!0)},r=0,useUniqueId=()=>{let e=(0,a.useRef)(""),t=useInitialMount();return t&&(r+=1,e.current=`hhg-gen-id${r}`),e.current}},U19L:function(e,t,n){n.d(t,{c:function(){return currencyFormat}});var a=n("tiWT");function currencyFormat(e,t,n){return e&&t?new Intl.NumberFormat(t,{style:"currency",currency:n}).format(Number(e)):`0 ${a.Z5["vi-VN"]||""}`}},Dyd6:function(e,t,n){n.d(t,{M:function(){return r},h:function(){return hiddenEmailChar}});var a=n("e6f9");let r={[a.L.Vietnam]:"VN",[a.L.Cambodia]:"KH",[a.L.Indonesia]:"ID",[a.L.Malaysia]:"MY",[a.L.PhilippinesEnglish]:"PH",[a.L.PhilippinesTagalog]:"PH",[a.L.Taiwan]:"TW",[a.L.Thailand]:"TH",[a.L.Myanmar]:"MM"},hiddenEmailChar=(e="")=>{let t=e.indexOf("@"),n=e.substring(0,t),a=n.length>3?3:n.length;return e.replace(e.substring(a,t),e.slice(a,t).replace(/./g,"x"))}},"jh/3":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 b},b:function(){return v},c:function(){return _},d:function(){return x},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 a=n("q1tI"),r=n("EoE9"),i=n("27Mu"),o=n("rBCA"),l=n("iBNF"),d=n("pvoY"),c=n("ECoa"),s=n("gY0P"),u=n.n(s),p=n("xrdX");function useGeolocation(){let[e,t]=(0,a.useState)(()=>{if("undefined"==typeof window)return"unset";if((0,i.ej)(r.U))return"granted";let e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"}),[n,o]=(0,a.useState)(()=>{if("undefined"==typeof window)return null;let e=(0,i.ej)(r.U);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null}),l=(0,a.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)(r.U,JSON.stringify(n),{minutes:15}),o(n),t("granted")},()=>{(0,i.kT)(r.U),t("denied")})},[]);return(0,a.useMemo)(()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l}),[e,n])}let ClearIcon=({className:e,color:t})=>a.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),a.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})=>a.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),PinIcon=({className:e,color:t})=>a.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},a.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})=>a.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.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"}),a.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),DefaultThumbnailAny=({width:e,height:t})=>a.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),DefaultThumbnailDoctor=({width:e,height:t})=>a.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none"},a.createElement("g",{clipPath:"url(#clip0_14712_400114)"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),a.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"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_14712_400114"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),DefaultThumbnailService=({width:e,height:t})=>a.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),a.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=o.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: ${l.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=o.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: ${l.r.borderRadius}; background-color: white; z-index: 30; ${d.M.tdDown} { position: relative; top: 0; box-shadow: initial; } `,b=o.Z.ul` width: 100%; max-height: 600px; overflow-y: auto; `,x=(0,o.Z)(PinIcon)` width: 12px; height: 18px; `,_=o.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: ${l.r.colors.neutral100}; } &:not([data-is-denied='true']):hover { background-color: ${l.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; } `,v=(0,o.Z)(({count:e,className:t})=>a.createElement(a.Fragment,null,[...Array(e)].map((e,n)=>a.createElement(m,{className:t,key:n},a.createElement(c.Z,{count:1,height:32}),a.createElement(c.Z,{count:1,height:24})))))` &:first-child { padding-top: 18px; } `,getApiPath=(e,t,n)=>u()(e,Object.assign(Object.assign({},t),{domain:p.v[n||"en-PH"]}))},pvoY:function(e,t,n){n.d(t,{B:function(){return a},M:function(){return i},S:function(){return r},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[a,r]=e.split("?"),i=new URLSearchParams(r||""),o={};return i.forEach((e,t)=>{e&&(o[t]=e)}),Number(t)>1?o[n]=String(t):delete o[n],a+makeParams(o)},toggleNoScroll=e=>{"undefined"!=typeof window&&(document.documentElement.style.overflow=e?"hidden":"")},a={BREAK_POINT_SMALL_MOBILE:480,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1159,BREAK_POINT_LGPC:1440},r={LG:1160},i={smbDown:`@media (max-width: ${a.BREAK_POINT_SMALL_MOBILE-1}px)`,smbUp:`@media (min-width: ${a.BREAK_POINT_SMALL_MOBILE}px)`,mbDown:`@media (max-width: ${a.BREAK_POINT_MOBILE-1}px)`,mbOnly:`@media (min-width: ${a.BREAK_POINT_SMALL_MOBILE}px) and (max-width: ${a.BREAK_POINT_MOBILE-1}px)`,mbUp:`@media (min-width: ${a.BREAK_POINT_MOBILE}px)`,tdDown:`@media (max-width: ${a.BREAK_POINT_TABLET-1}px)`,tdOnly:`@media (min-width: ${a.BREAK_POINT_MOBILE}px) and (max-width: ${a.BREAK_POINT_TABLET-1}px)`,tdUp:`@media (min-width: ${a.BREAK_POINT_TABLET}px)`,pcUp:`@media (min-width: ${a.BREAK_POINT_PC}px)`,pcOnly:`@media (min-width: ${a.BREAK_POINT_TABLET}px) and (max-width: ${a.BREAK_POINT_PC-1}px)`,pcDown:`@media (max-width: ${a.BREAK_POINT_PC-1}px)`,lgPcUp:`@media (min-width: ${a.BREAK_POINT_LGPC}px)`,lgPcOnly:`@media (min-width: ${a.BREAK_POINT_PC}px) and (max-width: ${a.BREAK_POINT_LGPC-1}px)`,lgPcDown:`@media (max-width: ${a.BREAK_POINT_LGPC-1}px)`,mbToPC:`@media (min-width: ${a.BREAK_POINT_MOBILE}px) and (max-width: ${a.BREAK_POINT_PC-1}px)`},getBoundariesFromMediaQueryKey=e=>{switch(e){case"smbDown":return[0,a.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[a.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,a.BREAK_POINT_MOBILE-1];case"mbOnly":return[a.BREAK_POINT_SMALL_MOBILE,a.BREAK_POINT_MOBILE-1];case"mbUp":return[a.BREAK_POINT_MOBILE,0];case"tdDown":return[0,a.BREAK_POINT_TABLET-1];case"tdOnly":return[a.BREAK_POINT_MOBILE,a.BREAK_POINT_TABLET-1];case"tdUp":return[a.BREAK_POINT_TABLET,0];case"pcUp":return[a.BREAK_POINT_PC,0];case"pcOnly":return[a.BREAK_POINT_TABLET,a.BREAK_POINT_PC-1];case"pcDown":return[0,a.BREAK_POINT_PC-1];case"lgPcUp":return[a.BREAK_POINT_LGPC,0];case"lgPcOnly":return[a.BREAK_POINT_PC,a.BREAK_POINT_LGPC-1];case"lgPcDown":return[0,a.BREAK_POINT_LGPC-1];case"mbToPC":return[a.BREAK_POINT_MOBILE,a.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}`),a=parseInt(`${e/7}`);return{years:t,months:n,weeks:a}},sleep=e=>new Promise(t=>setTimeout(t,e))},bTBW:function(e,t,n){n.d(t,{a:function(){return s},b:function(){return c},c:function(){return isSupportProduct},g:function(){return getURLwithSSOTracking},i:function(){return d}});var a=n("uBtm"),r=n("3qph"),i=n("sHKU"),o=n("Dphd"),l=n("e6f9");let d=[l.L.Indonesia,l.L.Malaysia].includes(r.l),c=[l.L.Vietnam].includes(r.l),s=[l.L.Vietnam].includes(r.l),isSupportProduct=e=>{let t=i.u.getState().setupSource||"discover",n=(null==e?void 0:e.find(e=>"discover"===e.name))&&"discover"===t,a=(null==e?void 0:e.find(e=>"together"===e.name))&&"community"===t,r=(null==e?void 0:e.find(e=>"care"===e.name))&&"care"===t;return n||a||r},getURLwithSSOTracking=(e,{source:t,botItem:n})=>{var r;if(!t&&!n)return null;try{let i=new URL(e.startsWith("localhost")?`http://${e}`:e),l={bmi:a.b.BMI,bmr:a.b.BMR,"due-date":a.b.DUE_DATE,ovulation:a.b.OVULATION,"baby-growth":a.b.BABY_GROWTH,"baby-vaccine":a.b.BABY_VACCINE,"pregnancy-weight-gain":a.b.PWG,"target-heart-rate":a.b.THR,"baby-poop-checking":a.b.BABY_POOP},d=l[t],c=window.location.href.includes("/health-tools");return d&&!c?(i.searchParams.set("embeddedType","healthTool"),i.searchParams.set("toolName",d)):(null===(r=null==n?void 0:n.extra_settings)||void 0===r?void 0:r.subot_type)===o.h.ristScreener&&(i.searchParams.set("embeddedType","riskScreener"),i.searchParams.set("toolName",String(n.id))),i}catch(e){return null}}},XAIn:function(e,t,n){n.d(t,{D:function(){return g},G:function(){return b},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 x},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 v}});var a=n("usZY"),r=n("UG0A"),i=n("27Mu"),o=n("NmYn"),l=n.n(o),d=n("GOBr"),c=n("gY0P"),s=n.n(c),u=n("q1tI"),p=n("IQVP"),m=n("ORpR");let g={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},h=(0,u.createContext)({data:g,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null}),b=g,TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:t,userInfo:n,router:a,env:r={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:i=e=>e,pushNotifications:o=()=>!1,formatMessage:l})=>{let[d,c]=(0,u.useState)();return b={userInfo:n,locale:e,togetherUserId:d,router:a,env:r},(0,u.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]),u.createElement(h.Provider,{value:{data:{userInfo:n,locale:e,togetherUserId:d,router:a,env:r},action:{pushNotifications:o,sanitizeFunction:i},formatMessage:l}},t)},x={"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"},v="vi-VN",getWebsiteUrlApi=e=>{let{env:{isMarryBaby:t}}=b;return`https://${t?_[e]:x[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}}=b;return"undefined"!=typeof window?window.location.origin:`https://${t?"www.":""}${x[e]}`},getCurrentHref=(e,t,n)=>"undefined"!=typeof window?window.location.href:`${getCurrentBaseUrl(e)}${t}${n}`,getApiPath=(e,t,n,a)=>{let r="";n&&(r=Object.keys(n).map(e=>e+"="+n[e]).join("&"));let{togetherBaseApiUrl:i=""}=(null==b?void 0:b.env)||{},o=s()(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:getWebsiteUrlApi(String(t._locale))}:{}),t));return(a||i)+"api/v1/"+cleanFormatString(o+=`${o.includes("?")?"&":"?"}${r}`)},getDiscoverApiPath=(e,t,n)=>{let{discoverBaseApiUrl:a="",discoverBaseProdApiUrl:r=""}=(null==b?void 0:b.env)||{},i=!d.y&&n?r:a;return i+"wp-json/api/"+cleanFormatString(s()(e,Object.assign({},t)))},getMarryBabyApiPath=(e,t,n)=>{let{marryBabyApiUrl:a="",marryBabyProdApiUrl:r=""}=(null==b?void 0:b.env)||{},i=n&&!d.y?r:a;return i+"wp-json/api/"+cleanFormatString(s()(e,Object.assign({},t)))},getCarePath=(e,t)=>{let{careBaseApiUrl:n=""}=(null==b?void 0:b.env)||{};return(n||"https://service-health-care.hellohealthgroup.com/")+cleanFormatString(s()(e,Object.assign({},t)))},getPremiumApiPath=(e,t)=>{let{premiumBaseApiUrl:n=""}=(null==b?void 0:b.env)||{};return(n||"https://premium-content-stag.hellohealthgroup.com/")+cleanFormatString(s()(e,Object.assign({},t)))},getSsoApiPath=(e,t)=>{let{publicSSO:n=""}=(null==b?void 0:b.env)||{};return(n||"https://staging-id.hellobacsi.com/")+"api/"+cleanFormatString(s()(e,Object.assign({},t)))},getChatbotAiApiPath=(e,t)=>{let{chatbotAiUrl:n=""}=(null==b?void 0:b.env)||{};return(n||"https://chatbot-staging-v2.hellohealthgroup.com/")+cleanFormatString(s()(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,r=!1)=>(0,a.a)(void 0,void 0,void 0,function*(){var a,i,o;try{let a=yield fetch(r?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(a)return a}catch(t){return console.log(t),console.log({url:e,status:null===(a=null==t?void 0:t.response)||void 0===a?void 0:a.status,statusText:null===(i=null==t?void 0:t.response)||void 0===i?void 0:i.statusText}),(null===(o=null==t?void 0:t.response)||void 0===o?void 0:o.data)||null}return null}),callApiWithOptionalAuth=(e,t="GET",n,o)=>(0,a.a)(void 0,void 0,void 0,function*(){var a,l,d,c,s,u;try{let c="string"==typeof e?e:e.url,s="string"==typeof e?e:e.backupUrl,u=r.c.parse(o||""),p=u[m.B],g=p||(0,i.ej)(m.B);if(!g||!g.length)return callApi(s||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===(a=null==e?void 0:e.messages)||void 0===a?void 0:a.find(e=>(null==e?void 0:e.toLowerCase())==="Unauthenticated"))return callApi(s||c,t,n);if(e)return e}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(d=null==e?void 0:e.response)||void 0===d?void 0:d.statusText}),callApi(s||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===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null}),callApiWithAuth=(e,t,n,o)=>(0,a.a)(void 0,void 0,void 0,function*(){try{let a=r.c.parse(o||""),l=a[m.B],d=l||(0,i.ej)(m.B);if(d&&d.length){let a=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({Authorization:"Bearer "+d},null==n?void 0:n.headers)})).then(e=>e.json());if(a)return a}}catch(e){}return null}),callApiWithAdminAuth=(e,t,n,o)=>(0,a.a)(void 0,void 0,void 0,function*(){try{let a=r.c.parse(o||""),l=a[m.b],d=l||(0,i.ej)(m.b);if(d&&d.length){let a=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(n)),{headers:Object.assign({Authorization:"Bearer "+d},null==n?void 0:n.headers)})).then(e=>e.json());if(a)return a}}catch(e){}return null});function updateQueryStringParameter(e,t,n){let a=RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(a)?e.replace(a,"$1"+t+"="+n+"$2"):e+r+t+"="+n}let getUrlToSSOWithReturnUrl=(e,t)=>{let{publicSSO:n}=b.env,a=e||window.location.href;return t&&Object.keys(t).map(e=>{updateQueryStringParameter(a,e,t[e])}),updateQueryStringParameter(a,"source","communities"),n?`${n}?returnUrl=${encodeURIComponent(a.toString())}`:a},getUrlToSignUp=(e,t,n="/community")=>{let a=e||("undefined"!=typeof window?window.location.href:"/"),r="undefined"!=typeof window?window.location.origin:"";!r&&e&&(e.startsWith("http://")||e.startsWith("https://"))&&(r=e.split("/").slice(0,3).join("/"));let i=`${r}${n}/on-boarding?return=${encodeURIComponent(a)}`;return getUrlToSSOWithReturnUrl(i,t)},slugifiedNameWithId=(e,t,n,a)=>n&&t?`${n}-${t}`:`${l()(e||"",{lower:!0,locale:a||v})}-${t}`,getCareDoctorUrl=({name:e,id:t,locale:n})=>{var a;return`/care/${null===(a=m.L[n||"vi-VN"])||void 0===a?void 0:a.DOCTOR}/${slugifiedNameWithId(e,t)}`},getCareHospitalUrl=({name:e,id:t,slug:n,locale:a})=>{var r;return`/care/${null===(r=m.L[a||"vi-VN"])||void 0===r?void 0:r.HOSPITAL}/${slugifiedNameWithId(e,t,n)}`}},B3gr:function(e,t,n){n.d(t,{Z:function(){return d},a:function(){return getCareSearchUrl},b:function(){return hsbToRgb},c:function(){return formatSpotlightsList},d:function(){return checkAvailableSpotlight},e:function(){return formatHealthTool},f:function(){return formatCategory},g:function(){return getTogetherUserPostsApiPath},h:function(){return hexToRgb},i:function(){return formatVideoItem},j:function(){return formatSpecialties},k:function(){return formatHospital},r:function(){return rgbToHsb}});var a=n("3XLu"),r=n("Dphd"),i=n("gY0P"),o=n.n(i),l=n("xrdX");let d={adBlock:48,headerContainerHome:99,headerContainerPopup:300,headerContainerPopupSUbLevel:400,menuCategoryPopupWrapper:200,menuCategoryPopupContainer:210,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:300,homeSearchComponent:200},formatSponsor=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},formatReviewedCategory=e=>({postTitle:e.post_title,permalink:e.permalink}),formatFaqsCategory=e=>({title:e.title,content:e.content}),formatCategory=e=>{var t,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?formatSponsor(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map(e=>formatCategory(e)))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(n=e.cat_parent)||void 0===n?void 0:n.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?formatReviewedCategory(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map(e=>formatFaqsCategory(e)):null,customizedUrl:e.customized_url||null}:{}},formatHealthTool=e=>{var t,n;if(!e)return{};let a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),r=null===(n=e.link)||void 0===n?void 0:n.startsWith("/fil/"),i=e.link?e.link.startsWith("http")?e.link:a?e.link:r?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title,isMobileAppTool:!!(null==e?void 0:e.is_mobile_app_tool)}},formatSpecialties=e=>{var t,n,a,r,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(n=null==e?void 0:e.object_id)||void 0===n?void 0:n.slug)||"",subtitle:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",name:(null===(r=e.object_id)||void 0===r?void 0:r.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},formatHospital=e=>{var t,n,a,r,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",logo:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.logo)||"",description:(null===(r=e.object_id)||void 0===r?void 0:r.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},getTogetherUserPostsApiPath=(e,t,n,a)=>(n||"https://together.hellohealthgroup.com/")+"api/v1/"+o()("profile/posts?website_url={websiteUrl}",Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${l.v[e]}`})),getCareSearchUrl=({type:e,specialtySlug:t,locale:n})=>{var r,i;return`${null===(r=a.L[n])||void 0===r?void 0:r.ALL}/${(null===(i=a.L[n])||void 0===i?void 0:i[e])||"doctor"}/${null!=t?t:""}`},formatSpotlightsList=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date,buttonDisplay:e.button_display||null}:{},checkAvailableSpotlight=e=>{let t=new Date;if(null==e?void 0:e.startDate){let n=new Date(e.startDate);if(t.getTime()n.getTime())return!1}return!0},formatVideoItem=e=>void 0!==e&&e?{id:e.ID||"",videoId:e.video_id||"",url:e.video_url||"",title:e.video_title||"",type:e.type||r.V.VIDEO,totalView:e.total_view||0,description:e.description||"",createTime:e.create_time||"",duration:e.duration||0,image:e.image||"",imageMedium:e.image_medium||"",imageThumbnail:e.image_thumbnail||"",active:!1,articleLink:e.article_link||""}:null;function hexToRgb(e,t=!1){let n=!1,a=e.slice(e.startsWith("#")?1:0);3===a.length?a=[...a].map(e=>e+e).join(""):8===a.length&&(n=!0),a=parseInt(a,16);let r={r:a>>>(n?24:16),g:(a&(n?16711680:65280))>>>(n?16:8),b:(a&(n?65280:255))>>>(n?8:0)};return t?r:"rgb"+(n?"a":"")+"("+r.r+", "+r.g+", "+r.b+(n?`, ${255&a}`:"")+")"}function rgbToHsb(e,t,n){e/=255,t/=255,n/=255;let a=Math.max(e,t,n),r=a-Math.min(e,t,n),i=0===r?0:r&&a===e?(t-n)/r:a===t?2+(n-e)/r:4+(e-t)/r;return[60*(i<0?i+6:i),a&&r/a*100,100*a]}function hsbToRgb(e,t,n){t/=100,n/=100;let k=t=>(t+e/60)%6,f=e=>n*(1-t*Math.max(0,Math.min(k(e),4-k(e),1)));return[255*f(5),255*f(3),255*f(1)]}},"4tGp":function(e,t,n){n.d(t,{O5:function(){return Immunization},Ue:function(){return VaccinationFilter},gK:function(){return VaccineDetailPopup},h0:function(){return formatBabyVaccineDetail},ot:function(){return RecordsByAgeGroup},u:function(){return formatBabyVaccinationDetail}});var a=n("usZY"),r=n("q1tI"),i=n("OAL+"),o=n("SPK5"),l=n("RGvF"),d=n("C/sX"),c=n("Eso5"),s=n("aDCK"),u=n("RZSM"),p=n("7Ci/"),m=n("rlLN"),g=n("vaps"),h=n("NEaA"),b=n("KeOA"),x=n("MQ5V"),_=n("Dphd"),v=n("g2vb"),w=n("srUE"),y=n("5bY3"),E=n("iBNF"),C=n("FQi+"),I=n("Iblh"),B=n("pvoY"),T=n("rBCA"),A=n("es6D"),L=n("X3GY"),S=n("f8uB"),P=n("r6r2"),O=n("GSNM"),M=n("iZ8j"),N=n("D0kt"),j=n("/M6t"),D=n("cChf"),z=n("Wgwc"),R=n.n(z),F=n("+QaA"),$=n.n(F),U=n("wvgE"),V=n("6Dmq");n("xXM3");let H=T.Z.div` position: relative; padding: 16px; min-height: 110px; background: ${E.r.colors.neutral50}; width: 100%; border-right: 2px solid; border-radius: 8px; &[data-template='modal'] { border: none; } &[data-status='next'], &[data-status='current'] { border-color: ${E.r.colors.primaryBase}; &[data-template='modal'] { background: ${E.r.colors.primary50}; } } &[data-status='vaccinated'] { border-color: ${E.r.colors.green600}; &[data-template='modal'] { background: ${E.r.colors.green50}; } } &[data-status='missed'] { border-color: ${E.r.colors.yellow800}; &[data-template='modal'] { background: ${E.r.colors.yellow50}; } } &[data-status='upcoming'] { border-color: ${E.r.colors.neutral300}; } ${B.M.mbDown} { padding: 12px; gap: 8px; } `,W=T.Z.div` display: flex; flex-direction: row; align-items: center; gap: 4px; width: 100%; .dot { height: 5px; width: 5px; background-color: ${E.r.colors.gray300}; border-radius: 50%; display: flex; align-self: center; } `,_VaccineStatus=({checked:e,onToggle:t})=>{let{t:n}=(0,C.u)();return r.createElement(A.S,{checked:e,onChange:e=>{null==t||t(e.currentTarget.checked)},label:n("babyVaccine.vaccineCard.injected"),size:"xs",color:"green.6",styles:{root:{"*":{cursor:"pointer"}},input:{display:"none"}}})},_CardIcon=({status:e,isCurrent:t})=>{switch(e){case"vaccinated":return r.createElement(L.Z,null);case"missed":return r.createElement(S.Z,null);case"all":return null;case"next":return r.createElement(P.Z,null);default:return t?r.createElement(P.Z,null):r.createElement(O.Z,null)}},K={vaccinated:{backgroundColor:v.t.green[0],borderColor:v.t.green[2],color:v.t.green[7]},missed:{backgroundColor:v.t.yellow[0],borderColor:v.t.yellow[2],color:v.t.yellow[9]},upcoming:{backgroundColor:v.t.neutral[0],borderColor:v.t.neutral[1],color:v.t.gray[8]},next:{backgroundColor:v.t.blue[0],borderColor:"transparent",color:v.t.blue[6]},all:{backgroundColor:v.t.blue[0],borderColor:"transparent",color:v.t.blue[6]}};function formatBabyVaccinationDetail(e){var t,n;return e?{profile:{id:null==(n=e.profile)?void 0:n.id,gender:(null==n?void 0:n.gender)?"male":"female",name:null==n?void 0:n.name,dob:null==n?void 0:n.dob,isNew:null==n?void 0:n.new,parentId:null==n?void 0:n.parent_id},vaccineSchedules:null===(t=null==e?void 0:e.vaccine_schedules)||void 0===t?void 0:t.map(formatBabyVaccinationSchedule),notifications:e.notifications,welcome:e.welcome,additionalQuestions:e.additional_questions||[]}:{}}function formatBabyVaccinationSchedule(e){return e?{id:e.id,title:e.title,description:e.description,readMoreUrl:e.read_more_url,iconBoy:e.icon_boy,iconGirl:e.icon_girl,timelines:e.timelines.map(formatBabyVaccinationTimeline)}:{}}function formatBabyVaccinationTimeline(e){return e?{id:e.id,name:e.name,shortName:e.short_name,fromDay:e.from_day,toDay:e.to_day,records:e.records.map(formatBabyVaccinationRecord),age:Number(e.number_age),recurrence:e.unit_age}:{}}function formatBabyVaccinationRecord(e){return e?{id:e.id,vaccineId:e.vaccine_id,vaccineName:e.vaccine_name,vaccineAntigen:e.vaccine_antigen,vaccineOptional:e.vaccine_optional,givenOn:e.given_on,doseNumber:e.dose_number,totalDoses:e.total_doses,status:e.status,vaccineStatus:e.vaccine_status}:{}}function formatBabyVaccineDetail(e){return e?{id:e.id||0,name:e.name||"",antigen:e.antigen||"",brandImg:e.brand_img||"",benefits:e.benefits,link:e.link,contraindications:e.contraindications,optional:e.optional,detail:e.detail,records:e.records.map(formatBabyVaccinationRecord)}:{}}let generateTimeLineName=(e,t)=>{switch(e.recurrence){case"year":return t("childCard.age.yearNoMonth",{year:e.age});case"month":return t("childCard.age.months",{month:e.age});case"week":if(0===e.age)return t("babyVaccine.timeline.atBirth");return t("childCard.age.week",{weeks:e.age});default:return""}},_Badge=e=>{var t,{status:n,sx:i,content:o=""}=e,d=(0,a._)(e,["status","sx","content"]);return r.createElement(l.C,Object.assign({leftSection:"all"!==n&&r.createElement(x.c,{ratio:1,w:18},r.createElement(_CardIcon,{status:n})),px:8,py:3,radius:4,sx:Object.assign(Object.assign({height:"initial",backgroundColor:v.t.blue[0],borderColor:v.t.blue[2],color:v.t.blue[7]},K[n]),i)},d),r.createElement(w.T,{size:"n1",span:!0,tt:"capitalize",color:String(null===(t=K[n])||void 0===t?void 0:t.color)},o||n))};function withVaccineCard(e){let t=e.displayName||e.name||"Component",ComponentWithVaccineCard=t=>{var{vaccineRecord:n,isCurrent:i,onToggle:o}=t,l=(0,a._)(t,["vaccineRecord","isCurrent","onToggle"]);return r.createElement(e,Object.assign({},{vaccineRecord:n,isCurrent:i,onToggle:o},l))};return ComponentWithVaccineCard.displayName=`withVaccineCard(${t})`,ComponentWithVaccineCard}let Y=r.memo(withVaccineCard(e=>{var{vaccineRecord:t,onToggle:n,onTitleClick:d}=e,c=(0,a._)(e,["vaccineRecord","onToggle","onTitleClick"]);let{t:s}=(0,C.u)(),{status:u,vaccineOptional:p,vaccineName:m,doseNumber:g,totalDoses:h,givenOn:b,vaccineAntigen:x}=t;return r.createElement(H,Object.assign({},c,{"data-status":u}),r.createElement(i.K,{spacing:12},r.createElement(o.k,{align:"center",justify:"space-between"},r.createElement(_Badge,{status:u,content:s(`babyVaccine.status.${u}`)}),r.createElement(_VaccineStatus,{checked:"vaccinated"===u,onToggle:e=>n(e,t)})),r.createElement(i.K,{spacing:4},r.createElement("div",{onClick:()=>d(t)},r.createElement(w.T,{size:"s3",color:E.r.colors.gray800,weight:"semiBold",sx:{cursor:"pointer"}},m)),r.createElement(o.k,{gap:4,align:"center"},x&&r.createElement(w.T,{size:"n1",color:v.t.gray[6]},s("babyVaccine.timeline.antigen"),"\xa0",r.createElement(w.T,{size:"s5",weight:"semiBold",as:"span"},x)),r.createElement(l.C,{px:8,py:1,radius:"xl",sx:{height:"initial",border:`1px solid ${p?E.r.colors.neutral100:"transparent"}`},bg:p?E.r.colors.white:E.r.colors.red50},r.createElement(w.T,{size:"n1",color:p?E.r.colors.gray800:E.r.colors.red800,tt:"capitalize"},s(p?"babyVaccine.vaccineInfo.optional":"babyVaccine.vaccineInfo.mandatory")))),r.createElement(W,null,r.createElement(w.T,{size:"n1",color:E.r.colors.gray600},r.createElement("span",{dangerouslySetInnerHTML:{__html:s("babyVaccine.vaccineInfo.dose",{ordinal:`${g}`,total:h})}})),r.createElement("span",{className:"dot"}),r.createElement(w.T,{size:"n1",color:E.r.colors.gray600},s("vaccinated"===u?"babyVaccine.vaccineInfo.injectedDate":"babyVaccine.vaccineInfo.suggested",{date:b}))))))})),G=r.memo(withVaccineCard(e=>{var{vaccineRecord:t,isCurrent:n,onToggle:d,showTopDetail:c=!0}=e,s=(0,a._)(e,["vaccineRecord","isCurrent","onToggle","showTopDetail"]);let{t:u}=(0,C.u)(),{status:p,vaccineOptional:m,vaccineName:g,doseNumber:h,totalDoses:b,vaccineAntigen:x}=t;return r.createElement(H,Object.assign({},s,{"data-template":"modal","data-status":n?"next":p}),r.createElement(i.K,{spacing:12},c&&r.createElement(o.k,{align:"center",justify:"space-between"},r.createElement(_Badge,{status:p,content:u(`babyVaccine.status.${p}`)}),r.createElement(_VaccineStatus,{checked:"vaccinated"===p,onToggle:e=>d(e,t)})),r.createElement(i.K,{spacing:4},r.createElement(y.B,{variant:"ghost",styles:{root:{padding:0,height:"initial","&:hover:hover":{backgroundColor:"transparent"}},inner:{padding:0,justifyContent:"left"}}},r.createElement(w.T,{size:"s3",color:E.r.colors.gray800,weight:"semiBold"},g)),r.createElement(o.k,{gap:4,align:"center"},x&&r.createElement(w.T,{size:"n1",color:v.t.gray[6]},u("babyVaccine.timeline.antigen"),"\xa0",r.createElement(w.T,{size:"s5",weight:"semiBold",as:"span"},x)),r.createElement(l.C,{px:8,py:1,radius:"xl",sx:{height:"initial",border:`1px solid ${m?E.r.colors.neutral100:"transparent"}`},bg:m?E.r.colors.white:E.r.colors.red50},r.createElement(w.T,{size:"n1",color:m?E.r.colors.gray800:E.r.colors.red800,tt:"capitalize"},u(m?"babyVaccine.vaccineInfo.optional":"babyVaccine.vaccineInfo.mandatory")))),r.createElement(w.T,{size:"n1",color:E.r.colors.gray600},r.createElement("span",{dangerouslySetInnerHTML:{__html:u("babyVaccine.vaccineInfo.dose",{ordinal:`${h}`,total:b})}})))))})),Z=r.memo(withVaccineCard(e=>{var{vaccineDetail:t,isCurrent:n}=e,d=(0,a._)(e,["vaccineDetail","isCurrent"]);let{t:c}=(0,C.u)(),{name:s,antigen:u,optional:p}=t;return r.createElement(H,Object.assign({},d,{"data-template":"modal","data-status":n?"next":status}),r.createElement(i.K,{spacing:12},r.createElement(i.K,{spacing:4},r.createElement(y.B,{variant:"ghost",styles:{root:{padding:0,height:"initial","&:hover:hover":{backgroundColor:"transparent"}},inner:{padding:0,justifyContent:"left"}}},r.createElement(w.T,{size:"s3",color:E.r.colors.gray800,weight:"semiBold"},s)),r.createElement(o.k,{gap:4,align:"center"},u&&r.createElement(w.T,{size:"n1",color:v.t.gray[6]},c("babyVaccine.timeline.antigen"),"\xa0",r.createElement(w.T,{size:"s5",weight:"semiBold",as:"span"},u)),r.createElement(l.C,{px:8,py:1,radius:"xl",sx:{height:"initial",border:`1px solid ${p?E.r.colors.neutral100:"transparent"}`},bg:p?E.r.colors.white:E.r.colors.red50},r.createElement(w.T,{size:"n1",color:p?E.r.colors.gray800:E.r.colors.red800,tt:"capitalize"},c(p?"babyVaccine.vaccineInfo.optional":"babyVaccine.vaccineInfo.mandatory")))))))})),q=T.Z.div` flex-shrink: 1; display: flex; align-items: center; width: 100%; height: 42px; .line { flex-grow: 1; height: 1px; background: ${E.r.colors.neutral200}; } .dot { height: 8px; width: 8px; background-color: ${E.r.colors.neutral200}; border-radius: 50%; display: flex; align-self: center; } &[data-is-current='true'] { .line { background-color: ${E.r.colors.primaryBase}; } .dot { background-color: ${E.r.colors.primaryBase}; } } ${B.M.mbDown} { height: 22px; } `,_Record=e=>{var{records:t,isCurrent:n,onTitleClick:o,onToggle:l}=e,d=(0,a._)(e,["records","isCurrent","onTitleClick","onToggle"]);return r.createElement(i.K,Object.assign({spacing:8},d),t.map((e,t)=>r.createElement(Y,{key:t,vaccineRecord:e,isCurrent:n&&0===t,onTitleClick:o,onToggle:l})))},_ScheduleTimeline=e=>{var t,n,{timeline:i,onToggle:o,onTitleClick:l,isCurrent:c=!1}=e,s=(0,a._)(e,["timeline","onToggle","onTitleClick","isCurrent"]);let{t:u}=(0,C.u)(),{isMobile:p}=(0,N.u)(),m=(0,r.useMemo)(()=>{var e;return c||(null===(e=null==i?void 0:i.records)||void 0===e?void 0:e.some(e=>"next"===e.status))},[i,c]);return(null===(t=null==i?void 0:i.records)||void 0===t?void 0:t.length)===0?null:r.createElement("div",Object.assign({},s),r.createElement(d.r,{key:i.id,gutter:16,py:16},r.createElement(d.r.Col,{span:"content"},r.createElement(w.T,{size:"s4",color:m?E.r.colors.primaryBase:E.r.colors.gray800,weight:"semiBold",sx:{height:42,width:100,display:"flex",alignItems:"center",[B.M.mbDown]:{height:22}}},generateTimeLineName(i,u))),r.createElement(d.r.Col,{span:"auto"},r.createElement(q,{"data-is-current":m},r.createElement("span",{className:"dot"}),r.createElement("div",{className:"line"}),r.createElement(w.T,{size:"n1",ml:16},r.createElement("span",{dangerouslySetInnerHTML:{__html:u("babyVaccine.timeline.total",{number:`${null===(n=null==i?void 0:i.records)||void 0===n?void 0:n.length}`})}}))),!p&&r.createElement(_Record,{records:i.records,isCurrent:m,onTitleClick:l,onToggle:o})),p&&r.createElement(d.r.Col,{span:12},r.createElement(_Record,{records:i.records,isCurrent:m,onTitleClick:l,onToggle:o}))))},Q=T.Z.div` position: relative; display: flex; flex-direction: row; justify-content: space-between; border-radius: 8px; padding: 14px 24px; gap: 16px; background: ${E.r.colors.teal50}; &[data-gender='girl'] { background: ${E.r.colors.pink50}; } a { text-decoration: none; } img { object-fit: contain; } ${B.M.mbDown} { padding: 12px; gap: 12px; } `,TimelineBanner=e=>{var{content:t,url:n,icon:l,gender:d,name:c}=e,s=(0,a._)(e,["content","url","icon","gender","name"]);let{t:u}=(0,C.u)(),{isMobile:p}=(0,N.u)();return r.createElement(Q,Object.assign({"data-gender":d},s),r.createElement(i.K,{spacing:8},r.createElement(w.T,{size:"p3",color:E.r.colors.gray800},t.replace(/{babyName}/g,c)),n&&r.createElement("a",{className:"read-more",href:n,target:"_blank",rel:"noreferrer"},r.createElement(o.k,{align:"center",gap:6},r.createElement(w.T,{size:"s4",color:E.r.colors.primaryBase,weight:"semiBold"},u("articlePage.readMore")),r.createElement(M.Z,{size:20,color:E.r.colors.primaryBase})))),l&&r.createElement(x.c,{ratio:1,w:p?56:80,sx:{flexShrink:0}},r.createElement("img",{alt:"health-tool-icon",src:l,style:{objectFit:"contain"},loading:"lazy"})))},RecordsByAgeGroup=e=>{var{schedules:t,age:n,onToggle:i,onTitleClick:o,gender:l=_.G.Boy,hideBanner:d=!1,name:c}=e,s=(0,a._)(e,["schedules","age","onToggle","onTitleClick","gender","hideBanner","name"]);let getIsCurrent=e=>"month"===e.recurrence?12*n.year+n.month===e.age:n[e.recurrence]===e.age,u=(0,r.useMemo)(()=>t.map(e=>e.timelines.some(e=>d||0===e.records.length)),[t,d]);return t&&0!==t.length?r.createElement("div",Object.assign({},s),t.map((e,t)=>{var n;return r.createElement(r.Fragment,null,(null===(n=e.timelines)||void 0===n?void 0:n.length)>0&&r.createElement("div",{key:e.id},e.title&&!u[t]&&r.createElement(TimelineBanner,{content:e.title,gender:l,icon:l===_.G.Boy?e.iconBoy:e.iconGirl,url:e.readMoreUrl,name:c}),e.timelines.map(e=>r.createElement(_ScheduleTimeline,{key:e.id,timeline:e,onTitleClick:o,onToggle:i,isCurrent:getIsCurrent(e)}))))})):null},noop=()=>{},_ConfirmModal=e=>{var{onSubmit:t,date:n}=e,l=(0,a._)(e,["onSubmit","date"]);let{t:d}=(0,C.u)();return r.createElement(j.M,Object.assign({withinPortal:!0,zIndex:500,styles:{body:{padding:32}}},l),r.createElement(c.x,{sx:{position:"absolute",top:15,right:20},onClick:l.onClose},r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M5.99 4.99a1 1 0 0 0-.697 1.717L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.414 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-.717-.302",fill:"#595959"}))),r.createElement(i.K,{spacing:8,align:"center",ta:"center"},r.createElement("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},r.createElement("path",{d:"M40 73.333c18.41 0 33.333-14.923 33.333-33.333S58.41 6.667 40 6.667 6.667 21.59 6.667 40 21.59 73.333 40 73.333",fill:"#FFB521"}),r.createElement("path",{d:"M39.325 48.609a2.48 2.48 0 0 1-2.48-2.48V29.147a2.48 2.48 0 1 1 4.959 0V46.13a2.48 2.48 0 0 1-2.48 2.479m.001 8.058a2.658 2.658 0 1 0 0-5.316 2.658 2.658 0 0 0 0 5.316",fill:"#fff"})),r.createElement(V.H,{tag:"h4"},d("babyVaccine.popup.confirm.title")),r.createElement(w.T,{size:"p2",color:"gray.6"},r.createElement("span",{dangerouslySetInnerHTML:{__html:d("babyVaccine.popup.confirm.description",{date:`${R()(n).format("DD/MM/YYYY")}`})}}))),r.createElement(o.k,{gap:12,mt:32,w:"100%"},r.createElement(y.B,{variant:"tertiary",type:"button",size:"lg",w:"100%",onClick:l.onClose},d("babyVaccine.popup.confirm.close")),r.createElement(y.B,{type:"button",size:"lg",w:"100%",onClick:()=>t()},d("babyVaccine.popup.confirm.ok"))))},J=T.Z.div` position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; ${B.M.mbDown} { padding: 0; } `,X=T.Z.div` border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; &[data-id='header'] { width: 12px; height: 12px; cursor: unset; } &[data-status='vaccinated'] { border: 1px solid ${E.r.colors.green600}; background: ${E.r.colors.green600}; .inner-text { color: ${E.r.colors.white}; } } &[data-status='missed'] { border: 1px solid ${E.r.colors.yellow800}; background: ${E.r.colors.yellow800}; .inner-text { color: ${E.r.colors.white}; } } &[data-status='upcoming'] { background-color: ${v.t.neutral[0]}; border: 1px solid ${v.t.neutral[1]}; } &[data-status='next'] { background-color: ${v.t.blue[6]}; border: 1px solid ${v.t.blue[6]}; .inner-text { color: ${E.r.colors.white}; } } &[data-disabled='true'] { opacity: 50%; background-color: ${v.t.neutral[0]}; border: 1px solid ${v.t.neutral[1]}; cursor: not-allowed; .inner-text { color: ${v.t.neutral[9]}; } } `,Dose=e=>{var{status:t,idx:n,template:i,disabled:o,onClick:l}=e,d=(0,a._)(e,["status","idx","template","disabled","onClick"]);let c="default"===i&&o;return r.createElement(X,Object.assign({onClick:"default"!==i?l:noop,"data-status":t,"data-id":n||"header","data-disabled":c},d),r.createElement(w.T,{size:"s4",span:!0,className:"inner-text",weight:"semiBold",color:c?v.t.neutral[9]:v.t.gray[8]},n||""))};R().extend($());let _DefaultForm=e=>{var{autoInjected:t,record:n,onSubmit:l,doses:d=[],closeModal:c,birthday:u}=e,p=(0,a._)(e,["autoInjected","record","onSubmit","doses","closeModal","birthday"]);let{t:m}=(0,C.u)(),[g,{open:h,close:b}]=(0,I.q)(!1),x=(0,D.c)({initialValues:{injected:t||"vaccinated"===n.status,date:R()(n.givenOn,"DD/MM/YYYY").toDate()||new Date}}),onSubmit=e=>{if((!x.isTouched("date")||R()(e.date).isSame(R()(n.givenOn,"DD/MM/YYYY"),"d"))&&!g){h();return}l(n,e)},_=(0,r.useMemo)(()=>"vaccinated"!==n.status,[n.status]),v=(0,r.useMemo)(()=>x.values.injected?"vaccinated":n.status,[n.status,x.values.injected]);return r.createElement(r.Fragment,null,r.createElement(_ConfirmModal,{opened:g,onClose:b,onSubmit:()=>onSubmit(x.values),date:x.values.date}),r.createElement("form",Object.assign({onSubmit:x.onSubmit(onSubmit)},p),r.createElement(i.K,{spacing:20},r.createElement(G,{vaccineRecord:Object.assign(Object.assign({},n),{status:v}),onToggle:e=>x.setFieldValue("injected",e)}),r.createElement(U.D,Object.assign({label:r.createElement(w.T,{size:"s4",weight:"semiBold",color:E.r.colors.gray600},m("babyVaccine.popup.checkbox.suggestedDate")),disabled:"vaccinated"===n.status,excludeDate:e=>R()(e).isAfter(R()().add(7,"D"))||R()(e).isBefore(R()(u,"YYYY-MM-DD",!0),"D")},x.getInputProps("date"),{dropdownType:"modal",modalProps:{centered:!0,styles:{inner:{zIndex:1e3},overlay:{zIndex:1e3}}}})),d.length>0&&r.createElement(s.I.Wrapper,null,r.createElement(s.I.Label,null,r.createElement(w.T,{size:"s5",weight:"semiBold",color:E.r.colors.gray600},m("babyVaccine.popup.label.doses"))),r.createElement(o.k,{gap:4},d.map((e,t)=>r.createElement(Dose,{key:t,status:e.status,idx:t+1,onClick:noop,disabled:Number(n.doseNumber)!==Number(e.doseNumber),template:"default"})))),r.createElement(o.k,{gap:8,sx:{position:"absolute",bottom:24,left:16,right:16,width:"unset",[B.M.mbDown]:{flexDirection:"column-reverse",bottom:16}},className:"wrapper-action-btn"},r.createElement(y.B,{variant:"tertiary",size:"lg",type:"button",fullWidth:!0,onClick:c},m("actionPopover.leaveCommunity.cancel")),_&&r.createElement(y.B,{size:"lg",type:"submit",fullWidth:!0,disabled:!x.values.injected},m("babyVaccine.popup.button.submit"))))))},_Icon=({type:e})=>{switch(e){case"benefit":return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M11.629 1c2.939.003 5.858.488 8.64 1.436a1.386 1.386 0 0 1 .983 1.44c-.361 3.221-1.497 11.856-2.072 12.798-1.144 1.875-5.229 4.927-6.867 6.108a1.19 1.19 0 0 1-1.374 0c-1.637-1.18-5.718-4.233-6.862-6.108-.576-.942-1.711-9.576-2.072-12.797a1.386 1.386 0 0 1 .983-1.44A26.9 26.9 0 0 1 11.628 1",fill:"#45A4FF"}),r.createElement("path",{d:"M11.629 2.436c2.569.002 5.121.413 7.561 1.218.547.184.656.688.597 1.221-.306 2.73-1.268 10.051-1.757 10.85-1.023 1.677-4.82 4.464-6.032 5.329a.64.64 0 0 1-.746 0c-1.21-.865-5.003-3.652-6.027-5.329-.486-.799-1.449-8.12-1.755-10.85-.06-.532.05-1.037.596-1.22a24.2 24.2 0 0 1 7.563-1.219",fill:"#2D87F3"}),r.createElement("path",{d:"M12.015 8.182h-.781a1.13 1.13 0 0 0-1.13 1.13v.194a.244.244 0 0 1-.243.243h-.194a1.13 1.13 0 0 0-1.129 1.129v.78a1.13 1.13 0 0 0 1.13 1.13h.193a.244.244 0 0 1 .244.243v.194a1.13 1.13 0 0 0 1.129 1.13h.78a1.13 1.13 0 0 0 1.13-1.13v-.195a.244.244 0 0 1 .243-.243h.195a1.13 1.13 0 0 0 1.128-1.13v-.779a1.13 1.13 0 0 0-1.128-1.13h-.195a.244.244 0 0 1-.244-.242v-.194a1.13 1.13 0 0 0-1.129-1.13",fill:"#fff"}));case"definition":return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M1.342 23a.34.34 0 0 0 .243-.1l3.584-3.584a.343.343 0 0 0-.485-.486L1.1 22.415a.343.343 0 0 0 .242.585",fill:"#626D7C"}),r.createElement("path",{d:"M9.262 18.591h.002l9.142-9.14-3.853-3.856-9.213 9.21c1.134 1.152 3.922 3.786 3.922 3.786",fill:"#2D87F3"}),r.createElement("path",{d:"m3.817 17.964 2.218 2.219a1.12 1.12 0 0 0 1.58.054l1.647-1.646-3.853-3.856-1.647 1.647a1.12 1.12 0 0 0 .055 1.582",fill:"#BCDEFF"}),r.createElement("path",{d:"m21.322 4.3-1.62-1.62-3.43 3.43 1.62 1.62z",fill:"#2B62CD"}),r.createElement("path",{d:"M9.263 18.934a.343.343 0 0 0 .242-.586L5.65 14.494a.344.344 0 0 0-.484.485l3.854 3.854a.34.34 0 0 0 .243.101",fill:"#BCDEFF"}),r.createElement("path",{d:"M11.386 13.572a.54.54 0 0 0 .385-.16l.035-.037.036.036a.545.545 0 0 0 .77 0l.412-.412a.546.546 0 0 0 0-.77l-.036-.034.036-.036a.545.545 0 0 0 0-.77l-.412-.412a.545.545 0 0 0-.77 0l-.036.035-.036-.036a.546.546 0 0 0-.77 0l-.412.412a.545.545 0 0 0 0 .77l.036.037-.036.035a.545.545 0 0 0 0 .77l.412.412a.54.54 0 0 0 .386.16",fill:"#fff"}),r.createElement("path",{d:"m15.142 4.133 4.727 4.726a.746.746 0 1 1-1.055 1.055l-4.727-4.727a.746.746 0 1 1 1.055-1.054m4.605-2.665 2.785 2.784a.662.662 0 0 1-.936.937L18.81 2.404a.662.662 0 0 1 .936-.936",fill:"#BCDEFF"}));case"contraindications":return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M14.62 6.008v12.837a2.405 2.405 0 0 1-2.191 2.426 2.35 2.35 0 0 1-2.51-2.346V6.008z",fill:"#BCDEFF"}),r.createElement("path",{d:"M14.62 7.945v10.98a2.35 2.35 0 1 1-4.701 0V7.945z",fill:"#45A4FF"}),r.createElement("path",{d:"M11.785 10.052H9.92a.358.358 0 0 1 0-.717h1.866a.358.358 0 1 1 0 .717m-.818 1.748H9.919a.358.358 0 1 1 0-.716h1.05a.358.358 0 0 1 0 .717zm.817 1.75H9.92a.358.358 0 0 1 0-.717h1.866a.358.358 0 1 1 0 .717m-.818 1.749H9.919a.358.358 0 1 1 0-.717h1.05a.358.358 0 0 1 0 .717zm0 3.498H9.919a.358.358 0 1 1 0-.717h1.05a.358.358 0 0 1 0 .717zm.817-1.749H9.92a.358.358 0 0 1 0-.717h1.866a.358.358 0 1 1 0 .717",fill:"#2D87F3"}),r.createElement("path",{d:"M14.778 4H9.76a1.063 1.063 0 1 0 0 2.125h5.018a1.063 1.063 0 0 0 0-2.125",fill:"#E3F2FF"}),r.createElement("path",{d:"M12 1.339a10.661 10.661 0 1 0 0 21.322A10.661 10.661 0 0 0 12 1.34m-.492 1.674a8.97 8.97 0 0 1 5.957 1.838.377.377 0 0 1 .038.565L5.416 17.503a.377.377 0 0 1-.565-.038 8.998 8.998 0 0 1 6.657-14.452M12 21a8.96 8.96 0 0 1-5.355-1.766.377.377 0 0 1-.043-.57L18.665 6.603a.376.376 0 0 1 .569.043A9 9 0 0 1 12 21",fill:"#F44D2C"}));case"related_articles":return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M16.727 1.211 3.413 3.204a1.43 1.43 0 0 0-1.202 1.624L4.72 21.587c.117.78.844 1.318 1.625 1.201l13.314-1.992a1.43 1.43 0 0 0 1.202-1.625L18.352 2.413a1.43 1.43 0 0 0-1.625-1.202",fill:"#2D87F3"}),r.createElement("path",{d:"m3.224 3.232 13.692-2.049 2.608 17.431-13.691 2.05z",fill:"#fff"}),r.createElement("path",{d:"m10.786 5.379-.472.07a.69.69 0 0 0-.58.786l.017.117a.15.15 0 0 1-.125.17l-.117.017a.69.69 0 0 0-.581.785l.07.473a.69.69 0 0 0 .786.58L9.9 8.36a.15.15 0 0 1 .17.125l.017.117a.69.69 0 0 0 .785.58l.473-.07a.69.69 0 0 0 .58-.785l-.017-.118a.15.15 0 0 1 .125-.17l.118-.017a.69.69 0 0 0 .58-.785l-.07-.472a.69.69 0 0 0-.786-.58l-.118.018a.15.15 0 0 1-.169-.126l-.018-.118a.69.69 0 0 0-.785-.58m5.463 4.494-7.76 1.162a.267.267 0 1 0 .079.528l7.76-1.161a.267.267 0 1 0-.08-.529m.249 1.92L6.77 13.248a.267.267 0 1 0 .079.529l9.726-1.456a.267.267 0 1 0-.079-.528m-.493 2.03-8.984 1.344a.267.267 0 1 0 .079.529l8.984-1.345a.267.267 0 1 0-.079-.528m-.903 2.091-7.833 1.172a.267.267 0 1 0 .08.529l7.831-1.172a.267.267 0 0 0-.079-.529m1.933-.289-.69.103a.267.267 0 0 0 .079.529l.69-.104a.267.267 0 1 0-.08-.528",fill:"#91CAFF"}),r.createElement("path",{d:"m14.211 3.27-7.79 1.165a.96.96 0 0 1-1.09-.806l-.081-.545a.365.365 0 0 1 .307-.414l8.963-1.341a.365.365 0 0 1 .415.306l.081.545a.96.96 0 0 1-.806 1.09z",fill:"#1B3250"}));default:return null}},_Section=e=>{var{type:t,title:n,children:l}=e,d=(0,a._)(e,["type","title","children"]);return r.createElement("section",Object.assign({},d),r.createElement(i.K,{spacing:8},r.createElement(o.k,{gap:8},r.createElement(u.o,{ratio:1,w:24},r.createElement(_Icon,{type:t})),r.createElement(w.T,{size:"s2",weight:"semiBold"},n)),l))},_Detail=e=>{var{details:t}=e,n=(0,a._)(e,["details"]);let{t:o}=(0,C.u)();return r.createElement(p.W,Object.assign({p:0},n),r.createElement(i.K,{spacing:24},t.detail&&r.createElement(_Section,{type:"definition",title:o("babyVaccine.detail.definition")},r.createElement(w.T,{size:"p2"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t.detail}}))),t.benefits&&r.createElement(_Section,{type:"benefit",title:o("babyVaccine.detail.benifit")},r.createElement(w.T,{size:"p2"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t.benefits}}))),t.contraindications&&r.createElement(_Section,{type:"contraindications",title:o("babyVaccine.detail.contraindication")},r.createElement(w.T,{size:"p2"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t.contraindications}}))),t.link&&r.createElement(_Section,{type:"related_articles",title:o("babyVaccine.detail.relatedArticles")},r.createElement(w.T,{size:"p2"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t.link}})))))};R().extend($());let _ImmunizationForm=e=>{var{vaccineDetail:t,doses:n=[],onDoseClick:l}=e,d=(0,a._)(e,["vaccineDetail","doses","onDoseClick"]);let{t:c}=(0,C.u)();return r.createElement(i.K,Object.assign({spacing:20},d),r.createElement(Z,{vaccineDetail:Object.assign({},t),showTopDetail:!1}),n.length>0&&r.createElement(s.I.Wrapper,null,r.createElement(s.I.Label,null,r.createElement(w.T,{size:"s5",weight:"semiBold",color:E.r.colors.gray600},c("babyVaccine.popup.label.doses"))),r.createElement(o.k,{gap:4},n.map((e,t)=>r.createElement(Dose,{key:t,status:e.status,idx:t+1,onClick:()=>{l(e)},template:"immunization"})))))},VaccineDetailPopup=e=>{var{currentRecord:t,vaccineDetail:n,isDetail:i,onSubmit:l,template:d="default",shouldAutoInjected:c=!0,birthday:s,className:u}=e,h=(0,a._)(e,["currentRecord","vaccineDetail","isDetail","onSubmit","template","shouldAutoInjected","birthday","className"]);let{t:b}=(0,C.u)(),{isMobile:x}=(0,N.u)(),[_,v]=(0,r.useState)(),y=[{id:"1",name:b("babyVaccine.popup.tab.schedule")},{id:"2",name:b("babyVaccine.popup.tab.detail")}];(0,r.useEffect)(()=>{v(i?"2":"1")},[i]);let onSubmit=(e,t)=>(0,a.a)(void 0,void 0,void 0,function*(){yield null==l?void 0:l(e,t),"default"===d&&h.onClose()});return("default"!==d||t)&&("immunization"!==d||n)?r.createElement(j.M,Object.assign({},h,{title:r.createElement(w.T,{size:"s3",weight:"semiBold"},b("babyVaccine.popup.title")),withCloseButton:!0,size:500,styles:{content:{[B.M.mbUp]:{height:560}},body:{padding:0,[B.M.mbUp]:{height:"100%",position:"relative"}}},fullScreen:x,zIndex:400,className:u}),r.createElement(p.W,{fluid:!0,p:x?16:24},r.createElement(m.m,{value:_,onTabChange:v},r.createElement(o.k,{justify:"space-between"},r.createElement(m.m.List,{grow:!0},y.map(e=>r.createElement(m.m.Tab,{key:e.id,value:e.id},r.createElement(w.T,{size:"s3",weight:"semiBold",color:"inherit"},e.name))))),r.createElement(m.m.Panel,{value:"1",pt:20,className:"vaccine-form-tab"},n&&("default"===d?r.createElement(_DefaultForm,{autoInjected:c&&"vaccinated"!==t.status&&!i,record:t,onSubmit:onSubmit,doses:(null==n?void 0:n.records)||[],closeModal:h.onClose,birthday:s}):r.createElement(_ImmunizationForm,{vaccineDetail:n,doses:null==n?void 0:n.records,onDoseClick:e=>onSubmit(e)}))),r.createElement(m.m.Panel,{value:"2",pt:20,className:"vaccine-detail-tab"},r.createElement(g.x,{type:"auto"},r.createElement(_Detail,{details:n})))))):null},ee=r.memo(({numberOfDoses:e})=>{let{isMobile:t}=(0,N.u)(),{t:n}=(0,C.u)();return r.createElement(o.k,{px:{base:0,md:16}},!t&&r.createElement(w.T,{size:"s4",weight:"semiBold",sx:{flexGrow:1},color:E.r.colors.gray600},n("babyVaccine.immunization.vaccineName")),r.createElement(o.k,{gap:{base:12,md:24},wrap:"wrap"},r.createElement(o.k,{align:"center",gap:4},r.createElement(Dose,{status:"missed"}),r.createElement(w.T,{size:"p4"},n("babyVaccine.status.missed")," (",null==e?void 0:e.missed,")")),r.createElement(o.k,{align:"center",gap:4},r.createElement(Dose,{status:"upcoming"}),r.createElement(w.T,{size:"p4"},n("babyVaccine.status.upcoming")," (",null==e?void 0:e.upcoming,")")),r.createElement(o.k,{align:"center",gap:4},r.createElement(Dose,{status:"vaccinated"}),r.createElement(w.T,{size:"p4"},n("babyVaccine.status.vaccinated")," (",null==e?void 0:e.vaccinated,")")),r.createElement(o.k,{align:"center",gap:4},r.createElement(Dose,{status:"next"}),r.createElement(w.T,{size:"p4"},n("babyVaccine.status.next")," (",null==e?void 0:e.next,")"))))}),et=r.memo(()=>{let{t:e}=(0,C.u)();return r.createElement(o.k,{gap:14,bg:E.r.colors.neutral50,p:12,sx:{borderRadius:8},align:"start"},r.createElement(x.c,{ratio:1,w:24},r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m-1-8h2V7h-2z",fill:"#595959"}))),r.createElement(w.T,{size:"p3"},e("babyVaccine.immunization.warning")))}),Immunization=e=>{var{details:t,siteType:n,onClick:l}=e,d=(0,a._)(e,["details","siteType","onClick"]);let{t:c}=(0,C.u)(),s=(0,r.useMemo)(()=>{let e={vaccinated:0,missed:0,next:0,upcoming:0};return t.forEach(t=>{t.records.forEach(t=>{e[null==t?void 0:t.status]++})}),e},[t]);return r.createElement(J,Object.assign({"data-theme":n},d),r.createElement(et,null),r.createElement(i.K,{spacing:20,w:"100%"},r.createElement(ee,{numberOfDoses:s}),t&&t.map((e,t)=>r.createElement(r.Fragment,{key:`${t}${e.id}`},r.createElement(h.i,{h:1,color:E.r.colors.neutral100}),r.createElement(o.k,{align:"stretch",justify:"space-between",gap:{base:12,md:40},direction:{base:"column",lg:"row"}},r.createElement(i.K,{spacing:2},r.createElement(w.T,{size:"n1",color:e?E.r.colors.gray800:E.r.colors.red800},e.optional?c("babyVaccine.vaccineInfo.optional"):c("babyVaccine.vaccineInfo.mandatory")),r.createElement("div",{style:{cursor:"pointer"},onClick:()=>l(e,"immunization")},r.createElement(w.T,{size:"s4",color:E.r.colors.gray800,weight:"semiBold"},e.name||e.antigen))),r.createElement("div",{style:{flexShrink:0}},r.createElement(b.M,{cols:5,spacing:4,verticalSpacing:4,sx:{flexGrow:1,[B.M.mbDown]:{gridTemplateColumns:"repeat(auto-fill, 36px)"}}},e.records&&e.records.map((e,t)=>r.createElement(Dose,{key:t,status:e.status,idx:t+1,onClick:()=>l(e,"default")})))))))))},en=["all","missed","next","upcoming","vaccinated"],VaccinationFilter=e=>{var{status:t="all",onClick:n}=e,i=(0,a._)(e,["status","onClick"]);let{t:l}=(0,C.u)();return r.createElement("div",Object.assign({},i),r.createElement(o.k,{align:"center",gap:8,wrap:"wrap"},en.map(e=>r.createElement(_Badge,{key:e,px:12,py:6,radius:40,status:e,content:l(`babyVaccine.status.${e}`),sx:Object.assign({borderColor:v.t.neutral[1],backgroundColor:"white",color:v.t.gray[8],cursor:"pointer",transition:"all 300mc ease-in"},e===t?Object.assign({fontWeight:600},K[e]):{}),onClick:()=>n(e)}))))}},GZ4s:function(e,t){t.Z=".lead-modal{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;opacity:1;padding:10px;position:fixed;top:0;visibility:visible;white-space:normal!important;width:100%;z-index:99999}.lead-modal__wrapper{background-color:#fff;border-radius:6px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);max-width:450px;position:relative;width:100%}.lead-modal__content{-webkit-overflow-scrolling:touch;max-height:calc(100vh - 50px);overflow:auto;width:inherit}.lead-modal__header{padding:0}.lead-modal__image{border:none!important;box-shadow:none!important;display:block;margin:0 auto}.lead-modal-image-logo{margin-bottom:15px;margin-top:15px}.lead-modal-image-cover{border:none!important;border-top-left-radius:4px;box-shadow:none!important;padding:0;width:100%!important}.lead-modal__body[data-hidden=true]{display:none}.lead-modal__title{box-shadow:none;color:#2a4975;font-size:20px;font-stretch:normal;font-style:normal;font-weight:700;letter-spacing:-.4px;line-height:1.3;padding-bottom:0}.lead-modal__title.pink{color:#2661ad}.lead-modal__description{color:#2c87f3;font-size:13px;font-stretch:normal;font-style:normal;font-weight:400;letter-spacing:.14px;line-height:1.62;margin-top:10px}.lead-modal__description.pink{color:#3e3f58!important}.lead-modal__form-control-wrapper{display:flex;flex-direction:column;gap:8px}.lead-modal__form-control{width:100%}.lead-modal__checkbox-wrapper{align-items:center;display:flex;margin-top:15px}.lead-modal__checkbox-wrapper a{color:#2c87f3!important;text-decoration:none!important}.lead-modal__checkbox-wrapper a:visited{color:#2c87f3!important}.lead-modal__checkbox-wrapper.pink a,.lead-modal__checkbox-wrapper.pink a:visited{color:#e55c8a!important}.lead-modal__tnc-link{color:inherit;font-size:1em;font-stretch:normal;font-style:normal;letter-spacing:.14px;line-height:normal;position:relative;top:1px}.lead-modal__tnc-link a{color:#2c87f3!important;font-weight:700;text-decoration:none!important}.lead-modal__tnc-link a:visited{color:#2c87f3!important}.lead-modal__tnc-link.pink a,.lead-modal__tnc-link.pink a:visited{color:#e55c8a!important}.tnc-block{width:100%}.tnc-block~.tnc-block{margin-top:0}.tnc-block .mantine-Checkbox-error{font-size:.875rem;line-height:1.2}.lead-modal__checkbox{display:inline-block;font-size:20px;position:relative;z-index:1}.lead-modal__checkbox__input{display:block;font-size:1em!important;height:1em!important;margin:0!important;opacity:0;padding:0;position:relative;width:1em!important;z-index:1}.lead-modal__checkbox__control{color:#ddd;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform .2s;width:100%;z-index:-1}.lead-modal__checkbox__control:after,.lead-modal__checkbox__control:before{content:\"\";position:absolute}.lead-modal__checkbox__control:before{background-color:currentColor;border-radius:50%;height:120%;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s;width:120%;will-change:transform}.lead-modal__checkbox__control:after{background-color:#fff;border-radius:6px;box-shadow:inset 0 0 0 1px #ddd;height:100%;left:0;top:0;width:100%}.lead-modal__checkbox__control:focus:after{box-shadow:inset 0 0 0 1px #2c87f3}.lead-modal__checkbox__input:checked~.lead-modal__checkbox__control:after,.lead-modal__checkbox__input:indeterminate~.lead-modal__checkbox__control:after{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:18px;box-shadow:none}.lead-modal__checkbox__input:checked~.lead-modal__checkbox__control{color:#2c87f3}.lead-modal__checkbox__input:checked~.lead-modal__checkbox__control:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2.5 8 4 4 7-9'/%3E%3C/svg%3E\")}.lead-modal__checkbox__input:indeterminate~.lead-modal__checkbox__control{color:var(--custom-checkbox-color-disabled)}.lead-modal__checkbox__input:indeterminate~.lead-modal__checkbox__control:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 8h12'/%3E%3C/svg%3E\")}.lead-modal__checkbox__input:active~.lead-modal__checkbox__control{transform:scale(.9)}.lead-modal__checkbox__input:checked:active~.lead-modal__checkbox__control,.lead-modal__checkbox__input:indeterminate:active~.lead-modal__checkbox__control{transform:scale(1)}.lead-modal__checkbox__input:focus~.lead-modal__checkbox__control:before{opacity:.2;transform:translate(-50%,-50%) scale(1)}.lead-modal__checkbox__input.pink~.lead-modal__checkbox__control:after{border-radius:50%!important}.lead-modal__checkbox__input.pink:checked~.lead-modal__checkbox__control{color:#2661ad}.lead-modal__checkbox__input.pink:checked~.lead-modal__checkbox__control:after,.lead-modal__checkbox__input.pink:indeterminate~.lead-modal__checkbox__control:after{background-size:12px}.lead-modal__checkbox__label{color:#969696;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-stretch:normal;font-style:normal;letter-spacing:.14px;line-height:normal;margin-bottom:0!important;margin-left:11px}.lead-modal__btn{display:block;margin-top:15px;width:100%}.lead-modal__thank-you{align-items:center;display:flex;height:inherit;justify-content:center;min-height:400px;padding:0 15px;text-align:center}.lead-modal__thank-you h1{margin-top:10px}.lead-modal__thank-you p{margin-top:5px}.lead-modal__thank-you img{border:none!important;margin:0 auto!important;max-width:100%!important;width:auto!important}.lead-modal__thank-you.hidden{display:none}.modal__container{height:100vh;left:0;overflow-y:scroll;pointer-events:none;position:fixed;top:0;width:100vw;z-index:1000000000000}.modal__content{margin:auto 0;position:relative;width:80vw}#nprogress{pointer-events:none}#nprogress .bar{background:#223bdd;height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px #29d,0 0 5px #29d;display:block;height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}#nprogress .spinner{display:block;position:fixed;right:15px;top:15px;z-index:1031}#nprogress .spinner-icon{animation:nprogress-spinner .4s linear infinite;border-color:#29d transparent transparent #29d;border-radius:50%;border-style:solid;border-width:2px;box-sizing:border-box;height:18px;width:18px}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.lead-modal input:-webkit-autofill,.lead-modal input:-webkit-autofill:focus,.lead-modal input:-webkit-autofill:hover,.lead-modal select:-webkit-autofill,.lead-modal select:-webkit-autofill:focus,.lead-modal select:-webkit-autofill:hover,.lead-modal textarea:-webkit-autofill,.lead-modal textarea:-webkit-autofill:focus,.lead-modal textarea:-webkit-autofill:hover{-webkit-box-shadow:inset 0 0 0 1000px #fff!important}.lead-modal label.error{color:#fa140f;display:block;font-size:13px;line-height:1.65!important;margin-bottom:0;margin-left:0!important;width:100%}.le-text-align-center{text-align:center!important}.le-text-align-left{text-align:left!important}.le-text-align-right{text-align:right!important}.le-only-desktop{display:none!important}.le-only-mobile{display:block!important}.le-only-desktop a,.le-only-mobile a{text-decoration:none!important}@media screen and (min-width:992px){.le-newbuilder-InlineB,.le-newbuilder-LightBoxB{display:flex!important}}@media screen and (min-width:768px){.le-only-desktop{display:block!important}.le-only-mobile{display:none!important}.le-newbuilder-InlineB .lead-modal__body,.le-newbuilder-LightBoxB .lead-modal__body{position:relative;width:360px}.le-newbuilder-wrap-LightBoxB{max-width:none;width:auto}.le-newbuilder-wrap-InlineB{max-width:100%!important}.le-newbuilder-LightBoxB .le-only-desktop.lead-modal-image-cover{height:calc(100vh - 50px)}.lead-modal__form{height:100%;overflow:auto;position:absolute;width:100%}}.lead-modal__title{margin:7px 0}.lead-modal__description{margin:0}.lead-modal-image-cover,.lead-modal__wrapper{border-radius:0!important}.lead-modal__form{display:block!important;margin:0;padding:15px 15px 25px;position:static}.lead-modal__image+.lead-modal__image{margin-top:0}.lead-modal__thank-you{width:100%}.le-skin-a-desktop{align-items:center;display:flex;height:100%;left:0;position:fixed;top:0;z-index:99999}.le-joinbow-btn{background:#2c87f3;border:1px solid transparent!important;box-shadow:none!important;color:#fff;cursor:pointer!important;font-size:16px;outline:none!important;padding:12px 30px;text-align:center}.le-joinbow-btn:hover{border:1px solid #fff!important}.le-joinbow-btn-mobile{background:#2c87f3;border:none!important;box-shadow:none!important;color:#fff;font-size:14px;outline:none!important;padding:12px 30px;text-align:center}.le-newbuilder-close-svg{background:#005cfd;border-radius:50%;cursor:pointer!important;height:35px;width:35px}.le-mobile-btn{height:24px;width:24px}.le-newbuilder-close-button{background:transparent;border:none;box-shadow:none;cursor:pointer!important;padding:0;width:auto!important}.close-button-top-right{position:absolute;right:4px;top:4px}@media screen and (min-width:768px){.close-button-top-right{right:16px;top:16px}}.le-floating-desktop{bottom:40px;left:25px;position:fixed;z-index:9999}.le-floating-desktop-wrap{align-items:center;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background:#fff;border-radius:5px;box-shadow:0 0 20px 0 rgba(0,0,0,.4);display:flex;padding:0 30px 0 0}.le-floating-desktop-title{color:#2a4975;font-size:20px;font-weight:700;line-height:1.5}.le-floating-desktop-desc,.le-floating-desktop-title{font-stretch:normal;font-style:normal;letter-spacing:normal;max-width:530px}.le-floating-desktop-desc{color:#2699fb;font-size:13px;font-weight:400;line-height:1.65}.le-joinbow-floating-btn{background:#2c87f3;border:1px solid transparent!important;box-shadow:none!important;color:#fff;cursor:pointer!important;font-size:14px;font-weight:500;outline:none!important;padding:12px 40px;text-align:center}.le-floating-mobile{bottom:0;left:0;position:fixed;width:100%;z-index:9999}.le-floating-mobile-wrap{background:#fff;box-shadow:0 0 20px 0 rgba(0,0,0,.4);padding:10px 15px}.le-floating-mobile-title{color:#2a4975;font-size:18px;font-weight:600;line-height:1.5}.le-floating-mobile-desc,.le-floating-mobile-title{font-stretch:normal;font-style:normal;letter-spacing:normal}.le-floating-mobile-desc{color:#2699fb;font-size:12px;line-height:1.65}.le-tab-popup{bottom:15px;left:15px;max-width:150px;position:fixed}.le-center-tab-popup{left:50%;max-width:400px;position:fixed;top:50%;transform:translate(-50%,-50%);width:calc(100% - 40px);z-index:999999!important}.le-center-tab-popup img{max-width:100%!important}.le-checkbox-title{color:#2a4975;font-size:15px;font-stretch:normal;font-style:normal;font-weight:700;margin:13px 0!important}.lead-checkbox-container{align-items:center;cursor:pointer;display:flex;font-size:14px;line-height:1.65;margin:10px 0;position:relative}.lead-checkbox-checkmark{border:1px solid #d0d0d0;border-radius:4px;display:inline-block;flex:0 0 24px;height:24px;margin-right:8px;position:relative;vertical-align:middle}.lead-checkbox-container input{left:0;opacity:0;position:absolute;top:0}.lead-checkbox-checkmark:after{content:\"\";position:absolute}.lead-checkbox-container input:checked~.lead-checkbox-checkmark{background:#337eff;border:1px solid #337eff}.lead-checkbox-container input:checked~.lead-checkbox-checkmark:after{border:solid #fff;border-width:0 2px 2px 0;height:12px;left:8px;top:3px;transform:rotate(45deg);width:7px}.le-fullscreen-img{height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:0;width:100%}@media screen and (min-width:768px){.lead-fullscreen-desktop-close-btn{position:fixed;right:23px;top:27px}}.lead-modal.le-buider-inline{display:block;height:auto!important;padding:10px 0 20px;position:static}.lead-modal.le-buider-inline .lead-modal__wrapper{border:1px solid #ddd;box-shadow:none}.lead-modal.le-buider-inline .lead-modal__content{max-height:none!important}.lead-modal.le-buider-inline .lead-modal__content .lead-modal__header img{margin:0;-o-object-fit:fill;object-fit:fill}.le-thankyou-title{margin-bottom:8px}.le-thankyou-subtitle{margin:0}.le-buider-slider{animation:le-builder-slide .5s forwards;bottom:15px;height:auto;left:-200px;top:unset;width:420px}@media screen and (max-width:768px){.le-buider-fullscreen,.le-buider-slider{display:none!important}}.le-skin-mobile{margin-top:64px}.lead-modal-wrapper img,.lead-modal-wrapper video{max-width:100%}.lead-phone-otp-button[data-color=transparent][data-size=md]{color:#2d87f3;margin-top:8px;padding:9px 24px}.lead-phone-otp-button[data-color=transparent][data-size=md]:disabled{background:transparent!important;color:#2d87f3}.lead-phone-otp-form{padding:1rem}.lead-modal__form-control .PhoneInputCountry,.lead-modal__form-control .PhoneInputInput,.leadgen-control .PhoneInputCountry,.leadgen-control .PhoneInputInput{font-size:14px}.leadgen{--border-radius:8px;overflow:auto;padding:0}.leadgen::-webkit-scrollbar{height:6px;width:6px}.leadgen::-webkit-scrollbar-track{background-color:transparent}.leadgen::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4);border-radius:6px}.leadgen>*{box-sizing:border-box}.leadgen-inline .leadgen-wrapper{background-color:#f7f9fc}.leadgen-inline .leadgen-content{--spacing-y:24px;--spacing-x:24px}.leadgen-inline .leadgen-header{border-radius:0}.leadgen-inline .leadgen-header img,.leadgen-inline .leadgen-header video{margin:0!important}.leadgen-inline .leadgen-description,.leadgen-inline .leadgen-title{margin:0}.leadgen-lightbox{align-items:center;display:flex;height:100%;inset:0;justify-content:center;padding:15px;position:fixed;width:100%;z-index:401}.leadgen[data-popup-type=center_tab]{inset:0;position:fixed;z-index:999}.leadgen-wrapper{background-color:#fff;border-radius:8px;height:auto;margin-inline:auto;position:relative;width:100%}.leadgen-close_btn{align-items:center;background-color:#fff;border-radius:50%;bottom:100%;box-shadow:0 0 1px 0 rgba(0,0,0,.039),0 2px 8px 0 rgba(0,0,0,.039),0 10px 16px 0 rgba(0,0,0,.039);color:#595959;display:grid;font-size:20px;height:32px;justify-content:center;left:unset;margin-bottom:8px;position:absolute;right:0;top:unset;transition:all .3s linear;width:32px!important}.leadgen-close_btn:hover{color:rgba(89,89,89,.678)}.leadgen-content{--spacing-y:20px;--spacing-x:20px;outline:none!important}.leadgen-content::-webkit-scrollbar{height:6px;width:6px}.leadgen-content::-webkit-scrollbar-track{background-color:transparent}.leadgen-content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4);border-radius:6px}.leadgen-header{border-top-left-radius:var(--border-radius,8px);border-top-right-radius:var(--border-radius,8px);overflow:hidden;position:relative}.leadgen-header_only{border-bottom-left-radius:var(--border-radius,8px);border-bottom-right-radius:var(--border-radius,8px)}.leadgen-header:has(.leadgen-header_image_feature){position:relative}.leadgen-header:has(.leadgen-header_image_feature) .leadgen-header_image{position:unset}.leadgen-inner{border-bottom-left-radius:var(--border-radius,8px);border-bottom-right-radius:var(--border-radius,8px)}.leadgen-inner_thankyou{height:100%;padding-block:var(--spacing-x,32px)}.leadgen-btn{min-width:120px;padding-inline:calc(var(--spacing-y, 24px)*24/32)}.leadgen-btn>*{pointer-events:none}.leadgen-btn_empty_cancel{border-color:#d2d6dc}.leadgen-btn_action{margin:0;width:100%}.leadgen-form{padding:0}.leadgen-form_header{display:flex;flex-direction:column;gap:8px;padding-top:var(--spacing-y,20px)}.leadgen-form_body,.leadgen-form_header{padding-inline:var(--spacing-x,20px);padding-bottom:calc(var(--spacing-y, 20px)*12/32)}.leadgen-form_body{padding-top:calc(var(--spacing-y, 20px)*12/32)}.leadgen-form_inner{display:flex;flex-wrap:wrap;gap:12px}.leadgen-form_checkbox .mantine-CheckboxGroup-root>.mantine-InputWrapper-label,.leadgen-form_field>.mantine-InputWrapper-label,.leadgen-form_radio .mantine-RadioGroup-root>.mantine-InputWrapper-label{margin-bottom:8px;padding-bottom:1px;padding-top:1px}.leadgen-form_checkbox .mantine-InputWrapper-error,.leadgen-form_field .mantine-InputWrapper-error,.leadgen-form_radio .mantine-InputWrapper-error{color:#f44d2c!important;font-size:12px!important;letter-spacing:-.2px;line-height:1.5;margin-top:6px;padding-bottom:1px;padding-top:1px}.leadgen-form_field .leadgen-form_field_date{--input-max-width:100%}.leadgen-form_field .leadgen-form_field_date .input_date-input_container{background-color:#fff}.leadgen-form_field .leadgen-form_field_date .input_date-input{width:100%}.leadgen-form_footer{display:flex;gap:12px;justify-content:flex-end;padding-top:calc(var(--spacing-y, 20px)*12/32);padding-inline:var(--spacing-x,20px);padding-bottom:calc(var(--spacing-y, 20px)*24/32)}.leadgen-form_otp .mantine-InputWrapper-root .mantine-Text-root{margin-top:12px}.leadgen-empty{display:flex;flex-direction:column;height:100%}.leadgen-empty_body{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;padding-block:calc(var(--spacing-y, 20px)*12/32);padding-inline:var(--spacing-x,20px)}.leadgen-empty_wrapper{margin-inline:auto;max-width:504px;padding-block:var(--spacing-y,20px);text-align:center;width:100%}.leadgen-empty_image{height:160px;margin-bottom:8px;max-width:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;width:auto}.leadgen-empty_title{margin:0}.leadgen-empty_footer{display:flex;gap:12px;justify-content:flex-end;padding-top:calc(var(--spacing-y, 20px)*12/32);padding-inline:var(--spacing-x,20px);padding-bottom:calc(var(--spacing-y, 20px)*24/32)}@media screen and (min-width:768px){.leadgen-content{--spacing-y:32px;--spacing-x:32px}.leadgen-description,.leadgen-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}.leadgen-Fullscreen,.leadgen-Slider{align-items:center;display:flex;height:100%;inset:0;justify-content:center;padding:15px;position:fixed;width:100%;z-index:401}.leadgen-Fullscreen .leadgen-inner,.leadgen-Slider .leadgen-inner{border-radius:var(--border-radius,8px)}.leadgen-Slider{align-items:flex-end;justify-content:flex-start;overflow:hidden}.leadgen-Slider .leadgen-wrapper{animation:le-builder-slide .5s forwards;left:-200px;margin-inline:unset}.leadgen-Slider .leadgen-wrapper .leadgen-content{max-height:calc(90vh - 55px);overflow:auto}@keyframes le-builder-slide{to{left:0}}@media screen and (max-width:768px){.leadgen-Fullscreen,.leadgen-Slider{display:none}}.leadgen-Fullscreen,.leadgen-LightBoxA,.leadgen-Sidebar,.leadgen-Slider{overflow:hidden;padding-top:40px}.leadgen-Fullscreen .leadgen-wrapper,.leadgen-LightBoxA .leadgen-wrapper,.leadgen-Sidebar .leadgen-wrapper,.leadgen-Slider .leadgen-wrapper{display:flex;flex-direction:column;max-height:100%;max-width:min(92vw,408px)}.leadgen-Fullscreen .leadgen-content,.leadgen-Fullscreen .leadgen-form,.leadgen-Fullscreen .leadgen-form_container,.leadgen-Fullscreen .leadgen-form_wrapper,.leadgen-Fullscreen .leadgen-inner,.leadgen-LightBoxA .leadgen-content,.leadgen-LightBoxA .leadgen-form,.leadgen-LightBoxA .leadgen-form_container,.leadgen-LightBoxA .leadgen-form_wrapper,.leadgen-LightBoxA .leadgen-inner,.leadgen-Sidebar .leadgen-content,.leadgen-Sidebar .leadgen-form,.leadgen-Sidebar .leadgen-form_container,.leadgen-Sidebar .leadgen-form_wrapper,.leadgen-Sidebar .leadgen-inner,.leadgen-Slider .leadgen-content,.leadgen-Slider .leadgen-form,.leadgen-Slider .leadgen-form_container,.leadgen-Slider .leadgen-form_wrapper,.leadgen-Slider .leadgen-inner{display:flex;flex:1;flex-direction:column;min-height:0}.leadgen-Fullscreen .leadgen-form_scrollable,.leadgen-LightBoxA .leadgen-form_scrollable,.leadgen-Sidebar .leadgen-form_scrollable,.leadgen-Slider .leadgen-form_scrollable{flex:1;min-height:0;overflow:auto}.leadgen-Fullscreen .leadgen-form_scrollable::-webkit-scrollbar,.leadgen-LightBoxA .leadgen-form_scrollable::-webkit-scrollbar,.leadgen-Sidebar .leadgen-form_scrollable::-webkit-scrollbar,.leadgen-Slider .leadgen-form_scrollable::-webkit-scrollbar{height:6px;width:6px}.leadgen-Fullscreen .leadgen-form_scrollable::-webkit-scrollbar-track,.leadgen-LightBoxA .leadgen-form_scrollable::-webkit-scrollbar-track,.leadgen-Sidebar .leadgen-form_scrollable::-webkit-scrollbar-track,.leadgen-Slider .leadgen-form_scrollable::-webkit-scrollbar-track{background-color:transparent}.leadgen-Fullscreen .leadgen-form_scrollable::-webkit-scrollbar-thumb,.leadgen-LightBoxA .leadgen-form_scrollable::-webkit-scrollbar-thumb,.leadgen-Sidebar .leadgen-form_scrollable::-webkit-scrollbar-thumb,.leadgen-Slider .leadgen-form_scrollable::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4);border-radius:6px}.leadgen-drawer .drawer__handle{left:0;position:absolute;right:0;top:6px;z-index:1}.leadgen-drawer.drawer__content_full{border-radius:0;display:flex;flex-direction:column;overflow:visible}.leadgen-drawer.drawer__content_full .leadgen-close_btn{bottom:unset;right:8px;top:8px;z-index:2}.leadgen-drawer.drawer__content_full .leadgen-wrapper{max-height:100%}.leadgen-drawer.drawer__content_full .leadgen-header{border-radius:0}.leadgen-drawer.drawer__content_full .leadgen-inner{border-bottom-left-radius:0;border-bottom-right-radius:0}.leadgen-drawer.drawer__content_full .leadgen-content{height:100%;overflow:auto;width:100%}.leadgen-drawer.drawer__content_full .leadgen-content::-webkit-scrollbar{height:6px;width:6px}.leadgen-drawer.drawer__content_full .leadgen-content::-webkit-scrollbar-track{background-color:transparent}.leadgen-drawer.drawer__content_full .leadgen-content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4);border-radius:6px}@media screen and (min-width:320px) and (max-width:767px){.leadgen-inline{margin-inline:-16px}.leadgen-inline .leadgen-wrapper{border-radius:0}}@media screen and (min-width:768px){.leadgen-LightBoxB .leadgen-wrapper,.leadgen-inline .leadgen-wrapper{height:100%;max-height:min(100vh - 80px,540px);max-width:min(90vw,744px)}.leadgen-LightBoxB .leadgen-content,.leadgen-inline .leadgen-content{--spacing-x:24px;--spacing-y:24px;display:flex;height:100%}.leadgen-LightBoxB .leadgen-header,.leadgen-inline .leadgen-header{width:360px}.leadgen-LightBoxB .leadgen-inner,.leadgen-inline .leadgen-inner{border-bottom-left-radius:0;border-top-right-radius:var(--border-radius,8px);flex:1;min-width:0;overflow:hidden}.leadgen-LightBoxB .leadgen-form,.leadgen-inline .leadgen-form{height:100%}.leadgen-LightBoxB .leadgen-form_field,.leadgen-inline .leadgen-form_field{width:100%}.leadgen-inline .leadgen-wrapper{border:1px solid #e4e8ec;border-radius:var(--border-radius,8px);display:flex;flex-direction:column;overflow:hidden}.leadgen-inline .leadgen-content{flex:1;min-height:0}.leadgen-inline .leadgen-header{border-radius:6px}.leadgen-inline .leadgen-header .leadgen-header_image{padding-top:150%}.leadgen-inline .leadgen-inner_thankyou{min-height:unset}.leadgen-inline .leadgen-inner_thankyou>div>img{max-height:64px!important}.leadgen-inline .leadgen-inner_thankyou .le-thankyou-subtitle{margin:0}.leadgen-inline .leadgen-form_otp .otpContainer{gap:4px}.leadgen-inline .leadgen-form_otp .otpContainer .otpInput{min-width:40px;padding:8px 12px}.leadgen-inline .leadgen-btn_action{width:50%}.leadgen-InlineA .leadgen-wrapper{max-height:min(100vh - 80px,274px)}.leadgen-InlineA .leadgen-header{width:min(50%,350px)}.leadgen-InlineA .leadgen-header .leadgen-header_image{padding-top:128.6764705882%}.leadgen-InlineA:has(.leadgen-form_field) .leadgen-wrapper{max-height:min(100vh - 80px,482px)}.leadgen-InlineA:has(.leadgen-form_field) .leadgen-header{width:min(50%,320px)}.leadgen-InlineA:has(.leadgen-form_field) .leadgen-header .leadgen-header_image{padding-top:150%}.leadgen-InlineB .leadgen-wrapper{max-height:min(100vh - 80px,482px)}.leadgen-InlineB .leadgen-header{width:min(50%,320px)}.leadgen-InlineB .leadgen-header .leadgen-header_image{padding-top:150%}.leadgen-LightBoxB .leadgen-wrapper{max-width:min(90vw,744px)}.leadgen-LightBoxB .leadgen-wrapper:not(:has(.le-only-desktop)){max-width:min(90vw,384px)}.leadgen-LightBoxB .leadgen-header{border-bottom-left-radius:var(--border-radius,8px);border-top-right-radius:0}.leadgen-LightBoxB .leadgen-header:not(:has(.le-only-desktop)){display:none}.leadgen-LightBoxB .leadgen-inner .leadgen-btn_action{width:auto}}@media screen and (min-width:1200px){.leadgen-LightBoxB .leadgen-wrapper{max-height:min(100vh - 80px,600px);max-width:min(90vw,1128px)}.leadgen-LightBoxB .leadgen-wrapper:not(:has(.le-only-desktop)){max-width:min(90vw,774px)}.leadgen-LightBoxB .leadgen-header{width:400px}.leadgen-LightBoxB .leadgen-form_field{width:calc(50% - 6px)}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-wrapper{height:100%;max-height:min(100vh - 80px,540px);max-width:min(90vw,744px)}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-content{--spacing-x:24px;--spacing-y:24px;display:flex;height:100%}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-header{width:360px}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-inner{border-bottom-left-radius:0;border-top-right-radius:var(--border-radius,8px);flex:1;min-width:0;overflow:hidden}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-form{height:100%}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-form_field{width:100%}.leadgen-LightBoxB:has(.leadgen-wrapper_small) .leadgen-wrapper:not(:has(.le-only-desktop)){max-width:min(90vw,384px)}}"}}]);