adminizer 4.2.0-build.44 → 4.2.0-build.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/assets/{VanillaJSONEditor-DfRefswH.js → VanillaJSONEditor-XGIlS4LL.js} +1 -1
  2. package/assets/add-BzeOQ-DB.js +1 -0
  3. package/assets/add-form-BLdLojfl.js +1 -0
  4. package/assets/add-group-Bx2s4UXM.js +1 -0
  5. package/assets/add-group-form-_VEBFz_S.js +1 -0
  6. package/assets/add-user-C3BY-sey.js +1 -0
  7. package/assets/add-user-form-BFAFyXuz.js +1 -0
  8. package/assets/app-layout-NMKA6xAa.js +1 -0
  9. package/assets/{app-shell-C1wDrRCe.js → app-shell-Dd-kA5uc.js} +1 -1
  10. package/assets/app-sidebar-C4Y6TSY3.js +1 -0
  11. package/assets/app-sidebar-header-DQnbMxfM.js +1 -0
  12. package/assets/app.js +7844 -74
  13. package/assets/{breadcrumbs-BVZtAG3J.js → breadcrumbs-D0gGjNVI.js} +1 -1
  14. package/assets/{catalog-CvJMAtEd.js → catalog-CEVSwmj8.js} +5 -15
  15. package/assets/{dashboard-Zsh-5yN2.js → dashboard-jLbWzL7K.js} +2 -2
  16. package/assets/date-picker-SAfAWPoh.js +1 -0
  17. package/assets/del-modal-Dj3n8iVJ.js +1 -0
  18. package/assets/{field-renderer-Dgj1S2Vi.js → field-renderer-C7qCVvAC.js} +3 -3
  19. package/assets/form-CYsLdORv.js +1 -0
  20. package/assets/form-DjAQC5zI.js +1 -0
  21. package/assets/{geo-json-vodY1YtH.js → geo-json-XGenv_Sy.js} +2 -17
  22. package/assets/{handsontable-C-ThjbaJ.js → handsontable-Dxb-hF7-.js} +1 -1
  23. package/assets/home-DfUM0yKC.js +2 -0
  24. package/assets/{icon-B-D8X0jg.js → icon-DQL8h8HI.js} +1 -1
  25. package/assets/init-user-DZtnQ7VL.js +1 -0
  26. package/assets/{input-error-F1DL-Fx6.js → input-error-BztTAmHq.js} +1 -1
  27. package/assets/list-B1FodBkq.js +1 -0
  28. package/assets/list-table-Du8TTXit.js +22 -0
  29. package/assets/login-2THGmUHc.js +1 -0
  30. package/assets/manifest.json +67 -133
  31. package/assets/{material-icon-DeSoGIhT.js → material-icon-CPvFwV5P.js} +1 -1
  32. package/assets/module-D9Jtygk_.js +1 -0
  33. package/assets/multi-select-e4PqgWYn.js +1 -0
  34. package/assets/{nav-footer-DQwIyd7c.js → nav-footer-B7wjmsPb.js} +1 -1
  35. package/assets/nav-main-Cx1BkIzi.js +1 -0
  36. package/assets/nav-user-BWl2j-y-.js +1 -0
  37. package/assets/pagination-render-D6MBqi0B.js +1 -0
  38. package/assets/register-Dks3YdiZ.js +1 -0
  39. package/assets/user-info-DTsggabP.js +1 -0
  40. package/assets/user-menu-content-Dnh2qpwQ.js +1 -0
  41. package/assets/welcome-HFROxPwP.js +1 -0
  42. package/package.json +1 -1
  43. package/assets/add-DujD3Z0j.js +0 -1
  44. package/assets/add-form-Ch5HOaI3.js +0 -1
  45. package/assets/add-group-form-CzjFRYQe.js +0 -1
  46. package/assets/add-group-xKUhiREd.js +0 -1
  47. package/assets/add-user-DpTQyN0Z.js +0 -1
  48. package/assets/add-user-form-DmgL9A2G.js +0 -1
  49. package/assets/app-layout-Dn8y3paC.js +0 -1
  50. package/assets/app-sidebar-BisOEG_p.js +0 -1
  51. package/assets/app-sidebar-header-CL1OSuV8.js +0 -11
  52. package/assets/chevrons-up-down-D3t3UGV7.js +0 -6
  53. package/assets/date-picker-DKdT6XTZ.js +0 -6
  54. package/assets/del-modal-DZ5wZWad.js +0 -11
  55. package/assets/form-Bgv171J2.js +0 -1
  56. package/assets/form-DcfEHbPb.js +0 -1
  57. package/assets/home-DOm3EaLO.js +0 -2
  58. package/assets/init-user-iMMcIQIW.js +0 -1
  59. package/assets/list-B-vY1rhM.js +0 -1
  60. package/assets/list-table-8sDi0ZKa.js +0 -52
  61. package/assets/loader-circle-Btx4NYNU.js +0 -6
  62. package/assets/login-C2J62v4_.js +0 -6
  63. package/assets/module-I4hW5UqT.js +0 -1
  64. package/assets/move-left-DWHsVHUF.js +0 -11
  65. package/assets/multi-select-Bu3n-kcV.js +0 -11
  66. package/assets/nav-main-DDQ-_Oed.js +0 -1
  67. package/assets/nav-user-BwBu-VwZ.js +0 -1
  68. package/assets/pagination-render-BoDDo2E1.js +0 -1
  69. package/assets/register-aPC0gjjS.js +0 -1
  70. package/assets/trash-2-CsxWwHNc.js +0 -6
  71. package/assets/user-info-CnB2lvpg.js +0 -1
  72. package/assets/user-menu-content-BFbaJw6v.js +0 -6
  73. package/assets/welcome-DB_D6KJV.js +0 -1
@@ -0,0 +1 @@
1
+ import{q as i,r,j as t,L as p}from"./app.js";import{A as c}from"./app-layout-NMKA6xAa.js";import"./app-shell-Dd-kA5uc.js";import"./app-sidebar-C4Y6TSY3.js";import"./nav-main-Cx1BkIzi.js";import"./material-icon-CPvFwV5P.js";import"./app-sidebar-header-DQnbMxfM.js";import"./breadcrumbs-D0gGjNVI.js";import"./nav-user-BWl2j-y-.js";import"./user-info-DTsggabP.js";import"./user-menu-content-Dnh2qpwQ.js";import"./icon-DQL8h8HI.js";import"./use-appearance-J8J2w43p.js";const d=[];function L(){const s=i(),[n,l]=r.useState(null);return r.useEffect(()=>{const m=async()=>{const e=(await import(s.props.moduleComponent)).default;l(t.jsx(e,{message:s.props.message}))};(()=>{const o=s.props.moduleComponentCSS;if(!o||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(a=>a.href.includes(o)))return;const e=document.createElement("link");e.rel="stylesheet",e.href=o,e.type="text/css",e.onload=()=>console.log(`CSS loaded: ${o}`),e.onerror=()=>console.error(`Failed to load CSS: ${o}`),document.head.appendChild(e)})(),m()},[]),t.jsx(c,{breadcrumbs:d,children:t.jsxs("div",{className:"m-5",children:[t.jsx("div",{className:"mb-5",children:t.jsx("h1",{children:s.props.title})}),n||t.jsx(p,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})]})})}export{L as default};
@@ -0,0 +1 @@
1
+ import{r as H,c as fe,aK as T,j as t,b5 as oe,b6 as xe,b7 as he,b8 as pe,b9 as ie,aN as ge,B as be,ba as ve,bb as je,bc as ye,bd as we,a9 as Ce,be as Ne,bf as Se,bg as Pe,aP as ke,bh as Ve,aQ as Ee}from"./app.js";const ce=xe("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"}}),De=H.forwardRef((E,J)=>{const e=fe.c(87);let x,h,r,o,p,g,m,D,I,O,K,$,B,U,F,u;e[0]!==E?({options:o,onValueChange:r,variant:u,processing:p,disabled:h,defaultValue:m,placeholder:D,notFound:I,search:O,animation:K,maxCount:$,modalPopover:B,asChild:U,className:x,mode:F,...g}=E,e[0]=E,e[1]=x,e[2]=h,e[3]=r,e[4]=o,e[5]=p,e[6]=g,e[7]=m,e[8]=D,e[9]=I,e[10]=O,e[11]=K,e[12]=$,e[13]=B,e[14]=U,e[15]=F,e[16]=u):(x=e[1],h=e[2],r=e[3],o=e[4],p=e[5],g=e[6],m=e[7],D=e[8],I=e[9],O=e[10],K=e[11],$=e[12],B=e[13],U=e[14],F=e[15],u=e[16]);let A;e[17]!==m?(A=m===void 0?[]:m,e[17]=m,e[18]=A):A=e[18];const de=A,Y=D===void 0?"":D,Z=I===void 0?"":I,ee=O===void 0?"":O,f=K===void 0?0:K,i=$===void 0?3:$,te=B===void 0?!1:B,n=F===void 0?"multiple":F,[s,M]=H.useState(de),[se,R]=H.useState(!1),[c,me]=H.useState(!1);let X;e[19]!==r||e[20]!==s?(X=l=>{if(l.key==="Enter")R(!0);else if(l.key==="Backspace"&&!l.currentTarget.value){const a=[...s];a.pop(),M(a),r(a)}},e[19]=r,e[20]=s,e[21]=X):X=e[21];const le=X;let z;e[22]!==n||e[23]!==r||e[24]!==s?(z=l=>{let a;n==="single"?a=s.includes(l)?[]:[l]:a=s.includes(l)?s.filter(V=>V!==l):[...s,l],M(a),r(a),n==="single"&&R(!1)},e[22]=n,e[23]=r,e[24]=s,e[25]=z):z=e[25];const d=z;let G;e[26]!==r?(G=()=>{M([]),r([])},e[26]=r,e[27]=G):G=e[27];const ae=G;let L;e[28]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{R(Ie)},e[28]=L):L=e[28];const ue=L;let Q;e[29]!==i||e[30]!==r||e[31]!==s?(Q=()=>{const l=s.slice(0,i);M(l),r(l)},e[29]=i,e[30]=r,e[31]=s,e[32]=Q):Q=e[32];const re=Q;let b;e[33]!==x?(b=T("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",x),e[33]=x,e[34]=b):b=e[34];let v;e[35]!==f||e[36]!==re||e[37]!==ae||e[38]!==c||e[39]!==i||e[40]!==n||e[41]!==o||e[42]!==Y||e[43]!==p||e[44]!==s||e[45]!==d||e[46]!==u?(v=s.length>0?t.jsxs("div",{className:"flex justify-between items-center w-full",children:[t.jsxs("div",{className:"flex flex-wrap items-center",children:[s.slice(0,i).map(l=>{const a=o.find(ne=>ne.value===l),V=a==null?void 0:a.icon;return t.jsxs("div",{className:T(c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[V&&t.jsx(V,{className:"h-4 w-4 mr-2"}),a==null?void 0:a.label,t.jsx(oe,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ne=>{ne.stopPropagation(),p||d(l)}})]},l)}),n==="multiple"&&s.length>i&&t.jsxs("div",{className:T("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[`+ ${s.length-i} more`,t.jsx(oe,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:l=>{l.stopPropagation(),re()}})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[s.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(he,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:l=>{l.stopPropagation(),ae()}}),t.jsx(pe,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),t.jsx(ie,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):t.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[t.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:Y}),t.jsx(ie,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]}),e[35]=f,e[36]=re,e[37]=ae,e[38]=c,e[39]=i,e[40]=n,e[41]=o,e[42]=Y,e[43]=p,e[44]=s,e[45]=d,e[46]=u,e[47]=v):v=e[47];let j;e[48]!==h||e[49]!==g||e[50]!==J||e[51]!==b||e[52]!==v?(j=t.jsx(ge,{asChild:!0,children:t.jsx(be,{ref:J,...g,onClick:ue,disabled:h,className:b,children:v})}),e[48]=h,e[49]=g,e[50]=J,e[51]=b,e[52]=v,e[53]=j):j=e[53];let W;e[54]===Symbol.for("react.memo_cache_sentinel")?(W=()=>R(!1),e[54]=W):W=e[54];let y;e[55]!==le||e[56]!==ee?(y=t.jsx(je,{placeholder:ee,onKeyDown:le}),e[55]=le,e[56]=ee,e[57]=y):y=e[57];let w;e[58]!==Z?(w=t.jsx(ye,{children:Z}),e[58]=Z,e[59]=w):w=e[59];let C;if(e[60]!==o||e[61]!==s||e[62]!==d){let l;e[64]!==s||e[65]!==d?(l=a=>{const V=s.includes(a.value);return t.jsxs(we,{onSelect:()=>d(a.value),className:"cursor-pointer",children:[t.jsx("div",{className:T("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",V?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:t.jsx(Ce,{className:"h-4 w-4 text-primary-foreground"})}),a.icon&&t.jsx(a.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),t.jsx("span",{children:a.label})]},a.value)},e[64]=s,e[65]=d,e[66]=l):l=e[66],C=o.map(l),e[60]=o,e[61]=s,e[62]=d,e[63]=C}else C=e[63];let N;e[67]!==C?(N=t.jsx(Ne,{children:C}),e[67]=C,e[68]=N):N=e[68];let _;e[69]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(Se,{}),e[69]=_):_=e[69];let S;e[70]!==w||e[71]!==N?(S=t.jsxs(Pe,{children:[w,N,_]}),e[70]=w,e[71]=N,e[72]=S):S=e[72];let P;e[73]!==y||e[74]!==S?(P=t.jsx(ke,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:W,children:t.jsxs(Ve,{children:[y,S]})}),e[73]=y,e[74]=S,e[75]=P):P=e[75];let k;e[76]!==f||e[77]!==c||e[78]!==n||e[79]!==s.length?(k=f>0&&s.length>0&&n==="multiple"&&t.jsx(ve,{className:T("cursor-pointer my-2 text-foreground bg-background w-3 h-3",c?"":"text-muted-foreground"),onClick:()=>me(!c)}),e[76]=f,e[77]=c,e[78]=n,e[79]=s.length,e[80]=k):k=e[80];let q;return e[81]!==se||e[82]!==te||e[83]!==j||e[84]!==P||e[85]!==k?(q=t.jsxs(Ee,{open:se,onOpenChange:R,modal:te,children:[j,P,k]}),e[81]=se,e[82]=te,e[83]=j,e[84]=P,e[85]=k,e[86]=q):q=e[86],q});De.displayName="MultiSelect";function Ie(E){return!E}export{De as default};
@@ -1 +1 @@
1
- import{c as u,j as t,an as d,a9 as p,ah as x,aH as h,a8 as f}from"./app.js";import{Icon as m}from"./icon-B-D8X0jg.js";function S(r){const e=u.c(12);let o,a,n;e[0]!==r?({items:a,className:o,...n}=r,e[0]=r,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const c=`group-data-[collapsible=icon]:p-0 ${o||""}`;let s;e[4]!==a?(s=a.map(j),e[4]=a,e[5]=s):s=e[5];let l;e[6]!==s?(l=t.jsx(h,{children:t.jsx(f,{children:s})}),e[6]=s,e[7]=l):l=e[7];let i;return e[8]!==n||e[9]!==c||e[10]!==l?(i=t.jsx(d,{...n,className:c,children:l}),e[8]=n,e[9]=c,e[10]=l,e[11]=i):i=e[11],i}function j(r){return t.jsx(p,{children:t.jsx(x,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:t.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(m,{iconNode:r.icon,className:"h-5 w-5"}),t.jsx("span",{children:r.title})]})})},r.title)}export{S as NavFooter};
1
+ import{c as u,j as t,aB as d,an as p,av as x,aW as h,am as m}from"./app.js";import{Icon as f}from"./icon-DQL8h8HI.js";function S(r){const e=u.c(12);let o,a,n;e[0]!==r?({items:a,className:o,...n}=r,e[0]=r,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const c=`group-data-[collapsible=icon]:p-0 ${o||""}`;let s;e[4]!==a?(s=a.map(j),e[4]=a,e[5]=s):s=e[5];let l;e[6]!==s?(l=t.jsx(h,{children:t.jsx(m,{children:s})}),e[6]=s,e[7]=l):l=e[7];let i;return e[8]!==n||e[9]!==c||e[10]!==l?(i=t.jsx(d,{...n,className:c,children:l}),e[8]=n,e[9]=c,e[10]=l,e[11]=i):i=e[11],i}function j(r){return t.jsx(p,{children:t.jsx(x,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:t.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(f,{iconNode:r.icon,className:"h-5 w-5"}),t.jsx("span",{children:r.title})]})})},r.title)}export{S as NavFooter};
@@ -0,0 +1 @@
1
+ import{c as y,q as E,r as G,j as e,aT as $,an as N,au as _,av as g,C as M,aU as A,ak as B,aw as O,ax as R,$ as v,aB as U,aV as z,aW as L,am as P}from"./app.js";import j from"./material-icon-CPvFwV5P.js";function F(a){const t=y.c(15),{items:l}=a;let f;t[0]!==l?(f=l===void 0?[]:l,t[0]=l,t[1]=f):f=t[1];const p=f,h=E();let k;t[2]!==p?(k=()=>{const u={};return p.forEach(o=>{const c=o.section||"Platform";c in u||(u[c]=!0)}),u},t[2]=p,t[3]=k):k=t[3];const[d,w]=G.useState(k),b=T;let x;if(t[4]!==p||t[5]!==d||t[6]!==h){const u=p.reduce(Q,{});let o;if(t[8]!==h){o=r=>{var s,C;const{item:n}=r;return((s=n.actions)==null?void 0:s.length)>0?e.jsx($,{asChild:!0,defaultOpen:m(n.link),className:"group/collapsible",children:e.jsxs(N,{children:[e.jsx(_,{asChild:!0,children:e.jsxs(g,{tooltip:n.title,children:[e.jsx(j,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n.title}),e.jsx(M,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),e.jsx(A,{children:e.jsx(B,{children:(C=n.actions)==null?void 0:C.map(i=>e.jsx(O,{children:e.jsx(R,{asChild:!0,isActive:m(i.link),children:i.type==="blank"?e.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",children:[i.icon&&e.jsx(j,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]}):e.jsxs(v,{href:i.link,children:[i.icon&&e.jsx(j,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]})})},i.id))})})]})},n.title):e.jsx(N,{children:e.jsx(g,{asChild:!0,isActive:m(n.link),tooltip:{children:n.title},children:n.type==="blank"?e.jsxs("a",{href:n.link,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&e.jsx(j,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{children:n.title})]}):e.jsxs(v,{href:n.link,children:[n.icon&&e.jsx(j,{name:n.icon,className:"!text-[18px]"}),e.jsx("span",{children:n.title})]})})},n.title)};const m=r=>{const n=b(h.url),s=b(r);return n===s||n.startsWith(`${s}/`)};t[8]=h,t[9]=o}else o=t[9];let c;t[10]!==o||t[11]!==d?(c=m=>{const[r,n]=m;return e.jsxs(U,{className:"px-2 py-0",children:[e.jsx(z,{asChild:!0,className:"cursor-pointer",onClick:()=>w(s=>({...s,[r]:!s[r]})),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{className:`transform transition-transform duration-200 ${d[r]?"rotate-90":""}`}),e.jsx("span",{children:r})]})}),d[r]&&e.jsx(L,{children:e.jsx(P,{children:n.map(s=>e.jsx(o,{item:s},s.id||s.title))})})]},r)},t[10]=o,t[11]=d,t[12]=c):c=t[12],x=Object.entries(u).map(c),t[4]=p,t[5]=d,t[6]=h,t[7]=x}else x=t[7];let S;return t[13]!==x?(S=e.jsx(e.Fragment,{children:x}),t[13]=x,t[14]=S):S=t[14],S}function Q(a,t){const l=t.section||"Platform";return a[l]||(a[l]=[]),a[l].push(t),a}function T(a){return a.split("?")[0].replace(/\/$/,"")}export{F as NavMain};
@@ -0,0 +1 @@
1
+ import{c as x,q as f,aX as b,aY as g,j as s,ah as h,v as j,av as M,x as w,am as v,an as S,aZ as C}from"./app.js";import{UserInfo as D}from"./user-info-DTsggabP.js";import{UserMenuContent as N}from"./user-menu-content-Dnh2qpwQ.js";function B(){const e=x.c(15),{auth:t,logout:u,logoutBtn:c}=f().props,{state:m}=b(),p=g();let r;e[0]!==t.user?(r=s.jsx(D,{user:t.user}),e[0]=t.user,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(h,{className:"ml-auto size-4"}),e[2]=i):i=e[2];let o;e[3]!==r?(o=s.jsx(j,{asChild:!0,children:s.jsxs(M,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[r,i]})}),e[3]=r,e[4]=o):o=e[4];const d=p?"bottom":m==="collapsed"?"left":"bottom";let n;e[5]!==t.user||e[6]!==u||e[7]!==c?(n=s.jsx(N,{user:t.user,logout:u,logoutBtn:c}),e[5]=t.user,e[6]=u,e[7]=c,e[8]=n):n=e[8];let a;e[9]!==d||e[10]!==n?(a=s.jsx(w,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:d,children:n}),e[9]=d,e[10]=n,e[11]=a):a=e[11];let l;return e[12]!==o||e[13]!==a?(l=s.jsx(v,{children:s.jsx(S,{children:s.jsxs(C,{children:[o,a]})})}),e[12]=o,e[13]=a,e[14]=l):l=e[14],l}export{B as NavUser};
@@ -0,0 +1 @@
1
+ import{c as V,j as a,bC as k,bD as _,bE as w,bF as A,bG as G,bH as H}from"./app.js";const J=i=>{const e=V.c(44),{pagination:t,pageChange:n,currentPage:s}=i,D=t.links.filter(q).map(z),E=D.includes(1),F=D.includes(t.last_page),y=`${E?"opacity-50 pointer-events-none":"opacity-100"}`,j=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===1?"opacity-50 pointer-events-none":""}`;let o;e[0]!==s||e[1]!==n?(o=r=>{r.preventDefault(),s!==1&&n(1)},e[0]=s,e[1]=n,e[2]=o):o=e[2];let l;e[3]!==j||e[4]!==o?(l=a.jsx(k,{className:j,onClick:o,children:"First"}),e[3]=j,e[4]=o,e[5]=l):l=e[5];let c;e[6]!==y||e[7]!==l?(c=a.jsx(_,{className:y,children:l}),e[6]=y,e[7]=l,e[8]=c):c=e[8];const P=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.prev_page_url?"":"opacity-50 pointer-events-none"}`;let p;e[9]!==s||e[10]!==n||e[11]!==t.prev_page_url?(p=r=>{r.preventDefault(),t.prev_page_url&&n(s-1)},e[9]=s,e[10]=n,e[11]=t.prev_page_url,e[12]=p):p=e[12];let u;e[13]!==P||e[14]!==p?(u=a.jsx(_,{children:a.jsx(w,{className:P,onClick:p})}),e[13]=P,e[14]=p,e[15]=u):u=e[15];let g;if(e[16]!==n||e[17]!==t.links){let r;e[19]!==n?(r=(v,I)=>v.label==="Previous"||v.label==="Next"?null:a.jsx(_,{children:a.jsx(k,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${v.active?"!bg-primary dark:!bg-muted-foreground !text-primary-foreground dark:!text-ring":""}`,onClick:L=>{L.preventDefault();const R=parseInt(v.label);n(R)},isActive:v.active,children:v.label})},I),e[19]=n,e[20]=r):r=e[20],g=t.links.map(r),e[16]=n,e[17]=t.links,e[18]=g}else g=e[18];const N=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.next_page_url?"":"opacity-50 pointer-events-none"}`;let f;e[21]!==s||e[22]!==n||e[23]!==t.next_page_url?(f=r=>{r.preventDefault(),t.next_page_url&&n(s+1)},e[21]=s,e[22]=n,e[23]=t.next_page_url,e[24]=f):f=e[24];let d;e[25]!==N||e[26]!==f?(d=a.jsx(_,{children:a.jsx(A,{className:N,onClick:f})}),e[25]=N,e[26]=f,e[27]=d):d=e[27];const C=`${F?"opacity-50 pointer-events-none":"opacity-100"}`,$=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===t.last_page?"opacity-50 pointer-events-none":""}`;let b;e[28]!==s||e[29]!==n||e[30]!==t.last_page?(b=r=>{r.preventDefault(),s!==t.last_page&&n(t.last_page)},e[28]=s,e[29]=n,e[30]=t.last_page,e[31]=b):b=e[31];let m;e[32]!==$||e[33]!==b?(m=a.jsx(k,{className:$,onClick:b,children:"Last"}),e[32]=$,e[33]=b,e[34]=m):m=e[34];let x;e[35]!==C||e[36]!==m?(x=a.jsx(_,{className:C,children:m}),e[35]=C,e[36]=m,e[37]=x):x=e[37];let h;return e[38]!==d||e[39]!==x||e[40]!==c||e[41]!==u||e[42]!==g?(h=a.jsx(G,{children:a.jsxs(H,{className:"flex-wrap",children:[c,u,g,d,x]})}),e[38]=d,e[39]=x,e[40]=c,e[41]=u,e[42]=g,e[43]=h):h=e[43],h};function q(i){return i.label!=="Previous"&&i.label!=="Next"}function z(i){return parseInt(i.label)}export{J as default};
@@ -0,0 +1 @@
1
+ import{c as Pe,q as _e,r as ye,a1 as Se,j as l,a as W,I as X,S as Ce,b as ke,B as Le,$ as Ee,T as Te,h as Ie,e as $e,i as qe,t as Be}from"./app.js";import Y from"./input-error-BztTAmHq.js";import{i as Fe}from"./use-appearance-J8J2w43p.js";function Ae(){const e=Pe.c(151),s=_e();let Z;e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=[],e[0]=Z):Z=e[0],ye.useEffect(Ve,Z);let ee;e[1]===Symbol.for("react.memo_cache_sentinel")?(ee={locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""},e[1]=ee):ee=e[1];const{post:de,data:r,setData:me,processing:a,setError:fe,errors:t,clearErrors:ue}=Se(ee);let se;e[2]!==r.confirmPassword||e[3]!==r.password||e[4]!==s.props.confirmError||e[5]!==s.props.submitLink||e[6]!==de||e[7]!==fe?(se=i=>{if(i.preventDefault(),r.password!==r.confirmPassword){fe("confirmPassword",s.props.confirmError);return}de(s.props.submitLink,{onSuccess:Re,onError:De})},e[2]=r.confirmPassword,e[3]=r.password,e[4]=s.props.confirmError,e[5]=s.props.submitLink,e[6]=de,e[7]=fe,e[8]=se):se=e[8];const be=se;let le;e[9]!==ue||e[10]!==me?(le=(i,ve)=>{ue(),me(i,ve)},e[9]=ue,e[10]=me,e[11]=le):le=e[11];const o=le;let ae;e[12]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx(Te,{position:"top-center",richColors:!0,closeButton:!0}),e[12]=ae):ae=e[12];let n;e[13]!==s.props.header.title?(n=l.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[13]=s.props.header.title,e[14]=n):n=e[14];let p;e[15]!==s.props.header.desc?(p=l.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[15]=s.props.header.desc,e[16]=p):p=e[16];let re;e[17]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx("span",{className:"text-red-500",children:"*"}),e[17]=re):re=e[17];let c;e[18]!==s.props.loginLabel?(c=l.jsxs(W,{htmlFor:"login",children:[s.props.loginLabel,re]}),e[18]=s.props.loginLabel,e[19]=c):c=e[19];const he=`${t.login?"border-red-500":""}`;let d;e[20]!==o?(d=i=>{o("login",i.target.value)},e[20]=o,e[21]=d):d=e[21];let m;e[22]!==r.login||e[23]!==s.props.loginLabel||e[24]!==a||e[25]!==d||e[26]!==he?(m=l.jsx(X,{id:"login",className:he,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:r.login,disabled:a,onChange:d,placeholder:s.props.loginLabel}),e[22]=r.login,e[23]=s.props.loginLabel,e[24]=a,e[25]=d,e[26]=he,e[27]=m):m=e[27];let f;e[28]!==t.login?(f=l.jsx(Y,{message:t.login}),e[28]=t.login,e[29]=f):f=e[29];let u;e[30]!==m||e[31]!==f?(u=l.jsxs("div",{className:"relative",children:[m,f]}),e[30]=m,e[31]=f,e[32]=u):u=e[32];let b;e[33]!==u||e[34]!==c?(b=l.jsxs("div",{className:"grid gap-4",children:[c,u]}),e[33]=u,e[34]=c,e[35]=b):b=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx("span",{className:"text-red-500",children:"*"}),e[36]=te):te=e[36];let h;e[37]!==s.props.fullNameLabel?(h=l.jsxs(W,{htmlFor:"fullName",children:[s.props.fullNameLabel,te]}),e[37]=s.props.fullNameLabel,e[38]=h):h=e[38];const xe=`${t.fullName?"border-red-500":""}`;let x;e[39]!==o?(x=i=>{o("fullName",i.target.value)},e[39]=o,e[40]=x):x=e[40];let g;e[41]!==r.fullName||e[42]!==s.props.fullNameLabel||e[43]!==a||e[44]!==xe||e[45]!==x?(g=l.jsx(X,{id:"fullName",className:xe,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:r.fullName,disabled:a,onChange:x,placeholder:s.props.fullNameLabel}),e[41]=r.fullName,e[42]=s.props.fullNameLabel,e[43]=a,e[44]=xe,e[45]=x,e[46]=g):g=e[46];let w;e[47]!==t.fullName?(w=l.jsx(Y,{message:t.fullName}),e[47]=t.fullName,e[48]=w):w=e[48];let j;e[49]!==g||e[50]!==w?(j=l.jsxs("div",{className:"relative",children:[g,w]}),e[49]=g,e[50]=w,e[51]=j):j=e[51];let N;e[52]!==h||e[53]!==j?(N=l.jsxs("div",{className:"grid gap-4",children:[h,j]}),e[52]=h,e[53]=j,e[54]=N):N=e[54];let oe;e[55]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("span",{className:"text-red-500",children:"*"}),e[55]=oe):oe=e[55];let L;e[56]!==s.props.passwordLabel?(L=l.jsxs(W,{htmlFor:"password",children:[s.props.passwordLabel,oe]}),e[56]=s.props.passwordLabel,e[57]=L):L=e[57];const ge=`${t.password?"border-red-500":""}`;let v;e[58]!==o?(v=i=>{o("password",i.target.value)},e[58]=o,e[59]=v):v=e[59];let P;e[60]!==r.password||e[61]!==s.props.passwordLabel||e[62]!==a||e[63]!==ge||e[64]!==v?(P=l.jsx(X,{id:"password",className:ge,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.password,disabled:a,onChange:v,placeholder:s.props.passwordLabel}),e[60]=r.password,e[61]=s.props.passwordLabel,e[62]=a,e[63]=ge,e[64]=v,e[65]=P):P=e[65];let _;e[66]!==t.password?(_=l.jsx(Y,{message:t.password}),e[66]=t.password,e[67]=_):_=e[67];let y;e[68]!==P||e[69]!==_?(y=l.jsxs("div",{className:"relative",children:[P,_]}),e[68]=P,e[69]=_,e[70]=y):y=e[70];let S;e[71]!==L||e[72]!==y?(S=l.jsxs("div",{className:"grid gap-4",children:[L,y]}),e[71]=L,e[72]=y,e[73]=S):S=e[73];let ie;e[74]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx("span",{className:"text-red-500",children:"*"}),e[74]=ie):ie=e[74];let C;e[75]!==s.props.confirmPasswordLabel?(C=l.jsxs(W,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,ie]}),e[75]=s.props.confirmPasswordLabel,e[76]=C):C=e[76];const we=`${t.confirmPassword?"border-red-500":""}`;let k;e[77]!==o?(k=i=>{o("confirmPassword",i.target.value)},e[77]=o,e[78]=k):k=e[78];let E;e[79]!==r.confirmPassword||e[80]!==s.props.confirmPasswordLabel||e[81]!==a||e[82]!==we||e[83]!==k?(E=l.jsx(X,{id:"confirmPassword",className:we,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.confirmPassword,disabled:a,onChange:k,placeholder:s.props.confirmPasswordLabel}),e[79]=r.confirmPassword,e[80]=s.props.confirmPasswordLabel,e[81]=a,e[82]=we,e[83]=k,e[84]=E):E=e[84];let T;e[85]!==t.confirmPassword?(T=l.jsx(Y,{message:t.confirmPassword}),e[85]=t.confirmPassword,e[86]=T):T=e[86];let I;e[87]!==E||e[88]!==T?(I=l.jsxs("div",{className:"relative",children:[E,T]}),e[87]=E,e[88]=T,e[89]=I):I=e[89];let $;e[90]!==C||e[91]!==I?($=l.jsxs("div",{className:"grid gap-4",children:[C,I]}),e[90]=C,e[91]=I,e[92]=$):$=e[92];let ne;e[93]===Symbol.for("react.memo_cache_sentinel")?(ne=l.jsx("span",{className:"text-red-500",children:"*"}),e[93]=ne):ne=e[93];let q;e[94]!==s.props.emailLabel?(q=l.jsxs(W,{htmlFor:"email",children:[s.props.emailLabel,ne]}),e[94]=s.props.emailLabel,e[95]=q):q=e[95];const je=`${t.email?"border-red-500":""}`;let B;e[96]!==o?(B=i=>{o("email",i.target.value)},e[96]=o,e[97]=B):B=e[97];let F;e[98]!==r.email||e[99]!==s.props.emailLabel||e[100]!==a||e[101]!==je||e[102]!==B?(F=l.jsx(X,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:r.email,disabled:a,onChange:B,placeholder:s.props.emailLabel}),e[98]=r.email,e[99]=s.props.emailLabel,e[100]=a,e[101]=je,e[102]=B,e[103]=F):F=e[103];let D;e[104]!==t.email?(D=l.jsx(Y,{message:t.email}),e[104]=t.email,e[105]=D):D=e[105];let R;e[106]!==F||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[F,D]}),e[106]=F,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==q||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[q,R]}),e[109]=q,e[110]=R,e[111]=V):V=e[111];let z;e[112]!==s.props.localeLabel?(z=l.jsx(W,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=z):z=e[113];let J;e[114]!==o?(J=i=>o("locale",i),e[114]=o,e[115]=J):J=e[115];let O;e[116]!==s.props.localeLabel?(O=l.jsx(Ce,{className:"w-full cursor-pointer",children:l.jsx(ke,{placeholder:s.props.localeLabel})}),e[116]=s.props.localeLabel,e[117]=O):O=e[117];let pe;e[118]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx(Ie,{children:l.jsx($e,{value:"en",children:"EN"})}),e[118]=pe):pe=e[118];let A;e[119]!==a||e[120]!==J||e[121]!==O?(A=l.jsxs(qe,{onValueChange:J,defaultValue:"en",disabled:a,children:[O,pe]}),e[119]=a,e[120]=J,e[121]=O,e[122]=A):A=e[122];let G;e[123]!==z||e[124]!==A?(G=l.jsxs("div",{className:"grid gap-4",children:[z,A]}),e[123]=z,e[124]=A,e[125]=G):G=e[125];let H;e[126]!==s.props.submitButton||e[127]!==a?(H=l.jsx(Le,{type:"submit",className:"w-fit",disabled:a,children:s.props.submitButton}),e[126]=s.props.submitButton,e[127]=a,e[128]=H):H=e[128];const Ne=`${a} ? 'pointer-events-none opacity-50' : ''`;let K;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(K=l.jsx(Le,{asChild:!0,variant:"outline",children:l.jsx(Ee,{href:s.props.backToLogin.link,className:Ne,children:s.props.backToLogin.text})}),e[129]=s.props.backToLogin.link,e[130]=s.props.backToLogin.text,e[131]=Ne,e[132]=K):K=e[132];let M;e[133]!==H||e[134]!==K?(M=l.jsxs("div",{className:"flex gap-4",children:[H,K]}),e[133]=H,e[134]=K,e[135]=M):M=e[135];let Q;e[136]!==b||e[137]!==N||e[138]!==S||e[139]!==$||e[140]!==V||e[141]!==G||e[142]!==M?(Q=l.jsxs("div",{className:"grid gap-5",children:[b,N,S,$,V,G,M]}),e[136]=b,e[137]=N,e[138]=S,e[139]=$,e[140]=V,e[141]=G,e[142]=M,e[143]=Q):Q=e[143];let U;e[144]!==be||e[145]!==Q?(U=l.jsx("form",{onSubmit:be,className:"mt-6",children:Q}),e[144]=be,e[145]=Q,e[146]=U):U=e[146];let ce;return e[147]!==n||e[148]!==U||e[149]!==p?(ce=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[ae,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[n,p,U]})]}),e[147]=n,e[148]=U,e[149]=p,e[150]=ce):ce=e[150],ce}function De(e){for(const s of Object.keys(e))Be.error(e[s])}function Re(){}function Ve(){Fe()}export{Ae as default};
@@ -0,0 +1 @@
1
+ import{c as x,j as l,a_ as h,a$ as p,b0 as j}from"./app.js";function v(){return I}function I(g){const t=g.trim().split(" ");if(t.length===0)return"";if(t.length===1)return t[0].charAt(0).toUpperCase();const e=t[0].charAt(0),m=t[t.length-1].charAt(0);return`${e}${m}`.toUpperCase()}function b(g){const t=x.c(22),{user:e,showEmail:m}=g,u=m===void 0?!1:m,d=v();let a;t[0]!==e.avatar||t[1]!==e.login?(a=l.jsx(h,{src:e.avatar,alt:e.login}),t[0]=e.avatar,t[1]=e.login,t[2]=a):a=t[2];let s;t[3]!==d||t[4]!==e.login?(s=d(e.login),t[3]=d,t[4]=e.login,t[5]=s):s=t[5];let i;t[6]!==s?(i=l.jsx(p,{className:"rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white",children:s}),t[6]=s,t[7]=i):i=t[7];let n;t[8]!==a||t[9]!==i?(n=l.jsxs(j,{className:"h-8 w-8 overflow-hidden rounded-full",children:[a,i]}),t[8]=a,t[9]=i,t[10]=n):n=t[10];let r;t[11]!==e.login?(r=l.jsx("span",{className:"truncate font-medium",children:e.login}),t[11]=e.login,t[12]=r):r=t[12];let o;t[13]!==u||t[14]!==e.email?(o=u&&l.jsx("span",{className:"text-muted-foreground truncate text-xs",children:e.email}),t[13]=u,t[14]=e.email,t[15]=o):o=t[15];let c;t[16]!==r||t[17]!==o?(c=l.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[r,o]}),t[16]=r,t[17]=o,t[18]=c):c=t[18];let f;return t[19]!==n||t[20]!==c?(f=l.jsxs(l.Fragment,{children:[n,c]}),t[19]=n,t[20]=c,t[21]=f):f=t[21],f}export{b as UserInfo};
@@ -0,0 +1 @@
1
+ import{c as p,j as t,b1 as f,b2 as x,b3 as d,b4 as b,$ as h}from"./app.js";import{UserInfo as j}from"./user-info-DTsggabP.js";function g(){return y}function y(){document.body.style.removeProperty("pointer-events")}function N(u){const e=p.c(11),{user:a,logout:c,logoutBtn:i}=u,m=g();let o;e[0]!==a?(o=t.jsx(f,{className:"p-0 font-normal",children:t.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:t.jsx(j,{user:a,showEmail:!0})})}),e[0]=a,e[1]=o):o=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(x,{}),e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{className:"mr-2"}),e[3]=r):r=e[3];let s;e[4]!==m||e[5]!==c||e[6]!==i?(s=t.jsx(b,{asChild:!0,children:t.jsxs(h,{className:"block w-full cursor-pointer",method:"get",href:c,as:"button",onClick:m,children:[r,i]})}),e[4]=m,e[5]=c,e[6]=i,e[7]=s):s=e[7];let l;return e[8]!==o||e[9]!==s?(l=t.jsxs(t.Fragment,{children:[o,n,s]}),e[8]=o,e[9]=s,e[10]=l):l=e[10],l}export{N as UserMenuContent};
@@ -0,0 +1 @@
1
+ import{c as l,q as m,j as p}from"./app.js";import{A as x}from"./app-layout-NMKA6xAa.js";import"./app-shell-Dd-kA5uc.js";import"./app-sidebar-C4Y6TSY3.js";import"./nav-main-Cx1BkIzi.js";import"./material-icon-CPvFwV5P.js";import"./app-sidebar-header-DQnbMxfM.js";import"./breadcrumbs-D0gGjNVI.js";import"./nav-user-BWl2j-y-.js";import"./user-info-DTsggabP.js";import"./user-menu-content-Dnh2qpwQ.js";import"./icon-DQL8h8HI.js";import"./use-appearance-J8J2w43p.js";const a=[];function N(){const t=l.c(8),e=m();let r;t[0]!==e.props.title?(r=e.props.title&&p.jsx("div",{className:"text-3xl mb-8",children:e.props.title}),t[0]=e.props.title,t[1]=r):r=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=p.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),t[2]=s):s=t[2];let o;t[3]!==e.props.text?(o=e.props.text&&p.jsx("div",{dangerouslySetInnerHTML:{__html:e.props.text}}),t[3]=e.props.text,t[4]=o):o=t[4];let i;return t[5]!==r||t[6]!==o?(i=p.jsx(x,{breadcrumbs:a,children:p.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r,s,o]})}),t[5]=r,t[6]=o,t[7]=i):i=t[7],i}export{N as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.2.0-build.44",
4
+ "version": "4.2.0-build.46",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -1 +0,0 @@
1
- import{c as p,q as i,j as m}from"./app.js";import{A as s}from"./app-layout-Dn8y3paC.js";import e from"./add-form-Ch5HOaI3.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";import"./field-renderer-Dgj1S2Vi.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-Bu3n-kcV.js";import"./form-state-702tb_BV.js";import"./input-error-F1DL-Fx6.js";import"./move-left-DWHsVHUF.js";import"./loader-circle-Btx4NYNU.js";const a=[];function z(){const t=p.c(2),r=i();let o;return t[0]!==r?(o=m.jsx(s,{breadcrumbs:a,children:m.jsx(e,{page:r,catalog:!1})}),t[0]=r,t[1]=o):o=t[1],o}export{z as default};
@@ -1 +0,0 @@
1
- import{r as f,c as L,j as t,L as M,M as z,N as A,O as V,P as D,Y as J,B as E,X as U,d as X,f as Y,n as q}from"./app.js";import{Icon as O}from"./icon-B-D8X0jg.js";import P from"./field-renderer-Dgj1S2Vi.js";import{r as S,h as R,g as $}from"./form-state-702tb_BV.js";import k from"./input-error-F1DL-Fx6.js";import{I as G,M as H}from"./move-left-DWHsVHUF.js";import{L as I}from"./loader-circle-Btx4NYNU.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-Bu3n-kcV.js";var F=new Map,C=new WeakMap,T=0,K=void 0;function Q(s){return s?(C.has(s)||(T+=1,C.set(s,T.toString())),C.get(s)):"0"}function Z(s){return Object.keys(s).sort().filter(e=>s[e]!==void 0).map(e=>`${e}_${e==="root"?Q(s.root):s[e]}`).toString()}function W(s){const e=Z(s);let n=F.get(e);if(!n){const c=new Map;let l;const i=new IntersectionObserver(o=>{o.forEach(a=>{var d;const m=a.isIntersecting&&l.some(p=>a.intersectionRatio>=p);s.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=m),(d=c.get(a.target))==null||d.forEach(p=>{p(m,a)})})},s);l=i.thresholds||(Array.isArray(s.threshold)?s.threshold:[s.threshold||0]),n={id:e,observer:i,elements:c},F.set(e,n)}return n}function _(s,e,n={},c=K){if(typeof window.IntersectionObserver>"u"&&c!==void 0){const d=s.getBoundingClientRect();return e(c,{isIntersecting:c,target:s,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:d,intersectionRect:d,rootBounds:d}),()=>{}}const{id:l,observer:i,elements:o}=W(n),a=o.get(s)||[];return o.has(s)||o.set(s,a),a.push(e),i.observe(s),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(s),i.unobserve(s)),o.size===0&&(i.disconnect(),F.delete(l))}}function ee({threshold:s,delay:e,trackVisibility:n,rootMargin:c,root:l,triggerOnce:i,skip:o,initialInView:a,fallbackInView:d,onChange:m}={}){var p;const[u,j]=f.useState(null),h=f.useRef(m),[x,N]=f.useState({inView:!!a,entry:void 0});h.current=m,f.useEffect(()=>{if(o||!u)return;let b;return b=_(u,(r,g)=>{N({inView:r,entry:g}),h.current&&h.current(r,g),g.isIntersecting&&i&&b&&(b(),b=void 0)},{root:l,rootMargin:c,threshold:s,trackVisibility:n,delay:e},d),()=>{b&&b()}},[Array.isArray(s)?s.toString():s,u,l,c,i,o,n,d,e]);const w=(p=x.entry)==null?void 0:p.target,y=f.useRef(void 0);!u&&w&&!i&&!o&&y.current!==w&&(y.current=w,N({inView:!!a,entry:void 0}));const v=[j,x.inView,x.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}const B=f.memo(s=>{const e=L.c(8),{field:n}=s,c=`${n.type}-${n.name}`;let l;e[0]!==n.label||e[1]!==c?(l=t.jsx(M,{htmlFor:c,children:n.label}),e[0]=n.label,e[1]=c,e[2]=l):l=e[2];let i;e[3]!==n.tooltip?(i=n.tooltip&&t.jsx(z,{children:t.jsxs(A,{children:[t.jsx(V,{onClick:te,children:t.jsx(O,{iconNode:G,className:"text-primary w-5 h-5 cursor-pointer"})}),t.jsx(D,{align:"center",side:"top",className:"z-[1002]",children:t.jsx("p",{children:n.tooltip})})]})}),e[3]=n.tooltip,e[4]=i):i=e[4];let o;return e[5]!==l||e[6]!==i?(o=t.jsxs("div",{className:"flex gap-3",children:[l,i]}),e[5]=l,e[6]=i,e[7]=o):o=e[7],o}),se=f.memo(s=>{const e=L.c(12),{field:n,value:c,onChange:l,processing:i,notFound:o,search:a}=s;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={triggerOnce:!0,rootMargin:"100px 0px"},e[0]=d):d=e[0];const[m,p]=ee(d);let u;e[1]!==n||e[2]!==p||e[3]!==o||e[4]!==l||e[5]!==i||e[6]!==a||e[7]!==c?(u=p?t.jsx(P,{field:n,value:c,onChange:l,notFound:o,search:a,processing:i}):t.jsx(q,{className:"w-full h-[250px] rounded-sm"}),e[1]=n,e[2]=p,e[3]=o,e[4]=l,e[5]=i,e[6]=a,e[7]=c,e[8]=u):u=e[8];let j;return e[9]!==m||e[10]!==u?(j=t.jsx("div",{ref:m,className:"grid gap-4 w-full",children:u}),e[9]=m,e[10]=u,e[11]=j):j=e[11],j}),ue=({page:s,catalog:e,callback:n,openNewWindow:c,openNewWindowLabel:l,isNavigation:i})=>{const{fields:o,btnBack:a,view:d,notFound:m}=s.props,{data:p,setData:u,post:j,processing:h}=J({...Object.fromEntries(o.map(r=>[r.name,r.value??void 0])),jsonPopupCatalog:e}),[x,N]=f.useState(!1),[w,y]=f.useState(c??!1);f.useEffect(()=>(y(c??!1),S(),u({...Object.fromEntries(o.map(r=>[r.name,r.value??void 0])),jsonPopupCatalog:e}),()=>S()),[o,e,c]);const v=f.useCallback((r,g)=>{u(r,g)},[]),b=async r=>{if(r.preventDefault(),e){N(!0);const g=await Y.post(s.props.postLink,p);g.status===200&&n&&(i?n(g.data.record,w):n(g.data.record))}else j(s.props.postLink)};return t.jsxs("div",{className:"p-4 w-full",children:[!e&&t.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[t.jsx(E,{className:"w-fit",asChild:!0,children:t.jsxs(U,{href:a.link,preserveScroll:!0,children:[t.jsx(O,{iconNode:H}),a.title]})}),t.jsxs(E,{variant:"green",type:"submit",className:"w-fit lg:hidden",form:"addUserForm",disabled:x||h||s.props.view||R(),children:[x||h&&t.jsx(I,{className:"h-4 w-4 animate-spin"}),s.props.btnSave.title]})]}),t.jsx("form",{id:"addUserForm",onSubmit:b,className:d?"cursor-not-allowed":"",children:t.jsxs("div",{className:`grid lg:grid-cols-[1fr_150px] gap-4 max-w-[1144px] pb-8 ${e?"lg:grid-cols-[1fr_200px]":"lg:grid-cols-[1fr_150px]"}`,children:[t.jsx("div",{className:"flex flex-col gap-10",children:o.map(r=>t.jsx("div",{className:`grid gap-4 w-full ${d?"pointer-events-none":""}`,children:r.type==="markdown"||r.type==="table"||r.type==="jsonEditor"||r.type==="codeEditor"||r.type==="geoJson"?t.jsxs(t.Fragment,{children:[t.jsx(B,{field:r}),t.jsx(k,{message:$(`${r.type}-${r.name}`)}),t.jsx(se,{field:r,value:p[r.name],onChange:v,processing:x||h||d,notFound:m,search:s.props.search})]}):t.jsxs(t.Fragment,{children:[t.jsx(B,{field:r}),t.jsx(k,{message:$(`${r.type}-${r.name}`)}),t.jsx(P,{field:r,value:p[r.name],onChange:v,processing:x||h||d,notFound:m,search:s.props.search})]})},r.name))}),t.jsxs("div",{className:`p-4 rounded-md h-fit sticky shadow ${e?"top-0 grid gap-4":"top-[84px] hidden lg:block"}`,children:[i&&t.jsxs("div",{className:"flex gap-4 items-center",children:[t.jsx(X,{id:"targetBlank",checked:w,onCheckedChange:r=>y(!!r),className:"cursor-pointer size-5"}),t.jsx(M,{htmlFor:"targetBlank",children:l})]}),t.jsxs(E,{variant:"green",type:"submit",className:"w-fit",disabled:x||h||s.props.view||R(),children:[(x||h)&&t.jsx(I,{className:"h-4 w-4 animate-spin"}),s.props.btnSave.title]})]})]})})]})};function te(s){return s.preventDefault()}export{B as LabelRenderer,se as LazyField,ue as default};
@@ -1 +0,0 @@
1
- import{q as D,Y as M,r as L,j as s,B as y,X as O,L as j,I as E,c as q,d as S,M as z,N as P,O as R,P as U}from"./app.js";import{Icon as B}from"./icon-B-D8X0jg.js";import{M as $,I as A}from"./move-left-DWHsVHUF.js";import{L as G}from"./loader-circle-Btx4NYNU.js";const I=L.memo(t=>{const e=q.c(20),{field:l,disabled:h,value:p,onCheckedChange:u,tooltip:f}=t;let x;e[0]!==l.name||e[1]!==u?(x=g=>{u(l.name,g)},e[0]=l.name,e[1]=u,e[2]=x):x=e[2];const o=x;let r;e[3]!==h||e[4]!==l.name||e[5]!==o||e[6]!==p?(r=s.jsx(S,{id:l.name,className:"cursor-pointer size-5",disabled:h,checked:p,onCheckedChange:o}),e[3]=h,e[4]=l.name,e[5]=o,e[6]=p,e[7]=r):r=e[7];let n;e[8]!==l.label||e[9]!==l.name?(n=s.jsx(j,{className:"cursor-pointer",htmlFor:l.name,children:l.label}),e[8]=l.label,e[9]=l.name,e[10]=n):n=e[10];let c;e[11]!==l.tooltip||e[12]!==f?(c=f&&s.jsx(z,{children:s.jsxs(P,{children:[s.jsx(R,{onClick:H,children:s.jsx(B,{iconNode:A,className:"text-primary w-5 h-5 cursor-pointer"})}),s.jsx(U,{align:"center",side:"top",children:s.jsx("p",{children:l.tooltip})})]})}),e[11]=l.tooltip,e[12]=f,e[13]=c):c=e[13];let d;e[14]!==n||e[15]!==c?(d=s.jsxs("div",{className:"flex gap-3",children:[n,c]}),e[14]=n,e[15]=c,e[16]=d):d=e[16];let m;return e[17]!==r||e[18]!==d?(m=s.jsxs("div",{className:"flex gap-3 items-center",children:[r,d]}),e[17]=r,e[18]=d,e[19]=m):m=e[19],m});function Q(){var d,m,g,b,v,N,C,k,w,F,T;const t=D(),{fields:e,groupedTokens:l,users:h}=t.props,{data:p,setData:u,clearErrors:f,post:x,processing:o}=M({...Object.fromEntries(e.map(a=>[a.name,a.value])),...Object.fromEntries(h.map(a=>[a.name,a.value])),...Object.fromEntries(l.flatMap(a=>a.fields.map(i=>[i.name,i.value])))}),r=a=>t.props.fields.find(i=>i.name===a),n=L.useCallback((a,i)=>{f(),u(a,i)},[]),c=a=>{a.preventDefault(),x(t.props.postLink)};return s.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[s.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[s.jsx(y,{className:"mb-3 w-fit",asChild:!0,children:s.jsxs(O,{href:t.props.btnBack.link,children:[s.jsx(B,{iconNode:$}),t.props.btnBack.title]})}),s.jsxs(y,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:o||t.props.view,children:[o&&s.jsx(G,{className:"h-4 w-4 animate-spin"}),t.props.btnSave.title]})]}),s.jsx("form",{id:"addUserForm",onSubmit:c,className:`${t.props.view?"cursor-not-allowed":""}`,children:s.jsxs("div",{className:"flex flex-col gap-6 max-w-[1144px]",children:[s.jsx("h2",{className:"font-bold text-xl",children:t.props.head}),s.jsxs("div",{className:"grid gap-4",children:[s.jsx(j,{htmlFor:(d=r("name"))==null?void 0:d.name,children:(m=r("name"))==null?void 0:m.label}),s.jsx(E,{id:(g=r("name"))==null?void 0:g.name,type:"text",required:!0,tabIndex:1,autoComplete:(b=r("name"))==null?void 0:b.name,value:p.name,onChange:a=>n("name",a.target.value),disabled:o||t.props.view,placeholder:(v=r("name"))==null?void 0:v.label})]}),s.jsxs("div",{className:"grid gap-4",children:[s.jsx(j,{htmlFor:(N=r("description"))==null?void 0:N.name,children:(C=r("description"))==null?void 0:C.label}),s.jsx(E,{id:(k=r("description"))==null?void 0:k.name,type:"text",required:!0,tabIndex:1,autoComplete:(w=r("description"))==null?void 0:w.name,value:p.description,onChange:a=>n("description",a.target.value),disabled:o||t.props.view,placeholder:(F=r("description"))==null?void 0:F.label})]}),t.props.users.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"font-bold text-xl",children:t.props.userHead}),t.props.users.map(a=>s.jsx(I,{field:a,disabled:o||t.props.view,value:p[a.name],onCheckedChange:n},a.name))]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-4",children:((T=t.props.groupedTokens)==null?void 0:T.length)>0&&t.props.groupedTokens.map(a=>s.jsxs("div",{className:"grid gap-4 content-start justify-between",children:[s.jsx("h2",{className:"font-bold text-xl mt-3",children:a.header}),a.fields.map(i=>s.jsx(I,{field:i,disabled:o||t.props.view,value:p[i.name],onCheckedChange:n,tooltip:!0},i.name))]},a.header))})]})})]})}function H(t){return t.preventDefault()}export{Q as default};
@@ -1 +0,0 @@
1
- import{c as m,j as t}from"./app.js";import{A as p}from"./app-layout-Dn8y3paC.js";import i from"./add-group-form-CzjFRYQe.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";import"./move-left-DWHsVHUF.js";import"./loader-circle-Btx4NYNU.js";const e=[];function _(){const r=m.c(1);let o;return r[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(p,{breadcrumbs:e,children:t.jsx(i,{})}),r[0]=o):o=r[0],o}export{_ as default};
@@ -1 +0,0 @@
1
- import{c as m,j as t}from"./app.js";import{A as i}from"./app-layout-Dn8y3paC.js";import p from"./add-user-form-DmgL9A2G.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";import"./input-error-F1DL-Fx6.js";import"./move-left-DWHsVHUF.js";import"./loader-circle-Btx4NYNU.js";const e=[];function F(){const o=m.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(i,{breadcrumbs:e,children:t.jsx(p,{})}),o[0]=r):r=o[0],r}export{F as default};
@@ -1 +0,0 @@
1
- import{c as pl,q as cl,r as sl,Y as ml,j as l,B as hs,X as ll,L as n,I as Le,d as gs,i as tl,S as al,b as rl,h as il,O as fl,M as xl,N as ul,P as hl,e as nl,f as gl}from"./app.js";import{Icon as ol}from"./icon-B-D8X0jg.js";import jl from"./input-error-F1DL-Fx6.js";import vl from"./material-icon-DeSoGIhT.js";import{M as wl,I as bl}from"./move-left-DWHsVHUF.js";import{L as Nl}from"./loader-circle-Btx4NYNU.js";function Ll(){var js,vs,ws,bs,Ns,Cs,Ps,ks,ys,Fs,Us,zs,Ss,Is,As,Es,Ls,Ts,Bs,qs,Vs,_s,Ds,Ms,Hs,Os,Rs,$s,Js,Xs,Ys,Gs,Ks,Qs,Ws,Zs,el;const e=pl.c(260),t=cl(),[Re,dl]=sl.useState(),{fields:$e,groups:Je,auth:Xe}=t.props;let p;e[0]!==$e?(p=Object.fromEntries($e.map(Fl)),e[0]=$e,e[1]=p):p=e[1];let c;e[2]!==Je?(c=Object.fromEntries(Je.map(yl)),e[2]=Je,e[3]=c):c=e[3];let Te;e[4]!==p||e[5]!==c?(Te={...p,...c},e[4]=p,e[5]=c,e[6]=Te):Te=e[6];const{data:i,setData:Ye,errors:Ge,setError:Ke,clearErrors:Qe,post:We,processing:o}=ml(Te);let Be,qe;e[7]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>{(async()=>{const d=await gl.get(`${window.routePrefix}/get-timezones`);dl(d.data.timezones)})()},qe=[],e[7]=Be,e[8]=qe):(Be=e[7],qe=e[8]),sl.useEffect(Be,qe);let Ve;e[9]!==t.props.fields?(Ve=r=>t.props.fields.find(d=>d.name===r),e[9]=t.props.fields,e[10]=Ve):Ve=e[10];const s=Ve;let _e;e[11]!==i.repeatUserPassword||e[12]!==i.userPassword||e[13]!==t.props.passwordError||e[14]!==t.props.postLink||e[15]!==We||e[16]!==Ke?(_e=r=>{if(r.preventDefault(),i.userPassword!==i.repeatUserPassword){Ke("repeatUserPassword",t.props.passwordError);return}We(t.props.postLink)},e[11]=i.repeatUserPassword,e[12]=i.userPassword,e[13]=t.props.passwordError,e[14]=t.props.postLink,e[15]=We,e[16]=Ke,e[17]=_e):_e=e[17];const Ze=_e;let De;e[18]!==Qe||e[19]!==Ye?(De=(r,d)=>{Qe(),Ye(r,d)},e[18]=Qe,e[19]=Ye,e[20]=De):De=e[20];const a=De;let Me;e[21]===Symbol.for("react.memo_cache_sentinel")?(Me=l.jsx(ol,{iconNode:wl}),e[21]=Me):Me=e[21];let m;e[22]!==t.props.btnBack.link||e[23]!==t.props.btnBack.title?(m=l.jsx(hs,{className:"mb-3 w-fit",asChild:!0,children:l.jsxs(ll,{href:t.props.btnBack.link,children:[Me,t.props.btnBack.title]})}),e[22]=t.props.btnBack.link,e[23]=t.props.btnBack.title,e[24]=m):m=e[24];const es=o||t.props.view;let f;e[25]!==o?(f=o&&l.jsx(Nl,{className:"h-4 w-4 animate-spin"}),e[25]=o,e[26]=f):f=e[26];let x;e[27]!==t.props.btnSave.title||e[28]!==es||e[29]!==f?(x=l.jsxs(hs,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:es,children:[f,t.props.btnSave.title]}),e[27]=t.props.btnSave.title,e[28]=es,e[29]=f,e[30]=x):x=e[30];let u;e[31]!==x||e[32]!==m?(u=l.jsxs("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4",children:[m,x]}),e[31]=x,e[32]=m,e[33]=u):u=e[33];const ss=t.props.view?"cursor-not-allowed":"";let h;e[34]!==t.props.head?(h=l.jsx("h2",{className:"font-bold text-xl",children:t.props.head}),e[34]=t.props.head,e[35]=h):h=e[35];let g;e[36]!==s?(g=(js=s("login"))==null?void 0:js.name,e[36]=s,e[37]=g):g=e[37];let j;e[38]!==s?(j=(vs=s("login"))==null?void 0:vs.label,e[38]=s,e[39]=j):j=e[39];let v;e[40]!==g||e[41]!==j?(v=l.jsx(n,{htmlFor:g,children:j}),e[40]=g,e[41]=j,e[42]=v):v=e[42];let w;e[43]!==s?(w=(ws=s("login"))==null?void 0:ws.name,e[43]=s,e[44]=w):w=e[44];const ls=i.login;let b;e[45]!==a?(b=r=>a("login",r.target.value),e[45]=a,e[46]=b):b=e[46];const ts=o||t.props.view;let N;e[47]!==s?(N=(bs=s("login"))==null?void 0:bs.label,e[47]=s,e[48]=N):N=e[48];let C;e[49]!==w||e[50]!==ls||e[51]!==b||e[52]!==ts||e[53]!==N?(C=l.jsx(Le,{id:w,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:ls,onChange:b,disabled:ts,placeholder:N}),e[49]=w,e[50]=ls,e[51]=b,e[52]=ts,e[53]=N,e[54]=C):C=e[54];let P;e[55]!==v||e[56]!==C?(P=l.jsxs("div",{className:"grid gap-4",children:[v,C]}),e[55]=v,e[56]=C,e[57]=P):P=e[57];let k;e[58]!==s?(k=(Ns=s("fullName"))==null?void 0:Ns.name,e[58]=s,e[59]=k):k=e[59];let y;e[60]!==s?(y=(Cs=s("fullName"))==null?void 0:Cs.label,e[60]=s,e[61]=y):y=e[61];let F;e[62]!==k||e[63]!==y?(F=l.jsx(n,{htmlFor:k,children:y}),e[62]=k,e[63]=y,e[64]=F):F=e[64];let U;e[65]!==s?(U=(Ps=s("fullName"))==null?void 0:Ps.name,e[65]=s,e[66]=U):U=e[66];const as=i.fullName;let z;e[67]!==a?(z=r=>a("fullName",r.target.value),e[67]=a,e[68]=z):z=e[68];const rs=o||t.props.view;let S;e[69]!==s?(S=(ks=s("fullName"))==null?void 0:ks.label,e[69]=s,e[70]=S):S=e[70];let I;e[71]!==U||e[72]!==as||e[73]!==z||e[74]!==rs||e[75]!==S?(I=l.jsx(Le,{id:U,type:"text",required:!0,tabIndex:1,autoComplete:"additional-name",value:as,onChange:z,disabled:rs,placeholder:S}),e[71]=U,e[72]=as,e[73]=z,e[74]=rs,e[75]=S,e[76]=I):I=e[76];let A;e[77]!==F||e[78]!==I?(A=l.jsxs("div",{className:"grid gap-4",children:[F,I]}),e[77]=F,e[78]=I,e[79]=A):A=e[79];let E;e[80]!==s?(E=(ys=s("email"))==null?void 0:ys.name,e[80]=s,e[81]=E):E=e[81];let L;e[82]!==s?(L=(Fs=s("email"))==null?void 0:Fs.label,e[82]=s,e[83]=L):L=e[83];let T;e[84]!==E||e[85]!==L?(T=l.jsx(n,{htmlFor:E,children:L}),e[84]=E,e[85]=L,e[86]=T):T=e[86];let B;e[87]!==s?(B=(Us=s("email"))==null?void 0:Us.name,e[87]=s,e[88]=B):B=e[88];const is=i.email;let q;e[89]!==a?(q=r=>a("email",r.target.value),e[89]=a,e[90]=q):q=e[90];const os=o||t.props.view;let V;e[91]!==s?(V=(zs=s("email"))==null?void 0:zs.label,e[91]=s,e[92]=V):V=e[92];let _;e[93]!==B||e[94]!==is||e[95]!==q||e[96]!==os||e[97]!==V?(_=l.jsx(Le,{id:B,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:is,onChange:q,disabled:os,placeholder:V}),e[93]=B,e[94]=is,e[95]=q,e[96]=os,e[97]=V,e[98]=_):_=e[98];let D;e[99]!==T||e[100]!==_?(D=l.jsxs("div",{className:"grid gap-4",children:[T,_]}),e[99]=T,e[100]=_,e[101]=D):D=e[101];let M;e[102]!==P||e[103]!==A||e[104]!==D?(M=l.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[P,A,D]}),e[102]=P,e[103]=A,e[104]=D,e[105]=M):M=e[105];let H;e[106]!==s?(H=(Ss=s("timezone"))==null?void 0:Ss.name,e[106]=s,e[107]=H):H=e[107];let O;e[108]!==s?(O=(Is=s("timezone"))==null?void 0:Is.label,e[108]=s,e[109]=O):O=e[109];let R;e[110]!==H||e[111]!==O?(R=l.jsx(n,{htmlFor:H,children:O}),e[110]=H,e[111]=O,e[112]=R):R=e[112];let $;e[113]!==a?($=r=>a("timezone",r),e[113]=a,e[114]=$):$=e[114];const ns=i.timezone,ds=o||t.props.view;let J;e[115]!==s?(J=(As=s("timezone"))==null?void 0:As.name,e[115]=s,e[116]=J):J=e[116];let X;e[117]!==J?(X=l.jsx(al,{className:"w-full cursor-pointer",children:l.jsx(rl,{placeholder:J})}),e[117]=J,e[118]=X):X=e[118];let Y;e[119]!==Re?(Y=Re??[],e[119]=Re,e[120]=Y):Y=e[120];let G;e[121]!==Y?(G=Y.map(kl),e[121]=Y,e[122]=G):G=e[122];let K;e[123]!==G?(K=l.jsx(il,{children:G}),e[123]=G,e[124]=K):K=e[124];let Q;e[125]!==$||e[126]!==ns||e[127]!==ds||e[128]!==X||e[129]!==K?(Q=l.jsxs(tl,{onValueChange:$,defaultValue:ns,disabled:ds,children:[X,K]}),e[125]=$,e[126]=ns,e[127]=ds,e[128]=X,e[129]=K,e[130]=Q):Q=e[130];let W;e[131]!==R||e[132]!==Q?(W=l.jsxs("div",{className:"grid gap-4",children:[R,Q]}),e[131]=R,e[132]=Q,e[133]=W):W=e[133];let Z;e[134]!==i.date||e[135]!==s||e[136]!==a||e[137]!==o?(Z=s("date")&&l.jsxs("div",{className:"grid gap-4",children:[l.jsx(n,{htmlFor:(Es=s("date"))==null?void 0:Es.name,children:(Ls=s("date"))==null?void 0:Ls.label}),l.jsx(Le,{id:(Ts=s("date"))==null?void 0:Ts.name,type:"date",className:"max-w-fit",tabIndex:1,value:i.date,onChange:r=>a("date",r.target.value),disabled:o})]}),e[134]=i.date,e[135]=s,e[136]=a,e[137]=o,e[138]=Z):Z=e[138];let ee;e[139]!==i.isAdmin||e[140]!==s||e[141]!==a||e[142]!==t.props.view||e[143]!==o?(ee=s("isAdmin")&&l.jsxs("div",{className:"grid gap-4",children:[l.jsx(n,{className:"cursor-pointer",htmlFor:(Bs=s("isAdmin"))==null?void 0:Bs.name,children:(qs=s("isAdmin"))==null?void 0:qs.label}),l.jsx(gs,{id:(Vs=s("isAdmin"))==null?void 0:Vs.name,className:"cursor-pointer size-5",disabled:o||t.props.view,checked:i.isAdmin,onCheckedChange:r=>a("isAdmin",r)})]}),e[139]=i.isAdmin,e[140]=s,e[141]=a,e[142]=t.props.view,e[143]=o,e[144]=ee):ee=e[144];let se;e[145]!==i.isConfirmed||e[146]!==s||e[147]!==a||e[148]!==t.props.view||e[149]!==o?(se=s("isConfirmed")&&l.jsxs("div",{className:"grid gap-4",children:[l.jsx(n,{className:"cursor-pointer",htmlFor:(_s=s("isConfirmed"))==null?void 0:_s.name,children:(Ds=s("isConfirmed"))==null?void 0:Ds.label}),l.jsx(gs,{id:(Ms=s("isConfirmed"))==null?void 0:Ms.name,className:"cursor-pointer size-5",disabled:o||t.props.view,checked:i.isConfirmed,onCheckedChange:r=>a("isConfirmed",r)})]}),e[145]=i.isConfirmed,e[146]=s,e[147]=a,e[148]=t.props.view,e[149]=o,e[150]=se):se=e[150];let le;e[151]!==ee||e[152]!==se?(le=l.jsxs("div",{className:"flex gap-6",children:[ee,se]}),e[151]=ee,e[152]=se,e[153]=le):le=e[153];let te;e[154]!==Z||e[155]!==le?(te=l.jsxs("div",{className:"flex flex-col md:flex-row justify-start gap-4 xl:justify-between items-start md:items-center",children:[Z,le]}),e[154]=Z,e[155]=le,e[156]=te):te=e[156];let ae;e[157]!==i.locale||e[158]!==s||e[159]!==a||e[160]!==t.props.locales||e[161]!==t.props.view||e[162]!==o?(ae=s("locale")&&l.jsxs("div",{className:"grid gap-4",children:[l.jsx(n,{htmlFor:(Hs=s("locale"))==null?void 0:Hs.name,children:(Os=s("locale"))==null?void 0:Os.label}),l.jsxs(tl,{onValueChange:r=>a("locale",r),defaultValue:i.locale,disabled:o||t.props.view,children:[l.jsx(al,{className:"w-full cursor-pointer",children:l.jsx(rl,{placeholder:(Rs=s("locale"))==null?void 0:Rs.name})}),l.jsx(il,{children:(t.props.locales??[]).map(Pl)})]})]}),e[157]=i.locale,e[158]=s,e[159]=a,e[160]=t.props.locales,e[161]=t.props.view,e[162]=o,e[163]=ae):ae=e[163];let re;e[164]!==W||e[165]!==te||e[166]!==ae?(re=l.jsxs("div",{className:"basis-1/2 flex flex-col gap-6",children:[W,te,ae]}),e[164]=W,e[165]=te,e[166]=ae,e[167]=re):re=e[167];let ie;e[168]!==M||e[169]!==re?(ie=l.jsxs("div",{className:"flex-col xl:flex-row flex gap-16",children:[M,re]}),e[168]=M,e[169]=re,e[170]=ie):ie=e[170];let oe;e[171]!==Xe.user.isAdministrator||e[172]!==i.login||e[173]!==t.props.userPretend?(oe=Xe.user.isAdministrator&&l.jsx(hs,{className:"w-fit",asChild:!0,variant:"outline",children:l.jsxs(ll,{href:t.props.userPretend.postLink,method:"post",data:{login:i.login,pretend:!0},children:[l.jsx(vl,{name:"masks",className:"!text-[18px]"}),t.props.userPretend.label]})}),e[171]=Xe.user.isAdministrator,e[172]=i.login,e[173]=t.props.userPretend,e[174]=oe):oe=e[174];let ne;e[175]!==s?(ne=($s=s("userPassword"))==null?void 0:$s.label,e[175]=s,e[176]=ne):ne=e[176];let de;e[177]!==ne?(de=l.jsx("label",{className:"font-bold text-xl",children:ne}),e[177]=ne,e[178]=de):de=e[178];let He;e[179]===Symbol.for("react.memo_cache_sentinel")?(He=l.jsx(fl,{onClick:Cl,children:l.jsx(ol,{iconNode:bl,className:"text-primary w-5 h-5 cursor-pointer"})}),e[179]=He):He=e[179];let pe;e[180]!==s?(pe=(Js=s("userPassword"))==null?void 0:Js.tooltip,e[180]=s,e[181]=pe):pe=e[181];let ce;e[182]!==pe?(ce=l.jsx(xl,{children:l.jsxs(ul,{children:[He,l.jsx(hl,{align:"center",side:"top",children:l.jsx("p",{children:pe})})]})}),e[182]=pe,e[183]=ce):ce=e[183];let me;e[184]!==de||e[185]!==ce?(me=l.jsxs("div",{className:"flex gap-3",children:[de,ce]}),e[184]=de,e[185]=ce,e[186]=me):me=e[186];let fe;e[187]!==s?(fe=(Xs=s("userPassword"))==null?void 0:Xs.name,e[187]=s,e[188]=fe):fe=e[188];let xe;e[189]!==s?(xe=(Ys=s("userPassword"))==null?void 0:Ys.label,e[189]=s,e[190]=xe):xe=e[190];let ue;e[191]!==fe||e[192]!==xe?(ue=l.jsx(n,{htmlFor:fe,children:xe}),e[191]=fe,e[192]=xe,e[193]=ue):ue=e[193];let he;e[194]!==s?(he=(Gs=s("userPassword"))==null?void 0:Gs.name,e[194]=s,e[195]=he):he=e[195];const ps=!t.props.edit,cs=i.password;let ge;e[196]!==a?(ge=r=>a("userPassword",r.target.value),e[196]=a,e[197]=ge):ge=e[197];const ms=o||t.props.view;let je;e[198]!==s?(je=(Ks=s("userPassword"))==null?void 0:Ks.label,e[198]=s,e[199]=je):je=e[199];let ve;e[200]!==he||e[201]!==ps||e[202]!==cs||e[203]!==ge||e[204]!==ms||e[205]!==je?(ve=l.jsx(Le,{id:he,type:"password",required:ps,tabIndex:1,autoComplete:"new-password",value:cs,onChange:ge,disabled:ms,placeholder:je}),e[200]=he,e[201]=ps,e[202]=cs,e[203]=ge,e[204]=ms,e[205]=je,e[206]=ve):ve=e[206];let we;e[207]!==ue||e[208]!==ve?(we=l.jsxs("div",{className:"grid gap-4 col-span-1",children:[ue,ve]}),e[207]=ue,e[208]=ve,e[209]=we):we=e[209];let be;e[210]!==s?(be=(Qs=s("repeatUserPassword"))==null?void 0:Qs.name,e[210]=s,e[211]=be):be=e[211];let Ne;e[212]!==s?(Ne=(Ws=s("repeatUserPassword"))==null?void 0:Ws.label,e[212]=s,e[213]=Ne):Ne=e[213];let Ce;e[214]!==be||e[215]!==Ne?(Ce=l.jsx(n,{htmlFor:be,children:Ne}),e[214]=be,e[215]=Ne,e[216]=Ce):Ce=e[216];let Pe;e[217]!==s?(Pe=(Zs=s("repeatUserPassword"))==null?void 0:Zs.name,e[217]=s,e[218]=Pe):Pe=e[218];const fs=!t.props.edit,xs=i.repeatUserPassword;let ke;e[219]!==a?(ke=r=>a("repeatUserPassword",r.target.value),e[219]=a,e[220]=ke):ke=e[220];const us=o||t.props.view;let ye;e[221]!==s?(ye=(el=s("repeatUserPassword"))==null?void 0:el.label,e[221]=s,e[222]=ye):ye=e[222];let Fe;e[223]!==Pe||e[224]!==fs||e[225]!==xs||e[226]!==ke||e[227]!==us||e[228]!==ye?(Fe=l.jsx(Le,{id:Pe,type:"password",required:fs,tabIndex:1,autoComplete:"new-password",value:xs,onChange:ke,disabled:us,placeholder:ye}),e[223]=Pe,e[224]=fs,e[225]=xs,e[226]=ke,e[227]=us,e[228]=ye,e[229]=Fe):Fe=e[229];let Ue;e[230]!==Ge.repeatUserPassword?(Ue=l.jsx(jl,{message:Ge.repeatUserPassword}),e[230]=Ge.repeatUserPassword,e[231]=Ue):Ue=e[231];let ze;e[232]!==Ce||e[233]!==Fe||e[234]!==Ue?(ze=l.jsxs("div",{className:"grid gap-4 col-span-1 col-start-1",children:[Ce,Fe,Ue]}),e[232]=Ce,e[233]=Fe,e[234]=Ue,e[235]=ze):ze=e[235];let Se;e[236]!==we||e[237]!==ze?(Se=l.jsxs("div",{className:"grid grid-col-1 lg:grid-cols-2 grid-rows-2 gap-x-16 gap-y-6",children:[we,ze]}),e[236]=we,e[237]=ze,e[238]=Se):Se=e[238];let Ie;e[239]!==i||e[240]!==a||e[241]!==t.props.groupHead||e[242]!==t.props.groups||e[243]!==t.props.view||e[244]!==o?(Ie=t.props.groups.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("h2",{className:"font-bold text-xl",children:t.props.groupHead}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-5 xl:grid-cols-6 gap-4",children:t.props.groups.map(r=>l.jsxs("div",{className:"grid gap-4",children:[l.jsx(n,{className:"cursor-pointer",htmlFor:r.name,children:r.label}),l.jsx(gs,{id:r.name,disabled:o||t.props.view,className:"cursor-pointer size-5",checked:i[r.name],onCheckedChange:d=>a(r.name,d)})]},r.name))})]}),e[239]=i,e[240]=a,e[241]=t.props.groupHead,e[242]=t.props.groups,e[243]=t.props.view,e[244]=o,e[245]=Ie):Ie=e[245];let Ae;e[246]!==h||e[247]!==ie||e[248]!==oe||e[249]!==me||e[250]!==Se||e[251]!==Ie?(Ae=l.jsxs("div",{className:"flex flex-col gap-10 max-w-[1144px]",children:[h,ie,oe,me,Se,Ie]}),e[246]=h,e[247]=ie,e[248]=oe,e[249]=me,e[250]=Se,e[251]=Ie,e[252]=Ae):Ae=e[252];let Ee;e[253]!==Ze||e[254]!==Ae||e[255]!==ss?(Ee=l.jsx("form",{id:"addUserForm",onSubmit:Ze,className:ss,children:Ae}),e[253]=Ze,e[254]=Ae,e[255]=ss,e[256]=Ee):Ee=e[256];let Oe;return e[257]!==Ee||e[258]!==u?(Oe=l.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[u,Ee]}),e[257]=Ee,e[258]=u,e[259]=Oe):Oe=e[259],Oe}function Cl(e){return e.preventDefault()}function Pl(e){return l.jsx(nl,{value:e.value,children:e.label},e.value)}function kl(e){return l.jsx(nl,{value:e.value,children:e.label},e.value)}function yl(e){return[e.name,e.value]}function Fl(e){return[e.name,e.value]}export{Ll as default};
@@ -1 +0,0 @@
1
- import{r as b,c as x,q as j,j as p,V as u,Z as h}from"./app.js";import A from"./app-shell-C1wDrRCe.js";import{AppSidebar as S}from"./app-sidebar-BisOEG_p.js";import{AppSidebarHeader as y}from"./app-sidebar-header-CL1OSuV8.js";const E=b.memo(m=>{const e=x.c(14),{children:r,breadcrumbs:t,className:l}=m;let s;e[0]!==t?(s=t===void 0?[]:t,e[0]=t,e[1]=s):s=e[1];const o=s,f=j().props.title;let i;e[2]!==f?(i=p.jsx(u,{title:f}),e[2]=f,e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=p.jsx(S,{}),e[4]=n):n=e[4];let a;e[5]!==o?(a=p.jsx(y,{breadcrumbs:o}),e[5]=o,e[6]=a):a=e[6];let c;e[7]!==r||e[8]!==l||e[9]!==a?(c=p.jsxs(h,{className:l,children:[a,r]}),e[7]=r,e[8]=l,e[9]=a,e[10]=c):c=e[10];let d;return e[11]!==i||e[12]!==c?(d=p.jsxs(A,{variant:"sidebar",children:[i,n,c]}),e[11]=i,e[12]=c,e[13]=d):d=e[13],d}),_=b.memo(m=>{const e=x.c(10);let r,t,l,s;e[0]!==m?({children:t,className:l,breadcrumbs:r,...s}=m,e[0]=m,e[1]=r,e[2]=t,e[3]=l,e[4]=s):(r=e[1],t=e[2],l=e[3],s=e[4]);let o;return e[5]!==r||e[6]!==t||e[7]!==l||e[8]!==s?(o=p.jsx(E,{breadcrumbs:r,className:l,...s,children:t}),e[5]=r,e[6]=t,e[7]=l,e[8]=s,e[9]=o):o=e[9],o});export{_ as A};
@@ -1 +0,0 @@
1
- import{c as D,q as F,j as s,a4 as G,C as B,a5 as R,a6 as T,a7 as H,a8 as M,a9 as w,aa as J,ab as U,ac as V,ad as X,ae as $,X as v,af as E,ag as q,ah as y,ai as z,aj as A,ak as K,B as L,al as O,am as P,an as Q,ao as W,ap as Y}from"./app.js";import{NavMain as Z}from"./nav-main-DDQ-_Oed.js";import r from"./material-icon-DeSoGIhT.js";import{C as _}from"./chevrons-up-down-D3t3UGV7.js";function ie(){const e=D.c(41),a=F(),k=`w-full ${a.props.section?"":"pointer-events-none"}`;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(r,{name:"rocket_launch",className:"!text-[18px]"}),e[0]=b):b=e[0];let l;e[1]!==a.props.brand?(l=s.jsx("span",{className:"group-data-[state=collapsed]:hidden",children:a.props.brand}),e[1]=a.props.brand,e[2]=l):l=e[2];let n;e[3]!==a.props.section?(n=a.props.section&&s.jsx(_,{className:"ml-auto group-data-[state=collapsed]:hidden"}),e[3]=a.props.section,e[4]=n):n=e[4];let i;e[5]!==l||e[6]!==n?(i=s.jsxs("div",{children:[b,l,n]}),e[5]=l,e[6]=n,e[7]=i):i=e[7];let t;e[8]!==k||e[9]!==i?(t=s.jsx(K,{asChild:!0,className:"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground rounded-md",children:s.jsx(y,{asChild:!0,children:s.jsx(L,{variant:"ghost",asChild:!0,className:k,children:i})})}),e[8]=k,e[9]=i,e[10]=t):t=e[10];let c;e[11]!==a.props.section?(c=a.props.section&&s.jsx(G,{side:"right",className:"z-[1003]",children:a.props.section.map(ee)}),e[11]=a.props.section,e[12]=c):c=e[12];let p;e[13]!==t||e[14]!==c?(p=s.jsx(O,{className:"p-0 shadow-none border-none bg-transparent hidden md:block",children:s.jsxs(P,{children:[t,c]})}),e[13]=t,e[14]=c,e[15]=p):p=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(r,{name:"rocket_launch",className:"!text-[18px]"}),e[16]=N):N=e[16];let o;e[17]!==a.props.brand?(o=s.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:a.props.brand}),e[17]=a.props.brand,e[18]=o):o=e[18];let d;e[19]!==a.props.section?(d=a.props.section&&s.jsx(B,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"}),e[19]=a.props.section,e[20]=d):d=e[20];let x;e[21]!==d||e[22]!==o?(x=s.jsx(q,{asChild:!0,children:s.jsxs(y,{children:[N,o,d]})}),e[21]=d,e[22]=o,e[23]=x):x=e[23];let h;e[24]!==a.props.section?(h=a.props.section&&s.jsx(R,{children:s.jsx(T,{children:a.props.section&&a.props.section.map(S)})}),e[24]=a.props.section,e[25]=h):h=e[25];let j;e[26]!==x||e[27]!==h?(j=s.jsx(Q,{className:"px-2 py-0 block md:hidden",children:s.jsx(M,{children:s.jsx(E,{asChild:!0,className:"group/collapsible",children:s.jsxs(w,{children:[x,h]})})})}),e[26]=x,e[27]=h,e[28]=j):j=e[28];let m;e[29]!==a.props.brand||e[30]!==j||e[31]!==p?(m=s.jsx(H,{children:s.jsx(M,{children:s.jsxs(w,{children:[p,j]},a.props.brand)})}),e[29]=a.props.brand,e[30]=j,e[31]=p,e[32]=m):m=e[32];let u;e[33]!==a.props.menu?(u=s.jsx(J,{children:s.jsx(Z,{items:a.props.menu})}),e[33]=a.props.menu,e[34]=u):u=e[34];const C=a.props.showVersion&&"v.4.2.0";let f;e[35]!==C?(f=s.jsx(W,{children:s.jsx("div",{className:"text-center opacity-70",children:C})}),e[35]=C,e[36]=f):f=e[36];let g;return e[37]!==m||e[38]!==u||e[39]!==f?(g=s.jsxs(Y,{collapsible:"icon",variant:"inset",children:[m,u,f]}),e[37]=m,e[38]=u,e[39]=f,e[40]=g):g=e[40],g}function S(e){return e.subItems?s.jsx(M,{children:s.jsx(E,{asChild:!0,className:"group/collapsible-sub",children:s.jsxs(w,{children:[s.jsx(q,{asChild:!0,children:s.jsxs(y,{children:[s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),s.jsx(B,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible-sub:rotate-90"})]})}),s.jsx(R,{children:s.jsx(T,{children:e.subItems.map(I)})})]})})},e.id):s.jsx(z,{children:s.jsx(A,{asChild:!0,children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}):s.jsxs(v,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]})})},e.id)}function I(e){return s.jsx(z,{children:s.jsx(A,{asChild:!0,children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}):s.jsxs(v,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]})})},e.id)}function ee(e){return s.jsx("div",{children:e.subItems?s.jsxs(U,{children:[s.jsxs(V,{className:"flex gap-2 items-center cursor-pointer",children:[s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}),s.jsx(X,{children:e.subItems.map(se)})]}):s.jsx($,{children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]}):s.jsxs(v,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]})})},e.id)}function se(e){return s.jsx($,{children:e.type==="blank"?s.jsxs("a",{href:e.link,target:"_blank",className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]},e.id):s.jsxs(v,{href:e.link,className:"flex gap-2 items-center",children:[e.icon&&s.jsx(r,{name:e.icon,className:"!text-[18px]"}),s.jsx("span",{className:"hover:underline",children:e.title})]},e.id)},e.id)}export{ie as AppSidebar};
@@ -1,11 +0,0 @@
1
- import{a as u,c as j,j as t,a3 as k,B as y}from"./app.js";import{Breadcrumbs as g}from"./breadcrumbs-BVZtAG3J.js";import{NavUser as N}from"./nav-user-BwBu-VwZ.js";import{Icon as x}from"./icon-B-D8X0jg.js";import{u as v}from"./use-appearance-J8J2w43p.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./chevrons-up-down-D3t3UGV7.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const w=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],_=u("moon",w);/**
7
- * @license lucide-react v0.485.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const M=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],S=u("sun",M);function C(b){const e=j.c(19),{breadcrumbs:l}=b;let n;e[0]!==l?(n=l===void 0?[]:l,e[0]=l,e[1]=n):n=e[1];const h=n,{appearance:s,updateAppearance:f}=v();let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(k,{className:"-ml-1"}),e[2]=m):m=e[2];let a;e[3]!==h?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(g,{breadcrumbs:h})]}),e[3]=h,e[4]=a):a=e[4];let r;e[5]!==s||e[6]!==f?(r=()=>f(s==="light"?"dark":"light"),e[5]=s,e[6]=f,e[7]=r):r=e[7];let i;e[8]!==s?(i=s==="light"?t.jsx(x,{iconNode:_,className:"h-2 w-2"}):t.jsx(x,{iconNode:S,className:"h-2 w-2 text-white"}),e[8]=s,e[9]=i):i=e[9];let o;e[10]!==r||e[11]!==i?(o=t.jsx(y,{variant:"ghost",size:"icon",className:"shrink-0 cursor-pointer",onClick:r,children:i}),e[10]=r,e[11]=i,e[12]=o):o=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(N,{}),e[13]=p):p=e[13];let c;e[14]!==o?(c=t.jsxs("div",{className:"flex gap-4 items-center",children:[o,p]}),e[14]=o,e[15]=c):c=e[15];let d;return e[16]!==a||e[17]!==c?(d=t.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:t.jsxs("div",{className:"flex justify-between w-full",children:[a,c]})}),e[16]=a,e[17]=c,e[18]=d):d=e[18],d}export{C as AppSidebarHeader};
@@ -1,6 +0,0 @@
1
- import{a as o}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const e=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],n=o("chevrons-up-down",e);export{n as C};
@@ -1,6 +0,0 @@
1
- import{a as N,c as b,aw as k,ax as w,j as a,ay as C,B as _,az as B,aA as D,aB as M}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const E=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],R=N("calendar",E);function $(g){const e=b.c(24),{selected:t,onSelect:m,placeholder:v,className:p,buttonClassName:f,disabled:P,fromDate:h,toDate:u}=g,x=v===void 0?"Pick a date":v,j=P===void 0?!1:P,y=!t&&"text-muted-foreground";let s;e[0]!==f||e[1]!==y?(s=k("w-[240px] justify-start text-left font-normal cursor-pointer border-input",y,f),e[0]=f,e[1]=y,e[2]=s):s=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(R,{className:"mr-2 h-4 w-4"}),e[3]=c):c=e[3];let o;e[4]!==x||e[5]!==t?(o=t?w(t,"PPP"):a.jsx("span",{children:x}),e[4]=x,e[5]=t,e[6]=o):o=e[6];let l;e[7]!==j||e[8]!==s||e[9]!==o?(l=a.jsx(C,{asChild:!0,children:a.jsxs(_,{variant:"outline",className:s,disabled:j,children:[c,o]})}),e[7]=j,e[8]=s,e[9]=o,e[10]=l):l=e[10];let r;e[11]!==p?(r=k("w-auto p-0",p),e[11]=p,e[12]=r):r=e[12];let n;e[13]!==h||e[14]!==m||e[15]!==t||e[16]!==u?(n=a.jsx(B,{mode:"single",selected:t,onSelect:m,initialFocus:!0,fromDate:h,toDate:u}),e[13]=h,e[14]=m,e[15]=t,e[16]=u,e[17]=n):n=e[17];let i;e[18]!==r||e[19]!==n?(i=a.jsx(D,{className:r,align:"start",children:n}),e[18]=r,e[19]=n,e[20]=i):i=e[20];let d;return e[21]!==i||e[22]!==l?(d=a.jsxs(M,{children:[l,i]}),e[21]=i,e[22]=l,e[23]=d):d=e[23],d}export{$ as DatePicker};
@@ -1,11 +0,0 @@
1
- import{a as v,r as w,c as N,aw as z,j as t,b0 as L,b1 as k,B as m,X as T,b2 as B,b3 as M,b4 as E,b5 as R,b6 as S}from"./app.js";import{Icon as H}from"./icon-B-D8X0jg.js";import{T as I}from"./trash-2-CsxWwHNc.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const P=[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]],A=v("between-horizontal-start",P);/**
7
- * @license lucide-react v0.485.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const $=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],G=v("pencil",$),q=w.forwardRef((C,j)=>{const e=N.c(27),{btnTitle:p,link:f,delModal:s,handleDelete:u,variant:_,btnCLass:y,isLink:D}=C,b=D===void 0?!0:D,g=_??"ghost";let a;e[0]!==y?(a=z("cursor-pointer",y),e[0]=y,e[1]=a):a=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(H,{iconNode:I}),e[2]=d):d=e[2];let i;e[3]!==p||e[4]!==j||e[5]!==g||e[6]!==a?(i=t.jsx(B,{asChild:!0,children:t.jsxs(m,{ref:j,size:"list",variant:g,className:a,children:[d,p]})}),e[3]=p,e[4]=j,e[5]=g,e[6]=a,e[7]=i):i=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(M,{children:"Delete"}),e[8]=h):h=e[8];let l;e[9]!==s.text?(l=t.jsxs(L,{children:[h,t.jsx("div",{className:"mt-2 text-base",children:s.text})]}),e[9]=s.text,e[10]=l):l=e[10];let o;e[11]!==s.yes||e[12]!==u||e[13]!==b||e[14]!==f?(o=t.jsx(k,{asChild:!0,children:b?t.jsx(m,{variant:"destructive",asChild:!0,children:t.jsx(T,{href:f??"#",children:s.yes})}):t.jsx(m,{variant:"destructive",asChild:!0,onClick:u,children:t.jsx("span",{children:s.yes})})}),e[11]=s.yes,e[12]=u,e[13]=b,e[14]=f,e[15]=o):o=e[15];let r;e[16]!==s.no?(r=t.jsx(k,{asChild:!0,children:t.jsx(m,{type:"button",variant:"secondary",children:s.no})}),e[16]=s.no,e[17]=r):r=e[17];let n;e[18]!==o||e[19]!==r?(n=t.jsxs(E,{children:[o,r]}),e[18]=o,e[19]=r,e[20]=n):n=e[20];let c;e[21]!==n||e[22]!==l?(c=t.jsxs(R,{className:"sm:max-w-[425px]",children:[l,n]}),e[21]=n,e[22]=l,e[23]=c):c=e[23];let x;return e[24]!==c||e[25]!==i?(x=t.jsxs(S,{children:[i,c]}),e[24]=c,e[25]=i,e[26]=x):x=e[26],x});q.displayName="DeleteModal";export{A as B,q as D,G as P};
@@ -1 +0,0 @@
1
- import{q as v,Y as f,r as m,j as e,B as i}from"./app.js";import{r as p,h as l,g as d}from"./form-state-702tb_BV.js";import{LabelRenderer as c,LazyField as y}from"./add-form-Ch5HOaI3.js";import x from"./input-error-F1DL-Fx6.js";import F from"./field-renderer-Dgj1S2Vi.js";import{L as g}from"./loader-circle-Btx4NYNU.js";import"./icon-B-D8X0jg.js";import"./move-left-DWHsVHUF.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-Bu3n-kcV.js";const B=()=>{const a=v(),{fields:t}=a.props,{data:o,setData:h,post:j,processing:r}=f(Object.fromEntries(t.map(s=>[s.name,s.value??void 0])));m.useEffect(()=>(p(),()=>{p()}),[]);const n=m.useCallback((s,b)=>{h(s,b)},[]),u=s=>{s.preventDefault(),j(a.props.postLink)};return e.jsxs("div",{className:"p-4 w-full",children:[e.jsx("div",{className:"w-full sticky z-[1001] py-4 pb-8 top-0 h-fit bg-background flex gap-4 lg:hidden",children:e.jsxs(i,{variant:"green",type:"submit",className:"w-fit",form:"addUserForm",disabled:r||l(),children:[r&&e.jsx(g,{className:"h-4 w-4 animate-spin"}),a.props.btnSave.title]})}),e.jsx("form",{className:"mt-8",id:"addUserForm",onSubmit:u,children:e.jsxs("div",{className:"grid lg:grid-cols-[1fr_150px] gap-4 max-w-[1144px] pb-8",children:[e.jsx("div",{className:"flex flex-col gap-10",children:t.map(s=>e.jsx("div",{className:"grid gap-4 w-full",children:s.type==="markdown"||s.type==="table"||s.type==="jsonEditor"||s.type==="codeEditor"||s.type==="geoJson"?e.jsxs(e.Fragment,{children:[e.jsx(c,{field:s}),e.jsx(x,{message:d(`${s.type}-${s.name}`)}),e.jsx(y,{field:s,value:o[s.name],onChange:n,processing:r})]}):e.jsxs(e.Fragment,{children:[e.jsx(c,{field:s}),e.jsx(x,{message:d(`${s.type}-${s.name}`)}),e.jsx(F,{field:s,value:o[s.name],onChange:n,processing:r})]})},s.name))}),e.jsx("div",{className:"p-4 rounded-md h-fit sticky top-[84px] shadow hidden lg:block",children:e.jsxs(i,{variant:"green",type:"submit",className:"w-fit",disabled:r||l(),children:[r&&e.jsx(g,{className:"h-4 w-4 animate-spin"}),a.props.btnSave.title]})})]})})]})};export{B as default};
@@ -1 +0,0 @@
1
- import{c as m,j as t}from"./app.js";import{A as p}from"./app-layout-Dn8y3paC.js";import i from"./form-Bgv171J2.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";import"./form-state-702tb_BV.js";import"./add-form-Ch5HOaI3.js";import"./field-renderer-Dgj1S2Vi.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-Bu3n-kcV.js";import"./input-error-F1DL-Fx6.js";import"./move-left-DWHsVHUF.js";import"./loader-circle-Btx4NYNU.js";const e=[];function k(){const o=m.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{breadcrumbs:e,children:t.jsx(i,{})}),o[0]=r):r=o[0],r}export{k as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VanillaJSONEditor-DfRefswH.js","./app.js","./app-B6cCPfWk.css","./debounce-qdyXyOeG.js","./index-Vcq4gwWv.js","./use-appearance-J8J2w43p.js","./form-state-702tb_BV.js","./add-form-Ch5HOaI3.js","./icon-B-D8X0jg.js","./field-renderer-Dgj1S2Vi.js","./dynamic-controls-CSVVCONh.js","./multi-select-Bu3n-kcV.js","./field-renderer-BlBZuSiD.css","./input-error-F1DL-Fx6.js","./move-left-DWHsVHUF.js","./loader-circle-Btx4NYNU.js","./add-group-form-CzjFRYQe.js","./add-user-form-DmgL9A2G.js","./material-icon-DeSoGIhT.js","./app-shell-C1wDrRCe.js","./app-sidebar-header-CL1OSuV8.js","./breadcrumbs-BVZtAG3J.js","./nav-user-BwBu-VwZ.js","./user-info-CnB2lvpg.js","./user-menu-content-BFbaJw6v.js","./chevrons-up-down-D3t3UGV7.js","./app-sidebar-BisOEG_p.js","./nav-main-DDQ-_Oed.js","./date-picker-DKdT6XTZ.js","./form-Bgv171J2.js","./geo-json-vodY1YtH.js","./trash-2-CsxWwHNc.js","./handsontable-C-ThjbaJ.js","./list-table-8sDi0ZKa.js","./del-modal-DZ5wZWad.js","./pagination-render-BoDDo2E1.js","./monaco-editor-9fDiyfuW.js","./use-window-size-DLSEoR6e.js","./nav-footer-DQwIyd7c.js","./toast-editor-1Pul3oMs.js"])))=>i.map(i=>d[i]);
2
- import{q as E,r as u,j as o,V as x,X as v,_ as t}from"./app.js";const P=(m,r,_)=>{const e=m[r];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+r+(r.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function I(){const m=E(),[r,_]=u.useState(null),[e,s]=u.useState(null),n=m.props.controls,l=async()=>{const{component:i,props:p}=n[0],d=(await P(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./VanillaJSONEditor-DfRefswH.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./add-form-Ch5HOaI3.js"),__vite__mapDeps([7,1,2,8,9,10,11,12,6,13,14,15]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-CzjFRYQe.js"),__vite__mapDeps([16,1,2,8,14,15]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-DmgL9A2G.js"),__vite__mapDeps([17,1,2,8,13,18,14,15]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-C1wDrRCe.js"),__vite__mapDeps([19,1,2]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-CL1OSuV8.js"),__vite__mapDeps([20,1,2,21,22,23,24,25,8,5]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-BisOEG_p.js"),__vite__mapDeps([26,1,2,27,18,25]),import.meta.url),"../components/breadcrumbs.tsx":()=>t(()=>import("./breadcrumbs-BVZtAG3J.js"),__vite__mapDeps([21,1,2]),import.meta.url),"../components/date-picker.tsx":()=>t(()=>import("./date-picker-DKdT6XTZ.js"),__vite__mapDeps([28,1,2]),import.meta.url),"../components/dynamic-controls.tsx":()=>t(()=>import("./dynamic-controls-CSVVCONh.js"),__vite__mapDeps([10,1,2]),import.meta.url),"../components/field-renderer.tsx":()=>t(()=>import("./field-renderer-Dgj1S2Vi.js"),__vite__mapDeps([9,1,2,10,11,12]),import.meta.url),"../components/form.tsx":()=>t(()=>import("./form-Bgv171J2.js"),__vite__mapDeps([29,1,2,6,7,8,9,10,11,12,13,14,15]),import.meta.url),"../components/geo-json.tsx":()=>t(()=>import("./geo-json-vodY1YtH.js"),__vite__mapDeps([30,1,2,31]),import.meta.url),"../components/handsontable.tsx":()=>t(()=>import("./handsontable-C-ThjbaJ.js"),__vite__mapDeps([32,1,2,5]),import.meta.url),"../components/icon.tsx":()=>t(()=>import("./icon-B-D8X0jg.js"),__vite__mapDeps([8,1,2]),import.meta.url),"../components/input-error.tsx":()=>t(()=>import("./input-error-F1DL-Fx6.js"),__vite__mapDeps([13,1,2]),import.meta.url),"../components/list-table.tsx":()=>t(()=>import("./list-table-8sDi0ZKa.js"),__vite__mapDeps([33,1,2,8,18,34,31,35]),import.meta.url),"../components/material-icon.tsx":()=>t(()=>import("./material-icon-DeSoGIhT.js"),__vite__mapDeps([18,1,2]),import.meta.url),"../components/monaco-editor.tsx":()=>t(()=>import("./monaco-editor-9fDiyfuW.js"),__vite__mapDeps([36,1,2,5,37]),import.meta.url),"../components/multi-select.tsx":()=>t(()=>import("./multi-select-Bu3n-kcV.js"),__vite__mapDeps([11,1,2]),import.meta.url),"../components/nav-footer.tsx":()=>t(()=>import("./nav-footer-DQwIyd7c.js"),__vite__mapDeps([38,1,2,8]),import.meta.url),"../components/nav-main.tsx":()=>t(()=>import("./nav-main-DDQ-_Oed.js"),__vite__mapDeps([27,1,2,18]),import.meta.url),"../components/nav-user.tsx":()=>t(()=>import("./nav-user-BwBu-VwZ.js"),__vite__mapDeps([22,1,2,23,24,25]),import.meta.url),"../components/pagination-render.tsx":()=>t(()=>import("./pagination-render-BoDDo2E1.js"),__vite__mapDeps([35,1,2]),import.meta.url),"../components/toast-editor.tsx":()=>t(()=>import("./toast-editor-1Pul3oMs.js"),__vite__mapDeps([39,1,2,4,37,5]),import.meta.url),"../components/user-info.tsx":()=>t(()=>import("./user-info-CnB2lvpg.js"),__vite__mapDeps([23,1,2]),import.meta.url),"../components/user-menu-content.tsx":()=>t(()=>import("./user-menu-content-BFbaJw6v.js"),__vite__mapDeps([24,1,2,23]),import.meta.url)}),`../components/${i}.tsx`,3)).default;_(o.jsx(d,{...p}))},c=async()=>{const{component:i}=n[1],a=(await import(i)).default;s(o.jsx(a,{message:"Hello from Component B"}))};return o.jsxs(o.Fragment,{children:[o.jsx(x,{title:"Home"}),o.jsx("div",{children:o.jsx(v,{href:"/page",children:"Page"})}),o.jsx("div",{children:o.jsx("h1",{children:"Is Home"})}),o.jsxs("div",{children:[o.jsx("button",{onClick:l,children:"Загрузить компонент"}),o.jsx("p",{}),r||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]}),o.jsx("p",{}),o.jsxs("div",{children:[o.jsx("button",{onClick:c,children:"Загрузить компонент"}),o.jsx("p",{}),e||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]})]})}export{I as default};
@@ -1 +0,0 @@
1
- import{c as ae,q as ie,Y as pe,r as ne,j as r,L as J,I as re,S as ce,b as de,B as me,T as fe,h as ue,i as he,e as be,t as xe}from"./app.js";import le from"./input-error-F1DL-Fx6.js";import{i as we}from"./use-appearance-J8J2w43p.js";function _e(){const e=ae.c(110),s=ie();let V;e[0]!==s.props.defaultLocale?(V={locale:s.props.defaultLocale,confirmPassword:"",password:"",login:""},e[0]=s.props.defaultLocale,e[1]=V):V=e[1];const{post:K,data:l,setData:M,processing:o,setError:Q,errors:t,clearErrors:W}=pe(V);let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=[],e[2]=R):R=e[2],ne.useEffect(ve,R);let U;e[3]!==l.confirmPassword||e[4]!==l.password||e[5]!==s.props.confirmError||e[6]!==s.props.submitLink||e[7]!==K||e[8]!==Q?(U=i=>{if(i.preventDefault(),l.password!==l.confirmPassword){Q("confirmPassword",s.props.confirmError);return}K(s.props.submitLink,{onSuccess:Le,onError:je})},e[3]=l.confirmPassword,e[4]=l.password,e[5]=s.props.confirmError,e[6]=s.props.submitLink,e[7]=K,e[8]=Q,e[9]=U):U=e[9];const X=U;let z;e[10]!==W||e[11]!==M?(z=(i,te)=>{W(),M(i,te)},e[10]=W,e[11]=M,e[12]=z):z=e[12];const a=z;let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(fe,{position:"top-center",richColors:!0,closeButton:!0}),e[13]=O):O=e[13];let p;e[14]!==s.props.header.title?(p=r.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[14]=s.props.header.title,e[15]=p):p=e[15];let n;e[16]!==s.props.header.desc?(n=r.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[16]=s.props.header.desc,e[17]=n):n=e[17];let Y;e[18]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx("span",{className:"text-red-500",children:"*"}),e[18]=Y):Y=e[18];let c;e[19]!==s.props.loginLabel?(c=r.jsxs(J,{htmlFor:"login",children:[s.props.loginLabel,Y]}),e[19]=s.props.loginLabel,e[20]=c):c=e[20];const Z=`${t.login?"border-red-500":""}`;let d;e[21]!==a?(d=i=>{a("login",i.target.value)},e[21]=a,e[22]=d):d=e[22];let m;e[23]!==l.login||e[24]!==s.props.loginLabel||e[25]!==o||e[26]!==d||e[27]!==Z?(m=r.jsx(re,{id:"login",className:Z,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:l.login,disabled:o,onChange:d,placeholder:s.props.loginLabel}),e[23]=l.login,e[24]=s.props.loginLabel,e[25]=o,e[26]=d,e[27]=Z,e[28]=m):m=e[28];let f;e[29]!==t.login?(f=r.jsx(le,{message:t.login}),e[29]=t.login,e[30]=f):f=e[30];let u;e[31]!==m||e[32]!==f?(u=r.jsxs("div",{className:"relative",children:[m,f]}),e[31]=m,e[32]=f,e[33]=u):u=e[33];let h;e[34]!==u||e[35]!==c?(h=r.jsxs("div",{className:"grid gap-4",children:[c,u]}),e[34]=u,e[35]=c,e[36]=h):h=e[36];let A;e[37]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx("span",{className:"text-red-500",children:"*"}),e[37]=A):A=e[37];let b;e[38]!==s.props.passwordLabel?(b=r.jsxs(J,{htmlFor:"password",children:[s.props.passwordLabel,A]}),e[38]=s.props.passwordLabel,e[39]=b):b=e[39];const ee=`${t.password?"border-red-500":""}`;let x;e[40]!==a?(x=i=>{a("password",i.target.value)},e[40]=a,e[41]=x):x=e[41];let w;e[42]!==l.password||e[43]!==s.props.passwordLabel||e[44]!==o||e[45]!==ee||e[46]!==x?(w=r.jsx(re,{id:"password",className:ee,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:l.password,disabled:o,onChange:x,placeholder:s.props.passwordLabel}),e[42]=l.password,e[43]=s.props.passwordLabel,e[44]=o,e[45]=ee,e[46]=x,e[47]=w):w=e[47];let g;e[48]!==t.password?(g=r.jsx(le,{message:t.password}),e[48]=t.password,e[49]=g):g=e[49];let j;e[50]!==w||e[51]!==g?(j=r.jsxs("div",{className:"relative",children:[w,g]}),e[50]=w,e[51]=g,e[52]=j):j=e[52];let L;e[53]!==b||e[54]!==j?(L=r.jsxs("div",{className:"grid gap-4",children:[b,j]}),e[53]=b,e[54]=j,e[55]=L):L=e[55];let G;e[56]===Symbol.for("react.memo_cache_sentinel")?(G=r.jsx("span",{className:"text-red-500",children:"*"}),e[56]=G):G=e[56];let v;e[57]!==s.props.confirmPasswordLabel?(v=r.jsxs(J,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,G]}),e[57]=s.props.confirmPasswordLabel,e[58]=v):v=e[58];const se=`${t.confirmPassword?"border-red-500":""}`;let N;e[59]!==a?(N=i=>{a("confirmPassword",i.target.value)},e[59]=a,e[60]=N):N=e[60];let P;e[61]!==l.confirmPassword||e[62]!==s.props.confirmPasswordLabel||e[63]!==o||e[64]!==se||e[65]!==N?(P=r.jsx(re,{id:"confirmPassword",className:se,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:l.confirmPassword,disabled:o,onChange:N,placeholder:s.props.confirmPasswordLabel}),e[61]=l.confirmPassword,e[62]=s.props.confirmPasswordLabel,e[63]=o,e[64]=se,e[65]=N,e[66]=P):P=e[66];let S;e[67]!==t.confirmPassword?(S=r.jsx(le,{message:t.confirmPassword}),e[67]=t.confirmPassword,e[68]=S):S=e[68];let _;e[69]!==P||e[70]!==S?(_=r.jsxs("div",{className:"relative",children:[P,S]}),e[69]=P,e[70]=S,e[71]=_):_=e[71];let y;e[72]!==v||e[73]!==_?(y=r.jsxs("div",{className:"grid gap-4",children:[v,_]}),e[72]=v,e[73]=_,e[74]=y):y=e[74];let C;e[75]!==s.props.localeLabel?(C=r.jsx(J,{htmlFor:"locale",children:s.props.localeLabel}),e[75]=s.props.localeLabel,e[76]=C):C=e[76];let E;e[77]!==a?(E=i=>a("locale",i),e[77]=a,e[78]=E):E=e[78];const oe=s.props.defaultLocale;let I;e[79]!==s.props.localeLabel?(I=r.jsx(ce,{className:"w-full cursor-pointer",children:r.jsx(de,{placeholder:s.props.localeLabel})}),e[79]=s.props.localeLabel,e[80]=I):I=e[80];let B;e[81]!==s.props.locales?(B=s.props.locales.map(ge),e[81]=s.props.locales,e[82]=B):B=e[82];let k;e[83]!==B?(k=r.jsx(ue,{children:B}),e[83]=B,e[84]=k):k=e[84];let q;e[85]!==s.props.defaultLocale||e[86]!==o||e[87]!==E||e[88]!==I||e[89]!==k?(q=r.jsxs(he,{onValueChange:E,defaultValue:oe,disabled:o,children:[I,k]}),e[85]=s.props.defaultLocale,e[86]=o,e[87]=E,e[88]=I,e[89]=k,e[90]=q):q=e[90];let F;e[91]!==C||e[92]!==q?(F=r.jsxs("div",{className:"grid gap-4",children:[C,q]}),e[91]=C,e[92]=q,e[93]=F):F=e[93];let T;e[94]!==s.props.submitButton||e[95]!==o?(T=r.jsx("div",{className:"flex gap-4",children:r.jsx(me,{type:"submit",className:"w-fit",disabled:o,children:s.props.submitButton})}),e[94]=s.props.submitButton,e[95]=o,e[96]=T):T=e[96];let $;e[97]!==h||e[98]!==L||e[99]!==y||e[100]!==F||e[101]!==T?($=r.jsxs("div",{className:"grid gap-5",children:[h,L,y,F,T]}),e[97]=h,e[98]=L,e[99]=y,e[100]=F,e[101]=T,e[102]=$):$=e[102];let D;e[103]!==X||e[104]!==$?(D=r.jsx("form",{onSubmit:X,className:"mt-6",children:$}),e[103]=X,e[104]=$,e[105]=D):D=e[105];let H;return e[106]!==D||e[107]!==p||e[108]!==n?(H=r.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[O,r.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[p,n,D]})]}),e[106]=D,e[107]=p,e[108]=n,e[109]=H):H=e[109],H}function ge(e){return r.jsx(be,{value:e,children:e.toLocaleUpperCase()},e)}function je(e){for(const s of Object.keys(e))xe.error(e[s])}function Le(){}function ve(){we()}export{_e as default};
@@ -1 +0,0 @@
1
- import{j as o}from"./app.js";import{A as r}from"./app-layout-Dn8y3paC.js";import t from"./list-table-8sDi0ZKa.js";import"./app-shell-C1wDrRCe.js";import"./app-sidebar-BisOEG_p.js";import"./nav-main-DDQ-_Oed.js";import"./material-icon-DeSoGIhT.js";import"./chevrons-up-down-D3t3UGV7.js";import"./app-sidebar-header-CL1OSuV8.js";import"./breadcrumbs-BVZtAG3J.js";import"./nav-user-BwBu-VwZ.js";import"./user-info-CnB2lvpg.js";import"./user-menu-content-BFbaJw6v.js";import"./icon-B-D8X0jg.js";import"./use-appearance-J8J2w43p.js";import"./del-modal-DZ5wZWad.js";import"./trash-2-CsxWwHNc.js";import"./pagination-render-BoDDo2E1.js";const m=[],w=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{w as default};
@@ -1,52 +0,0 @@
1
- import{a as T,r as $,j as c,B as z,c as Ue,b7 as pe,b8 as ye,b9 as Ke,I as Xe,ba as Pe,bb as Qe,bc as Je,bd as We,q as Ye,t as we,o as q,T as Ze,X as U,p as Re,s as xe,u as _e,v as $e,i as be,S as et,b as tt,h as nt,e as ot,aQ as J,aP as rt}from"./app.js";import{Icon as O}from"./icon-B-D8X0jg.js";import K from"./material-icon-DeSoGIhT.js";import{B as Fe,P as it,D as lt}from"./del-modal-DZ5wZWad.js";import st from"./pagination-render-BoDDo2E1.js";import"./trash-2-CsxWwHNc.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const ut=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],at=T("arrow-down",ut);/**
7
- * @license lucide-react v0.485.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const gt=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],dt=T("arrow-up-down",gt);/**
12
- * @license lucide-react v0.485.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const ct=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ft=T("arrow-up",ct);/**
17
- * @license lucide-react v0.485.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const pt=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],mt=T("eye",pt);/**
22
- * @license lucide-react v0.485.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const ht=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],St=T("refresh-ccw",ht);/**
27
- * @license lucide-react v0.485.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const Ct=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],vt=T("square-plus",Ct);function wt(e,n,t,o,r){return $.useMemo(()=>Object.entries(e).map(([i,l])=>({accessorKey:i,header:()=>c.jsxs("div",{className:`flex flex-col gap-1 text-center max-w-[300px] ${l.direction?"text-chart-1":""}`,children:[c.jsxs(z,{variant:"ghost",className:"cursor-pointer hover:text-inherit",onClick:()=>{if(n){const s=l.direction==="asc"?"desc":"asc";n(l.data,s)}},children:[c.jsx("span",{className:"overflow-hidden text-ellipsis",children:l.title}),l.direction?c.jsx(O,{iconNode:l.direction==="asc"?ft:at,className:"size-3"}):c.jsx(O,{iconNode:dt,className:"size-3"})]}),r&&t&&c.jsx("input",{type:"text",defaultValue:l.searchColumnValue,className:"text-xs p-1 border rounded mb-2 text-foreground",onChange:s=>{t(l.data,s.target.value)},onKeyDown:s=>{s.key==="Enter"&&o&&o()}})]}),cell:({row:s})=>{var u;return c.jsx("div",{className:"text-center max-w-[300px] overflow-hidden text-ellipsis",children:(u=s.getValue(i))==null?void 0:u.toString()})}})),[e,n,r,t])}/**
32
- * table-core
33
- *
34
- * Copyright (c) TanStack
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE.md file in the root directory of this source tree.
38
- *
39
- * @license MIT
40
- */function L(e,n){return typeof e=="function"?e(n):e}function D(e,n){return t=>{n.setState(o=>({...o,[e]:L(t,o[e])}))}}function b(e){return e instanceof Function}function Rt(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function xt(e,n){const t=[],o=r=>{r.forEach(i=>{t.push(i);const l=n(i);l!=null&&l.length&&o(l)})};return o(e),t}function w(e,n,t){let o=[],r;return i=>{let l;t.key&&t.debug&&(l=Date.now());const s=e(i);if(!(s.length!==o.length||s.some((d,h)=>o[h]!==d)))return r;o=s;let a;if(t.key&&t.debug&&(a=Date.now()),r=n(...s),t==null||t.onChange==null||t.onChange(r),t.key&&t.debug&&t!=null&&t.debug()){const d=Math.round((Date.now()-l)*100)/100,h=Math.round((Date.now()-a)*100)/100,f=h/16,g=(p,m)=>{for(p=String(p);p.length<m;)p=" "+p;return p};console.info(`%c⏱ ${g(h,5)} /${g(d,5)} ms`,`
41
- font-size: .6rem;
42
- font-weight: bold;
43
- color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,t==null?void 0:t.key)}return r}}function R(e,n,t,o){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[n]},key:!1,onChange:o}}function _t(e,n,t,o){const r=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(o),renderValue:r,getContext:w(()=>[e,t,n,i],(l,s,u,a)=>({table:l,column:s,row:u,cell:a,getValue:a.getValue,renderValue:a.renderValue}),R(e.options,"debugCells"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(i,t,n,e)},{}),i}function $t(e,n,t,o){var r,i;const s={...e._getDefaultColumnDef(),...n},u=s.accessorKey;let a=(r=(i=s.id)!=null?i:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?r:typeof s.header=="string"?s.header:void 0,d;if(s.accessorFn?d=s.accessorFn:u&&(u.includes(".")?d=f=>{let g=f;for(const m of u.split(".")){var p;g=(p=g)==null?void 0:p[m]}return g}:d=f=>f[s.accessorKey]),!a)throw new Error;let h={id:`${String(a)}`,accessorFn:d,parent:o,depth:t,columnDef:s,columns:[],getFlatColumns:w(()=>[!0],()=>{var f;return[h,...(f=h.columns)==null?void 0:f.flatMap(g=>g.getFlatColumns())]},R(e.options,"debugColumns")),getLeafColumns:w(()=>[e._getOrderColumnsFn()],f=>{var g;if((g=h.columns)!=null&&g.length){let p=h.columns.flatMap(m=>m.getLeafColumns());return f(p)}return[h]},R(e.options,"debugColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(h,e);return h}const V="debugHeaders";function Me(e,n,t){var o;let i={id:(o=t.id)!=null?o:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),l.push(u)};return s(i),l},getContext:()=>({table:e,header:i,column:n})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(i,e)}),i}const Ft={createTable:e=>{e.getHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o,r)=>{var i,l;const s=(i=o==null?void 0:o.map(h=>t.find(f=>f.id===h)).filter(Boolean))!=null?i:[],u=(l=r==null?void 0:r.map(h=>t.find(f=>f.id===h)).filter(Boolean))!=null?l:[],a=t.filter(h=>!(o!=null&&o.includes(h.id))&&!(r!=null&&r.includes(h.id)));return W(n,[...s,...a,...u],e)},R(e.options,V)),e.getCenterHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o,r)=>(t=t.filter(i=>!(o!=null&&o.includes(i.id))&&!(r!=null&&r.includes(i.id))),W(n,t,e,"center")),R(e.options,V)),e.getLeftHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,o)=>{var r;const i=(r=o==null?void 0:o.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?r:[];return W(n,i,e,"left")},R(e.options,V)),e.getRightHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,o)=>{var r;const i=(r=o==null?void 0:o.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?r:[];return W(n,i,e,"right")},R(e.options,V)),e.getFooterGroups=w(()=>[e.getHeaderGroups()],n=>[...n].reverse(),R(e.options,V)),e.getLeftFooterGroups=w(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),R(e.options,V)),e.getCenterFooterGroups=w(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),R(e.options,V)),e.getRightFooterGroups=w(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),R(e.options,V)),e.getFlatHeaders=w(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),R(e.options,V)),e.getLeftFlatHeaders=w(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),R(e.options,V)),e.getCenterFlatHeaders=w(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),R(e.options,V)),e.getRightFlatHeaders=w(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),R(e.options,V)),e.getCenterLeafHeaders=w(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),R(e.options,V)),e.getLeftLeafHeaders=w(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),R(e.options,V)),e.getRightLeafHeaders=w(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var o;return!((o=t.subHeaders)!=null&&o.length)}),R(e.options,V)),e.getLeafHeaders=w(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,o)=>{var r,i,l,s,u,a;return[...(r=(i=n[0])==null?void 0:i.headers)!=null?r:[],...(l=(s=t[0])==null?void 0:s.headers)!=null?l:[],...(u=(a=o[0])==null?void 0:a.headers)!=null?u:[]].map(d=>d.getLeafHeaders()).flat()},R(e.options,V))}};function W(e,n,t,o){var r,i;let l=0;const s=function(f,g){g===void 0&&(g=1),l=Math.max(l,g),f.filter(p=>p.getIsVisible()).forEach(p=>{var m;(m=p.columns)!=null&&m.length&&s(p.columns,g+1)},0)};s(e);let u=[];const a=(f,g)=>{const p={depth:g,id:[o,`${g}`].filter(Boolean).join("_"),headers:[]},m=[];f.forEach(C=>{const v=[...m].reverse()[0],x=C.column.depth===p.depth;let _,F=!1;if(x&&C.column.parent?_=C.column.parent:(_=C.column,F=!0),v&&(v==null?void 0:v.column)===_)v.subHeaders.push(C);else{const M=Me(t,_,{id:[o,g,_.id,C==null?void 0:C.id].filter(Boolean).join("_"),isPlaceholder:F,placeholderId:F?`${m.filter(P=>P.column===_).length}`:void 0,depth:g,index:m.length});M.subHeaders.push(C),m.push(M)}p.headers.push(C),C.headerGroup=p}),u.push(p),g>0&&a(m,g-1)},d=n.map((f,g)=>Me(t,f,{depth:l,index:g}));a(d,l-1),u.reverse();const h=f=>f.filter(p=>p.column.getIsVisible()).map(p=>{let m=0,C=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],h(p.subHeaders).forEach(_=>{let{colSpan:F,rowSpan:M}=_;m+=F,v.push(M)})):m=1;const x=Math.min(...v);return C=C+x,p.colSpan=m,p.rowSpan=C,{colSpan:m,rowSpan:C}});return h((r=(i=u[0])==null?void 0:i.headers)!=null?r:[]),u}const Mt=(e,n,t,o,r,i,l)=>{let s={id:n,index:o,original:t,depth:r,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(s._valuesCache.hasOwnProperty(u))return s._valuesCache[u];const a=e.getColumn(u);if(a!=null&&a.accessorFn)return s._valuesCache[u]=a.accessorFn(s.original,o),s._valuesCache[u]},getUniqueValues:u=>{if(s._uniqueValuesCache.hasOwnProperty(u))return s._uniqueValuesCache[u];const a=e.getColumn(u);if(a!=null&&a.accessorFn)return a.columnDef.getUniqueValues?(s._uniqueValuesCache[u]=a.columnDef.getUniqueValues(s.original,o),s._uniqueValuesCache[u]):(s._uniqueValuesCache[u]=[s.getValue(u)],s._uniqueValuesCache[u])},renderValue:u=>{var a;return(a=s.getValue(u))!=null?a:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>xt(s.subRows,u=>u.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let u=[],a=s;for(;;){const d=a.getParentRow();if(!d)break;u.push(d),a=d}return u.reverse()},getAllCells:w(()=>[e.getAllLeafColumns()],u=>u.map(a=>_t(e,s,a,a.id)),R(e.options,"debugRows")),_getAllCellsByColumnId:w(()=>[s.getAllCells()],u=>u.reduce((a,d)=>(a[d.column.id]=d,a),{}),R(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const a=e._features[u];a==null||a.createRow==null||a.createRow(s,e)}return s},Vt={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Ie=(e,n,t)=>{var o,r;const i=t==null||(o=t.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(n))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};Ie.autoRemove=e=>E(e);const De=(e,n,t)=>{var o;return!!(!((o=e.getValue(n))==null||(o=o.toString())==null)&&o.includes(t))};De.autoRemove=e=>E(e);const Ee=(e,n,t)=>{var o;return((o=e.getValue(n))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(t==null?void 0:t.toLowerCase())};Ee.autoRemove=e=>E(e);const je=(e,n,t)=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(t)};je.autoRemove=e=>E(e);const Ae=(e,n,t)=>!t.some(o=>{var r;return!((r=e.getValue(n))!=null&&r.includes(o))});Ae.autoRemove=e=>E(e)||!(e!=null&&e.length);const Ge=(e,n,t)=>t.some(o=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(o)});Ge.autoRemove=e=>E(e)||!(e!=null&&e.length);const He=(e,n,t)=>e.getValue(n)===t;He.autoRemove=e=>E(e);const ze=(e,n,t)=>e.getValue(n)==t;ze.autoRemove=e=>E(e);const me=(e,n,t)=>{let[o,r]=t;const i=e.getValue(n);return i>=o&&i<=r};me.resolveFilterValue=e=>{let[n,t]=e,o=typeof n!="number"?parseFloat(n):n,r=typeof t!="number"?parseFloat(t):t,i=n===null||Number.isNaN(o)?-1/0:o,l=t===null||Number.isNaN(r)?1/0:r;if(i>l){const s=i;i=l,l=s}return[i,l]};me.autoRemove=e=>E(e)||E(e[0])&&E(e[1]);const H={includesString:Ie,includesStringSensitive:De,equalsString:Ee,arrIncludes:je,arrIncludesAll:Ae,arrIncludesSome:Ge,equals:He,weakEquals:ze,inNumberRange:me};function E(e){return e==null||e===""}const yt={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:D("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],o=t==null?void 0:t.getValue(e.id);return typeof o=="string"?H.includesString:typeof o=="number"?H.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?H.equals:Array.isArray(o)?H.arrIncludes:H.weakEquals},e.getFilterFn=()=>{var t,o;return b(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(o=n.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?t:H[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,o,r;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((o=n.options.enableColumnFilters)!=null?o:!0)&&((r=n.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(o=>o.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,o;return(t=(o=n.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(o=>{const r=e.getFilterFn(),i=o==null?void 0:o.find(d=>d.id===e.id),l=L(t,i?i.value:void 0);if(Ve(r,l,e)){var s;return(s=o==null?void 0:o.filter(d=>d.id!==e.id))!=null?s:[]}const u={id:e.id,value:l};if(i){var a;return(a=o==null?void 0:o.map(d=>d.id===e.id?u:d))!=null?a:[]}return o!=null&&o.length?[...o,u]:[u]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),o=r=>{var i;return(i=L(n,r))==null?void 0:i.filter(l=>{const s=t.find(u=>u.id===l.id);if(s){const u=s.getFilterFn();if(Ve(u,l.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=n=>{var t,o;e.setColumnFilters(n?[]:(t=(o=e.initialState)==null?void 0:o.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Ve(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const Pt=(e,n,t)=>t.reduce((o,r)=>{const i=r.getValue(e);return o+(typeof i=="number"?i:0)},0),It=(e,n,t)=>{let o;return t.forEach(r=>{const i=r.getValue(e);i!=null&&(o>i||o===void 0&&i>=i)&&(o=i)}),o},Dt=(e,n,t)=>{let o;return t.forEach(r=>{const i=r.getValue(e);i!=null&&(o<i||o===void 0&&i>=i)&&(o=i)}),o},Et=(e,n,t)=>{let o,r;return t.forEach(i=>{const l=i.getValue(e);l!=null&&(o===void 0?l>=l&&(o=r=l):(o>l&&(o=l),r<l&&(r=l)))}),[o,r]},jt=(e,n)=>{let t=0,o=0;if(n.forEach(r=>{let i=r.getValue(e);i!=null&&(i=+i)>=i&&(++t,o+=i)}),t)return o/t},At=(e,n)=>{if(!n.length)return;const t=n.map(i=>i.getValue(e));if(!Rt(t))return;if(t.length===1)return t[0];const o=Math.floor(t.length/2),r=t.sort((i,l)=>i-l);return t.length%2!==0?r[o]:(r[o-1]+r[o])/2},Gt=(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),Ht=(e,n)=>new Set(n.map(t=>t.getValue(e))).size,zt=(e,n)=>n.length,ne={sum:Pt,min:It,max:Dt,extent:Et,mean:jt,median:At,unique:Gt,uniqueCount:Ht,count:zt},Lt={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:D("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(o=>o!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,o;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((o=n.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],o=t==null?void 0:t.getValue(e.id);if(typeof o=="number")return ne.sum;if(Object.prototype.toString.call(o)==="[object Date]")return ne.extent},e.getAggregationFn=()=>{var t,o;if(!e)throw new Error;return b(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(o=n.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?t:ne[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,o;e.setGrouping(n?[]:(t=(o=e.initialState)==null?void 0:o.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const o=n.getColumn(t);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[t]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,o)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=t.subRows)!=null&&r.length)}}};function kt(e,n,t){if(!(n!=null&&n.length)||!t)return e;const o=e.filter(i=>!n.includes(i.id));return t==="remove"?o:[...n.map(i=>e.find(l=>l.id===i)).filter(Boolean),...o]}const Nt={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:D("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=w(t=>[Q(n,t)],t=>t.findIndex(o=>o.id===e.id),R(n.options,"debugColumns")),e.getIsFirstColumn=t=>{var o;return((o=Q(n,t)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=t=>{var o;const r=Q(n,t);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=w(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,o)=>r=>{let i=[];if(!(n!=null&&n.length))i=r;else{const l=[...n],s=[...r];for(;s.length&&l.length;){const u=l.shift(),a=s.findIndex(d=>d.id===u);a>-1&&i.push(s.splice(a,1)[0])}i=[...i,...s]}return kt(i,t,o)},R(e.options,"debugTable"))}},oe=()=>({left:[],right:[]}),Ot={getInitialState:e=>({columnPinning:oe(),...e}),getDefaultOptions:e=>({onColumnPinningChange:D("columnPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const o=e.getLeafColumns().map(r=>r.id).filter(Boolean);n.setColumnPinning(r=>{var i,l;if(t==="right"){var s,u;return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(h=>!(o!=null&&o.includes(h))),right:[...((u=r==null?void 0:r.right)!=null?u:[]).filter(h=>!(o!=null&&o.includes(h))),...o]}}if(t==="left"){var a,d;return{left:[...((a=r==null?void 0:r.left)!=null?a:[]).filter(h=>!(o!=null&&o.includes(h))),...o],right:((d=r==null?void 0:r.right)!=null?d:[]).filter(h=>!(o!=null&&o.includes(h)))}}return{left:((i=r==null?void 0:r.left)!=null?i:[]).filter(h=>!(o!=null&&o.includes(h))),right:((l=r==null?void 0:r.right)!=null?l:[]).filter(h=>!(o!=null&&o.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,i,l;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((i=(l=n.options.enableColumnPinning)!=null?l:n.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(s=>s.id),{left:o,right:r}=n.getState().columnPinning,i=t.some(s=>o==null?void 0:o.includes(s)),l=t.some(s=>r==null?void 0:r.includes(s));return i?"left":l?"right":!1},e.getPinnedIndex=()=>{var t,o;const r=e.getIsPinned();return r?(t=(o=n.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=w(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,o,r)=>{const i=[...o??[],...r??[]];return t.filter(l=>!i.includes(l.column.id))},R(n.options,"debugRows")),e.getLeftVisibleCells=w(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,o)=>(o??[]).map(i=>t.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),R(n.options,"debugRows")),e.getRightVisibleCells=w(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,o)=>(o??[]).map(i=>t.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),R(n.options,"debugRows"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,o;return e.setColumnPinning(n?oe():(t=(o=e.initialState)==null?void 0:o.columnPinning)!=null?t:oe())},e.getIsSomeColumnsPinned=n=>{var t;const o=e.getState().columnPinning;if(!n){var r,i;return!!((r=o.left)!=null&&r.length||(i=o.right)!=null&&i.length)}return!!((t=o[n])!=null&&t.length)},e.getLeftLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(o=>n.find(r=>r.id===o)).filter(Boolean),R(e.options,"debugColumns")),e.getRightLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(o=>n.find(r=>r.id===o)).filter(Boolean),R(e.options,"debugColumns")),e.getCenterLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,o)=>{const r=[...t??[],...o??[]];return n.filter(i=>!r.includes(i.id))},R(e.options,"debugColumns"))}};function Tt(e){return e||(typeof document<"u"?document:null)}const Y={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},re=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Bt={getDefaultColumnDef:()=>Y,getInitialState:e=>({columnSizing:{},columnSizingInfo:re(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:D("columnSizing",e),onColumnSizingInfoChange:D("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,o,r;const i=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Y.minSize,(o=i??e.columnDef.size)!=null?o:Y.size),(r=e.columnDef.maxSize)!=null?r:Y.maxSize)},e.getStart=w(t=>[t,Q(n,t),n.getState().columnSizing],(t,o)=>o.slice(0,e.getIndex(t)).reduce((r,i)=>r+i.getSize(),0),R(n.options,"debugColumns")),e.getAfter=w(t=>[t,Q(n,t),n.getState().columnSizing],(t,o)=>o.slice(e.getIndex(t)+1).reduce((r,i)=>r+i.getSize(),0),R(n.options,"debugColumns")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:o,...r}=t;return r})},e.getCanResize=()=>{var t,o;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((o=n.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var i;t+=(i=r.column.getSize())!=null?i:0}};return o(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const o=n.getColumn(e.column.id),r=o==null?void 0:o.getCanResize();return i=>{if(!o||!r||(i.persist==null||i.persist(),ie(i)&&i.touches&&i.touches.length>1))return;const l=e.getSize(),s=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[o.id,o.getSize()]],u=ie(i)?Math.round(i.touches[0].clientX):i.clientX,a={},d=(v,x)=>{typeof x=="number"&&(n.setColumnSizingInfo(_=>{var F,M;const P=n.options.columnResizeDirection==="rtl"?-1:1,N=(x-((F=_==null?void 0:_.startOffset)!=null?F:0))*P,A=Math.max(N/((M=_==null?void 0:_.startSize)!=null?M:0),-.999999);return _.columnSizingStart.forEach(ee=>{let[te,B]=ee;a[te]=Math.round(Math.max(B+B*A,0)*100)/100}),{..._,deltaOffset:N,deltaPercentage:A}}),(n.options.columnResizeMode==="onChange"||v==="end")&&n.setColumnSizing(_=>({..._,...a})))},h=v=>d("move",v),f=v=>{d("end",v),n.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=Tt(t),p={moveHandler:v=>h(v.clientX),upHandler:v=>{g==null||g.removeEventListener("mousemove",p.moveHandler),g==null||g.removeEventListener("mouseup",p.upHandler),f(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),h(v.touches[0].clientX),!1),upHandler:v=>{var x;g==null||g.removeEventListener("touchmove",m.moveHandler),g==null||g.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((x=v.touches[0])==null?void 0:x.clientX)}},C=qt()?{passive:!1}:!1;ie(i)?(g==null||g.addEventListener("touchmove",m.moveHandler,C),g==null||g.addEventListener("touchend",m.upHandler,C)):(g==null||g.addEventListener("mousemove",p.moveHandler,C),g==null||g.addEventListener("mouseup",p.upHandler,C)),n.setColumnSizingInfo(v=>({...v,startOffset:u,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?re():(t=e.initialState.columnSizingInfo)!=null?t:re())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((o,r)=>o+r.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((o,r)=>o+r.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((o,r)=>o+r.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((o,r)=>o+r.getSize(),0))!=null?n:0}}};let Z=null;function qt(){if(typeof Z=="boolean")return Z;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return Z=e,Z}function ie(e){return e.type==="touchstart"}const Ut={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:D("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(o=>({...o,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,o;const r=e.columns;return(t=r.length?r.some(i=>i.getIsVisible()):(o=n.getState().columnVisibility)==null?void 0:o[e.id])!=null?t:!0},e.getCanHide=()=>{var t,o;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((o=n.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=w(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(o=>o.column.getIsVisible()),R(n.options,"debugRows")),e.getVisibleCells=w(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,o,r)=>[...t,...o,...r],R(n.options,"debugRows"))},createTable:e=>{const n=(t,o)=>w(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),R(e.options,"debugColumns"));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var o;e.setColumnVisibility(t?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=t=>{var o;t=(o=t)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,i)=>({...r,[i.id]:t||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var o;e.toggleAllColumnsVisible((o=t.target)==null?void 0:o.checked)}}};function Q(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Kt={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Xt={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:D("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const o=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var t,o,r,i;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((o=n.options.enableGlobalFilter)!=null?o:!0)&&((r=n.options.enableFilters)!=null?r:!0)&&((i=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>H.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:o}=e.options;return b(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[o])!=null?n:H[o]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},Qt={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:D("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var o,r;if(!n){e._queue(()=>{n=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,i;e.setExpanded(o?{}:(r=(i=e.initialState)==null?void 0:i.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");o=Math.max(o,l.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(o=>{var r;const i=o===!0?!0:!!(o!=null&&o[e.id]);let l={};if(o===!0?Object.keys(n.getRowModel().rowsById).forEach(s=>{l[s]=!0}):l=o,t=(r=t)!=null?r:!i,!i&&t)return{...l,[e.id]:!0};if(i&&!t){const{[e.id]:s,...u}=l;return u}return o})},e.getIsExpanded=()=>{var t;const o=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:o===!0||o!=null&&o[e.id])},e.getCanExpand=()=>{var t,o,r;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((o=n.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let t=!0,o=e;for(;t&&o.parentId;)o=n.getRow(o.parentId,!0),t=o.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},ae=0,ge=10,le=()=>({pageIndex:ae,pageSize:ge}),Jt={getInitialState:e=>({...e,pagination:{...le(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:D("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var o,r;if(!n){e._queue(()=>{n=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=o=>{const r=i=>L(o,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?le():(r=e.initialState.pagination)!=null?r:le())},e.setPageIndex=o=>{e.setPagination(r=>{let i=L(o,r.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,l)),{...r,pageIndex:i}})},e.resetPageIndex=o=>{var r,i;e.setPageIndex(o?ae:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?r:ae)},e.resetPageSize=o=>{var r,i;e.setPageSize(o?ge:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?r:ge)},e.setPageSize=o=>{e.setPagination(r=>{const i=Math.max(1,L(o,r.pageSize)),l=r.pageSize*r.pageIndex,s=Math.floor(l/i);return{...r,pageIndex:s,pageSize:i}})},e.setPageCount=o=>e.setPagination(r=>{var i;let l=L(o,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...r,pageCount:l}}),e.getPageOptions=w(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((i,l)=>l)),r},R(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:o<r-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},se=()=>({top:[],bottom:[]}),Wt={getInitialState:e=>({rowPinning:se(),...e}),getDefaultOptions:e=>({onRowPinningChange:D("rowPinning",e)}),createRow:(e,n)=>{e.pin=(t,o,r)=>{const i=o?e.getLeafRows().map(u=>{let{id:a}=u;return a}):[],l=r?e.getParentRows().map(u=>{let{id:a}=u;return a}):[],s=new Set([...l,e.id,...i]);n.setRowPinning(u=>{var a,d;if(t==="bottom"){var h,f;return{top:((h=u==null?void 0:u.top)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((f=u==null?void 0:u.bottom)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(t==="top"){var g,p;return{top:[...((g=u==null?void 0:u.top)!=null?g:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((p=u==null?void 0:u.bottom)!=null?p:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((a=u==null?void 0:u.top)!=null?a:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((d=u==null?void 0:u.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:o,enablePinning:r}=n.options;return typeof o=="function"?o(e):(t=o??r)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:o,bottom:r}=n.getState().rowPinning,i=t.some(s=>o==null?void 0:o.includes(s)),l=t.some(s=>r==null?void 0:r.includes(s));return i?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var t,o;const r=e.getIsPinned();if(!r)return-1;const i=(t=r==="top"?n.getTopRows():n.getBottomRows())==null?void 0:t.map(l=>{let{id:s}=l;return s});return(o=i==null?void 0:i.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,o;return e.setRowPinning(n?se():(t=(o=e.initialState)==null?void 0:o.rowPinning)!=null?t:se())},e.getIsSomeRowsPinned=n=>{var t;const o=e.getState().rowPinning;if(!n){var r,i;return!!((r=o.top)!=null&&r.length||(i=o.bottom)!=null&&i.length)}return!!((t=o[n])!=null&&t.length)},e._getPinnedRows=(n,t,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(t??[]).map(l=>{const s=e.getRow(l,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(l=>n.find(s=>s.id===l))).filter(Boolean).map(l=>({...l,position:o}))},e.getTopRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,t)=>e._getPinnedRows(n,t,"top"),R(e.options,"debugRows")),e.getBottomRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,t)=>e._getPinnedRows(n,t,"bottom"),R(e.options,"debugRows")),e.getCenterRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,o)=>{const r=new Set([...t??[],...o??[]]);return n.filter(i=>!r.has(i.id))},R(e.options,"debugRows"))}},Yt={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:D("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const o={...t},r=e.getPreGroupedRowModel().flatRows;return n?r.forEach(i=>{i.getCanSelect()&&(o[i.id]=!0)}):r.forEach(i=>{delete o[i.id]}),o})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const o=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),r={...t};return e.getRowModel().rows.forEach(i=>{de(r,i.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=w(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getFilteredSelectedRowModel=w(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getGroupedSelectedRowModel=w(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let o=!!(n.length&&Object.keys(t).length);return o&&n.some(r=>r.getCanSelect()&&!t[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:t}=e.getState();let o=!!n.length;return o&&n.some(r=>!t[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,o)=>{const r=e.getIsSelected();n.setRowSelection(i=>{var l;if(t=typeof t<"u"?t:!r,e.getCanSelect()&&r===t)return i;const s={...i};return de(s,e.id,t,(l=o==null?void 0:o.selectChildren)!=null?l:!0,n),s})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return he(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return ce(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return ce(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return o=>{var r;t&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},de=(e,n,t,o,r)=>{var i;const l=r.getRow(n,!0);t?(l.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),l.getCanSelect()&&(e[n]=!0)):delete e[n],o&&(i=l.subRows)!=null&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(s=>de(e,s.id,t,o,r))};function ue(e,n){const t=e.getState().rowSelection,o=[],r={},i=function(l,s){return l.map(u=>{var a;const d=he(u,t);if(d&&(o.push(u),r[u.id]=u),(a=u.subRows)!=null&&a.length&&(u={...u,subRows:i(u.subRows)}),d)return u}).filter(Boolean)};return{rows:i(n.rows),flatRows:o,rowsById:r}}function he(e,n){var t;return(t=n[e.id])!=null?t:!1}function ce(e,n,t){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,i=!1;return e.subRows.forEach(l=>{if(!(i&&!r)&&(l.getCanSelect()&&(he(l,n)?i=!0:r=!1),l.subRows&&l.subRows.length)){const s=ce(l,n);s==="all"?i=!0:(s==="some"&&(i=!0),r=!1)}}),r?"all":i?"some":!1}const fe=/([0-9]+)/gm,Zt=(e,n,t)=>Le(k(e.getValue(t)).toLowerCase(),k(n.getValue(t)).toLowerCase()),bt=(e,n,t)=>Le(k(e.getValue(t)),k(n.getValue(t))),en=(e,n,t)=>Se(k(e.getValue(t)).toLowerCase(),k(n.getValue(t)).toLowerCase()),tn=(e,n,t)=>Se(k(e.getValue(t)),k(n.getValue(t))),nn=(e,n,t)=>{const o=e.getValue(t),r=n.getValue(t);return o>r?1:o<r?-1:0},on=(e,n,t)=>Se(e.getValue(t),n.getValue(t));function Se(e,n){return e===n?0:e>n?1:-1}function k(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Le(e,n){const t=e.split(fe).filter(Boolean),o=n.split(fe).filter(Boolean);for(;t.length&&o.length;){const r=t.shift(),i=o.shift(),l=parseInt(r,10),s=parseInt(i,10),u=[l,s].sort();if(isNaN(u[0])){if(r>i)return 1;if(i>r)return-1;continue}if(isNaN(u[1]))return isNaN(l)?-1:1;if(l>s)return 1;if(s>l)return-1}return t.length-o.length}const X={alphanumeric:Zt,alphanumericCaseSensitive:bt,text:en,textCaseSensitive:tn,datetime:nn,basic:on},rn={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:D("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const r of t){const i=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return X.datetime;if(typeof i=="string"&&(o=!0,i.split(fe).length>1))return X.alphanumeric}return o?X.text:X.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,o;if(!e)throw new Error;return b(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(o=n.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?t:X[e.columnDef.sortingFn]},e.toggleSorting=(t,o)=>{const r=e.getNextSortingOrder(),i=typeof t<"u"&&t!==null;n.setSorting(l=>{const s=l==null?void 0:l.find(g=>g.id===e.id),u=l==null?void 0:l.findIndex(g=>g.id===e.id);let a=[],d,h=i?t:r==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&o?s?d="toggle":d="add":l!=null&&l.length&&u!==l.length-1?d="replace":s?d="toggle":d="replace",d==="toggle"&&(i||r||(d="remove")),d==="add"){var f;a=[...l,{id:e.id,desc:h}],a.splice(0,a.length-((f=n.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?a=l.map(g=>g.id===e.id?{...g,desc:h}:g):d==="remove"?a=l.filter(g=>g.id!==e.id):a=[{id:e.id,desc:h}];return a})},e.getFirstSortDir=()=>{var t,o;return((t=(o=e.columnDef.sortDescFirst)!=null?o:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var o,r;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((o=n.options.enableSortingRemoval)==null||o)&&(!(t&&(r=n.options.enableMultiRemove)!=null)||r)?!1:l==="desc"?"asc":"desc":i},e.getCanSort=()=>{var t,o;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((o=n.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,o;return(t=(o=e.columnDef.enableMultiSort)!=null?o:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const o=(t=n.getState().sorting)==null?void 0:t.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,o;return(t=(o=n.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return o=>{t&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,o;e.setSorting(n?[]:(t=(o=e.initialState)==null?void 0:o.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ln=[Ft,Ut,Nt,Ot,Vt,yt,Kt,Xt,rn,Lt,Qt,Jt,Wt,Yt,Bt];function sn(e){var n,t;const o=[...ln,...(n=e._features)!=null?n:[]];let r={_features:o};const i=r._features.reduce((f,g)=>Object.assign(f,g.getDefaultOptions==null?void 0:g.getDefaultOptions(r)),{}),l=f=>r.options.mergeOptions?r.options.mergeOptions(i,f):{...i,...f};let u={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(f=>{var g;u=(g=f.getInitialState==null?void 0:f.getInitialState(u))!=null?g:u});const a=[];let d=!1;const h={_features:o,options:{...i,...e},initialState:u,_queue:f=>{a.push(f),d||(d=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();d=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{r.setState(r.initialState)},setOptions:f=>{const g=L(f,r.options);r.options=l(g)},getState:()=>r.options.state,setState:f=>{r.options.onStateChange==null||r.options.onStateChange(f)},_getRowId:(f,g,p)=>{var m;return(m=r.options.getRowId==null?void 0:r.options.getRowId(f,g,p))!=null?m:`${p?[p.id,g].join("."):g}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(f,g)=>{let p=(g?r.getPrePaginationRowModel():r.getRowModel()).rowsById[f];if(!p&&(p=r.getCoreRowModel().rowsById[f],!p))throw new Error;return p},_getDefaultColumnDef:w(()=>[r.options.defaultColumn],f=>{var g;return f=(g=f)!=null?g:{},{header:p=>{const m=p.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:p=>{var m,C;return(m=(C=p.renderValue())==null||C.toString==null?void 0:C.toString())!=null?m:null},...r._features.reduce((p,m)=>Object.assign(p,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...f}},R(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:w(()=>[r._getColumnDefs()],f=>{const g=function(p,m,C){return C===void 0&&(C=0),p.map(v=>{const x=$t(r,v,C,m),_=v;return x.columns=_.columns?g(_.columns,x,C+1):[],x})};return g(f)},R(e,"debugColumns")),getAllFlatColumns:w(()=>[r.getAllColumns()],f=>f.flatMap(g=>g.getFlatColumns()),R(e,"debugColumns")),_getAllFlatColumnsById:w(()=>[r.getAllFlatColumns()],f=>f.reduce((g,p)=>(g[p.id]=p,g),{}),R(e,"debugColumns")),getAllLeafColumns:w(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(f,g)=>{let p=f.flatMap(m=>m.getLeafColumns());return g(p)},R(e,"debugColumns")),getColumn:f=>r._getAllFlatColumnsById()[f]};Object.assign(r,h);for(let f=0;f<r._features.length;f++){const g=r._features[f];g==null||g.createTable==null||g.createTable(r)}return r}function un(){return e=>w(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},o=function(r,i,l){i===void 0&&(i=0);const s=[];for(let a=0;a<r.length;a++){const d=Mt(e,e._getRowId(r[a],a,l),r[a],a,i,void 0,l==null?void 0:l.id);if(t.flatRows.push(d),t.rowsById[d.id]=d,s.push(d),e.options.getSubRows){var u;d.originalSubRows=e.options.getSubRows(r[a],a),(u=d.originalSubRows)!=null&&u.length&&(d.subRows=o(d.originalSubRows,i+1,d))}}return s};return t.rows=o(n),t},R(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function an(e){const n=[],t=o=>{var r;n.push(o),(r=o.subRows)!=null&&r.length&&o.getIsExpanded()&&o.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}function gn(e){return n=>w(()=>[n.getState().pagination,n.getPrePaginationRowModel(),n.options.paginateExpandedRows?void 0:n.getState().expanded],(t,o)=>{if(!o.rows.length)return o;const{pageSize:r,pageIndex:i}=t;let{rows:l,flatRows:s,rowsById:u}=o;const a=r*i,d=a+r;l=l.slice(a,d);let h;n.options.paginateExpandedRows?h={rows:l,flatRows:s,rowsById:u}:h=an({rows:l,flatRows:s,rowsById:u}),h.flatRows=[];const f=g=>{h.flatRows.push(g),g.subRows.length&&g.subRows.forEach(f)};return h.rows.forEach(f),h},R(n.options,"debugTable"))}function dn(){return e=>w(()=>[e.getState().sorting,e.getPreSortedRowModel()],(n,t)=>{if(!t.rows.length||!(n!=null&&n.length))return t;const o=e.getState().sorting,r=[],i=o.filter(u=>{var a;return(a=e.getColumn(u.id))==null?void 0:a.getCanSort()}),l={};i.forEach(u=>{const a=e.getColumn(u.id);a&&(l[u.id]={sortUndefined:a.columnDef.sortUndefined,invertSorting:a.columnDef.invertSorting,sortingFn:a.getSortingFn()})});const s=u=>{const a=u.map(d=>({...d}));return a.sort((d,h)=>{for(let g=0;g<i.length;g+=1){var f;const p=i[g],m=l[p.id],C=m.sortUndefined,v=(f=p==null?void 0:p.desc)!=null?f:!1;let x=0;if(C){const _=d.getValue(p.id),F=h.getValue(p.id),M=_===void 0,P=F===void 0;if(M||P){if(C==="first")return M?-1:1;if(C==="last")return M?1:-1;x=M&&P?0:M?C:-C}}if(x===0&&(x=m.sortingFn(d,h,p.id)),x!==0)return v&&(x*=-1),m.invertSorting&&(x*=-1),x}return d.index-h.index}),a.forEach(d=>{var h;r.push(d),(h=d.subRows)!=null&&h.length&&(d.subRows=s(d.subRows))}),a};return{rows:s(t.rows),flatRows:r,rowsById:t.rowsById}},R(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
44
- * react-table
45
- *
46
- * Copyright (c) TanStack
47
- *
48
- * This source code is licensed under the MIT license found in the
49
- * LICENSE.md file in the root directory of this source tree.
50
- *
51
- * @license MIT
52
- */function ke(e,n){return e?cn(e)?$.createElement(e,n):e:null}function cn(e){return fn(e)||typeof e=="function"||pn(e)}function fn(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function pn(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function mn(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=$.useState(()=>({current:sn(n)})),[o,r]=$.useState(()=>t.current.initialState);return t.current.setOptions(i=>({...i,...e,state:{...o,...e.state},onStateChange:l=>{r(l),e.onStateChange==null||e.onStateChange(l)}})),t.current}function hn(e){var N;const n=Ue.c(28),{columns:t,data:o,notFoundContent:r,globalSearch:i,onGlobalSearch:l,searchValue:s,handleSearch:u,searchTxt:a}=e,d=i===void 0?!1:i;let h,f,g;n[0]===Symbol.for("react.memo_cache_sentinel")?(h=un(),f=gn(),g=dn(),n[0]=h,n[1]=f,n[2]=g):(h=n[0],f=n[1],g=n[2]);let p;n[3]!==t||n[4]!==o?(p={data:o,columns:t,getCoreRowModel:h,getPaginationRowModel:f,getSortedRowModel:g,enableSorting:!1,manualPagination:!0},n[3]=t,n[4]=o,n[5]=p):p=n[5];const m=mn(p);let C;n[6]!==d||n[7]!==u||n[8]!==l||n[9]!==a||n[10]!==s?(C=d&&l&&c.jsxs("div",{className:"flex gap-2 p-2",children:[c.jsx(Xe,{type:"text",defaultValue:s,placeholder:a,className:"w-full max-w-[200px] p-2 border rounded",onChange:A=>{l(A.target.value)},onKeyDown:A=>{A.key==="Enter"&&u&&u()}}),c.jsx(z,{variant:"outline",size:"icon",onClick:u,children:c.jsx(O,{iconNode:Pe,className:"size-5"})})]}),n[6]=d,n[7]=u,n[8]=l,n[9]=a,n[10]=s,n[11]=C):C=n[11];let v;n[12]!==m?(v=m.getHeaderGroups().map(vn),n[12]=m,n[13]=v):v=n[13];let x;n[14]!==v?(x=c.jsx(Qe,{className:"sticky top-0 z-10 bg-background shadow",children:v}),n[14]=v,n[15]=x):x=n[15];let _;n[16]!==t||n[17]!==r||n[18]!==m?(_=(N=m.getRowModel().rows)!=null&&N.length?m.getRowModel().rows.map(Sn):c.jsx(pe,{children:c.jsx(ye,{colSpan:t.length,className:"h-24 text-center",children:r})}),n[16]=t,n[17]=r,n[18]=m,n[19]=_):_=n[19];let F;n[20]!==_?(F=c.jsx(Je,{children:_}),n[20]=_,n[21]=F):F=n[21];let M;n[22]!==F||n[23]!==x?(M=c.jsxs(We,{children:[x,F]}),n[22]=F,n[23]=x,n[24]=M):M=n[24];let P;return n[25]!==M||n[26]!==C?(P=c.jsxs("div",{className:"rounded-md border",children:[C,M]}),n[25]=M,n[26]=C,n[27]=P):P=n[27],P}function Sn(e){return c.jsx(pe,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(Cn)},e.id)}function Cn(e){return c.jsx(ye,{className:e.column.getIndex()===0?"sticky left-0 bg-background":"",children:ke(e.column.columnDef.cell,e.getContext())},e.id)}function vn(e){return c.jsx(pe,{children:e.headers.map(wn)},e.id)}function wn(e){return c.jsx(Ke,{children:e.isPlaceholder?null:ke(e.column.columnDef.header,e.getContext())},e.id)}function Rn(e,n,t,o){const r=Math.ceil(e/n),i=(t-1)*n+1,l=Math.min(t*n,e),s=[];s.push({label:"Previous",active:!1});let u=Math.max(1,t-Math.floor(o/2)),a=Math.min(r,u+o-1);a-u+1<o&&(u=Math.max(1,a-o+1));for(let d=u;d<=a;d++)s.push({label:d.toString(),active:d===t});return s.push({label:"Next",active:!1}),{total:e,per_page:n,current_page:t,last_page:r,next_page_url:t<r?!0:null,prev_page_url:t>1?!0:null,from:i,to:l,links:s,showPages:o}}const yn=()=>{var B;const e=Ye(),n=e.props.data,[t,o]=$.useState(!1),[r,i]=$.useState(""),[l,s]=$.useState(!1),[u,a]=$.useState(1),[d,h]=$.useState("5"),[f,g]=$.useState("1"),[p,m]=$.useState("desc"),C=$.useRef([]);$.useEffect(()=>{const S=new URLSearchParams(window.location.search);i(S.get("globalSearch")||""),s(!!S.get("globalSearch")),a(parseInt(S.get("page")||"1")),h(S.get("count")||"5"),g(S.get("column")||"1"),m(S.get("direction")||"desc");const I=S.getAll("searchColumn"),j=S.getAll("searchColumnValue");C.current=I.map((G,y)=>({key:G,value:j[y]}))},[]),$.useEffect(()=>{document.body.removeAttribute("style")},[n]);let v=[{accessorKey:"actions",header:()=>c.jsx("div",{className:"text-center",children:e.props.header.thActionsTitle}),cell:({row:S})=>{var I,j,G;return c.jsx("div",{className:"text-center",children:c.jsxs(Re,{children:[c.jsx(xe,{asChild:!0,className:"cursor-pointer",children:c.jsx(z,{variant:"outline",size:"icon",children:c.jsx(Fe,{})})}),c.jsxs(_e,{className:"w-46",side:"right",align:"start",children:[c.jsxs($e,{children:[((I=e.props.header.crudActions)==null?void 0:I.editTitle)&&c.jsx(J,{asChild:!0,className:"cursor-pointer",children:c.jsxs(U,{href:`${e.props.header.entity.uri}/edit/${S.original.id}`,children:[c.jsx(O,{iconNode:it}),e.props.header.crudActions.editTitle]})}),((j=e.props.header.crudActions)==null?void 0:j.viewsTitle)&&c.jsx(J,{asChild:!0,className:"cursor-pointer",children:c.jsxs(U,{href:`${e.props.header.entity.uri}/view/${S.original.id}`,children:[c.jsx(O,{iconNode:mt}),e.props.header.crudActions.viewsTitle]})}),((G=e.props.header.crudActions)==null?void 0:G.deleteTitle)&&c.jsx(J,{asChild:!0,className:"cursor-pointer",children:c.jsx(lt,{btnTitle:e.props.header.crudActions.deleteTitle,delModal:e.props.header.delModal,btnCLass:"font-normal text-destructive hover:text-destructive w-full cursor-pointer justify-start",link:`${e.props.header.entity.uri}/remove/${S.original.id}?referTo=${encodeURIComponent(window.location.search)}`})})]}),e.props.header.inlineActions&&e.props.header.inlineActions.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(rt,{}),e.props.header.inlineActions.map(y=>c.jsx(J,{asChild:!0,className:"cursor-pointer",children:y.type==="blank"?c.jsxs("a",{target:"_blank",href:y.link,children:[y.icon&&c.jsx(K,{name:y.icon,className:"!text-[18px] mr-2"}),c.jsx("span",{children:y.title})]}):c.jsxs(U,{href:`${y.link}/${S.original.id}?id=${S.original.id}&entity=${e.props.header.entity.name}`,children:[y.icon&&c.jsx(K,{name:y.icon,className:"!text-[18px] mr-2"}),c.jsx("span",{children:y.title})]})},y.id))]})]})]})})}}];const x=$.useMemo(()=>Rn(n.recordsFiltered,parseInt(d),u,5),[n.recordsFiltered,d,u,r]);$.useEffect(()=>{e.props.flash&&(e.props.flash.success&&we.success(e.props.flash.success),e.props.flash.error&&we.error(e.props.flash.error))},[e.props.flash]);const _=$.useCallback(S=>{h(S),a(1),o(!0),q.visit(`${e.props.header.entity.uri}?count=${S}&page=1`,{preserveState:!0,only:["data","columns","header"],onSuccess:()=>o(!1)})},[n]),F=$.useCallback((S,I,j,G)=>{const y=S!==void 0?S:u,Ne=I!==void 0?I:p,Oe=j!==void 0?j:f,Ce=G!==void 0?G:r,Te=`count=${d}&page=${y}&column=${Oe}&direction=${Ne}`,Be=Ce?`&globalSearch=${Ce}`:"",qe=C.current.map(ve=>`&searchColumn=${ve.key}&searchColumnValue=${ve.value}`).join("");return`${Te}${Be}${qe}`},[n,d,u,f,p,r]),M=$.useCallback(S=>{a(S),o(!0),q.visit(`${e.props.header.entity.uri}?${F(S)}`,{preserveState:!0,only:["data","columns","header"],onSuccess:()=>o(!1)})},[F,e.props.header.entity.uri]),P=$.useCallback((S,I)=>{g(S),m(I),o(!0),q.visit(`${e.props.header.entity.uri}?${F(void 0,I,S)}`,{preserveState:!0,only:["data","columns","header"],onSuccess:()=>o(!1)})},[d,u,r]),N=$.useCallback(S=>{i(S),a(1)},[n]),A=$.useCallback(()=>{o(!0),q.visit(`${e.props.header.entity.uri}?${F(1)}`,{preserveState:!0,only:["data","columns","header"],onSuccess:()=>o(!1)})},[n,r]),ee=$.useCallback((S,I)=>{a(1);const j=C.current.findIndex(G=>G.key===S);j>=0&&C.current.splice(j,1),I&&C.current.push({key:S,value:I})},[n]),te=()=>{s(!1),i(""),C.current=[],a(1),g("1"),m("desc"),q.visit(`${e.props.header.entity.uri}?count=${d}&page=1`,{preserveState:!0,preserveScroll:!0,only:["data","columns","header"],onSuccess:()=>o(!1)})};return v=[...v,...wt(e.props.columns,P,ee,A,l)],c.jsxs(c.Fragment,{children:[c.jsx(Ze,{position:"top-center",richColors:!0,closeButton:!0}),c.jsxs("div",{className:`flex h-auto flex-1 flex-col gap-4 rounded-xl p-4 ${t?"opacity-50":""}`,children:[c.jsxs("div",{className:"flex gap-2 sticky top-0 z-10 bg-background py-3",children:[((B=e.props.header.crudActions)==null?void 0:B.createTitle)&&c.jsx(z,{asChild:!0,children:c.jsxs(U,{href:`${e.props.header.entity.uri}/add`,children:[c.jsx(O,{iconNode:vt}),e.props.header.crudActions.createTitle]})}),c.jsxs(z,{className:"transition-none cursor-pointer",variant:l?"destructive":"outline",onClick:()=>{l?te():s(!0)},children:[c.jsx(O,{iconNode:l?St:Pe}),l?e.props.header.resetBtn:e.props.header.searchBtn]}),e.props.header.actions.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"gap-2 ml-6 hidden lg:flex",children:e.props.header.actions.map(S=>c.jsx(z,{asChild:!0,variant:"outline",children:S.type==="blank"?c.jsxs("a",{href:S.link,target:"_blank",children:[S.icon&&c.jsx(K,{name:S.icon,className:"!text-[18px]"}),S.title]}):c.jsxs(U,{href:S.link,children:[S.icon&&c.jsx(K,{name:S.icon,className:"!text-[18px]"}),S.title]})},S.id))||null}),c.jsx("div",{className:"block lg:hidden ml-6",children:c.jsxs(Re,{children:[c.jsx(xe,{asChild:!0,children:c.jsx(z,{variant:"outline",size:"icon",children:c.jsx(Fe,{})})}),c.jsx(_e,{className:"w-fit",side:"right",align:"start",children:c.jsx($e,{className:"grid gap-2",children:e.props.header.actions.map(S=>c.jsx(z,{asChild:!0,variant:"outline",children:c.jsxs("a",{href:S.link,target:"_blank",children:[c.jsx(K,{name:S.icon,className:"!text-[18px]"}),S.title]})},S.id))||null})})]})})]})]}),c.jsx(hn,{columns:v,data:n.data,searchValue:r,searchTxt:e.props.header.searchBtn,notFoundContent:e.props.header.notFoundContent,globalSearch:l,onGlobalSearch:N,handleSearch:A},new Date().getTime()),c.jsxs("div",{className:"mt-4 flex flex-wrap justify-center md:justify-between gap-4 items-end",children:[c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-1 gap-4 items-center justify-items-center md:justify-items-normal",children:[c.jsxs("p",{className:"text-sm text-foreground/70",children:["Show ",x.from," - ",x.to," of ",x.total]}),c.jsx("div",{className:"max-w-fit",children:c.jsxs(be,{onValueChange:S=>_(S),value:d,children:[c.jsx(et,{className:"w-full cursor-pointer",children:c.jsx(tt,{placeholder:d})}),c.jsx(nt,{children:["5","10","50"].map(S=>c.jsx(ot,{value:S,children:S},S))})]})})]}),c.jsx("div",{children:n.data.length>0&&c.jsx(st,{pagination:x,pageChange:M,currentPage:u})})]})]})]})};export{yn as default};
@@ -1,6 +0,0 @@
1
- import{a as e}from"./app.js";/**
2
- * @license lucide-react v0.485.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const o=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],c=e("loader-circle",o);export{c as L};