PageSourceSearch

https://laxallstars.com/assets/Unsubscribe-3c900b61.js

js laxallstars.com collected 2026-10-02 03:15:49 UTC 3,460 bytes, 1 lines download raw bytes

1import{d,ai as m,r as l,j as s,cE as x,bO as u,a$ as h,bo as g}from"./vendor-1b404ade.js";import{S as j,N as f,B as c,F as p,A as N,o as b}from"./index-a2dfbdc1.js";import{C as y,a as v,b as k,d as w,c as C}from"./card-79252cd7.js";const E=()=>{const i=d(),[o]=m(),t=o.get("token")||"",[e,a]=l.useState({status:"loading"});return l.useEffect(()=>{if(!t){a({status:"error",message:"Missing unsubscribe token in link"});return}(async()=>{try{const r=await fetch(`${N}${b}/emails/newsletter/unsubscribe`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),n=await r.json().catch(()=>({}));r.ok&&n.success?a({status:"success",message:n.message||"You've been unsubscribed."}):a({status:"error",message:n.detail||`Could not unsubscribe (${r.status})`})}catch{a({status:"error",message:"Network error — please try again in a moment."})}})()},[t]),s.jsxs("div",{className:"min-h-screen bg-background text-foreground field-grid",children:[s.jsx(j,{seo:{title:"Unsubscribe",description:"Unsubscribe from LaxAllStars email.",noIndex:!0}}),s.jsx(f,{}),s.jsx("main",{className:"relative",children:s.jsx("div",{className:"relative z-10 py-12",style:{paddingTop:"120px"},children:s.jsx("div",{className:"max-w-md mx-auto px-6",children:s.jsxs(y,{className:"bg-card border-red-500/20 border-2 stick-mesh",children:[s.jsxs(v,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("div",{className:"w-10 h-10 bg-red-600 flex items-center justify-center rounded-lg transform -rotate-6",children:s.jsx(x,{className:"w-5 h-5 text-white"})}),s.jsx(k,{className:"text-2xl font-black text-red-500 transform -skew-x-1",children:"UNSUBSCRIBE"})]}),s.jsx(w,{children:"We're sorry to see you go."})]}),s.jsxs(C,{children:[e.status==="loading"&&s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground py-6 justify-center",children:[s.jsx(u,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"Processing your request…"})]}),e.status==="success"&&s.jsxs("div",{className:"space-y-4 py-4",children:[s.jsxs("div",{className:"flex items-start gap-2 text-green-500",children:[s.jsx(h,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold",children:"All set"}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.message})]})]}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Changed your mind? Sign in and re-enable LaxAllStars email under your"," ",s.jsx("a",{href:"/email-settings",className:"underline",children:"email settings"}),"."]}),s.jsx(c,{variant:"outline",className:"w-full",onClick:()=>i("/"),children:"Back to LaxAllStars"})]}),e.status==="error"&&s.jsxs("div",{className:"space-y-4 py-4",children:[s.jsxs("div",{className:"flex items-start gap-2 text-red-500",children:[s.jsx(g,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-bold",children:"Something went wrong"}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.message})]})]}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["If this keeps happening, contact us at"," ",s.jsx("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})," ","and we'll unsubscribe you manually."]}),s.jsx(c,{variant:"outline",className:"w-full",onClick:()=>i("/"),children:"Back to LaxAllStars"})]})]})]})})})}),s.jsx(p,{})]})};export{E 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.