@genesislcap/design-system-configurator 14.391.0 → 14.392.0
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.
- package/dist/{106.106.941236196d84399e02ef.js → 106.106.4ed74823dbf1bdd5290b.js} +1 -1
- package/dist/{151.151.fc9c8be5a1f6262cbafa.js → 151.151.62c62c947c9497bcb991.js} +1 -1
- package/dist/{163.163.a533257ae9a5ce1988e5.js → 163.163.b6542b51136851e2da87.js} +1 -1
- package/dist/{226.226.08825884c82be26cde23.js → 226.226.dacb1412f8ac7e9e859d.js} +4 -4
- package/dist/{321.321.f5e97742d23825143dcd.js → 321.321.95a26bb69ad9a3a9cff1.js} +2 -2
- package/dist/{445.445.d5cf210925e2e5b03563.js → 445.445.38634d27d9f431d9bcdd.js} +3 -3
- package/dist/{644.644.2e401e301bfc8fba3470.js → 644.644.e202ec8af8440c8aa538.js} +15 -11
- package/dist/644.d780d59bbdb32049428f38caff94faa4.js.map +1 -0
- package/dist/{72.72.bcb141bd946f10f4c814.js → 72.72.7b6a9c8d22fe5d4a12b4.js} +1 -1
- package/dist/{75.75.a327a4ac12a8985123f5.js → 75.75.954fd4ecb1adae53c39c.js} +2 -2
- package/dist/{designSystemConfigurator.5543c7c6885822f2363e579fedebd163.js.map → designSystemConfigurator.c24cb5549cf58f8732eb5fef378d3acd.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.62ad23918ff83d4c9efc.js → main.abffc1ae11587983285f.js} +2 -2
- package/dist/{main.4e25e08f645454aaaab926641e6b72fd.js.map → main.d07548b3117a2d0d8ef01d742b80a74d.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/644.f82515b5a6f8357135c119bec23b0262.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[321],{5321:(e,t,a)=>{a.r(t),a.d(t,{Accordion:()=>_e,AccordionItem:()=>Je,ActionsMenu:()=>Ze,Anchor:()=>ct,AnchoredRegion:()=>ht,Avatar:()=>ft,Badge:()=>Ft,Banner:()=>Dt,Breadcrumb:()=>Lt,BreadcrumbItem:()=>It,Button:()=>Mt,Calendar:()=>Et,Card:()=>Xt,CategorizedMultiselect:()=>Kt,Checkbox:()=>ra,ColorHEX:()=>n,Combobox:()=>ia,ConnectionIndicator:()=>da,DataGrid:()=>l.DataGrid,DataGridCell:()=>l.DataGridCell,DataGridRow:()=>l.DataGridRow,DatePicker:()=>Ua,DesignSystemProvider:()=>je,Dialog:()=>Ja,Disclosure:()=>er,Divider:()=>or,DropdownMenu:()=>ir,EnvironmentIndicator:()=>cr,ErrorBoundary:()=>l.ErrorBoundary,ExpressionBuilderConfig:()=>l.ExpressionBuilderConfig,ExpressionBuilderCore:()=>l.ExpressionBuilderCore,FileUpload:()=>Tr,Filter:()=>Lr,FilterBar:()=>Pr,FlexLayout:()=>l.FlexLayout,Flipper:()=>Xr,Flyout:()=>Zr,GridLayout:()=>l.GridLayout,GridLayoutItem:()=>l.GridLayoutItem,HorizontalScroll:()=>Fo,Icon:()=>To,Listbox:()=>Bo,ListboxOption:()=>$o,Menu:()=>Go,MenuItem:()=>_o,Modal:()=>Qo,Multiselect:()=>an,NumberField:()=>cn,Position:()=>l.Position,Progress:()=>Sn,ProgressRing:()=>Rn,Radio:()=>Ln,RadioGroup:()=>Pn,RapidExpressionBuilder:()=>ms,RapidRuleExpressionBuilder:()=>bs,RapidValueExpressionBuilder:()=>vs,RuleExpression:()=>l.RuleExpression,Scheduler:()=>Vn,SchedulerCronBuilder:()=>jn,SchedulerTimezone:()=>_n,SearchBar:()=>Jn,SearchBarCombobox:()=>el,SectionNavigator:()=>rl,SegmentedControl:()=>il,SegmentedItem:()=>gl,Select:()=>yl,Skeleton:()=>wl,Slider:()=>Tl,SliderLabel:()=>Al,Snackbar:()=>Il,Stepper:()=>Ul,StepperTab:()=>ql,StepperTabPanel:()=>Kl,Switch:()=>ai,Tab:()=>li,TabPanel:()=>ci,Tabs:()=>mi,TextArea:()=>yi,TextField:()=>wi,Toast:()=>Oi,Toolbar:()=>Hi,Tooltip:()=>zi,TreeItem:()=>Mi,TreeView:()=>Ui,UrlInput:()=>qi,accentFillActive:()=>i.accentFillActive,accentFillActiveDelta:()=>i.accentFillActiveDelta,accentFillActiveDeltaValue:()=>V,accentFillFocus:()=>i.accentFillFocus,accentFillFocusDelta:()=>i.accentFillFocusDelta,accentFillFocusDeltaValue:()=>M,accentFillHover:()=>i.accentFillHover,accentFillHoverDelta:()=>i.accentFillHoverDelta,accentFillHoverDeltaValue:()=>$,accentFillRest:()=>i.accentFillRest,accentFillRestDelta:()=>i.accentFillRestDelta,accentFillRestDeltaValue:()=>I,accentForegroundActive:()=>i.accentForegroundActive,accentForegroundActiveDelta:()=>i.accentForegroundActiveDelta,accentForegroundActiveDeltaValue:()=>j,accentForegroundFocus:()=>i.accentForegroundFocus,accentForegroundFocusDelta:()=>i.accentForegroundFocusDelta,accentForegroundFocusDeltaValue:()=>E,accentForegroundHover:()=>i.accentForegroundHover,accentForegroundHoverDelta:()=>i.accentForegroundHoverDelta,accentForegroundHoverDeltaValue:()=>G,accentForegroundRest:()=>i.accentForegroundRest,accentForegroundRestDelta:()=>i.accentForegroundRestDelta,accentForegroundRestDeltaValue:()=>N,accentPalette:()=>i.accentPalette,accentPaletteValue:()=>B,baseComponents:()=>Ji,baseHeightMultiplier:()=>i.baseHeightMultiplier,baseHeightMultiplierValue:()=>fe,baseLayerLuminance:()=>i.baseLayerLuminance,baseLayerLuminanceValue:()=>z,bodyFont:()=>i.bodyFont,bodyFontValue:()=>Fe,buyColor:()=>w,categorizedMultiselectStyles:()=>Yt,categorizedMultiselectTemplate:()=>Jt,controlCornerRadius:()=>i.controlCornerRadius,controlCornerRadiusValue:()=>ye,defaultBreadcrumbConfig:()=>Ht,defaultBuyColor:()=>F,defaultCategorizedMultiselectConfig:()=>Qt,defaultDataGridCellConfig:()=>Ta,defaultDataGridConfig:()=>fa,defaultDataGridRowConfig:()=>Ia,defaultDatePickerConfig:()=>Ea,defaultDialogConfig:()=>Xa,defaultErrorBoundaryConfig:()=>vr,defaultErrorColor:()=>g,defaultFileUploadConfig:()=>Rr,defaultFlexLayoutConfig:()=>Gr,defaultFlyoutConfig:()=>Kr,defaultGridLayoutConfig:()=>lo,defaultGridLayoutItemConfig:()=>bo,defaultHorizontalScrollConfig:()=>wo,defaultIconConfig:()=>Oo,defaultInfoColor:()=>O,defaultModalConfig:()=>Yo,defaultMultiselectConfig:()=>rn,defaultNumberFieldConfig:()=>un,defaultRapidTreeItemConfig:()=>Ni,defaultSegmentedControlConfig:()=>dl,defaultSegmentedItemConfig:()=>ml,defaultSellColor:()=>R,defaultSeriousNotifyColor:()=>A,defaultSuccessColor:()=>b,defaultSwitchConfig:()=>ti,defaultToastConfig:()=>Di,defaultWarningColor:()=>y,defaultrapidProgressRingConfig:()=>Dn,density:()=>i.density,densityValue:()=>xe,designSystemProvider:()=>Ee,designTokens:()=>Ge,designUnit:()=>i.designUnit,designUnitValue:()=>Se,direction:()=>i.direction,directionValue:()=>he,disabledOpacity:()=>i.disabledOpacity,disabledOpacityValue:()=>me,dropdownMenuBaseStyles:()=>l.dropdownMenuBaseStyles,errorColor:()=>h,extractMenuItems:()=>l.extractMenuItems,fillColor:()=>i.fillColor,focusStrokeInner:()=>i.focusStrokeInner,focusStrokeOuter:()=>i.focusStrokeOuter,focusStrokeWidth:()=>i.focusStrokeWidth,focusStrokeWidthValue:()=>ve,foregroundOnAccentActive:()=>i.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>i.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>i.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>i.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>i.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>i.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>i.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>i.foregroundOnAccentRestLarge,getDropdownMenuTemplate:()=>l.getDropdownMenuTemplate,infoColor:()=>C,loadRobotoFontFaces:()=>ls,mixinRobotoFont:()=>ss,multiselectStyles:()=>en,multiselectTemplate:()=>tn,neutralFillActive:()=>i.neutralFillActive,neutralFillActiveDelta:()=>i.neutralFillActiveDelta,neutralFillActiveDeltaValue:()=>_,neutralFillFocus:()=>i.neutralFillFocus,neutralFillFocusDelta:()=>i.neutralFillFocusDelta,neutralFillFocusDeltaValue:()=>X,neutralFillHover:()=>i.neutralFillHover,neutralFillHoverDelta:()=>i.neutralFillHoverDelta,neutralFillHoverDeltaValue:()=>W,neutralFillInputActive:()=>i.neutralFillInputActive,neutralFillInputActiveDelta:()=>i.neutralFillInputActiveDelta,neutralFillInputActiveDeltaValue:()=>J,neutralFillInputFocus:()=>i.neutralFillInputFocus,neutralFillInputFocusDelta:()=>i.neutralFillInputFocusDelta,neutralFillInputFocusDeltaValue:()=>K,neutralFillInputHover:()=>i.neutralFillInputHover,neutralFillInputHoverDelta:()=>i.neutralFillInputHoverDelta,neutralFillInputHoverDeltaValue:()=>Y,neutralFillInputRest:()=>i.neutralFillInputRest,neutralFillInputRestDelta:()=>i.neutralFillInputRestDelta,neutralFillInputRestDeltaValue:()=>q,neutralFillLayerRest:()=>i.neutralFillLayerRest,neutralFillLayerRestDelta:()=>i.neutralFillLayerRestDelta,neutralFillLayerRestDeltaValue:()=>le,neutralFillRest:()=>i.neutralFillRest,neutralFillRestDelta:()=>i.neutralFillRestDelta,neutralFillRestDeltaValue:()=>U,neutralFillStealthActive:()=>i.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>i.neutralFillStealthActiveDelta,neutralFillStealthActiveDeltaValue:()=>ee,neutralFillStealthFocus:()=>i.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>i.neutralFillStealthFocusDelta,neutralFillStealthFocusDeltaValue:()=>te,neutralFillStealthHover:()=>i.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>i.neutralFillStealthHoverDelta,neutralFillStealthHoverDeltaValue:()=>Z,neutralFillStealthRest:()=>i.neutralFillStealthRest,neutralFillStealthRestDelta:()=>i.neutralFillStealthRestDelta,neutralFillStealthRestDeltaValue:()=>Q,neutralFillStrongActive:()=>i.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>i.neutralFillStrongActiveDelta,neutralFillStrongActiveDeltaValue:()=>oe,neutralFillStrongFocus:()=>i.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>i.neutralFillStrongFocusDelta,neutralFillStrongFocusDeltaValue:()=>ne,neutralFillStrongHover:()=>i.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>i.neutralFillStrongHoverDelta,neutralFillStrongHoverDeltaValue:()=>re,neutralFillStrongRest:()=>i.neutralFillStrongRest,neutralFillStrongRestDelta:()=>i.neutralFillStrongRestDelta,neutralFillStrongRestDeltaValue:()=>ae,neutralForegroundHint:()=>i.neutralForegroundHint,neutralForegroundRest:()=>i.neutralForegroundRest,neutralLayer1:()=>i.neutralLayer1,neutralLayer2:()=>i.neutralLayer2,neutralLayer3:()=>i.neutralLayer3,neutralLayer4:()=>i.neutralLayer4,neutralLayerCardContainer:()=>i.neutralLayerCardContainer,neutralLayerFloating:()=>i.neutralLayerFloating,neutralPalette:()=>i.neutralPalette,neutralPaletteValue:()=>P,neutralStrokeActive:()=>i.neutralStrokeActive,neutralStrokeActiveDelta:()=>i.neutralStrokeActiveDelta,neutralStrokeActiveDeltaValue:()=>de,neutralStrokeDividerRest:()=>i.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>i.neutralStrokeDividerRestDelta,neutralStrokeDividerRestDeltaValue:()=>ue,neutralStrokeFocus:()=>i.neutralStrokeFocus,neutralStrokeFocusDelta:()=>i.neutralStrokeFocusDelta,neutralStrokeFocusDeltaValue:()=>ce,neutralStrokeHover:()=>i.neutralStrokeHover,neutralStrokeHoverDelta:()=>i.neutralStrokeHoverDelta,neutralStrokeHoverDeltaValue:()=>se,neutralStrokeRest:()=>i.neutralStrokeRest,neutralStrokeRestDelta:()=>i.neutralStrokeRestDelta,neutralStrokeRestDeltaValue:()=>ie,prefix:()=>ge,provideDesignSystem:()=>Ki,rapidAccordion:()=>Xe,rapidAccordionItem:()=>Ke,rapidAccordionItemStyles:()=>qe,rapidAccordionItemTemplate:()=>Ye,rapidAccordionStyles:()=>Ue,rapidAccordionTemplate:()=>We,rapidActionsMenu:()=>et,rapidActionsMenuStyles:()=>Qe,rapidAnchor:()=>ut,rapidAnchorStyles:()=>st,rapidAnchorTemplate:()=>dt,rapidAnchoredRegion:()=>mt,rapidAnchoredRegionStyles:()=>pt,rapidAnchoredRegionTemplate:()=>gt,rapidAvatar:()=>yt,rapidAvatarStyles:()=>bt,rapidAvatarTemplate:()=>vt,rapidBGColorHEX:()=>Qi,rapidBadge:()=>wt,rapidBadgeStyles:()=>xt,rapidBadgeTemplate:()=>St,rapidBanner:()=>Tt,rapidBannerShadowOptions:()=>Rt,rapidBannerStyles:()=>kt,rapidBannerTemplate:()=>l.foundationBannerTemplate,rapidBreadcrumb:()=>Bt,rapidBreadcrumbItem:()=>$t,rapidBreadcrumbItemStyles:()=>Pt,rapidBreadcrumbItemTemplate:()=>zt,rapidBreadcrumbShadowOptions:()=>At,rapidBreadcrumbStyles:()=>Ot,rapidBreadcrumbTemplate:()=>Ct,rapidButton:()=>Nt,rapidButtonStyles:()=>it,rapidButtonTemplate:()=>Vt,rapidCalendar:()=>Ut,rapidCalendarStyles:()=>Gt,rapidCalendarTemplate:()=>jt,rapidCard:()=>qt,rapidCardStyles:()=>Wt,rapidCardTemplate:()=>_t,rapidCategorizedMultiselect:()=>ea,rapidCategorizedMultiselectShadowOptions:()=>Zt,rapidCheckbox:()=>oa,rapidCheckboxStyles:()=>ta,rapidCheckboxTemplate:()=>aa,rapidCombobox:()=>sa,rapidComboboxStyles:()=>na,rapidComboboxTemplate:()=>la,rapidConnectionIndicator:()=>ca,rapidDataGrid:()=>va,rapidDataGridCell:()=>Da,rapidDataGridCellShadowOptions:()=>La,rapidDataGridCellStyles:()=>Ca,rapidDataGridCellTemplate:()=>Oa,rapidDataGridRow:()=>za,rapidDataGridRowShadowOptions:()=>Ma,rapidDataGridRowStyles:()=>Va,rapidDataGridRowTemplate:()=>$a,rapidDataGridShadowOptions:()=>Sa,rapidDataGridStyles:()=>xa,rapidDataGridTemplate:()=>ya,rapidDatePicker:()=>Wa,rapidDatePickerShadowOptions:()=>ja,rapidDatePickerStyles:()=>Na,rapidDatePickerTemplate:()=>Ga,rapidDefaultCardFillColor:()=>as,rapidDefaultCardPalette:()=>rs,rapidDefaultFillColor:()=>es,rapidDialog:()=>Ka,rapidDialogShadowOptions:()=>Ya,rapidDialogStyles:()=>_a,rapidDialogTemplate:()=>l.foundationDialogTemplate,rapidDisclosure:()=>tr,rapidDisclosureStyles:()=>Qa,rapidDisclosureTemplate:()=>Za,rapidDivider:()=>nr,rapidDividerStyles:()=>ar,rapidDividerTemplate:()=>rr,rapidDropdownMenu:()=>sr,rapidDropdownMenuStyles:()=>lr,rapidEnvironmentIndicator:()=>ur,rapidEnvironmentIndicatorStyles:()=>dr,rapidEnvironmentIndicatorTemplate:()=>l.foundationEnvironmentIndicatorTemplate,rapidErrorBoundary:()=>br,rapidErrorBoundaryShadowOptions:()=>xr,rapidErrorBoundaryStyles:()=>yr,rapidErrorBoundaryTemplate:()=>fr,rapidFileReader:()=>Fr,rapidFileReaderStyles:()=>Sr,rapidFileReaderTemplate:()=>l.fileReaderTemplate,rapidFileUpload:()=>Or,rapidFileUploadShadowOptions:()=>Dr,rapidFileUploadStyles:()=>wr,rapidFileUploadTemplate:()=>l.foundationFileUploadTemplate,rapidFilter:()=>Ar,rapidFilterBar:()=>zr,rapidFilterBarStyles:()=>Hr,rapidFilterBarTemplate:()=>Br,rapidFilterTemplate:()=>Cr,rapidFlexLayout:()=>Nr,rapidFlexLayoutShadowOptions:()=>Ur,rapidFlexLayoutStyles:()=>Er,rapidFlexLayoutTemplate:()=>jr,rapidFlipper:()=>qr,rapidFlipperStyles:()=>Wr,rapidFlipperTemplate:()=>_r,rapidFlyout:()=>eo,rapidFlyoutShadowOptions:()=>Qr,rapidFlyoutStyles:()=>Yr,rapidFlyoutTemplate:()=>Jr,rapidGridLayout:()=>no,rapidGridLayoutItem:()=>mo,rapidGridLayoutItemShadowOptions:()=>yo,rapidGridLayoutItemStyles:()=>fo,rapidGridLayoutItemTemplate:()=>vo,rapidGridLayoutShadowOptions:()=>co,rapidGridLayoutStyles:()=>so,rapidGridLayoutTemplate:()=>io,rapidHorizontalScroll:()=>ko,rapidHorizontalScrollStyles:()=>xo,rapidHorizontalScrollTemplate:()=>So,rapidIcon:()=>Lo,rapidIconShadowOptions:()=>Co,rapidIconStyles:()=>Ro,rapidListbox:()=>Po,rapidListboxOption:()=>Vo,rapidListboxOptionStyles:()=>zo,rapidListboxOptionTemplate:()=>Io,rapidListboxStyles:()=>Ao,rapidListboxTemplate:()=>Ho,rapidMenu:()=>jo,rapidMenuItem:()=>Xo,rapidMenuItemShadowOptions:()=>Wo,rapidMenuItemStyles:()=>Eo,rapidMenuItemTemplate:()=>Uo,rapidMenuStyles:()=>Mo,rapidMenuTemplate:()=>No,rapidModal:()=>Zo,rapidModalShadowOptions:()=>Ko,rapidModalStyles:()=>qo,rapidModalTemplate:()=>Jo,rapidMultiselect:()=>nn,rapidMultiselectShadowOptions:()=>on,rapidNumberField:()=>hn,rapidNumberFieldShadowOptions:()=>gn,rapidNumberFieldStyles:()=>dn,rapidNumberFieldTemplate:()=>pn,rapidProgress:()=>Fn,rapidProgressRing:()=>Tn,rapidProgressRingStyles:()=>wn,rapidProgressRingTemplate:()=>kn,rapidProgressStyles:()=>yn,rapidProgressTemplate:()=>xn,rapidRadio:()=>An,rapidRadioGroup:()=>zn,rapidRadioGroupStyles:()=>Hn,rapidRadioGroupTemplate:()=>Bn,rapidRadioStyles:()=>On,rapidRadioTemplate:()=>Cn,rapidScheduler:()=>Mn,rapidSchedulerCronBuilder:()=>En,rapidSchedulerCronBuilderStyles:()=>Nn,rapidSchedulerCronBuilderTemplate:()=>Gn,rapidSchedulerStyles:()=>In,rapidSchedulerTemplate:()=>$n,rapidSchedulerTimezone:()=>Xn,rapidSchedulerTimezoneStyles:()=>Un,rapidSchedulerTimezoneTemplate:()=>Wn,rapidSearchBar:()=>Kn,rapidSearchBarCombobox:()=>tl,rapidSearchBarComboboxStyles:()=>Qn,rapidSearchBarComboboxTemplate:()=>Zn,rapidSearchBarStyles:()=>qn,rapidSearchBarTemplate:()=>Yn,rapidSectionNavigator:()=>ol,rapidSectionNavigatorStyles:()=>al,rapidSegmentedControl:()=>cl,rapidSegmentedControlShadowOptions:()=>sl,rapidSegmentedControlStyles:()=>nl,rapidSegmentedControlTemplate:()=>ll,rapidSegmentedItem:()=>bl,rapidSegmentedItemShadowOptions:()=>hl,rapidSegmentedItemStyles:()=>ul,rapidSegmentedItemTemplate:()=>pl,rapidSelect:()=>xl,rapidSelectStyles:()=>vl,rapidSelectTemplate:()=>fl,rapidSkeleton:()=>kl,rapidSkeletonStyles:()=>Sl,rapidSkeletonTemplate:()=>Fl,rapidSlider:()=>Ol,rapidSliderLabel:()=>Hl,rapidSliderLabelStyles:()=>Cl,rapidSliderLabelTemplate:()=>Ll,rapidSliderStyles:()=>Rl,rapidSliderTemplate:()=>Dl,rapidSnackbar:()=>$l,rapidSnackbarShadowOptions:()=>zl,rapidSnackbarStyles:()=>Bl,rapidStepper:()=>Wl,rapidStepperStyles:()=>jl,rapidStepperTab:()=>Yl,rapidStepperTabPanel:()=>Ql,rapidStepperTabPanelTemplate:()=>Jl,rapidStepperTabStyles:()=>_l,rapidStepperTabTemplate:()=>Xl,rapidStepperTemplate:()=>El,rapidSwitch:()=>ri,rapidSwitchStyles:()=>Zl,rapidSwitchTemplate:()=>ei,rapidTab:()=>ii,rapidTabPanel:()=>ui,rapidTabPanelStyles:()=>si,rapidTabPanelTemplate:()=>di,rapidTabStyles:()=>oi,rapidTabTemplate:()=>ni,rapidTabs:()=>bi,rapidTabsStyles:()=>pi,rapidTabsTemplate:()=>gi,rapidTextArea:()=>xi,rapidTextAreaStyles:()=>vi,rapidTextAreaTemplate:()=>fi,rapidTextField:()=>ki,rapidTextFieldStyles:()=>Si,rapidTextFieldTemplate:()=>Fi,rapidToast:()=>Ci,rapidToastShadowOptions:()=>Ti,rapidToastStyles:()=>Ri,rapidToastTemplate:()=>l.foundationToastTemplate,rapidToolbar:()=>Bi,rapidToolbarStyles:()=>Li,rapidToolbarTemplate:()=>Ai,rapidTooltip:()=>Ii,rapidTooltipStyles:()=>Pi,rapidTreeItem:()=>Gi,rapidTreeItemStyles:()=>$i,rapidTreeItemTemplate:()=>Vi,rapidTreeView:()=>Wi,rapidTreeViewStyles:()=>ji,rapidTreeViewTemplate:()=>Ei,rapidUrlInput:()=>Yi,rapidUrlInputStyles:()=>_i,rapidUrlInputTemplate:()=>Xi,registerRapidDesignSystem:()=>fs,robotoFontFaces:()=>ns,robotoFontFamily:()=>is,sellColor:()=>D,seriousNotifyColor:()=>H,strokeWidth:()=>i.strokeWidth,strokeWidthValue:()=>be,successColor:()=>v,swatchFromColor:()=>hi,typeRampBaseFontSize:()=>i.typeRampBaseFontSize,typeRampBaseFontSizeValue:()=>we,typeRampBaseLineHeight:()=>i.typeRampBaseLineHeight,typeRampBaseLineHeightValue:()=>ke,typeRampMinus1FontSize:()=>i.typeRampMinus1FontSize,typeRampMinus1FontSizeValue:()=>Re,typeRampMinus1LineHeight:()=>i.typeRampMinus1LineHeight,typeRampMinus1LineHeightValue:()=>De,typeRampMinus2FontSize:()=>i.typeRampMinus2FontSize,typeRampMinus2FontSizeValue:()=>Te,typeRampMinus2LineHeight:()=>i.typeRampMinus2LineHeight,typeRampMinus2LineHeightValue:()=>Oe,typeRampPlus1FontSize:()=>i.typeRampPlus1FontSize,typeRampPlus1FontSizeValue:()=>Ce,typeRampPlus1LineHeight:()=>i.typeRampPlus1LineHeight,typeRampPlus1LineHeightValue:()=>Le,typeRampPlus2FontSize:()=>i.typeRampPlus2FontSize,typeRampPlus2FontSizeValue:()=>Ae,typeRampPlus2LineHeight:()=>i.typeRampPlus2LineHeight,typeRampPlus2LineHeightValue:()=>He,typeRampPlus3FontSize:()=>i.typeRampPlus3FontSize,typeRampPlus3FontSizeValue:()=>Be,typeRampPlus3LineHeight:()=>i.typeRampPlus3LineHeight,typeRampPlus3LineHeightValue:()=>Pe,typeRampPlus4FontSize:()=>i.typeRampPlus4FontSize,typeRampPlus4FontSizeValue:()=>ze,typeRampPlus4LineHeight:()=>i.typeRampPlus4LineHeight,typeRampPlus4LineHeightValue:()=>Ie,typeRampPlus5FontSize:()=>i.typeRampPlus5FontSize,typeRampPlus5FontSizeValue:()=>$e,typeRampPlus5LineHeight:()=>i.typeRampPlus5LineHeight,typeRampPlus5LineHeightValue:()=>Ve,typeRampPlus6FontSize:()=>i.typeRampPlus6FontSize,typeRampPlus6FontSizeValue:()=>Me,typeRampPlus6LineHeight:()=>i.typeRampPlus6LineHeight,typeRampPlus6LineHeightValue:()=>Ne,warningColor:()=>x,zeroDropdownMenuTemplate:()=>l.foundationDropdownMenuTemplate,zeroFilterStyles:()=>l.foundationFilterStyles,zeroModalTemplate:()=>l.foundationModalTemplate});var r={};a.r(r),a.d(r,{accentFillActive:()=>i.accentFillActive,accentFillActiveDelta:()=>i.accentFillActiveDelta,accentFillFocus:()=>i.accentFillFocus,accentFillFocusDelta:()=>i.accentFillFocusDelta,accentFillHover:()=>i.accentFillHover,accentFillHoverDelta:()=>i.accentFillHoverDelta,accentFillRest:()=>i.accentFillRest,accentFillRestDelta:()=>i.accentFillRestDelta,accentForegroundActive:()=>i.accentForegroundActive,accentForegroundActiveDelta:()=>i.accentForegroundActiveDelta,accentForegroundFocus:()=>i.accentForegroundFocus,accentForegroundFocusDelta:()=>i.accentForegroundFocusDelta,accentForegroundHover:()=>i.accentForegroundHover,accentForegroundHoverDelta:()=>i.accentForegroundHoverDelta,accentForegroundRest:()=>i.accentForegroundRest,accentForegroundRestDelta:()=>i.accentForegroundRestDelta,accentPalette:()=>i.accentPalette,baseHeightMultiplier:()=>i.baseHeightMultiplier,baseLayerLuminance:()=>i.baseLayerLuminance,bodyFont:()=>i.bodyFont,buyColor:()=>w,controlCornerRadius:()=>i.controlCornerRadius,defaultBuyColor:()=>F,defaultErrorColor:()=>g,defaultInfoColor:()=>O,defaultSellColor:()=>R,defaultSeriousNotifyColor:()=>A,defaultSuccessColor:()=>b,defaultWarningColor:()=>y,density:()=>i.density,designUnit:()=>i.designUnit,direction:()=>i.direction,disabledOpacity:()=>i.disabledOpacity,errorColor:()=>h,fillColor:()=>i.fillColor,focusStrokeInner:()=>i.focusStrokeInner,focusStrokeOuter:()=>i.focusStrokeOuter,focusStrokeWidth:()=>i.focusStrokeWidth,foregroundOnAccentActive:()=>i.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>i.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>i.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>i.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>i.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>i.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>i.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>i.foregroundOnAccentRestLarge,infoColor:()=>C,neutralFillActive:()=>i.neutralFillActive,neutralFillActiveDelta:()=>i.neutralFillActiveDelta,neutralFillFocus:()=>i.neutralFillFocus,neutralFillFocusDelta:()=>i.neutralFillFocusDelta,neutralFillHover:()=>i.neutralFillHover,neutralFillHoverDelta:()=>i.neutralFillHoverDelta,neutralFillInputActive:()=>i.neutralFillInputActive,neutralFillInputActiveDelta:()=>i.neutralFillInputActiveDelta,neutralFillInputFocus:()=>i.neutralFillInputFocus,neutralFillInputFocusDelta:()=>i.neutralFillInputFocusDelta,neutralFillInputHover:()=>i.neutralFillInputHover,neutralFillInputHoverDelta:()=>i.neutralFillInputHoverDelta,neutralFillInputRest:()=>i.neutralFillInputRest,neutralFillInputRestDelta:()=>i.neutralFillInputRestDelta,neutralFillLayerRest:()=>i.neutralFillLayerRest,neutralFillLayerRestDelta:()=>i.neutralFillLayerRestDelta,neutralFillRest:()=>i.neutralFillRest,neutralFillRestDelta:()=>i.neutralFillRestDelta,neutralFillStealthActive:()=>i.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>i.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>i.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>i.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>i.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>i.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>i.neutralFillStealthRest,neutralFillStealthRestDelta:()=>i.neutralFillStealthRestDelta,neutralFillStrongActive:()=>i.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>i.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>i.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>i.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>i.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>i.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>i.neutralFillStrongRest,neutralFillStrongRestDelta:()=>i.neutralFillStrongRestDelta,neutralForegroundHint:()=>i.neutralForegroundHint,neutralForegroundRest:()=>i.neutralForegroundRest,neutralLayer1:()=>i.neutralLayer1,neutralLayer2:()=>i.neutralLayer2,neutralLayer3:()=>i.neutralLayer3,neutralLayer4:()=>i.neutralLayer4,neutralLayerCardContainer:()=>i.neutralLayerCardContainer,neutralLayerFloating:()=>i.neutralLayerFloating,neutralPalette:()=>i.neutralPalette,neutralStrokeActive:()=>i.neutralStrokeActive,neutralStrokeActiveDelta:()=>i.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>i.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>i.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>i.neutralStrokeFocus,neutralStrokeFocusDelta:()=>i.neutralStrokeFocusDelta,neutralStrokeHover:()=>i.neutralStrokeHover,neutralStrokeHoverDelta:()=>i.neutralStrokeHoverDelta,neutralStrokeRest:()=>i.neutralStrokeRest,neutralStrokeRestDelta:()=>i.neutralStrokeRestDelta,sellColor:()=>D,seriousNotifyColor:()=>H,strokeWidth:()=>i.strokeWidth,successColor:()=>v,typeRampBaseFontSize:()=>i.typeRampBaseFontSize,typeRampBaseLineHeight:()=>i.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>i.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>i.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>i.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>i.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>i.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>i.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>i.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>i.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>i.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>i.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>i.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>i.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>i.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>i.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>i.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>i.typeRampPlus6LineHeight,warningColor:()=>x});var o={};a.r(o),a.d(o,{accentFillActiveDeltaValue:()=>V,accentFillFocusDeltaValue:()=>M,accentFillHoverDeltaValue:()=>$,accentFillRestDeltaValue:()=>I,accentForegroundActiveDeltaValue:()=>j,accentForegroundFocusDeltaValue:()=>E,accentForegroundHoverDeltaValue:()=>G,accentForegroundRestDeltaValue:()=>N,accentPaletteValue:()=>B,baseHeightMultiplierValue:()=>fe,baseLayerLuminanceValue:()=>z,bodyFontValue:()=>Fe,controlCornerRadiusValue:()=>ye,densityValue:()=>xe,designTokens:()=>Ge,designUnitValue:()=>Se,directionValue:()=>he,disabledOpacityValue:()=>me,focusStrokeWidthValue:()=>ve,neutralFillActiveDeltaValue:()=>_,neutralFillFocusDeltaValue:()=>X,neutralFillHoverDeltaValue:()=>W,neutralFillInputActiveDeltaValue:()=>J,neutralFillInputFocusDeltaValue:()=>K,neutralFillInputHoverDeltaValue:()=>Y,neutralFillInputRestDeltaValue:()=>q,neutralFillLayerRestDeltaValue:()=>le,neutralFillRestDeltaValue:()=>U,neutralFillStealthActiveDeltaValue:()=>ee,neutralFillStealthFocusDeltaValue:()=>te,neutralFillStealthHoverDeltaValue:()=>Z,neutralFillStealthRestDeltaValue:()=>Q,neutralFillStrongActiveDeltaValue:()=>oe,neutralFillStrongFocusDeltaValue:()=>ne,neutralFillStrongHoverDeltaValue:()=>re,neutralFillStrongRestDeltaValue:()=>ae,neutralPaletteValue:()=>P,neutralStrokeActiveDeltaValue:()=>de,neutralStrokeDividerRestDeltaValue:()=>ue,neutralStrokeFocusDeltaValue:()=>ce,neutralStrokeHoverDeltaValue:()=>se,neutralStrokeRestDeltaValue:()=>ie,prefix:()=>ge,strokeWidthValue:()=>be,typeRampBaseFontSizeValue:()=>we,typeRampBaseLineHeightValue:()=>ke,typeRampMinus1FontSizeValue:()=>Re,typeRampMinus1LineHeightValue:()=>De,typeRampMinus2FontSizeValue:()=>Te,typeRampMinus2LineHeightValue:()=>Oe,typeRampPlus1FontSizeValue:()=>Ce,typeRampPlus1LineHeightValue:()=>Le,typeRampPlus2FontSizeValue:()=>Ae,typeRampPlus2LineHeightValue:()=>He,typeRampPlus3FontSizeValue:()=>Be,typeRampPlus3LineHeightValue:()=>Pe,typeRampPlus4FontSizeValue:()=>ze,typeRampPlus4LineHeightValue:()=>Ie,typeRampPlus5FontSizeValue:()=>$e,typeRampPlus5LineHeightValue:()=>Ve,typeRampPlus6FontSizeValue:()=>Me,typeRampPlus6LineHeightValue:()=>Ne});var n,l=a(99656),i=a(54634),s=a(33681),d=a(83912),c=a(38370);!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",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"}(n||(n={}));const{create:u}=c.DesignToken,p=(0,d.parseColorHexRGB)(n.error),g=i.SwatchRGB.create(p.r,p.g,p.b),h=u("error-color").withDefault(g),m=(0,d.parseColorHexRGB)(n.success),b=i.SwatchRGB.create(m.r,m.g,m.b),v=u("success-color").withDefault(b),f=(0,d.parseColorHexRGB)(n.warning),y=i.SwatchRGB.create(f.r,f.g,f.b),x=u("warning-color").withDefault(y),S=(0,d.parseColorHexRGB)(n.buy),F=i.SwatchRGB.create(S.r,S.g,S.b),w=u("buy-color").withDefault(F),k=(0,d.parseColorHexRGB)(n.sell),R=i.SwatchRGB.create(k.r,k.g,k.b),D=u("sell-color").withDefault(R),T=(0,d.parseColorHexRGB)(n.info),O=i.SwatchRGB.create(T.r,T.g,T.b),C=u("info-color").withDefault(O),L=(0,d.parseColorHexRGB)(n.error),A=i.SwatchRGB.create(L.r,L.g,L.b),H=u("serious-notify-color").withDefault(A),B=(0,l.paletteFromHex)(n.primary),P=(0,l.paletteFromHex)(n.neutral),z=i.StandardLuminance.DarkMode,I=0,$=4,V=-5,M=0,N=0,G=6,j=-4,E=0,U=7,W=10,_=5,X=0,q=0,Y=5,J=0,K=10,Q=0,Z=5,ee=3,te=0,ae=0,re=8,oe=-5,ne=0,le=3,ie=25,se=40,de=16,ce=25,ue=8;var pe=a(85109);const ge="rapid",he=pe.O.ltr,me=.3,be=1,ve=2,fe=10,ye=4,xe=0,Se=4,Fe='"Segoe UI", Arial, Helvetica, sans-serif',we="14px",ke="20px",Re="13px",De="19px",Te="12px",Oe="18px",Ce="15px",Le="21px",Ae="16px",He="22px",Be="17px",Pe="23px",ze="18px",Ie="24px",$e="19px",Ve="25px",Me="20px",Ne="26px",Ge={design_tokens:{color:{accent:{$value:B.source.toColorString(),$type:"color"},neutral:{$value:P.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Fe,$type:"fontFamily"}},typography:{baseFontSize:{$value:we,$type:"dimension"},baseLineHeight:{$value:ke,$type:"dimension"}},mode:{luminance:{$value:z,$type:"number"}},style:{density:{$value:xe,$type:"number"},baseHeightMultiplier:{$value:fe,$type:"number"},borderRadius:{$value:ye,$type:"number"},strokeWidth:{$value:be,$type:"number"}},space:{designUnit:{$value:Se,$type:"number"}}}};class je extends i.DesignSystemProvider{constructor(){super(),(0,l.provideTokens)(r,o,this)}}const Ee=je.compose({baseName:"design-system-provider",template:s.html`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[321],{5321:(e,t,a)=>{a.r(t),a.d(t,{Accordion:()=>_e,AccordionItem:()=>Je,ActionsMenu:()=>Ze,Anchor:()=>ct,AnchoredRegion:()=>ht,Avatar:()=>ft,Badge:()=>Ft,Banner:()=>Dt,Breadcrumb:()=>Lt,BreadcrumbItem:()=>It,Button:()=>Mt,Calendar:()=>Et,Card:()=>Xt,CategorizedMultiselect:()=>Kt,Checkbox:()=>ra,ColorHEX:()=>n,Combobox:()=>ia,ConnectionIndicator:()=>da,DataGrid:()=>l.DataGrid,DataGridCell:()=>l.DataGridCell,DataGridRow:()=>l.DataGridRow,DatePicker:()=>Ua,DesignSystemProvider:()=>je,Dialog:()=>Ja,Disclosure:()=>er,Divider:()=>or,DropdownMenu:()=>ir,EnvironmentIndicator:()=>cr,ErrorBoundary:()=>l.ErrorBoundary,ExpressionBuilderConfig:()=>l.ExpressionBuilderConfig,ExpressionBuilderCore:()=>l.ExpressionBuilderCore,FileUpload:()=>Tr,Filter:()=>Lr,FilterBar:()=>Pr,FlexLayout:()=>l.FlexLayout,Flipper:()=>Xr,Flyout:()=>Zr,GridLayout:()=>l.GridLayout,GridLayoutItem:()=>l.GridLayoutItem,HorizontalScroll:()=>Fo,Icon:()=>To,Listbox:()=>Bo,ListboxOption:()=>$o,Menu:()=>Go,MenuItem:()=>_o,Modal:()=>Qo,Multiselect:()=>an,NumberField:()=>cn,Position:()=>l.Position,Progress:()=>Sn,ProgressRing:()=>Rn,Radio:()=>Ln,RadioGroup:()=>Pn,RapidExpressionBuilder:()=>ms,RapidRuleExpressionBuilder:()=>bs,RapidValueExpressionBuilder:()=>vs,RuleExpression:()=>l.RuleExpression,Scheduler:()=>Vn,SchedulerCronBuilder:()=>jn,SchedulerTimezone:()=>_n,SearchBar:()=>Jn,SearchBarCombobox:()=>el,SectionNavigator:()=>rl,SegmentedControl:()=>il,SegmentedItem:()=>gl,Select:()=>yl,Skeleton:()=>wl,Slider:()=>Tl,SliderLabel:()=>Al,Snackbar:()=>Il,Stepper:()=>Ul,StepperTab:()=>ql,StepperTabPanel:()=>Kl,Switch:()=>ai,Tab:()=>li,TabPanel:()=>ci,Tabs:()=>mi,TextArea:()=>yi,TextField:()=>wi,Toast:()=>Oi,Toolbar:()=>Hi,Tooltip:()=>zi,TreeItem:()=>Mi,TreeView:()=>Ui,UrlInput:()=>qi,accentFillActive:()=>i.accentFillActive,accentFillActiveDelta:()=>i.accentFillActiveDelta,accentFillActiveDeltaValue:()=>V,accentFillFocus:()=>i.accentFillFocus,accentFillFocusDelta:()=>i.accentFillFocusDelta,accentFillFocusDeltaValue:()=>M,accentFillHover:()=>i.accentFillHover,accentFillHoverDelta:()=>i.accentFillHoverDelta,accentFillHoverDeltaValue:()=>$,accentFillRest:()=>i.accentFillRest,accentFillRestDelta:()=>i.accentFillRestDelta,accentFillRestDeltaValue:()=>I,accentForegroundActive:()=>i.accentForegroundActive,accentForegroundActiveDelta:()=>i.accentForegroundActiveDelta,accentForegroundActiveDeltaValue:()=>j,accentForegroundFocus:()=>i.accentForegroundFocus,accentForegroundFocusDelta:()=>i.accentForegroundFocusDelta,accentForegroundFocusDeltaValue:()=>E,accentForegroundHover:()=>i.accentForegroundHover,accentForegroundHoverDelta:()=>i.accentForegroundHoverDelta,accentForegroundHoverDeltaValue:()=>G,accentForegroundRest:()=>i.accentForegroundRest,accentForegroundRestDelta:()=>i.accentForegroundRestDelta,accentForegroundRestDeltaValue:()=>N,accentPalette:()=>i.accentPalette,accentPaletteValue:()=>B,baseComponents:()=>Ji,baseHeightMultiplier:()=>i.baseHeightMultiplier,baseHeightMultiplierValue:()=>fe,baseLayerLuminance:()=>i.baseLayerLuminance,baseLayerLuminanceValue:()=>z,bodyFont:()=>i.bodyFont,bodyFontValue:()=>Fe,buyColor:()=>w,categorizedMultiselectStyles:()=>Yt,categorizedMultiselectTemplate:()=>Jt,controlCornerRadius:()=>i.controlCornerRadius,controlCornerRadiusValue:()=>ye,defaultBreadcrumbConfig:()=>Ht,defaultBuyColor:()=>F,defaultCategorizedMultiselectConfig:()=>Qt,defaultDataGridCellConfig:()=>Ta,defaultDataGridConfig:()=>fa,defaultDataGridRowConfig:()=>Ia,defaultDatePickerConfig:()=>Ea,defaultDialogConfig:()=>Xa,defaultErrorBoundaryConfig:()=>vr,defaultErrorColor:()=>g,defaultFileUploadConfig:()=>Rr,defaultFlexLayoutConfig:()=>Gr,defaultFlyoutConfig:()=>Kr,defaultGridLayoutConfig:()=>lo,defaultGridLayoutItemConfig:()=>bo,defaultHorizontalScrollConfig:()=>wo,defaultIconConfig:()=>Oo,defaultInfoColor:()=>O,defaultModalConfig:()=>Yo,defaultMultiselectConfig:()=>rn,defaultNumberFieldConfig:()=>un,defaultRapidTreeItemConfig:()=>Ni,defaultSegmentedControlConfig:()=>dl,defaultSegmentedItemConfig:()=>ml,defaultSellColor:()=>R,defaultSeriousNotifyColor:()=>A,defaultSuccessColor:()=>b,defaultSwitchConfig:()=>ti,defaultToastConfig:()=>Di,defaultWarningColor:()=>y,defaultrapidProgressRingConfig:()=>Dn,density:()=>i.density,densityValue:()=>xe,designSystemProvider:()=>Ee,designTokens:()=>Ge,designUnit:()=>i.designUnit,designUnitValue:()=>Se,direction:()=>i.direction,directionValue:()=>he,disabledOpacity:()=>i.disabledOpacity,disabledOpacityValue:()=>me,dropdownMenuBaseStyles:()=>l.dropdownMenuBaseStyles,errorColor:()=>h,extractMenuItems:()=>l.extractMenuItems,fillColor:()=>i.fillColor,focusStrokeInner:()=>i.focusStrokeInner,focusStrokeOuter:()=>i.focusStrokeOuter,focusStrokeWidth:()=>i.focusStrokeWidth,focusStrokeWidthValue:()=>ve,foregroundOnAccentActive:()=>i.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>i.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>i.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>i.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>i.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>i.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>i.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>i.foregroundOnAccentRestLarge,getDropdownMenuTemplate:()=>l.getDropdownMenuTemplate,infoColor:()=>C,loadRobotoFontFaces:()=>ls,mixinRobotoFont:()=>ss,multiselectStyles:()=>en,multiselectTemplate:()=>tn,neutralFillActive:()=>i.neutralFillActive,neutralFillActiveDelta:()=>i.neutralFillActiveDelta,neutralFillActiveDeltaValue:()=>_,neutralFillFocus:()=>i.neutralFillFocus,neutralFillFocusDelta:()=>i.neutralFillFocusDelta,neutralFillFocusDeltaValue:()=>X,neutralFillHover:()=>i.neutralFillHover,neutralFillHoverDelta:()=>i.neutralFillHoverDelta,neutralFillHoverDeltaValue:()=>W,neutralFillInputActive:()=>i.neutralFillInputActive,neutralFillInputActiveDelta:()=>i.neutralFillInputActiveDelta,neutralFillInputActiveDeltaValue:()=>J,neutralFillInputFocus:()=>i.neutralFillInputFocus,neutralFillInputFocusDelta:()=>i.neutralFillInputFocusDelta,neutralFillInputFocusDeltaValue:()=>K,neutralFillInputHover:()=>i.neutralFillInputHover,neutralFillInputHoverDelta:()=>i.neutralFillInputHoverDelta,neutralFillInputHoverDeltaValue:()=>Y,neutralFillInputRest:()=>i.neutralFillInputRest,neutralFillInputRestDelta:()=>i.neutralFillInputRestDelta,neutralFillInputRestDeltaValue:()=>q,neutralFillLayerRest:()=>i.neutralFillLayerRest,neutralFillLayerRestDelta:()=>i.neutralFillLayerRestDelta,neutralFillLayerRestDeltaValue:()=>le,neutralFillRest:()=>i.neutralFillRest,neutralFillRestDelta:()=>i.neutralFillRestDelta,neutralFillRestDeltaValue:()=>U,neutralFillStealthActive:()=>i.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>i.neutralFillStealthActiveDelta,neutralFillStealthActiveDeltaValue:()=>ee,neutralFillStealthFocus:()=>i.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>i.neutralFillStealthFocusDelta,neutralFillStealthFocusDeltaValue:()=>te,neutralFillStealthHover:()=>i.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>i.neutralFillStealthHoverDelta,neutralFillStealthHoverDeltaValue:()=>Z,neutralFillStealthRest:()=>i.neutralFillStealthRest,neutralFillStealthRestDelta:()=>i.neutralFillStealthRestDelta,neutralFillStealthRestDeltaValue:()=>Q,neutralFillStrongActive:()=>i.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>i.neutralFillStrongActiveDelta,neutralFillStrongActiveDeltaValue:()=>oe,neutralFillStrongFocus:()=>i.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>i.neutralFillStrongFocusDelta,neutralFillStrongFocusDeltaValue:()=>ne,neutralFillStrongHover:()=>i.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>i.neutralFillStrongHoverDelta,neutralFillStrongHoverDeltaValue:()=>re,neutralFillStrongRest:()=>i.neutralFillStrongRest,neutralFillStrongRestDelta:()=>i.neutralFillStrongRestDelta,neutralFillStrongRestDeltaValue:()=>ae,neutralForegroundHint:()=>i.neutralForegroundHint,neutralForegroundRest:()=>i.neutralForegroundRest,neutralLayer1:()=>i.neutralLayer1,neutralLayer2:()=>i.neutralLayer2,neutralLayer3:()=>i.neutralLayer3,neutralLayer4:()=>i.neutralLayer4,neutralLayerCardContainer:()=>i.neutralLayerCardContainer,neutralLayerFloating:()=>i.neutralLayerFloating,neutralPalette:()=>i.neutralPalette,neutralPaletteValue:()=>P,neutralStrokeActive:()=>i.neutralStrokeActive,neutralStrokeActiveDelta:()=>i.neutralStrokeActiveDelta,neutralStrokeActiveDeltaValue:()=>de,neutralStrokeDividerRest:()=>i.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>i.neutralStrokeDividerRestDelta,neutralStrokeDividerRestDeltaValue:()=>ue,neutralStrokeFocus:()=>i.neutralStrokeFocus,neutralStrokeFocusDelta:()=>i.neutralStrokeFocusDelta,neutralStrokeFocusDeltaValue:()=>ce,neutralStrokeHover:()=>i.neutralStrokeHover,neutralStrokeHoverDelta:()=>i.neutralStrokeHoverDelta,neutralStrokeHoverDeltaValue:()=>se,neutralStrokeRest:()=>i.neutralStrokeRest,neutralStrokeRestDelta:()=>i.neutralStrokeRestDelta,neutralStrokeRestDeltaValue:()=>ie,prefix:()=>ge,provideDesignSystem:()=>Ki,rapidAccordion:()=>Xe,rapidAccordionItem:()=>Ke,rapidAccordionItemStyles:()=>qe,rapidAccordionItemTemplate:()=>Ye,rapidAccordionStyles:()=>Ue,rapidAccordionTemplate:()=>We,rapidActionsMenu:()=>et,rapidActionsMenuStyles:()=>Qe,rapidAnchor:()=>ut,rapidAnchorStyles:()=>st,rapidAnchorTemplate:()=>dt,rapidAnchoredRegion:()=>mt,rapidAnchoredRegionStyles:()=>pt,rapidAnchoredRegionTemplate:()=>gt,rapidAvatar:()=>yt,rapidAvatarStyles:()=>bt,rapidAvatarTemplate:()=>vt,rapidBGColorHEX:()=>Qi,rapidBadge:()=>wt,rapidBadgeStyles:()=>xt,rapidBadgeTemplate:()=>St,rapidBanner:()=>Tt,rapidBannerShadowOptions:()=>Rt,rapidBannerStyles:()=>kt,rapidBannerTemplate:()=>l.foundationBannerTemplate,rapidBreadcrumb:()=>Bt,rapidBreadcrumbItem:()=>$t,rapidBreadcrumbItemStyles:()=>Pt,rapidBreadcrumbItemTemplate:()=>zt,rapidBreadcrumbShadowOptions:()=>At,rapidBreadcrumbStyles:()=>Ot,rapidBreadcrumbTemplate:()=>Ct,rapidButton:()=>Nt,rapidButtonStyles:()=>it,rapidButtonTemplate:()=>Vt,rapidCalendar:()=>Ut,rapidCalendarStyles:()=>Gt,rapidCalendarTemplate:()=>jt,rapidCard:()=>qt,rapidCardStyles:()=>Wt,rapidCardTemplate:()=>_t,rapidCategorizedMultiselect:()=>ea,rapidCategorizedMultiselectShadowOptions:()=>Zt,rapidCheckbox:()=>oa,rapidCheckboxStyles:()=>ta,rapidCheckboxTemplate:()=>aa,rapidCombobox:()=>sa,rapidComboboxStyles:()=>na,rapidComboboxTemplate:()=>la,rapidConnectionIndicator:()=>ca,rapidDataGrid:()=>va,rapidDataGridCell:()=>Da,rapidDataGridCellShadowOptions:()=>La,rapidDataGridCellStyles:()=>Ca,rapidDataGridCellTemplate:()=>Oa,rapidDataGridRow:()=>za,rapidDataGridRowShadowOptions:()=>Ma,rapidDataGridRowStyles:()=>Va,rapidDataGridRowTemplate:()=>$a,rapidDataGridShadowOptions:()=>Sa,rapidDataGridStyles:()=>xa,rapidDataGridTemplate:()=>ya,rapidDatePicker:()=>Wa,rapidDatePickerShadowOptions:()=>ja,rapidDatePickerStyles:()=>Na,rapidDatePickerTemplate:()=>Ga,rapidDefaultCardFillColor:()=>as,rapidDefaultCardPalette:()=>rs,rapidDefaultFillColor:()=>es,rapidDialog:()=>Ka,rapidDialogShadowOptions:()=>Ya,rapidDialogStyles:()=>_a,rapidDialogTemplate:()=>l.foundationDialogTemplate,rapidDisclosure:()=>tr,rapidDisclosureStyles:()=>Qa,rapidDisclosureTemplate:()=>Za,rapidDivider:()=>nr,rapidDividerStyles:()=>ar,rapidDividerTemplate:()=>rr,rapidDropdownMenu:()=>sr,rapidDropdownMenuStyles:()=>lr,rapidEnvironmentIndicator:()=>ur,rapidEnvironmentIndicatorStyles:()=>dr,rapidEnvironmentIndicatorTemplate:()=>l.foundationEnvironmentIndicatorTemplate,rapidErrorBoundary:()=>br,rapidErrorBoundaryShadowOptions:()=>xr,rapidErrorBoundaryStyles:()=>yr,rapidErrorBoundaryTemplate:()=>fr,rapidFileReader:()=>Fr,rapidFileReaderStyles:()=>Sr,rapidFileReaderTemplate:()=>l.fileReaderTemplate,rapidFileUpload:()=>Or,rapidFileUploadShadowOptions:()=>Dr,rapidFileUploadStyles:()=>wr,rapidFileUploadTemplate:()=>l.foundationFileUploadTemplate,rapidFilter:()=>Ar,rapidFilterBar:()=>zr,rapidFilterBarStyles:()=>Hr,rapidFilterBarTemplate:()=>Br,rapidFilterTemplate:()=>Cr,rapidFlexLayout:()=>Nr,rapidFlexLayoutShadowOptions:()=>Ur,rapidFlexLayoutStyles:()=>Er,rapidFlexLayoutTemplate:()=>jr,rapidFlipper:()=>qr,rapidFlipperStyles:()=>Wr,rapidFlipperTemplate:()=>_r,rapidFlyout:()=>eo,rapidFlyoutShadowOptions:()=>Qr,rapidFlyoutStyles:()=>Yr,rapidFlyoutTemplate:()=>Jr,rapidGridLayout:()=>no,rapidGridLayoutItem:()=>mo,rapidGridLayoutItemShadowOptions:()=>yo,rapidGridLayoutItemStyles:()=>fo,rapidGridLayoutItemTemplate:()=>vo,rapidGridLayoutShadowOptions:()=>co,rapidGridLayoutStyles:()=>so,rapidGridLayoutTemplate:()=>io,rapidHorizontalScroll:()=>ko,rapidHorizontalScrollStyles:()=>xo,rapidHorizontalScrollTemplate:()=>So,rapidIcon:()=>Lo,rapidIconShadowOptions:()=>Co,rapidIconStyles:()=>Ro,rapidListbox:()=>Po,rapidListboxOption:()=>Vo,rapidListboxOptionStyles:()=>zo,rapidListboxOptionTemplate:()=>Io,rapidListboxStyles:()=>Ao,rapidListboxTemplate:()=>Ho,rapidMenu:()=>jo,rapidMenuItem:()=>Xo,rapidMenuItemShadowOptions:()=>Wo,rapidMenuItemStyles:()=>Eo,rapidMenuItemTemplate:()=>Uo,rapidMenuStyles:()=>Mo,rapidMenuTemplate:()=>No,rapidModal:()=>Zo,rapidModalShadowOptions:()=>Ko,rapidModalStyles:()=>qo,rapidModalTemplate:()=>Jo,rapidMultiselect:()=>nn,rapidMultiselectShadowOptions:()=>on,rapidNumberField:()=>hn,rapidNumberFieldShadowOptions:()=>gn,rapidNumberFieldStyles:()=>dn,rapidNumberFieldTemplate:()=>pn,rapidProgress:()=>Fn,rapidProgressRing:()=>Tn,rapidProgressRingStyles:()=>wn,rapidProgressRingTemplate:()=>kn,rapidProgressStyles:()=>yn,rapidProgressTemplate:()=>xn,rapidRadio:()=>An,rapidRadioGroup:()=>zn,rapidRadioGroupStyles:()=>Hn,rapidRadioGroupTemplate:()=>Bn,rapidRadioStyles:()=>On,rapidRadioTemplate:()=>Cn,rapidScheduler:()=>Mn,rapidSchedulerCronBuilder:()=>En,rapidSchedulerCronBuilderStyles:()=>Nn,rapidSchedulerCronBuilderTemplate:()=>Gn,rapidSchedulerStyles:()=>In,rapidSchedulerTemplate:()=>$n,rapidSchedulerTimezone:()=>Xn,rapidSchedulerTimezoneStyles:()=>Un,rapidSchedulerTimezoneTemplate:()=>Wn,rapidSearchBar:()=>Kn,rapidSearchBarCombobox:()=>tl,rapidSearchBarComboboxStyles:()=>Qn,rapidSearchBarComboboxTemplate:()=>Zn,rapidSearchBarStyles:()=>qn,rapidSearchBarTemplate:()=>Yn,rapidSectionNavigator:()=>ol,rapidSectionNavigatorStyles:()=>al,rapidSegmentedControl:()=>cl,rapidSegmentedControlShadowOptions:()=>sl,rapidSegmentedControlStyles:()=>nl,rapidSegmentedControlTemplate:()=>ll,rapidSegmentedItem:()=>bl,rapidSegmentedItemShadowOptions:()=>hl,rapidSegmentedItemStyles:()=>ul,rapidSegmentedItemTemplate:()=>pl,rapidSelect:()=>xl,rapidSelectStyles:()=>vl,rapidSelectTemplate:()=>fl,rapidSkeleton:()=>kl,rapidSkeletonStyles:()=>Sl,rapidSkeletonTemplate:()=>Fl,rapidSlider:()=>Ol,rapidSliderLabel:()=>Hl,rapidSliderLabelStyles:()=>Cl,rapidSliderLabelTemplate:()=>Ll,rapidSliderStyles:()=>Rl,rapidSliderTemplate:()=>Dl,rapidSnackbar:()=>$l,rapidSnackbarShadowOptions:()=>zl,rapidSnackbarStyles:()=>Bl,rapidStepper:()=>Wl,rapidStepperStyles:()=>jl,rapidStepperTab:()=>Yl,rapidStepperTabPanel:()=>Ql,rapidStepperTabPanelTemplate:()=>Jl,rapidStepperTabStyles:()=>_l,rapidStepperTabTemplate:()=>Xl,rapidStepperTemplate:()=>El,rapidSwitch:()=>ri,rapidSwitchStyles:()=>Zl,rapidSwitchTemplate:()=>ei,rapidTab:()=>ii,rapidTabPanel:()=>ui,rapidTabPanelStyles:()=>si,rapidTabPanelTemplate:()=>di,rapidTabStyles:()=>oi,rapidTabTemplate:()=>ni,rapidTabs:()=>bi,rapidTabsStyles:()=>pi,rapidTabsTemplate:()=>gi,rapidTextArea:()=>xi,rapidTextAreaStyles:()=>vi,rapidTextAreaTemplate:()=>fi,rapidTextField:()=>ki,rapidTextFieldStyles:()=>Si,rapidTextFieldTemplate:()=>Fi,rapidToast:()=>Ci,rapidToastShadowOptions:()=>Ti,rapidToastStyles:()=>Ri,rapidToastTemplate:()=>l.foundationToastTemplate,rapidToolbar:()=>Bi,rapidToolbarStyles:()=>Li,rapidToolbarTemplate:()=>Ai,rapidTooltip:()=>Ii,rapidTooltipStyles:()=>Pi,rapidTreeItem:()=>Gi,rapidTreeItemStyles:()=>$i,rapidTreeItemTemplate:()=>Vi,rapidTreeView:()=>Wi,rapidTreeViewStyles:()=>ji,rapidTreeViewTemplate:()=>Ei,rapidUrlInput:()=>Yi,rapidUrlInputStyles:()=>_i,rapidUrlInputTemplate:()=>Xi,registerRapidDesignSystem:()=>fs,robotoFontFaces:()=>ns,robotoFontFamily:()=>is,sellColor:()=>D,seriousNotifyColor:()=>H,strokeWidth:()=>i.strokeWidth,strokeWidthValue:()=>be,successColor:()=>v,swatchFromColor:()=>hi,typeRampBaseFontSize:()=>i.typeRampBaseFontSize,typeRampBaseFontSizeValue:()=>we,typeRampBaseLineHeight:()=>i.typeRampBaseLineHeight,typeRampBaseLineHeightValue:()=>ke,typeRampMinus1FontSize:()=>i.typeRampMinus1FontSize,typeRampMinus1FontSizeValue:()=>Re,typeRampMinus1LineHeight:()=>i.typeRampMinus1LineHeight,typeRampMinus1LineHeightValue:()=>De,typeRampMinus2FontSize:()=>i.typeRampMinus2FontSize,typeRampMinus2FontSizeValue:()=>Te,typeRampMinus2LineHeight:()=>i.typeRampMinus2LineHeight,typeRampMinus2LineHeightValue:()=>Oe,typeRampPlus1FontSize:()=>i.typeRampPlus1FontSize,typeRampPlus1FontSizeValue:()=>Ce,typeRampPlus1LineHeight:()=>i.typeRampPlus1LineHeight,typeRampPlus1LineHeightValue:()=>Le,typeRampPlus2FontSize:()=>i.typeRampPlus2FontSize,typeRampPlus2FontSizeValue:()=>Ae,typeRampPlus2LineHeight:()=>i.typeRampPlus2LineHeight,typeRampPlus2LineHeightValue:()=>He,typeRampPlus3FontSize:()=>i.typeRampPlus3FontSize,typeRampPlus3FontSizeValue:()=>Be,typeRampPlus3LineHeight:()=>i.typeRampPlus3LineHeight,typeRampPlus3LineHeightValue:()=>Pe,typeRampPlus4FontSize:()=>i.typeRampPlus4FontSize,typeRampPlus4FontSizeValue:()=>ze,typeRampPlus4LineHeight:()=>i.typeRampPlus4LineHeight,typeRampPlus4LineHeightValue:()=>Ie,typeRampPlus5FontSize:()=>i.typeRampPlus5FontSize,typeRampPlus5FontSizeValue:()=>$e,typeRampPlus5LineHeight:()=>i.typeRampPlus5LineHeight,typeRampPlus5LineHeightValue:()=>Ve,typeRampPlus6FontSize:()=>i.typeRampPlus6FontSize,typeRampPlus6FontSizeValue:()=>Me,typeRampPlus6LineHeight:()=>i.typeRampPlus6LineHeight,typeRampPlus6LineHeightValue:()=>Ne,warningColor:()=>x,zeroDropdownMenuTemplate:()=>l.foundationDropdownMenuTemplate,zeroFilterStyles:()=>l.foundationFilterStyles,zeroModalTemplate:()=>l.foundationModalTemplate});var r={};a.r(r),a.d(r,{accentFillActive:()=>i.accentFillActive,accentFillActiveDelta:()=>i.accentFillActiveDelta,accentFillFocus:()=>i.accentFillFocus,accentFillFocusDelta:()=>i.accentFillFocusDelta,accentFillHover:()=>i.accentFillHover,accentFillHoverDelta:()=>i.accentFillHoverDelta,accentFillRest:()=>i.accentFillRest,accentFillRestDelta:()=>i.accentFillRestDelta,accentForegroundActive:()=>i.accentForegroundActive,accentForegroundActiveDelta:()=>i.accentForegroundActiveDelta,accentForegroundFocus:()=>i.accentForegroundFocus,accentForegroundFocusDelta:()=>i.accentForegroundFocusDelta,accentForegroundHover:()=>i.accentForegroundHover,accentForegroundHoverDelta:()=>i.accentForegroundHoverDelta,accentForegroundRest:()=>i.accentForegroundRest,accentForegroundRestDelta:()=>i.accentForegroundRestDelta,accentPalette:()=>i.accentPalette,baseHeightMultiplier:()=>i.baseHeightMultiplier,baseLayerLuminance:()=>i.baseLayerLuminance,bodyFont:()=>i.bodyFont,buyColor:()=>w,controlCornerRadius:()=>i.controlCornerRadius,defaultBuyColor:()=>F,defaultErrorColor:()=>g,defaultInfoColor:()=>O,defaultSellColor:()=>R,defaultSeriousNotifyColor:()=>A,defaultSuccessColor:()=>b,defaultWarningColor:()=>y,density:()=>i.density,designUnit:()=>i.designUnit,direction:()=>i.direction,disabledOpacity:()=>i.disabledOpacity,errorColor:()=>h,fillColor:()=>i.fillColor,focusStrokeInner:()=>i.focusStrokeInner,focusStrokeOuter:()=>i.focusStrokeOuter,focusStrokeWidth:()=>i.focusStrokeWidth,foregroundOnAccentActive:()=>i.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>i.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>i.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>i.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>i.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>i.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>i.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>i.foregroundOnAccentRestLarge,infoColor:()=>C,neutralFillActive:()=>i.neutralFillActive,neutralFillActiveDelta:()=>i.neutralFillActiveDelta,neutralFillFocus:()=>i.neutralFillFocus,neutralFillFocusDelta:()=>i.neutralFillFocusDelta,neutralFillHover:()=>i.neutralFillHover,neutralFillHoverDelta:()=>i.neutralFillHoverDelta,neutralFillInputActive:()=>i.neutralFillInputActive,neutralFillInputActiveDelta:()=>i.neutralFillInputActiveDelta,neutralFillInputFocus:()=>i.neutralFillInputFocus,neutralFillInputFocusDelta:()=>i.neutralFillInputFocusDelta,neutralFillInputHover:()=>i.neutralFillInputHover,neutralFillInputHoverDelta:()=>i.neutralFillInputHoverDelta,neutralFillInputRest:()=>i.neutralFillInputRest,neutralFillInputRestDelta:()=>i.neutralFillInputRestDelta,neutralFillLayerRest:()=>i.neutralFillLayerRest,neutralFillLayerRestDelta:()=>i.neutralFillLayerRestDelta,neutralFillRest:()=>i.neutralFillRest,neutralFillRestDelta:()=>i.neutralFillRestDelta,neutralFillStealthActive:()=>i.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>i.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>i.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>i.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>i.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>i.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>i.neutralFillStealthRest,neutralFillStealthRestDelta:()=>i.neutralFillStealthRestDelta,neutralFillStrongActive:()=>i.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>i.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>i.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>i.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>i.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>i.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>i.neutralFillStrongRest,neutralFillStrongRestDelta:()=>i.neutralFillStrongRestDelta,neutralForegroundHint:()=>i.neutralForegroundHint,neutralForegroundRest:()=>i.neutralForegroundRest,neutralLayer1:()=>i.neutralLayer1,neutralLayer2:()=>i.neutralLayer2,neutralLayer3:()=>i.neutralLayer3,neutralLayer4:()=>i.neutralLayer4,neutralLayerCardContainer:()=>i.neutralLayerCardContainer,neutralLayerFloating:()=>i.neutralLayerFloating,neutralPalette:()=>i.neutralPalette,neutralStrokeActive:()=>i.neutralStrokeActive,neutralStrokeActiveDelta:()=>i.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>i.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>i.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>i.neutralStrokeFocus,neutralStrokeFocusDelta:()=>i.neutralStrokeFocusDelta,neutralStrokeHover:()=>i.neutralStrokeHover,neutralStrokeHoverDelta:()=>i.neutralStrokeHoverDelta,neutralStrokeRest:()=>i.neutralStrokeRest,neutralStrokeRestDelta:()=>i.neutralStrokeRestDelta,sellColor:()=>D,seriousNotifyColor:()=>H,strokeWidth:()=>i.strokeWidth,successColor:()=>v,typeRampBaseFontSize:()=>i.typeRampBaseFontSize,typeRampBaseLineHeight:()=>i.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>i.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>i.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>i.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>i.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>i.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>i.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>i.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>i.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>i.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>i.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>i.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>i.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>i.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>i.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>i.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>i.typeRampPlus6LineHeight,warningColor:()=>x});var o={};a.r(o),a.d(o,{accentFillActiveDeltaValue:()=>V,accentFillFocusDeltaValue:()=>M,accentFillHoverDeltaValue:()=>$,accentFillRestDeltaValue:()=>I,accentForegroundActiveDeltaValue:()=>j,accentForegroundFocusDeltaValue:()=>E,accentForegroundHoverDeltaValue:()=>G,accentForegroundRestDeltaValue:()=>N,accentPaletteValue:()=>B,baseHeightMultiplierValue:()=>fe,baseLayerLuminanceValue:()=>z,bodyFontValue:()=>Fe,controlCornerRadiusValue:()=>ye,densityValue:()=>xe,designTokens:()=>Ge,designUnitValue:()=>Se,directionValue:()=>he,disabledOpacityValue:()=>me,focusStrokeWidthValue:()=>ve,neutralFillActiveDeltaValue:()=>_,neutralFillFocusDeltaValue:()=>X,neutralFillHoverDeltaValue:()=>W,neutralFillInputActiveDeltaValue:()=>J,neutralFillInputFocusDeltaValue:()=>K,neutralFillInputHoverDeltaValue:()=>Y,neutralFillInputRestDeltaValue:()=>q,neutralFillLayerRestDeltaValue:()=>le,neutralFillRestDeltaValue:()=>U,neutralFillStealthActiveDeltaValue:()=>ee,neutralFillStealthFocusDeltaValue:()=>te,neutralFillStealthHoverDeltaValue:()=>Z,neutralFillStealthRestDeltaValue:()=>Q,neutralFillStrongActiveDeltaValue:()=>oe,neutralFillStrongFocusDeltaValue:()=>ne,neutralFillStrongHoverDeltaValue:()=>re,neutralFillStrongRestDeltaValue:()=>ae,neutralPaletteValue:()=>P,neutralStrokeActiveDeltaValue:()=>de,neutralStrokeDividerRestDeltaValue:()=>ue,neutralStrokeFocusDeltaValue:()=>ce,neutralStrokeHoverDeltaValue:()=>se,neutralStrokeRestDeltaValue:()=>ie,prefix:()=>ge,strokeWidthValue:()=>be,typeRampBaseFontSizeValue:()=>we,typeRampBaseLineHeightValue:()=>ke,typeRampMinus1FontSizeValue:()=>Re,typeRampMinus1LineHeightValue:()=>De,typeRampMinus2FontSizeValue:()=>Te,typeRampMinus2LineHeightValue:()=>Oe,typeRampPlus1FontSizeValue:()=>Ce,typeRampPlus1LineHeightValue:()=>Le,typeRampPlus2FontSizeValue:()=>Ae,typeRampPlus2LineHeightValue:()=>He,typeRampPlus3FontSizeValue:()=>Be,typeRampPlus3LineHeightValue:()=>Pe,typeRampPlus4FontSizeValue:()=>ze,typeRampPlus4LineHeightValue:()=>Ie,typeRampPlus5FontSizeValue:()=>$e,typeRampPlus5LineHeightValue:()=>Ve,typeRampPlus6FontSizeValue:()=>Me,typeRampPlus6LineHeightValue:()=>Ne});var n,l=a(15868),i=a(54634),s=a(33681),d=a(83912),c=a(38370);!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",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"}(n||(n={}));const{create:u}=c.DesignToken,p=(0,d.parseColorHexRGB)(n.error),g=i.SwatchRGB.create(p.r,p.g,p.b),h=u("error-color").withDefault(g),m=(0,d.parseColorHexRGB)(n.success),b=i.SwatchRGB.create(m.r,m.g,m.b),v=u("success-color").withDefault(b),f=(0,d.parseColorHexRGB)(n.warning),y=i.SwatchRGB.create(f.r,f.g,f.b),x=u("warning-color").withDefault(y),S=(0,d.parseColorHexRGB)(n.buy),F=i.SwatchRGB.create(S.r,S.g,S.b),w=u("buy-color").withDefault(F),k=(0,d.parseColorHexRGB)(n.sell),R=i.SwatchRGB.create(k.r,k.g,k.b),D=u("sell-color").withDefault(R),T=(0,d.parseColorHexRGB)(n.info),O=i.SwatchRGB.create(T.r,T.g,T.b),C=u("info-color").withDefault(O),L=(0,d.parseColorHexRGB)(n.error),A=i.SwatchRGB.create(L.r,L.g,L.b),H=u("serious-notify-color").withDefault(A),B=(0,l.paletteFromHex)(n.primary),P=(0,l.paletteFromHex)(n.neutral),z=i.StandardLuminance.DarkMode,I=0,$=4,V=-5,M=0,N=0,G=6,j=-4,E=0,U=7,W=10,_=5,X=0,q=0,Y=5,J=0,K=10,Q=0,Z=5,ee=3,te=0,ae=0,re=8,oe=-5,ne=0,le=3,ie=25,se=40,de=16,ce=25,ue=8;var pe=a(85109);const ge="rapid",he=pe.O.ltr,me=.3,be=1,ve=2,fe=10,ye=4,xe=0,Se=4,Fe='"Segoe UI", Arial, Helvetica, sans-serif',we="14px",ke="20px",Re="13px",De="19px",Te="12px",Oe="18px",Ce="15px",Le="21px",Ae="16px",He="22px",Be="17px",Pe="23px",ze="18px",Ie="24px",$e="19px",Ve="25px",Me="20px",Ne="26px",Ge={design_tokens:{color:{accent:{$value:B.source.toColorString(),$type:"color"},neutral:{$value:P.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Fe,$type:"fontFamily"}},typography:{baseFontSize:{$value:we,$type:"dimension"},baseLineHeight:{$value:ke,$type:"dimension"}},mode:{luminance:{$value:z,$type:"number"}},style:{density:{$value:xe,$type:"number"},baseHeightMultiplier:{$value:fe,$type:"number"},borderRadius:{$value:ye,$type:"number"},strokeWidth:{$value:be,$type:"number"}},space:{designUnit:{$value:Se,$type:"number"}}}};class je extends i.DesignSystemProvider{constructor(){super(),(0,l.provideTokens)(r,o,this)}}const Ee=je.compose({baseName:"design-system-provider",template:s.html`
|
|
2
2
|
<slot></slot>
|
|
3
3
|
`}),Ue=(e,t)=>s.css`
|
|
4
4
|
${(0,l.foundationAccordionStyles)(e,t)}
|
|
@@ -2045,5 +2045,5 @@
|
|
|
2045
2045
|
padding-left: calc(var(--design-unit) * 2.5px);
|
|
2046
2046
|
color: var(--neutral-foreground-rest);
|
|
2047
2047
|
}
|
|
2048
|
-
`};let ms=class extends l.FoundationExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],ms.prototype,"styles",void 0),ms=(0,ds.Cg)([(0,s.customElement)({name:"rapid-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],ms);let bs=class extends l.FoundationRuleExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],bs.prototype,"styles",void 0),bs=(0,ds.Cg)([(0,s.customElement)({name:"rapid-rule-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],bs);let vs=class extends l.FoundationValueExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],vs.prototype,"styles",void 0),vs=(0,ds.Cg)([(0,s.customElement)({name:"rapid-value-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],vs);const fs=()=>Ki().register(Ji)},28745:(e,t,a)=>{a.d(t,{v:()=>o});var r=a(
|
|
2048
|
+
`};let ms=class extends l.FoundationExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],ms.prototype,"styles",void 0),ms=(0,ds.Cg)([(0,s.customElement)({name:"rapid-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],ms);let bs=class extends l.FoundationRuleExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],bs.prototype,"styles",void 0),bs=(0,ds.Cg)([(0,s.customElement)({name:"rapid-rule-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],bs);let vs=class extends l.FoundationValueExpressionBuilder{constructor(){super(...arguments),this.styles={customElements:us,customStyles:hs}}};(0,ds.Cg)([s.observable],vs.prototype,"styles",void 0),vs=(0,ds.Cg)([(0,s.customElement)({name:"rapid-value-expression-builder",styles:l.ExpressionBuilderCore.styles,template:l.ExpressionBuilderCore.template})],vs);const fs=()=>Ki().register(Ji)},28745:(e,t,a)=>{a.d(t,{v:()=>o});var r=a(34732);const o=(0,r.createLogger)("foundation-utils")},52945:(e,t,a)=>{a.d(t,{O5:()=>o,fI:()=>n});var r=a(28745);const o=(e,t)=>{var a;let o=document.getElementById(t);if(o)return void r.v.debug(`\n An element with the id of '${t}' already exists and likely has the css rules applied.\n `);const n=null!==(a=document.head)&&void 0!==a?a:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=t,n.appendChild(o);if((e.match(/}/g)||[]).length>1)return o.textContent=e,()=>{o&&n.removeChild(o)};{const t=o.sheet.insertRule(e);return()=>{o&&(o.sheet.deleteRule(t),n.removeChild(o))}}};function n(e){const t=[],a=new Set;return function e(r){const o=Array.from(r.querySelectorAll("*"));t.push(...o),o.forEach(t=>{t.shadowRoot&&!a.has(t.shadowRoot)&&(a.add(t.shadowRoot),e(t.shadowRoot))})}(e),t}},80273:(e,t,a)=>{a.d(t,{Du:()=>s,IT:()=>l,WP:()=>o,f4:()=>i,zz:()=>n});var r=a(52945);const o=(e,t)=>{(0,r.O5)(e,t)};var n,l;!function(e){e.Italic="italic",e.Normal="normal"}(n||(n={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(l||(l={}));const i=(e,t=n.Normal,a=l.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${a};\n`,s={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
|
|
2049
2049
|
//# sourceMappingURL=321.230e5f36cf8e27dd7cd3a3cecd59c6a4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[445],{1510:(e,a,r)=>{r.d(a,{v:()=>o});var t=r(
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[445],{1510:(e,a,r)=>{r.d(a,{v:()=>o});var t=r(34732);const o=(0,t.createLogger)("grid-pro")},3299:(e,a,r)=>{r.d(a,{x:()=>o});var t=r(33681);const o=t.html`
|
|
2
2
|
<template>
|
|
3
3
|
<slot ${(0,t.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
4
4
|
</template>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
date-countdown-completed-message="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.dateCountdownCompletedMessage}}"
|
|
25
25
|
>
|
|
26
26
|
</${e}-status-pill>
|
|
27
|
-
`;class g extends i.FoundationElement{init(e){this.params=e}getGui(){return this}refresh(e){return this.params=e,!0}destroy(){}}(0,t.Cg)([o.observable],g.prototype,"params",void 0);const s=g.compose({baseName:"status-pill-renderer",template:l(),styles:n})},21409:(e,a,r)=>{r.d(a,{S:()=>o,a:()=>i});var t=r(55823);const o=e=>{var a,r,o,n,l,g,s,d,c;return c=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),o.set(this,""),n.set(this,!1),l.set(this,void 0),g.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,t.gn)(this,g,"f")||("dom"===(0,t.gn)(this,r,"f")._key||"foundation-layout-cache"!==(0,t.gn)(this,r,"f")._key&&!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,"disconnect")))}get shouldRunConnect(){if((0,t.gn)(this,g,"f"))return!0;if("dom"===(0,t.gn)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,t.gn)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,t.gn)(this,n,"f")&&((0,t.GG)(this,n,!0,"f"),e="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,t.gn)(this,r,"f")._key&&(0,t.GG)(this,r,(0,t.gn)(this,a,"m",d).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,n=new WeakMap,l=new WeakMap,g=new WeakMap,a=new WeakSet,s=function(e){var a,i;if("foundation-layout"!==(0,t.gn)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const n=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,t.GG)(this,o,null!==(a=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=n,(0,t.GG)(this,l,setTimeout(()=>{(0,t.GG)(this,g,s,"f"),(0,t.gn)(this,g,"f")&&this.disconnectedCallback()},1e4),"f")):"reconnect"===e&&(s=n,(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,l,"f"))),s},d=function e(r){var o;if(!0===r.getRootNode()[i])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(o=r.getRootNode())||void 0===o?void 0:o.host))return{_key:"dom"};const n=r.getRootNode().host;if("FoundationLayoutMain"===n.class){const e=n;return e._key="foundation-layout",e}return(0,t.gn)(this,a,"m",e).call(this,n)},c},i=Symbol("layout-cache-document")},23201:(e,a,r)=>{function t(e){return{colId:e.field||e.colId||"",hide:e.hide||!1,width:e.width||null,pinned:e.pinned||null,sort:e.sort||null,sortIndex:e.sortIndex||null,aggFunc:e.aggFunc||null,rowGroup:e.rowGroup||!1,rowGroupIndex:e.rowGroupIndex||null,pivot:e.pivot||!1,pivotIndex:e.pivotIndex||null,flex:e.flex||null}}function o(e){return e.map(t)}function i(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}r.d(a,{pr:()=>t,rG:()=>o,yS:()=>i})},24638:(e,a,r)=>{r.d(a,{X:()=>E});var t=r(55823),o=r(96730),i=r(48707),n=r(21281),l=r(34193),g=r(9033),s=r(21409),d=r(52945),c=r(49229),p=r(33681),u=r(90509),h=r(79270),v=r(1510),m=r(35610),w=r(41119),b=r(32610);function f(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";case"enum":return"agSetColumnFilter";default:return"agTextColumnFilter"}}function y(e){switch(e.type){case w.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 w.w.ENUM:return(0,b.O7)(e,f(e.type));case w.w.DATE:case w.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 w.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 z=r(17465),x=r(49874),C=r(40113),k=r(26347),A=r(32808);class S{constructor(e){var a;this.rowData=new Map,this.serverRowsCount=0,this.clientRowsCount=0,this.moreRows=!1,this.calculatedRowsCount=0,this.currentSequenceId=null,this.reloadResourceDataFunc=e.reloadResourceDataFunc,this.errorHandlerFunc=e.errorHandlerFunc,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=this.getResourceParam("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,this.pagingMode=e.pagingMode,this.criteriaOnlyRequest=null!==(a=e.criteriaOnlyRequest)&&void 0!==a&&a}getResourceParam(e){var a,r;return(null===(a=this.resourceParams)||void 0===a?void 0:a.DETAILS)&&"object"==typeof this.resourceParams.DETAILS?this.resourceParams.DETAILS[e]:null===(r=this.resourceParams)||void 0===r?void 0:r[e]}setResourceParam(e,a){var r;(null===(r=this.resourceParams)||void 0===r?void 0:r.DETAILS)&&"object"==typeof this.resourceParams.DETAILS?this.resourceParams.DETAILS[e]=a:this.resourceParams[e]=a}getRows(e){throw new Error("Method not implemented.")}setupFiltering(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=e.request.filterModel,r=Object.keys(a).length>0,t=0===Object.keys(a).length,o=JSON.stringify(a)!==JSON.stringify(this.currentFilterModel);if(o||r){if(t&&this.currentFilterModel)return this.currentFilterModel=null,this.setResourceParam("CRITERIA_MATCH",this.originalCriteriaMatch),void(yield this.refreshDatasource(e));if(o&&r)return this.currentFilterModel=a,this.setResourceParam("CRITERIA_MATCH",this.buildCriteriaMatchFromFilters()),void(yield this.refreshDatasource(e))}})}setupFilteringAndSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){yield this.setupFiltering(e),yield this.setupSorting(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,t.sH)(this,void 0,void 0,function*(){this.destroy(),this.updateResourceParams(e),yield this.reloadResourceDataFunc({criteria:this.getResourceParam("CRITERIA_MATCH"),orderBy:this.getResourceParam("ORDER_BY"),reverse:this.getResourceParam("REVERSE")})})}updateResourceParams(e){void 0!==e.criteria&&(this.originalCriteriaMatch=e.criteria,this.setResourceParam("CRITERIA_MATCH",this.buildCriteriaMatchFromFilters())),void 0!==e.orderBy&&this.setResourceParam("ORDER_BY",e.orderBy),void 0!==e.reverse&&this.setResourceParam("REVERSE",e.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.setResourceParam("CRITERIA_MATCH",this.originalCriteriaMatch);let e=this.getResourceParam("CRITERIA_MATCH");e&&"string"==typeof e&&(e=e.split(";"),this.setResourceParam("CRITERIA_MATCH",e)),e||(e=[],this.setResourceParam("CRITERIA_MATCH",e));return e.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} == '' || ${a} == null)`);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} != '' && ${a} != null)`);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("set").forEach(a=>{var r,t,o;const i=null===(r=this.currentFilterModel)||void 0===r?void 0:r[a],n=null!==(t=null==i?void 0:i.values)&&void 0!==t?t:[];if(!n||0===n.length)return;const l=null===(o=this.resourceColDefs)||void 0===o?void 0:o.find(e=>e.NAME===a);let g;if(null==l?void 0:l.VALID_VALUES)try{g=Array.isArray(l.VALID_VALUES)?l.VALID_VALUES:l.VALID_VALUES.split("|")}catch(e){g=void 0}if(g&&g.length===n.length&&g.every(e=>n.includes(e)))return;const s=n.map(e=>{const r=String(e).replace(/'/g,"\\'");return`${a} == '${r}'`});s.length>0&&e.push(`(${s.join(" || ")})`)}),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){var a;return Object.keys(null!==(a=this.currentFilterModel)&&void 0!==a?a:{}).filter(e=>-1!==this.resourceColDefs.findIndex(a=>a.NAME===e)).filter(a=>this.currentFilterModel[a].filterType===e)}getPageNumber(e,a,r,t=!0){void 0!==r&&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;const o=this.getResourceParam("CRITERIA_MATCH");return this.pagination?(t=o?void 0:Math.min(this.serverRowsCount,this.maxView),o&&(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}getEffectivePagingMode(){return this.pagingMode?"offsetBased"!==this.pagingMode||this.criteriaOnlyRequest?this.pagingMode:(z.v.warn("offsetBased paging mode requires criteriaOnlyRequest support. Falling back to viewBased mode."),"viewBased"):this.criteriaOnlyRequest?"offsetBased":"viewBased"}}(0,t.Cg)([C.N],S.prototype,"auth",void 0),(0,t.Cg)([k.dm],S.prototype,"connect",void 0),(0,t.Cg)([A.k],S.prototype,"uuid",void 0);class D extends S{constructor(e){super(e),this.createDataserverStreamFunc=e.createDataserverStreamFunc}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,t.sH)(this,void 0,void 0,function*(){var r;null===(r=this.dataserverStreamSubscription)||void 0===r||r.unsubscribe(),this.dataserverStreamSubscription=void 0,yield a.refreshDatasource.call(this,e)})}getRows(e){return(0,t.sH)(this,void 0,void 0,function*(){if(yield this.setupFiltering(e),yield this.setupSorting(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&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){if(this.resourceParams.CRITERIA_MATCH&&this.pagination){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:(z.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===n.Go.LOGOFF_ACK||t===n.Go.MSG_NACK)){if(this.errorHandlerFunc){const e=t===n.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Authentication failed for ${this.resourceName}`;this.errorHandlerFunc(e,"connection")}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,l.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)}setupSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;const r=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==r.length||r.length>0){if(0===r.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(r.length>0){const a=r[0].colId,t=r[0].sort,o=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!o){this.calculatedRowsCount=0;const r=(0,x.i)(this.resourceIndexes),t=(0,x.P)(this.resourceIndexes);return z.v.warn(`The FIELD/column (${a}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/`),z.v.debug("Available indexes:",r),z.v.debug("Columns that can be sorted with the available indexes:",t),void e.fail()}if(JSON.stringify(r)!==JSON.stringify(this.currentSortModel))return this.currentSortModel=r,this.resourceParams.ORDER_BY=o.orderBy,this.resourceParams.REVERSE="desc"===t,void(yield this.refreshDatasource(e))}}})}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});return(0,t.sH)(this,void 0,void 0,function*(){var a;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}}var R=r(62051),M=r.n(R);class T extends S{constructor(e){var a,r,t,o,i;super(e),this.discoveredTotalRowCount=null,this.currentNextOffset=0,this.createReqRepRequestFunc=e.createReqRepRequestFunc,this.createReqRepStreamFunc=e.createReqRepStreamFunc,this.onPollingUpdate=e.onPollingUpdateFunc,this.resetPreviousPollResult=e.resetPreviousPollResultFunc,this.usePolling=null!==(a=e.usePolling)&&void 0!==a&&a,this.debouncedCreateStream=M()(e=>this.createPollingStream(e),300);"viewBased"===this.getEffectivePagingMode()?(null===(t=null===(r=e.resourceParams)||void 0===r?void 0:r.DETAILS)||void 0===t?void 0:t.VIEW_NUMBER)||(this.resourceParams.DETAILS.VIEW_NUMBER=this.zeroBasedViewNumber?0:1):(null===(i=null===(o=e.resourceParams)||void 0===o?void 0:o.DETAILS)||void 0===i?void 0:i.OFFSET)||(this.resourceParams.DETAILS.OFFSET=0)}getRows(e){return(0,t.sH)(this,void 0,void 0,function*(){if(yield this.setupFiltering(e),yield this.setupSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);const a=this.getEffectivePagingMode();this.updatePaginationParams(e,a);const r={DETAILS:this.buildRequestDetails(a)},t=yield this.createReqRepRequestFunc(r),o=yield this.determineIsLastView(t,r,a);this.applyServerSideData(e,t,o),this.schedulePollingStream(r)})}updatePaginationParams(e,a){"viewBased"===a?null!==this.currentSequenceId&&this.currentSequenceId>=0&&this.moreRows&&(this.pagination?this.resourceParams.DETAILS.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,void 0,this.zeroBasedViewNumber):this.resourceParams.DETAILS.VIEW_NUMBER+=1):this.currentNextOffset>0&&this.currentNextOffset!==e.request.startRow?this.resourceParams.DETAILS.OFFSET=this.currentNextOffset:this.resourceParams.DETAILS.OFFSET=e.request.startRow}determineIsLastView(e,a,r){return(0,t.sH)(this,void 0,void 0,function*(){var t;const o="MORE_ROWS"in e;let i=!1;if("viewBased"===r){if(o)i=!e.MORE_ROWS;else if(-1!==e.NEXT_VIEW){const r=Object.assign(Object.assign({},a),{DETAILS:Object.assign(Object.assign({},a.DETAILS),{VIEW_NUMBER:e.NEXT_VIEW})}),o=yield this.createReqRepRequestFunc(r);i=-1===o.NEXT_VIEW&&0===(null===(t=o.REPLY)||void 0===t?void 0:t.length)}}else i=o&&!e.MORE_ROWS,"NEXT_OFFSET"in e&&-1!==e.NEXT_OFFSET?this.currentNextOffset=e.NEXT_OFFSET:this.currentNextOffset=0;return i})}schedulePollingStream(e){this.usePolling&&this.createReqRepStreamFunc&&(this.destroyPollingStream(),this.debouncedCreateStream(e))}applyServerSideData(e,a,r){var t,o;const i=a.MESSAGE_TYPE;if(i&&(i===n.Go.LOGOFF_ACK||i===n.Go.MSG_NACK)){if(this.errorHandlerFunc){const e=i===n.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Authentication failed for ${this.resourceName}`;this.errorHandlerFunc(e,"connection")}return void e.fail()}const l=this.getEffectivePagingMode();if(this.moreRows="MORE_ROWS"in a?a.MORE_ROWS:"viewBased"===l?!r&&-1!==a.NEXT_VIEW&&a.NEXT_VIEW>this.resourceParams.DETAILS.VIEW_NUMBER:!r&&-1!==a.NEXT_OFFSET&&a.NEXT_OFFSET>this.resourceParams.DETAILS.OFFSET,!a.REPLY){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}if(this.handleCurrentStreamLoad(a.REPLY),this.currentSequenceId="viewBased"===l?this.resourceParams.DETAILS.VIEW_NUMBER:Math.floor(this.resourceParams.DETAILS.OFFSET/this.maxRows),this.sourceRef=a.SOURCE_REF,!this.moreRows){const a=this.rowData.size;this.discoveredTotalRowCount=e.request.startRow+a}this.pagination?this.serverRowsCount=null!==(t=a.ROWS_COUNT)&&void 0!==t?t:this.rowData.size:this.serverRowsCount+=null!==(o=a.ROWS_COUNT)&&void 0!==o?o:this.rowData.size;const g={rowData:Array.from(this.rowData.values())};g.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=g,e.success(g)}getCorrectRowCount(e){let a;return this.pagination,a=this.moreRows?-1:this.discoveredTotalRowCount||e.request.startRow+this.rowData.size,a}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.`;v.v.error(t);const o=this.uuid.createId();e[this.rowId]=o,a.set(o,e)}),this.rowData=a}setupSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;const r=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==r.length||r.length>0){if(0===r.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.DETAILS.ORDER_BY=void 0,void(yield this.refreshDatasource(e));if(r.length>0){const a=r[0].colId,t=r[0].sort;if(JSON.stringify(r)!==JSON.stringify(this.currentSortModel))return this.currentSortModel=r,this.resourceParams.DETAILS.ORDER_BY=a+("desc"===t?" DESC":" ASC"),void(yield this.refreshDatasource(e))}}})}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,t.sH)(this,void 0,void 0,function*(){this.destroyPollingStream(),this.debouncedCreateStream&&this.debouncedCreateStream.cancel(),this.discoveredTotalRowCount=null,this.currentNextOffset=0,this.resourceParams.DETAILS.VIEW_NUMBER=this.zeroBasedViewNumber?0:1,this.resourceParams.DETAILS.OFFSET=0,yield a.refreshDatasource.call(this,e)})}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});return(0,t.sH)(this,void 0,void 0,function*(){this.destroyPollingStream(),this.debouncedCreateStream&&this.debouncedCreateStream.cancel(),yield e.destroy.call(this)})}createPollingStream(e){return(0,t.sH)(this,void 0,void 0,function*(){try{this.destroyPollingStream(),this.currentStreamParams=e;const{stream:a,datasource:r}=yield this.createReqRepStreamFunc(e);this.reqRepPollingStream=a,this.reqRepPollingDatasource=r,this.reqRepPollingSubscription=this.reqRepPollingStream.subscribe({next:a=>{this.currentStreamParams&&JSON.stringify(this.currentStreamParams)===JSON.stringify(e)&&this.onPollingUpdate&&this.onPollingUpdate(a)},error:e=>{var a;v.v.error("Polling stream error:",e),this.errorHandlerFunc&&this.errorHandlerFunc((null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR)||(null==e?void 0:e.message),"stream")}}),v.v.debug("Polling stream created for params:",e)}catch(e){v.v.error("Failed to create polling stream:",e)}})}destroyPollingStream(){this.reqRepPollingSubscription&&(this.reqRepPollingSubscription.unsubscribe(),this.reqRepPollingSubscription=void 0,v.v.debug("Polling subscription destroyed")),this.reqRepPollingDatasource&&(this.reqRepPollingDatasource.destroy(),this.reqRepPollingDatasource=void 0,v.v.debug("Polling datasource destroyed")),this.reqRepPollingStream=void 0,this.currentStreamParams=void 0,this.resetPreviousPollResult&&this.resetPreviousPollResult()}buildRequestDetails(e){const a={CRITERIA_MATCH:this.resourceParams.DETAILS.CRITERIA_MATCH,MAX_ROWS:this.resourceParams.DETAILS.MAX_ROWS,ORDER_BY:this.resourceParams.DETAILS.ORDER_BY};return"viewBased"===e?Object.assign(Object.assign({},a),{VIEW_NUMBER:this.resourceParams.DETAILS.VIEW_NUMBER}):Object.assign(Object.assign({},a),{OFFSET:this.resourceParams.DETAILS.OFFSET})}}let E=class extends((0,s.S)(m.ML)){constructor(){super(...arguments),this.zeroBasedViewNumber=!1,this.liveUpdates=!1,this.request={},this.sortIndicatorCSSDestroy=null,this.previousPollResult=new Map}resourceNameChanged(e,a){e&&e!==a&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){yield this.restart()}))}criteriaChanged(e,a){const r=e!==(0,o.Q)(a,";");this.ssrmDatasource&&r&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){yield this.ssrmDatasource.refreshDatasource({criteria:a})}))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;p.DOM.queueUpdate(()=>{e&&(this.init(),this.subscribeToConnection())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){e&&(yield this.destroy(),this.unsubscribeFromConnection())}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;if(this.datasource.destroy(),null===(a=this.liveUpdatesStream)||void 0===a||a.unsubscribe(),this.liveUpdatesStream=void 0,this.$emit(h.c.cacheFilterConfig),this.clearRowData(null),this.setDisconnected(!1),this.$emit(h.c.refreshServerSide,{purge:!0}),e){const a=Object.assign(Object.assign({},this.datasourceOptions()),e);(yield this.initializeDatasource(a,!0,!1))||(this.$emit(h.c.setServerSideDatasource,{datasource:null}),v.v.error("Genesis Datasource re-init failed on filtering/sorting."))}else this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),this.$emit(h.c.setServerSideDatasource,{datasource:null}),this.$emit(h.c.loadingStarted),yield this.init()})}applyServerSideSortIndicatorStyling(){this.removeServerSideSortIndicatorStyling(),this.$emit(h.c.addGridCssClass,{className:"grid-pro-server-side"}),this.sortIndicatorCSSDestroy=(0,d.O5)('\n .grid-pro-server-side .ag-header-cell-sortable .ag-sort-indicator-container {\n opacity: 1 !important;\n visibility: visible !important;\n }\n \n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-container {\n opacity: 0.4 !important;\n }\n \n .grid-pro-server-side .ag-header-cell-sorted .ag-sort-indicator-container {\n opacity: 1 !important;\n }\n \n .grid-pro-server-side .ag-sort-ascending-icon::before,\n .grid-pro-server-side .ag-sort-descending-icon::before,\n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-icon::before {\n font-family: var(--ag-icon-font-family, agGridAlpine) !important;\n font-size: var(--ag-icon-size, 16px) !important;\n color: var(--ag-header-foreground-color, var(--ag-foreground-color)) !important;\n }\n \n .grid-pro-server-side .ag-sort-ascending-icon::before {\n content: "\\e90d" !important; /* AG Grid sort up icon */\n }\n \n .grid-pro-server-side .ag-sort-descending-icon::before {\n content: "\\e90c" !important; /* AG Grid sort down icon */\n }\n \n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-icon::before {\n content: "\\e90b" !important; /* AG Grid sort icon */\n opacity: 0.6 !important;\n }\n \n /* Ensure the sort indicator is always visible for sortable columns in server-side mode */\n .grid-pro-server-side .ag-header-cell-sortable .ag-sort-indicator-icon {\n display: inline-block !important;\n }\n',"grid-pro-server-side-sort")}removeServerSideSortIndicatorStyling(){this.$emit(h.c.removeGridCssClass,{className:"grid-pro-server-side"}),this.sortIndicatorCSSDestroy&&(this.sortIndicatorCSSDestroy(),this.sortIndicatorCSSDestroy=null)}init(){return(0,t.sH)(this,void 0,void 0,function*(){const e=Object.assign({getRowId:e=>e.data?String(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,unSortIcon:!0},rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{},onPaginationChanged:e=>this.onPaginationChanged(e)},this.deferredGridOptions);this.$emit(h.c.initialize,{options:e,keepColDefsOnClearRowData:this.keepColDefsOnClearRowData}),this.addEventListener(h.c.ready,e=>(0,t.sH)(this,void 0,void 0,function*(){const{pagination:a}=e.detail;this.pagination=a;if(!(yield this.initializeDatasource(this.datasourceOptions(),!0,!1)))return v.v.debug(`Genesis Datasource init failed for ${this.resourceName}`),this.clearRowData(),void this.setDisconnected(!0);this.$emit(u.V.dataInit),this.setDisconnected(!1),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes,this.datasource.availableSortableFields);const r=(0,i.X)(this.datasource.originalFieldDef),t=yield this.getAgColumnDefs(r);if(this.$emit(h.c.schemaUpdated,{schema:t,metadata:r}),this.isRequestServer){const e=!this.isSnapshot&&!this.disablePolling;this.ssrmDatasource=new T({createReqRepRequestFunc:this.createReqRepRequest.bind(this),createReqRepStreamFunc:e?this.createReqRepStream.bind(this):void 0,onPollingUpdateFunc:e?this.applyReqRepPollingUpdate.bind(this):void 0,resetPreviousPollResultFunc:e?this.resetPreviousPollResult.bind(this):void 0,usePolling:e,reloadResourceDataFunc:this.reloadResourceData.bind(this),errorHandlerFunc:this.handleErrors.bind(this),resourceName:this.resourceName,resourceParams:this.datasource.requestOnlyParams,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber,pagingMode:this.pagingMode,criteriaOnlyRequest:this.datasource.criteriaOnlyRequest})}else this.ssrmDatasource=new D({createDataserverStreamFunc:this.createDataserverStream.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),errorHandlerFunc:this.handleErrors.bind(this),resourceName:this.resourceName,resourceParams:this.datasource.dataserverOnlyParams,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber});this.$emit(h.c.setServerSideDatasource,{datasource:this.ssrmDatasource}),this.$emit(h.c.filtersRestored),this.applyServerSideSortIndicatorStyling()}),{once:!0}),this.resourceName||this.handleErrors("Application not connected or invalid resource name, datasource will not work.","unknown")})}onPaginationChanged(e){var a;this.ssrmDatasource&&(this.ssrmDatasource.isNewPageSize=null!==(a=e.newPage)&&void 0!==a&&a)}destroy(){return(0,t.sH)(this,void 0,void 0,function*(){var e,a;this.datasource.destroy(),null===(e=this.liveUpdatesStream)||void 0===e||e.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(),this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),null===(a=this.pollingDatasource)||void 0===a||a.destroy(),this.ssrmDatasource=void 0),this.removeServerSideSortIndicatorStyling(),this.$emit(h.c.setServerSideDatasource,{datasource:null}),this.$emit(h.c.refreshServerSide,{purge:!0})})}restart(){return(0,t.sH)(this,void 0,void 0,function*(){yield this.destroy(),yield this.init()})}clearRowData(e=!0){this.rowData=new Map,e&&this.$emit(h.c.dataCleared,{includeSchema:!0}),this.transactionData={remove:[]},this.$emit(h.c.applyServerSideTransaction,{transaction:this.transactionData}),this.transactionData=void 0}getResourceIndexes(e,a){const r=new Map,t=new Set;if(null==e||e.forEach(e=>{const a=e.FIELDS.split(" ");r.set(e.NAME,a),a.forEach(e=>t.add(e))}),a&&a.length>0&&a.forEach(e=>t.add(e)),0===r.size&&t.size>0)r.set("SORTABLE_FIELDS",Array.from(t));else if(a&&a.length>0&&r.size>0){const e=new Set;r.forEach(a=>{a.forEach(a=>e.add(a))});const t=a.filter(a=>!e.has(a));t.length>0&&r.set("SORTABLE_FIELDS",t)}return r}createReqRepRequest(){return(0,t.sH)(this,arguments,void 0,function*(e=null){return yield this.datasource.snapshot(e)})}createReqRepStream(){return(0,t.sH)(this,arguments,void 0,function*(e=null){var a,r,t,o,i,n,l,g;const s=null!==(r=null===(a=null==e?void 0:e.DETAILS)||void 0===a?void 0:a.OFFSET)&&void 0!==r?r:0,d=null!==(o=null===(t=null==e?void 0:e.DETAILS)||void 0===t?void 0:t.MAX_ROWS)&&void 0!==o?o:this.maxRows,c=d+s,p=Object.assign(Object.assign({},this.datasourceOptions()),{criteria:null!==(n=null===(i=null==e?void 0:e.DETAILS)||void 0===i?void 0:i.CRITERIA_MATCH)&&void 0!==n?n:this.criteria,maxRows:c,orderBy:null!==(g=null===(l=null==e?void 0:e.DETAILS)||void 0===l?void 0:l.ORDER_BY)&&void 0!==g?g:this.orderBy});v.v.debug("Creating polling datasource for all loaded rows:",{currentOffset:s,baseMaxRows:d,totalRowsToFetch:c});if(yield this.pollingDatasource.init(p,!0,!0))return{stream:this.pollingDatasource.stream,datasource:this.pollingDatasource};v.v.error("Polling datasource init failed")})}resetPreviousPollResult(){this.previousPollResult.clear(),v.v.debug("Previous poll result cleared")}applyReqRepPollingUpdate(e){var a;if(!this.ssrmDatasource||!e.REPLY)return;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void v.v.error("received invalid RequestServerResult for polling update",e);if(0===this.previousPollResult.size)return r.forEach(e=>{this.previousPollResult.set(e[this.rowId],e)}),void v.v.debug("First poll result stored for future comparison",{rowCount:this.previousPollResult.size});const t=new Map;r.forEach(e=>{t.set(e[this.rowId],e)});const o=[],i=[],n=[];r.forEach(e=>{const a=e[this.rowId];if(this.previousPollResult.has(a)){const r=this.previousPollResult.get(a);this.serializer.serialize(r)!==this.serializer.serialize(e)&&o.push(e)}else i.push(e)}),this.previousPollResult.forEach((e,a)=>{t.has(a)||n.push(e)}),(o.length>0||n.length>0||i.length>0)&&(this.previousPollResult=t,v.v.debug("Applying reqRep polling update via applyServerSideTransaction:",{added:i.length,updated:o.length,removed:n.length,totalInPoll:t.size}),this.$emit(h.c.applyServerSideTransaction,{transaction:{add:i,update:o,remove:n}}))}createDataserverStream(){return(0,t.sH)(this,arguments,void 0,function*(e=null){if(this.liveUpdates){const a=e=>(0,t.sH)(this,void 0,void 0,function*(){var a,r,t,o,i,g,s,d;if(e.MESSAGE_TYPE===n.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const n=(0,l.d)(e);if(this.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(n.inserts),this.handleStreamUpdates(n.updates),this.handleStreamDeletes(n.deletes),e.SEQUENCE_ID>1){const e=(null!==(r=null===(a=n.inserts)||void 0===a?void 0:a.length)&&void 0!==r?r:0)-(null!==(o=null===(t=n.deletes)||void 0===t?void 0:t.length)&&void 0!==o?o:0);this.ssrmDatasource.serverRowsCount+=e;const l=(null!==(g=null===(i=n.inserts)||void 0===i?void 0:i.length)&&void 0!==g?g:0)-(null!==(d=null===(s=n.deletes)||void 0===s?void 0:s.length)&&void 0!==d?d:0);this.ssrmDatasource.clientRowsCount+=l,this.applyAllTransactions()}}}),r=e=>{var a;v.v.error(e),this.handleErrors((null===(a=e.receivedMessage)||void 0===a?void 0:a.ERROR)||e.message,"stream")};this.liveUpdatesStream=this.connect.stream(this.resourceName,()=>{},r,null!=e?e:this.datasource.dataserverOnlyParams).subscribe(e=>a(e))}return yield this.datasource.startStream(),this.datasource.stream})}getAgColumnDefs(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.generateColumnDefsFromMetadata(e,y,f);return a.forEach(e=>{e.sortable=[].concat(...this.indexes.values()).includes(e.field),this.datasource.criteriaOnlyRequest&&(e.filter=this.datasource.availableCriteriaFields.includes(e.field)?e.filter:null)}),a})}applyTransaction(e){this.$emit(h.c.applyServerSideTransaction,{transaction:e})}loadMore(){throw new Error("loadMore() method is not supported for server-side datasource")}};(0,t.Cg)([c.b_],E.prototype,"serializer",void 0),(0,t.Cg)([g.yW],E.prototype,"pollingDatasource",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"zero-based-view-number"})],E.prototype,"zeroBasedViewNumber",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"live-updates"})],E.prototype,"liveUpdates",void 0),(0,t.Cg)([(0,p.attr)({attribute:"paging-mode"})],E.prototype,"pagingMode",void 0),(0,t.Cg)([p.observable],E.prototype,"request",void 0),E=(0,t.Cg)([(0,p.customElement)({name:"grid-pro-server-side-datasource"})],E)},26062:(e,a,r)=>{r.d(a,{D:()=>k});var t=r(55823),o=r(96730),i=r(39087),n=r(21281),l=r(34193),g=r(21409),s=r(33681),d=r(97156),c=r(56607),p=r(10629),u=r(41392),h=r(92453),v=r(2773),m=r(35610),w=r(41119),b=r(32610);function f(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";case"string":case"enum":return"agMultiColumnFilter";default:return"agTextColumnFilter"}}function y(e){switch(e.type){case w.w.DATE:case w.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};case w.w.ENUM:return(0,b.O7)(e,f(e.type))}}var z=r(1510),x=r(79270),C=r(90509);let k=class extends((0,g.S)(m.ML)){constructor(){super(...arguments),this.cachedRowArray=[],this.transactionData={add:[],remove:[],update:[],addIndex:0},this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0,this._lastMoreRows=!1,this._isMoreRowsResult=!1,this._nextOffset=0,this._loadMoreCount=0}criteriaChanged(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=e!==(0,o.Q)(a,m.NC);this.datasource.initialized&&r&&(yield 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;s.DOM.queueUpdate(()=>{e&&(this.init(),this.subscribeToConnection())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate(()=>{e&&(this.destroy(),this.unsubscribeFromConnection())})}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){return(0,t.sH)(this,void 0,void 0,function*(){this.$emit(x.c.initialize,{keepColDefsOnClearRowData:e,options:Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions)}),this.addEventListener(x.c.ready,e=>(0,t.sH)(this,void 0,void 0,function*(){const{pagination:a}=e.detail;this.pagination=a,yield this.loadResourceData()}),{once:!0});this.updateSub=this.update.pipe((0,p.i)(1),(0,u.B)(600),(0,h.M)(e=>z.v.debug("filters (debounced): ",e))).subscribe(e=>{this.reloadResourceData()})})}destroy(){var e;z.v.debug("GridProGenesisDatasource.destroy()",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._sourceRef=void 0,this.clearRowData(),this._lastMoreRows=!1,this._isMoreRowsResult=!1,this._nextOffset=0,this._loadMoreCount=0,this.$emit(x.c.destroy),this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new d.t(new Map),this.setDisconnected(!1),this.datasource.destroy()}deinit(){z.v.debug("GridProGenesisDatasource.deinit()",this.resourceName),this.destroy()}reset(){z.v.debug("GridProGenesisDatasource.reset()",this.resourceName),this.destroy()}restart(){return(0,t.sH)(this,void 0,void 0,function*(){this.destroy(),yield this.init(this.keepColDefsOnClearRowData)})}refreshRows(){this.updateCachedRowArray(),this.emitDataLoaded(this.cachedRowArray)}clearRowData(e=!0){this.rowData=new Map,this.cachedRowArray=[],this.transactionData={add:[],remove:[],update:[],addIndex:0},this.$emit(x.c.dataCleared,{includeSchema:e&&!this.keepColDefsOnClearRowData})}setRowData(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=yield this.getAgColumnDefs(this.datasource.fieldMetadata);a&&this.$emit(x.c.schemaUpdated,{schema:a,metadata:this.datasource.fieldMetadata});const r=this.rowDataMapper?this.rowDataMapper(e):e;this.$emit(x.c.filtersRestored),this.transactionData={add:r?[...r]:[],remove:[],update:[],addIndex:0},this.emitDataChanged(this.transactionData),this.updateCachedRowArray(),this.requiresFullRowDataAndColDefs=!1})}updateCachedRowArray(){this.cachedRowArray=Array.from(this.rowData.values())}emitDataLoaded(e,a=!1){this.$emit(x.c.dataLoaded,{data:e,isInitialLoad:a})}emitDataChanged(e){this.$emit(x.c.dataChanged,{changes:e}),0!==this.rowData.size||e.add.length||e.update.length||e.remove.length?this.$emit(x.c.loadingFinished):this.$emit(x.c.noDataAvailable)}reloadResourceData(){return(0,t.sH)(this,void 0,void 0,function*(){z.v.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this._nextOffset=0,this._loadMoreCount=0,this.datasource.updateLoadMoreCount(0),this.datasource.stream=void 0,this.clearRowData(null),this.$emit(x.c.loadingStarted),this.setDisconnected(!1),yield this.loadResourceData(null)})}loadResourceData(){return(0,t.sH)(this,arguments,void 0,function*(e=!0){const a=e||!this.datasource.initialized;try{if(!(yield this.initializeDatasource(this.datasourceOptions(),a,!1)))return z.v.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(C.V.dataInit),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}z.v.debug(`starting stream for ${this.resourceName}`),yield this.datasource.startStream(),this.dataSub=this.datasource.stream.pipe((0,v.W)(e=>{var a;return this.handleErrors((null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR)||(null==e?void 0:e.message)||e,"stream"),c.w})).subscribe(e=>{this._sourceRef=e.SOURCE_REF;const a="MORE_ROWS"in e,r="ROWS_COUNT"in e,t=this.datasource.resourceType===i.v.REQUEST_SERVER&&"NEXT_OFFSET"in e;this._isMoreRowsResult=a&&!r,t&&(this._nextOffset=e.NEXT_OFFSET),(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR,"criteria");const o=e.MESSAGE_TYPE;if(o&&o===n.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`,"connection"),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,a&&this.updateLoadMoreStatus(e.MORE_ROWS,e.SOURCE_REF),e.ROW){const r=(0,l.d)(e);if(this.handleStreamResult(r),a&&e.MORE_ROWS!==this._lastMoreRows){const a={moreRows:e.MORE_ROWS,sourceRef:e.SOURCE_REF};this.$emit(C.V.moreRowsChanged,a),this._lastMoreRows=e.MORE_ROWS}}else this.handleStreamResult(e)})}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),z.v.error(a),this.handleErrors(a,"unknown")}})}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,l.d)(e).inserts:e.inserts}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}updateLoadMoreStatus(e,a){this.$emit(x.c.moreDataAvailable,{hasMoreData:e,sourceRef:a})}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 z.v.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.`;z.v.error(a),e=!0}break}this.rowData.set(r,a)}if(e)return void this.destroy();this.updateCachedRowArray();const a=this.rowData.size>0?this.cachedRowArray:t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(a)}const o=[];this.updateCachedRowArray();const i=this.cachedRowArray.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.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.emitDataChanged(this.transactionData),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs)return null===(a=e.inserts)||void 0===a||a.forEach(e=>{this.rowData.set(e[this.rowId],e)}),this.updateCachedRowArray(),this.setRowData(this.cachedRowArray),void this.handleSizeChanged(r,this.rowData.size);this.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.emitDataChanged(this.transactionData),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,t.sH)(this,void 0,void 0,function*(){return this.generateColumnDefsFromMetadata(e,y,f)})}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){this.emitDataChanged(e)}handleSizeChanged(e,a){e!==a&&this.$emit(C.V.sizeChanged,{value:a,oldValue:e})}handleStreamInserts(e=[]){super.handleStreamInserts(e,this._isMoreRowsResult?this.cachedRowArray.length:0),this.updateCachedRowArray()}handleStreamUpdates(e=[]){super.handleStreamUpdates(e),this.updateCachedRowArray()}handleStreamDeletes(e=[]){super.handleStreamDeletes(e),this.updateCachedRowArray()}loadMore(){switch(this.datasource.resourceType){case i.v.DATASERVER:let e;this.viewNumber?(this._loadMoreCount=+this.viewNumber+1,e=this._loadMoreCount):this._loadMoreCount+=1,this.connect.getMoreRows(this._sourceRef,e);break;case i.v.REQUEST_SERVER:this._loadMoreCount+=1}this.datasource.updateLoadMoreCount(this._loadMoreCount)}};(0,t.Cg)([(0,s.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],k.prototype,"keepColDefsOnClearRowData",void 0),k=(0,t.Cg)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],k)},28745:(e,a,r)=>{r.d(a,{v:()=>o});var t=r(81288);const o=(0,t.createLogger)("foundation-utils")},30335:(e,a,r)=>{r.d(a,{B:()=>i,P:()=>n});var t=r(33681),o=r(68858);const i=t.css`
|
|
27
|
+
`;class g extends i.FoundationElement{init(e){this.params=e}getGui(){return this}refresh(e){return this.params=e,!0}destroy(){}}(0,t.Cg)([o.observable],g.prototype,"params",void 0);const s=g.compose({baseName:"status-pill-renderer",template:l(),styles:n})},21409:(e,a,r)=>{r.d(a,{S:()=>o,a:()=>i});var t=r(55823);const o=e=>{var a,r,o,n,l,g,s,d,c;return c=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),o.set(this,""),n.set(this,!1),l.set(this,void 0),g.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,t.gn)(this,g,"f")||("dom"===(0,t.gn)(this,r,"f")._key||"foundation-layout-cache"!==(0,t.gn)(this,r,"f")._key&&!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,"disconnect")))}get shouldRunConnect(){if((0,t.gn)(this,g,"f"))return!0;if("dom"===(0,t.gn)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,t.gn)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,t.gn)(this,n,"f")&&((0,t.GG)(this,n,!0,"f"),e="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,t.gn)(this,r,"f")._key&&(0,t.GG)(this,r,(0,t.gn)(this,a,"m",d).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,n=new WeakMap,l=new WeakMap,g=new WeakMap,a=new WeakSet,s=function(e){var a,i;if("foundation-layout"!==(0,t.gn)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const n=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,t.GG)(this,o,null!==(a=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=n,(0,t.GG)(this,l,setTimeout(()=>{(0,t.GG)(this,g,s,"f"),(0,t.gn)(this,g,"f")&&this.disconnectedCallback()},1e4),"f")):"reconnect"===e&&(s=n,(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,l,"f"))),s},d=function e(r){var o;if(!0===r.getRootNode()[i])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(o=r.getRootNode())||void 0===o?void 0:o.host))return{_key:"dom"};const n=r.getRootNode().host;if("FoundationLayoutMain"===n.class){const e=n;return e._key="foundation-layout",e}return(0,t.gn)(this,a,"m",e).call(this,n)},c},i=Symbol("layout-cache-document")},23201:(e,a,r)=>{function t(e){return{colId:e.field||e.colId||"",hide:e.hide||!1,width:e.width||null,pinned:e.pinned||null,sort:e.sort||null,sortIndex:e.sortIndex||null,aggFunc:e.aggFunc||null,rowGroup:e.rowGroup||!1,rowGroupIndex:e.rowGroupIndex||null,pivot:e.pivot||!1,pivotIndex:e.pivotIndex||null,flex:e.flex||null}}function o(e){return e.map(t)}function i(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}r.d(a,{pr:()=>t,rG:()=>o,yS:()=>i})},24638:(e,a,r)=>{r.d(a,{X:()=>E});var t=r(55823),o=r(96730),i=r(48707),n=r(21281),l=r(34193),g=r(9033),s=r(21409),d=r(52945),c=r(49229),p=r(33681),u=r(90509),h=r(79270),v=r(1510),m=r(35610),w=r(41119),b=r(32610);function f(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";case"enum":return"agSetColumnFilter";default:return"agTextColumnFilter"}}function y(e){switch(e.type){case w.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 w.w.ENUM:return(0,b.O7)(e,f(e.type));case w.w.DATE:case w.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 w.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 z=r(17465),x=r(49874),C=r(40113),k=r(26347),A=r(32808);class S{constructor(e){var a;this.rowData=new Map,this.serverRowsCount=0,this.clientRowsCount=0,this.moreRows=!1,this.calculatedRowsCount=0,this.currentSequenceId=null,this.reloadResourceDataFunc=e.reloadResourceDataFunc,this.errorHandlerFunc=e.errorHandlerFunc,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=this.getResourceParam("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,this.pagingMode=e.pagingMode,this.criteriaOnlyRequest=null!==(a=e.criteriaOnlyRequest)&&void 0!==a&&a}getResourceParam(e){var a,r;return(null===(a=this.resourceParams)||void 0===a?void 0:a.DETAILS)&&"object"==typeof this.resourceParams.DETAILS?this.resourceParams.DETAILS[e]:null===(r=this.resourceParams)||void 0===r?void 0:r[e]}setResourceParam(e,a){var r;(null===(r=this.resourceParams)||void 0===r?void 0:r.DETAILS)&&"object"==typeof this.resourceParams.DETAILS?this.resourceParams.DETAILS[e]=a:this.resourceParams[e]=a}getRows(e){throw new Error("Method not implemented.")}setupFiltering(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=e.request.filterModel,r=Object.keys(a).length>0,t=0===Object.keys(a).length,o=JSON.stringify(a)!==JSON.stringify(this.currentFilterModel);if(o||r){if(t&&this.currentFilterModel)return this.currentFilterModel=null,this.setResourceParam("CRITERIA_MATCH",this.originalCriteriaMatch),void(yield this.refreshDatasource(e));if(o&&r)return this.currentFilterModel=a,this.setResourceParam("CRITERIA_MATCH",this.buildCriteriaMatchFromFilters()),void(yield this.refreshDatasource(e))}})}setupFilteringAndSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){yield this.setupFiltering(e),yield this.setupSorting(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,t.sH)(this,void 0,void 0,function*(){this.destroy(),this.updateResourceParams(e),yield this.reloadResourceDataFunc({criteria:this.getResourceParam("CRITERIA_MATCH"),orderBy:this.getResourceParam("ORDER_BY"),reverse:this.getResourceParam("REVERSE")})})}updateResourceParams(e){void 0!==e.criteria&&(this.originalCriteriaMatch=e.criteria,this.setResourceParam("CRITERIA_MATCH",this.buildCriteriaMatchFromFilters())),void 0!==e.orderBy&&this.setResourceParam("ORDER_BY",e.orderBy),void 0!==e.reverse&&this.setResourceParam("REVERSE",e.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.setResourceParam("CRITERIA_MATCH",this.originalCriteriaMatch);let e=this.getResourceParam("CRITERIA_MATCH");e&&"string"==typeof e&&(e=e.split(";"),this.setResourceParam("CRITERIA_MATCH",e)),e||(e=[],this.setResourceParam("CRITERIA_MATCH",e));return e.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} == '' || ${a} == null)`);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} != '' && ${a} != null)`);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("set").forEach(a=>{var r,t,o;const i=null===(r=this.currentFilterModel)||void 0===r?void 0:r[a],n=null!==(t=null==i?void 0:i.values)&&void 0!==t?t:[];if(!n||0===n.length)return;const l=null===(o=this.resourceColDefs)||void 0===o?void 0:o.find(e=>e.NAME===a);let g;if(null==l?void 0:l.VALID_VALUES)try{g=Array.isArray(l.VALID_VALUES)?l.VALID_VALUES:l.VALID_VALUES.split("|")}catch(e){g=void 0}if(g&&g.length===n.length&&g.every(e=>n.includes(e)))return;const s=n.map(e=>{const r=String(e).replace(/'/g,"\\'");return`${a} == '${r}'`});s.length>0&&e.push(`(${s.join(" || ")})`)}),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){var a;return Object.keys(null!==(a=this.currentFilterModel)&&void 0!==a?a:{}).filter(e=>-1!==this.resourceColDefs.findIndex(a=>a.NAME===e)).filter(a=>this.currentFilterModel[a].filterType===e)}getPageNumber(e,a,r,t=!0){void 0!==r&&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;const o=this.getResourceParam("CRITERIA_MATCH");return this.pagination?(t=o?void 0:Math.min(this.serverRowsCount,this.maxView),o&&(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}getEffectivePagingMode(){return this.pagingMode?"offsetBased"!==this.pagingMode||this.criteriaOnlyRequest?this.pagingMode:(z.v.warn("offsetBased paging mode requires criteriaOnlyRequest support. Falling back to viewBased mode."),"viewBased"):this.criteriaOnlyRequest?"offsetBased":"viewBased"}}(0,t.Cg)([C.N],S.prototype,"auth",void 0),(0,t.Cg)([k.dm],S.prototype,"connect",void 0),(0,t.Cg)([A.k],S.prototype,"uuid",void 0);class D extends S{constructor(e){super(e),this.createDataserverStreamFunc=e.createDataserverStreamFunc}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,t.sH)(this,void 0,void 0,function*(){var r;null===(r=this.dataserverStreamSubscription)||void 0===r||r.unsubscribe(),this.dataserverStreamSubscription=void 0,yield a.refreshDatasource.call(this,e)})}getRows(e){return(0,t.sH)(this,void 0,void 0,function*(){if(yield this.setupFiltering(e),yield this.setupSorting(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&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){if(this.resourceParams.CRITERIA_MATCH&&this.pagination){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:(z.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===n.Go.LOGOFF_ACK||t===n.Go.MSG_NACK)){if(this.errorHandlerFunc){const e=t===n.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Authentication failed for ${this.resourceName}`;this.errorHandlerFunc(e,"connection")}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,l.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)}setupSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;const r=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==r.length||r.length>0){if(0===r.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(r.length>0){const a=r[0].colId,t=r[0].sort,o=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!o){this.calculatedRowsCount=0;const r=(0,x.i)(this.resourceIndexes),t=(0,x.P)(this.resourceIndexes);return z.v.warn(`The FIELD/column (${a}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/`),z.v.debug("Available indexes:",r),z.v.debug("Columns that can be sorted with the available indexes:",t),void e.fail()}if(JSON.stringify(r)!==JSON.stringify(this.currentSortModel))return this.currentSortModel=r,this.resourceParams.ORDER_BY=o.orderBy,this.resourceParams.REVERSE="desc"===t,void(yield this.refreshDatasource(e))}}})}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});return(0,t.sH)(this,void 0,void 0,function*(){var a;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}}var R=r(62051),M=r.n(R);class T extends S{constructor(e){var a,r,t,o,i;super(e),this.discoveredTotalRowCount=null,this.currentNextOffset=0,this.createReqRepRequestFunc=e.createReqRepRequestFunc,this.createReqRepStreamFunc=e.createReqRepStreamFunc,this.onPollingUpdate=e.onPollingUpdateFunc,this.resetPreviousPollResult=e.resetPreviousPollResultFunc,this.usePolling=null!==(a=e.usePolling)&&void 0!==a&&a,this.debouncedCreateStream=M()(e=>this.createPollingStream(e),300);"viewBased"===this.getEffectivePagingMode()?(null===(t=null===(r=e.resourceParams)||void 0===r?void 0:r.DETAILS)||void 0===t?void 0:t.VIEW_NUMBER)||(this.resourceParams.DETAILS.VIEW_NUMBER=this.zeroBasedViewNumber?0:1):(null===(i=null===(o=e.resourceParams)||void 0===o?void 0:o.DETAILS)||void 0===i?void 0:i.OFFSET)||(this.resourceParams.DETAILS.OFFSET=0)}getRows(e){return(0,t.sH)(this,void 0,void 0,function*(){if(yield this.setupFiltering(e),yield this.setupSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);const a=this.getEffectivePagingMode();this.updatePaginationParams(e,a);const r={DETAILS:this.buildRequestDetails(a)},t=yield this.createReqRepRequestFunc(r),o=yield this.determineIsLastView(t,r,a);this.applyServerSideData(e,t,o),this.schedulePollingStream(r)})}updatePaginationParams(e,a){"viewBased"===a?null!==this.currentSequenceId&&this.currentSequenceId>=0&&this.moreRows&&(this.pagination?this.resourceParams.DETAILS.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,void 0,this.zeroBasedViewNumber):this.resourceParams.DETAILS.VIEW_NUMBER+=1):this.currentNextOffset>0&&this.currentNextOffset!==e.request.startRow?this.resourceParams.DETAILS.OFFSET=this.currentNextOffset:this.resourceParams.DETAILS.OFFSET=e.request.startRow}determineIsLastView(e,a,r){return(0,t.sH)(this,void 0,void 0,function*(){var t;const o="MORE_ROWS"in e;let i=!1;if("viewBased"===r){if(o)i=!e.MORE_ROWS;else if(-1!==e.NEXT_VIEW){const r=Object.assign(Object.assign({},a),{DETAILS:Object.assign(Object.assign({},a.DETAILS),{VIEW_NUMBER:e.NEXT_VIEW})}),o=yield this.createReqRepRequestFunc(r);i=-1===o.NEXT_VIEW&&0===(null===(t=o.REPLY)||void 0===t?void 0:t.length)}}else i=o&&!e.MORE_ROWS,"NEXT_OFFSET"in e&&-1!==e.NEXT_OFFSET?this.currentNextOffset=e.NEXT_OFFSET:this.currentNextOffset=0;return i})}schedulePollingStream(e){this.usePolling&&this.createReqRepStreamFunc&&(this.destroyPollingStream(),this.debouncedCreateStream(e))}applyServerSideData(e,a,r){var t,o;const i=a.MESSAGE_TYPE;if(i&&(i===n.Go.LOGOFF_ACK||i===n.Go.MSG_NACK)){if(this.errorHandlerFunc){const e=i===n.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Authentication failed for ${this.resourceName}`;this.errorHandlerFunc(e,"connection")}return void e.fail()}const l=this.getEffectivePagingMode();if(this.moreRows="MORE_ROWS"in a?a.MORE_ROWS:"viewBased"===l?!r&&-1!==a.NEXT_VIEW&&a.NEXT_VIEW>this.resourceParams.DETAILS.VIEW_NUMBER:!r&&-1!==a.NEXT_OFFSET&&a.NEXT_OFFSET>this.resourceParams.DETAILS.OFFSET,!a.REPLY){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}if(this.handleCurrentStreamLoad(a.REPLY),this.currentSequenceId="viewBased"===l?this.resourceParams.DETAILS.VIEW_NUMBER:Math.floor(this.resourceParams.DETAILS.OFFSET/this.maxRows),this.sourceRef=a.SOURCE_REF,!this.moreRows){const a=this.rowData.size;this.discoveredTotalRowCount=e.request.startRow+a}this.pagination?this.serverRowsCount=null!==(t=a.ROWS_COUNT)&&void 0!==t?t:this.rowData.size:this.serverRowsCount+=null!==(o=a.ROWS_COUNT)&&void 0!==o?o:this.rowData.size;const g={rowData:Array.from(this.rowData.values())};g.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=g,e.success(g)}getCorrectRowCount(e){let a;return this.pagination,a=this.moreRows?-1:this.discoveredTotalRowCount||e.request.startRow+this.rowData.size,a}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.`;v.v.error(t);const o=this.uuid.createId();e[this.rowId]=o,a.set(o,e)}),this.rowData=a}setupSorting(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;const r=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==r.length||r.length>0){if(0===r.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.DETAILS.ORDER_BY=void 0,void(yield this.refreshDatasource(e));if(r.length>0){const a=r[0].colId,t=r[0].sort;if(JSON.stringify(r)!==JSON.stringify(this.currentSortModel))return this.currentSortModel=r,this.resourceParams.DETAILS.ORDER_BY=a+("desc"===t?" DESC":" ASC"),void(yield this.refreshDatasource(e))}}})}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,t.sH)(this,void 0,void 0,function*(){this.destroyPollingStream(),this.debouncedCreateStream&&this.debouncedCreateStream.cancel(),this.discoveredTotalRowCount=null,this.currentNextOffset=0,this.resourceParams.DETAILS.VIEW_NUMBER=this.zeroBasedViewNumber?0:1,this.resourceParams.DETAILS.OFFSET=0,yield a.refreshDatasource.call(this,e)})}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});return(0,t.sH)(this,void 0,void 0,function*(){this.destroyPollingStream(),this.debouncedCreateStream&&this.debouncedCreateStream.cancel(),yield e.destroy.call(this)})}createPollingStream(e){return(0,t.sH)(this,void 0,void 0,function*(){try{this.destroyPollingStream(),this.currentStreamParams=e;const{stream:a,datasource:r}=yield this.createReqRepStreamFunc(e);this.reqRepPollingStream=a,this.reqRepPollingDatasource=r,this.reqRepPollingSubscription=this.reqRepPollingStream.subscribe({next:a=>{this.currentStreamParams&&JSON.stringify(this.currentStreamParams)===JSON.stringify(e)&&this.onPollingUpdate&&this.onPollingUpdate(a)},error:e=>{var a;v.v.error("Polling stream error:",e),this.errorHandlerFunc&&this.errorHandlerFunc((null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR)||(null==e?void 0:e.message),"stream")}}),v.v.debug("Polling stream created for params:",e)}catch(e){v.v.error("Failed to create polling stream:",e)}})}destroyPollingStream(){this.reqRepPollingSubscription&&(this.reqRepPollingSubscription.unsubscribe(),this.reqRepPollingSubscription=void 0,v.v.debug("Polling subscription destroyed")),this.reqRepPollingDatasource&&(this.reqRepPollingDatasource.destroy(),this.reqRepPollingDatasource=void 0,v.v.debug("Polling datasource destroyed")),this.reqRepPollingStream=void 0,this.currentStreamParams=void 0,this.resetPreviousPollResult&&this.resetPreviousPollResult()}buildRequestDetails(e){const a={CRITERIA_MATCH:this.resourceParams.DETAILS.CRITERIA_MATCH,MAX_ROWS:this.resourceParams.DETAILS.MAX_ROWS,ORDER_BY:this.resourceParams.DETAILS.ORDER_BY};return"viewBased"===e?Object.assign(Object.assign({},a),{VIEW_NUMBER:this.resourceParams.DETAILS.VIEW_NUMBER}):Object.assign(Object.assign({},a),{OFFSET:this.resourceParams.DETAILS.OFFSET})}}let E=class extends((0,s.S)(m.ML)){constructor(){super(...arguments),this.zeroBasedViewNumber=!1,this.liveUpdates=!1,this.request={},this.sortIndicatorCSSDestroy=null,this.previousPollResult=new Map}resourceNameChanged(e,a){e&&e!==a&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){yield this.restart()}))}criteriaChanged(e,a){const r=e!==(0,o.Q)(a,";");this.ssrmDatasource&&r&&p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){yield this.ssrmDatasource.refreshDatasource({criteria:a})}))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;p.DOM.queueUpdate(()=>{e&&(this.init(),this.subscribeToConnection())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;p.DOM.queueUpdate(()=>(0,t.sH)(this,void 0,void 0,function*(){e&&(yield this.destroy(),this.unsubscribeFromConnection())}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(e){return(0,t.sH)(this,void 0,void 0,function*(){var a;if(this.datasource.destroy(),null===(a=this.liveUpdatesStream)||void 0===a||a.unsubscribe(),this.liveUpdatesStream=void 0,this.$emit(h.c.cacheFilterConfig),this.clearRowData(null),this.setDisconnected(!1),this.$emit(h.c.refreshServerSide,{purge:!0}),e){const a=Object.assign(Object.assign({},this.datasourceOptions()),e);(yield this.initializeDatasource(a,!0,!1))||(this.$emit(h.c.setServerSideDatasource,{datasource:null}),v.v.error("Genesis Datasource re-init failed on filtering/sorting."))}else this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),this.$emit(h.c.setServerSideDatasource,{datasource:null}),this.$emit(h.c.loadingStarted),yield this.init()})}applyServerSideSortIndicatorStyling(){this.removeServerSideSortIndicatorStyling(),this.$emit(h.c.addGridCssClass,{className:"grid-pro-server-side"}),this.sortIndicatorCSSDestroy=(0,d.O5)('\n .grid-pro-server-side .ag-header-cell-sortable .ag-sort-indicator-container {\n opacity: 1 !important;\n visibility: visible !important;\n }\n \n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-container {\n opacity: 0.4 !important;\n }\n \n .grid-pro-server-side .ag-header-cell-sorted .ag-sort-indicator-container {\n opacity: 1 !important;\n }\n \n .grid-pro-server-side .ag-sort-ascending-icon::before,\n .grid-pro-server-side .ag-sort-descending-icon::before,\n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-icon::before {\n font-family: var(--ag-icon-font-family, agGridAlpine) !important;\n font-size: var(--ag-icon-size, 16px) !important;\n color: var(--ag-header-foreground-color, var(--ag-foreground-color)) !important;\n }\n \n .grid-pro-server-side .ag-sort-ascending-icon::before {\n content: "\\e90d" !important; /* AG Grid sort up icon */\n }\n \n .grid-pro-server-side .ag-sort-descending-icon::before {\n content: "\\e90c" !important; /* AG Grid sort down icon */\n }\n \n .grid-pro-server-side .ag-header-cell-sortable:not(.ag-header-cell-sorted) .ag-sort-indicator-icon::before {\n content: "\\e90b" !important; /* AG Grid sort icon */\n opacity: 0.6 !important;\n }\n \n /* Ensure the sort indicator is always visible for sortable columns in server-side mode */\n .grid-pro-server-side .ag-header-cell-sortable .ag-sort-indicator-icon {\n display: inline-block !important;\n }\n',"grid-pro-server-side-sort")}removeServerSideSortIndicatorStyling(){this.$emit(h.c.removeGridCssClass,{className:"grid-pro-server-side"}),this.sortIndicatorCSSDestroy&&(this.sortIndicatorCSSDestroy(),this.sortIndicatorCSSDestroy=null)}init(){return(0,t.sH)(this,void 0,void 0,function*(){const e=Object.assign({getRowId:e=>e.data?String(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,unSortIcon:!0},rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{},onPaginationChanged:e=>this.onPaginationChanged(e)},this.deferredGridOptions);this.$emit(h.c.initialize,{options:e,keepColDefsOnClearRowData:this.keepColDefsOnClearRowData}),this.addEventListener(h.c.ready,e=>(0,t.sH)(this,void 0,void 0,function*(){const{pagination:a}=e.detail;this.pagination=a;if(!(yield this.initializeDatasource(this.datasourceOptions(),!0,!1)))return v.v.debug(`Genesis Datasource init failed for ${this.resourceName}`),this.clearRowData(),void this.setDisconnected(!0);this.$emit(u.V.dataInit),this.setDisconnected(!1),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes,this.datasource.availableSortableFields);const r=(0,i.X)(this.datasource.originalFieldDef),t=yield this.getAgColumnDefs(r);if(this.$emit(h.c.schemaUpdated,{schema:t,metadata:r}),this.isRequestServer){const e=!this.isSnapshot&&!this.disablePolling;this.ssrmDatasource=new T({createReqRepRequestFunc:this.createReqRepRequest.bind(this),createReqRepStreamFunc:e?this.createReqRepStream.bind(this):void 0,onPollingUpdateFunc:e?this.applyReqRepPollingUpdate.bind(this):void 0,resetPreviousPollResultFunc:e?this.resetPreviousPollResult.bind(this):void 0,usePolling:e,reloadResourceDataFunc:this.reloadResourceData.bind(this),errorHandlerFunc:this.handleErrors.bind(this),resourceName:this.resourceName,resourceParams:this.datasource.requestOnlyParams,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber,pagingMode:this.pagingMode,criteriaOnlyRequest:this.datasource.criteriaOnlyRequest})}else this.ssrmDatasource=new D({createDataserverStreamFunc:this.createDataserverStream.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),errorHandlerFunc:this.handleErrors.bind(this),resourceName:this.resourceName,resourceParams:this.datasource.dataserverOnlyParams,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber});this.$emit(h.c.setServerSideDatasource,{datasource:this.ssrmDatasource}),this.$emit(h.c.filtersRestored),this.applyServerSideSortIndicatorStyling()}),{once:!0}),this.resourceName||this.handleErrors("Application not connected or invalid resource name, datasource will not work.","unknown")})}onPaginationChanged(e){var a;this.ssrmDatasource&&(this.ssrmDatasource.isNewPageSize=null!==(a=e.newPage)&&void 0!==a&&a)}destroy(){return(0,t.sH)(this,void 0,void 0,function*(){var e,a;this.datasource.destroy(),null===(e=this.liveUpdatesStream)||void 0===e||e.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(),this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),null===(a=this.pollingDatasource)||void 0===a||a.destroy(),this.ssrmDatasource=void 0),this.removeServerSideSortIndicatorStyling(),this.$emit(h.c.setServerSideDatasource,{datasource:null}),this.$emit(h.c.refreshServerSide,{purge:!0})})}restart(){return(0,t.sH)(this,void 0,void 0,function*(){yield this.destroy(),yield this.init()})}clearRowData(e=!0){this.rowData=new Map,e&&this.$emit(h.c.dataCleared,{includeSchema:!0}),this.transactionData={remove:[]},this.$emit(h.c.applyServerSideTransaction,{transaction:this.transactionData}),this.transactionData=void 0}getResourceIndexes(e,a){const r=new Map,t=new Set;if(null==e||e.forEach(e=>{const a=e.FIELDS.split(" ");r.set(e.NAME,a),a.forEach(e=>t.add(e))}),a&&a.length>0&&a.forEach(e=>t.add(e)),0===r.size&&t.size>0)r.set("SORTABLE_FIELDS",Array.from(t));else if(a&&a.length>0&&r.size>0){const e=new Set;r.forEach(a=>{a.forEach(a=>e.add(a))});const t=a.filter(a=>!e.has(a));t.length>0&&r.set("SORTABLE_FIELDS",t)}return r}createReqRepRequest(){return(0,t.sH)(this,arguments,void 0,function*(e=null){return yield this.datasource.snapshot(e)})}createReqRepStream(){return(0,t.sH)(this,arguments,void 0,function*(e=null){var a,r,t,o,i,n,l,g;const s=null!==(r=null===(a=null==e?void 0:e.DETAILS)||void 0===a?void 0:a.OFFSET)&&void 0!==r?r:0,d=null!==(o=null===(t=null==e?void 0:e.DETAILS)||void 0===t?void 0:t.MAX_ROWS)&&void 0!==o?o:this.maxRows,c=d+s,p=Object.assign(Object.assign({},this.datasourceOptions()),{criteria:null!==(n=null===(i=null==e?void 0:e.DETAILS)||void 0===i?void 0:i.CRITERIA_MATCH)&&void 0!==n?n:this.criteria,maxRows:c,orderBy:null!==(g=null===(l=null==e?void 0:e.DETAILS)||void 0===l?void 0:l.ORDER_BY)&&void 0!==g?g:this.orderBy});v.v.debug("Creating polling datasource for all loaded rows:",{currentOffset:s,baseMaxRows:d,totalRowsToFetch:c});if(yield this.pollingDatasource.init(p,!0,!0))return{stream:this.pollingDatasource.stream,datasource:this.pollingDatasource};v.v.error("Polling datasource init failed")})}resetPreviousPollResult(){this.previousPollResult.clear(),v.v.debug("Previous poll result cleared")}applyReqRepPollingUpdate(e){var a;if(!this.ssrmDatasource||!e.REPLY)return;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void v.v.error("received invalid RequestServerResult for polling update",e);if(0===this.previousPollResult.size)return r.forEach(e=>{this.previousPollResult.set(e[this.rowId],e)}),void v.v.debug("First poll result stored for future comparison",{rowCount:this.previousPollResult.size});const t=new Map;r.forEach(e=>{t.set(e[this.rowId],e)});const o=[],i=[],n=[];r.forEach(e=>{const a=e[this.rowId];if(this.previousPollResult.has(a)){const r=this.previousPollResult.get(a);this.serializer.serialize(r)!==this.serializer.serialize(e)&&o.push(e)}else i.push(e)}),this.previousPollResult.forEach((e,a)=>{t.has(a)||n.push(e)}),(o.length>0||n.length>0||i.length>0)&&(this.previousPollResult=t,v.v.debug("Applying reqRep polling update via applyServerSideTransaction:",{added:i.length,updated:o.length,removed:n.length,totalInPoll:t.size}),this.$emit(h.c.applyServerSideTransaction,{transaction:{add:i,update:o,remove:n}}))}createDataserverStream(){return(0,t.sH)(this,arguments,void 0,function*(e=null){if(this.liveUpdates){const a=e=>(0,t.sH)(this,void 0,void 0,function*(){var a,r,t,o,i,g,s,d;if(e.MESSAGE_TYPE===n.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const n=(0,l.d)(e);if(this.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(n.inserts),this.handleStreamUpdates(n.updates),this.handleStreamDeletes(n.deletes),e.SEQUENCE_ID>1){const e=(null!==(r=null===(a=n.inserts)||void 0===a?void 0:a.length)&&void 0!==r?r:0)-(null!==(o=null===(t=n.deletes)||void 0===t?void 0:t.length)&&void 0!==o?o:0);this.ssrmDatasource.serverRowsCount+=e;const l=(null!==(g=null===(i=n.inserts)||void 0===i?void 0:i.length)&&void 0!==g?g:0)-(null!==(d=null===(s=n.deletes)||void 0===s?void 0:s.length)&&void 0!==d?d:0);this.ssrmDatasource.clientRowsCount+=l,this.applyAllTransactions()}}}),r=e=>{var a;v.v.error(e),this.handleErrors((null===(a=e.receivedMessage)||void 0===a?void 0:a.ERROR)||e.message,"stream")};this.liveUpdatesStream=this.connect.stream(this.resourceName,()=>{},r,null!=e?e:this.datasource.dataserverOnlyParams).subscribe(e=>a(e))}return yield this.datasource.startStream(),this.datasource.stream})}getAgColumnDefs(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.generateColumnDefsFromMetadata(e,y,f);return a.forEach(e=>{e.sortable=[].concat(...this.indexes.values()).includes(e.field),this.datasource.criteriaOnlyRequest&&(e.filter=this.datasource.availableCriteriaFields.includes(e.field)?e.filter:null)}),a})}applyTransaction(e){this.$emit(h.c.applyServerSideTransaction,{transaction:e})}loadMore(){throw new Error("loadMore() method is not supported for server-side datasource")}};(0,t.Cg)([c.b_],E.prototype,"serializer",void 0),(0,t.Cg)([g.yW],E.prototype,"pollingDatasource",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"zero-based-view-number"})],E.prototype,"zeroBasedViewNumber",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"live-updates"})],E.prototype,"liveUpdates",void 0),(0,t.Cg)([(0,p.attr)({attribute:"paging-mode"})],E.prototype,"pagingMode",void 0),(0,t.Cg)([p.observable],E.prototype,"request",void 0),E=(0,t.Cg)([(0,p.customElement)({name:"grid-pro-server-side-datasource"})],E)},26062:(e,a,r)=>{r.d(a,{D:()=>k});var t=r(55823),o=r(96730),i=r(39087),n=r(21281),l=r(34193),g=r(21409),s=r(33681),d=r(97156),c=r(56607),p=r(10629),u=r(41392),h=r(92453),v=r(2773),m=r(35610),w=r(41119),b=r(32610);function f(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";case"string":case"enum":return"agMultiColumnFilter";default:return"agTextColumnFilter"}}function y(e){switch(e.type){case w.w.DATE:case w.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};case w.w.ENUM:return(0,b.O7)(e,f(e.type))}}var z=r(1510),x=r(79270),C=r(90509);let k=class extends((0,g.S)(m.ML)){constructor(){super(...arguments),this.cachedRowArray=[],this.transactionData={add:[],remove:[],update:[],addIndex:0},this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0,this._lastMoreRows=!1,this._isMoreRowsResult=!1,this._nextOffset=0,this._loadMoreCount=0}criteriaChanged(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=e!==(0,o.Q)(a,m.NC);this.datasource.initialized&&r&&(yield 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;s.DOM.queueUpdate(()=>{e&&(this.init(),this.subscribeToConnection())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate(()=>{e&&(this.destroy(),this.unsubscribeFromConnection())})}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){return(0,t.sH)(this,void 0,void 0,function*(){this.$emit(x.c.initialize,{keepColDefsOnClearRowData:e,options:Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions)}),this.addEventListener(x.c.ready,e=>(0,t.sH)(this,void 0,void 0,function*(){const{pagination:a}=e.detail;this.pagination=a,yield this.loadResourceData()}),{once:!0});this.updateSub=this.update.pipe((0,p.i)(1),(0,u.B)(600),(0,h.M)(e=>z.v.debug("filters (debounced): ",e))).subscribe(e=>{this.reloadResourceData()})})}destroy(){var e;z.v.debug("GridProGenesisDatasource.destroy()",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._sourceRef=void 0,this.clearRowData(),this._lastMoreRows=!1,this._isMoreRowsResult=!1,this._nextOffset=0,this._loadMoreCount=0,this.$emit(x.c.destroy),this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new d.t(new Map),this.setDisconnected(!1),this.datasource.destroy()}deinit(){z.v.debug("GridProGenesisDatasource.deinit()",this.resourceName),this.destroy()}reset(){z.v.debug("GridProGenesisDatasource.reset()",this.resourceName),this.destroy()}restart(){return(0,t.sH)(this,void 0,void 0,function*(){this.destroy(),yield this.init(this.keepColDefsOnClearRowData)})}refreshRows(){this.updateCachedRowArray(),this.emitDataLoaded(this.cachedRowArray)}clearRowData(e=!0){this.rowData=new Map,this.cachedRowArray=[],this.transactionData={add:[],remove:[],update:[],addIndex:0},this.$emit(x.c.dataCleared,{includeSchema:e&&!this.keepColDefsOnClearRowData})}setRowData(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=yield this.getAgColumnDefs(this.datasource.fieldMetadata);a&&this.$emit(x.c.schemaUpdated,{schema:a,metadata:this.datasource.fieldMetadata});const r=this.rowDataMapper?this.rowDataMapper(e):e;this.$emit(x.c.filtersRestored),this.transactionData={add:r?[...r]:[],remove:[],update:[],addIndex:0},this.emitDataChanged(this.transactionData),this.updateCachedRowArray(),this.requiresFullRowDataAndColDefs=!1})}updateCachedRowArray(){this.cachedRowArray=Array.from(this.rowData.values())}emitDataLoaded(e,a=!1){this.$emit(x.c.dataLoaded,{data:e,isInitialLoad:a})}emitDataChanged(e){this.$emit(x.c.dataChanged,{changes:e}),0!==this.rowData.size||e.add.length||e.update.length||e.remove.length?this.$emit(x.c.loadingFinished):this.$emit(x.c.noDataAvailable)}reloadResourceData(){return(0,t.sH)(this,void 0,void 0,function*(){z.v.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this._nextOffset=0,this._loadMoreCount=0,this.datasource.updateLoadMoreCount(0),this.datasource.stream=void 0,this.clearRowData(null),this.$emit(x.c.loadingStarted),this.setDisconnected(!1),yield this.loadResourceData(null)})}loadResourceData(){return(0,t.sH)(this,arguments,void 0,function*(e=!0){const a=e||!this.datasource.initialized;try{if(!(yield this.initializeDatasource(this.datasourceOptions(),a,!1)))return z.v.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(C.V.dataInit),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}z.v.debug(`starting stream for ${this.resourceName}`),yield this.datasource.startStream(),this.dataSub=this.datasource.stream.pipe((0,v.W)(e=>{var a;return this.handleErrors((null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR)||(null==e?void 0:e.message)||e,"stream"),c.w})).subscribe(e=>{this._sourceRef=e.SOURCE_REF;const a="MORE_ROWS"in e,r="ROWS_COUNT"in e,t=this.datasource.resourceType===i.v.REQUEST_SERVER&&"NEXT_OFFSET"in e;this._isMoreRowsResult=a&&!r,t&&(this._nextOffset=e.NEXT_OFFSET),(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR,"criteria");const o=e.MESSAGE_TYPE;if(o&&o===n.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`,"connection"),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,a&&this.updateLoadMoreStatus(e.MORE_ROWS,e.SOURCE_REF),e.ROW){const r=(0,l.d)(e);if(this.handleStreamResult(r),a&&e.MORE_ROWS!==this._lastMoreRows){const a={moreRows:e.MORE_ROWS,sourceRef:e.SOURCE_REF};this.$emit(C.V.moreRowsChanged,a),this._lastMoreRows=e.MORE_ROWS}}else this.handleStreamResult(e)})}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),z.v.error(a),this.handleErrors(a,"unknown")}})}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,l.d)(e).inserts:e.inserts}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}updateLoadMoreStatus(e,a){this.$emit(x.c.moreDataAvailable,{hasMoreData:e,sourceRef:a})}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 z.v.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.`;z.v.error(a),e=!0}break}this.rowData.set(r,a)}if(e)return void this.destroy();this.updateCachedRowArray();const a=this.rowData.size>0?this.cachedRowArray:t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(a)}const o=[];this.updateCachedRowArray();const i=this.cachedRowArray.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.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.emitDataChanged(this.transactionData),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs)return null===(a=e.inserts)||void 0===a||a.forEach(e=>{this.rowData.set(e[this.rowId],e)}),this.updateCachedRowArray(),this.setRowData(this.cachedRowArray),void this.handleSizeChanged(r,this.rowData.size);this.transactionData={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.emitDataChanged(this.transactionData),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,t.sH)(this,void 0,void 0,function*(){return this.generateColumnDefsFromMetadata(e,y,f)})}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){this.emitDataChanged(e)}handleSizeChanged(e,a){e!==a&&this.$emit(C.V.sizeChanged,{value:a,oldValue:e})}handleStreamInserts(e=[]){super.handleStreamInserts(e,this._isMoreRowsResult?this.cachedRowArray.length:0),this.updateCachedRowArray()}handleStreamUpdates(e=[]){super.handleStreamUpdates(e),this.updateCachedRowArray()}handleStreamDeletes(e=[]){super.handleStreamDeletes(e),this.updateCachedRowArray()}loadMore(){switch(this.datasource.resourceType){case i.v.DATASERVER:let e;this.viewNumber?(this._loadMoreCount=+this.viewNumber+1,e=this._loadMoreCount):this._loadMoreCount+=1,this.connect.getMoreRows(this._sourceRef,e);break;case i.v.REQUEST_SERVER:this._loadMoreCount+=1}this.datasource.updateLoadMoreCount(this._loadMoreCount)}};(0,t.Cg)([(0,s.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],k.prototype,"keepColDefsOnClearRowData",void 0),k=(0,t.Cg)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],k)},28745:(e,a,r)=>{r.d(a,{v:()=>o});var t=r(34732);const o=(0,t.createLogger)("foundation-utils")},30335:(e,a,r)=>{r.d(a,{B:()=>i,P:()=>n});var t=r(33681),o=r(68858);const i=t.css`
|
|
28
28
|
.overlay {
|
|
29
29
|
position: absolute;
|
|
30
30
|
inset: 0;
|
|
@@ -8370,7 +8370,7 @@
|
|
|
8370
8370
|
${n}
|
|
8371
8371
|
${l}
|
|
8372
8372
|
${g}
|
|
8373
|
-
`},49874:(e,a,r)=>{function t(e){const a=[];for(const[r]of e)r&&a.push(r);return a}function o(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}r.d(a,{P:()=>o,i:()=>t})},50103:(e,a,r)=>{r.d(a,{w:()=>t});const t=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},51266:(e,a,r)=>{r.d(a,{LU:()=>_,RB:()=>ae,Z$:()=>ee,cF:()=>$});var t=r(55823),o=r(29310),i=r(44210),n=r(84646),l=r(6884),g=r(21409),s=r(17190),d=r(52945),c=r(20633),p=r(33681),u=r(38370),h=r(31679),v=r(88047),m=r(62051),w=r.n(m),b=r(56943),f=r(49255),y=r(56182),z=r(48072),x=r(48075),C=r(43352),k=r(67489),A=r(39604),S=r(60905),D=r(46255),R=r(19511),M=r(80879),T=r(64315),E=r(63296),N=r(24638),O=r(18070),I=r(46374),L=r(90509),P=r(26062),F=r(79270),j=r(32610),B=r(98884),U=r(82128),G=r(55365),H=r(53397),Y=r(49104),Q=r(19060),W=r(52540),V=r(88863),q=r(71964),J=r(73203),K=r(23201),X=r(1510),Z=r(50103);(0,c.N)(P.D,E.L,N.X,b.O,T.G),i.syG.registerModules([n.n7,o.Q]);class $ extends((0,g.S)(u.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,h.x)((0,G.eL)(a),a),this.insertFontFace(a)}getfilterModel(){return(0,t.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,t.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.cachedTotalColumnWidth=null,this.columnCount=0,this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.sizeColumnsToContent=!1,this.sizeColumnsToFit=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.defaultColumnConfig=[],this.gridFontFace=I.qh,this.columnComponentName="grid-pro-column",this.theme=G.mJ.alpine,this.themeMode="dark",this.pagination=!1,this.statusBarConfig=G.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.eventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=j.zI.reduce((e,a)=>(e[a.toLowerCase()]=a,e[(0,Z.w)(a)]=a,e),{});const e=this.hideDatasourceError.bind(this);this.eventHandlers.push([L.V.dataInit,e],[j.yY.datasourceErrorClose,e],[O.L.error,this.handleBaseDatasourceError.bind(this)],[O.L.connected,e],[F.c.initialize,this.handleInitialize.bind(this)],[F.c.dataLoaded,this.handleDataLoaded.bind(this)],[F.c.dataChanged,this.handleDataChanged.bind(this)],[F.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[F.c.dataCleared,this.handleDataCleared.bind(this)],[F.c.loadingStarted,this.handleLoadingStarted.bind(this)],[F.c.loadingFinished,this.handleLoadingFinished.bind(this)],[F.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[F.c.filtersRestored,this.handleFiltersRestored.bind(this)],[F.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[F.c.error,this.handleDatasourceError.bind(this)],[F.c.destroy,this.handleDatasourceDestroy.bind(this)],[F.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[F.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[F.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[F.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[F.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[F.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)])}addEventListener(e,a,r){super.addEventListener(e,a,r),i.kNx.PUBLIC_EVENTS.includes(e)&&(this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e))}addGridEventListener(e){this.registeredGridEvents.has(e)||(this.registeredGridEvents.add(e),this.gridApi.addEventListener(e,a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}handleBaseDatasourceError(e){const a={detail:{message:e.detail.message},type:j.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:a.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==j.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,s.j)(this,e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.eventHandlers.forEach(([e,a])=>{this.addEventListener(e,a)}),this.shouldRunConnect&&(j.zI.forEach(e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback((0,Z.w)(e),void 0,a)},enumerable:!0,configurable:!0})}),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:l.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.eventHandlers.forEach(([e,a])=>{this.removeEventListener(e,a)}),p.DOM.queueUpdate(()=>{e&&(this.initialised=!1,this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.invalidateColumnWidthCache(),this.registeredGridEvents.clear())})}handleInitialize(e){const{options:a,keepColDefsOnClearRowData:r}=e.detail;let t;r&&(t=this.gridApi.getColumnDefs(),this.columnState=this.columnApi.getColumnState());const o=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t&&{columnDefs:t}),a);this.gridOptions=Object.assign({},o),this.initGrid()}handleDataLoaded(e){const{data:a}=e.detail;this.gridApi&&this.gridApi.setRowData(a)}handleDataChanged(e){var a,r,t;const{changes:o}=e.detail;if(this.gridApi){if((null===(a=o.add)||void 0===a?void 0:a.length)>0)if(this.asyncAdd)this.gridApi.applyTransactionAsync({add:o.add,addIndex:this.addIndex},e=>{this.flashAddedCells(null==e?void 0:e.add)});else{const e=this.gridApi.applyTransaction({add:o.add,addIndex:this.addIndex});this.flashAddedCells(null==e?void 0:e.add)}(null===(r=o.update)||void 0===r?void 0:r.length)>0&&(this.asyncUpdate?this.gridApi.applyTransactionAsync({update:o.update}):this.gridApi.applyTransaction({update:o.update})),(null===(t=o.remove)||void 0===t?void 0:t.length)>0&&(this.asyncRemove?this.gridApi.applyTransactionAsync({remove:o.remove}):this.gridApi.applyTransaction({remove:o.remove}))}}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,t.sH)(this,void 0,void 0,function*(){const{schema:a,metadata:r}=e.detail,t=this.gridApi.getColumnDefs();if(!t||0===t.length){const e=r.map(e=>{var r;return Object.assign(Object.assign({},a.find(a=>a.field===e.name)),null===(r=this.gridApi)||void 0===r?void 0:r.getColumnDef(e.name))}).map(e=>Object.assign(Object.assign({},e),{cellRenderer:this.autoCellRendererByType?e.cellRenderer:void 0,cellEditor:this.autoCellRendererByType?e.cellEditor:void 0})),t=yield this.mergeAllColumnDefsAndStates(e,!0);t&&(t.forEach(e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)}),this.gridApi.setColumnDefs(t))}})}handleDataCleared(e){var a,r;const{includeSchema:t}=e.detail;this.gridApi&&(this.isServerSide||(this.asyncAdd||this.asyncUpdate||this.asyncRemove)&&(null===(r=(a=this.gridApi).flushAsyncTransactions)||void 0===r||r.call(a)),t&&this.gridApi.setColumnDefs([]),this.isServerSide||(this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0})))}handleLoadingStarted(){this.gridApi&&this.gridApi.showLoadingOverlay()}handleLoadingFinished(){this.gridApi&&this.gridApi.hideOverlay()}handleNoDataAvailable(){this.gridApi&&this.gridApi.showNoRowsOverlay()}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var a,r,t,o;const{hasMoreData:i,sourceRef:n}=e.detail;if(!this.gridApi)return;const l=null===(r=(a=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(a,G.k7.loadMore);l&&(null===(o=(t=l).updateParams)||void 0===o||o.call(t,{moreRows:i,sourceRef:n}))}handleDatasourceError(e){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:a}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:a})}handleSetServerSideDatasource(e){const{datasource:a}=e.detail;this.gridApi&&this.gridApi.setServerSideDatasource(a)}handleAddGridCssClass(e){var a;const{className:r}=e.detail,t=(null===(a=this.gridSlot)||void 0===a?void 0:a.parentElement)||this;t&&t.classList.add(r)}handleRemoveGridCssClass(e){var a;const{className:r}=e.detail,t=(null===(a=this.gridSlot)||void 0===a?void 0:a.parentElement)||this;t&&t.classList.remove(r)}handleApplyServerSideTransaction(e){const{transaction:a,async:r,callback:t}=e.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(a,t);else{const e=this.gridApi.applyServerSideTransaction(a);t&&t(e)}}combineAllGridComponents(e){const a={[G.IX.action]:k.eA,[G.IX.actionsMenu]:A.cN,[G.IX.boolean]:S._Y,[G.IX.editable]:D.YM,[G.IX.statusPill]:R.N7,[G.IX.select]:M.gs,[G.IX.selectEditor]:x._Q,[G.IX.numberEditor]:z.Z0,[G.IX.multiselectEditor]:y.pZ,[G.IX.dateEditor]:f.S8,[G.IX.stringEditor]:C.XJ,[G.k7.labelValue]:W.k,[G.k7.loadMore]:Y.s,[G.k7.pagination]:Q.h,[G.k7.reload]:V.W,[G.k7.rowCount]:q.i};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,a,r,t;try{if(!this.initialised||!this.gridApi)return[];const o=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===o||"multiple"===o)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(a=this.gridApi)||void 0===a?void 0:a.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(r=this.gridOptions)||void 0===r?void 0:r.enableRangeSelection)){const e=null===(t=this.gridApi)||void 0===t?void 0:t.getFocusedCell();if(e){const a=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==a?void 0:a.data)return[a.data]}}return[]}catch(e){return X.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const a=this.gridApi.getCellRanges();if(0===a.length)return[];const r=[];return a.forEach(e=>{const a=e.startRow.rowIndex,t=e.endRow.rowIndex;for(let e=a;e<=t;e+=1){const a=this.gridApi.getDisplayedRowAtIndex(e);(null==a?void 0:a.data)&&!r.some(e=>e===a.data)&&r.push(a.data)}}),r}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var a,r;if(!this.gridApi)return void X.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const t=null===(r=(a=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(a,G.k7.labelValue);t&&"function"==typeof t.updateParams?t.updateParams(e):X.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},j.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const a=0===e.filter(e=>{if(e.hide)return!1;const a=this.columnApi.getColumn(e.colId);return Boolean(a.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||a)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}deleteColumnState(){return(0,t.sH)(this,arguments,void 0,function*(e=!0){var a;if(this.statePersistanceEnabled()&&(yield this.statePersistence.deleteColumnState(this.persistColumnStateKey),this.columnState=[]),e&&this.columnApi){if((null===(a=this.defaultColumnConfig)||void 0===a?void 0:a.length)>0){const e=(0,K.rG)(this.defaultColumnConfig);this.columnApi.applyColumnState({state:e,applyOrder:!0})}else this.columnApi.resetColumnState();this.handleColumnSizing()}})}restoreColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){var e;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(){return(0,t.sH)(this,void 0,void 0,function*(){var e,a;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 isServerSide(){return this.gridProDatasource instanceof N.X}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=w()(this.saveColumnState.bind(this),400),r=w()(this.cacheFilterConfig.bind(this),400),o=()=>{a(),this.debouncedColumnAutosize.bind(this)(),this.invalidateColumnWidthCache()};Array.from(this.attributes).forEach(e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)});const{columnDefs:n,components:l,defaultColDef:g,getRowId:s,onGridReady:d,onFilterChanged:c,onFirstDataRendered:p}=e,u=(0,t.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},g),components:this.combineAllGridComponents(l),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var a,r;this.gridApi=e.api,this.columnApi=e.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setRowData(this.rowData),d&&d(e),this.columnState&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.columnApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(i.sVA.EVENT_GRID_READY,{event:e,gridId:this.id}),this.$emit(G.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(F.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.handleColumnSizing(),p&&p(e)},onColumnPinned:o,onColumnResized:o,onColumnMoved:o,onDisplayedColumnsChanged:o,onFilterChanged:e=>{r(),c&&c(e)},onGridSizeChanged:o,onSortChanged:o}),u),v="getRowId"in(null!=e?e:{});this.gridProDatasource?(h.columnDefs=n,v&&(h.getRowId=s),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(n).then(e=>{h.columnDefs=e,v&&(h.getRowId=s),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid()})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,j.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){p.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new i.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}applyTemplateDefinitions(e,a=!1){return X.v.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e){return(0,t.sH)(this,arguments,void 0,function*(e,a=!1){var r;const t=e||[];t.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=v[this.headerCaseType];a?e.headerName=a(e.field):X.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const o=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var a,r,o;this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:(null===(a=e.filterParams)||void 0===a?void 0:a.values)||(null===(o=null===(r=t.find(a=>a.field===e.field))||void 0===r?void 0:r.filterParams)||void 0===o?void 0:o.values)})),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(null==a?void 0:a.data)return a.data[G.A7]===e.field?{component:G.IX.editable}:void 0}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=J.y,e.tooltipValueGetter=a=>{if(!(null==a?void 0:a.data))return;const r=a.data[G.h1];return r&&r.column===e.field?r.message:void 0}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return!(!(null==e?void 0:e.colDef)||!(null==e?void 0:e.data))&&(null===(a=e.data[G.h1])||void 0===a?void 0:a.column)===e.colDef.field}}));const i=t.find(a=>e.field===a.field);return Object.assign(Object.assign({},i),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(0,K.yS)(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return(0,K.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,a){return a.some(a=>a.statusPanel===e)}addRowCountPanel(e,a){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const r=this.isServerSide||"serverSide"===(null==a?void 0:a.rowModelType),t=this._pagination||!0===(null==a?void 0:a.pagination);if(r&&!t)this.panelExists(G.k7.rowCount,e)||e.push({statusPanel:G.k7.rowCount,align:"left"});else if(!r){const a="agTotalAndFilteredRowCountComponent";this.panelExists(a,e)||e.push({statusPanel:a,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(G.k7.labelValue,e)||e.push({statusPanel:G.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||l.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const a=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(a=>!this.panelExists(a.statusPanel,e));e.push(...a)}}addPaginationPanel(e){this._pagination&&(this.panelExists(G.k7.pagination,e)||e.push({statusPanel:G.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var a,r;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const t=[...(null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]];this.addRowCountPanel(t,e),this.addMaxRowsPanel(t),this.addAggregationPanel(t),this.addDatasourcePanels(t),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(t));const o=((null===(r=e.statusBar)||void 0===r?void 0:r.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,t));t.push(...o),e.statusBar={statusPanels:t}}}handleColumnSizing(){(this.sizeColumnsToContent||this.sizeColumnsToFit)&&(this.sizeColumnsToContent&&this.sizeColumnsToFit&&this.columnApi&&this.gridApi?this.handleBothSizingModes():this.handleIndividualSizingModes())}handleBothSizingModes(){if(this.calculateTotalColumnWidth()>this.getGridWidth()){if(!this.columnApi)return;this.columnApi.autoSizeAllColumns()}else{if(!this.gridApi)return;this.gridApi.sizeColumnsToFit()}}handleIndividualSizingModes(){this.sizeColumnsToContent&&this.columnApi&&this.columnApi.autoSizeAllColumns(),this.sizeColumnsToFit&&this.gridApi&&this.gridApi.sizeColumnsToFit()}calculateTotalColumnWidth(){if(!this.columnApi)return 0;const e=this.columnApi.getAllGridColumns(),a=e.length;return null!==this.cachedTotalColumnWidth&&this.columnCount===a||(this.cachedTotalColumnWidth=e.reduce((e,a)=>e+(a.getActualWidth()||0),0),this.columnCount=a),this.cachedTotalColumnWidth}invalidateColumnWidthCache(){this.cachedTotalColumnWidth=null,this.columnCount=0}getGridWidth(){const e=this;let a=(null==e?void 0:e.clientWidth)||0;return 0===a&&this.gridSlot&&(a=this.gridSlot.clientWidth||0),0===a&&(a=this.clientWidth||0),a}get observedAttributes(){const e=j.zI.map(e=>e.toLowerCase()),a=j.zI.map(e=>(0,Z.w)(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},i.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=I.KE[e]||this.gridFontFace;this.destroyFontFace();const r=(0,d.O5)(a,(0,G.b7)(e));r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,t.Cg)([p.observable],$.prototype,"columnApi",void 0),(0,t.Cg)([p.observable],$.prototype,"gridApi",void 0),(0,t.Cg)([p.observable],$.prototype,"gridErrorItems",void 0),(0,t.Cg)([H.l],$.prototype,"statePersistence",void 0),(0,t.Cg)([(0,p.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$.prototype,"autoCellRendererByType",void 0),(0,t.Cg)([(0,p.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$.prototype,"onlyTemplateColDefs",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"grid-autosizing"})],$.prototype,"gridAutosizingEnabled",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"size-columns-to-content"})],$.prototype,"sizeColumnsToContent",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"size-columns-to-fit"})],$.prototype,"sizeColumnsToFit",void 0),(0,t.Cg)([(0,p.attr)({attribute:"add-index"})],$.prototype,"addIndex",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-add"})],$.prototype,"asyncAdd",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-remove"})],$.prototype,"asyncRemove",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-update"})],$.prototype,"asyncUpdate",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$.prototype,"enableCellFlashing",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$.prototype,"enabledRowFlashing",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$.prototype,"enableRowFlashing",void 0),(0,t.Cg)([(0,p.attr)({attribute:"persist-column-state-key"})],$.prototype,"persistColumnStateKey",void 0),(0,t.Cg)([(0,p.attr)({attribute:"persist-filter-model-key"})],$.prototype,"persistFilterModelKey",void 0),(0,t.Cg)([(0,p.attr)({attribute:"default-column-config"})],$.prototype,"defaultColumnConfig",void 0),(0,t.Cg)([(0,p.attr)({attribute:"header-case-type"})],$.prototype,"headerCaseType",void 0),(0,t.Cg)([p.observable],$.prototype,"rowData",void 0),(0,t.Cg)([p.observable],$.prototype,"gridFontFace",void 0),(0,t.Cg)([p.attr],$.prototype,"columnComponentName",void 0),(0,t.Cg)([p.observable],$.prototype,"eventsAndCallbacks",void 0),(0,t.Cg)([p.attr],$.prototype,"headerHeight",void 0),(0,t.Cg)([p.attr],$.prototype,"rowHeight",void 0),(0,t.Cg)([p.attr],$.prototype,"theme",void 0),(0,t.Cg)([p.observable],$.prototype,"classNames",void 0),(0,t.Cg)([p.observable],$.prototype,"agGrid",void 0),(0,t.Cg)([p.observable],$.prototype,"gridSlot",void 0),(0,t.Cg)([p.observable],$.prototype,"themeMode",void 0),(0,t.Cg)([p.observable],$.prototype,"gridComponents",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean"})],$.prototype,"pagination",void 0),(0,t.Cg)([(0,p.attr)({attribute:"pagination-page-size"})],$.prototype,"paginationPageSize",void 0),(0,t.Cg)([p.observable],$.prototype,"statusBarConfig",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"with-status-bar"})],$.prototype,"withStatusBar",void 0),(0,t.Cg)([p.observable],$.prototype,"customErrorHandlerTemplate",void 0),(0,t.Cg)([G.lz],$.prototype,"gridOptionsConfig",void 0);const _=void 0,ee={shadowOptions:void 0},ae=$.compose(Object.assign({baseName:"grid-pro",styles:B.X,template:U.a,shadowOptions:_},ee))},52540:(e,a,r)=>{r.d(a,{k:()=>t});class t{init(e){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=e,this.updateDisplay()}updateParams(e){this.currentParams=Object.assign(Object.assign({},this.currentParams),e),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}: `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},52945:(e,a,r)=>{r.d(a,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(e,a)=>{var r;let o=document.getElementById(a);if(o)return void t.v.debug(`\n An element with the id of '${a}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=a,i.appendChild(o);if((e.match(/}/g)||[]).length>1)return o.textContent=e,()=>{o&&i.removeChild(o)};{const a=o.sheet.insertRule(e);return()=>{o&&(o.sheet.deleteRule(a),i.removeChild(o))}}};function i(e){const a=[],r=new Set;return function e(t){const o=Array.from(t.querySelectorAll("*"));a.push(...o),o.forEach(a=>{a.shadowRoot&&!r.has(a.shadowRoot)&&(r.add(a.shadowRoot),e(a.shadowRoot))})}(e),a}},53397:(e,a,r)=>{r.d(a,{l:()=>i});var t=r(38370),o=r(11749);const i=t.DI.createInterface(e=>e.singleton(o.H))},55365:(e,a,r)=>{r.d(a,{A7:()=>h,IX:()=>c,Kb:()=>d,W3:()=>t,YO:()=>m,b7:()=>s,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>f,uA:()=>b});var t,o,i=r(99656),n=r(33681),l=r(38370);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(o||(o={}));const g=e=>`${e}-token-map`,s=e=>`${e}-fonts`,d=(e,a)=>n.css`
|
|
8373
|
+
`},49874:(e,a,r)=>{function t(e){const a=[];for(const[r]of e)r&&a.push(r);return a}function o(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}r.d(a,{P:()=>o,i:()=>t})},50103:(e,a,r)=>{r.d(a,{w:()=>t});const t=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},51266:(e,a,r)=>{r.d(a,{LU:()=>_,RB:()=>ae,Z$:()=>ee,cF:()=>$});var t=r(55823),o=r(29310),i=r(44210),n=r(84646),l=r(6884),g=r(21409),s=r(17190),d=r(52945),c=r(20633),p=r(33681),u=r(38370),h=r(31679),v=r(88047),m=r(62051),w=r.n(m),b=r(56943),f=r(49255),y=r(56182),z=r(48072),x=r(48075),C=r(43352),k=r(67489),A=r(39604),S=r(60905),D=r(46255),R=r(19511),M=r(80879),T=r(64315),E=r(63296),N=r(24638),O=r(18070),I=r(46374),L=r(90509),P=r(26062),F=r(79270),j=r(32610),B=r(98884),U=r(82128),G=r(55365),H=r(53397),Y=r(49104),Q=r(19060),W=r(52540),V=r(88863),q=r(71964),J=r(73203),K=r(23201),X=r(1510),Z=r(50103);(0,c.N)(P.D,E.L,N.X,b.O,T.G),i.syG.registerModules([n.n7,o.Q]);class $ extends((0,g.S)(u.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,h.x)((0,G.eL)(a),a),this.insertFontFace(a)}getfilterModel(){return(0,t.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,t.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.cachedTotalColumnWidth=null,this.columnCount=0,this.gridErrorItems=[],this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.sizeColumnsToContent=!1,this.sizeColumnsToFit=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.defaultColumnConfig=[],this.gridFontFace=I.qh,this.columnComponentName="grid-pro-column",this.theme=G.mJ.alpine,this.themeMode="dark",this.pagination=!1,this.statusBarConfig=G.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.eventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=j.zI.reduce((e,a)=>(e[a.toLowerCase()]=a,e[(0,Z.w)(a)]=a,e),{});const e=this.hideDatasourceError.bind(this);this.eventHandlers.push([L.V.dataInit,e],[j.yY.datasourceErrorClose,e],[O.L.error,this.handleBaseDatasourceError.bind(this)],[O.L.connected,e],[F.c.initialize,this.handleInitialize.bind(this)],[F.c.dataLoaded,this.handleDataLoaded.bind(this)],[F.c.dataChanged,this.handleDataChanged.bind(this)],[F.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[F.c.dataCleared,this.handleDataCleared.bind(this)],[F.c.loadingStarted,this.handleLoadingStarted.bind(this)],[F.c.loadingFinished,this.handleLoadingFinished.bind(this)],[F.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[F.c.filtersRestored,this.handleFiltersRestored.bind(this)],[F.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[F.c.error,this.handleDatasourceError.bind(this)],[F.c.destroy,this.handleDatasourceDestroy.bind(this)],[F.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[F.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[F.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[F.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[F.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[F.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)])}addEventListener(e,a,r){super.addEventListener(e,a,r),i.kNx.PUBLIC_EVENTS.includes(e)&&(this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e))}addGridEventListener(e){this.registeredGridEvents.has(e)||(this.registeredGridEvents.add(e),this.gridApi.addEventListener(e,a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}handleBaseDatasourceError(e){const a={detail:{message:e.detail.message},type:j.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:a.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==j.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,s.j)(this,e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.eventHandlers.forEach(([e,a])=>{this.addEventListener(e,a)}),this.shouldRunConnect&&(j.zI.forEach(e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback((0,Z.w)(e),void 0,a)},enumerable:!0,configurable:!0})}),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:l.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.eventHandlers.forEach(([e,a])=>{this.removeEventListener(e,a)}),p.DOM.queueUpdate(()=>{e&&(this.initialised=!1,this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0}),this.gridApi.destroy(),this.invalidateColumnWidthCache(),this.registeredGridEvents.clear())})}handleInitialize(e){const{options:a,keepColDefsOnClearRowData:r}=e.detail;let t;r&&(t=this.gridApi.getColumnDefs(),this.columnState=this.columnApi.getColumnState());const o=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t&&{columnDefs:t}),a);this.gridOptions=Object.assign({},o),this.initGrid()}handleDataLoaded(e){const{data:a}=e.detail;this.gridApi&&this.gridApi.setRowData(a)}handleDataChanged(e){var a,r,t;const{changes:o}=e.detail;if(this.gridApi){if((null===(a=o.add)||void 0===a?void 0:a.length)>0)if(this.asyncAdd)this.gridApi.applyTransactionAsync({add:o.add,addIndex:this.addIndex},e=>{this.flashAddedCells(null==e?void 0:e.add)});else{const e=this.gridApi.applyTransaction({add:o.add,addIndex:this.addIndex});this.flashAddedCells(null==e?void 0:e.add)}(null===(r=o.update)||void 0===r?void 0:r.length)>0&&(this.asyncUpdate?this.gridApi.applyTransactionAsync({update:o.update}):this.gridApi.applyTransaction({update:o.update})),(null===(t=o.remove)||void 0===t?void 0:t.length)>0&&(this.asyncRemove?this.gridApi.applyTransactionAsync({remove:o.remove}):this.gridApi.applyTransaction({remove:o.remove}))}}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,t.sH)(this,void 0,void 0,function*(){const{schema:a,metadata:r}=e.detail,t=this.gridApi.getColumnDefs();if(!t||0===t.length){const e=r.map(e=>{var r;return Object.assign(Object.assign({},a.find(a=>a.field===e.name)),null===(r=this.gridApi)||void 0===r?void 0:r.getColumnDef(e.name))}).map(e=>Object.assign(Object.assign({},e),{cellRenderer:this.autoCellRendererByType?e.cellRenderer:void 0,cellEditor:this.autoCellRendererByType?e.cellEditor:void 0})),t=yield this.mergeAllColumnDefsAndStates(e,!0);t&&(t.forEach(e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)}),this.gridApi.setColumnDefs(t))}})}handleDataCleared(e){var a,r;const{includeSchema:t}=e.detail;this.gridApi&&(this.isServerSide||(this.asyncAdd||this.asyncUpdate||this.asyncRemove)&&(null===(r=(a=this.gridApi).flushAsyncTransactions)||void 0===r||r.call(a)),t&&this.gridApi.setColumnDefs([]),this.isServerSide||(this.gridApi.setRowData([]),this.gridApi.refreshCells({force:!0})))}handleLoadingStarted(){this.gridApi&&this.gridApi.showLoadingOverlay()}handleLoadingFinished(){this.gridApi&&this.gridApi.hideOverlay()}handleNoDataAvailable(){this.gridApi&&this.gridApi.showNoRowsOverlay()}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var a,r,t,o;const{hasMoreData:i,sourceRef:n}=e.detail;if(!this.gridApi)return;const l=null===(r=(a=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(a,G.k7.loadMore);l&&(null===(o=(t=l).updateParams)||void 0===o||o.call(t,{moreRows:i,sourceRef:n}))}handleDatasourceError(e){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:a}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:a})}handleSetServerSideDatasource(e){const{datasource:a}=e.detail;this.gridApi&&this.gridApi.setServerSideDatasource(a)}handleAddGridCssClass(e){var a;const{className:r}=e.detail,t=(null===(a=this.gridSlot)||void 0===a?void 0:a.parentElement)||this;t&&t.classList.add(r)}handleRemoveGridCssClass(e){var a;const{className:r}=e.detail,t=(null===(a=this.gridSlot)||void 0===a?void 0:a.parentElement)||this;t&&t.classList.remove(r)}handleApplyServerSideTransaction(e){const{transaction:a,async:r,callback:t}=e.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(a,t);else{const e=this.gridApi.applyServerSideTransaction(a);t&&t(e)}}combineAllGridComponents(e){const a={[G.IX.action]:k.eA,[G.IX.actionsMenu]:A.cN,[G.IX.boolean]:S._Y,[G.IX.editable]:D.YM,[G.IX.statusPill]:R.N7,[G.IX.select]:M.gs,[G.IX.selectEditor]:x._Q,[G.IX.numberEditor]:z.Z0,[G.IX.multiselectEditor]:y.pZ,[G.IX.dateEditor]:f.S8,[G.IX.stringEditor]:C.XJ,[G.k7.labelValue]:W.k,[G.k7.loadMore]:Y.s,[G.k7.pagination]:Q.h,[G.k7.reload]:V.W,[G.k7.rowCount]:q.i};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,a,r,t;try{if(!this.initialised||!this.gridApi)return[];const o=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===o||"multiple"===o)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(a=this.gridApi)||void 0===a?void 0:a.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(r=this.gridOptions)||void 0===r?void 0:r.enableRangeSelection)){const e=null===(t=this.gridApi)||void 0===t?void 0:t.getFocusedCell();if(e){const a=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==a?void 0:a.data)return[a.data]}}return[]}catch(e){return X.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const a=this.gridApi.getCellRanges();if(0===a.length)return[];const r=[];return a.forEach(e=>{const a=e.startRow.rowIndex,t=e.endRow.rowIndex;for(let e=a;e<=t;e+=1){const a=this.gridApi.getDisplayedRowAtIndex(e);(null==a?void 0:a.data)&&!r.some(e=>e===a.data)&&r.push(a.data)}}),r}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var a,r;if(!this.gridApi)return void X.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const t=null===(r=(a=this.gridApi).getStatusPanel)||void 0===r?void 0:r.call(a,G.k7.labelValue);t&&"function"==typeof t.updateParams?t.updateParams(e):X.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},j.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const a=0===e.filter(e=>{if(e.hide)return!1;const a=this.columnApi.getColumn(e.colId);return Boolean(a.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||a)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}deleteColumnState(){return(0,t.sH)(this,arguments,void 0,function*(e=!0){var a;if(this.statePersistanceEnabled()&&(yield this.statePersistence.deleteColumnState(this.persistColumnStateKey),this.columnState=[]),e&&this.columnApi){if((null===(a=this.defaultColumnConfig)||void 0===a?void 0:a.length)>0){const e=(0,K.rG)(this.defaultColumnConfig);this.columnApi.applyColumnState({state:e,applyOrder:!0})}else this.columnApi.resetColumnState();this.handleColumnSizing()}})}restoreColumnState(){return(0,t.sH)(this,void 0,void 0,function*(){var e;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(){return(0,t.sH)(this,void 0,void 0,function*(){var e,a;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 isServerSide(){return this.gridProDatasource instanceof N.X}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=w()(this.saveColumnState.bind(this),400),r=w()(this.cacheFilterConfig.bind(this),400),o=()=>{a(),this.debouncedColumnAutosize.bind(this)(),this.invalidateColumnWidthCache()};Array.from(this.attributes).forEach(e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)});const{columnDefs:n,components:l,defaultColDef:g,getRowId:s,onGridReady:d,onFilterChanged:c,onFirstDataRendered:p}=e,u=(0,t.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},g),components:this.combineAllGridComponents(l),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var a,r;this.gridApi=e.api,this.columnApi=e.columnApi,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setRowData(this.rowData),d&&d(e),this.columnState&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.columnApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(i.sVA.EVENT_GRID_READY,{event:e,gridId:this.id}),this.$emit(G.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(F.c.ready,{pagination:this.pagination}),this.restoreColumnState.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.handleColumnSizing(),p&&p(e)},onColumnPinned:o,onColumnResized:o,onColumnMoved:o,onDisplayedColumnsChanged:o,onFilterChanged:e=>{r(),c&&c(e)},onGridSizeChanged:o,onSortChanged:o}),u),v="getRowId"in(null!=e?e:{});this.gridProDatasource?(h.columnDefs=n,v&&(h.getRowId=s),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(n).then(e=>{h.columnDefs=e,v&&(h.getRowId=s),this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid()})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,j.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){p.DOM.queueUpdate(()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new i.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0})}applyTemplateDefinitions(e,a=!1){return X.v.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e){return(0,t.sH)(this,arguments,void 0,function*(e,a=!1){var r;const t=e||[];t.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=v[this.headerCaseType];a?e.headerName=a(e.field):X.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const o=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var a,r,o;this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:(null===(a=e.filterParams)||void 0===a?void 0:a.values)||(null===(o=null===(r=t.find(a=>a.field===e.field))||void 0===r?void 0:r.filterParams)||void 0===o?void 0:o.values)})),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(null==a?void 0:a.data)return a.data[G.A7]===e.field?{component:G.IX.editable}:void 0}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=J.y,e.tooltipValueGetter=a=>{if(!(null==a?void 0:a.data))return;const r=a.data[G.h1];return r&&r.column===e.field?r.message:void 0}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return!(!(null==e?void 0:e.colDef)||!(null==e?void 0:e.data))&&(null===(a=e.data[G.h1])||void 0===a?void 0:a.column)===e.colDef.field}}));const i=t.find(a=>e.field===a.field);return Object.assign(Object.assign({},i),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(0,K.yS)(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return(0,K.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,a){return a.some(a=>a.statusPanel===e)}addRowCountPanel(e,a){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const r=this.isServerSide||"serverSide"===(null==a?void 0:a.rowModelType),t=this._pagination||!0===(null==a?void 0:a.pagination);if(r&&!t)this.panelExists(G.k7.rowCount,e)||e.push({statusPanel:G.k7.rowCount,align:"left"});else if(!r){const a="agTotalAndFilteredRowCountComponent";this.panelExists(a,e)||e.push({statusPanel:a,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(G.k7.labelValue,e)||e.push({statusPanel:G.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||l.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const a=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(a=>!this.panelExists(a.statusPanel,e));e.push(...a)}}addPaginationPanel(e){this._pagination&&(this.panelExists(G.k7.pagination,e)||e.push({statusPanel:G.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var a,r;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const t=[...(null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]];this.addRowCountPanel(t,e),this.addMaxRowsPanel(t),this.addAggregationPanel(t),this.addDatasourcePanels(t),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(t));const o=((null===(r=e.statusBar)||void 0===r?void 0:r.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,t));t.push(...o),e.statusBar={statusPanels:t}}}handleColumnSizing(){(this.sizeColumnsToContent||this.sizeColumnsToFit)&&(this.sizeColumnsToContent&&this.sizeColumnsToFit&&this.columnApi&&this.gridApi?this.handleBothSizingModes():this.handleIndividualSizingModes())}handleBothSizingModes(){if(this.calculateTotalColumnWidth()>this.getGridWidth()){if(!this.columnApi)return;this.columnApi.autoSizeAllColumns()}else{if(!this.gridApi)return;this.gridApi.sizeColumnsToFit()}}handleIndividualSizingModes(){this.sizeColumnsToContent&&this.columnApi&&this.columnApi.autoSizeAllColumns(),this.sizeColumnsToFit&&this.gridApi&&this.gridApi.sizeColumnsToFit()}calculateTotalColumnWidth(){if(!this.columnApi)return 0;const e=this.columnApi.getAllGridColumns(),a=e.length;return null!==this.cachedTotalColumnWidth&&this.columnCount===a||(this.cachedTotalColumnWidth=e.reduce((e,a)=>e+(a.getActualWidth()||0),0),this.columnCount=a),this.cachedTotalColumnWidth}invalidateColumnWidthCache(){this.cachedTotalColumnWidth=null,this.columnCount=0}getGridWidth(){const e=this;let a=(null==e?void 0:e.clientWidth)||0;return 0===a&&this.gridSlot&&(a=this.gridSlot.clientWidth||0),0===a&&(a=this.clientWidth||0),a}get observedAttributes(){const e=j.zI.map(e=>e.toLowerCase()),a=j.zI.map(e=>(0,Z.w)(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},i.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=I.KE[e]||this.gridFontFace;this.destroyFontFace();const r=(0,d.O5)(a,(0,G.b7)(e));r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,t.Cg)([p.observable],$.prototype,"columnApi",void 0),(0,t.Cg)([p.observable],$.prototype,"gridApi",void 0),(0,t.Cg)([p.observable],$.prototype,"gridErrorItems",void 0),(0,t.Cg)([H.l],$.prototype,"statePersistence",void 0),(0,t.Cg)([(0,p.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$.prototype,"autoCellRendererByType",void 0),(0,t.Cg)([(0,p.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$.prototype,"onlyTemplateColDefs",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"grid-autosizing"})],$.prototype,"gridAutosizingEnabled",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"size-columns-to-content"})],$.prototype,"sizeColumnsToContent",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"size-columns-to-fit"})],$.prototype,"sizeColumnsToFit",void 0),(0,t.Cg)([(0,p.attr)({attribute:"add-index"})],$.prototype,"addIndex",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-add"})],$.prototype,"asyncAdd",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-remove"})],$.prototype,"asyncRemove",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"async-update"})],$.prototype,"asyncUpdate",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$.prototype,"enableCellFlashing",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$.prototype,"enabledRowFlashing",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$.prototype,"enableRowFlashing",void 0),(0,t.Cg)([(0,p.attr)({attribute:"persist-column-state-key"})],$.prototype,"persistColumnStateKey",void 0),(0,t.Cg)([(0,p.attr)({attribute:"persist-filter-model-key"})],$.prototype,"persistFilterModelKey",void 0),(0,t.Cg)([(0,p.attr)({attribute:"default-column-config"})],$.prototype,"defaultColumnConfig",void 0),(0,t.Cg)([(0,p.attr)({attribute:"header-case-type"})],$.prototype,"headerCaseType",void 0),(0,t.Cg)([p.observable],$.prototype,"rowData",void 0),(0,t.Cg)([p.observable],$.prototype,"gridFontFace",void 0),(0,t.Cg)([p.attr],$.prototype,"columnComponentName",void 0),(0,t.Cg)([p.observable],$.prototype,"eventsAndCallbacks",void 0),(0,t.Cg)([p.attr],$.prototype,"headerHeight",void 0),(0,t.Cg)([p.attr],$.prototype,"rowHeight",void 0),(0,t.Cg)([p.attr],$.prototype,"theme",void 0),(0,t.Cg)([p.observable],$.prototype,"classNames",void 0),(0,t.Cg)([p.observable],$.prototype,"agGrid",void 0),(0,t.Cg)([p.observable],$.prototype,"gridSlot",void 0),(0,t.Cg)([p.observable],$.prototype,"themeMode",void 0),(0,t.Cg)([p.observable],$.prototype,"gridComponents",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean"})],$.prototype,"pagination",void 0),(0,t.Cg)([(0,p.attr)({attribute:"pagination-page-size"})],$.prototype,"paginationPageSize",void 0),(0,t.Cg)([p.observable],$.prototype,"statusBarConfig",void 0),(0,t.Cg)([(0,p.attr)({mode:"boolean",attribute:"with-status-bar"})],$.prototype,"withStatusBar",void 0),(0,t.Cg)([p.observable],$.prototype,"customErrorHandlerTemplate",void 0),(0,t.Cg)([G.lz],$.prototype,"gridOptionsConfig",void 0);const _=void 0,ee={shadowOptions:void 0},ae=$.compose(Object.assign({baseName:"grid-pro",styles:B.X,template:U.a,shadowOptions:_},ee))},52540:(e,a,r)=>{r.d(a,{k:()=>t});class t{init(e){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=e,this.updateDisplay()}updateParams(e){this.currentParams=Object.assign(Object.assign({},this.currentParams),e),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}: `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},52945:(e,a,r)=>{r.d(a,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(e,a)=>{var r;let o=document.getElementById(a);if(o)return void t.v.debug(`\n An element with the id of '${a}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=a,i.appendChild(o);if((e.match(/}/g)||[]).length>1)return o.textContent=e,()=>{o&&i.removeChild(o)};{const a=o.sheet.insertRule(e);return()=>{o&&(o.sheet.deleteRule(a),i.removeChild(o))}}};function i(e){const a=[],r=new Set;return function e(t){const o=Array.from(t.querySelectorAll("*"));a.push(...o),o.forEach(a=>{a.shadowRoot&&!r.has(a.shadowRoot)&&(r.add(a.shadowRoot),e(a.shadowRoot))})}(e),a}},53397:(e,a,r)=>{r.d(a,{l:()=>i});var t=r(38370),o=r(11749);const i=t.DI.createInterface(e=>e.singleton(o.H))},55365:(e,a,r)=>{r.d(a,{A7:()=>h,IX:()=>c,Kb:()=>d,W3:()=>t,YO:()=>m,b7:()=>s,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>f,uA:()=>b});var t,o,i=r(15868),n=r(33681),l=r(38370);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(o||(o={}));const g=e=>`${e}-token-map`,s=e=>`${e}-fonts`,d=(e,a)=>n.css`
|
|
8374
8374
|
.${g(e)} {
|
|
8375
8375
|
${new i.CSSVarsTokenMapper(a)}
|
|
8376
8376
|
}
|