import{a0 as l,c as o,o as r,b as e,f as a,t as c,G as d,F as m,j as p,d as f,g,A as b}from"./app-BLo7SiiE.js";const h={class:"min-h-screen flex items-center justify-center bg-gray-100"},_={class:"max-w-md w-full bg-white p-8 rounded-lg shadow-md"},v={key:0,class:"mb-4 p-3 rounded-md bg-red-100 text-red-700"},y={key:1,class:"mb-4 p-3 rounded-md bg-red-100 text-red-700"},w={class:"mt-6"},k=["disabled"],E={__name:"Activate",props:{errors:Object,message:String},setup(x){const i=x,t=l({purchase_code:""}),u=()=>{t.post(route("license.activate"),{onError:()=>t.reset("purchase_code")})};return(A,s)=>(r(),o("div",h,[e("div",_,[s[2]||(s[2]=e("h2",{class:"text-2xl font-bold text-center text-gray-800 mb-6"},"Activate Your Application",-1)),i.message?(r(),o("div",v,c(i.message),1)):a("",!0),d(t).hasErrors?(r(),o("div",y,[(r(!0),o(m,null,p(d(t).errors,n=>(r(),o("div",null,c(n),1))),256))])):a("",!0),e("form",{onSubmit:f(u,["prevent"])},[e("div",null,[s[1]||(s[1]=e("label",{for:"purchase_code",class:"block text-sm font-medium text-gray-700"}," Envato Purchase Code ",-1)),g(e("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>d(t).purchase_code=n),id:"purchase_code",type:"text",required:"",class:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},null,512),[[b,d(t).purchase_code]])]),e("div",w,[e("button",{type:"submit",disabled:d(t).processing,class:"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50"}," Activate License ",8,k)])],32)])]))}};export{E as default};
