1(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[3094,6840],{ppC9:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe-event",function(){return n("ua7O")}])},"7/Cf":function(e,t,n){"use strict";n.d(t,{dh:function(){return getHhgIdFromCookie},lT:function(){return getSubotCookieId},VV:function(){return getUserIdFromCookie},Us:function(){return getUserInfoFromCookie}});var o=n("iVi/"),i=n("p46w"),r=n.n(i),a=n("Q6jF"),l=n("9brV"),c=window.atob&&window.atob.bind(window)||function(e){let t=String(e).replace(/=+$/,"");if(t.length%4==1)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");let n="";for(let e=0,o=0,i,r=0;i=t.charAt(r++);~i&&(o=e%4?64*o+i:i,e++%4)&&(n+=String.fromCharCode(255&o>>(-2*e&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return n};let getUserIdFromCookie=e=>{let t=o.parse(e||""),n=t[l.ty],i=n||r().get(l.ty)||"";try{let e=i.split(".")[1],t=e.replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(c(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(n).sub}catch(e){return""}},getUserInfoFromCookie=e=>{let t=o.parse(e||""),n=t[l.ty],i=n||r().get(l.ty)||"";try{let e=i.split(".")[1],t=e.replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(c(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(n);return{email:o.email,id:o.sub}}catch(e){return{email:"",id:0}}},getHhgIdFromCookie=e=>{let t=o.parse(e||""),n=t["hhg-id"];return n||r().get("hhg-id")||""},getSubotCookieId=e=>{if(e)return r().set("hhg-id",e),e;let t=getHhgIdFromCookie();if(t)return t;let n=(0,a.A)();return r().set("hhg-id",n),n}},aVqH:function(e,t,n){"use strict";n.d(t,{$$:function(){return callApiWithLead},Gq:function(){return authorize},Hg:function(){return g},Q2:function(){return getWindowId},T7:function(){return callApiWithAuth},oX:function(){return postSSOApiFormData},px:function(){return callApi}});var o=n("dvDa"),i=n("iVi/"),r=n("p46w"),a=n.n(r),l=n("Q6jF"),c=n("LSb+"),s=n("/sjq"),u=n("9brV"),d=n("77FC"),h=n("JOt+");let g=u.Km.NEXT_PUBLIC_DEPLOY_LOCALE||"en-PH",createAxiosWithInterceptor=(e,t)=>{let n=o.A.create();return n.interceptors.request.use(n=>(e&&t&&(n.headers.Authorization="".concat(t," ").concat(e)),n),e=>{Promise.reject(e)}),n},fixedEncodeURI=e=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),callApi=async function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{let i=createAxiosWithInterceptor(),r=await i({url:o?e:fixedEncodeURI(e),method:t,...n,params:{lang:"tl-PH"===u.Km.NEXT_PUBLIC_DEPLOY_LOCALE?"fil":void 0,...null==n?void 0:n.params},timeout:3e4});if(r)return r.data}catch(o){(0,d.H4)(null,e,t,null==n?void 0:n.requestFrom,o)}return null},callApiWithAuth=async(e,t,n,o)=>{try{let r=i.parse(o||""),l=r[u.ty],c=l||a().get(u.ty);if(c&&c.length){let o=createAxiosWithInterceptor(c,"Bearer"),i=await o({url:e,method:t,...n,params:{...null==n?void 0:n.params,lang:"tl-PH"===u.Km.NEXT_PUBLIC_DEPLOY_LOCALE?"fil":void 0},timeout:3e4});if(i)return i.data}else if(null==n?void 0:n.noAuthFallback)return callApi(e,t,n)}catch(o){if((0,d.H4)(null,e,t,null==n?void 0:n.requestFrom,o),null==n?void 0:n.noAuthFallback)return callApi(e,t,n);if(null==n?void 0:n.allowError)throw o}return null},callApiWithLead=async(e,t,n,r)=>{try{let c=i.parse(r||""),s=c[u.Y3],d=s||a().get(u.Y3),h=c[u.pJ]||a().get(u.pJ);if(!d){let e=(0,l.A)();d=e,a().set(u.Y3,e)}let g=await (0,o.A)({url:fixedEncodeURI(e),method:t,...n,data:{...null==n?void 0:n.data,cookie_id:d,ga_client_id:h||""},timeout:3e4});if(g)return g.data}catch(n){(0,d.H4)(null,e,t,"lead",n)}return null},authorize=async()=>{try{let n,i;try{n=await (0,h.callApiNew)(c.PATHS.USER_PROFILE.GET_PROFILE,{method:"POST"},"sso")}catch(e){i=e,n||(n=e.response)}if((null==n?void 0:n.code)==="SSO_ERR_041"||(null==n?void 0:n._status)!==1){let n=a().get(u.nN);if(n){var e,t;let i=await (0,o.A)({url:"https://id.hellobacsi.com/api/"+c.PATHS.USER_PROFILE.POST_USER_REFRESH,method:"POST",timeout:1e4,data:{refresh_token:n},headers:{"Content-Type":"application/json",Accept:"application/json"}});if(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t._data)||void 0===e?void 0:e.token)return a().set(u.ty,i.data._data.token,{domain:"localhost"===window.location.hostname?"localhost":".".concat(s.domainLocales[g]),expires:i.data._data.expire_in||void 0}),authorize()}}if(i)throw i;if(n)return n._data}catch(e){console.log({err:e})}return null},p=(0,l.A)(),getWindowId=()=>p,callSSOApi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a().get(u.ty);return n?(0,h.callApiNew)(e,{...t}
1,"sso"):Promise.reject("[SSO API] Missing auth cookie when calling ".concat(e))},postSSOApiFormData=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new FormData;for(let[e,n]of Object.entries(t))o.append(e,n);return callSSOApi(e,{method:"POST",data:o,headers:{"Content-Type":"multipart/form-data"},...n})}},bPK4:function(e,t,n){"use strict";n.d(t,{GW:function(){return getCareAllSpecialtyUrl},JQ:function(){return getCareHospitalUrl},KG:function(){return getEcommerceApiPath},ME:function(){return getCareServiceUrl},Nh:function(){return getPathURLSearchParams},Nv:function(){return getCareSpecialtyUrl},PU:function(){return getSubotApiPath},Rg:function(){return getChatbotApiPath},SF:function(){return getCareDoctorUrl},WH:function(){return getLeadPath},at:function(){return getCurrentBaseUrl},e1:function(){return getTogetherPath},eB:function(){return getCareDomain},er:function(){return getApiPath},gQ:function(){return getUrlToRedirectToSSOWithReturnUrl},jA:function(){return getBabyVaccineToolPath},nN:function(){return getHellositePath},oN:function(){return getHelloSitesUrl},pN:function(){return getServiceUrl},vf:function(){return getLocalApiPath},vo:function(){return getApiTrackingPath},yZ:function(){return getCareSearchPageUrl}});var o=n("NmYn"),i=n.n(o),r=n("gY0P"),a=n.n(r),l=n("/sjq"),c=n("9brV");let s=c.Km.NEXT_PUBLIC_DEPLOY_LOCALE||"en-PH",formatString=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=a()(...t);if(o.includes("?")){let[e,t]=o.split("?",2),n=t.split("&").filter(e=>e&&(!e.includes("=")||e.split("=")[1]));return 0===n.length?e:"".concat(e,"?").concat(n.join("&"))}return o},getLocalApiPath=(e,t)=>{let{NEXT_PUBLIC_BASE_API_URL:n}=c.Km;return n+"wp-json/api/"+formatString(e,{...t})},getApiPath=(e,t)=>{let{NEXT_PUBLIC_BASE_API_URL:n,WP_INTERNAL_API:o}=c.Km;return(o||n)+"wp-json/api/"+formatString(e,{...t})},getApiTrackingPath=(e,t)=>c.Km.NEXT_PUBLIC_BASE_API_URL+"wp-json/"+formatString(e,{...t}),getLeadPath=(e,t)=>c.Km.NEXT_PUBLIC_LEAD_API+"api/"+formatString(e,{...t}),getTogetherPath=(e,t,n)=>c.Km.NEXT_PUBLIC_TOGETHER_API+"api/".concat(n||"v1","/")+formatString(e,{...t}),getCurrentBaseUrl=e=>window.location.origin,getCareDomain=e=>{let t="production"===c.Km.DEPLOY_ENV;return t?"".concat(l.domainLocales[e],"/care"):"discover.".concat(l.domainLocales[e],"/care")},slugifiedNameWithId=(e,t,n,o)=>o&&t?"".concat(o,"-").concat(t):"".concat(i()(e||"",{lower:!0,locale:n||s}),"-").concat(t),getServiceUrl=e=>{var t,n;let{locale:o,citySlug:r}=e;return"/care/".concat(i()(r||(null===(t=c.ix[o||"vi-VN"])||void 0===t?void 0:t.CURRENT)||"",{lower:!0,locale:o}),"/").concat(null===(n=c.ix[o||"vi-VN"])||void 0===n?void 0:n.SERVICE)},getCareAllSpecialtyUrl=e=>{var t;let{locale:n}=e;return"/care/".concat(null===(t=c.ix[n||"vi-VN"])||void 0===t?void 0:t.SPECIALTIES)},getCareSpecialtyUrl=e=>{var t,n;let{locale:o,citySlug:r,slug:a}=e;return"/care/".concat(i()(r||(null===(t=c.ix[o||"vi-VN"])||void 0===t?void 0:t.ALL)||"",{lower:!0,locale:o}),"/").concat(null===(n=c.ix[o||"vi-VN"])||void 0===n?void 0:n.HOSPITAL,"/").concat(a)},getCareHospitalUrl=e=>{var t;let{name:n,id:o,locale:i,slug:r}=e;return"/care/".concat(null===(t=c.ix[i||"vi-VN"])||void 0===t?void 0:t.HOSPITAL,"/").concat(slugifiedNameWithId(n,o,i,r))},getCareDoctorUrl=e=>{var t;let{name:n,id:o,locale:i}=e;return"/care/".concat(null===(t=c.ix[i||"vi-VN"])||void 0===t?void 0:t.DOCTOR,"/").concat(slugifiedNameWithId(n,o))},getCareServiceUrl=e=>{var t;let{name:n,id:o,locale:i}=e;return"/care/".concat(null===(t=c.ix[i||"vi-VN"])||void 0===t?void 0:t.SERVICE,"/").concat(slugifiedNameWithId(n,o))},getCareSearchPageUrl=e=>{var t,n;let{type:o,locale:i,searchSlug:r}=e;return"/care/".concat(null===(t=c.ix[i])||void 0===t?void 0:t.CURRENT,"/").concat(null===(n=c.ix[i])||void 0===n?void 0:n[c.m4[o]],"/").concat(null!=r?r:"")},getBabyVaccineToolPath=(e,t)=>(c.Km.INTERNAL_VACCINATION_TOOL_API||c.Km.NEXT_PUBLIC_VACCINATION_TOOL_API)+formatString(e,{...t,domain:l.domainLocales[s]}),getUrlToRedirectToSSOWithReturnUrl=(e,t,n)=>{let o=e||window.location.href,i=t?"".concat(o.includes("?")?"&":"?","source=").concat(t):"",r=n?"".concat(o.includes("?")||i?"&":"?","action=").concat(n):"";return c.a5?"".concat(c.a5,"?returnUrl=").concat(encodeURIComponent("".concat(o).concat(i).c
1oncat(r))):"/"},getSubotApiPath=(e,t)=>{let{SUBOT_INTERNAL:n,NEXT_PUBLIC_SUBOT_API:o}=c.Km;return o+formatString(e,{...t})},getEcommerceApiPath=(e,t)=>{let{NEXT_PUBLIC_ECOMMERCE_API:n}=c.Km;return(n||"https://uat-ecommerce.hellobacsi.com/")+"rest/"+c.Km.NEXT_PUBLIC_STORE_CODE+"/V1/"+formatString(e,{...t})},getChatbotApiPath=(e,t)=>{let{NEXT_PUBLIC_CHAT_BOT_API:n="https://chatbot-staging.hellohealthgroup.com/"}=c.Km;return n+formatString(e,{...t})},getHelloSitesUrl=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{DEPLOY_ENV:o}=c.Km,i=!t&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);return n?"https://".concat(l.domainLocales[e]):i?"http://".concat(window.location.host):"https://".concat("production"===o?"":"discover.").concat(l.domainLocales[e])};function getHellositePath(e){let{locale:t,slug:n,query:o}=e,i=getHelloSitesUrl(t);"tl-PH"===t&&(i+="/fil");let r="?";if(void 0!==o){let e="";Object.keys(o).map(t=>{let n=o[t];Array.isArray(n)&&(r+=e+n.map(e=>"".concat(t,"=").concat(e)).join("&"),e="&"),"string"==typeof n&&(r+=e+"".concat(t,"=").concat(n),e="&")})}"?"===r&&(r="");let a=[];return"string"==typeof n&&(a=n.split("/").filter(Boolean)),Array.isArray(n)&&(a=n.map(e=>e.split("/").filter(Boolean).join("/"),[])),i+"/"+a.join("/")+"/"+r}function getPathURLSearchParams(e,t){let n=e,o=new URLSearchParams(t),i=0;return o.forEach((e,t)=>{e?i++:o.delete(t)}),0!==i&&(n+="?".concat(o)),n}},mYBQ:function(e,t,n){"use strict";n.r(t),n.d(t,{NotificationsHandler:function(){return NotificationsHandler},showNotification:function(){return showNotification}});var o=n("BGKE");n("+OUp");var i=n("jj4h"),r=n("0Woy"),a=n("hvR8"),l=n.n(a),c=n("d30B"),s=n.n(c),u=n("X1xk"),d=n.n(u),h=n("l0B8"),g=n.n(h);function NotificationsHandler(){return(0,o.Y)(i.$,{position:"top-right",zIndex:2077,autoClose:5e3})}let showNotification=e=>{let{type:t,title:n,...i}=e,a={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},c={success:(0,o.Y)(d(),{width:20,height:20}),danger:(0,o.Y)(l(),{width:20,height:20}),warning:(0,o.Y)(g(),{width:20,height:20}),info:(0,o.Y)(s(),{width:20,height:20}),firebase:""},u=c[t];r.$e.show({title:(0,o.Y)("b",{children:n}),icon:u,withCloseButton:!0,closeButtonProps:{label:"Close alert"},...i,styles:e=>{let n=a[t]||"blue";return{root:{backgroundColor:e.colors[n][0],borderColor:e.colors[n][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[n][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[n][0]}},icon:{backgroundColor:"transparent",padding:0}}}})}},"/sjq":function(e){"use strict";e.exports={domainLocales:{"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","tl-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","zh-SG":"hellojiankang.com"},ignoreList:[]}},wA0V:function(e,t,n){"use strict";n.d(t,{m:function(){return useCurrentUrl}});var o=n("+OUp"),i=n("bPK4"),r=n("AG8C"),a=n("9brV");function useCurrentUrl(){let{locale:e,router:{asPath:t}}=(0,r.$)(),[n,l]=(0,o.useState)(()=>"".concat((0,i.oN)(e,!1)).concat(a.Jp).concat(t));return(0,o.useEffect)(()=>
1{l(window.location.href)},[t]),n}},"3Yr3":function(e,t,n){"use strict";n.d(t,{IQ:function(){return p},QB:function(){return useTrackingGetFcmToken},Td:function(){return useTrackingClickButtonTemplate},VY:function(){return g},tN:function(){return useTrackingVisitSite},vA:function(){return useTrackingClickCarePathTemplate}});var o=n("+OUp"),i=n("dvDa"),r=n("p46w"),a=n.n(r),l=n("aVqH"),c=n("7/Cf"),s=n("9brV"),u=n("YhO6"),d=n("wA0V"),h=n("a5L+");let g=s.p8?"https://event-tracking.hellohealthgroup.com":"https://event-tracking-staging.hellohealthgroup.com",p={[u.n.Vietnam]:"hellobacsi",[u.n.Indonesia]:"hellosehat",[u.n.Thailand]:"hellokhunmor",[u.n.Malaysia]:"hellodoktor",[u.n.Taiwan]:"helloyishi",[u.n.Myanmar]:"hellosayarwon",[u.n.PhilippinesEnglish]:"hellodoctor",[u.n.Cambodia]:"hellokrupet",[u.n.India]:"helloswasthya",[u.n.PhilippinesTagalog]:"hellodoctor-fil",[u.n.Singapore]:"hellojiankang"};function useTrackingVisitSite(){let e=(0,d.m)();(0,o.useEffect)(()=>{var t;let n=(0,c.Us)();i.A.post(g+"/v1/custom-event/collect",{action:"start",source:"Discover",ga_client_id:a().get(s.pJ),site_code:p[l.Hg],email:n.email,account_id:n.id,data:{timestamp:new Date().toISOString(),page_url:e,window_id:(0,l.Q2)(),cookie_id:(0,c.lT)(),client_agent:(null===(t=navigator)||void 0===t?void 0:t.userAgent)||"",token:localStorage.getItem("fcm_token")||"",email:n.email,account_id:n.id}}).catch(console.log)},[])}function useTrackingGetFcmToken(){let e=(0,d.m)();return{trackingGetFcmToken:t=>{var n;if(localStorage.getItem("last_track")===t)return;let o=(0,c.Us)();i.A.post(g+"/v1/custom-event/collect",{action:"get_token",source:"Discover",ga_client_id:a().get(s.pJ),site_code:p[l.Hg],email:o.email,account_id:o.id,data:{timestamp:new Date().toISOString(),page_url:e,window_id:(0,l.Q2)(),cookie_id:(0,c.lT)(),client_agent:(null===(n=navigator)||void 0===n?void 0:n.userAgent)||"",token:t,email:o.email,account_id:o.id}}).then(()=>{localStorage.setItem("last_track",t)}).catch(console.log)}}}let useTrackingClickCarePathTemplate=()=>{let e=(0,d.m)(),t=(0,h.a)(),n=(0,o.useRef)(n=>{var o;let r=(0,c.Us)(),u=new Date().toISOString();i.A.post(g+"/v1/custom-event/collect",{action:"submit",source:"spotlight",ga_client_id:a().get(s.pJ),email:(null==r?void 0:r.email)||"",account_id:null==r?void 0:r.id,site_code:p[l.Hg],timestamp:u,data:{timestamp:u,url:e,window_id:(0,l.Q2)(),cookie_id:(0,c.lT)(),client_agent:(null===(o=navigator)||void 0===o?void 0:o.userAgent)||"",token:localStorage.getItem("fcm_token"),target_group:n,device_type:t?"mobile":"web"}}).catch(console.log)});return{trackUserClickCarePathTemplate:n.current}},useTrackingClickButtonTemplate=()=>{let e=(0,d.m)(),t=(0,h.a)(),n=(0,o.useRef)(n=>{var o;let r=(0,c.Us)(),u=new Date().toISOString();i.A.post(g+"/v1/custom-event/collect",{action:n,source:"landing_page",ga_client_id:a().get(s.pJ),email:(null==r?void 0:r.email)||"",account_id:null==r?void 0:r.id,site_code:p[l.Hg],timestamp:u,data:{timestamp:u,url:e,window_id:(0,l.Q2)(),cookie_id:(0,c.lT)(),client_agent:(null===(o=navigator)||void 0===o?void 0:o.userAgent)||"",token:localStorage.getItem("fcm_token"),device_type:t?"mobile":"web"}}).catch(console.log)});return{trackingClickButtonTemplate:n.current}}},"a5L+":function(e,t,n){"use strict";n.d(t,{a:function(){return useIsMobile}});var o=n("bGjd");let useIsMobile=e=>{let{isMobile:t,isMobileSSR:n,isLargeMobile:i}=(0,o.lm)();return"boolean"==typeof t||"boolean"==typeof i?!!(e&&i||t):!!(e&&i||n)}},bGjd:function(e,t,n){"use strict";n.d(t,{LB:function(){return ScreenSizeProvider},O4:function(){return ScreenSizeListener},lm:function(){return useScreenSize}});var o=n("BGKE"),i=n("+OUp"),r=n("sEfC"),a=n.n(r),l=n("oWg6"),c=n("VNqU"),s=n("a5vB");let getIsMobile=()=>window.innerWidth<768,getIsLargeMobile=()=>window.innerWidth>=768&&window.innerWidth<1112,useScreenSize=()=>{let{isMobile:e,isLargeMobile:t,isMobileSSR:n}=useScreenSizeContext(e=>({isMobile:e.isMobile,isLargeMobile:e.isLargeMobile,isMobileSSR:e.isMobileSSR}),s.x);return{isMobile:e,isLargeMobile:t,isMobileSSR:n}},useScreenSizeListener=()=>{let{setIsMobile:e,setIsLargeMobile:t}=useScreenSizeContext(e=>({setSSR:e.setSSR,setIsMobile:e.setIsMobile,setIsLargeMobile:e.setIsLargeMobile}),s.x);(0,i.useEffect)(()=>{let n=a()(()=>{let n=getIsMobile(),o=getIsLargeMobile();"boolean"==typeof n&&e(n),"boolean"==typeof o&&t(o)},200);return window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("resize",n)}},[])},ScreenSizeListener=()=>(useScreenSizeListener(),null),createScreenSizeStore=e=>{let t={isMobile:getIsMobile(),isLargeMobile:getIsLargeMobile()};return(0,l.y)()(n=>({...t,...e,setIsMobile:e=>n({isMobile:e}),setIsLargeMobile:e=>n({isLargeMobile:e}),setSSR:e=>n({isMobileSSR:e})}))},u=(0,i.createContext)(null),ScreenSizeProvider=e=>{let{isMobileSSR:t,children:n}=e,r=(0,i.useRef)();return r.current||(r.current=createScreenSizeStore({isMobileSSR:t})),(0,o.Y)(u.Provider,{value:r.current,children:n})};function useScreenSizeContext(e,t){let n=(0,i.useContext)(u);if(!n)throw Error("Missing ScreenSizeContext.Provider in the tree");return(0,c.Pj)(n,e,t)}},ua7O:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return N}});var o=n("BGKE"),i=n("+OUp"),r=n("rBCA"),a=n("iBNF"),l=n("udsx"),c=n("xRwJ"),s=n("TjCH"),u=n("P+HS"),d=n("dvDa"),h=n("p46w"),g=n.n(h),p=n("k3v3"),m=n.n(p),f=n("dDsW"),v=n("aVqH"),w=n("7/Cf"),S=n("bPK4"),b=n("mYBQ"),_=n("wA0V"),k=n("3Yr3"),C=n("AG8C"),A=n("9brV"),y=n("VnHZ");let T=(0,r.A)("div",{target:"e1gwwrog0"})("min-height:100vh;display:flex;flex-direction:column;justify-content:flex-start;.footer-container{max-width:568px;margin:auto;padding:24px 16px;}"),I=(0,r.A)("header",{target:"e1gwwrog1"})("display:flex;justify-content:center;padding:40px 16px 32px;img{max-height:24px;object-fit:contain;cursor:pointer;}"),P=(0,r.A)("main",{target:"e1gwwrog2"})("max-width:568px;padding:0 16px;margin:0 auto 32px;.image-sent{display:flex;justify-content:center;}.image-sent img{max-width:120px;max-height:120px;object-fit:contain;}.resub-box{border-radius:",a.w.borderRadius,";border:1px solid ",a.w.colors.neutral100,";padding:24px;display:flex;flex-direction:column;align-items:center;margin:32px 0;}.resub-box p{font-size:18px;}.resub-box button{margin-top:16px;}"),E=(0,r.A)("footer",{target:"e1gwwrog3"})("margin-top:auto;width:100%;border-top:1px solid ",a.w.colors.neutral100,";
1.footer-final{background-color:",a.w.colors.secondaryDark,";}.hello-sites{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:16px;}"),x=(0,r.A)("div",{target:"e1gwwrog4"})(".socials{display:flex;gap:24px;justify-content:center;}.socials img{width:20px;height:20px;object-fit:contain;}.list-app{display:flex;gap:16px;justify-content:center;img{width:106px;display:block;}}"),L={Facebook:"https://cdn-hermes.hellohealthgroup.com/Facebook.png",Instagram:"https://cdn-hermes.hellohealthgroup.com/Instagram.png",Youtube:"https://cdn-hermes.hellohealthgroup.com/Youtube.png",Zalo:"https://cdn-hermes.hellohealthgroup.com/Zalo.png",Tiktok:"https://cdn-hermes.hellohealthgroup.com/Tiktok.png",Linkedin:"https://cdn-hermes.hellohealthgroup.com/Linkedin.png",Twitter:"https://cdn-hermes.hellohealthgroup.com/Twitter.png",Line:"https://cdn-hermes.hellohealthgroup.com/thumbnail/Line.png"};var N=!0;t.default=e=>{let{socials:t,eid:n,cid:r,sid:h}=e,{formatMessage:p}=(0,f.A)(),{locale:N,router:U}=(0,C.$)(),Y=(0,_.m)(),[O,M]=(0,i.useState)(!1),{state:H}=(0,i.useContext)(y.B);(0,i.useEffect)(()=>{U.replace({href:U.pathname,query:{}},void 0,{shallow:!0})},[]);let D=A.El[N];return(0,o.FD)(o.FK,{children:[(0,o.FD)(m(),{children:[(0,o.FD)("title",{children:[D.SITE_NAME," | Unsubscribe Page"]}),(A.EH[N]||[]).map((e,t)=>"link"===e.type?(0,o.Y)("link",{rel:e.rel,href:e.href,sizes:e.sizes},"favicon-".concat(t)):"meta"===e.type?(0,o.Y)("meta",{name:e.name,content:e.content},t):null),(0,o.Y)("meta",{name:"description",content:"".concat(D.SITE_NAME," - Unsubscribe Page")}),(0,o.Y)("meta",{property:"og:locale",content:N}),(0,o.Y)("meta",{property:"og:type",content:"website"}),(0,o.Y)("meta",{property:"og:site_name",content:D.SITE_NAME_FORMATTED}),(0,o.Y)("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"})]}),(0,o.FD)(T,{children:[(0,o.Y)(I,{children:(0,o.Y)("a",{href:(0,S.oN)(N),children:(0,o.Y)(l.L,{type:D.LOGO_TYPE})})}),(0,o.FD)(P,{children:[(0,o.Y)(c.H,{tag:"h3",children:p({id:"unsubPage.title"},{site:D.SITE_NAME_FORMATTED})}),(0,o.Y)(u.Text,{color:"#595959",className:"mt-2",children:p({id:"unsubPage.description"},{site:D.SITE_NAME_FORMATTED})}),(0,o.Y)(u.Button,{color:"primary",size:"lg",loading:O,onClick:()=>{var e,t,o;M(!0);let i=(0,w.Us)();d.A.post(k.VY+"/v1/custom-event/collect",{action:"email-unsubscribe",source:"Email",ga_client_id:g().get(A.pJ),site_code:k.IQ[N],email:n||(null===(e=H.userInfo)||void 0===e?void 0:e.email)||i.email,phone:(null===(t=H.userInfo)||void 0===t?void 0:t.phone)||"",account_id:i.id,data:{timestamp:new Date().toISOString(),page_url:Y,window_id:(0,v.Q2)(),cookie_id:(0,w.lT)(),client_agent:(null===(o=navigator)||void 0===o?void 0:o.userAgent)||"",email_opt_in:!1,campaign_id:r,sign_id:h}}).then(()=>{(0,b.showNotification)({title:"",message:p({id:"unsubPage.notification.success"}),type:"success"}),window.location.href="/"}).catch(()=>{(0,b.showNotification)({title:"",message:p({id:"notification.comment.somethingWrong"}),type:"danger"}),M(!1)})},className:"mt-8",children:p({id:"common.unsubscribe",defaultMessage:"Unsubscribe"})})]}),(0,o.FD)(E,{children:[(0,o.FD)(x,{className:"footer-container pt-0",children:[(0,o.Y)(u.Text,{className:"text-center",children:(0,o.Y)("img",{src:"https://cdn-hermes.hellohealthgroup.com/logo_hhg_circle.png",alt:"Hellohealthgroup",className:"mx-auto block",loading:"lazy"})}),(0,o.Y)(u.Text,{size:"n1",color:"#595959",className:"text-center",style:{marginTop:-24},children:p({id:"unsubPage.footerDesc"},{site:D.SITE_NAME_FORMATTED})}),(0,o.FD)("div",{className:"list-app mt-6",children:[(0,o.Y)("a",{href:"https://play.google.com/store/apps/details?id=com.hellobacsi.app&hl=en-VN",target:"_blank",children:(0,o.Y)("img",{src:"".concat(A.nS,"/app/android-app.png?v=2"),alt:"Android",loading:"lazy"})}),(0,o.Y)("a",{href:"https://apps.apple.com/vn/app/hello-bacsi/id1645060016",target:"_blank",children:(0,o.Y)("img",{src:"".concat(A.nS,"/app/apple-app.png?v=2"),alt:"Apple",loading:"lazy"})})]}),(0,o.Y)("div",{className:"socials mt-8",children:t.map((e,t)=>(0,o.Y)("a",{href:e.url,children:(0,o.Y)("img",{src:L[String(e.name.split(" ").find(e=>e in L))]||e.icon,alt:e.name,loading:"lazy"})},t))}),(0,o.FD)(u.Text,{size:"n1",color:"#595959",className:"mt-6 text-center",children:[p({id:"unsubPage.footerAddress"}),(0,o.Y)("br",{})," \xa9 ",new Date().getFullYear()," Hello Health Group Pte. Ltd, All rights reserved."]})]}),(0,o.Y)("div",{className:"footer-final",children:(0,o.FD)("div",{className:"footer-container",children:[(0,o.Y)("div",{className:"text-center",children:(0,o.Y)(u.Text,{size:"xs",color:a.w.colors.neutral500,children:p({id:"footer.otherSites",defaultMessage:"Visit our other Hello Health sites"})})}),(0,o.FD)("div",{className:"hello-sites",children:[(0,o.Y)("a",{href:A.B8.ID,children:(0,o.Y)(s.F,{country:"ID",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.TH,children:(0,o.Y)(s.F,{country:"TH",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.MY,children:(0,o.Y)(s.F,{country:"MY",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.KH,children:(0,o.Y)(s.F,{country:"KH",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.TW,children:(0,o.Y)(s.F,{country:"TW",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.MM,children:(0,o.Y)(s.F,{country:"MM",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.PH,children:(0,o.Y)(s.F,{country:"PH",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.IN,children:(0,o.Y)(s.F,{country:"IN",width:32,height:32,rounded:!0})}),(0,o.Y)("a",{href:A.B8.VN,children:(0,o.Y)(s.F,{country:"VN",width:32,height:32,rounded:!0})})]})]})})]})]})]})}},VnHZ:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var o=n("+OUp");let i=(0,o.createContext)({})},d30B:function(e,t,n){var o=n("+OUp");function Info(e){return o.createElement("svg",e,[o.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"#2D87F3",key:0}),o.createElement("path",{d:"M8 11V8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),o.createElement("path",{d:"M8 5H8.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Info.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Info,Info.default=Info},hvR8:function(e,t,n){var o=n("+OUp");function Danger(e){return o.createElement("svg",e,[o.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#262626",key:0}),o.createElement("path",{d:"M14.8286 9.17163L9.17176 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),o.createElement("path",{d:"M9.17139 9.17163L14.8282 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Danger.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=Danger,Danger.default=Danger},X1xk:function(e,t,n){var o=n("+OUp");function Success(e){return o.createElement("svg",e,[o.createElement("path",{d:"M10.0001 18.3334C14.6025 18.3334 18.3334 14.6024 18.3334 10C18.3334 5.39765 14.6025 1.66669 10.0001 1.66669C5.39771 1.66669 1.66675 5.39765 1.66675 10C1.66675 14.6024 5.39771 18.3334 10.0001 18.3334Z",fill:"#00B16A",key:0}),o.createElement("path",{d:"M13.8333 7.5L8.33325 12.5L5.83325 10.2273",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Success.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Success,Success.default=Success},l0B8:function(e,t,n){var o=n("+OUp");function Warning(e){return o.createElement("svg",e,o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"}))}Warning.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Warning,Warning.default=Warning}},function(e){_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("6840",e),e},[])).then(function(){return e.X(0,[1509,8287,4335,7995,6941,6600,164,8
1183,4881,5532,2654,3028,7469,6801,6419,636,8792],function(){return e(e.s="ppC9")})})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.