PageSourceSearch

https://bip.legionowo.pl/static/js/19.1a6f5f56.chunk.js

js legionowo.pl collected 2026-10-02 16:18:06 UTC 21,218 bytes, 2 lines download raw bytes

1(this["webpackJsonpe-rejestracja"]=this["webpackJsonpe-rejestracja"]||[]).push([[19],{606:function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var c=t(2),r=t(7),a=function(e){var n=e.children;return Object(c.jsx)(r.a,{as:"h1",fontSize:"4xl",children:n})}},607:function(e,n,t){"use strict";t.d(n,"a",(function(){return l}));var c=t(4),r=t(15),a=t(2),i=(t(1),t(573)),o=t(595),s=t(232),j=t(23),l=function(e){var n=e.icon,t=e.children,l=e.tooltipLabel,d=Object(r.a)(e,["icon","children","tooltipLabel"]);return Object(a.jsxs)(i.a,Object(c.a)(Object(c.a)({width:{base:"280px",md:"350px"},p:2,border:"solid 1px gray",borderRadius:15,minH:{base:"45px",md:"60px"},alignItems:"center",fontWeight:"bold"},d),{},{children:[Object(a.jsx)(o.a,{"aria-label":l,label:l,shouldWrapChildren:!0,children:Object(a.jsx)(j.a,{icon:n,w:{base:6,md:10},h:{base:6,md:10},mr:2})}),Object(a.jsx)(s.a,{maxW:{base:"280px",md:"400px"},m:"auto",children:t})]}))}},611:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var c=t(2),r=(t(1),t(86)),a=t(19),i=t(49),o=t(7),s=function(e){var n=e.groupId,t=Object(a.a)().friendlyUrl,s=Object(i.a)(Object(r.b)(),(function(){return Object(r.a)(t)})).data,j=null===s||void 0===s?void 0:s.find((function(e){return n===e.id}));return Object(c.jsx)(o.a,{children:null===j||void 0===j?void 0:j.name})}},612:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var c=t(2),r=t(19),a=t(235),i=t(7),o=function(e){var n=e.queueId,t=Object(r.a)().friendlyUrl,o=Object(a.a)(n,t).data;return Object(c.jsx)(i.a,{children:null===o||void 0===o?void 0:o.name})}},613:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var c=t(4),r=t(19),a=t(48),i=t(67),o=t(49),s=function(e){var n=Object(r.a)().friendlyUrl;return Object(o.a)(l(e),(function(){return j(e,n)}))},j=function(e,n){return Object(a.a)().get("/e-reservation/".concat(n,"/appointment/").concat(e)).then((function(e){return Object(c.a)(Object(c.a)({},e),{},{createDate:e.createDate?Object(i.a)(e.createDate):void 0,startDate:Object(i.a)(e.startDate),endDate:Object(i.a)(e.endDate)})}))},l=function(e){return["appointment",e]}},614:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var c=t(2),r=(t(1),t(628)),a=t(598),i=t(549),o=t(640),s=t(581),j=t(577),l=t(641),d=t(7),u=t(607),b=t(611),O=t(612),p=t.p+"static/media/booking.dea6e116.svg",m=function(e){var n=e.appointment;return Object(c.jsxs)(r.a,{mx:"auto",w:{sm:"100%",md:"80%"},columns:{sm:1,md:2},mt:8,spacing:6,justifyContent:"center",justifyItems:"center",textAlign:"center",children:[Object(c.jsxs)(a.c,{spacing:6,children:[n.groupId&&Object(c.jsx)(u.a,{icon:o.b,tooltipLabel:"Grupa",children:Object(c.jsx)(b.a,{groupId:n.groupId})}),n.queueId&&Object(c.jsx)(u.a,{icon:o.d,tooltipLabel:"Kolejka",children:Object(c.jsx)(O.a,{queueId:n.queueId})}),Object(c.jsx)(u.a,{icon:s.a,tooltipLabel:"Termin wizyty",children:Object(c.jsx)(d.a,{children:n.startDate.userFormat()})}),Object(c.jsx)(u.a,{icon:j.a,tooltipLabel:"Czas wizyty",children:Object(c.jsxs)(d.a,{children:[n.startDate.getTime()," -"," ",n.endDate.getTime()]})}),n.email&&Object(c.jsx)(u.a,{icon:l.a,tooltipLabel:"Email",children:Object(c.jsx)(d.a,{children:n.email})})]}),Object(c.jsx)(i.a,{maxH:"400px",src:p,display:{base:"none",md:"block"},alt:"Podsumowanie rezerwacji - zdj\u0119cie kalendarza"})]})}},617:function(e,n,t){"use strict";
1var c=t(21),r=t(24),a=t(56),i=t(57),o=t(1),s=t(32),j=function(e){Object(a.a)(t,e);var n=Object(i.a)(t);function t(e){var r;return Object(c.a)(this,t),(r=n.call(this,e)).defaultMessage="Wyj\u015bcie spowoduje utrat\u0119 danych. Czy jeste\u015b pewien?",r.unblock=new Function,r.handleBeforeunload=function(e){var n;e.returnValue=null!==(n=r.props.message)&&void 0!==n?n:r.defaultMessage},r}return Object(r.a)(t,[{key:"shouldComponentUpdate",value:function(e){return e.location.pathname!==this.props.location.pathname}},{key:"render",value:function(){return null}},{key:"componentDidMount",value:function(){var e=this;window.addEventListener("beforeunload",this.handleBeforeunload),this.unblock=this.props.history.block((function(n){var t;if(e.props.when&&e.props.when(n))return null!==(t=e.props.message)&&void 0!==t?t:e.defaultMessage}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload),this.unblock(),this.props.onRedirect&&this.props.onRedirect()}}]),t}(o.Component);n.a=Object(s.k)(j)},619:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var c=t(2),r=t(44),a=t(238),i=t(198),o=function(e){var n=e.field;switch(n.fieldType){case i.a.TextArea:return Object(c.jsx)(r.TextAreaField,{label:n.label,name:n.name,isRequired:n.required});case i.a.TextField:return Object(c.jsx)(r.TextField,{label:n.label,name:n.name,isRequired:n.required});case i.a.PhoneField:return Object(c.jsx)(a.a,{mask:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],name:n.name,label:n.label,isRequired:n.required});default:return Object(c.jsx)(c.Fragment,{})}}},620:function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));var c=t(50),r=t(55),a=t(198),i=function(e){switch(e.fieldType){case a.a.TextField:case a.a.PhoneField:case a.a.TextArea:return e.required?Object(c.c)().required(r.a.requiredField):Object(c.c)();default:return Object(c.c)()}}},647:function(e,n,t){"use strict";t.r(n);var c=t(2),r=t(232),a=t(628),i=t(32),o=t(613),s=t(19),j=t(606),l=t(7),d=t(617),u=t(60),b=t(150),O=t(614),p=t(197),m=t(149),x=t(59),h=t(23),f=t(12),w=function(){var e=Object(i.g)().push,n=Object(s.a)().friendlyUrl,t=Object(i.i)(),r=t.groupId,a=t.queueId,o=t.appointmentId,j=Object(f.useGetThemeColors)(),d=Object(p.d)(j.white,j.black);return Object(c.jsx)(x.Button,{customColorScheme:x.CustomColorScheme.Blue,m:"auto",w:"330px",h:"70px",leftIcon:Object(c.jsx)(h.a,{color:d,icon:m.f}),onClick:function(){e("/e-rezerwacja/".concat(n,"/").concat(r,"/rezerwacja/").concat(a,"/edycja/").concat(o))},id:"edit-reservation-btn",children:Object(c.jsx)(l.a,{children:"Zmie\u0144 termin"})})},v=t(167),z=t(39),g=t(100),y=t(242),C=t(74),S=t(6),k=t(1),F=t(598),I=t(35),A=function(e){var n=e.onConfirm,t=e.validityTime,r=Object(i.g)().push,a=Object(s.a)().friendlyUrl,o=Object(I.b)().validityLinkAppointmentTime;return Object(c.jsxs)(F.c,{spacing:4,margin:"auto",children:[Object(c.jsx)(l.a,{children:"Rezerwacja wymaga potwierdzenia. Na wskazany adres email zosta\u0142a wys\u0142ana wiadomo\u015b\u0107 z linkiem aktywacyjnym. Prosz\u0119 o potwierdzenie rezerwacji w ci\u0105gu ".concat(null!==t&&void 0!==t?t:o," minut.")}),Object(c.jsx)(x.Button,{id:"confirm-reservation-email-btn",onClick:function(){n(),r("/e-rezerwacja/".concat(a))},colorScheme:x.CustomColorScheme.Green,children:"Rozumiem"})]})},P=t(662),M=t(244),q=t(243),R=function(e){var n=e.onAuth,t=e.openRemindPasswordModal,o=Object(i.i)().appointmentId;return Object(c.jsxs)(P.e,{variant:"enclosed",children:[Object(c.jsx)(P.b,{children:Object(c.jsxs)(a.a,{columns:2,w:"100%",children:[Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Zaloguj si\u0119"})}),Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Zarejestruj si\u0119"})})]})}),Object(c.jsxs)(P.d,{alignContent:"center",alignItems:"center",children:[Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Logowanie"}),Object(c.jsx)(r.a,{w:"50%",margin:"auto",children:Object(c.jsx)(q.a,{onCloseModal:n,openRemindPasswordModal:t})})]}),Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Rejestracja"}),Object(c.jsx)(r.a,{w:"50%",margin:"auto",children:Object(c.jsx)(M.a,{onCloseModal:n,appointmentId:o})})]})]})]})},T=function(e){var n=e.onClose,t=e.isOpen,r=e.openRemindPasswordModal,a=Object(k.useState)(!1),i=Object(S.a)(a,2),o=i[0],s=i[1];return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),size:"4xl",children:o?Object(c.jsx)(A,{onConfirm:function(){s(!1),n()}}):Object(c.jsx)(R,{onAuth:function(){return s(!0)},openRemindPasswordModal:r})})}
1,D=t(644),L=function(e){var n=e.openModal,t=Object(f.useGetThemeColors)(),r=Object(p.d)(t.white,t.black);return Object(c.jsx)(x.Button,{customColorScheme:x.CustomColorScheme.Green,m:"auto",minW:"330px",h:"70px",leftIcon:Object(c.jsx)(h.a,{color:r,icon:D.a}),onClick:n,id:"confirm-reservation-btn",children:Object(c.jsx)(l.a,{children:"Potwierd\u017a rezerwacj\u0119"})})},E=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose,a=Object(C.c)(),i=a.isOpen,o=a.onOpen,s=a.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(y.a,{onClose:s,isOpen:i}),Object(c.jsx)(T,{isOpen:n,openRemindPasswordModal:o,onClose:r}),Object(c.jsx)(L,{openModal:t})]})},N=t(235),U=t(16),W=t.n(U),B=t(31),G=t(573),H=t(619),Z=t(599),K=t(48),V=function(e,n){return Object(K.a)().post("/e-reservation/".concat(n,"/appointment/book"),e)},J=t(95),Q=t(44),X=t(50),Y=t(55),$=t(123),_=t(239),ee=t(241),ne=t(620),te=function(e){var n=Object(ee.a)(),t={email:$.a.required(Y.a.requiredField),"recaptcha-response":n,termAccept:_.a.required(Y.a.requiredField)};return e.forEach((function(e){t[e.name]=Object(ne.a)(e)})),Object(X.b)().shape(t)},ce=t(75),re=function(e){var n=e.onSubmitSuccess,t=e.formFields,r=Object(i.i)().appointmentId,a=function(){var e=Object(s.a)().friendlyUrl;return Object(Z.a)((function(n){return V(n,e)}))}(),o=Object(I.b)(),j=o.personalDataAgreement,l=o.regulationsAgreement,d=function(){var e=Object(J.a)().addNotification,n="Rezerwacja terminu";return{showSuccessNotification:function(){return e({title:n,description:"Pomy\u015blnie zarezerwowano wizyt\u0119",type:"success"})},showErrorNotification:function(t){return e({title:n,description:t||"Nie uda\u0142o si\u0119 zarezerwowa\u0107 wizyty",type:"error"})}}}(),u=d.showSuccessNotification,b=d.showErrorNotification,O=function(){var e=Object(B.a)(W.a.mark((function e(t,c){var i;return W.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=new FormData,Object.keys(t).forEach((function(e){i.append(e,t[e]?t[e].toString():"")})),i.append("appointmentId",r),e.next=6,a.mutateAsync(i);case 6:n(),u(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),400===e.t0.status&&c(e.t0.response.msg),b(e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n,t){return e.apply(this,arguments)}}();return Object(c.jsx)(Q.Form,{onSubmit:O,defaultValues:{email:"",recaptcha:"",termAccept:0},validationSchema:te(t),resetOnSubmit:!1,children:function(){return Object(c.jsxs)(F.c,{spacing:4,alignItems:"unset",children:[Object(c.jsx)(Q.TextField,{label:"Adres email",name:"email"}),t.map((function(e){return Object(c.jsx)(H.a,{field:e})})),Object(c.jsx)(Q.RecaptchaField,{mt:4,name:"recaptcha-response"}),Object(c.jsx)(ce.a,{html:l}),Object(c.jsx)(Q.CheckBoxField,{mt:2,name:"termAccept",label:Object(c.jsx)(ce.a,{html:j})}),Object(c.jsx)(G.a,{mt:4,children:Object(c.jsx)(Q.SpinnerButton,{w:"250px",mx:"auto",id:"confirm-guest-reservation-btn"})})]})}})},ae=function(e){var n=e.onClose,t=e.isOpen,a=Object(i.i)().queueId,o=Object(s.a)().friendlyUrl,j=Object(N.a)(a,o).data,d=Object(k.useState)(!1),u=Object(S.a)(d,2),b=u[0],O=u[1];return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),size:"xl",children:b?Object(c.jsx)(A,{onConfirm:function(){O(!1),n()}}):Object(c.jsxs)(F.c,{spacing:4,margin:"auto",children:[Object(c.jsx)(l.a,{children:"W celu potwierdzenia rezerwacji nale\u017cy poda\u0107 adres email, na kt\xf3ry zostanie wys\u0142ana wiadomo\u015b\u0107"}),Object(c.jsx)(r.a,{w:"100%",children:Object(c.jsx)(re,{onSubmitSuccess:function(){return O(!0)},formFields:(null===j||void 0===j?void 0:j.formFields)||[]})})]})})},ie=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(ae,{onClose:r,isOpen:n}),Object(c.jsx)(L,{openModal:t})]})},oe=t(124),se=function(e){var n=e.onClose,t=e.isOpen;return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),children:Object(c.jsxs)(F.c,{spacing:4,margin:"auto",children:[Object(c.jsx)(l.a,{children:"W celu potwierdzenia rezerwacji nale\u017cy poprawnie zalogowa\u0107 si\u0119 poprzez SSO a nast\u0119pnie po powrocie na E-rezerwacj\u0119 ju\u017c jako zalogowany u\u017cytkownik potwierdzi\u0107 dan\u0105 wizyt\u
10119"}),Object(c.jsx)(oe.a,{})]})})},je=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(se,{isOpen:n,onClose:r}),Object(c.jsx)(L,{openModal:t})]})},le=function(e){var n=e.onConfirm,t=e.onClose,o=e.openRemindPasswordModal,j=Object(i.i)(),d=j.queueId,u=j.appointmentId,b=Object(s.a)().friendlyUrl,O=Object(N.a)(d,b).data;return Object(c.jsxs)(P.e,{variant:"enclosed",children:[Object(c.jsx)(P.b,{children:Object(c.jsxs)(a.a,{columns:3,w:"100%",children:[Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Zaloguj si\u0119"})}),Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Zarejestruj si\u0119"})}),Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Kontynuuj jako go\u015b\u0107"})})]})}),Object(c.jsxs)(P.d,{alignContent:"center",alignItems:"center",children:[Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Logowanie"}),Object(c.jsx)(r.a,{w:{base:"100%",md:"50%"},margin:"auto",children:Object(c.jsx)(q.a,{onCloseModal:t,openRemindPasswordModal:o})})]}),Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Rejestracja"}),Object(c.jsx)(r.a,{w:{base:"100%",md:"50%"},margin:"auto",children:Object(c.jsx)(M.a,{onCloseModal:t,appointmentId:u})})]}),Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Potwierdzenie wizyty jako niezalogowany"}),Object(c.jsxs)(F.c,{w:{base:"100%",md:"50%"},spacing:4,margin:"auto",children:[Object(c.jsx)(l.a,{children:"W celu potwierdzenia rezerwacji nale\u017cy poda\u0107 adres email, na kt\xf3ry zostanie wys\u0142ana wiadomo\u015b\u0107"}),Object(c.jsx)(r.a,{w:"100%",children:Object(c.jsx)(re,{onSubmitSuccess:n,formFields:(null===O||void 0===O?void 0:O.formFields)||[]})})]})]})]})]})},de=function(e){var n=e.onClose,t=e.isOpen,r=e.openRemindPasswordModal,a=Object(k.useState)(!1),i=Object(S.a)(a,2),o=i[0],s=i[1];return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),size:"4xl",children:o?Object(c.jsx)(A,{onConfirm:function(){s(!1),n()}}):Object(c.jsx)(le,{onConfirm:function(){return s(!0)},onClose:n,openRemindPasswordModal:r})})},ue=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose,a=Object(C.c)(),i=a.isOpen,o=a.onOpen,s=a.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(y.a,{onClose:s,isOpen:i}),Object(c.jsx)(de,{onClose:r,isOpen:n,openRemindPasswordModal:o}),Object(c.jsx)(L,{openModal:t})]})},be=function(e){var n=e.formFields,t=e.onSubmitSuccess;return Object(c.jsxs)(P.e,{variant:"enclosed",children:[Object(c.jsx)(P.b,{children:Object(c.jsxs)(a.a,{columns:2,w:"100%",children:[Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Zaloguj si\u0119 przez Sso"})}),Object(c.jsx)(P.a,{children:Object(c.jsx)(l.a,{children:"Kontynuuj jako go\u015b\u0107"})})]})}),Object(c.jsxs)(P.d,{alignContent:"center",alignItems:"center",children:[Object(c.jsx)(P.c,{children:Object(c.jsxs)(F.c,{spacing:4,children:[Object(c.jsx)(l.a,{children:"W celu potwierdzenia rezerwacji nale\u017cy poprawnie zalogowa\u0107 si\u0119 poprzez SSO a nast\u0119pnie po powrocie na E-rezerwacj\u0119 ju\u017c jako zalogowany u\u017cytkownik potwierdzi\u0107 dan\u0105 wizyt\u0119"}),Object(c.jsx)(oe.a,{})]})}),Object(c.jsxs)(P.c,{children:[Object(c.jsx)(l.a,{textAlign:"center",fontSize:"2xl",mb:4,children:"Potwierdzenie wizyty jako niezalogowany"}),Object(c.jsxs)(F.c,{w:{base:"100%",md:"50%"},spacing:4,margin:"auto",children:[Object(c.jsx)(l.a,{children:"W celu potwierdzenia rezerwacji nale\u017cy poda\u0107 adres email, na kt\xf3ry zostanie wys\u0142ana wiadomo\u015b\u0107"}),Object(c.jsx)(r.a,{w:"100%",children:Object(c.jsx)(re,{onSubmitSuccess:t,formFields:n})})]})]})]})]})},Oe=function(e){var n=e.onClose,t=e.isOpen,r=Object(i.i)().queueId,a=Object(s.a)().friendlyUrl,o=Object(N.a)(r,a).data,j=Object(k.useState)(!1),d=Object(S.a)(j,2),u=d[0],b=d[1];return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),size:"2xl",children:u?Object(c.jsx)(A,{onConfirm:function(){b(!1),n()}}):Object(c.jsx)(be,{onSubmitSuccess:function(){return b(!0)},formFields:(null===o||void 0===o?void 0:o.formFields)||[]})})},pe=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(Oe,{onClose:r,isOpen:n}
1),Object(c.jsx)(L,{openModal:t})]})},me=t(577),xe=t(68),he=function(e,n,t){return Object(K.a)().post("/e-reservation/user/".concat(n,"/appointment/").concat(t,"/confirm"),e)},fe=function(e,n){return e.map((function(e){return e.name})).concat("email").reduce((function(e,t){var c;return e[t]=null!==(c=n[t])&&void 0!==c?c:"",e}),{})},we=function(e){var n=e.onSubmitSuccess,t=e.appointmentId,r=e.formFields,a=e.user,i=Object(f.useGetThemeColors)(),o=Object(p.d)(i.white,i.black),s=function(){var e=Object(J.a)().addNotification,n="Potwierdzenie wizyty";return{showSuccessNotification:function(){return e({title:n,description:"Pomy\u015blnie zarezerwowano wizyt\u0119",type:"success"})},showErrorNotification:function(t){return e({title:n,description:t||"Nie uda\u0142o si\u0119 zarezerwowa\u0107 wizyty",type:"error"})}}}(),j=s.showSuccessNotification,d=s.showErrorNotification,u=function(e){var n={};return e.forEach((function(e){n[e.name]=Object(ne.a)(e)})),Object(X.b)().shape(n)}(r),b=function(e){var n=Object(xe.a)((function(e){return{userId:e.userId}})).userId;if(!n)throw new Error("UserId not found");return Object(Z.a)((function(t){return he(t,n,e)}))}(t),O=function(){var e=Object(B.a)(W.a.mark((function e(t,c){var r;return W.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new FormData,Object.keys(t).forEach((function(e){r.append(e,t[e]?t[e].toString():"")})),e.prev=2,e.next=5,b.mutateAsync(r);case 5:j(),n(),e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(2),400!==e.t0.status){e.next=15;break}return c(e.t0.response.msg),d(e.t0.message),e.abrupt("return");case 15:d();case 16:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}();return Object(c.jsx)(Q.Form,{onSubmit:O,defaultValues:fe(r,a),resetOnSubmit:!1,validationSchema:u,children:function(){return Object(c.jsxs)(F.c,{spacing:4,align:"stretch",children:[Object(c.jsx)(Q.TextField,{label:"Adres email",name:"email",isDisabled:!0}),r.map((function(e){return Object(c.jsx)(H.a,{field:e})})),Object(c.jsx)(F.c,{spacing:4,mt:8,children:Object(c.jsx)(Q.SpinnerButton,{id:"confirm-user-appointment-btn",btnTitle:Object(c.jsx)(l.a,{children:"Potwierd\u017a"}),leftIcon:Object(c.jsx)(h.a,{color:o,icon:me.c}),w:"250px"})})]})}})},ve=t(109),ze=function(e){var n=e.onClose,t=e.isOpen,a=Object(s.a)().friendlyUrl,o=Object(i.g)().push,j=Object(i.i)(),d=j.appointmentId,u=j.queueId,b=Object(N.a)(u,a).data,O=Object(ve.c)().data;return Object(c.jsx)(C.b,{isOpen:t,onClose:n,modalHeader:Object(c.jsx)(l.a,{children:"Potwierdzenie rezerwacji"}),children:Object(c.jsx)(r.a,{mt:4,children:Object(c.jsx)(we,{user:O,appointmentId:d,formFields:(null===b||void 0===b?void 0:b.formFields)||[],onSubmitSuccess:function(){n(),o("/e-rezerwacja/".concat(a))}})})})},ge=function(){var e=Object(C.c)(),n=e.isOpen,t=e.onOpen,r=e.onClose;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(ze,{isOpen:n,onClose:r}),Object(c.jsx)(L,{openModal:t})]})},ye=function(){var e=Object(v.a)();if(Object(g.a)())return Object(c.jsx)(ge,{});switch(e){case z.a.Local:case z.a.LocalAndSso:return Object(c.jsx)(E,{});case z.a.Guest:return Object(c.jsx)(ie,{});case z.a.Sso:return Object(c.jsx)(je,{});case z.a.LocalAndGuest:case z.a.LocalAndGuestAndSso:return Object(c.jsx)(ue,{});case z.a.GuestAndSso:return Object(c.jsx)(pe,{});default:return Object(c.jsx)(c.Fragment,{})}},Ce=function(){var e=Object(s.a)().friendlyUrl,n=Object(i.i)().appointmentId,t=Object(o.a)(n).data;return t?Object(c.jsxs)(r.a,{children:[Object(c.jsx)(j.a,{children:"Podsumowanie"}),Object(c.jsxs)(r.a,{mt:12,textAlign:"center",children:[Object(c.jsx)(l.a,{fontSize:"xl",fontWeight:"bold",children:"Dane rezerwacji"}),Object(c.jsx)(O.a,{appointment:t})]}),Object(c.jsxs)(a.a,{my:10,w:"70%",mx:"auto",minChildWidth:"330px",justifyContent:"center",spacing:4,children:[Object(c.jsx)(w,{}),Object(c.jsx)(ye,{})]}),Object(c.jsx)(d.a,{when:function(t){return!t.pathname.includes(n)&&t.pathname!=="/e-rezerwacja/".concat(e)}})]}):Object(c.jsx)(l.a,{children:"Nie znaleziono strony"})};n.default=function(){return Object(c.jsx)(u.a,{fallback:function(e){var n=e.error;if(n instanceof b.AjaxError&&404===n.status)return Object(c.jsx)(u.b,{children:Object(c.jsx)(l.a,{fontSize:32,children:n.message})});throw n},children:Object(c.jsx)(Ce,{})})}}}]);
2//# sourceMappingURL=19.1a6f5f56.chunk.js.map

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.