1import{j as g}from"./app-C1iegf7Q.js";import{b as c,G as P,r as Te,H as In,L as qt,f as ct}from"./inertia-BpyZy4w-.js";import{I as Mn}from"./lucide-react-CfMZLD62.js";import{I as An}from"./input-DJt0nBB3.js";import{a as Tn}from"./admin-layout-BhXWbUlP.js";import{P as kn}from"./plus-BJl-aJiX.js";import{S as On}from"./search-BY9GDMxP.js";import{G as jn}from"./grip-vertical-B7cOZWqO.js";import{S as Ln}from"./square-pen-DgHxGDPS.js";import{T as zn}from"./trash-2-CrI9a2Po.js";/* empty css */import"./createLucideIcon-wqc1LSWg.js";import"./folder-cog-6sjgGayB.js";import"./columns-3-DBhLDfU_.js";import"./settings-2-BIdvrjXz.js";import"./gauge-DL0bVHaV.js";import"./arrow-left-DCX0fhKH.js";import"./arrow-right-CQhEyoMD.js";import"./arrow-up-right-B21lSD-k.js";import"./arrow-up-BHnbhhO7.js";import"./award-BziOa6p_.js";import"./badge-check-CQa_6p0Q.js";import"./scale-DNFIsonz.js";import"./bell-BvDZckLh.js";import"./link-DKPEjeqT.js";import"./book-open-DVFlG_9t.js";import"./rocket-C1QyJ8QE.js";import"./bookmark-check-Dlib6mAI.js";import"./bookmark-NL3u0C0t.js";import"./briefcase-CaOXuslt.js";import"./building-2-Bm2I7vEj.js";import"./calendar-check-Qh7pLIha.js";import"./calendar-clock-CNQtO705.js";import"./calendar-days-CT1ztEQ-.js";import"./check-check-B77TJnTp.js";import"./unplug-CF7ICeYs.js";import"./calendar-C9IvR7oY.js";import"./chart-column-B_x9vOsC.js";import"./check-0O-UND6N.js";import"./chevron-down-B1YaU0K5.js";import"./chevron-left-BC-feIS7.js";import"./chevron-right-ymZwGCJO.js";import"./chevron-up-CLp5HMgA.js";import"./circle-alert-D8tEThd5.js";import"./circle-check-big-AJlsIacq.js";import"./circle-check-BMWvzPMx.js";import"./circle-dot-D4DhtLx-.js";import"./circle-help-CLje27Z2.js";import"./circle-play-ri1AJb9Y.js";import"./circle-stop-XVmKWSyl.js";import"./circle-user-BGRnThUj.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-CLXJbTMk.js";import"./clipboard-check-CjgTm5I1.js";import"./clipboard-list-O4HZX3KF.js";import"./clipboard-DVTW5dV8.js";import"./clock-BtI_SZvJ.js";import"./undo-BjvUJKje.js";import"./compass-Sjw0tQtp.js";import"./copy-DmjhZUbe.js";import"./credit-card-DS8hXeZ4.js";import"./database-D9VIgS0m.js";import"./dollar-sign-Ck66Jney.js";import"./download-CXbkSkxk.js";import"./ellipsis-dh0qVsjB.js";import"./external-link-avvfS30C.js";import"./eye-off-MvQ-AuyG.js";import"./eye-DoZffUO5.js";import"./file-check-2-B1qpw3Tn.js";import"./file-check-B8N_5iiV.js";import"./file-pen-line-ByvL5wyC.js";import"./file-search-CM0E7Jpo.js";import"./file-text-XcQuIA-l.js";import"./file-up-AxOtJHrH.js";import"./youtube-D44Ae3nQ.js";import"./filter-BZ7kFyR8.js";import"./route-iOdXYI3Y.js";import"./flag-CaFXrtTk.js";import"./flask-conical-DDq57r4G.js";import"./folder-open-I72SPUVk.js";import"./globe-1VarvlLW.js";import"./graduation-cap-CCVaA_o7.js";import"./unlink-CeG1DYqQ.js";import"./headset-DgQ-NORx.js";import"./history-29VTm3ac.js";import"./house-XJaf3ukP.js";import"./image-plus-Drz-1lbN.js";import"./image-vCg-0Xge.js";import"./inbox-EL5oFErb.js";import"./info-D2ZN_yLm.js";import"./languages-CzPZxd4i.js";import"./layers-DnTtLc5p.js";import"./flash-toast-C6O0iVL1.js";import"./triangle-alert-C7AVwNi-.js";import"./x-DQSeRCcH.js";import"./layout-grid-PlAvcMDs.js";import"./layout-template-DhGF-5eq.js";import"./life-buoy-C3CKqgTN.js";import"./lightbulb-nUeyUDZn.js";import"./link-2-D0ZKUr8N.js";import"./linkedin-DJEnv-8I.js";import"./list-checks-Bawt066a.js";import"./underline-BUwyLhKb.js";import"./list-BgP0xxm1.js";import"./loader-circle-C_KBZAGS.js";import"./shield-ban-DYFCjczX.js";import"./lock-eEI5w3jQ.js";import"./log-in-Dg2nNREu.js";import"./mail-check-CMWNPRbj.js";import"./mail-Dwbp3545.js";import"./map-pin-CrQmCnbd.js";import"./map-BNV3OJ1S.js";import"./megaphone-opizzcRj.js";import"./menu-BR3Nc3Gr.js";import"./message-circle-c43k_fjC.js";import"./message-square-plus-DhS9yu8k.js";import"./message-square-text-D-t9hVeQ.js";import"./message-square-E9C1K8Gx.js";import"./minus-BxBzNlIL.js";import"./monitor-CQjW_Bsm.js";import"./sun--Q8JB_4i.js";import"./music-CsdxzPnB.js";import"./package-65QLf_ad.js";import"./paperclip-Cc7CaGPI.js";import"./party-popper-BbNiBfbI.js";import"./pause-CCF2qwpD.js";import"./pen-line-DxMOfwPU.js";import"./pencil-DJkCCH8r.js";import"./phone-call-C0bmjy7g.js";import"./phone-BkT_aCYJ.js";import"./pin-BGkO2dwr.js";import"./plane-B5evcQu0.js";import"./play-FaiXzTos.js";import"./pound-sterling-D16GLaAZ.js";import"./quote-BLp7dxmt.js";import"./receipt-CX8afdgY.js";import"./refresh-cw-Cog2DILh.js";import"./rotate-ccw-29DaKli5.js";import"./scroll-text-D2y_6MMB.js";import"./scroll-BhV8fbOX.js";import"./send-COySMMwK.js";import"./shield-alert-CGX6PHoz.js";import"./shield-check-CdWPLoDE.js";import"./shield-off-KOaPd0RW.js";import"./shield-x-ZI1yi9nG.js";import"./shield-E3smhAzV.js";import"./sliders-horizontal-BN9hBO0Y.js";import"./smartphone-CH_9476b.js";import"./sparkles-C0aC1RHI.js";import"./square-check-big-Dm8_6ZnG.js";import"./square-check-CTjGeuh-.js";import"./stamp-DioeSsh-.js";import"./star-C_kjJuSS.js";import"./tag-Y9khOy55.js";import"./target-Cj5tDbkI.js";import"./thumbs-up-BUoe2j5t.js";import"./timer-BSIo1jdW.js";import"./toggle-right-DeJAaLt4.js";import"./trending-up-BfKjCZdl.js";import"./upload-C1CGckSw.js";import"./user-check-SeZyvKBM.js";import"./user-plus-Fc74DwlK.js";import"./user-x-B--CBM7t.js";import"./user-zm6AyDtY.js";import"./users-BCcupCXV.js";import"./video-CJHgxwGi.js";import"./wallet-CGPJOgxP.js";import"./wrench-DYTITa-m.js";import"./zap-Bczke022.js";
1import"./utils-BiuKVCuu.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";function Pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function we(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function bt(e){return"nodeType"in e}function $(e){var t,n;return e?we(e)?e:bt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function xt(e){const{Document:t}=$(e);return e instanceof t}function Be(e){return we(e)?!1:e instanceof $(e).HTMLElement}function _t(e){return e instanceof $(e).SVGElement}function ye(e){return e?we(e)?e.document:bt(e)?xt(e)?e:Be(e)||_t(e)?e.ownerDocument:document:document:document}const Z=tt?c.useLayoutEffect:c.useEffect;function wt(e){const t=c.useRef(e);return Z(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function $n(){const e=c.useRef(null),t=c.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Le(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return Z(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Je(e){const t=wt(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function pt(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let lt={};function Xe(e,t){return c.useMemo(()=>{if(t)return t;const n=lt[e]==null?0:lt[e]+1;return lt[e]=n,e+"-"+n},[e,t])}function Jt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{const a=Object.entries(s);for(const[l,u]of a){const f=i[l];f!=null&&(i[l]=f+e*u)}return i},{...t})}}const xe=Jt(1),ze=Jt(-1);function Bn(e){return"clientX"in e&&"clientY"in e}function yt(e){if(!e)return!1;const{KeyboardEvent:t}=$(e.target);return t&&e instanceof t}function Fn(e){if(!e)return!1;const{TouchEvent:t}=$(e.target);return t&&e instanceof t}function ht(e){if(Fn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Bn(e)?{x:e.clientX,y:e.clientY}:null}const Pe=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Pe.Translate.toString(e),Pe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Lt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Xn(e){return e.matches(Lt)?e:e.querySelector(Lt)}const Un={display:"none"};function Yn(e){let{id:t,value:n}=e;return P.createElement("div",{id:t,style:Un},n)}function Wn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return P.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Hn(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Qt=c.createContext(null);function Kn(e){const t=c.useContext(Qt);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Vn(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}const Gn={draggable:` 2 To pick up a draggable item, press the space bar. 3 While dragging, use the arrow keys to move the item. 4 Press space again to drop the item in its new position, or press escape to cancel. 5 `},qn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _n(e){let{announcements:t=qn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Gn}=e;const{announce:i,announcement:s}=Hn(),a=Xe("DndLiveRegion"),[l,u]=c.useState(!1);if(c.useEffect(()=>{u(!0)},[]),Kn(c.useMemo(()=>({onDragStart(d){let{active:h}=d;i(t.onDragStart({active:h}))},onDragMove(d){let{active:h,over:p}=d;t.onDragMove&&i(t.onDragMove({active:h,over:p}))},onDragOver(d){let{active:h,over:p}=d;i(t.onDragOver({active:h,over:p}))},onDragEnd(d){let{active:h,over:p}=d;i(t.onDragEnd({active:h,over:p}))},onDragCancel(d){let{active:h,over:p}=d;
5i(t.onDragCancel({active:h,over:p}))}}),[i,t])),!l)return null;const f=P.createElement(P.Fragment,null,P.createElement(Yn,{id:r,value:o.draggable}),P.createElement(Wn,{id:a,announcement:s}));return n?Te.createPortal(f,n):f}var T;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(T||(T={}));function Qe(){}function zt(e,t){return c.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const G=Object.freeze({x:0,y:0});function Zt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function en(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Qn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Pt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function tn(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function $t(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=$t(t,t.left,t.top),i=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=Zt($t(l),o);i.push({id:a,data:{droppableContainer:s,value:u}})}}return i.sort(en)},er=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Pt(t),i=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=Pt(l),f=o.reduce((h,p,b)=>h+Zt(u[b],p),0),d=Number((f/4).toFixed(4));i.push({id:a,data:{droppableContainer:s,value:d}})}}return i.sort(en)};function tr(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){const l=t.width*t.height,u=e.width*e.height,f=s*a,d=f/(l+u-f);return Number(d.toFixed(4))}return 0}const nr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,a=n.get(s);if(a){const l=tr(a,t);l>0&&o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Qn)};function rr(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function nn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:G}function or(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const ir=or(1);function sr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function ar(e,t,n){const r=sr(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:a}=r,l=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l}}const cr={ignoreTransform:!1};function De(e,t){t===void 0&&(t=cr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=$(e).getComputedStyle(e);u&&(n=ar(n,u,f))}const{top:r,left:o,width:i,height:s,bottom:a,right:l}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:l}}function Bt(e){return De(e,{ignoreTransform:!0})}function lr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ur(e,t){return t===void 0&&(t=$(e).getComputedStyle(e)),t.position==="fixed"}function dr(e,t){t===void 0&&(t=$(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function nt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(xt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Be(o)||_t(o)||n.includes(o))return n;const i=$(e).getComputedStyle(o);return o!==e&&dr(o,i)&&n.push(o),ur(o,i)?n:r(o.parentNode)}return e?r(e):n}function rn(e){const[t]=nt(e,1);return t??null}function ut(e){return!tt||!e?null:we(e)?e:bt(e)?xt(e)||e===ye(e).scrollingElement?window:Be(e)?e:null:null}function on(e){return we(e)?e.scrollX:e.scrollLeft}function sn(e){return we(e)?e.scrollY:e.scrollTop}function gt(e){return{x:on(e),y:sn(e)}}var O;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(O||(O={}));function an(e){return!tt||!e?!1:e===document.scrollingElement}function cn(e){const t={x:0,y:0},n=an(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const fr={x:.2,y:.2};function pr(e,t,n,r,o){let{top:i,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=fr);const{isTop:u,isBottom:f,isLeft:d,isRight:h}=cn(e),p={x:0,y:0},b={x:0,y:0},m={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+m.height?(p.y=O.Backward,b.y=r*Math.abs((t.top+m.height-i)/m.height)):!f&&l>=t.bottom-m.height&&(p.y=O.Forward,b.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!h&&a>=t.right-m.width?(p.x=O.Forward,b.x=r*Math.abs((t.right-m.width-a)/m.width)):!d&&s<=t.left+m.width&&(p.x=O.Backward,b.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:p,speed:b}}function hr(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function ln(e){return e.reduce((t,n)=>xe(t,gt(n)),G)}function gr(e){return e.reduce((t,n)=>t+on(n),0)}function mr(e){return e.reduce((t,n)=>t+sn(n),0)}function vr(e,t){if(t===void 0&&(t=De),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);rn(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const br=[["x",["left","right"],gr],["y",["top","bottom"],mr]];class Dt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=nt(n),o=ln(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,a]of br)for(const l of s)Object.defineProperty(this,l,{get:()=>{const u=a(r),f=o[i]-u;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ke{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>
5{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function xr(e){const{EventTarget:t}=$(e);return e instanceof t?e:ye(e)}function dt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var H;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(H||(H={}));function Ft(e){e.preventDefault()}function wr(e){e.stopPropagation()}var S;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(S||(S={}));const un={start:[S.Space,S.Enter],cancel:[S.Esc],end:[S.Space,S.Enter,S.Tab]},yr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case S.Right:return{...n,x:n.x+25};case S.Left:return{...n,x:n.x-25};case S.Down:return{...n,y:n.y+25};case S.Up:return{...n,y:n.y-25}}};class Ct{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ke(ye(n)),this.windowListeners=new ke($(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(H.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&vr(r),n(G)}handleKeyDown(t){if(yt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=un,coordinateGetter:s=yr,scrollBehavior:a="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:G;this.referenceCoordinates||(this.referenceCoordinates=f);const d=s(t,{active:n,context:r.current,currentCoordinates:f});if(d){const h=ze(d,f),p={x:0,y:0},{scrollableAncestors:b}=r.current;for(const m of b){const v=t.code,{isTop:w,isRight:y,isLeft:x,isBottom:C,maxScroll:D,minScroll:N}
5=cn(m),R=hr(m),E={x:Math.min(v===S.Right?R.right-R.width/2:R.right,Math.max(v===S.Right?R.left:R.left+R.width/2,d.x)),y:Math.min(v===S.Down?R.bottom-R.height/2:R.bottom,Math.max(v===S.Down?R.top:R.top+R.height/2,d.y))},A=v===S.Right&&!y||v===S.Left&&!x,k=v===S.Down&&!C||v===S.Up&&!w;if(A&&E.x!==d.x){const M=m.scrollLeft+h.x,K=v===S.Right&&M<=D.x||v===S.Left&&M>=N.x;if(K&&!h.y){m.scrollTo({left:M,behavior:a});return}K?p.x=m.scrollLeft-M:p.x=v===S.Right?m.scrollLeft-D.x:m.scrollLeft-N.x,p.x&&m.scrollBy({left:-p.x,behavior:a});break}else if(k&&E.y!==d.y){const M=m.scrollTop+h.y,K=v===S.Down&&M<=D.y||v===S.Up&&M>=N.y;if(K&&!h.x){m.scrollTo({top:M,behavior:a});return}K?p.y=m.scrollTop-M:p.y=v===S.Down?m.scrollTop-D.y:m.scrollTop-N.y,p.y&&m.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(t,xe(ze(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ct.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=un,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Xt(e){return!!(e&&"distance"in e)}function Ut(e){return!!(e&&"delay"in e)}class St{constructor(t,n,r){var o;r===void 0&&(r=xr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=ye(s),this.documentListeners=new ke(this.document),this.listeners=new ke(r),this.windowListeners=new ke($(s)),this.initialCoordinates=(o=ht(i))!=null?o:G,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.DragStart,Ft),this.windowListeners.add(H.VisibilityChange,this.handleCancel),this.windowListeners.add(H.ContextMenu,Ft),this.documentListeners.add(H.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ut(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Xt(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(H.Click,wr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(H.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;const l=(n=ht(t))!=null?n:G,u=ze(o,l);if(!r&&a){if(Xt(a)){if(a.tolerance!=null&&dt(u,a.tolerance))return this.handleCancel();if(dt(u,a.distance))return this.handleStart()}if(Ut(a)&&dt(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===S.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Dr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Rt extends St{constructor(t){const{event:n}=t,r=ye(n.target);super(t,Dr,r)}}Rt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const Cr={move:{name:"mousemove"},end:{name:"mouseup"}};var mt;(function(e){e[e.RightClick=2]="RightClick"})(mt||(mt={}));class Sr extends St{constructor(t){super(t,Cr,ye(t.event.target))}}Sr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===mt.RightClick?!1:(r?.({event:n}),!0)}}];
5const ft={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Rr extends St{constructor(t){super(t,ft)}static setup(){return window.addEventListener(ft.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ft.move.name,t)};function t(){}}}Rr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Oe;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Oe||(Oe={}));var Ze;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ze||(Ze={}));function Er(e){let{acceleration:t,activator:n=Oe.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=Ze.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:h}=e;const p=Ir({delta:d,disabled:!i}),[b,m]=$n(),v=c.useRef({x:0,y:0}),w=c.useRef({x:0,y:0}),y=c.useMemo(()=>{switch(n){case Oe.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Oe.DraggableRect:return o}},[n,o,l]),x=c.useRef(null),C=c.useCallback(()=>{const N=x.current;if(!N)return;const R=v.current.x*w.current.x,E=v.current.y*w.current.y;N.scrollBy(R,E)},[]),D=c.useMemo(()=>a===Ze.TreeOrder?[...u].reverse():u,[a,u]);c.useEffect(()=>{if(!i||!u.length||!y){m();return}for(const N of D){if(r?.(N)===!1)continue;const R=u.indexOf(N),E=f[R];if(!E)continue;const{direction:A,speed:k}=pr(N,E,y,t,h);for(const M of["x","y"])p[M][A[M]]||(k[M]=0,A[M]=0);if(k.x>0||k.y>0){m(),x.current=N,b(C,s),v.current=k,w.current=A;return}}v.current={x:0,y:0},w.current={x:0,y:0},m()},[t,C,r,m,i,s,JSON.stringify(y),JSON.stringify(p),b,u,D,f,JSON.stringify(h)])}const Nr={x:{[O.Backward]:!1,[O.Forward]:!1},y:{[O.Backward]:!1,[O.Forward]:!1}};function Ir(e){let{delta:t,disabled:n}=e;const r=pt(t);return Fe(o=>{if(n||!r||!o)return Nr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[O.Backward]:o.x[O.Backward]||i.x===-1,[O.Forward]:o.x[O.Forward]||i.x===1},y:{[O.Backward]:o.y[O.Backward]||i.y===-1,[O.Forward]:o.y[O.Forward]||i.y===1}}},[n,t,r])}function Mr(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fe(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Ar(e,t){return c.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var $e;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})($e||($e={}));var vt;(function(e){e.Optimized="optimized"})(vt||(vt={}));const Yt=new Map;function Tr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=c.useState(null),{frequency:a,measure:l,strategy:u}=o,f=c.useRef(e),d=v(),h=Le(d),p=c.useCallback(function(w){w===void 0&&(w=[]),!h.current&&s(y=>y===null?w:y.concat(w.filter(x=>!y.includes(x))))},[h]),b=c.useRef(null),m=Fe(w=>{if(d&&!n)return Yt;if(!w||w===Yt||f.current!==e||i!=null){const y=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){y.set(x.id,x.rect.current);continue}const C=x.node.current,D=C?new Dt(l(C),C):null;x.rect.current=D,D&&y.set(x.id,D)}return y}return w},[e,i,n,d,l]);return c.useEffect(()=>{f.current=e},[e]),c.useEffect(()=>{d||p()},[n,d]),c.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),c.useEffect(()=>{d||typeof a!="number"||b.current!==null||(b.current=setTimeout(()=>{p(),b.current=null},a))},[a,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:i!=null};function v(){switch(u){case $e.Always:return!1;case $e.BeforeDragging:return n;default:return!n}}}function dn(e,t){return Fe(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function kr(e,t){return dn(e,t)}function Or(e){let{callback:t,disabled:n}=e;const r=wt(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function rt(e){let{callback:t,disabled:n}=e;const r=wt(t),o=c.useMemo(()=>
5{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function jr(e){return new Dt(De(e),e)}function Wt(e,t,n){t===void 0&&(t=jr);const[r,o]=c.useState(null);function i(){o(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f})}const s=Or({callback(l){if(e)for(const u of l){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=rt({callback:i});return Z(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Lr(e){const t=dn(e);return nn(e,t)}const Ht=[];function zr(e){const t=c.useRef(e),n=Fe(r=>e?r&&r!==Ht&&e&&t.current&&e.parentNode===t.current.parentNode?r:nt(e):Ht,[e]);return c.useEffect(()=>{t.current=e},[e]),n}function Pr(e){const[t,n]=c.useState(null),r=c.useRef(e),o=c.useCallback(i=>{const s=ut(i.target);s&&n(a=>a?(a.set(s,gt(s)),new Map(a)):null)},[]);return c.useEffect(()=>{const i=r.current;if(e!==i){s(i);const a=e.map(l=>{const u=ut(l);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,gt(u)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(l=>{const u=ut(l);u?.removeEventListener("scroll",o)})}},[o,e]),c.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>xe(i,s),G):ln(e):G,[e,t])}function Kt(e,t){t===void 0&&(t=[]);const n=c.useRef(null);return c.useEffect(()=>{n.current=null},t),c.useEffect(()=>{const r=e!==G;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ze(e,n.current):G}function $r(e){c.useEffect(()=>{if(!tt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Br(e,t){return c.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function fn(e){return c.useMemo(()=>e?lr(e):null,[e])}const Vt=[];function Fr(e,t){t===void 0&&(t=De);const[n]=e,r=fn(n?$(n):null),[o,i]=c.useState(Vt);function s(){i(()=>e.length?e.map(l=>an(l)?r:new Dt(t(l),l)):Vt)}const a=rt({callback:s});return Z(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),o}function Xr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Be(t)?t:e}function Ur(e){let{measure:t}=e;const[n,r]=c.useState(null),o=c.useCallback(u=>{for(const{target:f}of u)if(Be(f)){r(d=>{const h=t(f);return d?{...d,width:h.width,height:h.height}:h});break}},[t]),i=rt({callback:o}),s=c.useCallback(u=>{const f=Xr(u);i?.disconnect(),f&&i?.observe(f),r(f?t(f):null)},[t,i]),[a,l]=Je(s);return c.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const Yr=[{sensor:Rt,options:{}},{sensor:Ct,options:{}}],Wr={current:{}},_e={draggable:{measure:Bt},droppable:{measure:Bt,strategy:$e.WhileDragging,frequency:vt.Optimized},dragOverlay:{measure:De}};class je extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Hr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new je,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_e,measureDroppableContainers:Qe,windowRect:null,measuringScheduled:!1},Kr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qe,draggableNodes:new Map,over:null,measureDroppableContainers:Qe},ot=c.createContext(Kr),pn=c.createContext(Hr);function Vr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new je}}}function Gr(e,t){switch(t.type){case T.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case T.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case T.DragEnd:case T.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case T.RegisterDroppable:{const{element:n}=t,{id:r}
5=n,o=new je(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case T.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new je(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case T.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new je(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function qr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=c.useContext(ot),i=pt(r),s=pt(n?.id);return c.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!yt(i)||document.activeElement===i.target)return;const a=o.get(s);if(!a)return;const{activatorNode:l,node:u}=a;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[l.current,u.current]){if(!f)continue;const d=Xn(f);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function _r(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Jr(e){return c.useMemo(()=>({draggable:{..._e.draggable,...e?.draggable},droppable:{..._e.droppable,...e?.droppable},dragOverlay:{..._e.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Qr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=c.useRef(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;Z(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const f=n(u),d=nn(f,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const h=rn(u);h&&h.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const hn=c.createContext({...G,scaleX:1,scaleY:1});var de;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(de||(de={}));const Zr=c.memo(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:l=!0,children:u,sensors:f=Yr,collisionDetection:d=nr,measuring:h,modifiers:p,...b}=t;const m=c.useReducer(Gr,void 0,Vr),[v,w]=m,[y,x]=Vn(),[C,D]=c.useState(de.Uninitialized),N=C===de.Initialized,{draggable:{active:R,nodes:E,translate:A},droppable:{containers:k}}=v,M=R!=null?E.get(R):null,K=c.useRef({initial:null,translated:null}),V=c.useMemo(()=>{var L;return R!=null?{id:R,data:(L=M?.data)!=null?L:Wr,rect:K}:null},[R,M]),q=c.useRef(null),[Ce,Ue]=c.useState(null),[B,Ye]=c.useState(null),ee=Le(b,Object.values(b)),Se=Xe("DndDescribedBy",s),We=c.useMemo(()=>k.getEnabled(),[k]),z=Jr(h),{droppableRects:te,measureDroppableContainers:fe,measuringScheduled:Re}=Tr(We,{dragging:N,dependencies:[A.x,A.y],config:z.droppable}),Y=Mr(E,R),He=c.useMemo(()=>B?ht(B):null,[B]),ie=Nn(),ne=kr(Y,z.draggable.measure);Qr({activeNode:R!=null?E.get(R):null,config:ie.layoutShiftCompensation,initialRect:ne,measure:z.draggable.measure});const I=Wt(Y,z.draggable.measure,ne),Ee=Wt(Y?Y.parentElement:null),_=c.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:te,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pe=k.getNodeFor((n=_.current.over)==null?void 0:n.id),re=Ur({measure:z.dragOverlay.measure}),he=(r=re.nodeRef.current)!=null?r:Y,ge=N?(o=re.rect)!=null?o:I:null,Nt=!!(re.nodeRef.current&&re.rect),It=Lr(Nt?null:I),it=fn(he?$(he):null),se=zr(N?pe??Y:null),Ke=Fr(se),Ve=_r(p,{transform:{x:A.x-It.x,y:A.y-It.y,scaleX:1,scaleY:1},activatorEvent:B,active:V,activeNodeRect:I,containerNodeRect:Ee,draggingNodeRect:ge,over:_.current.over,overlayNodeRect:re.rect,scrollableAncestors:se,scrollableAncestorRects:Ke,windowRect:it}),Mt=He?xe(He,A):null,At=Pr(se),wn=Kt(At),yn=Kt(At,[I]),me=xe(Ve,wn),ve=ge?ir(ge,Ve):null,Ne=V&&ve?d({active:V,collisionRect:ve,droppableRects:te,droppableContainers:We,pointerCoordinates:Mt}):null,Tt=tn(Ne,"id"),[ae,kt]=c.useState(null),Dn=Nt?Ve:xe(Ve,yn),Cn=rr(Dn,(i=ae?.rect)!=null?i:null,I),st=c.useRef(null),Ot=c.useCallback((L,F)=>{let{sensor:X,options:ce}=F;if(q.current==null)return;const W=E.get(q.current);if(!W)return;const U=L.nativeEvent,J=new X({active:q.current,activeNode:W,event:U,options:ce,context:_,onAbort(j){if(!E.get(j))return;const{onDragAbort:Q}=ee.current,oe={id:j};Q?.(oe),y({type:"onDragAbort",event:oe})},onPending(j,le,Q,oe){if(!E.get(j))return;const{onDragPending:Me}=ee.current,ue={id:j,constraint:le,initialCoordinates:Q,offset:oe};Me?.(ue),y({type:"onDragPending",event:ue})},onStart(j){const le=q.current;if(le==null)return;const Q=E.get(le);if(!Q)return;const{onDragStart:oe}=ee.current,Ie={activatorEvent:U,active:{id:le,data:Q.data,rect:K}};Te.unstable_batchedUpdates(()=>{oe?.(Ie),D(de.Initializing),w({type:T.DragStart,initialCoordinates:j,active:le}),y({type:"onDragStart",event:Ie}),Ue(st.current),Ye(U)})},onMove(j){w({type:T.DragMove,coordinates:j})},onEnd:be(T.DragEnd),onCancel:be(T.DragCancel)});st.current=J;function be(j){return async function(){const{active:Q,collisions:oe,over:Ie,scrollAdjustedTranslate:Me}=_.current;let ue=null;if(Q&&Me){const{cancelDrop:Ae}=ee.current;ue={activatorEvent:U,active:Q,collisions:oe,delta:Me,over:Ie},j===T.DragEnd&&typeof Ae=="function"&&await Promise.resolve(Ae(ue))&&(j=T.DragCancel)}q.current=null,Te.unstable_batchedUpdates(()=>{w({type:j}),D(de.Uninitialized),kt(null),Ue(null),Ye(null),st.current=null;const Ae=j===T.DragEnd?"onDragEnd":"onDragCancel";if(ue){const at=ee.current[Ae];at?.(ue),y({type:Ae,event:ue})}})}}},[E]),Sn=c.useCallback((L,F)=>(X,ce)=>{const W=X.nativeEvent,U=E.get(ce);if(q.current!==null||!U||W.dndKit||W.defaultPrevented)return;const J={active:U};L(X,F.options,J)===!0&&(W.dndKit={capturedBy:F.sensor},q.current=ce,Ot(X,F))},[E,Ot]),jt=Ar(f,Sn);$r(f),Z(()=>{I&&C===de.Initializing&&D(de.Initialized)},[I,C]),c.useEffect(()=>{const{onDragMove:L}=ee.current,{active:F,activatorEvent:X,collisions:ce,over:W}=_.current;if(!F||!X)return;const U={active:F,activatorEvent:X,collisions:ce,delta:{x:me.x,y:me.y},over:W};Te.unstable_batchedUpdates(()=>{L?.(U),y({type:"onDragMove",event:U})})},[me.x,me.y]),c.useEffect(()=>{const{active:L,activatorEvent:F,collisions:X,droppableContainers:ce,scrollAdjustedTranslate:W}=_.current;if(!L||q.current==null||!F||!W)return;const{onDragOver:U}=ee.current,J=ce.get(Tt),be=J&&J.rect.current?{id:J.id,rect:J.rect.current,data:J.data,disabled:J.disabled}:null,j={active:L,activatorEvent:F,collisions:X,delta:{x:W.x,y:W.y},over:be};Te.unstable_batchedUpdates(()=>{kt(be),U?.(j),y({type:"onDragOver",event:j})})},[Tt]),Z(()=>{_.current={activatorEvent:B,active:V,activeNode:Y,collisionRect:ve,collisions:Ne,droppableRects:te,draggableNodes:E,draggingNode:he,draggingNodeRect:ge,droppableContainers:k,over:ae,scrollableAncestors:se,scrollAdjustedTranslate:me},K.current={initial:ge,translated:ve}},[V,Y,Ne,ve,E,he,ge,te,k,ae,se,me]),Er({...ie,delta:A,draggingRect:ve,pointerCoordinates:Mt,scrollableAncestors:se,scrollableAncestorRects:Ke});const Rn=c.useMemo(()=>({active:V,activeNode:Y,activeNodeRect:I,activatorEvent:B,collisions:Ne,containerNodeRect:Ee,dragOverlay:re,draggableNodes:E,droppableContainers:k,droppableRects:te,over:ae,measureDroppableContainers:fe,scrollableAncestors:se,scrollableAncestorRects:Ke,measuringConfiguration:z,measuringScheduled:Re,windowRect:it}),[V,Y,I,B,Ne,Ee,re,E,k,te,ae,fe,se,Ke,z,Re,it]),En=c.useMemo(()=>({activatorEvent:B,activators:jt,active:V,activeNodeRect:I,ariaDescribedById:{draggable:Se},dispatch:w,draggableNodes:E,over:ae,measureDroppableContainers:fe}),[B,jt,V,I,w,Se,E,ae,fe]);return P.createElement(Qt.Provider,{value:x},P.createElement(ot.Provider,{value:En},P.createElement(pn.Provider,{value:Rn},P.createElement(hn.Provider,{value:Cn},u)),P.createElement(qr,{disabled:a?.restoreFocus===!1})),P.createElement(_n,{...a,hiddenTextDescribedById:Se}));function Nn(){const L=Ce?.autoScrollEnabled===!1,F=typeof l=="object"?l.enabled===!1:l===!1,X=N&&!L&&!F;return typeof l=="object"?{...l,enabled:X}:{enabled:X}}}),eo=c.createContext(null),Gt="button",to="Draggable";function no(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Xe(to),{activators:s,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:h}=c.useContext(ot),{role:p=Gt,roleDescription:b="draggable",tabIndex:m=0}=o??{},v=l?.id===t,w=c.useContext(v?hn:eo),[y,x]=Je(),[C,D]=Je(),N=Br(s,t),R=Le(n);Z(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:C,data:R}),()=>{const A=d.get(t);A&&A.key===i&&d.delete(t)}),[d,t]);const E=c.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===Gt?!0:void 0,"aria-roledescription":b,"aria-describedby":f.draggable}),[r,p,m,v,b,f.draggable]);return{active:l,activatorEvent:a,activeNodeRect:u,attributes:E,isDragging:v,listeners:r?void 0:N,node:y,over:h,setNodeRef:x,setActivatorNodeRef:D,transform:w}}function ro(){return c.useContext(pn)}const oo="Droppable",io={timeout:25};function so(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Xe(oo),{active:s,dispatch:a,over:l,measureDroppableContainers:u}=c.useContext(ot),f=c.useRef({disabled:n}),d=c.useRef(!1),h=c.useRef(null),p=c.useRef(null),{disabled:b,updateMeasurementsFor:m,timeout:v}={...io,...o},w=Le(m??r),y=c.useCallback(()=>
5{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(w.current)?w.current:[w.current]),p.current=null},v)},[v]),x=rt({callback:y,disabled:b||!s}),C=c.useCallback((E,A)=>{x&&(A&&(x.unobserve(A),d.current=!1),E&&x.observe(E))},[x]),[D,N]=Je(C),R=Le(t);return c.useEffect(()=>{!x||!D.current||(x.disconnect(),d.current=!1,x.observe(D.current))},[D,x]),c.useEffect(()=>(a({type:T.RegisterDroppable,element:{id:r,key:i,disabled:n,node:D,rect:h,data:R}}),()=>a({type:T.UnregisterDroppable,key:i,id:r})),[r]),c.useEffect(()=>{n!==f.current.disabled&&(a({type:T.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,a]),{active:s,rect:h,isOver:l?.id===r,node:D,over:l,setNodeRef:N}}function Et(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function ao(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ge(e){return e!==null&&e>=0}function co(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function lo(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const gn=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Et(t,r,n),s=t[o],a=i[o];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},qe={scaleX:1,scaleY:1},uo=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:r;if(!a)return null;if(o===n){const u=i[s];return u?{x:0,y:n<s?u.top+u.height-(a.top+a.height):u.top-a.top,...qe}:null}const l=fo(i,o,n);return o>n&&o<=s?{x:0,y:-a.height-l,...qe}:o<n&&o>=s?{x:0,y:a.height+l,...qe}:{x:0,y:0,...qe}};function fo(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const mn="Sortable",vn=P.createContext({activeIndex:-1,containerId:mn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:gn,disabled:{draggable:!1,droppable:!1}});function po(e){let{children:t,id:n,items:r,strategy:o=gn,disabled:i=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:u,measureDroppableContainers:f}=ro(),d=Xe(mn,n),h=a.rect!==null,p=c.useMemo(()=>r.map(N=>typeof N=="object"&&"id"in N?N.id:N),[r]),b=s!=null,m=s?p.indexOf(s.id):-1,v=u?p.indexOf(u.id):-1,w=c.useRef(p),y=!co(p,w.current),x=v!==-1&&m===-1||y,C=lo(i);Z(()=>{y&&b&&f(p)},[y,p,b,f]),c.useEffect(()=>{w.current=p},[p]);const D=c.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:x,items:p,overIndex:v,useDragOverlay:h,sortedRects:ao(p,l),strategy:o}),[m,d,C.draggable,C.droppable,x,p,v,l,h,o]);return P.createElement(vn.Provider,{value:D},t)}const ho=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Et(n,r,o).indexOf(t)},go=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!u||!r||a!==i&&o===s?!1:n?!0:s!==o&&t===l},mo={duration:200,easing:"ease"},bn="transform",vo=Pe.Transition.toString({property:bn,duration:0,easing:"linear"}),bo={roleDescription:"sortable"};function xo(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=c.useState(null),a=c.useRef(n);return Z(()=>{if(!t&&n!==a.current&&r.current){const l=o.current;if(l){const u=De(r.current,{ignoreTransform:!0}),f={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(f.x||f.y)&&s(f)}}n!==a.current&&(a.current=n)},[t,n,r,o]),c.useEffect(()=>{i&&s(null)},[i]),i}function wo(e){let{animateLayoutChanges:t=go,attributes:n,disabled:r,data:o,getNewIndex:i=ho,id:s,strategy:a,resizeObserverConfig:l,transition:u=mo}=e;const{items:f,containerId:d,activeIndex:h,disabled:p,disableTransforms:b,sortedRects:m,overIndex:v,useDragOverlay:w,strategy:y}=c.useContext(vn),x=yo(r,p),C=f.indexOf(s),D=c.useMemo(()=>({sortable:{containerId:d,index:C,items:f},...o}),[d,o,C,f]),N=c.useMemo(()=>f.slice(f.indexOf(s)),[f,s]),{rect:R,node:E,isOver:A,setNodeRef:k}=so({id:s,data:D,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...l}}),{active:M,activatorEvent:K,activeNodeRect:V,attributes:q,setNodeRef:Ce,listeners:Ue,isDragging:B,over:Ye,setActivatorNodeRef:ee,transform:Se}=no({id:s,data:D,attributes:{...bo,...n},disabled:x.draggable}),We=Pn(k,Ce),z=!!M,te=z&&!b&&Ge(h)&&Ge(v),fe=!w&&B,Re=fe&&te?Se:null,He=te?Re??(a??y)({rects:m,activeNodeRect:V,activeIndex:h,overIndex:v,index:C}):null,ie=Ge(h)&&Ge(v)?i({id:s,items:f,activeIndex:h,overIndex:v}):C,ne=M?.id,I=c.useRef({activeId:ne,items:f,newIndex:ie,containerId:d}),Ee=f!==I.current.items,_=t({active:M,containerId:d,isDragging:B,isSorting:z,id:s,index:C,items:f,newIndex:I.current.newIndex,previousItems:I.current.items,previousContainerId:I.current.containerId,transition:u,wasDragging:I.current.activeId!=null}),pe=xo({disabled:!_,index:C,node:E,rect:R});return c.useEffect(()=>{z&&I.current.newIndex!==ie&&(I.current.newIndex=ie),d!==I.current.containerId&&(I.current.containerId=d),f!==I.current.items&&(I.current.items=f)},[z,ie,d,f]),c.useEffect(()=>{if(ne===I.current.activeId)return;if(ne!=null&&I.current.activeId==null){I.current.activeId=ne;return}const he=setTimeout(()=>{I.current.activeId=ne},50);return()=>clearTimeout(he)},[ne]),{active:M,activeIndex:h,attributes:q,data:D,rect:R,index:C,newIndex:ie,items:f,isOver:A,isSorting:z,isDragging:B,listeners:Ue,node:E,overIndex:v,over:Ye,setNodeRef:We,
5setActivatorNodeRef:ee,setDroppableNodeRef:k,setDraggableNodeRef:Ce,transform:pe??He,transition:re()};function re(){if(pe||Ee&&I.current.newIndex===C)return vo;if(!(fe&&!yt(K)||!u)&&(z||_))return Pe.Transition.toString({...u,property:bn})}}function yo(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function et(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Do=[S.Down,S.Right,S.Up,S.Left],Co=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:s,scrollableAncestors:a}}=t;if(Do.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const h=o.get(d.id);if(h)switch(e.code){case S.Down:r.top<h.top&&l.push(d);break;case S.Up:r.top>h.top&&l.push(d);break;case S.Left:r.left>h.left&&l.push(d);break;case S.Right:r.left<h.left&&l.push(d);break}});const u=er({collisionRect:r,droppableRects:o,droppableContainers:l});let f=tn(u,"id");if(f===s?.id&&u.length>1&&(f=u[1].id),f!=null){const d=i.get(n.id),h=i.get(f),p=h?o.get(h.id):null,b=h?.node.current;if(b&&p&&d&&h){const v=nt(b).some((N,R)=>a[R]!==N),w=xn(d,h),y=So(d,h),x=v||!w?{x:0,y:0}:{x:y?r.width-p.width:0,y:y?r.height-p.height:0},C={x:p.left,y:p.top};return x.x&&x.y?C:ze(C,x)}}}};function xn(e,t){return!et(e)||!et(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function So(e,t){return!et(e)||!et(t)||!xn(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function Ro(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function Eo({category:e,type:t,countKey:n,onDelete:r}){const{attributes:o,listeners:i,setNodeRef:s,transform:a,transition:l,isDragging:u}=wo({id:e.id}),f={transform:Pe.Transform.toString(a),transition:l,opacity:u?.5:1},d=e.icon?Mn[Ro(e.icon)]:null;return g.jsxs("tr",{ref:s,style:f,className:"border-b border-line-2 last:border-0 hover:bg-bg-2",children:[g.jsx("td",{className:"px-4 py-3",children:g.jsx("button",{type:"button",className:"cursor-grab active:cursor-grabbing text-ink-3 hover:text-ink",...o,...i,children:g.jsx(jn,{className:"h-4 w-4"})})}),g.jsx("td",{className:"px-4 py-3",children:g.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-line bg-bg-2",children:d?g.jsx(d,{className:"h-4 w-4 text-ink-2"}):g.jsx("span",{className:"text-xs text-ink-3",children:"â"})})}),g.jsx("td",{className:"px-4 py-3 text-sm font-semibold text-ink",children:e.name}),g.jsx("td",{className:"px-4 py-3",children:g.jsx("span",{className:"rounded-tag bg-bg-2 px-2 py-0.5 text-2xs font-bold text-ink-3",children:e.slug})}),g.jsx("td",{className:"px-4 py-3 max-w-xs",children:g.jsx("p",{className:"truncate text-xs text-ink-3",children:e.description||"â"})}),g.jsx("td",{className:"px-4 py-3 text-sm text-ink-2",children:e[n]||0}),g.jsx("td",{className:"px-4 py-3",children:g.jsxs("div",{className:"flex justify-end gap-1.5",children:[g.jsx(qt,{href:`/admin/categories/${t}/${e.id}/edit`,className:"flex h-7 w-7 items-center justify-center rounded-md border border-line bg-white text-ink-3 hover:bg-bg-2 hover:text-ink",children:g.jsx(Ln,{className:"h-3.5 w-3.5"})}),g.jsx("button",{type:"button",onClick:()=>r(e.id,e.name),className:"flex h-7 w-7 items-center justify-center rounded-md border border-line bg-white text-ink-3 hover:border-red/30 hover:bg-red/10 hover:text-red",children:g.jsx(zn,{className:"h-3.5 w-3.5"})})]})})]})}function Pa({categories:e,stats:t,type:n,filters:r}){const[o,i]=c.useState(r.search||""),[s,a]=c.useState(e),l=Jn(zt(Rt),zt(Ct,{coordinateGetter:Co})),u=b=>{b.preventDefault(),ct.get(`/admin/categories/${n}`,{search:o},{preserveState:!0})},f=(b,m)=>{confirm(`Delete "${m}"?`)&&ct.delete(`/admin/categories/${n}/${b}`,{preserveScroll:!0})},d=b=>{const{active:m,over:v}=b;!v||m.id===v.id||a(w=>{const y=w.findIndex(D=>D.id===m.id),x=w.findIndex(D=>
5D.id===v.id),C=Et(w,y,x);return ct.post(`/admin/categories/${n}/reorder`,{items:C.map((D,N)=>({id:D.id,order:N}))},{preserveScroll:!0,preserveState:!0,onError:()=>a(e)}),C})},h=n==="event"?"Event":"Resource",p=n==="event"?"events_count":"resources_count";return g.jsxs(Tn,{children:[g.jsx(In,{title:`${h} Categories · Admin`}),g.jsxs("div",{className:"px-4 py-5 sm:px-6 sm:py-7",children:[g.jsxs("div",{className:"mb-5 flex flex-wrap items-start justify-between gap-3",children:[g.jsxs("div",{children:[g.jsxs("h1",{className:"text-xl font-semibold text-ink",children:[h," Categories"]}),g.jsxs("p",{className:"mt-0.5 text-sm text-ink-3",children:["Manage categories for ",n==="event"?"events":"resources",". Drag to reorder."]})]}),g.jsxs(qt,{href:`/admin/categories/${n}/create`,className:"inline-flex items-center gap-1.5 rounded-lg bg-ink px-4 py-2 text-sm font-medium text-white hover:bg-ink/90",children:[g.jsx(kn,{className:"h-3.5 w-3.5"}),"New category"]})]}),g.jsxs("div",{className:"mb-5 grid grid-cols-2 gap-3 max-w-xs",children:[g.jsxs("div",{className:"rounded-card border border-line bg-white p-4",children:[g.jsx("p",{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Total"}),g.jsx("p",{className:"mt-1.5 font-serif text-3xl leading-none text-ink",children:t.total})]}),g.jsxs("div",{className:"rounded-card border border-line bg-white p-4",children:[g.jsx("p",{className:"text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Most used"}),g.jsx("p",{className:"mt-1.5 font-serif text-3xl leading-none text-ink",children:t.most_used})]})]}),g.jsx("div",{className:"mb-4 max-w-xs",children:g.jsxs("form",{onSubmit:u,className:"relative",children:[g.jsx(On,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-ink-3"}),g.jsx(An,{type:"search",placeholder:"Search categories...",value:o,onChange:b=>i(b.target.value),className:"h-8 pl-8 text-sm"})]})}),g.jsx("div",{className:"overflow-hidden rounded-card border border-line bg-white",children:g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full border-collapse",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-line-2 bg-bg-2",children:[g.jsx("th",{className:"w-10 px-4 py-2.5"}),g.jsx("th",{className:"w-14 px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Icon"}),g.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Name"}),g.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Slug"}),g.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Description"}),g.jsx("th",{className:"px-4 py-2.5 text-left text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Usage"}),g.jsx("th",{className:"px-4 py-2.5 text-right text-2xs font-bold uppercase tracking-eyebrow text-ink-3",children:"Actions"})]})}),g.jsx("tbody",{children:s.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:7,className:"py-10 text-center text-sm text-ink-3",children:"No categories found"})}):g.jsx(Zr,{sensors:l,collisionDetection:Zn,onDragEnd:d,children:g.jsx(po,{items:s.map(b=>b.id),strategy:uo,children:s.map(b=>g.jsx(Eo,{category:b,type:n,countKey:p,onDelete:f},b.id))})})})]})})})]})]})}export{Pa as default};
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.