@fattureincloud/fic-design-system 0.7.5-tmp → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,6 @@ declare type Props<CellProps> = {
7
7
  hover?: boolean;
8
8
  rowSize?: RowSize;
9
9
  onRowClick?: (row: Row<CellProps>) => void;
10
- } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef<CellProps>;
10
+ } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef;
11
11
  declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isFavorite, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, }: Props<CellProps>) => JSX.Element;
12
12
  export default CustomCell;
@@ -4,6 +4,6 @@ import { AccessorColumnDef, AdditionalColumnDef, CustomCellProps } from '../../.
4
4
  declare type CustomInputProps<CellProps> = {
5
5
  row: Row<CellProps>;
6
6
  hover?: boolean;
7
- } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef<CellProps>;
7
+ } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef;
8
8
  declare const CustomInput: <CellProps>({ hover, onChange, row, unitSymbol, content, }: CustomInputProps<CellProps>) => JSX.Element;
9
9
  export default CustomInput;
@@ -1,7 +1,6 @@
1
1
  import { CellProps } from '../types';
2
2
  export interface DataType {
3
3
  id: string;
4
- customCell?: CellProps;
5
4
  supplier: CellProps;
6
5
  description: CellProps;
7
6
  payment: CellProps;
@@ -37,7 +37,7 @@ export interface TableProps<T> {
37
37
  paginationNextText?: string;
38
38
  onPaginationChange?: (pagination: PaginationState) => void;
39
39
  renderEmptyState?: () => JSX.Element;
40
- onRowClick?: (row: Row<T>) => void;
40
+ onRowClick?: (row: Row<CellProps>) => void;
41
41
  }
42
42
  interface SettingsDropdownConfig {
43
43
  settingsTooltip?: TooltipProps;
@@ -85,28 +85,26 @@ export declare type ActionColumnDef<T> = {
85
85
  rowActions?: RowActions<T>;
86
86
  settingsDropdownConfig?: SettingsDropdownConfig;
87
87
  } & IdentifiedColumnDef<T, CellProps>;
88
- export declare type AdditionalColumnDef<T> = {
88
+ export declare type AdditionalColumnDef = {
89
89
  unitSymbol?: string;
90
90
  minWidth?: number;
91
91
  headerTooltip?: TooltipProps;
92
- customCell?: (row: Row<T>) => JSX.Element;
93
92
  };
94
93
  export declare type ColumnsType<T> = ({
95
94
  columnDefType: ColumnDefType.ACCESSOR;
96
- columnDef: AccessorColumnDef<T> & AdditionalColumnDef<T>;
95
+ columnDef: AccessorColumnDef<T> & AdditionalColumnDef;
97
96
  } & BaseColumnsType<T>) | ({
98
97
  columnDefType: ColumnDefType.DISPLAY;
99
- columnDef: DisplayColumnDef<T, unknown> & AdditionalColumnDef<T>;
98
+ columnDef: DisplayColumnDef<T, unknown> & AdditionalColumnDef;
100
99
  } & BaseColumnsType<T>) | ({
101
100
  columnDefType: ColumnDefType.ACTION;
102
- columnDef: ActionColumnDef<T> & AdditionalColumnDef<T>;
101
+ columnDef: ActionColumnDef<T> & AdditionalColumnDef;
103
102
  } & BaseColumnsType<T>) | ({
104
103
  columnDefType: ColumnDefType.GROUP;
105
104
  columnDef: GroupColumnDef<T, unknown>;
106
105
  } & BaseColumnsType<T>);
107
106
  interface BaseColumnsType<T> {
108
107
  key: keyof T | Lowercase<keyof typeof ActionType>;
109
- customCell?: () => JSX.Element;
110
108
  }
111
109
  interface CustomCellWithAvatar extends BasicCustomCell {
112
110
  avatar?: AvatarProps;
package/dist/index.esm.js CHANGED
@@ -52,5 +52,5 @@ is=ls,function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<argumen
52
52
  *
53
53
  * @license MIT
54
54
  */
55
- function TE(e,n){return"function"==typeof e?e(n):e}function _E(e,n){return t=>{n.setState((n=>({...n,[e]:TE(t,n[e])})))}}function NE(e){return e instanceof Function}function PE(e,n,t){let r,o=[];return()=>{let i;t.key&&t.debug&&(i=Date.now());const a=e();if(!(a.length!==o.length||a.some(((e,n)=>o[n]!==e))))return r;let l;if(o=a,t.key&&t.debug&&(l=Date.now()),r=n(...a),null==t||null==t.onChange||t.onChange(r),t.key&&t.debug&&null!=t&&t.debug()){const e=Math.round(100*(Date.now()-i))/100,n=Math.round(100*(Date.now()-l))/100,r=n/16,o=(e,n)=>{for(e=String(e);e.length<n;)e=" "+e;return e};console.info("%c⏱ "+o(n,5)+" /"+o(e,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*r,120))+"deg 100% 31%);",null==t?void 0:t.key)}return r}}function OE(e,n,t){var r;let o={id:null!=(r=t.id)?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],n=t=>{t.subHeaders&&t.subHeaders.length&&t.subHeaders.map(n),e.push(t)};return n(o),e},getContext:()=>({table:e,header:o,column:n})};return e._features.forEach((n=>{Object.assign(o,null==n.createHeader?void 0:n.createHeader(o,e))})),o}const ME={createTable:e=>({getHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((n,t,r,o)=>{var i,a;const l=null!=(i=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?a:[];return RE(n,[...l,...t.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((n,t,r,o)=>RE(n,t=t.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((n,t,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?o:[];return RE(n,i,e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((n,t,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?o:[];return RE(n,i,e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getFooterGroups:PE((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftFooterGroups:PE((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterFooterGroups:PE((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightFooterGroups:PE((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getFlatHeaders:PE((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftFlatHeaders:PE((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterFlatHeaders:PE((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightFlatHeaders:PE((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterLeafHeaders:PE((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftLeafHeaders:PE((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightLeafHeaders:PE((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeafHeaders:PE((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,n,t)=>{var r,o,i,a,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=n[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=t[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}})})};function RE(e,n,t,r){var o,i;let a=0;const l=function(e,n){void 0===n&&(n=1),a=Math.max(a,n),e.filter((e=>e.getIsVisible())).forEach((e=>{var t;null!=(t=e.columns)&&t.length&&l(e.columns,n+1)}),0)};l(e);let s=[];const d=(e,n)=>{const o={depth:n,id:[r,""+n].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const o=OE(t,l,{id:[r,n,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?""+i.filter((e=>e.column===l)).length:void 0,depth:n,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),n>0&&d(i,n-1)},c=n.map(((e,n)=>OE(t,e,{depth:a,index:n})));d(c,a-1),s.reverse();const u=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let n=0,t=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],u(e.subHeaders).forEach((e=>{let{colSpan:t,rowSpan:o}=e;n+=t,r.push(o)}))):n=1;return t+=Math.min(...r),e.colSpan=n,e.rowSpan=t,{colSpan:n,rowSpan:t}}));return u(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const IE={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},AE={getDefaultColumnDef:()=>IE,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:_E("columnSizing",e),onColumnSizingInfoChange:_E("columnSizingInfo",e)}),createColumn:(e,n)=>({getSize:()=>{var t,r,o;const i=n.getState().columnSizing[e.id];return Math.min(Math.max(null!=(t=e.columnDef.minSize)?t:IE.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:IE.size),null!=(o=e.columnDef.maxSize)?o:IE.maxSize)},getStart:t=>{const r=t?"left"===t?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns(),o=r.findIndex((n=>n.id===e.id));if(o>0){const e=r[o-1];return e.getStart(t)+e.getSize()}return 0},resetSize:()=>{n.setColumnSizing((n=>{let{[e.id]:t,...r}=n;return r}))},getCanResize:()=>{var t,r;return(null==(t=e.columnDef.enableResizing)||t)&&(null==(r=n.options.enableColumnResizing)||r)},getIsResizing:()=>n.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,n)=>({getSize:()=>{let n=0;const t=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(t):n+=null!=(r=e.column.getSize())?r:0};return t(e),n},getStart:()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},getResizeHandler:()=>{const t=n.getColumn(e.column.id),r=t.getCanResize();return o=>{if(!r)return;if(null==o.persist||o.persist(),LE(o)&&o.touches&&o.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[t.id,t.getSize()]],l=LE(o)?Math.round(o.touches[0].clientX):o.clientX,s=(e,t)=>{if("number"!=typeof t)return;let r={};n.setColumnSizingInfo((e=>{var n,o;const i=t-(null!=(n=null==e?void 0:e.startOffset)?n:0),a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[n,t]=e;r[n]=Math.round(100*Math.max(t+t*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==n.options.columnResizeMode&&"end"!==e||n.setColumnSizing((e=>({...e,...r})))},d={moveHandler:e=>{return n=e.clientX,s("move",n);var n},upHandler:e=>{var t;document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),t=e.clientX,s("end",t),n.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))}},c=!!function(){if("boolean"==typeof FE)return FE;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch(n){e=!1}return FE=e,FE}()&&{passive:!1};LE(o)||(document.addEventListener("mousemove",d.moveHandler,c),document.addEventListener("mouseup",d.upHandler,c)),n.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:t.id})))}}}),createTable:e=>({setColumnSizing:n=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(n),setColumnSizingInfo:n=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(n),resetColumnSizing:n=>{var t;e.setColumnSizing(n?{}:null!=(t=e.initialState.columnSizing)?t:{})},resetHeaderSizeInfo:n=>{var t;e.setColumnSizingInfo(n?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(t=e.initialState.columnSizingInfo)?t:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getLeftTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getLeftHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getCenterTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getCenterHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getRightTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getRightHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0}})};let FE=null;function LE(e){return"touchstart"===e.type}const zE={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:_E("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;return{_autoResetExpanded:()=>{var r,o;if(n){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue((()=>{e.resetExpanded(),t=!1}))}}else e._queue((()=>{n=!0}))},setExpanded:n=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{(null!=n?n:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var t,r;e.setExpanded(n?{}:null!=(t=null==(r=e.initialState)?void 0:r.expanded)?t:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some((e=>e.getCanExpand())),getToggleAllRowsExpandedHandler:()=>n=>{null==n.persist||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return!0===n||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return"boolean"==typeof n?!0===n:!!Object.keys(n).length&&!e.getRowModel().flatRows.some((e=>e.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const t=e.split(".");n=Math.max(n,t.length)})),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,n)=>({toggleExpanded:t=>{n.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(n.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,t=null!=(o=t)?o:!i,!i&&t)return{...a,[e.id]:!0};if(i&&!t){const{[e.id]:n,...t}=a;return t}return r}))},getIsExpanded:()=>{var t;const r=n.getState().expanded;return!!(null!=(t=null==n.options.getIsRowExpanded?void 0:n.options.getIsRowExpanded(e))?t:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var t,r,o;return null!=(t=null==n.options.getRowCanExpand?void 0:n.options.getRowCanExpand(e))?t:(null==(r=n.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},getToggleExpandedHandler:()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}})},HE=(e,n,t)=>{var r;const o=t.toLowerCase();return null==(r=e.getValue(n))?void 0:r.toLowerCase().includes(o)};HE.autoRemove=e=>XE(e);const jE=(e,n,t)=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)};jE.autoRemove=e=>XE(e);const BE=(e,n,t)=>{var r;return(null==(r=e.getValue(n))?void 0:r.toLowerCase())===t.toLowerCase()};BE.autoRemove=e=>XE(e);const UE=(e,n,t)=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)};UE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const YE=(e,n,t)=>!t.some((t=>{var r;return!(null!=(r=e.getValue(n))&&r.includes(t))}));YE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const VE=(e,n,t)=>t.some((t=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)}));VE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const WE=(e,n,t)=>e.getValue(n)===t;WE.autoRemove=e=>XE(e);const GE=(e,n,t)=>e.getValue(n)==t;GE.autoRemove=e=>XE(e);const KE=(e,n,t)=>{let[r,o]=t;const i=e.getValue(n);return i>=r&&i<=o};KE.resolveFilterValue=e=>{let[n,t]=e,r="number"!=typeof n?parseFloat(n):n,o="number"!=typeof t?parseFloat(t):t,i=null===n||Number.isNaN(r)?-1/0:r,a=null===t||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},KE.autoRemove=e=>XE(e)||XE(e[0])&&XE(e[1]);const qE={includesString:HE,includesStringSensitive:jE,equalsString:BE,arrIncludes:UE,arrIncludesAll:YE,arrIncludesSome:VE,equals:WE,weakEquals:GE,inNumberRange:KE};function XE(e){return null==e||""===e}const QE={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:_E("columnFilters",e),onGlobalFilterChange:_E("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t,r;const o=null==(t=e.getCoreRowModel().flatRows[0])||null==(r=t._getAllCellsByColumnId()[n.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,n)=>({getAutoFilterFn:()=>{const t=n.getCoreRowModel().flatRows[0],r=null==t?void 0:t.getValue(e.id);return"string"==typeof r?qE.includesString:"number"==typeof r?qE.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?qE.equals:Array.isArray(r)?qE.arrIncludes:qE.weakEquals},getFilterFn:()=>{var t,r;return NE(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(t=null==(r=n.options.filterFns)?void 0:r[e.columnDef.filterFn])?t:qE[e.columnDef.filterFn]},getCanFilter:()=>{var t,r,o;return(null==(t=e.columnDef.enableColumnFilter)||t)&&(null==(r=n.options.enableColumnFilters)||r)&&(null==(o=n.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var t,r,o,i;return(null==(t=e.columnDef.enableGlobalFilter)||t)&&(null==(r=n.options.enableGlobalFilter)||r)&&(null==(o=n.options.enableFilters)||o)&&(null==(i=null==n.options.getColumnCanGlobalFilter?void 0:n.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var t,r;return null==(t=n.getState().columnFilters)||null==(r=t.find((n=>n.id===e.id)))?void 0:r.value},getFilterIndex:()=>{var t,r;return null!=(t=null==(r=n.getState().columnFilters)?void 0:r.findIndex((n=>n.id===e.id)))?t:-1},setFilterValue:t=>{n.setColumnFilters((n=>{const r=e.getFilterFn(),o=null==n?void 0:n.find((n=>n.id===e.id)),i=TE(t,o?o.value:void 0);var a;if(ZE(r,i,e))return null!=(a=null==n?void 0:n.filter((n=>n.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return o?null!=(s=null==n?void 0:n.map((n=>n.id===e.id?l:n)))?s:[]:null!=n&&n.length?[...n,l]:[l]}))},_getFacetedRowModel:n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),_getFacetedUniqueValues:n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,n)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>qE.includesString,getGlobalFilterFn:()=>{var n,t;const{globalFilterFn:r}=e.options;return NE(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(n=null==(t=e.options.filterFns)?void 0:t[r])?n:qE[r]},setColumnFilters:n=>{const t=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=TE(n,e))?void 0:r.filter((e=>{const n=t.find((n=>n.id===e.id));if(n){if(ZE(n.getFilterFn(),e.value,n))return!1}return!0}))}))},setGlobalFilter:n=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(n)},resetGlobalFilter:n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)},resetColumnFilters:n=>{var t,r;e.setColumnFilters(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.columnFilters)?t:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function ZE(e,n,t){return!(!e||!e.autoRemove)&&e.autoRemove(n,t)||void 0===n||"string"==typeof n&&!n}const JE={sum:(e,n,t)=>t.reduce(((n,t)=>{const r=t.getValue(e);return n+("number"==typeof r?r:0)}),0),min:(e,n,t)=>{let r;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(r>t||void 0===r&&t>=t)&&(r=t)})),r},max:(e,n,t)=>{let r;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(r<t||void 0===r&&t>=t)&&(r=t)})),r},extent:(e,n,t)=>{let r,o;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(void 0===r?t>=t&&(r=o=t):(r>t&&(r=t),o<t&&(o=t)))})),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach((n=>{let o=n.getValue(e);null!=o&&(o=+o)>=o&&(++t,r+=o)})),t)return r/t},median:(e,n)=>{if(!n.length)return;let t=0,r=0;return n.forEach((n=>{let o=n.getValue(e);"number"==typeof o&&(t=Math.min(t,o),r=Math.max(r,o))})),(t+r)/2},unique:(e,n)=>Array.from(new Set(n.map((n=>n.getValue(e)))).values()),uniqueCount:(e,n)=>new Set(n.map((n=>n.getValue(e)))).size,count:(e,n)=>n.length},eS={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return null!=(n=null==(t=e.getValue())||null==t.toString?void 0:t.toString())?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:_E("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>({toggleGrouping:()=>{n.setGrouping((n=>null!=n&&n.includes(e.id)?n.filter((n=>n!==e.id)):[...null!=n?n:[],e.id]))},getCanGroup:()=>{var t,r,o,i;return null!=(t=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:n.options.enableGrouping)||r)?t:!!e.accessorFn},getIsGrouped:()=>{var t;return null==(t=n.getState().grouping)?void 0:t.includes(e.id)},getGroupedIndex:()=>{var t;return null==(t=n.getState().grouping)?void 0:t.indexOf(e.id)},getToggleGroupingHandler:()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const t=n.getCoreRowModel().flatRows[0],r=null==t?void 0:t.getValue(e.id);return"number"==typeof r?JE.sum:"[object Date]"===Object.prototype.toString.call(r)?JE.extent:void 0},getAggregationFn:()=>{var t,r;if(!e)throw new Error;return NE(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(t=null==(r=n.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?t:JE[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:n=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(n),resetGrouping:n=>{var t,r;e.setGrouping(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.grouping)?t:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,n,t,r)=>({getIsGrouped:()=>n.getIsGrouped()&&n.id===t.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&n.getIsGrouped(),getIsAggregated:()=>{var n;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(n=t.subRows)||!n.length)}})};const nS={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:_E("columnOrder",e)}),createTable:e=>({setColumnOrder:n=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(n),resetColumnOrder:n=>{var t;e.setColumnOrder(n?[]:null!=(t=e.initialState.columnOrder)?t:[])},_getOrderColumnsFn:PE((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,n,t)=>r=>{let o=[];if(null!=e&&e.length){const n=[...e],t=[...r];for(;t.length&&n.length;){const e=n.shift(),r=t.findIndex((n=>n.id===e));r>-1&&o.push(t.splice(r,1)[0])}o=[...o,...t]}else o=r;return function(e,n,t){if(null==n||!n.length||!t)return e;const r=e.filter((e=>!n.includes(e.id)));if("remove"===t)return r;const o=n.map((n=>e.find((e=>e.id===n)))).filter(Boolean);return[...o,...r]}(o,n,t)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})})},tS={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:_E("columnPinning",e)}),createColumn:(e,n)=>({pin:t=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);n.setColumnPinning((e=>{var n,o,i,a,l,s;return"right"===t?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===t?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(n=null==e?void 0:e.left)?n:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var t,r;return(null==(t=e.columnDef.enablePinning)||t)&&(null==(r=n.options.enablePinning)||r)})),getIsPinned:()=>{const t=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=n.getState().columnPinning,i=t.some((e=>null==r?void 0:r.includes(e))),a=t.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var t,r,o;const i=e.getIsPinned();return i?null!=(t=null==(r=n.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?t:-1:0}}),createRow:(e,n)=>({getCenterVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right]),((e,n,t)=>{const r=[...null!=n?n:[],...null!=t?t:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:"production"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getLeftVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,,]),((e,n)=>{const t=(null!=n?n:[]).map((n=>e.find((e=>e.column.id===n)))).filter(Boolean).map((e=>({...e,position:"left"})));return t}),{key:"production"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getRightVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.right]),((e,n)=>{const t=(null!=n?n:[]).map((n=>e.find((e=>e.column.id===n)))).filter(Boolean).map((e=>({...e,position:"right"})));return t}),{key:"production"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}})}),createTable:e=>({setColumnPinning:n=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(n),resetColumnPinning:n=>{var t,r;return e.setColumnPinning(n?{left:[],right:[]}:null!=(t=null==(r=e.initialState)?void 0:r.columnPinning)?t:{left:[],right:[]})},getIsSomeColumnsPinned:n=>{var t;const r=e.getState().columnPinning;var o,i;return n?Boolean(null==(t=r[n])?void 0:t.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},getLeftLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,n)=>(null!=n?n:[]).map((n=>e.find((e=>e.id===n)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getRightLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,n)=>(null!=n?n:[]).map((n=>e.find((e=>e.id===n)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getCenterLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,n,t)=>{const r=[...null!=n?n:[],...null!=t?t:[]];return e.filter((e=>!r.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}})})},rS={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:_E("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:n=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(n),resetRowSelection:n=>{var t;return e.setRowSelection(n?{}:null!=(t=e.initialState.rowSelection)?t:{})},toggleAllRowsSelected:n=>{e.setRowSelection((t=>{n=void 0!==n?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},toggleAllPageRowsSelected:n=>e.setRowSelection((t=>{const r=void 0!==n?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach((n=>{oS(o,n.id,r,e)})),o})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getFilteredSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getGroupedSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getIsAllRowsSelected:()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=Boolean(n.length&&Object.keys(t).length);return r&&n.some((e=>e.getCanSelect()&&!t[e.id]))&&(r=!1),r},getIsAllPageRowsSelected:()=>{const n=e.getPaginationRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some((e=>!t[e.id]))&&(r=!1),r},getIsSomeRowsSelected:()=>{var n;const t=Object.keys(null!=(n=e.getState().rowSelection)?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const n=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&n.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>n=>{e.toggleAllRowsSelected(n.target.checked)},getToggleAllPageRowsSelectedHandler:()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}}),createRow:(e,n)=>({toggleSelected:t=>{const r=e.getIsSelected();n.setRowSelection((o=>{if(r===(t=void 0!==t?t:!r))return o;const i={...o};return oS(i,e.id,t,n),i}))},getIsSelected:()=>{const{rowSelection:t}=n.getState();return aS(e,t)},getIsSomeSelected:()=>{const{rowSelection:t}=n.getState();return"some"===lS(e,t)},getIsAllSubRowsSelected:()=>{const{rowSelection:t}=n.getState();return"all"===lS(e,t)},getCanSelect:()=>{var t;return"function"==typeof n.options.enableRowSelection?n.options.enableRowSelection(e):null==(t=n.options.enableRowSelection)||t},getCanSelectSubRows:()=>{var t;return"function"==typeof n.options.enableSubRowSelection?n.options.enableSubRowSelection(e):null==(t=n.options.enableSubRowSelection)||t},getCanMultiSelect:()=>{var t;return"function"==typeof n.options.enableMultiRowSelection?n.options.enableMultiRowSelection(e):null==(t=n.options.enableMultiRowSelection)||t},getToggleSelectedHandler:()=>{const n=e.getCanSelect();return t=>{var r;n&&e.toggleSelected(null==(r=t.target)?void 0:r.checked)}}})},oS=(e,n,t,r)=>{var o;const i=r.getRow(n);t?(i.getCanMultiSelect()||Object.keys(e).forEach((n=>delete e[n])),i.getCanSelect()&&(e[n]=!0)):delete e[n],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach((n=>oS(e,n.id,t,r)))};function iS(e,n){const t=e.getState().rowSelection,r=[],o={},i=function(e,n){return e.map((e=>{var n;const a=aS(e,t);if(a&&(r.push(e),o[e.id]=e),null!=(n=e.subRows)&&n.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(n.rows),flatRows:r,rowsById:o}}function aS(e,n){var t;return null!=(t=n[e.id])&&t}function lS(e,n,t){if(e.subRows&&e.subRows.length){let t=!0,r=!1;return e.subRows.forEach((e=>{r&&!t||(aS(e,n)?r=!0:t=!1)})),t?"all":!!r&&"some"}return!1}const sS=/([0-9]+)/gm;function dS(e,n){return e===n?0:e>n?1:-1}function cS(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function uS(e,n){const t=e.split(sS).filter(Boolean),r=n.split(sS).filter(Boolean);for(;t.length&&r.length;){const e=t.shift(),n=r.shift(),o=parseInt(e,10),i=parseInt(n,10),a=[o,i].sort();if(isNaN(a[0])){if(e>n)return 1;if(n>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return t.length-r.length}const pS={alphanumeric:(e,n,t)=>uS(cS(e.getValue(t)).toLowerCase(),cS(n.getValue(t)).toLowerCase()),alphanumericCaseSensitive:(e,n,t)=>uS(cS(e.getValue(t)),cS(n.getValue(t))),text:(e,n,t)=>dS(cS(e.getValue(t)).toLowerCase(),cS(n.getValue(t)).toLowerCase()),textCaseSensitive:(e,n,t)=>dS(cS(e.getValue(t)),cS(n.getValue(t))),datetime:(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},basic:(e,n,t)=>dS(e.getValue(t),n.getValue(t))},fS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:_E("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,n)=>({getAutoSortingFn:()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const n of t){const t=null==n?void 0:n.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(t))return pS.datetime;if("string"==typeof t&&(r=!0,t.split(sS).length>1))return pS.alphanumeric}return r?pS.text:pS.basic},getAutoSortDir:()=>{const t=n.getFilteredRowModel().flatRows[0];return"string"==typeof(null==t?void 0:t.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var t,r;if(!e)throw new Error;return NE(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(t=null==(r=n.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?t:pS[e.columnDef.sortingFn]},toggleSorting:(t,r)=>{const o=e.getNextSortingOrder(),i=null!=t;n.setSorting((a=>{const l=null==a?void 0:a.find((n=>n.id===e.id)),s=null==a?void 0:a.findIndex((n=>n.id===e.id));let d,c=[],u=i?t:"desc"===o;var p;(d=null!=a&&a.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===d&&(i||o||(d="remove")),"add"===d)?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(null!=(p=n.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):c="toggle"===d?a.map((n=>n.id===e.id?{...n,desc:u}:n)):"remove"===d?a.filter((n=>n.id!==e.id)):[{id:e.id,desc:u}];return c}))},getFirstSortDir:()=>{var t,r;return(null!=(t=null!=(r=e.columnDef.sortDescFirst)?r:n.options.sortDescFirst)?t:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:t=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=n.options.enableSortingRemoval)&&!r||t&&null!=(o=n.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var t,r;return(null==(t=e.columnDef.enableSorting)||t)&&(null==(r=n.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var t,r;return null!=(t=null!=(r=e.columnDef.enableMultiSort)?r:n.options.enableMultiSort)?t:!!e.accessorFn},getIsSorted:()=>{var t;const r=null==(t=n.getState().sorting)?void 0:t.find((n=>n.id===e.id));return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var t,r;return null!=(t=null==(r=n.getState().sorting)?void 0:r.findIndex((n=>n.id===e.id)))?t:-1},clearSorting:()=>{n.setSorting((n=>null!=n&&n.length?n.filter((n=>n.id!==e.id)):[]))},getToggleSortingHandler:()=>{const t=e.getCanSort();return r=>{t&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==n.options.isMultiSortEvent?void 0:n.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:n=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(n),resetSorting:n=>{var t,r;e.setSorting(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.sorting)?t:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},mS={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:_E("columnVisibility",e)}),createColumn:(e,n)=>({toggleVisibility:t=>{e.getCanHide()&&n.setColumnVisibility((n=>({...n,[e.id]:null!=t?t:!e.getIsVisible()})))},getIsVisible:()=>{var t,r;return null==(t=null==(r=n.getState().columnVisibility)?void 0:r[e.id])||t},getCanHide:()=>{var t,r;return(null==(t=e.columnDef.enableHiding)||t)&&(null==(r=n.options.enableHiding)||r)},getToggleVisibilityHandler:()=>n=>{null==e.toggleVisibility||e.toggleVisibility(n.target.checked)}}),createRow:(e,n)=>({_getAllVisibleCells:PE((()=>[e.getAllCells(),n.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getVisibleCells:PE((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,n,t)=>[...e,...n,...t]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}})}),createTable:e=>{const n=(n,t)=>PE((()=>[t(),t().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:n,debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}});return{getVisibleFlatColumns:n("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:n("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:n("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:n("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:n("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:n=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(n),resetColumnVisibility:n=>{var t;e.setColumnVisibility(n?{}:null!=(t=e.initialState.columnVisibility)?t:{})},toggleAllColumnsVisible:n=>{var t;n=null!=(t=n)?t:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,t)=>({...e,[t.id]:n||!(null!=t.getCanHide&&t.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>n=>{var t;e.toggleAllColumnsVisible(null==(t=n.target)?void 0:t.checked)}}}},gS=[ME,mS,nS,tS,QE,fS,eS,zE,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:_E("pagination",e)}),createTable:e=>{let n=!1,t=!1;return{_autoResetPageIndex:()=>{var r,o;if(n){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(t)return;t=!0,e._queue((()=>{e.resetPageIndex(),t=!1}))}}else e._queue((()=>{n=!0}))},setPagination:n=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>TE(n,e))),resetPagination:n=>{var t;e.setPagination(n?{pageIndex:0,pageSize:10}:null!=(t=e.initialState.pagination)?t:{pageIndex:0,pageSize:10})},setPageIndex:n=>{e.setPagination((t=>{let r=TE(n,t.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.min(Math.max(0,r),o),{...t,pageIndex:r}}))},resetPageIndex:n=>{var t,r,o;e.setPageIndex(n?0:null!=(t=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?t:0)},resetPageSize:n=>{var t,r,o;e.setPageSize(n?10:null!=(t=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?t:10)},setPageSize:n=>{e.setPagination((e=>{const t=Math.max(1,TE(n,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/t);return{...e,pageIndex:o,pageSize:t}}))},setPageCount:n=>e.setPagination((t=>{var r;let o=TE(n,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...t,pageCount:o}})),getPageOptions:PE((()=>[e.getPageCount()]),(e=>{let n=[];return e&&e>0&&(n=[...new Array(e)].fill(null).map(((e,n)=>n))),n}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,t=e.getPageCount();return-1===t||0!==t&&n<t-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return null!=(n=e.options.pageCount)?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},rS,AE];function hS(e){var n;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let t={_features:gS};const r=t._features.reduce(((e,n)=>Object.assign(e,null==n.getDefaultOptions?void 0:n.getDefaultOptions(t))),{});let o={...null!=(n=e.initialState)?n:{}};t._features.forEach((e=>{var n;o=null!=(n=null==e.getInitialState?void 0:e.getInitialState(o))?n:o}));const i=[];let a=!1;const l={_features:gS,options:{...r,...e},initialState:o,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{t.setState(t.initialState)},setOptions:e=>{const n=TE(e,t.options);t.options=(e=>t.options.mergeOptions?t.options.mergeOptions(r,e):{...r,...e})(n)},getState:()=>t.options.state,setState:e=>{null==t.options.onStateChange||t.options.onStateChange(e)},_getRowId:(e,n,r)=>{var o;return null!=(o=null==t.options.getRowId?void 0:t.options.getRowId(e,n,r))?o:""+(r?[r.id,n].join("."):n)},getCoreRowModel:()=>(t._getCoreRowModel||(t._getCoreRowModel=t.options.getCoreRowModel(t)),t._getCoreRowModel()),getRowModel:()=>t.getPaginationRowModel(),getRow:e=>{const n=t.getRowModel().rowsById[e];if(!n){if("production"!==process.env.NODE_ENV)throw new Error("getRow expected an ID, but got "+e);throw new Error}return n},_getDefaultColumnDef:PE((()=>[t.options.defaultColumn]),(e=>{var n;return e=null!=(n=e)?n:{},{header:e=>{const n=e.header.column.columnDef;return n.accessorKey?n.accessorKey:n.accessorFn?n.id:null},cell:e=>{var n,t;return null!=(n=null==(t=e.renderValue())||null==t.toString?void 0:t.toString())?n:null},...t._features.reduce(((e,n)=>Object.assign(e,null==n.getDefaultColumnDef?void 0:n.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>t.options.columns,getAllColumns:PE((()=>[t._getColumnDefs()]),(e=>{const n=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,n,t,r){var o,i;const a={...e._getDefaultColumnDef(),...n},l=a.accessorKey;let s,d=null!=(o=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let n=e;for(const e of l.split("."))n=n[e];return n}:e=>e[a.accessorKey]),!d){if("production"!==process.env.NODE_ENV)throw new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let c={id:""+String(d),accessorFn:s,parent:r,depth:t,columnDef:a,columns:[],getFlatColumns:PE((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getLeafColumns:PE((()=>[e._getOrderColumnsFn()]),(e=>{var n;if(null!=(n=c.columns)&&n.length){let n=c.columns.flatMap((e=>e.getLeafColumns()));return e(n)}return[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}})};return c=e._features.reduce(((n,t)=>Object.assign(n,null==t.createColumn?void 0:t.createColumn(c,e))),c),c}(t,e,o,r),a=e;return i.columns=a.columns?n(a.columns,i,o+1):[],i}))};return n(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getAllFlatColumns:PE((()=>[t.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),_getAllFlatColumnsById:PE((()=>[t.getAllFlatColumns()]),(e=>e.reduce(((e,n)=>(e[n.id]=n,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getAllLeafColumns:PE((()=>[t.getAllColumns(),t._getOrderColumnsFn()]),((e,n)=>n(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getColumn:e=>{const n=t._getAllFlatColumnsById()[e];if(!n)throw"production"!==process.env.NODE_ENV&&console.warn("[Table] Column with id "+e+" does not exist."),new Error;return n}};return Object.assign(t,l),t._features.forEach((e=>Object.assign(t,null==e.createTable?void 0:e.createTable(t)))),t}const vS=(e,n,t,r,o,i)=>{let a={id:n,index:r,original:t,depth:o,_valuesCache:{},getValue:n=>{if(a._valuesCache.hasOwnProperty(n))return a._valuesCache[n];const t=e.getColumn(n);return t.accessorFn?(a._valuesCache[n]=t.accessorFn(a.original,r),a._valuesCache[n]):void 0},renderValue:n=>{var t;return null!=(t=a.getValue(n))?t:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,n){const t=[],r=e=>{e.forEach((e=>{t.push(e);const o=n(e);null!=o&&o.length&&r(o)}))};return r(e),t}(a.subRows,(e=>e.subRows)),getAllCells:PE((()=>[e.getAllLeafColumns()]),(n=>n.map((n=>function(e,n,t,r){const o={id:n.id+"_"+t.id,row:n,column:t,getValue:()=>n.getValue(r),renderValue:()=>{var n;return null!=(n=o.getValue())?n:e.options.renderFallbackValue},getContext:PE((()=>[e,t,n,o]),((e,n,t,r)=>({table:e,column:n,row:t,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((r=>{Object.assign(o,null==r.createCell?void 0:r.createCell(o,t,n,e))}),{}),o}(e,a,n,n.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugRows}}),_getAllCellsByColumnId:PE((()=>[a.getAllCells()]),(e=>e.reduce(((e,n)=>(e[n.column.id]=n,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugRows}})};for(let n=0;n<e._features.length;n++){const t=e._features[n];Object.assign(a,null==t||null==t.createRow?void 0:t.createRow(a,e))}return a};function yS(e,n){return e?function(e){return"function"==typeof e&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}(t=e)||"function"==typeof t||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(t)?r.createElement(e,n):e:null;var t}var bS,wS,xS;!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=42]="SMALL",e[e.LARGE=56]="LARGE"}(bS||(bS={})),function(e){e.ACCESSOR="accessor",e.DISPLAY="display",e.GROUP="group",e.ACTION="action"}(wS||(wS={})),function(e){e.CHECKBOX="checkbox",e.TOGGLE="toggle",e.FAVORITE="favorite",e.ROW_ACTIONS="row_actions",e.SETTINGS="settings"}(xS||(xS={}));var $S,CS,kS,ES,SS,DS,TS,_S,NS,PS,OS,MS,RS,IS,AS,FS,LS,zS,HS,jS,BS,US,YS,VS,WS,GS,KS,qS,XS,QS,ZS,JS,eD,nD,tD,rD,oD,iD,aD,lD,sD=b({}),dD=function(e){var n=e.children,t=e.defaultRowSize,r=o.useState(t||bS.UNSPECIFIED),i={rowSize:r[0],setRowSize:r[1]};return o.createElement(sD.Provider,{value:i},n)},cD=x(ca)($S||($S=Xe(["\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n color: ",";\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.checked,t=e.theme;return n?t.palette.blue[900]:t.palette.grey[300]}),(function(e){return e.theme.palette.blue[900]})),uD=function(e){var n=e.checked,t=void 0!==n&&n,r=e.onChange;return o.createElement(cD,{icon:{icon:B,size:"sm"},checked:t,onClick:function(){return null==r?void 0:r(t)}})},pD=x.div(CS||(CS=Xe(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),fD=x.span(kS||(kS=Xe(["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"])),(function(e){return e.disabled?.3:1}),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.disabled?"not-allowed":"pointer"}),12,12,2,(function(e){return e.theme.palette.white[100]})),mD=x.input(ES||(ES=Xe(["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"],["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"])),fD,(function(e){var n=e.theme.palette;return e.disabled?n.grey[300]:n.blue[500]}),12,12),gD=function(e){var n=e.checked,t=void 0!==n&&n,r=e.disabled,i=void 0!==r&&r,a=e.onChange;return o.createElement(pD,null,o.createElement(mD,{type:"checkbox",checked:t,disabled:i,onChange:function(){return null==a?void 0:a(t)}}),o.createElement(fD,{disabled:i}))},hD=function(e){var n=e.theme,t=e.isHeader,r=e.isPopoverActive,o=e.isPinned,i=t?n.palette.grey[50]:n.palette.white[100];return{position:o?"sticky":void 0,backgroundColor:o?i:void 0,left:"left"===o?"0px":void 0,right:"right"===o?"0px":void 0,boxShadow:o?"-5px 0 5px -5px rgba(51, 51, 51, 0.15)":void 0,zIndex:r?2:1}},vD=x.div(SS||(SS=Xe(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),yD=x(da)(DS||(DS=Xe(["\n color: ",";\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"],["\n color: ",";\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[500]})),bD=x(ca)(TS||(TS=Xe(["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"],["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[100]}),(function(e){return e.theme.palette.blue[700]}),(function(e){return e.theme.palette.blue[200]})),wD=function(e){var n=e.dropdown,r=e.row,a=e.onOpen,s=l((function(){return o.createElement(bD,{icon:{icon:t,fixedWidth:!0}})}),[]),d=i((function(){return n.map((function(e){var n=e.onClick,t=Ve(e,["onClick"]);return Ye({onClick:function(){return n(r)}},t)}))}),[n,r]);return o.createElement(za,{placement:"right-start",renderTrigger:s,content:d,onOpen:a})},xD=function(e){var n,t,r=e.actionType,i=e.row,a=e.isFavorite,l=e.isToggled,s=e.onActionChange,d=e.rowActions,u=e.column,p=C(),f=c(!1),m=f[0],g=f[1],h=null===(n=null==d?void 0:d.dropdown)||void 0===n?void 0:n.tooltip,v=null===(t=null==d?void 0:d.dropdown)||void 0===t?void 0:t.items;switch(r){case xS.CHECKBOX:return o.createElement("td",{style:{width:32}},o.createElement(vD,{style:{paddingLeft:8}},o.createElement(el,{value:i.getIsSelected(),onChange:function(){return i.toggleSelected()}})));case xS.FAVORITE:return o.createElement("td",{style:{width:32}},o.createElement(vD,null,o.createElement(uD,{checked:a,onChange:function(){return null==s?void 0:s(i.id)}})));case xS.TOGGLE:return o.createElement("td",{style:{width:32}},o.createElement(vD,null,o.createElement(gD,{checked:l,onChange:function(){return null==s?void 0:s(i.id)}})));case xS.ROW_ACTIONS:return o.createElement("td",{style:Ye({width:32},hD({isHeader:!1,isPopoverActive:m,theme:p,isPinned:u.getIsPinned()}))},o.createElement(vD,null,(null==d?void 0:d.primary)&&(null==d?void 0:d.primary.map((function(e,n){var t;return o.createElement(dm,Ye({key:n},null!==(t=e.tooltip)&&void 0!==t?t:sm,{showAfterSeconds:.5}),o.createElement($D,{primary:e,row:i}))}))),o.createElement(dm,Ye({},null!=h?h:sm,{showAfterSeconds:.5}),v&&o.createElement(wD,{dropdown:v,row:i,onOpen:function(e){g(e)}}))));default:return o.createElement(o.Fragment,null)}},$D=function(e){var n=e.primary,t=e.row,r=n.text,i=n.icon,a=n.onClick;return o.createElement(o.Fragment,null,r&&o.createElement(yD,{type:"text",text:r,onClick:function(){return a(t)}}),i&&o.createElement(bD,{icon:i,onClick:function(){return a(t)}}))},CD=x.td(NS||(NS=Xe(["\n cursor: ",";\n ",";\n"],["\n cursor: ",";\n ",";\n"])),(function(e){return e.cellHasOnClick?"pointer":"inherit"}),(function(e){var n=e.minWidth;return n&&$(_S||(_S=Xe(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),n)})),kD=x.div(PS||(PS=Xe(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: 0;\n padding-inline: 8px;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: 0;\n padding-inline: 8px;\n"]))),ED=x.div(OS||(OS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"]))),SD=x.div(MS||(MS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"]))),DD=x.div(RS||(RS=Xe(["\n font-size: 14px;\n line-height: 17px;\n width: 100%;\n text-align: ",";\n"],["\n font-size: 14px;\n line-height: 17px;\n width: 100%;\n text-align: ",";\n"])),(function(e){return e.hasMeasureUnit?"right":"left"})),TD=x.div(FS||(FS=Xe(["\n ","\n ","\n font-weight: ",";\n color: ",";\n"],["\n ","\n ","\n font-weight: ",";\n color: ",";\n"])),(function(e){return e.hasMeasureUnit&&$(IS||(IS=Xe(["\n text-align: right;\n "],["\n text-align: right;\n "])))}),(function(e){return e.truncate&&$(AS||(AS=Xe(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n "],["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n "])))}),(function(e){return e.headline?500:400}),(function(e){var n=e.theme;return e.headline?n.palette.black[100]:n.palette.black[80]})),_D=x.div(LS||(LS=Xe(["\n font-weight: ",";\n color: ",";\n font-size: 14px;\n margin-left: 4px;\n"],["\n font-weight: ",";\n color: ",";\n font-size: 14px;\n margin-left: 4px;\n"])),(function(e){return e.headline?500:400}),(function(e){var n=e.theme;return e.headline?n.palette.black[100]:n.palette.black[80]})),ND=x.div(zS||(zS=Xe(["\n margin-left: 8px;\n display: flex;\n"],["\n margin-left: 8px;\n display: flex;\n"]))),PD=x.div(HS||(HS=Xe(["\n input {\n width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n text-align: ",";\n min-width: 80px;\n }\n"],["\n input {\n width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n text-align: ",";\n min-width: 80px;\n }\n"])),(function(e){return e.hasMeasureUnit?"right":"left"})),OD=x.div(jS||(jS=Xe(["\n display: inline-flex;\n"],["\n display: inline-flex;\n"]))),MD=x.div(BS||(BS=Xe(["\n position: relative;\n"],["\n position: relative;\n"]))),RD=x.div(US||(US=Xe(["\n position: absolute;\n z-index: 1;\n top: -16px;\n width: 100%;\n textarea {\n width: 100%;\n min-width: 80px;\n }\n"],["\n position: absolute;\n z-index: 1;\n top: -16px;\n width: 100%;\n textarea {\n width: 100%;\n min-width: 80px;\n }\n"]))),ID=x.div(YS||(YS=Xe(["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"],["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"]))),AD=x(on)(VS||(VS=Xe(["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"])),(function(e){var n=e.theme;return e.confirm?n.palette.green[900]:n.palette.red[900]})),FD=function(e){var n=e.onChange,t=e.row,r=e.content,i=e.onBlur,a=c(null==r?void 0:r.toString()),s=a[0],d=a[1],u=Le(l((function(e){e&&(null==n||n(s||"",t)),i()}),[n,t,s,i]),200);return o.createElement(RD,null,o.createElement(ID,null,o.createElement(AD,{icon:_,onClick:function(){return u(!0)},confirm:!0}),o.createElement(AD,{icon:T})),o.createElement(Yh,{value:s,onChange:function(e){return d(e.target.value)},autoFocus:!0,initialHeight:"100px",onBlur:function(){return u()},onFocus:function(e){var n=e.target.value;e.target.value="",e.target.value=n}}))},LD=function(e){var n=e.hover,t=e.onChange,r=e.row,i=e.unitSymbol,a=e.content,l=c(!1),s=l[0],d=l[1];return o.createElement(MD,null,s?o.createElement(FD,{row:r,onChange:t,onBlur:function(){return d(!1)},content:a}):o.createElement(PD,{hasMeasureUnit:!!i},o.createElement(fm,{value:null==a?void 0:a.toString(),isTransparent:!n,actionIcon:Ye({icon:U},n?{}:{visibility:"hidden"}),onFocus:function(){return d(!0)}})))},zD=function(e){var n=e.content,t=e.isEditable,r=e.tag,i=e.unitSymbol,a=e.headline,s=e.leadingIcon,d=e.avatar,c=e.actionType,u=e.row,p=e.rowSize,f=e.onActionChange,m=e.isFavorite,g=e.isToggled,h=e.hover,v=e.onChange,y=e.trailingMicroTag,b=e.minWidth,w=e.rowActions,x=e.context,$=e.onRowClick,C=x.column,k=!t&&"function"==typeof $,E=l((function(e){return k&&$(e)}),[k,$]);return c?o.createElement(xD,{row:u,actionType:c,isFavorite:m,isToggled:g,onActionChange:f,rowActions:w,column:C}):o.createElement(CD,{minWidth:b,onClick:function(){return E(u)},cellHasOnClick:k},o.createElement(kD,null,s&&o.createElement(ED,null,o.createElement(on,Ye({},s))),d&&o.createElement(SD,null,o.createElement(Xi,Ye({},d))),o.createElement(DD,{hasMeasureUnit:!!i},t?o.createElement(LD,{hover:h,onChange:v,row:u,unitSymbol:i,content:n}):o.createElement(o.Fragment,null,n?o.createElement(OD,null,o.createElement(TD,{truncate:!!p,headline:a},n),i&&o.createElement(_D,{headline:a},i)):r&&o.createElement($C,Ye({},r)))),y&&o.createElement(ND,null,o.createElement(_v,{type:y.type,text:y.text}))))},HD=function(e){var n=e.isActionCell,t=e.minWidth,r=n?32:null!=t?t:80;return o.createElement("td",null,o.createElement(BD,null,o.createElement(jD,{speed:2,height:26,viewBox:"0 0 "+r+" 36",animate:!0},o.createElement("rect",{x:"0",y:"0",rx:"5",height:"36",width:r}))))},jD=x(Zx)(WS||(WS=Xe(["\n width: auto;\n align-items: center;\n"],["\n width: auto;\n align-items: center;\n"]))),BD=x.div(GS||(GS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),UD=function(e){var n=e.cell,t=e.row,r=e.hover,i=e.rowSize,a=e.isLoading,l=e.onRowClick,s=function(e,n){var t,r=e.getValue(),o=!("string"==typeof r||"number"==typeof r),i=e.column.columnDef,a=i.actionType&&ze(i.toggles,(function(e){return e===n.id})),l=i.actionType&&ze(i.favorites,(function(e){return e===n.id})),s=i.rowActions,d=e.column.columnDef.unitSymbol;return{isEditable:!!e.column.columnDef.isEditable,isToggled:!!a,isFavorite:!!l,actionType:i.actionType,onActionChange:i.onActionChange,content:o?null===(t=r)||void 0===t?void 0:t.content:r,unitSymbol:o&&r&&r.unitSymbol||d,values:r,minWidth:e.column.columnDef.minWidth,rowActions:s}}(n,t),d=s.values,c=Ve(s,["values"]);if(a)return o.createElement(HD,{isActionCell:!!c.actionType,minWidth:c.minWidth});var u=n.column.columnDef.customCell;return u?o.createElement("td",null,yS(u(t),n.getContext())):o.createElement(zD,Ye({context:n.getContext(),key:n.id,row:t,hover:r,rowSize:i,onRowClick:l},d,c,{onChange:n.column.columnDef.onChange}))},YD=x.tr(XS||(XS=Xe(["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"],["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"])),(function(e){var n=e.mouseHover,t=e.theme;return n?"0px 3px 6px rgba(51, 51, 51, 0.15), 0px 2px 4px rgba(51, 51, 51, 0.12)":"0px 1px "+t.palette.grey[100]}),(function(e){var n=e.size;return n&&$(KS||(KS=Xe(["\n height: ","px;\n "],["\n height: ","px;\n "])),n)}),(function(e){var n=e.selected,t=e.theme;return n&&$(qS||(qS=Xe(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),t.palette.blue[50])})),VD=function(e){var n=e.row,t=e.isLoading,r=e.onRowClick,i=w(sD).rowSize,a=c(),l=a[0],s=a[1];return o.createElement(YD,{mouseHover:l,onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)},size:i,selected:n.getIsSelected()},n.getVisibleCells().map((function(e,a){return o.createElement(UD,{key:a,cell:e,row:n,hover:l,rowSize:i,isLoading:t,onRowClick:r})})))},WD=function(e){var n=e.rows,t=e.rowSize,r=e.isLoading,i=e.onRowClick;return o.createElement("tbody",null,n.map((function(e){return o.createElement(VD,{key:e.id,row:e,rowSize:t,isLoading:r,onRowClick:i})})))},GD=x.div(QS||(QS=Xe(["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n margin-bottom: 16px;\n position: relative;\n"],["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n margin-bottom: 16px;\n position: relative;\n"])),(function(e){var n=e.shown,t=e.allSelectedShown;return n?t?94:48:0}),(function(e){return e.shown?"unset":"hidden"})),KD=x.div(ZS||(ZS=Xe(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: end;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: end;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"])),(function(e){return e.theme.palette.black[80]})),qD=x.div(JS||(JS=Xe(["\n //non è in palette\n background-color: ",";\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"],["\n //non è in palette\n background-color: ",";\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"])),(function(e){return e.shown?"#e8f7fe":"transparent"}),(function(e){return e.theme.palette.black[80]})),XD=x.div(eD||(eD=Xe(["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"],["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"]))),QD=x.span(nD||(nD=Xe(["\n position: absolute;\n left: 16px;\n"],["\n position: absolute;\n left: 16px;\n"]))),ZD=function(e){var n=e.selectedRowData,r=e.bulkBarActions,a=e.allSelectedCTA,u=n.length,p=s(null),f=s(null),m=c(),g=m[0],h=m[1],v=c(),b=v[0],w=v[1],x=c(!1),$=x[0],C=x[1];y((function(){var e,n,t,r;h(null===(n=null===(e=null==p?void 0:p.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),w(null===(r=null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===r?void 0:r.width)}),[]),d((function(){var e=Le((function(){var e,n;h(null===(n=null===(e=null==p?void 0:p.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),w((function(e){var n,t,r,o,i,a;return(null===(t=null===(n=null==f?void 0:f.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.width)&&(null===(o=null===(r=null==f?void 0:f.current)||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.width)>(e||0)?null===(a=null===(i=null==f?void 0:f.current)||void 0===i?void 0:i.getBoundingClientRect())||void 0===a?void 0:a.width:e}))}),200);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),d((function(){C((g||0)-(b||0)<200)}),[g,b]);var k=l((function(){return o.createElement(bD,{icon:{icon:t,fixedWidth:!0}})}),[]),E=i((function(){return(null==r?void 0:r.slice(1,-1).map((function(e){var t=e.onClick,r=e.color;return{onClick:function(){return t(n)},text:e.text,color:r,icon:e.iconLeft}})))||[]}),[r,n]);return o.createElement(GD,{ref:p,shown:!!u&&u>0,allSelectedShown:!!a},o.createElement(KD,null,o.createElement(QD,null,u+" "+(1===u?"selezionato":"selezionati")),r&&r.length>0&&o.createElement(XD,{ref:f},!$||r.length<3?r.map((function(e,t){return o.createElement(da,Ye({key:t},e,{onClick:function(){return e.onClick(n)}}))})):o.createElement(o.Fragment,null,o.createElement(da,Ye({},r[0],{onClick:function(){return r[0].onClick(n)}})),o.createElement(za,{placement:"bottom-end",renderTrigger:k,content:E}),o.createElement(da,Ye({},r[r.length-1],{onClick:function(){return r[r.length-1].onClick(n)}}))))),o.createElement(qD,{shown:!!a},null==a?void 0:a.description,o.createElement(da,{text:null==a?void 0:a.text,onClick:null==a?void 0:a.onClick,type:"text"})))},JD=function(e){var n=e.footerGroup;return o.createElement("tfoot",null,n.map((function(e){return o.createElement("tr",{key:e.id},e.headers.map((function(e){return o.createElement("td",{key:e.id},e.isPlaceholder?null:yS(e.column.columnDef.footer,e.getContext()))})))})))},eT=x.div(tD||(tD=Xe(["\n width: 100%;\n"],["\n width: 100%;\n"]))),nT=x.div(rD||(rD=Xe(["\n overflow: auto;\n"],["\n overflow: auto;\n"]))),tT=x.table(oD||(oD=Xe(["\n position: relative;\n min-width: 100%;\n border-spacing: 0 2px;\n border: 0;\n padding: 0;\n td,\n th {\n padding: 0;\n }\n\n // per il momento è qui per permettere alla textarea di non essere tagliata sulle ultime righe\n // possiamo condizionare un po', tipo solo se ci sono celle editabili\n // oppure lavorare sul footer\n margin-bottom: 36px;\n"],["\n position: relative;\n min-width: 100%;\n border-spacing: 0 2px;\n border: 0;\n padding: 0;\n td,\n th {\n padding: 0;\n }\n\n // per il momento è qui per permettere alla textarea di non essere tagliata sulle ultime righe\n // possiamo condizionare un po', tipo solo se ci sono celle editabili\n // oppure lavorare sul footer\n margin-bottom: 36px;\n"]))),rT=x(on)(iD||(iD=Xe(["\n transform: rotate(","deg);\n color: ",";\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"],["\n transform: rotate(","deg);\n color: ",";\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.isSortedDesc?180:0}),(function(e){var n=e.isSorted,t=e.theme;return n?t.palette.grey[900]:t.palette.grey[200]}),(function(e){return e.theme.palette.grey[900]}),(function(e){return e.theme.palette.grey[100]})),oT=x.div(aD||(aD=Xe(["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"],["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"]))),iT=function(e,n){return ze(n,(function(n){return n===e}))?He(n,(function(n){return n!==e})):qe(qe([],n,!0),[e],!1)},aT=function(e){switch(e){default:case!1:return"asc";case"asc":return"desc";case"desc":return!1}};!function(e){e[e.FIRST=0]="FIRST",e[e.SECOND=1]="SECOND",e[e.THIRD=2]="THIRD"}(lD||(lD={}));var lT,sT,dT,cT,uT,pT,fT,mT,gT,hT=x(Wi)(lT||(lT=Xe(["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"],["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"])),Ui.m),vT=x.h6(sT||(sT=Xe(["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"],["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"])),(function(e){return e.theme.palette.black})),yT=x.div(dT||(dT=Xe(["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"],["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"]))),bT=x.div(cT||(cT=Xe(["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"],["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"])),(function(e){return e.theme.palette.grey[100]})),wT=function(e){var n=e.table,t=s(null),r=s(null),i=function(e){var n=[],t=[],r=[];return e.forEach((function(e){var o=!!e.columnDef.actionType;switch(e.id){case xS.TOGGLE:t[lD.FIRST]=e;break;case xS.FAVORITE:t[lD.SECOND]=e;break;case xS.CHECKBOX:t[lD.THIRD]=e;break;case xS.ROW_ACTIONS:n[lD.FIRST]=e}o||r.push(e)})),{rightActions:n,leftActions:t,accessorColumns:r}}(n.getAllColumns()),a=i.accessorColumns,l=i.rightActions,d=i.leftActions,u=c(a),p=u[0],f=u[1],m=c(!1),g=m[0],h=m[1],v=function(e){var t=d.map((function(e){return String(e.id)})),r=l.map((function(e){return String(e.id)}));n.setColumnOrder(qe(qe(qe([],t,!0),e,!0),r,!0))},y=p.map((function(e,n){return o.createElement("div",{key:n,id:e.id,onDragEnter:function(){return function(e){if(r.current=e,null!==r.current&&null!==t.current){var n=qe([],p,!0),o=n[t.current];n.splice(t.current,1),n.splice(r.current,0,o),t.current=r.current,r.current=null,f(n),v(n.map((function(e){return String(e.id)})))}}(n)}},o.createElement(ET,{draggable:!0,onDragStart:function(e,r){return function(e,n,r){h(!0),t.current=n,e.dataTransfer.setDragImage(r,0,0)}(e,n,r)},onDragOver:function(e){return e.preventDefault()},onDragEnd:function(){return h(!1)},column:e}),g&&t.current===n&&o.createElement(bT,null))}));return o.createElement(yT,null,y)},xT=function(e){var n=e.table,t=e.visibleColumnsLabel;return o.createElement(hT,{renderTitle:function(){return o.createElement(vT,null,t)},renderBody:function(){return o.createElement(wT,{table:n})}})},$T=x.div(uT||(uT=Xe(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"]))),CT=x.div(pT||(pT=Xe(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),kT=x(ca)(fT||(fT=Xe(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[300]})),ET=function(e){var n=e.column,t=e.draggable,r=e.onDragStart,i=e.onDragOver,a=e.onDragEnd,l=s(null);return o.createElement($T,{ref:l,onDragOver:i},o.createElement(CT,{draggable:t,onDragStart:function(e){l.current&&r(e,l.current)},onDragEnd:a},o.createElement(kT,{icon:{icon:ue}})),o.createElement(el,{value:n.getIsVisible(),text:String(n.columnDef.header),onClick:function(){return n.toggleVisibility()}}))},ST=x(Ah)(mT||(mT=Xe(["\n margin-top: 12px;\n"],["\n margin-top: 12px;\n"])));!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=1]="SMALL",e[e.LARGE=2]="LARGE"}(gT||(gT={}));var DT,TT,_T,NT,PT,OT,MT,RT,IT,AT,FT,LT,zT,HT,jT,BT,UT,YT,VT,WT,GT,KT,qT=function(e){var n=e.rowHeightLabel,t=e.unspecifiedRowsLabel,r=e.smallRowsLabel,i=e.largeRowsLabel,a=e.isDisabled,l=w(sD),s=l.setRowSize,d=l.rowSize,c=function(e){switch(e){default:case gT.UNSPECIFIED:s(bS.UNSPECIFIED);break;case gT.SMALL:s(bS.SMALL);break;case gT.LARGE:s(bS.LARGE)}},u=function(){switch(d){default:case bS.UNSPECIFIED:return gT.UNSPECIFIED;case bS.SMALL:return gT.SMALL;case bS.LARGE:return gT.LARGE}},p=[{text:t,large:!1,disabled:a||!1},{text:r,large:!1,disabled:a||!1},{text:i,large:!1,disabled:a||!1}];return o.createElement(hT,{renderTitle:function(){return o.createElement(vT,null,n)},renderBody:function(){return o.createElement(ST,{spacing:"xs",initialSelection:u(),options:p,onChange:c})}})},XT=x(ca)(DT||(DT=Xe(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.blue[700]})),QT=x.div(TT||(TT=Xe(["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"],["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"]))),ZT=x.div(_T||(_T=Xe(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),JT=x.div(NT||(NT=Xe(["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"],["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"]))),e_=x.div(PT||(PT=Xe(["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"],["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"])),(function(e){return e.theme.palette.grey[50]})),n_=function(e){var n=function(e){var n,t,r,o,i,a,l,s,d,c,u,p,f=e.column,m=(0,e.getContext)().table,g=0===(0,m.getRowModel)().rows.length,h=f.columnDef;return{table:m,isTableEmpty:g,displaySettingsLabel:null!==(t=null===(n=h.settingsDropdownConfig)||void 0===n?void 0:n.displaySettingsLabel)&&void 0!==t?t:"Impostazioni visualizzazione",visibleColumnsLabel:null!==(o=null===(r=h.settingsDropdownConfig)||void 0===r?void 0:r.visibleColumnsLabel)&&void 0!==o?o:"Colonne visibili",rowHeightLabel:null!==(a=null===(i=h.settingsDropdownConfig)||void 0===i?void 0:i.rowHeightLabel)&&void 0!==a?a:"Densità righe",unspecifiedRowsLabel:null!==(s=null===(l=h.settingsDropdownConfig)||void 0===l?void 0:l.unspecifiedRowsLabel)&&void 0!==s?s:"Non specificata",smallRowsLabel:null!==(c=null===(d=h.settingsDropdownConfig)||void 0===d?void 0:d.smallRowsLabel)&&void 0!==c?c:"Righe strette",largeRowsLabel:null!==(p=null===(u=h.settingsDropdownConfig)||void 0===u?void 0:u.largeRowsLabel)&&void 0!==p?p:"Righe larghe"}}(e.header),t=n.displaySettingsLabel,r=n.isTableEmpty,i=n.largeRowsLabel,a=n.rowHeightLabel,l=n.smallRowsLabel,s=n.table,d=n.unspecifiedRowsLabel,c=n.visibleColumnsLabel;return o.createElement(QT,null,o.createElement(ZT,null,o.createElement(e_,null,o.createElement(XT,{icon:{icon:Se,color:"grey",size:"sm"}})),o.createElement(JT,null,t)),o.createElement(xT,{table:s,visibleColumnsLabel:c}),o.createElement(qT,{rowHeightLabel:a,unspecifiedRowsLabel:d,smallRowsLabel:l,largeRowsLabel:i,isDisabled:r}))},t_=function(e){var n=e.header,t=e.onOpen,r=l((function(){return o.createElement(XT,{icon:{icon:pe,size:"sm"}})}),[]);return o.createElement(za,{placement:"left-start",renderTrigger:r,onOpen:t,renderContent:function(){return o.createElement(n_,{header:n})}})},r_=x.span(OT||(OT=Xe(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n margin-right: 6px;\n"],["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n margin-right: 6px;\n"])),(function(e){return e.theme.palette.grey[500]})),o_=x.td(IT||(IT=Xe(["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n"],["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n"])),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.palette.grey[50]}),(function(e){return e.size||bS.SMALL}),(function(e){return e.sortable&&$(MT||(MT=Xe(["\n cursor: pointer;\n user-select: none;\n "],["\n cursor: pointer;\n user-select: none;\n "])))}),(function(e){var n=e.minWidth;return n&&$(RT||(RT=Xe(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),n)})),i_=x.span(AT||(AT=Xe(["\n padding: 8px;\n display: flex;\n justify-content: space-between;\n"],["\n padding: 8px;\n display: flex;\n justify-content: space-between;\n"]))),a_=x.div(FT||(FT=Xe(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),l_=function(e){var n=e.header,t=e.onOpen,r=function(e){var n,t=e.column,r=(0,e.getContext)().table,o=t.columnDef,i=o.actionType,a=null===(n=o.rowActions)||void 0===n?void 0:n.headerTitle,l=!!o.enableSettings,s=t.getCanSort(),d=!!t.getIsSorted();return{actionType:i,isSortedDesc:!1===t.getIsSorted()?null:t.getIsSorted(),isSorted:d,toggleSortable:xS.TOGGLE&&s,favoriteSortable:xS.FAVORITE&&s,table:r,canSort:s,headerTitle:a,allColumns:e.getContext().table.getAllColumns(),isSettingsEnabled:l}}(n),i=r.actionType,a=r.isSorted,l=r.isSortedDesc,s=r.toggleSortable,d=r.favoriteSortable,c=r.table,u=r.headerTitle,p=r.isSettingsEnabled;switch(i){case xS.TOGGLE:return o.createElement(a_,null,o.createElement(gD,{checked:a}),s&&o.createElement(rT,{isSorted:a,isSortedDesc:"desc"===l,icon:Y}));case xS.FAVORITE:return o.createElement(a_,null,o.createElement(uD,{checked:a}),d&&o.createElement(rT,{isSorted:a,isSortedDesc:"desc"===l,icon:Y}));case xS.CHECKBOX:return o.createElement(a_,{style:{paddingLeft:8}},o.createElement(el,{value:c.getIsAllRowsSelected()||(c.getIsSomeRowsSelected()?Hi.INDETERMINATE:Hi.UNCHECKED),onChange:function(){return c.toggleAllPageRowsSelected()}}));case xS.ROW_ACTIONS:return o.createElement(a_,null,u&&o.createElement(r_,null,u),p&&o.createElement(t_,{header:n,onOpen:t}));default:return o.createElement(o.Fragment,null)}},s_=function(e){var n=e.header,t=e.headerSize,r=e.onSort,i=e.customSorted,a=e.setCustomSorted,s=function(e){var n=e.column,t=n.columnDef.actionType,r=n.getCanSort(),o=!!n.getIsSorted(),i=!1===n.getIsSorted()?null:n.getIsSorted();return{column:n,actionType:t,canSort:r,isSorted:o,isSortedDesc:i,minWidth:n.columnDef.minWidth,tooltip:n.columnDef.headerTooltip}}(n),d=s.column,u=s.actionType,p=s.canSort,f=s.isSorted,m=s.isSortedDesc,g=s.minWidth,h=s.tooltip,v=C(),y=c(!1),b=y[0],w=y[1],x=l((function(e){var t,o;r?p&&(null==a||a(((t={})[n.id]=aT(i),t)),r({sortBy:n.id,direction:aT(i)}),n.getContext().table.setPageIndex(1)):null===(o=d.getToggleSortingHandler())||void 0===o||o(e)}),[r,d,n,a,i,p]);return o.createElement(o_,{size:t,minWidth:g,sortable:p,onClick:x,style:Ye({width:32},hD({isHeader:!0,theme:v,isPinned:d.getIsPinned(),isPopoverActive:b}))},o.createElement(dm,Ye({},null!=h?h:sm,{showAfterSeconds:.5}),u?o.createElement(l_,{header:n,onOpen:function(e){w(e)}}):o.createElement(i_,null,o.createElement(r_,null,n.isPlaceholder?null:yS(n.column.columnDef.header,n.getContext())),p&&o.createElement(rT,{isSorted:f||!!i,isSortedDesc:"desc"===m||"desc"===i,icon:Y}))))},d_=function(e){var n=e.headerGroup,t=e.headerSize,r=e.onSort,i=c(),a=i[0],l=i[1];return o.createElement("thead",null,n.map((function(e){return o.createElement("tr",{key:e.id},e.headers.map((function(e){var n=null==a?void 0:a[e.id];return o.createElement(s_,{key:e.id,header:e,headerSize:t,onSort:r,customSorted:n,setCustomSorted:l})})))})))},c_=function(e){var n=e.data,t=e.columns,i=e.isSelectable,a=e.onRowSelectionChange,l=e.favorites,s=e.onFavoritesChange,u=e.toggles,p=e.onTogglesChange,f=e.rowSize,m=e.headerSize,g=e.isFavoritesSortable,h=void 0!==g&&g,v=e.isTogglesSortable,y=void 0!==v&&v,b=e.sortable,w=void 0===b||b,x=e.sortDescFirst,$=void 0===x||x,C=e.enableSettings,k=void 0===C||C,E=e.settingsDropdownConfig,S=e.rowActions,D=e.bulkActions,T=e.isLoading,_=e.allSelectedCTA,N=e.noPagination,P=void 0===N||N,O=e.pageSize,M=void 0===O?10:O,R=e.listSize,I=e.paginationPreviousText,A=void 0===I?"Indietro":I,F=e.paginationNextText,L=void 0===F?"Avanti":F,z=e.onPaginationChange,H=e.uniqueId,j=e.onSort,B=e.renderEmptyState,U=e.onRowClick,Y=function(e){var n,t=e.columns,r=e.isSelectable,o=e.favorites,i=e.isFavoritesSortable,a=e.onFavoritesChange,l=e.toggles,s=e.isTogglesSortable,d=e.onTogglesChange,c=e.rowActions,u=e.enableSettings,p=e.settingsDropdownConfig,f={accessor:(e,n)=>"function"==typeof e?{...n,accessorFn:e}:{...n,accessorKey:e},display:e=>e,group:e=>e},m=function(e,n,t){var r=je(t,e.id),o=je(t,n.id);return r?1:o?-1:0};return qe(qe(qe(qe(qe([],r?[{columnDefType:wS.ACTION,key:xS.CHECKBOX,columnDef:{actionType:xS.CHECKBOX,enableSorting:!1}}]:[],!0),o?[{columnDefType:wS.ACTION,key:xS.FAVORITE,columnDef:{actionType:xS.FAVORITE,enableSorting:i,favorites:o,sortingFn:function(e,n){return m(e,n,o)},onActionChange:function(e){return null==a?void 0:a(iT(e,o))}}}]:[],!0),l?[{columnDefType:wS.ACTION,key:xS.TOGGLE,columnDef:{actionType:xS.TOGGLE,enableSorting:s,toggles:l,sortingFn:function(e,n){return m(e,n,l)},onActionChange:function(e){return null==d?void 0:d(iT(e,l))}}}]:[],!0),t,!0),c||u?[{ColumnDefType:wS.ACTION,key:xS.ROW_ACTIONS,columnDef:{actionType:xS.ROW_ACTIONS,enableSorting:!1,rowActions:c,enableSettings:u,settingsDropdownConfig:p,headerTooltip:null!==(n=null==p?void 0:p.settingsTooltip)&&void 0!==n?n:{},enablePinning:!0}}]:[],!0).map((function(e){switch(e.columnDefType){default:case wS.DISPLAY:return f.display(Ye({id:String(e.key)},e.columnDef));case wS.ACCESSOR:return f.accessor(e.key,e.columnDef);case wS.GROUP:return f.group(Ye({},e.columnDef));case wS.ACTION:return f.accessor(e.key,e.columnDef)}}))}({columns:t,isSelectable:i,favorites:l,isFavoritesSortable:h,onFavoritesChange:s,toggles:u,isTogglesSortable:y,onTogglesChange:p,rowActions:S,enableSettings:k,settingsDropdownConfig:E}),V=function(e){var n=c(e||{left:[],right:[]});return{columnPinning:n[0],setColumnPinning:n[1]}}({right:[xS.ROW_ACTIONS]}),W=V.columnPinning,G=V.setColumnPinning,K=function(e){var n=c({pageIndex:1,pageSize:e}),t=n[0];return{pageIndex:t.pageIndex,pageSize:t.pageSize,setPagination:n[1]}}(M),q=K.pageSize,X=K.pageIndex,Q=K.setPagination,J=o.useMemo((function(){return{pageIndex:X,pageSize:q}}),[X,q]),ee=Z(z);d((function(){var e;null===(e=ee.current)||void 0===e||e.call(ee,J)}),[J,ee]);var ne=function(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=r.useState((()=>({current:hS(n)}))),[o,i]=r.useState((()=>t.current.initialState));return t.current.setOptions((n=>({...n,...e,state:{...o,...e.state},onStateChange:n=>{i(n),null==e.onStateChange||e.onStateChange(n)}}))),t.current}({data:n,columns:Y,enableSorting:w,sortDescFirst:$,getCoreRowModel:e=>PE((()=>[e.options.data]),(n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(n,o,i){void 0===o&&(o=0);const a=[];for(let s=0;s<n.length;s++){const d=vS(e,e._getRowId(n[s],s,i),n[s],s,o);var l;t.flatRows.push(d),t.rowsById[d.id]=d,a.push(d),e.options.getSubRows&&(d.originalSubRows=e.options.getSubRows(n[s],s),null!=(l=d.originalSubRows)&&l.length&&(d.subRows=r(d.originalSubRows,o+1,d)))}return a};return t.rows=r(n),t}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>PE((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((n,t)=>{if(!t.rows.length||null==n||!n.length)return t;const r=e.getState().sorting,o=[],i=r.filter((n=>e.getColumn(n.id).getCanSort())),a={};i.forEach((n=>{const t=e.getColumn(n.id);a[n.id]={sortUndefined:t.columnDef.sortUndefined,invertSorting:t.columnDef.invertSorting,sortingFn:t.getSortingFn()}}));const l=e=>{const n=e.slice();return n.sort(((e,n)=>{for(let r=0;r<i.length;r+=1){var t;const o=i[r],l=a[o.id],s=null!=(t=null==o?void 0:o.desc)&&t;if(l.sortUndefined){const t=void 0===e.getValue(o.id),r=void 0===n.getValue(o.id);if(t||r)return t&&r?0:t?l.sortUndefined:-l.sortUndefined}let d=l.sortingFn(e,n,o.id);if(0!==d)return s&&(d*=-1),l.invertSorting&&(d*=-1),d}return e.index-n.index})),n.forEach((e=>{o.push(e),!e.subRows||e.subRows.length<=1||(e.subRows=l(e.subRows))})),n};return{rows:l(t.rows),flatRows:o,rowsById:t.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>PE((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((n,t)=>{if(!t.rows.length)return t;const{pageSize:r,pageIndex:o}=n;let{rows:i,flatRows:a,rowsById:l}=t;const s=r*o,d=s+r;let c;i=i.slice(s,d),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:function(e){const n=[],t=e=>{var r;n.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const u=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(u)};return c.rows.forEach(u),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),pageCount:R,state:{pagination:J,columnPinning:W},onColumnPinningChange:G,onPaginationChange:Q,manualPagination:!0,getRowId:function(e){return String(e[H])},manualSorting:!!j}),te=ne.getHeaderGroups,re=ne.getRowModel,oe=ne.getFooterGroups,ie=ne.getSelectedRowModel,ae=ne.previousPage,le=ne.nextPage,se=ne.setPageIndex,de=ne.getIsAllRowsSelected,ce=ne.getAllColumns,ue=ie().flatRows.map((function(e){return e.original})),pe=de();d((function(){i&&a&&a(ue)}),[ue,i,a]);var fe=ce().length,me=B&&0===n.length;return o.createElement(eT,null,o.createElement(dD,{defaultRowSize:f},o.createElement(ZD,{bulkBarActions:D,selectedRowData:ue,allSelectedCTA:pe?_:void 0}),o.createElement(nT,null,o.createElement(tT,null,o.createElement(d_,{headerGroup:te(),headerSize:m,onSort:j}),me?o.createElement("td",{colSpan:fe},B()):o.createElement(WD,{rows:re().rows,rowSize:f,isLoading:T,onRowClick:U}),o.createElement(JD,{footerGroup:oe()})),!P&&!me&&o.createElement(oT,null,o.createElement(O$,{changePageAction:function(e){return se(e)},nextPageAction:le,prevPageAction:ae,nextText:L,prevText:A,listSize:R||n.length,pageSize:q,currentPage:X})))))},u_=x.div(LT||(LT=Xe(["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"],["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.red[50]}),(function(e){return e.theme.palette.red[500]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.black[80]})),p_=function(e){var n=e.action,t=e.icon,r=e.text,a=e.title,l=i((function(){return n?o.createElement(da,{onClick:function(){return n.action()},iconLeft:n.icon?n.icon:void 0,text:n.text,color:"green"}):null}),[n]);return o.createElement(u_,null,t&&o.createElement("div",{className:"icon"},o.createElement(on,Ye({},t))),a&&o.createElement("h5",null,a),r&&o.createElement("p",null,r),l)},f_=x.span(zT||(zT=Xe(["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:"transparent"}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),m_=x.span(HT||(HT=Xe(["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),g_=function(e){var n=e.active,t=e.handleClick,r=e.tabRef,i=e.text,a=e.tooltip,l=e.badge,s=o.createElement(h_,{ref:null==r?void 0:r(),onClick:t},o.createElement(v_,Ye({className:"item-badge",isDisabled:!0},l),o.createElement(m_,{active:n},i)),o.createElement(f_,{active:n}));return a?o.createElement(dm,Ye({},a),s):s},h_=x.div(jT||(jT=Xe(["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"]))),v_=x(wy)(BT||(BT=Xe(["\n height: 8px;\n min-width: 8px;\n"],["\n height: 8px;\n min-width: 8px;\n"]))),y_=x.div(YT||(YT=Xe(["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"],["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"])),(function(e){return e.hidden&&$(UT||(UT=Xe(["\n visibility: hidden;\n position: absolute;\n "],["\n visibility: hidden;\n position: absolute;\n "])))}),(function(e){return e.lateralPadding}),(function(e){return e.lateralPadding}),(function(e){return e.distance})),b_=x(y_)(VT||(VT=Xe(["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"],["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"]))),w_=function(e){var n=e.active;return o.createElement(g_,{active:n,text:o.createElement(x_,{icon:fe,fixedWidth:!0})})},x_=x(on)(WT||(WT=Xe(["\n height: 21px;\n"],["\n height: 21px;\n"]))),$_=function(e){var n=e.active,t=e.tabs,r=l((function(){return o.createElement(w_,{active:n})}),[n]),i=l((function(e){return o.createElement(o.Fragment,null,t.map((function(n,t){var r=n.active,i=n.handleClick,a=n.text;return o.createElement(za.Item,{key:t,text:a,active:r,onClick:function(){i&&i(),e()}})})))}),[t]);return o.createElement(C_,{placement:"bottom-end",fullWidth:!0,renderTrigger:r,renderContent:i})},C_=x(za)(GT||(GT=Xe(["\n display: block;\n"],["\n display: block;\n"]))),k_=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,a=e.lateralPadding,l=void 0===a?23:a,s=e.tabs,d=function(){var e=J(),n=e[0],t=e[1].width,r=c(0),o=r[0],i=r[1];return ee((function(){return i(t)}),250,[t]),{elementsWrapperRef:n,wrapperWidth:o}}(),u=d.elementsWrapperRef,p=d.wrapperWidth,f=c(0)[1],m=s.length,g=i((function(){return Array.from(Array(m),(function(){return o.createRef()}))}),[m]),h=i((function(){return g.map((function(e){return function(){return f((function(e){return e+1})),e}}))}),[g]),v=function(e){var n=e.distance,t=e.lateralPadding,r=e.tabsLength,o=e.tabsRefs,a=e.wrapperWidth;return i((function(){for(var e,i=0,l=a-2*t;i!==r&&l>0;){var s=null===(e=o[i].current)||void 0===e?void 0:e.offsetWidth;s&&l-(s+n)>0?(i++,l-=s+n):l=-1}return{visibleCount:i}}),[n,t,r,o,a])}({distance:r,tabsLength:m,wrapperWidth:p,tabsRefs:g,lateralPadding:l}).visibleCount,y=i((function(){return s.map((function(e,n){return o.createElement(g_,Ye({key:n,tabRef:h[n]},e))}))}),[h,s]),b=i((function(){return s.slice(0,v).map((function(e,n){return o.createElement(g_,Ye({key:n},e))}))}),[s,v]),w=i((function(){return s.slice(v)}),[s,v]),x=0!==w.length,$=w.some((function(e){return e.active})),C=0===p;return o.createElement(o.Fragment,null,o.createElement(E_,{className:n,distance:r,lateralPadding:l,hidden:!C},y),o.createElement(y_,{className:n,distance:r,lateralPadding:l,hidden:C,ref:u},b,x&&o.createElement($_,{active:$,tabs:w})))},E_=x(b_)(KT||(KT=Xe(["\n overflow-x: hidden;\n"],["\n overflow-x: hidden;\n"]))),S_=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,a=e.lateralPadding,l=void 0===a?23:a,s=e.tabs,d=i((function(){return s.map((function(e,n){return o.createElement(g_,Ye({key:n},e))}))}),[s]);return o.createElement(b_,{className:n,distance:r,lateralPadding:l},d)},D_=function(e){var n=e.children,t=e.theme;return o.createElement(E,{theme:t},o.createElement(o.Fragment,null,n))};export{Wi as Accordion,em as AsyncCreatableSelect,Jf as AsyncSelect,Xi as Avatar,Rv as Badge,ty as BadgeSize,gv as BadgeType,Uv as Banner,Ov as BannerType,Ao as Body,da as Button,Vo as Caption,qv as Card,zv as CardColor,Hv as CardElevation,Lv as CardType,el as Checkbox,Hi as CheckboxStatus,sy as Chip,Gv as ChipType,wS as ColumnDefType,SE as ConfirmationModal,Zf as CreatableSelect,Hm as DatePicker,ha as Drawer,za as Dropdown,k_ as DropdownTabs,ih as FileUploader,ry as FloatingBadgeType,nv as GroupedList,Yo as Headline,on as Icon,en as IconBackground,ca as IconButton,Dv as InlineMessage,Dh as InlineMessageType,Vc as InputCode,Ya as InputHelper,rm as InputTelephone,fm as InputText,_v as MicroTag,rE as Modal,Wk as ModalBody,oE as ModalSearchable,c_ as NewTable,yy as NotificationBadge,p_ as PageEmptySet,O$ as Pagination,Kx as PaginationType,oC as ProgressBar,qx as ProgressBarType,Oh as Radio,Ah as RadioGroup,qg as RadioStatus,S_ as ScrollableTabs,sC as SegmentButton,Qf as Select,PC as ShortcutTip,qw as SidebarBadgeConfigType,ix as SidebarItem,sn as Spinner,cE as StepModal,gE as StepModalBody,hE as StepModalFooter,vE as StepModalHeader,hC as Stepper,D$ as Table,$C as Tag,Yh as TextArea,D_ as ThemeProvider,_C as Tip,nC as TipType,Lo as Title1,zo as Title2,Ho as Title3,jo as Title4,Bo as Title5,Uo as Title6,zk as Toast,DC as ToastType,dm as Tooltip,wy as WithBadge,$c as autocompleteYellow,Vf as isSimpleValue,ex as sidebarItemHeight,Fm as timeConversionOptions,Hk as toastPalette,rl as useCheckboxValue,jm as useFormattedDate,_h as useRadioValue,Tf as useSelectMultiValues,Sf as useSelectSimpleValue,Df as useSelectValue,ax as useTableValues};
55
+ function TE(e,n){return"function"==typeof e?e(n):e}function _E(e,n){return t=>{n.setState((n=>({...n,[e]:TE(t,n[e])})))}}function NE(e){return e instanceof Function}function PE(e,n,t){let r,o=[];return()=>{let i;t.key&&t.debug&&(i=Date.now());const a=e();if(!(a.length!==o.length||a.some(((e,n)=>o[n]!==e))))return r;let l;if(o=a,t.key&&t.debug&&(l=Date.now()),r=n(...a),null==t||null==t.onChange||t.onChange(r),t.key&&t.debug&&null!=t&&t.debug()){const e=Math.round(100*(Date.now()-i))/100,n=Math.round(100*(Date.now()-l))/100,r=n/16,o=(e,n)=>{for(e=String(e);e.length<n;)e=" "+e;return e};console.info("%c⏱ "+o(n,5)+" /"+o(e,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*r,120))+"deg 100% 31%);",null==t?void 0:t.key)}return r}}function OE(e,n,t){var r;let o={id:null!=(r=t.id)?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],n=t=>{t.subHeaders&&t.subHeaders.length&&t.subHeaders.map(n),e.push(t)};return n(o),e},getContext:()=>({table:e,header:o,column:n})};return e._features.forEach((n=>{Object.assign(o,null==n.createHeader?void 0:n.createHeader(o,e))})),o}const ME={createTable:e=>({getHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((n,t,r,o)=>{var i,a;const l=null!=(i=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?a:[];return RE(n,[...l,...t.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((n,t,r,o)=>RE(n,t=t.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((n,t,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?o:[];return RE(n,i,e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightHeaderGroups:PE((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((n,t,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>t.find((n=>n.id===e)))).filter(Boolean))?o:[];return RE(n,i,e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getFooterGroups:PE((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftFooterGroups:PE((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterFooterGroups:PE((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightFooterGroups:PE((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getFlatHeaders:PE((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftFlatHeaders:PE((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterFlatHeaders:PE((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightFlatHeaders:PE((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getCenterLeafHeaders:PE((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeftLeafHeaders:PE((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getRightLeafHeaders:PE((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var n;return!(null!=(n=e.subHeaders)&&n.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}}),getLeafHeaders:PE((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,n,t)=>{var r,o,i,a,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=n[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=t[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugHeaders}})})};function RE(e,n,t,r){var o,i;let a=0;const l=function(e,n){void 0===n&&(n=1),a=Math.max(a,n),e.filter((e=>e.getIsVisible())).forEach((e=>{var t;null!=(t=e.columns)&&t.length&&l(e.columns,n+1)}),0)};l(e);let s=[];const d=(e,n)=>{const o={depth:n,id:[r,""+n].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const o=OE(t,l,{id:[r,n,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?""+i.filter((e=>e.column===l)).length:void 0,depth:n,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),n>0&&d(i,n-1)},c=n.map(((e,n)=>OE(t,e,{depth:a,index:n})));d(c,a-1),s.reverse();const u=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let n=0,t=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],u(e.subHeaders).forEach((e=>{let{colSpan:t,rowSpan:o}=e;n+=t,r.push(o)}))):n=1;return t+=Math.min(...r),e.colSpan=n,e.rowSpan=t,{colSpan:n,rowSpan:t}}));return u(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const IE={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},AE={getDefaultColumnDef:()=>IE,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:_E("columnSizing",e),onColumnSizingInfoChange:_E("columnSizingInfo",e)}),createColumn:(e,n)=>({getSize:()=>{var t,r,o;const i=n.getState().columnSizing[e.id];return Math.min(Math.max(null!=(t=e.columnDef.minSize)?t:IE.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:IE.size),null!=(o=e.columnDef.maxSize)?o:IE.maxSize)},getStart:t=>{const r=t?"left"===t?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns(),o=r.findIndex((n=>n.id===e.id));if(o>0){const e=r[o-1];return e.getStart(t)+e.getSize()}return 0},resetSize:()=>{n.setColumnSizing((n=>{let{[e.id]:t,...r}=n;return r}))},getCanResize:()=>{var t,r;return(null==(t=e.columnDef.enableResizing)||t)&&(null==(r=n.options.enableColumnResizing)||r)},getIsResizing:()=>n.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,n)=>({getSize:()=>{let n=0;const t=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(t):n+=null!=(r=e.column.getSize())?r:0};return t(e),n},getStart:()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},getResizeHandler:()=>{const t=n.getColumn(e.column.id),r=t.getCanResize();return o=>{if(!r)return;if(null==o.persist||o.persist(),LE(o)&&o.touches&&o.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[t.id,t.getSize()]],l=LE(o)?Math.round(o.touches[0].clientX):o.clientX,s=(e,t)=>{if("number"!=typeof t)return;let r={};n.setColumnSizingInfo((e=>{var n,o;const i=t-(null!=(n=null==e?void 0:e.startOffset)?n:0),a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[n,t]=e;r[n]=Math.round(100*Math.max(t+t*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==n.options.columnResizeMode&&"end"!==e||n.setColumnSizing((e=>({...e,...r})))},d={moveHandler:e=>{return n=e.clientX,s("move",n);var n},upHandler:e=>{var t;document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),t=e.clientX,s("end",t),n.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))}},c=!!function(){if("boolean"==typeof FE)return FE;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch(n){e=!1}return FE=e,FE}()&&{passive:!1};LE(o)||(document.addEventListener("mousemove",d.moveHandler,c),document.addEventListener("mouseup",d.upHandler,c)),n.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:t.id})))}}}),createTable:e=>({setColumnSizing:n=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(n),setColumnSizingInfo:n=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(n),resetColumnSizing:n=>{var t;e.setColumnSizing(n?{}:null!=(t=e.initialState.columnSizing)?t:{})},resetHeaderSizeInfo:n=>{var t;e.setColumnSizingInfo(n?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(t=e.initialState.columnSizingInfo)?t:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getLeftTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getLeftHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getCenterTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getCenterHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0},getRightTotalSize:()=>{var n,t;return null!=(n=null==(t=e.getRightHeaderGroups()[0])?void 0:t.headers.reduce(((e,n)=>e+n.getSize()),0))?n:0}})};let FE=null;function LE(e){return"touchstart"===e.type}const zE={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:_E("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;return{_autoResetExpanded:()=>{var r,o;if(n){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue((()=>{e.resetExpanded(),t=!1}))}}else e._queue((()=>{n=!0}))},setExpanded:n=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{(null!=n?n:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var t,r;e.setExpanded(n?{}:null!=(t=null==(r=e.initialState)?void 0:r.expanded)?t:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some((e=>e.getCanExpand())),getToggleAllRowsExpandedHandler:()=>n=>{null==n.persist||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return!0===n||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return"boolean"==typeof n?!0===n:!!Object.keys(n).length&&!e.getRowModel().flatRows.some((e=>e.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const t=e.split(".");n=Math.max(n,t.length)})),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,n)=>({toggleExpanded:t=>{n.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(n.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,t=null!=(o=t)?o:!i,!i&&t)return{...a,[e.id]:!0};if(i&&!t){const{[e.id]:n,...t}=a;return t}return r}))},getIsExpanded:()=>{var t;const r=n.getState().expanded;return!!(null!=(t=null==n.options.getIsRowExpanded?void 0:n.options.getIsRowExpanded(e))?t:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var t,r,o;return null!=(t=null==n.options.getRowCanExpand?void 0:n.options.getRowCanExpand(e))?t:(null==(r=n.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},getToggleExpandedHandler:()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}})},HE=(e,n,t)=>{var r;const o=t.toLowerCase();return null==(r=e.getValue(n))?void 0:r.toLowerCase().includes(o)};HE.autoRemove=e=>XE(e);const jE=(e,n,t)=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)};jE.autoRemove=e=>XE(e);const BE=(e,n,t)=>{var r;return(null==(r=e.getValue(n))?void 0:r.toLowerCase())===t.toLowerCase()};BE.autoRemove=e=>XE(e);const UE=(e,n,t)=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)};UE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const YE=(e,n,t)=>!t.some((t=>{var r;return!(null!=(r=e.getValue(n))&&r.includes(t))}));YE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const VE=(e,n,t)=>t.some((t=>{var r;return null==(r=e.getValue(n))?void 0:r.includes(t)}));VE.autoRemove=e=>XE(e)||!(null!=e&&e.length);const WE=(e,n,t)=>e.getValue(n)===t;WE.autoRemove=e=>XE(e);const GE=(e,n,t)=>e.getValue(n)==t;GE.autoRemove=e=>XE(e);const KE=(e,n,t)=>{let[r,o]=t;const i=e.getValue(n);return i>=r&&i<=o};KE.resolveFilterValue=e=>{let[n,t]=e,r="number"!=typeof n?parseFloat(n):n,o="number"!=typeof t?parseFloat(t):t,i=null===n||Number.isNaN(r)?-1/0:r,a=null===t||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},KE.autoRemove=e=>XE(e)||XE(e[0])&&XE(e[1]);const qE={includesString:HE,includesStringSensitive:jE,equalsString:BE,arrIncludes:UE,arrIncludesAll:YE,arrIncludesSome:VE,equals:WE,weakEquals:GE,inNumberRange:KE};function XE(e){return null==e||""===e}const QE={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:_E("columnFilters",e),onGlobalFilterChange:_E("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t,r;const o=null==(t=e.getCoreRowModel().flatRows[0])||null==(r=t._getAllCellsByColumnId()[n.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,n)=>({getAutoFilterFn:()=>{const t=n.getCoreRowModel().flatRows[0],r=null==t?void 0:t.getValue(e.id);return"string"==typeof r?qE.includesString:"number"==typeof r?qE.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?qE.equals:Array.isArray(r)?qE.arrIncludes:qE.weakEquals},getFilterFn:()=>{var t,r;return NE(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(t=null==(r=n.options.filterFns)?void 0:r[e.columnDef.filterFn])?t:qE[e.columnDef.filterFn]},getCanFilter:()=>{var t,r,o;return(null==(t=e.columnDef.enableColumnFilter)||t)&&(null==(r=n.options.enableColumnFilters)||r)&&(null==(o=n.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var t,r,o,i;return(null==(t=e.columnDef.enableGlobalFilter)||t)&&(null==(r=n.options.enableGlobalFilter)||r)&&(null==(o=n.options.enableFilters)||o)&&(null==(i=null==n.options.getColumnCanGlobalFilter?void 0:n.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var t,r;return null==(t=n.getState().columnFilters)||null==(r=t.find((n=>n.id===e.id)))?void 0:r.value},getFilterIndex:()=>{var t,r;return null!=(t=null==(r=n.getState().columnFilters)?void 0:r.findIndex((n=>n.id===e.id)))?t:-1},setFilterValue:t=>{n.setColumnFilters((n=>{const r=e.getFilterFn(),o=null==n?void 0:n.find((n=>n.id===e.id)),i=TE(t,o?o.value:void 0);var a;if(ZE(r,i,e))return null!=(a=null==n?void 0:n.filter((n=>n.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return o?null!=(s=null==n?void 0:n.map((n=>n.id===e.id?l:n)))?s:[]:null!=n&&n.length?[...n,l]:[l]}))},_getFacetedRowModel:n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),_getFacetedUniqueValues:n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,n)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>qE.includesString,getGlobalFilterFn:()=>{var n,t;const{globalFilterFn:r}=e.options;return NE(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(n=null==(t=e.options.filterFns)?void 0:t[r])?n:qE[r]},setColumnFilters:n=>{const t=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=TE(n,e))?void 0:r.filter((e=>{const n=t.find((n=>n.id===e.id));if(n){if(ZE(n.getFilterFn(),e.value,n))return!1}return!0}))}))},setGlobalFilter:n=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(n)},resetGlobalFilter:n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)},resetColumnFilters:n=>{var t,r;e.setColumnFilters(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.columnFilters)?t:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function ZE(e,n,t){return!(!e||!e.autoRemove)&&e.autoRemove(n,t)||void 0===n||"string"==typeof n&&!n}const JE={sum:(e,n,t)=>t.reduce(((n,t)=>{const r=t.getValue(e);return n+("number"==typeof r?r:0)}),0),min:(e,n,t)=>{let r;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(r>t||void 0===r&&t>=t)&&(r=t)})),r},max:(e,n,t)=>{let r;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(r<t||void 0===r&&t>=t)&&(r=t)})),r},extent:(e,n,t)=>{let r,o;return t.forEach((n=>{const t=n.getValue(e);null!=t&&(void 0===r?t>=t&&(r=o=t):(r>t&&(r=t),o<t&&(o=t)))})),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach((n=>{let o=n.getValue(e);null!=o&&(o=+o)>=o&&(++t,r+=o)})),t)return r/t},median:(e,n)=>{if(!n.length)return;let t=0,r=0;return n.forEach((n=>{let o=n.getValue(e);"number"==typeof o&&(t=Math.min(t,o),r=Math.max(r,o))})),(t+r)/2},unique:(e,n)=>Array.from(new Set(n.map((n=>n.getValue(e)))).values()),uniqueCount:(e,n)=>new Set(n.map((n=>n.getValue(e)))).size,count:(e,n)=>n.length},eS={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return null!=(n=null==(t=e.getValue())||null==t.toString?void 0:t.toString())?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:_E("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>({toggleGrouping:()=>{n.setGrouping((n=>null!=n&&n.includes(e.id)?n.filter((n=>n!==e.id)):[...null!=n?n:[],e.id]))},getCanGroup:()=>{var t,r,o,i;return null!=(t=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:n.options.enableGrouping)||r)?t:!!e.accessorFn},getIsGrouped:()=>{var t;return null==(t=n.getState().grouping)?void 0:t.includes(e.id)},getGroupedIndex:()=>{var t;return null==(t=n.getState().grouping)?void 0:t.indexOf(e.id)},getToggleGroupingHandler:()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const t=n.getCoreRowModel().flatRows[0],r=null==t?void 0:t.getValue(e.id);return"number"==typeof r?JE.sum:"[object Date]"===Object.prototype.toString.call(r)?JE.extent:void 0},getAggregationFn:()=>{var t,r;if(!e)throw new Error;return NE(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(t=null==(r=n.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?t:JE[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:n=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(n),resetGrouping:n=>{var t,r;e.setGrouping(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.grouping)?t:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,n,t,r)=>({getIsGrouped:()=>n.getIsGrouped()&&n.id===t.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&n.getIsGrouped(),getIsAggregated:()=>{var n;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(n=t.subRows)||!n.length)}})};const nS={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:_E("columnOrder",e)}),createTable:e=>({setColumnOrder:n=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(n),resetColumnOrder:n=>{var t;e.setColumnOrder(n?[]:null!=(t=e.initialState.columnOrder)?t:[])},_getOrderColumnsFn:PE((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,n,t)=>r=>{let o=[];if(null!=e&&e.length){const n=[...e],t=[...r];for(;t.length&&n.length;){const e=n.shift(),r=t.findIndex((n=>n.id===e));r>-1&&o.push(t.splice(r,1)[0])}o=[...o,...t]}else o=r;return function(e,n,t){if(null==n||!n.length||!t)return e;const r=e.filter((e=>!n.includes(e.id)));if("remove"===t)return r;const o=n.map((n=>e.find((e=>e.id===n)))).filter(Boolean);return[...o,...r]}(o,n,t)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})})},tS={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:_E("columnPinning",e)}),createColumn:(e,n)=>({pin:t=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);n.setColumnPinning((e=>{var n,o,i,a,l,s;return"right"===t?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===t?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(n=null==e?void 0:e.left)?n:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var t,r;return(null==(t=e.columnDef.enablePinning)||t)&&(null==(r=n.options.enablePinning)||r)})),getIsPinned:()=>{const t=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=n.getState().columnPinning,i=t.some((e=>null==r?void 0:r.includes(e))),a=t.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var t,r,o;const i=e.getIsPinned();return i?null!=(t=null==(r=n.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?t:-1:0}}),createRow:(e,n)=>({getCenterVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right]),((e,n,t)=>{const r=[...null!=n?n:[],...null!=t?t:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:"production"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getLeftVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,,]),((e,n)=>{const t=(null!=n?n:[]).map((n=>e.find((e=>e.column.id===n)))).filter(Boolean).map((e=>({...e,position:"left"})));return t}),{key:"production"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getRightVisibleCells:PE((()=>[e._getAllVisibleCells(),n.getState().columnPinning.right]),((e,n)=>{const t=(null!=n?n:[]).map((n=>e.find((e=>e.column.id===n)))).filter(Boolean).map((e=>({...e,position:"right"})));return t}),{key:"production"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}})}),createTable:e=>({setColumnPinning:n=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(n),resetColumnPinning:n=>{var t,r;return e.setColumnPinning(n?{left:[],right:[]}:null!=(t=null==(r=e.initialState)?void 0:r.columnPinning)?t:{left:[],right:[]})},getIsSomeColumnsPinned:n=>{var t;const r=e.getState().columnPinning;var o,i;return n?Boolean(null==(t=r[n])?void 0:t.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},getLeftLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,n)=>(null!=n?n:[]).map((n=>e.find((e=>e.id===n)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getRightLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,n)=>(null!=n?n:[]).map((n=>e.find((e=>e.id===n)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getCenterLeafColumns:PE((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,n,t)=>{const r=[...null!=n?n:[],...null!=t?t:[]];return e.filter((e=>!r.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}})})},rS={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:_E("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:n=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(n),resetRowSelection:n=>{var t;return e.setRowSelection(n?{}:null!=(t=e.initialState.rowSelection)?t:{})},toggleAllRowsSelected:n=>{e.setRowSelection((t=>{n=void 0!==n?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},toggleAllPageRowsSelected:n=>e.setRowSelection((t=>{const r=void 0!==n?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach((n=>{oS(o,n.id,r,e)})),o})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getFilteredSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getGroupedSelectedRowModel:PE((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((n,t)=>Object.keys(n).length?iS(e,t):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getIsAllRowsSelected:()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=Boolean(n.length&&Object.keys(t).length);return r&&n.some((e=>e.getCanSelect()&&!t[e.id]))&&(r=!1),r},getIsAllPageRowsSelected:()=>{const n=e.getPaginationRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some((e=>!t[e.id]))&&(r=!1),r},getIsSomeRowsSelected:()=>{var n;const t=Object.keys(null!=(n=e.getState().rowSelection)?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const n=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&n.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>n=>{e.toggleAllRowsSelected(n.target.checked)},getToggleAllPageRowsSelectedHandler:()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}}),createRow:(e,n)=>({toggleSelected:t=>{const r=e.getIsSelected();n.setRowSelection((o=>{if(r===(t=void 0!==t?t:!r))return o;const i={...o};return oS(i,e.id,t,n),i}))},getIsSelected:()=>{const{rowSelection:t}=n.getState();return aS(e,t)},getIsSomeSelected:()=>{const{rowSelection:t}=n.getState();return"some"===lS(e,t)},getIsAllSubRowsSelected:()=>{const{rowSelection:t}=n.getState();return"all"===lS(e,t)},getCanSelect:()=>{var t;return"function"==typeof n.options.enableRowSelection?n.options.enableRowSelection(e):null==(t=n.options.enableRowSelection)||t},getCanSelectSubRows:()=>{var t;return"function"==typeof n.options.enableSubRowSelection?n.options.enableSubRowSelection(e):null==(t=n.options.enableSubRowSelection)||t},getCanMultiSelect:()=>{var t;return"function"==typeof n.options.enableMultiRowSelection?n.options.enableMultiRowSelection(e):null==(t=n.options.enableMultiRowSelection)||t},getToggleSelectedHandler:()=>{const n=e.getCanSelect();return t=>{var r;n&&e.toggleSelected(null==(r=t.target)?void 0:r.checked)}}})},oS=(e,n,t,r)=>{var o;const i=r.getRow(n);t?(i.getCanMultiSelect()||Object.keys(e).forEach((n=>delete e[n])),i.getCanSelect()&&(e[n]=!0)):delete e[n],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach((n=>oS(e,n.id,t,r)))};function iS(e,n){const t=e.getState().rowSelection,r=[],o={},i=function(e,n){return e.map((e=>{var n;const a=aS(e,t);if(a&&(r.push(e),o[e.id]=e),null!=(n=e.subRows)&&n.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(n.rows),flatRows:r,rowsById:o}}function aS(e,n){var t;return null!=(t=n[e.id])&&t}function lS(e,n,t){if(e.subRows&&e.subRows.length){let t=!0,r=!1;return e.subRows.forEach((e=>{r&&!t||(aS(e,n)?r=!0:t=!1)})),t?"all":!!r&&"some"}return!1}const sS=/([0-9]+)/gm;function dS(e,n){return e===n?0:e>n?1:-1}function cS(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function uS(e,n){const t=e.split(sS).filter(Boolean),r=n.split(sS).filter(Boolean);for(;t.length&&r.length;){const e=t.shift(),n=r.shift(),o=parseInt(e,10),i=parseInt(n,10),a=[o,i].sort();if(isNaN(a[0])){if(e>n)return 1;if(n>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return t.length-r.length}const pS={alphanumeric:(e,n,t)=>uS(cS(e.getValue(t)).toLowerCase(),cS(n.getValue(t)).toLowerCase()),alphanumericCaseSensitive:(e,n,t)=>uS(cS(e.getValue(t)),cS(n.getValue(t))),text:(e,n,t)=>dS(cS(e.getValue(t)).toLowerCase(),cS(n.getValue(t)).toLowerCase()),textCaseSensitive:(e,n,t)=>dS(cS(e.getValue(t)),cS(n.getValue(t))),datetime:(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},basic:(e,n,t)=>dS(e.getValue(t),n.getValue(t))},fS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:_E("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,n)=>({getAutoSortingFn:()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const n of t){const t=null==n?void 0:n.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(t))return pS.datetime;if("string"==typeof t&&(r=!0,t.split(sS).length>1))return pS.alphanumeric}return r?pS.text:pS.basic},getAutoSortDir:()=>{const t=n.getFilteredRowModel().flatRows[0];return"string"==typeof(null==t?void 0:t.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var t,r;if(!e)throw new Error;return NE(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(t=null==(r=n.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?t:pS[e.columnDef.sortingFn]},toggleSorting:(t,r)=>{const o=e.getNextSortingOrder(),i=null!=t;n.setSorting((a=>{const l=null==a?void 0:a.find((n=>n.id===e.id)),s=null==a?void 0:a.findIndex((n=>n.id===e.id));let d,c=[],u=i?t:"desc"===o;var p;(d=null!=a&&a.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===d&&(i||o||(d="remove")),"add"===d)?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(null!=(p=n.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):c="toggle"===d?a.map((n=>n.id===e.id?{...n,desc:u}:n)):"remove"===d?a.filter((n=>n.id!==e.id)):[{id:e.id,desc:u}];return c}))},getFirstSortDir:()=>{var t,r;return(null!=(t=null!=(r=e.columnDef.sortDescFirst)?r:n.options.sortDescFirst)?t:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:t=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=n.options.enableSortingRemoval)&&!r||t&&null!=(o=n.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var t,r;return(null==(t=e.columnDef.enableSorting)||t)&&(null==(r=n.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var t,r;return null!=(t=null!=(r=e.columnDef.enableMultiSort)?r:n.options.enableMultiSort)?t:!!e.accessorFn},getIsSorted:()=>{var t;const r=null==(t=n.getState().sorting)?void 0:t.find((n=>n.id===e.id));return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var t,r;return null!=(t=null==(r=n.getState().sorting)?void 0:r.findIndex((n=>n.id===e.id)))?t:-1},clearSorting:()=>{n.setSorting((n=>null!=n&&n.length?n.filter((n=>n.id!==e.id)):[]))},getToggleSortingHandler:()=>{const t=e.getCanSort();return r=>{t&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==n.options.isMultiSortEvent?void 0:n.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:n=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(n),resetSorting:n=>{var t,r;e.setSorting(n?[]:null!=(t=null==(r=e.initialState)?void 0:r.sorting)?t:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},mS={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:_E("columnVisibility",e)}),createColumn:(e,n)=>({toggleVisibility:t=>{e.getCanHide()&&n.setColumnVisibility((n=>({...n,[e.id]:null!=t?t:!e.getIsVisible()})))},getIsVisible:()=>{var t,r;return null==(t=null==(r=n.getState().columnVisibility)?void 0:r[e.id])||t},getCanHide:()=>{var t,r;return(null==(t=e.columnDef.enableHiding)||t)&&(null==(r=n.options.enableHiding)||r)},getToggleVisibilityHandler:()=>n=>{null==e.toggleVisibility||e.toggleVisibility(n.target.checked)}}),createRow:(e,n)=>({_getAllVisibleCells:PE((()=>[e.getAllCells(),n.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}}),getVisibleCells:PE((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,n,t)=>[...e,...n,...t]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugRows}})}),createTable:e=>{const n=(n,t)=>PE((()=>[t(),t().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:n,debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}});return{getVisibleFlatColumns:n("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:n("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:n("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:n("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:n("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:n=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(n),resetColumnVisibility:n=>{var t;e.setColumnVisibility(n?{}:null!=(t=e.initialState.columnVisibility)?t:{})},toggleAllColumnsVisible:n=>{var t;n=null!=(t=n)?t:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,t)=>({...e,[t.id]:n||!(null!=t.getCanHide&&t.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>n=>{var t;e.toggleAllColumnsVisible(null==(t=n.target)?void 0:t.checked)}}}},gS=[ME,mS,nS,tS,QE,fS,eS,zE,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:_E("pagination",e)}),createTable:e=>{let n=!1,t=!1;return{_autoResetPageIndex:()=>{var r,o;if(n){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(t)return;t=!0,e._queue((()=>{e.resetPageIndex(),t=!1}))}}else e._queue((()=>{n=!0}))},setPagination:n=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>TE(n,e))),resetPagination:n=>{var t;e.setPagination(n?{pageIndex:0,pageSize:10}:null!=(t=e.initialState.pagination)?t:{pageIndex:0,pageSize:10})},setPageIndex:n=>{e.setPagination((t=>{let r=TE(n,t.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.min(Math.max(0,r),o),{...t,pageIndex:r}}))},resetPageIndex:n=>{var t,r,o;e.setPageIndex(n?0:null!=(t=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?t:0)},resetPageSize:n=>{var t,r,o;e.setPageSize(n?10:null!=(t=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?t:10)},setPageSize:n=>{e.setPagination((e=>{const t=Math.max(1,TE(n,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/t);return{...e,pageIndex:o,pageSize:t}}))},setPageCount:n=>e.setPagination((t=>{var r;let o=TE(n,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...t,pageCount:o}})),getPageOptions:PE((()=>[e.getPageCount()]),(e=>{let n=[];return e&&e>0&&(n=[...new Array(e)].fill(null).map(((e,n)=>n))),n}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,t=e.getPageCount();return-1===t||0!==t&&n<t-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return null!=(n=e.options.pageCount)?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},rS,AE];function hS(e){var n;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let t={_features:gS};const r=t._features.reduce(((e,n)=>Object.assign(e,null==n.getDefaultOptions?void 0:n.getDefaultOptions(t))),{});let o={...null!=(n=e.initialState)?n:{}};t._features.forEach((e=>{var n;o=null!=(n=null==e.getInitialState?void 0:e.getInitialState(o))?n:o}));const i=[];let a=!1;const l={_features:gS,options:{...r,...e},initialState:o,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{t.setState(t.initialState)},setOptions:e=>{const n=TE(e,t.options);t.options=(e=>t.options.mergeOptions?t.options.mergeOptions(r,e):{...r,...e})(n)},getState:()=>t.options.state,setState:e=>{null==t.options.onStateChange||t.options.onStateChange(e)},_getRowId:(e,n,r)=>{var o;return null!=(o=null==t.options.getRowId?void 0:t.options.getRowId(e,n,r))?o:""+(r?[r.id,n].join("."):n)},getCoreRowModel:()=>(t._getCoreRowModel||(t._getCoreRowModel=t.options.getCoreRowModel(t)),t._getCoreRowModel()),getRowModel:()=>t.getPaginationRowModel(),getRow:e=>{const n=t.getRowModel().rowsById[e];if(!n){if("production"!==process.env.NODE_ENV)throw new Error("getRow expected an ID, but got "+e);throw new Error}return n},_getDefaultColumnDef:PE((()=>[t.options.defaultColumn]),(e=>{var n;return e=null!=(n=e)?n:{},{header:e=>{const n=e.header.column.columnDef;return n.accessorKey?n.accessorKey:n.accessorFn?n.id:null},cell:e=>{var n,t;return null!=(n=null==(t=e.renderValue())||null==t.toString?void 0:t.toString())?n:null},...t._features.reduce(((e,n)=>Object.assign(e,null==n.getDefaultColumnDef?void 0:n.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>t.options.columns,getAllColumns:PE((()=>[t._getColumnDefs()]),(e=>{const n=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,n,t,r){var o,i;const a={...e._getDefaultColumnDef(),...n},l=a.accessorKey;let s,d=null!=(o=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let n=e;for(const e of l.split("."))n=n[e];return n}:e=>e[a.accessorKey]),!d){if("production"!==process.env.NODE_ENV)throw new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let c={id:""+String(d),accessorFn:s,parent:r,depth:t,columnDef:a,columns:[],getFlatColumns:PE((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}}),getLeafColumns:PE((()=>[e._getOrderColumnsFn()]),(e=>{var n;if(null!=(n=c.columns)&&n.length){let n=c.columns.flatMap((e=>e.getLeafColumns()));return e(n)}return[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugColumns}})};return c=e._features.reduce(((n,t)=>Object.assign(n,null==t.createColumn?void 0:t.createColumn(c,e))),c),c}(t,e,o,r),a=e;return i.columns=a.columns?n(a.columns,i,o+1):[],i}))};return n(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getAllFlatColumns:PE((()=>[t.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),_getAllFlatColumnsById:PE((()=>[t.getAllFlatColumns()]),(e=>e.reduce(((e,n)=>(e[n.id]=n,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getAllLeafColumns:PE((()=>[t.getAllColumns(),t._getOrderColumnsFn()]),((e,n)=>n(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugColumns}}),getColumn:e=>{const n=t._getAllFlatColumnsById()[e];if(!n)throw"production"!==process.env.NODE_ENV&&console.warn("[Table] Column with id "+e+" does not exist."),new Error;return n}};return Object.assign(t,l),t._features.forEach((e=>Object.assign(t,null==e.createTable?void 0:e.createTable(t)))),t}const vS=(e,n,t,r,o,i)=>{let a={id:n,index:r,original:t,depth:o,_valuesCache:{},getValue:n=>{if(a._valuesCache.hasOwnProperty(n))return a._valuesCache[n];const t=e.getColumn(n);return t.accessorFn?(a._valuesCache[n]=t.accessorFn(a.original,r),a._valuesCache[n]):void 0},renderValue:n=>{var t;return null!=(t=a.getValue(n))?t:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,n){const t=[],r=e=>{e.forEach((e=>{t.push(e);const o=n(e);null!=o&&o.length&&r(o)}))};return r(e),t}(a.subRows,(e=>e.subRows)),getAllCells:PE((()=>[e.getAllLeafColumns()]),(n=>n.map((n=>function(e,n,t,r){const o={id:n.id+"_"+t.id,row:n,column:t,getValue:()=>n.getValue(r),renderValue:()=>{var n;return null!=(n=o.getValue())?n:e.options.renderFallbackValue},getContext:PE((()=>[e,t,n,o]),((e,n,t,r)=>({table:e,column:n,row:t,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((r=>{Object.assign(o,null==r.createCell?void 0:r.createCell(o,t,n,e))}),{}),o}(e,a,n,n.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugRows}}),_getAllCellsByColumnId:PE((()=>[a.getAllCells()]),(e=>e.reduce(((e,n)=>(e[n.column.id]=n,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugRows}})};for(let n=0;n<e._features.length;n++){const t=e._features[n];Object.assign(a,null==t||null==t.createRow?void 0:t.createRow(a,e))}return a};function yS(e,n){return e?function(e){return"function"==typeof e&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}(t=e)||"function"==typeof t||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(t)?r.createElement(e,n):e:null;var t}var bS,wS,xS;!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=42]="SMALL",e[e.LARGE=56]="LARGE"}(bS||(bS={})),function(e){e.ACCESSOR="accessor",e.DISPLAY="display",e.GROUP="group",e.ACTION="action"}(wS||(wS={})),function(e){e.CHECKBOX="checkbox",e.TOGGLE="toggle",e.FAVORITE="favorite",e.ROW_ACTIONS="row_actions",e.SETTINGS="settings"}(xS||(xS={}));var $S,CS,kS,ES,SS,DS,TS,_S,NS,PS,OS,MS,RS,IS,AS,FS,LS,zS,HS,jS,BS,US,YS,VS,WS,GS,KS,qS,XS,QS,ZS,JS,eD,nD,tD,rD,oD,iD,aD,lD,sD=b({}),dD=function(e){var n=e.children,t=e.defaultRowSize,r=o.useState(t||bS.UNSPECIFIED),i={rowSize:r[0],setRowSize:r[1]};return o.createElement(sD.Provider,{value:i},n)},cD=x(ca)($S||($S=Xe(["\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n color: ",";\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.checked,t=e.theme;return n?t.palette.blue[900]:t.palette.grey[300]}),(function(e){return e.theme.palette.blue[900]})),uD=function(e){var n=e.checked,t=void 0!==n&&n,r=e.onChange;return o.createElement(cD,{icon:{icon:B,size:"sm"},checked:t,onClick:function(){return null==r?void 0:r(t)}})},pD=x.div(CS||(CS=Xe(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),fD=x.span(kS||(kS=Xe(["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 24px;\n height: 16px;\n border-radius: 15px;\n opacity: ",";\n background-color: ",";\n cursor: ",";\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin: ","px;\n transition: 0.2s;\n background-color: ",";\n }\n"])),(function(e){return e.disabled?.3:1}),(function(e){return e.theme.palette.grey[300]}),(function(e){return e.disabled?"not-allowed":"pointer"}),12,12,2,(function(e){return e.theme.palette.white[100]})),mD=x.input(ES||(ES=Xe(["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"],["\n opacity: 0;\n z-index: 1;\n border-radius: 15px;\n width: 24px;\n &:checked + "," {\n background-color: ",";\n\n &::after {\n content: '';\n display: block;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n margin-left: 11px;\n transition: 0.2s;\n }\n }\n"])),fD,(function(e){var n=e.theme.palette;return e.disabled?n.grey[300]:n.blue[500]}),12,12),gD=function(e){var n=e.checked,t=void 0!==n&&n,r=e.disabled,i=void 0!==r&&r,a=e.onChange;return o.createElement(pD,null,o.createElement(mD,{type:"checkbox",checked:t,disabled:i,onChange:function(){return null==a?void 0:a(t)}}),o.createElement(fD,{disabled:i}))},hD=function(e){var n=e.theme,t=e.isHeader,r=e.isPopoverActive,o=e.isPinned,i=t?n.palette.grey[50]:n.palette.white[100];return{position:o?"sticky":void 0,backgroundColor:o?i:void 0,left:"left"===o?"0px":void 0,right:"right"===o?"0px":void 0,boxShadow:o?"-5px 0 5px -5px rgba(51, 51, 51, 0.15)":void 0,zIndex:r?2:1}},vD=x.div(SS||(SS=Xe(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),yD=x(da)(DS||(DS=Xe(["\n color: ",";\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"],["\n color: ",";\n font-size: 14px;\n &:hover {\n background-color: transparent;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[500]})),bD=x(ca)(TS||(TS=Xe(["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"],["\n font-size: 14px;\n color: ",";\n border-radius: 6px;\n &:hover {\n background-color: ",";\n color: ",";\n }\n &:active {\n background-color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.blue[100]}),(function(e){return e.theme.palette.blue[700]}),(function(e){return e.theme.palette.blue[200]})),wD=function(e){var n=e.dropdown,r=e.row,a=e.onOpen,s=l((function(){return o.createElement(bD,{icon:{icon:t,fixedWidth:!0}})}),[]),d=i((function(){return n.map((function(e){var n=e.onClick,t=Ve(e,["onClick"]);return Ye({onClick:function(){return n(r)}},t)}))}),[n,r]);return o.createElement(za,{placement:"right-start",renderTrigger:s,content:d,onOpen:a})},xD=function(e){var n,t,r=e.actionType,i=e.row,a=e.isFavorite,l=e.isToggled,s=e.onActionChange,d=e.rowActions,u=e.column,p=C(),f=c(!1),m=f[0],g=f[1],h=null===(n=null==d?void 0:d.dropdown)||void 0===n?void 0:n.tooltip,v=null===(t=null==d?void 0:d.dropdown)||void 0===t?void 0:t.items;switch(r){case xS.CHECKBOX:return o.createElement("td",{style:{width:32}},o.createElement(vD,{style:{paddingLeft:8}},o.createElement(el,{value:i.getIsSelected(),onChange:function(){return i.toggleSelected()}})));case xS.FAVORITE:return o.createElement("td",{style:{width:32}},o.createElement(vD,null,o.createElement(uD,{checked:a,onChange:function(){return null==s?void 0:s(i.id)}})));case xS.TOGGLE:return o.createElement("td",{style:{width:32}},o.createElement(vD,null,o.createElement(gD,{checked:l,onChange:function(){return null==s?void 0:s(i.id)}})));case xS.ROW_ACTIONS:return o.createElement("td",{style:Ye({width:32},hD({isHeader:!1,isPopoverActive:m,theme:p,isPinned:u.getIsPinned()}))},o.createElement(vD,null,(null==d?void 0:d.primary)&&(null==d?void 0:d.primary.map((function(e,n){var t;return o.createElement(dm,Ye({key:n},null!==(t=e.tooltip)&&void 0!==t?t:sm,{showAfterSeconds:.5}),o.createElement($D,{primary:e,row:i}))}))),o.createElement(dm,Ye({},null!=h?h:sm,{showAfterSeconds:.5}),v&&o.createElement(wD,{dropdown:v,row:i,onOpen:function(e){g(e)}}))));default:return o.createElement(o.Fragment,null)}},$D=function(e){var n=e.primary,t=e.row,r=n.text,i=n.icon,a=n.onClick;return o.createElement(o.Fragment,null,r&&o.createElement(yD,{type:"text",text:r,onClick:function(){return a(t)}}),i&&o.createElement(bD,{icon:i,onClick:function(){return a(t)}}))},CD=x.td(NS||(NS=Xe(["\n cursor: ",";\n ",";\n"],["\n cursor: ",";\n ",";\n"])),(function(e){return e.cellHasOnClick?"pointer":"inherit"}),(function(e){var n=e.minWidth;return n&&$(_S||(_S=Xe(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),n)})),kD=x.div(PS||(PS=Xe(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: 0;\n padding-inline: 8px;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: 0;\n padding-inline: 8px;\n"]))),ED=x.div(OS||(OS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"]))),SD=x.div(MS||(MS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n height: 24px;\n width: 24px;\n"]))),DD=x.div(RS||(RS=Xe(["\n font-size: 14px;\n line-height: 17px;\n width: 100%;\n text-align: ",";\n"],["\n font-size: 14px;\n line-height: 17px;\n width: 100%;\n text-align: ",";\n"])),(function(e){return e.hasMeasureUnit?"right":"left"})),TD=x.div(FS||(FS=Xe(["\n ","\n ","\n font-weight: ",";\n color: ",";\n"],["\n ","\n ","\n font-weight: ",";\n color: ",";\n"])),(function(e){return e.hasMeasureUnit&&$(IS||(IS=Xe(["\n text-align: right;\n "],["\n text-align: right;\n "])))}),(function(e){return e.truncate&&$(AS||(AS=Xe(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n "],["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n "])))}),(function(e){return e.headline?500:400}),(function(e){var n=e.theme;return e.headline?n.palette.black[100]:n.palette.black[80]})),_D=x.div(LS||(LS=Xe(["\n font-weight: ",";\n color: ",";\n font-size: 14px;\n margin-left: 4px;\n"],["\n font-weight: ",";\n color: ",";\n font-size: 14px;\n margin-left: 4px;\n"])),(function(e){return e.headline?500:400}),(function(e){var n=e.theme;return e.headline?n.palette.black[100]:n.palette.black[80]})),ND=x.div(zS||(zS=Xe(["\n margin-left: 8px;\n display: flex;\n"],["\n margin-left: 8px;\n display: flex;\n"]))),PD=x.div(HS||(HS=Xe(["\n input {\n width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n text-align: ",";\n min-width: 80px;\n }\n"],["\n input {\n width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n text-align: ",";\n min-width: 80px;\n }\n"])),(function(e){return e.hasMeasureUnit?"right":"left"})),OD=x.div(jS||(jS=Xe(["\n display: inline-flex;\n"],["\n display: inline-flex;\n"]))),MD=x.div(BS||(BS=Xe(["\n position: relative;\n"],["\n position: relative;\n"]))),RD=x.div(US||(US=Xe(["\n position: absolute;\n z-index: 1;\n top: -16px;\n width: 100%;\n textarea {\n width: 100%;\n min-width: 80px;\n }\n"],["\n position: absolute;\n z-index: 1;\n top: -16px;\n width: 100%;\n textarea {\n width: 100%;\n min-width: 80px;\n }\n"]))),ID=x.div(YS||(YS=Xe(["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"],["\n position: absolute;\n z-index: 2;\n bottom: 2px;\n right: 6px;\n"]))),AD=x(on)(VS||(VS=Xe(["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 12px;\n margin: 2px;\n color: ",";\n"])),(function(e){var n=e.theme;return e.confirm?n.palette.green[900]:n.palette.red[900]})),FD=function(e){var n=e.onChange,t=e.row,r=e.content,i=e.onBlur,a=c(null==r?void 0:r.toString()),s=a[0],d=a[1],u=Le(l((function(e){e&&(null==n||n(s||"",t)),i()}),[n,t,s,i]),200);return o.createElement(RD,null,o.createElement(ID,null,o.createElement(AD,{icon:_,onClick:function(){return u(!0)},confirm:!0}),o.createElement(AD,{icon:T})),o.createElement(Yh,{value:s,onChange:function(e){return d(e.target.value)},autoFocus:!0,initialHeight:"100px",onBlur:function(){return u()},onFocus:function(e){var n=e.target.value;e.target.value="",e.target.value=n}}))},LD=function(e){var n=e.hover,t=e.onChange,r=e.row,i=e.unitSymbol,a=e.content,l=c(!1),s=l[0],d=l[1];return o.createElement(MD,null,s?o.createElement(FD,{row:r,onChange:t,onBlur:function(){return d(!1)},content:a}):o.createElement(PD,{hasMeasureUnit:!!i},o.createElement(fm,{value:null==a?void 0:a.toString(),isTransparent:!n,actionIcon:Ye({icon:U},n?{}:{visibility:"hidden"}),onFocus:function(){return d(!0)}})))},zD=function(e){var n=e.content,t=e.isEditable,r=e.tag,i=e.unitSymbol,a=e.headline,s=e.leadingIcon,d=e.avatar,c=e.actionType,u=e.row,p=e.rowSize,f=e.onActionChange,m=e.isFavorite,g=e.isToggled,h=e.hover,v=e.onChange,y=e.trailingMicroTag,b=e.minWidth,w=e.rowActions,x=e.context,$=e.onRowClick,C=x.column,k=!t&&"function"==typeof $,E=l((function(e){return k&&$(e)}),[k,$]);return c?o.createElement(xD,{row:u,actionType:c,isFavorite:m,isToggled:g,onActionChange:f,rowActions:w,column:C}):o.createElement(CD,{minWidth:b,onClick:function(){return E(u)},cellHasOnClick:k},o.createElement(kD,null,s&&o.createElement(ED,null,o.createElement(on,Ye({},s))),d&&o.createElement(SD,null,o.createElement(Xi,Ye({},d))),o.createElement(DD,{hasMeasureUnit:!!i},t?o.createElement(LD,{hover:h,onChange:v,row:u,unitSymbol:i,content:n}):o.createElement(o.Fragment,null,n?o.createElement(OD,null,o.createElement(TD,{truncate:!!p,headline:a},n),i&&o.createElement(_D,{headline:a},i)):r&&o.createElement($C,Ye({},r)))),y&&o.createElement(ND,null,o.createElement(_v,{type:y.type,text:y.text}))))},HD=function(e){var n=e.isActionCell,t=e.minWidth,r=n?32:null!=t?t:80;return o.createElement("td",null,o.createElement(BD,null,o.createElement(jD,{speed:2,height:26,viewBox:"0 0 "+r+" 36",animate:!0},o.createElement("rect",{x:"0",y:"0",rx:"5",height:"36",width:r}))))},jD=x(Zx)(WS||(WS=Xe(["\n width: auto;\n align-items: center;\n"],["\n width: auto;\n align-items: center;\n"]))),BD=x.div(GS||(GS=Xe(["\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),UD=function(e){var n=e.cell,t=e.row,r=e.hover,i=e.rowSize,a=e.isLoading,l=e.onRowClick,s=function(e,n){var t,r=e.getValue(),o=!("string"==typeof r||"number"==typeof r),i=e.column.columnDef,a=i.actionType&&ze(i.toggles,(function(e){return e===n.id})),l=i.actionType&&ze(i.favorites,(function(e){return e===n.id})),s=i.rowActions,d=e.column.columnDef.unitSymbol;return{isEditable:!!e.column.columnDef.isEditable,isToggled:!!a,isFavorite:!!l,actionType:i.actionType,onActionChange:i.onActionChange,content:o?null===(t=r)||void 0===t?void 0:t.content:r,unitSymbol:o&&r&&r.unitSymbol||d,values:r,minWidth:e.column.columnDef.minWidth,rowActions:s}}(n,t),d=s.values,c=Ve(s,["values"]);return a?o.createElement(HD,{isActionCell:!!c.actionType,minWidth:c.minWidth}):o.createElement(zD,Ye({context:n.getContext(),key:n.id,row:t,hover:r,rowSize:i,onRowClick:l},d,c,{onChange:n.column.columnDef.onChange}))},YD=x.tr(XS||(XS=Xe(["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"],["\n box-shadow: ",";\n transition: box-shadow 200ms ease;\n ","\n ","\n"])),(function(e){var n=e.mouseHover,t=e.theme;return n?"0px 3px 6px rgba(51, 51, 51, 0.15), 0px 2px 4px rgba(51, 51, 51, 0.12)":"0px 1px "+t.palette.grey[100]}),(function(e){var n=e.size;return n&&$(KS||(KS=Xe(["\n height: ","px;\n "],["\n height: ","px;\n "])),n)}),(function(e){var n=e.selected,t=e.theme;return n&&$(qS||(qS=Xe(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),t.palette.blue[50])})),VD=function(e){var n=e.row,t=e.isLoading,r=e.onRowClick,i=w(sD).rowSize,a=c(),l=a[0],s=a[1];return o.createElement(YD,{mouseHover:l,onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)},size:i,selected:n.getIsSelected()},n.getVisibleCells().map((function(e,a){return o.createElement(UD,{key:a,cell:e,row:n,hover:l,rowSize:i,isLoading:t,onRowClick:r})})))},WD=function(e){var n=e.rows,t=e.rowSize,r=e.isLoading,i=e.onRowClick;return o.createElement("tbody",null,n.map((function(e){return o.createElement(VD,{key:e.id,row:e,rowSize:t,isLoading:r,onRowClick:i})})))},GD=x.div(QS||(QS=Xe(["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n margin-bottom: 16px;\n position: relative;\n"],["\n max-height: ","px;\n visibility: ",";\n transition: max-height 400ms ease;\n margin-bottom: 16px;\n position: relative;\n"])),(function(e){var n=e.shown,t=e.allSelectedShown;return n?t?94:48:0}),(function(e){return e.shown?"unset":"hidden"})),KD=x.div(ZS||(ZS=Xe(["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: end;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"],["\n //non è in palette\n background-color: #e8f7fe;\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: end;\n padding: 8px 8px;\n font-size: 14px;\n line-height: 21px;\n"])),(function(e){return e.theme.palette.black[80]})),qD=x.div(JS||(JS=Xe(["\n //non è in palette\n background-color: ",";\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"],["\n //non è in palette\n background-color: ",";\n color: ",";\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n padding: 8px;\n font-size: 14px;\n line-height: 21px;\n gap: 8px;\n"])),(function(e){return e.shown?"#e8f7fe":"transparent"}),(function(e){return e.theme.palette.black[80]})),XD=x.div(eD||(eD=Xe(["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"],["\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n"]))),QD=x.span(nD||(nD=Xe(["\n position: absolute;\n left: 16px;\n"],["\n position: absolute;\n left: 16px;\n"]))),ZD=function(e){var n=e.selectedRowData,r=e.bulkBarActions,a=e.allSelectedCTA,u=n.length,p=s(null),f=s(null),m=c(),g=m[0],h=m[1],v=c(),b=v[0],w=v[1],x=c(!1),$=x[0],C=x[1];y((function(){var e,n,t,r;h(null===(n=null===(e=null==p?void 0:p.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),w(null===(r=null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===r?void 0:r.width)}),[]),d((function(){var e=Le((function(){var e,n;h(null===(n=null===(e=null==p?void 0:p.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width),w((function(e){var n,t,r,o,i,a;return(null===(t=null===(n=null==f?void 0:f.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.width)&&(null===(o=null===(r=null==f?void 0:f.current)||void 0===r?void 0:r.getBoundingClientRect())||void 0===o?void 0:o.width)>(e||0)?null===(a=null===(i=null==f?void 0:f.current)||void 0===i?void 0:i.getBoundingClientRect())||void 0===a?void 0:a.width:e}))}),200);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),d((function(){C((g||0)-(b||0)<200)}),[g,b]);var k=l((function(){return o.createElement(bD,{icon:{icon:t,fixedWidth:!0}})}),[]),E=i((function(){return(null==r?void 0:r.slice(1,-1).map((function(e){var t=e.onClick,r=e.color;return{onClick:function(){return t(n)},text:e.text,color:r,icon:e.iconLeft}})))||[]}),[r,n]);return o.createElement(GD,{ref:p,shown:!!u&&u>0,allSelectedShown:!!a},o.createElement(KD,null,o.createElement(QD,null,u+" "+(1===u?"selezionato":"selezionati")),r&&r.length>0&&o.createElement(XD,{ref:f},!$||r.length<3?r.map((function(e,t){return o.createElement(da,Ye({key:t},e,{onClick:function(){return e.onClick(n)}}))})):o.createElement(o.Fragment,null,o.createElement(da,Ye({},r[0],{onClick:function(){return r[0].onClick(n)}})),o.createElement(za,{placement:"bottom-end",renderTrigger:k,content:E}),o.createElement(da,Ye({},r[r.length-1],{onClick:function(){return r[r.length-1].onClick(n)}}))))),o.createElement(qD,{shown:!!a},null==a?void 0:a.description,o.createElement(da,{text:null==a?void 0:a.text,onClick:null==a?void 0:a.onClick,type:"text"})))},JD=function(e){var n=e.footerGroup;return o.createElement("tfoot",null,n.map((function(e){return o.createElement("tr",{key:e.id},e.headers.map((function(e){return o.createElement("td",{key:e.id},e.isPlaceholder?null:yS(e.column.columnDef.footer,e.getContext()))})))})))},eT=x.div(tD||(tD=Xe(["\n width: 100%;\n"],["\n width: 100%;\n"]))),nT=x.div(rD||(rD=Xe(["\n overflow: auto;\n"],["\n overflow: auto;\n"]))),tT=x.table(oD||(oD=Xe(["\n position: relative;\n min-width: 100%;\n border-spacing: 0 2px;\n border: 0;\n padding: 0;\n td,\n th {\n padding: 0;\n }\n\n // per il momento è qui per permettere alla textarea di non essere tagliata sulle ultime righe\n // possiamo condizionare un po', tipo solo se ci sono celle editabili\n // oppure lavorare sul footer\n margin-bottom: 36px;\n"],["\n position: relative;\n min-width: 100%;\n border-spacing: 0 2px;\n border: 0;\n padding: 0;\n td,\n th {\n padding: 0;\n }\n\n // per il momento è qui per permettere alla textarea di non essere tagliata sulle ultime righe\n // possiamo condizionare un po', tipo solo se ci sono celle editabili\n // oppure lavorare sul footer\n margin-bottom: 36px;\n"]))),rT=x(on)(iD||(iD=Xe(["\n transform: rotate(","deg);\n color: ",";\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"],["\n transform: rotate(","deg);\n color: ",";\n height: 16px;\n width: 16px !important;\n padding: 2px;\n &:hover {\n color: ",";\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n }\n"])),(function(e){return e.isSortedDesc?180:0}),(function(e){var n=e.isSorted,t=e.theme;return n?t.palette.grey[900]:t.palette.grey[200]}),(function(e){return e.theme.palette.grey[900]}),(function(e){return e.theme.palette.grey[100]})),oT=x.div(aD||(aD=Xe(["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"],["\n display: flex;\n justify-content: center;\n text-align: center;\n width: 100%;\n margin-bottom: 18px;\n"]))),iT=function(e,n){return ze(n,(function(n){return n===e}))?He(n,(function(n){return n!==e})):qe(qe([],n,!0),[e],!1)},aT=function(e){switch(e){default:case!1:return"asc";case"asc":return"desc";case"desc":return!1}};!function(e){e[e.FIRST=0]="FIRST",e[e.SECOND=1]="SECOND",e[e.THIRD=2]="THIRD"}(lD||(lD={}));var lT,sT,dT,cT,uT,pT,fT,mT,gT,hT=x(Wi)(lT||(lT=Xe(["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"],["\n margin-top: 16px;\n margin-left: 8px;\n .body {\n padding: 0 0;\n }\n .header {\n height: ",";\n }\n"])),Ui.m),vT=x.h6(sT||(sT=Xe(["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"],["\n font-size: 12px;\n color: ",";\n font-weight: 500;\n line-height: 18px;\n padding: 0;\n margin: 0;\n"])),(function(e){return e.theme.palette.black})),yT=x.div(dT||(dT=Xe(["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"],["\n margin-top: 12px;\n margin-left: 0;\n margin-right: 0;\n"]))),bT=x.div(cT||(cT=Xe(["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"],["\n height: 1px;\n background-color: ",";\n margin-left: 24px;\n margin-right: 24px;\n"])),(function(e){return e.theme.palette.grey[100]})),wT=function(e){var n=e.table,t=s(null),r=s(null),i=function(e){var n=[],t=[],r=[];return e.forEach((function(e){var o=!!e.columnDef.actionType;switch(e.id){case xS.TOGGLE:t[lD.FIRST]=e;break;case xS.FAVORITE:t[lD.SECOND]=e;break;case xS.CHECKBOX:t[lD.THIRD]=e;break;case xS.ROW_ACTIONS:n[lD.FIRST]=e}o||r.push(e)})),{rightActions:n,leftActions:t,accessorColumns:r}}(n.getAllColumns()),a=i.accessorColumns,l=i.rightActions,d=i.leftActions,u=c(a),p=u[0],f=u[1],m=c(!1),g=m[0],h=m[1],v=function(e){var t=d.map((function(e){return String(e.id)})),r=l.map((function(e){return String(e.id)}));n.setColumnOrder(qe(qe(qe([],t,!0),e,!0),r,!0))},y=p.map((function(e,n){return o.createElement("div",{key:n,id:e.id,onDragEnter:function(){return function(e){if(r.current=e,null!==r.current&&null!==t.current){var n=qe([],p,!0),o=n[t.current];n.splice(t.current,1),n.splice(r.current,0,o),t.current=r.current,r.current=null,f(n),v(n.map((function(e){return String(e.id)})))}}(n)}},o.createElement(ET,{draggable:!0,onDragStart:function(e,r){return function(e,n,r){h(!0),t.current=n,e.dataTransfer.setDragImage(r,0,0)}(e,n,r)},onDragOver:function(e){return e.preventDefault()},onDragEnd:function(){return h(!1)},column:e}),g&&t.current===n&&o.createElement(bT,null))}));return o.createElement(yT,null,y)},xT=function(e){var n=e.table,t=e.visibleColumnsLabel;return o.createElement(hT,{renderTitle:function(){return o.createElement(vT,null,t)},renderBody:function(){return o.createElement(wT,{table:n})}})},$T=x.div(uT||(uT=Xe(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n"]))),CT=x.div(pT||(pT=Xe(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),kT=x(ca)(fT||(fT=Xe(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.grey[300]})),ET=function(e){var n=e.column,t=e.draggable,r=e.onDragStart,i=e.onDragOver,a=e.onDragEnd,l=s(null);return o.createElement($T,{ref:l,onDragOver:i},o.createElement(CT,{draggable:t,onDragStart:function(e){l.current&&r(e,l.current)},onDragEnd:a},o.createElement(kT,{icon:{icon:ue}})),o.createElement(el,{value:n.getIsVisible(),text:String(n.columnDef.header),onClick:function(){return n.toggleVisibility()}}))},ST=x(Ah)(mT||(mT=Xe(["\n margin-top: 12px;\n"],["\n margin-top: 12px;\n"])));!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SMALL=1]="SMALL",e[e.LARGE=2]="LARGE"}(gT||(gT={}));var DT,TT,_T,NT,PT,OT,MT,RT,IT,AT,FT,LT,zT,HT,jT,BT,UT,YT,VT,WT,GT,KT,qT=function(e){var n=e.rowHeightLabel,t=e.unspecifiedRowsLabel,r=e.smallRowsLabel,i=e.largeRowsLabel,a=e.isDisabled,l=w(sD),s=l.setRowSize,d=l.rowSize,c=function(e){switch(e){default:case gT.UNSPECIFIED:s(bS.UNSPECIFIED);break;case gT.SMALL:s(bS.SMALL);break;case gT.LARGE:s(bS.LARGE)}},u=function(){switch(d){default:case bS.UNSPECIFIED:return gT.UNSPECIFIED;case bS.SMALL:return gT.SMALL;case bS.LARGE:return gT.LARGE}},p=[{text:t,large:!1,disabled:a||!1},{text:r,large:!1,disabled:a||!1},{text:i,large:!1,disabled:a||!1}];return o.createElement(hT,{renderTitle:function(){return o.createElement(vT,null,n)},renderBody:function(){return o.createElement(ST,{spacing:"xs",initialSelection:u(),options:p,onChange:c})}})},XT=x(ca)(DT||(DT=Xe(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.blue[700]})),QT=x.div(TT||(TT=Xe(["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"],["\n padding: 16px 24px;\n margin: 0;\n max-height: 220px;\n overflow: auto;\n"]))),ZT=x.div(_T||(_T=Xe(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),JT=x.div(NT||(NT=Xe(["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"],["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n font-style: normal;\n"]))),e_=x.div(PT||(PT=Xe(["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"],["\n background-color: ",";\n height: 24px;\n width: 24px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n"])),(function(e){return e.theme.palette.grey[50]})),n_=function(e){var n=function(e){var n,t,r,o,i,a,l,s,d,c,u,p,f=e.column,m=(0,e.getContext)().table,g=0===(0,m.getRowModel)().rows.length,h=f.columnDef;return{table:m,isTableEmpty:g,displaySettingsLabel:null!==(t=null===(n=h.settingsDropdownConfig)||void 0===n?void 0:n.displaySettingsLabel)&&void 0!==t?t:"Impostazioni visualizzazione",visibleColumnsLabel:null!==(o=null===(r=h.settingsDropdownConfig)||void 0===r?void 0:r.visibleColumnsLabel)&&void 0!==o?o:"Colonne visibili",rowHeightLabel:null!==(a=null===(i=h.settingsDropdownConfig)||void 0===i?void 0:i.rowHeightLabel)&&void 0!==a?a:"Densità righe",unspecifiedRowsLabel:null!==(s=null===(l=h.settingsDropdownConfig)||void 0===l?void 0:l.unspecifiedRowsLabel)&&void 0!==s?s:"Non specificata",smallRowsLabel:null!==(c=null===(d=h.settingsDropdownConfig)||void 0===d?void 0:d.smallRowsLabel)&&void 0!==c?c:"Righe strette",largeRowsLabel:null!==(p=null===(u=h.settingsDropdownConfig)||void 0===u?void 0:u.largeRowsLabel)&&void 0!==p?p:"Righe larghe"}}(e.header),t=n.displaySettingsLabel,r=n.isTableEmpty,i=n.largeRowsLabel,a=n.rowHeightLabel,l=n.smallRowsLabel,s=n.table,d=n.unspecifiedRowsLabel,c=n.visibleColumnsLabel;return o.createElement(QT,null,o.createElement(ZT,null,o.createElement(e_,null,o.createElement(XT,{icon:{icon:Se,color:"grey",size:"sm"}})),o.createElement(JT,null,t)),o.createElement(xT,{table:s,visibleColumnsLabel:c}),o.createElement(qT,{rowHeightLabel:a,unspecifiedRowsLabel:d,smallRowsLabel:l,largeRowsLabel:i,isDisabled:r}))},t_=function(e){var n=e.header,t=e.onOpen,r=l((function(){return o.createElement(XT,{icon:{icon:pe,size:"sm"}})}),[]);return o.createElement(za,{placement:"left-start",renderTrigger:r,onOpen:t,renderContent:function(){return o.createElement(n_,{header:n})}})},r_=x.span(OT||(OT=Xe(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n margin-right: 6px;\n"],["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n margin-right: 6px;\n"])),(function(e){return e.theme.palette.grey[500]})),o_=x.td(IT||(IT=Xe(["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n"],["\n border-width: 0px 1px 1px 0px;\n border-style: solid;\n border-color: ",";\n background-color: ",";\n height: ","px;\n ","\n ",";\n"])),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.palette.grey[50]}),(function(e){return e.size||bS.SMALL}),(function(e){return e.sortable&&$(MT||(MT=Xe(["\n cursor: pointer;\n user-select: none;\n "],["\n cursor: pointer;\n user-select: none;\n "])))}),(function(e){var n=e.minWidth;return n&&$(RT||(RT=Xe(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),n)})),i_=x.span(AT||(AT=Xe(["\n padding: 8px;\n display: flex;\n justify-content: space-between;\n"],["\n padding: 8px;\n display: flex;\n justify-content: space-between;\n"]))),a_=x.div(FT||(FT=Xe(["\n display: flex;\n align-items: center;\n padding: 8px;\n"],["\n display: flex;\n align-items: center;\n padding: 8px;\n"]))),l_=function(e){var n=e.header,t=e.onOpen,r=function(e){var n,t=e.column,r=(0,e.getContext)().table,o=t.columnDef,i=o.actionType,a=null===(n=o.rowActions)||void 0===n?void 0:n.headerTitle,l=!!o.enableSettings,s=t.getCanSort(),d=!!t.getIsSorted();return{actionType:i,isSortedDesc:!1===t.getIsSorted()?null:t.getIsSorted(),isSorted:d,toggleSortable:xS.TOGGLE&&s,favoriteSortable:xS.FAVORITE&&s,table:r,canSort:s,headerTitle:a,allColumns:e.getContext().table.getAllColumns(),isSettingsEnabled:l}}(n),i=r.actionType,a=r.isSorted,l=r.isSortedDesc,s=r.toggleSortable,d=r.favoriteSortable,c=r.table,u=r.headerTitle,p=r.isSettingsEnabled;switch(i){case xS.TOGGLE:return o.createElement(a_,null,o.createElement(gD,{checked:a}),s&&o.createElement(rT,{isSorted:a,isSortedDesc:"desc"===l,icon:Y}));case xS.FAVORITE:return o.createElement(a_,null,o.createElement(uD,{checked:a}),d&&o.createElement(rT,{isSorted:a,isSortedDesc:"desc"===l,icon:Y}));case xS.CHECKBOX:return o.createElement(a_,{style:{paddingLeft:8}},o.createElement(el,{value:c.getIsAllRowsSelected()||(c.getIsSomeRowsSelected()?Hi.INDETERMINATE:Hi.UNCHECKED),onChange:function(){return c.toggleAllPageRowsSelected()}}));case xS.ROW_ACTIONS:return o.createElement(a_,null,u&&o.createElement(r_,null,u),p&&o.createElement(t_,{header:n,onOpen:t}));default:return o.createElement(o.Fragment,null)}},s_=function(e){var n=e.header,t=e.headerSize,r=e.onSort,i=e.customSorted,a=e.setCustomSorted,s=function(e){var n=e.column,t=n.columnDef.actionType,r=n.getCanSort(),o=!!n.getIsSorted(),i=!1===n.getIsSorted()?null:n.getIsSorted();return{column:n,actionType:t,canSort:r,isSorted:o,isSortedDesc:i,minWidth:n.columnDef.minWidth,tooltip:n.columnDef.headerTooltip}}(n),d=s.column,u=s.actionType,p=s.canSort,f=s.isSorted,m=s.isSortedDesc,g=s.minWidth,h=s.tooltip,v=C(),y=c(!1),b=y[0],w=y[1],x=l((function(e){var t,o;r?p&&(null==a||a(((t={})[n.id]=aT(i),t)),r({sortBy:n.id,direction:aT(i)}),n.getContext().table.setPageIndex(1)):null===(o=d.getToggleSortingHandler())||void 0===o||o(e)}),[r,d,n,a,i,p]);return o.createElement(o_,{size:t,minWidth:g,sortable:p,onClick:x,style:Ye({width:32},hD({isHeader:!0,theme:v,isPinned:d.getIsPinned(),isPopoverActive:b}))},o.createElement(dm,Ye({},null!=h?h:sm,{showAfterSeconds:.5}),u?o.createElement(l_,{header:n,onOpen:function(e){w(e)}}):o.createElement(i_,null,o.createElement(r_,null,n.isPlaceholder?null:yS(n.column.columnDef.header,n.getContext())),p&&o.createElement(rT,{isSorted:f||!!i,isSortedDesc:"desc"===m||"desc"===i,icon:Y}))))},d_=function(e){var n=e.headerGroup,t=e.headerSize,r=e.onSort,i=c(),a=i[0],l=i[1];return o.createElement("thead",null,n.map((function(e){return o.createElement("tr",{key:e.id},e.headers.map((function(e){var n=null==a?void 0:a[e.id];return o.createElement(s_,{key:e.id,header:e,headerSize:t,onSort:r,customSorted:n,setCustomSorted:l})})))})))},c_=function(e){var n=e.data,t=e.columns,i=e.isSelectable,a=e.onRowSelectionChange,l=e.favorites,s=e.onFavoritesChange,u=e.toggles,p=e.onTogglesChange,f=e.rowSize,m=e.headerSize,g=e.isFavoritesSortable,h=void 0!==g&&g,v=e.isTogglesSortable,y=void 0!==v&&v,b=e.sortable,w=void 0===b||b,x=e.sortDescFirst,$=void 0===x||x,C=e.enableSettings,k=void 0===C||C,E=e.settingsDropdownConfig,S=e.rowActions,D=e.bulkActions,T=e.isLoading,_=e.allSelectedCTA,N=e.noPagination,P=void 0===N||N,O=e.pageSize,M=void 0===O?10:O,R=e.listSize,I=e.paginationPreviousText,A=void 0===I?"Indietro":I,F=e.paginationNextText,L=void 0===F?"Avanti":F,z=e.onPaginationChange,H=e.uniqueId,j=e.onSort,B=e.renderEmptyState,U=e.onRowClick,Y=function(e){var n,t=e.columns,r=e.isSelectable,o=e.favorites,i=e.isFavoritesSortable,a=e.onFavoritesChange,l=e.toggles,s=e.isTogglesSortable,d=e.onTogglesChange,c=e.rowActions,u=e.enableSettings,p=e.settingsDropdownConfig,f={accessor:(e,n)=>"function"==typeof e?{...n,accessorFn:e}:{...n,accessorKey:e},display:e=>e,group:e=>e},m=function(e,n,t){var r=je(t,e.id),o=je(t,n.id);return r?1:o?-1:0};return qe(qe(qe(qe(qe([],r?[{columnDefType:wS.ACTION,key:xS.CHECKBOX,columnDef:{actionType:xS.CHECKBOX,enableSorting:!1}}]:[],!0),o?[{columnDefType:wS.ACTION,key:xS.FAVORITE,columnDef:{actionType:xS.FAVORITE,enableSorting:i,favorites:o,sortingFn:function(e,n){return m(e,n,o)},onActionChange:function(e){return null==a?void 0:a(iT(e,o))}}}]:[],!0),l?[{columnDefType:wS.ACTION,key:xS.TOGGLE,columnDef:{actionType:xS.TOGGLE,enableSorting:s,toggles:l,sortingFn:function(e,n){return m(e,n,l)},onActionChange:function(e){return null==d?void 0:d(iT(e,l))}}}]:[],!0),t,!0),c||u?[{ColumnDefType:wS.ACTION,key:xS.ROW_ACTIONS,columnDef:{actionType:xS.ROW_ACTIONS,enableSorting:!1,rowActions:c,enableSettings:u,settingsDropdownConfig:p,headerTooltip:null!==(n=null==p?void 0:p.settingsTooltip)&&void 0!==n?n:{},enablePinning:!0}}]:[],!0).map((function(e){switch(e.columnDefType){default:case wS.DISPLAY:return f.display(Ye({id:String(e.key)},e.columnDef));case wS.ACCESSOR:return f.accessor(e.key,e.columnDef);case wS.GROUP:return f.group(Ye({},e.columnDef));case wS.ACTION:return f.accessor(e.key,e.columnDef)}}))}({columns:t,isSelectable:i,favorites:l,isFavoritesSortable:h,onFavoritesChange:s,toggles:u,isTogglesSortable:y,onTogglesChange:p,rowActions:S,enableSettings:k,settingsDropdownConfig:E}),V=function(e){var n=c(e||{left:[],right:[]});return{columnPinning:n[0],setColumnPinning:n[1]}}({right:[xS.ROW_ACTIONS]}),W=V.columnPinning,G=V.setColumnPinning,K=function(e){var n=c({pageIndex:1,pageSize:e}),t=n[0];return{pageIndex:t.pageIndex,pageSize:t.pageSize,setPagination:n[1]}}(M),q=K.pageSize,X=K.pageIndex,Q=K.setPagination,J=o.useMemo((function(){return{pageIndex:X,pageSize:q}}),[X,q]),ee=Z(z);d((function(){var e;null===(e=ee.current)||void 0===e||e.call(ee,J)}),[J,ee]);var ne=function(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=r.useState((()=>({current:hS(n)}))),[o,i]=r.useState((()=>t.current.initialState));return t.current.setOptions((n=>({...n,...e,state:{...o,...e.state},onStateChange:n=>{i(n),null==e.onStateChange||e.onStateChange(n)}}))),t.current}({data:n,columns:Y,enableSorting:w,sortDescFirst:$,getCoreRowModel:e=>PE((()=>[e.options.data]),(n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(n,o,i){void 0===o&&(o=0);const a=[];for(let s=0;s<n.length;s++){const d=vS(e,e._getRowId(n[s],s,i),n[s],s,o);var l;t.flatRows.push(d),t.rowsById[d.id]=d,a.push(d),e.options.getSubRows&&(d.originalSubRows=e.options.getSubRows(n[s],s),null!=(l=d.originalSubRows)&&l.length&&(d.subRows=r(d.originalSubRows,o+1,d)))}return a};return t.rows=r(n),t}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>PE((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((n,t)=>{if(!t.rows.length||null==n||!n.length)return t;const r=e.getState().sorting,o=[],i=r.filter((n=>e.getColumn(n.id).getCanSort())),a={};i.forEach((n=>{const t=e.getColumn(n.id);a[n.id]={sortUndefined:t.columnDef.sortUndefined,invertSorting:t.columnDef.invertSorting,sortingFn:t.getSortingFn()}}));const l=e=>{const n=e.slice();return n.sort(((e,n)=>{for(let r=0;r<i.length;r+=1){var t;const o=i[r],l=a[o.id],s=null!=(t=null==o?void 0:o.desc)&&t;if(l.sortUndefined){const t=void 0===e.getValue(o.id),r=void 0===n.getValue(o.id);if(t||r)return t&&r?0:t?l.sortUndefined:-l.sortUndefined}let d=l.sortingFn(e,n,o.id);if(0!==d)return s&&(d*=-1),l.invertSorting&&(d*=-1),d}return e.index-n.index})),n.forEach((e=>{o.push(e),!e.subRows||e.subRows.length<=1||(e.subRows=l(e.subRows))})),n};return{rows:l(t.rows),flatRows:o,rowsById:t.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>PE((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((n,t)=>{if(!t.rows.length)return t;const{pageSize:r,pageIndex:o}=n;let{rows:i,flatRows:a,rowsById:l}=t;const s=r*o,d=s+r;let c;i=i.slice(s,d),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:function(e){const n=[],t=e=>{var r;n.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const u=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(u)};return c.rows.forEach(u),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var n;return null!=(n=e.options.debugAll)?n:e.options.debugTable}}),pageCount:R,state:{pagination:J,columnPinning:W},onColumnPinningChange:G,onPaginationChange:Q,manualPagination:!0,getRowId:function(e){return String(e[H])},manualSorting:!!j}),te=ne.getHeaderGroups,re=ne.getRowModel,oe=ne.getFooterGroups,ie=ne.getSelectedRowModel,ae=ne.previousPage,le=ne.nextPage,se=ne.setPageIndex,de=ne.getIsAllRowsSelected,ce=ne.getAllColumns,ue=ie().flatRows.map((function(e){return e.original})),pe=de();d((function(){i&&a&&a(ue)}),[ue,i,a]);var fe=ce().length,me=B&&0===n.length;return o.createElement(eT,null,o.createElement(dD,{defaultRowSize:f},o.createElement(ZD,{bulkBarActions:D,selectedRowData:ue,allSelectedCTA:pe?_:void 0}),o.createElement(nT,null,o.createElement(tT,null,o.createElement(d_,{headerGroup:te(),headerSize:m,onSort:j}),me?o.createElement("td",{colSpan:fe},B()):o.createElement(WD,{rows:re().rows,rowSize:f,isLoading:T,onRowClick:U}),o.createElement(JD,{footerGroup:oe()})),!P&&!me&&o.createElement(oT,null,o.createElement(O$,{changePageAction:function(e){return se(e)},nextPageAction:le,prevPageAction:ae,nextText:L,prevText:A,listSize:R||n.length,pageSize:q,currentPage:X})))))},u_=x.div(LT||(LT=Xe(["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"],["\n width: 90vw;\n margin: 0 auto;\n text-align: center;\n @media screen and (min-width: 768px) {\n width: 376px;\n }\n .icon {\n background-color: ",";\n width: 176px;\n height: 176px;\n border-radius: 50%;\n color: ",";\n margin: 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 76px;\n }\n h5 {\n margin-top: 2rem;\n margin-bottom: 0;\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n color: ",";\n }\n p {\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.red[50]}),(function(e){return e.theme.palette.red[500]}),(function(e){return e.theme.palette.black[100]}),(function(e){return e.theme.palette.black[80]})),p_=function(e){var n=e.action,t=e.icon,r=e.text,a=e.title,l=i((function(){return n?o.createElement(da,{onClick:function(){return n.action()},iconLeft:n.icon?n.icon:void 0,text:n.text,color:"green"}):null}),[n]);return o.createElement(u_,null,t&&o.createElement("div",{className:"icon"},o.createElement(on,Ye({},t))),a&&o.createElement("h5",null,a),r&&o.createElement("p",null,r),l)},f_=x.span(zT||(zT=Xe(["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n background: ",";\n width: 100%;\n height: 4px;\n margin-top: 6px;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:"transparent"}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),m_=x.span(HT||(HT=Xe(["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"],["\n font-family: 'Inter UI', sans-serif;\n font-style: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 21px;\n\n align-items: center;\n display: flex;\n\n color: ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[500]}),(function(e){var n=e.active,t=e.theme;return n?t.palette.primary[500]:t.palette.grey[900]})),g_=function(e){var n=e.active,t=e.handleClick,r=e.tabRef,i=e.text,a=e.tooltip,l=e.badge,s=o.createElement(h_,{ref:null==r?void 0:r(),onClick:t},o.createElement(v_,Ye({className:"item-badge",isDisabled:!0},l),o.createElement(m_,{active:n},i)),o.createElement(f_,{active:n}));return a?o.createElement(dm,Ye({},a),s):s},h_=x.div(jT||(jT=Xe(["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n position: relative;\n padding: 0;\n display: flex;\n flex-direction: column;\n"]))),v_=x(wy)(BT||(BT=Xe(["\n height: 8px;\n min-width: 8px;\n"],["\n height: 8px;\n min-width: 8px;\n"]))),y_=x.div(YT||(YT=Xe(["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"],["\n box-sizing: border-box;\n height: 31px;\n alignment-baseline: baseline;\n display: flex;\n white-space: nowrap;\n margin-top: 3px;\n width: 100%;\n\n ",";\n\n & > *:first-child {\n padding-left: ","px;\n }\n\n & > *:last-child {\n padding-right: ","px;\n }\n\n & > * + * {\n margin-left: ","px;\n }\n"])),(function(e){return e.hidden&&$(UT||(UT=Xe(["\n visibility: hidden;\n position: absolute;\n "],["\n visibility: hidden;\n position: absolute;\n "])))}),(function(e){return e.lateralPadding}),(function(e){return e.lateralPadding}),(function(e){return e.distance})),b_=x(y_)(VT||(VT=Xe(["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"],["\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n"]))),w_=function(e){var n=e.active;return o.createElement(g_,{active:n,text:o.createElement(x_,{icon:fe,fixedWidth:!0})})},x_=x(on)(WT||(WT=Xe(["\n height: 21px;\n"],["\n height: 21px;\n"]))),$_=function(e){var n=e.active,t=e.tabs,r=l((function(){return o.createElement(w_,{active:n})}),[n]),i=l((function(e){return o.createElement(o.Fragment,null,t.map((function(n,t){var r=n.active,i=n.handleClick,a=n.text;return o.createElement(za.Item,{key:t,text:a,active:r,onClick:function(){i&&i(),e()}})})))}),[t]);return o.createElement(C_,{placement:"bottom-end",fullWidth:!0,renderTrigger:r,renderContent:i})},C_=x(za)(GT||(GT=Xe(["\n display: block;\n"],["\n display: block;\n"]))),k_=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,a=e.lateralPadding,l=void 0===a?23:a,s=e.tabs,d=function(){var e=J(),n=e[0],t=e[1].width,r=c(0),o=r[0],i=r[1];return ee((function(){return i(t)}),250,[t]),{elementsWrapperRef:n,wrapperWidth:o}}(),u=d.elementsWrapperRef,p=d.wrapperWidth,f=c(0)[1],m=s.length,g=i((function(){return Array.from(Array(m),(function(){return o.createRef()}))}),[m]),h=i((function(){return g.map((function(e){return function(){return f((function(e){return e+1})),e}}))}),[g]),v=function(e){var n=e.distance,t=e.lateralPadding,r=e.tabsLength,o=e.tabsRefs,a=e.wrapperWidth;return i((function(){for(var e,i=0,l=a-2*t;i!==r&&l>0;){var s=null===(e=o[i].current)||void 0===e?void 0:e.offsetWidth;s&&l-(s+n)>0?(i++,l-=s+n):l=-1}return{visibleCount:i}}),[n,t,r,o,a])}({distance:r,tabsLength:m,wrapperWidth:p,tabsRefs:g,lateralPadding:l}).visibleCount,y=i((function(){return s.map((function(e,n){return o.createElement(g_,Ye({key:n,tabRef:h[n]},e))}))}),[h,s]),b=i((function(){return s.slice(0,v).map((function(e,n){return o.createElement(g_,Ye({key:n},e))}))}),[s,v]),w=i((function(){return s.slice(v)}),[s,v]),x=0!==w.length,$=w.some((function(e){return e.active})),C=0===p;return o.createElement(o.Fragment,null,o.createElement(E_,{className:n,distance:r,lateralPadding:l,hidden:!C},y),o.createElement(y_,{className:n,distance:r,lateralPadding:l,hidden:C,ref:u},b,x&&o.createElement($_,{active:$,tabs:w})))},E_=x(b_)(KT||(KT=Xe(["\n overflow-x: hidden;\n"],["\n overflow-x: hidden;\n"]))),S_=function(e){var n=e.className,t=e.distance,r=void 0===t?15:t,a=e.lateralPadding,l=void 0===a?23:a,s=e.tabs,d=i((function(){return s.map((function(e,n){return o.createElement(g_,Ye({key:n},e))}))}),[s]);return o.createElement(b_,{className:n,distance:r,lateralPadding:l},d)},D_=function(e){var n=e.children,t=e.theme;return o.createElement(E,{theme:t},o.createElement(o.Fragment,null,n))};export{Wi as Accordion,em as AsyncCreatableSelect,Jf as AsyncSelect,Xi as Avatar,Rv as Badge,ty as BadgeSize,gv as BadgeType,Uv as Banner,Ov as BannerType,Ao as Body,da as Button,Vo as Caption,qv as Card,zv as CardColor,Hv as CardElevation,Lv as CardType,el as Checkbox,Hi as CheckboxStatus,sy as Chip,Gv as ChipType,wS as ColumnDefType,SE as ConfirmationModal,Zf as CreatableSelect,Hm as DatePicker,ha as Drawer,za as Dropdown,k_ as DropdownTabs,ih as FileUploader,ry as FloatingBadgeType,nv as GroupedList,Yo as Headline,on as Icon,en as IconBackground,ca as IconButton,Dv as InlineMessage,Dh as InlineMessageType,Vc as InputCode,Ya as InputHelper,rm as InputTelephone,fm as InputText,_v as MicroTag,rE as Modal,Wk as ModalBody,oE as ModalSearchable,c_ as NewTable,yy as NotificationBadge,p_ as PageEmptySet,O$ as Pagination,Kx as PaginationType,oC as ProgressBar,qx as ProgressBarType,Oh as Radio,Ah as RadioGroup,qg as RadioStatus,S_ as ScrollableTabs,sC as SegmentButton,Qf as Select,PC as ShortcutTip,qw as SidebarBadgeConfigType,ix as SidebarItem,sn as Spinner,cE as StepModal,gE as StepModalBody,hE as StepModalFooter,vE as StepModalHeader,hC as Stepper,D$ as Table,$C as Tag,Yh as TextArea,D_ as ThemeProvider,_C as Tip,nC as TipType,Lo as Title1,zo as Title2,Ho as Title3,jo as Title4,Bo as Title5,Uo as Title6,zk as Toast,DC as ToastType,dm as Tooltip,wy as WithBadge,$c as autocompleteYellow,Vf as isSimpleValue,ex as sidebarItemHeight,Fm as timeConversionOptions,Hk as toastPalette,rl as useCheckboxValue,jm as useFormattedDate,_h as useRadioValue,Tf as useSelectMultiValues,Sf as useSelectSimpleValue,Df as useSelectValue,ax as useTableValues};
56
56
  //# sourceMappingURL=index.esm.js.map