PageSourceSearch

https://helsi.me/static/js/SaveEventDialog.7ae1a534.chunk.js

js helsi.me collected 2026-09-24 10:11:00 UTC 77,222 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpatient_information_system=self.webpackChunkpatient_information_system||[]).push([[5949],{19243:(e,t,n)=>{n.d(t,{r:()=>o});var a,i=n(47313);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(null,arguments)}function s({title:e,titleId:t,...n},s){return i.createElement("svg",l({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,a||(a=i.createElement("path",{d:"M15.1494 10.7254C14.9169 10.5115 14.5544 10.5259 14.3398 10.7575C13.9522 11.1761 13.5291 11.551 13.0744 11.8812L11.5149 7.05679H14.236C14.6312 7.05679 14.9085 6.66611 14.7757 6.29417L13.1389 1.71284C13.0575 1.48532 12.8415 1.33331 12.5992 1.33331C9.94141 1.33331 7.74587 3.34103 7.45941 5.91408C6.90362 5.91408 4.11065 5.91408 3.5534 5.91408C3.23707 5.91408 2.98049 6.1697 2.98049 6.4851C2.98049 6.8005 3.23707 7.05612 3.5534 7.05612H4.48585L2.92666 11.8816C2.4718 11.5513 2.04871 11.1762 1.66088 10.7575C1.44626 10.5257 1.08371 10.5115 0.851298 10.7254C0.618775 10.9393 0.60434 11.3005 0.81896 11.5323C2.63909 13.4971 5.20009 14.6666 8.00033 14.6666C10.673 14.6666 13.2809 13.5842 15.1817 11.5323C15.3963 11.3005 15.3819 10.9393 15.1494 10.7254ZM8.00033 13.5246C7.40447 13.5246 6.81869 13.4648 6.24633 13.3472L6.77292 11.7174H9.22773L9.75432 13.3472C9.18196 13.4648 8.59618 13.5246 8.00033 13.5246ZM10.8593 13.0412L10.1905 10.9713C10.1142 10.7353 9.89386 10.5754 9.64511 10.5754H6.35554C6.10679 10.5754 5.88647 10.7353 5.81027 10.9713L5.14145 13.0412C4.73504 12.8987 4.33825 12.727 3.92804 12.5081L5.68964 7.05612H7.98623C7.99104 7.05623 7.99563 7.05679 8.00033 7.05679C8.31677 7.05679 8.57324 6.80117 8.57324 6.48577C8.57324 4.4079 10.1678 2.69406 12.202 2.49476L13.4239 5.91475H10.7285C10.3398 5.91475 10.0642 6.29283 10.1831 6.66087L12.0732 12.5078C11.6784 12.7186 11.2824 12.8929 10.8593 13.0412Z",fill:"currentColor"})))}const o=i.forwardRef(s);n.p},47825:(e,t,n)=>{n.d(t,{r:()=>o});var a,i=n(47313);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(null,arguments)}function s({title:e,titleId:t,...n},s){return i.createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,a||(a=i.createElement("path",{d:"M8.85 12.3C10.5904 12.3 12 10.8904 12 9.15C12 7.40963 10.5904 6 8.85 6C7.10962 6 5.7 7.40963 5.7 9.15C5.7 10.8904 7.10962 12.3 8.85 12.3ZM18.75 10.725C18.75 12.0924 17.6424 13.2 16.275 13.2C14.9076 13.2 13.8 12.0924 13.8 10.725C13.8 9.35754 14.9076 8.25 16.275 8.25C17.6424 8.25 18.75 9.35754 18.75 10.725ZM8.85 13.2C10.0801 13.2 12.0824 13.583 13.3955 14.3453C13.9319 14.8913 14.25 15.4866 14.25 16.08V18.6H3V16.08C3 14.1648 6.89754 13.2 8.85 13.2ZM21 18.6H15.15V16.08C15.15 15.4427 14.9199 14.856 14.5544 14.3325C15.2478 14.1776 15.9304 14.1 16.4517 14.1C18.1295 14.1 21 14.904 21 16.5V18.6Z",fill:"currentColor"})))}const o=i.forwardRef(s);n.p},13366:(e,t,n)=>{n.d(t,{F:()=>r});var a=n(31172),i=n(92223),l=n(92967),s=n(31532),o=n(65311);const r=({v:e="v1",resourceId:t,daysCount:n,profileIsAuthorized:r,...d}={})=>{let{startDate:c,endDate:h}=d;const p=s.Z.getTime();return n&&(c||(c=(0,o.Z)(p).format(i.c2)),h=(0,o.Z)(c,i.c2).add(n-1,"days").format(i.c2)),(0,l.t9)(`/${e}/doctors/${t}/slots?${a.stringify({...d,startDate:c,endDate:h})}`,{isSecure:r})}},56809:(e,t,n)=>{n.d(t,{YD:()=>i,YP:()=>a,pW:()=>l});const a="covid-19-laboratornyj-analiz",i="3cde57d0-4917-491f-97fa-c6664f8fcb1a",l="0c77f1d6-d7d6-46b8-893e-ac5ff5fb438a"},51527:(e,t,n)=>{n.d(t,{b:()=>i,w:()=>a});const a="bc1bc935-7fe9-4ff4-a946-fa15ad478e42",i="\u041a\u0430\u0431\u0456\u043d\u0435\u0442 \u0441\u043a\u0440\u0438\u043d\u0456\u043d\u0433\u0443 \u0437\u0434\u043e\u0440\u043e\u0432\u2019\u044f "}
1,72993:(e,t,n)=>{n.d(t,{_8:()=>o,w4:()=>s,yu:()=>r});var a=n(61322),i=n(83293);const l=e=>e[i.e1],s=(0,a.createSelector)(l,e=>e.list),o=(0,a.createSelector)((e,t)=>t.patientId,s,(e,t)=>t.filter(t=>t.patientId===e)),r=(0,a.createSelector)(l,({isFetching:e,isFetched:t})=>({isFetching:e,isFetched:t}))},65352:(e,t,n)=>{n.d(t,{Et:()=>j,GD:()=>C,Gi:()=>E,Gq:()=>f,IX:()=>b,Mp:()=>k,Sy:()=>w,Y2:()=>N,aT:()=>P,g3:()=>y,kx:()=>I,q1:()=>D,qq:()=>S,rp:()=>M,yf:()=>T});var a=n(69706),i=n.n(a),l=n(95585),s=n.n(l),o=n(45522),r=n.n(o),d=(n(91845),n(82374)),c=n.n(d),h=n(56809),p=n(85502),m=n(51527),u=(n(90142),n(78376)),v=n(62758),_=n(66403),x=n(82638);const g=e=>{const t=c()().startOf("day"),n=t.clone().add(14,"days").endOf("day"),a=[t.valueOf(),n.valueOf()],i=[c()(e.dateStart).valueOf(),c()(e.dateEnd).valueOf()];return(0,_.FJ)(a,i)},f=e=>e.available===p.vB.AVAILABLE,j=e=>e.available===p.vB.NOT_AVAILABLE,I=e=>e.available===p.vB.APPOINTMENT,y=e=>{if(!e)return!1;const t=e.scheduleLink&&e.scheduleLink.filter(g).length>0;return s()(e.scheduleLink)&&t},b=e=>!r()((0,v.yw)(e)),C=e=>(0,u.w)(i()(e,"organization")),N=e=>e.isAssociated,P=e=>e.speciality&&e.speciality.length>0&&e.speciality.every(e=>e.specialityId===h.YD),S=e=>e.speciality&&e.speciality.some(e=>e.specialityId===h.pW),D=e=>!(!e.speciality||!e.speciality.some(e=>e.specialityId===m.w)),E=e=>e.declarationSignStatus===p.jX.AVAILABLE,T=e=>e&&e.isRemoved,w=e=>e.deactivationReason&&e.deactivationReason===p.h3.FIRED,k=e=>e.deactivationReason&&e.deactivationReason===p.h3.DUPLICATE,M=e=>{try{if(e)return decodeURI((0,x.o3)(e))}catch(t){return console.warn("Couldn't decode doctor's short instruction"),null}}},4045:(e,t,n)=>{n.d(t,{fj:()=>r,GZ:()=>c,Dl:()=>m,qu:()=>p,rI:()=>d});var a=n(11408),i=n(90142);const l=e=>e.isNationalScreeningService?a.o6.rozetkaNationalScreening:a.o6.rozetka,s=(e,t)=>t.onlineOptions.find(t=>t.name===l(e)),o=({localOptions:e,service:t})=>{const n=t?l(t):void 0;return e.filter(e=>e.name===a.o6.local||e.name===n)},r=({service:e,options:t,slotType:n,isServicePaid:l,appointmentDate:r})=>{if((({slotType:e,isServicePaid:t})=>Boolean(t&&e&&(0,i.us)({type:e})))({slotType:n,isServicePaid:null!==l&&void 0!==l?l:Boolean(null===e||void 0===e?void 0:e.isPaid)}))return[a.Ve.local];if(!e||!t)return[];const d=[],c=!r||!(e=>new Date(e).getTime()>Date.now()+864e5*a.BN)(r);return s(e,t)&&c&&d.push(a.Ve.online),o({localOptions:t.localOptions,service:e}).length&&d.push(a.Ve.local),d},d=e=>e.length>1,c=({service:e,options:t})=>{if(!e||!t)return{online:[],local:[]};const n=s(e,t);return{online:n?[n.name]:[],local:o({localOptions:t.localOptions,service:e}).map(e=>e.name)}},h={[a.o6.rozetka]:[a.fH.rozetkaPay],[a.o6.rozetkaNationalScreening]:[a.fH.rozetkaPay],[a.o6.local]:[a.fH.card,a.fH.cash]},p=({localOptions:e,service:t})=>{const n=o({localOptions:e,service:t}),i=new Set(n.flatMap(e=>{var t;return null!==(t=h[e.name])&&void 0!==t?t:[]}));return Object.values(a.fH).filter(e=>i.has(e))},m=({method:e,service:t,options:n})=>{var i;return e===a.Ve.local?a.o4.local:t&&n?null===(i=s(t,n))||void 0===i?void 0:i.systemType:void 0}},86218:(e,t,n)=>{n.d(t,{A:()=>a});const a={dot:"dot",image:"image"}},74481:(e,t,n)=>{n.d(t,{Z:()=>f});n(47313);var a=n(72884),i=n.n(a),l=n(22211),s=n(89967),o=n(92132),r=n(86218),d=n(59852),c=n(90756),h=n(30825);const p={listItem:"BulletItem_listItem__iWf0j",container:"BulletItem_container__hUNlk",image:"BulletItem_image__LsS6E",verticalAlign_top:"BulletItem_verticalAlign_top__Sn59A",verticalAlignTop:"BulletItem_verticalAlign_top__Sn59A",verticalAlign_center:"BulletItem_verticalAlign_center__qJXmg",verticalAlignCenter:"BulletItem_verticalAlign_center__qJXmg",content:"BulletItem_content__xDkFU",dotContainer:"BulletItem_dotContainer__spBcR",dotImage:"BulletItem_dotImage__UeBB4",default:"BulletItem_default__SoQKI",white:"BulletItem_white__+bAWa"};var m=n(46417);const u=e=>{const{data:t,bulletType:n=r.A.dot,color:a="default",verticalAlign:s="top",padding:o,bgColor:u,borderRadius:v,size:_=c.F.middle,fontWeight:x=c.Z.bold}=e,g={padding:o?`${o}px`:"0",backgroundColor:u||"transparent",borderRadius:v?`${v}px`:"none"},f=(0,m.jsx)("div",{className:p.dotContainer,children:(0,m.jsx)("span",{className:i()(p.dotImage,p[a]
1)})});if("string"===typeof t)return(0,m.jsxs)("li",{className:i()(p.container,p[n],p[`verticalAlign_${s}`]),style:g,children:[n===r.A.dot&&f,(0,m.jsx)(d.Z,{title:t,size:_,titleFontWeight:x})]});const{image:j,title:I,subtitle:y,description:b}=t;return(0,m.jsxs)("li",{className:p.listItem,children:[(0,m.jsxs)("div",{className:i()(p.container,p[n],p[`verticalAlign_${s}`]),style:g,children:[n===r.A.dot&&f,n===r.A.image&&j,(0,m.jsx)("div",{className:p.content,children:(0,m.jsx)(d.Z,{title:I,subtitle:y,size:_,titleFontWeight:x})})]}),b&&(0,m.jsx)(h.OA,{color:l.D.mainDark400,children:b})]})};u.size=c.F,u.fontWeight=c.Z;const v={listItem:"ListItem_listItem__3gfEY",container:"ListItem_container__MRrui",image:"ListItem_image__j9GJ9",verticalAlign_top:"ListItem_verticalAlign_top__nrRC0",verticalAlignTop:"ListItem_verticalAlign_top__nrRC0",verticalAlign_center:"ListItem_verticalAlign_center__deMmd",verticalAlignCenter:"ListItem_verticalAlign_center__deMmd",content:"ListItem_content__ljWQc",dotContainer:"ListItem_dotContainer__VTPKc",dotImage:"ListItem_dotImage__kLU9I",default:"ListItem_default__BRZ-e",white:"ListItem_white__+GOA3"},_=e=>{const{data:t,bulletType:n=r.A.dot,color:a="default",verticalAlign:s="top",padding:o,bgColor:p,borderRadius:u}=e,_={padding:o?`${o}px`:"0",backgroundColor:p||"transparent",borderRadius:u?`${u}px`:"none"},x=(0,m.jsx)("div",{className:v.dotContainer,children:(0,m.jsx)("span",{className:i()(v.dotImage,v[a])})});if("string"===typeof t)return(0,m.jsxs)("li",{className:i()(v.container,v[n],v[`verticalAlign_${s}`]),style:_,children:[n===r.A.dot&&x,(0,m.jsx)(h.OA,{color:"white"===a?l.D.primaryWhite500:l.D.primaryMainDark400,children:t})]});const{image:g,title:f,subtitle:j,description:I}=t;return(0,m.jsxs)("li",{className:v.listItem,children:[(0,m.jsxs)("div",{className:i()(v.container,v[n],v[`verticalAlign_${s}`]),style:_,children:[n===r.A.dot&&x,n===r.A.image&&g,(0,m.jsx)("div",{className:v.content,children:(0,m.jsx)(d.Z,{title:f,subtitle:j,size:c.F.middle})})]}),I&&(0,m.jsx)(h.OA,{color:l.D.mainDark400,children:I})]})},x={container:"BulletList_container__4ekGr",withPaddings:"BulletList_withPaddings__vzTtb",header:"BulletList_header__B7AYX",list:"BulletList_list__OXWXF",internalTextBlock:"BulletList_internalTextBlock__1ZJb1"},g=e=>{const{title:t,subTitle:n,bgColor:a,borderStyle:d,items:c,bulletType:p=r.A.dot,withPaddings:u=!1,textColor:v="default",className:g,verticalAlign:f,bottomContent:j={},rowGap:I=(p===r.A.image?16:void 0)}=e,{isMobile:y}=(0,o.Z)(),b="white"===v,C=y?h.Rw:h.fo,{TopDescription:N=null,BottomDescription:P=null,InternalTextBlock:S=null}=j;return(0,m.jsxs)("div",{className:i()(x.container,u&&x.withPaddings,g),style:{...a?{backgroundColor:a}:{},...d?{border:d}:{}},children:[(t||n)&&(0,m.jsxs)("div",{className:x.header,children:[t&&(0,m.jsx)(C,{fontWeight:s.e.bold,color:b?l.D.primaryWhite500:l.D.primaryMainDark500,
1children:t}),n&&(0,m.jsx)(h.dA,{color:b?l.D.primaryWhite500:l.D.primaryMainDark400,children:n})]}),(0,m.jsx)("ul",{className:i()(x.list,x[p]),style:I?{rowGap:`${I}px`}:{},children:c.map((e,t)=>(0,m.jsx)(_,{data:e,bulletType:p,color:v,verticalAlign:f},t))}),N,S,P]})};g.Item=_,g.BulletItem=u,g.Description=({text:e})=>(0,m.jsx)(d.Z,{size:c.F.middle,subtitle:e}),g.InternalTextBlock=({text:e,bgColor:t})=>(0,m.jsx)("div",{className:x.internalTextBlock,style:{backgroundColor:t},children:(0,m.jsx)(d.Z,{size:c.F.middle,subtitle:e})});const f=g},75200:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(47313),i=n(67055),l=n(72884),s=n.n(l),o=n(22211),r=n(72939),d=n(10492),c=n(27009);const h="Collapse2_container__dvICy";var p=n(46417);const m=({items:e,className:t,headerBodyGap:n,padding:l="16px",...m})=>{const u=(0,a.useMemo)(()=>null===e||void 0===e?void 0:e.map(e=>{var t,a,i;const s=void 0!==n?n:l;return{...e,styles:{...null===e||void 0===e?void 0:e.styles,header:{paddingTop:l,paddingRight:l,paddingLeft:l,paddingBottom:s,...null===e||void 0===e||null===(t=e.styles)||void 0===t?void 0:t.header},body:{paddingTop:0,paddingRight:l,paddingBottom:l,paddingLeft:l,...null===e||void 0===e||null===(a=e.styles)||void 0===a?void 0:a.body},icon:{alignSelf:"center",...null===e||void 0===e||null===(i=e.styles)||void 0===i?void 0:i.icon}}}}),[e,n,l]);return(0,p.jsx)(i.Z,{bordered:!1,...m,className:s()(r.E,h,t),expandIconPlacement:"end",ghost:!0,items:u,expandIcon:({isActive:e})=>(0,p.jsx)(d.Z,{name:e?"keyboard-arrow-up":"keyboard-arrow-down",color:o.D.primaryMainDark300,style:c.P.rounded,size:24})})}},95355:(e,t,n)=>{n.d(t,{Z:()=>m,x:()=>p});n(47313);var a=n(1084),i=n(96929),l=n(64635),s=n(19356),o=n(89619),r=n(71881);const d="AppDownloadModal_titleWithBg__Pf0iX",c="AppDownloadModal_image__C+Mp5";var h=n(46417);const p=(0,h.jsx)("span",{className:d,children:"Helsi"}),m=e=>{const{onHide:t,show:n,title:d,image:p,utm:m}=e,u=(0,a.v9)(l.n8)<i.j$.TABLET;return(0,h.jsxs)(s.Z,{width:504,onHide:t,show:n,title:d,centered:!0,drawerOnMobile:!0,children:[(0,h.jsx)(o.Z,{src:p.src,fallback:p.fallback,alt:p.alt,width:u?p.widthMobiles:p.width,height:u?p.heightMobiles:p.height,className:c}),(0,h.jsx)(r.Z,{utm:m,isText:!0,btnColorTemplate:"transparent",btnAlignment:"center"})]})}},5992:(e,t,n)=>{n.d(t,{H0:()=>c,H1:()=>h,H2:()=>p,H3:()=>m,H4:()=>u,H5:()=>v,H6:()=>_,Z:()=>x});n(47313);var a=n(72884),i=n.n(a),l=(n(67285),n(92223));const s={header_1:"H_header_1__9tC3U",header1:"H_header_1__9tC3U",header_2:"H_header_2__FK77I",header2:"H_header_2__FK77I",header_3:"H_header_3__4QnxF",header3:"H_header_3__4QnxF",header_4:"H_header_4__rEB1A",header4:"H_header_4__rEB1A",header_5:"H_header_5__xIOVa",header5:"H_header_5__xIOVa",header_6:"H_header_6__LSXdv",header6:"H_header_6__LSXdv",header:"H_header__nVs4l",header_info:"H_header_info__360b7",headerInfo:"H_header_info__360b7",header_warning:"H_header_warning__drZMz",headerWarning:"H_header_warning__drZMz",header_success:"H_header_success__kRflY",headerSuccess:"H_header_success__kRflY",header_primary:"H_header_primary__e7zBK",headerPrimary:"H_header_primary__e7zBK",header_danger:"H_header_danger__em1Px",headerDanger:"H_header_danger__em1Px",header_bold:"H_header_bold__TGWAA",headerBold:"H_header_bold__TGWAA",header_uppercase:"H_header_uppercase__5YWfc",headerUppercase:"H_header_uppercase__5YWfc",header_clickableBlack:"H_header_clickableBlack__eUC69",headerClickableBlack:"H_header_clickableBlack__eUC69",v2:"H_v2__0pLyv",header_grayPrimary:"H_header_grayPrimary__1lb2y",headerGrayPrimary:"H_header_grayPrimary__1lb2y",header_graySecondary:"H_header_graySecondary__vW5fR",headerGraySecondary:"H_header_graySecondary__vW5fR",header_bluePrimary:"H_header_bluePrimary__PYbzG",headerBluePrimary:"H_header_bluePrimary__PYbzG",zeroBottomMargin:"H_zeroBottomMargin__V+1Go",header_white:"H_header_white__PPKlh",headerWhite:"H_header_white__PPKlh",header_0:"H_header_0__OlvDZ",header0:"H_header_0__OlvDZ",header_regular:"H_header_regular__qjxPi",headerRegular:"H_header_regular__qjxPi",header_semibold:"H_header_semibold__6DPHy",headerSemibold:"H_header_semibold__6DPHy"};var o=n(46417);const r=[...l.q,"bold","semibold","uppercase"],d=({children:e,size:t,className:n,color:a,component:l,v2:d,id:c,zeroBottomMargin:h,...p})=>{const m=l||`h${0!==t?t:1}`,u=r.filter(e=>p[e]).reduce((e,t)=>
1`${e} ${s[`header_${t}`]}`,"");return(0,o.jsx)(m,{...c?{id:c}:{},className:i()(s.header,s[`header_${t}`],u,a&&[s[`header_${a}`]],d&&[s.v2],h&&[s.zeroBottomMargin],n),children:e})},c=({children:e,...t})=>(0,o.jsx)(d,{...t,size:0,children:e}),h=({children:e,...t})=>(0,o.jsx)(d,{...t,size:1,children:e}),p=({children:e,...t})=>(0,o.jsx)(d,{...t,size:2,children:e}),m=({children:e,...t})=>(0,o.jsx)(d,{...t,size:3,children:e}),u=({children:e,...t})=>(0,o.jsx)(d,{...t,size:4,children:e}),v=({children:e,...t})=>(0,o.jsx)(d,{...t,size:5,children:e}),_=({children:e,...t})=>(0,o.jsx)(d,{...t,size:6,children:e}),x=d},74549:(e,t,n)=>{n.d(t,{Z:()=>D});var a=n(47313),i=n(72884),l=n.n(i),s=n(82374),o=n.n(s),r=n(22211),d=n(65352),c=n(62758),h=n(18680),p=n(73973),m=n(10492),u=n(27009),v=n(18490),_=n(45250),x=n(71728),g=n(21958);const f="EventDraft_record__F-p+S",j="EventDraft_recordLine__Br1sY",I="EventDraft_recordLineDescription__inM1+",y="EventDraft_recordLineFixed__DW0f5",b="EventDraft_recordHeading__9JfJJ",C="EventDraft_timeRow__LV6J6",N="EventDraft_phoneNumberLink__twg2v",P="EventDraft_marginBottom8__7dzIH";var S=n(46417);const D=({record:e,patient:t,doctor:n,isUserEvent:i,isRecordingByOrder:s,hideSchedule:D,isDutyCabinet:E,isOrgContacts:T,isServicePaid:w,serviceName:k,onPaidInfoClick:M})=>{var B,Z;const A=!E&&!T,{contactPhones:R=[],administrationPhones:H=[],receptionPhones:L=[],forCallsPhones:O=[]}=n||{},z=[...R,...H,...L,...O],F=n&&(0,d.aT)(n),W=(0,p.fm)(o()(e.dateBegin).format("dddd, Do MMMM YYYY")),V=`${o()(e.dateBegin).format("HH:mm")} - ${o()(e.dateEnd).format("HH:mm")}`,G=E?null===n||void 0===n||null===(B=n.scheduleLink)||void 0===B||null===(Z=B[0])||void 0===Z?void 0:Z.cabinet:e.cabinet;return(0,S.jsxs)("div",{className:f,children:[(0,S.jsx)("div",{className:l()(j,{[P]:E}),children:(0,S.jsxs)("span",{className:b,children:[i&&A&&(s?"\u0412\u0430\u0448\u0430 \u0437\u0430\u044f\u0432\u043a\u0430:":"\u0412\u0430\u0448 \u0437\u0430\u043f\u0438\u0441:"),E&&"\u0427\u0435\u0440\u0433\u043e\u0432\u0438\u0439 \u043a\u0430\u0431\u0456\u043d\u0435\u0442/\u043b\u0456\u043a\u0430\u0440",T&&"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0456 \u0434\u0430\u043d\u0456 \u043c\u0435\u0434\u0437\u0430\u043a\u043b\u0430\u0434\u0443"]})}),!i&&A&&t&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041f\u0430\u0446\u0456\u0454\u043d\u0442:"}),(0,S.jsx)("span",{children:` ${(0,c.Pp)(t)}`}),t&&t.linkTypeName?(0,S.jsx)("span",{children:`, ${t.linkTypeName}`}):null]}),A&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041b\u0456\u043a\u0430\u0440:"})," ",(0,c.u_)(n)]}),!T&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:F?"\u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0456\u044f:":"\u041f\u0406\u0411:"})," ",(0,c.Pp)(n)]}),k&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041f\u043e\u0441\u043b\u0443\u0433\u0430:"})," ",k]}),!D&&!E&&s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u0414\u0430\u0442\u0430:"})," ",W]}),(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041e\u0440\u0456\u0454\u043d\u0442\u043e\u0432\u043d\u0438\u0439 \u0447\u0430\u0441:"})," ",V]})]}),!D&&A&&!s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u0414\u0430\u0442\u0430:"})," ",W]}),(0,S.jsxs)("div",{className:l()(j,{[C]:w&&!s}),children:[(0,S.jsx)("b",{children:"\u0427\u0430\u0441:"})," ",V,w&&!s&&(0,S.jsx)(v.Z,{color:_.Q.green,inversion:!0,label:"\u041f\u043b\u0430\u0442\u043d\u043e",onClick:M,iconRight:(0,S.jsx)(m.Z,{name:"info",style:u.P.outlined,size:16,color:r.D.white500})})]})]}),!T&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u0410\u0434\u0440\u0435\u0441\u0430:"})," ",(0,c.S)(n)]}),!T&&G&&(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041a\u0430\u0431\u0456\u043d\u0435\u0442:"})," ",G]}),E&&z.length?(0,S.jsxs)("div",{className:j,children:[(0,S.jsx)("b",{children:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0456 \u0434\u0430\u043d\u0456 \u043c\u0435\u0434\u0437\u0430\u043a\u043b\u0430\u0434\u0443: "}),z.map((e,t)=>(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(x.Z,{className:N,v2:!0,phone:(0,h.CN)(e),isWithoutFormatting:!0,isCountryCodeShown:!0,isLogoHidden:!0}),t<z.length-1&&"; "]},t))]}):null,T&&z.length?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:l()(j,I),children:(0,S.jsx)(g.mI,{children:"\u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0430 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0440\u043e \u0447\u0435\u0440\u0433\u043e\u0432\u0438\u0439 \u043a\u0430\u0431\u0456\u043d\u0435\u0442 \u0442\u0430 \u0439\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0456\u043a \u0440\u043e\u0431\u043e\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c."})}),!!R.length&&(0,S.jsxs)("div",{className:l()(j,y),children:[(0,S.jsx)("b",{children:"\u041a\u043e\u043b - \u0446\u0435\u043d\u0442\u0440:"}),(0,S.jsx)("span",{children:R.map((e,t)=>(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(x.Z,{className:N,v2:!0,phone:(0,h.CN)(e),isWithoutFormatting:!0,isCountryCodeShown:!0,isLogoHidden:!0}),t<R.length-1&&"; "]},t))})]}),!!L.length&&(0,S.jsxs)("div",{className:l()(j,y),children:[(0,S.jsx)("b",{children:"\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u0430:"}),(0,S.jsx)("span",{children:L.map((e,t)=>(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(x.Z,{className:N,v2:!0,phone:(0,h.CN)(e),isWithoutFormatting:!0,isCountryCodeShown:!0,isLogoHidden:!0}),t<L.length-1&&"; "]},t))})]})]}):null]})}},10206:(e,t,n)=>{n.d(t,{Z:()=>f});n(47313);var a=n(72884),i=n.n(a),l=n(22211),s=n(89967),o=n(74339),r=n(18680),d=n(3609),c=n(32303),h=n(30825),p=n(71728);const m="OrganizationContactsBlock_container__EbScx",u="OrganizationContactsBlock_header__GBBou",v="OrganizationContactsBlock_phones__di01F",_="OrganizationContactsBlock_phoneCard__zqE-Z",x="OrganizationContactsBlock_phone__OeP7D";var g=n(46417);const f=({title:e,phones:t,className:n})=>t.length?(0,g.jsxs)("div",{className:i()(m,n),children:[(0,g.jsxs)("div",{className:u,children:[(0,g.jsx)(d.Z,{shape:c.ab.rectangle,size:c.IX.xs,bgColor:l.D.primaryWhite500,children:(0,g.jsx)(d.Z.Emoji,{imageName:o.Dn.TELEPHONE})}),(0,g.jsx)(h.ZP,{name:s.b.text1,fontWeight:s.e.semiBold,children:e})]}),(0,g.jsx)("div",{className:v,children:t.map(e=>(0,g.jsx)("div",{className:_,children:(0,g.jsx)(p.Z,{v2:!0,phone:(0,r.CN)(e),isWithoutFormatting:!0,isCountryCodeShown:!0,isLogoHidden:!0,containerClassName:x})},e))})]}):null},58916:(e,t,n)=>{n.r(t),n.d(t,{fetchDoctor:()=>s,fetchSlots:()=>o});var a=n(13366),i=n(25811),l=n(40001);const s=e=>({types:[l.oJ,l.c5,l.Oi],promise:()=>i.Z.getOne(e),payload:{resourceId:e}}),o=({resourceId:e,daysCount:t,profileIsAuthorized:n,...i})=>({types:[l.jG,l.xz,l.$q],promise:()=>a.F({resourceId:e,daysCount:t,profileIsAuthorized:n,...i}),payload:{resourceId:e,daysCount:t,profileIsAuthorized:n}})},34144:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(47313),i=n(1084),l=n(73645),s=n(42704);const o=e=>{const t=(0,i.v9)(l.mS);return(0,a.useMemo)(()=>(0,s.Z)({doctor:e,slotsForFourWeeksPermission:t}),[t,e])}}
1,42704:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(45522),i=n.n(a),l=n(90142),s=n(65352);const o=({doctor:e,slotsForFourWeeksPermission:t})=>{if(!e||i()(e))return 0;const{slotDaysCount:n}=e,a=(0,s.qq)(e),o=2===e.resourceWeeklyScheduleDisplaying;return a?n&&n>l.gT?n:l.gT:t&&!o?n&&n>l.pP?n:l.pP:n&&n>l.On?n:l.On}},96019:(e,t,n)=>{n.r(t),n.d(t,{default:()=>On});var a=n(5172),i=n.n(a),l=n(47313),s=n(1084),o=n(21911),r=n(28303),d=n(72884),c=n.n(d),h=n(69706),p=n.n(h),m=n(6366),u=n.n(m),v=n(3231),_=n(47107),x=n(56750),g=n(64041),f=n(50135),j=n(11408),I=n(31811),y=n(90142),b=n(87250),C=n(43227),N=n(77861),P=n(87040),S=n(55731),D=n(96884),E=n(61688),T=n(99812),w=n(91359),k=n(82051),M=n(71480),B=n(73645),Z=n(1588),A=n(38324),R=n(45678),H=n.n(R),L=n(9113),O=n(68894);const z=e=>{const{doctor:t,shouldGetNationalCheckupEvents:n}=e||{},a=(0,s.I0)(),i=(0,s.v9)(B.Wd),o=(0,s.v9)(B.tR),r=(null===e||void 0===e?void 0:e.patientId)||o,{nationalCheckupEvents:d,isLoadingNationalCheckupEvents:c}=(0,L.Z)({patientId:r,doctor:t,shouldGetNationalCheckupEvents:null===n||void 0===n||n}),h=(0,l.useMemo)(()=>d.map(e=>e.id),[d]),p=(0,s.v9)(A.T8),m=(0,l.useMemo)(()=>H()(p,"eventId"),[p]);(0,l.useEffect)(()=>{if(0!==h.length)for(const e of h)m[e]||a((0,Z.NT)(e))},[a,h]);const u=(0,l.useMemo)(()=>h.map(e=>m[e]).filter(Boolean),[h,m]),v=i&&h.length>0&&u.length<h.length,_=c||!!v;return{canCreateNationalCheckupEvent:(0,l.useMemo)(()=>!v&&(e=>{if(!e||0===e.length)return!0;let t=0;for(const n of e)if(n.eventState!==b.o0.CANCELED&&!(0,O.At)(n)){if(t+=1,n.eventState!==b.o0.FINISHED)return!1;if(t>=3)return!1}return!0})(u),[v,u]),isLoading:_}};var F=n(65352),W=n(76621),V=n(24405),G=n(62758),Y=n(84639),$=n(4045),q=n(18680),U=n(53847),J=n(94533),K=n(58456),X=n(65604),Q=n(62586),ee=n(5992),te=n(99259),ne=n(71728),ae=n(3997),ie=n(74549),le=n(92736),se=n.n(le),oe=n(66311),re=n(64030),de=n(75494),ce=n(2229);const he="ReduxSectionUser_form-field-wrapper__InbTI";var pe=n(46417);const me=[de.VE,de.Rj,de.B3,de.PD],ue=se()(de.p6),ve=e=>(0,pe.jsxs)("div",{children:[(0,pe.jsx)("div",{className:he,children:(0,pe.jsx)(oe.Z,{name:"lastName",type:"text",component:ce.ZP,placeholder:"\u041f\u0440\u0456\u0437\u0432\u0438\u0449\u0435",required:!0,normalize:W.F1,validate:[de.C1,...me],v1:!0})}),(0,pe.jsx)("div",{className:he,children:(0,pe.jsx)(oe.Z,{name:"firstName",type:"text",component:ce.ZP,placeholder:"\u0406\u043c`\u044f",required:!0,normalize:W.F1,validate:[de.C1,...me],v1:!0})}),(0,pe.jsx)("div",{className:he,children:(0,pe.jsx)(oe.Z,{name:"middleName",type:"text",component:ce.ZP,placeholder:"\u041f\u043e \u0431\u0430\u0442\u044c\u043a\u043e\u0432\u0456",normalize:W.F1,validate:me,v1:!0})}),(0,pe.jsx)("div",{className:he,children:(0,pe.jsx)(oe.Z,{name:"phone",type:"tel",component:ce.ZP,mask:re.WZ,autoComplete:"off",label:"\u0422\u0435\u043b\u0435\u0444\u043e\u043d",placeholder:"+38 (___) ___-__-__",required:!0,normalize:e=>(0,W.un)(e),validate:[de.C1,de.m7],v1:!0})}),(0,pe.jsx)("div",{className:he,children:(0,pe.jsx)(ce.MS,{name:"birthDate",block:!0,label:"\u0414\u0430\u0442\u0430 \u043d\u0430\u0440\u043e\u0434\u0436\u0435\u043d\u043d\u044f",required:!0,validate:[de.C1,ue()],v1:!0})})]});var _e=n(10206),xe=n(51757),ge=n.n(xe),fe=n(75402),je=n.n(fe),Ie=n(45522),ye=n.n(Ie),be=n(93428),Ce=n.n(be),Ne=n(96777),Pe=n.n(Ne),Se=n(62553),De=n.n(Se),Ee=n(72740),Te=n.n(Ee),we=n(47251),ke=n(54572),Me=n(19243),Be=n(72627),Ze=n(46449);class Ae extends l.Component{constructor(...e){super(...e),this.handleMouseDown=e=>{e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)},this.handleMouseEnter=e=>{this.props.onFocus(this.props.option,e)},this.handleMouseMove=e=>{this.props.isFocused||this.props.onFocus(this.props.option,e)}}render(){const{className:e,isDisabled:t,children:n,option:a}=this.props;return(0,pe.jsxs)("div",{className:e,onMouseDown:t?null:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,children:[t&&(0,pe.jsx)("span",{className:"disabled-title",children:n}),!t&&"plain"===a.labelType&&(0,pe.jsx)("div",{className:"person-info",children:(0,pe.jsx)("div",{className:"person-text",children:(0,pe.jsx)("span",{className:"person-name",children:n})})}),!t&&"addChild"===a.labelType&&(0,pe.jsxs)("div",{className:"person-info",children:[(0,pe.jsx)("div",{className:"person-photo",children:(0,pe.jsx)("div",{className:"person-icon person-icon--grey",children:(0,pe.jsx)(Me.r,{width:"32",height:"32"})})}),(0,pe.jsx)("div",{className:"person-text",children:(0,pe.jsx)("span",{className:"person-name",children:n})})]}),!t&&"addRelatedPerson"===a.labelType&&(0,pe.jsxs)("div",{className:"person-info",children:[(0,pe.jsx)("div",{className:"person-photo",children:(0,pe.jsx)("div",{className:"person-icon",children:(0,pe.jsx)(Ze.Z,{name:"circle-plus",className:"icon-size-22"})})}),(0,pe.jsx)("div",{className:"person-text",children:(0,pe.jsx)("span",{className:"person-name",children:n})})]}),!t&&("patient"===a.labelType||"profile"===a.labelType)&&(0,pe.jsxs)("div",{className:"person-info",children:[(0,pe.jsx)("div",{className:"person-photo",children:(0,pe.jsx)("div",{className:"person-img-container",children:null!==a.value&&-1!==a.value&&(0,pe.jsx)(Be.Z,{userId:a.value,userType:a.labelType,className:"person-img"})})}),"patient"===a.labelType&&(0,pe.jsxs)("div",{className:"person-text",children:[(0,pe.jsx)("span",{className:"person-name",children:n}),(0,pe.jsx)("span",{className:"person-status",children:a.labelSmall})]}),"profile"===a.labelType&&(0,pe.jsx)("div",{className:"person-text",children:(0,pe.jsx)("span",{className:"person-name",children:n})})]})]})}}function Re(e){const{profileId:t,patients:n,optionsTemplate:a}=e,i=Te()(n),l=Ce()(i,e=>({...e,value:e.patientId,label:(0,G.Pp)(e),labelSmall:e.linkTypeName,labelType:"patient"}));let s="visits"===a?[{value:"",label:"\u0412\u0441\u0456 \u0432\u0456\u0437\u0438\u0442\u0438",labelType:"plain"},{value:t||"",label:"\u0422\u0456\u043b\u044c\u043a\u0438 \u043c\u043e\u0457",labelType:"profile"}]:"booking"===a?[{value:t||"",label:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0441\u0435\u0431\u0435",labelType:"profile"}]:[{value:t||"",label:"\u0422\u0456\u043b\u044c\u043a\u0438 \u043c\u043e\u0457",labelType:"profile"}];s=ye()(l)?De()(s,1):je()(s,[{value:"-1",label:"\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0432'\u044f\u0437\u0430\u043d\u0438\u0445 \u043e\u0441\u0456\u0431:",disabled:!0,labelType:"plain"},...l]),"booking"===a&&(s.push({value:"createChild",label:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0434\u0438\u0442\u0438\u043d\u0443",labelType:"addChild"}),s.push({value:"createRelatedPerson",label:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u043f\u043e\u0432'\u044f\u0437\u0430\u043d\u0443 \u043e\u0441\u043e\u0431\u0443",labelType:"addRelatedPerson"}));const o=ge()({},Pe()(e,["options","value","onChange","name","disabled","className","placeholder","clearable","searchable","noResultsText","matchPos","optionComponent","optionClassName","onInputChange","onInputKeyDown","label","required","wrapperClassName","error","touched","valid"]),{optionComponent:Ae,options:s,searchable:we.aY,disabled:s.length<=1,hasPlaceholder:!!e.placeholder});return(0,pe.jsx)(ke.Z,{...o})}var He,Le,Oe=n(58916),ze=n(34144),Fe=n(89554),We=n(23913),Ve=n(43355),Ge=n(20198),Ye=n(6595),$e=n(13270),qe=n(46822),Ue=n(43725),Je=n(52396),Ke=n(72993),Xe=n(74428),Qe=n(21958);function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},et.apply(null,arguments)}function tt({title:e,titleId:t,...n},a){return l.createElement("svg",et({width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:
1a,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,He||(He=l.createElement("g",{clipPath:"url(#clip0_7058_600)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.81437 3.13533L5.43937 7.802C5.31562 7.934 5.16917 8 5 8C4.83083 8 4.68438 7.934 4.56063 7.802L0.185625 3.13533C0.061875 3.00333 0 2.84711 0 2.66667C0 2.48622 0.061875 2.33 0.185625 2.198C0.309375 2.066 0.455833 2 0.625 2L9.375 2C9.54417 2 9.69063 2.066 9.81437 2.198C9.93812 2.33 10 2.48622 10 2.66667C10 2.84711 9.93812 3.00333 9.81437 3.13533Z",fill:"#9B9FAB"}))),Le||(Le=l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_7058_600"},l.createElement("rect",{width:10,height:10,fill:"white"})))))}const nt=l.forwardRef(tt);n.p;var at=n(47825),it=n(67166);const lt={container:"SaveEvent_container__sNaaP",heading:"SaveEvent_heading__1F3ec",form:"SaveEvent_form__5VqrV",field:"SaveEvent_field__XyRmu",fieldTitle:"SaveEvent_fieldTitle__S1Cg5",fieldSelect:"SaveEvent_fieldSelect__+Wg8j",onlineBookingUnavailable:"SaveEvent_onlineBookingUnavailable__oUAP0",submit:"SaveEvent_submit__UuU0J",submitButton:"SaveEvent_submitButton__fpp1u",alertsWrapper:"SaveEvent_alertsWrapper__1tRS-",loader:"SaveEvent_loader__hZcoG",footer:"SaveEvent_footer__rMtyI",footerSticky:"SaveEvent_footerSticky__wj6N7",termsLink:"SaveEvent_termsLink__GKr4v"},st=1,ot=2,rt="ContactPhoneInput_infoIcon__xAo4e",dt="ContactPhoneInput_select__iTxOS",ct="ContactPhoneInput_isCustomPhoneMode__9EwtL",ht="ContactPhoneInput_dropdown__gSDmw",pt="ContactPhoneInput_placeholder__nfSB8",mt="ContactPhoneInput_option__lbo2g",ut="ContactPhoneInput_optionText__Kt76F",vt="ContactPhoneInput_optionPerson__ghBSO",_t="ContactPhoneInput_optionPersonIcon__w+UMt",xt="ContactPhoneInput_optionPrefixIcon__K6lSz",gt="ContactPhoneInput_optionPhoneInput__RM6KO",ft=({phoneRecord:e,showPhoneType:t})=>{const{phone:n,phoneType:a}=e;return(0,pe.jsxs)("div",{className:mt,children:[(0,pe.jsx)(Qe.pN,{v2:!0,semiBold:!0,className:ut,children:(0,q.CN)(n)}),t&&(0,pe.jsxs)(pe.Fragment,{children:[" ",(0,pe.jsxs)(Qe.De,{v2:!0,children:[a===st&&"(\u041e\u0441\u043d\u043e\u0432\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440)",a===ot&&"(\u0414\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u043d\u043e\u043c\u0435\u0440)"]})]})]})};var jt,It,yt;function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bt.apply(null,arguments)}function Ct({title:e,titleId:t,...n},a){return l.createElement("svg",bt({width:"16px",height:"16px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:a,"aria-labelledby":t},n),void 0===e?l.createElement("title",{id:t},"circle-plus"):e?l.createElement("title",{id:t},e):null,jt||(jt=l.createElement("desc",null,"Created with Sketch.")),It||(It=l.createElement("defs",null)),yt||(yt=l.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},l.createElement("g",{id:"2\\u041B\\u0438\\u0447\\u043D\\u044B\\u0435-\\u0434\\u0430\\u043D\\u043D\\u044B\\u0435-",transform:"translate(-296.000000, -1269.000000)",fill:"#585F73"},l.createElement("g",{id:"fa-plus",transform:"translate(296.000000, 1269.000000)"},l.createElement("path",{d:"M8.5,7.5 L11.9903342,7.5 C12.2718148,7.5 12.5,7.73193359 12.5,8 C12.5,8.27614237 12.2775269,8.5 11.9903342,8.5 L8.5,8.5 L8.5,11.9903342 C8.5,12.2718148 8.26806641,12.5 8,12.5 C7.72385763,12.5 7.5,12.2775269 7.5,11.9903342 L7.5,8.5 L4.00966585,8.5 C3.72818517,8.5 3.5,8.26806641 3.5,8 C3.5,7.72385763 3.72247314,7.5 4.00966585,7.5 L7.5,7.5 L7.5,4.00966585 C7.5,3.72818517 7.73193359,3.5 8,3.5 C8.27614237,3.5 8.5,3.72247314 8.5,4.00966585 L8.5,7.5 Z M8.00689061,0 C12.416882,0 16,3.5862069 16,8 C16,12.4137931 12.416882,16 8.00689061,16 C3.583118,16 0,12.4137931 0,8 C0,3.5862069 3.59689922,0 8.00689061,0 Z M8,15 C11.8577154,15 15,11.8577154 15,8 C15,4.14228457 11.8577154,1 8,1 C4.14228457,1 1,4.14228457 1,8 C1,11.8577154 4.14228457,15 8,15 Z",id:"Combined-Shape"}))))))}const Nt=l.forwardRef(Ct),Pt=(n.p,()=>(0,pe.jsxs)("div",{className:mt,children:[(0,pe.jsx)(Nt,{width:24,height:24,className:xt}),(0,pe.jsx)(Qe.mI,{v2:!0,semiBold:!0,className:ut,children:"\u0412\u0432\u0435\u0441\u0442\u0438 \u043d\u043e\u043c\u0435\u0440 \u0432\u0440\u0443\u0447\u043d\u0443"})]}));var St=n(51886),Dt=n(24423);const Et=(0,St._z)(({input:e,inputRef:t,selectRef:n})=>(0,pe.jsx)(Dt.default,{...e,ref:e=>{e&&(t(e.input),n.current=e)},variant:"borderless",className:c()(mt,gt,"ant-select ant-select-outlined")})),Tt=({input:e,meta:t,selectRef:n})=>(0,pe.jsx)(Et,{mask:re.Qw,onAccept:e.onChange,lazy:!1,selectRef:n,input:e}),wt=({selectRef:e})=>(0,pe.jsx)(oe.Z,{name:"contactPersonPhone.phone",selectRef:e,component:Tt}),kt=({person:e})=>(0,pe.jsxs)("div",{className:c()(mt,vt),children:[(0,pe.jsx)(Qe.De,{v2:!0,children:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u043e\u0441\u043e\u0431\u0438:"}),(0,pe.jsxs)(Qe.De,{v2:!0,className:ut,children:[(0,pe.jsx)(at.r,{className:_t,width:16,height:16}),e.firstName," ",e.lastName," ",e.middleName]})]});const Mt=(0,n(61322).createSelector)(B.o1,k.l3,Ke.w4,(e,t,n)=>[{...e,phones:[{patientPhoneId:"profile-main-phone",phone:e.phone,phoneType:st,patientId:e.patientId,createdAt:new Date,updatedAt:new Date},...(n||[]).filter(t=>t.patientId===e.patientId)]},...t.map(e=>({...e,phones:[{patientPhoneId:`${e.patientId}-main-phone`,phone:e.phone,phoneType:st,patientId:e.patientId,createdAt:new Date,updatedAt:new Date},...(n||[]).filter(t=>t.patientId===e.patientId)]}))]),Bt=({options:e,patientsMap:t,phonesMap:n,input:a,meta:i,profileId:s})=>{const o=e=>JSON.parse(e.length?e:"{}"),r=l.useRef(null),d=l.useRef(null),[h,p]=l.useState(!1),{value:m}=a,{patientId:u,phoneId:v}="string"===typeof m?{}:m,_=t[u],x=u&&!v,g=l.useMemo(()=>(0,pe.jsx)(wt,{selectRef:d}),[]);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("div",{className:lt.fieldTitle,children:[(0,pe.jsxs)("span",{children:["\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440*",(0,pe.jsx)(Xe.Z,{popoverContent:"\u041d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 \u0437\u0430 \u044f\u043a\u0438\u043c \u0437\u0430\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443\u0454 \u043c\u0435\u0434\u0437\u0430\u043a\u043b\u0430\u0434 \u0434\u043b\u044f \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u044f\u0432\u043a\u0438 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c",popoverWrapperClass:rt})]}),_&&u!==s?(0,pe.jsxs)(Qe.De,{children:[(0,pe.jsx)(at.r,{className:_t,width:20,height:20}),_.firstName," ",_.lastName," ",_.middleName]}):null]}),(0,pe.jsx)(Ue.Z,{...a,value:0===m.length?null:JSON.stringify(m),onChange:e=>{const t=o(e);a.onChange(t),h&&(p(!1),r.current&&r.current.blur())},onFocus:e=>{a.onFocus(e),p(!h)},onBlur:e=>{e.preventDefault(),a.onBlur(),h&&p(!1)},status:i.touched&&i.error?"error":void 0,className:c()(dt,{[ct]:x}),options:e,listItemHeight:51,listHeight:255,classNames:{popup:ht},suffixIcon:(0,pe.jsx)(nt,{width:10,height:10,onClick:()=>{x&&p(!h)}}),placeholder:(0,pe.jsx)(Qe.pN,{v2:!0,className:c()(mt,pt),children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440"}),allowClear:!1,labelRender:({value:e})=>{const{phoneId:t}=o(e);if(!t)return"";const a=n[t];return(0,pe.jsx)(ft,{phoneRecord:a,showPhoneType:a.patientId===s})},optionRender:({value:e})=>{const{phoneId:t}=o(e);if(!t)return(0,pe.jsx)(Pt,{});const a=n[t];return(0,pe.jsx)(ft,{phoneRecord:a,showPhoneType:a.patientId===s})},open:h,ref:r}),x&&g,i.touched&&i.error&&(0,pe.jsx)(it.Z,{v2:!0,level:"error",text:i.error})]})},Zt=[de.C1,({phoneId:e,phone:t})=>{if(!e)return(0,de.Fs)(t)}],At=()=>{const e=(0,s.I0)(),t=(0,s.v9)(B.tR),n=(0,s.v9)(B.gW),a=(0,s.v9)(k.t8),{isFetched:i}=(0,s.v9)(Ke.yu),o=(0,s.v9)(Mt);l.useEffect(()=>{n&&a&&!i&&e((0,Je.Dd)(o.filter(e=>"5"!==e.type).map(e=>e.patientId)))},[n,a,i,e]);const r=o.map(e=>{const n=e.patientId===t;return{label:n?null:(0,pe.jsx)(kt,{person:e}),title:e.patientId,options:[...(e.phones||[]).map(t=>{const a={patientId:e.patientId,patient:{firstName:e.firstName,lastName:e.lastName,middleName:e.middleName},phone:t.phone,phoneId:t.patientPhoneId};return{label:(0,pe.jsx)(ft,{phoneRecord:t,showPhoneType:n}),value:JSON.stringify(a)}}),{label:(0,pe.jsx)(Pt,{}),value:JSON.stringify({patientId:e.patientId,patient:{firstName:e.firstName,lastName:e.lastName,middleName:e.middleName},phone:"+38 (0__) ___-__-__",phoneId:null})}]}}),d=o.reduce((e,t)=>
1(e[t.patientId]=t,e),{}),c=o.map(e=>e.phones).flat().reduce((e,t)=>(e[t.patientPhoneId]=t,e),{});return(0,pe.jsx)("div",{className:lt.field,children:(0,pe.jsx)(oe.Z,{name:"contactPersonPhone",validate:Zt,component:Bt,profileId:t,options:r,patientsMap:d,phonesMap:c,isLoading:n&&a&&i})})};var Rt=n(43860);const Ht=({children:e,className:t,disabled:n,...a})=>(0,pe.jsx)("div",{className:c()(t,"WithBorderWrapper","WithBorderWrapper__multiline",{WithBorderWrapper__disabled:n}),...a,children:e}),Lt=({isTelemedicineAllowed:e,isOnlyTelemedicine:t,eventPlaceId:n,onChangeEventPlaceId:a,showWebRtcSupported:i})=>(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u042f\u043a \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0456\u044e \u043b\u0456\u043a\u0430\u0440\u044f?"}),(0,pe.jsx)(Ht,{style:{marginBottom:"15px"},onClick:e=>{t||a(I.P.HOSPITAL.id)(e)},children:(0,pe.jsx)(Rt.Z,{id:"HOSPITAL",name:"HOSPITAL",label:"\u042f \u043f\u0440\u0438\u0439\u0434\u0443 \u0434\u043e \u043b\u0456\u043a\u0430\u0440\u044f \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u043e",value:I.P.HOSPITAL.id,checked:I.P.HOSPITAL.id===n,type:"radio",disabled:t,onChange:()=>{}})}),(0,pe.jsx)(Ht,{disabled:!e,onClick:t=>{e&&(a(I.P.TELEMEDICINE.id)(t),i())},children:(0,pe.jsx)(Rt.Z,{id:"TELEMEDICINE",name:"TELEMEDICINE",label:(0,pe.jsxs)("span",{children:["\u0412\u0456\u0434\u0435\u043e\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0456\u044f ",!e&&(0,pe.jsxs)(pe.Fragment,{children:[we.tq&&(0,pe.jsx)("br",{})," (\u041b\u0456\u043a\u0430\u0440 \u043d\u0435 \u043f\u0440\u0438\u0439\u043c\u0430\u0454 \u043e\u043d\u043b\u0430\u0439\u043d)"]})]}),value:I.P.TELEMEDICINE.id,checked:I.P.TELEMEDICINE.id===n,type:"radio",disabled:!e,onChange:()=>{}})})]});var Ot=n(22211),zt=n(89967),Ft=n(74339),Wt=n(3609),Vt=n(32303),Gt=n(30825),Yt=n(27911),$t=n(79658);const qt={container:"NationalCheckupInfo_container__H9279",top:"NationalCheckupInfo_top__Ap8W+",bottom:"NationalCheckupInfo_bottom__pLpff",targetGroup:"NationalCheckupInfo_targetGroup__xAKKD",price:"NationalCheckupInfo_price__DARql"},Ut=e=>{const{isPaymentDone:t}=e;return(0,pe.jsxs)("div",{className:qt.container,children:[(0,pe.jsxs)("div",{className:qt.top,children:[(0,pe.jsx)("div",{className:qt.targetGroup,children:(0,pe.jsx)(Gt.Rw,{fontWeight:zt.e.semiBold,color:Ot.D.primaryMainDark500,
1children:"\u0421\u043a\u0440\u0438\u043d\u0456\u043d\u0433 \u0434\u043b\u044f \u043f\u0430\u0446\u0456\u0454\u043d\u0442\u0456\u0432 \u0432\u0456\u043a\u043e\u043c \u0432\u0456\u0434 40 \u0440\u043e\u043a\u0456\u0432"})}),(0,pe.jsxs)("div",{className:qt.price,children:[(0,pe.jsx)(Wt.Z,{size:Vt.IX.xs,type:Vt.U_.emoji,children:(0,pe.jsx)(Wt.Z.Emoji,{imageName:Ft.Dn.MONEY_BAG})}),(0,pe.jsxs)("div",{className:qt.priceText,children:[(0,pe.jsx)(Gt.Rw,{fontWeight:zt.e.semiBold,color:Ot.D.primaryMainDark500,children:"\u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0430 \u0441\u0443\u043c\u0430 \u0437\u0430 \u0414\u0456\u044f.\u041a\u0430\u0440\u0442\u043a\u043e\u044e"}),(0,pe.jsx)("br",{}),(0,pe.jsx)(Yt.Z,{isPaymentDone:t})]})]})]}),(0,pe.jsx)("div",{className:qt.bottom,children:(0,pe.jsx)($t.Z,{})})]})};var Jt=n(10854);const Kt="PaidServiceSelect_select__poIuq",Xt="PaidServiceSelect_optionName__pUL9N",Qt=({className:e,isFocused:t,isDisabled:n,onSelect:a,onFocus:i,option:l})=>{var s;return(0,pe.jsxs)("div",{className:e,onMouseDown:n?void 0:e=>{e.preventDefault(),e.stopPropagation(),a(l,e)},onMouseEnter:e=>i(l,e),onMouseMove:e=>{t||i(l,e)},children:[(0,pe.jsx)("span",{className:Xt,children:l.label}),(0,pe.jsx)(Jt.Z,{cost:null!==(s=l.service.costWithVat)&&void 0!==s?s:l.service.cost})]})},en=(e,t)=>e.filter(e=>((e,t)=>{const n=(t||"").trim().toLowerCase();if(n.length<3)return!0;const a=(e.name||"").toLowerCase().split(/\s+/).some(e=>e.startsWith(n)),i=(e.achiCode||"").toLowerCase().includes(n);return a||i})(e.service,t)),tn=({services:e,value:t,onChange:n,disabled:a,error:i,touched:l})=>{const s=e.map(e=>({value:e.serviceId,label:e.name,service:e})),o=!i;return(0,pe.jsx)(ke.Z,{name:"paidService",className:Kt,options:s,value:null!==t&&void 0!==t?t:null,onChange:n,disabled:a,error:i,touched:l,valid:o,isSimple:!1,searchable:!0,filterOptions:en,optionComponent:Qt,placeholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u043b\u0443\u0433\u0443",noResultsText:"\u041f\u043e\u0441\u043b\u0443\u0433 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e"})};var nn=n(10492),an=n(18490),ln=n(45250);const sn="PaymentMethodSection_option__4GKnd",on="PaymentMethodSection_singleMethod__R-6Ir",rn="PaymentMethodSection_optionLabel__e463k",dn="PaymentMethodSection_tags__UjeVd",cn="PaymentMethodSection_error__0niGY",hn={[j.fH.rozetkaPay]:(0,pe.jsx)("img",{src:"/img/rozetka-logo.png",alt:"",width:16,height:16}),[j.fH.card]:(0,pe.jsx)(nn.Z,{name:"credit-card",size:16}),[j.fH.cash]:(0,pe.jsx)(nn.Z,{name:"account-balance-wallet",size:16})},pn=({tags:e})=>e.length?(0,pe.jsx)("div",{className:dn,children:e.map(e=>(0,pe.jsx)(an.Z,{color:ln.Q.black,size:ln.c.large,iconLeft:hn[e],label:j.f5[e]},e))}):null,mn=({methods:e,value:t,onChange:n,localPaymentTags:a,error:i})=>{if(!e.length)return null;if(1===e.length){const t=e[0];return(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u0421\u043f\u043e\u0441\u0456\u0431 \u043e\u043f\u043b\u0430\u0442\u0438"}),(0,pe.jsxs)("div",{className:on,children:[(0,pe.jsx)("span",{children:j.m4[t]}),t===j.Ve.local&&(0,pe.jsx)(pn,{tags:a})]})]})}return(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0441\u043f\u043e\u0441\u0456\u0431 \u043e\u043f\u043b\u0430\u0442\u0438*"}),e.map(e=>(0,pe.jsx)(Ht,{className:sn,onClick:()=>n(e),children:(0,pe.jsx)(Rt.Z,{id:`payment-method-${e}`,name:"paymentMethod",value:e,checked:t===e,onChange:()=>{},label:(0,pe.jsxs)("span",{className:rn,children:[j.I7[e],e===j.Ve.local&&(0,pe.jsx)(pn,{tags:a})]})})},e)),i&&(0,pe.jsx)("div",{className:cn,children:i})]})};var un=n(86262);const vn="SlotDateTimePicker_container__T3adA",_n="SlotDateTimePicker_field__kJwRV",xn="SlotDateTimePicker_title__8bBLU",gn="SlotDateTimePicker_select__IIS3O",fn="\u0426\u0435 \u043f\u043e\u043b\u0435 \u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u043a\u043e\u0432\u0435",jn=({days:e,isCommercialBooking:t,dateValue:n,timeValue:a,onChange:i,error:l})=>{const s=(0,un.sR)(e,t),o=(0,un.YI)(e,n||"",t);return(0,pe.jsxs)("div",{className:vn,children:[(0,pe.jsxs)("div",{className:_n,children:[(0,pe.jsx)("div",{className:xn,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0434\u0430\u0442\u0443*"}),(0,pe.jsx)(ke.Z,{name:"paidDate",className:gn,options:s,value:null!==n&&void 0!==n?n:null,onChange:e=>{i(null,e,"")},placeholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443 \u0434\u0430\u0442\u0443",searchable:!1,hideSelectedOptions:!1,error:null!==l&&void 0!==l&&l.date?fn:void 0,touched:!(null===l||void 0===l||!l.date),valid:!(null!==l&&void 0!==l&&l.date)})]}),(0,pe.jsxs)("div",{className:_n,children:[(0,pe.jsx)("div",{className:xn,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0447\u0430\u0441*"}),(0,pe.jsx)(ke.Z,{name:"paidTime",className:gn,options:o,value:null!==a&&void 0!==a?a:null,onChange:e=>{var t;const a=o.find(t=>t.value===e);i(null!==(t=null===a||void 0===a?void 0:a.slot)&&void 0!==t?t:null,n||"",e)},placeholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0447\u0430\u0441",searchable:!1,hideSelectedOptions:!1,disabled:!n,error:null!==l&&void 0!==l&&l.t
1ime?fn:void 0,touched:!(null===l||void 0===l||!l.time),valid:!(null!==l&&void 0!==l&&l.time)})]})]})};var In=n(27009);const yn="TotalCostFooter_container__X7s5d",bn="TotalCostFooter_summary__EKooY",Cn="TotalCostFooter_titleGroup__sMCki",Nn="TotalCostFooter_subtitle__lvRIC",Pn="TotalCostFooter_total__WEjZa",Sn="TotalCostFooter_details__vDKzA",Dn="TotalCostFooter_row__VoUki",En="TotalCostFooter_note__SfmFK",Tn="0 \u0433\u0440\u043d",wn=e=>(0,Ye.mT)(e)||Tn,kn=({cost:e,fee:t,paymentMethod:n})=>{const[a,i]=(0,l.useState)(!1),s=n===j.Ve.online,o=e+(s?t:0);return(0,pe.jsxs)("div",{className:yn,children:[(0,pe.jsxs)("button",{type:"button",className:bn,onClick:()=>i(e=>!e),children:[(0,pe.jsxs)("span",{className:Cn,children:[(0,pe.jsx)("span",{children:"\u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0430 \u0432\u0430\u0440\u0442\u0456\u0441\u0442\u044c"}),(0,pe.jsx)("span",{className:Nn,children:"\u0412\u043a\u043b\u044e\u0447\u043d\u043e \u0437 \u043a\u043e\u043c\u0456\u0441\u0456\u044f\u043c\u0438"})]}),(0,pe.jsxs)("span",{className:Pn,children:[(0,Ye.mT)(o),(0,pe.jsx)(nn.Z,{name:a?"expand-less":"expand-more",style:In.P.rounded,size:20,dataTestId:"total-cost-footer-toggle-icon"})]})]}),a&&(0,pe.jsxs)("div",{className:Sn,children:[(0,pe.jsxs)("div",{className:Dn,children:[(0,pe.jsx)("span",{children:"\u0412\u0430\u0440\u0442\u0456\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0443\u0433\u0438"}),(0,pe.jsx)("span",{children:(0,Ye.mT)(e)})]}),s&&(0,pe.jsxs)("div",{className:Dn,children:[(0,pe.jsx)("span",{children:"\u041a\u043e\u043c\u0456\u0441\u0456\u044f \u043f\u043b\u0430\u0442\u0456\u0436\u043d\u043e\u0457 \u0441\u0438\u0441\u0442\u0435\u043c\u0438"}),(0,pe.jsx)("span",{children:wn(t)})]}),(0,pe.jsxs)("div",{className:Dn,children:[(0,pe.jsx)("span",{children:"\u041a\u043e\u043c\u0456\u0441\u0456\u044f Helsi"}),(0,pe.jsx)("span",{children:Tn})]}),!s&&(0,pe.jsx)("div",{className:En,children:"\u041a\u043e\u043c\u0456\u0441\u0456\u044f \u043c\u043e\u0436\u0435 \u0441\u0442\u044f\u0433\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u0443\u043c\u043e\u0432 \u043a\u043b\u0456\u043d\u0456\u043a\u0438 \u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043e\u043f\u043b\u0430\u0442\u0438."})]})]})};var Mn=n(69482);const Bn=({isActive:e,serviceId:t,doctorId:n,availablePaymentOptionNames:a})=>{const i=(0,l.useRef)(null),s=a.online.length>0||a.local.length>0;(0,l.useEffect)(()=>{e&&t&&s&&i.current!==t&&(i.current=t,(0,Mn.ON)({doctorId:n,availablePaymentMethods:a}))},[e,t,s,n,a])};var Zn=n(70816),An=n.n(Zn),Rn=n(94577);const Hn=[],Ln={form:g.dV},On=(0,_.Z)(Ln)(e=>{var t,n,a,d,h,m,_,g,R;const{handleSubmit:H}=e,O=(0,s.I0)(),le=(0,o.k6)(),se=(0,s.v9)(D.jZ),oe=(0,s.v9)(B.tR),re=(0,s.v9)(B.f6),de=(0,s.v9)(B.XD),ce=(0,s.v9)(B._l),he=(0,s.v9)(k.Ww),me=(0,s.v9)(B.Wd),ue=(0,s.v9)(e=>(0,M.Vh)(e,{patientId:oe})),xe=(0,s.v9)(A.I5),ge=(0,s.v9)(A.lF),fe=(0,s.v9)(A.g0),je=(0,s.v9)(C.g2),Ie=(0,s.v9)(A.wp),ye=(0,s.v9)(C.NJ),be=(0,s.v9)(e=>null!==se&&void 0!==se&&se.resourceId?(0,P.it)(e,{resourceId:se.resourceId}):null),Ce=(0,s.v9)(e=>{const t=null===be||void 0===be?void 0:be.dutyDoctor;return(0,P.it)(e,{resourceId:t})}),Ne=null!==(t=null===se||void 0===se?void 0:se.resourceId)&&void 0!==t?t:"",Pe=(0,s.v9)(e=>(0,$e.z)(e,Ne)),Se=(0,s.v9)(e=>{var t,n,a;return null!==(t=null===(n=e.scheduleWithData)||void 0===n||null===(a=n.slots)||void 0===a?void 0:a[Ne])&&void 0!==t?t:Hn}),De=se,Ee=(0,l.useMemo)(()=>i()(se,["checkoutParams"]),[se]),Te=p()(De,"onlineCounseling"),we="work"===p()(De,"periodType"),ke=p()(De,"isOnlineOnly"),Me=Boolean(Te&&we),Be=Boolean((ke||je)&&Me),Ze=p()(De,"isServicePaid"),Ae=Boolean(p()(De,"fromServicesTab")),He=ye&&(Boolean(Ze)||Ae),Le=(0,qe.o6)(null===be||void 0===be?void 0:be.labels),Ue=p()(De,"organizationId")||p()(be,"organization.structureId")||"",Je=Boolean(De&&(0,y.us)(De))||Ae&&Le,Ke=(0,ze.Z)(be),[Xe,Qe]=(0,l.useState)(()=>({currentSelectedPatientId:p()(De,"patientId","")||oe||"",eventPlaceId:Be?I.P.TELEMEDICINE.id:I.P.HOSPITAL.id,isCheckWebRtcSupported:!1,immunizationStage:"",isModalOpened:!1,selectedServiceId:p()(De,"preselectedServiceId",""),selectedDate:"",selectedTime:"",selectedSlot:null,selectedPaymentMethod:null,paidInfoOpen:!1,submitAttempted:!1})),et=(0,L.Z)({doctor:be,patientId:Xe.currentSelectedPatientId}),{isNationalCheckupDoctor:tt,isPaymentDone:nt}=et,at=tt?null===be||void 0===be||null===(n=be.services)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.serviceId:void 0,it=be&&(0,F.kx)(be),st=be&&(0,F.qq)(be),ot=Boolean(null===be||void 0===be?void 0:be.anyRegionOnlineCounseling),rt=Xe.eventPlaceId===I.P.TELEMEDICINE.id,dt=Boolean(it&&st&&ce),ct=Boolean(it&&ot&&rt),ht=Boolean(it&&Ze),pt=Boolean(it&&!dt&&!ct&&!ht),mt=(0,l.useCallback)(()=>
1{if(!se)return;const e=Ee;if(Ae&&!Xe.selectedSlot)return;const t=Ae&&Xe.selectedSlot?{dateBegin:Xe.selectedSlot.dateBegin,dateEnd:Xe.selectedSlot.dateEnd,cabinet:Xe.selectedSlot.cabinet,type:Xe.selectedSlot.type,periodType:Xe.selectedSlot.periodType}:{},n={...e,...t,patient:Xe.currentSelectedPatientId,resource:e.resourceId};"createChild"!==n.patient&&O((0,Z.Mr)(n))},[O,Xe.currentSelectedPatientId,Xe.selectedSlot,Ae,se,Ee]);(0,l.useEffect)(()=>{mt(),O((0,w.e$)()),null!==be&&void 0!==be&&be.dutyDoctor&&!Ce&&O((0,N.vO)(be.dutyDoctor))},[O,mt,be,Ce]),(0,l.useEffect)(()=>{He&&Ue&&Ne&&O((0,Ve.fetchDoctorServicesForSelect)({organizationId:Ue,resourceId:Ne}))},[He,Ue,Ne,O]),(0,l.useEffect)(()=>{He&&Ae&&Ne&&Ke&&O((0,Oe.fetchSlots)({resourceId:Ne,daysCount:Ke,profileIsAuthorized:me}))},[He,Ae,Ne,Ke,me,O]);const ut=(0,l.useCallback)(e=>t=>{Qe(t=>({...t,eventPlaceId:e}))},[]),vt=(0,l.useCallback)(()=>{Qe(e=>({...e,isCheckWebRtcSupported:!0}))},[]),_t=(0,l.useCallback)(()=>{O((0,S.p0)({openedModal:f.C.notification_about_start_vaccination}))},[O]),xt=(0,l.useCallback)(e=>{e.preventDefault();const t=null===be||void 0===be?void 0:be.dutyDoctor;t&&(O((0,S.z6)()),le.push(`/doctor/${t}`))},[O,le,be]),gt=(0,l.useCallback)(e=>{e.preventDefault(),O((0,S.z6)()),le.push("/signup")},[O,le]),ft=(0,l.useCallback)(e=>{if("createRelatedPerson"===e)return null;const t=e||oe;"createRelatedPerson"!==e?(Qe(e=>({...e,currentSelectedPatientId:t})),O((0,Z.Mr)({...Ee,patient:t,resource:Ee.resourceId}))):Qe(e=>({...e,isModalOpened:!0}))},[O,Ee,oe]),jt=Pe.find(e=>e.serviceId===Xe.selectedServiceId),It=null!==(d=null===(h=Xe.selectedSlot)||void 0===h?void 0:h.dateBegin)&&void 0!==d?d:null===De||void 0===De?void 0:De.dateBegin,yt=(0,s.v9)(e=>(0,T.TR)(e,Ue)),bt=(0,s.v9)(T.Xe),Ct=(0,l.useRef)(!1);(0,l.useEffect)(()=>{He&&Ue&&!yt&&(Ct.current=!0,O((0,E.AZ)({organizationId:Ue})))},[O,He,Ue,yt]);const Nt=(0,l.useMemo)(()=>jt?{isPaid:!0,isNationalScreeningService:Boolean(jt.isNationalScreeningService)}:null,[jt]),Pt=(0,l.useMemo)(()=>{var e,t;return Je?[j.Ve.local]:(0,$.fj)({service:Nt,options:yt,slotType:null!==(e=null===(t=Xe.selectedSlot)||void 0===t?void 0:t.type)&&void 0!==e?e:null===De||void 0===De?void 0:De.type,isServicePaid:He,appointmentDate:It})},[Je,Nt,yt,null===(m=Xe.selectedSlot)||void 0===m?void 0:m.type,null===De||void 0===De?void 0:De.type,He,It]),St=(0,l.useMemo)(()=>{var e;return(0,$.qu)({localOptions:null!==(e=null===yt||void 0===yt?void 0:yt.localOptions)&&void 0!==e?e:[],service:Nt})},[null===yt||void 0===yt?void 0:yt.localOptions,Nt]),Dt=(0,l.useMemo)(()=>Je?{online:[],local:[j.o6.local]}:(0,$.GZ)({service:Nt,options:yt}),[Je,Nt,yt]);Bn({isActive:He,serviceId:null===jt||void 0===jt?void 0:jt.serviceId,doctorId:Ne||null,availablePaymentOptionNames:Dt});const Et=(0,$.rI)(Pt);(0,l.useEffect)(()=>{Xe.selectedPaymentMethod&&!Pt.includes(Xe.selectedPaymentMethod)&&Qe(e=>({...e,selectedPaymentMethod:null}))},[Pt,Xe.selectedPaymentMethod]);const Tt=He&&Boolean(jt)&&0===Pt.length,wt=Boolean(yt)||Ct.current&&!bt,kt=Tt&&wt,Mt=Et?Xe.selectedPaymentMethod:null!==(_=Pt[0])&&void 0!==_?_:null,Bt=Mt?(0,$.Dl)({method:Mt,service:Nt,options:yt}):void 0,Zt=(0,l.useCallback)(e=>{var t,n;if(He&&(Qe(e=>({...e,submitAttempted:!0})),!Xe.selectedServiceId||!jt))return;if(He&&Et&&!Xe.selectedPaymentMethod)return void Qe(e=>({...e,submitAttempted:!0}));if(Tt)return;if(Ae&&!Xe.selectedSlot)return;const a=Ee,l=Je?{...i()(e,["contactPersonPhone"]),contactPerson:{...(null===(t=e.contactPersonPhone)||void 0===t?void 0:t.patient)||{},phone:(0,W.un)((null===(n=e.contactPersonPhone)||void 0===n?void 0:n.phone)||"")}}:e,s=He&&Xe.selectedServiceId?Xe.selectedServiceId:at,o={...a,...Ae&&Xe.selectedSlot?{dateBegin:Xe.selectedSlot.dateBegin,dateEnd:Xe.selectedSlot.dateEnd,cabinet:Xe.selectedSlot.cabinet,type:Xe.selectedSlot.type,periodType:Xe.selectedSlot.periodType,isServicePaid:!0}:{},patient:Xe.currentSelectedPatientId,eventPlaceId:Xe.eventPlaceId,...s?{service:{id:s}}:{},...He&&jt&&Ue&&Mt&&Bt?{checkoutParams:{systemType:Bt,organizationId:Ue,serviceId:jt.serviceId,resourceId:Ne,pricePositionId:jt.positionId}}:{},...l};if(re&&de){if(pt)return void O((0,S.p0)({openedModal:f.C.appointment,record:o}));const e=ct?(e=>({...e,referralNumber:" \u0417\u0430\u043f\u0438\u0441 \u043d\u0430 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0456\u044e",referralAuthor:"\u043d/\u0434",referralDate:An()().format(Rn.nj)}))(o):o;return new Promise((t,n)=>
1{O((0,Z.yM)({record:e,analytics:{doctor:be,slot:e,visitType:Xe.eventPlaceId===I.P.TELEMEDICINE.id?Y.zz.TELEMEDICINE:Y.zz.HOSPITAL},resolve:t,reject:n}))}).catch(e=>{(0,U.$A)(e)})}O((0,S.p0)({openedModal:f.C.auth,record:o,nextModal:"save_event",nextRecord:o}))},[Ee,Xe.eventPlaceId,Xe.currentSelectedPatientId,Xe.selectedServiceId,Xe.selectedSlot,Xe.selectedPaymentMethod,at,He,Et,Tt,jt,Ue,Ne,Mt,Bt,Ae,Je,re,de,pt,ct,O]),{currentSelectedPatientId:Rt,isCheckWebRtcSupported:Ht}=Xe,Ot=(0,x.iP)()||"createChild"===Rt||oe===Rt?ue:he[Rt],zt=be&&(0,F.aT)(be),Ft=u()(fe,{strict:!0}),Wt=u()(fe,{strict:!0,name:b._Y.VALIDATION_ERRORS}),Vt=ke&&Me,{shortInstruction:Gt,appointmentWithoutDeclarationByOrgContact:Yt}=be||{},$t=(0,F.rp)(Gt),qt=Array.isArray(fe)&&fe.find(e=>e.message===b._Y.DECLARATION_REQUIRED),{canCreateNationalCheckupEvent:Jt,isLoading:Kt}=z({doctor:be,patientId:Xe.currentSelectedPatientId,shouldGetNationalCheckupEvents:!1}),Xt=null!==Ot&&void 0!==Ot&&Ot.birthDate?(0,V.x)(Ot.birthDate):void 0,Qt=!(!tt||"number"!==typeof Xt)&&Xt<40,en=tt&&Qt?"\u0411\u0435\u0437\u043a\u043e\u0448\u0442\u043e\u0432\u043d\u0438\u0439 \u043d\u0430\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043d\u0456\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u043e\u0441\u0456\u0431 \u0432\u0456\u043a\u043e\u043c \u0432\u0456\u0434 40 \u0440\u043e\u043a\u0456\u0432.":void 0,nn=Ae&&Xe.selectedSlot?{...De,dateBegin:Xe.selectedSlot.dateBegin,dateEnd:Xe.selectedSlot.dateEnd,cabinet:Xe.selectedSlot.cabinet,type:Xe.selectedSlot.type,periodType:Xe.selectedSlot.periodType,isServicePaid:!0}:De,an=(0,Ye.W0)({contactPhones:null===be||void 0===be?void 0:be.contactPhones,receptionPhones:null===be||void 0===be?void 0:be.receptionPhones,administrationPhones:null===be||void 0===be?void 0:be.administrationPhones,forCallsPhones:null===be||void 0===be?void 0:be.forCallsPhones}),ln=an.length&&!(0,x.iP)()?(0,q.x_)(an[0]):"",sn=Je?"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c":pt?"\u0414\u0430\u043b\u0456":"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u043d\u0430 \u043e\u0431\u0440\u0430\u043d\u0438\u0439 \u0447\u0430\u0441";return(0,pe.jsxs)("div",{className:c()("dialog__content",lt.container),role:"form",children:[(0,pe.jsx)(ee.H3,{className:lt.heading,bold:!0,uppercase:!0,children:Je?"\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c":"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c"}),(0,pe.jsx)("hr",{}),xe&&(0,pe.jsxs)("div",{children:["\u0417\u0430\u043f\u0438\u0441\u0443\u0454\u043c\u043e \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c ",(0,pe.jsx)("br",{}),"\u0417\u0430\u0447\u0435\u043a\u0430\u0439\u0442\u0435..."," "]}),!xe&&(0,pe.jsxs)("form",{className:lt.form,onSubmit:H(Zt),children:[ce&&!qt&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u0412\u043d\u0435\u0441\u0456\u0442\u044c \u0434\u0430\u043d\u0456 \u043f\u0430\u0446\u0456\u0454\u043d\u0442\u0430*"}),(0,pe.jsx)(v.Z,{name:"contactPerson",children:(0,pe.jsx)(ve,{})})]}),!ce&&(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c, \u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u043d\u0430 \u043f\u0440\u0438\u0439\u043e\u043c*"}),(0,pe.jsx)(Re,{optionsTemplate:"booking",className:c()("select_person",lt.fieldSelect),name:"saveEventSelect",value:Rt,required:!0,optionClassName:"select_person__option",placeholder:"\u041d\u0456\u043a\u043e\u0433\u043e \u043d\u0435 \u043e\u0431\u0440\u0430\u043d\u043e",profileId:oe,patients:he,onChange:ft,error:en,touched:Boolean(en),valid:!en}),(0,pe.jsx)(We.Z,{show:Xe.isModalOpened,onHide:()=>Qe(e=>({...e,isModalOpened:!1}))})]}),Je?(0,pe.jsx)(At,{}):null,Ie?(0,pe.jsx)("div",{className:lt.loader,"data-testid":"dialog-save-event-loader",children:(0,pe.jsx)(te.Z,{})}):(0,pe.jsxs)(pe.Fragment,{children:[qt&&be&&(0,pe.jsx)(X.Z,{className:lt.alertWithMarginTop,template:"warning",text:(0,pe.jsxs)(pe.Fragment,{children:["\u0417\u0430\u043f\u0438\u0441 \u0434\u043e ",(0,G.Pp)(be)," \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u043f\u0430\u0446\u0456\u0454\u043d\u0442\u0456\u0432 \u0442\u0430 \u0457\u0445 \u043f\u043e\u0432'\u044f\u0437\u0430\u043d\u0438\u0445 \u043e\u0441\u0456\u0431, \u044f\u043a\u0456 \u043c\u0430\u044e\u0442\u044c \u0456\u0437 \u043d\u0438\u043c \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0456\u044e. \u0417\u0432\u0435\u0440\u043d\u0456\u0442\u044c\u0441\u044f \u0434\u043e \u0447\u0435\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u0431\u0456\u043d\u0435\u0442\u0443."," ",(0,pe.jsx)(r.OL,{to:"/faq/booking-familydoc",target:"_blank",rel:"noopener noreferrer",children:(0,pe.jsx)(Q.Z,{v2:!0,children:"\u0429\u043e \u0440\u043e\u0431\u0438\u0442\u0438, \u044f\u043a\u0449\u043e \u044f \u043c\u0430\u044e \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0456\u044e \u0456\u0437 \u0446\u0438\u043c \u043b\u0456\u043a\u0430\u0440\u0435\u043c?"})})]})}),zt&&!qt&&(0,pe.jsx)("p",{children:"\u041f\u0456\u0441\u043b\u044f \u043d\u0430\u0434\u0445\u043e\u0434\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u044f\u0432\u043a\u0438 \u0432\u0430\u043c \u0437\u0430\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443\u0454 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u043f\u0438\u0441\u0443. \u0412\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0432 \u043d\u044c\u043e\u0433\u043e \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u0438 \u0442\u0438\u043f \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u0438, \u0434\u0435 \u0432\u0430\u043c \u0437\u0440\u0443\u0447\u043d\u043e \u0437\u0434\u0430\u0432\u0430\u0442\u0438 \u0442\u0435\u0441\u0442 \u2014 \u0432\u0434\u043e\u043c\u0430 \u0447\u0438 \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0456\u0457."}),Je&&He&&!Ae&&(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u043b\u0443\u0433\u0443*"}),(0,pe.jsx)(tn,{services:Pe,value:Xe.selectedServiceId,onChange:e=>Qe(t=>({...t,selectedServiceId:e,selectedPaymentMethod:null})),error:Xe.submitAttempted&&!Xe.selectedServiceId?"\u0426\u0435 \u043f\u043e\u043b\u0435 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0435":void 0,touched:Xe.submitAttempted})]}),!zt&&!qt&&(0,pe.jsx)(Lt,{isTelemedicineAllowed:!!Me,isOnlyTelemedicine:!!Vt,eventPlaceId:Xe.eventPlaceId,onChangeEventPlaceId:ut,showWebRtcSupported:vt}),!Je&&He&&!Ae&&(0,pe.jsxs)("div",{className:lt.field,children:[(0,pe.jsx)("div",{className:lt.fieldTitle,children:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u043b\u0443\u0433\u0443*"}),(0,pe.jsx)(tn,{services:Pe,value:Xe.selectedServiceId,onChange:e=>Qe(t=>({...t,selectedServiceId:e,selectedPaymentMethod:null})),error:Xe.submitAttempted&&!Xe.selectedServiceId?"\u0426\u0435 \u043f\u043e\u043b\u0435 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0435":void 0,touched:Xe.submitAttempted})]}),Ae&&(0,pe.jsx)(jn,{days:Se,isCommercialBooking:Le,dateValue:Xe.selectedDate,timeValue:Xe.selectedTime,onChange:(e,t,n
1)=>Qe(a=>({...a,selectedSlot:e,selectedDate:t,selectedTime:n})),error:Xe.submitAttempted?{date:Xe.selectedDate?void 0:"\u0426\u0435 \u043f\u043e\u043b\u0435 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0435",time:Xe.selectedTime?void 0:"\u0426\u0435 \u043f\u043e\u043b\u0435 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0435"}:void 0}),Ht&&(0,pe.jsx)(Fe.Z,{isSaveEvent:!0}),(0,pe.jsx)(ie.Z,{record:nn,doctor:qt&&!Yt?Ce:be,patient:Ot,isUserEvent:"createChild"===Rt||oe===Rt,isRecordingByOrder:Je,hideSchedule:Ae&&!Xe.selectedSlot,isDutyCabinet:Boolean(qt&&!Yt),isOrgContacts:Boolean(qt&&Yt),isServicePaid:He&&!Le,onPaidInfoClick:()=>Qe(e=>({...e,paidInfoOpen:!0})),serviceName:Ae?null===jt||void 0===jt?void 0:jt.name:void 0}),He&&jt&&(kt?(0,pe.jsxs)("div",{className:c()(lt.field,lt.onlineBookingUnavailable),children:[(0,pe.jsx)(J.Z,{type:K.e.info,title:j.St,description:j.Cc}),(0,pe.jsx)(_e.Z,{title:j.bd,phones:an})]}):(0,pe.jsx)(mn,{methods:Pt,value:Mt,onChange:e=>Qe(t=>({...t,selectedPaymentMethod:e})),localPaymentTags:St,error:Xe.submitAttempted&&Et&&!Xe.selectedPaymentMethod?"\u0417\u0440\u043e\u0431\u0456\u0442\u044c \u0432\u0438\u0431\u0456\u0440, \u0449\u043e\u0431 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438.":void 0})),(Boolean($t)||Je||(fe||[]).some(e=>e.message!==b._Y.DECLARATION_REQUIRED))&&(0,pe.jsxs)("div",{className:lt.alertsWrapper,children:[$t&&(0,pe.jsx)(X.Z,{template:"warning",text:$t,isHTMLText:!0}),Je&&(0,pe.jsx)(J.Z,{type:K.e.warning,title:"\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u0430 \u0443\u0437\u0433\u043e\u0434\u0438\u0442\u044c \u0456\u0437 \u0432\u0430\u043c\u0438 \u0437\u0430\u043f\u0438\u0441",description:"\u0417\u0430\u043b\u0438\u0448\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u0431\u0430\u0436\u0430\u043d\u0438\u0439 \u0447\u0430\u0441, \u0456 \u043d\u0435\u0432\u0434\u043e\u0432\u0437\u0456 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a \u043c\u0435\u0434\u0437\u0430\u043a\u043b\u0430\u0434\u0443 \u0437\u0430\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443\u0454 \u0432\u0430\u043c \u0434\u043b\u044f \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f \u043f\u0440\u0438\u0439\u043e\u043c\u0443."}),fe&&Boolean(fe.length)&&fe.filter(e=>e.message!==b._Y.DECLARATION_REQUIRED).map((e,t)=>(0,pe.jsx)(X.Z,{template:e.strict?"warning":"info",text:e.message},t))]}),!!ge&&(0,pe.jsx)("span",{className:"text-red",children:"\u0412\u0438\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430. \u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u043d\u043e\u0432\u0443"}),tt&&(0,pe.jsx)(Ut,{isPaymentDone:nt}),tt&&!Kt&&!Jt&&(0,pe.jsx)(J.Z,{iconLeft:!1,type:K.e.danger,description:"\u0412\u0438 \u0432\u0436\u0435 \u043c\u0430\u0454\u0442\u0435 \u0437\u0430\u043f\u0438\u0441 \u043d\u0430 \u043d\u0430\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043d\u0456\u043d\u0433. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439"}),(0,pe.jsxs)("div",{className:c()(lt.footer,{[lt.footerSticky]:He}),children:[He&&jt&&(0,pe.jsx)(kn,{cost:null!==(g=jt.costWithVat)&&void 0!==g?g:jt.cost,fee:null!==(R=jt.fee)&&void 0!==R?R:0,paymentMethod:Mt}),(0,pe.jsxs)("div",{className:lt.submit,children:[kt?ln?(0,pe.jsx)(ne.Z,{phone:ln,children:({href:e,rel:t})=>(0,pe.jsx)(ae.ZP,{fullwidth:!0,text16:!0,info:!0,multiline:!0,link:e,rel:t,linkTarget:!1,children:j.eF})}):(0,pe.jsx)(ae.ZP,{fullwidth:!0,text16:!0,info:!0,multiline:!0,onClick:()=>O((0,S.z6)()),children:"\u0417\u0430\u043a\u0440\u0438\u0442\u0438"}):"createChild"===Rt?(0,pe.jsx)(ae.ZP,{onClick:gt,info:!0,fullwidth:!0,text16:!0,children:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0434\u0438\u0442\u0438\u043d\u0443"}):(0,pe.jsxs)(pe.Fragment,{children:[!qt&&(0,pe.jsx)(ae.ZP,{disabled:Boolean(st&&Wt)||Boolean(Ft)||tt&&(Qt||!Jt)||Tt,fullwidth:!0,text16:!0,info:!0,multiline:!0,children:sn}),st&&Wt&&(0,pe.jsx)(ae.ZP,{fullwidth:!0,text16:!0,info:!0,multiline:!0,onClick:_t,children:"\u041f\u041e\u0412\u0406\u0414\u041e\u041c\u0418\u0422\u0418 \u041c\u0415\u041d\u0415 \u041f\u0420\u041e \u0421\u0422\u0410\u0420\u0422 \u0412\u0410\u041a\u0426\u0418\u041d\u0410\u0426\u0406\u0407"}),qt&&!Yt&&(0,pe.jsx)(ae.ZP,{className:lt.submitButton,fullwidth:!0,onClick:xt,children:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u0447\u0435\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u0431\u0456\u043d\u0435\u0442\u0443"}),qt&&Yt&&(0,pe.jsx)(ae.ZP,{className:lt.submitButton,fullwidth:!0,onClick:()=>O((0,S.z6)()),children:"\u0417\u0430\u043a\u0440\u0438\u0442\u0438"})]}),(0,pe.jsx)("input",{type:"submit",style:{display:"none"}})]}),(He||Je)&&!kt&&(0,pe.jsx)(J.Z,{type:K.e.info,background:!1,iconLeft:!0,description:(0,pe.jsxs)(pe.Fragment,{children:["\u041d\u0430\u0442\u0438\u0441\u043a\u0430\u044e\u0447\u0438 \xab",sn,"\xbb, \u0432\u0438 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u0454\u0442\u0435\u0441\u044c \u0437"," ",(0,pe.jsx)("a",{href:"https://docs.google.com/document/d/1_mIrDP3bxfQTY5aqYDwB7Zri9uNfE2rRw4B2dero2Og",target:"_blank",rel:"noopener noreferrer",children:(0,pe.jsx)(Q.Z,{v2:!0,className:lt.termsLink,children:"\u0423\u043c\u043e\u0432\u0430\u043c\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f"})})]})})]})]})]}),He&&(0,pe.jsx)(Ge.Z,{show:Xe.paidInfoOpen,onHide:()=>Qe(e=>({...e,paidInfoOpen:!1})),onSubmit:()=>Qe(e=>({...e,paidInfoOpen:!1})),phones:an})]})})},23913:(e,t,n)=>{n.d(t,{Z:()=>o});n(47313);var a=n(24959),i=n(95355),l=n(46417);const{[a.UTM_NAME.cabinetRelatedPersonsPageAppModal]:s}=a.UTM,o=e=>{const{onHide:t,show:n}=e,a=(0,l.jsxs)("div",{children:["\u0411\u0456\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u043a\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u043d\u0438\u043c\u0438 \u0440\u0456\u0434\u043d\u0438\u0445 \u0432 ",(0,l.jsx)("br",{}),"\u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u0443 ",i.x]});return(0,l.jsx)(i.Z,{onHide:t,show:n,title:a,utm:s,image:{src:"/img/cabinet/related-persons.webp",fallback:"/img/cabinet/related-persons.png",alt:"\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438 \u043f\u043e\u0432'\u044f\u0437\u0430\u043d\u0438\u0445 \u043e\u0441\u0456\u0431",width:187,height:157,widthMobiles:133,heightMobiles:114}})}},43355:(e,t,n)=>{n.r(t),n.d(t,{changeSimilarDoctorsPaging:()=>p,changeSimilarTopDoctorsPaging:()=>m,fetchDoctorAboutInfo:()=>_,fetchDoctorAvailableVaccines:()=>g,fetchDoctorPaidServices:()=>f,fetchDoctorPaidServicesDiscovery:()=>I,fetchDoctorServicesForSelect:()=>j,fetchSimilarDoctors:()=>u,fetchSimilarTopDoctors:()=>v,fetchSlots:()=>x});var a=n(31172),i=n(56750),l=n(92967);const s=e=>(0,l.t9)((e=>{const{id:t,...n}=e,l=a.stringify(n,{skipNull:!0});return`${i.BJ}/organizations/${t}/services?${l}`})(e),{isSecure:!1});var o=n(23994),r=n(13366),d=n(817),c=n(25811),h=n(96133);const p=e=>({type:h.tc,payload:e}),m=e=>({type:h.ms,payload:e}),u=e=>({types:[h.Nb,h.qq,h.lp],promise:()=>c.Z.getList({propertyType:"private",...e}),payload:{similarDoctorsFilter:e}}),v=e=>({types:[h.Ac,h.TD,h.wR],promise:()=>c.Z.getListV2({isTop:!0,sort:d.t.SpecialtyIds,...e}),payload:{similarTopDoctorsFilter:e}}),_=e=>({types:[h.kI,h._I,h.YD],promise:()=>c.Z.getDoctorAboutInfo(e)}),x=({daysCount:e,doctor:t,profileIsAuthorized:n,...a})=>({types:[h.jG,h.xz,h.$q],promise:()=>r.F({daysCount:e,profileIsAuthorized:n,...a}),payload:{daysCount:e,doctor:t,profileIsAuthorized:n}}),g=e=>({types:[h.xy,h.En,h.uH],promise:()=>c.Z.getDoctorAvailableVaccines(e)}),f=({organizationId:e,resourceId:t,providingMethod:n,skip:a=0,limit:i=o.GP})=>({types:[h.rj,h.RH,h.m9],promise:()=>s({id:e,resourceId:t,providingMethod:n,includePriceFilter:!0,skip:a,limit:i}),payload:{providingMethod:n,skip:a}}),j=({organizationId:e,resourceId:t})=>({types:[h._2,h.EH,h.N9],promise:()=>s({id:e,resourceId:t,includePriceFilter:!0,skip:0,limit:200}),payload:{resourceId:t}}),I=({organizationId:e,resourceId:t})=>({types:[h.dM,h.Vy,h.a6],promise:()=>Promise.all(o.kf.map(n=>s({id:e,resourceId:t,providingMethod:n,includePriceFilter:!0,skip:0,limit:o.GP}).then(e=>({method:n,totalCount:e.meta?e.meta.totalCount:0,data:e.data||[]})))),payload:{resourceId:t}})}
1,10854:(e,t,n)=>{n.d(t,{Z:()=>h});n(47313);var a=n(22211),i=n(10492),l=n(27009),s=n(18490),o=n(45250),r=n(6595);const d="ServicePriceTag_walletBadge__mJZtA";var c=n(46417);const h=({cost:e})=>(0,c.jsx)(s.Z,{color:o.Q.green,size:o.c.small,iconLeft:(0,c.jsx)("span",{className:d,children:(0,c.jsx)(i.Z,{name:"account-balance-wallet",style:l.P.rounded,size:12,color:a.D.white500})}),label:`\u041f\u043b\u0430\u0442\u043d\u043e - ${(0,r.mT)(e)}`})},20198:(e,t,n)=>{n.d(t,{Z:()=>N});n(47313);var a=n(22211),i=n(89967),l=n(74339),s=n(18680),o=n(3609),r=n(32303),d=n(25386),c=n(75200),h=n(19356),p=n(18490),m=n(45250),u=n(30825),v=n(71728);const _="WithoutReferralModal_body__npqJA",x="WithoutReferralModal_hint__37gxd",g="WithoutReferralModal_titleRow__6nQSZ",f="WithoutReferralModal_collapse__IVtKE",j="WithoutReferralModal_collapseLabel__cjYUy",I="WithoutReferralModal_phones__ZtERz",y="WithoutReferralModal_phone__8HNgR",b="WithoutReferralModal_phoneCard__lJ9d5";var C=n(46417);const N=({show:e,onHide:t,phones:n,onSubmit:N})=>{const P=n.length>0,S=[{key:"contacts",label:(0,C.jsxs)("div",{className:j,children:[(0,C.jsx)(o.Z,{shape:r.ab.rectangle,size:r.IX.xs,bgColor:a.D.primaryWhite500,children:(0,C.jsx)(o.Z.Emoji,{imageName:l.Dn.SPEECH_BALLOON})}),(0,C.jsx)(u.ZP,{name:i.b.text1,fontWeight:i.e.semiBold,children:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0438 \u043e\u0440\u0433\u0430\u043d\u0456\u0437\u0430\u0446\u0456\u0457"})]}),children:(0,C.jsx)("div",{className:I,children:n.map(e=>(0,C.jsx)("div",{className:b,children:(0,C.jsx)(v.Z,{v2:!0,phone:(0,s.CN)(e),isWithoutFormatting:!0,isCountryCodeShown:!0,isLogoHidden:!0,containerClassName:y})},e))}),styles:{header:{alignItems:"center"}}}];return(0,C.jsx)(h.Z,{width:684,zIndex:1010,show:e,onHide:t,title:(0,C.jsxs)("span",{className:g,children:[(0,C.jsx)("span",{children:"\u0411\u0435\u0437 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f"}),(0,C.jsx)(p.Z,{color:m.Q.green,size:m.c.medium,label:"\u041f\u043b\u0430\u0442\u043d\u043e"})]}),subtitle:(0,C.jsxs)(C.Fragment,{children:["\u0427\u0430\u0441, \u0432\u0430\u0440\u0442\u0456\u0441\u0442\u044c \u0456 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043d\u0430\u0434\u0430\u043d\u043d\u044f \u043f\u043b\u0430\u0442\u043d\u0438\u0445 \u043f\u043e\u0441\u043b\u0443\u0433 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454 ",(0,C.jsx)("strong",{children:"\u0437\u0430\u043a\u043b\u0430\u0434 \u043e\u0445\u043e\u0440\u043e\u043d\u0438 \u0437\u0434\u043e\u0440\u043e\u0432'\u044f."})]}),actions:(0,C.jsx)(h.Z.Button,{type:d.Us.primary,onClick:null!==N&&void 0!==N?N:t,children:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f"}),children:P&&(0,C.jsxs)("div",{className:_,children:[(0,C.jsx)(u.ZP,{name:i.b.text1,tag:"p",className:x,children:"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0432\u0438\u043d\u0438\u043a\u043b\u0438 \u043f\u0438\u0442\u0430\u043d\u043d\u044f \u2014 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0432\u0435\u0440\u043d\u0443\u0442\u0438\u0441\u044f \u0434\u043e \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0446\u0456\u0457 \u043e\u0440\u0433\u0430\u043d\u0456\u0437\u0430\u0446\u0456\u0457, \u0437\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u043c \u043d\u0438\u0436\u0447\u0435."}),(0,C.jsx)(c.Z,{className:f,items:S})]})})}},86262:(e,t,n)=>{n.d(t,{YI:()=>p,eH:()=>d,sR:()=>h});n(10279);var a=n(82374),i=n.n(a),l=n(68025),s=n(73973);const o=(e,t)=>!(!e.isServicePaid||!(e=>e.reservationState!==l.Ck.Reserved&&!e.isOutdated)(e))&&(t?e.type===l.Mj.WITH_RECORDING_BY_ORDER||e.type===l.Mj.WITH_RECORDING_BY_JOINT_ORDER:e.type===l.Mj.WITH_RECORDING),r=(e,t)=>(e.slots||[]).filter(e=>o(e,t)),d=(e,t)=>(e||[]).some(e=>r(e,t).length>0),c=e=>{const t=i()(e).locale("uk"),n=t.isSame(i()(),"day")?"\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456":t.format("dddd");return(0,s.fm)(`${n}, ${t.format("DD MMMM YYYY")}`)},h=(e,t)=>(e||[]).filter(e=>r(e,t).length>0).map(e=>({value:e.date,label:c(e.date)})),p=(e,t,n)=>{const a=(e||[]).find(e=>e.date===t);return a?r(a,n).map(e=>({value:e.dateBegin,label:i()(e.dateBegin).format("HH:mm"),slot:e})):[]}},46822:(e,t,n)=>{n.d(t,{HN:()=>h,Jj:()=>m,fY:()=>d,gm:()=>p,o6:()=>r,xf:()=>c});var a=n(69706),i=n.n(a),l=n(6366),s=n.n(l),o=n(78293);const r=e=>(null!==e&&void 0!==e?e:[]).includes(o.F),d=e=>s()(e,e=>!!e.ranges.length&&e.ranges.some(({slots:e})=>!e||e.some(e=>!e.periodNaOverlaped))),c=(e=[])=>e.some(h),h=e=>!!e.slots.length,p=e=>i()(e,"organization.integrations",[]).includes("Dis"),m=({isFeatureOn:e,allCount:t})=>e&&t>0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.