adminizer 4.5.0-build.183 → 4.5.0-build.185
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.
- package/assets/add-Dl5_8K1u.js +1 -0
- package/assets/{add-form-BfIXZ_9g.js → add-form-BbVGOzkb.js} +1 -1
- package/assets/add-group-CbIhEPXo.js +1 -0
- package/assets/{add-group-form-BkXmTsXF.js → add-group-form-Dq3ZNRzK.js} +1 -1
- package/assets/add-user-D3IMUWJh.js +1 -0
- package/assets/{add-user-form-CeLtuCJN.js → add-user-form-DsOZcIFM.js} +1 -1
- package/assets/{app-CUnGKHb5.css → app-B6WLK2xU.css} +1 -1
- package/assets/{app-layout-BarrICdq.js → app-layout-CukT3q7B.js} +1 -1
- package/assets/{app-shell-CggZrBz6.js → app-shell-BIJ0x-fl.js} +1 -1
- package/assets/{app-sidebar-CiyLPsHp.js → app-sidebar-ByHgzn6c.js} +1 -1
- package/assets/{app-sidebar-header-pfquDpHT.js → app-sidebar-header-_5xOVeGD.js} +1 -1
- package/assets/app.js +2 -2
- package/assets/{breadcrumbs-BS5uXMaM.js → breadcrumbs-A7JBq3No.js} +1 -1
- package/assets/{catalog-Bf_ljqeu.js → catalog-DpFXEbVg.js} +1 -1
- package/assets/dashboard-yeISElwB.js +3 -0
- package/assets/{date-picker-BjXNej9c.js → date-picker-wPSnFjQL.js} +1 -1
- package/assets/{del-modal-P8KiMFNx.js → del-modal-BoC1vT2X.js} +1 -1
- package/assets/{field-renderer-CUYWPzfi.js → field-renderer-7O0-WSbr.js} +3 -3
- package/assets/{form-DMLPoAW8.js → form-CS3URT-T.js} +1 -1
- package/assets/form-Z7qRBJgC.js +1 -0
- package/assets/{geo-json-CM4o8sUY.js → geo-json-B0iBJmyh.js} +1 -1
- package/assets/{home-DOZTBkTR.js → home-Qu85a6i3.js} +2 -2
- package/assets/{icon-DpkedrXG.js → icon-ZgvQ-H8L.js} +1 -1
- package/assets/{init-user-DaOvt0vG.js → init-user-BFtq2rc0.js} +1 -1
- package/assets/{input-error-CmXZF6xy.js → input-error-CdFGR9TU.js} +1 -1
- package/assets/list-Dgksbxks.js +1 -0
- package/assets/{list-table-CmYyTdS5.js → list-table-zPFwKjgx.js} +3 -3
- package/assets/login-kuTUxAni.js +1 -0
- package/assets/manifest.json +85 -85
- package/assets/{material-icon-DwkE6wKL.js → material-icon-BUWt3B4y.js} +1 -1
- package/assets/{media-manager-CGPeuOR2.js → media-manager-CHSBkVco.js} +3 -3
- package/assets/{module-CXzKzMta.js → module-BMwIYc1l.js} +1 -1
- package/assets/{nav-footer-2ZwcY1Pj.js → nav-footer-Cla40UA5.js} +1 -1
- package/assets/{nav-main-CZa4xkP1.js → nav-main-B-Yx0CD_.js} +1 -1
- package/assets/{nav-user-e1Cj0abB.js → nav-user-DVbGsmCa.js} +1 -1
- package/assets/{notification-DiUY6oAU.js → notification-CEizrE5i.js} +1 -1
- package/assets/{pagination-render-C1OX0c6q.js → pagination-render-Cq6BJxYb.js} +1 -1
- package/assets/{register-hJD1ETdf.js → register-Ch_NMv6R.js} +1 -1
- package/assets/{tabs-7Dl6--VG.js → tabs-VEstORJQ.js} +1 -1
- package/assets/theme-switcher-D4WLCKTZ.js +1 -0
- package/assets/{toast-editor-Bso8riqX.js → toast-editor-CvVqS1Bt.js} +1 -1
- package/assets/{user-info-DrdQBvFb.js → user-info-BUQWZMBs.js} +1 -1
- package/assets/{user-menu-content-ePAt_cwK.js → user-menu-content-DvV4Rfdo.js} +1 -1
- package/assets/welcome-t73Qej7a.js +1 -0
- package/lib/widgets/widgetHandler.d.ts +1 -0
- package/lib/widgets/widgetHandler.js +8 -28
- package/package.json +1 -1
- package/assets/add-8gey7dzI.js +0 -1
- package/assets/add-group-DukHMB0D.js +0 -1
- package/assets/add-user-BMSnrNjG.js +0 -1
- package/assets/dashboard-C1oiuE2J.js +0 -3
- package/assets/form-BZYpPjh4.js +0 -1
- package/assets/list-BciRbNoe.js +0 -1
- package/assets/login-DR6fvKtm.js +0 -1
- package/assets/theme-switcher-xFldiRZz.js +0 -1
- package/assets/welcome-BhkcZ9JK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as D,j as e,h as y,
|
|
1
|
+
import{u as D,j as e,h as y,aL as J,q as G,B as _,aM as V,v as W,w as Y,aN as K,M as L,N as R,E as Q,O as B,r as X,aO as Z,W as ee,L as z,af as te,ag as se,aP as ae}from"./app.js";import{Breadcrumbs as re}from"./breadcrumbs-A7JBq3No.js";import{NavUser as oe}from"./nav-user-DVbGsmCa.js";import{ThemeSwitcher as ne}from"./theme-switcher-D4WLCKTZ.js";import{r as a}from"./monaco-ICtx6xoc.js";import ie from"./material-icon-BUWt3B4y.js";const F=a.createContext(void 0),je=({children:l})=>{const[w,o]=a.useState([]),[m,u]=a.useState([]),[p,f]=a.useState([]),[E,c]=a.useState(!1),[n,h]=a.useState(null),[j,C]=a.useState(""),v=D(),[g,S]=a.useState({}),M=[...m,...p],x=async()=>{try{const t=await y.get(`${window.routePrefix}/notifications/api`,{params:{unreadOnly:!0,limit:4}});o(t.data)}catch(t){console.error("Error fetching bell notifications:",t)}},i=async()=>{try{const t=await y.post(`${window.routePrefix}/notifications`);S(t.data)}catch(t){console.log(t)}},A=async()=>{await x()},b=async()=>{try{const t=await y.get(`${window.routePrefix}/notifications/api/get-classes`);t.data&&(h(t.data.activeServices),C(t.data.initTab))}catch(t){console.error("Error fetching tabs:",t)}},$=async(t,s)=>{try{if(!t){await P(s);return}const r=await y.post(`${window.routePrefix}/notifications/api/search`,{s:t,notificationClass:s});f(r.data)}catch(r){console.error("Error searching notifications:",r)}},P=async t=>{c(!0);try{const s=`${window.routePrefix}/notifications/api/${t}`,r=await y.get(s,{params:{limit:20,skip:0,unreadOnly:!1}});return u([]),f(r.data),r.data}catch(s){return console.error("Error fetching all notifications:",s),[]}finally{c(!1)}},k=async(t,s)=>{try{const r=`${window.routePrefix}/notifications/api/${t}`,d=await y.get(r,{params:{limit:20,skip:s,unreadOnly:!1}});return f(N=>[...N,...d.data]),d.data}catch(r){return console.error("Error paginating notifications:",r),[]}};a.useEffect(()=>{if(!v.props.notifications)return;i(),x();const t=new EventSource(`${window.routePrefix}/notifications/api/stream`);return t.addEventListener("connected",s=>{const r=JSON.parse(s.data);console.log("Connected event:",r),b()}),t.addEventListener("notification",s=>{const r=JSON.parse(s.data);u(d=>[r,...d]),o(d=>[r,...d].slice(0,4))}),t.onerror=()=>{console.error("SSE connection error")},()=>t.close()},[]);const I=async(t,s)=>{try{await y.put(`${window.routePrefix}/notifications/api/${t}/${s}/read`,{}),u(r=>r.map(d=>d.id===s?{...d,read:!0}:d)),f(r=>r.map(d=>d.id===s?{...d,read:!0}:d)),o([])}catch(r){console.error("Error marking as read:",r)}},T=async()=>{try{await y.put(`${window.routePrefix}/notifications/api/read-all`),u(t=>t.map(s=>({...s,read:!0}))),f(t=>t.map(s=>({...s,read:!0}))),await x()}catch(t){console.error("Error marking all as read:",t)}},O=w.filter(t=>!t.read).length;return e.jsx(F.Provider,{value:{bellNotifications:w,allNotifications:M,unreadCount:O,getTabs:b,tabs:n,initTab:j,search:$,markAsRead:I,markAllAsRead:T,getLocale:i,messages:g,fetchAllNotifications:P,paginateNotifications:k,loading:E,refreshBellNotifications:A},children:l})},H=()=>{const l=a.useContext(F);if(l===void 0)throw new Error("useNotifications must be used within a NotificationProvider");return l};function ce(){const{bellNotifications:l,markAsRead:w,unreadCount:o,refreshBellNotifications:m,messages:u}=H(),[p,f]=a.useState(!1),E=async(n,h)=>{f(!0);try{await w(n,h),await m()}catch(j){console.error("Error marking as read:",j)}finally{f(!1)}},c=n=>{const h=new Date,j=new Date(n),C=h.getTime()-j.getTime(),v=Math.floor(C/1e3),g=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(v<60)return g.format(-v,"second");const S=Math.floor(v/60);if(S<60)return g.format(-S,"minute");const M=Math.floor(S/60);if(M<24)return g.format(-M,"hour");const x=Math.floor(M/24);if(x<30)return g.format(-x,"day");const i=Math.floor(x/30);if(i<12)return g.format(-i,"month");const A=Math.floor(i/12);return g.format(-A,"year")};return e.jsxs(J,{children:[e.jsx(G,{asChild:!0,className:"cursor-pointer data-[state=open]:bg-sidebar-accent",children:e.jsxs(_,{variant:"ghost",className:"relative",children:[e.jsx(V,{}),o>0&&e.jsx("div",{className:"absolute top-1.5 right-1.5 size-1.5 rounded-full bg-destructive"})]})}),e.jsxs(W,{className:"z-[1002] p-2",align:"end",onCloseAutoFocus:n=>n.preventDefault(),children:[e.jsx(Y,{className:`${p?"opacity-50 pointer-events-none":""}`,children:l.length===0?e.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No notifications"}):l.map(n=>e.jsxs("div",{children:[e.jsx(K,{asChild:!0,className:"cursor-pointer",onSelect:h=>{h.preventDefault(),X.visit(`${window.routePrefix}/notifications?type=${n.notificationClass}`)},children:e.jsxs("div",{className:"grid grid-cols-[32px_250px] grid-rows-[auto_1fr] items-start gap-x-4 gap-y-2",children:[n.icon?e.jsx(ie,{name:n.icon.icon,style:{color:n.icon.iconColor},className:"!text-[32px]"}):e.jsx("div",{}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:n.title}),e.jsx("span",{className:"truncate",children:n.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:c(n.createdAt)})}),e.jsxs(L,{children:[e.jsx(R,{asChild:!0,children:e.jsx(_,{variant:"ghost",size:"icon",className:"size-4",onClick:h=>{h.stopPropagation(),E(n.notificationClass,n.id)},children:e.jsx(Q,{className:"text-primary"})})}),e.jsx(B,{side:"left",className:"z-[1003]",children:e.jsx("p",{children:u["Make read"]})})]})]})]})}),e.jsx(Z,{})]},n.id))}),e.jsx(_,{variant:"secondary",asChild:!0,children:e.jsxs(ee,{href:`${window.routePrefix}/notifications`,className:`w-full ${p?"opacity-50 pointer-events-none":""}`,children:[u["View All"],p&&e.jsx(z,{className:"h-4 w-4 animate-spin"})]})})]})]})}const le=()=>{if(!(typeof window>"u"))return window.__adminizerAiAssistantState__??void 0},de=l=>{typeof window>"u"||(window.__adminizerAiAssistantState__=l)},U=a.createContext(void 0),ve=({children:l})=>{const o=D().props.aiAssistant,m=a.useMemo(()=>le(),[]),[u,p]=a.useState(()=>(m==null?void 0:m.isOpen)??!1),[f,E]=a.useState([]),[c,n]=a.useState(()=>(m==null?void 0:m.activeModel)??(o==null?void 0:o.defaultModel)??void 0),[h,j]=a.useState([]),[C,v]=a.useState(!1),[g,S]=a.useState(!1),[M,x]=a.useState(null),i=(o==null?void 0:o.enabled)??!1,A=a.useCallback(async()=>{if(i)try{v(!0);const{data:s}=await y.get(`${window.routePrefix}/api/ai-assistant/models`);E(s),n(r=>{var N;return r||(o!=null&&o.defaultModel&&s.some(q=>q.id===o.defaultModel)?o.defaultModel:(N=s[0])==null?void 0:N.id)})}catch(s){console.error("Failed to load AI assistant models",s),x("Unable to load AI assistant models")}finally{v(!1)}},[o==null?void 0:o.defaultModel,i]),b=a.useCallback(async s=>{if(!(!i||!s))try{v(!0);const{data:r}=await y.get(`${window.routePrefix}/api/ai-assistant/history/${s}`);j(r.history??[])}catch(r){console.error("Failed to load AI assistant history",r),x("Unable to load AI assistant history")}finally{v(!1)}},[i]);a.useEffect(()=>{if(!i){j([]);return}A()},[A,i]),a.useEffect(()=>{!i||!c||b(c)},[c,b,i]);const $=a.useCallback(s=>{n(s)},[]),P=a.useCallback(()=>p(!0),[]),k=a.useCallback(()=>p(!1),[]),I=a.useCallback(()=>p(s=>!s),[]),T=a.useCallback(async s=>{if(!i||!c)return;const r=s.trim();if(!r)return;const d={id:`tmp-${Date.now()}`,role:"user",content:r,timestamp:new Date().toISOString(),modelId:c};j(N=>[...N,d]),S(!0),x(null);try{const{data:N}=await y.post(`${window.routePrefix}/api/ai-assistant/query`,{modelId:c,message:r});j(N.history??[])}catch(N){console.error("Failed to send AI assistant message",N),x("Unable to reach AI assistant"),await b(c)}finally{S(!1)}},[c,b,i]),O=a.useCallback(async()=>{c&&await b(c)},[c,b]);a.useEffect(()=>{i||p(!1)},[i]),a.useEffect(()=>{de({isOpen:u,activeModel:c})},[c,u]);const t=a.useMemo(()=>({isEnabled:i,isOpen:u,openChat:P,closeChat:k,toggleChat:I,models:f,activeModel:c,setActiveModel:$,messages:h,loading:C,sending:g,error:M,sendMessage:T,refreshHistory:O}),[c,k,M,i,u,C,h,f,P,O,T,g,$,I]);return e.jsx(U.Provider,{value:t,children:l})},ue=()=>{const l=a.useContext(U);if(!l)throw new Error("useAiAssistant must be used within an AiAssistantProvider");return l};function fe(){const{isEnabled:l,isOpen:w,toggleChat:o,models:m,sending:u,loading:p}=ue();if(!l)return null;const f=m.length>0;return e.jsx(e.Fragment,{children:e.jsxs(L,{children:[e.jsx(R,{asChild:!0,children:e.jsx(_,{variant:"ghost",className:te("relative",{"text-primary":w}),onClick:o,"aria-expanded":w,"aria-haspopup":"true","aria-controls":"ai-assistant-panel",disabled:!f&&p,children:u?e.jsx(z,{className:"size-4 animate-spin"}):e.jsx(se,{className:"size-4"})})}),e.jsx(B,{side:"bottom",className:"z-[1002]",children:e.jsx("span",{children:"AI assistant"})})]})})}function me({breadcrumbs:l=[]}){const{tabs:w}=H(),o=D();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(ae,{className:"-ml-1"}),e.jsx(re,{breadcrumbs:l})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx(fe,{}),e.jsx(ne,{}),o.props.notifications&&(w===null?e.jsx("div",{className:"w-[40px] flex-none flex justify-center",children:e.jsx(z,{className:"size-4 animate-spin"})}):w.length?e.jsx(ce,{}):null),e.jsx(oe,{})]})]})})}const Ne=Object.freeze(Object.defineProperty({__proto__:null,AppSidebarHeader:me},Symbol.toStringTag,{value:"Module"}));export{me as A,je as N,ue as a,ve as b,Ne as c,H 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-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group-CbIhEPXo.js","./app-layout-CukT3q7B.js","./app-shell-BIJ0x-fl.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-ByHgzn6c.js","./nav-main-B-Yx0CD_.js","./material-icon-BUWt3B4y.js","./app-sidebar-header-_5xOVeGD.js","./breadcrumbs-A7JBq3No.js","./nav-user-DVbGsmCa.js","./user-info-BUQWZMBs.js","./user-menu-content-DvV4Rfdo.js","./theme-switcher-D4WLCKTZ.js","./icon-ZgvQ-H8L.js","./add-group-form-Dq3ZNRzK.js","./add-user-D3IMUWJh.js","./add-user-form-DsOZcIFM.js","./input-error-CdFGR9TU.js","./add-Dl5_8K1u.js","./add-form-BbVGOzkb.js","./field-renderer-7O0-WSbr.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-DpFXEbVg.js","./del-modal-BoC1vT2X.js","./catalog-D4n6dpGl.css","./dashboard-yeISElwB.js","./dashboard-BOltB2Hq.css","./form-Z7qRBJgC.js","./form-CS3URT-T.js","./home-Qu85a6i3.js","./init-user-BFtq2rc0.js","./list-Dgksbxks.js","./list-table-zPFwKjgx.js","./pagination-render-Cq6BJxYb.js","./login-kuTUxAni.js","./module-BMwIYc1l.js","./notification-CEizrE5i.js","./tabs-VEstORJQ.js","./register-Ch_NMv6R.js","./welcome-t73Qej7a.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{g as Ju,s as ai,c as xd,i as gV,h as LQ,e as NQ,f as IQ,t as AQ,_ as yn}from"./jsoneditor-D95dIAP2.js";import{b as EQ,c as FP,r as MV,a as TQ}from"./vendor-wzZzN_Jv.js";import{r as g,e as ke,R as xV,F as RQ}from"./monaco-ICtx6xoc.js";import{r as AA,R as e2,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 jQ,ao as DQ,ap as qQ,aq as zQ,ar as $Q,as as OQ,at as PQ,au as HQ}from"./handsontable-PVakPtJV.js";var xR={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 xqe={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]:"第二值"};zQ();const mV={de:uqe,en:PQ,es:hqe,fr:pqe,it:fqe,ja:yqe,ko:mqe,nl:kqe,pl:vqe,pt:gqe,ru:Mqe,zh:xqe},bqe=document.documentElement.lang,yK=mV[bqe]??mV.en;$Q(yK);const mK=({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(OQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:yK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx(HQ,{data:k.data,...k},k.data))})},rze=Object.freeze(Object.defineProperty({__proto__:null,default:mK},Symbol.toStringTag,{value:"Module"})),wqe=()=>{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},kK=({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}=wqe(),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(RQ,{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":""}`})})},ize=Object.freeze(Object.defineProperty({__proto__:null,default:kK},Symbol.toStringTag,{value:"Module"})),kV=OA("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(GW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(ZW,{asChild:!0,children:M.jsx(PA,{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":"",kV({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":"",kV({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(WW,{className:"w-auto p-0 z-[1003]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(MG,{placeholder:f,onKeyDown:z}),M.jsxs(xG,{children:[M.jsx(bG,{children:h}),M.jsx(wG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(SG,{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(_G,{})]})]})}),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 cze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function _qe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),window.axios=wt,window.sonner=VDe,Object.assign(window.UIComponents,{Avatar:Sae,AvatarImage:Cae,AvatarFallback:Lae,Badge:Iae,Breadcrumb:E9e,BreadcrumbList:T9e,BreadcrumbItem:R9e,BreadcrumbLink:j9e,BreadcrumbPage:D9e,BreadcrumbSeparator:q9e,BreadcrumbEllipsis:z9e,Button:PA,Calendar:_Se,Card:SSe,CardHeader:CSe,CardFooter:ESe,CardTitle:LSe,CardAction:ISe,CardDescription:NSe,CardContent:ASe,Checkbox:BSe,Collapsible:XSe,CollapsibleTrigger:KSe,CollapsibleContent:YSe,Command:mq,CommandDialog:qLe,CommandInput:MG,CommandList:xG,CommandEmpty:bG,CommandGroup:wG,CommandItem:SG,CommandShortcut:zLe,CommandSeparator:_G,ContextMenu:fAe,ContextMenuTrigger:yAe,ContextMenuContent:bAe,ContextMenuItem:wAe,ContextMenuCheckboxItem:_Ae,ContextMenuRadioItem:SAe,ContextMenuLabel:CAe,ContextMenuSeparator:LAe,ContextMenuShortcut:NAe,ContextMenuGroup:mAe,ContextMenuPortal:kAe,ContextMenuSub:vAe,ContextMenuSubContent:xAe,ContextMenuSubTrigger:MAe,ContextMenuRadioGroup:gAe,Dialog:pG,DialogClose:jLe,DialogContent:mG,DialogDescription:gG,DialogFooter:DLe,DialogHeader:kG,DialogOverlay:yG,DialogPortal:fG,DialogTitle:vG,DialogTrigger:RLe,DialogStack:UZ,DialogStackTrigger:IAe,DialogStackOverlay:AAe,DialogStackBody:EAe,DialogStackContent:TAe,DialogStackTitle:RAe,DialogStackDescription:jAe,DialogStackHeader:DAe,DialogStackFooter:qAe,DialogStackNext:zAe,DialogStackPrevious:$Ae,DropdownMenu:fEe,DropdownMenuPortal:yEe,DropdownMenuTrigger:mEe,DropdownMenuContent:kEe,DropdownMenuGroup:vEe,DropdownMenuLabel:wEe,DropdownMenuItem:gEe,DropdownMenuCheckboxItem:MEe,DropdownMenuRadioGroup:xEe,DropdownMenuRadioItem:bEe,DropdownMenuSeparator:_Ee,DropdownMenuShortcut:SEe,DropdownMenuSub:CEe,DropdownMenuSubTrigger:LEe,DropdownMenuSubContent:NEe,Input:uW,Label:EEe,Menubar:uTe,MenubarPortal:jW,MenubarMenu:hTe,MenubarTrigger:yTe,MenubarContent:mTe,MenubarGroup:pTe,MenubarSeparator:xTe,MenubarLabel:MTe,MenubarItem:kTe,MenubarShortcut:bTe,MenubarCheckboxItem:vTe,MenubarRadioGroup:fTe,MenubarRadioItem:gTe,MenubarSub:wTe,MenubarSubTrigger:_Te,MenubarSubContent:STe,Pagination:CTe,PaginationContent:LTe,PaginationLink:Qq,PaginationItem:NTe,PaginationPrevious:ITe,PaginationNext:ATe,PaginationEllipsis:ETe,Popover:GW,PopoverTrigger:ZW,PopoverContent:WW,PopoverAnchor:GTe,Select:ARe,SelectContent:jRe,SelectGroup:ERe,SelectItem:qRe,SelectLabel:DRe,SelectScrollDownButton:LX,SelectScrollUpButton:CX,SelectSeparator:zRe,SelectTrigger:RRe,SelectValue:TRe,Separator:tz,Sheet:IX,SheetTrigger:BRe,SheetClose:VRe,SheetContent:AX,SheetHeader:EX,SheetFooter:GRe,SheetTitle:TX,SheetDescription:RX,Sidebar:bje,SidebarContent:Aje,SidebarFooter:Nje,SidebarGroup:Eje,SidebarGroupAction:Rje,SidebarGroupContent:jje,SidebarGroupLabel:Tje,SidebarHeader:Lje,SidebarInput:Cje,SidebarInset:Sje,SidebarMenu:Dje,SidebarMenuAction:Oje,SidebarMenuBadge:Pje,SidebarMenuButton:$je,SidebarMenuItem:qje,SidebarMenuSkeleton:Hje,SidebarMenuSub:Bje,SidebarMenuSubButton:Fje,SidebarMenuSubItem:Vje,SidebarProvider:xje,SidebarRail:_je,SidebarSeparator:Ije,SidebarTrigger:wje,useSidebar:E2,Skeleton:ID,Slider:dDe,Toaster:FDe,Switch:YDe,Table:QDe,TableHeader:JDe,TableBody:eqe,TableFooter:tqe,TableHead:aqe,TableRow:nqe,TableCell:oqe,TableCaption:rqe,Textarea:iqe,Tooltip:VX,TooltipTrigger:FX,TooltipContent:UX,TooltipProvider:oz,VanillaJSONEditor:qD}),Object.assign(window.JSComponents,{VanillaJSONEditor:qD,HandsonTable:mK,MonacoEditor:kK,MultiSelect:cz})}const{createInertiaApp:Sqe,router:vK}=IF;window.React=ke;window.ReactDOM=e2;window.InertiajsReact=IF;window.LucideReact=A9e;_qe();async function Cqe(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}`)}let sz=!1;vK.on("navigate",e=>{sz=!0});vK.on("finish",e=>{sz=!1});const vV=document.createElement.bind(document);document.createElement=function(e,n){const o=vV(e,n);return e.toLowerCase()==="iframe"&&sz?(console.warn("[Adminizer] Prevented iframe creation, forcing full page reload"),setTimeout(()=>{window.location.reload()},0),vV("div")):o};Sqe({title:e=>`${e}`,resolve:e=>Cqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>yn(()=>import("./add-group-DukHMB0D.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":()=>yn(()=>import("./add-user-BMSnrNjG.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":()=>yn(()=>import("./add-8gey7dzI.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":()=>yn(()=>import("./catalog-Bf_ljqeu.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":()=>yn(()=>import("./dashboard-C1oiuE2J.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":()=>yn(()=>import("./form-BZYpPjh4.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":()=>yn(()=>import("./home-DOZTBkTR.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>yn(()=>import("./init-user-DaOvt0vG.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>yn(()=>import("./list-BciRbNoe.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":()=>yn(()=>import("./login-DR6fvKtm.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>yn(()=>import("./module-CXzKzMta.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":()=>yn(()=>import("./notification-DiUY6oAU.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":()=>yn(()=>import("./register-hJD1ETdf.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>yn(()=>import("./welcome-BhkcZ9JK.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}){Sne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{En as $,wAe as A,PA as B,Go as C,UZ as D,j5 as E,SSe as F,CSe as G,LSe as H,uW as I,ESe as J,oz as K,Cs as L,VX as M,FX as N,UX as O,nw as P,YDe as Q,IAe as R,ARe as S,FDe as T,RAe as U,fne as V,mne as W,wF as X,eze as Y,cI as Z,K as _,T5 as a,STe as a$,Rx as a0,Ap as a1,QDe as a2,JDe as a3,nqe as a4,aqe as a5,eqe as a6,oqe as a7,Ji as a8,pG as a9,bt as aA,be as aB,oE as aC,QG as aD,JG as aE,ge as aF,xn as aG,lb as aH,P8 as aI,xje as aJ,fEe as aK,Uf as aL,gEe as aM,_Ee as aN,wje as aO,bje as aP,Lje as aQ,Dje as aR,qje as aS,uTe as aT,hTe as aU,yTe as aV,$je as aW,_4 as aX,mTe as aY,wTe as aZ,_Te as a_,mG as aa,kG as ab,vG as ac,Sje as ad,OF as ae,Js as af,ri as ag,iqe as ah,wqe as ai,iz as aj,R7 as ak,y8 as al,Vw as am,Uo as an,kN as ao,nl as ap,DLe as aq,jLe as ar,Pp as as,bp as at,Cp as au,RLe as av,ys as aw,g2 as ax,dn as ay,Jt as az,EEe as b,kTe as b0,Eje as b1,SU as b2,KSe as b3,NU as b4,Bje as b5,Vje as b6,Fje as b7,Aje as b8,Nje as b9,aze as bA,nze as bB,tze as bC,cz as bD,dDe as bE,Qqe as bF,jp as bG,Yu as bH,H1 as bI,Kw as bJ,CTe as bK,LTe as bL,NTe as bM,Qq as bN,ITe as bO,ATe as bP,oze as bQ,rze as bR,ize as bS,cze as bT,E9e as ba,T9e as bb,R9e as bc,D9e as bd,j9e as be,q9e as bf,GW as bg,ZW as bh,Il as bi,Dm as bj,WW as bk,_Se as bl,Tje as bm,jje as bn,XSe as bo,YSe as bp,E2 as bq,ZRe as br,XC as bs,Wx as bt,YC as bu,Sae as bv,Cae as bw,Lae as bx,wEe as by,c7 as bz,RRe as c,TRe as d,jRe as e,qRe as f,BSe as g,wt as h,AAe as i,M as j,EAe as k,TAe as l,ID as m,w9 as n,yf as o,ZZ as p,mEe as q,NF as r,Ki as s,EDe as t,xF as u,kEe as v,vEe as w,fAe as x,yAe as y,bAe as z};
|
|
8065
|
+
*/const xqe={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]:"第二值"};zQ();const mV={de:uqe,en:PQ,es:hqe,fr:pqe,it:fqe,ja:yqe,ko:mqe,nl:kqe,pl:vqe,pt:gqe,ru:Mqe,zh:xqe},bqe=document.documentElement.lang,yK=mV[bqe]??mV.en;$Q(yK);const mK=({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(OQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:yK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx(HQ,{data:k.data,...k},k.data))})},rze=Object.freeze(Object.defineProperty({__proto__:null,default:mK},Symbol.toStringTag,{value:"Module"})),wqe=()=>{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},kK=({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}=wqe(),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(RQ,{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":""}`})})},ize=Object.freeze(Object.defineProperty({__proto__:null,default:kK},Symbol.toStringTag,{value:"Module"})),kV=OA("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(GW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(ZW,{asChild:!0,children:M.jsx(PA,{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":"",kV({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":"",kV({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(WW,{className:"w-auto p-0 z-[1003]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(MG,{placeholder:f,onKeyDown:z}),M.jsxs(xG,{children:[M.jsx(bG,{children:h}),M.jsx(wG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(SG,{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(_G,{})]})]})}),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 cze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function _qe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),window.axios=wt,window.sonner=VDe,Object.assign(window.UIComponents,{Avatar:Sae,AvatarImage:Cae,AvatarFallback:Lae,Badge:Iae,Breadcrumb:E9e,BreadcrumbList:T9e,BreadcrumbItem:R9e,BreadcrumbLink:j9e,BreadcrumbPage:D9e,BreadcrumbSeparator:q9e,BreadcrumbEllipsis:z9e,Button:PA,Calendar:_Se,Card:SSe,CardHeader:CSe,CardFooter:ESe,CardTitle:LSe,CardAction:ISe,CardDescription:NSe,CardContent:ASe,Checkbox:BSe,Collapsible:XSe,CollapsibleTrigger:KSe,CollapsibleContent:YSe,Command:mq,CommandDialog:qLe,CommandInput:MG,CommandList:xG,CommandEmpty:bG,CommandGroup:wG,CommandItem:SG,CommandShortcut:zLe,CommandSeparator:_G,ContextMenu:fAe,ContextMenuTrigger:yAe,ContextMenuContent:bAe,ContextMenuItem:wAe,ContextMenuCheckboxItem:_Ae,ContextMenuRadioItem:SAe,ContextMenuLabel:CAe,ContextMenuSeparator:LAe,ContextMenuShortcut:NAe,ContextMenuGroup:mAe,ContextMenuPortal:kAe,ContextMenuSub:vAe,ContextMenuSubContent:xAe,ContextMenuSubTrigger:MAe,ContextMenuRadioGroup:gAe,Dialog:pG,DialogClose:jLe,DialogContent:mG,DialogDescription:gG,DialogFooter:DLe,DialogHeader:kG,DialogOverlay:yG,DialogPortal:fG,DialogTitle:vG,DialogTrigger:RLe,DialogStack:UZ,DialogStackTrigger:IAe,DialogStackOverlay:AAe,DialogStackBody:EAe,DialogStackContent:TAe,DialogStackTitle:RAe,DialogStackDescription:jAe,DialogStackHeader:DAe,DialogStackFooter:qAe,DialogStackNext:zAe,DialogStackPrevious:$Ae,DropdownMenu:fEe,DropdownMenuPortal:yEe,DropdownMenuTrigger:mEe,DropdownMenuContent:kEe,DropdownMenuGroup:vEe,DropdownMenuLabel:wEe,DropdownMenuItem:gEe,DropdownMenuCheckboxItem:MEe,DropdownMenuRadioGroup:xEe,DropdownMenuRadioItem:bEe,DropdownMenuSeparator:_Ee,DropdownMenuShortcut:SEe,DropdownMenuSub:CEe,DropdownMenuSubTrigger:LEe,DropdownMenuSubContent:NEe,Input:uW,Label:EEe,Menubar:uTe,MenubarPortal:jW,MenubarMenu:hTe,MenubarTrigger:yTe,MenubarContent:mTe,MenubarGroup:pTe,MenubarSeparator:xTe,MenubarLabel:MTe,MenubarItem:kTe,MenubarShortcut:bTe,MenubarCheckboxItem:vTe,MenubarRadioGroup:fTe,MenubarRadioItem:gTe,MenubarSub:wTe,MenubarSubTrigger:_Te,MenubarSubContent:STe,Pagination:CTe,PaginationContent:LTe,PaginationLink:Qq,PaginationItem:NTe,PaginationPrevious:ITe,PaginationNext:ATe,PaginationEllipsis:ETe,Popover:GW,PopoverTrigger:ZW,PopoverContent:WW,PopoverAnchor:GTe,Select:ARe,SelectContent:jRe,SelectGroup:ERe,SelectItem:qRe,SelectLabel:DRe,SelectScrollDownButton:LX,SelectScrollUpButton:CX,SelectSeparator:zRe,SelectTrigger:RRe,SelectValue:TRe,Separator:tz,Sheet:IX,SheetTrigger:BRe,SheetClose:VRe,SheetContent:AX,SheetHeader:EX,SheetFooter:GRe,SheetTitle:TX,SheetDescription:RX,Sidebar:bje,SidebarContent:Aje,SidebarFooter:Nje,SidebarGroup:Eje,SidebarGroupAction:Rje,SidebarGroupContent:jje,SidebarGroupLabel:Tje,SidebarHeader:Lje,SidebarInput:Cje,SidebarInset:Sje,SidebarMenu:Dje,SidebarMenuAction:Oje,SidebarMenuBadge:Pje,SidebarMenuButton:$je,SidebarMenuItem:qje,SidebarMenuSkeleton:Hje,SidebarMenuSub:Bje,SidebarMenuSubButton:Fje,SidebarMenuSubItem:Vje,SidebarProvider:xje,SidebarRail:_je,SidebarSeparator:Ije,SidebarTrigger:wje,useSidebar:E2,Skeleton:ID,Slider:dDe,Toaster:FDe,Switch:YDe,Table:QDe,TableHeader:JDe,TableBody:eqe,TableFooter:tqe,TableHead:aqe,TableRow:nqe,TableCell:oqe,TableCaption:rqe,Textarea:iqe,Tooltip:VX,TooltipTrigger:FX,TooltipContent:UX,TooltipProvider:oz,VanillaJSONEditor:qD}),Object.assign(window.JSComponents,{VanillaJSONEditor:qD,HandsonTable:mK,MonacoEditor:kK,MultiSelect:cz})}const{createInertiaApp:Sqe,router:vK}=IF;window.React=ke;window.ReactDOM=e2;window.InertiajsReact=IF;window.LucideReact=A9e;_qe();async function Cqe(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}`)}let sz=!1;vK.on("navigate",e=>{sz=!0});vK.on("finish",e=>{sz=!1});const vV=document.createElement.bind(document);document.createElement=function(e,n){const o=vV(e,n);return e.toLowerCase()==="iframe"&&sz?(console.warn("[Adminizer] Prevented iframe creation, forcing full page reload"),setTimeout(()=>{window.location.reload()},0),vV("div")):o};Sqe({title:e=>`${e}`,resolve:e=>Cqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>yn(()=>import("./add-group-CbIhEPXo.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":()=>yn(()=>import("./add-user-D3IMUWJh.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":()=>yn(()=>import("./add-Dl5_8K1u.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":()=>yn(()=>import("./catalog-DpFXEbVg.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":()=>yn(()=>import("./dashboard-yeISElwB.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":()=>yn(()=>import("./form-Z7qRBJgC.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":()=>yn(()=>import("./home-Qu85a6i3.js"),__vite__mapDeps([33,5,4,3,6]),import.meta.url),"./pages/init-user.tsx":()=>yn(()=>import("./init-user-BFtq2rc0.js"),__vite__mapDeps([34,3,4,20,5,6]),import.meta.url),"./pages/list.tsx":()=>yn(()=>import("./list-Dgksbxks.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":()=>yn(()=>import("./login-kuTUxAni.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>yn(()=>import("./module-BMwIYc1l.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":()=>yn(()=>import("./notification-CEizrE5i.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":()=>yn(()=>import("./register-Ch_NMv6R.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>yn(()=>import("./welcome-t73Qej7a.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}){Sne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{K as $,wAe as A,PA as B,Go as C,UZ as D,j5 as E,SSe as F,CSe as G,LSe as H,uW as I,ESe as J,oz as K,Cs as L,VX as M,FX as N,UX as O,nw as P,YDe as Q,IAe as R,ARe as S,FDe as T,RAe as U,fne as V,mne as W,wF as X,eze as Y,cI as Z,r7 as _,T5 as a,_Te as a$,En as a0,Rx as a1,Ap as a2,QDe as a3,JDe as a4,nqe as a5,aqe as a6,eqe as a7,oqe as a8,Ji as a9,Jt as aA,bt as aB,be as aC,oE as aD,QG as aE,JG as aF,ge as aG,xn as aH,lb as aI,P8 as aJ,xje as aK,fEe as aL,Uf as aM,gEe as aN,_Ee as aO,wje as aP,bje as aQ,Lje as aR,Dje as aS,qje as aT,uTe as aU,hTe as aV,yTe as aW,$je as aX,_4 as aY,mTe as aZ,wTe as a_,pG as aa,mG as ab,kG as ac,vG as ad,Sje as ae,OF as af,Js as ag,ri as ah,iqe as ai,wqe as aj,iz as ak,R7 as al,y8 as am,Vw as an,Uo as ao,kN as ap,nl as aq,DLe as ar,jLe as as,Pp as at,bp as au,Cp as av,RLe as aw,ys as ax,g2 as ay,dn as az,EEe as b,STe as b0,kTe as b1,Eje as b2,SU as b3,KSe as b4,NU as b5,Bje as b6,Vje as b7,Fje as b8,Aje as b9,c7 as bA,aze as bB,nze as bC,tze as bD,cz as bE,dDe as bF,Qqe as bG,jp as bH,Yu as bI,H1 as bJ,Kw as bK,CTe as bL,LTe as bM,NTe as bN,Qq as bO,ITe as bP,ATe as bQ,oze as bR,rze as bS,ize as bT,cze as bU,Nje as ba,E9e as bb,T9e as bc,R9e as bd,D9e as be,j9e as bf,q9e as bg,GW as bh,ZW as bi,Il as bj,Dm as bk,WW as bl,_Se as bm,Tje as bn,jje as bo,XSe as bp,YSe as bq,E2 as br,ZRe as bs,XC as bt,Wx as bu,YC as bv,Sae as bw,Cae as bx,Lae as by,wEe as bz,RRe as c,TRe as d,jRe as e,qRe as f,BSe as g,wt as h,AAe as i,M as j,EAe as k,TAe as l,ID as m,w9 as n,yf as o,ZZ as p,mEe as q,NF as r,Ki as s,EDe as t,xF as u,kEe as v,vEe as w,fAe as x,yAe as y,bAe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r,
|
|
1
|
+
import{j as r,bb as i,bc as n,bd as c,be as d,bf as m,W as l,bg as h}from"./app.js";import{r as o}from"./monaco-ICtx6xoc.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function f({breadcrumbs:e}){return r.jsx(r.Fragment,{children:e.length>0&&r.jsx(i,{children:r.jsx(n,{children:e.map((s,t)=>{const a=t===e.length-1;return r.jsxs(o.Fragment,{children:[r.jsx(c,{children:a?r.jsx(d,{children:s.title}):r.jsx(m,{asChild:!0,children:r.jsx(l,{href:s.href,children:s.title})})}),!a&&r.jsx(h,{})]},t)})})})})}export{f as Breadcrumbs};
|