Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-data-table-component

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-data-table-component - npm Package Compare versions

Comparing version 7.0.0-rc7 to 7.0.0

4

dist/DataTable/Cell.d.ts
import { TableColumnBase } from './types';
export declare const CellBase: import("styled-components").StyledComponent<"div", any, {
head?: boolean | undefined;
headCell?: boolean | undefined;
noPadding?: boolean | undefined;

@@ -8,4 +8,4 @@ }, never>;

export declare const Cell: import("styled-components").StyledComponent<"div", any, {
head?: boolean | undefined;
headCell?: boolean | undefined;
noPadding?: boolean | undefined;
} & CellProps, never>;

@@ -19,2 +19,3 @@ import * as React from 'react';

declare function Pagination({ rowsPerPage, rowCount, currentPage, direction, paginationRowsPerPageOptions, paginationIconLastPage, paginationIconFirstPage, paginationIconNext, paginationIconPrevious, paginationComponentOptions, onChangeRowsPerPage, onChangePage, }: PaginationProps): JSX.Element;
export default Pagination;
declare const _default: React.MemoExoticComponent<typeof Pagination>;
export default _default;
import * as React from 'react';
import { CSSObject } from 'styled-components';
import { TableColumnBase } from './types';
interface TableCellProps extends TableColumnBase {
import { TableColumn } from './types';
interface TableCellProps<T> {
id: string;
dataTag: string | null;
extendedCellStyle: CSSObject;
column: TableColumnBase;
renderAsCell: boolean;
column: TableColumn<T>;
row: T;
rowIndex: number;
isDragging: boolean;

@@ -16,6 +15,5 @@ onDragStart: (e: React.DragEvent<HTMLDivElement>) => void;

onDragLeave: (e: React.DragEvent<HTMLDivElement>) => void;
children?: React.ReactNode;
}
declare function TableCell({ id, column, dataTag, extendedCellStyle, renderAsCell, isDragging, onDragStart, onDragOver, onDragEnd, onDragEnter, onDragLeave, children, }: TableCellProps): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof TableCell>;
declare function TableCell<T>({ id, column, row, rowIndex, dataTag, isDragging, onDragStart, onDragOver, onDragEnd, onDragEnter, onDragLeave, }: TableCellProps<T>): JSX.Element;
declare const _default: typeof TableCell;
export default _default;
import * as React from 'react';
import { AllRowsAction, RowState } from './types';
interface TableColCheckboxProps<T> {
head?: boolean;
headCell?: boolean;
selectableRowsComponent: 'input' | React.ReactNode;

@@ -15,3 +15,3 @@ selectableRowsComponentProps: Record<string, unknown>;

}
declare function TableColCheckbox<T>({ head, rowData, keyField, allSelected, mergeSelections, selectedRows, selectableRowsComponent, selectableRowsComponentProps, selectableRowDisabled, onSelectAllRows, }: TableColCheckboxProps<T>): JSX.Element;
declare function TableColCheckbox<T>({ headCell, rowData, keyField, allSelected, mergeSelections, selectedRows, selectableRowsComponent, selectableRowsComponentProps, selectableRowDisabled, onSelectAllRows, }: TableColCheckboxProps<T>): JSX.Element;
export default TableColCheckbox;
declare const TableColExpander: import("styled-components").StyledComponent<"div", any, {
head?: boolean | undefined;
headCell?: boolean | undefined;
noPadding?: boolean | undefined;
}, never>;
export default TableColExpander;

@@ -13,5 +13,5 @@ /// <reference types="react" />

export declare type SortFunction<T> = (rows: T[], field: Selector<T>, sortDirection: 'asc' | 'desc') => T[];
export declare type RowRecord = Record<string, any>;
export declare type ExpandableRowsComponent = React.ComponentType<any>;
export declare type PaginationComponent = React.ComponentType<any>;
export declare type RowRecord = Record<string, unknown>;
export declare type ExpandableRowsComponent = React.ComponentType<Record<string, unknown>>;
export declare type PaginationComponent = React.ComponentType<Record<string, unknown>>;
export declare type ComponentProps = Record<string, unknown>;

@@ -18,0 +18,0 @@ export declare type TableProps<T = RowRecord> = {

@@ -1,2 +0,392 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),n=require("lodash.orderby");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=r(e),a=o(e),l=o(t),d=o(n),s=function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function c(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function u(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function p(e,t,n,o,r){return o||!t?e:f(e,t,n,r)}function f(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):d.default(e,t,n):e}function h(e,t,n){void 0===e&&(e=[]),void 0===n&&(n="id");var o=e.slice();return t[n]?o.splice(o.findIndex((function(e){return e[n]===t[n]})),1):o.splice(o.findIndex((function(e){return e===t})),1),o}function w(e){return e.map((function(e,t){var n=s(s({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function v(e,t){return Math.ceil(e/t)}function m(e,t){return Math.min(e,t)}var b=function(){return null};function x(e,t){void 0===t&&(t=[]);var n={};return t.length&&t.forEach((function(t){if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function y(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n="id"),e[n]?t.some((function(t){return t[n]===e[n]})):t.some((function(t){return t===e}))}function C(e,t){return t?e.findIndex((function(e){return R(e.id,t)})):-1}function R(e,t){return e==t}function S(e,t){var n,o,r,i=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":var a=t.rows;return s(s({},e),{rows:a});case"SELECT_ALL_ROWS":var l=t.keyField,d=t.rows,c=t.rowCount,g=t.mergeSelections,p=!e.allSelected,f=!e.toggleOnSelectedRowsChange;if(g){var w=p?u(u([],e.selectedRows),d.filter((function(t){return!y(t,e.selectedRows,l)}))):e.selectedRows.filter((function(e){return!y(e,d,l)}));return s(s({},e),{allSelected:p,selectedCount:w.length,selectedRows:w,toggleOnSelectedRowsChange:f})}return s(s({},e),{allSelected:p,selectedCount:p?c:0,selectedRows:p?d:[],toggleOnSelectedRowsChange:f});case"SELECT_SINGLE_ROW":var v=t.keyField,m=t.row,b=t.isSelected,x=(c=t.rowCount,t.singleSelect);return s(s({},e),x?b?{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:i}:{selectedCount:1,allSelected:!1,selectedRows:[m],toggleOnSelectedRowsChange:i}:b?{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:h(e.selectedRows,m,v),toggleOnSelectedRowsChange:i}:{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===c,selectedRows:(n=e.selectedRows,o=m,void 0===n&&(n=[]),void 0===r&&(r=0),u(u(u([],n.slice(0,r)),[o]),n.slice(r))),toggleOnSelectedRowsChange:i});case"SELECT_MULTIPLE_ROWS":var C=t.keyField,R=t.selectedRows;a=t.rows;if(g=t.mergeSelections){w=u(u([],e.selectedRows),R.filter((function(t){return!y(t,e.selectedRows,C)})));return s(s({},e),{selectedCount:w.length,allSelected:!1,selectedRows:w,toggleOnSelectedRowsChange:i})}return s(s({},e),{selectedCount:R.length,allSelected:R.length===a.length,selectedRows:R,toggleOnSelectedRowsChange:i});case"CLEAR_SELECTED_ROWS":var S=t.selectedRowsFlag;return s(s({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:S});case"SORT_CHANGE":a=t.rows;var E=t.sortDirection,O=t.selectedColumn,P=t.clearSelectedOnSort;return s(s(s({},e),{rows:a,selectedColumn:O,sortDirection:E,currentPage:1}),P&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_PAGE":var k=t.page,D=t.paginationServer,H=t.visibleOnly,F=t.persistSelectedOnPageChange,_=(g=D&&F,D&&!F||H);return s(s(s(s({},e),{currentPage:k}),g&&{allSelected:!1}),_&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_ROWS_PER_PAGE":var T=t.rowsPerPage;k=t.page;return s(s({},e),{currentPage:k,rowsPerPage:T})}}var E,O,P,k,D,H,F,_,T,I,A,z,L,M,j,N,W=t.css(E||(E=g(["\n\tpointer-events: none;\n\topacity: 0.4;\n"],["\n\tpointer-events: none;\n\topacity: 0.4;\n"]))),B=l.default.div(O||(O=g(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.disabled&&W}),(function(e){return e.theme.table.style})),G=t.css(P||(P=g(["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"],["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"]))),V=l.default.div(k||(k=g(["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.fixedHeader&&G}),(function(e){return e.theme.head.style})),U=l.default.div(D||(D=g(["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.theme.headRow.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.headRow.denseStyle})),q=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return t.css(H||(H=g(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),599,t.css.apply(void 0,u([e],n)))},Y=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return t.css(F||(F=g(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),959,t.css.apply(void 0,u([e],n)))},$=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return t.css(_||(_=g(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),1280,t.css.apply(void 0,u([e],n)))},K=function(e){return function(n){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return t.css(T||(T=g(["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"],["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"])),e,t.css.apply(void 0,u([n],o)))}},J=l.default.div(I||(I=g(["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"])),(function(e){return e.theme[e.head?"headCells":"cells"].style}),(function(e){return e.noPadding&&"padding: 0"})),Q=l.default(J)(N||(N=g(["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){var t=e.button,n=e.grow;return 0===n||t?0:n||1}),(function(e){return e.maxWidth||"100%"}),(function(e){return e.minWidth||"100px"}),(function(e){var n=e.width;return n&&t.css(A||(A=g(["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"],["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"])),n,n)}),(function(e){return e.right&&"justify-content: flex-end"}),(function(e){var t=e.button;return(e.center||t)&&"justify-content: center"}),(function(e){var t=e.compact,n=e.button;return(t||n)&&"padding: 0"}),(function(e){var t=e.hide;return t&&"sm"===t&&q(z||(z=g(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"md"===t&&Y(L||(L=g(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"lg"===t&&$(M||(M=g(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&Number.isInteger(t)&&K(t)(j||(j=g(["\n display: none;\n "],["\n display: none;\n "])))})),X=t.css(ee||(ee=g(["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"],["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"])),(function(e){return e.wrapCell?"normal":"nowrap"}),(function(e){return e.allowOverflow?"visible":"hidden"})),Z=l.default(Q).attrs((function(e){return{style:e.style}}))(te||(te=g(["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"],["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.fontSize}),(function(e){return!e.renderAsCell&&X}),(function(e){var t=e.theme;return e.isDragging&&t.cells.draggingStyle}),(function(e){return e.cellStyle}));var ee,te,ne=i.memo((function(e){var t=e.id,n=e.column,o=e.dataTag,r=e.extendedCellStyle,a=e.renderAsCell,l=e.isDragging,d=e.onDragStart,s=e.onDragOver,c=e.onDragEnd,u=e.onDragEnter,g=e.onDragLeave,p=e.children;return i.createElement(Z,{id:t,"data-column-id":n.id,role:"gridcell",className:"rdt_TableCell","data-tag":o,cellStyle:n.style,renderAsCell:a,allowOverflow:n.allowOverflow,button:n.button,center:n.center,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,width:n.width,wrapCell:n.wrap,style:r,isDragging:l,onDragStart:d,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:g},p)}));var oe,re=i.memo((function(e){var t=e.name,n=e.component,o=void 0===n?"input":n,r=e.componentOptions,a=void 0===r?{style:{}}:r,l=e.indeterminate,d=void 0!==l&&l,c=e.checked,u=void 0!==c&&c,g=e.disabled,p=void 0!==g&&g,f=e.onClick,h=void 0===f?b:f,w=o,v="input"!==w?a.style:function(e){return s(s({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"})}(p),m=i.useMemo((function(){return function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return Object.keys(e).map((function(t){return e[t]})).forEach((function(o,r){var i;"function"==typeof o&&(t=s(s({},e),((i={})[Object.keys(e)[r]]=o.apply(void 0,n),i)))})),t||e}(a,d)}),[a,d]);return i.createElement(w,s({type:"checkbox",ref:function(e){e&&(e.indeterminate=d)},style:v,onClick:p?b:h,name:t,"aria-label":t,checked:u,disabled:p},m,{onChange:b}))})),ie=l.default(J)(oe||(oe=g(["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function ae(e){var t=e.keyField,n=e.row,o=e.rowCount,r=e.selected,a=e.selectableRowsComponent,l=e.selectableRowsComponentProps,d=e.selectableRowsSingle,s=e.selectableRowDisabled,c=e.onSelectedRow,u=!(!s||!s(n));return i.createElement(ie,{onClick:function(e){return e.stopPropagation()},className:"rdt_TableCell",noPadding:!0},i.createElement(re,{name:"select-row-"+n[t],component:a,componentOptions:l,checked:r,"aria-checked":r,onClick:function(){c({type:"SELECT_SINGLE_ROW",row:n,isSelected:r,keyField:t,rowCount:o,singleSelect:d})},disabled:u}))}var le,de=l.default.button(le||(le=g(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"],["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"])),(function(e){return e.theme.expanderButton.style}));function se(e){var t=e.disabled,n=void 0!==t&&t,o=e.expanded,r=void 0!==o&&o,a=e.expandableIcon,l=e.id,d=e.row,s=e.onToggled,c=r?a.expanded:a.collapsed;return i.createElement(de,{"aria-disabled":n,onClick:function(){return s&&s(d)},"data-testid":"expander-button-"+l,disabled:n,"aria-label":r?"Collapse Row":"Expand Row",role:"button",type:"button"},c)}var ce,ue=l.default(J)(ce||(ce=g(["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"],["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style}));function ge(e){var t=e.row,n=e.expanded,o=void 0!==n&&n,r=e.expandableIcon,a=e.id,l=e.onToggled,d=e.disabled,s=void 0!==d&&d;return i.createElement(ue,{onClick:function(e){return e.stopPropagation()},noPadding:!0},i.createElement(se,{id:a,row:t,expanded:o,expandableIcon:r,disabled:s,onToggled:l}))}var pe=l.default.div(fe||(fe=g(["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"],["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"])),(function(e){return e.theme.expanderRow.style}),(function(e){return e.extendedRowStyle}));var fe,he,we,ve,me=i.memo((function(e){var t=e.data,n=e.component,o=e.componentProps,r=e.extendedRowStyle,a=n;return i.createElement(pe,{className:"rdt_ExpanderRow",extendedRowStyle:r},i.createElement(a,s({data:t},o)))}));exports.Direction=void 0,(he=exports.Direction||(exports.Direction={})).LTR="ltr",he.RTL="rtl",he.AUTO="auto",exports.Alignment=void 0,(we=exports.Alignment||(exports.Alignment={})).LEFT="left",we.RIGHT="right",we.CENTER="center",exports.Media=void 0,(ve=exports.Media||(exports.Media={})).SM="sm",ve.MD="md",ve.LG="lg";var be,xe,ye,Ce=t.css(be||(be=g(["\n\t&:hover {\n\t\t",";\n\t}\n"],["\n\t&:hover {\n\t\t",";\n\t}\n"])),(function(e){var t=e.highlightOnHover,n=e.theme;return t&&n.rows.highlightOnHoverStyle})),Re=t.css(xe||(xe=g(["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"],["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"]))),Se=l.default.div.attrs((function(e){return{style:e.style}}))(ye||(ye=g(["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.rows.denseStyle}),(function(e){var t=e.striped,n=e.theme;return t&&n.rows.stripedStyle}),(function(e){return e.highlightOnHover&&Ce}),(function(e){return e.pointerOnHover&&Re}),(function(e){var t=e.selected,n=e.theme;return t&&n.rows.selectedHighlightStyle}));function Ee(e){var t=e.columns,n=void 0===t?[]:t,o=e.conditionalRowStyles,r=void 0===o?[]:o,a=e.defaultExpanded,l=void 0!==a&&a,d=e.defaultExpanderDisabled,s=void 0!==d&&d,c=e.dense,u=void 0!==c&&c,g=e.expandableIcon,p=e.expandableRows,f=void 0!==p&&p,h=e.expandableRowsComponent,w=e.expandableRowsComponentProps,v=e.expandableRowsHideExpander,m=e.expandOnRowClicked,y=void 0!==m&&m,C=e.expandOnRowDoubleClicked,S=void 0!==C&&C,E=e.highlightOnHover,O=void 0!==E&&E,P=e.id,k=e.expandableInheritConditionalStyles,D=e.keyField,H=e.onRowClicked,F=void 0===H?b:H,_=e.onRowDoubleClicked,T=void 0===_?b:_,I=e.onRowExpandToggled,A=void 0===I?b:I,z=e.onSelectedRow,L=void 0===z?b:z,M=e.pointerOnHover,j=void 0!==M&&M,N=e.row,W=e.rowCount,B=e.rowIndex,G=e.selectableRowDisabled,V=void 0===G?null:G,U=e.selectableRows,q=void 0!==U&&U,Y=e.selectableRowsComponent,$=e.selectableRowsComponentProps,K=e.selectableRowsHighlight,J=void 0!==K&&K,Q=e.selectableRowsSingle,X=void 0!==Q&&Q,Z=e.selected,ee=e.striped,te=void 0!==ee&&ee,oe=e.draggingColumnId,re=e.onDragStart,ie=e.onDragOver,le=e.onDragEnd,de=e.onDragEnter,se=e.onDragLeave,ce=i.useState(l),ue=ce[0],pe=ce[1];i.useEffect((function(){pe(l)}),[l]);var fe=i.useCallback((function(){pe(!ue),A(!ue,N)}),[ue,A,N]),he=j||f&&(y||S),we=i.useCallback((function(e){e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(F(N,e),!s&&f&&y&&fe())}),[s,y,f,fe,F,N]),ve=i.useCallback((function(e){e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(T(N,e),!s&&f&&S&&fe())}),[s,S,f,fe,T,N]),be=x(N,r),xe=J&&Z,ye=k?be:{},Ce=te&&B%2==0;return i.createElement(i.Fragment,null,i.createElement(Se,{id:"row-"+P,role:"row",striped:Ce,highlightOnHover:O,pointerOnHover:!s&&he,dense:u,onClick:we,onDoubleClick:ve,className:"rdt_TableRow",selected:xe,style:be},q&&i.createElement(ae,{keyField:D,row:N,rowCount:W,selected:Z,selectableRowsComponent:Y,selectableRowsComponentProps:$,selectableRowDisabled:V,selectableRowsSingle:X,onSelectedRow:L}),f&&!v&&i.createElement(ge,{id:N[D],expandableIcon:g,expanded:ue,row:N,onToggled:fe,disabled:s}),n.map((function(e){if(e.omit)return null;var t=e.ignoreRowClick||e.button?null:"allowRowEvents",n=x(N,e.conditionalCellStyles);return i.createElement(ne,{id:"cell-"+e.id+"-"+N[D],key:"cell-"+e.id+"-"+N[D],extendedCellStyle:n,dataTag:t,renderAsCell:!!e.cell,column:e,isDragging:R(oe,e.id),onDragStart:re,onDragOver:ie,onDragEnd:le,onDragEnter:de,onDragLeave:se},!e.cell&&i.createElement("div",{"data-tag":t},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce((function(e,t){var n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(var o=0;o<n.length;o++)return e[n[o]][n[o+1]];return e[t]}),e)}(N,e.selector,e.format,B)),e.cell&&e.cell(N,B,e,P))}))),f&&ue&&i.createElement(me,{key:"expander-"+N[D],data:N,extendedRowStyle:ye,component:h,componentProps:w}))}var Oe,Pe=l.default.span(Oe||(Oe=g(["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"],["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"])),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return"desc"===e.sortDirection&&"transform: rotate(180deg)"})),ke=function(e){var t=e.sortActive,n=e.sortDirection;return a.default.createElement(Pe,{sortActive:t,sortDirection:n},"▲")},De=l.default(Q)(Te||(Te=g(["\n\t",";\n\t",";\n"],["\n\t",";\n\t",";\n"])),(function(e){return e.button&&"text-align: center"}),(function(e){var t=e.theme;return e.isDragging&&t.headCells.draggingStyle})),He=t.css(Ie||(Ie=g(["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"],["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return e.sortActive?t.headCells.activeSortStyle:t.headCells.inactiveSortStyle}),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return e.theme.headCells.activeStyle}),(function(e){return!e.sortActive&&"opacity: 1"})),Fe=l.default.div(Ae||(Ae=g(["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"],["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"])),(function(e){var t=e.disabled;return e.sortable&&!t&&He})),_e=l.default.div(ze||(ze=g(["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"],["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"])));var Te,Ie,Ae,ze,Le,Me=i.memo((function(e){var t=e.rows,n=e.column,o=e.disabled,r=e.draggingColumnId,a=e.selectedColumn,l=void 0===a?{}:a,d=e.sortDirection,s=e.sortFunction,c=e.sortIcon,g=e.sortServer,p=e.pagination,h=e.paginationServer,w=e.persistSelectedOnSort,v=e.selectableRowsVisibleOnly,m=e.onSort,b=e.onDragStart,x=e.onDragOver,y=e.onDragEnd,C=e.onDragEnter,S=e.onDragLeave;if(i.useEffect((function(){"string"==typeof n.selector&&console.error("Warning: "+n.selector+" is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...")}),[]),n.omit)return null;var E=function(){if(n.sortable&&n.selector){var e=d;R(l.id,n.id)&&(e="asc"===d?"desc":"asc");var o=t;if(!g){o=f(t,n.selector,e,s);var r=n.sortFunction;if(r){var i="asc"===e?r:function(e,t){return-1*r(e,t)};o=u([],t).sort(i)}}m({type:"SORT_CHANGE",rows:o,sortDirection:e,selectedColumn:n,clearSelectedOnSort:p&&h&&!w||g||v})}},O=function(e){return i.createElement(ke,{sortActive:e,sortDirection:d})},P=function(){return i.createElement("span",{className:[d,"__rdt_custom_sort_icon__"].join(" ")},c)},k=!(!n.sortable||!R(l.id,n.id)),D=n.sortable&&!c&&!n.right,H=n.sortable&&!c&&n.right,F=n.sortable&&c&&!n.right,_=n.sortable&&c&&n.right;return i.createElement(De,{"data-column-id":n.id,className:"rdt_TableCol",head:!0,allowOverflow:n.allowOverflow,button:n.button,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,center:n.center,width:n.width,draggable:n.reorder,isDragging:R(n.id,r),onDragStart:b,onDragOver:x,onDragEnd:y,onDragEnter:C,onDragLeave:S},n.name&&i.createElement(Fe,{"data-column-id":n.id,"data-sort-id":n.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:o?void 0:E,onKeyPress:o?void 0:function(e){"Enter"===e.key&&E()},sortActive:!o&&k,sortable:n.sortable,disabled:o},!o&&_&&P(),!o&&H&&O(k),i.createElement(_e,{"data-column-id":n.id},n.name),!o&&F&&P(),!o&&D&&O(k)))})),je=l.default(J)(Le||(Le=g(["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function Ne(e){var t=e.head,n=void 0===t||t,o=e.rowData,r=e.keyField,a=e.allSelected,l=e.mergeSelections,d=e.selectedRows,s=e.selectableRowsComponent,c=e.selectableRowsComponentProps,u=e.selectableRowDisabled,g=e.onSelectAllRows,p=d.length>0&&!a,f=u?o.filter((function(e){return!u(e)})):o,h=0===f.length,w=Math.min(o.length,f.length);return i.createElement(je,{className:"rdt_TableCol",head:n,noPadding:!0},i.createElement(re,{name:"select-all-rows",component:s,componentOptions:c,onClick:function(){g({type:"SELECT_ALL_ROWS",rows:f,rowCount:w,mergeSelections:l,keyField:r})},checked:a,indeterminate:p,disabled:h}))}function We(e){void 0===e&&(e=exports.Direction.AUTO);var t="object"==typeof window,n=i.useState(!1),o=n[0],r=n[1];return i.useEffect((function(){if(t)if("auto"!==e)r("rtl"===e);else{var n=!(!window.document||!window.document.createElement),o=document.getElementsByTagName("BODY")[0],i=document.getElementsByTagName("HTML")[0],a="rtl"===o.dir||"rtl"===i.dir;r(n&&a)}}),[e,t]),o}var Be,Ge,Ve,Ue=l.default.div(Be||(Be=g(["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.contextMenu.fontColor}),(function(e){return e.theme.contextMenu.fontSize})),qe=l.default.div(Ge||(Ge=g(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"]))),Ye=l.default.div(Ve||(Ve=g(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"],["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.rtl&&"direction: rtl"}),(function(e){return e.theme.contextMenu.style}),(function(e){var t=e.theme;return e.visible&&t.contextMenu.activeStyle}));function $e(e){var t=e.contextMessage,n=e.contextActions,o=e.contextComponent,r=e.selectedCount,a=We(e.direction),l=r>0;return o?i.createElement(Ye,{visible:l},i.cloneElement(o,{selectedCount:r})):i.createElement(Ye,{visible:l,rtl:a},i.createElement(Ue,null,function(e,t,n){if(0===t)return null;var o=1===t?e.singular:e.plural;return n?t+" "+(e.message||"")+" "+o:t+" "+o+" "+(e.message||"")}(t,r,a)),i.createElement(qe,null,n))}var Ke,Je,Qe,Xe,Ze,et,tt,nt,ot,rt,it,at,lt,dt,st,ct,ut,gt,pt,ft,ht,wt=l.default.div(Ke||(Ke=g(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"])),(function(e){return e.theme.header.style})),vt=l.default.div(Je||(Je=g(["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.header.fontColor}),(function(e){return e.theme.header.fontSize})),mt=l.default.div(Qe||(Qe=g(["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"],["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"]))),bt=function(e){var t=e.title,n=e.actions,o=void 0===n?null:n,r=e.contextMessage,a=e.contextActions,l=e.contextComponent,d=e.selectedCount,s=e.direction,c=e.showMenu,u=void 0===c||c;return i.createElement(wt,{className:"rdt_TableHeader",role:"heading","aria-level":1},i.createElement(vt,null,t),o&&i.createElement(mt,null,o),u&&i.createElement($e,{contextMessage:r,contextActions:a,contextComponent:l,direction:s,selectedCount:d}))},xt={left:"flex-start",right:"flex-end",center:"center"},yt=l.default.header(Xe||(Xe=g(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"])),(function(e){var t=e.align;return xt[t]}),(function(e){return e.wrapContent?"wrap":"nowrap"}),(function(e){return e.theme.subHeader.style})),Ct=function(e){var t=e.align,n=void 0===t?"right":t,o=e.wrapContent,r=void 0===o||o,a=c(e,["align","wrapContent"]);return i.createElement(yt,s({align:n,wrapContent:r},a))},Rt=l.default.div(Ze||(Ze=g(["\n\tdisplay: flex;\n\tflex-direction: column;\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n"]))),St=l.default.div(nt||(nt=g(["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"])),(function(e){var n=e.responsive,o=e.fixedHeader;return n&&t.css(et||(et=g(["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"],["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"])),o?"auto":"hidden")}),(function(e){var n=e.fixedHeader,o=void 0!==n&&n,r=e.fixedHeaderScrollHeight,i=void 0===r?"100vh":r;return o&&t.css(tt||(tt=g(["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"],["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"])),i)})),Et=l.default.div(ot||(ot=g(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.progress.style})),Ot=l.default.div(rt||(rt=g(["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.tableWrapper.style})),Pt=l.default(J)(it||(it=g(["\n\twhite-space: nowrap;\n\t",";\n"],["\n\twhite-space: nowrap;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style})),kt=l.default.div(at||(at=g(["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.noData.style})),Dt=function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},a.default.createElement("path",{d:"M7 10l5 5 5-5z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},Ht=l.default.select(lt||(lt=g(["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"],["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"]))),Ft=l.default.div(dt||(dt=g(["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"],["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"]))),_t=function(e){var t=e.defaultValue,n=e.onChange,o=c(e,["defaultValue","onChange"]);return i.createElement(Ft,null,i.createElement(Ht,s({onChange:n,defaultValue:t},o)),i.createElement(Dt,null))},Tt={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return a.default.createElement("div",null,"To add an expander pass in a component instance via ",a.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:a.default.createElement((function(){return a.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),a.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))}),null),expanded:a.default.createElement((function(){return a.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),a.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))}),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:a.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:a.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:exports.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),a.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))}),null),paginationIconLastPage:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),a.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),paginationIconNext:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),paginationIconPrevious:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:exports.Direction.AUTO,onChangePage:b,onChangeRowsPerPage:b,onRowClicked:b,onRowDoubleClicked:b,onRowExpandToggled:b,onSelectedRowsChange:b,onSort:b,onColumnOrderChange:b},It={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},At=l.default.nav(st||(st=g(["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"],["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.pagination.style})),zt=l.default.button(ct||(ct=g(["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"])),(function(e){return e.theme.pagination.pageButtonsStyle}),(function(e){return e.isRTL&&"transform: scale(-1, -1)"})),Lt=l.default.div(gt||(gt=g(["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"])),q(ut||(ut=g(["\n width: 100%;\n justify-content: space-around;\n "],["\n width: 100%;\n justify-content: space-around;\n "])))),Mt=l.default.span(pt||(pt=g(["\n\tflex-shrink: 1;\n\tuser-select: none;\n"],["\n\tflex-shrink: 1;\n\tuser-select: none;\n"]))),jt=l.default(Mt)(ft||(ft=g(["\n\tmargin: 0 24px;\n"],["\n\tmargin: 0 24px;\n"]))),Nt=l.default(Mt)(ht||(ht=g(["\n\tmargin: 0 4px;\n"],["\n\tmargin: 0 4px;\n"])));function Wt(e){var t=e.rowsPerPage,n=e.rowCount,o=e.currentPage,r=e.direction,a=void 0===r?Tt.direction:r,l=e.paginationRowsPerPageOptions,d=void 0===l?Tt.paginationRowsPerPageOptions:l,c=e.paginationIconLastPage,u=void 0===c?Tt.paginationIconLastPage:c,g=e.paginationIconFirstPage,p=void 0===g?Tt.paginationIconFirstPage:g,f=e.paginationIconNext,h=void 0===f?Tt.paginationIconNext:f,w=e.paginationIconPrevious,m=void 0===w?Tt.paginationIconPrevious:w,b=e.paginationComponentOptions,x=void 0===b?Tt.paginationComponentOptions:b,y=e.onChangeRowsPerPage,C=void 0===y?Tt.onChangeRowsPerPage:y,R=e.onChangePage,S=void 0===R?Tt.onChangePage:R,E=function(){var e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}var n=i.useState(t),o=n[0],r=n[1];return i.useEffect((function(){if(!e)return function(){return null};function n(){r(t())}return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[]),o}(),O=We(a),P=E.width&&E.width>599,k=v(n,t),D=o*t,H=D-t+1,F=1===o,_=o===k,T=s(s({},It),x),I=o===k?H+"-"+n+" "+T.rangeSeparatorText+" "+n:H+"-"+D+" "+T.rangeSeparatorText+" "+n,A=i.useCallback((function(){return S(o-1)}),[o,S]),z=i.useCallback((function(){return S(o+1)}),[o,S]),L=i.useCallback((function(){return S(1)}),[S]),M=i.useCallback((function(){return S(v(n,t))}),[S,n,t]),j=i.useCallback((function(e){return C(Number(e.target.value),o)}),[o,C]),N=d.map((function(e){return i.createElement("option",{key:e,value:e},e)}));T.selectAllRowsItem&&N.push(i.createElement("option",{key:-1,value:n},T.selectAllRowsItemText));var W=i.createElement(_t,{onChange:j,defaultValue:t,"aria-label":T.rowsPerPageText},N);return i.createElement(At,{className:"rdt_Pagination"},!T.noRowsPerPage&&P&&i.createElement(i.Fragment,null,i.createElement(Nt,null,T.rowsPerPageText),W),P&&i.createElement(jt,null,I),i.createElement(Lt,null,i.createElement(zt,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":F,onClick:L,disabled:F,isRTL:O},p),i.createElement(zt,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":F,onClick:A,disabled:F,isRTL:O},m),!P&&W,i.createElement(zt,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":_,onClick:z,disabled:_,isRTL:O},h),i.createElement(zt,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":_,onClick:M,disabled:_,isRTL:O},u)))}var Bt=function(e,t){var n=i.useRef(!0);i.useEffect((function(){n.current?n.current=!1:e()}),t)},Gt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Vt}(e)}(e)};var Vt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ut(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Jt((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function qt(e,t,n){return e.concat(t).map((function(e){return Ut(e,n)}))}function Yt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function $t(e,t){try{return t in e}catch(e){return!1}}function Kt(e,t,n){var o={};return n.isMergeableObject(e)&&Yt(e).forEach((function(t){o[t]=Ut(e[t],n)})),Yt(t).forEach((function(r){(function(e,t){return $t(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||($t(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Jt;var n=t.customMerge(e);return"function"==typeof n?n:Jt}(r,n)(e[r],t[r],n):o[r]=Ut(t[r],n))})),o}function Jt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||qt,n.isMergeableObject=n.isMergeableObject||Gt,n.cloneUnlessOtherwiseSpecified=Ut;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Kt(e,t,n):Ut(t,n)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Jt(e,n,t)}),{})};var Qt=Jt,Xt={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};var Zt=i.memo((function(e){var n=e.data,o=void 0===n?Tt.data:n,r=e.columns,a=void 0===r?Tt.columns:r,l=e.title,d=void 0===l?Tt.title:l,c=e.actions,g=void 0===c?Tt.actions:c,f=e.keyField,h=void 0===f?Tt.keyField:f,b=e.striped,x=void 0===b?Tt.striped:b,R=e.highlightOnHover,E=void 0===R?Tt.highlightOnHover:R,O=e.pointerOnHover,P=void 0===O?Tt.pointerOnHover:O,k=e.dense,D=void 0===k?Tt.dense:k,H=e.selectableRows,F=void 0===H?Tt.selectableRows:H,_=e.selectableRowsSingle,T=void 0===_?Tt.selectableRowsSingle:_,I=e.selectableRowsHighlight,A=void 0===I?Tt.selectableRowsHighlight:I,z=e.selectableRowsNoSelectAll,L=void 0===z?Tt.selectableRowsNoSelectAll:z,M=e.selectableRowsVisibleOnly,j=void 0===M?Tt.selectableRowsVisibleOnly:M,N=e.selectableRowSelected,W=void 0===N?Tt.selectableRowSelected:N,G=e.selectableRowDisabled,q=void 0===G?Tt.selectableRowDisabled:G,Y=e.selectableRowsComponent,$=void 0===Y?Tt.selectableRowsComponent:Y,K=e.selectableRowsComponentProps,Q=void 0===K?Tt.selectableRowsComponentProps:K,X=e.onRowExpandToggled,Z=void 0===X?Tt.onRowExpandToggled:X,ee=e.onSelectedRowsChange,te=void 0===ee?Tt.onSelectedRowsChange:ee,ne=e.expandableIcon,oe=void 0===ne?Tt.expandableIcon:ne,re=e.onChangeRowsPerPage,ie=void 0===re?Tt.onChangeRowsPerPage:re,ae=e.onChangePage,le=void 0===ae?Tt.onChangePage:ae,de=e.paginationServer,se=void 0===de?Tt.paginationServer:de,ce=e.paginationServerOptions,ue=void 0===ce?Tt.paginationServerOptions:ce,ge=e.paginationTotalRows,pe=void 0===ge?Tt.paginationTotalRows:ge,fe=e.paginationDefaultPage,he=void 0===fe?Tt.paginationDefaultPage:fe,we=e.paginationResetDefaultPage,ve=void 0===we?Tt.paginationResetDefaultPage:we,me=e.paginationPerPage,be=void 0===me?Tt.paginationPerPage:me,xe=e.paginationRowsPerPageOptions,ye=void 0===xe?Tt.paginationRowsPerPageOptions:xe,Ce=e.paginationIconLastPage,Re=void 0===Ce?Tt.paginationIconLastPage:Ce,Se=e.paginationIconFirstPage,Oe=void 0===Se?Tt.paginationIconFirstPage:Se,Pe=e.paginationIconNext,ke=void 0===Pe?Tt.paginationIconNext:Pe,De=e.paginationIconPrevious,He=void 0===De?Tt.paginationIconPrevious:De,Fe=e.paginationComponent,_e=void 0===Fe?Tt.paginationComponent:Fe,Te=e.paginationComponentOptions,Ie=void 0===Te?Tt.paginationComponentOptions:Te,Ae=e.responsive,ze=void 0===Ae?Tt.responsive:Ae,Le=e.progressPending,je=void 0===Le?Tt.progressPending:Le,We=e.progressComponent,Be=void 0===We?Tt.progressComponent:We,Ge=e.persistTableHead,Ve=void 0===Ge?Tt.persistTableHead:Ge,Ue=e.noDataComponent,qe=void 0===Ue?Tt.noDataComponent:Ue,Ye=e.disabled,$e=void 0===Ye?Tt.disabled:Ye,Ke=e.noTableHead,Je=void 0===Ke?Tt.noTableHead:Ke,Qe=e.noHeader,Xe=void 0===Qe?Tt.noHeader:Qe,Ze=e.fixedHeader,et=void 0===Ze?Tt.fixedHeader:Ze,tt=e.fixedHeaderScrollHeight,nt=void 0===tt?Tt.fixedHeaderScrollHeight:tt,ot=e.pagination,rt=void 0===ot?Tt.pagination:ot,it=e.subHeader,at=void 0===it?Tt.subHeader:it,lt=e.subHeaderAlign,dt=void 0===lt?Tt.subHeaderAlign:lt,st=e.subHeaderWrap,ct=void 0===st?Tt.subHeaderWrap:st,ut=e.subHeaderComponent,gt=void 0===ut?Tt.subHeaderComponent:ut,pt=e.noContextMenu,ft=void 0===pt?Tt.noContextMenu:pt,ht=e.contextMessage,wt=void 0===ht?Tt.contextMessage:ht,vt=e.contextActions,mt=void 0===vt?Tt.contextActions:vt,xt=e.contextComponent,yt=void 0===xt?Tt.contextComponent:xt,Dt=e.expandableRows,Ht=void 0===Dt?Tt.expandableRows:Dt,Ft=e.onRowClicked,_t=void 0===Ft?Tt.onRowClicked:Ft,It=e.onRowDoubleClicked,At=void 0===It?Tt.onRowDoubleClicked:It,zt=e.sortIcon,Lt=void 0===zt?Tt.sortIcon:zt,Mt=e.onSort,jt=void 0===Mt?Tt.onSort:Mt,Nt=e.sortFunction,Gt=void 0===Nt?Tt.sortFunction:Nt,Vt=e.sortServer,Ut=void 0===Vt?Tt.sortServer:Vt,qt=e.expandableRowsComponent,Yt=void 0===qt?Tt.expandableRowsComponent:qt,$t=e.expandableRowsComponentProps,Kt=void 0===$t?Tt.expandableRowsComponentProps:$t,Jt=e.expandableRowDisabled,Zt=void 0===Jt?Tt.expandableRowDisabled:Jt,en=e.expandableRowsHideExpander,tn=void 0===en?Tt.expandableRowsHideExpander:en,nn=e.expandOnRowClicked,on=void 0===nn?Tt.expandOnRowClicked:nn,rn=e.expandOnRowDoubleClicked,an=void 0===rn?Tt.expandOnRowDoubleClicked:rn,ln=e.expandableRowExpanded,dn=void 0===ln?Tt.expandableRowExpanded:ln,sn=e.expandableInheritConditionalStyles,cn=void 0===sn?Tt.expandableInheritConditionalStyles:sn,un=e.defaultSortFieldId,gn=void 0===un?Tt.defaultSortFieldId:un,pn=e.defaultSortAsc,fn=void 0===pn?Tt.defaultSortAsc:pn,hn=e.clearSelectedRows,wn=void 0===hn?Tt.clearSelectedRows:hn,vn=e.conditionalRowStyles,mn=void 0===vn?Tt.conditionalRowStyles:vn,bn=e.theme,xn=void 0===bn?Tt.theme:bn,yn=e.customStyles,Cn=void 0===yn?Tt.customStyles:yn,Rn=e.direction,Sn=void 0===Rn?Tt.direction:Rn,En=e.onColumnOrderChange,On=function(e,t,n,o){var r=i.useState((function(){return w(e)})),a=r[0],l=r[1],d=i.useState(""),s=d[0],c=d[1],g=i.useRef("");Bt((function(){l(w(e))}),[e]);var p,f=(void 0===(p=o)&&(p=!1),p?"asc":"desc"),h=i.useMemo((function(){return e[C(e,null==n?void 0:n.toString())]||{}}),[e,n]);return{tableColumns:a,draggingColumnId:s,handleDragStart:function(e){var t,n,o,r=null===(t=e.target.attributes.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(g.current=(null===(o=null===(n=a[C(a,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",c(g.current))},handleDragEnter:function(e){var n,o=null===(n=e.target.attributes.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(o&&g.current&&o!==g.current){var r=C(a,g.current),i=C(a,o),d=u([],a);d[r]=a[i],d[i]=a[r],l(d),t(d)}},handleDragOver:function(e){e.preventDefault()},handleDragLeave:function(e){e.preventDefault()},handleDragEnd:function(e){e.preventDefault(),g.current="",c("")},defaultSortDirection:f,defaultSortColumn:h}}(a,void 0===En?Tt.onColumnOrderChange:En,gn,fn),Pn=On.tableColumns,kn=On.draggingColumnId,Dn=On.handleDragStart,Hn=On.handleDragEnter,Fn=On.handleDragOver,_n=On.handleDragLeave,Tn=On.handleDragEnd,In=On.defaultSortDirection,An=On.defaultSortColumn,zn=i.useReducer(S,{rows:p(o,null==An?void 0:An.selector,In,Ut,Gt),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:An,toggleOnSelectedRowsChange:!1,sortDirection:In,currentPage:he,rowsPerPage:be,selectedRowsFlag:!1,contextMessage:Tt.contextMessage}),Ln=zn[0],Mn=Ln.rowsPerPage,jn=Ln.rows,Nn=Ln.currentPage,Wn=Ln.selectedRows,Bn=Ln.allSelected,Gn=Ln.selectedCount,Vn=Ln.selectedColumn,Un=Ln.sortDirection,qn=Ln.toggleOnSelectedRowsChange,Yn=zn[1],$n=ue.persistSelectedOnSort,Kn=void 0!==$n&&$n,Jn=ue.persistSelectedOnPageChange,Qn=void 0!==Jn&&Jn,Xn=!(!se||!Qn&&!Kn),Zn=rt&&!je&&o.length>0,eo=_e||Wt,to=i.useMemo((function(){return function(e,t){void 0===e&&(e={}),void 0===t&&(t="default");var n,o=Xt[t]?t:"default";return Qt({table:{style:{color:(n=Xt[o]).text.primary,backgroundColor:n.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:n.background.default,minHeight:"52px"}},head:{style:{}},headRow:{style:{backgroundColor:n.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:n.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{fontSize:"12px",fontWeight:500,color:n.text.primary,paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:n.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:n.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:n.sortFocus.default},"&:hover":{color:n.sortFocus.default}}},contextMenu:{style:{backgroundColor:n.context.background,fontSize:"18px",fontWeight:400,color:n.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:n.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:n.selected.text,backgroundColor:n.selected.default,borderBottomColor:n.background.default}},highlightOnHoverStyle:{color:n.highlightOnHover.text,backgroundColor:n.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:n.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:n.background.default},stripedStyle:{color:n.striped.text,backgroundColor:n.striped.default}},expanderRow:{style:{color:n.text.primary,backgroundColor:n.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:n.button.default,fill:n.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:n.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:n.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:n.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:n.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:n.button.default,fill:n.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:n.button.disabled,fill:n.button.disabled},"&:hover:not(:disabled)":{backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}}},e)}(Cn,xn)}),[Cn,xn]),no=i.useMemo((function(){return s({},"auto"!==Sn&&{dir:Sn})}),[Sn]),oo=i.useMemo((function(){if(rt&&!se){var e=Nn*Mn,t=e-Mn;return jn.slice(t,e)}return jn}),[Nn,rt,se,jn,Mn]),ro=function(e){Yn(e)},io=function(e){Yn(e)},ao=i.useCallback((function(e,t){return _t(e,t)}),[_t]),lo=i.useCallback((function(e,t){return At(e,t)}),[At]),so=function(e){return Yn({type:"CHANGE_PAGE",page:e,paginationServer:se,visibleOnly:j,persistSelectedOnPageChange:Qn})};if(rt&&!se&&jn.length>0&&0===oo.length){var co=v(jn.length,Mn),uo=m(Nn,co);so(uo)}Bt((function(){te({allSelected:Bn,selectedCount:Gn,selectedRows:Wn})}),[qn]),Bt((function(){jt(Vn,Un)}),[Vn,Un]),Bt((function(){le(Nn,pe||jn.length)}),[Nn]),Bt((function(){ie(Mn,Nn)}),[Mn]),Bt((function(){so(he)}),[he,ve]),Bt((function(){if(rt&&se&&pe>0){var e=v(pe,Mn),t=m(Nn,e);Nn!==t&&so(t)}}),[pe]),Bt((function(){Yn({type:"UPDATE_ROWS",rows:p(o,null==An?void 0:An.selector,In,Ut,Gt)})}),[o]),i.useEffect((function(){Yn({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:wn})}),[T,wn]),i.useEffect((function(){if(W&&!T){var e=jn.filter((function(e){return W(e)}));Yn({type:"SELECT_MULTIPLE_ROWS",keyField:h,selectedRows:e,rows:jn,mergeSelections:Xn})}}),[o]);var go=j?oo:jn,po=Qn||T||L;return i.createElement(t.ThemeProvider,{theme:to},!Xe&&(!!d||!!g)&&i.createElement(bt,{title:d,actions:g,showMenu:!ft,selectedCount:Gn,direction:Sn,contextActions:mt,contextComponent:yt,contextMessage:wt}),at&&i.createElement(Ct,{align:dt,wrapContent:ct},gt),i.createElement(St,s({responsive:ze,fixedHeader:et,fixedHeaderScrollHeight:nt},no),i.createElement(Ot,null,je&&!Ve&&i.createElement(Et,null,Be),i.createElement(B,{disabled:$e,className:"rdt_Table",role:"table"},!Je&&(!!Ve||jn.length>0&&!je)&&i.createElement(V,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:et},i.createElement(U,{className:"rdt_TableHeadRow",role:"row",dense:D},F&&(po?i.createElement(J,{style:{flex:"0 0 48px"}}):i.createElement(Ne,{allSelected:Bn,selectedRows:Wn,selectableRowsComponent:$,selectableRowsComponentProps:Q,selectableRowDisabled:q,rowData:go,keyField:h,mergeSelections:Xn,onSelectAllRows:function(e){Yn(e)}})),Ht&&!tn&&i.createElement(Pt,null),Pn.map((function(e){return i.createElement(Me,{key:e.id,column:e,selectedColumn:Vn,disabled:je||0===jn.length,rows:jn,pagination:rt,paginationServer:se,persistSelectedOnSort:Kn,selectableRowsVisibleOnly:j,sortFunction:Gt,sortDirection:Un,sortIcon:Lt,sortServer:Ut,onSort:ro,onDragStart:Dn,onDragOver:Fn,onDragEnd:Tn,onDragEnter:Hn,onDragLeave:_n,draggingColumnId:kn})})))),!jn.length&&!je&&i.createElement(kt,null,qe),je&&Ve&&i.createElement(Et,null,Be),!je&&jn.length>0&&i.createElement(Rt,{className:"rdt_TableBody",role:"rowgroup"},oo.map((function(e,t){var n,o=(void 0===(n=e[h])&&(n=""),"number"==typeof n||n&&0!==n.length?e[h]:t),r=y(e,Wn,h),a=!!(Ht&&dn&&dn(e)),l=!!(Ht&&Zt&&Zt(e));return i.createElement(Ee,{id:o,key:o,keyField:h,row:e,"data-row-id":e[h],columns:Pn,selectableRows:F,expandableRows:Ht,expandableIcon:oe,highlightOnHover:E,pointerOnHover:P,dense:D,expandOnRowClicked:on,expandOnRowDoubleClicked:an,expandableRowsComponent:Yt,expandableRowsComponentProps:Kt,expandableRowsHideExpander:tn,defaultExpanderDisabled:l,defaultExpanded:a,expandableInheritConditionalStyles:cn,conditionalRowStyles:mn,rowCount:jn.length,rowIndex:t,selected:r,selectableRowsHighlight:A,selectableRowsComponent:$,selectableRowsComponentProps:Q,selectableRowDisabled:q,selectableRowsSingle:T,striped:x,onRowExpandToggled:Z,onRowClicked:ao,onRowDoubleClicked:lo,onSelectedRow:io,draggingColumnId:kn,onDragStart:Dn,onDragOver:Fn,onDragEnd:Tn,onDragEnter:Hn,onDragLeave:_n})})))))),Zn&&i.createElement("div",null,i.createElement(eo,{onChangePage:so,onChangeRowsPerPage:function(e){var t=v(pe||oo.length,e),n=m(Nn,t);se||so(n),Yn({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})},rowCount:pe||jn.length,currentPage:Nn,rowsPerPage:Mn,direction:Sn,paginationRowsPerPageOptions:ye,paginationIconLastPage:Re,paginationIconFirstPage:Oe,paginationIconNext:ke,paginationIconPrevious:He,paginationComponentOptions:Ie})))}));exports.STOP_PROP_TAG="allowRowEvents",exports.createTheme=function(e,t){return void 0===e&&(e="default"),Xt[e]=Qt(Xt.default,t||{}),Xt[e]},exports.default=Zt,exports.defaultThemes=Xt;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),n=require("lodash.orderby");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=a(e),r=o(e),i=o(t),s=o(n);function d(e,t,n,o,a){return o||!t?e:c(e,t,n,a)}function c(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):s.default(e,t,n):e}function g(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function u(e=[],t,n="id"){const o=e.slice();return t[n]?o.splice(o.findIndex((e=>e[n]===t[n])),1):o.splice(o.findIndex((e=>e===t)),1),o}function p(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function b(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}const m=()=>null;function f(e,t=[]){let n={};return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function w(e,t=[],n="id"){return e[n]?t.some((t=>t[n]===e[n])):t.some((t=>t===e))}function x(e,t){return t?e.findIndex((e=>C(e.id,t))):-1}function C(e,t){return e==t}function y(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":{const{rows:n}=t;return Object.assign(Object.assign({},e),{rows:n})}case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!w(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!w(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:i}=t;return i?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:u(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:g(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,rows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!w(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l.length,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{rows:o,sortDirection:a,selectedColumn:l,clearSelectedOnSort:r}=t;return Object.assign(Object.assign(Object.assign({},e),{rows:o,selectedColumn:l,sortDirection:a,currentPage:1}),r&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const v=t.css`
pointer-events: none;
opacity: 0.4;
`,R=i.default.div`
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 100%;
${({disabled:e})=>e&&v};
${({theme:e})=>e.table.style};
`,S=t.css`
position: sticky;
position: -webkit-sticky; /* Safari */
top: 0;
z-index: 1;
`,E=i.default.div`
display: flex;
width: 100%;
${({fixedHeader:e})=>e&&S};
${({theme:e})=>e.head.style};
`,O=i.default.div`
display: flex;
align-items: stretch;
width: 100%;
${({theme:e})=>e.headRow.style};
${({dense:e,theme:t})=>e&&t.headRow.denseStyle};
`,P=(e,...n)=>t.css`
@media screen and (max-width: ${599}px) {
${t.css(e,...n)}
}
`,k=(e,...n)=>t.css`
@media screen and (max-width: ${959}px) {
${t.css(e,...n)}
}
`,D=(e,...n)=>t.css`
@media screen and (max-width: ${1280}px) {
${t.css(e,...n)}
}
`,H=e=>(n,...o)=>t.css`
@media screen and (max-width: ${e}px) {
${t.css(n,...o)}
}
`,$=i.default.div`
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
line-height: normal;
${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style};
${({noPadding:e})=>e&&"padding: 0"};
`,F=i.default($)`
flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
flex-shrink: 0;
flex-basis: 0;
max-width: ${({maxWidth:e})=>e||"100%"};
min-width: ${({minWidth:e})=>e||"100px"};
${({width:e})=>e&&t.css`
min-width: ${e};
max-width: ${e};
`};
${({right:e})=>e&&"justify-content: flex-end"};
${({button:e,center:t})=>(t||e)&&"justify-content: center"};
${({compact:e,button:t})=>(e||t)&&"padding: 0"};
/* handle hiding cells */
${({hide:e})=>e&&"sm"===e&&P`
display: none;
`};
${({hide:e})=>e&&"md"===e&&k`
display: none;
`};
${({hide:e})=>e&&"lg"===e&&D`
display: none;
`};
${({hide:e})=>e&&Number.isInteger(e)&&H(e)`
display: none;
`};
`,j=t.css`
div:first-child {
white-space: ${({wrapCell:e})=>e?"normal":"nowrap"};
overflow: ${({allowOverflow:e})=>e?"visible":"hidden"};
text-overflow: ellipsis;
}
`,T=i.default(F).attrs((e=>({style:e.style})))`
${({renderAsCell:e})=>!e&&j};
${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle};
${({cellStyle:e})=>e};
`;var I=l.memo((function({id:e,column:t,row:n,rowIndex:o,dataTag:a,isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g}){return l.createElement(T,{id:e,"data-column-id":t.id,role:"gridcell",className:"rdt_TableCell","data-tag":a,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:f(n,t.conditionalCellStyles),isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g},!t.cell&&l.createElement("div",{"data-tag":a},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce(((e,t)=>{const n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(let t=0;t<n.length;t++)return e[n[t]][n[t+1]];return e[t]}),e)}(n,t.selector,t.format,o)),t.cell&&t.cell(n,o,t,e))}));var A=l.memo((function({name:e,component:t="input",componentOptions:n={style:{}},indeterminate:o=!1,checked:a=!1,disabled:r=!1,onClick:i=m}){const s=t,d="input"!==s?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(r),c=l.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((o,a)=>{const l=e;"function"==typeof o&&(n=Object.assign(Object.assign({},l),{[Object.keys(e)[a]]:o(...t)}))})),n||e}(n,o)),[n,o]);return l.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=o)},style:d,onClick:r?m:i,name:e,"aria-label":e,checked:a,disabled:r},c,{onChange:m}))}));const _=i.default($)`
flex: 0 0 48px;
min-width: 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
`;function L({keyField:e,row:t,rowCount:n,selected:o,selectableRowsComponent:a,selectableRowsComponentProps:r,selectableRowsSingle:i,selectableRowDisabled:s,onSelectedRow:d}){const c=!(!s||!s(t));return l.createElement(_,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},l.createElement(A,{name:`select-row-${t[e]}`,component:a,componentOptions:r,checked:o,"aria-checked":o,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:t,isSelected:o,keyField:e,rowCount:n,singleSelect:i})},disabled:c}))}const M=i.default.button`
display: inline-flex;
align-items: center;
user-select: none;
white-space: nowrap;
border: none;
background-color: transparent;
${({theme:e})=>e.expanderButton.style};
`;function z({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:o,row:a,onToggled:r}){const i=t?n.expanded:n.collapsed;return l.createElement(M,{"aria-disabled":e,onClick:()=>r&&r(a),"data-testid":`expander-button-${o}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},i)}const N=i.default($)`
white-space: nowrap;
font-weight: 400;
min-width: 48px;
${({theme:e})=>e.expanderCell.style};
`;function W({row:e,expanded:t=!1,expandableIcon:n,id:o,onToggled:a,disabled:r=!1}){return l.createElement(N,{onClick:e=>e.stopPropagation(),noPadding:!0},l.createElement(z,{id:o,row:e,expanded:t,expandableIcon:n,disabled:r,onToggled:a}))}const B=i.default.div`
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.expanderRow.style};
${({extendedRowStyle:e})=>e};
`;var G=l.memo((function({data:e,component:t,componentProps:n,extendedRowStyle:o}){const a=t;return l.createElement(B,{className:"rdt_ExpanderRow",extendedRowStyle:o},l.createElement(a,Object.assign({data:e},n)))}));var V,U,q;exports.Direction=void 0,(V=exports.Direction||(exports.Direction={})).LTR="ltr",V.RTL="rtl",V.AUTO="auto",exports.Alignment=void 0,(U=exports.Alignment||(exports.Alignment={})).LEFT="left",U.RIGHT="right",U.CENTER="center",exports.Media=void 0,(q=exports.Media||(exports.Media={})).SM="sm",q.MD="md",q.LG="lg";const Y=t.css`
&:hover {
${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
}
`,K=t.css`
&:hover {
cursor: pointer;
}
`,J=i.default.div.attrs((e=>({style:e.style})))`
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.rows.style};
${({dense:e,theme:t})=>e&&t.rows.denseStyle};
${({striped:e,theme:t})=>e&&t.rows.stripedStyle};
${({highlightOnHover:e})=>e&&Y};
${({pointerOnHover:e})=>e&&K};
${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
`;function Q({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:o=!1,dense:a=!1,expandableIcon:r,expandableRows:i=!1,expandableRowsComponent:s,expandableRowsComponentProps:d,expandableRowsHideExpander:c,expandOnRowClicked:g=!1,expandOnRowDoubleClicked:u=!1,highlightOnHover:p=!1,id:b,expandableInheritConditionalStyles:h,keyField:w,onRowClicked:x=m,onRowDoubleClicked:y=m,onRowExpandToggled:v=m,onSelectedRow:R=m,pointerOnHover:S=!1,row:E,rowCount:O,rowIndex:P,selectableRowDisabled:k=null,selectableRows:D=!1,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowsHighlight:F=!1,selectableRowsSingle:j=!1,selected:T,striped:A=!1,draggingColumnId:_,onDragStart:M,onDragOver:z,onDragEnd:N,onDragEnter:B,onDragLeave:V}){const[U,q]=l.useState(n);l.useEffect((()=>{q(n)}),[n]);const Y=l.useCallback((()=>{q(!U),v(!U,E)}),[U,v,E]),K=S||i&&(g||u),Q=l.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(x(E,e),!o&&i&&g&&Y())}),[o,g,i,Y,x,E]),X=l.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(y(E,e),!o&&i&&u&&Y())}),[o,u,i,Y,y,E]),Z=f(E,t),ee=F&&T,te=h?Z:{},ne=A&&P%2==0;return l.createElement(l.Fragment,null,l.createElement(J,{id:`row-${b}`,role:"row",striped:ne,highlightOnHover:p,pointerOnHover:!o&&K,dense:a,onClick:Q,onDoubleClick:X,className:"rdt_TableRow",selected:ee,style:Z},D&&l.createElement(L,{keyField:w,row:E,rowCount:O,selected:T,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowDisabled:k,selectableRowsSingle:j,onSelectedRow:R}),i&&!c&&l.createElement(W,{id:E[w],expandableIcon:r,expanded:U,row:E,onToggled:Y,disabled:o}),e.map((e=>e.omit?null:l.createElement(I,{id:`cell-${e.id}-${E[w]}`,key:`cell-${e.id}-${E[w]}`,dataTag:e.ignoreRowClick||e.button?null:"allowRowEvents",column:e,row:E,rowIndex:P,isDragging:C(_,e.id),onDragStart:M,onDragOver:z,onDragEnd:N,onDragEnter:B,onDragLeave:V})))),i&&U&&l.createElement(G,{key:`expander-${E[w]}`,data:E,extendedRowStyle:te,component:s,componentProps:d}))}const X=i.default.span`
padding: 2px;
color: inherit;
flex-grow: 0;
flex-shrink: 0;
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
`,Z=({sortActive:e,sortDirection:t})=>r.default.createElement(X,{sortActive:e,sortDirection:t},"▲"),ee=i.default(F)`
${({button:e})=>e&&"text-align: center"};
${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle};
`,te=t.css`
${({theme:e,sortActive:t})=>t?e.headCells.activeSortStyle:e.headCells.inactiveSortStyle};
span.__rdt_custom_sort_icon__ {
i,
svg {
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
color: inherit;
font-size: 18px !important;
height: 18px !important;
width: 18px !important;
backface-visibility: hidden;
transform-style: preserve-3d;
transition-duration: 125ms;
transition-property: transform;
}
&.asc i,
&.asc svg {
transform: rotate(180deg);
}
}
&:hover {
cursor: pointer;
${({theme:e})=>e.headCells.activeStyle};
span,
span.__rdt_custom_sort_icon__ * {
${({sortActive:e})=>!e&&"opacity: 1"};
}
}
`,ne=i.default.div`
align-items: center;
height: 100%;
line-height: 1.5;
outline: none;
user-select: none;
display: inline-flex;
overflow: hidden;
${({disabled:e,sortable:t})=>t&&!e&&te};
`,oe=i.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;var ae=l.memo((function({rows:e,column:t,disabled:n,draggingColumnId:o,selectedColumn:a={},sortDirection:r,sortFunction:i,sortIcon:s,sortServer:d,pagination:g,paginationServer:u,persistSelectedOnSort:p,selectableRowsVisibleOnly:b,onSort:h,onDragStart:m,onDragOver:f,onDragEnd:w,onDragEnter:x,onDragLeave:y}){if(l.useEffect((()=>{"string"==typeof t.selector&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]),t.omit)return null;const v=()=>{if(t.sortable&&t.selector){let n=r;C(a.id,t.id)&&(n="asc"===r?"desc":"asc");let o=e;if(!d){o=c(e,t.selector,n,i);const a=t.sortFunction;if(a){const t="asc"===n?a:(e,t)=>-1*a(e,t);o=[...e].sort(t)}}h({type:"SORT_CHANGE",rows:o,sortDirection:n,selectedColumn:t,clearSelectedOnSort:g&&u&&!p||d||b})}},R=e=>l.createElement(Z,{sortActive:e,sortDirection:r}),S=()=>l.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},s),E=!(!t.sortable||!C(a.id,t.id)),O=t.sortable&&!s&&!t.right,P=t.sortable&&!s&&t.right,k=t.sortable&&s&&!t.right,D=t.sortable&&s&&t.right;return l.createElement(ee,{"data-column-id":t.id,className:"rdt_TableCol",headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,isDragging:C(t.id,o),onDragStart:m,onDragOver:f,onDragEnd:w,onDragEnter:x,onDragLeave:y},t.name&&l.createElement(ne,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:n?void 0:v,onKeyPress:n?void 0:e=>{"Enter"===e.key&&v()},sortActive:!n&&E,sortable:t.sortable,disabled:n},!n&&D&&S(),!n&&P&&R(E),l.createElement(oe,{"data-column-id":t.id},t.name),!n&&k&&S(),!n&&O&&R(E)))}));const le=i.default($)`
flex: 0 0 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
font-size: unset;
`;function re({headCell:e=!0,rowData:t,keyField:n,allSelected:o,mergeSelections:a,selectedRows:r,selectableRowsComponent:i,selectableRowsComponentProps:s,selectableRowDisabled:d,onSelectAllRows:c}){const g=r.length>0&&!o,u=d?t.filter((e=>!d(e))):t,p=0===u.length,b=Math.min(t.length,u.length);return l.createElement(le,{className:"rdt_TableCol",headCell:e,noPadding:!0},l.createElement(A,{name:"select-all-rows",component:i,componentOptions:s,onClick:()=>{c({type:"SELECT_ALL_ROWS",rows:u,rowCount:b,mergeSelections:a,keyField:n})},checked:o,indeterminate:g,disabled:p}))}function ie(e=exports.Direction.AUTO){const t="object"==typeof window,[n,o]=l.useState(!1);return l.useEffect((()=>{if(t)if("auto"!==e)o("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],a="rtl"===t.dir||"rtl"===n.dir;o(e&&a)}}),[e,t]),n}const se=i.default.div`
display: flex;
align-items: center;
flex: 1 0 auto;
height: 100%;
color: ${({theme:e})=>e.contextMenu.fontColor};
font-size: ${({theme:e})=>e.contextMenu.fontSize};
font-weight: 400;
`,de=i.default.div`
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
`,ce=i.default.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: inherit;
z-index: 1;
align-items: center;
justify-content: space-between;
display: flex;
${({rtl:e})=>e&&"direction: rtl"};
${({theme:e})=>e.contextMenu.style};
${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle};
`;function ge({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:o,direction:a}){const r=ie(a),i=o>0;return n?l.createElement(ce,{visible:i},l.cloneElement(n,{selectedCount:o})):l.createElement(ce,{visible:i,rtl:r},l.createElement(se,null,((e,t,n)=>{if(0===t)return null;const o=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${o}`:`${t} ${o} ${e.message||""}`})(e,o,r)),l.createElement(de,null,t))}const ue=i.default.div`
position: relative;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
width: 100%;
flex-wrap: wrap;
${({theme:e})=>e.header.style}
`,pe=i.default.div`
flex: 1 0 auto;
color: ${({theme:e})=>e.header.fontColor};
font-size: ${({theme:e})=>e.header.fontSize};
font-weight: 400;
`,be=i.default.div`
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: flex-end;
> * {
margin-left: 5px;
}
`,he=({title:e,actions:t=null,contextMessage:n,contextActions:o,contextComponent:a,selectedCount:r,direction:i,showMenu:s=!0})=>l.createElement(ue,{className:"rdt_TableHeader",role:"heading","aria-level":1},l.createElement(pe,null,e),t&&l.createElement(be,null,t),s&&l.createElement(ge,{contextMessage:n,contextActions:o,contextComponent:a,direction:i,selectedCount:r}))
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */;function me(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}const fe={left:"flex-start",right:"flex-end",center:"center"},we=i.default.header`
position: relative;
display: flex;
flex: 1 1 auto;
box-sizing: border-box;
align-items: center;
padding: 4px 16px 4px 24px;
width: 100%;
justify-content: ${({align:e})=>fe[e]};
flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"};
${({theme:e})=>e.subHeader.style}
`,xe=e=>{var{align:t="right",wrapContent:n=!0}=e,o=me(e,["align","wrapContent"]);return l.createElement(we,Object.assign({align:t,wrapContent:n},o))},Ce=i.default.div`
display: flex;
flex-direction: column;
`,ye=i.default.div`
position: relative;
width: 100%;
border-radius: inherit;
${({responsive:e,fixedHeader:n})=>e&&t.css`
overflow-x: auto;
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
overflow-y: ${n?"auto":"hidden"};
min-height: 0;
`};
${({fixedHeader:e=!1,fixedHeaderScrollHeight:n="100vh"})=>e&&t.css`
max-height: ${n};
-webkit-overflow-scrolling: touch;
`};
`,ve=i.default.div`
position: relative;
box-sizing: border-box;
width: 100%;
height: 100%;
${e=>e.theme.progress.style};
`,Re=i.default.div`
position: relative;
width: 100%;
${({theme:e})=>e.tableWrapper.style};
`,Se=i.default($)`
white-space: nowrap;
${({theme:e})=>e.expanderCell.style};
`,Ee=i.default.div`
box-sizing: border-box;
width: 100%;
height: 100%;
${({theme:e})=>e.noData.style};
`,Oe=()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r.default.createElement("path",{d:"M7 10l5 5 5-5z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Pe=i.default.select`
cursor: pointer;
height: 24px;
max-width: 100%;
user-select: none;
padding-left: 8px;
padding-right: 24px;
box-sizing: content-box;
font-size: inherit;
color: inherit;
border: none;
background-color: transparent;
appearance: none;
direction: ltr;
flex-shrink: 0;
&::-ms-expand {
display: none;
}
&:disabled::-ms-expand {
background: #f60;
}
option {
color: initial;
}
`,ke=i.default.div`
position: relative;
flex-shrink: 0;
font-size: inherit;
color: inherit;
margin-top: 1px;
svg {
top: 0;
right: 0;
color: inherit;
position: absolute;
fill: currentColor;
width: 24px;
height: 24px;
display: inline-block;
user-select: none;
pointer-events: none;
}
`,De=e=>{var{defaultValue:t,onChange:n}=e,o=me(e,["defaultValue","onChange"]);return l.createElement(ke,null,l.createElement(Pe,Object.assign({onChange:n,defaultValue:t},o)),l.createElement(Oe,null))},He={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return r.default.createElement("div",null,"To add an expander pass in a component instance via ",r.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:r.default.createElement((()=>r.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),r.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:r.default.createElement((()=>r.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),r.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:r.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:r.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:exports.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),r.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),r.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:exports.Direction.AUTO,onChangePage:m,onChangeRowsPerPage:m,onRowClicked:m,onRowDoubleClicked:m,onRowExpandToggled:m,onSelectedRowsChange:m,onSort:m,onColumnOrderChange:m},$e={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Fe=i.default.nav`
display: flex;
flex: 1 1 auto;
justify-content: flex-end;
align-items: center;
box-sizing: border-box;
padding-right: 8px;
padding-left: 8px;
width: 100%;
${({theme:e})=>e.pagination.style};
`,je=i.default.button`
position: relative;
display: block;
user-select: none;
border: none;
${({theme:e})=>e.pagination.pageButtonsStyle};
${({isRTL:e})=>e&&"transform: scale(-1, -1)"};
`,Te=i.default.div`
display: flex;
align-items: center;
border-radius: 4px;
white-space: nowrap;
${P`
width: 100%;
justify-content: space-around;
`};
`,Ie=i.default.span`
flex-shrink: 1;
user-select: none;
`,Ae=i.default(Ie)`
margin: 0 24px;
`,_e=i.default(Ie)`
margin: 0 4px;
`;var Le=l.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:o=He.direction,paginationRowsPerPageOptions:a=He.paginationRowsPerPageOptions,paginationIconLastPage:r=He.paginationIconLastPage,paginationIconFirstPage:i=He.paginationIconFirstPage,paginationIconNext:s=He.paginationIconNext,paginationIconPrevious:d=He.paginationIconPrevious,paginationComponentOptions:c=He.paginationComponentOptions,onChangeRowsPerPage:g=He.onChangeRowsPerPage,onChangePage:u=He.onChangePage}){const p=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,o]=l.useState(t);return l.useEffect((()=>{if(!e)return()=>null;function n(){o(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),h=ie(o),m=p.width&&p.width>599,f=b(t,e),w=n*e,x=w-e+1,C=1===n,y=n===f,v=Object.assign(Object.assign({},$e),c),R=n===f?`${x}-${t} ${v.rangeSeparatorText} ${t}`:`${x}-${w} ${v.rangeSeparatorText} ${t}`,S=l.useCallback((()=>u(n-1)),[n,u]),E=l.useCallback((()=>u(n+1)),[n,u]),O=l.useCallback((()=>u(1)),[u]),P=l.useCallback((()=>u(b(t,e))),[u,t,e]),k=l.useCallback((e=>g(Number(e.target.value),n)),[n,g]),D=a.map((e=>l.createElement("option",{key:e,value:e},e)));v.selectAllRowsItem&&D.push(l.createElement("option",{key:-1,value:t},v.selectAllRowsItemText));const H=l.createElement(De,{onChange:k,defaultValue:e,"aria-label":v.rowsPerPageText},D);return l.createElement(Fe,{className:"rdt_Pagination"},!v.noRowsPerPage&&m&&l.createElement(l.Fragment,null,l.createElement(_e,null,v.rowsPerPageText),H),m&&l.createElement(Ae,null,R),l.createElement(Te,null,l.createElement(je,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":C,onClick:O,disabled:C,isRTL:h},i),l.createElement(je,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":C,onClick:S,disabled:C,isRTL:h},d),!m&&H,l.createElement(je,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":y,onClick:E,disabled:y,isRTL:h},s),l.createElement(je,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":y,onClick:P,disabled:y,isRTL:h},r)))}));const Me=(e,t)=>{const n=l.useRef(!0);l.useEffect((()=>{n.current?n.current=!1:e()}),t)};var ze=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ne}(e)}(e)};var Ne="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function We(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Be(e,t,n){return e.concat(t).map((function(e){return We(e,n)}))}function Ge(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ve(e,t){try{return t in e}catch(e){return!1}}function Ue(e,t,n){var o={};return n.isMergeableObject(e)&&Ge(e).forEach((function(t){o[t]=We(e[t],n)})),Ge(t).forEach((function(a){(function(e,t){return Ve(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Ve(e,a)&&n.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return qe;var n=t.customMerge(e);return"function"==typeof n?n:qe}(a,n)(e[a],t[a],n):o[a]=We(t[a],n))})),o}function qe(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Be,n.isMergeableObject=n.isMergeableObject||ze,n.cloneUnlessOtherwiseSpecified=We;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Ue(e,t,n):We(t,n)}qe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return qe(e,n,t)}),{})};var Ye=qe;const Ke={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};var Je=l.memo((function(e){const{data:n=He.data,columns:o=He.columns,title:a=He.title,actions:r=He.actions,keyField:i=He.keyField,striped:s=He.striped,highlightOnHover:c=He.highlightOnHover,pointerOnHover:g=He.pointerOnHover,dense:u=He.dense,selectableRows:m=He.selectableRows,selectableRowsSingle:f=He.selectableRowsSingle,selectableRowsHighlight:C=He.selectableRowsHighlight,selectableRowsNoSelectAll:v=He.selectableRowsNoSelectAll,selectableRowsVisibleOnly:S=He.selectableRowsVisibleOnly,selectableRowSelected:P=He.selectableRowSelected,selectableRowDisabled:k=He.selectableRowDisabled,selectableRowsComponent:D=He.selectableRowsComponent,selectableRowsComponentProps:H=He.selectableRowsComponentProps,onRowExpandToggled:F=He.onRowExpandToggled,onSelectedRowsChange:j=He.onSelectedRowsChange,expandableIcon:T=He.expandableIcon,onChangeRowsPerPage:I=He.onChangeRowsPerPage,onChangePage:A=He.onChangePage,paginationServer:_=He.paginationServer,paginationServerOptions:L=He.paginationServerOptions,paginationTotalRows:M=He.paginationTotalRows,paginationDefaultPage:z=He.paginationDefaultPage,paginationResetDefaultPage:N=He.paginationResetDefaultPage,paginationPerPage:W=He.paginationPerPage,paginationRowsPerPageOptions:B=He.paginationRowsPerPageOptions,paginationIconLastPage:G=He.paginationIconLastPage,paginationIconFirstPage:V=He.paginationIconFirstPage,paginationIconNext:U=He.paginationIconNext,paginationIconPrevious:q=He.paginationIconPrevious,paginationComponent:Y=He.paginationComponent,paginationComponentOptions:K=He.paginationComponentOptions,responsive:J=He.responsive,progressPending:X=He.progressPending,progressComponent:Z=He.progressComponent,persistTableHead:ee=He.persistTableHead,noDataComponent:te=He.noDataComponent,disabled:ne=He.disabled,noTableHead:oe=He.noTableHead,noHeader:le=He.noHeader,fixedHeader:ie=He.fixedHeader,fixedHeaderScrollHeight:se=He.fixedHeaderScrollHeight,pagination:de=He.pagination,subHeader:ce=He.subHeader,subHeaderAlign:ge=He.subHeaderAlign,subHeaderWrap:ue=He.subHeaderWrap,subHeaderComponent:pe=He.subHeaderComponent,noContextMenu:be=He.noContextMenu,contextMessage:me=He.contextMessage,contextActions:fe=He.contextActions,contextComponent:we=He.contextComponent,expandableRows:Oe=He.expandableRows,onRowClicked:Pe=He.onRowClicked,onRowDoubleClicked:ke=He.onRowDoubleClicked,sortIcon:De=He.sortIcon,onSort:$e=He.onSort,sortFunction:Fe=He.sortFunction,sortServer:je=He.sortServer,expandableRowsComponent:Te=He.expandableRowsComponent,expandableRowsComponentProps:Ie=He.expandableRowsComponentProps,expandableRowDisabled:Ae=He.expandableRowDisabled,expandableRowsHideExpander:_e=He.expandableRowsHideExpander,expandOnRowClicked:ze=He.expandOnRowClicked,expandOnRowDoubleClicked:Ne=He.expandOnRowDoubleClicked,expandableRowExpanded:We=He.expandableRowExpanded,expandableInheritConditionalStyles:Be=He.expandableInheritConditionalStyles,defaultSortFieldId:Ge=He.defaultSortFieldId,defaultSortAsc:Ve=He.defaultSortAsc,clearSelectedRows:Ue=He.clearSelectedRows,conditionalRowStyles:qe=He.conditionalRowStyles,theme:Je=He.theme,customStyles:Qe=He.customStyles,direction:Xe=He.direction,onColumnOrderChange:Ze=He.onColumnOrderChange}=e,{tableColumns:et,draggingColumnId:tt,handleDragStart:nt,handleDragEnter:ot,handleDragOver:at,handleDragLeave:lt,handleDragEnd:rt,defaultSortDirection:it,defaultSortColumn:st}=function(e,t,n,o){const[a,r]=l.useState((()=>p(e))),[i,s]=l.useState(""),d=l.useRef("");Me((()=>{r(p(e))}),[e]);const c=l.useCallback((e=>{var t,n,o;const{attributes:l}=e.target,r=null===(t=l.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(d.current=(null===(o=null===(n=a[x(a,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",s(d.current))}),[a]),g=l.useCallback((e=>{var n;const{attributes:o}=e.target,l=null===(n=o.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(l&&d.current&&l!==d.current){const e=x(a,d.current),n=x(a,l),o=[...a];o[e]=a[n],o[n]=a[e],r(o),t(o)}}),[t,a]),u=l.useCallback((e=>{e.preventDefault()}),[]),b=l.useCallback((e=>{e.preventDefault()}),[]),h=l.useCallback((e=>{e.preventDefault(),d.current="",s("")}),[]),m=function(e=!1){return e?"asc":"desc"}(o),f=l.useMemo((()=>e[x(e,null==n?void 0:n.toString())]||{}),[e,n]);return{tableColumns:a,draggingColumnId:i,handleDragStart:c,handleDragEnter:g,handleDragOver:u,handleDragLeave:b,handleDragEnd:h,defaultSortDirection:m,defaultSortColumn:f}}(o,Ze,Ge,Ve),[{rowsPerPage:dt,rows:ct,currentPage:gt,selectedRows:ut,allSelected:pt,selectedCount:bt,selectedColumn:ht,sortDirection:mt,toggleOnSelectedRowsChange:ft},wt]=l.useReducer(y,{rows:d(n,null==st?void 0:st.selector,it,je,Fe),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:st,toggleOnSelectedRowsChange:!1,sortDirection:it,currentPage:z,rowsPerPage:W,selectedRowsFlag:!1,contextMessage:He.contextMessage}),{persistSelectedOnSort:xt=!1,persistSelectedOnPageChange:Ct=!1}=L,yt=!(!_||!Ct&&!xt),vt=de&&!X&&n.length>0,Rt=Y||Le,St=l.useMemo((()=>((e={},t="default")=>{const n=Ke[t]?t:"default";return Ye({table:{style:{color:(o=Ke[n]).text.primary,backgroundColor:o.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:o.text.primary,backgroundColor:o.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:o.background.default,minHeight:"52px"}},head:{style:{color:o.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:o.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:o.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:o.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:o.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:o.sortFocus.default},"&:hover":{color:o.sortFocus.default}}},contextMenu:{style:{backgroundColor:o.context.background,fontSize:"18px",fontWeight:400,color:o.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:o.text.primary,backgroundColor:o.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:o.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:o.selected.text,backgroundColor:o.selected.default,borderBottomColor:o.background.default}},highlightOnHoverStyle:{color:o.highlightOnHover.text,backgroundColor:o.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:o.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:o.background.default},stripedStyle:{color:o.striped.text,backgroundColor:o.striped.default}},expanderRow:{style:{color:o.text.primary,backgroundColor:o.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:o.button.default,fill:o.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:o.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:o.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:o.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:o.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:o.button.default,fill:o.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:o.button.disabled,fill:o.button.disabled},"&:hover:not(:disabled)":{backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}}},e);var o})(Qe,Je)),[Qe,Je]),Et=l.useMemo((()=>Object.assign({},"auto"!==Xe&&{dir:Xe})),[Xe]),Ot=l.useMemo((()=>{if(de&&!_){const e=gt*dt,t=e-dt;return ct.slice(t,e)}return ct}),[gt,de,_,ct,dt]),Pt=l.useCallback((e=>{wt(e)}),[]),kt=l.useCallback((e=>{wt(e)}),[]),Dt=l.useCallback((e=>{wt(e)}),[]),Ht=l.useCallback(((e,t)=>Pe(e,t)),[Pe]),$t=l.useCallback(((e,t)=>ke(e,t)),[ke]),Ft=l.useCallback((e=>wt({type:"CHANGE_PAGE",page:e,paginationServer:_,visibleOnly:S,persistSelectedOnPageChange:Ct})),[_,Ct,S]),jt=l.useCallback((e=>{const t=b(M||Ot.length,e),n=h(gt,t);_||Ft(n),wt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[gt,Ft,_,M,Ot.length]);if(de&&!_&&ct.length>0&&0===Ot.length){const e=b(ct.length,dt),t=h(gt,e);Ft(t)}Me((()=>{j({allSelected:pt,selectedCount:bt,selectedRows:ut})}),[ft]),Me((()=>{$e(ht,mt)}),[ht,mt]),Me((()=>{A(gt,M||ct.length)}),[gt]),Me((()=>{I(dt,gt)}),[dt]),Me((()=>{Ft(z)}),[z,N]),Me((()=>{if(de&&_&&M>0){const e=b(M,dt),t=h(gt,e);gt!==t&&Ft(t)}}),[M]),Me((()=>{wt({type:"UPDATE_ROWS",rows:d(n,null==st?void 0:st.selector,it,je,Fe)})}),[n]),l.useEffect((()=>{wt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ue})}),[f,Ue]),l.useEffect((()=>{if(P&&!f){const e=ct.filter((e=>P(e)));wt({type:"SELECT_MULTIPLE_ROWS",keyField:i,selectedRows:e,rows:ct,mergeSelections:yt})}}),[n]);const Tt=S?Ot:ct,It=Ct||f||v;return l.createElement(t.ThemeProvider,{theme:St},!le&&(!!a||!!r)&&l.createElement(he,{title:a,actions:r,showMenu:!be,selectedCount:bt,direction:Xe,contextActions:fe,contextComponent:we,contextMessage:me}),ce&&l.createElement(xe,{align:ge,wrapContent:ue},pe),l.createElement(ye,Object.assign({responsive:J,fixedHeader:ie,fixedHeaderScrollHeight:se},Et),l.createElement(Re,null,X&&!ee&&l.createElement(ve,null,Z),l.createElement(R,{disabled:ne,className:"rdt_Table",role:"table"},!oe&&(!!ee||ct.length>0&&!X)&&l.createElement(E,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:ie},l.createElement(O,{className:"rdt_TableHeadRow",role:"row",dense:u},m&&(It?l.createElement($,{style:{flex:"0 0 48px"}}):l.createElement(re,{allSelected:pt,selectedRows:ut,selectableRowsComponent:D,selectableRowsComponentProps:H,selectableRowDisabled:k,rowData:Tt,keyField:i,mergeSelections:yt,onSelectAllRows:kt})),Oe&&!_e&&l.createElement(Se,null),et.map((e=>l.createElement(ae,{key:e.id,column:e,selectedColumn:ht,disabled:X||0===ct.length,rows:ct,pagination:de,paginationServer:_,persistSelectedOnSort:xt,selectableRowsVisibleOnly:S,sortFunction:Fe,sortDirection:mt,sortIcon:De,sortServer:je,onSort:Pt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt,draggingColumnId:tt}))))),!ct.length&&!X&&l.createElement(Ee,null,te),X&&ee&&l.createElement(ve,null,Z),!X&&ct.length>0&&l.createElement(Ce,{className:"rdt_TableBody",role:"rowgroup"},Ot.map(((e,t)=>{const n=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(e[i])?t:e[i],o=w(e,ut,i),a=!!(Oe&&We&&We(e)),r=!!(Oe&&Ae&&Ae(e));return l.createElement(Q,{id:n,key:n,keyField:i,"data-row-id":e[i],columns:et,row:e,rowCount:ct.length,rowIndex:t,selectableRows:m,expandableRows:Oe,expandableIcon:T,highlightOnHover:c,pointerOnHover:g,dense:u,expandOnRowClicked:ze,expandOnRowDoubleClicked:Ne,expandableRowsComponent:Te,expandableRowsComponentProps:Ie,expandableRowsHideExpander:_e,defaultExpanderDisabled:r,defaultExpanded:a,expandableInheritConditionalStyles:Be,conditionalRowStyles:qe,selected:o,selectableRowsHighlight:C,selectableRowsComponent:D,selectableRowsComponentProps:H,selectableRowDisabled:k,selectableRowsSingle:f,striped:s,onRowExpandToggled:F,onRowClicked:Ht,onRowDoubleClicked:$t,onSelectedRow:Dt,draggingColumnId:tt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt})})))))),vt&&l.createElement("div",null,l.createElement(Rt,{onChangePage:Ft,onChangeRowsPerPage:jt,rowCount:M||ct.length,currentPage:gt,rowsPerPage:dt,direction:Xe,paginationRowsPerPageOptions:B,paginationIconLastPage:G,paginationIconFirstPage:V,paginationIconNext:U,paginationIconPrevious:q,paginationComponentOptions:K})))}));exports.STOP_PROP_TAG="allowRowEvents",exports.createTheme=function(e="default",t){return Ke[e]=Ye(Ke.default,t||{}),Ke[e]},exports.default=Je,exports.defaultThemes=Ke;
//# sourceMappingURL=index.cjs.js.map

@@ -1,2 +0,251 @@

import*as e from"react";import t from"react";import n,{css as o,ThemeProvider as r}from"styled-components";import i from"lodash.orderby";
import*as e from"react";import t from"react";import n,{css as o,ThemeProvider as a}from"styled-components";import l from"lodash.orderby";function r(e,t,n,o,a){return o||!t?e:i(e,t,n,a)}function i(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):l(e,t,n):e}function s(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function d(e=[],t,n="id"){const o=e.slice();return t[n]?o.splice(o.findIndex((e=>e[n]===t[n])),1):o.splice(o.findIndex((e=>e===t)),1),o}function c(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function p(e,t){return Math.min(e,t)}const u=()=>null;function b(e,t=[]){let n={};return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function h(e,t=[],n="id"){return e[n]?t.some((t=>t[n]===e[n])):t.some((t=>t===e))}function m(e,t){return t?e.findIndex((e=>w(e.id,t))):-1}function w(e,t){return e==t}function f(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":{const{rows:n}=t;return Object.assign(Object.assign({},e),{rows:n})}case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!h(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!h(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:i}=t;return i?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:d(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:s(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,rows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!h(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l.length,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{rows:o,sortDirection:a,selectedColumn:l,clearSelectedOnSort:r}=t;return Object.assign(Object.assign(Object.assign({},e),{rows:o,selectedColumn:l,sortDirection:a,currentPage:1}),r&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const x=o`
pointer-events: none;
opacity: 0.4;
`,C=n.div`
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 100%;
${({disabled:e})=>e&&x};
${({theme:e})=>e.table.style};
`,y=o`
position: sticky;
position: -webkit-sticky; /* Safari */
top: 0;
z-index: 1;
`,v=n.div`
display: flex;
width: 100%;
${({fixedHeader:e})=>e&&y};
${({theme:e})=>e.head.style};
`,R=n.div`
display: flex;
align-items: stretch;
width: 100%;
${({theme:e})=>e.headRow.style};
${({dense:e,theme:t})=>e&&t.headRow.denseStyle};
`,S=(e,...t)=>o`
@media screen and (max-width: ${599}px) {
${o(e,...t)}
}
`,E=(e,...t)=>o`
@media screen and (max-width: ${959}px) {
${o(e,...t)}
}
`,O=(e,...t)=>o`
@media screen and (max-width: ${1280}px) {
${o(e,...t)}
}
`,P=e=>(t,...n)=>o`
@media screen and (max-width: ${e}px) {
${o(t,...n)}
}
`,k=n.div`
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
line-height: normal;
${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style};
${({noPadding:e})=>e&&"padding: 0"};
`,D=n(k)`
flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
flex-shrink: 0;
flex-basis: 0;
max-width: ${({maxWidth:e})=>e||"100%"};
min-width: ${({minWidth:e})=>e||"100px"};
${({width:e})=>e&&o`
min-width: ${e};
max-width: ${e};
`};
${({right:e})=>e&&"justify-content: flex-end"};
${({button:e,center:t})=>(t||e)&&"justify-content: center"};
${({compact:e,button:t})=>(e||t)&&"padding: 0"};
/* handle hiding cells */
${({hide:e})=>e&&"sm"===e&&S`
display: none;
`};
${({hide:e})=>e&&"md"===e&&E`
display: none;
`};
${({hide:e})=>e&&"lg"===e&&O`
display: none;
`};
${({hide:e})=>e&&Number.isInteger(e)&&P(e)`
display: none;
`};
`,H=o`
div:first-child {
white-space: ${({wrapCell:e})=>e?"normal":"nowrap"};
overflow: ${({allowOverflow:e})=>e?"visible":"hidden"};
text-overflow: ellipsis;
}
`,$=n(D).attrs((e=>({style:e.style})))`
${({renderAsCell:e})=>!e&&H};
${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle};
${({cellStyle:e})=>e};
`;var F=e.memo((function({id:t,column:n,row:o,rowIndex:a,dataTag:l,isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g}){return e.createElement($,{id:t,"data-column-id":n.id,role:"gridcell",className:"rdt_TableCell","data-tag":l,cellStyle:n.style,renderAsCell:!!n.cell,allowOverflow:n.allowOverflow,button:n.button,center:n.center,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,width:n.width,wrapCell:n.wrap,style:b(o,n.conditionalCellStyles),isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g},!n.cell&&e.createElement("div",{"data-tag":l},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce(((e,t)=>{const n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(let t=0;t<n.length;t++)return e[n[t]][n[t+1]];return e[t]}),e)}(o,n.selector,n.format,a)),n.cell&&n.cell(o,a,n,t))}));var j=e.memo((function({name:t,component:n="input",componentOptions:o={style:{}},indeterminate:a=!1,checked:l=!1,disabled:r=!1,onClick:i=u}){const s=n,d="input"!==s?o.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(r),c=e.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((o,a)=>{const l=e;"function"==typeof o&&(n=Object.assign(Object.assign({},l),{[Object.keys(e)[a]]:o(...t)}))})),n||e}(o,a)),[o,a]);return e.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=a)},style:d,onClick:r?u:i,name:t,"aria-label":t,checked:l,disabled:r},c,{onChange:u}))}));const I=n(k)`
flex: 0 0 48px;
min-width: 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
`;function T({keyField:t,row:n,rowCount:o,selected:a,selectableRowsComponent:l,selectableRowsComponentProps:r,selectableRowsSingle:i,selectableRowDisabled:s,onSelectedRow:d}){const c=!(!s||!s(n));return e.createElement(I,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},e.createElement(j,{name:`select-row-${n[t]}`,component:l,componentOptions:r,checked:a,"aria-checked":a,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:n,isSelected:a,keyField:t,rowCount:o,singleSelect:i})},disabled:c}))}const A=n.button`
display: inline-flex;
align-items: center;
user-select: none;
white-space: nowrap;
border: none;
background-color: transparent;
${({theme:e})=>e.expanderButton.style};
`;function L({disabled:t=!1,expanded:n=!1,expandableIcon:o,id:a,row:l,onToggled:r}){const i=n?o.expanded:o.collapsed;return e.createElement(A,{"aria-disabled":t,onClick:()=>r&&r(l),"data-testid":`expander-button-${a}`,disabled:t,"aria-label":n?"Collapse Row":"Expand Row",role:"button",type:"button"},i)}const _=n(k)`
white-space: nowrap;
font-weight: 400;
min-width: 48px;
${({theme:e})=>e.expanderCell.style};
`;function M({row:t,expanded:n=!1,expandableIcon:o,id:a,onToggled:l,disabled:r=!1}){return e.createElement(_,{onClick:e=>e.stopPropagation(),noPadding:!0},e.createElement(L,{id:a,row:t,expanded:n,expandableIcon:o,disabled:r,onToggled:l}))}const z=n.div`
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.expanderRow.style};
${({extendedRowStyle:e})=>e};
`;var N=e.memo((function({data:t,component:n,componentProps:o,extendedRowStyle:a}){const l=n;return e.createElement(z,{className:"rdt_ExpanderRow",extendedRowStyle:a},e.createElement(l,Object.assign({data:t},o)))}));const W="allowRowEvents";var B,G,V;!function(e){e.LTR="ltr",e.RTL="rtl",e.AUTO="auto"}(B||(B={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center"}(G||(G={})),function(e){e.SM="sm",e.MD="md",e.LG="lg"}(V||(V={}));const U=o`
&:hover {
${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
}
`,Y=o`
&:hover {
cursor: pointer;
}
`,K=n.div.attrs((e=>({style:e.style})))`
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.rows.style};
${({dense:e,theme:t})=>e&&t.rows.denseStyle};
${({striped:e,theme:t})=>e&&t.rows.stripedStyle};
${({highlightOnHover:e})=>e&&U};
${({pointerOnHover:e})=>e&&Y};
${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
`;function q({columns:t=[],conditionalRowStyles:n=[],defaultExpanded:o=!1,defaultExpanderDisabled:a=!1,dense:l=!1,expandableIcon:r,expandableRows:i=!1,expandableRowsComponent:s,expandableRowsComponentProps:d,expandableRowsHideExpander:c,expandOnRowClicked:g=!1,expandOnRowDoubleClicked:p=!1,highlightOnHover:h=!1,id:m,expandableInheritConditionalStyles:f,keyField:x,onRowClicked:C=u,onRowDoubleClicked:y=u,onRowExpandToggled:v=u,onSelectedRow:R=u,pointerOnHover:S=!1,row:E,rowCount:O,rowIndex:P,selectableRowDisabled:k=null,selectableRows:D=!1,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowsHighlight:j=!1,selectableRowsSingle:I=!1,selected:A,striped:L=!1,draggingColumnId:_,onDragStart:z,onDragOver:W,onDragEnd:B,onDragEnter:G,onDragLeave:V}){const[U,Y]=e.useState(o);e.useEffect((()=>{Y(o)}),[o]);const q=e.useCallback((()=>{Y(!U),v(!U,E)}),[U,v,E]),J=S||i&&(g||p),Q=e.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(C(E,e),!a&&i&&g&&q())}),[a,g,i,q,C,E]),X=e.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(y(E,e),!a&&i&&p&&q())}),[a,p,i,q,y,E]),Z=b(E,n),ee=j&&A,te=f?Z:{},ne=L&&P%2==0;return e.createElement(e.Fragment,null,e.createElement(K,{id:`row-${m}`,role:"row",striped:ne,highlightOnHover:h,pointerOnHover:!a&&J,dense:l,onClick:Q,onDoubleClick:X,className:"rdt_TableRow",selected:ee,style:Z},D&&e.createElement(T,{keyField:x,row:E,rowCount:O,selected:A,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowDisabled:k,selectableRowsSingle:I,onSelectedRow:R}),i&&!c&&e.createElement(M,{id:E[x],expandableIcon:r,expanded:U,row:E,onToggled:q,disabled:a}),t.map((t=>t.omit?null:e.createElement(F,{id:`cell-${t.id}-${E[x]}`,key:`cell-${t.id}-${E[x]}`,dataTag:t.ignoreRowClick||t.button?null:"allowRowEvents",column:t,row:E,rowIndex:P,isDragging:w(_,t.id),onDragStart:z,onDragOver:W,onDragEnd:B,onDragEnter:G,onDragLeave:V})))),i&&U&&e.createElement(N,{key:`expander-${E[x]}`,data:E,extendedRowStyle:te,component:s,componentProps:d}))}const J=n.span`
padding: 2px;
color: inherit;
flex-grow: 0;
flex-shrink: 0;
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
`,Q=({sortActive:e,sortDirection:n})=>t.createElement(J,{sortActive:e,sortDirection:n},"▲"),X=n(D)`
${({button:e})=>e&&"text-align: center"};
${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle};
`,Z=o`
${({theme:e,sortActive:t})=>t?e.headCells.activeSortStyle:e.headCells.inactiveSortStyle};
span.__rdt_custom_sort_icon__ {
i,
svg {
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
color: inherit;
font-size: 18px !important;
height: 18px !important;
width: 18px !important;
backface-visibility: hidden;
transform-style: preserve-3d;
transition-duration: 125ms;
transition-property: transform;
}
&.asc i,
&.asc svg {
transform: rotate(180deg);
}
}
&:hover {
cursor: pointer;
${({theme:e})=>e.headCells.activeStyle};
span,
span.__rdt_custom_sort_icon__ * {
${({sortActive:e})=>!e&&"opacity: 1"};
}
}
`,ee=n.div`
align-items: center;
height: 100%;
line-height: 1.5;
outline: none;
user-select: none;
display: inline-flex;
overflow: hidden;
${({disabled:e,sortable:t})=>t&&!e&&Z};
`,te=n.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;var ne=e.memo((function({rows:t,column:n,disabled:o,draggingColumnId:a,selectedColumn:l={},sortDirection:r,sortFunction:s,sortIcon:d,sortServer:c,pagination:g,paginationServer:p,persistSelectedOnSort:u,selectableRowsVisibleOnly:b,onSort:h,onDragStart:m,onDragOver:f,onDragEnd:x,onDragEnter:C,onDragLeave:y}){if(e.useEffect((()=>{"string"==typeof n.selector&&console.error(`Warning: ${n.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]),n.omit)return null;const v=()=>{if(n.sortable&&n.selector){let e=r;w(l.id,n.id)&&(e="asc"===r?"desc":"asc");let o=t;if(!c){o=i(t,n.selector,e,s);const a=n.sortFunction;if(a){const n="asc"===e?a:(e,t)=>-1*a(e,t);o=[...t].sort(n)}}h({type:"SORT_CHANGE",rows:o,sortDirection:e,selectedColumn:n,clearSelectedOnSort:g&&p&&!u||c||b})}},R=t=>e.createElement(Q,{sortActive:t,sortDirection:r}),S=()=>e.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},d),E=!(!n.sortable||!w(l.id,n.id)),O=n.sortable&&!d&&!n.right,P=n.sortable&&!d&&n.right,k=n.sortable&&d&&!n.right,D=n.sortable&&d&&n.right;return e.createElement(X,{"data-column-id":n.id,className:"rdt_TableCol",headCell:!0,allowOverflow:n.allowOverflow,button:n.button,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,center:n.center,width:n.width,draggable:n.reorder,isDragging:w(n.id,a),onDragStart:m,onDragOver:f,onDragEnd:x,onDragEnter:C,onDragLeave:y},n.name&&e.createElement(ee,{"data-column-id":n.id,"data-sort-id":n.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:o?void 0:v,onKeyPress:o?void 0:e=>{"Enter"===e.key&&v()},sortActive:!o&&E,sortable:n.sortable,disabled:o},!o&&D&&S(),!o&&P&&R(E),e.createElement(te,{"data-column-id":n.id},n.name),!o&&k&&S(),!o&&O&&R(E)))}));const oe=n(k)`
flex: 0 0 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
font-size: unset;
`;function ae({headCell:t=!0,rowData:n,keyField:o,allSelected:a,mergeSelections:l,selectedRows:r,selectableRowsComponent:i,selectableRowsComponentProps:s,selectableRowDisabled:d,onSelectAllRows:c}){const g=r.length>0&&!a,p=d?n.filter((e=>!d(e))):n,u=0===p.length,b=Math.min(n.length,p.length);return e.createElement(oe,{className:"rdt_TableCol",headCell:t,noPadding:!0},e.createElement(j,{name:"select-all-rows",component:i,componentOptions:s,onClick:()=>{c({type:"SELECT_ALL_ROWS",rows:p,rowCount:b,mergeSelections:l,keyField:o})},checked:a,indeterminate:g,disabled:u}))}function le(t=B.AUTO){const n="object"==typeof window,[o,a]=e.useState(!1);return e.useEffect((()=>{if(n)if("auto"!==t)a("rtl"===t);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],o="rtl"===t.dir||"rtl"===n.dir;a(e&&o)}}),[t,n]),o}const re=n.div`
display: flex;
align-items: center;
flex: 1 0 auto;
height: 100%;
color: ${({theme:e})=>e.contextMenu.fontColor};
font-size: ${({theme:e})=>e.contextMenu.fontSize};
font-weight: 400;
`,ie=n.div`
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
`,se=n.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: inherit;
z-index: 1;
align-items: center;
justify-content: space-between;
display: flex;
${({rtl:e})=>e&&"direction: rtl"};
${({theme:e})=>e.contextMenu.style};
${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle};
`;function de({contextMessage:t,contextActions:n,contextComponent:o,selectedCount:a,direction:l}){const r=le(l),i=a>0;return o?e.createElement(se,{visible:i},e.cloneElement(o,{selectedCount:a})):e.createElement(se,{visible:i,rtl:r},e.createElement(re,null,((e,t,n)=>{if(0===t)return null;const o=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${o}`:`${t} ${o} ${e.message||""}`})(t,a,r)),e.createElement(ie,null,n))}const ce=n.div`
position: relative;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
width: 100%;
flex-wrap: wrap;
${({theme:e})=>e.header.style}
`,ge=n.div`
flex: 1 0 auto;
color: ${({theme:e})=>e.header.fontColor};
font-size: ${({theme:e})=>e.header.fontSize};
font-weight: 400;
`,pe=n.div`
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: flex-end;
> * {
margin-left: 5px;
}
`,ue=({title:t,actions:n=null,contextMessage:o,contextActions:a,contextComponent:l,selectedCount:r,direction:i,showMenu:s=!0})=>e.createElement(ce,{className:"rdt_TableHeader",role:"heading","aria-level":1},e.createElement(ge,null,t),n&&e.createElement(pe,null,n),s&&e.createElement(de,{contextMessage:o,contextActions:a,contextComponent:l,direction:i,selectedCount:r}))
/*! *****************************************************************************

@@ -15,2 +264,129 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function d(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e}function s(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function c(e,t,n,o,r){return o||!t?e:u(e,t,n,r)}function u(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):i(e,t,n):e}function g(e,t,n){void 0===e&&(e=[]),void 0===n&&(n="id");var o=e.slice();return t[n]?o.splice(o.findIndex((function(e){return e[n]===t[n]})),1):o.splice(o.findIndex((function(e){return e===t})),1),o}function p(e){return e.map((function(e,t){var n=a(a({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function f(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}var w=function(){return null};function v(e,t){void 0===t&&(t=[]);var n={};return t.length&&t.forEach((function(t){if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function m(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n="id"),e[n]?t.some((function(t){return t[n]===e[n]})):t.some((function(t){return t===e}))}function b(e,t){return t?e.findIndex((function(e){return x(e.id,t)})):-1}function x(e,t){return e==t}function y(e,t){var n,o,r,i=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":var l=t.rows;return a(a({},e),{rows:l});case"SELECT_ALL_ROWS":var s=t.keyField,c=t.rows,u=t.rowCount,p=t.mergeSelections,f=!e.allSelected,h=!e.toggleOnSelectedRowsChange;if(p){var w=f?d(d([],e.selectedRows),c.filter((function(t){return!m(t,e.selectedRows,s)}))):e.selectedRows.filter((function(e){return!m(e,c,s)}));return a(a({},e),{allSelected:f,selectedCount:w.length,selectedRows:w,toggleOnSelectedRowsChange:h})}return a(a({},e),{allSelected:f,selectedCount:f?u:0,selectedRows:f?c:[],toggleOnSelectedRowsChange:h});case"SELECT_SINGLE_ROW":var v=t.keyField,b=t.row,x=t.isSelected,y=(u=t.rowCount,t.singleSelect);return a(a({},e),y?x?{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:i}:{selectedCount:1,allSelected:!1,selectedRows:[b],toggleOnSelectedRowsChange:i}:x?{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:g(e.selectedRows,b,v),toggleOnSelectedRowsChange:i}:{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===u,selectedRows:(n=e.selectedRows,o=b,void 0===n&&(n=[]),void 0===r&&(r=0),d(d(d([],n.slice(0,r)),[o]),n.slice(r))),toggleOnSelectedRowsChange:i});case"SELECT_MULTIPLE_ROWS":var C=t.keyField,R=t.selectedRows;l=t.rows;if(p=t.mergeSelections){w=d(d([],e.selectedRows),R.filter((function(t){return!m(t,e.selectedRows,C)})));return a(a({},e),{selectedCount:w.length,allSelected:!1,selectedRows:w,toggleOnSelectedRowsChange:i})}return a(a({},e),{selectedCount:R.length,allSelected:R.length===l.length,selectedRows:R,toggleOnSelectedRowsChange:i});case"CLEAR_SELECTED_ROWS":var S=t.selectedRowsFlag;return a(a({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:S});case"SORT_CHANGE":l=t.rows;var E=t.sortDirection,O=t.selectedColumn,P=t.clearSelectedOnSort;return a(a(a({},e),{rows:l,selectedColumn:O,sortDirection:E,currentPage:1}),P&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_PAGE":var k=t.page,D=t.paginationServer,H=t.visibleOnly,F=t.persistSelectedOnPageChange,I=(p=D&&F,D&&!F||H);return a(a(a(a({},e),{currentPage:k}),p&&{allSelected:!1}),I&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_ROWS_PER_PAGE":var T=t.rowsPerPage;k=t.page;return a(a({},e),{currentPage:k,rowsPerPage:T})}}var C,R,S,E,O,P,k,D,H,F,I,T,_,A,z,L,M=o(C||(C=s(["\n\tpointer-events: none;\n\topacity: 0.4;\n"],["\n\tpointer-events: none;\n\topacity: 0.4;\n"]))),j=n.div(R||(R=s(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.disabled&&M}),(function(e){return e.theme.table.style})),N=o(S||(S=s(["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"],["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"]))),W=n.div(E||(E=s(["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.fixedHeader&&N}),(function(e){return e.theme.head.style})),B=n.div(O||(O=s(["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.theme.headRow.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.headRow.denseStyle})),G=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o(P||(P=s(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),599,o.apply(void 0,d([e],t)))},V=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o(k||(k=s(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),959,o.apply(void 0,d([e],t)))},U=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o(D||(D=s(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),1280,o.apply(void 0,d([e],t)))},Y=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return o(H||(H=s(["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"],["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"])),e,o.apply(void 0,d([t],n)))}},$=n.div(F||(F=s(["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"])),(function(e){return e.theme[e.head?"headCells":"cells"].style}),(function(e){return e.noPadding&&"padding: 0"})),K=n($)(L||(L=s(["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){var t=e.button,n=e.grow;return 0===n||t?0:n||1}),(function(e){return e.maxWidth||"100%"}),(function(e){return e.minWidth||"100px"}),(function(e){var t=e.width;return t&&o(I||(I=s(["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"],["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"])),t,t)}),(function(e){return e.right&&"justify-content: flex-end"}),(function(e){var t=e.button;return(e.center||t)&&"justify-content: center"}),(function(e){var t=e.compact,n=e.button;return(t||n)&&"padding: 0"}),(function(e){var t=e.hide;return t&&"sm"===t&&G(T||(T=s(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"md"===t&&V(_||(_=s(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"lg"===t&&U(A||(A=s(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&Number.isInteger(t)&&Y(t)(z||(z=s(["\n display: none;\n "],["\n display: none;\n "])))})),q=o(Q||(Q=s(["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"],["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"])),(function(e){return e.wrapCell?"normal":"nowrap"}),(function(e){return e.allowOverflow?"visible":"hidden"})),J=n(K).attrs((function(e){return{style:e.style}}))(X||(X=s(["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"],["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.fontSize}),(function(e){return!e.renderAsCell&&q}),(function(e){var t=e.theme;return e.isDragging&&t.cells.draggingStyle}),(function(e){return e.cellStyle}));var Q,X,Z=e.memo((function(t){var n=t.id,o=t.column,r=t.dataTag,i=t.extendedCellStyle,a=t.renderAsCell,l=t.isDragging,d=t.onDragStart,s=t.onDragOver,c=t.onDragEnd,u=t.onDragEnter,g=t.onDragLeave,p=t.children;return e.createElement(J,{id:n,"data-column-id":o.id,role:"gridcell",className:"rdt_TableCell","data-tag":r,cellStyle:o.style,renderAsCell:a,allowOverflow:o.allowOverflow,button:o.button,center:o.center,compact:o.compact,grow:o.grow,hide:o.hide,maxWidth:o.maxWidth,minWidth:o.minWidth,right:o.right,width:o.width,wrapCell:o.wrap,style:i,isDragging:l,onDragStart:d,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:g},p)}));var ee,te=e.memo((function(t){var n=t.name,o=t.component,r=void 0===o?"input":o,i=t.componentOptions,l=void 0===i?{style:{}}:i,d=t.indeterminate,s=void 0!==d&&d,c=t.checked,u=void 0!==c&&c,g=t.disabled,p=void 0!==g&&g,f=t.onClick,h=void 0===f?w:f,v=r,m="input"!==v?l.style:function(e){return a(a({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"})}(p),b=e.useMemo((function(){return function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return Object.keys(e).map((function(t){return e[t]})).forEach((function(o,r){var i;"function"==typeof o&&(t=a(a({},e),((i={})[Object.keys(e)[r]]=o.apply(void 0,n),i)))})),t||e}(l,s)}),[l,s]);return e.createElement(v,a({type:"checkbox",ref:function(e){e&&(e.indeterminate=s)},style:m,onClick:p?w:h,name:n,"aria-label":n,checked:u,disabled:p},b,{onChange:w}))})),ne=n($)(ee||(ee=s(["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function oe(t){var n=t.keyField,o=t.row,r=t.rowCount,i=t.selected,a=t.selectableRowsComponent,l=t.selectableRowsComponentProps,d=t.selectableRowsSingle,s=t.selectableRowDisabled,c=t.onSelectedRow,u=!(!s||!s(o));return e.createElement(ne,{onClick:function(e){return e.stopPropagation()},className:"rdt_TableCell",noPadding:!0},e.createElement(te,{name:"select-row-"+o[n],component:a,componentOptions:l,checked:i,"aria-checked":i,onClick:function(){c({type:"SELECT_SINGLE_ROW",row:o,isSelected:i,keyField:n,rowCount:r,singleSelect:d})},disabled:u}))}var re,ie=n.button(re||(re=s(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"],["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"])),(function(e){return e.theme.expanderButton.style}));function ae(t){var n=t.disabled,o=void 0!==n&&n,r=t.expanded,i=void 0!==r&&r,a=t.expandableIcon,l=t.id,d=t.row,s=t.onToggled,c=i?a.expanded:a.collapsed;return e.createElement(ie,{"aria-disabled":o,onClick:function(){return s&&s(d)},"data-testid":"expander-button-"+l,disabled:o,"aria-label":i?"Collapse Row":"Expand Row",role:"button",type:"button"},c)}var le,de=n($)(le||(le=s(["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"],["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style}));function se(t){var n=t.row,o=t.expanded,r=void 0!==o&&o,i=t.expandableIcon,a=t.id,l=t.onToggled,d=t.disabled,s=void 0!==d&&d;return e.createElement(de,{onClick:function(e){return e.stopPropagation()},noPadding:!0},e.createElement(ae,{id:a,row:n,expanded:r,expandableIcon:i,disabled:s,onToggled:l}))}var ce=n.div(ue||(ue=s(["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"],["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"])),(function(e){return e.theme.expanderRow.style}),(function(e){return e.extendedRowStyle}));var ue,ge,pe,fe,he=e.memo((function(t){var n=t.data,o=t.component,r=t.componentProps,i=t.extendedRowStyle,l=o;return e.createElement(ce,{className:"rdt_ExpanderRow",extendedRowStyle:i},e.createElement(l,a({data:n},r)))})),we="allowRowEvents";!function(e){e.LTR="ltr",e.RTL="rtl",e.AUTO="auto"}(ge||(ge={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center"}(pe||(pe={})),function(e){e.SM="sm",e.MD="md",e.LG="lg"}(fe||(fe={}));var ve,me,be,xe=o(ve||(ve=s(["\n\t&:hover {\n\t\t",";\n\t}\n"],["\n\t&:hover {\n\t\t",";\n\t}\n"])),(function(e){var t=e.highlightOnHover,n=e.theme;return t&&n.rows.highlightOnHoverStyle})),ye=o(me||(me=s(["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"],["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"]))),Ce=n.div.attrs((function(e){return{style:e.style}}))(be||(be=s(["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.rows.denseStyle}),(function(e){var t=e.striped,n=e.theme;return t&&n.rows.stripedStyle}),(function(e){return e.highlightOnHover&&xe}),(function(e){return e.pointerOnHover&&ye}),(function(e){var t=e.selected,n=e.theme;return t&&n.rows.selectedHighlightStyle}));function Re(t){var n=t.columns,o=void 0===n?[]:n,r=t.conditionalRowStyles,i=void 0===r?[]:r,a=t.defaultExpanded,l=void 0!==a&&a,d=t.defaultExpanderDisabled,s=void 0!==d&&d,c=t.dense,u=void 0!==c&&c,g=t.expandableIcon,p=t.expandableRows,f=void 0!==p&&p,h=t.expandableRowsComponent,m=t.expandableRowsComponentProps,b=t.expandableRowsHideExpander,y=t.expandOnRowClicked,C=void 0!==y&&y,R=t.expandOnRowDoubleClicked,S=void 0!==R&&R,E=t.highlightOnHover,O=void 0!==E&&E,P=t.id,k=t.expandableInheritConditionalStyles,D=t.keyField,H=t.onRowClicked,F=void 0===H?w:H,I=t.onRowDoubleClicked,T=void 0===I?w:I,_=t.onRowExpandToggled,A=void 0===_?w:_,z=t.onSelectedRow,L=void 0===z?w:z,M=t.pointerOnHover,j=void 0!==M&&M,N=t.row,W=t.rowCount,B=t.rowIndex,G=t.selectableRowDisabled,V=void 0===G?null:G,U=t.selectableRows,Y=void 0!==U&&U,$=t.selectableRowsComponent,K=t.selectableRowsComponentProps,q=t.selectableRowsHighlight,J=void 0!==q&&q,Q=t.selectableRowsSingle,X=void 0!==Q&&Q,ee=t.selected,te=t.striped,ne=void 0!==te&&te,re=t.draggingColumnId,ie=t.onDragStart,ae=t.onDragOver,le=t.onDragEnd,de=t.onDragEnter,ce=t.onDragLeave,ue=e.useState(l),ge=ue[0],pe=ue[1];e.useEffect((function(){pe(l)}),[l]);var fe=e.useCallback((function(){pe(!ge),A(!ge,N)}),[ge,A,N]),we=j||f&&(C||S),ve=e.useCallback((function(e){e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(F(N,e),!s&&f&&C&&fe())}),[s,C,f,fe,F,N]),me=e.useCallback((function(e){e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(T(N,e),!s&&f&&S&&fe())}),[s,S,f,fe,T,N]),be=v(N,i),xe=J&&ee,ye=k?be:{},Re=ne&&B%2==0;return e.createElement(e.Fragment,null,e.createElement(Ce,{id:"row-"+P,role:"row",striped:Re,highlightOnHover:O,pointerOnHover:!s&&we,dense:u,onClick:ve,onDoubleClick:me,className:"rdt_TableRow",selected:xe,style:be},Y&&e.createElement(oe,{keyField:D,row:N,rowCount:W,selected:ee,selectableRowsComponent:$,selectableRowsComponentProps:K,selectableRowDisabled:V,selectableRowsSingle:X,onSelectedRow:L}),f&&!b&&e.createElement(se,{id:N[D],expandableIcon:g,expanded:ge,row:N,onToggled:fe,disabled:s}),o.map((function(t){if(t.omit)return null;var n=t.ignoreRowClick||t.button?null:"allowRowEvents",o=v(N,t.conditionalCellStyles);return e.createElement(Z,{id:"cell-"+t.id+"-"+N[D],key:"cell-"+t.id+"-"+N[D],extendedCellStyle:o,dataTag:n,renderAsCell:!!t.cell,column:t,isDragging:x(re,t.id),onDragStart:ie,onDragOver:ae,onDragEnd:le,onDragEnter:de,onDragLeave:ce},!t.cell&&e.createElement("div",{"data-tag":n},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce((function(e,t){var n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(var o=0;o<n.length;o++)return e[n[o]][n[o+1]];return e[t]}),e)}(N,t.selector,t.format,B)),t.cell&&t.cell(N,B,t,P))}))),f&&ge&&e.createElement(he,{key:"expander-"+N[D],data:N,extendedRowStyle:ye,component:h,componentProps:m}))}var Se,Ee=n.span(Se||(Se=s(["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"],["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"])),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return"desc"===e.sortDirection&&"transform: rotate(180deg)"})),Oe=function(e){var n=e.sortActive,o=e.sortDirection;return t.createElement(Ee,{sortActive:n,sortDirection:o},"▲")},Pe=n(K)(Fe||(Fe=s(["\n\t",";\n\t",";\n"],["\n\t",";\n\t",";\n"])),(function(e){return e.button&&"text-align: center"}),(function(e){var t=e.theme;return e.isDragging&&t.headCells.draggingStyle})),ke=o(Ie||(Ie=s(["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"],["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return e.sortActive?t.headCells.activeSortStyle:t.headCells.inactiveSortStyle}),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return e.theme.headCells.activeStyle}),(function(e){return!e.sortActive&&"opacity: 1"})),De=n.div(Te||(Te=s(["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"],["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"])),(function(e){var t=e.disabled;return e.sortable&&!t&&ke})),He=n.div(_e||(_e=s(["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"],["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"])));var Fe,Ie,Te,_e,Ae,ze=e.memo((function(t){var n=t.rows,o=t.column,r=t.disabled,i=t.draggingColumnId,a=t.selectedColumn,l=void 0===a?{}:a,s=t.sortDirection,c=t.sortFunction,g=t.sortIcon,p=t.sortServer,f=t.pagination,h=t.paginationServer,w=t.persistSelectedOnSort,v=t.selectableRowsVisibleOnly,m=t.onSort,b=t.onDragStart,y=t.onDragOver,C=t.onDragEnd,R=t.onDragEnter,S=t.onDragLeave;if(e.useEffect((function(){"string"==typeof o.selector&&console.error("Warning: "+o.selector+" is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...")}),[]),o.omit)return null;var E=function(){if(o.sortable&&o.selector){var e=s;x(l.id,o.id)&&(e="asc"===s?"desc":"asc");var t=n;if(!p){t=u(n,o.selector,e,c);var r=o.sortFunction;if(r){var i="asc"===e?r:function(e,t){return-1*r(e,t)};t=d([],n).sort(i)}}m({type:"SORT_CHANGE",rows:t,sortDirection:e,selectedColumn:o,clearSelectedOnSort:f&&h&&!w||p||v})}},O=function(t){return e.createElement(Oe,{sortActive:t,sortDirection:s})},P=function(){return e.createElement("span",{className:[s,"__rdt_custom_sort_icon__"].join(" ")},g)},k=!(!o.sortable||!x(l.id,o.id)),D=o.sortable&&!g&&!o.right,H=o.sortable&&!g&&o.right,F=o.sortable&&g&&!o.right,I=o.sortable&&g&&o.right;return e.createElement(Pe,{"data-column-id":o.id,className:"rdt_TableCol",head:!0,allowOverflow:o.allowOverflow,button:o.button,compact:o.compact,grow:o.grow,hide:o.hide,maxWidth:o.maxWidth,minWidth:o.minWidth,right:o.right,center:o.center,width:o.width,draggable:o.reorder,isDragging:x(o.id,i),onDragStart:b,onDragOver:y,onDragEnd:C,onDragEnter:R,onDragLeave:S},o.name&&e.createElement(De,{"data-column-id":o.id,"data-sort-id":o.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:r?void 0:E,onKeyPress:r?void 0:function(e){"Enter"===e.key&&E()},sortActive:!r&&k,sortable:o.sortable,disabled:r},!r&&I&&P(),!r&&H&&O(k),e.createElement(He,{"data-column-id":o.id},o.name),!r&&F&&P(),!r&&D&&O(k)))})),Le=n($)(Ae||(Ae=s(["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function Me(t){var n=t.head,o=void 0===n||n,r=t.rowData,i=t.keyField,a=t.allSelected,l=t.mergeSelections,d=t.selectedRows,s=t.selectableRowsComponent,c=t.selectableRowsComponentProps,u=t.selectableRowDisabled,g=t.onSelectAllRows,p=d.length>0&&!a,f=u?r.filter((function(e){return!u(e)})):r,h=0===f.length,w=Math.min(r.length,f.length);return e.createElement(Le,{className:"rdt_TableCol",head:o,noPadding:!0},e.createElement(te,{name:"select-all-rows",component:s,componentOptions:c,onClick:function(){g({type:"SELECT_ALL_ROWS",rows:f,rowCount:w,mergeSelections:l,keyField:i})},checked:a,indeterminate:p,disabled:h}))}function je(t){void 0===t&&(t=ge.AUTO);var n="object"==typeof window,o=e.useState(!1),r=o[0],i=o[1];return e.useEffect((function(){if(n)if("auto"!==t)i("rtl"===t);else{var e=!(!window.document||!window.document.createElement),o=document.getElementsByTagName("BODY")[0],r=document.getElementsByTagName("HTML")[0],a="rtl"===o.dir||"rtl"===r.dir;i(e&&a)}}),[t,n]),r}var Ne,We,Be,Ge=n.div(Ne||(Ne=s(["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.contextMenu.fontColor}),(function(e){return e.theme.contextMenu.fontSize})),Ve=n.div(We||(We=s(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"]))),Ue=n.div(Be||(Be=s(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"],["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.rtl&&"direction: rtl"}),(function(e){return e.theme.contextMenu.style}),(function(e){var t=e.theme;return e.visible&&t.contextMenu.activeStyle}));function Ye(t){var n=t.contextMessage,o=t.contextActions,r=t.contextComponent,i=t.selectedCount,a=je(t.direction),l=i>0;return r?e.createElement(Ue,{visible:l},e.cloneElement(r,{selectedCount:i})):e.createElement(Ue,{visible:l,rtl:a},e.createElement(Ge,null,function(e,t,n){if(0===t)return null;var o=1===t?e.singular:e.plural;return n?t+" "+(e.message||"")+" "+o:t+" "+o+" "+(e.message||"")}(n,i,a)),e.createElement(Ve,null,o))}var $e,Ke,qe,Je,Qe,Xe,Ze,et,tt,nt,ot,rt,it,at,lt,dt,st,ct,ut,gt,pt,ft=n.div($e||($e=s(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"])),(function(e){return e.theme.header.style})),ht=n.div(Ke||(Ke=s(["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.header.fontColor}),(function(e){return e.theme.header.fontSize})),wt=n.div(qe||(qe=s(["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"],["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"]))),vt=function(t){var n=t.title,o=t.actions,r=void 0===o?null:o,i=t.contextMessage,a=t.contextActions,l=t.contextComponent,d=t.selectedCount,s=t.direction,c=t.showMenu,u=void 0===c||c;return e.createElement(ft,{className:"rdt_TableHeader",role:"heading","aria-level":1},e.createElement(ht,null,n),r&&e.createElement(wt,null,r),u&&e.createElement(Ye,{contextMessage:i,contextActions:a,contextComponent:l,direction:s,selectedCount:d}))},mt={left:"flex-start",right:"flex-end",center:"center"},bt=n.header(Je||(Je=s(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"])),(function(e){var t=e.align;return mt[t]}),(function(e){return e.wrapContent?"wrap":"nowrap"}),(function(e){return e.theme.subHeader.style})),xt=function(t){var n=t.align,o=void 0===n?"right":n,r=t.wrapContent,i=void 0===r||r,d=l(t,["align","wrapContent"]);return e.createElement(bt,a({align:o,wrapContent:i},d))},yt=n.div(Qe||(Qe=s(["\n\tdisplay: flex;\n\tflex-direction: column;\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n"]))),Ct=n.div(et||(et=s(["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"])),(function(e){var t=e.responsive,n=e.fixedHeader;return t&&o(Xe||(Xe=s(["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"],["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"])),n?"auto":"hidden")}),(function(e){var t=e.fixedHeader,n=void 0!==t&&t,r=e.fixedHeaderScrollHeight,i=void 0===r?"100vh":r;return n&&o(Ze||(Ze=s(["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"],["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"])),i)})),Rt=n.div(tt||(tt=s(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.progress.style})),St=n.div(nt||(nt=s(["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.tableWrapper.style})),Et=n($)(ot||(ot=s(["\n\twhite-space: nowrap;\n\t",";\n"],["\n\twhite-space: nowrap;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style})),Ot=n.div(rt||(rt=s(["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.noData.style})),Pt=function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{d:"M7 10l5 5 5-5z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},kt=n.select(it||(it=s(["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"],["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"]))),Dt=n.div(at||(at=s(["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"],["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"]))),Ht=function(t){var n=t.defaultValue,o=t.onChange,r=l(t,["defaultValue","onChange"]);return e.createElement(Dt,null,e.createElement(kt,a({onChange:o,defaultValue:n},r)),e.createElement(Pt,null))},Ft={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return t.createElement("div",null,"To add an expander pass in a component instance via ",t.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:t.createElement((function(){return t.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),t.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))}),null),expanded:t.createElement((function(){return t.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),t.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))}),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:t.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:t.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:pe.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:t.createElement((function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),t.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))}),null),paginationIconLastPage:t.createElement((function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),paginationIconNext:t.createElement((function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),paginationIconPrevious:t.createElement((function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:ge.AUTO,onChangePage:w,onChangeRowsPerPage:w,onRowClicked:w,onRowDoubleClicked:w,onRowExpandToggled:w,onSelectedRowsChange:w,onSort:w,onColumnOrderChange:w},It={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Tt=n.nav(lt||(lt=s(["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"],["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.pagination.style})),_t=n.button(dt||(dt=s(["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"])),(function(e){return e.theme.pagination.pageButtonsStyle}),(function(e){return e.isRTL&&"transform: scale(-1, -1)"})),At=n.div(ct||(ct=s(["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"])),G(st||(st=s(["\n width: 100%;\n justify-content: space-around;\n "],["\n width: 100%;\n justify-content: space-around;\n "])))),zt=n.span(ut||(ut=s(["\n\tflex-shrink: 1;\n\tuser-select: none;\n"],["\n\tflex-shrink: 1;\n\tuser-select: none;\n"]))),Lt=n(zt)(gt||(gt=s(["\n\tmargin: 0 24px;\n"],["\n\tmargin: 0 24px;\n"]))),Mt=n(zt)(pt||(pt=s(["\n\tmargin: 0 4px;\n"],["\n\tmargin: 0 4px;\n"])));function jt(t){var n=t.rowsPerPage,o=t.rowCount,r=t.currentPage,i=t.direction,l=void 0===i?Ft.direction:i,d=t.paginationRowsPerPageOptions,s=void 0===d?Ft.paginationRowsPerPageOptions:d,c=t.paginationIconLastPage,u=void 0===c?Ft.paginationIconLastPage:c,g=t.paginationIconFirstPage,p=void 0===g?Ft.paginationIconFirstPage:g,h=t.paginationIconNext,w=void 0===h?Ft.paginationIconNext:h,v=t.paginationIconPrevious,m=void 0===v?Ft.paginationIconPrevious:v,b=t.paginationComponentOptions,x=void 0===b?Ft.paginationComponentOptions:b,y=t.onChangeRowsPerPage,C=void 0===y?Ft.onChangeRowsPerPage:y,R=t.onChangePage,S=void 0===R?Ft.onChangePage:R,E=function(){var t="object"==typeof window;function n(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}var o=e.useState(n),r=o[0],i=o[1];return e.useEffect((function(){if(!t)return function(){return null};function e(){i(n())}return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),r}(),O=je(l),P=E.width&&E.width>599,k=f(o,n),D=r*n,H=D-n+1,F=1===r,I=r===k,T=a(a({},It),x),_=r===k?H+"-"+o+" "+T.rangeSeparatorText+" "+o:H+"-"+D+" "+T.rangeSeparatorText+" "+o,A=e.useCallback((function(){return S(r-1)}),[r,S]),z=e.useCallback((function(){return S(r+1)}),[r,S]),L=e.useCallback((function(){return S(1)}),[S]),M=e.useCallback((function(){return S(f(o,n))}),[S,o,n]),j=e.useCallback((function(e){return C(Number(e.target.value),r)}),[r,C]),N=s.map((function(t){return e.createElement("option",{key:t,value:t},t)}));T.selectAllRowsItem&&N.push(e.createElement("option",{key:-1,value:o},T.selectAllRowsItemText));var W=e.createElement(Ht,{onChange:j,defaultValue:n,"aria-label":T.rowsPerPageText},N);return e.createElement(Tt,{className:"rdt_Pagination"},!T.noRowsPerPage&&P&&e.createElement(e.Fragment,null,e.createElement(Mt,null,T.rowsPerPageText),W),P&&e.createElement(Lt,null,_),e.createElement(At,null,e.createElement(_t,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":F,onClick:L,disabled:F,isRTL:O},p),e.createElement(_t,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":F,onClick:A,disabled:F,isRTL:O},m),!P&&W,e.createElement(_t,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":I,onClick:z,disabled:I,isRTL:O},w),e.createElement(_t,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":I,onClick:M,disabled:I,isRTL:O},u)))}var Nt=function(t,n){var o=e.useRef(!0);e.useEffect((function(){o.current?o.current=!1:t()}),n)},Wt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Bt}(e)}(e)};var Bt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Gt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Kt((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Vt(e,t,n){return e.concat(t).map((function(e){return Gt(e,n)}))}function Ut(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Yt(e,t){try{return t in e}catch(e){return!1}}function $t(e,t,n){var o={};return n.isMergeableObject(e)&&Ut(e).forEach((function(t){o[t]=Gt(e[t],n)})),Ut(t).forEach((function(r){(function(e,t){return Yt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(Yt(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Kt;var n=t.customMerge(e);return"function"==typeof n?n:Kt}(r,n)(e[r],t[r],n):o[r]=Gt(t[r],n))})),o}function Kt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Vt,n.isMergeableObject=n.isMergeableObject||Wt,n.cloneUnlessOtherwiseSpecified=Gt;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):$t(e,t,n):Gt(t,n)}Kt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Kt(e,n,t)}),{})};var qt=Kt,Jt={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Qt(e,t){return void 0===e&&(e="default"),Jt[e]=qt(Jt.default,t||{}),Jt[e]}var Xt=e.memo((function(t){var n=t.data,o=void 0===n?Ft.data:n,i=t.columns,l=void 0===i?Ft.columns:i,s=t.title,u=void 0===s?Ft.title:s,g=t.actions,w=void 0===g?Ft.actions:g,v=t.keyField,x=void 0===v?Ft.keyField:v,C=t.striped,R=void 0===C?Ft.striped:C,S=t.highlightOnHover,E=void 0===S?Ft.highlightOnHover:S,O=t.pointerOnHover,P=void 0===O?Ft.pointerOnHover:O,k=t.dense,D=void 0===k?Ft.dense:k,H=t.selectableRows,F=void 0===H?Ft.selectableRows:H,I=t.selectableRowsSingle,T=void 0===I?Ft.selectableRowsSingle:I,_=t.selectableRowsHighlight,A=void 0===_?Ft.selectableRowsHighlight:_,z=t.selectableRowsNoSelectAll,L=void 0===z?Ft.selectableRowsNoSelectAll:z,M=t.selectableRowsVisibleOnly,N=void 0===M?Ft.selectableRowsVisibleOnly:M,G=t.selectableRowSelected,V=void 0===G?Ft.selectableRowSelected:G,U=t.selectableRowDisabled,Y=void 0===U?Ft.selectableRowDisabled:U,K=t.selectableRowsComponent,q=void 0===K?Ft.selectableRowsComponent:K,J=t.selectableRowsComponentProps,Q=void 0===J?Ft.selectableRowsComponentProps:J,X=t.onRowExpandToggled,Z=void 0===X?Ft.onRowExpandToggled:X,ee=t.onSelectedRowsChange,te=void 0===ee?Ft.onSelectedRowsChange:ee,ne=t.expandableIcon,oe=void 0===ne?Ft.expandableIcon:ne,re=t.onChangeRowsPerPage,ie=void 0===re?Ft.onChangeRowsPerPage:re,ae=t.onChangePage,le=void 0===ae?Ft.onChangePage:ae,de=t.paginationServer,se=void 0===de?Ft.paginationServer:de,ce=t.paginationServerOptions,ue=void 0===ce?Ft.paginationServerOptions:ce,ge=t.paginationTotalRows,pe=void 0===ge?Ft.paginationTotalRows:ge,fe=t.paginationDefaultPage,he=void 0===fe?Ft.paginationDefaultPage:fe,we=t.paginationResetDefaultPage,ve=void 0===we?Ft.paginationResetDefaultPage:we,me=t.paginationPerPage,be=void 0===me?Ft.paginationPerPage:me,xe=t.paginationRowsPerPageOptions,ye=void 0===xe?Ft.paginationRowsPerPageOptions:xe,Ce=t.paginationIconLastPage,Se=void 0===Ce?Ft.paginationIconLastPage:Ce,Ee=t.paginationIconFirstPage,Oe=void 0===Ee?Ft.paginationIconFirstPage:Ee,Pe=t.paginationIconNext,ke=void 0===Pe?Ft.paginationIconNext:Pe,De=t.paginationIconPrevious,He=void 0===De?Ft.paginationIconPrevious:De,Fe=t.paginationComponent,Ie=void 0===Fe?Ft.paginationComponent:Fe,Te=t.paginationComponentOptions,_e=void 0===Te?Ft.paginationComponentOptions:Te,Ae=t.responsive,Le=void 0===Ae?Ft.responsive:Ae,je=t.progressPending,Ne=void 0===je?Ft.progressPending:je,We=t.progressComponent,Be=void 0===We?Ft.progressComponent:We,Ge=t.persistTableHead,Ve=void 0===Ge?Ft.persistTableHead:Ge,Ue=t.noDataComponent,Ye=void 0===Ue?Ft.noDataComponent:Ue,$e=t.disabled,Ke=void 0===$e?Ft.disabled:$e,qe=t.noTableHead,Je=void 0===qe?Ft.noTableHead:qe,Qe=t.noHeader,Xe=void 0===Qe?Ft.noHeader:Qe,Ze=t.fixedHeader,et=void 0===Ze?Ft.fixedHeader:Ze,tt=t.fixedHeaderScrollHeight,nt=void 0===tt?Ft.fixedHeaderScrollHeight:tt,ot=t.pagination,rt=void 0===ot?Ft.pagination:ot,it=t.subHeader,at=void 0===it?Ft.subHeader:it,lt=t.subHeaderAlign,dt=void 0===lt?Ft.subHeaderAlign:lt,st=t.subHeaderWrap,ct=void 0===st?Ft.subHeaderWrap:st,ut=t.subHeaderComponent,gt=void 0===ut?Ft.subHeaderComponent:ut,pt=t.noContextMenu,ft=void 0===pt?Ft.noContextMenu:pt,ht=t.contextMessage,wt=void 0===ht?Ft.contextMessage:ht,mt=t.contextActions,bt=void 0===mt?Ft.contextActions:mt,Pt=t.contextComponent,kt=void 0===Pt?Ft.contextComponent:Pt,Dt=t.expandableRows,Ht=void 0===Dt?Ft.expandableRows:Dt,It=t.onRowClicked,Tt=void 0===It?Ft.onRowClicked:It,_t=t.onRowDoubleClicked,At=void 0===_t?Ft.onRowDoubleClicked:_t,zt=t.sortIcon,Lt=void 0===zt?Ft.sortIcon:zt,Mt=t.onSort,Wt=void 0===Mt?Ft.onSort:Mt,Bt=t.sortFunction,Gt=void 0===Bt?Ft.sortFunction:Bt,Vt=t.sortServer,Ut=void 0===Vt?Ft.sortServer:Vt,Yt=t.expandableRowsComponent,$t=void 0===Yt?Ft.expandableRowsComponent:Yt,Kt=t.expandableRowsComponentProps,Qt=void 0===Kt?Ft.expandableRowsComponentProps:Kt,Xt=t.expandableRowDisabled,Zt=void 0===Xt?Ft.expandableRowDisabled:Xt,en=t.expandableRowsHideExpander,tn=void 0===en?Ft.expandableRowsHideExpander:en,nn=t.expandOnRowClicked,on=void 0===nn?Ft.expandOnRowClicked:nn,rn=t.expandOnRowDoubleClicked,an=void 0===rn?Ft.expandOnRowDoubleClicked:rn,ln=t.expandableRowExpanded,dn=void 0===ln?Ft.expandableRowExpanded:ln,sn=t.expandableInheritConditionalStyles,cn=void 0===sn?Ft.expandableInheritConditionalStyles:sn,un=t.defaultSortFieldId,gn=void 0===un?Ft.defaultSortFieldId:un,pn=t.defaultSortAsc,fn=void 0===pn?Ft.defaultSortAsc:pn,hn=t.clearSelectedRows,wn=void 0===hn?Ft.clearSelectedRows:hn,vn=t.conditionalRowStyles,mn=void 0===vn?Ft.conditionalRowStyles:vn,bn=t.theme,xn=void 0===bn?Ft.theme:bn,yn=t.customStyles,Cn=void 0===yn?Ft.customStyles:yn,Rn=t.direction,Sn=void 0===Rn?Ft.direction:Rn,En=t.onColumnOrderChange,On=function(t,n,o,r){var i=e.useState((function(){return p(t)})),a=i[0],l=i[1],s=e.useState(""),c=s[0],u=s[1],g=e.useRef("");Nt((function(){l(p(t))}),[t]);var f,h=(void 0===(f=r)&&(f=!1),f?"asc":"desc"),w=e.useMemo((function(){return t[b(t,null==o?void 0:o.toString())]||{}}),[t,o]);return{tableColumns:a,draggingColumnId:c,handleDragStart:function(e){var t,n,o,r=null===(t=e.target.attributes.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(g.current=(null===(o=null===(n=a[b(a,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",u(g.current))},handleDragEnter:function(e){var t,o=null===(t=e.target.attributes.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;if(o&&g.current&&o!==g.current){var r=b(a,g.current),i=b(a,o),s=d([],a);s[r]=a[i],s[i]=a[r],l(s),n(s)}},handleDragOver:function(e){e.preventDefault()},handleDragLeave:function(e){e.preventDefault()},handleDragEnd:function(e){e.preventDefault(),g.current="",u("")},defaultSortDirection:h,defaultSortColumn:w}}(l,void 0===En?Ft.onColumnOrderChange:En,gn,fn),Pn=On.tableColumns,kn=On.draggingColumnId,Dn=On.handleDragStart,Hn=On.handleDragEnter,Fn=On.handleDragOver,In=On.handleDragLeave,Tn=On.handleDragEnd,_n=On.defaultSortDirection,An=On.defaultSortColumn,zn=e.useReducer(y,{rows:c(o,null==An?void 0:An.selector,_n,Ut,Gt),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:An,toggleOnSelectedRowsChange:!1,sortDirection:_n,currentPage:he,rowsPerPage:be,selectedRowsFlag:!1,contextMessage:Ft.contextMessage}),Ln=zn[0],Mn=Ln.rowsPerPage,jn=Ln.rows,Nn=Ln.currentPage,Wn=Ln.selectedRows,Bn=Ln.allSelected,Gn=Ln.selectedCount,Vn=Ln.selectedColumn,Un=Ln.sortDirection,Yn=Ln.toggleOnSelectedRowsChange,$n=zn[1],Kn=ue.persistSelectedOnSort,qn=void 0!==Kn&&Kn,Jn=ue.persistSelectedOnPageChange,Qn=void 0!==Jn&&Jn,Xn=!(!se||!Qn&&!qn),Zn=rt&&!Ne&&o.length>0,eo=Ie||jt,to=e.useMemo((function(){return function(e,t){void 0===e&&(e={}),void 0===t&&(t="default");var n,o=Jt[t]?t:"default";return qt({table:{style:{color:(n=Jt[o]).text.primary,backgroundColor:n.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:n.background.default,minHeight:"52px"}},head:{style:{}},headRow:{style:{backgroundColor:n.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:n.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{fontSize:"12px",fontWeight:500,color:n.text.primary,paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:n.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:n.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:n.sortFocus.default},"&:hover":{color:n.sortFocus.default}}},contextMenu:{style:{backgroundColor:n.context.background,fontSize:"18px",fontWeight:400,color:n.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:n.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:n.selected.text,backgroundColor:n.selected.default,borderBottomColor:n.background.default}},highlightOnHoverStyle:{color:n.highlightOnHover.text,backgroundColor:n.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:n.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:n.background.default},stripedStyle:{color:n.striped.text,backgroundColor:n.striped.default}},expanderRow:{style:{color:n.text.primary,backgroundColor:n.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:n.button.default,fill:n.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:n.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:n.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:n.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:n.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:n.button.default,fill:n.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:n.button.disabled,fill:n.button.disabled},"&:hover:not(:disabled)":{backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}}},e)}(Cn,xn)}),[Cn,xn]),no=e.useMemo((function(){return a({},"auto"!==Sn&&{dir:Sn})}),[Sn]),oo=e.useMemo((function(){if(rt&&!se){var e=Nn*Mn,t=e-Mn;return jn.slice(t,e)}return jn}),[Nn,rt,se,jn,Mn]),ro=function(e){$n(e)},io=function(e){$n(e)},ao=e.useCallback((function(e,t){return Tt(e,t)}),[Tt]),lo=e.useCallback((function(e,t){return At(e,t)}),[At]),so=function(e){return $n({type:"CHANGE_PAGE",page:e,paginationServer:se,visibleOnly:N,persistSelectedOnPageChange:Qn})};if(rt&&!se&&jn.length>0&&0===oo.length){var co=f(jn.length,Mn),uo=h(Nn,co);so(uo)}Nt((function(){te({allSelected:Bn,selectedCount:Gn,selectedRows:Wn})}),[Yn]),Nt((function(){Wt(Vn,Un)}),[Vn,Un]),Nt((function(){le(Nn,pe||jn.length)}),[Nn]),Nt((function(){ie(Mn,Nn)}),[Mn]),Nt((function(){so(he)}),[he,ve]),Nt((function(){if(rt&&se&&pe>0){var e=f(pe,Mn),t=h(Nn,e);Nn!==t&&so(t)}}),[pe]),Nt((function(){$n({type:"UPDATE_ROWS",rows:c(o,null==An?void 0:An.selector,_n,Ut,Gt)})}),[o]),e.useEffect((function(){$n({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:wn})}),[T,wn]),e.useEffect((function(){if(V&&!T){var e=jn.filter((function(e){return V(e)}));$n({type:"SELECT_MULTIPLE_ROWS",keyField:x,selectedRows:e,rows:jn,mergeSelections:Xn})}}),[o]);var go=N?oo:jn,po=Qn||T||L;return e.createElement(r,{theme:to},!Xe&&(!!u||!!w)&&e.createElement(vt,{title:u,actions:w,showMenu:!ft,selectedCount:Gn,direction:Sn,contextActions:bt,contextComponent:kt,contextMessage:wt}),at&&e.createElement(xt,{align:dt,wrapContent:ct},gt),e.createElement(Ct,a({responsive:Le,fixedHeader:et,fixedHeaderScrollHeight:nt},no),e.createElement(St,null,Ne&&!Ve&&e.createElement(Rt,null,Be),e.createElement(j,{disabled:Ke,className:"rdt_Table",role:"table"},!Je&&(!!Ve||jn.length>0&&!Ne)&&e.createElement(W,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:et},e.createElement(B,{className:"rdt_TableHeadRow",role:"row",dense:D},F&&(po?e.createElement($,{style:{flex:"0 0 48px"}}):e.createElement(Me,{allSelected:Bn,selectedRows:Wn,selectableRowsComponent:q,selectableRowsComponentProps:Q,selectableRowDisabled:Y,rowData:go,keyField:x,mergeSelections:Xn,onSelectAllRows:function(e){$n(e)}})),Ht&&!tn&&e.createElement(Et,null),Pn.map((function(t){return e.createElement(ze,{key:t.id,column:t,selectedColumn:Vn,disabled:Ne||0===jn.length,rows:jn,pagination:rt,paginationServer:se,persistSelectedOnSort:qn,selectableRowsVisibleOnly:N,sortFunction:Gt,sortDirection:Un,sortIcon:Lt,sortServer:Ut,onSort:ro,onDragStart:Dn,onDragOver:Fn,onDragEnd:Tn,onDragEnter:Hn,onDragLeave:In,draggingColumnId:kn})})))),!jn.length&&!Ne&&e.createElement(Ot,null,Ye),Ne&&Ve&&e.createElement(Rt,null,Be),!Ne&&jn.length>0&&e.createElement(yt,{className:"rdt_TableBody",role:"rowgroup"},oo.map((function(t,n){var o,r=(void 0===(o=t[x])&&(o=""),"number"==typeof o||o&&0!==o.length?t[x]:n),i=m(t,Wn,x),a=!!(Ht&&dn&&dn(t)),l=!!(Ht&&Zt&&Zt(t));return e.createElement(Re,{id:r,key:r,keyField:x,row:t,"data-row-id":t[x],columns:Pn,selectableRows:F,expandableRows:Ht,expandableIcon:oe,highlightOnHover:E,pointerOnHover:P,dense:D,expandOnRowClicked:on,expandOnRowDoubleClicked:an,expandableRowsComponent:$t,expandableRowsComponentProps:Qt,expandableRowsHideExpander:tn,defaultExpanderDisabled:l,defaultExpanded:a,expandableInheritConditionalStyles:cn,conditionalRowStyles:mn,rowCount:jn.length,rowIndex:n,selected:i,selectableRowsHighlight:A,selectableRowsComponent:q,selectableRowsComponentProps:Q,selectableRowDisabled:Y,selectableRowsSingle:T,striped:R,onRowExpandToggled:Z,onRowClicked:ao,onRowDoubleClicked:lo,onSelectedRow:io,draggingColumnId:kn,onDragStart:Dn,onDragOver:Fn,onDragEnd:Tn,onDragEnter:Hn,onDragLeave:In})})))))),Zn&&e.createElement("div",null,e.createElement(eo,{onChangePage:so,onChangeRowsPerPage:function(e){var t=f(pe||oo.length,e),n=h(Nn,t);se||so(n),$n({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})},rowCount:pe||jn.length,currentPage:Nn,rowsPerPage:Mn,direction:Sn,paginationRowsPerPageOptions:ye,paginationIconLastPage:Se,paginationIconFirstPage:Oe,paginationIconNext:ke,paginationIconPrevious:He,paginationComponentOptions:_e})))}));export{pe as Alignment,ge as Direction,fe as Media,we as STOP_PROP_TAG,Qt as createTheme,Xt as default,Jt as defaultThemes};
***************************************************************************** */;function be(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}const he={left:"flex-start",right:"flex-end",center:"center"},me=n.header`
position: relative;
display: flex;
flex: 1 1 auto;
box-sizing: border-box;
align-items: center;
padding: 4px 16px 4px 24px;
width: 100%;
justify-content: ${({align:e})=>he[e]};
flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"};
${({theme:e})=>e.subHeader.style}
`,we=t=>{var{align:n="right",wrapContent:o=!0}=t,a=be(t,["align","wrapContent"]);return e.createElement(me,Object.assign({align:n,wrapContent:o},a))},fe=n.div`
display: flex;
flex-direction: column;
`,xe=n.div`
position: relative;
width: 100%;
border-radius: inherit;
${({responsive:e,fixedHeader:t})=>e&&o`
overflow-x: auto;
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
overflow-y: ${t?"auto":"hidden"};
min-height: 0;
`};
${({fixedHeader:e=!1,fixedHeaderScrollHeight:t="100vh"})=>e&&o`
max-height: ${t};
-webkit-overflow-scrolling: touch;
`};
`,Ce=n.div`
position: relative;
box-sizing: border-box;
width: 100%;
height: 100%;
${e=>e.theme.progress.style};
`,ye=n.div`
position: relative;
width: 100%;
${({theme:e})=>e.tableWrapper.style};
`,ve=n(k)`
white-space: nowrap;
${({theme:e})=>e.expanderCell.style};
`,Re=n.div`
box-sizing: border-box;
width: 100%;
height: 100%;
${({theme:e})=>e.noData.style};
`,Se=()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},t.createElement("path",{d:"M7 10l5 5 5-5z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Ee=n.select`
cursor: pointer;
height: 24px;
max-width: 100%;
user-select: none;
padding-left: 8px;
padding-right: 24px;
box-sizing: content-box;
font-size: inherit;
color: inherit;
border: none;
background-color: transparent;
appearance: none;
direction: ltr;
flex-shrink: 0;
&::-ms-expand {
display: none;
}
&:disabled::-ms-expand {
background: #f60;
}
option {
color: initial;
}
`,Oe=n.div`
position: relative;
flex-shrink: 0;
font-size: inherit;
color: inherit;
margin-top: 1px;
svg {
top: 0;
right: 0;
color: inherit;
position: absolute;
fill: currentColor;
width: 24px;
height: 24px;
display: inline-block;
user-select: none;
pointer-events: none;
}
`,Pe=t=>{var{defaultValue:n,onChange:o}=t,a=be(t,["defaultValue","onChange"]);return e.createElement(Oe,null,e.createElement(Ee,Object.assign({onChange:o,defaultValue:n},a)),e.createElement(Se,null))},ke={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return t.createElement("div",null,"To add an expander pass in a component instance via ",t.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:t.createElement((()=>t.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),t.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:t.createElement((()=>t.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),t.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:t.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:t.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:G.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:t.createElement((()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),t.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:t.createElement((()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:t.createElement((()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:t.createElement((()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},t.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:B.AUTO,onChangePage:u,onChangeRowsPerPage:u,onRowClicked:u,onRowDoubleClicked:u,onRowExpandToggled:u,onSelectedRowsChange:u,onSort:u,onColumnOrderChange:u},De={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},He=n.nav`
display: flex;
flex: 1 1 auto;
justify-content: flex-end;
align-items: center;
box-sizing: border-box;
padding-right: 8px;
padding-left: 8px;
width: 100%;
${({theme:e})=>e.pagination.style};
`,$e=n.button`
position: relative;
display: block;
user-select: none;
border: none;
${({theme:e})=>e.pagination.pageButtonsStyle};
${({isRTL:e})=>e&&"transform: scale(-1, -1)"};
`,Fe=n.div`
display: flex;
align-items: center;
border-radius: 4px;
white-space: nowrap;
${S`
width: 100%;
justify-content: space-around;
`};
`,je=n.span`
flex-shrink: 1;
user-select: none;
`,Ie=n(je)`
margin: 0 24px;
`,Te=n(je)`
margin: 0 4px;
`;var Ae=e.memo((function({rowsPerPage:t,rowCount:n,currentPage:o,direction:a=ke.direction,paginationRowsPerPageOptions:l=ke.paginationRowsPerPageOptions,paginationIconLastPage:r=ke.paginationIconLastPage,paginationIconFirstPage:i=ke.paginationIconFirstPage,paginationIconNext:s=ke.paginationIconNext,paginationIconPrevious:d=ke.paginationIconPrevious,paginationComponentOptions:c=ke.paginationComponentOptions,onChangeRowsPerPage:p=ke.onChangeRowsPerPage,onChangePage:u=ke.onChangePage}){const b=(()=>{const t="object"==typeof window;function n(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}const[o,a]=e.useState(n);return e.useEffect((()=>{if(!t)return()=>null;function e(){a(n())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),o})(),h=le(a),m=b.width&&b.width>599,w=g(n,t),f=o*t,x=f-t+1,C=1===o,y=o===w,v=Object.assign(Object.assign({},De),c),R=o===w?`${x}-${n} ${v.rangeSeparatorText} ${n}`:`${x}-${f} ${v.rangeSeparatorText} ${n}`,S=e.useCallback((()=>u(o-1)),[o,u]),E=e.useCallback((()=>u(o+1)),[o,u]),O=e.useCallback((()=>u(1)),[u]),P=e.useCallback((()=>u(g(n,t))),[u,n,t]),k=e.useCallback((e=>p(Number(e.target.value),o)),[o,p]),D=l.map((t=>e.createElement("option",{key:t,value:t},t)));v.selectAllRowsItem&&D.push(e.createElement("option",{key:-1,value:n},v.selectAllRowsItemText));const H=e.createElement(Pe,{onChange:k,defaultValue:t,"aria-label":v.rowsPerPageText},D);return e.createElement(He,{className:"rdt_Pagination"},!v.noRowsPerPage&&m&&e.createElement(e.Fragment,null,e.createElement(Te,null,v.rowsPerPageText),H),m&&e.createElement(Ie,null,R),e.createElement(Fe,null,e.createElement($e,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":C,onClick:O,disabled:C,isRTL:h},i),e.createElement($e,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":C,onClick:S,disabled:C,isRTL:h},d),!m&&H,e.createElement($e,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":y,onClick:E,disabled:y,isRTL:h},s),e.createElement($e,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":y,onClick:P,disabled:y,isRTL:h},r)))}));const Le=(t,n)=>{const o=e.useRef(!0);e.useEffect((()=>{o.current?o.current=!1:t()}),n)};var _e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Me}(e)}(e)};var Me="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ve((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ne(e,t,n){return e.concat(t).map((function(e){return ze(e,n)}))}function We(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Be(e,t){try{return t in e}catch(e){return!1}}function Ge(e,t,n){var o={};return n.isMergeableObject(e)&&We(e).forEach((function(t){o[t]=ze(e[t],n)})),We(t).forEach((function(a){(function(e,t){return Be(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Be(e,a)&&n.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return Ve;var n=t.customMerge(e);return"function"==typeof n?n:Ve}(a,n)(e[a],t[a],n):o[a]=ze(t[a],n))})),o}function Ve(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ne,n.isMergeableObject=n.isMergeableObject||_e,n.cloneUnlessOtherwiseSpecified=ze;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Ge(e,t,n):ze(t,n)}Ve.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ve(e,n,t)}),{})};var Ue=Ve;const Ye={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ke(e="default",t){return Ye[e]=Ue(Ye.default,t||{}),Ye[e]}var qe=e.memo((function(t){const{data:n=ke.data,columns:o=ke.columns,title:l=ke.title,actions:i=ke.actions,keyField:s=ke.keyField,striped:d=ke.striped,highlightOnHover:u=ke.highlightOnHover,pointerOnHover:b=ke.pointerOnHover,dense:w=ke.dense,selectableRows:x=ke.selectableRows,selectableRowsSingle:y=ke.selectableRowsSingle,selectableRowsHighlight:S=ke.selectableRowsHighlight,selectableRowsNoSelectAll:E=ke.selectableRowsNoSelectAll,selectableRowsVisibleOnly:O=ke.selectableRowsVisibleOnly,selectableRowSelected:P=ke.selectableRowSelected,selectableRowDisabled:D=ke.selectableRowDisabled,selectableRowsComponent:H=ke.selectableRowsComponent,selectableRowsComponentProps:$=ke.selectableRowsComponentProps,onRowExpandToggled:F=ke.onRowExpandToggled,onSelectedRowsChange:j=ke.onSelectedRowsChange,expandableIcon:I=ke.expandableIcon,onChangeRowsPerPage:T=ke.onChangeRowsPerPage,onChangePage:A=ke.onChangePage,paginationServer:L=ke.paginationServer,paginationServerOptions:_=ke.paginationServerOptions,paginationTotalRows:M=ke.paginationTotalRows,paginationDefaultPage:z=ke.paginationDefaultPage,paginationResetDefaultPage:N=ke.paginationResetDefaultPage,paginationPerPage:W=ke.paginationPerPage,paginationRowsPerPageOptions:B=ke.paginationRowsPerPageOptions,paginationIconLastPage:G=ke.paginationIconLastPage,paginationIconFirstPage:V=ke.paginationIconFirstPage,paginationIconNext:U=ke.paginationIconNext,paginationIconPrevious:Y=ke.paginationIconPrevious,paginationComponent:K=ke.paginationComponent,paginationComponentOptions:J=ke.paginationComponentOptions,responsive:Q=ke.responsive,progressPending:X=ke.progressPending,progressComponent:Z=ke.progressComponent,persistTableHead:ee=ke.persistTableHead,noDataComponent:te=ke.noDataComponent,disabled:oe=ke.disabled,noTableHead:le=ke.noTableHead,noHeader:re=ke.noHeader,fixedHeader:ie=ke.fixedHeader,fixedHeaderScrollHeight:se=ke.fixedHeaderScrollHeight,pagination:de=ke.pagination,subHeader:ce=ke.subHeader,subHeaderAlign:ge=ke.subHeaderAlign,subHeaderWrap:pe=ke.subHeaderWrap,subHeaderComponent:be=ke.subHeaderComponent,noContextMenu:he=ke.noContextMenu,contextMessage:me=ke.contextMessage,contextActions:Se=ke.contextActions,contextComponent:Ee=ke.contextComponent,expandableRows:Oe=ke.expandableRows,onRowClicked:Pe=ke.onRowClicked,onRowDoubleClicked:De=ke.onRowDoubleClicked,sortIcon:He=ke.sortIcon,onSort:$e=ke.onSort,sortFunction:Fe=ke.sortFunction,sortServer:je=ke.sortServer,expandableRowsComponent:Ie=ke.expandableRowsComponent,expandableRowsComponentProps:Te=ke.expandableRowsComponentProps,expandableRowDisabled:_e=ke.expandableRowDisabled,expandableRowsHideExpander:Me=ke.expandableRowsHideExpander,expandOnRowClicked:ze=ke.expandOnRowClicked,expandOnRowDoubleClicked:Ne=ke.expandOnRowDoubleClicked,expandableRowExpanded:We=ke.expandableRowExpanded,expandableInheritConditionalStyles:Be=ke.expandableInheritConditionalStyles,defaultSortFieldId:Ge=ke.defaultSortFieldId,defaultSortAsc:Ve=ke.defaultSortAsc,clearSelectedRows:Ke=ke.clearSelectedRows,conditionalRowStyles:qe=ke.conditionalRowStyles,theme:Je=ke.theme,customStyles:Qe=ke.customStyles,direction:Xe=ke.direction,onColumnOrderChange:Ze=ke.onColumnOrderChange}=t,{tableColumns:et,draggingColumnId:tt,handleDragStart:nt,handleDragEnter:ot,handleDragOver:at,handleDragLeave:lt,handleDragEnd:rt,defaultSortDirection:it,defaultSortColumn:st}=function(t,n,o,a){const[l,r]=e.useState((()=>c(t))),[i,s]=e.useState(""),d=e.useRef("");Le((()=>{r(c(t))}),[t]);const g=e.useCallback((e=>{var t,n,o;const{attributes:a}=e.target,r=null===(t=a.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(d.current=(null===(o=null===(n=l[m(l,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",s(d.current))}),[l]),p=e.useCallback((e=>{var t;const{attributes:o}=e.target,a=null===(t=o.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;if(a&&d.current&&a!==d.current){const e=m(l,d.current),t=m(l,a),o=[...l];o[e]=l[t],o[t]=l[e],r(o),n(o)}}),[n,l]),u=e.useCallback((e=>{e.preventDefault()}),[]),b=e.useCallback((e=>{e.preventDefault()}),[]),h=e.useCallback((e=>{e.preventDefault(),d.current="",s("")}),[]),w=function(e=!1){return e?"asc":"desc"}(a),f=e.useMemo((()=>t[m(t,null==o?void 0:o.toString())]||{}),[t,o]);return{tableColumns:l,draggingColumnId:i,handleDragStart:g,handleDragEnter:p,handleDragOver:u,handleDragLeave:b,handleDragEnd:h,defaultSortDirection:w,defaultSortColumn:f}}(o,Ze,Ge,Ve),[{rowsPerPage:dt,rows:ct,currentPage:gt,selectedRows:pt,allSelected:ut,selectedCount:bt,selectedColumn:ht,sortDirection:mt,toggleOnSelectedRowsChange:wt},ft]=e.useReducer(f,{rows:r(n,null==st?void 0:st.selector,it,je,Fe),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:st,toggleOnSelectedRowsChange:!1,sortDirection:it,currentPage:z,rowsPerPage:W,selectedRowsFlag:!1,contextMessage:ke.contextMessage}),{persistSelectedOnSort:xt=!1,persistSelectedOnPageChange:Ct=!1}=_,yt=!(!L||!Ct&&!xt),vt=de&&!X&&n.length>0,Rt=K||Ae,St=e.useMemo((()=>((e={},t="default")=>{const n=Ye[t]?t:"default";return Ue({table:{style:{color:(o=Ye[n]).text.primary,backgroundColor:o.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:o.text.primary,backgroundColor:o.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:o.background.default,minHeight:"52px"}},head:{style:{color:o.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:o.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:o.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:o.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:o.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:o.sortFocus.default},"&:hover":{color:o.sortFocus.default}}},contextMenu:{style:{backgroundColor:o.context.background,fontSize:"18px",fontWeight:400,color:o.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:o.text.primary,backgroundColor:o.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:o.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:o.selected.text,backgroundColor:o.selected.default,borderBottomColor:o.background.default}},highlightOnHoverStyle:{color:o.highlightOnHover.text,backgroundColor:o.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:o.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:o.background.default},stripedStyle:{color:o.striped.text,backgroundColor:o.striped.default}},expanderRow:{style:{color:o.text.primary,backgroundColor:o.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:o.button.default,fill:o.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:o.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:o.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:o.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:o.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:o.button.default,fill:o.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:o.button.disabled,fill:o.button.disabled},"&:hover:not(:disabled)":{backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}}},e);var o})(Qe,Je)),[Qe,Je]),Et=e.useMemo((()=>Object.assign({},"auto"!==Xe&&{dir:Xe})),[Xe]),Ot=e.useMemo((()=>{if(de&&!L){const e=gt*dt,t=e-dt;return ct.slice(t,e)}return ct}),[gt,de,L,ct,dt]),Pt=e.useCallback((e=>{ft(e)}),[]),kt=e.useCallback((e=>{ft(e)}),[]),Dt=e.useCallback((e=>{ft(e)}),[]),Ht=e.useCallback(((e,t)=>Pe(e,t)),[Pe]),$t=e.useCallback(((e,t)=>De(e,t)),[De]),Ft=e.useCallback((e=>ft({type:"CHANGE_PAGE",page:e,paginationServer:L,visibleOnly:O,persistSelectedOnPageChange:Ct})),[L,Ct,O]),jt=e.useCallback((e=>{const t=g(M||Ot.length,e),n=p(gt,t);L||Ft(n),ft({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[gt,Ft,L,M,Ot.length]);if(de&&!L&&ct.length>0&&0===Ot.length){const e=g(ct.length,dt),t=p(gt,e);Ft(t)}Le((()=>{j({allSelected:ut,selectedCount:bt,selectedRows:pt})}),[wt]),Le((()=>{$e(ht,mt)}),[ht,mt]),Le((()=>{A(gt,M||ct.length)}),[gt]),Le((()=>{T(dt,gt)}),[dt]),Le((()=>{Ft(z)}),[z,N]),Le((()=>{if(de&&L&&M>0){const e=g(M,dt),t=p(gt,e);gt!==t&&Ft(t)}}),[M]),Le((()=>{ft({type:"UPDATE_ROWS",rows:r(n,null==st?void 0:st.selector,it,je,Fe)})}),[n]),e.useEffect((()=>{ft({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ke})}),[y,Ke]),e.useEffect((()=>{if(P&&!y){const e=ct.filter((e=>P(e)));ft({type:"SELECT_MULTIPLE_ROWS",keyField:s,selectedRows:e,rows:ct,mergeSelections:yt})}}),[n]);const It=O?Ot:ct,Tt=Ct||y||E;return e.createElement(a,{theme:St},!re&&(!!l||!!i)&&e.createElement(ue,{title:l,actions:i,showMenu:!he,selectedCount:bt,direction:Xe,contextActions:Se,contextComponent:Ee,contextMessage:me}),ce&&e.createElement(we,{align:ge,wrapContent:pe},be),e.createElement(xe,Object.assign({responsive:Q,fixedHeader:ie,fixedHeaderScrollHeight:se},Et),e.createElement(ye,null,X&&!ee&&e.createElement(Ce,null,Z),e.createElement(C,{disabled:oe,className:"rdt_Table",role:"table"},!le&&(!!ee||ct.length>0&&!X)&&e.createElement(v,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:ie},e.createElement(R,{className:"rdt_TableHeadRow",role:"row",dense:w},x&&(Tt?e.createElement(k,{style:{flex:"0 0 48px"}}):e.createElement(ae,{allSelected:ut,selectedRows:pt,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowDisabled:D,rowData:It,keyField:s,mergeSelections:yt,onSelectAllRows:kt})),Oe&&!Me&&e.createElement(ve,null),et.map((t=>e.createElement(ne,{key:t.id,column:t,selectedColumn:ht,disabled:X||0===ct.length,rows:ct,pagination:de,paginationServer:L,persistSelectedOnSort:xt,selectableRowsVisibleOnly:O,sortFunction:Fe,sortDirection:mt,sortIcon:He,sortServer:je,onSort:Pt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt,draggingColumnId:tt}))))),!ct.length&&!X&&e.createElement(Re,null,te),X&&ee&&e.createElement(Ce,null,Z),!X&&ct.length>0&&e.createElement(fe,{className:"rdt_TableBody",role:"rowgroup"},Ot.map(((t,n)=>{const o=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(t[s])?n:t[s],a=h(t,pt,s),l=!!(Oe&&We&&We(t)),r=!!(Oe&&_e&&_e(t));return e.createElement(q,{id:o,key:o,keyField:s,"data-row-id":t[s],columns:et,row:t,rowCount:ct.length,rowIndex:n,selectableRows:x,expandableRows:Oe,expandableIcon:I,highlightOnHover:u,pointerOnHover:b,dense:w,expandOnRowClicked:ze,expandOnRowDoubleClicked:Ne,expandableRowsComponent:Ie,expandableRowsComponentProps:Te,expandableRowsHideExpander:Me,defaultExpanderDisabled:r,defaultExpanded:l,expandableInheritConditionalStyles:Be,conditionalRowStyles:qe,selected:a,selectableRowsHighlight:S,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowDisabled:D,selectableRowsSingle:y,striped:d,onRowExpandToggled:F,onRowClicked:Ht,onRowDoubleClicked:$t,onSelectedRow:Dt,draggingColumnId:tt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt})})))))),vt&&e.createElement("div",null,e.createElement(Rt,{onChangePage:Ft,onChangeRowsPerPage:jt,rowCount:M||ct.length,currentPage:gt,rowsPerPage:dt,direction:Xe,paginationRowsPerPageOptions:B,paginationIconLastPage:G,paginationIconFirstPage:V,paginationIconNext:U,paginationIconPrevious:Y,paginationComponentOptions:J})))}));export{G as Alignment,B as Direction,V as Media,W as STOP_PROP_TAG,Ke as createTheme,qe as default,Ye as defaultThemes};

@@ -1,1 +0,391 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("styled-components"),require("lodash.orderby")):"function"==typeof define&&define.amd?define(["exports","react","styled-components","lodash.orderby"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactDataTable={},e.React,e.styled,e.orderby)}(this,(function(e,t,n,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t),l=r(t),d=r(n),s=r(o),c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function g(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e}function p(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function f(e,t,n,o,r){return o||!t?e:h(e,t,n,r)}function h(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):s.default(e,t,n):e}function w(e,t,n){void 0===e&&(e=[]),void 0===n&&(n="id");var o=e.slice();return t[n]?o.splice(o.findIndex((function(e){return e[n]===t[n]})),1):o.splice(o.findIndex((function(e){return e===t})),1),o}function v(e){return e.map((function(e,t){var n=c(c({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function m(e,t){return Math.ceil(e/t)}function b(e,t){return Math.min(e,t)}var x=function(){return null};function y(e,t){void 0===t&&(t=[]);var n={};return t.length&&t.forEach((function(t){if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function C(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n="id"),e[n]?t.some((function(t){return t[n]===e[n]})):t.some((function(t){return t===e}))}function R(e,t){return t?e.findIndex((function(e){return S(e.id,t)})):-1}function S(e,t){return e==t}function E(e,t){var n,o,r,i=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":var a=t.rows;return c(c({},e),{rows:a});case"SELECT_ALL_ROWS":var l=t.keyField,d=t.rows,s=t.rowCount,u=t.mergeSelections,p=!e.allSelected,f=!e.toggleOnSelectedRowsChange;if(u){var h=p?g(g([],e.selectedRows),d.filter((function(t){return!C(t,e.selectedRows,l)}))):e.selectedRows.filter((function(e){return!C(e,d,l)}));return c(c({},e),{allSelected:p,selectedCount:h.length,selectedRows:h,toggleOnSelectedRowsChange:f})}return c(c({},e),{allSelected:p,selectedCount:p?s:0,selectedRows:p?d:[],toggleOnSelectedRowsChange:f});case"SELECT_SINGLE_ROW":var v=t.keyField,m=t.row,b=t.isSelected,x=(s=t.rowCount,t.singleSelect);return c(c({},e),x?b?{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:i}:{selectedCount:1,allSelected:!1,selectedRows:[m],toggleOnSelectedRowsChange:i}:b?{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:w(e.selectedRows,m,v),toggleOnSelectedRowsChange:i}:{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===s,selectedRows:(n=e.selectedRows,o=m,void 0===n&&(n=[]),void 0===r&&(r=0),g(g(g([],n.slice(0,r)),[o]),n.slice(r))),toggleOnSelectedRowsChange:i});case"SELECT_MULTIPLE_ROWS":var y=t.keyField,R=t.selectedRows;a=t.rows;if(u=t.mergeSelections){h=g(g([],e.selectedRows),R.filter((function(t){return!C(t,e.selectedRows,y)})));return c(c({},e),{selectedCount:h.length,allSelected:!1,selectedRows:h,toggleOnSelectedRowsChange:i})}return c(c({},e),{selectedCount:R.length,allSelected:R.length===a.length,selectedRows:R,toggleOnSelectedRowsChange:i});case"CLEAR_SELECTED_ROWS":var S=t.selectedRowsFlag;return c(c({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:S});case"SORT_CHANGE":a=t.rows;var E=t.sortDirection,O=t.selectedColumn,P=t.clearSelectedOnSort;return c(c(c({},e),{rows:a,selectedColumn:O,sortDirection:E,currentPage:1}),P&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_PAGE":var k=t.page,D=t.paginationServer,H=t.visibleOnly,F=t.persistSelectedOnPageChange,T=(u=D&&F,D&&!F||H);return c(c(c(c({},e),{currentPage:k}),u&&{allSelected:!1}),T&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:i});case"CHANGE_ROWS_PER_PAGE":var _=t.rowsPerPage;k=t.page;return c(c({},e),{currentPage:k,rowsPerPage:_})}}var O,P,k,D,H,F,T,_,I,A,z,L,M,j,N,W,B=n.css(O||(O=p(["\n\tpointer-events: none;\n\topacity: 0.4;\n"],["\n\tpointer-events: none;\n\topacity: 0.4;\n"]))),G=d.default.div(P||(P=p(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmax-width: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.disabled&&B}),(function(e){return e.theme.table.style})),V=n.css(k||(k=p(["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"],["\n\tposition: sticky;\n\tposition: -webkit-sticky; /* Safari */\n\ttop: 0;\n\tz-index: 1;\n"]))),U=d.default.div(D||(D=p(["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.fixedHeader&&V}),(function(e){return e.theme.head.style})),q=d.default.div(H||(H=p(["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\t",";\n\t",";\n"])),(function(e){return e.theme.headRow.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.headRow.denseStyle})),Y=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return n.css(F||(F=p(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),599,n.css.apply(void 0,g([e],t)))},$=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return n.css(T||(T=p(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),959,n.css.apply(void 0,g([e],t)))},K=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return n.css(_||(_=p(["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"],["\n\t\t@media screen and (max-width: ","px) {\n\t\t\t","\n\t\t}\n\t"])),1280,n.css.apply(void 0,g([e],t)))},J=function(e){return function(t){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return n.css(I||(I=p(["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"],["\n\t\t\t\t@media screen and (max-width: ","px) {\n\t\t\t\t\t","\n\t\t\t\t}\n\t\t\t"])),e,n.css.apply(void 0,g([t],o)))}},Q=d.default.div(A||(A=p(["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tline-height: normal;\n\t",";\n\t",";\n"])),(function(e){return e.theme[e.head?"headCells":"cells"].style}),(function(e){return e.noPadding&&"padding: 0"})),X=d.default(Q)(W||(W=p(["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tflex-grow: ",";\n\tflex-shrink: 0;\n\tflex-basis: 0;\n\tmax-width: ",";\n\tmin-width: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t/* handle hiding cells */\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){var t=e.button,n=e.grow;return 0===n||t?0:n||1}),(function(e){return e.maxWidth||"100%"}),(function(e){return e.minWidth||"100px"}),(function(e){var t=e.width;return t&&n.css(z||(z=p(["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"],["\n\t\t\tmin-width: ",";\n\t\t\tmax-width: ",";\n\t\t"])),t,t)}),(function(e){return e.right&&"justify-content: flex-end"}),(function(e){var t=e.button;return(e.center||t)&&"justify-content: center"}),(function(e){var t=e.compact,n=e.button;return(t||n)&&"padding: 0"}),(function(e){var t=e.hide;return t&&"sm"===t&&Y(L||(L=p(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"md"===t&&$(M||(M=p(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&"lg"===t&&K(j||(j=p(["\n display: none;\n "],["\n display: none;\n "])))}),(function(e){var t=e.hide;return t&&Number.isInteger(t)&&J(t)(N||(N=p(["\n display: none;\n "],["\n display: none;\n "])))})),Z=n.css(te||(te=p(["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"],["\n\tdiv:first-child {\n\t\twhite-space: ",";\n\t\toverflow: ",";\n\t\ttext-overflow: ellipsis;\n\t}\n"])),(function(e){return e.wrapCell?"normal":"nowrap"}),(function(e){return e.allowOverflow?"visible":"hidden"})),ee=d.default(X).attrs((function(e){return{style:e.style}}))(ne||(ne=p(["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"],["\n\tfont-size: ",";\n\tfont-weight: 400;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.fontSize}),(function(e){return!e.renderAsCell&&Z}),(function(e){var t=e.theme;return e.isDragging&&t.cells.draggingStyle}),(function(e){return e.cellStyle}));var te,ne,oe=a.memo((function(e){var t=e.id,n=e.column,o=e.dataTag,r=e.extendedCellStyle,i=e.renderAsCell,l=e.isDragging,d=e.onDragStart,s=e.onDragOver,c=e.onDragEnd,u=e.onDragEnter,g=e.onDragLeave,p=e.children;return a.createElement(ee,{id:t,"data-column-id":n.id,role:"gridcell",className:"rdt_TableCell","data-tag":o,cellStyle:n.style,renderAsCell:i,allowOverflow:n.allowOverflow,button:n.button,center:n.center,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,width:n.width,wrapCell:n.wrap,style:r,isDragging:l,onDragStart:d,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:g},p)})),re="input";var ie,ae=a.memo((function(e){var t=e.name,n=e.component,o=void 0===n?re:n,r=e.componentOptions,i=void 0===r?{style:{}}:r,l=e.indeterminate,d=void 0!==l&&l,s=e.checked,u=void 0!==s&&s,g=e.disabled,p=void 0!==g&&g,f=e.onClick,h=void 0===f?x:f,w=o,v=w!==re?i.style:function(e){return c(c({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"})}(p),m=a.useMemo((function(){return function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return Object.keys(e).map((function(t){return e[t]})).forEach((function(o,r){var i;"function"==typeof o&&(t=c(c({},e),((i={})[Object.keys(e)[r]]=o.apply(void 0,n),i)))})),t||e}(i,d)}),[i,d]);return a.createElement(w,c({type:"checkbox",ref:function(e){e&&(e.indeterminate=d)},style:v,onClick:p?x:h,name:t,"aria-label":t,checked:u,disabled:p},m,{onChange:x}))})),le=d.default(Q)(ie||(ie=p(["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tmin-width: 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function de(e){var t=e.keyField,n=e.row,o=e.rowCount,r=e.selected,i=e.selectableRowsComponent,l=e.selectableRowsComponentProps,d=e.selectableRowsSingle,s=e.selectableRowDisabled,c=e.onSelectedRow,u=!(!s||!s(n));return a.createElement(le,{onClick:function(e){return e.stopPropagation()},className:"rdt_TableCell",noPadding:!0},a.createElement(ae,{name:"select-row-"+n[t],component:i,componentOptions:l,checked:r,"aria-checked":r,onClick:function(){c({type:"SELECT_SINGLE_ROW",row:n,isSelected:r,keyField:t,rowCount:o,singleSelect:d})},disabled:u}))}var se,ce=d.default.button(se||(se=p(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"],["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder: none;\n\tbackground-color: transparent;\n\t",";\n"])),(function(e){return e.theme.expanderButton.style}));function ue(e){var t=e.disabled,n=void 0!==t&&t,o=e.expanded,r=void 0!==o&&o,i=e.expandableIcon,l=e.id,d=e.row,s=e.onToggled,c=r?i.expanded:i.collapsed;return a.createElement(ce,{"aria-disabled":n,onClick:function(){return s&&s(d)},"data-testid":"expander-button-"+l,disabled:n,"aria-label":r?"Collapse Row":"Expand Row",role:"button",type:"button"},c)}var ge,pe=d.default(Q)(ge||(ge=p(["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"],["\n\twhite-space: nowrap;\n\tfont-weight: 400;\n\tmin-width: 48px;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style}));function fe(e){var t=e.row,n=e.expanded,o=void 0!==n&&n,r=e.expandableIcon,i=e.id,l=e.onToggled,d=e.disabled,s=void 0!==d&&d;return a.createElement(pe,{onClick:function(e){return e.stopPropagation()},noPadding:!0},a.createElement(ue,{id:i,row:t,expanded:o,expandableIcon:r,disabled:s,onToggled:l}))}var he=d.default.div(we||(we=p(["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"],["\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n"])),(function(e){return e.theme.expanderRow.style}),(function(e){return e.extendedRowStyle}));var we,ve,me,be,xe=a.memo((function(e){var t=e.data,n=e.component,o=e.componentProps,r=e.extendedRowStyle,i=n;return a.createElement(he,{className:"rdt_ExpanderRow",extendedRowStyle:r},a.createElement(i,c({data:t},o)))})),ye="allowRowEvents";e.Direction=void 0,(ve=e.Direction||(e.Direction={})).LTR="ltr",ve.RTL="rtl",ve.AUTO="auto",e.Alignment=void 0,(me=e.Alignment||(e.Alignment={})).LEFT="left",me.RIGHT="right",me.CENTER="center",e.Media=void 0,(be=e.Media||(e.Media={})).SM="sm",be.MD="md",be.LG="lg";var Ce,Re,Se,Ee=n.css(Ce||(Ce=p(["\n\t&:hover {\n\t\t",";\n\t}\n"],["\n\t&:hover {\n\t\t",";\n\t}\n"])),(function(e){var t=e.highlightOnHover,n=e.theme;return t&&n.rows.highlightOnHoverStyle})),Oe=n.css(Re||(Re=p(["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"],["\n\t&:hover {\n\t\tcursor: pointer;\n\t}\n"]))),Pe=d.default.div.attrs((function(e){return{style:e.style}}))(Se||(Se=p(["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: stretch;\n\talign-content: stretch;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.theme.rows.style}),(function(e){var t=e.dense,n=e.theme;return t&&n.rows.denseStyle}),(function(e){var t=e.striped,n=e.theme;return t&&n.rows.stripedStyle}),(function(e){return e.highlightOnHover&&Ee}),(function(e){return e.pointerOnHover&&Oe}),(function(e){var t=e.selected,n=e.theme;return t&&n.rows.selectedHighlightStyle}));function ke(e){var t=e.columns,n=void 0===t?[]:t,o=e.conditionalRowStyles,r=void 0===o?[]:o,i=e.defaultExpanded,l=void 0!==i&&i,d=e.defaultExpanderDisabled,s=void 0!==d&&d,c=e.dense,u=void 0!==c&&c,g=e.expandableIcon,p=e.expandableRows,f=void 0!==p&&p,h=e.expandableRowsComponent,w=e.expandableRowsComponentProps,v=e.expandableRowsHideExpander,m=e.expandOnRowClicked,b=void 0!==m&&m,C=e.expandOnRowDoubleClicked,R=void 0!==C&&C,E=e.highlightOnHover,O=void 0!==E&&E,P=e.id,k=e.expandableInheritConditionalStyles,D=e.keyField,H=e.onRowClicked,F=void 0===H?x:H,T=e.onRowDoubleClicked,_=void 0===T?x:T,I=e.onRowExpandToggled,A=void 0===I?x:I,z=e.onSelectedRow,L=void 0===z?x:z,M=e.pointerOnHover,j=void 0!==M&&M,N=e.row,W=e.rowCount,B=e.rowIndex,G=e.selectableRowDisabled,V=void 0===G?null:G,U=e.selectableRows,q=void 0!==U&&U,Y=e.selectableRowsComponent,$=e.selectableRowsComponentProps,K=e.selectableRowsHighlight,J=void 0!==K&&K,Q=e.selectableRowsSingle,X=void 0!==Q&&Q,Z=e.selected,ee=e.striped,te=void 0!==ee&&ee,ne=e.draggingColumnId,re=e.onDragStart,ie=e.onDragOver,ae=e.onDragEnd,le=e.onDragEnter,se=e.onDragLeave,ce=a.useState(l),ue=ce[0],ge=ce[1];a.useEffect((function(){ge(l)}),[l]);var pe=a.useCallback((function(){ge(!ue),A(!ue,N)}),[ue,A,N]),he=j||f&&(b||R),we=a.useCallback((function(e){e.target&&e.target.getAttribute("data-tag")===ye&&(F(N,e),!s&&f&&b&&pe())}),[s,b,f,pe,F,N]),ve=a.useCallback((function(e){e.target&&e.target.getAttribute("data-tag")===ye&&(_(N,e),!s&&f&&R&&pe())}),[s,R,f,pe,_,N]),me=y(N,r),be=J&&Z,Ce=k?me:{},Re=te&&B%2==0;return a.createElement(a.Fragment,null,a.createElement(Pe,{id:"row-"+P,role:"row",striped:Re,highlightOnHover:O,pointerOnHover:!s&&he,dense:u,onClick:we,onDoubleClick:ve,className:"rdt_TableRow",selected:be,style:me},q&&a.createElement(de,{keyField:D,row:N,rowCount:W,selected:Z,selectableRowsComponent:Y,selectableRowsComponentProps:$,selectableRowDisabled:V,selectableRowsSingle:X,onSelectedRow:L}),f&&!v&&a.createElement(fe,{id:N[D],expandableIcon:g,expanded:ue,row:N,onToggled:pe,disabled:s}),n.map((function(e){if(e.omit)return null;var t=e.ignoreRowClick||e.button?null:ye,n=y(N,e.conditionalCellStyles);return a.createElement(oe,{id:"cell-"+e.id+"-"+N[D],key:"cell-"+e.id+"-"+N[D],extendedCellStyle:n,dataTag:t,renderAsCell:!!e.cell,column:e,isDragging:S(ne,e.id),onDragStart:re,onDragOver:ie,onDragEnd:ae,onDragEnter:le,onDragLeave:se},!e.cell&&a.createElement("div",{"data-tag":t},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce((function(e,t){var n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(var o=0;o<n.length;o++)return e[n[o]][n[o+1]];return e[t]}),e)}(N,e.selector,e.format,B)),e.cell&&e.cell(N,B,e,P))}))),f&&ue&&a.createElement(xe,{key:"expander-"+N[D],data:N,extendedRowStyle:Ce,component:h,componentProps:w}))}var De,He=d.default.span(De||(De=p(["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"],["\n\tpadding: 2px;\n\tcolor: inherit;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\t",";\n\t",";\n"])),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return"desc"===e.sortDirection&&"transform: rotate(180deg)"})),Fe=function(e){var t=e.sortActive,n=e.sortDirection;return l.default.createElement(He,{sortActive:t,sortDirection:n},"▲")},Te=d.default(X)(ze||(ze=p(["\n\t",";\n\t",";\n"],["\n\t",";\n\t",";\n"])),(function(e){return e.button&&"text-align: center"}),(function(e){var t=e.theme;return e.isDragging&&t.headCells.draggingStyle})),_e=n.css(Le||(Le=p(["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"],["\n\t",";\n\n\tspan.__rdt_custom_sort_icon__ {\n\t\ti,\n\t\tsvg {\n\t\t\t",";\n\t\t\tcolor: inherit;\n\t\t\tfont-size: 18px !important;\n\t\t\theight: 18px !important;\n\t\t\twidth: 18px !important;\n\t\t\tbackface-visibility: hidden;\n\t\t\ttransform-style: preserve-3d;\n\t\t\ttransition-duration: 125ms;\n\t\t\ttransition-property: transform;\n\t\t}\n\n\t\t&.asc i,\n\t\t&.asc svg {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tcursor: pointer;\n\t\t",";\n\n\t\tspan,\n\t\tspan.__rdt_custom_sort_icon__ * {\n\t\t\t",";\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return e.sortActive?t.headCells.activeSortStyle:t.headCells.inactiveSortStyle}),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return e.theme.headCells.activeStyle}),(function(e){return!e.sortActive&&"opacity: 1"})),Ie=d.default.div(Me||(Me=p(["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"],["\n\talign-items: center;\n\theight: 100%;\n\tline-height: 1.5;\n\toutline: none;\n\tuser-select: none;\n\tdisplay: inline-flex;\n\toverflow: hidden;\n\t",";\n"])),(function(e){var t=e.disabled;return e.sortable&&!t&&_e})),Ae=d.default.div(je||(je=p(["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"],["\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n"])));var ze,Le,Me,je,Ne,We=a.memo((function(e){var t=e.rows,n=e.column,o=e.disabled,r=e.draggingColumnId,i=e.selectedColumn,l=void 0===i?{}:i,d=e.sortDirection,s=e.sortFunction,c=e.sortIcon,u=e.sortServer,p=e.pagination,f=e.paginationServer,w=e.persistSelectedOnSort,v=e.selectableRowsVisibleOnly,m=e.onSort,b=e.onDragStart,x=e.onDragOver,y=e.onDragEnd,C=e.onDragEnter,R=e.onDragLeave;if(a.useEffect((function(){"string"==typeof n.selector&&console.error("Warning: "+n.selector+" is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...")}),[]),n.omit)return null;var E=function(){if(n.sortable&&n.selector){var e=d;S(l.id,n.id)&&(e="asc"===d?"desc":"asc");var o=t;if(!u){o=h(t,n.selector,e,s);var r=n.sortFunction;if(r){var i="asc"===e?r:function(e,t){return-1*r(e,t)};o=g([],t).sort(i)}}m({type:"SORT_CHANGE",rows:o,sortDirection:e,selectedColumn:n,clearSelectedOnSort:p&&f&&!w||u||v})}},O=function(e){return a.createElement(Fe,{sortActive:e,sortDirection:d})},P=function(){return a.createElement("span",{className:[d,"__rdt_custom_sort_icon__"].join(" ")},c)},k=!(!n.sortable||!S(l.id,n.id)),D=n.sortable&&!c&&!n.right,H=n.sortable&&!c&&n.right,F=n.sortable&&c&&!n.right,T=n.sortable&&c&&n.right;return a.createElement(Te,{"data-column-id":n.id,className:"rdt_TableCol",head:!0,allowOverflow:n.allowOverflow,button:n.button,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,center:n.center,width:n.width,draggable:n.reorder,isDragging:S(n.id,r),onDragStart:b,onDragOver:x,onDragEnd:y,onDragEnter:C,onDragLeave:R},n.name&&a.createElement(Ie,{"data-column-id":n.id,"data-sort-id":n.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:o?void 0:E,onKeyPress:o?void 0:function(e){"Enter"===e.key&&E()},sortActive:!o&&k,sortable:n.sortable,disabled:o},!o&&T&&P(),!o&&H&&O(k),a.createElement(Ae,{"data-column-id":n.id},n.name),!o&&F&&P(),!o&&D&&O(k)))})),Be=d.default(Q)(Ne||(Ne=p(["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"],["\n\tflex: 0 0 48px;\n\tjustify-content: center;\n\talign-items: center;\n\tuser-select: none;\n\twhite-space: nowrap;\n"])));function Ge(e){var t=e.head,n=void 0===t||t,o=e.rowData,r=e.keyField,i=e.allSelected,l=e.mergeSelections,d=e.selectedRows,s=e.selectableRowsComponent,c=e.selectableRowsComponentProps,u=e.selectableRowDisabled,g=e.onSelectAllRows,p=d.length>0&&!i,f=u?o.filter((function(e){return!u(e)})):o,h=0===f.length,w=Math.min(o.length,f.length);return a.createElement(Be,{className:"rdt_TableCol",head:n,noPadding:!0},a.createElement(ae,{name:"select-all-rows",component:s,componentOptions:c,onClick:function(){g({type:"SELECT_ALL_ROWS",rows:f,rowCount:w,mergeSelections:l,keyField:r})},checked:i,indeterminate:p,disabled:h}))}function Ve(t){void 0===t&&(t=e.Direction.AUTO);var n="object"==typeof window,o=a.useState(!1),r=o[0],i=o[1];return a.useEffect((function(){if(n)if("auto"!==t)i("rtl"===t);else{var e=!(!window.document||!window.document.createElement),o=document.getElementsByTagName("BODY")[0],r=document.getElementsByTagName("HTML")[0],a="rtl"===o.dir||"rtl"===r.dir;i(e&&a)}}),[t,n]),r}var Ue,qe,Ye,$e=d.default.div(Ue||(Ue=p(["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1 0 auto;\n\theight: 100%;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.contextMenu.fontColor}),(function(e){return e.theme.contextMenu.fontSize})),Ke=d.default.div(qe||(qe=p(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tflex-wrap: wrap;\n"]))),Je=d.default.div(Ye||(Ye=p(["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"],["\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: inherit;\n\tz-index: 1;\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\t",";\n\t",";\n\t",";\n"])),(function(e){return e.rtl&&"direction: rtl"}),(function(e){return e.theme.contextMenu.style}),(function(e){var t=e.theme;return e.visible&&t.contextMenu.activeStyle}));function Qe(e){var t=e.contextMessage,n=e.contextActions,o=e.contextComponent,r=e.selectedCount,i=Ve(e.direction),l=r>0;return o?a.createElement(Je,{visible:l},a.cloneElement(o,{selectedCount:r})):a.createElement(Je,{visible:l,rtl:i},a.createElement($e,null,function(e,t,n){if(0===t)return null;var o=1===t?e.singular:e.plural;return n?t+" "+(e.message||"")+" "+o:t+" "+o+" "+(e.message||"")}(t,r,i)),a.createElement(Ke,null,n))}var Xe,Ze,et,tt,nt,ot,rt,it,at,lt,dt,st,ct,ut,gt,pt,ft,ht,wt,vt,mt,bt=d.default.div(Xe||(Xe=p(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\talign-items: center;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tflex-wrap: wrap;\n\t","\n"])),(function(e){return e.theme.header.style})),xt=d.default.div(Ze||(Ze=p(["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"],["\n\tflex: 1 0 auto;\n\tcolor: ",";\n\tfont-size: ",";\n\tfont-weight: 400;\n"])),(function(e){return e.theme.header.fontColor}),(function(e){return e.theme.header.fontSize})),yt=d.default.div(et||(et=p(["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"],["\n\tflex: 1 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-end;\n\n\t> * {\n\t\tmargin-left: 5px;\n\t}\n"]))),Ct=function(e){var t=e.title,n=e.actions,o=void 0===n?null:n,r=e.contextMessage,i=e.contextActions,l=e.contextComponent,d=e.selectedCount,s=e.direction,c=e.showMenu,u=void 0===c||c;return a.createElement(bt,{className:"rdt_TableHeader",role:"heading","aria-level":1},a.createElement(xt,null,t),o&&a.createElement(yt,null,o),u&&a.createElement(Qe,{contextMessage:r,contextActions:i,contextComponent:l,direction:s,selectedCount:d}))},Rt={left:"flex-start",right:"flex-end",center:"center"},St=d.default.header(tt||(tt=p(["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"],["\n\tposition: relative;\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tbox-sizing: border-box;\n\talign-items: center;\n\tpadding: 4px 16px 4px 24px;\n\twidth: 100%;\n\tjustify-content: ",";\n\tflex-wrap: ",";\n\t","\n"])),(function(e){var t=e.align;return Rt[t]}),(function(e){return e.wrapContent?"wrap":"nowrap"}),(function(e){return e.theme.subHeader.style})),Et=function(e){var t=e.align,n=void 0===t?"right":t,o=e.wrapContent,r=void 0===o||o,i=u(e,["align","wrapContent"]);return a.createElement(St,c({align:n,wrapContent:r},i))},Ot=d.default.div(nt||(nt=p(["\n\tdisplay: flex;\n\tflex-direction: column;\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n"]))),Pt=d.default.div(it||(it=p(["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: inherit;\n\t",";\n\n\t",";\n"])),(function(e){var t=e.responsive,o=e.fixedHeader;return t&&n.css(ot||(ot=p(["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"],["\n\t\t\toverflow-x: auto;\n\n\t\t\t// hidden prevents vertical scrolling in firefox when fixedHeader is disabled\n\t\t\toverflow-y: ",";\n\t\t\tmin-height: 0;\n\t\t"])),o?"auto":"hidden")}),(function(e){var t=e.fixedHeader,o=void 0!==t&&t,r=e.fixedHeaderScrollHeight,i=void 0===r?"100vh":r;return o&&n.css(rt||(rt=p(["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"],["\n\t\t\tmax-height: ",";\n\t\t\t-webkit-overflow-scrolling: touch;\n\t\t"])),i)})),kt=d.default.div(at||(at=p(["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tposition: relative;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.progress.style})),Dt=d.default.div(lt||(lt=p(["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"],["\n\tposition: relative;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.tableWrapper.style})),Ht=d.default(Q)(dt||(dt=p(["\n\twhite-space: nowrap;\n\t",";\n"],["\n\twhite-space: nowrap;\n\t",";\n"])),(function(e){return e.theme.expanderCell.style})),Ft=d.default.div(st||(st=p(["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"],["\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\t",";\n"])),(function(e){return e.theme.noData.style})),Tt=function(){return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},l.default.createElement("path",{d:"M7 10l5 5 5-5z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},_t=d.default.select(ct||(ct=p(["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"],["\n\tcursor: pointer;\n\theight: 24px;\n\tmax-width: 100%;\n\tuser-select: none;\n\tpadding-left: 8px;\n\tpadding-right: 24px;\n\tbox-sizing: content-box;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tborder: none;\n\tbackground-color: transparent;\n\tappearance: none;\n\tdirection: ltr;\n\tflex-shrink: 0;\n\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n\n\t&:disabled::-ms-expand {\n\t\tbackground: #f60;\n\t}\n\n\toption {\n\t\tcolor: initial;\n\t}\n"]))),It=d.default.div(ut||(ut=p(["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"],["\n\tposition: relative;\n\tflex-shrink: 0;\n\tfont-size: inherit;\n\tcolor: inherit;\n\tmargin-top: 1px;\n\n\tsvg {\n\t\ttop: 0;\n\t\tright: 0;\n\t\tcolor: inherit;\n\t\tposition: absolute;\n\t\tfill: currentColor;\n\t\twidth: 24px;\n\t\theight: 24px;\n\t\tdisplay: inline-block;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n"]))),At=function(e){var t=e.defaultValue,n=e.onChange,o=u(e,["defaultValue","onChange"]);return a.createElement(It,null,a.createElement(_t,c({onChange:n,defaultValue:t},o)),a.createElement(Tt,null))},zt={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return l.default.createElement("div",null,"To add an expander pass in a component instance via ",l.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:l.default.createElement((function(){return l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),l.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))}),null),expanded:l.default.createElement((function(){return l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),l.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))}),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:l.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:l.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:e.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:l.default.createElement((function(){return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),l.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))}),null),paginationIconLastPage:l.default.createElement((function(){return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),l.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),paginationIconNext:l.default.createElement((function(){return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),paginationIconPrevious:l.default.createElement((function(){return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:e.Direction.AUTO,onChangePage:x,onChangeRowsPerPage:x,onRowClicked:x,onRowDoubleClicked:x,onRowExpandToggled:x,onSelectedRowsChange:x,onSort:x,onColumnOrderChange:x},Lt={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Mt=d.default.nav(gt||(gt=p(["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"],["\n\tdisplay: flex;\n\tflex: 1 1 auto;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding-right: 8px;\n\tpadding-left: 8px;\n\twidth: 100%;\n\t",";\n"])),(function(e){return e.theme.pagination.style})),jt=d.default.button(pt||(pt=p(["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"],["\n\tposition: relative;\n\tdisplay: block;\n\tuser-select: none;\n\tborder: none;\n\t",";\n\t",";\n"])),(function(e){return e.theme.pagination.pageButtonsStyle}),(function(e){return e.isRTL&&"transform: scale(-1, -1)"})),Nt=d.default.div(ht||(ht=p(["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\t",";\n"])),Y(ft||(ft=p(["\n width: 100%;\n justify-content: space-around;\n "],["\n width: 100%;\n justify-content: space-around;\n "])))),Wt=d.default.span(wt||(wt=p(["\n\tflex-shrink: 1;\n\tuser-select: none;\n"],["\n\tflex-shrink: 1;\n\tuser-select: none;\n"]))),Bt=d.default(Wt)(vt||(vt=p(["\n\tmargin: 0 24px;\n"],["\n\tmargin: 0 24px;\n"]))),Gt=d.default(Wt)(mt||(mt=p(["\n\tmargin: 0 4px;\n"],["\n\tmargin: 0 4px;\n"])));function Vt(e){var t=e.rowsPerPage,n=e.rowCount,o=e.currentPage,r=e.direction,i=void 0===r?zt.direction:r,l=e.paginationRowsPerPageOptions,d=void 0===l?zt.paginationRowsPerPageOptions:l,s=e.paginationIconLastPage,u=void 0===s?zt.paginationIconLastPage:s,g=e.paginationIconFirstPage,p=void 0===g?zt.paginationIconFirstPage:g,f=e.paginationIconNext,h=void 0===f?zt.paginationIconNext:f,w=e.paginationIconPrevious,v=void 0===w?zt.paginationIconPrevious:w,b=e.paginationComponentOptions,x=void 0===b?zt.paginationComponentOptions:b,y=e.onChangeRowsPerPage,C=void 0===y?zt.onChangeRowsPerPage:y,R=e.onChangePage,S=void 0===R?zt.onChangePage:R,E=function(){var e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}var n=a.useState(t),o=n[0],r=n[1];return a.useEffect((function(){if(!e)return function(){return null};function n(){r(t())}return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[]),o}(),O=Ve(i),P=E.width&&E.width>599,k=m(n,t),D=o*t,H=D-t+1,F=1===o,T=o===k,_=c(c({},Lt),x),I=o===k?H+"-"+n+" "+_.rangeSeparatorText+" "+n:H+"-"+D+" "+_.rangeSeparatorText+" "+n,A=a.useCallback((function(){return S(o-1)}),[o,S]),z=a.useCallback((function(){return S(o+1)}),[o,S]),L=a.useCallback((function(){return S(1)}),[S]),M=a.useCallback((function(){return S(m(n,t))}),[S,n,t]),j=a.useCallback((function(e){return C(Number(e.target.value),o)}),[o,C]),N=d.map((function(e){return a.createElement("option",{key:e,value:e},e)}));_.selectAllRowsItem&&N.push(a.createElement("option",{key:-1,value:n},_.selectAllRowsItemText));var W=a.createElement(At,{onChange:j,defaultValue:t,"aria-label":_.rowsPerPageText},N);return a.createElement(Mt,{className:"rdt_Pagination"},!_.noRowsPerPage&&P&&a.createElement(a.Fragment,null,a.createElement(Gt,null,_.rowsPerPageText),W),P&&a.createElement(Bt,null,I),a.createElement(Nt,null,a.createElement(jt,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":F,onClick:L,disabled:F,isRTL:O},p),a.createElement(jt,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":F,onClick:A,disabled:F,isRTL:O},v),!P&&W,a.createElement(jt,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":T,onClick:z,disabled:T,isRTL:O},h),a.createElement(jt,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":T,onClick:M,disabled:T,isRTL:O},u)))}var Ut=function(e,t){var n=a.useRef(!0);a.useEffect((function(){n.current?n.current=!1:e()}),t)},qt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Yt}(e)}(e)};var Yt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Zt((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Kt(e,t,n){return e.concat(t).map((function(e){return $t(e,n)}))}function Jt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Qt(e,t){try{return t in e}catch(e){return!1}}function Xt(e,t,n){var o={};return n.isMergeableObject(e)&&Jt(e).forEach((function(t){o[t]=$t(e[t],n)})),Jt(t).forEach((function(r){(function(e,t){return Qt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(Qt(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Zt;var n=t.customMerge(e);return"function"==typeof n?n:Zt}(r,n)(e[r],t[r],n):o[r]=$t(t[r],n))})),o}function Zt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Kt,n.isMergeableObject=n.isMergeableObject||qt,n.cloneUnlessOtherwiseSpecified=$t;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Xt(e,t,n):$t(t,n)}Zt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Zt(e,n,t)}),{})};var en=Zt,tn={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};var nn=a.memo((function(e){var t=e.data,o=void 0===t?zt.data:t,r=e.columns,i=void 0===r?zt.columns:r,l=e.title,d=void 0===l?zt.title:l,s=e.actions,u=void 0===s?zt.actions:s,p=e.keyField,h=void 0===p?zt.keyField:p,w=e.striped,x=void 0===w?zt.striped:w,y=e.highlightOnHover,S=void 0===y?zt.highlightOnHover:y,O=e.pointerOnHover,P=void 0===O?zt.pointerOnHover:O,k=e.dense,D=void 0===k?zt.dense:k,H=e.selectableRows,F=void 0===H?zt.selectableRows:H,T=e.selectableRowsSingle,_=void 0===T?zt.selectableRowsSingle:T,I=e.selectableRowsHighlight,A=void 0===I?zt.selectableRowsHighlight:I,z=e.selectableRowsNoSelectAll,L=void 0===z?zt.selectableRowsNoSelectAll:z,M=e.selectableRowsVisibleOnly,j=void 0===M?zt.selectableRowsVisibleOnly:M,N=e.selectableRowSelected,W=void 0===N?zt.selectableRowSelected:N,B=e.selectableRowDisabled,V=void 0===B?zt.selectableRowDisabled:B,Y=e.selectableRowsComponent,$=void 0===Y?zt.selectableRowsComponent:Y,K=e.selectableRowsComponentProps,J=void 0===K?zt.selectableRowsComponentProps:K,X=e.onRowExpandToggled,Z=void 0===X?zt.onRowExpandToggled:X,ee=e.onSelectedRowsChange,te=void 0===ee?zt.onSelectedRowsChange:ee,ne=e.expandableIcon,oe=void 0===ne?zt.expandableIcon:ne,re=e.onChangeRowsPerPage,ie=void 0===re?zt.onChangeRowsPerPage:re,ae=e.onChangePage,le=void 0===ae?zt.onChangePage:ae,de=e.paginationServer,se=void 0===de?zt.paginationServer:de,ce=e.paginationServerOptions,ue=void 0===ce?zt.paginationServerOptions:ce,ge=e.paginationTotalRows,pe=void 0===ge?zt.paginationTotalRows:ge,fe=e.paginationDefaultPage,he=void 0===fe?zt.paginationDefaultPage:fe,we=e.paginationResetDefaultPage,ve=void 0===we?zt.paginationResetDefaultPage:we,me=e.paginationPerPage,be=void 0===me?zt.paginationPerPage:me,xe=e.paginationRowsPerPageOptions,ye=void 0===xe?zt.paginationRowsPerPageOptions:xe,Ce=e.paginationIconLastPage,Re=void 0===Ce?zt.paginationIconLastPage:Ce,Se=e.paginationIconFirstPage,Ee=void 0===Se?zt.paginationIconFirstPage:Se,Oe=e.paginationIconNext,Pe=void 0===Oe?zt.paginationIconNext:Oe,De=e.paginationIconPrevious,He=void 0===De?zt.paginationIconPrevious:De,Fe=e.paginationComponent,Te=void 0===Fe?zt.paginationComponent:Fe,_e=e.paginationComponentOptions,Ie=void 0===_e?zt.paginationComponentOptions:_e,Ae=e.responsive,ze=void 0===Ae?zt.responsive:Ae,Le=e.progressPending,Me=void 0===Le?zt.progressPending:Le,je=e.progressComponent,Ne=void 0===je?zt.progressComponent:je,Be=e.persistTableHead,Ve=void 0===Be?zt.persistTableHead:Be,Ue=e.noDataComponent,qe=void 0===Ue?zt.noDataComponent:Ue,Ye=e.disabled,$e=void 0===Ye?zt.disabled:Ye,Ke=e.noTableHead,Je=void 0===Ke?zt.noTableHead:Ke,Qe=e.noHeader,Xe=void 0===Qe?zt.noHeader:Qe,Ze=e.fixedHeader,et=void 0===Ze?zt.fixedHeader:Ze,tt=e.fixedHeaderScrollHeight,nt=void 0===tt?zt.fixedHeaderScrollHeight:tt,ot=e.pagination,rt=void 0===ot?zt.pagination:ot,it=e.subHeader,at=void 0===it?zt.subHeader:it,lt=e.subHeaderAlign,dt=void 0===lt?zt.subHeaderAlign:lt,st=e.subHeaderWrap,ct=void 0===st?zt.subHeaderWrap:st,ut=e.subHeaderComponent,gt=void 0===ut?zt.subHeaderComponent:ut,pt=e.noContextMenu,ft=void 0===pt?zt.noContextMenu:pt,ht=e.contextMessage,wt=void 0===ht?zt.contextMessage:ht,vt=e.contextActions,mt=void 0===vt?zt.contextActions:vt,bt=e.contextComponent,xt=void 0===bt?zt.contextComponent:bt,yt=e.expandableRows,Rt=void 0===yt?zt.expandableRows:yt,St=e.onRowClicked,Tt=void 0===St?zt.onRowClicked:St,_t=e.onRowDoubleClicked,It=void 0===_t?zt.onRowDoubleClicked:_t,At=e.sortIcon,Lt=void 0===At?zt.sortIcon:At,Mt=e.onSort,jt=void 0===Mt?zt.onSort:Mt,Nt=e.sortFunction,Wt=void 0===Nt?zt.sortFunction:Nt,Bt=e.sortServer,Gt=void 0===Bt?zt.sortServer:Bt,qt=e.expandableRowsComponent,Yt=void 0===qt?zt.expandableRowsComponent:qt,$t=e.expandableRowsComponentProps,Kt=void 0===$t?zt.expandableRowsComponentProps:$t,Jt=e.expandableRowDisabled,Qt=void 0===Jt?zt.expandableRowDisabled:Jt,Xt=e.expandableRowsHideExpander,Zt=void 0===Xt?zt.expandableRowsHideExpander:Xt,nn=e.expandOnRowClicked,on=void 0===nn?zt.expandOnRowClicked:nn,rn=e.expandOnRowDoubleClicked,an=void 0===rn?zt.expandOnRowDoubleClicked:rn,ln=e.expandableRowExpanded,dn=void 0===ln?zt.expandableRowExpanded:ln,sn=e.expandableInheritConditionalStyles,cn=void 0===sn?zt.expandableInheritConditionalStyles:sn,un=e.defaultSortFieldId,gn=void 0===un?zt.defaultSortFieldId:un,pn=e.defaultSortAsc,fn=void 0===pn?zt.defaultSortAsc:pn,hn=e.clearSelectedRows,wn=void 0===hn?zt.clearSelectedRows:hn,vn=e.conditionalRowStyles,mn=void 0===vn?zt.conditionalRowStyles:vn,bn=e.theme,xn=void 0===bn?zt.theme:bn,yn=e.customStyles,Cn=void 0===yn?zt.customStyles:yn,Rn=e.direction,Sn=void 0===Rn?zt.direction:Rn,En=e.onColumnOrderChange,On=function(e,t,n,o){var r=a.useState((function(){return v(e)})),i=r[0],l=r[1],d=a.useState(""),s=d[0],c=d[1],u=a.useRef("");Ut((function(){l(v(e))}),[e]);var p,f=(void 0===(p=o)&&(p=!1),p?"asc":"desc"),h=a.useMemo((function(){return e[R(e,null==n?void 0:n.toString())]||{}}),[e,n]);return{tableColumns:i,draggingColumnId:s,handleDragStart:function(e){var t,n,o,r=null===(t=e.target.attributes.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(u.current=(null===(o=null===(n=i[R(i,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",c(u.current))},handleDragEnter:function(e){var n,o=null===(n=e.target.attributes.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(o&&u.current&&o!==u.current){var r=R(i,u.current),a=R(i,o),d=g([],i);d[r]=i[a],d[a]=i[r],l(d),t(d)}},handleDragOver:function(e){e.preventDefault()},handleDragLeave:function(e){e.preventDefault()},handleDragEnd:function(e){e.preventDefault(),u.current="",c("")},defaultSortDirection:f,defaultSortColumn:h}}(i,void 0===En?zt.onColumnOrderChange:En,gn,fn),Pn=On.tableColumns,kn=On.draggingColumnId,Dn=On.handleDragStart,Hn=On.handleDragEnter,Fn=On.handleDragOver,Tn=On.handleDragLeave,_n=On.handleDragEnd,In=On.defaultSortDirection,An=On.defaultSortColumn,zn=a.useReducer(E,{rows:f(o,null==An?void 0:An.selector,In,Gt,Wt),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:An,toggleOnSelectedRowsChange:!1,sortDirection:In,currentPage:he,rowsPerPage:be,selectedRowsFlag:!1,contextMessage:zt.contextMessage}),Ln=zn[0],Mn=Ln.rowsPerPage,jn=Ln.rows,Nn=Ln.currentPage,Wn=Ln.selectedRows,Bn=Ln.allSelected,Gn=Ln.selectedCount,Vn=Ln.selectedColumn,Un=Ln.sortDirection,qn=Ln.toggleOnSelectedRowsChange,Yn=zn[1],$n=ue.persistSelectedOnSort,Kn=void 0!==$n&&$n,Jn=ue.persistSelectedOnPageChange,Qn=void 0!==Jn&&Jn,Xn=!(!se||!Qn&&!Kn),Zn=rt&&!Me&&o.length>0,eo=Te||Vt,to=a.useMemo((function(){return function(e,t){void 0===e&&(e={}),void 0===t&&(t="default");var n,o=tn[t]?t:"default";return en({table:{style:{color:(n=tn[o]).text.primary,backgroundColor:n.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:n.background.default,minHeight:"52px"}},head:{style:{}},headRow:{style:{backgroundColor:n.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:n.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{fontSize:"12px",fontWeight:500,color:n.text.primary,paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:n.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:n.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:n.sortFocus.default},"&:hover":{color:n.sortFocus.default}}},contextMenu:{style:{backgroundColor:n.context.background,fontSize:"18px",fontWeight:400,color:n.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",color:n.text.primary,backgroundColor:n.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:n.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:n.selected.text,backgroundColor:n.selected.default,borderBottomColor:n.background.default}},highlightOnHoverStyle:{color:n.highlightOnHover.text,backgroundColor:n.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:n.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:n.background.default},stripedStyle:{color:n.striped.text,backgroundColor:n.striped.default}},expanderRow:{style:{color:n.text.primary,backgroundColor:n.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:n.button.default,fill:n.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:n.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:n.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:n.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:n.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:n.button.default,fill:n.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:n.button.disabled,fill:n.button.disabled},"&:hover:not(:disabled)":{backgroundColor:n.button.hover},"&:focus":{outline:"none",backgroundColor:n.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:n.text.primary,backgroundColor:n.background.default}}},e)}(Cn,xn)}),[Cn,xn]),no=a.useMemo((function(){return c({},"auto"!==Sn&&{dir:Sn})}),[Sn]),oo=a.useMemo((function(){if(rt&&!se){var e=Nn*Mn,t=e-Mn;return jn.slice(t,e)}return jn}),[Nn,rt,se,jn,Mn]),ro=function(e){Yn(e)},io=function(e){Yn(e)},ao=a.useCallback((function(e,t){return Tt(e,t)}),[Tt]),lo=a.useCallback((function(e,t){return It(e,t)}),[It]),so=function(e){return Yn({type:"CHANGE_PAGE",page:e,paginationServer:se,visibleOnly:j,persistSelectedOnPageChange:Qn})};if(rt&&!se&&jn.length>0&&0===oo.length){var co=m(jn.length,Mn),uo=b(Nn,co);so(uo)}Ut((function(){te({allSelected:Bn,selectedCount:Gn,selectedRows:Wn})}),[qn]),Ut((function(){jt(Vn,Un)}),[Vn,Un]),Ut((function(){le(Nn,pe||jn.length)}),[Nn]),Ut((function(){ie(Mn,Nn)}),[Mn]),Ut((function(){so(he)}),[he,ve]),Ut((function(){if(rt&&se&&pe>0){var e=m(pe,Mn),t=b(Nn,e);Nn!==t&&so(t)}}),[pe]),Ut((function(){Yn({type:"UPDATE_ROWS",rows:f(o,null==An?void 0:An.selector,In,Gt,Wt)})}),[o]),a.useEffect((function(){Yn({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:wn})}),[_,wn]),a.useEffect((function(){if(W&&!_){var e=jn.filter((function(e){return W(e)}));Yn({type:"SELECT_MULTIPLE_ROWS",keyField:h,selectedRows:e,rows:jn,mergeSelections:Xn})}}),[o]);var go=j?oo:jn,po=Qn||_||L;return a.createElement(n.ThemeProvider,{theme:to},!Xe&&(!!d||!!u)&&a.createElement(Ct,{title:d,actions:u,showMenu:!ft,selectedCount:Gn,direction:Sn,contextActions:mt,contextComponent:xt,contextMessage:wt}),at&&a.createElement(Et,{align:dt,wrapContent:ct},gt),a.createElement(Pt,c({responsive:ze,fixedHeader:et,fixedHeaderScrollHeight:nt},no),a.createElement(Dt,null,Me&&!Ve&&a.createElement(kt,null,Ne),a.createElement(G,{disabled:$e,className:"rdt_Table",role:"table"},!Je&&(!!Ve||jn.length>0&&!Me)&&a.createElement(U,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:et},a.createElement(q,{className:"rdt_TableHeadRow",role:"row",dense:D},F&&(po?a.createElement(Q,{style:{flex:"0 0 48px"}}):a.createElement(Ge,{allSelected:Bn,selectedRows:Wn,selectableRowsComponent:$,selectableRowsComponentProps:J,selectableRowDisabled:V,rowData:go,keyField:h,mergeSelections:Xn,onSelectAllRows:function(e){Yn(e)}})),Rt&&!Zt&&a.createElement(Ht,null),Pn.map((function(e){return a.createElement(We,{key:e.id,column:e,selectedColumn:Vn,disabled:Me||0===jn.length,rows:jn,pagination:rt,paginationServer:se,persistSelectedOnSort:Kn,selectableRowsVisibleOnly:j,sortFunction:Wt,sortDirection:Un,sortIcon:Lt,sortServer:Gt,onSort:ro,onDragStart:Dn,onDragOver:Fn,onDragEnd:_n,onDragEnter:Hn,onDragLeave:Tn,draggingColumnId:kn})})))),!jn.length&&!Me&&a.createElement(Ft,null,qe),Me&&Ve&&a.createElement(kt,null,Ne),!Me&&jn.length>0&&a.createElement(Ot,{className:"rdt_TableBody",role:"rowgroup"},oo.map((function(e,t){var n,o=(void 0===(n=e[h])&&(n=""),"number"==typeof n||n&&0!==n.length?e[h]:t),r=C(e,Wn,h),i=!!(Rt&&dn&&dn(e)),l=!!(Rt&&Qt&&Qt(e));return a.createElement(ke,{id:o,key:o,keyField:h,row:e,"data-row-id":e[h],columns:Pn,selectableRows:F,expandableRows:Rt,expandableIcon:oe,highlightOnHover:S,pointerOnHover:P,dense:D,expandOnRowClicked:on,expandOnRowDoubleClicked:an,expandableRowsComponent:Yt,expandableRowsComponentProps:Kt,expandableRowsHideExpander:Zt,defaultExpanderDisabled:l,defaultExpanded:i,expandableInheritConditionalStyles:cn,conditionalRowStyles:mn,rowCount:jn.length,rowIndex:t,selected:r,selectableRowsHighlight:A,selectableRowsComponent:$,selectableRowsComponentProps:J,selectableRowDisabled:V,selectableRowsSingle:_,striped:x,onRowExpandToggled:Z,onRowClicked:ao,onRowDoubleClicked:lo,onSelectedRow:io,draggingColumnId:kn,onDragStart:Dn,onDragOver:Fn,onDragEnd:_n,onDragEnter:Hn,onDragLeave:Tn})})))))),Zn&&a.createElement("div",null,a.createElement(eo,{onChangePage:so,onChangeRowsPerPage:function(e){var t=m(pe||oo.length,e),n=b(Nn,t);se||so(n),Yn({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})},rowCount:pe||jn.length,currentPage:Nn,rowsPerPage:Mn,direction:Sn,paginationRowsPerPageOptions:ye,paginationIconLastPage:Re,paginationIconFirstPage:Ee,paginationIconNext:Pe,paginationIconPrevious:He,paginationComponentOptions:Ie})))}));e.STOP_PROP_TAG=ye,e.createTheme=function(e,t){return void 0===e&&(e="default"),tn[e]=en(tn.default,t||{}),tn[e]},e.default=nn,e.defaultThemes=tn,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("styled-components"),require("lodash.orderby")):"function"==typeof define&&define.amd?define(["exports","react","styled-components","lodash.orderby"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactDataTable={},e.React,e.styled,e.orderby)}(this,(function(e,t,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=l(t),i=a(t),s=a(n),d=a(o);function c(e,t,n,o,a){return o||!t?e:g(e,t,n,a)}function g(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):d.default(e,t,n):e}function u(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function p(e=[],t,n="id"){const o=e.slice();return t[n]?o.splice(o.findIndex((e=>e[n]===t[n])),1):o.splice(o.findIndex((e=>e===t)),1),o}function b(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function f(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}const m=()=>null;function w(e,t=[]){let n={};return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},"function"==typeof t.style&&(n=t.style(e)||{}))})),n}function x(e,t=[],n="id"){return e[n]?t.some((t=>t[n]===e[n])):t.some((t=>t===e))}function C(e,t){return t?e.findIndex((e=>y(e.id,t))):-1}function y(e,t){return e==t}function v(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"UPDATE_ROWS":{const{rows:n}=t;return Object.assign(Object.assign({},e),{rows:n})}case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!x(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!x(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:i}=t;return i?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:p(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:u(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,rows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!x(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l.length,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{rows:o,sortDirection:a,selectedColumn:l,clearSelectedOnSort:r}=t;return Object.assign(Object.assign(Object.assign({},e),{rows:o,selectedColumn:l,sortDirection:a,currentPage:1}),r&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const R=n.css`
pointer-events: none;
opacity: 0.4;
`,S=s.default.div`
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 100%;
${({disabled:e})=>e&&R};
${({theme:e})=>e.table.style};
`,E=n.css`
position: sticky;
position: -webkit-sticky; /* Safari */
top: 0;
z-index: 1;
`,O=s.default.div`
display: flex;
width: 100%;
${({fixedHeader:e})=>e&&E};
${({theme:e})=>e.head.style};
`,P=s.default.div`
display: flex;
align-items: stretch;
width: 100%;
${({theme:e})=>e.headRow.style};
${({dense:e,theme:t})=>e&&t.headRow.denseStyle};
`,k=(e,...t)=>n.css`
@media screen and (max-width: ${599}px) {
${n.css(e,...t)}
}
`,D=(e,...t)=>n.css`
@media screen and (max-width: ${959}px) {
${n.css(e,...t)}
}
`,H=(e,...t)=>n.css`
@media screen and (max-width: ${1280}px) {
${n.css(e,...t)}
}
`,$=e=>(t,...o)=>n.css`
@media screen and (max-width: ${e}px) {
${n.css(t,...o)}
}
`,F=s.default.div`
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
line-height: normal;
${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style};
${({noPadding:e})=>e&&"padding: 0"};
`,j=s.default(F)`
flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
flex-shrink: 0;
flex-basis: 0;
max-width: ${({maxWidth:e})=>e||"100%"};
min-width: ${({minWidth:e})=>e||"100px"};
${({width:e})=>e&&n.css`
min-width: ${e};
max-width: ${e};
`};
${({right:e})=>e&&"justify-content: flex-end"};
${({button:e,center:t})=>(t||e)&&"justify-content: center"};
${({compact:e,button:t})=>(e||t)&&"padding: 0"};
/* handle hiding cells */
${({hide:e})=>e&&"sm"===e&&k`
display: none;
`};
${({hide:e})=>e&&"md"===e&&D`
display: none;
`};
${({hide:e})=>e&&"lg"===e&&H`
display: none;
`};
${({hide:e})=>e&&Number.isInteger(e)&&$(e)`
display: none;
`};
`,T=n.css`
div:first-child {
white-space: ${({wrapCell:e})=>e?"normal":"nowrap"};
overflow: ${({allowOverflow:e})=>e?"visible":"hidden"};
text-overflow: ellipsis;
}
`,I=s.default(j).attrs((e=>({style:e.style})))`
${({renderAsCell:e})=>!e&&T};
${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle};
${({cellStyle:e})=>e};
`;var A=r.memo((function({id:e,column:t,row:n,rowIndex:o,dataTag:a,isDragging:l,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g}){return r.createElement(I,{id:e,"data-column-id":t.id,role:"gridcell",className:"rdt_TableCell","data-tag":a,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:w(n,t.conditionalCellStyles),isDragging:l,onDragStart:i,onDragOver:s,onDragEnd:d,onDragEnter:c,onDragLeave:g},!t.cell&&r.createElement("div",{"data-tag":a},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):t.split(".").reduce(((e,t)=>{const n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(let t=0;t<n.length;t++)return e[n[t]][n[t+1]];return e[t]}),e)}(n,t.selector,t.format,o)),t.cell&&t.cell(n,o,t,e))}));const _="input";var L=r.memo((function({name:e,component:t="input",componentOptions:n={style:{}},indeterminate:o=!1,checked:a=!1,disabled:l=!1,onClick:i=m}){const s=t,d=s!==_?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(l),c=r.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((o,a)=>{const l=e;"function"==typeof o&&(n=Object.assign(Object.assign({},l),{[Object.keys(e)[a]]:o(...t)}))})),n||e}(n,o)),[n,o]);return r.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=o)},style:d,onClick:l?m:i,name:e,"aria-label":e,checked:a,disabled:l},c,{onChange:m}))}));const M=s.default(F)`
flex: 0 0 48px;
min-width: 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
`;function z({keyField:e,row:t,rowCount:n,selected:o,selectableRowsComponent:a,selectableRowsComponentProps:l,selectableRowsSingle:i,selectableRowDisabled:s,onSelectedRow:d}){const c=!(!s||!s(t));return r.createElement(M,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},r.createElement(L,{name:`select-row-${t[e]}`,component:a,componentOptions:l,checked:o,"aria-checked":o,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:t,isSelected:o,keyField:e,rowCount:n,singleSelect:i})},disabled:c}))}const N=s.default.button`
display: inline-flex;
align-items: center;
user-select: none;
white-space: nowrap;
border: none;
background-color: transparent;
${({theme:e})=>e.expanderButton.style};
`;function W({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:o,row:a,onToggled:l}){const i=t?n.expanded:n.collapsed;return r.createElement(N,{"aria-disabled":e,onClick:()=>l&&l(a),"data-testid":`expander-button-${o}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},i)}const B=s.default(F)`
white-space: nowrap;
font-weight: 400;
min-width: 48px;
${({theme:e})=>e.expanderCell.style};
`;function G({row:e,expanded:t=!1,expandableIcon:n,id:o,onToggled:a,disabled:l=!1}){return r.createElement(B,{onClick:e=>e.stopPropagation(),noPadding:!0},r.createElement(W,{id:o,row:e,expanded:t,expandableIcon:n,disabled:l,onToggled:a}))}const V=s.default.div`
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.expanderRow.style};
${({extendedRowStyle:e})=>e};
`;var U=r.memo((function({data:e,component:t,componentProps:n,extendedRowStyle:o}){const a=t;return r.createElement(V,{className:"rdt_ExpanderRow",extendedRowStyle:o},r.createElement(a,Object.assign({data:e},n)))}));const q="allowRowEvents";var Y,K,J;e.Direction=void 0,(Y=e.Direction||(e.Direction={})).LTR="ltr",Y.RTL="rtl",Y.AUTO="auto",e.Alignment=void 0,(K=e.Alignment||(e.Alignment={})).LEFT="left",K.RIGHT="right",K.CENTER="center",e.Media=void 0,(J=e.Media||(e.Media={})).SM="sm",J.MD="md",J.LG="lg";const Q=n.css`
&:hover {
${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
}
`,X=n.css`
&:hover {
cursor: pointer;
}
`,Z=s.default.div.attrs((e=>({style:e.style})))`
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.rows.style};
${({dense:e,theme:t})=>e&&t.rows.denseStyle};
${({striped:e,theme:t})=>e&&t.rows.stripedStyle};
${({highlightOnHover:e})=>e&&Q};
${({pointerOnHover:e})=>e&&X};
${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
`;function ee({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:o=!1,dense:a=!1,expandableIcon:l,expandableRows:i=!1,expandableRowsComponent:s,expandableRowsComponentProps:d,expandableRowsHideExpander:c,expandOnRowClicked:g=!1,expandOnRowDoubleClicked:u=!1,highlightOnHover:p=!1,id:b,expandableInheritConditionalStyles:f,keyField:h,onRowClicked:x=m,onRowDoubleClicked:C=m,onRowExpandToggled:v=m,onSelectedRow:R=m,pointerOnHover:S=!1,row:E,rowCount:O,rowIndex:P,selectableRowDisabled:k=null,selectableRows:D=!1,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowsHighlight:F=!1,selectableRowsSingle:j=!1,selected:T,striped:I=!1,draggingColumnId:_,onDragStart:L,onDragOver:M,onDragEnd:N,onDragEnter:W,onDragLeave:B}){const[V,Y]=r.useState(n);r.useEffect((()=>{Y(n)}),[n]);const K=r.useCallback((()=>{Y(!V),v(!V,E)}),[V,v,E]),J=S||i&&(g||u),Q=r.useCallback((e=>{e.target&&e.target.getAttribute("data-tag")===q&&(x(E,e),!o&&i&&g&&K())}),[o,g,i,K,x,E]),X=r.useCallback((e=>{e.target&&e.target.getAttribute("data-tag")===q&&(C(E,e),!o&&i&&u&&K())}),[o,u,i,K,C,E]),ee=w(E,t),te=F&&T,ne=f?ee:{},oe=I&&P%2==0;return r.createElement(r.Fragment,null,r.createElement(Z,{id:`row-${b}`,role:"row",striped:oe,highlightOnHover:p,pointerOnHover:!o&&J,dense:a,onClick:Q,onDoubleClick:X,className:"rdt_TableRow",selected:te,style:ee},D&&r.createElement(z,{keyField:h,row:E,rowCount:O,selected:T,selectableRowsComponent:H,selectableRowsComponentProps:$,selectableRowDisabled:k,selectableRowsSingle:j,onSelectedRow:R}),i&&!c&&r.createElement(G,{id:E[h],expandableIcon:l,expanded:V,row:E,onToggled:K,disabled:o}),e.map((e=>e.omit?null:r.createElement(A,{id:`cell-${e.id}-${E[h]}`,key:`cell-${e.id}-${E[h]}`,dataTag:e.ignoreRowClick||e.button?null:q,column:e,row:E,rowIndex:P,isDragging:y(_,e.id),onDragStart:L,onDragOver:M,onDragEnd:N,onDragEnter:W,onDragLeave:B})))),i&&V&&r.createElement(U,{key:`expander-${E[h]}`,data:E,extendedRowStyle:ne,component:s,componentProps:d}))}const te=s.default.span`
padding: 2px;
color: inherit;
flex-grow: 0;
flex-shrink: 0;
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
`,ne=({sortActive:e,sortDirection:t})=>i.default.createElement(te,{sortActive:e,sortDirection:t},"▲"),oe=s.default(j)`
${({button:e})=>e&&"text-align: center"};
${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle};
`,ae=n.css`
${({theme:e,sortActive:t})=>t?e.headCells.activeSortStyle:e.headCells.inactiveSortStyle};
span.__rdt_custom_sort_icon__ {
i,
svg {
${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
color: inherit;
font-size: 18px !important;
height: 18px !important;
width: 18px !important;
backface-visibility: hidden;
transform-style: preserve-3d;
transition-duration: 125ms;
transition-property: transform;
}
&.asc i,
&.asc svg {
transform: rotate(180deg);
}
}
&:hover {
cursor: pointer;
${({theme:e})=>e.headCells.activeStyle};
span,
span.__rdt_custom_sort_icon__ * {
${({sortActive:e})=>!e&&"opacity: 1"};
}
}
`,le=s.default.div`
align-items: center;
height: 100%;
line-height: 1.5;
outline: none;
user-select: none;
display: inline-flex;
overflow: hidden;
${({disabled:e,sortable:t})=>t&&!e&&ae};
`,re=s.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;var ie=r.memo((function({rows:e,column:t,disabled:n,draggingColumnId:o,selectedColumn:a={},sortDirection:l,sortFunction:i,sortIcon:s,sortServer:d,pagination:c,paginationServer:u,persistSelectedOnSort:p,selectableRowsVisibleOnly:b,onSort:f,onDragStart:h,onDragOver:m,onDragEnd:w,onDragEnter:x,onDragLeave:C}){if(r.useEffect((()=>{"string"==typeof t.selector&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]),t.omit)return null;const v=()=>{if(t.sortable&&t.selector){let n=l;y(a.id,t.id)&&(n="asc"===l?"desc":"asc");let o=e;if(!d){o=g(e,t.selector,n,i);const a=t.sortFunction;if(a){const t="asc"===n?a:(e,t)=>-1*a(e,t);o=[...e].sort(t)}}f({type:"SORT_CHANGE",rows:o,sortDirection:n,selectedColumn:t,clearSelectedOnSort:c&&u&&!p||d||b})}},R=e=>r.createElement(ne,{sortActive:e,sortDirection:l}),S=()=>r.createElement("span",{className:[l,"__rdt_custom_sort_icon__"].join(" ")},s),E=!(!t.sortable||!y(a.id,t.id)),O=t.sortable&&!s&&!t.right,P=t.sortable&&!s&&t.right,k=t.sortable&&s&&!t.right,D=t.sortable&&s&&t.right;return r.createElement(oe,{"data-column-id":t.id,className:"rdt_TableCol",headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,isDragging:y(t.id,o),onDragStart:h,onDragOver:m,onDragEnd:w,onDragEnter:x,onDragLeave:C},t.name&&r.createElement(le,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:n?void 0:v,onKeyPress:n?void 0:e=>{"Enter"===e.key&&v()},sortActive:!n&&E,sortable:t.sortable,disabled:n},!n&&D&&S(),!n&&P&&R(E),r.createElement(re,{"data-column-id":t.id},t.name),!n&&k&&S(),!n&&O&&R(E)))}));const se=s.default(F)`
flex: 0 0 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
font-size: unset;
`;function de({headCell:e=!0,rowData:t,keyField:n,allSelected:o,mergeSelections:a,selectedRows:l,selectableRowsComponent:i,selectableRowsComponentProps:s,selectableRowDisabled:d,onSelectAllRows:c}){const g=l.length>0&&!o,u=d?t.filter((e=>!d(e))):t,p=0===u.length,b=Math.min(t.length,u.length);return r.createElement(se,{className:"rdt_TableCol",headCell:e,noPadding:!0},r.createElement(L,{name:"select-all-rows",component:i,componentOptions:s,onClick:()=>{c({type:"SELECT_ALL_ROWS",rows:u,rowCount:b,mergeSelections:a,keyField:n})},checked:o,indeterminate:g,disabled:p}))}function ce(t=e.Direction.AUTO){const n="object"==typeof window,[o,a]=r.useState(!1);return r.useEffect((()=>{if(n)if("auto"!==t)a("rtl"===t);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],o="rtl"===t.dir||"rtl"===n.dir;a(e&&o)}}),[t,n]),o}const ge=s.default.div`
display: flex;
align-items: center;
flex: 1 0 auto;
height: 100%;
color: ${({theme:e})=>e.contextMenu.fontColor};
font-size: ${({theme:e})=>e.contextMenu.fontSize};
font-weight: 400;
`,ue=s.default.div`
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
`,pe=s.default.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: inherit;
z-index: 1;
align-items: center;
justify-content: space-between;
display: flex;
${({rtl:e})=>e&&"direction: rtl"};
${({theme:e})=>e.contextMenu.style};
${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle};
`;function be({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:o,direction:a}){const l=ce(a),i=o>0;return n?r.createElement(pe,{visible:i},r.cloneElement(n,{selectedCount:o})):r.createElement(pe,{visible:i,rtl:l},r.createElement(ge,null,((e,t,n)=>{if(0===t)return null;const o=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${o}`:`${t} ${o} ${e.message||""}`})(e,o,l)),r.createElement(ue,null,t))}const fe=s.default.div`
position: relative;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
width: 100%;
flex-wrap: wrap;
${({theme:e})=>e.header.style}
`,he=s.default.div`
flex: 1 0 auto;
color: ${({theme:e})=>e.header.fontColor};
font-size: ${({theme:e})=>e.header.fontSize};
font-weight: 400;
`,me=s.default.div`
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: flex-end;
> * {
margin-left: 5px;
}
`,we=({title:e,actions:t=null,contextMessage:n,contextActions:o,contextComponent:a,selectedCount:l,direction:i,showMenu:s=!0})=>r.createElement(fe,{className:"rdt_TableHeader",role:"heading","aria-level":1},r.createElement(he,null,e),t&&r.createElement(me,null,t),s&&r.createElement(be,{contextMessage:n,contextActions:o,contextComponent:a,direction:i,selectedCount:l}))
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */;function xe(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}const Ce={left:"flex-start",right:"flex-end",center:"center"},ye=s.default.header`
position: relative;
display: flex;
flex: 1 1 auto;
box-sizing: border-box;
align-items: center;
padding: 4px 16px 4px 24px;
width: 100%;
justify-content: ${({align:e})=>Ce[e]};
flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"};
${({theme:e})=>e.subHeader.style}
`,ve=e=>{var{align:t="right",wrapContent:n=!0}=e,o=xe(e,["align","wrapContent"]);return r.createElement(ye,Object.assign({align:t,wrapContent:n},o))},Re=s.default.div`
display: flex;
flex-direction: column;
`,Se=s.default.div`
position: relative;
width: 100%;
border-radius: inherit;
${({responsive:e,fixedHeader:t})=>e&&n.css`
overflow-x: auto;
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
overflow-y: ${t?"auto":"hidden"};
min-height: 0;
`};
${({fixedHeader:e=!1,fixedHeaderScrollHeight:t="100vh"})=>e&&n.css`
max-height: ${t};
-webkit-overflow-scrolling: touch;
`};
`,Ee=s.default.div`
position: relative;
box-sizing: border-box;
width: 100%;
height: 100%;
${e=>e.theme.progress.style};
`,Oe=s.default.div`
position: relative;
width: 100%;
${({theme:e})=>e.tableWrapper.style};
`,Pe=s.default(F)`
white-space: nowrap;
${({theme:e})=>e.expanderCell.style};
`,ke=s.default.div`
box-sizing: border-box;
width: 100%;
height: 100%;
${({theme:e})=>e.noData.style};
`,De=()=>i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},i.default.createElement("path",{d:"M7 10l5 5 5-5z"}),i.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),He=s.default.select`
cursor: pointer;
height: 24px;
max-width: 100%;
user-select: none;
padding-left: 8px;
padding-right: 24px;
box-sizing: content-box;
font-size: inherit;
color: inherit;
border: none;
background-color: transparent;
appearance: none;
direction: ltr;
flex-shrink: 0;
&::-ms-expand {
display: none;
}
&:disabled::-ms-expand {
background: #f60;
}
option {
color: initial;
}
`,$e=s.default.div`
position: relative;
flex-shrink: 0;
font-size: inherit;
color: inherit;
margin-top: 1px;
svg {
top: 0;
right: 0;
color: inherit;
position: absolute;
fill: currentColor;
width: 24px;
height: 24px;
display: inline-block;
user-select: none;
pointer-events: none;
}
`,Fe=e=>{var{defaultValue:t,onChange:n}=e,o=xe(e,["defaultValue","onChange"]);return r.createElement($e,null,r.createElement(He,Object.assign({onChange:n,defaultValue:t},o)),r.createElement(De,null))},je={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return i.default.createElement("div",null,"To add an expander pass in a component instance via ",i.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:i.default.createElement((()=>i.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),i.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:i.default.createElement((()=>i.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),i.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:i.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:i.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:e.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:i.default.createElement((()=>i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},i.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),i.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:i.default.createElement((()=>i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},i.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),i.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:i.default.createElement((()=>i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},i.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),i.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:i.default.createElement((()=>i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},i.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),i.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:e.Direction.AUTO,onChangePage:m,onChangeRowsPerPage:m,onRowClicked:m,onRowDoubleClicked:m,onRowExpandToggled:m,onSelectedRowsChange:m,onSort:m,onColumnOrderChange:m},Te={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Ie=s.default.nav`
display: flex;
flex: 1 1 auto;
justify-content: flex-end;
align-items: center;
box-sizing: border-box;
padding-right: 8px;
padding-left: 8px;
width: 100%;
${({theme:e})=>e.pagination.style};
`,Ae=s.default.button`
position: relative;
display: block;
user-select: none;
border: none;
${({theme:e})=>e.pagination.pageButtonsStyle};
${({isRTL:e})=>e&&"transform: scale(-1, -1)"};
`,_e=s.default.div`
display: flex;
align-items: center;
border-radius: 4px;
white-space: nowrap;
${k`
width: 100%;
justify-content: space-around;
`};
`,Le=s.default.span`
flex-shrink: 1;
user-select: none;
`,Me=s.default(Le)`
margin: 0 24px;
`,ze=s.default(Le)`
margin: 0 4px;
`;var Ne=r.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:o=je.direction,paginationRowsPerPageOptions:a=je.paginationRowsPerPageOptions,paginationIconLastPage:l=je.paginationIconLastPage,paginationIconFirstPage:i=je.paginationIconFirstPage,paginationIconNext:s=je.paginationIconNext,paginationIconPrevious:d=je.paginationIconPrevious,paginationComponentOptions:c=je.paginationComponentOptions,onChangeRowsPerPage:g=je.onChangeRowsPerPage,onChangePage:u=je.onChangePage}){const p=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,o]=r.useState(t);return r.useEffect((()=>{if(!e)return()=>null;function n(){o(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),b=ce(o),h=p.width&&p.width>599,m=f(t,e),w=n*e,x=w-e+1,C=1===n,y=n===m,v=Object.assign(Object.assign({},Te),c),R=n===m?`${x}-${t} ${v.rangeSeparatorText} ${t}`:`${x}-${w} ${v.rangeSeparatorText} ${t}`,S=r.useCallback((()=>u(n-1)),[n,u]),E=r.useCallback((()=>u(n+1)),[n,u]),O=r.useCallback((()=>u(1)),[u]),P=r.useCallback((()=>u(f(t,e))),[u,t,e]),k=r.useCallback((e=>g(Number(e.target.value),n)),[n,g]),D=a.map((e=>r.createElement("option",{key:e,value:e},e)));v.selectAllRowsItem&&D.push(r.createElement("option",{key:-1,value:t},v.selectAllRowsItemText));const H=r.createElement(Fe,{onChange:k,defaultValue:e,"aria-label":v.rowsPerPageText},D);return r.createElement(Ie,{className:"rdt_Pagination"},!v.noRowsPerPage&&h&&r.createElement(r.Fragment,null,r.createElement(ze,null,v.rowsPerPageText),H),h&&r.createElement(Me,null,R),r.createElement(_e,null,r.createElement(Ae,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":C,onClick:O,disabled:C,isRTL:b},i),r.createElement(Ae,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":C,onClick:S,disabled:C,isRTL:b},d),!h&&H,r.createElement(Ae,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":y,onClick:E,disabled:y,isRTL:b},s),r.createElement(Ae,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":y,onClick:P,disabled:y,isRTL:b},l)))}));const We=(e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)};var Be=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ge}(e)}(e)};var Ge="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ve(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Je((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ue(e,t,n){return e.concat(t).map((function(e){return Ve(e,n)}))}function qe(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ye(e,t){try{return t in e}catch(e){return!1}}function Ke(e,t,n){var o={};return n.isMergeableObject(e)&&qe(e).forEach((function(t){o[t]=Ve(e[t],n)})),qe(t).forEach((function(a){(function(e,t){return Ye(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Ye(e,a)&&n.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return Je;var n=t.customMerge(e);return"function"==typeof n?n:Je}(a,n)(e[a],t[a],n):o[a]=Ve(t[a],n))})),o}function Je(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ue,n.isMergeableObject=n.isMergeableObject||Be,n.cloneUnlessOtherwiseSpecified=Ve;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Ke(e,t,n):Ve(t,n)}Je.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Je(e,n,t)}),{})};var Qe=Je;const Xe={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};var Ze=r.memo((function(e){const{data:t=je.data,columns:o=je.columns,title:a=je.title,actions:l=je.actions,keyField:i=je.keyField,striped:s=je.striped,highlightOnHover:d=je.highlightOnHover,pointerOnHover:g=je.pointerOnHover,dense:u=je.dense,selectableRows:p=je.selectableRows,selectableRowsSingle:m=je.selectableRowsSingle,selectableRowsHighlight:w=je.selectableRowsHighlight,selectableRowsNoSelectAll:y=je.selectableRowsNoSelectAll,selectableRowsVisibleOnly:R=je.selectableRowsVisibleOnly,selectableRowSelected:E=je.selectableRowSelected,selectableRowDisabled:k=je.selectableRowDisabled,selectableRowsComponent:D=je.selectableRowsComponent,selectableRowsComponentProps:H=je.selectableRowsComponentProps,onRowExpandToggled:$=je.onRowExpandToggled,onSelectedRowsChange:j=je.onSelectedRowsChange,expandableIcon:T=je.expandableIcon,onChangeRowsPerPage:I=je.onChangeRowsPerPage,onChangePage:A=je.onChangePage,paginationServer:_=je.paginationServer,paginationServerOptions:L=je.paginationServerOptions,paginationTotalRows:M=je.paginationTotalRows,paginationDefaultPage:z=je.paginationDefaultPage,paginationResetDefaultPage:N=je.paginationResetDefaultPage,paginationPerPage:W=je.paginationPerPage,paginationRowsPerPageOptions:B=je.paginationRowsPerPageOptions,paginationIconLastPage:G=je.paginationIconLastPage,paginationIconFirstPage:V=je.paginationIconFirstPage,paginationIconNext:U=je.paginationIconNext,paginationIconPrevious:q=je.paginationIconPrevious,paginationComponent:Y=je.paginationComponent,paginationComponentOptions:K=je.paginationComponentOptions,responsive:J=je.responsive,progressPending:Q=je.progressPending,progressComponent:X=je.progressComponent,persistTableHead:Z=je.persistTableHead,noDataComponent:te=je.noDataComponent,disabled:ne=je.disabled,noTableHead:oe=je.noTableHead,noHeader:ae=je.noHeader,fixedHeader:le=je.fixedHeader,fixedHeaderScrollHeight:re=je.fixedHeaderScrollHeight,pagination:se=je.pagination,subHeader:ce=je.subHeader,subHeaderAlign:ge=je.subHeaderAlign,subHeaderWrap:ue=je.subHeaderWrap,subHeaderComponent:pe=je.subHeaderComponent,noContextMenu:be=je.noContextMenu,contextMessage:fe=je.contextMessage,contextActions:he=je.contextActions,contextComponent:me=je.contextComponent,expandableRows:xe=je.expandableRows,onRowClicked:Ce=je.onRowClicked,onRowDoubleClicked:ye=je.onRowDoubleClicked,sortIcon:De=je.sortIcon,onSort:He=je.onSort,sortFunction:$e=je.sortFunction,sortServer:Fe=je.sortServer,expandableRowsComponent:Te=je.expandableRowsComponent,expandableRowsComponentProps:Ie=je.expandableRowsComponentProps,expandableRowDisabled:Ae=je.expandableRowDisabled,expandableRowsHideExpander:_e=je.expandableRowsHideExpander,expandOnRowClicked:Le=je.expandOnRowClicked,expandOnRowDoubleClicked:Me=je.expandOnRowDoubleClicked,expandableRowExpanded:ze=je.expandableRowExpanded,expandableInheritConditionalStyles:Be=je.expandableInheritConditionalStyles,defaultSortFieldId:Ge=je.defaultSortFieldId,defaultSortAsc:Ve=je.defaultSortAsc,clearSelectedRows:Ue=je.clearSelectedRows,conditionalRowStyles:qe=je.conditionalRowStyles,theme:Ye=je.theme,customStyles:Ke=je.customStyles,direction:Je=je.direction,onColumnOrderChange:Ze=je.onColumnOrderChange}=e,{tableColumns:et,draggingColumnId:tt,handleDragStart:nt,handleDragEnter:ot,handleDragOver:at,handleDragLeave:lt,handleDragEnd:rt,defaultSortDirection:it,defaultSortColumn:st}=function(e,t,n,o){const[a,l]=r.useState((()=>b(e))),[i,s]=r.useState(""),d=r.useRef("");We((()=>{l(b(e))}),[e]);const c=r.useCallback((e=>{var t,n,o;const{attributes:l}=e.target,r=null===(t=l.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;r&&(d.current=(null===(o=null===(n=a[C(a,r)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",s(d.current))}),[a]),g=r.useCallback((e=>{var n;const{attributes:o}=e.target,r=null===(n=o.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(r&&d.current&&r!==d.current){const e=C(a,d.current),n=C(a,r),o=[...a];o[e]=a[n],o[n]=a[e],l(o),t(o)}}),[t,a]),u=r.useCallback((e=>{e.preventDefault()}),[]),p=r.useCallback((e=>{e.preventDefault()}),[]),f=r.useCallback((e=>{e.preventDefault(),d.current="",s("")}),[]),h=function(e=!1){return e?"asc":"desc"}(o),m=r.useMemo((()=>e[C(e,null==n?void 0:n.toString())]||{}),[e,n]);return{tableColumns:a,draggingColumnId:i,handleDragStart:c,handleDragEnter:g,handleDragOver:u,handleDragLeave:p,handleDragEnd:f,defaultSortDirection:h,defaultSortColumn:m}}(o,Ze,Ge,Ve),[{rowsPerPage:dt,rows:ct,currentPage:gt,selectedRows:ut,allSelected:pt,selectedCount:bt,selectedColumn:ft,sortDirection:ht,toggleOnSelectedRowsChange:mt},wt]=r.useReducer(v,{rows:c(t,null==st?void 0:st.selector,it,Fe,$e),allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:st,toggleOnSelectedRowsChange:!1,sortDirection:it,currentPage:z,rowsPerPage:W,selectedRowsFlag:!1,contextMessage:je.contextMessage}),{persistSelectedOnSort:xt=!1,persistSelectedOnPageChange:Ct=!1}=L,yt=!(!_||!Ct&&!xt),vt=se&&!Q&&t.length>0,Rt=Y||Ne,St=r.useMemo((()=>((e={},t="default")=>{const n=Xe[t]?t:"default";return Qe({table:{style:{color:(o=Xe[n]).text.primary,backgroundColor:o.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:o.text.primary,backgroundColor:o.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:o.background.default,minHeight:"52px"}},head:{style:{color:o.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:o.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:o.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"},activeSortStyle:{color:o.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:o.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:o.sortFocus.default},"&:hover":{color:o.sortFocus.default}}},contextMenu:{style:{backgroundColor:o.context.background,fontSize:"18px",fontWeight:400,color:o.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:o.text.primary,backgroundColor:o.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:o.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:o.selected.text,backgroundColor:o.selected.default,borderBottomColor:o.background.default}},highlightOnHoverStyle:{color:o.highlightOnHover.text,backgroundColor:o.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:o.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:o.background.default},stripedStyle:{color:o.striped.text,backgroundColor:o.striped.default}},expanderRow:{style:{color:o.text.primary,backgroundColor:o.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:o.button.default,fill:o.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:o.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:o.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:o.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:o.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:o.button.default,fill:o.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:o.button.disabled,fill:o.button.disabled},"&:hover:not(:disabled)":{backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}}},e);var o})(Ke,Ye)),[Ke,Ye]),Et=r.useMemo((()=>Object.assign({},"auto"!==Je&&{dir:Je})),[Je]),Ot=r.useMemo((()=>{if(se&&!_){const e=gt*dt,t=e-dt;return ct.slice(t,e)}return ct}),[gt,se,_,ct,dt]),Pt=r.useCallback((e=>{wt(e)}),[]),kt=r.useCallback((e=>{wt(e)}),[]),Dt=r.useCallback((e=>{wt(e)}),[]),Ht=r.useCallback(((e,t)=>Ce(e,t)),[Ce]),$t=r.useCallback(((e,t)=>ye(e,t)),[ye]),Ft=r.useCallback((e=>wt({type:"CHANGE_PAGE",page:e,paginationServer:_,visibleOnly:R,persistSelectedOnPageChange:Ct})),[_,Ct,R]),jt=r.useCallback((e=>{const t=f(M||Ot.length,e),n=h(gt,t);_||Ft(n),wt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[gt,Ft,_,M,Ot.length]);if(se&&!_&&ct.length>0&&0===Ot.length){const e=f(ct.length,dt),t=h(gt,e);Ft(t)}We((()=>{j({allSelected:pt,selectedCount:bt,selectedRows:ut})}),[mt]),We((()=>{He(ft,ht)}),[ft,ht]),We((()=>{A(gt,M||ct.length)}),[gt]),We((()=>{I(dt,gt)}),[dt]),We((()=>{Ft(z)}),[z,N]),We((()=>{if(se&&_&&M>0){const e=f(M,dt),t=h(gt,e);gt!==t&&Ft(t)}}),[M]),We((()=>{wt({type:"UPDATE_ROWS",rows:c(t,null==st?void 0:st.selector,it,Fe,$e)})}),[t]),r.useEffect((()=>{wt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ue})}),[m,Ue]),r.useEffect((()=>{if(E&&!m){const e=ct.filter((e=>E(e)));wt({type:"SELECT_MULTIPLE_ROWS",keyField:i,selectedRows:e,rows:ct,mergeSelections:yt})}}),[t]);const Tt=R?Ot:ct,It=Ct||m||y;return r.createElement(n.ThemeProvider,{theme:St},!ae&&(!!a||!!l)&&r.createElement(we,{title:a,actions:l,showMenu:!be,selectedCount:bt,direction:Je,contextActions:he,contextComponent:me,contextMessage:fe}),ce&&r.createElement(ve,{align:ge,wrapContent:ue},pe),r.createElement(Se,Object.assign({responsive:J,fixedHeader:le,fixedHeaderScrollHeight:re},Et),r.createElement(Oe,null,Q&&!Z&&r.createElement(Ee,null,X),r.createElement(S,{disabled:ne,className:"rdt_Table",role:"table"},!oe&&(!!Z||ct.length>0&&!Q)&&r.createElement(O,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:le},r.createElement(P,{className:"rdt_TableHeadRow",role:"row",dense:u},p&&(It?r.createElement(F,{style:{flex:"0 0 48px"}}):r.createElement(de,{allSelected:pt,selectedRows:ut,selectableRowsComponent:D,selectableRowsComponentProps:H,selectableRowDisabled:k,rowData:Tt,keyField:i,mergeSelections:yt,onSelectAllRows:kt})),xe&&!_e&&r.createElement(Pe,null),et.map((e=>r.createElement(ie,{key:e.id,column:e,selectedColumn:ft,disabled:Q||0===ct.length,rows:ct,pagination:se,paginationServer:_,persistSelectedOnSort:xt,selectableRowsVisibleOnly:R,sortFunction:$e,sortDirection:ht,sortIcon:De,sortServer:Fe,onSort:Pt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt,draggingColumnId:tt}))))),!ct.length&&!Q&&r.createElement(ke,null,te),Q&&Z&&r.createElement(Ee,null,X),!Q&&ct.length>0&&r.createElement(Re,{className:"rdt_TableBody",role:"rowgroup"},Ot.map(((e,t)=>{const n=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(e[i])?t:e[i],o=x(e,ut,i),a=!!(xe&&ze&&ze(e)),l=!!(xe&&Ae&&Ae(e));return r.createElement(ee,{id:n,key:n,keyField:i,"data-row-id":e[i],columns:et,row:e,rowCount:ct.length,rowIndex:t,selectableRows:p,expandableRows:xe,expandableIcon:T,highlightOnHover:d,pointerOnHover:g,dense:u,expandOnRowClicked:Le,expandOnRowDoubleClicked:Me,expandableRowsComponent:Te,expandableRowsComponentProps:Ie,expandableRowsHideExpander:_e,defaultExpanderDisabled:l,defaultExpanded:a,expandableInheritConditionalStyles:Be,conditionalRowStyles:qe,selected:o,selectableRowsHighlight:w,selectableRowsComponent:D,selectableRowsComponentProps:H,selectableRowDisabled:k,selectableRowsSingle:m,striped:s,onRowExpandToggled:$,onRowClicked:Ht,onRowDoubleClicked:$t,onSelectedRow:Dt,draggingColumnId:tt,onDragStart:nt,onDragOver:at,onDragEnd:rt,onDragEnter:ot,onDragLeave:lt})})))))),vt&&r.createElement("div",null,r.createElement(Rt,{onChangePage:Ft,onChangeRowsPerPage:jt,rowCount:M||ct.length,currentPage:gt,rowsPerPage:dt,direction:Je,paginationRowsPerPageOptions:B,paginationIconLastPage:G,paginationIconFirstPage:V,paginationIconNext:U,paginationIconPrevious:q,paginationComponentOptions:K})))}));e.STOP_PROP_TAG=q,e.createTheme=function(e="default",t){return Xe[e]=Qe(Xe.default,t||{}),Xe[e]},e.default=Ze,e.defaultThemes=Xe,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "react-data-table-component",
"version": "7.0.0-rc7",
"description": "A declarative react based data table",
"version": "7.0.0",
"description": "A simple to use declarative react based data table",
"main": "dist/index.cjs.js",

@@ -45,8 +45,8 @@ "module": "dist/index.es.js",

"@material-ui/icons": "^4.11.2",
"@storybook/addon-a11y": "^6.3.7",
"@storybook/addon-essentials": "^6.3.7",
"@storybook/addon-storysource": "^6.3.7",
"@storybook/addons": "^6.3.7",
"@storybook/react": "^6.3.7",
"@storybook/theming": "^6.3.7",
"@storybook/addon-a11y": "^6.3.8",
"@storybook/addon-essentials": "^6.3.8",
"@storybook/addon-storysource": "^6.3.8",
"@storybook/addons": "^6.3.8",
"@storybook/react": "^6.3.8",
"@storybook/theming": "^6.3.8",
"@testing-library/react": "^12.0.0",

@@ -57,9 +57,9 @@ "@types/faker": "^5.5.8",

"@types/lodash.orderby": "^4.6.6",
"@types/node": "^16.7.2",
"@types/react": "^17.0.19",
"@types/node": "^16.7.11",
"@types/react": "^17.0.20",
"@types/react-dom": "^17.0.9",
"@types/styled-components": "^5.1.13",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"axios": "^0.21.1",
"@types/styled-components": "^5.1.14",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"axios": "^0.21.4",
"babel-eslint": "^10.1.0",

@@ -73,8 +73,8 @@ "codecov": "^3.8.3",

"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"faker": "^5.5.3",
"gh-pages": "^3.2.3",
"jest": "^27.0.6",
"jest": "^27.1.0",
"jest-styled-components": "^7.0.5",

@@ -102,3 +102,3 @@ "jest-watch-typeahead": "^0.6.4",

"ts-jest": "^27.0.5",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},

@@ -110,5 +110,5 @@ "dependencies": {

"peerDependencies": {
"react": "^17.0.2",
"styled-components": "^5.3.1"
"react": ">= 16.8.3",
"styled-components": ">= 4"
}
}

@@ -1,4 +0,3 @@

[![Netlify Status](https://api.netlify.com/api/v1/badges/26e0d16d-a986-46b1-9097-1a76c10d7cad/deploy-status)](https://app.netlify.com/sites/react-data-table-component/deploys) [![npm version](https://badge.fury.io/js/react-data-table-component.svg)](https://badge.fury.io/js/react-data-table-component) [![codecov](https://codecov.io/gh/jbetancur/react-data-table-component/branch/master/graph/badge.svg)](https://codecov.io/gh/jbetancur/react-data-table-component)
[![Netlify Status](https://api.netlify.com/api/v1/badges/26e0d16d-a986-46b1-9097-1a76c10d7cad/deploy-status)](https://app.netlify.com/sites/react-data-table-component/deploys) [![npm version](https://badge.fury.io/js/react-data-table-component.svg)](https://badge.fury.io/js/react-data-table-component) [![codecov](https://codecov.io/gh/jbetancur/react-data-table-component/branch/master/graph/badge.svg)](https://codecov.io/gh/jbetancur/react-data-table-component) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
# React Data Table Component

@@ -46,5 +45,1 @@

</a>
# Stargazers over time
[![Stargazers over time](https://starchart.cc/jbetancur/react-data-table-component.svg)](https://starchart.cc/jbetancur/react-data-table-component)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc