@overmap-ai/blocks 1.0.4 → 1.0.5-add-draggability.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- (function(p,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("@radix-ui/colors"),require("@radix-ui/react-icons"),require("@radix-ui/themes"),require("react/jsx-runtime"),require("react"),require("react-responsive"),require("@radix-ui/react-dialog"),require("re-resizable"),require("@radix-ui/react-dismissable-layer"),require("react-transition-group"),require("@radix-ui/react-toggle-group"),require("@radix-ui/react-toolbar"),require("@radix-ui/react-toast"),require("react-dom"),require("@table-library/react-table-library/table"),require("@table-library/react-table-library/theme"),require("@table-library/react-table-library/sort"),require("@table-library/react-table-library/select"),require("@table-library/react-table-library/pagination"),require("react-device-detect")):typeof define=="function"&&define.amd?define(["exports","@radix-ui/colors","@radix-ui/react-icons","@radix-ui/themes","react/jsx-runtime","react","react-responsive","@radix-ui/react-dialog","re-resizable","@radix-ui/react-dismissable-layer","react-transition-group","@radix-ui/react-toggle-group","@radix-ui/react-toolbar","@radix-ui/react-toast","react-dom","@table-library/react-table-library/table","@table-library/react-table-library/theme","@table-library/react-table-library/sort","@table-library/react-table-library/select","@table-library/react-table-library/pagination","react-device-detect"],ae):(p=typeof globalThis<"u"?globalThis:p||self,ae(p.blocks={},p.colors,p.reactIcons,p.themes,p.jsxRuntime,p.React,p.reactResponsive,p.RadixDialogPrimitive,p.reResizable,p.reactDismissableLayer,p.reactTransitionGroup,p.reactToggleGroup,p.reactToolbar,p.RadixToast,p.reactDom,p.table$1,p.theme,p.sort,p.select,p.pagination,p.reactDeviceDetect))})(this,function(p,ae,T,c,t,e,he,Mt,me,Et,Me,Xe,At,Ee,zt,G,Bt,Qe,ie,Ft,_e){"use strict";function Je(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return a.default=n,Object.freeze(a)}const ye=Je(Mt),ge=Je(Ee);function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ye={exports:{}};/*!
1
+ (function(p,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("@radix-ui/colors"),require("@radix-ui/react-icons"),require("@radix-ui/themes"),require("react/jsx-runtime"),require("react"),require("react-responsive"),require("react-draggable"),require("@radix-ui/react-dialog"),require("re-resizable"),require("@radix-ui/react-dismissable-layer"),require("react-transition-group"),require("@radix-ui/react-toggle-group"),require("@radix-ui/react-toolbar"),require("@radix-ui/react-toast"),require("react-dom"),require("@table-library/react-table-library/table"),require("@table-library/react-table-library/theme"),require("@table-library/react-table-library/sort"),require("@table-library/react-table-library/select"),require("@table-library/react-table-library/pagination"),require("react-device-detect")):typeof define=="function"&&define.amd?define(["exports","@radix-ui/colors","@radix-ui/react-icons","@radix-ui/themes","react/jsx-runtime","react","react-responsive","react-draggable","@radix-ui/react-dialog","re-resizable","@radix-ui/react-dismissable-layer","react-transition-group","@radix-ui/react-toggle-group","@radix-ui/react-toolbar","@radix-ui/react-toast","react-dom","@table-library/react-table-library/table","@table-library/react-table-library/theme","@table-library/react-table-library/sort","@table-library/react-table-library/select","@table-library/react-table-library/pagination","react-device-detect"],ae):(p=typeof globalThis<"u"?globalThis:p||self,ae(p.blocks={},p.colors,p.reactIcons,p.themes,p.jsxRuntime,p.React,p.reactResponsive,p.Draggable,p.RadixDialogPrimitive,p.reResizable,p.reactDismissableLayer,p.reactTransitionGroup,p.reactToggleGroup,p.reactToolbar,p.RadixToast,p.reactDom,p.table$1,p.theme,p.sort,p.select,p.pagination,p.reactDeviceDetect))})(this,function(p,ae,T,d,t,e,he,Mt,Et,_e,At,Me,Xe,zt,Ee,Bt,K,Ft,Qe,le,jt,ye){"use strict";function Je(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return a.default=n,Object.freeze(a)}const we=Je(Et),ge=Je(Ee);function Lt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ye={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(n){(function(){var a={}.hasOwnProperty;function r(){for(var o=[],l=0;l<arguments.length;l++){var i=arguments[l];if(i){var d=typeof i;if(d==="string"||d==="number")o.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&o.push(s)}}else if(d==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){o.push(i.toString());continue}for(var f in i)a.call(i,f)&&i[f]&&o.push(f)}}}return o.join(" ")}n.exports?(r.default=r,n.exports=r):window.classNames=r})()})(Ye);var Lt=Ye.exports;const x=jt(Lt);function K(n,a){return e.useMemo(()=>{if(n!==void 0)if(typeof n=="object"){if(!("initial"in n))throw new Error("Expected initial property to be set in Responsive object");return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,a[o]]))}else return a[n]},[a,n])}const Wt={success:"green",danger:"red",warning:"amber",info:"gray"},N=n=>{const a=c.useThemeContext();if(n)return n==="primary"?a.accentColor:Wt[n]},Ht=()=>{const[n,a]=e.useState("initial"),[r,o]=e.useState("initial"),l=he.useMediaQuery({minWidth:"520px"}),i=he.useMediaQuery({minWidth:"768px"}),d=he.useMediaQuery({minWidth:"1024px"}),s=he.useMediaQuery({minWidth:"1280px"}),f=he.useMediaQuery({minWidth:"1640px"});return e.useLayoutEffect(()=>{o(u=>(a(u),f?"xl":s?"lg":d?"md":i?"sm":l?"xs":"initial"))},[s,d,i,f,l]),{size:r,prevSize:n,xs:l,sm:i,md:d,lg:s,xl:f}},Ze=(n,a,r)=>{const[o,l]=e.useState([]),[i,d]=e.useState(!0),s=e.useCallback(g=>{const{repeat:h,key:m}=g;d(!0),!(h||o.includes(m))&&l(C=>[...C,m])},[o]),f=e.useCallback(g=>{const{key:h}=g;d(!1),o.includes(h)&&l(m=>{const C=[...m];return C.splice(m.indexOf(h),1),C})},[o]);e.useEffect(()=>(a||document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}),[a,s]),e.useEffect(()=>(a||document.addEventListener("keyup",f,!0),()=>{document.removeEventListener("keyup",f,!0)}),[a,f]);const u=e.useMemo(()=>!a&&i&&o.length===n.length&&o.every(g=>n.includes(g)),[a,i,o,n]);return e.useEffect(()=>{u&&r()},[u,r]),u},Vt=n=>{const a=[];for(const r of e.Children.toArray(n))e.isValidElement(r)&&a.push(r);return a},qt=e.forwardRef(function({className:a,severity:r="primary",color:o,children:l,...i},d){const s=N(r);return t.jsx(c.Badge,{className:x("overmap-badge",a),ref:d,color:o||s,...i,children:l})}),Ut=e.memo(qt),Ae={zeroMinWidth:"_zeroMinWidth_curjh_1",zeroMinHeight:"_zeroMinHeight_curjh_5",radius:"_radius_curjh_9"},j=e.memo(e.forwardRef(({className:n,radius:a=!1,children:r,zeroMinWidth:o=!1,zeroMinHeight:l=!1,...i},d)=>t.jsx(c.Flex,{className:x(n,{[Ae.radius]:a,[Ae.zeroMinWidth]:o,[Ae.zeroMinHeight]:l}),ref:d,...i,children:r}))),Re=e.createContext({}),Gt=()=>e.useContext(Re),Kt=e.memo(e.forwardRef(({className:n,children:a,...r},o)=>{const{size:l,severity:i}=Gt(),d=N(i);return t.jsx(c.Box,{className:x("overmap-breadcrumb-item",n),height:"max-content",width:"max-content",children:t.jsx(c.Link,{ref:o,size:l,color:d,...r,children:t.jsx(j,{height:"100%",width:"100%",align:"center",gap:"1",children:a})})})})),Xt={Group:e.memo(e.forwardRef(({className:n,children:a,separator:r,severity:o="info",size:l,gap:i="2",...d},s)=>{const f=N(o),u=Vt(a);return t.jsx(Re.Provider,{value:{size:l,severity:o},children:t.jsx(j,{className:x("overmap-breadcrumb-group",n),ref:s,gap:i,role:"breadcrumb",height:"max-content",width:"max-content",...d,children:u.map((g,h)=>t.jsxs(t.Fragment,{children:[e.cloneElement(g,{key:h}),u.length-1!==h&&t.jsx(c.Text,{color:f,children:t.jsx(j,{height:"100%",width:"100%",align:"center",children:r})})]}))})})})),Item:Kt},be={fluid:"_fluid_r73gr_1",hoverSpin90Clockwise:"_hoverSpin90Clockwise_r73gr_15",hoverSpin180Clockwise:"_hoverSpin180Clockwise_r73gr_25",hoverSpin360Clockwise:"_hoverSpin360Clockwise_r73gr_35"},et={spin90Clockwise:be.hoverSpin90Clockwise,spin180Clockwise:be.hoverSpin180Clockwise,spin360Clockwise:be.hoverSpin360Clockwise},Qt={role:"button",tabIndex:0,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&n.currentTarget.click()}},le={small:"1",medium:"2",large:"3"},tt=e.createContext({}),ze=()=>e.useContext(tt),Jt={spinner:"_spinner_isifr_9",spin:"_spin_isifr_9"},nt=e.memo(()=>t.jsx("div",{className:Jt.spinner}));nt.displayName="Spinner";const Yt=e.forwardRef(function(a,r){const o=ze(),{className:l,type:i="button",fluid:d=o.fluid??!1,size:s=o.size??"medium",severity:f=o.severity??"primary",hoverEffects:u=o.hoverEffects??[],variant:g=o.variant,shortcut:h={keys:[],action:()=>{},disabled:!1},loading:m,children:C,disabled:_,...w}=a,v=N(f),P=u.map(S=>et[S]);return Ze(h.keys,h.disabled||h.keys.length===0,h.action),t.jsx(c.Button,{ref:r,type:i,className:x(l,P,{[be.fluid]:d}),color:v,size:K(s,le),variant:g,disabled:m||_,...w,children:m?t.jsx(nt,{}):C})}),Z=e.memo(Yt),Zt=e.forwardRef(function(a,r){const o=ze(),{className:l,children:i,type:d="button",fluid:s=o.fluid??!1,size:f=o.size??"medium",severity:u=o.severity??"primary",hoverEffects:g=o.hoverEffects??[],variant:h=o.variant,shortcut:m={keys:[],action:()=>{},disabled:!1},...C}=a,_=N(u),w=(g==null?void 0:g.map(v=>et[v]))||[];return Ze(m.keys,m.disabled||m.keys.length===0,m.action),t.jsx(c.IconButton,{className:x(l,w,{[be.fluid]:s}),ref:r,color:_,size:K(f,le),variant:h,type:d,...C,children:i})}),H=e.memo(Zt),Rt={merged:"_merged_wdgxo_1"},en={row:{small:"4",medium:"4",large:"5"},column:{small:"2",medium:"3",large:"4"}},tn=e.forwardRef(function({className:a,merged:r=!1,children:o,gap:l,direction:i="row",severity:d,size:s="medium",variant:f,hoverEffects:u,fluid:g,...h},m){const C=K(s,en[i]),_=f==="ghost"?C:"0";return t.jsx(c.Flex,{className:x("overmap-button-group",a,{[Rt.merged]:r}),ref:m,gap:r?l??_:l??"2",direction:i,"data-direction":i,...h,children:t.jsx(tt.Provider,{value:{size:s,severity:d,variant:f,hoverEffects:u,fluid:g},children:o})})}),Be=e.memo(tn),nn={separators:"_separators_1f7v1_1"},on=e.memo(e.forwardRef((n,a)=>{const{children:r,border:o,before:l,after:i,size:d}=n,s=o?"surface":"ghost",f=K(d,le),u=l&&i?t.jsx(c.Inset,{side:"x",pt:"current",pb:"current",children:r}):l?t.jsx(c.Inset,{side:"bottom",pt:"current",children:r}):i?t.jsx(c.Inset,{side:"top",pb:"current",children:r}):t.jsx(c.Inset,{children:r}),g=t.jsxs(c.Card,{ref:a,size:f,variant:s,children:[l,u,i]});return s==="ghost"?t.jsx(c.Box,{p:"3",children:g}):g})),rn=e.memo(e.forwardRef((n,a)=>{const{children:r,variant:o="outline",size:l,className:i,...d}=n,s=o==="outline"||o==="surface",f=o==="outline"?"ghost":o==="surface"?"soft":o;return t.jsx(on,{...d,border:s,size:l,children:t.jsx(Be,{size:l,severity:"info",variant:f,className:x(i,nn.separators),merged:!0,gap:"0",direction:"column",ref:a,children:r})})})),an=e.memo(e.forwardRef((n,a)=>{const{variant:r}=ze(),o=t.jsx(Z,{ref:a,...n,radius:"large",variant:r});return r==="ghost"?t.jsx(c.Box,{asChild:!0,my:"1",mx:"2",children:o}):o})),ln={Root:rn,Item:an},sn=e.memo(function(a){const{title:r,description:o,content:l,closeDialog:i}=a;return t.jsxs(c.Flex,{direction:"column",gap:"2",children:[t.jsxs(c.Flex,{direction:"column",gap:"1",children:[t.jsxs(c.Flex,{justify:"between",children:[t.jsx(c.Dialog.Title,{mb:"0",children:r}),t.jsx(c.Dialog.Close,{children:t.jsx(c.IconButton,{color:"gray",variant:"ghost","aria-label":"Close",children:t.jsx(T.Cross1Icon,{})})})]}),o&&t.jsx(c.Dialog.Description,{children:o})]}),l(i)]})}),cn=e.memo(e.forwardRef((n,a)=>{const{children:r,content:o,title:l,description:i,onOpen:d,onClose:s,defaultOpen:f,onCloseInterrupt:u,open:g,onOpenChange:h,...m}=n,[C,_]=e.useState(f??!1),w=g??C;if((u||d)&&h)throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");if(g!==void 0&&h===void 0)throw new Error("The `open` prop requires the `onOpenChange` prop.");if(!r&&g===void 0)throw new Error("Either the `children` or `open` prop must be defined.");if(r&&g!==void 0)throw new Error("The `children` and `open` props cannot be used together.");const v=e.useCallback(S=>{if(h)return h(S);if(S&&d)d();else{if(!S&&u)return u(()=>{_(!1),s&&s()});!S&&s&&s()}_(S)},[h,d,s,u]),P=e.useCallback(S=>{if(S!=null&&S.force)return _(!1);v(!1)},[v]);return t.jsxs(c.Dialog.Root,{open:w,onOpenChange:v,children:[t.jsx(c.Dialog.Trigger,{children:r}),t.jsx(c.Dialog.Content,{ref:a,...m,children:t.jsx(sn,{closeDialog:P,content:o,title:l,description:i})})]})})),ot=n=>t.jsx(c.AlertDialog.Title,{mb:"0",...n}),dn=n=>{const{title:a,description:r,actionText:o="Confirm",cancelText:l="Cancel",onAction:i,onCancel:d,severity:s}=n;return t.jsxs(c.Flex,{direction:"column",gap:"2",children:[t.jsxs(c.Flex,{direction:"column",gap:"1",children:[t.jsx(ot,{children:a}),t.jsx(c.AlertDialog.Description,{children:r})]}),t.jsxs(c.Flex,{gap:"3",mt:"4",justify:"end",children:[t.jsx(c.AlertDialog.Cancel,{children:t.jsx(Z,{variant:"soft",severity:"info",onClick:d,children:l})}),t.jsx(c.AlertDialog.Action,{children:t.jsx(Z,{variant:"solid",severity:s,onClick:i,children:o})})]})]})},rt=e.memo(function(a){const{open:r,setOpen:o,children:l,...i}=a,d=e.useMemo(()=>({close:()=>o(!1),Title:ot,Description:c.AlertDialog.Description}),[o]);return t.jsxs(c.AlertDialog.Root,{open:r,onOpenChange:o,children:[t.jsx(c.AlertDialog.Content,{children:"content"in i?i.content(d):t.jsx(dn,{...i})}),l]})}),Fe=e.createContext(()=>{throw new Error("No AlertDialogProvider found")}),un={content:()=>null},fn=e.memo(function({children:a}){const[r,o]=e.useState(!1),[l,i]=e.useState(un),d=e.useCallback(s=>{if(r)throw new Error("AlertDialog is already open");i(s),o(!0)},[r]);return t.jsx(rt,{open:r,setOpen:o,...l,children:t.jsx(Fe.Provider,{value:d,children:a})})}),at=()=>e.useContext(Fe),pn=()=>{const n=at();return e.useCallback(a=>n({title:"Discard changes?",description:"You have unsaved changes. Are you sure you want to discard them?",actionText:"Discard",severity:"danger",onAction:a.onDiscard,onCancel:a.onCancel}),[n])},we={DropdownMenu:"_DropdownMenu_hj4sz_1",DropdownMenuItemWrapper:"_DropdownMenuItemWrapper_hj4sz_8",DropdownMenuSeparatorWrapper:"_DropdownMenuSeparatorWrapper_hj4sz_13",DropdownMenuItem:"_DropdownMenuItem_hj4sz_8"},hn={1:"max-content",2:"max-content",3:"max-content",4:"100%"},gn=e.forwardRef(function({severity:a="info",weight:r="light",gap:o="1",text:l,orientation:i="horizontal",size:d,...s},f){const u=K(d,hn),g=N(a);return t.jsxs(c.Flex,{ref:f,width:i==="horizontal"?u:"max-content",height:i==="vertical"?u:"max-content",direction:i==="vertical"?"column":"row",align:"center",gap:o,children:[t.jsx(c.Separator,{size:d,orientation:i,color:g,...s}),l&&t.jsxs(t.Fragment,{children:[t.jsx(c.Text,{as:"span",size:"1",weight:r,color:g,children:l}),t.jsx(c.Separator,{size:d,orientation:i,color:g,...s})]})]})}),it=e.memo(gn),bn=e.memo(function({content:a,onSelect:r,closeOnSelect:o,...l}){const i=e.useCallback(d=>{r&&r(d),o||d.preventDefault()},[o,r]);return t.jsx(c.DropdownMenu.Item,{className:we.DropdownMenuItem,textValue:"",onSelect:i,...l,children:t.jsx(c.Flex,{align:"center",gap:"1",children:a})})}),Cn=e.memo(e.forwardRef(({className:n,trigger:a,items:r,label:o,disabled:l,severity:i="info",modal:d=!1,closeOnSelect:s=!0,...f})=>{const u=N(i);return t.jsxs(c.DropdownMenu.Root,{modal:d,children:[t.jsx(c.DropdownMenu.Trigger,{disabled:l,children:a}),t.jsx(c.DropdownMenu.Content,{className:x("overmap-dropdown",n),color:u,variant:"soft",...f,children:t.jsxs(c.Flex,{className:we.DropdownMenu,direction:"column",height:"max-content",width:"max-content",children:[!!o&&t.jsx(c.DropdownMenu.Label,{children:o}),r.map(({closeOnSelect:g,separator:h,...m},C)=>t.jsxs(t.Fragment,{children:[t.jsx(c.Box,{className:we.DropdownMenuItemWrapper,children:t.jsx(bn,{closeOnSelect:g??s,...m},C)},C),!!h&&t.jsx(c.Box,{className:we.DropdownMenuSeparatorWrapper,children:t.jsx(it,{size:"4"})},`${C}-separator`)]}))]})})]})})),se={DropdownSelect:"_DropdownSelect_k517z_1",BorderBottom:"_BorderBottom_k517z_8",DropdownSelectInputWrapper:"_DropdownSelectInputWrapper_k517z_12",DropdownSelectInput:"_DropdownSelectInput_k517z_12",DropdownSelectItem:"_DropdownSelectItem_k517z_27"},vn=150,mn=e.memo(e.forwardRef(({trigger:n,items:a,disabled:r=!1,value:o,onValueChange:l,placeholder:i,filterValue:d,onFilterValueChange:s,closeOnSelect:f=!0,icons:u,severity:g="info"},h)=>{const m=N(g),C=e.useCallback(v=>P=>{l(o!==v?v:void 0),f||P.preventDefault()},[o,f,l]),_=e.useCallback(v=>{s&&s(v.target.value)},[s]),w=e.useCallback(v=>{!v&&s&&setTimeout(()=>{s("")},vn)},[s]);return t.jsxs(c.DropdownMenu.Root,{onOpenChange:w,children:[t.jsx(c.DropdownMenu.Trigger,{disabled:r,children:n}),t.jsx(c.DropdownMenu.Content,{ref:h,variant:"soft",color:m,className:se.Test,children:t.jsxs(j,{className:se.DropdownSelect,direction:"column",children:[d!==void 0&&!!s&&t.jsx(c.Box,{px:"1",className:x({[se.BorderBottom]:a.length!==0}),children:t.jsxs(c.TextField.Root,{className:se.DropdownSelectInputWrapper,size:"2",variant:"soft",children:[!!u&&!!u.leftInputIcon&&t.jsx(c.TextField.Slot,{children:u.leftInputIcon}),t.jsx(c.TextField.Input,{className:se.DropdownSelectInput,value:d,placeholder:i,onChange:_}),!!u&&!!u.rightInputIcon&&t.jsx(c.TextField.Slot,{children:u.rightInputIcon})]})}),t.jsx(c.Box,{p:a.length!==0?"1":"0",children:t.jsx(j,{direction:"column",children:a.map(({content:v,value:P},S)=>t.jsx(c.DropdownMenu.Item,{className:se.DropdownSelectItem,onSelect:C(P),textValue:"",asChild:!0,children:t.jsxs(j,{align:"center",height:"max-content",width:"100%",gap:"5",children:[t.jsx(c.Box,{grow:"1",children:v}),t.jsx(j,{justify:"center",align:"center",height:"max-content",width:"4",children:o===P&&(u&&(u!=null&&u.selectedItemIcon)?u.selectedItemIcon:t.jsx(T.CheckIcon,{}))})]})},S))})})]})})]})})),lt=e.memo(function({children:a}){const[r,o]=e.useState(!1),l=e.useCallback(()=>{o(!0)},[]),i=e.useCallback(()=>{o(!1)},[]);return a({isHovered:r,onPointerEnter:l,onPointerLeave:i})}),st={fluid:"_fluid_7n1wr_1"},_n=e.forwardRef(function({className:a,fluid:r,size:o="medium",variant:l="surface",severity:i="primary",itemSeverity:d="info",placeholder:s="Select",side:f,items:u=[],value:g,id:h,...m},C){const _=K(o,le),w=N(i),v=N(d);return e.createElement(c.Select.Root,{size:_,...m,key:g===void 0?1:0,value:g},t.jsx(c.Select.Trigger,{className:x(a,{[st.fluid]:r}),id:h,ref:C,variant:l,placeholder:s,color:w}),t.jsx(c.Select.Content,{side:f,className:st.contentDefault,position:"popper",variant:l!=="surface"?"soft":"solid",color:v,children:u.map(({itemContent:P,value:S,...k})=>t.jsx(c.Select.Item,{className:"overmap-select-item",value:S,...k,children:P},S))}))}),ct=e.memo(_n),dt=e.memo(e.forwardRef((n,a)=>{const{checked:r,label:o,value:l,size:i="2"}=n;return t.jsx(c.Box,{asChild:!0,px:i,children:t.jsx(c.Select.Item,{value:l,ref:a,children:t.jsxs(c.Flex,{gap:i,align:"center",children:[t.jsx(c.Checkbox,{checked:r}),o]})})})})),Se="__select_all__",yn=e.memo(e.forwardRef((n,a)=>{const[r,o]=e.useState(!1),{placeholder:l,value:i,onValueChange:d,options:s,disabled:f,name:u,...g}=n,h=K(n.size,le),m=N(n.severity),C=e.useMemo(()=>new Map(s.map(S=>[S.value,S.label])),[s]),_=i.length>4?`${i.length} options selected`:t.jsx("span",{children:i.flatMap(S=>[C.get(S),", "]).slice(0,-1)}),w=e.useCallback(()=>o(!1),[]),v=e.useCallback(S=>{S&&o(!0)},[]),P=e.useCallback(S=>{let k;S===Se?k=i.length===s.length?[]:s.map(J=>J.value):k=i.includes(S)?i.filter(M=>M!==S):[...i,S],d(k)},[d,s,i]);return e.useEffect(()=>{if(s.some(({value:S})=>S===Se))throw new Error(`Cannot have an option with the value "${Se}"`)},[s]),t.jsxs(c.Select.Root,{open:r,value:"",onOpenChange:v,onValueChange:P,disabled:f,size:h,name:u,autoComplete:"off",children:[t.jsx(c.Select.Trigger,{ref:a,color:m,placeholder:i.length>0?_:l,"data-placeholder":i.length>0?void 0:!0,...g}),t.jsxs(c.Select.Content,{color:"gray",variant:"soft",position:"popper",onEscapeKeyDown:w,onPointerDownOutside:w,children:[t.jsx(dt,{value:Se,label:"Select all",checked:i.length===s.length,size:h}),s.map(S=>t.jsx(dt,{...S,checked:i.includes(S.value),size:h},S.value))]})]})})),wn={default:"_default_u936h_1"},Sn=e.forwardRef(function({className:a,severity:r="primary",icon:o,defaultChecked:l=!1,onCheckedChange:i,...d},s){const f=e.useRef(null),[u,g]=e.useState(d.checked?d.checked:l),[h,m]=e.useState(),C=N(r);e.useLayoutEffect(()=>{var P;const v=s||f;"current"in v&&v.current&&m((P=v.current)==null?void 0:P.querySelector("span.rt-SwitchThumb"))},[s]);const _=e.useCallback(v=>{g(v),i&&i(v)},[i]),w=d.checked?d.checked:u;return t.jsxs(t.Fragment,{children:[t.jsx(c.Switch,{className:x("overmap-switch",a,wn.default),ref:s||f,color:C,radius:"full",defaultChecked:l,onCheckedChange:_,...d}),t.jsx(c.Portal,{container:h,asChild:!0,children:o&&"checked"in o?w?o.checked:o.unchecked:o})]})}),xn=e.memo(Sn),ce={sidebarContent:"_sidebarContent_1onyo_1",right:"_right_1onyo_7",resizeHandle:"_resizeHandle_1onyo_10",left:"_left_1onyo_13",overlay:"_overlay_1onyo_33"},Pn={width:"auto",height:"100%"},kn=e.forwardRef(function({side:a="left",modal:r=!0,children:o,open:l,containerSelector:i,overlay:d=!0,resizable:s=!0,minWidth:f="300px",maxWidth:u="500px",...g},h){const m=a==="right",C=a==="left",[_,w]=e.useState();return e.useEffect(()=>{const v=i??'[data-is-root-theme="true"]',P=document.querySelector(v);if(P===void 0)throw new Error(`Could not find a container element using the following selector ${v}`);w(P)},[i]),t.jsx(ye.Root,{open:l,modal:r,children:t.jsxs(ye.Portal,{container:_,children:[d&&t.jsx(ye.Overlay,{className:x(ce.overlay)}),t.jsx(ye.Content,{className:x("overmap-sidebar","rt-DialogContent",ce.sidebarContent,{[ce.left]:C,[ce.right]:m}),ref:h,asChild:!0,...g,children:t.jsx(c.Box,{width:"auto",children:t.jsx(me.Resizable,{minWidth:f,maxWidth:u,defaultSize:Pn,enable:{right:s&&C,left:s&&m},handleClasses:{left:ce.resizeHandle,right:ce.resizeHandle},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{}),left:t.jsx(T.DragHandleDots2Icon,{})},children:o})})})]})})}),$n=e.memo(kn),V={outerContent:"_outerContent_1iy9c_1",enter:"_enter_1iy9c_4",right:"_right_1iy9c_4",left:"_left_1iy9c_8",enterActive:"_enterActive_1iy9c_12",exitActive:"_exitActive_1iy9c_22",exitDone:"_exitDone_1iy9c_32",resizable:"_resizable_1iy9c_41",slideOutOverlay:"_slideOutOverlay_1iy9c_47"},Tn=200,Dn=e.memo(function({className:a,open:r,side:o="left",children:l,minWidth:i,maxWidth:d,resizable:s=!0,overlay:f=!1,modal:u=!1,resizeHandle:g,position:h="absolute",...m}){const C=e.useRef(null),[_,w]=e.useState(i),v=o==="left",P=o==="right",S=e.useCallback((k,M,J,Te)=>{w(J.clientWidth),C.current&&(C.current.style.width=`${J.clientWidth}px`)},[]);return t.jsx(Me.CSSTransition,{in:r,classNames:{enter:V.enter,enterActive:V.enterActive,exitActive:V.exitActive,exitDone:V.exitDone},timeout:Tn,nodeRef:C,unmountOnExit:!0,mountOnEnter:!0,children:t.jsxs(t.Fragment,{children:[f&&t.jsx("div",{className:x("overamp-slide-out-overlay",V.slideOutOverlay)}),t.jsx(Et.DismissableLayer,{disableOutsidePointerEvents:u,asChild:!0,...m,children:t.jsx(c.Flex,{className:x("overmap-slide-out",a,V.outerContent,{[V.left]:v,[V.right]:P}),style:{"--slide-out-width":`${_}px`},height:"100%",width:"auto",position:h,top:"0",bottom:"0",left:v?"0":void 0,right:P?"0":void 0,ref:C,children:t.jsx(me.Resizable,{className:V.resizable,defaultSize:{width:_,height:"100%"},onResize:S,enable:{right:s&&v,left:s&&P},handleComponent:{left:g,right:g},minWidth:i,maxWidth:d,children:l})})})]})})}),R={accommodateCharCount:"_accommodateCharCount_1octa_1",wrapper:"_wrapper_1octa_5",default:"_default_1octa_10",noLeftIcon:"_noLeftIcon_1octa_14",noRightIcon:"_noRightIcon_1octa_18",ghost:"_ghost_1octa_22",charCount:"_charCount_1octa_40"},On=e.forwardRef(function({className:a,leftSlot:r,rightSlot:o,size:l="medium",showInputLength:i,value:d,variant:s,severity:f="primary",...u},g){const h=K(l,le),m=N(f),C=i||i===void 0&&u.maxLength!==void 0,_=d!==void 0?d.toString():void 0;return t.jsxs(c.TextField.Root,{className:x(R.wrapper,a,{[R.ghost]:s==="ghost",[R.accommodateCharCount]:C}),size:h,variant:s!=="ghost"?s:void 0,color:m,children:[r&&t.jsx(c.TextField.Slot,{children:r}),t.jsx(c.TextField.Input,{className:x(R.default,{[R.noLeftIcon]:!r,[R.noRightIcon]:!o}),ref:g,value:d,size:h,variant:s!=="ghost"?s:void 0,color:m,...u}),o&&t.jsx(c.TextField.Slot,{children:o}),C&&t.jsx(c.Text,{as:"p",className:R.charCount,size:"1",color:"gray",children:u.maxLength!==void 0?`${_==null?void 0:_.length}/${u.maxLength}`:`${_==null?void 0:_.length}`})]})}),ut=e.memo(On),Nn=e.memo(function({color:a,severity:r,children:o}){const l=N(r??"primary"),i=e.useMemo(()=>({"data-accent-color":r&&l?l:a||"gray",style:{color:"var(--accent-a11)"}}),[a,r,l]);return e.cloneElement(o,{...i})}),In={wrapper:"_wrapper_tmtz0_1"},Mn=e.forwardRef(function({className:a,trigger:r,open:o,onOpenChange:l,defaultOpen:i=!1,modal:d=!1,children:s,...f},u){return t.jsxs(c.Popover.Root,{defaultOpen:i,modal:d,open:o,onOpenChange:l,children:[t.jsx(c.Popover.Trigger,{children:r}),t.jsx(c.Popover.Content,{ref:u,className:x("overmap-popover",a,In.wrapper),...f,children:s(c.Popover.Close)})]})}),ft=e.memo(Mn),B={wrapper:"_wrapper_1ssf2_1",panelContent:"_panelContent_1ssf2_6",left:"_left_1ssf2_14",right:"_right_1ssf2_18",resizable:"_resizable_1ssf2_23",resizeHandle:"_resizeHandle_1ssf2_28",panelMainContent:"_panelMainContent_1ssf2_48"},pt=200,X=150,En=e.memo(function({children:a,showLeft:r,leftPanel:o,leftMinWidth:l=pt,showRight:i,rightPanel:d,rightMinWidth:s=pt,resizeable:f}){const u=e.useRef(null),g=e.useRef(null),[h,m]=e.useState(0),[C,_]=e.useState(),w=e.useRef(null),[v,P]=e.useState(0),[S,k]=e.useState(),M=e.useCallback((D,E,F)=>(z,Oe,Ce,ve)=>{if(!u.current)return;const ne=D+ve.width;F(u.current.clientWidth-ne),E(()=>ne)},[]),J=e.useCallback((D,E,F,z)=>M(h,m,k)(D,E,F,z),[M,h]),Te=e.useCallback((D,E,F,z)=>M(v,P,_)(D,E,F,z),[M,v]),ue=e.useCallback((D,E,F,z,Oe,Ce,ve,ne)=>{if(!u.current)return;let q=D;if(q===0&&(q=E,F(q)),Ce){const Y=u.current.clientWidth-q;ne(Y),Oe>Y&&(ve(Y),z(u.current.clientWidth-Y))}},[]),Ve=e.useCallback(()=>ue(v,s,P,k,h,r,m,_),[ue,h,s,v,r]),te=e.useCallback(()=>ue(h,l,m,_,v,i,P,k),[ue,l,h,v,i]),fe=e.useCallback((D,E)=>{u.current&&D&&E(u.current.clientWidth)},[]),qe=e.useCallback(()=>fe(r,_),[fe,r]),Ue=e.useCallback(()=>fe(i,k),[fe,i]),Ge=e.useCallback(()=>{var D,E,F,z;u.current&&(_(u.current.clientWidth-(((D=w.current)==null?void 0:D.clientWidth)||0)),k(u.current.clientWidth-(((E=g.current)==null?void 0:E.clientWidth)||0)),m(((F=g.current)==null?void 0:F.clientWidth)||0),P(((z=w.current)==null?void 0:z.clientWidth)||0))},[]);e.useEffect(()=>{if(!u.current)return;const D=new ResizeObserver(Ge);return D.observe(u.current),()=>{D.disconnect()}},[Ge]);const De=e.useMemo(()=>({entering:{transform:`translateX(-${h}px)`,marginRight:`-${h}px`,transitionProperty:"transform, margin-right",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},entered:{transform:"translateX(0)",marginRight:0,transitionProperty:"transform, margin-right",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},exiting:{transform:`translateX(-${h}px)`,marginRight:`-${h}px`,transitionProperty:"transform, margin-right",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[h]),L=e.useMemo(()=>({entering:{transform:`translateX(${v}px)`,marginLeft:`${-v}px`,transitionProperty:"transform, margin-left",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},entered:{transform:"translateX(0)",marginLeft:0,transitionProperty:"transform, margin-left",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},exiting:{transform:`translateX(${v}px)`,marginLeft:`${-v}px`,transitionProperty:"transform, margin-left",transitionDuration:`${X}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[v]);return t.jsxs(c.Flex,{className:B.wrapper,style:{minWidth:`${l+s}px`},ref:u,width:"100%",height:"100%",justify:"center",m:"0",p:"0",children:[t.jsx(Me.Transition,{nodeRef:g,timeout:r?0:X,in:r,unmountOnExit:!0,onEntering:te,onExited:Ue,children:D=>t.jsx(c.Box,{ref:g,className:x(B.panelContent,B.left),style:De[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(me.Resizable,{className:B.resizable,size:{width:h,height:"100%"},onResizeStop:J,enable:{right:(f==null?void 0:f.left)!==void 0?f.left:!0},minWidth:l,maxWidth:C,handleClasses:{right:x(B.resizeHandle,B.left)},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:o})})}),t.jsx("div",{className:B.panelMainContent,children:a}),t.jsx(Me.Transition,{nodeRef:w,timeout:i?0:X,in:i,unmountOnExit:!0,onEntering:Ve,onExited:qe,children:D=>t.jsx(c.Box,{ref:w,className:x(B.panelContent,B.right),style:L[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(me.Resizable,{className:B.resizable,size:{width:v,height:"100%"},onResizeStop:Te,enable:{left:(f==null?void 0:f.right)!==void 0?f.right:!0},minWidth:s,maxWidth:S,handleClasses:{left:x(B.resizeHandle,B.right)},handleComponent:{left:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:d})})})]})}),xe={multiPagePopover:"_multiPagePopover_spfw7_1",pageTitle:"_pageTitle_spfw7_12",buttonContainer:"_buttonContainer_spfw7_17",optionsButtonContainer:"_optionsButtonContainer_spfw7_22",optionsButton:"_optionsButton_spfw7_22"};function ht(n,a,r,o=0){if(!n.options)return n.content||t.jsx(t.Fragment,{});const l=n.options.map((i,d)=>t.jsx(Z,{className:x(xe.optionsButton,i.buttonClassName),variant:"ghost",radius:"large",style:{width:r==="vertical"?"100%":"auto"},severity:"info",highContrast:!0,onClick:i.onClick||(()=>a(ht(i.page||{},a,r,o+1))),children:i.label},`${i.value}-page-${o}-button-${d}`));return t.jsxs(t.Fragment,{children:[n.title&&t.jsx("div",{className:xe.pageTitle,children:n.title}),n.content,t.jsx("div",{className:x(xe.optionsButtonContainer,n.buttonsContainerClassName),style:{flexDirection:r==="vertical"?"column":"row"},children:l})]})}const An=e.forwardRef(function({page:a,className:r,direction:o="vertical",...l},i){const[d,s]=e.useState(void 0),f=e.useCallback(()=>{s(ht(a,s,o,0))},[o,a]),u=e.useCallback(g=>d,[d]);return t.jsx(ft,{className:x(xe.multiPagePopover,r),ref:i,onOpenAutoFocus:f,onCloseAutoFocus:f,...l,children:g=>u(g)})}),gt=e.memo(An),bt={charCount:"_charCount_1lz28_1",ghost:"_ghost_1lz28_5"},zn=e.forwardRef(function({className:a,showInputLength:r,inputLengthTemplate:o,value:l,severity:i="primary",resize:d,variant:s,...f},u){const g=N(i),h=N("info"),m=r||r===void 0&&(f.maxLength!==void 0||f.minLength!==void 0),C=l!==void 0?l.toString():"",_=e.useMemo(()=>{if(o){let w=o.replace("{current}",C.length.toString());return f.minLength!==void 0&&(w=w.replace("{min}",f.minLength.toString())),f.maxLength!==void 0&&(w=w.replace("{max}",f.maxLength.toString())),w}return C.length},[o,f.maxLength,f.minLength,C.length]);return t.jsxs(t.Fragment,{children:[t.jsx(c.TextArea,{className:x("overmap-textarea",a,{[bt.ghost]:s==="ghost"}),style:{resize:d},variant:s!=="ghost"?s:void 0,ref:u,value:l,color:g,...f}),m&&t.jsx(c.Text,{as:"p",className:bt.charCount,color:h,align:"right",children:_})]})}),Bn=e.memo(zn),Fn=e.forwardRef(function({loop:a,type:r,rovingFocus:o,value:l,onValueChange:i,defaultValue:d,disabled:s,items:f,className:u,direction:g="row",...h},m){return t.jsx(Xe.Root,{type:r,className:x("overmap-toggle-group",u),ref:m,value:l,onValueChange:i,disabled:s,orientation:g==="column"?"vertical":"horizontal",loop:a,rovingFocus:o,defaultValue:d,asChild:!0,children:t.jsx(Be,{direction:g,...h,children:f.map(({children:C,..._})=>e.createElement(Xe.Item,{asChild:!0,..._,key:_.value},t.jsx(H,{className:x("overmap-toggle-group-button"),"aria-label":_.value,variant:_.value===l?"solid":"soft",children:C})))})})}),jn=e.memo(Fn),Ln={default:"_default_xqvoc_1"},Ct=e.memo(e.forwardRef(({className:n,minContentGap:a="2",children:r,...o},l)=>t.jsx(At.Root,{className:x(n,"overmap-toolbar",Ln.default),ref:l,asChild:!0,...o,children:t.jsx(j,{grow:"1",width:"100%",height:"max-content",align:"center",gap:a,wrap:"nowrap",children:r})}))),Wn=e.memo(e.forwardRef(({children:n,gap:a="2"},r)=>t.jsx(j,{ref:r,grow:"1",width:"max-content",height:"100%",align:"center",gap:a,children:n}))),Hn=e.memo(e.forwardRef(({children:n,gap:a},r)=>t.jsx(j,{ref:r,grow:"1",width:"max-content",direction:"row-reverse",height:"100%",align:"center",gap:a||"2",children:n}))),Vn={Root:Ct,LeftContent:Wn,RightContent:Hn},je={ToastViewport:"_ToastViewport_1i6bp_1",actionButton:"_actionButton_1i6bp_20",ToastRoot:"_ToastRoot_1i6bp_24",slideIn:"_slideIn_1i6bp_1",swipeOut:"_swipeOut_1i6bp_1"},qn=e.forwardRef(function({title:a,description:r,icon:o,severity:l="primary",size:i,onClose:d,sensitivity:s,action:f,...u},g){const[h,m]=e.useState(!0),C=N(l),_=e.useCallback(w=>{!w&&d&&d(),m(w)},[d]);return t.jsx(ge.Root,{asChild:!0,ref:g,...u,open:h,type:s,onOpenChange:_,children:t.jsx(c.Callout.Root,{className:je.ToastRoot,variant:"surface",color:C,size:i,children:t.jsxs(c.Flex,{width:"100%",align:"center",gap:"4",justify:"between",children:[t.jsxs(c.Flex,{align:"center",gap:"3",children:[t.jsx(c.Callout.Icon,{children:o}),t.jsxs(c.Flex,{direction:"column",gap:"2",children:[t.jsxs(c.Flex,{direction:"column",gap:"0",children:[t.jsx(ge.Title,{asChild:!0,children:t.jsx(c.Callout.Text,{size:"3",weight:"medium",children:a})}),t.jsx(ge.Description,{asChild:!0,children:t.jsx(c.Callout.Text,{children:r})})]}),f&&t.jsx(ge.Action,{className:je.actionButton,altText:f.altText,asChild:!0,children:f.content})]})]}),t.jsx(ge.Close,{asChild:!0,children:t.jsx(H,{"aria-label":"Close",variant:"ghost",severity:l,children:t.jsx(T.Cross2Icon,{})})})]})})})}),vt=e.memo(qn),Le=e.createContext({}),Un=()=>{const n=e.useContext(Le);if(!n)throw new Error("useToast must be used within a ToastProvider");return n},Gn=240/60,mt=5e3,Kn=n=>{if(n.duration&&n.duration>=mt)return n.duration;const a=n.severity==="danger"?1.5:1,r=n.description.split(" ").length+n.title.split(" ").length;return(mt+r/Gn)*a};p.unsafeShowToast=void 0;const Xn=e.memo(function({children:a,className:r,hotkey:o,...l}){const[i,d]=e.useState([]),s=e.useCallback((u,g,h)=>{d(m=>{const C=m.find(_=>_.id===u);return C&&g===0&&clearTimeout(C.timeout),m.filter(_=>_.id!==u)}),h&&h()},[]),f=e.useMemo(()=>{let u=0;const g=v=>{const P=Kn(v),S=u.toString();u+=1;const k=setTimeout(()=>s(S,1,v.onClose),P);d(M=>[...M,{...v,timeout:k,duration:P,id:S}])},h=v=>g({...v,severity:"primary"}),m=v=>g({...v,severity:"success"}),C=v=>g({...v,severity:"danger"}),_=v=>g({...v,severity:"info"}),w=v=>g({...v,severity:"warning"});return p.unsafeShowToast=g,{showToast:g,showPrimary:h,showSuccess:m,showError:C,showInfo:_,showWarning:w}},[s]);return e.useEffect(()=>()=>{for(const{timeout:u}of i)clearTimeout(u)},[]),t.jsx(Le.Provider,{value:f,children:t.jsxs(Ee.ToastProvider,{...l,children:[a,t.jsx(Ee.ToastViewport,{className:x(r,je.ToastViewport),hotkey:o}),i.map(({id:u,onClose:g,...h})=>t.jsx(vt,{...h,onClose:()=>s(u,0,g)},u))]})})}),Qn={default:"_default_1odpt_1"},Jn=e.memo(e.forwardRef(({className:n,children:a,content:r,...o},l)=>t.jsx(c.Tooltip,{className:x("overmap-tooltip",n,Qn.default),ref:l,content:t.jsx(c.Flex,{align:"center",gap:"1",width:"max-content",height:"max-content",justify:"center",children:r}),...o,children:a}))),Yn={noWrap:"_noWrap_1wpa5_1"},Pe=e.memo(e.forwardRef(({className:n,noWrap:a,severity:r,as:o,...l},i)=>{const d=N(r);return t.jsx(c.Text,{ref:i,as:o,className:x(n,{[Yn.noWrap]:a}),color:d,...l})})),qr="",Zn=e.memo(e.forwardRef((n,a)=>{const{panelBackground:r="solid",radius:o="full",...l}=n;return t.jsx(c.Theme,{panelBackground:r,radius:o,ref:a,...l})}));function Q(){return Q=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},Q.apply(this,arguments)}function Rn(n,a){typeof n=="function"?n(a):n!=null&&(n.current=a)}function _t(...n){return a=>n.forEach(r=>Rn(r,a))}function yt(...n){return e.useCallback(_t(...n),n)}function eo(n,a=[]){let r=[];function o(i,d){const s=e.createContext(d),f=r.length;r=[...r,d];function u(h){const{scope:m,children:C,..._}=h,w=(m==null?void 0:m[n][f])||s,v=e.useMemo(()=>_,Object.values(_));return e.createElement(w.Provider,{value:v},C)}function g(h,m){const C=(m==null?void 0:m[n][f])||s,_=e.useContext(C);if(_)return _;if(d!==void 0)return d;throw new Error(`\`${h}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,g]}const l=()=>{const i=r.map(d=>e.createContext(d));return function(s){const f=(s==null?void 0:s[n])||i;return e.useMemo(()=>({[`__scope${n}`]:{...s,[n]:f}}),[s,f])}};return l.scopeName=n,[o,to(l,...a)]}function to(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const o=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(i){const d=o.reduce((s,{useScope:f,scopeName:u})=>{const h=f(i)[`__scope${u}`];return{...s,...h}},{});return e.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return r.scopeName=a.scopeName,r}function wt(n,a,{checkForDefaultPrevented:r=!0}={}){return function(l){if(n==null||n(l),r===!1||!l.defaultPrevented)return a==null?void 0:a(l)}}function St(n){const a=e.useRef(n);return e.useEffect(()=>{a.current=n}),e.useMemo(()=>(...r)=>{var o;return(o=a.current)===null||o===void 0?void 0:o.call(a,...r)},[])}function no({prop:n,defaultProp:a,onChange:r=()=>{}}){const[o,l]=oo({defaultProp:a,onChange:r}),i=n!==void 0,d=i?n:o,s=St(r),f=e.useCallback(u=>{if(i){const h=typeof u=="function"?u(n):u;h!==n&&s(h)}else l(u)},[i,n,l,s]);return[d,f]}function oo({defaultProp:n,onChange:a}){const r=e.useState(n),[o]=r,l=e.useRef(o),i=St(a);return e.useEffect(()=>{l.current!==o&&(i(o),l.current=o)},[o,l,i]),r}function ro(n){const a=e.useRef({value:n,previous:n});return e.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}const We=globalThis!=null&&globalThis.document?e.useLayoutEffect:()=>{};function ao(n){const[a,r]=e.useState(void 0);return We(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[0];let d,s;if("borderBoxSize"in i){const f=i.borderBoxSize,u=Array.isArray(f)?f[0]:f;d=u.inlineSize,s=u.blockSize}else d=n.offsetWidth,s=n.offsetHeight;r({width:d,height:s})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else r(void 0)},[n]),a}function io(n,a){return e.useReducer((r,o)=>{const l=a[r][o];return l??r},n)}const xt=n=>{const{present:a,children:r}=n,o=lo(a),l=typeof r=="function"?r({present:o.isPresent}):e.Children.only(r),i=yt(o.ref,l.ref);return typeof r=="function"||o.isPresent?e.cloneElement(l,{ref:i}):null};xt.displayName="Presence";function lo(n){const[a,r]=e.useState(),o=e.useRef({}),l=e.useRef(n),i=e.useRef("none"),d=n?"mounted":"unmounted",[s,f]=io(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const u=ke(o.current);i.current=s==="mounted"?u:"none"},[s]),We(()=>{const u=o.current,g=l.current;if(g!==n){const m=i.current,C=ke(u);n?f("MOUNT"):C==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(g&&m!==C?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,f]),We(()=>{if(a){const u=h=>{const C=ke(o.current).includes(h.animationName);h.target===a&&C&&zt.flushSync(()=>f("ANIMATION_END"))},g=h=>{h.target===a&&(i.current=ke(o.current))};return a.addEventListener("animationstart",g),a.addEventListener("animationcancel",u),a.addEventListener("animationend",u),()=>{a.removeEventListener("animationstart",g),a.removeEventListener("animationcancel",u),a.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback(u=>{u&&(o.current=getComputedStyle(u)),r(u)},[])}}function ke(n){return(n==null?void 0:n.animationName)||"none"}const Pt=e.forwardRef((n,a)=>{const{children:r,...o}=n,l=e.Children.toArray(r),i=l.find(co);if(i){const d=i.props.children,s=l.map(f=>f===i?e.Children.count(d)>1?e.Children.only(null):e.isValidElement(d)?d.props.children:null:f);return e.createElement(He,Q({},o,{ref:a}),e.isValidElement(d)?e.cloneElement(d,void 0,s):null)}return e.createElement(He,Q({},o,{ref:a}),r)});Pt.displayName="Slot";const He=e.forwardRef((n,a)=>{const{children:r,...o}=n;return e.isValidElement(r)?e.cloneElement(r,{...uo(o,r.props),ref:a?_t(a,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null});He.displayName="SlotClone";const so=({children:n})=>e.createElement(e.Fragment,null,n);function co(n){return e.isValidElement(n)&&n.type===so}function uo(n,a){const r={...a};for(const o in a){const l=n[o],i=a[o];/^on[A-Z]/.test(o)?l&&i?r[o]=(...s)=>{i(...s),l(...s)}:l&&(r[o]=l):o==="style"?r[o]={...l,...i}:o==="className"&&(r[o]=[l,i].filter(Boolean).join(" "))}return{...n,...r}}const kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((n,a)=>{const r=e.forwardRef((o,l)=>{const{asChild:i,...d}=o,s=i?Pt:a;return e.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),e.createElement(s,Q({},d,{ref:l}))});return r.displayName=`Primitive.${a}`,{...n,[a]:r}},{}),$t="Checkbox",[fo,Gr]=eo($t),[po,ho]=fo($t),go=e.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:o,checked:l,defaultChecked:i,required:d,disabled:s,value:f="on",onCheckedChange:u,...g}=n,[h,m]=e.useState(null),C=yt(a,k=>m(k)),_=e.useRef(!1),w=h?!!h.closest("form"):!0,[v=!1,P]=no({prop:l,defaultProp:i,onChange:u}),S=e.useRef(v);return e.useEffect(()=>{const k=h==null?void 0:h.form;if(k){const M=()=>P(S.current);return k.addEventListener("reset",M),()=>k.removeEventListener("reset",M)}},[h,P]),e.createElement(po,{scope:r,state:v,disabled:s},e.createElement(kt.button,Q({type:"button",role:"checkbox","aria-checked":ee(v)?"mixed":v,"aria-required":d,"data-state":Tt(v),"data-disabled":s?"":void 0,disabled:s,value:f},g,{ref:C,onKeyDown:wt(n.onKeyDown,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:wt(n.onClick,k=>{P(M=>ee(M)?!0:!M),w&&(_.current=k.isPropagationStopped(),_.current||k.stopPropagation())})})),w&&e.createElement(vo,{control:h,bubbles:!_.current,name:o,value:f,checked:v,required:d,disabled:s,style:{transform:"translateX(-100%)"}}))}),bo="CheckboxIndicator",Co=e.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:o,...l}=n,i=ho(bo,r);return e.createElement(xt,{present:o||ee(i.state)||i.state===!0},e.createElement(kt.span,Q({"data-state":Tt(i.state),"data-disabled":i.disabled?"":void 0},l,{ref:a,style:{pointerEvents:"none",...n.style}})))}),vo=n=>{const{control:a,checked:r,bubbles:o=!0,...l}=n,i=e.useRef(null),d=ro(r),s=ao(a);return e.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(d!==r&&h){const m=new Event("click",{bubbles:o});f.indeterminate=ee(r),h.call(f,ee(r)?!1:r),f.dispatchEvent(m)}},[d,r,o]),e.createElement("input",Q({type:"checkbox","aria-hidden":!0,defaultChecked:ee(r)?!1:r},l,{tabIndex:-1,ref:i,style:{...n.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ee(n){return n==="indeterminate"}function Tt(n){return ee(n)?"indeterminate":n?"checked":"unchecked"}const mo=go,_o=Co,de={checkboxContainer:"_checkboxContainer_pb9za_5",checkbox:"_checkbox_pb9za_5",checkboxIndicator:"_checkboxIndicator_pb9za_27",checkboxLabel:"_checkboxLabel_pb9za_38",noTextHighlight:"_noTextHighlight_pb9za_42",checkboxHidden:"_checkboxHidden_pb9za_51"},yo=e.forwardRef(function({className:a,labelClassName:r,label:o,checked:l,onCheckedChange:i,...d},s){return t.jsx(lt,{children:({isHovered:f,...u})=>t.jsxs(c.Flex,{className:de.checkboxContainer,...u,children:[t.jsx(mo,{className:x(de.checkbox,!f&&!l&&de.checkboxHidden,a),checked:l,onCheckedChange:g=>{i&&i(g)},ref:s,...d,children:t.jsx(_o,{className:de.checkboxIndicator,children:l==="indeterminate"?t.jsx(T.DividerHorizontalIcon,{width:"13px"}):t.jsx(T.CheckIcon,{})})}),o&&t.jsx("div",{className:x(de.checkboxLabel,r,de.noTextHighlight),onClick:()=>{i&&i(!l)},children:o})]})})}),$e=e.memo(yo);$e.displayName="Checkbox";const Dt=e.memo(function({className:a,labelClassName:r,label:o,onCheckedChange:l,children:i,...d}){const[s,f]=e.useState(e.Children.toArray(i).every(C=>e.isValidElement(C)&&C.props.checked)?!0:e.Children.toArray(i).some(C=>e.isValidElement(C)&&C.props.checked)?"indeterminate":!1),[u,g]=e.useState(e.Children.map(i,C=>C.props.checked)),h=C=>{const _=s==="indeterminate"||!C;s==="indeterminate"&&(C=!1),g(u.map(w=>!_)),l&&l(C)};e.useEffect(()=>{const C=u.filter(_=>_).length;C===0?f(!1):C===i.length?f(!0):f("indeterminate")},[i,u]);const m=e.Children.map(i,(C,_)=>e.cloneElement(C,{...C.props,checked:u[_],onCheckedChange:w=>{const v=[...u];v[_]=w,g(v),C.props.onCheckedChange&&C.props.onCheckedChange(w)}}));return t.jsxs(t.Fragment,{children:[t.jsx($e,{className:a,labelClassName:r,label:o,checked:s,onCheckedChange:h,...d}),m]})}),A={tableContainer:"_tableContainer_go3yk_1",headerContainer:"_headerContainer_go3yk_14",tableTopContainer:"_tableTopContainer_go3yk_18",searchContainer:"_searchContainer_go3yk_22",columnFilterSelect:"_columnFilterSelect_go3yk_32",table:"_table_go3yk_1",tableHeaderCell:"_tableHeaderCell_go3yk_50",tableRow:"_tableRow_go3yk_56",tableCell:"_tableCell_go3yk_71",noDataTextContainer:"_noDataTextContainer_go3yk_78",tableBottomContainer:"_tableBottomContainer_go3yk_84",rowsPerPageContainer:"_rowsPerPageContainer_go3yk_88",rowsPerPageText:"_rowsPerPageText_go3yk_98"},wo=e.forwardRef(function(a,r){const{columns:o,data:l,color:i="light",title:d="",description:s="",rowsPerPage:f=[10,20,30,40,50],showSearchBar:u,searchBarPlaceholder:g,showSelect:h,showFilterButton:m,showContainer:C,showRowsPerPage:_,showPageNumber:w,showPageNavigation:v,showTopBar:P=!0,showBottomBar:S=!0,emptyMessage:k="There is no data",children:M,className:J,columnClassName:Te,rowClassName:ue,cellClassName:Ve}=a,[te,fe]=e.useState(""),[qe,Ue]=e.useState([]);if(!l.every(b=>Object.keys(b.columns).length===o.length&&Object.values(o).every(y=>Object.keys(b.columns).includes(y.id.toString()))))throw new Error("Columns in rows do not match ones declared in columns variable.");const De=e.useMemo(()=>o.filter(b=>b.filter).map(b=>({[b.id]:[]})).reduce((b,y)=>Object.assign(b,y),{}),[o]),[L,D]=e.useState(De),[E,F]=e.useState(f[0]??10),z=e.useMemo(()=>f.map(b=>({value:b.toString(),itemContent:b.toString()})),[f]),Oe=l.some(b=>b.onClick),Ce=e.useCallback(b=>{var $,O;return((($=b.searchValue)==null?void 0:$.toString())||((O=b.value)==null?void 0:O.toString())||"").toLowerCase().includes(te.toLowerCase())},[te]),ve=e.useCallback((b,y)=>{var W,oe,pe,re;const $=((W=b.sortValue)==null?void 0:W.toString())||((oe=b.value)==null?void 0:oe.toString())||"",O=((pe=y.sortValue)==null?void 0:pe.toString())||((re=y.value)==null?void 0:re.toString())||"";return $.toLowerCase().localeCompare(O.toLowerCase(),void 0,{numeric:!0})},[]),ne=e.useCallback((b,y)=>{var O,W,oe;const $=((O=b.filterValue)==null?void 0:O.toString())||((W=b.value)==null?void 0:W.toString())||"";return(oe=L[y.id])==null?void 0:oe.some(pe=>$.toString().toLowerCase()===pe.toString().toLowerCase())},[L]),q=e.useMemo(()=>o.map(b=>({...b,sort:b.sort?{sortKey:b.id.toString().toUpperCase()}:!1})),[o]),Y=o.some(b=>{var y;return b.filter&&b.id in L&&((y=L[b.id])==null?void 0:y.length)!==0}),Ne=e.useMemo(()=>l.filter(b=>!te||o.some(y=>y.search&&Ce(b.columns[y.id]))).filter(b=>!Y||o.every(y=>{var $;return!y.filter||(($=L[y.id])==null?void 0:$.length)===0||ne(b.columns[y.id],y)})).map(b=>{const y={...b.columns,...b},{columns:$,...O}=y;return O}),[ne,L,o,l,Y,te,Ce]),[U,xo]=e.useState(Math.ceil(Ne.length/E)),Ke=e.useCallback(b=>b.filterValues?b.filterValues:[...new Set(l.map($=>{var O,W;return((O=$.columns[b.id].filterValue)==null?void 0:O.toString())||((W=$.columns[b.id].value)==null?void 0:W.toString())||""}))].sort().map($=>({value:$,label:$})),[l]),Po=e.useMemo(()=>(h?"auto ":"")+q.reduce((b,y)=>b+`${y.width||"auto"} `,""),[q,h]),ko=e.useCallback(b=>{fe(b.target.value)},[]),Ie={nodes:Ne},$o=ie.useRowSelect(Ie,{onChange:(b,y)=>{Ue(y.ids)}},{rowSelect:ie.SelectTypes.MultiSelect,buttonSelect:ie.SelectTypes.MultiSelect,clickType:ie.SelectClickTypes.ButtonClick,isCarryForward:!1}),I=Ft.usePagination(Ie,{state:{page:0,size:f[0]}},{isServer:!1}),To=Qe.useSort(Ie,{onChange:()=>null},{sortIcon:{margin:"10px",size:"15px",iconDefault:t.jsx(T.CaretSortIcon,{width:"20px"}),iconUp:t.jsx(T.ArrowUpIcon,{}),iconDown:t.jsx(T.ArrowDownIcon,{})},sortFns:Object.assign({},...q.map(b=>({[b.id.toString().toUpperCase()]:y=>y.sort(($,O)=>ve($[b.id],O[b.id]))})))}),Do=e.useMemo(()=>({options:o.filter(b=>b.filter).map(b=>({label:b.label,value:b.id.toString(),page:{content:t.jsx(Dt,{label:"Select all",onCheckedChange:y=>{const $=JSON.parse(JSON.stringify(L));y===!0?$[b.id]=Ke(b).map(O=>O.value):$[b.id]=[],D($)},children:Ke(b).map((y,$)=>{var O,W;return t.jsx($e,{label:y.label,checked:(W=L[b.id])==null?void 0:W.includes(((O=y.value)==null?void 0:O.toString())||""),onCheckedChange:oe=>{D(pe=>{var It;const re={...pe},Nt=re[b.id]||[];return oe?re[b.id]=[...Nt,((It=y.value)==null?void 0:It.toString())||""]:re[b.id]=Nt.filter(Mo=>Mo!==(y.value??"").toString()),re})}},`checkbox-filter-${b.id}-${$}`)})},`select-all-checkbox-${b.id}`)}}))}),[L,o,Ke]),Oo=q.map(b=>{const y=b.sort?Qe.HeaderCellSort:G.HeaderCell;return t.jsx(y,{className:x(A.tableHeaderCell,Te,b.className),sortKey:b.sort?b.id.toString().toUpperCase():"",children:b.label},b.id)}),Ot=_e.isMobile?H:Z,No=e.useMemo(()=>({custom:!0}),[]),Io=Bt.useTheme({Table:`
6
- --data-table-library_grid-template-columns: ${Po};
5
+ */(function(n){(function(){var a={}.hasOwnProperty;function r(){for(var o=[],i=0;i<arguments.length;i++){var l=arguments[i];if(l){var c=typeof l;if(c==="string"||c==="number")o.push(l);else if(Array.isArray(l)){if(l.length){var s=r.apply(null,l);s&&o.push(s)}}else if(c==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){o.push(l.toString());continue}for(var f in l)a.call(l,f)&&l[f]&&o.push(f)}}}return o.join(" ")}n.exports?(r.default=r,n.exports=r):window.classNames=r})()})(Ye);var Wt=Ye.exports;const S=Lt(Wt);function X(n,a){return e.useMemo(()=>{if(n!==void 0)if(typeof n=="object"){if(!("initial"in n))throw new Error("Expected initial property to be set in Responsive object");return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,a[o]]))}else return a[n]},[a,n])}const Ht={success:"green",danger:"red",warning:"amber",info:"gray"},M=n=>{const a=d.useThemeContext();if(n)return n==="primary"?a.accentColor:Ht[n]},Vt=()=>{const[n,a]=e.useState("initial"),[r,o]=e.useState("initial"),i=he.useMediaQuery({minWidth:"520px"}),l=he.useMediaQuery({minWidth:"768px"}),c=he.useMediaQuery({minWidth:"1024px"}),s=he.useMediaQuery({minWidth:"1280px"}),f=he.useMediaQuery({minWidth:"1640px"});return e.useLayoutEffect(()=>{o(u=>(a(u),f?"xl":s?"lg":c?"md":l?"sm":i?"xs":"initial"))},[s,c,l,f,i]),{size:r,prevSize:n,xs:i,sm:l,md:c,lg:s,xl:f}},Ze=(n,a,r)=>{const[o,i]=e.useState([]),[l,c]=e.useState(!0),s=e.useCallback(g=>{const{repeat:h,key:m}=g;c(!0),!(h||o.includes(m))&&i(C=>[...C,m])},[o]),f=e.useCallback(g=>{const{key:h}=g;c(!1),o.includes(h)&&i(m=>{const C=[...m];return C.splice(m.indexOf(h),1),C})},[o]);e.useEffect(()=>(a||document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}),[a,s]),e.useEffect(()=>(a||document.addEventListener("keyup",f,!0),()=>{document.removeEventListener("keyup",f,!0)}),[a,f]);const u=e.useMemo(()=>!a&&l&&o.length===n.length&&o.every(g=>n.includes(g)),[a,l,o,n]);return e.useEffect(()=>{u&&r()},[u,r]),u},qt=n=>{const a=[];for(const r of e.Children.toArray(n))e.isValidElement(r)&&a.push(r);return a},Ut=e.forwardRef(function({className:a,severity:r="primary",color:o,children:i,...l},c){const s=M(r);return t.jsx(d.Badge,{className:S("overmap-badge",a),ref:c,color:o||s,...l,children:i})}),Gt=e.memo(Ut),Ae={zeroMinWidth:"_zeroMinWidth_curjh_1",zeroMinHeight:"_zeroMinHeight_curjh_5",radius:"_radius_curjh_9"},L=e.memo(e.forwardRef(({className:n,radius:a=!1,children:r,zeroMinWidth:o=!1,zeroMinHeight:i=!1,...l},c)=>t.jsx(d.Flex,{className:S(n,{[Ae.radius]:a,[Ae.zeroMinWidth]:o,[Ae.zeroMinHeight]:i}),ref:c,...l,children:r}))),Re=e.createContext({}),Kt=()=>e.useContext(Re),Xt=e.memo(e.forwardRef(({className:n,children:a,...r},o)=>{const{size:i,severity:l}=Kt(),c=M(l);return t.jsx(d.Box,{className:S("overmap-breadcrumb-item",n),height:"max-content",width:"max-content",children:t.jsx(d.Link,{ref:o,size:i,color:c,...r,children:t.jsx(L,{height:"100%",width:"100%",align:"center",gap:"1",children:a})})})})),Qt={Group:e.memo(e.forwardRef(({className:n,children:a,separator:r,severity:o="info",size:i,gap:l="2",...c},s)=>{const f=M(o),u=qt(a);return t.jsx(Re.Provider,{value:{size:i,severity:o},children:t.jsx(L,{className:S("overmap-breadcrumb-group",n),ref:s,gap:l,role:"breadcrumb",height:"max-content",width:"max-content",...c,children:u.map((g,h)=>t.jsxs(t.Fragment,{children:[e.cloneElement(g,{key:h}),u.length-1!==h&&t.jsx(d.Text,{color:f,children:t.jsx(L,{height:"100%",width:"100%",align:"center",children:r})})]}))})})})),Item:Xt},be={fluid:"_fluid_r73gr_1",hoverSpin90Clockwise:"_hoverSpin90Clockwise_r73gr_15",hoverSpin180Clockwise:"_hoverSpin180Clockwise_r73gr_25",hoverSpin360Clockwise:"_hoverSpin360Clockwise_r73gr_35"},et={spin90Clockwise:be.hoverSpin90Clockwise,spin180Clockwise:be.hoverSpin180Clockwise,spin360Clockwise:be.hoverSpin360Clockwise},Jt={role:"button",tabIndex:0,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&n.currentTarget.click()}},ie={small:"1",medium:"2",large:"3"},tt=e.createContext({}),ze=()=>e.useContext(tt),Yt={spinner:"_spinner_isifr_9",spin:"_spin_isifr_9"},nt=e.memo(()=>t.jsx("div",{className:Yt.spinner}));nt.displayName="Spinner";const Zt=e.forwardRef(function(a,r){const o=ze(),{className:i,type:l="button",fluid:c=o.fluid??!1,size:s=o.size??"medium",severity:f=o.severity??"primary",hoverEffects:u=o.hoverEffects??[],variant:g=o.variant,shortcut:h={keys:[],action:()=>{},disabled:!1},loading:m,children:C,disabled:_,...y}=a,v=M(f),P=u.map(x=>et[x]);return Ze(h.keys,h.disabled||h.keys.length===0,h.action),t.jsx(d.Button,{ref:r,type:l,className:S(i,P,{[be.fluid]:c}),color:v,size:X(s,ie),variant:g,disabled:m||_,...y,children:m?t.jsx(nt,{}):C})}),Z=e.memo(Zt),Rt=e.forwardRef(function(a,r){const o=ze(),{className:i,children:l,type:c="button",fluid:s=o.fluid??!1,size:f=o.size??"medium",severity:u=o.severity??"primary",hoverEffects:g=o.hoverEffects??[],variant:h=o.variant,shortcut:m={keys:[],action:()=>{},disabled:!1},...C}=a,_=M(u),y=(g==null?void 0:g.map(v=>et[v]))||[];return Ze(m.keys,m.disabled||m.keys.length===0,m.action),t.jsx(d.IconButton,{className:S(i,y,{[be.fluid]:s}),ref:r,color:_,size:X(f,ie),variant:h,type:c,...C,children:l})}),V=e.memo(Rt),en={merged:"_merged_wdgxo_1"},tn={row:{small:"4",medium:"4",large:"5"},column:{small:"2",medium:"3",large:"4"}},nn=e.forwardRef(function({className:a,merged:r=!1,children:o,gap:i,direction:l="row",severity:c,size:s="medium",variant:f,hoverEffects:u,fluid:g,...h},m){const C=X(s,tn[l]),_=f==="ghost"?C:"0";return t.jsx(d.Flex,{className:S("overmap-button-group",a,{[en.merged]:r}),ref:m,gap:r?i??_:i??"2",direction:l,"data-direction":l,...h,children:t.jsx(tt.Provider,{value:{size:s,severity:c,variant:f,hoverEffects:u,fluid:g},children:o})})}),Be=e.memo(nn),on={separators:"_separators_1f7v1_1"},rn=e.memo(e.forwardRef((n,a)=>{const{children:r,border:o,before:i,after:l,size:c}=n,s=o?"surface":"ghost",f=X(c,ie),u=i&&l?t.jsx(d.Inset,{side:"x",pt:"current",pb:"current",children:r}):i?t.jsx(d.Inset,{side:"bottom",pt:"current",children:r}):l?t.jsx(d.Inset,{side:"top",pb:"current",children:r}):t.jsx(d.Inset,{children:r}),g=t.jsxs(d.Card,{ref:a,size:f,variant:s,children:[i,u,l]});return s==="ghost"?t.jsx(d.Box,{p:"3",children:g}):g})),an=e.memo(e.forwardRef((n,a)=>{const{children:r,variant:o="outline",size:i,className:l,...c}=n,s=o==="outline"||o==="surface",f=o==="outline"?"ghost":o==="surface"?"soft":o;return t.jsx(rn,{...c,border:s,size:i,children:t.jsx(Be,{size:i,severity:"info",variant:f,className:S(l,on.separators),merged:!0,gap:"0",direction:"column",ref:a,children:r})})})),ln=e.memo(e.forwardRef((n,a)=>{const{variant:r}=ze(),o=t.jsx(Z,{ref:a,...n,radius:"large",variant:r});return r==="ghost"?t.jsx(d.Box,{asChild:!0,my:"1",mx:"2",children:o}):o})),sn={Root:an,Item:ln},cn=e.memo(function(a){const{title:r,description:o,content:i,closeDialog:l,dragHandle:c}=a;return t.jsxs(d.Flex,{direction:"column",gap:"2",children:[t.jsxs(d.Flex,{direction:"column",gap:"1",children:[t.jsxs(d.Flex,{justify:"between",children:[t.jsx(d.Dialog.Title,{className:c!=null&&c.title?"draggableHandle":void 0,mb:"0",children:r}),t.jsx(d.Dialog.Close,{children:t.jsx(d.IconButton,{color:"gray",variant:"ghost","aria-label":"Close",children:t.jsx(T.Cross1Icon,{})})})]}),o&&t.jsx(d.Dialog.Description,{className:c!=null&&c.description?"draggableHandle":void 0,children:o})]}),i(l)]})}),dn=e.memo(e.forwardRef((n,a)=>{const{children:r,content:o,title:i,description:l,onOpen:c,onClose:s,defaultOpen:f,dragHandle:u,onCloseInterrupt:g,open:h,onOpenChange:m,...C}=n,[_,y]=e.useState(f??!1),v=h??_,P=!!u&&Object.values(u).some(I=>I===!0);if((g||c)&&m)throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");if(h!==void 0&&m===void 0)throw new Error("The `open` prop requires the `onOpenChange` prop.");if(!r&&h===void 0)throw new Error("Either the `children` or `open` prop must be defined.");if(r&&h!==void 0)throw new Error("The `children` and `open` props cannot be used together.");const x=e.useCallback(I=>{if(m)return m(I);if(I&&c)c();else{if(!I&&g)return g(()=>{y(!1),s&&s()});!I&&s&&s()}y(I)},[m,c,s,g]),k=e.useCallback(I=>{if(I!=null&&I.force)return y(!1);x(!1)},[x]),O=t.jsxs(d.Dialog.Root,{open:v,onOpenChange:x,children:[t.jsx(d.Dialog.Trigger,{children:r}),t.jsx(d.Dialog.Content,{ref:a,...C,children:t.jsx(cn,{closeDialog:k,content:o,title:i,description:l,dragHandle:u!=null&&u.all?void 0:u})})]});return t.jsx(t.Fragment,{children:P?t.jsx(Mt,{handle:u!=null&&u.all?void 0:".draggableHandle",children:O}):{pureDialog:O}})})),ot=n=>t.jsx(d.AlertDialog.Title,{mb:"0",...n}),un=n=>{const{title:a,description:r,actionText:o="Confirm",cancelText:i="Cancel",onAction:l,onCancel:c,severity:s}=n;return t.jsxs(d.Flex,{direction:"column",gap:"2",children:[t.jsxs(d.Flex,{direction:"column",gap:"1",children:[t.jsx(ot,{children:a}),t.jsx(d.AlertDialog.Description,{children:r})]}),t.jsxs(d.Flex,{gap:"3",mt:"4",justify:"end",children:[t.jsx(d.AlertDialog.Cancel,{children:t.jsx(Z,{variant:"soft",severity:"info",onClick:c,children:i})}),t.jsx(d.AlertDialog.Action,{children:t.jsx(Z,{variant:"solid",severity:s,onClick:l,children:o})})]})]})},rt=e.memo(function(a){const{open:r,setOpen:o,children:i,...l}=a,c=e.useMemo(()=>({close:()=>o(!1),Title:ot,Description:d.AlertDialog.Description}),[o]);return t.jsxs(d.AlertDialog.Root,{open:r,onOpenChange:o,children:[t.jsx(d.AlertDialog.Content,{children:"content"in l?l.content(c):t.jsx(un,{...l})}),i]})}),Fe=e.createContext(()=>{throw new Error("No AlertDialogProvider found")}),fn={content:()=>null},pn=e.memo(function({children:a}){const[r,o]=e.useState(!1),[i,l]=e.useState(fn),c=e.useCallback(s=>{if(r)throw new Error("AlertDialog is already open");l(s),o(!0)},[r]);return t.jsx(rt,{open:r,setOpen:o,...i,children:t.jsx(Fe.Provider,{value:c,children:a})})}),at=()=>e.useContext(Fe),hn=()=>{const n=at();return e.useCallback(a=>n({title:"Discard changes?",description:"You have unsaved changes. Are you sure you want to discard them?",actionText:"Discard",severity:"danger",onAction:a.onDiscard,onCancel:a.onCancel}),[n])},Se={DropdownMenu:"_DropdownMenu_hj4sz_1",DropdownMenuItemWrapper:"_DropdownMenuItemWrapper_hj4sz_8",DropdownMenuSeparatorWrapper:"_DropdownMenuSeparatorWrapper_hj4sz_13",DropdownMenuItem:"_DropdownMenuItem_hj4sz_8"},gn={1:"max-content",2:"max-content",3:"max-content",4:"100%"},bn=e.forwardRef(function({severity:a="info",weight:r="light",gap:o="1",text:i,orientation:l="horizontal",size:c,...s},f){const u=X(c,gn),g=M(a);return t.jsxs(d.Flex,{ref:f,width:l==="horizontal"?u:"max-content",height:l==="vertical"?u:"max-content",direction:l==="vertical"?"column":"row",align:"center",gap:o,children:[t.jsx(d.Separator,{size:c,orientation:l,color:g,...s}),i&&t.jsxs(t.Fragment,{children:[t.jsx(d.Text,{as:"span",size:"1",weight:r,color:g,children:i}),t.jsx(d.Separator,{size:c,orientation:l,color:g,...s})]})]})}),lt=e.memo(bn),Cn=e.memo(function({content:a,onSelect:r,closeOnSelect:o,...i}){const l=e.useCallback(c=>{r&&r(c),o||c.preventDefault()},[o,r]);return t.jsx(d.DropdownMenu.Item,{className:Se.DropdownMenuItem,textValue:"",onSelect:l,...i,children:t.jsx(d.Flex,{align:"center",gap:"1",children:a})})}),vn=e.memo(e.forwardRef(({className:n,trigger:a,items:r,label:o,disabled:i,severity:l="info",modal:c=!1,closeOnSelect:s=!0,...f})=>{const u=M(l);return t.jsxs(d.DropdownMenu.Root,{modal:c,children:[t.jsx(d.DropdownMenu.Trigger,{disabled:i,children:a}),t.jsx(d.DropdownMenu.Content,{className:S("overmap-dropdown",n),color:u,variant:"soft",...f,children:t.jsxs(d.Flex,{className:Se.DropdownMenu,direction:"column",height:"max-content",width:"max-content",children:[!!o&&t.jsx(d.DropdownMenu.Label,{children:o}),r.map(({closeOnSelect:g,separator:h,...m},C)=>t.jsxs(t.Fragment,{children:[t.jsx(d.Box,{className:Se.DropdownMenuItemWrapper,children:t.jsx(Cn,{closeOnSelect:g??s,...m},C)},C),!!h&&t.jsx(d.Box,{className:Se.DropdownMenuSeparatorWrapper,children:t.jsx(lt,{size:"4"})},`${C}-separator`)]}))]})})]})})),se={DropdownSelect:"_DropdownSelect_k517z_1",BorderBottom:"_BorderBottom_k517z_8",DropdownSelectInputWrapper:"_DropdownSelectInputWrapper_k517z_12",DropdownSelectInput:"_DropdownSelectInput_k517z_12",DropdownSelectItem:"_DropdownSelectItem_k517z_27"},mn=150,_n=e.memo(e.forwardRef(({trigger:n,items:a,disabled:r=!1,value:o,onValueChange:i,placeholder:l,filterValue:c,onFilterValueChange:s,closeOnSelect:f=!0,icons:u,severity:g="info"},h)=>{const m=M(g),C=e.useCallback(v=>P=>{i(o!==v?v:void 0),f||P.preventDefault()},[o,f,i]),_=e.useCallback(v=>{s&&s(v.target.value)},[s]),y=e.useCallback(v=>{!v&&s&&setTimeout(()=>{s("")},mn)},[s]);return t.jsxs(d.DropdownMenu.Root,{onOpenChange:y,children:[t.jsx(d.DropdownMenu.Trigger,{disabled:r,children:n}),t.jsx(d.DropdownMenu.Content,{ref:h,variant:"soft",color:m,className:se.Test,children:t.jsxs(L,{className:se.DropdownSelect,direction:"column",children:[c!==void 0&&!!s&&t.jsx(d.Box,{px:"1",className:S({[se.BorderBottom]:a.length!==0}),children:t.jsxs(d.TextField.Root,{className:se.DropdownSelectInputWrapper,size:"2",variant:"soft",children:[!!u&&!!u.leftInputIcon&&t.jsx(d.TextField.Slot,{children:u.leftInputIcon}),t.jsx(d.TextField.Input,{className:se.DropdownSelectInput,value:c,placeholder:l,onChange:_}),!!u&&!!u.rightInputIcon&&t.jsx(d.TextField.Slot,{children:u.rightInputIcon})]})}),t.jsx(d.Box,{p:a.length!==0?"1":"0",children:t.jsx(L,{direction:"column",children:a.map(({content:v,value:P},x)=>t.jsx(d.DropdownMenu.Item,{className:se.DropdownSelectItem,onSelect:C(P),textValue:"",asChild:!0,children:t.jsxs(L,{align:"center",height:"max-content",width:"100%",gap:"5",children:[t.jsx(d.Box,{grow:"1",children:v}),t.jsx(L,{justify:"center",align:"center",height:"max-content",width:"4",children:o===P&&(u&&(u!=null&&u.selectedItemIcon)?u.selectedItemIcon:t.jsx(T.CheckIcon,{}))})]})},x))})})]})})]})})),it=e.memo(function({children:a}){const[r,o]=e.useState(!1),i=e.useCallback(()=>{o(!0)},[]),l=e.useCallback(()=>{o(!1)},[]);return a({isHovered:r,onPointerEnter:i,onPointerLeave:l})}),st={fluid:"_fluid_7n1wr_1"},yn=e.forwardRef(function({className:a,fluid:r,size:o="medium",variant:i="surface",severity:l="primary",itemSeverity:c="info",placeholder:s="Select",side:f,items:u=[],value:g,id:h,...m},C){const _=X(o,ie),y=M(l),v=M(c);return e.createElement(d.Select.Root,{size:_,...m,key:g===void 0?1:0,value:g},t.jsx(d.Select.Trigger,{className:S(a,{[st.fluid]:r}),id:h,ref:C,variant:i,placeholder:s,color:y}),t.jsx(d.Select.Content,{side:f,className:st.contentDefault,position:"popper",variant:i!=="surface"?"soft":"solid",color:v,children:u.map(({itemContent:P,value:x,...k})=>t.jsx(d.Select.Item,{className:"overmap-select-item",value:x,...k,children:P},x))}))}),ct=e.memo(yn),dt=e.memo(e.forwardRef((n,a)=>{const{checked:r,label:o,value:i,size:l="2"}=n;return t.jsx(d.Box,{asChild:!0,px:l,children:t.jsx(d.Select.Item,{value:i,ref:a,children:t.jsxs(d.Flex,{gap:l,align:"center",children:[t.jsx(d.Checkbox,{checked:r}),o]})})})})),xe="__select_all__",wn=e.memo(e.forwardRef((n,a)=>{const[r,o]=e.useState(!1),{placeholder:i,value:l,onValueChange:c,options:s,disabled:f,name:u,...g}=n,h=X(n.size,ie),m=M(n.severity),C=e.useMemo(()=>new Map(s.map(x=>[x.value,x.label])),[s]),_=l.length>4?`${l.length} options selected`:t.jsx("span",{children:l.flatMap(x=>[C.get(x),", "]).slice(0,-1)}),y=e.useCallback(()=>o(!1),[]),v=e.useCallback(x=>{x&&o(!0)},[]),P=e.useCallback(x=>{let k;x===xe?k=l.length===s.length?[]:s.map(I=>I.value):k=l.includes(x)?l.filter(O=>O!==x):[...l,x],c(k)},[c,s,l]);return e.useEffect(()=>{if(s.some(({value:x})=>x===xe))throw new Error(`Cannot have an option with the value "${xe}"`)},[s]),t.jsxs(d.Select.Root,{open:r,value:"",onOpenChange:v,onValueChange:P,disabled:f,size:h,name:u,autoComplete:"off",children:[t.jsx(d.Select.Trigger,{ref:a,color:m,placeholder:l.length>0?_:i,"data-placeholder":l.length>0?void 0:!0,...g}),t.jsxs(d.Select.Content,{color:"gray",variant:"soft",position:"popper",onEscapeKeyDown:y,onPointerDownOutside:y,children:[t.jsx(dt,{value:xe,label:"Select all",checked:l.length===s.length,size:h}),s.map(x=>t.jsx(dt,{...x,checked:l.includes(x.value),size:h},x.value))]})]})})),Sn={default:"_default_u936h_1"},xn=e.forwardRef(function({className:a,severity:r="primary",icon:o,defaultChecked:i=!1,onCheckedChange:l,...c},s){const f=e.useRef(null),[u,g]=e.useState(c.checked?c.checked:i),[h,m]=e.useState(),C=M(r);e.useLayoutEffect(()=>{var P;const v=s||f;"current"in v&&v.current&&m((P=v.current)==null?void 0:P.querySelector("span.rt-SwitchThumb"))},[s]);const _=e.useCallback(v=>{g(v),l&&l(v)},[l]),y=c.checked?c.checked:u;return t.jsxs(t.Fragment,{children:[t.jsx(d.Switch,{className:S("overmap-switch",a,Sn.default),ref:s||f,color:C,radius:"full",defaultChecked:i,onCheckedChange:_,...c}),t.jsx(d.Portal,{container:h,asChild:!0,children:o&&"checked"in o?y?o.checked:o.unchecked:o})]})}),Pn=e.memo(xn),ce={sidebarContent:"_sidebarContent_1onyo_1",right:"_right_1onyo_7",resizeHandle:"_resizeHandle_1onyo_10",left:"_left_1onyo_13",overlay:"_overlay_1onyo_33"},kn={width:"auto",height:"100%"},$n=e.forwardRef(function({side:a="left",modal:r=!0,children:o,open:i,containerSelector:l,overlay:c=!0,resizable:s=!0,minWidth:f="300px",maxWidth:u="500px",...g},h){const m=a==="right",C=a==="left",[_,y]=e.useState();return e.useEffect(()=>{const v=l??'[data-is-root-theme="true"]',P=document.querySelector(v);if(P===void 0)throw new Error(`Could not find a container element using the following selector ${v}`);y(P)},[l]),t.jsx(we.Root,{open:i,modal:r,children:t.jsxs(we.Portal,{container:_,children:[c&&t.jsx(we.Overlay,{className:S(ce.overlay)}),t.jsx(we.Content,{className:S("overmap-sidebar","rt-DialogContent",ce.sidebarContent,{[ce.left]:C,[ce.right]:m}),ref:h,asChild:!0,...g,children:t.jsx(d.Box,{width:"auto",children:t.jsx(_e.Resizable,{minWidth:f,maxWidth:u,defaultSize:kn,enable:{right:s&&C,left:s&&m},handleClasses:{left:ce.resizeHandle,right:ce.resizeHandle},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{}),left:t.jsx(T.DragHandleDots2Icon,{})},children:o})})})]})})}),Tn=e.memo($n),q={outerContent:"_outerContent_1iy9c_1",enter:"_enter_1iy9c_4",right:"_right_1iy9c_4",left:"_left_1iy9c_8",enterActive:"_enterActive_1iy9c_12",exitActive:"_exitActive_1iy9c_22",exitDone:"_exitDone_1iy9c_32",resizable:"_resizable_1iy9c_41",slideOutOverlay:"_slideOutOverlay_1iy9c_47"},Dn=200,On=e.memo(function({className:a,open:r,side:o="left",children:i,minWidth:l,maxWidth:c,resizable:s=!0,overlay:f=!1,modal:u=!1,resizeHandle:g,position:h="absolute",...m}){const C=e.useRef(null),[_,y]=e.useState(l),v=o==="left",P=o==="right",x=e.useCallback((k,O,I,Ce)=>{y(I.clientWidth),C.current&&(C.current.style.width=`${I.clientWidth}px`)},[]);return t.jsx(Me.CSSTransition,{in:r,classNames:{enter:q.enter,enterActive:q.enterActive,exitActive:q.exitActive,exitDone:q.exitDone},timeout:Dn,nodeRef:C,unmountOnExit:!0,mountOnEnter:!0,children:t.jsxs(t.Fragment,{children:[f&&t.jsx("div",{className:S("overamp-slide-out-overlay",q.slideOutOverlay)}),t.jsx(At.DismissableLayer,{disableOutsidePointerEvents:u,asChild:!0,...m,children:t.jsx(d.Flex,{className:S("overmap-slide-out",a,q.outerContent,{[q.left]:v,[q.right]:P}),style:{"--slide-out-width":`${_}px`},height:"100%",width:"auto",position:h,top:"0",bottom:"0",left:v?"0":void 0,right:P?"0":void 0,ref:C,children:t.jsx(_e.Resizable,{className:q.resizable,defaultSize:{width:_,height:"100%"},onResize:x,enable:{right:s&&v,left:s&&P},handleComponent:{left:g,right:g},minWidth:l,maxWidth:c,children:i})})})]})})}),R={accommodateCharCount:"_accommodateCharCount_1octa_1",wrapper:"_wrapper_1octa_5",default:"_default_1octa_10",noLeftIcon:"_noLeftIcon_1octa_14",noRightIcon:"_noRightIcon_1octa_18",ghost:"_ghost_1octa_22",charCount:"_charCount_1octa_40"},Nn=e.forwardRef(function({className:a,leftSlot:r,rightSlot:o,size:i="medium",showInputLength:l,value:c,variant:s,severity:f="primary",...u},g){const h=X(i,ie),m=M(f),C=l||l===void 0&&u.maxLength!==void 0,_=c!==void 0?c.toString():void 0;return t.jsxs(d.TextField.Root,{className:S(R.wrapper,a,{[R.ghost]:s==="ghost",[R.accommodateCharCount]:C}),size:h,variant:s!=="ghost"?s:void 0,color:m,children:[r&&t.jsx(d.TextField.Slot,{children:r}),t.jsx(d.TextField.Input,{className:S(R.default,{[R.noLeftIcon]:!r,[R.noRightIcon]:!o}),ref:g,value:c,size:h,variant:s!=="ghost"?s:void 0,color:m,...u}),o&&t.jsx(d.TextField.Slot,{children:o}),C&&t.jsx(d.Text,{as:"p",className:R.charCount,size:"1",color:"gray",children:u.maxLength!==void 0?`${_==null?void 0:_.length}/${u.maxLength}`:`${_==null?void 0:_.length}`})]})}),ut=e.memo(Nn),In=e.memo(function({color:a,severity:r,children:o}){const i=M(r??"primary"),l=e.useMemo(()=>({"data-accent-color":r&&i?i:a||"gray",style:{color:"var(--accent-a11)"}}),[a,r,i]);return e.cloneElement(o,{...l})}),Mn={wrapper:"_wrapper_tmtz0_1"},En=e.forwardRef(function({className:a,trigger:r,open:o,onOpenChange:i,defaultOpen:l=!1,modal:c=!1,children:s,...f},u){return t.jsxs(d.Popover.Root,{defaultOpen:l,modal:c,open:o,onOpenChange:i,children:[t.jsx(d.Popover.Trigger,{children:r}),t.jsx(d.Popover.Content,{ref:u,className:S("overmap-popover",a,Mn.wrapper),...f,children:s(d.Popover.Close)})]})}),ft=e.memo(En),F={wrapper:"_wrapper_1ssf2_1",panelContent:"_panelContent_1ssf2_6",left:"_left_1ssf2_14",right:"_right_1ssf2_18",resizable:"_resizable_1ssf2_23",resizeHandle:"_resizeHandle_1ssf2_28",panelMainContent:"_panelMainContent_1ssf2_48"},pt=200,Q=150,An=e.memo(function({children:a,showLeft:r,leftPanel:o,leftMinWidth:i=pt,showRight:l,rightPanel:c,rightMinWidth:s=pt,resizeable:f}){const u=e.useRef(null),g=e.useRef(null),[h,m]=e.useState(0),[C,_]=e.useState(),y=e.useRef(null),[v,P]=e.useState(0),[x,k]=e.useState(),O=e.useCallback((D,A,j)=>(B,Oe,ve,me)=>{if(!u.current)return;const ne=D+me.width;j(u.current.clientWidth-ne),A(()=>ne)},[]),I=e.useCallback((D,A,j,B)=>O(h,m,k)(D,A,j,B),[O,h]),Ce=e.useCallback((D,A,j,B)=>O(v,P,_)(D,A,j,B),[O,v]),ue=e.useCallback((D,A,j,B,Oe,ve,me,ne)=>{if(!u.current)return;let U=D;if(U===0&&(U=A,j(U)),ve){const Y=u.current.clientWidth-U;ne(Y),Oe>Y&&(me(Y),B(u.current.clientWidth-Y))}},[]),Ve=e.useCallback(()=>ue(v,s,P,k,h,r,m,_),[ue,h,s,v,r]),te=e.useCallback(()=>ue(h,i,m,_,v,l,P,k),[ue,i,h,v,l]),fe=e.useCallback((D,A)=>{u.current&&D&&A(u.current.clientWidth)},[]),qe=e.useCallback(()=>fe(r,_),[fe,r]),Ue=e.useCallback(()=>fe(l,k),[fe,l]),Ge=e.useCallback(()=>{var D,A,j,B;u.current&&(_(u.current.clientWidth-(((D=y.current)==null?void 0:D.clientWidth)||0)),k(u.current.clientWidth-(((A=g.current)==null?void 0:A.clientWidth)||0)),m(((j=g.current)==null?void 0:j.clientWidth)||0),P(((B=y.current)==null?void 0:B.clientWidth)||0))},[]);e.useEffect(()=>{if(!u.current)return;const D=new ResizeObserver(Ge);return D.observe(u.current),()=>{D.disconnect()}},[Ge]);const De=e.useMemo(()=>({entering:{transform:`translateX(-${h}px)`,marginRight:`-${h}px`,transitionProperty:"transform, margin-right",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},entered:{transform:"translateX(0)",marginRight:0,transitionProperty:"transform, margin-right",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exiting:{transform:`translateX(-${h}px)`,marginRight:`-${h}px`,transitionProperty:"transform, margin-right",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[h]),W=e.useMemo(()=>({entering:{transform:`translateX(${v}px)`,marginLeft:`${-v}px`,transitionProperty:"transform, margin-left",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},entered:{transform:"translateX(0)",marginLeft:0,transitionProperty:"transform, margin-left",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exiting:{transform:`translateX(${v}px)`,marginLeft:`${-v}px`,transitionProperty:"transform, margin-left",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[v]);return t.jsxs(d.Flex,{className:F.wrapper,style:{minWidth:`${i+s}px`},ref:u,width:"100%",height:"100%",justify:"center",m:"0",p:"0",children:[t.jsx(Me.Transition,{nodeRef:g,timeout:r?0:Q,in:r,unmountOnExit:!0,onEntering:te,onExited:Ue,children:D=>t.jsx(d.Box,{ref:g,className:S(F.panelContent,F.left),style:De[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(_e.Resizable,{className:F.resizable,size:{width:h,height:"100%"},onResizeStop:I,enable:{right:(f==null?void 0:f.left)!==void 0?f.left:!0},minWidth:i,maxWidth:C,handleClasses:{right:S(F.resizeHandle,F.left)},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:o})})}),t.jsx("div",{className:F.panelMainContent,children:a}),t.jsx(Me.Transition,{nodeRef:y,timeout:l?0:Q,in:l,unmountOnExit:!0,onEntering:Ve,onExited:qe,children:D=>t.jsx(d.Box,{ref:y,className:S(F.panelContent,F.right),style:W[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(_e.Resizable,{className:F.resizable,size:{width:v,height:"100%"},onResizeStop:Ce,enable:{left:(f==null?void 0:f.right)!==void 0?f.right:!0},minWidth:s,maxWidth:x,handleClasses:{left:S(F.resizeHandle,F.right)},handleComponent:{left:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:c})})})]})}),Pe={multiPagePopover:"_multiPagePopover_spfw7_1",pageTitle:"_pageTitle_spfw7_12",buttonContainer:"_buttonContainer_spfw7_17",optionsButtonContainer:"_optionsButtonContainer_spfw7_22",optionsButton:"_optionsButton_spfw7_22"};function ht(n,a,r,o=0){if(!n.options)return n.content||t.jsx(t.Fragment,{});const i=n.options.map((l,c)=>t.jsx(Z,{className:S(Pe.optionsButton,l.buttonClassName),variant:"ghost",radius:"large",style:{width:r==="vertical"?"100%":"auto"},severity:"info",highContrast:!0,onClick:l.onClick||(()=>a(ht(l.page||{},a,r,o+1))),children:l.label},`${l.value}-page-${o}-button-${c}`));return t.jsxs(t.Fragment,{children:[n.title&&t.jsx("div",{className:Pe.pageTitle,children:n.title}),n.content,t.jsx("div",{className:S(Pe.optionsButtonContainer,n.buttonsContainerClassName),style:{flexDirection:r==="vertical"?"column":"row"},children:i})]})}const zn=e.forwardRef(function({page:a,className:r,direction:o="vertical",...i},l){const[c,s]=e.useState(void 0),f=e.useCallback(()=>{s(ht(a,s,o,0))},[o,a]),u=e.useCallback(g=>c,[c]);return t.jsx(ft,{className:S(Pe.multiPagePopover,r),ref:l,onOpenAutoFocus:f,onCloseAutoFocus:f,...i,children:g=>u(g)})}),gt=e.memo(zn),bt={charCount:"_charCount_1lz28_1",ghost:"_ghost_1lz28_5"},Bn=e.forwardRef(function({className:a,showInputLength:r,inputLengthTemplate:o,value:i,severity:l="primary",resize:c,variant:s,...f},u){const g=M(l),h=M("info"),m=r||r===void 0&&(f.maxLength!==void 0||f.minLength!==void 0),C=i!==void 0?i.toString():"",_=e.useMemo(()=>{if(o){let y=o.replace("{current}",C.length.toString());return f.minLength!==void 0&&(y=y.replace("{min}",f.minLength.toString())),f.maxLength!==void 0&&(y=y.replace("{max}",f.maxLength.toString())),y}return C.length},[o,f.maxLength,f.minLength,C.length]);return t.jsxs(t.Fragment,{children:[t.jsx(d.TextArea,{className:S("overmap-textarea",a,{[bt.ghost]:s==="ghost"}),style:{resize:c},variant:s!=="ghost"?s:void 0,ref:u,value:i,color:g,...f}),m&&t.jsx(d.Text,{as:"p",className:bt.charCount,color:h,align:"right",children:_})]})}),Fn=e.memo(Bn),jn=e.forwardRef(function({loop:a,type:r,rovingFocus:o,value:i,onValueChange:l,defaultValue:c,disabled:s,items:f,className:u,direction:g="row",...h},m){return t.jsx(Xe.Root,{type:r,className:S("overmap-toggle-group",u),ref:m,value:i,onValueChange:l,disabled:s,orientation:g==="column"?"vertical":"horizontal",loop:a,rovingFocus:o,defaultValue:c,asChild:!0,children:t.jsx(Be,{direction:g,...h,children:f.map(({children:C,..._})=>e.createElement(Xe.Item,{asChild:!0,..._,key:_.value},t.jsx(V,{className:S("overmap-toggle-group-button"),"aria-label":_.value,variant:_.value===i?"solid":"soft",children:C})))})})}),Ln=e.memo(jn),Wn={default:"_default_xqvoc_1"},Ct=e.memo(e.forwardRef(({className:n,minContentGap:a="2",children:r,...o},i)=>t.jsx(zt.Root,{className:S(n,"overmap-toolbar",Wn.default),ref:i,asChild:!0,...o,children:t.jsx(L,{grow:"1",width:"100%",height:"max-content",align:"center",gap:a,wrap:"nowrap",children:r})}))),Hn=e.memo(e.forwardRef(({children:n,gap:a="2"},r)=>t.jsx(L,{ref:r,grow:"1",width:"max-content",height:"100%",align:"center",gap:a,children:n}))),Vn=e.memo(e.forwardRef(({children:n,gap:a},r)=>t.jsx(L,{ref:r,grow:"1",width:"max-content",direction:"row-reverse",height:"100%",align:"center",gap:a||"2",children:n}))),qn={Root:Ct,LeftContent:Hn,RightContent:Vn},je={ToastViewport:"_ToastViewport_1i6bp_1",actionButton:"_actionButton_1i6bp_20",ToastRoot:"_ToastRoot_1i6bp_24",slideIn:"_slideIn_1i6bp_1",swipeOut:"_swipeOut_1i6bp_1"},Un=e.forwardRef(function({title:a,description:r,icon:o,severity:i="primary",size:l,onClose:c,sensitivity:s,action:f,...u},g){const[h,m]=e.useState(!0),C=M(i),_=e.useCallback(y=>{!y&&c&&c(),m(y)},[c]);return t.jsx(ge.Root,{asChild:!0,ref:g,...u,open:h,type:s,onOpenChange:_,children:t.jsx(d.Callout.Root,{className:je.ToastRoot,variant:"surface",color:C,size:l,children:t.jsxs(d.Flex,{width:"100%",align:"center",gap:"4",justify:"between",children:[t.jsxs(d.Flex,{align:"center",gap:"3",children:[t.jsx(d.Callout.Icon,{children:o}),t.jsxs(d.Flex,{direction:"column",gap:"2",children:[t.jsxs(d.Flex,{direction:"column",gap:"0",children:[t.jsx(ge.Title,{asChild:!0,children:t.jsx(d.Callout.Text,{size:"3",weight:"medium",children:a})}),t.jsx(ge.Description,{asChild:!0,children:t.jsx(d.Callout.Text,{children:r})})]}),f&&t.jsx(ge.Action,{className:je.actionButton,altText:f.altText,asChild:!0,children:f.content})]})]}),t.jsx(ge.Close,{asChild:!0,children:t.jsx(V,{"aria-label":"Close",variant:"ghost",severity:i,children:t.jsx(T.Cross2Icon,{})})})]})})})}),vt=e.memo(Un),Le=e.createContext({}),Gn=()=>{const n=e.useContext(Le);if(!n)throw new Error("useToast must be used within a ToastProvider");return n},Kn=240/60,mt=5e3,Xn=n=>{if(n.duration&&n.duration>=mt)return n.duration;const a=n.severity==="danger"?1.5:1,r=n.description.split(" ").length+n.title.split(" ").length;return(mt+r/Kn)*a};p.unsafeShowToast=void 0;const Qn=e.memo(function({children:a,className:r,hotkey:o,...i}){const[l,c]=e.useState([]),s=e.useCallback((u,g,h)=>{c(m=>{const C=m.find(_=>_.id===u);return C&&g===0&&clearTimeout(C.timeout),m.filter(_=>_.id!==u)}),h&&h()},[]),f=e.useMemo(()=>{let u=0;const g=v=>{const P=Xn(v),x=u.toString();u+=1;const k=setTimeout(()=>s(x,1,v.onClose),P);c(O=>[...O,{...v,timeout:k,duration:P,id:x}])},h=v=>g({...v,severity:"primary"}),m=v=>g({...v,severity:"success"}),C=v=>g({...v,severity:"danger"}),_=v=>g({...v,severity:"info"}),y=v=>g({...v,severity:"warning"});return p.unsafeShowToast=g,{showToast:g,showPrimary:h,showSuccess:m,showError:C,showInfo:_,showWarning:y}},[s]);return e.useEffect(()=>()=>{for(const{timeout:u}of l)clearTimeout(u)},[]),t.jsx(Le.Provider,{value:f,children:t.jsxs(Ee.ToastProvider,{...i,children:[a,t.jsx(Ee.ToastViewport,{className:S(r,je.ToastViewport),hotkey:o}),l.map(({id:u,onClose:g,...h})=>t.jsx(vt,{...h,onClose:()=>s(u,0,g)},u))]})})}),Jn={default:"_default_1odpt_1"},Yn=e.memo(e.forwardRef(({className:n,children:a,content:r,...o},i)=>t.jsx(d.Tooltip,{className:S("overmap-tooltip",n,Jn.default),ref:i,content:t.jsx(d.Flex,{align:"center",gap:"1",width:"max-content",height:"max-content",justify:"center",children:r}),...o,children:a}))),Zn={noWrap:"_noWrap_1wpa5_1"},ke=e.memo(e.forwardRef(({className:n,noWrap:a,severity:r,as:o,...i},l)=>{const c=M(r);return t.jsx(d.Text,{ref:l,as:o,className:S(n,{[Zn.noWrap]:a}),color:c,...i})})),Ur="",Rn=e.memo(e.forwardRef((n,a)=>{const{panelBackground:r="solid",radius:o="full",...i}=n;return t.jsx(d.Theme,{panelBackground:r,radius:o,ref:a,...i})}));function J(){return J=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},J.apply(this,arguments)}function eo(n,a){typeof n=="function"?n(a):n!=null&&(n.current=a)}function _t(...n){return a=>n.forEach(r=>eo(r,a))}function yt(...n){return e.useCallback(_t(...n),n)}function to(n,a=[]){let r=[];function o(l,c){const s=e.createContext(c),f=r.length;r=[...r,c];function u(h){const{scope:m,children:C,..._}=h,y=(m==null?void 0:m[n][f])||s,v=e.useMemo(()=>_,Object.values(_));return e.createElement(y.Provider,{value:v},C)}function g(h,m){const C=(m==null?void 0:m[n][f])||s,_=e.useContext(C);if(_)return _;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,g]}const i=()=>{const l=r.map(c=>e.createContext(c));return function(s){const f=(s==null?void 0:s[n])||l;return e.useMemo(()=>({[`__scope${n}`]:{...s,[n]:f}}),[s,f])}};return i.scopeName=n,[o,no(i,...a)]}function no(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const o=n.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const c=o.reduce((s,{useScope:f,scopeName:u})=>{const h=f(l)[`__scope${u}`];return{...s,...h}},{});return e.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function wt(n,a,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return a==null?void 0:a(i)}}function St(n){const a=e.useRef(n);return e.useEffect(()=>{a.current=n}),e.useMemo(()=>(...r)=>{var o;return(o=a.current)===null||o===void 0?void 0:o.call(a,...r)},[])}function oo({prop:n,defaultProp:a,onChange:r=()=>{}}){const[o,i]=ro({defaultProp:a,onChange:r}),l=n!==void 0,c=l?n:o,s=St(r),f=e.useCallback(u=>{if(l){const h=typeof u=="function"?u(n):u;h!==n&&s(h)}else i(u)},[l,n,i,s]);return[c,f]}function ro({defaultProp:n,onChange:a}){const r=e.useState(n),[o]=r,i=e.useRef(o),l=St(a);return e.useEffect(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),r}function ao(n){const a=e.useRef({value:n,previous:n});return e.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}const We=globalThis!=null&&globalThis.document?e.useLayoutEffect:()=>{};function lo(n){const[a,r]=e.useState(void 0);return We(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let c,s;if("borderBoxSize"in l){const f=l.borderBoxSize,u=Array.isArray(f)?f[0]:f;c=u.inlineSize,s=u.blockSize}else c=n.offsetWidth,s=n.offsetHeight;r({width:c,height:s})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else r(void 0)},[n]),a}function io(n,a){return e.useReducer((r,o)=>{const i=a[r][o];return i??r},n)}const xt=n=>{const{present:a,children:r}=n,o=so(a),i=typeof r=="function"?r({present:o.isPresent}):e.Children.only(r),l=yt(o.ref,i.ref);return typeof r=="function"||o.isPresent?e.cloneElement(i,{ref:l}):null};xt.displayName="Presence";function so(n){const[a,r]=e.useState(),o=e.useRef({}),i=e.useRef(n),l=e.useRef("none"),c=n?"mounted":"unmounted",[s,f]=io(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const u=$e(o.current);l.current=s==="mounted"?u:"none"},[s]),We(()=>{const u=o.current,g=i.current;if(g!==n){const m=l.current,C=$e(u);n?f("MOUNT"):C==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(g&&m!==C?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,f]),We(()=>{if(a){const u=h=>{const C=$e(o.current).includes(h.animationName);h.target===a&&C&&Bt.flushSync(()=>f("ANIMATION_END"))},g=h=>{h.target===a&&(l.current=$e(o.current))};return a.addEventListener("animationstart",g),a.addEventListener("animationcancel",u),a.addEventListener("animationend",u),()=>{a.removeEventListener("animationstart",g),a.removeEventListener("animationcancel",u),a.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback(u=>{u&&(o.current=getComputedStyle(u)),r(u)},[])}}function $e(n){return(n==null?void 0:n.animationName)||"none"}const Pt=e.forwardRef((n,a)=>{const{children:r,...o}=n,i=e.Children.toArray(r),l=i.find(uo);if(l){const c=l.props.children,s=i.map(f=>f===l?e.Children.count(c)>1?e.Children.only(null):e.isValidElement(c)?c.props.children:null:f);return e.createElement(He,J({},o,{ref:a}),e.isValidElement(c)?e.cloneElement(c,void 0,s):null)}return e.createElement(He,J({},o,{ref:a}),r)});Pt.displayName="Slot";const He=e.forwardRef((n,a)=>{const{children:r,...o}=n;return e.isValidElement(r)?e.cloneElement(r,{...fo(o,r.props),ref:a?_t(a,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null});He.displayName="SlotClone";const co=({children:n})=>e.createElement(e.Fragment,null,n);function uo(n){return e.isValidElement(n)&&n.type===co}function fo(n,a){const r={...a};for(const o in a){const i=n[o],l=a[o];/^on[A-Z]/.test(o)?i&&l?r[o]=(...s)=>{l(...s),i(...s)}:i&&(r[o]=i):o==="style"?r[o]={...i,...l}:o==="className"&&(r[o]=[i,l].filter(Boolean).join(" "))}return{...n,...r}}const kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((n,a)=>{const r=e.forwardRef((o,i)=>{const{asChild:l,...c}=o,s=l?Pt:a;return e.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),e.createElement(s,J({},c,{ref:i}))});return r.displayName=`Primitive.${a}`,{...n,[a]:r}},{}),$t="Checkbox",[po,Kr]=to($t),[ho,go]=po($t),bo=e.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:l,required:c,disabled:s,value:f="on",onCheckedChange:u,...g}=n,[h,m]=e.useState(null),C=yt(a,k=>m(k)),_=e.useRef(!1),y=h?!!h.closest("form"):!0,[v=!1,P]=oo({prop:i,defaultProp:l,onChange:u}),x=e.useRef(v);return e.useEffect(()=>{const k=h==null?void 0:h.form;if(k){const O=()=>P(x.current);return k.addEventListener("reset",O),()=>k.removeEventListener("reset",O)}},[h,P]),e.createElement(ho,{scope:r,state:v,disabled:s},e.createElement(kt.button,J({type:"button",role:"checkbox","aria-checked":ee(v)?"mixed":v,"aria-required":c,"data-state":Tt(v),"data-disabled":s?"":void 0,disabled:s,value:f},g,{ref:C,onKeyDown:wt(n.onKeyDown,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:wt(n.onClick,k=>{P(O=>ee(O)?!0:!O),y&&(_.current=k.isPropagationStopped(),_.current||k.stopPropagation())})})),y&&e.createElement(mo,{control:h,bubbles:!_.current,name:o,value:f,checked:v,required:c,disabled:s,style:{transform:"translateX(-100%)"}}))}),Co="CheckboxIndicator",vo=e.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:o,...i}=n,l=go(Co,r);return e.createElement(xt,{present:o||ee(l.state)||l.state===!0},e.createElement(kt.span,J({"data-state":Tt(l.state),"data-disabled":l.disabled?"":void 0},i,{ref:a,style:{pointerEvents:"none",...n.style}})))}),mo=n=>{const{control:a,checked:r,bubbles:o=!0,...i}=n,l=e.useRef(null),c=ao(r),s=lo(a);return e.useEffect(()=>{const f=l.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==r&&h){const m=new Event("click",{bubbles:o});f.indeterminate=ee(r),h.call(f,ee(r)?!1:r),f.dispatchEvent(m)}},[c,r,o]),e.createElement("input",J({type:"checkbox","aria-hidden":!0,defaultChecked:ee(r)?!1:r},i,{tabIndex:-1,ref:l,style:{...n.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ee(n){return n==="indeterminate"}function Tt(n){return ee(n)?"indeterminate":n?"checked":"unchecked"}const _o=bo,yo=vo,de={checkboxContainer:"_checkboxContainer_pb9za_5",checkbox:"_checkbox_pb9za_5",checkboxIndicator:"_checkboxIndicator_pb9za_27",checkboxLabel:"_checkboxLabel_pb9za_38",noTextHighlight:"_noTextHighlight_pb9za_42",checkboxHidden:"_checkboxHidden_pb9za_51"},wo=e.forwardRef(function({className:a,labelClassName:r,label:o,checked:i,onCheckedChange:l,...c},s){return t.jsx(it,{children:({isHovered:f,...u})=>t.jsxs(d.Flex,{className:de.checkboxContainer,...u,children:[t.jsx(_o,{className:S(de.checkbox,!f&&!i&&de.checkboxHidden,a),checked:i,onCheckedChange:g=>{l&&l(g)},ref:s,...c,children:t.jsx(yo,{className:de.checkboxIndicator,children:i==="indeterminate"?t.jsx(T.DividerHorizontalIcon,{width:"13px"}):t.jsx(T.CheckIcon,{})})}),o&&t.jsx("div",{className:S(de.checkboxLabel,r,de.noTextHighlight),onClick:()=>{l&&l(!i)},children:o})]})})}),Te=e.memo(wo);Te.displayName="Checkbox";const Dt=e.memo(function({className:a,labelClassName:r,label:o,onCheckedChange:i,children:l,...c}){const[s,f]=e.useState(e.Children.toArray(l).every(C=>e.isValidElement(C)&&C.props.checked)?!0:e.Children.toArray(l).some(C=>e.isValidElement(C)&&C.props.checked)?"indeterminate":!1),[u,g]=e.useState(e.Children.map(l,C=>C.props.checked)),h=C=>{const _=s==="indeterminate"||!C;s==="indeterminate"&&(C=!1),g(u.map(y=>!_)),i&&i(C)};e.useEffect(()=>{const C=u.filter(_=>_).length;C===0?f(!1):C===l.length?f(!0):f("indeterminate")},[l,u]);const m=e.Children.map(l,(C,_)=>e.cloneElement(C,{...C.props,checked:u[_],onCheckedChange:y=>{const v=[...u];v[_]=y,g(v),C.props.onCheckedChange&&C.props.onCheckedChange(y)}}));return t.jsxs(t.Fragment,{children:[t.jsx(Te,{className:a,labelClassName:r,label:o,checked:s,onCheckedChange:h,...c}),m]})}),z={tableContainer:"_tableContainer_go3yk_1",headerContainer:"_headerContainer_go3yk_14",tableTopContainer:"_tableTopContainer_go3yk_18",searchContainer:"_searchContainer_go3yk_22",columnFilterSelect:"_columnFilterSelect_go3yk_32",table:"_table_go3yk_1",tableHeaderCell:"_tableHeaderCell_go3yk_50",tableRow:"_tableRow_go3yk_56",tableCell:"_tableCell_go3yk_71",noDataTextContainer:"_noDataTextContainer_go3yk_78",tableBottomContainer:"_tableBottomContainer_go3yk_84",rowsPerPageContainer:"_rowsPerPageContainer_go3yk_88",rowsPerPageText:"_rowsPerPageText_go3yk_98"},So=e.forwardRef(function(a,r){const{columns:o,data:i,color:l="light",title:c="",description:s="",rowsPerPage:f=[10,20,30,40,50],showSearchBar:u,searchBarPlaceholder:g,showSelect:h,showFilterButton:m,showContainer:C,showRowsPerPage:_,showPageNumber:y,showPageNavigation:v,showTopBar:P=!0,showBottomBar:x=!0,emptyMessage:k="There is no data",children:O,className:I,columnClassName:Ce,rowClassName:ue,cellClassName:Ve}=a,[te,fe]=e.useState(""),[qe,Ue]=e.useState([]);if(!i.every(b=>Object.keys(b.columns).length===o.length&&Object.values(o).every(w=>Object.keys(b.columns).includes(w.id.toString()))))throw new Error("Columns in rows do not match ones declared in columns variable.");const De=e.useMemo(()=>o.filter(b=>b.filter).map(b=>({[b.id]:[]})).reduce((b,w)=>Object.assign(b,w),{}),[o]),[W,D]=e.useState(De),[A,j]=e.useState(f[0]??10),B=e.useMemo(()=>f.map(b=>({value:b.toString(),itemContent:b.toString()})),[f]),Oe=i.some(b=>b.onClick),ve=e.useCallback(b=>{var $,N;return((($=b.searchValue)==null?void 0:$.toString())||((N=b.value)==null?void 0:N.toString())||"").toLowerCase().includes(te.toLowerCase())},[te]),me=e.useCallback((b,w)=>{var H,oe,pe,re;const $=((H=b.sortValue)==null?void 0:H.toString())||((oe=b.value)==null?void 0:oe.toString())||"",N=((pe=w.sortValue)==null?void 0:pe.toString())||((re=w.value)==null?void 0:re.toString())||"";return $.toLowerCase().localeCompare(N.toLowerCase(),void 0,{numeric:!0})},[]),ne=e.useCallback((b,w)=>{var N,H,oe;const $=((N=b.filterValue)==null?void 0:N.toString())||((H=b.value)==null?void 0:H.toString())||"";return(oe=W[w.id])==null?void 0:oe.some(pe=>$.toString().toLowerCase()===pe.toString().toLowerCase())},[W]),U=e.useMemo(()=>o.map(b=>({...b,sort:b.sort?{sortKey:b.id.toString().toUpperCase()}:!1})),[o]),Y=o.some(b=>{var w;return b.filter&&b.id in W&&((w=W[b.id])==null?void 0:w.length)!==0}),Ne=e.useMemo(()=>i.filter(b=>!te||o.some(w=>w.search&&ve(b.columns[w.id]))).filter(b=>!Y||o.every(w=>{var $;return!w.filter||(($=W[w.id])==null?void 0:$.length)===0||ne(b.columns[w.id],w)})).map(b=>{const w={...b.columns,...b},{columns:$,...N}=w;return N}),[ne,W,o,i,Y,te,ve]),[G,Po]=e.useState(Math.ceil(Ne.length/A)),Ke=e.useCallback(b=>b.filterValues?b.filterValues:[...new Set(i.map($=>{var N,H;return((N=$.columns[b.id].filterValue)==null?void 0:N.toString())||((H=$.columns[b.id].value)==null?void 0:H.toString())||""}))].sort().map($=>({value:$,label:$})),[i]),ko=e.useMemo(()=>(h?"auto ":"")+U.reduce((b,w)=>b+`${w.width||"auto"} `,""),[U,h]),$o=e.useCallback(b=>{fe(b.target.value)},[]),Ie={nodes:Ne},To=le.useRowSelect(Ie,{onChange:(b,w)=>{Ue(w.ids)}},{rowSelect:le.SelectTypes.MultiSelect,buttonSelect:le.SelectTypes.MultiSelect,clickType:le.SelectClickTypes.ButtonClick,isCarryForward:!1}),E=jt.usePagination(Ie,{state:{page:0,size:f[0]}},{isServer:!1}),Do=Qe.useSort(Ie,{onChange:()=>null},{sortIcon:{margin:"10px",size:"15px",iconDefault:t.jsx(T.CaretSortIcon,{width:"20px"}),iconUp:t.jsx(T.ArrowUpIcon,{}),iconDown:t.jsx(T.ArrowDownIcon,{})},sortFns:Object.assign({},...U.map(b=>({[b.id.toString().toUpperCase()]:w=>w.sort(($,N)=>me($[b.id],N[b.id]))})))}),Oo=e.useMemo(()=>({options:o.filter(b=>b.filter).map(b=>({label:b.label,value:b.id.toString(),page:{content:t.jsx(Dt,{label:"Select all",onCheckedChange:w=>{const $=JSON.parse(JSON.stringify(W));w===!0?$[b.id]=Ke(b).map(N=>N.value):$[b.id]=[],D($)},children:Ke(b).map((w,$)=>{var N,H;return t.jsx(Te,{label:w.label,checked:(H=W[b.id])==null?void 0:H.includes(((N=w.value)==null?void 0:N.toString())||""),onCheckedChange:oe=>{D(pe=>{var It;const re={...pe},Nt=re[b.id]||[];return oe?re[b.id]=[...Nt,((It=w.value)==null?void 0:It.toString())||""]:re[b.id]=Nt.filter(Eo=>Eo!==(w.value??"").toString()),re})}},`checkbox-filter-${b.id}-${$}`)})},`select-all-checkbox-${b.id}`)}}))}),[W,o,Ke]),No=U.map(b=>{const w=b.sort?Qe.HeaderCellSort:K.HeaderCell;return t.jsx(w,{className:S(z.tableHeaderCell,Ce,b.className),sortKey:b.sort?b.id.toString().toUpperCase():"",children:b.label},b.id)}),Ot=ye.isMobile?V:Z,Io=e.useMemo(()=>({custom:!0}),[]),Mo=Ft.useTheme({Table:`
6
+ --data-table-library_grid-template-columns: ${ko};
7
7
  `,Row:`
8
8
  &:hover {
9
9
  cursor: ${Oe?"pointer":"inherit"};
@@ -16,4 +16,4 @@
16
16
  }
17
17
  `,BaseRow:`
18
18
  background-color: inherit;
19
- `});return e.useEffect(()=>{if(v){const b=Math.ceil(Ne.length/E);xo(b),I.state.page<0&&I.fns.onSetPage(0),I.state.page>b-1&&I.fns.onSetPage(b-1)}},[f,Ne.length,E,I,v]),t.jsxs("div",{className:x({[A.tableContainer]:C}),children:[(!!d||!!s)&&t.jsxs("div",{className:A.headerContainer,children:[!!d&&t.jsx(Pe,{weight:"bold",size:"7",children:d}),!!s&&t.jsx(Pe,{as:"div",children:s})]}),P&&t.jsxs(c.Flex,{justify:"between",className:A.tableTopContainer,children:[t.jsxs(c.Flex,{gap:"2",children:[u&&t.jsx("div",{className:A.searchContainer,children:t.jsx(ut,{value:te,onChange:ko,leftSlot:t.jsx(T.MagnifyingGlassIcon,{}),placeholder:g||"Filter tasks..."})}),m&&t.jsx(gt,{color:i,page:Do,trigger:t.jsx(H,{variant:"surface","aria-label":"Filter columns",children:t.jsx(T.MixerHorizontalIcon,{})}),children:b=>""}),m&&Y&&t.jsxs(Z,{variant:"surface",color:"crimson",onClick:()=>{D(De),I.fns.onSetPage(0)},children:[t.jsx(T.Cross2Icon,{}),"Clear filters"]})]}),h&&qe.length!==0&&t.jsxs(c.Flex,{gap:"2",children:[t.jsxs(Ot,{variant:"soft","aria-label":"Edit rows",children:[t.jsx(T.Pencil1Icon,{}),!_e.isMobile&&"Edit"]}),t.jsxs(Ot,{color:"red","aria-label":"Delete rows",children:[t.jsx(T.TrashIcon,{}),!_e.isMobile&&"Delete"]})]})]}),M,t.jsx(G.Table,{className:x(A.table,J),data:Ie,theme:Io,sort:To,pagination:v&&I,select:$o,layout:No,ref:r,children:b=>t.jsxs(t.Fragment,{children:[t.jsx(G.Header,{children:t.jsxs(G.HeaderRow,{children:[h&&t.jsx(ie.HeaderCellSelect,{className:A.tableHeaderCell}),...Oo]})}),t.jsxs(G.Body,{children:[b.length===0&&t.jsx(c.TableRow,{className:A.noDataTextContainer,children:t.jsx(G.Cell,{children:k})}),b.map(y=>t.jsxs(G.Row,{item:y,className:x(A.tableRow,ue,y.className),onClick:y.onClick,children:[h&&t.jsx(ie.CellSelect,{item:y},y.id),o.map(($,O)=>t.jsx(G.Cell,{className:x(A.tableCell,Ve,y[$.id].className),children:t.jsx(Pe,{children:y[$.id].label})},O))]},y.id))]})]})}),S&&t.jsxs(c.Flex,{className:A.tableBottomContainer,wrap:"wrap",direction:_e.isMobile?"column":"row",children:[_&&t.jsxs(c.Flex,{className:A.rowsPerPageContainer,children:[t.jsx("div",{className:A.rowsPerPageText,children:"Rows per page:"}),t.jsx(ct,{items:z,defaultValue:z[0].value.toString(),onValueChange:b=>{I.fns.onSetSize(Number(b)),F(Number(b))},placeholder:z[0].itemContent,"aria-label":"Select number of rows per page"})]}),w&&t.jsx(c.Flex,{justify:"center",children:U>0&&`Page ${I.state.page+1} of ${U}`}),v&&t.jsxs(c.Flex,{className:A.rowsPerPageContainer,gap:"2",justify:"end",children:[t.jsx(H,{variant:"surface",onClick:()=>I.fns.onSetPage(0),disabled:I.state.page===0||U===0,"aria-label":"Go to first page",children:t.jsx(T.DoubleArrowLeftIcon,{})}),t.jsx(H,{variant:"surface",disabled:I.state.page===0||U===0,onClick:()=>I.fns.onSetPage(I.state.page-1),"aria-label":"Previous page",children:t.jsx(T.ChevronLeftIcon,{})}),t.jsx(H,{variant:"surface",disabled:I.state.page+1===U||U===0,onClick:()=>I.fns.onSetPage(I.state.page+1),"aria-label":"Next page",children:t.jsx(T.ChevronRightIcon,{})}),t.jsx(H,{variant:"surface",disabled:I.state.page+1===U||U===0,onClick:()=>I.fns.onSetPage(U-1),"aria-label":"Go to last page",children:t.jsx(T.DoubleArrowRightIcon,{})})]})]})]})}),So=e.memo(wo);Object.defineProperty(p,"AccessibleIcon",{enumerable:!0,get:()=>c.AccessibleIcon}),Object.defineProperty(p,"AspectRatio",{enumerable:!0,get:()=>c.AspectRatio}),Object.defineProperty(p,"Avatar",{enumerable:!0,get:()=>c.Avatar}),Object.defineProperty(p,"Blockquote",{enumerable:!0,get:()=>c.Blockquote}),Object.defineProperty(p,"Box",{enumerable:!0,get:()=>c.Box}),Object.defineProperty(p,"Callout",{enumerable:!0,get:()=>c.Callout}),Object.defineProperty(p,"Card",{enumerable:!0,get:()=>c.Card}),Object.defineProperty(p,"Code",{enumerable:!0,get:()=>c.Code}),Object.defineProperty(p,"Container",{enumerable:!0,get:()=>c.Container}),Object.defineProperty(p,"ContextMenu",{enumerable:!0,get:()=>c.ContextMenu}),Object.defineProperty(p,"Em",{enumerable:!0,get:()=>c.Em}),Object.defineProperty(p,"Grid",{enumerable:!0,get:()=>c.Grid}),Object.defineProperty(p,"Heading",{enumerable:!0,get:()=>c.Heading}),Object.defineProperty(p,"HoverCard",{enumerable:!0,get:()=>c.HoverCard}),Object.defineProperty(p,"Inset",{enumerable:!0,get:()=>c.Inset}),Object.defineProperty(p,"Kbd",{enumerable:!0,get:()=>c.Kbd}),Object.defineProperty(p,"Link",{enumerable:!0,get:()=>c.Link}),Object.defineProperty(p,"Portal",{enumerable:!0,get:()=>c.Portal}),Object.defineProperty(p,"Quote",{enumerable:!0,get:()=>c.Quote}),Object.defineProperty(p,"RadioGroup",{enumerable:!0,get:()=>c.RadioGroup}),Object.defineProperty(p,"ScrollArea",{enumerable:!0,get:()=>c.ScrollArea}),Object.defineProperty(p,"Section",{enumerable:!0,get:()=>c.Section}),Object.defineProperty(p,"Slider",{enumerable:!0,get:()=>c.Slider}),Object.defineProperty(p,"Slot",{enumerable:!0,get:()=>c.Slot}),Object.defineProperty(p,"Strong",{enumerable:!0,get:()=>c.Strong}),Object.defineProperty(p,"Tabs",{enumerable:!0,get:()=>c.Tabs}),Object.defineProperty(p,"TextField",{enumerable:!0,get:()=>c.TextField}),Object.defineProperty(p,"Theme",{enumerable:!0,get:()=>c.Theme}),Object.defineProperty(p,"VisuallyHidden",{enumerable:!0,get:()=>c.VisuallyHidden}),Object.defineProperty(p,"updateThemeAppearanceClass",{enumerable:!0,get:()=>c.updateThemeAppearanceClass}),Object.defineProperty(p,"useThemeContext",{enumerable:!0,get:()=>c.useThemeContext}),p.AlertDialog=rt,p.AlertDialogContent=Fe,p.AlertDialogProvider=fn,p.Badge=Ut,p.Breadcrumb=Xt,p.Button=Z,p.ButtonGroup=Be,p.ButtonList=ln,p.Checkbox=$e,p.DefaultTheme=Zn,p.Dialog=cn,p.DropdownMenu=Cn,p.DropdownSelect=mn,p.Flex=j,p.HoverUtility=lt,p.IconButton=H,p.IconColorUtility=Nn,p.Input=ut,p.LeftAndRightPanels=En,p.MultiPagePopover=gt,p.MultiSelect=yn,p.Popover=ft,p.Root=Ct,p.Select=ct,p.SelectAllCheckbox=Dt,p.Separator=it,p.Sidebar=$n,p.SlideOut=Dn,p.Switch=xn,p.Table=So,p.Text=Pe,p.TextArea=Bn,p.Toast=vt,p.ToastContext=Le,p.ToastProvider=Xn,p.ToggleGroup=jn,p.Toolbar=Vn,p.Tooltip=Jn,p.divButtonProps=Qt,p.useAlertDialog=at,p.useDiscardAlertDialog=pn,p.useSeverityColor=N,p.useToast=Un,p.useViewportSize=Ht,Object.keys(ae).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(p,n)&&Object.defineProperty(p,n,{enumerable:!0,get:()=>ae[n]})}),Object.keys(T).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(p,n)&&Object.defineProperty(p,n,{enumerable:!0,get:()=>T[n]})}),Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
19
+ `});return e.useEffect(()=>{if(v){const b=Math.ceil(Ne.length/A);Po(b),E.state.page<0&&E.fns.onSetPage(0),E.state.page>b-1&&E.fns.onSetPage(b-1)}},[f,Ne.length,A,E,v]),t.jsxs("div",{className:S({[z.tableContainer]:C}),children:[(!!c||!!s)&&t.jsxs("div",{className:z.headerContainer,children:[!!c&&t.jsx(ke,{weight:"bold",size:"7",children:c}),!!s&&t.jsx(ke,{as:"div",children:s})]}),P&&t.jsxs(d.Flex,{justify:"between",className:z.tableTopContainer,children:[t.jsxs(d.Flex,{gap:"2",children:[u&&t.jsx("div",{className:z.searchContainer,children:t.jsx(ut,{value:te,onChange:$o,leftSlot:t.jsx(T.MagnifyingGlassIcon,{}),placeholder:g||"Filter tasks..."})}),m&&t.jsx(gt,{color:l,page:Oo,trigger:t.jsx(V,{variant:"surface","aria-label":"Filter columns",children:t.jsx(T.MixerHorizontalIcon,{})}),children:b=>""}),m&&Y&&t.jsxs(Z,{variant:"surface",color:"crimson",onClick:()=>{D(De),E.fns.onSetPage(0)},children:[t.jsx(T.Cross2Icon,{}),"Clear filters"]})]}),h&&qe.length!==0&&t.jsxs(d.Flex,{gap:"2",children:[t.jsxs(Ot,{variant:"soft","aria-label":"Edit rows",children:[t.jsx(T.Pencil1Icon,{}),!ye.isMobile&&"Edit"]}),t.jsxs(Ot,{color:"red","aria-label":"Delete rows",children:[t.jsx(T.TrashIcon,{}),!ye.isMobile&&"Delete"]})]})]}),O,t.jsx(K.Table,{className:S(z.table,I),data:Ie,theme:Mo,sort:Do,pagination:v&&E,select:To,layout:Io,ref:r,children:b=>t.jsxs(t.Fragment,{children:[t.jsx(K.Header,{children:t.jsxs(K.HeaderRow,{children:[h&&t.jsx(le.HeaderCellSelect,{className:z.tableHeaderCell}),...No]})}),t.jsxs(K.Body,{children:[b.length===0&&t.jsx(d.TableRow,{className:z.noDataTextContainer,children:t.jsx(K.Cell,{children:k})}),b.map(w=>t.jsxs(K.Row,{item:w,className:S(z.tableRow,ue,w.className),onClick:w.onClick,children:[h&&t.jsx(le.CellSelect,{item:w},w.id),o.map(($,N)=>t.jsx(K.Cell,{className:S(z.tableCell,Ve,w[$.id].className),children:t.jsx(ke,{children:w[$.id].label})},N))]},w.id))]})]})}),x&&t.jsxs(d.Flex,{className:z.tableBottomContainer,wrap:"wrap",direction:ye.isMobile?"column":"row",children:[_&&t.jsxs(d.Flex,{className:z.rowsPerPageContainer,children:[t.jsx("div",{className:z.rowsPerPageText,children:"Rows per page:"}),t.jsx(ct,{items:B,defaultValue:B[0].value.toString(),onValueChange:b=>{E.fns.onSetSize(Number(b)),j(Number(b))},placeholder:B[0].itemContent,"aria-label":"Select number of rows per page"})]}),y&&t.jsx(d.Flex,{justify:"center",children:G>0&&`Page ${E.state.page+1} of ${G}`}),v&&t.jsxs(d.Flex,{className:z.rowsPerPageContainer,gap:"2",justify:"end",children:[t.jsx(V,{variant:"surface",onClick:()=>E.fns.onSetPage(0),disabled:E.state.page===0||G===0,"aria-label":"Go to first page",children:t.jsx(T.DoubleArrowLeftIcon,{})}),t.jsx(V,{variant:"surface",disabled:E.state.page===0||G===0,onClick:()=>E.fns.onSetPage(E.state.page-1),"aria-label":"Previous page",children:t.jsx(T.ChevronLeftIcon,{})}),t.jsx(V,{variant:"surface",disabled:E.state.page+1===G||G===0,onClick:()=>E.fns.onSetPage(E.state.page+1),"aria-label":"Next page",children:t.jsx(T.ChevronRightIcon,{})}),t.jsx(V,{variant:"surface",disabled:E.state.page+1===G||G===0,onClick:()=>E.fns.onSetPage(G-1),"aria-label":"Go to last page",children:t.jsx(T.DoubleArrowRightIcon,{})})]})]})]})}),xo=e.memo(So);Object.defineProperty(p,"AccessibleIcon",{enumerable:!0,get:()=>d.AccessibleIcon}),Object.defineProperty(p,"AspectRatio",{enumerable:!0,get:()=>d.AspectRatio}),Object.defineProperty(p,"Avatar",{enumerable:!0,get:()=>d.Avatar}),Object.defineProperty(p,"Blockquote",{enumerable:!0,get:()=>d.Blockquote}),Object.defineProperty(p,"Box",{enumerable:!0,get:()=>d.Box}),Object.defineProperty(p,"Callout",{enumerable:!0,get:()=>d.Callout}),Object.defineProperty(p,"Card",{enumerable:!0,get:()=>d.Card}),Object.defineProperty(p,"Code",{enumerable:!0,get:()=>d.Code}),Object.defineProperty(p,"Container",{enumerable:!0,get:()=>d.Container}),Object.defineProperty(p,"ContextMenu",{enumerable:!0,get:()=>d.ContextMenu}),Object.defineProperty(p,"Em",{enumerable:!0,get:()=>d.Em}),Object.defineProperty(p,"Grid",{enumerable:!0,get:()=>d.Grid}),Object.defineProperty(p,"Heading",{enumerable:!0,get:()=>d.Heading}),Object.defineProperty(p,"HoverCard",{enumerable:!0,get:()=>d.HoverCard}),Object.defineProperty(p,"Inset",{enumerable:!0,get:()=>d.Inset}),Object.defineProperty(p,"Kbd",{enumerable:!0,get:()=>d.Kbd}),Object.defineProperty(p,"Link",{enumerable:!0,get:()=>d.Link}),Object.defineProperty(p,"Portal",{enumerable:!0,get:()=>d.Portal}),Object.defineProperty(p,"Quote",{enumerable:!0,get:()=>d.Quote}),Object.defineProperty(p,"RadioGroup",{enumerable:!0,get:()=>d.RadioGroup}),Object.defineProperty(p,"ScrollArea",{enumerable:!0,get:()=>d.ScrollArea}),Object.defineProperty(p,"Section",{enumerable:!0,get:()=>d.Section}),Object.defineProperty(p,"Slider",{enumerable:!0,get:()=>d.Slider}),Object.defineProperty(p,"Slot",{enumerable:!0,get:()=>d.Slot}),Object.defineProperty(p,"Strong",{enumerable:!0,get:()=>d.Strong}),Object.defineProperty(p,"Tabs",{enumerable:!0,get:()=>d.Tabs}),Object.defineProperty(p,"TextField",{enumerable:!0,get:()=>d.TextField}),Object.defineProperty(p,"Theme",{enumerable:!0,get:()=>d.Theme}),Object.defineProperty(p,"VisuallyHidden",{enumerable:!0,get:()=>d.VisuallyHidden}),Object.defineProperty(p,"updateThemeAppearanceClass",{enumerable:!0,get:()=>d.updateThemeAppearanceClass}),Object.defineProperty(p,"useThemeContext",{enumerable:!0,get:()=>d.useThemeContext}),p.AlertDialog=rt,p.AlertDialogContent=Fe,p.AlertDialogProvider=pn,p.Badge=Gt,p.Breadcrumb=Qt,p.Button=Z,p.ButtonGroup=Be,p.ButtonList=sn,p.Checkbox=Te,p.DefaultTheme=Rn,p.Dialog=dn,p.DropdownMenu=vn,p.DropdownSelect=_n,p.Flex=L,p.HoverUtility=it,p.IconButton=V,p.IconColorUtility=In,p.Input=ut,p.LeftAndRightPanels=An,p.MultiPagePopover=gt,p.MultiSelect=wn,p.Popover=ft,p.Root=Ct,p.Select=ct,p.SelectAllCheckbox=Dt,p.Separator=lt,p.Sidebar=Tn,p.SlideOut=On,p.Switch=Pn,p.Table=xo,p.Text=ke,p.TextArea=Fn,p.Toast=vt,p.ToastContext=Le,p.ToastProvider=Qn,p.ToggleGroup=Ln,p.Toolbar=qn,p.Tooltip=Yn,p.divButtonProps=Jt,p.useAlertDialog=at,p.useDiscardAlertDialog=hn,p.useSeverityColor=M,p.useToast=Gn,p.useViewportSize=Vt,Object.keys(ae).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(p,n)&&Object.defineProperty(p,n,{enumerable:!0,get:()=>ae[n]})}),Object.keys(T).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(p,n)&&Object.defineProperty(p,n,{enumerable:!0,get:()=>T[n]})}),Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/blocks",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-add-draggability.0",
4
4
  "description": "A collection of React components for building Overmap's UI.",
5
5
  "private": false,
6
6
  "author": "Wôrdn Inc.",
@@ -30,11 +30,12 @@
30
30
  "@radix-ui/react-toggle-group": "^1.0.4",
31
31
  "@radix-ui/react-toolbar": "^1.0.4",
32
32
  "@radix-ui/themes": "^2.0.0",
33
+ "@table-library/react-table-library": "^4.1.7",
33
34
  "re-resizable": "^6.9.11",
35
+ "react-device-detect": "^2.2.3",
36
+ "react-draggable": "^4.4.6",
34
37
  "react-responsive": "^9.0.2",
35
- "react-transition-group": "^4.4.5",
36
- "@table-library/react-table-library": "^4.1.7",
37
- "react-device-detect": "^2.2.3"
38
+ "react-transition-group": "^4.4.5"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "react": "^18.2.0",