(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7782],{33513:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(67294);const o=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),r.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"}))},52307:function(e,t,n){"use strict";n.d(t,{L:function(){return I},S:function(){return J},V:function(){return H},a:function(){return R},i:function(){return P}});var r=n(67294),o=n(67128),a=n(93867),i=n(10917),s=n(83129),l=n(43125),c=n(22470),u=n(74533),d=n(81588),p=n(44036),h=n(55157),f=n(91938),m=n(69984),g=n(6483),v=n(2566),y=n(53515),b=n(65409),w=n(58499),k=n(50064),x=n(35022),C=n(17742),E=n(78577),D=n(64736),M=n(60305),O=n(36308);const N=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","hellojiankang.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],P=(e="")=>N.some((t=>new URL(e).origin.endsWith(t))),j=a.Z.a`
display: inline-flex;
position: relative;
flex-direction: row;
align-items: center;
padding: 7px 11px;
gap: 2px;
background: ${i.r.colors.white};
border: 1px solid ${i.r.colors.neutral100};
border-radius: 20px;
color: ${i.r.colors.gray600};
font-weight: 600;
font-size: 12px;
line-height: 18px;
text-decoration: none;
cursor: pointer;
`,S=a.Z.div`
position: relative;
display: inline-block;
`,L=a.Z.div`
position: relative;
`,_=a.Z.div`
position: absolute;
z-index: 21;
top: 100%;
right: 0;
width: 327px;
padding: 8px;
background: white;
border-radius: 4px;
filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1));
&[data-is-open='false'] {
display: none;
}
&[data-show-indicator='true'] {
&:before {
position: absolute;
right: 11px;
bottom: 100%;
width: 0;
height: 0;
border: 0.5rem solid transparent;
border-top: none;
border-bottom-color: #fff;
content: '';
filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
}
}
`,z=a.Z.div`
display: flex;
height: 40px;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-radius: ${i.r.borderRadius};
cursor: pointer;
.check-icon {
width: 16px;
height: 16px;
}
&[data-selected='false'] {
background-color: ${i.r.colors.gray100};
}
`,$=a.Z.div`
position: fixed;
z-index: 20;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: default;
`,T=({options:e,label:t,labelRenderer:n,selected:o,onChange:a,showSelected:i=!0,style:c={},showIndicator:u=!0})=>{const[d,p]=(0,r.useState)(!1);return r.createElement(r.Fragment,null,r.createElement(S,null,r.createElement(L,{onClick:()=>p((e=>!e))},t||(null===n||void 0===n?void 0:n(d))||null,r.createElement(_,{"data-is-open":d,style:c,"data-show-indicator":u},e.map(((e,t)=>r.createElement(z,{key:t,"data-selected":i&&o===e.value,onClick:t=>{o!==e.value&&(a(e.value),p((e=>!e))),t.stopPropagation()}},r.createElement(s.T,{size:"p3"},e.label),i&&o===e.value&&r.createElement("img",{src:l.C.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),d&&r.createElement($,{onClick:()=>p(!1)}))},I=({languageOptions:e,locale:t})=>{var n,o;const a=null===e||void 0===e?void 0:e.find((e=>e.locale===t));return(null===e||void 0===e?void 0:e.length)?r.createElement(T,{options:e,selected:a.value,label:r.createElement(F,{locale:t,label:a.label||(null===(o=null===(n=t.split("-"))||void 0===n?void 0:n[0])||void 0===o?void 0:o.toUpperCase())}),onChange:e=>{"undefined"!==typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},F=({locale:e,label:t,href:n})=>{var a,i,s;return r.createElement(j,{href:n},r.createElement(o.F,{country:null===(i=null===(a=null===e||void 0===e?void 0:e.split("-"))||void 0===a?void 0:a[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(s=null===e||void 0===e?void 0:e.split("-"))||void 0===s?void 0:s[0]}),r.createElement("span",null,t))};var B=(0,p.k)(((e,{layout:t})=>({root:{display:"block",transition:"all .3s ease","&, & *":{borderRadius:4},[e.fn.largerThan("sm")]:Object.assign({},"overlay"===t&&{"&:hover":{".overlay-info":{transform:"translateY(-10px)"},".item-overlay-wrapper":{backgroundColor:"rgba(0,0,0,0.4)"}}})},inner:Object.assign({display:"flex",gap:8,"&, *":{pointerEvents:"none !important"}},"horizon"===t?{gap:16,alignItems:"center"}:{flexDirection:"column"}),itemThumbImg:{},thumbFrame:{backgroundColor:"#000"},thumbWrapper:Object.assign({},"horizon"===t&&{width:64,flexShrink:0}),overlayWrapper:{transition:"all .3s ease"},overlay:{position:"absolute",left:0,bottom:0,right:0,backgroundImage:"linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, #111111 100%)",minHeight:96,padding:"16px 12px",display:"flex",alignItems:"flex-end"},overlayInfo:{transition:"all .3s ease"},title:Object.assign({},"overlay"===t&&{color:"#fff"}),subTitle:Object.assign({span:{margin:"0 4px",position:"relative",color:"#595959","&:before":{content:'"."',position:"absolute",top:-5,fontSize:"14px"}}},"overlay"===t&&{color:"#fff"})})));const Z=e=>{var{data:t,layout:n,styles:o}=e,a=(0,c._)(e,["data","layout","styles"]);const{title:i,totalView:l,imageMedium:u,createTime:d}=t,{classes:p,cx:g}=B({layout:n},{name:"VideoItem__ShortsItem",styles:o}),{t:v}=(0,w.u)(),y=(0,r.useMemo)((()=>[l&&v("common.totalView",{number:(0,b.a)(l)}),d].filter(Boolean).join(' ')),[l,d]),k=(0,r.useMemo)((()=>r.createElement(h.K,{spacing:4,className:g(p.overlayInfo,"overlay-info")},r.createElement(s.T,{size:"s3",className:g(p.title),lineClamp:2},i),r.createElement(s.T,{className:p.subTitle,size:"n1",dangerouslySetInnerHTML:{__html:y}}))),[i,y]);return r.createElement(f.x,Object.assign({},a,{className:p.root}),r.createElement(f.x,{className:p.inner},r.createElement("div",{className:p.thumbWrapper},r.createElement(m.o,{ratio:240/431,className:p.thumbFrame},r.createElement("img",{src:u||"",className:p.itemThumbImg,alt:i,loading:"lazy"}),"overlay"===n&&r.createElement(f.x,{className:g(p.overlayWrapper,"item-overlay-wrapper")},r.createElement(f.x,{className:g(p.overlay,"item-overlay")},k)))),"overlay"!==n&&k))},A=e=>{var{size:t=24,color:n=i.r.colors.neutral600}=e,o=(0,c._)(e,["size","color"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 47 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),r.createElement("path",{d:"M23.297 43.153c10.55 0 19.103-8.64 19.103-19.298S33.847 4.557 23.297 4.557 4.193 13.197 4.193 23.855s8.553 19.298 19.104 19.298",fill:n,fillOpacity:".75"}),r.createElement("path",{d:"m19.477 16.136 11.462 7.719-11.462 7.72z",fill:"#fff",stroke:"#fff",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}))};var U=(0,p.k)(((e,{active:t,layout:n})=>({root:{display:"block",borderRadius:4,[e.fn.largerThan("sm")]:{"&:hover":{[`.${(0,g.A)("overlay")}`]:Object.assign({},!t&&{backgroundColor:"rgba(0, 0, 0, .4)"})}}},inner:Object.assign(Object.assign({display:"flex",gap:8,"&, *":{pointerEvents:"none !important"}},"default"===n&&{flexDirection:"column"}),"horizon"===n&&{gap:12,[e.fn.largerThan("sm")]:{gap:24}}),thumb:Object.assign({},"horizon"===n&&{width:140,flexShrink:0,[e.fn.largerThan("sm")]:{width:164}}),thumbWrapper:{},thumbFrame:{},title:{lineHeight:(0,v.h)(22)},subTitle:{span:{margin:"0 4px",position:"relative","&:before":{content:'"."',position:"absolute",top:-5,fontSize:"14px"}}},overlay:{ref:(0,g.A)("overlay"),position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:t?"rgba(0, 0, 0, .55)":"transparent",transition:"all .2s ease"},duration:{position:"absolute",zIndex:0,background:"#262626",borderRadius:4,bottom:4,right:4,padding:`${(0,v.h)(1)} ${(0,v.h)(4)}`},durationTxt:{color:"#fff"}})));const W=e=>{var{isMobile:t,data:n,styles:o,className:a,classNames:i,layout:u}=e,d=(0,c._)(e,["isMobile","data","styles","className","classNames","layout"]);const{title:p,imageMedium:g,createTime:v,totalView:k,active:x,duration:C}=n,{locale:E,t:D}=(0,w.u)(),{cx:M,classes:O,theme:N}=U({active:x,layout:u},{name:"VideoItem__VideoItem",classNames:i,styles:o}),P=(0,r.useMemo)((()=>[k&&D("common.totalView",{number:(0,b.a)(k)}),v].filter(Boolean).join(' ')),[k,v]);return r.createElement(f.x,Object.assign({},d,{className:M(a,O.root)}),r.createElement(f.x,{className:O.inner},r.createElement(f.x,{className:O.thumbWrapper},r.createElement(f.x,{className:O.thumb,sx:()=>({position:"relative","div, img":{borderRadius:4}})},r.createElement(m.o,{ratio:264/148,className:O.thumbFrame},r.createElement("img",{loading:"lazy",src:g||l.C.getAssetPath(`videoThumbDefault/${E}.jpg`),alt:p,onError:e=>{e.currentTarget.src=l.C.getAssetPath(`videoThumbDefault/${E}.jpg`)}})),"number"===typeof C&&C>0&&r.createElement(f.x,{className:O.duration},r.createElement(s.T,{size:"n1",className:O.durationTxt},C)),r.createElement(y.k,{className:O.overlay,align:"center",justify:"center"},x?r.createElement(s.T,{size:"s3",weight:"semiBold",color:"#fff"},D("common.playing")):r.createElement(A,{size:t?32:46})))),r.createElement(h.K,{sx:{[N.fn.largerThan("sm")]:{gap:4},gap:2}},r.createElement(s.T,{className:O.title,size:"s3",color:x?N.fn.primaryColor():"#262626",weight:"semiBold",lineClamp:2},p),r.createElement(s.T,{className:O.subTitle,size:"n1",color:"#595959",dangerouslySetInnerHTML:{__html:P}}))))},R=e=>{var{data:t,isMobile:n}=e,o=(0,c._)(e,["data","isMobile"]);const{type:a,videoId:i,url:s}=t,l="ios"===(0,k.i)();return r.createElement(x.M,Object.assign({size:a===d.V.SHORTS?n?360:375:(0,v.h)(1128),withCloseButton:!0,styles:e=>({header:{padding:0,paddingBottom:8,backgroundColor:"transparent",border:0,[e.fn.smallerThan("sm")]:{position:"absolute",top:10,right:10}},body:{padding:0},content:{boxShadow:"none",backgroundColor:"transparent",borderRadius:0,[e.fn.largerThan("sm")]:{position:"relative"}},heading:{[e.fn.smallerThan("sm")]:{}},inner:{zIndex:u.a+2,[e.fn.smallerThan("sm")]:{padding:0}},close:{color:"#fff",backgroundColor:"#000",borderRadius:"50%",width:24,height:24,display:"flex",justifyContent:"center",alignItems:"center",transition:"all .3s ease",svg:{width:"18px !important",height:"18px !important"},"&:hover":{backgroundColor:"#fff",color:"#000"}},overlay:{zIndex:u.a+1,[e.fn.smallerThan("sm")]:{backgroundColor:"rgba(0, 0, 0, 0.85)"}}})},o),a===d.V.SHORTS?r.createElement(m.o,{ratio:.5625},r.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${i}?autoplay=${Number(!l)}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media;\ngyroscope; picture-in-picture;\nweb-share",allowFullScreen:!0})):r.createElement(C.S,{key:s,url:s||"",autoPlay:!l}))},H=e=>{var{data:t,layout:n="default",disableDefaultFn:o,redirectToLandingPage:a,onClick:i,dataEventCategory:s,dataEventAction:l,isMobile:p}=e,h=(0,c._)(e,["data","layout","disableDefaultFn","redirectToLandingPage","onClick","dataEventCategory","dataEventAction","isMobile"]);const{articleLink:f,id:m,videoId:g,title:v,url:y,type:b}=t,[k,x]=(0,r.useState)(!1),C=(0,r.useMemo)((()=>f||`/videos/${b}/?id=${m}`),[]),{locale:D}=(0,w.u)(),M={component:"a",href:C,target:f?"_blank":"_self","data-event-category":s,"data-event-action":l,"data-event-label":`https://${E.v[D]}${C}`,onClick:o?i:f?void 0:e=>{a?localStorage.setItem(u.e,JSON.stringify({articleLink:f,id:m,videoId:g,title:v,url:y,type:b})):(e.preventDefault(),x(!0))}};return r.createElement(r.Fragment,null,b===d.V.SHORTS?r.createElement(Z,Object.assign({},h,M,{data:t,layout:n,isMobile:p})):r.createElement(W,Object.assign({},h,M,{layout:n,data:t,isMobile:p})),!f&&r.createElement(R,{opened:Boolean(k),data:t,onClose:()=>x(!1),isMobile:p}))},V=l.C.getAssetPath("sitewide/vn-public-desktop.png"),K=a.Z.div`
position: relative;
display: flex;
overflow: hidden;
align-items: center;
background-color: ${e=>e.bgColor||"#284a75"};
background-position: center;
background-size: cover;
transition: height 0.25s;
&[data-is-mobile='true'] {
justify-content: flex-start;
}
&[data-is-mobile='false'] {
justify-content: center;
}
&[data-is-collapse='false'] {
height: 64px;
}
&[data-is-collapse='true'] {
height: 0;
}
${O.M.mbDown} {
&[data-is-collapse='false'] {
height: 48px;
}
}
&[data-is-vn-public-day='true'] {
background-color: ${i.r.colors.red900};
${O.M.mbDown} {
overflow: hidden;
}
${O.M.mbUp} {
background-image: url(${V});
background-repeat: no-repeat;
background-size: cover;
.vn-bg {
display: none;
}
}
}
.banner-full {
object-fit: cover;
height: 100%;
}
& > a {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
text-decoration: none;
}
> a + .site-wide-content {
width: 100%;
}
.content {
padding-right: 48px;
color: white;
a {
color: white;
}
&[data-is-mobile='true'] {
font-size: 14px;
}
${O.M.mbDown} {
line-height: 18px;
}
}
.close-icon {
position: absolute;
right: 0px;
width: 64px;
height: 64px;
padding: 0 20px;
cursor: pointer;
}
[data-event-category] {
* {
pointer-events: none !important;
}
}
`,Y=a.Z.div`
max-width: 100px;
margin-right: 16px;
.image-wrapper {
display: inline-block;
overflow: hidden;
max-width: 100px;
padding: 8px 0 4px 16px;
img {
width: 64px;
height: 64px;
object-fit: contain;
&[data-is-mobile='true'] {
width: 52px;
height: 52px;
}
}
}
`,q={daily:1,weekly:7,"bi-weekly":14},J=({site:e="discover",banner:t,isMobile:n,onClose:o,currentUrl:a})=>{var i;const{link:l,icon:c,content:u,type:d,layoutType:p,bannerDesktop:h,bannerMobile:f,backgroundColor:m,bannerDisplayFrequency:g}=t||{},[v,y]=(0,r.useState)(!0),b=u,w=(0,r.useMemo)((()=>`${e}-disable-sitewide-${d}`),[d]),k=(0,r.useCallback)((e=>{e.preventDefault(),M.Z.set(w,"true",{expires:q[g],path:a}),y(!1),null===o||void 0===o||o()}),[a,w,g]),x=null===(i=/]*href=["']([^"']*)["']/g.exec(b))||void 0===i?void 0:i[1];return(0,r.useEffect)((()=>{"true"===M.Z.get(w)&&y(!1)}),[null===t||void 0===t?void 0:t.type]),b&&v?r.createElement(K,{"data-is-mobile":n,"data-is-collapse":!v,id:"sitewide-container",bgColor:m},r.createElement("a",{className:"no-replace-click","data-event-category":"Header Banner","data-event-action":"Link Click","data-event-label":a,href:l||x},"icon-text"===p?r.createElement(r.Fragment,null,c&&r.createElement(Y,{className:"site-wide-content"},r.createElement("div",{className:"image-wrapper"},r.createElement("img",{src:c,className:"icon",loading:"lazy","data-is-mobile":n,alt:"",width:64,height:64}))),r.createElement("div",{className:"site-wide-content"},b&&r.createElement(s.T,{size:"s3",className:"content","data-is-mobile":n,dangerouslySetInnerHTML:{__html:b},lineClamp:2,styles:{root:{fontFamily:"Inter, -apple-system,\n BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell,\n 'Helvetica Neue', sans-serif;"}}}))):r.createElement("img",{src:n?f:h,className:"banner-full",loading:"lazy","data-is-mobile":n,alt:""})),r.createElement(D.Z,{color:"#fff",size:24,className:"close-icon","data-event-category":"Header Banner","data-event-action":"Close Click","data-vars-event-label":a,onClick:k})):null}},51924:function(e,t,n){"use strict";n.d(t,{A:function(){return v},D:function(){return w},I:function(){return x},S:function(){return f},a:function(){return M}});var r=n(67294),o=n(93867),a=n(10917),i=n(88125),s=n(83129),l=n(22470),c=n(86010),u=n(29754),d=n(69046),p=n(44957),h=n(74533);const f=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),r.createElement("path",{d:"M13.5554 9.33398L7.99989 5.55621L2.44434 9.33398",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),m=o.Z.div`
background-color: var(--background-color, transparent);
color: white;
cursor: pointer;
img {
--width: var(--width-prop, 40px);
--height: var(--height-prop, 40px);
width: var(--width);
height: var(--height);
}
&[data-has-max='true'] {
img {
max-width: var(--width);
max-height: var(--height);
}
}
&[data-avatar-type='square'] {
img {
--width: var(--width-prop, 72px);
--height: var(--height-prop, 72px);
border-radius: ${a.r.borderRadius};
}
}
&[data-avatar-type='rounded'] {
img {
border-radius: 50%;
}
}
&[data-custom-size='true'] {
display: flex;
overflow: hidden;
overflow: hidden;
width: var(--size);
height: var(--size);
align-items: center;
justify-content: center;
background-size: cover;
font-size: calc(var(--size) / 2);
font-weight: bold;
&[data-avatar-type='square'] {
border-radius: ${a.r.borderRadius};
}
&[data-avatar-type='rounded'] {
border-radius: 50%;
img {
--width: 100%;
--height: 100%;
}
}
img {
object-fit: cover;
}
}
`,g={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},v=({type:e="square",size:t,avatarImg:n,avatarUrl:o,firstLetter:a,backgroundColor:s,onClick:l,style:c,className:u,width:d,height:p,alt:h})=>{const f=t?g[t]:void 0,[v,y]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const b=(!o&&!n||v)&&a;return r.createElement(m,{style:Object.assign(Object.assign({},c),{"--size":f?f+"px":void 0,"--width-prop":d?d+"px":void 0,"--height-prop":p?p+"px":void 0,"--background-color":s}),"data-has-max":!(!d||!p),"data-avatar-type":e,onClick:l,className:u,avatarUrl:o,"data-custom-size":!!t},n,o&&!v&&r.createElement(i.I,{src:o,alt:h||"avatar"}),b&&a)},y=o.Z.div`
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
color: ${a.r.colors.red700};
border-radius: 8px;
border: 1px solid ${a.r.colors.neutral100};
font-size: 0.6875rem;
line-height: 1rem;
border-radius: 0.5rem;
`,b=(0,o.Z)((e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),r.createElement("g",{clipPath:"url(#clip0_5371_10640)"},r.createElement("path",{d:"M6.6665 4.3335L8.1665 5.8335L6.6665 7.3335",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M8.16667 5.8335H5.83333C5.09667 5.8335 4.5 6.43016 4.5 7.16683V7.50016",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6.94331 10.3902L10.3907 6.94281C10.9114 6.42211 10.9114 5.57789 10.3907 5.05719L6.94331 1.60981C6.42261 1.08911 5.57839 1.08911 5.05769 1.60981L1.61031 5.05719C1.08961 5.57789 1.08961 6.42211 1.61031 6.94281L5.05769 10.3902C5.57839 10.9109 6.42261 10.9109 6.94331 10.3902Z",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_5371_10640"},r.createElement("rect",{width:12,height:12,fill:"white"}))))))`
width: 0.75rem;
height: 0.75rem;
color: ${a.r.colors.gray400};
`;function w({value:e,className:t}){return r.createElement(y,{className:t},r.createElement(b,null),r.createElement(s.T,{size:"p3",weight:"regular",color:a.r.colors.gray400},e))}const k=o.Z.div`
display: inline-flex;
align-items: center;
justify-content: center;
flex-grow: 0;
flex-shrink: 0;
width: calc(var(--wrapper-size, var(--icon-size)) * 1px);
height: calc(var(--wrapper-size, var(--icon-size)) * 1px);
&[data-clickable='true'] {
cursor: pointer;
}
> * {
width: calc(var(--icon-size) * 1px);
height: calc(var(--icon-size) * 1px);
}
&[data-svg-custom-stroke='true'] > svg * {
stroke: var(--icon-stroke-color);
}
&[data-svg-custom-fill='true'] > svg * {
fill: var(--icon-fill-color);
}
`,x=({children:e,className:t,onClick:n,wrapperSize:o,iconSize:a=24,wrapperStyle:i,iconStyle:s,svgIcon:l,wrapperProps:c})=>r.createElement(k,Object.assign({className:t,onClick:n,style:Object.assign(Object.assign(Object.assign(Object.assign({},o&&{"--wrapper-size":o}),a&&{"--icon-size":a}),l&&Object.assign(Object.assign({},l.fill&&{"--icon-fill-color":l.fill}),l.stroke&&{"--icon-stroke-color":l.stroke})),i),"data-clickable":!!n,"data-svg-custom-stroke":!!(null===l||void 0===l?void 0:l.stroke),"data-svg-custom-fill":!!(null===l||void 0===l?void 0:l.fill)},c),r.cloneElement(e,{style:s}));(0,o.Z)(d.D)`
/* max-height: 100vh;
max-height: 100dvh; */
background-color: white;
&[data-vaul-drawer-direction='bottom'] {
top: initial !important;
border-top-left-radius: 16px !important;
border-top-right-radius: 16px !important;
padding-bottom: 32px;
padding-left: 20px;
padding-right: 20px;
}
.drawer__handle {
width: 44px;
height: 3px;
background-color: ${a.r.colors.neutral500};
margin: 16px auto;
flex-shrink: 0;
}
`;const C=(0,o.Z)(p.dy.Content)`
position: fixed;
z-index: ${h.Z-9e6+1};
inset: 0;
background-color: #fff;
outline: none !important;
&[data-is-linear='true'] {
background: linear-gradient(180deg, #c3e3ff 1.86%, #fff 20%) !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'] {
top: initial;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
/* padding-bottom: 16px; */
}
${e=>e.isDragging&&"\n input {\n caret-color: transparent;\n }\n "}
`,E=(0,o.Z)(p.dy.Overlay)`
position: fixed;
inset: 0;
z-index: ${h.Z-9e6};
width: 100%;
max-height: 100%;
background-color: rgb(0, 0, 0, 0.4);
`,D=(0,o.Z)(p.dy.Handle)`
&[data-vaul-handle] {
width: 44px;
height: 3px;
background-color: ${a.r.colors.neutral500};
margin: 16px auto;
flex-shrink: 0;
}
`;function M(e){var{children:t,onClose:n,isOpen:o,onOpenChange:a,isMobile:i,classNames:s,isLinear:h,overlayClassName:f,contentClassName:m,handlerClassName:g}=e,v=(0,l._)(e,["children","onClose","isOpen","onOpenChange","isMobile","classNames","isLinear","overlayClassName","contentClassName","handlerClassName"]);const{isDragging:y,handleDragStart:b,handleDragEnd:w}=(0,d.u)();return i?r.createElement(p.dy.Root,Object.assign({onDrag:b,onRelease:w,open:o,onOpenChange:a,onClose:n},v),r.createElement(p.dy.Portal,null,r.createElement(E,{className:(0,c.Z)(f,"drawer__overlay")}),r.createElement(C,{isDragging:y,className:(0,c.Z)(m,"drawer__content"),"data-is-linear":h},r.createElement(p.dy.Title,{style:{display:"none"}}),r.createElement(D,{className:(0,c.Z)(g,"drawer__handle")}),t))):r.createElement(u.u,Object.assign({withCloseButton:!0,centered:!0,zIndex:500,size:"auto",classNames:s,radius:"lg"},v,{onClose:n,opened:o,styles:{root:{maxHeight:"400px"}}}),t)}},75009:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var r=n(67294),o=n(98198),a=n(58499),i="tliWyii";const s=({className:e,theme:t,hideText:n})=>{const{t:s}=(0,a.u)();return r.createElement("div",{className:`${i} ${e}`},r.createElement(o.I.Spinner,{isMarryBaby:"marryBaby"===t}),!n&&s("loading"))}},3408:function(e,t,n){"use strict";n.d(t,{C:function(){return d},I:function(){return k},P:function(){return g},S:function(){return E},a:function(){return y},b:function(){return D}});var r=n(67294),o=n(93867),a=n(36308),i=n(10917),s=n(22470),l=n(37699),c=n(67128);const u=o.Z.div`
display: flex;
cursor: pointer;
&[data-theme='marryBaby'] {
input {
width: 20px;
height: 20px;
border: 1.3px solid ${i.r.mbColors.midGray};
border-radius: 9px;
cursor: inherit;
transition: border-color 0.4s, box-shadow 0.4s;
&:hover,
&:active {
border-color: ${i.r.mbColors.cobalt};
box-shadow: 0 0 2px 2px ${i.r.mbColors.cobalt};
}
&:focus-visible {
border: 2px solid ${i.r.mbColors.cobalt};
}
&:checked {
border: 0;
background: ${i.r.mbColors.cobalt}
url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3.45455 6L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
no-repeat center center;
}
}
label {
max-width: 15rem;
margin-left: 8px;
width: calc(100% - 24px);
cursor: inherit;
font-weight: 600;
font-size: 12px;
line-height: 20px;
letter-spacing: -0.2px;
color: ${i.r.mbColors.gray};
}
}
input {
width: 20px;
height: 20px;
border: solid 1px ${i.r.colors.gray500};
border-radius: 2px;
cursor: inherit;
transition: border-color 0.4s, box-shadow 0.4s;
&:hover,
&:active {
border-color: ${i.r.colors.primaryBase};
box-shadow: 0 0 2px 2px ${i.r.colors.primary200};
}
&:focus-visible {
border: 2px solid ${i.r.colors.primaryActive};
}
&:checked {
border: 0;
background: ${i.r.colors.primaryBase}
url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L4.125 8L1 4.81819' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
no-repeat center center;
}
}
label {
max-width: 15rem;
margin-left: 8px;
font-weight: ${i.r.sizes.fwRegular};
width: calc(100% - 24px);
cursor: inherit;
${a.M.mbDown} {
font-size: 14px;
line-height: 24px;
}
${a.M.mbUp} {
font-size: 16px;
line-height: 22px;
}
}
&[data-is-rectangle] > input {
position: relative;
width: unset;
height: unset;
padding: 5px 12px;
border: 1px solid ${i.r.colors.neutral100};
border-radius: 32px;
&::after {
color: ${i.r.colors.gray800};
content: attr(data-label-text);
font-size: 13px;
}
&:checked {
border-color: ${i.r.colors.primary50};
&::after {
color: ${i.r.colors.primaryBase};
}
}
&:checked {
background: ${i.r.colors.primary50};
}
}
&[data-disabled] {
color: ${i.r.colors.gray300};
cursor: not-allowed;
input {
border-color: ${i.r.colors.gray300};
&:hover {
border-color: ${i.r.colors.gray300};
box-shadow: none;
}
}
}
`,d=({label:e,name:t,checked:n,className:o,isDisabled:a,onChange:i,value:s,isRectangle:l,inputDataTestId:c,siteType:d})=>r.createElement(u,{className:o,"data-disabled":a||void 0,"data-is-rectangle":l||void 0,"data-label-text":e,"data-theme":d},r.createElement("input",{type:"checkbox",checked:n,name:t,onChange:()=>i(s,!n),disabled:a,value:s,id:`${t}-${s}`,"data-label-text":e,"data-testid":c}),!l&&r.createElement("label",{htmlFor:`${t}-${s}`},e)),p=o.Z.div`
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
li {
transition: all 0.3s ease;
}
[data-page-active] {
background: ${i.r.colors.primaryBase};
color: ${i.r.colors.white};
> a {
color: ${i.r.colors.white};
}
}
`,h=o.Z.div`
display: flex;
width: 32px;
height: 32px;
box-sizing: border-box;
align-items: center;
justify-content: center;
border: 1px solid ${i.r.colors.gray200};
margin: 0 2px;
border-radius: 4px;
color: ${i.r.colors.gray800};
cursor: pointer;
font-size: 14px;
font-weight: ${i.r.sizes.fwBold};
&[data-last-page] {
border: none;
background-color: ${i.r.colors.gray100};
cursor: not-allowed;
pointer-events: none;
svg {
path {
stroke: ${i.r.colors.gray300};
}
}
}
`,f=o.Z.li`
display: flex;
width: 32px;
height: 32px;
align-items: center;
justify-content: center;
margin: 0 2px;
border-radius: 4px;
color: ${i.r.colors.gray800};
cursor: pointer;
font-size: 14px;
font-weight: ${i.r.sizes.fwBold};
> a {
color: ${i.r.colors.gray800};
text-decoration: unset;
display: block;
width: 100%;
height: 100%;
line-height: 32px;
text-align: center;
}
`,m=({pagesAmount:e,activePage:t,handlePageChange:n,handleClick:o,href:i,queryPageName:s="page"})=>{const l=[...Array(e)].map(((e,t)=>t+1)),[c,u]=(0,r.useState)(t<=4?l.slice(0,5):t>=l.length-3?l.slice(l.length-5,l.length):l.slice(t-2,t+1));return(0,r.useEffect)((()=>{t<=4?u(l.slice(0,5)):t>=l.length-3?u(l.slice(l.length-5,l.length)):u(l.slice(t-2,t+1))}),[t]),r.createElement(r.Fragment,null,t>4&&r.createElement(r.Fragment,null,r.createElement(f,{onClick:()=>n(1)},i?r.createElement("a",{href:i,onClick:o},1):1),r.createElement(f,null,"...")),c.map((e=>r.createElement(f,{key:`pagination+${e}`,"data-page-active":e===t||void 0,onClick:()=>n(e)},i?r.createElement("a",{href:(0,a.f)(i,e,s),onClick:o},e):e))),tn(l.length)},i?r.createElement("a",{href:(0,a.f)(i,l.length,s),onClick:o},l.length):l.length)))},g=({className:e,pagesAmount:t,currentPage:n,onChange:o,onClick:i,style:s,href:l,queryPageName:c="page"})=>{const u=[...Array(t)].map(((e,t)=>t+1)),[d,g]=(0,r.useState)(n),v=(0,r.useMemo)((()=>l&&l.endsWith("&page=")?l.replace("&page=",""):l),[l]),y=t-1,b=e=>{e<=t&&e>0&&(g(e),o(e))},w=e=>{i&&i(e)};return(0,r.useEffect)((()=>{g(n)}),[n]),r.createElement(p,{className:e,style:s},r.createElement(h,{className:"prev-page",onClick:()=>b(d-1),"data-last-page":1===d||void 0},v?r.createElement("a",{href:(0,a.f)(v,d,c),onClick:w},r.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},r.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):r.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},r.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?r.createElement(m,{pagesAmount:t,activePage:d,handlePageChange:b,handleClick:w,href:v,queryPageName:c}):u.map((e=>r.createElement(f,{key:`pagination+${e}`,"data-page-active":e===d||void 0,onClick:()=>b(e)},v?r.createElement("a",{href:(0,a.f)(v,e,c),onClick:w},e):e))),r.createElement(h,{className:"next-page",onClick:()=>b(d+1),"data-last-page":d===y+1||void 0},v?r.createElement("a",{href:(0,a.f)(v,d,c),onClick:w},r.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},r.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):r.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},r.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},v=o.Z.div`
position: relative;
width: 100%;
&[data-has-error] {
input {
border-color: ${i.r.colors.red700};
}
}
input {
width: 100%;
padding: 12px 16px;
border: solid 1px ${i.r.colors.gray200};
border-radius: ${i.r.borderRadius};
&:active,
&:focus,
.focused & {
border-color: ${i.r.colors.primaryBase};
box-shadow: 0px 0px 2px 2px ${i.r.colors.primary200};
}
&:disabled {
background-color: ${i.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: ${i.r.sizes.fwRegular};
${a.M.mbDown} {
font-size: 22px;
line-height: 1.2;
}
${a.M.mbUp} {
font-size: 26px;
line-height: 1.2;
}
}
}
&[data-size='md'] {
input {
font-weight: ${i.r.sizes.fwRegular};
${a.M.mbDown} {
font-size: 14px;
line-height: 1.2;
}
${a.M.mbUp} {
font-size: 16px;
line-height: 1.2;
}
}
}
&[data-size='sm'] {
input {
font-weight: ${i.r.sizes.fwRegular};
${a.M.mbDown} {
font-size: 13px;
line-height: 1.5;
}
${a.M.mbUp} {
font-size: 13px;
line-height: 1.5;
}
}
}
`,y=r.forwardRef(((e,t)=>{var{name:n,errorMessage:o,autoComplete:a="off",defaultValue:i,actionIcon:c,displayIcon:u,isDeleteAction:d,onActionClick:p,label:h,placeholder:f,className:m,onChange:g,onKeyPress:y,isDisabled:b,CustomInput:w,size:k,style:x,autoFocus:C,type:E="text",isNumerousKeyboard:D=!1,onFocus:M,enterKeyHint:O,nativeOnChange:N}=e,P=(0,s._)(e,["name","errorMessage","autoComplete","defaultValue","actionIcon","displayIcon","isDeleteAction","onActionClick","label","placeholder","className","onChange","onKeyPress","isDisabled","CustomInput","size","style","autoFocus","type","isNumerousKeyboard","onFocus","enterKeyHint","nativeOnChange"]);const[j,S]=(0,r.useState)(i);return r.createElement(v,{"data-size":k,className:m,"data-has-action-icon":!!c||void 0,"data-has-display-icon":!!u||void 0,"data-has-error":o&&o.length>0||void 0,style:x},h&&r.createElement(l.L,{size:"label2",htmlFor:n,className:"inputLabel"},h),r.createElement("div",{style:{position:"relative"}},w||r.createElement("input",Object.assign({id:n,name:n,placeholder:f,onChange:null!==N&&void 0!==N?N:e=>{return t=e.target.value,S(t),void g(t);var t},onKeyPress:y,type:E,"aria-label":E,disabled:b,value:j,autoComplete:a,ref:t,autoFocus:C,inputMode:D||"number"===E?"numeric":E,pattern:D?"[0-9]*":".*",onFocus:M,enterKeyHint:O},P)),u&&r.createElement(l.S,{className:"displayIcon"},u),c&&r.createElement(l.a,{className:"actionIcon",onClick:()=>{var e;d&&(S(""),null===(e=t.current)||void 0===e||e.focus()),p&&p()}},c)),o&&o.length>0&&r.createElement(l.b,{className:"errorLabel"},o))}));y.displayName="PureInput";const b=[320,420,640,750,828,1080,1200,1440,1920,2048],w=({src:e,width:t,quality:n})=>{try{const r=new URL(e,"undefined"!==typeof window?window.location.origin:"http://localhost");return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(null!==n&&void 0!==n?n:75)),r.toString()}catch(r){return e}};const k=e=>{var{alt:t,backupSrc:n,src:o,placeholderSrc:a,style:i,ref:l,unoptimized:c=!1,quality:u,sizes:d,width:p}=e,h=(0,s._)(e,["alt","backupSrc","src","placeholderSrc","style","ref","unoptimized","quality","sizes","width"]);const[f,m]=(0,r.useState)(!1),g=(0,r.useMemo)((()=>c?[]:function(e){if(e.sizes)return b;if(e.width){const t=Math.max(1,Math.round(e.width));return Array.from(new Set([t,Math.min(2*t,2048)])).sort(((e,t)=>e-t))}return b}({sizes:d,width:p})),[d,p,c]),v=(0,r.useMemo)((()=>{if(!c)return g.map((e=>`${w({src:o,width:e,quality:u})} ${e}w`)).join(", ")}),[c,g,o,u]),y=(0,r.useMemo)((()=>{if(c)return o;const e=g.length?g[g.length-1]:null!==p&&void 0!==p?p:1920;return w({src:o,width:e,quality:u})}),[c,g,o,u,p]);return r.createElement(x,Object.assign({loading:"lazy",alt:t,srcSet:v,onError:()=>!f&&m(!0),src:f?n||y:y||n,style:Object.assign(Object.assign({},a?{backgroundImage:`url(${a})`}:{}),i),"data-has-placeholder":!!a,sizes:d,ref:l},h))},x=o.Z.img`
&[data-has-placeholder='true'] {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
`,C=(0,o.Z)(c.I)`
box-shadow: 0px 0px 1px 0px #0000000a, 0px 2px 8px 0px #0000000a,
0px 10px 16px 0px #0000000a;
border-radius: 0.75rem;
overflow: hidden;
input.mantine-Input-input {
border: none;
font-size: 0.8125rem;
line-height: 1.25rem;
}
`,E=(0,o.Z)((e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 25",fill:"none"},e),r.createElement("path",{d:"M11 18.957C14.866 18.957 18 15.823 18 11.957C18 8.09104 14.866 4.95703 11 4.95703C7.13401 4.95703 4 8.09104 4 11.957C4 15.823 7.13401 18.957 11 18.957Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20 20.957L16 16.957",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))))`
color: ${i.r.colors.primaryBase};
width: 20px;
height: 20px;
`,D=e=>{const{loading:t,disabled:n,placeholder:o,value:a,onChange:i,icon:l=r.createElement(E,null),className:c,style:u}=e,d=(0,s._)(e,["loading","disabled","placeholder","value","onChange","icon","className","style"]);return r.createElement(C,Object.assign({disabled:t||n,size:"lg",value:a,onChangeRaw:e=>{i(e.currentTarget.value)},type:"text",placeholder:o,className:c,icon:l,style:u},d,{"data-event-label":a}))}},7974:function(e,t,n){"use strict";n.d(t,{D:function(){return h}});var r=n(67294),o=n(19827),a=n(93867),i=n(10917);const s=a.Z.div`
--dropdown-padding: 12px 18px 12px 16px;
position: relative;
box-sizing: border-box;
border: 1px solid ${i.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: ${i.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: ${i.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};
}
}
`,l=a.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: ${i.r.borderRadius};
box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
}
`,c=a.Z.ul`
position: absolute;
top: 100%;
/* right: 0; */
min-width: 100%;
left: 0;
display: block;
margin-top: 4px;
background: ${i.r.colors.white};
border-radius: ${i.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 ${i.r.colors.gray200};
background: white;
box-shadow: none;
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
}
`,u=a.Z.li`
display: flex;
padding: 12px 18px 12px 16px;
&[data-disabled='true'] {
cursor: not-allowed;
color: #bfbfbf;
& > * {
pointer-events: none;
}
}
&:hover,
:active {
background: ${i.r.colors.gray100};
}
`,d=a.Z.div`
max-width: 16px;
margin-right: 8px;
`,p=a.Z.div`
position: absolute;
top: 12px;
left: 16px;
pointer-events: none;
`,h=({className:e,value:t,options:n,onChange:a=(()=>{}),id:i,placeholderIcon:h,placeholder:f,style:m,size:g="lg",groupedWithLabel:v,disabled:y,dropdownLabelTrackingAttributes:b={},isNativeSelect:w=!1})=>{const k=(0,o.rZ)(),[x,C]=r.useState(!1),E=()=>!y&&C(!x);if(w){const e="object"===typeof(null===t||void 0===t?void 0:t.value)&&t.value instanceof Date?t.value.toString():null===t||void 0===t?void 0:t.value;return r.createElement(s,{color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:y,onChange:e=>{if("string"===typeof e.target.value){const t=n.find((t=>t.value===e.target.value));t&&a(t)}}},f&&r.createElement("option",{value:f,disabled:!0,selected:!0},f),n.map((e=>r.createElement("option",{key:`${i}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label))))}return r.createElement(s,{color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],className:e,"data-dropdown-open":x||void 0,"data-size":g,id:i,"data-has-icons":!!h,style:m,onBlur:()=>C(!1),tabIndex:0,"data-disabled":y},!!v&&r.createElement(p,null,v),r.createElement(l,Object.assign({color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],onClick:E,className:v&&"with-label"},b),h," ",r.createElement("span",null,t&&t.value?t.label:f)),x&&r.createElement(c,{onClick:E,"data-has-icons":!!h},n.map((e=>r.createElement(u,{key:`${i}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>!e.disabled&&!y&&(null===a||void 0===a?void 0:a(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&r.createElement(d,null,e.icon),e.label)))))}},69046:function(e,t,n){"use strict";n.d(t,{D:function(){return p},u:function(){return c}});var r=n(22470),o=n(67294),a=n(86010),i=n(44957),s=n(93867),l=n(74533);const c=(e=300)=>{const[t,n]=(0,o.useState)(!1);return{isDragging:t,handleDragStart:(0,o.useCallback)((()=>{n(!0)}),[]),handleDragEnd:(0,o.useCallback)((()=>{setTimeout((()=>{n(!1)}),e)}),[e])}},u=(0,s.Z)(i.dy.Content)`
position: fixed;
z-index: ${l.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 "}
`,d=(0,s.Z)(i.dy.Overlay)`
position: fixed;
inset: 0;
z-index: ${l.Z-9e6};
width: 100%;
max-height: 100%;
&[data-state='open'] {
opacity: 0.6 !important;
}
`,p=e=>{const{open:t,onOpenChange:n,snapPoints:s,activeSnapPoint:p,setActiveSnapPoint:h,children:f,overlayClassName:m,className:g,fadeFromIndex:v=l.Z-9e6,onClose:y}=e,b=(0,r._)(e,["open","onOpenChange","snapPoints","activeSnapPoint","setActiveSnapPoint","children","overlayClassName","className","fadeFromIndex","onClose"]),[w,k]=(0,o.useState)(t),[x,C]=(0,o.useState)(s?null===s||void 0===s?void 0:s[0]:null),{isDragging:E,handleDragStart:D,handleDragEnd:M}=c(),O=(0,o.useCallback)((e=>{k(e),null===n||void 0===n||n(e)}),[n]),N=(0,o.useMemo)((()=>s&&s.length?Boolean(x===s[s.length-1]):w),[x,s]),P=(0,o.useMemo)((()=>{const e={open:w,onOpenChange:O,fadeFromIndex:v};return s&&(null===s||void 0===s?void 0:s.length)&&(e.snapPoints=s,e.activeSnapPoint=x,e.setActiveSnapPoint=e=>{C(e),null===h||void 0===h||h(e)}),e}),[w,O,x,C,h,s,v]);return(0,o.useEffect)((()=>{k(t)}),[t]),(0,o.useEffect)((()=>{C(p)}),[p]),o.createElement(i.dy.Root,Object.assign({onDrag:D,onRelease:M,onClose:y},b,P),o.createElement(i.dy.Portal,null,o.createElement(d,{className:(0,a.Z)(m,"drawer__overlay",{drawer__overlay_full:N})}),o.createElement(u,{isDragging:E,className:(0,a.Z)(g,"drawer__content",{drawer__content_full:N})},o.createElement(i.dy.Handle,{className:"drawer__handle"}),o.createElement(i.dy.Title,{style:{display:"none"}}),f)))}},59242:function(e,t,n){"use strict";n.d(t,{A:function(){return d},C:function(){return y},D:function(){return k},I:function(){return f},P:function(){return v},a:function(){return E}});var r=n(67294),o=n(93867),a=n(10917),i=n(22398),s=n(94184),l=n.n(s),c=n(88125),u=n(83129);const d=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none"},e),r.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#2D87F3",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})),p=o.Z.ul`
display: grid;
grid-gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
list-style: none;
`,h=o.Z.li`
p {
margin-top: 8px;
text-align: center;
}
.insuranceLogo {
display: grid;
height: 58px;
border: 1px solid ${a.r.colors.neutral200};
border-radius: 6px;
place-content: center;
> img {
width: 93px;
height: 43px;
object-fit: contain;
}
}
`,f=({insurances:e,className:t,isName:n=!0})=>e.length?r.createElement(p,{id:"insurance-list",className:t},e.map((e=>r.createElement(h,{className:"insuranceItem",key:e.id},r.createElement("div",{className:"insuranceLogo"},r.createElement("img",{src:e.logo,alt:e.name||"insurance-logo"})),n&&r.createElement(i.T,{size:"base",color:a.r.colors.gray500,type:"bold"},e.name))))):null,m=o.Z.div`
display: flex;
flex-wrap: wrap;
gap: 7px;
&.paymentList {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
justify-content: center;
}
`,g=o.Z.div`
border: 1px solid ${a.r.colors.neutral100};
border-radius: 12px;
width: 80px;
min-height: 80px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
&.payment-item-mobile {
width: 100%;
}
.logo {
position: relative;
width: 55px;
aspect-ratio: 55 / 32;
object-fit: contain;
}
.txt-caption-1 {
font-size: 0.6875rem;
line-height: 1rem;
color: ${a.r.colors.gray800};
}
`,v=({payments:e,className:t,isName:n=!0,isMobile:o=!1})=>e.length?r.createElement(m,{id:"payment-container",className:l()(t,{paymentList:o&&e.length>=4})},e.map((t=>r.createElement(g,{className:l()("payment-item",{"payment-item-mobile":o&&e.length>=4}),key:t.id},r.createElement(c.I,{className:"logo",src:t.logo,alt:t.name}),n&&r.createElement("div",{className:"txt-caption-1"},t.name))))):null,y=e=>r.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),r.createElement("path",{d:"M4.89646 16.9996H2.96549C2.43225 16.9996 2 16.5674 2 16.0341V12.6549C2 12.1217 2.43225 11.6895 2.96549 11.6895H4.89646",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M15.0342 11.6895H16.9652C17.4984 11.6895 17.9306 12.1217 17.9306 12.6549V16.0341C17.9306 16.5674 17.4984 16.9996 16.9652 16.9996H15.0342",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M5.86197 3H14.0686C14.6015 3 15.0341 3.43263 15.0341 3.96549V16.9995H4.89648V3.96549C4.89648 3.43263 5.32912 3 5.86197 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M11.172 13.6206H8.7583V16.9998H11.172V13.6206Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M9.96533 9.99996V5.65527",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.1377 7.82764H7.79297",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),b=o.Z.div`
display: flex;
gap: 8px;
.icon {
width: 1.25rem;
height: 1.25rem;
color: ${a.r.colors.gray400};
flex-shrink: 0;
}
.doctor-info-item-content {
display: flex;
flex-direction: column;
gap: 10px;
}
`;(0,o.Z)(y)`
width: 1.25rem;
height: 1.25rem;
`;const w=o.Z.div`
display: flex;
flex-direction: column;
gap: 4px;
`,k=e=>{const{doctorInfo:t,Icon:n,title:o}=e;return r.createElement(b,null,r.createElement(n,{className:"icon"}),r.createElement(w,null,r.createElement(u.T,{size:"p3",weight:"semiBold",color:"#111111"},o),r.createElement("div",{className:"doctor-info-item-content"},(Array.isArray(t)?t:[t]).map((e=>r.createElement(u.T,{size:"p3",weight:"regular",key:e},e))))))},x=o.Z.div`
display: flex;
padding: 1rem;
width: 100%;
justify-content: space-between;
`,C=o.Z.div`
display: flex;
flex-direction: column;
gap: 2px;
`,E=e=>{const{name:t,specialty:n,experience:o,profileImage:a}=e;return r.createElement(x,null,r.createElement(C,null,r.createElement(u.T,{size:"title2",weight:"semiBold",color:"#111111"},t),r.createElement("div",null,n&&r.createElement(u.T,{size:"c1",weight:"regular"},n),o&&r.createElement(u.T,{size:"c1",weight:"regular"},o))),r.createElement(c.I,{src:a,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover"}}))}},81546:function(e,t,n){"use strict";n.d(t,{D:function(){return E}});var r=n(67294),o=n(40254),a=n(36308),i=n(70917),s=n(93867),l=n(10917);const c=i.F4`
from {
transform: translate3d(0, 100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
`,u=i.F4`
from {
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
`,d=i.F4`
from {
transform: translate3d(-100%, 0, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
`,p=i.F4`
from {
transform: translate3d(100%, 0, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
`,h=i.F4`
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(0, 100%, 0);
}
`,f=i.F4`
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(-100%, 0, 0);
}
`,m=i.F4`
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(100%, 0, 0);
}
`,g=i.F4`
from {
transform: translate3d(0, 0, 0);
}
to {
visibility: hidden;
transform: translate3d(0, -100%, 0);
}
`;i.F4`
from {
opacity: 0;
}
to {
opacity: 1;
}
`;var v=n(83129);const y="600ms",b=s.Z.div`
position: fixed;
inset: 0;
z-index: ${l.r.zIndexes.drawer};
pointer-events: ${e=>e.open?"auto":"none"};
`,w=s.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?i.iv`
border-bottom: 1px solid ${l.r.colors.neutral100};
`:null}
}
.close-button {
margin-left: auto;
}
${e=>((e,t)=>{switch(e){case"top":return i.iv`
top: 0;
width: 100%;
border-radius: 0px 0px 6px 6px;
${t?i.iv`
animation: ${u} ${y} ease-in-out forwards;
`:null}
&.slideOut {
animation: ${g} ${y} ease-in-out forwards;
}
`;case"right":return i.iv`
right: 0;
height: 100%;
min-width: 300px;
border-radius: 6px 0px 0px 6px;
${t?i.iv`
animation: ${p} ${y} ease-in-out forwards;
`:null}
&.slideOut {
animation: ${m} ${y} ease-in-out forwards;
}
`;case"bottom":return i.iv`
bottom: 0;
width: 100%;
border-radius: 6px 6px 0px 0px;
${t?i.iv`
animation: ${c} ${y} ease-in-out forwards;
`:null}
&.slideOut {
animation: ${h} ${y} ease-in-out forwards;
}
`;case"left":return i.iv`
left: 0;
height: 100%;
min-width: 300px;
border-radius: 0px 6px 6px 0px;
${t?i.iv`
animation: ${d} ${y} ease-in-out forwards;
`:null}
&.slideOut {
animation: ${f} ${y} ease-in-out forwards;
}
`;default:return i.iv`
left: 0;
height: 100%;
min-width: 300px;
border-radius: 0px 6px 6px 0px;
${t?i.iv`
animation: ${c} ${y} ease-in-out forwards;
`:null}
&.slideOut {
animation: ${h} ${y} ease-in-out forwards;
}
`}})(e.placement,e.open)}
`,k=s.Z.div`
min-height: 200px;
padding: 16px;
overflow-y: auto;
`,x=s.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;
}
`,C=({open:e=!1,onClickOutside:t})=>r.createElement(x,{"data-open":e,onClick:t}),E=({children:e,title:t,onClose:n,open:i=!1,placement:s="left",destroyOnClose:l=!1,isPropagationEvent:c=!0,className:u})=>{const d=(0,r.useRef)();(0,r.useEffect)((()=>((0,a.t)(i),()=>(0,a.t)(!1))),[i]);const p=()=>{d.current.classList.add("slideOut"),setTimeout((()=>{n()}),800)};return!i&&l?null:r.createElement(o.h,null,r.createElement(b,{className:u,open:i},r.createElement(C,{open:i,onClickOutside:p}),r.createElement(w,{open:i,placement:s,ref:d,hasTitle:Boolean(t)},r.createElement("div",{className:"title"},t&&r.createElement(v.T,{size:"s2",weight:"semiBold"},t),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:p},r.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"}))),r.createElement(k,{onClick:e=>{c&&e.stopPropagation()}},e&&(r.isValidElement(e)?e:"function"===typeof e?e({internalClose:p}):null)))))}},17742:function(e,t,n){"use strict";n.d(t,{S:function(){return g}});var r=n(22470),o=n(67294),a=n(91938),i=n(19827),s=n(88125),l=n(47440),c=n(93867),u=n(22078),d=n(26775),p=n(42396),h=n(62867);const f=c.Z.div`
.link-info-container {
padding: 0.5rem 1rem;
background: ${e=>e.color||"#f4faff"};
}
.link-image-wrapper {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%;
&.fetching {
background: lightgray;
}
.loading-spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.link-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
}
a {
text-decoration: none;
}
&[data-is-marrybaby='true'] {
overflow: hidden;
border-radius: 1rem;
}
`,m=({id:e,autoplay:t})=>{const n=(0,o.useRef)(null),r=(({url:e,onLoad:t,onError:n})=>{const[r,a]=(0,o.useState)(e?"loading":"idle");return(0,o.useEffect)((()=>{if(!e)return void a("idle");let r=document.querySelector(`script[src="${e}"]`);const o=()=>{a("ready"),null===t||void 0===t||t()},i=()=>{a("error"),null===n||void 0===n||n()};return r||(r=document.createElement("script"),r.type="application/javascript",r.src=e,r.async=!0,document.body.appendChild(r),r.addEventListener("load",o),r.addEventListener("error",i)),r.addEventListener("load",o),r.addEventListener("error",i),()=>{r.removeEventListener("load",o),r.removeEventListener("error",i)}}),[e]),r})({url:"https://cdn.plyr.io/3.7.8/plyr.js"});return(0,o.useEffect)((()=>{if(!document.getElementById("hhg-plyr-player")){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href="https://cdn.plyr.io/3.7.8/plyr.css",e.id="hhg-plyr-player",document.head.appendChild(e)}"ready"!==r&&"undefined"===typeof Plyr||new Plyr(n.current.querySelector('[data-id="player"]'),{autoplay:t,muted:!0})}),[r]),o.createElement(o.Fragment,null,o.createElement(a.x,{ref:n,sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#000","&, > div":{width:"100%",height:"100%"}}},o.createElement("div",{"data-id":"player"},o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${e}?&mute=1&enablejsapi=1&rel=0`,allowFullScreen:!0,frameBorder:"0"}))))},g=({url:e,image:t,className:n,style:a,baseUrl:c="",autoPlay:g=!0,onPushStatus:v})=>{const{data:{locale:y}}=(0,o.useContext)(l.T),[b,w]=(0,o.useState)(null);(0,o.useEffect)((()=>{(0,r.a)(void 0,void 0,void 0,(function*(){if(!t){if(!e)return w(null);w((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),(0,l.c)((0,l.e)(u.yy.FETCH_PREVIEW,{_locale:y},void 0,c),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!c).then((t=>{var n,r;w({url:e,image:(null===(n=null===t||void 0===t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(r=null===t||void 0===t?void 0:t.data)||void 0===r?void 0:r.logo)})})).catch((()=>{w(null)}))}}))}),[e,t]);const k=t||(null===b||void 0===b?void 0:b.image),x=(null===b||void 0===b?void 0:b.url)||e,C=(0,o.useMemo)((()=>(0,p.y)(x)),[x]),E=(0,o.useMemo)((()=>x.includes("facebook.com")||x.includes("fb.watch")),[x]),D=(0,o.useRef)(0),M=(0,o.useRef)(0),[O,N]=(0,o.useState)(!1);(0,o.useEffect)((()=>{const e=()=>{var e;const t=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();let n=!1;t&&(!D.current||Math.abs((D.current-t.width)/(null===t||void 0===t?void 0:t.width))>.2)&&(D.current=Math.floor(t.width),n=!0),t&&(!M.current||Math.abs((M.current-t.height)/(null===t||void 0===t?void 0:t.height))>.2)&&(M.current=Math.floor(t.height),n=!0),n&&N((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),(0,o.useEffect)((()=>{(null===b||void 0===b?void 0:b.image)&&(null===b||void 0===b?void 0:b.url)&&(null===v||void 0===v||v(!0))}),[b]);const P=(0,o.useRef)(null),j=(0,i.rZ)();return o.createElement(f,{className:`${n} no-replace-click`,style:a,ref:P,color:j.colors[j.primaryColor][0]},t||!C&&!E?o.createElement("a",{href:x,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null===b||void 0===b?void 0:b.isFetching)?"fetching":"")},(null===b||void 0===b?void 0:b.isFetching)?o.createElement(h.L,{className:"loading-spinner"}):o.createElement(s.I,{className:"link-image",src:k||d.D,backupSrc:d.D,alt:x}))):o.createElement("div",{className:"link-image-wrapper"},C?o.createElement(m,{id:C,autoplay:g}):E?o.createElement("iframe",{key:String(O),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(x)}&autoplay=${g?1:0}&show_text=false&t=0&width=${D.current}&height=${M.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:M.current,width:D.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))}},56794:function(e,t,n){"use strict";n.d(t,{T:function(){return E},a:function(){return v},b:function(){return g},c:function(){return y},d:function(){return w},e:function(){return f},f:function(){return x},g:function(){return k},h:function(){return C},i:function(){return M},j:function(){return D},k:function(){return m},o:function(){return p},s:function(){return h}});var r=n(86894),o=n(74533),a=n(81588),i=n(60305),s=n(32886),l=n(65900),c=n(78577);const u=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],d=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...u],p=(e,t)=>(Object.keys(t).map((n=>{const r=t[n];if("source"!==n){if(d.includes(n))if(u.includes(n))try{e[n]=JSON.parse(r)}catch(o){}else e[n]="account_id"!==n&&"current_score"!==n&&"bot_id"!==n?r:parseInt(r)}else e.is_new="first_login"===r})),e),h=e=>[{id:(0,s.Z)(),label:JSON.stringify({title:"",description:""}),type:a.N.SSO_INTENT,url:""},{id:(0,s.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:a.N.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:(0,s.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:a.N.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:(0,s.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:a.N.SSO_INTENT,url:"/images/subot/shield.svg"}];function f(e){const t=e.condition,n=e.finished,r=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>r||t())&&(clearInterval(a),n())}),300)}const m=e=>r.c.parse(e||"")["hhg-id"]||i.Z.get("hhg-id")||"",g=e=>{if(e)return i.Z.set("hhg-id",e),e;const t=m();if(t)return t;const n=(0,s.Z)();return i.Z.set("hhg-id",n),n},v=e=>{const t=r.c.parse(e||"")[o.B]||i.Z.get(o.B)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n).sub}catch(n){return""}},y=e=>{const t=r.c.parse(e||"")[o.B]||i.Z.get(o.B)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),r=JSON.parse(n);return{email:r.email,id:r.sub}}catch(n){return{email:"",id:0}}},b=(0,s.Z)(),w=()=>b,k=(e,t)=>!t&&("undefined"!==typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${l.y?"":"discover."}${c.v[e]}`,x=e=>{const 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)))},C=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},E=30,D=e=>(null===e||void 0===e?void 0:e.endsWith("@hhg.com"))||(null===e||void 0===e?void 0:e.endsWith("@facebook.com"));function M(e="",t=""){if(!e.startsWith("https://")||!t)return"";const n=new URL(e),r=n.searchParams;return r.get("hhgclid")?(r.delete("hhgclid"),r.set("hhgclid",t),`${n.origin}${n.pathname}?${r.toString()}`):e}},37699:function(e,t,n){"use strict";n.d(t,{I:function(){return m},L:function(){return f},S:function(){return p},a:function(){return d},b:function(){return u}});var r=n(22470),o=n(67294),a=n(19827),i=n(93867),s=n(10917),l=n(36308);const c=i.Z.div`
position: relative;
width: 100%;
&[data-has-error] {
input {
border-color: ${s.r.colors.red700};
}
}
input {
width: 100%;
padding: 12px 16px;
border: solid 1px ${s.r.colors.gray200};
border-radius: ${s.r.borderRadius};
&:active,
&:focus,
&.focused {
border-color: ${e=>e.color};
box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor};
}
&:disabled {
background-color: ${s.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: ${s.r.sizes.fwRegular};
${l.M.mbDown} {
font-size: 22px;
line-height: 1.2;
}
${l.M.mbUp} {
font-size: 26px;
line-height: 1.2;
}
}
}
&[data-size='md'] {
input {
font-weight: ${s.r.sizes.fwRegular};
line-height: 22px;
${l.M.mbDown} {
font-size: 14px;
line-height: 1.2;
}
${l.M.mbUp} {
font-size: 16px;
line-height: 1.2;
}
}
}
&[data-size='sm'] {
input {
font-weight: ${s.r.sizes.fwRegular};
line-height: 20px;
${l.M.mbDown} {
font-size: 13px;
line-height: 1.5;
}
${l.M.mbUp} {
font-size: 13px;
line-height: 1.5;
}
}
}
`,u=i.Z.label`
color: ${s.r.colors.red700};
font-weight: ${s.r.sizes.fwRegular};
`,d=i.Z.div`
position: absolute;
top: 50%;
right: 16px;
cursor: pointer;
transform: translateY(-50%);
`,p=i.Z.div`
position: absolute;
top: 50%;
left: 16px;
display: inline-flex;
cursor: default;
transform: translateY(-50%);
`;var h="DjBFAbd";const f=({children:e,className:t,style:n,htmlFor:r,size:a})=>o.createElement("label",{"data-size":a,className:`${h} ${t||""}`,style:n,htmlFor:r},e),m=e=>{var{name:t,value:n,errorMessage:i,isNumerousKeyboard:s=!1,showErrorMessage:l=!0,actionIcon:h,displayIcon:m,onActionClick:g,label:v,className:y,onChange:b,isDisabled:w,CustomInput:k,size:x,style:C,autoComplete:E="off",type:D="text",inputClassName:M,trackingAttributes:O,enterKeyHint:N}=e,P=(0,r._)(e,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const j=(0,a.rZ)(),S=(0,o.useMemo)((()=>O?{"data-event-category":O.dataEventCategory,"data-event-action":O.dataEventAction,"data-event-label":O.dataEventLabel}:{}),[O]);return o.createElement(c,{"data-size":x,className:y,"data-has-action-icon":!!h||void 0,"data-has-display-icon":!!m||void 0,"data-has-error":i&&i.length>0||void 0,color:j.fn.primaryColor(),shadowColor:j.colors[j.primaryColor][0],style:C},v&&o.createElement(f,{size:"label2",htmlFor:t,className:"inputLabel"},v),o.createElement("div",{style:{position:"relative"}},k||o.createElement("input",Object.assign({id:t,name:t,onChange:e=>b&&b(e.target.value),type:D,"aria-label":D,value:n,disabled:w,autoComplete:E,inputMode:s||"number"===D?"numeric":D,pattern:s?"[0-9]*":".*",className:M,enterKeyHint:N},S,P)),m&&o.createElement(p,{className:"displayIcon"},m),h&&o.createElement(d,{className:"actionIcon",onClick:g},h)),i&&i.length>0&&l&&o.createElement(u,{className:"errorLabel"},i))}},81401:function(e,t,n){"use strict";n.d(t,{b:function(){return y}});var r=n(67294),o=n(22470),a=n(52397),i=n(81588),s=n(56794),l=n(43125),c=n(86315);n(60305);const u=e=>{var{size:t}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M26.454 0H1.534A1.546 1.546 0 0 0 0 1.546v24.92A1.545 1.545 0 0 0 1.546 28h13.412V17.172h-3.64v-4.239h3.64V9.814c0-3.615 2.209-5.586 5.434-5.586a29 29 0 0 1 3.26.168v3.78h-2.224c-1.755 0-2.097.84-2.097 2.058v2.7h4.189l-.56 4.238h-3.64V28h7.134c.854 0 1.546-.692 1.546-1.546V1.534A1.546 1.546 0 0 0 26.454 0",fill:"#1778F2"}))};u.defaultProps={size:24};const d=e=>{var{size:t}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 32 32"},n),r.createElement("g",{id:"surface1"},r.createElement("path",{fill:"#00cf2e",d:"M26.4 32H5.6A5.6 5.6 0 0 1 0 26.4V5.6A5.6 5.6 0 0 1 5.6 0h20.8A5.6 5.6 0 0 1 32 5.6v20.8a5.6 5.6 0 0 1-5.6 5.6m0 0"}),r.createElement("path",{fill:"#fff",d:"M28.2 14.2c0-4.4-5.2-9.2-12-9.2-6.6 0-12 3.9-12 9.2 0 4.9 4.2 9 10 9.5.4 0 .8.2 1 .6l.2.7a9.3 9.3 0 0 1-.2 1.6.4.4 0 0 0 .2.4.4.4 0 0 0 .4 0c2.8-1.2 12.4-6.3 12.4-12.8m0 0"}),r.createElement("path",{fill:"#00cf2e",d:"M11.8 16.4H10v-4.2a.6.6 0 0 0-.6-.6.6.6 0 0 0-.6.6V17c0 .3.3.6.6.6h2.4c.3 0 .6-.3.6-.6a.6.6 0 0 0-.6-.6m1.6-4.8a.6.6 0 0 0-.6.6V17c0 .3.3.6.6.6s.6-.3.6-.6v-4.8a.6.6 0 0 0-.6-.6m5.6 0a.6.6 0 0 0-.6.6v3l-2.5-3.4a.6.6 0 0 0-.7-.2.6.6 0 0 0-.4.6V17a.6.6 0 0 0 1.2 0v-3l2.5 3.4a.6.6 0 0 0 .5.2.6.6 0 0 0 .6-.6v-4.8a.6.6 0 0 0-.6-.6m4.4 3.6c.3 0 .6-.3.6-.6a.6.6 0 0 0-.6-.6h-1.8v-1.2h1.8a.6.6 0 1 0 0-1.2H21a.6.6 0 0 0-.6.6V17c0 .3.3.6.6.6h2.4a.6.6 0 0 0 0-1.2h-1.8v-1.2Zm0 0"})))};d.defaultProps={size:24};const p=e=>{var{size:t}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("rect",{width:"32",height:"32",rx:"4",fill:"#0077B5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8571 9.07047C10.8349 7.97612 10.1126 7.14258 8.93969 7.14258C7.76679 7.14258 7 7.97612 7 9.07047C7 10.1422 7.74415 10.9997 8.89516 10.9997H8.9171C10.1126 10.9997 10.8571 10.1422 10.8571 9.07047ZM10.8571 12.2861H7V23.8576H10.8571V12.2861ZM20.1512 12.2861C22.9226 12.2861 25.0002 13.9023 25.0002 17.3749L25.0001 23.8572H20.7887V17.8087C20.7887 16.2895 20.1793 15.2527 18.6547 15.2527C17.4912 15.2527 16.7981 15.9516 16.4937 16.6266C16.3824 16.8686 16.355 17.2057 16.355 17.5436V23.8576H12.1431C12.1431 23.8576 12.1986 13.6128 12.1431 12.5519H16.355V14.1532C16.914 13.3835 17.9152 12.2861 20.1512 12.2861Z",fill:"white"}))};p.defaultProps={size:24};const h=e=>{var{size:t=24}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{fill:"#00AEED",d:"M0 0h32v32H0z"}),r.createElement("path",{d:"m7.322 15.653 15.426-5.948c.716-.258 1.342.175 1.11 1.258l.001-.002-2.627 12.375c-.194.877-.716 1.09-1.445.677l-4-2.948-1.93 1.859c-.213.213-.393.393-.806.393l.284-4.07 7.413-6.698c.323-.284-.072-.444-.497-.161l-9.161 5.768-3.95-1.232c-.857-.272-.876-.857.182-1.27",fill:"#fff"}))},f=e=>{var{size:t=24}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M28.19 0H3.81A3.814 3.814 0 0 0 0 3.81v24.38A3.813 3.813 0 0 0 3.81 32h24.38A3.814 3.814 0 0 0 32 28.19V3.81A3.814 3.814 0 0 0 28.19 0m-3.043 13.96a5.71 5.71 0 0 1-5.302-2.555v8.79A6.497 6.497 0 1 1 13.35 13.7c.135 0 .268.012.401.02v3.202c-.133-.016-.264-.04-.401-.04a3.315 3.315 0 1 0 0 6.631c1.831 0 3.449-1.443 3.449-3.274l.032-14.93h3.06a5.705 5.705 0 0 0 5.257 5.094z",fill:"#000"}))},m=e=>{var{size:t}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M21.407 0H2.593A2.593 2.593 0 0 0 0 2.593v18.814A2.593 2.593 0 0 0 2.593 24h18.814A2.593 2.593 0 0 0 24 21.407V2.593A2.593 2.593 0 0 0 21.407 0m-6.099 20.353-4.46-6.491-5.584 6.49H3.821l6.386-7.422-6.386-9.295h4.871l4.223 6.147 5.288-6.147h1.443l-6.09 7.079 6.623 9.638z",fill:"#000"}))};m.defaultProps={size:24};const g=e=>{var{size:t=24}=e,n=(0,o._)(e,["size"]);return r.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M24 32H8a8 8 0 0 1-8-8V8a8 8 0 0 1 8-8h16a8 8 0 0 1 8 8v16a8 8 0 0 1-8 8",fill:"#785AFA"}),r.createElement("path",{d:"M25 17.684c-.575 4.638-3.97 4.93-4.595 5.13a19 19 0 0 1-5.85.498s-2.32 2.372-3.04 3.1a.4.4 0 0 1-.335.137c-.125-.031-.16-.178-.16-.395.005-.308.02-3.395.02-3.395-4.53-1.257-4.265-5.986-4.215-8.462s.515-4.505 1.9-5.869c2.48-2.248 7.595-1.912 7.595-1.912 4.32.018 6.39 1.319 6.87 1.755 1.59 1.364 2.405 4.628 1.81 9.412m-.62-10.57c-.565-.523-2.86-2.187-7.965-2.21 0 0-6.02-.363-8.955 2.33-1.635 1.633-2.21 4.024-2.27 6.989S4.645 22.743 10 24.25v2.299c0 .587.175 1.451 1.02 1.451.345 0 .835-.132 1.52-.828l2.275-2.193c2.077.109 4.16-.077 6.185-.553.74-.24 4.925-.776 5.605-6.331.7-5.726-.34-9.349-2.225-10.981",fill:"#fff"}),r.createElement("path",{d:"M15.998 9a5.5 5.5 0 0 1 5.5 5.5.501.501 0 0 1-1 0 4.503 4.503 0 0 0-4.5-4.5h-.045a.5.5 0 0 1 0-1z",fill:"#fff"}),r.createElement("path",{d:"M15.998 11a3.5 3.5 0 0 1 3.5 3.5.5.5 0 0 1-1 0 2.5 2.5 0 0 0-2.5-2.5h-.045a.5.5 0 1 1 0-1zm5.288 8.44a.77.77 0 0 0-.105-.951 12.6 12.6 0 0 0-1.98-1.43.88.88 0 0 0-1.115.155l-.405.505c-.51.63-2.07-.315-2.81-1.088-.775-.745-1.72-2.302-1.09-2.813l.505-.401a.88.88 0 0 0 .155-1.117 12 12 0 0 0-1.43-1.98.766.766 0 0 0-.95-.107 4.5 4.5 0 0 0-1.04.845 1.32 1.32 0 0 0-.355 1.357 14.8 14.8 0 0 0 3.21 5.212 14.9 14.9 0 0 0 5.21 3.207 1.32 1.32 0 0 0 1.36-.352q.476-.475.84-1.041",fill:"#fff"}))};function v(e,t,n){const r=e.startsWith("http")?e:`${(0,s.g)(t)}${e}`;return encodeURIComponent(n?(()=>{const e=new URL(r);return e.searchParams.append("cn",n),e.toString()})():r)}const y=({shareUrl:e,size:t=32,locale:n})=>[{icon:r.createElement(u,{size:t}),name:"Facebook",type:i.S.Facebook,href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(v(e,n,i.S.Facebook))}`},{icon:r.createElement("img",{src:l.C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{maxWidth:t,maxHeight:t},loading:"lazy"}),name:"Zalo",type:i.S.Zalo,href:`https://sp.zalo.me/share?href=${encodeURIComponent(v(e,n,i.S.Zalo))}`,allowedLocales:[c.L.Vietnam]},{icon:r.createElement(m,{size:t}),name:"Twitter",type:i.S.Twitter,href:`https://twitter.com/intent/tweet?url=${v(e,n,i.S.Twitter)}`},{icon:r.createElement(a.W,{size:t}),name:"WhatsApp",type:i.S.WhatsApp,href:`https://wa.me/?text=${v(e,n,i.S.WhatsApp)}`},{icon:r.createElement(p,{size:t}),name:"LinkedIn",type:i.S.LinkedIn,href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(v(e,n,i.S.LinkedIn))}`},{icon:r.createElement(d,{size:t}),name:"Line",type:i.S.Line,href:`http://line.me/R/msg/text/?${v(e,n,i.S.Line)}`,allowedLocales:[c.L.Taiwan]},{icon:r.createElement(a.I,{size:t}),name:"Instagram",type:i.S.Instagram,href:n===c.L.Taiwan?"https://www.instagram.com/helloyishi/":n===c.L.Malaysia?"https://www.instagram.com/hellodoktor_official/":n===c.L.Thailand?"https://www.instagram.com/hellokhunmor/":n===c.L.Myanmar?"https://www.instagram.com/hellosayarwon/":n===c.L.Cambodia?"https://www.instagram.com/hellokrupetofficial/":n===c.L.Vietnam?"https://www.instagram.com/hellobacsi/":n===c.L.Indonesia?"https://www.instagram.com/hellosehat/":"",allowedLocales:[c.L.Taiwan,c.L.Malaysia,c.L.Myanmar,c.L.Cambodia,c.L.Vietnam,c.L.Indonesia,c.L.Thailand]},{icon:r.createElement(f,{size:t}),name:"TikTok",type:i.S.Tiktok,href:n===c.L.Thailand?"https://www.tiktok.com/@hellokhunmor":n===c.L.Malaysia?"https://www.tiktok.com/@hellodoktor_my":n===c.L.Cambodia?"https://www.tiktok.com/@hellokrupet":n===c.L.Vietnam?"https://www.tiktok.com/@hellobacsi":"",allowedLocales:[c.L.Malaysia,c.L.Cambodia,c.L.Vietnam,c.L.Thailand]},{icon:r.createElement(h,{size:t}),name:"Telegram",type:i.S.Telegram,href:n===c.L.Cambodia?"http://t.me/hellokrupetofficial":n===c.L.Indonesia?"https://www.instagram.com/hellosehat/":"",allowedLocales:[c.L.Cambodia,c.L.Indonesia]},{icon:r.createElement(g,{size:t}),name:"Viber",type:i.S.Viber,href:(c.L.Myanmar,""),allowedLocales:[c.L.Myanmar]}]},65409:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});const r=e=>{let t=String(e);if(e>=1e3){const n=["","k","m","b","t"],r=(""+e).length;let o=Math.floor(r/3);const a=6===r;let i;if(a)i=Math.round(e/1e3);else for(let t=2;t>=1;t--){i=parseFloat((0!=o?e/Math.pow(1e3,o):e).toPrecision(t));if((i+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}i&&i%1!=0?i=i.toFixed(1):a&&i&&i/1e3>=1&&(o+=1,i/=1e3),t=i+(6===r?n[o-1]:n[o])}return t}},542:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(67294);new Map;const o=(e,t)=>{const n=(0,r.useCallback)((n=>{var r;(null===(r=e.current)||void 0===r?void 0:r.contains(n.target))||t(n)}),[]);(0,r.useEffect)((()=>(document.addEventListener("mousedown",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n)})),[n])}},67276:function(e,t,n){"use strict";var r=n(67294),o=n(76623),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{size:t,color:n=o.SQ}=e,i=a(e,["size","color"]);const s=(0,o.jd)(t);return r.createElement("svg",Object.assign({width:s,height:s,viewBox:"0 0 24 24",fill:"none"},i),r.createElement("path",{fill:n,d:"M13.704 5.342c-.256 0-.512.1-.707.295l-.086.086a1 1 0 0 0 0 1.414L16.774 11H3.704a1 1 0 0 0 0 2h13.07l-3.863 3.863a1 1 0 0 0 0 1.414l.086.086a1 1 0 0 0 1.414 0l5.656-5.656a1 1 0 0 0 0-1.414l-5.656-5.656a1 1 0 0 0-.707-.295"}))}},23254:function(e,t,n){"use strict";var r=n(67294),o=n(76623),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{size:t=16,activeColor:n=o.SK}=e,i=a(e,["size","activeColor"]);return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 16 16",fill:"none"},i),r.createElement("path",{d:"M11.7806 8.75016C11.8447 8.53094 12.1553 8.53094 12.2194 8.75016L12.5539 9.89389C12.7727 10.6422 13.3578 11.2273 14.1061 11.4461L15.2498 11.7806C15.4691 11.8447 15.4691 12.1553 15.2498 12.2194L14.1061 12.5539C13.3578 12.7727 12.7727 13.3578 12.5539 14.1061L12.2194 15.2498C12.1553 15.4691 11.8447 15.4691 11.7806 15.2498L11.4461 14.1061C11.2273 13.3578 10.6422 12.7727 9.89389 12.5539L8.75016 12.2194C8.53094 12.1553 8.53094 11.8447 8.75016 11.7806L9.89389 11.4461C10.6422 11.2273 11.2273 10.6422 11.4461 9.89389L11.7806 8.75016Z",fill:"url(#paint0_linear_560_9710)"}),r.createElement("path",{d:"M11.8685 0.450096C11.9069 0.318565 12.0933 0.318565 12.1317 0.450096L12.3324 1.13634C12.4637 1.5853 12.8148 1.93638 13.2638 2.06768L13.95 2.26837C14.0815 2.30684 14.0815 2.49316 13.95 2.53163L13.2638 2.73232C12.8148 2.86362 12.4637 3.2147 12.3324 3.66367L12.1317 4.3499C12.0933 4.48144 11.9069 4.48143 11.8685 4.3499L11.6678 3.66367C11.5365 3.2147 11.1854 2.86362 10.7364 2.73232L10.0502 2.53163C9.91866 2.49316 9.91866 2.30684 10.0502 2.26837L10.7364 2.06768C11.1854 1.93638 11.5365 1.5853 11.6678 1.13633L11.8685 0.450096Z",fill:"url(#paint1_linear_560_9710)"}),r.createElement("path",{d:"M5.29286 2.64983C5.38262 2.34293 5.81738 2.34293 5.90714 2.64983L6.37541 4.25106C6.68177 5.29865 7.50096 6.11784 8.54855 6.4242L10.1498 6.89247C10.4567 6.98223 10.4567 7.41699 10.1498 7.50674L8.54855 7.97502C7.50096 8.28138 6.68177 9.10057 6.37541 10.1482L5.90714 11.7494C5.81738 12.0563 5.38262 12.0563 5.29286 11.7494L4.82459 10.1482C4.51823 9.10057 3.69904 8.28138 2.65145 7.97502L1.05022 7.50674C0.743319 7.41699 0.743319 6.98223 1.05022 6.89247L2.65145 6.4242C3.69904 6.11784 4.51823 5.29865 4.82459 4.25106L5.29286 2.64983Z",fill:"url(#paint2_linear_560_9710)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_560_9710",x1:"15.5429",y1:"7.4",x2:"6.1986",y2:"10.9323",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{"stop-color":"#6DFAF2"}),r.createElement("stop",{offset:"1","stop-color":"#2D87F3"})),r.createElement("linearGradient",{id:"paint1_linear_560_9710",x1:"14.1258",y1:"-0.36",x2:"8.51926",y2:"1.7594",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{"stop-color":"#6DFAF2"}),r.createElement("stop",{offset:"1","stop-color":"#2D87F3"})),r.createElement("linearGradient",{id:"paint2_linear_560_9710",x1:"10.56",y1:"0.759609",x2:"-2.52196",y2:"5.70488",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{"stop-color":"#6DFAF2"}),r.createElement("stop",{offset:"1","stop-color":"#2D87F3"}))))}},93988:function(e,t,n){"use strict";var r=n(67294),o=n(76623),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{size:t=14,color:n=o.SQ,activeColor:i=o.SK,isActive:s}=e,l=a(e,["size","color","activeColor","isActive"]);return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 14 14",fill:"none"},l),r.createElement("path",{d:"M4.2998 6.99957H7.89975M4.2998 4.59961H6.09977",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M4.89941 11.8003C5.5294 12.3223 6.28839 12.6547 7.15778 12.7117C7.84237 12.7567 8.55755 12.7567 9.24154 12.7117C9.47674 12.6961 9.73353 12.6409 9.95433 12.5509C10.2003 12.4507 10.3227 12.4009 10.3857 12.4087C10.4481 12.4159 10.5387 12.4819 10.7199 12.6139C11.0397 12.8467 11.4423 13.0135 12.0399 12.9997C12.3417 12.9925 12.4929 12.9883 12.5601 12.8749C12.6279 12.7609 12.5439 12.6037 12.3753 12.2887C12.1413 11.8519 11.9937 11.3521 12.2181 10.9513C12.6039 10.3789 12.9321 9.70154 12.9801 8.96955C13.0059 8.57655 13.0059 8.16916 12.9801 7.77557C12.9491 7.30057 12.8337 6.8349 12.6393 6.40039",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M7.2066 10.292C9.34016 10.1516 11.0393 8.44408 11.1785 6.30031C11.2061 5.88092 11.2061 5.44653 11.1785 5.02713C11.0393 2.88397 9.34016 1.1764 7.2066 1.036C6.47881 0.988 5.71862 0.988 4.99263 1.036C2.85907 1.1764 1.1599 2.88397 1.0207 5.02713C0.9931 5.44713 0.9931 5.88092 1.0207 6.30031C1.0711 7.0815 1.41969 7.80389 1.83009 8.41468C2.06828 8.84187 1.91108 9.37466 1.66269 9.84085C1.48389 10.1768 1.39449 10.3448 1.46649 10.466C1.53849 10.5872 1.69869 10.5914 2.01968 10.5986C2.65387 10.6142 3.08167 10.436 3.42126 10.1876C3.61386 10.0473 3.71046 9.97705 3.77705 9.96865C3.84305 9.96085 3.97385 10.0137 4.23485 10.1205C4.47004 10.2164 4.74244 10.2752 4.99263 10.292C5.71862 10.34 6.47881 10.34 7.2066 10.292Z",stroke:n,strokeLinejoin:"round"}))}},60305:function(e,t,n){"use strict";function r(e){for(var t=1;t{e&&window.setTimeout((()=>{e.reInit()}),t)}),[e,t])}},41950:function(e,t,n){"use strict";n.d(t,{C:function(){return j}});var r=n(67294),o=n(19827),a=n(48427),i=n(2566),s=n(21434),l=n(44036),c=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&m(e,n,t[n]);if(p)for(var n of p(t))f.call(t,n)&&m(e,n,t[n]);return e};const v=["light","filled","outline","dot","gradient"],y={xs:{fontSize:(0,i.h)(9),height:(0,i.h)(16)},sm:{fontSize:(0,i.h)(10),height:(0,i.h)(18)},md:{fontSize:(0,i.h)(11),height:(0,i.h)(20)},lg:{fontSize:(0,i.h)(13),height:(0,i.h)(26)},xl:{fontSize:(0,i.h)(16),height:(0,i.h)(32)}},b={xs:(0,i.h)(4),sm:(0,i.h)(4),md:(0,i.h)(6),lg:(0,i.h)(8),xl:(0,i.h)(10)};function w({theme:e,variant:t,color:n,size:r,gradient:o}){if(!v.includes(t))return null;if("dot"===t){const t=(0,s.a)({size:r,sizes:b});return{backgroundColor:"transparent",color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],border:`${(0,i.h)(1)} solid ${"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[3]}`,paddingLeft:`calc(${(0,s.a)({size:r,sizes:e.spacing})} / 1.5 - ${t} / 2)`,"&::before":{content:'""',display:"block",width:t,height:t,borderRadius:t,backgroundColor:e.fn.themeColor(n,"dark"===e.colorScheme?4:e.fn.primaryShade("light"),!0),marginRight:t}}}const a=e.fn.variant({color:n,variant:t,gradient:o});return{background:a.background,color:a.color,border:`${(0,i.h)("gradient"===t?0:1)} solid ${a.border}`}}var k=(0,l.k)(((e,{color:t,radius:n,gradient:r,fullWidth:o},{variant:a,size:l})=>{const{fontSize:c,height:p}=l in y?y[l]:y.md;return{leftSection:{marginRight:`calc(${e.spacing.xs} / 2)`},rightSection:{marginLeft:`calc(${e.spacing.xs} / 2)`},inner:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},root:g((h=g(g({},e.fn.focusStyles()),e.fn.fontStyles()),f={fontSize:c,height:p,WebkitTapHighlightColor:"transparent",lineHeight:`calc(${p} - ${(0,i.h)(2)})`,textDecoration:"none",padding:`0 calc(${(0,s.a)({size:l,sizes:e.spacing})} / 1.5)`,boxSizing:"border-box",display:o?"flex":"inline-flex",alignItems:"center",justifyContent:"center",width:o?"100%":"auto",textTransform:"uppercase",borderRadius:e.fn.radius(n),fontWeight:700,letterSpacing:(0,i.h)(.25),cursor:"inherit",textOverflow:"ellipsis",overflow:"hidden"},u(h,d(f))),w({theme:e,variant:a,color:t,size:l,gradient:r}))};var h,f})),x=n(91938),C=Object.defineProperty,E=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const N={variant:"light",size:"md",radius:"xl"},P=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Badge",N,e),{className:a,color:i,variant:s,fullWidth:l,children:c,size:u,leftSection:d,rightSection:p,radius:h,gradient:f,classNames:m,styles:g,unstyled:v}=n,y=((e,t)=>{var n={};for(var r in e)D.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&E)for(var r of E(e))t.indexOf(r)<0&&M.call(e,r)&&(n[r]=e[r]);return n})(n,["className","color","variant","fullWidth","children","size","leftSection","rightSection","radius","gradient","classNames","styles","unstyled"]),{classes:b,cx:w}=k({fullWidth:l,color:i,radius:h,gradient:f},{classNames:m,styles:g,name:"Badge",unstyled:v,variant:s,size:u});return r.createElement(x.x,((e,t)=>{for(var n in t||(t={}))D.call(t,n)&&O(e,n,t[n]);if(E)for(var n of E(t))M.call(t,n)&&O(e,n,t[n]);return e})({className:w(b.root,a),ref:t},y),d&&r.createElement("span",{className:b.leftSection},d),r.createElement("span",{className:b.inner},c),p&&r.createElement("span",{className:b.rightSection},p))}));P.displayName="@mantine/core/Badge";const j=(0,a.F)(P)},11640:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.Z)(e),i=(0,r.Z)(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+i+1,0);var c=l.getDate();return s>=c?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},30890:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getFullYear(),a=t.getMonth(),i=new Date(0);return i.setFullYear(n,a+1,0),i.setHours(0,0,0,0),i.getDate()}},42699:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return n.getTime()>a.getTime()}},313:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return n.getTime()=a&&n<=i}},69119:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},43703:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},54559:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83946),o=n(11640),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.Z)(e,-n)}},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++nn(t).setHours(0,0,0,0)}function c(e){var t=new Date;return t.setHours(0,0,0,0),s(e,t)}function u(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function d(e,t,r){var o=n(e);return o.setHours(0,0,0,0),l(o,t)&&s(o,r)||l(o,r)&&s(o,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&a(n,r)&&a(e,n)?(n=null,r=null):r&&s(e,n)?n=e:r&&a(e,r)?(n=e,r=e):s(r=e,n)&&(r=n,n=e):n=e,{from:n,to:r}}function h(e,t){var n=t.from,r=t.to;return n&&a(e,n)||r&&a(e,r)||n&&r&&d(e,n,r)}function f(e){var t=n(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=n,t.isDate=r,t.addMonths=o,t.isSameDay=a,t.isSameMonth=i,t.isDayBefore=s,t.isDayAfter=l,t.isPastDay=c,t.isFutureDay=u,t.isDayBetween=d,t.addDayToRange=p,t.isDayInRange=h,t.getWeekNumber=f,t.default={addDayToRange:p,addMonths:o,clone:n,getWeekNumber:f,isDate:r,isDayAfter:l,isDayBefore:s,isDayBetween:d,isDayInRange:h,isFutureDay:u,isPastDay:c,isSameDay:a,isSameMonth:i}},50777:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&e.fromMonth){var n=d.startOfMonth(e.fromMonth),r=d.getMonthsDiff(n,t);t=p.addMonths(n,Math.floor(r/e.numberOfMonths)*e.numberOfMonths)}else e.toMonth&&e.numberOfMonths>1&&d.getMonthsDiff(t,e.toMonth)<=0&&(t=p.addMonths(d.startOfMonth(e.toMonth),1-this.props.numberOfMonths));return t}},{key:"getNextNavigableMonth",value:function(){return p.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return p.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=p.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=p.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,r=t.toMonth;return!(!t.canChangeMonth||n&&d.getMonthsDiff(n,e)<0||r&&d.getMonthsDiff(r,e)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:d.startOfMonth(e)},(function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)}))}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=p.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=p.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focus",value:function(){this.wrapper.focus()}},{key:"focusFirstDayOfMonth",value:function(){d.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=d.getDayNodes(this.dayPicker,this.props.classNames);e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=d.getDayNodes(this.dayPicker,this.props.classNames),r=d.nodeListToArray(n).indexOf(e);-1!==r&&(0===r?this.showPreviousMonth((function(){return t.focusLastDayOfMonth()})):n[r-1].focus())}},{key:"focusNextDay",value:function(e){var t=this,n=d.getDayNodes(this.dayPicker,this.props.classNames),r=d.nodeListToArray(n).indexOf(e);-1!==r&&(r===n.length-1?this.showNextMonth((function(){return t.focusFirstDayOfMonth()})):n[r+1].focus())}},{key:"focusNextWeek",value:function(e){var t=this,n=d.getDayNodes(this.dayPicker,this.props.classNames),r=d.nodeListToArray(n).indexOf(e);r>n.length-8?this.showNextMonth((function(){var e=7-(n.length-r);d.getDayNodes(t.dayPicker,t.props.classNames)[e].focus()})):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=d.getDayNodes(this.dayPicker,this.props.classNames),r=d.nodeListToArray(n).indexOf(e);r<=6?this.showPreviousMonth((function(){var e=d.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+r].focus()})):n[r-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=d.getMonthsDiff(t,e);r>0&&r>=n?this.showNextMonth():r<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,o=e.canChangeMonth,a=e.navbarElement,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!o)return null;var l={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,labels:t,locale:n,localeUtils:r};return i.default.isValidElement(a)?i.default.cloneElement(a,l):i.default.createElement(a,l)}},{key:"renderMonths",value:function(){for(var e=[],t=d.getFirstDayOfWeekFromProps(this.props),n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["input","selectedDay","month","children","classNames"]);return a.default.createElement("div",o({className:n.overlayWrapper},r),a.default.createElement("div",{className:n.overlay},t))}function h(e){return(0,s.isDate)(e)?e.getFullYear()+"-"+(""+(e.getMonth()+1))+"-"+(""+e.getDate()):""}function f(e){if("string"===typeof e){var t=e.split("-");if(3===t.length){var n=parseInt(t[0],10),r=parseInt(t[1],10)-1,o=parseInt(t[2],10);if(!(isNaN(n)||String(n).length>4||isNaN(r)||isNaN(o)||o<=0||o>31||r<0||r>=12))return new Date(n,r,o,12,0,0,0)}}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.input=null,n.daypicker=null,n.clickTimeout=null,n.hideTimeout=null,n.inputBlurTimeout=null,n.inputFocusTimeout=null,n.state=n.getInitialStateFromProps(e),n.state.showOverlay=e.showOverlay,n.hideAfterDayClick=n.hideAfterDayClick.bind(n),n.handleInputClick=n.handleInputClick.bind(n),n.handleInputFocus=n.handleInputFocus.bind(n),n.handleInputBlur=n.handleInputBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.handleInputKeyUp=n.handleInputKeyUp.bind(n),n.handleDayClick=n.handleDayClick.bind(n),n.handleMonthChange=n.handleMonthChange.bind(n),n.handleOverlayFocus=n.handleOverlayFocus.bind(n),n.handleOverlayBlur=n.handleOverlayBlur.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e){var t={},n=this.props,r=n.value,o=n.formatDate,a=n.format,i=n.dayPickerProps;r===e.value&&i.locale===e.dayPickerProps.locale&&a===e.format||((0,s.isDate)(r)?t.value=o(r,a,i.locale):t.value=r);var l=e.dayPickerProps.month;i.month&&i.month!==l&&!(0,s.isSameMonth)(i.month,l)&&(t.month=i.month),e.dayPickerProps.selectedDays!==i.selectedDays&&(t.selectedDays=i.selectedDays),Object.keys(t).length>0&&this.setState(t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.clickTimeout),clearTimeout(this.hideTimeout),clearTimeout(this.inputFocusTimeout),clearTimeout(this.inputBlurTimeout),clearTimeout(this.overlayBlurTimeout)}},{key:"getInitialMonthFromProps",value:function(e){var t=e.dayPickerProps,n=e.format,r=void 0;return e.value&&(r=(0,s.isDate)(e.value)?e.value:e.parseDate(e.value,n,t.locale)),t.initialMonth||t.month||r||new Date}},{key:"getInitialStateFromProps",value:function(e){var t=e.dayPickerProps,n=e.formatDate,r=e.format,o=e.typedValue,a=e.value;return e.value&&(0,s.isDate)(e.value)&&(a=n(e.value,r,t.locale)),{value:a,typedValue:o,month:this.getInitialMonthFromProps(e),selectedDays:t.selectedDays}}},{key:"getInput",value:function(){return this.input}},{key:"getDayPicker",value:function(){return this.daypicker}},{key:"updateState",value:function(e,t,n){var r=this,a=this.props,i=a.dayPickerProps,s=a.onDayChange;this.setState({month:e,value:t,typedValue:""},(function(){if(n&&n(),s){var t=o({disabled:i.disabledDays,selected:i.selectedDays},i.modifiers),a=(0,l.getModifiersForDay)(e,t).reduce((function(e,t){return o({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{});s(e,a,r)}}))}},{key:"showDayPicker",value:function(){var e=this,t=this.props,n=t.parseDate,r=t.format,o=t.dayPickerProps,a=this.state,i=a.value;if(!a.showOverlay){var s=i?n(i,r,o.locale):this.getInitialMonthFromProps(this.props);this.setState((function(e){return{showOverlay:!0,month:s||e.month}}),(function(){e.props.onDayPickerShow&&e.props.onDayPickerShow()}))}}},{key:"hideDayPicker",value:function(){var e=this;!1!==this.state.showOverlay&&this.setState({showOverlay:!1},(function(){e.props.onDayPickerHide&&e.props.onDayPickerHide()}))}},{key:"hideAfterDayClick",value:function(){var e=this;this.props.hideOnDayClick&&(this.hideTimeout=setTimeout((function(){e.overlayHasFocus=!1,e.hideDayPicker()}),d))}},{key:"handleInputClick",value:function(e){this.showDayPicker(),this.props.inputProps.onClick&&(e.persist(),this.props.inputProps.onClick(e))}},{key:"handleInputFocus",value:function(e){var t=this;this.showDayPicker(),this.inputFocusTimeout=setTimeout((function(){t.overlayHasFocus=!1}),2),this.props.inputProps.onFocus&&(e.persist(),this.props.inputProps.onFocus(e))}},{key:"handleInputBlur",value:function(e){var t=this;this.inputBlurTimeout=setTimeout((function(){t.overlayHasFocus||t.hideDayPicker()}),1),this.props.inputProps.onBlur&&(e.persist(),this.props.inputProps.onBlur(e))}},{key:"handleOverlayFocus",value:function(e){e.preventDefault(),this.overlayHasFocus=!0,this.props.keepFocus&&this.input&&"function"===typeof this.input.focus&&this.input.focus()}},{key:"handleOverlayBlur",value:function(){var e=this;this.overlayBlurTimeout=setTimeout((function(){e.overlayHasFocus=!1}),3)}},{key:"handleInputChange",value:function(e){var t=this.props,n=t.dayPickerProps,r=t.format,o=t.inputProps,a=t.onDayChange,i=t.parseDate;o.onChange&&(e.persist(),o.onChange(e));var s=e.target.value;if(""===s.trim())return this.setState({value:s,typedValue:""}),void(a&&a(void 0,{},this));var l=i(s,r,n.locale);if(!l)return this.setState({value:s,typedValue:s}),void(a&&a(void 0,{},this));this.updateState(l,s)}},{key:"handleInputKeyDown",value:function(e){e.keyCode===c.TAB?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyDown&&(e.persist(),this.props.inputProps.onKeyDown(e))}},{key:"handleInputKeyUp",value:function(e){e.keyCode===c.ESC?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyUp&&(e.persist(),this.props.inputProps.onKeyUp(e))}},{key:"handleMonthChange",value:function(e){var t=this;this.setState({month:e},(function(){t.props.dayPickerProps&&t.props.dayPickerProps.onMonthChange&&t.props.dayPickerProps.onMonthChange(e)}))}},{key:"handleDayClick",value:function(e,t,n){var r=this,o=this.props,a=o.clickUnselectsDay,i=o.dayPickerProps,s=o.onDayChange,l=o.formatDate,c=o.format;if(i.onDayClick&&i.onDayClick(e,t,n),!(t.disabled||i&&i.classNames&&t[i.classNames.disabled])){if(t.selected&&a){var u=this.state.selectedDays;if(Array.isArray(u)){var d=(u=u.slice(0)).indexOf(e);u.splice(d,1)}else u&&(u=null);return this.setState({value:"",typedValue:"",selectedDays:u},this.hideAfterDayClick),void(s&&s(void 0,t,this))}var p=l(e,c,i.locale);this.setState({value:p,typedValue:"",month:e},(function(){s&&s(e,t,r),r.hideAfterDayClick()}))}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.classNames,r=t.dayPickerProps,s=t.parseDate,l=t.formatDate,c=t.format,u=this.state,d=u.selectedDays,p=u.value,h=void 0;if(!d&&p){var f=s(p,c,r.locale);f&&(h=f)}else d&&(h=d);var m=void 0;r.todayButton&&(m=function(){return e.updateState(new Date,l(new Date,c,r.locale),e.hideAfterDayClick)});var g=this.props.overlayComponent;return a.default.createElement(g,{classNames:n,month:this.state.month,selectedDay:h,input:this.input,tabIndex:0,onFocus:this.handleOverlayFocus,onBlur:this.handleOverlayBlur},a.default.createElement(i.default,o({ref:function(t){return e.daypicker=t},onTodayButtonClick:m},r,{month:this.state.month,selectedDays:h,onDayClick:this.handleDayClick,onMonthChange:this.handleMonthChange})))}},{key:"render",value:function(){var e=this,t=this.props.component,n=this.props.inputProps;return a.default.createElement("div",{className:this.props.classNames.container,style:this.props.style},a.default.createElement(t,o({ref:function(t){return e.input=t},placeholder:this.props.placeholder},n,{value:this.state.value||this.state.typedValue,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onClick:n.disabled?void 0:this.handleInputClick})),this.state.showOverlay&&this.renderOverlay())}}]),t}(a.default.Component);m.defaultProps={dayPickerProps:{},value:"",typedValue:"",placeholder:"YYYY-M-D",format:"L",formatDate:h,parseDate:f,showOverlay:!1,hideOnDayClick:!0,clickUnselectsDay:!1,keepFocus:!0,component:"input",inputProps:{},overlayComponent:p,classNames:{container:"DayPickerInput",overlayWrapper:"DayPickerInput-OverlayWrapper",overlay:"DayPickerInput-Overlay"}},t.default=m},73858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:(0,i.getFirstDayOfWeek)(),n=arguments[2],r=u(e),o=[],s=[],l=[],c=1;c<=r;c+=1)o.push(new Date(e.getFullYear(),e.getMonth(),c,12));o.forEach((function(e){s.length>0&&e.getDay()===t&&(l.push(s),s=[]),s.push(e),o.indexOf(e)===o.length-1&&l.push(s)}));for(var d=l[0],p=7-d.length;p>0;p-=1){var h=(0,a.clone)(d[0]);h.setDate(d[0].getDate()-1),d.unshift(h)}for(var f=l[l.length-1],m=f.length;m<7;m+=1){var g=(0,a.clone)(f[f.length-1]);g.setDate(f[f.length-1].getDate()+1),f.push(g)}if(n&&l.length<6)for(var v=void 0,y=l.length;y<6;y+=1){for(var b=(v=l[l.length-1])[v.length-1],w=[],k=0;k<7;k+=1){var x=(0,a.clone)(b);x.setDate(b.getDate()+k+1),w.push(x)}l.push(w)}return l},t.startOfMonth=function(e){var t=(0,a.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t},t.getDayNodes=function(e,t){var n=void 0;n=t===l.default?t.day+"--"+t.outside:""+t.outside;var r=t.day.replace(/ /g,"."),o=n.replace(/ /g,"."),a="."+r+":not(."+o+")";return e.querySelectorAll(a)},t.nodeListToArray=function(e){return Array.prototype.slice.call(e,0)},t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o,a=n(81167),i=n(90727),s=n(62653),l=(o=s)&&o.__esModule?o:{default:o};function c(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function u(e){var t=c(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}},90727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=a,t.formatMonthTitle=i,t.formatWeekdayShort=s,t.formatWeekdayLong=l,t.getFirstDayOfWeek=c,t.getMonths=u;var n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["January","February","March","April","May","June","July","August","September","October","November","December"];function a(e){return e.toDateString()}function i(e){return o[e.getMonth()]+" "+e.getFullYear()}function s(e){return r[e]}function l(e){return n[e]}function c(){return 0}function u(){return o}t.default={formatDay:a,formatMonthTitle:i,formatWeekdayShort:s,formatWeekdayLong:l,getFirstDayOfWeek:c,getMonths:u}},60072:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dayMatchesModifier=a,t.getModifiersForDay=i;var r=n(81167),o=n(73858);function a(e,t){return!!t&&(Array.isArray(t)?t:[t]).some((function(t){return!!t&&(t instanceof Date?(0,r.isSameDay)(e,t):(0,o.isRangeOfDates)(t)?(0,r.isDayInRange)(e,t):t.after&&t.before&&(0,r.isDayAfter)(t.before,t.after)?(0,r.isDayAfter)(e,t.after)&&(0,r.isDayBefore)(e,t.before):t.after&&t.before&&((0,r.isDayAfter)(t.after,t.before)||(0,r.isSameDay)(t.after,t.before))?(0,r.isDayAfter)(e,t.after)||(0,r.isDayBefore)(e,t.before):t.after?(0,r.isDayAfter)(e,t.after):t.before?(0,r.isDayBefore)(e,t.before):t.daysOfWeek?t.daysOfWeek.some((function(t){return e.getDay()===t})):"function"===typeof t&&t(e))}))}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(n,r){var o=t[r];return a(e,o)&&n.push(r),n}),[])}t.default={dayMatchesModifier:a,getModifiersForDay:i}},2599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1,ariaSelected:o.indexOf(r.props.classNames.selected)>-1,onClick:r.props.onDayClick,onFocus:r.props.onDayFocus,onKeyDown:r.props.onDayKeyDown,onMouseEnter:r.props.onDayMouseEnter,onMouseLeave:r.props.onDayMouseLeave,onMouseDown:r.props.onDayMouseDown,onMouseUp:r.props.onDayMouseUp,onTouchEnd:r.props.onDayTouchEnd,onTouchStart:r.props.onDayTouchStart},r.props.renderDay(e,h))},m(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.classNames,r=t.month,o=t.months,s=t.fixedWeeks,c=t.captionElement,p=t.weekdayElement,h=t.locale,f=t.localeUtils,m=t.weekdaysLong,g=t.weekdaysShort,v=t.firstDayOfWeek,y=t.onCaptionClick,b=t.showWeekNumbers,w=t.showWeekDays,k=t.onWeekClick,x={date:r,classNames:n,months:o,localeUtils:f,locale:h,onClick:y?function(e){return y(r,e)}:void 0},C=a.default.isValidElement(c)?a.default.cloneElement(c,x):a.default.createElement(c,x),E=u.getWeekArray(r,v,s);return a.default.createElement("div",{className:n.month,role:"grid"},C,w&&a.default.createElement(i.default,{classNames:n,weekdaysShort:g,weekdaysLong:m,firstDayOfWeek:v,showWeekNumbers:b,locale:h,localeUtils:f,weekdayElement:p}),a.default.createElement("div",{className:n.body,role:"rowgroup"},E.map((function(t){var o=void 0;return b&&(o=d.getWeekNumber(t[6])),a.default.createElement("div",{key:t[0].getTime(),className:n.week,role:"row"},b&&a.default.createElement("div",{className:n.weekNumber,tabIndex:k?0:-1,role:"gridcell",onClick:k?function(e){return k(o,t,e)}:void 0,onKeyUp:k?function(e){return e.keyCode===l.ENTER&&k(o,t,e)}:void 0},e.props.renderWeek(o,t,r)),t.map(e.renderDay))}))))}}]),t}(o.Component);t.default=g},62034:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n