PageSourceSearch

https://www.outdoor-magazin.com/_next/static/chunks/structureheiseplusoverlay.0c713f8e73d752fe.js

js outdoor-magazin.com collected 2026-09-24 17:21:49 UTC 2,616 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24808],{40476:(e,s,o)=>{o.r(s),o.d(s,{StructureHeisePlusOverlay:()=>g,default:()=>p});var l=o(6029),n=o(55729),a=o(38252),r=o(41474),t=o(4455);let i=(0,o(29784).vt)(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})}));var u=o(71024);let c=o.n(u)()(()=>Promise.all([o.e(94960),o.e(88563),o.e(80002),o.e(26334)]).then(o.bind(o,26334)).then(e=>e.HeisePlusOverlay),{loadableGenerated:{webpack:()=>[26334]},ssr:!1});var h=o(92691);let w="[HeisePlusOverlay]",d=()=>"true"===new URLSearchParams(window.location.search).get("heisePlusBanner"),f=new Date("2026-05-27T13:00:00+02:00").getTime(),v=()=>Date.now()<f+6048e5,g=()=>{let{enablePlus:e,enablePlusTwo:s,project:o}=(0,n.useContext)(a.HP),{hasAbo:u,hasNewAbo:g,ready:p}=(0,n.useContext)(r.IB),{user:y,loginValidated:P,loggedIn:b}=(0,n.useContext)(t.VQ),O=(0,h.A)(),m=i(e=>e.isOpen),k=i(e=>e.open),C=i(e=>e.close),$=(0,n.useRef)(!1),_=(0,n.useRef)(!1),H=e||s,S=u||g,A=o?o.toLowerCase():null,x=A?y?.profile?.heisePlusOverlay?.[A]:null,T=!!x,B=y?.__current_login_token;return((0,n.useEffect)(()=>{let e;if($.current)return;let s=d();e=s?{show:!0,reason:"debug-override (?heisePlusBanner=true)"}:H?P?b?p?S?T?{show:!1,reason:`already seen for portal ${o} at ${x}`}:v()?{show:!0,reason:"all gates passed"}:{show:!1,reason:`outside active window (ended at ${new Date(f+6048e5).toISOString()})`}:{show:!1,reason:"user has no active Plus abo (hasAbo + hasNewAbo both false)"}:{show:!1,reason:"plus status not yet loaded — waiting for plenigo"}:{show:!1,reason:"user not logged in"}:{show:!1,reason:"login not yet validated — waiting for community/validate"}:{show:!1,reason:"portal has no Plus offering (enablePlus/enablePlusTwo both false)"};let l=P&&(p||!H);if(!_.current&&(l||s)&&(_.current=!0,console.log(`${w} user status`,{portal:o,loggedIn:b,loginValidated:P,plusReady:p,userId:y?._id||null,portalHasPlus:H,hasAbo:u,hasNewAbo:g,isPlusSubscriber:S,alreadySeen:T,seenAt:x||null,heisePlusOverlayProfile:y?.profile?.heisePlusOverlay||null,withinActiveWindow:v(),debugOverride:s}),console.log(`${w} display decision`,e)),e.show){if($.current=!0,s)return void k();console.log(`${w} scheduling overlay in 10000ms`),window.setTimeout(()=>{console.log(`${w} showing overlay now (after 10000ms delay)`),k()},1e4)}},[H,S,T,P,b,p,B,o,x,y,u,g,k,O]),(H||d())&&m)?(0,l.jsx)(c,{onClose:()=>{C(),!d()&&B&&(console.log(`${w} marking overlay as seen in profile (close)`),O.markHeisePlusOverlaySeen(B).catch(e=>{console.error(`${w} markHeisePlusOverlaySeen failed`,e)}))},onCtaClick:null}):null},p=g}}]);

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.