import{a0 as m,c as n,o,a as u,h as v,G as l,Z as b,w as g,b as t,f as r,t as i,F as f}from"./app-BhD6J0Va.js";import{L as x}from"./Layout-BNWXhjq5.js";import"./moment-DeOISj6Y.js";import"./FlashMessages-DW2Y2mP0.js";const y={class:"p-8"},p={class:"max-w-2xl mx-auto bg-white p-6 rounded-lg shadow"},h={key:0,class:"mb-4 p-4 rounded-md bg-red-100 text-red-800 border border-red-200"},w={class:"space-y-3"},D={class:"ml-2"},k={class:"ml-2 font-mono"},L={class:"mt-6 pt-6 border-t"},S={class:"mt-4"},A=["disabled"],C={key:1},B={class:"p-8"},T={class:"max-w-2xl mx-auto bg-white p-6 rounded-lg shadow"},K={key:0,class:"mb-4 p-4 rounded-md bg-red-100 text-red-800 border border-red-200"},N={class:"space-y-3"},O={class:"ml-2"},V={class:"ml-2 font-mono"},q={class:"mt-6 pt-6 border-t"},F={class:"text-sm text-gray-600 mt-2"},I={class:"mt-4"},P=["disabled"],Z={__name:"Settings",props:{activatedDomain:String,licenseKey:String,title:String,error:String,auth:Object},setup(s){const a=m({});function d(){confirm("Are you sure you want to deactivate this license? The application will stop working on this domain until a new license is activated.")&&a.post(route("license.deactivate"))}return(c,e)=>(o(),n(f,null,[u(l(b),{title:c.$t(s.title)},null,8,["title"]),s.auth.user?(o(),v(x,{key:0},{default:g(()=>[t("div",y,[t("div",p,[s.error?(o(),n("div",h,[e[0]||(e[0]=t("h3",{class:"font-bold"},"Attention Required",-1)),t("p",null,i(s.error),1)])):r("",!0),e[6]||(e[6]=t("h2",{class:"text-xl font-bold mb-4"},"License Information",-1)),t("div",w,[e[3]||(e[3]=t("div",null,[t("span",{class:"font-semibold text-gray-600"},"Status:"),t("span",{class:"ml-2 text-green-600 font-bold"},"Active")],-1)),t("div",null,[e[1]||(e[1]=t("span",{class:"font-semibold text-gray-600"},"Activated Domain:",-1)),t("span",D,i(s.activatedDomain),1)]),t("div",null,[e[2]||(e[2]=t("span",{class:"font-semibold text-gray-600"},"Purchase Code:",-1)),t("span",k,i(s.licenseKey),1)])]),t("div",L,[e[4]||(e[4]=t("h3",{class:"font-bold text-lg text-red-700"},"Deactivate License",-1)),e[5]||(e[5]=t("p",{class:"text-sm text-gray-600 mt-2"}," To use your license on a different domain, you must first deactivate it. Once deactivated, this installation will no longer be functional until a valid license is activated again. ",-1)),t("div",S,[t("button",{onClick:d,disabled:l(a).processing,class:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 disabled:opacity-50"}," Deactivate License ",8,A)])])])])]),_:1})):(o(),n("div",C,[t("div",B,[t("div",T,[s.error?(o(),n("div",K,[e[7]||(e[7]=t("h3",{class:"font-bold"},"Attention Required",-1)),t("p",null,i(s.error),1)])):r("",!0),e[12]||(e[12]=t("h2",{class:"text-xl font-bold mb-4"},"License Information",-1)),t("div",N,[e[10]||(e[10]=t("div",null,[t("span",{class:"font-semibold text-gray-600"},"Status:"),t("span",{class:"ml-2 text-green-600 font-bold"},"Active")],-1)),t("div",null,[e[8]||(e[8]=t("span",{class:"font-semibold text-gray-600"},"Activated Domain:",-1)),t("span",O,i(s.activatedDomain),1)]),t("div",null,[e[9]||(e[9]=t("span",{class:"font-semibold text-gray-600"},"Purchase Code:",-1)),t("span",V,i(s.licenseKey),1)])]),t("div",q,[e[11]||(e[11]=t("h3",{class:"font-bold text-lg text-red-700"},"Deactivate License",-1)),t("p",F," Deactivating your license will release it from this domain ("+i(s.activatedDomain)+"), allowing you to use it on a different domain. Once deactivated, this installation will no longer be functional until a valid license is activated again. ",1),t("div",I,[t("button",{onClick:d,disabled:l(a).processing,class:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 disabled:opacity-50"}," Deactivate License on This Domain ",8,P)])])])])]))],64))}};export{Z as default};
