adminizer 4.4.0-build.145 → 4.4.0-build.147

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 (92) hide show
  1. package/assets/{add-DIWsO4GC.js → add-DIKCYx3V.js} +1 -1
  2. package/assets/{add-group-xkre_NOL.js → add-group--iy-V9oU.js} +1 -1
  3. package/assets/{add-user-BRzEOSvw.js → add-user-BhIeyfat.js} +1 -1
  4. package/assets/{app-layout-BeMwtfu1.js → app-layout-gAiczU39.js} +1 -1
  5. package/assets/app-sidebar-header-Bcpas2Np.js +1 -0
  6. package/assets/app.js +2 -2
  7. package/assets/{catalog-DcSeOMrj.js → catalog-CKLDJ5_F.js} +1 -1
  8. package/assets/{dashboard-D5ZYeGAy.js → dashboard-BlhABz32.js} +1 -1
  9. package/assets/{form-DZHBbb2N.js → form-B9o4gWaF.js} +1 -1
  10. package/assets/{home-Cd1B1kwj.js → home-CDLwQiex.js} +2 -2
  11. package/assets/{list-oURiPAdd.js → list-BmfYifvI.js} +1 -1
  12. package/assets/manifest.json +37 -37
  13. package/assets/{module-DDkc8rbj.js → module-ClA9qnye.js} +1 -1
  14. package/assets/notification-B-57JQl_.js +27 -0
  15. package/assets/{welcome-DE33jcU7.js → welcome-CkCufpDB.js} +1 -1
  16. package/controllers/add.js +7 -7
  17. package/controllers/addGroup.js +3 -3
  18. package/controllers/addUser.js +3 -3
  19. package/controllers/catalog/Catalog.js +2 -2
  20. package/controllers/ckeditorUpload.js +1 -1
  21. package/controllers/edit.js +7 -7
  22. package/controllers/editGroup.js +3 -3
  23. package/controllers/editUser.js +3 -3
  24. package/controllers/form.js +4 -4
  25. package/controllers/initUser.js +2 -2
  26. package/controllers/list.js +5 -5
  27. package/controllers/login.js +4 -4
  28. package/controllers/media-manager/ThumbController.js +1 -1
  29. package/controllers/media-manager/mediaManagerAdapter.js +1 -1
  30. package/controllers/media-manager/mediaManagerApi.js +1 -1
  31. package/controllers/navigation/edit.js +2 -2
  32. package/controllers/notifications/NotificationController.js +5 -2
  33. package/controllers/register.js +1 -1
  34. package/controllers/remove.js +4 -4
  35. package/controllers/view.js +8 -8
  36. package/helpers/accessRightsHelper.js +1 -1
  37. package/helpers/controllerHelper.js +1 -1
  38. package/helpers/fieldsHelper.js +3 -3
  39. package/helpers/formHelper.js +1 -1
  40. package/helpers/inertiaAddHelper.js +2 -2
  41. package/helpers/inertiaFromHelper.js +1 -1
  42. package/helpers/inertiaListHelper.js +1 -1
  43. package/helpers/menuHelper.js +1 -1
  44. package/helpers/translationHelper.js +2 -2
  45. package/index.d.ts +1 -1
  46. package/index.js +32 -32
  47. package/interfaces/adminpanelConfig.d.ts +1 -0
  48. package/lib/Adminizer.js +28 -28
  49. package/lib/DataAccessor.js +3 -3
  50. package/lib/I18n.js +1 -1
  51. package/lib/PolicyManager.js +1 -1
  52. package/lib/catalog/Navigation.js +2 -2
  53. package/lib/controls/codeEditor/MonacoEditor.js +1 -1
  54. package/lib/controls/geojsoneditor/GeoEditor.js +1 -1
  55. package/lib/controls/jsoneditor/JsonEditor.js +1 -1
  56. package/lib/controls/markdown/ToastUiEditor.js +1 -1
  57. package/lib/controls/table/Handsontable.js +1 -1
  58. package/lib/controls/wysiwyg/CKeditor.js +1 -1
  59. package/lib/media-manager/DefaultMediaManager.js +3 -3
  60. package/lib/media-manager/Items.js +2 -2
  61. package/lib/media-manager/MediaManagerHandler.js +1 -1
  62. package/lib/model/AbstractModel.js +1 -1
  63. package/lib/model/ModelHandler.js +1 -1
  64. package/lib/model/adapter/sequelize.js +1 -1
  65. package/lib/model/adapter/waterline.js +1 -1
  66. package/lib/notifications/AbstractNotificationService.js +1 -1
  67. package/lib/notifications/GeneralNotificationService.js +2 -2
  68. package/lib/notifications/NotificationHandler.js +1 -1
  69. package/lib/notifications/SystemNotificationService.js +2 -2
  70. package/lib/requestProcessor.js +2 -2
  71. package/lib/widgets/abstractAction.js +1 -1
  72. package/lib/widgets/abstractInfo.js +1 -1
  73. package/lib/widgets/abstractLink.js +1 -1
  74. package/lib/widgets/abstractSwitch.js +1 -1
  75. package/migrations/index.js +1 -1
  76. package/migrations/umzugExports.js +1 -1
  77. package/package.json +2 -2
  78. package/system/Router.js +21 -21
  79. package/system/bindAuthorization.js +4 -4
  80. package/system/bindControls.js +6 -6
  81. package/system/bindDashboardWidgets.js +1 -1
  82. package/system/bindForms.js +1 -1
  83. package/system/bindInertia.js +3 -3
  84. package/system/bindMediaManager.js +1 -1
  85. package/system/bindModels.js +1 -1
  86. package/system/bindNavigation.js +1 -1
  87. package/system/bindNotifications.js +3 -3
  88. package/system/bindReqFunctions.js +3 -3
  89. package/system/bindTranslations.js +2 -2
  90. package/system/defaults.js +6 -6
  91. package/assets/app-sidebar-header-C8TTx8yd.js +0 -1
  92. package/assets/notification-DymXi8um.js +0 -27
@@ -1 +1 @@
1
- import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-BeMwtfu1.js";import p from"./add-form-uUiOWEy_.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-C8TTx8yd.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-BNQVfOir.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};
1
+ import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-gAiczU39.js";import p from"./add-form-uUiOWEy_.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.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-BNQVfOir.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};
@@ -1 +1 @@
1
- import{j as r}from"./app.js";import{A as o}from"./app-layout-BeMwtfu1.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-C8TTx8yd.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};
1
+ import{j as r}from"./app.js";import{A as o}from"./app-layout-gAiczU39.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.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};
@@ -1 +1 @@
1
- import{j as r}from"./app.js";import{A as o}from"./app-layout-BeMwtfu1.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-C8TTx8yd.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};
1
+ import{j as r}from"./app.js";import{A as o}from"./app-layout-gAiczU39.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-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.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};
@@ -1 +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-CNGEOOHu.js";import{A as x,N as j}from"./app-sidebar-header-C8TTx8yd.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
+ 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-CNGEOOHu.js";import{A as x,N as j}from"./app-sidebar-header-Bcpas2Np.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};
@@ -0,0 +1 @@
1
+ import{u as T,j as e,h as f,aH as _,q as H,B as E,aI as J,v as F,w as q,aJ as G,M as K,N as U,E as V,O as W,r as Y,aK as Q,W as X,L as k,aL as Z}from"./app.js";import{Breadcrumbs as ee}from"./breadcrumbs-DSMzNYiS.js";import{NavUser as te}from"./nav-user-DuCZNsZX.js";import{ThemeSwitcher as ae}from"./theme-switcher-cgyA7_cO.js";import{r as n}from"./monaco-ICtx6xoc.js";import se from"./material-icon-DwkE6wKL.js";const I=n.createContext(void 0),ue=({children:i})=>{const[u,p]=n.useState([]),[b,m]=n.useState([]),[g,l]=n.useState([]),[S,y]=n.useState(!1),[r,c]=n.useState(null),[w,M]=n.useState(""),N=T(),[d,j]=n.useState({}),v=[...b,...g],x=async()=>{try{const t=await f.get(`${window.routePrefix}/notifications/api`,{params:{unreadOnly:!0,limit:4}});p(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)}},C=async()=>{await x()},$=async()=>{try{const t=await f.get(`${window.routePrefix}/notifications/api/get-classes`);t.data&&(c(t.data.activeServices),M(t.data.initTab))}catch(t){console.error("Error fetching tabs:",t)}},D=async(t,s)=>{try{if(!t){await P(s);return}const a=await f.post(`${window.routePrefix}/notifications/api/search`,{s:t,notificationClass:s});l(a.data)}catch(a){console.error("Error searching notifications:",a)}},P=async t=>{y(!0);try{const s=`${window.routePrefix}/notifications/api/${t}`,a=await f.get(s,{params:{limit:20,skip:0,unreadOnly:!1}});return m([]),l(a.data),a.data}catch(s){return console.error("Error fetching all notifications:",s),[]}finally{y(!1)}},L=async(t,s)=>{try{const a=`${window.routePrefix}/notifications/api/${t}`,o=await f.get(a,{params:{limit:20,skip:s,unreadOnly:!1}});return l(z=>[...z,...o.data]),o.data}catch(a){return console.error("Error paginating notifications:",a),[]}};n.useEffect(()=>{if(!N.props.notifications)return;h(),x();const t=new EventSource(`${window.routePrefix}/notifications/api/stream`);return t.addEventListener("connected",s=>{const a=JSON.parse(s.data);console.log("Connected event:",a),$()}),t.addEventListener("notification",s=>{const a=JSON.parse(s.data);m(o=>[a,...o]),p(o=>[a,...o].slice(0,4))}),t.onerror=()=>{console.error("SSE connection error")},()=>t.close()},[]);const O=async(t,s)=>{try{await f.put(`${window.routePrefix}/notifications/api/${t}/${s}/read`,{}),m(a=>a.map(o=>o.id===s?{...o,read:!0}:o)),l(a=>a.map(o=>o.id===s?{...o,read:!0}:o)),p([])}catch(a){console.error("Error marking as read:",a)}},R=async()=>{try{await f.put(`${window.routePrefix}/notifications/api/read-all`),m(t=>t.map(s=>({...s,read:!0}))),l(t=>t.map(s=>({...s,read:!0}))),await x()}catch(t){console.error("Error marking all as read:",t)}},B=u.filter(t=>!t.read).length;return e.jsx(I.Provider,{value:{bellNotifications:u,allNotifications:v,unreadCount:B,getTabs:$,tabs:r,initTab:w,search:D,markAsRead:O,markAllAsRead:R,getLocale:h,messages:d,fetchAllNotifications:P,paginateNotifications:L,loading:S,refreshBellNotifications:C},children:i})},A=()=>{const i=n.useContext(I);if(i===void 0)throw new Error("useNotifications must be used within a NotificationProvider");return i};function re(){const{bellNotifications:i,markAsRead:u,unreadCount:p,refreshBellNotifications:b,messages:m}=A(),[g,l]=n.useState(!1),S=async(r,c)=>{l(!0);try{await u(r,c),await b()}catch(w){console.error("Error marking as read:",w)}finally{l(!1)}},y=r=>{const c=new Date,w=new Date(r),M=c.getTime()-w.getTime(),N=Math.floor(M/1e3),d=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(N<60)return d.format(-N,"second");const j=Math.floor(N/60);if(j<60)return d.format(-j,"minute");const v=Math.floor(j/60);if(v<24)return d.format(-v,"hour");const x=Math.floor(v/24);if(x<30)return d.format(-x,"day");const h=Math.floor(x/30);if(h<12)return d.format(-h,"month");const C=Math.floor(h/12);return d.format(-C,"year")};return e.jsxs(_,{children:[e.jsx(H,{asChild:!0,className:"cursor-pointer data-[state=open]:bg-sidebar-accent",children:e.jsxs(E,{variant:"ghost",className:"relative",children:[e.jsx(J,{}),p>0&&e.jsx("div",{className:"absolute top-1.5 right-1.5 size-1.5 rounded-full bg-destructive"})]})}),e.jsxs(F,{className:"z-[1002] p-2",align:"end",onCloseAutoFocus:r=>r.preventDefault(),children:[e.jsx(q,{className:`${g?"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(G,{asChild:!0,className:"cursor-pointer",onSelect:c=>{c.preventDefault(),Y.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(se,{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:y(r.createdAt)})}),e.jsxs(K,{children:[e.jsx(U,{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(V,{className:"text-primary"})})}),e.jsx(W,{side:"left",className:"z-[1003]",children:e.jsx("p",{children:m["Make read"]})})]})]})]})}),e.jsx(Q,{})]},r.id))}),e.jsx(E,{variant:"secondary",asChild:!0,children:e.jsxs(X,{href:`${window.routePrefix}/notifications`,className:`w-full ${g?"opacity-50 pointer-events-none":""}`,children:[m["View All"],g&&e.jsx(k,{className:"h-4 w-4 animate-spin"})]})})]})]})}function oe({breadcrumbs:i=[]}){const{tabs:u}=A(),p=T();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(Z,{className:"-ml-1"}),e.jsx(ee,{breadcrumbs:i})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx(ae,{}),p.props.notifications&&(u===null?e.jsx("div",{className:"w-[40px] flex-none flex justify-center",children:e.jsx(k,{className:"size-4 animate-spin"})}):u.length?e.jsx(re,{}):null),e.jsx(te,{})]})]})})}const pe=Object.freeze(Object.defineProperty({__proto__:null,AppSidebarHeader:oe},Symbol.toStringTag,{value:"Module"}));export{oe as A,ue as N,pe 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-xkre_NOL.js","./app-layout-BeMwtfu1.js","./app-shell-C8Cnr5Hy.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-CNGEOOHu.js","./nav-main-BqKm87JZ.js","./material-icon-DwkE6wKL.js","./app-sidebar-header-C8TTx8yd.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-BRzEOSvw.js","./add-user-form-izlXhv2-.js","./input-error-CmXZF6xy.js","./add-DIWsO4GC.js","./add-form-uUiOWEy_.js","./field-renderer-BNQVfOir.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-DcSeOMrj.js","./del-modal-DyIWFflP.js","./catalog-D4n6dpGl.css","./dashboard-D5ZYeGAy.js","./dashboard-BOltB2Hq.css","./form-DZHBbb2N.js","./form-CAIoGuhZ.js","./home-Cd1B1kwj.js","./init-user-DaOvt0vG.js","./list-oURiPAdd.js","./list-table-BPpHDVPf.js","./pagination-render-io0M2m2O.js","./login-DR6fvKtm.js","./module-DDkc8rbj.js","./notification-DymXi8um.js","./tabs-BhkFoerH.js","./register-hJD1ETdf.js","./welcome-DE33jcU7.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group--iy-V9oU.js","./app-layout-gAiczU39.js","./app-shell-C8Cnr5Hy.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-CNGEOOHu.js","./nav-main-BqKm87JZ.js","./material-icon-DwkE6wKL.js","./app-sidebar-header-Bcpas2Np.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-BhIeyfat.js","./add-user-form-izlXhv2-.js","./input-error-CmXZF6xy.js","./add-DIKCYx3V.js","./add-form-uUiOWEy_.js","./field-renderer-BNQVfOir.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-CKLDJ5_F.js","./del-modal-DyIWFflP.js","./catalog-D4n6dpGl.css","./dashboard-BlhABz32.js","./dashboard-BOltB2Hq.css","./form-B9o4gWaF.js","./form-CAIoGuhZ.js","./home-CDLwQiex.js","./init-user-DaOvt0vG.js","./list-BmfYifvI.js","./list-table-BPpHDVPf.js","./pagination-render-io0M2m2O.js","./login-DR6fvKtm.js","./module-ClA9qnye.js","./notification-B-57JQl_.js","./tabs-BhkFoerH.js","./register-hJD1ETdf.js","./welcome-CkCufpDB.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))})},eze=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":""}`})})},tze=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-[1003]",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 nze=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-xkre_NOL.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-BRzEOSvw.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-DIWsO4GC.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-DcSeOMrj.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-D5ZYeGAy.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-DZHBbb2N.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-Cd1B1kwj.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-oURiPAdd.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-DDkc8rbj.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-DymXi8um.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-DE33jcU7.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,Xqe 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,Gqe as bD,Rp as bE,Yu as bF,H1 as bG,Xw as bH,bTe as bI,wTe as bJ,_Te as bK,Qq as bL,STe as bM,CTe as bN,Jqe as bO,eze as bP,tze as bQ,nze as bR,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,Qqe as bx,Yqe as by,Kqe 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,Wqe as t,gF as u,pEe as v,fEe as w,dAe as x,uAe as y,vAe 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))})},eze=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":""}`})})},tze=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-[1003]",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 nze=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--iy-V9oU.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-BhIeyfat.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-DIKCYx3V.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-CKLDJ5_F.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-BlhABz32.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-B9o4gWaF.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-CDLwQiex.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-BmfYifvI.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-ClA9qnye.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-B-57JQl_.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-CkCufpDB.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,Xqe 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,Gqe as bD,Rp as bE,Yu as bF,H1 as bG,Xw as bH,bTe as bI,wTe as bJ,_Te as bK,Qq as bL,STe as bM,CTe as bN,Jqe as bO,eze as bP,tze as bQ,nze as bR,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,Qqe as bx,Yqe as by,Kqe 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,Wqe as t,gF as u,pEe as v,fEe as w,dAe as x,uAe as y,vAe as z};