PageSourceSearch

https://thepaypers.com/_nuxt/BTq0O77g.js

js thepaypers.com collected 2026-09-24 08:28:28 UTC 2,644 bytes, 6 lines download raw bytes

1import{_ as y}from"./BJlMqvan.js";import{_ as v}from"./5TdI7TNq.js";import{c as x}from"./2ruYUPME.js";import{e as g,u as w,f as k,E as p,r as l,k as C,c,a as t,b as _,n as s,l as U,m as N,w as V,N as B,o as i,d as P,t as T,p as M}from"./Bcs_NwEm.js";import{u as R}from"./CnOPAmwf.js";import"./DlAUqK2U.js";import"./Db8xi0CW.js";import"./B9GYCAbm.js";/**
2 * @license @tabler/icons-vue v3.34.1 - MIT
3 *
4 * This source code is licensed under the MIT license.
5 * See the LICENSE file in the root directory of this source tree.
6 */var z=x("outline","mail","Mail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]);const A={class:"my-8 flex items-center justify-center px-4"},E={class:"bg-white rounded-lg shadow-lg p-8 max-w-md w-full"},I={class:"flex justify-center mb-6"},j={class:"bg-primary rounded-full p-4"},q={class:"text-center space-y-4"},F={key:0,class:"leading-relaxed"},H={key:1,class:"leading-relaxed"},Q=g({__name:"unsubscribe",setup(S){w({title:"Unsubscribe from Newsletter"});const u=k(),d=p(()=>u.query.mspid),m=p(()=>u.query.newslettername),r=l(!1),a=l(null),o=l(!1),f=async()=>{r.value=!0,a.value=null;try{const e=await R().execute("recaptcha_newsletter_unsubscribe_email");await $fetch("/api/newsletter-types/unsubscribe-email",{method:"POST",body:{recaptchaToken:e,mspid:decodeURIComponent(d.value),newslettername:decodeURIComponent(m.value)}}),o.value=!0}catch(e){e instanceof FetchError&&e.status===403?(console.error("failed to verify reCAPTCHA token for newsletter unsubscription",e),a.value=e.data?.message??"Verification failed. Please refresh the page and try again later."):(console.error("unsubscribe failed:",e),a.value="Failed to unsubscribe. Please try again.")}finally{r.value=!1}};return C([d,m],([e,n])=>{(!e||!n)&&M("/")},{immediate:!0}),(e,n)=>{const b=y,h=v;return i(),c("div",A,[t("div",E,[t("div",I,[t("div",j,[_(s(z))])]),t("div",q,[t("div",null,[n[0]||(n[0]=t("h1",{class:"text-2xl font-bold"},"Unsubscribe from Newsletter",-1)),s(o)?(i(),c("p",H,"We're sorry to see you go!")):(i(),c("p",F,"Please click on the button to unsubscribe."))]),s(a)?(i(),U(b,{key:0,color:"red",variant:"subtle",description:s(a)},null,8,["description"])):N("",!0),_(h,{class:B(["uppercase px-6 tracking-widest text-[10px]",s(o)?"":"cursor-pointer"]),ui:{rounded:"rounded-full",variant:{solid:"text-secondary"}},variant:"solid",size:"md",color:"primary",loading:s(r),disabled:s(r)||s(o),onClick:f},{default:V(()=>[P(T(s(o)?"unsubscribed":"unsubscribe"),1)]),_:1},8,["class","loading","disabled"])])])])}}});export{Q 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.