"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[9474],{3873:function(e,t,a){a.d(t,{T:function(){return r}});var n=a(8284),o=a(73884),s=a.n(o),l=a(98771);const r=e=>{var{size:t="base",type:a="regular"}=e,o=(0,n._)(e,["size","type"]);return s().createElement(l.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":o.wordWrap,"data-is-uppercase":o.isUppercase},o))}},62694:function(e,t,a){a.d(t,{C:function(){return h},D:function(){return p},u:function(){return d}});var n=a(73884),o=a.n(n);if(8068==a.j)var s=a(8284);if(8068==a.j)var l=a(94858);var r=a(58e3),i=a(11851),g=a(45430);const h=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),n.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),d=(e=300)=>{const[t,a]=(0,n.useState)(!1);return{isDragging:t,handleDragStart:(0,n.useCallback)((()=>{a(!0)}),[]),handleDragEnd:(0,n.useCallback)((()=>{setTimeout((()=>{a(!1)}),e)}),[e])}},c=(0,i.A)(r._s.Content)` position: fixed; z-index: ${g.Z-9e6+1}; inset: 0; background-color: #fff; outline: none !important; &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-track { background-color: transparent; } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.4); border-radius: 6px; } &[data-vaul-drawer-direction='bottom'] { border-top-left-radius: 8px; border-top-right-radius: 8px; } &[data-vaul-drawer-direction='top'] { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } &[data-vaul-drawer-direction='left'] { border-top-right-radius: 8px; border-bottom-right-radius: 8px; } &[data-vaul-drawer-direction='right'] { border-top-left-radius: 8px; border-bottom-left-radius: 8px; } ${e=>e.isDragging&&"\n input {\n caret-color: transparent;\n }\n "} `,m=(0,i.A)(r._s.Overlay)` position: fixed; inset: 0; z-index: ${g.Z-9e6}; width: 100%; max-height: 100%; &[data-state='open'] { opacity: 0.6 !important; } `,p=e=>{const{open:t,onOpenChange:a,snapPoints:i,activeSnapPoint:h,setActiveSnapPoint:p,children:u,overlayClassName:f,className:y,fadeFromIndex:w=g.Z-9e6,onClose:x}=e,b=(0,s._)(e,["open","onOpenChange","snapPoints","activeSnapPoint","setActiveSnapPoint","children","overlayClassName","className","fadeFromIndex","onClose"]),[C,v]=(0,n.useState)(t),[D,N]=(0,n.useState)(i?null===i||void 0===i?void 0:i[0]:null),{isDragging:E,handleDragStart:A,handleDragEnd:P}=d(),k=(0,n.useCallback)((e=>{v(e),null===a||void 0===a||a(e)}),[a]),L=(0,n.useMemo)((()=>i&&i.length?Boolean(D===i[i.length-1]):C),[D,i]),z=(0,n.useMemo)((()=>{const e={open:C,onOpenChange:k,fadeFromIndex:w};return i&&(null===i||void 0===i?void 0:i.length)&&(e.snapPoints=i,e.activeSnapPoint=D,e.setActiveSnapPoint=e=>{N(e),null===p||void 0===p||p(e)}),e}),[C,k,D,N,p,i,w]);return(0,n.useEffect)((()=>{v(t)}),[t]),(0,n.useEffect)((()=>{N(h)}),[h]),o().createElement(r._s.Root,Object.assign({onDrag:A,onRelease:P,onClose:x},b,z),o().createElement(r._s.Portal,null,o().createElement(m,{className:(0,l.A)(f,"drawer__overlay",{drawer__overlay_full:L})}),o().createElement(c,{isDragging:E,className:(0,l.A)(y,"drawer__content",{drawer__content_full:L})},o().createElement(r._s.Handle,{className:"drawer__handle"}),o().createElement(r._s.Title,{style:{display:"none"}}),u)))}},2594:function(e,t,a){a.d(t,{H:function(){return i}});var n=a(8284),o=a(73884),s=a.n(o),l=a(86566),r=a(98771);const i=e=>{var{as:t,tag:a,color:o,fontWeight:i,dataEventCategory:g,dataEventAction:h,dataEventLabel:d}=e,c=(0,n._)(e,["as","tag","color","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]);const m=t||a,p=(0,l.xd)();return s().createElement(r.T,Object.assign({as:m,color:o||p.colors.gray[8],"data-event-category":g,"data-event-action":h,"data-event-label":d,weight:"semibold"===i?"semiBold":"bold",size:a,"data-size":a,"data-font-weight":i||void 0},c))}},615:function(e,t,a){a.d(t,{L:function(){return y}});var n=a(73884),o=a.n(n),s=a(21995),l=a(41579),r=a(11851),i=a(26115),g=a(48034),h=a(57716);const d=r.A.div` position: relative; display: inline-flex; align-items: center; z-index: 0; .main-logo-icon { object-fit: contain; } &[data-logo-is-light] { > svg path { fill: #fff; } img { filter: brightness(0) invert(1); } } &[data-has-badge] { @supports (display: flex) and (gap: 1em) { gap: 0.5rem; } @supports not ((display: flex) and (gap: 1em)) { > img { margin-left: 0.25rem; } } } .common-logo-seasonal-left, .common-logo-seasonal-right { z-index: -1; max-width: unset; max-height: unset; pointer-events: none; } .common-logo-seasonal-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); pointer-events: none; } .common-logo-seasonal-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); } &[data-seasonal='christmas'] { padding-left: 37px; padding-right: 22px; .common-logo-seasonal-left { width: 125px; height: 56px; } .common-logo-seasonal-right { width: 23px; height: 17px; } ${i.M.mbDown} { padding-left: 30px; padding-right: 16px; .common-logo-seasonal-left { // width: 125px; height: 46px; } .common-logo-seasonal-right { // width: 23px; height: 12px; } } } &[data-seasonal='new-year'] { padding-right: 85px; .common-logo-seasonal-left { top: 35%; width: 100px; height: 56px; } .common-logo-seasonal-right { width: 85px; height: 54px; } ${i.M.mbDown} { padding-right: 0; .common-logo-seasonal-right { display: none; } } } &[data-seasonal='lunar-new-year'] { padding-left: 30px; padding-right: 35px; .common-logo-seasonal-left { width: 33px; height: 41px; } .common-logo-seasonal-right { width: 37px; height: 54px; } } &[data-seasonal='ramadan'] { &[data-type='hellosehat'] { padding-right: 35px; .common-logo-seasonal-left { width: 165px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 33px; height: unset; } } &[data-type='hellodoktor'] { padding-right: 66px; .common-logo-seasonal-left { width: 133px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 63px; height: unset; } } } &[data-seasonal='hung-king'] { &[data-type='hellobacsi'] { .common-logo-seasonal-left { width: 134px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left { width: 145px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } } &[data-seasonal='vn-independent-day'] { &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { width: unset; height: 56px; left: 65%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.desktop-only { left: 50%; z-index: 1; } } &[data-type='hellobacsi'], &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { width: unset; height: 56px; left: 60%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left.mobile-only { left: 40%; z-index: 1; } } } .desktop-only { ${i.M.mbDown} { display: none; } } .mobile-only { ${i.M.mbUp} { display: none; } } `,c=r.A.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},p=[s.L.Vietnam,s.L.Taiwan,s.L.Indonesia,s.L.Malaysia],u=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],f={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]},y=({type:e,className:t,style:a,isLightLogo:r,customSize:i,badge:y,locale:w,dateForSeasonal:x,isPro:b})=>{const[C,v]=(0,n.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1,isVNIndependentDay:!1});return(0,n.useEffect)((()=>{if(!x||isNaN(new Date(x).getTime()))return;const e=new Date(x),t=(e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25})(e),a=p.includes(w)&&(e=>{const t=e.getFullYear(),a=m[t];if(!a)return!1;const n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-7);const s=new Date(n);return s.setDate(n.getDate()+5),o<=e&&e<=s})(e),n=!a&&(e=>{const t=e.getDate(),a=e.getMonth();return 11===a&&t>=26||0===a&&t<=15})(e),o=(e=>{const t=e.getFullYear(),a=u.filter((e=>e.year===t));return!!a.length&&a.some((a=>{const n=a.start[2]||t,o=new Date(n,a.start[1],a.start[0]),s=new Date(n,a.end[1],a.end[0]);return o<=e&&e<=s}))})(e),l=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=f[t];if(!a)return!1;const n=new Date(t,a[1],a[0]),o=new Date(n);o.setDate(n.getDate()-1);const s=new Date(n);return s.setDate(n.getDate()+1),o<=e&&e<=s})(e),r=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,3,30),n=new Date(a);n.setDate(a.getDate()-1);const o=new Date(a);return o.setDate(a.getDate()+2),n<=e&&e<=o})(e),i=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,4,1),n=new Date(a);n.setDate(a.getDate()-1);const o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o})(e),g=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,8,2),n=new Date(a);n.setDate(a.getDate()-1);const o=new Date(a);return o.setDate(a.getDate()+1),n<=e&&e<=o})(e);v({isChristmas:t,isLunarNewYear:a,isNewYear:n,isRamadan:o,isVNHungKing:l,isVN3004:r,isLabourDay:i,isVNIndependentDay:g})}),[w,new Date(x).getDate()]),o().createElement(d,{className:t,style:a,"data-logo-is-light":r||void 0,"data-has-badge":!!y,"data-seasonal":C.isRamadan?"ramadan":C.isChristmas?"christmas":C.isLunarNewYear?"lunar-new-year":C.isNewYear?"new-year":C.isVNHungKing?"hung-king":C.isVN3004?"30-04":C.isLabourDay?"labour-day":C.isVNIndependentDay?"vn-independent-day":void 0,"data-type":e},C.isChristmas?o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"left xmas logo",src:l.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),o().createElement(h.I,{alt:"right xmas logo",src:l.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):C.isNewYear?o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"left new year logo",src:l.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),o().createElement(h.I,{alt:"right new year logo",src:l.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):C.isLunarNewYear?o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"left lunar new year logo",loading:"lazy",src:l.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),o().createElement(h.I,{alt:"right lunar new year logo",loading:"lazy",src:l.C.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):C.isRamadan&&"hellosehat"===e?o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"left ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),o().createElement(h.I,{alt:"right ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):C.isRamadan&&"hellodoktor"===e?o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"left ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),o().createElement(h.I,{alt:"right ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!C.isVNHungKing||"hellobacsi"!==e&&"marryBaby"!==e?!C.isVNIndependentDay||"hellobacsi"!==e&&"marryBaby"!==e?null:o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"VN Independent day logo",loading:"lazy",src:l.C.getAssetPath("logo/vn-independence-desktop.png"),className:"common-logo-seasonal-left desktop-only"}),o().createElement(h.I,{alt:"VN Independent day logo",loading:"lazy",src:l.C.getAssetPath("logo/vn-independence-mobile.png"),className:"common-logo-seasonal-left mobile-only"})):o().createElement(o().Fragment,null,o().createElement(h.I,{alt:"Hung King logo",loading:"lazy",src:l.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),o().createElement(g.L,{type:e,width:null===i||void 0===i?void 0:i.width,height:null===i||void 0===i?void 0:i.height,isLight:r}),b?o().createElement(c,{src:l.C.getAssetPath("logo/pro-suffix.svg")}):null,y)}},48034:function(e,t,a){a.d(t,{L:function(){return r}});var n=a(73884),o=a.n(n),s=a(41579),l=a(57716);const r=(0,n.memo)((({type:e,width:t,height:a,isLight:r})=>{const i=(0,n.useMemo)((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:a||"24px",src:s.C.getAssetPath("logo/hellobacsi.png"),srcLight:s.C.getAssetPath("logo/hellobacsi-light.png")};case"hellodoktor":return{width:t||"127px",height:a||"24px",src:s.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:a||"27px",src:s.C.getAssetPath("logo/hellosehat.png")};case"hellojiankang":return{width:t||"87px",height:a||"24px",src:s.C.getAssetPath("logo/hellojiankang.png")};case"hellohealth":return{width:t||"123px",height:a||"24px",src:s.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:a||"24px",src:s.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:a||"24px",src:s.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:a||"24px",src:s.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:a||"24px",src:s.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:a||"24px",src:s.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:a||"24px",src:s.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:a||"24px",src:s.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:a||"24px",src:s.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:a||"57px",src:s.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:a||"28px",src:s.C.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,a]),{src:g,width:h,height:d,srcLight:c}=i||{};return o().createElement(l.I,{alt:`${e} logo`,className:"main-logo-icon",src:r&&c||g,style:{width:h,height:d}})}))},6442:function(e,t,a){a.d(t,{A:function(){return l}});var n=a(73884),o=a(24184),s=a(38798);function l(){var e=n.useContext(s.ob);return(0,o.HM)(e),e}},24537:function(e,t,a){function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}a.d(t,{A:function(){return n}})}}]);