mantine-datatable 2.4.18 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableHeader.d.ts","sourceRoot":"","sources":["../DataTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAcnE,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC7D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5C,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;;SAmEgD,aAAa,uBAAuB,CAAC;MAAO,WAAW;AAjEzG,wBAiE0G"}
1
+ {"version":3,"file":"DataTableHeader.d.ts","sourceRoot":"","sources":["../DataTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAcnE,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC7D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5C,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;;SAuEgD,aAAa,uBAAuB,CAAC;MAAO,WAAW;AArEzG,wBAqE0G"}
@@ -10,7 +10,7 @@ type DataTableHeaderCellProps<T> = {
10
10
  sortStatus: DataTableSortProps['sortStatus'];
11
11
  sortIcons: DataTableSortProps['sortIcons'];
12
12
  onSortStatusChange: DataTableSortProps['onSortStatusChange'];
13
- } & Pick<DataTableColumn<T>, 'accessor' | 'sortable' | 'textAlignment' | 'width'>;
14
- export default function DataTableHeaderCell<T>({ className, sx, style, accessor, visibleMediaQuery, title, sortable, sortIcons, textAlignment, width, sortStatus, onSortStatusChange, }: DataTableHeaderCellProps<T>): import("react/jsx-runtime").JSX.Element | null;
13
+ } & Pick<DataTableColumn<T>, 'accessor' | 'sortable' | 'textAlignment' | 'width' | 'filter' | 'filtering'>;
14
+ export default function DataTableHeaderCell<T>({ className, sx, style, accessor, visibleMediaQuery, title, sortable, sortIcons, textAlignment, width, sortStatus, onSortStatusChange, filter, filtering }: DataTableHeaderCellProps<T>): import("react/jsx-runtime").JSX.Element | null;
15
15
  export {};
16
16
  //# sourceMappingURL=DataTableHeaderCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableHeaderCell.d.ts","sourceRoot":"","sources":["../DataTableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,YAAY,EAAE,KAAK,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsCnE,KAAK,wBAAwB,CAAC,CAAC,IAAI;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,EAAE,CAAC;IACR,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1E,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,CAAC,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAAE,EAC7C,SAAS,EACT,EAAE,EACF,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,UAAU,EACV,kBAAkB,GACnB,EAAE,wBAAwB,CAAC,CAAC,CAAC,kDA6D7B"}
1
+ {"version":3,"file":"DataTableHeaderCell.d.ts","sourceRoot":"","sources":["../DataTableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiE,KAAK,YAAY,EAAE,KAAK,EAAE,EAAE,MAAM,eAAe,CAAC;AAG1H,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAuCnE,KAAK,wBAAwB,CAAC,CAAC,IAAI;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,EAAE,CAAC;IACR,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1E,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC,CAAC;AAiB3G,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAAE,EAC7C,SAAS,EACT,EAAE,EACF,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,SAAS,EACV,EAAE,wBAAwB,CAAC,CAAC,CAAC,kDAkE7B"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var ya=Object.create;var Uo=Object.defineProperty;var Ta=Object.getOwnPropertyDescriptor;var wa=Object.getOwnPropertyNames;var Pa=Object.getPrototypeOf,ka=Object.prototype.hasOwnProperty;var Ma=(o,e)=>()=>(o&&(e=o(o=0)),e);var xe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),Ra=(o,e)=>{for(var r in e)Uo(o,r,{get:e[r],enumerable:!0})},or=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of wa(e))!ka.call(o,f)&&f!==r&&Uo(o,f,{get:()=>e[f],enumerable:!(t=Ta(e,f))||t.enumerable});return o};var er=(o,e,r)=>(r=o!=null?ya(Pa(o)):{},or(e||!o||!o.__esModule?Uo(r,"default",{value:o,enumerable:!0}):r,o)),Fa=o=>or(Uo({},"__esModule",{value:!0}),o);var d,a=Ma(()=>{"use strict";d=er(require("react"),1)});var tr=xe((dt,ar)=>{"use strict";a();var va="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ar.exports=va});var sr=xe((ut,lr)=>{"use strict";a();var Aa=tr();function fr(){}function nr(){}nr.resetWarningCache=fr;lr.exports=function(){function o(t,f,l,n,s,m){if(m!==Aa){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function e(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:e,element:o,elementType:o,instanceOf:e,node:o,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:nr,resetWarningCache:fr};return r.PropTypes=r,r}});var cr=xe((It,dr)=>{a();dr.exports=sr()();var mt,xt});var tt={};Ra(tt,{DataTable:()=>qe,differenceBy:()=>Go,getValueAtPath:()=>B,humanize:()=>uo,uniqBy:()=>po});module.exports=Fa(tt);a();a();var _=require("@mantine/core"),Y=require("@mantine/hooks"),Q=require("react");a();var rr=require("@mantine/core"),Ie=require("react/jsx-runtime"),Oa=(0,rr.createStyles)({root:{"&&":{background:"transparent",":last-of-type td":{borderBottom:"none"}}}});function ie(){let{classes:o}=Oa();return(0,Ie.jsx)("tr",{className:o.root,children:(0,Ie.jsx)("td",{})})}a();var so=require("@mantine/core");a();a();var Po=require("react"),K=er(cr());a();var ur={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var La=Object.defineProperty,Ha=Object.defineProperties,Ea=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,pr=(o,e,r)=>e in o?La(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,mr=(o,e)=>{for(var r in e||(e={}))xr.call(e,r)&&pr(o,r,e[r]);if(zo)for(var r of zo(e))Ir.call(e,r)&&pr(o,r,e[r]);return o},Na=(o,e)=>Ha(o,Ea(e)),qa=(o,e)=>{var r={};for(var t in o)xr.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&zo)for(var t of zo(o))e.indexOf(t)<0&&Ir.call(o,t)&&(r[t]=o[t]);return r},lo=(o,e,r)=>{let t=(0,Po.forwardRef)((f,l)=>{var n=f,{color:s="currentColor",size:m=24,stroke:x=2,children:u}=n,p=qa(n,["color","size","stroke","children"]);return(0,Po.createElement)("svg",mr(Na(mr({ref:l},ur),{width:m,height:m,stroke:s,strokeWidth:x,className:`tabler-icon tabler-icon-${o}`}),p),[...r.map(([I,c])=>(0,Po.createElement)(I,c)),...u||[]])});return t.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number]),stroke:K.default.oneOfType([K.default.string,K.default.number])},t.displayName=`${e}`,t};a();var ge=lo("arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);a();var Ce=lo("arrows-vertical","IconArrowsVertical",[["path",{d:"M8 7l4 -4l4 4",key:"svg-0"}],["path",{d:"M8 17l4 4l4 -4",key:"svg-1"}],["path",{d:"M12 3l0 18",key:"svg-2"}]]);a();var Se=lo("database-off","IconDatabaseOff",[["path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74",key:"svg-0"}],["path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6",key:"svg-1"}],["path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]]);var z=require("react/jsx-runtime"),Wa=(0,so.createStyles)(o=>({root:{position:"absolute",top:0,right:0,bottom:0,left:0,flexDirection:"column",pointerEvents:"none",color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[6],opacity:0,transition:"opacity .15s ease"},active:{opacity:1},standardIcon:{fontSize:0,borderRadius:"50%",padding:o.spacing.xs,background:o.colorScheme==="dark"?o.colors.dark[5]:o.colors.gray[2]}}));function he({icon:o,text:e,pt:r,pb:t,active:f,children:l}){let{classes:n,cx:s}=Wa();return(0,z.jsx)(so.Center,{pt:r,pb:t,className:s(n.root,{[n.active]:f}),children:l||(0,z.jsxs)(z.Fragment,{children:[o||(0,z.jsx)("div",{className:n.standardIcon,children:(0,z.jsx)(Se,{})}),(0,z.jsx)(so.Text,{size:"sm",color:"dimmed",children:e})]})})}a();var Zo=require("@mantine/core"),br=require("react");a();var Xo=require("@mantine/core");a();var ir=require("@mantine/core"),gr=require("@mantine/hooks"),Vo=require("react"),Cr=typeof window<"u"?Vo.useLayoutEffect:Vo.useEffect;function co(o){let e=(0,ir.useMantineTheme)(),r=typeof o=="function"?o(e):o;return(0,gr.useMediaQuery)(r||"",!0)}function uo(o){let e=o.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function Go(o,e,r){return o.filter(t=>!e.map(r).includes(r(t)))}function po(o,e){return o.filter((r,t,f)=>t===f.findIndex(l=>e(r)===e(l)))}function B(o,e){return e?e.match(/([^[.\]])+/g).reduce((t,f)=>t&&t[f],o):void 0}var Sr=require("react/jsx-runtime"),Ua=(0,Xo.createStyles)({noWrap:{whiteSpace:"nowrap"},ellipsis:{overflow:"hidden",textOverflow:"ellipsis"}});function be({className:o,sx:e,style:r,visibleMediaQuery:t,title:f,noWrap:l,ellipsis:n,textAlignment:s,width:m}){let{cx:x,classes:u}=Ua();return co(t)?(0,Sr.jsx)(Xo.Box,{component:"th",className:x({[u.noWrap]:l||n,[u.ellipsis]:n},o),sx:[{"&&":{textAlign:s},width:m,minWidth:m,maxWidth:m},e],style:r,children:f}):null}a();var Qo=require("@mantine/core"),hr=require("react/jsx-runtime"),za=(0,Qo.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,Qo.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},shadowVisible:{"&::after":{opacity:1}}}});function Be({shadowVisible:o}){let{cx:e,classes:r}=za();return(0,hr.jsx)("th",{className:e(r.root,{[r.shadowVisible]:o})})}var mo=require("react/jsx-runtime"),Va=(0,Zo.createStyles)((o,{scrollDiff:e,borderColor:r})=>{let t=e<0,f=typeof r=="function"?r(o):r;return{root:{zIndex:2,position:t?"relative":"sticky",bottom:t?e:-1,background:o.colorScheme==="dark"?o.colors.dark[7]:o.white,"&& tr th":{borderTopColor:f}},relative:{position:"relative"},textSelectionDisabled:{userSelect:"none"}}}),Br=(0,br.forwardRef)(function({className:e,style:r,borderColor:t,columns:f,selectionVisible:l,leftShadowVisible:n,scrollDiff:s},m){let{cx:x,classes:u}=Va({scrollDiff:s,borderColor:t});return(0,mo.jsx)(Zo.Box,{component:"tfoot",ref:m,className:x(u.root,e),style:r,children:(0,mo.jsxs)("tr",{children:[l&&(0,mo.jsx)(Be,{shadowVisible:n}),f.map(({accessor:p,hidden:I,visibleMediaQuery:c,textAlignment:C,width:g,footer:h,footerClassName:S,footerStyle:W,footerSx:U,noWrap:F,ellipsis:w})=>I?null:(0,mo.jsx)(be,{className:S,style:W,sx:U,visibleMediaQuery:c,textAlignment:C,width:g,title:h,noWrap:F,ellipsis:w},p))]})})});a();var Dr=require("@mantine/core"),yr=require("react");a();var A=require("@mantine/core");var H=require("react/jsx-runtime"),Ga=(0,A.createStyles)(o=>({sortableColumnHeader:{cursor:"pointer",transition:"background .15s ease","&:hover":{background:o.colorScheme==="dark"?o.colors.dark[6]:o.colors.gray[0]}},sortableColumnHeaderGroup:{gap:"0.25em"},columnHeaderText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sortableColumnHeaderText:{minWidth:0,flexGrow:1},sortableColumnHeaderIcon:{transition:"transform .15s ease"},sortableColumnHeaderIconRotated:{transform:"rotate3d(0, 0, 1, 180deg)"},sortableColumnHeaderUnsortedIcon:{color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[5],transition:"color .15s ease","th:hover &":{color:o.colorScheme==="dark"?o.colors.dark[2]:o.colors.gray[6]}}}));function De({className:o,sx:e,style:r,accessor:t,visibleMediaQuery:f,title:l,sortable:n,sortIcons:s,textAlignment:m,width:x,sortStatus:u,onSortStatusChange:p}){let{cx:I,classes:c}=Ga();if(!co(f))return null;let C=l??uo(t),g=typeof C=="string"?C:void 0,h=n&&p?()=>{p({columnAccessor:t,direction:u?.direction==="asc"?"desc":"asc"})}:void 0;return(0,H.jsx)(A.Box,{component:"th",className:I({[c.sortableColumnHeader]:n},o),sx:[{"&&":{textAlign:m},width:x,minWidth:x,maxWidth:x},e],style:r,role:n?"button":void 0,tabIndex:n?0:void 0,onClick:h,onKeyDown:S=>S.key==="Enter"&&h?.(),children:n||u?.columnAccessor===t?(0,H.jsxs)(A.Group,{className:c.sortableColumnHeaderGroup,position:"apart",noWrap:!0,children:[(0,H.jsx)(A.Box,{className:I(c.columnHeaderText,c.sortableColumnHeaderText),title:g,children:C}),u?.columnAccessor===t?(0,H.jsx)(A.Center,{className:I(c.sortableColumnHeaderIcon,{[c.sortableColumnHeaderIconRotated]:u.direction==="desc"}),role:"img","aria-label":`Sorted ${u.direction==="desc"?"descending":"ascending"}`,children:s?.sorted||(0,H.jsx)(ge,{size:14})}):(0,H.jsx)(A.Center,{className:c.sortableColumnHeaderUnsortedIcon,role:"img","aria-label":"Not sorted",children:s?.unsorted||(0,H.jsx)(Ce,{size:14})})]}):(0,H.jsx)(A.Box,{className:c.columnHeaderText,title:g,children:C})})}a();var xo=require("@mantine/core"),ye=require("react/jsx-runtime"),Xa=(0,xo.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,xo.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},shadowVisible:{"&::after":{opacity:1}},checkboxInput:{cursor:"pointer"}}});function Te({shadowVisible:o,checked:e,indeterminate:r,checkboxProps:t,onChange:f}){let{cx:l,classes:n}=Xa();return(0,ye.jsx)("th",{className:l(n.root,{[n.shadowVisible]:o}),children:(0,ye.jsx)(xo.Checkbox,{classNames:{input:n.checkboxInput},checked:e,indeterminate:r,disabled:!f,onChange:f,...t})})}var Io=require("react/jsx-runtime"),Qa=(0,Dr.createStyles)(o=>({root:{zIndex:2,position:"sticky",top:0,background:o.colorScheme==="dark"?o.colors.dark[7]:o.white},textSelectionDisabled:{userSelect:"none"}})),Tr=(0,yr.forwardRef)(function({className:e,style:r,sortStatus:t,sortIcons:f,onSortStatusChange:l,columns:n,selectionVisible:s,selectionChecked:m,selectionIndeterminate:x,onSelectionChange:u,selectionCheckboxProps:p,leftShadowVisible:I},c){let{classes:C,cx:g}=Qa();return(0,Io.jsx)("thead",{className:g(C.root,e),style:r,ref:c,children:(0,Io.jsxs)("tr",{children:[s&&(0,Io.jsx)(Te,{shadowVisible:I,checked:m,indeterminate:x,checkboxProps:p,onChange:u}),n.map(({accessor:h,hidden:S,visibleMediaQuery:W,textAlignment:U,width:F,title:w,sortable:M,titleClassName:P,titleStyle:O,titleSx:v})=>S?null:(0,Io.jsx)(De,{className:P,style:O,sx:v,accessor:h,visibleMediaQuery:W,textAlignment:U,width:F,title:w,sortable:M,sortStatus:t,sortIcons:f,onSortStatusChange:l},h))]})})});a();var io=require("@mantine/core"),we=require("react/jsx-runtime"),Za=(0,io.createStyles)(o=>({root:{zIndex:3,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",background:o.fn.rgba(o.colorScheme==="dark"?o.colors.dark[8]:o.white,.75),opacity:0,transition:"opacity .15s ease"},fetching:{pointerEvents:"all",opacity:1}}));function Pe({pt:o,pb:e,fetching:r,customContent:t,backgroundBlur:f,size:l,variant:n,color:s}){let{classes:m,cx:x}=Za();return(0,we.jsx)(io.Center,{pt:o,pb:e,className:x(m.root,{[m.fetching]:r}),sx:f?{backdropFilter:`blur(${f}px)`}:void 0,children:r&&(t||(0,we.jsx)(io.Loader,{size:l,variant:n,color:s}))})}a();var $=require("@mantine/core"),Pr=require("react");a();var R=require("@mantine/core"),E=require("react/jsx-runtime"),wr={xs:22,sm:26,md:32,lg:38,xl:44};function ke({size:o,label:e,values:r,value:t,onChange:f,color:l}){return(0,E.jsxs)(R.Group,{spacing:"xs",children:[(0,E.jsx)(R.Text,{size:o,children:e}),(0,E.jsxs)(R.Menu,{withinPortal:!0,withArrow:!0,children:[(0,E.jsx)(R.Menu.Target,{children:(0,E.jsx)(R.Button,{size:o,variant:"default",sx:[{fontWeight:"normal"},n=>({height:wr[o],paddingLeft:n.spacing[o],paddingRight:n.spacing[o]})],children:t})}),(0,E.jsx)(R.Menu.Dropdown,{children:r.map(n=>{let s=n===t;return(0,E.jsx)(R.Menu.Item,{sx:[{height:wr[o]},m=>({"&&":{color:s?m.white:void 0},background:s?m.colors[l||m.primaryColor][6]:void 0})],disabled:s,onClick:()=>f(n),children:(0,E.jsx)(R.Text,{size:o,children:n})},n)})})]})]})}var go=require("react/jsx-runtime"),Ka=(0,$.createStyles)((o,{topBorderColor:e,paginationWrapBreakpoint:r})=>({root:{background:o.colorScheme==="dark"?o.colors.dark[7]:o.white,borderTop:`1px solid ${typeof e=="function"?e(o):e}`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",gap:o.spacing.xs,[o.fn.largerThan(r)]:{flexDirection:"row"}},text:{flex:"1 1 auto"},pagination:{opacity:1,transition:"opacity .15s ease"},paginationFetching:{opacity:0}})),kr=(0,Pr.forwardRef)(function({className:e,style:r,topBorderColor:t,fetching:f,page:l,onPageChange:n,paginationColor:s,paginationSize:m,loadingText:x,noRecordsText:u,paginationText:p,totalRecords:I,recordsPerPage:c,onRecordsPerPageChange:C,recordsPerPageLabel:g,recordsPerPageOptions:h,recordsLength:S,horizontalSpacing:W,paginationWrapBreakpoint:U,getPaginationControlProps:F},w){let M;if(f)M=x;else if(!I)M=u;else{let v=(l-1)*c+1,ho=v+S-1;M=p({from:v,to:ho,totalRecords:I})}let{classes:P,cx:O}=Ka({topBorderColor:t,paginationWrapBreakpoint:U});return(0,go.jsxs)($.Box,{ref:w,px:W??"xs",py:"xs",className:O(P.root,e),style:r,children:[(0,go.jsx)($.Text,{className:P.text,size:m,children:M}),h&&(0,go.jsx)(ke,{size:m,label:g,values:h,color:s,value:c,onChange:C}),(0,go.jsx)($.Pagination,{color:s,className:O(P.pagination,{[P.paginationFetching]:f||!S}),value:l,onChange:n,size:m,total:Math.ceil(I/c),getControlProps:F})]})});a();var Yo=require("@mantine/core");a();var Ko=require("@mantine/core");var Mr=require("react/jsx-runtime"),$a=(0,Ko.createStyles)({withPointerCursor:{cursor:"pointer"},noWrap:{whiteSpace:"nowrap"},ellipsis:{overflow:"hidden",textOverflow:"ellipsis"}});function Me({className:o,sx:e,style:r,visibleMediaQuery:t,record:f,recordIndex:l,onClick:n,noWrap:s,ellipsis:m,textAlignment:x,width:u,accessor:p,render:I,defaultRender:c,customCellAttributes:C}){let{cx:g,classes:h}=$a();return co(t)?(0,Mr.jsx)(Ko.Box,{component:"td",className:g({[h.noWrap]:s||m,[h.ellipsis]:m,[h.withPointerCursor]:n},o),sx:[{width:u,minWidth:u,maxWidth:u,textAlign:x},e],style:r,onClick:n,...C?.(f,l),children:I?I(f,l):c?c(f,l,p):B(f,p)}):null}a();var $o=require("@mantine/core");a();var Re=require("@mantine/hooks"),N=require("react");function Rr(o){let[e,r]=(0,N.useState)(null),t=o?.join(":")||"";return(0,N.useEffect)(()=>{r(null)},[t]),{lastSelectionChangeIndex:e,setLastSelectionChangeIndex:r}}function Fr(o){let[e,r]=(0,N.useState)(null);return(0,N.useEffect)(()=>{o&&r(null)},[o]),{rowContextMenuInfo:e,setRowContextMenuInfo:r}}function Or({rowExpansion:o,records:e,idAccessor:r}){let t=[];if(o&&e){let{trigger:s,allowMultiple:m,initiallyExpanded:x}=o;e&&s==="always"?t=e.map(u=>B(u,r)):x&&(t=e.filter(x).map(u=>B(u,r)),m||(t=[t[0]]))}let f,l,n=(0,N.useState)(t);if(o){let{trigger:s,allowMultiple:m,collapseProps:x,content:u}=o;o.expanded?{recordIds:f,onRecordIdsChange:l}=o.expanded:[f,l]=n;let p=I=>l?.(f.filter(c=>c!==B(I,r)));return{expandOnClick:s!=="always"&&s!=="never",isRowExpanded:I=>s==="always"?!0:f.includes(B(I,r)),expandRow:I=>{let c=B(I,r);l?.(m?[...f,c]:[c])},collapseRow:p,collapseProps:x,content:(I,c)=>()=>u({record:I,recordIndex:c,collapse:()=>p(I)})}}}function vr(o,e){let[r,t]=(0,N.useState)(o),[f,l]=(0,N.useState)(o),n=(0,Re.useTimeout)(()=>t(!0),0),s=(0,Re.useTimeout)(()=>l(!1),e||200);return(0,N.useEffect)(()=>{o?(s.clear(),l(!0),n.start()):(n.clear(),t(!1),s.start())},[n,s,o]),{expanded:r,visible:f}}var V=require("react/jsx-runtime"),Ya=(0,$o.createStyles)({cell:{"&&":{borderBottomWidth:0,padding:0}},expandedCell:{"&&":{borderBottomWidth:1}}});function Fe({open:o,colSpan:e,content:r,collapseProps:t}){let{expanded:f,visible:l}=vr(o,t?.transitionDuration),{cx:n,classes:s}=Ya();return l?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("tr",{}),(0,V.jsx)("tr",{children:(0,V.jsx)("td",{className:n(s.cell,{[s.expandedCell]:f}),colSpan:e,children:(0,V.jsx)($o.Collapse,{in:f,...t,children:r()})})})]}):null}a();var Co=require("@mantine/core"),Oe=require("react/jsx-runtime"),_a=(0,Co.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",zIndex:1,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,Co.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},withRightShadow:{"&::after":{opacity:1}},checkbox:{cursor:"pointer"}}});function ve({record:o,recordIndex:e,withRightShadow:r,getCheckboxProps:t,...f}){let{cx:l,classes:n}=_a();return(0,Oe.jsx)("td",{className:l(n.root,{[n.withRightShadow]:r}),onClick:s=>s.stopPropagation(),children:(0,Oe.jsx)(Co.Checkbox,{classNames:{input:n.checkbox},...f,...t(o,e)})})}var G=require("react/jsx-runtime"),ja=(0,Yo.createStyles)(o=>{let e=o.colors[o.primaryColor][6];return{withPointerCursor:{cursor:"pointer"},selected:{"&&":{"tr&":{background:o.colorScheme==="dark"?o.fn.darken(e,.6):o.fn.lighten(e,.9)},"table[data-striped] tbody &:nth-of-type(odd)":{background:o.colorScheme==="dark"?o.fn.darken(e,.55):o.fn.lighten(e,.85)}}},contextMenuVisible:{"&&":{"tr&":{background:o.colorScheme==="dark"?o.fn.darken(e,.5):o.fn.lighten(e,.7)},"table[data-striped] tbody &:nth-of-type(odd)":{background:o.colorScheme==="dark"?o.fn.darken(e,.45):o.fn.lighten(e,.65)}}}}});function Ae({record:o,recordIndex:e,columns:r,defaultColumnRender:t,selectionVisible:f,selectionChecked:l,onSelectionChange:n,isRecordSelectable:s,getSelectionCheckboxProps:m,onClick:x,onCellClick:u,onContextMenu:p,expansion:I,customRowAttributes:c,className:C,style:g,sx:h,contextMenuVisible:S,leftShadowVisible:W}){let{cx:U,classes:F}=ja();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(Yo.Box,{component:"tr",className:U({[F.withPointerCursor]:x||I?.expandOnClick,[F.selected]:l,[F.contextMenuVisible]:S},typeof C=="function"?C(o,e):C),onClick:w=>{if(I){let{isRowExpanded:M,expandOnClick:P,expandRow:O,collapseRow:v}=I;P&&(M(o)?v(o):O(o))}x?.(w)},style:typeof g=="function"?g(o,e):g,sx:h,...c?.(o,e),onContextMenu:p,children:[f&&(0,G.jsx)(ve,{record:o,recordIndex:e,withRightShadow:W,checked:l,disabled:!n||(s?!s(o,e):!1),onChange:n,getCheckboxProps:m}),r.map((w,M)=>{let{accessor:P,hidden:O,visibleMediaQuery:v,textAlignment:ho,noWrap:_o,ellipsis:jo,width:Jo,render:oe,cellsClassName:bo,cellsStyle:Bo,cellsSx:ee,customCellAttributes:re}=w,Mo;return u&&(Mo=ae=>u({event:ae,record:o,recordIndex:e,column:w,columnIndex:M})),O?null:(0,G.jsx)(Me,{className:typeof bo=="function"?bo(o,e):bo,style:typeof Bo=="function"?Bo(o,e):Bo,sx:ee,visibleMediaQuery:v,record:o,recordIndex:e,onClick:Mo,accessor:P,textAlignment:ho,noWrap:_o,ellipsis:jo,width:Jo,render:oe,defaultRender:t,customCellAttributes:re},P)})]}),I&&(0,G.jsx)(Fe,{colSpan:r.filter(w=>!w.hidden).length+(f?1:0),open:I.isRowExpanded(o),content:I.content(o,e),collapseProps:I.collapseProps})]})}a();var So=require("@mantine/core"),X=require("@mantine/hooks"),Ar=require("react/jsx-runtime"),Ja=(0,So.createStyles)(o=>({root:{position:"fixed",border:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,overflow:"hidden",transition:"all .15s ease"}}));function Le({borderRadius:o="xs",shadow:e="sm",zIndex:r=3,y:t,x:f,onDestroy:l,children:n}){(0,X.useWindowEvent)("resize",l),(0,X.useWindowEvent)("scroll",l);let s=(0,X.useClickOutside)(l),{ref:m,width:x,height:u}=(0,X.useElementSize)(),p=(0,X.useMergedRef)(s,m),{innerWidth:I,innerHeight:c}=window,{classes:C,theme:{dir:g,spacing:h}}=Ja(),S=(0,So.px)(h.md);return(0,Ar.jsx)(So.Paper,{ref:p,shadow:e,radius:o,className:C.root,sx:{zIndex:r,top:t+u+S>c?c-u-S:t,left:g==="ltr"?f+x+S>I?I-x-S:f:I-S-(f-x-S<0?x+S:f)},children:n})}a();var Lr=require("@mantine/core"),Hr=require("react/jsx-runtime"),ot=(0,Lr.createStyles)(o=>({root:{height:1,background:o.colorScheme==="dark"?o.colors.dark[5]:o.colors.gray[1]}}));function He(){let{classes:o}=ot();return(0,Hr.jsx)("div",{className:o.root})}a();var q=require("@mantine/core"),ko=require("react/jsx-runtime"),et=(0,q.createStyles)((o,{color:e})=>{let r=(0,q.px)(o.spacing.sm)/2;return{root:{width:"100%",display:"flex",alignItems:"center",paddingTop:r,paddingBottom:r,paddingLeft:o.spacing.sm,paddingRight:o.spacing.sm,color:e&&o.colors[e][6],transition:"background .15s ease","&[disabled]":{cursor:"not-allowed",color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[5]},"&:hover:not([disabled])":{background:o.fn.rgba(e?o.colors[e][6]:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[4],e?o.colorScheme==="dark"?.15:.08:.25)},"&:active:not([disabled])":{background:o.fn.rgba(e?o.colors[e][6]:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[4],e?o.colorScheme==="dark"?.3:.2:.5)}},icon:{fontSize:0,marginRight:o.spacing.xs},title:{whiteSpace:"nowrap"}}});function Ee({icon:o,title:e,color:r,disabled:t,onClick:f}){let{classes:l}=et({color:r});return(0,ko.jsxs)(q.UnstyledButton,{className:l.root,disabled:t,onClick:f,children:[o&&(0,ko.jsx)(q.Box,{className:l.icon,children:o}),(0,ko.jsx)(q.Text,{className:l.title,size:"sm",children:e})]})}a();var to=require("@mantine/core"),ao=require("react/jsx-runtime"),rt=(0,to.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{flex:"1 1 100%"},scrollbar:{'&[data-state="visible"]':{background:"transparent"},"div::before":{pointerEvents:"none"}},corner:{background:"transparent"},thumb:{zIndex:3},shadow:{position:"absolute",pointerEvents:"none",opacity:0,transition:"opacity .15s ease"},topShadow:{zIndex:2,left:0,right:0,height:o.spacing.sm,background:`linear-gradient(${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},leftShadow:{zIndex:3,top:0,left:0,bottom:0,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},rightShadow:{zIndex:2,top:0,bottom:0,right:0,width:o.spacing.sm,background:`linear-gradient(to left, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to left, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},bottomShadow:{zIndex:2,left:0,right:0,height:o.spacing.sm,background:`linear-gradient(${o.fn.rgba(o.black,0)}, ${o.fn.rgba(o.black,e)}), linear-gradient(${o.fn.rgba(o.black,0)} 30%, ${o.fn.rgba(o.black,e)})`},shadowVisible:{opacity:1}}});function Ne({topShadowVisible:o,leftShadowVisible:e,rightShadowVisible:r,bottomShadowVisible:t,headerHeight:f,footerHeight:l,onScrollPositionChange:n,children:s,viewportRef:m}){let x=l?l-1:0,{cx:u,classes:p}=rt();return(0,ao.jsxs)(to.ScrollArea,{viewportRef:m,classNames:{root:p.root,scrollbar:p.scrollbar,thumb:p.thumb,corner:p.corner},styles:{scrollbar:{marginTop:f,marginBottom:x}},onScrollPositionChange:n,children:[s,(0,ao.jsx)(to.Box,{className:u(p.shadow,p.topShadow,{[p.shadowVisible]:o}),sx:{top:f}}),(0,ao.jsx)("div",{className:u(p.shadow,p.leftShadow,{[p.shadowVisible]:e})}),(0,ao.jsx)("div",{className:u(p.shadow,p.rightShadow,{[p.shadowVisible]:r})}),(0,ao.jsx)(to.Box,{className:u(p.shadow,p.bottomShadow,{[p.shadowVisible]:t}),sx:{bottom:x}})]})}var T=require("react/jsx-runtime"),Er={},at=(0,_.createStyles)((o,{borderColor:e,rowBorderColor:r})=>{let t=typeof e=="function"?e(o):e,f=typeof r=="function"?r(o):r;return{root:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",tr:{backgroundColor:o.colorScheme==="dark"?o.colors.dark[7]:o.white},"&&":{"thead tr th":{borderBottomColor:t},"tbody tr td":{borderTopColor:f}}},lastRowBorderBottomVisible:{"tbody tr:last-of-type td":{borderBottom:`1px solid ${f}`}},textSelectionDisabled:{userSelect:"none"},table:{borderCollapse:"separate",borderSpacing:0},tableWithBorder:{border:`1px solid ${t}`},tableWithColumnBorders:{"&&":{"th, td":{":not(:first-of-type)":{borderLeft:`1px solid ${f}`}}}},verticalAlignmentTop:{td:{verticalAlign:"top"}},verticalAlignmentBottom:{td:{verticalAlign:"bottom"}}}});function qe({withBorder:o,borderRadius:e,borderColor:r=D=>D.colorScheme==="dark"?D.colors.dark[4]:D.colors.gray[3],rowBorderColor:t=D=>D.fn.rgba(D.colorScheme==="dark"?D.colors.dark[4]:D.colors.gray[3],.65),withColumnBorders:f,textSelectionDisabled:l,height:n="100%",minHeight:s,shadow:m,verticalAlignment:x="center",fetching:u,columns:p,defaultColumnRender:I,idAccessor:c="id",records:C,selectedRecords:g,onSelectedRecordsChange:h,isRecordSelectable:S,allRecordsSelectionCheckboxProps:W={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:U=(D,j)=>({"aria-label":`Select record ${j+1}`}),sortStatus:F,sortIcons:w,onSortStatusChange:M,horizontalSpacing:P,page:O,onPageChange:v,totalRecords:ho,recordsPerPage:_o,onRecordsPerPageChange:jo,recordsPerPageOptions:Jo,recordsPerPageLabel:oe="Records per page",paginationColor:bo,paginationSize:Bo="sm",paginationText:ee=({from:D,to:j,totalRecords:J})=>`${D} - ${j} / ${J}`,paginationWrapBreakpoint:re="sm",getPaginationControlProps:Mo=D=>D==="previous"?{"aria-label":"Previous page"}:D==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:ae,customLoader:Nr,loaderSize:qr,loaderVariant:Wr,loaderColor:Ur,loadingText:zr="...",emptyState:Vr,noRecordsText:We="No records",noRecordsIcon:Gr,striped:Xr,noHeader:Qr,onRowClick:te,onCellClick:Zr,onScrollToTop:Ue,onScrollToBottom:ze,onScrollToLeft:Ve,onScrollToRight:Ge,rowContextMenu:L,rowExpansion:Kr,rowClassName:$r,rowStyle:Yr,rowSx:_r,customRowAttributes:jr,scrollViewportRef:Jr,bodyRef:oa,m:ea,my:ra,mx:aa,mt:ta,mb:fa,ml:na,mr:la,sx:sa,className:da,classNames:Ro,style:ca,styles:fe,...ua}){let{ref:D,width:j,height:J}=(0,Y.useElementSize)(),{ref:pa,height:ne}=(0,Y.useElementSize)(),{ref:ma,width:le,height:Do}=(0,Y.useElementSize)(),{ref:xa,height:Ia}=(0,Y.useElementSize)(),{ref:ia,height:Xe}=(0,Y.useElementSize)(),[se,Qe]=(0,Q.useState)(!0),[de,Ze]=(0,Q.useState)(!0),[Fo,Ke]=(0,Q.useState)(!0),[ce,$e]=(0,Q.useState)(!0),{rowContextMenuInfo:oo,setRowContextMenuInfo:fo}=Fr(u),ga=Or({rowExpansion:Kr,records:C,idAccessor:c}),ue=(0,Q.useCallback)(()=>{if(!u&&L&&fo(null),u||Do<=J)Qe(!0),Ze(!0);else{let i=D.current.scrollTop,b=i===0,k=Do-i-J<1;Qe(b),Ze(k),b&&b!==se&&Ue?.(),k&&k!==de&&ze?.()}if(u||le===j)Ke(!0),$e(!0);else{let i=D.current.scrollLeft,b=i===0,k=le-i-j<1;Ke(b),$e(k),b&&b!==Fo&&Ve?.(),k&&k!==ce&&Ge?.()}},[u,ze,Ve,Ge,Ue,L,J,D,j,de,Fo,ce,se,fo,Do,le]);Cr(ue,[ue]);let Ca=(0,Q.useCallback)(i=>{D.current.scrollTo({top:0,left:0}),v(i)},[v,D]),Oo=C?.length,Ye=C?.map(i=>B(i,c)),vo=!!g,yo=g?.map(i=>B(i,c)),_e=Ye!==void 0&&yo!==void 0&&yo.length>0,pe=S?C?.filter(S):C,Ao=pe?.map(i=>B(i,c)),Lo=_e&&Ao.every(i=>yo.includes(i)),Sa=_e&&Ao.some(i=>yo.includes(i)),ha=(0,Q.useCallback)(()=>{h?.(Lo?g.filter(i=>!Ao.includes(B(i,c))):po([...g,...pe],i=>B(i,c)))},[Lo,c,h,Ao,pe,g]),{lastSelectionChangeIndex:Ho,setLastSelectionChangeIndex:ba}=Rr(Ye),me=vo&&!Fo,{cx:je,classes:Z,theme:Ba}=at({borderColor:r,rowBorderColor:t}),Da={m:ea,my:ra,mx:aa,mt:ta,mb:fa,ml:na,mr:la},Eo=typeof fe=="function"?fe(Ba,Er,Er):fe;return(0,T.jsxs)(_.Box,{...Da,className:je(Z.root,{[Z.tableWithBorder]:o},da,Ro?.root),sx:[i=>({borderRadius:i.radius[e]||e,boxShadow:i.shadows[m]||m,height:n,minHeight:s}),...(0,_.packSx)(sa)],style:{...Eo?.root,...ca},children:[(0,T.jsx)(Ne,{viewportRef:(0,Y.useMergedRef)(D,Jr||null),topShadowVisible:!se,leftShadowVisible:!(g||Fo),rightShadowVisible:!ce,bottomShadowVisible:!de,headerHeight:ne,footerHeight:Ia,onScrollPositionChange:ue,children:(0,T.jsxs)(_.Table,{ref:ma,horizontalSpacing:P,className:je(Z.table,{[Z.tableWithColumnBorders]:f,[Z.lastRowBorderBottomVisible]:Do<J,[Z.textSelectionDisabled]:l,[Z.verticalAlignmentTop]:x==="top",[Z.verticalAlignmentBottom]:x==="bottom"}),striped:Oo?Xr:!1,...ua,children:[Qr?null:(0,T.jsx)(Tr,{ref:pa,className:Ro?.header,style:Eo?.header,columns:p,sortStatus:F,sortIcons:w,onSortStatusChange:M,selectionVisible:vo,selectionChecked:Lo,selectionIndeterminate:Sa&&!Lo,onSelectionChange:ha,selectionCheckboxProps:W,leftShadowVisible:me}),(0,T.jsx)("tbody",{ref:oa,children:Oo?C.map((i,b)=>{let k=B(i,c),To=yo?.includes(k)||!1,No=!1,qo=!1;if(L){let{hidden:y}=L;(!y||!(typeof y=="function"?y(i,b):y))&&(L.trigger==="click"?No=!0:qo=!0)}let Wo;h&&(Wo=y=>{if(y.nativeEvent.shiftKey&&Ho!==null){let no=C.filter(b>Ho?(eo,ro)=>ro>=Ho&&ro<=b&&(S?S(eo,ro):!0):(eo,ro)=>ro>=b&&ro<=Ho&&(S?S(eo,ro):!0));h(To?Go(g,no,eo=>B(eo,c)):po([...g,...no],eo=>B(eo,c)))}else h(To?g.filter(no=>B(no,c)!==k):po([...g,i],no=>B(no,c)));ba(b)});let wo;No?wo=y=>{fo({y:y.clientY,x:y.clientX,record:i,recordIndex:b}),te?.(i,b,y)}:te&&(wo=y=>{te(i,b,y)});let Je;return qo&&(Je=y=>{y.preventDefault(),fo({y:y.clientY,x:y.clientX,record:i,recordIndex:b})}),(0,T.jsx)(Ae,{record:i,recordIndex:b,columns:p,defaultColumnRender:I,selectionVisible:vo,selectionChecked:To,onSelectionChange:Wo,isRecordSelectable:S,getSelectionCheckboxProps:U,onClick:wo,onCellClick:Zr,onContextMenu:Je,contextMenuVisible:oo?B(oo.record,c)===k:!1,expansion:ga,className:$r,style:Yr,sx:_r,customRowAttributes:jr,leftShadowVisible:me},k)}):(0,T.jsx)(ie,{})}),p.some(i=>i.footer)&&(0,T.jsx)(Br,{ref:xa,className:Ro?.footer,style:Eo?.footer,borderColor:r,columns:p,selectionVisible:vo,leftShadowVisible:me,scrollDiff:Do-J})]})}),O&&(0,T.jsx)(kr,{ref:ia,className:Ro?.pagination,style:Eo?.pagination,topBorderColor:r,horizontalSpacing:P,fetching:u,page:O,onPageChange:Ca,totalRecords:ho,recordsPerPage:_o,onRecordsPerPageChange:jo,recordsPerPageOptions:Jo,recordsPerPageLabel:oe,paginationColor:bo,paginationSize:Bo,paginationText:ee,paginationWrapBreakpoint:re,getPaginationControlProps:Mo,noRecordsText:We,loadingText:zr,recordsLength:Oo}),(0,T.jsx)(Pe,{pt:ne,pb:Xe,fetching:u,backgroundBlur:ae,customContent:Nr,size:qr,variant:Wr,color:Ur}),(0,T.jsx)(he,{pt:ne,pb:Xe,icon:Gr,text:We,active:!u&&!Oo,children:Vr}),L&&oo&&(0,T.jsx)(Le,{zIndex:L.zIndex,borderRadius:L.borderRadius,shadow:L.shadow,y:oo.y,x:oo.x,onDestroy:()=>fo(null),children:L.items(oo.record,oo.recordIndex).map(({divider:i,key:b,title:k,icon:To,color:No,hidden:qo,disabled:Wo,onClick:wo})=>i?(0,T.jsx)(He,{},b):qo?null:(0,T.jsx)(Ee,{title:k??uo(b),icon:To,color:No,disabled:Wo,onClick:()=>{fo(null),wo()}},b))})]})}a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();
1
+ "use strict";var Pa=Object.create;var Uo=Object.defineProperty;var wa=Object.getOwnPropertyDescriptor;var ka=Object.getOwnPropertyNames;var Ra=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty;var Ma=(o,e)=>()=>(o&&(e=o(o=0)),e);var xe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),Oa=(o,e)=>{for(var r in e)Uo(o,r,{get:e[r],enumerable:!0})},er=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of ka(e))!Fa.call(o,f)&&f!==r&&Uo(o,f,{get:()=>e[f],enumerable:!(t=wa(e,f))||t.enumerable});return o};var rr=(o,e,r)=>(r=o!=null?Pa(Ra(o)):{},er(e||!o||!o.__esModule?Uo(r,"default",{value:o,enumerable:!0}):r,o)),va=o=>er(Uo({},"__esModule",{value:!0}),o);var s,a=Ma(()=>{"use strict";s=rr(require("react"),1)});var fr=xe((pt,tr)=>{"use strict";a();var La="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";tr.exports=La});var dr=xe((xt,sr)=>{"use strict";a();var Ha=fr();function nr(){}function lr(){}lr.resetWarningCache=nr;sr.exports=function(){function o(t,f,l,n,d,p){if(p!==Ha){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function e(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:e,element:o,elementType:o,instanceOf:e,node:o,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:lr,resetWarningCache:nr};return r.PropTypes=r,r}});var ur=xe((Ct,cr)=>{a();cr.exports=dr()();var it,gt});var lt={};Oa(lt,{DataTable:()=>We,differenceBy:()=>Xo,getValueAtPath:()=>B,humanize:()=>po,uniqBy:()=>mo});module.exports=va(lt);a();a();var j=require("@mantine/core"),_=require("@mantine/hooks"),Q=require("react");a();var ar=require("@mantine/core"),Ie=require("react/jsx-runtime"),Aa=(0,ar.createStyles)({root:{"&&":{background:"transparent",":last-of-type td":{borderBottom:"none"}}}});function ie(){let{classes:o}=Aa();return(0,Ie.jsx)("tr",{className:o.root,children:(0,Ie.jsx)("td",{})})}a();var co=require("@mantine/core");a();a();var ko=require("react"),K=rr(ur());a();var pr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ea=Object.defineProperty,Na=Object.defineProperties,qa=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,mr=(o,e,r)=>e in o?Ea(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,xr=(o,e)=>{for(var r in e||(e={}))Ir.call(e,r)&&mr(o,r,e[r]);if(Vo)for(var r of Vo(e))ir.call(e,r)&&mr(o,r,e[r]);return o},Wa=(o,e)=>Na(o,qa(e)),za=(o,e)=>{var r={};for(var t in o)Ir.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&Vo)for(var t of Vo(o))e.indexOf(t)<0&&ir.call(o,t)&&(r[t]=o[t]);return r},$=(o,e,r)=>{let t=(0,ko.forwardRef)((f,l)=>{var n=f,{color:d="currentColor",size:p=24,stroke:x=2,children:c}=n,u=za(n,["color","size","stroke","children"]);return(0,ko.createElement)("svg",xr(Wa(xr({ref:l},pr),{width:p,height:p,stroke:d,strokeWidth:x,className:`tabler-icon tabler-icon-${o}`}),u),[...r.map(([I,m])=>(0,ko.createElement)(I,m)),...c||[]])});return t.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number]),stroke:K.default.oneOfType([K.default.string,K.default.number])},t.displayName=`${e}`,t};a();var ge=$("arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);a();var Ce=$("arrows-vertical","IconArrowsVertical",[["path",{d:"M8 7l4 -4l4 4",key:"svg-0"}],["path",{d:"M8 17l4 4l4 -4",key:"svg-1"}],["path",{d:"M12 3l0 18",key:"svg-2"}]]);a();var Se=$("database-off","IconDatabaseOff",[["path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74",key:"svg-0"}],["path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6",key:"svg-1"}],["path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]]);a();var he=$("filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]);var U=require("react/jsx-runtime"),Ua=(0,co.createStyles)(o=>({root:{position:"absolute",top:0,right:0,bottom:0,left:0,flexDirection:"column",pointerEvents:"none",color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[6],opacity:0,transition:"opacity .15s ease"},active:{opacity:1},standardIcon:{fontSize:0,borderRadius:"50%",padding:o.spacing.xs,background:o.colorScheme==="dark"?o.colors.dark[5]:o.colors.gray[2]}}));function be({icon:o,text:e,pt:r,pb:t,active:f,children:l}){let{classes:n,cx:d}=Ua();return(0,U.jsx)(co.Center,{pt:r,pb:t,className:d(n.root,{[n.active]:f}),children:l||(0,U.jsxs)(U.Fragment,{children:[o||(0,U.jsx)("div",{className:n.standardIcon,children:(0,U.jsx)(Se,{})}),(0,U.jsx)(co.Text,{size:"sm",color:"dimmed",children:e})]})})}a();var Ko=require("@mantine/core"),Br=require("react");a();var Qo=require("@mantine/core");a();var gr=require("@mantine/core"),Cr=require("@mantine/hooks"),Go=require("react"),Sr=typeof window<"u"?Go.useLayoutEffect:Go.useEffect;function uo(o){let e=(0,gr.useMantineTheme)(),r=typeof o=="function"?o(e):o;return(0,Cr.useMediaQuery)(r||"",!0)}function po(o){let e=o.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function Xo(o,e,r){return o.filter(t=>!e.map(r).includes(r(t)))}function mo(o,e){return o.filter((r,t,f)=>t===f.findIndex(l=>e(r)===e(l)))}function B(o,e){return e?e.match(/([^[.\]])+/g).reduce((t,f)=>t&&t[f],o):void 0}var hr=require("react/jsx-runtime"),Va=(0,Qo.createStyles)({noWrap:{whiteSpace:"nowrap"},ellipsis:{overflow:"hidden",textOverflow:"ellipsis"}});function Be({className:o,sx:e,style:r,visibleMediaQuery:t,title:f,noWrap:l,ellipsis:n,textAlignment:d,width:p}){let{cx:x,classes:c}=Va();return uo(t)?(0,hr.jsx)(Qo.Box,{component:"th",className:x({[c.noWrap]:l||n,[c.ellipsis]:n},o),sx:[{"&&":{textAlign:d},width:p,minWidth:p,maxWidth:p},e],style:r,children:f}):null}a();var Zo=require("@mantine/core"),br=require("react/jsx-runtime"),Ga=(0,Zo.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,Zo.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},shadowVisible:{"&::after":{opacity:1}}}});function De({shadowVisible:o}){let{cx:e,classes:r}=Ga();return(0,br.jsx)("th",{className:e(r.root,{[r.shadowVisible]:o})})}var xo=require("react/jsx-runtime"),Xa=(0,Ko.createStyles)((o,{scrollDiff:e,borderColor:r})=>{let t=e<0,f=typeof r=="function"?r(o):r;return{root:{zIndex:2,position:t?"relative":"sticky",bottom:t?e:-1,background:o.colorScheme==="dark"?o.colors.dark[7]:o.white,"&& tr th":{borderTopColor:f}},relative:{position:"relative"},textSelectionDisabled:{userSelect:"none"}}}),Dr=(0,Br.forwardRef)(function({className:e,style:r,borderColor:t,columns:f,selectionVisible:l,leftShadowVisible:n,scrollDiff:d},p){let{cx:x,classes:c}=Xa({scrollDiff:d,borderColor:t});return(0,xo.jsx)(Ko.Box,{component:"tfoot",ref:p,className:x(c.root,e),style:r,children:(0,xo.jsxs)("tr",{children:[l&&(0,xo.jsx)(De,{shadowVisible:n}),f.map(({accessor:u,hidden:I,visibleMediaQuery:m,textAlignment:S,width:g,footer:h,footerClassName:C,footerStyle:O,footerSx:M,noWrap:L,ellipsis:k})=>I?null:(0,xo.jsx)(Be,{className:C,style:O,sx:M,visibleMediaQuery:m,textAlignment:S,width:g,title:h,noWrap:L,ellipsis:k},u))]})})});a();var Tr=require("@mantine/core"),Pr=require("react");a();var P=require("@mantine/core"),yr=require("@mantine/hooks");var y=require("react/jsx-runtime"),Qa=(0,P.createStyles)(o=>({sortableColumnHeader:{cursor:"pointer",transition:"background .15s ease","&:hover:not(:has(button:hover))":{background:o.colorScheme==="dark"?o.colors.dark[6]:o.colors.gray[0]}},sortableColumnHeaderGroup:{gap:"0.25em"},columnHeaderText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sortableColumnHeaderText:{minWidth:0,flexGrow:1},sortableColumnHeaderIcon:{transition:"transform .15s ease"},sortableColumnHeaderIconRotated:{transform:"rotate3d(0, 0, 1, 180deg)"},sortableColumnHeaderUnsortedIcon:{color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[5],transition:"color .15s ease","th:hover &":{color:o.colorScheme==="dark"?o.colors.dark[2]:o.colors.gray[6]}}}));function Za({children:o,isActive:e}){let[r,{close:t,toggle:f}]=(0,yr.useDisclosure)(!1);return(0,y.jsxs)(P.Popover,{withArrow:!0,withinPortal:!0,shadow:"md",opened:r,onClose:t,trapFocus:!0,children:[(0,y.jsx)(P.Popover.Target,{children:(0,y.jsx)(P.ActionIcon,{onClick:l=>{l.preventDefault(),f()},variant:e?"default":"subtle",children:(0,y.jsx)(he,{size:14})})}),(0,y.jsx)(P.Popover.Dropdown,{children:typeof o=="function"?o({close:t}):o})]})}function ye({className:o,sx:e,style:r,accessor:t,visibleMediaQuery:f,title:l,sortable:n,sortIcons:d,textAlignment:p,width:x,sortStatus:c,onSortStatusChange:u,filter:I,filtering:m}){let{cx:S,classes:g}=Qa();if(!uo(f))return null;let h=l??po(t),C=typeof h=="string"?h:void 0,O=n&&u?M=>{M?.defaultPrevented||u({columnAccessor:t,direction:c?.columnAccessor===t?c.direction==="asc"?"desc":"asc":c?.direction??"asc"})}:void 0;return(0,y.jsx)(P.Box,{component:"th",className:S({[g.sortableColumnHeader]:n},o),sx:[{"&&":{textAlign:p},width:x,minWidth:x,maxWidth:x},e],style:r,role:n?"button":void 0,tabIndex:n?0:void 0,onClick:O,onKeyDown:M=>M.key==="Enter"&&O?.(),children:(0,y.jsxs)(P.Group,{className:g.sortableColumnHeaderGroup,position:"apart",noWrap:!0,children:[(0,y.jsx)(P.Box,{className:S(g.columnHeaderText,g.sortableColumnHeaderText),title:C,children:h}),n||c?.columnAccessor===t?(0,y.jsx)(y.Fragment,{children:c?.columnAccessor===t?(0,y.jsx)(P.Center,{className:S(g.sortableColumnHeaderIcon,{[g.sortableColumnHeaderIconRotated]:c.direction==="desc"}),role:"img","aria-label":`Sorted ${c.direction==="desc"?"descending":"ascending"}`,children:d?.sorted||(0,y.jsx)(ge,{size:14})}):(0,y.jsx)(P.Center,{className:g.sortableColumnHeaderUnsortedIcon,role:"img","aria-label":"Not sorted",children:d?.unsorted||(0,y.jsx)(Ce,{size:14})})}):null,I?(0,y.jsx)(Za,{isActive:!!m,children:I}):null]})})}a();var Io=require("@mantine/core"),Te=require("react/jsx-runtime"),Ka=(0,Io.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,Io.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},shadowVisible:{"&::after":{opacity:1}},checkboxInput:{cursor:"pointer"}}});function Pe({shadowVisible:o,checked:e,indeterminate:r,checkboxProps:t,onChange:f}){let{cx:l,classes:n}=Ka();return(0,Te.jsx)("th",{className:l(n.root,{[n.shadowVisible]:o}),children:(0,Te.jsx)(Io.Checkbox,{classNames:{input:n.checkboxInput},checked:e,indeterminate:r,disabled:!f,onChange:f,...t})})}var io=require("react/jsx-runtime"),$a=(0,Tr.createStyles)(o=>({root:{zIndex:2,position:"sticky",top:0,background:o.colorScheme==="dark"?o.colors.dark[7]:o.white},textSelectionDisabled:{userSelect:"none"}})),wr=(0,Pr.forwardRef)(function({className:e,style:r,sortStatus:t,sortIcons:f,onSortStatusChange:l,columns:n,selectionVisible:d,selectionChecked:p,selectionIndeterminate:x,onSelectionChange:c,selectionCheckboxProps:u,leftShadowVisible:I},m){let{classes:S,cx:g}=$a();return(0,io.jsx)("thead",{className:g(S.root,e),style:r,ref:m,children:(0,io.jsxs)("tr",{children:[d&&(0,io.jsx)(Pe,{shadowVisible:I,checked:p,indeterminate:x,checkboxProps:u,onChange:c}),n.map(({accessor:h,hidden:C,visibleMediaQuery:O,textAlignment:M,width:L,title:k,sortable:v,titleClassName:R,titleStyle:H,titleSx:E,filter:J,filtering:bo})=>C?null:(0,io.jsx)(ye,{className:R,style:H,sx:E,accessor:h,visibleMediaQuery:O,textAlignment:M,width:L,title:k,sortable:v,sortStatus:t,sortIcons:f,onSortStatusChange:l,filter:J,filtering:bo},h))]})})});a();var go=require("@mantine/core"),we=require("react/jsx-runtime"),Ya=(0,go.createStyles)(o=>({root:{zIndex:3,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",background:o.fn.rgba(o.colorScheme==="dark"?o.colors.dark[8]:o.white,.75),opacity:0,transition:"opacity .15s ease"},fetching:{pointerEvents:"all",opacity:1}}));function ke({pt:o,pb:e,fetching:r,customContent:t,backgroundBlur:f,size:l,variant:n,color:d}){let{classes:p,cx:x}=Ya();return(0,we.jsx)(go.Center,{pt:o,pb:e,className:x(p.root,{[p.fetching]:r}),sx:f?{backdropFilter:`blur(${f}px)`}:void 0,children:r&&(t||(0,we.jsx)(go.Loader,{size:l,variant:n,color:d}))})}a();var Y=require("@mantine/core"),Rr=require("react");a();var A=require("@mantine/core"),q=require("react/jsx-runtime"),kr={xs:22,sm:26,md:32,lg:38,xl:44};function Re({size:o,label:e,values:r,value:t,onChange:f,color:l}){return(0,q.jsxs)(A.Group,{spacing:"xs",children:[(0,q.jsx)(A.Text,{size:o,children:e}),(0,q.jsxs)(A.Menu,{withinPortal:!0,withArrow:!0,children:[(0,q.jsx)(A.Menu.Target,{children:(0,q.jsx)(A.Button,{size:o,variant:"default",sx:[{fontWeight:"normal"},n=>({height:kr[o],paddingLeft:n.spacing[o],paddingRight:n.spacing[o]})],children:t})}),(0,q.jsx)(A.Menu.Dropdown,{children:r.map(n=>{let d=n===t;return(0,q.jsx)(A.Menu.Item,{sx:[{height:kr[o]},p=>({"&&":{color:d?p.white:void 0},background:d?p.colors[l||p.primaryColor][6]:void 0})],disabled:d,onClick:()=>f(n),children:(0,q.jsx)(A.Text,{size:o,children:n})},n)})})]})]})}var Co=require("react/jsx-runtime"),_a=(0,Y.createStyles)((o,{topBorderColor:e,paginationWrapBreakpoint:r})=>({root:{background:o.colorScheme==="dark"?o.colors.dark[7]:o.white,borderTop:`1px solid ${typeof e=="function"?e(o):e}`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",gap:o.spacing.xs,[o.fn.largerThan(r)]:{flexDirection:"row"}},text:{flex:"1 1 auto"},pagination:{opacity:1,transition:"opacity .15s ease"},paginationFetching:{opacity:0}})),Fr=(0,Rr.forwardRef)(function({className:e,style:r,topBorderColor:t,fetching:f,page:l,onPageChange:n,paginationColor:d,paginationSize:p,loadingText:x,noRecordsText:c,paginationText:u,totalRecords:I,recordsPerPage:m,onRecordsPerPageChange:S,recordsPerPageLabel:g,recordsPerPageOptions:h,recordsLength:C,horizontalSpacing:O,paginationWrapBreakpoint:M,getPaginationControlProps:L},k){let v;if(f)v=x;else if(!I)v=c;else{let E=(l-1)*m+1,J=E+C-1;v=u({from:E,to:J,totalRecords:I})}let{classes:R,cx:H}=_a({topBorderColor:t,paginationWrapBreakpoint:M});return(0,Co.jsxs)(Y.Box,{ref:k,px:O??"xs",py:"xs",className:H(R.root,e),style:r,children:[(0,Co.jsx)(Y.Text,{className:R.text,size:p,children:v}),h&&(0,Co.jsx)(Re,{size:p,label:g,values:h,color:d,value:m,onChange:S}),(0,Co.jsx)(Y.Pagination,{color:d,className:H(R.pagination,{[R.paginationFetching]:f||!C}),value:l,onChange:n,size:p,total:Math.ceil(I/m),getControlProps:L})]})});a();var _o=require("@mantine/core");a();var $o=require("@mantine/core");var Mr=require("react/jsx-runtime"),ja=(0,$o.createStyles)({withPointerCursor:{cursor:"pointer"},noWrap:{whiteSpace:"nowrap"},ellipsis:{overflow:"hidden",textOverflow:"ellipsis"}});function Fe({className:o,sx:e,style:r,visibleMediaQuery:t,record:f,recordIndex:l,onClick:n,noWrap:d,ellipsis:p,textAlignment:x,width:c,accessor:u,render:I,defaultRender:m,customCellAttributes:S}){let{cx:g,classes:h}=ja();return uo(t)?(0,Mr.jsx)($o.Box,{component:"td",className:g({[h.noWrap]:d||p,[h.ellipsis]:p,[h.withPointerCursor]:n},o),sx:[{width:c,minWidth:c,maxWidth:c,textAlign:x},e],style:r,onClick:n,...S?.(f,l),children:I?I(f,l):m?m(f,l,u):B(f,u)}):null}a();var Yo=require("@mantine/core");a();var Me=require("@mantine/hooks"),W=require("react");function Or(o){let[e,r]=(0,W.useState)(null),t=o?.join(":")||"";return(0,W.useEffect)(()=>{r(null)},[t]),{lastSelectionChangeIndex:e,setLastSelectionChangeIndex:r}}function vr(o){let[e,r]=(0,W.useState)(null);return(0,W.useEffect)(()=>{o&&r(null)},[o]),{rowContextMenuInfo:e,setRowContextMenuInfo:r}}function Ar({rowExpansion:o,records:e,idAccessor:r}){let t=[];if(o&&e){let{trigger:d,allowMultiple:p,initiallyExpanded:x}=o;e&&d==="always"?t=e.map(c=>B(c,r)):x&&(t=e.filter(x).map(c=>B(c,r)),p||(t=[t[0]]))}let f,l,n=(0,W.useState)(t);if(o){let{trigger:d,allowMultiple:p,collapseProps:x,content:c}=o;o.expanded?{recordIds:f,onRecordIdsChange:l}=o.expanded:[f,l]=n;let u=I=>l?.(f.filter(m=>m!==B(I,r)));return{expandOnClick:d!=="always"&&d!=="never",isRowExpanded:I=>d==="always"?!0:f.includes(B(I,r)),expandRow:I=>{let m=B(I,r);l?.(p?[...f,m]:[m])},collapseRow:u,collapseProps:x,content:(I,m)=>()=>c({record:I,recordIndex:m,collapse:()=>u(I)})}}}function Lr(o,e){let[r,t]=(0,W.useState)(o),[f,l]=(0,W.useState)(o),n=(0,Me.useTimeout)(()=>t(!0),0),d=(0,Me.useTimeout)(()=>l(!1),e||200);return(0,W.useEffect)(()=>{o?(d.clear(),l(!0),n.start()):(n.clear(),t(!1),d.start())},[n,d,o]),{expanded:r,visible:f}}var V=require("react/jsx-runtime"),Ja=(0,Yo.createStyles)({cell:{"&&":{borderBottomWidth:0,padding:0}},expandedCell:{"&&":{borderBottomWidth:1}}});function Oe({open:o,colSpan:e,content:r,collapseProps:t}){let{expanded:f,visible:l}=Lr(o,t?.transitionDuration),{cx:n,classes:d}=Ja();return l?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("tr",{}),(0,V.jsx)("tr",{children:(0,V.jsx)("td",{className:n(d.cell,{[d.expandedCell]:f}),colSpan:e,children:(0,V.jsx)(Yo.Collapse,{in:f,...t,children:r()})})})]}):null}a();var So=require("@mantine/core"),ve=require("react/jsx-runtime"),ot=(0,So.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",zIndex:1,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-(0,So.px)(o.spacing.sm),bottom:0,borderLeft:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},withRightShadow:{"&::after":{opacity:1}},checkbox:{cursor:"pointer"}}});function Ae({record:o,recordIndex:e,withRightShadow:r,getCheckboxProps:t,...f}){let{cx:l,classes:n}=ot();return(0,ve.jsx)("td",{className:l(n.root,{[n.withRightShadow]:r}),onClick:d=>d.stopPropagation(),children:(0,ve.jsx)(So.Checkbox,{classNames:{input:n.checkbox},...f,...t(o,e)})})}var G=require("react/jsx-runtime"),et=(0,_o.createStyles)(o=>{let e=o.colors[o.primaryColor][6];return{withPointerCursor:{cursor:"pointer"},selected:{"&&":{"tr&":{background:o.colorScheme==="dark"?o.fn.darken(e,.6):o.fn.lighten(e,.9)},"table[data-striped] tbody &:nth-of-type(odd)":{background:o.colorScheme==="dark"?o.fn.darken(e,.55):o.fn.lighten(e,.85)}}},contextMenuVisible:{"&&":{"tr&":{background:o.colorScheme==="dark"?o.fn.darken(e,.5):o.fn.lighten(e,.7)},"table[data-striped] tbody &:nth-of-type(odd)":{background:o.colorScheme==="dark"?o.fn.darken(e,.45):o.fn.lighten(e,.65)}}}}});function Le({record:o,recordIndex:e,columns:r,defaultColumnRender:t,selectionVisible:f,selectionChecked:l,onSelectionChange:n,isRecordSelectable:d,getSelectionCheckboxProps:p,onClick:x,onCellClick:c,onContextMenu:u,expansion:I,customRowAttributes:m,className:S,style:g,sx:h,contextMenuVisible:C,leftShadowVisible:O}){let{cx:M,classes:L}=et();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(_o.Box,{component:"tr",className:M({[L.withPointerCursor]:x||I?.expandOnClick,[L.selected]:l,[L.contextMenuVisible]:C},typeof S=="function"?S(o,e):S),onClick:k=>{if(I){let{isRowExpanded:v,expandOnClick:R,expandRow:H,collapseRow:E}=I;R&&(v(o)?E(o):H(o))}x?.(k)},style:typeof g=="function"?g(o,e):g,sx:h,...m?.(o,e),onContextMenu:u,children:[f&&(0,G.jsx)(Ae,{record:o,recordIndex:e,withRightShadow:O,checked:l,disabled:!n||(d?!d(o,e):!1),onChange:n,getCheckboxProps:p}),r.map((k,v)=>{let{accessor:R,hidden:H,visibleMediaQuery:E,textAlignment:J,noWrap:bo,ellipsis:jo,width:Jo,render:oe,cellsClassName:Bo,cellsStyle:Do,cellsSx:ee,customCellAttributes:re}=k,Fo;return c&&(Fo=ae=>c({event:ae,record:o,recordIndex:e,column:k,columnIndex:v})),H?null:(0,G.jsx)(Fe,{className:typeof Bo=="function"?Bo(o,e):Bo,style:typeof Do=="function"?Do(o,e):Do,sx:ee,visibleMediaQuery:E,record:o,recordIndex:e,onClick:Fo,accessor:R,textAlignment:J,noWrap:bo,ellipsis:jo,width:Jo,render:oe,defaultRender:t,customCellAttributes:re},R)})]}),I&&(0,G.jsx)(Oe,{colSpan:r.filter(k=>!k.hidden).length+(f?1:0),open:I.isRowExpanded(o),content:I.content(o,e),collapseProps:I.collapseProps})]})}a();var ho=require("@mantine/core"),X=require("@mantine/hooks"),Hr=require("react/jsx-runtime"),rt=(0,ho.createStyles)(o=>({root:{position:"fixed",border:`1px solid ${o.colorScheme==="dark"?o.colors.dark[4]:o.colors.gray[3]}`,overflow:"hidden",transition:"all .15s ease"}}));function He({borderRadius:o="xs",shadow:e="sm",zIndex:r=3,y:t,x:f,onDestroy:l,children:n}){(0,X.useWindowEvent)("resize",l),(0,X.useWindowEvent)("scroll",l);let d=(0,X.useClickOutside)(l),{ref:p,width:x,height:c}=(0,X.useElementSize)(),u=(0,X.useMergedRef)(d,p),{innerWidth:I,innerHeight:m}=window,{classes:S,theme:{dir:g,spacing:h}}=rt(),C=(0,ho.px)(h.md);return(0,Hr.jsx)(ho.Paper,{ref:u,shadow:e,radius:o,className:S.root,sx:{zIndex:r,top:t+c+C>m?m-c-C:t,left:g==="ltr"?f+x+C>I?I-x-C:f:I-C-(f-x-C<0?x+C:f)},children:n})}a();var Er=require("@mantine/core"),Nr=require("react/jsx-runtime"),at=(0,Er.createStyles)(o=>({root:{height:1,background:o.colorScheme==="dark"?o.colors.dark[5]:o.colors.gray[1]}}));function Ee(){let{classes:o}=at();return(0,Nr.jsx)("div",{className:o.root})}a();var z=require("@mantine/core"),Ro=require("react/jsx-runtime"),tt=(0,z.createStyles)((o,{color:e})=>{let r=(0,z.px)(o.spacing.sm)/2;return{root:{width:"100%",display:"flex",alignItems:"center",paddingTop:r,paddingBottom:r,paddingLeft:o.spacing.sm,paddingRight:o.spacing.sm,color:e&&o.colors[e][6],transition:"background .15s ease","&[disabled]":{cursor:"not-allowed",color:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[5]},"&:hover:not([disabled])":{background:o.fn.rgba(e?o.colors[e][6]:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[4],e?o.colorScheme==="dark"?.15:.08:.25)},"&:active:not([disabled])":{background:o.fn.rgba(e?o.colors[e][6]:o.colorScheme==="dark"?o.colors.dark[3]:o.colors.gray[4],e?o.colorScheme==="dark"?.3:.2:.5)}},icon:{fontSize:0,marginRight:o.spacing.xs},title:{whiteSpace:"nowrap"}}});function Ne({icon:o,title:e,color:r,disabled:t,onClick:f}){let{classes:l}=tt({color:r});return(0,Ro.jsxs)(z.UnstyledButton,{className:l.root,disabled:t,onClick:f,children:[o&&(0,Ro.jsx)(z.Box,{className:l.icon,children:o}),(0,Ro.jsx)(z.Text,{className:l.title,size:"sm",children:e})]})}a();var no=require("@mantine/core"),fo=require("react/jsx-runtime"),ft=(0,no.createStyles)(o=>{let e=o.colorScheme==="dark"?.5:.05;return{root:{flex:"1 1 100%"},scrollbar:{'&[data-state="visible"]':{background:"transparent"},"div::before":{pointerEvents:"none"}},corner:{background:"transparent"},thumb:{zIndex:3},shadow:{position:"absolute",pointerEvents:"none",opacity:0,transition:"opacity .15s ease"},topShadow:{zIndex:2,left:0,right:0,height:o.spacing.sm,background:`linear-gradient(${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},leftShadow:{zIndex:3,top:0,left:0,bottom:0,width:o.spacing.sm,background:`linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to right, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},rightShadow:{zIndex:2,top:0,bottom:0,right:0,width:o.spacing.sm,background:`linear-gradient(to left, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)}), linear-gradient(to left, ${o.fn.rgba(o.black,e)}, ${o.fn.rgba(o.black,0)} 30%)`},bottomShadow:{zIndex:2,left:0,right:0,height:o.spacing.sm,background:`linear-gradient(${o.fn.rgba(o.black,0)}, ${o.fn.rgba(o.black,e)}), linear-gradient(${o.fn.rgba(o.black,0)} 30%, ${o.fn.rgba(o.black,e)})`},shadowVisible:{opacity:1}}});function qe({topShadowVisible:o,leftShadowVisible:e,rightShadowVisible:r,bottomShadowVisible:t,headerHeight:f,footerHeight:l,onScrollPositionChange:n,children:d,viewportRef:p}){let x=l?l-1:0,{cx:c,classes:u}=ft();return(0,fo.jsxs)(no.ScrollArea,{viewportRef:p,classNames:{root:u.root,scrollbar:u.scrollbar,thumb:u.thumb,corner:u.corner},styles:{scrollbar:{marginTop:f,marginBottom:x}},onScrollPositionChange:n,children:[d,(0,fo.jsx)(no.Box,{className:c(u.shadow,u.topShadow,{[u.shadowVisible]:o}),sx:{top:f}}),(0,fo.jsx)("div",{className:c(u.shadow,u.leftShadow,{[u.shadowVisible]:e})}),(0,fo.jsx)("div",{className:c(u.shadow,u.rightShadow,{[u.shadowVisible]:r})}),(0,fo.jsx)(no.Box,{className:c(u.shadow,u.bottomShadow,{[u.shadowVisible]:t}),sx:{bottom:x}})]})}var w=require("react/jsx-runtime"),qr={},nt=(0,j.createStyles)((o,{borderColor:e,rowBorderColor:r})=>{let t=typeof e=="function"?e(o):e,f=typeof r=="function"?r(o):r;return{root:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",tr:{backgroundColor:o.colorScheme==="dark"?o.colors.dark[7]:o.white},"&&":{"thead tr th":{borderBottomColor:t},"tbody tr td":{borderTopColor:f}}},lastRowBorderBottomVisible:{"tbody tr:last-of-type td":{borderBottom:`1px solid ${f}`}},textSelectionDisabled:{userSelect:"none"},table:{borderCollapse:"separate",borderSpacing:0},tableWithBorder:{border:`1px solid ${t}`},tableWithColumnBorders:{"&&":{"th, td":{":not(:first-of-type)":{borderLeft:`1px solid ${f}`}}}},verticalAlignmentTop:{td:{verticalAlign:"top"}},verticalAlignmentBottom:{td:{verticalAlign:"bottom"}}}});function We({withBorder:o,borderRadius:e,borderColor:r=D=>D.colorScheme==="dark"?D.colors.dark[4]:D.colors.gray[3],rowBorderColor:t=D=>D.fn.rgba(D.colorScheme==="dark"?D.colors.dark[4]:D.colors.gray[3],.65),withColumnBorders:f,textSelectionDisabled:l,height:n="100%",minHeight:d,shadow:p,verticalAlignment:x="center",fetching:c,columns:u,defaultColumnRender:I,idAccessor:m="id",records:S,selectedRecords:g,onSelectedRecordsChange:h,isRecordSelectable:C,allRecordsSelectionCheckboxProps:O={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:M=(D,oo)=>({"aria-label":`Select record ${oo+1}`}),sortStatus:L,sortIcons:k,onSortStatusChange:v,horizontalSpacing:R,page:H,onPageChange:E,totalRecords:J,recordsPerPage:bo,onRecordsPerPageChange:jo,recordsPerPageOptions:Jo,recordsPerPageLabel:oe="Records per page",paginationColor:Bo,paginationSize:Do="sm",paginationText:ee=({from:D,to:oo,totalRecords:eo})=>`${D} - ${oo} / ${eo}`,paginationWrapBreakpoint:re="sm",getPaginationControlProps:Fo=D=>D==="previous"?{"aria-label":"Previous page"}:D==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:ae,customLoader:Wr,loaderSize:zr,loaderVariant:Ur,loaderColor:Vr,loadingText:Gr="...",emptyState:Xr,noRecordsText:ze="No records",noRecordsIcon:Qr,striped:Zr,noHeader:Kr,onRowClick:te,onCellClick:$r,onScrollToTop:Ue,onScrollToBottom:Ve,onScrollToLeft:Ge,onScrollToRight:Xe,rowContextMenu:N,rowExpansion:Yr,rowClassName:_r,rowStyle:jr,rowSx:Jr,customRowAttributes:oa,scrollViewportRef:ea,bodyRef:ra,m:aa,my:ta,mx:fa,mt:na,mb:la,ml:sa,mr:da,sx:ca,className:ua,classNames:Mo,style:pa,styles:fe,...ma}){let{ref:D,width:oo,height:eo}=(0,_.useElementSize)(),{ref:xa,height:ne}=(0,_.useElementSize)(),{ref:Ia,width:le,height:yo}=(0,_.useElementSize)(),{ref:ia,height:ga}=(0,_.useElementSize)(),{ref:Ca,height:Qe}=(0,_.useElementSize)(),[se,Ze]=(0,Q.useState)(!0),[de,Ke]=(0,Q.useState)(!0),[Oo,$e]=(0,Q.useState)(!0),[ce,Ye]=(0,Q.useState)(!0),{rowContextMenuInfo:ro,setRowContextMenuInfo:lo}=vr(c),Sa=Ar({rowExpansion:Yr,records:S,idAccessor:m}),ue=(0,Q.useCallback)(()=>{if(!c&&N&&lo(null),c||yo<=eo)Ze(!0),Ke(!0);else{let i=D.current.scrollTop,b=i===0,F=yo-i-eo<1;Ze(b),Ke(F),b&&b!==se&&Ue?.(),F&&F!==de&&Ve?.()}if(c||le===oo)$e(!0),Ye(!0);else{let i=D.current.scrollLeft,b=i===0,F=le-i-oo<1;$e(b),Ye(F),b&&b!==Oo&&Ge?.(),F&&F!==ce&&Xe?.()}},[c,Ve,Ge,Xe,Ue,N,eo,D,oo,de,Oo,ce,se,lo,yo,le]);Sr(ue,[ue]);let ha=(0,Q.useCallback)(i=>{D.current.scrollTo({top:0,left:0}),E(i)},[E,D]),vo=S?.length,_e=S?.map(i=>B(i,m)),Ao=!!g,To=g?.map(i=>B(i,m)),je=_e!==void 0&&To!==void 0&&To.length>0,pe=C?S?.filter(C):S,Lo=pe?.map(i=>B(i,m)),Ho=je&&Lo.every(i=>To.includes(i)),ba=je&&Lo.some(i=>To.includes(i)),Ba=(0,Q.useCallback)(()=>{h?.(Ho?g.filter(i=>!Lo.includes(B(i,m))):mo([...g,...pe],i=>B(i,m)))},[Ho,m,h,Lo,pe,g]),{lastSelectionChangeIndex:Eo,setLastSelectionChangeIndex:Da}=Or(_e),me=Ao&&!Oo,{cx:Je,classes:Z,theme:ya}=nt({borderColor:r,rowBorderColor:t}),Ta={m:aa,my:ta,mx:fa,mt:na,mb:la,ml:sa,mr:da},No=typeof fe=="function"?fe(ya,qr,qr):fe;return(0,w.jsxs)(j.Box,{...Ta,className:Je(Z.root,{[Z.tableWithBorder]:o},ua,Mo?.root),sx:[i=>({borderRadius:i.radius[e]||e,boxShadow:i.shadows[p]||p,height:n,minHeight:d}),...(0,j.packSx)(ca)],style:{...No?.root,...pa},children:[(0,w.jsx)(qe,{viewportRef:(0,_.useMergedRef)(D,ea||null),topShadowVisible:!se,leftShadowVisible:!(g||Oo),rightShadowVisible:!ce,bottomShadowVisible:!de,headerHeight:ne,footerHeight:ga,onScrollPositionChange:ue,children:(0,w.jsxs)(j.Table,{ref:Ia,horizontalSpacing:R,className:Je(Z.table,{[Z.tableWithColumnBorders]:f,[Z.lastRowBorderBottomVisible]:yo<eo,[Z.textSelectionDisabled]:l,[Z.verticalAlignmentTop]:x==="top",[Z.verticalAlignmentBottom]:x==="bottom"}),striped:vo?Zr:!1,...ma,children:[Kr?null:(0,w.jsx)(wr,{ref:xa,className:Mo?.header,style:No?.header,columns:u,sortStatus:L,sortIcons:k,onSortStatusChange:v,selectionVisible:Ao,selectionChecked:Ho,selectionIndeterminate:ba&&!Ho,onSelectionChange:Ba,selectionCheckboxProps:O,leftShadowVisible:me}),(0,w.jsx)("tbody",{ref:ra,children:vo?S.map((i,b)=>{let F=B(i,m),Po=To?.includes(F)||!1,qo=!1,Wo=!1;if(N){let{hidden:T}=N;(!T||!(typeof T=="function"?T(i,b):T))&&(N.trigger==="click"?qo=!0:Wo=!0)}let zo;h&&(zo=T=>{if(T.nativeEvent.shiftKey&&Eo!==null){let so=S.filter(b>Eo?(ao,to)=>to>=Eo&&to<=b&&(C?C(ao,to):!0):(ao,to)=>to>=b&&to<=Eo&&(C?C(ao,to):!0));h(Po?Xo(g,so,ao=>B(ao,m)):mo([...g,...so],ao=>B(ao,m)))}else h(Po?g.filter(so=>B(so,m)!==F):mo([...g,i],so=>B(so,m)));Da(b)});let wo;qo?wo=T=>{lo({y:T.clientY,x:T.clientX,record:i,recordIndex:b}),te?.(i,b,T)}:te&&(wo=T=>{te(i,b,T)});let or;return Wo&&(or=T=>{T.preventDefault(),lo({y:T.clientY,x:T.clientX,record:i,recordIndex:b})}),(0,w.jsx)(Le,{record:i,recordIndex:b,columns:u,defaultColumnRender:I,selectionVisible:Ao,selectionChecked:Po,onSelectionChange:zo,isRecordSelectable:C,getSelectionCheckboxProps:M,onClick:wo,onCellClick:$r,onContextMenu:or,contextMenuVisible:ro?B(ro.record,m)===F:!1,expansion:Sa,className:_r,style:jr,sx:Jr,customRowAttributes:oa,leftShadowVisible:me},F)}):(0,w.jsx)(ie,{})}),u.some(i=>i.footer)&&(0,w.jsx)(Dr,{ref:ia,className:Mo?.footer,style:No?.footer,borderColor:r,columns:u,selectionVisible:Ao,leftShadowVisible:me,scrollDiff:yo-eo})]})}),H&&(0,w.jsx)(Fr,{ref:Ca,className:Mo?.pagination,style:No?.pagination,topBorderColor:r,horizontalSpacing:R,fetching:c,page:H,onPageChange:ha,totalRecords:J,recordsPerPage:bo,onRecordsPerPageChange:jo,recordsPerPageOptions:Jo,recordsPerPageLabel:oe,paginationColor:Bo,paginationSize:Do,paginationText:ee,paginationWrapBreakpoint:re,getPaginationControlProps:Fo,noRecordsText:ze,loadingText:Gr,recordsLength:vo}),(0,w.jsx)(ke,{pt:ne,pb:Qe,fetching:c,backgroundBlur:ae,customContent:Wr,size:zr,variant:Ur,color:Vr}),(0,w.jsx)(be,{pt:ne,pb:Qe,icon:Qr,text:ze,active:!c&&!vo,children:Xr}),N&&ro&&(0,w.jsx)(He,{zIndex:N.zIndex,borderRadius:N.borderRadius,shadow:N.shadow,y:ro.y,x:ro.x,onDestroy:()=>lo(null),children:N.items(ro.record,ro.recordIndex).map(({divider:i,key:b,title:F,icon:Po,color:qo,hidden:Wo,disabled:zo,onClick:wo})=>i?(0,w.jsx)(Ee,{},b):Wo?null:(0,w.jsx)(Ne,{title:F??po(b),icon:Po,color:qo,disabled:zo,onClick:()=>{lo(null),wo()}},b))})]})}a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();
2
2
  //# sourceMappingURL=index.cjs.map