"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6509],{grWN:function(e,t,a){a.d(t,{T:function(){return u},a:function(){return getUserIdFromCookie},b:function(){return getSubotCookieId},c:function(){return getUserInfoFromCookie},d:function(){return getWindowId},e:function(){return checkUntilFinished},f:function(){return checkMobile},g:function(){return getHelloSitesUrl},h:function(){return clickAndOpenInNewTab},i:function(){return formatUrlWithEncrypedGa},j:function(){return isFakeEmail},k:function(){return getHhgIdFromCookie},o:function(){return overrideParamsByQuery},s:function(){return ssoIntents}});var n=a("pMpJ"),i=a("LL/B"),o=a("EoPH"),r=a("JIJ2"),l=a("hHL7"),s=a("GOBr"),c=a("xrdX");let d=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],p=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...d],overrideParamsByQuery=(e,t)=>{let a=Object.keys(t);return a.map(a=>{let n=t[a];if("source"===a){e.is_new="first_login"===n;return}if(p.includes(a)){if(d.includes(a)){try{e[a]=JSON.parse(n)}catch(e){}return}if("account_id"===a||"current_score"===a||"bot_id"===a){e[a]=parseInt(n);return}e[a]=n}}),e},ssoIntents=e=>[{id:(0,l.Z)(),label:JSON.stringify({title:"",description:""}),type:o.N.SSO_INTENT,url:""},{id:(0,l.Z)(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:o.N.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:(0,l.Z)(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:o.N.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:(0,l.Z)(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:o.N.SSO_INTENT,url:"/images/subot/shield.svg"}];function checkUntilFinished(e){let t=e.condition,a=e.finished,n=e.timeout||3e3,i=new Date().getTime(),o=setInterval(()=>{let e=new Date().getTime();(e-i>n||t())&&(clearInterval(o),a())},300)}let getHhgIdFromCookie=e=>{let t=n.c.parse(e||""),a=t["hhg-id"];return a||r.Z.get("hhg-id")||""},getSubotCookieId=e=>{if(e)return r.Z.set("hhg-id",e),e;let t=getHhgIdFromCookie();if(t)return t;let a=(0,l.Z)();return r.Z.set("hhg-id",a),a},getUserIdFromCookie=e=>{let t=n.c.parse(e||""),a=t[i.B],o=a||r.Z.get(i.B)||"";try{let e=o.split(".")[1],t=e.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a).sub}catch(e){return""}},getUserInfoFromCookie=e=>{let t=n.c.parse(e||""),a=t[i.B],o=a||r.Z.get(i.B)||"";try{let e=o.split(".")[1],t=e.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")),n=JSON.parse(a);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},m=(0,l.Z)(),getWindowId=()=>m,getHelloSitesUrl=(e,t)=>{let a=!t&&"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);return a?"http://localhost":`https://${s.y?"":"discover."}${c.v[e]}`},checkMobile=e=>{let t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},clickAndOpenInNewTab=e=>{let t=document.createElement("a");t.href=e,t.target="_blank",t.click()},u=30,isFakeEmail=e=>(null==e?void 0:e.endsWith("@hhg.com"))||(null==e?void 0:e.endsWith("@facebook.com"));function formatUrlWithEncrypedGa(e="",t=""){if(!e.startsWith("https://")||!t)return"";let a=new URL(e),n=a.searchParams;return n.get("hhgclid")?(n.delete("hhgclid"),n.set("hhgclid",t),`${a.origin}${a.pathname}?${n.toString()}`):e}},XFb3:function(e,t,a){a.d(t,{M:function(){return f},N:function(){return NotificationsHandler},a:function(){return getHeadingStyles},g:function(){return getMantineThemeOverride},s:function(){return showNotification},t:function(){return T},u:function(){return useMantineLocale}});var n=a("FRPj"),i=a("q1tI"),o=a("Wgwc"),r=a.n(o),l=a("eosF"),s=a("INKa"),c=a("0Woy"),d=a("LL/B"),p=a("mYVa"),m=a("nGnw"),u=a("iBNF"),h=a("uuQu"),g=a("ZLal"),E=a("nfB/");let f={[l.L.Vietnam]:"vi",[l.L.Cambodia]:"km",[l.L.India]:"hi",[l.L.Indonesia]:"id",[l.L.Malaysia]:"ms",[l.L.Thailand]:"th",[l.L.Taiwan]:"zh-tw",[l.L.PhilippinesTagalog]:"tl-ph",[l.L.PhilippinesEnglish]:"en",[l.L.Myanmar]:"my",[l.L.Singapore]:"zh-cn"},C={[l.L.Vietnam]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"EdQk",23)),[l.L.Cambodia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"9mFM",23)),[l.L.India]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"sjup",23)),[l.L.Indonesia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"gydT",23)),[l.L.Malaysia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"KjFU",23)),[l.L.Thailand]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"axPs",23)),[l.L.Taiwan]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"UIeI",23)),[l.L.Singapore]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"pHGr",23)),[l.L.PhilippinesTagalog]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"BmsB",23)),[l.L.PhilippinesEnglish]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"njAx",23)),[l.L.Myanmar]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"5EMu",23))},useMantineLocale=e=>{let[t,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){var t;a(!1),yield null===(t=C[e])||void 0===t?void 0:t.call(C),r().locale(f[e]),a(!0)})},[e]),{isLoaded:t}},GlobalButtonStyle=()=>({Button:{defaultProps:{variant:"primary",size:"md"}}}),v={[g.C.NONE]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#1a1a1a"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]},[g.C.LEADGEN]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#111111"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]}};function NotificationsHandler(){return i.createElement(s.T,{position:"top-right",zIndex:d.Z+5,autoClose:5e3})}let b={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},y={success:i.createElement(()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10 18.333a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 0 0 0 16.666",fill:"#00B16A"}),i.createElement("path",{d:"m13.833 7.5-5.5 5-2.5-2.273",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),danger:i.createElement(()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",fill:"#262626"}),i.createElement("path",{d:"m14.829 9.172-5.657 5.656m-.001-5.656 5.657 5.656",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),warning:i.createElement(()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.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"})),null),info:i.createElement(()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12",fill:"#2D87F3"}),i.createElement("path",{d:"M8 11V8m0-3h.01",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),firebase:""},showNotification=e=>{var{type:t,title:a}=e,o=(0,n._)(e,["type","title"]);let r=y[t];c.N9.show(Object.assign(Object.assign({title:i.createElement("b",null,a),icon:r,withCloseButton:!0,closeButtonProps:{label:"Close alert"}},o),{styles:e=>{let a=b[t]||"blue";return{root:{backgroundColor:e.colors[a][0],borderColor:e.colors[a][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[a][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[a][0]}},icon:{backgroundColor:"transparent",padding:0}}}}))},x={Container:{defaultProps:{sizes:{lg:(0,p.em)(h.S.LG)}}}},I={none:{default:[{size:"40px",lineHeight:"52px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"42px",letterSpacing:"-1px"},{size:"26px",lineHeight:"36px",letterSpacing:"-0.8px"},{size:"22px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"18px",lineHeight:"28px",letterSpacing:"-0.2px"},{size:"16px",lineHeight:"24px",letterSpacing:0}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]},leadgen:{default:[{size:"40px",lineHeight:"48px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"40px",letterSpacing:"-1px"},{size:"26px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"20px",lineHeight:"28px",letterSpacing:"-0.4px"},{size:"17px",lineHeight:"24px",letterSpacing:"-0.4px"},{size:"15px",lineHeight:"24px",letterSpacing:"-0.3px"}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]}},getHeadingStyles=e=>{let{version:t=g.C.NONE,mbDown:a}=e||{},n=I[t]||{};return Object.fromEntries((n[a?"mbDown":"default"]||[]).map((e,t)=>[`h${t+1}`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))},GlobalHeadingStyle=(e=g.C.NONE)=>({Title:{styles:{root:Object.assign(Object.assign({fontWeight:g.F.bold},getHeadingStyles({version:e})),{[`&${h.M.mbDown}`]:Object.assign({},getHeadingStyles({version:e,mbDown:!0}))})}}}),GlobalInputStyle=e=>{var t;return{InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:(0,p.h)(14),lineHeight:"22px",color:u.r.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:u.r.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:null===(t=d.I[e])||void 0===t?void 0:t.separator}},Input:{styles:(e,t,{size:a})=>({input:{border:`1px solid ${u.r.colors.gray200}`,transition:`all ${E.A} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(a){case"lg":return{height:48,minHeight:"unset",fontSize:16,lineHeight:"24px"};case"md":return{height:40,minHeight:"unset",fontSize:(0,p.h)(14),lineHeight:"22px"};case"sm":return{height:32,minHeight:"unset",fontSize:(0,p.h)(14),lineHeight:"22px"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},'&[data-invalid="true"]':{border:`1px solid ${u.r.colors.red600}`,color:"#000"}})}}},N={Radio:{defaultProps:{size:"sm",color:"blue.6"},styles:{radio:{backgroundColor:"transparent","&:checked":{backgroundColor:"transparent"}}}}},T=v[g.C.NONE],getMantineThemeOverride=(e,t="hb",a)=>{var n;return{defaultRadius:"hb"===t?8:16,cursorType:"pointer",colors:Object.assign(Object.assign(Object.assign({},null!==(n=v[a])&&void 0!==n?n:v[g.C.NONE]),u.r.colors),{toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"}),primaryColor:t,primaryShade:6,fontFamily:(e===l.L.Cambodia?"Battambang":e===l.L.Thailand?"Noto Sans Thai":"Inter")+", -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:(0,p.em)(h.B.BREAK_POINT_SMALL_MOBILE),sm:(0,p.em)(h.B.BREAK_POINT_MOBILE),md:(0,p.em)(h.B.BREAK_POINT_TABLET),lg:(0,p.em)(h.B.BREAK_POINT_PC),xl:(0,p.em)(h.B.BREAK_POINT_LGPC)},components:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GlobalInputStyle(e)),N),GlobalButtonStyle()),GlobalHeadingStyle(a)),x),other:{template:t,customStyleType:a,defaultImage:m.C.getAssetPath("mb"===t?"default-image-mb.jpg":"default-image.jpg")}}}},bJUT:function(e,t,a){a.d(t,{C:function(){return CardAuthor},P:function(){return PopupExpert},a:function(){return PopupDoctor},b:function(){return PopupHospital},c:function(){return ProfileDetailModal},d:function(){return CardAuthor$1}});var n=a("q1tI"),i=a("rCoo"),o=a("dgD7"),r=a("/npG"),l=a("Eso5"),s=a("SPK5"),c=a("mAfZ"),d=a("mYVa"),p=a("Wgwc"),m=a.n(p),u=a("QgiU"),h=a.n(u),g=a("Gx+P"),E=a("uuQu"),f=a("4xJZ"),C=a("ft6n"),v=a("FRPj"),b=a("dxY4"),y=a("R7WV"),x=a("nGnw"),I=a("VhOp"),N=a("LgdP"),T=a("wp0n"),O=a("iBNF"),A=a("rBCA"),_=a("IQVP"),w=a("xA8p"),k=a("DEkF"),S=a("fNFL"),L=a("xrdX");let MainText=({children:e,className:t=""})=>n.createElement("div",{className:`tMiOKib ${t}`},e),SubText=({children:e,className:t=""})=>n.createElement("div",{className:`uDcqD-2 ${t}`},e);var P={container:"sTU4T4I",info:"tCql9Je",avatarWrapper:"_3j7uYhH",avatarIcon:"PHABgoT"};let CardAuthor$1=({avatarProps:e,title:t,subTitle:a,children:i,className:o="",style:r,onAvatarClick:l,avatarIcon:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:p})=>n.createElement("div",{className:`${P.container} ${o}`,style:r},n.createElement("div",{className:P.avatarWrapper,onClick:l,"data-event-category":c,"data-event-action":d,"data-event-label":p},n.createElement(b.U,Object.assign({},e)),s&&n.createElement("div",{className:P.avatarIcon},s)),n.createElement("div",{className:`${P.info} ${o}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},i||n.createElement(n.Fragment,null,t&&n.createElement(MainText,null,t),a&&n.createElement(SubText,null,a))));CardAuthor$1.MainText=MainText,CardAuthor$1.SubText=SubText,CardAuthor$1.SubDivider=({className:e=""})=>n.createElement("span",{className:`m-HVXw1 ${e}`}),CardAuthor$1.Row=({children:e,className:t=""})=>n.createElement("div",{className:`dZWeHns ${t} row`},e),CardAuthor$1.ColLeft=({children:e,className:t=""})=>n.createElement("div",{className:`${t} col-left`},e),CardAuthor$1.ColRight=({children:e,className:t=""})=>n.createElement("div",{className:`${t} col-right`},e),CardAuthor$1.SubTextRow=e=>{var{children:t,className:a=""}=e,i=(0,v._)(e,["children","className"]);return n.createElement("div",Object.assign({className:`pDlsows ${a}`},i),t)};var M=(0,r.k)(()=>({root:{verticalAlign:"bottom"}}));let D=(0,n.createContext)({}),AuthorBadgeItem=({styles:e,className:t,classNames:a})=>{let{role:i,siteType:o,title:r}=(0,n.useContext)(D),{cx:l,classes:s}=M(void 0,{name:"AuthorBadgeItem",styles:e,classNames:a});return i?n.createElement(f.A,{className:l(s.root,t),siteType:o,role:i,title:r}):null};var R=(0,r.k)(()=>({root:{}}));let B=A.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${O.r.colors.white}; border-radius: ${O.r.borderRadius}; box-shadow: 0px 0px 4px ${O.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${E.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${E.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${O.r.colors.primary50}; border-radius: ${O.r.borderRadius}; .btn-booking { display: flex; margin: 12px auto; } .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,H=A.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,F=A.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,z=A.Z.div` position: relative; z-index: 9; .specialty { display: flex; flex-wrap: wrap; justify-content: center; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; } `,$=A.Z.ul` padding-left: 18px; li { list-style-type: disc; } `;var G="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e",U="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' stroke='%23E4E8EC' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16'/%3e%3cpath fill='%23FF5331' d='M10.333 7.667V5H7.667v2.667H5v2.667h2.667V13h2.666v-2.666H13V7.667z'/%3e%3c/svg%3e";let PopupDoctor=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:i,locale:o,isMobile:r,overwriteProfileProps:l,avatarFallback:s=x.C.getAssetPath("avatar.jpg"),trackingCategory:c="Together"})=>{var d,p,m;let{t:u}=(0,g.u)(),[h,E]=(0,n.useState)(null),[f,C]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(e&&i&&String(null==h?void 0:h.id)!==String(i)){C(!0);try{E(null),(0,I.c)((0,I.g)(_.tC.GET_DOCTOR_INFO,{doctorId:i,website_url:I.l[o]}),"get").then(e=>{E(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),l))})}catch(e){console.error(e)}C(!1)}},[e,i,null==h?void 0:h.id]);let v=(null==h?void 0:h.experiences)||[],b=(null==h?void 0:h.specialties)||[],A=b.map(e=>(null==e?void 0:e.name)||e).join(" • "),k=v.map(e=>{try{return JSON.parse(e.description)}catch(t){return e.description}}).filter(e=>e.content),renderExperienceText=e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"";return n.createElement(n.Fragment,null,n.createElement(B,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!h?n.createElement(w.L,null):n.createElement("div",{className:"popup-content"},n.createElement("div",{className:"close-button",onClick:t},n.createElement("img",{src:G,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),n.createElement("div",{className:"main-info"},n.createElement("div",{className:"border-banner"}),n.createElement("div",{className:"avatar-title"},n.createElement(F,null,n.createElement("div",{className:"image-container"},n.createElement("div",{style:{position:"relative"}},n.createElement(y.I,{src:null==h?void 0:h.avatar,backupSrc:s,className:"profile-image",alt:"avatar"}),n.createElement("img",{className:"badge-avatar",src:U,alt:"badge",loading:"lazy"})))),n.createElement(z,null,n.createElement(T.T,{size:"s3",weight:"semiBold",className:"full-name"},null==h?void 0:h.name),n.createElement("div",{className:"specialty"},A&&n.createElement(n.Fragment,null,n.createElement(T.T,{size:"p4",color:O.r.colors.gray800},A," • ")),n.createElement("a",{href:(0,I.m)({id:null===(d=null==h?void 0:h.organization)||void 0===d?void 0:d.id,name:null===(p=null==h?void 0:h.organization)||void 0===p?void 0:p.name,slug:null===(m=null==h?void 0:h.organization)||void 0===m?void 0:m.slug,locale:o}),className:"organisation",target:"_blank",rel:"noreferrer"},n.createElement(T.T,{size:"p4",className:"organisation",color:O.r.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.organization.name))))),!r&&n.createElement("div",{className:"btn-wrapper"},n.createElement("a",{href:(0,I.n)({name:h.name,id:h.id,locale:o})},n.createElement(N.B,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),k&&n.createElement(z,null,n.createElement("div",{className:"experience"},n.createElement(T.T,{weight:"bold",size:"s3",color:O.r.colors.gray800,style:{paddingBottom:16}},u("expert.content.description").toUpperCase()),n.createElement($,null,k.map((e,t)=>n.createElement("li",{key:t},n.createElement(T.T,{size:"p2"},renderExperienceText(e))))),r?n.createElement("div",{className:"btn-wrapper"},n.createElement("a",{href:(0,I.n)({name:h.name,id:h.id,locale:o})},n.createElement(N.B,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):n.createElement("a",{href:(0,I.n)({name:h.name,id:h.id,locale:o})},n.createElement(T.T,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":c,"data-event-action":"See Full Doctor Profile","data-event-label":(0,I.k)(o)+(0,I.n)({name:h.name,id:h.id,locale:o})},u("home.seeExpert"))))))),n.createElement(H,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Y=A.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${O.r.colors.white}; border-radius: ${O.r.borderRadius}; box-shadow: 0px 0px 4px ${O.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${E.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${E.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${O.r.colors.primary50}; border-radius: ${O.r.borderRadius}; .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,j=A.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,V=A.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,Z=A.Z.div` position: relative; z-index: 9; .specialty { display: flex; flex-wrap: wrap; justify-content: center; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; } `,W=A.Z.div` display: flex; margin-top: 8px; .bullet-point { width: 24px; height: 24px; } `;var K="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12'/%3e%3cpath fill='%232D87F3' d='M24 12a12 12 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533l-.41 1.427 1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";let q={author:K,edtior:K,expert:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath fill='white' d='M11.443 5.137a.6.6 0 0 1 1.114 0l1.436 3.577a.6.6 0 0 0 .516.375l3.846.26a.6.6 0 0 1 .344 1.06l-2.958 2.471a.6.6 0 0 0-.197.607l.94 3.738a.6.6 0 0 1-.9.655l-3.265-2.05a.6.6 0 0 0-.638 0l-3.265 2.05a.6.6 0 0 1-.9-.655l.94-3.738a.6.6 0 0 0-.198-.607L5.3 10.41a.6.6 0 0 1 .344-1.06l3.846-.26a.6.6 0 0 0 .517-.375z'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%2300C076' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m11.946 5.466-5.28 4.8-2.4-2.182'/%3e%3c/svg%3e",medical:U},PopupExpert=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:i,enableAnimation:o=!0,expertId:r,overwriteProfileProps:l,avatarFallback:s=x.C.getAssetPath("avatar.jpg")})=>{let{t:c}=(0,g.u)(),[d,p]=(0,n.useState)(null),[m,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(a&&r&&String(null==d?void 0:d.user_id)!==String(r)){u(!0);try{p(null),(0,I.c)((0,I.o)(_.D9.GET_EXPERT_BY_ID,{id:r}),"get").then(e=>{p(Object.assign(Object.assign({},null==e?void 0:e.data),l))})}catch(e){console.error(e)}u(!1)}},[a,r,null==d?void 0:d.user_id]),n.createElement(n.Fragment,null,n.createElement(Y,{"data-open":a,"data-animation":o,onClick:e=>e.stopPropagation()},m||!d?n.createElement(w.L,null):n.createElement("div",{className:"popup-content"},n.createElement("div",{className:"close-button",onClick:i},n.createElement("img",{src:G,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),n.createElement("div",{className:"main-info"},n.createElement("div",{className:"border-banner"}),n.createElement("div",{className:"avatar-title"},n.createElement(V,null,n.createElement("div",{className:"image-container"},n.createElement("div",{style:{position:"relative"}},n.createElement(y.I,{src:null==d?void 0:d.avatar,className:"profile-image",alt:"avatar",backupSrc:s}),n.createElement("img",{className:"badge-avatar",src:q[null==d?void 0:d.role],alt:"badge",loading:"lazy"})))),n.createElement(Z,null,n.createElement(T.T,{size:"s3",className:"full-name",weight:"semiBold"},null==d?void 0:d.display_name),n.createElement("div",null,n.createElement(T.T,{size:"p4",color:O.r.colors.gray800},null==d?void 0:d.specialty," • "),n.createElement("a",{href:null==d?void 0:d.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},n.createElement(T.T,{size:"p4",className:"organisation",color:O.r.colors.gray800,style:{textDecoration:"underline"}},null==d?void 0:d.organisation)))))),n.createElement(Z,null,n.createElement("div",{className:"experience"},n.createElement(T.T,{weight:"bold",size:"p4",color:O.r.colors.gray800,style:{paddingBottom:16}},c("expert.content.description").toUpperCase()),n.createElement("div",{className:"list-items"},null!=d&&!!d.experiences&&d.experiences.filter(e=>!!(e&&(e.title||e.organization))).slice(0,3).map((e,t)=>n.createElement(W,{key:t},n.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),n.createElement("div",{className:"text-contain"},n.createElement(k.H,{tag:"h6",color:O.r.colors.gray800},null==e?void 0:e.title),n.createElement(T.T,{size:"p2",color:O.r.colors.gray500},null==e?void 0:e.organization))))),n.createElement("a",{href:null==d?void 0:d.profile_url,style:{display:"inline-block",paddingTop:24}},n.createElement(T.T,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":(0,I.k)(t)+(null==d?void 0:d.profile_url)},c("home.seeExpert"))))))),n.createElement(j,{"data-open":a,onClick:e=>{e.stopPropagation(),i()}}))},Q=A.Z.div` position: fixed; left: 50%; width: 343px; background-color: ${O.r.colors.white}; border-radius: ${O.r.borderRadius}; box-shadow: 0px 0px 4px ${O.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; ${E.M.tdUp} { width: 750px; } &[data-animation='true'] { transition: all 0.5s ease-in-out; } &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } .popup-content { ${E.M.mbDown} { display: block; } display: flex; position: relative; z-index: 111; height: 100%; .button-see-more { margin: 32px 0; padding: 0; > * { display: inline-block; } } .close-button { position: absolute; z-index: 100; top: 10px; right: 10px; cursor: pointer; width: unset; height: unset; img { width: 100%; height: 100%; border-radius: 50%; } } } .main-info { padding-bottom: 32px; background-color: ${O.r.colors.primary50}; border-radius: ${O.r.borderRadius}; .btn-booking { display: flex; margin: 12px auto; } .avatar-title { position: relative; width: 100%; padding-top: 46px; text-align: center; } } `,X=A.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,J=A.Z.div` .image-container { .badge-avatar { position: absolute; right: 0; bottom: 0; top: 0; } } display: flex; justify-content: center; padding-bottom: 15px; text-align: center; .profile-image { width: 100px; min-width: 100px; height: 100px; min-height: 100px; border-radius: 50%; object-fit: cover; } .badge-avatar { width: 24px; height: 24px; } `,ee=A.Z.div` position: relative; z-index: 9; .specialty { display: block; min-width: 240px; } padding: 0px 16px; text-align: center; .specialty { justify-content: center; } .experience { padding: 16px 0px 32px; text-align: left; .btn-wrapper { margin-top: 24px; } } p { max-width: 100%; } `,PopupHospital=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:i,locale:o,isMobile:r,overwriteProfileProps:l,avatarFallback:s=x.C.getAssetPath("avatar.jpg"),trackingCategory:c="Together"})=>{let{t:d}=(0,g.u)(),[p,m]=(0,n.useState)(null),[u,h]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(e&&i&&String(null==p?void 0:p.id)!==String(i)){h(!0);try{m(null),(0,I.c)((0,I.g)(_.tC.GET_HOSPITAL_INFO,{hospital_branch_id:i,website_url:I.l[o]}),"get").then(e=>{m(Object.assign(Object.assign({},null==e?void 0:e._data.branch),l))})}catch(e){console.error(e)}h(!1)}},[e,i,null==p?void 0:p.id]);let E=(null==p?void 0:p.specialties)||[],f=(0,n.useMemo)(()=>E.map(e=>e.name),[E]);return n.createElement(n.Fragment,null,n.createElement(Q,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},u||!p?n.createElement(w.L,null):n.createElement("div",{className:"popup-content"},n.createElement("div",{className:"close-button",onClick:t},n.createElement("img",{src:G,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),n.createElement("div",{className:"main-info"},n.createElement("div",{className:"border-banner"}),n.createElement("div",{className:"avatar-title"},n.createElement(J,null,n.createElement("div",{className:"image-container"},n.createElement("div",{style:{position:"relative"}},n.createElement(y.I,{src:null==p?void 0:p.logo,className:"profile-image",alt:"avatar",backupSrc:s}),n.createElement("img",{className:"badge-avatar",src:U,alt:"badge",loading:"lazy"})))),n.createElement(ee,null,n.createElement(T.T,{size:"s3",weight:"semiBold",className:"full-name"},null==p?void 0:p.name),n.createElement("div",{className:"specialty"},E&&n.createElement(T.T,{size:"p4",color:O.r.colors.gray800},f.join(" • "),"•"),n.createElement("a",{href:(0,I.m)({id:p.id,name:p.name,slug:p.slug,locale:o}),className:"organisation",target:"_blank",rel:"noreferrer"},n.createElement(T.T,{size:"p4",className:"organisation",color:O.r.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.name))))),!r&&n.createElement("a",{href:(0,I.m)({id:p.id,name:p.name,slug:p.slug,locale:o})},n.createElement("div",{className:"btn-wrapper"},n.createElement(N.B,{color:"primary",size:"md",className:"btn-booking"},d("careBooking.bookAnAppointment"))))),n.createElement(ee,null,n.createElement("div",{className:"experience"},n.createElement(T.T,{weight:"bold",size:"s3",color:O.r.colors.gray800,style:{paddingBottom:16}},d("hospital.content.description").toUpperCase()),n.createElement(T.T,{size:"p2",color:O.r.colors.gray500},p.about),r?n.createElement("a",{href:(0,I.m)({id:p.id,name:p.name,slug:p.slug,locale:o})},n.createElement("div",{className:"btn-wrapper"},n.createElement(N.B,{color:"primary",size:"md",className:"btn-booking"},d("careBooking.bookAnAppointment")))):n.createElement("a",{href:(0,I.m)({id:p.id,name:p.name,slug:p.slug,locale:o})},n.createElement(T.T,{size:"s4",color:"#2D87F3",as:"span","data-event-category":c,"data-event-action":"See Full Hospital Profile","data-event-label":(0,I.k)(o)+(0,I.m)({id:p.id,name:p.name,slug:p.slug,locale:o})},d("home.seeHospital"))))))),n.createElement(X,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},ProfileDetailModal=({open:e,onClose:t,children:a,profileModalProps:i})=>{let{t:o}=(0,g.u)();return n.createElement(S.M,Object.assign({title:o("profilePanel.modal.heading"),titleProps:!0,className:"_2UKyiK1",opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",transitionProps:{transition:"slide-left"},styles:{header:{borderBottom:0},inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}}},i),a)};m().extend(h());let CardAuthor=e=>{let{className:t="",community:r,name:p,username:m,url:u,avatar:h,role:v,title:b,userType:N="user",expertId:T,specialty:A,organisation:_,isMarryBaby:w,doctorId:k,hospitalId:S,hasQuickBooking:P,handleMakeAppointment:M,communityTrackingAttr:B,isAnonymous:H,showDetailPopup:F,showChatbotButton:z=!1,subLine:$,authActionWrapper:G,profileProps:U,profileModalProps:Y,extendEle:j,avatarProps:V,hideInfo:Z,timeText:W,onCloseFromPost:K,onChatWithBot:q,avatarIcon:Q,badgeIconSize:X,hideBackground:J,children:ee,styles:et,dataEventCategory:ea,dataEventAction:en,dataEventLabel:ei}=e,{data:{locale:eo,router:er,env:{isMarryBaby:el,togetherBasePath:es}}}=(0,n.useContext)(I.T),{isMobile:ec}=(0,y.u)(),{t:ed}=(0,g.u)(),{classes:ep}=R(void 0,{name:"CardAuthor",styles:et}),em="boolean"==typeof w?w:el,eu=em?"marryBaby":"helloSites",eh=H?ed("cardPost.anonymous"):p||m||"",eg=H?x.C.getAssetPath("avatar.jpg"):h,eE=H?void 0:v,[ef,eC]=(0,n.useState)(!1),{asPath:ev}=er||{},eb=`https://${L.v[eo]}${ev}`,onAuthorClick=()=>{if(H)return!1;F?ex(!0):u&&(window.location.href=u)};(0,n.useEffect)(()=>{(0,E.t)(ef)},[ef]);let[ey,ex]=(0,n.useState)(!1),eI=(null==e?void 0:e.role)==="expert",eN=!!(k||S),eT=["expert"===eE&&_&&n.createElement("span",null,_),"expert"===eE&&A&&n.createElement("span",null,A),!("expert"===eE&&A&&_)&&(null==r?void 0:r.name)&&n.createElement("a",Object.assign({href:(null==r?void 0:r.slug)&&r.isActive&&!r.isHidden?`${es}/${null==r?void 0:r.slug}/`:void 0,className:"author-community-name"},B),`${null==r?void 0:r.name}`),W&&n.createElement("span",null,W)].filter(Boolean),[eO,eA]=(0,n.useState)(null);return(0,n.useEffect)(()=>{ey&&!eO&&("chatbot"===N?Promise.all([a.e(5231),a.e(7797),a.e(5454),a.e(5481),a.e(140),a.e(5718),a.e(3684),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(2582),a.e(6509),a.e(5308),a.e(4125),a.e(9715),a.e(7730),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413)]).then(a.bind(a,"XM2L")).then(e=>{eA(()=>e.ProfileChatbot)}):Promise.all([a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(5481),a.e(140),a.e(5718),a.e(3684),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(2582),a.e(6509),a.e(5308),a.e(4125),a.e(9715),a.e(7730),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413)]).then(a.bind(a,"aUqw")).then(e=>{eA(()=>e.ProfileDetail)}))},[ey,N]),n.createElement(D.Provider,{value:{displayName:eh,title:b,role:eE,siteType:eu,handleMakeAppointment:M,doctorId:k,hospitalId:S,currentUrl:eb}},n.createElement(ProfileDetailModal,{open:ey,onClose:()=>ex(!1),profileModalProps:Y},eO&&n.createElement(eO,Object.assign({currentPageUrl:ei,authActionWrapper:G,onCloseFromPost:()=>{ex(!1),null==K||K()},onChatWithBot:q},U,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:eg,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:k,hospitalId:S,hasQuickBooking:P,userType:N},null==U?void 0:U.authorProps)}))),"expert"===eE&&T?n.createElement(PopupExpert,{isOpen:ef,onClose:()=>eC(!1),expertId:T}):null,"expert"===eE&&k?n.createElement(PopupDoctor,{isOpen:ef,onClose:()=>eC(!1),doctorId:k,locale:eo}):null,"expert"===eE&&S?n.createElement(PopupHospital,{isOpen:ef,onClose:()=>eC(!1),hospitalId:S,locale:eo}):null,n.createElement("div",{className:`hhg-card-author ${ep.root} ${t} ${eI?"expert-author":""}`,"data-background":!J&&eI,"data-is-marrybaby":em},n.createElement(CardAuthor$1,{dataEventCategory:ea,dataEventAction:en,dataEventLabel:ei,onAvatarClick:onAuthorClick,avatarProps:Object.assign(Object.assign({avatar:H?x.C.getAssetPath(em?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):eg,username:eh},V),{style:{cursor:!H&&(u||F)?"pointer":"default"}}),avatarIcon:Q||eI&&n.createElement(i.Z,{size:X||15})},ee?n.createElement("div",{onClick:onAuthorClick},ee):!Z&&n.createElement(CardAuthor$1.Row,null,n.createElement(CardAuthor$1.ColLeft,null,n.createElement(s.k,{align:"center",onClick:onAuthorClick},n.createElement(CardAuthor$1.MainText,{onClick:onAuthorClick},eh,"chatbot"===N?n.createElement(n.Fragment,null," ",n.createElement(o.Z,{color:O.r.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}}),z&&n.createElement("div",{style:{marginTop:"8px"}},n.createElement(c.z,{color:"primary",size:"xs",variant:"filled",type:"button",leftIcon:n.createElement(C.I.App,{size:16}),onClick:()=>{null==q||q()}},ed("chatbot.with.me")))):n.createElement(AuthorBadgeItem,null))),$||n.createElement(CardAuthor$1.SubTextRow,{style:P?{position:"relative"}:{}},eT.map((e,t)=>n.createElement(n.Fragment,null,0!==t&&n.createElement(CardAuthor$1.SubDivider,null),n.createElement(CardAuthor$1.SubText,null,e))),P&&eN&&n.createElement(l.x,{sx:{marginTop:(0,d.h)(5)}},n.createElement(f.B,{bookingId:k||S,bookingType:k?"doctor":S?"hospital":void 0,size:ec?"xs":"sm"})))))),j&&j))};CardAuthor.MainText=CardAuthor$1.MainText,CardAuthor.SubText=CardAuthor$1.SubText,CardAuthor.SubTextRow=CardAuthor$1.SubTextRow,CardAuthor.SubDivider=CardAuthor$1.SubDivider,CardAuthor.AuthorBadge=AuthorBadgeItem,CardAuthor.DisplayName=()=>{let{displayName:e}=(0,n.useContext)(D);return n.createElement(l.x,null,e)}},u7wK:function(e,t,a){a.d(t,{D:function(){return DatePicker}});var n=a("FRPj"),i=a("q1tI"),o=a("8vDj"),r=a("gHhT"),l=a("catb"),s=a("LL/B"),c=a("nGnw"),d=a("XFb3"),p=a("eosF"),m=a("yNk5");let DatePicker=e=>{var t,{value:a,fullWidth:u=!0}=e,h=(0,n._)(e,["value","fullWidth"]);let g=(0,o.rZ)(),E="mb"===g.other.template,f=null===(t=s.I[m.env.UNIFY_LOCALE||p.L.Vietnam])||void 0===t?void 0:t.dateFormat;return i.createElement(l.a,Object.assign({locale:d.M[m.env.UNIFY_LOCALE||p.L.Vietnam],valueFormat:f,size:"md",clearable:!1,popoverProps:u?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:i.createElement(r.E,{src:c.C.getAssetPath(E?"MB-calendar.svg":"OutlineCalendar.svg"),width:18,height:18}),value:a,placeholder:f},h,{className:`input-control ${(null==h?void 0:h.className)||""}`}))}},IoIb:function(e,t,a){a.d(t,{D:function(){return Drawer}});var n=a("q1tI"),i=a("t/pd"),o=a("uuQu"),r=a("AeFk"),l=a("rBCA"),s=a("iBNF"),c=a("JgGI"),d=a("wp0n");let p="600ms",generateStyleBasedOnPlacement=(e,t)=>{switch(e){case"top":return r.iv` top: 0; width: 100%; border-radius: 0px 0px 6px 6px; ${t?r.iv` animation: ${c.a} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.d} ${p} ease-in-out forwards; } `;case"right":return r.iv` right: 0; height: 100%; min-width: 300px; border-radius: 6px 0px 0px 6px; ${t?r.iv` animation: ${c.c} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.g} ${p} ease-in-out forwards; } `;case"bottom":return r.iv` bottom: 0; width: 100%; border-radius: 6px 6px 0px 0px; ${t?r.iv` animation: ${c.s} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${p} ease-in-out forwards; } `;case"left":return r.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?r.iv` animation: ${c.b} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.f} ${p} ease-in-out forwards; } `;default:return r.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?r.iv` animation: ${c.s} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${p} ease-in-out forwards; } `}},m=l.Z.div` position: fixed; inset: 0; z-index: ${s.r.zIndexes.drawer}; pointer-events: ${e=>e.open?"auto":"none"}; `,u=l.Z.div` position: fixed; z-index: 300; background: #ffffff; visibility: ${e=>e.open?"visible":"hidden"}; max-height: calc(100vh - 100px); display: flex; flex-direction: column; .title { display: flex; align-items: center; justify-content: space-between; padding: 16px; ${e=>e.hasTitle?r.iv` border-bottom: 1px solid ${s.r.colors.neutral100}; `:null} } .close-button { margin-left: auto; } ${e=>generateStyleBasedOnPlacement(e.placement,e.open)} `,h=l.Z.div` min-height: 200px; padding: 16px; overflow-y: auto; `,g=l.Z.div` position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; background-color: rgba(38, 38, 38, 0.3); z-index: 1; &[data-open='false'] { visibility: hidden; pointer-events: none; } &[data-open='true'] { visibility: visible; pointer-events: auto; } `,Backdrop=({open:e=!1,onClickOutside:t})=>n.createElement(g,{"data-open":e,onClick:t}),Drawer=({children:e,title:t,onClose:a,open:r=!1,placement:l="left",destroyOnClose:s=!1,isPropagationEvent:c=!0,className:p})=>{let g=(0,n.useRef)();(0,n.useEffect)(()=>((0,o.t)(r),()=>(0,o.t)(!1)),[r]);let onCloseDrawer=()=>{g.current.classList.add("slideOut"),setTimeout(()=>{a()},800)};return!r&&s?null:n.createElement(i.h,null,n.createElement(m,{className:p,open:r},n.createElement(Backdrop,{open:r,onClickOutside:onCloseDrawer}),n.createElement(u,{open:r,placement:l,ref:g,hasTitle:!!t},n.createElement("div",{className:"title"},t&&n.createElement(d.T,{size:"s2",weight:"semiBold"},t),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:onCloseDrawer},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(h,{onClick:e=>{c&&e.stopPropagation()}},e&&(n.isValidElement(e)?e:"function"==typeof e?e({internalClose:onCloseDrawer}):null)))))}},nI2a:function(e,t,a){a.d(t,{A:function(){return AddressInput}});var n=a("FRPj"),i=a("q1tI"),o=a("OAL+"),r=a("aDCK"),l=a("fdQd"),s=a("LL/B"),c=a("Gx+P"),d=a("rCsv"),p=a("eosF"),m=a("yNk5");let generateGetAddressDetail=e=>`${s.f}/cities-data-${d.M[e]}.json`,u={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},reducer=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},mappingProvinceId=(e,t)=>{let a={};for(let[,e]of Object.entries(t)){let{id:t}=e;t&&(a[t]=e)}let n={};return e.map(e=>{n[e.name]=a[e.id]}),n},useAddress=({provinces:e})=>{let[t,a]=(0,i.useReducer)(reducer,u),{provinceByName:o,provinces:r,districts:l,wards:s,selectedProvince:c,selectedDistrict:d,selectedWard:h}=t,[g,E]=(0,i.useState)();return(0,i.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){var t,n,i;try{let o=yield fetch(generateGetAddressDetail(m.env.UNIFY_LOCALE||p.L.Vietnam)).then(e=>e.json());E(o);let{list:r}=o,l=e?mappingProvinceId(e,r):r,s=Object.keys(l),c=Object.keys((null===(t=r[s[0]])||void 0===t?void 0:t.list)||{}),d=Object.keys((null===(i=null===(n=r[s[0]])||void 0===n?void 0:n[c[0]])||void 0===i?void 0:i.list)||{});a({type:"SET_DATA",payload:{provinceByName:l,provinces:s,districts:c,wards:d}})}catch(e){console.error("Error fetching address data:",e)}})},[m.env.UNIFY_LOCALE]),{provinces:r,districts:l,wards:s,selectedProvince:c,selectedDistrict:d,selectedWard:h,handleProvinceChange:e=>{var t;let n=Object.keys((null===(t=o[e])||void 0===t?void 0:t.list)||{});a({type:"SET_DISTRICTS",payload:n}),a({type:"SET_WARDS",payload:[]}),a({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,n;let i=Object.keys((null===(n=null===(t=o[c])||void 0===t?void 0:t.list[e])||void 0===n?void 0:n.list)||{});a({type:"SET_WARDS",payload:i}),a({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{a({type:"SELECT_WARD",payload:e})}}},AddressInput=e=>{var{error:t,provinces:a,placeholder:s}=e,d=(0,n._)(e,["error","provinces","placeholder"]);let{t:p}=(0,c.u)(),{provinces:m,districts:u,wards:h,selectedProvince:g,selectedDistrict:E,selectedWard:f,handleProvinceChange:C,handleDistrictChange:v,handleWardChange:b}=useAddress({provinces:a}),[y,x]=(0,i.useState)("");return(0,i.useEffect)(()=>{g&&E&&f&&y?d.onChange({selectedProvince:g,selectedDistrict:E,selectedWard:f,extraInfo:y}):d.onChange(null)},[g,E,f,y]),i.createElement(l.I.Wrapper,Object.assign({withAsterisk:!0},d),i.createElement(o.K,null,i.createElement(l.S,{placeholder:(null==s?void 0:s.province)||p("onboarding.similac.input.city"),data:a?m:m.sort(),searchable:!0,onChange:C,value:g}),i.createElement(l.S,{placeholder:(null==s?void 0:s.district)||p("onboarding.similac.input.district"),data:u.sort(),searchable:!0,onChange:v,value:E,disabled:!g}),i.createElement(l.S,{placeholder:(null==s?void 0:s.ward)||p("onboarding.similac.input.ward"),searchable:!0,data:h.sort(),value:f,onChange:b,disabled:!g||!E}),i.createElement(l.I,{placeholder:(null==s?void 0:s.address)||p("onboarding.similac.input.no"),disabled:!g||!E||!f,value:y,onChange:x,style:{marginBottom:0}})),i.createElement(r.I.Error,{size:"md"},t))}},R7WV:function(e,t,a){a.d(t,{I:function(){return ImageWrap},u:function(){return useScreenSize}});var n=a("q1tI"),i=a("uuQu"),o=a("FRPj"),r=a("rBCA");let getIsMobile=()=>"undefined"!=typeof window&&window.innerWidth"undefined"!=typeof window&&window.innerWidth>=i.B.BREAK_POINT_MOBILE&&window.innerWidth{let[e,t]=(0,n.useState)(getIsMobile()),[a,i]=(0,n.useState)(getIsLargeMobile());return(0,n.useEffect)(()=>{let handleResize=()=>{t(getIsMobile()),i(getIsLargeMobile())};return window.addEventListener("resize",handleResize,{passive:!0}),()=>{window.removeEventListener("resize",handleResize)}},[]),{isMobile:e,isLargeMobile:a}},ImageWrap=e=>{var{alt:t,backupSrc:a,src:i,placeholderSrc:r,style:s,ref:c}=e,d=(0,o._)(e,["alt","backupSrc","src","placeholderSrc","style","ref"]);let[p,m]=(0,n.useState)(!1);return n.createElement(l,Object.assign({loading:"lazy",alt:t,onError:()=>!p&&m(!0),src:p?a||i:i||a,style:Object.assign(Object.assign({},r?{backgroundImage:`url(${r})`}:{}),s),"data-has-placeholder":!!r,ref:c},d))},l=r.Z.img` &[data-has-placeholder='true'] { background-position: center; background-repeat: no-repeat; background-size: cover; } `},"5cWD":function(e,t,a){a.d(t,{T:function(){return TextDivider}});var n=a("q1tI"),i=a("rBCA"),o=a("LaLE"),r=a("wp0n");let l=i.Z.div` background-color: var(--neutral50); padding: 12px 0; box-shadow: inset 0px 1px 0px #e4e8ec; > * { display: grid; grid-template-columns: 32px 1fr; align-content: center; p { font-weight: 600; } } .icon-wrapper { display: flex; align-items: center; } `,TextDivider=({children:e,icon:t,className:a,style:i})=>n.createElement(l,{style:i,className:a},n.createElement(o.C,null,n.createElement("div",{className:"icon-wrapper"},t),n.createElement(r.T,{size:"c1",color:"var(--neutral800)"},e)))},l9Yf:function(e,t,a){a.d(t,{I:function(){return Input},L:function(){return Label},S:function(){return m},a:function(){return p},b:function(){return d}});var n=a("FRPj"),i=a("q1tI"),o=a("8vDj"),r=a("rBCA"),l=a("iBNF"),s=a("uuQu");let c=r.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${l.r.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${l.r.colors.gray200}; border-radius: ${l.r.borderRadius}; &:active, &:focus, &.focused { border-color: ${e=>e.color}; box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } &:disabled { background-color: ${l.r.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${l.r.sizes.fwRegular}; ${s.M.mbDown} { font-size: 22px; line-height: 1.2; } ${s.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${l.r.sizes.fwRegular}; line-height: 22px; ${s.M.mbDown} { font-size: 14px; line-height: 1.2; } ${s.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${l.r.sizes.fwRegular}; line-height: 20px; ${s.M.mbDown} { font-size: 13px; line-height: 1.5; } ${s.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,d=r.Z.label` color: ${l.r.colors.red700}; font-weight: ${l.r.sizes.fwRegular}; `,p=r.Z.div` position: absolute; top: 50%; right: 16px; cursor: pointer; transform: translateY(-50%); `,m=r.Z.div` position: absolute; top: 50%; left: 16px; display: inline-flex; cursor: default; transform: translateY(-50%); `,Label=({children:e,className:t,style:a,htmlFor:n,size:o})=>i.createElement("label",{"data-size":o,className:`DjBFAbd ${t||""}`,style:a,htmlFor:n},e),Input=e=>{var{name:t,value:a,errorMessage:r,isNumerousKeyboard:l=!1,showErrorMessage:s=!0,actionIcon:u,displayIcon:h,onActionClick:g,label:E,className:f,onChange:C,isDisabled:v,CustomInput:b,size:y,style:x,autoComplete:I="off",type:N="text",inputClassName:T,trackingAttributes:O,enterKeyHint:A}=e,_=(0,n._)(e,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);let w=(0,o.rZ)(),k=(0,i.useMemo)(()=>O?{"data-event-category":O.dataEventCategory,"data-event-action":O.dataEventAction,"data-event-label":O.dataEventLabel}:{},[O]);return i.createElement(c,{"data-size":y,className:f,"data-has-action-icon":!!u||void 0,"data-has-display-icon":!!h||void 0,"data-has-error":r&&r.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:x},E&&i.createElement(Label,{size:"label2",htmlFor:t,className:"inputLabel"},E),i.createElement("div",{style:{position:"relative"}},b||i.createElement("input",Object.assign({id:t,name:t,onChange:e=>C&&C(e.target.value),type:N,"aria-label":N,value:a,disabled:v,autoComplete:I,inputMode:l||"number"===N?"numeric":N,pattern:l?"[0-9]*":".*",className:T,enterKeyHint:A},k,_)),h&&i.createElement(m,{className:"displayIcon"},h),u&&i.createElement(p,{className:"actionIcon",onClick:g},u)),r&&r.length>0&&s&&i.createElement(d,{className:"errorLabel"},r))}},"LL/B":function(e,t,a){a.d(t,{A:function(){return Y},B:function(){return F},C:function(){return M},D:function(){return P},E:function(){return L},F:function(){return B},G:function(){return U},H:function(){return S},I:function(){return H},L:function(){return A},Q:function(){return l},S:function(){return w},U:function(){return O},V:function(){return R},Z:function(){return j},a:function(){return V},b:function(){return N},c:function(){return k},d:function(){return D},e:function(){return Z},f:function(){return G},g:function(){return $},h:function(){return z},i:function(){return W},j:function(){return T},k:function(){return _},p:function(){return d}});var n,i,o,r,l,s,c,d,p=a("EikE"),m=a("OT65"),u=a("G2RZ"),h=a("YNYf"),g=a("R43W"),E=a("+xLi"),f=a("tO2/"),C=a("YJaS"),v=a("tiWT"),b=a("xrdX"),y=a("UIg8"),x=a("GOBr"),I=a("eosF");let N="",T="https://id.hellobacsi.com/",O="userGeoLocationCoordinates",A={"vi-VN":{PHONE:"+84",LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},_=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],w={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},k=[I.L.Vietnam,I.L.Indonesia,I.L.Thailand,I.L.Malaysia,I.L.Myanmar],S=[I.L.Indonesia,I.L.PhilippinesEnglish,I.L.PhilippinesTagalog,I.L.Thailand],L=["vi-VN"],P=["id-ID"],M=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],D=["vi-VN","id-ID"],R=[I.L.Vietnam,I.L.Taiwan],B={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(n=l||(l={})).bmi="mi",n.gender="gndr",n.age="ge",n.slug="slug",n.resultId="resultId",n.bmr="mr",n.height="gt",n.weight="wght",n.source="surc",n.type="tp",n.startDate="sd",n.additional="tnl",n.week="wk",n.twins="twn",n.weightBefore="wb",n.yourself="yrslf",n.intensity="sy",n.rate="rt",n.method="mthd",n.day="dy",n.pwg="pwg",n.cycle="le",n.period="prd",n.access_token="tkn",n.name="nm",n.id="id",n.activityLevel="actl",n.status="status",n.birthday="brd";let H={[I.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[I.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[I.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[I.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[I.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[I.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[I.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[I.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[I.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[I.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[I.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},F="hhg_user_token",z="hhg_user_refresh_token",$={[I.L.PhilippinesEnglish]:p.Z,[I.L.Vietnam]:m.default,[I.L.Cambodia]:u.Z,[I.L.India]:h.Z,[I.L.Indonesia]:g.Z,[I.L.Myanmar]:p.Z,[I.L.Malaysia]:E.Z,[I.L.Thailand]:f.Z,[I.L.Taiwan]:C.Z},G="https://cdn.hellohealthgroup.com/countries",U="_ga",Y="YYYY-MM-DD",j=9999999,V=305,Z="video_item_detail";(i=s||(s={}))[i.UNAVAILABLE=0]="UNAVAILABLE",i[i.AVAILABLE=1]="AVAILABLE",(o=c||(c={}))[o.FIXED=1]="FIXED",o[o.STARTING=2]="STARTING",o[o.RANGE=3]="RANGE",(r=d||(d={})).VACCINE="VACCINE",r.IVF="IVF",r.EGG_FREEZING="EGG_FREEZING",r.HEALTH_SCREENER="HEALTH_SCREENER";var W=Object.freeze({__proto__:null,basePath:N,SSO_URL:T,USER_GEOLOCATION_COORDINATES_COOKIE:O,LOCALE_SPECS:A,COUNTRY_LIST:_,STATIC_PAGES:w,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:k,HAS_CLINITY_DOWNLOAD_SITE:S,ECOM_LOCALES:L,DATA_PRIVACY_LOCALES:P,CARE_LOCALES:M,CARE_BOOKING_LOCALES:D,VIDEO_LOCALES:R,FAVICONS:B,get QUERY_HEALTH_TOOL(){return l},ISO_FORMAT:H,BEARER_TOKEN_COOKIE:F,BEARER_REFRESH_TOKEN_COOKIE:z,DATE_FNS_LOCALE:$,CDN_ADDRESS:G,GA_TOKEN_COOKIE:U,API_DATE_FORMAT:Y,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:j,ZINDEX_HEADER:V,VIDEO_DETAIL_TEMP_STORAGE:Z,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},siteHost:v.Cf,siteOptions:v.x9,COUNTRY_CURRENCY_SYMBOL:v.Z5,domainLocales:b.v,MAP_DOMAIN_BY_LOCALE:b.f,get RISK_SCREENER_NAME(){return y.t},RISK_SCREENER_SLUG:y.n,isProduction:x.y})},S2kL:function(e,t,a){a.d(t,{A:function(){return ArticleDetailCard},C:function(){return ClinicInfo},D:function(){return DoctorExpertise},E:function(){return i},H:function(){return HospitalInfo},M:function(){return Mobile},N:function(){return NavHeader},P:function(){return PopupCollectPhone},U:function(){return UserProfileNavigation},a:function(){return UserStats},b:function(){return CollectPhoneForm},c:function(){return ProductInsuranceInfo},d:function(){return Check},e:function(){return Clock},f:function(){return ed},g:function(){return HelloZalo},h:function(){return Ellipse},i:function(){return PhoneInactive}});var n,i,o=a("q1tI"),r=a("Gx+P"),l=a("27Mu"),s=a("nGnw"),c=a("n/N3"),d=a("iBNF"),p=a("VwLB"),m=a("nsdv"),u=a("LgdP"),h=a("VTF6"),g=a("rBCA"),E=a("uuQu"),f=a("mYVa"),C=a("iuhU"),v=a("SPK5"),b=a("Eso5"),y=a("GcSG"),x=a("xXM3"),I=a.n(x),N=a("LL/B"),T=a("Aqof"),O=a("MmHG"),A=a("cE8s"),_=a("FRPj"),w=a("Iblh"),k=a("21Mw"),S=a("A9bs"),L=a("fdQd"),P=a("ZLal"),M=a("8wjV"),D=a("XFb3"),R=a("wp0n"),B=a("R7WV"),H=a("wy+U");let Check=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 81 80",fill:"none"},e),o.createElement("circle",{cx:39.5,cy:40,r:36,fill:"#00B16A"}),o.createElement("path",{d:"M25.6113 40.5543L34.5002 51.6654L53.3891 28.332",stroke:"white",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Clock=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),o.createElement("path",{d:"M6 11.25C8.8995 11.25 11.25 8.8995 11.25 6C11.25 3.10051 8.8995 0.75 6 0.75C3.10051 0.75 0.75 3.10051 0.75 6C0.75 8.8995 3.10051 11.25 6 11.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6 3.25V6L8 7.75",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ellipse=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 4 4",fill:"none"},e),o.createElement("circle",{cx:2,cy:2,r:2,fill:"#BFBFBF"})),HelloZalo=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 85 49",fill:"none"},e),o.createElement("g",{clipPath:"url(#clip0_4296_167461)"},o.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:12,transform:"rotate(-9 0.446777 6.57019)",fill:"url(#paint0_linear_4296_167461)"})),o.createElement("g",{filter:"url(#filter0_d_4296_167461)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.0704 15.8758C22.0399 15.6835 21.9937 15.478 21.949 15.2821C21.8766 14.911 21.6943 14.5612 21.4056 14.242C20.7176 13.4843 19.8778 13.1977 18.9096 13.394C18.3946 13.5068 18.0388 13.811 17.8488 14.2998C17.6892 14.7096 17.7052 15.1677 17.8916 15.5559C18.0774 15.9402 18.4069 16.2218 18.8154 16.3484C19.03 16.4217 19.1016 16.5041 19.1099 16.6921L19.1108 16.6978L20.8289 27.5452C20.8334 27.5738 20.8363 27.6046 20.8395 27.6372C20.8469 27.7083 20.8568 27.7828 20.8777 27.8537C20.9096 27.9931 20.875 28.0708 20.7489 28.1493C20.1621 28.5233 19.9468 29.0863 20.112 29.8214C20.2773 30.5818 20.9404 31.0467 21.7218 30.9522C21.7563 30.9487 21.7906 30.9433 21.8249 30.9378C23.2472 30.7126 24.1124 29.3478 24.0029 28.2253C23.9862 28.021 23.9665 27.8231 23.9343 27.6194L23.0054 21.7549C22.9023 21.1037 22.801 20.4522 22.6998 19.8007C22.4943 18.5158 22.2877 17.1862 22.0704 15.8758Z",fill:"url(#paint1_radial_4296_167461)"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1017 28.7679C16.8433 28.7015 16.7458 28.5783 16.7271 28.3002L14.9771 17.251C14.9662 17.1083 15.0045 17.03 15.1188 16.963C15.1867 16.923 15.258 16.8805 15.3117 16.8251C15.8063 16.374 15.9509 15.6484 15.6692 15.0158C15.3717 14.3817 14.7876 14.0585 14.1038 14.1531C14.0867 14.1558 14.0696 14.1586 14.0524 14.1613C13.2432 14.2894 12.6134 14.7249 12.1809 15.4571C11.8782 15.9734 11.7746 16.5637 11.8774 17.213L12.8469 23.3345C13.0116 24.3741 13.1798 25.4113 13.3473 26.4446C13.5146 27.4759 13.6813 28.5035 13.8444 29.5336C13.9855 30.4247 14.6791 31.4391 15.9127 31.6985C16.2352 31.7626 16.5295 31.7726 16.8018 31.7294C16.9598 31.7044 17.1091 31.6612 17.2535 31.5993C17.8075 31.3633 18.1509 30.7955 18.1257 30.1554C18.1011 29.5074 17.681 28.9377 17.1017 28.7679Z",fill:"url(#paint2_radial_4296_167461)"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.5518 28.5261L33.4621 28.3666L33.2972 28.4103C33.1886 28.4392 32.6966 28.5366 32.2214 28.6295C31.1557 28.8392 31.0258 28.8695 30.9791 28.8945L30.8763 28.9479L30.8966 29.0637C31.1931 30.7266 30.2735 31.9692 29.3939 32.5281C29.032 32.7572 28.6159 32.9519 28.1252 33.1194C26.8906 33.5199 25.613 33.7222 24.3304 33.7205C23.7168 33.7161 23.1571 33.633 22.6675 33.4744C21.9917 33.2496 21.4545 32.8155 21.0733 32.183C20.9885 32.0422 20.9077 31.8891 20.8296 31.7415C20.7378 31.5686 20.6533 31.4044 20.5743 31.2881C20.2226 30.7309 19.5433 30.5086 18.9603 30.7591C18.3548 31.015 18.0228 31.6297 18.1511 32.2555C18.2243 32.6186 18.3468 32.9486 18.5761 33.3983C18.8115 33.849 19.142 34.2846 19.5269 34.6569C20.2278 35.3481 21.0901 35.8264 22.1587 36.1158C23.1874 36.3998 24.2868 36.4892 25.5177 36.386C25.9642 36.3464 26.3817 36.2959 26.7778 36.2332C27.6213 36.0996 28.3625 35.912 29.0561 35.6577C30.085 35.2898 30.9185 34.8338 31.6054 34.2663C32.9455 33.1523 34.1597 31.7732 33.5518 28.5261Z",fill:"url(#paint3_radial_4296_167461)"}),o.createElement("path",{d:"M30.3378 16.8439C26.9562 17.3795 24.6466 20.6048 25.1898 24.034C25.7329 27.4632 28.9261 29.8169 32.3077 29.2813C35.6893 28.7457 37.9989 25.5205 37.4557 22.0913C36.9126 18.662 33.7194 16.3083 30.3378 16.8439ZM34.6453 22.5364C34.9397 24.3947 33.6885 26.1446 31.8568 26.4347C30.0251 26.7248 28.2948 25.4491 28.0002 23.5889C27.7058 21.7305 28.957 19.9806 30.7887 19.6905C32.6204 19.4004 34.3507 20.6761 34.6453 22.5364Z",fill:"url(#paint4_radial_4296_167461)"}),o.createElement("path",{d:"M32.7364 23.0984C32.7097 22.328 32.0636 21.7251 31.2933 21.7517C30.5229 21.7784 29.92 22.4245 29.9466 23.1948C29.9733 23.9652 30.6194 24.5681 31.3898 24.5415C32.1601 24.5148 32.763 23.8687 32.7364 23.0984Z",fill:"url(#paint5_radial_4296_167461)"})),o.createElement("path",{d:"M68.2974 17.9266C68.8728 18.0177 69.4481 18.1088 70.0248 18.2002C69.4816 21.569 68.9476 24.9406 68.4232 28.3123C67.8724 28.144 66.8779 28.3563 66.7847 27.573C67.2588 24.3542 67.8003 21.1432 68.2974 17.9266Z",fill:"#0068FF"}),o.createElement("path",{d:"M50.6775 15.2582C53.3548 15.6795 56.0318 16.0856 58.7044 16.5282C58.6025 17.0496 58.4825 17.6162 58.064 17.9844C55.874 19.9719 53.7183 21.9951 51.5296 23.9828C53.471 24.3027 55.4156 24.6024 57.3589 24.9102C57.2507 25.3591 57.3264 25.9141 56.9689 26.2617C56.7434 26.4872 56.4118 26.4113 56.1337 26.37C53.7044 25.9715 51.2689 25.6119 48.8428 25.2015C48.9308 24.6889 49.0263 24.1211 49.4505 23.769C51.6175 21.7875 53.8035 19.8254 55.9633 17.8373C54.1135 17.547 52.265 17.2391 50.4124 16.9663C50.4904 16.3958 50.5847 15.8264 50.6775 15.2582Z",fill:"#0068FF"}),o.createElement("path",{d:"M73.9347 21.2294C75.9287 21.104 77.8179 22.6996 78.0446 24.6794C78.3933 26.757 76.8148 28.9114 74.7254 29.1964C72.937 29.5249 71.0326 28.4246 70.4014 26.7243C69.8948 25.4618 70.0924 23.9451 70.9067 22.8574C71.6036 21.8941 72.7509 21.2908 73.9347 21.2294ZM73.6319 22.9329C72.3914 23.1613 71.532 24.4907 71.8077 25.718C72.0144 26.8698 73.1867 27.7401 74.3502 27.5807C75.6656 27.4784 76.6666 26.115 76.4099 24.8275C76.2252 23.5636 74.8801 22.6385 73.6319 22.9329Z",fill:"#0068FF"}),o.createElement("path",{d:"M59.4453 20.3739C60.5538 19.3727 62.2662 19.0638 63.6311 19.6992C64.0843 19.8934 64.4747 20.1972 64.8481 20.5134C64.864 20.3867 64.8943 20.1344 64.9103 20.0077C65.4512 20.0906 65.9901 20.1774 66.531 20.2603C66.129 22.7812 65.727 25.3021 65.3341 27.8258C64.9388 27.7522 64.5277 27.7352 64.1502 27.5929C63.8943 27.4383 63.8571 27.1258 63.7872 26.8646C62.1123 27.7871 59.811 27.1531 58.7952 25.546C57.6906 23.9701 57.991 21.6311 59.4453 20.3739ZM61.5751 21.0577C60.264 21.2982 59.4084 22.8028 59.8547 24.0558C60.2132 25.2647 61.6485 25.9759 62.8263 25.5273C63.9114 25.1603 64.5807 23.9286 64.3155 22.817C64.0781 21.6164 62.7719 20.7578 61.5751 21.0577Z",fill:"#0068FF"}),o.createElement("path",{d:"M50.7263 1.42608C52.1821 1.42705 53.6267 1.65448 55.0566 1.91395L54.9152 2.00841C52.8428 2.94085 51.0183 4.38272 49.5862 6.14245C46.7159 9.66507 45.1671 14.1229 44.6491 18.5996C44.2607 22.25 44.553 26.0288 45.8972 29.4683C46.1165 30.0804 46.5513 30.6594 46.451 31.3446C46.2763 32.821 45.3317 34.0887 44.1839 34.982C44.2377 35.0593 44.2901 35.1363 44.3438 35.2136C45.1036 36.3622 45.9347 37.4603 46.7113 38.5979C47.8003 40.3074 49.1014 41.8745 50.1593 43.6066C47.9922 43.2963 45.7889 43.0505 43.7164 42.3084C41.1101 41.3608 39.0181 39.1185 38.2728 36.4462C37.8103 34.8964 37.8588 33.253 38.0552 31.666C39.2081 24.378 40.3622 17.0916 41.5176 9.80546C41.9328 7.37463 42.9815 4.92865 44.9816 3.39361C46.5812 2.07834 48.6606 1.3876 50.7263 1.42608Z",fill:"#0068FF"}),o.createElement("path",{d:"M54.9152 2.00841C55.2292 1.97016 55.5473 1.99304 55.8599 2.03293C61.2199 2.9025 66.5867 3.72914 71.9484 4.58798C73.3793 4.83248 74.8363 4.96427 76.2247 5.40825C78.171 5.87049 79.9352 7.00503 81.1923 8.55554C82.7539 10.6052 83.3345 13.2927 82.9654 15.823C81.8407 22.9326 80.7098 30.0466 79.591 37.1544C79.5656 37.193 79.5158 37.2731 79.4902 37.313C77.2405 39.1481 74.4417 40.1882 71.6072 40.6988C67.792 41.3594 63.8519 41.1423 60.093 40.25C56.34 39.3201 52.6631 37.719 49.7694 35.1051C48.0036 35.5774 46.1268 35.6486 44.3438 35.2136C44.2901 35.1363 44.2377 35.0593 44.1839 34.982C45.3317 34.0887 46.2763 32.821 46.451 31.3446C46.5513 30.6594 46.1165 30.0804 45.8972 29.4683C44.553 26.0288 44.2607 22.25 44.6491 18.5996C45.1671 14.1229 46.7159 9.66507 49.5862 6.14245C51.0183 4.38272 52.8428 2.94085 54.9152 2.00841ZM68.2974 17.9266C67.8003 21.1432 67.2588 24.3542 66.7847 27.573C66.8779 28.3563 67.8724 28.144 68.4232 28.3123C68.9476 24.9406 69.4816 21.569 70.0248 18.2002C69.4481 18.1088 68.8728 18.0177 68.2974 17.9266ZM50.6775 15.2582C50.5847 15.8264 50.4904 16.3958 50.4124 16.9663C52.265 17.2391 54.1135 17.547 55.9633 17.8373C53.8035 19.8254 51.6175 21.7875 49.4505 23.769C49.0263 24.1211 48.9308 24.6889 48.8428 25.2015C51.2689 25.6119 53.7044 25.9715 56.1337 26.37C56.4118 26.4113 56.7434 26.4872 56.9689 26.2617C57.3264 25.9141 57.2507 25.3591 57.3589 24.9102C55.4156 24.6024 53.471 24.3027 51.5296 23.9828C53.7183 21.9951 55.874 19.9719 58.064 17.9844C58.4825 17.6162 58.6025 17.0496 58.7044 16.5282C56.0318 16.0856 53.3548 15.6795 50.6775 15.2582ZM73.9347 21.2294C72.7509 21.2908 71.6036 21.8941 70.9067 22.8574C70.0924 23.9451 69.8948 25.4618 70.4014 26.7243C71.0326 28.4246 72.937 29.5249 74.7254 29.1964C76.8148 28.9114 78.3933 26.757 78.0446 24.6794C77.8179 22.6996 75.9287 21.104 73.9347 21.2294ZM59.4453 20.3739C57.991 21.6311 57.6906 23.9701 58.7952 25.546C59.811 27.1531 62.1123 27.7871 63.7872 26.8646C63.8571 27.1258 63.8943 27.4383 64.1502 27.5929C64.5277 27.7352 64.9388 27.7522 65.3341 27.8258C65.727 25.3021 66.129 22.7812 66.531 20.2603C65.9901 20.1774 65.4512 20.0906 64.9103 20.0077C64.8943 20.1344 64.864 20.3867 64.8481 20.5134C64.4747 20.1972 64.0843 19.8934 63.6311 19.6992C62.2662 19.0638 60.5538 19.3727 59.4453 20.3739Z",fill:"white"}),o.createElement("path",{d:"M61.5753 21.0583C62.7721 20.7584 64.0782 21.6169 64.3156 22.8176C64.5809 23.9292 63.9115 25.1608 62.8264 25.5278C61.6487 25.9765 60.2133 25.2652 59.8549 24.0564C59.4085 22.8034 60.2641 21.2988 61.5753 21.0583Z",fill:"white"}),o.createElement("path",{d:"M73.6318 22.9336C74.88 22.6391 76.2251 23.5643 76.4099 24.8281C76.6665 26.1157 75.6656 27.479 74.3502 27.5814C73.1866 27.7408 72.0143 26.8705 71.8077 25.7187C71.5319 24.4913 72.3914 23.1619 73.6318 22.9336Z",fill:"white"}),o.createElement("path",{d:"M79.4899 37.3134L79.6141 37.2149C79.3371 39.3198 78.764 41.4713 77.4398 43.1739C75.8969 45.1731 73.4695 46.4549 70.9462 46.5887C69.5321 46.6548 68.1179 46.4954 66.7259 46.2571C62.4354 45.5789 58.1453 44.898 53.8548 44.2199C52.6242 44.0043 51.3785 43.8661 50.1589 43.607C49.1011 41.8749 47.7999 40.3078 46.711 38.5984C45.9343 37.4608 45.1033 36.3627 44.3435 35.214C46.1264 35.649 48.0033 35.5778 49.769 35.1055C52.6628 37.7194 56.3397 39.3205 60.0926 40.2504C63.8515 41.1427 67.7916 41.3598 71.6068 40.6993C74.4413 40.1886 77.2402 39.1485 79.4899 37.3134Z",fill:"#005BE0"}),o.createElement("defs",null,o.createElement("filter",{id:"filter0_d_4296_167461",x:7.83887,y:13.3341,width:33.696,height:31.0933,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.createElement("feOffset",{dy:4}),o.createElement("feGaussianBlur",{stdDeviation:2}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4296_167461"}),o.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4296_167461",result:"shape"})),o.createElement("linearGradient",{id:"paint0_linear_4296_167461",x1:21.4468,y1:6.57019,x2:21.4468,y2:48.5702,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#68B8FE"}),o.createElement("stop",{offset:1,stopColor:"#2C89F3"})),o.createElement("radialGradient",{id:"paint1_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20.9589 22.0707) rotate(81) scale(8.89343 2.07462)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint2_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(14.9033 23.0283) rotate(81) scale(8.89098 2.07896)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint3_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26.2523 32.9125) rotate(81) scale(3.36206 7.90006)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint4_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3227 23.0626) rotate(81) scale(6.29618 6.20942)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint5_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3415 23.1466) rotate(-1.98088) scale(1.39571 1.39571)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("clipPath",{id:"clip0_4296_167461"},o.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:10.5,transform:"rotate(-9 0.446777 6.57019)",fill:"white"})))),Mobile=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none"},e),o.createElement("path",{d:"M11.3889 1.55566H5.61115C4.62931 1.55566 3.83337 2.3516 3.83337 3.33344V12.6668C3.83337 13.6486 4.62931 14.4446 5.61115 14.4446H11.3889C12.3708 14.4446 13.1667 13.6486 13.1667 12.6668V3.33344C13.1667 2.3516 12.3708 1.55566 11.3889 1.55566Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M7.38892 1.55566V2.44455H9.61114V1.55566",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M8.49997 12.4448C8.99089 12.4448 9.38886 12.0468 9.38886 11.5559C9.38886 11.065 8.99089 10.667 8.49997 10.667C8.00905 10.667 7.61108 11.065 7.61108 11.5559C7.61108 12.0468 8.00905 12.4448 8.49997 12.4448Z",fill:"currentColor"})),PhoneInactive=e=>o.createElement("svg",Object.assign({className:"callTrigger",width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none"},e),o.createElement("path",{d:"M14.4198 11.4486L12.526 11.2306C12.0676 11.178 11.6167 11.3358 11.2935 11.659L9.9032 13.0493C8.8368 12.5082 7.8696 11.8025 7.03391 10.9661C6.19747 10.1304 5.4918 9.1632 4.95071 8.0968L6.34101 6.70649C6.66416 6.38334 6.82198 5.93243 6.76938 5.47401L6.55144 3.58018C6.46125 2.82115 5.82247 2.25 5.05592 2.25H3.75579C2.90658 2.25 2.20015 2.95643 2.25276 3.80564C2.45191 7.01386 3.83395 9.89894 5.96751 12.0325C8.10106 14.166 10.9861 15.5481 14.1944 15.7472C15.0436 15.7998 15.75 15.0934 15.75 14.2442V12.9441C15.75 12.1775 15.1788 11.5387 14.4198 11.4486Z",fill:"#8C8C8C"})),F={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};function NavHeader({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){let{t:n}=(0,r.u)(),i=(0,o.useMemo)(()=>{let t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"},[null==e?void 0:e.username,null==e?void 0:e.name]);return o.createElement("div",{className:"uJQBNNg",onClick:()=>{t&&t()}},o.createElement(p.A,{className:"TfG3dM5",type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===a?d.r.mbColors.pink:d.r.colors.secondaryBase}),o.createElement("div",{className:"aMtjFNf"},o.createElement("div",{className:"cSz2RR-"},(null==e?void 0:e.name)||(null==e?void 0:e.username)),o.createElement("div",{className:"GyFm00F",style:{"--bg-hellosites":`url(${s.C.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${s.C.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}let z={myHealth:d.r.mbColors.toneYellow,myCommunity:d.r.mbColors.toneBlue,mySaved:d.r.mbColors.toneGreen},$={helloSites:{myBooking:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},NavigationCard=({type:e,themeName:t,className:a,onClick:n=()=>void 0})=>{let{t:i}=(0,r.u)(),l=(0,o.useMemo)(()=>{var a,n;return(null===(n=null===(a=$[t])||void 0===a?void 0:a[e])||void 0===n?void 0:n.call(a))||""},[e,t]),s=(0,o.useMemo)(()=>"marryBaby"!==t?"transparent":z[e],[e,t]);return o.createElement("div",{onClick:function(){n(e)},className:`fVk18fq ${a}`},o.createElement("div",{className:"mx7T4V3",style:{backgroundColor:s,backgroundImage:`url("${l}")`}}),o.createElement("h3",{className:"v8TCvUb"},i(`userProfile.nav.card.${e}`)))},navMenuItemsHelloSites=()=>[{key:"userProfile.nav.menu.accountSettings",icon:s.C.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]},{key:"userProfile.nav.menu.dataPrivacy",link:"data-privacy",disableLocale:["vi-VN","ms-MY","km-KH","en-PH","th-TH","my-MM","zh-TW","hi-IN","tl-PH"]}]},{key:"userProfile.nav.menu.help",icon:s.C.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}],navMenuItemsMarryBaby=()=>[{key:"userProfile.nav.menu.password",icon:s.C.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:s.C.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}];var G={navMenu:"gn6HmGG",navMenuItem:"FCx8FEM",navMenuItemContent:"zMiRxaE",navMenuItemIcon:"lZ2Z9MQ",navMenuItemDropdown:"rwm-agG",navFooterSubMenu:"qMOscoq"};let NavMenu=({themeName:e,locale:t,onClickItem:a})=>{let[n,i]=(0,o.useState)(""),r=(0,o.useMemo)(()=>"marryBaby"===e?navMenuItemsMarryBaby():navMenuItemsHelloSites(),[e]);function handleParentItemClick(e){e.subMenu?i(t=>t?"":e.key):a&&a(e)}return o.createElement("div",{className:G.navMenu},r.map(e=>o.createElement(NavMenuItem,{key:e.key,item:e,openKey:n,onClickItem:handleParentItemClick,locale:t})))},NavMenuItem=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;let{t:l}=(0,r.u)();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:o.createElement("div",{className:`${G.navMenuItem} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},o.createElement("div",{className:G.navMenuItemContent,onClick:()=>a(e)},e.icon&&o.createElement("div",{className:G.navMenuItemIcon,style:{backgroundImage:`url("${e.icon}")`}}),l(e.key),e.subMenu&&o.createElement("div",{className:G.navMenuItemDropdown,style:{"--after-bg":`url(${s.C.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&o.createElement("div",{className:G.navFooterSubMenu},e.subMenu.map(e=>o.createElement(NavMenuItem,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n}))))};var U={userStats:"_4y-O0w3",wrapper:"kO8iNgD",header:"a1d4E10",headerIcon:"Tdguxxf",headerTitle:"-mOxsaU",headerPoints:"yPeDBNZ"};let Y={helloSites:{member:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>s.C.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>s.C.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},UserStats=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{let{t:n}=(0,r.u)(),i=(0,o.useMemo)(()=>{var a,n;return(null===(n=null===(a=Y[e])||void 0===a?void 0:a[t])||void 0===n?void 0:n.call(a))||""},[t,e]);return o.createElement("div",{className:U.userStats,"data-user-rank":t},o.createElement("div",{className:U.wrapper},o.createElement("div",{className:U.header},o.createElement("div",{className:U.headerIcon,style:{backgroundImage:`url("${i}")`}}),o.createElement("h3",{className:U.headerTitle},n(`userProfile.userRank.${t}`)),a>0&&o.createElement("p",{className:U.headerPoints},a," ",n("userProfile.nav.header.count.posts")))))},UserProfileNavigation=({SSO_URL:e,UP_BASEPATH:t="user",themeName:a="helloSites",cardUrls:n=F,enableCare:i,enableTogether:d,enableEcom:p,enableMySaved:h,userInfo:g,togetherApiDomain:E,userPostsNumber:f,onClickNavigationCard:C,onClickMyProfileButton:v,onClickMenuItem:b,onClickLogout:y,isUserProfileNavigatorMenuHidden:x=!1,isMyHealthEnabled:I=!1,locale:N})=>{let{t:T}=(0,r.u)(),[O,A]=(0,o.useState)(f||0),_="marryBaby"===a;(0,o.useEffect)(()=>{if(g&&void 0===f){let e=(0,l.ej)("hhg_user_token");e&&fetch((0,c.n)((0,m.b)(N,_,E)),{headers:{Authorization:`Bearer ${e}`}}).then(e=>e.json()).then(e=>{var t,a,n;(null==e?void 0:e.status)===1&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&A((null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===n?void 0:n.total_items)||0)}).catch(e=>console.error("Error fetching post number",e))}},[N,null!==g,f,E,_]);let w=(0,o.useMemo)(()=>(_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter(e=>"myBooking"===e?i:"myCommunity"===e?d:"myHealth"===e?I:"eCom"===e?p:"mySaved"!==e||h),[_,I]),k=(0,o.useMemo)(()=>"marryBaby"===a?null:o.createElement(u.B,{color:"tertiary",icon:o.createElement("img",{src:s.C.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:"XIyViFs"},T("userProfile.nav.menu.logout")),[a]),push=a=>{a.startsWith("http")||a.startsWith("/")?window.location.href=(0,c.e)(a):e&&(window.location.href=(0,c.e)(`${e}${t}/${a}`))},handleClickCardItem=e=>{let t=n[e];C?C(t):push(t)};return g?o.createElement("div",{className:"-AZt1au","data-theme":a},o.createElement(NavHeader,{userInfo:g,themeName:a,onClickMyProfileButton:()=>{v?v():push("profile")}}),o.createElement(UserStats,{themeName:a,rank:"member",numberOfPosts:O}),o.createElement("div",{className:"IvSIfCI"},w.map(e=>o.createElement(NavigationCard,{className:"eahCJov",key:e,themeName:a,type:e,onClick:handleClickCardItem}))),!x&&o.createElement(o.Fragment,null,o.createElement(NavMenu,{themeName:a,locale:N,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(b?b(e.link):push(e.link))}}),k)):null},j=g.Z.div` ${E.M.mbUp} { margin: 0; } color: ${d.r.colors.gray1000}; margin-bottom: 1rem; .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; ${E.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; color: ${d.r.colors.gray700}; } } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; padding: 0.75rem 0 0; font-weight: 500; ${E.M.mbUp} { padding: 0; font-weight: 600; } } .txt-hours { font-weight: 500; color: ${d.r.colors.gray1000}; } `,V=g.Z.div` ${E.M.mbUp} { padding: 8px 0; gap: 4px; } display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid ${d.r.colors.neutral100}; &:last-child { border-bottom: 0; } `;function OpeningHours({workingTimes:e}){let{t}=(0,r.u)(),a=(0,o.useMemo)(()=>{let a=[],n="";return h.w.forEach(t=>{let i=e[t];if(i){let e=i.map(e=>`${e.start_at}-${e.end_at}`).join("|");n===e?a[a.length-1]=[...a[a.length-1],t]:a.push([t]),n=e}}),a.map(a=>{var n;if(!a.length)return null;let i=t(`workingDays.${a[0]}`);return a.length>1&&(i=`${i} - ${t(`workingDays.${a.at(-1)}`)}`),{day:i,value:null===(n=e[a[0]])||void 0===n?void 0:n.map(e=>`${e.start_at.slice(0,5)} - ${e.end_at.slice(0,5)}`).join(", ")}})},[e]);return o.createElement(j,null,o.createElement("div",{className:"txt-body-2"},t("detail.openHours")),o.createElement("div",{className:"opening-hours-container"},a.map((e,t)=>o.createElement(V,{className:"txt-body-1",key:t},o.createElement("div",null,null==e?void 0:e.day),o.createElement("div",{className:"txt-hours"},null==e?void 0:e.value)))))}let getHospitalUrl=(e,t)=>{var a;return`/${null===(a=T.L[e])||void 0===a?void 0:a.HOSPITAL}/${t.slug}-${t.id}`},Z=g.Z.div` position: relative; min-height: calc(var(--mapHeight) + var(--card-height)); &:not([data-has-card]) { --mapCardHeight: calc(var(--mapHeight) + 32px); height: var(--mapCardHeight); } strong { font-weight: 700; &::after { content: ' '; } } iframe { max-width: 100%; /* padding-top: calc(var(--mapHeight) / var(--mapWidth) * 100%); */ } &[data-has-floating-card='true'] { --card-height: 0; .card { position: absolute; top: 10px; left: 10px; max-width: 329px; } } .map { width: 100%; height: var(--mapHeight); border-radius: 6px 6px 0px 0px; @media (max-width: 768px) { height: auto; } } .infoList { display: flex; margin-top: 8px; svg { min-width: 24px; margin-right: 8px; } } a { text-decoration: none; } .directions { margin-top: 16px; } .directionsNo { display: inline-block; margin-top: 8px; margin-bottom: 24px; color: ${d.r.colors.primaryBase}; } `,W=g.Z.div` padding: 16px; border: 1px solid ${d.r.colors.neutral200} background: ${d.r.colors.white} border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 0; border-top-right-radius: 0; max-width: 100%; &:not([data-is-full-width]) { @media (min-width: 768px) { width: var(--mapWidth); } } `,K=g.Z.div` margin-top: 4px; color: ${d.r.colors.gray600}; font-size: 14px; line-height: 22px; letter-spacing: -0.1px; address { display: inline; } .dots { display: inline-flex; margin: 0 0.5rem; vertical-align: middle; ~ span { color: ${d.r.colors.gray500}; } } `,q=g.Z.a` display: flex; align-items: center; span { color: ${d.r.colors.gray500}; } svg { margin: 0 8px; } `,Q=(0,g.Z)(u.B)` margin-top: 12px; width: max-content; `,X=g.Z.div` ${E.M.mbUp} { display: flex; gap: ${(0,f.h)(24)}; padding: 0 ${(0,f.h)(24)} ${(0,f.h)(24)}; } color: #111111; padding: 0 ${(0,f.h)(16)} ${(0,f.h)(16)}; .name { ${E.M.mbUp} { font-weight: 600; } font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; } address { ${E.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; font-style: normal; } font-size: 0.8125rem; line-height: 1.25rem; font-weight: 400; } .contact-item { display: inline-flex; align-items: center; padding: 8px 12px; gap: 8px; border: ${d.r.colors.neutral100} 1px solid; border-radius: 12px; a { text-decoration: none; color: currentColor; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; } } /* .map-card { border: none; } */ `,J=(0,g.Z)(e=>{let{className:t,hospital:a,hasNoCard:n,isFullWidth:i,height:l=256,width:s=768,isUsingEmbedMap:c=!0,isCardFloating:m=!1,distance:u,isLoggedIn:h,locale:g,googleMapKey:E,onPhoneHospital:f,dataEventCategory:C,dataEventAction:v,dataEventLabel:b}=e,{latitude:x,longitude:T,address:A,name:_}=a,w=parseFloat(x),k=parseFloat(T),S={lng:k,lat:w},L=(0,o.useRef)(null),{t:P}=(0,r.u)(),M=o.useCallback(function(e){setTimeout(()=>{e.setZoom(14),e.setCenter(S)},100)},[]),D={"--mapHeight":l+"px","--mapWidth":s+"px","--card-height":n||m||!L.current?0:L.current.clientHeight+"px"};return o.createElement(Z,{className:I()(t),style:D,"data-has-card":!n||void 0,"data-has-floating-card":m||void 0},o.createElement("div",{className:"map"},c?o.createElement("iframe",{width:s,height:l,style:{border:0},className:"aspect-ratio-map",loading:"lazy",allowFullScreen:!0,src:`https://www.google.com/maps/embed/v1/place?key=${E}&q=${a.latitude},${a.longitude}&zoom=14`}):o.createElement(y.LoadScript,{googleMapsApiKey:E||""},o.createElement(y.GoogleMap,{mapContainerClassName:"map",center:S,zoom:14,onLoad:M,options:{mapTypeControl:!1,fullscreenControl:!1}},o.createElement(y.Marker,{position:S}))),n?null:o.createElement(W,{className:I()("map-card"),"data-is-full-width":i||void 0,ref:L},o.createElement(q,{href:`${N.b}${getHospitalUrl(g,a)}`},o.createElement(O.T,{size:"s2",type:"semiBold"},_)),o.createElement(K,null,o.createElement("address",null,A),void 0!==u&&o.createElement(o.Fragment,null,o.createElement(p.I,{iconSize:4,wrapperSize:16,svgIcon:{fill:d.r.colors.gray400},wrapperStyle:{transform:"translateY(-2px)"}},o.createElement(Ellipse,null)),o.createElement("span",null,u," km"))),a.phone&&o.createElement(Q,{size:"md",color:"tertiary",isBlock:!1,onClick:f,icon:o.createElement(PhoneInactive,null),dataEventCategory:C,dataEventAction:v,dataEventLabel:b},h||"ms-MY"===g?a.phone:P("doctorInfoComponent.loginToCall")))))})` &.panel-map { --mapCardHeight: --cardHeight; } iframe { ${E.M.mbUp} { width: ${(0,f.h)(180)}; height: ${(0,f.h)(180)}; } border-radius: 12px; overflow: hidden; } `,ee=(0,g.Z)(Mobile)` width: 1rem; height: 1rem; `,et=(0,g.Z)(e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),o.createElement("path",{d:"M2 4.66668C2 4.31305 2.14048 3.97392 2.39052 3.72387C2.64057 3.47382 2.97971 3.33334 3.33333 3.33334H12.6667C13.0203 3.33334 13.3594 3.47382 13.6095 3.72387C13.8595 3.97392 14 4.31305 14 4.66668V11.3333C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3333V4.66668Z",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 4.66666L8 8.66666L14 4.66666",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})))` width: 1rem; height: 1rem; `,ea=g.Z.div` ${E.M.mbUp} { padding: 0; display: flex; flex-direction: column; gap: 24px; } .clinic-content { display: flex; flex-direction: column; ${E.M.mbUp} { gap: 8px; } gap: 12px; } padding-top: 1rem; padding-bottom: 1rem; padding-left: 4.5px; padding-right: 4.5px; flex: 1; & > * + * { margin-top: 0.75rem; } `,en=g.Z.div` display: flex; flex-wrap: nowrap; gap: 0.75rem; `,ei=(0,g.Z)(p.D)` border-radius: 0.75rem !important; `,eo=g.Z.div` display: flex; gap: 4px; flex-direction: column; ${E.M.mbUp} { flex-direction: row; } .contact-item { width: fit-content; } `;function ClinicInfo(e){let{hospitalInfo:t,distance:a,isLoggedIn:n,locale:i,googleMapKey:r,onPhoneHospital:l,dataEventCategory:s,dataEventAction:c,dataEventLabel:d}=e,p={latitude:t.latitude||"",longitude:t.longitude||"",address:t.address||"",name:t.name||"",phone:t.phone||"",email:t.email||""};return o.createElement(X,null,o.createElement(J,{dataEventAction:c,dataEventCategory:s,dataEventLabel:d,googleMapKey:r,hasNoCard:!0,hospital:p,locale:i,isLoggedIn:n,isFullWidth:!0,height:220,className:"panel-map",onPhoneHospital:l}),o.createElement(ea,null,o.createElement("div",{className:"clinic-content"},o.createElement("div",{className:"name"},t.name),o.createElement(en,null,o.createElement("address",null,t.address),a&&o.createElement("div",{style:{flexShrink:0}},o.createElement(ei,{value:`${a} km`}))),o.createElement(eo,null,t.phone&&o.createElement("div",{className:"contact-item"},o.createElement(ee,null),o.createElement("a",{href:`tel:${t.phone}`},(0,A.f)(t.phone))),t.email&&o.createElement("div",{className:"contact-item"},o.createElement(et,null),o.createElement("a",{href:`mailto:${null==t?void 0:t.email}`},t.email)))),t.working_times&&o.createElement(OpeningHours,{workingTimes:t.working_times})))}let er=g.Z.div` .mantine-Input-input.custom_input { /* font-size: 16px; */ } .info { display: flex; flex-direction: column; gap: 24px; align-items: center; padding: 24px 16px; h5 { font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.4px; text-align: center; } .description { color: ${d.r.colors.gray700}; text-align: center; font-size: 0.8125rem; font-weight: 400; line-height: 1.25rem; letter-spacing: -0.3px; } } .mb-1 { margin-bottom: 4px; } .w-full { width: 100%; } .px-3 { padding-left: 12px; padding-right: 12px; } .action { padding: 8px 16px; &.actionBox { border-top: 0.5px solid ${d.r.colors.neutral100}; } } `,el=(0,g.Z)(M.B)` &.mantine-Button-root { border-radius: 12px; border: 1px solid; font-size: 15px; &.tertiary { border-color: ${d.r.colors.neutral200}; } } .mantine-Button-label { display: flex; align-items: center; justify-content: center; gap: 8px; } `;(0,g.Z)(p.a)``;let es=(0,g.Z)(L.P)` --custom-primary-text: #111111; .PhoneInputCountry { pointer-events: none; --phone-select: 58px; } &.PhoneInput { .PhoneInputCountry { } .PhoneInputCountryIconCallingCode { color: var(--custom-primary-text); } .PhoneInputInput { color: var(--custom-primary-text) !important ; :focus { color: var(--custom-primary-text) !important ; } } } `,ec=(0,g.Z)(L.I.Wrapper)` --phone-input-space-x: -8px; .mantine-Text-root[data-size='c1'] { font-size: 0.75rem; } .mantine-Text-root[data-size='p3'] { font-size: 0.8125rem; } .mantine-Text-root[data-size='p2'] { font-size: 0.9375rem; } `,ed={ZALO:"Zalo",WHATS_APP:"Whatsapp"};function CollectPhoneForm({onSubmit:e,title:t,formType:a=ed.ZALO,isLoading:n,locale:i}){let{t:l}=(0,r.u)(),[s,c]=(0,o.useState)(""),[d,p]=(0,o.useState)(""),[m,u]=(0,o.useState)(!1),{classes:h}=(0,k.u)(),validatePhone=e=>{try{if(!e){p(l("collectPhoneNumber.phoneRequired"));return}let t=(0,S.parsePhoneNumber)(e,"VN");(null==t?void 0:t.isValid())?p(""):p(l("collectPhoneNumber.inputInvalid"))}catch(e){p(l("collectPhoneNumber.inputInvalid"))}},handleChange=e=>{validatePhone(e),c(e)};return o.createElement(er,null,o.createElement("div",{className:"info"},a===ed.ZALO&&o.createElement(HelloZalo,{width:84,height:48})," ",o.createElement("h5",{className:"px-3"},t||l("collectPhoneNumber.title",{name:a})),o.createElement(k.T,{shrink:!!s,className:(0,C.default)("leadgen-form_input w-full",{"leadgen-form_field_error":!!(m&&d)})},o.createElement(k.T.Control,{htmlFor:"collection_phone_input"},({shrink:e})=>o.createElement(ec,{"data-invalid":!!(m&&d),labelElement:"div",label:o.createElement(R.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},l("collectPhoneNumber.inputLabel")),inputWrapperOrder:["label","input","description","error"],error:m&&d&&o.createElement(v.k,{align:"center",gap:4},o.createElement(L.E,{size:12}),o.createElement(R.T,{size:"c1",variant:"error"},d))},o.createElement(b.x,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,P.G)(e)[P.C.LEADGEN].p2),{fontWeight:P.F.halfBold})})},o.createElement(es,{inputId:"collection_phone_input",onChange:handleChange,className:`mantine-Input-input ${h.p2}`,name:"phoneNumber",spellCheck:!1,placeholder:" ",defaultCountry:i&&D.M[i]||"VN",type:"text",value:s,"data-control":"tel",countries:["VN"],arrowComponent:()=>o.createElement(o.Fragment,null)})))))),o.createElement("div",{className:"action actionBox"},o.createElement(el,{variant:"primary",onClick:()=>{validatePhone(s),u(!0);let t=(0,S.parsePhoneNumber)(s,"VN");if(t&&t.isValid()){let a=t.countryCallingCode;e({phone:t.nationalNumber,countryCode:t.country,callingCode:(null==a?void 0:a.includes("+"))?a:`+${a}`})}},fullWidth:!0,size:"lg",loading:n},o.createElement("div",null,l("collectPhoneNumber.action")),o.createElement("img",{src:"data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.04169 13.5416L12.5834 9.99998L9.04169 6.45831' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"arrow icon",width:20,height:20}))))}function CollectPhoneSuccess({onClose:e}){let{t}=(0,r.u)();return o.createElement(er,null,o.createElement("div",{className:"info"},o.createElement(Check,{width:80,height:80}),o.createElement("div",null,o.createElement("h5",{className:"mb-1"},t("collectPhoneNumber.titleSuccess")),o.createElement("p",{className:"description"},t("collectPhoneNumber.descriptionSuccess")))),o.createElement("div",{className:"action"},o.createElement(el,{variant:"tertiary",onClick:e,fullWidth:!0,size:"lg"},t("common.action.close"))))}function PopupCollectPhone({children:e,isMobile:t,onSubmit:a,isOpen:n,onOpenChange:r,drawerProps:l={}}){let s=(0,w.q)(n),[c,d]=(0,o.useState)(i.FORM),[m,{open:u,toggle:h,close:g}]=s,[E,f]=(0,o.useState)(!1),handleOpenChange=e=>{e?u():g(),null==r||r(e)},handleClose=()=>{handleOpenChange(!1)};return(0,o.useEffect)(()=>{m&&d(i.FORM)},[m]),(0,o.useEffect)(()=>{handleOpenChange(n)},[n]),o.createElement(o.Fragment,null,"function"==typeof e?e(s):o.createElement("div",{onClick:h},e),o.createElement(p.a,Object.assign({isOpen:m,onClose:handleClose,onOpenChange:handleOpenChange,isMobile:t,fadeFromIndex:N.Z-9e6,zIndex:N.Z,repositionInputs:!1,isLinear:c===i.SUCCESS},l),c===i.FORM&&o.createElement(CollectPhoneForm,{onSubmit:e=>(0,_.a)(this,void 0,void 0,function*(){try{f(!0),yield a(e),d(i.SUCCESS)}catch(e){console.log("\uD83D\uDE80 ~ handleSubmit ~ error:",e)}finally{f(!1)}}),isLoading:E}),c===i.SUCCESS&&o.createElement(CollectPhoneSuccess,{onClose:handleClose})))}(n=i||(i={}))[n.FORM=0]="FORM",n[n.SUCCESS=1]="SUCCESS";let ep=g.Z.div` display: flex; align-items: center; justify-content: space-between; gap: 12px; .hospitalName { color: #111111; font-size: 0.8125rem; font-weight: 500; line-height: 1.25rem; } .hospitalStatus { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; font-size: 0.6875rem; line-height: 1rem; color: ${d.r.colors.red600}; &[data-is-opened='true'] { color: ${d.r.colors.primaryBase}; } } .distanceTag { padding: 4px 0px; } .flex-1 { flex: 1 1 0%; } `,em=(0,g.Z)(B.I)` /* object-contain object-center aspect-square */ width: 44px; height: 44px; background-color: ${d.r.colors.neutral50}; padding: 2px; object-fit: contain; object-position: center; border-radius: 8px; flex-shrink: 0; aspect-ratio: 1; align-self: baseline; `,eu=(0,g.Z)(Clock)` width: 12px; height: 12px; `,eh=(0,g.Z)(p.S)` flex-shrink: 0; color: ${d.r.colors.gray400}; width: 12px; height: 12px; transform: rotate(90deg); & > path { stroke-width: 1.5; } `,eg=(0,g.Z)(p.D)` & > span { color: ${d.r.colors.gray800}; } & { border: none; } `,checkHospitalStatus=e=>{if(!e)return!1;let t=new Date,a=h.w.at(t.getDay()-1),n=e[a];return null==n?void 0:n.some(e=>{let[a,n]=e.start_at.split(":").map(parseInt),[i,o]=e.end_at.split(":").map(parseInt),r=t.getHours(),l=t.getMinutes();return a===i&&i==r?!(lo):!(ri)})};function HospitalInfo({hospitalInfo:e,distance:t,className:a}){let{t:n}=(0,r.u)(),[i,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{l(checkHospitalStatus(e.working_times))},[e.working_times]),o.createElement(ep,{className:a},o.createElement(em,{src:e.logo,backupSrc:s.C.getAssetPath("avatar.jpg"),alt:"hospital"}),o.createElement("div",{className:"flex-1"},o.createElement("div",{className:"hospitalName"},e.name),e.working_times&&null!==i&&o.createElement("div",{className:"hospitalStatus","data-is-opened":i},o.createElement(eu,null),o.createElement(R.T,{size:"p3",weight:"regular",color:"inherit"},n(i?"hospital.status.opening":"hospital.status.closed"))),t&&o.createElement(eg,{className:I()({distanceTag:null===e.working_times}),value:`${t} km`})),o.createElement(eh,null))}let eE=g.Z.div` padding: 0 1rem 1.25rem; & > :not(:first-child) { margin-top: 1.25rem; } .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; color: ${d.r.colors.gray700}; } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; color: ${d.r.colors.gray800}; font-weight: 600; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${d.r.colors.gray800}; } h3 { padding: 1rem 0; } `,ef=(0,g.Z)(H.I)` gap: 8px; margin-top: 1rem; & .insuranceItem > .insuranceLogo { height: 64px; border-radius: 12px; border-color: ${d.r.colors.neutral100}; & > img { height: auto; aspect-ratio: 109/64; } } `;function ProductInsuranceInfo({hospitalInfo:e,isMobile:t=!1}){let{t:a}=(0,r.u)(),n=(null==e?void 0:e.accepted_payments)&&e.accepted_payments.length>0;return o.createElement(eE,{id:"insurance-container"},o.createElement("div",null,o.createElement("h3",{className:"txt-body-2"},a("common.insurance")),o.createElement("p",{className:"txt-body-1"},a("common.insuranceIntro")),o.createElement(ef,{insurances:e.insurances,isName:!1})),n&&o.createElement("div",null,o.createElement("h3",{className:"txt-body-2"},a("common.paymentMethods")),o.createElement(H.P,{payments:e.accepted_payments,isMobile:t})))}let Credential=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("path",{d:"M10.7146 13.4812L11.5779 12.7568C11.7779 12.589 12.0312 12.4968 12.2923 12.4968H13.419C13.9579 12.4968 14.4201 12.1101 14.5135 11.579L14.709 10.469C14.7546 10.2112 14.889 9.97901 15.089 9.81124L15.9523 9.08679C16.3657 8.74012 16.4701 8.14679 16.2001 7.68012L15.6368 6.70346C15.5057 6.47679 15.459 6.21235 15.5046 5.95457L15.7001 4.84457C15.7935 4.31346 15.4923 3.79235 14.9857 3.6079L13.9268 3.22235C13.6812 3.13346 13.4757 2.96012 13.3446 2.73346L12.7812 1.75679C12.5112 1.29012 11.9457 1.08346 11.439 1.2679L10.3801 1.65346C10.1346 1.74235 9.86568 1.74235 9.62012 1.65346L8.56123 1.2679C8.05457 1.08346 7.48901 1.28901 7.21901 1.75679L6.65568 2.73346C6.52457 2.96012 6.31901 3.13235 6.07346 3.22235L5.01457 3.6079C4.5079 3.79235 4.20679 4.31346 4.30012 4.84457L4.49568 5.95457C4.54123 6.21235 4.49457 6.47679 4.36346 6.70346L3.80012 7.68012C3.53012 8.14679 3.63457 8.74012 4.0479 9.08679L4.91123 9.81124C5.11123 9.97901 5.24568 10.2123 5.29123 10.469L5.48679 11.579C5.58012 12.1101 6.04234 12.4968 6.58123 12.4968H7.7079C7.96901 12.4968 8.22234 12.589 8.42234 12.7568L9.28568 13.4812C9.69901 13.8279 10.3012 13.8279 10.7146 13.4812Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M13.6114 15.2778V19.1667L10.0003 16.3889L6.38916 19.1667V15.2778",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.0001 9.69347C11.2274 9.69347 12.2223 8.69855 12.2223 7.47125C12.2223 6.24395 11.2274 5.24902 10.0001 5.24902C8.77275 5.24902 7.77783 6.24395 7.77783 7.47125C7.77783 8.69855 8.77275 9.69347 10.0001 9.69347Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Education=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("g",{clipPath:"url(#clip0_2422_9990)"},o.createElement("path",{d:"M15.5 15.5003C14.678 15.5003 13.956 15.0983 13.5 14.4863V18.5003C13.5 18.7023 13.622 18.8853 13.809 18.9623C13.996 19.0413 14.21 18.9973 14.354 18.8543L15.5 17.7083L16.646 18.8543C16.742 18.9503 16.87 19.0003 17 19.0003C17.064 19.0003 17.13 18.9883 17.191 18.9623C17.378 18.8853 17.5 18.7023 17.5 18.5003V14.4863C17.044 15.0983 16.322 15.5003 15.5 15.5003Z",fill:"currentColor"}),o.createElement("path",{d:"M11.75 17.25H5.25C4.145 17.25 3.25 16.355 3.25 15.25V4.75C3.25 3.645 4.145 2.75 5.25 2.75H13.75C14.855 2.75 15.75 3.645 15.75 4.75V8",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 6.75H12.75",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 10H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 13.2505H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15.5 15.5C16.8807 15.5 18 14.3807 18 13C18 11.6193 16.8807 10.5 15.5 10.5C14.1193 10.5 13 11.6193 13 13C13 14.3807 14.1193 15.5 15.5 15.5Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_2422_9990"},o.createElement("rect",{width:18,height:18,fill:"white",transform:"translate(1 1)"})))),Highlight=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("path",{d:"M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2.22217 17.7777L5.5555 14.4443",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M1.94434 13.6112L2.49989 13.0557",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.38867 18.0556L6.94423 17.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),eC=(0,o.createContext)({id:"",name:"",specialty:"",experience:"",profileImage:"",clinics:"",educations:[],expertise:"",otherHighlights:[]}),DoctorExpertiseProvider=({children:e,value:t})=>o.createElement(eC.Provider,{value:t},e),ev=g.Z.div` display: flex; align-items: center; flex-direction: column; background-color: ${d.r.colors.blue50}; border-radius: 12px; padding: 0px 4px 4px; .body-section { width: 100%; height: 100%; } `,eb=g.Z.div` background-color: #ffffffcc; border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; .flex-item-doctor-info { display: flex; flex-direction: column; gap: 12px; } `,ey=g.Z.div` cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; `,ex=g.Z.div` display: flex; justify-content: flex-end; `,eI=(0,g.Z)(H.A)` width: 0.65rem; height: 0.65rem; & > path { stroke-width: 1.25; } `,DoctorExpertise=e=>{var t,a,n,i;let{className:l,doctorInformation:s,onClickReadMore:c,children:p,isShowReadMoreButton:m,style:u,defaultProfileImage:h}=e,{t:g}=(0,r.u)(),E=(null===(t=null==s?void 0:s.clinics)||void 0===t?void 0:t.length)>0||(null===(a=null==s?void 0:s.educations)||void 0===a?void 0:a.length)>0||p||m;return o.createElement(DoctorExpertiseProvider,{value:s},o.createElement(ev,{className:l,style:u},o.createElement(H.a,{name:s.name,specialty:s.specialty,experience:s.experience,profileImage:s.profileImage||h}),E&&o.createElement(eb,{className:"body-section"},o.createElement("div",{className:"flex-item-doctor-info"},(null===(n=null==s?void 0:s.clinics)||void 0===n?void 0:n.length)>0&&o.createElement(H.D,{doctorInfo:s.clinics,Icon:H.C,title:g("common.clinicHospital")}),(null===(i=null==s?void 0:s.educations)||void 0===i?void 0:i.length)>0&&o.createElement(H.D,{doctorInfo:s.educations,Icon:Education,title:g("common.education")}),p),m&&o.createElement(ex,null,o.createElement(ey,{onClick:c},o.createElement(R.T,{size:"p2",weight:"halfBold",color:d.r.colors.primaryBase},g("common.readMore")),o.createElement(eI,null))))))};DoctorExpertise.Expertise=()=>{let{expertise:e}=(0,o.useContext)(eC),{t}=(0,r.u)();return e?o.createElement(H.D,{doctorInfo:e,Icon:Credential,title:t("common.expertiseCredentials")}):null},DoctorExpertise.OtherHighlights=()=>{let{otherHighlights:e}=(0,o.useContext)(eC),{t}=(0,r.u)();return e?o.createElement(H.D,{doctorInfo:e,Icon:Highlight,title:t("common.otherHighlights")}):null};let eN=g.Z.div` display: flex; flex-direction: column; gap: ${(0,f.h)(12)}; `,eT=g.Z.div` display: flex; flex-direction: column; gap: ${(0,f.h)(8)}; `,eO=g.Z.div` display: flex; flex-direction: column; gap: ${(0,f.h)(4)}; `,eA=g.Z.div` display: flex; gap: ${(0,f.h)(4)}; align-items: center; `,e_=g.Z.span` color: ${d.r.colors.gray600}; `,ArticleDetailCard=e=>{let{article:t,doctor:a,className:n,style:i,handleClick:l,altText:s}=e,{articleType:c,articleTitle:p,articleTypeColor:m,image:u,defaultImage:h}=t||{},{doctorName:g,doctorAvatar:E,defaultDoctorAvatar:C}=a||{},{t:v}=(0,r.u)();return o.createElement(eN,{className:n,style:i,onClick:l},o.createElement(B.I,{alt:s||p||"article-image",src:u||h,style:{width:"100%",height:(0,f.h)(143.5),objectFit:"cover",borderRadius:(0,f.h)(4)}}),o.createElement(eT,null,o.createElement(eO,null,o.createElement(R.T,{color:m||d.r.colors.green600,size:"c1",weight:"halfBold"},c),o.createElement(R.T,{size:"p2",weight:"semiBold",color:d.r.colors.gray800,lineClamp:2},p)),o.createElement(eA,null,o.createElement(B.I,{alt:`${v("common.articleCard.reviewedDoctor")} ${g}`,src:E||C,style:{width:(0,f.h)(20),height:(0,f.h)(20),borderRadius:"50%"}}),o.createElement("div",null,o.createElement(R.T,{size:"c1",weight:"regular",color:d.r.colors.gray800,lineClamp:1},o.createElement(e_,null,v("common.articleCard.reviewedDoctor"),":")," ",g)))))}},"UG+c":function(e,t,a){a.d(t,{D:function(){return Dropdown}});var n=a("q1tI"),i=a("8vDj"),o=a("rBCA"),r=a("iBNF");let l=o.Z.div` --dropdown-padding: 12px 18px 12px 16px; position: relative; box-sizing: border-box; border: 1px solid ${r.r.colors.gray200}; background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat; background-position: right 16px center; border-radius: ${r.r.borderRadius}; &[data-disabled='true'], :disabled { background-color: #f2f2f2; cursor: not-allowed; } &[data-size='sm'] { font-size: 13px; line-height: 20px; } &[data-size='md'] { font-size: 14px; line-height: 21px; } &[data-size='lg'] { font-size: 16px; line-height: 24px; } &[data-has-icons='true'] { border: none; background: ${r.r.colors.gray100}; img, svg { display: inline-block; max-width: 16px; margin-right: 6px; } span { display: inline-block; vertical-align: middle; } &:hover { box-shadow: none; } > div { position: relative; display: flex; width: 100%; box-sizing: border-box; align-items: center; } > div::after { position: absolute; top: 50%; right: 12px; width: 10px; height: 8px; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; content: ''; transform: translateY(-50%); } } &:hover { box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } &[data-is-native='true'] { padding: var(--dropdown-padding); line-height: 24px; &:focus { box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } } `,s=o.Z.div` padding: var(--dropdown-padding); cursor: pointer; &.with-label { padding-top: 34px; padding-bottom: 12px; } &[data-dropdown-open] { padding: 11px 15px 11px 15px; border: 1px solid ${e=>e.color}; border-radius: ${r.r.borderRadius}; box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } `,c=o.Z.ul` position: absolute; top: 100%; /* right: 0; */ min-width: 100%; left: 0; display: block; margin-top: 4px; background: ${r.r.colors.white}; border-radius: ${r.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); cursor: pointer; &[data-has-icons='true'] { border: 1px solid ${r.r.colors.gray200}; background: white; box-shadow: none; filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04)); } `,d=o.Z.li` display: flex; padding: 12px 18px 12px 16px; &[data-disabled='true'] { cursor: not-allowed; color: #bfbfbf; & > * { pointer-events: none; } } &:hover, :active { background: ${r.r.colors.gray100}; } `,p=o.Z.div` max-width: 16px; margin-right: 8px; `,m=o.Z.div` position: absolute; top: 12px; left: 16px; pointer-events: none; `,Dropdown=({className:e,value:t,options:a,onChange:o=()=>void 0,id:r,placeholderIcon:u,placeholder:h,style:g,size:E="lg",groupedWithLabel:f,disabled:C,dropdownLabelTrackingAttributes:v={},isNativeSelect:b=!1})=>{let y=(0,i.rZ)(),[x,I]=n.useState(!1),showDropdown=()=>!C&&I(!x);if(b){let e="object"==typeof(null==t?void 0:t.value)&&t.value instanceof Date?t.value.toString():null==t?void 0:t.value;return n.createElement(l,{color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:C,onChange:e=>{if("string"==typeof e.target.value){let t=a.find(t=>t.value===e.target.value);t&&o(t)}}},h&&n.createElement("option",{value:h,disabled:!0,selected:!0},h),a.map(e=>n.createElement("option",{key:`${r}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))}return n.createElement(l,{color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],className:e,"data-dropdown-open":x||void 0,"data-size":E,id:r,"data-has-icons":!!u,style:g,onBlur:()=>I(!1),tabIndex:0,"data-disabled":C},!!f&&n.createElement(m,null,f),n.createElement(s,Object.assign({color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],onClick:showDropdown,className:f&&"with-label"},v),u," ",n.createElement("span",null,t&&t.value?t.label:h)),x&&n.createElement(c,{onClick:showDropdown,"data-has-icons":!!u},a.map(e=>n.createElement(d,{key:`${r}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>!e.disabled&&!C&&(null==o?void 0:o(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&n.createElement(p,null,e.icon),e.label))))}},pMpJ:function(e,t,a){a.d(t,{c:function(){return s}});var n=Object.prototype.toString,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/;function startIndex(e,t,a){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++ta;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return a}function decode(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}var s={parse:function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var a={},n=e.length;if(n<2)return a;var i=t&&t.decode||decode,o=0,r=0,l=0;do{if(-1===(r=e.indexOf("=",o)))break;if(-1===(l=e.indexOf(";",o)))l=n;else if(r>l){o=e.lastIndexOf(";",r-1)+1;continue}var s=startIndex(e,o,r),c=endIndex(e,r,s),d=e.slice(s,c);if(!a.hasOwnProperty(d)){var p=startIndex(e,r+1,l),m=endIndex(e,l,p);34===e.charCodeAt(p)&&34===e.charCodeAt(m-1)&&(p++,m--);var u=e.slice(p,m);a[d]=function(e,t){try{return t(e)}catch(t){return e}}(u,i)}o=l+1}while(o