"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[2923],{70768:function(e,t,n){n.d(t,{C:function(){return M},T:function(){return I},i:function(){return S},u:function(){return g}});var r=n(50736),o=n(94858),a=n(36814),i=n(86566),l=n(77546),c=n(46587),s=n(73884),p=n.n(s),d=n(80671),m=n(17437),h=n(11851),u=n(35291),g=(0,r.r)((e=>(0,l.G)(e)[l.C.LEADGEN]));const C=(0,s.createContext)({}),f=m.AH` height: 100% !important; min-height: calc(var(--container-height, 56px) * 24 / 56); line-height: calc(var(--container-height, 56px) * 24 / 56); border: none !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; padding: 0; cursor: pointer; /* opacity: 0; */ ::placeholder { color: ${u.w.colors.gray400}; } `,x=m.AH` height: auto !important; cursor: text; opacity: 1; transition: 0.1s ease-in-out all; `,E=m.AH` position: absolute; top: calc(var(--container-height) / 2); left: var(--space-x, 16px); margin: 0; z-index: 1; cursor: pointer; transform: translateY(-50%); transition: 0.125s ease-in all; right: 0; // auto grow width `,w=m.AH` top: var(--space-y-shrink, 6px); transform: translateY(0); transition: 0.125s ease-out all; right: 0; // auto grow width `,v=m.AH` min-height: var(--container-height, 56px); display: flex; align-items: flex-end; border: 1px solid ${u.w.colors.gray200}; border-radius: 8px; background-color: #fff; padding-inline: var(--space-x, 16px); padding-block: var(--space-y-not-shrink, 16px); cursor: pointer; pointer-events: none; &:has(.mantine-Input-rightSection) { padding-right: var(--container-height, 56px); } .mantine-Input-icon { display: none; } .mantine-NumberInput-control { border-color: ${u.w.colors.gray200}; } `,b=m.AH` height: auto; min-height: var(--container-height, 56px); padding-block: var(--space-y-shrink, 6px); cursor: text; pointer-events: auto; `,y=m.AH` color: ${u.w.colors.red800}; font-size: 12px; line-height: 1.5; `,k=h.A.div` --space-x: 16px; --space-y-not-shrink: 15px; --space-y-shrink: 6px; --container-height: 56px; --label-not-shrink: 16px; --label-shrink: 12px; --input: 15px; position: relative; min-width: 100px; max-width: 100%; display: inline-block; .textField_wrapper { display: inline-block; width: 100%; cursor: pointer; } .mantine-InputWrapper-root { &[data-invalid='true'] { .mantine-Input-wrapper { border-color: ${u.w.colors.red400}; } } .mantine-Input-wrapper { &:has([data-invalid]) { border-color: ${u.w.colors.red400}; } } } .mantine-InputWrapper-label { ${E} } .mantine-Input-wrapper { ${v} + .mantine-Popover-dropdown[data-position="bottom-start"] { left: 0 !important; } + .mantine-Popover-dropdown[data-position='top-start'] { top: unset !important; left: 0 !important; bottom: 100% !important; } } .mantine-Input-input { ${f} } &.textField_shrink { .mantine-InputWrapper-label { ${w} } .mantine-Input-wrapper { ${b} &.mantine-Select-wrapper { .mantine-Select-rightSection { pointer-events: auto !important; } } } .mantine-Input-input { ${x} } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: var(--space-x, 16px); } .PhoneInput { .PhoneInputInput { opacity: 1; } } } } &:focus-within { .mantine-Input-wrapper { transition: 0.25s linear border; border-color: ${u.w.colors.primary600}; box-shadow: 0 0 4px ${u.w.colors.primary200}; } } .PhoneInput { --phone-select: 75px; --phone-input-space-x: 8px; width: 100%; opacity: 1; border: none; .PhoneInputCountry { background-color: transparent; border: none; padding: 0; width: var(--phone-select, 75px); } .PhoneInputInput { flex: 1; min-width: 0; line-height: 1.5; outline: none !important; border: none; box-shadow: none; font-size: var(--input, 15px); padding: 0 var(--phone-input-space-x, 8px); /* opacity: 0; */ color: ${u.w.colors.gray800} !important; :focus { color: ${u.w.colors.gray800} !important; } } } &:has(.PhoneInput) { .mantine-InputWrapper-label { left: calc( var(--space-x, 16px) + var(--phone-select, 75px) + var(--phone-input-space-x, 8px) ); } } .icon { position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); transform: translateY(-50%); transition: 0.125s ease-in all; &.shrink { top: calc(var(--container-height) / 2 - 4px); transform: translateY(0); } } `,L=h.A.div` &.leadgen-form_checkbox, &.leadgen-form_radio { width: 100%; } &.leadgen-form_dropdown { width: calc(50% - 12px); } .mantine-InputWrapper-root { display: block; } .mantine-InputWrapper-label { margin-bottom: 0.5rem; color: ${u.w.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 1.5; } .mantine-Radio-root, .mantine-Checkbox-root { gap: 8px; min-width: calc(50% - 4px); // input[type='radio'], // input[type='checkbox'] { // border-color: ${u.w.colors.gray600}; // width: 18px; // height: 18px; // } // input[type='checkbox'] { // border-radius: 4px; // } // &[data-checked='true'] { // input[type='radio'], // input[type='checkbox'] { // border-color: ${u.w.colors.primary600}; // } // input[type='radio'] { // background-color: white; // } // } .mantine-Checkbox-input { &:checked { border-color: ${u.w.colors.primary600}; } } } .leadgen-choiceContainer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; } .mantine-InputWrapper-error { ${y} } `;h.A.div` position: absolute; top: calc(var(--container-height) / 2); right: var(--space-x, 16px); `;const I=e=>{const{shrink:t,onChangeShrink:n,children:r,className:a}=e,i=(0,c._)(e,["shrink","onChangeShrink","children","className"]),[l,d]=(0,s.useState)(t),[m,h]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{d(t)}),[t]),p().createElement(C.Provider,Object.assign({value:{shrinkProps:t,shrink:l,setShrink:d,onChangeShrink:n,hasIcon:m,setHasIcon:h}},i),p().createElement(k,Object.assign({shrink:l,className:(0,o.A)(a,"textField",{textField_shrink:!!l})},i),r))},_=e=>{const{shrink:t,shrinkProps:n,onChangeShrink:r,setShrink:o,hasIcon:i}=(0,s.useContext)(C),{children:l,htmlFor:c}=e,m=(0,d.L)((()=>{n||(o(!1),null===r||void 0===r||r(!1))})),h=e=>{setTimeout((()=>{const t=e.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])'),n=t.item(t.length-1);n&&n.focus({preventScroll:!0})}),150)},u=(0,s.useCallback)((e=>{t||(o(!0),null===r||void 0===r||r(!0)),h(e.currentTarget)}),[t]);return(0,s.useEffect)((()=>{o(n)}),[n]),p().createElement(a.a,{ref:m,onClick:u,className:"textField_wrapper",component:c?"label":"div",htmlFor:c},"function"===typeof l?l({shrink:!!t,hasIcon:i}):l)},$=({Icon:e})=>{const{shrink:t,setHasIcon:n}=(0,s.useContext)(C),r=(0,i.xd)();return(0,s.useEffect)((()=>{e&&n(!0)}),[]),e?p().createElement(e,{className:"icon "+(t?"shrink":""),shrink:t,size:24,color:r.colors.gray[9]}):null};I.Control=_,I.Icon=$;const M=e=>{const{children:t,className:n}=e,r=(0,c._)(e,["children","className"]);return p().createElement(L,Object.assign({className:(0,o.A)(n,"choiceField")},r),t)};var S=Object.freeze({__proto__:null,TextField:I,TextFieldControl:_,TextFieldIcon:$,ChoiceField:M})},85515:function(e,t,n){n.d(t,{A:function(){return Ie},D:function(){return we},H:function(){return ie},P:function(){return ee},c:function(){return se}});var r,o=n(73884),a=n.n(o),i=n(79740),l=n(50191),c=n(35291),s=n(75423),p=n(50126);!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(r||(r={}));const d=["mon","tue","wed","thu","fri","sat","sun"];var m=n(11851),h=n(4766),u=n(48085),g=n(94858),C=n(14677),f=n(36814),x=n(82265),E=n(52056),w=n.n(E),v=n(68383),b=n(22584),y=n(66079),k=n(46587),L=n(40279),I=n(70768),_=n(8545),$=n(80084),M=n(77546),S=n(93935),N=n(28470),A=n(74121),j=n(77686),O=n(29876);const F=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 81 80",fill:"none"},e),o.createElement("circle",{cx:39.5,cy:40,r:36,fill:"#00B16A"}),o.createElement("path",{d:"M25.6113 40.5543L34.5002 51.6654L53.3891 28.332",stroke:"white",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),P=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 4 4",fill:"none"},e),o.createElement("circle",{cx:2,cy:2,r:2,fill:"#BFBFBF"})),z=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 85 49",fill:"none"},e),o.createElement("g",{clipPath:"url(#clip0_4296_167461)"},o.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:12,transform:"rotate(-9 0.446777 6.57019)",fill:"url(#paint0_linear_4296_167461)"})),o.createElement("g",{filter:"url(#filter0_d_4296_167461)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.0704 15.8758C22.0399 15.6835 21.9937 15.478 21.949 15.2821C21.8766 14.911 21.6943 14.5612 21.4056 14.242C20.7176 13.4843 19.8778 13.1977 18.9096 13.394C18.3946 13.5068 18.0388 13.811 17.8488 14.2998C17.6892 14.7096 17.7052 15.1677 17.8916 15.5559C18.0774 15.9402 18.4069 16.2218 18.8154 16.3484C19.03 16.4217 19.1016 16.5041 19.1099 16.6921L19.1108 16.6978L20.8289 27.5452C20.8334 27.5738 20.8363 27.6046 20.8395 27.6372C20.8469 27.7083 20.8568 27.7828 20.8777 27.8537C20.9096 27.9931 20.875 28.0708 20.7489 28.1493C20.1621 28.5233 19.9468 29.0863 20.112 29.8214C20.2773 30.5818 20.9404 31.0467 21.7218 30.9522C21.7563 30.9487 21.7906 30.9433 21.8249 30.9378C23.2472 30.7126 24.1124 29.3478 24.0029 28.2253C23.9862 28.021 23.9665 27.8231 23.9343 27.6194L23.0054 21.7549C22.9023 21.1037 22.801 20.4522 22.6998 19.8007C22.4943 18.5158 22.2877 17.1862 22.0704 15.8758Z",fill:"url(#paint1_radial_4296_167461)"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1017 28.7679C16.8433 28.7015 16.7458 28.5783 16.7271 28.3002L14.9771 17.251C14.9662 17.1083 15.0045 17.03 15.1188 16.963C15.1867 16.923 15.258 16.8805 15.3117 16.8251C15.8063 16.374 15.9509 15.6484 15.6692 15.0158C15.3717 14.3817 14.7876 14.0585 14.1038 14.1531C14.0867 14.1558 14.0696 14.1586 14.0524 14.1613C13.2432 14.2894 12.6134 14.7249 12.1809 15.4571C11.8782 15.9734 11.7746 16.5637 11.8774 17.213L12.8469 23.3345C13.0116 24.3741 13.1798 25.4113 13.3473 26.4446C13.5146 27.4759 13.6813 28.5035 13.8444 29.5336C13.9855 30.4247 14.6791 31.4391 15.9127 31.6985C16.2352 31.7626 16.5295 31.7726 16.8018 31.7294C16.9598 31.7044 17.1091 31.6612 17.2535 31.5993C17.8075 31.3633 18.1509 30.7955 18.1257 30.1554C18.1011 29.5074 17.681 28.9377 17.1017 28.7679Z",fill:"url(#paint2_radial_4296_167461)"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.5518 28.5261L33.4621 28.3666L33.2972 28.4103C33.1886 28.4392 32.6966 28.5366 32.2214 28.6295C31.1557 28.8392 31.0258 28.8695 30.9791 28.8945L30.8763 28.9479L30.8966 29.0637C31.1931 30.7266 30.2735 31.9692 29.3939 32.5281C29.032 32.7572 28.6159 32.9519 28.1252 33.1194C26.8906 33.5199 25.613 33.7222 24.3304 33.7205C23.7168 33.7161 23.1571 33.633 22.6675 33.4744C21.9917 33.2496 21.4545 32.8155 21.0733 32.183C20.9885 32.0422 20.9077 31.8891 20.8296 31.7415C20.7378 31.5686 20.6533 31.4044 20.5743 31.2881C20.2226 30.7309 19.5433 30.5086 18.9603 30.7591C18.3548 31.015 18.0228 31.6297 18.1511 32.2555C18.2243 32.6186 18.3468 32.9486 18.5761 33.3983C18.8115 33.849 19.142 34.2846 19.5269 34.6569C20.2278 35.3481 21.0901 35.8264 22.1587 36.1158C23.1874 36.3998 24.2868 36.4892 25.5177 36.386C25.9642 36.3464 26.3817 36.2959 26.7778 36.2332C27.6213 36.0996 28.3625 35.912 29.0561 35.6577C30.085 35.2898 30.9185 34.8338 31.6054 34.2663C32.9455 33.1523 34.1597 31.7732 33.5518 28.5261Z",fill:"url(#paint3_radial_4296_167461)"}),o.createElement("path",{d:"M30.3378 16.8439C26.9562 17.3795 24.6466 20.6048 25.1898 24.034C25.7329 27.4632 28.9261 29.8169 32.3077 29.2813C35.6893 28.7457 37.9989 25.5205 37.4557 22.0913C36.9126 18.662 33.7194 16.3083 30.3378 16.8439ZM34.6453 22.5364C34.9397 24.3947 33.6885 26.1446 31.8568 26.4347C30.0251 26.7248 28.2948 25.4491 28.0002 23.5889C27.7058 21.7305 28.957 19.9806 30.7887 19.6905C32.6204 19.4004 34.3507 20.6761 34.6453 22.5364Z",fill:"url(#paint4_radial_4296_167461)"}),o.createElement("path",{d:"M32.7364 23.0984C32.7097 22.328 32.0636 21.7251 31.2933 21.7517C30.5229 21.7784 29.92 22.4245 29.9466 23.1948C29.9733 23.9652 30.6194 24.5681 31.3898 24.5415C32.1601 24.5148 32.763 23.8687 32.7364 23.0984Z",fill:"url(#paint5_radial_4296_167461)"})),o.createElement("path",{d:"M68.2974 17.9266C68.8728 18.0177 69.4481 18.1088 70.0248 18.2002C69.4816 21.569 68.9476 24.9406 68.4232 28.3123C67.8724 28.144 66.8779 28.3563 66.7847 27.573C67.2588 24.3542 67.8003 21.1432 68.2974 17.9266Z",fill:"#0068FF"}),o.createElement("path",{d:"M50.6775 15.2582C53.3548 15.6795 56.0318 16.0856 58.7044 16.5282C58.6025 17.0496 58.4825 17.6162 58.064 17.9844C55.874 19.9719 53.7183 21.9951 51.5296 23.9828C53.471 24.3027 55.4156 24.6024 57.3589 24.9102C57.2507 25.3591 57.3264 25.9141 56.9689 26.2617C56.7434 26.4872 56.4118 26.4113 56.1337 26.37C53.7044 25.9715 51.2689 25.6119 48.8428 25.2015C48.9308 24.6889 49.0263 24.1211 49.4505 23.769C51.6175 21.7875 53.8035 19.8254 55.9633 17.8373C54.1135 17.547 52.265 17.2391 50.4124 16.9663C50.4904 16.3958 50.5847 15.8264 50.6775 15.2582Z",fill:"#0068FF"}),o.createElement("path",{d:"M73.9347 21.2294C75.9287 21.104 77.8179 22.6996 78.0446 24.6794C78.3933 26.757 76.8148 28.9114 74.7254 29.1964C72.937 29.5249 71.0326 28.4246 70.4014 26.7243C69.8948 25.4618 70.0924 23.9451 70.9067 22.8574C71.6036 21.8941 72.7509 21.2908 73.9347 21.2294ZM73.6319 22.9329C72.3914 23.1613 71.532 24.4907 71.8077 25.718C72.0144 26.8698 73.1867 27.7401 74.3502 27.5807C75.6656 27.4784 76.6666 26.115 76.4099 24.8275C76.2252 23.5636 74.8801 22.6385 73.6319 22.9329Z",fill:"#0068FF"}),o.createElement("path",{d:"M59.4453 20.3739C60.5538 19.3727 62.2662 19.0638 63.6311 19.6992C64.0843 19.8934 64.4747 20.1972 64.8481 20.5134C64.864 20.3867 64.8943 20.1344 64.9103 20.0077C65.4512 20.0906 65.9901 20.1774 66.531 20.2603C66.129 22.7812 65.727 25.3021 65.3341 27.8258C64.9388 27.7522 64.5277 27.7352 64.1502 27.5929C63.8943 27.4383 63.8571 27.1258 63.7872 26.8646C62.1123 27.7871 59.811 27.1531 58.7952 25.546C57.6906 23.9701 57.991 21.6311 59.4453 20.3739ZM61.5751 21.0577C60.264 21.2982 59.4084 22.8028 59.8547 24.0558C60.2132 25.2647 61.6485 25.9759 62.8263 25.5273C63.9114 25.1603 64.5807 23.9286 64.3155 22.817C64.0781 21.6164 62.7719 20.7578 61.5751 21.0577Z",fill:"#0068FF"}),o.createElement("path",{d:"M50.7263 1.42608C52.1821 1.42705 53.6267 1.65448 55.0566 1.91395L54.9152 2.00841C52.8428 2.94085 51.0183 4.38272 49.5862 6.14245C46.7159 9.66507 45.1671 14.1229 44.6491 18.5996C44.2607 22.25 44.553 26.0288 45.8972 29.4683C46.1165 30.0804 46.5513 30.6594 46.451 31.3446C46.2763 32.821 45.3317 34.0887 44.1839 34.982C44.2377 35.0593 44.2901 35.1363 44.3438 35.2136C45.1036 36.3622 45.9347 37.4603 46.7113 38.5979C47.8003 40.3074 49.1014 41.8745 50.1593 43.6066C47.9922 43.2963 45.7889 43.0505 43.7164 42.3084C41.1101 41.3608 39.0181 39.1185 38.2728 36.4462C37.8103 34.8964 37.8588 33.253 38.0552 31.666C39.2081 24.378 40.3622 17.0916 41.5176 9.80546C41.9328 7.37463 42.9815 4.92865 44.9816 3.39361C46.5812 2.07834 48.6606 1.3876 50.7263 1.42608Z",fill:"#0068FF"}),o.createElement("path",{d:"M54.9152 2.00841C55.2292 1.97016 55.5473 1.99304 55.8599 2.03293C61.2199 2.9025 66.5867 3.72914 71.9484 4.58798C73.3793 4.83248 74.8363 4.96427 76.2247 5.40825C78.171 5.87049 79.9352 7.00503 81.1923 8.55554C82.7539 10.6052 83.3345 13.2927 82.9654 15.823C81.8407 22.9326 80.7098 30.0466 79.591 37.1544C79.5656 37.193 79.5158 37.2731 79.4902 37.313C77.2405 39.1481 74.4417 40.1882 71.6072 40.6988C67.792 41.3594 63.8519 41.1423 60.093 40.25C56.34 39.3201 52.6631 37.719 49.7694 35.1051C48.0036 35.5774 46.1268 35.6486 44.3438 35.2136C44.2901 35.1363 44.2377 35.0593 44.1839 34.982C45.3317 34.0887 46.2763 32.821 46.451 31.3446C46.5513 30.6594 46.1165 30.0804 45.8972 29.4683C44.553 26.0288 44.2607 22.25 44.6491 18.5996C45.1671 14.1229 46.7159 9.66507 49.5862 6.14245C51.0183 4.38272 52.8428 2.94085 54.9152 2.00841ZM68.2974 17.9266C67.8003 21.1432 67.2588 24.3542 66.7847 27.573C66.8779 28.3563 67.8724 28.144 68.4232 28.3123C68.9476 24.9406 69.4816 21.569 70.0248 18.2002C69.4481 18.1088 68.8728 18.0177 68.2974 17.9266ZM50.6775 15.2582C50.5847 15.8264 50.4904 16.3958 50.4124 16.9663C52.265 17.2391 54.1135 17.547 55.9633 17.8373C53.8035 19.8254 51.6175 21.7875 49.4505 23.769C49.0263 24.1211 48.9308 24.6889 48.8428 25.2015C51.2689 25.6119 53.7044 25.9715 56.1337 26.37C56.4118 26.4113 56.7434 26.4872 56.9689 26.2617C57.3264 25.9141 57.2507 25.3591 57.3589 24.9102C55.4156 24.6024 53.471 24.3027 51.5296 23.9828C53.7183 21.9951 55.874 19.9719 58.064 17.9844C58.4825 17.6162 58.6025 17.0496 58.7044 16.5282C56.0318 16.0856 53.3548 15.6795 50.6775 15.2582ZM73.9347 21.2294C72.7509 21.2908 71.6036 21.8941 70.9067 22.8574C70.0924 23.9451 69.8948 25.4618 70.4014 26.7243C71.0326 28.4246 72.937 29.5249 74.7254 29.1964C76.8148 28.9114 78.3933 26.757 78.0446 24.6794C77.8179 22.6996 75.9287 21.104 73.9347 21.2294ZM59.4453 20.3739C57.991 21.6311 57.6906 23.9701 58.7952 25.546C59.811 27.1531 62.1123 27.7871 63.7872 26.8646C63.8571 27.1258 63.8943 27.4383 64.1502 27.5929C64.5277 27.7352 64.9388 27.7522 65.3341 27.8258C65.727 25.3021 66.129 22.7812 66.531 20.2603C65.9901 20.1774 65.4512 20.0906 64.9103 20.0077C64.8943 20.1344 64.864 20.3867 64.8481 20.5134C64.4747 20.1972 64.0843 19.8934 63.6311 19.6992C62.2662 19.0638 60.5538 19.3727 59.4453 20.3739Z",fill:"white"}),o.createElement("path",{d:"M61.5753 21.0583C62.7721 20.7584 64.0782 21.6169 64.3156 22.8176C64.5809 23.9292 63.9115 25.1608 62.8264 25.5278C61.6487 25.9765 60.2133 25.2652 59.8549 24.0564C59.4085 22.8034 60.2641 21.2988 61.5753 21.0583Z",fill:"white"}),o.createElement("path",{d:"M73.6318 22.9336C74.88 22.6391 76.2251 23.5643 76.4099 24.8281C76.6665 26.1157 75.6656 27.479 74.3502 27.5814C73.1866 27.7408 72.0143 26.8705 71.8077 25.7187C71.5319 24.4913 72.3914 23.1619 73.6318 22.9336Z",fill:"white"}),o.createElement("path",{d:"M79.4899 37.3134L79.6141 37.2149C79.3371 39.3198 78.764 41.4713 77.4398 43.1739C75.8969 45.1731 73.4695 46.4549 70.9462 46.5887C69.5321 46.6548 68.1179 46.4954 66.7259 46.2571C62.4354 45.5789 58.1453 44.898 53.8548 44.2199C52.6242 44.0043 51.3785 43.8661 50.1589 43.607C49.1011 41.8749 47.7999 40.3078 46.711 38.5984C45.9343 37.4608 45.1033 36.3627 44.3435 35.214C46.1264 35.649 48.0033 35.5778 49.769 35.1055C52.6628 37.7194 56.3397 39.3205 60.0926 40.2504C63.8515 41.1427 67.7916 41.3598 71.6068 40.6993C74.4413 40.1886 77.2402 39.1485 79.4899 37.3134Z",fill:"#005BE0"}),o.createElement("defs",null,o.createElement("filter",{id:"filter0_d_4296_167461",x:7.83887,y:13.3341,width:33.696,height:31.0933,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.createElement("feOffset",{dy:4}),o.createElement("feGaussianBlur",{stdDeviation:2}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4296_167461"}),o.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4296_167461",result:"shape"})),o.createElement("linearGradient",{id:"paint0_linear_4296_167461",x1:21.4468,y1:6.57019,x2:21.4468,y2:48.5702,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#68B8FE"}),o.createElement("stop",{offset:1,stopColor:"#2C89F3"})),o.createElement("radialGradient",{id:"paint1_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(20.9589 22.0707) rotate(81) scale(8.89343 2.07462)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint2_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(14.9033 23.0283) rotate(81) scale(8.89098 2.07896)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint3_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26.2523 32.9125) rotate(81) scale(3.36206 7.90006)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint4_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3227 23.0626) rotate(81) scale(6.29618 6.20942)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("radialGradient",{id:"paint5_radial_4296_167461",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(31.3415 23.1466) rotate(-1.98088) scale(1.39571 1.39571)"},o.createElement("stop",{offset:.25,stopColor:"white"}),o.createElement("stop",{offset:1,stopColor:"#C5E1FB"})),o.createElement("clipPath",{id:"clip0_4296_167461"},o.createElement("rect",{x:.446777,y:6.57019,width:42,height:42,rx:10.5,transform:"rotate(-9 0.446777 6.57019)",fill:"white"})))),B=e=>o.createElement("svg",Object.assign({className:"callTrigger",width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none"},e),o.createElement("path",{d:"M14.4198 11.4486L12.526 11.2306C12.0676 11.178 11.6167 11.3358 11.2935 11.659L9.9032 13.0493C8.8368 12.5082 7.8696 11.8025 7.03391 10.9661C6.19747 10.1304 5.4918 9.1632 4.95071 8.0968L6.34101 6.70649C6.66416 6.38334 6.82198 5.93243 6.76938 5.47401L6.55144 3.58018C6.46125 2.82115 5.82247 2.25 5.05592 2.25H3.75579C2.90658 2.25 2.20015 2.95643 2.25276 3.80564C2.45191 7.01386 3.83395 9.89894 5.96751 12.0325C8.10106 14.166 10.9861 15.5481 14.1944 15.7472C15.0436 15.7998 15.75 15.0934 15.75 14.2442V12.9441C15.75 12.1775 15.1788 11.5387 14.4198 11.4486Z",fill:"#8C8C8C"}));c.w.mbColors.toneYellow,c.w.mbColors.toneBlue,c.w.mbColors.toneGreen;m.A.div` ${h.M.mbUp} { margin: 0; } color: ${c.w.colors.gray1000}; margin-bottom: 1rem; .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; ${h.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; color: ${c.w.colors.gray700}; } } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; padding: 0.75rem 0 0; font-weight: 500; ${h.M.mbUp} { padding: 0; font-weight: 600; } } .txt-hours { font-weight: 500; color: ${c.w.colors.gray1000}; } `,m.A.div` ${h.M.mbUp} { padding: 8px 0; gap: 4px; } display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid ${c.w.colors.neutral100}; &:last-child { border-bottom: 0; } `;const H=(e,t)=>{var n;return`/${null===(n=b.L[e])||void 0===n?void 0:n.HOSPITAL}/${t.slug}-${t.id}`},T=m.A.div` position: relative; min-height: calc(var(--mapHeight) + var(--card-height)); &:not([data-has-card]) { --mapCardHeight: calc(var(--mapHeight) + 32px); height: var(--mapCardHeight); } strong { font-weight: 700; &::after { content: ' '; } } iframe { max-width: 100%; /* padding-top: calc(var(--mapHeight) / var(--mapWidth) * 100%); */ } &[data-has-floating-card='true'] { --card-height: 0; .card { position: absolute; top: 10px; left: 10px; max-width: 329px; } } .map { width: 100%; height: var(--mapHeight); border-radius: 6px 6px 0px 0px; @media (max-width: 768px) { height: auto; } } .infoList { display: flex; margin-top: 8px; svg { min-width: 24px; margin-right: 8px; } } a { text-decoration: none; } .directions { margin-top: 16px; } .directionsNo { display: inline-block; margin-top: 8px; margin-bottom: 24px; color: ${c.w.colors.primaryBase}; } `,D=m.A.div` padding: 16px; border: 1px solid ${c.w.colors.neutral200} background: ${c.w.colors.white} border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 0; border-top-right-radius: 0; max-width: 100%; &:not([data-is-full-width]) { @media (min-width: 768px) { width: var(--mapWidth); } } `,Z=m.A.div` margin-top: 4px; color: ${c.w.colors.gray600}; font-size: 14px; line-height: 22px; letter-spacing: -0.1px; address { display: inline; } .dots { display: inline-flex; margin: 0 0.5rem; vertical-align: middle; ~ span { color: ${c.w.colors.gray500}; } } `,W=m.A.a` display: flex; align-items: center; span { color: ${c.w.colors.gray500}; } svg { margin: 0 8px; } `,U=(0,m.A)(p.B)` margin-top: 12px; width: max-content; `;m.A.div` ${h.M.mbUp} { display: flex; gap: ${(0,u.D)(24)}; padding: 0 ${(0,u.D)(24)} ${(0,u.D)(24)}; } color: #111111; padding: 0 ${(0,u.D)(16)} ${(0,u.D)(16)}; .name { ${h.M.mbUp} { font-weight: 600; } font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; } address { ${h.M.mbUp} { font-size: 0.9375rem; line-height: 1.5rem; font-style: normal; } font-size: 0.8125rem; line-height: 1.25rem; font-weight: 400; } .contact-item { display: inline-flex; align-items: center; padding: 8px 12px; gap: 8px; border: ${c.w.colors.neutral100} 1px solid; border-radius: 12px; a { text-decoration: none; color: currentColor; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; } } /* .map-card { border: none; } */ `,(0,m.A)((e=>{const{className:t,hospital:n,hasNoCard:r,isFullWidth:l,height:p=256,width:d=768,isUsingEmbedMap:m=!0,isCardFloating:h=!1,distance:u,isLoggedIn:g,locale:C,googleMapKey:f,onPhoneHospital:E,dataEventCategory:b,dataEventAction:k,dataEventLabel:L}=e,{latitude:I,longitude:_,address:$,name:M}=n,S=parseFloat(I),N={lng:parseFloat(_),lat:S},A=(0,o.useRef)(null),{t:j}=(0,i.u)(),O=a().useCallback((function(e){setTimeout((()=>{e.setZoom(14),e.setCenter(N)}),100)}),[]),F={"--mapHeight":p+"px","--mapWidth":d+"px","--card-height":r||h||!A.current?0:A.current.clientHeight+"px"};return a().createElement(T,{className:w()(t),style:F,"data-has-card":!r||void 0,"data-has-floating-card":h||void 0},a().createElement("div",{className:"map"},m?a().createElement("iframe",{width:d,height:p,style:{border:0},className:"aspect-ratio-map",loading:"lazy",allowFullScreen:!0,src:`https://www.google.com/maps/embed/v1/place?key=${f}&q=${n.latitude},${n.longitude}&zoom=14`}):a().createElement(x.LoadScript,{googleMapsApiKey:f||""},a().createElement(x.GoogleMap,{mapContainerClassName:"map",center:N,zoom:14,onLoad:O,options:{mapTypeControl:!1,fullscreenControl:!1}},a().createElement(x.Marker,{position:N}))),r?null:a().createElement(D,{className:w()("map-card"),"data-is-full-width":l||void 0,ref:A},a().createElement(W,{href:`${v.b}${H(C,n)}`},a().createElement(y.T,{size:"s2",type:"semiBold"},M)),a().createElement(Z,null,a().createElement("address",null,$),void 0!==u&&a().createElement(a().Fragment,null,a().createElement(s.I,{iconSize:4,wrapperSize:16,svgIcon:{fill:c.w.colors.gray400},wrapperStyle:{transform:"translateY(-2px)"}},a().createElement(P,null)),a().createElement("span",null,u," km"))),n.phone&&a().createElement(U,{size:"md",color:"tertiary",isBlock:!1,onClick:E,icon:a().createElement(B,null),dataEventCategory:b,dataEventAction:k,dataEventLabel:L},g||"ms-MY"===C?n.phone:j("doctorInfoComponent.loginToCall")))))}))` &.panel-map { --mapCardHeight: --cardHeight; } iframe { ${h.M.mbUp} { width: ${(0,u.D)(180)}; height: ${(0,u.D)(180)}; } border-radius: 12px; overflow: hidden; } `,(0,m.A)((e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none"},e),o.createElement("path",{d:"M11.3889 1.55566H5.61115C4.62931 1.55566 3.83337 2.3516 3.83337 3.33344V12.6668C3.83337 13.6486 4.62931 14.4446 5.61115 14.4446H11.3889C12.3708 14.4446 13.1667 13.6486 13.1667 12.6668V3.33344C13.1667 2.3516 12.3708 1.55566 11.3889 1.55566Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M7.38892 1.55566V2.44455H9.61114V1.55566",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M8.49997 12.4448C8.99089 12.4448 9.38886 12.0468 9.38886 11.5559C9.38886 11.065 8.99089 10.667 8.49997 10.667C8.00905 10.667 7.61108 11.065 7.61108 11.5559C7.61108 12.0468 8.00905 12.4448 8.49997 12.4448Z",fill:"currentColor"}))))` width: 1rem; height: 1rem; `,(0,m.A)((e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),o.createElement("path",{d:"M2 4.66668C2 4.31305 2.14048 3.97392 2.39052 3.72387C2.64057 3.47382 2.97971 3.33334 3.33333 3.33334H12.6667C13.0203 3.33334 13.3594 3.47382 13.6095 3.72387C13.8595 3.97392 14 4.31305 14 4.66668V11.3333C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3333V4.66668Z",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 4.66666L8 8.66666L14 4.66666",stroke:"#111111",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))))` width: 1rem; height: 1rem; `,m.A.div` ${h.M.mbUp} { padding: 0; display: flex; flex-direction: column; gap: 24px; } .clinic-content { display: flex; flex-direction: column; ${h.M.mbUp} { gap: 8px; } gap: 12px; } padding-top: 1rem; padding-bottom: 1rem; padding-left: 4.5px; padding-right: 4.5px; flex: 1; & > * + * { margin-top: 0.75rem; } `,m.A.div` display: flex; flex-wrap: nowrap; gap: 0.75rem; `,(0,m.A)(s.D)` border-radius: 0.75rem !important; `,m.A.div` display: flex; gap: 4px; flex-direction: column; ${h.M.mbUp} { flex-direction: row; } .contact-item { width: fit-content; } `;const R=m.A.div` .mantine-Input-input.custom_input { /* font-size: 16px; */ } .info { display: flex; flex-direction: column; gap: 24px; align-items: center; padding: 24px 16px; h5 { font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.4px; text-align: center; } .description { color: ${c.w.colors.gray700}; text-align: center; font-size: 0.8125rem; font-weight: 400; line-height: 1.25rem; letter-spacing: -0.3px; } } .mb-1 { margin-bottom: 4px; } .w-full { width: 100%; } .px-3 { padding-left: 12px; padding-right: 12px; } .action { padding: 8px 16px; &.actionBox { border-top: 0.5px solid ${c.w.colors.neutral100}; } } `,V=(0,m.A)(S.B)` &.mantine-Button-root { border-radius: 12px; border: 1px solid; font-size: 15px; &.tertiary { border-color: ${c.w.colors.neutral200}; } } .mantine-Button-label { display: flex; align-items: center; justify-content: center; gap: 8px; } `;(0,m.A)(s.a)``;const G=(0,m.A)($.P)` --custom-primary-text: #111111; .PhoneInputCountry { pointer-events: none; --phone-select: 58px; } &.PhoneInput { .PhoneInputCountry { } .PhoneInputCountryIconCallingCode { color: var(--custom-primary-text); } .PhoneInputInput { color: var(--custom-primary-text) !important ; :focus { color: var(--custom-primary-text) !important ; } } } `,Y=(0,m.A)($.I.Wrapper)` --phone-input-space-x: -8px; .mantine-Text-root[data-size='c1'] { font-size: 0.75rem; } .mantine-Text-root[data-size='p3'] { font-size: 0.8125rem; } .mantine-Text-root[data-size='p2'] { font-size: 0.9375rem; } `;const q="Zalo",K="VN";function J({onSubmit:e,title:t,formType:n=q,isLoading:r,locale:l}){const{t:c}=(0,i.u)(),[s,p]=(0,o.useState)(""),[d,m]=(0,o.useState)(""),[h,u]=(0,o.useState)(!1),{classes:x}=(0,I.u)(),E=e=>{try{if(!e)return void m(c("collectPhoneNumber.phoneRequired"));const t=(0,_.parsePhoneNumber)(e,K);(null===t||void 0===t?void 0:t.isValid())?m(""):m(c("collectPhoneNumber.inputInvalid"))}catch(t){m(c("collectPhoneNumber.inputInvalid"))}},w=e=>{E(e),p(e)};return a().createElement(R,null,a().createElement("div",{className:"info"},n===q&&a().createElement(z,{width:84,height:48})," ",a().createElement("h5",{className:"px-3"},t||c("collectPhoneNumber.title",{name:n})),a().createElement(I.T,{shrink:!!s,className:(0,g.A)("leadgen-form_input w-full",{"leadgen-form_field_error":!(!h||!d)})},a().createElement(I.T.Control,{htmlFor:"collection_phone_input"},(({shrink:e})=>a().createElement(Y,{"data-invalid":!(!h||!d),labelElement:"div",label:a().createElement(A.T,{size:e?"p3":"p2",variant:"secondary",weight:"halfBold"},c("collectPhoneNumber.inputLabel")),inputWrapperOrder:["label","input","description","error"],error:h&&d&&a().createElement(C.s,{align:"center",gap:4},a().createElement($.E,{size:12}),a().createElement(A.T,{size:"c1",variant:"error"},d))},a().createElement(f.a,{className:"mantine-Input-wrapper",sx:e=>({".PhoneInput .PhoneInputInput":Object.assign(Object.assign({},(0,M.G)(e)[M.C.LEADGEN].p2),{fontWeight:M.F.halfBold})})},a().createElement(G,{inputId:"collection_phone_input",onChange:w,className:`mantine-Input-input ${x.p2}`,name:"phoneNumber",spellCheck:!1,placeholder:" ",defaultCountry:l&&N.M[l]||"VN",type:"text",value:s,"data-control":"tel",countries:[K],arrowComponent:()=>a().createElement(a().Fragment,null)}))))))),a().createElement("div",{className:"action actionBox"},a().createElement(V,{variant:"primary",onClick:()=>{E(s),u(!0);const t=(0,_.parsePhoneNumber)(s,K);if(t&&t.isValid()){const n=t.countryCallingCode;e({phone:t.nationalNumber,countryCode:t.country,callingCode:(null===n||void 0===n?void 0:n.includes("+"))?n:`+${n}`})}},fullWidth:!0,size:"lg",loading:r},a().createElement("div",null,c("collectPhoneNumber.action")),a().createElement("img",{src:"data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.04169 13.5416L12.5834 9.99998L9.04169 6.45831' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"arrow icon",width:20,height:20}))))}function Q({onClose:e}){const{t:t}=(0,i.u)();return a().createElement(R,null,a().createElement("div",{className:"info"},a().createElement(F,{width:80,height:80}),a().createElement("div",null,a().createElement("h5",{className:"mb-1"},t("collectPhoneNumber.titleSuccess")),a().createElement("p",{className:"description"},t("collectPhoneNumber.descriptionSuccess")))),a().createElement("div",{className:"action"},a().createElement(V,{variant:"tertiary",onClick:e,fullWidth:!0,size:"lg"},t("common.action.close"))))}var X;function ee({children:e,isMobile:t,onSubmit:n,isOpen:r,onOpenChange:i,drawerProps:l={}}){const c=(0,L.j)(r),[p,d]=(0,o.useState)(X.FORM),[m,{open:h,toggle:u,close:g}]=c,[C,f]=(0,o.useState)(!1),x=e=>{e?h():g(),null===i||void 0===i||i(e)},E=()=>{x(!1)};return(0,o.useEffect)((()=>{m&&d(X.FORM)}),[m]),(0,o.useEffect)((()=>{x(r)}),[r]),a().createElement(a().Fragment,null,"function"===typeof e?e(c):a().createElement("div",{onClick:u},e),a().createElement(s.a,Object.assign({isOpen:m,onClose:E,onOpenChange:x,isMobile:t,fadeFromIndex:v.Z-9e6,zIndex:v.Z,repositionInputs:!1,isLinear:p===X.SUCCESS},l),p===X.FORM&&a().createElement(J,{onSubmit:e=>(0,k.a)(this,void 0,void 0,(function*(){try{f(!0),yield n(e),d(X.SUCCESS)}catch(t){console.log("\ud83d\ude80 ~ handleSubmit ~ error:",t)}finally{f(!1)}})),isLoading:C}),p===X.SUCCESS&&a().createElement(Q,{onClose:E})))}!function(e){e[e.FORM=0]="FORM",e[e.SUCCESS=1]="SUCCESS"}(X||(X={}));const te=m.A.div` display: flex; align-items: center; justify-content: space-between; gap: 12px; .hospitalName { color: #111111; font-size: 0.8125rem; font-weight: 500; line-height: 1.25rem; } .hospitalStatus { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; font-size: 0.6875rem; line-height: 1rem; color: ${c.w.colors.red600}; &[data-is-opened='true'] { color: ${c.w.colors.primaryBase}; } } .distanceTag { padding: 4px 0px; } .flex-1 { flex: 1 1 0%; } `,ne=(0,m.A)(j.I)` /* object-contain object-center aspect-square */ width: 44px; height: 44px; background-color: ${c.w.colors.neutral50}; padding: 2px; object-fit: contain; object-position: center; border-radius: 8px; flex-shrink: 0; aspect-ratio: 1; align-self: baseline; `,re=(0,m.A)((e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),o.createElement("path",{d:"M6 11.25C8.8995 11.25 11.25 8.8995 11.25 6C11.25 3.10051 8.8995 0.75 6 0.75C3.10051 0.75 0.75 3.10051 0.75 6C0.75 8.8995 3.10051 11.25 6 11.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6 3.25V6L8 7.75",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))))` width: 12px; height: 12px; `,oe=(0,m.A)(s.S)` flex-shrink: 0; color: ${c.w.colors.gray400}; width: 12px; height: 12px; transform: rotate(90deg); & > path { stroke-width: 1.5; } `,ae=(0,m.A)(s.D)` & > span { color: ${c.w.colors.gray800}; } & { border: none; } `;function ie({hospitalInfo:e,distance:t,className:n}){const{t:r}=(0,i.u)(),[c,s]=(0,o.useState)(null);return(0,o.useEffect)((()=>{s((e=>{if(!e)return!1;const t=new Date,n=e[d.at(t.getDay()-1)];return null===n||void 0===n?void 0:n.some((e=>{const[n,r]=e.start_at.split(":").map(parseInt),[o,a]=e.end_at.split(":").map(parseInt),i=t.getHours(),l=t.getMinutes();return n===o&&o==i?!(la):!(io)}))})(e.working_times))}),[e.working_times]),a().createElement(te,{className:n},a().createElement(ne,{src:e.logo,backupSrc:l.C.getAssetPath("avatar.jpg"),alt:"hospital"}),a().createElement("div",{className:"flex-1"},a().createElement("div",{className:"hospitalName"},e.name),e.working_times&&null!==c&&a().createElement("div",{className:"hospitalStatus","data-is-opened":c},a().createElement(re,null),a().createElement(A.T,{size:"p3",weight:"regular",color:"inherit"},r(c?"hospital.status.opening":"hospital.status.closed"))),t&&a().createElement(ae,{className:w()({distanceTag:null===e.working_times}),value:`${t} km`})),a().createElement(oe,null))}const le=m.A.div` padding: 0 1rem 1.25rem; & > :not(:first-child) { margin-top: 1.25rem; } .txt-body-1 { font-size: 0.8125rem; line-height: 1.25rem; color: ${c.w.colors.gray700}; } .txt-body-2 { font-size: 0.9375rem; line-height: 1.5rem; color: ${c.w.colors.gray800}; font-weight: 600; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${c.w.colors.gray800}; } h3 { padding: 1rem 0; } `,ce=(0,m.A)(O.I)` gap: 8px; margin-top: 1rem; & .insuranceItem > .insuranceLogo { height: 64px; border-radius: 12px; border-color: ${c.w.colors.neutral100}; & > img { height: auto; aspect-ratio: 109/64; } } `;function se({hospitalInfo:e,isMobile:t=!1}){const{t:n}=(0,i.u)(),r=(null===e||void 0===e?void 0:e.accepted_payments)&&e.accepted_payments.length>0;return a().createElement(le,{id:"insurance-container"},a().createElement("div",null,a().createElement("h3",{className:"txt-body-2"},n("common.insurance")),a().createElement("p",{className:"txt-body-1"},n("common.insuranceIntro")),a().createElement(ce,{insurances:e.insurances,isName:!1})),r&&a().createElement("div",null,a().createElement("h3",{className:"txt-body-2"},n("common.paymentMethods")),a().createElement(O.P,{payments:e.accepted_payments,isMobile:t})))}const pe=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("path",{d:"M10.7146 13.4812L11.5779 12.7568C11.7779 12.589 12.0312 12.4968 12.2923 12.4968H13.419C13.9579 12.4968 14.4201 12.1101 14.5135 11.579L14.709 10.469C14.7546 10.2112 14.889 9.97901 15.089 9.81124L15.9523 9.08679C16.3657 8.74012 16.4701 8.14679 16.2001 7.68012L15.6368 6.70346C15.5057 6.47679 15.459 6.21235 15.5046 5.95457L15.7001 4.84457C15.7935 4.31346 15.4923 3.79235 14.9857 3.6079L13.9268 3.22235C13.6812 3.13346 13.4757 2.96012 13.3446 2.73346L12.7812 1.75679C12.5112 1.29012 11.9457 1.08346 11.439 1.2679L10.3801 1.65346C10.1346 1.74235 9.86568 1.74235 9.62012 1.65346L8.56123 1.2679C8.05457 1.08346 7.48901 1.28901 7.21901 1.75679L6.65568 2.73346C6.52457 2.96012 6.31901 3.13235 6.07346 3.22235L5.01457 3.6079C4.5079 3.79235 4.20679 4.31346 4.30012 4.84457L4.49568 5.95457C4.54123 6.21235 4.49457 6.47679 4.36346 6.70346L3.80012 7.68012C3.53012 8.14679 3.63457 8.74012 4.0479 9.08679L4.91123 9.81124C5.11123 9.97901 5.24568 10.2123 5.29123 10.469L5.48679 11.579C5.58012 12.1101 6.04234 12.4968 6.58123 12.4968H7.7079C7.96901 12.4968 8.22234 12.589 8.42234 12.7568L9.28568 13.4812C9.69901 13.8279 10.3012 13.8279 10.7146 13.4812Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M13.6114 15.2778V19.1667L10.0003 16.3889L6.38916 19.1667V15.2778",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.0001 9.69347C11.2274 9.69347 12.2223 8.69855 12.2223 7.47125C12.2223 6.24395 11.2274 5.24902 10.0001 5.24902C8.77275 5.24902 7.77783 6.24395 7.77783 7.47125C7.77783 8.69855 8.77275 9.69347 10.0001 9.69347Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),de=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("g",{clipPath:"url(#clip0_2422_9990)"},o.createElement("path",{d:"M15.5 15.5003C14.678 15.5003 13.956 15.0983 13.5 14.4863V18.5003C13.5 18.7023 13.622 18.8853 13.809 18.9623C13.996 19.0413 14.21 18.9973 14.354 18.8543L15.5 17.7083L16.646 18.8543C16.742 18.9503 16.87 19.0003 17 19.0003C17.064 19.0003 17.13 18.9883 17.191 18.9623C17.378 18.8853 17.5 18.7023 17.5 18.5003V14.4863C17.044 15.0983 16.322 15.5003 15.5 15.5003Z",fill:"currentColor"}),o.createElement("path",{d:"M11.75 17.25H5.25C4.145 17.25 3.25 16.355 3.25 15.25V4.75C3.25 3.645 4.145 2.75 5.25 2.75H13.75C14.855 2.75 15.75 3.645 15.75 4.75V8",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 6.75H12.75",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 10H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.25 13.2505H9.25",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15.5 15.5C16.8807 15.5 18 14.3807 18 13C18 11.6193 16.8807 10.5 15.5 10.5C14.1193 10.5 13 11.6193 13 13C13 14.3807 14.1193 15.5 15.5 15.5Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_2422_9990"},o.createElement("rect",{width:18,height:18,fill:"white",transform:"translate(1 1)"})))),me=e=>o.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),o.createElement("path",{d:"M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2.22217 17.7777L5.5555 14.4443",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M1.94434 13.6112L2.49989 13.0557",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M6.38867 18.0556L6.94423 17.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),he=(0,o.createContext)({id:"",name:"",specialty:"",experience:"",profileImage:"",clinics:"",educations:[],expertise:"",otherHighlights:[]}),ue=({children:e,value:t})=>a().createElement(he.Provider,{value:t},e),ge=m.A.div` display: flex; align-items: center; flex-direction: column; background-color: ${c.w.colors.blue50}; border-radius: 12px; padding: 0px 4px 4px; .body-section { width: 100%; height: 100%; } `,Ce=m.A.div` background-color: #ffffffcc; border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; .flex-item-doctor-info { display: flex; flex-direction: column; gap: 12px; } `,fe=m.A.div` cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; `,xe=m.A.div` display: flex; justify-content: flex-end; `,Ee=(0,m.A)(O.A)` width: 0.65rem; height: 0.65rem; & > path { stroke-width: 1.25; } `,we=e=>{var t,n,r,o;const{className:l,doctorInformation:s,onClickReadMore:p,children:d,isShowReadMoreButton:m,style:h,defaultProfileImage:u}=e,{t:g}=(0,i.u)(),C=(null===(t=null===s||void 0===s?void 0:s.clinics)||void 0===t?void 0:t.length)>0||(null===(n=null===s||void 0===s?void 0:s.educations)||void 0===n?void 0:n.length)>0||d||m;return a().createElement(ue,{value:s},a().createElement(ge,{className:l,style:h},a().createElement(O.a,{name:s.name,specialty:s.specialty,experience:s.experience,profileImage:s.profileImage||u}),C&&a().createElement(Ce,{className:"body-section"},a().createElement("div",{className:"flex-item-doctor-info"},(null===(r=null===s||void 0===s?void 0:s.clinics)||void 0===r?void 0:r.length)>0&&a().createElement(O.D,{doctorInfo:s.clinics,Icon:O.C,title:g("common.clinicHospital")}),(null===(o=null===s||void 0===s?void 0:s.educations)||void 0===o?void 0:o.length)>0&&a().createElement(O.D,{doctorInfo:s.educations,Icon:de,title:g("common.education")}),d),m&&a().createElement(xe,null,a().createElement(fe,{onClick:p},a().createElement(A.T,{size:"p2",weight:"halfBold",color:c.w.colors.primaryBase},g("common.readMore")),a().createElement(Ee,null))))))};we.Expertise=()=>{const{expertise:e}=(0,o.useContext)(he),{t:t}=(0,i.u)();return e?a().createElement(O.D,{doctorInfo:e,Icon:pe,title:t("common.expertiseCredentials")}):null},we.OtherHighlights=()=>{const{otherHighlights:e}=(0,o.useContext)(he),{t:t}=(0,i.u)();return e?a().createElement(O.D,{doctorInfo:e,Icon:me,title:t("common.otherHighlights")}):null};const ve=m.A.div` display: flex; flex-direction: column; gap: ${(0,u.D)(12)}; `,be=m.A.div` display: flex; flex-direction: column; gap: ${(0,u.D)(8)}; `,ye=m.A.div` display: flex; flex-direction: column; gap: ${(0,u.D)(4)}; `,ke=m.A.div` display: flex; gap: ${(0,u.D)(4)}; align-items: center; `,Le=m.A.span` color: ${c.w.colors.gray600}; `,Ie=e=>{const{article:t,doctor:n,className:r,style:o,handleClick:l,altText:s}=e,{articleType:p,articleTitle:d,articleTypeColor:m,image:h,defaultImage:g}=t||{},{doctorName:C,doctorAvatar:f,defaultDoctorAvatar:x}=n||{},{t:E}=(0,i.u)();return a().createElement(ve,{className:r,style:o,onClick:l},a().createElement(j.I,{alt:s||d||"article-image",src:h||g,style:{width:"100%",height:(0,u.D)(143.5),objectFit:"cover",borderRadius:(0,u.D)(4)}}),a().createElement(be,null,a().createElement(ye,null,a().createElement(A.T,{color:m||c.w.colors.green600,size:"c1",weight:"halfBold"},p),a().createElement(A.T,{size:"p2",weight:"semiBold",color:c.w.colors.gray800,lineClamp:2},d)),a().createElement(ke,null,a().createElement(j.I,{alt:`${E("common.articleCard.reviewedDoctor")} ${C}`,src:f||x,style:{width:(0,u.D)(20),height:(0,u.D)(20),borderRadius:"50%"}}),a().createElement("div",null,a().createElement(A.T,{size:"c1",weight:"regular",color:c.w.colors.gray800,lineClamp:1},a().createElement(Le,null,E("common.articleCard.reviewedDoctor"),":")," ",C)))))}},81383:function(e,t,n){n.d(t,{D5:function(){return c},NP:function(){return a},fT:function(){return o}});var r=n(73884);const o="#595959",a="#2d87f3",i={normal:24,sm:20,xs:18,sxs:16},l=i.normal,c=e=>(0,r.useMemo)((()=>(e=>"number"===typeof e?e:i[e]||e||l)(e)),[e])},51387:function(e,t,n){n.d(t,{E:function(){return _}});var r=n(73884),o=n.n(r),a=n(86566),i=n(17437),l=n(50736),c=n(48085),s=Object.defineProperty,p=Object.defineProperties,d=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(m)for(var n of m(t))u.call(t,n)&&g(e,n,t[n]);return e},f=(e,t)=>p(e,d(t));const x=(0,i.i7)({"from, to":{opacity:.4},"50%":{opacity:1}});var E=(0,l.r)(((e,{height:t,width:n,radius:r,circle:o,animate:a})=>({root:{height:(0,c.D)(t),width:o?(0,c.D)(t):(0,c.D)(n),borderRadius:o?(0,c.D)(t):e.fn.radius(r),position:"relative",WebkitTransform:"translateZ(0)"},visible:{overflow:"hidden","&::before":f(C({},e.fn.cover(0)),{content:'""',background:"dark"===e.colorScheme?e.colors.dark[7]:e.white,zIndex:10}),"&::after":f(C({},e.fn.cover(0)),{content:'""',background:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3],animation:a?`${x} 1500ms linear infinite`:"none",zIndex:11})}}))),w=n(36814),v=Object.defineProperty,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const I={height:"auto",width:"100%",visible:!0,animate:!0},_=(0,r.forwardRef)(((e,t)=>{const n=(0,a.a1)("Skeleton",I,e),{height:r,width:i,visible:l,animate:c,className:s,circle:p,radius:d,unstyled:m,variant:h}=n,u=((e,t)=>{var n={};for(var r in e)y.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n})(n,["height","width","visible","animate","className","circle","radius","unstyled","variant"]),{classes:g,cx:C}=E({height:r,width:i,circle:p,radius:d,animate:c},{name:"Skeleton",unstyled:m,variant:h});return o().createElement(w.a,((e,t)=>{for(var n in t||(t={}))y.call(t,n)&&L(e,n,t[n]);if(b)for(var n of b(t))k.call(t,n)&&L(e,n,t[n]);return e})({className:C(g.root,{[g.visible]:l},s),ref:t},u))}));_.displayName="@mantine/core/Skeleton"}}]);