PageSourceSearch

https://caimpare.ai/_nuxt/ftDzFI8H.js

js caimpare.ai collected 2026-10-05 13:10:03 UTC 2,057 bytes, 1 lines download raw bytes

1import{E as x,j as f,o as r,c as a,a as t,k as l,t as c,b as d,w as i,d as b,e as v,p as m}from"./g7eelCOP.js";const _={class:"flex-grow flex items-center justify-center bg-slate-950 p-4"},y={class:"w-full max-w-md space-y-8"},g={class:"bg-slate-950 p-8 rounded-lg border border-white/10 shadow-xl shadow-slate-950/25 text-center"},h={key:0},w={key:1},k={class:"mt-2 text-slate-300"},N={key:2},T={class:"mt-2 text-slate-300"},B={__name:"unsubscribe",setup(V){const p=x(),s=m("processing"),o=m("");return f(async()=>{const n=p.query.token;if(!n){s.value="error",o.value="No unsubscribe token was provided. The link may be incorrect.";return}try{const e=await $fetch("/api/public/unsubscribe",{method:"POST",body:{token:n}});s.value="success",o.value=e.message||"You have been successfully unsubscribed from our mailing list."}catch(e){s.value="error",o.value=e.data?.message||"Failed to process your request. The link may be invalid or expired.",console.error("Unsubscribe failed:",e)}}),(n,e)=>{const u=v;return r(),a("div",_,[t("div",y,[t("div",g,[s.value==="processing"?(r(),a("div",h,[...e[0]||(e[0]=[t("h2",{class:"text-2xl font-bold text-white"},"Unsubscribing...",-1),t("p",{class:"mt-2 text-slate-400"},"Please wait while we process your request.",-1)])])):l("",!0),s.value==="success"?(r(),a("div",w,[e[2]||(e[2]=t("h2",{class:"text-2xl font-bold text-green-700"},"Success!",-1)),t("p",k,c(o.value),1),d(u,{to:"/",class:"mt-6 inline-block w-full py-2 px-4 border border-transparent text-sm font-medium rounded-md text-slate-950 bg-cyan-300 hover:bg-cyan-200"},{default:i(()=>[...e[1]||(e[1]=[b(" Go to Homepage ",-1)])]),_:1})])):l("",!0),s.value==="error"?(r(),a("div",N,[e[4]||(e[4]=t("h2",{class:"text-2xl font-bold text-red-700"},"An Error Occurred",-1)),t("p",T,c(o.value),1),d(u,{to:"/",class:"mt-6 inline-block w-full py-2 px-4 border border-transparent text-sm font-medium rounded-md text-slate-950 bg-cyan-300 hover:bg-cyan-200"},{default:i(()=>[...e[3]||(e[3]=[b(" Go to Homepage ",-1)])]),_:1})])):l("",!0)])])])}}};export{B 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.