(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(49099)}])},6802:function(e,n,i){"use strict";var t=i(8100),l=i(97531),r=i(95044);n.Z=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"name",i=(0,r.Z)().locale,d=(0,t.ZP)("".concat(l.F,"/countries?locale=").concat(i,"&order_by=").concat(n),l._).data;return{countries:null!==(e=null===d||void 0===d?void 0:d.data)&&void 0!==e?e:[]}}},56775:function(e,n,i){"use strict";var t=i(29815),l=i(85893),r=i(88078),d=i(53457),a=i(60856),s=i(69368),o=(i(67294),i(8100)),x=i(97531);n.Z=function(e){var n,i=e.values,c=void 0===i?[]:i,u=e.onChanged,h=e.except,p=void 0===h?null:h,Z=(0,o.ZP)("".concat(x.F,"/dorms"),x._),j=Z.data,m=Z.error,f=(Z.mutate,!j&&!m),v=null===j||void 0===j||null===(n=j.data)||void 0===n?void 0:n.filter((function(e){return!p||(null===e||void 0===e?void 0:e.id)!=p}));return f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{}),(0,l.jsx)(r.Z,{}),(0,l.jsx)(r.Z,{}),(0,l.jsx)(r.Z,{}),(0,l.jsx)(r.Z,{})]}):(0,l.jsx)(d.Z,{children:null===v||void 0===v?void 0:v.map((function(e){return(0,l.jsx)(a.Z,{control:(0,l.jsx)(s.Z,{name:e.name,value:e.id,checked:(null===c||void 0===c?void 0:c.includes(e.id))||(null===c||void 0===c?void 0:c.includes(e.id.toString())),onChange:function(n){e.id&&(n.target.checked?u((function(n){return(0,t.Z)(n).concat([e.id])})):u((function(n){return null===n||void 0===n?void 0:n.filter((function(n){return n!=e.id}))})))}}),label:e.name},e.id)}))})}},49099:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return Q}});var t=i(47568),l=i(26042),r=i(69396),d=i(828),a=i(29815),s=i(97582),o=i(85893),x=i(15861),c=i(11057),u=i(12963),h=i(61903),p=i(79717),Z=i(60856),j=i(36872),m=i(18360),f=i(49756),v=i(53457),g=i(69368),y=i(89609),b=i(67294),w=i(43471),k=i(41664),_=i.n(k),C=i(9008),S=i.n(C),z=i(56775),B=i(8100),W=i(97531),T=i(64666),I=i(37645),O=i(6514),D=i(31425),P=i(95044),A=i(34685),F=function(e){var n,i=e.onAccepted,t=e.onClosed,l=(0,P.Z)().locale,r=(0,B.ZP)("".concat(W.F,"/consentClauses"),W._).data,d=(null!==(n=null===r||void 0===r?void 0:r.data)&&void 0!==n?n:[]).find((function(e){return"gdpr_modal"===e.type})),a=d?"en"===l?d.text_en:d.text_pl:null;return(0,o.jsxs)(T.Z,{open:!0,onClose:t,children:[(0,o.jsx)(I.Z,{children:(0,o.jsxs)(y.Z,{display:"flex",alignItems:"center",borderBottom:"1px solid #ddd",paddingBottom:1,children:[(0,o.jsx)(y.Z,{flex:1,children:(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(l,"Obowi\u0105zek informacyjny do wniosku o przyznanie miejsca w domu studenckim")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(c.Z,{onClick:t,variant:"text",children:(0,o.jsx)(x.Z,{variant:"h3",sx:{cursor:"pointer"},children:"\xd7"})})})]})}),(0,o.jsx)(O.Z,{children:a?a.split("\n").map((function(e,n){return(0,o.jsx)(x.Z,{sx:{marginBottom:""===e?"0.5em":0},children:e},n)})):(0,o.jsx)(x.Z,{children:(0,A.t)(l,"\u0141adowanie...")})}),(0,o.jsx)(D.Z,{sx:{textAlign:"center"},children:(0,o.jsxs)(y.Z,{sx:{display:"flex"},children:[(0,o.jsx)(y.Z,{flex:1}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsx)(c.Z,{variant:"outlined",fullWidth:!0,sx:{padding:"0 40px",margin:{md:"0 5px",xs:"0 5px 10px"}},onClick:t,children:(0,A.t)(l,"Anuluj")}),(0,o.jsx)(c.Z,{variant:"contained",fullWidth:!0,sx:{padding:"0 10px",margin:"0 5px",minWidth:"250px"},onClick:function(){return i()},children:(0,A.t)(l,"Wyra\u017cam zgod\u0119")})]}),(0,o.jsx)(y.Z,{flex:1})]})})]})},E=i(35544),N=i(80251),R=i(25934),M=i(60194),K=i(5152),H=i.n(K),J=i(6802),L=i(32912),U=i(91456),G=i(86501),X=H()((function(){return Promise.all([i.e(9269),i.e(4078)]).then(i.bind(i,34078))}),{loadableGenerated:{webpack:function(){return[34078]}},ssr:!1}),Q=function(){var e,n,i=(0,d.Z)(b.useState(null),2),t=i[0],l=i[1],r=(0,d.Z)(b.useState(null),2),a=r[0],s=r[1],h=(0,d.Z)(b.useState(!1),2),p=h[0],Z=h[1],j=(0,d.Z)(b.useState([]),2),m=j[0],f=j[1],v=(0,B.ZP)("".concat(W.F,"/recruitmentDorms"),W._),g=v.data,k=(v.error,v.mutate,null===m||void 0===m||m.map((function(e){return null===e||void 0===e?void 0:e.id})),(null!==(e=null===g||void 0===g?void 0:g.data)&&void 0!==e?e:[]).filter((function(e){return 0==m.length||m.includes(null===e||void 0===e?void 0:e.id)}))),C=b.useRef(null),T=(0,d.Z)(b.useState(null),2),I=T[0],O=T[1],D=(0,P.Z)().locale,E=(0,B.ZP)("".concat(W.F,"/currentEnrollment"),W._).data,N=null===E||void 0===E?void 0:E.data;return b.useEffect((function(){window.scrollTo({top:0,behavior:"auto"})}),[t,p,a]),p?(0,o.jsxs)(w.Z,{bg:!0,children:[(0,o.jsx)(S(),{children:(0,o.jsx)("title",{children:(0,A.t)(D,"Akademiki")})}),(0,o.jsx)(y.Z,{sx:{minHeight:"100%",height:"100%"},children:(0,o.jsxs)(y.Z,{sx:{height:"100%",maxWidth:"1066px",margin:"0 auto",padding:{md:"50px 100px"},display:{md:"flex"},alignItems:"center"},children:[(0,o.jsx)(y.Z,{flex:1}),(0,o.jsxs)(y.Z,{sx:{backgroundColor:"white",maxWidth:"700px",padding:"25px",boxShadow:"0 3px 8px 0px rgba(18, 33, 54, 0.1)",borderRadius:"4px",textAlign:"center"},children:[(0,o.jsx)(x.Z,{variant:"h2",children:(0,A.t)(D,"WNIOSEK ZOSTA\u0141 Z\u0141O\u017bONY")}),(0,o.jsx)(y.Z,{height:"50px"}),(0,o.jsx)(x.Z,{children:(0,A.t)(D,"Dzi\u0119kujemy za z\u0142o\u017cenie wniosku o przyznanie miejsca w domu studenckim.")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(x.Z,{children:[(0,A.t)(D,"Tw\xf3j wniosek zostanie rozpatrzony w przeci\u0105gu"),"\xa0",(0,o.jsx)("strong",{children:(0,A.t)(D,"30 dni roboczych")}),"."]}),(0,o.jsx)(x.Z,{children:(0,A.t)(D,"Zostaniesz powiadomiony o pozytywnej lub negatywnej decyzji przyznania miejsca drog\u0105 mailow\u0105.")}),(0,o.jsx)(y.Z,{height:"50px",sx:{borderBottom:"1px solid #eee",marginBottom:"20px"}}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(c.Z,{variant:"outlined",onClick:function(e){e.preventDefault(),Z(!1),l(!1),s(!1)},children:(0,A.t)(D,"Powr\xf3t do strony g\u0142\xf3wnej")})})]}),(0,o.jsx)(y.Z,{flex:1})]})})]}):a?(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(S(),{children:(0,o.jsx)("title",{children:(0,A.t)(D,"Akademiki")})}),(0,o.jsx)(V,{dorm:a,onCancel:function(){return s(null)},onSuccess:function(){return Z(!0)}})]}):(0,o.jsxs)(w.Z,{children:[(0,o.jsxs)(S(),{children:[(0,o.jsx)("title",{children:(0,A.t)(D,"Akademiki")}),(0,o.jsx)("link",{rel:"stylesheet",href:"https://unpkg.com/leaflet@1.8.0/dist/leaflet.css",integrity:"sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==",crossOrigin:""})]}),t&&(0,o.jsx)(F,{onClosed:function(){l(null)},onAccepted:function(){s(t),l(null)}}),(0,o.jsx)(y.Z,{sx:{backgroundColor:"white"},children:(0,o.jsx)(y.Z,{sx:{maxWidth:"1226px",margin:"0 auto",padding:"8px 0"},children:(0,o.jsxs)(u.Z,{children:[(0,o.jsx)(_(),{href:"/",children:(0,A.t)(D,"Strona g\u0142\xf3wna")}),(0,o.jsx)(x.Z,{fontSize:"14px",children:(0,A.t)(D,"Wyniki wyszukiwania")})]})})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(X,{selected:t,entries:k,mapRef:C,selectedMarker:I})}),(0,o.jsx)(y.Z,{sx:{background:"#F8F9FA"},children:(0,o.jsxs)(y.Z,{sx:{padding:{md:"32px",xs:"10px"},display:{md:"flex"},maxWidth:"1226px",margin:"0 auto"},children:[(0,o.jsx)(y.Z,{sx:{backgroundColor:"white",borderRadius:"4px",padding:{xs:"10px",md:"24px"},width:{md:"365px"}},children:(0,o.jsxs)(y.Z,{sx:{paddingBottom:"8px",marginBottom:"10px",marginTop:"40px"},children:[(0,o.jsx)(x.Z,{variant:"h4",sx:{paddingBottom:"20px",borderBottom:"1px solid #eee"},children:(0,A.t)(D,"Opcje zaawansowane")}),(0,o.jsx)(y.Z,{height:"16px"}),(0,o.jsx)(x.Z,{fontWeight:"bold",fontSize:"12px",children:(0,A.t)(D,"Dost\u0119pne akademiki")}),(0,o.jsx)(z.Z,{values:m,onChanged:f})]})}),(0,o.jsx)(y.Z,{width:"16px"}),(0,o.jsx)(y.Z,{sx:{flex:1},children:(0,o.jsx)(y.Z,{sx:{backgroundColor:"white",borderRadius:"4px",paddingBottom:"32px"},children:(0,o.jsx)(y.Z,{sx:{padding:{xs:"10px",md:"24px"}},children:N?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.Z,{variant:"h4",sx:{borderBottom:"1px solid #eee",paddingBottom:"16px"},children:(0,A.t)(D,"Obecnie prowadzimy rekrutacje do nast\u0119puj\u0105cych akademik\xf3w")}),(0,o.jsx)(y.Z,{height:"16px"}),null===k||void 0===k?void 0:k.map((function(e){return(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"},padding:"24px 0",backgroundColor:"white",marginBottom:"20px",borderBottom:"1px solid #eee"},children:[(0,o.jsx)(y.Z,{children:(null===e||void 0===e?void 0:e.image)?(0,o.jsx)("img",{src:e.image,width:"160",height:"160",alt:"",style:{borderRadius:"4px"}}):(0,o.jsx)("img",{src:"/background.png",width:160,height:160,style:{borderRadius:"4px"},alt:""})}),(0,o.jsx)(y.Z,{flex:1,sx:{margin:{md:"0 20px"}},children:(0,o.jsx)(y.Z,{sx:{},children:(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{flex:1,children:[(0,o.jsx)(x.Z,{fontSize:"18px",fontWeight:600,color:"#535353",children:null!==(n=e.name)&&void 0!==n?n:"-"}),(0,o.jsx)(y.Z,{height:"10px"}),(0,o.jsx)(x.Z,{variant:"body1",children:null===e||void 0===e?void 0:e.street}),(0,o.jsxs)(x.Z,{variant:"body1",children:[null===e||void 0===e?void 0:e.postcode,"\xa0",null===e||void 0===e?void 0:e.city]}),(0,o.jsx)(y.Z,{height:"10px"}),(0,o.jsxs)(y.Z,{display:"flex",children:[(0,o.jsx)("a",{href:"#",children:(0,o.jsx)(x.Z,{fontSize:"14px",fontWeight:600,color:"#2699FB",sx:{textDecoration:"none"},children:(0,o.jsx)("a",{href:"#",onClick:function(){var n=null===e||void 0===e?void 0:e.lat,i=null===e||void 0===e?void 0:e.lng;if(n&&i){var t=C.current;t&&(null===t||void 0===t||t.flyTo([n,i]),O(null===e||void 0===e?void 0:e.id))}},children:(0,A.t)(D,"Poka\u017c na mapie")})})}),(0,o.jsx)(y.Z,{width:"10px"}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"body1",children:(0,A.t)(D,"10 min do centrum")})})]})]}),(0,o.jsx)(y.Z,{sx:{paddingTop:{xs:"20px",md:0}},children:(0,o.jsx)(c.Z,{variant:"outlined",sx:{borderRadius:"4px",width:"180px"},onClick:function(){return l(e)},children:(0,A.t)(D,"Wybierz")})})]})})})]},null===e||void 0===e?void 0:e.id)}))]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.Z,{variant:"h4",sx:{borderBottom:"1px solid #eee",paddingBottom:"16px"},children:(0,A.t)(D,"Obecnie nie prowadzimy rekrutacji.")}),(0,o.jsx)(y.Z,{height:"16px"})]})})})})]})})]})},V=function(e){var n,i,w,k,_=e.dorm,C=e.onCancel,S=e.onSuccess,T=(0,P.Z)().locale,I=(0,d.Z)(b.useState(!1),2),O=I[0],D=I[1],F=(0,d.Z)(b.useState({}),2),K=F[0],H=F[1],X=(0,d.Z)(b.useState([]),2),Q=X[0],V=X[1],q=(0,d.Z)(b.useState([]),2),$=q[0],ee=q[1],ne=(0,d.Z)(b.useState(""),2),ie=ne[0],te=ne[1],le=(0,d.Z)(b.useState(""),2),re=le[0],de=le[1],ae=(0,d.Z)(b.useState(""),2),se=ae[0],oe=ae[1],xe=(0,d.Z)(b.useState(null),2),ce=xe[0],ue=xe[1],he=(0,d.Z)(b.useState("id"),2),pe=he[0],Ze=he[1],je=(0,d.Z)(b.useState(""),2),me=je[0],fe=je[1],ve=(0,d.Z)(b.useState(null),2),ge=ve[0],ye=ve[1],be=(0,d.Z)(b.useState("pl"),2),we=be[0],ke=be[1],_e=(0,d.Z)(b.useState("pl"),2),Ce=_e[0],Se=_e[1],ze=(0,d.Z)(b.useState(null),2),Be=ze[0],We=ze[1],Te=(0,d.Z)(b.useState(""),2),Ie=Te[0],Oe=Te[1],De=(0,d.Z)(b.useState(""),2),Pe=De[0],Ae=De[1],Fe=(0,d.Z)(b.useState(!1),2),Ee=Fe[0],Ne=Fe[1],Re=(0,d.Z)(b.useState(""),2),Me=Re[0],Ke=Re[1],He=(0,d.Z)(b.useState(""),2),Je=He[0],Le=He[1],Ue=(0,d.Z)(b.useState(""),2),Ge=Ue[0],Xe=Ue[1],Qe=(0,d.Z)(b.useState(""),2),Ve=Qe[0],Ye=Qe[1],qe=(0,d.Z)(b.useState(""),2),$e=qe[0],en=qe[1],nn=(0,d.Z)(b.useState(null),2),tn=nn[0],ln=nn[1],rn=(0,d.Z)(b.useState(null),2),dn=rn[0],an=rn[1],sn=(0,d.Z)(b.useState(""),2),on=sn[0],xn=sn[1],cn=(0,d.Z)(b.useState(0),2),un=cn[0],hn=cn[1],pn=(0,d.Z)(b.useState(""),2),Zn=pn[0],jn=pn[1],mn=(0,d.Z)(b.useState(""),2),fn=mn[0],vn=mn[1],gn=(0,d.Z)(b.useState(null),2),yn=gn[0],bn=gn[1],wn=(0,d.Z)(b.useState(""),2),kn=wn[0],_n=wn[1],Cn=(0,d.Z)(b.useState(""),2),Sn=Cn[0],zn=Cn[1],Bn=(0,d.Z)(b.useState([]),2),Wn=Bn[0],Tn=Bn[1],In=(0,d.Z)(b.useState("studentstatus"),2),On=In[0],Dn=In[1],Pn=(0,d.Z)(b.useState(!1),2),An=Pn[0],Fn=Pn[1],En=(0,d.Z)(b.useState(!1),2),Nn=En[0],Rn=En[1],Mn=(0,d.Z)(b.useState(!1),2),Kn=Mn[0],Hn=Mn[1],Jn=(0,d.Z)(b.useState(!1),2),Ln=Jn[0],Un=Jn[1],Gn=(0,d.Z)(b.useState(!1),2),Xn=Gn[0],Qn=Gn[1],Vn=(0,B.ZP)("".concat(W.F,"/consentClauses"),W._).data,Yn=null!==(k=null===Vn||void 0===Vn?void 0:Vn.data)&&void 0!==k?k:[],qn=function(e){var n=Yn.find((function(n){return n.type===e}));return n?"en"===T?n.text_en:n.text_pl:""},$n=function(e){var n,i=Yn.find((function(n){return n.type===e}));return null!==(n=null===i||void 0===i?void 0:i.text_pl)&&void 0!==n?n:""},ei=(0,d.Z)(b.useState(""),2),ni=ei[0],ii=ei[1],ti=(0,d.Z)(b.useState(null),2),li=ti[0],ri=ti[1],di=(0,d.Z)(b.useState(null),2),ai=di[0],si=di[1],oi=(0,J.Z)("en"==T?"en":"name").countries,xi=(0,J.Z)("en"==T?"residency_en":"residency").countries,ci=(0,B.ZP)("".concat(W.F,"/agreements"),W._).data,ui=(0,B.ZP)("".concat(W.F,"/currentEnrollment"),W._).data,hi=null===ui||void 0===ui?void 0:ui.data;b.useEffect((function(){hi&&(ri((null===hi||void 0===hi?void 0:hi.acc_date_from)?new Date(null===hi||void 0===hi?void 0:hi.acc_date_from):null),si((null===hi||void 0===hi?void 0:hi.acc_date_to)?new Date(null===hi||void 0===hi?void 0:hi.acc_date_to):null))}),[hi]);var pi,Zi,ji,mi,fi,vi,gi,yi,bi=function(){var e=(0,t.Z)((function(){var e,n,i,t;return(0,s.__generator)(this,(function(l){switch(l.label){case 0:if(D(!0),(e=new FormData).append("dorm_id",_.id),e.append("first_name",ie),e.append("last_name",re),e.append("pesel",se),ce)try{e.append("birth",(0,L.Z)(ce,"yyyy-MM-dd"))}catch(r){console.error(r)}if(e.append("document_type",pe),e.append("document_number",me),ge)try{e.append("document_due",(0,L.Z)(ge,"yyyy-MM-dd"))}catch(d){console.error(d)}if(e.append("residency",Ce),e.append("gender",Be),e.append("email",Ie),e.append("phone",Pe),e.append("disability",Ee?"1":"0"),e.append("country",we),e.append("city",Me),e.append("postcode",Ge),e.append("street",Je),e.append("apartment",Ve),e.append("building",$e),e.append("album",on),un>0&&(e.append("year",tn?null===tn||void 0===tn?void 0:tn.toString():null),e.append("degree_type",dn),e.append("school",un),e.append("agreement_id",un),e.append("department",Zn),e.append("degree",fn),e.append("degree_form",yn),e.append("programme",kn)),e.append("comments",Sn),e.append("rules_agreement",An?"1":"0"),e.append("rules_clause_text",$n("rules")),e.append("responsibility_agreement",Nn?"1":"0"),e.append("responsibility_clause_text",$n("responsibility")),e.append("valid_agreement",Kn?"1":"0"),e.append("valid_clause_text",$n("valid")),e.append("data_accuracy_agreement",Ln?"1":"0"),e.append("data_accuracy_clause_text",$n("data_accuracy")),e.append("info_clause_agreement",Xn?"1":"0"),e.append("info_clause_clause_text",$n("info_clause")),e.append("account",ni),li)try{e.append("date_from",(0,L.Z)(li,"yyyy-MM-dd"))}catch(a){console.error(a)}if(ai)try{e.append("date_to",(0,L.Z)(ai,"yyyy-MM-dd"))}catch(s){console.error(s)}return Q.forEach((function(n){e.append("dorms[]",n.toString())})),$.forEach((function(n){e.append("types[]",n)})),Wn.forEach((function(n){e.append("files[]",n.file),e.append("filetypes[]",n.type)})),[4,fetch("".concat(W.F,"/applications"),{method:"POST",headers:{Accept:"application/json"},body:e})];case 1:return n=l.sent(),D(!1),422!=n.status?[3,3]:[4,n.json()];case 2:return i=l.sent(),H(null!==(t=null===i||void 0===i?void 0:i.errors)&&void 0!==t?t:{}),[2];case 3:return n.ok?(S(),[2]):(G.ZP.error((0,A.t)(T,"Wyst\u0105pi\u0142 b\u0142\u0105d. Prosz\u0119 spr\xf3bowa\u0107 ponownie p\xf3\u017aniej.")),[2])}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsx)(y.Z,{sx:{padding:"20px"},children:(0,o.jsxs)(y.Z,{sx:{backgroundColor:"white"},children:[(0,o.jsxs)(y.Z,{sx:{maxWidth:"1226px",margin:"0 auto",padding:"8px 0"},children:[(0,o.jsxs)(u.Z,{children:[(0,o.jsx)(c.Z,{variant:"text",onClick:function(){C()},children:(0,A.t)(T,"Strona g\u0142\xf3wna")}),(0,o.jsx)(x.Z,{fontSize:"14px",children:(0,A.t)(T,"Wyniki wyszukiwania")})]}),(0,o.jsx)(y.Z,{height:"40px"}),(0,o.jsx)(y.Z,{sx:{borderBottom:"1px solid #eee",paddingBottom:"10px"},children:(0,o.jsx)(x.Z,{variant:"h4",children:(0,A.t)(T,"Wniosek o przyznanie miejsca w akademiku")})}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Preferowany akademik")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{flex:1,children:[(0,o.jsx)(x.Z,{fontSize:"18px",children:null!==(pi=null===_||void 0===_?void 0:_.name)&&void 0!==pi?pi:"-"}),(0,o.jsx)(x.Z,{children:null!==(Zi=null===_||void 0===_?void 0:_.street)&&void 0!==Zi?Zi:"-"}),(0,o.jsxs)(x.Z,{children:[null!==(ji=null===_||void 0===_?void 0:_.postcode)&&void 0!==ji?ji:"-"," ",null!==(mi=null===_||void 0===_?void 0:_.city)&&void 0!==mi?mi:"-"]})]}),(0,o.jsxs)(y.Z,{sx:{flex:"1",display:{md:"flex"},marginTop:{xs:"20px",md:0}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Data zakwaterowania")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(U.Z,{value:li,onChange:function(e){try{ri(e)}catch(n){ri(null)}},renderInput:function(e){var n;return(0,o.jsx)(h.Z,(0,r.Z)((0,l.Z)({},e),{disabled:O,error:"date_from"in K,helperText:null===(n=K.date_from)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Data wymeldowania")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(U.Z,{value:ai,onChange:function(e){try{si(e)}catch(n){si(null)}},renderInput:function(e){var n;return(0,o.jsx)(h.Z,(0,r.Z)((0,l.Z)({},e),{disabled:O,error:"date_to"in K,helperText:null===(n=K.date_to)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,o.jsx)(y.Z,{flex:1})]})]})]}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Opcjonalne akademiki")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsx)(z.Z,{values:Q,onChanged:function(e){return V(e)},except:_.id})]}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Preferowany rodzaj pokoju")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(p.Z,{children:[(0,o.jsx)(Z.Z,{control:(0,o.jsx)(j.Z,{value:"single",checked:$.includes("single"),onChange:function(e){ee((function(e){return["single"]}))}}),label:(0,A.t)(T,"1 osobowy")}),(0,o.jsx)(Z.Z,{control:(0,o.jsx)(j.Z,{value:"double",checked:$.includes("double"),onChange:function(e){ee((function(e){return["double"]}))}}),label:(0,A.t)(T,"2 osobowy")})]})]}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Dane osobowe")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Imi\u0119 / Imiona")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:ie,onChange:function(e){return te(e.target.value)},disabled:O,error:"first_name"in K,helperText:K.first_name})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Nazwisko")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:re,onChange:function(e){return de(e.target.value)},disabled:O,error:"last_name"in K,helperText:K.last_name})})]}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"PESEL")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:se,onChange:function(e){return oe(e.target.value)},disabled:O,error:"pesel"in K,helperText:K.pesel})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Data urodzenia")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(U.Z,{value:ce,onChange:function(e){try{ue(e)}catch(n){ue(null)}},renderInput:function(e){return(0,o.jsx)(h.Z,(0,r.Z)((0,l.Z)({},e),{disabled:O,error:"birth"in K,helperText:K.birth,fullWidth:!0}))}})})]}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Dokument to\u017csamo\u015bci")})}),(0,o.jsx)(y.Z,{children:(0,o.jsxs)(m.Z,{fullWidth:!0,value:pe,onChange:function(e){return Ze(e.target.value)},disabled:O,children:[(0,o.jsx)(f.Z,{value:"id",children:(0,A.t)(T,"Dow\xf3d osobisty")}),(0,o.jsx)(f.Z,{value:"residence",children:(0,A.t)(T,"Karta pobytu")}),(0,o.jsx)(f.Z,{value:"passport",children:(0,A.t)(T,"Paszport")}),(0,o.jsx)(f.Z,{value:"visa",children:(0,A.t)(T,"Wiza")})]})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Numer dokumentu")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:me,onChange:function(e){return fe(e.target.value)},disabled:O,error:"document_number"in K,helperText:K.document_number})})]}),(0,o.jsx)(y.Z,{flex:1})]}),["visa","residence","id"].includes(pe)&&(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Data wa\u017cno\u015bci dokumentu")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(U.Z,{value:ge,onChange:function(e){try{ye(e)}catch(n){ye(null)}},renderInput:function(e){var n;return(0,o.jsx)(h.Z,(0,r.Z)((0,l.Z)({},e),{disabled:O,error:"document_due"in K,helperText:null===(n=K.document_due)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{flex:1}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Obywatelstwo")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(m.Z,{fullWidth:!0,value:Ce,onChange:function(e){return Se(e.target.value)},disabled:O,children:null===(n=null===xi||void 0===xi?void 0:xi.filter((function(e){return!!(null===e||void 0===e?void 0:e.residency)})))||void 0===n?void 0:n.map((function(e){return(0,o.jsx)(f.Z,{value:e.code,children:null!==(fi=e.residency)&&void 0!==fi?fi:"-"},e.code)}))})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"P\u0142e\u0107")})}),(0,o.jsx)(y.Z,{children:(0,o.jsxs)(m.Z,{fullWidth:!0,value:Be,onChange:function(e){return We(e.target.value)},disabled:O,error:"gender"in K,children:[(0,o.jsx)(f.Z,{value:"male",children:(0,A.t)(T,"M\u0119\u017cczyzna")}),(0,o.jsx)(f.Z,{value:"female",children:(0,A.t)(T,"Kobieta")})]})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Adres email")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:Ie,onChange:function(e){return Oe(e.target.value)},disabled:O,error:"email"in K,helperText:K.email})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Telefon kontaktowy")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:Pe,onChange:function(e){return Ae(e.target.value)},disabled:O,error:"phone"in K,helperText:K.phone})})]}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1,children:(0,o.jsx)(v.Z,{children:(0,o.jsx)(Z.Z,{control:(0,o.jsx)(g.Z,{value:!0,checked:Ee,onChange:function(e){return Ne((function(e){return!e}))}}),label:(0,A.t)(T,"Jestem osob\u0105 z niepe\u0142nosprawno\u015bci\u0105")})})}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:2,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Rachunek bankowy wnioskodawcy")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:ni,onChange:function(e){return ii(e.target.value)},disabled:O,error:"account"in K,helperText:K.account})})]}),(0,o.jsx)(y.Z,{flex:1})]})]})]}),(0,o.jsxs)(y.Z,{sx:{maxWidth:"1226px",margin:"20px auto 0",padding:"8px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Adres zamieszkania")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Kraj")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(m.Z,{fullWidth:!0,value:we,onChange:function(e){return ke(e.target.value)},disabled:O,children:null===(i=null===oi||void 0===oi?void 0:oi.filter((function(e){return!!(null===e||void 0===e?void 0:e.name)})))||void 0===i?void 0:i.map((function(e){return(0,o.jsx)(f.Z,{value:e.code,children:null!==(vi=e.name)&&void 0!==vi?vi:"-"},e.code)}))})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Miasto")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:Me,onChange:function(e){return Ke(e.target.value)},disabled:O,error:"city"in K,helperText:K.city})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Kod pocztowy")})}),(0,o.jsx)(h.Z,{fullWidth:!0,value:Ge,onChange:function(e){return Xe(e.target.value)},disabled:O,error:"postcode"in K,helperText:K.postcode})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{flex:1})]}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Ulica")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:Je,onChange:function(e){return Le(e.target.value)},disabled:O,error:"street"in K,helperText:K.street})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Nr domu")})}),(0,o.jsx)(h.Z,{fullWidth:!0,value:$e,onChange:function(e){return en(e.target.value)},disabled:O,error:"building"in K,helperText:K.building})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Nr mieszkania")})}),(0,o.jsx)(h.Z,{fullWidth:!0,value:Ve,onChange:function(e){return Ye(e.target.value)},disabled:O,error:"apartment"in K,helperText:K.apartment})]})]}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Informacje o studencie")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Uczelnia")})}),(0,o.jsx)(y.Z,{children:(0,o.jsxs)(m.Z,{fullWidth:!0,value:un,onChange:function(e){return hn(e.target.value)},disabled:O,error:"school"in K,children:[(0,o.jsx)(f.Z,{value:0,children:(0,A.t)(T,"Osoby nieb\u0119d\u0105ce studentami")}),null===(w=null!==(gi=null===ci||void 0===ci?void 0:ci.data)&&void 0!==gi?gi:[])||void 0===w?void 0:w.map((function(e){return(0,o.jsx)(f.Z,{value:null===e||void 0===e?void 0:e.id,children:null===e||void 0===e?void 0:e.name},null===e||void 0===e?void 0:e.id)}))]})})]}),!!un&&(0,o.jsx)(y.Z,{width:"20px"}),!!un&&(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Obecny rok studi\xf3w")})}),(0,o.jsx)(y.Z,{children:(0,o.jsxs)(m.Z,{fullWidth:!0,value:tn,onChange:function(e){return ln(e.target.value)},disabled:O,children:[(0,o.jsx)(f.Z,{value:1,children:"1"}),(0,o.jsx)(f.Z,{value:2,children:"2"}),(0,o.jsx)(f.Z,{value:3,children:"3"}),(0,o.jsx)(f.Z,{value:4,children:"4"}),(0,o.jsx)(f.Z,{value:5,children:"5"})]})})]}),!!un&&(0,o.jsx)(y.Z,{width:"20px"}),!!un&&(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Rodzaj studi\xf3w")})}),(0,o.jsx)(y.Z,{children:(0,o.jsxs)(m.Z,{fullWidth:!0,value:dn,onChange:function(e){return an(e.target.value)},disabled:O,children:[(0,o.jsx)(f.Z,{value:"bachelor",children:(0,A.t)(T,"I STOPNIA")}),(0,o.jsx)(f.Z,{value:"2degree",children:(0,A.t)(T,"II STOPNIA")}),(0,o.jsx)(f.Z,{value:"master",children:(0,A.t)(T,"JEDNOLITE MAGISTERSKIE")}),(0,o.jsx)(f.Z,{value:"phd",children:(0,A.t)(T,"SZKO\u0141A DOKTORSKA")})]})})]})]}),!!un&&(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Nr albumu / legitymacji")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:on,onChange:function(e){return xn(e.target.value)},disabled:O,error:"album"in K,helperText:K.album})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Wydzia\u0142")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:Zn,onChange:function(e){return jn(e.target.value)},disabled:O,error:"department"in K,helperText:K.department})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Kierunek")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:fn,onChange:function(e){return vn(e.target.value)},disabled:O,error:"degree"in K,helperText:K.degree})})]})]}),!!un&&(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Forma studi\xf3w")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(m.Z,{fullWidth:!0,value:yn,onChange:function(e){return bn(e.target.value)},error:"degree_form"in K,disabled:O,children:(0,o.jsx)(f.Z,{value:"full-time",children:(0,A.t)(T,"Stacjonarne")})})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Program studi\xf3w")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{fullWidth:!0,value:kn,onChange:function(e){return _n(e.target.value)},disabled:O,error:"programme"in K,helperText:K.programme})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1})]}),(0,o.jsx)(y.Z,{sx:{display:{md:"flex"}},children:(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:3,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Uwagi (opcjonalnie)")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{multiline:!0,minRows:3,fullWidth:!0,value:Sn,onChange:function(e){return zn(e.target.value)},disabled:O,error:"comments"in K,helperText:K.comments})})]})})]}),(0,o.jsxs)(y.Z,{sx:{padding:"20px 0"},children:[(0,o.jsx)(x.Z,{variant:"h5",children:(0,A.t)(T,"Dokumenty")}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(x.Z,{variant:"caption",children:(0,A.t)(T,"Rodzaj za\u0142\u0105cznika")})}),(0,o.jsx)(y.Z,{children:(0,o.jsx)(m.Z,{fullWidth:!0,value:On,onChange:function(e){return Dn(e.target.value)},disabled:O,children:(0,o.jsx)(f.Z,{value:"studentstatus",children:(0,A.t)(T,"Za\u015bwiadczenie o statusie studenta")})})})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsxs)(y.Z,{marginBottom:"20px",flex:1,children:[(0,o.jsx)(y.Z,{height:"27px"}),(0,o.jsx)(c.Z,{startIcon:(0,o.jsx)(E.Z,{}),children:(0,o.jsx)("label",{htmlFor:"file",children:(0,A.t)(T,"Za\u0142\u0105cz plik")})}),(0,o.jsx)("input",{type:"file",name:"file",id:"file",style:{visibility:"hidden",height:0,width:0},onChange:function(e){Tn((function(n){return(0,a.Z)(n).concat([{id:(0,R.Z)(),type:On,file:e.target.files[0]}])}))}})]}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1})]}),(0,o.jsx)(y.Z,{sx:{display:{md:"flex"}},children:(0,o.jsx)(y.Z,{marginBottom:"20px",flex:3,children:null===Wn||void 0===Wn?void 0:Wn.map((function(e){var n;return(0,o.jsxs)(y.Z,{sx:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,o.jsx)(x.Z,{variant:"caption",children:Y(null===e||void 0===e?void 0:e.type,T)}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(x.Z,{color:"black",fontSize:"16px",children:null!==(yi=null===e||void 0===e||null===(n=e.file)||void 0===n?void 0:n.name)&&void 0!==yi?yi:"-"}),(0,o.jsx)(c.Z,{startIcon:(0,o.jsx)(N.Z,{}),variant:"text",sx:{color:"#B02A37"},onClick:function(){Tn((function(n){return null===n||void 0===n?void 0:n.filter((function(n){return(null===n||void 0===n?void 0:n.id)!=(null===e||void 0===e?void 0:e.id)}))}))}})]},null===e||void 0===e?void 0:e.id)}))})})]}),(0,o.jsx)(y.Z,{sx:{padding:"20px 0",paddingBottom:"30px",borderBottom:"1px solid #eee",marginBottom:"20px"},children:(0,o.jsx)(y.Z,{marginBottom:"20px",flex:1,children:(0,o.jsxs)(v.Z,{children:[qn("rules")&&(0,o.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,o.jsx)(g.Z,{value:!0,checked:An,onChange:function(e){return Fn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,o.jsx)(x.Z,{sx:{color:"rules_agreement"in K?"#DC3545":"inherit"},children:qn("rules")})}),qn("responsibility")&&(0,o.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,o.jsx)(g.Z,{value:!0,checked:Nn,onChange:function(e){return Rn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,o.jsx)(x.Z,{sx:{color:"responsibility_agreement"in K?"#DC3545":"inherit"},children:qn("responsibility")})}),qn("valid")&&(0,o.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,o.jsx)(g.Z,{value:!0,checked:Kn,onChange:function(e){return Hn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,o.jsx)(x.Z,{sx:{color:"valid_agreement"in K?"#DC3545":"inherit"},children:qn("valid")})}),qn("data_accuracy")&&(0,o.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,o.jsx)(g.Z,{value:!0,checked:Ln,onChange:function(e){return Un((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,o.jsx)(x.Z,{sx:{color:"data_accuracy_agreement"in K?"#DC3545":"inherit"},children:qn("data_accuracy")})}),qn("info_clause")&&(0,o.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,o.jsx)(g.Z,{value:!0,checked:Xn,onChange:function(e){return Qn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,o.jsx)(x.Z,{sx:{color:"info_clause_agreement"in K?"#DC3545":"inherit"},children:qn("info_clause")})})]})})}),(0,o.jsxs)(y.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"left",padding:"20px",backgroundColor:"#FFC107",color:"black",cursor:"pointer"},children:[(0,o.jsx)(M.Z,{}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(x.Z,{color:"black",children:(0,A.t)(T,"Zanim klikniesz Z\u0142\xf3\u017c wniosek, upewnij si\u0119, \u017ce wprowadzone dane s\u0105 poprawne i niezb\u0119dne dokumenty zosta\u0142y za\u0142\u0105czone do wniosku.")})]}),(0,o.jsx)(y.Z,{height:"20px"}),(0,o.jsxs)(y.Z,{sx:{display:"flex"},children:[(0,o.jsxs)(y.Z,{sx:{display:{md:"flex"}},children:[(0,o.jsx)(c.Z,{variant:"outlined",fullWidth:!0,sx:{padding:"0 60px",margin:{xs:"0 0 10px",md:0}},disabled:O,onClick:C,children:(0,A.t)(T,"Anuluj")}),(0,o.jsx)(y.Z,{width:"20px"}),(0,o.jsx)(c.Z,{variant:"contained",fullWidth:!0,sx:{padding:"0 10px",margin:"0 0px",minWidth:"300px"},disabled:O||!1,onClick:function(){return bi()},children:(0,A.t)(T,"Z\u0142\xf3\u017c wniosek")})]}),(0,o.jsx)(y.Z,{flex:1})]})]})]})})};function Y(e,n){switch(e){case"id":return(0,A.t)(n,"Skan dokumentu to\u017csamo\u015bci");case"residence":return(0,A.t)(n,"Zameldowanie")}}}},function(e){e.O(0,[9886,4195,1863,2979,469,4495,5021,4483,1456,1492,5768,3471,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]);