1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[530],{89554:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/apply",function(){return n(88142)}])},88142:function(t,e,n){"use strict";n.r(e);var a=n(44229),o=n(92885),i=n(74512),s=n(32735),r=n(60216),u=n.n(r),c=n(5987),l=n(90234),p=n(73650),f=n(36078),d=n(28781),g=n(9810),h=n(10517),m=n(44968),x=n(35837),_=n(99838),Z=n(82425),v=n(30902),b=n(16265),j=n(12384),C=n(23823),S=n(85903),E=n(65305),I=n(42452),w=n(2972),y=n(38964),A=n(53155),T=n(55698),k=n(9205),N=n(23961),P=n.n(N),q=n(49309),B=n(49167),M=function(t){var e=t.applicationSettings,n=t.user,r=t.navigationContext,u=t.isConnected,d=t.router,g=t.extraHeadTags,h=t.getInformationSheetMenuItems,m=(0,l.ac)(l.ue.devices.desktop),x=(0,c.$G)(),y=x.t,A=x.locale,T=(0,p.Z)(),k=T.onAuthenticationSucceeded,N=T.user,q=T.isConnected,M=u&&Boolean(n)||Boolean(N)&&q,R=(0,f.oG)({navigationContext:r,isConnected:M,locale:A,userEmail:n?n.email:null}),F=R.applicationStatus,H=R.loading,D=(0,s.useState)("spontaneous_".concat(H)),G=D[0],O=D[1];if((0,s.useEffect)((function(){e&&P().setItem("spontaneousApplicationSettings_".concat(A),e)}),[]),(0,s.useEffect)((function(){O("spontaneous_".concat(H))}),[H]),!e)return(0,i.jsx)(w.default,{navigationContext:r,t:y});var X=(0,i.jsx)(v.Z,{background:(0,i.jsx)(b.Z,{imageUrl:"/assets/static/detailed_application_header_bg.jpg"}),title:(0,i.jsx)(Z.Z,{noWrap:!0,variant:"title:large:bold:light",component:"h1",children:y("spontaneous:offer")}),information:(0,i.jsx)(S.Z,{text:y("detailed:application:form"),variant:"light"})});return(0,i.jsx)(_.Z,{title:"".concat(y("spontaneous:offer")," - ").concat(y("apply:detailed")),metaTags:[(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots"),g],topBar:(0,i.jsx)(E.C,{redirectAfterAuthentication:!1,navigationContext:r,getInformationSheetMenuItems:h,withDirtyFormConfirm:!0}),topPageButton:(0,i.jsx)(j.Z,{}),header:X,footer:m&&(0,i.jsx)(I.Z,{navigationContext:r}),favicon:r.favicon,children:(0,i.jsx)(C.Z,{id:G,isSpontaneousApply:!0,user:n,isConnected:M,onAuthenticationSucceeded:k,offerTitle:"",launched:!0,onExit:(0,a.Z)((function(){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,f._V)(M,A)];case 1:return t.sent(),d.back(),[2]}}))})),onDraft:function(t){return(0,B.Z)(A,y,null,null,null,t,!0)},onApply:function(t,e){return(0,f.Pj)(A,y,null,null,null,t,"detailed",!0,e,!1)},settings:e,applicationStatus:F,isLoadingApplications:H})})};M.getInitialProps=function(){var t=(0,a.Z)((function(t,e){var n,a,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return(n=!t.req)?[4,P().getItem("spontaneousApplicationSettings_".concat(e))]:[3,2];case 1:a=o.sent(),o.label=2;case 2:return n&&a?[3,5]:[4,(0,m.Z)("/application-settings/detailed",e)];case 3:return[4,o.sent().json()];case 4:if(!(i=o.sent().settings))return(0,A.Z)(t,404),[2,{}];a=i.application,o.label=5;case 5:return a?[2,{applicationSettings:a}]:((0,A.Z)(t,404),[2,{}])}}))}));return function(e,n){return t.apply(this,arguments)}}(),M.defaultProps={user:null,extraHeadTags:null,isConnected:!1,getInformationSheetMenuItems:function(){}},M.propTypes={applicationSettings:u().shape({fields:u().object,layout:u().object,fileFieldsName:u().object,maxFileSize:u().number}).isRequired,isConnected:u().bool,user:u().shape(h.Z),router:u().PropTypes.shape(x.NextRouter).isRequired,navigationContext:u().shape(T.Z).isRequired,extraHeadTags:u().node,getInformationSheetMenuItems:u().func},e.default=(0,c.rE)((0,y.Z)((0,k.Z)((0,d.Z)((0,q.Em)((0,g.Z)(M))))))}},function(t){t.O(0,[99,151,945,136,309,221,774,888,179],(function(){return e=89554,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.