"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[4117],{42786:function(e,t,a){a.d(t,{C:function(){return n}});var o=a(73884);const n=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),o.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"}))},630:function(e,t,a){a.d(t,{I:function(){return y},L:function(){return u},S:function(){return p},a:function(){return h},b:function(){return c}});var o=a(46587),n=a(73884),s=a.n(n),l=a(86566),r=a(11851),i=a(35291),g=a(4766);const d=r.A.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${i.w.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${i.w.colors.gray200}; border-radius: ${i.w.borderRadius}; &:active, &:focus, &.focused { border-color: ${e=>e.color}; box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } &:disabled { background-color: ${i.w.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: ${i.w.sizes.fwRegular}; ${g.M.mbDown} { font-size: 22px; line-height: 1.2; } ${g.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${i.w.sizes.fwRegular}; line-height: 22px; ${g.M.mbDown} { font-size: 14px; line-height: 1.2; } ${g.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${i.w.sizes.fwRegular}; line-height: 20px; ${g.M.mbDown} { font-size: 13px; line-height: 1.5; } ${g.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,c=r.A.label` color: ${i.w.colors.red700}; font-weight: ${i.w.sizes.fwRegular}; `,h=r.A.div` position: absolute; top: 50%; right: 16px; cursor: pointer; transform: translateY(-50%); `,p=r.A.div` position: absolute; top: 50%; left: 16px; display: inline-flex; cursor: default; transform: translateY(-50%); `;var m="DjBFAbd";const u=({children:e,className:t,style:a,htmlFor:o,size:n})=>s().createElement("label",{"data-size":n,className:`${m} ${t||""}`,style:a,htmlFor:o},e),y=e=>{var{name:t,value:a,errorMessage:r,isNumerousKeyboard:i=!1,showErrorMessage:g=!0,actionIcon:m,displayIcon:y,onActionClick:f,label:w,className:x,onChange:b,isDisabled:C,CustomInput:v,size:D,style:N,autoComplete:P="off",type:E="text",inputClassName:A,trackingAttributes:z,enterKeyHint:k}=e,L=(0,o._)(e,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const I=(0,l.xd)(),$=(0,n.useMemo)((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return s().createElement(d,{"data-size":D,className:x,"data-has-action-icon":!!m||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":r&&r.length>0||void 0,color:I.fn.primaryColor(),shadowColor:I.colors[I.primaryColor][0],style:N},w&&s().createElement(u,{size:"label2",htmlFor:t,className:"inputLabel"},w),s().createElement("div",{style:{position:"relative"}},v||s().createElement("input",Object.assign({id:t,name:t,onChange:e=>b&&b(e.target.value),type:E,"aria-label":E,value:a,disabled:C,autoComplete:P,inputMode:i||"number"===E?"numeric":E,pattern:i?"[0-9]*":".*",className:A,enterKeyHint:k},$,L)),y&&s().createElement(p,{className:"displayIcon"},y),m&&s().createElement(h,{className:"actionIcon",onClick:f},m)),r&&r.length>0&&g&&s().createElement(c,{className:"errorLabel"},r))}},40927:function(e,t,a){a.d(t,{L:function(){return f}});var o=a(73884),n=a.n(o),s=a(50345),l=a(50191),r=a(11851),i=a(4766),g=a(36657),d=a(77686);const c=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; } } `,h=r.A.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,p={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]},m=[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]}],y={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]},f=({type:e,className:t,style:a,isLightLogo:r,customSize:i,badge:f,locale:w,dateForSeasonal:x,isPro:b})=>{const[C,v]=(0,o.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1,isVNIndependentDay:!1});return(0,o.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=m.includes(w)&&(e=>{const t=e.getFullYear(),a=p[t];if(!a)return!1;const o=new Date(t,a[1],a[0]),n=new Date(o);n.setDate(o.getDate()-7);const s=new Date(o);return s.setDate(o.getDate()+5),n<=e&&e<=s})(e),o=!a&&(e=>{const t=e.getDate(),a=e.getMonth();return 11===a&&t>=26||0===a&&t<=15})(e),n=(e=>{const t=e.getFullYear(),a=u.filter((e=>e.year===t));return!!a.length&&a.some((a=>{const o=a.start[2]||t,n=new Date(o,a.start[1],a.start[0]),s=new Date(o,a.end[1],a.end[0]);return n<=e&&e<=s}))})(e),l=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=y[t];if(!a)return!1;const o=new Date(t,a[1],a[0]),n=new Date(o);n.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+1),n<=e&&e<=s})(e),r=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,3,30),o=new Date(a);o.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+2),o<=e&&e<=n})(e),i=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,4,1),o=new Date(a);o.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+1),o<=e&&e<=n})(e),g=w===s.L.Vietnam&&(e=>{const t=e.getFullYear(),a=new Date(t,8,2),o=new Date(a);o.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+1),o<=e&&e<=n})(e);v({isChristmas:t,isLunarNewYear:a,isNewYear:o,isRamadan:n,isVNHungKing:l,isVN3004:r,isLabourDay:i,isVNIndependentDay:g})}),[w,new Date(x).getDate()]),n().createElement(c,{className:t,style:a,"data-logo-is-light":r||void 0,"data-has-badge":!!f,"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?n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"left xmas logo",src:l.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),n().createElement(d.I,{alt:"right xmas logo",src:l.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):C.isNewYear?n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"left new year logo",src:l.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),n().createElement(d.I,{alt:"right new year logo",src:l.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):C.isLunarNewYear?n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"left lunar new year logo",loading:"lazy",src:l.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),n().createElement(d.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?n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"left ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),n().createElement(d.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?n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"left ramadan logo",loading:"lazy",src:l.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),n().createElement(d.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:n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"VN Independent day logo",loading:"lazy",src:l.C.getAssetPath("logo/vn-independence-desktop.png"),className:"common-logo-seasonal-left desktop-only"}),n().createElement(d.I,{alt:"VN Independent day logo",loading:"lazy",src:l.C.getAssetPath("logo/vn-independence-mobile.png"),className:"common-logo-seasonal-left mobile-only"})):n().createElement(n().Fragment,null,n().createElement(d.I,{alt:"Hung King logo",loading:"lazy",src:l.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),n().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?n().createElement(h,{src:l.C.getAssetPath("logo/pro-suffix.svg")}):null,f)}},50126:function(e,t,a){a.d(t,{B:function(){return r}});var o=a(46587),n=a(73884),s=a.n(n),l=a(93935);const r=e=>{var{size:t,color:a="primary",isDisabled:n,isBlock:r,title:i,onClick:g,icon:d,iconPosition:c="left",children:h,isLoading:p=!1,loadingText:m,dataEventCategory:u,dataEventAction:y,dataEventLabel:f,dataProductChannel:w,dataProductSku:x,dataProductBrand:b,dataProductName:C,dataProductPrice:v,dataProductCategory:D,dataProductPosition:N,type:P}=e,E=(0,o._)(e,["size","color","isDisabled","isBlock","title","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const A={"data-event-category":u,"data-event-action":y,"data-event-label":f,"data-product-channel":w,"data-product-sku":x,"data-product-brand":b,"data-product-name":C,"data-product-price":v,"data-product-category":D,"data-product-position":N};return s().createElement(l.B,Object.assign({},A,{size:t,variant:"transparent"===a?"white":"danger"===a?"error":a,disabled:n,onClick:e=>{!p&&!n&&g&&g(e)},title:i,loading:p,type:P||"submit",leftIcon:"left"===c?d:void 0,rightIcon:"right"===c?d:void 0,w:r?"100%":void 0,p:r?"12px auto":void 0,"data-color":a,"data-size":t,"data-block":r,"data-has-icon":!!d||void 0,"data-theme":E.theme,"data-is-loading":p},E),p&&m||h)}},66079:function(e,t,a){a.d(t,{T:function(){return r}});var o=a(46587),n=a(73884),s=a.n(n),l=a(74121);const r=e=>{var{size:t="base",type:a="regular"}=e,n=(0,o._)(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":n.wordWrap,"data-is-uppercase":n.isUppercase},n))}},36657:function(e,t,a){a.d(t,{L:function(){return r}});var o=a(73884),n=a.n(o),s=a(50191),l=a(77686);const r=(0,o.memo)((({type:e,width:t,height:a,isLight:r})=>{const i=(0,o.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:d,height:c,srcLight:h}=i||{};return n().createElement(l.I,{alt:`${e} logo`,className:"main-logo-icon",src:r&&h||g,style:{width:d,height:c}})}))},6442:function(e,t,a){a.d(t,{A:function(){return l}});var o=a(73884),n=a(24184),s=a(38798);function l(){var e=o.useContext(s.ob);return(0,n.HM)(e),e}},24537:function(e,t,a){function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}a.d(t,{A:function(){return o}})}}]);