PageSourceSearch

https://cdn.gallerycollection.com/build/assets/UnsubCo-DXxRQfx8.js

js gallerycollection.com collected 2026-09-24 10:44:48 UTC 2,747 bytes, 1 lines download raw bytes

1import{d as v,T as _,V,o as S,W as D,a as o,c,j as g,w as i,e as b,S as E,b as r,f as a,g as u,F as I,r as $,$ as w,h as d,q as B,x as F,p as N,_ as T,N as R,k as U}from"./app-BQDhJ1BG.js";import{_ as x}from"./Alert.vue_vue_type_script_setup_true_lang-BGHQjlvC.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="d6db4844-010a-449e-ad01-ff7cd29e508c",t._sentryDebugIdIdentifier="sentry-dbid-d6db4844-010a-449e-ad01-ff7cd29e508c")}catch{}const q={class:"container mx-auto"},M={key:0},P={class:"flex gap-4 place-items-center my-4"},z=v({__name:"UnsubCo",props:{reCaptcha:Boolean,response_message:String},setup(t){const n=t,m=_(),f=U(!1),s=V({email:"","g-recaptcha-response":""});function C(){s["g-recaptcha-response"]||!n.reCaptcha?y():m.execute()}async function y(){await s.post("/unsubco/",{preserveScroll:!0,onFinish:p=>{s.hasErrors||(f.value=!0)}})}function h(p){s["g-recaptcha-response"]=p,y()}return S(()=>{m.pushResponseCallback(h)}),D(()=>{m.popResponseCallback()}),(p,e)=>(o(),c("div",q,[g(E,null,{default:i(()=>[...e[2]||(e[2]=[b("Email Preferences",-1)])]),_:1}),f.value?d("",!0):(o(),c("div",M,[e[5]||(e[5]=r("h1",null,"Dear Valued Customer",-1)),e[6]||(e[6]=r("p",null,"Are you sure you no longer want to hear from us?",-1)),e[7]||(e[7]=r("p",null,"We would hate to see you go, but if you prefer not to receive any emails from Gallery Collection, please click on the unsubscribe button below.",-1)),a(s).hasErrors?(o(),u(x,{key:0,class:"mt-4"},{default:i(()=>[(o(!0),c(I,null,$(a(s).errors,(l,k)=>(o(),u(w,{key:k,message:l},null,8,["message"]))),128))]),_:1})):d("",!0),r("form",{class:"flex flex-col max-w-4xl mx-auto my-8",onSubmit:e[1]||(e[1]=R(l=>C(),["prevent"]))},[r("div",P,[e[3]||(e[3]=r("label",{for:"email",class:"min-w-[20%] text-right"},"Email*",-1)),B(r("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=l=>a(s).email=l),type:"email",name:"email",required:"",class:N(["block w-full",a(s).errors.email&&"error"]),oninvalid:"this.setCustomValidity('Please enter a valid email address')",oninput:"this.setCustomValidity('')"},null,2),[[F,a(s).email]])]),a(s).errors.email?(o(),u(w,{key:0,message:a(s).errors.email,class:"text-center"},null,8,["message"])):d("",!0),g(T,{class:"mx-auto",primary:"",type:"submit",disabled:a(s).processing},{default:i(()=>[...e[4]||(e[4]=[b(" Unsubscribe ",-1)])]),_:1},8,["disabled"])],32)])),f.value?(o(),u(x,{key:1,type:"success"},{default:i(()=>[...e[8]||(e[8]=[b(" Your request has been submitted. If we can be of any further assistance, please do not hesitate to contact us. ",-1)])]),_:1})):d("",!0)]))}});export{z 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.