1import{d as x,U as w,V as v,a as i,c as o,b as s,f as t,g as u,w as p,F as k,r as C,$ as y,h as m,q as d,x as g,p as b,X as V,j as M,e as f,_ as I,t as L,N as T,k as h}from"./app-B9UOfUiq.js";import{_ as D}from"./Alert.vue_vue_type_script_setup_true_lang-0M_5cS3K.js";try{let l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new l.Error().stack;r&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[r]="f4f7e32f-b8d5-46c4-b9b4-1a48758ef99f",l._sentryDebugIdIdentifier="sentry-dbid-f4f7e32f-b8d5-46c4-b9b4-1a48758ef99f")}catch{}const E={class:"container mx-auto"},S={key:0},F={class:"flex gap-4 place-items-center"},N={class:"flex gap-4 place-items-center my-4"},B={key:1,class:"flex gap-4 place-items-center mb-4"},$={class:"grow flex gap-2"},q={class:"text-center"},H=["href","title","innerHTML"],U=["innerHTML"],Y=x({__name:"LimitedMailing",props:{response_message:String},setup(l){const r=w(),c=h(!1);let n=v({name:"",email:"",source:"web",channel:"web",transaction_type:"limited email response",consent:!1});return(_,e)=>(i(),o("div",E,[e[17]||(e[17]=s("h1",null,"LIMITED EMAIL",-1)),l.response_message?m("",!0):(i(),o("div",S,[e[11]||(e[11]=s("h2",{class:"mb-2"},"Dear Valued Customer",-1)),e[12]||(e[12]=s("p",null,"You are one step away from joining our Limited Email program!",-1)),e[13]||(e[13]=s("p",null,"This program reduces the number of emails you will receive throughout the year. We will carefully select only our best offers and latest product announcements to send to your inbox.",-1)),e[14]||(e[14]=s("p",null,"Please enter your name and the email address where you normally receive Gallery Collection emails and we'll take care of the rest!",-1)),e[15]||(e[15]=s("p",null,null,-1)),e[16]||(e[16]=s("p",null,"Items marked with an asterisk (*) are required fields.",-1)),t(n).hasErrors?(i(),u(D,{key:0,class:"mt-4"},{default:p(()=>[(i(!0),o(k,null,C(t(n).errors,a=>(i(),u(y,{message:a},null,8,["message"]))),256))]),_:1})):m("",!0),s("form",{onSubmit:e[3]||(e[3]=T(a=>t(n).post("/limited/",{preserveScroll:!0,onFinish:P=>{t(n).hasErrors||(c.value=!0)}}),["prevent"])),class:"flex flex-col max-w-4xl mx-auto my-8"},[s("div",F,[e[4]||(e[4]=s("label",{for:"name",class:"min-w-[20%] text-right"},"First and Last Name*",-1)),d(s("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>t(n).name=a),type:"text",name:"name",id:"name",required:"",autofocus:"",class:b(["block w-full",t(n).errors.name&&"error"]),oninvalid:"this.setCustomValidity('Please enter your first and last name')",oninput:"this.setCustomValidity('')"},null,2),[[g,t(n).name]])]),s("div",N,[e[5]||(e[5]=s("label",{for:"email",class:"min-w-[20%] text-right"},"Email*",-1)),d(s("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t(n).email=a),type:"email",name:"email",id:"email",required:"",class:b(["block w-full",t(n).errors.email&&"error"]),oninvalid:"this.setCustomValidity('Please enter a valid email address')",oninput:"this.setCustomValidity('')"},null,2),[[g,t(n).email]])]),t(n).errors.email?(i(),u(y,{key:0,message:t(n).errors.email,class:"text-center"},null,8,["message"])):m("",!0),t(r).canada?(i(),o("div",B,[e[7]||(e[7]=s("div",{class:"min-w-[20%]"},null,-1)),s("div",$,[d(s("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>t(n).consent=a),type:"checkbox",name:"consent",id:"consent"},null,512),[[V,t(n).consent]]),e[6]||(e[6]=s("label",{for:"consent",class:""},"By checking the box I consent to receive limited promotional email messages from Gallery Collection.*",-1))])])):m("",!0),M(I,{class:"mx-auto",primary:"",type:"submit",disabled:t(n).processing},{default:p(()=>[...e[8]||(e[8]=[f(" Submit ",-1)])]),_:1},8,["disabled"]),s("p",q,[f(" You may unsubscribe at any time by calling "+L(t(r).config("phone_number")),1),e[9]||(e[9]=s("br",null,null,-1)),e[10]||(e[10]=f("or contacting customer service at ",-1)),s("a",{href:"mailto:"+t(r).config("email"),title:t(r).config("email"),innerHTML:t(r).config("email")},null,8,H)])],32)])),l.response_message?(i(),o("p",{key:1,innerHTML:l.response_message,class:"text-green"},null,8,U)):m("",!0)]))}});
1export{Y 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.