PageSourceSearch

https://iconited.com/assets/users-DZ-0vzRt.js

js iconited.com collected 2026-10-10 02:34:39 UTC 65,605 bytes, 2 lines download raw bytes

1import{r as v,$ as g,j as y,w as Vt,u as Ot}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{u as Ut}from"./useQuery-CX2P7KRE.js";import{u as Lt,t as Wt}from"./trpc-tanstack-CcrFfedX.js";import{u as qt}from"./useMutation-DZfcQAwJ.js";import{h as le,u as De,o as Gt,f as ze,t as Yt,T as Qt,s as Zt,H as Jt,A as Xt,C as _t,U as el}from"./tooltip-BIt4K4VP.js";import{r as Ae,d as M,e as N,p as tl,D as T,x as ll,E as te,F as nl,b as ol,a as rl,i as H,f as Ke,l as J,m as il,h as Z,y as ne,g as oe,G as ul,H as we,c as R}from"./cx-JWMrrZN5.js";import{h as A,i as I,j,k as ee,l as al,m as Ne,n as sl,o as cl,p as dl,q as fl,r as Pe,s as Ee,t as L,u as W,v as ve,w as Re,x as pl,y as vl,z as Fe,A as ml,B as hl,C as me,D as S,E as Y,F as gl,G as X,H as bl,I as yl,J as $l,K as xl,L as Cl,M as Dl,a as wl,N as El,O as re,P as he,Q as kl,R as Sl,S as Bl,T as Me,U as zl,b as Al}from"./Dialog-Cbo2mfOd.js";import"./index-BnGtwJ93.js";import{a as ge,C as Te}from"./checkbox-COISbaUw.js";import{f as ke,l as Kl}from"./bundle-mjs-BWt8Cp2A.js";import{B as Nl}from"./badges-20ibVlSP.js";import{D as Q,a as Pl}from"./dropdown-Du7Ttld0.js";class je{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var l;return this.disabledBehavior==="all"&&(((l=t.props)===null||l===void 0?void 0:l.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,l){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!l||l(o)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(t,l){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!l||l(o)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,l=0){if(l<0)return null;let n=this.collection.getItem(t);if(!n)return null;let o=0;for(let c of A(n,this.collection)){var r;if(c.colSpan&&c.colSpan+o>l)return(r=c.key)!==null&&r!==void 0?r:null;c.colSpan&&(o=o+c.colSpan-1);var i;if(o===l)return(i=c.key)!==null&&i!==void 0?i:null;o++}return null}getKeyBelow(t){let l=t,n=this.collection.getItem(l);if(!n)return null;var o;if(this.isCell(n)&&(l=(o=n.parentKey)!==null&&o!==void 0?o:null),l==null)return null;if(l=this.findNextKey(l,r=>r.type==="item"),l!=null){if(this.isCell(n)){let r=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,r)}if(this.focusMode==="row")return l}return null}getKeyAbove(t){let l=t,n=this.collection.getItem(l);if(!n)return null;var o;if(this.isCell(n)&&(l=(o=n.parentKey)!==null&&o!==void 0?o:null),l==null)return null;if(l=this.findPreviousKey(l,r=>r.type==="item"),l!=null){if(this.isCell(n)){let r=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,r)}if(this.focusMode==="row")return l}return null}getKeyRightOf(t){let l=this.collection.getItem(t);if(!l)return null;if(this.isRow(l)){var n,o;let f=A(l,this.collection);var r;return(r=this.direction==="rtl"?(n=I(f))===null||n===void 0?void 0:n.key:(o=j(f))===null||o===void 0?void 0:o.key)!==null&&r!==void 0?r:null}if(this.isCell(l)&&l.parentKey!=null){let f=this.collection.getItem(l.parentKey);if(!f)return null;let u=A(f,this.collection);var i;let p=(i=this.direction==="rtl"?ee(u,l.index-1):ee(u,l.index+1))!==null&&i!==void 0?i:null;var c;if(p)return(c=p.key)!==null&&c!==void 0?c:null;var a;if(this.focusMode==="row")return(a=l.parentKey)!==null&&a!==void 0?a:null;var s;return(s=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&s!==void 0?s:null}return null}getKeyLeftOf(t){let l=this.collection.getItem(t);if(!l)return null;if(this.isRow(l)){var n,o;let f=A(l,this.collection);var r;return(r=this.direction==="rtl"?(n=j(f))===null||n===void 0?void 0:n.key:(o=I(f))===null||o===void 0?void 0:o.key)!==null&&r!==void 0?r:null}if(this.isCell(l)&&l.parentKey!=null){let f=this.collection.getItem(l.parentKey);if(!f)return null;let u=A(f,this.collection);var i;let p=(i=this.direction==="rtl"?ee(u,l.index+1):ee(u,l.index-1))!==null&&i!==void 0?i:null;var c;if(p)return(c=p.key)!==null&&c!==void 0?c:null;var a;if(this.focusMode==="row")return(a=l.parentKey)!==null&&a!==void 0?a:null;var s;return(s=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&s!==void 0?s:null}return null}getFirstKey(t,l){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!l&&o.parentKey!=null){var r;let s=this.collection.getItem(o.parentKey);if(!s)return null;var i;return(i=(r=j(A(s,this.collection)))===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null}}if(n=this.findNextKey(void 0,s=>s.type==="item"),n!=null&&(o&&this.isCell(o)&&l||this.focusMode==="cell")){var c;let s=this.collection.getItem(n);if(!s)return null;var a;n=(a=(c=j(A(s,this.collection)))===null||c===void 0?void 0:c.key)!==null&&a!==void 0?a:null}return n}getLastKey(t,l){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!l&&o.parentKey!=null){var r;let s=this.collection.getItem(o.parentKey);if(!s)return null;let f=A(s,this.collection);var i;return(i=(r=I(f))===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null}}if(n=this.findPreviousKey(void 0,s=>s.type==="item"),n!=null&&(o&&this.isCell(o)&&l||this.focusMode==="cell")){var c;let s=this.collection.getItem(n);if(!s)return null;let f=A(s,this.collection);var a;n=(a=(c=I(f))===null||c===void 0?void 0:c.key)!==null&&a!==void 0?a:null}return n}getKeyPageAbove(t){let l=t,n=this.layoutDelegate.getItemRect(l);
1if(!n)return null;let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&l!=null;){var r;if(l=(r=this.getKeyAbove(l))!==null&&r!==void 0?r:null,l==null)break;n=this.layoutDelegate.getItemRect(l)}return l}getKeyPageBelow(t){let l=t,n=this.layoutDelegate.getItemRect(l);if(!n)return null;let o=this.layoutDelegate.getVisibleRect().height,r=Math.min(this.layoutDelegate.getContentSize().height,n.y+o);for(;n&&n.y+n.height<r;){let i=this.getKeyBelow(l);if(i==null)break;n=this.layoutDelegate.getItemRect(i),l=i}return l}getKeyForSearch(t,l){let n=l??null;if(!this.collator)return null;let o=this.collection;if(n=l??this.getFirstKey(),n==null)return null;let r=o.getItem(n);if(!r)return null;var i;r.type==="cell"&&(n=(i=r.parentKey)!==null&&i!==void 0?i:null);let c=!1;for(;n!=null;){let f=o.getItem(n);if(!f)return null;if(f.textValue){let u=f.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0){var a,s;return this.isRow(f)&&this.focusMode==="cell"?(s=(a=j(A(f,this.collection)))===null||a===void 0?void 0:a.key)!==null&&s!==void 0?s:null:f.key}}n=this.findNextKey(n,u=>u.type==="item"),n==null&&!c&&(n=this.getFirstKey(),c=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new Rl(t.layout):new al(t.ref));var l;this.focusMode=(l=t.focusMode)!==null&&l!==void 0?l:"row"}}class Rl{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var l;return((l=this.layout.getLayoutInfo(t))===null||l===void 0?void 0:l.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const be=new WeakMap;function Fl(e,t,l){let{isVirtualized:n,disallowTypeAhead:o,keyboardDelegate:r,focusMode:i,scrollRef:c,getRowText:a,onRowAction:s,onCellAction:f,escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:d}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=Ne({usage:"search",sensitivity:"base"}),{direction:h}=le(),$=t.selectionManager.disabledBehavior,D=v.useMemo(()=>r||new je({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:$,ref:l,direction:h,collator:m,focusMode:i}),[r,t.collection,t.disabledKeys,$,l,h,m,i]),{collectionProps:w}=sl({ref:l,selectionManager:d,keyboardDelegate:D,isVirtualized:n,scrollRef:c,disallowTypeAhead:o,escapeKeyBehavior:u}),x=Ae(e.id);be.set(t,{keyboardDelegate:D,actions:{onRowAction:s,onCellAction:f},shouldSelectOnPressUp:p});let C=cl({selectionManager:d,hasItemActions:!!(s||f)}),b=M(e,{labelable:!0}),B=v.useCallback(E=>{if(d.isFocused){E.currentTarget.contains(E.target)||d.setFocused(!1);return}E.currentTarget.contains(E.target)&&d.setFocused(!0)},[d]),z=v.useMemo(()=>({onBlur:w.onBlur,onFocus:B}),[B,w.onBlur]),P=dl(l,{isDisabled:t.collection.size!==0}),K=N(b,{role:"grid",id:x,"aria-multiselectable":d.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?z:w,t.collection.size===0&&{tabIndex:P?-1:0}||void 0,C);return n&&(K["aria-rowcount"]=t.collection.size,K["aria-colcount"]=t.collection.columnCount),fl({getRowText:a},t),{gridProps:K}}function Ml(){return{rowGroupProps:{role:"rowgroup"}}}function Tl(e,t,l){var n,o;let{node:r,isVirtualized:i,shouldSelectOnPressUp:c,onAction:a}=e,{actions:s,shouldSelectOnPressUp:f}=be.get(t),u=s.onRowAction?()=>{var $;return($=s.onRowAction)===null||$===void 0?void 0:$.call(s,r.key)}:a,{itemProps:p,...d}=Pe({selectionManager:t.selectionManager,key:r.key,ref:l,isVirtualized:i,shouldSelectOnPressUp:f||c,onAction:u||!(r==null||(n=r.props)===null||n===void 0)&&n.onAction?tl(r==null||(o=r.props)===null||o===void 0?void 0:o.onAction,u):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(r.key),h={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":d.isDisabled||void 0,...p};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...d}}function Ie(e,t,l){let{node:n,isVirtualized:o,focusMode:r="child",shouldSelectOnPressUp:i,onAction:c}=e,{direction:a}=le(),{keyboardDelegate:s,actions:{onCellAction:f}}=be.get(t),u=v.useRef(null),p=()=>
1{if(l.current){let x=Ee(l.current);if(r==="child"){if(l.current.contains(document.activeElement)&&l.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?de(x):x.firstChild();if(C){T(C);return}}(u.current!=null&&n.key!==u.current||!l.current.contains(document.activeElement))&&T(l.current)}},{itemProps:d,isPressed:m}=Pe({selectionManager:t.selectionManager,key:n.key,ref:l,isVirtualized:o,focus:p,shouldSelectOnPressUp:i,onAction:f?()=>f(n.key):c,isDisabled:t.collection.size===0}),h=x=>{if(!x.currentTarget.contains(x.target)||t.isKeyboardNavigationDisabled||!l.current||!document.activeElement)return;let C=Ee(l.current);switch(C.currentNode=document.activeElement,x.key){case"ArrowLeft":{let E=a==="rtl"?C.nextNode():C.previousNode();if(r==="child"&&E===l.current&&(E=null),x.preventDefault(),x.stopPropagation(),E)T(E),L(E,{containingElement:W(l.current)});else{var b;if(((b=s.getKeyLeftOf)===null||b===void 0?void 0:b.call(s,n.key))!==n.key){var B;(B=l.current.parentElement)===null||B===void 0||B.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}r==="cell"&&a==="rtl"?(T(l.current),L(l.current,{containingElement:W(l.current)})):(C.currentNode=l.current,E=a==="rtl"?C.firstChild():de(C),E&&(T(E),L(E,{containingElement:W(l.current)})))}break}case"ArrowRight":{let E=a==="rtl"?C.previousNode():C.nextNode();if(r==="child"&&E===l.current&&(E=null),x.preventDefault(),x.stopPropagation(),E)T(E),L(E,{containingElement:W(l.current)});else{var z;if(((z=s.getKeyRightOf)===null||z===void 0?void 0:z.call(s,n.key))!==n.key){var P;(P=l.current.parentElement)===null||P===void 0||P.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}r==="cell"&&a==="ltr"?(T(l.current),L(l.current,{containingElement:W(l.current)})):(C.currentNode=l.current,E=a==="rtl"?de(C):C.firstChild(),E&&(T(E),L(E,{containingElement:W(l.current)})))}break}case"ArrowUp":case"ArrowDown":if(!x.altKey&&l.current.contains(x.target)){var K;x.stopPropagation(),x.preventDefault(),(K=l.current.parentElement)===null||K===void 0||K.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent))}break}},$=x=>{if(u.current=n.key,x.target!==l.current){ll()||t.selectionManager.setFocusedKey(n.key);return}requestAnimationFrame(()=>{r==="child"&&document.activeElement===l.current&&p()})},D=N(d,{role:"gridcell",onKeyDownCapture:h,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:o?void 0:n.colSpan,onFocus:$});var w;return o&&(D["aria-colindex"]=((w=n.colIndex)!==null&&w!==void 0?w:n.index)+1),i&&D.tabIndex!=null&&D.onPointerDown==null&&(D.onPointerDown=x=>{let C=x.currentTarget,b=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{b!=null&&C.setAttribute("tabindex",b)})}),{gridCellProps:D,isPressed:m}}function de(e){let t=null,l=null;do l=e.lastChild(),l&&(t=l);while(l);return t}const ye=new WeakMap;function fe(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function jl(e,t){let l=ye.get(e);if(!l)throw new Error("Unknown grid");return`${l}-${fe(t)}`}function He(e,t,l){let n=ye.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${fe(t)}-${fe(l)}`}function Ve(e,t){return[...e.collection.rowHeaderColumnKeys].map(l=>He(e,t,l)).join(" ")}var Oe={};Oe={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Ue={};Ue={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",s
1ortable:"сортираща колона"};var Le={};Le={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var We={};We={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var qe={};qe={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Ge={};Ge={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Ye={};Ye={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",desce
1nding:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var Qe={};Qe={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Ze={};Ze={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Je={};Je={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Xe={};Xe={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var _e={};_e={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var et={};et={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var tt={};tt={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var lt={};lt={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var nt={};nt={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var ot={};ot={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var rt={};rt={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var it={};it={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value}
1 pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var ut={};ut={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var at={};at={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var st={};st={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var ct={};ct={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var dt={};dt={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var ft={};ft={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var pt={};pt={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var vt={};vt={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var mt={};mt={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var ht={};ht={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var gt={};gt={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var bt={};bt={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var yt={};yt={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var $t={};$t={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var xt={};xt={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var ie={};ie={"ar-AE":Oe,"bg-BG":Ue,"cs-CZ":Le,"da-DK":We,"de-DE":qe,"el-GR":Ge,"en-US":Ye,"es-ES":Qe,"et-EE":Ze,"fi-FI":Je,"fr-FR":Xe,"he-IL":_e,"hr-HR":et,"hu-HU":tt,"it-
1IT":lt,"ja-JP":nt,"ko-KR":ot,"lt-LT":rt,"lv-LV":it,"nb-NO":ut,"nl-NL":at,"pl-PL":st,"pt-BR":ct,"pt-PT":dt,"ro-RO":ft,"ru-RU":pt,"sk-SK":vt,"sl-SI":mt,"sr-SP":ht,"sv-SE":gt,"tr-TR":bt,"uk-UA":yt,"zh-CN":$t,"zh-TW":xt};class Il extends je{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let l=this.collection.getItem(t);if(!l)return null;if(l.type==="column"){let n=j(A(l,this.collection));if(n)return n.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,l.index)}return super.getKeyBelow(t)}getKeyAbove(t){let l=this.collection.getItem(t);if(!l)return null;if(l.type==="column"){let r=l.parentKey!=null?this.collection.getItem(l.parentKey):null;return r&&r.type==="column"?r.key:null}let n=super.getKeyAbove(t),o=n!=null?this.collection.getItem(n):null;return o&&o.type!=="headerrow"?n:this.isCell(l)?this.collection.columns[l.index].key:this.collection.columns[0].key}findNextColumnKey(t){let l=this.findNextKey(t.key,o=>o.type==="column");if(l!=null)return l;let n=this.collection.headerRows[t.level];for(let o of A(n,this.collection))if(o.type==="column")return o.key;return null}findPreviousColumnKey(t){let l=this.findPreviousKey(t.key,r=>r.type==="column");if(l!=null)return l;let n=this.collection.headerRows[t.level],o=[...A(n,this.collection)];for(let r=o.length-1;r>=0;r--){let i=o[r];if(i.type==="column")return i.key}return null}getKeyRightOf(t){let l=this.collection.getItem(t);return l?l.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(l):this.findNextColumnKey(l):super.getKeyRightOf(t):null}getKeyLeftOf(t){let l=this.collection.getItem(t);return l?l.type==="column"?this.direction==="rtl"?this.findNextColumnKey(l):this.findPreviousColumnKey(l):super.getKeyLeftOf(t):null}getKeyForSearch(t,l){if(!this.collator)return null;let n=this.collection,o=l??this.getFirstKey();if(o==null)return null;let r=n.getItem(o);var i;r?.type==="cell"&&(o=(i=r.parentKey)!==null&&i!==void 0?i:null);let c=!1;for(;o!=null;){let a=n.getItem(o);if(!a)return null;if(a.textValue){let s=a.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return a.key}for(let s of A(a,this.collection)){let f=n.columns[s.index];if(n.rowHeaderColumnKeys.has(f.key)&&s.textValue){let u=s.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0){let p=l!=null?n.getItem(l):r;return p?.type==="cell"?s.key:a.key}}}o=this.getKeyBelow(o),o==null&&!c&&(o=this.getFirstKey(),c=!0)}return null}}function Hl(e){return e&&e.__esModule?e.default:e}function Vl(e,t,l){let{keyboardDelegate:n,isVirtualized:o,layoutDelegate:r,layout:i}=e,c=Ne({usage:"search",sensitivity:"base"}),{direction:a}=le(),s=t.selectionManager.disabledBehavior,f=v.useMemo(()=>n||new Il({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:s,ref:l,direction:a,collator:c,layoutDelegate:r,layout:i}),[n,t.collection,t.disabledKeys,s,l,a,c,r,i]),u=Ae(e.id);ye.set(t,u);let{gridProps:p}=Fl({...e,id:u,keyboardDelegate:f},t,l);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),te()&&"expandedKeys"in t&&(p.role="treegrid");let{column:d,direction:m}=t.sortDescriptor||{},h=ve(Hl(ie),"@react-aria/table"),$=v.useMemo(()=>{var w,x;let C=(x=(w=t.collection.columns.find(b=>b.key===d))===null||w===void 0?void 0:w.textValue)!==null&&x!==void 0?x:"";return m&&d?h.format(`${m}Sort`,{columnName:C}):void 0},[m,d,t.collection.columns]),D=Re($);return pl(()=>{$&&nl($,"assertive",500)},[$]),{gridProps:N(p,D,{"aria-describedby":[D["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function Ol(e){return e&&e.__esModule?e.default:e}function Ul(e,t,l){var n,o;let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:c}=Ie({...e,focusMode:"child"},t,l),a=r.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:s,isPressed:f}=ol({isDisabled:!i||a,onPress(){t.sort(r.key)},ref:l}),{focusableProps:u}=rl({},l),p,d=((n=t.sortDescriptor)===null||n===void 0?void 0:n.column)===r.key,m=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;r.props.allowsSorting&&!ke()&&(p=d?m:"none");let h=ve(Ol(ie),"@react-aria/table"),$;i&&($=`${h.format("sortable")}`,d&&m&&ke()&&($=`${$}, ${h.format(m)}`));let D=Re($),w=t.collection.size===0;return v.useEffect(()=>{w&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[w,t.selectionManager,r.key]),{columnHeaderProps:{...N(u,c,s,D,w?{tabIndex:-1}:null),role:"columnheader",id:jl(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":p},isPressed:f}}const Se={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ll(e,t,l){let{node:n,isVirtualized:o}=e,{rowProps:r,...i}=Tl(e,t,l),{direction:c}=le();o&&!(te()&&"expandedKeys"in t)?r["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete r["aria-rowindex"];let a={};if(te()&&"expandedKeys"in t){let b=t.keyMap.get(n.key);if(b!=null){var s,f,u,p,d,m;let B=((s=b.props)===null||s===void 0?void 0:s.UNSTABLE_childItems)||((u=b.props)===null||u===void 0||(f=u.children)===null||f===void 0?void 0:f.length)>t.userColumnCount;var h,$,D,w;a={onKeyDown:z=>{(z.key===Se.expand[c]&&t.selectionManager.focusedKey===b.key&&B&&t.expandedKeys!=="all"&&!t.expandedKeys.has(b.key)||z.key===Se.collapse[c]&&t.selectionManager.focusedKey===b.key&&B&&(t.expandedKeys==="all"||t.expandedKeys.has(b.key)))&&(t.toggleKey(b.key),z.stopPropagation())},"aria-expanded":B?t.expandedKeys==="all"||t.expandedKeys.has(n.key):void 0,"aria-level":b.level,"aria-posinset":((h=b.indexOfType)!==null&&h!==void 0?h:0)+1,"aria-setsize":b.level>1?((D=(p=I(($=(d=t.keyMap.get(b.parentKey))===null||d===void 0?void 0:d.childNodes)!==null&&$!==void 0?$:[]))===null||p===void 0?void 0:p.indexOfType)!==null&&D!==void 0?D:0)+1:((w=(m=I(t.collection.body.childNodes))===null||m===void 0?void 0:m.indexOfType)!==null&&w!==void 0?w:0)+1}}}let x=Kl(n.props),C=i.hasAction?x:{};return{rowProps:{...N(r,a,C),"aria-labelledby":Ve(t,n.key)},...i}}function Wl(e,t,l){let{node:n,isVirtualized:o}=e,r={role:"row"};return o&&!(te()&&"expandedKeys"in t)&&(r["aria-rowindex"]=n.index+1),{rowProps:r}}function ql(e,t,l){var n;let{gridCellProps:o,isPressed:r}=Ie(e,t,l),i=(n=e.node.column)===null||n===void 0?void 0:n.key;return i!=null&&t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=He(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:r}}
1function Gl(e){return e&&e.__esModule?e.default:e}function Yl(e,t){let{key:l}=e;const{checkboxProps:n}=vl(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${Ve(t,l)}`}}}function Ql(e){let{isEmpty:t,isSelectAll:l,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":ve(Gl(ie),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:l,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!l,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Ct(){return Ml()}function Zl(e){let{collection:t,focusMode:l}=e,n=e.UNSAFE_selectionState||Fe(e),o=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),r=n.setFocusedKey;n.setFocusedKey=(a,s)=>{if(l==="cell"&&a!=null){let m=t.getItem(a);if(m?.type==="item"){var f,u;let h=A(m,t);var p,d;s==="last"?a=(p=(f=I(h))===null||f===void 0?void 0:f.key)!==null&&p!==void 0?p:null:a=(d=(u=j(h))===null||u===void 0?void 0:u.key)!==null&&d!==void 0?d:null}}r(a,s)};let i=v.useMemo(()=>new ml(t,n),[t,n]);const c=v.useRef(null);return v.useEffect(()=>{if(n.focusedKey!=null&&c.current&&!t.getItem(n.focusedKey)){const a=c.current.getItem(n.focusedKey),s=a?.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?c.current.getItem(a.parentKey):a;if(!s){n.setFocusedKey(null);return}const f=c.current.rows,u=t.rows,p=f.length-u.length;let d=Math.min(p>1?Math.max(s.index-p+1,0):s.index,u.length-1),m=null;for(;d>=0;){if(!i.isDisabled(u[d].key)&&u[d].type!=="headerrow"){m=u[d];break}d<u.length-1?d++:(d>s.index&&(d=s.index),d--)}if(m){const h=m.hasChildNodes?[...A(m,t)]:[],$=m.hasChildNodes&&s!==a&&a&&a.index<h.length?h[a.index].key:m.key;n.setFocusedKey($)}else n.setFocusedKey(null)}c.current=t},[t,i,n,n.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:i}}class Jl{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let l=this.keyMap.get(t);var n;return l&&(n=l.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let l=this.keyMap.get(t);var n;return l&&(n=l.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let l=[...this.rows];return(t=l[l.length-1])===null||t===void 0?void 0:t.key}getItem(t){var l;return(l=this.keyMap.get(t))!==null&&l!==void 0?l:null}at(t){const l=[...this.getKeys()];return this.getItem(l[t])}getChildren(t){let l=this.keyMap.get(t);return l?.childNodes||[]}constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let l=u=>{let p=this.keyMap.get(u.key);t.visitNode&&(u=t.visitNode(u)),this.keyMap.set(u.key,u);let d=new Set,m=null,h=!1;if(u.type==="item"){var $;for(let b of u.childNodes)if((($=b.props)===null||$===void 0?void 0:$.colSpan)!==void 0){h=!0;break}}for(let b of u.childNodes){if(b.type==="cell"&&h){var D,w;b.colspan=(D=b.props)===null||D===void 0?void 0:D.colSpan,b.colSpan=(w=b.props)===null||w===void 0?void 0:w.colSpan;var x,C;b.colIndex=m?((x=m.colIndex)!==null&&x!==void 0?x:m.index)+((C=m.colSpan)!==null&&C!==void 0?C:1):b.index}b.type==="cell"&&b.parentKey==null&&(b.parentKey=u.key),d.add(b.key),m?(m.nextKey=b.key,b.prevKey=m.key):b.prevKey=null,l(b),m=b}if(m&&(m.nextKey=null),p)for(let b of p.childNodes)d.has(b.key)||n(b)},n=u=>{this.keyMap.delete(u.key);for(let p of u.childNodes)this.keyMap.get(p.key)===p&&n(p)},o=null;for(let[u,p]of t.items.entries()){var r,i,c,a,s,f;let d={...p,level:(r=p.level)!==null&&r!==void 0?r:0,key:(i=p.key)!==null&&i!==void 0?i:"row-"+u,type:(c=p.type)!==null&&c!==void 0?c:"row",value:(a=p.value)!==null&&a!==void 0?a:null,hasChildNodes:!0,childNodes:[...p.childNodes],rendered:p.rendered,textValue:(s=p.textValue)!==null&&s!==void 0?s:"",index:(f=p.index)!==null&&f!==void 0?f:u};o?(o.nextKey=d.key,d.prevKey=o.key):d.prevKey=null,this.rows.push(d),l(d),o=d}o&&(o.nextKey=null)}}const Dt="row-header-column-"+Math.random().toString(36).slice(2);let pe="row-header-column-"+Math.random().toString(36).slice(2);for(;Dt===pe;)pe="row-header-column-"+Math.random().toString(36).slice(2);function wt(e,t){if(t.length===0)return[];let l=[],n=new Map;for(let f of t){let u=f.parentKey,p=[f];for(;u;){let d=e.get(u);if(!d)break;if(n.has(d)){var o,r;(r=(o=d).colSpan)!==null&&r!==void 0||(o.colSpan=0),d.colSpan++,d.colspan=d.colSpan;let{column:m,index:h}=n.get(d);if(h>p.length)break;for(let $=h;$<p.length;$++)m.splice($,0,null);for(let $=p.length;$<m.length;$++)m[$]&&n.has(m[$])&&(n.get(m[$]).index=$)}else d.colSpan=1,d.colspan=1,p.push(d),n.set(d,{column:p,index:p.length-1});u=d.parentKey}l.push(p),f.index=l.length-1}let i=Math.max(...l.map(f=>f.length)),c=Array(i).fill(0).map(()=>[]),a=0;for(let f of l){let u=i-1;for(let p of f){if(p){let d=c[u],m=d.reduce((h,$)=>{var D;return h+((D=$.colSpan)!==null&&D!==void 0?D:1)},0);if(m<a){let h={type:"placeholder",key:"placeholder-"+p.key,colspan:a-m,colSpan:a-m,index:m,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:""};d.length>0&&(d[d.length-1].nextKey=h.key,h.prevKey=d[d.length-1].key),d.push(h)}d.length>0&&(d[d.length-1].nextKey=p.key,p.prevKey=d[d.length-1].key),p.level=u,p.colIndex=a,d.push(p)}u--}a++}let s=0;for(let f of c){let u=f.reduce((p,d)=>{var m;return p+((m=d.colSpan)!==null&&m!==void 0?m:1)},0);if(u<t.length){let p={type:"placeholder",key:"placeholder-"+f[f.length-1].key,colSpan:t.length-u,colspan:t.length-u,index:u,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:f[f.length-1].key};f.push(p)}s++}return c.map((f,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:f,textValue:""}))}class Xl extends Jl{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let l=this.keyMap.get(t);var n;return(n=l?.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let l=this.keyMap.get(t);var n;return(n=l?.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t,l;return(l=(t=j(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null}getLastKey(){var t,l;return(l=(t=I(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null}getItem(t){var l;return(l=this.keyMap.get(t))!==null&&l!==void 0?l:null}at(t){const l=[...this.getKeys()];return this.getItem(l[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let l=this.getItem(t);if(!l)return"";if(l.textValue)return l.textValue;let n=this.rowHeaderColumnKeys;if(n){let o=[];for(let r of l.childNodes){let i=this.columns[r.index];if(n.has(i.key)&&r.textValue&&o.push(r.textValue),o.length===n.size)break}return o.join(" ")}return""}constructor(t,l,n){let o=new Set,r=null,i=[];if(n?.showSelectionCheckboxes){let u={type:"column",key:Dt,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(u)}if(n?.showDragButtons){let u={type:"column",key:pe,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};i.unshift(u)}let c=[],a=new Map,s=u=>{switch(u.type){case"body":r=u;break;case"column":a.set(u.key,u),u.hasChildNodes||(i.push(u),u.props.isRowHeader&&o.add(u.key));break;case"item":c.push(u);return}for(let p of u.childNodes)s(p)};for(let u of t)s(u);let f=wt(a,i);if(f.forEach((u,p)=>c.splice(p,0,u)),super({columnCount:i.length,items:c,visitNode:u=>(u.column=i[u.index],u)}),this._size=0,this.columns=i,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=f,this._size=[...r.childNodes].length,this.rowHeaderColumnKeys.size===0){let u=this.columns.find(p=>{var d,m;return!(!((d=p.props)===null||d===void 0)&&d.isDragButtonCell)&&!(!((m=p.props)===null||m===void 0)&&m.isSelectionCell)});u&&this.rowHeaderColumnKeys.add(u.key)}}}
1const _l={ascending:"descending",descending:"ascending"};function en(e){let[t,l]=v.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:o,showDragButtons:r}=e,i=v.useMemo(()=>({showSelectionCheckboxes:o&&n!=="none",showDragButtons:r,selectionMode:n,columns:[]}),[e.children,o,n,r]),c=hl(e,v.useCallback(u=>new Xl(u,null,i),[i]),i),{disabledKeys:a,selectionManager:s}=Zl({...e,collection:c,disabledBehavior:e.disabledBehavior||"selection"});var f;return{collection:c,disabledKeys:a,selectionManager:s,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:(f=e.sortDescriptor)!==null&&f!==void 0?f:null,isKeyboardNavigationDisabled:c.size===0||t,setKeyboardNavigationDisabled:l,sort(u,p){var d,m;(m=e.onSortChange)===null||m===void 0||m.call(e,{column:u,direction:p??(((d=e.sortDescriptor)===null||d===void 0?void 0:d.column)===u?_l[e.sortDescriptor.direction]:"ascending")})}}}function tn(e,t){let l=v.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(l);return{...e,collection:l,selectionManager:n}}class ln extends $l{addNode(t){super.addNode(t),this.columnsDirty||(this.columnsDirty=t.type==="column"),t.type==="tableheader"&&(this.head=t),t.type==="tablebody"&&(this.body=t)}commit(t,l,n=!1){this.updateColumns(n),this.rows=[];for(let i of this.getChildren(this.body.key)){let c=i.lastChildKey;if(c!=null){let a=this.getItem(c);var o,r;let s=((o=a.colIndex)!==null&&o!==void 0?o:a.index)+((r=a.colSpan)!==null&&r!==void 0?r:1);if(s!==this.columns.length&&!n)throw new Error(`Cell count must match column count. Found ${s} cells and ${this.columns.length} columns.`)}this.rows.push(i)}super.commit(t,l,n)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let l=new Map,n=o=>{switch(o.type){case"column":l.set(o.key,o),o.hasChildNodes||(o.index=this.columns.length,this.columns.push(o),o.props.isRowHeader&&this.rowHeaderColumnKeys.add(o.key));break}for(let r of this.getChildren(o.key))n(r)};for(let o of this.getChildren(this.head.key))n(o);if(this.headerRows=wt(l,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){this.head.key!==-1&&(yield this.head,yield this.body)}getFirstKey(){return this.body.firstChildKey}getLastKey(){return this.body.lastChildKey}getKeyAfter(t){let l=this.getItem(t);var n;return l?.type==="column"?(n=l.nextKey)!==null&&n!==void 0?n:null:super.getKeyAfter(t)}getKeyBefore(t){var l;let n=this.getItem(t);var o;if(n?.type==="column")return(o=n.prevKey)!==null&&o!==void 0?o:null;let r=super.getKeyBefore(t);return r!=null&&((l=this.getItem(r))===null||l===void 0?void 0:l.type)==="tablebody"?null:r}getChildren(t){if(!this.getItem(t)){for(let l of this.headerRows)if(l.key===t)return l.childNodes}return super.getChildren(t)}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t.body=this.body,t}getTextValue(t){let l=this.getItem(t);if(!l)return"";if(l.textValue)return l.textValue;let n=this.rowHeaderColumnKeys,o=[];for(let r of this.getChildren(t)){let i=this.columns[r.index];if(n.has(i.key)&&r.textValue&&o.push(r.textValue),o.length===n.size)break}return o.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new $e(-1),this.body=new xe(-2),this.columnsDirty=!0}}const nn=v.createContext(null),on=v.createContext(null),F=v.createContext(null),Et=v.createContext(null),rn=v.forwardRef(function(t,l){var n;[t,l]=Ke(t,l,on);let o=Fe(t),{selectionBehavior:r,selectionMode:i,disallowEmptySelection:c}=o,a=!!(!((n=t.dragAndDropHooks)===null||n===void 0)&&n.useDraggableCollectionState),s=v.useMemo(()=>({selectionBehavior:i==="none"?null:r,selectionMode:i,disallowEmptySelection:c,allowsDragging:a}),[r,i,c,a]),f=g.createElement(kt.Provider,{value:s},g.createElement(X,t));return g.createElement(bl,{content:f,createCollection:()=>new ln},u=>g.createElement(an,{props:t,forwardedRef:l,selectionState:o,collection:u}))});let un=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("table",{...t,ref:l})});function an({props:e,forwardedRef:t,selectionState:l,collection:n}){[e,t]=Ke(e,t,De);let{shouldUseVirtualFocus:o,disallowTypeAhead:r,filter:i,...c}=e,a=v.useContext(nn);t=J(v.useMemo(()=>il(t,a?.tableRef),[t,a?.tableRef]));let s=en({...c,collection:n,children:void 0,UNSAFE_selectionState:l}),f=tn(s,i),{isVirtualized:u,layoutDelegate:p,dropTargetDelegate:d,CollectionRoot:m}=v.useContext(S),{dragAndDropHooks:h}=e,{gridProps:$}=Vl({...c,layoutDelegate:p,isVirtualized:u},f,t),D=f.selectionManager,w=!!h?.useDraggableCollectionState,x=!!h?.useDroppableCollectionState;v.useRef(w),v.useRef(x),v.useEffect(()=>{},[w,x]);let C,b,B,z=!1,P=null,K=v.useRef(null);if(w&&h){C=h.useDraggableCollectionState({collection:f.collection,selectionManager:D,preview:h.renderDragPreview?K:void 0}),h.useDraggableCollection({},C,t);let ce=h.DragPreview;P=h.renderDragPreview?g.createElement(ce,{ref:K},h.renderDragPreview):null}if(x&&h){b=h.useDroppableCollectionState({collection:f.collection,selectionManager:D});let ce=new xl({collection:f.collection,disabledKeys:D.disabledKeys,disabledBehavior:D.disabledBehavior,ref:t,layoutDelegate:p}),Ht=h.dropTargetDelegate||d||new h.ListDropTargetDelegate(n.rows,t);B=h.useDroppableCollection({keyboardDelegate:ce,dropTargetDelegate:Ht},b,t),z=b.isDropTarget({type:"root"})}let{focusProps:E,isFocused:O,isFocusVisible:_}=Z(),U=H({className:e.className,style:e.style,defaultClassName:"react-aria-Table",values:{isDropTarget:z,isFocused:O,isFocusVisible:_,state:f}}),jt=!!(w&&!C?.isDisabled),ae=U.style,Ce=null;a&&(Ce=a.useTableColumnResizeState({tableWidth:a.tableWidth},f),u||(ae={...ae,tableLayout:"fixed",width:"fit-content"}));let It=M(e,{global:!0});var se;return g.createElement(ne,{values:[[F,f],[Et,Ce],[Y,{dragAndDropHooks:h,dragState:C,dropState:b}],[Cl,{render:gn}],[De,null],[Gt,null]]},g.createElement(Dl,null,g.createElement(un,{...N(It,U,$,E,B?.collectionProps),style:ae,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":jt||void 0,"data-drop-target":z||void 0,"data-focused":O||void 0,"data-focus-visible":_||void 0},g.createElement(wl,null,g.createElement(m,{collection:f.collection,scrollRef:(se
1=a?.scrollRef)!==null&&se!==void 0?se:t,persistedKeys:El(D,h,b)})))),P)}const kt=v.createContext(null);function ue(){return v.useContext(kt)}class $e extends re{}$e.type="tableheader";let sn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("thead",{...t,ref:l})});const cn=me($e,(e,t)=>{let l=v.useContext(F).collection,n=zl({items:l.headerRows,children:v.useCallback(a=>{switch(a.type){case"headerrow":return g.createElement(fn,{item:a});default:throw new Error("Unsupported node type in TableHeader: "+a.type)}},[])}),{rowGroupProps:o}=Ct(),{hoverProps:r,isHovered:i}=oe({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),c=H({className:e.className,style:e.style,defaultClassName:"react-aria-TableHeader",values:{isHovered:i}});return g.createElement(sn,{...N(M(e,{global:!0}),o,r),...c,ref:t,"data-hovered":i||void 0},n)},e=>g.createElement(X,{dependencies:e.dependencies,items:e.columns},e.children));let dn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("tr",{...t,ref:l})});function fn({item:e}){let t=v.useRef(null),l=v.useContext(F),{isVirtualized:n,CollectionBranch:o}=v.useContext(S),{rowProps:r}=Wl({node:e,isVirtualized:n},l,t),{checkboxProps:i}=Ql(l);return g.createElement(dn,{...r,ref:t},g.createElement(ne,{values:[[ze,{slots:{selection:i}}]]},g.createElement(o,{collection:l.collection,parent:e})))}class St extends re{}St.type="column";let pn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("th",{...t,ref:l})});const Bt=he(St,(e,t,l)=>{var n,o;let r=J(t),i=v.useContext(F),{isVirtualized:c}=v.useContext(S),{columnHeaderProps:a,isPressed:s}=Ul({node:l,isVirtualized:c},i,r),{isFocused:f,isFocusVisible:u,focusProps:p}=Z(),d=v.useContext(Et),m=!1;d&&(m=d.resizingColumn===l.key);let{hoverProps:h,isHovered:$}=oe({isDisabled:!e.allowsSorting}),D=H({...e,id:void 0,children:l.rendered,defaultClassName:"react-aria-Column",values:{isHovered:$,isPressed:s,isFocused:f,isFocusVisible:u,allowsSorting:l.props.allowsSorting,sortDirection:((n=i.sortDescriptor)===null||n===void 0?void 0:n.column)===l.key?i.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(d)d.startResize(l.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:C=>{i.sort(l.key,C)}}}),w=D.style;d&&(w={...w,width:d.getColumnWidth(l.key)});let x=M(e,{global:!0});return delete x.id,g.createElement(pn,{...N(x,a,p,h),...D,style:w,ref:r,"data-hovered":$||void 0,"data-pressed":s||void 0,"data-focused":f||void 0,"data-focus-visible":u||void 0,"data-resizing":m||void 0,"data-allows-sorting":l.props.allowsSorting||void 0,"data-sort-direction":((o=i.sortDescriptor)===null||o===void 0?void 0:o.column)===l.key?i.sortDescriptor.direction:void 0},g.createElement(ne,{values:[[vn,{column:l,triggerRef:r}],[S,Me]]},D.children))}),vn=v.createContext(null);class xe extends yl{}xe.type="tablebody";let mn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("tbody",{...t,ref:l})});const zt=me(xe,(e,t)=>{let l=v.useContext(F),{isVirtualized:n}=v.useContext(S),o=l.collection,{CollectionBranch:r}=v.useContext(S),{dragAndDropHooks:i,dropState:c}=v.useContext(Y),a=!!i?.useDroppableCollectionState&&!c?.isDisabled;var s;let f=a&&!!c&&((s=c.isDropTarget({type:"root"}))!==null&&s!==void 0?s:!1),u=o.size===0,p={isDropTarget:f,isEmpty:u},d=H({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:p}),m,h=o.columnCount;if(u&&e.renderEmptyState&&l){let w={},x={},C={};n?(x["aria-colspan"]=h,C={display:"contents"}):x.colSpan=h,m=g.createElement(q,{role:"row",...w,style:C},g.createElement(G,{role:"rowheader",...x,style:C},e.renderEmptyState(p)))}let{rowGroupProps:$}=Ct(),D=M(e,{global:!0});return g.createElement(mn,{...N(D,d,$),ref:t,"data-empty":u||void 0},a&&g.createElement(Cn,null),g.createElement(r,{collection:o,parent:o.body,renderDropIndicator:gl(i,c)}),m)});class At extends re{filter(t,l,n){let o=t.getChildren(this.key);for(let r of o)if(n(r.textValue,r)){let i=this.clone();return l.addDescendants(i,t),i}return null}}At.type="item";let q=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("tr",{...t,ref:l})});const hn=me(At,(e,t,l)=>{let n=J(t),o=v.useContext(F),{dragAndDropHooks:r,dragState:i,dropState:c}=v.useContext(Y),{isVirtualized:a,CollectionBranch:s}=v.useContext(S),{rowProps:f,...u}=Ll({node:l,shouldSelectOnPressUp:!!i,isVirtualized:a},o,n),{isFocused:p,isFocusVisible:d,focusProps:m}=Z(),{isFocusVisible:h,focusProps:$}=Z({within:!0}),{hoverProps:D,isHovered:w}=oe({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:x}=Yl({key:l.key},o),C;i&&r&&(C=r.useDraggableItem({key:l.key,hasDragButton:!0},i));let b,B=v.useRef(null),{visuallyHiddenProps:z}=ge();c&&r&&(b=r.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"}},c,B));let P=v.useRef(null);v.useEffect(()=>{i&&P.current},[]);let K=i&&i.isDragging(l.key),{children:E,...O}=e,_=H({...O,id:void 0,defaultClassName:"react-aria-Row",values:{...u,isHovered:w,isFocused:p,isFocusVisible:d,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,isDragging:K,isDropTarget:b?.isDropTarget,isFocusVisibleWithin:h,id:l.key}}),U=M(e,{global:!0});return delete U.id,delete U.onClick,g.createElement(g.Fragment,null,b&&!b.isHidden&&g.createElement(q,{role:"row",style:{height:0}},g.createElement(G,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},g.createElement("div",{role:"button",...z,...b.dropIndicatorProps,ref:B}))),g.createElement(q,{...N(U,_,f,m,D,C?.dragProps,$),ref:n,"data-disabled":u.isDisabled||void 0,"data-selected":u.isSelected||void 0,"data-hovered":w||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":K||void 0,"data-drop-target":b?.isDropTarget||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-focus-visible-within":h||void 0},g.createElement(ne,{values:[[ze,{slots:{[we]:{},selection:x}}],[ul,{slots:{[we]:{},drag:{...C?.dragButtonProps,ref:P,style:{pointerEvents:"none"}}}}],[Al,{isSelected:u.isSelected}]]},g.createElement(s,{collection:o.collection,parent:l}))))},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
1let t=[e.value].concat(e.dependencies);return g.createElement(X,{dependencies:t,items:e.columns,idScope:e.id},e.children)});class Kt extends re{}Kt.type="cell";let G=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("td",{...t,ref:l})});const Nt=he(Kt,(e,t,l)=>{let n=J(t),o=v.useContext(F),{dragState:r}=v.useContext(Y),{isVirtualized:i}=v.useContext(S);l.column=o.collection.columns[l.index];let{gridCellProps:c,isPressed:a}=ql({node:l,shouldSelectOnPressUp:!!r,isVirtualized:i},o,n),{isFocused:s,isFocusVisible:f,focusProps:u}=Z(),{hoverProps:p,isHovered:d}=oe({}),m=l.parentKey!=null?o.selectionManager.isSelected(l.parentKey):!1,h=H({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:s,isFocusVisible:f,isPressed:a,isHovered:d,isSelected:m,id:l.key}}),$=M(e,{global:!0});return delete $.id,g.createElement(G,{...N($,h,c,u,p),ref:n,"data-focused":s||void 0,"data-focus-visible":f||void 0,"data-pressed":a||void 0,"data-selected":m||void 0},g.createElement(S.Provider,{value:Me},h.children))});function gn(e,t){t=J(t);let{dragAndDropHooks:l,dropState:n}=v.useContext(Y),o=v.useRef(null),{dropIndicatorProps:r,isHidden:i,isDropTarget:c}=l.useDropIndicator(e,n,o);return i?null:g.createElement(xn,{...e,dropIndicatorProps:r,isDropTarget:c,buttonRef:o,ref:t})}let bn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("tr",{...t,ref:l})}),yn=v.forwardRef(function(t,l){let{isVirtualized:n}=v.useContext(S);return n?g.createElement("div",{...t,ref:l}):g.createElement("td",{...t,ref:l})});function $n(e,t){let{dropIndicatorProps:l,isDropTarget:n,buttonRef:o,...r}=e,i=v.useContext(F),{visuallyHiddenProps:c}=ge(),a=H({...r,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return g.createElement(bn,{...M(e,{global:!0}),...a,role:"row",ref:t,"data-drop-target":n||void 0},g.createElement(yn,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},g.createElement("div",{...c,role:"button",...l,ref:o}),a.children))}const xn=v.forwardRef($n);function Cn(){let e=v.useContext(F),{dragAndDropHooks:t,dropState:l}=v.useContext(Y),n=v.useRef(null),{dropIndicatorProps:o}=t.useDropIndicator({target:{type:"root"}},l,n),r=l.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=ge();return!r&&o["aria-hidden"]?null:g.createElement(q,{role:"row","aria-hidden":o["aria-hidden"],style:{height:0}},g.createElement(G,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},g.createElement("div",{role:"button",...i,...o,ref:n})))}he(kl,function(t,l,n){let o=v.useContext(F),{isVirtualized:r}=v.useContext(S),{isLoading:i,onLoadMore:c,scrollOffset:a,...s}=t,f=o.collection.columns.length,u=v.useRef(null),p=v.useMemo(()=>({onLoadMore:c,collection:o?.collection,sentinelRef:u,scrollOffset:a}),[c,a,o?.collection]);Sl(p,u);let d=H({...s,id:void 0,children:n.rendered,defaultClassName:"react-aria-TableLoadingIndicator",values:null}),m={},h={},$={};return r?(h["aria-colspan"]=f,$={display:"contents"}):h.colSpan=f,g.createElement(g.Fragment,null,g.createElement(q,{style:{height:0},inert:Bl(!0)},g.createElement(G,{style:{padding:0,border:0}},g.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"relative",height:1,width:1}}))),i&&d.children&&g.createElement(q,{...N(M(t,{global:!0}),m),...d,role:"row",ref:l},g.createElement(G,{role:"rowheader",...h,style:$},d.children)))});const V=v.createContext({size:"md"}),Dn=({children:e,className:t,size:l="md",...n})=>y.jsx(V.Provider,{value:{size:l},children:y.jsx("div",{...n,className:R("overflow-hidden rounded-xl bg-primary shadow-xs ring-1 ring-secondary",t),children:e})}),wn=({title:e,badge:t,description:l,contentTrailing:n,className:o})=>{const{size:r}=v.useContext(V);return y.jsxs("div",{className:R("relative flex flex-col items-start gap-4 border-b border-secondary bg-primary px-4 md:flex-row",r==="sm"?"py-4 md:px-5":"py-5 md:px-6",o),children:[y.jsxs("div",{className:"flex flex-1 flex-col gap-0.5",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("h2",{className:R("font-semibold text-primary",r==="sm"?"text-md":"text-lg"),children:e}),t?v.isValidElement(t)?t:y.jsx(Nl,{color:"brand",size:"sm",children:t}):null]}),l&&y.jsx("p",{className:"text-sm text-tertiary",children:l})]}),n]})},Pt=({className:e,size:t="md",...l})=>{const n=v.useContext(V);return y.jsx(V.Provider,{value:{size:n?.size??t},children:y.jsx("div",{className:"overflow-x-auto",children:y.jsx(rn,{className:o=>R("w-full overflow-x-hidden",typeof e=="function"?e(o):e),...l})})})};Pt.displayName="Table";const Rt=({columns:e,children:t,bordered:l=!0,className:n,...o})=>{const{size:r}=v.useContext(V),{selectionBehavior:i,selectionMode:c}=ue();return y.jsxs(cn,{...o,className:a=>R("relative bg-secondary",r==="sm"?"h-9":"h-11",l&&"[&>tr>th]:after:pointer-events-none [&>tr>th]:after:absolute [&>tr>th]:after:inset-x-0 [&>tr>th]:after:bottom-0 [&>tr>th]:after:h-px [&>tr>th]:after:bg-border-secondary [&>tr>th]:focus-visible:after:bg-transparent",typeof n=="function"?n(a):n),children:[i==="toggle"&&y.jsx(Bt,{className:R("relative py-2 pr-0 pl-4",r==="sm"?"w-9 md:pl-5":"w-11 md:pl-6"),children:c==="multiple"&&y.jsx("div",{className:"flex items-start",children:y.jsx(Te,{slot:"selection",size:r})})}),y.jsx(X,{items:e,children:t})]})};Rt.displayName="TableHeader";const Ft=({className:e,tooltip:t,label:l,children:n,...o})=>{const{selectionBehavior:r}=ue();return y.jsx(Bt,{...o,className:i=>
1R("relative p-0 px-6 py-2 outline-hidden focus-visible:z-1 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-bg-primary focus-visible:ring-inset",r==="toggle"&&"nth-2:pl-3",i.allowsSorting&&"cursor-pointer",typeof e=="function"?e(i):e),children:i=>y.jsxs(Yt,{className:"flex items-center gap-1",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[l&&y.jsx("span",{className:"text-xs font-semibold whitespace-nowrap text-quaternary",children:l}),typeof n=="function"?n(i):n]}),t&&y.jsx(Qt,{title:t,placement:"top",children:y.jsx(Zt,{className:"cursor-pointer text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover",children:y.jsx(Jt,{className:"size-4"})})}),i.allowsSorting&&(i.sortDirection?y.jsx(Xt,{className:R("size-3 stroke-[3px] text-fg-quaternary",i.sortDirection==="ascending"&&"rotate-180")}):y.jsx(_t,{className:"size-3 text-fg-quaternary"}))]})})};Ft.displayName="TableHead";const Mt=({columns:e,children:t,className:l,highlightSelectedRow:n=!0,...o})=>{const{size:r}=v.useContext(V),{selectionBehavior:i}=ue();return y.jsxs(hn,{...o,className:c=>R("relative outline-focus-ring transition-colors after:pointer-events-none hover:bg-secondary focus-visible:outline-2 focus-visible:-outline-offset-2",r==="sm"?"h-14":"h-18",n&&"selected:bg-secondary","[&>td]:after:absolute [&>td]:after:inset-x-0 [&>td]:after:bottom-0 [&>td]:after:h-px [&>td]:after:w-full [&>td]:after:bg-border-secondary last:[&>td]:after:hidden [&>td]:focus-visible:after:opacity-0 focus-visible:[&>td]:after:opacity-0",typeof l=="function"?l(c):l),children:[i==="toggle"&&y.jsx(Nt,{className:R("relative py-2 pr-0 pl-4",r==="sm"?"md:pl-5":"md:pl-6"),children:y.jsx("div",{className:"flex items-end",children:y.jsx(Te,{slot:"selection",size:r})})}),y.jsx(X,{items:e,children:t})]})};Mt.displayName="TableRow";const Tt=({className:e,children:t,...l})=>{const{size:n}=v.useContext(V),{selectionBehavior:o}=ue();return y.jsx(Nt,{...l,className:r=>R("relative text-sm text-tertiary outline-focus-ring focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-2",n==="sm"&&"px-5 py-3",n==="md"&&"px-6 py-4",o==="toggle"&&"nth-2:pl-3",typeof e=="function"?e(r):e),children:t})};Tt.displayName="TableCell";const Be={Root:Dn,Header:wn},k=Pt;k.Body=zt;k.Cell=Tt;k.Head=Ft;k.Header=Rt;k.Row=Mt;const Tn=Vt(function(){const t=Ot(),l=Lt(),[n,o]=v.useState(null),{data:r=[],isLoading:i,error:c}=Ut(Wt.admin.users.list.queryOptions()),a=qt({mutationFn:async s=>{o(s);const f=await Pl.admin.impersonateUser({userId:s});if(f.error)throw f.error;return f.data},onSuccess:()=>{l.invalidateQueries(),t("/")},onError:s=>{console.error("Impersonation failed:",s),o(null)}});return i?y.jsx("div",{className:"text-secondary",children:"Loading users..."}):c?y.jsxs("div",{className:"text-error-primary",children:["Error loading users:"," ",c instanceof Error?c.message:"Unknown error"]}):y.jsxs(Be.Root,{children:[y.jsx(Be.Header,{title:"Users",badge:r.length,description:"Manage users and impersonate them for debugging"}),y.jsxs(k,{"aria-label":"Users",children:[y.jsxs(k.Header,{children:[y.jsx(k.Head,{id:"name",isRowHeader:!0,children:"Name"}),y.jsx(k.Head,{id:"email",children:"Email"}),y.jsx(k.Head,{id:"role",children:"Role"}),y.jsx(k.Head,{id:"iconSets",children:"Icon Sets"}),y.jsx(k.Head,{id:"icons",children:"Icons"}),y.jsx(k.Head,{id:"createdAt",children:"Created"}),y.jsx(k.Head,{id:"actions"})]}),y.jsx(zt,{items:r,children:s=>y.jsxs(k.Row,{id:s.id,children:[y.jsx(k.Cell,{className:"text-primary font-medium",children:s.name}),y.jsx(k.Cell,{children:s.email}),y.jsx(k.Cell,{children:y.jsx("span",{className:s.role==="admin"?"text-brand-primary font-medium":"",children:s.role??"user"})}),y.jsx(k.Cell,{children:s.iconSetsCount}),y.jsx(k.Cell,{children:s.iconsCount}),y.jsx(k.Cell,{children:new Date(s.createdAt).toLocaleDateString()}),y.jsx(k.Cell,{children:y.jsxs(Q.Root,{children:[y.jsx(Q.DotsButton,{}),y.jsx(Q.Popover,{className:"w-min",children:y.jsx(Q.Menu,{children:y.jsx(Q.Item,{icon:el,onAction:()=>a.mutate(s.id),isDisabled:a.isPending&&n===s.id,children:y.jsx("span",{className:"pr-4",children:a.isPending&&n===s.id?"Impersonating...":"Impersonate"})})})})]})})]},s.id)})]})]})});export{Tn as default};
2//# sourceMappingURL=users-DZ-0vzRt.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.