import{c as _,j as t,a as D}from"./app-BeNY_zSm.js";import{I as S}from"./InstallLayout-C7JfQv_w.js";import{B as A}from"./button-Dge8PO59.js";import{A as T,b as P}from"./alert-CxSnbwwr.js";import{C as B}from"./circle-alert-DR8wP1n1.js";import{C as L}from"./circle-check-Cbr55h3A.js";import{C as z}from"./circle-x-Cqpugu36.js";/* empty css            */import"./createLucideIcon-VdTyGa1S.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"d90f819d28d132ee9ad7641cbed0d6343dd98ccf"}}catch{}})();try{(function(){var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="b2b9823b-53ed-402e-af0b-1631ef903019",i._sentryDebugIdIdentifier="sentry-dbid-b2b9823b-53ed-402e-af0b-1631ef903019")})()}catch{}function W(i){const e=_.c(52),{requirements:s}=i;let w;e[0]!==s?(w=Object.values(s).every(Y),e[0]=s,e[1]=w):w=e[1];const k=w,E=X,C=O;let q;e[2]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsxs("div",{children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"System Requirements"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please ensure all requirements are met before proceeding with the installation."})]}),e[2]=q):q=e[2];let l;e[3]!==k?(l=!k&&t.jsxs(T,{variant:"destructive",children:[t.jsx(B,{className:"h-4 w-4"}),t.jsx(P,{children:"Some requirements are not met. Please fix the issues below before continuing."})]}),e[3]=k,e[4]=l):l=e[4];let r;e[5]!==s.php.title?(r=t.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:s.php.title}),e[5]=s.php.title,e[6]=r):r=e[6];let a;e[7]!==s.php.items?(a=s.php.items.map(C),e[7]=s.php.items,e[8]=a):a=e[8];let n;e[9]!==a?(n=t.jsx("div",{className:"space-y-1",children:a}),e[9]=a,e[10]=n):n=e[10];let d;e[11]!==r||e[12]!==n?(d=t.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[r,n]}),e[11]=r,e[12]=n,e[13]=d):d=e[13];let c;e[14]!==s.extensions.title?(c=t.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:s.extensions.title}),e[14]=s.extensions.title,e[15]=c):c=e[15];let o;e[16]!==s.extensions.items?(o=s.extensions.items.map(C),e[16]=s.extensions.items,e[17]=o):o=e[17];let m;e[18]!==o?(m=t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-1",children:o}),e[18]=o,e[19]=m):m=e[19];let f;e[20]!==m||e[21]!==c?(f=t.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[c,m]}),e[20]=m,e[21]=c,e[22]=f):f=e[22];let x;e[23]!==s.permissions.title?(x=t.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:s.permissions.title}),e[23]=s.permissions.title,e[24]=x):x=e[24];let p;e[25]!==s.permissions.items?(p=s.permissions.items.map(C),e[25]=s.permissions.items,e[26]=p):p=e[26];let h;e[27]!==p?(h=t.jsx("div",{className:"space-y-1",children:p}),e[27]=p,e[28]=h):h=e[28];let g;e[29]!==x||e[30]!==h?(g=t.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[x,h]}),e[29]=x,e[30]=h,e[31]=g):g=e[31];let b;e[32]!==s.files.title?(b=t.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:s.files.title}),e[32]=s.files.title,e[33]=b):b=e[33];let u;e[34]!==s.files.items?(u=s.files.items.map(C),e[34]=s.files.items,e[35]=u):u=e[35];let y;e[36]!==u?(y=t.jsx("div",{className:"space-y-1",children:u}),e[36]=u,e[37]=y):y=e[37];let j;e[38]!==b||e[39]!==y?(j=t.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-lg p-6",children:[b,y]}),e[38]=b,e[39]=y,e[40]=j):j=e[40];let N;e[41]!==f||e[42]!==g||e[43]!==j||e[44]!==d?(N=t.jsxs("div",{className:"space-y-6",children:[d,f,g,j]}),e[41]=f,e[42]=g,e[43]=j,e[44]=d,e[45]=N):N=e[45];const R=!k;let v;e[46]!==R?(v=t.jsx("div",{className:"flex justify-end pt-4",children:t.jsx(A,{onClick:E,disabled:R,size:"lg",className:"px-8",children:"Next: Database Setup"})}),e[46]=R,e[47]=v):v=e[47];let I;return e[48]!==N||e[49]!==v||e[50]!==l?(I=t.jsx(S,{title:"Requirements Check",step:1,children:t.jsxs("div",{className:"space-y-6",children:[q,l,N,v]})}),e[48]=N,e[49]=v,e[50]=l,e[51]=I):I=e[51],I}function O(i){return t.jsxs("div",{className:"flex items-center justify-between py-3 border-b dark:border-gray-700 last:border-0",children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[i.passed?t.jsx(L,{className:"w-5 h-5 text-green-600"}):t.jsx(z,{className:"w-5 h-5 text-red-600"}),t.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:i.name})]}),i.current&&t.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:i.current})]},i.name)}function X(){D.post("/install/requirements/check")}function Y(i){return i.items.every($)}function $(i){return i.passed}export{W as default};
//# sourceMappingURL=Requirements-D8S32-UU.js.map
