PageSourceSearch

https://www.outdoor-magazin.com/_next/static/chunks/communityprofilenewsletter.9e2049e2e0c32e23.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31040],{44132:(e,t,s)=>{s.d(t,{Q:()=>i});var l=s(55729),r=s(4455),n=s(81278);let i=({targetUrl:e="/"})=>{let t=(0,l.useContext)(r.VQ),[s,i]=(0,l.useState)(!0),a=(0,n.useRouter)(),o=async()=>{if(s){let s=await t.revalidateWithValue();i(!1),!t?.loginValidated||t?.loggedIn||s||(a?a.push(e):console.error(`RequireAuth :: Router not present, trying to redirect to ${e}`))}else t?.loginValidated&&!t?.loggedIn&&(a?a.push(e):console.error(`RequireAuth :: Router not present, trying to redirect to ${e}`))};return(0,l.useEffect)(()=>{o()},[t?.loginValidated,t?.loggedIn]),null}},99760:(e,t,s)=>{s.r(t),s.d(t,{CommunityProfileNewsletter:()=>g,default:()=>_});var l=s(6029),r=s(70217),n=s(96463),i=s(16718),a=s(55729),o=s(64996),c=s(4455),d=s(44132),u=s(81163),m=s(31332),h=s(23693),x=s(58376),p=s(38252);let g=({element:e,page:t,isStorybook:s=!1,...g})=>{let _,b,f=(0,a.useContext)(c.VQ),j=(0,o.A)(),[k,v]=(0,a.useState)(null),[w,N]=(0,a.useState)(!1),y=(0,a.useContext)(p.HP),S=(0,x.z1)();(0,a.useEffect)(()=>{f?.user&&V()},[f?.user?.__current_login_token]);let H=async s=>{try{let l=await j(e,null,t,{rkm_auth_token:f?.user?.__current_login_token},{selected:s});N(l?.isSaved===!0),l?.isSaved===!0&&S.track("newsletter.form.submit",{destination_host:y.apiHost,href:`${y.apiHost}/irelements/element`}),v(l)}catch(e){console.error(e)}},V=async()=>{try{let s=await j(e,null,t,{rkm_auth_token:f?.user?.__current_login_token});v(s)}catch(e){console.error(e)}};if(!k&&!s)return null;!k&&s?(_=g?.data,b=g?.headline):(_=k?.data,b=k?.headline);let C={};for(let e=0;e<_?.length;e++){let t=_[e];t.subscribed&&(C[t.id]=!0)}return(0,l.jsx)("div",{className:"mx-auto lg:col-span-2 lg:w-px-600",children:(0,l.jsx)(x.yI,{name:"newsletter.form.impression",visible:!0,action:{destination_host:y.apiHost,href:`${y.apiHost}/irelements/element`},children:(0,l.jsxs)(i.l,{className:"mb-8 lg:col-span-2 lg:mx-auto lg:w-px-600",onSubmit:e=>{let t=[];for(let s in e)!0===e[s]&&t.push(s);H(t)},initialValues:C,children:[(0,l.jsx)(d.Q,{}),(0,l.jsx)("div",{className:"mx-auto mb-9 max-w-px-600",children:(0,l.jsx)(h.Q,{children:(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)(m.Headline,{isDarkMode:!0,size:"medium",type:"article",headline:b})})})}),(0,l.jsxs)("div",{className:"mx-auto mb-9 max-w-px-600 px-4",children:[(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsx)(r.Text,{isDarkMode:!0,children:"Hier finden Sie eine \xdcbersicht Ihrer abonnierten Newsletter."})}),w&&(0,l.jsx)("div",{className:"mb-4 font-extrabold",children:(0,l.jsx)(r.Text,{isDarkMode:!0,children:"\xc4nderungen erfolgreich gespeichert!"})}),(0,l.jsx)("div",{className:"mb-9 space-y-4",children:_?.map((e,t)=>(0,l.jsx)(n.S,{name:e.id,label:e.subject},t))}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(u.Button,{type:"submit",text:"Speichern"})})]})]})})})},_=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.