@genesislcap/design-system-configurator 14.371.0-patch.2 → 14.371.0-patch.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8370,7 +8370,7 @@
8370
8370
  ${n}
8371
8371
  ${l}
8372
8372
  ${g}
8373
- `},49874:(a,e,r)=>{function t(a){const e=[];for(const[r]of a)r&&e.push(r);return e}function o(a){const e=[];function r(a){for(const r of a)null!==r&&e.push(r)}for(const[e,t]of a)null!==e&&null!==t&&r(t);return e}r.d(e,{P:()=>o,i:()=>t})},50103:(a,e,r)=>{r.d(e,{w:()=>t});const t=a=>a.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},51266:(a,e,r)=>{r.d(e,{LU:()=>_,RB:()=>ea,Z$:()=>aa,cF:()=>$,zI:()=>Z});var t=r(55823),o=r(29310),i=r(44210),n=r(84646),l=r(6884),g=r(21409),d=r(17190),s=r(52945),c=r(33681),p=r(84674),u=r(31679),h=r(98682),v=r(62051),m=r.n(v),b=r(56943),f=r(49255),w=r(56182),y=r(48072),z=r(48075),x=r(43352),k=r(67489),C=r(39604),A=r(60905),D=r(46255),S=r(19511),M=r(80879),R=r(64315),T=r(63296),E=r(24638),N=r(18070),I=r(46374),O=r(90509),L=r(26062),P=r(79270),j=r(32610),F=r(98884),B=r(82128),U=r(55365),G=r(53397),Y=r(49104),Q=r(19060),V=r(52540),W=r(88863),q=r(71964),H=r(73203),J=r(23201),X=r(1510),K=r(50103);L.D,T.L,E.X,b.O,R.G,i.syG.registerModules([n.n7,o.Q]);const Z=i.kNx.ALL_PROPERTIES.filter(a=>"rowData"!==a);class $ extends((0,g.S)(p.FoundationElement)){rowDataChanged(a,e){this.initialised&&this.gridApi.setRowData(e)}themeChanged(a,e){if(!e)return this.classNames="",void this.destroyFontFace();this.classNames=(0,u.x)((0,U.eL)(e),e),this.insertFontFace(e)}getfilterModel(){return(0,t.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(a){return(0,t.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,a):this._filterConfig=a})}constructor(){super(),this.cachedTotalColumnWidth=null,this.columnCount=0,this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.sizeColumnsToContent=!1,this.sizeColumnsToFit=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.defaultColumnConfig=[],this.gridFontFace=I.qh,this.columnComponentName="grid-pro-column",this.theme=U.mJ.alpine,this.themeMode="dark",this.pagination=!1,this.statusBarConfig=U.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.eventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Z.reduce((a,e)=>(a[e.toLowerCase()]=e,a[(0,K.w)(e)]=e,a),{});const a=this.hideDatasourceError.bind(this);this.eventHandlers.push([O.V.dataInit,a],[j.yY.datasourceErrorClose,a],[N.L.error,this.handleBaseDatasourceError.bind(this)],[N.L.connected,a],[P.c.initialize,this.handleInitialize.bind(this)],[P.c.dataLoaded,this.handleDataLoaded.bind(this)],[P.c.dataChanged,this.handleDataChanged.bind(this)],[P.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[P.c.dataCleared,this.handleDataCleared.bind(this)],[P.c.loadingStarted,this.handleLoadingStarted.bind(this)],[P.c.loadingFinished,this.handleLoadingFinished.bind(this)],[P.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[P.c.filtersRestored,this.handleFiltersRestored.bind(this)],[P.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[P.c.error,this.handleDatasourceError.bind(this)],[P.c.destroy,this.handleDatasourceDestroy.bind(this)],[P.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[P.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[P.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[P.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[P.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[P.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)])}addEventListener(a,e,r){super.addEventListener(a,e,r),i.kNx.PUBLIC_EVENTS.includes(a)&&(this.gridApi?this.addGridEventListener(a):this.gridEventsQueue.includes(a)||this.gridEventsQueue.push(a))}addGridEventListener(a){this.registeredGridEvents.has(a)||(this.registeredGridEvents.add(a),this.gridApi.addEventListener(a,e=>{this.$emit(a,e)}))}handleError(a,e){this.gridErrorItems=[...this.gridErrorItems,{detail:e.detail,type:a}]}handleBaseDatasourceError(a){const e={detail:{message:a.detail.message},type:j.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:e.detail,type:e.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(a=>a.type!==j.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,d.j)(this,a=>{a&&this.debouncedColumnAutosize.bind(this)()}),this.rehydrationAttempted=!1,this.eventHandlers.forEach(([a,e])=>{this.addEventListener(a,e)}),this.shouldRunConnect&&(Z.forEach(a=>{Object.defineProperty(this,a,{set:e=>{this.agAttributeChangedCallback((0,K.w)(a),void 0,e)},enumerable:!0,configurable:!0})}),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:l.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const a=this.shouldRunDisconnect;this.eventHandlers.forEach(([a,e])=>{this.removeEventListener(a,e)}),c.DOM.queueUpdate(()=>{a&&(this.initialised=!1,this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.invalidateColumnWidthCache(),this.registeredGridEvents.clear())})}handleInitialize(a){const{options:e,keepColDefsOnClearRowData:r}=a.detail;let t;r&&(t=this.gridApi.getColumnDefs(),this.columnState=this.columnApi.getColumnState());const o=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t&&{columnDefs:t}),e);this.gridOptions=Object.assign({},o),this.initGrid()}handleDataLoaded(a){const{data:e}=a.detail;this.gridApi&&this.gridApi.setRowData(e)}handleDataChanged(a){var e,r,t;const{changes:o}=a.detail;if(this.gridApi){if((null===(e=o.add)||void 0===e?void 0:e.length)>0)if(this.asyncAdd)this.gridApi.applyTransactionAsync({add:o.add,addIndex:this.addIndex},a=>{this.flashAddedCells(null==a?void 0:a.add)});else{const a=this.gridApi.applyTransaction({add:o.add,addIndex:this.addIndex});this.flashAddedCells(null==a?void 0:a.add)}(null===(r=o.update)||void 0===r?void 0:r.length)>0&&(this.asyncUpdate?this.gridApi.applyTransactionAsync({update:o.update}):this.gridApi.applyTransaction({update:o.update})),(null===(t=o.remove)||void 0===t?void 0:t.length)>0&&(this.asyncRemove?this.gridApi.applyTransactionAsync({remove:o.remove}):this.gridApi.applyTransaction({remove:o.remove}))}}flashAddedCells(a){this.enableRowFlashing&&(null==a?void 0:a.length)&&this.gridApi.flashCells({rowNodes:a})}handleSchemaUpdated(a){return(0,t.sH)(this,void 0,void 0,function*(){const{schema:e,metadata:r}=a.detail,t=this.gridApi.getColumnDefs();if(!t||0===t.length){const a=r.map(a=>{var r;return Object.assign(Object.assign({},e.find(e=>e.field===a.name)),null===(r=this.gridApi)||void 0===r?void 0:r.getColumnDef(a.name))}).map(a=>Object.assign(Object.assign({},a),{cellRenderer:this.autoCellRendererByType?a.cellRenderer:void 0,cellEditor:this.autoCellRendererByType?a.cellEditor:void 0})),t=yield this.mergeAllColumnDefsAndStates(a,!0);t&&(t.forEach(a=>{a.rowGroup||(a.rowGroup=null),a.pivot||(a.pivot=null)}),this.gridApi.setColumnDefs(t))}})}handleDataCleared(a){var e,r;const{includeSchema:t}=a.detail;this.gridApi&&(this.isServerSide||(this.asyncAdd||this.asyncUpdate||this.asyncRemove)&&(null===(r=(e=this.gridApi).flushAsyncTransactions)||void 0===r||r.call(e)),t&&this.gridApi.setColumnDefs([]),this.isServerSide||(this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0})))}handleLoadingStarted(){this.gridApi&&this.gridApi.showLoadingOverlay()}handleLoadingFinished(){this.gridApi&&this.gridApi.hideOverlay()}handleNoDataAvailable(){this.gridApi&&this.gridApi.showNoRowsOverlay()}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(a){var e,r,t,o;const{hasMoreData:i,sourceRef:n}=a.detail;if(!this.gridApi)return;const l=null===(r=(e=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(e,U.k7.loadMore);l&&(null===(o=(t=l).updateParams)||void 0===o||o.call(t,{moreRows:i,sourceRef:n}))}handleDatasourceError(a){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(a){const{purge:e}=a.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:e})}handleSetServerSideDatasource(a){const{datasource:e}=a.detail;this.gridApi&&this.gridApi.setServerSideDatasource(e)}handleAddGridCssClass(a){var e;const{className:r}=a.detail,t=(null===(e=this.gridSlot)||void 0===e?void 0:e.parentElement)||this;t&&t.classList.add(r)}handleRemoveGridCssClass(a){var e;const{className:r}=a.detail,t=(null===(e=this.gridSlot)||void 0===e?void 0:e.parentElement)||this;t&&t.classList.remove(r)}handleApplyServerSideTransaction(a){const{transaction:e,async:r,callback:t}=a.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(e,t);else{const a=this.gridApi.applyServerSideTransaction(e);t&&t(a)}}combineAllGridComponents(a){const e={[U.IX.action]:k.eA,[U.IX.actionsMenu]:C.cN,[U.IX.boolean]:A._Y,[U.IX.editable]:D.YM,[U.IX.statusPill]:S.N7,[U.IX.select]:M.gs,[U.IX.selectEditor]:z._Q,[U.IX.numberEditor]:y.Z0,[U.IX.multiselectEditor]:w.pZ,[U.IX.dateEditor]:f.S8,[U.IX.stringEditor]:x.XJ,[U.k7.labelValue]:V.k,[U.k7.loadMore]:Y.s,[U.k7.pagination]:Q.h,[U.k7.reload]:W.W,[U.k7.rowCount]:q.i};return Object.assign(Object.assign(Object.assign({},e),a),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var a,e,r,t;try{if(!this.initialised||!this.gridApi)return[];const o=null===(a=this.gridOptions)||void 0===a?void 0:a.rowSelection;if("single"===o||"multiple"===o)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(r=this.gridOptions)||void 0===r?void 0:r.enableRangeSelection)){const a=null===(t=this.gridApi)||void 0===t?void 0:t.getFocusedCell();if(a){const e=this.gridApi.getDisplayedRowAtIndex(a.rowIndex);if(null==e?void 0:e.data)return[e.data]}}return[]}catch(a){return X.v.error("Grid Pro: Error getting selected rows:",a),[]}}getCellRangeRowData(){var a;if(!(null===(a=this.gridApi)||void 0===a?void 0:a.getCellRanges))return[];const e=this.gridApi.getCellRanges();if(0===e.length)return[];const r=[];return e.forEach(a=>{const e=a.startRow.rowIndex,t=a.endRow.rowIndex;for(let a=e;a<=t;a+=1){const e=this.gridApi.getDisplayedRowAtIndex(a);(null==e?void 0:e.data)&&!r.some(a=>a===e.data)&&r.push(e.data)}}),r}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(a){var e,r;if(!this.gridApi)return void X.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const t=null===(r=(e=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(e,U.k7.labelValue);t&&"function"==typeof t.updateParams?t.updateParams(a):X.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var a;null===(a=this.gridApi)||void 0===a||a.sizeColumnsToFit()},j.BW))}removeConfigWidthsToAutosize(a){return a.map(a=>Object.assign(Object.assign({},a),{width:null}))}saveColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let a=this.columnApi.getColumnState();a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a;const e=0===a.filter(a=>{if(a.hide)return!1;const e=this.columnApi.getColumn(a.colId);return Boolean(e.getColDef().headerName)}).length;if(0===a.length||JSON.stringify(a)===JSON.stringify(this.columnState)||e)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,a),this.columnState=a}})}getSavedColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}deleteColumnState(){return(0,t.sH)(this,arguments,void 0,function*(a=!0){var e;if(this.statePersistanceEnabled()&&(yield this.statePersistence.deleteColumnState(this.persistColumnStateKey),this.columnState=[]),a&&this.columnApi){if((null===(e=this.defaultColumnConfig)||void 0===e?void 0:e.length)>0){const a=(0,J.rG)(this.defaultColumnConfig);this.columnApi.applyColumnState({state:a,applyOrder:!0})}else this.columnApi.resetColumnState();this.handleColumnSizing()}})}restoreColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){var a;this.rehydrationAttempted=!0;const e=yield this.getSavedColumnState();e&&e.length>0&&(null===(a=this.columnApi)||void 0===a||a.applyColumnState({state:e,applyOrder:!0}))})}cacheFilterConfig(){var a;this.setFilterModel((null===(a=this.gridApi)||void 0===a?void 0:a.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,t.sH)(this,void 0,void 0,function*(){var a,e;const r=yield this.getfilterModel();void 0!==r&&(null===(a=this.gridApi)||void 0===a||a.setFilterModel(r),null===(e=this.gridApi)||void 0===e||e.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof E.X}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(a){const e=m()(this.saveColumnState.bind(this),400),r=m()(this.cacheFilterConfig.bind(this),400),o=()=>{e(),this.debouncedColumnAutosize.bind(this)(),this.invalidateColumnWidthCache()};Array.from(this.attributes).forEach(a=>{const e=this.agPropertiesMap[a.name];e&&(this.agAttributes[e]=a.value)});const{columnDefs:n,components:l,defaultColDef:g,getRowId:d,onGridReady:s,onFilterChanged:c,onFirstDataRendered:p}=a,u=(0,t.Tt)(a,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},g),components:this.combineAllGridComponents(l),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:a=>{var e,r;this.gridApi=a.api,this.columnApi=a.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(a=>{this.addGridEventListener(a)}),this.rowData&&this.gridApi.setRowData(this.rowData),s&&s(a),this.columnState&&(null===(e=this.columnState)||void 0===e?void 0:e.length)>0&&this.columnApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(i.sVA.EVENT_GRID_READY,{event:a,gridId:this.id}),this.$emit(U.mr,{event:a,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(P.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:a=>{this.handleColumnSizing(),p&&p(a)},onColumnPinned:o,onColumnResized:o,onColumnMoved:o,onDisplayedColumnsChanged:o,onFilterChanged:a=>{r(),c&&c(a)},onGridSizeChanged:o,onSortChanged:o}),u),v="getRowId"in(null!=a?a:{});this.gridProDatasource?(h.columnDefs=n,v&&(h.getRowId=d),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(n).then(a=>{h.columnDefs=a,v&&(h.getRowId=d),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid()})}setLocalGridOptions(a){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),i.kNx.copyAttributesToGridOptions(a,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){c.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new i.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}applyTemplateDefinitions(a,e=!1){return X.v.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(a,e)}mergeAllColumnDefsAndStates(a){return(0,t.sH)(this,arguments,void 0,function*(a,e=!1){var r;const t=a||[];t.forEach(a=>{if(this.headerCaseType&&a.field&&!a.headerName){const e=h[this.headerCaseType];e?a.headerName=e(a.field):X.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const o=Array.from(this.querySelectorAll(this.columnComponentName)).map(a=>a.definition).map(a=>{var e,r,o;this.enableCellFlashing&&void 0===a.enableCellChangeFlash&&(a.enableCellChangeFlash=!0),"agSetColumnFilter"===a.filter&&(a.filterParams=Object.assign(Object.assign({},a.filterParams),{values:(null===(e=a.filterParams)||void 0===e?void 0:e.values)||(null===(o=null===(r=t.find(e=>e.field===a.field))||void 0===r?void 0:r.filterParams)||void 0===o?void 0:o.values)})),a.editable&&(a.cellRenderer||a.cellRendererSelector||(a.cellRendererSelector=e=>{if(null==e?void 0:e.data)return e.data[U.A7]===a.field?{component:U.IX.editable}:void 0}),a.tooltipComponent||a.tooltipValueGetter||(a.tooltipComponent=H.y,a.tooltipValueGetter=e=>{if(!(null==e?void 0:e.data))return;const r=e.data[U.h1];return r&&r.column===a.field?r.message:void 0}),a.cellClassRules||(a.cellClassRules={error:a=>{var e;return!(!(null==a?void 0:a.colDef)||!(null==a?void 0:a.data))&&(null===(e=a.data[U.h1])||void 0===e?void 0:e.column)===a.colDef.field}}));const i=t.find(e=>a.field===e.field);return Object.assign(Object.assign({},i),a)}),i=o.map(a=>a.field),n=[...o,...this.onlyTemplateColDefs?[]:t.filter(a=>!i.includes(a.field))];if(this.gridProDatasource&&e){const a=yield this.getSavedColumnState();if((null==a?void 0:a.length)>0)return(0,J.yS)(n,a);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return(0,J.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(a,e){return e.some(e=>e.statusPanel===a)}addRowCountPanel(a,e){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const r=this.isServerSide||"serverSide"===(null==e?void 0:e.rowModelType),t=this._pagination||!0===(null==e?void 0:e.pagination);if(r&&!t)this.panelExists(U.k7.rowCount,a)||a.push({statusPanel:U.k7.rowCount,align:"left"});else if(!r){const e="agTotalAndFilteredRowCountComponent";this.panelExists(e,a)||a.push({statusPanel:e,align:"left"})}}}addMaxRowsPanel(a){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(U.k7.labelValue,a)||a.push({statusPanel:U.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||l.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(a){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",a)||a.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(a){if(this.gridProDatasource){const e=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(e=>!this.panelExists(e.statusPanel,a));a.push(...e)}}addPaginationPanel(a){this._pagination&&(this.panelExists(U.k7.pagination,a)||a.push({statusPanel:U.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(a){var e,r;if(this._pagination&&(a.pagination=!0,a.suppressScrollOnNewData=!0,a.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const t=[...(null===(e=a.statusBar)||void 0===e?void 0:e.statusPanels)||[]];this.addRowCountPanel(t,a),this.addMaxRowsPanel(t),this.addAggregationPanel(t),this.addDatasourcePanels(t),this._pagination&&(a.suppressPaginationPanel=!0,this.addPaginationPanel(t));const o=((null===(r=a.statusBar)||void 0===r?void 0:r.statusPanels)||[]).filter(a=>!this.panelExists(a.statusPanel,t));t.push(...o),a.statusBar={statusPanels:t}}}handleColumnSizing(){(this.sizeColumnsToContent||this.sizeColumnsToFit)&&(this.sizeColumnsToContent&&this.sizeColumnsToFit&&this.columnApi&&this.gridApi?this.handleBothSizingModes():this.handleIndividualSizingModes())}handleBothSizingModes(){if(this.calculateTotalColumnWidth()>this.getGridWidth()){if(!this.columnApi)return;this.columnApi.autoSizeAllColumns()}else{if(!this.gridApi)return;this.gridApi.sizeColumnsToFit()}}handleIndividualSizingModes(){this.sizeColumnsToContent&&this.columnApi&&this.columnApi.autoSizeAllColumns(),this.sizeColumnsToFit&&this.gridApi&&this.gridApi.sizeColumnsToFit()}calculateTotalColumnWidth(){if(!this.columnApi)return 0;const a=this.columnApi.getAllGridColumns(),e=a.length;return null!==this.cachedTotalColumnWidth&&this.columnCount===e||(this.cachedTotalColumnWidth=a.reduce((a,e)=>a+(e.getActualWidth()||0),0),this.columnCount=e),this.cachedTotalColumnWidth}invalidateColumnWidthCache(){this.cachedTotalColumnWidth=null,this.columnCount=0}getGridWidth(){const a=this;let e=(null==a?void 0:a.clientWidth)||0;return 0===e&&this.gridSlot&&(e=this.gridSlot.clientWidth||0),0===e&&(e=this.clientWidth||0),e}get observedAttributes(){const a=Z.map(a=>a.toLowerCase()),e=Z.map(a=>(0,K.w)(a));return a.concat(e)}agAttributeChangedCallback(a,e,r){if(e===r)return;const t=this.agPropertiesMap[a];if(t&&(this.agAttributes[t]=r,this.initialised)){const a={};a[t]={currentValue:r},i.kNx.processOnChange(a,this.gridApi)}}globalEventListener(a,e){const r=a.toLowerCase(),t=new Event(r);t.agGridDetails=e,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(a){const e=I.KE[a]||this.gridFontFace;this.destroyFontFace();const r=(0,s.O5)(e,(0,U.b7)(a));r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,t.Cg)([c.observable],$.prototype,"columnApi",void 0),(0,t.Cg)([c.observable],$.prototype,"gridApi",void 0),(0,t.Cg)([c.observable],$.prototype,"gridErrorItems",void 0),(0,t.Cg)([G.l],$.prototype,"statePersistence",void 0),(0,t.Cg)([(0,c.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$.prototype,"autoCellRendererByType",void 0),(0,t.Cg)([(0,c.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$.prototype,"onlyTemplateColDefs",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"grid-autosizing"})],$.prototype,"gridAutosizingEnabled",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"size-columns-to-content"})],$.prototype,"sizeColumnsToContent",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"size-columns-to-fit"})],$.prototype,"sizeColumnsToFit",void 0),(0,t.Cg)([(0,c.attr)({attribute:"add-index"})],$.prototype,"addIndex",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-add"})],$.prototype,"asyncAdd",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-remove"})],$.prototype,"asyncRemove",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-update"})],$.prototype,"asyncUpdate",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$.prototype,"enableCellFlashing",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$.prototype,"enabledRowFlashing",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$.prototype,"enableRowFlashing",void 0),(0,t.Cg)([(0,c.attr)({attribute:"persist-column-state-key"})],$.prototype,"persistColumnStateKey",void 0),(0,t.Cg)([(0,c.attr)({attribute:"persist-filter-model-key"})],$.prototype,"persistFilterModelKey",void 0),(0,t.Cg)([(0,c.attr)({attribute:"default-column-config"})],$.prototype,"defaultColumnConfig",void 0),(0,t.Cg)([(0,c.attr)({attribute:"header-case-type"})],$.prototype,"headerCaseType",void 0),(0,t.Cg)([c.observable],$.prototype,"rowData",void 0),(0,t.Cg)([c.observable],$.prototype,"gridFontFace",void 0),(0,t.Cg)([c.attr],$.prototype,"columnComponentName",void 0),(0,t.Cg)([c.observable],$.prototype,"eventsAndCallbacks",void 0),(0,t.Cg)([c.attr],$.prototype,"headerHeight",void 0),(0,t.Cg)([c.attr],$.prototype,"rowHeight",void 0),(0,t.Cg)([c.attr],$.prototype,"theme",void 0),(0,t.Cg)([c.observable],$.prototype,"classNames",void 0),(0,t.Cg)([c.observable],$.prototype,"agGrid",void 0),(0,t.Cg)([c.observable],$.prototype,"gridSlot",void 0),(0,t.Cg)([c.observable],$.prototype,"themeMode",void 0),(0,t.Cg)([c.observable],$.prototype,"gridComponents",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean"})],$.prototype,"pagination",void 0),(0,t.Cg)([(0,c.attr)({attribute:"pagination-page-size"})],$.prototype,"paginationPageSize",void 0),(0,t.Cg)([c.observable],$.prototype,"statusBarConfig",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"with-status-bar"})],$.prototype,"withStatusBar",void 0),(0,t.Cg)([c.observable],$.prototype,"customErrorHandlerTemplate",void 0),(0,t.Cg)([U.lz],$.prototype,"gridOptionsConfig",void 0);const _=void 0,aa={shadowOptions:void 0},ea=$.compose(Object.assign({baseName:"grid-pro",styles:F.X,template:B.a,shadowOptions:_},aa))},52540:(a,e,r)=>{r.d(e,{k:()=>t});class t{init(a){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=a,this.updateDisplay()}updateParams(a){this.currentParams=Object.assign(Object.assign({},this.currentParams),a),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}:&nbsp; `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},52945:(a,e,r)=>{r.d(e,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(a,e)=>{var r;let o=document.getElementById(e);if(o)return void t.v.debug(`\n An element with the id of '${e}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=e,i.appendChild(o);if((a.match(/}/g)||[]).length>1)return o.textContent=a,()=>{o&&i.removeChild(o)};{const e=o.sheet.insertRule(a);return()=>{o&&(o.sheet.deleteRule(e),i.removeChild(o))}}};function i(a){const e=[],r=new Set;return function a(t){const o=Array.from(t.querySelectorAll("*"));e.push(...o),o.forEach(e=>{e.shadowRoot&&!r.has(e.shadowRoot)&&(r.add(e.shadowRoot),a(e.shadowRoot))})}(a),e}},53397:(a,e,r)=>{r.d(e,{l:()=>i});var t=r(84674),o=r(11749);const i=t.DI.createInterface(a=>a.singleton(o.H))},55365:(a,e,r)=>{r.d(e,{A7:()=>h,IX:()=>c,Kb:()=>s,W3:()=>t,YO:()=>m,b7:()=>d,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>b,mJ:()=>o,mr:()=>u,o2:()=>w,uA:()=>f});var t,o,i=r(97574),n=r(33681),l=r(84674);!function(a){a.foregroundColor="--ag-foreground-color",a.dataColor="--ag-data-color",a.secondaryForegroundColor="--ag-secondary-foreground-color",a.headerForegroundColor="--ag-header-foreground-color",a.disabledForegroundColor="--ag-disabled-foreground-color",a.backgroundColor="--ag-background-color",a.headerBackgroundColor="--ag-header-background-color",a.subheaderBackgroundColor="--ag-subheader-background-color",a.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",a.controlPanelBackgroundColor="--ag-control-panel-background-color",a.selectedRowBackgroundColor="--ag-selected-row-background-color",a.oddRowBackgroundColor="--ag-odd-row-background-color",a.rowHoverColor="--ag-row-hover-color",a.rangeSelectionBorderColor="--ag-range-selection-border-color",a.rangeSelectionBackgroundColor="--ag-range-selection-background-color",a.selectedTabUnderlineColor="--ag-selected-tab-underline-color",a.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",a.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",a.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",a.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",a.chipBackgroundColor="--ag-chip-background-color",a.borderColor="--ag-border-color",a.secondaryBorderColor="--ag-secondary-border-color",a.rowBorderColor="--ag-row-border-color",a.headerColumnSeparatorColor="--ag-header-column-separator-color",a.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",a.inputBorderColor="--ag-input-border-color",a.inputDisabledBorderColor="--ag-input-disabled-border-color",a.inputDisabledBackgroundColor="--ag-input-disabled-background-color",a.checkboxBackgroundColor="--ag-checkbox-background-color",a.checkboxCheckedColor="--ag-checkbox-checked-color",a.checkboxUncheckedColor="--ag-checkbox-unchecked-color",a.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",a.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",a.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",a.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",a.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",a.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",a.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",a.minichartSelectedChartColor="--ag-minichart-selected-chart-color",a.minichartSelectedPageColor="--ag-minichart-selected-page-color",a.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",a.inputFocusBoxShadow="--ag-input-focus-box-shadow",a.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(a){a.alpine="ag-theme-alpine",a.alpineDark="ag-theme-alpine-dark",a.balham="ag-theme-balham",a.balhamDark="ag-theme-balham-dark",a.material="ag-theme-material"}(o||(o={}));const g=a=>`${a}-token-map`,d=a=>`${a}-fonts`,s=(a,e)=>n.css`
8373
+ `},49874:(a,e,r)=>{function t(a){const e=[];for(const[r]of a)r&&e.push(r);return e}function o(a){const e=[];function r(a){for(const r of a)null!==r&&e.push(r)}for(const[e,t]of a)null!==e&&null!==t&&r(t);return e}r.d(e,{P:()=>o,i:()=>t})},50103:(a,e,r)=>{r.d(e,{w:()=>t});const t=a=>a.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},51266:(a,e,r)=>{r.d(e,{LU:()=>_,RB:()=>ea,Z$:()=>aa,cF:()=>$,zI:()=>Z});var t=r(55823),o=r(29310),i=r(44210),n=r(84646),l=r(6884),g=r(21409),d=r(17190),s=r(52945),c=r(33681),p=r(84674),u=r(31679),h=r(98682),v=r(62051),m=r.n(v),b=r(56943),f=r(49255),w=r(56182),y=r(48072),z=r(48075),x=r(43352),k=r(67489),C=r(39604),A=r(60905),D=r(46255),S=r(19511),M=r(80879),R=r(64315),T=r(63296),E=r(24638),N=r(18070),I=r(46374),O=r(90509),L=r(26062),P=r(79270),j=r(32610),F=r(98884),B=r(82128),U=r(55365),G=r(53397),Y=r(49104),Q=r(19060),V=r(52540),W=r(88863),q=r(71964),H=r(73203),J=r(23201),X=r(1510),K=r(50103);L.D,T.L,E.X,b.O,R.G,i.syG.registerModules([n.n7,o.Q]);const Z=i.kNx.ALL_PROPERTIES.filter(a=>"rowData"!==a);class $ extends((0,g.S)(p.FoundationElement)){rowDataChanged(a,e){this.initialised&&this.gridApi.setRowData(e)}themeChanged(a,e){if(!e)return this.classNames="",void this.destroyFontFace();this.classNames=(0,u.x)((0,U.eL)(e),e),this.insertFontFace(e)}getfilterModel(){return(0,t.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(a){return(0,t.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,a):this._filterConfig=a})}constructor(){super(),this.cachedTotalColumnWidth=null,this.columnCount=0,this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.sizeColumnsToContent=!1,this.sizeColumnsToFit=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.defaultColumnConfig=[],this.gridFontFace=I.qh,this.columnComponentName="grid-pro-column",this.theme=U.mJ.alpine,this.themeMode="dark",this.pagination=!1,this.statusBarConfig=U.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.eventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Z.reduce((a,e)=>(a[e.toLowerCase()]=e,a[(0,K.w)(e)]=e,a),{});const a=this.hideDatasourceError.bind(this);this.eventHandlers.push([O.V.dataInit,a],[j.yY.datasourceErrorClose,a],[N.L.error,this.handleBaseDatasourceError.bind(this)],[N.L.connected,a],[P.c.initialize,this.handleInitialize.bind(this)],[P.c.dataLoaded,this.handleDataLoaded.bind(this)],[P.c.dataChanged,this.handleDataChanged.bind(this)],[P.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[P.c.dataCleared,this.handleDataCleared.bind(this)],[P.c.loadingStarted,this.handleLoadingStarted.bind(this)],[P.c.loadingFinished,this.handleLoadingFinished.bind(this)],[P.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[P.c.filtersRestored,this.handleFiltersRestored.bind(this)],[P.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[P.c.error,this.handleDatasourceError.bind(this)],[P.c.destroy,this.handleDatasourceDestroy.bind(this)],[P.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[P.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[P.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[P.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[P.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[P.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)])}addEventListener(a,e,r){super.addEventListener(a,e,r),i.kNx.PUBLIC_EVENTS.includes(a)&&(this.gridApi?this.addGridEventListener(a):this.gridEventsQueue.includes(a)||this.gridEventsQueue.push(a))}addGridEventListener(a){this.registeredGridEvents.has(a)||(this.registeredGridEvents.add(a),this.gridApi.addEventListener(a,e=>{this.$emit(a,e)}))}handleError(a,e){this.gridErrorItems=[...this.gridErrorItems,{detail:e.detail,type:a}]}handleBaseDatasourceError(a){const e={detail:{message:a.detail.message},type:j.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:e.detail,type:e.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(a=>a.type!==j.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,d.j)(this,a=>{a&&this.debouncedColumnAutosize.bind(this)()}),this.rehydrationAttempted=!1,this.eventHandlers.forEach(([a,e])=>{this.addEventListener(a,e)}),this.shouldRunConnect&&(Z.forEach(a=>{Object.defineProperty(this,a,{set:e=>{this.agAttributeChangedCallback((0,K.w)(a),void 0,e)},enumerable:!0,configurable:!0})}),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:l.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const a=this.shouldRunDisconnect;this.eventHandlers.forEach(([a,e])=>{this.removeEventListener(a,e)}),c.DOM.queueUpdate(()=>{a&&(this.initialised=!1,this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.invalidateColumnWidthCache(),this.registeredGridEvents.clear())})}handleInitialize(a){const{options:e,keepColDefsOnClearRowData:r}=a.detail;let t;r&&(t=this.gridApi.getColumnDefs(),this.columnState=this.columnApi.getColumnState());const o=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t&&{columnDefs:t}),e);this.gridOptions=Object.assign({},o),this.initGrid()}handleDataLoaded(a){const{data:e}=a.detail;this.gridApi&&this.gridApi.setRowData(e)}handleDataChanged(a){var e,r,t;const{changes:o}=a.detail;if(this.gridApi){if((null===(e=o.add)||void 0===e?void 0:e.length)>0)if(this.asyncAdd)this.gridApi.applyTransactionAsync({add:o.add,addIndex:this.addIndex},a=>{this.flashAddedCells(null==a?void 0:a.add)});else{const a=this.gridApi.applyTransaction({add:o.add,addIndex:this.addIndex});this.flashAddedCells(null==a?void 0:a.add)}(null===(r=o.update)||void 0===r?void 0:r.length)>0&&(this.asyncUpdate?this.gridApi.applyTransactionAsync({update:o.update}):this.gridApi.applyTransaction({update:o.update})),(null===(t=o.remove)||void 0===t?void 0:t.length)>0&&(this.asyncRemove?this.gridApi.applyTransactionAsync({remove:o.remove}):this.gridApi.applyTransaction({remove:o.remove}))}}flashAddedCells(a){this.enableRowFlashing&&(null==a?void 0:a.length)&&this.gridApi.flashCells({rowNodes:a})}handleSchemaUpdated(a){return(0,t.sH)(this,void 0,void 0,function*(){const{schema:e,metadata:r}=a.detail,t=this.gridApi.getColumnDefs();if(!t||0===t.length){const a=r.map(a=>{var r;return Object.assign(Object.assign({},e.find(e=>e.field===a.name)),null===(r=this.gridApi)||void 0===r?void 0:r.getColumnDef(a.name))}).map(a=>Object.assign(Object.assign({},a),{cellRenderer:this.autoCellRendererByType?a.cellRenderer:void 0,cellEditor:this.autoCellRendererByType?a.cellEditor:void 0})),t=yield this.mergeAllColumnDefsAndStates(a,!0);t&&(t.forEach(a=>{a.rowGroup||(a.rowGroup=null),a.pivot||(a.pivot=null)}),this.gridApi.setColumnDefs(t))}})}handleDataCleared(a){var e,r;const{includeSchema:t}=a.detail;this.gridApi&&(this.isServerSide||(this.asyncAdd||this.asyncUpdate||this.asyncRemove)&&(null===(r=(e=this.gridApi).flushAsyncTransactions)||void 0===r||r.call(e)),t&&this.gridApi.setColumnDefs([]),this.isServerSide||(this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0})))}handleLoadingStarted(){this.gridApi&&this.gridApi.showLoadingOverlay()}handleLoadingFinished(){this.gridApi&&this.gridApi.hideOverlay()}handleNoDataAvailable(){this.gridApi&&this.gridApi.showNoRowsOverlay()}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(a){var e,r,t,o;const{hasMoreData:i,sourceRef:n}=a.detail;if(!this.gridApi)return;const l=null===(r=(e=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(e,U.k7.loadMore);l&&(null===(o=(t=l).updateParams)||void 0===o||o.call(t,{moreRows:i,sourceRef:n}))}handleDatasourceError(a){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(a){const{purge:e}=a.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:e})}handleSetServerSideDatasource(a){const{datasource:e}=a.detail;this.gridApi&&this.gridApi.setServerSideDatasource(e)}handleAddGridCssClass(a){var e;const{className:r}=a.detail,t=(null===(e=this.gridSlot)||void 0===e?void 0:e.parentElement)||this;t&&t.classList.add(r)}handleRemoveGridCssClass(a){var e;const{className:r}=a.detail,t=(null===(e=this.gridSlot)||void 0===e?void 0:e.parentElement)||this;t&&t.classList.remove(r)}handleApplyServerSideTransaction(a){const{transaction:e,async:r,callback:t}=a.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(e,t);else{const a=this.gridApi.applyServerSideTransaction(e);t&&t(a)}}combineAllGridComponents(a){const e={[U.IX.action]:k.eA,[U.IX.actionsMenu]:C.cN,[U.IX.boolean]:A._Y,[U.IX.editable]:D.YM,[U.IX.statusPill]:S.N7,[U.IX.select]:M.gs,[U.IX.selectEditor]:z._Q,[U.IX.numberEditor]:y.Z0,[U.IX.multiselectEditor]:w.pZ,[U.IX.dateEditor]:f.S8,[U.IX.stringEditor]:x.XJ,[U.k7.labelValue]:V.k,[U.k7.loadMore]:Y.s,[U.k7.pagination]:Q.h,[U.k7.reload]:W.W,[U.k7.rowCount]:q.i};return Object.assign(Object.assign(Object.assign({},e),a),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var a,e,r,t;try{if(!this.initialised||!this.gridApi)return[];const o=null===(a=this.gridOptions)||void 0===a?void 0:a.rowSelection;if("single"===o||"multiple"===o)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(r=this.gridOptions)||void 0===r?void 0:r.enableRangeSelection)){const a=null===(t=this.gridApi)||void 0===t?void 0:t.getFocusedCell();if(a){const e=this.gridApi.getDisplayedRowAtIndex(a.rowIndex);if(null==e?void 0:e.data)return[e.data]}}return[]}catch(a){return X.v.error("Grid Pro: Error getting selected rows:",a),[]}}getCellRangeRowData(){var a;if(!(null===(a=this.gridApi)||void 0===a?void 0:a.getCellRanges))return[];const e=this.gridApi.getCellRanges();if(0===e.length)return[];const r=[];return e.forEach(a=>{const e=a.startRow.rowIndex,t=a.endRow.rowIndex;for(let a=e;a<=t;a+=1){const e=this.gridApi.getDisplayedRowAtIndex(a);(null==e?void 0:e.data)&&!r.some(a=>a===e.data)&&r.push(e.data)}}),r}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(a){var e,r;if(!this.gridApi)return void X.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const t=null===(r=(e=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(e,U.k7.labelValue);t&&"function"==typeof t.updateParams?t.updateParams(a):X.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var a;null===(a=this.gridApi)||void 0===a||a.sizeColumnsToFit()},j.BW))}removeConfigWidthsToAutosize(a){return a.map(a=>Object.assign(Object.assign({},a),{width:null}))}saveColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let a=this.columnApi.getColumnState();a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a;const e=0===a.filter(a=>{if(a.hide)return!1;const e=this.columnApi.getColumn(a.colId);return Boolean(e.getColDef().headerName)}).length;if(0===a.length||JSON.stringify(a)===JSON.stringify(this.columnState)||e)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,a),this.columnState=a}})}getSavedColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}deleteColumnState(){return(0,t.sH)(this,arguments,void 0,function*(a=!0){var e;if(this.statePersistanceEnabled()&&(yield this.statePersistence.deleteColumnState(this.persistColumnStateKey),this.columnState=[]),a&&this.columnApi){if((null===(e=this.defaultColumnConfig)||void 0===e?void 0:e.length)>0){const a=(0,J.rG)(this.defaultColumnConfig);this.columnApi.applyColumnState({state:a,applyOrder:!0})}else this.columnApi.resetColumnState();this.handleColumnSizing()}})}restoreColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){var a;this.rehydrationAttempted=!0;const e=yield this.getSavedColumnState();e&&e.length>0&&(null===(a=this.columnApi)||void 0===a||a.applyColumnState({state:e,applyOrder:!0}))})}cacheFilterConfig(){var a;this.setFilterModel((null===(a=this.gridApi)||void 0===a?void 0:a.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,t.sH)(this,void 0,void 0,function*(){var a,e;const r=yield this.getfilterModel();void 0!==r&&(null===(a=this.gridApi)||void 0===a||a.setFilterModel(r),null===(e=this.gridApi)||void 0===e||e.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof E.X}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(a){const e=m()(this.saveColumnState.bind(this),400),r=m()(this.cacheFilterConfig.bind(this),400),o=()=>{e(),this.debouncedColumnAutosize.bind(this)(),this.invalidateColumnWidthCache()};Array.from(this.attributes).forEach(a=>{const e=this.agPropertiesMap[a.name];e&&(this.agAttributes[e]=a.value)});const{columnDefs:n,components:l,defaultColDef:g,getRowId:d,onGridReady:s,onFilterChanged:c,onFirstDataRendered:p}=a,u=(0,t.Tt)(a,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},g),components:this.combineAllGridComponents(l),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:a=>{var e,r;this.gridApi=a.api,this.columnApi=a.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(a=>{this.addGridEventListener(a)}),this.rowData&&this.gridApi.setRowData(this.rowData),s&&s(a),this.columnState&&(null===(e=this.columnState)||void 0===e?void 0:e.length)>0&&this.columnApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(i.sVA.EVENT_GRID_READY,{event:a,gridId:this.id}),this.$emit(U.mr,{event:a,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(P.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:a=>{this.handleColumnSizing(),p&&p(a)},onColumnPinned:o,onColumnResized:o,onColumnMoved:o,onDisplayedColumnsChanged:o,onFilterChanged:a=>{r(),c&&c(a)},onGridSizeChanged:o,onSortChanged:o}),u),v="getRowId"in(null!=a?a:{});this.gridProDatasource?(h.columnDefs=n,v&&(h.getRowId=d),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(n).then(a=>{h.columnDefs=a,v&&(h.getRowId=d),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid()})}setLocalGridOptions(a){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),i.kNx.copyAttributesToGridOptions(a,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){c.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new i.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}applyTemplateDefinitions(a,e=!1){return X.v.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(a,e)}mergeAllColumnDefsAndStates(a){return(0,t.sH)(this,arguments,void 0,function*(a,e=!1){var r;const t=a||[];t.forEach(a=>{if(this.headerCaseType&&a.field&&!a.headerName){const e=h[this.headerCaseType];e?a.headerName=e(a.field):X.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const o=Array.from(this.querySelectorAll(this.columnComponentName)).map(a=>a.definition).map(a=>{var e,r;if(this.enableCellFlashing&&void 0===a.enableCellChangeFlash&&(a.enableCellChangeFlash=!0),"agSetColumnFilter"===a.filter){if(!(null!=a.filterParams&&"values"in a.filterParams)){const o=null===(r=null===(e=t.find(e=>e.field===a.field))||void 0===e?void 0:e.filterParams)||void 0===r?void 0:r.values;o&&(a.filterParams=Object.assign(Object.assign({},a.filterParams),{values:o}))}}a.editable&&(a.cellRenderer||a.cellRendererSelector||(a.cellRendererSelector=e=>{if(null==e?void 0:e.data)return e.data[U.A7]===a.field?{component:U.IX.editable}:void 0}),a.tooltipComponent||a.tooltipValueGetter||(a.tooltipComponent=H.y,a.tooltipValueGetter=e=>{if(!(null==e?void 0:e.data))return;const r=e.data[U.h1];return r&&r.column===a.field?r.message:void 0}),a.cellClassRules||(a.cellClassRules={error:a=>{var e;return!(!(null==a?void 0:a.colDef)||!(null==a?void 0:a.data))&&(null===(e=a.data[U.h1])||void 0===e?void 0:e.column)===a.colDef.field}}));const o=t.find(e=>a.field===e.field);return Object.assign(Object.assign({},o),a)}),i=o.map(a=>a.field),n=[...o,...this.onlyTemplateColDefs?[]:t.filter(a=>!i.includes(a.field))];if(this.gridProDatasource&&e){const a=yield this.getSavedColumnState();if((null==a?void 0:a.length)>0)return(0,J.yS)(n,a);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return(0,J.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(a,e){return e.some(e=>e.statusPanel===a)}addRowCountPanel(a,e){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const r=this.isServerSide||"serverSide"===(null==e?void 0:e.rowModelType),t=this._pagination||!0===(null==e?void 0:e.pagination);if(r&&!t)this.panelExists(U.k7.rowCount,a)||a.push({statusPanel:U.k7.rowCount,align:"left"});else if(!r){const e="agTotalAndFilteredRowCountComponent";this.panelExists(e,a)||a.push({statusPanel:e,align:"left"})}}}addMaxRowsPanel(a){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(U.k7.labelValue,a)||a.push({statusPanel:U.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||l.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(a){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",a)||a.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(a){if(this.gridProDatasource){const e=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(e=>!this.panelExists(e.statusPanel,a));a.push(...e)}}addPaginationPanel(a){this._pagination&&(this.panelExists(U.k7.pagination,a)||a.push({statusPanel:U.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(a){var e,r;if(this._pagination&&(a.pagination=!0,a.suppressScrollOnNewData=!0,a.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const t=[...(null===(e=a.statusBar)||void 0===e?void 0:e.statusPanels)||[]];this.addRowCountPanel(t,a),this.addMaxRowsPanel(t),this.addAggregationPanel(t),this.addDatasourcePanels(t),this._pagination&&(a.suppressPaginationPanel=!0,this.addPaginationPanel(t));const o=((null===(r=a.statusBar)||void 0===r?void 0:r.statusPanels)||[]).filter(a=>!this.panelExists(a.statusPanel,t));t.push(...o),a.statusBar={statusPanels:t}}}handleColumnSizing(){(this.sizeColumnsToContent||this.sizeColumnsToFit)&&(this.sizeColumnsToContent&&this.sizeColumnsToFit&&this.columnApi&&this.gridApi?this.handleBothSizingModes():this.handleIndividualSizingModes())}handleBothSizingModes(){if(this.calculateTotalColumnWidth()>this.getGridWidth()){if(!this.columnApi)return;this.columnApi.autoSizeAllColumns()}else{if(!this.gridApi)return;this.gridApi.sizeColumnsToFit()}}handleIndividualSizingModes(){this.sizeColumnsToContent&&this.columnApi&&this.columnApi.autoSizeAllColumns(),this.sizeColumnsToFit&&this.gridApi&&this.gridApi.sizeColumnsToFit()}calculateTotalColumnWidth(){if(!this.columnApi)return 0;const a=this.columnApi.getAllGridColumns(),e=a.length;return null!==this.cachedTotalColumnWidth&&this.columnCount===e||(this.cachedTotalColumnWidth=a.reduce((a,e)=>a+(e.getActualWidth()||0),0),this.columnCount=e),this.cachedTotalColumnWidth}invalidateColumnWidthCache(){this.cachedTotalColumnWidth=null,this.columnCount=0}getGridWidth(){const a=this;let e=(null==a?void 0:a.clientWidth)||0;return 0===e&&this.gridSlot&&(e=this.gridSlot.clientWidth||0),0===e&&(e=this.clientWidth||0),e}get observedAttributes(){const a=Z.map(a=>a.toLowerCase()),e=Z.map(a=>(0,K.w)(a));return a.concat(e)}agAttributeChangedCallback(a,e,r){if(e===r)return;const t=this.agPropertiesMap[a];if(t&&(this.agAttributes[t]=r,this.initialised)){const a={};a[t]={currentValue:r},i.kNx.processOnChange(a,this.gridApi)}}globalEventListener(a,e){const r=a.toLowerCase(),t=new Event(r);t.agGridDetails=e,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(a){const e=I.KE[a]||this.gridFontFace;this.destroyFontFace();const r=(0,s.O5)(e,(0,U.b7)(a));r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,t.Cg)([c.observable],$.prototype,"columnApi",void 0),(0,t.Cg)([c.observable],$.prototype,"gridApi",void 0),(0,t.Cg)([c.observable],$.prototype,"gridErrorItems",void 0),(0,t.Cg)([G.l],$.prototype,"statePersistence",void 0),(0,t.Cg)([(0,c.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$.prototype,"autoCellRendererByType",void 0),(0,t.Cg)([(0,c.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$.prototype,"onlyTemplateColDefs",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"grid-autosizing"})],$.prototype,"gridAutosizingEnabled",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"size-columns-to-content"})],$.prototype,"sizeColumnsToContent",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"size-columns-to-fit"})],$.prototype,"sizeColumnsToFit",void 0),(0,t.Cg)([(0,c.attr)({attribute:"add-index"})],$.prototype,"addIndex",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-add"})],$.prototype,"asyncAdd",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-remove"})],$.prototype,"asyncRemove",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"async-update"})],$.prototype,"asyncUpdate",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$.prototype,"enableCellFlashing",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$.prototype,"enabledRowFlashing",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$.prototype,"enableRowFlashing",void 0),(0,t.Cg)([(0,c.attr)({attribute:"persist-column-state-key"})],$.prototype,"persistColumnStateKey",void 0),(0,t.Cg)([(0,c.attr)({attribute:"persist-filter-model-key"})],$.prototype,"persistFilterModelKey",void 0),(0,t.Cg)([(0,c.attr)({attribute:"default-column-config"})],$.prototype,"defaultColumnConfig",void 0),(0,t.Cg)([(0,c.attr)({attribute:"header-case-type"})],$.prototype,"headerCaseType",void 0),(0,t.Cg)([c.observable],$.prototype,"rowData",void 0),(0,t.Cg)([c.observable],$.prototype,"gridFontFace",void 0),(0,t.Cg)([c.attr],$.prototype,"columnComponentName",void 0),(0,t.Cg)([c.observable],$.prototype,"eventsAndCallbacks",void 0),(0,t.Cg)([c.attr],$.prototype,"headerHeight",void 0),(0,t.Cg)([c.attr],$.prototype,"rowHeight",void 0),(0,t.Cg)([c.attr],$.prototype,"theme",void 0),(0,t.Cg)([c.observable],$.prototype,"classNames",void 0),(0,t.Cg)([c.observable],$.prototype,"agGrid",void 0),(0,t.Cg)([c.observable],$.prototype,"gridSlot",void 0),(0,t.Cg)([c.observable],$.prototype,"themeMode",void 0),(0,t.Cg)([c.observable],$.prototype,"gridComponents",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean"})],$.prototype,"pagination",void 0),(0,t.Cg)([(0,c.attr)({attribute:"pagination-page-size"})],$.prototype,"paginationPageSize",void 0),(0,t.Cg)([c.observable],$.prototype,"statusBarConfig",void 0),(0,t.Cg)([(0,c.attr)({mode:"boolean",attribute:"with-status-bar"})],$.prototype,"withStatusBar",void 0),(0,t.Cg)([c.observable],$.prototype,"customErrorHandlerTemplate",void 0),(0,t.Cg)([U.lz],$.prototype,"gridOptionsConfig",void 0);const _=void 0,aa={shadowOptions:void 0},ea=$.compose(Object.assign({baseName:"grid-pro",styles:F.X,template:B.a,shadowOptions:_},aa))},52540:(a,e,r)=>{r.d(e,{k:()=>t});class t{init(a){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=a,this.updateDisplay()}updateParams(a){this.currentParams=Object.assign(Object.assign({},this.currentParams),a),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}:&nbsp; `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},52945:(a,e,r)=>{r.d(e,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(a,e)=>{var r;let o=document.getElementById(e);if(o)return void t.v.debug(`\n An element with the id of '${e}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=e,i.appendChild(o);if((a.match(/}/g)||[]).length>1)return o.textContent=a,()=>{o&&i.removeChild(o)};{const e=o.sheet.insertRule(a);return()=>{o&&(o.sheet.deleteRule(e),i.removeChild(o))}}};function i(a){const e=[],r=new Set;return function a(t){const o=Array.from(t.querySelectorAll("*"));e.push(...o),o.forEach(e=>{e.shadowRoot&&!r.has(e.shadowRoot)&&(r.add(e.shadowRoot),a(e.shadowRoot))})}(a),e}},53397:(a,e,r)=>{r.d(e,{l:()=>i});var t=r(84674),o=r(11749);const i=t.DI.createInterface(a=>a.singleton(o.H))},55365:(a,e,r)=>{r.d(e,{A7:()=>h,IX:()=>c,Kb:()=>s,W3:()=>t,YO:()=>m,b7:()=>d,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>b,mJ:()=>o,mr:()=>u,o2:()=>w,uA:()=>f});var t,o,i=r(97574),n=r(33681),l=r(84674);!function(a){a.foregroundColor="--ag-foreground-color",a.dataColor="--ag-data-color",a.secondaryForegroundColor="--ag-secondary-foreground-color",a.headerForegroundColor="--ag-header-foreground-color",a.disabledForegroundColor="--ag-disabled-foreground-color",a.backgroundColor="--ag-background-color",a.headerBackgroundColor="--ag-header-background-color",a.subheaderBackgroundColor="--ag-subheader-background-color",a.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",a.controlPanelBackgroundColor="--ag-control-panel-background-color",a.selectedRowBackgroundColor="--ag-selected-row-background-color",a.oddRowBackgroundColor="--ag-odd-row-background-color",a.rowHoverColor="--ag-row-hover-color",a.rangeSelectionBorderColor="--ag-range-selection-border-color",a.rangeSelectionBackgroundColor="--ag-range-selection-background-color",a.selectedTabUnderlineColor="--ag-selected-tab-underline-color",a.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",a.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",a.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",a.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",a.chipBackgroundColor="--ag-chip-background-color",a.borderColor="--ag-border-color",a.secondaryBorderColor="--ag-secondary-border-color",a.rowBorderColor="--ag-row-border-color",a.headerColumnSeparatorColor="--ag-header-column-separator-color",a.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",a.inputBorderColor="--ag-input-border-color",a.inputDisabledBorderColor="--ag-input-disabled-border-color",a.inputDisabledBackgroundColor="--ag-input-disabled-background-color",a.checkboxBackgroundColor="--ag-checkbox-background-color",a.checkboxCheckedColor="--ag-checkbox-checked-color",a.checkboxUncheckedColor="--ag-checkbox-unchecked-color",a.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",a.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",a.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",a.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",a.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",a.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",a.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",a.minichartSelectedChartColor="--ag-minichart-selected-chart-color",a.minichartSelectedPageColor="--ag-minichart-selected-page-color",a.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",a.inputFocusBoxShadow="--ag-input-focus-box-shadow",a.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(a){a.alpine="ag-theme-alpine",a.alpineDark="ag-theme-alpine-dark",a.balham="ag-theme-balham",a.balhamDark="ag-theme-balham-dark",a.material="ag-theme-material"}(o||(o={}));const g=a=>`${a}-token-map`,d=a=>`${a}-fonts`,s=(a,e)=>n.css`
8374
8374
  .${g(a)} {
8375
8375
  ${new i.CSSVarsTokenMapper(e)}
8376
8376
  }
@@ -8581,4 +8581,4 @@
8581
8581
  transition: transform 0.2s ease;
8582
8582
  }
8583
8583
  `}}]);
8584
- //# sourceMappingURL=445.054d4475da808c4b392cb4b85cb8cff0.js.map
8584
+ //# sourceMappingURL=445.ddf0d5f8b692cdb379054245d92ad170.js.map