1import{d as H,a0 as W,a4 as J,bJ as L,T as U,s as _,o as q,W as K,a as n,g as Q,w as v,b as t,c as o,f as u,F as $,e as s,h as E,N as X,j as b,_ as x,z as Z,C as r}from"./app-BQDhJ1BG.js";import{_ as ee}from"./ValText.vue_vue_type_script_setup_true_lang-Cyyi52eV.js";try{let i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new i.Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="87e249a4-2ec5-4d0b-8bbe-152014eda138",i._sentryDebugIdIdentifier="sentry-dbid-87e249a4-2ec5-4d0b-8bbe-152014eda138")}catch{}const te={class:"border-4 border-white flex flex-col md:flex-row text-white p-6"},se={class:"grow md:w-1/2 text-center py-4 md:pr-6 border-b md:border-b-0 md:border-r border-white"},ne=["src"],oe=["src"],le=["src"],re={key:2,class:"h-6"},ie={class:"grow md:w-1/2 text-center md:pl-6 content-center"},ae=["src"],ue={key:0},de={key:0,class:"h-2"},pe={key:1,class:"text-center text-lg"},me={key:2,class:"text-center text-lg"},fe={class:"my-4"},ge={key:0},ve={key:1},be={key:2},ce={key:0,class:"text-center"},xe={key:1,class:"text-center"},we=H({__name:"ShippingPopOfferModal",setup(i){const a=W(),c=J(),d=L(),y=U(),{completed:F,formState:G,loading:N,submitted:B,v$:R}=_(c),{completed:T,existing:O,formState:A,loading:P,v$:D}=_(d),l=r(()=>!1),m=r(()=>!1),Y=r(()=>m.value?"Free Ground Shipping":""),S=r(()=>l.value?T.value:F.value),w=r(()=>l.value?A.value:G.value),I=r(()=>l.value?P.value:N.value),V=B,k=O,j=r(()=>l.value?D.value:R.value),z=r(()=>l.value?d:c);function f(g=""){l.value&&(d.existing=!1,d.isRevealed=!1,d.completed=!1),c.close(g)}async function h(){await z.value.validate()&&(w.value["g-recaptcha-response"]?C():y.execute())}function C(){l.value?d.submit(!0):c.submit(!0,Y.value)}function M(g){w.value["g-recaptcha-response"]=g,C()}return q(()=>{y.pushResponseCallback(M)}),K(()=>{y.popResponseCallback()}),(g,e)=>(n(),Q(Z,{"show-modal":!0,width:"max-w-3xl","modal-style-class":"bg-red!","show-header-close":!0,"body-padding":"p-1","modal-position":"justify-center! items-start! mt-12"},{default:v(()=>[t("span",{class:"absolute cursor-pointer text-white text-2xl font-bold right-3 top-3 px-3",title:"Close",onClick:e[0]||(e[0]=p=>f(!l.value&&S.value?"Signup":"No signup"))},"x"),t("div",te,[t("div",se,[l.value?(n(),o("img",{key:0,src:u(a).get("/images/offer-non-offer.svg"),alt:"Sign up for Exclusive Benefits",class:"mx-auto max-w-[268px] my-4",height:"200"},null,8,ne)):(n(),o($,{key:1},[m.value?(n(),o("img",{key:0,src:u(a).get("/images/offer-modal-text-free.svg"),alt:"Only $10 Ground Shipping",class:"mx-auto mt-8 mb-4",height:"200"},null,8,oe)):(n(),o("img",{key:1,src:u(a).get("/images/offer-modal-text.svg"),alt:"Only $10 Ground Shipping",class:"mx-auto mb-4",height:"200"},null,8,le)),e[7]||(e[7]=t("p",{class:"text-xl leading-5"},[s("And receive "),t("br"),s("2 FREE BIRTHDAY CARDS"),t("br"),s("with your Personalized"),t("br"),s("Greeting Card Order")],-1)),e[8]||(e[8]=t("p",null,"*offer valid for 72 hours",-1)),m.value?(n(),o("div",re)):E("",!0)],64))]),t("div",ie,[t("img",{src:u(a).get("/images/gc_logo_white.svg"),alt:"Gallery Collection",class:"mx-auto",style:{"margin-bottom":"25px",width:"60%"}},null,8,ae),S.value?S.value?(n(),o($,{key:1},[l.value&&!u(k)?(n(),o("div",ge,[e[15]||(e[15]=t("p",{class:"text-lg mb-4"},[s("Thank you for signing up for"),t("br"),s("our Email Program!")],-1)),e[16]||(e[16]=t("p",{class:"text-sm"},"Look for Special Offers, New Product Announcements and Discount Reminders in your Email.",-1)),e[17]||(e[17]=t("br",null,null,-1)),b(x,{class:"text-black w-48 mb-4",title:"Continue Shopping",onClick:e[4]||(e[4]=p=>f())},{default:v(()=>[...e[14]||(e[14]=[s("Continue Shopping",-1)])]),_:1})])):l.value&&u(k)?(n(),o("div",ve,[e[19]||(e[19]=t("p",{class:"text-lg mb-4"},[s(" We see you have already joined"),t("br"),s("our Email Program at this email address."),t("br"),t("br"),s("Thank you for your interest in GalleryCollection.com! ")],-1)),e[20]||(e[20]=t("br",null,null,-1)),b(x,{class:"text-black w-48 mb-4",title:"Continue Shopping",onClick:e[5]||(e[5]=p=>f())},{default:v(()=>[...e[18]||(e[18]=[s("Continue Shopping",-1)])]),_:1})])):(n(),o("div",be,[m.value?(n(),o("p",ce,[...e[21]||(e[21]=[s(" Great!... You are signed up to receive",-1),t("br",null,null,-1),s("Free Ground Shipping & 2 ",-1),t("span",{class:"underline"},"Free",-1),s(" Birthday Cards ",-1)])])):(n(),o("p",xe,[...e[22]||(e[22]=[s(" Great!... You are signed up to receive",-1),t("br",null,null,-1),s("$10 Ground Shipping & 2 ",-1),t("span",{class:"underline"},"Free",-1),s(" Birthday Cards ",-1)])])),e[24]||(e[24]=t("br",null,null,-1)),b(x,{class:"text-black w-48 mb-4",title:"Continue Shopping",onClick:e[6]||(e[6]=p=>f("Signup"))},{default:v(()=>[...e[23]||(e[23]=[s("Continue Shopping",-1)])]),_:1}),e[25]||(e[25]=t("p",{class:"text-center"},[s("This deal has been applied to your cart and is"),t("br"),s("valid for the next 72 hours.")],-1)),e[26]||(e[26]=t("p",{class:"text-center mt-12"},"*offer applies to Personalized Greeting Cards only",-1))]))],64)):E("",!0):(n(),o("div",ue,[l.value?(n(),o("div",de)):m.value?(n(),o("span",pe,[...e[9]||(e[9]=[s(" Enter Your Email Address",-1),t("br",null,null,-1),s("to re
1ceive Free Ground Shipping",-1),t("br",null,null,-1),s("and 2 ",-1),t("span",{class:"underline"},"Free",-1),s(" Birthday Cards ",-1)])])):(n(),o("span",me,[...e[10]||(e[10]=[s(" Enter Your Email Address",-1),t("br",null,null,-1),s("to receive $10 Ground Shipping",-1),t("br",null,null,-1),s("and 2 ",-1),t("span",{class:"underline"},"Free",-1),s(" Birthday Cards ",-1)])])),t("form",{onSubmit:e[1]||(e[1]=X(p=>h(),["prevent"]))},[t("div",fe,[b(ee,{type:"email",state:w.value,v$:u(V)?j.value:!1,field_name:"email",maxlength:"50",placeholder:"Enter Your Email Address Here",title:"Enter Your Email Address",input_classes:"bg-white!",error_classes:"text-white"},null,8,["state","v$"])]),e[11]||(e[11]=t("div",{class:"my-4 text-center"},null,-1))],32),b(x,{class:"text-black w-36 mb-4",disabled:I.value,title:"Submit",onClick:e[2]||(e[2]=p=>h())},{default:v(()=>[...e[12]||(e[12]=[s(" Submit ",-1)])]),_:1},8,["disabled"]),e[13]||(e[13]=t("br",null,null,-1)),t("span",{class:"underline cursor-pointer",onClick:e[3]||(e[3]=p=>f("No signup"))},"No Thanks")]))])])]),_:1}))}});export{we 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.