import{b as p,j as e}from"./app-BwDemWQz.js";import{B as u}from"./Button-B-KWyoQR.js";import{C as f,a as j}from"./Card-DJ3wHKN-.js";import{I as l}from"./Input-BJaxI6jp.js";import{L as c}from"./Label-1lm7x8-L.js";import{m as y}from"./proxy-DQ767J20.js";import{c as o}from"./createLucideIcon-BASx8f0E.js";import{C as N}from"./circle-alert-BdYD3adQ.js";import{K as v}from"./key-C-v0nTrj.js";import{U as b}from"./user-DdNqTlyU.js";import{M as g}from"./mail-6ZJ7GN6n.js";/* empty css            *//**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],C=o("external-link",w);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],n=o("shield-alert",k);function B({title:m="License Verification Required",note:d="Please verify your license to continue"}){const{data:a,setData:r,post:x,processing:i,errors:t}=p({purchase_code:"",username:""}),h=s=>{s.preventDefault(),x("/verify-purchase")};return e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-red-50 via-white to-orange-50 flex items-center justify-center p-4",children:e.jsx("div",{className:"max-w-2xl w-full",children:e.jsxs(y.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsx(f,{className:"backdrop-blur-sm bg-white/90 shadow-2xl border-0",children:e.jsxs(j,{className:"p-8 md:p-12",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-red-500 to-orange-600 rounded-full flex items-center justify-center animate-pulse",children:e.jsx(n,{className:"w-12 h-12 text-white"})})}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-center text-gray-900 mb-4",children:m}),e.jsx("p",{className:"text-center text-gray-600 text-lg mb-8",children:d}),e.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6 mb-8",children:[e.jsxs("h3",{className:"font-semibold text-red-900 mb-3 flex items-center",children:[e.jsx(N,{className:"w-5 h-5 mr-2"}),"License Verification Failed"]}),e.jsx("p",{className:"text-red-700 text-sm mb-4",children:"Your software license could not be verified. This application requires a valid license to operate."}),e.jsx("p",{className:"text-sm text-red-600 font-medium mb-2",children:"Common reasons for verification failure:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 text-sm text-red-600",children:[e.jsx("li",{children:"Invalid or expired purchase code"}),e.jsx("li",{children:"License already activated on another domain"}),e.jsx("li",{children:"Envato username doesn't match purchase"}),e.jsx("li",{children:"License has been refunded or canceled"}),e.jsx("li",{children:"Domain change without re-verification"})]})]}),e.jsxs("form",{onSubmit:h,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(c,{htmlFor:"purchase_code",className:"text-gray-700",children:["Purchase Code ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(v,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx(l,{id:"purchase_code",type:"text",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",value:a.purchase_code,onChange:s=>r("purchase_code",s.target.value),className:"pl-10 h-12",required:!0})]}),t.purchase_code&&e.jsx("p",{className:"text-sm text-red-600",children:t.purchase_code})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(c,{htmlFor:"username",className:"text-gray-700",children:["Envato Username ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx(l,{id:"username",type:"text",placeholder:"your_envato_username",value:a.username,onChange:s=>r("username",s.target.value),className:"pl-10 h-12",required:!0})]}),t.username&&e.jsx("p",{className:"text-sm text-red-600",children:t.username})]}),e.jsx(u,{type:"submit",disabled:i,className:"w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white h-12 shadow-lg hover:shadow-xl transform hover:scale-[1.02] transition-all",children:i?e.jsxs("span",{className:"flex items-center justify-center",children:[e.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Verifying License..."]}):e.jsxs("span",{className:"flex items-center justify-center",children:[e.jsx(n,{className:"w-5 h-5 mr-2"}),"Verify License Now"]})})]}),e.jsx("div",{className:"mt-6 space-y-3",children:e.jsxs("a",{href:"https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-",target:"_blank",rel:"noopener noreferrer",className:"w-full inline-flex items-center justify-center px-4 py-3 bg-gray-100 text-gray-700 text-sm font-medium rounded-lg hover:bg-gray-200 transition-all",children:[e.jsx(C,{className:"w-4 h-4 mr-2"}),"Where to Find Purchase Code?"]})}),e.jsx("div",{className:"mt-8 pt-6 border-t border-gray-200",children:e.jsxs("p",{className:"text-center text-sm text-gray-500 flex items-center justify-center",children:[e.jsx(g,{className:"w-4 h-4 mr-2"}),"Need assistance? Contact"," ",e.jsx("a",{href:"mailto:support@postuno.com",className:"text-blue-600 hover:text-blue-700 font-medium ml-1",children:"support@postuno.com"})]})})]})}),e.jsxs("div",{className:"text-center mt-6",children:[e.jsx("p",{className:"text-sm text-gray-500",children:"Postuno - Professional Social Media Management Platform"}),e.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Protected by Envato Market License"})]})]})})})}export{B as default};
