import{_ as b,d as B,c as C,o as u,g as a,a as s,w as o,b as T,f,h,T as V,l as g,t as y,s as j,i as H,F as L,j as N,I as S,B as I,e as P,v as F,n as U}from"./app-BOG5ezKh.js";import{m as q}from"./modules-WeqXGHHw.js";const z=B({setup(){const e=window.config.verify_purchase_background,n=U(),{rules:l,purchaseCode:i,errorMessage:_,successMessage:p,loading:r,verifyPurchase:t}=q();return{rules:l,purchaseCode:i,loading:r,verify:()=>t({success:d=>{n.push({name:"admin.login"})}}),errorMessage:_,successMessage:p,verifyPurchaseBackground:e}}}),D={class:"container-content"},E={class:"text-center"},R=["innerHTML"],A=["innerHTML"];function G(e,n,l,i,_,p){const r=V,t=j,c=H,d=S,m=N,v=I,k=L,M=T,$=P;return u(),C("div",{class:"main-container",style:F({backgroundImage:`url(${e.verifyPurchaseBackground})`})},[a("div",D,[s($,{type:"flex",justify:"center"},{default:o(()=>[s(M,{span:8},{default:o(()=>[a("div",E,[s(r,{level:4},{default:o(()=>[g(y(e.$t("common.verify_purchase")),1)]),_:1})]),s(t),e.successMessage!=""?(u(),f(c,{key:0,type:"success","show-icon":"",banner:""},{message:o(()=>[a("span",{innerHTML:e.successMessage},null,8,R)]),_:1})):h("v-if",!0),e.errorMessage!=""?(u(),f(c,{key:1,type:"error","show-icon":"",banner:""},{message:o(()=>[a("span",{innerHTML:e.errorMessage},null,8,A)]),_:1})):h("v-if",!0),s(k,{layout:"vertical",class:"mt-20"},{default:o(()=>[s(m,{label:e.$t("common.purchase_code"),name:"purchase_code",help:e.rules.purchase_code?e.rules.purchase_code.message:null,validateStatus:e.rules.purchase_code?"error":null,class:"required"},{default:o(()=>[s(d,{value:e.purchaseCode,"onUpdate:value":n[0]||(n[0]=w=>e.purchaseCode=w),placeholder:e.$t("common.placeholder_default_text",[e.$t("user.name")])},null,8,["value","placeholder"])]),_:1},8,["label","help","validateStatus"]),s(m,null,{default:o(()=>[s(v,{type:"primary",onClick:e.verify,loading:e.loading},{default:o(()=>[g(y(e.$t("common.verify_purchase")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1})]),_:1})])],4)}const O=b(z,[["render",G],["__file","/Users/rajeshkumawat/sites/stockifly/resources/js/main/views/auth/Verify.vue"]]);export{O as default};
