@genesislcap/design-system-configurator 14.206.2 → 14.206.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[427],{7526:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Zm,ColorToken:()=>eb,ColorTokens:()=>ib,DesignSystemEditor:()=>jm,DesignSystemExport:()=>Wm,DesignSystemPreview:()=>cb,EventName:()=>Cm,PreviewComponents:()=>Vm,PreviewForm:()=>fb,PreviewGrid:()=>kb,TypographyTokens:()=>sb,defaultBodyFont:()=>Dm,fontFamilies:()=>Am});var t={};r.r(t),r.d(t,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>Ve,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>He,defaultErrorColor:()=>Le,defaultSellColor:()=>Qe,defaultSuccessColor:()=>je,defaultWarningColor:()=>Ge,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Ie,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>We,strokeWidth:()=>f.strokeWidth,successColor:()=>Pe,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>_e});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>qe,baseLayerLuminanceValue:()=>Ze,bodyFontValue:()=>sa,controlCornerRadiusValue:()=>aa,densityValue:()=>ra,designTokens:()=>ca,designUnitValue:()=>ta,directionValue:()=>Xe,neutralPaletteValue:()=>Je,strokeWidthValue:()=>ea,typeRampBaseFontSizeValue:()=>ga,typeRampBaseLineHeightValue:()=>da});var i={};r.r(i),r.d(i,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>$g,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>Cg,defaultErrorColor:()=>bg,defaultSellColor:()=>Dg,defaultSuccessColor:()=>wg,defaultWarningColor:()=>kg,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>vg,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>Tg,strokeWidth:()=>f.strokeWidth,successColor:()=>yg,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>zg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Lg,accentFillFocusDeltaValue:()=>Ig,accentFillHoverDeltaValue:()=>Mg,accentFillRestDeltaValue:()=>Ng,accentForegroundActiveDeltaValue:()=>Pg,accentForegroundFocusDeltaValue:()=>Bg,accentForegroundHoverDeltaValue:()=>jg,accentForegroundRestDeltaValue:()=>Eg,accentPaletteValue:()=>Fg,baseHeightMultiplierValue:()=>hd,baseLayerLuminanceValue:()=>Rg,bodyFontValue:()=>fd,controlCornerRadiusValue:()=>md,densityValue:()=>bd,designTokens:()=>Ed,designUnitValue:()=>vd,directionValue:()=>dd,disabledOpacityValue:()=>cd,focusStrokeWidthValue:()=>ud,neutralFillActiveDeltaValue:()=>Ug,neutralFillFocusDeltaValue:()=>Hg,neutralFillHoverDeltaValue:()=>_g,neutralFillInputActiveDeltaValue:()=>Qg,neutralFillInputFocusDeltaValue:()=>Wg,neutralFillInputHoverDeltaValue:()=>Yg,neutralFillInputRestDeltaValue:()=>Vg,neutralFillLayerRestDeltaValue:()=>td,neutralFillRestDeltaValue:()=>Gg,neutralFillStealthActiveDeltaValue:()=>Zg,neutralFillStealthFocusDeltaValue:()=>Kg,neutralFillStealthHoverDeltaValue:()=>Jg,neutralFillStealthRestDeltaValue:()=>qg,neutralFillStrongActiveDeltaValue:()=>ad,neutralFillStrongFocusDeltaValue:()=>rd,neutralFillStrongHoverDeltaValue:()=>ed,neutralFillStrongRestDeltaValue:()=>Xg,neutralPaletteValue:()=>Og,neutralStrokeActiveDeltaValue:()=>nd,neutralStrokeDividerRestDeltaValue:()=>sd,neutralStrokeFocusDeltaValue:()=>ld,neutralStrokeHoverDeltaValue:()=>id,neutralStrokeRestDeltaValue:()=>od,prefix:()=>gd,strokeWidthValue:()=>pd,typeRampBaseFontSizeValue:()=>wd,typeRampBaseLineHeightValue:()=>yd,typeRampMinus1FontSizeValue:()=>xd,typeRampMinus1LineHeightValue:()=>kd,typeRampMinus2FontSizeValue:()=>zd,typeRampMinus2LineHeightValue:()=>Sd,typeRampPlus1FontSizeValue:()=>Cd,typeRampPlus1LineHeightValue:()=>$d,typeRampPlus2FontSizeValue:()=>Ad,typeRampPlus2LineHeightValue:()=>Dd,typeRampPlus3FontSizeValue:()=>Td,typeRampPlus3LineHeightValue:()=>Fd,typeRampPlus4FontSizeValue:()=>Od,typeRampPlus4LineHeightValue:()=>Rd,typeRampPlus5FontSizeValue:()=>Nd,typeRampPlus5LineHeightValue:()=>Md,typeRampPlus6FontSizeValue:()=>Ld,typeRampPlus6LineHeightValue:()=>Id});var l=r(28410),s=r(24636),g=r(43543),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,s,g;return g=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__classPrivateFieldGet)(this,a,"m",s).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,s,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(s=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),s},s=function e(r){var t;if(!0===r.getRootNode()[p])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},g},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[427],{7526:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Zm,ColorToken:()=>eb,ColorTokens:()=>ib,DesignSystemEditor:()=>jm,DesignSystemExport:()=>Wm,DesignSystemPreview:()=>cb,EventName:()=>Cm,PreviewComponents:()=>Vm,PreviewForm:()=>fb,PreviewGrid:()=>kb,TypographyTokens:()=>sb,defaultBodyFont:()=>Dm,fontFamilies:()=>Am});var t={};r.r(t),r.d(t,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>Ve,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>He,defaultErrorColor:()=>Le,defaultSellColor:()=>Qe,defaultSuccessColor:()=>je,defaultWarningColor:()=>Ge,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Ie,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>We,strokeWidth:()=>f.strokeWidth,successColor:()=>Pe,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>_e});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>qe,baseLayerLuminanceValue:()=>Ze,bodyFontValue:()=>sa,controlCornerRadiusValue:()=>aa,densityValue:()=>ra,designTokens:()=>ca,designUnitValue:()=>ta,directionValue:()=>Xe,neutralPaletteValue:()=>Je,strokeWidthValue:()=>ea,typeRampBaseFontSizeValue:()=>ga,typeRampBaseLineHeightValue:()=>da});var i={};r.r(i),r.d(i,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>$g,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>Cg,defaultErrorColor:()=>bg,defaultSellColor:()=>Dg,defaultSuccessColor:()=>wg,defaultWarningColor:()=>kg,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>vg,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>Tg,strokeWidth:()=>f.strokeWidth,successColor:()=>yg,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>zg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Lg,accentFillFocusDeltaValue:()=>Ig,accentFillHoverDeltaValue:()=>Mg,accentFillRestDeltaValue:()=>Ng,accentForegroundActiveDeltaValue:()=>Pg,accentForegroundFocusDeltaValue:()=>Bg,accentForegroundHoverDeltaValue:()=>jg,accentForegroundRestDeltaValue:()=>Eg,accentPaletteValue:()=>Og,baseHeightMultiplierValue:()=>hd,baseLayerLuminanceValue:()=>Rg,bodyFontValue:()=>fd,controlCornerRadiusValue:()=>md,densityValue:()=>bd,designTokens:()=>Ed,designUnitValue:()=>vd,directionValue:()=>dd,disabledOpacityValue:()=>cd,focusStrokeWidthValue:()=>ud,neutralFillActiveDeltaValue:()=>Ug,neutralFillFocusDeltaValue:()=>Hg,neutralFillHoverDeltaValue:()=>_g,neutralFillInputActiveDeltaValue:()=>Qg,neutralFillInputFocusDeltaValue:()=>Wg,neutralFillInputHoverDeltaValue:()=>Yg,neutralFillInputRestDeltaValue:()=>Vg,neutralFillLayerRestDeltaValue:()=>td,neutralFillRestDeltaValue:()=>Gg,neutralFillStealthActiveDeltaValue:()=>Zg,neutralFillStealthFocusDeltaValue:()=>Kg,neutralFillStealthHoverDeltaValue:()=>Jg,neutralFillStealthRestDeltaValue:()=>qg,neutralFillStrongActiveDeltaValue:()=>ad,neutralFillStrongFocusDeltaValue:()=>rd,neutralFillStrongHoverDeltaValue:()=>ed,neutralFillStrongRestDeltaValue:()=>Xg,neutralPaletteValue:()=>Fg,neutralStrokeActiveDeltaValue:()=>nd,neutralStrokeDividerRestDeltaValue:()=>sd,neutralStrokeFocusDeltaValue:()=>ld,neutralStrokeHoverDeltaValue:()=>id,neutralStrokeRestDeltaValue:()=>od,prefix:()=>gd,strokeWidthValue:()=>pd,typeRampBaseFontSizeValue:()=>wd,typeRampBaseLineHeightValue:()=>yd,typeRampMinus1FontSizeValue:()=>xd,typeRampMinus1LineHeightValue:()=>kd,typeRampMinus2FontSizeValue:()=>zd,typeRampMinus2LineHeightValue:()=>Sd,typeRampPlus1FontSizeValue:()=>Cd,typeRampPlus1LineHeightValue:()=>$d,typeRampPlus2FontSizeValue:()=>Ad,typeRampPlus2LineHeightValue:()=>Dd,typeRampPlus3FontSizeValue:()=>Td,typeRampPlus3LineHeightValue:()=>Od,typeRampPlus4FontSizeValue:()=>Fd,typeRampPlus4LineHeightValue:()=>Rd,typeRampPlus5FontSizeValue:()=>Nd,typeRampPlus5LineHeightValue:()=>Md,typeRampPlus6FontSizeValue:()=>Ld,typeRampPlus6LineHeightValue:()=>Id});var l=r(56256),s=r(24636),g=r(43543),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,s,g;return g=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__classPrivateFieldGet)(this,a,"m",s).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,s,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(s=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),s},s=function e(r){var t;if(!0===r.getRootNode()[p])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},g},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
2
2
  :host {
3
3
  border: calc(${f.strokeWidth} * 1px) solid transparent;
4
4
  margin: 0;
@@ -56,7 +56,7 @@
56
56
  background: ${w.A.Canvas};
57
57
  border-color: ${w.A.CanvasText};
58
58
  }
59
- `)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(26512);const z=(0,k.createLogger)("foundation-form"),S=b.html`
59
+ `)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(45614);const z=(0,k.createLogger)("foundation-form"),S=b.html`
60
60
  <template>
61
61
  ${(0,b.when)((e=>!1),b.html`
62
62
  <rapid-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
@@ -140,7 +140,7 @@
140
140
  .tab-panel-control {
141
141
  margin-top: 10px;
142
142
  }
143
- `;let F=class extends b.FASTElement{};(0,s.__decorate)([b.observable],F.prototype,"form",void 0),(0,s.__decorate)([b.observable],F.prototype,"control",void 0),F=(0,s.__decorate)([(0,b.customElement)({name:"categorization-wrapper",styles:T,template:b.html`
143
+ `;let O=class extends b.FASTElement{};(0,s.__decorate)([b.observable],O.prototype,"form",void 0),(0,s.__decorate)([b.observable],O.prototype,"control",void 0),O=(0,s.__decorate)([(0,b.customElement)({name:"categorization-wrapper",styles:T,template:b.html`
144
144
  ${e=>((e="zero")=>b.html`
145
145
  <template>
146
146
  <${e}-tabs class="tabs-container">
@@ -163,11 +163,11 @@
163
163
  </${e}-tabs>
164
164
  </template>
165
165
  `)(e.form.prefix)}
166
- `})],F);var O=r(31679);const R=b.html`
166
+ `})],O);var F=r(31679);const R=b.html`
167
167
  <template>
168
168
  ${(0,b.when)((e=>{var a;return null===(a=e.control)||void 0===a?void 0:a.visible}),b.html`
169
169
  <div
170
- class=${e=>{var a,r,t,o;return(0,O.x)(["wrapperRoot",!0],["labelLeft","left"===(null===(o=null===(t=null===(r=null===(a=e.jsonForms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.uischema)||void 0===t?void 0:t.options)||void 0===o?void 0:o.labelPlacement)])}}
170
+ class=${e=>{var a,r,t,o;return(0,F.x)(["wrapperRoot",!0],["labelLeft","left"===(null===(o=null===(t=null===(r=null===(a=e.jsonForms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.uischema)||void 0===t?void 0:t.options)||void 0===o?void 0:o.labelPlacement)])}}
171
171
  id=${e=>e.control.path+"-wrapper"}
172
172
  data-test-id=${e=>e.control.path+"-wrapper"}
173
173
  >
@@ -310,7 +310,7 @@
310
310
  </control-wrapper>
311
311
  </template>
312
312
  `)(e.prefix)}
313
- `,tester:(0,m.Hc7)(3,U),mapper:m.kOB};var V=r(77484);const Y=e=>a=>{if(!a||!(0,m.c0N)(a))return!1;const r=a.options;return!(!r||!r[e])},Q=(0,m.Uo6)(Y("allOptionsResourceName"),(0,m.or)((0,m.f4S)((e=>(0,m.dfR)(e,"array"))),(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,m.dfR)(e,"array")))))));V.MultiselectDatasource;const W={renderer:b.html`
313
+ `,tester:(0,m.Hc7)(3,U),mapper:m.kOB};var V=r(91630);const Y=e=>a=>{if(!a||!(0,m.c0N)(a))return!1;const r=a.options;return!(!r||!r[e])},Q=(0,m.Uo6)(Y("allOptionsResourceName"),(0,m.or)((0,m.f4S)((e=>(0,m.dfR)(e,"array"))),(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,m.dfR)(e,"array")))))));V.MultiselectDatasource;const W={renderer:b.html`
314
314
  ${e=>((e="zero")=>b.html`
315
315
  <template>
316
316
  <control-wrapper
@@ -369,7 +369,7 @@
369
369
  </control-wrapper>
370
370
  </template>
371
371
  `)(e.prefix)}
372
- `,tester:(0,m.Hc7)(4,(0,m.or)(Y("allOptionsResourceName"),Y("data"))),mapper:m.kOB};var J;!function(e){e.STRING="STRING",e.ENUM="ENUM",e.INT="INT",e.SHORT="SHORT",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BOOLEAN="BOOLEAN",e.BIGDECIMAL="BIGDECIMAL",e.DATE="DATE",e.DATETIME="DATETIME",e.RAW="RAW"}(J||(J={}));const Z=(0,m.f4S)((e=>"org.joda.time.DateTime"===e.description)),K=(0,m.or)(Z,(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),X=e=>{var a;return(null===(a=e.schema)||void 0===a?void 0:a.genesisType)===J.DATETIME?"datetime-local":"date"},ee={renderer:b.html`
372
+ `,tester:(0,m.Hc7)(4,(0,m.or)(Y("allOptionsResourceName"),Y("data"))),mapper:m.kOB};var J;!function(e){e.STRING="STRING",e.ENUM="ENUM",e.INT="INT",e.SHORT="SHORT",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BOOLEAN="BOOLEAN",e.BIGDECIMAL="BIGDECIMAL",e.DATE="DATE",e.DATETIME="DATETIME",e.RAW="RAW"}(J||(J={}));const Z=(0,m.f4S)((e=>"org.joda.time.DateTime"===e.description)),K=(0,m.or)(Z,(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),X=e=>{var a,r;return(null===(a=e.schema)||void 0===a?void 0:a.hasOwnProperty("oneOf"))?e.schema.oneOf.some((e=>e.genesisType===J.DATETIME))?"datetime-local":"date":(null===(r=e.schema)||void 0===r?void 0:r.genesisType)===J.DATETIME?"datetime-local":"date"},ee={renderer:b.html`
373
373
  ${e=>((e="zero")=>b.html`
374
374
  <template>
375
375
  <control-wrapper
@@ -626,7 +626,7 @@
626
626
  </control-wrapper>
627
627
  </template>
628
628
  `)(e.prefix)}
629
- `,Se={renderer:ze,tester:(0,m.Hc7)(2,m.Nyt),mapper:m.kOB},Ce=[{renderer:ze,tester:(0,m.Hc7)(1,m.c0N),mapper:m.kOB},Se,H,ye,se,ge,de,ue,me,pe,he,fe,W,oe,q,ee,ie];let $e=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.prefix="zero",this.renderers=Ce,this.additionalRenderers=[],this.mergedRenderers=Ce,this.errors=[],this.data={}}resourceNameChanged(){var e;return(0,s.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const a=yield this.connect.getJSONSchema(this.resourceName);if(!a)return;const r=new(h())(a.INBOUND);this.jsonSchema=null===(e=(yield r.resolve()).properties)||void 0===e?void 0:e.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,z.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}renderersChanged(){this.updateMergedRenderers()}additionalRenderersChanged(){this.updateMergedRenderers()}updateMergedRenderers(){const{renderers:e=[],additionalRenderers:a=[]}=this;this.mergedRenderers=[...e,...a]}_submit(){return(0,s.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield b.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(z.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}deepClone(){const e=super.deepClone();try{e.uischema=structuredClone(this.uischema),e.jsonSchema=structuredClone(this.jsonSchema)}catch(e){z.error("Error cloning form",e)}return e}submitPart(e){this.submitted=!0}onChange(e){z.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors,e.detail.additionalErrors.length&&(this.errors=[...this.errors,...e.detail.additionalErrors]))}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};(0,s.__decorate)([(0,b.attr)({attribute:"design-system-prefix"})],$e.prototype,"prefix",void 0),(0,s.__decorate)([b.attr],$e.prototype,"resourceName",void 0),(0,s.__decorate)([b.observable],$e.prototype,"uischema",void 0),(0,s.__decorate)([b.observable],$e.prototype,"renderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"additionalRenderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"mergedRenderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"jsonSchema",void 0),(0,s.__decorate)([g.dm],$e.prototype,"connect",void 0),(0,s.__decorate)([b.observable],$e.prototype,"data",void 0),(0,s.__decorate)([b.observable],$e.prototype,"submitting",void 0),(0,s.__decorate)([b.observable],$e.prototype,"submitted",void 0),(0,s.__decorate)([(0,b.attr)({mode:"boolean"})],$e.prototype,"readonly",void 0),(0,s.__decorate)([(0,b.attr)({attribute:"hide-submit-button",mode:"boolean"})],$e.prototype,"hideSubmit",void 0),(0,s.__decorate)([b.volatile],$e.prototype,"isSubmitHidden",null),$e=(0,s.__decorate)([(0,b.customElement)({name:"foundation-form",template:_,styles:y})],$e);var Ae,De,Te,Fe,Oe,Re=r(4273);!function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.buy="#7ACC79",e.sell="#F14376"}(Ae||(Ae={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(De||(De={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(Te||(Te={})),function(e){e.grey="#7c909b"}(Fe||(Fe={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(Oe||(Oe={}));const{create:Ne}=v.DesignToken,Me=(0,Re.parseColorHexRGB)(Ae.error),Le=f.SwatchRGB.create(Me.r,Me.g,Me.b),Ie=Ne("error-color").withDefault(Le),Ee=(0,Re.parseColorHexRGB)(Ae.success),je=f.SwatchRGB.create(Ee.r,Ee.g,Ee.b),Pe=Ne("success-color").withDefault(je),Be=(0,Re.parseColorHexRGB)(Ae.warning),Ge=f.SwatchRGB.create(Be.r,Be.g,Be.b),_e=Ne("warning-color").withDefault(Ge),Ue=(0,Re.parseColorHexRGB)(Ae.buy),He=f.SwatchRGB.create(Ue.r,Ue.g,Ue.b),Ve=Ne("buy-color").withDefault(He),Ye=(0,Re.parseColorHexRGB)(Ae.sell),Qe=f.SwatchRGB.create(Ye.r,Ye.g,Ye.b),We=Ne("sell-color").withDefault(Qe),qe=(0,V.paletteFromHex)(De.blue),Je=(0,V.paletteFromHex)(Fe.grey),Ze=f.StandardLuminance.DarkMode;var Ke=r(85109);const Xe=Ke.O.ltr,ea=f.strokeWidth.getValueFor(f.strokeWidth.appliedTo[0]),aa=4,ra=f.density.getValueFor(f.density.appliedTo[0]),ta=4;var oa=r(80273);const ia=()=>{(0,oa.WP)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},na='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',la=(e=oa.zz.Normal,a=oa.IT.Regular)=>(0,oa.f4)(na,e,a),sa=na,ga=f.typeRampBaseFontSize.getValueFor(f.typeRampBaseFontSize.appliedTo[0]),da=f.typeRampBaseLineHeight.getValueFor(f.typeRampBaseLineHeight.appliedTo[0]),ca={design_tokens:{color:{accent:{$value:qe.source.toColorString(),$type:"color"},neutral:{$value:Je.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:sa,$type:"fontFamily"}},typography:{baseFontSize:{$value:ga,$type:"dimension"},baseLineHeight:{$value:da,$type:"dimension"}},mode:{luminance:{$value:Ze,$type:"number"}},style:{density:{$value:ra,$type:"number"},borderRadius:{$value:aa,$type:"number"},strokeWidth:{$value:ea,$type:"number"}},space:{designUnit:{$value:ta,$type:"number"}}}};class pa extends V.Accordion{}const ua=pa.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,V.foundationAccordionTemplate)(e,a),styles:(e,a)=>b.css`
629
+ `,Se={renderer:ze,tester:(0,m.Hc7)(2,m.Nyt),mapper:m.kOB},Ce=[{renderer:ze,tester:(0,m.Hc7)(1,m.c0N),mapper:m.kOB},Se,H,ye,se,ge,de,ue,me,pe,he,fe,W,oe,q,ee,ie];let $e=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.prefix="zero",this.renderers=Ce,this.additionalRenderers=[],this.mergedRenderers=Ce,this.errors=[],this.data={}}resourceNameChanged(){var e;return(0,s.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const a=yield this.connect.getJSONSchema(this.resourceName);if(!a)return;const r=new(h())(a.INBOUND);this.jsonSchema=null===(e=(yield r.resolve()).properties)||void 0===e?void 0:e.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,z.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}renderersChanged(){this.updateMergedRenderers()}additionalRenderersChanged(){this.updateMergedRenderers()}updateMergedRenderers(){const{renderers:e=[],additionalRenderers:a=[]}=this;this.mergedRenderers=[...e,...a]}_submit(){return(0,s.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield b.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(z.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}deepClone(){const e=super.deepClone();try{e.uischema=structuredClone(this.uischema),e.jsonSchema=structuredClone(this.jsonSchema)}catch(e){z.error("Error cloning form",e)}return e}submitPart(e){this.submitted=!0}onChange(e){z.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors,e.detail.additionalErrors.length&&(this.errors=[...this.errors,...e.detail.additionalErrors]))}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};(0,s.__decorate)([(0,b.attr)({attribute:"design-system-prefix"})],$e.prototype,"prefix",void 0),(0,s.__decorate)([b.attr],$e.prototype,"resourceName",void 0),(0,s.__decorate)([b.observable],$e.prototype,"uischema",void 0),(0,s.__decorate)([b.observable],$e.prototype,"renderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"additionalRenderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"mergedRenderers",void 0),(0,s.__decorate)([b.observable],$e.prototype,"jsonSchema",void 0),(0,s.__decorate)([g.dm],$e.prototype,"connect",void 0),(0,s.__decorate)([b.observable],$e.prototype,"data",void 0),(0,s.__decorate)([b.observable],$e.prototype,"submitting",void 0),(0,s.__decorate)([b.observable],$e.prototype,"submitted",void 0),(0,s.__decorate)([(0,b.attr)({mode:"boolean"})],$e.prototype,"readonly",void 0),(0,s.__decorate)([(0,b.attr)({attribute:"hide-submit-button",mode:"boolean"})],$e.prototype,"hideSubmit",void 0),(0,s.__decorate)([b.volatile],$e.prototype,"isSubmitHidden",null),$e=(0,s.__decorate)([(0,b.customElement)({name:"foundation-form",template:_,styles:y})],$e);var Ae,De,Te,Oe,Fe,Re=r(4273);!function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.buy="#7ACC79",e.sell="#F14376"}(Ae||(Ae={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(De||(De={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(Te||(Te={})),function(e){e.grey="#7c909b"}(Oe||(Oe={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(Fe||(Fe={}));const{create:Ne}=v.DesignToken,Me=(0,Re.parseColorHexRGB)(Ae.error),Le=f.SwatchRGB.create(Me.r,Me.g,Me.b),Ie=Ne("error-color").withDefault(Le),Ee=(0,Re.parseColorHexRGB)(Ae.success),je=f.SwatchRGB.create(Ee.r,Ee.g,Ee.b),Pe=Ne("success-color").withDefault(je),Be=(0,Re.parseColorHexRGB)(Ae.warning),Ge=f.SwatchRGB.create(Be.r,Be.g,Be.b),_e=Ne("warning-color").withDefault(Ge),Ue=(0,Re.parseColorHexRGB)(Ae.buy),He=f.SwatchRGB.create(Ue.r,Ue.g,Ue.b),Ve=Ne("buy-color").withDefault(He),Ye=(0,Re.parseColorHexRGB)(Ae.sell),Qe=f.SwatchRGB.create(Ye.r,Ye.g,Ye.b),We=Ne("sell-color").withDefault(Qe),qe=(0,V.paletteFromHex)(De.blue),Je=(0,V.paletteFromHex)(Oe.grey),Ze=f.StandardLuminance.DarkMode;var Ke=r(85109);const Xe=Ke.O.ltr,ea=f.strokeWidth.getValueFor(f.strokeWidth.appliedTo[0]),aa=4,ra=f.density.getValueFor(f.density.appliedTo[0]),ta=4;var oa=r(80273);const ia=()=>{(0,oa.WP)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},na='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',la=(e=oa.zz.Normal,a=oa.IT.Regular)=>(0,oa.f4)(na,e,a),sa=na,ga=f.typeRampBaseFontSize.getValueFor(f.typeRampBaseFontSize.appliedTo[0]),da=f.typeRampBaseLineHeight.getValueFor(f.typeRampBaseLineHeight.appliedTo[0]),ca={design_tokens:{color:{accent:{$value:qe.source.toColorString(),$type:"color"},neutral:{$value:Je.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:sa,$type:"fontFamily"}},typography:{baseFontSize:{$value:ga,$type:"dimension"},baseLineHeight:{$value:da,$type:"dimension"}},mode:{luminance:{$value:Ze,$type:"number"}},style:{density:{$value:ra,$type:"number"},borderRadius:{$value:aa,$type:"number"},strokeWidth:{$value:ea,$type:"number"}},space:{designUnit:{$value:ta,$type:"number"}}}};class pa extends V.Accordion{}const ua=pa.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,V.foundationAccordionTemplate)(e,a),styles:(e,a)=>b.css`
630
630
  ${(0,V.foundationAccordionStyles)(e,a)}
631
631
  `,shadowOptions:V.foundationAccordionShadowOptions},V.defaultAccordionConfig));class ha extends V.AccordionItem{}const ma=ha.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,V.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>b.css`
632
632
  ${(0,V.foundationAccordionItemStyles)(e,a)};
@@ -655,7 +655,7 @@
655
655
  }
656
656
 
657
657
  ${(0,V.actionsMenuBaseStyles)(e,a)}
658
- `,template:V.foundationActionsMenuTemplate}),fa=(e,a=1)=>new Re.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),wa=(0,Re.parseColorHexRGB)(Ae.white),ya=(e=1)=>fa(wa,e),xa=((0,Re.parseColorHexRGB)(Ae.black),(0,Re.parseColorHexRGB)("#585858")),ka=(f.SwatchRGB.create(xa.r,xa.g,xa.b),(0,Re.parseColorHexRGB)("#202126")),za=f.SwatchRGB.create(ka.r,ka.g,ka.b),Sa=(f.PaletteRGB.from(za),(0,Re.parseColorHexRGB)(De.blue)),Ca=(e=1)=>fa(Sa,e),$a=f.SwatchRGB.create(Sa.r,Sa.g,Sa.b),Aa=(f.PaletteRGB.from($a),(0,Re.parseColorHexRGB)(De.purple)),Da=(e=1)=>fa(Aa,e),Ta=(0,Re.parseColorHexRGB)(Te.orange),Fa=(e=1)=>fa(Ta,e),Oa=(0,Re.parseColorHexRGB)(Te.teal),Ra=(e=1)=>fa(Oa,e),Na=((0,Re.parseColorHexRGB)(Oe.longGreen),(0,Re.parseColorHexRGB)(Oe.chartPink),(0,Re.parseColorHexRGB)(Oe.warningYellow)),Ma=(0,Re.parseColorHexRGB)(Oe.chartPink),La=(e=1)=>fa(Ma,e);function Ia(e,a){return new v.PropertyStyleSheetBehavior("appearance",e,a)}const Ea=.3,ja=.1,Pa=.5,Ba=b.css`
658
+ `,template:V.foundationActionsMenuTemplate}),fa=(e,a=1)=>new Re.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),wa=(0,Re.parseColorHexRGB)(Ae.white),ya=(e=1)=>fa(wa,e),xa=((0,Re.parseColorHexRGB)(Ae.black),(0,Re.parseColorHexRGB)("#585858")),ka=(f.SwatchRGB.create(xa.r,xa.g,xa.b),(0,Re.parseColorHexRGB)("#202126")),za=f.SwatchRGB.create(ka.r,ka.g,ka.b),Sa=(f.PaletteRGB.from(za),(0,Re.parseColorHexRGB)(De.blue)),Ca=(e=1)=>fa(Sa,e),$a=f.SwatchRGB.create(Sa.r,Sa.g,Sa.b),Aa=(f.PaletteRGB.from($a),(0,Re.parseColorHexRGB)(De.purple)),Da=(e=1)=>fa(Aa,e),Ta=(0,Re.parseColorHexRGB)(Te.orange),Oa=(e=1)=>fa(Ta,e),Fa=(0,Re.parseColorHexRGB)(Te.teal),Ra=(e=1)=>fa(Fa,e),Na=((0,Re.parseColorHexRGB)(Fe.longGreen),(0,Re.parseColorHexRGB)(Fe.chartPink),(0,Re.parseColorHexRGB)(Fe.warningYellow)),Ma=(0,Re.parseColorHexRGB)(Fe.chartPink),La=(e=1)=>fa(Ma,e);function Ia(e,a){return new v.PropertyStyleSheetBehavior("appearance",e,a)}const Ea=.3,ja=.1,Pa=.5,Ba=b.css`
659
659
  :host([appearance='primary-blue']) {
660
660
  background: ${Ca(Ea)};
661
661
  border: 1px solid ${De.blue};
@@ -725,7 +725,7 @@
725
725
  }
726
726
  `,Ua=b.css`
727
727
  :host([appearance='secondary-orange']) {
728
- background: ${Fa(Ea)};
728
+ background: ${Oa(Ea)};
729
729
  border: 1px solid ${Te.orange};
730
730
  }
731
731
 
@@ -734,8 +734,8 @@
734
734
  }
735
735
 
736
736
  :host([appearance='secondary-orange']:active) {
737
- background: ${Fa(ja)};
738
- border: 1px solid ${Fa(Ea)};
737
+ background: ${Oa(ja)};
738
+ border: 1px solid ${Oa(Ea)};
739
739
  color: ${ya(Pa)};
740
740
  }
741
741
  `,Ha=b.css`
@@ -858,12 +858,12 @@
858
858
  }
859
859
 
860
860
  :host([appearance='outline-secondary-orange']:hover) {
861
- background: ${Fa(Ea)};
861
+ background: ${Oa(Ea)};
862
862
  }
863
863
 
864
864
  :host([appearance='outline-secondary-orange']:active) {
865
865
  background: transparent;
866
- border: 1px solid ${Fa(Ea)};
866
+ border: 1px solid ${Oa(Ea)};
867
867
  color: ${ya(Pa)};
868
868
  }
869
869
  `,qa=b.css`
@@ -971,14 +971,14 @@
971
971
  box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
972
972
  border-radius: calc(var(--control-corner-radius) * 1px);
973
973
  }
974
- `,shadowOptions:V.foundationCheckboxShadowOptions},V.defaultCheckboxConfig)),Ar=(0,Re.parseColorHexRGB)("#F1F1F1"),Dr=fa(Ar,1),Tr=(0,Re.parseColorHexRGB)("#879BA6"),Fr=fa(Tr,.06),Or=(0,Re.parseColorHexRGB)("#879BA6"),Rr=fa(Or,1),Nr=(0,Re.parseColorHexRGB)("#121212"),Mr=fa(Nr,1),Lr=(0,Re.parseColorHexRGB)("#2e3339"),Ir=fa(Lr,1);var Er;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.Danger="danger",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Er||(Er={}));Object.values(Er);class jr extends V.Combobox{}const Pr=jr.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,V.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
974
+ `,shadowOptions:V.foundationCheckboxShadowOptions},V.defaultCheckboxConfig)),Ar=(0,Re.parseColorHexRGB)("#F1F1F1"),Dr=fa(Ar,1),Tr=(0,Re.parseColorHexRGB)("#879BA6"),Or=fa(Tr,.06),Fr=(0,Re.parseColorHexRGB)("#879BA6"),Rr=fa(Fr,1),Nr=(0,Re.parseColorHexRGB)("#121212"),Mr=fa(Nr,1),Lr=(0,Re.parseColorHexRGB)("#2e3339"),Ir=fa(Lr,1);var Er;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.Danger="danger",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Er||(Er={}));Object.values(Er);class jr extends V.Combobox{}const Pr=jr.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,V.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
975
975
  ${(0,V.foundationComboboxStyles)(e,a)}
976
976
  :host {
977
977
  --primary-gradient-angle: -113.5deg;
978
978
 
979
979
  border-radius: calc(var(--control-corner-radius) * 1px);
980
980
  border-color: ${Ir};
981
- background: ${Fr};
981
+ background: ${Or};
982
982
  }
983
983
 
984
984
  :host(:focus-within:not([disabled])) {
@@ -1004,7 +1004,7 @@
1004
1004
 
1005
1005
  :host(:hover:not([disabled]):not([open])) {
1006
1006
  border-color: ${Dr};
1007
- background: ${Fr};
1007
+ background: ${Or};
1008
1008
  }
1009
1009
 
1010
1010
  :host([open][position='below']) .listbox {
@@ -1221,7 +1221,7 @@
1221
1221
  ${(0,V.getPrefixedFileUpload)("zero")}
1222
1222
  `,Ct=V.defaultFileUploadConfig,$t=V.foundationFileUploadShadowOptions;class At extends V.FileUpload{}const Dt=At.compose(Object.assign({baseName:"file-upload",shadowOptions:$t,styles:zt,template:St},Ct)),Tt=b.html`
1223
1223
  ${(0,V.getPrefixedFilterTemplate)("zero")}
1224
- `;class Ft extends V.Filter{}const Ot=Ft.compose({baseName:"filter",template:Tt,styles:V.foundationFilterStyles}),Rt=b.html`
1224
+ `;class Ot extends V.Filter{}const Ft=Ot.compose({baseName:"filter",template:Tt,styles:V.foundationFilterStyles}),Rt=b.html`
1225
1225
  ${(0,V.filterBarTemplate)("zero")}
1226
1226
  `;class Nt extends V.FilterBar{}const Mt=Nt.compose({baseName:"filter-bar",template:Rt,styles:(e,a)=>b.css`
1227
1227
  ${(0,V.foundationFilterBarStyles)(e,a)}
@@ -1349,7 +1349,7 @@
1349
1349
  }
1350
1350
 
1351
1351
  #display-field {
1352
- background: ${Fr};
1352
+ background: ${Or};
1353
1353
  }
1354
1354
 
1355
1355
  #display-field:focus {
@@ -1412,7 +1412,7 @@
1412
1412
 
1413
1413
  :host .root {
1414
1414
  border: calc(var(--stroke-width) * 1px) solid ${Ir};
1415
- background-color: ${Fr};
1415
+ background-color: ${Or};
1416
1416
  }
1417
1417
 
1418
1418
  :host(:hover:not([disabled])) .root {
@@ -1451,12 +1451,12 @@
1451
1451
  .label-hidden {
1452
1452
  margin: 0;
1453
1453
  }
1454
- `;class Do extends V.NumberField{}const To=V.defaultNumberFieldConfig,Fo=V.foundationNumberFieldTemplate,Oo=V.foundationNumberFieldShadowOptions,Ro=Do.compose(Object.assign({baseName:"number-field",template:Fo,styles:(e,a)=>b.css`
1454
+ `;class Do extends V.NumberField{}const To=V.defaultNumberFieldConfig,Oo=V.foundationNumberFieldTemplate,Fo=V.foundationNumberFieldShadowOptions,Ro=Do.compose(Object.assign({baseName:"number-field",template:Oo,styles:(e,a)=>b.css`
1455
1455
  :host .root {
1456
1456
  --focus-stroke-outer: transparent;
1457
1457
  }
1458
1458
  ${Ao(e,a)}
1459
- `,shadowOptions:Oo},To));class No extends V.SystemHealthOverlay{}const Mo=No.compose(Object.assign({baseName:"system-health-overlay",template:V.foundationSystemHealthOverlayTemplate,styles:V.foundationSystemHealthOverlayStyles,shadowOptions:V.foundationSystemHealthOverlayShadowOptions},V.defaultSystemHealthOverlayConfig));class Lo extends V.Progress{}const Io=Lo.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,V.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
1459
+ `,shadowOptions:Fo},To));class No extends V.SystemHealthOverlay{}const Mo=No.compose(Object.assign({baseName:"system-health-overlay",template:V.foundationSystemHealthOverlayTemplate,styles:V.foundationSystemHealthOverlayStyles,shadowOptions:V.foundationSystemHealthOverlayShadowOptions},V.defaultSystemHealthOverlayConfig));class Lo extends V.Progress{}const Io=Lo.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,V.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
1460
1460
  ${(0,V.foundationProgressStyles)(e,a)}
1461
1461
  :host([appearance="secondary-teal"]) {
1462
1462
  --accent-foreground-rest: ${Te.teal};
@@ -1552,7 +1552,7 @@
1552
1552
 
1553
1553
  border-radius: calc(var(--control-corner-radius) * 1px);
1554
1554
  border-color: ${Ir};
1555
- background: ${Fr};
1555
+ background: ${Or};
1556
1556
  }
1557
1557
 
1558
1558
  :host(:focus-within:not([disabled])) {
@@ -1578,7 +1578,7 @@
1578
1578
 
1579
1579
  :host(:hover:not([disabled]):not([open])) {
1580
1580
  border-color: ${Dr};
1581
- background: ${Fr};
1581
+ background: ${Or};
1582
1582
  }
1583
1583
 
1584
1584
  :host([open][position='below']) .listbox {
@@ -1642,7 +1642,7 @@
1642
1642
 
1643
1643
  border-radius: calc(var(--control-corner-radius) * 1px);
1644
1644
  border-color: ${Ir};
1645
- background: ${Fr};
1645
+ background: ${Or};
1646
1646
  }
1647
1647
 
1648
1648
  :host(:focus-within:not([disabled])) {
@@ -1668,7 +1668,7 @@
1668
1668
 
1669
1669
  :host(:hover:not([disabled]):not(.open)) {
1670
1670
  border-color: ${Dr};
1671
- background: ${Fr};
1671
+ background: ${Or};
1672
1672
  }
1673
1673
 
1674
1674
  :host([open][position='below']) .listbox {
@@ -1861,7 +1861,7 @@
1861
1861
  }
1862
1862
  `,shadowOptions:V.foundationTabShadowOptions},V.defaultTabConfig));class Di extends V.TabPanel{}const Ti=Di.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,V.foundationTabPanelTemplate)(e,a),styles:(e,a)=>b.css`
1863
1863
  ${(0,V.foundationTabPanelStyles)(e,a)}
1864
- `,shadowOptions:V.foundationTabPanelShadowOptions},V.defaultTabPanelConfig));class Fi extends V.Tabs{}const Oi=Fi.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,V.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
1864
+ `,shadowOptions:V.foundationTabPanelShadowOptions},V.defaultTabPanelConfig));class Oi extends V.Tabs{}const Fi=Oi.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,V.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
1865
1865
  ${(0,V.foundationTabsStyles)(e,a)}
1866
1866
  :host .tablist {
1867
1867
  padding: 0;
@@ -1915,14 +1915,14 @@
1915
1915
 
1916
1916
  :host .control {
1917
1917
  height: 100%;
1918
- background-color: ${Fr};
1918
+ background-color: ${Or};
1919
1919
  border: calc(var(--stroke-width) * 1px) solid ${Ir};
1920
1920
  border-radius: calc(var(--control-corner-radius) * 1px);
1921
1921
  }
1922
1922
 
1923
1923
  :host(:hover:not([disabled])) .control {
1924
1924
  border-color: ${Dr};
1925
- background: ${Fr};
1925
+ background: ${Or};
1926
1926
  }
1927
1927
 
1928
1928
  :host(:focus-within:not([disabled])) .control {
@@ -1976,7 +1976,7 @@
1976
1976
  }
1977
1977
 
1978
1978
  :host([notify='serious']) .toast::after {
1979
- background-color: ${Fa(1)};
1979
+ background-color: ${Oa(1)};
1980
1980
  }
1981
1981
  `,Ei=V.defaultToastConfig,ji=V.foundationToastShadowOptions;class Pi extends V.Toast{}const Bi=Pi.compose(Object.assign({baseName:"toast",shadowOptions:ji,styles:Ii,template:V.foundationToastTemplate},Ei));class Gi extends V.Toolbar{}const _i=Gi.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,V.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
1982
1982
  ${(0,V.foundationToolbarStyles)(e,a)}
@@ -2014,7 +2014,7 @@
2014
2014
  ${(0,V.foundationTreeViewStyles)(e,a)}
2015
2015
  `,shadowOptions:V.foundationTreeViewShadowOptions},V.defaultTreeViewConfig)),qi=b.html`
2016
2016
  ${(0,V.getPrefixedUrlInput)("zero")}
2017
- `;class Ji extends V.UrlInput{}const Zi={zeroAccordion:ua,zeroAccordionItem:ma,zeroActionsMenu:va,zeroAnchor:Ka,zeroAnchoredRegion:er,zeroAvatar:rr,zeroBadge:or,zeroBanner:sr,zeroBreadcrumbItem:pr,zeroBreadcrumb:dr,zeroButton:hr,zeroCalendar:br,zeroCard:fr,zeroCategorizedMultiselect:Sr,zeroCheckbox:$r,zeroCombobox:Pr,zeroConnectionIndicator:Gr,zeroDataGrid:Vr,zeroDesignSystemProvider:et,zeroDialog:st,zeroDatePicker:Wr,zeroDisclosure:dt,zeroDivider:pt,zeroDropdownMenu:ht,zeroErrorBoundary:yt,zeroNotificationListener:$o,zeroErrorBanner:ft,zeroErrorDialog:kt,zeroFileUpload:Dt,zeroFilter:Ot,zeroFilterBar:Mt,zeroFlexLayout:It,zeroFlipper:jt,zeroFlyout:Ht,zeroGridLayout:Yt,zeroGridLayoutItem:Wt,zeroHorizontalScroll:Zt,zeroIcon:ao,zeroListbox:to,zeroListboxOption:io,zeroMenu:so,zeroMenuItem:po,zeroModal:fo,zeroMultiselect:So,zeroNumberField:Ro,zeroProgress:Io,zeroProgressRing:Po,zeroRadio:Go,zeroRadioGroup:Uo,zeroSearchBar:Qo,zeroSearchBarCombobox:qo,zeroSegmentedControl:Zo,zeroSegmentedItem:Xo,zeroSelect:ai,zeroSkeleton:ti,zeroSlider:ii,zeroSliderLabel:li,zeroSnackbar:pi,zeroStackingIcons:hi,zeroStepper:fi,zeroStepperTab:xi,zeroStepperTabPanel:zi,zeroSwitch:Ci,zeroSystemHealthOverlay:Mo,zeroTab:Ai,zeroTabPanel:Ti,zeroTabs:Oi,zeroTextArea:Ni,zeroTextField:Li,zeroToast:Bi,zeroToolbar:_i,zeroTooltip:Hi,zeroTreeItem:Yi,zeroTreeView:Wi,zeroUrlInput:Ji.compose(Object.assign({baseName:"url-input",template:qi,styles:(e,a)=>b.css`
2017
+ `;class Ji extends V.UrlInput{}const Zi={zeroAccordion:ua,zeroAccordionItem:ma,zeroActionsMenu:va,zeroAnchor:Ka,zeroAnchoredRegion:er,zeroAvatar:rr,zeroBadge:or,zeroBanner:sr,zeroBreadcrumbItem:pr,zeroBreadcrumb:dr,zeroButton:hr,zeroCalendar:br,zeroCard:fr,zeroCategorizedMultiselect:Sr,zeroCheckbox:$r,zeroCombobox:Pr,zeroConnectionIndicator:Gr,zeroDataGrid:Vr,zeroDesignSystemProvider:et,zeroDialog:st,zeroDatePicker:Wr,zeroDisclosure:dt,zeroDivider:pt,zeroDropdownMenu:ht,zeroErrorBoundary:yt,zeroNotificationListener:$o,zeroErrorBanner:ft,zeroErrorDialog:kt,zeroFileUpload:Dt,zeroFilter:Ft,zeroFilterBar:Mt,zeroFlexLayout:It,zeroFlipper:jt,zeroFlyout:Ht,zeroGridLayout:Yt,zeroGridLayoutItem:Wt,zeroHorizontalScroll:Zt,zeroIcon:ao,zeroListbox:to,zeroListboxOption:io,zeroMenu:so,zeroMenuItem:po,zeroModal:fo,zeroMultiselect:So,zeroNumberField:Ro,zeroProgress:Io,zeroProgressRing:Po,zeroRadio:Go,zeroRadioGroup:Uo,zeroSearchBar:Qo,zeroSearchBarCombobox:qo,zeroSegmentedControl:Zo,zeroSegmentedItem:Xo,zeroSelect:ai,zeroSkeleton:ti,zeroSlider:ii,zeroSliderLabel:li,zeroSnackbar:pi,zeroStackingIcons:hi,zeroStepper:fi,zeroStepperTab:xi,zeroStepperTabPanel:zi,zeroSwitch:Ci,zeroSystemHealthOverlay:Mo,zeroTab:Ai,zeroTabPanel:Ti,zeroTabs:Fi,zeroTextArea:Ni,zeroTextField:Li,zeroToast:Bi,zeroToolbar:_i,zeroTooltip:Hi,zeroTreeItem:Yi,zeroTreeView:Wi,zeroUrlInput:Ji.compose(Object.assign({baseName:"url-input",template:qi,styles:(e,a)=>b.css`
2018
2018
  ${(0,V.foundationUrlInputStyles)(e,a)}
2019
2019
  a {
2020
2020
  color: ${De.blue};
@@ -2071,7 +2071,7 @@
2071
2071
  :initialSelectedValue=${e=>e.params.value}
2072
2072
  ></options-datasource>
2073
2073
  </${e}-combobox>
2074
- `,Tn=$n.compose({baseName:"select-editor",styles:An,template:Dn()});class Fn extends $n{}const On=Fn.compose({baseName:"select-editor",styles:An,template:Dn("zero")});class Rn extends v.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[gn]}}(0,en.__decorate)([b.observable],Rn.prototype,"params",void 0),(0,en.__decorate)([b.observable],Rn.prototype,"value",void 0),(0,en.__decorate)([b.observable],Rn.prototype,"actualWidth",void 0);const Nn=b.css`
2074
+ `,Tn=$n.compose({baseName:"select-editor",styles:An,template:Dn()});class On extends $n{}const Fn=On.compose({baseName:"select-editor",styles:An,template:Dn("zero")});class Rn extends v.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[gn]}}(0,en.__decorate)([b.observable],Rn.prototype,"params",void 0),(0,en.__decorate)([b.observable],Rn.prototype,"value",void 0),(0,en.__decorate)([b.observable],Rn.prototype,"actualWidth",void 0);const Nn=b.css`
2075
2075
  :host {
2076
2076
  display: flex;
2077
2077
  }
@@ -2221,7 +2221,7 @@
2221
2221
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
2222
2222
  `)}
2223
2223
  </${a}>
2224
- `},Tl=$l.compose({baseName:"select-renderer",styles:Al,template:Dl()});const Fl=class extends $l{}.compose({baseName:"select-renderer",styles:Al,template:Dl("zero")});var Ol=r(29310),Rl=r(84646),Nl=r(17190),Ml=r(21530),Ll=r(89882),Il=r(62051),El=r.n(Il);const jl=b.html`
2224
+ `},Tl=$l.compose({baseName:"select-renderer",styles:Al,template:Dl()});const Ol=class extends $l{}.compose({baseName:"select-renderer",styles:Al,template:Dl("zero")});var Fl=r(29310),Rl=r(84646),Nl=r(17190),Ml=r(21530),Ll=r(89882),Il=r(62051),El=r.n(Il);const jl=b.html`
2225
2225
  <template>
2226
2226
  <slot ${(0,b.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
2227
2227
  </template>
@@ -2229,7 +2229,7 @@
2229
2229
  <template>
2230
2230
  <slot ${(0,b.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
2231
2231
  </template>
2232
- `;let Gl=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}deepClone(){const e=super.deepClone();return e.definition={},this.definition&&Object.keys(this.definition).forEach((a=>{"function"==typeof this.definition[a]?e.definition[a]=this.definition[a].bind(e):e.definition[a]=structuredClone(this.definition[a])})),e}};(0,en.__decorate)([b.observable],Gl.prototype,"slottedAgCell",void 0),(0,en.__decorate)([b.observable],Gl.prototype,"definition",void 0),Gl=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-column",template:Bl})],Gl);var _l=r(96730),Ul=r(21281),Hl=r(34193),Vl=r(97156),Yl=r(56607),Ql=r(10629),Wl=r(41392),ql=r(92453),Jl=r(2773),Zl=r(40370),Kl=r(6884),Xl=r(39087),es=r(9033),as=r(41119),rs=r(17465),ts=r(12066);function os(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function is(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn"}}function ns({value:e}){return(0,ts.CL)(e)}function ls({value:e}){return(0,ts.zT)(e)}const ss="datasource-error-close",gs="datasource";class ds extends((0,Zl.C)(v.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Kl.OD.MAX_ROWS_250,this.maxView=Kl.OD.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1,this.pollingInterval=Kl.OD.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.requestAutoSetup=!0,this.criteriaFromFilters=new Map,this.update=new Vl.t(new Map)}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}get hasDefaultRowId(){return!this.rowIdAttr||this.rowIdAttr===Kl.OD.REQUEST_SERVER_ROW_ID||this.rowIdAttr===Kl.OD.DATASERVER_ROW_ID}get defaultRowIdByResourceType(){return this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}datasourceOptions(){return{resourceName:this.resourceName,isSnapshot:this.isSnapshot,criteria:this.buildCriteria(),maxRows:+this.maxRows,viewNumber:this.viewNumber,fields:this.fields,maxView:+this.maxView,movingView:this.movingView,orderBy:this.orderBy,reverse:this.reverse,disablePolling:this.disablePolling,pollingInterval:this.pollingInterval,request:this.request,requestAutoSetup:this.requestAutoSetup}}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values())),r=(0,_l.Q)(a.join(" && "),";");return r||void 0}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}get isRequestServer(){var e;return(null===(e=this.datasource.status)||void 0===e?void 0:e.type)===Xl.v.REQUEST_SERVER}datasourceStatusChanged(e,a){}get agGrid(){return this.parentElement}}var cs;(0,en.__decorate)([g.dm],ds.prototype,"connect",void 0),(0,en.__decorate)([es.yW],ds.prototype,"datasource",void 0),(0,en.__decorate)([b.observable],ds.prototype,"deferredGridOptions",void 0),(0,en.__decorate)([b.observable],ds.prototype,"deferredColumnStates",void 0),(0,en.__decorate)([b.observable],ds.prototype,"rowDataMapper",void 0),(0,en.__decorate)([b.attr],ds.prototype,"criteria",void 0),(0,en.__decorate)([b.attr],ds.prototype,"fields",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"is-snapshot"})],ds.prototype,"isSnapshot",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"max-rows"})],ds.prototype,"maxRows",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"max-view"})],ds.prototype,"maxView",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"moving-view"})],ds.prototype,"movingView",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"order-by"})],ds.prototype,"orderBy",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"resource-name"})],ds.prototype,"resourceName",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean"})],ds.prototype,"reverse",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"view-number"})],ds.prototype,"viewNumber",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"polling-interval"})],ds.prototype,"pollingInterval",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"disable-polling"})],ds.prototype,"disablePolling",void 0),(0,en.__decorate)([b.observable],ds.prototype,"request",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"request-auto-setup"})],ds.prototype,"requestAutoSetup",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"row-id"})],ds.prototype,"rowIdAttr",void 0),(0,en.__decorate)([b.volatile],ds.prototype,"isRequestServer",null),function(e){e.Add="add",e.Update="update",e.Remove="remove"}(cs||(cs={}));class ps extends ds{constructor(){super(...arguments),this.dataSubWasLoggedOff=!1,this.rowData=new Map,this.agTransaction={add:[],remove:[],update:[]}}generateColumnDefsFromMetadata(e,a){return null==e?void 0:e.flatMap((e=>{var r;const t={};switch(t.filterParams=a(e.type),e.type){case as.w.STRING:t.cellEditor=sn.stringEditor;break;case as.w.NUMBER:t.cellEditor=sn.numberEditor;break;case as.w.BOOLEAN:this.agGrid.autoCellRendererByType&&(t.cellRenderer=sn.boolean,t.cellEditor=sn.boolean);break;case as.w.DATE:t.valueFormatter=ns,t.cellEditor=sn.dateEditor;break;case as.w.DATETIME:t.valueFormatter=ls,t.cellEditor=sn.dateEditor,t.cellEditorParams={withTime:!0};break;case as.w.ENUM:e.enumOptions?(t.cellEditor=sn.selectEditor,t.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):rs.v.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const o=null===(r=this.agGrid.gridApi)||void 0===r?void 0:r.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:is(e.type),filter:os(e.type)},t),o)}))}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rowData.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rowData.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rowData.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{if(this.hasDefaultRowId||this.isRequestServer)this.agTransaction.remove.push({[this.rowId]:e[this.rowId]});else{const a=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));this.agTransaction.remove.push({[this.rowId]:a[this.rowId]})}this.rowData.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{let a;if(this.hasDefaultRowId||this.isRequestServer){const r=this.rowData.get(e[this.rowId]);a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}else{const r=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}this.rowData.set(e[this.rowId],a)}))}applyAllAgTransactions(){var e,a,r;if(!this.agTransaction.add.length&&!this.agTransaction.update.length&&!this.agTransaction.remove.length)return this.agGrid.gridApi.hideOverlay(),void(0===this.rowData.size&&this.agGrid.gridApi.showNoRowsOverlay());(null===(e=this.agTransaction.add)||void 0===e?void 0:e.length)>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},cs.Add,this.agGrid.asyncAdd),(null===(a=this.agTransaction.remove)||void 0===a?void 0:a.length)>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},cs.Remove,this.agGrid.asyncRemove),(null===(r=this.agTransaction.update)||void 0===r?void 0:r.length)>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},cs.Update,this.agGrid.asyncUpdate)}flashAddedCells(e){this.agGrid.enableRowFlashing&&(null==e?void 0:e.length)&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}applyTransaction(e){throw new Error("Method not implemented.")}applyTransactionAsync(e,a){throw new Error("Method not implemented.")}mapTransaction(e,a=Object.values(cs)){if(!this.rowDataMapper)return e;const r={};return a.includes(cs.Add)&&(r.add=this.rowDataMapper(e.add,this.rowData)),a.includes(cs.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rowData)),a.includes(cs.Update)&&(r.update=this.rowDataMapper(e.update,this.rowData)),r}}function us(e){switch(e){case as.w.DATE:case as.w.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,browserDatePicker:!0}}}const hs="datasource-error",ms="datasource-init",bs="datasource-size-changed";let vs=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyTransaction",this.applyAsyncFuncName="applyTransactionAsync",this.restartOnReconnection=!1,this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}requestChanged(e,a){const r=e!==a;this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>{e&&this.destroy()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions={},this.deferredGridOptions&&Object.keys(this.deferredGridOptions).forEach((a=>{"function"==typeof this.deferredGridOptions[a]?e.deferredGridOptions[a]=this.deferredGridOptions[a].bind(e):"columnDefs"===a&&this.deferredGridOptions[a].length?e.deferredGridOptions[a]=this.colDefsDeepClone(a,e):e.deferredGridOptions[a]=structuredClone(this.deferredGridOptions[a])})),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}colDefsDeepClone(e,a){return this.deferredGridOptions[e].map((e=>{const r={};return Object.keys(e).forEach((t=>{"function"==typeof e[t]?r[t]=e[t].bind(a):r[t]=structuredClone(e[t])})),r}))}init(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid){const r=Object.assign(Object.assign(Object.assign({getRowId:e=>e.data[this.rowId]},e&&{columnDefs:e}),this.agGrid.agGridOptions),this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},r),this.agGrid.initGrid(),this.agGrid.addEventListener(Jn.sVA.EVENT_GRID_READY,(()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){a&&this.agGrid.columnApi.applyColumnState({state:a}),yield this.loadResourceData()}))),{once:!0});const t=600;this.updateSub=this.update.pipe((0,Ql.i)(1),(0,Wl.B)(t),(0,ql.M)((e=>Zn.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else this.handleErrors("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}destroy(){this.reset()}deinit(){this.reset()}reset(){var e;Zn.debug("GridProGenesisDatasource.reset()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.clearRowData(),this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new Vl.t(new Map),this.agGrid.removeAttribute("ds-disconnected"),this.datasource.destroy()}restart(){let e,a;this.keepColDefsOnClearRowData&&(e=this.agGrid.gridApi.getColumnDefs(),a=this.agGrid.columnApi.getColumnState()),this.destroy(),this.init(e,a)}refreshRows(){this.setRowData(Array.from(this.rowData.values()))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,this.agTransaction=void 0,e&&!this.keepColDefsOnClearRowData&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=yield this.getAgColumnDefs(this.datasource.fieldMetadata);e&&(e.forEach((e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)})),this.agGrid.gridApi.setColumnDefs(e))}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.restoreCachedFilterConfig(),this.agTransaction={add:t?[...t]:[],remove:[],update:[],addIndex:0},this.applyAllAgTransactions(),this.requiresFullRowDataAndColDefs=!1}))}reloadResourceData(){var e,a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){Zn.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.agGrid.removeAttribute("ds-disconnected"),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;try{if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Zn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(ms),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}Zn.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.pipe((0,Jl.W)((e=>{var a;return this.handleErrors(null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR),Yl.w}))).subscribe((e=>{(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR);const a=e.MESSAGE_TYPE;if(a&&a===Ul.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Hl.d)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),Zn.error(a),this.handleErrors(a)}}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Hl.d)(e).inserts:e.inserts}handleErrors(e){let a;if(Array.isArray(e)){a=e.map((e=>{if("string"==typeof e)return e;if("object"==typeof e&&null!==e&&"TEXT"in e)return e.TEXT;throw new Error("Array contains invalid elements")})).join(", ")}this.agGrid&&this.agGrid.setAttribute("ds-disconnected","ds-disconnected"),a&&(Zn.error(a),this.$emit(hs,{message:a}))}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=this.rowData.size,t=e.REPLY;if(!Array.isArray(t)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Zn.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){let e=!1;for(const a of t||[]){const r=a[this.rowId];if(!r){if(!e){const a=`The specified rowId (${this.rowId}) is not present in the data. Since this is not a snapshot (isSnapshot=false), the data will not be loaded. Please provide a valid 'row-id' attribute.`;Zn.error(a),e=!0}break}this.rowData.set(r,a)}if(e)return void this.destroy();const a=this.rowData.size>0?Array.from(this.rowData.values()):t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(a)}const o=[],i=Array.from(this.rowData.values()).filter((e=>{const a=t.find((a=>a[this.rowId]===e[this.rowId]));return!a||(o.push(a),!1)})),n=t.filter((e=>!this.rowData.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rowData.set(e[this.rowId],e)}));const t=Array.from(this.rowData.values());return this.setRowData(t),void this.handleSizeChanged(r,this.rowData.size)}this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,us);return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}applyTransaction(e){return this.agGrid.gridApi.applyTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyTransactionAsync(e,a)}handleSizeChanged(e,a){e!==a&&this.$emit(bs,{value:a,oldValue:e})}};(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],vs.prototype,"restartOnReconnection",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],vs.prototype,"keepColDefsOnClearRowData",void 0),vs=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-genesis-datasource"})],vs);let fs=class extends vs{};fs=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-client-side-datasource"})],fs);var ws=r(48707);function ys(e){switch(e){case as.w.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case as.w.DATE:case as.w.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan","inRange",{displayKey:"isToday",displayName:"Is today",numberOfInputs:0,predicate:()=>!0},"blank","notBlank"]};case as.w.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["contains","equals","notEqual",{displayKey:"wordStartsWith",displayName:"Word starts with",numberOfInputs:1,predicate:()=>!0},"blank","notBlank"]}}}var xs=r(40113),ks=r(32808);class zs{constructor(e){this.rowData=new Map,this.serverRowsCount=0,this.clientRowsCount=0,this.moreRows=!1,this.calculatedRowsCount=0,this.currentSequenceId=null,this.reloadResourceDataFunc=e.reloadResourceDataFunc,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination,this.zeroBasedViewNumber=e.zeroBasedViewNumber}getRows(e){throw new Error("Method not implemented.")}setupFilteringAndSorting(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);if(i||t){if(o&&this.currentFilterModel)return this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,void(yield this.refreshDatasource(e));if(i&&t)return this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),void(yield this.refreshDatasource(e))}const n=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==n.length||n.length>0){if(0===n.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,void(yield this.refreshDatasource(e));if(n.length>0){this.currentSortModel=n;const a=n[0].colId,r=n[0].sort,t=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!t){this.calculatedRowsCount=0;const a=function(e){const a=[];for(const[r]of e)r&&a.push(r);return a}(this.resourceIndexes),r=function(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}(this.resourceIndexes);return rs.v.warn("The FIELD/column (${coldIdBeingSorted}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/"),rs.v.debug("Available indexes:",a),rs.v.debug("Columns that can be sorted with the available indexes:",r),void e.fail()}if(JSON.stringify(n)!==JSON.stringify(this.currentSortModel))return this.resourceParams.ORDER_BY=t.orderBy,this.resourceParams.REVERSE="desc"===r,void(yield this.refreshDatasource(e))}}}))}destroy(){this.rowData=new Map,this.clientRowsCount=0,this.calculatedRowsCount=0,this.serverRowsCount=0,this.currentSequenceId=0,this.moreRows=!1,this.sourceRef=void 0,this.lastSuccessRowData=void 0}refreshDatasource(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),yield this.reloadResourceDataFunc({criteria:this.resourceParams.CRITERIA_MATCH,orderBy:this.resourceParams.ORDER_BY,reverse:this.resourceParams.REVERSE})}))}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){return{orderBy:r,toBeSorted:[...t].splice(e,1)}}}}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"blank":e.push(`${a} == ''`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`);break;case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"notBlank":e.push(`${a} != ''`);break;case"notEqual":e.push(`${a} != '${this.currentFilterModel[a].filter}'`);break;case"wordStartsWith":e.push(`Expr.containsWordsStartingWithIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter,t=this.currentFilterModel[a].filterTo;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"notEqual":!isNaN(r)&&e.push(`${a} != ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`);break;case"greaterThanOrEqual":!isNaN(r)&&e.push(`${a} >= ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"lessThanOrEqual":!isNaN(r)&&e.push(`${a} <= ${r}`);break;case"inRange":!isNaN(r)&&!isNaN(t)&&e.push(`${a} >= ${r} && ${a} <= ${t}`);break;case"blank":e.push(`${a} == 0`);break;case"notBlank":e.push(`${a} != 0`)}})),this.getFiltersByType("date").forEach((a=>{var r,t;const o=null===(r=this.currentFilterModel[a].dateFrom)||void 0===r?void 0:r.replace(/-/g,"").replace("T","-").split(" ")[0],i=null===(t=this.currentFilterModel[a].dateTo)||void 0===t?void 0:t.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${o}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${o}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${o}')`);break;case"inRange":e.push(`Expr.dateIsAfter(${a}, '${o}') && Expr.dateIsBefore(${a}, '${i}')`);break;case"isToday":const r=new Date,t=`${r.getFullYear()}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")} 00:00:00`;e.push(`Expr.dateIsEqual(${a}, '${t}')`);break;case"blank":e.push(`${a} == null`);break;case"notBlank":e.push(`${a} != null`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}getPageNumber(e,a,r,t=!0){e>r&&(e=Math.floor((r-1)/a)*a+1);const o=Math.ceil(e/a);return t?o:o+1}getCorrectRowCount(e){const a=e.request.endRow;this.calculatedRowsCount=this.clientRowsCount||a;const r=Math.min(this.serverRowsCount,this.maxView);let t;return this.pagination?(t=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(this.serverRowsCount,this.maxView),this.resourceParams.CRITERIA_MATCH&&(t=r),t):(a===this.serverRowsCount?t=this.serverRowsCount:a>this.maxView||a>this.calculatedRowsCount?t=Math.min(r,this.calculatedRowsCount):!this.moreRows&&this.serverRowsCount>this.calculatedRowsCount&&(t=this.calculatedRowsCount),t)}get isNotFirstViewNumber(){return this.zeroBasedViewNumber?this.currentSequenceId>0:this.currentSequenceId>1}}(0,en.__decorate)([xs.N],zs.prototype,"auth",void 0),(0,en.__decorate)([g.dm],zs.prototype,"connect",void 0),(0,en.__decorate)([ks.k],zs.prototype,"uuid",void 0);class Ss extends zs{constructor(e){super(e),this.createDataserverStreamFunc=e.createDataserverStreamFunc}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStreamSubscription.unsubscribe(),this.dataserverStreamSubscription=void 0,yield a.refreshDatasource.call(this,e)}))}getRows(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);this.dataserverStream||(this.dataserverStream=yield this.createDataserverStreamFunc(this.resourceParams)),this.currentSequenceId>=1&&(this.moreRows||e.request.startRow>=Number(this.maxRows)||0===e.request.startRow)&&(this.pagination&&(this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView,this.zeroBasedViewNumber)),this.connect.getMoreRows(this.sourceRef,this.resourceParams.VIEW_NUMBER));let a=!0;this.dataserverStreamSubscription=this.dataserverStream.subscribe((r=>{a&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.resourceParams.CRITERIA_MATCH){const e=yield this.connect.snapshot(this.resourceName,{MAX_ROWS:this.maxView,MAX_VIEW:this.maxView,CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH});e.ROW||e.ROWS_COUNT?this.serverRowsCount=this.resourceParams.CRITERIA_MATCH?e.ROW.length:e.ROWS_COUNT:(rs.v.warn("No data returned when criteria is applied."),this.serverRowsCount=0,this.clientRowsCount=0)}this.applyServerSideData(e,r),a=!1}))))}))}))}applyServerSideData(e,a){var r;const t=a.MESSAGE_TYPE;if(t&&(t===Ul.Go.LOGOFF_ACK||t===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}{const e=(0,Hl.d)(a);this.handleCurrentStreamLoad(e)}this.currentSequenceId=a.SEQUENCE_ID,1===this.currentSequenceId&&(this.sourceRef=a.SOURCE_REF,0===this.serverRowsCount&&(this.serverRowsCount=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size));const o={rowData:Array.from(this.rowData.values())};o.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=o,e.success(o)}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStream=void 0,null===(a=this.dataserverStreamSubscription)||void 0===a||a.unsubscribe(),this.dataserverStreamSubscription=void 0,yield e.destroy.call(this)}))}handleCurrentStreamLoad(e){var a,r;if(!e)return;const t=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{t.set(e[this.rowId],e)})),this.clientRowsCount+=null!==(r=e.inserts.length)&&void 0!==r?r:0,this.rowData=t}}class Cs extends zs{constructor(e){var a;super(e),this.createReqRepRequestFunc=e.createReqRepRequestFunc,(null===(a=e.resourceParams)||void 0===a?void 0:a.VIEW_NUMBER)||(this.resourceParams.VIEW_NUMBER=this.zeroBasedViewNumber?0:1)}getRows(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);null!==this.currentSequenceId&&this.currentSequenceId>=0&&this.moreRows&&(this.pagination?this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView,this.zeroBasedViewNumber):this.resourceParams.VIEW_NUMBER+=1);const r={DETAILS:{CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH,MAX_ROWS:this.resourceParams.MAX_ROWS,VIEW_NUMBER:this.resourceParams.VIEW_NUMBER}},t=yield this.createReqRepRequestFunc(r);let o=!1;if(-1!==t.NEXT_VIEW){const e=Object.assign(Object.assign({},r),{DETAILS:Object.assign(Object.assign({},r.DETAILS),{VIEW_NUMBER:t.NEXT_VIEW})}),i=yield this.createReqRepRequestFunc(e);o=-1===i.NEXT_VIEW&&0===(null===(a=i.REPLY)||void 0===a?void 0:a.length)}let i=!0;i&&(this.applyServerSideData(e,t,o),i=!1)}))}applyServerSideData(e,a,r){var t;const o=a.MESSAGE_TYPE;if(o&&(o===Ul.Go.LOGOFF_ACK||o===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=!r&&-1!==a.NEXT_VIEW&&a.NEXT_VIEW>this.resourceParams.VIEW_NUMBER,!a.REPLY){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}this.handleCurrentStreamLoad(a.REPLY),this.currentSequenceId=this.resourceParams.VIEW_NUMBER,this.sourceRef=a.SOURCE_REF,this.serverRowsCount+=null!==(t=a.ROWS_COUNT)&&void 0!==t?t:this.rowData.size;const i={rowData:Array.from(this.rowData.values())};i.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=i,e.success(i)}getCorrectRowCount(e){const a=this.moreRows?-1:e.request.startRow+this.serverRowsCount,r=e.request.endRow;this.calculatedRowsCount=this.serverRowsCount||r;const t=Math.min(a,this.maxView);let o;return this.pagination?(o=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(a,this.maxView),this.resourceParams.CRITERIA_MATCH&&(o=t),!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o):(r===a?o=a:r>this.maxView||r>this.calculatedRowsCount?o=Math.min(t,this.calculatedRowsCount):!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o)}handleCurrentStreamLoad(e){if(!e||0==e.length)return;const a=new Map;e.forEach((e=>{const r=e[this.rowId];if(r)return void a.set(r,e);const t=`The specified rowId (${this.rowId}) is not present in the data. Since this is a snapshot (isSnapshot=true), an auto-generated UUID will be used. For custom identifiers, use the 'row-id' attribute.`;Zn.error(t);const o=this.uuid.createId();e[this.rowId]=o,a.set(o,e)})),this.rowData=a}}let $s=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyServerSideTransaction",this.applyAsyncFuncName="applyServerSideTransactionAsync",this.pagination=!1,this.zeroBasedViewNumber=!1,this.liveUpdates=!1,this.request={}}resourceNameChanged(e,a){e&&e!==a&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.restart()}))))}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.ssrmDatasource&&r&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.reloadResourceData()}))))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){e&&(yield this.destroy())}))))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(e){var a,r,t,o,i,n;return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.datasource.destroy(),null===(a=this.liveUpdatesStream)||void 0===a||a.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(null),e){const a=Object.assign(Object.assign({},this.datasourceOptions()),e);(yield this.datasource.init(a,!0,!1))||(null===(r=this.agGrid.gridApi)||void 0===r||r.setServerSideDatasource(null),Zn.error("Genesis Datasource re-init failed on filtering/sorting."))}else this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(t=this.agGrid.gridApi)||void 0===t||t.setServerSideDatasource(null),null===(o=this.agGrid.gridApi)||void 0===o||o.refreshServerSide({purge:!0}),null===(n=null===(i=this.agGrid)||void 0===i?void 0:i.gridApi)||void 0===n||n.showLoadingOverlay(),yield this.init()}))}init(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid)return this.agGrid.gridOptions=Object.assign(Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,getRowStyle(e){var a,r;if(null===(r=null===(a=e.data)||void 0===a?void 0:a.ROW_REF)||void 0===r?void 0:r.includes("_deleted"))return{color:"grey"}},cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!1},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{},onPaginationChanged:e=>this.onPaginationChanged(e)},this.agGrid.agGridOptions),this.deferredGridOptions),this.agGrid.initGrid(),void this.agGrid.addEventListener(Jn.sVA.EVENT_GRID_READY,(()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){if(!(yield this.datasource.init(this.datasourceOptions(),!0,!1)))return Zn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();this.$emit(ms),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes);const e=(0,ws.X)(this.datasource.originalFieldDef),a=yield this.getAgColumnDefs(e);this.agGrid.gridApi.setColumnDefs(a),this.isRequestServer?this.ssrmDatasource=new Cs({createReqRepRequestFunc:this.createReqRepRequest.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}):this.ssrmDatasource=new Ss({createDataserverStreamFunc:this.createDataserverStream.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}),this.agGrid.gridApi.setServerSideDatasource(this.ssrmDatasource)}))),{once:!0});Zn.warn("Application not connected, falling back to local columnDefs/rowData")}))}onPaginationChanged(e){var a;this.agGrid.gridApi&&this.ssrmDatasource&&(this.ssrmDatasource.isNewPageSize=null!==(a=e.newPage)&&void 0!==a&&a)}destroy(){var e,a,r;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.datasource.destroy(),null===(e=this.liveUpdatesStream)||void 0===e||e.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(),this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(a=this.agGrid.gridApi)||void 0===a||a.setServerSideDatasource(null),null===(r=this.agGrid.gridApi)||void 0===r||r.refreshServerSide({purge:!0})}))}restart(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),this.init()}))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),this.agTransaction={remove:[]},null===(t=this.agGrid.gridApi)||void 0===t||t.forEachNode((e=>{this.agTransaction.remove.push(e.data)})),null===(o=this.agGrid.gridApi)||void 0===o||o.applyServerSideTransaction(this.agTransaction),this.agTransaction=void 0}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Zn.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Zn.debug("Getting configured params:",e),e}get rowModel(){return this.agGrid.gridApi.getModel()}createReqRepRequest(e=null){return(0,en.__awaiter)(this,void 0,void 0,(function*(){return yield this.datasource.snapshot(e)}))}createDataserverStream(e=null){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.liveUpdates){const a=e=>(0,en.__awaiter)(this,void 0,void 0,(function*(){var a,r;if(e.MESSAGE_TYPE===Ul.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const t=(0,Hl.d)(e);this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(t.inserts),this.handleStreamUpdates(t.updates),this.handleStreamDeletes(t.deletes),e.SEQUENCE_ID>1&&(this.ssrmDatasource.clientRowsCount+=null!==(a=t.inserts.length)&&void 0!==a?a:0,this.ssrmDatasource.serverRowsCount+=null!==(r=t.inserts.length)&&void 0!==r?r:0),this.pagination?this.applyAllAgTransactions():setTimeout((()=>{this.applyAllAgTransactions()}),500)}})),r=e=>Zn.error(e);this.liveUpdatesStream=this.connect.stream(this.resourceName,(()=>{}),r,null!=e?e:this.params).subscribe((e=>a(e)))}return yield this.datasource.startStream(),this.datasource.stream}))}getAgColumnDefs(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,ys);a.map((e=>({sortable:[].concat(...this.indexes.values()).includes(e.field)})));return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}applyTransaction(e){return this.agGrid.gridApi.applyServerSideTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyServerSideTransactionAsync(e,a)}};(0,en.__decorate)([(0,b.attr)({mode:"boolean"})],$s.prototype,"pagination",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"zero-based-view-number"})],$s.prototype,"zeroBasedViewNumber",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"live-updates"})],$s.prototype,"liveUpdates",void 0),(0,en.__decorate)([b.observable],$s.prototype,"request",void 0),$s=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-server-side-datasource"})],$s);const As='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMH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rqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ds='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL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rXY/0MHfoMaTL9f/w6kVcMrknc1sXmjMda7CqsA0MfB2wR8AI2WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ts={[Xi.alpine]:As,[Xi.alpineDark]:As,[Xi.balham]:Ds,[Xi.balhamDark]:Ds,[Xi.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4A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AJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Fs=As,Os=b.css`
2232
+ `;let Gl=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}deepClone(){const e=super.deepClone();return e.definition={},this.definition&&Object.keys(this.definition).forEach((a=>{"function"==typeof this.definition[a]?e.definition[a]=this.definition[a].bind(e):e.definition[a]=structuredClone(this.definition[a])})),e}};(0,en.__decorate)([b.observable],Gl.prototype,"slottedAgCell",void 0),(0,en.__decorate)([b.observable],Gl.prototype,"definition",void 0),Gl=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-column",template:Bl})],Gl);var _l=r(96730),Ul=r(21281),Hl=r(34193),Vl=r(97156),Yl=r(56607),Ql=r(10629),Wl=r(41392),ql=r(92453),Jl=r(2773),Zl=r(40370),Kl=r(6884),Xl=r(39087),es=r(9033),as=r(41119),rs=r(17465),ts=r(12066);function os(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function is(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn"}}function ns({value:e}){return(0,ts.CL)(e)}function ls({value:e}){return(0,ts.zT)(e)}const ss="datasource-error-close",gs="datasource";class ds extends((0,Zl.C)(v.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Kl.OD.MAX_ROWS_250,this.maxView=Kl.OD.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1,this.pollingInterval=Kl.OD.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.requestAutoSetup=!0,this.criteriaFromFilters=new Map,this.update=new Vl.t(new Map)}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}get hasDefaultRowId(){return!this.rowIdAttr||this.rowIdAttr===Kl.OD.REQUEST_SERVER_ROW_ID||this.rowIdAttr===Kl.OD.DATASERVER_ROW_ID}get defaultRowIdByResourceType(){return this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}datasourceOptions(){return{resourceName:this.resourceName,isSnapshot:this.isSnapshot,criteria:this.buildCriteria(),maxRows:+this.maxRows,viewNumber:this.viewNumber,fields:this.fields,maxView:+this.maxView,movingView:this.movingView,orderBy:this.orderBy,reverse:this.reverse,disablePolling:this.disablePolling,pollingInterval:this.pollingInterval,request:this.request,requestAutoSetup:this.requestAutoSetup}}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values())),r=(0,_l.Q)(a.join(" && "),";");return r||void 0}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}get isRequestServer(){var e;return(null===(e=this.datasource.status)||void 0===e?void 0:e.type)===Xl.v.REQUEST_SERVER}datasourceStatusChanged(e,a){}get agGrid(){return this.parentElement}}var cs;(0,en.__decorate)([g.dm],ds.prototype,"connect",void 0),(0,en.__decorate)([es.yW],ds.prototype,"datasource",void 0),(0,en.__decorate)([b.observable],ds.prototype,"deferredGridOptions",void 0),(0,en.__decorate)([b.observable],ds.prototype,"deferredColumnStates",void 0),(0,en.__decorate)([b.observable],ds.prototype,"rowDataMapper",void 0),(0,en.__decorate)([b.attr],ds.prototype,"criteria",void 0),(0,en.__decorate)([b.attr],ds.prototype,"fields",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"is-snapshot"})],ds.prototype,"isSnapshot",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"max-rows"})],ds.prototype,"maxRows",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"max-view"})],ds.prototype,"maxView",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"moving-view"})],ds.prototype,"movingView",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"order-by"})],ds.prototype,"orderBy",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"resource-name"})],ds.prototype,"resourceName",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean"})],ds.prototype,"reverse",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"view-number"})],ds.prototype,"viewNumber",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"polling-interval"})],ds.prototype,"pollingInterval",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"disable-polling"})],ds.prototype,"disablePolling",void 0),(0,en.__decorate)([b.observable],ds.prototype,"request",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"request-auto-setup"})],ds.prototype,"requestAutoSetup",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"row-id"})],ds.prototype,"rowIdAttr",void 0),(0,en.__decorate)([b.volatile],ds.prototype,"isRequestServer",null),function(e){e.Add="add",e.Update="update",e.Remove="remove"}(cs||(cs={}));class ps extends ds{constructor(){super(...arguments),this.dataSubWasLoggedOff=!1,this.rowData=new Map,this.agTransaction={add:[],remove:[],update:[]}}generateColumnDefsFromMetadata(e,a){return null==e?void 0:e.flatMap((e=>{var r;const t={};switch(t.filterParams=a(e.type),e.type){case as.w.STRING:t.cellEditor=sn.stringEditor;break;case as.w.NUMBER:t.cellEditor=sn.numberEditor;break;case as.w.BOOLEAN:this.agGrid.autoCellRendererByType&&(t.cellRenderer=sn.boolean,t.cellEditor=sn.boolean);break;case as.w.DATE:t.valueFormatter=ns,t.cellEditor=sn.dateEditor;break;case as.w.DATETIME:t.valueFormatter=ls,t.cellEditor=sn.dateEditor,t.cellEditorParams={withTime:!0};break;case as.w.ENUM:e.enumOptions?(t.cellEditor=sn.selectEditor,t.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):rs.v.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const o=null===(r=this.agGrid.gridApi)||void 0===r?void 0:r.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:is(e.type),filter:os(e.type)},t),o)}))}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rowData.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rowData.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rowData.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{if(this.hasDefaultRowId||this.isRequestServer)this.agTransaction.remove.push({[this.rowId]:e[this.rowId]});else{const a=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));this.agTransaction.remove.push({[this.rowId]:a[this.rowId]})}this.rowData.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{let a;if(this.hasDefaultRowId||this.isRequestServer){const r=this.rowData.get(e[this.rowId]);a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}else{const r=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}this.rowData.set(e[this.rowId],a)}))}applyAllAgTransactions(){var e,a,r;if(!this.agTransaction.add.length&&!this.agTransaction.update.length&&!this.agTransaction.remove.length)return this.agGrid.gridApi.hideOverlay(),void(0===this.rowData.size&&this.agGrid.gridApi.showNoRowsOverlay());(null===(e=this.agTransaction.add)||void 0===e?void 0:e.length)>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},cs.Add,this.agGrid.asyncAdd),(null===(a=this.agTransaction.remove)||void 0===a?void 0:a.length)>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},cs.Remove,this.agGrid.asyncRemove),(null===(r=this.agTransaction.update)||void 0===r?void 0:r.length)>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},cs.Update,this.agGrid.asyncUpdate)}flashAddedCells(e){this.agGrid.enableRowFlashing&&(null==e?void 0:e.length)&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}applyTransaction(e){throw new Error("Method not implemented.")}applyTransactionAsync(e,a){throw new Error("Method not implemented.")}mapTransaction(e,a=Object.values(cs)){if(!this.rowDataMapper)return e;const r={};return a.includes(cs.Add)&&(r.add=this.rowDataMapper(e.add,this.rowData)),a.includes(cs.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rowData)),a.includes(cs.Update)&&(r.update=this.rowDataMapper(e.update,this.rowData)),r}}function us(e){switch(e){case as.w.DATE:case as.w.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,browserDatePicker:!0}}}const hs="datasource-error",ms="datasource-init",bs="datasource-size-changed";let vs=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyTransaction",this.applyAsyncFuncName="applyTransactionAsync",this.restartOnReconnection=!1,this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}requestChanged(e,a){const r=e!==a;this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>{e&&this.destroy()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions={},this.deferredGridOptions&&Object.keys(this.deferredGridOptions).forEach((a=>{"function"==typeof this.deferredGridOptions[a]?e.deferredGridOptions[a]=this.deferredGridOptions[a].bind(e):"columnDefs"===a&&this.deferredGridOptions[a].length?e.deferredGridOptions[a]=this.colDefsDeepClone(a,e):e.deferredGridOptions[a]=structuredClone(this.deferredGridOptions[a])})),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}colDefsDeepClone(e,a){return this.deferredGridOptions[e].map((e=>{const r={};return Object.keys(e).forEach((t=>{"function"==typeof e[t]?r[t]=e[t].bind(a):r[t]=structuredClone(e[t])})),r}))}init(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid){const r=Object.assign(Object.assign(Object.assign({getRowId:e=>e.data[this.rowId]},e&&{columnDefs:e}),this.agGrid.agGridOptions),this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},r),this.agGrid.initGrid(),this.agGrid.addEventListener(Jn.sVA.EVENT_GRID_READY,(()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){a&&this.agGrid.columnApi.applyColumnState({state:a}),yield this.loadResourceData()}))),{once:!0});const t=600;this.updateSub=this.update.pipe((0,Ql.i)(1),(0,Wl.B)(t),(0,ql.M)((e=>Zn.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else this.handleErrors("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}destroy(){this.reset()}deinit(){this.reset()}reset(){var e;Zn.debug("GridProGenesisDatasource.reset()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.clearRowData(),this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new Vl.t(new Map),this.agGrid.removeAttribute("ds-disconnected"),this.datasource.destroy()}restart(){let e,a;this.keepColDefsOnClearRowData&&(e=this.agGrid.gridApi.getColumnDefs(),a=this.agGrid.columnApi.getColumnState()),this.destroy(),this.init(e,a)}refreshRows(){this.setRowData(Array.from(this.rowData.values()))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,this.agTransaction=void 0,e&&!this.keepColDefsOnClearRowData&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=yield this.getAgColumnDefs(this.datasource.fieldMetadata);e&&(e.forEach((e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)})),this.agGrid.gridApi.setColumnDefs(e))}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.restoreCachedFilterConfig(),this.agTransaction={add:t?[...t]:[],remove:[],update:[],addIndex:0},this.applyAllAgTransactions(),this.requiresFullRowDataAndColDefs=!1}))}reloadResourceData(){var e,a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){Zn.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.agGrid.removeAttribute("ds-disconnected"),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;try{if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Zn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(ms),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}Zn.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.pipe((0,Jl.W)((e=>{var a;return this.handleErrors(null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR),Yl.w}))).subscribe((e=>{(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR);const a=e.MESSAGE_TYPE;if(a&&a===Ul.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Hl.d)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),Zn.error(a),this.handleErrors(a)}}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Hl.d)(e).inserts:e.inserts}handleErrors(e){let a;if(Array.isArray(e)){a=e.map((e=>{if("string"==typeof e)return e;if("object"==typeof e&&null!==e&&"TEXT"in e)return e.TEXT;throw new Error("Array contains invalid elements")})).join(", ")}this.agGrid&&this.agGrid.setAttribute("ds-disconnected","ds-disconnected"),a&&(Zn.error(a),this.$emit(hs,{message:a}))}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=this.rowData.size,t=e.REPLY;if(!Array.isArray(t)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Zn.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){let e=!1;for(const a of t||[]){const r=a[this.rowId];if(!r){if(!e){const a=`The specified rowId (${this.rowId}) is not present in the data. Since this is not a snapshot (isSnapshot=false), the data will not be loaded. Please provide a valid 'row-id' attribute.`;Zn.error(a),e=!0}break}this.rowData.set(r,a)}if(e)return void this.destroy();const a=this.rowData.size>0?Array.from(this.rowData.values()):t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(a)}const o=[],i=Array.from(this.rowData.values()).filter((e=>{const a=t.find((a=>a[this.rowId]===e[this.rowId]));return!a||(o.push(a),!1)})),n=t.filter((e=>!this.rowData.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rowData.set(e[this.rowId],e)}));const t=Array.from(this.rowData.values());return this.setRowData(t),void this.handleSizeChanged(r,this.rowData.size)}this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,us);return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}applyTransaction(e){return this.agGrid.gridApi.applyTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyTransactionAsync(e,a)}handleSizeChanged(e,a){e!==a&&this.$emit(bs,{value:a,oldValue:e})}};(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],vs.prototype,"restartOnReconnection",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],vs.prototype,"keepColDefsOnClearRowData",void 0),vs=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-genesis-datasource"})],vs);let fs=class extends vs{};fs=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-client-side-datasource"})],fs);var ws=r(48707);function ys(e){switch(e){case as.w.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case as.w.DATE:case as.w.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan","inRange",{displayKey:"isToday",displayName:"Is today",numberOfInputs:0,predicate:()=>!0},"blank","notBlank"]};case as.w.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["contains","equals","notEqual",{displayKey:"wordStartsWith",displayName:"Word starts with",numberOfInputs:1,predicate:()=>!0},"blank","notBlank"]}}}var xs=r(40113),ks=r(32808);class zs{constructor(e){this.rowData=new Map,this.serverRowsCount=0,this.clientRowsCount=0,this.moreRows=!1,this.calculatedRowsCount=0,this.currentSequenceId=null,this.reloadResourceDataFunc=e.reloadResourceDataFunc,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination,this.zeroBasedViewNumber=e.zeroBasedViewNumber}getRows(e){throw new Error("Method not implemented.")}setupFilteringAndSorting(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);if(i||t){if(o&&this.currentFilterModel)return this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,void(yield this.refreshDatasource(e));if(i&&t)return this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),void(yield this.refreshDatasource(e))}const n=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==n.length||n.length>0){if(0===n.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,void(yield this.refreshDatasource(e));if(n.length>0){this.currentSortModel=n;const a=n[0].colId,r=n[0].sort,t=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!t){this.calculatedRowsCount=0;const a=function(e){const a=[];for(const[r]of e)r&&a.push(r);return a}(this.resourceIndexes),r=function(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}(this.resourceIndexes);return rs.v.warn("The FIELD/column (${coldIdBeingSorted}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/"),rs.v.debug("Available indexes:",a),rs.v.debug("Columns that can be sorted with the available indexes:",r),void e.fail()}if(JSON.stringify(n)!==JSON.stringify(this.currentSortModel))return this.resourceParams.ORDER_BY=t.orderBy,this.resourceParams.REVERSE="desc"===r,void(yield this.refreshDatasource(e))}}}))}destroy(){this.rowData=new Map,this.clientRowsCount=0,this.calculatedRowsCount=0,this.serverRowsCount=0,this.currentSequenceId=0,this.moreRows=!1,this.sourceRef=void 0,this.lastSuccessRowData=void 0}refreshDatasource(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),yield this.reloadResourceDataFunc({criteria:this.resourceParams.CRITERIA_MATCH,orderBy:this.resourceParams.ORDER_BY,reverse:this.resourceParams.REVERSE})}))}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){return{orderBy:r,toBeSorted:[...t].splice(e,1)}}}}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"blank":e.push(`${a} == ''`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`);break;case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"notBlank":e.push(`${a} != ''`);break;case"notEqual":e.push(`${a} != '${this.currentFilterModel[a].filter}'`);break;case"wordStartsWith":e.push(`Expr.containsWordsStartingWithIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter,t=this.currentFilterModel[a].filterTo;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"notEqual":!isNaN(r)&&e.push(`${a} != ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`);break;case"greaterThanOrEqual":!isNaN(r)&&e.push(`${a} >= ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"lessThanOrEqual":!isNaN(r)&&e.push(`${a} <= ${r}`);break;case"inRange":!isNaN(r)&&!isNaN(t)&&e.push(`${a} >= ${r} && ${a} <= ${t}`);break;case"blank":e.push(`${a} == 0`);break;case"notBlank":e.push(`${a} != 0`)}})),this.getFiltersByType("date").forEach((a=>{var r,t;const o=null===(r=this.currentFilterModel[a].dateFrom)||void 0===r?void 0:r.replace(/-/g,"").replace("T","-").split(" ")[0],i=null===(t=this.currentFilterModel[a].dateTo)||void 0===t?void 0:t.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${o}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${o}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${o}')`);break;case"inRange":e.push(`Expr.dateIsAfter(${a}, '${o}') && Expr.dateIsBefore(${a}, '${i}')`);break;case"isToday":const r=new Date,t=`${r.getFullYear()}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")} 00:00:00`;e.push(`Expr.dateIsEqual(${a}, '${t}')`);break;case"blank":e.push(`${a} == null`);break;case"notBlank":e.push(`${a} != null`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}getPageNumber(e,a,r,t=!0){e>r&&(e=Math.floor((r-1)/a)*a+1);const o=Math.ceil(e/a);return t?o:o+1}getCorrectRowCount(e){const a=e.request.endRow;this.calculatedRowsCount=this.clientRowsCount||a;const r=Math.min(this.serverRowsCount,this.maxView);let t;return this.pagination?(t=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(this.serverRowsCount,this.maxView),this.resourceParams.CRITERIA_MATCH&&(t=r),t):(a===this.serverRowsCount?t=this.serverRowsCount:a>this.maxView||a>this.calculatedRowsCount?t=Math.min(r,this.calculatedRowsCount):!this.moreRows&&this.serverRowsCount>this.calculatedRowsCount&&(t=this.calculatedRowsCount),t)}get isNotFirstViewNumber(){return this.zeroBasedViewNumber?this.currentSequenceId>0:this.currentSequenceId>1}}(0,en.__decorate)([xs.N],zs.prototype,"auth",void 0),(0,en.__decorate)([g.dm],zs.prototype,"connect",void 0),(0,en.__decorate)([ks.k],zs.prototype,"uuid",void 0);class Ss extends zs{constructor(e){super(e),this.createDataserverStreamFunc=e.createDataserverStreamFunc}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStreamSubscription.unsubscribe(),this.dataserverStreamSubscription=void 0,yield a.refreshDatasource.call(this,e)}))}getRows(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);this.dataserverStream||(this.dataserverStream=yield this.createDataserverStreamFunc(this.resourceParams)),this.currentSequenceId>=1&&(this.moreRows||e.request.startRow>=Number(this.maxRows)||0===e.request.startRow)&&(this.pagination&&(this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView,this.zeroBasedViewNumber)),this.connect.getMoreRows(this.sourceRef,this.resourceParams.VIEW_NUMBER));let a=!0;this.dataserverStreamSubscription=this.dataserverStream.subscribe((r=>{a&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.resourceParams.CRITERIA_MATCH){const e=yield this.connect.snapshot(this.resourceName,{MAX_ROWS:this.maxView,MAX_VIEW:this.maxView,CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH});e.ROW||e.ROWS_COUNT?this.serverRowsCount=this.resourceParams.CRITERIA_MATCH?e.ROW.length:e.ROWS_COUNT:(rs.v.warn("No data returned when criteria is applied."),this.serverRowsCount=0,this.clientRowsCount=0)}this.applyServerSideData(e,r),a=!1}))))}))}))}applyServerSideData(e,a){var r;const t=a.MESSAGE_TYPE;if(t&&(t===Ul.Go.LOGOFF_ACK||t===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}{const e=(0,Hl.d)(a);this.handleCurrentStreamLoad(e)}this.currentSequenceId=a.SEQUENCE_ID,1===this.currentSequenceId&&(this.sourceRef=a.SOURCE_REF,0===this.serverRowsCount&&(this.serverRowsCount=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size));const o={rowData:Array.from(this.rowData.values())};o.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=o,e.success(o)}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStream=void 0,null===(a=this.dataserverStreamSubscription)||void 0===a||a.unsubscribe(),this.dataserverStreamSubscription=void 0,yield e.destroy.call(this)}))}handleCurrentStreamLoad(e){var a,r;if(!e)return;const t=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{t.set(e[this.rowId],e)})),this.clientRowsCount+=null!==(r=e.inserts.length)&&void 0!==r?r:0,this.rowData=t}}class Cs extends zs{constructor(e){var a;super(e),this.createReqRepRequestFunc=e.createReqRepRequestFunc,(null===(a=e.resourceParams)||void 0===a?void 0:a.VIEW_NUMBER)||(this.resourceParams.VIEW_NUMBER=this.zeroBasedViewNumber?0:1)}getRows(e){var a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);null!==this.currentSequenceId&&this.currentSequenceId>=0&&this.moreRows&&(this.pagination?this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView,this.zeroBasedViewNumber):this.resourceParams.VIEW_NUMBER+=1);const r={DETAILS:{CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH,MAX_ROWS:this.resourceParams.MAX_ROWS,VIEW_NUMBER:this.resourceParams.VIEW_NUMBER}},t=yield this.createReqRepRequestFunc(r);let o=!1;if(-1!==t.NEXT_VIEW){const e=Object.assign(Object.assign({},r),{DETAILS:Object.assign(Object.assign({},r.DETAILS),{VIEW_NUMBER:t.NEXT_VIEW})}),i=yield this.createReqRepRequestFunc(e);o=-1===i.NEXT_VIEW&&0===(null===(a=i.REPLY)||void 0===a?void 0:a.length)}let i=!0;i&&(this.applyServerSideData(e,t,o),i=!1)}))}applyServerSideData(e,a,r){var t;const o=a.MESSAGE_TYPE;if(o&&(o===Ul.Go.LOGOFF_ACK||o===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=!r&&-1!==a.NEXT_VIEW&&a.NEXT_VIEW>this.resourceParams.VIEW_NUMBER,!a.REPLY){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}this.handleCurrentStreamLoad(a.REPLY),this.currentSequenceId=this.resourceParams.VIEW_NUMBER,this.sourceRef=a.SOURCE_REF,this.serverRowsCount+=null!==(t=a.ROWS_COUNT)&&void 0!==t?t:this.rowData.size;const i={rowData:Array.from(this.rowData.values())};i.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=i,e.success(i)}getCorrectRowCount(e){const a=this.moreRows?-1:e.request.startRow+this.serverRowsCount,r=e.request.endRow;this.calculatedRowsCount=this.serverRowsCount||r;const t=Math.min(a,this.maxView);let o;return this.pagination?(o=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(a,this.maxView),this.resourceParams.CRITERIA_MATCH&&(o=t),!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o):(r===a?o=a:r>this.maxView||r>this.calculatedRowsCount?o=Math.min(t,this.calculatedRowsCount):!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o)}handleCurrentStreamLoad(e){if(!e||0==e.length)return;const a=new Map;e.forEach((e=>{const r=e[this.rowId];if(r)return void a.set(r,e);const t=`The specified rowId (${this.rowId}) is not present in the data. Since this is a snapshot (isSnapshot=true), an auto-generated UUID will be used. For custom identifiers, use the 'row-id' attribute.`;Zn.error(t);const o=this.uuid.createId();e[this.rowId]=o,a.set(o,e)})),this.rowData=a}}let $s=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyServerSideTransaction",this.applyAsyncFuncName="applyServerSideTransactionAsync",this.pagination=!1,this.zeroBasedViewNumber=!1,this.liveUpdates=!1,this.request={}}resourceNameChanged(e,a){e&&e!==a&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.restart()}))))}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.ssrmDatasource&&r&&b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.reloadResourceData()}))))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){e&&(yield this.destroy())}))))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(e){var a,r,t,o,i,n;return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.datasource.destroy(),null===(a=this.liveUpdatesStream)||void 0===a||a.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(null),e){const a=Object.assign(Object.assign({},this.datasourceOptions()),e);(yield this.datasource.init(a,!0,!1))||(null===(r=this.agGrid.gridApi)||void 0===r||r.setServerSideDatasource(null),Zn.error("Genesis Datasource re-init failed on filtering/sorting."))}else this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(t=this.agGrid.gridApi)||void 0===t||t.setServerSideDatasource(null),null===(o=this.agGrid.gridApi)||void 0===o||o.refreshServerSide({purge:!0}),null===(n=null===(i=this.agGrid)||void 0===i?void 0:i.gridApi)||void 0===n||n.showLoadingOverlay(),yield this.init()}))}init(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid)return this.agGrid.gridOptions=Object.assign(Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,getRowStyle(e){var a,r;if(null===(r=null===(a=e.data)||void 0===a?void 0:a.ROW_REF)||void 0===r?void 0:r.includes("_deleted"))return{color:"grey"}},cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!1},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{},onPaginationChanged:e=>this.onPaginationChanged(e)},this.agGrid.agGridOptions),this.deferredGridOptions),this.agGrid.initGrid(),void this.agGrid.addEventListener(Jn.sVA.EVENT_GRID_READY,(()=>(0,en.__awaiter)(this,void 0,void 0,(function*(){if(!(yield this.datasource.init(this.datasourceOptions(),!0,!1)))return Zn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();this.$emit(ms),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes);const e=(0,ws.X)(this.datasource.originalFieldDef),a=yield this.getAgColumnDefs(e);this.agGrid.gridApi.setColumnDefs(a),this.isRequestServer?this.ssrmDatasource=new Cs({createReqRepRequestFunc:this.createReqRepRequest.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}):this.ssrmDatasource=new Ss({createDataserverStreamFunc:this.createDataserverStream.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}),this.agGrid.gridApi.setServerSideDatasource(this.ssrmDatasource)}))),{once:!0});Zn.warn("Application not connected, falling back to local columnDefs/rowData")}))}onPaginationChanged(e){var a;this.agGrid.gridApi&&this.ssrmDatasource&&(this.ssrmDatasource.isNewPageSize=null!==(a=e.newPage)&&void 0!==a&&a)}destroy(){var e,a,r;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.datasource.destroy(),null===(e=this.liveUpdatesStream)||void 0===e||e.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(),this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(a=this.agGrid.gridApi)||void 0===a||a.setServerSideDatasource(null),null===(r=this.agGrid.gridApi)||void 0===r||r.refreshServerSide({purge:!0})}))}restart(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),this.init()}))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),this.agTransaction={remove:[]},null===(t=this.agGrid.gridApi)||void 0===t||t.forEachNode((e=>{this.agTransaction.remove.push(e.data)})),null===(o=this.agGrid.gridApi)||void 0===o||o.applyServerSideTransaction(this.agTransaction),this.agTransaction=void 0}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Zn.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Zn.debug("Getting configured params:",e),e}get rowModel(){return this.agGrid.gridApi.getModel()}createReqRepRequest(e=null){return(0,en.__awaiter)(this,void 0,void 0,(function*(){return yield this.datasource.snapshot(e)}))}createDataserverStream(e=null){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.liveUpdates){const a=e=>(0,en.__awaiter)(this,void 0,void 0,(function*(){var a,r;if(e.MESSAGE_TYPE===Ul.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const t=(0,Hl.d)(e);this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(t.inserts),this.handleStreamUpdates(t.updates),this.handleStreamDeletes(t.deletes),e.SEQUENCE_ID>1&&(this.ssrmDatasource.clientRowsCount+=null!==(a=t.inserts.length)&&void 0!==a?a:0,this.ssrmDatasource.serverRowsCount+=null!==(r=t.inserts.length)&&void 0!==r?r:0),this.pagination?this.applyAllAgTransactions():setTimeout((()=>{this.applyAllAgTransactions()}),500)}})),r=e=>Zn.error(e);this.liveUpdatesStream=this.connect.stream(this.resourceName,(()=>{}),r,null!=e?e:this.params).subscribe((e=>a(e)))}return yield this.datasource.startStream(),this.datasource.stream}))}getAgColumnDefs(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,ys);a.map((e=>({sortable:[].concat(...this.indexes.values()).includes(e.field)})));return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}applyTransaction(e){return this.agGrid.gridApi.applyServerSideTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyServerSideTransactionAsync(e,a)}};(0,en.__decorate)([(0,b.attr)({mode:"boolean"})],$s.prototype,"pagination",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"zero-based-view-number"})],$s.prototype,"zeroBasedViewNumber",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"live-updates"})],$s.prototype,"liveUpdates",void 0),(0,en.__decorate)([b.observable],$s.prototype,"request",void 0),$s=(0,en.__decorate)([(0,b.customElement)({name:"grid-pro-server-side-datasource"})],$s);const As='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1aFRHoqOtzRWTyveVTZfGGblRq755mi6egbDIkb+zKVJeTkPgMFsIIrr8G88QITUASqOJ5TBJLAyetqNuvUi9cw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q0derrnU/2o8lgXVDNY1oD9p6TyUb0YWZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ds='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynO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Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ts={[Xi.alpine]:As,[Xi.alpineDark]:As,[Xi.balham]:Ds,[Xi.balhamDark]:Ds,[Xi.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hratnMRkZGRktL4unUngADAoQ+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQ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neDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Os=As,Fs=b.css`
2233
2233
  .ag-icon {
2234
2234
  font-family: var(--ag-icon-font-family);
2235
2235
  font-size: var(--ag-icon-size);
@@ -10409,7 +10409,7 @@
10409
10409
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10410
10410
  }
10411
10411
  `,Is=b.css`
10412
- ${Os}
10412
+ ${Fs}
10413
10413
  ${Rs}
10414
10414
  ${Ns}
10415
10415
  ${Ms}
@@ -10506,7 +10506,7 @@
10506
10506
  </${e}-dialog>
10507
10507
  </slot>
10508
10508
  </template>
10509
- `,Ps=js();var Bs=r(98316);class Gs{getColumnState(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]}))}saveColumnState(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}}))}saveFilterModel(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,en.__decorate)([Bs.N],Gs.prototype,"session",void 0);const _s=v.DI.createInterface((e=>e.singleton(Gs)));class Us{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Hs(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Jn.syG.registerModules([Rl.n7,Ol.Q]);const Vs=Jn.kNx.ALL_PROPERTIES.filter((e=>"rowData"!==e));class Ys extends(c(v.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,O.x)(nn(a),a),this.insertFontFace(a)}getfilterModel(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)}))}setFilterModel(e){return(0,en.__awaiter)(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.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=Fs,this.columnComponentName="grid-pro-column",this.theme=Xi.alpine,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Vs.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[ol(a)]=a,e)),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push({key:ms,action:e},{key:ss,action:e},{key:hs,action:this.handleError.bind(this,gs)})}addEventListener(e,a,r){const t=e.startsWith("on")?e:`on${e.charAt(0).toUpperCase()+e.slice(1)}`;super.addEventListener(t,a,r),Jn.kNx.PUBLIC_EVENTS.includes(t)&&(this.gridApi?this.addGridEventListener(t):this.gridEventsQueue.push(t))}addGridEventListener(e){this.gridApi.addEventListener(e,(a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter((e=>e.type!==gs))}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,Nl.j)(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(Vs.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(ol(e),void 0,a)},enumerable:!0,configurable:!0})})),this.rootEventsListeners.forEach((({key:e,action:a})=>{this.addEventListener(e,a)})))}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach((({key:e,action:a})=>{this.removeEventListener(e,a)})),b.DOM.queueUpdate((()=>{var a;e&&(this.initialised=!1,null===(a=this.gridApi)||void 0===a||a.destroy())}))}combineAllGridComponents(e){const a={[sn.action]:Kn,[sn.actionsMenu]:il,[sn.boolean]:gl,[sn.editable]:Hn,[sn.selectEditor]:$n,[sn.numberEditor]:Rn,[sn.multiselectEditor]:yn,[sn.dateEditor]:hn,[sn.stringEditor]:jn};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}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()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();if(e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e,0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState))return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e)}}))}getSavedColumnState(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState}))}restoreColumnState(){var e;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.rehydrationAttempted=!0;const a=yield this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}))}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){var e,a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=yield this.getfilterModel();void 0!==r&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(r),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}))}get gridOptions(){return this.agGridOptions}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=El()(this.saveColumnState.bind(this),400),r=El()(this.cacheFilterConfig.bind(this),400),t=()=>{a(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:o,components:i,defaultColDef:n,getRowId:l,onGridReady:s,onFilterChanged:g}=e,d=(0,en.__rest)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(i),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach((e=>{this.addGridEventListener(e)})),this.rowData&&this.gridApi.setRowData(this.rowData),s&&s(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{r(),g&&g(e)},onGridSizeChanged:t,onSortChanged:t}),d);this.gridProDatasource?(c.columnDefs=o,c.getRowId=l,this.setLocalGridOptions(c)):this.mergeAllColumnDefsAndStates(o).then((e=>{c.columnDefs=e,c.getRowId=l,this.setLocalGridOptions(c),this.initGrid()}))}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Jn.kNx.copyAttributesToGridOptions(e,this.agAttributes))}initGrid(){b.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Jn.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Zn.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const t=e||[];t.forEach((e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=Ll[this.headerCaseType];a?e.headerName=a(e.field):Zn.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}}));const o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[gn]===e.field)return{component:sn.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Us,e.tooltipValueGetter=a=>{const r=a.data[dn];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[dn])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Hs(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Hs(n,this.gridProDatasource.deferredColumnStates)}return n}))}get observedAttributes(){const e=Vs.map((e=>e.toLowerCase())),a=Vs.map((e=>ol(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Jn.kNx.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=Ts[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ml.O)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,en.__decorate)([b.observable],Ys.prototype,"columnApi",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridApi",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridErrorItems",void 0),(0,en.__decorate)([_s],Ys.prototype,"statePersistence",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ys.prototype,"autoCellRendererByType",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ys.prototype,"onlyTemplateColDefs",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ys.prototype,"gridAutosizingEnabled",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"add-index"})],Ys.prototype,"addIndex",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-add"})],Ys.prototype,"asyncAdd",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-remove"})],Ys.prototype,"asyncRemove",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-update"})],Ys.prototype,"asyncUpdate",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ys.prototype,"enableCellFlashing",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Ys.prototype,"enabledRowFlashing",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ys.prototype,"enableRowFlashing",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"persist-column-state-key"})],Ys.prototype,"persistColumnStateKey",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"persist-filter-model-key"})],Ys.prototype,"persistFilterModelKey",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"header-case-type"})],Ys.prototype,"headerCaseType",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"rowData",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridFontFace",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"columnComponentName",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"eventsAndCallbacks",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"headerHeight",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"rowHeight",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"theme",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"classNames",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"agGrid",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridSlot",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridComponents",void 0),(0,en.__decorate)([pn],Ys.prototype,"gridOptionsConfig",void 0);const Qs=void 0,Ws={shadowOptions:void 0},qs=Ys.compose(Object.assign({baseName:"grid-pro",styles:Es,template:Ps,shadowOptions:Qs},Ws)),Js={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2b2e34"))},Zs={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2196f3"))},{create:Ks}=v.DesignToken,Xs={backgroundColor:Ks("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.backgroundSwatch:Js.backgroundSwatch)),borderColor:Ks("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.borderSwatch:Js.borderSwatch)),foregroundColor:Ks("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.foregroundSwatch:Js.foregroundSwatch)),headerForegroundColor:Ks("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.headerForegroundSwatch:Js.headerForegroundSwatch)),rowHoverColor:Ks("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.rowHoverSwatch:Js.rowHoverSwatch))},eg=b.css`
10509
+ `,Ps=js();var Bs=r(98316);class Gs{getColumnState(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]}))}saveColumnState(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(e){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}}))}saveFilterModel(e,a){return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,en.__decorate)([Bs.N],Gs.prototype,"session",void 0);const _s=v.DI.createInterface((e=>e.singleton(Gs)));class Us{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Hs(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Jn.syG.registerModules([Rl.n7,Fl.Q]);const Vs=Jn.kNx.ALL_PROPERTIES.filter((e=>"rowData"!==e));class Ys extends(c(v.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,F.x)(nn(a),a),this.insertFontFace(a)}getfilterModel(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)}))}setFilterModel(e){return(0,en.__awaiter)(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.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=Os,this.columnComponentName="grid-pro-column",this.theme=Xi.alpine,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Vs.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[ol(a)]=a,e)),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push({key:ms,action:e},{key:ss,action:e},{key:hs,action:this.handleError.bind(this,gs)})}addEventListener(e,a,r){const t=e.startsWith("on")?e:`on${e.charAt(0).toUpperCase()+e.slice(1)}`;super.addEventListener(t,a,r),Jn.kNx.PUBLIC_EVENTS.includes(t)&&(this.gridApi?this.addGridEventListener(t):this.gridEventsQueue.push(t))}addGridEventListener(e){this.gridApi.addEventListener(e,(a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter((e=>e.type!==gs))}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,Nl.j)(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(Vs.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(ol(e),void 0,a)},enumerable:!0,configurable:!0})})),this.rootEventsListeners.forEach((({key:e,action:a})=>{this.addEventListener(e,a)})))}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach((({key:e,action:a})=>{this.removeEventListener(e,a)})),b.DOM.queueUpdate((()=>{var a;e&&(this.initialised=!1,null===(a=this.gridApi)||void 0===a||a.destroy())}))}combineAllGridComponents(e){const a={[sn.action]:Kn,[sn.actionsMenu]:il,[sn.boolean]:gl,[sn.editable]:Hn,[sn.selectEditor]:$n,[sn.numberEditor]:Rn,[sn.multiselectEditor]:yn,[sn.dateEditor]:hn,[sn.stringEditor]:jn};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}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()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();if(e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e,0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState))return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e)}}))}getSavedColumnState(){return(0,en.__awaiter)(this,void 0,void 0,(function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState}))}restoreColumnState(){var e;return(0,en.__awaiter)(this,void 0,void 0,(function*(){this.rehydrationAttempted=!0;const a=yield this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}))}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){var e,a;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const r=yield this.getfilterModel();void 0!==r&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(r),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}))}get gridOptions(){return this.agGridOptions}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=El()(this.saveColumnState.bind(this),400),r=El()(this.cacheFilterConfig.bind(this),400),t=()=>{a(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:o,components:i,defaultColDef:n,getRowId:l,onGridReady:s,onFilterChanged:g}=e,d=(0,en.__rest)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(i),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach((e=>{this.addGridEventListener(e)})),this.rowData&&this.gridApi.setRowData(this.rowData),s&&s(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{r(),g&&g(e)},onGridSizeChanged:t,onSortChanged:t}),d);this.gridProDatasource?(c.columnDefs=o,c.getRowId=l,this.setLocalGridOptions(c)):this.mergeAllColumnDefsAndStates(o).then((e=>{c.columnDefs=e,c.getRowId=l,this.setLocalGridOptions(c),this.initGrid()}))}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Jn.kNx.copyAttributesToGridOptions(e,this.agAttributes))}initGrid(){b.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Jn.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Zn.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;return(0,en.__awaiter)(this,void 0,void 0,(function*(){const t=e||[];t.forEach((e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=Ll[this.headerCaseType];a?e.headerName=a(e.field):Zn.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}}));const o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[gn]===e.field)return{component:sn.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Us,e.tooltipValueGetter=a=>{const r=a.data[dn];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[dn])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Hs(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Hs(n,this.gridProDatasource.deferredColumnStates)}return n}))}get observedAttributes(){const e=Vs.map((e=>e.toLowerCase())),a=Vs.map((e=>ol(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Jn.kNx.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=Ts[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ml.O)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,en.__decorate)([b.observable],Ys.prototype,"columnApi",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridApi",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridErrorItems",void 0),(0,en.__decorate)([_s],Ys.prototype,"statePersistence",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ys.prototype,"autoCellRendererByType",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ys.prototype,"onlyTemplateColDefs",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ys.prototype,"gridAutosizingEnabled",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"add-index"})],Ys.prototype,"addIndex",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-add"})],Ys.prototype,"asyncAdd",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-remove"})],Ys.prototype,"asyncRemove",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-update"})],Ys.prototype,"asyncUpdate",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ys.prototype,"enableCellFlashing",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Ys.prototype,"enabledRowFlashing",void 0),(0,en.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ys.prototype,"enableRowFlashing",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"persist-column-state-key"})],Ys.prototype,"persistColumnStateKey",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"persist-filter-model-key"})],Ys.prototype,"persistFilterModelKey",void 0),(0,en.__decorate)([(0,b.attr)({attribute:"header-case-type"})],Ys.prototype,"headerCaseType",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"rowData",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridFontFace",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"columnComponentName",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"eventsAndCallbacks",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"headerHeight",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"rowHeight",void 0),(0,en.__decorate)([b.attr],Ys.prototype,"theme",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"classNames",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"agGrid",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridSlot",void 0),(0,en.__decorate)([b.observable],Ys.prototype,"gridComponents",void 0),(0,en.__decorate)([pn],Ys.prototype,"gridOptionsConfig",void 0);const Qs=void 0,Ws={shadowOptions:void 0},qs=Ys.compose(Object.assign({baseName:"grid-pro",styles:Es,template:Ps,shadowOptions:Qs},Ws)),Js={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2b2e34"))},Zs={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2196f3"))},{create:Ks}=v.DesignToken,Xs={backgroundColor:Ks("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.backgroundSwatch:Js.backgroundSwatch)),borderColor:Ks("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.borderSwatch:Js.borderSwatch)),foregroundColor:Ks("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.foregroundSwatch:Js.foregroundSwatch)),headerForegroundColor:Ks("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.headerForegroundSwatch:Js.headerForegroundSwatch)),rowHoverColor:Ks("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.rowHoverSwatch:Js.rowHoverSwatch))},eg=b.css`
10510
10510
  .ag-theme-genesis-rapid,
10511
10511
  .ag-theme-genesis-rapid-dark {
10512
10512
  --ag-alpine-active-color: #2196f3;
@@ -11011,9 +11011,9 @@
11011
11011
  ${ig}
11012
11012
 
11013
11013
  .error {
11014
- border-color: ${Oe.shortPink} !important;
11014
+ border-color: ${Fe.shortPink} !important;
11015
11015
  }
11016
- `,lg=js("zero"),sg="ag-theme-genesis-rapid-dark";const gg=Qs,dg=Ws,cg={zeroAgEditableRenderer:qn,zeroAgActionRenderer:tl,zeroAgActionsMenuRenderer:sl,zeroAgBooleanRenderer:hl,zeroAgTextRenderer:Cl,zeroAgSelectRenderer:Fl,zeroAgDateEditor:wn,zeroAgMultiselectEditor:Cn,zeroAgSelectEditor:On,zeroAgNumberEditor:En,zeroAgStringEditor:Un,zeroGridPro:class extends Ys{constructor(){super(...arguments),this.theme=sg}themeChanged(e,a){(e||a===sg)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[sn.action]:rl,[sn.actionsMenu]:ll,[sn.boolean]:ul,[sn.editable]:Wn,[sn.selectEditor]:Fn,[sn.numberEditor]:In,[sn.multiselectEditor]:Sn,[sn.dateEditor]:fn,[sn.stringEditor]:_n};(this.theme===rg||this.theme===og)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:lg,styles:ng,shadowOptions:gg},dg)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},pg={foundationGridProActionRenderer:al,foundationGridProActionsMenuRenderer:nl,foundationAgBooleanRenderer:pl,foundationAgTextRenderer:Sl,foundationAgTextFieldRenderer:yl,foundationAgEditableRenderer:Qn,foundationAgSelectRenderer:Tl,foundationGridPro:qs,foundationSelectEditor:Tn,foundationNumberEditor:Ln,foundationDateEditor:vn,foundationMultiselectEditor:zn,foundationStringEditor:Gn,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ug;!function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376"}(ug||(ug={}));const{create:hg}=v.DesignToken,mg=(0,Re.parseColorHexRGB)(ug.error),bg=f.SwatchRGB.create(mg.r,mg.g,mg.b),vg=hg("error-color").withDefault(bg),fg=(0,Re.parseColorHexRGB)(ug.success),wg=f.SwatchRGB.create(fg.r,fg.g,fg.b),yg=hg("success-color").withDefault(wg),xg=(0,Re.parseColorHexRGB)(ug.warning),kg=f.SwatchRGB.create(xg.r,xg.g,xg.b),zg=hg("warning-color").withDefault(kg),Sg=(0,Re.parseColorHexRGB)(ug.buy),Cg=f.SwatchRGB.create(Sg.r,Sg.g,Sg.b),$g=hg("buy-color").withDefault(Cg),Ag=(0,Re.parseColorHexRGB)(ug.sell),Dg=f.SwatchRGB.create(Ag.r,Ag.g,Ag.b),Tg=hg("sell-color").withDefault(Dg),Fg=(0,V.paletteFromHex)(ug.primary),Og=(0,V.paletteFromHex)(ug.neutral),Rg=f.StandardLuminance.DarkMode,Ng=0,Mg=4,Lg=-5,Ig=0,Eg=0,jg=6,Pg=-4,Bg=0,Gg=7,_g=10,Ug=5,Hg=0,Vg=0,Yg=0,Qg=0,Wg=0,qg=0,Jg=5,Zg=3,Kg=0,Xg=0,ed=8,ad=-5,rd=0,td=3,od=25,id=40,nd=16,ld=25,sd=8,gd="rapid",dd=Ke.O.ltr,cd=.3,pd=1,ud=2,hd=10,md=4,bd=0,vd=4,fd='"Segoe UI", Arial, Helvetica, sans-serif',wd="14px",yd="20px",xd="13px",kd="19px",zd="12px",Sd="18px",Cd="15px",$d="21px",Ad="16px",Dd="22px",Td="17px",Fd="23px",Od="18px",Rd="24px",Nd="19px",Md="25px",Ld="20px",Id="26px",Ed={design_tokens:{color:{accent:{$value:Fg.source.toColorString(),$type:"color"},neutral:{$value:Og.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:fd,$type:"fontFamily"}},typography:{baseFontSize:{$value:wd,$type:"dimension"},baseLineHeight:{$value:yd,$type:"dimension"}},mode:{luminance:{$value:Rg,$type:"number"}},style:{density:{$value:bd,$type:"number"},borderRadius:{$value:md,$type:"number"},strokeWidth:{$value:pd,$type:"number"}},space:{designUnit:{$value:vd,$type:"number"}}}};class jd extends f.DesignSystemProvider{constructor(){super(),(0,V.provideTokens)(i,n,this)}}const Pd=jd.compose({baseName:"design-system-provider",template:b.html`
11016
+ `,lg=js("zero"),sg="ag-theme-genesis-rapid-dark";const gg=Qs,dg=Ws,cg={zeroAgEditableRenderer:qn,zeroAgActionRenderer:tl,zeroAgActionsMenuRenderer:sl,zeroAgBooleanRenderer:hl,zeroAgTextRenderer:Cl,zeroAgSelectRenderer:Ol,zeroAgDateEditor:wn,zeroAgMultiselectEditor:Cn,zeroAgSelectEditor:Fn,zeroAgNumberEditor:En,zeroAgStringEditor:Un,zeroGridPro:class extends Ys{constructor(){super(...arguments),this.theme=sg}themeChanged(e,a){(e||a===sg)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[sn.action]:rl,[sn.actionsMenu]:ll,[sn.boolean]:ul,[sn.editable]:Wn,[sn.selectEditor]:On,[sn.numberEditor]:In,[sn.multiselectEditor]:Sn,[sn.dateEditor]:fn,[sn.stringEditor]:_n};(this.theme===rg||this.theme===og)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:lg,styles:ng,shadowOptions:gg},dg)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},pg={foundationGridProActionRenderer:al,foundationGridProActionsMenuRenderer:nl,foundationAgBooleanRenderer:pl,foundationAgTextRenderer:Sl,foundationAgTextFieldRenderer:yl,foundationAgEditableRenderer:Qn,foundationAgSelectRenderer:Tl,foundationGridPro:qs,foundationSelectEditor:Tn,foundationNumberEditor:Ln,foundationDateEditor:vn,foundationMultiselectEditor:zn,foundationStringEditor:Gn,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ug;!function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376"}(ug||(ug={}));const{create:hg}=v.DesignToken,mg=(0,Re.parseColorHexRGB)(ug.error),bg=f.SwatchRGB.create(mg.r,mg.g,mg.b),vg=hg("error-color").withDefault(bg),fg=(0,Re.parseColorHexRGB)(ug.success),wg=f.SwatchRGB.create(fg.r,fg.g,fg.b),yg=hg("success-color").withDefault(wg),xg=(0,Re.parseColorHexRGB)(ug.warning),kg=f.SwatchRGB.create(xg.r,xg.g,xg.b),zg=hg("warning-color").withDefault(kg),Sg=(0,Re.parseColorHexRGB)(ug.buy),Cg=f.SwatchRGB.create(Sg.r,Sg.g,Sg.b),$g=hg("buy-color").withDefault(Cg),Ag=(0,Re.parseColorHexRGB)(ug.sell),Dg=f.SwatchRGB.create(Ag.r,Ag.g,Ag.b),Tg=hg("sell-color").withDefault(Dg),Og=(0,V.paletteFromHex)(ug.primary),Fg=(0,V.paletteFromHex)(ug.neutral),Rg=f.StandardLuminance.DarkMode,Ng=0,Mg=4,Lg=-5,Ig=0,Eg=0,jg=6,Pg=-4,Bg=0,Gg=7,_g=10,Ug=5,Hg=0,Vg=0,Yg=0,Qg=0,Wg=0,qg=0,Jg=5,Zg=3,Kg=0,Xg=0,ed=8,ad=-5,rd=0,td=3,od=25,id=40,nd=16,ld=25,sd=8,gd="rapid",dd=Ke.O.ltr,cd=.3,pd=1,ud=2,hd=10,md=4,bd=0,vd=4,fd='"Segoe UI", Arial, Helvetica, sans-serif',wd="14px",yd="20px",xd="13px",kd="19px",zd="12px",Sd="18px",Cd="15px",$d="21px",Ad="16px",Dd="22px",Td="17px",Od="23px",Fd="18px",Rd="24px",Nd="19px",Md="25px",Ld="20px",Id="26px",Ed={design_tokens:{color:{accent:{$value:Og.source.toColorString(),$type:"color"},neutral:{$value:Fg.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:fd,$type:"fontFamily"}},typography:{baseFontSize:{$value:wd,$type:"dimension"},baseLineHeight:{$value:yd,$type:"dimension"}},mode:{luminance:{$value:Rg,$type:"number"}},style:{density:{$value:bd,$type:"number"},borderRadius:{$value:md,$type:"number"},strokeWidth:{$value:pd,$type:"number"}},space:{designUnit:{$value:vd,$type:"number"}}}};class jd extends f.DesignSystemProvider{constructor(){super(),(0,V.provideTokens)(i,n,this)}}const Pd=jd.compose({baseName:"design-system-provider",template:b.html`
11017
11017
  <slot></slot>
11018
11018
  `});class Bd extends V.Accordion{}const Gd=Bd.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,V.foundationAccordionTemplate)(e,a),styles:(e,a)=>b.css`
11019
11019
  ${(0,V.foundationAccordionStyles)(e,a)}
@@ -11417,7 +11417,7 @@
11417
11417
  .label {
11418
11418
  padding-inline-start: calc(var(--design-unit) * 2px);
11419
11419
  }
11420
- `,shadowOptions:V.foundationCheckboxShadowOptions},V.defaultCheckboxConfig));class Tc extends V.Combobox{}const Fc=Tc.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,V.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
11420
+ `,shadowOptions:V.foundationCheckboxShadowOptions},V.defaultCheckboxConfig));class Tc extends V.Combobox{}const Oc=Tc.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,V.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
11421
11421
  ${(0,V.foundationComboboxStyles)(e,a)}
11422
11422
  :host {
11423
11423
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
@@ -11491,7 +11491,7 @@
11491
11491
  ::slotted([role='option']) {
11492
11492
  margin: 0;
11493
11493
  }
11494
- `,shadowOptions:V.foundationComboboxShadowOptions},V.defaultComboboxConfig));class Oc extends V.ConnectionIndicator{}const Rc=Oc.compose({baseName:"connection-indicator",template:V.foundationConnectionIndicatorTemplate,styles:(e,a)=>b.css`
11494
+ `,shadowOptions:V.foundationComboboxShadowOptions},V.defaultComboboxConfig));class Fc extends V.ConnectionIndicator{}const Rc=Fc.compose({baseName:"connection-indicator",template:V.foundationConnectionIndicatorTemplate,styles:(e,a)=>b.css`
11495
11495
  ${(0,V.foundationConnectionIndicatorStyles)(e,a)}
11496
11496
  :host {
11497
11497
  --light-size: calc(var(--design-unit) * 3px);
@@ -11808,7 +11808,7 @@
11808
11808
  background: var(--accent-fill-rest);
11809
11809
  color: var(--neutral-foreground-rest);
11810
11810
  }
11811
- `,shadowOptions:V.foundationFlipperShadowOptions},V.defaultFlipperConfig)),Fp=b.css`
11811
+ `,shadowOptions:V.foundationFlipperShadowOptions},V.defaultFlipperConfig)),Op=b.css`
11812
11812
  ${V.foundationFlyoutStyles}
11813
11813
  div.flyout {
11814
11814
  background-color: var(--neutral-layer-2);
@@ -11856,9 +11856,9 @@
11856
11856
  background-color: var(--neutral-fill-hover);
11857
11857
  border-radius: calc(var(--stroke-width) * 3px);
11858
11858
  }
11859
- `,Op=b.html`
11859
+ `,Fp=b.html`
11860
11860
  ${(0,V.getPrefixedFlyout)("rapid")}
11861
- `,Rp=V.defaultFlyoutConfig,Np=V.foundationFlyoutShadowOptions;class Mp extends V.Flyout{}const Lp=Mp.compose(Object.assign({baseName:"flyout",shadowOptions:Np,styles:Fp,template:Op},Rp)),{defaultConfig:Ip,shadowOptions:Ep,styles:jp,template:Pp}=Mc(V.foundationGridLayout),{defaultConfig:Bp,shadowOptions:Gp,styles:_p,template:Up}=Mc(V.foundationGridLayoutItem);class Hp extends V.HorizontalScroll{}const Vp={nextFlipper:b.html`
11861
+ `,Rp=V.defaultFlyoutConfig,Np=V.foundationFlyoutShadowOptions;class Mp extends V.Flyout{}const Lp=Mp.compose(Object.assign({baseName:"flyout",shadowOptions:Np,styles:Op,template:Fp},Rp)),{defaultConfig:Ip,shadowOptions:Ep,styles:jp,template:Pp}=Mc(V.foundationGridLayout),{defaultConfig:Bp,shadowOptions:Gp,styles:_p,template:Up}=Mc(V.foundationGridLayoutItem);class Hp extends V.HorizontalScroll{}const Vp={nextFlipper:b.html`
11862
11862
  <rapid-flipper
11863
11863
  @click="${e=>e.scrollToNext()}"
11864
11864
  aria-hidden="${e=>e.flippersHiddenFromAT}"
@@ -12119,7 +12119,7 @@
12119
12119
  ${(0,V.foundationProgressStyles)(e,a)}
12120
12120
  `,shadowOptions:V.foundationProgressShadowOptions},V.defaultProgressConfig));class Au extends V.ProgressRing{}const Du=Au.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>(0,V.foundationProgressRingTemplate)(e,a),styles:(e,a)=>b.css`
12121
12121
  ${(0,V.foundationProgressRingStyles)(e,a)}
12122
- `,shadowOptions:V.foundationProgressRingShadowOptions},V.defaultProgressRingConfig));class Tu extends V.Radio{}const Fu=Tu.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,V.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
12122
+ `,shadowOptions:V.foundationProgressRingShadowOptions},V.defaultProgressRingConfig));class Tu extends V.Radio{}const Ou=Tu.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,V.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
12123
12123
  ${(0,V.foundationRadioStyles)(e,a)}
12124
12124
  :host {
12125
12125
  margin: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 2px) 0;
@@ -12151,7 +12151,7 @@
12151
12151
  :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
12152
12152
  background: var(--accent-fill-rest);
12153
12153
  }
12154
- `,shadowOptions:V.foundationRadioShadowOptions},V.defaultRadioConfig));class Ou extends V.RadioGroup{}const Ru=Ou.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,V.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
12154
+ `,shadowOptions:V.foundationRadioShadowOptions},V.defaultRadioConfig));class Fu extends V.RadioGroup{}const Ru=Fu.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,V.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
12155
12155
  ${(0,V.foundationRadioGroupStyles)(e,a)}
12156
12156
  `,shadowOptions:V.foundationRadioGroupShadowOptions},V.defaultRadioGroupConfig)),Nu=b.css`
12157
12157
  ${V.foundationSearchBarStyles}
@@ -12782,7 +12782,7 @@
12782
12782
  :host([notify='serious']) .toast::after {
12783
12783
  background-color: var(--error-color);
12784
12784
  }
12785
- `,Ah=V.defaultToastConfig,Dh=V.foundationToastShadowOptions;class Th extends V.Toast{}const Fh=Th.compose(Object.assign({baseName:"toast",shadowOptions:Dh,styles:$h,template:V.foundationToastTemplate},Ah));class Oh extends V.Toolbar{}const Rh=Oh.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,V.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
12785
+ `,Ah=V.defaultToastConfig,Dh=V.foundationToastShadowOptions;class Th extends V.Toast{}const Oh=Th.compose(Object.assign({baseName:"toast",shadowOptions:Dh,styles:$h,template:V.foundationToastTemplate},Ah));class Fh extends V.Toolbar{}const Rh=Fh.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,V.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
12786
12786
  ${(0,V.foundationToolbarStyles)(e,a)}
12787
12787
  :host {
12788
12788
  align-items: center;
@@ -12858,7 +12858,7 @@
12858
12858
  ${(0,V.foundationTreeViewStyles)(e,a)}
12859
12859
  `,shadowOptions:V.foundationTreeViewShadowOptions},V.defaultTreeViewConfig)),Bh=b.html`
12860
12860
  ${(0,V.getPrefixedUrlInput)("rapid")}
12861
- `;class Gh extends V.UrlInput{}const _h={designSystemProvider:Pd,rapidAccordion:Gd,rapidAccordionItem:Ud,rapidActionsMenu:Vd,rapidAnchor:ec,rapidAnchoredRegion:rc,rapidAvatar:oc,rapidBadge:nc,rapidBanner:dc,rapidBreadcrumb:pc,rapidBreadcrumbItem:hc,rapidButton:bc,rapidCalendar:fc,rapidCard:yc,rapidCategorizedMultiselect:$c,rapidCheckbox:Dc,rapidCombobox:Fc,rapidConnectionIndicator:Rc,rapidDataGrid:()=>(0,V.foundationDataGrid)(),rapidDataGridCell:()=>(0,V.foundationDataGridCell)(),rapidDataGridRow:()=>(0,V.foundationDataGridRow)(),rapidDatePicker:qc,rapidDialog:ap,rapidDisclosure:tp,rapidDivider:ip,rapidDropdownMenu:lp,rapidErrorBoundary:()=>(0,V.foundationErrorBoundary)(),rapidFileUpload:vp,rapidFilter:yp,rapidFilterBar:zp,rapidFlexLayout:()=>(0,V.foundationFlexLayout)(),rapidFlipper:Tp,rapidFlyout:Lp,rapidGridLayout:()=>(0,V.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,V.foundationGridLayoutItem)(),rapidHorizontalScroll:Yp,rapidIcon:Jp,rapidListbox:Kp,rapidListboxOption:eu,rapidMenu:ru,rapidMenuItem:iu,rapidModal:cu,rapidMultiselect:vu,rapidNotificationListener:wu,rapidNumberField:Su,rapidProgress:$u,rapidProgressRing:Du,rapidRadio:Fu,rapidRadioGroup:Ru,rapidSearchBar:Iu,rapidSearchBarCombobox:ju,rapidSegmentedControl:Bu,rapidSegmentedItem:_u,rapidSelect:Hu,rapidSkeleton:Yu,rapidSlider:Wu,rapidSliderLabel:Ju,rapidSnackbar:ah,rapidStackingIcons:th,rapidStepper:lh,rapidStepperTab:dh,rapidStepperTabPanel:ph,rapidSwitch:mh,rapidTab:vh,rapidTabPanel:wh,rapidTabs:xh,rapidTextArea:zh,rapidTextField:Ch,rapidToast:Fh,rapidToolbar:Rh,rapidTooltip:Mh,rapidTreeItem:Eh,rapidTreeView:Ph,rapidUrlInput:Gh.compose(Object.assign({baseName:"url-input",template:Bh,styles:(e,a)=>b.css`
12861
+ `;class Gh extends V.UrlInput{}const _h={designSystemProvider:Pd,rapidAccordion:Gd,rapidAccordionItem:Ud,rapidActionsMenu:Vd,rapidAnchor:ec,rapidAnchoredRegion:rc,rapidAvatar:oc,rapidBadge:nc,rapidBanner:dc,rapidBreadcrumb:pc,rapidBreadcrumbItem:hc,rapidButton:bc,rapidCalendar:fc,rapidCard:yc,rapidCategorizedMultiselect:$c,rapidCheckbox:Dc,rapidCombobox:Oc,rapidConnectionIndicator:Rc,rapidDataGrid:()=>(0,V.foundationDataGrid)(),rapidDataGridCell:()=>(0,V.foundationDataGridCell)(),rapidDataGridRow:()=>(0,V.foundationDataGridRow)(),rapidDatePicker:qc,rapidDialog:ap,rapidDisclosure:tp,rapidDivider:ip,rapidDropdownMenu:lp,rapidErrorBoundary:()=>(0,V.foundationErrorBoundary)(),rapidFileUpload:vp,rapidFilter:yp,rapidFilterBar:zp,rapidFlexLayout:()=>(0,V.foundationFlexLayout)(),rapidFlipper:Tp,rapidFlyout:Lp,rapidGridLayout:()=>(0,V.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,V.foundationGridLayoutItem)(),rapidHorizontalScroll:Yp,rapidIcon:Jp,rapidListbox:Kp,rapidListboxOption:eu,rapidMenu:ru,rapidMenuItem:iu,rapidModal:cu,rapidMultiselect:vu,rapidNotificationListener:wu,rapidNumberField:Su,rapidProgress:$u,rapidProgressRing:Du,rapidRadio:Ou,rapidRadioGroup:Ru,rapidSearchBar:Iu,rapidSearchBarCombobox:ju,rapidSegmentedControl:Bu,rapidSegmentedItem:_u,rapidSelect:Hu,rapidSkeleton:Yu,rapidSlider:Wu,rapidSliderLabel:Ju,rapidSnackbar:ah,rapidStackingIcons:th,rapidStepper:lh,rapidStepperTab:dh,rapidStepperTabPanel:ph,rapidSwitch:mh,rapidTab:vh,rapidTabPanel:wh,rapidTabs:xh,rapidTextArea:zh,rapidTextField:Ch,rapidToast:Oh,rapidToolbar:Rh,rapidTooltip:Mh,rapidTreeItem:Eh,rapidTreeView:Ph,rapidUrlInput:Gh.compose(Object.assign({baseName:"url-input",template:Bh,styles:(e,a)=>b.css`
12862
12862
  ${(0,V.foundationUrlInputStyles)(e,a)}
12863
12863
  a {
12864
12864
  color: var(--accent-fill-rest);
@@ -13429,7 +13429,7 @@
13429
13429
  ${fm}
13430
13430
 
13431
13431
  .error {
13432
- border-color: ${Oe.shortPink} !important;
13432
+ border-color: ${Fe.shortPink} !important;
13433
13433
  }
13434
13434
  `,ym=js("rapid"),xm="ag-theme-genesis-rapid-dark";const km=Qs,zm=Ws,Sm={rapidAgEditableRenderer:em,rapidAgActionRenderer:rm,rapidAgActionsMenuRenderer:om,rapidAgBooleanRenderer:nm,rapidAgTextRenderer:lm,rapidAgSelectRenderer:sm,rapidAgDateEditor:Hh,rapidAgMultiselectEditor:Yh,rapidAgSelectEditor:Wh,rapidAgNumberEditor:Jh,rapidAgStringEditor:Kh,rapidGridPro:class extends Ys{constructor(){super(...arguments),this.theme=xm}themeChanged(e,a){(e||a===xm)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[sn.action]:am,[sn.actionsMenu]:tm,[sn.boolean]:im,[sn.editable]:Xh,[sn.selectEditor]:Qh,[sn.numberEditor]:qh,[sn.multiselectEditor]:Vh,[sn.dateEditor]:Uh,[sn.stringEditor]:Zh};(this.theme===mm||this.theme===vm)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:ym,styles:wm,shadowOptions:km},zm)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Cm,$m=r(91510);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Cm||(Cm={}));const Am={Roboto:na,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Dm=Am["Segoe UI"],Tm=b.css`
13435
13435
  ${(0,v.display)("block")} :host {
@@ -13563,7 +13563,7 @@
13563
13563
  alpha-button {
13564
13564
  margin: 0;
13565
13565
  }
13566
- `,Fm=b.html`
13566
+ `,Om=b.html`
13567
13567
  <template>
13568
13568
  <div class="configuration">
13569
13569
  ${(0,b.when)((e=>!e.customDesignMode),b.html`
@@ -13786,7 +13786,7 @@
13786
13786
  <slot></slot>
13787
13787
  </div>
13788
13788
  </template>
13789
- `,Om=({design_tokens:e})=>({accentColor:e.color.accent.$value,neutralColor:e.color.neutral.$value,luminance:e.mode.luminance.$value,density:e.style.density.$value,designUnit:e.space.designUnit.$value,borderRadius:e.style.borderRadius.$value,strokeWidth:e.style.strokeWidth.$value,bodyFont:Object.keys(Am).find((a=>Am[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Rm=Om(ca),Nm={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},Mm={accent:"primary",neutral:"secondary",font:"white"},Lm=Om(l.designTokens),Im=Om(Ed),Em={zero:{prefix:"zero",tokenDefaults:Rm,buttons:Nm,badge:Mm},alpha:{prefix:"alpha",tokenDefaults:Lm,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:Im,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Nm,badge:Mm}};let jm=class extends b.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Rm.luminance===f.StandardLuminance.DarkMode,this.luminance=Rm.luminance,this.neutralColor=Rm.neutralColor,this.accentColor=Rm.accentColor,this.bodyFont=Rm.bodyFont,this.density=Rm.density,this.borderRadius=Rm.borderRadius,this.strokeWidth=Rm.strokeWidth,this.designUnit=Rm.designUnit,this.baseFontSize=Rm.baseFontSize,this.baseLineHeight=Rm.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof v.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof f.Combobox||e.target instanceof f.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof v.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?f.StandardLuminance.DarkMode:f.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&b.DOM.queueUpdate((()=>{const e=Om(a);Em.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,$m.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Em[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,$m.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"},{name:"Rapid",value:"rapid"}];if(this.customDesignMode){const{appName:e="Custom Design",dsPrefix:a="custom"}=yield this.getAppDetails(),r={name:e,value:a};this.designSystems=[r],Em.custom.prefix=a,Em.custom.buttons=Em[a].buttons,Em.custom.badge=Em[a].badge,this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Em[this.ds].prefix,buttonAppearanceAccent:Em[this.ds].buttons.accent,buttonAppearanceNeutral:Em[this.ds].buttons.neutral,buttonAppearanceOutline:Em[this.ds].buttons.outline,buttonAppearanceText:Em[this.ds].buttons.text,badgeAppearanceAccent:Em[this.ds].badge.accent,badgeAppearanceNeutral:Em[this.ds].badge.neutral,badgeText:Em[this.ds].badge.font};this.$emit(Cm.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Em[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Am[this.bodyFont],luminance:this.luminance,density:this.density,designUnit:this.designUnit,borderRadius:this.borderRadius,strokeWidth:this.strokeWidth,baseFontSize:this.baseFontSize,baseLineHeight:this.baseLineHeight};this.$emit(Cm.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===f.StandardLuminance.DarkMode,b.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppDetails(){return fetch("/api/details").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},ia(),b.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Cm.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,$m.__decorate)([(0,b.attr)({mode:"boolean",attribute:"custom-design-mode"})],jm.prototype,"customDesignMode",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"designSystems",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"ds",void 0),(0,$m.__decorate)([b.attr],jm.prototype,"darkMode",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"neutralColor",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"accentColor",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"bodyFont",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"density",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"borderRadius",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"strokeWidth",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"designUnit",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"baseFontSize",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"baseLineHeight",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"preserveOptions",void 0),jm=(0,$m.__decorate)([(0,b.customElement)({name:"design-system-editor",template:Fm,styles:Tm})],jm);const Pm=(0,k.createLogger)("documentation-components"),Bm=e=>{const a=(e=>{const a=(0,Re.parseColorHexRGB)(e);return a?f.SwatchRGB.from(a):null})(e);return a?f.PaletteRGB.create(a):null},Gm=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},_m=(e,a)=>{const r=Bm(e.neutralColor);f.neutralPalette.setValueFor(a,r);const t=Bm(e.accentColor);f.accentPalette.setValueFor(a,t),f.baseLayerLuminance.setValueFor(a,e.luminance),f.density.setValueFor(a,e.density),f.controlCornerRadius.setValueFor(a,e.borderRadius),f.strokeWidth.setValueFor(a,e.strokeWidth),f.designUnit.setValueFor(a,e.designUnit),f.bodyFont.setValueFor(a,e.bodyFont),f.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),f.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),f.typeRampMinus1FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.minusOne,a)),f.typeRampMinus1LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.minusOne,a)),f.typeRampMinus2FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.minusTwo,a)),f.typeRampMinus2LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.minusTwo,a)),f.typeRampPlus1FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusOne,a)),f.typeRampPlus1LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusOne,a)),f.typeRampPlus2FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusTwo,a)),f.typeRampPlus2LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusTwo,a)),f.typeRampPlus3FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusThree,a)),f.typeRampPlus3LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusThree,a)),f.typeRampPlus4FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusFour,a)),f.typeRampPlus4LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusFour,a)),f.typeRampPlus5FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusFive,a)),f.typeRampPlus5LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusFive,a)),f.typeRampPlus6FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusSix,a)),f.typeRampPlus6LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusSix,a))},Um=b.css`
13789
+ `,Fm=({design_tokens:e})=>({accentColor:e.color.accent.$value,neutralColor:e.color.neutral.$value,luminance:e.mode.luminance.$value,density:e.style.density.$value,designUnit:e.space.designUnit.$value,borderRadius:e.style.borderRadius.$value,strokeWidth:e.style.strokeWidth.$value,bodyFont:Object.keys(Am).find((a=>Am[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Rm=Fm(ca),Nm={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},Mm={accent:"primary",neutral:"secondary",font:"white"},Lm=Fm(l.designTokens),Im=Fm(Ed),Em={zero:{prefix:"zero",tokenDefaults:Rm,buttons:Nm,badge:Mm},alpha:{prefix:"alpha",tokenDefaults:Lm,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:Im,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Nm,badge:Mm}};let jm=class extends b.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Rm.luminance===f.StandardLuminance.DarkMode,this.luminance=Rm.luminance,this.neutralColor=Rm.neutralColor,this.accentColor=Rm.accentColor,this.bodyFont=Rm.bodyFont,this.density=Rm.density,this.borderRadius=Rm.borderRadius,this.strokeWidth=Rm.strokeWidth,this.designUnit=Rm.designUnit,this.baseFontSize=Rm.baseFontSize,this.baseLineHeight=Rm.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof v.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof f.Combobox||e.target instanceof f.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof v.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?f.StandardLuminance.DarkMode:f.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&b.DOM.queueUpdate((()=>{const e=Fm(a);Em.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,$m.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Em[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,$m.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"},{name:"Rapid",value:"rapid"}];if(this.customDesignMode){const{appName:e="Custom Design",dsPrefix:a="custom"}=yield this.getAppDetails(),r={name:e,value:a};this.designSystems=[r],Em.custom.prefix=a,Em.custom.buttons=Em[a].buttons,Em.custom.badge=Em[a].badge,this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Em[this.ds].prefix,buttonAppearanceAccent:Em[this.ds].buttons.accent,buttonAppearanceNeutral:Em[this.ds].buttons.neutral,buttonAppearanceOutline:Em[this.ds].buttons.outline,buttonAppearanceText:Em[this.ds].buttons.text,badgeAppearanceAccent:Em[this.ds].badge.accent,badgeAppearanceNeutral:Em[this.ds].badge.neutral,badgeText:Em[this.ds].badge.font};this.$emit(Cm.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Em[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Am[this.bodyFont],luminance:this.luminance,density:this.density,designUnit:this.designUnit,borderRadius:this.borderRadius,strokeWidth:this.strokeWidth,baseFontSize:this.baseFontSize,baseLineHeight:this.baseLineHeight};this.$emit(Cm.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===f.StandardLuminance.DarkMode,b.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppDetails(){return fetch("/api/details").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},ia(),b.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Cm.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,$m.__decorate)([(0,b.attr)({mode:"boolean",attribute:"custom-design-mode"})],jm.prototype,"customDesignMode",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"designSystems",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"ds",void 0),(0,$m.__decorate)([b.attr],jm.prototype,"darkMode",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"neutralColor",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"accentColor",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"bodyFont",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"density",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"borderRadius",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"strokeWidth",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"designUnit",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"baseFontSize",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"baseLineHeight",void 0),(0,$m.__decorate)([b.observable],jm.prototype,"preserveOptions",void 0),jm=(0,$m.__decorate)([(0,b.customElement)({name:"design-system-editor",template:Om,styles:Tm})],jm);const Pm=(0,k.createLogger)("documentation-components"),Bm=e=>{const a=(e=>{const a=(0,Re.parseColorHexRGB)(e);return a?f.SwatchRGB.from(a):null})(e);return a?f.PaletteRGB.create(a):null},Gm=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},_m=(e,a)=>{const r=Bm(e.neutralColor);f.neutralPalette.setValueFor(a,r);const t=Bm(e.accentColor);f.accentPalette.setValueFor(a,t),f.baseLayerLuminance.setValueFor(a,e.luminance),f.density.setValueFor(a,e.density),f.controlCornerRadius.setValueFor(a,e.borderRadius),f.strokeWidth.setValueFor(a,e.strokeWidth),f.designUnit.setValueFor(a,e.designUnit),f.bodyFont.setValueFor(a,e.bodyFont),f.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),f.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),f.typeRampMinus1FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.minusOne,a)),f.typeRampMinus1LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.minusOne,a)),f.typeRampMinus2FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.minusTwo,a)),f.typeRampMinus2LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.minusTwo,a)),f.typeRampPlus1FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusOne,a)),f.typeRampPlus1LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusOne,a)),f.typeRampPlus2FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusTwo,a)),f.typeRampPlus2LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusTwo,a)),f.typeRampPlus3FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusThree,a)),f.typeRampPlus3LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusThree,a)),f.typeRampPlus4FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusFour,a)),f.typeRampPlus4LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusFour,a)),f.typeRampPlus5FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusFive,a)),f.typeRampPlus5LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusFive,a)),f.typeRampPlus6FontSize.setValueFor(a,Gm(f.typeRampBaseFontSize,oa.Du.plusSix,a)),f.typeRampPlus6LineHeight.setValueFor(a,Gm(f.typeRampBaseLineHeight,oa.Du.plusSix,a))},Um=b.css`
13790
13790
  :host {
13791
13791
  --badge-fill-primary: var(--accent-fill-rest);
13792
13792
  --badge-fill-neutral: var(--neutral-fill-rest);
@@ -14812,4 +14812,4 @@
14812
14812
  </template>
14813
14813
  `)(e.prefix)}
14814
14814
  `;let kb=class extends b.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[...wb],this.columnDefs=[{headerName:"#",colId:"rowNum",valueGetter:"node.id",width:80,pinned:"left"},{headerName:"Athlete",field:"athlete",width:150,pinned:"left"},{headerName:"Age",field:"age",width:90,pinned:"left"},{headerName:"Country",field:"country",width:150},{headerName:"Year",field:"year",width:90},{headerName:"Date",field:"date",width:110,filter:"agDateColumnFilter",filterParams:{buttons:["apply","reset"],browserDatePicker:!0,comparator:(e,a)=>{if(null==a)return-1;const r=a.split("/"),t=new Date(Number(r[2]),Number(r[1])-1,Number(r[0]));return e.getTime()===t.getTime()?0:t<e?-1:t>e?1:0}}},{headerName:"Sport",field:"sport",width:150,editable:!0},{headerName:"Gold",field:"gold",width:100},{headerName:"Silver",field:"silver",width:100},{headerName:"Bronze",field:"bronze",width:100},{headerName:"Total",field:"total",width:100,pinned:"right"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData},this.myCustomCheckboxRenderer=e=>2012===e.value?`<div><span style="color: var(--warning-color); font-weight: bold;">${e.value}</span></div>`:e.value,this.multipleCustomFoundationColumnConfigs=[{headerName:"Country",field:"country",cellRenderer:sn.boolean},{headerName:"Year",field:"year",cellRenderer:this.myCustomCheckboxRenderer}],this.multipleActions=[{name:"View",callback:e=>console.log("VIEWW!!!",e)},{name:"Delete",callback:e=>console.log("DELETE!!!",e)},{name:"Edit",callback:e=>console.log("EDIT!!!",e)},{name:"Wait",callback:e=>console.log("WHAT???",e)}],this.multipleActionsMenuSlottedConfig=((e,a={},r="⋮",t=!1,o)=>{const i={cellRenderer:sn.actionsMenu,cellRendererParams:{actions:e,buttonAppearance:o,isVertical:t,buttonText:r},cellStyle:{border:"none",overflow:"visible"},field:`${ol(a.headerName)||"actions-menu"}`,headerName:"Actions",width:150};return Object.assign(Object.assign({},i),a)})(this.multipleActions,{headerName:"Multiple Actions",width:140},"⋮",!0,"stealth"),this.singleActionSlottedConfig={headerName:"Single Action",width:200,cellRenderer:sn.action,cellRendererParams:{actionClick:e=>console.log("CLICKED ON SINGLE ACTION!!!!",e),actionName:"Single Action",appearance:"accent",isDisabled:e=>!!e.isActionDisabled,dataTestId:"singleActionTestId#",uniqueFieldName:"UNIQUE_ID"}}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Cm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Cm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{this.setGridOptions(),f.bodyFont.withDefault(Dm)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{_m(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,b.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,$m.__decorate)([b.observable],kb.prototype,"grid",void 0),(0,$m.__decorate)([b.attr],kb.prototype,"prefix",void 0),(0,$m.__decorate)([b.observable],kb.prototype,"provider",void 0),(0,$m.__decorate)([b.observable],kb.prototype,"rowData",void 0),(0,$m.__decorate)([b.observable],kb.prototype,"columnDefs",void 0),(0,$m.__decorate)([b.observable],kb.prototype,"gridOptions",void 0),kb=(0,$m.__decorate)([(0,b.customElement)({name:"preview-grid",template:xb,styles:yb})],kb),((e,a="zero")=>{e&&(0,V.provideTokens)(t,o,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,V.createDesignSystemProxy)(r)})().register(Zi,cg),(0,l.provideDesignSystem)().register(l.baseComponents,pg),((e,a="rapid")=>{e&&(0,V.provideTokens)(i,n,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,V.createDesignSystemProxy)(r)})().register(_h,Sm)}}]);
14815
- //# sourceMappingURL=427.9e86595228018350b8e52b12adddd9b6.js.map
14815
+ //# sourceMappingURL=427.f4ebb8da731c45e7ebdbecb71afecded.js.map