"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[2288],{81942:function(e,t,r){r.d(t,{C:function(){return u},I:function(){return E},P:function(){return f},a:function(){return y},b:function(){return z}});var n=r(73884),o=r.n(n),a=r(11851),i=r(26115),l=r(35291),s=r(8284),c=r(38805),d=r(60765),p=r(62694);const h=a.A.div` display: flex; cursor: pointer; &[data-theme='marryBaby'] { input { width: 20px; height: 20px; border: 1.3px solid ${l.w.mbColors.midGray}; border-radius: 9px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${l.w.mbColors.cobalt}; box-shadow: 0 0 2px 2px ${l.w.mbColors.cobalt}; } &:focus-visible { border: 2px solid ${l.w.mbColors.cobalt}; } &:checked { border: 0; background: ${l.w.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: ${l.w.mbColors.gray}; } } input { width: 20px; height: 20px; border: solid 1px ${l.w.colors.gray500}; border-radius: 2px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${l.w.colors.primaryBase}; box-shadow: 0 0 2px 2px ${l.w.colors.primary200}; } &:focus-visible { border: 2px solid ${l.w.colors.primaryActive}; } &:checked { border: 0; background: ${l.w.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: ${l.w.sizes.fwRegular}; width: calc(100% - 24px); cursor: inherit; ${i.M.mbDown} { font-size: 14px; line-height: 24px; } ${i.M.mbUp} { font-size: 16px; line-height: 22px; } } &[data-is-rectangle] > input { position: relative; width: unset; height: unset; padding: 5px 12px; border: 1px solid ${l.w.colors.neutral100}; border-radius: 32px; &::after { color: ${l.w.colors.gray800}; content: attr(data-label-text); font-size: 13px; } &:checked { border-color: ${l.w.colors.primary50}; &::after { color: ${l.w.colors.primaryBase}; } } &:checked { background: ${l.w.colors.primary50}; } } &[data-disabled] { color: ${l.w.colors.gray300}; cursor: not-allowed; input { border-color: ${l.w.colors.gray300}; &:hover { border-color: ${l.w.colors.gray300}; box-shadow: none; } } } `,u=({label:e,name:t,checked:r,className:n,isDisabled:a,onChange:i,value:l,isRectangle:s,inputDataTestId:c,siteType:d})=>o().createElement(h,{className:n,"data-disabled":a||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":d},o().createElement("input",{type:"checkbox",checked:r,name:t,onChange:()=>i(l,!r),disabled:a,value:l,id:`${t}-${l}`,"data-label-text":e,"data-testid":c}),!s&&o().createElement("label",{htmlFor:`${t}-${l}`},e)),m=a.A.div` display: flex; align-items: center; justify-content: space-between; user-select: none; li { transition: all 0.3s ease; } [data-page-active] { background: ${l.w.colors.primaryBase}; color: ${l.w.colors.white}; > a { color: ${l.w.colors.white}; } } `,g=a.A.div` display: flex; width: 32px; height: 32px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid ${l.w.colors.gray200}; margin: 0 2px; border-radius: 4px; color: ${l.w.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${l.w.sizes.fwBold}; &[data-last-page] { border: none; background-color: ${l.w.colors.gray100}; cursor: not-allowed; pointer-events: none; svg { path { stroke: ${l.w.colors.gray300}; } } } `,w=a.A.li` display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 4px; color: ${l.w.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${l.w.sizes.fwBold}; > a { color: ${l.w.colors.gray800}; text-decoration: unset; display: block; width: 100%; height: 100%; line-height: 32px; text-align: center; } `,x=({pagesAmount:e,activePage:t,handlePageChange:r,handleClick:a,href:l,queryPageName:s="page"})=>{const c=[...Array(e)].map(((e,t)=>t+1)),[d,p]=(0,n.useState)(t<=4?c.slice(0,5):t>=c.length-3?c.slice(c.length-5,c.length):c.slice(t-2,t+1));return(0,n.useEffect)((()=>{t<=4?p(c.slice(0,5)):t>=c.length-3?p(c.slice(c.length-5,c.length)):p(c.slice(t-2,t+1))}),[t]),o().createElement(n.Fragment,null,t>4&&o().createElement(n.Fragment,null,o().createElement(w,{onClick:()=>r(1)},l?o().createElement("a",{href:l,onClick:a},1):1),o().createElement(w,null,"...")),d.map((e=>o().createElement(w,{key:`pagination+${e}`,"data-page-active":e===t||void 0,onClick:()=>r(e)},l?o().createElement("a",{href:(0,i.f)(l,e,s),onClick:a},e):e))),tr(c.length)},l?o().createElement("a",{href:(0,i.f)(l,c.length,s),onClick:a},c.length):c.length)))},f=({className:e,pagesAmount:t,currentPage:r,onChange:a,onClick:l,style:s,href:c,queryPageName:d="page"})=>{const p=[...Array(t)].map(((e,t)=>t+1)),[h,u]=(0,n.useState)(r),f=(0,n.useMemo)((()=>c&&c.endsWith("&page=")?c.replace("&page=",""):c),[c]),b=t-1,y=e=>{e<=t&&e>0&&(u(e),a(e))},k=e=>{l&&l(e)};return(0,n.useEffect)((()=>{u(r)}),[r]),o().createElement(m,{className:e,style:s},o().createElement(g,{className:"prev-page",onClick:()=>y(h-1),"data-last-page":1===h||void 0},f?o().createElement("a",{href:(0,i.f)(f,h,d),onClick:k},o().createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},o().createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):o().createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},o().createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?o().createElement(x,{pagesAmount:t,activePage:h,handlePageChange:y,handleClick:k,href:f,queryPageName:d}):p.map((e=>o().createElement(w,{key:`pagination+${e}`,"data-page-active":e===h||void 0,onClick:()=>y(e)},f?o().createElement("a",{href:(0,i.f)(f,e,d),onClick:k},e):e))),o().createElement(g,{className:"next-page",onClick:()=>y(h+1),"data-last-page":h===b+1||void 0},f?o().createElement("a",{href:(0,i.f)(f,h,d),onClick:k},o().createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},o().createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):o().createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},o().createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},b=a.A.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${l.w.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${l.w.colors.gray200}; border-radius: ${l.w.borderRadius}; &:active, &:focus, .focused & { border-color: ${l.w.colors.primaryBase}; box-shadow: 0px 0px 2px 2px ${l.w.colors.primary200}; } &:disabled { background-color: ${l.w.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${l.w.sizes.fwRegular}; ${i.M.mbDown} { font-size: 22px; line-height: 1.2; } ${i.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${l.w.sizes.fwRegular}; ${i.M.mbDown} { font-size: 14px; line-height: 1.2; } ${i.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${l.w.sizes.fwRegular}; ${i.M.mbDown} { font-size: 13px; line-height: 1.5; } ${i.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,y=o().forwardRef(((e,t)=>{var{name:r,errorMessage:a,autoComplete:i="off",defaultValue:l,actionIcon:d,displayIcon:p,isDeleteAction:h,onActionClick:u,label:m,placeholder:g,className:w,onChange:x,onKeyPress:f,isDisabled:y,CustomInput:k,size:v,style:E,autoFocus:C,type:$="text",isNumerousKeyboard:L=!1,onFocus:z,enterKeyHint:j,nativeOnChange:N}=e,M=(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[A,I]=(0,n.useState)(l);return o().createElement(b,{"data-size":v,className:w,"data-has-action-icon":!!d||void 0,"data-has-display-icon":!!p||void 0,"data-has-error":a&&a.length>0||void 0,style:E},m&&o().createElement(c.L,{size:"label2",htmlFor:r,className:"inputLabel"},m),o().createElement("div",{style:{position:"relative"}},k||o().createElement("input",Object.assign({id:r,name:r,placeholder:g,onChange:null!==N&&void 0!==N?N:e=>{return t=e.target.value,I(t),void x(t);var t},onKeyPress:f,type:$,"aria-label":$,disabled:y,value:A,autoComplete:i,ref:t,autoFocus:C,inputMode:L||"number"===$?"numeric":$,pattern:L?"[0-9]*":".*",onFocus:z,enterKeyHint:j},M)),p&&o().createElement(c.S,{className:"displayIcon"},p),d&&o().createElement(c.a,{className:"actionIcon",onClick:()=>{var e;h&&(I(""),null===(e=t.current)||void 0===e||e.focus()),u&&u()}},d)),a&&a.length>0&&o().createElement(c.b,{className:"errorLabel"},a))}));y.displayName="PureInput";const k=[320,420,640,750,828,1080,1200,1440,1920,2048],v=({src:e,width:t,quality:r})=>{try{const n=new URL(e,"undefined"!==typeof window?window.location.origin:"http://localhost");return n.searchParams.set("w",String(t)),n.searchParams.set("q",String(null!==r&&void 0!==r?r:75)),n.toString()}catch(n){return e}};const E=e=>{var{alt:t,backupSrc:r,src:a,placeholderSrc:i,style:l,ref:c,unoptimized:d=!1,quality:p,sizes:h,width:u}=e,m=(0,s._)(e,["alt","backupSrc","src","placeholderSrc","style","ref","unoptimized","quality","sizes","width"]);const[g,w]=(0,n.useState)(!1),x=(0,n.useMemo)((()=>d?[]:function(e){if(e.sizes)return k;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 k}({sizes:h,width:u})),[h,u,d]),f=(0,n.useMemo)((()=>{if(!d)return x.map((e=>`${v({src:a,width:e,quality:p})} ${e}w`)).join(", ")}),[d,x,a,p]),b=(0,n.useMemo)((()=>{if(d)return a;const e=x.length?x[x.length-1]:null!==u&&void 0!==u?u:1920;return v({src:a,width:e,quality:p})}),[d,x,a,p,u]);return o().createElement(C,Object.assign({loading:"lazy",alt:t,srcSet:f,onError:()=>!g&&w(!0),src:g?r||b:b||r,style:Object.assign(Object.assign({},i?{backgroundImage:`url(${i})`}:{}),l),"data-has-placeholder":!!i,sizes:h,ref:c},m))},C=a.A.img` &[data-has-placeholder='true'] { background-position: center; background-repeat: no-repeat; background-size: cover; } `,$=(0,a.A)(d.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; } .close-icon-wrapper { display: none; background-color: ${l.w.colors.gray400}; border-radius: 100%; cursor: pointer; width: 20px; height: 20px; padding: 2px; svg { pointer-events: none; } &[data-is-disabled='true'] { opacity: 0.2; cursor: not-allowed; pointer-events: none; } } input.mantine-Input-input:focus ~ .mantine-Input-rightSection .close-icon-wrapper, input.mantine-Input-input:not(:placeholder-shown) ~ .mantine-Input-rightSection .close-icon-wrapper { display: flex; } `,L=(0,a.A)((e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 25",fill:"none"},e),n.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"}),n.createElement("path",{d:"M20 20.957L16 16.957",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))))` color: ${l.w.colors.primaryBase}; width: 20px; height: 20px; `,z=e=>{const{loading:t,disabled:r,placeholder:n,value:a,onChange:i,icon:l=o().createElement(L,null),className:c,style:d,enableClear:h}=e,u=(0,s._)(e,["loading","disabled","placeholder","value","onChange","icon","className","style","enableClear"]);return o().createElement($,Object.assign({disabled:t||r,size:"lg",value:a,onChangeRaw:e=>{i(e.currentTarget.value)},type:"text",placeholder:n,className:c,icon:l,style:d,rightSection:h?o().createElement("div",{className:"close-icon-wrapper",onClick:()=>{i("")},"data-is-disabled":!a},o().createElement(p.C,{fill:"white",width:"100%",height:"100%"})):void 0},u,{"data-event-label":a}))}},30813:function(e,t,r){r.d(t,{A:function(){return h},C:function(){return u},D:function(){return v},I:function(){return w},P:function(){return b},a:function(){return $}});var n=r(73884),o=r.n(n),a=r(11851),i=r(35291);if(8068==r.j)var l=r(3873);var s=r(52056),c=r.n(s);if(8068==r.j)var d=r(57716);if(8068==r.j)var p=r(98771);const h=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none"},e),n.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#2D87F3",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})),u=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),n.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"}),n.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"}),n.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"}),n.createElement("path",{d:"M11.172 13.6206H8.7583V16.9998H11.172V13.6206Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.96533 9.99996V5.65527",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.1377 7.82764H7.79297",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),m=a.A.ul` display: grid; grid-gap: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); list-style: none; `,g=a.A.li` p { margin-top: 8px; text-align: center; } .insuranceLogo { display: grid; height: 58px; border: 1px solid ${i.w.colors.neutral200}; border-radius: 6px; place-content: center; > img { width: 93px; height: 43px; object-fit: contain; } } `,w=({insurances:e,className:t,isName:r=!0})=>e.length?o().createElement(m,{id:"insurance-list",className:t},e.map((e=>o().createElement(g,{className:"insuranceItem",key:e.id},o().createElement("div",{className:"insuranceLogo"},o().createElement("img",{src:e.logo,alt:e.name||"insurance-logo"})),r&&o().createElement(l.T,{size:"base",color:i.w.colors.gray500,type:"bold"},e.name))))):null,x=a.A.div` display: flex; flex-wrap: wrap; gap: 7px; &.paymentList { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); justify-content: center; } `,f=a.A.div` border: 1px solid ${i.w.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: ${i.w.colors.gray800}; } `,b=({payments:e,className:t,isName:r=!0,isMobile:n=!1})=>e.length?o().createElement(x,{id:"payment-container",className:c()(t,{paymentList:n&&e.length>=4})},e.map((t=>o().createElement(f,{className:c()("payment-item",{"payment-item-mobile":n&&e.length>=4}),key:t.id},o().createElement(d.I,{className:"logo",src:t.logo,alt:t.name}),r&&o().createElement("div",{className:"txt-caption-1"},t.name))))):null,y=a.A.div` display: flex; gap: 8px; .icon { width: 1.25rem; height: 1.25rem; color: ${i.w.colors.gray400}; flex-shrink: 0; } .doctor-info-item-content { display: flex; flex-direction: column; gap: 10px; } `;(0,a.A)(u)` width: 1.25rem; height: 1.25rem; `;const k=a.A.div` display: flex; flex-direction: column; gap: 4px; `,v=e=>{const{doctorInfo:t,Icon:r,title:n}=e;return o().createElement(y,null,o().createElement(r,{className:"icon"}),o().createElement(k,null,o().createElement(p.T,{size:"p3",weight:"semiBold",color:"#111111"},n),o().createElement("div",{className:"doctor-info-item-content"},(Array.isArray(t)?t:[t]).map((e=>o().createElement(p.T,{size:"p3",weight:"regular",key:e},e))))))},E=a.A.div` display: flex; padding: 1rem; width: 100%; justify-content: space-between; `,C=a.A.div` display: flex; flex-direction: column; gap: 2px; `,$=e=>{const{name:t,specialty:r,experience:n,profileImage:a}=e;return o().createElement(E,null,o().createElement(C,null,o().createElement(p.T,{size:"title2",weight:"semiBold",color:"#111111"},t),o().createElement("div",null,r&&o().createElement(p.T,{size:"c1",weight:"regular"},r),n&&o().createElement(p.T,{size:"c1",weight:"regular"},n))),o().createElement(d.I,{src:a,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover",flexShrink:0}}))}}}]);