PageSourceSearch

https://the-spot-mediafilm.com/assets/js/SharedArticlePage-mc_GjVeN.js

js the-spot-mediafilm.com collected 2026-10-02 08:18:00 UTC 9,633 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:"a68b32a3c46c41d38e944cc0474febdf5d3ae6d1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b5ccaac1-1083-4c5e-912b-f81927b0c2ce",e._sentryDebugIdIdentifier="sentry-dbid-b5ccaac1-1083-4c5e-912b-f81927b0c2ce")}catch(s){}}();import{j as e}from"./react-vendor-p0zBBjzR.js";import{f as t,u as s,r as a,L as l}from"./react-router-DGCK6SaC.js";import{v as r}from"./articleSharingService-C5Mhpb5x.js";import{a as i,b as d,t as n,s as c}from"./index-DcifxHNr.js";import{S as o}from"./LoadingSkeleton-DtKInUge.js";import{A as x,av as m,c as u,U as b,M as h,G as g}from"./icons-vendor-DSYRbWvH.js";import"./supabase-vendor-C0quSso9.js";var f=()=>{const{token:f}=t(),j=s(),{user:p}=i(),{showToast:k}=d(),[w,N]=a.useState(!0),[v,y]=a.useState(!1),[S,A]=a.useState(""),[T,z]=a.useState(""),[I,D]=a.useState(""),[E,R]=a.useState(!1),[L,Z]=a.useState(null),[M,_]=a.useState({email:"",name:"",password:""});a.useEffect(()=>{if(!f)return D("Kein Share-Token gefunden"),void N(!1);B()},[f]);const B=async()=>{if(!f)return;const e=await r(f);e.valid&&e.articleId?(y(!0),A(e.articleId),z(e.articleTitle||""),p?j(`/news/article/${e.articleId}`):Z(await n.isSharedArticleTrialActive())):(y(!1),D(e.error||"Ungültiger Share-Link")),N(!1)};return w?e.jsx("div",{className:"min-h-screen bg-slate-50 dark:bg-slate-900 py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-2xl mx-auto space-y-4",children:[e.jsx(o,{className:"h-12 w-3/4"}),e.jsx(o,{className:"h-8 w-1/2"}),e.jsx(o,{className:"h-64 w-full"}),e.jsx(o,{className:"h-12 w-full"}),e.jsx(o,{className:"h-12 w-full"})]})})}):!v||I?e.jsx("div",{className:"min-h-screen bg-slate-50 dark:bg-slate-900 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 p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-red-100 dark:bg-red-900/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(x,{className:"w-8 h-8 text-red-600 dark:text-red-400"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-2",children:"Ungültiger Link"}),e.jsx("p",{className:"text-slate-700 dark:text-slate-400 mb-6",children:I||"Dieser Share-Link ist abgelaufen oder ungültig."}),e.jsx(l,{to:"/",className:"inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-6 rounded-lg transition-colors",children:"Zur Startseite"})]})})})}):!1===L?e.jsx("div",{className:"min-h-screen bg-slate-50 dark:bg-slate-900 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 p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-slate-100 dark:bg-slate-700 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(x,{className:"w-8 h-8 text-slate-600 dark:text-slate-400"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-2",children:"Aktion nicht mehr verfügbar"}),e.jsx("p",{className:"text-slate-700 dark:text-slate-400 mb-6",children:"Der kostenlose Testzugang über geteilte Artikel ist derzeit nicht aktiv. Du kannst dich jederzeit regulär anmelden oder ein Abo abschließen."}),e.jsxs("div",{className:"flex items-center justify-center gap-3",children:[e.jsx(l,{to:"/login",className:"inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-6 rounded-lg transition-colors",children:"Anmelden"}),e.jsx(l,{to:"/abo",className:"inline-flex items-center gap-2 border border-slate-300 dark:border-slate-700 text-slate-700 dark:text-slate-200 font-semibold py-2 px-6 rounded-lg hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors",children:"Zum Abo"})]})]})})})}):e.jsx("div",{className:"min-h-screen bg-slate-50 dark:bg-slate-900 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 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-blue-600 rounded-lg flex items-center justify-center",children:e.jsx(m,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:"Geteilter Premium-Artikel"}
1),e.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Registriere dich für 2 Tage kostenlosen Zugang"})]})]}),e.jsxs("div",{className:"mb-8 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:[e.jsx("h3",{className:"font-semibold text-blue-900 dark:text-blue-100 mb-2",children:T}),e.jsx("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Ein Abonnent hat diesen Premium-Artikel mit dir geteilt. Registriere dich jetzt und erhalte automatisch 2 Tage kostenlosen Zugang zu allen Inhalten!"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4 mb-8",children:[e.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-700 rounded-lg text-center",children:[e.jsx(u,{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mx-auto mb-2"}),e.jsx("p",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:"2 Tage"}),e.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-400",children:"Kostenloser Zugang"})]}),e.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-700 rounded-lg text-center",children:[e.jsx(m,{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mx-auto mb-2"}),e.jsx("p",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:"Alle Artikel"}),e.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-400",children:"Voller Zugriff"})]}),e.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-700 rounded-lg text-center",children:[e.jsx(x,{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mx-auto mb-2"}),e.jsx("p",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:"Keine Bindung"}),e.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-400",children:"Jederzeit kündbar"})]})]}),e.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),M.email&&M.name&&M.password){R(!0);try{const e=await n.registerViaSharedArticle({email:M.email,password:M.password,name:M.name});if(!e.success)return void("already_registered"===e.error?k("Für diese E-Mail existiert bereits ein Konto. Bitte melde dich an.","error"):"inactive"===e.error?(Z(!1),k("Diese Aktion ist derzeit nicht verfügbar.","error")):k(e.message||"Registrierung fehlgeschlagen","error"));const{error:t}=await c.auth.signInWithPassword({email:M.email,password:M.password});if(t)return k("Konto erstellt. Bitte melde dich an.","success"),void j("/login");k("Registrierung erfolgreich! 2-Tage-Testzugang aktiviert.","success"),setTimeout(()=>{window.location.href=`/news/article/${S}`},1200)}catch(t){k(t.message||"Registrierung fehlgeschlagen","error")}finally{R(!1)}}else k("Bitte alle Felder ausfüllen","error")},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:[e.jsx(b,{className:"w-4 h-4 inline mr-2"}),"Name"]}),e.jsx("input",{type:"text",value:M.name,onChange:e=>_({...M,name:e.target.value}),placeholder:"Max Mustermann",required:!0,className:"w-full px-4 py-3 border border-slate-300 dark:border-slate-700 rounded-lg bg-white dark:bg-slate-700 text-slate-900 dark:text-white focus:ring-2 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:[e.jsx(h,{className:"w-4 h-4 inline mr-2"}),"E-Mail"]}),e.jsx("input",{type:"email",value:M.email,onChange:e=>_({...M,email:e.target.value}),placeholder:"[email protected]",required:!0,className:"w-full px-4 py-3 border border-slate-300 dark:border-slate-700 rounded-lg bg-white dark:bg-slate-700 text-slate-900 dark:text-white focus:ring-2 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2",children:"Passwort"}),e.jsx("input",{type:"password",value:M.password,onChange:e=>_({...M,password:e.target.value}),placeholder:"Mindestens 6 Zeichen",required:!0,minLength:6,className:"w-full px-4 py-3 border border-slate-300 dark:border-slate-700 rounded-lg bg-white dark:bg-slate-700 text-slate-900 dark:text-white focus:ring-2 focus:ring-blue-500"})]}),e.jsx("button",{type:"submit",disabled:E,className:"w-full bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold py-3 px-4 roun
1ded-lg disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center gap-2",children:E?"Registriere...":e.jsxs(e.Fragment,{children:["Jetzt registrieren & Artikel lesen",e.jsx(g,{className:"w-5 h-5"})]})})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-slate-700 dark:text-slate-400",children:["Bereits registriert?"," ",e.jsx(l,{to:"/login",className:"text-blue-600 hover:text-blue-700 dark:text-blue-400 font-semibold",children:"Jetzt anmelden"})]})})]})})})})};export{f 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.