@genesislcap/design-system-configurator 14.418.1 → 14.418.2

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.
Files changed (28) hide show
  1. package/dist/{106.e54ea82b95389be07c4cf6df257df179.js.map → 106.045b15677dc628bb6723746d03d4e4a5.js.map} +1 -1
  2. package/dist/106.106.2b9c9fd665f12f69c276.js +2 -0
  3. package/dist/151.151.f5b46941766f3dd0423f.js +2 -0
  4. package/dist/{151.68605fb2475becdbde3e7b42592f70ae.js.map → 151.bf0f55a4e61c4d3cd4b3bf6c54d42de0.js.map} +1 -1
  5. package/dist/{163.163.166100ac948f0bf1c69f.js → 163.163.0e9c8688707dcc82905b.js} +2 -2
  6. package/dist/{163.8afd5b9ff89bb016989bc0946d1bdf25.js.map → 163.92cb9d095330c48d075bcb20e3d93d55.js.map} +1 -1
  7. package/dist/{182.182.eb024a292bf4375468c1.js → 182.182.bb98c3da5c5149613107.js} +4 -4
  8. package/dist/{182.e9e329a216086e248a1cadf9ea69b3ac.js.map → 182.a8198c05e2a0d31a6cfce0e2f48fc765.js.map} +1 -1
  9. package/dist/{3.681d290bbde07662731a9ba5dd362744.js.map → 3.2fe93de19497cd15e868ef024dd8c9d6.js.map} +1 -1
  10. package/dist/{3.3.051cc336479e3b36e3fc.js → 3.3.85b23b458df4a685eb78.js} +3 -3
  11. package/dist/{404.404.105e02d09a818b846d95.js → 404.404.0fe8e4cd7d1284bcb969.js} +3 -3
  12. package/dist/404.eaec1a88e83a0a0d6fee7be80d420319.js.map +1 -0
  13. package/dist/{445.445.0e33d899cd51167a52a1.js → 445.445.2a13e83178b44e9b97c1.js} +3 -3
  14. package/dist/{445.2e06e4b638f2e030bad049332661effd.js.map → 445.b12fa5f7e0dde66ba22d93a24a7c160d.js.map} +1 -1
  15. package/dist/{627.627.c64d08123a0f69743542.js → 627.627.7c604e0b2e9c754f330c.js} +5 -5
  16. package/dist/{627.e87a1f2bc1438cb2b62efe1508391b0a.js.map → 627.ae04f3e74ba9a6ff554b0dc603563e49.js.map} +1 -1
  17. package/dist/{72.72.2914c6ec277e164c5460.js → 72.72.01cf1c3e8c8ee5544e0d.js} +2 -2
  18. package/dist/{72.3027c7a9ce2aca8c7e34630d9937c7a9.js.map → 72.7d14f34f9845376625ca29332528219a.js.map} +1 -1
  19. package/dist/{designSystemConfigurator.c5c8689f1881df9423473b4191d03bf0.js.map → designSystemConfigurator.e3de3cb95e3b252cc056dcc6dc3a760f.js.map} +1 -1
  20. package/dist/index.html +1 -1
  21. package/dist/{main.7d88f0ea3f4ae3fbfde50fc423c35d54.js.map → main.69eaa9efa18c33016db0a21b1b4ec066.js.map} +1 -1
  22. package/dist/main.f4ac2ae3f9152f6f2d6f.js +2 -0
  23. package/dist/remoteEntry.js +2 -2
  24. package/package.json +13 -13
  25. package/dist/106.106.c6e4f9faca1a5b5fb548.js +0 -2
  26. package/dist/151.151.c577e9ef8286d2363ba2.js +0 -2
  27. package/dist/404.1c600127aca03578157fd6e07730cb6c.js.map +0 -1
  28. package/dist/main.84124b9400bebd7383b8.js +0 -2
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[182],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var a=o(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else d.call(this)};var l=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(a)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r;if(0===s)return this.utc(i);var n=this.clone();if(i)return n.$offset=s,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+d,e)).$offset=s,n.$x.$localOffset=d,n};var g=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var c=s.diff;s.diff=function(e,t,a){if(e&&this.$u===e.$u)return c.call(this,e,t,a);var r=this.local(),i=o(e).local();return c.call(r,i,t,a)}}}()},14609(e,t,a){"use strict";a.d(t,{b:()=>s});const r=(0,a(5054).createLogger)("foundation-criteria");var i=a(86636);const o="default";class s{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,i.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,i.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,i.r.Not())}withExpression(e,t={},a=i.r.And()){const{condition:s,join:n,groupName:d}=t,l=(e,t=o)=>{var r;const i=null!==(r=this.expressions[t])&&void 0!==r?r:[];this.expressions[t]=[...i,{join:a||n,condition:s,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter(e=>{const t=e instanceof i.r;return t&&r.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(d)t.forEach(e=>{l(e,d)});else{const e=(g=n,t.flat().flatMap((e,t,a)=>a.length-1!==t?[e,g]:e));l(e,o)}}else l(e,o);else l(e,"string"==typeof e?o:e.group);var g;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:`(${a.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},a,r)=>this.parseExpression(e,r[a-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,a){const r=[];return a&&t&&r.push(` ${a.operator} `),"string"==typeof e?r.push(e):Array.isArray(e)?(e.forEach((e,t,a)=>{if(e instanceof i.r){if(a[t-1]instanceof i.r)throw new Error("Adjacent Join operations detected")}}),r.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof i.r?r.push(` ${e.operator} `):e&&r.push(e.serialiser(e)),r.join("")}}},58749(e,t,a){"use strict";a.d(t,{K:()=>i});var r=a(95553);class i{constructor(e){this.serialiser=r.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,a){"use strict";a.d(t,{n:()=>s});var r=a(86636);const i=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},o=e=>t=>`${t.field} ${e} ${i(t)}`,s={AND:e=>o(r.X.AND)(e),OR:e=>o(r.X.OR)(e),NOT:e=>o(r.X.NOT)(e),GT:e=>o(r.X.GT)(e),GE:e=>o(r.X.GE)(e),LT:e=>o(r.X.LT)(e),LE:e=>o(r.X.LE)(e),NE:e=>o(r.X.NE)(e),EQ:e=>o(r.X.EQ)(e),equals:e=>`${e.field}.equals(${i(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${i(e)})`,contains:e=>`Expr.contains(${e.field}, ${i(e)})`,fieldContains:e=>`${e.field}.contains(${i(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${i(e)})`,startsWith:e=>`${e.field}.startsWith(${i(e)})`,endsWith:e=>`${e.field}.endsWith(${i(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${i(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${i(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${i(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${i(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${i(e)})`}},86636(e,t,a){"use strict";var r;a.d(t,{X:()=>r,r:()=>i}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(r||(r={}));class i{constructor(e){this.$$operator=e}static And(){return new i(r.AND)}static Or(){return new i(r.OR)}static Not(){return new i(r.NOT)}static GreaterThan(){return new i(r.GT)}static GreaterThanOrEqual(){return new i(r.GE)}static LessThan(){return new i(r.LT)}static LessThanOrEqual(){return new i(r.LE)}static NotEqual(){return new i(r.NE)}static Equal(){return new i(r.EQ)}get operator(){return this.$$operator}}},57073(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Xe.ME,AG_NUMBER_PROPERTIES:()=>Xe.LB,AG_PROPERTIES:()=>Xe.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>o.W3,AgGridTheme:()=>o.mJ,AgTextFieldRenderer:()=>Ot.p8,AgTextRenderer:()=>it.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>Gt.x,ColumnTemplate:()=>Tt.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>se,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Xe.BW,DEFAULT_STATUS_BAR_CONFIG:()=>o.o2,DISPLAY_NONE_CLASS:()=>vt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>o.A7,ERROR_COLUMN_FIELD:()=>o.h1,EditableRenderer:()=>$.YM,ErrorTooltip:()=>We.y,GRID_READY_EVENT:()=>o.mr,GenesisGridDatasourceElement:()=>$t.yu,GridOptionsConfig:()=>o.lz,GridPro:()=>i.cF,GridProBaseDatasource:()=>$t.ML,GridProBeta:()=>tt,GridProCaseType:()=>o.uA,GridProCell:()=>Ie.O,GridProClientSideDatasource:()=>_e.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Fe.D,GridProRendererTypes:()=>o.IX,GridProServerSideDatasource:()=>ze.X,GridProStatusBarTypes:()=>o.k7,IconRenderer:()=>I.Jt,KVStorageStatePersistence:()=>Yt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>he,LIGHT_HEADER_FOREGROUND_HEX:()=>ce,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ve.k,LoadMoreStatusBarComponent:()=>Ke.s,LocalStorageStatePersistence:()=>jt.H,MulticolumnDropdown:()=>kt,MultiselectEditor:()=>u.pZ,NumberEditor:()=>h.Z0,OperationType:()=>$t.S5,PaginationStatusBarComponent:()=>Ye.h,RapidAgActionRenderer:()=>A,RapidAgActionsMenuRenderer:()=>x,RapidAgSelectRenderer:()=>M,RapidAgTextRenderer:()=>ot,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>P,RapidGridPro:()=>we,RapidGridProBeta:()=>at,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>c,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>B,RapidStringEditor:()=>E,ReloadStatusBarComponent:()=>je.W,RowCountStatusBarComponent:()=>qe.i,SelectEditor:()=>d._Q,SelectRenderer:()=>z.gs,StatePersistence:()=>Ue.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>C.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>G.CL,agDateEditorStyles:()=>b.kI,agEditableRendererStyles:()=>$.Mx,agExternalStockStyles:()=>Lt.Kp,agGridAlpineFontFace:()=>Lt.KX,agGridBalhamFontFace:()=>Lt.c_,agGridCSS:()=>Lt.AT,agGridMaterialFontFace:()=>Lt.Id,agHeadCSS:()=>Lt.g4,agIconRendererStyles:()=>I.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>h.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>z.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>Lt.lJ,agThemeBalhamNofontsCSS:()=>Lt.HC,agThemeFontFaceMap:()=>Lt.KE,agThemeFontsId:()=>o.b7,agThemeGenesisRapid:()=>q,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Jt,agThemeMaterialNofontsCSS:()=>Lt.DX,agThemeTokenMapCSS:()=>o.Kb,agThemeTokenMapClassname:()=>o.eL,backgroundSwatch:()=>qt,baseDatasourceEventNames:()=>Me.L,convertColDefToColumnState:()=>Ze.pr,convertColDefsToColumnStates:()=>Ze.rG,convertToKebabCase:()=>Qe.w,copyAttributesToGridOptions:()=>Xe.Qg,criteriaDelimiter:()=>$t.NC,criteriaJoin:()=>$t.W_,csvExportParams:()=>ta,darkColors:()=>ve,datasourceEventNames:()=>Be.c,dateTimeValueFormatter:()=>Xe.XV,dateValueFormatter:()=>Xe.sL,defaultAgGridFontFace:()=>Lt.qh,defaultGridOptionsConfig:()=>o.YO,defaultGridProConfig:()=>i.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>ut,errorHandlerDialogStyles:()=>Pt.B,extractErrorMessage:()=>Zt.P,foregroundSwatch:()=>Wt,formatDateExtra:()=>Xe.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>$.r8,foundationAgSelectRenderer:()=>z.bE,foundationAgTextFieldRenderer:()=>Ot.wG,foundationAgTextRenderer:()=>it.G4,foundationDateEditor:()=>b.vr,foundationGridComponents:()=>It,foundationGridPro:()=>i.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>i.LU,foundationGridProStyles:()=>U.X,foundationIconRenderer:()=>I.qN,foundationMulticolumnDropdown:()=>xt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>h.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>$.iP,getAvailableIndexFields:()=>ea.P,getAvailableIndexes:()=>ea.i,getColumnType:()=>Xe.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Xe.O7,getErrorHandlerDialogTemplate:()=>Pt.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>I.V$,getMulticolumnDropdownTemplate:()=>Et,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>h.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>z.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Ot.tm,getTextRendererTemplate:()=>it.d6,gridProColumns:()=>Ct,gridProErrorNames:()=>Xe.Ie,gridProEventNames:()=>Xe.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Je.v,mergeAndDedupColDefWithColumnState:()=>Ze.yS,multicolumnDropdownStyles:()=>bt,multicolumnDropdownTemplate:()=>St,optionsClass:()=>mt,rapidAgActionRenderer:()=>R,rapidAgActionsMenuRenderer:()=>D,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>L,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>F,rapidAgStringEditor:()=>S,rapidAgTextRenderer:()=>st,rapidDefaultGridProConfig:()=>Re,rapidGridComponents:()=>nt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Ae,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>Dt,rapidStatusPillRenderer:()=>X,textFieldRendererStyles:()=>Ot.zS,textRendererStyles:()=>it.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>At});var r=a(55823),i=a(51266),o=a(55365),s=a(54634),n=a(33681),d=a(48075);class l extends d._Q{}const g=l.compose({baseName:"select-editor",styles:d.Uo,template:(0,d.iY)("rapid")});var h=a(48072);class c extends h.Z0{}const p=c.compose({baseName:"number-editor",styles:h.Fv,template:(0,h.r1)("rapid")});var u=a(56182);class m extends u.pZ{}const v=m.compose({baseName:"multiselect-editor",styles:u.$b,template:(0,u.tB)("rapid")});var b=a(49255);class f extends b.S8{}const y=f.compose({baseName:"date-editor",styles:b.kI,template:(0,b.m6)("rapid")});var C=a(43352);class E extends C.XJ{}const S=E.compose({baseName:"string-editor",styles:C.P_,template:(0,C.bZ)("rapid")});var w=a(67489);class A extends w.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const R=A.compose({baseName:"grid-pro-action-renderer",styles:n.css`
1
+ (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[182],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var a=o(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else d.call(this)};var l=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(a)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r;if(0===s)return this.utc(i);var n=this.clone();if(i)return n.$offset=s,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+d,e)).$offset=s,n.$x.$localOffset=d,n};var g=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var c=s.diff;s.diff=function(e,t,a){if(e&&this.$u===e.$u)return c.call(this,e,t,a);var r=this.local(),i=o(e).local();return c.call(r,i,t,a)}}}()},14609(e,t,a){"use strict";a.d(t,{b:()=>s});const r=(0,a(35311).createLogger)("foundation-criteria");var i=a(86636);const o="default";class s{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,i.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,i.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,i.r.Not())}withExpression(e,t={},a=i.r.And()){const{condition:s,join:n,groupName:d}=t,l=(e,t=o)=>{var r;const i=null!==(r=this.expressions[t])&&void 0!==r?r:[];this.expressions[t]=[...i,{join:a||n,condition:s,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter(e=>{const t=e instanceof i.r;return t&&r.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(d)t.forEach(e=>{l(e,d)});else{const e=(g=n,t.flat().flatMap((e,t,a)=>a.length-1!==t?[e,g]:e));l(e,o)}}else l(e,o);else l(e,"string"==typeof e?o:e.group);var g;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:`(${a.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},a,r)=>this.parseExpression(e,r[a-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,a){const r=[];return a&&t&&r.push(` ${a.operator} `),"string"==typeof e?r.push(e):Array.isArray(e)?(e.forEach((e,t,a)=>{if(e instanceof i.r){if(a[t-1]instanceof i.r)throw new Error("Adjacent Join operations detected")}}),r.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof i.r?r.push(` ${e.operator} `):e&&r.push(e.serialiser(e)),r.join("")}}},58749(e,t,a){"use strict";a.d(t,{K:()=>i});var r=a(95553);class i{constructor(e){this.serialiser=r.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,a){"use strict";a.d(t,{n:()=>s});var r=a(86636);const i=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},o=e=>t=>`${t.field} ${e} ${i(t)}`,s={AND:e=>o(r.X.AND)(e),OR:e=>o(r.X.OR)(e),NOT:e=>o(r.X.NOT)(e),GT:e=>o(r.X.GT)(e),GE:e=>o(r.X.GE)(e),LT:e=>o(r.X.LT)(e),LE:e=>o(r.X.LE)(e),NE:e=>o(r.X.NE)(e),EQ:e=>o(r.X.EQ)(e),equals:e=>`${e.field}.equals(${i(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${i(e)})`,contains:e=>`Expr.contains(${e.field}, ${i(e)})`,fieldContains:e=>`${e.field}.contains(${i(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${i(e)})`,startsWith:e=>`${e.field}.startsWith(${i(e)})`,endsWith:e=>`${e.field}.endsWith(${i(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${i(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${i(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${i(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${i(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${i(e)})`}},86636(e,t,a){"use strict";var r;a.d(t,{X:()=>r,r:()=>i}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(r||(r={}));class i{constructor(e){this.$$operator=e}static And(){return new i(r.AND)}static Or(){return new i(r.OR)}static Not(){return new i(r.NOT)}static GreaterThan(){return new i(r.GT)}static GreaterThanOrEqual(){return new i(r.GE)}static LessThan(){return new i(r.LT)}static LessThanOrEqual(){return new i(r.LE)}static NotEqual(){return new i(r.NE)}static Equal(){return new i(r.EQ)}get operator(){return this.$$operator}}},57073(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Xe.ME,AG_NUMBER_PROPERTIES:()=>Xe.LB,AG_PROPERTIES:()=>Xe.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>o.W3,AgGridTheme:()=>o.mJ,AgTextFieldRenderer:()=>Ot.p8,AgTextRenderer:()=>it.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>Gt.x,ColumnTemplate:()=>Tt.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>se,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Xe.BW,DEFAULT_STATUS_BAR_CONFIG:()=>o.o2,DISPLAY_NONE_CLASS:()=>vt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>o.A7,ERROR_COLUMN_FIELD:()=>o.h1,EditableRenderer:()=>$.YM,ErrorTooltip:()=>We.y,GRID_READY_EVENT:()=>o.mr,GenesisGridDatasourceElement:()=>$t.yu,GridOptionsConfig:()=>o.lz,GridPro:()=>i.cF,GridProBaseDatasource:()=>$t.ML,GridProBeta:()=>tt,GridProCaseType:()=>o.uA,GridProCell:()=>Ie.O,GridProClientSideDatasource:()=>_e.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Fe.D,GridProRendererTypes:()=>o.IX,GridProServerSideDatasource:()=>ze.X,GridProStatusBarTypes:()=>o.k7,IconRenderer:()=>I.Jt,KVStorageStatePersistence:()=>Yt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>he,LIGHT_HEADER_FOREGROUND_HEX:()=>ce,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ve.k,LoadMoreStatusBarComponent:()=>Ke.s,LocalStorageStatePersistence:()=>jt.H,MulticolumnDropdown:()=>kt,MultiselectEditor:()=>u.pZ,NumberEditor:()=>h.Z0,OperationType:()=>$t.S5,PaginationStatusBarComponent:()=>Ye.h,RapidAgActionRenderer:()=>A,RapidAgActionsMenuRenderer:()=>x,RapidAgSelectRenderer:()=>M,RapidAgTextRenderer:()=>ot,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>P,RapidGridPro:()=>we,RapidGridProBeta:()=>at,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>c,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>B,RapidStringEditor:()=>E,ReloadStatusBarComponent:()=>je.W,RowCountStatusBarComponent:()=>qe.i,SelectEditor:()=>d._Q,SelectRenderer:()=>z.gs,StatePersistence:()=>Ue.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>C.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>G.CL,agDateEditorStyles:()=>b.kI,agEditableRendererStyles:()=>$.Mx,agExternalStockStyles:()=>Lt.Kp,agGridAlpineFontFace:()=>Lt.KX,agGridBalhamFontFace:()=>Lt.c_,agGridCSS:()=>Lt.AT,agGridMaterialFontFace:()=>Lt.Id,agHeadCSS:()=>Lt.g4,agIconRendererStyles:()=>I.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>h.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>z.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>Lt.lJ,agThemeBalhamNofontsCSS:()=>Lt.HC,agThemeFontFaceMap:()=>Lt.KE,agThemeFontsId:()=>o.b7,agThemeGenesisRapid:()=>q,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Jt,agThemeMaterialNofontsCSS:()=>Lt.DX,agThemeTokenMapCSS:()=>o.Kb,agThemeTokenMapClassname:()=>o.eL,backgroundSwatch:()=>qt,baseDatasourceEventNames:()=>Me.L,convertColDefToColumnState:()=>Ze.pr,convertColDefsToColumnStates:()=>Ze.rG,convertToKebabCase:()=>Qe.w,copyAttributesToGridOptions:()=>Xe.Qg,criteriaDelimiter:()=>$t.NC,criteriaJoin:()=>$t.W_,csvExportParams:()=>ta,darkColors:()=>ve,datasourceEventNames:()=>Be.c,dateTimeValueFormatter:()=>Xe.XV,dateValueFormatter:()=>Xe.sL,defaultAgGridFontFace:()=>Lt.qh,defaultGridOptionsConfig:()=>o.YO,defaultGridProConfig:()=>i.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>ut,errorHandlerDialogStyles:()=>Pt.B,extractErrorMessage:()=>Zt.P,foregroundSwatch:()=>Wt,formatDateExtra:()=>Xe.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>$.r8,foundationAgSelectRenderer:()=>z.bE,foundationAgTextFieldRenderer:()=>Ot.wG,foundationAgTextRenderer:()=>it.G4,foundationDateEditor:()=>b.vr,foundationGridComponents:()=>It,foundationGridPro:()=>i.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>i.LU,foundationGridProStyles:()=>U.X,foundationIconRenderer:()=>I.qN,foundationMulticolumnDropdown:()=>xt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>h.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>$.iP,getAvailableIndexFields:()=>ea.P,getAvailableIndexes:()=>ea.i,getColumnType:()=>Xe.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Xe.O7,getErrorHandlerDialogTemplate:()=>Pt.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>I.V$,getMulticolumnDropdownTemplate:()=>Et,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>h.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>z.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Ot.tm,getTextRendererTemplate:()=>it.d6,gridProColumns:()=>Ct,gridProErrorNames:()=>Xe.Ie,gridProEventNames:()=>Xe.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Je.v,mergeAndDedupColDefWithColumnState:()=>Ze.yS,multicolumnDropdownStyles:()=>bt,multicolumnDropdownTemplate:()=>St,optionsClass:()=>mt,rapidAgActionRenderer:()=>R,rapidAgActionsMenuRenderer:()=>D,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>L,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>F,rapidAgStringEditor:()=>S,rapidAgTextRenderer:()=>st,rapidDefaultGridProConfig:()=>Re,rapidGridComponents:()=>nt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Ae,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>Dt,rapidStatusPillRenderer:()=>X,textFieldRendererStyles:()=>Ot.zS,textRendererStyles:()=>it.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>At});var r=a(55823),i=a(51266),o=a(55365),s=a(54634),n=a(33681),d=a(48075);class l extends d._Q{}const g=l.compose({baseName:"select-editor",styles:d.Uo,template:(0,d.iY)("rapid")});var h=a(48072);class c extends h.Z0{}const p=c.compose({baseName:"number-editor",styles:h.Fv,template:(0,h.r1)("rapid")});var u=a(56182);class m extends u.pZ{}const v=m.compose({baseName:"multiselect-editor",styles:u.$b,template:(0,u.tB)("rapid")});var b=a(49255);class f extends b.S8{}const y=f.compose({baseName:"date-editor",styles:b.kI,template:(0,b.m6)("rapid")});var C=a(43352);class E extends C.XJ{}const S=E.compose({baseName:"string-editor",styles:C.P_,template:(0,C.bZ)("rapid")});var w=a(67489);class A extends w.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const R=A.compose({baseName:"grid-pro-action-renderer",styles:n.css`
2
2
  ${w.AC}
3
3
  .button-padding {
4
4
  justify-content: center;
@@ -45,7 +45,7 @@
45
45
  name="${e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.headerName}}"
46
46
  :definition=${e=>e.params}
47
47
  ></rapid-actions-menu>
48
- `});var G=a(60905);class O extends G._Y{}const T=O.compose({baseName:"boolean-renderer",styles:G.CL,template:(0,G.A9)("rapid")});var $=a(46255);class P extends $.YM{}const L=P.compose({baseName:"editable-renderer",styles:$.Mx,template:(0,$.iP)("rapid")});var I=a(2048);class N extends I.Jt{}const _=N.compose({baseName:"icon-renderer",styles:I.X5,template:(0,I.V$)("rapid")});var z=a(80879);class M extends z.gs{}const F=M.compose({baseName:"select-renderer",styles:z.Ad,template:(0,z.qj)("rapid")});var H=a(19511);class B extends H.N7{}const X=B.compose({baseName:"status-pill-renderer",template:(0,H.T2)("rapid"),styles:H.x2});var U=a(98884),V=a(60591),K=a(29076);const Y=n.css`
48
+ `});var G=a(60905);class O extends G._Y{}const T=O.compose({baseName:"boolean-renderer",styles:G.CL,template:(0,G.A9)("rapid")});var $=a(46255);class P extends $.YM{}const L=P.compose({baseName:"editable-renderer",styles:$.Mx,template:(0,$.iP)("rapid")});var I=a(2048);class N extends I.Jt{}const _=N.compose({baseName:"icon-renderer",styles:I.X5,template:(0,I.V$)("rapid")});var z=a(80879);class M extends z.gs{}const F=M.compose({baseName:"select-renderer",styles:z.Ad,template:(0,z.qj)("rapid")});var H=a(19511);class B extends H.N7{}const X=B.compose({baseName:"status-pill-renderer",template:(0,H.T2)("rapid"),styles:H.x2});var U=a(98884),V=a(60591),K=a(6757);const Y=n.css`
49
49
  .ag-theme-genesis-rapid,
50
50
  .ag-theme-genesis-rapid-dark,
51
51
  .ag-theme-genesis-rapid-light {
@@ -757,7 +757,7 @@
757
757
  ${q}
758
758
  ${Q}
759
759
  ${Z}
760
- `;var te=a(82128);const ae=(0,te.U)("rapid");var re=a(94842),ie=a(38370),oe=a(83912);const se="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",he="#000000",ce="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(se)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ne)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(de)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(le)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ge))},be={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(he)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ce)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(pe)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ue)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(me))},{create:fe}=ie.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.rowHoverSwatch:ve.rowHoverSwatch)},Ce=()=>{const e=(0,re.designTokensMap)();if(!e.value)return null;const{style:t,space:a}=e.value.design_tokens;return(t.baseHeightMultiplier.$value+t.density.$value)*a.designUnit.$value-8},Ee="ag-theme-genesis-rapid-dark",Se="ag-theme-genesis-rapid-light";class we extends i.cF{constructor(){super(...arguments),this.handleLuminanceChange=e=>{const t=s.baseLayerLuminance.getValueFor(e.target);this.theme=t===s.StandardLuminance.DarkMode?Ee:Se},this.theme="light"===localStorage.getItem("luminance")?Se:Ee}connectedCallback(){super.connectedCallback(),this.luminanceSubscription=s.baseLayerLuminance.subscribe({handleChange:this.handleLuminanceChange},this.provider)}disconnectedCallback(){this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Ee)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,r,i,s;e.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:x,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.icon]:N,[o.IX.select]:M,[o.IX.selectEditor]:l,[o.IX.numberEditor]:c,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:E,[o.IX.statusPill]:B},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===j||this.theme===W||this.theme===J)&&(this.headerHeight=null!==(r=null!==(a=e.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(s=null!==(i=e.rowHeight)&&void 0!==i?i:Ce())&&void 0!==s?s:32),super.gridOptions=e}}(0,r.Cg)([n.observable],we.prototype,"provider",void 0);const Ae=i.LU,Re=i.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Ae},Re));var xe=a(6884),De=a(20633),Ge=a(21409),Oe=a(17190),Te=a(48046),$e=a(88047),Pe=a(62051),Le=a.n(Pe),Ie=a(56943),Ne=a(64315),_e=a(63296),ze=a(24638),Me=a(18070),Fe=a(26062),He=a(90509),Be=a(79270),Xe=a(32610),Ue=a(53397),Ve=a(52540),Ke=a(49104),Ye=a(19060),je=a(88863),qe=a(71964),We=a(73203),Qe=a(50103),Je=a(1510),Ze=a(23201);(0,De.N)(Fe.D,_e.L,ze.X,Ie.O,Ne.G),Te.syG.registerModules([Te.n76,Te.Q90,Te.x6L,Te.YN8,Te.YzW,Te.Lt,Te.I95,Te.O4V,Te.H18,Te.mfG,Te.Iws,Te.nSw,Te.FUS,Te.Ss0,Te.tkg,Te.ZDV,Te.XG7]);const et="gridReady";class tt extends((0,Ge.S)(ie.FoundationElement)){rowDataChanged(e,t){this.initialised&&this.gridApi.setGridOption("rowData",t)}getfilterModel(){return(0,r.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.enableCellFlashing=!1,this.enableRowFlashing=!1,this.columnComponentName="grid-pro-column",this.themeMode="dark",this.pagination=!1,this.statusBarConfig=o.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.handleLuminanceChange=e=>{const t=s.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===s.StandardLuminance.DarkMode?"dark":"light"},this.agAttributes={},this.agPropertiesMap=Xe.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Qe.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([He.V.dataInit,e],[Xe.yY.datasourceErrorClose,e],[Me.L.error,this.handleBaseDatasourceError.bind(this)],[Me.L.connected,e])}addEventListener(e,t,a){super.addEventListener(e,t,a),this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e)}addGridEventListener(e){this.registeredGridEvents.has(e)||(this.registeredGridEvents.add(e),this.gridApi.addEventListener(e,t=>{this.$emit(e,t)}))}handleError(e,t){this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:e}]}handleBaseDatasourceError(e){const t={detail:{message:e.detail.message},type:Xe.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Xe.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.luminanceSubscription=s.baseLayerLuminance.subscribe({handleChange:this.handleLuminanceChange},this.provider),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,Oe.j)(this,e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(this.rootEventsListeners.forEach(([e,t])=>{this.addEventListener(e,t)}),Xe.zI.forEach(e=>{Object.defineProperty(this,e,{set:t=>{this.agAttributeChangedCallback((0,Qe.w)(e),void 0,t)},enumerable:!0,configurable:!0})}),this.toggleDatasourceEventListeners(!0),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:xe.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach(([e,t])=>{this.removeEventListener(e,t)}),this.toggleDatasourceEventListeners(!1),n.DOM.queueUpdate(()=>{e&&(this.initialised=!1,this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.registeredGridEvents.clear())})}toggleDatasourceEventListeners(e){const t=[[Be.c.initialize,this.handleInitialize],[Be.c.dataLoaded,this.handleDataLoaded],[Be.c.dataChanged,this.handleDataChanged],[Be.c.schemaUpdated,this.handleSchemaUpdated],[Be.c.dataCleared,this.handleDataCleared],[Be.c.loadingStarted,this.handleLoadingStarted],[Be.c.loadingFinished,this.handleLoadingFinished],[Be.c.noDataAvailable,this.handleNoDataAvailable],[Be.c.filtersRestored,this.handleFiltersRestored],[Be.c.moreDataAvailable,this.handleMoreDataAvailable],[Be.c.error,this.handleDatasourceError],[Be.c.destroy,this.handleDatasourceDestroy],[Be.c.cacheFilterConfig,this.cacheFilterConfig],[Be.c.refreshServerSide,this.handleRefreshServerSide],[Be.c.setServerSideDatasource,this.handleSetServerSideDatasource],[Be.c.addGridCssClass,this.handleAddGridCssClass],[Be.c.removeGridCssClass,this.handleRemoveGridCssClass],[Be.c.applyServerSideTransaction,this.handleApplyServerSideTransaction]],a=e?"addEventListener":"removeEventListener";t.forEach(([e,t])=>{this[a](e,t.bind(this))})}handleInitialize(e){const{options:t,keepColDefsOnClearRowData:a}=e.detail;a&&(this.columnState=this.gridApi.getColumnState()),this.gridOptions=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}handleDataLoaded(e){const{data:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("rowData",t)}handleDataChanged(e){const{changes:t}=e.detail;if(!this.gridApi)return;const a=this.gridApi.applyTransaction(t);this.flashAddedCells(null==a?void 0:a.add)}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,r.sH)(this,void 0,void 0,function*(){const{schema:t}=e.detail;if(this.gridApi.isModuleRegistered("MultiFilterModule")||t.forEach(e=>{"agMultiColumnFilter"===e.filter&&(Je.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")}),this.gridApi){const e=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",e)}})}handleDataCleared(e){const{includeSchema:t}=e.detail;this.gridApi&&(t&&this.gridApi.setGridOption("columnDefs",[]),this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}))}handleLoadingStarted(){this.gridApi&&this.gridApi.setGridOption("loading",!0)}handleLoadingFinished(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.hideOverlay())}handleNoDataAvailable(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.showNoRowsOverlay())}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var t,a,r,i;const{hasMoreData:s,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.loadMore);d&&(null===(i=(r=d).updateParams)||void 0===i||i.call(r,{moreRows:s,sourceRef:n}))}handleDatasourceError(){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:t}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:t})}handleSetServerSideDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("serverSideDatasource",t)}handleAddGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.add(a)}handleRemoveGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.remove(a)}handleApplyServerSideTransaction(e){const{transaction:t,async:a,callback:r}=e.detail;if(!this.gridApi)return;this.gridApi.applyServerSideTransaction(t)}combineAllGridComponents(e){const t={[o.IX.action]:w.eA,[o.IX.actionsMenu]:k.cN,[o.IX.boolean]:G._Y,[o.IX.editable]:$.YM,[o.IX.icon]:I.Jt,[o.IX.statusPill]:H.N7,[o.IX.select]:z.gs,[o.IX.selectEditor]:d._Q,[o.IX.numberEditor]:h.Z0,[o.IX.multiselectEditor]:u.pZ,[o.IX.dateEditor]:b.S8,[o.IX.stringEditor]:C.XJ,[o.k7.labelValue]:Ve.k,[o.k7.loadMore]:Ke.s,[o.k7.pagination]:Ye.h,[o.k7.reload]:je.W,[o.k7.rowCount]:qe.i};return Object.assign(Object.assign(Object.assign({},t),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,t,a,r;try{if(!this.initialised||!this.gridApi)return[];const i=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===i||"multiple"===i)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(t=this.gridApi)||void 0===t?void 0:t.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(a=this.gridOptions)||void 0===a?void 0:a.enableRangeSelection)){const e=null===(r=this.gridApi)||void 0===r?void 0:r.getFocusedCell();if(e){const t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==t?void 0:t.data)return[t.data]}}return[]}catch(e){return Je.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const t=this.gridApi.getCellRanges();if(0===t.length)return[];const a=[];return t.forEach(e=>{const t=e.startRow.rowIndex,r=e.endRow.rowIndex;for(let e=t;e<=r;e+=1){const t=this.gridApi.getDisplayedRowAtIndex(e);(null==t?void 0:t.data)&&!a.some(e=>e===t.data)&&a.push(t.data)}}),a}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var t,a;if(!this.gridApi)return void Je.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const r=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.labelValue);r&&"function"==typeof r.updateParams?r.updateParams(e):Je.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 e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},Xe.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const t=0===e.filter(e=>{if(e.hide)return!1;const t=this.gridApi.getColumn(e.colId);return Boolean(t.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||t)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}restoreColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState();t&&t.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:t,applyOrder:!0}))})}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;const a=yield this.getfilterModel();void 0!==a&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(a),null===(t=this.gridApi)||void 0===t||t.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof ze.X}get gridParams(){return{globalListener: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(e){const t=Le()(this.saveColumnState.bind(this),400),a=Le()(this.cacheFilterConfig.bind(this),400),i=()=>{t(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:s,components:n,defaultColDef:d,getRowId:l,onGridReady:g,onFilterChanged:h}=e,c=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},d),components:this.combineAllGridComponents(n),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var t,a,r;this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),g&&g(e),(null===(t=this.gridProDatasource)||void 0===t?void 0:t.keepColDefsOnClearRowData)&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.gridApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(et,{event:e,gridId:this.id}),this.$emit(o.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Be.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:i,onColumnResized:i,onColumnMoved:i,onDisplayedColumnsChanged:i,onFilterChanged:e=>{a(),h&&h(e)},onGridSizeChanged:i,onSortChanged:i}),c);this.gridProDatasource?(p.columnDefs=s,p.getRowId=l,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p)):this.mergeAllColumnDefsAndStates(s).then(e=>{p.columnDefs=e,p.getRowId=l,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p),this.initGrid()})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Xe.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){n.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),console.log("initGrid agGridOptions",this.agGridOptions),this.agGrid=(0,Te.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}mergeAllColumnDefsAndStates(e){return(0,r.sH)(this,arguments,void 0,function*(e,t=!1){var a;const r=e||[];r.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=$e[this.headerCaseType];t?e.headerName=t(e.field):Je.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 i=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,a;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const i=null===(a=null===(t=r.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams)||void 0===a?void 0:a.values;i&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:i}))}}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[o.A7]===e.field)return{component:o.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=We.y,e.tooltipValueGetter=t=>{const a=t.data[o.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[o.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const i=r.find(t=>e.field===t.field);return Object.assign(Object.assign({},i),e)}),s=i.map(e=>e.field),n=[...i,...this.onlyTemplateColDefs?[]:r.filter(e=>!s.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,Ze.yS)(n,e);if((null===(a=this.gridProDatasource.deferredColumnStates)||void 0===a?void 0:a.length)>0)return(0,Ze.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,t){return t.some(t=>t.statusPanel===e)}addRowCountPanel(e,t){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const a=this.isServerSide||"serverSide"===(null==t?void 0:t.rowModelType),r=this._pagination||!0===(null==t?void 0:t.pagination);if(a&&!r)this.panelExists(o.k7.rowCount,e)||e.push({statusPanel:o.k7.rowCount,align:"left"});else if(!a){const t="agTotalAndFilteredRowCountComponent";this.panelExists(t,e)||e.push({statusPanel:t,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(o.k7.labelValue,e)||e.push({statusPanel:o.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||xe.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const t=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(t=>!this.panelExists(t.statusPanel,e));e.push(...t)}}addPaginationPanel(e){this._pagination&&(this.panelExists(o.k7.pagination,e)||e.push({statusPanel:o.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var t,a;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const r=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(r,e),this.addMaxRowsPanel(r),this.addAggregationPanel(r),this.addDatasourcePanels(r),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(r));const i=((null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,r));r.push(...i),e.statusBar={statusPanels:r}}}get observedAttributes(){const e=Xe.zI.map(e=>e.toLowerCase()),t=Xe.zI.map(e=>(0,Qe.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,a){var r;if(t===a)return;const i=this.agPropertiesMap[e];i&&(this.agAttributes[i]=a,this.initialised&&(null===(r=this.gridApi)||void 0===r||r.setGridOption(i,a)))}globalEventListener(e,t){const a=e.toLowerCase(),r=new Event(a);r.agGridDetails=t,this.dispatchEvent(r);const i="on"+a;"function"==typeof this[i]&&this[i](r)}}(0,r.Cg)([n.observable],tt.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridErrorItems",void 0),(0,r.Cg)([Ue.l],tt.prototype,"statePersistence",void 0),(0,r.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],tt.prototype,"autoCellRendererByType",void 0),(0,r.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],tt.prototype,"onlyTemplateColDefs",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],tt.prototype,"gridAutosizingEnabled",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],tt.prototype,"enableCellFlashing",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],tt.prototype,"enableRowFlashing",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],tt.prototype,"persistColumnStateKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],tt.prototype,"persistFilterModelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"header-case-type"})],tt.prototype,"headerCaseType",void 0),(0,r.Cg)([n.observable],tt.prototype,"rowData",void 0),(0,r.Cg)([n.attr],tt.prototype,"columnComponentName",void 0),(0,r.Cg)([n.observable],tt.prototype,"eventsAndCallbacks",void 0),(0,r.Cg)([n.attr],tt.prototype,"headerHeight",void 0),(0,r.Cg)([n.attr],tt.prototype,"rowHeight",void 0),(0,r.Cg)([n.observable],tt.prototype,"classNames",void 0),(0,r.Cg)([n.observable],tt.prototype,"agGrid",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridSlot",void 0),(0,r.Cg)([n.observable],tt.prototype,"themeMode",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridComponents",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],tt.prototype,"pagination",void 0),(0,r.Cg)([(0,n.attr)({attribute:"pagination-page-size"})],tt.prototype,"paginationPageSize",void 0),(0,r.Cg)([n.observable],tt.prototype,"statusBarConfig",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],tt.prototype,"withStatusBar",void 0),(0,r.Cg)([n.observable],tt.prototype,"customErrorHandlerTemplate",void 0),(0,r.Cg)([o.lz],tt.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],tt.prototype,"provider",void 0);class at extends tt{set gridOptions(e){var t,a,r,i,s;e.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:x,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.select]:M,[o.IX.selectEditor]:l,[o.IX.numberEditor]:c,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:E,[o.IX.statusPill]:B,[o.IX.icon]:N},null!==(t=e.components)&&void 0!==t?t:{}),this.headerHeight=null!==(r=null!==(a=e.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(s=null!==(i=e.rowHeight)&&void 0!==i?i:Ce())&&void 0!==s?s:32,e.theme=Te.N8R.withParams({backgroundColor:"var(--neutral-layer-card-container)",cellHorizontalPadding:"calc(var(--design-unit) * 2px)",foregroundColor:"var(--neutral-foreground-rest)",headerTextColor:"var(--neutral-foreground-hint)",headerBackgroundColor:"var(--neutral-layer-3)",headerColumnBorder:"1px solid var(--neutral-stroke-rest)",oddRowBackgroundColor:"var(--neutral-layer-1)",rowBorder:"1px solid var(--neutral-stroke-divider-rest)",borderColor:"var(--neutral-stroke-rest)",wrapperBorder:"0",accentColor:"var(--accent-foreground-rest)",fontFamily:"var(--body-font)",sideBarBackgroundColor:"var(--neutral-layer-2)",dataFontSize:"var(--type-ramp-minus-2-font-size)",iconButtonColor:"var(--accent-foreground-rest)",iconButtonHoverColor:"color-mix(in srgb, var(--accent-foreground-rest), var(--ag-foreground-color) 30%)",rowHeight:this.rowHeight}),super.gridOptions=e}}(0,r.Cg)([n.observable],at.prototype,"provider",void 0);const rt=at.compose(Object.assign({baseName:"grid-pro",template:ae,styles:n.css`
760
+ `;var te=a(82128);const ae=(0,te.U)("rapid");var re=a(63107),ie=a(38370),oe=a(83912);const se="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",he="#000000",ce="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(se)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ne)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(de)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(le)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ge))},be={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(he)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ce)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(pe)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ue)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(me))},{create:fe}=ie.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.rowHoverSwatch:ve.rowHoverSwatch)},Ce=()=>{const e=(0,re.designTokensMap)();if(!e.value)return null;const{style:t,space:a}=e.value.design_tokens;return(t.baseHeightMultiplier.$value+t.density.$value)*a.designUnit.$value-8},Ee="ag-theme-genesis-rapid-dark",Se="ag-theme-genesis-rapid-light";class we extends i.cF{constructor(){super(...arguments),this.handleLuminanceChange=e=>{const t=s.baseLayerLuminance.getValueFor(e.target);this.theme=t===s.StandardLuminance.DarkMode?Ee:Se},this.theme="light"===localStorage.getItem("luminance")?Se:Ee}connectedCallback(){super.connectedCallback(),this.luminanceSubscription=s.baseLayerLuminance.subscribe({handleChange:this.handleLuminanceChange},this.provider)}disconnectedCallback(){this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Ee)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,r,i,s;e.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:x,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.icon]:N,[o.IX.select]:M,[o.IX.selectEditor]:l,[o.IX.numberEditor]:c,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:E,[o.IX.statusPill]:B},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===j||this.theme===W||this.theme===J)&&(this.headerHeight=null!==(r=null!==(a=e.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(s=null!==(i=e.rowHeight)&&void 0!==i?i:Ce())&&void 0!==s?s:32),super.gridOptions=e}}(0,r.Cg)([n.observable],we.prototype,"provider",void 0);const Ae=i.LU,Re=i.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Ae},Re));var xe=a(6884),De=a(20633),Ge=a(21409),Oe=a(17190),Te=a(48046),$e=a(88047),Pe=a(62051),Le=a.n(Pe),Ie=a(56943),Ne=a(64315),_e=a(63296),ze=a(24638),Me=a(18070),Fe=a(26062),He=a(90509),Be=a(79270),Xe=a(32610),Ue=a(53397),Ve=a(52540),Ke=a(49104),Ye=a(19060),je=a(88863),qe=a(71964),We=a(73203),Qe=a(50103),Je=a(1510),Ze=a(23201);(0,De.N)(Fe.D,_e.L,ze.X,Ie.O,Ne.G),Te.syG.registerModules([Te.n76,Te.Q90,Te.x6L,Te.YN8,Te.YzW,Te.Lt,Te.I95,Te.O4V,Te.H18,Te.mfG,Te.Iws,Te.nSw,Te.FUS,Te.Ss0,Te.tkg,Te.ZDV,Te.XG7]);const et="gridReady";class tt extends((0,Ge.S)(ie.FoundationElement)){rowDataChanged(e,t){this.initialised&&this.gridApi.setGridOption("rowData",t)}getfilterModel(){return(0,r.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.enableCellFlashing=!1,this.enableRowFlashing=!1,this.columnComponentName="grid-pro-column",this.themeMode="dark",this.pagination=!1,this.statusBarConfig=o.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.handleLuminanceChange=e=>{const t=s.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===s.StandardLuminance.DarkMode?"dark":"light"},this.agAttributes={},this.agPropertiesMap=Xe.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Qe.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([He.V.dataInit,e],[Xe.yY.datasourceErrorClose,e],[Me.L.error,this.handleBaseDatasourceError.bind(this)],[Me.L.connected,e])}addEventListener(e,t,a){super.addEventListener(e,t,a),this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e)}addGridEventListener(e){this.registeredGridEvents.has(e)||(this.registeredGridEvents.add(e),this.gridApi.addEventListener(e,t=>{this.$emit(e,t)}))}handleError(e,t){this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:e}]}handleBaseDatasourceError(e){const t={detail:{message:e.detail.message},type:Xe.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Xe.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.luminanceSubscription=s.baseLayerLuminance.subscribe({handleChange:this.handleLuminanceChange},this.provider),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,Oe.j)(this,e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(this.rootEventsListeners.forEach(([e,t])=>{this.addEventListener(e,t)}),Xe.zI.forEach(e=>{Object.defineProperty(this,e,{set:t=>{this.agAttributeChangedCallback((0,Qe.w)(e),void 0,t)},enumerable:!0,configurable:!0})}),this.toggleDatasourceEventListeners(!0),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:xe.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach(([e,t])=>{this.removeEventListener(e,t)}),this.toggleDatasourceEventListeners(!1),n.DOM.queueUpdate(()=>{e&&(this.initialised=!1,this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.registeredGridEvents.clear())})}toggleDatasourceEventListeners(e){const t=[[Be.c.initialize,this.handleInitialize],[Be.c.dataLoaded,this.handleDataLoaded],[Be.c.dataChanged,this.handleDataChanged],[Be.c.schemaUpdated,this.handleSchemaUpdated],[Be.c.dataCleared,this.handleDataCleared],[Be.c.loadingStarted,this.handleLoadingStarted],[Be.c.loadingFinished,this.handleLoadingFinished],[Be.c.noDataAvailable,this.handleNoDataAvailable],[Be.c.filtersRestored,this.handleFiltersRestored],[Be.c.moreDataAvailable,this.handleMoreDataAvailable],[Be.c.error,this.handleDatasourceError],[Be.c.destroy,this.handleDatasourceDestroy],[Be.c.cacheFilterConfig,this.cacheFilterConfig],[Be.c.refreshServerSide,this.handleRefreshServerSide],[Be.c.setServerSideDatasource,this.handleSetServerSideDatasource],[Be.c.addGridCssClass,this.handleAddGridCssClass],[Be.c.removeGridCssClass,this.handleRemoveGridCssClass],[Be.c.applyServerSideTransaction,this.handleApplyServerSideTransaction]],a=e?"addEventListener":"removeEventListener";t.forEach(([e,t])=>{this[a](e,t.bind(this))})}handleInitialize(e){const{options:t,keepColDefsOnClearRowData:a}=e.detail;a&&(this.columnState=this.gridApi.getColumnState()),this.gridOptions=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}handleDataLoaded(e){const{data:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("rowData",t)}handleDataChanged(e){const{changes:t}=e.detail;if(!this.gridApi)return;const a=this.gridApi.applyTransaction(t);this.flashAddedCells(null==a?void 0:a.add)}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,r.sH)(this,void 0,void 0,function*(){const{schema:t}=e.detail;if(this.gridApi.isModuleRegistered("MultiFilterModule")||t.forEach(e=>{"agMultiColumnFilter"===e.filter&&(Je.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")}),this.gridApi){const e=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",e)}})}handleDataCleared(e){const{includeSchema:t}=e.detail;this.gridApi&&(t&&this.gridApi.setGridOption("columnDefs",[]),this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}))}handleLoadingStarted(){this.gridApi&&this.gridApi.setGridOption("loading",!0)}handleLoadingFinished(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.hideOverlay())}handleNoDataAvailable(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.showNoRowsOverlay())}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var t,a,r,i;const{hasMoreData:s,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.loadMore);d&&(null===(i=(r=d).updateParams)||void 0===i||i.call(r,{moreRows:s,sourceRef:n}))}handleDatasourceError(){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:t}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:t})}handleSetServerSideDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("serverSideDatasource",t)}handleAddGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.add(a)}handleRemoveGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.remove(a)}handleApplyServerSideTransaction(e){const{transaction:t,async:a,callback:r}=e.detail;if(!this.gridApi)return;this.gridApi.applyServerSideTransaction(t)}combineAllGridComponents(e){const t={[o.IX.action]:w.eA,[o.IX.actionsMenu]:k.cN,[o.IX.boolean]:G._Y,[o.IX.editable]:$.YM,[o.IX.icon]:I.Jt,[o.IX.statusPill]:H.N7,[o.IX.select]:z.gs,[o.IX.selectEditor]:d._Q,[o.IX.numberEditor]:h.Z0,[o.IX.multiselectEditor]:u.pZ,[o.IX.dateEditor]:b.S8,[o.IX.stringEditor]:C.XJ,[o.k7.labelValue]:Ve.k,[o.k7.loadMore]:Ke.s,[o.k7.pagination]:Ye.h,[o.k7.reload]:je.W,[o.k7.rowCount]:qe.i};return Object.assign(Object.assign(Object.assign({},t),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,t,a,r;try{if(!this.initialised||!this.gridApi)return[];const i=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===i||"multiple"===i)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(t=this.gridApi)||void 0===t?void 0:t.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(a=this.gridOptions)||void 0===a?void 0:a.enableRangeSelection)){const e=null===(r=this.gridApi)||void 0===r?void 0:r.getFocusedCell();if(e){const t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==t?void 0:t.data)return[t.data]}}return[]}catch(e){return Je.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const t=this.gridApi.getCellRanges();if(0===t.length)return[];const a=[];return t.forEach(e=>{const t=e.startRow.rowIndex,r=e.endRow.rowIndex;for(let e=t;e<=r;e+=1){const t=this.gridApi.getDisplayedRowAtIndex(e);(null==t?void 0:t.data)&&!a.some(e=>e===t.data)&&a.push(t.data)}}),a}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var t,a;if(!this.gridApi)return void Je.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const r=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.labelValue);r&&"function"==typeof r.updateParams?r.updateParams(e):Je.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 e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},Xe.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const t=0===e.filter(e=>{if(e.hide)return!1;const t=this.gridApi.getColumn(e.colId);return Boolean(t.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||t)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}restoreColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState();t&&t.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:t,applyOrder:!0}))})}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;const a=yield this.getfilterModel();void 0!==a&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(a),null===(t=this.gridApi)||void 0===t||t.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof ze.X}get gridParams(){return{globalListener: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(e){const t=Le()(this.saveColumnState.bind(this),400),a=Le()(this.cacheFilterConfig.bind(this),400),i=()=>{t(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:s,components:n,defaultColDef:d,getRowId:l,onGridReady:g,onFilterChanged:h}=e,c=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},d),components:this.combineAllGridComponents(n),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var t,a,r;this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),g&&g(e),(null===(t=this.gridProDatasource)||void 0===t?void 0:t.keepColDefsOnClearRowData)&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.gridApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(et,{event:e,gridId:this.id}),this.$emit(o.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Be.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:i,onColumnResized:i,onColumnMoved:i,onDisplayedColumnsChanged:i,onFilterChanged:e=>{a(),h&&h(e)},onGridSizeChanged:i,onSortChanged:i}),c);this.gridProDatasource?(p.columnDefs=s,p.getRowId=l,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p)):this.mergeAllColumnDefsAndStates(s).then(e=>{p.columnDefs=e,p.getRowId=l,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p),this.initGrid()})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Xe.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){n.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),console.log("initGrid agGridOptions",this.agGridOptions),this.agGrid=(0,Te.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}mergeAllColumnDefsAndStates(e){return(0,r.sH)(this,arguments,void 0,function*(e,t=!1){var a;const r=e||[];r.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=$e[this.headerCaseType];t?e.headerName=t(e.field):Je.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 i=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,a;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const i=null===(a=null===(t=r.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams)||void 0===a?void 0:a.values;i&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:i}))}}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[o.A7]===e.field)return{component:o.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=We.y,e.tooltipValueGetter=t=>{const a=t.data[o.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[o.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const i=r.find(t=>e.field===t.field);return Object.assign(Object.assign({},i),e)}),s=i.map(e=>e.field),n=[...i,...this.onlyTemplateColDefs?[]:r.filter(e=>!s.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,Ze.yS)(n,e);if((null===(a=this.gridProDatasource.deferredColumnStates)||void 0===a?void 0:a.length)>0)return(0,Ze.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,t){return t.some(t=>t.statusPanel===e)}addRowCountPanel(e,t){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const a=this.isServerSide||"serverSide"===(null==t?void 0:t.rowModelType),r=this._pagination||!0===(null==t?void 0:t.pagination);if(a&&!r)this.panelExists(o.k7.rowCount,e)||e.push({statusPanel:o.k7.rowCount,align:"left"});else if(!a){const t="agTotalAndFilteredRowCountComponent";this.panelExists(t,e)||e.push({statusPanel:t,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(o.k7.labelValue,e)||e.push({statusPanel:o.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||xe.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const t=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(t=>!this.panelExists(t.statusPanel,e));e.push(...t)}}addPaginationPanel(e){this._pagination&&(this.panelExists(o.k7.pagination,e)||e.push({statusPanel:o.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var t,a;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const r=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(r,e),this.addMaxRowsPanel(r),this.addAggregationPanel(r),this.addDatasourcePanels(r),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(r));const i=((null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,r));r.push(...i),e.statusBar={statusPanels:r}}}get observedAttributes(){const e=Xe.zI.map(e=>e.toLowerCase()),t=Xe.zI.map(e=>(0,Qe.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,a){var r;if(t===a)return;const i=this.agPropertiesMap[e];i&&(this.agAttributes[i]=a,this.initialised&&(null===(r=this.gridApi)||void 0===r||r.setGridOption(i,a)))}globalEventListener(e,t){const a=e.toLowerCase(),r=new Event(a);r.agGridDetails=t,this.dispatchEvent(r);const i="on"+a;"function"==typeof this[i]&&this[i](r)}}(0,r.Cg)([n.observable],tt.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridErrorItems",void 0),(0,r.Cg)([Ue.l],tt.prototype,"statePersistence",void 0),(0,r.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],tt.prototype,"autoCellRendererByType",void 0),(0,r.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],tt.prototype,"onlyTemplateColDefs",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],tt.prototype,"gridAutosizingEnabled",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],tt.prototype,"enableCellFlashing",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],tt.prototype,"enableRowFlashing",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],tt.prototype,"persistColumnStateKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],tt.prototype,"persistFilterModelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"header-case-type"})],tt.prototype,"headerCaseType",void 0),(0,r.Cg)([n.observable],tt.prototype,"rowData",void 0),(0,r.Cg)([n.attr],tt.prototype,"columnComponentName",void 0),(0,r.Cg)([n.observable],tt.prototype,"eventsAndCallbacks",void 0),(0,r.Cg)([n.attr],tt.prototype,"headerHeight",void 0),(0,r.Cg)([n.attr],tt.prototype,"rowHeight",void 0),(0,r.Cg)([n.observable],tt.prototype,"classNames",void 0),(0,r.Cg)([n.observable],tt.prototype,"agGrid",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridSlot",void 0),(0,r.Cg)([n.observable],tt.prototype,"themeMode",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridComponents",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],tt.prototype,"pagination",void 0),(0,r.Cg)([(0,n.attr)({attribute:"pagination-page-size"})],tt.prototype,"paginationPageSize",void 0),(0,r.Cg)([n.observable],tt.prototype,"statusBarConfig",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],tt.prototype,"withStatusBar",void 0),(0,r.Cg)([n.observable],tt.prototype,"customErrorHandlerTemplate",void 0),(0,r.Cg)([o.lz],tt.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],tt.prototype,"provider",void 0);class at extends tt{set gridOptions(e){var t,a,r,i,s;e.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:x,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.select]:M,[o.IX.selectEditor]:l,[o.IX.numberEditor]:c,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:E,[o.IX.statusPill]:B,[o.IX.icon]:N},null!==(t=e.components)&&void 0!==t?t:{}),this.headerHeight=null!==(r=null!==(a=e.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(s=null!==(i=e.rowHeight)&&void 0!==i?i:Ce())&&void 0!==s?s:32,e.theme=Te.N8R.withParams({backgroundColor:"var(--neutral-layer-card-container)",cellHorizontalPadding:"calc(var(--design-unit) * 2px)",foregroundColor:"var(--neutral-foreground-rest)",headerTextColor:"var(--neutral-foreground-hint)",headerBackgroundColor:"var(--neutral-layer-3)",headerColumnBorder:"1px solid var(--neutral-stroke-rest)",oddRowBackgroundColor:"var(--neutral-layer-1)",rowBorder:"1px solid var(--neutral-stroke-divider-rest)",borderColor:"var(--neutral-stroke-rest)",wrapperBorder:"0",accentColor:"var(--accent-foreground-rest)",fontFamily:"var(--body-font)",sideBarBackgroundColor:"var(--neutral-layer-2)",dataFontSize:"var(--type-ramp-minus-2-font-size)",iconButtonColor:"var(--accent-foreground-rest)",iconButtonHoverColor:"color-mix(in srgb, var(--accent-foreground-rest), var(--ag-foreground-color) 30%)",rowHeight:this.rowHeight}),super.gridOptions=e}}(0,r.Cg)([n.observable],at.prototype,"provider",void 0);const rt=at.compose(Object.assign({baseName:"grid-pro",template:ae,styles:n.css`
761
761
  :host {
762
762
  width: 100%;
763
763
  height: 100%;
@@ -972,4 +972,4 @@
972
972
  </div>
973
973
  </div>
974
974
  `,St=Et(),wt={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},At=(e,t)=>!e.composedPath().includes(t);function Rt(e,t,a,i){return(0,r.sH)(this,void 0,void 0,function*(){var r;try{const o=function(e,t){const a=(new lt.K).withField(e).withValue(null!=t?t:"").withSerialiser(gt.n.EQ).withGroup("default").build();return a.serialiser(a)}(a,i),s=yield e.request(t,{DETAILS:{CRITERIA_MATCH:o}});return 1===(null===(r=s.REPLY)||void 0===r?void 0:r.length)?s.REPLY[0]:void 0}catch(e){return void console.error(`Failed to retrieve object from the ${t} resource: ${e instanceof Error?e.message:String(e)}`)}})}class kt extends((0,Ge.S)(ie.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Le()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{At(e,this)&&(this.open=!1)}}get connect(){var e;return null!==(e=this.connectOverride)&&void 0!==e?e:this._connectDI}set connect(e){this.connectOverride=e}get value(){return n.Observable.track(this,"value"),this._value}set value(e){e!==this._value&&(e?Rt(this.connect,this.resourceName,this.valueKey,e).then(t=>{this.value===e&&(this.selectedRow=t)}):this.selectedRow=void 0,this.emitValue(e))}get displayValue(){return this.selectedRow&&this.labelKey&&this.selectedRow[this.labelKey]||this.value||""}get hasSearchKey(){return!!this.searchKey&&this.searchKey.length>0}get hasSlottedContent(){return!(!this.defaultSlottedNodes||0===this.defaultSlottedNodes.length)&&this.defaultSlottedNodes.some(e=>{var t;return e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim().length)>0})}connectedCallback(){var e;super.connectedCallback(),(null===(e=this.optionsElement)||void 0===e?void 0:e.style)&&this.dropdownWidthChanged(),this.open=!1,this.filterSearch="",this.grid&&(this.grid.gridOptions={defaultColDef:wt,onRowClicked:e=>{this.selectedRow=e.data,this.emitValue(e.data[this.valueKey]),this.toggle()}})}setGridRowData(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({rowData:e}):a.setRowData(e))}setGridColumnDefs(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({columnDefs:e}):a.setColumnDefs(e))}emitValue(e){this._value=e,this.$emit("change",e),this.$emit("input",e),n.Observable.notify(this,"value")}toggle(){this.open=!this.open}getAndSetRows(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;if(!(null===(e=this.grid)||void 0===e?void 0:e.gridApi))return;const a=this.lastRequest={},r=this.request?{REQUEST:Object.assign({},this.request)}:{},i=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let o;if(i&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(i)?i:[i]).map(e=>{var t;return(new lt.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(gt.n.containsIgnoreCase).withGroup("default").build()}),t=new ht.b;t.Or(e,{join:ct.r.Or()}),o=t.build()}else{if(Array.isArray(i))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");r.REQUEST=Object.assign(Object.assign({},r.REQUEST),{[i]:`*${this.filterSearch}*`})}const s=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();s&&o?o=`(${o}) && (${s})`:s&&(o=s),o&&(r.DETAILS={CRITERIA_MATCH:o});try{const e=yield this.connect.request(this.resourceName,r);if(a!==this.lastRequest)return;const t=(null==e?void 0:e.REPLY)||[];this.setGridRowData(t),t.length>0?this.grid.gridApi.hideOverlay():this.grid.gridApi.showNoRowsOverlay()}catch(e){console.error(`Failed to retrieve rows from the ${this.resourceName} resource: ${e instanceof Error?e.message:String(e)}`)}})}filterSearchChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRowsDebounce())}requestChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRows())}columnDefinitionsChanged(){this.setGridColumnDefs(this.columnDefinitions)}openChanged(){var e,t;this.open?(document.addEventListener("mousedown",this.handleClickOutside),(null===(e=this.grid)||void 0===e?void 0:e.gridApi)&&(this.grid.gridApi.showLoadingOverlay(),this.getAndSetRows())):(document.removeEventListener("mousedown",this.handleClickOutside),this.filterSearch="",(null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]))}dropdownWidthChanged(){var e,t;null===(t=null===(e=this.optionsElement)||void 0===e?void 0:e.style)||void 0===t||t.setProperty(ut,this.dropdownWidth>0?`${this.dropdownWidth}px`:"inherit")}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>{var t;e&&((null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]),this.selectedRow=void 0,this._value=void 0)})}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}}(0,r.Cg)([dt.dm],kt.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],kt.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],kt.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:pt})],kt.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],kt.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],kt.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],kt.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],kt.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],kt.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],kt.prototype,"request",void 0),(0,r.Cg)([n.observable],kt.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],kt.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],kt.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],kt.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],kt.prototype,"open",void 0),(0,r.Cg)([n.observable],kt.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],kt.prototype,"displayValue",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSlottedContent",null);const xt=kt.compose({baseName:"multicolumn-dropdown",template:St,styles:bt}),Dt=kt.compose({baseName:"multicolumn-dropdown",template:Et("rapid"),styles:bt});var Gt=a(3299),Ot=a(70349),Tt=a(91327),$t=a(35610),Pt=a(30335),Lt=a(49568);const It={foundationIconRenderer:I.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:it.G4,foundationAgTextFieldRenderer:Ot.wG,foundationAgEditableRenderer:$.r8,foundationAgSelectRenderer:z.bE,foundationSelectEditor:d.RU,foundationNumberEditor:h.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:xt,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:i.RB,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var Nt=a(92277);const _t=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,zt=e=>{const t=e.split(":");let a,r;2===t.length?[a,r]=t:r=e;const i=(e=>{if(_t.test(e)){const t=atob(e),a=new Uint8Array(t.length);return[...t].forEach((e,r)=>{a[r]=t.charCodeAt(r)}),a.buffer}return e})(r);if("str"===a){return new TextDecoder("utf-8").decode(i)}return i},Mt=e=>{const t=(e=>{if("string"==typeof e)return btoa(e);if(e instanceof ArrayBuffer){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}return""})(e);return"string"==typeof e?`str:${t}`:e instanceof ArrayBuffer?`bin:${t}`:""},Ft={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Ht=ie.DI.createInterface();var Bt,Xt;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Bt||(Bt={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Xt||(Xt={}));let Ut=class{constructor(e,t,a=Ft){this.connect=e,this.user=t,this.kvStorageConfig=a}delete(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_DELETE,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}get(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},r=yield this.connect.request(Bt.REQ_KEY_VALUE_READ,a);if(r&&r.REPLY&&r.REPLY.length>0){const t=r.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=zt(e);return"string"==typeof t&&t.startsWith("str:")&&(t=zt(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=zt(t)),t}list(){return(0,r.sH)(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},a=yield this.connect.request(Bt.REQ_KEY_VALUE_LIST,t);if(a&&a.REPLY&&a.REPLY.length>0){return a.REPLY.map(e=>e.KEY)}return[]})}put(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?Mt(e.value):e.value}))}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Ut=(0,r.Cg)([(0,r.Qj)(0,dt.dm),(0,r.Qj)(1,Nt.KJ),(0,r.Qj)(2,(0,ie.optional)(Ht))],Ut);const Vt=ie.DI.createInterface(e=>e.singleton(Ut));var Kt=a(98316);class Yt{getColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):[]})}saveColumnState(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e);if(a&&(null===(t=a.kv)||void 0===t?void 0:t.value))return;const r=this.session.getLocalStorageItem("gridOptions"),i=r?JSON.parse(r)[e]:void 0;i&&(Je.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:i}]))})}getFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):{}})}saveFilterModel(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,r.Cg)([Vt],Yt.prototype,"kvStorage",void 0),(0,r.Cg)([Kt.N],Yt.prototype,"session",void 0);var jt=a(11749);const qt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#4c4c4c")),Wt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#c01754")),{create:Qt}=ie.DesignToken,Jt={foregroundColor:Qt("fui-ag-foreground-color").withDefault(Wt),backgroundColor:Qt("fui-ag-background-color").withDefault(qt)};var Zt=a(68858),ea=a(49874);const ta={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
975
- //# sourceMappingURL=182.e9e329a216086e248a1cadf9ea69b3ac.js.map
975
+ //# sourceMappingURL=182.a8198c05e2a0d31a6cfce0e2f48fc765.js.map