PageSourceSearch

https://www.joinsmarty.com/build/assets/SweepstakesVerify-fdb87883.js

js joinsmarty.com collected 2026-09-29 09:55:00 UTC 2,982 bytes, 3 lines download raw bytes

1import{l as d,B as h,o as r,m as l,H as u,I as f,q as s,w as p,J as _,E as y,K as c}from"./router-2cb9289f.js";const w={data(){return{verified:!1,email_hash:"",verification_code:"",name:""}},computed:{info(){return this.$store.getters.info}},methods:{verifySweepstakes:function(){let e=this;axios.post("/api/sweepstakes/verify",{email_hash:e.email_hash,verification_code:e.verification_code}).then(t=>{t.data.needs_name==!0?e.verified=!0:e.successAndRedirect()}).catch(t=>{Swal.fire({icon:"error",title:"Something went wrong",text:"Unable to verify email, please try again."}).then(a=>{a.value&&e.$router.push({name:"Home"})})})},enterSweepstakesName:function(){let e=this;axios.post("/api/sweepstakes/name",{email_hash:e.email_hash,verification_code:e.verification_code,name:e.name}).then(t=>{e.successAndRedirect()}).catch(t=>{Swal.fire({icon:"error",title:"Something went wrong",text:"Unable to verify email, please try again."}).then(a=>{a.value&&e.$router.push({name:"Home"})})})},successAndRedirect:function(){let e=this;Swal.fire({icon:"success",title:"You are all set!",showConfirmButton:!0}).then(function(){e.$router.push({name:"Home"})})}},mounted(){this.email_hash=this.$route.query.eh,this.verification_code=this.$route.query.verification_code,this.verifySweepstakes()},beforeMount(){let e=this,t=document.createElement("style");t.textContent=`:root{
2                --sweepstakes_container:url( ${e.assetUrl("/landers/assets/images/lander66/money.png")} );
3            `,document.getElementsByTagName("head")[0].appendChild(t)}},v={class:"sweepstakes_container"},g=s("h2",{class:"text-center"},"Verifying",-1),x=s("h4",{class:"text-center text-primary"},"please wait...",-1),b={key:0,class:"w-100 bg-white border rounded shadow pb-5 px-3 px-md-5",style:{"max-width":"500px"}},k={class:"px-5"},S=["src"],N=s("h2",{class:"text-primary font-weight-bolder text-center"},"One last thing",-1),V={class:"form-group"},C=s("label",{for:"name"},"Please enter your name",-1),B=s("small",{id:"nameHelp",class:"form-text text-muted"},"If you win the payment will be made to this name.",-1),H=s("small",null,[c("Smarty will process your name in accordance with our "),s("a",{href:"/privacy-policy",target:"_blank"},"Privacy Policy"),c(".")],-1);function U(e,t,a,$,o,i){const m=h("sm-loader");return r(),l("div",v,[u(m,{loading:!o.verified,size:"xl",class:"my-5"},{default:f(()=>[g,x]),_:1},8,["loading"]),o.verified?(r(),l("div",b,[s("div",k,[s("img",{src:e.assetUrl("/landers/assets/images/lander66/money-bg.png"),class:"img-fluid"},null,8,S)]),N,s("div",V,[C,p(s("input",{type:"text",name:"name",id:"name",placeholder:"Full Name",class:"form-control form-control-lg","onUpdate:modelValue":t[0]||(t[0]=n=>o.name=n),autofocus:""},null,512),[[_,o.name]]),B]),s("button",{type:"button",onClick:t[1]||(t[1]=(...n)=>i.enterSweepstakesName&&i.enterSweepstakesName(...n)),class:"btn btn-success btn-block btn-lg"},"Done"),H])):y("",!0)])}const q=d(w,[["render",U]]);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.