adminizer 4.4.0-build.151 → 4.4.0-build.153

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-gAiczU39.js";import p from"./add-form-uUiOWEy_.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";import"./field-renderer-BNQVfOir.js";import"./dynamic-controls-BOYmRX_z.js";import"./input-error-CmXZF6xy.js";const i=[];function k(){const r=t();return o.jsx(m,{breadcrumbs:i,children:o.jsx(p,{page:r,catalog:!1})})}export{k as default};
1
+ import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-gAiczU39.js";import p from"./add-form-jLwBgqxD.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-CNGEOOHu.js";import"./nav-main-BqKm87JZ.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";import"./field-renderer-BTbMeyVH.js";import"./dynamic-controls-BOYmRX_z.js";import"./input-error-CmXZF6xy.js";const i=[];function k(){const r=t();return o.jsx(m,{breadcrumbs:i,children:o.jsx(p,{page:r,catalog:!1})})}export{k as default};
@@ -1 +1 @@
1
- import{X as J,bx as $,j as r,B as S,W as K,aE as X,by as T,L as B,bz as z,g as A,b as C,m as G,K as H,M as Q,N as W,aF as Y,O as Z,h as ee}from"./app.js";import{r as d}from"./monaco-ICtx6xoc.js";import{Icon as M}from"./icon-DpkedrXG.js";import{F as U}from"./field-renderer-BNQVfOir.js";import O from"./input-error-CmXZF6xy.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";import"./dynamic-controls-BOYmRX_z.js";var I=new Map,k=new WeakMap,V=0,re=void 0;function se(e){return e?(k.has(e)||(V+=1,k.set(e,V.toString())),k.get(e)):"0"}function te(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?se(e.root):e[t]}`).toString()}function ne(e){const t=te(e);let o=I.get(t);if(!o){const i=new Map;let p;const c=new IntersectionObserver(l=>{l.forEach(n=>{var a;const g=n.isIntersecting&&p.some(u=>n.intersectionRatio>=u);e.trackVisibility&&typeof n.isVisible>"u"&&(n.isVisible=g),(a=i.get(n.target))==null||a.forEach(u=>{u(g,n)})})},e);p=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:t,observer:c,elements:i},I.set(t,o)}return o}function ae(e,t,o={},i=re){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const a=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:typeof o.threshold=="number"?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:p,observer:c,elements:l}=ne(o),n=l.get(e)||[];return l.has(e)||l.set(e,n),n.push(t),c.observe(e),function(){n.splice(n.indexOf(t),1),n.length===0&&(l.delete(e),c.unobserve(e)),l.size===0&&(c.disconnect(),I.delete(p))}}function oe({threshold:e,delay:t,trackVisibility:o,rootMargin:i,root:p,triggerOnce:c,skip:l,initialInView:n,fallbackInView:a,onChange:g}={}){var u;const[j,N]=d.useState(null),f=d.useRef(g),[w,m]=d.useState({inView:!!n,entry:void 0});f.current=g,d.useEffect(()=>{if(l||!j)return;let v;return v=ae(j,(E,y)=>{m({inView:E,entry:y}),f.current&&f.current(E,y),y.isIntersecting&&c&&v&&(v(),v=void 0)},{root:p,rootMargin:i,threshold:e,trackVisibility:o,delay:t},a),()=>{v&&v()}},[Array.isArray(e)?e.toString():e,j,p,i,c,l,o,a,t]);const F=(u=w.entry)==null?void 0:u.target,h=d.useRef(void 0);!j&&F&&!c&&!l&&h.current!==F&&(h.current=F,m({inView:!!n,entry:void 0}));const x=[N,w.inView,w.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const _=d.memo(({field:e})=>!e||typeof e!="object"||!e.label?(console.error("Invalid field for LabelRenderer:",e),null):r.jsxs("div",{className:"flex gap-3",children:[r.jsx(C,{htmlFor:`${e.type}-${e.name}`,children:e.label}),e.tooltip&&r.jsx(H,{children:r.jsxs(Q,{children:[r.jsx(W,{onClick:t=>t.preventDefault(),children:r.jsx(M,{iconNode:Y,className:"text-primary w-5 h-5 cursor-pointer"})}),r.jsx(Z,{align:"center",side:"top",className:"z-[1002]",children:r.jsx("p",{children:e.tooltip})})]})})]})),ie=d.memo(({field:e,value:t,onChange:o,processing:i,notFound:p,search:c})=>{if(!e||typeof e!="object"||!e.name||!e.type)return console.error("Invalid field for LazyField:",e),r.jsx("div",{className:"text-red-500",children:"Error: Invalid field data"});const[l,n]=oe({triggerOnce:!0,rootMargin:"100px 0px"});return r.jsx("div",{ref:l,className:"grid gap-4 w-full",children:n?r.jsx(U,{field:e,value:t,onChange:o,notFound:p,search:c,processing:i}):r.jsx(G,{className:"w-full h-[250px] rounded-sm"})})}),ge=({page:e,catalog:t,callback:o,openNewWindow:i,openNewWindowLabel:p,isNavigation:c,DnavVisible:l,visibleLable:n})=>{const{fields:a,btnBack:g,view:u,notFound:j}=e.props,{data:N,setData:f,post:w,processing:m,transform:F}=J({...Object.fromEntries((a||[]).map(s=>[s.name,s.value??void 0])),jsonPopupCatalog:t}),[h,x]=d.useState(!1),[v,E]=d.useState(i??!1),[y,P]=d.useState(l??!1);d.useEffect(()=>(E(i??!1),$(),f({...Object.fromEntries((a||[]).map(s=>[s.name,s.value??void 0])),jsonPopupCatalog:t}),()=>$()),[a,t,i,f]);const R=d.useCallback((s,b)=>{f(s,b)},[f]);if(!Array.isArray(a))return console.error("Fields is not an array:",a),r.jsx("div",{className:"p-4 text-red-500",children:"Error: Fields data is invalid"});if(a.length===0)return console.warn("Fields array is empty"),r.jsx("div",{className:"p-4 text-gray-500",children:"No fields to display"});const L=a.filter(s=>!s||typeof s!="object"||!s.name||!s.type||!s.label);if(L.length>0)return console.error("Invalid fields found:",L),r.jsx("div",{className:"p-4 text-red-500",children:"Error: Some fields are missing required properties (name, type, label)"});const D=async s=>{if(s.preventDefault(),t){x(!0);const b=await ee.post(e.props.postLink,N);b.status===200&&o&&(c?o(b.data.record,v,y):o(b.data.record))}else{const b=localStorage.getItem("backUrl");F(q=>({...q,redirectUrl:b??""})),w(e.props.postLink,{onSuccess:()=>{localStorage.setItem("backUrl","")}})}};return r.jsxs("div",{className:"p-4 w-full",children:[!t&&r.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[r.jsx(S,{className:"w-fit",asChild:!0,children:r.jsxs(K,{href:g.link,preserveScroll:!0,children:[r.jsx(M,{iconNode:X}),g.title]})}),r.jsxs(S,{variant:"green",type:"submit",className:"w-fit lg:hidden",form:"addUserForm",disabled:h||m||e.props.view||T(),children:[h||m&&r.jsx(B,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]}),r.jsx("form",{id:"addUserForm",onSubmit:D,className:u?"cursor-not-allowed":"",children:r.jsxs("div",{className:`grid lg:grid-cols-[1fr_150px] gap-4 max-w-[1144px] pb-8 ${t?"lg:grid-cols-[1fr_200px]":"lg:grid-cols-[1fr_150px]"}`,children:[r.jsx("div",{className:"flex flex-col gap-10",children:a.map(s=>r.jsx("div",{className:`grid gap-4 w-full ${u?"pointer-events-none":""}`,children:s.type==="markdown"||s.type==="table"||s.type==="jsonEditor"||s.type==="codeEditor"||s.type==="geoJson"?r.jsxs(r.Fragment,{children:[r.jsx(_,{field:s}),r.jsx(O,{message:z(`${s.type}-${s.name}`)}),r.jsx(ie,{field:s,value:N[s.name],onChange:R,processing:h||m||u,notFound:j,search:e.props.search})]}):r.jsxs(r.Fragment,{children:[r.jsx(_,{field:s}),r.jsx(O,{message:z(`${s.type}-${s.name}`)}),r.jsx(U,{field:s,value:N[s.name],onChange:R,processing:h||m||u,notFound:j,search:e.props.search})]})},s.name))}),r.jsxs("div",{className:`p-4 rounded-md h-fit sticky shadow ${t?"top-0 grid gap-4":"top-[84px] hidden lg:block"}`,children:[c&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex gap-4 items-center",children:[r.jsx(A,{id:"targetBlank",checked:v,onCheckedChange:s=>E(!!s),className:"cursor-pointer size-5"}),r.jsx(C,{htmlFor:"targetBlank",children:p})]}),r.jsxs("div",{className:"flex gap-4 items-center",children:[r.jsx(A,{id:"visible",checked:y,onCheckedChange:s=>P(!!s),className:"cursor-pointer size-5"}),r.jsx(C,{htmlFor:"visible",children:n})]})]}),r.jsxs(S,{variant:"green",type:"submit",className:"w-fit",disabled:h||m||e.props.view||T(),children:[(h||m)&&r.jsx(B,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]})]})})]})};export{_ as LabelRenderer,ie as LazyField,ge as default};
1
+ import{X as J,bx as $,j as r,B as S,W as K,aE as X,by as T,L as B,bz as z,g as A,b as C,m as G,K as H,M as Q,N as W,aF as Y,O as Z,h as ee}from"./app.js";import{r as d}from"./monaco-ICtx6xoc.js";import{Icon as M}from"./icon-DpkedrXG.js";import{F as U}from"./field-renderer-BTbMeyVH.js";import O from"./input-error-CmXZF6xy.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";import"./dynamic-controls-BOYmRX_z.js";var I=new Map,k=new WeakMap,V=0,re=void 0;function se(e){return e?(k.has(e)||(V+=1,k.set(e,V.toString())),k.get(e)):"0"}function te(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?se(e.root):e[t]}`).toString()}function ne(e){const t=te(e);let o=I.get(t);if(!o){const i=new Map;let p;const c=new IntersectionObserver(l=>{l.forEach(n=>{var a;const g=n.isIntersecting&&p.some(u=>n.intersectionRatio>=u);e.trackVisibility&&typeof n.isVisible>"u"&&(n.isVisible=g),(a=i.get(n.target))==null||a.forEach(u=>{u(g,n)})})},e);p=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:t,observer:c,elements:i},I.set(t,o)}return o}function ae(e,t,o={},i=re){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const a=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:typeof o.threshold=="number"?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:p,observer:c,elements:l}=ne(o),n=l.get(e)||[];return l.has(e)||l.set(e,n),n.push(t),c.observe(e),function(){n.splice(n.indexOf(t),1),n.length===0&&(l.delete(e),c.unobserve(e)),l.size===0&&(c.disconnect(),I.delete(p))}}function oe({threshold:e,delay:t,trackVisibility:o,rootMargin:i,root:p,triggerOnce:c,skip:l,initialInView:n,fallbackInView:a,onChange:g}={}){var u;const[j,N]=d.useState(null),f=d.useRef(g),[w,m]=d.useState({inView:!!n,entry:void 0});f.current=g,d.useEffect(()=>{if(l||!j)return;let v;return v=ae(j,(E,y)=>{m({inView:E,entry:y}),f.current&&f.current(E,y),y.isIntersecting&&c&&v&&(v(),v=void 0)},{root:p,rootMargin:i,threshold:e,trackVisibility:o,delay:t},a),()=>{v&&v()}},[Array.isArray(e)?e.toString():e,j,p,i,c,l,o,a,t]);const F=(u=w.entry)==null?void 0:u.target,h=d.useRef(void 0);!j&&F&&!c&&!l&&h.current!==F&&(h.current=F,m({inView:!!n,entry:void 0}));const x=[N,w.inView,w.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const _=d.memo(({field:e})=>!e||typeof e!="object"||!e.label?(console.error("Invalid field for LabelRenderer:",e),null):r.jsxs("div",{className:"flex gap-3",children:[r.jsx(C,{htmlFor:`${e.type}-${e.name}`,children:e.label}),e.tooltip&&r.jsx(H,{children:r.jsxs(Q,{children:[r.jsx(W,{onClick:t=>t.preventDefault(),children:r.jsx(M,{iconNode:Y,className:"text-primary w-5 h-5 cursor-pointer"})}),r.jsx(Z,{align:"center",side:"top",className:"z-[1002]",children:r.jsx("p",{children:e.tooltip})})]})})]})),ie=d.memo(({field:e,value:t,onChange:o,processing:i,notFound:p,search:c})=>{if(!e||typeof e!="object"||!e.name||!e.type)return console.error("Invalid field for LazyField:",e),r.jsx("div",{className:"text-red-500",children:"Error: Invalid field data"});const[l,n]=oe({triggerOnce:!0,rootMargin:"100px 0px"});return r.jsx("div",{ref:l,className:"grid gap-4 w-full",children:n?r.jsx(U,{field:e,value:t,onChange:o,notFound:p,search:c,processing:i}):r.jsx(G,{className:"w-full h-[250px] rounded-sm"})})}),ge=({page:e,catalog:t,callback:o,openNewWindow:i,openNewWindowLabel:p,isNavigation:c,DnavVisible:l,visibleLable:n})=>{const{fields:a,btnBack:g,view:u,notFound:j}=e.props,{data:N,setData:f,post:w,processing:m,transform:F}=J({...Object.fromEntries((a||[]).map(s=>[s.name,s.value??void 0])),jsonPopupCatalog:t}),[h,x]=d.useState(!1),[v,E]=d.useState(i??!1),[y,P]=d.useState(l??!1);d.useEffect(()=>(E(i??!1),$(),f({...Object.fromEntries((a||[]).map(s=>[s.name,s.value??void 0])),jsonPopupCatalog:t}),()=>$()),[a,t,i,f]);const R=d.useCallback((s,b)=>{f(s,b)},[f]);if(!Array.isArray(a))return console.error("Fields is not an array:",a),r.jsx("div",{className:"p-4 text-red-500",children:"Error: Fields data is invalid"});if(a.length===0)return console.warn("Fields array is empty"),r.jsx("div",{className:"p-4 text-gray-500",children:"No fields to display"});const L=a.filter(s=>!s||typeof s!="object"||!s.name||!s.type||!s.label);if(L.length>0)return console.error("Invalid fields found:",L),r.jsx("div",{className:"p-4 text-red-500",children:"Error: Some fields are missing required properties (name, type, label)"});const D=async s=>{if(s.preventDefault(),t){x(!0);const b=await ee.post(e.props.postLink,N);b.status===200&&o&&(c?o(b.data.record,v,y):o(b.data.record))}else{const b=localStorage.getItem("backUrl");F(q=>({...q,redirectUrl:b??""})),w(e.props.postLink,{onSuccess:()=>{localStorage.setItem("backUrl","")}})}};return r.jsxs("div",{className:"p-4 w-full",children:[!t&&r.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[r.jsx(S,{className:"w-fit",asChild:!0,children:r.jsxs(K,{href:g.link,preserveScroll:!0,children:[r.jsx(M,{iconNode:X}),g.title]})}),r.jsxs(S,{variant:"green",type:"submit",className:"w-fit lg:hidden",form:"addUserForm",disabled:h||m||e.props.view||T(),children:[h||m&&r.jsx(B,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]}),r.jsx("form",{id:"addUserForm",onSubmit:D,className:u?"cursor-not-allowed":"",children:r.jsxs("div",{className:`grid lg:grid-cols-[1fr_150px] gap-4 max-w-[1144px] pb-8 ${t?"lg:grid-cols-[1fr_200px]":"lg:grid-cols-[1fr_150px]"}`,children:[r.jsx("div",{className:"flex flex-col gap-10",children:a.map(s=>r.jsx("div",{className:`grid gap-4 w-full ${u?"pointer-events-none":""}`,children:s.type==="markdown"||s.type==="table"||s.type==="jsonEditor"||s.type==="codeEditor"||s.type==="geoJson"?r.jsxs(r.Fragment,{children:[r.jsx(_,{field:s}),r.jsx(O,{message:z(`${s.type}-${s.name}`)}),r.jsx(ie,{field:s,value:N[s.name],onChange:R,processing:h||m||u,notFound:j,search:e.props.search})]}):r.jsxs(r.Fragment,{children:[r.jsx(_,{field:s}),r.jsx(O,{message:z(`${s.type}-${s.name}`)}),r.jsx(U,{field:s,value:N[s.name],onChange:R,processing:h||m||u,notFound:j,search:e.props.search})]})},s.name))}),r.jsxs("div",{className:`p-4 rounded-md h-fit sticky shadow ${t?"top-0 grid gap-4":"top-[84px] hidden lg:block"}`,children:[c&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex gap-4 items-center",children:[r.jsx(A,{id:"targetBlank",checked:v,onCheckedChange:s=>E(!!s),className:"cursor-pointer size-5"}),r.jsx(C,{htmlFor:"targetBlank",children:p})]}),r.jsxs("div",{className:"flex gap-4 items-center",children:[r.jsx(A,{id:"visible",checked:y,onCheckedChange:s=>P(!!s),className:"cursor-pointer size-5"}),r.jsx(C,{htmlFor:"visible",children:n})]})]}),r.jsxs(S,{variant:"green",type:"submit",className:"w-fit",disabled:h||m||e.props.view||T(),children:[(h||m)&&r.jsx(B,{className:"h-4 w-4 animate-spin"}),e.props.btnSave.title]})]})]})})]})};export{_ as LabelRenderer,ie as LazyField,ge as default};
package/assets/app.js CHANGED
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group--iy-V9oU.js","./app-layout-gAiczU39.js","./app-shell-C8Cnr5Hy.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-CNGEOOHu.js","./nav-main-BqKm87JZ.js","./material-icon-DwkE6wKL.js","./app-sidebar-header-Bcpas2Np.js","./breadcrumbs-DSMzNYiS.js","./nav-user-DuCZNsZX.js","./user-info-BGQvqBmO.js","./user-menu-content-BDm88xaM.js","./theme-switcher-cgyA7_cO.js","./icon-DpkedrXG.js","./add-group-form-DMz0_Oo9.js","./add-user-BhIeyfat.js","./add-user-form-izlXhv2-.js","./input-error-CmXZF6xy.js","./add-DIKCYx3V.js","./add-form-uUiOWEy_.js","./field-renderer-BNQVfOir.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-CKLDJ5_F.js","./del-modal-DyIWFflP.js","./catalog-D4n6dpGl.css","./dashboard-BlhABz32.js","./dashboard-BOltB2Hq.css","./form-B9o4gWaF.js","./form-CAIoGuhZ.js","./home-CDLwQiex.js","./init-user-DaOvt0vG.js","./list-BmfYifvI.js","./list-table-BPpHDVPf.js","./pagination-render-io0M2m2O.js","./login-DR6fvKtm.js","./module-B3jhuqbE.js","./notification-B-57JQl_.js","./tabs-BhkFoerH.js","./register-hJD1ETdf.js","./welcome-CkCufpDB.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./add-group--iy-V9oU.js","./app-layout-gAiczU39.js","./app-shell-C8Cnr5Hy.js","./monaco-ICtx6xoc.js","./vendor-wzZzN_Jv.js","./jsoneditor-D95dIAP2.js","./handsontable-PVakPtJV.js","./app-sidebar-CNGEOOHu.js","./nav-main-BqKm87JZ.js","./material-icon-DwkE6wKL.js","./app-sidebar-header-Bcpas2Np.js","./breadcrumbs-DSMzNYiS.js","./nav-user-DuCZNsZX.js","./user-info-BGQvqBmO.js","./user-menu-content-BDm88xaM.js","./theme-switcher-cgyA7_cO.js","./icon-DpkedrXG.js","./add-group-form-DMz0_Oo9.js","./add-user-BhIeyfat.js","./add-user-form-izlXhv2-.js","./input-error-CmXZF6xy.js","./add-CohxwHV4.js","./add-form-jLwBgqxD.js","./field-renderer-BTbMeyVH.js","./dynamic-controls-BOYmRX_z.js","./field-renderer-CRNLShJD.css","./catalog-lfHtOKlW.js","./del-modal-DyIWFflP.js","./catalog-D4n6dpGl.css","./dashboard-BlhABz32.js","./dashboard-BOltB2Hq.css","./form-DEDPXI5l.js","./form-WmXKykFy.js","./home-BDd8zDuH.js","./init-user-DaOvt0vG.js","./list-BI8WFUxC.js","./list-table-BnxHpCFW.js","./pagination-render-io0M2m2O.js","./login-DR6fvKtm.js","./module-B3jhuqbE.js","./notification-B-57JQl_.js","./tabs-BhkFoerH.js","./register-hJD1ETdf.js","./welcome-CkCufpDB.js"])))=>i.map(i=>d[i]);
2
2
  import{g as Ju,s as ai,c as xd,i as kV,h as _Q,e as SQ,f as CQ,t as LQ,_ as yn}from"./jsoneditor-D95dIAP2.js";import{b as NQ,c as VP,r as vV,a as IQ}from"./vendor-wzZzN_Jv.js";import{r as g,e as ke,R as gV,F as AQ}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 EQ,ao as TQ,ap as RQ,aq as jQ,ar as DQ,as as qQ,at as zQ,au as $Q}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 vqe={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]:"第二值"};jQ();const yV={de:sqe,en:zQ,es:lqe,fr:dqe,it:uqe,ja:hqe,ko:pqe,nl:fqe,pl:yqe,pt:mqe,ru:kqe,zh:vqe},gqe=document.documentElement.lang,pK=yV[gqe]??yV.en;DQ(pK);const fK=({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(qQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:pK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx($Q,{data:k.data,...k},k.data))})},nze=Object.freeze(Object.defineProperty({__proto__:null,default:fK},Symbol.toStringTag,{value:"Module"})),Mqe=()=>{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},yK=({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}=Mqe(),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(AQ,{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":""}`})})},aze=Object.freeze(Object.defineProperty({__proto__:null,default:yK},Symbol.toStringTag,{value:"Module"})),mV=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(FW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(UW,{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":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[le&&M.jsx(le,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ye=>{ye.stopPropagation(),r||P(V)}})]},V)}),w==="multiple"&&C.length>m&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${C.length-m} more`,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:V=>{V.stopPropagation(),he()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[C.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ri,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:V=>{V.stopPropagation(),ae()}}),M.jsx(tz,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(oi,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):M.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[M.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:u}),M.jsx(oi,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(GW,{className:"w-auto p-0 z-[1003]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(vG,{placeholder:f,onKeyDown:z}),M.jsxs(gG,{children:[M.jsx(MG,{children:h}),M.jsx(xG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(wG,{onSelect:()=>P(V.value),className:"cursor-pointer",children:[M.jsx("div",{className:K("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",se?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:M.jsx(Uo,{className:"h-4 w-4 text-primary-foreground"})}),V.icon&&M.jsx(V.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:V.label})]},V.value)})}),M.jsx(bG,{})]})]})}),k>0&&C.length>0&&w==="multiple"&&M.jsx(ti,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});cz.displayName="MultiSelect";const oze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function xqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),window.axios=wt,window.sonner=PDe,Object.assign(window.UIComponents,{Avatar:bae,AvatarImage:wae,AvatarFallback:_ae,Badge:Cae,Breadcrumb:N9e,BreadcrumbList:I9e,BreadcrumbItem:A9e,BreadcrumbLink:E9e,BreadcrumbPage:T9e,BreadcrumbSeparator:R9e,BreadcrumbEllipsis:j9e,Button:PA,Calendar:xSe,Card:bSe,CardHeader:wSe,CardFooter:NSe,CardTitle:_Se,CardAction:CSe,CardDescription:SSe,CardContent:LSe,Checkbox:OSe,Collapsible:GSe,CollapsibleTrigger:ZSe,CollapsibleContent:WSe,Command:mq,CommandDialog:RLe,CommandInput:vG,CommandList:gG,CommandEmpty:MG,CommandGroup:xG,CommandItem:wG,CommandShortcut:jLe,CommandSeparator:bG,ContextMenu:uAe,ContextMenuTrigger:hAe,ContextMenuContent:gAe,ContextMenuItem:MAe,ContextMenuCheckboxItem:xAe,ContextMenuRadioItem:bAe,ContextMenuLabel:wAe,ContextMenuSeparator:_Ae,ContextMenuShortcut:SAe,ContextMenuGroup:pAe,ContextMenuPortal:fAe,ContextMenuSub:yAe,ContextMenuSubContent:vAe,ContextMenuSubTrigger:kAe,ContextMenuRadioGroup:mAe,Dialog:uG,DialogClose:ELe,DialogContent:fG,DialogDescription:kG,DialogFooter:TLe,DialogHeader:yG,DialogOverlay:pG,DialogPortal:hG,DialogTitle:mG,DialogTrigger:ALe,DialogStack:VZ,DialogStackTrigger:CAe,DialogStackOverlay:LAe,DialogStackBody:NAe,DialogStackContent:IAe,DialogStackTitle:AAe,DialogStackDescription:EAe,DialogStackHeader:TAe,DialogStackFooter:RAe,DialogStackNext:jAe,DialogStackPrevious:DAe,DropdownMenu:uEe,DropdownMenuPortal:hEe,DropdownMenuTrigger:pEe,DropdownMenuContent:fEe,DropdownMenuGroup:yEe,DropdownMenuLabel:MEe,DropdownMenuItem:mEe,DropdownMenuCheckboxItem:kEe,DropdownMenuRadioGroup:vEe,DropdownMenuRadioItem:gEe,DropdownMenuSeparator:xEe,DropdownMenuShortcut:bEe,DropdownMenuSub:wEe,DropdownMenuSubTrigger:_Ee,DropdownMenuSubContent:SEe,Input:lW,Label:NEe,Menubar:sTe,MenubarPortal:TW,MenubarMenu:lTe,MenubarTrigger:hTe,MenubarContent:pTe,MenubarGroup:dTe,MenubarSeparator:vTe,MenubarLabel:kTe,MenubarItem:fTe,MenubarShortcut:gTe,MenubarCheckboxItem:yTe,MenubarRadioGroup:uTe,MenubarRadioItem:mTe,MenubarSub:MTe,MenubarSubTrigger:xTe,MenubarSubContent:bTe,Pagination:wTe,PaginationContent:_Te,PaginationLink:Qq,PaginationItem:STe,PaginationPrevious:CTe,PaginationNext:LTe,PaginationEllipsis:NTe,Popover:FW,PopoverTrigger:UW,PopoverContent:GW,PopoverAnchor:VTe,Select:LRe,SelectContent:ERe,SelectGroup:NRe,SelectItem:RRe,SelectLabel:TRe,SelectScrollDownButton:SX,SelectScrollUpButton:_X,SelectSeparator:jRe,SelectTrigger:ARe,SelectValue:IRe,Separator:tz,Sheet:LX,SheetTrigger:ORe,SheetClose:PRe,SheetContent:NX,SheetHeader:IX,SheetFooter:VRe,SheetTitle:AX,SheetDescription:EX,Sidebar:gje,SidebarContent:Lje,SidebarFooter:Sje,SidebarGroup:Nje,SidebarGroupAction:Aje,SidebarGroupContent:Eje,SidebarGroupLabel:Ije,SidebarHeader:_je,SidebarInput:wje,SidebarInset:bje,SidebarMenu:Tje,SidebarMenuAction:qje,SidebarMenuBadge:zje,SidebarMenuButton:Dje,SidebarMenuItem:Rje,SidebarMenuSkeleton:$je,SidebarMenuSub:Oje,SidebarMenuSubButton:Hje,SidebarMenuSubItem:Pje,SidebarProvider:vje,SidebarRail:xje,SidebarSeparator:Cje,SidebarTrigger:Mje,useSidebar:E2,Skeleton:ID,Slider:cDe,Toaster:HDe,Switch:WDe,Table:XDe,TableHeader:KDe,TableBody:YDe,TableFooter:QDe,TableHead:eqe,TableRow:JDe,TableCell:tqe,TableCaption:nqe,Textarea:aqe,Tooltip:HX,TooltipTrigger:BX,TooltipContent:VX,TooltipProvider:oz,VanillaJSONEditor:qD}),Object.assign(window.JSComponents,{VanillaJSONEditor:qD,HandsonTable:fK,MonacoEditor:yK,MultiSelect:cz})}const{createInertiaApp:bqe}=LF;window.React=ke;window.ReactDOM=e2;window.InertiajsReact=LF;window.LucideReact=L9e;xqe();async function wqe(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}`)}bqe({title:e=>`${e}`,resolve:e=>wqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>yn(()=>import("./add-group--iy-V9oU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./pages/add-user.tsx":()=>yn(()=>import("./add-user-BhIeyfat.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url),"./pages/add.tsx":()=>yn(()=>import("./add-DIKCYx3V.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,22,23,24,25,20]),import.meta.url),"./pages/catalog.tsx":()=>yn(()=>import("./catalog-CKLDJ5_F.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,27,22,23,24,25,20,28]),import.meta.url),"./pages/dashboard.tsx":()=>yn(()=>import("./dashboard-BlhABz32.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,30]),import.meta.url),"./pages/form.tsx":()=>yn(()=>import("./form-B9o4gWaF.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,32,22,23,24,25,20]),import.meta.url),"./pages/home.tsx":()=>yn(()=>import("./home-CDLwQiex.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-BmfYifvI.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,36,27,37]),import.meta.url),"./pages/login.tsx":()=>yn(()=>import("./login-DR6fvKtm.js"),__vite__mapDeps([38,16,5,4,3,6,20]),import.meta.url),"./pages/module.tsx":()=>yn(()=>import("./module-B3jhuqbE.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-B-57JQl_.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url),"./pages/register.tsx":()=>yn(()=>import("./register-hJD1ETdf.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>yn(()=>import("./welcome-CkCufpDB.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),setup({el:e,App:n,props:o}){bne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{En as $,MAe as A,PA as B,Go as C,VZ as D,j5 as E,bSe as F,wSe as G,_Se as H,lW as I,NSe as J,oz as K,Cs as L,HX as M,BX as N,VX as O,nw as P,WDe as Q,CAe as R,LRe as S,HDe as T,AAe as U,une as V,pne as W,xF as X,Yqe as Y,cI as Z,K as _,T5 as a,wU as a$,Rx as a0,Ap as a1,XDe as a2,KDe as a3,JDe as a4,eqe as a5,YDe as a6,tqe as a7,Ji as a8,uG as a9,KG as aA,YG as aB,ge as aC,xn as aD,lb as aE,P8 as aF,vje as aG,uEe as aH,Uf as aI,mEe as aJ,xEe as aK,Mje as aL,gje as aM,_je as aN,Tje as aO,Rje as aP,sTe as aQ,lTe as aR,hTe as aS,Dje as aT,_4 as aU,pTe as aV,MTe as aW,xTe as aX,bTe as aY,fTe as aZ,Nje as a_,fG as aa,yG as ab,mG as ac,bje as ad,Mqe as ae,iz as af,R7 as ag,y8 as ah,Vw as ai,Uo as aj,kN as ak,nl as al,ri as am,TLe as an,ELe as ao,Pp as ap,bp as aq,Cp as ar,ALe as as,ys as at,g2 as au,dn as av,Jt as aw,bt as ax,be as ay,oE as az,NEe as b,ZSe as b0,CU as b1,Oje as b2,Pje as b3,Hje as b4,Lje as b5,Sje as b6,N9e as b7,I9e as b8,A9e as b9,cz as bA,cDe as bB,aqe as bC,Xqe as bD,jp as bE,Yu as bF,H1 as bG,Kw as bH,wTe as bI,_Te as bJ,STe as bK,Qq as bL,CTe as bM,LTe as bN,tze as bO,nze as bP,aze as bQ,oze as bR,T9e as ba,E9e as bb,R9e as bc,FW as bd,UW as be,Il as bf,Dm as bg,GW as bh,xSe as bi,Ije as bj,Eje as bk,GSe as bl,WSe as bm,E2 as bn,FRe as bo,XC as bp,Wx as bq,YC as br,bae as bs,wae as bt,_ae as bu,MEe as bv,c7 as bw,eze as bx,Jqe as by,Qqe as bz,ARe as c,IRe as d,ERe as e,RRe as f,OSe as g,wt as h,LAe as i,M as j,NAe as k,IAe as l,ID as m,w9 as n,yf as o,UZ as p,pEe as q,CF as r,Ki as s,NDe as t,gF as u,fEe as v,yEe as w,uAe as x,hAe as y,gAe as z};
8065
+ */const vqe={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]:"第二值"};jQ();const yV={de:sqe,en:zQ,es:lqe,fr:dqe,it:uqe,ja:hqe,ko:pqe,nl:fqe,pl:yqe,pt:mqe,ru:kqe,zh:vqe},gqe=document.documentElement.lang,pK=yV[gqe]??yV.en;DQ(pK);const fK=({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(qQ,{className:r?"pointer-events-none opacity-50":"",themeName:d,language:pK.languageCode,ref:f,...e,afterChange:h,children:e.columns.map(k=>M.jsx($Q,{data:k.data,...k},k.data))})},nze=Object.freeze(Object.defineProperty({__proto__:null,default:fK},Symbol.toStringTag,{value:"Module"})),Mqe=()=>{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},yK=({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}=Mqe(),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(AQ,{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":""}`})})},aze=Object.freeze(Object.defineProperty({__proto__:null,default:yK},Symbol.toStringTag,{value:"Module"})),mV=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(FW,{open:A,onOpenChange:T,modal:y,children:[M.jsx(UW,{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":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[le&&M.jsx(le,{className:"h-4 w-4 mr-2"}),se==null?void 0:se.label,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ye=>{ye.stopPropagation(),r||P(V)}})]},V)}),w==="multiple"&&C.length>m&&M.jsxs("div",{className:K("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",q?"animate-bounce":"",mV({variant:o})),style:{animationDuration:`${k}s`},children:[`+ ${C.length-m} more`,M.jsx(Mr,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:V=>{V.stopPropagation(),he()}})]})]}),M.jsxs("div",{className:"flex items-center justify-between",children:[C.length>0&&M.jsxs(M.Fragment,{children:[M.jsx(ri,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:V=>{V.stopPropagation(),ae()}}),M.jsx(tz,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),M.jsx(oi,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):M.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[M.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:u}),M.jsx(oi,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),M.jsx(GW,{className:"w-auto p-0 z-[1003]",align:"start",onEscapeKeyDown:()=>T(!1),children:M.jsxs(mq,{children:[M.jsx(vG,{placeholder:f,onKeyDown:z}),M.jsxs(gG,{children:[M.jsx(MG,{children:h}),M.jsx(xG,{children:e.map(V=>{const se=C.includes(V.value);return M.jsxs(wG,{onSelect:()=>P(V.value),className:"cursor-pointer",children:[M.jsx("div",{className:K("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",se?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:M.jsx(Uo,{className:"h-4 w-4 text-primary-foreground"})}),V.icon&&M.jsx(V.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),M.jsx("span",{children:V.label})]},V.value)})}),M.jsx(bG,{})]})]})}),k>0&&C.length>0&&w==="multiple"&&M.jsx(ti,{className:K("cursor-pointer my-2 text-foreground bg-background w-3 h-3",q?"":"text-muted-foreground"),onClick:()=>$(!q)})]})});cz.displayName="MultiSelect";const oze=Object.freeze(Object.defineProperty({__proto__:null,default:cz},Symbol.toStringTag,{value:"Module"}));function xqe(){window.UIComponents??(window.UIComponents={}),window.JSComponents??(window.JSComponents={}),window.axios=wt,window.sonner=PDe,Object.assign(window.UIComponents,{Avatar:bae,AvatarImage:wae,AvatarFallback:_ae,Badge:Cae,Breadcrumb:N9e,BreadcrumbList:I9e,BreadcrumbItem:A9e,BreadcrumbLink:E9e,BreadcrumbPage:T9e,BreadcrumbSeparator:R9e,BreadcrumbEllipsis:j9e,Button:PA,Calendar:xSe,Card:bSe,CardHeader:wSe,CardFooter:NSe,CardTitle:_Se,CardAction:CSe,CardDescription:SSe,CardContent:LSe,Checkbox:OSe,Collapsible:GSe,CollapsibleTrigger:ZSe,CollapsibleContent:WSe,Command:mq,CommandDialog:RLe,CommandInput:vG,CommandList:gG,CommandEmpty:MG,CommandGroup:xG,CommandItem:wG,CommandShortcut:jLe,CommandSeparator:bG,ContextMenu:uAe,ContextMenuTrigger:hAe,ContextMenuContent:gAe,ContextMenuItem:MAe,ContextMenuCheckboxItem:xAe,ContextMenuRadioItem:bAe,ContextMenuLabel:wAe,ContextMenuSeparator:_Ae,ContextMenuShortcut:SAe,ContextMenuGroup:pAe,ContextMenuPortal:fAe,ContextMenuSub:yAe,ContextMenuSubContent:vAe,ContextMenuSubTrigger:kAe,ContextMenuRadioGroup:mAe,Dialog:uG,DialogClose:ELe,DialogContent:fG,DialogDescription:kG,DialogFooter:TLe,DialogHeader:yG,DialogOverlay:pG,DialogPortal:hG,DialogTitle:mG,DialogTrigger:ALe,DialogStack:VZ,DialogStackTrigger:CAe,DialogStackOverlay:LAe,DialogStackBody:NAe,DialogStackContent:IAe,DialogStackTitle:AAe,DialogStackDescription:EAe,DialogStackHeader:TAe,DialogStackFooter:RAe,DialogStackNext:jAe,DialogStackPrevious:DAe,DropdownMenu:uEe,DropdownMenuPortal:hEe,DropdownMenuTrigger:pEe,DropdownMenuContent:fEe,DropdownMenuGroup:yEe,DropdownMenuLabel:MEe,DropdownMenuItem:mEe,DropdownMenuCheckboxItem:kEe,DropdownMenuRadioGroup:vEe,DropdownMenuRadioItem:gEe,DropdownMenuSeparator:xEe,DropdownMenuShortcut:bEe,DropdownMenuSub:wEe,DropdownMenuSubTrigger:_Ee,DropdownMenuSubContent:SEe,Input:lW,Label:NEe,Menubar:sTe,MenubarPortal:TW,MenubarMenu:lTe,MenubarTrigger:hTe,MenubarContent:pTe,MenubarGroup:dTe,MenubarSeparator:vTe,MenubarLabel:kTe,MenubarItem:fTe,MenubarShortcut:gTe,MenubarCheckboxItem:yTe,MenubarRadioGroup:uTe,MenubarRadioItem:mTe,MenubarSub:MTe,MenubarSubTrigger:xTe,MenubarSubContent:bTe,Pagination:wTe,PaginationContent:_Te,PaginationLink:Qq,PaginationItem:STe,PaginationPrevious:CTe,PaginationNext:LTe,PaginationEllipsis:NTe,Popover:FW,PopoverTrigger:UW,PopoverContent:GW,PopoverAnchor:VTe,Select:LRe,SelectContent:ERe,SelectGroup:NRe,SelectItem:RRe,SelectLabel:TRe,SelectScrollDownButton:SX,SelectScrollUpButton:_X,SelectSeparator:jRe,SelectTrigger:ARe,SelectValue:IRe,Separator:tz,Sheet:LX,SheetTrigger:ORe,SheetClose:PRe,SheetContent:NX,SheetHeader:IX,SheetFooter:VRe,SheetTitle:AX,SheetDescription:EX,Sidebar:gje,SidebarContent:Lje,SidebarFooter:Sje,SidebarGroup:Nje,SidebarGroupAction:Aje,SidebarGroupContent:Eje,SidebarGroupLabel:Ije,SidebarHeader:_je,SidebarInput:wje,SidebarInset:bje,SidebarMenu:Tje,SidebarMenuAction:qje,SidebarMenuBadge:zje,SidebarMenuButton:Dje,SidebarMenuItem:Rje,SidebarMenuSkeleton:$je,SidebarMenuSub:Oje,SidebarMenuSubButton:Hje,SidebarMenuSubItem:Pje,SidebarProvider:vje,SidebarRail:xje,SidebarSeparator:Cje,SidebarTrigger:Mje,useSidebar:E2,Skeleton:ID,Slider:cDe,Toaster:HDe,Switch:WDe,Table:XDe,TableHeader:KDe,TableBody:YDe,TableFooter:QDe,TableHead:eqe,TableRow:JDe,TableCell:tqe,TableCaption:nqe,Textarea:aqe,Tooltip:HX,TooltipTrigger:BX,TooltipContent:VX,TooltipProvider:oz,VanillaJSONEditor:qD}),Object.assign(window.JSComponents,{VanillaJSONEditor:qD,HandsonTable:fK,MonacoEditor:yK,MultiSelect:cz})}const{createInertiaApp:bqe}=LF;window.React=ke;window.ReactDOM=e2;window.InertiajsReact=LF;window.LucideReact=L9e;xqe();async function wqe(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}`)}bqe({title:e=>`${e}`,resolve:e=>wqe(`./pages/${e}.tsx`,Object.assign({"./pages/add-group.tsx":()=>yn(()=>import("./add-group--iy-V9oU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./pages/add-user.tsx":()=>yn(()=>import("./add-user-BhIeyfat.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url),"./pages/add.tsx":()=>yn(()=>import("./add-CohxwHV4.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-lfHtOKlW.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-BlhABz32.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,30]),import.meta.url),"./pages/form.tsx":()=>yn(()=>import("./form-DEDPXI5l.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-BDd8zDuH.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-BI8WFUxC.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-B3jhuqbE.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-B-57JQl_.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,41]),import.meta.url),"./pages/register.tsx":()=>yn(()=>import("./register-hJD1ETdf.js"),__vite__mapDeps([42,3,4,20,5,6]),import.meta.url),"./pages/welcome.tsx":()=>yn(()=>import("./welcome-CkCufpDB.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),setup({el:e,App:n,props:o}){bne.createRoot(e).render(M.jsx(n,{...o}))},progress:{color:"#0f4898"}});export{En as $,MAe as A,PA as B,Go as C,VZ as D,j5 as E,bSe as F,wSe as G,_Se as H,lW as I,NSe as J,oz as K,Cs as L,HX as M,BX as N,VX as O,nw as P,WDe as Q,CAe as R,LRe as S,HDe as T,AAe as U,une as V,pne as W,xF as X,Yqe as Y,cI as Z,K as _,T5 as a,wU as a$,Rx as a0,Ap as a1,XDe as a2,KDe as a3,JDe as a4,eqe as a5,YDe as a6,tqe as a7,Ji as a8,uG as a9,KG as aA,YG as aB,ge as aC,xn as aD,lb as aE,P8 as aF,vje as aG,uEe as aH,Uf as aI,mEe as aJ,xEe as aK,Mje as aL,gje as aM,_je as aN,Tje as aO,Rje as aP,sTe as aQ,lTe as aR,hTe as aS,Dje as aT,_4 as aU,pTe as aV,MTe as aW,xTe as aX,bTe as aY,fTe as aZ,Nje as a_,fG as aa,yG as ab,mG as ac,bje as ad,Mqe as ae,iz as af,R7 as ag,y8 as ah,Vw as ai,Uo as aj,kN as ak,nl as al,ri as am,TLe as an,ELe as ao,Pp as ap,bp as aq,Cp as ar,ALe as as,ys as at,g2 as au,dn as av,Jt as aw,bt as ax,be as ay,oE as az,NEe as b,ZSe as b0,CU as b1,Oje as b2,Pje as b3,Hje as b4,Lje as b5,Sje as b6,N9e as b7,I9e as b8,A9e as b9,cz as bA,cDe as bB,aqe as bC,Xqe as bD,jp as bE,Yu as bF,H1 as bG,Kw as bH,wTe as bI,_Te as bJ,STe as bK,Qq as bL,CTe as bM,LTe as bN,tze as bO,nze as bP,aze as bQ,oze as bR,T9e as ba,E9e as bb,R9e as bc,FW as bd,UW as be,Il as bf,Dm as bg,GW as bh,xSe as bi,Ije as bj,Eje as bk,GSe as bl,WSe as bm,E2 as bn,FRe as bo,XC as bp,Wx as bq,YC as br,bae as bs,wae as bt,_ae as bu,MEe as bv,c7 as bw,eze as bx,Jqe as by,Qqe as bz,ARe as c,IRe as d,ERe as e,RRe as f,OSe as g,wt as h,LAe as i,M as j,NAe as k,IAe as l,ID as m,w9 as n,yf as o,UZ as p,pEe as q,CF as r,Ki as s,NDe as t,gF as u,fEe as v,yEe as w,uAe as x,hAe as y,gAe as z};