PageSourceSearch

https://www.internationalgpa.com/assets/OptOutTerminationEmails-D9_bGExS.js

js internationalgpa.com collected 2026-10-02 01:33:11 UTC 4,485 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-data-D-e1GZUE.js";import{k as x,f as o,L as l}from"./vendor-react-DrsAlTy6.js";import{ad as u}from"./index-DMUb2jDT.js";import{aj as h,z as p,E as y}from"./vendor-ui-C13YiePT.js";function N(){const[i]=x(),[a,r]=o.useState("loading"),[c,t]=o.useState("");return o.useEffect(()=>{async function m(){const n=i.get("token");if(!n){r("error"),t("Invalid or missing token.");return}try{const{data:s,error:d}=await u.rpc("opt_out_by_token",{p_token:n});if(d){console.error("Opt-out error:",d),r("error"),t("Failed to process your request. Please contact support.");return}s!=null&&s.success?(r("success"),t("You have been successfully unsubscribed from termination reminder emails.")):(r("error"),t((s==null?void 0:s.error)||"Failed to process your request."))}catch(s){console.error("Exception during opt-out:",s),r("error"),t("An unexpected error occurred. Please contact support.")}}m()},[i]),e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-white to-emerald-50 py-16",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-xl p-8 sm:p-12 border border-gray-100",children:[a==="loading"&&e.jsxs("div",{className:"text-center",children:[e.jsx(h,{className:"w-16 h-16 text-primary mx-auto mb-4 animate-spin"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Processing Your Request"}),e.jsx("p",{className:"text-gray-600",children:"Please wait while we update your preferences..."})]}),a==="success"&&e.jsxs("div",{className:"text-center",children:[e.jsx(p,{className:"w-16 h-16 text-green-500 mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Unsubscribed Successfully"}),e.jsx("p",{className:"text-gray-600 mb-6",children:c}),e.jsxs("div",{className:"bg-primary/5 border-l-4 border-primary/60 p-4 mb-6 text-left",children:[e.jsx("h3",{className:"font-semibold text-dark mb-2",children:"What happens now:"}),e.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-dark",children:[e.jsx("li",{children:"You will not receive any more reminder emails (60-day, 5-day warnings)"}),e.jsx("li",{children:"You will still receive a final confirmation email when your account closes"}),e.jsx("li",{children:"Your account will still be terminated on the scheduled date"}),e.jsx("li",{children:"You can still log in to export your data before the deletion date"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{to:"/dashboard",className:"inline-block w-full sm:w-auto px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Go to Dashboard"}),e.jsxs("p",{className:"text-sm text-gray-500 mt-4",children:["Need to export your data?"," ",e.jsx(l,{to:"/dashboard",className:"text-primary hover:underline",children:"Access your dashboard"})]})]})]}),a==="error"&&e.jsxs("div",{className:"text-center",children:[e.jsx(y,{className:"w-16 h-16 text-red-500 mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Something Went Wrong"}),e.jsx("p",{className:"text-gray-600 mb-6",children:c}),e.jsxs("div",{className:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6 text-left",children:[e.jsx("h3",{className:"font-semibold text-yellow-900 mb-2",children:"What you can do:"}),e.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-yellow-800",children:[e.jsx("li",{children:"Log in to your account and manage email preferences from your dashboard"}),e.jsxs("li",{children:["Contact us at ",e.jsx("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})]}),e.jsx("li",{children:"Call us at 913-513-1525"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{to:"/dashboard",className:"inline-block w-full sm:w-auto px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Go to Dashboard"}),e.jsx("p",{className:"text-sm text-gray-500 mt-4",children:e.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"Contact Support"})})]})]}),e.jsx("hr",{className:"my-8 border-gray-200"}),e.jsx("div",{className:"text-center text-sm text-gray-500",children:e.jsxs("p",{children:["Questions about data retention or account closure?"," ",e.jsx("a",{href:"/privacy",className:"text-primary hover:underline",children:"View Privacy Policy"})]})})]})})})}export{N 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.