1import{_ as p,U as c,u as b,r as i,c as v,o as _,d as o,e as a,b as l,w as h,a2 as f,a3 as k,z as w,B as E}from"./main-B1dWaF-z.js";const V={name:"UnsubscribeForm",components:{UpackInput:b,UpackButton:c},setup(){return{v$:E()}},data(){return{EmailAddress:"",showValidation:!1}},validations(){return{EmailAddress:{required:w,email:k,maxLength:f(50)}}},computed:{shouldShowError(){return this.showValidation&&this.v$.$invalid}},methods:{onSubmit(r){this.showValidation=!0,this.v$.$invalid&&r.preventDefault()}}},U={class:"node__content"},x={method:"POST",action:"/about-upack/unsubscribe",class:"unsubscribe__form"},S={class:"unsubscribe__email-input"};function $(r,e,g,t,d,s){const u=i("upack-input"),m=i("upack-button");return _(),v("div",U,[e[3]||(e[3]=o("h1",null,"Unsubscribe",-1)),e[4]||(e[4]=o("h2",null,[a("Moving makes us happy."),o("br"),a("Moving on, not so much. ")],-1)),e[5]||(e[5]=o("p",null,"Enter your email address below to remove it from our U-Pack mailing list. ",-1)),o("form",x,[o("div",S,[l(u,{id:"email",modelValue:t.v$.EmailAddress.$model,"onUpdate:modelValue":e[0]||(e[0]=n=>t.v$.EmailAddress.$model=n),label:"Email Address",type:"email",name:"email",error:s.shouldShowError,valid:!s.shouldShowError,"error-message":"Please provide a valid email address",onFocusout:e[1]||(e[1]=n=>d.showValidation=!0)},null,8,["modelValue","error","valid"])]),l(m,{class:"primary red",color:"red",disabled:s.shouldShowError,onClick:s.onSubmit},{default:h(()=>e[2]||(e[2]=[a(" Remove Me ")])),_:1,__:[2]},8,["disabled","onClick"])])])}const B=p(V,[["render",$]]);export{B 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.