1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6857],{71312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/[slug]/survey",function(){return n(88243)}])},34466:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(67294),i=["AVAILABLE","APPLIED","UNAVAILABLE","INVALID","LEGACY_JOB_OFFER"],u=function(e){var t=(0,r.useState)(void 0),n=t[0],u=t[1];return(0,r.useEffect)((function(){var t=document.getElementById(e);if(t){var n=function(){var e;u((e=t.dataset.formStatus,i.find((function(t){return t===e}))))};n();var r=new MutationObserver(n);return r.observe(t,{attributes:!0,attributeFilter:["data-form-status"]}),function(){return r.disconnect()}}}),[e]),n}},66643:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(14924),i=n(26042),u=n(69396),o=n(828),a=n(67294),c=function(e){var t=e.target,n=e.progressSeparateCount,c=e.callback,l=e.excludeSelector,s=e.ignoreHeightShrink,d=e.endMarkerSelector,f=(0,a.useState)((function(){return Array.from({length:n},(function(e,t){return 100*(t+1)/n})).reduce((function(e,t){return(0,u.Z)((0,i.Z)({},e),(0,r.Z)({},t,!1))}),{})}))[0],v=(0,a.useRef)(null),g=(0,a.useRef)(0),h=(0,a.useCallback)((function(){t.current&&(v.current=t.current.getBoundingClientRect().top+window.scrollY)}),[t]);(0,a.useLayoutEffect)((function(){return h(),window.addEventListener("resize",h),function(){return window.removeEventListener("resize",h)}}),[h]);return{handleScroll:function(){var e=t.current;if(e){var n=v.current;if(null!==n){var r=d?document.querySelector(d):null,i=e.scrollHeight;if(!r&&s){if(i<g.current)return;g.current=i}var u=!r&&l?Array.from(document.querySelectorAll(l)).reduce((function(e,t){return e+t.clientHeight}),0):0,a=function(e){var t=e.scrollY,n=e.innerHeight,r=e.elementDistanceFromTop,i=e.scrollHeight,u=e.excludeHeight,o=e.contentEndDistanceFromTop;return(t+(n-r))/Math.max(void 0!==o?o-r:i-u,1)*100}({scrollY:window.scrollY,innerHeight:window.innerHeight,elementDistanceFromTop:n,scrollHeight:i,excludeHeight:u,contentEndDistanceFromTop:r?r.getBoundingClientRect().top+window.scrollY:void 0}),h=Object.entries(f).find((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return a>=Number(n)&&!r}));if(h){var p=(0,o.Z)(h,2),m=p[0];!1===p[1]&&(f[Number(m)]=!0,c&&c(Number(m)))}}}}}}},88243:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B}});var r=n(47568),i=n(828),u=n(97582),o=n(35944),a=n(67294),c=n(78395),l=n(34466),s=n(98835),d=n(66643),f=n(31099),v=n(98998),g=n(31951),h=n(4298),p=n.n(h),m=n(70917),E=n(45357),w=n(47414),I=n(33143),y=n(49984),A=(0,m.iv)("display:flex;flex-direction:column;gap:15px;align-items:center;width:100%;padding:32px 0 64px;"),b=(0,m.iv)("width:100%;max-width:620px;"),S=(0,m.iv)("width:100%;max-width:620px;padding:0 16px;@media (min-width:",E.RR.MEDIUM,"){padding:0;}"),_=function(e){var t=e.htmlMeta,n=e.leafletId,r=e.event,i=e.refForMain;return(0,o.tZ)(y.ZA,{htmlMeta:t,header:{simple:!0},footer:{simple:!0,hideBreadcrumbs:!0},hideMarginTopAtFooter:!0,refForMain:i,children:(0,o.BX)("div",{css:A,children:[(0,o.tZ)(I.Z,{cssStyle:b,height:"auto",width:"100%",fitType:"cover",src:(0,w.GF)(r.bannerUrl,{width:1200,height:630,blur:!1}),alt:"",borderRadius:E.wU.SMALL}),(0,o.tZ)("div",{id:"event-survey-form",className:"leaflet-parts","data-leaflet-id":n,css:S})]})})},L=n(26042),k=n(7297),T=n(68806),Z=n(6812);function x(){var e=(0,k.Z)(["\n query CmpAccessTokenForEventSurvey {\n cmpAccessToken {\n token\n }\n }\n"]);return x=function(){return e},e}var F={},M=(0,T.Ps)(x());var R=n(63650),N=n(20006),C=function(e){var t=e.slug,n=e.eventId,r=e.leafletId,i=e.event,u=e.refForMain,c=function(e){var t=(0,L.Z)({},F,e);return Z.a(M,t)}(),l=c.data,s=c.loading,d=(0,a.useState)((function(){return"undefined"!==typeof globalThis.CmpReform})),f=d[0],v=d[1];(0,a.useEffect)((function(){!s&&f&&globalThis.CmpReform.createForm({cmpToken:(null===l||void 0===l?void 0:l.cmpAccessToken.token)||void 0})}),[s,f,r]);var g=(0,N.DK)(i,t);return(0,o.BX)(o.HY,{children:[(0,o.tZ)(p(),{src:R.o4,strategy:"afterInteractive",onLoad:function(){return v(!0)}}),(0,o.tZ)(_,{slug:t,eventId:n,leafletId:r,event:i,htmlMeta:g,refForMain:u})]})},H=function(e){var t=e.slug,n=e.eventId,r=e.leafletId,i=e.event,u=(0,f.Vp)().sendEventLog;(0,s.s)((function(){u({eventType:"OPEN_PAGE",eventId:n,leafletId:r})}));var c=(0,a.useRef)(null),v=(0,l.U)("event-survey-form"),g=(0,a.useCallback)((function(e){u({eventType:"EVENT_SURVEY_PAGE_READ",eventId:n,progress:e})}),[u,n]),h=(0,d.c)({target:c,progressSeparateCount:5,callback:g,ignoreHeightShrink:!0}).handleScroll;return(0,a.useEffect)((function(){if("AVAILABLE"===v)return window.addEventListener("scroll",h),function(){return window.removeEventListener("scroll",h)}}),[v,h]),(0,o.tZ)(C,{slug:t,eventId:n,leafletId:r,event:i,refForMain:c})};H.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,o,a,l,s,d,f;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:"string"!==typeof(t=e.query.slug)&&(0,v.uX)((0,g.xl)("error.404",{}),null===e||void 0===e?void 0:e.res),n=t,r=(0,c.W)(e),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,r.event.getEventIdBySlug(n)];case 2:return o=u.sent(),[4,Promise.all([r.event.getEventSurvey(o),r.event.getWatchEvent(o)])];case 3:return s=i.Z.apply(void 0,[u.sent(),2]),d=s[0],f=s[1],a=d.leafletId,l=f,[3,5];case 4:return u.sent(),(0,v.uX)((0,g.xl)("error.404",{}),null===e||void 0===e?void 0:e.res),[3,5];case 5:return[2,{slug:n,eventId:o,leafletId:a,event:l,sessionUser:null,allocationResults:null}]}}))}));return function(t){return e.apply(this,arguments)}}();var B=H}},function(e){e.O(0,[5277,6058,1881,4601,6,1561,8207,9727,4791,9984,9774,3463,2888,179],(function(){return t=71312,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.