(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{45111:function(e,n,t){"use strict";var i=t(64836);n.Z=void 0;var r=i(t(64938)),o=t(85893);n.Z=(0,r.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},60194:function(e,n,t){"use strict";var i=t(64836);n.Z=void 0;var r=i(t(64938)),o=t(85893);n.Z=(0,r.default)((0,o.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined")},35544:function(e,n,t){"use strict";var i=t(88169),r=t(85893);n.Z=(0,i.Z)((0,r.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile")},12963:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var i=t(87462),r=t(63366),o=t(67294),l=t(90512),a=t(94780),d=t(82963),s=t(90948),x=t(28628),c=t(15861),u=t(2101),h=t(88169),p=t(85893),Z=(0,h.Z)((0,p.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),j=t(49990);const m=["slots","slotProps"],f=(0,s.ZP)(j.Z,{name:"MuiBreadcrumbCollapsed"})((({theme:e})=>(0,i.Z)({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,i.Z)({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":(0,i.Z)({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:(0,u._4)(e.palette.grey[200],.12)}:{backgroundColor:(0,u._4)(e.palette.grey[600],.12)})}))),g=(0,s.ZP)(Z)({width:24,height:16});var v=function(e){const{slots:n={},slotProps:t={}}=e,o=(0,r.Z)(e,m),l=e;return(0,p.jsx)("li",{children:(0,p.jsx)(f,(0,i.Z)({focusRipple:!0},o,{ownerState:l,children:(0,p.jsx)(g,(0,i.Z)({as:n.CollapsedIcon,ownerState:l},t.collapsedIcon))}))})},b=t(1588),y=t(34867);function w(e){return(0,y.ZP)("MuiBreadcrumbs",e)}var C=(0,b.Z)("MuiBreadcrumbs",["root","ol","li","separator"]);const k=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],S=(0,s.ZP)(c.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${C.li}`]:n.li},n.root]})({}),z=(0,s.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),B=(0,s.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function _(e,n,t,i){return e.reduce(((r,o,l)=>(l{const{classes:n}=e;return(0,a.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w,n)})(A),T=(0,d.Z)({elementType:h.CollapsedIcon,externalSlotProps:Z.collapsedIcon,ownerState:A}),M=o.useRef(null),F=o.Children.toArray(s).filter((e=>o.isValidElement(e))).map(((e,n)=>(0,p.jsx)("li",{className:W.li,children:e},`child-${n}`)));return(0,p.jsx)(S,(0,i.Z)({ref:n,component:u,color:"text.secondary",className:(0,l.Z)(W.root,c),ownerState:A},y,{children:(0,p.jsx)(z,{className:W.ol,ref:M,ownerState:A,children:_(C||g&&F.length<=g?F:(e=>f+m>=e.length?e:[...e.slice(0,f),(0,p.jsx)(v,{"aria-label":j,slots:{CollapsedIcon:h.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:()=>{B(!0);const e=M.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-m,e.length)])(F),W.separator,b,A)})}))}))},48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(98706)}])},6802:function(e,n,t){"use strict";var i=t(8100),r=t(97531),o=t(95044);n.Z=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"name",t=(0,o.Z)().locale,l=(0,i.ZP)("".concat(r.F,"/countries?locale=").concat(t,"&order_by=").concat(n),r._).data;return{countries:null!==(e=null===l||void 0===l?void 0:l.data)&&void 0!==e?e:[]}}},56775:function(e,n,t){"use strict";var i=t(29815),r=t(85893),o=t(88078),l=t(53457),a=t(60856),d=t(69368),s=(t(67294),t(8100)),x=t(97531);n.Z=function(e){var n,t=e.values,c=void 0===t?[]:t,u=e.onChanged,h=e.except,p=void 0===h?null:h,Z=(0,s.ZP)("".concat(x.F,"/dorms"),x._),j=Z.data,m=Z.error,f=(Z.mutate,!j&&!m),g=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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]}):(0,r.jsx)(l.Z,{children:null===g||void 0===g?void 0:g.map((function(e){return(0,r.jsx)(a.Z,{control:(0,r.jsx)(d.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,i.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)}))})}},98706:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ce}});var i=t(47568),r=t(26042),o=t(69396),l=t(828),a=t(29815),d=t(97582),s=t(85893),x=t(15861),c=t(11057),u=t(12963),h=t(61903),p=t(79717),Z=t(60856),j=t(36872),m=t(18360),f=t(49756),g=t(53457),v=t(69368),b=t(89609),y=t(67294),w=t(61730),C=t(42293),k=t(10155),S=t(15739),z=t(72096),B=t(43539),_=t(90948),A=t(41664),W=t.n(A),T=t(34685),M=t(95044),F=(0,_.ZP)("div")((function(e){e.theme;return{display:"flex",alignItems:"center",cursor:"pointer"}})),I=(0,_.ZP)("div")((function(e){e.theme;return{width:"1px",height:"32px",backgroundColor:"white",margin:"0 24px"}})),O=(0,_.ZP)("div")((function(e){e.theme;return{width:"1px",height:"32px",backgroundColor:"white",margin:"0 10px"}})),P=(0,_.ZP)("h1")((function(e){var n=e.theme;return(0,o.Z)((0,r.Z)({},n.typography.h1),{fontSize:"26px",fontWeight:300,padding:0,margin:0,color:"white"})})),D=(0,_.ZP)("h1")((function(e){var n=e.theme;return(0,o.Z)((0,r.Z)({},n.typography.h1),{fontSize:"20px",fontWeight:300,padding:0,margin:0,color:"white"})})),R=function(e){var n=e.compact,t=void 0!==n&&n,i=(0,M.Z)().locale;return(0,s.jsx)(W(),{href:"/",children:(0,s.jsxs)(F,{children:[(0,s.jsx)("img",{src:B.Z.src,alt:"LOGO",width:100,height:32}),t?(0,s.jsx)(O,{}):(0,s.jsx)(I,{}),t?(0,s.jsx)(D,{children:"Akademiki"}):(0,s.jsx)(P,{children:(0,T.t)(i,"Akademiki - dotyczy student\xf3w spoza Uwr")})]})})},E={src:"/_next/static/media/pl.624b0e1c.png",height:24,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEX////+/v6wAABMaXH++fn////MWVnWenradnb////OVVXTZmb67++7Cwv78PBYE+C+AAAADXRSTlP8HP0A56XxpaKi3+/++bj5gQAAAAlwSFlzAAALEwAACxMBAJqcGAAAADlJREFUeJwVxckRwDAMA7GlJN+m+y83E3xAqkFTogIosf5hUe/ee19xwrbjMB0R4Ym2I7xFavQ+lB8pagFZTeJ1XQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},N=t(45111),V=t(87462),L=t(63366),U=t(19923),K=t(10606);const H=["theme"];function J(e){let{theme:n}=e,t=(0,L.Z)(e,H);const i=n[K.Z];let r=i||n;return"function"!==typeof n&&(i&&!i.vars?r=(0,V.Z)({},i,{vars:null}):n&&!n.vars&&(r=(0,V.Z)({},n,{vars:null}))),(0,s.jsx)(U.Z,(0,V.Z)({},t,{themeId:i?K.Z:void 0,theme:r}))}var X=t(21265),G=t(94054);function $(){var e=(0,M.Z)(),n=e.locale,t=e.setLocale;return(0,s.jsx)(J,{theme:(0,X.Z)({components:{MuiSelect:{styleOverrides:{standard:{color:"white",borderBottom:"1px solid #ffffffaa"},icon:{fill:"white"}}}}}),children:(0,s.jsx)(G.Z,{variant:"standard",children:(0,s.jsxs)(m.Z,{value:n,onChange:function(e){t(e.target.value)},children:[(0,s.jsx)(f.Z,{value:"pl",children:"PL"}),(0,s.jsx)(f.Z,{value:"en",children:"EN"})]})})})}function Q(){return(0,s.jsx)("img",{src:"/ue.png",alt:"",style:{height:"60px",width:"auto",marginRight:"20px"}})}var Y=function(e){var n=e.user,t=(0,l.Z)(y.useState(!1),2),i=t[0],r=t[1],o=(0,w.Z)("(min-width: 1200px)"),a=((0,w.Z)("(min-width: 800px)"),(0,w.Z)("(max-width: 799px)"));return(0,s.jsxs)(C.Z,{position:"static",children:[(0,s.jsx)(k.Z,{variant:"dense",children:(0,s.jsx)(b.Z,{width:"100%",children:(0,s.jsxs)(b.Z,{sx:{maxWidth:"1226px",margin:"0 auto",display:"flex",alignItems:"center"},children:[(0,s.jsx)(R,{compact:a}),(0,s.jsx)(b.Z,{sx:{flexGrow:1}}),(0,s.jsx)(Q,{}),(0,s.jsx)($,{})]})})}),(0,s.jsx)(S.Z,{open:!o&&i,onClose:function(){return r(!1)},onOpen:function(){return r(!0)},children:(0,s.jsxs)(b.Z,{sx:{padding:"30px"},children:[(0,s.jsx)(R,{}),(0,s.jsx)(b.Z,{sx:{height:"50px"}}),(0,s.jsxs)(z.Z,{children:[n?(0,s.jsx)(f.Z,{children:(0,s.jsxs)(b.Z,{display:"flex",children:[(0,s.jsx)("img",{src:n.image,alt:"",width:24,height:24}),(0,s.jsx)(x.Z,{flex:1,fontSize:"14px",color:"#FFFFFF",marginLeft:"5px",children:n.name}),(0,s.jsx)(N.Z,{})]})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Z,{children:(0,s.jsx)(x.Z,{noWrap:!0,color:"white",children:"Za\u0142\xf3\u017c konto"})}),(0,s.jsx)(f.Z,{children:(0,s.jsx)(x.Z,{noWrap:!0,color:"white",children:"Zaloguj"})})]}),(0,s.jsx)(f.Z,{children:(0,s.jsx)(x.Z,{noWrap:!0,children:(0,s.jsx)("img",{src:E,alt:"PL",width:24,height:24})})})]})]})})]})},q=t(27516),ee=(0,X.Z)({typography:{fontFamily:"Inter"},palette:{action:{hover:"#F9F9F9"},primary:{main:"#006699"}},components:{MuiCssBaseline:{styleOverrides:"\n\t\t\t\tbody {\n\t\t\t\t\tbackground-color: #F2F4F6;\n\t\t\t\t\tfont-size: 16px;\n color: #152536;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ta {\n\t\t\t\t\tcolor: #0A58CA;\n\t\t\t\t}\n\n\t\t\t\t.table-row-danger td {\n\t\t\t\t\tbackground-color: #DC3545;\n\t\t\t\t\tcolor: white;\n\t\t\t\t}\n\n\t\t\t\t.table-row-danger a {\n\t\t\t\t\tcolor: white;\n\t\t\t\t}\n\t\t\t"},MuiAppBar:{styleOverrides:{root:{backgroundColor:"#23283D",boxShadow:"none",paddingTop:14,paddingBottom:14}}},MuiToolbar:{styleOverrides:{root:{minHeight:60,height:60,maxHeight:60}}},MuiTableCell:{styleOverrides:{head:{color:"#535353",fontWeight:700,fontSize:"16px",backgroundColor:"white",borderTop:"1px solid #C4C4C4",borderBottom:"1px solid #C4C4C4"},root:{borderBottom:"none",fontSize:"16px",textAlign:"center",color:"#707070"}}},MuiTableRow:{styleOverrides:{root:{backgroundColor:"white",height:48},head:{backgroundColor:"#343A40",height:60}}},MuiPagination:{styleOverrides:{ul:{"&>li>button":{backgroundColor:"white"},"&>li:nth-child(1)>button":{borderRadius:"4px 0 0 4px"},"&>li:nth-last-child(1)>button":{borderRadius:"0 4px 4px 0"}}}},MuiPaginationItem:{styleOverrides:{root:{"&.Mui-disabled":{color:"#2699FB"},"&.Mui-selected":{background:"none",color:"#2699FB","&:hover":{background:"none",color:"#2699FB"}}},outlined:{margin:0,borderRadius:0,color:"#BCE0FD",fontSize:"12px",fontWeight:700,padding:"18px 14px",border:"none"},previousNext:{color:"#2699FB"}}},MuiDrawer:{styleOverrides:{paper:{backgroundColor:"#122136",color:"white"}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:"white",height:40,borderColor:"#E9ECEF",color:"#6C757D",fontSize:"16px",borderRadius:"4px",marginTop:"5px","&.MuiInputBase-multiline":{height:"auto"}}}},MuiButton:{styleOverrides:{contained:{boxShadow:"none",backgroundColor:"#006699",color:"white",textTransform:"none",fontSize:"16px",fontWeight:"bold",height:40,"&:hover":{boxShadow:"none"},borderRadius:"4px",":disabled":{color:"white"}},outlined:{boxShadow:"none",backgroundColor:"none",textTransform:"none",fontSize:"16px",fontWeight:"bold",color:"#006699",height:40,"&:hover":{boxShadow:"none",borderWidth:"2px",borderColor:"#006699"},borderWidth:"2px",borderColor:"#006699",borderRadius:"4px"},text:{boxShadow:"none",backgroundColor:"none",textTransform:"none",fontSize:"16px",fontWeight:600,color:"#006699",height:40,"&:hover":{boxShadow:"none",backgroundColor:"none"}}}},MuiMenuItem:{styleOverrides:{root:{":hover":{background:"none"}}}},MuiBreadcrumbs:{styleOverrides:{root:{a:{textDecoration:"none",color:"#006699"},fontWeight:600,fontSize:"14px"}}},MuiTypography:{styleOverrides:{root:{color:"#343A40"},h1:{fontSize:"40px",fontWeight:"bold"},h2:{fontSize:"32px",fontWeight:"bold"},h3:{fontSize:"28px",fontWeight:"bold"},h4:{fontSize:"24px",fontWeight:"bold"},h5:{fontSize:"20px",fontWeight:"bold"},h6:{fontSize:"16px",fontWeight:"bold"},body1:{color:"#535353",fontSize:"14px"},caption:{fontSize:"12px",fontWeight:400,color:"#6C757D"}}},MuiRadio:{styleOverrides:{root:{color:"#006699","&.Mui-checked":{color:"#006699"}}}},MuiCheckbox:{styleOverrides:{root:{color:"#C4C4C4"}}},MuiSlider:{styleOverrides:{valueLabel:{"&.MuiSlider-valueLabelOpen":{transform:"translateY(100%) scale(1)"},":before":{transform:"scale(0)"},background:"none",color:"#006DA4",fontSize:"14px"},thumb:{backgroundColor:"white",boxShadow:"none",border:"3px solid #006DA4"},track:{backgroundColor:"#006DA4",border:"none"},rail:{backgroundColor:"#BCE0FD"}}},MuiDialogActions:{styleOverrides:{root:{backgroundColor:"#F8F9FA",padding:"16px"}}}}}),ne=function(e){var n=e.children,t=e.heading,i=e.action,r=void 0===i?null:i,o=e.user,l=void 0===o?null:o,a=e.bg,d=void 0!==a&&a;return(0,s.jsx)(U.Z,{theme:ee,children:(0,s.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",backgroundImage:d&&'url("/homebackground.png")',backgroundSize:d&&"cover",backgroundPosition:d&&"center",minHeight:"100vh"},children:[(0,s.jsx)(Y,{user:l}),(0,s.jsxs)(b.Z,{flex:1,sx:{},children:[t&&(0,s.jsxs)(b.Z,{sx:{padding:"48px 32px 0",display:{md:"flex"}},children:[(0,s.jsx)(x.Z,{sx:{margin:0,padding:0,fontSize:"40px",fontWeight:700,color:"#343B46",flex:1},children:t}),r]}),n]}),(0,s.jsx)(q.Z,{})]})})};ne.Content=function(e){var n=e.children;return(0,s.jsx)(b.Z,{sx:{padding:{md:"32px"},maxWidth:{md:"1066px"},margin:"0 auto"},children:n})};var te=ne,ie=t(9008),re=t.n(ie),oe=t(56775),le=t(8100),ae=t(97531),de=t(64666),se=t(37645),xe=t(6514),ce=t(31425),ue=function(e){var n,t=e.onAccepted,i=e.onClosed,r=(0,M.Z)().locale,o=(0,le.ZP)("".concat(ae.F,"/consentClauses"),ae._).data,l=(null!==(n=null===o||void 0===o?void 0:o.data)&&void 0!==n?n:[]).find((function(e){return"gdpr_modal"===e.type})),a=l?"en"===r?l.text_en:l.text_pl:null;return(0,s.jsxs)(de.Z,{open:!0,onClose:i,children:[(0,s.jsx)(se.Z,{children:(0,s.jsxs)(b.Z,{display:"flex",alignItems:"center",borderBottom:"1px solid #ddd",paddingBottom:1,children:[(0,s.jsx)(b.Z,{flex:1,children:(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(r,"Obowi\u0105zek informacyjny do wniosku o przyznanie miejsca w domu studenckim")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(c.Z,{onClick:i,variant:"text",children:(0,s.jsx)(x.Z,{variant:"h3",sx:{cursor:"pointer"},children:"\xd7"})})})]})}),(0,s.jsx)(xe.Z,{children:a?a.split("\n").map((function(e,n){return(0,s.jsx)(x.Z,{sx:{marginBottom:""===e?"0.5em":0},children:e},n)})):(0,s.jsx)(x.Z,{children:(0,T.t)(r,"\u0141adowanie...")})}),(0,s.jsx)(ce.Z,{sx:{textAlign:"center"},children:(0,s.jsxs)(b.Z,{sx:{display:"flex"},children:[(0,s.jsx)(b.Z,{flex:1}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsx)(c.Z,{variant:"outlined",fullWidth:!0,sx:{padding:"0 40px",margin:{md:"0 5px",xs:"0 5px 10px"}},onClick:i,children:(0,T.t)(r,"Anuluj")}),(0,s.jsx)(c.Z,{variant:"contained",fullWidth:!0,sx:{padding:"0 10px",margin:"0 5px",minWidth:"250px"},onClick:function(){return t()},children:(0,T.t)(r,"Wyra\u017cam zgod\u0119")})]}),(0,s.jsx)(b.Z,{flex:1})]})})]})},he=t(35544),pe=t(80251),Ze=t(25934),je=t(60194),me=t(5152),fe=t.n(me),ge=t(6802),ve=t(32912),be=t(91456),ye=t(86501),we=fe()((function(){return Promise.all([t.e(9269),t.e(4078)]).then(t.bind(t,34078))}),{loadableGenerated:{webpack:function(){return[34078]}},ssr:!1}),Ce=function(){var e,n,t=(0,l.Z)(y.useState(null),2),i=t[0],r=t[1],o=(0,l.Z)(y.useState(null),2),a=o[0],d=o[1],h=(0,l.Z)(y.useState(!1),2),p=h[0],Z=h[1],j=(0,l.Z)(y.useState([]),2),m=j[0],f=j[1],g=(0,le.ZP)("".concat(ae.F,"/recruitmentDorms"),ae._),v=g.data,w=(g.error,g.mutate,null===m||void 0===m||m.map((function(e){return null===e||void 0===e?void 0:e.id})),(null!==(e=null===v||void 0===v?void 0:v.data)&&void 0!==e?e:[]).filter((function(e){return 0==m.length||m.includes(null===e||void 0===e?void 0:e.id)}))),C=y.useRef(null),k=(0,l.Z)(y.useState(null),2),S=k[0],z=k[1],B=(0,M.Z)().locale,_=(0,le.ZP)("".concat(ae.F,"/currentEnrollment"),ae._).data,A=null===_||void 0===_?void 0:_.data;return y.useEffect((function(){window.scrollTo({top:0,behavior:"auto"})}),[i,p,a]),p?(0,s.jsxs)(te,{bg:!0,children:[(0,s.jsx)(re(),{children:(0,s.jsx)("title",{children:(0,T.t)(B,"Akademiki")})}),(0,s.jsx)(b.Z,{sx:{minHeight:"100%",height:"100%"},children:(0,s.jsxs)(b.Z,{sx:{height:"100%",maxWidth:"1066px",margin:"0 auto",padding:{md:"50px 100px"},display:{md:"flex"},alignItems:"center"},children:[(0,s.jsx)(b.Z,{flex:1}),(0,s.jsxs)(b.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,s.jsx)(x.Z,{variant:"h2",children:(0,T.t)(B,"WNIOSEK ZOSTA\u0141 Z\u0141O\u017bONY")}),(0,s.jsx)(b.Z,{height:"50px"}),(0,s.jsx)(x.Z,{children:(0,T.t)(B,"Dzi\u0119kujemy za z\u0142o\u017cenie wniosku o przyznanie miejsca w domu studenckim.")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(x.Z,{children:[(0,T.t)(B,"Tw\xf3j wniosek zostanie rozpatrzony w przeci\u0105gu"),"\xa0",(0,s.jsx)("strong",{children:(0,T.t)(B,"30 dni roboczych")}),"."]}),(0,s.jsx)(x.Z,{children:(0,T.t)(B,"Zostaniesz powiadomiony o pozytywnej lub negatywnej decyzji przyznania miejsca drog\u0105 mailow\u0105.")}),(0,s.jsx)(b.Z,{height:"50px",sx:{borderBottom:"1px solid #eee",marginBottom:"20px"}}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(c.Z,{variant:"outlined",onClick:function(e){e.preventDefault(),Z(!1),r(!1),d(!1)},children:(0,T.t)(B,"Powr\xf3t do strony g\u0142\xf3wnej")})})]}),(0,s.jsx)(b.Z,{flex:1})]})})]}):a?(0,s.jsxs)(te,{children:[(0,s.jsx)(re(),{children:(0,s.jsx)("title",{children:(0,T.t)(B,"Akademiki")})}),(0,s.jsx)(ke,{dorm:a,onCancel:function(){return d(null)},onSuccess:function(){return Z(!0)}})]}):(0,s.jsxs)(te,{children:[(0,s.jsxs)(re(),{children:[(0,s.jsx)("title",{children:(0,T.t)(B,"Akademiki")}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://unpkg.com/leaflet@1.8.0/dist/leaflet.css",integrity:"sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==",crossOrigin:""})]}),i&&(0,s.jsx)(ue,{onClosed:function(){r(null)},onAccepted:function(){d(i),r(null)}}),(0,s.jsx)(b.Z,{sx:{backgroundColor:"white"},children:(0,s.jsx)(b.Z,{sx:{maxWidth:"1226px",margin:"0 auto",padding:"8px 0"},children:(0,s.jsxs)(u.Z,{children:[(0,s.jsx)(W(),{href:"/",children:(0,T.t)(B,"Strona g\u0142\xf3wna")}),(0,s.jsx)(x.Z,{fontSize:"14px",children:(0,T.t)(B,"Wyniki wyszukiwania")})]})})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(we,{selected:i,entries:w,mapRef:C,selectedMarker:S})}),(0,s.jsx)(b.Z,{sx:{background:"#F8F9FA"},children:(0,s.jsxs)(b.Z,{sx:{padding:{md:"32px",xs:"10px"},display:{md:"flex"},maxWidth:"1226px",margin:"0 auto"},children:[(0,s.jsx)(b.Z,{sx:{backgroundColor:"white",borderRadius:"4px",padding:{xs:"10px",md:"24px"},width:{md:"365px"}},children:(0,s.jsxs)(b.Z,{sx:{paddingBottom:"8px",marginBottom:"10px",marginTop:"40px"},children:[(0,s.jsx)(x.Z,{variant:"h4",sx:{paddingBottom:"20px",borderBottom:"1px solid #eee"},children:(0,T.t)(B,"Opcje zaawansowane")}),(0,s.jsx)(b.Z,{height:"16px"}),(0,s.jsx)(x.Z,{fontWeight:"bold",fontSize:"12px",children:(0,T.t)(B,"Dost\u0119pne akademiki")}),(0,s.jsx)(oe.Z,{values:m,onChanged:f})]})}),(0,s.jsx)(b.Z,{width:"16px"}),(0,s.jsx)(b.Z,{sx:{flex:1},children:(0,s.jsx)(b.Z,{sx:{backgroundColor:"white",borderRadius:"4px",paddingBottom:"32px"},children:(0,s.jsx)(b.Z,{sx:{padding:{xs:"10px",md:"24px"}},children:A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Z,{variant:"h4",sx:{borderBottom:"1px solid #eee",paddingBottom:"16px"},children:(0,T.t)(B,"Obecnie prowadzimy rekrutacje do nast\u0119puj\u0105cych akademik\xf3w")}),(0,s.jsx)(b.Z,{height:"16px"}),null===w||void 0===w?void 0:w.map((function(e){return(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"},padding:"24px 0",backgroundColor:"white",marginBottom:"20px",borderBottom:"1px solid #eee"},children:[(0,s.jsx)(b.Z,{children:(null===e||void 0===e?void 0:e.image)?(0,s.jsx)("img",{src:e.image,width:"160",height:"160",alt:"",style:{borderRadius:"4px"}}):(0,s.jsx)("img",{src:"/background.png",width:160,height:160,style:{borderRadius:"4px"},alt:""})}),(0,s.jsx)(b.Z,{flex:1,sx:{margin:{md:"0 20px"}},children:(0,s.jsx)(b.Z,{sx:{},children:(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{flex:1,children:[(0,s.jsx)(x.Z,{fontSize:"18px",fontWeight:600,color:"#535353",children:null!==(n=e.name)&&void 0!==n?n:"-"}),(0,s.jsx)(b.Z,{height:"10px"}),(0,s.jsx)(x.Z,{variant:"body1",children:null===e||void 0===e?void 0:e.street}),(0,s.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,s.jsx)(b.Z,{height:"10px"}),(0,s.jsxs)(b.Z,{display:"flex",children:[(0,s.jsx)("a",{href:"#",children:(0,s.jsx)(x.Z,{fontSize:"14px",fontWeight:600,color:"#2699FB",sx:{textDecoration:"none"},children:(0,s.jsx)("a",{href:"#",onClick:function(){var n=null===e||void 0===e?void 0:e.lat,t=null===e||void 0===e?void 0:e.lng;if(n&&t){var i=C.current;i&&(null===i||void 0===i||i.flyTo([n,t]),z(null===e||void 0===e?void 0:e.id))}},children:(0,T.t)(B,"Poka\u017c na mapie")})})}),(0,s.jsx)(b.Z,{width:"10px"}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"body1",children:(0,T.t)(B,"10 min do centrum")})})]})]}),(0,s.jsx)(b.Z,{sx:{paddingTop:{xs:"20px",md:0}},children:(0,s.jsx)(c.Z,{variant:"outlined",sx:{borderRadius:"4px",width:"180px"},onClick:function(){return r(e)},children:(0,T.t)(B,"Wybierz")})})]})})})]},null===e||void 0===e?void 0:e.id)}))]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Z,{variant:"h4",sx:{borderBottom:"1px solid #eee",paddingBottom:"16px"},children:(0,T.t)(B,"Obecnie nie prowadzimy rekrutacji.")}),(0,s.jsx)(b.Z,{height:"16px"})]})})})})]})})]})},ke=function(e){var n,t,w,C,k=e.dorm,S=e.onCancel,z=e.onSuccess,B=(0,M.Z)().locale,_=(0,l.Z)(y.useState(!1),2),A=_[0],W=_[1],F=(0,l.Z)(y.useState({}),2),I=F[0],O=F[1],P=(0,l.Z)(y.useState([]),2),D=P[0],R=P[1],E=(0,l.Z)(y.useState([]),2),N=E[0],V=E[1],L=(0,l.Z)(y.useState(""),2),U=L[0],K=L[1],H=(0,l.Z)(y.useState(""),2),J=H[0],X=H[1],G=(0,l.Z)(y.useState(""),2),$=G[0],Q=G[1],Y=(0,l.Z)(y.useState(null),2),q=Y[0],ee=Y[1],ne=(0,l.Z)(y.useState("id"),2),te=ne[0],ie=ne[1],re=(0,l.Z)(y.useState(""),2),de=re[0],se=re[1],xe=(0,l.Z)(y.useState(null),2),ce=xe[0],ue=xe[1],me=(0,l.Z)(y.useState("pl"),2),fe=me[0],we=me[1],Ce=(0,l.Z)(y.useState("pl"),2),ke=Ce[0],ze=Ce[1],Be=(0,l.Z)(y.useState(null),2),_e=Be[0],Ae=Be[1],We=(0,l.Z)(y.useState(""),2),Te=We[0],Me=We[1],Fe=(0,l.Z)(y.useState(""),2),Ie=Fe[0],Oe=Fe[1],Pe=(0,l.Z)(y.useState(!1),2),De=Pe[0],Re=Pe[1],Ee=(0,l.Z)(y.useState(""),2),Ne=Ee[0],Ve=Ee[1],Le=(0,l.Z)(y.useState(""),2),Ue=Le[0],Ke=Le[1],He=(0,l.Z)(y.useState(""),2),Je=He[0],Xe=He[1],Ge=(0,l.Z)(y.useState(""),2),$e=Ge[0],Qe=Ge[1],Ye=(0,l.Z)(y.useState(""),2),qe=Ye[0],en=Ye[1],nn=(0,l.Z)(y.useState(null),2),tn=nn[0],rn=nn[1],on=(0,l.Z)(y.useState(null),2),ln=on[0],an=on[1],dn=(0,l.Z)(y.useState(""),2),sn=dn[0],xn=dn[1],cn=(0,l.Z)(y.useState(0),2),un=cn[0],hn=cn[1],pn=(0,l.Z)(y.useState(""),2),Zn=pn[0],jn=pn[1],mn=(0,l.Z)(y.useState(""),2),fn=mn[0],gn=mn[1],vn=(0,l.Z)(y.useState(null),2),bn=vn[0],yn=vn[1],wn=(0,l.Z)(y.useState(""),2),Cn=wn[0],kn=wn[1],Sn=(0,l.Z)(y.useState(""),2),zn=Sn[0],Bn=Sn[1],_n=(0,l.Z)(y.useState([]),2),An=_n[0],Wn=_n[1],Tn=(0,l.Z)(y.useState("studentstatus"),2),Mn=Tn[0],Fn=Tn[1],In=(0,l.Z)(y.useState(!1),2),On=In[0],Pn=In[1],Dn=(0,l.Z)(y.useState(!1),2),Rn=Dn[0],En=Dn[1],Nn=(0,l.Z)(y.useState(!1),2),Vn=Nn[0],Ln=Nn[1],Un=(0,l.Z)(y.useState(!1),2),Kn=Un[0],Hn=Un[1],Jn=(0,l.Z)(y.useState(!1),2),Xn=Jn[0],Gn=Jn[1],$n=(0,le.ZP)("".concat(ae.F,"/consentClauses"),ae._).data,Qn=null!==(C=null===$n||void 0===$n?void 0:$n.data)&&void 0!==C?C:[],Yn=function(e){var n=Qn.find((function(n){return n.type===e}));return n?"en"===B?n.text_en:n.text_pl:""},qn=function(e){var n,t=Qn.find((function(n){return n.type===e}));return null!==(n=null===t||void 0===t?void 0:t.text_pl)&&void 0!==n?n:""},et=(0,l.Z)(y.useState(""),2),nt=et[0],tt=et[1],it=(0,l.Z)(y.useState(null),2),rt=it[0],ot=it[1],lt=(0,l.Z)(y.useState(null),2),at=lt[0],dt=lt[1],st=(0,ge.Z)("en"==B?"en":"name").countries,xt=(0,ge.Z)("en"==B?"residency_en":"residency").countries,ct=(0,le.ZP)("".concat(ae.F,"/agreements"),ae._).data,ut=(0,le.ZP)("".concat(ae.F,"/currentEnrollment"),ae._).data,ht=null===ut||void 0===ut?void 0:ut.data;y.useEffect((function(){ht&&(ot((null===ht||void 0===ht?void 0:ht.acc_date_from)?new Date(null===ht||void 0===ht?void 0:ht.acc_date_from):null),dt((null===ht||void 0===ht?void 0:ht.acc_date_to)?new Date(null===ht||void 0===ht?void 0:ht.acc_date_to):null))}),[ht]);var pt,Zt,jt,mt,ft,gt,vt,bt,yt=function(){var e=(0,i.Z)((function(){var e,n,t,i;return(0,d.__generator)(this,(function(r){switch(r.label){case 0:if(W(!0),(e=new FormData).append("dorm_id",k.id),e.append("first_name",U),e.append("last_name",J),e.append("pesel",$),q)try{e.append("birth",(0,ve.Z)(q,"yyyy-MM-dd"))}catch(o){console.error(o)}if(e.append("document_type",te),e.append("document_number",de),ce)try{e.append("document_due",(0,ve.Z)(ce,"yyyy-MM-dd"))}catch(l){console.error(l)}if(e.append("residency",ke),e.append("gender",_e),e.append("email",Te),e.append("phone",Ie),e.append("disability",De?"1":"0"),e.append("country",fe),e.append("city",Ne),e.append("postcode",Je),e.append("street",Ue),e.append("apartment",$e),e.append("building",qe),e.append("album",sn),un>0&&(e.append("year",tn?null===tn||void 0===tn?void 0:tn.toString():null),e.append("degree_type",ln),e.append("school",un),e.append("agreement_id",un),e.append("department",Zn),e.append("degree",fn),e.append("degree_form",bn),e.append("programme",Cn)),e.append("comments",zn),e.append("rules_agreement",On?"1":"0"),e.append("rules_clause_text",qn("rules")),e.append("responsibility_agreement",Rn?"1":"0"),e.append("responsibility_clause_text",qn("responsibility")),e.append("valid_agreement",Vn?"1":"0"),e.append("valid_clause_text",qn("valid")),e.append("data_accuracy_agreement",Kn?"1":"0"),e.append("data_accuracy_clause_text",qn("data_accuracy")),e.append("info_clause_agreement",Xn?"1":"0"),e.append("info_clause_clause_text",qn("info_clause")),e.append("account",nt),rt)try{e.append("date_from",(0,ve.Z)(rt,"yyyy-MM-dd"))}catch(a){console.error(a)}if(at)try{e.append("date_to",(0,ve.Z)(at,"yyyy-MM-dd"))}catch(d){console.error(d)}return D.forEach((function(n){e.append("dorms[]",n.toString())})),N.forEach((function(n){e.append("types[]",n)})),An.forEach((function(n){e.append("files[]",n.file),e.append("filetypes[]",n.type)})),[4,fetch("".concat(ae.F,"/applications"),{method:"POST",headers:{Accept:"application/json"},body:e})];case 1:return n=r.sent(),W(!1),422!=n.status?[3,3]:[4,n.json()];case 2:return t=r.sent(),O(null!==(i=null===t||void 0===t?void 0:t.errors)&&void 0!==i?i:{}),[2];case 3:return n.ok?(z(),[2]):(ye.ZP.error((0,T.t)(B,"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,s.jsx)(b.Z,{sx:{padding:"20px"},children:(0,s.jsxs)(b.Z,{sx:{backgroundColor:"white"},children:[(0,s.jsxs)(b.Z,{sx:{maxWidth:"1226px",margin:"0 auto",padding:"8px 0"},children:[(0,s.jsxs)(u.Z,{children:[(0,s.jsx)(c.Z,{variant:"text",onClick:function(){S()},children:(0,T.t)(B,"Strona g\u0142\xf3wna")}),(0,s.jsx)(x.Z,{fontSize:"14px",children:(0,T.t)(B,"Wyniki wyszukiwania")})]}),(0,s.jsx)(b.Z,{height:"40px"}),(0,s.jsx)(b.Z,{sx:{borderBottom:"1px solid #eee",paddingBottom:"10px"},children:(0,s.jsx)(x.Z,{variant:"h4",children:(0,T.t)(B,"Wniosek o przyznanie miejsca w akademiku")})}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Preferowany akademik")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{flex:1,children:[(0,s.jsx)(x.Z,{fontSize:"18px",children:null!==(pt=null===k||void 0===k?void 0:k.name)&&void 0!==pt?pt:"-"}),(0,s.jsx)(x.Z,{children:null!==(Zt=null===k||void 0===k?void 0:k.street)&&void 0!==Zt?Zt:"-"}),(0,s.jsxs)(x.Z,{children:[null!==(jt=null===k||void 0===k?void 0:k.postcode)&&void 0!==jt?jt:"-"," ",null!==(mt=null===k||void 0===k?void 0:k.city)&&void 0!==mt?mt:"-"]})]}),(0,s.jsxs)(b.Z,{sx:{flex:"1",display:{md:"flex"},marginTop:{xs:"20px",md:0}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Data zakwaterowania")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(be.Z,{value:rt,onChange:function(e){try{ot(e)}catch(n){ot(null)}},renderInput:function(e){var n;return(0,s.jsx)(h.Z,(0,o.Z)((0,r.Z)({},e),{disabled:A,error:"date_from"in I,helperText:null===(n=I.date_from)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Data wymeldowania")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(be.Z,{value:at,onChange:function(e){try{dt(e)}catch(n){dt(null)}},renderInput:function(e){var n;return(0,s.jsx)(h.Z,(0,o.Z)((0,r.Z)({},e),{disabled:A,error:"date_to"in I,helperText:null===(n=I.date_to)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,s.jsx)(b.Z,{flex:1})]})]})]}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Opcjonalne akademiki")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsx)(oe.Z,{values:D,onChanged:function(e){return R(e)},except:k.id})]}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Preferowany rodzaj pokoju")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{control:(0,s.jsx)(j.Z,{value:"single",checked:N.includes("single"),onChange:function(e){V((function(e){return["single"]}))}}),label:(0,T.t)(B,"1 osobowy")}),(0,s.jsx)(Z.Z,{control:(0,s.jsx)(j.Z,{value:"double",checked:N.includes("double"),onChange:function(e){V((function(e){return["double"]}))}}),label:(0,T.t)(B,"2 osobowy")})]})]}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Dane osobowe")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Imi\u0119 / Imiona")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:U,onChange:function(e){return K(e.target.value)},disabled:A,error:"first_name"in I,helperText:I.first_name})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Nazwisko")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:J,onChange:function(e){return X(e.target.value)},disabled:A,error:"last_name"in I,helperText:I.last_name})})]}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"PESEL")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:$,onChange:function(e){return Q(e.target.value)},disabled:A,error:"pesel"in I,helperText:I.pesel})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Data urodzenia")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(be.Z,{value:q,onChange:function(e){try{ee(e)}catch(n){ee(null)}},renderInput:function(e){return(0,s.jsx)(h.Z,(0,o.Z)((0,r.Z)({},e),{disabled:A,error:"birth"in I,helperText:I.birth,fullWidth:!0}))}})})]}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Dokument to\u017csamo\u015bci")})}),(0,s.jsx)(b.Z,{children:(0,s.jsxs)(m.Z,{fullWidth:!0,value:te,onChange:function(e){return ie(e.target.value)},disabled:A,children:[(0,s.jsx)(f.Z,{value:"id",children:(0,T.t)(B,"Dow\xf3d osobisty")}),(0,s.jsx)(f.Z,{value:"residence",children:(0,T.t)(B,"Karta pobytu")}),(0,s.jsx)(f.Z,{value:"passport",children:(0,T.t)(B,"Paszport")}),(0,s.jsx)(f.Z,{value:"visa",children:(0,T.t)(B,"Wiza")})]})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Numer dokumentu")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:de,onChange:function(e){return se(e.target.value)},disabled:A,error:"document_number"in I,helperText:I.document_number})})]}),(0,s.jsx)(b.Z,{flex:1})]}),["visa","residence","id"].includes(te)&&(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Data wa\u017cno\u015bci dokumentu")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(be.Z,{value:ce,onChange:function(e){try{ue(e)}catch(n){ue(null)}},renderInput:function(e){var n;return(0,s.jsx)(h.Z,(0,o.Z)((0,r.Z)({},e),{disabled:A,error:"document_due"in I,helperText:null===(n=I.document_due)||void 0===n?void 0:n[0],fullWidth:!0}))}})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{flex:1}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Obywatelstwo")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(m.Z,{fullWidth:!0,value:ke,onChange:function(e){return ze(e.target.value)},disabled:A,children:null===(n=null===xt||void 0===xt?void 0:xt.filter((function(e){return!!(null===e||void 0===e?void 0:e.residency)})))||void 0===n?void 0:n.map((function(e){return(0,s.jsx)(f.Z,{value:e.code,children:null!==(ft=e.residency)&&void 0!==ft?ft:"-"},e.code)}))})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"P\u0142e\u0107")})}),(0,s.jsx)(b.Z,{children:(0,s.jsxs)(m.Z,{fullWidth:!0,value:_e,onChange:function(e){return Ae(e.target.value)},disabled:A,error:"gender"in I,children:[(0,s.jsx)(f.Z,{value:"male",children:(0,T.t)(B,"M\u0119\u017cczyzna")}),(0,s.jsx)(f.Z,{value:"female",children:(0,T.t)(B,"Kobieta")})]})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Adres email")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Te,onChange:function(e){return Me(e.target.value)},disabled:A,error:"email"in I,helperText:I.email})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Telefon kontaktowy")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Ie,onChange:function(e){return Oe(e.target.value)},disabled:A,error:"phone"in I,helperText:I.phone})})]}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1,children:(0,s.jsx)(g.Z,{children:(0,s.jsx)(Z.Z,{control:(0,s.jsx)(v.Z,{value:!0,checked:De,onChange:function(e){return Re((function(e){return!e}))}}),label:(0,T.t)(B,"Jestem osob\u0105 z niepe\u0142nosprawno\u015bci\u0105")})})}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:2,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Rachunek bankowy wnioskodawcy")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:nt,onChange:function(e){return tt(e.target.value)},disabled:A,error:"account"in I,helperText:I.account})})]}),(0,s.jsx)(b.Z,{flex:1})]})]})]}),(0,s.jsxs)(b.Z,{sx:{maxWidth:"1226px",margin:"20px auto 0",padding:"8px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Adres zamieszkania")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Kraj")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(m.Z,{fullWidth:!0,value:fe,onChange:function(e){return we(e.target.value)},disabled:A,children:null===(t=null===st||void 0===st?void 0:st.filter((function(e){return!!(null===e||void 0===e?void 0:e.name)})))||void 0===t?void 0:t.map((function(e){return(0,s.jsx)(f.Z,{value:e.code,children:null!==(gt=e.name)&&void 0!==gt?gt:"-"},e.code)}))})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Miasto")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Ne,onChange:function(e){return Ve(e.target.value)},disabled:A,error:"city"in I,helperText:I.city})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Kod pocztowy")})}),(0,s.jsx)(h.Z,{fullWidth:!0,value:Je,onChange:function(e){return Xe(e.target.value)},disabled:A,error:"postcode"in I,helperText:I.postcode})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{flex:1})]}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Ulica")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Ue,onChange:function(e){return Ke(e.target.value)},disabled:A,error:"street"in I,helperText:I.street})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Nr domu")})}),(0,s.jsx)(h.Z,{fullWidth:!0,value:qe,onChange:function(e){return en(e.target.value)},disabled:A,error:"building"in I,helperText:I.building})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Nr mieszkania")})}),(0,s.jsx)(h.Z,{fullWidth:!0,value:$e,onChange:function(e){return Qe(e.target.value)},disabled:A,error:"apartment"in I,helperText:I.apartment})]})]}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Informacje o studencie")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Uczelnia")})}),(0,s.jsx)(b.Z,{children:(0,s.jsxs)(m.Z,{fullWidth:!0,value:un,onChange:function(e){return hn(e.target.value)},disabled:A,error:"school"in I,children:[(0,s.jsx)(f.Z,{value:0,children:(0,T.t)(B,"Osoby nieb\u0119d\u0105ce studentami")}),null===(w=null!==(vt=null===ct||void 0===ct?void 0:ct.data)&&void 0!==vt?vt:[])||void 0===w?void 0:w.map((function(e){return(0,s.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,s.jsx)(b.Z,{width:"20px"}),!!un&&(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Obecny rok studi\xf3w")})}),(0,s.jsx)(b.Z,{children:(0,s.jsxs)(m.Z,{fullWidth:!0,value:tn,onChange:function(e){return rn(e.target.value)},disabled:A,children:[(0,s.jsx)(f.Z,{value:1,children:"1"}),(0,s.jsx)(f.Z,{value:2,children:"2"}),(0,s.jsx)(f.Z,{value:3,children:"3"}),(0,s.jsx)(f.Z,{value:4,children:"4"}),(0,s.jsx)(f.Z,{value:5,children:"5"})]})})]}),!!un&&(0,s.jsx)(b.Z,{width:"20px"}),!!un&&(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Rodzaj studi\xf3w")})}),(0,s.jsx)(b.Z,{children:(0,s.jsxs)(m.Z,{fullWidth:!0,value:ln,onChange:function(e){return an(e.target.value)},disabled:A,children:[(0,s.jsx)(f.Z,{value:"bachelor",children:(0,T.t)(B,"I STOPNIA")}),(0,s.jsx)(f.Z,{value:"2degree",children:(0,T.t)(B,"II STOPNIA")}),(0,s.jsx)(f.Z,{value:"master",children:(0,T.t)(B,"JEDNOLITE MAGISTERSKIE")}),(0,s.jsx)(f.Z,{value:"phd",children:(0,T.t)(B,"SZKO\u0141A DOKTORSKA")})]})})]})]}),!!un&&(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Nr albumu / legitymacji")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:sn,onChange:function(e){return xn(e.target.value)},disabled:A,error:"album"in I,helperText:I.album})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Wydzia\u0142")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Zn,onChange:function(e){return jn(e.target.value)},disabled:A,error:"department"in I,helperText:I.department})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Kierunek")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:fn,onChange:function(e){return gn(e.target.value)},disabled:A,error:"degree"in I,helperText:I.degree})})]})]}),!!un&&(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Forma studi\xf3w")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(m.Z,{fullWidth:!0,value:bn,onChange:function(e){return yn(e.target.value)},error:"degree_form"in I,disabled:A,children:(0,s.jsx)(f.Z,{value:"full-time",children:(0,T.t)(B,"Stacjonarne")})})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Program studi\xf3w")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{fullWidth:!0,value:Cn,onChange:function(e){return kn(e.target.value)},disabled:A,error:"programme"in I,helperText:I.programme})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1})]}),(0,s.jsx)(b.Z,{sx:{display:{md:"flex"}},children:(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:3,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Uwagi (opcjonalnie)")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(h.Z,{multiline:!0,minRows:3,fullWidth:!0,value:zn,onChange:function(e){return Bn(e.target.value)},disabled:A,error:"comments"in I,helperText:I.comments})})]})})]}),(0,s.jsxs)(b.Z,{sx:{padding:"20px 0"},children:[(0,s.jsx)(x.Z,{variant:"h5",children:(0,T.t)(B,"Dokumenty")}),(0,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{children:(0,s.jsx)(x.Z,{variant:"caption",children:(0,T.t)(B,"Rodzaj za\u0142\u0105cznika")})}),(0,s.jsx)(b.Z,{children:(0,s.jsx)(m.Z,{fullWidth:!0,value:Mn,onChange:function(e){return Fn(e.target.value)},disabled:A,children:(0,s.jsx)(f.Z,{value:"studentstatus",children:(0,T.t)(B,"Za\u015bwiadczenie o statusie studenta")})})})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsxs)(b.Z,{marginBottom:"20px",flex:1,children:[(0,s.jsx)(b.Z,{height:"27px"}),(0,s.jsx)(c.Z,{startIcon:(0,s.jsx)(he.Z,{}),children:(0,s.jsx)("label",{htmlFor:"file",children:(0,T.t)(B,"Za\u0142\u0105cz plik")})}),(0,s.jsx)("input",{type:"file",name:"file",id:"file",style:{visibility:"hidden",height:0,width:0},onChange:function(e){Wn((function(n){return(0,a.Z)(n).concat([{id:(0,Ze.Z)(),type:Mn,file:e.target.files[0]}])}))}})]}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1})]}),(0,s.jsx)(b.Z,{sx:{display:{md:"flex"}},children:(0,s.jsx)(b.Z,{marginBottom:"20px",flex:3,children:null===An||void 0===An?void 0:An.map((function(e){var n;return(0,s.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,s.jsx)(x.Z,{variant:"caption",children:Se(null===e||void 0===e?void 0:e.type,B)}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(x.Z,{color:"black",fontSize:"16px",children:null!==(bt=null===e||void 0===e||null===(n=e.file)||void 0===n?void 0:n.name)&&void 0!==bt?bt:"-"}),(0,s.jsx)(c.Z,{startIcon:(0,s.jsx)(pe.Z,{}),variant:"text",sx:{color:"#B02A37"},onClick:function(){Wn((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,s.jsx)(b.Z,{sx:{padding:"20px 0",paddingBottom:"30px",borderBottom:"1px solid #eee",marginBottom:"20px"},children:(0,s.jsx)(b.Z,{marginBottom:"20px",flex:1,children:(0,s.jsxs)(g.Z,{children:[Yn("rules")&&(0,s.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,s.jsx)(v.Z,{value:!0,checked:On,onChange:function(e){return Pn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,s.jsx)(x.Z,{sx:{color:"rules_agreement"in I?"#DC3545":"inherit"},children:Yn("rules")})}),Yn("responsibility")&&(0,s.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,s.jsx)(v.Z,{value:!0,checked:Rn,onChange:function(e){return En((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,s.jsx)(x.Z,{sx:{color:"responsibility_agreement"in I?"#DC3545":"inherit"},children:Yn("responsibility")})}),Yn("valid")&&(0,s.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,s.jsx)(v.Z,{value:!0,checked:Vn,onChange:function(e){return Ln((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,s.jsx)(x.Z,{sx:{color:"valid_agreement"in I?"#DC3545":"inherit"},children:Yn("valid")})}),Yn("data_accuracy")&&(0,s.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,s.jsx)(v.Z,{value:!0,checked:Kn,onChange:function(e){return Hn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,s.jsx)(x.Z,{sx:{color:"data_accuracy_agreement"in I?"#DC3545":"inherit"},children:Yn("data_accuracy")})}),Yn("info_clause")&&(0,s.jsx)(Z.Z,{sx:{alignItems:"flex-start",mb:1},control:(0,s.jsx)(v.Z,{value:!0,checked:Xn,onChange:function(e){return Gn((function(e){return!e}))},sx:{pt:"2px"}}),label:(0,s.jsx)(x.Z,{sx:{color:"info_clause_agreement"in I?"#DC3545":"inherit"},children:Yn("info_clause")})})]})})}),(0,s.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"left",padding:"20px",backgroundColor:"#FFC107",color:"black",cursor:"pointer"},children:[(0,s.jsx)(je.Z,{}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(x.Z,{color:"black",children:(0,T.t)(B,"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,s.jsx)(b.Z,{height:"20px"}),(0,s.jsxs)(b.Z,{sx:{display:"flex"},children:[(0,s.jsxs)(b.Z,{sx:{display:{md:"flex"}},children:[(0,s.jsx)(c.Z,{variant:"outlined",fullWidth:!0,sx:{padding:"0 60px",margin:{xs:"0 0 10px",md:0}},disabled:A,onClick:S,children:(0,T.t)(B,"Anuluj")}),(0,s.jsx)(b.Z,{width:"20px"}),(0,s.jsx)(c.Z,{variant:"contained",fullWidth:!0,sx:{padding:"0 10px",margin:"0 0px",minWidth:"300px"},disabled:A||!1,onClick:function(){return yt()},children:(0,T.t)(B,"Z\u0142\xf3\u017c wniosek")})]}),(0,s.jsx)(b.Z,{flex:1})]})]})]})})};function Se(e,n){switch(e){case"id":return(0,T.t)(n,"Skan dokumentu to\u017csamo\u015bci");case"residence":return(0,T.t)(n,"Zameldowanie")}}},25934:function(e,n,t){"use strict";var i;t.d(n,{Z:function(){return c}});var r=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}var l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(e){return"string"===typeof e&&l.test(e)},d=[],s=0;s<256;++s)d.push((s+256).toString(16).substr(1));var x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(d[e[n+0]]+d[e[n+1]]+d[e[n+2]]+d[e[n+3]]+"-"+d[e[n+4]]+d[e[n+5]]+"-"+d[e[n+6]]+d[e[n+7]]+"-"+d[e[n+8]]+d[e[n+9]]+"-"+d[e[n+10]]+d[e[n+11]]+d[e[n+12]]+d[e[n+13]]+d[e[n+14]]+d[e[n+15]]).toLowerCase();if(!a(t))throw TypeError("Stringified UUID is invalid");return t};var c=function(e,n,t){var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=i[r];return n}return x(i)}}},function(e){e.O(0,[4215,4195,5333,469,4495,5021,4483,1456,602,5768,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]);