PageSourceSearch

https://cdn.gallerycollection.com/build/assets/Consent-CZVa2W_s.js

js gallerycollection.com collected 2026-10-01 14:04:50 UTC 3,398 bytes, 1 lines download raw bytes

1import{d as x,U as w,V as k,a as p,c as y,b as t,F as C,t as r,h as V,q as d,x as b,f as s,X as S,j as h,w as E,e as m,_ as I,N as q,l as D,k as F}from"./app-B9UOfUiq.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="4a056d8a-7976-4b55-a65c-6f55a113636f",a._sentryDebugIdIdentifier="sentry-dbid-4a056d8a-7976-4b55-a65c-6f55a113636f")}catch{}const N={class:"container mx-auto"},_={class:"col-span-4 place-self-start"},B={class:"col-start-2 col-span-4 flex gap-2 place-self-start place-items-start"},T={class:"col-start-2 col-span-4"},U={class:"col-start-2 col-span-4"},M=["href"],A=x({__name:"Consent",props:{account:{type:String,required:!1,default:""},email_consent:{type:Object,required:!1,default:()=>({})}},setup(a){var u,c,f;const n=a,g=D(),i=w(),v=F(!1),o=k({name:(u=n.email_consent)==null?void 0:u.name,email:(c=n.email_consent)==null?void 0:c.email,consent:!1,customer_id:n.account,account:n.account,contact_type:(f=n.email_consent)==null?void 0:f.contact_type});return(P,e)=>(p(),y("div",N,[e[13]||(e[13]=t("h1",{class:"underline"},"Expressed Consent to Receive Email from Gallery Collection",-1)),t("form",{class:"grid grid-cols-5 gap-4 max-w-4xl mx-auto place-items-center my-8",onSubmit:e[4]||(e[4]=q(l=>s(o).post("/consent/",{preserveScroll:!0,onFinish:$=>{s(o).hasErrors||(v.value=!0)}}),["prevent"]))},[e[10]||(e[10]=t("div",{class:"col-start-2 col-span-4"}," Please enter the information below and click the check box. Items marked with an asterisk (*) are required fields. ",-1)),n.account?(p(),y(C,{key:0},[e[5]||(e[5]=t("div",{class:"font-bold w-full text-right"}," Account: ",-1)),t("div",_,r(n.account),1)],64)):V("",!0),e[11]||(e[11]=t("label",{for:"name",class:"font-bold w-full text-right"},"First and Last Name*",-1)),d(t("input",{id:"name","onUpdate:modelValue":e[0]||(e[0]=l=>s(o).name=l),type:"text",name:"name",required:"",autofocus:"",class:"block w-full col-span-4",oninvalid:"this.setCustomValidity('Please enter your name')",oninput:"this.setCustomValidity('')"},null,512),[[b,s(o).name]]),e[12]||(e[12]=t("label",{for:"email",class:"font-bold w-full text-right"},"Email*",-1)),d(t("input",{id:"email","onUpdate:modelValue":e[1]||(e[1]=l=>s(o).email=l),type:"email",name:"email",required:"",class:"block w-full col-span-4",oninvalid:"this.setCustomValidity('Please enter a valid email address')",oninput:"this.setCustomValidity('')"},null,512),[[b,s(o).email]]),t("div",B,[d(t("input",{id:"consent","onUpdate:modelValue":e[2]||(e[2]=l=>s(o).consent=l),type:"checkbox",class:"mt-1"},null,512),[[S,s(o).consent]]),e[6]||(e[6]=t("label",{for:"consent"},"By checking the box I consent to receive all promotional email messages from Gallery Collection.*",-1))]),t("div",T,[h(I,{primary:"",type:"submit",disabled:s(o).processing},{default:E(()=>[...e[7]||(e[7]=[m(" Submit ",-1)])]),_:1},8,["disabled"])]),t("div",U,[m(" You may unsubscribe at any time by calling "+r(s(i).config("phone_number")),1),e[8]||(e[8]=t("br",null,null,-1)),e[9]||(e[9]=m(" or contacting customer service at ",-1)),t("a",{href:"mailto:"+s(i).config("email"),title:"countryStore.config('email')",onClick:e[3]||(e[3]=l=>s(g).track("Static Lower","Email signup","Clicked"))},r(s(i).config("email")),9,M)])],32)]))}});export{A 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.