PageSourceSearch

https://www.falk.de/_next/static/chunks/329.450aa12edd0016a4.js

js falk.de collected 2026-10-02 04:26:45 UTC 13,420 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[329],{15329:function(e,t,n){n.r(t),n.d(t,{default:function(){return X}});var o=n(11527),a=n(50959),i=n(88561),r=n(14487),s=n.n(r),l=n(56953),d=n(87468),u=n(9639),c=n(11993),g=n(83067);let{contentPass:{url:f,accountId:p}}=l.default,v=!1,y={hasValidSubscription:()=>!1,isLoggedIn:()=>!1},m=e=>e.isLoggedIn()&&e.hasValidSubscription(),_=e=>{var t,n;return null!==(t=window._sp_)&&void 0!==t&&!!t.config&&(window._sp_.config.gdpr={...window._sp_.config.gdpr,targetingParams:{...null===(n=window._sp_.config.gdpr)||void 0===n?void 0:n.targetingParams,acps:e}},!0)},w=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=_(e);if(o&&(window._sp_.config.propertyHref=location.href),!o||!(null===(t=window._sp_)||void 0===t?void 0:t.executeMessaging)){if(n>=500){v=!1,d.Z.warn("SourcePoint did not become ready for messaging.");return}if(0===n){if(v)return;v=!0,d.Z.log("SourcePoint not loaded yet. Retrying.")}window.setTimeout(()=>w(e,n+1),10);return}if(v=!1,!window._sp_.config.isSPA){d.Z.warn("SourcePoint not in SPA mode.");return}d.Z.log("Starting SourcePoint."),window._sp_.executeMessaging()},h=()=>{let e=(0,c.T)(),t=(0,i.useRouter)(),[n,r]=(0,a.useState)(),[l,g]=(0,a.useState)(!1),v=(0,a.useMemo)(()=>Array.isArray(t.query.pagePath)?t.query.pagePath.join("/"):void 0,[t.query.pagePath]);(0,a.useEffect)(()=>{n&&w(m(n)?"true":"false")},[t.pathname,v,n]);let _=(0,a.useCallback)(()=>{cp("authenticate",function(t,n){var o,a;let i=null!=n?n:y,s=i.hasValidSubscription(),l=i.isLoggedIn();e((0,u.dN)({isLoaded:!0,error:t,user:{hasValidSubscription:s,isLoggedIn:l}})),t&&d.Z.warn("Content Pass authentication failed.",t),null===(o=(a=window).__tcfapi)||void 0===o||o.call(a,"getCustomVendorConsents",2,t=>{var n;e((0,u.AX)({customVendorGrants:Object.entries(null!==(n=t.grants)&&void 0!==n?n:{}).filter(e=>{let[,{vendorGrant:t}]=e;return!!t}).map(e=>{let[t]=e;return t})}))}),d.Z.log("set user"),r(i)})},[e]),h=(0,a.useCallback)(()=>{let t=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!window.__tcfapi){if(n>=500){d.Z.warn("SourcePoint TCF API did not become ready.");return}window.setTimeout(()=>t(n+1),10);return}window.__tcfapi("addEventListener",2,(t,n)=>{n&&("tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus)&&(e((0,u.AX)({vendorGrants:Object.entries(t.vendor.consents).filter(e=>{let[,t]=e;return!!t}).map(e=>{let[t]=e;return t})})),_())})};t()},[_,e]),S=(0,a.useCallback)(()=>{if(!p||!f){d.Z.warn("Content Pass not configured properly");return}d.Z.log("Enabling Content Pass"),cp("create",p,{baseUrl:f}),cp("render",{onFullConsent:()=>{d.Z.log("[CP] onFullConsent")}}),h(),_()},[_,h]),k=(0,a.useCallback)(()=>{g(!0),S()},[S]),P=(0,a.useCallback)(()=>{cp("fatal",Error("Content Pass SDK failed to load."))},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s(),{id:"contentpass integration","data-description":"contentpass integration",src:"data:text/javascript,".concat(encodeURI(C)),onLoad:k}),l&&b&&(0,o.jsx)(s(),{id:"contentpass-sdk",src:b,onError:P})]})},b=f?"".concat(f,"/now.js"):void 0,C='!function(C,o,n,t,e,P,a,s){C.CPObject=n,C[n]||(C[n]=function(){for(var i=arguments.length,c=new Array(i),r=0;r<i;r++)c[r]=arguments[r];var f=c[0],u=c[1],l=c[2];if(C[n].q||(C[n].q=[]),e=Array.prototype.slice.call(arguments,0),!C[n].patched)if("fatal"===f&&u)C[n].le=u,Array.prototype.forEach.call(C[n].q,(function(e){"error"===e[0]&&"function"==typeof e[1]&&e[1](u)}));else if("error"===f&&"function"==typeof u)C[n].le&&u(C[n].le);else if("extension"===f&&u)l&&"function"==typeof l.init&&(l.init(),l.initialized=!0);else if("authenticate"===f&&"function"==typeof u){try{P=-1===(o.cookie||"").indexOf("_cpauthhint=")&&!(C.localStorage||{})._cpuser&&-1===C.location.href.toLowerCase().indexOf("cpauthenticated")}catch(e){P=!1}if(P){a={isLoggedIn:function(){return!1},hasValidSubscription:function(){return!1}};var p=u,d=!1,h=function(e,i){d||(d=!0,p(e,i))};if(e[1]=h,"function"==typeof o.hasPrivateToken)try{o.hasPrivateToken(t||"https://my.contentpass.net").then((function(e){e||h(null,a)})).catch((function(){}))}catch(e){}else h(null,a)}}C[n].q.push(e)});try{((s=(o.cookie.split("_cpauthhint=")[1]||"").split(";")[0])?Number(s[1]):NaN)>0&&(o.body?o.body.classList.add("cpauthenticated"):o.addEventListener("DOMContentLoaded",(function(){o.body.classList.add("cpauthenticated")})))}catch(e){}C[n].l=+new Date,C[n].sv=6}(window,document,"cp");';g.Ts&&(h.displayName="ContentCPass");var S=(0,a.memo)(h),k=n(33236),P=n(40578);let{googleAnalytics:{code:L,customVendorId:Z}}=l.default;window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)};let j=()=>{let e=(0,P.Z)(),t=(0,a.useMemo)(()=>L[e],[e]),n=(0,a.useCallback)(async()=>
1{if(!t){d.Z.warn("No Google Analytics code found.");return}d.Z.log("Enabling Google Analytics"),window.gtag&&(gtag("config",t,{debug_mode:!1}),gtag("consent","default",{ad_storage:"denied",analytics_storage:"granted",wait_for_update:500}),gtag("set","ads_data_redaction",!0),gtag("js",new Date))},[t]),i=(0,a.useCallback)(()=>{window.gaGlobal&&(d.Z.log("Disabling Google Analytics"),window.gtag("consent","update",{analytics_storage:"denied"}))},[]);return(0,o.jsx)(k.Z,{customVendor:Z,blockCondition:"hasValidSubscription",onGrant:n,onBlock:i,children:(0,a.useMemo)(()=>(0,o.jsx)(s(),{src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)}),[t])})};g.Ts&&(j.displayName="GoogleAnalytics");var E=(0,a.memo)(j),x=n(52197);let{sourcePoint:{accountId:A,url:N}}=l.default,G=()=>{let[e,t]=(0,a.useState)(!1),{i18n:{language:n}}=(0,x.$)(),i=(0,a.useCallback)(()=>{if(!A){d.Z.warn("SourcePoint not configured properly.");return}if(d.Z.log("Enabling SourcePoint"),window._sp_queue=[],window._sp_&&window._sp_.config){var e;window._sp_.config={...window._sp_.config,accountId:A,baseEndpoint:N,isSPA:!0,gdpr:{...window._sp_.config.gdpr,consentLanguage:n,targetingParams:{...null===(e=window._sp_.config.gdpr)||void 0===e?void 0:e.targetingParams,acps:"false"}}}}else window._sp_={config:{gdpr:{consentLanguage:n,targetingParams:{acps:"false"}},accountId:A,baseEndpoint:N,isSPA:!0}};t(!0)},[n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s(),{id:"CMP Initialisation","data-description":"CMP Initialisation",src:"data:text/javascript,".concat(encodeURI(M)),onLoad:i}),e&&(0,o.jsx)(s(),{id:"sourcepoint-wrapper",src:"https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js"})]})},M='function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){for(var t,e,o=[],n=window,r=n;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=n.parent}t||(function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))}()';g.Ts&&(G.displayName="SourcePoint");var T=(0,a.memo)(G),D=n(58825),q=n(36009),I=n(97269),O=n(93248),V=n(48888),R=n(4703),F=n(50748),z=n(20048),H=()=>{var e;let t=(0,O.Z)(),n=(0,i.useRouter)(),o=(0,c.C)(F.Oe),r=(0,c.C)(F.jG),s=(0,c.C)(F.tM),{routes:l}=(0,R.Z)(),d=(0,c.C)(V.r),u=(0,z.Z)(),g=(0,c.C)(F.N7),[f,p]=(0,a.useState)(!!g);(0,a.useEffect)(()=>{g&&p(!0)},[g]),(0,a.useEffect)(()=>{if(u&&"route"===t){if(!o&&!r){(0,q.L9)("route_landingpage",{profile:s});return}(null==l?void 0:l.length)&&(f?((0,q.L9)("route_ergebnis_veraendert",{profile:s}),p(!1)):(0,q.L9)("route_ergebnis",{profile:s}))}},[t,l,s,u]),(0,a.useEffect)(()=>{if(u&&"stadt"===t){var e,o,a;(null===(e=d.address)||void 0===e?void 0:e.city)?(0,q.L9)("stadt_ergebnis"):(null===(a=n.query.slug)||void 0===a?void 0:null===(o=a[0])||void 0===o?void 0:o.startsWith("landing--"))?(0,q.L9)("landingpage",{pageName:n.query.slug[0].slice(9)}):(0,q.L9)("stadt_landingpage")}},[t,null===(e=d.address)||void 0===e?void 0:e.city,u]),(0,a.useEffect)(()=>{u&&"home"===t&&(0,q.L9)("home")},[t,u]),(0,a.useEffect)(()=>
1{if(u&&"sonstiges"===t){let e=Array.isArray(n.query.pagePath)?n.query.pagePath.join("/"):"";(0,q.L9)("sonstiges",{pagePath:e})}},[t,u,n.query.pagePath]),(0,a.useEffect)(()=>{u&&"account"===t&&"anmelden"===n.query.route&&(0,q.L9)("myfalk_anmelden")},[t,u,n.query.route])},U=n(80637),K=n(68647);let B=()=>{H();let e=function(){var e,t,n,o,i,r;let s=(0,c.C)(F.iK),l=(0,c.C)(V.r),d=(0,c.C)(F.tM),u=(0,O.Z)(),{routes:g,selectedRouteIndex:f}=(0,R.Z)(),p=s[0],v=s[(null==s?void 0:s.length)-1],y=null==g?void 0:g[f],m=(0,a.useMemo)(()=>{var e,t,n,o,a,i;switch(u){case"route":return{route_type:({car:"car",pedestrian:"walk",bicycle:"bike",publicTransit:"public"})[d],route_distance:(null==y?void 0:y.distance)?y.distance>5e5?"long":y.distance>1e5?"medium":"short":void 0,start_city:null==p?void 0:null===(e=p.address)||void 0===e?void 0:e.city,start_country:null==p?void 0:null===(t=p.address)||void 0===t?void 0:t.countryName,dest_city:null==v?void 0:null===(n=v.address)||void 0===n?void 0:n.city,dest_country:null==v?void 0:null===(o=v.address)||void 0===o?void 0:o.countryName};case"stadt":return{route_type:void 0,route_distance:void 0,start_city:null==l?void 0:null===(a=l.address)||void 0===a?void 0:a.city,start_country:null==l?void 0:null===(i=l.address)||void 0===i?void 0:i.countryName,dest_city:void 0,dest_country:void 0};default:return{}}},[u,null==v?void 0:null===(e=v.address)||void 0===e?void 0:e.city,null==v?void 0:null===(t=v.address)||void 0===t?void 0:t.countryName,null==l?void 0:null===(n=l.address)||void 0===n?void 0:n.city,null==l?void 0:null===(o=l.address)||void 0===o?void 0:o.countryName,d,null==y?void 0:y.distance,null==p?void 0:null===(i=p.address)||void 0===i?void 0:i.city,null==p?void 0:null===(r=p.address)||void 0===r?void 0:r.countryName]);return m}(),t=(0,c.T)(),n=(0,P.Z)(),i=(0,U.Z)(),{registeredSlots:r,isLoaded:g}=(0,c.C)(I.L6),f=(0,K.Z)(),p=(0,z.Z)(),v=(0,a.useMemo)(()=>l.default.stroer.refreshInterval[n],[n]),y=(0,a.useCallback)(function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e&&(d.Z.log("Reloading all banners"),r.filter(e=>"rectangle2"!==e).forEach(e=>{t((0,u.HY)(e))}),cp("impression"))},[t,r]),m=(0,D.y1)(y,1e3*v,{leading:!0,trailing:!1}),_=(0,D.y1)((0,a.useCallback)(()=>{r.includes("rectangle2")&&(d.Z.log("Reloading rectangle2"),t((0,u.HY)("rectangle2")),cp("impression"))},[t,r]),1e3*v,{leading:!0,trailing:!1}),w=(0,a.useCallback)(()=>{var t,n;if(!window.SDG)return;let o=Object.keys(e),a=Object.fromEntries(Object.entries(e).filter(e=>!!e[1]).map(e=>{let[t,n]=e;return[t,[n]]}));d.Z.log("Updating Str\xf6er key/values:",e),null===(t=window.SDG)||void 0===t||t.Publisher.removeKeyValues(o),null===(n=window.SDG)||void 0===n||n.Publisher.addKeyValues(a),m()},[e,m]),[h,b]=(0,a.useState)(null),C=(0,a.useCallback)(()=>{window.SDG&&i&&h!==i&&(d.Z.log("Setting Str\xf6er zone:",i),window.SDG.Publisher.setZone(i),b(i),h&&"zoneError"!==h&&(d.Z.log("Zone changed",{previousZone:h,zone:i}),m()))},[i]);(0,a.useEffect)(w,[w]),(0,a.useEffect)(C,[C]);let S=(0,a.useCallback)(()=>{window.SDG&&(d.Z.log("Enabling Stroer"),t((0,u.gH)({isLoaded:!0})),w(),C())},[t,w,C]),L=(0,a.useCallback)(()=>{window.SDG&&(d.Z.log("Disabling Stroer"),window.SDG.Publisher.unregisterAllSlots(),t((0,u.gH)({isLoaded:!1})))},[t]);(0,a.useEffect)(()=>(0,q.Se)({home_map:()=>m(),route_map:()=>m(),stadt_map:()=>m(),hotels_map:()=>m(),route_landingpage:()=>y(),route_ergebnis:()=>y(),route_ergebnis_veraendert:()=>y(),home_drucken_aktionen:()=>_(),route_drucken_aktionen:()=>_(),stadt_drucken_aktionen:()=>_(),hotels_drucken_aktionen:()=>_(),entdecken_drucken_aktionen:()=>_()}),[m,_,y]);let Z=(0,a.useMemo)(()=>r.length>0,[r.length]),[j,E]=(0,a.useState)(!1);(0,a.useEffect)(()=>{g&&Z&&f&&p&&E(!0)},[g,Z,p,r,m,f]),(0,a.useEffect)(()=>{var e;j&&(d.Z.log("Finalizing slots",r),null===(e=window.SDG)||void 0===e||e.Publisher.finalizeSlots(),E(!1))},[r,j]);let x="undefined"!=typeof document&&document.location.href.match(/sdgmt=preview/i)?"preview":"live";return(0,o.jsx)(k.Z,{blockCondition:"hasValidSubscription",onBlock:L,onGrant:S,children:(0,a.useMemo)(()=>(0,o.jsx)(s(),{src:"https://cdn.stroeerdigitalgroup.de/metatag/".concat(x,"/mdnx_falk/metaTag.min.js"),onLoad:S}),[S,x])})};g.Ts&&(B.disaplyName="StroerMetaTag");var J=(0,a.memo)(B);let W=()=>{let{isLoaded:e}=(0,c.C)(I.Uo);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{}),(0,o.jsx)(S,{}),(0,o.jsx)(E,{}),e&&(0,o.jsx)(J,{})]})};g.Ts&&(W.displayName="TrackingScripts");var X=(0,a.memo)(W)}}]);

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.