1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90276:function(e,n,r){r.r(n),r.d(n,{ExperienceRenderer:function(){return l}});var t=r(47568),s=r(10092),c=r(85893),i=r(67294);i.useInsertionEffect||(i.useInsertionEffect=i.useLayoutEffect);var u=r(45236),a=r(95229);function l(e){var n=e.slug,r=e.entryId,l=e.locale,o=void 0===l?"de-DE":l,d=e.isPreview,f=void 0!==d&&d,p=e.experienceEntry,h=e.referencedEntries,y=e.referencedAssets,v=(0,i.useState)(null),E=v[0],x=v[1],k=(0,i.useState)(null),_=k[0],b=k[1],g=(0,i.useState)(!0),I=g[0],L=g[1],m=(0,i.useState)(null),w=m[0],A=m[1],C=!f&&p;return(0,i.useEffect)((function(){var e=function(e){return(0,a.createClient)({space:"4mws6uyas4ta",accessToken:e?"-vBdFAEXdB2fnmoCh12gVJPiR-yIAxl8MQ0kJARtYRs":"UNY_7-kVS3UkYxAMEIpyO2g7Lh-8e7645oGt2ksDhE8",environment:"master",host:e?"preview.contentful.com":void 0})};if(C)try{var c=(0,u.JJ)({experienceEntry:p,referencedEntries:h||[],referencedAssets:y||[],locale:o});x(c);var i=(0,u.kL)(c);b(i||null)}catch(E){A("Failed to hydrate experience")}finally{L(!1)}else!function(){v.apply(this,arguments)}();function l(e){return d.apply(this,arguments)}function d(){return(d=(0,t.Z)((function(t){var c;return(0,s.__generator)(this,(function(s){return c=e(t),r?[2,(0,u.h_)({client:c,id:r,experienceTypeId:"yorckWebsite",localeCode:o,isEditorMode:!1})]:[2,(0,u.Xk)({client:c,slug:n,experienceTypeId:"yorckWebsite",localeCode:o,isEditorMode:!1})]}))}))).apply(this,arguments)}function v(){return v=(0,t.Z)((function(){var e,n,r,t;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,9,10]),[4,l(f)];case 1:return(e=s.sent())||!f?[3,3]:[4,l(!1)];case 2:e=s.sent(),s.label=3;case 3:return e?(x(e),n=(0,u.kL)(e),b(n||null)):A("Experience not found"),[3,10];case 4:if(s.sent(),!f)return[3,8];s.label=5;case 5:return s.trys.push([5,7,,8]),[4,l(!1)];case 6:return(r=s.sent())?(x(r),t=(0,u.kL)(r),b(t||null),[2]):[3,8];case 7:return s.sent(),[3,8];case 8:return A("Failed to load experience"),[3,10];case 9:return L(!1),[7];case 10:return[2]}}
1))})),v.apply(this,arguments)}}),[n,o,f,C]),I?(0,c.jsx)("div",{children:"Loading experience..."}):w||!E?(0,c.jsx)("div",{children:"Experience not available"}):(0,c.jsxs)("div",{children:[_&&(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:_}}),(0,c.jsx)(u.yl,{experience:E,locale:o})]})}}}]);
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.