@genesislcap/design-system-configurator 14.303.3 → 14.304.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.
@@ -1,6 +1,6 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[99],{88480:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>R,Anchor:()=>L,AnchoredRegion:()=>B,Avatar:()=>q,Badge:()=>ee,Banner:()=>ce,BaseDatasource:()=>ft,BaseFileComponent:()=>Vn,Breadcrumb:()=>me,BreadcrumbItem:()=>Ce,Button:()=>Oe,COMBO_INPUT_MIN_LENGTH:()=>Wd,CSSVarsTokenMapper:()=>Gp,Calendar:()=>Fe,Card:()=>Pe,CategorizedMultiselect:()=>Qe,Checkbox:()=>et,Combobox:()=>Mt,ConnectionIndicator:()=>zt,DEFUALT_FILTER_BAR_COLUMNS:()=>Ra,DataGrid:()=>Wt,DataGridCell:()=>Jt,DataGridDatasource:()=>zp,DataGridRow:()=>io,DatePicker:()=>Io,DefaultRouter:()=>Km,Dialog:()=>ki,DialogElement:()=>Ti,Disclosure:()=>Fi,Divider:()=>Pi,DropdownMenu:()=>Wi,EnvironmentIndicator:()=>ln,ErrorBanner:()=>hn,ErrorBoundary:()=>Tn,ErrorBoundaryEvent:()=>gn,ErrorDialog:()=>Nn,ExpressionBuilderConfig:()=>a,ExpressionBuilderCore:()=>lm,FaPrefixFromStyle:()=>Ns,FileReader:()=>Qn,FileUpload:()=>ca,Filter:()=>$a,FilterBar:()=>Fa,FilterEvents:()=>xa,FlexLayout:()=>Ua,FlexMediaQueriesEnum:()=>Aa,Flipper:()=>ja,Flyout:()=>Ja,FoundationDesignSystemProvider:()=>yi,FoundationExpressionBuilder:()=>Yh,FoundationRouteCollection:()=>lg,FoundationRouteNav:()=>ng,FoundationRouter:()=>pg,FoundationRouterConfiguration:()=>dg,FoundationRuleExpressionBuilder:()=>$m,FoundationValueExpressionBuilder:()=>Dm,GenerateNavigationPathEventType:()=>ug,GridLayout:()=>ds,GridLayoutItem:()=>ms,GridMediaQueriesEnum:()=>os,HorizontalScroll:()=>bs,INPUT_MIN_LENGTH:()=>Yd,Icon:()=>Ms,Listbox:()=>Us,ListboxOption:()=>Ys,Menu:()=>Js,MenuItem:()=>nr,Modal:()=>pr,Multiselect:()=>wr,MultiselectDatasource:()=>vr,NavigateToEventType:()=>cg,NotificationListener:()=>Nm,NumberField:()=>Fr,OptionsDatasource:()=>Rt,Popper:()=>Cl,Position:()=>Ge,Progress:()=>nl,ProgressRing:()=>Ol,Radio:()=>Fl,RadioGroup:()=>Pl,Router:()=>qm,RuleExpression:()=>dm,SCROLL_TIMEOUT:()=>Vd,SNACKBAR_CLOSE_TIMEOUT:()=>Vc,SNACKBAR_EVENTS_NAMES:()=>Yc,SNACKBAR_TYPES:()=>jc,SNACKBAR_TYPE_DEFAULT:()=>zc,Scheduler:()=>Vl,SchedulerCronBuilder:()=>Dd,SchedulerTimezone:()=>Md,SearchBar:()=>Kd,SearchBarCombobox:()=>tc,SegmentedControl:()=>rc,SegmentedItem:()=>hc,Select:()=>yc,Skeleton:()=>Ec,Slider:()=>Nc,SliderLabel:()=>Hc,Snackbar:()=>Xc,StackingIcons:()=>tu,StatusPill:()=>su,Stepper:()=>vg,StepperTab:()=>uu,StepperTabPanel:()=>vu,Switch:()=>xu,SystemHealthOverlay:()=>pl,Tab:()=>ku,TabPanel:()=>Au,Tabs:()=>Uu,TextArea:()=>Yu,TextField:()=>ep,Toast:()=>lp,Toolbar:()=>pp,Tooltip:()=>bp,TreeItem:()=>Sp,TreeView:()=>Ip,UrlInput:()=>Hp,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>li,actionsMenuBaseStyles:()=>$,baseComponents:()=>Bp,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>ci,black:()=>Ao,bodyFont:()=>r.bodyFont,categorizedMultiselectStyles:()=>je,categorizedMultiselectTemplate:()=>We,clientOperators:()=>um,closeIcon:()=>ga,configureDesignSystem:()=>ri,configureEnvironmentIndicator:()=>sn,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>pi,createDesignSystemProxy:()=>ll,createFormData:()=>ia,crossIcon:()=>Bd,defaultAccordionConfig:()=>h,defaultAccordionItemConfig:()=>y,defaultAnchorConfig:()=>_,defaultAnchoredRegionConfig:()=>z,defaultAvatarConfig:()=>Q,defaultBadgeConfig:()=>oe,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>ke,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Ue,defaultCategorizedMultiselectConfig:()=>Ke,defaultCheckboxConfig:()=>ot,defaultComboboxConfig:()=>Pt,defaultConfig:()=>Wl,defaultCronBuilderConfig:()=>Rd,defaultDataGridCellConfig:()=>eo,defaultDataGridConfig:()=>Kt,defaultDataGridRowConfig:()=>ao,defaultDatePickerConfig:()=>Do,defaultDialogConfig:()=>Oi,defaultDisclosureConfig:()=>Ai,defaultDividerConfig:()=>Ui,defaultFileUploadConfig:()=>pa,defaultFillColor:()=>Mo,defaultFlexLayoutConfig:()=>Ha,defaultFlipperConfig:()=>Ya,defaultFlyoutConfig:()=>es,defaultGridLayoutConfig:()=>rs,defaultGridLayoutItemConfig:()=>hs,defaultHorizontalScrollConfig:()=>Cs,defaultIconConfig:()=>Fs,defaultListboxConfig:()=>Gs,defaultListboxOptionConfig:()=>qs,defaultMenuConfig:()=>er,defaultMenuItemConfig:()=>sr,defaultModalConfig:()=>ur,defaultMultiselectConfig:()=>Cr,defaultNavItemPredicate:()=>ag,defaultNeutralForegroundContrast:()=>Ko,defaultNumberFieldConfig:()=>Ar,defaultPlacementIndexPadding:()=>sg,defaultProgressConfig:()=>sl,defaultProgressRingConfig:()=>kl,defaultRadioConfig:()=>Al,defaultRadioGroupConfig:()=>Ul,defaultSearchBarComboboxConfig:()=>ic,defaultSearchBarConfig:()=>Xd,defaultSegmentedControlConfig:()=>dc,defaultSegmentedItemConfig:()=>gc,defaultSelectConfig:()=>wc,defaultSkeletonConfig:()=>Tc,defaultSliderConfig:()=>Lc,defaultSliderLabelConfig:()=>Bc,defaultStepperConfig:()=>bg,defaultStepperTabConfig:()=>hu,defaultStepperTabPanelConfig:()=>bu,defaultSwitchConfig:()=>Su,defaultSystemHealthOverlayConfig:()=>vl,defaultTabConfig:()=>Iu,defaultTabPanelConfig:()=>Mu,defaultTabsConfig:()=>Gu,defaultTextAreaConfig:()=>qu,defaultTextFieldConfig:()=>op,defaultTimezoneConfig:()=>Pd,defaultToastConfig:()=>rp,defaultToolbarConfig:()=>mp,defaultTooltipConfig:()=>Cp,defaultTreeItemConfig:()=>Op,defaultTreeViewConfig:()=>Fp,defaultUrlInputConfig:()=>Pp,defineFactory:()=>Lm,density:()=>r.density,designToken:()=>ei,designUnit:()=>r.designUnit,designUnitValue:()=>hi,direction:()=>r.direction,directionValue:()=>ui,disabledOpacity:()=>r.disabledOpacity,downloadFile:()=>aa,dropdownMenuBaseStyles:()=>Gi,environmentIndicatorStyles:()=>Qi,errorDialogTemplate:()=>Rn,extractMenuItems:()=>ji,faSizeValueDefault:()=>As,faSizeValues:()=>Ls,fileReaderStyles:()=>Yn,fileReaderTemplate:()=>Kn,fillColor:()=>r.fillColor,filterBarTemplate:()=>Da,findParentRouter:()=>Zm,findRouter:()=>Jm,findTopLevelRouter:()=>eg,flyoutAnimationTime:()=>qa,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>au,foundationAccordion:()=>m,foundationAccordionItem:()=>C,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>g,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>p,foundationAccordionStyles:()=>d,foundationAccordionTemplate:()=>c,foundationActionsMenu:()=>F,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>I,foundationAnchor:()=>P,foundationAnchorShadowOptions:()=>M,foundationAnchorStyles:()=>N,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>j,foundationAnchoredRegionShadowOptions:()=>G,foundationAnchoredRegionStyles:()=>U,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>K,foundationAvatarStyles:()=>V,foundationAvatarTemplate:()=>Y,foundationBadge:()=>ie,foundationBadgeShadowOptions:()=>te,foundationBadgeStyles:()=>J,foundationBadgeTemplate:()=>Z,foundationBanner:()=>ue,foundationBannerShadowOptions:()=>de,foundationBannerStyles:()=>se,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>fe,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>be,foundationBreadcrumbItemTemplate:()=>ye,foundationBreadcrumbShadowOptions:()=>ge,foundationBreadcrumbStyles:()=>pe,foundationBreadcrumbTemplate:()=>he,foundationButton:()=>De,foundationButtonShadowOptions:()=>Te,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ee,foundationCalendar:()=>Le,foundationCalendarShadowOptions:()=>Ne,foundationCalendarStyles:()=>Ie,foundationCalendarTemplate:()=>Re,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Me,foundationCardTemplate:()=>_e,foundationCategorizedMultiselect:()=>Xe,foundationCategorizedMultiselectShadowOptions:()=>qe,foundationCheckbox:()=>it,foundationCheckboxShadowOptions:()=>tt,foundationCheckboxStyles:()=>Je,foundationCheckboxTemplate:()=>Ze,foundationCombobox:()=>Ht,foundationComboboxShadowOptions:()=>_t,foundationComboboxStyles:()=>Ft,foundationComboboxTemplate:()=>Nt,foundationConnectionIndicator:()=>jt,foundationConnectionIndicatorStyles:()=>Bt,foundationConnectionIndicatorTemplate:()=>Gt,foundationDataGrid:()=>Qt,foundationDataGridCell:()=>to,foundationDataGridCellShadowOptions:()=>Zt,foundationDataGridCellStyles:()=>Xt,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>so,foundationDataGridRowShadowOptions:()=>no,foundationDataGridRowStyles:()=>oo,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>qt,foundationDataGridStyles:()=>Vt,foundationDataGridTemplate:()=>Yt,foundationDatePicker:()=>Ro,foundationDatePickerShadowOptions:()=>ko,foundationDatePickerStyles:()=>wo,foundationDatePickerTemplate:()=>So,foundationDesignSystemProvider:()=>Ci,foundationDialog:()=>Di,foundationDialogShadowOptions:()=>Ei,foundationDialogStyles:()=>xi,foundationDialogTemplate:()=>Si,foundationDisclosure:()=>Li,foundationDisclosureShadowOptions:()=>Ni,foundationDisclosureStyles:()=>Ii,foundationDisclosureTemplate:()=>Ri,foundationDivider:()=>Bi,foundationDividerShadowOptions:()=>Hi,foundationDividerStyles:()=>Mi,foundationDividerTemplate:()=>_i,foundationDropdownMenu:()=>qi,foundationDropdownMenuStyles:()=>zi,foundationDropdownMenuTemplate:()=>Yi,foundationEnvironmentIndicator:()=>dn,foundationEnvironmentIndicatorTemplate:()=>Xi,foundationErrorBanner:()=>mn,foundationErrorBannerShadowOptions:()=>pn,foundationErrorBannerTemplate:()=>un,foundationErrorBoundary:()=>kn,foundationErrorBoundaryShadowOptions:()=>On,foundationErrorBoundaryTemplate:()=>En,foundationErrorDialog:()=>An,foundationErrorDialogShadowOptions:()=>Fn,foundationErrorDialogStyles:()=>Dn,foundationFileReader:()=>Xn,foundationFileReaderStyles:()=>Wn,foundationFileUpload:()=>ha,foundationFileUploadShadowOptions:()=>ua,foundationFileUploadStyles:()=>ea,foundationFileUploadTemplate:()=>oa,foundationFilter:()=>Sa,foundationFilterBar:()=>Na,foundationFilterBarStyles:()=>Oa,foundationFilterBarTemplate:()=>Ia,foundationFilterStyles:()=>ma,foundationFilterTemplate:()=>wa,foundationFlexLayout:()=>Ba,foundationFlexLayoutShadowOptions:()=>Pa,foundationFlexLayoutStyles:()=>Ma,foundationFlexLayoutTemplate:()=>_a,foundationFlipper:()=>Wa,foundationFlipperShadowOptions:()=>Va,foundationFlipperStyles:()=>Ga,foundationFlipperTemplate:()=>za,foundationFlyout:()=>ts,foundationFlyoutShadowOptions:()=>Za,foundationFlyoutStyles:()=>Ka,foundationFlyoutTemplate:()=>Xa,foundationGridLayout:()=>cs,foundationGridLayoutItem:()=>gs,foundationGridLayoutItemShadowOptions:()=>ps,foundationGridLayoutItemTemplate:()=>us,foundationGridLayoutShadowOptions:()=>ss,foundationGridLayoutStyles:()=>ns,foundationGridLayoutTemplate:()=>as,foundationHorizontalScroll:()=>ws,foundationHorizontalScrollShadowOptions:()=>ys,foundationHorizontalScrollStyles:()=>vs,foundationHorizontalScrollTemplate:()=>fs,foundationIcon:()=>_s,foundationIconShadowOptions:()=>Rs,foundationIconStyles:()=>ks,foundationIconTemplate:()=>Is,foundationListbox:()=>zs,foundationListboxOption:()=>Ks,foundationListboxOptionShadowOptions:()=>Ws,foundationListboxOptionStyles:()=>js,foundationListboxOptionTemplate:()=>Vs,foundationListboxShadowOptions:()=>Bs,foundationListboxStyles:()=>Ps,foundationListboxTemplate:()=>Hs,foundationMenu:()=>tr,foundationMenuItem:()=>rr,foundationMenuItemShadowOptions:()=>ar,foundationMenuItemStyles:()=>or,foundationMenuItemTemplate:()=>ir,foundationMenuShadowOptions:()=>Zs,foundationMenuStyles:()=>Qs,foundationMenuTemplate:()=>Xs,foundationModal:()=>hr,foundationModalShadowOptions:()=>cr,foundationModalStyles:()=>lr,foundationModalTemplate:()=>dr,foundationMultiselect:()=>xr,foundationMultiselectShadowOptions:()=>yr,foundationNotificationListener:()=>Am,foundationNotificationListenerShadowOptions:()=>Fm,foundationNotificationListenerTemplate:()=>Im,foundationNumberField:()=>Lr,foundationNumberFieldShadowOptions:()=>Nr,foundationNumberFieldStyles:()=>Sr,foundationNumberFieldTemplate:()=>Er,foundationPopper:()=>$l,foundationProgress:()=>rl,foundationProgressRing:()=>Dl,foundationProgressRingShadowOptions:()=>Tl,foundationProgressRingStyles:()=>Sl,foundationProgressRingTemplate:()=>El,foundationProgressShadowOptions:()=>al,foundationProgressStyles:()=>ol,foundationProgressTemplate:()=>il,foundationRadio:()=>Ll,foundationRadioGroup:()=>Bl,foundationRadioGroupShadowOptions:()=>Hl,foundationRadioGroupStyles:()=>Ml,foundationRadioGroupTemplate:()=>_l,foundationRadioShadowOptions:()=>Nl,foundationRadioStyles:()=>Il,foundationRadioTemplate:()=>Rl,foundationScheduler:()=>ql,foundationSchedulerCronBuilder:()=>Fd,foundationSchedulerCronBuilderShadowOptions:()=>Id,foundationSchedulerCronBuilderTemplate:()=>kd,foundationSchedulerShadowOptions:()=>Yl,foundationSchedulerTemplate:()=>jl,foundationSchedulerTimezone:()=>Hd,foundationSchedulerTimezoneShadowOptions:()=>_d,foundationSchedulerTimezoneTemplate:()=>Ld,foundationSearchBar:()=>Jd,foundationSearchBarCombobox:()=>nc,foundationSearchBarComboboxShadowOptions:()=>oc,foundationSearchBarComboboxStyles:()=>Zd,foundationSearchBarComboboxTemplate:()=>ec,foundationSearchBarShadowOptions:()=>Qd,foundationSearchBarStyles:()=>Ud,foundationSearchBarTemplate:()=>jd,foundationSegmentedControl:()=>cc,foundationSegmentedControlShadowOptions:()=>lc,foundationSegmentedControlStyles:()=>ac,foundationSegmentedControlTemplate:()=>sc,foundationSegmentedItem:()=>vc,foundationSegmentedItemShadowOptions:()=>mc,foundationSegmentedItemStyles:()=>uc,foundationSegmentedItemTemplate:()=>pc,foundationSelect:()=>xc,foundationSelectShadowOptions:()=>Cc,foundationSelectStyles:()=>fc,foundationSelectTemplate:()=>bc,foundationSkeleton:()=>kc,foundationSkeletonShadowOptions:()=>Oc,foundationSkeletonStyles:()=>$c,foundationSkeletonTemplate:()=>Sc,foundationSlider:()=>Mc,foundationSliderLabel:()=>Gc,foundationSliderLabelShadowOptions:()=>Uc,foundationSliderLabelStyles:()=>_c,foundationSliderLabelTemplate:()=>Pc,foundationSliderShadowOptions:()=>Ac,foundationSliderStyles:()=>Dc,foundationSliderTemplate:()=>Fc,foundationSnackbar:()=>Jc,foundationSnackbarShadowOptions:()=>Qc,foundationSnackbarStyles:()=>Wc,foundationSnackbarTemplate:()=>Kc,foundationStackingIcons:()=>ou,foundationStackingIconsStyles:()=>Zc,foundationStackingIconsTemplate:()=>eu,foundationStatusPill:()=>ru,foundationStatusPillTemplate:()=>nu,foundationStepper:()=>yg,foundationStepperShadowOptions:()=>fg,foundationStepperStyles:()=>gg,foundationStepperTab:()=>mu,foundationStepperTabPanel:()=>yu,foundationStepperTabPanelShadowOptions:()=>fu,foundationStepperTabPanelTemplate:()=>gu,foundationStepperTabShadowOptions:()=>pu,foundationStepperTabStyles:()=>lu,foundationStepperTabTemplate:()=>cu,foundationStepperTemplate:()=>mg,foundationSwitch:()=>Eu,foundationSwitchShadowOptions:()=>$u,foundationSwitchStyles:()=>Cu,foundationSwitchTemplate:()=>wu,foundationSystemHealthOverlay:()=>fl,foundationSystemHealthOverlayShadowOptions:()=>gl,foundationSystemHealthOverlayStyles:()=>ml,foundationSystemHealthOverlayTemplate:()=>hl,foundationTab:()=>Ru,foundationTabPanel:()=>_u,foundationTabPanelShadowOptions:()=>Lu,foundationTabPanelStyles:()=>Fu,foundationTabPanelTemplate:()=>Nu,foundationTabShadowOptions:()=>Du,foundationTabStyles:()=>Ou,foundationTabTemplate:()=>Tu,foundationTabs:()=>zu,foundationTabsShadowOptions:()=>Bu,foundationTabsStyles:()=>Pu,foundationTabsTemplate:()=>Hu,foundationTextArea:()=>Ku,foundationTextAreaShadowOptions:()=>Wu,foundationTextAreaStyles:()=>ju,foundationTextAreaTemplate:()=>Vu,foundationTextField:()=>ip,foundationTextFieldShadowOptions:()=>tp,foundationTextFieldStyles:()=>Ju,foundationTextFieldTemplate:()=>Zu,foundationToast:()=>dp,foundationToastShadowOptions:()=>sp,foundationToastStyles:()=>np,foundationToastTemplate:()=>ap,foundationToolbar:()=>gp,foundationToolbarShadowOptions:()=>hp,foundationToolbarStyles:()=>cp,foundationToolbarTemplate:()=>up,foundationTooltip:()=>wp,foundationTooltipShadowOptions:()=>yp,foundationTooltipStyles:()=>vp,foundationTooltipTemplate:()=>fp,foundationTreeItem:()=>Tp,foundationTreeItemShadowOptions:()=>Ep,foundationTreeItemStyles:()=>xp,foundationTreeItemTemplate:()=>$p,foundationTreeView:()=>Np,foundationTreeViewShadowOptions:()=>Rp,foundationTreeViewStyles:()=>kp,foundationTreeViewTemplate:()=>Dp,foundationUrlInput:()=>Up,foundationUrlInputShadowOptions:()=>_p,foundationUrlInputStyles:()=>Ap,foundationUrlInputTemplate:()=>Mp,fromBinaryExpression:()=>ym,fromMethodExpression:()=>wm,fuiAccentPalette:()=>Vo,fuiAccentSwatch:()=>jo,fuiCardFillColor:()=>qo,fuiCardForegroundColor:()=>Xo,fuiDefaultCardFillColor:()=>Po,fuiDefaultCardPalette:()=>Ho,fuiFillColor:()=>Wo,fuiNeutralPalette:()=>Go,fuiNeutralSwatch:()=>Bo,getBannerTemplate:()=>re,getCriteriaBuilder:()=>qd,getDefaultConfig:()=>ni,getDesignSystemPrefix:()=>T,getDialogTemplate:()=>$i,getDropdownMenuTemplate:()=>Vi,getErrorDialogTemplate:()=>In,getExports:()=>ai,getFontawesomeIconsCss:()=>Ts,getNavItems:()=>rg,getPrefixedCategorizedMultiselect:()=>Ye,getPrefixedCronBuilder:()=>Td,getPrefixedDatePicker:()=>$o,getPrefixedErrorBanner:()=>cn,getPrefixedFileReader:()=>qn,getPrefixedFileUpload:()=>ta,getPrefixedFilterTemplate:()=>Ca,getPrefixedFlyout:()=>Qa,getPrefixedIcon:()=>Ds,getPrefixedMultiselect:()=>fr,getPrefixedScheduler:()=>zl,getPrefixedSchedulerTimezone:()=>Ad,getPrefixedSearchBar:()=>zd,getPrefixedSnackbar:()=>qc,getPrefixedStepper:()=>hg,getPrefixedStepperTab:()=>du,getPrefixedUrlInput:()=>Lp,getTypeRampValue:()=>si,inputControls:()=>pd,isAbsoluteUrl:()=>Xm,jsonConverter:()=>yl,mapType:()=>Ta,maxheight:()=>mr,media:()=>W,menuTemplate:()=>k,mixinFoundationFontFamily:()=>gi,multiselectStyles:()=>gr,multiselectTemplate:()=>br,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Qo,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>di,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,optionsMaxheight:()=>ze,paletteFromHex:()=>oi,pathJoin:()=>tg,plusIcon:()=>Gd,provideDesignSystem:()=>dl,provideTokens:()=>Zo,rebuildOperator:()=>bm,registerFoundationDesignSystem:()=>Cg,removeChildRouteParameter:()=>ig,removeLastPathSegment:()=>og,routerLogger:()=>zm,routerProperty:()=>Wm,ruleExpressionToGroup:()=>xm,ruleToRuleExpression:()=>vm,ruleToRuleMethodExpression:()=>gm,schedulerCronBuilderStyles:()=>hd,schedulerStyles:()=>Gl,schedulerTimezoneStyles:()=>Nd,singleOptionTemplate:()=>D,statusPillStyles:()=>iu,strokeWidth:()=>r.strokeWidth,swatchConverter:()=>ti,tagFor:()=>Mm,transformOperatorNameToServerName:()=>mm,transformServerNameToOperatorName:()=>fm,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,uploadFiles:()=>na,white:()=>No});var i={};o.r(i),o.d(i,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,defaultNeutralForegroundContrast:()=>Ko,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,fuiCardFillColor:()=>qo,fuiCardForegroundColor:()=>Xo,fuiFillColor:()=>Wo,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Qo,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var n={};o.r(n),o.d(n,{accentPaletteValue:()=>li,baseLayerLuminanceValue:()=>ci,controlCornerRadiusValue:()=>pi,designUnitValue:()=>hi,directionValue:()=>ui,neutralPaletteValue:()=>di});var a={};o.r(a),o.d(a,{BASE_LOGICAL_COMBINATORS:()=>jp,BASE_OPERATORS:()=>Qp,LOGICAL_COMBINATORS:()=>Vp,NULL_COMBINATOR:()=>Yp});var s=o(84674),r=o(54634),l=o(33681);const d=(e,t)=>l.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[480],{88480:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>I,Anchor:()=>L,AnchoredRegion:()=>B,Avatar:()=>q,Badge:()=>ee,Banner:()=>ce,BaseDatasource:()=>ft,BaseFileComponent:()=>Vn,Breadcrumb:()=>me,BreadcrumbItem:()=>Ce,Button:()=>Oe,COMBO_INPUT_MIN_LENGTH:()=>Wd,CSSVarsTokenMapper:()=>zp,Calendar:()=>Fe,Card:()=>Pe,CategorizedMultiselect:()=>Qe,Checkbox:()=>et,Combobox:()=>Mt,ConnectionIndicator:()=>Gt,DEFUALT_FILTER_BAR_COLUMNS:()=>Ia,DataGrid:()=>Wt,DataGridCell:()=>Jt,DataGridDatasource:()=>Gp,DataGridRow:()=>io,DatePicker:()=>Ro,DefaultRouter:()=>Km,Dialog:()=>ki,DialogElement:()=>Ti,Disclosure:()=>Fi,Divider:()=>Pi,DropdownMenu:()=>Wi,EnvironmentIndicator:()=>ln,ErrorBanner:()=>hn,ErrorBoundary:()=>Tn,ErrorBoundaryEvent:()=>vn,ErrorDialog:()=>Nn,ExpressionBuilderConfig:()=>a,ExpressionBuilderCore:()=>lm,FaPrefixFromStyle:()=>Ns,FileReader:()=>Qn,FileUpload:()=>ca,Filter:()=>$a,FilterBar:()=>Fa,FilterEvents:()=>xa,FlexLayout:()=>Ua,FlexMediaQueriesEnum:()=>Aa,Flipper:()=>ja,Flyout:()=>Ja,FoundationDesignSystemProvider:()=>yi,FoundationExpressionBuilder:()=>Yh,FoundationRouteCollection:()=>lv,FoundationRouteNav:()=>nv,FoundationRouter:()=>pv,FoundationRouterConfiguration:()=>dv,FoundationRuleExpressionBuilder:()=>$m,FoundationValueExpressionBuilder:()=>Dm,GenerateNavigationPathEventType:()=>uv,GridLayout:()=>ds,GridLayoutItem:()=>ms,GridMediaQueriesEnum:()=>os,HorizontalScroll:()=>bs,INPUT_MIN_LENGTH:()=>Yd,Icon:()=>Ms,Listbox:()=>Us,ListboxOption:()=>Ys,Menu:()=>Js,MenuItem:()=>nr,Modal:()=>pr,Multiselect:()=>wr,MultiselectDatasource:()=>gr,NavigateToEventType:()=>cv,NotificationListener:()=>Nm,NumberField:()=>Fr,OptionsDatasource:()=>It,Popper:()=>Cl,Position:()=>ze,Progress:()=>nl,ProgressRing:()=>Ol,Radio:()=>Fl,RadioGroup:()=>Pl,Router:()=>qm,RuleExpression:()=>dm,SCROLL_TIMEOUT:()=>Vd,SNACKBAR_CLOSE_TIMEOUT:()=>Vc,SNACKBAR_EVENTS_NAMES:()=>Yc,SNACKBAR_TYPES:()=>jc,SNACKBAR_TYPE_DEFAULT:()=>Gc,Scheduler:()=>Vl,SchedulerCronBuilder:()=>Dd,SchedulerTimezone:()=>Md,SearchBar:()=>Kd,SearchBarCombobox:()=>tc,SegmentedControl:()=>rc,SegmentedItem:()=>hc,Select:()=>yc,Skeleton:()=>Ec,Slider:()=>Nc,SliderLabel:()=>Hc,Snackbar:()=>Xc,StackingIcons:()=>tu,StatusPill:()=>su,Stepper:()=>gv,StepperTab:()=>uu,StepperTabPanel:()=>gu,Switch:()=>xu,SystemHealthOverlay:()=>pl,Tab:()=>ku,TabPanel:()=>Au,Tabs:()=>Uu,TextArea:()=>Yu,TextField:()=>ep,Toast:()=>lp,Toolbar:()=>pp,Tooltip:()=>bp,TreeItem:()=>Sp,TreeView:()=>Rp,UrlInput:()=>Hp,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>li,actionsMenuBaseStyles:()=>$,baseComponents:()=>Bp,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>ci,black:()=>Ao,bodyFont:()=>r.bodyFont,categorizedMultiselectStyles:()=>je,categorizedMultiselectTemplate:()=>We,clientOperators:()=>um,closeIcon:()=>va,configureDesignSystem:()=>ri,configureEnvironmentIndicator:()=>sn,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>pi,createDesignSystemProxy:()=>ll,createFormData:()=>ia,crossIcon:()=>Bd,defaultAccordionConfig:()=>h,defaultAccordionItemConfig:()=>y,defaultAnchorConfig:()=>_,defaultAnchoredRegionConfig:()=>G,defaultAvatarConfig:()=>Q,defaultBadgeConfig:()=>oe,defaultBreadcrumbConfig:()=>ge,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>ke,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Ue,defaultCategorizedMultiselectConfig:()=>Ke,defaultCheckboxConfig:()=>ot,defaultComboboxConfig:()=>Pt,defaultConfig:()=>Wl,defaultCronBuilderConfig:()=>Id,defaultDataGridCellConfig:()=>eo,defaultDataGridConfig:()=>Kt,defaultDataGridRowConfig:()=>ao,defaultDatePickerConfig:()=>Do,defaultDialogConfig:()=>Oi,defaultDisclosureConfig:()=>Ai,defaultDividerConfig:()=>Ui,defaultFileUploadConfig:()=>pa,defaultFillColor:()=>Mo,defaultFlexLayoutConfig:()=>Ha,defaultFlipperConfig:()=>Ya,defaultFlyoutConfig:()=>es,defaultGridLayoutConfig:()=>rs,defaultGridLayoutItemConfig:()=>hs,defaultHorizontalScrollConfig:()=>Cs,defaultIconConfig:()=>Fs,defaultListboxConfig:()=>zs,defaultListboxOptionConfig:()=>qs,defaultMenuConfig:()=>er,defaultMenuItemConfig:()=>sr,defaultModalConfig:()=>ur,defaultMultiselectConfig:()=>Cr,defaultNavItemPredicate:()=>av,defaultNeutralForegroundContrast:()=>Ko,defaultNumberFieldConfig:()=>Ar,defaultPlacementIndexPadding:()=>sv,defaultProgressConfig:()=>sl,defaultProgressRingConfig:()=>kl,defaultRadioConfig:()=>Al,defaultRadioGroupConfig:()=>Ul,defaultSearchBarComboboxConfig:()=>ic,defaultSearchBarConfig:()=>Xd,defaultSegmentedControlConfig:()=>dc,defaultSegmentedItemConfig:()=>vc,defaultSelectConfig:()=>wc,defaultSkeletonConfig:()=>Tc,defaultSliderConfig:()=>Lc,defaultSliderLabelConfig:()=>Bc,defaultStepperConfig:()=>bv,defaultStepperTabConfig:()=>hu,defaultStepperTabPanelConfig:()=>bu,defaultSwitchConfig:()=>Su,defaultSystemHealthOverlayConfig:()=>gl,defaultTabConfig:()=>Ru,defaultTabPanelConfig:()=>Mu,defaultTabsConfig:()=>zu,defaultTextAreaConfig:()=>qu,defaultTextFieldConfig:()=>op,defaultTimezoneConfig:()=>Pd,defaultToastConfig:()=>rp,defaultToolbarConfig:()=>mp,defaultTooltipConfig:()=>Cp,defaultTreeItemConfig:()=>Op,defaultTreeViewConfig:()=>Fp,defaultUrlInputConfig:()=>Pp,defineFactory:()=>Lm,density:()=>r.density,designToken:()=>ei,designUnit:()=>r.designUnit,designUnitValue:()=>hi,direction:()=>r.direction,directionValue:()=>ui,disabledOpacity:()=>r.disabledOpacity,downloadFile:()=>aa,dropdownMenuBaseStyles:()=>zi,environmentIndicatorStyles:()=>Qi,errorDialogTemplate:()=>In,extractMenuItems:()=>ji,faSizeValueDefault:()=>As,faSizeValues:()=>Ls,fileReaderStyles:()=>Yn,fileReaderTemplate:()=>Kn,fillColor:()=>r.fillColor,filterBarTemplate:()=>Da,findParentRouter:()=>Zm,findRouter:()=>Jm,findTopLevelRouter:()=>ev,flyoutAnimationTime:()=>qa,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>au,foundationAccordion:()=>m,foundationAccordionItem:()=>C,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>v,foundationAccordionItemTemplate:()=>g,foundationAccordionShadowOptions:()=>p,foundationAccordionStyles:()=>d,foundationAccordionTemplate:()=>c,foundationActionsMenu:()=>F,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>R,foundationAnchor:()=>P,foundationAnchorShadowOptions:()=>M,foundationAnchorStyles:()=>N,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>j,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>U,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>K,foundationAvatarStyles:()=>V,foundationAvatarTemplate:()=>Y,foundationBadge:()=>ie,foundationBadgeShadowOptions:()=>te,foundationBadgeStyles:()=>J,foundationBadgeTemplate:()=>Z,foundationBanner:()=>ue,foundationBannerShadowOptions:()=>de,foundationBannerStyles:()=>se,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>fe,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>be,foundationBreadcrumbItemTemplate:()=>ye,foundationBreadcrumbShadowOptions:()=>ve,foundationBreadcrumbStyles:()=>pe,foundationBreadcrumbTemplate:()=>he,foundationButton:()=>De,foundationButtonShadowOptions:()=>Te,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ee,foundationCalendar:()=>Le,foundationCalendarShadowOptions:()=>Ne,foundationCalendarStyles:()=>Re,foundationCalendarTemplate:()=>Ie,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Me,foundationCardTemplate:()=>_e,foundationCategorizedMultiselect:()=>Xe,foundationCategorizedMultiselectShadowOptions:()=>qe,foundationCheckbox:()=>it,foundationCheckboxShadowOptions:()=>tt,foundationCheckboxStyles:()=>Je,foundationCheckboxTemplate:()=>Ze,foundationCombobox:()=>Ht,foundationComboboxShadowOptions:()=>_t,foundationComboboxStyles:()=>Ft,foundationComboboxTemplate:()=>Nt,foundationConnectionIndicator:()=>jt,foundationConnectionIndicatorStyles:()=>Bt,foundationConnectionIndicatorTemplate:()=>zt,foundationDataGrid:()=>Qt,foundationDataGridCell:()=>to,foundationDataGridCellShadowOptions:()=>Zt,foundationDataGridCellStyles:()=>Xt,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>so,foundationDataGridRowShadowOptions:()=>no,foundationDataGridRowStyles:()=>oo,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>qt,foundationDataGridStyles:()=>Vt,foundationDataGridTemplate:()=>Yt,foundationDatePicker:()=>Io,foundationDatePickerShadowOptions:()=>ko,foundationDatePickerStyles:()=>wo,foundationDatePickerTemplate:()=>So,foundationDesignSystemProvider:()=>Ci,foundationDialog:()=>Di,foundationDialogShadowOptions:()=>Ei,foundationDialogStyles:()=>xi,foundationDialogTemplate:()=>Si,foundationDisclosure:()=>Li,foundationDisclosureShadowOptions:()=>Ni,foundationDisclosureStyles:()=>Ri,foundationDisclosureTemplate:()=>Ii,foundationDivider:()=>Bi,foundationDividerShadowOptions:()=>Hi,foundationDividerStyles:()=>Mi,foundationDividerTemplate:()=>_i,foundationDropdownMenu:()=>qi,foundationDropdownMenuStyles:()=>Gi,foundationDropdownMenuTemplate:()=>Yi,foundationEnvironmentIndicator:()=>dn,foundationEnvironmentIndicatorTemplate:()=>Xi,foundationErrorBanner:()=>mn,foundationErrorBannerShadowOptions:()=>pn,foundationErrorBannerTemplate:()=>un,foundationErrorBoundary:()=>kn,foundationErrorBoundaryShadowOptions:()=>On,foundationErrorBoundaryTemplate:()=>En,foundationErrorDialog:()=>An,foundationErrorDialogShadowOptions:()=>Fn,foundationErrorDialogStyles:()=>Dn,foundationFileReader:()=>Xn,foundationFileReaderStyles:()=>Wn,foundationFileUpload:()=>ha,foundationFileUploadShadowOptions:()=>ua,foundationFileUploadStyles:()=>ea,foundationFileUploadTemplate:()=>oa,foundationFilter:()=>Sa,foundationFilterBar:()=>Na,foundationFilterBarStyles:()=>Oa,foundationFilterBarTemplate:()=>Ra,foundationFilterStyles:()=>ma,foundationFilterTemplate:()=>wa,foundationFlexLayout:()=>Ba,foundationFlexLayoutShadowOptions:()=>Pa,foundationFlexLayoutStyles:()=>Ma,foundationFlexLayoutTemplate:()=>_a,foundationFlipper:()=>Wa,foundationFlipperShadowOptions:()=>Va,foundationFlipperStyles:()=>za,foundationFlipperTemplate:()=>Ga,foundationFlyout:()=>ts,foundationFlyoutShadowOptions:()=>Za,foundationFlyoutStyles:()=>Ka,foundationFlyoutTemplate:()=>Xa,foundationGridLayout:()=>cs,foundationGridLayoutItem:()=>vs,foundationGridLayoutItemShadowOptions:()=>ps,foundationGridLayoutItemTemplate:()=>us,foundationGridLayoutShadowOptions:()=>ss,foundationGridLayoutStyles:()=>ns,foundationGridLayoutTemplate:()=>as,foundationHorizontalScroll:()=>ws,foundationHorizontalScrollShadowOptions:()=>ys,foundationHorizontalScrollStyles:()=>gs,foundationHorizontalScrollTemplate:()=>fs,foundationIcon:()=>_s,foundationIconShadowOptions:()=>Is,foundationIconStyles:()=>ks,foundationIconTemplate:()=>Rs,foundationListbox:()=>Gs,foundationListboxOption:()=>Ks,foundationListboxOptionShadowOptions:()=>Ws,foundationListboxOptionStyles:()=>js,foundationListboxOptionTemplate:()=>Vs,foundationListboxShadowOptions:()=>Bs,foundationListboxStyles:()=>Ps,foundationListboxTemplate:()=>Hs,foundationMenu:()=>tr,foundationMenuItem:()=>rr,foundationMenuItemShadowOptions:()=>ar,foundationMenuItemStyles:()=>or,foundationMenuItemTemplate:()=>ir,foundationMenuShadowOptions:()=>Zs,foundationMenuStyles:()=>Qs,foundationMenuTemplate:()=>Xs,foundationModal:()=>hr,foundationModalShadowOptions:()=>cr,foundationModalStyles:()=>lr,foundationModalTemplate:()=>dr,foundationMultiselect:()=>xr,foundationMultiselectShadowOptions:()=>yr,foundationNotificationListener:()=>Am,foundationNotificationListenerShadowOptions:()=>Fm,foundationNotificationListenerTemplate:()=>Rm,foundationNumberField:()=>Lr,foundationNumberFieldShadowOptions:()=>Nr,foundationNumberFieldStyles:()=>Sr,foundationNumberFieldTemplate:()=>Er,foundationPopper:()=>$l,foundationProgress:()=>rl,foundationProgressRing:()=>Dl,foundationProgressRingShadowOptions:()=>Tl,foundationProgressRingStyles:()=>Sl,foundationProgressRingTemplate:()=>El,foundationProgressShadowOptions:()=>al,foundationProgressStyles:()=>ol,foundationProgressTemplate:()=>il,foundationRadio:()=>Ll,foundationRadioGroup:()=>Bl,foundationRadioGroupShadowOptions:()=>Hl,foundationRadioGroupStyles:()=>Ml,foundationRadioGroupTemplate:()=>_l,foundationRadioShadowOptions:()=>Nl,foundationRadioStyles:()=>Rl,foundationRadioTemplate:()=>Il,foundationScheduler:()=>ql,foundationSchedulerCronBuilder:()=>Fd,foundationSchedulerCronBuilderShadowOptions:()=>Rd,foundationSchedulerCronBuilderTemplate:()=>kd,foundationSchedulerShadowOptions:()=>Yl,foundationSchedulerTemplate:()=>jl,foundationSchedulerTimezone:()=>Hd,foundationSchedulerTimezoneShadowOptions:()=>_d,foundationSchedulerTimezoneTemplate:()=>Ld,foundationSearchBar:()=>Jd,foundationSearchBarCombobox:()=>nc,foundationSearchBarComboboxShadowOptions:()=>oc,foundationSearchBarComboboxStyles:()=>Zd,foundationSearchBarComboboxTemplate:()=>ec,foundationSearchBarShadowOptions:()=>Qd,foundationSearchBarStyles:()=>Ud,foundationSearchBarTemplate:()=>jd,foundationSegmentedControl:()=>cc,foundationSegmentedControlShadowOptions:()=>lc,foundationSegmentedControlStyles:()=>ac,foundationSegmentedControlTemplate:()=>sc,foundationSegmentedItem:()=>gc,foundationSegmentedItemShadowOptions:()=>mc,foundationSegmentedItemStyles:()=>uc,foundationSegmentedItemTemplate:()=>pc,foundationSelect:()=>xc,foundationSelectShadowOptions:()=>Cc,foundationSelectStyles:()=>fc,foundationSelectTemplate:()=>bc,foundationSkeleton:()=>kc,foundationSkeletonShadowOptions:()=>Oc,foundationSkeletonStyles:()=>$c,foundationSkeletonTemplate:()=>Sc,foundationSlider:()=>Mc,foundationSliderLabel:()=>zc,foundationSliderLabelShadowOptions:()=>Uc,foundationSliderLabelStyles:()=>_c,foundationSliderLabelTemplate:()=>Pc,foundationSliderShadowOptions:()=>Ac,foundationSliderStyles:()=>Dc,foundationSliderTemplate:()=>Fc,foundationSnackbar:()=>Jc,foundationSnackbarShadowOptions:()=>Qc,foundationSnackbarStyles:()=>Wc,foundationSnackbarTemplate:()=>Kc,foundationStackingIcons:()=>ou,foundationStackingIconsStyles:()=>Zc,foundationStackingIconsTemplate:()=>eu,foundationStatusPill:()=>ru,foundationStatusPillTemplate:()=>nu,foundationStepper:()=>yv,foundationStepperShadowOptions:()=>fv,foundationStepperStyles:()=>vv,foundationStepperTab:()=>mu,foundationStepperTabPanel:()=>yu,foundationStepperTabPanelShadowOptions:()=>fu,foundationStepperTabPanelTemplate:()=>vu,foundationStepperTabShadowOptions:()=>pu,foundationStepperTabStyles:()=>lu,foundationStepperTabTemplate:()=>cu,foundationStepperTemplate:()=>mv,foundationSwitch:()=>Eu,foundationSwitchShadowOptions:()=>$u,foundationSwitchStyles:()=>Cu,foundationSwitchTemplate:()=>wu,foundationSystemHealthOverlay:()=>fl,foundationSystemHealthOverlayShadowOptions:()=>vl,foundationSystemHealthOverlayStyles:()=>ml,foundationSystemHealthOverlayTemplate:()=>hl,foundationTab:()=>Iu,foundationTabPanel:()=>_u,foundationTabPanelShadowOptions:()=>Lu,foundationTabPanelStyles:()=>Fu,foundationTabPanelTemplate:()=>Nu,foundationTabShadowOptions:()=>Du,foundationTabStyles:()=>Ou,foundationTabTemplate:()=>Tu,foundationTabs:()=>Gu,foundationTabsShadowOptions:()=>Bu,foundationTabsStyles:()=>Pu,foundationTabsTemplate:()=>Hu,foundationTextArea:()=>Ku,foundationTextAreaShadowOptions:()=>Wu,foundationTextAreaStyles:()=>ju,foundationTextAreaTemplate:()=>Vu,foundationTextField:()=>ip,foundationTextFieldShadowOptions:()=>tp,foundationTextFieldStyles:()=>Ju,foundationTextFieldTemplate:()=>Zu,foundationToast:()=>dp,foundationToastShadowOptions:()=>sp,foundationToastStyles:()=>np,foundationToastTemplate:()=>ap,foundationToolbar:()=>vp,foundationToolbarShadowOptions:()=>hp,foundationToolbarStyles:()=>cp,foundationToolbarTemplate:()=>up,foundationTooltip:()=>wp,foundationTooltipShadowOptions:()=>yp,foundationTooltipStyles:()=>gp,foundationTooltipTemplate:()=>fp,foundationTreeItem:()=>Tp,foundationTreeItemShadowOptions:()=>Ep,foundationTreeItemStyles:()=>xp,foundationTreeItemTemplate:()=>$p,foundationTreeView:()=>Np,foundationTreeViewShadowOptions:()=>Ip,foundationTreeViewStyles:()=>kp,foundationTreeViewTemplate:()=>Dp,foundationUrlInput:()=>Up,foundationUrlInputShadowOptions:()=>_p,foundationUrlInputStyles:()=>Ap,foundationUrlInputTemplate:()=>Mp,fromBinaryExpression:()=>ym,fromMethodExpression:()=>wm,fuiAccentPalette:()=>Vo,fuiAccentSwatch:()=>jo,fuiCardFillColor:()=>qo,fuiCardForegroundColor:()=>Xo,fuiDefaultCardFillColor:()=>Po,fuiDefaultCardPalette:()=>Ho,fuiFillColor:()=>Wo,fuiNeutralPalette:()=>zo,fuiNeutralSwatch:()=>Bo,getBannerTemplate:()=>re,getCriteriaBuilder:()=>qd,getDefaultConfig:()=>ni,getDesignSystemPrefix:()=>T,getDialogTemplate:()=>$i,getDropdownMenuTemplate:()=>Vi,getErrorDialogTemplate:()=>Rn,getExports:()=>ai,getFontawesomeIconsCss:()=>Ts,getNavItems:()=>rv,getPrefixedCategorizedMultiselect:()=>Ye,getPrefixedCronBuilder:()=>Td,getPrefixedDatePicker:()=>$o,getPrefixedErrorBanner:()=>cn,getPrefixedFileReader:()=>qn,getPrefixedFileUpload:()=>ta,getPrefixedFilterTemplate:()=>Ca,getPrefixedFlyout:()=>Qa,getPrefixedIcon:()=>Ds,getPrefixedMultiselect:()=>fr,getPrefixedScheduler:()=>Gl,getPrefixedSchedulerTimezone:()=>Ad,getPrefixedSearchBar:()=>Gd,getPrefixedSnackbar:()=>qc,getPrefixedStepper:()=>hv,getPrefixedStepperTab:()=>du,getPrefixedUrlInput:()=>Lp,getTypeRampValue:()=>si,inputControls:()=>pd,isAbsoluteUrl:()=>Xm,jsonConverter:()=>yl,mapType:()=>Ta,maxheight:()=>mr,media:()=>W,menuTemplate:()=>k,mixinFoundationFontFamily:()=>vi,multiselectStyles:()=>vr,multiselectTemplate:()=>br,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Qo,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>di,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,optionsMaxheight:()=>Ge,paletteFromHex:()=>oi,pathJoin:()=>tv,plusIcon:()=>zd,provideDesignSystem:()=>dl,provideTokens:()=>Zo,rebuildOperator:()=>bm,registerFoundationDesignSystem:()=>Cv,removeChildRouteParameter:()=>iv,removeLastPathSegment:()=>ov,routerLogger:()=>Gm,routerProperty:()=>Wm,ruleExpressionToGroup:()=>xm,ruleToRuleExpression:()=>gm,ruleToRuleMethodExpression:()=>vm,schedulerCronBuilderStyles:()=>hd,schedulerStyles:()=>zl,schedulerTimezoneStyles:()=>Nd,singleOptionTemplate:()=>D,statusPillStyles:()=>iu,strokeWidth:()=>r.strokeWidth,swatchConverter:()=>ti,tagFor:()=>Mm,transformOperatorNameToServerName:()=>mm,transformServerNameToOperatorName:()=>fm,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,uploadFiles:()=>na,white:()=>No});var i={};o.r(i),o.d(i,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,defaultNeutralForegroundContrast:()=>Ko,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,fuiCardFillColor:()=>qo,fuiCardForegroundColor:()=>Xo,fuiFillColor:()=>Wo,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Qo,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var n={};o.r(n),o.d(n,{accentPaletteValue:()=>li,baseLayerLuminanceValue:()=>ci,controlCornerRadiusValue:()=>pi,designUnitValue:()=>hi,directionValue:()=>ui,neutralPaletteValue:()=>di});var a={};o.r(a),o.d(a,{BASE_LOGICAL_COMBINATORS:()=>jp,BASE_OPERATORS:()=>Qp,LOGICAL_COMBINATORS:()=>Vp,NULL_COMBINATOR:()=>Yp});var s=o(84674),r=o(54634),l=o(33681);const d=(e,t)=>l.css`
2
2
  ${(0,r.accordionStyles)(e,t)}
3
- `,c=(e,t)=>(0,s.accordionTemplate)(e,t);class u extends s.Accordion{}const p={delegatesFocus:!0,mode:"open"},h={},m=u.compose(Object.assign({baseName:"accordion",template:c,styles:d,shadowOptions:p},h)),g=(e,t)=>l.css`
3
+ `,c=(e,t)=>(0,s.accordionTemplate)(e,t);class u extends s.Accordion{}const p={delegatesFocus:!0,mode:"open"},h={},m=u.compose(Object.assign({baseName:"accordion",template:c,styles:d,shadowOptions:p},h)),v=(e,t)=>l.css`
4
4
  ${(0,r.accordionItemStyles)(e,t)}
5
5
 
6
6
  slot[name='collapsed-icon'] {
@@ -14,7 +14,7 @@
14
14
  stroke: var(--accent-foreground-rest);
15
15
  fill: none;
16
16
  }
17
- `,v=(e,t)=>(0,s.accordionItemTemplate)(e,t);class f extends r.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},C=f.compose(Object.assign({baseName:"accordion-item",template:v,styles:g,shadowOptions:b},y));var w=o(55823),x=o(31679);const $=(e,t)=>l.css`
17
+ `,g=(e,t)=>(0,s.accordionItemTemplate)(e,t);class f extends r.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},C=f.compose(Object.assign({baseName:"accordion-item",template:g,styles:v,shadowOptions:b},y));var w=o(55823),x=o(31679);const $=(e,t)=>l.css`
18
18
  :host {
19
19
  --actions-opener-height-multiplier: 0.7px;
20
20
  --actions-opener-bg-color: 249 254 255;
@@ -153,18 +153,18 @@
153
153
  >
154
154
  ${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
155
155
  </${e}-button>
156
- `,I=l.html`
156
+ `,R=l.html`
157
157
  <div
158
158
  class="actions-container${e=>e.isVertical?" actions-vertical":""}"
159
159
  part="actions-container"
160
160
  >
161
161
  ${e=>e.getTemplate(T(e))}
162
162
  </div>
163
- `;class R extends s.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,x.x)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return k(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],D(e)):k(e):void 0}}(0,w.Cg)([l.observable],R.prototype,"actions",void 0),(0,w.Cg)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],R.prototype,"isVertical",void 0),(0,w.Cg)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],R.prototype,"addDefaultActions",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],R.prototype,"autoCloseOnAction",void 0),(0,w.Cg)([l.observable],R.prototype,"classNames",void 0),(0,w.Cg)([l.observable],R.prototype,"definition",void 0),(0,w.Cg)([l.attr],R.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],R.prototype,"open",void 0),(0,w.Cg)([l.attr],R.prototype,"buttonAppearance",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],R.prototype,"hideDisabled",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],R.prototype,"hideMenuSingleOption",void 0),(0,w.Cg)([l.observable],R.prototype,"singleOption",void 0);const F=R.compose({baseName:"actions-menu",styles:S,template:I}),N=(e,t)=>l.css`
163
+ `;class I extends s.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,x.x)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return k(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],D(e)):k(e):void 0}}(0,w.Cg)([l.observable],I.prototype,"actions",void 0),(0,w.Cg)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],I.prototype,"isVertical",void 0),(0,w.Cg)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],I.prototype,"addDefaultActions",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],I.prototype,"autoCloseOnAction",void 0),(0,w.Cg)([l.observable],I.prototype,"classNames",void 0),(0,w.Cg)([l.observable],I.prototype,"definition",void 0),(0,w.Cg)([l.attr],I.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],I.prototype,"open",void 0),(0,w.Cg)([l.attr],I.prototype,"buttonAppearance",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],I.prototype,"hideDisabled",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],I.prototype,"hideMenuSingleOption",void 0),(0,w.Cg)([l.observable],I.prototype,"singleOption",void 0);const F=I.compose({baseName:"actions-menu",styles:S,template:R}),N=(e,t)=>l.css`
164
164
  ${(0,r.anchorStyles)(e,t)}
165
165
  `,A=(e,t)=>(0,s.anchorTemplate)(e,t);class L extends r.Anchor{}const M={delegatesFocus:!0,mode:"open"},_={},P=L.compose(Object.assign({baseName:"anchor",template:A,styles:N,shadowOptions:M},_)),H=(e,t)=>(0,s.anchoredRegionTemplate)(e,t),U=(e,t)=>l.css`
166
166
  ${(0,r.anchoredRegionStyles)(e,t)}
167
- `;class B extends r.AnchoredRegion{}const G={delegatesFocus:!0,mode:"open"},z={},j=B.compose(Object.assign({baseName:"anchored-region",template:H,styles:U,shadowOptions:G},z)),V=(e,t)=>l.css`
167
+ `;class B extends r.AnchoredRegion{}const z={delegatesFocus:!0,mode:"open"},G={},j=B.compose(Object.assign({baseName:"anchored-region",template:H,styles:U,shadowOptions:z},G)),V=(e,t)=>l.css`
168
168
  ${(0,r.avatarStyles)(e,t)}
169
169
  `,Y=(e,t)=>(0,s.avatarTemplate)(e,t),W=l.html`
170
170
  ${(0,l.when)((e=>e.imgSrc),l.html`
@@ -172,7 +172,7 @@
172
172
  `)}
173
173
  `;class q extends r.Avatar{}const K={delegatesFocus:!0,mode:"open"},Q={media:W},X=q.compose(Object.assign({baseName:"avatar",template:Y,styles:V,shadowOptions:K},Q)),J=(e,t)=>l.css`
174
174
  ${(0,r.badgeStyles)(e,t)}
175
- `,Z=(e,t)=>(0,s.badgeTemplate)(e,t);class ee extends r.Badge{}const te=void 0,oe={},ie=ee.compose(Object.assign({baseName:"badge",template:Z,styles:J,shadowOptions:te},oe));var ne=o(50995);const ae=(0,ne.createLogger)("foundation-ui"),se=l.css`
175
+ `,Z=(e,t)=>(0,s.badgeTemplate)(e,t);class ee extends r.Badge{}const te=void 0,oe={},ie=ee.compose(Object.assign({baseName:"badge",template:Z,styles:J,shadowOptions:te},oe));var ne=o(10146);const ae=(0,ne.createLogger)("foundation-ui"),se=l.css`
176
176
  @keyframes delete-animate {
177
177
  from {
178
178
  height: 100px;
@@ -276,19 +276,19 @@
276
276
  ${e=>re(T(e))}
277
277
  `,de={mode:"open",delegatesFocus:!0};class ce extends s.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}dismissNotification(){return(0,w.sH)(this,void 0,void 0,(function*(){try{yield this.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,w.Cg)([l.observable],ce.prototype,"dismissAnimation",void 0),(0,w.Cg)([l.observable],ce.prototype,"notification",void 0);const ue=ce.compose({baseName:"banner",styles:se,template:le,shadowOptions:de}),pe=(e,t)=>l.css`
278
278
  ${(0,r.breadcrumbStyles)(e,t)}
279
- `,he=(e,t)=>(0,s.breadcrumbTemplate)(e,t);class me extends r.Breadcrumb{}const ge=void 0,ve={},fe=me.compose(Object.assign({baseName:"breadcrumb",template:he,styles:pe,shadowOptions:ge},ve)),be=(e,t)=>l.css`
279
+ `,he=(e,t)=>(0,s.breadcrumbTemplate)(e,t);class me extends r.Breadcrumb{}const ve=void 0,ge={},fe=me.compose(Object.assign({baseName:"breadcrumb",template:he,styles:pe,shadowOptions:ve},ge)),be=(e,t)=>l.css`
280
280
  ${(0,r.breadcrumbItemStyles)(e,t)}
281
281
  `,ye=(e,t)=>(0,s.breadcrumbItemTemplate)(e,t);class Ce extends r.BreadcrumbItem{}const we=void 0,xe={separator:"/"},$e=Ce.compose(Object.assign({baseName:"breadcrumb-item",template:ye,styles:be,shadowOptions:we},xe)),Se=(e,t)=>l.css`
282
282
  ${(0,r.buttonStyles)(e,t)}
283
- `,Ee=(e,t)=>(0,s.buttonTemplate)(e,t);class Oe extends r.Button{}const Te={delegatesFocus:!0,mode:"open"},ke={},De=Oe.compose(Object.assign({baseName:"button",template:Ee,styles:Se,shadowOptions:Te},ke)),Ie=()=>l.css`
283
+ `,Ee=(e,t)=>(0,s.buttonTemplate)(e,t);class Oe extends r.Button{}const Te={delegatesFocus:!0,mode:"open"},ke={},De=Oe.compose(Object.assign({baseName:"button",template:Ee,styles:Se,shadowOptions:Te},ke)),Re=()=>l.css`
284
284
  ${r.CalendarStyles}
285
- `,Re=(e,t)=>(0,s.calendarTemplate)(e,t);class Fe extends r.Calendar{}const Ne={delegatesFocus:!0,mode:"open"},Ae={},Le=Fe.compose(Object.assign({baseName:"calendar",template:Re,styles:Ie,shadowOptions:Ne},Ae)),Me=(e,t)=>l.css`
285
+ `,Ie=(e,t)=>(0,s.calendarTemplate)(e,t);class Fe extends r.Calendar{}const Ne={delegatesFocus:!0,mode:"open"},Ae={},Le=Fe.compose(Object.assign({baseName:"calendar",template:Ie,styles:Re,shadowOptions:Ne},Ae)),Me=(e,t)=>l.css`
286
286
  ${(0,r.cardStyles)(e,t)}
287
287
  :host {
288
288
  background-color: var(--fui-card-fill-color);
289
289
  color: var(--fui-card-foreground-color);
290
290
  }
291
- `,_e=(e,t)=>(0,s.cardTemplate)(e,t);class Pe extends r.Card{}const He=void 0,Ue={},Be=Pe.compose(Object.assign({baseName:"card",template:_e,styles:Me,shadowOptions:He},Ue));var Ge;!function(e){e.BELOW="below",e.ABOVE="above"}(Ge||(Ge={}));const ze=450,je=l.css`
291
+ `,_e=(e,t)=>(0,s.cardTemplate)(e,t);class Pe extends r.Card{}const He=void 0,Ue={},Be=Pe.compose(Object.assign({baseName:"card",template:_e,styles:Me,shadowOptions:He},Ue));var ze;!function(e){e.BELOW="below",e.ABOVE="above"}(ze||(ze={}));const Ge=450,je=l.css`
292
292
  .root {
293
293
  position: relative;
294
294
  width: 100%;
@@ -475,7 +475,7 @@
475
475
 
476
476
  .visible {
477
477
  visibility: visible;
478
- max-height: ${ze.toString()}px;
478
+ max-height: ${Ge.toString()}px;
479
479
  }
480
480
  `;var Ve=o(40729);const Ye=(e="foundation")=>l.html`
481
481
  <div class="root" part="root">
@@ -548,9 +548,9 @@
548
548
  </div>
549
549
  `,We=l.html`
550
550
  ${Ye()}
551
- `,qe=void 0,Ke={};class Qe extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=Ge.BELOW}openChanged(e,t){var o,i;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===Ge.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce(((e,t)=>{const o=t.type||"Other";return e[o]?e[o].options.push(t):e[o]={type:o,options:[t]},e}),{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const o=t.getBoundingClientRect(),i=this.getBoundingClientRect(),n=o.top+o.height/2;e=i.top<n?Ge.BELOW:Ge.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,n=o-t.bottom;e=n<t.height&&i>n?Ge.ABOVE:Ge.BELOW}}e===Ge.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===Ge.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter((e=>{var t;const o=e.description,i=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==o?void 0:o.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||i.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0}));this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}}(0,w.Cg)([l.attr],Qe.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],Qe.prototype,"autoPosition",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Qe.prototype,"search",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Qe.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Qe.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],Qe.prototype,"valueFormatter",void 0),(0,w.Cg)([l.observable],Qe.prototype,"filterSearchValue",void 0),(0,w.Cg)([l.observable],Qe.prototype,"open",void 0),(0,w.Cg)([l.observable],Qe.prototype,"options",void 0),(0,w.Cg)([l.observable],Qe.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],Qe.prototype,"filteredAvailableOptions",void 0),(0,w.Cg)([l.observable],Qe.prototype,"position",void 0),(0,w.Cg)([l.volatile],Qe.prototype,"getPlaceholder",null);const Xe=Qe.compose(Object.assign({baseName:"categorized-multiselect",template:We,styles:je,shadowOptions:qe},Ke)),Je=(e,t)=>l.css`
551
+ `,qe=void 0,Ke={};class Qe extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=ze.BELOW}openChanged(e,t){var o,i;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce(((e,t)=>{const o=t.type||"Other";return e[o]?e[o].options.push(t):e[o]={type:o,options:[t]},e}),{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const o=t.getBoundingClientRect(),i=this.getBoundingClientRect(),n=o.top+o.height/2;e=i.top<n?ze.BELOW:ze.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,n=o-t.bottom;e=n<t.height&&i>n?ze.ABOVE:ze.BELOW}}e===ze.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ze.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter((e=>{var t;const o=e.description,i=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==o?void 0:o.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||i.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0}));this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}}(0,w.Cg)([l.attr],Qe.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],Qe.prototype,"autoPosition",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Qe.prototype,"search",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Qe.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Qe.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],Qe.prototype,"valueFormatter",void 0),(0,w.Cg)([l.observable],Qe.prototype,"filterSearchValue",void 0),(0,w.Cg)([l.observable],Qe.prototype,"open",void 0),(0,w.Cg)([l.observable],Qe.prototype,"options",void 0),(0,w.Cg)([l.observable],Qe.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],Qe.prototype,"filteredAvailableOptions",void 0),(0,w.Cg)([l.observable],Qe.prototype,"position",void 0),(0,w.Cg)([l.volatile],Qe.prototype,"getPlaceholder",null);const Xe=Qe.compose(Object.assign({baseName:"categorized-multiselect",template:We,styles:je,shadowOptions:qe},Ke)),Je=(e,t)=>l.css`
552
552
  ${(0,r.checkboxStyles)(e,t)}
553
- `,Ze=(e,t)=>(0,s.checkboxTemplate)(e,t);class et extends r.Checkbox{}const tt=void 0,ot={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},it=et.compose(Object.assign({baseName:"checkbox",template:Ze,styles:Je,shadowOptions:tt},ot));var nt=o(39087),at=o(62051),st=o.n(at),rt=o(40370),lt=o(6884),dt=o(96730),ct=o(21281),ut=o(34193),pt=o(41119),ht=o(26347),mt=o(9033),gt=o(12066),vt=o(97156);class ft extends((0,rt.C)(s.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=lt.OD.MAX_ROWS_250,this.maxView=lt.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new vt.t(new Map)}criteriaChanged(e,t){const o=e!==(0,dt.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,w.sH)(this,arguments,void 0,(function*(e=!0){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===ct.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,ut.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}initDatasource(){return(0,w.sH)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,dt.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find((t=>t.name===e))}getDefaultLabelFormat(e,t){return t===pt.w.DATE||t===pt.w.DATETIME?(0,gt.Ey)(e,t===pt.w.DATETIME):e}}(0,w.Cg)([ht.dm],ft.prototype,"connect",void 0),(0,w.Cg)([mt.yW],ft.prototype,"datasource",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"withGridInit",void 0),(0,w.Cg)([l.attr],ft.prototype,"criteria",void 0),(0,w.Cg)([l.observable],ft.prototype,"data",void 0),(0,w.Cg)([l.attr],ft.prototype,"fields",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"isSnapshot",void 0),(0,w.Cg)([l.attr],ft.prototype,"maxRows",void 0),(0,w.Cg)([l.attr],ft.prototype,"maxView",void 0),(0,w.Cg)([l.attr],ft.prototype,"orderBy",void 0),(0,w.Cg)([l.attr],ft.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"reverse",void 0),(0,w.Cg)([l.attr],ft.prototype,"rowId",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ft.prototype,"withTimestampFormatting",void 0);const bt=(0,ne.createLogger)("foundation-criteria");var yt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(yt||(yt={}));class Ct{constructor(e){this.$$operator=e}static And(){return new Ct(yt.AND)}static Or(){return new Ct(yt.OR)}static Not(){return new Ct(yt.NOT)}static GreaterThan(){return new Ct(yt.GT)}static GreaterThanOrEqual(){return new Ct(yt.GE)}static LessThan(){return new Ct(yt.LT)}static LessThanOrEqual(){return new Ct(yt.LE)}static NotEqual(){return new Ct(yt.NE)}static Equal(){return new Ct(yt.EQ)}get operator(){return this.$$operator}}const wt="default";class xt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Ct.And()),this.Or=(e,t={})=>this.withExpression(e,t,Ct.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Ct.Not())}withExpression(e,t={},o=Ct.And()){const{condition:i,join:n,groupName:a}=t,s=(e,t=wt)=>{var a;const s=null!==(a=this.expressions[t])&&void 0!==a?a:[];this.expressions[t]=[...s,{join:o||n,condition:i,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter((e=>{const t=e instanceof Ct;return t&&bt.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(a)t.forEach((e=>{s(e,a)}));else{const e=(r=n,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,wt)}}else s(e,wt);else s(e,"string"==typeof e?wt:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof Ct){if(o[t-1]instanceof Ct)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Ct?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const $t=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},St=e=>t=>`${t.field} ${e} ${$t(t)}`,Et=e=>St(yt.EQ)(e),Ot=e=>`Expr.containsIgnoreCase(${e.field}, ${$t(e)})`;class Tt{constructor(e){this.serialiser=Et,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function kt(e,t){var o;const i=new xt;i.withExpression((new Tt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(Ot).build()),e.criteria=i.build()}function Dt(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var It;let Rt=It=class extends ft{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.resizeObserverCallback=e=>{e.forEach((e=>{this.checkOverflow(e.target)}))},this.selectChangeHandler=e=>{var t;const o=e.target.value,i=null===(t=this.options)||void 0===t?void 0:t.find((e=>String(e.label)===o));!i&&this.allowCustomOptions&&this.select instanceof r.Combobox?this.select.$emit("value-change",{label:o,value:o}):this.select.$emit("value-change",i)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData())}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t,o;e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${T(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.fetchData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),this.select.removeEventListener("change",this.selectChangeHandler)}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof r.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,w.sH)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===nt.v.DATASERVER&&kt(this,this.initialSelectedValue),e===nt.v.REQUEST_SERVER&&Dt(this,this.initialSelectedValue)}))}clearData(){this.select&&(Array.from(this.select.children).forEach((e=>{e instanceof It||this.select.removeChild(e)})),this.select.value="",this.select.initialValue="")}checkOverflow(e){const t=e.shadowRoot.querySelector(".content");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",e.textContent):e.removeAttribute("title"))}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.options=t.map((e=>{var t;return{value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e),this.resizeObserver.observe(e)})),!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async){this.resetCombobox();const e=this.getInitialLabel();l.DOM.queueUpdate((()=>{this.select.value=String(e)})),this.initalSelectedValueInitialized=!0}}else{this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async)&&(this.resetCombobox(),l.DOM.queueUpdate((()=>{this.select.value=String(this.initialSelectedValue)})),this.initalSelectedValueInitialized=!0);const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}getInitialLabel(){var e,t;let o="";return(this.initialSelectedValue||0===this.initialSelectedValue)&&(o=this.allowCustomOptions&&this.select instanceof r.Combobox?(null===(e=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===e?void 0:e.label)||this.initialSelectedValue:(null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label)||""),o}resetCombobox(){this.select&&this.select instanceof r.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.Cg)([(0,l.attr)({attribute:"label-field"})],Rt.prototype,"labelField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"option-element"})],Rt.prototype,"optionElement",void 0),(0,w.Cg)([(0,l.attr)({attribute:"value-field"})],Rt.prototype,"valueField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"empty-data-label"})],Rt.prototype,"emptyDataLabel",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"allow-custom-options"})],Rt.prototype,"allowCustomOptions",void 0),(0,w.Cg)([l.observable],Rt.prototype,"labelFormatter",void 0),(0,w.Cg)([l.observable],Rt.prototype,"initialSelectedValue",void 0),Rt=It=(0,w.Cg)([(0,l.customElement)({name:"options-datasource"})],Rt);const Ft=(e,t)=>l.css`
553
+ `,Ze=(e,t)=>(0,s.checkboxTemplate)(e,t);class et extends r.Checkbox{}const tt=void 0,ot={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},it=et.compose(Object.assign({baseName:"checkbox",template:Ze,styles:Je,shadowOptions:tt},ot));var nt=o(39087),at=o(62051),st=o.n(at),rt=o(40370),lt=o(6884),dt=o(96730),ct=o(21281),ut=o(34193),pt=o(41119),ht=o(26347),mt=o(9033),vt=o(12066),gt=o(97156);class ft extends((0,rt.C)(s.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=lt.OD.MAX_ROWS_250,this.maxView=lt.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new gt.t(new Map)}criteriaChanged(e,t){const o=e!==(0,dt.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,w.sH)(this,arguments,void 0,(function*(e=!0){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===ct.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,ut.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}initDatasource(){return(0,w.sH)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,dt.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find((t=>t.name===e))}getDefaultLabelFormat(e,t){return t===pt.w.DATE||t===pt.w.DATETIME?(0,vt.Ey)(e,t===pt.w.DATETIME):e}}(0,w.Cg)([ht.dm],ft.prototype,"connect",void 0),(0,w.Cg)([mt.yW],ft.prototype,"datasource",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"withGridInit",void 0),(0,w.Cg)([l.attr],ft.prototype,"criteria",void 0),(0,w.Cg)([l.observable],ft.prototype,"data",void 0),(0,w.Cg)([l.attr],ft.prototype,"fields",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"isSnapshot",void 0),(0,w.Cg)([l.attr],ft.prototype,"maxRows",void 0),(0,w.Cg)([l.attr],ft.prototype,"maxView",void 0),(0,w.Cg)([l.attr],ft.prototype,"orderBy",void 0),(0,w.Cg)([l.attr],ft.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],ft.prototype,"reverse",void 0),(0,w.Cg)([l.attr],ft.prototype,"rowId",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ft.prototype,"withTimestampFormatting",void 0);const bt=(0,ne.createLogger)("foundation-criteria");var yt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(yt||(yt={}));class Ct{constructor(e){this.$$operator=e}static And(){return new Ct(yt.AND)}static Or(){return new Ct(yt.OR)}static Not(){return new Ct(yt.NOT)}static GreaterThan(){return new Ct(yt.GT)}static GreaterThanOrEqual(){return new Ct(yt.GE)}static LessThan(){return new Ct(yt.LT)}static LessThanOrEqual(){return new Ct(yt.LE)}static NotEqual(){return new Ct(yt.NE)}static Equal(){return new Ct(yt.EQ)}get operator(){return this.$$operator}}const wt="default";class xt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Ct.And()),this.Or=(e,t={})=>this.withExpression(e,t,Ct.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Ct.Not())}withExpression(e,t={},o=Ct.And()){const{condition:i,join:n,groupName:a}=t,s=(e,t=wt)=>{var a;const s=null!==(a=this.expressions[t])&&void 0!==a?a:[];this.expressions[t]=[...s,{join:o||n,condition:i,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter((e=>{const t=e instanceof Ct;return t&&bt.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(a)t.forEach((e=>{s(e,a)}));else{const e=(r=n,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,wt)}}else s(e,wt);else s(e,"string"==typeof e?wt:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof Ct){if(o[t-1]instanceof Ct)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Ct?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const $t=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},St=e=>t=>`${t.field} ${e} ${$t(t)}`,Et=e=>St(yt.EQ)(e),Ot=e=>`Expr.containsIgnoreCase(${e.field}, ${$t(e)})`;class Tt{constructor(e){this.serialiser=Et,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function kt(e,t){var o;const i=new xt;i.withExpression((new Tt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(Ot).build()),e.criteria=i.build()}function Dt(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Rt;let It=Rt=class extends ft{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.resizeObserverCallback=e=>{e.forEach((e=>{this.checkOverflow(e.target)}))},this.selectChangeHandler=e=>{var t;const o=e.target.value,i=null===(t=this.options)||void 0===t?void 0:t.find((e=>String(e.label)===o));!i&&this.allowCustomOptions&&this.select instanceof r.Combobox?this.select.$emit("value-change",{label:o,value:o}):this.select.$emit("value-change",i)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData())}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t,o;e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${T(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.fetchData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),this.select.removeEventListener("change",this.selectChangeHandler)}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof r.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,w.sH)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===nt.v.DATASERVER&&kt(this,this.initialSelectedValue),e===nt.v.REQUEST_SERVER&&Dt(this,this.initialSelectedValue)}))}clearData(){this.select&&(Array.from(this.select.children).forEach((e=>{e instanceof Rt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue="")}checkOverflow(e){const t=e.shadowRoot.querySelector(".content");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",e.textContent):e.removeAttribute("title"))}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.options=t.map((e=>{var t;return{value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e),this.resizeObserver.observe(e)})),!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async){this.resetCombobox();const e=this.getInitialLabel();l.DOM.queueUpdate((()=>{this.select.value=String(e)})),this.initalSelectedValueInitialized=!0}}else{this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async)&&(this.resetCombobox(),l.DOM.queueUpdate((()=>{this.select.value=String(this.initialSelectedValue)})),this.initalSelectedValueInitialized=!0);const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}getInitialLabel(){var e,t;let o="";return(this.initialSelectedValue||0===this.initialSelectedValue)&&(o=this.allowCustomOptions&&this.select instanceof r.Combobox?(null===(e=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===e?void 0:e.label)||this.initialSelectedValue:(null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label)||""),o}resetCombobox(){this.select&&this.select instanceof r.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.Cg)([(0,l.attr)({attribute:"label-field"})],It.prototype,"labelField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"option-element"})],It.prototype,"optionElement",void 0),(0,w.Cg)([(0,l.attr)({attribute:"value-field"})],It.prototype,"valueField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"empty-data-label"})],It.prototype,"emptyDataLabel",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"allow-custom-options"})],It.prototype,"allowCustomOptions",void 0),(0,w.Cg)([l.observable],It.prototype,"labelFormatter",void 0),(0,w.Cg)([l.observable],It.prototype,"initialSelectedValue",void 0),It=Rt=(0,w.Cg)([(0,l.customElement)({name:"options-datasource"})],It);const Ft=(e,t)=>l.css`
554
554
  .combo-box-indicator {
555
555
  transition-property: transform;
556
556
  transition-duration: 0.2s;
@@ -616,7 +616,7 @@
616
616
  ></slot>
617
617
  </div>
618
618
  </template>
619
- `;var At,Lt;class Mt extends r.Combobox{constructor(){super(...arguments),At.set(this,void 0),Lt.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",this.scrollToSelectedWhenOpening=!1,this.scrollToSelectedWhenOpeningOptions={behavior:"auto",block:"nearest"},this.scrollWhenSelectionChanges=!1,this.scrollWhenSelectionChangesOptions={behavior:"auto",block:"center"},this.resetCombobox=()=>{this.selectedOptions=[],this.selectedIndex=-1,this.value="",this.control.value="",this.filter="",this.filterOptions()}}get activeDescendant(){var e,t;if(this.selectedOptions&&0!==this.selectedOptions.length)return this.ariaActiveDescendant=null===(e=this.selectedOptions[0])||void 0===e?void 0:e.id,null===(t=this.selectedOptions[0])||void 0===t?void 0:t.id}debounceChanged(e,t){this.debouncedInputHandler=st()(this.asyncSetFilter,t)}openChanged(){super.openChanged(),this.open?this.scrollToSelectedWhenOpening&&setTimeout((()=>{const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollToSelectedWhenOpeningOptions)}),500):(this.manuallyDispatchChangeEvent(),this.filter="",this.filterOptions())}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),a=this.options?this.options.findIndex(n):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(o=this.options[a])||void 0===o?void 0:o.text;this.selectedIndex=r&&r!==s?a:this.selectedIndex,e&&""!==e.trim()&&-1===a&&(e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),l.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const o=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(o)}filterOptions(){this.autocomplete&&this.autocomplete!==s.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter((e=>{const o=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?o.includes(t):o.startsWith(t)})),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(E(e,this))this.open=!1;else{if(O(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!O(e,this.control))return super.clickHandler(e)}}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":if((0,w.GG)(this,Lt,this.open,"f"),!this.open)return this.open=!0,!0;break;case"ArrowDown":case"ArrowUp":if(!this.open)return this.open=!0,!0;if(this.scrollWhenSelectionChanges){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollWhenSelectionChangesOptions)}break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const o=super.keydownHandler(e);return"Enter"!==t?o:void 0}keyupHandler(e){var t;const o=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(o){case"Enter":return!(0,w.gn)(this,Lt,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.needManualChangeEventDispatch=!0,this.currentValue=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value);break;case"Home":case"End":return;case"Backspace":case"Delete":const o=super.keyupHandler(e);return this.selectItemByValue(this.control.value),o}return super.keyupHandler(e)}get indicator(){return(0,w.gn)(this,At,"f")||(0,w.GG)(this,At,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.gn)(this,At,"f")}selectItemByValue(e){var t,o,i;this.selectedIndex=null!==(o=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.text===e)))&&void 0!==o?o:-1,null===(i=this.options)||void 0===i||i.forEach(((e,t)=>e.selected=t===this.selectedIndex))}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.slottedDatasource.assignedNodes().filter((e=>e instanceof Rt));if(e.length>0){const t=e[0].datasource.resourceType;t===nt.v.DATASERVER&&kt(e[0],this.control.value),t===nt.v.REQUEST_SERVER&&Dt(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}At=new WeakMap,Lt=new WeakMap,(0,w.Cg)([l.observable],Mt.prototype,"activeDescendant",null),(0,w.Cg)([l.observable],Mt.prototype,"slottedDatasource",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Mt.prototype,"async",void 0),(0,w.Cg)([l.attr],Mt.prototype,"debounce",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],Mt.prototype,"caseSensitive",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],Mt.prototype,"ignoreInputClick",void 0),(0,w.Cg)([(0,l.attr)({attribute:"filter-mode"})],Mt.prototype,"filterMode",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],Mt.prototype,"scrollToSelectedWhenOpening",void 0),(0,w.Cg)([l.observable],Mt.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],Mt.prototype,"scrollWhenSelectionChanges",void 0),(0,w.Cg)([l.observable],Mt.prototype,"scrollWhenSelectionChangesOptions",void 0);const _t={delegatesFocus:!0,mode:"open"},Pt={indicator:'\n <svg\n class="combo-box-indicator"\n part="combo-box-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Ht=Mt.compose(Object.assign({baseName:"combobox",template:Nt,styles:Ft,shadowOptions:_t},Pt));var Ut=o(98316);const Bt=(e,t)=>l.css`
619
+ `;var At,Lt;class Mt extends r.Combobox{constructor(){super(...arguments),At.set(this,void 0),Lt.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",this.scrollToSelectedWhenOpening=!1,this.scrollToSelectedWhenOpeningOptions={behavior:"auto",block:"nearest"},this.scrollWhenSelectionChanges=!1,this.scrollWhenSelectionChangesOptions={behavior:"auto",block:"center"},this.resetCombobox=()=>{this.selectedOptions=[],this.selectedIndex=-1,this.value="",this.control.value="",this.filter="",this.filterOptions()}}get activeDescendant(){var e,t;if(this.selectedOptions&&0!==this.selectedOptions.length)return this.ariaActiveDescendant=null===(e=this.selectedOptions[0])||void 0===e?void 0:e.id,null===(t=this.selectedOptions[0])||void 0===t?void 0:t.id}debounceChanged(e,t){this.debouncedInputHandler=st()(this.asyncSetFilter,t)}openChanged(){super.openChanged(),this.open?this.scrollToSelectedWhenOpening&&setTimeout((()=>{const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollToSelectedWhenOpeningOptions)}),500):(this.manuallyDispatchChangeEvent(),this.filter="",this.filterOptions())}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),a=this.options?this.options.findIndex(n):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(o=this.options[a])||void 0===o?void 0:o.text;this.selectedIndex=r&&r!==s?a:this.selectedIndex,e&&""!==e.trim()&&-1===a&&(e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),l.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const o=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(o)}filterOptions(){this.autocomplete&&this.autocomplete!==s.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter((e=>{const o=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?o.includes(t):o.startsWith(t)})),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(E(e,this))this.open=!1;else{if(O(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!O(e,this.control))return super.clickHandler(e)}}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":if((0,w.GG)(this,Lt,this.open,"f"),!this.open)return this.open=!0,!0;break;case"ArrowDown":case"ArrowUp":if(!this.open)return this.open=!0,!0;if(this.scrollWhenSelectionChanges){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollWhenSelectionChangesOptions)}break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const o=super.keydownHandler(e);return"Enter"!==t?o:void 0}keyupHandler(e){var t;const o=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(o){case"Enter":return!(0,w.gn)(this,Lt,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.needManualChangeEventDispatch=!0,this.currentValue=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value);break;case"Home":case"End":return;case"Backspace":case"Delete":const o=super.keyupHandler(e);return this.selectItemByValue(this.control.value),o}return super.keyupHandler(e)}get indicator(){return(0,w.gn)(this,At,"f")||(0,w.GG)(this,At,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.gn)(this,At,"f")}selectItemByValue(e){var t,o,i;this.selectedIndex=null!==(o=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.text===e)))&&void 0!==o?o:-1,null===(i=this.options)||void 0===i||i.forEach(((e,t)=>e.selected=t===this.selectedIndex))}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.slottedDatasource.assignedNodes().filter((e=>e instanceof It));if(e.length>0){const t=e[0].datasource.resourceType;t===nt.v.DATASERVER&&kt(e[0],this.control.value),t===nt.v.REQUEST_SERVER&&Dt(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}At=new WeakMap,Lt=new WeakMap,(0,w.Cg)([l.observable],Mt.prototype,"activeDescendant",null),(0,w.Cg)([l.observable],Mt.prototype,"slottedDatasource",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Mt.prototype,"async",void 0),(0,w.Cg)([l.attr],Mt.prototype,"debounce",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],Mt.prototype,"caseSensitive",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],Mt.prototype,"ignoreInputClick",void 0),(0,w.Cg)([(0,l.attr)({attribute:"filter-mode"})],Mt.prototype,"filterMode",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],Mt.prototype,"scrollToSelectedWhenOpening",void 0),(0,w.Cg)([l.observable],Mt.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],Mt.prototype,"scrollWhenSelectionChanges",void 0),(0,w.Cg)([l.observable],Mt.prototype,"scrollWhenSelectionChangesOptions",void 0);const _t={delegatesFocus:!0,mode:"open"},Pt={indicator:'\n <svg\n class="combo-box-indicator"\n part="combo-box-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Ht=Mt.compose(Object.assign({baseName:"combobox",template:Nt,styles:Ft,shadowOptions:_t},Pt));var Ut=o(98316);const Bt=(e,t)=>l.css`
620
620
  :host {
621
621
  --light-size: 12px;
622
622
  --height: calc(var(--design-unit) * 2px + var(--light-size));
@@ -667,18 +667,18 @@
667
667
  text-overflow: ellipsis;
668
668
  white-space: nowrap;
669
669
  }
670
- `,Gt=l.html`
670
+ `,zt=l.html`
671
671
  <div class=${e=>(0,x.x)(["light",!0],[e.colour,!0])}></div>
672
672
  ${(0,l.when)((e=>e.showLabel),l.html`
673
673
  <div class="label">${e=>e.label}</div>
674
674
  `)}
675
- `;class zt extends s.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,w.Cg)([ht.dm],zt.prototype,"connect",void 0),(0,w.Cg)([Ut.N],zt.prototype,"session",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],zt.prototype,"showLabel",void 0),(0,w.Cg)([l.observable],zt.prototype,"label",void 0),(0,w.Cg)([l.observable],zt.prototype,"colour",void 0);const jt=zt.compose({baseName:"connection-indicator",template:Gt,styles:Bt}),Vt=(e,t)=>l.css`
675
+ `;class Gt extends s.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,w.Cg)([ht.dm],Gt.prototype,"connect",void 0),(0,w.Cg)([Ut.N],Gt.prototype,"session",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],Gt.prototype,"showLabel",void 0),(0,w.Cg)([l.observable],Gt.prototype,"label",void 0),(0,w.Cg)([l.observable],Gt.prototype,"colour",void 0);const jt=Gt.compose({baseName:"connection-indicator",template:zt,styles:Bt}),Vt=(e,t)=>l.css`
676
676
  ${(0,r.dataGridStyles)(e,t)}
677
677
  `,Yt=(e,t)=>(0,s.dataGridTemplate)(e,t);class Wt extends r.DataGrid{}const qt=void 0,Kt={},Qt=Wt.compose(Object.assign({baseName:"data-grid",template:Yt,styles:Vt,shadowOptions:qt},Kt)),Xt=(e,t)=>l.css`
678
678
  ${(0,r.dataGridCellStyles)(e,t)}
679
679
  `;class Jt extends r.DataGridCell{}const Zt=void 0,eo={},to=Jt.compose(Object.assign({baseName:"data-grid-cell",template:s.dataGridCellTemplate,styles:Xt,shadowOptions:Zt},eo)),oo=(e,t)=>l.css`
680
680
  ${(0,r.dataGridRowStyles)(e,t)}
681
- `;class io extends r.DataGridRow{}const no=void 0,ao={},so=io.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:oo,shadowOptions:no},ao));var ro=o(94343),lo=o.n(ro),co=o(58915),uo=o.n(co),po=o(7554),ho=o.n(po),mo=o(49916),go=o.n(mo),vo=o(33839),fo=o.n(vo);class bo{constructor(e,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}lo().extend(fo());class yo{constructor(e=null,t="default"){const o=new bo(e,t);this.lang=t,this.name=o.month,this.number=o.monthNumber,this.year=o.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=lo()(o.date).isLeapYear()?1:0)}getDay(e){return new bo(new Date(this.year,this.number-1,e),this.lang)}}lo().extend(fo());class Co{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new bo(null,o),this.year=null!=e?e:this.today.year,this.month=new yo(new Date(this.year,(t||this.today.monthNumber)-1),o),this.lang=o,this.weekDays.forEach(((e,t)=>{const o=this.month.getDay(t);this.weekDays[o.dayNumber-1]=o.day}))}getMonth(e){return new yo(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new yo(new Date(this.year-1,11),this.lang):new yo(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new yo(new Date(this.year+1,0),this.lang):new yo(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new yo(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new yo(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new yo(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new yo(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new yo(new Date(this.year,this.month.number-1-1),this.lang)}}const wo=l.css`
681
+ `;class io extends r.DataGridRow{}const no=void 0,ao={},so=io.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:oo,shadowOptions:no},ao));var ro=o(94343),lo=o.n(ro),co=o(58915),uo=o.n(co),po=o(7554),ho=o.n(po),mo=o(49916),vo=o.n(mo),go=o(33839),fo=o.n(go);class bo{constructor(e,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}lo().extend(fo());class yo{constructor(e=null,t="default"){const o=new bo(e,t);this.lang=t,this.name=o.month,this.number=o.monthNumber,this.year=o.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=lo()(o.date).isLeapYear()?1:0)}getDay(e){return new bo(new Date(this.year,this.number-1,e),this.lang)}}lo().extend(fo());class Co{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new bo(null,o),this.year=null!=e?e:this.today.year,this.month=new yo(new Date(this.year,(t||this.today.monthNumber)-1),o),this.lang=o,this.weekDays.forEach(((e,t)=>{const o=this.month.getDay(t);this.weekDays[o.dayNumber-1]=o.day}))}getMonth(e){return new yo(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new yo(new Date(this.year-1,11),this.lang):new yo(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new yo(new Date(this.year+1,0),this.lang):new yo(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new yo(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new yo(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new yo(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new yo(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new yo(new Date(this.year,this.month.number-1-1),this.lang)}}const wo=l.css`
682
682
  :host {
683
683
  position: relative;
684
684
  }
@@ -880,7 +880,7 @@
880
880
  </div>
881
881
  `,So=l.html`
882
882
  ${e=>$o(T(e))}
883
- `;var Eo=o(28745);const Oo=[1,2,3,4,5,6,7],To=(e,t,o)=>{if(i=t,-1===e.indexOf(i.dayNumber))return t;var i;const n=Oo.filter((t=>-1===e.indexOf(t)));let a=n.find((e=>e>t.dayNumber));a||(a=Math.min(...n));const s=t.dayNumber<a?a-t.dayNumber:a-t.dayNumber+7;return n.length?new bo(((e,t=1)=>{const o=new Date(e);return o.setDate(e.getDate()+t),o})(t.Date,s),o):(Eo.v.warn("Date picker disabled days - all days of week have been disabled"),t)},ko=void 0,Do={};class Io extends s.FoundationElement{constructor(){super(...arguments),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[]}formatChanged(e,t){t&&this.calendar&&(this.formatDate=lo()(this.currentDate.Date).format(t))}inlineCalendarChanged(){this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(t&&this.calendar){const e=lo()().localeData().longDateFormat("L");this.currentDate=new bo(lo()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=lo()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}connectedCallback(){var e;super.connectedCallback(),lo().extend(uo()),lo().extend(go()),lo().extend(ho()),this.substringNumber=3;const t=this.value,o=t?lo()(t,"MM-DD-YYYY"):lo()();let i=new bo(o.toDate(),this.lang);(null===(e=this.disabledDaysOfWeek)||void 0===e?void 0:e.length)&&(i=To(this.disabledDaysOfWeek,i,this.lang)),this.currentDate=i,this.calendar=new Co(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=lo()(this.currentDate.Date).format("MM-DD-YYYY"),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=lo()(this.currentDate.Date).format(this.format),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return lo()(e.Date).isSame(this.currentDate.Date,"day")}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){lo()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=lo()(this.currentDate.Date).format(this.format),this.value=lo()(e.Date).format("MM-DD-YYYY"),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,n=Array.from({length:i});for(let e=o;e<i;e+=1)n[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);n[e]=t.getDay(t.numberOfDays-i)}return n}}(0,w.Cg)([l.attr],Io.prototype,"format",void 0),(0,w.Cg)([l.attr],Io.prototype,"lang",void 0),(0,w.Cg)([l.attr],Io.prototype,"visible",void 0),(0,w.Cg)([(0,l.attr)({attribute:"inline-calendar",mode:"boolean"})],Io.prototype,"inlineCalendar",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-weekends",mode:"boolean"})],Io.prototype,"hideWeekends",void 0),(0,w.Cg)([l.attr],Io.prototype,"position",void 0),(0,w.Cg)([l.attr],Io.prototype,"label",void 0),(0,w.Cg)([l.attr],Io.prototype,"value",void 0),(0,w.Cg)([l.observable],Io.prototype,"currentDate",void 0),(0,w.Cg)([l.observable],Io.prototype,"currentMonth",void 0),(0,w.Cg)([l.observable],Io.prototype,"currentYear",void 0),(0,w.Cg)([l.observable],Io.prototype,"calendarDropdownClasses",void 0),(0,w.Cg)([l.observable],Io.prototype,"formatDate",void 0),(0,w.Cg)([l.observable],Io.prototype,"monthList",void 0),(0,w.Cg)([l.observable],Io.prototype,"disabledDaysOfWeek",void 0),(0,w.Cg)([l.observable],Io.prototype,"calendar",void 0);const Ro=Io.compose(Object.assign({baseName:"date-picker",styles:wo,template:So,shadowOptions:ko},Do));var Fo=o(83912);const No=r.SwatchRGB.create(1,1,1),Ao=r.SwatchRGB.create(0,0,0),Lo=(0,Fo.parseColorHexRGB)("#585858"),Mo=r.SwatchRGB.create(Lo.r,Lo.g,Lo.b),_o=(0,Fo.parseColorHexRGB)("#ffffff"),Po=r.SwatchRGB.create(_o.r,_o.g,_o.b),Ho=r.PaletteRGB.from(Po),Uo=(0,Fo.parseColorHexRGB)("#eeeeee"),Bo=r.SwatchRGB.create(Uo.r,Uo.g,Uo.b),Go=r.PaletteRGB.from(Bo),zo=(0,Fo.parseColorHexRGB)("#08c3a5"),jo=r.SwatchRGB.create(zo.r,zo.g,zo.b),Vo=r.PaletteRGB.from(jo),{create:Yo}=s.DesignToken,Wo=Yo("fui-fill-color").withDefault(Mo),qo=Yo({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Po),Ko=14;function Qo(e,t){return e.colorContrast(t,Ko)}const Xo=Yo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Qo(Yo("fui-card-palette").withDefault(Ho).getValueFor(e),qo.getValueFor(e))));var Jo=o(80273);const Zo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const n=`${o}Value`;t[n]&&i(e[o],t[n])}))};function ei(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const ti={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Fo.parseColorHexRGB)(e);return t?r.SwatchRGB.create(t.r,t.g,t.b):null}},oi=e=>r.PaletteRGB.from(r.SwatchRGB.from((0,Fo.parseColorHexRGB)(e))),ii=["baseClass","baseName","shadowOptions","styles","template"],ni=(e,t=ii)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),ai=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:n}=t;return{shadowOptions:o,styles:i,template:n,defaultConfig:ni(t)}},si=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],n=o[2];return Number(i)+t+n},ri=(e,t)=>{const o=t.design_tokens;r.accentPalette.setValueFor(e,oi(o.color.accent.$value)),r.neutralPalette.setValueFor(e,oi(o.color.neutral.$value)),r.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),r.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),r.density.setValueFor(e,o.style.density.$value),r.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),r.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),r.designUnit.setValueFor(e,o.space.designUnit.$value),r.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),r.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=r.typeRampBaseFontSize.getValueFor(e),n=r.typeRampBaseLineHeight.getValueFor(e);r.typeRampMinus1FontSize.setValueFor(e,si(i,Jo.Du.minusOne)),r.typeRampMinus1LineHeight.setValueFor(e,si(n,Jo.Du.minusOne)),r.typeRampMinus2FontSize.setValueFor(e,si(i,Jo.Du.minusTwo)),r.typeRampMinus2LineHeight.setValueFor(e,si(n,Jo.Du.minusTwo)),r.typeRampPlus1FontSize.setValueFor(e,si(i,Jo.Du.plusOne)),r.typeRampPlus1LineHeight.setValueFor(e,si(n,Jo.Du.plusOne)),r.typeRampPlus2FontSize.setValueFor(e,si(i,Jo.Du.plusTwo)),r.typeRampPlus2LineHeight.setValueFor(e,si(n,Jo.Du.plusTwo)),r.typeRampPlus3FontSize.setValueFor(e,si(i,Jo.Du.plusThree)),r.typeRampPlus3LineHeight.setValueFor(e,si(n,Jo.Du.plusThree)),r.typeRampPlus4FontSize.setValueFor(e,si(i,Jo.Du.plusFour)),r.typeRampPlus4LineHeight.setValueFor(e,si(n,Jo.Du.plusFour)),r.typeRampPlus5FontSize.setValueFor(e,si(i,Jo.Du.plusFive)),r.typeRampPlus5LineHeight.setValueFor(e,si(n,Jo.Du.plusFive)),r.typeRampPlus6FontSize.setValueFor(e,si(i,Jo.Du.plusSix)),r.typeRampPlus6LineHeight.setValueFor(e,si(n,Jo.Du.plusSix))},li=oi("#08c3a5"),di=oi("#eeeeee"),ci=r.StandardLuminance.DarkMode;const ui=o(85109).O.ltr,pi=4,hi=4;var mi=o(85090);const gi=(e="normal",t="normal")=>`\n font-family: ${r.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,vi=l.css`
883
+ `;var Eo=o(28745);const Oo=[1,2,3,4,5,6,7],To=(e,t,o)=>{if(i=t,-1===e.indexOf(i.dayNumber))return t;var i;const n=Oo.filter((t=>-1===e.indexOf(t)));let a=n.find((e=>e>t.dayNumber));a||(a=Math.min(...n));const s=t.dayNumber<a?a-t.dayNumber:a-t.dayNumber+7;return n.length?new bo(((e,t=1)=>{const o=new Date(e);return o.setDate(e.getDate()+t),o})(t.Date,s),o):(Eo.v.warn("Date picker disabled days - all days of week have been disabled"),t)},ko=void 0,Do={};class Ro extends s.FoundationElement{constructor(){super(...arguments),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[]}formatChanged(e,t){t&&this.calendar&&(this.formatDate=lo()(this.currentDate.Date).format(t))}inlineCalendarChanged(){this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(t&&this.calendar){const e=lo()().localeData().longDateFormat("L");this.currentDate=new bo(lo()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=lo()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}connectedCallback(){var e;super.connectedCallback(),lo().extend(uo()),lo().extend(vo()),lo().extend(ho()),this.substringNumber=3;const t=this.value,o=t?lo()(t,"MM-DD-YYYY"):lo()();let i=new bo(o.toDate(),this.lang);(null===(e=this.disabledDaysOfWeek)||void 0===e?void 0:e.length)&&(i=To(this.disabledDaysOfWeek,i,this.lang)),this.currentDate=i,this.calendar=new Co(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=lo()(this.currentDate.Date).format("MM-DD-YYYY"),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=lo()(this.currentDate.Date).format(this.format),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return lo()(e.Date).isSame(this.currentDate.Date,"day")}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){lo()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=lo()(this.currentDate.Date).format(this.format),this.value=lo()(e.Date).format("MM-DD-YYYY"),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,n=Array.from({length:i});for(let e=o;e<i;e+=1)n[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);n[e]=t.getDay(t.numberOfDays-i)}return n}}(0,w.Cg)([l.attr],Ro.prototype,"format",void 0),(0,w.Cg)([l.attr],Ro.prototype,"lang",void 0),(0,w.Cg)([l.attr],Ro.prototype,"visible",void 0),(0,w.Cg)([(0,l.attr)({attribute:"inline-calendar",mode:"boolean"})],Ro.prototype,"inlineCalendar",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-weekends",mode:"boolean"})],Ro.prototype,"hideWeekends",void 0),(0,w.Cg)([l.attr],Ro.prototype,"position",void 0),(0,w.Cg)([l.attr],Ro.prototype,"label",void 0),(0,w.Cg)([l.attr],Ro.prototype,"value",void 0),(0,w.Cg)([l.observable],Ro.prototype,"currentDate",void 0),(0,w.Cg)([l.observable],Ro.prototype,"currentMonth",void 0),(0,w.Cg)([l.observable],Ro.prototype,"currentYear",void 0),(0,w.Cg)([l.observable],Ro.prototype,"calendarDropdownClasses",void 0),(0,w.Cg)([l.observable],Ro.prototype,"formatDate",void 0),(0,w.Cg)([l.observable],Ro.prototype,"monthList",void 0),(0,w.Cg)([l.observable],Ro.prototype,"disabledDaysOfWeek",void 0),(0,w.Cg)([l.observable],Ro.prototype,"calendar",void 0);const Io=Ro.compose(Object.assign({baseName:"date-picker",styles:wo,template:So,shadowOptions:ko},Do));var Fo=o(83912);const No=r.SwatchRGB.create(1,1,1),Ao=r.SwatchRGB.create(0,0,0),Lo=(0,Fo.parseColorHexRGB)("#585858"),Mo=r.SwatchRGB.create(Lo.r,Lo.g,Lo.b),_o=(0,Fo.parseColorHexRGB)("#ffffff"),Po=r.SwatchRGB.create(_o.r,_o.g,_o.b),Ho=r.PaletteRGB.from(Po),Uo=(0,Fo.parseColorHexRGB)("#eeeeee"),Bo=r.SwatchRGB.create(Uo.r,Uo.g,Uo.b),zo=r.PaletteRGB.from(Bo),Go=(0,Fo.parseColorHexRGB)("#08c3a5"),jo=r.SwatchRGB.create(Go.r,Go.g,Go.b),Vo=r.PaletteRGB.from(jo),{create:Yo}=s.DesignToken,Wo=Yo("fui-fill-color").withDefault(Mo),qo=Yo({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Po),Ko=14;function Qo(e,t){return e.colorContrast(t,Ko)}const Xo=Yo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Qo(Yo("fui-card-palette").withDefault(Ho).getValueFor(e),qo.getValueFor(e))));var Jo=o(80273);const Zo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const n=`${o}Value`;t[n]&&i(e[o],t[n])}))};function ei(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const ti={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Fo.parseColorHexRGB)(e);return t?r.SwatchRGB.create(t.r,t.g,t.b):null}},oi=e=>r.PaletteRGB.from(r.SwatchRGB.from((0,Fo.parseColorHexRGB)(e))),ii=["baseClass","baseName","shadowOptions","styles","template"],ni=(e,t=ii)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),ai=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:n}=t;return{shadowOptions:o,styles:i,template:n,defaultConfig:ni(t)}},si=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],n=o[2];return Number(i)+t+n},ri=(e,t)=>{const o=t.design_tokens;r.accentPalette.setValueFor(e,oi(o.color.accent.$value)),r.neutralPalette.setValueFor(e,oi(o.color.neutral.$value)),r.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),r.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),r.density.setValueFor(e,o.style.density.$value),r.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),r.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),r.designUnit.setValueFor(e,o.space.designUnit.$value),r.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),r.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=r.typeRampBaseFontSize.getValueFor(e),n=r.typeRampBaseLineHeight.getValueFor(e);r.typeRampMinus1FontSize.setValueFor(e,si(i,Jo.Du.minusOne)),r.typeRampMinus1LineHeight.setValueFor(e,si(n,Jo.Du.minusOne)),r.typeRampMinus2FontSize.setValueFor(e,si(i,Jo.Du.minusTwo)),r.typeRampMinus2LineHeight.setValueFor(e,si(n,Jo.Du.minusTwo)),r.typeRampPlus1FontSize.setValueFor(e,si(i,Jo.Du.plusOne)),r.typeRampPlus1LineHeight.setValueFor(e,si(n,Jo.Du.plusOne)),r.typeRampPlus2FontSize.setValueFor(e,si(i,Jo.Du.plusTwo)),r.typeRampPlus2LineHeight.setValueFor(e,si(n,Jo.Du.plusTwo)),r.typeRampPlus3FontSize.setValueFor(e,si(i,Jo.Du.plusThree)),r.typeRampPlus3LineHeight.setValueFor(e,si(n,Jo.Du.plusThree)),r.typeRampPlus4FontSize.setValueFor(e,si(i,Jo.Du.plusFour)),r.typeRampPlus4LineHeight.setValueFor(e,si(n,Jo.Du.plusFour)),r.typeRampPlus5FontSize.setValueFor(e,si(i,Jo.Du.plusFive)),r.typeRampPlus5LineHeight.setValueFor(e,si(n,Jo.Du.plusFive)),r.typeRampPlus6FontSize.setValueFor(e,si(i,Jo.Du.plusSix)),r.typeRampPlus6LineHeight.setValueFor(e,si(n,Jo.Du.plusSix))},li=oi("#08c3a5"),di=oi("#eeeeee"),ci=r.StandardLuminance.DarkMode;const ui=o(85109).O.ltr,pi=4,hi=4;var mi=o(85090);const vi=(e="normal",t="normal")=>`\n font-family: ${r.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,gi=l.css`
884
884
  ${(0,s.display)("flex")}
885
885
  :host {
886
886
  flex: 1;
@@ -909,11 +909,11 @@
909
909
  ${bi(e,"5")}
910
910
  ${bi(e,"6")}
911
911
  `)(e);return t.addStylesTo(document),l.css`
912
- ${vi}
912
+ ${gi}
913
913
  ${fi}
914
914
  ${t}
915
915
  :host * {
916
- ${gi()}
916
+ ${vi()}
917
917
  }
918
918
  `}});var wi=o(40543);const xi=l.css`
919
919
  :host {
@@ -1030,11 +1030,11 @@
1030
1030
  </dialog>
1031
1031
  `,Si=l.html`
1032
1032
  ${e=>$i(T(e))}
1033
- `,Ei={mode:"open",delegatesFocus:!0},Oi={};class Ti extends s.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||wi.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")})),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open","")}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.Cg)([l.observable],Ti.prototype,"notification",void 0),(0,w.Cg)([(0,l.attr)({attribute:"type"})],Ti.prototype,"type",void 0),(0,w.Cg)([l.attr],Ti.prototype,"position",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],Ti.prototype,"showCloseIcon",void 0),(0,w.Cg)([l.observable],Ti.prototype,"onShowCallback",void 0),(0,w.Cg)([l.observable],Ti.prototype,"onCloseCallback",void 0),(0,w.Cg)([l.volatile],Ti.prototype,"open",null);class ki extends Ti{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Di=ki.compose(Object.assign({baseName:"dialog",styles:xi,template:Si,shadowOptions:Ei},Oi)),Ii=(e,t)=>l.css`
1033
+ `,Ei={mode:"open",delegatesFocus:!0},Oi={};class Ti extends s.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||wi.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")})),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open","")}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.Cg)([l.observable],Ti.prototype,"notification",void 0),(0,w.Cg)([(0,l.attr)({attribute:"type"})],Ti.prototype,"type",void 0),(0,w.Cg)([l.attr],Ti.prototype,"position",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],Ti.prototype,"showCloseIcon",void 0),(0,w.Cg)([l.observable],Ti.prototype,"onShowCallback",void 0),(0,w.Cg)([l.observable],Ti.prototype,"onCloseCallback",void 0),(0,w.Cg)([l.volatile],Ti.prototype,"open",null);class ki extends Ti{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Di=ki.compose(Object.assign({baseName:"dialog",styles:xi,template:Si,shadowOptions:Ei},Oi)),Ri=(e,t)=>l.css`
1034
1034
  ${(0,r.disclosureStyles)(e,t)}
1035
- `,Ri=(e,t)=>(0,s.disclosureTemplate)(e,t);class Fi extends s.Disclosure{}const Ni=void 0,Ai={},Li=Fi.compose(Object.assign({baseName:"disclosure",template:Ri,styles:Ii,shadowOptions:Ni},Ai)),Mi=(e,t)=>l.css`
1035
+ `,Ii=(e,t)=>(0,s.disclosureTemplate)(e,t);class Fi extends s.Disclosure{}const Ni=void 0,Ai={},Li=Fi.compose(Object.assign({baseName:"disclosure",template:Ii,styles:Ri,shadowOptions:Ni},Ai)),Mi=(e,t)=>l.css`
1036
1036
  ${(0,r.dividerStyles)(e,t)}
1037
- `,_i=(e,t)=>(0,s.dividerTemplate)(e,t);class Pi extends s.Divider{}const Hi=void 0,Ui={},Bi=Pi.compose(Object.assign({baseName:"divider",template:_i,styles:Mi,shadowOptions:Hi},Ui)),Gi=(e,t,o)=>l.css`
1037
+ `,_i=(e,t)=>(0,s.dividerTemplate)(e,t);class Pi extends s.Divider{}const Hi=void 0,Ui={},Bi=Pi.compose(Object.assign({baseName:"divider",template:_i,styles:Mi,shadowOptions:Hi},Ui)),zi=(e,t,o)=>l.css`
1038
1038
  :host {
1039
1039
  --dropdown-opener-height-multiplier: 0.7px;
1040
1040
  --menu-item-height-multiplier: 0.7px;
@@ -1097,8 +1097,8 @@
1097
1097
  var(--menu-item-height-multiplier)
1098
1098
  );
1099
1099
  }
1100
- `,zi=(e,t)=>l.css`
1101
- ${Gi("foundation",e,t)}
1100
+ `,Gi=(e,t)=>l.css`
1101
+ ${zi("foundation",e,t)}
1102
1102
  `,ji=(e,t)=>l.html`
1103
1103
  ${(0,l.repeat)((()=>e),l.html`
1104
1104
  ${(0,l.when)((e=>e.isDisabled&&e.isDisabled()),l.html`
@@ -1147,7 +1147,7 @@
1147
1147
  </div>
1148
1148
  `,Yi=l.html`
1149
1149
  ${e=>Vi(T(e))}
1150
- `;class Wi extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){E(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.x)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.Cg)([l.observable],Wi.prototype,"items",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Wi.prototype,"autoClose",void 0),(0,w.Cg)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],Wi.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Wi.prototype,"classNames",void 0),(0,w.Cg)([l.attr],Wi.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],Wi.prototype,"open",void 0),(0,w.Cg)([l.attr],Wi.prototype,"buttonAppearance",void 0);const qi=Wi.compose({baseName:"dropdown-menu",styles:zi,template:Yi});var Ki=o(84686);const Qi=l.css`
1150
+ `;class Wi extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){E(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.x)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.Cg)([l.observable],Wi.prototype,"items",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Wi.prototype,"autoClose",void 0),(0,w.Cg)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],Wi.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Wi.prototype,"classNames",void 0),(0,w.Cg)([l.attr],Wi.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],Wi.prototype,"open",void 0),(0,w.Cg)([l.attr],Wi.prototype,"buttonAppearance",void 0);const qi=Wi.compose({baseName:"dropdown-menu",styles:Gi,template:Yi});var Ki=o(84686);const Qi=l.css`
1151
1151
  .environment-indicator {
1152
1152
  font-size: 12px;
1153
1153
  display: inline-flex;
@@ -1222,11 +1222,11 @@
1222
1222
  </${e}-banner>
1223
1223
  `,un=l.html`
1224
1224
  ${e=>cn(T(e))}
1225
- `,pn={mode:"open",delegatesFocus:!0};class hn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,w.sH)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,w.Cg)([l.observable],hn.prototype,"error",void 0),(0,w.Cg)([l.observable],hn.prototype,"notification",void 0);const mn=hn.compose({baseName:"error-banner",template:un,shadowOptions:pn});var gn;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(gn||(gn={}));const vn=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},fn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ne.LogLevel.Error},bn=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},yn=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Cn=(0,ne.createLogger)("foundation-error"),wn={alert:e=>{alert(vn(e))},notification:(e,t)=>{var o,i,n,a,s,r,l,d,c,u,p,h,m;const g=t.split("-")[0],v=bn("notify-container",t);if(v)switch(v.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":v.style.top="0",v.style.left="0";break;case"bottom-left":v.style.bottom="0",v.style.left="0";break;case"bottom-right":v.style.bottom="0",v.style.right="0";break;default:v.style.top="0",v.style.right="0"}const f=document.createElement(`${g}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const C=document.createElement("div");C.setAttribute("slot","date"),C.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===s?void 0:s.type)||""),(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(C),v.appendChild(f)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);bn("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);bn("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const n=t.split("-")[0],a=document.createElement(`${n}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return yn()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.error=e}},xn=(e,t,o)=>{Cn.log({message:vn(e),level:fn(e)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{wn[i]&&wn[i](e,t,o)}))};class $n{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ne.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Sn{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const En=l.html`
1225
+ `,pn={mode:"open",delegatesFocus:!0};class hn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,w.sH)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,w.Cg)([l.observable],hn.prototype,"error",void 0),(0,w.Cg)([l.observable],hn.prototype,"notification",void 0);const mn=hn.compose({baseName:"error-banner",template:un,shadowOptions:pn});var vn;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(vn||(vn={}));const gn=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},fn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ne.LogLevel.Error},bn=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},yn=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Cn=(0,ne.createLogger)("foundation-error"),wn={alert:e=>{alert(gn(e))},notification:(e,t)=>{var o,i,n,a,s,r,l,d,c,u,p,h,m;const v=t.split("-")[0],g=bn("notify-container",t);if(g)switch(g.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const C=document.createElement("div");C.setAttribute("slot","date"),C.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===s?void 0:s.type)||""),(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(C),g.appendChild(f)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);bn("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);bn("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const n=t.split("-")[0],a=document.createElement(`${n}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return yn()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.error=e}},xn=(e,t,o)=>{Cn.log({message:gn(e),level:fn(e)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{wn[i]&&wn[i](e,t,o)}))};class $n{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ne.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Sn{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const En=l.html`
1226
1226
  <template ${(0,l.ref)("errorBoundary")}>
1227
1227
  <slot></slot>
1228
1228
  </template>
1229
- `,On={mode:"open",delegatesFocus:!0};class Tn extends s.FoundationElement{constructor(){super(...arguments),this.logger=(0,ne.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(gn.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),xn(e.detail,this.tagName,this.errorBoundary)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,o=null==t?void 0:t.BODY,i=t.NOTIFY_SEVERITY;xn((new $n).withTitle(e).withErrorDetails(o).withNotification((new Sn).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,w.Cg)([l.observable],Tn.prototype,"errorBoundary",void 0),(0,w.Cg)([(0,l.attr)({attribute:"resource-name"})],Tn.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Tn.prototype,"closeTimeout",void 0),(0,w.Cg)([mt.yW],Tn.prototype,"datasource",void 0);const kn=Tn.compose({baseName:"error-boundary",template:En,shadowOptions:On}),Dn=l.css`
1229
+ `,On={mode:"open",delegatesFocus:!0};class Tn extends s.FoundationElement{constructor(){super(...arguments),this.logger=(0,ne.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(vn.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),xn(e.detail,this.tagName,this.errorBoundary)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,o=null==t?void 0:t.BODY,i=t.NOTIFY_SEVERITY;xn((new $n).withTitle(e).withErrorDetails(o).withNotification((new Sn).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,w.Cg)([l.observable],Tn.prototype,"errorBoundary",void 0),(0,w.Cg)([(0,l.attr)({attribute:"resource-name"})],Tn.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Tn.prototype,"closeTimeout",void 0),(0,w.Cg)([mt.yW],Tn.prototype,"datasource",void 0);const kn=Tn.compose({baseName:"error-boundary",template:En,shadowOptions:On}),Dn=l.css`
1230
1230
  :host {
1231
1231
  --design-unit: 3;
1232
1232
  --dialog-max-width: 358px;
@@ -1245,7 +1245,7 @@
1245
1245
  overflow: hidden;
1246
1246
  min-height: var(--error-details-min-height);
1247
1247
  }
1248
- `,In=e=>l.html`
1248
+ `,Rn=e=>l.html`
1249
1249
  <${e}-dialog show-close-icon="false" ${(0,l.ref)("dialog")}>
1250
1250
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
1251
1251
  <div class="details">${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}</div>
@@ -1262,9 +1262,9 @@
1262
1262
  </${e}-button>
1263
1263
  `)}
1264
1264
  </${e}-dialog>
1265
- `,Rn=l.html`
1266
- ${e=>In(T(e))}
1267
- `,Fn={mode:"open",delegatesFocus:!0};class Nn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,n,a,s,r;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(a=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.Cg)([l.observable],Nn.prototype,"error",void 0),(0,w.Cg)([l.observable],Nn.prototype,"notification",void 0);const An=Nn.compose({baseName:"error-dialog",template:Rn,styles:Dn,shadowOptions:Fn});var Ln=o(68424);const Mn=(0,ne.createLogger)("foundation-notifications");const _n=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},Pn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ne.LogLevel.Debug},Hn=e=>{Mn.log({message:_n(e),level:Pn(e)})},Un=(e,t)=>{let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e),o.style.zIndex="1000";const t=(0,Ln.J)(document.body,"rapid"),i=function(e){const t=[],o=new Set;return function e(i){const n=Array.from(i.querySelectorAll("*"));t.push(...n),n.forEach((t=>{t.shadowRoot&&!o.has(t.shadowRoot)&&(o.add(t.shadowRoot),e(t.shadowRoot))}))}(e),t}(document).find((e=>{var o;return(null===(o=e.tagName)||void 0===o?void 0:o.toLowerCase())===`${t}-design-system-provider`}));if(i)i.appendChild(o);else{const e=document.createElement(`${t}-design-system-provider`);e.appendChild(o),document.body.appendChild(e)}}return o},Bn=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Gn=(e,t,o)=>{var i,n,a,s,r,l,d,c,u,p,h,m,g,v,f,b,y,C;Hn(e);const w=t.split("-")[0],x=null!=o?o:Un("notify-container");if(x)switch(x.style.position="fixed",null===(n=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===n?void 0:n.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const $=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const E=document.createElement("div");E.setAttribute("slot","content"),E.textContent=(null==e?void 0:e.body)||"";const O=document.createElement("div");let T;O.setAttribute("slot","date"),O.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(T=document.createElement("div"),T.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:$})})),t.appearance&&o.setAttribute("appearance",t.appearance),T.appendChild(o)}))),$.setAttribute("notify",(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===p?void 0:p.type)||""),(null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===m?void 0:m.autoClose)&&$.setAttribute("auto-close",`${null===(v=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===v?void 0:v.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&$.setAttribute("close-timeout",`${null===(C=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===C?void 0:C.closeTimeout}`),$.appendChild(S),$.appendChild(E),$.appendChild(O),T&&$.appendChild(T),x.appendChild($)},zn={alert:e=>{Hn(e),alert(_n(e))},toast:Gn,dialog:(e,t)=>{Hn(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Un("dialog-container").appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{Hn(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`),n=Un("snack-container");n&&(n.style.position="fixed",n.style.bottom="0",n.style.left="0"),n.appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;Hn(e);const n=t.split("-")[0],a=document.createElement(`${n}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Bn()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.notification=e}},jn=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{zn[i]&&zn[i](e,t,o)}))};class Vn extends s.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const o=null==e?void 0:e.target,i=Array.from(null!==(t=null==o?void 0:o.files)&&void 0!==t?t:[]),n=i.find((e=>e.size>this.fileSizeLimitBytes));if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(i)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){jn({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,w.Cg)([l.attr],Vn.prototype,"label",void 0),(0,w.Cg)([l.attr],Vn.prototype,"accept",void 0),(0,w.Cg)([(0,l.attr)({attribute:"file-size-limit-bytes"})],Vn.prototype,"fileSizeLimitBytes",void 0),(0,w.Cg)([l.observable],Vn.prototype,"fileName",void 0),(0,w.Cg)([l.observable],Vn.prototype,"isProcessing",void 0);const Yn=(e,t,o)=>l.css`
1265
+ `,In=l.html`
1266
+ ${e=>Rn(T(e))}
1267
+ `,Fn={mode:"open",delegatesFocus:!0};class Nn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,n,a,s,r;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(a=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.Cg)([l.observable],Nn.prototype,"error",void 0),(0,w.Cg)([l.observable],Nn.prototype,"notification",void 0);const An=Nn.compose({baseName:"error-dialog",template:In,styles:Dn,shadowOptions:Fn});var Ln=o(68424);const Mn=(0,ne.createLogger)("foundation-notifications");const _n=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},Pn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ne.LogLevel.Debug},Hn=e=>{Mn.log({message:_n(e),level:Pn(e)})},Un=(e,t)=>{let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e),o.style.zIndex="1000";const t=(0,Ln.J)(document.body,"rapid"),i=function(e){const t=[],o=new Set;return function e(i){const n=Array.from(i.querySelectorAll("*"));t.push(...n),n.forEach((t=>{t.shadowRoot&&!o.has(t.shadowRoot)&&(o.add(t.shadowRoot),e(t.shadowRoot))}))}(e),t}(document).find((e=>{var o;return(null===(o=e.tagName)||void 0===o?void 0:o.toLowerCase())===`${t}-design-system-provider`}));if(i)i.appendChild(o);else{const e=document.createElement(`${t}-design-system-provider`);e.appendChild(o),document.body.appendChild(e)}}return o},Bn=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},zn=(e,t,o)=>{var i,n,a,s,r,l,d,c,u,p,h,m,v,g,f,b,y,C;Hn(e);const w=t.split("-")[0],x=null!=o?o:Un("notify-container");if(x)switch(x.style.position="fixed",null===(n=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===n?void 0:n.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const $=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const E=document.createElement("div");E.setAttribute("slot","content"),E.textContent=(null==e?void 0:e.body)||"";const O=document.createElement("div");let T;O.setAttribute("slot","date"),O.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(T=document.createElement("div"),T.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:$})})),t.appearance&&o.setAttribute("appearance",t.appearance),T.appendChild(o)}))),$.setAttribute("notify",(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===p?void 0:p.type)||""),(null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===m?void 0:m.autoClose)&&$.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&$.setAttribute("close-timeout",`${null===(C=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===C?void 0:C.closeTimeout}`),$.appendChild(S),$.appendChild(E),$.appendChild(O),T&&$.appendChild(T),x.appendChild($)},Gn={alert:e=>{Hn(e),alert(_n(e))},toast:zn,dialog:(e,t)=>{Hn(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Un("dialog-container").appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{Hn(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`),n=Un("snack-container");n&&(n.style.position="fixed",n.style.bottom="0",n.style.left="0"),n.appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;Hn(e);const n=t.split("-")[0],a=document.createElement(`${n}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Bn()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.notification=e}},jn=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Gn[i]&&Gn[i](e,t,o)}))};class Vn extends s.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const o=null==e?void 0:e.target,i=Array.from(null!==(t=null==o?void 0:o.files)&&void 0!==t?t:[]),n=i.find((e=>e.size>this.fileSizeLimitBytes));if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(i)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){jn({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,w.Cg)([l.attr],Vn.prototype,"label",void 0),(0,w.Cg)([l.attr],Vn.prototype,"accept",void 0),(0,w.Cg)([(0,l.attr)({attribute:"file-size-limit-bytes"})],Vn.prototype,"fileSizeLimitBytes",void 0),(0,w.Cg)([l.observable],Vn.prototype,"fileName",void 0),(0,w.Cg)([l.observable],Vn.prototype,"isProcessing",void 0);const Yn=(e,t,o)=>l.css`
1268
1268
  /* Host */
1269
1269
  :host {
1270
1270
  display: flex;
@@ -1432,7 +1432,7 @@
1432
1432
  ${e=>ta(T(e))}
1433
1433
  `,ia=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},na=(e,t,o,i)=>{const n=new Headers;return n.append("SESSION_AUTH_TOKEN",o),i.post(e,{body:t,headers:n})},aa=(e,t,o,i="GET",n,a)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:a,headers:s,credentials:"include"}).then((e=>(0,w.sH)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();n&&jn({title:null==o?void 0:o.MESSAGE_TYPE,body:null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},"zero"),ae.error(o||"An error occurred while downloading the file.")}})))).then((e=>{if(e){const o=window.URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),i.remove(),n&&jn({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},"zero"),ae.info("File downloaded successfully")}})).catch((e=>{ae.error(e)}))},sa=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],ra=["text/plain","text/csv"],la=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],da=l.html`
1434
1434
  ${(0,l.when)((e=>e.rowData),l.html`
1435
- ${e=>"DATETIME"===e.columnDefinition.type?(0,gt.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
1435
+ ${e=>"DATETIME"===e.columnDefinition.type?(0,vt.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
1436
1436
  `)}
1437
1437
  `;class ca extends Vn{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="gwf/attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach((t=>{"image/*"===t?e=[...e,...sa]:"office/*"===t?e=[...e,...la]:"text/*"===t?e=[...e,...ra]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new xt).withExpression((new Tt).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const o of e.ROW)if(o.DETAILS)switch(o.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(o);break;case"MODIFY":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1,o);break;case"DELETE":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1);break;default:Jn.v.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,w.sH)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{Jn.v.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){return(0,w.sH)(this,void 0,void 0,(function*(){var e;const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const n=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));n?o.push(this.getColumnObject(n)):"DOWNLOAD"===e&&this.downloadEventName&&o.push(this.getDownloadColumn())})):(null===(e=t.FIELD)||void 0===e||e.forEach((e=>{o.push(this.getColumnObject(e))})),this.downloadEventName&&o.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=o}))}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:l.html`
1438
1438
  <template>
@@ -1496,12 +1496,12 @@
1496
1496
  .flex-row foundation-select {
1497
1497
  flex: 1;
1498
1498
  }
1499
- `,ga=(e="start",t="#879ba6")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,va=l.html`
1500
- <div class="close-icon" @click=${e=>e.clear()}>${ga()}</div>
1499
+ `,va=(e="start",t="#879ba6")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,ga=l.html`
1500
+ <div class="close-icon" @click=${e=>e.clear()}>${va()}</div>
1501
1501
  `;function fa(e){var t,o,i;return null!==(i=null===(o=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===o?void 0:o.value)&&void 0!==i?i:"all"}const ba=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],ya=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
1502
1502
  <div class="flex-row">
1503
1503
  <div>${e=>e.label}</div>
1504
- ${va}
1504
+ ${ga}
1505
1505
  </div>
1506
1506
  <div class="flex-row">
1507
1507
  <${e}-text-field
@@ -1520,7 +1520,7 @@
1520
1520
  `)(t);case"date":return(e=>l.html`
1521
1521
  <div class="flex-row">
1522
1522
  <div>${e=>e.label}</div>
1523
- ${va}
1523
+ ${ga}
1524
1524
  </div>
1525
1525
  <div class="flex-row">
1526
1526
  <${e}-text-field
@@ -1537,7 +1537,7 @@
1537
1537
  `)(t);case"boolean":return(e=>l.html`
1538
1538
  <div class="flex-row">
1539
1539
  <div>${e=>e.label}</div>
1540
- ${va}
1540
+ ${ga}
1541
1541
  </div>
1542
1542
  <div class="flex-row">
1543
1543
  <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(fa(t))}}">
@@ -1551,7 +1551,7 @@
1551
1551
  `)(t);case"enum":return(e=>l.html`
1552
1552
  <div class="flex-row">
1553
1553
  <div>${e=>e.label}</div>
1554
- ${va}
1554
+ ${ga}
1555
1555
  </div>
1556
1556
  <div class="flex-row">
1557
1557
  <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(fa(t))}}">
@@ -1565,7 +1565,7 @@
1565
1565
  `)(t);default:return(e=>l.html`
1566
1566
  <div class="flex-row">
1567
1567
  <div>${e=>e.label}</div>
1568
- ${va}
1568
+ ${ga}
1569
1569
  </div>
1570
1570
  <div class="flex-row">
1571
1571
  <${e}-text-field
@@ -1643,9 +1643,9 @@
1643
1643
  `)}
1644
1644
  </div>
1645
1645
  </div>
1646
- `,Ia=l.html`
1646
+ `,Ra=l.html`
1647
1647
  ${e=>e.ready?Da(T(e)):ka}
1648
- `,Ra=5;class Fa extends s.FoundationElement{constructor(){super(...arguments),this.columns=Ra,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i;let n=!1,a=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(a=null===(t=this.labels.split(","))||void 0===t?void 0:t.map((e=>e.trim())),n=(null===(o=this.fields)||void 0===o?void 0:o.length)===(null==a?void 0:a.length));for(let e=0;e<((null===(i=this.fields)||void 0===i?void 0:i.length)||0);e+=1){const t=n?a[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Ea.fL)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.Cg)([l.attr],Fa.prototype,"resource",void 0),(0,w.Cg)([l.attr],Fa.prototype,"only",void 0),(0,w.Cg)([l.attr],Fa.prototype,"labels",void 0),(0,w.Cg)([l.attr],Fa.prototype,"target",void 0),(0,w.Cg)([l.attr],Fa.prototype,"columns",void 0),(0,w.Cg)([l.observable],Fa.prototype,"ready",void 0),(0,w.Cg)([l.observable],Fa.prototype,"fields",void 0),(0,w.Cg)([ht.dm],Fa.prototype,"connect",void 0),(0,w.Cg)([l.observable],Fa.prototype,"collapsed",void 0);const Na=Fa.compose({baseName:"filter-bar",template:Ia,styles:Oa});var Aa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Aa||(Aa={}));const La=e=>{const t=e?`-${e}`:"";return l.css`
1648
+ `,Ia=5;class Fa extends s.FoundationElement{constructor(){super(...arguments),this.columns=Ia,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i;let n=!1,a=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(a=null===(t=this.labels.split(","))||void 0===t?void 0:t.map((e=>e.trim())),n=(null===(o=this.fields)||void 0===o?void 0:o.length)===(null==a?void 0:a.length));for(let e=0;e<((null===(i=this.fields)||void 0===i?void 0:i.length)||0);e+=1){const t=n?a[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Ea.fL)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.Cg)([l.attr],Fa.prototype,"resource",void 0),(0,w.Cg)([l.attr],Fa.prototype,"only",void 0),(0,w.Cg)([l.attr],Fa.prototype,"labels",void 0),(0,w.Cg)([l.attr],Fa.prototype,"target",void 0),(0,w.Cg)([l.attr],Fa.prototype,"columns",void 0),(0,w.Cg)([l.observable],Fa.prototype,"ready",void 0),(0,w.Cg)([l.observable],Fa.prototype,"fields",void 0),(0,w.Cg)([ht.dm],Fa.prototype,"connect",void 0),(0,w.Cg)([l.observable],Fa.prototype,"collapsed",void 0);const Na=Fa.compose({baseName:"filter-bar",template:Ra,styles:Oa});var Aa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Aa||(Aa={}));const La=e=>{const t=e?`-${e}`:"";return l.css`
1649
1649
  ${t&&`@media only screen and ${Aa[e]} {`}
1650
1650
  :host(.spacing${t}-1x) slot {
1651
1651
  gap: calc(var(--design-unit) * 2px);
@@ -1783,9 +1783,9 @@
1783
1783
  <template>
1784
1784
  <slot></slot>
1785
1785
  </template>
1786
- `,Pa=void 0,Ha={};class Ua extends s.FoundationElement{}const Ba=Ua.compose(Object.assign({baseName:"flex-layout",styles:Ma,template:_a,shadowOptions:Pa},Ha)),Ga=(e,t)=>l.css`
1786
+ `,Pa=void 0,Ha={};class Ua extends s.FoundationElement{}const Ba=Ua.compose(Object.assign({baseName:"flex-layout",styles:Ma,template:_a,shadowOptions:Pa},Ha)),za=(e,t)=>l.css`
1787
1787
  ${(0,r.flipperStyles)(e,t)}
1788
- `,za=(e,t)=>(0,s.flipperTemplate)(e,t);class ja extends r.Flipper{}const Va=void 0,Ya={next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '},Wa=ja.compose(Object.assign({baseName:"flipper",template:za,styles:Ga,shadowOptions:Va},Ya)),qa=225,Ka=l.css`
1788
+ `,Ga=(e,t)=>(0,s.flipperTemplate)(e,t);class ja extends r.Flipper{}const Va=void 0,Ya={next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '},Wa=ja.compose(Object.assign({baseName:"flipper",template:Ga,styles:za,shadowOptions:Va},Ya)),qa=225,Ka=l.css`
1789
1789
  /* Host */
1790
1790
  :host {
1791
1791
  display: inline-block;
@@ -2032,7 +2032,7 @@
2032
2032
  </style>
2033
2033
  <slot></slot>
2034
2034
  </template>
2035
- `,ps=void 0,hs={};class ms extends s.FoundationElement{setGridItemProperties(e,t,o,i){if(t&&e&&o&&i){return`grid-row: ${0===t||0===i?"auto":`${t} / ${Number(t)+Number(i)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,w.Cg)([(0,l.attr)({attribute:"col-number"})],ms.prototype,"colNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-sm-number"})],ms.prototype,"colSmNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-md-number"})],ms.prototype,"colMdNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-lg-number"})],ms.prototype,"colLgNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-number"})],ms.prototype,"rowNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-sm-number"})],ms.prototype,"rowSmNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-md-number"})],ms.prototype,"rowMdNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-lg-number"})],ms.prototype,"rowLgNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width"})],ms.prototype,"width",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-sm"})],ms.prototype,"widthSm",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-md"})],ms.prototype,"widthMd",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-lg"})],ms.prototype,"widthLg",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height"})],ms.prototype,"height",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-sm"})],ms.prototype,"heightSm",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-md"})],ms.prototype,"heightMd",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-lg"})],ms.prototype,"heightLg",void 0);const gs=ms.compose(Object.assign({baseName:"grid-layout-item",template:us,shadowOptions:ps},hs)),vs=(e,t)=>l.css`
2035
+ `,ps=void 0,hs={};class ms extends s.FoundationElement{setGridItemProperties(e,t,o,i){if(t&&e&&o&&i){return`grid-row: ${0===t||0===i?"auto":`${t} / ${Number(t)+Number(i)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,w.Cg)([(0,l.attr)({attribute:"col-number"})],ms.prototype,"colNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-sm-number"})],ms.prototype,"colSmNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-md-number"})],ms.prototype,"colMdNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"col-lg-number"})],ms.prototype,"colLgNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-number"})],ms.prototype,"rowNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-sm-number"})],ms.prototype,"rowSmNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-md-number"})],ms.prototype,"rowMdNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"row-lg-number"})],ms.prototype,"rowLgNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width"})],ms.prototype,"width",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-sm"})],ms.prototype,"widthSm",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-md"})],ms.prototype,"widthMd",void 0),(0,w.Cg)([(0,l.attr)({attribute:"width-lg"})],ms.prototype,"widthLg",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height"})],ms.prototype,"height",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-sm"})],ms.prototype,"heightSm",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-md"})],ms.prototype,"heightMd",void 0),(0,w.Cg)([(0,l.attr)({attribute:"height-lg"})],ms.prototype,"heightLg",void 0);const vs=ms.compose(Object.assign({baseName:"grid-layout-item",template:us,shadowOptions:ps},hs)),gs=(e,t)=>l.css`
2036
2036
  ${(0,r.horizontalScrollStyles)(e,t)}
2037
2037
  `,fs=(e,t)=>(0,s.horizontalScrollTemplate)(e,t);class bs extends r.HorizontalScroll{}const ys={delegatesFocus:!0,mode:"open"},Cs={nextFlipper:l.html`
2038
2038
  <foundation-flipper
@@ -2045,7 +2045,7 @@
2045
2045
  direction="previous"
2046
2046
  aria-hidden="${e=>e.flippersHiddenFromAT}"
2047
2047
  ></foundation-flipper>
2048
- `},ws=bs.compose(Object.assign({baseName:"horizontal-scroll",template:fs,styles:vs,shadowOptions:ys},Cs));var xs=o(70623),$s=o(32808),Ss=o(10463),Es=o(19037),Os=o(22984);const Ts=()=>(xs.Yv.add(Os.X7I,Es.C91,Ss.Cvc),xs.tT.css()),ks=(e,t)=>l.css`
2048
+ `},ws=bs.compose(Object.assign({baseName:"horizontal-scroll",template:fs,styles:gs,shadowOptions:ys},Cs));var xs=o(70623),$s=o(32808),Ss=o(10463),Es=o(19037),Os=o(22984);const Ts=()=>(xs.Yv.add(Os.X7I,Es.C91,Ss.Cvc),xs.tT.css()),ks=(e,t)=>l.css`
2049
2049
  ${Ts()}
2050
2050
 
2051
2051
  .fa-stack-1x {
@@ -2138,9 +2138,9 @@
2138
2138
  </${e}-tooltip>
2139
2139
  `)}
2140
2140
  </template>
2141
- `,Is=l.html`
2141
+ `,Rs=l.html`
2142
2142
  ${e=>Ds(T(e))}
2143
- `,Rs={mode:"open",delegatesFocus:!0},Fs={};var Ns;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Ns||(Ns={}));const As="1x",Ls=["2xs","xs","sm","lg","xl","2xl",As,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class Ms extends s.FoundationElement{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=(0,xs.wu)({prefix:Ns[this.variant],iconName:this.name}),t=(0,xs.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.Cg)([l.observable],Ms.prototype,"iElement",void 0),(0,w.Cg)([$s.k],Ms.prototype,"uuid",void 0),(0,w.Cg)([(0,l.attr)({attribute:"tooltip-id"})],Ms.prototype,"tooltipId",void 0),(0,w.Cg)([l.attr],Ms.prototype,"tooltip",void 0),(0,w.Cg)([(0,l.attr)({attribute:"error",mode:"boolean"})],Ms.prototype,"isError",void 0),(0,w.Cg)([l.attr],Ms.prototype,"name",void 0),(0,w.Cg)([l.attr],Ms.prototype,"size",void 0),(0,w.Cg)([l.attr],Ms.prototype,"variant",void 0);const _s=Ms.compose(Object.assign({baseName:"icon",template:Is,styles:ks,shadowOptions:Rs},Fs)),Ps=(e,t)=>l.css`
2143
+ `,Is={mode:"open",delegatesFocus:!0},Fs={};var Ns;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Ns||(Ns={}));const As="1x",Ls=["2xs","xs","sm","lg","xl","2xl",As,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class Ms extends s.FoundationElement{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=(0,xs.wu)({prefix:Ns[this.variant],iconName:this.name}),t=(0,xs.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.Cg)([l.observable],Ms.prototype,"iElement",void 0),(0,w.Cg)([$s.k],Ms.prototype,"uuid",void 0),(0,w.Cg)([(0,l.attr)({attribute:"tooltip-id"})],Ms.prototype,"tooltipId",void 0),(0,w.Cg)([l.attr],Ms.prototype,"tooltip",void 0),(0,w.Cg)([(0,l.attr)({attribute:"error",mode:"boolean"})],Ms.prototype,"isError",void 0),(0,w.Cg)([l.attr],Ms.prototype,"name",void 0),(0,w.Cg)([l.attr],Ms.prototype,"size",void 0),(0,w.Cg)([l.attr],Ms.prototype,"variant",void 0);const _s=Ms.compose(Object.assign({baseName:"icon",template:Rs,styles:ks,shadowOptions:Is},Fs)),Ps=(e,t)=>l.css`
2144
2144
  ${(0,r.listboxStyles)(e,t)}
2145
2145
 
2146
2146
  :host {
@@ -2151,7 +2151,7 @@
2151
2151
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
2152
2152
  border-radius: calc(var(--control-corner-radius) * 1px);
2153
2153
  }
2154
- `,Hs=(e,t)=>(0,s.listboxTemplate)(e,t);class Us extends r.Listbox{}const Bs=void 0,Gs={},zs=Us.compose(Object.assign({baseName:"listbox",template:Hs,styles:Ps,shadowOptions:Bs},Gs)),js=(e,t)=>l.css`
2154
+ `,Hs=(e,t)=>(0,s.listboxTemplate)(e,t);class Us extends r.Listbox{}const Bs=void 0,zs={},Gs=Us.compose(Object.assign({baseName:"listbox",template:Hs,styles:Ps,shadowOptions:Bs},zs)),js=(e,t)=>l.css`
2155
2155
  ${(0,r.optionStyles)(e,t)}
2156
2156
  `,Vs=(e,t)=>(0,s.listboxOptionTemplate)(e,t);class Ys extends r.ListboxOption{}const Ws=void 0,qs={},Ks=Ys.compose(Object.assign({baseName:"option",template:Vs,styles:js,shadowOptions:Ws},qs)),Qs=(e,t)=>l.css`
2157
2157
  ${(0,r.menuStyles)(e,t)}
@@ -2177,7 +2177,7 @@
2177
2177
  }
2178
2178
  `,dr=l.html`
2179
2179
  ${Si}
2180
- `,cr={mode:"open",delegatesFocus:!0},ur={};class pr extends Ti{constructor(){super(...arguments),this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.modalWidth=0,this.modalHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.draggable=!1,this.onCloseCallback=()=>{this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}draggableChanged(e,t){var o,i;t?(this.onMouseDownBound=this.onMouseDown.bind(this),null===(o=this.mainElement)||void 0===o||o.addEventListener("mousedown",this.onMouseDownBound)):(this.onMouseDownBound&&(null===(i=this.mainElement)||void 0===i||i.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null),this.removeDraggableEventListeners())}show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}connectedCallback(){var e;super.connectedCallback(),this.draggable&&(this.onMouseDownBound=this.onMouseDown.bind(this),null===(e=this.mainElement)||void 0===e||e.addEventListener("mousedown",this.onMouseDownBound))}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeDraggableEventListeners(),this.onMouseDownBound&&(null===(e=this.mainElement)||void 0===e||e.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some((t=>t===e||t.contains(e)))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e))return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.offsetX=e.clientX-t.left,this.offsetY=e.clientY-t.top,this.modalWidth=t.width,this.modalHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,o=window.innerHeight;let i=e.clientX-this.offsetX,n=e.clientY-this.offsetY;i=Math.max(0,Math.min(t-this.modalWidth,i)),n=Math.max(0,Math.min(o-this.modalHeight,n)),requestAnimationFrame((()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${i}px`,top:`${n}px`,margin:"0"})}))}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}}(0,w.Cg)([(0,l.attr)({mode:"boolean"})],pr.prototype,"draggable",void 0);const hr=pr.compose(Object.assign({baseName:"modal",template:dr,styles:lr,shadowOptions:cr},ur)),mr=230,gr=l.css`
2180
+ `,cr={mode:"open",delegatesFocus:!0},ur={};class pr extends Ti{constructor(){super(...arguments),this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.modalWidth=0,this.modalHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.draggable=!1,this.onCloseCallback=()=>{this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}draggableChanged(e,t){var o,i;t?(this.onMouseDownBound=this.onMouseDown.bind(this),null===(o=this.mainElement)||void 0===o||o.addEventListener("mousedown",this.onMouseDownBound)):(this.onMouseDownBound&&(null===(i=this.mainElement)||void 0===i||i.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null),this.removeDraggableEventListeners())}show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}connectedCallback(){var e;super.connectedCallback(),this.draggable&&(this.onMouseDownBound=this.onMouseDown.bind(this),null===(e=this.mainElement)||void 0===e||e.addEventListener("mousedown",this.onMouseDownBound))}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeDraggableEventListeners(),this.onMouseDownBound&&(null===(e=this.mainElement)||void 0===e||e.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some((t=>t===e||t.contains(e)))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e))return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.offsetX=e.clientX-t.left,this.offsetY=e.clientY-t.top,this.modalWidth=t.width,this.modalHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,o=window.innerHeight;let i=e.clientX-this.offsetX,n=e.clientY-this.offsetY;i=Math.max(0,Math.min(t-this.modalWidth,i)),n=Math.max(0,Math.min(o-this.modalHeight,n)),requestAnimationFrame((()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${i}px`,top:`${n}px`,margin:"0"})}))}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}}(0,w.Cg)([(0,l.attr)({mode:"boolean"})],pr.prototype,"draggable",void 0);const hr=pr.compose(Object.assign({baseName:"modal",template:dr,styles:lr,shadowOptions:cr},ur)),mr=230,vr=l.css`
2181
2181
  :host {
2182
2182
  --scrollbar-width: 12px;
2183
2183
  --scrollbar-thumb-width: 8px;
@@ -2281,7 +2281,7 @@
2281
2281
  flex-direction: column;
2282
2282
  position: absolute;
2283
2283
  height: max-content;
2284
- overflow-y: scroll;
2284
+ overflow: hidden;
2285
2285
  margin-top: calc(var(--design-unit) * 1px);
2286
2286
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
2287
2287
  border-radius: 4px;
@@ -2289,16 +2289,25 @@
2289
2289
  width: 100%;
2290
2290
  max-height: 0;
2291
2291
  visibility: hidden;
2292
+ z-index: 999;
2293
+ }
2294
+
2295
+ .multiselect-dropdown:not(.is-resizing) {
2292
2296
  transition:
2293
2297
  max-height 0.4s ease 0s,
2294
2298
  visibility 0.4s ease 0s;
2295
- z-index: 999;
2296
2299
  }
2297
2300
 
2298
2301
  .checkbox-container {
2299
2302
  display: flex;
2300
2303
  flex-direction: column;
2301
2304
  list-style: none;
2305
+ overflow-y: auto;
2306
+ height: 100%;
2307
+ }
2308
+
2309
+ .is-resizing .checkbox-container {
2310
+ overflow-y: hidden;
2302
2311
  }
2303
2312
 
2304
2313
  .checkbox-container zero-checkbox {
@@ -2312,7 +2321,8 @@
2312
2321
 
2313
2322
  .visible {
2314
2323
  visibility: visible;
2315
- max-height: ${mr.toString()}px;
2324
+ max-height: var(--custom-max-height, ${mr.toString()}px);
2325
+ overflow: hidden;
2316
2326
  }
2317
2327
 
2318
2328
  ::slotted(foundation-checkbox),
@@ -2376,7 +2386,39 @@
2376
2386
  .options-header-item-hidden {
2377
2387
  display: none;
2378
2388
  }
2379
- `;let vr=class extends ft{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){var t;const o=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>{var t;return{value:e[this.valueField],label:this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.Cg)([(0,l.attr)({attribute:"value-field"})],vr.prototype,"valueField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"label-field"})],vr.prototype,"labelField",void 0),vr=(0,w.Cg)([(0,l.customElement)({name:"multiselect-datasource"})],vr);const fr=(e="foundation")=>l.html`
2389
+
2390
+ .resize-button {
2391
+ position: absolute;
2392
+ bottom: 0;
2393
+ right: 0;
2394
+ width: 12px;
2395
+ height: 12px;
2396
+ cursor: nw-resize;
2397
+ background: linear-gradient(
2398
+ -45deg,
2399
+ transparent 30%,
2400
+ var(--neutral-foreground-rest) 30%,
2401
+ var(--neutral-foreground-rest) 40%,
2402
+ transparent 40%,
2403
+ transparent 60%,
2404
+ var(--neutral-foreground-rest) 60%,
2405
+ var(--neutral-foreground-rest) 70%,
2406
+ transparent 70%
2407
+ );
2408
+ z-index: 1000;
2409
+ opacity: 60%;
2410
+ transition: opacity 0.2s ease;
2411
+ }
2412
+
2413
+ .resize-button:hover {
2414
+ opacity: 100%;
2415
+ }
2416
+
2417
+ .multiselect-dropdown.resizable {
2418
+ resize: none;
2419
+ overflow: hidden;
2420
+ }
2421
+ `;let gr=class extends ft{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){var t;const o=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>{var t;return{value:e[this.valueField],label:this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.Cg)([(0,l.attr)({attribute:"value-field"})],gr.prototype,"valueField",void 0),(0,w.Cg)([(0,l.attr)({attribute:"label-field"})],gr.prototype,"labelField",void 0),gr=(0,w.Cg)([(0,l.customElement)({name:"multiselect-datasource"})],gr);const fr=(e="foundation")=>l.html`
2380
2422
  <label
2381
2423
  part="label"
2382
2424
  for="display-field"
@@ -2423,7 +2465,17 @@
2423
2465
  ${(0,l.when)((e=>e.loading),l.html`
2424
2466
  <${e}-progress slot="indicator"></${e}-progress>
2425
2467
  `)}
2426
- <section class="multiselect-dropdown" ${(0,l.ref)("multiselectDropdown")} part="multiselect-dropdown">
2468
+ <section
2469
+ class=${e=>(0,x.x)("multiselect-dropdown",["resizable",e.resizable])}
2470
+ ${(0,l.ref)("multiselectDropdown")}
2471
+ part="multiselect-dropdown"
2472
+ >
2473
+ ${(0,l.when)((e=>e.resizable),l.html`
2474
+ <div
2475
+ class="resize-button"
2476
+ @mousedown=${(e,t)=>e.handleResizeStart(t.event)}
2477
+ ></div>
2478
+ `)}
2427
2479
  ${(0,l.when)((e=>e.all),l.html`
2428
2480
  <${e}-button
2429
2481
  class="select-all"
@@ -2471,11 +2523,11 @@
2471
2523
  </section>
2472
2524
  </div>
2473
2525
  <slot
2474
- ${(0,l.slotted)({property:"slottedDatasource",filter:e=>e instanceof vr})}
2526
+ ${(0,l.slotted)({property:"slottedDatasource",filter:e=>e instanceof gr})}
2475
2527
  ></slot>
2476
2528
  `,br=l.html`
2477
2529
  ${fr()}
2478
- `,yr=void 0,Cr={};class wr extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=Ge.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=st()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,n,a;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.multiselectDropdown)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(a=this.multiselectDropdown)||void 0===a||a.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===Ge.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}defaultItemRenderer(e,t){return l.html`
2530
+ `,yr=void 0,Cr={};class wr extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ze.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,o=e.clientY-this.startY,i=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+o);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${i}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=st()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,n,a;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.multiselectDropdown)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(a=this.multiselectDropdown)||void 0===a||a.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return l.html`
2479
2531
  ${"string"==typeof e?l.html`
2480
2532
  <span part="option-label">${()=>t.getItemLabel(e)}</span>
2481
2533
  `:l.html`
@@ -2487,7 +2539,7 @@
2487
2539
  ${()=>t.getItemLabel(e)}
2488
2540
  </span>
2489
2541
  `}
2490
- `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionValueGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,n=o-t.bottom;e=n<mr&&i>n?Ge.ABOVE:Ge.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===Ge.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===Ge.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionValueGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some((o=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(o)===JSON.stringify(t)}catch(e){return o===t}return o===t}))}selectCheckboxOne(e){const t=this.optionValueGetter(e),o=this.selectedOptions.includes(t);this.selectedOptions=o?this.selectedOptions.filter((e=>e!==t)):[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionValueGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter((t=>{var o,i;const n="string"==typeof t?t:null!==(o=this.optionLabelGetter(t))&&void 0!==o?o:this.optionValueGetter(t);return(null!==(i=null==n?void 0:n.toLowerCase())&&void 0!==i?i:"")===e}))}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter((t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const o=t.label.toLowerCase(),i="object"==typeof t.value?(n=t.value,Object.values(n).some((t=>t.toLowerCase().includes(e)))):String(t.value).toLowerCase().includes(e);var n;return o.includes(e)||i}))}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===nt.v.DATASERVER&&kt(this.slottedDatasource[0],this.filterSearchValue),e===nt.v.REQUEST_SERVER&&Dt(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,ae.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:o=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),o&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:o})}}(0,w.Cg)([l.attr],wr.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],wr.prototype,"autoPosition",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"all",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"allSelected",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"search",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"disabled",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"creatable",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"async",void 0),(0,w.Cg)([l.attr],wr.prototype,"debounce",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"filter-by-contains"})],wr.prototype,"filterByContains",void 0),(0,w.Cg)([l.observable],wr.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],wr.prototype,"slottedDatasource",void 0),(0,w.Cg)([l.observable],wr.prototype,"valueFormatter",void 0),(0,w.Cg)([l.observable],wr.prototype,"loading",void 0),(0,w.Cg)([l.observable],wr.prototype,"filterSearchValue",void 0),(0,w.Cg)([l.observable],wr.prototype,"open",void 0),(0,w.Cg)([l.observable],wr.prototype,"options",void 0),(0,w.Cg)([l.observable],wr.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],wr.prototype,"filteredAvailableOptions",void 0),(0,w.Cg)([l.observable],wr.prototype,"scrollContainer",void 0),(0,w.Cg)([l.attr],wr.prototype,"position",void 0),(0,w.Cg)([l.observable],wr.prototype,"onAllSelectedCallback",void 0),(0,w.Cg)([l.observable],wr.prototype,"itemRenderer",void 0),(0,w.Cg)([l.volatile],wr.prototype,"getDisplayValue",null),(0,w.Cg)([l.volatile],wr.prototype,"getPlaceholder",null),(0,w.Cg)([l.volatile],wr.prototype,"isAllOptionsDisabled",null),(0,w.Cg)([l.volatile],wr.prototype,"showCreatable",null),(0,w.Cg)([l.observable],wr.prototype,"optionsHeaderSlottedNodes",void 0);const xr=wr.compose(Object.assign({baseName:"multiselect",template:br,styles:gr,shadowOptions:yr},Cr));class $r{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),o=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(o.map(((e,t)=>[e,t])));this._group=new RegExp(`[${t.find((e=>"group"===e.type)).value}]`,"g"),this._decimal=new RegExp(`[${t.find((e=>"decimal"===e.type)).value}]`),this._separator=new RegExp(`[$${t.find((e=>"decimal"===e.type)).value}](?:0*$|[^0]0+$)`),this._numeral=new RegExp(`[${o.join("")}]`,"g"),this._index=e=>i.get(e)}parse(e){return(e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e:NaN}hasSeparator(e){return this._separator.test(e)}}const Sr=(e,t)=>l.css`
2542
+ `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionValueGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,n=o-t.bottom;e=n<mr&&i>n?ze.ABOVE:ze.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===ze.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===ze.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionValueGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some((o=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(o)===JSON.stringify(t)}catch(e){return o===t}return o===t}))}selectCheckboxOne(e){const t=this.optionValueGetter(e),o=this.selectedOptions.includes(t);this.selectedOptions=o?this.selectedOptions.filter((e=>e!==t)):[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionValueGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter((t=>{var o,i;const n="string"==typeof t?t:null!==(o=this.optionLabelGetter(t))&&void 0!==o?o:this.optionValueGetter(t);return(null!==(i=null==n?void 0:n.toLowerCase())&&void 0!==i?i:"")===e}))}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter((t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const o=t.label.toLowerCase(),i="object"==typeof t.value?(n=t.value,Object.values(n).some((t=>t.toLowerCase().includes(e)))):String(t.value).toLowerCase().includes(e);var n;return o.includes(e)||i}))}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===nt.v.DATASERVER&&kt(this.slottedDatasource[0],this.filterSearchValue),e===nt.v.REQUEST_SERVER&&Dt(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,ae.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:o=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),o&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:o})}}(0,w.Cg)([l.attr],wr.prototype,"name",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],wr.prototype,"autoPosition",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"all",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"allSelected",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"search",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"disabled",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"creatable",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"async",void 0),(0,w.Cg)([l.attr],wr.prototype,"debounce",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],wr.prototype,"resizable",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"filter-by-contains"})],wr.prototype,"filterByContains",void 0),(0,w.Cg)([l.observable],wr.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],wr.prototype,"slottedDatasource",void 0),(0,w.Cg)([l.observable],wr.prototype,"valueFormatter",void 0),(0,w.Cg)([l.observable],wr.prototype,"loading",void 0),(0,w.Cg)([l.observable],wr.prototype,"filterSearchValue",void 0),(0,w.Cg)([l.observable],wr.prototype,"open",void 0),(0,w.Cg)([l.observable],wr.prototype,"options",void 0),(0,w.Cg)([l.observable],wr.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],wr.prototype,"filteredAvailableOptions",void 0),(0,w.Cg)([l.observable],wr.prototype,"scrollContainer",void 0),(0,w.Cg)([l.attr],wr.prototype,"position",void 0),(0,w.Cg)([l.observable],wr.prototype,"onAllSelectedCallback",void 0),(0,w.Cg)([l.observable],wr.prototype,"itemRenderer",void 0),(0,w.Cg)([l.volatile],wr.prototype,"getDisplayValue",null),(0,w.Cg)([l.volatile],wr.prototype,"getPlaceholder",null),(0,w.Cg)([l.volatile],wr.prototype,"isAllOptionsDisabled",null),(0,w.Cg)([l.volatile],wr.prototype,"showCreatable",null),(0,w.Cg)([l.observable],wr.prototype,"optionsHeaderSlottedNodes",void 0);const xr=wr.compose(Object.assign({baseName:"multiselect",template:br,styles:vr,shadowOptions:yr},Cr));class $r{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),o=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(o.map(((e,t)=>[e,t])));this._group=new RegExp(`[${t.find((e=>"group"===e.type)).value}]`,"g"),this._decimal=new RegExp(`[${t.find((e=>"decimal"===e.type)).value}]`),this._separator=new RegExp(`[$${t.find((e=>"decimal"===e.type)).value}](?:0*$|[^0]0+$)`),this._numeral=new RegExp(`[${o.join("")}]`,"g"),this._index=e=>i.get(e)}parse(e){return(e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e:NaN}hasSeparator(e){return this._separator.test(e)}}const Sr=(e,t)=>l.css`
2491
2543
  ${(0,r.numberFieldStyles)(e,t)}
2492
2544
  ::part(label) {
2493
2545
  color: var(--neutral-foreground-rest);
@@ -2590,7 +2642,7 @@
2590
2642
  ${(0,s.endSlotTemplate)(e,t)}
2591
2643
  </div>
2592
2644
  </template>
2593
- `,Or=(e,t)=>{var o;return{decimalSeparator:(null===(o=new Intl.NumberFormat(t).formatToParts(12345.6).find((e=>"decimal"===e.type)))||void 0===o?void 0:o.value)||"."}},Tr=(e,t)=>{const{decimalSeparator:o}=Or(0,t);return"."===o?e:e.replace(/\./g,o)},kr=(e,t,o)=>Intl.NumberFormat(t,o).format(Number(e)),Dr=(e,t,o=!0)=>{let i=parseFloat(parseFloat(o?((e,t)=>String(new $r(t).parse(String(e))))(e,t):e).toPrecision(12));return isNaN(i)&&(i=""),String(i)},Ir=(e,t)=>((e,t,o)=>{const{decimalSeparator:i}=Or(0,o),n=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${n}(\\d*?)(0+)$`),s=e.match(a);if(s){const e=s[1],o=s[2],i=String(t);if(!isNaN(Number(t))){if(i.includes(".")){const t=i.split(".")[1],n=Math.max(0,o.length-(t.length-e.length));return i+"0".repeat(n)}return i+"."+e+o}}return String(t)})(e,Dr(e,t),t),Rr=(e,t,o=!0,i,n)=>{let a=parseFloat(Dr(e,t,o));return isNaN(a)?a="":(a=Math.min(a,null!=n?n:a),a=Math.max(a,null!=i?i:a)),String(a)};class Fr extends r.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString(),this.control.value=Rr(t.toString(),this.locale,this.withFormatting,this.min,this.max),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString(),this.control.value=Rr(t.toString(),this.locale,this.withFormatting,this.min,this.max),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){"-"!==this.control.value&&"-0"!==this.control.value&&(this.isUserInput=!0,this.withFormatting&&!new $r(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate((()=>{const e=Ir(this.control.value,this.locale);this.value=e,this.control.value=Tr(e,this.locale),this.$emit("input")})):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||l.DOM.queueUpdate((()=>{this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value,this.$emit("input")})))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=Rr(this.value,this.locale,!1,this.min,this.max),void l.DOM.queueUpdate((()=>{this.control.value=this.withFormatting&&this.value?kr(this.value,this.locale,this.options):this.value}));const e=t;l.DOM.queueUpdate((()=>{var t;""!==(null===(t=this.control)||void 0===t?void 0:t.value)&&""!==this.value?(this.control.value=Tr(String(e),this.locale),this.value=this.withFormatting?Ir(this.control.value,this.locale):this.control.value):this.control.value=e}))}}handleBlur(){this.isUserInput=!1;const e=Rr(this.control.value,this.locale,this.withFormatting,this.min,this.max);e&&!isNaN(parseFloat(e))&&(this.value=Intl.NumberFormat("en-US",{maximumFractionDigits:this.options.maximumFractionDigits,useGrouping:!1}).format(parseFloat(e))),this.control.value=this.withFormatting&&this.value?kr(this.value,this.locale,this.options):e,this.$emit("input")}}(0,w.Cg)([l.attr],Fr.prototype,"autocomplete",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Fr.prototype,"hideStep",void 0),(0,w.Cg)([l.attr],Fr.prototype,"value",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Fr.prototype,"withFormatting",void 0),(0,w.Cg)([l.attr],Fr.prototype,"locale",void 0);const Nr={delegatesFocus:!0,mode:"open"},Ar={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '},Lr=Fr.compose(Object.assign({baseName:"number-field",template:Er,styles:Sr,shadowOptions:Nr},Ar));var Mr=o(92277);var _r=o(72154),Pr=o.n(_r),Hr=o(57565),Ur=o.n(Hr),Br=o(13160),Gr=o(24669),zr=o(5709),jr=o(45230);const Vr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,w.sH)(void 0,void 0,void 0,(function*(){const t=(0,ht.tn)(),o=yield t.getMoreColumns(e),i=Date.now(),n=o;return{isConnected:o.MESSAGE_TYPE===ct.Go.MORE_COLUMNS_ACK,lastUpdated:i,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,jr.Ol)().sendForStream(e,o,i)}},Yr=s.DI.createInterface((e=>e.instance(Vr))),Wr="system-health-changed";var qr;const Kr=(0,ne.createLogger)("network-monitor",{level:ne.LogLevel.Info}),Qr=Date.now(),Xr=(null===(qr=window.navigator)||void 0===qr?void 0:qr.userAgent)?Pr().parse(window.navigator.userAgent):void 0,Jr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Ur()(e,void 0,2,t);class Zr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,w.sH)(this,void 0,void 0,(function*(){if(!this.isReady||this.isRunningChecks&&!t)return;Kr.info("Run health checks, triggered by",Jr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();i?Kr.debug(`Network connected at ${o}`):Kr.warn(`Network disconnected at ${o}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),i),a=this.preFlightSocketChecks(n);if(a||Kr.debug("Socket pre-flight checks failed"),!i||!a){Kr.debug("Aborting remaining health checks");const e=[...this.resources].reduce(((e,[t,o])=>{const n=e[o.resourceName];return n?(n.sourceRef=[...n.sourceRef,o.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:[o.message.SOURCE_REF],isConnected:o.isConnected,lastUpdated:o.lastUpdated},i)})}),{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:n,functions:a}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=a,{SOURCE_REF:c}=n;let u,p,h,m,g,v=!1;r.push((()=>(0,w.sH)(this,void 0,void 0,(function*(){var n,a,r;try{Kr.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(a=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),a)})))]);v=e.isConnected,u=e.lastUpdated,p=e.lastMessage,m=e.timeout}catch(e){v=!1,u=this.getNowTimestamp(),h=e,p=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return g=(null==p?void 0:p.MESSAGE_TYPE)===ct.Go.MSG_NACK||(0,ct.z2)(p,Br.v.NOT_FOUND),o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),v?Kr.debug(`${i} is healthy at ${o}`):Kr.warn(`${i} is not healthy at ${o}`),p&&Kr.debug(`${i} messaged at ${o}`,Jr(p)),h&&Kr.error(`${i} errored at ${o}`,Jr(h)),m&&Kr.warn(`${i} timed out at ${o}`),g&&(Kr.error(`${i} issue, re-attempting data logon at ${o}`),d(e)),s&&(s=v),{name:i,sourceRef:[c],isConnected:v,lastUpdated:u,lastError:h}})))())}));const l=(yield Promise.allSettled(r)).reduce(((e,t)=>{if("fulfilled"===t.status){const o=e[t.value.name];return o?(o.sourceRef=[...o.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return Kr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e}),{});Kr.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:l,resourcesAllConnected:s,socket:n}),this.isRunningChecks=!1})),void 0!==this.config.logLevel&&(Kr.level=this.config.logLevel)}create(){this.resources?Kr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout((()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")}),this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.addEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.addEventListener(e,this.runAllChecks))),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener((({detail:e})=>{const{functions:t,message:o,resourceName:i,stream:n}=e;this.config.ignoredGenesisResources.includes(i)||this.addResource(n,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{const{resourceName:t,stream:o}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(o)}),(({detail:e})=>{var t;const{resourceName:o,stream:i,error:n}=e,a=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let s="";(0,ct.z2)(a,Br.v.NOT_FOUND)?s="Please check the resource is running.":(0,ct.z2)(a,Br.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(i)),Kr.error(`${o} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,n)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener((e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)}))),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&Kr.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",o)})))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.removeEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.removeEventListener(e,this.runAllChecks))),this.unsubscribableObservers.forEach((e=>e())),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const o=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?Kr.debug:Kr.warn)("Emitting 'system-health-changed' event",Jr(this.status)),null==o||o.dispatchEvent(new CustomEvent(Wr,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(Kr.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,w.sH)(this,void 0,void 0,(function*(){return Kr.debug("User requested report stability to Genesis."),Kr.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0}))}normaliseResourceHealth(e,t=!0){var o;const i=!!t&&e.isConnected,n=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:i,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const o=!!t&&e.isConnected,i=!o;return Object.assign(Object.assign({},e),{isConnected:o,isDisconnected:i})}normaliseEventDetail(e){var t,o,i,n;const a=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(o=e.socket)||void 0===o?void 0:o.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:Xr,username:l,isHealthy:a,lastUpdated:s,nextUpdate:r,firstUpdated:Qr,runAllChecks:()=>{Kr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return Kr.debug("Socket not configured"),!1;if(e.isReconnecting)return Kr.debug("Socket reconnecting"),!1;if(e.isConnecting)return Kr.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return Kr.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&Kr.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return Kr.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,gt.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval((()=>this.runAllChecks("check interval")),this.config.checkInterval)}}(0,w.Cg)([Yr],Zr.prototype,"config",void 0),(0,w.Cg)([zr.S5],Zr.prototype,"socketStatus",void 0),(0,w.Cg)([Gr.a4],Zr.prototype,"connectEvents",void 0),(0,w.Cg)([Mr.KJ],Zr.prototype,"user",void 0),(0,w.Cg)([l.observable],Zr.prototype,"status",void 0);const el=s.DI.createInterface((e=>e.singleton(Zr)));var tl=o(6526);const ol=(e,t)=>l.css`
2645
+ `,Or=(e,t)=>{var o;return{decimalSeparator:(null===(o=new Intl.NumberFormat(t).formatToParts(12345.6).find((e=>"decimal"===e.type)))||void 0===o?void 0:o.value)||"."}},Tr=(e,t)=>{const{decimalSeparator:o}=Or(0,t);return"."===o?e:e.replace(/\./g,o)},kr=(e,t,o)=>Intl.NumberFormat(t,o).format(Number(e)),Dr=(e,t,o=!0)=>{let i=parseFloat(parseFloat(o?((e,t)=>String(new $r(t).parse(String(e))))(e,t):e).toPrecision(12));return isNaN(i)&&(i=""),String(i)},Rr=(e,t)=>((e,t,o)=>{const{decimalSeparator:i}=Or(0,o),n=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${n}(\\d*?)(0+)$`),s=e.match(a);if(s){const e=s[1],o=s[2],i=String(t);if(!isNaN(Number(t))){if(i.includes(".")){const t=i.split(".")[1],n=Math.max(0,o.length-(t.length-e.length));return i+"0".repeat(n)}return i+"."+e+o}}return String(t)})(e,Dr(e,t),t),Ir=(e,t,o=!0,i,n)=>{let a=parseFloat(Dr(e,t,o));return isNaN(a)?a="":(a=Math.min(a,null!=n?n:a),a=Math.max(a,null!=i?i:a)),String(a)};class Fr extends r.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString(),this.control.value=Ir(t.toString(),this.locale,this.withFormatting,this.min,this.max),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString(),this.control.value=Ir(t.toString(),this.locale,this.withFormatting,this.min,this.max),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){"-"!==this.control.value&&"-0"!==this.control.value&&(this.isUserInput=!0,this.withFormatting&&!new $r(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate((()=>{const e=Rr(this.control.value,this.locale);this.value=e,this.control.value=Tr(e,this.locale),this.$emit("input")})):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||l.DOM.queueUpdate((()=>{this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value,this.$emit("input")})))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=Ir(this.value,this.locale,!1,this.min,this.max),void l.DOM.queueUpdate((()=>{this.control.value=this.withFormatting&&this.value?kr(this.value,this.locale,this.options):this.value}));const e=t;l.DOM.queueUpdate((()=>{var t;""!==(null===(t=this.control)||void 0===t?void 0:t.value)&&""!==this.value?(this.control.value=Tr(String(e),this.locale),this.value=this.withFormatting?Rr(this.control.value,this.locale):this.control.value):this.control.value=e}))}}handleBlur(){this.isUserInput=!1;const e=Ir(this.control.value,this.locale,this.withFormatting,this.min,this.max);e&&!isNaN(parseFloat(e))&&(this.value=Intl.NumberFormat("en-US",{maximumFractionDigits:this.options.maximumFractionDigits,useGrouping:!1}).format(parseFloat(e))),this.control.value=this.withFormatting&&this.value?kr(this.value,this.locale,this.options):e,this.$emit("input")}}(0,w.Cg)([l.attr],Fr.prototype,"autocomplete",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Fr.prototype,"hideStep",void 0),(0,w.Cg)([l.attr],Fr.prototype,"value",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Fr.prototype,"withFormatting",void 0),(0,w.Cg)([l.attr],Fr.prototype,"locale",void 0);const Nr={delegatesFocus:!0,mode:"open"},Ar={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '},Lr=Fr.compose(Object.assign({baseName:"number-field",template:Er,styles:Sr,shadowOptions:Nr},Ar));var Mr=o(92277);var _r=o(72154),Pr=o.n(_r),Hr=o(57565),Ur=o.n(Hr),Br=o(13160),zr=o(24669),Gr=o(5709),jr=o(45230);const Vr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,w.sH)(void 0,void 0,void 0,(function*(){const t=(0,ht.tn)(),o=yield t.getMoreColumns(e),i=Date.now(),n=o;return{isConnected:o.MESSAGE_TYPE===ct.Go.MORE_COLUMNS_ACK,lastUpdated:i,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,jr.Ol)().sendForStream(e,o,i)}},Yr=s.DI.createInterface((e=>e.instance(Vr))),Wr="system-health-changed";var qr;const Kr=(0,ne.createLogger)("network-monitor",{level:ne.LogLevel.Info}),Qr=Date.now(),Xr=(null===(qr=window.navigator)||void 0===qr?void 0:qr.userAgent)?Pr().parse(window.navigator.userAgent):void 0,Jr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Ur()(e,void 0,2,t);class Zr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,w.sH)(this,void 0,void 0,(function*(){if(!this.isReady||this.isRunningChecks&&!t)return;Kr.info("Run health checks, triggered by",Jr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();i?Kr.debug(`Network connected at ${o}`):Kr.warn(`Network disconnected at ${o}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),i),a=this.preFlightSocketChecks(n);if(a||Kr.debug("Socket pre-flight checks failed"),!i||!a){Kr.debug("Aborting remaining health checks");const e=[...this.resources].reduce(((e,[t,o])=>{const n=e[o.resourceName];return n?(n.sourceRef=[...n.sourceRef,o.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:[o.message.SOURCE_REF],isConnected:o.isConnected,lastUpdated:o.lastUpdated},i)})}),{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:n,functions:a}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=a,{SOURCE_REF:c}=n;let u,p,h,m,v,g=!1;r.push((()=>(0,w.sH)(this,void 0,void 0,(function*(){var n,a,r;try{Kr.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(a=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),a)})))]);g=e.isConnected,u=e.lastUpdated,p=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),h=e,p=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return v=(null==p?void 0:p.MESSAGE_TYPE)===ct.Go.MSG_NACK||(0,ct.z2)(p,Br.v.NOT_FOUND),o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?Kr.debug(`${i} is healthy at ${o}`):Kr.warn(`${i} is not healthy at ${o}`),p&&Kr.debug(`${i} messaged at ${o}`,Jr(p)),h&&Kr.error(`${i} errored at ${o}`,Jr(h)),m&&Kr.warn(`${i} timed out at ${o}`),v&&(Kr.error(`${i} issue, re-attempting data logon at ${o}`),d(e)),s&&(s=g),{name:i,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:h}})))())}));const l=(yield Promise.allSettled(r)).reduce(((e,t)=>{if("fulfilled"===t.status){const o=e[t.value.name];return o?(o.sourceRef=[...o.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return Kr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e}),{});Kr.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:l,resourcesAllConnected:s,socket:n}),this.isRunningChecks=!1})),void 0!==this.config.logLevel&&(Kr.level=this.config.logLevel)}create(){this.resources?Kr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout((()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")}),this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.addEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.addEventListener(e,this.runAllChecks))),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener((({detail:e})=>{const{functions:t,message:o,resourceName:i,stream:n}=e;this.config.ignoredGenesisResources.includes(i)||this.addResource(n,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{const{resourceName:t,stream:o}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(o)}),(({detail:e})=>{var t;const{resourceName:o,stream:i,error:n}=e,a=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let s="";(0,ct.z2)(a,Br.v.NOT_FOUND)?s="Please check the resource is running.":(0,ct.z2)(a,Br.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(i)),Kr.error(`${o} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,n)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener((e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)}))),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&Kr.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",o)})))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.removeEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.removeEventListener(e,this.runAllChecks))),this.unsubscribableObservers.forEach((e=>e())),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const o=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?Kr.debug:Kr.warn)("Emitting 'system-health-changed' event",Jr(this.status)),null==o||o.dispatchEvent(new CustomEvent(Wr,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(Kr.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,w.sH)(this,void 0,void 0,(function*(){return Kr.debug("User requested report stability to Genesis."),Kr.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0}))}normaliseResourceHealth(e,t=!0){var o;const i=!!t&&e.isConnected,n=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:i,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const o=!!t&&e.isConnected,i=!o;return Object.assign(Object.assign({},e),{isConnected:o,isDisconnected:i})}normaliseEventDetail(e){var t,o,i,n;const a=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(o=e.socket)||void 0===o?void 0:o.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:Xr,username:l,isHealthy:a,lastUpdated:s,nextUpdate:r,firstUpdated:Qr,runAllChecks:()=>{Kr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return Kr.debug("Socket not configured"),!1;if(e.isReconnecting)return Kr.debug("Socket reconnecting"),!1;if(e.isConnecting)return Kr.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return Kr.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&Kr.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return Kr.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,vt.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval((()=>this.runAllChecks("check interval")),this.config.checkInterval)}}(0,w.Cg)([Yr],Zr.prototype,"config",void 0),(0,w.Cg)([Gr.S5],Zr.prototype,"socketStatus",void 0),(0,w.Cg)([zr.a4],Zr.prototype,"connectEvents",void 0),(0,w.Cg)([Mr.KJ],Zr.prototype,"user",void 0),(0,w.Cg)([l.observable],Zr.prototype,"status",void 0);const el=s.DI.createInterface((e=>e.singleton(Zr)));var tl=o(6526);const ol=(e,t)=>l.css`
2594
2646
  ${(0,r.progressStyles)(e,t)}
2595
2647
  :host {
2596
2648
  height: calc(var(--design-unit) * 2px);
@@ -2673,16 +2725,16 @@
2673
2725
  </div>
2674
2726
  <div class="first-updated">
2675
2727
  <dt>First updated</dt>
2676
- <dd>${e=>(0,gt.zT)(e.status.firstUpdated)}</dd>
2728
+ <dd>${e=>(0,vt.zT)(e.status.firstUpdated)}</dd>
2677
2729
  </div>
2678
2730
  <div class="last-updated">
2679
2731
  <dt>Last updated</dt>
2680
- <dd>${e=>(0,gt.zT)(e.status.lastUpdated)}</dd>
2732
+ <dd>${e=>(0,vt.zT)(e.status.lastUpdated)}</dd>
2681
2733
  </div>
2682
2734
  ${(0,l.when)((e=>!e.status.socket.reconnectionLimitReached),l.html`
2683
2735
  <div class="next-update">
2684
2736
  <dt>Next update</dt>
2685
- <dd>${e=>(0,gt.zT)(e.status.nextUpdate)}</dd>
2737
+ <dd>${e=>(0,vt.zT)(e.status.nextUpdate)}</dd>
2686
2738
  </div>
2687
2739
  <div class="next-update-progress">
2688
2740
  <dt></dt>
@@ -2765,7 +2817,7 @@
2765
2817
  </div>
2766
2818
  <div class="last-checked">
2767
2819
  <dt>Checked</dt>
2768
- <dd>${e=>(0,gt.zT)(e.lastUpdated)}</dd>
2820
+ <dd>${e=>(0,vt.zT)(e.lastUpdated)}</dd>
2769
2821
  </div>
2770
2822
  <div class="subscriptions">
2771
2823
  <dt>Subscriptions</dt>
@@ -3056,7 +3108,7 @@
3056
3108
  padding: 0.2em 0.5em;
3057
3109
  background-color: var(--color-unhealthy-opacity-20);
3058
3110
  }
3059
- `,gl=void 0,vl={},fl=pl.compose(Object.assign({baseName:"system-health-overlay",template:hl,styles:ml,shadowOptions:gl},vl));var bl=o(4934);const yl={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Cl extends s.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,bl.n4)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,w.Cg)([l.attr],Cl.prototype,"selector",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Cl.prototype,"show",void 0),(0,w.Cg)([l.attr],Cl.prototype,"event",void 0),(0,w.Cg)([l.attr],Cl.prototype,"placement",void 0),(0,w.Cg)([(0,l.attr)({converter:yl})],Cl.prototype,"offset",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Cl.prototype,"flip",void 0);const wl=l.css`
3111
+ `,vl=void 0,gl={},fl=pl.compose(Object.assign({baseName:"system-health-overlay",template:hl,styles:ml,shadowOptions:vl},gl));var bl=o(4934);const yl={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Cl extends s.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,bl.n4)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,w.Cg)([l.attr],Cl.prototype,"selector",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Cl.prototype,"show",void 0),(0,w.Cg)([l.attr],Cl.prototype,"event",void 0),(0,w.Cg)([l.attr],Cl.prototype,"placement",void 0),(0,w.Cg)([(0,l.attr)({converter:yl})],Cl.prototype,"offset",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Cl.prototype,"flip",void 0);const wl=l.css`
3060
3112
  :host {
3061
3113
  display: none;
3062
3114
  inset: unset !important;
@@ -3072,18 +3124,18 @@
3072
3124
  </template>
3073
3125
  `,$l=Cl.compose({baseName:"popper",styles:wl,template:xl}),Sl=(e,t)=>l.css`
3074
3126
  ${(0,r.progressRingStyles)(e,t)}
3075
- `,El=(e,t)=>(0,s.progressRingTemplate)(e,t);class Ol extends r.Progress{}const Tl=void 0,kl={indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n '},Dl=Ol.compose(Object.assign({baseName:"progress-ring",template:El,styles:Sl,shadowOptions:Tl},kl)),Il=(e,t)=>l.css`
3127
+ `,El=(e,t)=>(0,s.progressRingTemplate)(e,t);class Ol extends r.Progress{}const Tl=void 0,kl={indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n '},Dl=Ol.compose(Object.assign({baseName:"progress-ring",template:El,styles:Sl,shadowOptions:Tl},kl)),Rl=(e,t)=>l.css`
3076
3128
  ${(0,r.radioStyles)(e,t)}
3077
- `,Rl=(e,t)=>(0,s.radioTemplate)(e,t);class Fl extends r.Radio{}const Nl=void 0,Al={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Ll=Fl.compose(Object.assign({baseName:"radio",template:Rl,styles:Il,shadowOptions:Nl},Al)),Ml=(e,t)=>l.css`
3129
+ `,Il=(e,t)=>(0,s.radioTemplate)(e,t);class Fl extends r.Radio{}const Nl=void 0,Al={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Ll=Fl.compose(Object.assign({baseName:"radio",template:Il,styles:Rl,shadowOptions:Nl},Al)),Ml=(e,t)=>l.css`
3078
3130
  ${(0,r.radioGroupStyles)(e,t)}
3079
- `,_l=(e,t)=>(0,s.radioGroupTemplate)(e,t);class Pl extends r.RadioGroup{}const Hl=void 0,Ul={},Bl=Pl.compose(Object.assign({baseName:"radio-group",template:_l,styles:Ml,shadowOptions:Hl},Ul)),Gl=l.css`
3131
+ `,_l=(e,t)=>(0,s.radioGroupTemplate)(e,t);class Pl extends r.RadioGroup{}const Hl=void 0,Ul={},Bl=Pl.compose(Object.assign({baseName:"radio-group",template:_l,styles:Ml,shadowOptions:Hl},Ul)),zl=l.css`
3080
3132
  /* Host */
3081
3133
  :host {
3082
3134
  display: flex;
3083
3135
  flex-direction: column;
3084
3136
  width: 100%;
3085
3137
  }
3086
- `,zl=e=>l.html`
3138
+ `,Gl=e=>l.html`
3087
3139
  <template>
3088
3140
  <${e}-scheduler-timezone
3089
3141
  :timezone=${(0,Ve.O)((e=>e.timezone))}
@@ -3095,8 +3147,8 @@
3095
3147
  ></${e}-scheduler-cron-builder>
3096
3148
  </template>
3097
3149
  `,jl=l.html`
3098
- ${e=>zl(T(e))}
3099
- `;class Vl extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:o}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:o}),this.$emit("change",this.cronConfig)}}(0,w.Cg)([l.observable],Vl.prototype,"timezone",void 0),(0,w.Cg)([l.observable],Vl.prototype,"cron",void 0),(0,w.Cg)([l.observable],Vl.prototype,"cronConfig",void 0);const Yl=void 0,Wl={},ql=Vl.compose(Object.assign({baseName:"scheduler",styles:Gl,template:jl,shadowOptions:Yl},Wl)),Kl=(e,t,o)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let i={title:e.title,body:e.body},n={};e.createdAt&&(i=Object.assign({createdAt:e.createdAt},i)),e.logLevel in ne.LogLevel&&(i=Object.assign({logLevel:e.logLevel},i)),e.toast&&(n=Object.assign({toast:e.toast},n),i=Object.assign({config:n},i)),Gn(i,t,o)};var Ql,Xl,Jl;!function(e){e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(Ql||(Ql={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(Xl||(Xl={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(Jl||(Jl={}));const Zl=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],ed=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],td=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}];var od;!function(e){e.updateCronConfig="update-cron-config"}(od||(od={}));const id=e=>Number(e)>1?`/${e}`:"";const nd=(e,t,o)=>{const i=Number(e);return!isNaN(i)&&i<=o&&i>=t};function ad(e,t,o,i=!1,n=nd){if("*"===e)return!0;if(i&&("?"===e||"L"===e))return!0;if(i&&e.endsWith("L"))return n(e.slice(0,-1),t,o);if(e.startsWith("*/"))return n(e.substring(2),1,o);if(e.startsWith("0/"))return n(e.substring(2),0,o);if(i&&e.includes("#")){const[i,a]=e.split("#");return n(i,t,o)&&n(a,1,4)}if(n(e,t,o))return!0;if(e.includes("-")){const[i,a]=e.split("-");return n(i,t,o)&&n(a,t,o)}return!!e.includes(",")&&e.split(",").every((e=>ad(e,t,o,i,n)))}function sd(e,t){return{type:Ql.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?Xl.WEEK:Xl.WORK_WEEK}}function rd(e){return{type:Ql.HOURLY,frequency:e.includes("/")?e.split("/")[1]:"1"}}function ld(e){return{type:Ql.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const dd=(e,t,o,i)=>{let n;return n="?"===t?{type:Jl.DAY_OF_MONTH,day:i.split(/[L#]/)[0],weekNumber:i.includes("#")?i.split("#")[1]:"-1"}:{type:Jl.DATE,dayDate:t},e===Ql.YEARLY&&(n.month=o),n};function cd(e,t,o,i=dd){return{type:Ql.YEARLY,frequency:2===o.split("/").length?o.split("/")[1]:"1",dateOrDay:i(Ql.YEARLY,e,t,o.split("/")[0])}}function ud(e,t,o,i=dd){return{type:Ql.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:i(Ql.MONTHLY,e,t,o.split("/")[0])}}const pd=l.css`
3150
+ ${e=>Gl(T(e))}
3151
+ `;class Vl extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:o}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:o}),this.$emit("change",this.cronConfig)}}(0,w.Cg)([l.observable],Vl.prototype,"timezone",void 0),(0,w.Cg)([l.observable],Vl.prototype,"cron",void 0),(0,w.Cg)([l.observable],Vl.prototype,"cronConfig",void 0);const Yl=void 0,Wl={},ql=Vl.compose(Object.assign({baseName:"scheduler",styles:zl,template:jl,shadowOptions:Yl},Wl)),Kl=(e,t,o)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let i={title:e.title,body:e.body},n={};e.createdAt&&(i=Object.assign({createdAt:e.createdAt},i)),e.logLevel in ne.LogLevel&&(i=Object.assign({logLevel:e.logLevel},i)),e.toast&&(n=Object.assign({toast:e.toast},n),i=Object.assign({config:n},i)),zn(i,t,o)};var Ql,Xl,Jl;!function(e){e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(Ql||(Ql={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(Xl||(Xl={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(Jl||(Jl={}));const Zl=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],ed=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],td=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}];var od;!function(e){e.updateCronConfig="update-cron-config"}(od||(od={}));const id=e=>Number(e)>1?`/${e}`:"";const nd=(e,t,o)=>{const i=Number(e);return!isNaN(i)&&i<=o&&i>=t};function ad(e,t,o,i=!1,n=nd){if("*"===e)return!0;if(i&&("?"===e||"L"===e))return!0;if(i&&e.endsWith("L"))return n(e.slice(0,-1),t,o);if(e.startsWith("*/"))return n(e.substring(2),1,o);if(e.startsWith("0/"))return n(e.substring(2),0,o);if(i&&e.includes("#")){const[i,a]=e.split("#");return n(i,t,o)&&n(a,1,4)}if(n(e,t,o))return!0;if(e.includes("-")){const[i,a]=e.split("-");return n(i,t,o)&&n(a,t,o)}return!!e.includes(",")&&e.split(",").every((e=>ad(e,t,o,i,n)))}function sd(e,t){return{type:Ql.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?Xl.WEEK:Xl.WORK_WEEK}}function rd(e){return{type:Ql.HOURLY,frequency:e.includes("/")?e.split("/")[1]:"1"}}function ld(e){return{type:Ql.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const dd=(e,t,o,i)=>{let n;return n="?"===t?{type:Jl.DAY_OF_MONTH,day:i.split(/[L#]/)[0],weekNumber:i.includes("#")?i.split("#")[1]:"-1"}:{type:Jl.DATE,dayDate:t},e===Ql.YEARLY&&(n.month=o),n};function cd(e,t,o,i=dd){return{type:Ql.YEARLY,frequency:2===o.split("/").length?o.split("/")[1]:"1",dateOrDay:i(Ql.YEARLY,e,t,o.split("/")[0])}}function ud(e,t,o,i=dd){return{type:Ql.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:i(Ql.MONTHLY,e,t,o.split("/")[0])}}const pd=l.css`
3100
3152
  .input-container {
3101
3153
  display: flex;
3102
3154
  flex-direction: column;
@@ -3170,9 +3222,9 @@
3170
3222
  font-size: var(--type-ramp-minus-1-font-size);
3171
3223
  white-space: nowrap;
3172
3224
  }
3173
- `,md=e=>class extends e{$emit(...e){const[t,o,i]=((...e)=>{let[t,o,i]=e,n=o;var a;if(((null==(a=o)?void 0:a.hasOwnProperty("bubbles"))||(null==a?void 0:a.hasOwnProperty("cancelable"))||(null==a?void 0:a.hasOwnProperty("composed")))&&(i=o,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,i]})(...e);return super.$emit(t,o,i)}},gd=l.css`
3225
+ `,md=e=>class extends e{$emit(...e){const[t,o,i]=((...e)=>{let[t,o,i]=e,n=o;var a;if(((null==(a=o)?void 0:a.hasOwnProperty("bubbles"))||(null==a?void 0:a.hasOwnProperty("cancelable"))||(null==a?void 0:a.hasOwnProperty("composed")))&&(i=o,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,i]})(...e);return super.$emit(t,o,i)}},vd=l.css`
3174
3226
  ${pd}
3175
- `,vd=l.html`
3227
+ `,gd=l.html`
3176
3228
  ${e=>{return t=e.prefix,l.html`
3177
3229
  <template>
3178
3230
  <div class="input-container">
@@ -3192,7 +3244,7 @@
3192
3244
  </div>
3193
3245
  </template>
3194
3246
  `;var t}}
3195
- `;let fd=class extends(md(s.FoundationElement)){constructor(){super(...arguments),this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||Xl.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(od.updateCronConfig,this.config)}};(0,w.Cg)([l.observable],fd.prototype,"prefix",void 0),(0,w.Cg)([l.observable],fd.prototype,"config",void 0),(0,w.Cg)([l.observable],fd.prototype,"weekType",void 0),fd=(0,w.Cg)([(0,l.customElement)({name:"daily-recurrence",template:vd,styles:gd})],fd);const bd=l.css`
3247
+ `;let fd=class extends(md(s.FoundationElement)){constructor(){super(...arguments),this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||Xl.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(od.updateCronConfig,this.config)}};(0,w.Cg)([l.observable],fd.prototype,"prefix",void 0),(0,w.Cg)([l.observable],fd.prototype,"config",void 0),(0,w.Cg)([l.observable],fd.prototype,"weekType",void 0),fd=(0,w.Cg)([(0,l.customElement)({name:"daily-recurrence",template:gd,styles:vd})],fd);const bd=l.css`
3196
3248
  ${pd}
3197
3249
  :host {
3198
3250
  display: flex;
@@ -3415,7 +3467,7 @@
3415
3467
  </template>
3416
3468
  `,kd=l.html`
3417
3469
  ${e=>Td(T(e))}
3418
- `;class Dd extends s.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForHourlyRecurrence:rd,buildConfigForDailyRecurrence:sd,buildConfigForWeeklyRecurrence:ld,buildConfigForMonthlyRecurrence:ud,buildConfigForYearlyRecurrence:cd},this.recurrence=Ql.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:Ql.DAILY,weekType:Xl.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.hours="0",this.minutes="0",this.seconds="0",this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=ad)=>{const o=e.trim().split(" ");if(6!=o.length)return!1;const[i,n,a,s,r,l]=o;return t(i,0,59)&&t(n,0,59)&&t(a,0,23)&&t(s,1,31,!0)&&t(r,1,12)&&t(l,0,7,!0)})(this.cron))return void Kl({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},T(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void Kl({title:"Cron Scheduler",body:e,toast:{type:"critical"}},T(this))}}get frequencySuffix(){switch(this.cronConfig.type){case Ql.HOURLY:return"Hour(s)";case Ql.DAILY:return"Day(s)";case Ql.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case Ql.HOURLY:return Array.from({length:24},((e,t)=>t));case Ql.DAILY:return Array.from({length:31},((e,t)=>t+1));case Ql.MONTHLY:case Ql.YEARLY:return Array.from({length:12},((e,t)=>t+1));default:return[]}}connectedCallback(){super.connectedCallback(),this.addEventListener(od.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(od.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Ql.HOURLY:const e=this.getBaseConfigFields(),{hours:t}=e,o=(0,w.Tt)(e,["hours"]);this.cronConfig=Object.assign(Object.assign({type:Ql.HOURLY},o),{frequency:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.DAILY:this.cronConfig=Object.assign(Object.assign({type:Ql.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:Xl.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.WEEKLY:this.cronConfig=Object.assign(Object.assign({type:Ql.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.MONTHLY:this.cronConfig=Object.assign(Object.assign({type:Ql.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:Jl.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.YEARLY:this.cronConfig=Object.assign(Object.assign({type:Ql.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:Jl.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:Kl({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}}handleChange(e){this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Ql.HOURLY:this.cron=function(e){return`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case Ql.DAILY:this.cron=function(e,t=id){const o=e.weekType===Xl.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${o} * ${e.weekType===Xl.WORK_WEEK?"2-6":"?"}`}(e,id);break;case Ql.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case Ql.MONTHLY:this.cron=function(e,t=id){const{dateOrDay:o,minutes:i,hours:n,seconds:a,frequency:s}=e,r=t(s);return o.type===Jl.DATE?`${a} ${i} ${n} ${o.dayDate} *${r} ?`:"-1"===o.weekNumber?`${a} ${i} ${n} ? *${r} ${o.day}L`:`${e.seconds} ${i} ${n} ? *${r} ${o.day}#${o.weekNumber}`}(e,id);break;case Ql.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:o,seconds:i,hours:n}=e;return t.type===Jl.DATE?`${i} ${o} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${i} ${o} ${n} ? ${t.month} ${t.day}L`:`${i} ${o} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:Kl({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const o=e.split(" "),[i,n,a,s,r,l]=o;if("?"!==l&&"?"!==s)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(a))return Object.assign({minutes:n,seconds:i},t.buildConfigForHourlyRecurrence(a));if("2-6"===l||"?"===l&&("*"===s||s.startsWith("*")))return Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForDailyRecurrence(s,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(s)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForMonthlyRecurrence(s,r,l)):Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForYearlyRecurrence(s,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency,this.minutes=this.cronConfig.minutes,this.seconds=this.cronConfig.seconds,this.cronConfig.type!==Ql.HOURLY&&(this.hours=this.cronConfig.hours)}}(0,w.Cg)([l.observable],Dd.prototype,"recurrence",void 0),(0,w.Cg)([l.observable],Dd.prototype,"cron",void 0),(0,w.Cg)([l.observable],Dd.prototype,"cronConfig",void 0),(0,w.Cg)([l.observable],Dd.prototype,"frequency",void 0),(0,w.Cg)([l.observable],Dd.prototype,"hours",void 0),(0,w.Cg)([l.observable],Dd.prototype,"minutes",void 0),(0,w.Cg)([l.observable],Dd.prototype,"seconds",void 0),(0,w.Cg)([l.volatile],Dd.prototype,"frequencySuffix",null),(0,w.Cg)([l.volatile],Dd.prototype,"frequencyList",null),(0,w.Cg)([l.attr],Dd.prototype,"timezone",void 0);const Id=void 0,Rd={},Fd=Dd.compose(Object.assign({baseName:"scheduler-cron-builder",styles:hd,template:kd,shadowOptions:Id},Rd)),Nd=l.css`
3470
+ `;class Dd extends s.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForHourlyRecurrence:rd,buildConfigForDailyRecurrence:sd,buildConfigForWeeklyRecurrence:ld,buildConfigForMonthlyRecurrence:ud,buildConfigForYearlyRecurrence:cd},this.recurrence=Ql.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:Ql.DAILY,weekType:Xl.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.hours="0",this.minutes="0",this.seconds="0",this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=ad)=>{const o=e.trim().split(" ");if(6!=o.length)return!1;const[i,n,a,s,r,l]=o;return t(i,0,59)&&t(n,0,59)&&t(a,0,23)&&t(s,1,31,!0)&&t(r,1,12)&&t(l,0,7,!0)})(this.cron))return void Kl({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},T(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void Kl({title:"Cron Scheduler",body:e,toast:{type:"critical"}},T(this))}}get frequencySuffix(){switch(this.cronConfig.type){case Ql.HOURLY:return"Hour(s)";case Ql.DAILY:return"Day(s)";case Ql.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case Ql.HOURLY:return Array.from({length:24},((e,t)=>t));case Ql.DAILY:return Array.from({length:31},((e,t)=>t+1));case Ql.MONTHLY:case Ql.YEARLY:return Array.from({length:12},((e,t)=>t+1));default:return[]}}connectedCallback(){super.connectedCallback(),this.addEventListener(od.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(od.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Ql.HOURLY:const e=this.getBaseConfigFields(),{hours:t}=e,o=(0,w.Tt)(e,["hours"]);this.cronConfig=Object.assign(Object.assign({type:Ql.HOURLY},o),{frequency:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.DAILY:this.cronConfig=Object.assign(Object.assign({type:Ql.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:Xl.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.WEEKLY:this.cronConfig=Object.assign(Object.assign({type:Ql.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.MONTHLY:this.cronConfig=Object.assign(Object.assign({type:Ql.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:Jl.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ql.YEARLY:this.cronConfig=Object.assign(Object.assign({type:Ql.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:Jl.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:Kl({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}}handleChange(e){this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Ql.HOURLY:this.cron=function(e){return`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case Ql.DAILY:this.cron=function(e,t=id){const o=e.weekType===Xl.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${o} * ${e.weekType===Xl.WORK_WEEK?"2-6":"?"}`}(e,id);break;case Ql.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case Ql.MONTHLY:this.cron=function(e,t=id){const{dateOrDay:o,minutes:i,hours:n,seconds:a,frequency:s}=e,r=t(s);return o.type===Jl.DATE?`${a} ${i} ${n} ${o.dayDate} *${r} ?`:"-1"===o.weekNumber?`${a} ${i} ${n} ? *${r} ${o.day}L`:`${e.seconds} ${i} ${n} ? *${r} ${o.day}#${o.weekNumber}`}(e,id);break;case Ql.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:o,seconds:i,hours:n}=e;return t.type===Jl.DATE?`${i} ${o} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${i} ${o} ${n} ? ${t.month} ${t.day}L`:`${i} ${o} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:Kl({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const o=e.split(" "),[i,n,a,s,r,l]=o;if("?"!==l&&"?"!==s)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(a))return Object.assign({minutes:n,seconds:i},t.buildConfigForHourlyRecurrence(a));if("2-6"===l||"?"===l&&("*"===s||s.startsWith("*")))return Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForDailyRecurrence(s,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(s)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForMonthlyRecurrence(s,r,l)):Object.assign({hours:a,minutes:n,seconds:i},t.buildConfigForYearlyRecurrence(s,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency,this.minutes=this.cronConfig.minutes,this.seconds=this.cronConfig.seconds,this.cronConfig.type!==Ql.HOURLY&&(this.hours=this.cronConfig.hours)}}(0,w.Cg)([l.observable],Dd.prototype,"recurrence",void 0),(0,w.Cg)([l.observable],Dd.prototype,"cron",void 0),(0,w.Cg)([l.observable],Dd.prototype,"cronConfig",void 0),(0,w.Cg)([l.observable],Dd.prototype,"frequency",void 0),(0,w.Cg)([l.observable],Dd.prototype,"hours",void 0),(0,w.Cg)([l.observable],Dd.prototype,"minutes",void 0),(0,w.Cg)([l.observable],Dd.prototype,"seconds",void 0),(0,w.Cg)([l.volatile],Dd.prototype,"frequencySuffix",null),(0,w.Cg)([l.volatile],Dd.prototype,"frequencyList",null),(0,w.Cg)([l.attr],Dd.prototype,"timezone",void 0);const Rd=void 0,Id={},Fd=Dd.compose(Object.assign({baseName:"scheduler-cron-builder",styles:hd,template:kd,shadowOptions:Rd},Id)),Nd=l.css`
3419
3471
  /* Host */
3420
3472
  :host {
3421
3473
  display: flex;
@@ -3553,7 +3605,7 @@
3553
3605
  .close-icon {
3554
3606
  color: var(--accent-fill-rest);
3555
3607
  }
3556
- `,Bd=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',Gd=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',zd=e=>l.html`
3608
+ `,Bd=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',zd=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',Gd=e=>l.html`
3557
3609
 
3558
3610
  <label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,x.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
3559
3611
  >
@@ -3633,8 +3685,8 @@
3633
3685
  Clear Search Terms
3634
3686
  </${e}-tooltip>
3635
3687
  `,jd=l.html`
3636
- ${e=>zd(T(e))}
3637
- `,Vd=10,Yd=3,Wd=1,qd=(e,t)=>(new xt).withExpression((new Tt).withField(e).withValue(t).withSerialiser(Ot).build()).build();class Kd extends s.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=Yd,this.position=Ge.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i,n;const a=t.value,s=this.searchTerm.trim();e.push({field:a,term:s,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(s))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria,resourceType:null===(n=this.options.find((e=>e.field===a)))||void 0===n?void 0:n.resourceType})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),l.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),Vd)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),a=this.addOrReplaceSelectedText(this.combobox.value,n,i);(null==a?void 0:a.length)>=this.minlength&&(this.combobox.value=a,this.searchTerm=a,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,w.sH)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,w.Cg)([l.observable],Kd.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],Kd.prototype,"options",void 0),(0,w.Cg)([l.observable],Kd.prototype,"searchTerm",void 0),(0,w.Cg)([l.attr],Kd.prototype,"appearance",void 0),(0,w.Cg)([l.attr],Kd.prototype,"minlength",void 0),(0,w.Cg)([l.attr],Kd.prototype,"position",void 0),(0,w.Cg)([l.attr],Kd.prototype,"placeholder",void 0),(0,w.Cg)([l.attr],Kd.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Kd.prototype,"loading",void 0),(0,w.Cg)([l.observable],Kd.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],Kd.prototype,"filteredOptions",void 0);const Qd=void 0,Xd={},Jd=Kd.compose(Object.assign({baseName:"search-bar",template:jd,styles:Ud,shadowOptions:Qd},Xd)),Zd=(e,t)=>l.css`
3688
+ ${e=>Gd(T(e))}
3689
+ `,Vd=10,Yd=3,Wd=1,qd=(e,t)=>(new xt).withExpression((new Tt).withField(e).withValue(t).withSerialiser(Ot).build()).build();class Kd extends s.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=Yd,this.position=ze.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i,n;const a=t.value,s=this.searchTerm.trim();e.push({field:a,term:s,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(s))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria,resourceType:null===(n=this.options.find((e=>e.field===a)))||void 0===n?void 0:n.resourceType})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),l.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),Vd)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),a=this.addOrReplaceSelectedText(this.combobox.value,n,i);(null==a?void 0:a.length)>=this.minlength&&(this.combobox.value=a,this.searchTerm=a,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,w.sH)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,w.Cg)([l.observable],Kd.prototype,"defaultSlottedNodes",void 0),(0,w.Cg)([l.observable],Kd.prototype,"options",void 0),(0,w.Cg)([l.observable],Kd.prototype,"searchTerm",void 0),(0,w.Cg)([l.attr],Kd.prototype,"appearance",void 0),(0,w.Cg)([l.attr],Kd.prototype,"minlength",void 0),(0,w.Cg)([l.attr],Kd.prototype,"position",void 0),(0,w.Cg)([l.attr],Kd.prototype,"placeholder",void 0),(0,w.Cg)([l.attr],Kd.prototype,"disabled",void 0),(0,w.Cg)([l.observable],Kd.prototype,"loading",void 0),(0,w.Cg)([l.observable],Kd.prototype,"selectedOptions",void 0),(0,w.Cg)([l.observable],Kd.prototype,"filteredOptions",void 0);const Qd=void 0,Xd={},Jd=Kd.compose(Object.assign({baseName:"search-bar",template:jd,styles:Ud,shadowOptions:Qd},Xd)),Zd=(e,t)=>l.css`
3638
3690
  ${Ft(e,t)}
3639
3691
  .control {
3640
3692
  width: auto;
@@ -3746,7 +3798,7 @@
3746
3798
  <slot></slot>
3747
3799
  </span>
3748
3800
  </template>
3749
- `;class hc extends r.Radio{}const mc=void 0,gc={},vc=hc.compose(Object.assign({baseName:"segmented-item",template:pc,styles:uc,shadowOptions:mc},gc)),fc=(e,t)=>l.css`
3801
+ `;class hc extends r.Radio{}const mc=void 0,vc={},gc=hc.compose(Object.assign({baseName:"segmented-item",template:pc,styles:uc,shadowOptions:mc},vc)),fc=(e,t)=>l.css`
3750
3802
  ${(0,r.selectStyles)(e,t)}
3751
3803
 
3752
3804
  :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible),
@@ -3762,11 +3814,11 @@
3762
3814
  background-color: var(--accent-fill-rest);
3763
3815
  border-radius: calc(var(--control-corner-radius) * 1px);
3764
3816
  }
3765
- `;var Ic=o(17733),Rc=o(54120);const Fc=(e,t)=>l.html`
3817
+ `;var Rc=o(17733),Ic=o(54120);const Fc=(e,t)=>l.html`
3766
3818
  <template
3767
3819
  role="slider"
3768
3820
  class="${e=>e.readOnly?"readonly":""}
3769
- ${e=>e.orientation||Ic.t.horizontal}"
3821
+ ${e=>e.orientation||Rc.t.horizontal}"
3770
3822
  tabindex="${e=>e.disabled?null:0}"
3771
3823
  aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
3772
3824
  aria-valuenow="${e=>e.value}"
@@ -3781,7 +3833,7 @@
3781
3833
  <div ${(0,l.ref)("track")} part="track-container" class="track">
3782
3834
  <div
3783
3835
  class="track-progress"
3784
- style="${e=>{const t=1-(0,Rc.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),o=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${o}%;`:`height: calc(var(--track-width) * 1px); width: ${o}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${o}%;`:`width: calc(var(--track-width) * 1px); height: ${o}%; transition: all 0.2s ease;`}}"
3836
+ style="${e=>{const t=1-(0,Ic.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),o=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${o}%;`:`height: calc(var(--track-width) * 1px); width: ${o}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${o}%;`:`width: calc(var(--track-width) * 1px); height: ${o}%; transition: all 0.2s ease;`}}"
3785
3837
  ></div>
3786
3838
  </div>
3787
3839
  <slot></slot>
@@ -3797,7 +3849,7 @@
3797
3849
  </template>
3798
3850
  `;class Nc extends r.Slider{}const Ac=void 0,Lc={thumb:'\n <div class="thumb-cursor"></div>\n '},Mc=Nc.compose(Object.assign({baseName:"slider",template:Fc,styles:Dc,shadowOptions:Ac},Lc)),_c=(e,t)=>l.css`
3799
3851
  ${(0,r.sliderLabelStyles)(e,t)}
3800
- `,Pc=(e,t)=>(0,s.sliderLabelTemplate)(e,t);class Hc extends r.SliderLabel{}const Uc=void 0,Bc={},Gc=Hc.compose(Object.assign({baseName:"slider-label",template:Pc,styles:_c,shadowOptions:Uc},Bc)),zc="default",jc={DEFAULT:zc,ERROR:"error",SUCCESS:"success"},Vc=1e4,Yc={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},Wc=l.css`
3852
+ `,Pc=(e,t)=>(0,s.sliderLabelTemplate)(e,t);class Hc extends r.SliderLabel{}const Uc=void 0,Bc={},zc=Hc.compose(Object.assign({baseName:"slider-label",template:Pc,styles:_c,shadowOptions:Uc},Bc)),Gc="default",jc={DEFAULT:Gc,ERROR:"error",SUCCESS:"success"},Vc=1e4,Yc={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},Wc=l.css`
3801
3853
  @keyframes append-from-left-animate {
3802
3854
  from {
3803
3855
  transform: translateX(100%);
@@ -3948,7 +4000,7 @@
3948
4000
  </div>
3949
4001
  `,Kc=l.html`
3950
4002
  ${e=>qc(T(e))}
3951
- `,Qc={mode:"open",delegatesFocus:!0};class Xc extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=Vc,this.autoClose=!0,this.type=zc,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(Yc.DISMISS,this.dismissEventListener)}errorChanged(e,t){var o,i,n;this.type=null!==(n=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==n?n:zc}notificationChanged(e,t){var o,i,n,a,s,r,l,d,c;this.type=null!==(n=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==n?n:zc,this.autoClose=null===(r=null===(s=null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:Vc}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(Yc.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Yc.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,w.Cg)([l.observable],Xc.prototype,"error",void 0),(0,w.Cg)([l.observable],Xc.prototype,"notification",void 0),(0,w.Cg)([l.observable],Xc.prototype,"deleteAnimation",void 0),(0,w.Cg)([(0,l.attr)({attribute:"identifier"})],Xc.prototype,"identifier",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout"})],Xc.prototype,"closeTimeout",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Xc.prototype,"autoClose",void 0),(0,w.Cg)([(0,l.attr)({attribute:"type"})],Xc.prototype,"type",void 0);const Jc=Xc.compose({baseName:"snackbar",styles:Wc,template:Kc,shadowOptions:Qc}),Zc=(e,t)=>l.css`
4003
+ `,Qc={mode:"open",delegatesFocus:!0};class Xc extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=Vc,this.autoClose=!0,this.type=Gc,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(Yc.DISMISS,this.dismissEventListener)}errorChanged(e,t){var o,i,n;this.type=null!==(n=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==n?n:Gc}notificationChanged(e,t){var o,i,n,a,s,r,l,d,c;this.type=null!==(n=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==n?n:Gc,this.autoClose=null===(r=null===(s=null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:Vc}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(Yc.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Yc.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,w.Cg)([l.observable],Xc.prototype,"error",void 0),(0,w.Cg)([l.observable],Xc.prototype,"notification",void 0),(0,w.Cg)([l.observable],Xc.prototype,"deleteAnimation",void 0),(0,w.Cg)([(0,l.attr)({attribute:"identifier"})],Xc.prototype,"identifier",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout"})],Xc.prototype,"closeTimeout",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Xc.prototype,"autoClose",void 0),(0,w.Cg)([(0,l.attr)({attribute:"type"})],Xc.prototype,"type",void 0);const Jc=Xc.compose({baseName:"snackbar",styles:Wc,template:Kc,shadowOptions:Qc}),Zc=(e,t)=>l.css`
3952
4004
  ${Ts()}
3953
4005
 
3954
4006
  .fa-stack {
@@ -4200,11 +4252,11 @@
4200
4252
  `)}
4201
4253
  `,cu=l.html`
4202
4254
  ${e=>du(T(e))}
4203
- `;class uu extends s.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=s.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}}(0,w.Cg)([l.attr],uu.prototype,"slot",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"selected",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"completed",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"error",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"isLast",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"hideStepNumber",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"showCursorPointer",void 0),(0,w.Cg)([(0,l.attr)({attribute:"tab-position"})],uu.prototype,"tabPosition",void 0),(0,w.Cg)([l.attr],uu.prototype,"orientation",void 0);const pu=void 0,hu={},mu=uu.compose(Object.assign({baseName:"stepper-tab",template:cu,styles:lu,shadowOptions:pu},hu)),gu=()=>l.html`
4255
+ `;class uu extends s.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=s.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}}(0,w.Cg)([l.attr],uu.prototype,"slot",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"selected",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"completed",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"error",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"isLast",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"hideStepNumber",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],uu.prototype,"showCursorPointer",void 0),(0,w.Cg)([(0,l.attr)({attribute:"tab-position"})],uu.prototype,"tabPosition",void 0),(0,w.Cg)([l.attr],uu.prototype,"orientation",void 0);const pu=void 0,hu={},mu=uu.compose(Object.assign({baseName:"stepper-tab",template:cu,styles:lu,shadowOptions:pu},hu)),vu=()=>l.html`
4204
4256
  <template slot="tab-panel" role="stepper-tab-panel">
4205
4257
  <slot></slot>
4206
4258
  </template>
4207
- `;class vu extends s.FoundationElement{}const fu=void 0,bu={},yu=vu.compose(Object.assign({baseName:"stepper-tab-panel",template:gu,shadowOptions:fu},bu)),Cu=(e,t)=>l.css`
4259
+ `;class gu extends s.FoundationElement{}const fu=void 0,bu={},yu=gu.compose(Object.assign({baseName:"stepper-tab-panel",template:vu,shadowOptions:fu},bu)),Cu=(e,t)=>l.css`
4208
4260
  ${(0,r.switchStyles)(e,t)}
4209
4261
  .checked-indicator {
4210
4262
  transform: scale(1.3);
@@ -4223,7 +4275,7 @@
4223
4275
  :host {
4224
4276
  user-select: none;
4225
4277
  }
4226
- `,Tu=(e,t)=>(0,s.tabTemplate)(e,t);class ku extends r.Tab{}const Du=void 0,Iu={},Ru=ku.compose(Object.assign({baseName:"tab",template:Tu,styles:Ou,shadowOptions:Du},Iu)),Fu=(e,t)=>l.css`
4278
+ `,Tu=(e,t)=>(0,s.tabTemplate)(e,t);class ku extends r.Tab{}const Du=void 0,Ru={},Iu=ku.compose(Object.assign({baseName:"tab",template:Tu,styles:Ou,shadowOptions:Du},Ru)),Fu=(e,t)=>l.css`
4227
4279
  ${(0,r.tabPanelStyles)(e,t)}
4228
4280
 
4229
4281
  :host {
@@ -4237,7 +4289,7 @@
4237
4289
  height: 100%;
4238
4290
  width: 100%;
4239
4291
  }
4240
- `,Hu=(e,t)=>(0,s.tabsTemplate)(e,t);class Uu extends r.Tabs{get currentTabIndex(){return this.activeTabIndex}}const Bu=void 0,Gu={},zu=Uu.compose(Object.assign({baseName:"tabs",template:Hu,styles:Pu,shadowOptions:Bu},Gu)),ju=(e,t)=>l.css`
4292
+ `,Hu=(e,t)=>(0,s.tabsTemplate)(e,t);class Uu extends r.Tabs{get currentTabIndex(){return this.activeTabIndex}}const Bu=void 0,zu={},Gu=Uu.compose(Object.assign({baseName:"tabs",template:Hu,styles:Pu,shadowOptions:Bu},zu)),ju=(e,t)=>l.css`
4241
4293
  ${(0,r.textAreaStyles)(e,t)}
4242
4294
  :host .control {
4243
4295
  padding: calc(var(--design-unit) * 3px);
@@ -4420,7 +4472,7 @@
4420
4472
  <div class="content-wrapper">
4421
4473
  <div part="top" class="top">
4422
4474
  <slot name="top"></slot>
4423
- <div class="close-icon" @click=${e=>e.close()}>${ga()}</div>
4475
+ <div class="close-icon" @click=${e=>e.close()}>${va()}</div>
4424
4476
  </div>
4425
4477
  <div part="content" class="content">
4426
4478
  <slot name="content"></slot>
@@ -4435,9 +4487,9 @@
4435
4487
  </div>
4436
4488
  `,sp={mode:"open",delegatesFocus:!0},rp={};class lp extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}}),this.closeTimeout)}close(){this.remove()}}(0,w.Cg)([l.observable],lp.prototype,"deleteAnimation",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout"})],lp.prototype,"closeTimeout",void 0),(0,w.Cg)([(0,l.attr)({attribute:"auto-close"})],lp.prototype,"autoClose",void 0);const dp=lp.compose(Object.assign({baseName:"toast",styles:np,template:ap,shadowOptions:sp},rp)),cp=(e,t)=>l.css`
4437
4489
  ${(0,r.toolbarStyles)(e,t)}
4438
- `,up=(e,t)=>(0,s.toolbarTemplate)(e,t);class pp extends r.Toolbar{}const hp=void 0,mp={},gp=pp.compose(Object.assign({baseName:"toolbar",template:up,styles:cp,shadowOptions:hp},mp)),vp=(e,t)=>l.css`
4490
+ `,up=(e,t)=>(0,s.toolbarTemplate)(e,t);class pp extends r.Toolbar{}const hp=void 0,mp={},vp=pp.compose(Object.assign({baseName:"toolbar",template:up,styles:cp,shadowOptions:hp},mp)),gp=(e,t)=>l.css`
4439
4491
  ${(0,r.tooltipStyles)(e,t)}
4440
- `,fp=(e,t)=>(0,s.tooltipTemplate)(e,t);class bp extends r.Tooltip{}const yp=void 0,Cp={},wp=bp.compose(Object.assign({baseName:"tooltip",template:fp,styles:vp,shadowOptions:yp},Cp)),xp=(e,t)=>l.css`
4492
+ `,fp=(e,t)=>(0,s.tooltipTemplate)(e,t);class bp extends r.Tooltip{}const yp=void 0,Cp={},wp=bp.compose(Object.assign({baseName:"tooltip",template:fp,styles:gp,shadowOptions:yp},Cp)),xp=(e,t)=>l.css`
4441
4493
  ${(0,r.treeItemStyles)(e,t)}
4442
4494
  :host {
4443
4495
  --focus-stroke-width: 0;
@@ -4456,7 +4508,7 @@
4456
4508
  }
4457
4509
  `,$p=(e,t)=>(0,s.treeItemTemplate)(e,t);class Sp extends r.TreeItem{}const Ep=void 0,Op={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>\n </svg>'},Tp=Sp.compose(Object.assign({baseName:"tree-item",template:$p,styles:xp,shadowOptions:Ep},Op)),kp=(e,t)=>l.css`
4458
4510
  ${(0,r.treeViewStyles)(e,t)}
4459
- `,Dp=(e,t)=>(0,s.treeViewTemplate)(e,t);class Ip extends s.TreeView{}const Rp=void 0,Fp={},Np=Ip.compose(Object.assign({baseName:"tree-view",template:Dp,styles:kp,shadowOptions:Rp},Fp)),Ap=(e,t)=>l.css`
4511
+ `,Dp=(e,t)=>(0,s.treeViewTemplate)(e,t);class Rp extends s.TreeView{}const Ip=void 0,Fp={},Np=Rp.compose(Object.assign({baseName:"tree-view",template:Dp,styles:kp,shadowOptions:Ip},Fp)),Ap=(e,t)=>l.css`
4460
4512
  .container {
4461
4513
  position: relative;
4462
4514
  width: 100%;
@@ -4493,7 +4545,7 @@
4493
4545
  </div>
4494
4546
  `,Mp=l.html`
4495
4547
  ${e=>Lp(T(e))}
4496
- `,_p=void 0,Pp={};class Hp extends r.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,w.Cg)([l.observable],Hp.prototype,"value",void 0),(0,w.Cg)([l.observable],Hp.prototype,"focused",void 0);const Up=Hp.compose(Object.assign({baseName:"url-input",template:Mp,styles:Ap,shadowOptions:_p},Pp)),Bp={foundationAccordion:m,foundationAccordionItem:C,foundationActionsMenu:F,foundationAnchor:P,foundationAnchoredRegion:j,foundationAvatar:X,foundationBadge:ie,foundationBanner:ue,foundationBreadcrumb:fe,foundationBreadcrumbItem:$e,foundationButton:De,foundationCalendar:Le,foundationCard:Be,foundationCategorizedMultiselect:Xe,foundationCheckbox:it,foundationCombobox:Ht,foundationConnectionIndicator:jt,foundationDataGrid:Qt,foundationDataGridCell:to,foundationDataGridRow:so,foundationDatePicker:Ro,foundationDesignSystemProvider:Ci,foundationDialog:Di,foundationDisclosure:Li,foundationDivider:Bi,foundationDropdownMenu:qi,foundationErrorBanner:mn,foundationErrorBoundary:kn,foundationErrorDialog:An,foundationFileReader:Xn,foundationFileUpload:ha,foundationFilter:Sa,foundationFilterBar:Na,foundationFlexLayout:Ba,foundationFlipper:Wa,foundationFlyout:ts,foundationGridLayout:cs,foundationGridLayoutItem:gs,foundationHorizontalScroll:ws,foundationIcon:_s,foundationListbox:zs,foundationListboxOption:Ks,foundationMenu:tr,foundationMenuItem:rr,foundationModal:hr,foundationMultiselect:xr,foundationNumberField:Lr,foundationPopper:$l,foundationProgress:rl,foundationProgressRing:Dl,foundationRadio:Ll,foundationRadioGroup:Bl,foundationScheduler:ql,foundationSchedulerCronBuilder:Fd,foundationSchedulerTimezone:Hd,foundationSearchBar:Jd,foundationSearchBarCombobox:nc,foundationSegmentedControl:cc,foundationSegmentedItem:vc,foundationSelect:xc,foundationSkeleton:kc,foundationSlider:Mc,foundationSliderLabel:Gc,foundationSnackbar:Jc,foundationStackingIcons:ou,foundationStatusPill:ru,foundationEnvironmentIndicator:dn,foundationStepperTab:mu,foundationStepperTabPanel:yu,foundationSwitch:Eu,foundationSystemHealthOverlay:fl,foundationTab:Ru,foundationTabPanel:_u,foundationTabs:zu,foundationTextArea:Ku,foundationTextField:ip,foundationToast:dp,foundationToolbar:gp,foundationTooltip:wp,foundationTreeItem:Tp,foundationTreeView:Np,foundationUrlInput:Up,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};class Gp extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let zp=class extends ft{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){ae.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};zp=(0,w.Cg)([(0,l.customElement)({name:"data-grid-datasource"})],zp);const jp=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],Vp=[...jp,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],Yp={type:"NULL",maxRules:1,invisible:!0},Wp=["int","short","long","bigdecimal","double"],qp=["date","date-time"],Kp=["enum",...Wp,"string",...qp,"boolean"],Qp=[{type:"equal",nbInputs:1,applyTo:Kp,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:Kp,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Wp,...qp],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Wp,...qp],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...Kp].filter((e=>"boolean"!==e))},{type:"not_any_of",nbInputs:"many",applyTo:[...Kp].filter((e=>"boolean"!==e))},{type:"within_inclusive",nbInputs:2,applyTo:[...Wp,...qp],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Wp,...qp],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...Kp],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...Kp],optgroup:"Null"}];var Xp=o(93678);const Jp=o.n(Xp)()();function Zp(e,t,o){const i=function e(i){const n=Jp(i);if(n.groupId===t)return n.children=o(n.children),n;const a=[];let s=!1;for(const t of n.children)if("children"in t){const o=e(t);o?(a.push(o),s=!0):a.push(t)}else a.push(t);return n.children=a,s?n:null}(e);if(!i)throw new Error(`Unable to find group with groupId ${t}`);return i}function eh(e,t,o){return function e(i){for(const n of i.children){if(o(n,t))return i;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function th(e,t){const o=eh(e,t,((e,t)=>"children"in e&&e.groupId===t));if(!o)throw new Error(`No parent group found for group with ID ${t}`);return o}function oh(e,t){const o=eh(e,t,((e,t)=>"ruleId"in e&&e.ruleId===t));if(!o)throw new Error(`No parent group found for rule with ID ${t}`);return o}function ih(e,t,o){return Zp(e,t,(e=>[...e,o]))}const nh="group-root";function ah(e,t){const o=(e,i)=>{return"children"in e?function(e,i){return Object.assign(Object.assign({},e),{level:i,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map((e=>o(e,i+1)))})}(e,i):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:nh,children:e.children.map((e=>o(e,2)))})}function sh(e){const t=e.children.map((e=>"children"in e?sh(e):function(e){const{operator:t,field:o,value:i}=e;return{operator:t,field:o,value:i}}(e)));return{combinator:e.combinator,children:t}}const rh=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,lh=e=>`${rh(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,dh=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.input)&&void 0!==i?i:e.field.input},ch=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.type)&&void 0!==i?i:e.field.type},uh=e=>{const t={},o=[],i=e=>[...e].sort(((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0));e.forEach((e=>{if(e.optgroup){const o=e.optgroup;t[o]||(t[o]=[]),t[o].push(e)}else o.push(e)}));const n=[];return Object.keys(t).sort().forEach((e=>{n.push({optgroup:e,xs:i(t[e])})})),[...n,...i(o)]};function ph(e,t,o){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const i=t.customStyles[o];if(i){const t=document.createElement("style");t.textContent=i,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var hh;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(hh||(hh={}));const mh=l.css`
4548
+ `,_p=void 0,Pp={};class Hp extends r.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,w.Cg)([l.observable],Hp.prototype,"value",void 0),(0,w.Cg)([l.observable],Hp.prototype,"focused",void 0);const Up=Hp.compose(Object.assign({baseName:"url-input",template:Mp,styles:Ap,shadowOptions:_p},Pp)),Bp={foundationAccordion:m,foundationAccordionItem:C,foundationActionsMenu:F,foundationAnchor:P,foundationAnchoredRegion:j,foundationAvatar:X,foundationBadge:ie,foundationBanner:ue,foundationBreadcrumb:fe,foundationBreadcrumbItem:$e,foundationButton:De,foundationCalendar:Le,foundationCard:Be,foundationCategorizedMultiselect:Xe,foundationCheckbox:it,foundationCombobox:Ht,foundationConnectionIndicator:jt,foundationDataGrid:Qt,foundationDataGridCell:to,foundationDataGridRow:so,foundationDatePicker:Io,foundationDesignSystemProvider:Ci,foundationDialog:Di,foundationDisclosure:Li,foundationDivider:Bi,foundationDropdownMenu:qi,foundationErrorBanner:mn,foundationErrorBoundary:kn,foundationErrorDialog:An,foundationFileReader:Xn,foundationFileUpload:ha,foundationFilter:Sa,foundationFilterBar:Na,foundationFlexLayout:Ba,foundationFlipper:Wa,foundationFlyout:ts,foundationGridLayout:cs,foundationGridLayoutItem:vs,foundationHorizontalScroll:ws,foundationIcon:_s,foundationListbox:Gs,foundationListboxOption:Ks,foundationMenu:tr,foundationMenuItem:rr,foundationModal:hr,foundationMultiselect:xr,foundationNumberField:Lr,foundationPopper:$l,foundationProgress:rl,foundationProgressRing:Dl,foundationRadio:Ll,foundationRadioGroup:Bl,foundationScheduler:ql,foundationSchedulerCronBuilder:Fd,foundationSchedulerTimezone:Hd,foundationSearchBar:Jd,foundationSearchBarCombobox:nc,foundationSegmentedControl:cc,foundationSegmentedItem:gc,foundationSelect:xc,foundationSkeleton:kc,foundationSlider:Mc,foundationSliderLabel:zc,foundationSnackbar:Jc,foundationStackingIcons:ou,foundationStatusPill:ru,foundationEnvironmentIndicator:dn,foundationStepperTab:mu,foundationStepperTabPanel:yu,foundationSwitch:Eu,foundationSystemHealthOverlay:fl,foundationTab:Iu,foundationTabPanel:_u,foundationTabs:Gu,foundationTextArea:Ku,foundationTextField:ip,foundationToast:dp,foundationToolbar:vp,foundationTooltip:wp,foundationTreeItem:Tp,foundationTreeView:Np,foundationUrlInput:Up,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};class zp extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let Gp=class extends ft{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){ae.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};Gp=(0,w.Cg)([(0,l.customElement)({name:"data-grid-datasource"})],Gp);const jp=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],Vp=[...jp,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],Yp={type:"NULL",maxRules:1,invisible:!0},Wp=["int","short","long","bigdecimal","double"],qp=["date","date-time"],Kp=["enum",...Wp,"string",...qp,"boolean"],Qp=[{type:"equal",nbInputs:1,applyTo:Kp,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:Kp,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Wp,...qp],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Wp,...qp],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...Kp].filter((e=>"boolean"!==e))},{type:"not_any_of",nbInputs:"many",applyTo:[...Kp].filter((e=>"boolean"!==e))},{type:"within_inclusive",nbInputs:2,applyTo:[...Wp,...qp],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Wp,...qp],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...Kp],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...Kp],optgroup:"Null"}];var Xp=o(93678);const Jp=o.n(Xp)()();function Zp(e,t,o){const i=function e(i){const n=Jp(i);if(n.groupId===t)return n.children=o(n.children),n;const a=[];let s=!1;for(const t of n.children)if("children"in t){const o=e(t);o?(a.push(o),s=!0):a.push(t)}else a.push(t);return n.children=a,s?n:null}(e);if(!i)throw new Error(`Unable to find group with groupId ${t}`);return i}function eh(e,t,o){return function e(i){for(const n of i.children){if(o(n,t))return i;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function th(e,t){const o=eh(e,t,((e,t)=>"children"in e&&e.groupId===t));if(!o)throw new Error(`No parent group found for group with ID ${t}`);return o}function oh(e,t){const o=eh(e,t,((e,t)=>"ruleId"in e&&e.ruleId===t));if(!o)throw new Error(`No parent group found for rule with ID ${t}`);return o}function ih(e,t,o){return Zp(e,t,(e=>[...e,o]))}const nh="group-root";function ah(e,t){const o=(e,i)=>{return"children"in e?function(e,i){return Object.assign(Object.assign({},e),{level:i,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map((e=>o(e,i+1)))})}(e,i):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:nh,children:e.children.map((e=>o(e,2)))})}function sh(e){const t=e.children.map((e=>"children"in e?sh(e):function(e){const{operator:t,field:o,value:i}=e;return{operator:t,field:o,value:i}}(e)));return{combinator:e.combinator,children:t}}const rh=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,lh=e=>`${rh(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,dh=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.input)&&void 0!==i?i:e.field.input},ch=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.type)&&void 0!==i?i:e.field.type},uh=e=>{const t={},o=[],i=e=>[...e].sort(((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0));e.forEach((e=>{if(e.optgroup){const o=e.optgroup;t[o]||(t[o]=[]),t[o].push(e)}else o.push(e)}));const n=[];return Object.keys(t).sort().forEach((e=>{n.push({optgroup:e,xs:i(t[e])})})),[...n,...i(o)]};function ph(e,t,o){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const i=t.customStyles[o];if(i){const t=document.createElement("style");t.textContent=i,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var hh;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(hh||(hh={}));const mh=l.css`
4497
4549
  :host {
4498
4550
  --item-vertical-spacing: 4px;
4499
4551
  --item-border-radius: 5px;
@@ -4667,7 +4719,7 @@
4667
4719
  .rules-list > *:last-child::after {
4668
4720
  display: none;
4669
4721
  }
4670
- `,gh=l.css`
4722
+ `,vh=l.css`
4671
4723
  .rules-group-container {
4672
4724
  border: 1px solid #ccc;
4673
4725
  margin-bottom: 10px;
@@ -4710,10 +4762,10 @@
4710
4762
  list-style: none;
4711
4763
  padding-left: 0;
4712
4764
  }
4713
- `;function vh(e,t,o){const i=e=>"function"==typeof e?e:()=>e,n=i(t),a=i(o);return(t,o)=>e(t,o)?n(t,o):a(t,o)}const fh=l.html`
4765
+ `;function gh(e,t,o){const i=e=>"function"==typeof e?e:()=>e,n=i(t),a=i(o);return(t,o)=>e(t,o)?n(t,o):a(t,o)}const fh=l.html`
4714
4766
  ${e=>{var t,o;const i=null===(o=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===o?void 0:o.radio,{radioTag:n,radioGroupTag:a}=i?{radioTag:i.input,radioGroupTag:i.group}:{radioTag:"input",radioGroupTag:"div"};return l.html`
4715
4767
  <div class="btn-group group-conditions">
4716
- ${vh((e=>"input"!==n),l.html`
4768
+ ${gh((e=>"input"!==n),l.html`
4717
4769
  <${a}
4718
4770
  class="radio-group-container"
4719
4771
  name="combinator"
@@ -4794,7 +4846,7 @@
4794
4846
  <div class="rules-group-body">
4795
4847
  <div class="rules-list">
4796
4848
  ${(0,l.repeat)((e=>{var t,o;return null!==(o=null===(t=e.model)||void 0===t?void 0:t.children)&&void 0!==o?o:[]}),l.html`
4797
- ${vh((e=>"children"in e),l.html`
4849
+ ${gh((e=>"children"in e),l.html`
4798
4850
  <expression-group
4799
4851
  :config=${(e,t)=>t.parent.config}
4800
4852
  :styles=${(e,t)=>t.parent.styles}
@@ -4818,7 +4870,7 @@
4818
4870
  </div>
4819
4871
  </div>
4820
4872
  </div>
4821
- `;let Ch=class extends l.FASTElement{connectedCallback(){super.connectedCallback(),ph(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(hh.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(hh.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(hh.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const o=e.target.getAttribute("value");if(!o)throw new Error("No value found in the custom radio group event target");this.updateCombinator(o)}updateCombinator(e){var t,o;const i=this.config.combinators.find((({type:t})=>t===e));if(!i)throw new Error(`Cannot find selected combinator ${e}`);(null===(o=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===o?void 0:o.type)!==i.type&&this.dispatchGroupDataUpdated(i)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(hh.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,w.Cg)([l.observable],Ch.prototype,"config",void 0),(0,w.Cg)([l.observable],Ch.prototype,"styles",void 0),(0,w.Cg)([l.observable],Ch.prototype,"model",void 0),(0,w.Cg)([l.observable],Ch.prototype,"index",void 0),(0,w.Cg)([l.volatile],Ch.prototype,"allowAddRule",null),(0,w.Cg)([l.volatile],Ch.prototype,"allowAddGroup",null),Ch=(0,w.Cg)([(0,l.customElement)({name:"expression-group",template:yh,styles:gh,shadowOptions:{delegatesFocus:!0}})],Ch);const wh=l.html`
4873
+ `;let Ch=class extends l.FASTElement{connectedCallback(){super.connectedCallback(),ph(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(hh.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(hh.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(hh.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const o=e.target.getAttribute("value");if(!o)throw new Error("No value found in the custom radio group event target");this.updateCombinator(o)}updateCombinator(e){var t,o;const i=this.config.combinators.find((({type:t})=>t===e));if(!i)throw new Error(`Cannot find selected combinator ${e}`);(null===(o=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===o?void 0:o.type)!==i.type&&this.dispatchGroupDataUpdated(i)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(hh.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,w.Cg)([l.observable],Ch.prototype,"config",void 0),(0,w.Cg)([l.observable],Ch.prototype,"styles",void 0),(0,w.Cg)([l.observable],Ch.prototype,"model",void 0),(0,w.Cg)([l.observable],Ch.prototype,"index",void 0),(0,w.Cg)([l.volatile],Ch.prototype,"allowAddRule",null),(0,w.Cg)([l.volatile],Ch.prototype,"allowAddGroup",null),Ch=(0,w.Cg)([(0,l.customElement)({name:"expression-group",template:yh,styles:vh,shadowOptions:{delegatesFocus:!0}})],Ch);const wh=l.html`
4822
4874
  <div class="query-builder">
4823
4875
  ${(0,l.when)((e=>null!==e.model),l.html`
4824
4876
  <expression-group
@@ -4901,7 +4953,7 @@
4901
4953
  display: inline-grid;
4902
4954
  align-items: center;
4903
4955
  }
4904
- `,Ih=l.html`
4956
+ `,Rh=l.html`
4905
4957
  ${e=>{var t,o;const i=dh(e),n="datetime-local"===i?"datetimeLocal":i,a=null===(o=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===o?void 0:o[n],s=a||"input";return l.html`
4906
4958
  <${s}
4907
4959
  ${a?"":`type="${i}"`}
@@ -4910,7 +4962,7 @@
4910
4962
  @blur=${(e,t)=>e.handleInputChange(t.event)}
4911
4963
  />
4912
4964
  `}}
4913
- `,Rh=l.html`
4965
+ `,Ih=l.html`
4914
4966
  ${e=>{var t,o,i,n;const a=(null===(o=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===o?void 0:o.select)||"select",s=(null===(n=null===(i=e.styles)||void 0===i?void 0:i.customElements)||void 0===n?void 0:n.option)||"option";return l.html`
4915
4967
  <${a}
4916
4968
  class="form-select"
@@ -4941,8 +4993,8 @@
4941
4993
  `,Ah=l.html`
4942
4994
  ${e=>{const t=dh(e);return l.html`
4943
4995
  <div class="value-and-validation">
4944
- ${(0,l.when)((()=>["text","number","date","datetime-local"].includes(t)),Ih)}
4945
- ${(0,l.when)((()=>"select"===t),Rh)}
4996
+ ${(0,l.when)((()=>["text","number","date","datetime-local"].includes(t)),Rh)}
4997
+ ${(0,l.when)((()=>"select"===t),Ih)}
4946
4998
  ${(0,l.when)((()=>"checkbox"===t),Fh)}
4947
4999
  ${(0,l.when)((()=>!["text","number","select","checkbox","date","datetime-local"].includes(t)),Nh)}
4948
5000
  ${(0,l.when)((e=>e.validationMsg),l.html`
@@ -4962,10 +5014,10 @@
4962
5014
  `)}
4963
5015
  `}}
4964
5016
  `,Lh=l.html`
4965
- ${vh((e=>e.field),Ah,l.html`
5017
+ ${gh((e=>e.field),Ah,l.html`
4966
5018
  <div>Select a field to set value</div>
4967
5019
  `)}
4968
- `;let Mh=class extends l.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),ph(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,kh(ch(this),e)].filter((e=>!!e)).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let o;o="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&Oh(ch(this))?parseInt(t.value):this.field&&Th(ch(this))?parseFloat(t.value):t.value,this.value=o;const i={value:o,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(hh.ValueUpdated,{detail:i,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(hh.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,w.Cg)([(0,l.attr)({attribute:"value-index"})],Mh.prototype,"valueIndex",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Mh.prototype,"variadic",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"validation-error"})],Mh.prototype,"validationError",void 0),(0,w.Cg)([(0,l.attr)({attribute:"validation-msg"})],Mh.prototype,"validationMsg",void 0),(0,w.Cg)([l.observable],Mh.prototype,"field",void 0),(0,w.Cg)([l.observable],Mh.prototype,"operator",void 0),(0,w.Cg)([l.observable],Mh.prototype,"value",void 0),(0,w.Cg)([l.observable],Mh.prototype,"config",void 0),(0,w.Cg)([l.observable],Mh.prototype,"styles",void 0),Mh=(0,w.Cg)([(0,l.customElement)({name:"expression-rule-value",template:Lh,styles:Dh,shadowOptions:{delegatesFocus:!0}})],Mh);const _h=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:Ph(e,t),Ph=(e,t)=>{var o,i;switch(ch(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return rh(new Date);case"date-time":return lh(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.type)?null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},Hh=(e,t)=>{var o,i,n,a;const s=(r=e,l=t,e=>{var t,o,i;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(i=null===(o=l.operator)||void 0===o?void 0:o.valueType)||void 0===i?void 0:i.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(o=s(0))&&void 0!==o?o:_h(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(i=s(0))&&void 0!==i?i:_h(e,t),null!==(n=s(1))&&void 0!==n?n:_h(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(a=s(0))&&void 0!==a?a:_h(e,t)]}}},Uh=(e,t,o)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map(((e,i)=>i===o?t:e))}}},Bh=e=>!e&&0!==e,Gh=l.css`
5020
+ `;let Mh=class extends l.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),ph(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,kh(ch(this),e)].filter((e=>!!e)).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let o;o="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&Oh(ch(this))?parseInt(t.value):this.field&&Th(ch(this))?parseFloat(t.value):t.value,this.value=o;const i={value:o,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(hh.ValueUpdated,{detail:i,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(hh.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,w.Cg)([(0,l.attr)({attribute:"value-index"})],Mh.prototype,"valueIndex",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],Mh.prototype,"variadic",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean",attribute:"validation-error"})],Mh.prototype,"validationError",void 0),(0,w.Cg)([(0,l.attr)({attribute:"validation-msg"})],Mh.prototype,"validationMsg",void 0),(0,w.Cg)([l.observable],Mh.prototype,"field",void 0),(0,w.Cg)([l.observable],Mh.prototype,"operator",void 0),(0,w.Cg)([l.observable],Mh.prototype,"value",void 0),(0,w.Cg)([l.observable],Mh.prototype,"config",void 0),(0,w.Cg)([l.observable],Mh.prototype,"styles",void 0),Mh=(0,w.Cg)([(0,l.customElement)({name:"expression-rule-value",template:Lh,styles:Dh,shadowOptions:{delegatesFocus:!0}})],Mh);const _h=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:Ph(e,t),Ph=(e,t)=>{var o,i;switch(ch(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return rh(new Date);case"date-time":return lh(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.type)?null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},Hh=(e,t)=>{var o,i,n,a;const s=(r=e,l=t,e=>{var t,o,i;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(i=null===(o=l.operator)||void 0===o?void 0:o.valueType)||void 0===i?void 0:i.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(o=s(0))&&void 0!==o?o:_h(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(i=s(0))&&void 0!==i?i:_h(e,t),null!==(n=s(1))&&void 0!==n?n:_h(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(a=s(0))&&void 0!==a?a:_h(e,t)]}}},Uh=(e,t,o)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map(((e,i)=>i===o?t:e))}}},Bh=e=>!e&&0!==e,zh=l.css`
4969
5021
  .rule-container {
4970
5022
  border: 1px solid #eee;
4971
5023
  margin-bottom: 5px;
@@ -5024,7 +5076,7 @@
5024
5076
  expression-rule-value {
5025
5077
  display: flex;
5026
5078
  }
5027
- `,zh=l.html`
5079
+ `,Gh=l.html`
5028
5080
  ${e=>{var t,o;const i=(null===(o=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===o?void 0:o.button)||"button";return l.html`
5029
5081
  <div class="rule-container ${e=>(0,x.x)(["error",e.error])}">
5030
5082
  <div class="rule-content">
@@ -5084,11 +5136,11 @@ class="margin"
5084
5136
  </div>
5085
5137
  </div>
5086
5138
  `}}
5087
- `;let jh=class extends l.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),ph(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==ch(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Bh)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,o;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(o=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==o?o:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,_h(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const o={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter(((e,o)=>o!==t))}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(hh.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:o}=e.detail,i=null!==(t=this.config.fields.find((e=>e.fieldId===o)))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:i,value:null,operator:null}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:o}=e.detail,i={ruleId:this.model.ruleId,newData:Uh(this.model,t,o)};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:o}=e.detail;if(!o)return;const i=null!==(t=this.config.operators.find((e=>e.type===o)))&&void 0!==t?t:null;if(!i)throw new Error(`Unable to find operator of type ${o}`);this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:Hh(i,this.model)},bubbles:!0,composed:!0}))}};(0,w.Cg)([l.observable],jh.prototype,"config",void 0),(0,w.Cg)([l.observable],jh.prototype,"styles",void 0),(0,w.Cg)([l.observable],jh.prototype,"model",void 0),(0,w.Cg)([l.observable],jh.prototype,"index",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],jh.prototype,"error",void 0),(0,w.Cg)([l.volatile],jh.prototype,"operandIterator",null),jh=(0,w.Cg)([(0,l.customElement)({name:"expression-rule",template:zh,styles:Gh,shadowOptions:{delegatesFocus:!0}})],jh);let Vh=class extends l.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=ah(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const o=sh(t);this.dispatchChangeEvent(o)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(hh.AddGroup,this.handleAddGroup),this.addEventListener(hh.DelGroup,this.handleDeleteGroup),this.addEventListener(hh.AddRule,this.handleAddRule),this.addEventListener(hh.DelRule,this.handleDeleteRule),this.addEventListener(hh.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(hh.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(hh.AddGroup,this.handleAddGroup),this.removeEventListener(hh.DelGroup,this.handleDeleteGroup),this.removeEventListener(hh.AddRule,this.handleAddRule),this.removeEventListener(hh.DelRule,this.handleDeleteRule),this.removeEventListener(hh.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(hh.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,o,i;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(o=e.operators)||void 0===o?void 0:o.length)&&(null===(i=e.fields)||void 0===i?void 0:i.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:nh,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:o}=e.detail,i={groupId:this.getGroupId(),level:o.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=ih(this.model,t,i)}_handleAddRule(e){const{parentGroupId:t}=e.detail,o={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=ih(this.model,t,o)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var o,i;this.model=Zp(o=this.model,th(o,i=t).groupId,(e=>e.filter((e=>!("groupId"in e)||e.groupId!==i))))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var o,i;this.model=Zp(o=this.model,oh(o,i=t).groupId,(e=>e.filter((e=>!("ruleId"in e)||e.ruleId!==i))))}_handleUpdateGroupData(e){const{groupId:t,newData:o}=e.detail;this.model=function(e,t,o){return t===nh?Object.assign(Object.assign({},e),o):Zp(e,th(e,t).groupId,(e=>e.map((e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),o):e))))}(this.model,t,o)}_handleUpdateRuleData(e){const{ruleId:t,newData:o}=e.detail;this.model=function(e,t,o){return Zp(e,oh(e,t).groupId,(e=>e.map((e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),o):e))))}(this.model,t,o)}};(0,w.Cg)([l.observable],Vh.prototype,"config",void 0),(0,w.Cg)([l.observable],Vh.prototype,"styles",void 0),(0,w.Cg)([l.observable],Vh.prototype,"model",void 0),Vh=(0,w.Cg)([(0,l.customElement)({name:"expression-builder",template:wh,styles:mh})],Vh);let Yh=class extends Vh{};Yh=(0,w.Cg)([(0,l.customElement)({name:"foundation-expression-builder",styles:mh,template:wh})],Yh);const Wh=["int","short","long"],qh=["double","bigdecimal"],Kh=[...Wh,...qh],Qh=["date","date-time"],Xh=["string","enum"],Jh=["boolean"],Zh=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.type)&&void 0!==i?i:e.field.type};function em(e){switch(Zh(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function tm(e,t,o){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:o,VALUE:e.value}}:null}function om(e,t,o){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:o}}function im(e,t,o=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...o],METHOD:t}:null}const nm=1e3;function am(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const o=Zh(e);if(Xh.includes(o))return t;if(Kh.includes(o))return t.toString();if(Jh.includes(o))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Qh.includes(o))return(new Date(t).getTime()/nm).toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function sm(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map((e=>"children"in e?sm(e,t):t(e))).filter(Boolean)}}function rm(e,t){const o=e.operator.nbInputs;if("many"===o||2===o)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===o?{}:{value:(t=>{const o=Zh(e);if(Xh.includes(o))return t;if(Wh.includes(o))return parseInt(t);if(qh.includes(o))return parseFloat(t);if(Jh.includes(o))return t;if(Qh.includes(o)){const e=new Date(parseInt(t)*nm);return"date"===o?rh(e):lh(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const lm={template:wh,styles:mh};var dm;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(dm||(dm={}));const cm=[{type:dm.logicalOperations.AND,maxRules:"many"},{type:dm.logicalOperations.OR,maxRules:"many"}],um={EQUALS:dm.operations.EQUALS,NOT_EQUALS:dm.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:dm.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:dm.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:dm.operations.LESS_THAN,LESS_THAN_OR_EQUAL:dm.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:dm.operations.IS_CURRENT,IS_PREVIOUS:dm.operations.IS_PREVIOUS},pm={type:"enum",input:"select",values:{HOUR:"HOUR",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}},hm=[{type:um.EQUALS,nbInputs:1,applyTo:[...Xh,...Jh,...Kh,...Qh],tooltip:"Check the equality of the field compared to a set value"},{type:um.NOT_EQUALS,nbInputs:1,applyTo:[...Xh,...Jh,...Kh,...Qh],tooltip:"Check that the field is different from a set value"},{type:um.IS_NULL,nbInputs:0,applyTo:["enum",...Jh,...Kh,...Qh],tooltip:"Check if the field value is null"},{type:um.NOT_NULL,nbInputs:0,applyTo:["enum",...Jh,...Kh,...Qh],tooltip:"Check if the field value is not null"},{type:um.IS_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:um.NOT_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:um.CONTAINS,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:um.CONTAINS_WORDS_STARTING_WITH,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:um.GREATER_THAN,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is greater than a specified number"},{type:um.GREATER_THAN_OR_EQUAL,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:um.LESS_THAN,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is less than a specified number"},{type:um.LESS_THAN_OR_EQUAL,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is less than or equal to a specified number"},{type:um.IS_BEFORE,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is before a specified date/time"},{type:um.IS_AFTER,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is after a specified date/time"},{type:um.ON_OR_BEFORE,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is on or before a specified date/time"},{type:um.ON_OR_AFTER,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is on or after a specified date/time"},{type:um.IS_CURRENT,nbInputs:1,applyTo:[...Qh],tooltip:"Check whether the current date/time matches the current hour/day/week/month/year",valueType:pm},{type:um.IS_PREVIOUS,nbInputs:1,applyTo:[...Qh],tooltip:"Check whether the current date/time matches the previous hour/day/week/month/year",valueType:pm}];function mm(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function gm(e,t){switch(t){case um.IS_NULL_OR_BLANK:return im(e,dm.methodCall.IS_NULL_OR_BLANK,[]);case um.NOT_NULL_OR_BLANK:return im(e,dm.methodCall.NOT_NULL_OR_BLANK,[]);case um.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return im(e,dm.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case um.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return im(e,dm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return im(e,dm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map((e=>({TYPE:"STRING",VALUE:e}))));case um.IS_CURRENT:case um.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return im(e,dm.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===um.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function vm(e){var t,o;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(o=e.field)||void 0===o?void 0:o.fieldId))return null;const i=am(e),n=em(i),a=mm(i.operator.type);switch(a){case um.EQUALS:case um.NOT_EQUALS:case um.GREATER_THAN:case um.GREATER_THAN_OR_EQUAL:case um.LESS_THAN:case um.LESS_THAN_OR_EQUAL:return tm(i,a,n);case um.IS_NULL:return om(i,dm.operations.EQUALS,{TYPE:"NULL"});case um.NOT_NULL:return om(i,dm.operations.NOT_EQUALS,{TYPE:"NULL"});case um.IS_NULL_OR_BLANK:case um.NOT_NULL_OR_BLANK:case um.CONTAINS:case um.CONTAINS_WORDS_STARTING_WITH:case um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case um.IS_CURRENT:case um.IS_PREVIOUS:return gm(i,a);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function fm(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function bm(e,t){const o=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?um[um.IS_NULL]:um[um.NOT_NULL];return hm.find((t=>t.type===e))}const o=fm(t.OPERATION,e);return hm.find((e=>e.type===o))})();return Object.assign(Object.assign({},e),{operator:o})}function ym(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return rm(bm({field:e.find((e=>e.fieldId===t.LEFT.NAME))},t),t.RIGHT)}const Cm=3;function wm(e,t){const[o,i]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[um[um.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[um[um.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[um[um.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[um[um.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&t.PARAMETERS.length===Cm:return[um[um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map((e=>e.VALUE))];case t.METHOD===dm.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===Cm&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[um["CURRENT"===t.PARAMETERS[2].VALUE?um.IS_CURRENT:um.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find((e=>e.fieldId===t.PARAMETERS[0].NAME)),operator:hm.find((e=>e.type===o)),value:i}}function xm(e,t){return{combinator:cm.find((e=>e.type===t.OPERATION)),children:t.EXPRESSIONS.map((t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return xm(e,t);if("BINARY_EXPRESSION"===t.TYPE)return ym(e,t);if("METHOD_EXPRESSION"===t.TYPE)return wm(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")}))}}let $m=class extends Vh{ruleConfigChanged(e,t){this.config=Object.assign({combinators:cm,operators:hm,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:xm(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=sm(e,vm);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,w.Cg)([l.observable],$m.prototype,"ruleConfig",void 0),$m=(0,w.Cg)([(0,l.customElement)({name:"foundation-rule-expression-builder",styles:mh,template:wh})],$m);const Sm={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},Em=[{type:Sm.PLUS,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:Sm.MINUS,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:Sm.MULTIPLY,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:Sm.DIVIDE,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:Sm.CONVERT_TO_DATE,applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:Sm.CONVERT_TO_DATE_TIME,applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function Om(e){var t,o;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(o=e.field)||void 0===o?void 0:o.fieldId))return null;const i=am(e),n=em(i),a=i.operator.type;switch(a){case Sm.TRIM:case Sm.CONVERT_TO_DATE:case Sm.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case Sm.TRIM:return im(e,dm.methodCall.TRIM,[]);case Sm.CONVERT_TO_DATE:return im(e,dm.methodCall.LONG_TO_DATE,[]);case Sm.CONVERT_TO_DATE_TIME:return im(e,dm.methodCall.LONG_TO_DATE_TIME,[])}}(i,a);case Sm.PLUS:case Sm.MINUS:case Sm.DIVIDE:case Sm.MULTIPLY:return tm(i,a,n);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function Tm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return rm(function(e,t){const o=(()=>{const o=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return Em.find((e=>e.type===o))})();return Object.assign(Object.assign({},e),{operator:o})}({field:e.find((e=>e.fieldId===t.LEFT.NAME))},t),t.RIGHT)}function km(e,t){return{combinator:Yp,children:t.EXPRESSIONS.map((t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return km(e,t);if("BINARY_EXPRESSION"===t.TYPE)return Tm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[o,i]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[Sm[Sm.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[Sm[Sm.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[Sm[Sm.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find((e=>e.fieldId===t.PARAMETERS[0].NAME)),operator:Em.find((e=>e.type===o)),value:i}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")}))}}let Dm=class extends Vh{valueConfigChanged(e,t){const o={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},i=km(t.fields,o);this.config={combinators:[Yp],operators:Em,fields:t.fields,model:i,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:Om(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,w.Cg)([l.observable],Dm.prototype,"valueConfig",void 0),Dm=(0,w.Cg)([(0,l.customElement)({name:"foundation-value-expression-builder",styles:mh,template:wh})],Dm);const Im=l.html`
5139
+ `;let jh=class extends l.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),ph(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==ch(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Bh)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,o;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(o=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==o?o:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,_h(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const o={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter(((e,o)=>o!==t))}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(hh.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:o}=e.detail,i=null!==(t=this.config.fields.find((e=>e.fieldId===o)))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:i,value:null,operator:null}};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:o}=e.detail,i={ruleId:this.model.ruleId,newData:Uh(this.model,t,o)};this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:o}=e.detail;if(!o)return;const i=null!==(t=this.config.operators.find((e=>e.type===o)))&&void 0!==t?t:null;if(!i)throw new Error(`Unable to find operator of type ${o}`);this.dispatchEvent(new CustomEvent(hh.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:Hh(i,this.model)},bubbles:!0,composed:!0}))}};(0,w.Cg)([l.observable],jh.prototype,"config",void 0),(0,w.Cg)([l.observable],jh.prototype,"styles",void 0),(0,w.Cg)([l.observable],jh.prototype,"model",void 0),(0,w.Cg)([l.observable],jh.prototype,"index",void 0),(0,w.Cg)([(0,l.attr)({mode:"boolean"})],jh.prototype,"error",void 0),(0,w.Cg)([l.volatile],jh.prototype,"operandIterator",null),jh=(0,w.Cg)([(0,l.customElement)({name:"expression-rule",template:Gh,styles:zh,shadowOptions:{delegatesFocus:!0}})],jh);let Vh=class extends l.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=ah(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const o=sh(t);this.dispatchChangeEvent(o)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(hh.AddGroup,this.handleAddGroup),this.addEventListener(hh.DelGroup,this.handleDeleteGroup),this.addEventListener(hh.AddRule,this.handleAddRule),this.addEventListener(hh.DelRule,this.handleDeleteRule),this.addEventListener(hh.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(hh.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(hh.AddGroup,this.handleAddGroup),this.removeEventListener(hh.DelGroup,this.handleDeleteGroup),this.removeEventListener(hh.AddRule,this.handleAddRule),this.removeEventListener(hh.DelRule,this.handleDeleteRule),this.removeEventListener(hh.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(hh.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,o,i;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(o=e.operators)||void 0===o?void 0:o.length)&&(null===(i=e.fields)||void 0===i?void 0:i.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:nh,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:o}=e.detail,i={groupId:this.getGroupId(),level:o.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=ih(this.model,t,i)}_handleAddRule(e){const{parentGroupId:t}=e.detail,o={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=ih(this.model,t,o)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var o,i;this.model=Zp(o=this.model,th(o,i=t).groupId,(e=>e.filter((e=>!("groupId"in e)||e.groupId!==i))))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var o,i;this.model=Zp(o=this.model,oh(o,i=t).groupId,(e=>e.filter((e=>!("ruleId"in e)||e.ruleId!==i))))}_handleUpdateGroupData(e){const{groupId:t,newData:o}=e.detail;this.model=function(e,t,o){return t===nh?Object.assign(Object.assign({},e),o):Zp(e,th(e,t).groupId,(e=>e.map((e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),o):e))))}(this.model,t,o)}_handleUpdateRuleData(e){const{ruleId:t,newData:o}=e.detail;this.model=function(e,t,o){return Zp(e,oh(e,t).groupId,(e=>e.map((e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),o):e))))}(this.model,t,o)}};(0,w.Cg)([l.observable],Vh.prototype,"config",void 0),(0,w.Cg)([l.observable],Vh.prototype,"styles",void 0),(0,w.Cg)([l.observable],Vh.prototype,"model",void 0),Vh=(0,w.Cg)([(0,l.customElement)({name:"expression-builder",template:wh,styles:mh})],Vh);let Yh=class extends Vh{};Yh=(0,w.Cg)([(0,l.customElement)({name:"foundation-expression-builder",styles:mh,template:wh})],Yh);const Wh=["int","short","long"],qh=["double","bigdecimal"],Kh=[...Wh,...qh],Qh=["date","date-time"],Xh=["string","enum"],Jh=["boolean"],Zh=e=>{var t,o,i;return null!==(i=null===(o=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===o?void 0:o.type)&&void 0!==i?i:e.field.type};function em(e){switch(Zh(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function tm(e,t,o){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:o,VALUE:e.value}}:null}function om(e,t,o){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:o}}function im(e,t,o=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...o],METHOD:t}:null}const nm=1e3;function am(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const o=Zh(e);if(Xh.includes(o))return t;if(Kh.includes(o))return t.toString();if(Jh.includes(o))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Qh.includes(o))return(new Date(t).getTime()/nm).toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function sm(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map((e=>"children"in e?sm(e,t):t(e))).filter(Boolean)}}function rm(e,t){const o=e.operator.nbInputs;if("many"===o||2===o)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===o?{}:{value:(t=>{const o=Zh(e);if(Xh.includes(o))return t;if(Wh.includes(o))return parseInt(t);if(qh.includes(o))return parseFloat(t);if(Jh.includes(o))return t;if(Qh.includes(o)){const e=new Date(parseInt(t)*nm);return"date"===o?rh(e):lh(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const lm={template:wh,styles:mh};var dm;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(dm||(dm={}));const cm=[{type:dm.logicalOperations.AND,maxRules:"many"},{type:dm.logicalOperations.OR,maxRules:"many"}],um={EQUALS:dm.operations.EQUALS,NOT_EQUALS:dm.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:dm.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:dm.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:dm.operations.LESS_THAN,LESS_THAN_OR_EQUAL:dm.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:dm.operations.IS_CURRENT,IS_PREVIOUS:dm.operations.IS_PREVIOUS},pm={type:"enum",input:"select",values:{HOUR:"HOUR",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}},hm=[{type:um.EQUALS,nbInputs:1,applyTo:[...Xh,...Jh,...Kh,...Qh],tooltip:"Check the equality of the field compared to a set value"},{type:um.NOT_EQUALS,nbInputs:1,applyTo:[...Xh,...Jh,...Kh,...Qh],tooltip:"Check that the field is different from a set value"},{type:um.IS_NULL,nbInputs:0,applyTo:["enum",...Jh,...Kh,...Qh],tooltip:"Check if the field value is null"},{type:um.NOT_NULL,nbInputs:0,applyTo:["enum",...Jh,...Kh,...Qh],tooltip:"Check if the field value is not null"},{type:um.IS_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:um.NOT_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:um.CONTAINS,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:um.CONTAINS_WORDS_STARTING_WITH,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:um.GREATER_THAN,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is greater than a specified number"},{type:um.GREATER_THAN_OR_EQUAL,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:um.LESS_THAN,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is less than a specified number"},{type:um.LESS_THAN_OR_EQUAL,nbInputs:1,applyTo:[...Kh],tooltip:"Check if the field value is less than or equal to a specified number"},{type:um.IS_BEFORE,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is before a specified date/time"},{type:um.IS_AFTER,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is after a specified date/time"},{type:um.ON_OR_BEFORE,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is on or before a specified date/time"},{type:um.ON_OR_AFTER,nbInputs:1,applyTo:[...Qh],tooltip:"Check if the field is on or after a specified date/time"},{type:um.IS_CURRENT,nbInputs:1,applyTo:[...Qh],tooltip:"Check whether the current date/time matches the current hour/day/week/month/year",valueType:pm},{type:um.IS_PREVIOUS,nbInputs:1,applyTo:[...Qh],tooltip:"Check whether the current date/time matches the previous hour/day/week/month/year",valueType:pm}];function mm(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function vm(e,t){switch(t){case um.IS_NULL_OR_BLANK:return im(e,dm.methodCall.IS_NULL_OR_BLANK,[]);case um.NOT_NULL_OR_BLANK:return im(e,dm.methodCall.NOT_NULL_OR_BLANK,[]);case um.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return im(e,dm.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case um.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return im(e,dm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return im(e,dm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map((e=>({TYPE:"STRING",VALUE:e}))));case um.IS_CURRENT:case um.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return im(e,dm.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===um.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function gm(e){var t,o;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(o=e.field)||void 0===o?void 0:o.fieldId))return null;const i=am(e),n=em(i),a=mm(i.operator.type);switch(a){case um.EQUALS:case um.NOT_EQUALS:case um.GREATER_THAN:case um.GREATER_THAN_OR_EQUAL:case um.LESS_THAN:case um.LESS_THAN_OR_EQUAL:return tm(i,a,n);case um.IS_NULL:return om(i,dm.operations.EQUALS,{TYPE:"NULL"});case um.NOT_NULL:return om(i,dm.operations.NOT_EQUALS,{TYPE:"NULL"});case um.IS_NULL_OR_BLANK:case um.NOT_NULL_OR_BLANK:case um.CONTAINS:case um.CONTAINS_WORDS_STARTING_WITH:case um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case um.IS_CURRENT:case um.IS_PREVIOUS:return vm(i,a);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function fm(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function bm(e,t){const o=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?um[um.IS_NULL]:um[um.NOT_NULL];return hm.find((t=>t.type===e))}const o=fm(t.OPERATION,e);return hm.find((e=>e.type===o))})();return Object.assign(Object.assign({},e),{operator:o})}function ym(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return rm(bm({field:e.find((e=>e.fieldId===t.LEFT.NAME))},t),t.RIGHT)}const Cm=3;function wm(e,t){const[o,i]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[um[um.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[um[um.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[um[um.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[um[um.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&t.PARAMETERS.length===Cm:return[um[um.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map((e=>e.VALUE))];case t.METHOD===dm.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===Cm&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[um["CURRENT"===t.PARAMETERS[2].VALUE?um.IS_CURRENT:um.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find((e=>e.fieldId===t.PARAMETERS[0].NAME)),operator:hm.find((e=>e.type===o)),value:i}}function xm(e,t){return{combinator:cm.find((e=>e.type===t.OPERATION)),children:t.EXPRESSIONS.map((t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return xm(e,t);if("BINARY_EXPRESSION"===t.TYPE)return ym(e,t);if("METHOD_EXPRESSION"===t.TYPE)return wm(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")}))}}let $m=class extends Vh{ruleConfigChanged(e,t){this.config=Object.assign({combinators:cm,operators:hm,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:xm(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=sm(e,gm);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,w.Cg)([l.observable],$m.prototype,"ruleConfig",void 0),$m=(0,w.Cg)([(0,l.customElement)({name:"foundation-rule-expression-builder",styles:mh,template:wh})],$m);const Sm={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},Em=[{type:Sm.PLUS,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:Sm.MINUS,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:Sm.MULTIPLY,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:Sm.DIVIDE,applyTo:[...Kh],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:Sm.CONVERT_TO_DATE,applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:Sm.CONVERT_TO_DATE_TIME,applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function Om(e){var t,o;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(o=e.field)||void 0===o?void 0:o.fieldId))return null;const i=am(e),n=em(i),a=i.operator.type;switch(a){case Sm.TRIM:case Sm.CONVERT_TO_DATE:case Sm.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case Sm.TRIM:return im(e,dm.methodCall.TRIM,[]);case Sm.CONVERT_TO_DATE:return im(e,dm.methodCall.LONG_TO_DATE,[]);case Sm.CONVERT_TO_DATE_TIME:return im(e,dm.methodCall.LONG_TO_DATE_TIME,[])}}(i,a);case Sm.PLUS:case Sm.MINUS:case Sm.DIVIDE:case Sm.MULTIPLY:return tm(i,a,n);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function Tm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return rm(function(e,t){const o=(()=>{const o=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return Em.find((e=>e.type===o))})();return Object.assign(Object.assign({},e),{operator:o})}({field:e.find((e=>e.fieldId===t.LEFT.NAME))},t),t.RIGHT)}function km(e,t){return{combinator:Yp,children:t.EXPRESSIONS.map((t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return km(e,t);if("BINARY_EXPRESSION"===t.TYPE)return Tm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[o,i]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[Sm[Sm.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[Sm[Sm.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[Sm[Sm.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find((e=>e.fieldId===t.PARAMETERS[0].NAME)),operator:Em.find((e=>e.type===o)),value:i}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")}))}}let Dm=class extends Vh{valueConfigChanged(e,t){const o={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},i=km(t.fields,o);this.config={combinators:[Yp],operators:Em,fields:t.fields,model:i,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:Om(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,w.Cg)([l.observable],Dm.prototype,"valueConfig",void 0),Dm=(0,w.Cg)([(0,l.customElement)({name:"foundation-value-expression-builder",styles:mh,template:wh})],Dm);const Rm=l.html`
5088
5140
  <template ${(0,l.ref)("notificationListener")}>
5089
5141
  <slot></slot>
5090
5142
  </template>
5091
- `;var Rm;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Rm||(Rm={}));const Fm={mode:"open",delegatesFocus:!0};class Nm extends s.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(Rm.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),jn(e.detail,this.tagName,this.notificationListener)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,ut.d)(e))}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{this.showNotificationToast(e)}))}showNotificationToast(e){const{HEADER:t,MESSAGE:o,NOTIFY_SEVERITY:i}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter((({condition:t})=>!t||t({details:e}))));const r={title:t,body:o,createdAt:n,toast:{details:e,type:null==i?void 0:i.toLowerCase(),buttons:s,autoClose:void 0!==a?!!a:!!this.closeTimeout,closeTimeout:null!=a?a:this.closeTimeout}};Kl(r,this.tagName)}}(0,w.Cg)([l.observable],Nm.prototype,"notificationListener",void 0),(0,w.Cg)([(0,l.attr)({attribute:"resource-name"})],Nm.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Nm.prototype,"closeTimeout",void 0),(0,w.Cg)([l.observable],Nm.prototype,"toastButtons",void 0),(0,w.Cg)([mt.yW],Nm.prototype,"datasource",void 0);const Am=Nm.compose({baseName:"notification-listener",template:Im,shadowOptions:Fm}),Lm=(e,t)=>o=>{const i="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return l.FASTElement.define(class extends e{},i(o))};function Mm(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var _m,Pm=o(16171);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(_m||(_m={}));class Hm{constructor(e){this.analytics=(0,Pm.Ay)(e)}trackEvent(e,t){Jn.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Um=s.DI.createInterface((e=>e.singleton(Hm)));var Bm=o(98647),Gm=o(35044);const zm=(0,ne.createLogger)("foundation-router");var jm=o(36132),Vm=o(80751),Ym=o(3479);const Wm="$router",qm=Object.freeze({getOrCreateFor:e=>{const t=e[Wm];return void 0!==t?t:e[Wm]=new Km(e)},find:e=>Ym.Ix.find(e),from:e=>Ym.Ix.from(e)});class Km extends Ym.LK{}const Qm=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function Xm(e){return Qm.test(e)}function Jm(e){return e.config instanceof Bm.Y?e:qm.find(e)}function Zm(e){return Jm(e).parent}function eg(e){let t=Jm(e);for(;t&&t.level>0;)t=t.parent;return t}function tg(e,t="/",o=!1){const i=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!o&&i.endsWith(t)?i.slice(0,-1):i}function og(e,t="/"){const o=e.split(t);return 2===o.length&&""===o[0]&&""!==o[1]?e:(o.length>1&&o.pop(),o.join(t))}function ig(e){return e.replace(`/*${Vm.N}`,"")}const ng=Object.freeze({path:Object.freeze({get current(){return jm.qh.path.current},generateRoute:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){let i=Jm(e);for(;null!==i;){const e=yield i.config.generateRouteFromPath(t,o);if(null!==e)return e;i=i.parent}return null})),push:(e,t=!0)=>{e&&Xm(e)?location.href=e:(history.pushState({},document.title,e),t&&ng.path.trigger(e))},replace:(e,t=!0)=>{e&&Xm(e)?location.href=e:(history.replaceState({},document.title,e),t&&ng.path.trigger(e))},trigger:e=>{jm.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){let i=Jm(e);for(;null!==i;){const e=yield i.config.generateRouteFromName(t,o);if(null!==e)return e;i=i.parent}return null})),push:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={},i=!0){const n=yield ng.name.generateRoute(e,t,o);null!==n&&ng.path.push(n,i)})),replace:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={},i=!0){const n=yield ng.name.generateRoute(e,t,o);null!==n&&ng.path.replace(n,i)})),trigger:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){const i=yield ng.name.generateRoute(e,t,o);null!==i&&ng.path.trigger(i)}))})}),ag=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,sg=10;function rg(e,t=ag,o=sg){const i=[];return e.filter((e=>e.navItems&&e.navItems.some(t))).forEach(((e,n)=>{e.navItems.filter(t).map(((t,i)=>{var a,s,r,l;const d=null!==(a=t.placementIndex)&&void 0!==a?a:n*o+i;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})})).forEach((e=>i.push(e)))})),i.sort(((e,t)=>e.placementIndex-t.placementIndex))}class lg extends Vm.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,o=!t.parent,i=t.basename;o&&(""!==i&&"/"!==i)&&(zm.debug("Route paths remap required due to detected sub-path deployment"),e=e.map((e=>{if(!e.path)return e;if(e.path.startsWith(i))return zm.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",o=`${i}${t}${e.path}`;return zm.debug(`'${e.path}' path modified to '${o}'`),Object.assign(Object.assign({},e),{path:o})}))),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,w.Cg)([l.observable],lg.prototype,"definitions",void 0);class dg extends Bm.Y{constructor(){super(),this.logger=zm,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new lg(this),this.basename=Ki.OB,this.routes=new lg(this)}getNavItems(e=ag){return rg(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,w.sH)(this,void 0,void 0,(function*(){this.analytics.trackEvent(_m.routeChanged,{path:e.route.endpoint.path})}))})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,w.sH)(this,void 0,void 0,(function*(){var t;const{settings:o}=e.route;!1===(null===(t=null==o?void 0:o.isPermitted)||void 0===t?void 0:t.call(o))&&e.cancel((()=>{var t,i;if(this.user.isAuthenticated){const n=null!==(i=null===(t=o.notPermittedPath)||void 0===t?void 0:t.call(o))&&void 0!==i?i:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),ng.name.replace(e.router,n)}else ng.name.replace(e.router,this.loginPath)}))}))})}configureFallbackRouteDefinition(){this.routes.fallback((()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e}))}navigationPhaseLoginRedirect(e){e.cancel((()=>{this.user.trackPath(),this._session.captureReturnUrl(),ng.name.replace(e.router,this.loginPath)}))}generateRouteFromName(e,t){const o=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,w.sH)(this,void 0,void 0,(function*(){const i=yield o.generateRouteFromName.call(this,e,t);return i?this.generateNavigationPath(i):null}))}navigateTo(e){return(0,w.sH)(this,void 0,void 0,(function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield ng.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&ng.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)}))}generateNavigationPath(e,t){const o=this.getNavigationPathBasename(),i=Gm.C.build(t);let n=o&&!e.startsWith(o)?tg([o,e]):e;return n=i?`${n}?${i}`:n,n}getNavigationPathBasename(){var e,t;const o=this.parent,i=null===(t=null===(e=null==o?void 0:o.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return i?ig(i):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,w.Cg)([s.Container],dg.prototype,"container",void 0),(0,w.Cg)([Um],dg.prototype,"analytics",void 0),(0,w.Cg)([Mr.KJ],dg.prototype,"user",void 0),(0,w.Cg)([Ut.N],dg.prototype,"_session",void 0);const cg="navigate-to",ug="generate-navigation-path";let pg=class extends(qm.from(l.FASTElement)){constructor(){super(...arguments),this.logger=zm,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:o,callback:i}=e.detail;if(!i)return;i(this.config.generateNavigationPath(t,o))}}get router(){return this[Wm]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),l.DOM.queueUpdate((()=>(0,w.sH)(this,void 0,void 0,(function*(){this.router.config?this.router.connect():this.router.config=this.config})))),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(cg,this.onNavigateTo),this.addEventListener(ug,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(cg,this.onNavigateTo),this.removeEventListener(ug,this.onGenerateNavigationPath)}};pg=(0,w.Cg)([(0,l.customElement)({name:"foundation-router"})],pg);const hg=e=>l.html`
5143
+ `;var Im;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Im||(Im={}));const Fm={mode:"open",delegatesFocus:!0};class Nm extends s.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.sH)(this,void 0,void 0,(function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(Im.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),jn(e.detail,this.tagName,this.notificationListener)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,ut.d)(e))}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{this.showNotificationToast(e)}))}showNotificationToast(e){const{HEADER:t,MESSAGE:o,NOTIFY_SEVERITY:i}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter((({condition:t})=>!t||t({details:e}))));const r={title:t,body:o,createdAt:n,toast:{details:e,type:null==i?void 0:i.toLowerCase(),buttons:s,autoClose:void 0!==a?!!a:!!this.closeTimeout,closeTimeout:null!=a?a:this.closeTimeout}};Kl(r,this.tagName)}}(0,w.Cg)([l.observable],Nm.prototype,"notificationListener",void 0),(0,w.Cg)([(0,l.attr)({attribute:"resource-name"})],Nm.prototype,"resourceName",void 0),(0,w.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Nm.prototype,"closeTimeout",void 0),(0,w.Cg)([l.observable],Nm.prototype,"toastButtons",void 0),(0,w.Cg)([mt.yW],Nm.prototype,"datasource",void 0);const Am=Nm.compose({baseName:"notification-listener",template:Rm,shadowOptions:Fm}),Lm=(e,t)=>o=>{const i="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return l.FASTElement.define(class extends e{},i(o))};function Mm(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var _m,Pm=o(16171);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(_m||(_m={}));class Hm{constructor(e){this.analytics=(0,Pm.Ay)(e)}trackEvent(e,t){Jn.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Um=s.DI.createInterface((e=>e.singleton(Hm)));var Bm=o(98647),zm=o(35044);const Gm=(0,ne.createLogger)("foundation-router");var jm=o(36132),Vm=o(80751),Ym=o(3479);const Wm="$router",qm=Object.freeze({getOrCreateFor:e=>{const t=e[Wm];return void 0!==t?t:e[Wm]=new Km(e)},find:e=>Ym.Ix.find(e),from:e=>Ym.Ix.from(e)});class Km extends Ym.LK{}const Qm=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function Xm(e){return Qm.test(e)}function Jm(e){return e.config instanceof Bm.Y?e:qm.find(e)}function Zm(e){return Jm(e).parent}function ev(e){let t=Jm(e);for(;t&&t.level>0;)t=t.parent;return t}function tv(e,t="/",o=!1){const i=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!o&&i.endsWith(t)?i.slice(0,-1):i}function ov(e,t="/"){const o=e.split(t);return 2===o.length&&""===o[0]&&""!==o[1]?e:(o.length>1&&o.pop(),o.join(t))}function iv(e){return e.replace(`/*${Vm.N}`,"")}const nv=Object.freeze({path:Object.freeze({get current(){return jm.qh.path.current},generateRoute:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){let i=Jm(e);for(;null!==i;){const e=yield i.config.generateRouteFromPath(t,o);if(null!==e)return e;i=i.parent}return null})),push:(e,t=!0)=>{e&&Xm(e)?location.href=e:(history.pushState({},document.title,e),t&&nv.path.trigger(e))},replace:(e,t=!0)=>{e&&Xm(e)?location.href=e:(history.replaceState({},document.title,e),t&&nv.path.trigger(e))},trigger:e=>{jm.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){let i=Jm(e);for(;null!==i;){const e=yield i.config.generateRouteFromName(t,o);if(null!==e)return e;i=i.parent}return null})),push:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={},i=!0){const n=yield nv.name.generateRoute(e,t,o);null!==n&&nv.path.push(n,i)})),replace:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={},i=!0){const n=yield nv.name.generateRoute(e,t,o);null!==n&&nv.path.replace(n,i)})),trigger:(e,t,...o)=>(0,w.sH)(void 0,[e,t,...o],void 0,(function*(e,t,o={}){const i=yield nv.name.generateRoute(e,t,o);null!==i&&nv.path.trigger(i)}))})}),av=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,sv=10;function rv(e,t=av,o=sv){const i=[];return e.filter((e=>e.navItems&&e.navItems.some(t))).forEach(((e,n)=>{e.navItems.filter(t).map(((t,i)=>{var a,s,r,l;const d=null!==(a=t.placementIndex)&&void 0!==a?a:n*o+i;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})})).forEach((e=>i.push(e)))})),i.sort(((e,t)=>e.placementIndex-t.placementIndex))}class lv extends Vm.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,o=!t.parent,i=t.basename;o&&(""!==i&&"/"!==i)&&(Gm.debug("Route paths remap required due to detected sub-path deployment"),e=e.map((e=>{if(!e.path)return e;if(e.path.startsWith(i))return Gm.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",o=`${i}${t}${e.path}`;return Gm.debug(`'${e.path}' path modified to '${o}'`),Object.assign(Object.assign({},e),{path:o})}))),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,w.Cg)([l.observable],lv.prototype,"definitions",void 0);class dv extends Bm.Y{constructor(){super(),this.logger=Gm,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new lv(this),this.basename=Ki.OB,this.routes=new lv(this)}getNavItems(e=av){return rv(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,w.sH)(this,void 0,void 0,(function*(){this.analytics.trackEvent(_m.routeChanged,{path:e.route.endpoint.path})}))})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,w.sH)(this,void 0,void 0,(function*(){var t;const{settings:o}=e.route;!1===(null===(t=null==o?void 0:o.isPermitted)||void 0===t?void 0:t.call(o))&&e.cancel((()=>{var t,i;if(this.user.isAuthenticated){const n=null!==(i=null===(t=o.notPermittedPath)||void 0===t?void 0:t.call(o))&&void 0!==i?i:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),nv.name.replace(e.router,n)}else nv.name.replace(e.router,this.loginPath)}))}))})}configureFallbackRouteDefinition(){this.routes.fallback((()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e}))}navigationPhaseLoginRedirect(e){e.cancel((()=>{this.user.trackPath(),this._session.captureReturnUrl(),nv.name.replace(e.router,this.loginPath)}))}generateRouteFromName(e,t){const o=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,w.sH)(this,void 0,void 0,(function*(){const i=yield o.generateRouteFromName.call(this,e,t);return i?this.generateNavigationPath(i):null}))}navigateTo(e){return(0,w.sH)(this,void 0,void 0,(function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield nv.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&nv.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)}))}generateNavigationPath(e,t){const o=this.getNavigationPathBasename(),i=zm.C.build(t);let n=o&&!e.startsWith(o)?tv([o,e]):e;return n=i?`${n}?${i}`:n,n}getNavigationPathBasename(){var e,t;const o=this.parent,i=null===(t=null===(e=null==o?void 0:o.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return i?iv(i):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,w.Cg)([s.Container],dv.prototype,"container",void 0),(0,w.Cg)([Um],dv.prototype,"analytics",void 0),(0,w.Cg)([Mr.KJ],dv.prototype,"user",void 0),(0,w.Cg)([Ut.N],dv.prototype,"_session",void 0);const cv="navigate-to",uv="generate-navigation-path";let pv=class extends(qm.from(l.FASTElement)){constructor(){super(...arguments),this.logger=Gm,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:o,callback:i}=e.detail;if(!i)return;i(this.config.generateNavigationPath(t,o))}}get router(){return this[Wm]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),l.DOM.queueUpdate((()=>(0,w.sH)(this,void 0,void 0,(function*(){this.router.config?this.router.connect():this.router.config=this.config})))),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(cv,this.onNavigateTo),this.addEventListener(uv,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(cv,this.onNavigateTo),this.removeEventListener(uv,this.onGenerateNavigationPath)}};pv=(0,w.Cg)([(0,l.customElement)({name:"foundation-router"})],pv);const hv=e=>l.html`
5092
5144
 
5093
5145
  <${e}-card class="stepper-tab" part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab">
5094
5146
  <div class="stepper-tab-menu" part="stepper-tab-menu">
@@ -5117,9 +5169,9 @@ class="margin"
5117
5169
  </slot>
5118
5170
  </div>
5119
5171
  </${e}-card>
5120
- `,mg=l.html`
5121
- ${e=>hg(T(e))}
5122
- `,gg=l.css`
5172
+ `,mv=l.html`
5173
+ ${e=>hv(T(e))}
5174
+ `,vv=l.css`
5123
5175
  :host {
5124
5176
  display: flex;
5125
5177
  height: 100%;
@@ -5210,5 +5262,5 @@ class="margin"
5210
5262
  max-height: 70px;
5211
5263
  height: 70px;
5212
5264
  }
5213
- `;class vg extends s.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.orientation=s.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=t+1===this.tabIds.length,n=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("aria-disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",a),e.setAttribute("aria-controls",a),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(i)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",o?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps)),o&&(this.activetab=e,this.activeid=n)}})),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach((t=>{t.isCompleted()&&(e+=1)})),this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}handleStepClick(e){if(e<this.activeTabIndex&&this.allowBackwardJumps){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid})}}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"));const t=this.tabs.length-1,o=this.activeTabIndex===t;this.hideSubmitButton&&o&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ea.NF)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ea.NF)()}`}))}resetCompletedState(){this.tabs.forEach((e=>e.completed=!1))}}(0,w.Cg)([(0,l.attr)({attribute:"hide-submit-button",mode:"boolean"})],vg.prototype,"hideSubmitButton",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],vg.prototype,"hideStepNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],vg.prototype,"allowBackwardJumps",void 0),(0,w.Cg)([l.attr],vg.prototype,"orientation",void 0),(0,w.Cg)([l.attr],vg.prototype,"activeid",void 0),(0,w.Cg)([l.observable],vg.prototype,"tabs",void 0),(0,w.Cg)([l.observable],vg.prototype,"tabpanels",void 0),(0,w.Cg)([l.observable],vg.prototype,"validation",void 0),(0,w.Cg)([l.observable],vg.prototype,"progressValue",void 0),(0,w.Cg)([l.observable],vg.prototype,"activeTabIndex",void 0),(0,w.Cg)([l.volatile],vg.prototype,"disabledPreviousStep",null),(0,w.Cg)([l.volatile],vg.prototype,"isLastStep",null),(0,w.Cg)([l.volatile],vg.prototype,"islastStepValid",null);const fg=void 0,bg={},yg=vg.compose(Object.assign({baseName:"stepper",template:mg,styles:gg,shadowOptions:fg},bg)),Cg=()=>dl().register(Bp)},70997:(e,t,o)=>{function i(e,t,o){const i=e=>"function"==typeof e?e:()=>e,n=i(t),a=i(o);return(t,o)=>e(t,o)?n(t,o):a(t,o)}o.d(t,{q:()=>i})},80273:(e,t,o)=>{o.d(t,{Du:()=>l,IT:()=>s,WP:()=>n,f4:()=>r,zz:()=>a});var i=o(21530);const n=(e,t)=>{(0,i.O)(e,t)};var a,s;!function(e){e.Italic="italic",e.Normal="normal"}(a||(a={})),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"}(s||(s={}));const r=(e,t=a.Normal,o=s.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${o};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
5214
- //# sourceMappingURL=99.7c749cb9979560e57d11688cd6cd15b9.js.map
5265
+ `;class gv extends s.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.orientation=s.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=t+1===this.tabIds.length,n=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("aria-disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",a),e.setAttribute("aria-controls",a),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(i)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",o?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps)),o&&(this.activetab=e,this.activeid=n)}})),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach((t=>{t.isCompleted()&&(e+=1)})),this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}handleStepClick(e){if(e<this.activeTabIndex&&this.allowBackwardJumps){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid})}}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"));const t=this.tabs.length-1,o=this.activeTabIndex===t;this.hideSubmitButton&&o&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ea.NF)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ea.NF)()}`}))}resetCompletedState(){this.tabs.forEach((e=>e.completed=!1))}}(0,w.Cg)([(0,l.attr)({attribute:"hide-submit-button",mode:"boolean"})],gv.prototype,"hideSubmitButton",void 0),(0,w.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],gv.prototype,"hideStepNumber",void 0),(0,w.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],gv.prototype,"allowBackwardJumps",void 0),(0,w.Cg)([l.attr],gv.prototype,"orientation",void 0),(0,w.Cg)([l.attr],gv.prototype,"activeid",void 0),(0,w.Cg)([l.observable],gv.prototype,"tabs",void 0),(0,w.Cg)([l.observable],gv.prototype,"tabpanels",void 0),(0,w.Cg)([l.observable],gv.prototype,"validation",void 0),(0,w.Cg)([l.observable],gv.prototype,"progressValue",void 0),(0,w.Cg)([l.observable],gv.prototype,"activeTabIndex",void 0),(0,w.Cg)([l.volatile],gv.prototype,"disabledPreviousStep",null),(0,w.Cg)([l.volatile],gv.prototype,"isLastStep",null),(0,w.Cg)([l.volatile],gv.prototype,"islastStepValid",null);const fv=void 0,bv={},yv=gv.compose(Object.assign({baseName:"stepper",template:mv,styles:vv,shadowOptions:fv},bv)),Cv=()=>dl().register(Bp)},70997:(e,t,o)=>{function i(e,t,o){const i=e=>"function"==typeof e?e:()=>e,n=i(t),a=i(o);return(t,o)=>e(t,o)?n(t,o):a(t,o)}o.d(t,{q:()=>i})},80273:(e,t,o)=>{o.d(t,{Du:()=>l,IT:()=>s,WP:()=>n,f4:()=>r,zz:()=>a});var i=o(21530);const n=(e,t)=>{(0,i.O)(e,t)};var a,s;!function(e){e.Italic="italic",e.Normal="normal"}(a||(a={})),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"}(s||(s={}));const r=(e,t=a.Normal,o=s.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${o};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
5266
+ //# sourceMappingURL=480.ff81b08f1da92796e87da4e5d36687fa.js.map