adminizer 4.3.0-build.111 → 4.3.0-build.113

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 (57) hide show
  1. package/assets/add-DbQJd7Bm.js +1 -0
  2. package/assets/add-form-tDZGN7FP.js +1 -0
  3. package/assets/add-group-D5MrUNE1.js +1 -0
  4. package/assets/add-group-form-DMz0_Oo9.js +1 -0
  5. package/assets/{add-user-form-DrclnTOd.js → add-user-form-izlXhv2-.js} +1 -1
  6. package/assets/add-user-iCupTmGS.js +1 -0
  7. package/assets/app-layout-BmMzULcJ.js +1 -0
  8. package/assets/{app-shell-CHEYhVco.js → app-shell-C8Cnr5Hy.js} +1 -1
  9. package/assets/app-sidebar-HwvXNZzk.js +1 -0
  10. package/assets/app-sidebar-header-RRnKZeeU.js +1 -0
  11. package/assets/app.js +2 -2
  12. package/assets/{breadcrumbs-C439DWrC.js → breadcrumbs-DSMzNYiS.js} +1 -1
  13. package/assets/{catalog-BKY-a16V.js → catalog-CpDHgq8b.js} +5 -5
  14. package/assets/{dashboard-Bi5KeZu2.js → dashboard-C_EdlZvv.js} +1 -1
  15. package/assets/{date-picker-DbJ8nHp5.js → date-picker-kW3wZQr_.js} +1 -1
  16. package/assets/{del-modal-_b3CSNHb.js → del-modal-DyIWFflP.js} +1 -1
  17. package/assets/{field-renderer-CNZDdaEm.js → field-renderer-DBKkDhBG.js} +3 -3
  18. package/assets/form-J27uSTUj.js +1 -0
  19. package/assets/{form-CSw9kHpL.js → form-pf6uriQX.js} +1 -1
  20. package/assets/{geo-json-CadjdhwW.js → geo-json-YeWQOYnT.js} +1 -1
  21. package/assets/{home-BN7cR9SI.js → home-CO-50-T_.js} +2 -2
  22. package/assets/{icon-DM49pZW3.js → icon-DpkedrXG.js} +1 -1
  23. package/assets/{init-user-DNrB8Xt5.js → init-user-DaOvt0vG.js} +1 -1
  24. package/assets/{input-error--IOnWghB.js → input-error-CmXZF6xy.js} +1 -1
  25. package/assets/list-eG7X4aSC.js +1 -0
  26. package/assets/{list-table-CQDHdLv5.js → list-table-Bc_4C3bv.js} +3 -3
  27. package/assets/{login-6Xb8bcPq.js → login-DR6fvKtm.js} +1 -1
  28. package/assets/manifest.json +84 -84
  29. package/assets/{material-icon-BedgD2NE.js → material-icon-DwkE6wKL.js} +1 -1
  30. package/assets/{media-manager-BLKlHdIk.js → media-manager-Dl0AQjLB.js} +1 -1
  31. package/assets/{module-B4-7WkY5.js → module-C0dPDXsj.js} +1 -1
  32. package/assets/{nav-footer-BwkQkwow.js → nav-footer-B85HLj-j.js} +1 -1
  33. package/assets/{nav-main-9Eb_A0rf.js → nav-main-BqKm87JZ.js} +1 -1
  34. package/assets/nav-user-DuCZNsZX.js +1 -0
  35. package/assets/{notification-ma2x7vka.js → notification-BwG5Ug4o.js} +5 -5
  36. package/assets/{pagination-render-xsEktzA8.js → pagination-render-D9ogYx-T.js} +1 -1
  37. package/assets/{register-BIyjCy8M.js → register-hJD1ETdf.js} +1 -1
  38. package/assets/{tabs-BK_5wdPA.js → tabs-BhkFoerH.js} +1 -1
  39. package/assets/{theme-switcher-CKiJbMkh.js → theme-switcher-cgyA7_cO.js} +1 -1
  40. package/assets/{toast-editor-BZM5RHph.js → toast-editor-DwRk6WqT.js} +1 -1
  41. package/assets/{user-info-CcYdmjMZ.js → user-info-BGQvqBmO.js} +1 -1
  42. package/assets/{user-menu-content-DbUk8ZeY.js → user-menu-content-BDm88xaM.js} +1 -1
  43. package/assets/welcome-BwoI5hJ3.js +1 -0
  44. package/lib/catalog/Navigation.js +7 -0
  45. package/package.json +1 -1
  46. package/assets/add-CjiiZikQ.js +0 -1
  47. package/assets/add-form-M8eciH6Z.js +0 -1
  48. package/assets/add-group-7yAK6uFY.js +0 -1
  49. package/assets/add-group-form-BNmpvW8K.js +0 -1
  50. package/assets/add-user-NoYkTfZi.js +0 -1
  51. package/assets/app-layout-i2zN9Rn-.js +0 -1
  52. package/assets/app-sidebar-DeF8WNmW.js +0 -1
  53. package/assets/app-sidebar-header-DdM1EOrb.js +0 -1
  54. package/assets/form-DaaOc8Fa.js +0 -1
  55. package/assets/list-DCZIbKAJ.js +0 -1
  56. package/assets/nav-user-CRAfyE-x.js +0 -1
  57. package/assets/welcome-cWh1qnl_.js +0 -1
@@ -0,0 +1 @@
1
+ import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-BmMzULcJ.js";import p from"./add-form-tDZGN7FP.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-HwvXNZzk.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-RRnKZeeU.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";import"./field-renderer-DBKkDhBG.js";import"./dynamic-controls-BOYmRX_z.js";import"./input-error-CmXZF6xy.js";const i=[];function k(){const r=t();return o.jsx(m,{breadcrumbs:i,children:o.jsx(p,{page:r,catalog:!1})})}export{k as default};
@@ -0,0 +1 @@
1
+ import{X as U,bx as C,j as s,B as E,W as A,aE as P,by as R,L as I,bz as $,g as V,b as O,m as D,K as J,M as K,N as X,aF as q,O as G,h as H}from"./app.js";import{r as u}from"./monaco-ICtx6xoc.js";import{Icon as _}from"./icon-DpkedrXG.js";import{F as z}from"./field-renderer-DBKkDhBG.js";import T from"./input-error-CmXZF6xy.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";import"./dynamic-controls-BOYmRX_z.js";var S=new Map,F=new WeakMap,B=0,Q=void 0;function W(e){return e?(F.has(e)||(B+=1,F.set(e,B.toString())),F.get(e)):"0"}function Y(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?W(e.root):e[t]}`).toString()}function Z(e){const t=Y(e);let a=S.get(t);if(!a){const i=new Map;let d;const c=new IntersectionObserver(o=>{o.forEach(n=>{var l;const f=n.isIntersecting&&d.some(p=>n.intersectionRatio>=p);e.trackVisibility&&typeof n.isVisible>"u"&&(n.isVisible=f),(l=i.get(n.target))==null||l.forEach(p=>{p(f,n)})})},e);d=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:t,observer:c,elements:i},S.set(t,a)}return a}function ee(e,t,a={},i=Q){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const l=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:typeof a.threshold=="number"?a.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:d,observer:c,elements:o}=Z(a),n=o.get(e)||[];return o.has(e)||o.set(e,n),n.push(t),c.observe(e),function(){n.splice(n.indexOf(t),1),n.length===0&&(o.delete(e),c.unobserve(e)),o.size===0&&(c.disconnect(),S.delete(d))}}function se({threshold:e,delay:t,trackVisibility:a,rootMargin:i,root:d,triggerOnce:c,skip:o,initialInView:n,fallbackInView:l,onChange:f}={}){var p;const[v,k]=u.useState(null),m=u.useRef(f),[b,x]=u.useState({inView:!!n,entry:void 0});m.current=f,u.useEffect(()=>{if(o||!v)return;let g;return g=ee(v,(N,r)=>{x({inView:N,entry:r}),m.current&&m.current(N,r),r.isIntersecting&&c&&g&&(g(),g=void 0)},{root:d,rootMargin:i,threshold:e,trackVisibility:a,delay:t},l),()=>{g&&g()}},[Array.isArray(e)?e.toString():e,v,d,i,c,o,a,l,t]);const w=(p=b.entry)==null?void 0:p.target,y=u.useRef(void 0);!v&&w&&!c&&!o&&y.current!==w&&(y.current=w,x({inView:!!n,entry:void 0}));const h=[k,b.inView,b.entry];return h.ref=h[0],h.inView=h[1],h.entry=h[2],h}const L=u.memo(({field:e})=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(O,{htmlFor:`${e.type}-${e.name}`,children:e.label}),e.tooltip&&s.jsx(J,{children:s.jsxs(K,{children:[s.jsx(X,{onClick:t=>t.preventDefault(),children:s.jsx(_,{iconNode:q,className:"text-primary w-5 h-5 cursor-pointer"})}),s.jsx(G,{align:"center",side:"top",className:"z-[1002]",children:s.jsx("p",{children:e.tooltip})})]})})]})),re=u.memo(({field:e,value:t,onChange:a,processing:i,notFound:d,search:c})=>{const[o,n]=se({triggerOnce:!0,rootMargin:"100px 0px"});return s.jsx("div",{ref:o,className:"grid gap-4 w-full",children:n?s.jsx(z,{field:e,value:t,onChange:a,notFound:d,search:c,processing:i}):s.jsx(D,{className:"w-full h-[250px] rounded-sm"})})}),pe=({page:e,catalog:t,callback:a,openNewWindow:i,openNewWindowLabel:d,isNavigation:c})=>{const{fields:o,btnBack:n,view:l,notFound:f}=e.props,{data:p,setData:v,post:k,processing:m,transform:b}=U({...Object.fromEntries(o.map(r=>[r.name,r.value??void 0])),jsonPopupCatalog:t}),[x,w]=u.useState(!1),[y,h]=u.useState(i??!1);u.useEffect(()=>(h(i??!1),C(),v({...Object.fromEntries(o.map(r=>[r.name,r.value??void 0])),jsonPopupCatalog:t}),()=>C()),[o,t,i]);const g=u.useCallback((r,j)=>{v(r,j)},[]),N=async r=>{if(r.preventDefault(),t){w(!0);const j=await H.post(e.props.postLink,p);j.status===200&&a&&(c?a(j.data.record,y):a(j.data.record))}else{const j=localStorage.getItem("backUrl");b(M=>({...M,redirectUrl:j??""})),k(e.props.postLink,{onSuccess:()=>{localStorage.setItem("backUrl","")}})}};return s.jsxs("div",{className:"p-4 w-full",children:[!t&&s.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[s.jsx(E,{className:"w-fit",asChild:!0,children:s.jsxs(A,{href:n.link,preserveScroll:!0,children:[s.jsx(_,{iconNode:P}),n.title]})}),s.jsxs(E,{variant:"green",type:"submit",className:"w-fit lg:hidden",form:"addUserForm",disabled:x||m||e.props.view||R(),children:[x||m&&s.jsx(I,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]}),s.jsx("form",{id:"addUserForm",onSubmit:N,className:l?"cursor-not-allowed":"",children:s.jsxs("div",{className:`grid lg:grid-cols-[1fr_150px] gap-4 max-w-[1144px] pb-8 ${t?"lg:grid-cols-[1fr_200px]":"lg:grid-cols-[1fr_150px]"}`,children:[s.jsx("div",{className:"flex flex-col gap-10",children:o.map(r=>s.jsx("div",{className:`grid gap-4 w-full ${l?"pointer-events-none":""}`,children:r.type==="markdown"||r.type==="table"||r.type==="jsonEditor"||r.type==="codeEditor"||r.type==="geoJson"?s.jsxs(s.Fragment,{children:[s.jsx(L,{field:r}),s.jsx(T,{message:$(`${r.type}-${r.name}`)}),s.jsx(re,{field:r,value:p[r.name],onChange:g,processing:x||m||l,notFound:f,search:e.props.search})]}):s.jsxs(s.Fragment,{children:[s.jsx(L,{field:r}),s.jsx(T,{message:$(`${r.type}-${r.name}`)}),s.jsx(z,{field:r,value:p[r.name],onChange:g,processing:x||m||l,notFound:f,search:e.props.search})]})},r.name))}),s.jsxs("div",{className:`p-4 rounded-md h-fit sticky shadow ${t?"top-0 grid gap-4":"top-[84px] hidden lg:block"}`,children:[c&&s.jsxs("div",{className:"flex gap-4 items-center",children:[s.jsx(V,{id:"targetBlank",checked:y,onCheckedChange:r=>h(!!r),className:"cursor-pointer size-5"}),s.jsx(O,{htmlFor:"targetBlank",children:d})]}),s.jsxs(E,{variant:"green",type:"submit",className:"w-fit",disabled:x||m||e.props.view||R(),children:[(x||m)&&s.jsx(I,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]})]})})]})};export{L as LabelRenderer,re as LazyField,pe as default};
@@ -0,0 +1 @@
1
+ import{j as r}from"./app.js";import{A as o}from"./app-layout-BmMzULcJ.js";import t from"./add-group-form-DMz0_Oo9.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-HwvXNZzk.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-RRnKZeeU.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";const m=[];function E(){return r.jsx(o,{breadcrumbs:m,children:r.jsx(t,{})})}export{E as default};
@@ -0,0 +1 @@
1
+ import{u as D,X as O,j as e,B as T,W as M,aE as q,L as z,b as x,I as y,g as P,K as S,M as U,N as A,aF as G,O as H}from"./app.js";import{Icon as I}from"./icon-DpkedrXG.js";import{r as h}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";const E=h.memo(({field:s,disabled:d,value:c,onCheckedChange:i,tooltip:n})=>{const m=h.useCallback(l=>{i(s.name,l)},[s.name,i]);return e.jsxs("div",{className:"flex gap-3 items-center",children:[e.jsx(P,{id:s.name,className:"cursor-pointer size-5",disabled:d,checked:c,onCheckedChange:m}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(x,{className:"cursor-pointer",htmlFor:s.name,children:s.label}),n&&e.jsx(S,{children:e.jsxs(U,{children:[e.jsx(A,{onClick:l=>l.preventDefault(),children:e.jsx(I,{iconNode:G,className:"text-primary w-5 h-5 cursor-pointer"})}),e.jsx(H,{align:"center",side:"top",children:e.jsx("p",{children:s.tooltip})})]})})]})]})});function J(){var u,g,j,b,v,f,N,k,C,w,F;const s=D(),{fields:d,groupedTokens:c,users:i}=s.props,{data:n,setData:m,clearErrors:l,post:L,processing:o}=O({...Object.fromEntries(d.map(a=>[a.name,a.value])),...Object.fromEntries(i.map(a=>[a.name,a.value])),...Object.fromEntries(c.flatMap(a=>a.fields.map(t=>[t.name,t.value])))}),r=a=>s.props.fields.find(t=>t.name===a),p=h.useCallback((a,t)=>{l(),m(a,t)},[]),B=a=>{a.preventDefault(),L(s.props.postLink)};return e.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[e.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[e.jsx(T,{className:"mb-3 w-fit",asChild:!0,children:e.jsxs(M,{href:s.props.btnBack.link,children:[e.jsx(I,{iconNode:q}),s.props.btnBack.title]})}),e.jsxs(T,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:o||s.props.view,children:[o&&e.jsx(z,{className:"h-4 w-4 animate-spin"}),s.props.btnSave.title]})]}),e.jsx("form",{id:"addUserForm",onSubmit:B,className:`${s.props.view?"cursor-not-allowed":""}`,children:e.jsxs("div",{className:"flex flex-col gap-6 max-w-[1144px]",children:[e.jsx("h2",{className:"font-bold text-xl",children:s.props.head}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(x,{htmlFor:(u=r("name"))==null?void 0:u.name,children:(g=r("name"))==null?void 0:g.label}),e.jsx(y,{id:(j=r("name"))==null?void 0:j.name,type:"text",required:!0,tabIndex:1,autoComplete:(b=r("name"))==null?void 0:b.name,value:n.name,onChange:a=>p("name",a.target.value),disabled:o||s.props.view,placeholder:(v=r("name"))==null?void 0:v.label})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(x,{htmlFor:(f=r("description"))==null?void 0:f.name,children:(N=r("description"))==null?void 0:N.label}),e.jsx(y,{id:(k=r("description"))==null?void 0:k.name,type:"text",required:!0,tabIndex:1,autoComplete:(C=r("description"))==null?void 0:C.name,value:n.description,onChange:a=>p("description",a.target.value),disabled:o||s.props.view,placeholder:(w=r("description"))==null?void 0:w.label})]}),s.props.users.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-bold text-xl",children:s.props.userHead}),s.props.users.map(a=>e.jsx(E,{field:a,disabled:o||s.props.view,value:n[a.name],onCheckedChange:p},a.name))]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-4",children:((F=s.props.groupedTokens)==null?void 0:F.length)>0&&s.props.groupedTokens.map(a=>e.jsxs("div",{className:"grid gap-4 content-start justify-between",children:[e.jsx("h2",{className:"font-bold text-xl mt-3",children:a.header}),a.fields.map(t=>e.jsx(E,{field:t,disabled:o||s.props.view,value:n[t.name],onCheckedChange:p,tooltip:!0},t.name))]},a.header))})]})})]})}export{J as default};
@@ -1 +1 @@
1
- import{u as he,V as ue,j as e,B as c,U as Q,aD as ge,L as je,a as o,I as n,S as W,b as X,c as Y,d as Z,e as ee,f as m,H as fe,J as ve,K as be,aE as we,M as Ne,g as Ce}from"./app.js";import{Icon as se}from"./icon-DM49pZW3.js";import{r as ae}from"./monaco-ICtx6xoc.js";import Pe from"./input-error--IOnWghB.js";import ke from"./material-icon-BedgD2NE.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function Ae(){var p,x,h,u,g,j,f,v,b,w,N,C,P,k,F,z,y,I,U,E,S,T,A,L,V,q,D,B,M,H,O,J,K,R,_,$,G;const l=he(),[le,re]=ae.useState(),{fields:ie,groups:de,auth:oe}=l.props,{data:r,setData:te,errors:ne,setError:ce,clearErrors:me,post:pe,processing:i}=ue({...Object.fromEntries(ie.map(s=>[s.name,s.value])),...Object.fromEntries(de.map(s=>[s.name,s.value]))});ae.useEffect(()=>{(async()=>{const t=await Ce.get(`${window.routePrefix}/get-timezones`);re(t.data.timezones)})()},[]);const a=s=>l.props.fields.find(t=>t.name===s),xe=s=>{if(s.preventDefault(),r.userPassword!==r.repeatUserPassword){ce("repeatUserPassword",l.props.passwordError);return}pe(l.props.postLink)},d=(s,t)=>{me(),te(s,t)};return e.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[e.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[e.jsx(c,{className:"mb-3 w-fit",asChild:!0,children:e.jsxs(Q,{href:l.props.btnBack.link,children:[e.jsx(se,{iconNode:ge}),l.props.btnBack.title]})}),e.jsxs(c,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:i||l.props.view,children:[i&&e.jsx(je,{className:"h-4 w-4 animate-spin"}),l.props.btnSave.title]})]}),e.jsx("form",{id:"addUserForm",onSubmit:xe,className:l.props.view?"cursor-not-allowed":"",children:e.jsxs("div",{className:"flex flex-col gap-10 max-w-[1144px]",children:[e.jsx("h2",{className:"font-bold text-xl",children:l.props.head}),e.jsxs("div",{className:"flex-col xl:flex-row flex gap-16",children:[e.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(p=a("login"))==null?void 0:p.name,children:(x=a("login"))==null?void 0:x.label}),e.jsx(n,{id:(h=a("login"))==null?void 0:h.name,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:r.login,onChange:s=>d("login",s.target.value),disabled:i||l.props.view,placeholder:(u=a("login"))==null?void 0:u.label})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(g=a("fullName"))==null?void 0:g.name,children:(j=a("fullName"))==null?void 0:j.label}),e.jsx(n,{id:(f=a("fullName"))==null?void 0:f.name,type:"text",required:!0,tabIndex:1,autoComplete:"additional-name",value:r.fullName,onChange:s=>d("fullName",s.target.value),disabled:i||l.props.view,placeholder:(v=a("fullName"))==null?void 0:v.label})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(b=a("email"))==null?void 0:b.name,children:(w=a("email"))==null?void 0:w.label}),e.jsx(n,{id:(N=a("email"))==null?void 0:N.name,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:r.email,onChange:s=>d("email",s.target.value),disabled:i||l.props.view,placeholder:(C=a("email"))==null?void 0:C.label})]})]}),e.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(P=a("timezone"))==null?void 0:P.name,children:(k=a("timezone"))==null?void 0:k.label}),e.jsxs(W,{onValueChange:s=>d("timezone",s),defaultValue:r.timezone,disabled:i||l.props.view,children:[e.jsx(X,{className:"w-full cursor-pointer",children:e.jsx(Y,{placeholder:(F=a("timezone"))==null?void 0:F.name})}),e.jsx(Z,{children:(le??[]).map(s=>e.jsx(ee,{value:s.value,children:s.label},s.value))})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-start gap-4 xl:justify-between items-start md:items-center",children:[a("date")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(z=a("date"))==null?void 0:z.name,children:(y=a("date"))==null?void 0:y.label}),e.jsx(n,{id:(I=a("date"))==null?void 0:I.name,type:"date",className:"max-w-fit",tabIndex:1,value:r.date,onChange:s=>d("date",s.target.value),disabled:i})]}),e.jsxs("div",{className:"flex gap-6",children:[a("isAdmin")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:(U=a("isAdmin"))==null?void 0:U.name,children:(E=a("isAdmin"))==null?void 0:E.label}),e.jsx(m,{id:(S=a("isAdmin"))==null?void 0:S.name,className:"cursor-pointer size-5",disabled:i||l.props.view,checked:r.isAdmin,onCheckedChange:s=>d("isAdmin",s)})]}),a("isConfirmed")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:(T=a("isConfirmed"))==null?void 0:T.name,children:(A=a("isConfirmed"))==null?void 0:A.label}),e.jsx(m,{id:(L=a("isConfirmed"))==null?void 0:L.name,className:"cursor-pointer size-5",disabled:i||l.props.view,checked:r.isConfirmed,onCheckedChange:s=>d("isConfirmed",s)})]})]})]}),a("locale")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(V=a("locale"))==null?void 0:V.name,children:(q=a("locale"))==null?void 0:q.label}),e.jsxs(W,{onValueChange:s=>d("locale",s),defaultValue:r.locale,disabled:i||l.props.view,children:[e.jsx(X,{className:"w-full cursor-pointer",children:e.jsx(Y,{placeholder:(D=a("locale"))==null?void 0:D.name})}),e.jsx(Z,{children:(l.props.locales??[]).map(s=>e.jsx(ee,{value:s.value,children:s.label},s.value))})]})]})]})]}),oe.user.isAdministrator&&e.jsx(c,{className:"w-fit",asChild:!0,variant:"outline",children:e.jsxs(Q,{href:l.props.userPretend.postLink,method:"post",data:{login:r.login,pretend:!0},children:[e.jsx(ke,{name:"masks",className:"!text-[18px]"}),l.props.userPretend.label]})}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("label",{className:"font-bold text-xl",children:(B=a("userPassword"))==null?void 0:B.label}),e.jsx(fe,{children:e.jsxs(ve,{children:[e.jsx(be,{onClick:s=>s.preventDefault(),children:e.jsx(se,{iconNode:we,className:"text-primary w-5 h-5 cursor-pointer"})}),e.jsx(Ne,{align:"center",side:"top",children:e.jsx("p",{children:(M=a("userPassword"))==null?void 0:M.tooltip})})]})})]}),e.jsxs("div",{className:"grid grid-col-1 lg:grid-cols-2 grid-rows-2 gap-x-16 gap-y-6",children:[e.jsxs("div",{className:"grid gap-4 col-span-1",children:[e.jsx(o,{htmlFor:(H=a("userPassword"))==null?void 0:H.name,children:(O=a("userPassword"))==null?void 0:O.label}),e.jsx(n,{id:(J=a("userPassword"))==null?void 0:J.name,type:"password",required:!l.props.edit,tabIndex:1,autoComplete:"new-password",value:r.password,onChange:s=>d("userPassword",s.target.value),disabled:i||l.props.view,placeholder:(K=a("userPassword"))==null?void 0:K.label})]}),e.jsxs("div",{className:"grid gap-4 col-span-1 col-start-1",children:[e.jsx(o,{htmlFor:(R=a("repeatUserPassword"))==null?void 0:R.name,children:(_=a("repeatUserPassword"))==null?void 0:_.label}),e.jsx(n,{id:($=a("repeatUserPassword"))==null?void 0:$.name,type:"password",required:!l.props.edit,tabIndex:1,autoComplete:"new-password",value:r.repeatUserPassword,onChange:s=>d("repeatUserPassword",s.target.value),disabled:i||l.props.view,placeholder:(G=a("repeatUserPassword"))==null?void 0:G.label}),e.jsx(Pe,{message:ne.repeatUserPassword})]})]}),l.props.groups.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-bold text-xl",children:l.props.groupHead}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-5 xl:grid-cols-6 gap-4",children:l.props.groups.map(s=>e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:s.name,children:s.label}),e.jsx(m,{id:s.name,disabled:i||l.props.view,className:"cursor-pointer size-5",checked:r[s.name],onCheckedChange:t=>d(s.name,t)})]},s.name))})]})]})})]})}export{Ae as default};
1
+ import{u as he,X as ue,j as e,B as c,W as G,aE as ge,L as je,b as o,I as n,S as J,c as Q,d as Y,e as Z,f as ee,g as m,K as fe,M as ve,N as be,aF as we,O as Ne,h as Ce}from"./app.js";import{Icon as se}from"./icon-DpkedrXG.js";import{r as ae}from"./monaco-ICtx6xoc.js";import Pe from"./input-error-CmXZF6xy.js";import Fe from"./material-icon-DwkE6wKL.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function Ae(){var p,x,h,u,g,j,f,v,b,w,N,C,P,F,k,z,y,I,U,E,S,T,A,L,q,V,B,D,M,O,H,K,R,W,X,_,$;const l=he(),[le,re]=ae.useState(),{fields:ie,groups:de,auth:oe}=l.props,{data:r,setData:te,errors:ne,setError:ce,clearErrors:me,post:pe,processing:i}=ue({...Object.fromEntries(ie.map(s=>[s.name,s.value])),...Object.fromEntries(de.map(s=>[s.name,s.value]))});ae.useEffect(()=>{(async()=>{const t=await Ce.get(`${window.routePrefix}/get-timezones`);re(t.data.timezones)})()},[]);const a=s=>l.props.fields.find(t=>t.name===s),xe=s=>{if(s.preventDefault(),r.userPassword!==r.repeatUserPassword){ce("repeatUserPassword",l.props.passwordError);return}pe(l.props.postLink)},d=(s,t)=>{me(),te(s,t)};return e.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[e.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[e.jsx(c,{className:"mb-3 w-fit",asChild:!0,children:e.jsxs(G,{href:l.props.btnBack.link,children:[e.jsx(se,{iconNode:ge}),l.props.btnBack.title]})}),e.jsxs(c,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:i||l.props.view,children:[i&&e.jsx(je,{className:"h-4 w-4 animate-spin"}),l.props.btnSave.title]})]}),e.jsx("form",{id:"addUserForm",onSubmit:xe,className:l.props.view?"cursor-not-allowed":"",children:e.jsxs("div",{className:"flex flex-col gap-10 max-w-[1144px]",children:[e.jsx("h2",{className:"font-bold text-xl",children:l.props.head}),e.jsxs("div",{className:"flex-col xl:flex-row flex gap-16",children:[e.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(p=a("login"))==null?void 0:p.name,children:(x=a("login"))==null?void 0:x.label}),e.jsx(n,{id:(h=a("login"))==null?void 0:h.name,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:r.login,onChange:s=>d("login",s.target.value),disabled:i||l.props.view,placeholder:(u=a("login"))==null?void 0:u.label})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(g=a("fullName"))==null?void 0:g.name,children:(j=a("fullName"))==null?void 0:j.label}),e.jsx(n,{id:(f=a("fullName"))==null?void 0:f.name,type:"text",required:!0,tabIndex:1,autoComplete:"additional-name",value:r.fullName,onChange:s=>d("fullName",s.target.value),disabled:i||l.props.view,placeholder:(v=a("fullName"))==null?void 0:v.label})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(b=a("email"))==null?void 0:b.name,children:(w=a("email"))==null?void 0:w.label}),e.jsx(n,{id:(N=a("email"))==null?void 0:N.name,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:r.email,onChange:s=>d("email",s.target.value),disabled:i||l.props.view,placeholder:(C=a("email"))==null?void 0:C.label})]})]}),e.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(P=a("timezone"))==null?void 0:P.name,children:(F=a("timezone"))==null?void 0:F.label}),e.jsxs(J,{onValueChange:s=>d("timezone",s),defaultValue:r.timezone,disabled:i||l.props.view,children:[e.jsx(Q,{className:"w-full cursor-pointer",children:e.jsx(Y,{placeholder:(k=a("timezone"))==null?void 0:k.name})}),e.jsx(Z,{children:(le??[]).map(s=>e.jsx(ee,{value:s.value,children:s.label},s.value))})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-start gap-4 xl:justify-between items-start md:items-center",children:[a("date")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(z=a("date"))==null?void 0:z.name,children:(y=a("date"))==null?void 0:y.label}),e.jsx(n,{id:(I=a("date"))==null?void 0:I.name,type:"date",className:"max-w-fit",tabIndex:1,value:r.date,onChange:s=>d("date",s.target.value),disabled:i})]}),e.jsxs("div",{className:"flex gap-6",children:[a("isAdmin")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:(U=a("isAdmin"))==null?void 0:U.name,children:(E=a("isAdmin"))==null?void 0:E.label}),e.jsx(m,{id:(S=a("isAdmin"))==null?void 0:S.name,className:"cursor-pointer size-5",disabled:i||l.props.view,checked:r.isAdmin,onCheckedChange:s=>d("isAdmin",s)})]}),a("isConfirmed")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:(T=a("isConfirmed"))==null?void 0:T.name,children:(A=a("isConfirmed"))==null?void 0:A.label}),e.jsx(m,{id:(L=a("isConfirmed"))==null?void 0:L.name,className:"cursor-pointer size-5",disabled:i||l.props.view,checked:r.isConfirmed,onCheckedChange:s=>d("isConfirmed",s)})]})]})]}),a("locale")&&e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{htmlFor:(q=a("locale"))==null?void 0:q.name,children:(V=a("locale"))==null?void 0:V.label}),e.jsxs(J,{onValueChange:s=>d("locale",s),defaultValue:r.locale,disabled:i||l.props.view,children:[e.jsx(Q,{className:"w-full cursor-pointer",children:e.jsx(Y,{placeholder:(B=a("locale"))==null?void 0:B.name})}),e.jsx(Z,{children:(l.props.locales??[]).map(s=>e.jsx(ee,{value:s.value,children:s.label},s.value))})]})]})]})]}),oe.user.isAdministrator&&e.jsx(c,{className:"w-fit",asChild:!0,variant:"outline",children:e.jsxs(G,{href:l.props.userPretend.postLink,method:"post",data:{login:r.login,pretend:!0},children:[e.jsx(Fe,{name:"masks",className:"!text-[18px]"}),l.props.userPretend.label]})}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("label",{className:"font-bold text-xl",children:(D=a("userPassword"))==null?void 0:D.label}),e.jsx(fe,{children:e.jsxs(ve,{children:[e.jsx(be,{onClick:s=>s.preventDefault(),children:e.jsx(se,{iconNode:we,className:"text-primary w-5 h-5 cursor-pointer"})}),e.jsx(Ne,{align:"center",side:"top",children:e.jsx("p",{children:(M=a("userPassword"))==null?void 0:M.tooltip})})]})})]}),e.jsxs("div",{className:"grid grid-col-1 lg:grid-cols-2 grid-rows-2 gap-x-16 gap-y-6",children:[e.jsxs("div",{className:"grid gap-4 col-span-1",children:[e.jsx(o,{htmlFor:(O=a("userPassword"))==null?void 0:O.name,children:(H=a("userPassword"))==null?void 0:H.label}),e.jsx(n,{id:(K=a("userPassword"))==null?void 0:K.name,type:"password",required:!l.props.edit,tabIndex:1,autoComplete:"new-password",value:r.password,onChange:s=>d("userPassword",s.target.value),disabled:i||l.props.view,placeholder:(R=a("userPassword"))==null?void 0:R.label})]}),e.jsxs("div",{className:"grid gap-4 col-span-1 col-start-1",children:[e.jsx(o,{htmlFor:(W=a("repeatUserPassword"))==null?void 0:W.name,children:(X=a("repeatUserPassword"))==null?void 0:X.label}),e.jsx(n,{id:(_=a("repeatUserPassword"))==null?void 0:_.name,type:"password",required:!l.props.edit,tabIndex:1,autoComplete:"new-password",value:r.repeatUserPassword,onChange:s=>d("repeatUserPassword",s.target.value),disabled:i||l.props.view,placeholder:($=a("repeatUserPassword"))==null?void 0:$.label}),e.jsx(Pe,{message:ne.repeatUserPassword})]})]}),l.props.groups.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-bold text-xl",children:l.props.groupHead}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-5 xl:grid-cols-6 gap-4",children:l.props.groups.map(s=>e.jsxs("div",{className:"grid gap-4",children:[e.jsx(o,{className:"cursor-pointer",htmlFor:s.name,children:s.label}),e.jsx(m,{id:s.name,disabled:i||l.props.view,className:"cursor-pointer size-5",checked:r[s.name],onCheckedChange:t=>d(s.name,t)})]},s.name))})]})]})})]})}export{Ae as default};
@@ -0,0 +1 @@
1
+ import{j as r}from"./app.js";import{A as o}from"./app-layout-BmMzULcJ.js";import t from"./add-user-form-izlXhv2-.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-HwvXNZzk.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-RRnKZeeU.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";import"./input-error-CmXZF6xy.js";const m=[];function F(){return r.jsx(o,{breadcrumbs:m,children:r.jsx(t,{})})}export{F as default};
@@ -0,0 +1 @@
1
+ import{u as i,j as r,V as p,ad as m}from"./app.js";import d from"./app-shell-C8Cnr5Hy.js";import{AppSidebar as n}from"./app-sidebar-HwvXNZzk.js";import{A as x,N as j}from"./app-sidebar-header-RRnKZeeU.js";import{r as o}from"./monaco-ICtx6xoc.js";const c=o.memo(({children:e,breadcrumbs:s=[],className:t})=>{const a=i();return r.jsxs(d,{variant:"sidebar",children:[r.jsx(p,{title:a.props.title}),r.jsx(n,{}),r.jsxs(m,{className:t,children:[r.jsx(x,{breadcrumbs:s}),e]})]})}),S=o.memo(({children:e,className:s,breadcrumbs:t,...a})=>r.jsx(j,{children:r.jsx(c,{breadcrumbs:t,className:s,...a,children:e})}));export{S as A};
@@ -1 +1 @@
1
- import{j as a,aF as d}from"./app.js";import{r as o}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";const c=o.memo(({children:e,variant:s="header"})=>{const[t,n]=o.useState(()=>typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0),i=r=>{n(r),typeof window<"u"&&localStorage.setItem("sidebar",String(r))};return s==="header"?a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:e}):a.jsx(d,{defaultOpen:t,open:t,onOpenChange:i,children:e})});export{c as default};
1
+ import{j as a,aG as d}from"./app.js";import{r as o}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";const c=o.memo(({children:e,variant:s="header"})=>{const[t,n]=o.useState(()=>typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0),i=r=>{n(r),typeof window<"u"&&localStorage.setItem("sidebar",String(r))};return s==="header"?a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:e}):a.jsx(d,{defaultOpen:t,open:t,onOpenChange:i,children:e})});export{c as default};
@@ -0,0 +1 @@
1
+ import{u as b,j as s,aM as N,aN as g,aO as i,aP as c,aQ as f,aR as v,aS as k,aT as d,B as C,aU as M,aV as w,aW as _,aX as y,aY as B,aZ as x,W as n,a_ as T,a$ as p,b0 as t,C as o,b1 as h,b2 as j,b3 as m,b4 as u,b5 as R,b6 as $}from"./app.js";import{NavMain as P}from"./nav-main-BqKm87JZ.js";import l from"./material-icon-DwkE6wKL.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";function F(){const r=b();return s.jsxs(N,{collapsible:"icon",variant:"inset",children:[s.jsx(g,{children:s.jsx(i,{children:s.jsxs(c,{children:[s.jsx(f,{className:"p-0 shadow-none border-none bg-transparent hidden md:block",children:s.jsxs(v,{children:[s.jsx(k,{asChild:!0,className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground rounded-md",children:s.jsx(d,{asChild:!0,children:s.jsx(C,{variant:"ghost",asChild:!0,className:`w-full ${r.props.section?"":"pointer-events-none"}`,children:s.jsxs("div",{children:[s.jsx(l,{name:"rocket_launch",className:"!text-[18px]"}),s.jsx("span",{className:"group-data-[state=collapsed]:hidden",children:r.props.brand}),r.props.section&&s.jsx(M,{className:"ml-auto group-data-[state=collapsed]:hidden"})]})})})}),r.props.section&&s.jsx(w,{side:"right",className:"z-[1003]",children:r.props.section.map(e=>s.jsx("div",{children:e.subItems?s.jsxs(_,{children:[s.jsxs(y,{className:"flex gap-2 items-center cursor-pointer",children:[s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}),s.jsx(B,{children:e.subItems.map(a=>s.jsx(x,{children:a.type==="blank"?s.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&s.jsx(l,{name:a.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:a.title})]},a.id):s.jsxs(n,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&s.jsx(l,{name:a.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:a.title})]},a.id)},a.id))})]}):s.jsx(x,{children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}):s.jsxs(n,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]})})},e.id))})]})}),s.jsx(T,{className:"px-2 py-0 block md:hidden",children:s.jsx(i,{children:s.jsx(p,{asChild:!0,className:"group/collapsible",children:s.jsxs(c,{children:[s.jsx(t,{asChild:!0,children:s.jsxs(d,{children:[s.jsx(l,{name:"rocket_launch",className:"!text-[18px]"}),s.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:r.props.brand}),r.props.section&&s.jsx(o,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),r.props.section&&s.jsx(h,{children:s.jsx(j,{children:r.props.section&&r.props.section.map(e=>e.subItems?s.jsx(i,{children:s.jsx(p,{asChild:!0,className:"group/collapsible-sub",children:s.jsxs(c,{children:[s.jsx(t,{asChild:!0,children:s.jsxs(d,{children:[s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),s.jsx(o,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible-sub:rotate-90"})]})}),s.jsx(h,{children:s.jsx(j,{children:e.subItems.map(a=>s.jsx(m,{children:s.jsx(u,{asChild:!0,children:a.type==="blank"?s.jsxs("a",{href:a.link,target:"_blank",className:"flex gap-2 items-center",children:[a.icon&&s.jsx(l,{name:a.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:a.title})]}):s.jsxs(n,{href:a.link,className:"flex gap-2 items-center",children:[a.icon&&s.jsx(l,{name:a.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:a.title})]})})},a.id))})})]})})},e.id):s.jsx(m,{children:s.jsx(u,{asChild:!0,children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}):s.jsxs(n,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(l,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]})})},e.id))})})]})})})})]},r.props.brand)})}),s.jsx(R,{children:s.jsx(P,{items:r.props.menu})}),s.jsx($,{children:s.jsx("div",{className:"text-center opacity-70",children:r.props.showVersion&&"v.4.3.0"})})]})}export{F as AppSidebar};
@@ -0,0 +1 @@
1
+ import{u as P,j as e,h as f,aH as B,q as z,B as E,aI as _,v as H,w as J,aJ as F,M as q,N as G,E as K,O as U,r as V,aK as W,W as Y,L as T,aL as Q}from"./app.js";import{Breadcrumbs as X}from"./breadcrumbs-DSMzNYiS.js";import{NavUser as Z}from"./nav-user-DuCZNsZX.js";import{ThemeSwitcher as ee}from"./theme-switcher-cgyA7_cO.js";import{r as n}from"./monaco-ICtx6xoc.js";import te from"./material-icon-DwkE6wKL.js";const k=n.createContext(void 0),de=({children:i})=>{const[x,u]=n.useState([]),[b,p]=n.useState([]),[w,l]=n.useState([]),[S,v]=n.useState(!1),[r,c]=n.useState([]),N=P(),[M,j]=n.useState({}),d=[...b,...w],m=async()=>{try{const t=await f.get(`${window.routePrefix}/api/notifications`,{params:{unreadOnly:!0,limit:4}});u(t.data)}catch(t){console.error("Error fetching bell notifications:",t)}},h=async()=>{try{const t=await f.post(`${window.routePrefix}/notifications`);j(t.data)}catch(t){console.log(t)}},y=async()=>{await m()},g=async()=>{try{const t=await f.get(`${window.routePrefix}/api/notifications/get-classes`);c(t.data)}catch(t){console.error("Error fetching tabs:",t)}},C=async(t,s)=>{try{if(!t){await $(s);return}const a=await f.post(`${window.routePrefix}/api/notifications/search`,{s:t,notificationClass:s});l(a.data)}catch(a){console.error("Error searching notifications:",a)}},$=async t=>{v(!0);try{const s=`${window.routePrefix}/api/notifications/${t}`,a=await f.get(s,{params:{limit:20,skip:0,unreadOnly:!1}});return p([]),l(a.data),a.data}catch(s){return console.error("Error fetching all notifications:",s),[]}finally{v(!1)}},D=async(t,s)=>{try{const a=`${window.routePrefix}/api/notifications/${t}`,o=await f.get(a,{params:{limit:20,skip:s,unreadOnly:!1}});return l(R=>[...R,...o.data]),o.data}catch(a){return console.error("Error paginating notifications:",a),[]}};n.useEffect(()=>{if(!N.props.notifications)return;h(),m();const t=new EventSource(`${window.routePrefix}/api/notifications/stream`);return t.addEventListener("connected",s=>{const a=JSON.parse(s.data);console.log("Connected event:",a),g()}),t.addEventListener("notification",s=>{const a=JSON.parse(s.data);p(o=>[a,...o]),u(o=>[a,...o].slice(0,4))}),t.onerror=()=>{console.error("SSE connection error")},()=>t.close()},[]);const I=async(t,s)=>{try{await f.put(`${window.routePrefix}/api/notifications/${t}/${s}/read`,{}),p(a=>a.map(o=>o.id===s?{...o,read:!0}:o)),l(a=>a.map(o=>o.id===s?{...o,read:!0}:o)),u([])}catch(a){console.error("Error marking as read:",a)}},L=async()=>{try{await f.put(`${window.routePrefix}/api/notifications/read-all`),p(t=>t.map(s=>({...s,read:!0}))),l(t=>t.map(s=>({...s,read:!0}))),await m()}catch(t){console.error("Error marking all as read:",t)}},O=x.filter(t=>!t.read).length;return e.jsx(k.Provider,{value:{bellNotifications:x,allNotifications:d,unreadCount:O,getTabs:g,tabs:r,search:C,markAsRead:I,markAllAsRead:L,getLocale:h,messages:M,fetchAllNotifications:$,paginateNotifications:D,loading:S,refreshBellNotifications:y},children:i})},A=()=>{const i=n.useContext(k);if(i===void 0)throw new Error("useNotifications must be used within a NotificationProvider");return i};function ae(){const{bellNotifications:i,markAsRead:x,unreadCount:u,refreshBellNotifications:b,messages:p}=A(),[w,l]=n.useState(!1),S=async(r,c)=>{l(!0);try{await x(r,c),await b()}catch(N){console.error("Error marking as read:",N)}finally{l(!1)}},v=r=>{const c=new Date,N=new Date(r),M=c.getTime()-N.getTime(),j=Math.floor(M/1e3),d=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(j<60)return d.format(-j,"second");const m=Math.floor(j/60);if(m<60)return d.format(-m,"minute");const h=Math.floor(m/60);if(h<24)return d.format(-h,"hour");const y=Math.floor(h/24);if(y<30)return d.format(-y,"day");const g=Math.floor(y/30);if(g<12)return d.format(-g,"month");const C=Math.floor(g/12);return d.format(-C,"year")};return e.jsxs(B,{children:[e.jsx(z,{asChild:!0,className:"cursor-pointer data-[state=open]:bg-sidebar-accent",children:e.jsxs(E,{variant:"ghost",className:"relative",children:[e.jsx(_,{}),u>0&&e.jsx("div",{className:"absolute top-1.5 right-1.5 size-1.5 rounded-full bg-destructive"})]})}),e.jsxs(H,{className:"z-[1002] p-2",align:"end",onCloseAutoFocus:r=>r.preventDefault(),children:[e.jsx(J,{className:`${w?"opacity-50 pointer-events-none":""}`,children:i.length===0?e.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No notifications"}):i.map(r=>e.jsxs("div",{children:[e.jsx(F,{asChild:!0,className:"cursor-pointer",onSelect:c=>{c.preventDefault(),V.visit(`${window.routePrefix}/notifications?type=${r.notificationClass}`)},children:e.jsxs("div",{className:"grid grid-cols-[32px_250px] grid-rows-[auto_1fr] items-start gap-x-4 gap-y-2",children:[r.icon?e.jsx(te,{name:r.icon.icon,style:{color:r.icon.iconColor},className:"!text-[32px]"}):e.jsx("div",{}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:r.title}),e.jsx("span",{className:"truncate",children:r.message})]}),e.jsxs("div",{className:"col-start-2 flex justify-between flex-nowrap items-center",children:[e.jsx("div",{className:"flex flex-nowrap gap-2 items-center",children:e.jsx("div",{children:v(r.createdAt)})}),e.jsxs(q,{children:[e.jsx(G,{asChild:!0,children:e.jsx(E,{variant:"ghost",size:"icon",className:"size-4",onClick:c=>{c.stopPropagation(),S(r.notificationClass,r.id)},children:e.jsx(K,{className:"text-primary"})})}),e.jsx(U,{side:"left",className:"z-[1003]",children:e.jsx("p",{children:p["Make read"]})})]})]})]})}),e.jsx(W,{})]},r.id))}),e.jsx(E,{variant:"secondary",asChild:!0,children:e.jsxs(Y,{href:`${window.routePrefix}/notifications?type=general`,className:`w-full ${w?"opacity-50 pointer-events-none":""}`,children:[p["View All"],w&&e.jsx(T,{className:"h-4 w-4 animate-spin"})]})})]})]})}function se({breadcrumbs:i=[]}){const{tabs:x}=A(),u=P();return e.jsx("header",{className:"border-sidebar-border/50 flex h-16 shrink-0 items-center gap-2 border-b px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4",children:e.jsxs("div",{className:"flex justify-between w-full",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{className:"-ml-1"}),e.jsx(X,{breadcrumbs:i})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx(ee,{}),u.props.notifications&&(x.length>0?e.jsx(ae,{}):e.jsx("div",{className:"w-[40px] flex-none flex justify-center",children:e.jsx(T,{className:"size-4 animate-spin"})})),e.jsx(Z,{})]})]})})}const fe=Object.freeze(Object.defineProperty({__proto__:null,AppSidebarHeader:se},Symbol.toStringTag,{value:"Module"}));export{se as A,de as N,fe as a,A as u};
package/assets/app.js CHANGED
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group-7yAK6uFY.js","./app-layout-i2zN9Rn-.js","./app-shell-CHEYhVco.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-DeF8WNmW.js","./nav-main-9Eb_A0rf.js","./material-icon-BedgD2NE.js","./app-sidebar-header-DdM1EOrb.js","./breadcrumbs-C439DWrC.js","./nav-user-CRAfyE-x.js","./user-info-CcYdmjMZ.js","./user-menu-content-DbUk8ZeY.js","./theme-switcher-CKiJbMkh.js","./icon-DM49pZW3.js","./add-group-form-BNmpvW8K.js","./add-user-NoYkTfZi.js","./add-user-form-DrclnTOd.js","./input-error--IOnWghB.js","./add-CjiiZikQ.js","./add-form-M8eciH6Z.js","./field-renderer-CNZDdaEm.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-BKY-a16V.js","./del-modal-_b3CSNHb.js","./catalog-C71LuRag.css","./dashboard-Bi5KeZu2.js","./dashboard-BOltB2Hq.css","./form-DaaOc8Fa.js","./form-CSw9kHpL.js","./home-BN7cR9SI.js","./init-user-DNrB8Xt5.js","./list-DCZIbKAJ.js","./list-table-CQDHdLv5.js","./pagination-render-xsEktzA8.js","./login-6Xb8bcPq.js","./module-B4-7WkY5.js","./notification-ma2x7vka.js","./tabs-BK_5wdPA.js","./register-BIyjCy8M.js","./welcome-cWh1qnl_.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group-D5MrUNE1.js","./app-layout-BmMzULcJ.js","./app-shell-C8Cnr5Hy.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-HwvXNZzk.js","./nav-main-BqKm87JZ.js","./material-icon-DwkE6wKL.js","./app-sidebar-header-RRnKZeeU.js","./breadcrumbs-DSMzNYiS.js","./nav-user-DuCZNsZX.js","./user-info-BGQvqBmO.js","./user-menu-content-BDm88xaM.js","./theme-switcher-cgyA7_cO.js","./icon-DpkedrXG.js","./add-group-form-DMz0_Oo9.js","./add-user-iCupTmGS.js","./add-user-form-izlXhv2-.js","./input-error-CmXZF6xy.js","./add-DbQJd7Bm.js","./add-form-tDZGN7FP.js","./field-renderer-DBKkDhBG.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-CpDHgq8b.js","./del-modal-DyIWFflP.js","./catalog-C71LuRag.css","./dashboard-C_EdlZvv.js","./dashboard-BOltB2Hq.css","./form-J27uSTUj.js","./form-pf6uriQX.js","./home-CO-50-T_.js","./init-user-DaOvt0vG.js","./list-eG7X4aSC.js","./list-table-Bc_4C3bv.js","./pagination-render-D9ogYx-T.js","./login-DR6fvKtm.js","./module-C0dPDXsj.js","./notification-BwG5Ug4o.js","./tabs-BhkFoerH.js","./register-hJD1ETdf.js","./welcome-BwoI5hJ3.js"])))=>i.map(i=>d[i]);
2
2
  import{g as Ju,s as ai,c as xd,i as kV,h as wQ,e as _Q,f as SQ,t as CQ,_ as fn}from"./jsoneditor-D95dIAP2.js";import{b as LQ,c as VP,r as vV,a as NQ}from"./vendor-wzZzN_Jv.js";import{r as g,e as ve,R as gV,F as IQ}from"./monaco-ICtx6xoc.js";import{r as IA,R as qD,F as sa,a as la,b as da,c as ua,d as ha,e as pa,f as fa,g as ya,h as ma,i as ka,j as va,k as ga,l as Ma,m as xa,n as ba,o as wa,p as _a,q as Sa,s as Ca,t as La,u as Na,v as Ia,w as Aa,x as Ea,y as Ta,z as Ra,A as ja,B as Da,C as qa,D as za,E as $a,G as Oa,H as Pa,I as Ha,J as Ba,K as Va,L as Fa,M as Ua,N as Ga,O as Za,P as Wa,Q as Xa,S as Ka,T as Ya,U as Qa,V as Ja,W as eo,X as to,Y as no,Z as ao,_ as oo,$ as ro,a0 as io,a1 as co,a2 as so,a3 as lo,a4 as uo,a5 as ho,a6 as po,a7 as fo,a8 as yo,a9 as mo,aa as ko,ab as vo,ac as go,ad as Mo,ae as xo,af as bo,ag as wo,ah as _o,ai as So,aj as Co,ak as Ed,al as Td,am as Rd,an as AQ,ao as EQ,ap as TQ,aq as RQ,ar as jQ,as as DQ,at as qQ,au as zQ}from"./handsontable-PVakPtJV.js";var MR={exports:{}},$u={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -8062,4 +8062,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
8062
8062
  * Last updated: Mar 09, 2023
8063
8063
  *
8064
8064
  * Description: Definition file for Chinese - China language-country.
8065
- */const yqe={languageCode:"zh-CN",[Co]:"上方插入行",[So]:"下方插入行",[_o]:"左方插入列",[wo]:"右方插入列",[bo]:["移除该行","移除多行"],[xo]:["移除该列","移除多列"],[Mo]:"撤销",[go]:"恢复",[vo]:"只读",[ko]:"清空该列",[mo]:"对齐",[yo]:"左对齐",[fo]:"水平居中",[po]:"右对齐",[ho]:"两端对齐",[uo]:"顶端对齐",[lo]:"垂直居中",[so]:"底端对齐",[co]:"冻结该列",[io]:"取消冻结",[ro]:"边框",[oo]:"上",[ao]:"右",[no]:"下",[to]:"左",[eo]:"移除边框",[Ja]:"插入批注",[Qa]:"编辑批注",[Ya]:"删除批注",[Ka]:"只读批注",[Xa]:"合并",[Wa]:"取消合并",[Za]:"复制",[Rd]:"带标题的复制",[Td]:"带标题组的复制",[Ed]:"仅复制标题",[Ga]:"剪切",[Ua]:"插入子行",[Fa]:"与母行分离",[Va]:["隐藏该列","隐藏多列"],[Ba]:["显示该列","显示多列"],[Ha]:["隐藏该行","隐藏多行"],[Pa]:["显示该行","显示多行"],[Oa]:"无",[$a]:"为空",[za]:"不为空",[qa]:"等于",[Da]:"不等于",[ja]:"开头是",[Ra]:"结尾是",[Ta]:"包含",[Ea]:"不包含",[Aa]:"大于",[Ia]:"大于或等于",[Na]:"小于",[La]:"小于或等于",[Ca]:"在此范围",[Sa]:"不在此范围",[_a]:"之后",[wa]:"之前",[ba]:"今天",[xa]:"明天",[Ma]:"昨天",[ga]:"空白单元格",[va]:"按条件过滤",[ka]:"按值过滤",[ma]:"且",[ya]:"或",[fa]:"全选",[pa]:"清除",[ha]:"确认",[ua]:"取消",[da]:"搜索",[la]:"值",[sa]:"第二值"};RQ();const yV={de:rqe,en:qQ,es:iqe,fr:cqe,it:sqe,ja:lqe,ko:dqe,nl:uqe,pl:hqe,pt:pqe,ru:fqe,zh:yqe},mqe=document.documentElement.lang,hK=yV[mqe]??yV.en;jQ(hK);const pK=({config:e,data:n=[],onChange:o,disabled:r})=>{const{appearance:c}=iz(),[d,u]=g.useState("ht-theme-main"),h=g.useCallback((k,m)=>{var x,b;if(m==="loadData")return;const y=(b=(x=f.current)==null?void 0:x.hotInstance)==null?void 0:b.getSourceData();o(y)},[]),f=g.useRef(null);return g.useEffect(()=>{const k=setTimeout(()=>{var m;(m=f.current)!=null&&m.hotInstance&&f.current.hotInstance.loadData(n)},100);return()=>clearTimeout(k)},[n]),g.useEffect(()=>{u(c==="dark"?"ht-theme-main-dark":"ht-theme-main")},[c]),M.jsx(DQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:hK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx(zQ,{data:k.data,...k},k.data))})},Jqe=Object.freeze(Object.defineProperty({__proto__:null,default:pK},Symbol.toStringTag,{value:"Module"})),kqe=()=>{const[e,n]=g.useState({width:typeof window<"u"?window.innerWidth:1024,height:typeof window<"u"?window.innerHeight:768});return g.useEffect(()=>{if(typeof window>"u")return;const o=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),e},fK=({onChange:e,value:n,options:o,disabled:r})=>{const{appearance:c}=iz(),[d,u]=g.useState("light"),h=g.useRef(null),f=g.useRef(null),{width:k}=kqe(),m=k<768,y=k>=768&&k<1024,x=_=>{e(_)},b=_=>{h.current=_,w()},w=()=>{var C;if(!h.current)return;const _={minimap:{enabled:!m},fontSize:m?12:y?13:14,lineNumbers:m?"off":"on",lineDecorationsWidth:m?5:10,scrollBeyondLastLine:!m,wordWrap:m?"on":"bounded",renderWhitespace:m?"none":"selection",padding:{top:m?8:16,bottom:m?8:16}};h.current.updateOptions(_),(C=f.current)==null||C.classList.add("overflow-hidden"),setTimeout(()=>{var N,A;(N=h.current)==null||N.layout(),(A=f.current)==null||A.classList.remove("overflow-hidden")},100)};g.useEffect(()=>{u(c==="dark"?"vs-dark":"light")},[c]),g.useEffect(()=>{w()},[k]);const S=m?"300px":y?"400px":"500px";return M.jsx("div",{className:`border rounded-lg ${m?"p-1":"p-2"}`,ref:f,children:M.jsx(IQ,{height:S,language:o.language,value:n,theme:d,options:{automaticLayout:!0,...m&&{wordWrap:"on"},minimap:{enabled:!m}},onChange:x,onMount:b,className:`transition-all duration-200 ease-in-out ${r?"pointer-events-none opacity-50 cursor-not-allowed":""}`})})},eze=Object.freeze(Object.defineProperty({__proto__:null,default:fK},Symbol.toStringTag,{value:"Module"})),mV=$A("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"}}),cz=g.forwardRef(({options:e,onValueChange:n,variant:o,processing:r,disabled:c,defaultValue:d=[],placeholder:u="",notFound:h="",search:f="",animation:k=0,maxCount:m=3,modalPopover:y=!1,asChild:x=!1,className:b,mode:w="multiple",...S},_)=>{const[C,N]=g.useState(d),[A,T]=g.useState(!1),[q,$]=g.useState(!1),z=V=>{if(V.key==="Enter")T(!0);else if(V.key==="Backspace"&&!V.currentTarget.value){const se=[...C];se.pop(),N(se),n(se)}},P=V=>{let se;w==="single"?se=C.includes(V)?[]:[V]:se=C.includes(V)?C.filter(le=>le!==V):[...C,V],N(se),n(se),w==="single"&&T(!1)},ae=()=>{N([]),n([])},re=()=>{T(V=>!V)},he=()=>{const V=C.slice(0,m);N(V),n(V)};return M.jsxs(FW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(UW,{asChild:!0,children:M.jsx(OA,{ref:_,...S,onClick:re,disabled:c,className:K("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",b),children:C.length>0?M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsxs("div",{className:"flex flex-wrap items-center",children:[C.slice(0,m).map(V=>{const se=e.find(ye=>ye.value===V),le=se==null?void 0:se.icon;return M.jsxs("div",{className:K(q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[le&&M.jsx(le,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ye=>{ye.stopPropagation(),r||P(V)}})]},V)}),w==="multiple"&&C.length>m&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${C.length-m} more`,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:V=>{V.stopPropagation(),he()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[C.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ri,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:V=>{V.stopPropagation(),ae()}}),M.jsx(tz,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(oi,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):M.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[M.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:u}),M.jsx(oi,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(GW,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(vG,{placeholder:f,onKeyDown:z}),M.jsxs(gG,{children:[M.jsx(MG,{children:h}),M.jsx(xG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(wG,{onSelect:()=>P(V.value),className:"cursor-pointer",children:[M.jsx("div",{className:K("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",se?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:M.jsx(Uo,{className:"h-4 w-4 text-primary-foreground"})}),V.icon&&M.jsx(V.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:V.label})]},V.value)})}),M.jsx(bG,{})]})]})}),k>0&&C.length>0&&w==="multiple"&&M.jsx(ti,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});cz.displayName="MultiSelect";const tze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function vqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),Object.assign(window.UIComponents,{Avatar:xae,AvatarImage:bae,AvatarFallback:wae,Badge:Sae,Breadcrumb:L9e,BreadcrumbList:N9e,BreadcrumbItem:I9e,BreadcrumbLink:A9e,BreadcrumbPage:E9e,BreadcrumbSeparator:T9e,BreadcrumbEllipsis:R9e,Button:OA,Calendar:MSe,Card:xSe,CardHeader:bSe,CardFooter:LSe,CardTitle:wSe,CardAction:SSe,CardDescription:_Se,CardContent:CSe,Checkbox:$Se,Collapsible:USe,CollapsibleTrigger:GSe,CollapsibleContent:ZSe,Command:mq,CommandDialog:TLe,CommandInput:vG,CommandList:gG,CommandEmpty:MG,CommandGroup:xG,CommandItem:wG,CommandShortcut:RLe,CommandSeparator:bG,ContextMenu:dAe,ContextMenuTrigger:uAe,ContextMenuContent:vAe,ContextMenuItem:gAe,ContextMenuCheckboxItem:MAe,ContextMenuRadioItem:xAe,ContextMenuLabel:bAe,ContextMenuSeparator:wAe,ContextMenuShortcut:_Ae,ContextMenuGroup:hAe,ContextMenuPortal:pAe,ContextMenuSub:fAe,ContextMenuSubContent:kAe,ContextMenuSubTrigger:mAe,ContextMenuRadioGroup:yAe,Dialog:uG,DialogClose:ALe,DialogContent:fG,DialogDescription:kG,DialogFooter:ELe,DialogHeader:yG,DialogOverlay:pG,DialogPortal:hG,DialogTitle:mG,DialogTrigger:ILe,DialogStack:VZ,DialogStackTrigger:SAe,DialogStackOverlay:CAe,DialogStackBody:LAe,DialogStackContent:NAe,DialogStackTitle:IAe,DialogStackDescription:AAe,DialogStackHeader:EAe,DialogStackFooter:TAe,DialogStackNext:RAe,DialogStackPrevious:jAe,DropdownMenu:dEe,DropdownMenuPortal:uEe,DropdownMenuTrigger:hEe,DropdownMenuContent:pEe,DropdownMenuGroup:fEe,DropdownMenuLabel:gEe,DropdownMenuItem:yEe,DropdownMenuCheckboxItem:mEe,DropdownMenuRadioGroup:kEe,DropdownMenuRadioItem:vEe,DropdownMenuSeparator:MEe,DropdownMenuShortcut:xEe,DropdownMenuSub:bEe,DropdownMenuSubTrigger:wEe,DropdownMenuSubContent:_Ee,Input:lW,Label:LEe,Menubar:cTe,MenubarPortal:TW,MenubarMenu:sTe,MenubarTrigger:uTe,MenubarContent:hTe,MenubarGroup:lTe,MenubarSeparator:kTe,MenubarLabel:mTe,MenubarItem:pTe,MenubarShortcut:vTe,MenubarCheckboxItem:fTe,MenubarRadioGroup:dTe,MenubarRadioItem:yTe,MenubarSub:gTe,MenubarSubTrigger:MTe,MenubarSubContent:xTe,Pagination:bTe,PaginationContent:wTe,PaginationLink:Qq,PaginationItem:_Te,PaginationPrevious:STe,PaginationNext:CTe,PaginationEllipsis:LTe,Popover:FW,PopoverTrigger:UW,PopoverContent:GW,PopoverAnchor:BTe,Select:CRe,SelectContent:ARe,SelectGroup:LRe,SelectItem:TRe,SelectLabel:ERe,SelectScrollDownButton:SX,SelectScrollUpButton:_X,SelectSeparator:RRe,SelectTrigger:IRe,SelectValue:NRe,Separator:tz,Sheet:LX,SheetTrigger:$Re,SheetClose:ORe,SheetContent:NX,SheetHeader:IX,SheetFooter:BRe,SheetTitle:AX,SheetDescription:EX,Sidebar:vje,SidebarContent:Cje,SidebarFooter:_je,SidebarGroup:Lje,SidebarGroupAction:Ije,SidebarGroupContent:Aje,SidebarGroupLabel:Nje,SidebarHeader:wje,SidebarInput:bje,SidebarInset:xje,SidebarMenu:Eje,SidebarMenuAction:Dje,SidebarMenuBadge:qje,SidebarMenuButton:jje,SidebarMenuItem:Tje,SidebarMenuSkeleton:zje,SidebarMenuSub:$je,SidebarMenuSubButton:Pje,SidebarMenuSubItem:Oje,SidebarProvider:kje,SidebarRail:Mje,SidebarSeparator:Sje,SidebarTrigger:gje,useSidebar:A2,Skeleton:ND,Slider:iDe,Toaster:$De,Switch:UDe,Table:GDe,TableHeader:ZDe,TableBody:WDe,TableFooter:XDe,TableHead:YDe,TableRow:KDe,TableCell:QDe,TableCaption:JDe,Textarea:eqe,Tooltip:HX,TooltipTrigger:BX,TooltipContent:VX,TooltipProvider:oz,VanillaJSONEditor:DD}),Object.assign(window.JSComponents,{VanillaJSONEditor:DD,HandsonTable:pK,MonacoEditor:fK,MultiSelect:cz})}const{createInertiaApp:gqe}=LF;window.React=ve;window.ReactDOM=qD;window.InertiajsReact=LF;window.LucideReact=C9e;vqe();async function Mqe(e,n){for(const o of Array.isArray(e)?e:[e]){const r=n[o];if(!(typeof r>"u"))return typeof r=="function"?r():r}throw new Error(`Page not found: ${e}`)}gqe({title:e=>`${e}`,resolve:e=>Mqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>fn(()=>import("./add-group-7yAK6uFY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./pages/add-user.tsx":()=>fn(()=>import("./add-user-NoYkTfZi.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url),"./pages/add.tsx":()=>fn(()=>import("./add-CjiiZikQ.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,22,23,24,25,20]),import.meta.url),"./pages/catalog.tsx":()=>fn(()=>import("./catalog-BKY-a16V.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,27,22,23,24,25,20,28]),import.meta.url),"./pages/dashboard.tsx":()=>fn(()=>import("./dashboard-Bi5KeZu2.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,30]),import.meta.url),"./pages/form.tsx":()=>fn(()=>import("./form-DaaOc8Fa.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,32,22,23,24,25,20]),import.meta.url),"./pages/home.tsx":()=>fn(()=>import("./home-BN7cR9SI.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>fn(()=>import("./init-user-DNrB8Xt5.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>fn(()=>import("./list-DCZIbKAJ.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,36,27,37]),import.meta.url),"./pages/login.tsx":()=>fn(()=>import("./login-6Xb8bcPq.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>fn(()=>import("./module-B4-7WkY5.js"),__vite__mapDeps([39,3,4,1,2,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),"./pages/notification.tsx":()=>fn(()=>import("./notification-ma2x7vka.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url),"./pages/register.tsx":()=>fn(()=>import("./register-BIyjCy8M.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>fn(()=>import("./welcome-cWh1qnl_.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),setup({el:e,App:n,props:o}){xne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{Tx as $,xSe as A,OA as B,Go as C,VZ as D,bSe as E,wSe as F,LSe as G,oz as H,lW as I,HX as J,BX as K,Cs as L,VX as M,UDe as N,SAe as O,tw as P,IAe as Q,dne as R,CRe as S,$De as T,hne as U,xF as V,Wqe as W,iI as X,K as Y,R5 as Z,En as _,LEe as a,GSe as a$,Ip as a0,GDe as a1,ZDe as a2,KDe as a3,YDe as a4,WDe as a5,QDe as a6,Ji as a7,uG as a8,fG as a9,YG as aA,ge as aB,xn as aC,sb as aD,O8 as aE,kje as aF,dEe as aG,Ff as aH,yEe as aI,MEe as aJ,gje as aK,vje as aL,wje as aM,Eje as aN,Tje as aO,cTe as aP,sTe as aQ,uTe as aR,jje as aS,w4 as aT,hTe as aU,gTe as aV,MTe as aW,xTe as aX,pTe as aY,Lje as aZ,wU as a_,yG as aa,mG as ab,xje as ac,kqe as ad,iz as ae,T7 as af,f8 as ag,Bw as ah,Uo as ai,mN as aj,nl as ak,ri as al,ELe as am,ALe as an,Op as ao,xp as ap,Sp as aq,ILe as ar,ys as as,v2 as at,ln as au,Jt as av,bt as aw,be as ax,aE as ay,KG as az,IRe as b,CU as b0,$je as b1,Oje as b2,Pje as b3,Cje as b4,_je as b5,L9e as b6,N9e as b7,I9e as b8,E9e as b9,iDe as bA,eqe as bB,Rp as bC,Yu as bD,H1 as bE,Xw as bF,bTe as bG,wTe as bH,_Te as bI,Qq as bJ,STe as bK,CTe as bL,Qqe as bM,Jqe as bN,eze as bO,tze as bP,A9e as ba,T9e as bb,FW as bc,UW as bd,Il as be,jm as bf,GW as bg,MSe as bh,Nje as bi,Aje as bj,USe as bk,ZSe as bl,A2 as bm,VRe as bn,WC as bo,Zx as bp,KC as bq,xae as br,bae as bs,wae as bt,gEe as bu,i7 as bv,Yqe as bw,Kqe as bx,Xqe as by,cz as bz,NRe as c,ARe as d,TRe as e,$Se as f,Nt as g,CAe as h,LAe as i,M as j,NAe as k,ND as l,b9 as m,ff as n,UZ as o,hEe as p,Ki as q,CF as r,pEe as s,Zqe as t,gF as u,fEe as v,dAe as w,uAe as x,vAe as y,gAe as z};
8065
+ */const yqe={languageCode:"zh-CN",[Co]:"上方插入行",[So]:"下方插入行",[_o]:"左方插入列",[wo]:"右方插入列",[bo]:["移除该行","移除多行"],[xo]:["移除该列","移除多列"],[Mo]:"撤销",[go]:"恢复",[vo]:"只读",[ko]:"清空该列",[mo]:"对齐",[yo]:"左对齐",[fo]:"水平居中",[po]:"右对齐",[ho]:"两端对齐",[uo]:"顶端对齐",[lo]:"垂直居中",[so]:"底端对齐",[co]:"冻结该列",[io]:"取消冻结",[ro]:"边框",[oo]:"上",[ao]:"右",[no]:"下",[to]:"左",[eo]:"移除边框",[Ja]:"插入批注",[Qa]:"编辑批注",[Ya]:"删除批注",[Ka]:"只读批注",[Xa]:"合并",[Wa]:"取消合并",[Za]:"复制",[Rd]:"带标题的复制",[Td]:"带标题组的复制",[Ed]:"仅复制标题",[Ga]:"剪切",[Ua]:"插入子行",[Fa]:"与母行分离",[Va]:["隐藏该列","隐藏多列"],[Ba]:["显示该列","显示多列"],[Ha]:["隐藏该行","隐藏多行"],[Pa]:["显示该行","显示多行"],[Oa]:"无",[$a]:"为空",[za]:"不为空",[qa]:"等于",[Da]:"不等于",[ja]:"开头是",[Ra]:"结尾是",[Ta]:"包含",[Ea]:"不包含",[Aa]:"大于",[Ia]:"大于或等于",[Na]:"小于",[La]:"小于或等于",[Ca]:"在此范围",[Sa]:"不在此范围",[_a]:"之后",[wa]:"之前",[ba]:"今天",[xa]:"明天",[Ma]:"昨天",[ga]:"空白单元格",[va]:"按条件过滤",[ka]:"按值过滤",[ma]:"且",[ya]:"或",[fa]:"全选",[pa]:"清除",[ha]:"确认",[ua]:"取消",[da]:"搜索",[la]:"值",[sa]:"第二值"};RQ();const yV={de:rqe,en:qQ,es:iqe,fr:cqe,it:sqe,ja:lqe,ko:dqe,nl:uqe,pl:hqe,pt:pqe,ru:fqe,zh:yqe},mqe=document.documentElement.lang,hK=yV[mqe]??yV.en;jQ(hK);const pK=({config:e,data:n=[],onChange:o,disabled:r})=>{const{appearance:c}=iz(),[d,u]=g.useState("ht-theme-main"),h=g.useCallback((k,m)=>{var x,b;if(m==="loadData")return;const y=(b=(x=f.current)==null?void 0:x.hotInstance)==null?void 0:b.getSourceData();o(y)},[]),f=g.useRef(null);return g.useEffect(()=>{const k=setTimeout(()=>{var m;(m=f.current)!=null&&m.hotInstance&&f.current.hotInstance.loadData(n)},100);return()=>clearTimeout(k)},[n]),g.useEffect(()=>{u(c==="dark"?"ht-theme-main-dark":"ht-theme-main")},[c]),M.jsx(DQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:hK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx(zQ,{data:k.data,...k},k.data))})},Jqe=Object.freeze(Object.defineProperty({__proto__:null,default:pK},Symbol.toStringTag,{value:"Module"})),kqe=()=>{const[e,n]=g.useState({width:typeof window<"u"?window.innerWidth:1024,height:typeof window<"u"?window.innerHeight:768});return g.useEffect(()=>{if(typeof window>"u")return;const o=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),e},fK=({onChange:e,value:n,options:o,disabled:r})=>{const{appearance:c}=iz(),[d,u]=g.useState("light"),h=g.useRef(null),f=g.useRef(null),{width:k}=kqe(),m=k<768,y=k>=768&&k<1024,x=_=>{e(_)},b=_=>{h.current=_,w()},w=()=>{var C;if(!h.current)return;const _={minimap:{enabled:!m},fontSize:m?12:y?13:14,lineNumbers:m?"off":"on",lineDecorationsWidth:m?5:10,scrollBeyondLastLine:!m,wordWrap:m?"on":"bounded",renderWhitespace:m?"none":"selection",padding:{top:m?8:16,bottom:m?8:16}};h.current.updateOptions(_),(C=f.current)==null||C.classList.add("overflow-hidden"),setTimeout(()=>{var N,A;(N=h.current)==null||N.layout(),(A=f.current)==null||A.classList.remove("overflow-hidden")},100)};g.useEffect(()=>{u(c==="dark"?"vs-dark":"light")},[c]),g.useEffect(()=>{w()},[k]);const S=m?"300px":y?"400px":"500px";return M.jsx("div",{className:`border rounded-lg ${m?"p-1":"p-2"}`,ref:f,children:M.jsx(IQ,{height:S,language:o.language,value:n,theme:d,options:{automaticLayout:!0,...m&&{wordWrap:"on"},minimap:{enabled:!m}},onChange:x,onMount:b,className:`transition-all duration-200 ease-in-out ${r?"pointer-events-none opacity-50 cursor-not-allowed":""}`})})},eze=Object.freeze(Object.defineProperty({__proto__:null,default:fK},Symbol.toStringTag,{value:"Module"})),mV=$A("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"}}),cz=g.forwardRef(({options:e,onValueChange:n,variant:o,processing:r,disabled:c,defaultValue:d=[],placeholder:u="",notFound:h="",search:f="",animation:k=0,maxCount:m=3,modalPopover:y=!1,asChild:x=!1,className:b,mode:w="multiple",...S},_)=>{const[C,N]=g.useState(d),[A,T]=g.useState(!1),[q,$]=g.useState(!1),z=V=>{if(V.key==="Enter")T(!0);else if(V.key==="Backspace"&&!V.currentTarget.value){const se=[...C];se.pop(),N(se),n(se)}},P=V=>{let se;w==="single"?se=C.includes(V)?[]:[V]:se=C.includes(V)?C.filter(le=>le!==V):[...C,V],N(se),n(se),w==="single"&&T(!1)},ae=()=>{N([]),n([])},re=()=>{T(V=>!V)},he=()=>{const V=C.slice(0,m);N(V),n(V)};return M.jsxs(FW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(UW,{asChild:!0,children:M.jsx(OA,{ref:_,...S,onClick:re,disabled:c,className:K("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",b),children:C.length>0?M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsxs("div",{className:"flex flex-wrap items-center",children:[C.slice(0,m).map(V=>{const se=e.find(ye=>ye.value===V),le=se==null?void 0:se.icon;return M.jsxs("div",{className:K(q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[le&&M.jsx(le,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ye=>{ye.stopPropagation(),r||P(V)}})]},V)}),w==="multiple"&&C.length>m&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${C.length-m} more`,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:V=>{V.stopPropagation(),he()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[C.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ri,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:V=>{V.stopPropagation(),ae()}}),M.jsx(tz,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(oi,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):M.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[M.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:u}),M.jsx(oi,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(GW,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(vG,{placeholder:f,onKeyDown:z}),M.jsxs(gG,{children:[M.jsx(MG,{children:h}),M.jsx(xG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(wG,{onSelect:()=>P(V.value),className:"cursor-pointer",children:[M.jsx("div",{className:K("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",se?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:M.jsx(Uo,{className:"h-4 w-4 text-primary-foreground"})}),V.icon&&M.jsx(V.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:V.label})]},V.value)})}),M.jsx(bG,{})]})]})}),k>0&&C.length>0&&w==="multiple"&&M.jsx(ti,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});cz.displayName="MultiSelect";const tze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function vqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),Object.assign(window.UIComponents,{Avatar:xae,AvatarImage:bae,AvatarFallback:wae,Badge:Sae,Breadcrumb:L9e,BreadcrumbList:N9e,BreadcrumbItem:I9e,BreadcrumbLink:A9e,BreadcrumbPage:E9e,BreadcrumbSeparator:T9e,BreadcrumbEllipsis:R9e,Button:OA,Calendar:MSe,Card:xSe,CardHeader:bSe,CardFooter:LSe,CardTitle:wSe,CardAction:SSe,CardDescription:_Se,CardContent:CSe,Checkbox:$Se,Collapsible:USe,CollapsibleTrigger:GSe,CollapsibleContent:ZSe,Command:mq,CommandDialog:TLe,CommandInput:vG,CommandList:gG,CommandEmpty:MG,CommandGroup:xG,CommandItem:wG,CommandShortcut:RLe,CommandSeparator:bG,ContextMenu:dAe,ContextMenuTrigger:uAe,ContextMenuContent:vAe,ContextMenuItem:gAe,ContextMenuCheckboxItem:MAe,ContextMenuRadioItem:xAe,ContextMenuLabel:bAe,ContextMenuSeparator:wAe,ContextMenuShortcut:_Ae,ContextMenuGroup:hAe,ContextMenuPortal:pAe,ContextMenuSub:fAe,ContextMenuSubContent:kAe,ContextMenuSubTrigger:mAe,ContextMenuRadioGroup:yAe,Dialog:uG,DialogClose:ALe,DialogContent:fG,DialogDescription:kG,DialogFooter:ELe,DialogHeader:yG,DialogOverlay:pG,DialogPortal:hG,DialogTitle:mG,DialogTrigger:ILe,DialogStack:VZ,DialogStackTrigger:SAe,DialogStackOverlay:CAe,DialogStackBody:LAe,DialogStackContent:NAe,DialogStackTitle:IAe,DialogStackDescription:AAe,DialogStackHeader:EAe,DialogStackFooter:TAe,DialogStackNext:RAe,DialogStackPrevious:jAe,DropdownMenu:dEe,DropdownMenuPortal:uEe,DropdownMenuTrigger:hEe,DropdownMenuContent:pEe,DropdownMenuGroup:fEe,DropdownMenuLabel:gEe,DropdownMenuItem:yEe,DropdownMenuCheckboxItem:mEe,DropdownMenuRadioGroup:kEe,DropdownMenuRadioItem:vEe,DropdownMenuSeparator:MEe,DropdownMenuShortcut:xEe,DropdownMenuSub:bEe,DropdownMenuSubTrigger:wEe,DropdownMenuSubContent:_Ee,Input:lW,Label:LEe,Menubar:cTe,MenubarPortal:TW,MenubarMenu:sTe,MenubarTrigger:uTe,MenubarContent:hTe,MenubarGroup:lTe,MenubarSeparator:kTe,MenubarLabel:mTe,MenubarItem:pTe,MenubarShortcut:vTe,MenubarCheckboxItem:fTe,MenubarRadioGroup:dTe,MenubarRadioItem:yTe,MenubarSub:gTe,MenubarSubTrigger:MTe,MenubarSubContent:xTe,Pagination:bTe,PaginationContent:wTe,PaginationLink:Qq,PaginationItem:_Te,PaginationPrevious:STe,PaginationNext:CTe,PaginationEllipsis:LTe,Popover:FW,PopoverTrigger:UW,PopoverContent:GW,PopoverAnchor:BTe,Select:CRe,SelectContent:ARe,SelectGroup:LRe,SelectItem:TRe,SelectLabel:ERe,SelectScrollDownButton:SX,SelectScrollUpButton:_X,SelectSeparator:RRe,SelectTrigger:IRe,SelectValue:NRe,Separator:tz,Sheet:LX,SheetTrigger:$Re,SheetClose:ORe,SheetContent:NX,SheetHeader:IX,SheetFooter:BRe,SheetTitle:AX,SheetDescription:EX,Sidebar:vje,SidebarContent:Cje,SidebarFooter:_je,SidebarGroup:Lje,SidebarGroupAction:Ije,SidebarGroupContent:Aje,SidebarGroupLabel:Nje,SidebarHeader:wje,SidebarInput:bje,SidebarInset:xje,SidebarMenu:Eje,SidebarMenuAction:Dje,SidebarMenuBadge:qje,SidebarMenuButton:jje,SidebarMenuItem:Tje,SidebarMenuSkeleton:zje,SidebarMenuSub:$je,SidebarMenuSubButton:Pje,SidebarMenuSubItem:Oje,SidebarProvider:kje,SidebarRail:Mje,SidebarSeparator:Sje,SidebarTrigger:gje,useSidebar:A2,Skeleton:ND,Slider:iDe,Toaster:$De,Switch:UDe,Table:GDe,TableHeader:ZDe,TableBody:WDe,TableFooter:XDe,TableHead:YDe,TableRow:KDe,TableCell:QDe,TableCaption:JDe,Textarea:eqe,Tooltip:HX,TooltipTrigger:BX,TooltipContent:VX,TooltipProvider:oz,VanillaJSONEditor:DD}),Object.assign(window.JSComponents,{VanillaJSONEditor:DD,HandsonTable:pK,MonacoEditor:fK,MultiSelect:cz})}const{createInertiaApp:gqe}=LF;window.React=ve;window.ReactDOM=qD;window.InertiajsReact=LF;window.LucideReact=C9e;vqe();async function Mqe(e,n){for(const o of Array.isArray(e)?e:[e]){const r=n[o];if(!(typeof r>"u"))return typeof r=="function"?r():r}throw new Error(`Page not found: ${e}`)}gqe({title:e=>`${e}`,resolve:e=>Mqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>fn(()=>import("./add-group-D5MrUNE1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./pages/add-user.tsx":()=>fn(()=>import("./add-user-iCupTmGS.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url),"./pages/add.tsx":()=>fn(()=>import("./add-DbQJd7Bm.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,22,23,24,25,20]),import.meta.url),"./pages/catalog.tsx":()=>fn(()=>import("./catalog-CpDHgq8b.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,27,22,23,24,25,20,28]),import.meta.url),"./pages/dashboard.tsx":()=>fn(()=>import("./dashboard-C_EdlZvv.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,30]),import.meta.url),"./pages/form.tsx":()=>fn(()=>import("./form-J27uSTUj.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,32,22,23,24,25,20]),import.meta.url),"./pages/home.tsx":()=>fn(()=>import("./home-CO-50-T_.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>fn(()=>import("./init-user-DaOvt0vG.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>fn(()=>import("./list-eG7X4aSC.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,36,27,37]),import.meta.url),"./pages/login.tsx":()=>fn(()=>import("./login-DR6fvKtm.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>fn(()=>import("./module-C0dPDXsj.js"),__vite__mapDeps([39,3,4,1,2,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),"./pages/notification.tsx":()=>fn(()=>import("./notification-BwG5Ug4o.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url),"./pages/register.tsx":()=>fn(()=>import("./register-hJD1ETdf.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>fn(()=>import("./welcome-BwoI5hJ3.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),setup({el:e,App:n,props:o}){xne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{En as $,gAe as A,OA as B,Go as C,VZ as D,R5 as E,xSe as F,bSe as G,wSe as H,lW as I,LSe as J,oz as K,Cs as L,HX as M,BX as N,VX as O,tw as P,UDe as Q,SAe as R,CRe as S,$De as T,IAe as U,dne as V,hne as W,xF as X,Wqe as Y,iI as Z,K as _,E5 as a,wU as a$,Tx as a0,Ip as a1,GDe as a2,ZDe as a3,KDe as a4,YDe as a5,WDe as a6,QDe as a7,Ji as a8,uG as a9,KG as aA,YG as aB,ge as aC,xn as aD,sb as aE,O8 as aF,kje as aG,dEe as aH,Ff as aI,yEe as aJ,MEe as aK,gje as aL,vje as aM,wje as aN,Eje as aO,Tje as aP,cTe as aQ,sTe as aR,uTe as aS,jje as aT,w4 as aU,hTe as aV,gTe as aW,MTe as aX,xTe as aY,pTe as aZ,Lje as a_,fG as aa,yG as ab,mG as ac,xje as ad,kqe as ae,iz as af,T7 as ag,f8 as ah,Bw as ai,Uo as aj,mN as ak,nl as al,ri as am,ELe as an,ALe as ao,Op as ap,xp as aq,Sp as ar,ILe as as,ys as at,v2 as au,ln as av,Jt as aw,bt as ax,be as ay,aE as az,LEe as b,GSe as b0,CU as b1,$je as b2,Oje as b3,Pje as b4,Cje as b5,_je as b6,L9e as b7,N9e as b8,I9e as b9,cz as bA,iDe as bB,eqe as bC,Rp as bD,Yu as bE,H1 as bF,Xw as bG,bTe as bH,wTe as bI,_Te as bJ,Qq as bK,STe as bL,CTe as bM,Qqe as bN,Jqe as bO,eze as bP,tze as bQ,E9e as ba,A9e as bb,T9e as bc,FW as bd,UW as be,Il as bf,jm as bg,GW as bh,MSe as bi,Nje as bj,Aje as bk,USe as bl,ZSe as bm,A2 as bn,VRe as bo,WC as bp,Zx as bq,KC as br,xae as bs,bae as bt,wae as bu,gEe as bv,i7 as bw,Yqe as bx,Kqe as by,Xqe as bz,IRe as c,NRe as d,ARe as e,TRe as f,$Se as g,Nt as h,CAe as i,M as j,LAe as k,NAe as l,ND as m,b9 as n,ff as o,UZ as p,hEe as q,CF as r,Ki as s,Zqe as t,gF as u,pEe as v,fEe as w,dAe as x,uAe as y,vAe as z};
@@ -1 +1 @@
1
- import{j as r,b6 as i,b7 as n,b8 as c,b9 as m,ba as d,U as l,bb as h}from"./app.js";import{r as o}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function B({breadcrumbs:e}){return r.jsx(r.Fragment,{children:e.length>0&&r.jsx(i,{children:r.jsx(n,{children:e.map((s,t)=>{const a=t===e.length-1;return r.jsxs(o.Fragment,{children:[r.jsx(c,{children:a?r.jsx(m,{children:s.title}):r.jsx(d,{asChild:!0,children:r.jsx(l,{href:s.href,children:s.title})})}),!a&&r.jsx(h,{})]},t)})})})})}export{B as Breadcrumbs};
1
+ import{j as r,b7 as i,b8 as n,b9 as c,ba as m,bb as d,W as l,bc as h}from"./app.js";import{r as o}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function B({breadcrumbs:e}){return r.jsx(r.Fragment,{children:e.length>0&&r.jsx(i,{children:r.jsx(n,{children:e.map((s,t)=>{const a=t===e.length-1;return r.jsxs(o.Fragment,{children:[r.jsx(c,{children:a?r.jsx(m,{children:s.title}):r.jsx(d,{asChild:!0,children:r.jsx(l,{href:s.href,children:s.title})})}),!a&&r.jsx(h,{})]},t)})})})})}export{B as Breadcrumbs};