PageSourceSearch

https://the-spot-mediafilm.com/assets/js/NewsletterConfirmPage-PGx9yQOB.js

js the-spot-mediafilm.com collected 2026-09-24 21:29:30 UTC 3,591 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"2d6aa721bb731e883a03145f60a794a59bd0aec9"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0818893a-6440-47b2-95ac-0ac285714dfe",e._sentryDebugIdIdentifier="sentry-dbid-0818893a-6440-47b2-95ac-0ac285714dfe")}catch(s){}}();import{j as e}from"./react-vendor-BPB8Kb6n.js";import{h as t,r as s,L as r}from"./react-router-D9dF4cWR.js";import{L as a,h as n,A as i}from"./icons-vendor-F5xBkA1N.js";var l=()=>{const[l]=t(),[d,c]=s.useState("loading"),[o,m]=s.useState("");s.useEffect(()=>{h()},[]);const h=async()=>{try{const e=l.get("token"),t=l.get("contact_id");if(!e||!t)return c("error"),void m("Ungültiger Bestätigungslink");const s=await fetch("https://api.the-spot-mediafilm.com/functions/v1/confirm-newsletter",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRwaXJ2dGRwcmFpZXJocWJ3dGljIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODMzMjY0MjIsImV4cCI6MjA5ODkwMjQyMn0.dF0MgqhdJr0ZlQmTEZDN982O3ItzCaYUeLzLcapusvU"},body:JSON.stringify({token:e,contact_id:t})}),r=await s.json();if(!s.ok)return c("error"),void m(r.error||"Fehler bei der Bestätigung");if(r.already_confirmed)return c("success"),void m("Ihre E-Mail-Adresse wurde bereits bestätigt");c("success"),m(r.message||"Ihre Newsletter-Anmeldung wurde erfolgreich bestätigt!")}catch(e){c("error"),m("Ein Fehler ist aufgetreten")}};return e.jsx("div",{className:"bg-slate-50 dark:bg-slate-900 min-h-screen py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsxs("div",{className:"bg-white dark:bg-slate-800 rounded-lg shadow-md p-8 text-center",children:["loading"===d&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inline-flex items-center justify-center h-16 w-16 rounded-full bg-primary bg-opacity-10 mb-6",children:e.jsx(a,{size:32,className:"text-primary animate-spin"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-4",children:"Newsletter-Anmeldung wird bestätigt..."})]}),"success"===d&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inline-flex items-center justify-center h-16 w-16 rounded-full bg-green-100 dark:bg-green-900/30 mb-6",children:e.jsx(n,{size:32,className:"text-green-500"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-4",children:"Bestätigung erfolgreich!"}),e.jsx("p",{className:"text-slate-600 dark:text-slate-300 mb-6",children:o}),e.jsx("p",{className:"text-slate-600 dark:text-slate-300 mb-6",children:"Sie werden ab sofort die von Ihnen ausgewählten Newsletter erhalten."}),e.jsx(r,{to:"/",className:"btn-primary inline-block",children:"Zur Startseite"})]}),"error"===d&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inline-flex items-center justify-center h-16 w-16 rounded-full bg-red-100 dark:bg-red-900/30 mb-6",children:e.jsx(i,{size:32,className:"text-red-500"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-4",children:"Bestätigung fehlgeschlagen"}),e.jsx("p",{className:"text-slate-600 dark:text-slate-300 mb-6",children:o}),e.jsxs("div",{className:"flex gap-4 justify-center",children:[e.jsx(r,{to:"/newsletter",className:"btn-primary",children:"Erneut anmelden"}),e.jsx(r,{to:"/",className:"btn-secondary",children:"Zur Startseite"})]})]})]})})})})};export{l as default};

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.