PageSourceSearch

https://www.dfb-talente.de/component---src-dfb-gatsby-dfb-theme-pa…preview-renderer-js-d02c779bda00bf20ac88.js

js dfb-talente.de collected 2026-10-05 05:34:11 UTC 3,432 bytes, 2 lines download raw bytes

1(self.webpackChunktfp_ssg=self.webpackChunktfp_ssg||[]).push([[734],{2666:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var o=t(6540),a=t(9866),s=t(4256),i=t(3907),r=t(3268);function l(){var e,n,t,l;const{0:d,1:c}=(0,o.useState)({story:null,info:"Warte auf Preview-Inhalte von Typo3"}),{0:u,1:v}=(0,o.useState)(null);async function w(e){const n=e.data;try{const e=JSON.parse(n);if(c(e=>Object.assign({},e,{info:"Preview-Daten von Typo3 erhalten."})),console.info("Preview-Daten von Typo3 erhalten."),(0,r.handleTranslations)(e,{i18n:s.i18n}),c(e=>Object.assign({},e,{info:"Rendering startet"})),console.info("Rendering startet"),e.content.body&&e.content.body[0]&&"html"===e.content.body[0].component&&e.content.body[0].text&&-1!==e.content.body[0].text.indexOf("<!DOCTYPE html>")){c(e=>Object.assign({},e,{info:"HTML-Landing-Page erkannt: Ersetzen des Documents"}));let n=(0,i.YL)(e.content.body[0].text);document.open(),document.write(n),document.close()}else c(n=>Object.assign({},n,{story:e}));c(e=>Object.assign({},e,{info:"Page rendert"})),c(e=>Object.assign({},e,{info:"Page abgeschlossen"}))}catch(t){c(e=>Object.assign({},e,{info:"Es ist ein Fehler beim Rendering aufgetreten: "+t.stack}))}}if((0,o.useEffect)(()=>{window.addEventListener?window.addEventListener("message",w,!1):window.attachEvent("onmessage",w),window.parent.postMessage("previewRendererLoaded","*")},[]),(0,o.useEffect)(()=>{var e;d.story&&(window.previewUiModulesInterval&&window.clearInterval(window.previewUiModulesInterval),window.previewUiModulesInterval=window.setInterval(()=>{window&&window.upgradeAllBehaviours&&(window.upgradeAllBehaviours(),window.clearInterval(window.previewUiModulesInterval))},500),v(null===(e=d.story)||void 0===e?void 0:e.content),(0,r.handleTranslations)(d.story,{i18n:s.i18n}))},[d]),"logged_in_groups"===(null===(e=d.story)||void 0===e||null===(n=e.access)||void 0===n?void 0:n.type)&&null!==(t=d.story)&&void 0!==t&&null!==(l=t.access)&&void 0!==l&&l.groups.includes("tafoeuser")){const e="/private",n=window.location.pathname;if("false"!==new URLSearchParams(window.location.search).get("redirect"))return window.location.replace(e+n+"?redirect=false"),null}return o.createElement(o.Fragment,null,d.story&&u?o.createElement(o.Fragment,null,a.A[u.component]?o.createElement(a.A[u.component],{key:u._uid,content:u,page:d.story,pageType:d.story.type,parentdata:d.story.parentdata,parents:d.story.parents,eventdata:d.story.eventdata,metadata:d.story.metadata||{},translations:JSON.parse(d.story.translations)}):"PageType "+u.component+" not created yet"):o.createElement(o.Fragment,null,o.createElement("div",{style:{margin:"100px",textAlign:"center"}},d.info)))}},3268:function(e){e.exports={handleTranslations:function(e,n){const t=function(e,n){var t,o,a,s,i;let r=e.language||"de";"1"===e.language.toString()&&(r="en");const l=null==n||null===(t=n.i18n)||void 0===t||null===(o=t.locales)||void 0===o?void 0:o[r],d=null==n||null===(a=n.i18n)||void 0===a?void 0:a.exclusiveComponentNodes;if(!l||!d)return l;const c=Object.assign({},l),u=(null===(s=e.content)||void 0===s||null===(i=s.body)||void 0===i?void 0:i.map(e=>e.component))||[];return Object.entries(d).forEach(e=>{let[n,t]=e;t.some(e=>u.includes(e))||delete c[n]}),c}(e,n);e.translations=t?JSON.stringify(t):"{}"}}}}]);
2//# sourceMappingURL=component---src-dfb-gatsby-dfb-theme-pages-preview-renderer-js-d02c779bda00bf20ac88.js.map

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.