@overmap-ai/blocks 1.0.1 → 1.0.2
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.
- package/dist/Buttons/typings.d.ts +2 -1
- package/dist/Spinner/Spinner.d.ts +2 -0
- package/dist/Table/index.d.ts +0 -1
- package/dist/Table/typings.d.ts +1 -0
- package/dist/blocks.js +1455 -1698
- package/dist/blocks.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Table/constants.d.ts +0 -151
package/dist/blocks.umd.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(
|
|
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:{}};/*!
|
|
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 o={}.hasOwnProperty;function r(){for(var a=[],i=0;i<arguments.length;i++){var l=arguments[i];if(l){var d=typeof l;if(d==="string"||d==="number")a.push(l);else if(Array.isArray(l)){if(l.length){var s=r.apply(null,l);s&&a.push(s)}}else if(d==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){a.push(l.toString());continue}for(var f in l)o.call(l,f)&&l[f]&&a.push(f)}}}return a.join(" ")}n.exports?(r.default=r,n.exports=r):window.classNames=r})()})(Ye);var Lt=Ye.exports;const $=jt(Lt);function J(n,o){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,a])=>[r,o[a]]))}else return o[n]},[o,n])}const Wt={success:"green",danger:"red",warning:"amber",info:"gray"},O=n=>{const o=c.useThemeContext();if(n)return n==="primary"?o.accentColor:Wt[n]},Ht=()=>{const[n,o]=e.useState("initial"),[r,a]=e.useState("initial"),i=be.useMediaQuery({minWidth:"520px"}),l=be.useMediaQuery({minWidth:"768px"}),d=be.useMediaQuery({minWidth:"1024px"}),s=be.useMediaQuery({minWidth:"1280px"}),f=be.useMediaQuery({minWidth:"1640px"});return e.useLayoutEffect(()=>{a(u=>(o(u),f?"xl":s?"lg":d?"md":l?"sm":i?"xs":"initial"))},[s,d,l,f,i]),{size:r,prevSize:n,xs:i,sm:l,md:d,lg:s,xl:f}},Ze=(n,o,r)=>{const[a,i]=e.useState([]),[l,d]=e.useState(!0),s=e.useCallback(g=>{const{repeat:p,key:v}=g;d(!0),!(p||a.includes(v))&&i(C=>[...C,v])},[a]),f=e.useCallback(g=>{const{key:p}=g;d(!1),a.includes(p)&&i(v=>{const C=[...v];return C.splice(v.indexOf(p),1),C})},[a]);e.useEffect(()=>(o||document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}),[o,s]),e.useEffect(()=>(o||document.addEventListener("keyup",f,!0),()=>{document.removeEventListener("keyup",f,!0)}),[o,f]);const u=e.useMemo(()=>!o&&l&&a.length===n.length&&a.every(g=>n.includes(g)),[o,l,a,n]);return e.useEffect(()=>{u&&r()},[u,r]),u},Ut=n=>{const o=[];for(const r of e.Children.toArray(n))e.isValidElement(r)&&o.push(r);return o},Vt=e.forwardRef(function({className:o,severity:r="primary",color:a,children:i,...l},d){const s=O(r);return t.jsx(c.Badge,{className:$("overmap-badge",o),ref:d,color:a||s,...l,children:i})}),qt=e.memo(Vt),ze={zeroMinWidth:"_zeroMinWidth_curjh_1",zeroMinHeight:"_zeroMinHeight_curjh_5",radius:"_radius_curjh_9"},F=e.memo(e.forwardRef(({className:n,radius:o=!1,children:r,zeroMinWidth:a=!1,zeroMinHeight:i=!1,...l},d)=>t.jsx(c.Flex,{className:$(n,{[ze.radius]:o,[ze.zeroMinWidth]:a,[ze.zeroMinHeight]:i}),ref:d,...l,children:r}))),Re=e.createContext({}),Gt=()=>e.useContext(Re),Kt=e.memo(e.forwardRef(({className:n,children:o,...r},a)=>{const{size:i,severity:l}=Gt(),d=O(l);return t.jsx(c.Box,{className:$("overmap-breadcrumb-item",n),height:"max-content",width:"max-content",children:t.jsx(c.Link,{ref:a,size:i,color:d,...r,children:t.jsx(F,{height:"100%",width:"100%",align:"center",gap:"1",children:o})})})})),Jt={Group:e.memo(e.forwardRef(({className:n,children:o,separator:r,severity:a="info",size:i,gap:l="2",...d},s)=>{const f=O(a),u=Ut(o);return t.jsx(Re.Provider,{value:{size:i,severity:a},children:t.jsx(F,{className:$("overmap-breadcrumb-group",n),ref:s,gap:l,role:"breadcrumb",height:"max-content",width:"max-content",...d,children:u.map((g,p)=>t.jsxs(t.Fragment,{children:[e.cloneElement(g,{key:p}),u.length-1!==p&&t.jsx(c.Text,{color:f,children:t.jsx(F,{height:"100%",width:"100%",align:"center",children:r})})]}))})})})),Item:Kt},me={fluid:"_fluid_r73gr_1",hoverSpin90Clockwise:"_hoverSpin90Clockwise_r73gr_15",hoverSpin180Clockwise:"_hoverSpin180Clockwise_r73gr_25",hoverSpin360Clockwise:"_hoverSpin360Clockwise_r73gr_35"},et={spin90Clockwise:me.hoverSpin90Clockwise,spin180Clockwise:me.hoverSpin180Clockwise,spin360Clockwise:me.hoverSpin360Clockwise},Qt={role:"button",tabIndex:0,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&n.currentTarget.click()}},ie={small:"1",medium:"2",large:"3"},tt=e.createContext({}),Be=()=>e.useContext(tt),Xt=e.forwardRef(function(o,r){const a=Be(),{className:i,type:l="button",fluid:d=a.fluid??!1,size:s=a.size??"medium",severity:f=a.severity??"primary",hoverEffects:u=a.hoverEffects??[],variant:g=a.variant,shortcut:p={keys:[],action:()=>{},disabled:!1},...v}=o,C=O(f),_=u.map(S=>et[S]);return Ze(p.keys,p.disabled||p.keys.length===0,p.action),t.jsx(c.Button,{ref:r,type:l,className:$(i,_,{[me.fluid]:d}),color:C,size:J(s,ie),variant:g,...v})}),R=e.memo(Xt),Yt=e.forwardRef(function(o,r){const a=Be(),{className:i,children:l,type:d="button",fluid:s=a.fluid??!1,size:f=a.size??"medium",severity:u=a.severity??"primary",hoverEffects:g=a.hoverEffects??[],variant:p=a.variant,shortcut:v={keys:[],action:()=>{},disabled:!1},...C}=o,_=O(u),S=(g==null?void 0:g.map(m=>et[m]))||[];return Ze(v.keys,v.disabled||v.keys.length===0,v.action),t.jsx(c.IconButton,{className:$(i,S,{[me.fluid]:s}),ref:r,color:_,size:J(f,ie),variant:p,type:d,...C,children:l})}),H=e.memo(Yt),Zt={merged:"_merged_wdgxo_1"},Rt={row:{small:"4",medium:"4",large:"5"},column:{small:"2",medium:"3",large:"4"}},en=e.forwardRef(function({className:o,merged:r=!1,children:a,gap:i,direction:l="row",severity:d,size:s="medium",variant:f,hoverEffects:u,fluid:g,...p},v){const C=J(s,Rt[l]),_=f==="ghost"?C:"0";return t.jsx(c.Flex,{className:$("overmap-button-group",o,{[Zt.merged]:r}),ref:v,gap:r?i??_:i??"2",direction:l,"data-direction":l,...p,children:t.jsx(tt.Provider,{value:{size:s,severity:d,variant:f,hoverEffects:u,fluid:g},children:a})})}),Fe=e.memo(en),tn={separators:"_separators_1f7v1_1"},nn=e.memo(e.forwardRef((n,o)=>{const{children:r,border:a,before:i,after:l,size:d}=n,s=a?"surface":"ghost",f=J(d,ie),u=i&&l?t.jsx(c.Inset,{side:"x",pt:"current",pb:"current",children:r}):i?t.jsx(c.Inset,{side:"bottom",pt:"current",children:r}):l?t.jsx(c.Inset,{side:"top",pb:"current",children:r}):t.jsx(c.Inset,{children:r}),g=t.jsxs(c.Card,{ref:o,size:f,variant:s,children:[i,u,l]});return s==="ghost"?t.jsx(c.Box,{p:"3",children:g}):g})),on=e.memo(e.forwardRef((n,o)=>{const{children:r,variant:a="outline",size:i,className:l,...d}=n,s=a==="outline"||a==="surface",f=a==="outline"?"ghost":a==="surface"?"soft":a;return t.jsx(nn,{...d,border:s,size:i,children:t.jsx(Fe,{size:i,severity:"info",variant:f,className:$(l,tn.separators),merged:!0,gap:"0",direction:"column",ref:o,children:r})})})),rn=e.memo(e.forwardRef((n,o)=>{const{variant:r}=Be(),a=t.jsx(R,{ref:o,...n,radius:"large",variant:r});return r==="ghost"?t.jsx(c.Box,{asChild:!0,my:"1",mx:"2",children:a}):a})),an={Root:on,Item:rn},ln=e.memo(function(o){const{title:r,description:a,content:i,closeDialog:l}=o;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,{})})})]}),a&&t.jsx(c.Dialog.Description,{children:a})]}),i(l)]})}),sn=e.memo(e.forwardRef((n,o)=>{const{children:r,content:a,title:i,description:l,onOpen:d,onClose:s,defaultOpen:f,onCloseInterrupt:u,open:g,onOpenChange:p,...v}=n,[C,_]=e.useState(f??!1),S=g??C;if((u||d)&&p)throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");if(g!==void 0&&p===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 m=e.useCallback(w=>{if(p)return p(w);if(w&&d)d();else{if(!w&&u)return u(()=>{_(!1),s&&s()});!w&&s&&s()}_(w)},[p,d,s,u]),P=e.useCallback(w=>{if(w!=null&&w.force)return _(!1);m(!1)},[m]);return t.jsxs(c.Dialog.Root,{open:S,onOpenChange:m,children:[t.jsx(c.Dialog.Trigger,{children:r}),t.jsx(c.Dialog.Content,{ref:o,...v,children:t.jsx(ln,{closeDialog:P,content:a,title:i,description:l})})]})})),nt=n=>t.jsx(c.AlertDialog.Title,{mb:"0",...n}),cn=n=>{const{title:o,description:r,actionText:a="Confirm",cancelText:i="Cancel",onAction:l,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(nt,{children:o}),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(R,{variant:"soft",severity:"info",onClick:d,children:i})}),t.jsx(c.AlertDialog.Action,{children:t.jsx(R,{variant:"solid",severity:s,onClick:l,children:a})})]})]})},ot=e.memo(function(o){const{open:r,setOpen:a,children:i,...l}=o,d=e.useMemo(()=>({close:()=>a(!1),Title:nt,Description:c.AlertDialog.Description}),[a]);return t.jsxs(c.AlertDialog.Root,{open:r,onOpenChange:a,children:[t.jsx(c.AlertDialog.Content,{children:"content"in l?l.content(d):t.jsx(cn,{...l})}),i]})}),je=e.createContext(()=>{throw new Error("No AlertDialogProvider found")}),dn={content:()=>null},un=e.memo(function({children:o}){const[r,a]=e.useState(!1),[i,l]=e.useState(dn),d=e.useCallback(s=>{if(r)throw new Error("AlertDialog is already open");l(s),a(!0)},[r]);return t.jsx(ot,{open:r,setOpen:a,...i,children:t.jsx(je.Provider,{value:d,children:o})})}),rt=()=>e.useContext(je),fn=()=>{const n=rt();return e.useCallback(o=>n({title:"Discard changes?",description:"You have unsaved changes. Are you sure you want to discard them?",actionText:"Discard",severity:"danger",onAction:o.onDiscard,onCancel:o.onCancel}),[n])},Pe={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%"},pn=e.forwardRef(function({severity:o="info",weight:r="light",gap:a="1",text:i,orientation:l="horizontal",size:d,...s},f){const u=J(d,hn),g=O(o);return t.jsxs(c.Flex,{ref:f,width:l==="horizontal"?u:"max-content",height:l==="vertical"?u:"max-content",direction:l==="vertical"?"column":"row",align:"center",gap:a,children:[t.jsx(c.Separator,{size:d,orientation:l,color:g,...s}),i&&t.jsxs(t.Fragment,{children:[t.jsx(c.Text,{as:"span",size:"1",weight:r,color:g,children:i}),t.jsx(c.Separator,{size:d,orientation:l,color:g,...s})]})]})}),at=e.memo(pn),gn=e.memo(function({content:o,onSelect:r,closeOnSelect:a,...i}){const l=e.useCallback(d=>{r&&r(d),a||d.preventDefault()},[a,r]);return t.jsx(c.DropdownMenu.Item,{className:Pe.DropdownMenuItem,textValue:"",onSelect:l,...i,children:t.jsx(c.Flex,{align:"center",gap:"1",children:o})})}),bn=e.memo(e.forwardRef(({className:n,trigger:o,items:r,label:a,disabled:i,severity:l="info",modal:d=!1,closeOnSelect:s=!0,...f})=>{const u=O(l);return t.jsxs(c.DropdownMenu.Root,{modal:d,children:[t.jsx(c.DropdownMenu.Trigger,{disabled:i,children:o}),t.jsx(c.DropdownMenu.Content,{className:$("overmap-dropdown",n),color:u,variant:"soft",...f,children:t.jsxs(c.Flex,{className:Pe.DropdownMenu,direction:"column",height:"max-content",width:"max-content",children:[!!a&&t.jsx(c.DropdownMenu.Label,{children:a}),r.map(({closeOnSelect:g,separator:p,...v},C)=>t.jsxs(t.Fragment,{children:[t.jsx(c.Box,{className:Pe.DropdownMenuItemWrapper,children:t.jsx(gn,{closeOnSelect:g??s,...v},C)}),!!p&&t.jsx(c.Box,{className:Pe.DropdownMenuSeparatorWrapper,children:t.jsx(at,{size:"4"})})]}))]})})]})})),se={DropdownSelect:"_DropdownSelect_k517z_1",BorderBottom:"_BorderBottom_k517z_8",DropdownSelectInputWrapper:"_DropdownSelectInputWrapper_k517z_12",DropdownSelectInput:"_DropdownSelectInput_k517z_12",DropdownSelectItem:"_DropdownSelectItem_k517z_27"},Cn=150,mn=e.memo(e.forwardRef(({trigger:n,items:o,disabled:r=!1,value:a,onValueChange:i,placeholder:l,filterValue:d,onFilterValueChange:s,closeOnSelect:f=!0,icons:u,severity:g="info"},p)=>{const v=O(g),C=e.useCallback(m=>P=>{i(a!==m?m:void 0),f||P.preventDefault()},[a,f,i]),_=e.useCallback(m=>{s&&s(m.target.value)},[s]),S=e.useCallback(m=>{!m&&s&&setTimeout(()=>{s("")},Cn)},[s]);return t.jsxs(c.DropdownMenu.Root,{onOpenChange:S,children:[t.jsx(c.DropdownMenu.Trigger,{disabled:r,children:n}),t.jsx(c.DropdownMenu.Content,{ref:p,variant:"soft",color:v,className:se.Test,children:t.jsxs(F,{className:se.DropdownSelect,direction:"column",children:[d!==void 0&&!!s&&t.jsx(c.Box,{px:"1",className:$({[se.BorderBottom]:o.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:l,onChange:_}),!!u&&!!u.rightInputIcon&&t.jsx(c.TextField.Slot,{children:u.rightInputIcon})]})}),t.jsx(c.Box,{p:o.length!==0?"1":"0",children:t.jsx(F,{direction:"column",children:o.map(({content:m,value:P},w)=>t.jsx(c.DropdownMenu.Item,{className:se.DropdownSelectItem,onSelect:C(P),textValue:"",asChild:!0,children:t.jsxs(F,{align:"center",height:"max-content",width:"100%",gap:"5",children:[t.jsx(c.Box,{grow:"1",children:m}),t.jsx(F,{justify:"center",align:"center",height:"max-content",width:"4",children:a===P&&(u&&(u!=null&&u.selectedItemIcon)?u.selectedItemIcon:t.jsx(T.CheckIcon,{}))})]})},w))})})]})})]})})),lt=e.memo(function({children:o}){const[r,a]=e.useState(!1),i=e.useCallback(()=>{a(!0)},[]),l=e.useCallback(()=>{a(!1)},[]);return o({isHovered:r,onPointerEnter:i,onPointerLeave:l})}),it={fluid:"_fluid_7n1wr_1"},vn=e.forwardRef(function({className:o,fluid:r,size:a="medium",variant:i="surface",severity:l="primary",itemSeverity:d="info",placeholder:s="Select",side:f,items:u=[],value:g,id:p,...v},C){const _=J(a,ie),S=O(l),m=O(d);return e.createElement(c.Select.Root,{size:_,...v,key:g===void 0?1:0,value:g},t.jsx(c.Select.Trigger,{className:$(o,{[it.fluid]:r}),id:p,ref:C,variant:i,placeholder:s,color:S}),t.jsx(c.Select.Content,{side:f,className:it.contentDefault,position:"popper",variant:i!=="surface"?"soft":"solid",color:m,children:u.map(({itemContent:P,value:w,...x})=>t.jsx(c.Select.Item,{className:"overmap-select-item",value:w,...x,children:P},w))}))}),st=e.memo(vn),ct=e.memo(e.forwardRef((n,o)=>{const{checked:r,label:a,value:i,size:l="2"}=n;return t.jsx(c.Box,{asChild:!0,px:l,children:t.jsx(c.Select.Item,{value:i,ref:o,children:t.jsxs(c.Flex,{gap:l,align:"center",children:[t.jsx(c.Checkbox,{checked:r}),a]})})})})),xe="__select_all__",_n=e.memo(e.forwardRef((n,o)=>{const[r,a]=e.useState(!1),{placeholder:i,value:l,onValueChange:d,options:s,disabled:f,name:u,...g}=n,p=J(n.size,ie),v=O(n.severity),C=e.useMemo(()=>new Map(s.map(w=>[w.value,w.label])),[s]),_=l.length>4?`${l.length} options selected`:t.jsx("span",{children:l.flatMap(w=>[C.get(w),", "]).slice(0,-1)}),S=e.useCallback(()=>a(!1),[]),m=e.useCallback(w=>{w&&a(!0)},[]),P=e.useCallback(w=>{let x;w===xe?x=l.length===s.length?[]:s.map(Y=>Y.value):x=l.includes(w)?l.filter(N=>N!==w):[...l,w],d(x)},[d,s,l]);return e.useEffect(()=>{if(s.some(({value:w})=>w===xe))throw new Error(`Cannot have an option with the value "${xe}"`)},[s]),t.jsxs(c.Select.Root,{open:r,value:"",onOpenChange:m,onValueChange:P,disabled:f,size:p,name:u,autoComplete:"off",children:[t.jsx(c.Select.Trigger,{ref:o,color:v,placeholder:l.length>0?_:i,"data-placeholder":l.length>0?void 0:!0,...g}),t.jsxs(c.Select.Content,{color:"gray",variant:"soft",position:"popper",onEscapeKeyDown:S,onPointerDownOutside:S,children:[t.jsx(ct,{value:xe,label:"Select all",checked:l.length===s.length,size:p}),s.map(w=>t.jsx(ct,{...w,checked:l.includes(w.value),size:p},w.value))]})]})})),yn={default:"_default_u936h_1"},Sn=e.forwardRef(function({className:o,severity:r="primary",icon:a,defaultChecked:i=!1,onCheckedChange:l,...d},s){const f=e.useRef(null),[u,g]=e.useState(d.checked?d.checked:i),[p,v]=e.useState(),C=O(r);e.useLayoutEffect(()=>{var P;const m=s||f;"current"in m&&m.current&&v((P=m.current)==null?void 0:P.querySelector("span.rt-SwitchThumb"))},[s]);const _=e.useCallback(m=>{g(m),l&&l(m)},[l]),S=d.checked?d.checked:u;return t.jsxs(t.Fragment,{children:[t.jsx(c.Switch,{className:$("overmap-switch",o,yn.default),ref:s||f,color:C,radius:"full",defaultChecked:i,onCheckedChange:_,...d}),t.jsx(c.Portal,{container:p,asChild:!0,children:a&&"checked"in a?S?a.checked:a.unchecked:a})]})}),wn=e.memo(Sn),ce={sidebarContent:"_sidebarContent_1onyo_1",right:"_right_1onyo_7",resizeHandle:"_resizeHandle_1onyo_10",left:"_left_1onyo_13",overlay:"_overlay_1onyo_33"},$n={width:"auto",height:"100%"},Pn=e.forwardRef(function({side:o="left",modal:r=!0,children:a,open:i,containerSelector:l,overlay:d=!0,resizable:s=!0,minWidth:f="300px",maxWidth:u="500px",...g},p){const v=o==="right",C=o==="left",[_,S]=e.useState();return e.useEffect(()=>{const m=l??'[data-is-root-theme="true"]',P=document.querySelector(m);if(P===void 0)throw new Error(`Could not find a container element using the following selector ${m}`);S(P)},[l]),t.jsx($e.Root,{open:i,modal:r,children:t.jsxs($e.Portal,{container:_,children:[d&&t.jsx($e.Overlay,{className:$(ce.overlay)}),t.jsx($e.Content,{className:$("overmap-sidebar","rt-DialogContent",ce.sidebarContent,{[ce.left]:C,[ce.right]:v}),ref:p,asChild:!0,...g,children:t.jsx(c.Box,{width:"auto",children:t.jsx(Se.Resizable,{minWidth:f,maxWidth:u,defaultSize:$n,enable:{right:s&&C,left:s&&v},handleClasses:{left:ce.resizeHandle,right:ce.resizeHandle},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{}),left:t.jsx(T.DragHandleDots2Icon,{})},children:a})})})]})})}),xn=e.memo(Pn),U={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"},kn=200,Tn=e.memo(function({className:o,open:r,side:a="left",children:i,minWidth:l,maxWidth:d,resizable:s=!0,overlay:f=!1,modal:u=!1,resizeHandle:g,position:p="absolute",...v}){const C=e.useRef(null),[_,S]=e.useState(l),m=a==="left",P=a==="right",w=e.useCallback((x,N,Y,Oe)=>{S(Y.clientWidth),C.current&&(C.current.style.width=`${Y.clientWidth}px`)},[]);return t.jsx(Ee.CSSTransition,{in:r,classNames:{enter:U.enter,enterActive:U.enterActive,exitActive:U.exitActive,exitDone:U.exitDone},timeout:kn,nodeRef:C,unmountOnExit:!0,mountOnEnter:!0,children:t.jsxs(t.Fragment,{children:[f&&t.jsx("div",{className:$("overamp-slide-out-overlay",U.slideOutOverlay)}),t.jsx(Et.DismissableLayer,{disableOutsidePointerEvents:u,asChild:!0,...v,children:t.jsx(c.Flex,{className:$("overmap-slide-out",o,U.outerContent,{[U.left]:m,[U.right]:P}),style:{"--slide-out-width":`${_}px`},height:"100%",width:"auto",position:p,top:"0",bottom:"0",left:m?"0":void 0,right:P?"0":void 0,ref:C,children:t.jsx(Se.Resizable,{className:U.resizable,defaultSize:{width:_,height:"100%"},onResize:w,enable:{right:s&&m,left:s&&P},handleComponent:{left:g,right:g},minWidth:l,maxWidth:d,children:i})})})]})})}),ee={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"},Dn=e.forwardRef(function({className:o,leftSlot:r,rightSlot:a,size:i="medium",showInputLength:l,value:d,variant:s,severity:f="primary",...u},g){const p=J(i,ie),v=O(f),C=l||l===void 0&&u.maxLength!==void 0,_=d!==void 0?d.toString():void 0;return t.jsxs(c.TextField.Root,{className:$(ee.wrapper,o,{[ee.ghost]:s==="ghost",[ee.accommodateCharCount]:C}),size:p,variant:s!=="ghost"?s:void 0,color:v,children:[r&&t.jsx(c.TextField.Slot,{children:r}),t.jsx(c.TextField.Input,{className:$(ee.default,{[ee.noLeftIcon]:!r,[ee.noRightIcon]:!a}),ref:g,value:d,size:p,variant:s!=="ghost"?s:void 0,color:v,...u}),a&&t.jsx(c.TextField.Slot,{children:a}),C&&t.jsx(c.Text,{as:"p",className:ee.charCount,size:"1",color:"gray",children:u.maxLength!==void 0?`${_==null?void 0:_.length}/${u.maxLength}`:`${_==null?void 0:_.length}`})]})}),dt=e.memo(Dn),Mn=e.memo(function({color:o,severity:r,children:a}){const i=O(r??"primary"),l=e.useMemo(()=>({"data-accent-color":r&&i?i:o||"gray",style:{color:"var(--accent-a11)"}}),[o,r,i]);return e.cloneElement(a,{...l})}),On={wrapper:"_wrapper_tmtz0_1"},An=e.forwardRef(function({className:o,trigger:r,open:a,onOpenChange:i,defaultOpen:l=!1,modal:d=!1,children:s,...f},u){return t.jsxs(c.Popover.Root,{defaultOpen:l,modal:d,open:a,onOpenChange:i,children:[t.jsx(c.Popover.Trigger,{children:r}),t.jsx(c.Popover.Content,{ref:u,className:$("overmap-popover",o,On.wrapper),...f,children:s(c.Popover.Close)})]})}),ut=e.memo(An),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"},ft=200,Q=150,Nn=e.memo(function({children:o,showLeft:r,leftPanel:a,leftMinWidth:i=ft,showRight:l,rightPanel:d,rightMinWidth:s=ft,resizeable:f}){const u=e.useRef(null),g=e.useRef(null),[p,v]=e.useState(0),[C,_]=e.useState(),S=e.useRef(null),[m,P]=e.useState(0),[w,x]=e.useState(),N=e.useCallback((D,I,z)=>(L,ye,Ae,pe)=>{if(!u.current)return;const V=D+pe.width;z(u.current.clientWidth-V),I(()=>V)},[]),Y=e.useCallback((D,I,z,L)=>N(p,v,x)(D,I,z,L),[N,p]),Oe=e.useCallback((D,I,z,L)=>N(m,P,_)(D,I,z,L),[N,m]),fe=e.useCallback((D,I,z,L,ye,Ae,pe,V)=>{if(!u.current)return;let Z=D;if(Z===0&&(Z=I,z(Z)),Ae){const q=u.current.clientWidth-Z;V(q),ye>q&&(pe(q),L(u.current.clientWidth-q))}},[]),ne=e.useCallback(()=>fe(m,s,P,x,p,r,v,_),[fe,p,s,m,r]),qe=e.useCallback(()=>fe(p,i,v,_,m,l,P,x),[fe,i,p,m,l]),he=e.useCallback((D,I)=>{u.current&&D&&I(u.current.clientWidth)},[]),Ge=e.useCallback(()=>he(r,_),[he,r]),Dt=e.useCallback(()=>he(l,x),[he,l]),ve=e.useCallback(()=>{var D,I,z,L;u.current&&(_(u.current.clientWidth-(((D=S.current)==null?void 0:D.clientWidth)||0)),x(u.current.clientWidth-(((I=g.current)==null?void 0:I.clientWidth)||0)),v(((z=g.current)==null?void 0:z.clientWidth)||0),P(((L=S.current)==null?void 0:L.clientWidth)||0))},[]);e.useEffect(()=>{if(!u.current)return;const D=new ResizeObserver(ve);return D.observe(u.current),()=>{D.disconnect()}},[ve]);const j=e.useMemo(()=>({entering:{transform:`translateX(-${p}px)`,marginRight:`-${p}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(-${p}px)`,marginRight:`-${p}px`,transitionProperty:"transform, margin-right",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[p]),_e=e.useMemo(()=>({entering:{transform:`translateX(${m}px)`,marginLeft:`${-m}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(${m}px)`,marginLeft:`${-m}px`,transitionProperty:"transform, margin-left",transitionDuration:`${Q}ms`,transitionTimingFunction:"linear"},exited:{},unmounted:{}}),[m]);return t.jsxs(c.Flex,{className:B.wrapper,style:{minWidth:`${i+s}px`},ref:u,width:"100%",height:"100%",justify:"center",m:"0",p:"0",children:[t.jsx(Ee.Transition,{nodeRef:g,timeout:r?0:Q,in:r,unmountOnExit:!0,onEntering:qe,onExited:Dt,children:D=>t.jsx(c.Box,{ref:g,className:$(B.panelContent,B.left),style:j[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(Se.Resizable,{className:B.resizable,size:{width:p,height:"100%"},onResizeStop:Y,enable:{right:(f==null?void 0:f.left)!==void 0?f.left:!0},minWidth:i,maxWidth:C,handleClasses:{right:$(B.resizeHandle,B.left)},handleComponent:{right:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:a})})}),t.jsx("div",{className:B.panelMainContent,children:o}),t.jsx(Ee.Transition,{nodeRef:S,timeout:l?0:Q,in:l,unmountOnExit:!0,onEntering:ne,onExited:Ge,children:D=>t.jsx(c.Box,{ref:S,className:$(B.panelContent,B.right),style:_e[D],width:"auto",height:"100%",m:"0",p:"0",children:t.jsx(Se.Resizable,{className:B.resizable,size:{width:m,height:"100%"},onResizeStop:Oe,enable:{left:(f==null?void 0:f.right)!==void 0?f.right:!0},minWidth:s,maxWidth:w,handleClasses:{left:$(B.resizeHandle,B.right)},handleComponent:{left:t.jsx(T.DragHandleDots2Icon,{height:"14px",width:"14px"})},children:d})})})]})}),de={multiPagePopover:"_multiPagePopover_1w3ey_1",light:"_light_1w3ey_15",dark:"_dark_1w3ey_20",pageTitle:"_pageTitle_1w3ey_28",buttonContainer:"_buttonContainer_1w3ey_33",optionsButtonContainer:"_optionsButtonContainer_1w3ey_38",optionsButton:"_optionsButton_1w3ey_38"};function ht(n,o,r,a=0){if(!n.options)return n.content||t.jsx(t.Fragment,{});const i=n.options.map((l,d)=>t.jsx(R,{className:$(de.optionsButton,l.buttonClassName),variant:"ghost",radius:"large",style:{width:r==="vertical"?"100%":"auto"},onClick:l.onClick||(()=>o(ht(l.page||{},o,r,a+1))),children:l.label},`${l.value}-page-${a}-button-${d}`));return t.jsxs(t.Fragment,{children:[n.title&&t.jsx("div",{className:de.pageTitle,children:n.title}),n.content,t.jsx("div",{className:$(de.optionsButtonContainer,n.buttonsContainerClassName),style:{flexDirection:r==="vertical"?"column":"row"},children:i})]})}const En=e.forwardRef(function({page:o,className:r,direction:a="vertical",color:i="light",...l},d){const[s,f]=e.useState(void 0),u=e.useCallback(()=>{f(ht(o,f,a,0))},[a,o]),g=e.useCallback(p=>s,[s]);return t.jsx(ut,{className:$(de.multiPagePopover,i==="light"?de.light:de.dark,r),ref:d,onOpenAutoFocus:u,onCloseAutoFocus:u,...l,children:p=>g(p)})}),pt=e.memo(En),gt={charCount:"_charCount_1lz28_1",ghost:"_ghost_1lz28_5"},In=e.forwardRef(function({className:o,showInputLength:r,inputLengthTemplate:a,value:i,severity:l="primary",resize:d,variant:s,...f},u){const g=O(l),p=O("info"),v=r||r===void 0&&(f.maxLength!==void 0||f.minLength!==void 0),C=i!==void 0?i.toString():"",_=e.useMemo(()=>{if(a){let S=a.replace("{current}",C.length.toString());return f.minLength!==void 0&&(S=S.replace("{min}",f.minLength.toString())),f.maxLength!==void 0&&(S=S.replace("{max}",f.maxLength.toString())),S}return C.length},[a,f.maxLength,f.minLength,C.length]);return t.jsxs(t.Fragment,{children:[t.jsx(c.TextArea,{className:$("overmap-textarea",o,{[gt.ghost]:s==="ghost"}),style:{resize:d},variant:s!=="ghost"?s:void 0,ref:u,value:i,color:g,...f}),v&&t.jsx(c.Text,{as:"p",className:gt.charCount,color:p,align:"right",children:_})]})}),zn=e.memo(In),Bn=e.forwardRef(function({loop:o,type:r,rovingFocus:a,value:i,onValueChange:l,defaultValue:d,disabled:s,items:f,className:u,direction:g="row",...p},v){return t.jsx(Je.Root,{type:r,className:$("overmap-toggle-group",u),ref:v,value:i,onValueChange:l,disabled:s,orientation:g==="column"?"vertical":"horizontal",loop:o,rovingFocus:a,defaultValue:d,asChild:!0,children:t.jsx(Fe,{direction:g,...p,children:f.map(({children:C,..._})=>e.createElement(Je.Item,{asChild:!0,..._,key:_.value},t.jsx(H,{className:$("overmap-toggle-group-button"),"aria-label":_.value,variant:_.value===i?"solid":"soft",children:C})))})})}),Fn=e.memo(Bn),jn={default:"_default_xqvoc_1"},bt=e.memo(e.forwardRef(({className:n,minContentGap:o="2",children:r,...a},i)=>t.jsx(It.Root,{className:$(n,"overmap-toolbar",jn.default),ref:i,asChild:!0,...a,children:t.jsx(F,{grow:"1",width:"100%",height:"max-content",align:"center",gap:o,wrap:"nowrap",children:r})}))),Ln=e.memo(e.forwardRef(({children:n,gap:o="2"},r)=>t.jsx(F,{ref:r,grow:"1",width:"max-content",height:"100%",align:"center",gap:o,children:n}))),Wn=e.memo(e.forwardRef(({children:n,gap:o},r)=>t.jsx(F,{ref:r,grow:"1",width:"max-content",direction:"row-reverse",height:"100%",align:"center",gap:o||"2",children:n}))),Hn={Root:bt,LeftContent:Ln,RightContent:Wn},Le={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:o,description:r,icon:a,severity:i="primary",size:l,onClose:d,sensitivity:s,action:f,...u},g){const[p,v]=e.useState(!0),C=O(i),_=e.useCallback(S=>{!S&&d&&d(),v(S)},[d]);return t.jsx(Ce.Root,{asChild:!0,ref:g,...u,open:p,type:s,onOpenChange:_,children:t.jsx(c.Callout.Root,{className:Le.ToastRoot,variant:"surface",color:C,size:l,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:a}),t.jsxs(c.Flex,{direction:"column",gap:"2",children:[t.jsxs(c.Flex,{direction:"column",gap:"0",children:[t.jsx(Ce.Title,{asChild:!0,children:t.jsx(c.Callout.Text,{size:"3",weight:"medium",children:o})}),t.jsx(Ce.Description,{asChild:!0,children:t.jsx(c.Callout.Text,{children:r})})]}),f&&t.jsx(Ce.Action,{className:Le.actionButton,altText:f.altText,asChild:!0,children:f.content})]})]}),t.jsx(Ce.Close,{asChild:!0,children:t.jsx(H,{"aria-label":"Close",variant:"ghost",severity:i,children:t.jsx(T.Cross2Icon,{})})})]})})})}),Ct=e.memo(Un),We=e.createContext({}),Vn=()=>{const n=e.useContext(We);if(!n)throw new Error("useToast must be used within a ToastProvider");return n},qn=240/60,mt=5e3,Gn=n=>{if(n.duration&&n.duration>=mt)return n.duration;const o=n.severity==="danger"?1.5:1,r=n.description.split(" ").length+n.title.split(" ").length;return(mt+r/qn)*o};h.unsafeShowToast=void 0;const Kn=e.memo(function({children:o,className:r,hotkey:a,...i}){const[l,d]=e.useState([]),s=e.useCallback((u,g,p)=>{d(v=>{const C=v.find(_=>_.id===u);return C&&g===0&&clearTimeout(C.timeout),v.filter(_=>_.id!==u)}),p&&p()},[]),f=e.useMemo(()=>{let u=0;const g=m=>{const P=Gn(m),w=u.toString();u+=1;const x=setTimeout(()=>s(w,1,m.onClose),P);d(N=>[...N,{...m,timeout:x,duration:P,id:w}])},p=m=>g({...m,severity:"primary"}),v=m=>g({...m,severity:"success"}),C=m=>g({...m,severity:"danger"}),_=m=>g({...m,severity:"info"}),S=m=>g({...m,severity:"warning"});return h.unsafeShowToast=g,{showToast:g,showPrimary:p,showSuccess:v,showError:C,showInfo:_,showWarning:S}},[s]);return e.useEffect(()=>()=>{for(const{timeout:u}of l)clearTimeout(u)},[]),t.jsx(We.Provider,{value:f,children:t.jsxs(Ie.ToastProvider,{...i,children:[o,t.jsx(Ie.ToastViewport,{className:$(r,Le.ToastViewport),hotkey:a}),l.map(({id:u,onClose:g,...p})=>t.jsx(Ct,{...p,onClose:()=>s(u,0,g)},u))]})})}),Jn={default:"_default_1odpt_1"},Qn=e.memo(e.forwardRef(({className:n,children:o,content:r,...a},i)=>t.jsx(c.Tooltip,{className:$("overmap-tooltip",n,Jn.default),ref:i,content:t.jsx(c.Flex,{align:"center",gap:"1",width:"max-content",height:"max-content",justify:"center",children:r}),...a,children:o}))),Xn={noWrap:"_noWrap_1wpa5_1"},ke=e.memo(e.forwardRef(({className:n,noWrap:o,severity:r,as:a,...i},l)=>{const d=O(r);return t.jsx(c.Text,{ref:l,as:a,className:$(n,{[Xn.noWrap]:o}),color:d,...i})})),Kr="",Yn=e.memo(e.forwardRef((n,o)=>{const{panelBackground:r="solid",radius:a="full",...i}=n;return t.jsx(c.Theme,{panelBackground:r,radius:a,ref:o,...i})}));function X(){return X=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},X.apply(this,arguments)}function Zn(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)}function vt(...n){return o=>n.forEach(r=>Zn(r,o))}function _t(...n){return e.useCallback(vt(...n),n)}function Rn(n,o=[]){let r=[];function a(l,d){const s=e.createContext(d),f=r.length;r=[...r,d];function u(p){const{scope:v,children:C,..._}=p,S=(v==null?void 0:v[n][f])||s,m=e.useMemo(()=>_,Object.values(_));return e.createElement(S.Provider,{value:m},C)}function g(p,v){const C=(v==null?void 0:v[n][f])||s,_=e.useContext(C);if(_)return _;if(d!==void 0)return d;throw new Error(`\`${p}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,g]}const i=()=>{const l=r.map(d=>e.createContext(d));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,[a,eo(i,...o)]}function eo(...n){const o=n[0];if(n.length===1)return o;const r=()=>{const a=n.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const d=a.reduce((s,{useScope:f,scopeName:u})=>{const p=f(l)[`__scope${u}`];return{...s,...p}},{});return e.useMemo(()=>({[`__scope${o.scopeName}`]:d}),[d])}};return r.scopeName=o.scopeName,r}function yt(n,o,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return o==null?void 0:o(i)}}function St(n){const o=e.useRef(n);return e.useEffect(()=>{o.current=n}),e.useMemo(()=>(...r)=>{var a;return(a=o.current)===null||a===void 0?void 0:a.call(o,...r)},[])}function to({prop:n,defaultProp:o,onChange:r=()=>{}}){const[a,i]=no({defaultProp:o,onChange:r}),l=n!==void 0,d=l?n:a,s=St(r),f=e.useCallback(u=>{if(l){const p=typeof u=="function"?u(n):u;p!==n&&s(p)}else i(u)},[l,n,i,s]);return[d,f]}function no({defaultProp:n,onChange:o}){const r=e.useState(n),[a]=r,i=e.useRef(a),l=St(o);return e.useEffect(()=>{i.current!==a&&(l(a),i.current=a)},[a,i,l]),r}function oo(n){const o=e.useRef({value:n,previous:n});return e.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}const He=globalThis!=null&&globalThis.document?e.useLayoutEffect:()=>{};function ro(n){const[o,r]=e.useState(void 0);return He(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let d,s;if("borderBoxSize"in l){const f=l.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 a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else r(void 0)},[n]),o}function ao(n,o){return e.useReducer((r,a)=>{const i=o[r][a];return i??r},n)}const wt=n=>{const{present:o,children:r}=n,a=lo(o),i=typeof r=="function"?r({present:a.isPresent}):e.Children.only(r),l=_t(a.ref,i.ref);return typeof r=="function"||a.isPresent?e.cloneElement(i,{ref:l}):null};wt.displayName="Presence";function lo(n){const[o,r]=e.useState(),a=e.useRef({}),i=e.useRef(n),l=e.useRef("none"),d=n?"mounted":"unmounted",[s,f]=ao(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const u=Te(a.current);l.current=s==="mounted"?u:"none"},[s]),He(()=>{const u=a.current,g=i.current;if(g!==n){const v=l.current,C=Te(u);n?f("MOUNT"):C==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(g&&v!==C?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,f]),He(()=>{if(o){const u=p=>{const C=Te(a.current).includes(p.animationName);p.target===o&&C&&zt.flushSync(()=>f("ANIMATION_END"))},g=p=>{p.target===o&&(l.current=Te(a.current))};return o.addEventListener("animationstart",g),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u),()=>{o.removeEventListener("animationstart",g),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback(u=>{u&&(a.current=getComputedStyle(u)),r(u)},[])}}function Te(n){return(n==null?void 0:n.animationName)||"none"}const $t=e.forwardRef((n,o)=>{const{children:r,...a}=n,i=e.Children.toArray(r),l=i.find(so);if(l){const d=l.props.children,s=i.map(f=>f===l?e.Children.count(d)>1?e.Children.only(null):e.isValidElement(d)?d.props.children:null:f);return e.createElement(Ue,X({},a,{ref:o}),e.isValidElement(d)?e.cloneElement(d,void 0,s):null)}return e.createElement(Ue,X({},a,{ref:o}),r)});$t.displayName="Slot";const Ue=e.forwardRef((n,o)=>{const{children:r,...a}=n;return e.isValidElement(r)?e.cloneElement(r,{...co(a,r.props),ref:o?vt(o,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null});Ue.displayName="SlotClone";const io=({children:n})=>e.createElement(e.Fragment,null,n);function so(n){return e.isValidElement(n)&&n.type===io}function co(n,o){const r={...o};for(const a in o){const i=n[a],l=o[a];/^on[A-Z]/.test(a)?i&&l?r[a]=(...s)=>{l(...s),i(...s)}:i&&(r[a]=i):a==="style"?r[a]={...i,...l}:a==="className"&&(r[a]=[i,l].filter(Boolean).join(" "))}return{...n,...r}}const Pt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((n,o)=>{const r=e.forwardRef((a,i)=>{const{asChild:l,...d}=a,s=l?$t:o;return e.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),e.createElement(s,X({},d,{ref:i}))});return r.displayName=`Primitive.${o}`,{...n,[o]:r}},{}),xt="Checkbox",[uo,Qr]=Rn(xt),[fo,ho]=uo(xt),po=e.forwardRef((n,o)=>{const{__scopeCheckbox:r,name:a,checked:i,defaultChecked:l,required:d,disabled:s,value:f="on",onCheckedChange:u,...g}=n,[p,v]=e.useState(null),C=_t(o,x=>v(x)),_=e.useRef(!1),S=p?!!p.closest("form"):!0,[m=!1,P]=to({prop:i,defaultProp:l,onChange:u}),w=e.useRef(m);return e.useEffect(()=>{const x=p==null?void 0:p.form;if(x){const N=()=>P(w.current);return x.addEventListener("reset",N),()=>x.removeEventListener("reset",N)}},[p,P]),e.createElement(fo,{scope:r,state:m,disabled:s},e.createElement(Pt.button,X({type:"button",role:"checkbox","aria-checked":te(m)?"mixed":m,"aria-required":d,"data-state":kt(m),"data-disabled":s?"":void 0,disabled:s,value:f},g,{ref:C,onKeyDown:yt(n.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:yt(n.onClick,x=>{P(N=>te(N)?!0:!N),S&&(_.current=x.isPropagationStopped(),_.current||x.stopPropagation())})})),S&&e.createElement(Co,{control:p,bubbles:!_.current,name:a,value:f,checked:m,required:d,disabled:s,style:{transform:"translateX(-100%)"}}))}),go="CheckboxIndicator",bo=e.forwardRef((n,o)=>{const{__scopeCheckbox:r,forceMount:a,...i}=n,l=ho(go,r);return e.createElement(wt,{present:a||te(l.state)||l.state===!0},e.createElement(Pt.span,X({"data-state":kt(l.state),"data-disabled":l.disabled?"":void 0},i,{ref:o,style:{pointerEvents:"none",...n.style}})))}),Co=n=>{const{control:o,checked:r,bubbles:a=!0,...i}=n,l=e.useRef(null),d=oo(r),s=ro(o);return e.useEffect(()=>{const f=l.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(d!==r&&p){const v=new Event("click",{bubbles:a});f.indeterminate=te(r),p.call(f,te(r)?!1:r),f.dispatchEvent(v)}},[d,r,a]),e.createElement("input",X({type:"checkbox","aria-hidden":!0,defaultChecked:te(r)?!1:r},i,{tabIndex:-1,ref:l,style:{...n.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function te(n){return n==="indeterminate"}function kt(n){return te(n)?"indeterminate":n?"checked":"unchecked"}const mo=po,vo=bo,ue={checkboxContainer:"_checkboxContainer_pb9za_5",checkbox:"_checkbox_pb9za_5",checkboxIndicator:"_checkboxIndicator_pb9za_27",checkboxLabel:"_checkboxLabel_pb9za_38",noTextHighlight:"_noTextHighlight_pb9za_42",checkboxHidden:"_checkboxHidden_pb9za_51"},_o=e.forwardRef(function({className:o,labelClassName:r,label:a,checked:i,onCheckedChange:l,...d},s){return t.jsx(lt,{children:({isHovered:f,...u})=>t.jsxs(c.Flex,{className:ue.checkboxContainer,...u,children:[t.jsx(mo,{className:$(ue.checkbox,!f&&!i&&ue.checkboxHidden,o),checked:i,onCheckedChange:g=>{l&&l(g)},ref:s,...d,children:t.jsx(vo,{className:ue.checkboxIndicator,children:i==="indeterminate"?t.jsx(T.DividerHorizontalIcon,{width:"13px"}):t.jsx(T.CheckIcon,{})})}),a&&t.jsx("div",{className:$(ue.checkboxLabel,r,ue.noTextHighlight),onClick:()=>{l&&l(!i)},children:a})]})})}),De=e.memo(_o);De.displayName="Checkbox";const Tt=e.memo(function({className:o,labelClassName:r,label:a,onCheckedChange:i,children:l,...d}){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)),p=C=>{const _=s==="indeterminate"||!C;s==="indeterminate"&&(C=!1),g(u.map(S=>!_)),i&&i(C)};e.useEffect(()=>{const C=u.filter(_=>_).length;C===0?f(!1):C===l.length?f(!0):f("indeterminate")},[l,u]);const v=e.Children.map(l,(C,_)=>e.cloneElement(C,{...C.props,checked:u[_],onCheckedChange:S=>{const m=[...u];m[_]=S,g(m),C.props.onCheckedChange&&C.props.onCheckedChange(S)}}));return t.jsxs(t.Fragment,{children:[t.jsx(De,{className:o,labelClassName:r,label:a,checked:s,onCheckedChange:p,...d}),v]})}),E={tableContainer:"_tableContainer_5bdnq_1",headerContainer:"_headerContainer_5bdnq_14",tableTopContainer:"_tableTopContainer_5bdnq_18",searchContainer:"_searchContainer_5bdnq_22",columnFilterSelect:"_columnFilterSelect_5bdnq_32",table:"_table_5bdnq_1",tableHeaderCell:"_tableHeaderCell_5bdnq_50",tableRow:"_tableRow_5bdnq_56",tableCell:"_tableCell_5bdnq_71",noDataTextContainer:"_noDataTextContainer_5bdnq_78",tableBottomContainer:"_tableBottomContainer_5bdnq_83",rowsPerPageContainer:"_rowsPerPageContainer_5bdnq_92",rowsPerPageText:"_rowsPerPageText_5bdnq_96",paginationContainer:"_paginationContainer_5bdnq_101"},yo=e.forwardRef(function(o,r){const{columns:a,data:i,color:l="light",title:d="",description:s="",rowsPerPage:f=[10,20,30,40,50],showSearchBar:u,searchBarPlaceholder:g,showSelect:p,showFilterButton:v,showContainer:C,showRowsPerPage:_,showPageNumber:S,showPageNavigation:m,showTopBar:P=!0,showBottomBar:w=!0,children:x,className:N,columnClassName:Y,rowClassName:Oe,cellClassName:fe}=o,[ne,qe]=e.useState(""),[he,Ge]=e.useState([]);if(!i.every(b=>Object.keys(b.columns).length===a.length&&Object.values(a).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 ve=e.useMemo(()=>a.filter(b=>b.filter).map(b=>({[b.id]:[]})).reduce((b,y)=>Object.assign(b,y),{}),[a]),[j,_e]=e.useState(ve),[D,I]=e.useState(f[0]??10),z=e.useMemo(()=>f.map(b=>({value:b.toString(),itemContent:b.toString()})),[f]),L=i.some(b=>b.onClick),ye=e.useCallback(b=>{var k,M;return(((k=b.searchValue)==null?void 0:k.toString())||((M=b.value)==null?void 0:M.toString())||"").toLowerCase().includes(ne.toLowerCase())},[ne]),Ae=e.useCallback((b,y)=>{var W,oe,ge,re;const k=((W=b.sortValue)==null?void 0:W.toString())||((oe=b.value)==null?void 0:oe.toString())||"",M=((ge=y.sortValue)==null?void 0:ge.toString())||((re=y.value)==null?void 0:re.toString())||"";return k.toLowerCase().localeCompare(M.toLowerCase(),void 0,{numeric:!0})},[]),pe=e.useCallback((b,y)=>{var M,W,oe;const k=((M=b.filterValue)==null?void 0:M.toString())||((W=b.value)==null?void 0:W.toString())||"";return(oe=j[y.id])==null?void 0:oe.some(ge=>k.toString().toLowerCase()===ge.toString().toLowerCase())},[j]),V=e.useMemo(()=>a.map(b=>({...b,sort:b.sort?{sortKey:b.id.toString().toUpperCase()}:!1})),[a]),Z=a.some(b=>{var y;return b.filter&&b.id in j&&((y=j[b.id])==null?void 0:y.length)!==0}),q=e.useMemo(()=>i.filter(b=>!ne||a.some(y=>y.search&&ye(b.columns[y.id]))).filter(b=>!Z||a.every(y=>{var k;return!y.filter||((k=j[y.id])==null?void 0:k.length)===0||pe(b.columns[y.id],y)})).map(b=>{const y={...b.columns,...b},{columns:k,...M}=y;return M}),[pe,j,a,i,Z,ne,ye]),[G,ko]=e.useState(Math.ceil(q.length/D)),Ke=e.useCallback(b=>b.filterValues?b.filterValues:[...new Set(i.map(k=>{var M,W;return((M=k.columns[b.id].filterValue)==null?void 0:M.toString())||((W=k.columns[b.id].value)==null?void 0:W.toString())||""}))].sort().map(k=>({value:k,label:k})),[i]),To=e.useMemo(()=>(p?"auto ":"")+V.reduce((b,y)=>b+`${y.width||"auto"} `,""),[V,p]),Do=e.useCallback(b=>{qe(b.target.value)},[]),Ne={nodes:q},Mo=le.useRowSelect(Ne,{onChange:(b,y)=>{Ge(y.ids)}},{rowSelect:le.SelectTypes.MultiSelect,buttonSelect:le.SelectTypes.MultiSelect,clickType:le.SelectClickTypes.ButtonClick,isCarryForward:!1}),A=Ft.usePagination(Ne,{state:{page:0,size:f[0]}},{isServer:!1}),Oo=Qe.useSort(Ne,{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({},...V.map(b=>({[b.id.toString().toUpperCase()]:y=>y.sort((k,M)=>Ae(k[b.id],M[b.id]))})))}),Ao=e.useMemo(()=>({options:a.filter(b=>b.filter).map(b=>({label:b.label,value:b.id.toString(),page:{content:t.jsx(Tt,{label:"Select all",onCheckedChange:y=>{const k=JSON.parse(JSON.stringify(j));y===!0?k[b.id]=Ke(b).map(M=>M.value):k[b.id]=[],_e(k)},children:Ke(b).map((y,k)=>{var M,W;return t.jsx(De,{label:y.label,checked:(W=j[b.id])==null?void 0:W.includes(((M=y.value)==null?void 0:M.toString())||""),onCheckedChange:oe=>{_e(ge=>{var At;const re={...ge},Ot=re[b.id]||[];return oe?re[b.id]=[...Ot,((At=y.value)==null?void 0:At.toString())||""]:re[b.id]=Ot.filter(zo=>zo!==y.value),re})}},`checkbox-filter-${b.id}-${k}`)})},`select-all-checkbox-${b.id}`)}}))}),[j,a,Ke]),No=V.map(b=>{const y=b.sort?Qe.HeaderCellSort:K.HeaderCell;return t.jsx(y,{className:$(E.tableHeaderCell,Y,b.className),sortKey:b.sort?b.id.toString().toUpperCase():"",children:b.label},b.id)}),Mt=we.isMobile?H:R,Eo=e.useMemo(()=>({custom:!0}),[]),Io=Bt.useTheme({Table:`
|
|
6
|
-
--data-table-library_grid-template-columns: ${
|
|
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)}),!!h&&t.jsx(c.Box,{className:we.DropdownMenuSeparatorWrapper,children:t.jsx(it,{size:"4"})})]}))]})})]})})),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};
|
|
7
7
|
`,Row:`
|
|
8
8
|
&:hover {
|
|
9
|
-
cursor: ${
|
|
9
|
+
cursor: ${Oe?"pointer":"inherit"};
|
|
10
10
|
}
|
|
11
11
|
&.row-select-selected {
|
|
12
12
|
background-color: var(--gray-a4);
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
}
|
|
17
17
|
`,BaseRow:`
|
|
18
18
|
background-color: inherit;
|
|
19
|
-
`});return e.useEffect(()=>{if(m){const b=Math.ceil(q.length/D);ko(b),A.state.page<0&&A.fns.onSetPage(0),A.state.page>b-1&&A.fns.onSetPage(b-1)}},[f,q.length,D,A,m]),t.jsxs("div",{className:$({[E.tableContainer]:C}),children:[(!!d||!!s)&&t.jsxs("div",{className:E.headerContainer,children:[!!d&&t.jsx(ke,{weight:"bold",size:"7",children:d}),!!s&&t.jsx(ke,{as:"div",children:s})]}),P&&t.jsxs(c.Flex,{justify:"between",className:E.tableTopContainer,children:[t.jsxs(c.Flex,{gap:"2",children:[u&&t.jsx("div",{className:E.searchContainer,children:t.jsx(dt,{value:ne,onChange:Do,leftSlot:t.jsx(T.MagnifyingGlassIcon,{}),placeholder:g||"Filter tasks..."})}),v&&t.jsx(pt,{color:l,page:Ao,trigger:t.jsx(H,{variant:"surface","aria-label":"Filter columns",children:t.jsx(T.MixerHorizontalIcon,{})}),children:b=>""}),v&&Z&&t.jsxs(R,{variant:"surface",color:"crimson",onClick:()=>{_e(ve),A.fns.onSetPage(0)},children:[t.jsx(T.Cross2Icon,{}),"Clear filters"]})]}),p&&he.length!==0&&t.jsxs(c.Flex,{gap:"2",children:[t.jsxs(Mt,{variant:"soft","aria-label":"Edit rows",children:[t.jsx(T.Pencil1Icon,{}),!we.isMobile&&"Edit"]}),t.jsxs(Mt,{color:"red","aria-label":"Delete rows",children:[t.jsx(T.TrashIcon,{}),!we.isMobile&&"Delete"]})]})]}),x,t.jsx(K.Table,{className:$(E.table,N),data:Ne,theme:Io,sort:Oo,pagination:m&&A,select:Mo,layout:Eo,ref:r,children:b=>t.jsxs(t.Fragment,{children:[t.jsx(K.Header,{children:t.jsxs(K.HeaderRow,{children:[p&&t.jsx(le.HeaderCellSelect,{className:E.tableHeaderCell}),...No]})}),t.jsxs(K.Body,{children:[b.length===0&&t.jsx(c.TableRow,{className:E.noDataTextContainer,children:t.jsx(K.Cell,{children:"There is no data"})}),b.map(y=>t.jsxs(K.Row,{item:y,className:$(E.tableRow,Oe,y.className),onClick:y.onClick,children:[p&&t.jsx(le.CellSelect,{item:y},y.id),a.map((k,M)=>t.jsx(K.Cell,{className:$(E.tableCell,fe,y[k.id].className),children:t.jsx(ke,{children:y[k.id].label})},M))]},y.id))]})]})}),w&&t.jsxs(c.Flex,{className:E.tableBottomContainer,wrap:"wrap",direction:we.isMobile?"column":"row",children:[_&&t.jsxs(c.Flex,{className:E.rowsPerPageContainer,children:[t.jsx("div",{className:E.rowsPerPageText,children:"Rows per page:"}),t.jsx(st,{items:z,defaultValue:z[0].value.toString(),onValueChange:b=>{A.fns.onSetSize(Number(b)),I(Number(b))},placeholder:z[0].itemContent,"aria-label":"Select number of rows per page"})]}),S&&t.jsx(c.Flex,{justify:"center",children:G>0&&`Page ${A.state.page+1} of ${G}`}),m&&t.jsxs(c.Flex,{className:E.paginationContainer,gap:"2",justify:"end",children:[t.jsx(H,{variant:"surface",onClick:()=>A.fns.onSetPage(0),disabled:A.state.page===0||G===0,"aria-label":"Go to first page",children:t.jsx(T.DoubleArrowLeftIcon,{})}),t.jsx(H,{variant:"surface",disabled:A.state.page===0||G===0,onClick:()=>A.fns.onSetPage(A.state.page-1),"aria-label":"Previous page",children:t.jsx(T.ChevronLeftIcon,{})}),t.jsx(H,{variant:"surface",disabled:A.state.page+1===G||G===0,onClick:()=>A.fns.onSetPage(A.state.page+1),"aria-label":"Next page",children:t.jsx(T.ChevronRightIcon,{})}),t.jsx(H,{variant:"surface",disabled:A.state.page+1===G||G===0,onClick:()=>A.fns.onSetPage(G-1),"aria-label":"Go to last page",children:t.jsx(T.DoubleArrowRightIcon,{})})]})]})]})}),So=e.memo(yo),Ve=[["Emily Davis","Sr. Manger","Female","55","$141,604 ","United States","Seattle"],["Theodore Dinh","Technical Architect","Male","59","$99,975 ","China","Chongqing"],["Luna Sanders","Director","Female","50","$163,099 ","United States","Chicago"],["Austin Vo","Sr. Analyst","Male","55","$95,409 ","United States","Phoenix"],["Joshua Gupta","Account Representative","Male","57","$50,994 ","China","Chongqing"],["Ruby Barnes","Manager","Female","27","$119,746 ","United States","Phoenix"],["Luke Martin","Analyst","Male","25","$41,336 ","United States","Miami"],["Easton Bailey","Manager","Male","29","$113,527 ","United States","Austin"],["Madeline Walker","Sr. Analyst","Female","34","$77,203 ","United States","Chicago"],["Savannah Ali","Sr. Manger","Female","36","$157,333 ","United States","Miami"],["Camila Rogers","Controls Engineer","Female","27","$109,851 ","United States","Seattle"],["Eli Jones","Manager","Male","59","$105,086 ","United States","Austin"],["Everleigh Ng","Sr. Manger","Female","51","$146,742 ","China","Shanghai"],["Robert Yang","Sr. Analyst","Male","31","$97,078 ","United States","Austin"],["Isabella Xi","Vice President","Female","41","$249,270 ","United States","Seattle"],["Bella Powell","Director","Female","65","$175,837 ","United States","Phoenix"],["Camila Silva","Sr. Manger","Female","64","$154,828 ","United States","Seattle"],["David Barnes","Director","Male","64","$186,503 ","United States","Columbus"],["Adam Dang","Director","Male","45","$166,331 ","China","Chongqing"],["Elias Alvarado","Sr. Manger","Male","56","$146,140 ","Brazil","Manaus"],["Eva Rivera","Director","Female","36","$151,703 ","United States","Miami"],["Logan Rivera","Director","Male","59","$172,787 ","Brazil","Rio de Janerio"],["Leonardo Dixon","Analyst","Male","37","$49,998 ","United States","Seattle"],["Mateo Her","Vice President","Male","44","$207,172 ","China","Chongqing"],["Jose Henderson","Director","Male","41","$152,239 ","United States","Columbus"],["Abigail Mejia","Quality Engineer","Female","56","$98,581 ","Brazil","Rio de Janerio"],["Wyatt Chin","Vice President","Male","43","$246,231 ","United States","Seattle"],["Carson Lu","Engineering Manager","Male","64","$99,354 ","China","Beijing"],["Dylan Choi","Vice President","Male","63","$231,141 ","China","Beijing"],["Ezekiel Kumar","IT Coordinator","Male","28","$54,775 ","United States","Columbus"],["Dominic Guzman","Analyst","Male","65","$55,499 ","Brazil","Manaus"],["Angel Powell","Analyst II","Male","61","$66,521 ","United States","Seattle"],["Mateo Vu","Account Representative","Male","30","$59,100 ","China","Chongqing"],["Caroline Jenkins","Analyst","Female","27","$49,011 ","United States","Chicago"],["Nora Brown","Enterprise Architect","Female","32","$99,575 ","United States","Austin"],["Adeline Huang","Controls Engineer","Female","34","$99,989 ","China","Chengdu"],["Jackson Perry","Vice President","Male","27","$256,420 ","United States","Phoenix"],["Riley Padilla","Technical Architect","Female","35","$78,940 ","United States","Miami"],["Leah Pena","Enterprise Architect","Female","57","$82,872 ","Brazil","Manaus"],["Owen Lam","Sr. Business Partner","Male","30","$86,317 ","China","Chengdu"],["Kennedy Foster","Manager","Female","53","$113,135 ","United States","Austin"],["John Moore","Vice President","Male","52","$199,808 ","United States","Seattle"],["William Vu","Account Representative","Male","37","$56,037 ","China","Shanghai"],["Sadie Washington","Sr. Manger","Female","29","$122,350 ","United States","Phoenix"],["Gabriel Holmes","Enterprise Architect","Male","40","$92,952 ","United States","Seattle"],["Wyatt Rojas","Computer Systems Manager","Male","32","$79,921 ","United States","Austin"],["Eva Coleman","Director","Female","37","$167,199 ","United States","Seattle"],["Dominic Clark","Quality Engineer","Male","52","$71,476 ","United States","Phoenix"],["Lucy Alexander","Director","Female","45","$189,420 ","United States","Seattle"],["Everleigh Washington","HRIS Analyst","Female","64","$64,057 ","United States","Phoenix"],["Leilani Butler","Analyst II","Female","27","$68,728 ","United States","Phoenix"],["Peyton Huang","Sr. Manger","Female","25","$125,633 ","China","Beijing"]],wo=(n=!0,o=!0,r=!0)=>[{id:"full_name",label:"Full Name",sort:n,search:o},{id:"job_title",label:"Job Title",sort:n,search:o,filter:r},{id:"gender",label:"Gender",sort:n,search:o,filter:r},{id:"age",label:"Age",sort:n},{id:"annual_salary",label:"Annual Salary",sort:n},{id:"country",label:"Country",sort:n,search:o,filter:r}],$o=n=>Ve.slice(0,n).map((o,r)=>({id:`row-${r}`,columns:{full_name:{id:`full_name_${r}`,value:o[0],label:o[0]},job_title:{id:`job_title_${r}`,value:o[1],label:o[1]},gender:{id:`gender_${r}`,value:o[2],label:o[2]},age:{id:`age_${r}`,value:o[3],label:o[3]},annual_salary:{id:`annual_salary_${r}`,value:o[4],label:o[4]},country:{id:`country_${r}`,value:o[5],label:o[5]}}})),Po=()=>[{id:"full_name",label:"Full Name",sort:!0,search:!0,width:"120px"},{id:"job_title",label:"Job Title",search:!0,filter:!0,width:"220px"},{id:"gender",label:"Gender",sort:!0,filter:!0},{id:"age",label:"Age",sort:!0},{id:"annual_salary",label:"Annual Salary",sort:!0,filter:!0,filterValues:[{value:1,label:t.jsx("div",{style:{backgroundColor:"red"},children:"< $40000"})},{value:2,label:t.jsx("div",{style:{backgroundColor:"orange"},children:"$40000 - $70000"})},{value:3,label:t.jsx("div",{style:{backgroundColor:"yellow"},children:"$70000 - $100000"})},{value:4,label:t.jsx("div",{style:{backgroundColor:"cyan"},children:"$100000 - $150000"})},{value:5,label:t.jsx("div",{style:{backgroundColor:"lime"},children:"> $150000"})}]},{id:"country",label:"Country",search:!0,filter:!0,width:"1fr"},{id:"remove_user",label:""}],Me=n=>{const o=n.replace(/\D/g,"");return parseInt(o)},xo=n=>Ve.slice(0,n).map((o,r)=>({id:`row-${r}`,onClick:()=>alert(`Clicked row ${r+1}`),columns:{full_name:{id:`full_name_${r}`,value:o[0],label:o[0]},job_title:{id:`job_title_${r}`,value:o[1],label:o[1]},gender:{id:`gender_${r}`,value:o[2],label:o[2]==="Male"?t.jsx("span",{children:"🧑"}):t.jsx("span",{children:"👩"}),sortValue:o[2]==="Male"?1:2},age:{id:`age_${r}`,value:o[3],label:o[3]},annual_salary:{id:`annual_salary_${r}`,value:o[4],label:o[4],filterValue:Me(o[4])<4e4?1:Me(o[4])<7e4?2:Me(o[4])<1e5?3:Me(o[4])<15e4?4:5},country:{id:`country_${r}`,value:o[5],label:o[5],searchValue:o[5].split(" ").map((a,i,l)=>l.length===1?a.substring(0,2):a.charAt(0)).join(".")+"."+o[5]},remove_user:{id:`remove_user_${r}`,value:-1,label:t.jsx(H,{onClick:()=>alert(`This is user ${o[0]}`),radius:"large","aria-label":"Identify user",children:t.jsx(T.QuestionMarkIcon,{})})}}}));Object.defineProperty(h,"AccessibleIcon",{enumerable:!0,get:()=>c.AccessibleIcon}),Object.defineProperty(h,"AspectRatio",{enumerable:!0,get:()=>c.AspectRatio}),Object.defineProperty(h,"Avatar",{enumerable:!0,get:()=>c.Avatar}),Object.defineProperty(h,"Blockquote",{enumerable:!0,get:()=>c.Blockquote}),Object.defineProperty(h,"Box",{enumerable:!0,get:()=>c.Box}),Object.defineProperty(h,"Callout",{enumerable:!0,get:()=>c.Callout}),Object.defineProperty(h,"Card",{enumerable:!0,get:()=>c.Card}),Object.defineProperty(h,"Code",{enumerable:!0,get:()=>c.Code}),Object.defineProperty(h,"Container",{enumerable:!0,get:()=>c.Container}),Object.defineProperty(h,"ContextMenu",{enumerable:!0,get:()=>c.ContextMenu}),Object.defineProperty(h,"Em",{enumerable:!0,get:()=>c.Em}),Object.defineProperty(h,"Grid",{enumerable:!0,get:()=>c.Grid}),Object.defineProperty(h,"Heading",{enumerable:!0,get:()=>c.Heading}),Object.defineProperty(h,"HoverCard",{enumerable:!0,get:()=>c.HoverCard}),Object.defineProperty(h,"Inset",{enumerable:!0,get:()=>c.Inset}),Object.defineProperty(h,"Kbd",{enumerable:!0,get:()=>c.Kbd}),Object.defineProperty(h,"Link",{enumerable:!0,get:()=>c.Link}),Object.defineProperty(h,"Portal",{enumerable:!0,get:()=>c.Portal}),Object.defineProperty(h,"Quote",{enumerable:!0,get:()=>c.Quote}),Object.defineProperty(h,"RadioGroup",{enumerable:!0,get:()=>c.RadioGroup}),Object.defineProperty(h,"ScrollArea",{enumerable:!0,get:()=>c.ScrollArea}),Object.defineProperty(h,"Section",{enumerable:!0,get:()=>c.Section}),Object.defineProperty(h,"Slider",{enumerable:!0,get:()=>c.Slider}),Object.defineProperty(h,"Slot",{enumerable:!0,get:()=>c.Slot}),Object.defineProperty(h,"Strong",{enumerable:!0,get:()=>c.Strong}),Object.defineProperty(h,"Tabs",{enumerable:!0,get:()=>c.Tabs}),Object.defineProperty(h,"TextField",{enumerable:!0,get:()=>c.TextField}),Object.defineProperty(h,"Theme",{enumerable:!0,get:()=>c.Theme}),Object.defineProperty(h,"VisuallyHidden",{enumerable:!0,get:()=>c.VisuallyHidden}),Object.defineProperty(h,"updateThemeAppearanceClass",{enumerable:!0,get:()=>c.updateThemeAppearanceClass}),Object.defineProperty(h,"useThemeContext",{enumerable:!0,get:()=>c.useThemeContext}),h.AdvancedTableColumns=Po,h.AdvancedTableRows=xo,h.AlertDialog=ot,h.AlertDialogContent=je,h.AlertDialogProvider=un,h.Badge=qt,h.Breadcrumb=Jt,h.Button=R,h.ButtonGroup=Fe,h.ButtonList=an,h.Checkbox=De,h.DefaultTableColumns=wo,h.DefaultTableRows=$o,h.DefaultTheme=Yn,h.Dialog=sn,h.DropdownMenu=bn,h.DropdownSelect=mn,h.Flex=F,h.HoverUtility=lt,h.IconButton=H,h.IconColorUtility=Mn,h.Input=dt,h.LeftAndRightPanels=Nn,h.MultiPagePopover=pt,h.MultiSelect=_n,h.Popover=ut,h.Root=bt,h.Select=st,h.SelectAllCheckbox=Tt,h.Separator=at,h.Sidebar=xn,h.SlideOut=Tn,h.Switch=wn,h.Table=So,h.TableData=Ve,h.Text=ke,h.TextArea=zn,h.Toast=Ct,h.ToastContext=We,h.ToastProvider=Kn,h.ToggleGroup=Fn,h.Toolbar=Hn,h.Tooltip=Qn,h.divButtonProps=Qt,h.useAlertDialog=rt,h.useDiscardAlertDialog=fn,h.useSeverityColor=O,h.useToast=Vn,h.useViewportSize=Ht,Object.keys(ae).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(h,n)&&Object.defineProperty(h,n,{enumerable:!0,get:()=>ae[n]})}),Object.keys(T).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(h,n)&&Object.defineProperty(h,n,{enumerable:!0,get:()=>T[n]})}),Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._zeroMinWidth_curjh_1{min-width:0}._zeroMinHeight_curjh_5{min-height:0}._radius_curjh_9{border-radius:max(var(--radius-full),var(--radius-4))}._fluid_r73gr_1{flex-grow:1;width:auto}._hoverSpin90Clockwise_r73gr_15>svg{transition:unset}._hoverSpin90Clockwise_r73gr_15 svg{transition:transform .25s ease-in-out!important}._hoverSpin90Clockwise_r73gr_15:hover:not(:disabled) svg{transform:rotate(90deg)!important}._hoverSpin180Clockwise_r73gr_25>svg{transition:unset}._hoverSpin180Clockwise_r73gr_25 svg{transition:transform .3s ease-in-out!important}._hoverSpin180Clockwise_r73gr_25:hover:not(:disabled) svg{transform:rotate(180deg)!important}._hoverSpin360Clockwise_r73gr_35>svg{transition:unset}._hoverSpin360Clockwise_r73gr_35 svg{transition:transform .5s ease-in-out!important}._hoverSpin360Clockwise_r73gr_35:hover:not(:disabled) svg{transform:rotate(360deg)!important}._merged_wdgxo_1>.rt-BaseButton:not(:first-of-type):not(:last-of-type){border-radius:0}._merged_wdgxo_1[data-direction=column]>.rt-BaseButton:first-of-type{border-bottom-right-radius:0;border-bottom-left-radius:0}._merged_wdgxo_1[data-direction=column]>.rt-BaseButton:last-of-type{border-top-left-radius:0;border-top-right-radius:0}._merged_wdgxo_1[data-direction=row]>.rt-BaseButton:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}._merged_wdgxo_1[data-direction=row]>.rt-BaseButton:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}._separators_1f7v1_1>*:not(:last-of-type){border-bottom:1px solid var(--gray-a6)}._DropdownMenu_hj4sz_1{width:max-content;min-width:max-content;margin:calc(-1 * var(--base-menu-content-padding));padding:.2em 0}._DropdownMenuItemWrapper_hj4sz_8{padding:0 .2em;box-sizing:border-box}._DropdownMenuSeparatorWrapper_hj4sz_13{padding:.2em 0;box-sizing:border-box}._DropdownMenuItem_hj4sz_8:not([data-disabled]){color:var(--gray-a11)}._DropdownMenuItem_hj4sz_8:hover{color:var(--gray-12)}._DropdownSelect_k517z_1{width:max-content;min-width:max-content;margin:calc(-1 * var(--base-menu-content-padding));background:var(--base-menu-bg)}._BorderBottom_k517z_8{border-bottom:1px solid var(--gray-a4)}._DropdownSelectInputWrapper_k517z_12{background:transparent}._DropdownSelectInputWrapper_k517z_12>*{outline:none;box-shadow:none;background-color:transparent}._DropdownSelectInput_k517z_12{outline:none;box-shadow:none;color:var(--gray-a12)}._DropdownSelectItem_k517z_27{height:max-content;padding:.2em}._fluid_7n1wr_1{flex-grow:1;width:auto}._default_u936h_1{cursor:var(--cursor-switch)}._default_u936h_1 span{display:flex;align-items:center;justify-content:center}._default_u936h_1 svg{pointer-events:none;cursor:inherit;display:flex;justify-content:center;align-items:center}._sidebarContent_1onyo_1{position:absolute;overflow:hidden;top:0;bottom:0}._sidebarContent_1onyo_1._right_1onyo_7{right:0}._sidebarContent_1onyo_1._right_1onyo_7 ._resizeHandle_1onyo_10{left:3px!important}._sidebarContent_1onyo_1._left_1onyo_13{left:0}._sidebarContent_1onyo_1._left_1onyo_13 ._resizeHandle_1onyo_10{right:3px!important}._resizeHandle_1onyo_10{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:opacity .2s linear}._resizeHandle_1onyo_10:hover,._resizeHandle_1onyo_10:active,._resizeHandle_1onyo_10:focus{opacity:1}._overlay_1onyo_33{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay)}._outerContent_1iy9c_1:focus-visible{outline:none}._outerContent_1iy9c_1._enter_1iy9c_4._right_1iy9c_4{transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._enter_1iy9c_4._left_1iy9c_8{transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._enterActive_1iy9c_12._right_1iy9c_4{transition:transform .2s linear,margin-left .2s linear;transform:translate(0);margin-left:0}._outerContent_1iy9c_1._enterActive_1iy9c_12._left_1iy9c_8{transition:transform .2s linear,margin-right .2s linear;transform:translate(0);margin-right:0}._outerContent_1iy9c_1._exitActive_1iy9c_22._right_1iy9c_4{transition:transform .2s linear,margin-left .2s linear;transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitActive_1iy9c_22._left_1iy9c_8{transition:transform .2s linear,margin-right .2s linear;transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitDone_1iy9c_32._right_1iy9c_4{transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitDone_1iy9c_32._left_1iy9c_8{transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._resizable_1iy9c_41{background-color:var(--color-panel-solid);height:100%!important;max-height:100%!important}._slideOutOverlay_1iy9c_47{background:var(--color-overlay);position:absolute;top:0;right:0;bottom:0;left:0}._accommodateCharCount_1octa_1{margin-bottom:var(--line-height-1)}._wrapper_1octa_5{height:min-content;flex-grow:1}._default_1octa_10{width:100%}._noLeftIcon_1octa_14{padding-left:.25rem}._noRightIcon_1octa_18{padding-right:.25rem}._ghost_1octa_22 input{text-indent:0;padding:0}._ghost_1octa_22 input:not(._noLeftIcon_1octa_14){padding-left:.25rem}._ghost_1octa_22 input:not(._noRightIcon_1octa_18){padding-right:.25rem}._ghost_1octa_22 div{padding:0;outline:none;box-shadow:none;border:none;background:transparent}._charCount_1octa_40{position:absolute;right:0;top:98%;font-size:xx-small!important}._wrapper_tmtz0_1{height:max-content}._wrapper_1ssf2_1{position:relative;overflow:hidden}._panelContent_1ssf2_6{border:0;flex-shrink:0;min-width:0;overflow:hidden;transition-property:transform,margin-right,margin-left;box-shadow:var(--shadow-2)}._panelContent_1ssf2_6._left_1ssf2_14{transform:translate(-100%);margin-right:auto}._panelContent_1ssf2_6._right_1ssf2_18{transform:translate(100%);margin-left:auto}._resizable_1ssf2_23{position:relative;height:100%!important}._resizeHandle_1ssf2_28{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:opacity .2s linear}._resizeHandle_1ssf2_28:hover,._resizeHandle_1ssf2_28:active{opacity:1}._resizeHandle_1ssf2_28._right_1ssf2_18{left:3px!important}._resizeHandle_1ssf2_28._left_1ssf2_14{right:3px!important}._panelMainContent_1ssf2_48{overflow:hidden;flex-grow:1;flex-shrink:1;min-width:0;width:max-content}._multiPagePopover_1w3ey_1{display:flex;flex-direction:column;gap:15px;min-width:150px;justify-content:start;justify-items:start;align-items:start;padding:10px;box-shadow:#00000017 0 3px 12px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}._light_1w3ey_15{background-color:#ffffff80;border:1px solid rgba(216,216,216,.75)}._dark_1w3ey_20{background-color:#15151580;border:1px solid rgba(216,216,216,.1)}._dark_1w3ey_20 button{color:#fff}._pageTitle_1w3ey_28{font-size:24px;font-weight:700}._buttonContainer_1w3ey_33{display:flex;flex-direction:row}._optionsButtonContainer_1w3ey_38{width:100%;display:flex;gap:10px;justify-content:center;flex-direction:column}._optionsButton_1w3ey_38{width:100%;flex:1;justify-content:start;color:#3c4149}._optionsButton_1w3ey_38:hover{background-color:#0000001a}._charCount_1lz28_1{font-size:x-small}._ghost_1lz28_5 textarea{padding:0}._ghost_1lz28_5 *{outline:none;box-shadow:none;background-color:transparent}._default_xqvoc_1{min-width:max-content}._ToastViewport_1i6bp_1{--viewport-padding: var(--space-5);position:fixed;top:0;right:0;display:flex;gap:var(--space-3);flex-direction:column;padding:var(--viewport-padding);width:390px;max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;overflow-y:auto;overflow-x:hidden}._actionButton_1i6bp_20{width:max-content}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24{background-color:var(--accent-2);display:block;box-shadow:var(--shadow-4)}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-state=open]{animation:_slideIn_1i6bp_1 .15s cubic-bezier(.16,1,.3,1)}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=cancel]{transform:translate(0);transition:transform .2s ease-out}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=end]{animation:_swipeOut_1i6bp_1 .1s ease-out}@keyframes _slideIn_1i6bp_1{0%{transform:translate(calc(100% + var(--viewport-padding)))}to{transform:translate(0)}}@keyframes _swipeOut_1i6bp_1{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(calc(100% + var(--viewport-padding)))}}._default_1odpt_1{background-color:var(--color-panel-solid);box-shadow:var(--shadow-2);height:max-content;width:max-content}._default_1odpt_1 p{color:var(--gray-12)!important}._default_1odpt_1 span{display:none}._noWrap_1wpa5_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.radix-themes.radix-themes{--cursor-button: pointer;--cursor-menu-item: pointer;--cursor-checkbox: pointer}.rt-BaseButton{cursor:var(--cursor-button)}button{all:unset}._checkboxContainer_pb9za_5{display:flex;align-items:center}._checkbox_pb9za_5{background-color:var(--color-panel-solid);width:15px;height:15px;border-radius:4px;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface);box-shadow:inset 0 0 0 1px var(--gray-a7);cursor:var(--cursor-checkbox)}._checkbox_pb9za_5 [data-state=checked],._checkbox_pb9za_5 [data-state=indeterminate]{background-color:var(--accent-9);color:var(--accent-9-contrast)}._checkboxIndicator_pb9za_27{display:flex;align-items:center;justify-content:center;justify-items:center;height:100%;width:100%;border-radius:4px;padding-right:.5px}._checkboxLabel_pb9za_38{padding-left:.5rem}._noTextHighlight_pb9za_42{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._checkboxHidden_pb9za_51{visibility:hidden}._tableContainer_5bdnq_1{border-width:1px;padding:30px;border:1px solid var(--gray-a4);border-radius:.5rem;box-shadow:var(--shadow-4)}@media only screen and (max-width: 600px){._tableContainer_5bdnq_1{padding:10px}}._headerContainer_5bdnq_14{padding-bottom:1rem}._tableTopContainer_5bdnq_18{padding:10px 0}._searchContainer_5bdnq_22{display:block;width:250px}@media only screen and (max-width: 600px){._searchContainer_5bdnq_22{width:auto}}._columnFilterSelect_5bdnq_32{display:block;box-shadow:none}._columnFilterSelect_5bdnq_32 svg{display:none}._columnFilterSelect_5bdnq_32:hover{background-color:#00000003;cursor:pointer}._table_5bdnq_1{border:1px solid var(--gray-a4);border-radius:3px!important;background-color:inherit}._tableHeaderCell_5bdnq_50{opacity:.65;padding:10px!important;border-bottom:1px solid var(--gray-4)}._tableRow_5bdnq_56{background-color:inherit}._tableRow_5bdnq_56 span,._tableRow_5bdnq_56 i{display:inline-flex;place-self:center}._tableRow_5bdnq_56 td{padding-left:10px!important}._tableRow_5bdnq_56:hover{background-color:var(--gray-a4)}._tableCell_5bdnq_71{padding:10px!important}._tableCell_5bdnq_71:not(:last-of-type){padding-right:20px!important}._noDataTextContainer_5bdnq_78{padding:.5rem 0;color:#616161}._tableBottomContainer_5bdnq_83{padding:15px 0}@media only screen and (max-width: 600px){._tableBottomContainer_5bdnq_83{justify-content:center}}._rowsPerPageContainer_5bdnq_92{flex:1}._rowsPerPageText_5bdnq_96{padding-right:10px;padding-top:1px}._paginationContainer_5bdnq_101{flex:1}@media only screen and (max-width: 600px){._paginationContainer_5bdnq_101{padding-top:5px}}
|
|
1
|
+
._zeroMinWidth_curjh_1{min-width:0}._zeroMinHeight_curjh_5{min-height:0}._radius_curjh_9{border-radius:max(var(--radius-full),var(--radius-4))}._fluid_r73gr_1{flex-grow:1;width:auto}._hoverSpin90Clockwise_r73gr_15>svg{transition:unset}._hoverSpin90Clockwise_r73gr_15 svg{transition:transform .25s ease-in-out!important}._hoverSpin90Clockwise_r73gr_15:hover:not(:disabled) svg{transform:rotate(90deg)!important}._hoverSpin180Clockwise_r73gr_25>svg{transition:unset}._hoverSpin180Clockwise_r73gr_25 svg{transition:transform .3s ease-in-out!important}._hoverSpin180Clockwise_r73gr_25:hover:not(:disabled) svg{transform:rotate(180deg)!important}._hoverSpin360Clockwise_r73gr_35>svg{transition:unset}._hoverSpin360Clockwise_r73gr_35 svg{transition:transform .5s ease-in-out!important}._hoverSpin360Clockwise_r73gr_35:hover:not(:disabled) svg{transform:rotate(360deg)!important}@keyframes _spin_isifr_9{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._spinner_isifr_9{width:16px;height:16px;border-radius:9999px;border:2px solid white;border-bottom:2px solid transparent;animation:_spin_isifr_9 1s linear infinite}._merged_wdgxo_1>.rt-BaseButton:not(:first-of-type):not(:last-of-type){border-radius:0}._merged_wdgxo_1[data-direction=column]>.rt-BaseButton:first-of-type{border-bottom-right-radius:0;border-bottom-left-radius:0}._merged_wdgxo_1[data-direction=column]>.rt-BaseButton:last-of-type{border-top-left-radius:0;border-top-right-radius:0}._merged_wdgxo_1[data-direction=row]>.rt-BaseButton:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}._merged_wdgxo_1[data-direction=row]>.rt-BaseButton:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}._separators_1f7v1_1>*:not(:last-of-type){border-bottom:1px solid var(--gray-a6)}._DropdownMenu_hj4sz_1{width:max-content;min-width:max-content;margin:calc(-1 * var(--base-menu-content-padding));padding:.2em 0}._DropdownMenuItemWrapper_hj4sz_8{padding:0 .2em;box-sizing:border-box}._DropdownMenuSeparatorWrapper_hj4sz_13{padding:.2em 0;box-sizing:border-box}._DropdownMenuItem_hj4sz_8:not([data-disabled]){color:var(--gray-a11)}._DropdownMenuItem_hj4sz_8:hover{color:var(--gray-12)}._DropdownSelect_k517z_1{width:max-content;min-width:max-content;margin:calc(-1 * var(--base-menu-content-padding));background:var(--base-menu-bg)}._BorderBottom_k517z_8{border-bottom:1px solid var(--gray-a4)}._DropdownSelectInputWrapper_k517z_12{background:transparent}._DropdownSelectInputWrapper_k517z_12>*{outline:none;box-shadow:none;background-color:transparent}._DropdownSelectInput_k517z_12{outline:none;box-shadow:none;color:var(--gray-a12)}._DropdownSelectItem_k517z_27{height:max-content;padding:.2em}._fluid_7n1wr_1{flex-grow:1;width:auto}._default_u936h_1{cursor:var(--cursor-switch)}._default_u936h_1 span{display:flex;align-items:center;justify-content:center}._default_u936h_1 svg{pointer-events:none;cursor:inherit;display:flex;justify-content:center;align-items:center}._sidebarContent_1onyo_1{position:absolute;overflow:hidden;top:0;bottom:0}._sidebarContent_1onyo_1._right_1onyo_7{right:0}._sidebarContent_1onyo_1._right_1onyo_7 ._resizeHandle_1onyo_10{left:3px!important}._sidebarContent_1onyo_1._left_1onyo_13{left:0}._sidebarContent_1onyo_1._left_1onyo_13 ._resizeHandle_1onyo_10{right:3px!important}._resizeHandle_1onyo_10{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:opacity .2s linear}._resizeHandle_1onyo_10:hover,._resizeHandle_1onyo_10:active,._resizeHandle_1onyo_10:focus{opacity:1}._overlay_1onyo_33{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay)}._outerContent_1iy9c_1:focus-visible{outline:none}._outerContent_1iy9c_1._enter_1iy9c_4._right_1iy9c_4{transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._enter_1iy9c_4._left_1iy9c_8{transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._enterActive_1iy9c_12._right_1iy9c_4{transition:transform .2s linear,margin-left .2s linear;transform:translate(0);margin-left:0}._outerContent_1iy9c_1._enterActive_1iy9c_12._left_1iy9c_8{transition:transform .2s linear,margin-right .2s linear;transform:translate(0);margin-right:0}._outerContent_1iy9c_1._exitActive_1iy9c_22._right_1iy9c_4{transition:transform .2s linear,margin-left .2s linear;transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitActive_1iy9c_22._left_1iy9c_8{transition:transform .2s linear,margin-right .2s linear;transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitDone_1iy9c_32._right_1iy9c_4{transform:translate(100%);margin-left:calc(-1 * var(--slide-out-width))}._outerContent_1iy9c_1._exitDone_1iy9c_32._left_1iy9c_8{transform:translate(-100%);margin-right:calc(-1 * var(--slide-out-width))}._resizable_1iy9c_41{background-color:var(--color-panel-solid);height:100%!important;max-height:100%!important}._slideOutOverlay_1iy9c_47{background:var(--color-overlay);position:absolute;top:0;right:0;bottom:0;left:0}._accommodateCharCount_1octa_1{margin-bottom:var(--line-height-1)}._wrapper_1octa_5{height:min-content;flex-grow:1}._default_1octa_10{width:100%}._noLeftIcon_1octa_14{padding-left:.25rem}._noRightIcon_1octa_18{padding-right:.25rem}._ghost_1octa_22 input{text-indent:0;padding:0}._ghost_1octa_22 input:not(._noLeftIcon_1octa_14){padding-left:.25rem}._ghost_1octa_22 input:not(._noRightIcon_1octa_18){padding-right:.25rem}._ghost_1octa_22 div{padding:0;outline:none;box-shadow:none;border:none;background:transparent}._charCount_1octa_40{position:absolute;right:0;top:98%;font-size:xx-small!important}._wrapper_tmtz0_1{height:max-content}._wrapper_1ssf2_1{position:relative;overflow:hidden}._panelContent_1ssf2_6{border:0;flex-shrink:0;min-width:0;overflow:hidden;transition-property:transform,margin-right,margin-left;box-shadow:var(--shadow-2)}._panelContent_1ssf2_6._left_1ssf2_14{transform:translate(-100%);margin-right:auto}._panelContent_1ssf2_6._right_1ssf2_18{transform:translate(100%);margin-left:auto}._resizable_1ssf2_23{position:relative;height:100%!important}._resizeHandle_1ssf2_28{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:opacity .2s linear}._resizeHandle_1ssf2_28:hover,._resizeHandle_1ssf2_28:active{opacity:1}._resizeHandle_1ssf2_28._right_1ssf2_18{left:3px!important}._resizeHandle_1ssf2_28._left_1ssf2_14{right:3px!important}._panelMainContent_1ssf2_48{overflow:hidden;flex-grow:1;flex-shrink:1;min-width:0;width:max-content}._multiPagePopover_spfw7_1{display:flex;flex-direction:column;gap:15px;min-width:150px!important;justify-content:start;align-items:start;padding:10px!important;box-shadow:#00000017 0 3px 12px!important}._pageTitle_spfw7_12{font-size:24px!important;font-weight:700!important}._buttonContainer_spfw7_17{display:flex;flex-direction:row}._optionsButtonContainer_spfw7_22{width:100%;display:flex;gap:10px;justify-content:center;flex-direction:column!important}._optionsButton_spfw7_22{width:100%!important;flex:1;justify-content:start!important}._optionsButton_spfw7_22:hover{background-color:#0000001a!important}._charCount_1lz28_1{font-size:x-small}._ghost_1lz28_5 textarea{padding:0}._ghost_1lz28_5 *{outline:none;box-shadow:none;background-color:transparent}._default_xqvoc_1{min-width:max-content}._ToastViewport_1i6bp_1{--viewport-padding: var(--space-5);position:fixed;top:0;right:0;display:flex;gap:var(--space-3);flex-direction:column;padding:var(--viewport-padding);width:390px;max-width:100vw;margin:0;list-style:none;z-index:2147483647;outline:none;overflow-y:auto;overflow-x:hidden}._actionButton_1i6bp_20{width:max-content}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24{background-color:var(--accent-2);display:block;box-shadow:var(--shadow-4)}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-state=open]{animation:_slideIn_1i6bp_1 .15s cubic-bezier(.16,1,.3,1)}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=cancel]{transform:translate(0);transition:transform .2s ease-out}._ToastRoot_1i6bp_24._ToastRoot_1i6bp_24[data-swipe=end]{animation:_swipeOut_1i6bp_1 .1s ease-out}@keyframes _slideIn_1i6bp_1{0%{transform:translate(calc(100% + var(--viewport-padding)))}to{transform:translate(0)}}@keyframes _swipeOut_1i6bp_1{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(calc(100% + var(--viewport-padding)))}}._default_1odpt_1{background-color:var(--color-panel-solid);box-shadow:var(--shadow-2);height:max-content;width:max-content}._default_1odpt_1 p{color:var(--gray-12)!important}._default_1odpt_1 span{display:none}._noWrap_1wpa5_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.radix-themes.radix-themes{--cursor-button: pointer;--cursor-menu-item: pointer;--cursor-checkbox: pointer}.rt-BaseButton{cursor:var(--cursor-button)}button{all:unset}._checkboxContainer_pb9za_5{display:flex;align-items:center}._checkbox_pb9za_5{background-color:var(--color-panel-solid);width:15px;height:15px;border-radius:4px;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface);box-shadow:inset 0 0 0 1px var(--gray-a7);cursor:var(--cursor-checkbox)}._checkbox_pb9za_5 [data-state=checked],._checkbox_pb9za_5 [data-state=indeterminate]{background-color:var(--accent-9);color:var(--accent-9-contrast)}._checkboxIndicator_pb9za_27{display:flex;align-items:center;justify-content:center;justify-items:center;height:100%;width:100%;border-radius:4px;padding-right:.5px}._checkboxLabel_pb9za_38{padding-left:.5rem}._noTextHighlight_pb9za_42{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._checkboxHidden_pb9za_51{visibility:hidden}._tableContainer_go3yk_1{border-width:1px;padding:30px;border:1px solid var(--gray-a4);border-radius:.5rem;box-shadow:var(--shadow-4)}@media only screen and (max-width: 600px){._tableContainer_go3yk_1{padding:10px}}._headerContainer_go3yk_14{padding-bottom:1rem}._tableTopContainer_go3yk_18{padding:10px 0}._searchContainer_go3yk_22{display:block;width:250px}@media only screen and (max-width: 600px){._searchContainer_go3yk_22{width:auto}}._columnFilterSelect_go3yk_32{display:block;box-shadow:none}._columnFilterSelect_go3yk_32 svg{display:none}._columnFilterSelect_go3yk_32:hover{background-color:#00000003;cursor:pointer}._table_go3yk_1{border:1px solid var(--gray-a4);border-radius:3px!important;background-color:inherit}._tableHeaderCell_go3yk_50{opacity:.65;padding:10px!important;border-bottom:1px solid var(--gray-4)}._tableRow_go3yk_56{background-color:inherit}._tableRow_go3yk_56 span,._tableRow_go3yk_56 i{display:inline-flex;place-self:center}._tableRow_go3yk_56 td{padding-left:10px!important}._tableRow_go3yk_56:hover{background-color:var(--gray-a4)}._tableCell_go3yk_71{padding:10px!important}._tableCell_go3yk_71:not(:last-of-type){padding-right:20px!important}._noDataTextContainer_go3yk_78{padding:.5rem 10px;color:#616161;width:max-content}._tableBottomContainer_go3yk_84{padding:15px 0}._rowsPerPageContainer_go3yk_88{flex:1}@media only screen and (max-width: 600px){._rowsPerPageContainer_go3yk_88{justify-content:center;padding-top:5px}}._rowsPerPageText_go3yk_98{padding-right:10px;padding-top:1px}
|
package/package.json
CHANGED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
export declare const TableData: string[][];
|
|
2
|
-
export declare const DefaultTableColumns: (sort?: boolean, search?: boolean, filter?: boolean) => ({
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
sort: boolean;
|
|
6
|
-
search: boolean;
|
|
7
|
-
filter?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
sort: boolean;
|
|
12
|
-
search: boolean;
|
|
13
|
-
filter: boolean;
|
|
14
|
-
} | {
|
|
15
|
-
id: string;
|
|
16
|
-
label: string;
|
|
17
|
-
sort: boolean;
|
|
18
|
-
search?: undefined;
|
|
19
|
-
filter?: undefined;
|
|
20
|
-
})[];
|
|
21
|
-
export declare const DefaultTableRows: (len: number) => {
|
|
22
|
-
id: string;
|
|
23
|
-
columns: {
|
|
24
|
-
full_name: {
|
|
25
|
-
id: string;
|
|
26
|
-
value: string | undefined;
|
|
27
|
-
label: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
job_title: {
|
|
30
|
-
id: string;
|
|
31
|
-
value: string | undefined;
|
|
32
|
-
label: string | undefined;
|
|
33
|
-
};
|
|
34
|
-
gender: {
|
|
35
|
-
id: string;
|
|
36
|
-
value: string | undefined;
|
|
37
|
-
label: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
age: {
|
|
40
|
-
id: string;
|
|
41
|
-
value: string | undefined;
|
|
42
|
-
label: string | undefined;
|
|
43
|
-
};
|
|
44
|
-
annual_salary: {
|
|
45
|
-
id: string;
|
|
46
|
-
value: string | undefined;
|
|
47
|
-
label: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
country: {
|
|
50
|
-
id: string;
|
|
51
|
-
value: string | undefined;
|
|
52
|
-
label: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}[];
|
|
56
|
-
export declare const AdvancedTableColumns: () => ({
|
|
57
|
-
id: string;
|
|
58
|
-
label: string;
|
|
59
|
-
sort: boolean;
|
|
60
|
-
search: boolean;
|
|
61
|
-
width: string;
|
|
62
|
-
filter?: undefined;
|
|
63
|
-
filterValues?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
id: string;
|
|
66
|
-
label: string;
|
|
67
|
-
search: boolean;
|
|
68
|
-
filter: boolean;
|
|
69
|
-
width: string;
|
|
70
|
-
sort?: undefined;
|
|
71
|
-
filterValues?: undefined;
|
|
72
|
-
} | {
|
|
73
|
-
id: string;
|
|
74
|
-
label: string;
|
|
75
|
-
sort: boolean;
|
|
76
|
-
filter: boolean;
|
|
77
|
-
search?: undefined;
|
|
78
|
-
width?: undefined;
|
|
79
|
-
filterValues?: undefined;
|
|
80
|
-
} | {
|
|
81
|
-
id: string;
|
|
82
|
-
label: string;
|
|
83
|
-
sort: boolean;
|
|
84
|
-
search?: undefined;
|
|
85
|
-
width?: undefined;
|
|
86
|
-
filter?: undefined;
|
|
87
|
-
filterValues?: undefined;
|
|
88
|
-
} | {
|
|
89
|
-
id: string;
|
|
90
|
-
label: string;
|
|
91
|
-
sort: boolean;
|
|
92
|
-
filter: boolean;
|
|
93
|
-
filterValues: {
|
|
94
|
-
value: number;
|
|
95
|
-
label: import("react/jsx-runtime").JSX.Element;
|
|
96
|
-
}[];
|
|
97
|
-
search?: undefined;
|
|
98
|
-
width?: undefined;
|
|
99
|
-
} | {
|
|
100
|
-
id: string;
|
|
101
|
-
label: string;
|
|
102
|
-
sort?: undefined;
|
|
103
|
-
search?: undefined;
|
|
104
|
-
width?: undefined;
|
|
105
|
-
filter?: undefined;
|
|
106
|
-
filterValues?: undefined;
|
|
107
|
-
})[];
|
|
108
|
-
export declare const AdvancedTableRows: (len: number) => {
|
|
109
|
-
id: string;
|
|
110
|
-
onClick: () => void;
|
|
111
|
-
columns: {
|
|
112
|
-
full_name: {
|
|
113
|
-
id: string;
|
|
114
|
-
value: string | undefined;
|
|
115
|
-
label: string | undefined;
|
|
116
|
-
};
|
|
117
|
-
job_title: {
|
|
118
|
-
id: string;
|
|
119
|
-
value: string | undefined;
|
|
120
|
-
label: string | undefined;
|
|
121
|
-
};
|
|
122
|
-
gender: {
|
|
123
|
-
id: string;
|
|
124
|
-
value: string | undefined;
|
|
125
|
-
label: import("react/jsx-runtime").JSX.Element;
|
|
126
|
-
sortValue: number;
|
|
127
|
-
};
|
|
128
|
-
age: {
|
|
129
|
-
id: string;
|
|
130
|
-
value: string | undefined;
|
|
131
|
-
label: string | undefined;
|
|
132
|
-
};
|
|
133
|
-
annual_salary: {
|
|
134
|
-
id: string;
|
|
135
|
-
value: string | undefined;
|
|
136
|
-
label: string | undefined;
|
|
137
|
-
filterValue: number;
|
|
138
|
-
};
|
|
139
|
-
country: {
|
|
140
|
-
id: string;
|
|
141
|
-
value: string | undefined;
|
|
142
|
-
label: string | undefined;
|
|
143
|
-
searchValue: string;
|
|
144
|
-
};
|
|
145
|
-
remove_user: {
|
|
146
|
-
id: string;
|
|
147
|
-
value: number;
|
|
148
|
-
label: import("react/jsx-runtime").JSX.Element;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
}[];
|