Files
WEBtomaste/Atomaste Reference/public_html/wp-content/plugins/burst-statistics/settings/build/110.b9a3cede1dff16422175.js

383 lines
126 KiB
JavaScript
Raw Normal View History

2025-12-10 12:17:30 -05:00
(globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[]).push([[110],{8241:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>s});var r=new WeakMap,o=new WeakMap,a={},i=0,l=function(e){return e&&(e.host||l(e.parentNode))},s=function(e,t,n){void 0===n&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),c=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live]"))),function(e,t,n,s){var c=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=l(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var u=a[n],d=[],p=new Set,f=new Set(c),g=function(e){e&&!p.has(e)&&(p.add(e),g(e.parentNode))};c.forEach(g);var h=function(e){e&&!f.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(p.has(e))h(e);else{var t=e.getAttribute(s),a=null!==t&&"false"!==t,i=(r.get(e)||0)+1,l=(u.get(e)||0)+1;r.set(e,i),u.set(e,l),d.push(e),1===i&&a&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(s,"true")}}))};return h(t),p.clear(),i++,function(){d.forEach((function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(o.has(e)||e.removeAttribute(s),o.delete(e)),a||e.removeAttribute(n)})),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}}(s,c,n,"aria-hidden")):function(){return null}}},3757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),o=n(2577);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,l=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(r),s=a(r),c=a(o);function u(e,t){return e[t]}function d(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function p(e=[],t,n="id"){const r=e.slice(),o=u(t,n);return o?r.splice(r.findIndex((e=>u(e,n)===o)),1):r.splice(r.findIndex((e=>e===t)),1),r}function f(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(i||(i={}));const m=()=>null;function v(e,t=[],n=[]){let r={},o=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(r=t.style||{},t.classNames&&(o=[...o,...t.classNames]),"function"==typeof t.style&&(r=t.style(e)||{}))})),{conditionalStyle:r,classNames:o.join(" ")}}function b(e,t=[],n="id"){const r=u(e,n);return r?t.some((e=>u(e,n)===r)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>y(e.id,t))):-1}function y(e,t){return e==t}function x(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:r,rowCount:o,mergeSelections:a}=t,i=!e.allSelected,l=!e.toggleOnSelectedRowsChange;if(a){const t=i?[...e.selectedRows,...r.filter((t=>!b(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!b(e,r,n)));return Object.assign(Object.assign({},e),{allSelected:i,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:l})}return Object.assign(Object.assign({},e),{allSelected:i,selectedCount:i?o:0,selectedRows:i?r:[],toggleOnSelectedRowsChange:l})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:o,isSelected:a,rowCount:i,singleSelect:l}=t;return l?a?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[o],toggleOnSelectedRowsChange:n}):a?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,s
pointer-events: none;
opacity: 0.4;
`,E=c.default.div`
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 100%;
${({disabled:e})=>e&&C};
${({theme:e})=>e.table.style};
`,S=o.css`
position: sticky;
position: -webkit-sticky; /* Safari */
top: 0;
z-index: 1;
`,R=c.default.div`
display: flex;
width: 100%;
${({$fixedHeader:e})=>e&&S};
${({theme:e})=>e.head.style};
`,O=c.default.div`
display: flex;
align-items: stretch;
width: 100%;
${({theme:e})=>e.headRow.style};
${({$dense:e,theme:t})=>e&&t.headRow.denseStyle};
`,P=(e,...t)=>o.css`
@media screen and (max-width: ${599}px) {
${o.css(e,...t)}
}
`,k=(e,...t)=>o.css`
@media screen and (max-width: ${959}px) {
${o.css(e,...t)}
}
`,A=(e,...t)=>o.css`
@media screen and (max-width: ${1280}px) {
${o.css(e,...t)}
}
`,D=c.default.div`
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
line-height: normal;
${({theme:e,$headCell:t})=>e[t?"headCells":"cells"].style};
${({$noPadding:e})=>e&&"padding: 0"};
`,$=c.default(D)`
flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
flex-shrink: 0;
flex-basis: 0;
max-width: ${({maxWidth:e})=>e||"100%"};
min-width: ${({minWidth:e})=>e||"100px"};
${({width:e})=>e&&o.css`
min-width: ${e};
max-width: ${e};
`};
${({right:e})=>e&&"justify-content: flex-end"};
${({button:e,center:t})=>(t||e)&&"justify-content: center"};
${({compact:e,button:t})=>(e||t)&&"padding: 0"};
/* handle hiding cells */
${({hide:e})=>e&&"sm"===e&&P`
display: none;
`};
${({hide:e})=>e&&"md"===e&&k`
display: none;
`};
${({hide:e})=>e&&"lg"===e&&A`
display: none;
`};
${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...n)=>o.css`
@media screen and (max-width: ${e}px) {
${o.css(t,...n)}
}
`)(e)`
display: none;
`};
`,I=o.css`
div:first-child {
white-space: ${({$wrapCell:e})=>e?"normal":"nowrap"};
overflow: ${({$allowOverflow:e})=>e?"visible":"hidden"};
text-overflow: ellipsis;
}
`,T=c.default($).attrs((e=>({style:e.style})))`
${({$renderAsCell:e})=>!e&&I};
${({theme:e,$isDragging:t})=>t&&e.cells.draggingStyle};
${({$cellStyle:e})=>e};
`;var _=l.memo((function({id:e,column:t,row:n,rowIndex:r,dataTag:o,isDragging:a,onDragStart:i,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:d}){const{conditionalStyle:p,classNames:f}=v(n,t.conditionalCellStyles,["rdt_TableCell"]);return l.createElement(T,{id:e,"data-column-id":t.id,role:"cell",className:f,"data-tag":o,$cellStyle:t.style,$renderAsCell:!!t.cell,$allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,$wrapCell:t.wrap,style:p,$isDragging:a,onDragStart:i,onDragOver:s,onDragEnd:c,onDragEnter:u,onDragLeave:d},!t.cell&&l.createElement("div",{"data-tag":o},function(e,t,n,r){return t?n&&"function"==typeof n?n(e,r):t(e,r):null}(n,t.selector,t.format,r)),t.cell&&t.cell(n,r,t,e))}));const L="input";var j=l.memo((function({name:e,component:t=L,componentOptions:n={style:{}},indeterminate:r=!1,checked:o=!1,disabled:a=!1,onClick:i=m}){const s=t,c=s!==L?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(a),u=l.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((r,o)=>{const a=e;"function"==typeof r&&(n=Object.assign(Object.assign({},a),{[Object.keys(e)[o]]:r(...t)}))})),n||e}(n,r)),[n,r]);return l.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},style:c,onClick:a?m:i,name:e,"aria-label":e,checked:o,disabled:a},u,{onChange:m}))}));const M=c.default(D)`
flex: 0 0 48px;
min-width: 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
`;function F({name:e,keyField:t,row:n,rowCount:r,selected:o,selectableRowsComponent:a,selectableRowsComponentProps:i,selectableRowsSingle:s,selectableRowDisabled:c,onSelectedRow:u}){const d=!(!c||!c(n));return l.createElement(M,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},l.createElement(j,{name:e,component:a,componentOptions:i,checked:o,"aria-checked":o,onClick:()=>{u({type:"SELECT_SINGLE_ROW",row:n,isSelected:o,keyField:t,rowCount:r,singleSelect:s})},disabled:d}))}const N=c.default.button`
display: inline-flex;
align-items: center;
user-select: none;
white-space: nowrap;
border: none;
background-color: transparent;
${({theme:e})=>e.expanderButton.style};
`;function H({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:r,row:o,onToggled:a}){const i=t?n.expanded:n.collapsed;return l.createElement(N,{"aria-disabled":e,onClick:()=>a&&a(o),"data-testid":`expander-button-${r}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},i)}const W=c.default(D)`
white-space: nowrap;
font-weight: 400;
min-width: 48px;
${({theme:e})=>e.expanderCell.style};
`;function B({row:e,expanded:t=!1,expandableIcon:n,id:r,onToggled:o,disabled:a=!1}){return l.createElement(W,{onClick:e=>e.stopPropagation(),$noPadding:!0},l.createElement(H,{id:r,row:e,expanded:t,expandableIcon:n,disabled:a,onToggled:o}))}const z=c.default.div`
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.expanderRow.style};
${({$extendedRowStyle:e})=>e};
`;var G=l.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:o}){const a=["rdt_ExpanderRow",...o.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return l.createElement(z,{className:a,$extendedRowStyle:r},l.createElement(t,Object.assign({data:e},n)))}));const K="allowRowEvents";var V,U,Y;t.Direction=void 0,(V=t.Direction||(t.Direction={})).LTR="ltr",V.RTL="rtl",V.AUTO="auto",t.Alignment=void 0,(U=t.Alignment||(t.Alignment={})).LEFT="left",U.RIGHT="right",U.CENTER="center",t.Media=void 0,(Y=t.Media||(t.Media={})).SM="sm",Y.MD="md",Y.LG="lg";const q=o.css`
&:hover {
${({$highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
}
`,X=o.css`
&:hover {
cursor: pointer;
}
`,Z=c.default.div.attrs((e=>({style:e.style})))`
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
box-sizing: border-box;
${({theme:e})=>e.rows.style};
${({$dense:e,theme:t})=>e&&t.rows.denseStyle};
${({$striped:e,theme:t})=>e&&t.rows.stripedStyle};
${({$highlightOnHover:e})=>e&&q};
${({$pointerOnHover:e})=>e&&X};
${({$selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
${({$conditionalStyle:e})=>e};
`;function J({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:o=!1,expandableIcon:a,expandableRows:i=!1,expandableRowsComponent:s,expandableRowsComponentProps:c,expandableRowsHideExpander:d,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:f=!1,highlightOnHover:g=!1,id:h,expandableInheritConditionalStyles:b,keyField:w,onRowClicked:x=m,onRowDoubleClicked:C=m,onRowMouseEnter:E=m,onRowMouseLeave:S=m,onRowExpandToggled:R=m,onSelectedRow:O=m,pointerOnHover:P=!1,row:k,rowCount:A,rowIndex:D,selectableRowDisabled:$=null,selectableRows:I=!1,selectableRowsComponent:T,selectableRowsComponentProps:L,selectableRowsHighlight:j=!1,selectableRowsSingle:M=!1,selected:N,striped:H=!1,draggingColumnId:W,onDragStart:z,onDragOver:V,onDragEnd:U,onDragEnter:Y,onDragLeave:q}){const[X,J]=l.useState(n);l.useEffect((()=>{J(n)}),[n]);const Q=l.useCallback((()=>{J(!X),R(!X,k)}),[X,R,k]),ee=P||i&&(p||f),te=l.useCallback((e=>{e.target.getAttribute("data-tag")===K&&(x(k,e),!r&&i&&p&&Q())}),[r,p,i,Q,x,k]),ne=l.useCallback((e=>{e.target.getAttribute("data-tag")===K&&(C(k,e),!r&&i&&f&&Q())}),[r,f,i,Q,C,k]),re=l.useCallback((e=>{E(k,e)}),[E,k]),oe=l.useCallback((e=>{S(k,e)}),[S,k]),ae=u(k,w),{conditionalStyle:ie,classNames:le}=v(k,t,["rdt_TableRow"]),se=j&&N,ce=b?ie:{},ue=H&&D%2==0;return l.createElement(l.Fragment,null,l.createElement(Z,{id:`row-${h}`,role:"row",$striped:ue,$highlightOnHover:g,$pointerOnHover:!r&&ee,$dense:o,onClick:te,onDoubleClick:ne,onMouseEnter:re,onMouseLeave:oe,className:le,$selected:se,$conditionalStyle:ie},I&&l.createElement(F,{name:`select-row-${ae}`,keyField:w,row:k,rowCount:A,selected:N,selectableRowsComponent:T,selectableRowsComponentProps:L,selectableRowDisabled:$,selectableRowsSingle:M,onSelectedRow:O}),i&&!d&&l.createElement(B,{id:ae,expandableIcon:a,expanded:X,row:k,onToggled:Q,disabled:r}),e.map((e=>e.omit?null:l.createElement(_,{id:`cell-${e.id}-${ae}`,key:`cell-${e.id}-${ae}`,dataTag:e.ignoreRowClick||e.button?null:K,column:e,row:k,rowIndex:D,isDragging:y(W,e.id),onDragStart:z,onDragOver:V,onDragEnd:U,onDragEnter:Y,onDragLeave:q})))),i&&X&&l.createElement(G,{key:`expander-${ae}`,data:k,extendedRowStyle:ce,extendedClassNames:le,ExpanderComponent:s,expanderComponentProps:c}))}const Q=c.default.span`
padding: 2px;
color: inherit;
flex-grow: 0;
flex-shrink: 0;
${({$sortActive:e})=>e?"opacity: 1":"opacity: 0"};
${({$sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
`,ee=({sortActive:e,sortDirection:t})=>s.default.createElement(Q,{$sortActive:e,$sortDirection:t},"▲"),te=c.default($)`
${({button:e})=>e&&"text-align: center"};
${({theme:e,$isDragging:t})=>t&&e.headCells.draggingStyle};
`,ne=o.css`
cursor: pointer;
span.__rdt_custom_sort_icon__ {
i,
svg {
transform: 'translate3d(0, 0, 0)';
${({$sortActive:e})=>e?"opacity: 1":"opacity: 0"};
color: inherit;
font-size: 18px;
height: 18px;
width: 18px;
backface-visibility: hidden;
transform-style: preserve-3d;
transition-duration: 95ms;
transition-property: transform;
}
&.asc i,
&.asc svg {
transform: rotate(180deg);
}
}
${({$sortActive:e})=>!e&&o.css`
&:hover,
&:focus {
opacity: 0.7;
span,
span.__rdt_custom_sort_icon__ * {
opacity: 0.7;
}
}
`};
`,re=c.default.div`
display: inline-flex;
align-items: center;
justify-content: inherit;
height: 100%;
width: 100%;
outline: none;
user-select: none;
overflow: hidden;
${({disabled:e})=>!e&&ne};
`,oe=c.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;var ae=l.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:r={},sortDirection:o,sortIcon:a,sortServer:s,pagination:c,paginationServer:u,persistSelectedOnSort:d,selectableRowsVisibleOnly:p,onSort:f,onDragStart:g,onDragOver:h,onDragEnd:m,onDragEnter:v,onDragLeave:b}){l.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[w,x]=l.useState(!1),C=l.useRef(null);if(l.useEffect((()=>{C.current&&x(C.current.scrollWidth>C.current.clientWidth)}),[w]),e.omit)return null;const E=()=>{if(!e.sortable&&!e.selector)return;let t=o;y(r.id,e.id)&&(t=o===i.ASC?i.DESC:i.ASC),f({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&u&&!d||s||p})},S=e=>l.createElement(ee,{sortActive:e,sortDirection:o}),R=()=>l.createElement("span",{className:[o,"__rdt_custom_sort_icon__"].join(" ")},a),O=!(!e.sortable||!y(r.id,e.id)),P=!e.sortable||t,k=e.sortable&&!a&&!e.right,A=e.sortable&&!a&&e.right,D=e.sortable&&a&&!e.right,$=e.sortable&&a&&e.right;return l.createElement(te,{"data-column-id":e.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,$isDragging:y(e.id,n),onDragStart:g,onDragOver:h,onDragEnd:m,onDragEnter:v,onDragLeave:b},e.name&&l.createElement(re,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:P?void 0:E,onKeyPress:P?void 0:e=>{"Enter"===e.key&&E()},$sortActive:!P&&O,disabled:P},!P&&$&&R(),!P&&A&&S(O),"string"==typeof e.name?l.createElement(oe,{title:w?e.name:void 0,ref:C,"data-column-id":e.id},e.name):e.name,!P&&D&&R(),!P&&k&&S(O)))}));const ie=c.default(D)`
flex: 0 0 48px;
justify-content: center;
align-items: center;
user-select: none;
white-space: nowrap;
font-size: unset;
`;function le({headCell:e=!0,rowData:t,keyField:n,allSelected:r,mergeSelections:o,selectedRows:a,selectableRowsComponent:i,selectableRowsComponentProps:s,selectableRowDisabled:c,onSelectAllRows:u}){const d=a.length>0&&!r,p=c?t.filter((e=>!c(e))):t,f=0===p.length,g=Math.min(t.length,p.length);return l.createElement(ie,{className:"rdt_TableCol",$headCell:e,$noPadding:!0},l.createElement(j,{name:"select-all-rows",component:i,componentOptions:s,onClick:()=>{u({type:"SELECT_ALL_ROWS",rows:p,rowCount:g,mergeSelections:o,keyField:n})},checked:r,indeterminate:d,disabled:f}))}function se(e=t.Direction.AUTO){const n="object"==typeof window,[r,o]=l.useState(!1);return l.useEffect((()=>{if(n)if("auto"!==e)o("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],r="rtl"===t.dir||"rtl"===n.dir;o(e&&r)}}),[e,n]),r}const ce=c.default.div`
display: flex;
align-items: center;
flex: 1 0 auto;
height: 100%;
color: ${({theme:e})=>e.contextMenu.fontColor};
font-size: ${({theme:e})=>e.contextMenu.fontSize};
font-weight: 400;
`,ue=c.default.div`
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
`,de=c.default.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: inherit;
z-index: 1;
align-items: center;
justify-content: space-between;
display: flex;
${({$rtl:e})=>e&&"direction: rtl"};
${({theme:e})=>e.contextMenu.style};
${({theme:e,$visible:t})=>t&&e.contextMenu.activeStyle};
`;function pe({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:r,direction:o}){const a=se(o),i=r>0;return n?l.createElement(de,{$visible:i},l.cloneElement(n,{selectedCount:r})):l.createElement(de,{$visible:i,$rtl:a},l.createElement(ce,null,((e,t,n)=>{if(0===t)return null;const r=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${r}`:`${t} ${r} ${e.message||""}`})(e,r,a)),l.createElement(ue,null,t))}const fe=c.default.div`
position: relative;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
width: 100%;
flex-wrap: wrap;
${({theme:e})=>e.header.style}
`,ge=c.default.div`
flex: 1 0 auto;
color: ${({theme:e})=>e.header.fontColor};
font-size: ${({theme:e})=>e.header.fontSize};
font-weight: 400;
`,he=c.default.div`
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: flex-end;
> * {
margin-left: 5px;
}
`,me=({title:e,actions:t=null,contextMessage:n,contextActions:r,contextComponent:o,selectedCount:a,direction:i,showMenu:s=!0})=>l.createElement(fe,{className:"rdt_TableHeader",role:"heading","aria-level":1},l.createElement(ge,null,e),t&&l.createElement(he,null,t),s&&l.createElement(pe,{contextMessage:n,contextActions:r,contextComponent:o,direction:i,selectedCount:a}));function ve(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;const be={left:"flex-start",right:"flex-end",center:"center"},we=c.default.header`
position: relative;
display: flex;
flex: 1 1 auto;
box-sizing: border-box;
align-items: center;
padding: 4px 16px 4px 24px;
width: 100%;
justify-content: ${({align:e})=>be[e]};
flex-wrap: ${({$wrapContent:e})=>e?"wrap":"nowrap"};
${({theme:e})=>e.subHeader.style}
`,ye=e=>{var{align:t="right",wrapContent:n=!0}=e,r=ve(e,["align","wrapContent"]);return l.createElement(we,Object.assign({align:t,$wrapContent:n},r))},xe=c.default.div`
display: flex;
flex-direction: column;
`,Ce=c.default.div`
position: relative;
width: 100%;
border-radius: inherit;
${({$responsive:e,$fixedHeader:t})=>e&&o.css`
overflow-x: auto;
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
overflow-y: ${t?"auto":"hidden"};
min-height: 0;
`};
${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&o.css`
max-height: ${t};
-webkit-overflow-scrolling: touch;
`};
${({theme:e})=>e.responsiveWrapper.style};
`,Ee=c.default.div`
position: relative;
box-sizing: border-box;
width: 100%;
height: 100%;
${e=>e.theme.progress.style};
`,Se=c.default.div`
position: relative;
width: 100%;
${({theme:e})=>e.tableWrapper.style};
`,Re=c.default(D)`
white-space: nowrap;
${({theme:e})=>e.expanderCell.style};
`,Oe=c.default.div`
box-sizing: border-box;
width: 100%;
height: 100%;
${({theme:e})=>e.noData.style};
`,Pe=()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},s.default.createElement("path",{d:"M7 10l5 5 5-5z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),ke=c.default.select`
cursor: pointer;
height: 24px;
max-width: 100%;
user-select: none;
padding-left: 8px;
padding-right: 24px;
box-sizing: content-box;
font-size: inherit;
color: inherit;
border: none;
background-color: transparent;
appearance: none;
direction: ltr;
flex-shrink: 0;
&::-ms-expand {
display: none;
}
&:disabled::-ms-expand {
background: #f60;
}
option {
color: initial;
}
`,Ae=c.default.div`
position: relative;
flex-shrink: 0;
font-size: inherit;
color: inherit;
margin-top: 1px;
svg {
top: 0;
right: 0;
color: inherit;
position: absolute;
fill: currentColor;
width: 24px;
height: 24px;
display: inline-block;
user-select: none;
pointer-events: none;
}
`,De=e=>{var{defaultValue:t,onChange:n}=e,r=ve(e,["defaultValue","onChange"]);return l.createElement(Ae,null,l.createElement(ke,Object.assign({onChange:n,defaultValue:t},r)),l.createElement(Pe,null))},$e={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return s.default.createElement("div",null,"To add an expander pass in a component instance via ",s.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),s.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),s.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:s.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:s.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),s.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),s.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z
display: flex;
flex: 1 1 auto;
justify-content: flex-end;
align-items: center;
box-sizing: border-box;
padding-right: 8px;
padding-left: 8px;
width: 100%;
${({theme:e})=>e.pagination.style};
`,_e=c.default.button`
position: relative;
display: block;
user-select: none;
border: none;
${({theme:e})=>e.pagination.pageButtonsStyle};
${({$isRTL:e})=>e&&"transform: scale(-1, -1)"};
`,Le=c.default.div`
display: flex;
align-items: center;
border-radius: 4px;
white-space: nowrap;
${P`
width: 100%;
justify-content: space-around;
`};
`,je=c.default.span`
flex-shrink: 1;
user-select: none;
`,Me=c.default(je)`
margin: 0 24px;
`,Fe=c.default(je)`
margin: 0 4px;
`;var Ne=l.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:r=$e.direction,paginationRowsPerPageOptions:o=$e.paginationRowsPerPageOptions,paginationIconLastPage:a=$e.paginationIconLastPage,paginationIconFirstPage:i=$e.paginationIconFirstPage,paginationIconNext:s=$e.paginationIconNext,paginationIconPrevious:c=$e.paginationIconPrevious,paginationComponentOptions:u=$e.paginationComponentOptions,onChangeRowsPerPage:d=$e.onChangeRowsPerPage,onChangePage:p=$e.onChangePage}){const f=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,r]=l.useState(t);return l.useEffect((()=>{if(!e)return()=>null;function n(){r(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),h=se(r),m=f.width&&f.width>599,v=g(t,e),b=n*e,w=b-e+1,y=1===n,x=n===v,C=Object.assign(Object.assign({},Ie),u),E=n===v?`${w}-${t} ${C.rangeSeparatorText} ${t}`:`${w}-${b} ${C.rangeSeparatorText} ${t}`,S=l.useCallback((()=>p(n-1)),[n,p]),R=l.useCallback((()=>p(n+1)),[n,p]),O=l.useCallback((()=>p(1)),[p]),P=l.useCallback((()=>p(g(t,e))),[p,t,e]),k=l.useCallback((e=>d(Number(e.target.value),n)),[n,d]),A=o.map((e=>l.createElement("option",{key:e,value:e},e)));C.selectAllRowsItem&&A.push(l.createElement("option",{key:-1,value:t},C.selectAllRowsItemText));const D=l.createElement(De,{onChange:k,defaultValue:e,"aria-label":C.rowsPerPageText},A);return l.createElement(Te,{className:"rdt_Pagination"},!C.noRowsPerPage&&m&&l.createElement(l.Fragment,null,l.createElement(Fe,null,C.rowsPerPageText),D),m&&l.createElement(Me,null,E),l.createElement(Le,null,l.createElement(_e,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":y,onClick:O,disabled:y,$isRTL:h},i),l.createElement(_e,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":y,onClick:S,disabled:y,$isRTL:h},c),!C.noRowsPerPage&&!m&&D,l.createElement(_e,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":x,onClick:R,disabled:x,$isRTL:h},s),l.createElement(_e,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":x,onClick:P,disabled:x,$isRTL:h},a)))}));const He=(e,t)=>{const n=l.useRef(!0);l.useEffect((()=>{n.current?n.current=!1:e()}),t)};var We=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Be}(e)}(e)},Be="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ue((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ge(e,t,n){return e.concat(t).map((function(e){return ze(e,n)}))}function Ke(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ve(e,t){try{return t in e}catch(e){return!1}}function Ue(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ge,n.isMergeableObject=n.isMergeableObject||We,n.cloneUnlessOtherwiseSpecified=ze;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Ke(e).forEach((function(t){r[t]=ze(e[t],n)})),Ke(t).forEach((function(o){(function(e,t){return Ve(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ve(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Ue;var n=t.customMerge(e);return"function"==typeof n?n:Ue}(o,n)(e[o],t[o],n):r[o]=ze(t[o],n))})),r}(e,t,n):ze(t,n)}Ue.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ue(e,n,t)}),{})};var Ye=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ue);const qe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background: