adminizer 4.2.0-build.45 → 4.2.0-build.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/assets/{VanillaJSONEditor-DfRefswH.js → VanillaJSONEditor-XGIlS4LL.js} +1 -1
  2. package/assets/add-BzeOQ-DB.js +1 -0
  3. package/assets/add-form-BLdLojfl.js +1 -0
  4. package/assets/add-group-Bx2s4UXM.js +1 -0
  5. package/assets/add-group-form-_VEBFz_S.js +1 -0
  6. package/assets/add-user-C3BY-sey.js +1 -0
  7. package/assets/add-user-form-BFAFyXuz.js +1 -0
  8. package/assets/{app-B6cCPfWk.css → app-CDQ6ZM4E.css} +1 -1
  9. package/assets/app-layout-NMKA6xAa.js +1 -0
  10. package/assets/{app-shell-C1wDrRCe.js → app-shell-Dd-kA5uc.js} +1 -1
  11. package/assets/app-sidebar-C4Y6TSY3.js +1 -0
  12. package/assets/app-sidebar-header-DQnbMxfM.js +1 -0
  13. package/assets/app.js +7844 -74
  14. package/assets/{breadcrumbs-BVZtAG3J.js → breadcrumbs-D0gGjNVI.js} +1 -1
  15. package/assets/{catalog-CvJMAtEd.js → catalog-CEVSwmj8.js} +5 -15
  16. package/assets/{dashboard-Zsh-5yN2.js → dashboard-jLbWzL7K.js} +2 -2
  17. package/assets/date-picker-SAfAWPoh.js +1 -0
  18. package/assets/del-modal-Dj3n8iVJ.js +1 -0
  19. package/assets/{field-renderer-Dgj1S2Vi.js → field-renderer-C7qCVvAC.js} +3 -3
  20. package/assets/form-CYsLdORv.js +1 -0
  21. package/assets/form-DjAQC5zI.js +1 -0
  22. package/assets/{geo-json-vodY1YtH.js → geo-json-XGenv_Sy.js} +2 -17
  23. package/assets/{handsontable-C-ThjbaJ.js → handsontable-Dxb-hF7-.js} +1 -1
  24. package/assets/home-DfUM0yKC.js +2 -0
  25. package/assets/{icon-B-D8X0jg.js → icon-DQL8h8HI.js} +1 -1
  26. package/assets/init-user-DZtnQ7VL.js +1 -0
  27. package/assets/{input-error-F1DL-Fx6.js → input-error-BztTAmHq.js} +1 -1
  28. package/assets/list-B1FodBkq.js +1 -0
  29. package/assets/list-table-Du8TTXit.js +22 -0
  30. package/assets/login-2THGmUHc.js +1 -0
  31. package/assets/manifest.json +68 -134
  32. package/assets/{material-icon-DeSoGIhT.js → material-icon-CPvFwV5P.js} +1 -1
  33. package/assets/module-BFIphQ9n.js +1 -0
  34. package/assets/multi-select-e4PqgWYn.js +1 -0
  35. package/assets/{nav-footer-DQwIyd7c.js → nav-footer-B7wjmsPb.js} +1 -1
  36. package/assets/nav-main-Cx1BkIzi.js +1 -0
  37. package/assets/nav-user-BWl2j-y-.js +1 -0
  38. package/assets/pagination-render-D6MBqi0B.js +1 -0
  39. package/assets/register-Dks3YdiZ.js +1 -0
  40. package/assets/user-info-DTsggabP.js +1 -0
  41. package/assets/user-menu-content-Dnh2qpwQ.js +1 -0
  42. package/assets/welcome-HFROxPwP.js +1 -0
  43. package/package.json +1 -3
  44. package/assets/add-DujD3Z0j.js +0 -1
  45. package/assets/add-form-Ch5HOaI3.js +0 -1
  46. package/assets/add-group-form-CzjFRYQe.js +0 -1
  47. package/assets/add-group-xKUhiREd.js +0 -1
  48. package/assets/add-user-DpTQyN0Z.js +0 -1
  49. package/assets/add-user-form-DmgL9A2G.js +0 -1
  50. package/assets/app-layout-Dn8y3paC.js +0 -1
  51. package/assets/app-sidebar-BisOEG_p.js +0 -1
  52. package/assets/app-sidebar-header-CL1OSuV8.js +0 -11
  53. package/assets/chevrons-up-down-D3t3UGV7.js +0 -6
  54. package/assets/date-picker-DKdT6XTZ.js +0 -6
  55. package/assets/del-modal-DZ5wZWad.js +0 -11
  56. package/assets/form-Bgv171J2.js +0 -1
  57. package/assets/form-DcfEHbPb.js +0 -1
  58. package/assets/home-DOm3EaLO.js +0 -2
  59. package/assets/init-user-iMMcIQIW.js +0 -1
  60. package/assets/list-B-vY1rhM.js +0 -1
  61. package/assets/list-table-8sDi0ZKa.js +0 -52
  62. package/assets/loader-circle-Btx4NYNU.js +0 -6
  63. package/assets/login-C2J62v4_.js +0 -6
  64. package/assets/module-I4hW5UqT.js +0 -1
  65. package/assets/move-left-DWHsVHUF.js +0 -11
  66. package/assets/multi-select-Bu3n-kcV.js +0 -11
  67. package/assets/nav-main-DDQ-_Oed.js +0 -1
  68. package/assets/nav-user-BwBu-VwZ.js +0 -1
  69. package/assets/pagination-render-BoDDo2E1.js +0 -1
  70. package/assets/register-aPC0gjjS.js +0 -1
  71. package/assets/trash-2-CsxWwHNc.js +0 -6
  72. package/assets/user-info-CnB2lvpg.js +0 -1
  73. package/assets/user-menu-content-BFbaJw6v.js +0 -6
  74. package/assets/welcome-DB_D6KJV.js +0 -1
@@ -1,6 +0,0 @@
1
- import{a as Fe,c as He,r as te,q as Oe,Y as ze,j as a,L as xe,I as be,B as _e,X as De,T as Ge,t as Ee}from"./app.js";import{Icon as ue}from"./icon-B-D8X0jg.js";import pe from"./input-error-F1DL-Fx6.js";import{i as Ke}from"./use-appearance-J8J2w43p.js";import{L as qe}from"./loader-circle-Btx4NYNU.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const Xe=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ke=Fe("user",Xe),ve=(e,t,s)=>{let r=1n,n=e%s;for(;t;)t&1n&&(r=r*n%s),n=n*n%s,t=t>>1n;return r};function re(e,t,s){return typeof e=="bigint"&&typeof t=="bigint"&&typeof s=="bigint"?ve(e,t,s):Number(ve(BigInt(e),BigInt(t),BigInt(s)))}const k=crypto,Ve=new TextEncoder,We=new TextDecoder("utf-8",{ignoreBOM:!0}),J={encode:e=>Ve.encode(e),decode:e=>We.decode(e)},Ne=(()=>{const t=[..."0123456789abcdef"],s=new Array(256);for(let r=0;r<256;r++)s[r]=`${t[r>>>4&15]}${t[r&15]}`;return s})(),Ye=(()=>{const e={};for(let t=0;t<256;t++){const s=Ne[t],r=s[0],n=r.toUpperCase(),c=s[1],o=c.toUpperCase();e[s]=t,e[`${r}${o}`]=t,e[`${n}${c}`]=t,e[`${n}${o}`]=t}return e})(),Je=e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e)),fe={encode:e=>{let t="";for(let s=0,r=e.length;s<r;s++)t+=Ne[e[s]];return t},encodeStr:e=>fe.encode(J.encode(e)),decode:e=>{const t=e.length/2,s=new Uint8Array(t);for(let r=0;r<t;r++)s[r]=Ye[e.slice(r*2,r*2+2)];return s},decodeStr:e=>J.decode(fe.decode(e)),is:Je},Ie=e=>fe.encode(e),Se=new TextEncoder,se=e=>{const t=async o=>o instanceof Uint8Array?k.subtle.importKey("raw",o,{name:"PBKDF2"},!1,["deriveBits"]):typeof o=="string"?t(Se.encode(o.normalize())):o,s=(o,i,l,d)=>(i=typeof i=="string"?Se.encode(i):i,k.subtle.deriveBits({name:"PBKDF2",salt:i,iterations:l,hash:{name:e}},o,d)),r=async(o,i,l,d)=>{const u=await t(o);return await s(u,i,l,d*8)},n=async(o,i,l,d)=>new Uint8Array(await r(o,i,l,d)),c=async(o,i,l,d)=>Ie(await n(o,i,l,d));return c.buffer=r,c.hex=c,c.uint8=n,c},Te={sha1:se("SHA-1"),sha256:se("SHA-256"),sha384:se("SHA-384"),sha512:se("SHA-512")},ge=e=>{const t=new Uint8Array(e);return k.getRandomValues(t),t},Qe=new TextEncoder,oe=e=>{const t=n=>(n=typeof n=="string"?Qe.encode(n):n,k.subtle.digest(e,n)),s=async n=>new Uint8Array(await t(n)),r=async n=>Ie(await s(n));return r.buffer=t,r.hex=r,r.uint8=s,r};oe("SHA-1");const Le=oe("SHA-256");oe("SHA-384");oe("SHA-512");const w={encode:e=>{if(e!==e>>0)throw new Error("Invalid 32-bit integer");const t=e>>24&255,s=e>>16&255,r=e>>8&255,n=e>>0&255;return new Uint8Array([t,s,r,n])},decode:e=>{if(e.length!==4)throw new Error("Invalid 32-bit integer");const t=e[0],s=e[1],r=e[2],n=e[3];return(t<<24)+(s<<16)+(r<<8)+(n<<0)}},Ue=e=>{const t=e.reduce((r,n)=>r+n.byteLength,0),s=new Uint8Array(t);for(let r=0,n=0,c=e.length;n<c;n++)s.set(e[n],r),r+=e[n].byteLength;return s},Ze=async(e,t,s,r)=>{e=typeof e=="string"?J.encode(e):e,s=typeof s=="string"?J.encode(s):s||ge(32),s=s.length===32?s:await Le.uint8(s);const n=new Uint8Array([1]),c=Math.max(1,r||0),o=await Te.sha256.uint8(t,s,c,32),i=await k.subtle.importKey("raw",o,"AES-GCM",!1,["encrypt"]),l=ge(16),d=await k.subtle.encrypt({name:"AES-GCM",iv:l,length:256,tagLength:128},i,e),u=new Uint8Array(d);return Ue([n,s,w.encode(c),l,u])},en=async(e,t)=>{if(e[0]!==1)throw new Error("Unsupported encrypted archive version");const r=e.subarray(1,33),n=w.decode(e.subarray(33,37)),c=e.subarray(37,53),o=e.subarray(53),i=await Te.sha256.uint8(t,r,n,32),l=await k.subtle.importKey("raw",i,"AES-GCM",!1,["decrypt"]),d=await k.subtle.decrypt({name:"AES-GCM",iv:c,length:256,tagLength:128},l,o);return new Uint8Array(d)},je=Object.freeze(Object.defineProperty({__proto__:null,decrypt:en,encrypt:Ze},Symbol.toStringTag,{value:"Module"}));function Y(e){let t,s=0;return()=>((!t||s===t.length)&&(t=new e(65536/(e.BYTES_PER_ELEMENT*8)),s=0,k.getRandomValues(t)),t[s++])}function nn(e,t){let s=0,r=t;return()=>(r===t&&(s=e(),r=0),s&1<<r++?1:0)}const Q={get1:nn(Y(Uint8Array),8),get8:Y(Uint8Array),get16:Y(Uint16Array),get32:Y(Uint32Array),get64:Y(BigUint64Array)},tn=Object.assign(()=>BigInt(Q.get1()),{BITS:1}),sn=Object.assign(()=>BigInt(Q.get8()),{BITS:8}),rn=Object.assign(()=>BigInt(Q.get16()),{BITS:16}),on=Object.assign(()=>BigInt(Q.get32()),{BITS:32}),cn=Object.assign(()=>Q.get64(),{BITS:64}),f=e=>{const t=e<=1?tn:e<=8?sn:e<=16?rn:e<=32?on:cn,s=t.BITS;if(e===s)return t();if(e===128)return t()<<64n|t();if(e===160)return f(128)<<32n|f(32);if(e===192)return f(128)<<64n|f(64);if(e===224)return f(160)<<64n|f(64);if(e===256)return f(128)<<128n|f(128);if(e===384)return f(256)<<128n|f(128);if(e===512)return f(256)<<256n|f(256);if(e===1024)return f(512)<<512n|f(512);if(e===2048)return f(1024)<<1024n|f(1024);let r=0,n=0n;for(;r<e;){const c=Math.min(s,e-r),o=2n**BigInt(c)-1n,l=t()&o;if(e===c)return l;n=r?n|l<<BigInt(r):l,r+=c}return n},Me=(e,t)=>{if(e=BigInt(e),t=BigInt(t),e<0n||t<0n)throw new Error("Negative ranges are not supported");if(t<=e)throw new Error('"max" must be at least equal to "min" plus 1');const s=t-e-1n,r=s.toString(2).length;for(;;){const n=f(r);if(!(n>s))return n+e}},Ce=[2n,3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n,97n,101n,103n,107n,109n,113n,127n,131n,137n,139n,149n,151n,157n,163n,167n,173n,179n,181n,191n,193n,197n,199n,211n,223n,227n,229n,233n,239n,241n,251n,257n,263n,269n,271n,277n,281n,283n,293n,307n,311n,313n,317n,331n,337n,347n,349n,353n,359n,367n,373n,379n,383n,389n,397n,401n,409n,419n,421n,431n,433n,439n,443n,449n,457n,461n,463n,467n,479n,487n,491n,499n,503n,509n,521n,523n,541n,547n,557n,563n,569n,571n,577n,587n,593n,599n,601n,607n,613n,617n,619n,631n,641n,643n,647n,653n,659n,661n,673n,677n,683n,691n,701n,709n,719n,727n,733n,739n,743n,751n,757n,761n,769n,773n,787n,797n,809n,811n,821n,823n,827n,829n,839n,853n,857n,859n,863n,877n,881n,883n,887n,907n,911n,919n,929n,937n,941n,947n,953n,967n,971n,977n,983n,991n,997n],an=(e,t=8)=>{if(e<=1n)return!1;for(let n=0,c=Ce.length;n<c;n++){const o=Ce[n];if(e%o===0n)return e===o}if(e<=1000n)return!1;let s=0n,r=e-1n;for(;(r&1n)===0n;)s+=1n,r>>=1n;for(let n=0;n<t;n++){const c=Me(2n,e-2n);let o=re(c,r,e),i=0n;for(let l=0;l<s;l++){if(i=re(o,2n,e),i===1n&&o!==1n&&o!==e-1n)return!1;o=i}if(i!==1n)return!1}return!0},Be=(e,t=8)=>{let s=f(e);for((s&1n)===0n&&(s+=1n);;){if(an(s,t))return s;s+=2n}},x={encode:e=>{let t=0n;for(let s=0,r=e.length;s<r;s++)t|=BigInt(e[s])<<(BigInt(r)-BigInt(s)-1n)*8n;return t},decode:e=>{if(e<0n)throw new Error("Negative BigInts are not supported");const t=[];for(;e;)t.push(Number(e&0xffn)),e>>=8n;return new Uint8Array(t.reverse())}},Ae={archive:e=>{const[t,s,r,n,c]=e,o=x.decode(t),i=w.encode(o.length),l=x.decode(s),d=w.encode(l.length),u=x.decode(r),h=w.encode(u.length),g=x.decode(n),m=w.encode(g.length);return Ue([i,o,d,l,h,u,m,g,c])},unarchive:e=>{const s=e.slice(0,4),r=w.decode(s),n=4,c=e.slice(n,n+r),o=x.encode(c),i=n+r,l=e.slice(i,i+4),d=w.decode(l),u=i+4,h=e.slice(u,u+d),g=x.encode(h),m=u+d,y=e.slice(m,m+4),v=w.decode(y),p=m+4,N=e.slice(p,p+v),S=x.encode(N),b=p+v,I=e.slice(b,b+4),_=w.decode(I),j=b+4,C=e.slice(j,j+_),B=x.encode(C),A=j+_,E=e.slice(A);return[o,g,S,B,E]}},ln=(e,t,s)=>{let r=e%s;if(t<=BigInt(Number.MAX_SAFE_INTEGER))for(let n=Number(t);n>0;n--)r=r*r%s;else for(let n=t;n>0n;n--)r=r*r%s;return r%s},dn={generate:async e=>{const t=e.primeBits??100,s=e.primeRounds??20,r=e.opsPerSecond??33e5,n=e.duration??1e3,c=e.message,o=Be(t,s),i=Be(t,s),l=o*i,d=(o-1n)*(i-1n),u=r,h=n,g=BigInt(Math.round(Math.max(1,u/1e3)*h)),m=await Le.uint8(ge(32)),y=c,v=await je.encrypt(y,m),p=Me(1n,l-1n),N=re(2n,g,d),S=re(p,N,l),b=x.encode(m)+S;return Ae.archive([l,p,g,b,v])},solve:async e=>{const[t,s,r,n,c]=Ae.unarchive(e),o=ln(s,r,t),i=x.decode(n-o),l=await je.decrypt(c,i);return J.decode(l)}};function xn(){const e=He.c(85),[t,s]=te.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],te.useEffect(fn,r);const n=Oe(),c=Array.isArray(n.props.captchaTask)&&n.props.captchaTask.length>0,[o,i]=te.useState("I'm not a robot"),[l,d]=te.useState(!1);let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={login:"",password:"",captchaSolution:""},e[1]=u):u=e[1];const{post:h,data:g,setData:m,processing:y,transform:v,errors:p,clearErrors:N}=ze(u);let S;e[2]!==c||e[3]!==n.props.captchaTask||e[4]!==n.props.submitLink||e[5]!==h||e[6]!==v?(S=T=>{if(T.preventDefault(),!c){h(n.props.submitLink,{onError:pn});return}s(!0),i("Solving CAPTCHA..."),d(!1),(async()=>{try{await function(Re){return new Promise($e=>setTimeout($e,Re))}(100);const ye=new Uint8Array(n.props.captchaTask),Pe=await dn.solve(ye);i("Verification complete!"),s(!1),d(!0),v(we=>({...we,captchaSolution:Pe})),h(n.props.submitLink,{onError:un})}catch(me){console.error("Error solving CAPTCHA:",me),i("Error solving CAPTCHA. Try again.")}})()},e[2]=c,e[3]=n.props.captchaTask,e[4]=n.props.submitLink,e[5]=h,e[6]=v,e[7]=S):S=e[7];const b=S;let I;e[8]!==N||e[9]!==m?(I=(T,he)=>{N(),m(T,he)},e[8]=N,e[9]=m,e[10]=I):I=e[10];const _=I;let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(Ge,{position:"top-center",richColors:!0,closeButton:!0}),e[11]=j):j=e[11];let C;e[12]!==n.props.title?(C=a.jsx("h1",{className:"font-medium mb-6 text-xl",children:n.props.title}),e[12]=n.props.title,e[13]=C):C=e[13];let B;e[14]!==n.props.description?(B=n.props.description&&a.jsx("p",{className:"font-thin mb-6 text-xs pb-10",children:n.props.description}),e[14]=n.props.description,e[15]=B):B=e[15];let A;e[16]!==p.captchaSolution||e[17]!==c?(A=c&&a.jsx(pe,{message:p.captchaSolution}),e[16]=p.captchaSolution,e[17]=c,e[18]=A):A=e[18];let E;e[19]!==n.props.login?(E=a.jsx(xe,{htmlFor:"login",children:n.props.login}),e[19]=n.props.login,e[20]=E):E=e[20];let Z;e[21]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(ue,{iconNode:ke,className:"size-5 absolute inset-2"}),e[21]=Z):Z=e[21];const ce=`pl-10 ${p.login?"border-red-500":""}`,ie=y||t;let L;e[22]!==_?(L=T=>{_("login",T.target.value)},e[22]=_,e[23]=L):L=e[23];let U;e[24]!==g.login||e[25]!==n.props.login||e[26]!==ce||e[27]!==ie||e[28]!==L?(U=a.jsx(be,{id:"login",className:ce,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:g.login,disabled:ie,onChange:L,placeholder:n.props.login}),e[24]=g.login,e[25]=n.props.login,e[26]=ce,e[27]=ie,e[28]=L,e[29]=U):U=e[29];let M;e[30]!==p.login?(M=a.jsx(pe,{message:p.login}),e[30]=p.login,e[31]=M):M=e[31];let P;e[32]!==U||e[33]!==M?(P=a.jsxs("div",{className:"relative",children:[Z,U,M]}),e[32]=U,e[33]=M,e[34]=P):P=e[34];let R;e[35]!==P||e[36]!==E?(R=a.jsxs("div",{className:"grid gap-4",children:[E,P]}),e[35]=P,e[36]=E,e[37]=R):R=e[37];let $;e[38]!==n.props.password?($=a.jsx(xe,{htmlFor:"login",children:n.props.password}),e[38]=n.props.password,e[39]=$):$=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(ue,{iconNode:ke,className:"size-5 absolute inset-2"}),e[40]=ee):ee=e[40];const ae=`pl-10 ${p.password?"border-red-500":""}`,le=y||t;let F;e[41]!==_?(F=T=>{_("password",T.target.value)},e[41]=_,e[42]=F):F=e[42];let H;e[43]!==g.password||e[44]!==n.props.password||e[45]!==ae||e[46]!==le||e[47]!==F?(H=a.jsx(be,{id:"password",className:ae,type:"password",required:!0,disabled:le,tabIndex:1,autoComplete:"current-password",value:g.password,onChange:F,placeholder:n.props.password}),e[43]=g.password,e[44]=n.props.password,e[45]=ae,e[46]=le,e[47]=F,e[48]=H):H=e[48];let O;e[49]!==p.password?(O=a.jsx(pe,{message:p.password}),e[49]=p.password,e[50]=O):O=e[50];let z;e[51]!==H||e[52]!==O?(z=a.jsxs("div",{className:"relative",children:[ee,H,O]}),e[51]=H,e[52]=O,e[53]=z):z=e[53];let D;e[54]!==$||e[55]!==z?(D=a.jsxs("div",{className:"grid gap-4",children:[$,z]}),e[54]=$,e[55]=z,e[56]=D):D=e[56];const de=y||t;let G;e[57]!==n.props.submitButton||e[58]!==de?(G=a.jsx(_e,{type:"submit",className:"w-fit",disabled:de,children:n.props.submitButton}),e[57]=n.props.submitButton,e[58]=de,e[59]=G):G=e[59];let K;e[60]!==t||e[61]!==n.props.registerLink||e[62]!==y?(K=n.props.registerLink&&a.jsx(_e,{asChild:!0,variant:"outline",children:a.jsx(De,{href:n.props.registerLink.link,className:`${y||t} ? 'pointer-events-none opacity-50' : ''`,children:n.props.registerLink.title})}),e[60]=t,e[61]=n.props.registerLink,e[62]=y,e[63]=K):K=e[63];let q;e[64]!==G||e[65]!==K?(q=a.jsxs("div",{className:"flex gap-4",children:[G,K]}),e[64]=G,e[65]=K,e[66]=q):q=e[66];let X;e[67]!==R||e[68]!==D||e[69]!==q||e[70]!==A?(X=a.jsxs("div",{className:"grid gap-5",children:[A,R,D,q]}),e[67]=R,e[68]=D,e[69]=q,e[70]=A,e[71]=X):X=e[71];let V;e[72]!==o||e[73]!==t||e[74]!==c||e[75]!==l?(V=c&&a.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 mt-6 flex items-center space-x-4",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-yellow-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),a.jsx("div",{className:`${t?"":"hidden"}`,children:a.jsx(ue,{iconNode:qe,className:"animate-spin size-6 absolute inset-0 m-auto !text-gray-600"})})]}),a.jsx("div",{className:"text-gray-600 font-semibold",children:o}),a.jsx("div",{className:`transition-opacity ${l?"opacity-100 visible":"opacity-0 invisible"}`,children:a.jsx("svg",{id:"checkmark",xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:a.jsx("path",{className:"checkmark",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})]}),e[72]=o,e[73]=t,e[74]=c,e[75]=l,e[76]=V):V=e[76];let W;e[77]!==b||e[78]!==X||e[79]!==V?(W=a.jsxs("form",{onSubmit:b,children:[X,V]}),e[77]=b,e[78]=X,e[79]=V,e[80]=W):W=e[80];let ne;return e[81]!==W||e[82]!==C||e[83]!==B?(ne=a.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center",children:[j,a.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit mt-[15%]",children:[C,B,W]})]}),e[81]=W,e[82]=C,e[83]=B,e[84]=ne):ne=e[84],ne}function un(e){for(const t of Object.keys(e))Ee.error(e[t])}function pn(e){for(const t of Object.keys(e))Ee.error(e[t])}function fn(){Ke()}export{xn as default};
@@ -1 +0,0 @@
1
- import{q as a,r,j as t}from"./app.js";import{A as p}from"./app-layout-Dn8y3paC.js";import{L as c}from"./loader-circle-Btx4NYNU.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";const d=[];function q(){const s=a(),[n,m]=r.useState(null);return r.useEffect(()=>{const l=async()=>{const e=(await import(s.props.moduleComponent)).default;m(t.jsx(e,{message:s.props.message}))};(()=>{const o=s.props.moduleComponentCSS;if(!o||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(i=>i.href.includes(o)))return;const e=document.createElement("link");e.rel="stylesheet",e.href=o,e.type="text/css",e.onload=()=>console.log(`CSS loaded: ${o}`),e.onerror=()=>console.error(`Failed to load CSS: ${o}`),document.head.appendChild(e)})(),l()},[]),t.jsx(p,{breadcrumbs:d,children:t.jsxs("div",{className:"m-5",children:[t.jsx("div",{className:"mb-5",children:t.jsx("h1",{children:s.props.title})}),n||t.jsx(c,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})]})})}export{q as default};
@@ -1,11 +0,0 @@
1
- import{a as e}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const o=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],a=e("info",o);/**
7
- * @license lucide-react v0.485.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const c=[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]],i=e("move-left",c);export{a as I,i as M};
@@ -1,11 +0,0 @@
1
- import{a as de,r as U,c as he,aw as L,j as t,aR as pe,aS as xe,aT as ge,aU as oe,ay as ve,B as ye,aV as be,aW as je,aX as we,a1 as Ne,aY as Ce,aZ as ke,a_ as Se,aA as Pe,a$ as Ve,aB as Me}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const Ee=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ie=de("circle-x",Ee);/**
7
- * @license lucide-react v0.485.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const Ie=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],De=de("wand-sparkles",Ie),ce=pe("m-1 flex items-center border rounded-sm px-1",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),_e=U.forwardRef((M,Y)=>{const e=he.c(87);let h,p,r,o,x,g,m,E,I,D,_,$,O,Z,z,u;e[0]!==M?({options:o,onValueChange:r,variant:u,processing:x,disabled:p,defaultValue:m,placeholder:E,notFound:I,search:D,animation:_,maxCount:$,modalPopover:O,asChild:Z,className:h,mode:z,...g}=M,e[0]=M,e[1]=h,e[2]=p,e[3]=r,e[4]=o,e[5]=x,e[6]=g,e[7]=m,e[8]=E,e[9]=I,e[10]=D,e[11]=_,e[12]=$,e[13]=O,e[14]=Z,e[15]=z,e[16]=u):(h=e[1],p=e[2],r=e[3],o=e[4],x=e[5],g=e[6],m=e[7],E=e[8],I=e[9],D=e[10],_=e[11],$=e[12],O=e[13],Z=e[14],z=e[15],u=e[16]);let R;e[17]!==m?(R=m===void 0?[]:m,e[17]=m,e[18]=R):R=e[18];const me=R,J=E===void 0?"":E,Q=I===void 0?"":I,ee=D===void 0?"":D,f=_===void 0?0:_,i=$===void 0?3:$,te=O===void 0?!1:O,n=z===void 0?"multiple":z,[s,T]=U.useState(me),[se,B]=U.useState(!1),[c,ue]=U.useState(!1);let A;e[19]!==r||e[20]!==s?(A=a=>{if(a.key==="Enter")B(!0);else if(a.key==="Backspace"&&!a.currentTarget.value){const l=[...s];l.pop(),T(l),r(l)}},e[19]=r,e[20]=s,e[21]=A):A=e[21];const ae=A;let F;e[22]!==n||e[23]!==r||e[24]!==s?(F=a=>{let l;n==="single"?l=s.includes(a)?[]:[a]:l=s.includes(a)?s.filter(V=>V!==a):[...s,a],T(l),r(l),n==="single"&&B(!1)},e[22]=n,e[23]=r,e[24]=s,e[25]=F):F=e[25];const d=F;let K;e[26]!==r?(K=()=>{T([]),r([])},e[26]=r,e[27]=K):K=e[27];const le=K;let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{B($e)},e[28]=X):X=e[28];const fe=X;let q;e[29]!==i||e[30]!==r||e[31]!==s?(q=()=>{const a=s.slice(0,i);T(a),r(a)},e[29]=i,e[30]=r,e[31]=s,e[32]=q):q=e[32];const re=q;let v;e[33]!==h?(v=L("flex w-full p-1 rounded-md border-input border-1 min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",h),e[33]=h,e[34]=v):v=e[34];let y;e[35]!==f||e[36]!==re||e[37]!==le||e[38]!==c||e[39]!==i||e[40]!==n||e[41]!==o||e[42]!==J||e[43]!==x||e[44]!==s||e[45]!==d||e[46]!==u?(y=s.length>0?t.jsxs("div",{className:"flex justify-between items-center w-full",children:[t.jsxs("div",{className:"flex flex-wrap items-center",children:[s.slice(0,i).map(a=>{const l=o.find(ne=>ne.value===a),V=l==null?void 0:l.icon;return t.jsxs("div",{className:L(c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[V&&t.jsx(V,{className:"h-4 w-4 mr-2"}),l==null?void 0:l.label,t.jsx(ie,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ne=>{ne.stopPropagation(),x||d(a)}})]},a)}),n==="multiple"&&s.length>i&&t.jsxs("div",{className:L("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[`+ ${s.length-i} more`,t.jsx(ie,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:a=>{a.stopPropagation(),re()}})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[s.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(xe,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:a=>{a.stopPropagation(),le()}}),t.jsx(ge,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),t.jsx(oe,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):t.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[t.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:J}),t.jsx(oe,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]}),e[35]=f,e[36]=re,e[37]=le,e[38]=c,e[39]=i,e[40]=n,e[41]=o,e[42]=J,e[43]=x,e[44]=s,e[45]=d,e[46]=u,e[47]=y):y=e[47];let b;e[48]!==p||e[49]!==g||e[50]!==Y||e[51]!==v||e[52]!==y?(b=t.jsx(ve,{asChild:!0,children:t.jsx(ye,{ref:Y,...g,onClick:fe,disabled:p,className:v,children:y})}),e[48]=p,e[49]=g,e[50]=Y,e[51]=v,e[52]=y,e[53]=b):b=e[53];let H;e[54]===Symbol.for("react.memo_cache_sentinel")?(H=()=>B(!1),e[54]=H):H=e[54];let j;e[55]!==ae||e[56]!==ee?(j=t.jsx(be,{placeholder:ee,onKeyDown:ae}),e[55]=ae,e[56]=ee,e[57]=j):j=e[57];let w;e[58]!==Q?(w=t.jsx(je,{children:Q}),e[58]=Q,e[59]=w):w=e[59];let N;if(e[60]!==o||e[61]!==s||e[62]!==d){let a;e[64]!==s||e[65]!==d?(a=l=>{const V=s.includes(l.value);return t.jsxs(we,{onSelect:()=>d(l.value),className:"cursor-pointer",children:[t.jsx("div",{className:L("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",V?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:t.jsx(Ne,{className:"h-4 w-4 text-primary-foreground"})}),l.icon&&t.jsx(l.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),t.jsx("span",{children:l.label})]},l.value)},e[64]=s,e[65]=d,e[66]=a):a=e[66],N=o.map(a),e[60]=o,e[61]=s,e[62]=d,e[63]=N}else N=e[63];let C;e[67]!==N?(C=t.jsx(Ce,{children:N}),e[67]=N,e[68]=C):C=e[68];let W;e[69]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(ke,{}),e[69]=W):W=e[69];let k;e[70]!==w||e[71]!==C?(k=t.jsxs(Se,{children:[w,C,W]}),e[70]=w,e[71]=C,e[72]=k):k=e[72];let S;e[73]!==j||e[74]!==k?(S=t.jsx(Pe,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:H,children:t.jsxs(Ve,{children:[j,k]})}),e[73]=j,e[74]=k,e[75]=S):S=e[75];let P;e[76]!==f||e[77]!==c||e[78]!==n||e[79]!==s.length?(P=f>0&&s.length>0&&n==="multiple"&&t.jsx(De,{className:L("cursor-pointer my-2 text-foreground bg-background w-3 h-3",c?"":"text-muted-foreground"),onClick:()=>ue(!c)}),e[76]=f,e[77]=c,e[78]=n,e[79]=s.length,e[80]=P):P=e[80];let G;return e[81]!==se||e[82]!==te||e[83]!==b||e[84]!==S||e[85]!==P?(G=t.jsxs(Me,{open:se,onOpenChange:B,modal:te,children:[b,S,P]}),e[81]=se,e[82]=te,e[83]=b,e[84]=S,e[85]=P,e[86]=G):G=e[86],G});_e.displayName="MultiSelect";function $e(M){return!M}export{_e as default};
@@ -1 +0,0 @@
1
- import{c as E,q as G,r as w,j as e,aE as _,a9 as C,ag as $,ah as N,C as M,aF as A,a6 as O,ai as R,aj as z,X as v,an as B,aG as F,aH as L,a8 as P}from"./app.js";import m from"./material-icon-DeSoGIhT.js";function J(a){const t=E.c(15),{items:l}=a;let f;t[0]!==l?(f=l===void 0?[]:l,t[0]=l,t[1]=f):f=t[1];const p=f,h=G();let S;t[2]!==p?(S=()=>{const u={};return p.forEach(o=>{const c=o.section||"Platform";c in u||(u[c]=!0)}),u},t[2]=p,t[3]=S):S=t[3];const[d,y]=w.useState(S),g=U;let x;if(t[4]!==p||t[5]!==d||t[6]!==h){const u=p.reduce(Q,{});let o;if(t[8]!==h){o=r=>{var s,k;const{item:n}=r;return((s=n.actions)==null?void 0:s.length)>0?e.jsx(_,{asChild:!0,defaultOpen:j(n.link),className:"group/collapsible",children:e.jsxs(C,{children:[e.jsx($,{asChild:!0,children:e.jsxs(N,{tooltip:n.title,children:[e.jsx(m,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n.title}),e.jsx(M,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),e.jsx(A,{children:e.jsx(O,{children:(k=n.actions)==null?void 0:k.map(i=>e.jsx(R,{children:e.jsx(z,{asChild:!0,isActive:j(i.link),children:i.type==="blank"?e.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",children:[i.icon&&e.jsx(m,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]}):e.jsxs(v,{href:i.link,children:[i.icon&&e.jsx(m,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]})})},i.id))})})]})},n.title):e.jsx(C,{children:e.jsx(N,{asChild:!0,isActive:j(n.link),tooltip:{children:n.title},children:n.type==="blank"?e.jsxs("a",{href:n.link,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&e.jsx(m,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{children:n.title})]}):e.jsxs(v,{href:n.link,children:[n.icon&&e.jsx(m,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{children:n.title})]})})},n.title)};const j=r=>{const n=g(h.url),s=g(r);return n===s||n.startsWith(`${s}/`)};t[8]=h,t[9]=o}else o=t[9];let c;t[10]!==o||t[11]!==d?(c=j=>{const[r,n]=j;return e.jsxs(B,{className:"px-2 py-0",children:[e.jsx(F,{asChild:!0,className:"cursor-pointer",onClick:()=>y(s=>({...s,[r]:!s[r]})),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{className:`transform transition-transform duration-200 ${d[r]?"rotate-90":""}`}),e.jsx("span",{children:r})]})}),d[r]&&e.jsx(L,{children:e.jsx(P,{children:n.map(s=>e.jsx(o,{item:s},s.id||s.title))})})]},r)},t[10]=o,t[11]=d,t[12]=c):c=t[12],x=Object.entries(u).map(c),t[4]=p,t[5]=d,t[6]=h,t[7]=x}else x=t[7];let b;return t[13]!==x?(b=e.jsx(e.Fragment,{children:x}),t[13]=x,t[14]=b):b=t[14],b}function Q(a,t){const l=t.section||"Platform";return a[l]||(a[l]=[]),a[l].push(t),a}function U(a){return a.split("?")[0].replace(/\/$/,"")}export{J as NavMain};
@@ -1 +0,0 @@
1
- import{c as f,q as x,aI as b,aJ as g,j as s,s as h,ah as j,u as M,a8 as w,a9 as C,aK as S}from"./app.js";import{UserInfo as D}from"./user-info-CnB2lvpg.js";import{UserMenuContent as I}from"./user-menu-content-BFbaJw6v.js";import{C as N}from"./chevrons-up-down-D3t3UGV7.js";function E(){const e=f.c(15),{auth:t,logout:u,logoutBtn:c}=x().props,{state:m}=b(),p=g();let r;e[0]!==t.user?(r=s.jsx(D,{user:t.user}),e[0]=t.user,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(N,{className:"ml-auto size-4"}),e[2]=i):i=e[2];let o;e[3]!==r?(o=s.jsx(h,{asChild:!0,children:s.jsxs(j,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[r,i]})}),e[3]=r,e[4]=o):o=e[4];const d=p?"bottom":m==="collapsed"?"left":"bottom";let n;e[5]!==t.user||e[6]!==u||e[7]!==c?(n=s.jsx(I,{user:t.user,logout:u,logoutBtn:c}),e[5]=t.user,e[6]=u,e[7]=c,e[8]=n):n=e[8];let a;e[9]!==d||e[10]!==n?(a=s.jsx(M,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:d,children:n}),e[9]=d,e[10]=n,e[11]=a):a=e[11];let l;return e[12]!==o||e[13]!==a?(l=s.jsx(w,{children:s.jsx(C,{children:s.jsxs(S,{children:[o,a]})})}),e[12]=o,e[13]=a,e[14]=l):l=e[14],l}export{E as NavUser};
@@ -1 +0,0 @@
1
- import{c as V,j as a,be as k,bf as _,bg as w,bh as A,bi as q,bj as z}from"./app.js";const J=i=>{const e=V.c(44),{pagination:t,pageChange:n,currentPage:s}=i,D=t.links.filter(B).map(G),I=D.includes(1),L=D.includes(t.last_page),j=`${I?"opacity-50 pointer-events-none":"opacity-100"}`,y=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===1?"opacity-50 pointer-events-none":""}`;let o;e[0]!==s||e[1]!==n?(o=r=>{r.preventDefault(),s!==1&&n(1)},e[0]=s,e[1]=n,e[2]=o):o=e[2];let l;e[3]!==y||e[4]!==o?(l=a.jsx(k,{className:y,onClick:o,children:"First"}),e[3]=y,e[4]=o,e[5]=l):l=e[5];let c;e[6]!==j||e[7]!==l?(c=a.jsx(_,{className:j,children:l}),e[6]=j,e[7]=l,e[8]=c):c=e[8];const P=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.prev_page_url?"":"opacity-50 pointer-events-none"}`;let p;e[9]!==s||e[10]!==n||e[11]!==t.prev_page_url?(p=r=>{r.preventDefault(),t.prev_page_url&&n(s-1)},e[9]=s,e[10]=n,e[11]=t.prev_page_url,e[12]=p):p=e[12];let g;e[13]!==P||e[14]!==p?(g=a.jsx(_,{children:a.jsx(w,{className:P,onClick:p})}),e[13]=P,e[14]=p,e[15]=g):g=e[15];let u;if(e[16]!==n||e[17]!==t.links){let r;e[19]!==n?(r=(v,R)=>v.label==="Previous"||v.label==="Next"?null:a.jsx(_,{children:a.jsx(k,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${v.active?"!bg-primary dark:!bg-muted-foreground !text-primary-foreground dark:!text-ring":""}`,onClick:E=>{E.preventDefault();const F=parseInt(v.label);n(F)},isActive:v.active,children:v.label})},R),e[19]=n,e[20]=r):r=e[20],u=t.links.map(r),e[16]=n,e[17]=t.links,e[18]=u}else u=e[18];const N=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.next_page_url?"":"opacity-50 pointer-events-none"}`;let f;e[21]!==s||e[22]!==n||e[23]!==t.next_page_url?(f=r=>{r.preventDefault(),t.next_page_url&&n(s+1)},e[21]=s,e[22]=n,e[23]=t.next_page_url,e[24]=f):f=e[24];let d;e[25]!==N||e[26]!==f?(d=a.jsx(_,{children:a.jsx(A,{className:N,onClick:f})}),e[25]=N,e[26]=f,e[27]=d):d=e[27];const $=`${L?"opacity-50 pointer-events-none":"opacity-100"}`,C=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===t.last_page?"opacity-50 pointer-events-none":""}`;let b;e[28]!==s||e[29]!==n||e[30]!==t.last_page?(b=r=>{r.preventDefault(),s!==t.last_page&&n(t.last_page)},e[28]=s,e[29]=n,e[30]=t.last_page,e[31]=b):b=e[31];let m;e[32]!==C||e[33]!==b?(m=a.jsx(k,{className:C,onClick:b,children:"Last"}),e[32]=C,e[33]=b,e[34]=m):m=e[34];let x;e[35]!==$||e[36]!==m?(x=a.jsx(_,{className:$,children:m}),e[35]=$,e[36]=m,e[37]=x):x=e[37];let h;return e[38]!==d||e[39]!==x||e[40]!==c||e[41]!==g||e[42]!==u?(h=a.jsx(q,{children:a.jsxs(z,{className:"flex-wrap",children:[c,g,u,d,x]})}),e[38]=d,e[39]=x,e[40]=c,e[41]=g,e[42]=u,e[43]=h):h=e[43],h};function B(i){return i.label!=="Previous"&&i.label!=="Next"}function G(i){return parseInt(i.label)}export{J as default};
@@ -1 +0,0 @@
1
- import{c as Pe,q as _e,r as ye,Y as Se,j as l,L as Q,I as U,S as Ce,b as ke,B as Le,X as Ee,T as Te,h as Ie,e as $e,i as qe,t as Be}from"./app.js";import W from"./input-error-F1DL-Fx6.js";import{i as Fe}from"./use-appearance-J8J2w43p.js";function Xe(){const e=Pe.c(151),s=_e();let Z;e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=[],e[0]=Z):Z=e[0],ye.useEffect(Ve,Z);let ee;e[1]===Symbol.for("react.memo_cache_sentinel")?(ee={locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""},e[1]=ee):ee=e[1];const{post:de,data:r,setData:me,processing:a,setError:fe,errors:t,clearErrors:ue}=Se(ee);let se;e[2]!==r.confirmPassword||e[3]!==r.password||e[4]!==s.props.confirmError||e[5]!==s.props.submitLink||e[6]!==de||e[7]!==fe?(se=i=>{if(i.preventDefault(),r.password!==r.confirmPassword){fe("confirmPassword",s.props.confirmError);return}de(s.props.submitLink,{onSuccess:Re,onError:De})},e[2]=r.confirmPassword,e[3]=r.password,e[4]=s.props.confirmError,e[5]=s.props.submitLink,e[6]=de,e[7]=fe,e[8]=se):se=e[8];const be=se;let le;e[9]!==ue||e[10]!==me?(le=(i,ve)=>{ue(),me(i,ve)},e[9]=ue,e[10]=me,e[11]=le):le=e[11];const o=le;let ae;e[12]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx(Te,{position:"top-center",richColors:!0,closeButton:!0}),e[12]=ae):ae=e[12];let n;e[13]!==s.props.header.title?(n=l.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[13]=s.props.header.title,e[14]=n):n=e[14];let p;e[15]!==s.props.header.desc?(p=l.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[15]=s.props.header.desc,e[16]=p):p=e[16];let re;e[17]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx("span",{className:"text-red-500",children:"*"}),e[17]=re):re=e[17];let c;e[18]!==s.props.loginLabel?(c=l.jsxs(Q,{htmlFor:"login",children:[s.props.loginLabel,re]}),e[18]=s.props.loginLabel,e[19]=c):c=e[19];const he=`${t.login?"border-red-500":""}`;let d;e[20]!==o?(d=i=>{o("login",i.target.value)},e[20]=o,e[21]=d):d=e[21];let m;e[22]!==r.login||e[23]!==s.props.loginLabel||e[24]!==a||e[25]!==d||e[26]!==he?(m=l.jsx(U,{id:"login",className:he,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:r.login,disabled:a,onChange:d,placeholder:s.props.loginLabel}),e[22]=r.login,e[23]=s.props.loginLabel,e[24]=a,e[25]=d,e[26]=he,e[27]=m):m=e[27];let f;e[28]!==t.login?(f=l.jsx(W,{message:t.login}),e[28]=t.login,e[29]=f):f=e[29];let u;e[30]!==m||e[31]!==f?(u=l.jsxs("div",{className:"relative",children:[m,f]}),e[30]=m,e[31]=f,e[32]=u):u=e[32];let b;e[33]!==u||e[34]!==c?(b=l.jsxs("div",{className:"grid gap-4",children:[c,u]}),e[33]=u,e[34]=c,e[35]=b):b=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx("span",{className:"text-red-500",children:"*"}),e[36]=te):te=e[36];let h;e[37]!==s.props.fullNameLabel?(h=l.jsxs(Q,{htmlFor:"fullName",children:[s.props.fullNameLabel,te]}),e[37]=s.props.fullNameLabel,e[38]=h):h=e[38];const xe=`${t.fullName?"border-red-500":""}`;let x;e[39]!==o?(x=i=>{o("fullName",i.target.value)},e[39]=o,e[40]=x):x=e[40];let g;e[41]!==r.fullName||e[42]!==s.props.fullNameLabel||e[43]!==a||e[44]!==xe||e[45]!==x?(g=l.jsx(U,{id:"fullName",className:xe,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:r.fullName,disabled:a,onChange:x,placeholder:s.props.fullNameLabel}),e[41]=r.fullName,e[42]=s.props.fullNameLabel,e[43]=a,e[44]=xe,e[45]=x,e[46]=g):g=e[46];let w;e[47]!==t.fullName?(w=l.jsx(W,{message:t.fullName}),e[47]=t.fullName,e[48]=w):w=e[48];let j;e[49]!==g||e[50]!==w?(j=l.jsxs("div",{className:"relative",children:[g,w]}),e[49]=g,e[50]=w,e[51]=j):j=e[51];let N;e[52]!==h||e[53]!==j?(N=l.jsxs("div",{className:"grid gap-4",children:[h,j]}),e[52]=h,e[53]=j,e[54]=N):N=e[54];let oe;e[55]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("span",{className:"text-red-500",children:"*"}),e[55]=oe):oe=e[55];let L;e[56]!==s.props.passwordLabel?(L=l.jsxs(Q,{htmlFor:"password",children:[s.props.passwordLabel,oe]}),e[56]=s.props.passwordLabel,e[57]=L):L=e[57];const ge=`${t.password?"border-red-500":""}`;let v;e[58]!==o?(v=i=>{o("password",i.target.value)},e[58]=o,e[59]=v):v=e[59];let P;e[60]!==r.password||e[61]!==s.props.passwordLabel||e[62]!==a||e[63]!==ge||e[64]!==v?(P=l.jsx(U,{id:"password",className:ge,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.password,disabled:a,onChange:v,placeholder:s.props.passwordLabel}),e[60]=r.password,e[61]=s.props.passwordLabel,e[62]=a,e[63]=ge,e[64]=v,e[65]=P):P=e[65];let _;e[66]!==t.password?(_=l.jsx(W,{message:t.password}),e[66]=t.password,e[67]=_):_=e[67];let y;e[68]!==P||e[69]!==_?(y=l.jsxs("div",{className:"relative",children:[P,_]}),e[68]=P,e[69]=_,e[70]=y):y=e[70];let S;e[71]!==L||e[72]!==y?(S=l.jsxs("div",{className:"grid gap-4",children:[L,y]}),e[71]=L,e[72]=y,e[73]=S):S=e[73];let ie;e[74]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx("span",{className:"text-red-500",children:"*"}),e[74]=ie):ie=e[74];let C;e[75]!==s.props.confirmPasswordLabel?(C=l.jsxs(Q,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,ie]}),e[75]=s.props.confirmPasswordLabel,e[76]=C):C=e[76];const we=`${t.confirmPassword?"border-red-500":""}`;let k;e[77]!==o?(k=i=>{o("confirmPassword",i.target.value)},e[77]=o,e[78]=k):k=e[78];let E;e[79]!==r.confirmPassword||e[80]!==s.props.confirmPasswordLabel||e[81]!==a||e[82]!==we||e[83]!==k?(E=l.jsx(U,{id:"confirmPassword",className:we,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.confirmPassword,disabled:a,onChange:k,placeholder:s.props.confirmPasswordLabel}),e[79]=r.confirmPassword,e[80]=s.props.confirmPasswordLabel,e[81]=a,e[82]=we,e[83]=k,e[84]=E):E=e[84];let T;e[85]!==t.confirmPassword?(T=l.jsx(W,{message:t.confirmPassword}),e[85]=t.confirmPassword,e[86]=T):T=e[86];let I;e[87]!==E||e[88]!==T?(I=l.jsxs("div",{className:"relative",children:[E,T]}),e[87]=E,e[88]=T,e[89]=I):I=e[89];let $;e[90]!==C||e[91]!==I?($=l.jsxs("div",{className:"grid gap-4",children:[C,I]}),e[90]=C,e[91]=I,e[92]=$):$=e[92];let ne;e[93]===Symbol.for("react.memo_cache_sentinel")?(ne=l.jsx("span",{className:"text-red-500",children:"*"}),e[93]=ne):ne=e[93];let q;e[94]!==s.props.emailLabel?(q=l.jsxs(Q,{htmlFor:"email",children:[s.props.emailLabel,ne]}),e[94]=s.props.emailLabel,e[95]=q):q=e[95];const je=`${t.email?"border-red-500":""}`;let B;e[96]!==o?(B=i=>{o("email",i.target.value)},e[96]=o,e[97]=B):B=e[97];let F;e[98]!==r.email||e[99]!==s.props.emailLabel||e[100]!==a||e[101]!==je||e[102]!==B?(F=l.jsx(U,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:r.email,disabled:a,onChange:B,placeholder:s.props.emailLabel}),e[98]=r.email,e[99]=s.props.emailLabel,e[100]=a,e[101]=je,e[102]=B,e[103]=F):F=e[103];let D;e[104]!==t.email?(D=l.jsx(W,{message:t.email}),e[104]=t.email,e[105]=D):D=e[105];let R;e[106]!==F||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[F,D]}),e[106]=F,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==q||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[q,R]}),e[109]=q,e[110]=R,e[111]=V):V=e[111];let z;e[112]!==s.props.localeLabel?(z=l.jsx(Q,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=z):z=e[113];let J;e[114]!==o?(J=i=>o("locale",i),e[114]=o,e[115]=J):J=e[115];let O;e[116]!==s.props.localeLabel?(O=l.jsx(Ce,{className:"w-full cursor-pointer",children:l.jsx(ke,{placeholder:s.props.localeLabel})}),e[116]=s.props.localeLabel,e[117]=O):O=e[117];let pe;e[118]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx(Ie,{children:l.jsx($e,{value:"en",children:"EN"})}),e[118]=pe):pe=e[118];let X;e[119]!==a||e[120]!==J||e[121]!==O?(X=l.jsxs(qe,{onValueChange:J,defaultValue:"en",disabled:a,children:[O,pe]}),e[119]=a,e[120]=J,e[121]=O,e[122]=X):X=e[122];let Y;e[123]!==z||e[124]!==X?(Y=l.jsxs("div",{className:"grid gap-4",children:[z,X]}),e[123]=z,e[124]=X,e[125]=Y):Y=e[125];let A;e[126]!==s.props.submitButton||e[127]!==a?(A=l.jsx(Le,{type:"submit",className:"w-fit",disabled:a,children:s.props.submitButton}),e[126]=s.props.submitButton,e[127]=a,e[128]=A):A=e[128];const Ne=`${a} ? 'pointer-events-none opacity-50' : ''`;let G;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(G=l.jsx(Le,{asChild:!0,variant:"outline",children:l.jsx(Ee,{href:s.props.backToLogin.link,className:Ne,children:s.props.backToLogin.text})}),e[129]=s.props.backToLogin.link,e[130]=s.props.backToLogin.text,e[131]=Ne,e[132]=G):G=e[132];let H;e[133]!==A||e[134]!==G?(H=l.jsxs("div",{className:"flex gap-4",children:[A,G]}),e[133]=A,e[134]=G,e[135]=H):H=e[135];let K;e[136]!==b||e[137]!==N||e[138]!==S||e[139]!==$||e[140]!==V||e[141]!==Y||e[142]!==H?(K=l.jsxs("div",{className:"grid gap-5",children:[b,N,S,$,V,Y,H]}),e[136]=b,e[137]=N,e[138]=S,e[139]=$,e[140]=V,e[141]=Y,e[142]=H,e[143]=K):K=e[143];let M;e[144]!==be||e[145]!==K?(M=l.jsx("form",{onSubmit:be,className:"mt-6",children:K}),e[144]=be,e[145]=K,e[146]=M):M=e[146];let ce;return e[147]!==n||e[148]!==M||e[149]!==p?(ce=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[ae,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[n,p,M]})]}),e[147]=n,e[148]=M,e[149]=p,e[150]=ce):ce=e[150],ce}function De(e){for(const s of Object.keys(e))Be.error(e[s])}function Re(){}function Ve(){Fe()}export{Xe as default};
@@ -1,6 +0,0 @@
1
- import{a as e}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const t=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],c=e("trash-2",t);export{c as T};
@@ -1 +0,0 @@
1
- import{c as x,j as a,aL as h,aM as p,aN as j}from"./app.js";function v(){return I}function I(g){const t=g.trim().split(" ");if(t.length===0)return"";if(t.length===1)return t[0].charAt(0).toUpperCase();const e=t[0].charAt(0),m=t[t.length-1].charAt(0);return`${e}${m}`.toUpperCase()}function N(g){const t=x.c(22),{user:e,showEmail:m}=g,u=m===void 0?!1:m,d=v();let l;t[0]!==e.avatar||t[1]!==e.login?(l=a.jsx(h,{src:e.avatar,alt:e.login}),t[0]=e.avatar,t[1]=e.login,t[2]=l):l=t[2];let s;t[3]!==d||t[4]!==e.login?(s=d(e.login),t[3]=d,t[4]=e.login,t[5]=s):s=t[5];let i;t[6]!==s?(i=a.jsx(p,{className:"rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white",children:s}),t[6]=s,t[7]=i):i=t[7];let n;t[8]!==l||t[9]!==i?(n=a.jsxs(j,{className:"h-8 w-8 overflow-hidden rounded-full",children:[l,i]}),t[8]=l,t[9]=i,t[10]=n):n=t[10];let r;t[11]!==e.login?(r=a.jsx("span",{className:"truncate font-medium",children:e.login}),t[11]=e.login,t[12]=r):r=t[12];let o;t[13]!==u||t[14]!==e.email?(o=u&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:e.email}),t[13]=u,t[14]=e.email,t[15]=o):o=t[15];let c;t[16]!==r||t[17]!==o?(c=a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[r,o]}),t[16]=r,t[17]=o,t[18]=c):c=t[18];let f;return t[19]!==n||t[20]!==c?(f=a.jsxs(a.Fragment,{children:[n,c]}),t[19]=n,t[20]=c,t[21]=f):f=t[21],f}export{N as UserInfo};
@@ -1,6 +0,0 @@
1
- import{a as p,c as f,j as t,aO as x,aP as d,aQ as h,X as y}from"./app.js";import{UserInfo as j}from"./user-info-CnB2lvpg.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const g=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],b=p("log-out",g);function _(){return M}function M(){document.body.style.removeProperty("pointer-events")}function w(m){const e=f.c(11),{user:a,logout:c,logoutBtn:i}=m,u=_();let o;e[0]!==a?(o=t.jsx(x,{className:"p-0 font-normal",children:t.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:t.jsx(j,{user:a,showEmail:!0})})}),e[0]=a,e[1]=o):o=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(d,{}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(b,{className:"mr-2"}),e[3]=l):l=e[3];let s;e[4]!==u||e[5]!==c||e[6]!==i?(s=t.jsx(h,{asChild:!0,children:t.jsxs(y,{className:"block w-full cursor-pointer",method:"get",href:c,as:"button",onClick:u,children:[l,i]})}),e[4]=u,e[5]=c,e[6]=i,e[7]=s):s=e[7];let r;return e[8]!==o||e[9]!==s?(r=t.jsxs(t.Fragment,{children:[o,n,s]}),e[8]=o,e[9]=s,e[10]=r):r=e[10],r}export{w as UserMenuContent};
@@ -1 +0,0 @@
1
- import{c as l,q as m,j as p}from"./app.js";import{A as x}from"./app-layout-Dn8y3paC.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";const a=[];function E(){const t=l.c(8),e=m();let r;t[0]!==e.props.title?(r=e.props.title&&p.jsx("div",{className:"text-3xl mb-8",children:e.props.title}),t[0]=e.props.title,t[1]=r):r=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=p.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),t[2]=s):s=t[2];let o;t[3]!==e.props.text?(o=e.props.text&&p.jsx("div",{dangerouslySetInnerHTML:{__html:e.props.text}}),t[3]=e.props.text,t[4]=o):o=t[4];let i;return t[5]!==r||t[6]!==o?(i=p.jsx(x,{breadcrumbs:a,children:p.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r,s,o]})}),t[5]=r,t[6]=o,t[7]=i):i=t[7],i}export{E as default};