adminizer 4.3.0-build.85 → 4.3.0-build.87

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.
@@ -1 +1 @@
1
- import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-CbyH1MDK.js";import p from"./add-form-BjXOLDij.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-8KWnVpkN.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.js";import"./field-renderer-D0crIeQS.js";import"./dynamic-controls-BOYmRX_z.js";import"./input-error--IOnWghB.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-DinOHZzD.js";import p from"./add-form-BjXOLDij.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-CMmguJzw.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.js";import"./field-renderer-D0crIeQS.js";import"./dynamic-controls-BOYmRX_z.js";import"./input-error--IOnWghB.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-CbyH1MDK.js";import t from"./add-group-form-BNmpvW8K.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-8KWnVpkN.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.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-DinOHZzD.js";import t from"./add-group-form-BNmpvW8K.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-CMmguJzw.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.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-CbyH1MDK.js";import t from"./add-user-form-DrclnTOd.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-8KWnVpkN.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.js";import"./input-error--IOnWghB.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-DinOHZzD.js";import t from"./add-user-form-DrclnTOd.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-CHEYhVco.js";import"./app-sidebar-DeF8WNmW.js";import"./nav-main-9Eb_A0rf.js";import"./material-icon-BedgD2NE.js";import"./app-sidebar-header-CMmguJzw.js";import"./breadcrumbs-C439DWrC.js";import"./nav-user-CRAfyE-x.js";import"./user-info-CcYdmjMZ.js";import"./user-menu-content-DbUk8ZeY.js";import"./theme-switcher-CKiJbMkh.js";import"./icon-DM49pZW3.js";import"./input-error--IOnWghB.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,R as p,ac as m}from"./app.js";import d from"./app-shell-CHEYhVco.js";import{AppSidebar as n}from"./app-sidebar-DeF8WNmW.js";import{A as x,N as c}from"./app-sidebar-header-8KWnVpkN.js";import{r as o}from"./monaco-ICtx6xoc.js";const j=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(c,{children:r.jsx(j,{breadcrumbs:t,className:s,...a,children:e})}));export{S as A};
1
+ import{u as i,j as r,R as p,ac as m}from"./app.js";import d from"./app-shell-CHEYhVco.js";import{AppSidebar as n}from"./app-sidebar-DeF8WNmW.js";import{A as x,N as c}from"./app-sidebar-header-CMmguJzw.js";import{r as o}from"./monaco-ICtx6xoc.js";const j=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(c,{children:r.jsx(j,{breadcrumbs:t,className:s,...a,children:e})}));export{S as A};
@@ -0,0 +1 @@
1
+ import{u as P,j as e,g as f,aG as O,p as z,B as $,aH as _,s as H,v as J,aI as F,J as G,K,Z as U,M as V,r as Y,aJ as Z,U as q,L as T,aK as Q}from"./app.js";import{Breadcrumbs as W}from"./breadcrumbs-C439DWrC.js";import{NavUser as X}from"./nav-user-CRAfyE-x.js";import{ThemeSwitcher as ee}from"./theme-switcher-CKiJbMkh.js";import{r as n}from"./monaco-ICtx6xoc.js";import te from"./material-icon-BedgD2NE.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.put(`${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 E(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)}},E=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(B=>[...B,...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)}},R=x.filter(t=>!t.read).length;return e.jsx(k.Provider,{value:{bellNotifications:x,allNotifications:d,unreadCount:R,getTabs:g,tabs:r,search:C,markAsRead:I,markAllAsRead:L,getLocale:h,messages:M,fetchAllNotifications:E,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(O,{children:[e.jsx(z,{asChild:!0,className:"cursor-pointer data-[state=open]:bg-sidebar-accent",children:e.jsxs($,{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(),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(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(G,{children:[e.jsx(K,{asChild:!0,children:e.jsx($,{variant:"ghost",size:"icon",className:"size-4",onClick:c=>{c.stopPropagation(),S(r.notificationClass,r.id)},children:e.jsx(U,{className:"text-primary"})})}),e.jsx(V,{side:"left",className:"z-[1003]",children:e.jsx("p",{children:p["Make read"]})})]})]})]})}),e.jsx(Z,{})]},r.id))}),e.jsx($,{variant:"secondary",asChild:!0,children:e.jsxs(q,{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(W,{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(X,{})]})]})})}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-urhA47Qf.js","./app-layout-CbyH1MDK.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-8KWnVpkN.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-CzWUu7wG.js","./add-user-form-DrclnTOd.js","./input-error--IOnWghB.js","./add-CZdDpNV2.js","./add-form-BjXOLDij.js","./field-renderer-D0crIeQS.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-CCSagWKW.js","./del-modal-_b3CSNHb.js","./catalog-C71LuRag.css","./dashboard-DUNXib6b.js","./dashboard-BOltB2Hq.css","./form-C8pRhEOA.js","./form-B6LFaTgS.js","./home-D--JrFFj.js","./init-user-DNrB8Xt5.js","./list-CQivvagG.js","./list-table-h_zXp43g.js","./pagination-render-D3UyVAlr.js","./login-6Xb8bcPq.js","./module-DqrIORMW.js","./notification-db0RD9I6.js","./tabs-BK_5wdPA.js","./register-BIyjCy8M.js","./welcome-CZlWN4gM.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group-Gl84bOeV.js","./app-layout-DinOHZzD.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-CMmguJzw.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-DqGl8Dxi.js","./add-user-form-DrclnTOd.js","./input-error--IOnWghB.js","./add-C2tF8-gD.js","./add-form-BjXOLDij.js","./field-renderer-D0crIeQS.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-CzQI0e2V.js","./del-modal-_b3CSNHb.js","./catalog-C71LuRag.css","./dashboard-DNjESo7D.js","./dashboard-BOltB2Hq.css","./form-wHGNS6BZ.js","./form-B6LFaTgS.js","./home-DuF0qLi8.js","./init-user-DNrB8Xt5.js","./list-3mxaSvck.js","./list-table-h_zXp43g.js","./pagination-render-D3UyVAlr.js","./login-6Xb8bcPq.js","./module-Db7-sqNw.js","./notification-DYA1ZN8s.js","./tabs-BK_5wdPA.js","./register-BIyjCy8M.js","./welcome-CNbz1L8F.js"])))=>i.map(i=>d[i]);
2
2
  import{c as Vu,g as hV,s as Zu,i as pV,h as vQ,e as gQ,f as MQ,t as xQ,_ as hn}from"./jsoneditor-D95dIAP2.js";import{b as bQ,c as $P,r as fV,a as wQ}from"./vendor-wzZzN_Jv.js";import{r as g,e as me,R as yV,F as _Q}from"./monaco-ICtx6xoc.js";import{r as CA,R as TD,F as ia,a as ca,b as sa,c as la,d as da,e as ua,f as ha,g as pa,h as fa,i as ya,j as ma,k as ka,l as va,m as ga,n as Ma,o as xa,p as ba,q as wa,s as _a,t as Sa,u as Ca,v as La,w as Na,x as Ia,y as Aa,z as Ea,A as Ta,B as Ra,C as ja,D as Da,E as qa,G as za,H as Oa,I as $a,J as Pa,K as Ha,L as Ba,M as Va,N as Fa,O as Ua,P as Ga,Q as Za,S as Wa,T as Xa,U as Ka,V as Ya,W as Qa,X as Ja,Y as eo,Z as to,_ as no,$ as ao,a0 as oo,a1 as ro,a2 as io,a3 as co,a4 as so,a5 as lo,a6 as uo,a7 as ho,a8 as po,a9 as fo,aa as yo,ab as mo,ac as ko,ad as vo,ae as go,af as Mo,ag as xo,ah as bo,ai as wo,aj as _o,ak as Nd,al as Id,am as Ad,an as SQ,ao as CQ,ap as LQ,aq as NQ,ar as IQ,as as AQ,at as EQ,au as TQ}from"./handsontable-PVakPtJV.js";var kR={exports:{}},Du={};/**
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 YDe={languageCode:"zh-CN",[_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]:"合并",[Ga]:"取消合并",[Ua]:"复制",[Ad]:"带标题的复制",[Id]:"带标题组的复制",[Nd]:"仅复制标题",[Fa]:"剪切",[Va]:"插入子行",[Ba]:"与母行分离",[Ha]:["隐藏该列","隐藏多列"],[Pa]:["显示该列","显示多列"],[$a]:["隐藏该行","隐藏多行"],[Oa]:["显示该行","显示多行"],[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]:"搜索",[ca]:"值",[ia]:"第二值"};NQ();const dV={de:HDe,en:EQ,es:BDe,fr:VDe,it:FDe,ja:UDe,ko:GDe,nl:ZDe,pl:WDe,pt:XDe,ru:KDe,zh:YDe},QDe=document.documentElement.lang,cK=dV[QDe]??dV.en;IQ(cK);const sK=({config:e,data:n=[],onChange:o,disabled:r})=>{const{appearance:c}=nz(),[d,u]=g.useState("ht-theme-main"),p=g.useCallback((k,v)=>{var x,b;if(v==="loadData")return;const f=(b=(x=y.current)==null?void 0:x.hotInstance)==null?void 0:b.getSourceData();o(f)},[]),y=g.useRef(null);return g.useEffect(()=>{y.current&&y.current.hotInstance.loadData(n)},[n]),g.useEffect(()=>{u(c==="dark"?"ht-theme-main-dark":"ht-theme-main")},[c]),M.jsx(AQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:cK.languageCode,ref:y,...e,afterChange:p,children:e.columns.map(k=>M.jsx(TQ,{data:k.data,...k},k.data))})},Dqe=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),JDe=()=>{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},lK=({onChange:e,value:n,options:o,disabled:r})=>{const{appearance:c}=nz(),[d,u]=g.useState("light"),p=g.useRef(null),y=g.useRef(null),{width:k}=JDe(),v=k<768,f=k>=768&&k<1024,x=_=>{e(_)},b=_=>{p.current=_,w()},w=()=>{var L;if(!p.current)return;const _={minimap:{enabled:!v},fontSize:v?12:f?13:14,lineNumbers:v?"off":"on",lineDecorationsWidth:v?5:10,scrollBeyondLastLine:!v,wordWrap:v?"on":"bounded",renderWhitespace:v?"none":"selection",padding:{top:v?8:16,bottom:v?8:16}};p.current.updateOptions(_),(L=y.current)==null||L.classList.add("overflow-hidden"),setTimeout(()=>{var N,A;(N=p.current)==null||N.layout(),(A=y.current)==null||A.classList.remove("overflow-hidden")},100)};g.useEffect(()=>{u(c==="dark"?"vs-dark":"light")},[c]),g.useEffect(()=>{w()},[k]);const S=v?"300px":f?"400px":"500px";return M.jsx("div",{className:`border rounded-lg ${v?"p-1":"p-2"}`,ref:y,children:M.jsx(_Q,{height:S,language:o.language,value:n,theme:d,options:{automaticLayout:!0,...v&&{wordWrap:"on"},minimap:{enabled:!v}},onChange:x,onMount:b,className:`transition-all duration-200 ease-in-out ${r?"pointer-events-none opacity-50 cursor-not-allowed":""}`})})},qqe=Object.freeze(Object.defineProperty({__proto__:null,default:lK},Symbol.toStringTag,{value:"Module"})),uV=DA("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"}}),az=g.forwardRef(({options:e,onValueChange:n,variant:o,processing:r,disabled:c,defaultValue:d=[],placeholder:u="",notFound:p="",search:y="",animation:k=0,maxCount:v=3,modalPopover:f=!1,asChild:x=!1,className:b,mode:w="multiple",...S},_)=>{const[L,N]=g.useState(d),[A,T]=g.useState(!1),[q,$]=g.useState(!1),z=F=>{if(F.key==="Enter")T(!0);else if(F.key==="Backspace"&&!F.currentTarget.value){const se=[...L];se.pop(),N(se),n(se)}},P=F=>{let se;w==="single"?se=L.includes(F)?[]:[F]:se=L.includes(F)?L.filter(ue=>ue!==F):[...L,F],N(se),n(se),w==="single"&&T(!1)},ne=()=>{N([]),n([])},re=()=>{T(F=>!F)},de=()=>{const F=L.slice(0,v);N(F),n(F)};return M.jsxs($W,{open:A,onOpenChange:T,modal:f,children:[M.jsx(PW,{asChild:!0,children:M.jsx(qA,{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:L.length>0?M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsxs("div",{className:"flex flex-wrap items-center",children:[L.slice(0,v).map(F=>{const se=e.find(fe=>fe.value===F),ue=se==null?void 0:se.icon;return M.jsxs("div",{className:K(q?"animate-bounce":"",uV({variant:o})),style:{animationDuration:`${k}s`},children:[ue&&M.jsx(ue,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(gr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:fe=>{fe.stopPropagation(),r||P(F)}})]},F)}),w==="multiple"&&L.length>v&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",uV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${L.length-v} more`,M.jsx(gr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:F=>{F.stopPropagation(),de()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[L.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ai,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:F=>{F.stopPropagation(),ne()}}),M.jsx(Yq,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(ni,{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(ni,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(HW,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(hq,{children:[M.jsx(pG,{placeholder:y,onKeyDown:z}),M.jsxs(fG,{children:[M.jsx(yG,{children:p}),M.jsx(mG,{children:e.map(F=>{const se=L.includes(F.value);return M.jsxs(vG,{onSelect:()=>P(F.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(Fo,{className:"h-4 w-4 text-primary-foreground"})}),F.icon&&M.jsx(F.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:F.label})]},F.value)})}),M.jsx(kG,{})]})]})}),k>0&&L.length>0&&w==="multiple"&&M.jsx(ei,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});az.displayName="MultiSelect";const zqe=Object.freeze(Object.defineProperty({__proto__:null,default:az},Symbol.toStringTag,{value:"Module"}));function eqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),Object.assign(window.UIComponents,{Avatar:aae,AvatarImage:oae,AvatarFallback:rae,Badge:cae,Breadcrumb:l9e,BreadcrumbList:d9e,BreadcrumbItem:u9e,BreadcrumbLink:h9e,BreadcrumbPage:p9e,BreadcrumbSeparator:f9e,BreadcrumbEllipsis:y9e,Button:qA,Calendar:nSe,Card:aSe,CardHeader:oSe,CardFooter:lSe,CardTitle:rSe,CardAction:cSe,CardDescription:iSe,CardContent:sSe,Checkbox:MSe,Collapsible:LSe,CollapsibleTrigger:NSe,CollapsibleContent:ISe,Command:hq,CommandDialog:fLe,CommandInput:pG,CommandList:fG,CommandEmpty:yG,CommandGroup:mG,CommandItem:vG,CommandShortcut:yLe,CommandSeparator:kG,ContextMenu:GIe,ContextMenuTrigger:ZIe,ContextMenuContent:eAe,ContextMenuItem:tAe,ContextMenuCheckboxItem:nAe,ContextMenuRadioItem:aAe,ContextMenuLabel:oAe,ContextMenuSeparator:rAe,ContextMenuShortcut:iAe,ContextMenuGroup:WIe,ContextMenuPortal:XIe,ContextMenuSub:KIe,ContextMenuSubContent:JIe,ContextMenuSubTrigger:QIe,ContextMenuRadioGroup:YIe,Dialog:iG,DialogClose:hLe,DialogContent:lG,DialogDescription:hG,DialogFooter:pLe,DialogHeader:dG,DialogOverlay:sG,DialogPortal:cG,DialogTitle:uG,DialogTrigger:uLe,DialogStack:OZ,DialogStackTrigger:cAe,DialogStackOverlay:sAe,DialogStackBody:lAe,DialogStackContent:dAe,DialogStackTitle:uAe,DialogStackDescription:hAe,DialogStackHeader:pAe,DialogStackFooter:fAe,DialogStackNext:yAe,DialogStackPrevious:mAe,DropdownMenu:GAe,DropdownMenuPortal:ZAe,DropdownMenuTrigger:WAe,DropdownMenuContent:XAe,DropdownMenuGroup:KAe,DropdownMenuLabel:tEe,DropdownMenuItem:YAe,DropdownMenuCheckboxItem:QAe,DropdownMenuRadioGroup:JAe,DropdownMenuRadioItem:eEe,DropdownMenuSeparator:nEe,DropdownMenuShortcut:aEe,DropdownMenuSub:oEe,DropdownMenuSubTrigger:rEe,DropdownMenuSubContent:iEe,Input:oW,Label:lEe,Menubar:VEe,MenubarPortal:LW,MenubarMenu:FEe,MenubarTrigger:ZEe,MenubarContent:WEe,MenubarGroup:UEe,MenubarSeparator:JEe,MenubarLabel:QEe,MenubarItem:XEe,MenubarShortcut:eTe,MenubarCheckboxItem:KEe,MenubarRadioGroup:GEe,MenubarRadioItem:YEe,MenubarSub:tTe,MenubarSubTrigger:nTe,MenubarSubContent:aTe,Pagination:oTe,PaginationContent:rTe,PaginationLink:Wq,PaginationItem:iTe,PaginationPrevious:cTe,PaginationNext:sTe,PaginationEllipsis:lTe,Popover:$W,PopoverTrigger:PW,PopoverContent:HW,PopoverAnchor:_Te,Select:sRe,SelectContent:hRe,SelectGroup:lRe,SelectItem:fRe,SelectLabel:pRe,SelectScrollDownButton:MX,SelectScrollUpButton:gX,SelectSeparator:yRe,SelectTrigger:uRe,SelectValue:dRe,Separator:Yq,Sheet:bX,SheetTrigger:MRe,SheetClose:xRe,SheetContent:wX,SheetHeader:_X,SheetFooter:_Re,SheetTitle:SX,SheetDescription:CX,Sidebar:eje,SidebarContent:sje,SidebarFooter:ije,SidebarGroup:lje,SidebarGroupAction:uje,SidebarGroupContent:hje,SidebarGroupLabel:dje,SidebarHeader:rje,SidebarInput:oje,SidebarInset:aje,SidebarMenu:pje,SidebarMenuAction:kje,SidebarMenuBadge:vje,SidebarMenuButton:mje,SidebarMenuItem:fje,SidebarMenuSkeleton:gje,SidebarMenuSub:Mje,SidebarMenuSubButton:bje,SidebarMenuSubItem:xje,SidebarProvider:JRe,SidebarRail:nje,SidebarSeparator:cje,SidebarTrigger:tje,useSidebar:N2,Skeleton:_D,Slider:Bje,Toaster:MDe,Switch:LDe,Table:NDe,TableHeader:IDe,TableBody:ADe,TableFooter:EDe,TableHead:RDe,TableRow:TDe,TableCell:jDe,TableCaption:DDe,Textarea:qDe,Tooltip:qX,TooltipTrigger:zX,TooltipContent:OX,TooltipProvider:ez,VanillaJSONEditor:ED}),Object.assign(window.JSComponents,{VanillaJSONEditor:ED,HandsonTable:sK,MonacoEditor:lK,MultiSelect:az})}const{createInertiaApp:tqe}=bF;window.React=me;window.ReactDOM=TD;window.InertiajsReact=bF;window.LucideReact=s9e;eqe();async function nqe(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}`)}tqe({title:e=>`${e}`,resolve:e=>nqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>hn(()=>import("./add-group-urhA47Qf.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":()=>hn(()=>import("./add-user-CzWUu7wG.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":()=>hn(()=>import("./add-CZdDpNV2.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":()=>hn(()=>import("./catalog-CCSagWKW.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":()=>hn(()=>import("./dashboard-DUNXib6b.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":()=>hn(()=>import("./form-C8pRhEOA.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":()=>hn(()=>import("./home-D--JrFFj.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>hn(()=>import("./init-user-DNrB8Xt5.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>hn(()=>import("./list-CQivvagG.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":()=>hn(()=>import("./login-6Xb8bcPq.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>hn(()=>import("./module-DqrIORMW.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":()=>hn(()=>import("./notification-db0RD9I6.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":()=>hn(()=>import("./register-BIyjCy8M.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>hn(()=>import("./welcome-CZlWN4gM.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}){ane.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{Ax as $,aSe as A,qA as B,Uo as C,OZ as D,oSe as E,rSe as F,lSe as G,ez as H,oW as I,qX as J,zX as K,_s as L,OX as M,LDe as N,cAe as O,J9 as P,uAe as Q,Wte as R,sRe as S,MDe as T,Xte as U,kF as V,Aqe as W,oI as X,K as Y,E5 as Z,An as _,lEe as a,NSe as a$,Lp as a0,NDe as a1,IDe as a2,TDe as a3,RDe as a4,ADe as a5,jDe as a6,Yi as a7,iG as a8,lG as a9,GG as aA,ke as aB,gn as aC,ib as aD,z8 as aE,JRe as aF,GAe as aG,Bf as aH,YAe as aI,nEe as aJ,tje as aK,eje as aL,rje as aM,pje as aN,fje as aO,VEe as aP,FEe as aQ,ZEe as aR,mje as aS,x4 as aT,WEe as aU,tTe as aV,nTe as aW,aTe as aX,XEe as aY,lje as aZ,vU as a_,dG as aa,uG as ab,aje as ac,JDe as ad,nz as ae,A7 as af,h8 as ag,Pw as ah,Fo as ai,fN as aj,el as ak,ai as al,pLe as am,hLe as an,zp as ao,gp as ap,wp as aq,uLe as ar,ps as as,m2 as at,cn as au,Qt as av,gt as aw,be as ax,eE as ay,UG as az,uRe as b,xU as b0,Mje as b1,xje as b2,bje as b3,sje as b4,ije as b5,l9e as b6,d9e as b7,u9e as b8,p9e as b9,Bje as bA,qDe as bB,Ep as bC,Ku as bD,$1 as bE,Zw as bF,oTe as bG,rTe as bH,iTe as bI,Wq as bJ,cTe as bK,sTe as bL,jqe as bM,Dqe as bN,qqe as bO,zqe as bP,h9e as ba,f9e as bb,$W as bc,PW as bd,Ll as be,Tm as bf,HW as bg,nSe as bh,dje as bi,hje as bj,LSe as bk,ISe as bl,N2 as bm,SRe as bn,GC as bo,Ux as bp,WC as bq,aae as br,oae as bs,rae as bt,tEe as bu,o7 as bv,Rqe as bw,Tqe as bx,Eqe as by,az as bz,dRe as c,hRe as d,fRe as e,MSe as f,Lt as g,sAe as h,lAe as i,M as j,dAe as k,_D as l,M9 as m,hf as n,PZ as o,WAe as p,Wi as q,xF as r,XAe as s,Iqe as t,yF as u,KAe as v,GIe as w,ZIe as x,eAe as y,tAe as z};
8065
+ */const YDe={languageCode:"zh-CN",[_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]:"合并",[Ga]:"取消合并",[Ua]:"复制",[Ad]:"带标题的复制",[Id]:"带标题组的复制",[Nd]:"仅复制标题",[Fa]:"剪切",[Va]:"插入子行",[Ba]:"与母行分离",[Ha]:["隐藏该列","隐藏多列"],[Pa]:["显示该列","显示多列"],[$a]:["隐藏该行","隐藏多行"],[Oa]:["显示该行","显示多行"],[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]:"搜索",[ca]:"值",[ia]:"第二值"};NQ();const dV={de:HDe,en:EQ,es:BDe,fr:VDe,it:FDe,ja:UDe,ko:GDe,nl:ZDe,pl:WDe,pt:XDe,ru:KDe,zh:YDe},QDe=document.documentElement.lang,cK=dV[QDe]??dV.en;IQ(cK);const sK=({config:e,data:n=[],onChange:o,disabled:r})=>{const{appearance:c}=nz(),[d,u]=g.useState("ht-theme-main"),p=g.useCallback((k,v)=>{var x,b;if(v==="loadData")return;const f=(b=(x=y.current)==null?void 0:x.hotInstance)==null?void 0:b.getSourceData();o(f)},[]),y=g.useRef(null);return g.useEffect(()=>{y.current&&y.current.hotInstance.loadData(n)},[n]),g.useEffect(()=>{u(c==="dark"?"ht-theme-main-dark":"ht-theme-main")},[c]),M.jsx(AQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:cK.languageCode,ref:y,...e,afterChange:p,children:e.columns.map(k=>M.jsx(TQ,{data:k.data,...k},k.data))})},Dqe=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),JDe=()=>{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},lK=({onChange:e,value:n,options:o,disabled:r})=>{const{appearance:c}=nz(),[d,u]=g.useState("light"),p=g.useRef(null),y=g.useRef(null),{width:k}=JDe(),v=k<768,f=k>=768&&k<1024,x=_=>{e(_)},b=_=>{p.current=_,w()},w=()=>{var L;if(!p.current)return;const _={minimap:{enabled:!v},fontSize:v?12:f?13:14,lineNumbers:v?"off":"on",lineDecorationsWidth:v?5:10,scrollBeyondLastLine:!v,wordWrap:v?"on":"bounded",renderWhitespace:v?"none":"selection",padding:{top:v?8:16,bottom:v?8:16}};p.current.updateOptions(_),(L=y.current)==null||L.classList.add("overflow-hidden"),setTimeout(()=>{var N,A;(N=p.current)==null||N.layout(),(A=y.current)==null||A.classList.remove("overflow-hidden")},100)};g.useEffect(()=>{u(c==="dark"?"vs-dark":"light")},[c]),g.useEffect(()=>{w()},[k]);const S=v?"300px":f?"400px":"500px";return M.jsx("div",{className:`border rounded-lg ${v?"p-1":"p-2"}`,ref:y,children:M.jsx(_Q,{height:S,language:o.language,value:n,theme:d,options:{automaticLayout:!0,...v&&{wordWrap:"on"},minimap:{enabled:!v}},onChange:x,onMount:b,className:`transition-all duration-200 ease-in-out ${r?"pointer-events-none opacity-50 cursor-not-allowed":""}`})})},qqe=Object.freeze(Object.defineProperty({__proto__:null,default:lK},Symbol.toStringTag,{value:"Module"})),uV=DA("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"}}),az=g.forwardRef(({options:e,onValueChange:n,variant:o,processing:r,disabled:c,defaultValue:d=[],placeholder:u="",notFound:p="",search:y="",animation:k=0,maxCount:v=3,modalPopover:f=!1,asChild:x=!1,className:b,mode:w="multiple",...S},_)=>{const[L,N]=g.useState(d),[A,T]=g.useState(!1),[q,$]=g.useState(!1),z=F=>{if(F.key==="Enter")T(!0);else if(F.key==="Backspace"&&!F.currentTarget.value){const se=[...L];se.pop(),N(se),n(se)}},P=F=>{let se;w==="single"?se=L.includes(F)?[]:[F]:se=L.includes(F)?L.filter(ue=>ue!==F):[...L,F],N(se),n(se),w==="single"&&T(!1)},ne=()=>{N([]),n([])},re=()=>{T(F=>!F)},de=()=>{const F=L.slice(0,v);N(F),n(F)};return M.jsxs($W,{open:A,onOpenChange:T,modal:f,children:[M.jsx(PW,{asChild:!0,children:M.jsx(qA,{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:L.length>0?M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsxs("div",{className:"flex flex-wrap items-center",children:[L.slice(0,v).map(F=>{const se=e.find(fe=>fe.value===F),ue=se==null?void 0:se.icon;return M.jsxs("div",{className:K(q?"animate-bounce":"",uV({variant:o})),style:{animationDuration:`${k}s`},children:[ue&&M.jsx(ue,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(gr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:fe=>{fe.stopPropagation(),r||P(F)}})]},F)}),w==="multiple"&&L.length>v&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",uV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${L.length-v} more`,M.jsx(gr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:F=>{F.stopPropagation(),de()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[L.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ai,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:F=>{F.stopPropagation(),ne()}}),M.jsx(Yq,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(ni,{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(ni,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(HW,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(hq,{children:[M.jsx(pG,{placeholder:y,onKeyDown:z}),M.jsxs(fG,{children:[M.jsx(yG,{children:p}),M.jsx(mG,{children:e.map(F=>{const se=L.includes(F.value);return M.jsxs(vG,{onSelect:()=>P(F.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(Fo,{className:"h-4 w-4 text-primary-foreground"})}),F.icon&&M.jsx(F.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:F.label})]},F.value)})}),M.jsx(kG,{})]})]})}),k>0&&L.length>0&&w==="multiple"&&M.jsx(ei,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});az.displayName="MultiSelect";const zqe=Object.freeze(Object.defineProperty({__proto__:null,default:az},Symbol.toStringTag,{value:"Module"}));function eqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),Object.assign(window.UIComponents,{Avatar:aae,AvatarImage:oae,AvatarFallback:rae,Badge:cae,Breadcrumb:l9e,BreadcrumbList:d9e,BreadcrumbItem:u9e,BreadcrumbLink:h9e,BreadcrumbPage:p9e,BreadcrumbSeparator:f9e,BreadcrumbEllipsis:y9e,Button:qA,Calendar:nSe,Card:aSe,CardHeader:oSe,CardFooter:lSe,CardTitle:rSe,CardAction:cSe,CardDescription:iSe,CardContent:sSe,Checkbox:MSe,Collapsible:LSe,CollapsibleTrigger:NSe,CollapsibleContent:ISe,Command:hq,CommandDialog:fLe,CommandInput:pG,CommandList:fG,CommandEmpty:yG,CommandGroup:mG,CommandItem:vG,CommandShortcut:yLe,CommandSeparator:kG,ContextMenu:GIe,ContextMenuTrigger:ZIe,ContextMenuContent:eAe,ContextMenuItem:tAe,ContextMenuCheckboxItem:nAe,ContextMenuRadioItem:aAe,ContextMenuLabel:oAe,ContextMenuSeparator:rAe,ContextMenuShortcut:iAe,ContextMenuGroup:WIe,ContextMenuPortal:XIe,ContextMenuSub:KIe,ContextMenuSubContent:JIe,ContextMenuSubTrigger:QIe,ContextMenuRadioGroup:YIe,Dialog:iG,DialogClose:hLe,DialogContent:lG,DialogDescription:hG,DialogFooter:pLe,DialogHeader:dG,DialogOverlay:sG,DialogPortal:cG,DialogTitle:uG,DialogTrigger:uLe,DialogStack:OZ,DialogStackTrigger:cAe,DialogStackOverlay:sAe,DialogStackBody:lAe,DialogStackContent:dAe,DialogStackTitle:uAe,DialogStackDescription:hAe,DialogStackHeader:pAe,DialogStackFooter:fAe,DialogStackNext:yAe,DialogStackPrevious:mAe,DropdownMenu:GAe,DropdownMenuPortal:ZAe,DropdownMenuTrigger:WAe,DropdownMenuContent:XAe,DropdownMenuGroup:KAe,DropdownMenuLabel:tEe,DropdownMenuItem:YAe,DropdownMenuCheckboxItem:QAe,DropdownMenuRadioGroup:JAe,DropdownMenuRadioItem:eEe,DropdownMenuSeparator:nEe,DropdownMenuShortcut:aEe,DropdownMenuSub:oEe,DropdownMenuSubTrigger:rEe,DropdownMenuSubContent:iEe,Input:oW,Label:lEe,Menubar:VEe,MenubarPortal:LW,MenubarMenu:FEe,MenubarTrigger:ZEe,MenubarContent:WEe,MenubarGroup:UEe,MenubarSeparator:JEe,MenubarLabel:QEe,MenubarItem:XEe,MenubarShortcut:eTe,MenubarCheckboxItem:KEe,MenubarRadioGroup:GEe,MenubarRadioItem:YEe,MenubarSub:tTe,MenubarSubTrigger:nTe,MenubarSubContent:aTe,Pagination:oTe,PaginationContent:rTe,PaginationLink:Wq,PaginationItem:iTe,PaginationPrevious:cTe,PaginationNext:sTe,PaginationEllipsis:lTe,Popover:$W,PopoverTrigger:PW,PopoverContent:HW,PopoverAnchor:_Te,Select:sRe,SelectContent:hRe,SelectGroup:lRe,SelectItem:fRe,SelectLabel:pRe,SelectScrollDownButton:MX,SelectScrollUpButton:gX,SelectSeparator:yRe,SelectTrigger:uRe,SelectValue:dRe,Separator:Yq,Sheet:bX,SheetTrigger:MRe,SheetClose:xRe,SheetContent:wX,SheetHeader:_X,SheetFooter:_Re,SheetTitle:SX,SheetDescription:CX,Sidebar:eje,SidebarContent:sje,SidebarFooter:ije,SidebarGroup:lje,SidebarGroupAction:uje,SidebarGroupContent:hje,SidebarGroupLabel:dje,SidebarHeader:rje,SidebarInput:oje,SidebarInset:aje,SidebarMenu:pje,SidebarMenuAction:kje,SidebarMenuBadge:vje,SidebarMenuButton:mje,SidebarMenuItem:fje,SidebarMenuSkeleton:gje,SidebarMenuSub:Mje,SidebarMenuSubButton:bje,SidebarMenuSubItem:xje,SidebarProvider:JRe,SidebarRail:nje,SidebarSeparator:cje,SidebarTrigger:tje,useSidebar:N2,Skeleton:_D,Slider:Bje,Toaster:MDe,Switch:LDe,Table:NDe,TableHeader:IDe,TableBody:ADe,TableFooter:EDe,TableHead:RDe,TableRow:TDe,TableCell:jDe,TableCaption:DDe,Textarea:qDe,Tooltip:qX,TooltipTrigger:zX,TooltipContent:OX,TooltipProvider:ez,VanillaJSONEditor:ED}),Object.assign(window.JSComponents,{VanillaJSONEditor:ED,HandsonTable:sK,MonacoEditor:lK,MultiSelect:az})}const{createInertiaApp:tqe}=bF;window.React=me;window.ReactDOM=TD;window.InertiajsReact=bF;window.LucideReact=s9e;eqe();async function nqe(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}`)}tqe({title:e=>`${e}`,resolve:e=>nqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>hn(()=>import("./add-group-Gl84bOeV.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":()=>hn(()=>import("./add-user-DqGl8Dxi.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":()=>hn(()=>import("./add-C2tF8-gD.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":()=>hn(()=>import("./catalog-CzQI0e2V.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":()=>hn(()=>import("./dashboard-DNjESo7D.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":()=>hn(()=>import("./form-wHGNS6BZ.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":()=>hn(()=>import("./home-DuF0qLi8.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>hn(()=>import("./init-user-DNrB8Xt5.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>hn(()=>import("./list-3mxaSvck.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":()=>hn(()=>import("./login-6Xb8bcPq.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>hn(()=>import("./module-Db7-sqNw.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":()=>hn(()=>import("./notification-DYA1ZN8s.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":()=>hn(()=>import("./register-BIyjCy8M.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>hn(()=>import("./welcome-CNbz1L8F.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}){ane.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{Ax as $,aSe as A,qA as B,Uo as C,OZ as D,oSe as E,rSe as F,lSe as G,ez as H,oW as I,qX as J,zX as K,_s as L,OX as M,LDe as N,cAe as O,J9 as P,uAe as Q,Wte as R,sRe as S,MDe as T,Xte as U,kF as V,Aqe as W,oI as X,K as Y,E5 as Z,An as _,lEe as a,NSe as a$,Lp as a0,NDe as a1,IDe as a2,TDe as a3,RDe as a4,ADe as a5,jDe as a6,Yi as a7,iG as a8,lG as a9,GG as aA,ke as aB,gn as aC,ib as aD,z8 as aE,JRe as aF,GAe as aG,Bf as aH,YAe as aI,nEe as aJ,tje as aK,eje as aL,rje as aM,pje as aN,fje as aO,VEe as aP,FEe as aQ,ZEe as aR,mje as aS,x4 as aT,WEe as aU,tTe as aV,nTe as aW,aTe as aX,XEe as aY,lje as aZ,vU as a_,dG as aa,uG as ab,aje as ac,JDe as ad,nz as ae,A7 as af,h8 as ag,Pw as ah,Fo as ai,fN as aj,el as ak,ai as al,pLe as am,hLe as an,zp as ao,gp as ap,wp as aq,uLe as ar,ps as as,m2 as at,cn as au,Qt as av,gt as aw,be as ax,eE as ay,UG as az,uRe as b,xU as b0,Mje as b1,xje as b2,bje as b3,sje as b4,ije as b5,l9e as b6,d9e as b7,u9e as b8,p9e as b9,Bje as bA,qDe as bB,Ep as bC,Ku as bD,$1 as bE,Zw as bF,oTe as bG,rTe as bH,iTe as bI,Wq as bJ,cTe as bK,sTe as bL,jqe as bM,Dqe as bN,qqe as bO,zqe as bP,h9e as ba,f9e as bb,$W as bc,PW as bd,Ll as be,Tm as bf,HW as bg,nSe as bh,dje as bi,hje as bj,LSe as bk,ISe as bl,N2 as bm,SRe as bn,GC as bo,Ux as bp,WC as bq,aae as br,oae as bs,rae as bt,tEe as bu,o7 as bv,Rqe as bw,Tqe as bx,Eqe as by,az as bz,dRe as c,hRe as d,fRe as e,MSe as f,Lt as g,sAe as h,lAe as i,M as j,dAe as k,_D as l,M9 as m,hf as n,PZ as o,WAe as p,Wi as q,xF as r,XAe as s,Iqe as t,yF as u,KAe as v,GIe as w,ZIe as x,eAe as y,tAe as z};