@genesislcap/design-system-configurator 14.97.0 → 14.99.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,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[701],{38701:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>_,Anchor:()=>L,AnchoredRegion:()=>I,Avatar:()=>V,Badge:()=>K,Banner:()=>de,BaseDatasource:()=>ms,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>De,CSSVarsTokenMapper:()=>yd,Calendar:()=>Le,Card:()=>Ie,Checkbox:()=>ze,Combobox:()=>Ze,ConnectionIndicator:()=>nt,DEFUALT_FILTER_BAR_COLUMNS:()=>Sa,DataGrid:()=>dt,DataGridCell:()=>mt,DataGridDatasource:()=>wd,DataGridRow:()=>yt,DatePicker:()=>jt,Dialog:()=>jo,DialogElement:()=>Bo,Disclosure:()=>Uo,Divider:()=>Zo,DropdownMenu:()=>si,ErrorBanner:()=>ui,ErrorBoundary:()=>_i,ErrorBoundaryEvent:()=>hi,ErrorDialog:()=>Ri,FaPrefixFromStyle:()=>Dn,FileUpload:()=>ia,Filter:()=>ga,FilterBar:()=>Da,FilterEvents:()=>va,FlexLayout:()=>Ra,FlexMediaQueriesEnum:()=>_a,Flipper:()=>Ia,Flyout:()=>Ua,FoundationDesignSystemProvider:()=>Lo,FoundationRouter:()=>Hd,GridLayout:()=>on,GridLayoutItem:()=>rn,GridMediaQueriesEnum:()=>Xa,HorizontalScroll:()=>pn,Icon:()=>Cn,Listbox:()=>Tn,ListboxOption:()=>Mn,Menu:()=>Gn,MenuItem:()=>qn,Modal:()=>os,Multiselect:()=>ws,MultiselectDatasource:()=>vs,NotificationListener:()=>Ad,NumberField:()=>Ds,OptionsDatasource:()=>Nd,Popper:()=>Ls,Progress:()=>Is,ProgressRing:()=>zs,Radio:()=>Xs,RadioGroup:()=>tl,SegmentedControl:()=>ll,SegmentedItem:()=>hl,Select:()=>yl,Skeleton:()=>Dl,Slider:()=>Rl,SliderLabel:()=>Hl,Snackbar:()=>Wl,Switch:()=>Zl,Tab:()=>ir,TabPanel:()=>dr,Tabs:()=>vr,TextArea:()=>xr,TextField:()=>kr,Toast:()=>Ir,Toolbar:()=>jr,Tooltip:()=>Wr,TreeItem:()=>Jr,TreeView:()=>nd,UrlInput:()=>md,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>wo,actionsMenuBaseStyles:()=>$,baseComponents:()=>gd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>$o,black:()=>Ut,bodyFont:()=>s.bodyFont,closeIcon:()=>No,configureDesignSystem:()=>yo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>So,createDesignSystemProxy:()=>fd,createFormData:()=>Ki,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>H,defaultAvatarConfig:()=>Y,defaultBadgeConfig:()=>Q,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Re,defaultCardConfig:()=>He,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>Je,defaultDataGridCellConfig:()=>gt,defaultDataGridConfig:()=>ut,defaultDataGridRowConfig:()=>xt,defaultDatePickerConfig:()=>Bt,defaultDialogConfig:()=>Ho,defaultDisclosureConfig:()=>Wo,defaultDividerConfig:()=>Jo,defaultFileUploadConfig:()=>na,defaultFillColor:()=>Wt,defaultFlexLayoutConfig:()=>Aa,defaultFlipperConfig:()=>Ha,defaultFlyoutConfig:()=>Wa,defaultGridLayoutConfig:()=>en,defaultGridLayoutItemConfig:()=>ln,defaultHorizontalScrollConfig:()=>mn,defaultIconConfig:()=>Sn,defaultListboxConfig:()=>An,defaultListboxOptionConfig:()=>Pn,defaultMenuConfig:()=>Vn,defaultMenuItemConfig:()=>Kn,defaultModalConfig:()=>ts,defaultMultiselectConfig:()=>ys,defaultNeutralForegroundContrast:()=>so,defaultNumberFieldConfig:()=>_s,defaultProgressConfig:()=>Hs,defaultProgressRingConfig:()=>Us,defaultRadioConfig:()=>Zs,defaultRadioGroupConfig:()=>il,defaultSegmentedControlConfig:()=>dl,defaultSegmentedItemConfig:()=>vl,defaultSelectConfig:()=>xl,defaultSkeletonConfig:()=>_l,defaultSliderConfig:()=>Nl,defaultSliderLabelConfig:()=>jl,defaultSwitchConfig:()=>Jl,defaultTabConfig:()=>nr,defaultTabPanelConfig:()=>ur,defaultTabsConfig:()=>fr,defaultTextAreaConfig:()=>Fr,defaultTextFieldConfig:()=>Lr,defaultToastConfig:()=>Mr,defaultToolbarConfig:()=>zr,defaultTooltipConfig:()=>Xr,defaultTreeItemConfig:()=>td,defaultTreeViewConfig:()=>ld,defaultUrlInputConfig:()=>hd,defineFactory:()=>Md,density:()=>s.density,designToken:()=>po,designUnit:()=>s.designUnit,designUnitValue:()=>Do,direction:()=>s.direction,directionValue:()=>Fo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Qi,dropdownMenuBaseStyles:()=>ti,errorDialogTemplate:()=>Li,extractMenuItems:()=>ii,fillColor:()=>s.fillColor,filterBarTemplate:()=>$a,flyoutAnimationTime:()=>ja,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,foundationAccordion:()=>h,foundationAccordionItem:()=>y,foundationAccordionItemShadowOptions:()=>f,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>r,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>O,foundationActionsMenuStyles:()=>F,foundationActionsMenuTemplate:()=>C,foundationAnchor:()=>E,foundationAnchorShadowOptions:()=>A,foundationAnchorStyles:()=>k,foundationAnchorTemplate:()=>T,foundationAnchoredRegion:()=>B,foundationAnchoredRegionShadowOptions:()=>P,foundationAnchoredRegionStyles:()=>M,foundationAnchoredRegionTemplate:()=>N,foundationAvatar:()=>W,foundationAvatarShadowOptions:()=>U,foundationAvatarStyles:()=>j,foundationAvatarTemplate:()=>G,foundationBadge:()=>J,foundationBadgeShadowOptions:()=>Z,foundationBadgeStyles:()=>q,foundationBadgeTemplate:()=>X,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>oe,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>Ce,foundationButtonStyles:()=>Fe,foundationButtonTemplate:()=>Se,foundationCalendar:()=>Ee,foundationCalendarShadowOptions:()=>Ae,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Ne,foundationCardTemplate:()=>Me,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>Ve,foundationCheckboxStyles:()=>je,foundationCheckboxTemplate:()=>Ge,foundationCombobox:()=>et,foundationComboboxShadowOptions:()=>Qe,foundationComboboxStyles:()=>We,foundationComboboxTemplate:()=>qe,foundationConnectionIndicator:()=>st,foundationConnectionIndicatorStyles:()=>it,foundationConnectionIndicatorTemplate:()=>at,foundationDataGrid:()=>pt,foundationDataGridCell:()=>ft,foundationDataGridCellShadowOptions:()=>vt,foundationDataGridCellStyles:()=>ht,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>$t,foundationDataGridRowShadowOptions:()=>wt,foundationDataGridRowStyles:()=>bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>ct,foundationDataGridStyles:()=>lt,foundationDataGridTemplate:()=>rt,foundationDatePicker:()=>Gt,foundationDatePickerShadowOptions:()=>Ht,foundationDatePickerStyles:()=>Mt,foundationDatePickerTemplate:()=>Pt,foundationDesignSystemProvider:()=>Ao,foundationDialog:()=>Go,foundationDialogShadowOptions:()=>Po,foundationDialogStyles:()=>Eo,foundationDialogTemplate:()=>Io,foundationDisclosure:()=>qo,foundationDisclosureShadowOptions:()=>Yo,foundationDisclosureStyles:()=>zo,foundationDisclosureTemplate:()=>Vo,foundationDivider:()=>ei,foundationDividerShadowOptions:()=>Qo,foundationDividerStyles:()=>Xo,foundationDividerTemplate:()=>Ko,foundationDropdownMenu:()=>li,foundationDropdownMenuStyles:()=>oi,foundationDropdownMenuTemplate:()=>ni,foundationErrorBanner:()=>pi,foundationErrorBannerShadowOptions:()=>ci,foundationErrorBannerTemplate:()=>di,foundationErrorBoundary:()=>Oi,foundationErrorBoundaryShadowOptions:()=>Ci,foundationErrorBoundaryTemplate:()=>Di,foundationErrorDialog:()=>Ei,foundationErrorDialogShadowOptions:()=>Ai,foundationErrorDialogStyles:()=>ki,foundationFileUpload:()=>sa,foundationFileUploadShadowOptions:()=>aa,foundationFileUploadStyles:()=>Wi,foundationFileUploadTemplate:()=>Xi,foundationFilter:()=>fa,foundationFilterBar:()=>Ca,foundationFilterBarStyles:()=>ya,foundationFilterBarTemplate:()=>Fa,foundationFilterStyles:()=>la,foundationFilterTemplate:()=>ma,foundationFlexLayout:()=>Ea,foundationFlexLayoutShadowOptions:()=>La,foundationFlexLayoutStyles:()=>ka,foundationFlexLayoutTemplate:()=>Ta,foundationFlipper:()=>Ba,foundationFlipperShadowOptions:()=>Pa,foundationFlipperStyles:()=>Na,foundationFlipperTemplate:()=>Ma,foundationFlyout:()=>qa,foundationFlyoutShadowOptions:()=>Ya,foundationFlyoutStyles:()=>Ga,foundationFlyoutTemplate:()=>Va,foundationGridLayout:()=>an,foundationGridLayoutItem:()=>dn,foundationGridLayoutItemShadowOptions:()=>sn,foundationGridLayoutItemTemplate:()=>nn,foundationGridLayoutShadowOptions:()=>Ja,foundationGridLayoutStyles:()=>Za,foundationGridLayoutTemplate:()=>Qa,foundationHorizontalScroll:()=>vn,foundationHorizontalScrollShadowOptions:()=>hn,foundationHorizontalScrollStyles:()=>cn,foundationHorizontalScrollTemplate:()=>un,foundationIcon:()=>_n,foundationIconShadowOptions:()=>Fn,foundationIconStyles:()=>xn,foundationIconTemplate:()=>$n,foundationListbox:()=>Rn,foundationListboxOption:()=>Hn,foundationListboxOptionShadowOptions:()=>In,foundationListboxOptionStyles:()=>En,foundationListboxOptionTemplate:()=>Nn,foundationListboxShadowOptions:()=>Ln,foundationListboxStyles:()=>On,foundationListboxTemplate:()=>kn,foundationMenu:()=>Un,foundationMenuItem:()=>Zn,foundationMenuItemShadowOptions:()=>Xn,foundationMenuItemStyles:()=>Yn,foundationMenuItemTemplate:()=>Wn,foundationMenuShadowOptions:()=>zn,foundationMenuStyles:()=>Bn,foundationMenuTemplate:()=>jn,foundationModal:()=>is,foundationModalShadowOptions:()=>es,foundationModalStyles:()=>Qn,foundationModalTemplate:()=>Jn,foundationMultiselect:()=>xs,foundationMultiselectShadowOptions:()=>bs,foundationNotificationListener:()=>Rd,foundationNotificationListenerShadowOptions:()=>Ld,foundationNotificationListenerTemplate:()=>xd,foundationNumberField:()=>Os,foundationNumberFieldShadowOptions:()=>Cs,foundationNumberFieldStyles:()=>Fs,foundationNumberFieldTemplate:()=>Ss,foundationPopper:()=>Es,foundationProgress:()=>Bs,foundationProgressRing:()=>Ys,foundationProgressRingShadowOptions:()=>Vs,foundationProgressRingStyles:()=>js,foundationProgressRingTemplate:()=>Gs,foundationProgressShadowOptions:()=>Ps,foundationProgressStyles:()=>Ns,foundationProgressTemplate:()=>Ms,foundationRadio:()=>Qs,foundationRadioGroup:()=>al,foundationRadioGroupShadowOptions:()=>ol,foundationRadioGroupStyles:()=>Js,foundationRadioGroupTemplate:()=>el,foundationRadioShadowOptions:()=>Ks,foundationRadioStyles:()=>Ws,foundationRadioTemplate:()=>qs,foundationSegmentedControl:()=>cl,foundationSegmentedControlShadowOptions:()=>rl,foundationSegmentedControlStyles:()=>nl,foundationSegmentedControlTemplate:()=>sl,foundationSegmentedItem:()=>gl,foundationSegmentedItemShadowOptions:()=>ml,foundationSegmentedItemStyles:()=>ul,foundationSegmentedItemTemplate:()=>pl,foundationSelect:()=>$l,foundationSelectShadowOptions:()=>wl,foundationSelectStyles:()=>fl,foundationSelectTemplate:()=>bl,foundationSkeleton:()=>Ol,foundationSkeletonShadowOptions:()=>Cl,foundationSkeletonStyles:()=>Fl,foundationSkeletonTemplate:()=>Sl,foundationSlider:()=>Ml,foundationSliderLabel:()=>Gl,foundationSliderLabelShadowOptions:()=>Bl,foundationSliderLabelStyles:()=>Il,foundationSliderLabelTemplate:()=>Pl,foundationSliderShadowOptions:()=>El,foundationSliderStyles:()=>kl,foundationSliderTemplate:()=>Al,foundationSnackbar:()=>ql,foundationSnackbarShadowOptions:()=>Yl,foundationSnackbarStyles:()=>zl,foundationSnackbarTemplate:()=>Ul,foundationSwitch:()=>er,foundationSwitchShadowOptions:()=>Ql,foundationSwitchStyles:()=>Xl,foundationSwitchTemplate:()=>Kl,foundationTab:()=>sr,foundationTabPanel:()=>pr,foundationTabPanelShadowOptions:()=>cr,foundationTabPanelStyles:()=>lr,foundationTabPanelTemplate:()=>rr,foundationTabShadowOptions:()=>ar,foundationTabStyles:()=>tr,foundationTabTemplate:()=>or,foundationTabs:()=>br,foundationTabsShadowOptions:()=>gr,foundationTabsStyles:()=>hr,foundationTabsTemplate:()=>mr,foundationTextArea:()=>Sr,foundationTextAreaShadowOptions:()=>$r,foundationTextAreaStyles:()=>yr,foundationTextAreaTemplate:()=>wr,foundationTextField:()=>Ar,foundationTextFieldShadowOptions:()=>Tr,foundationTextFieldStyles:()=>_r,foundationTextFieldTemplate:()=>Or,foundationToast:()=>Pr,foundationToastShadowOptions:()=>Nr,foundationToastStyles:()=>Rr,foundationToastTemplate:()=>Er,foundationToolbar:()=>Vr,foundationToolbarShadowOptions:()=>Gr,foundationToolbarStyles:()=>Hr,foundationToolbarTemplate:()=>Br,foundationTooltip:()=>Kr,foundationTooltipShadowOptions:()=>qr,foundationTooltipStyles:()=>Ur,foundationTooltipTemplate:()=>Yr,foundationTreeItem:()=>od,foundationTreeItemShadowOptions:()=>ed,foundationTreeItemStyles:()=>Zr,foundationTreeItemTemplate:()=>Qr,foundationTreeView:()=>rd,foundationTreeViewShadowOptions:()=>sd,foundationTreeViewStyles:()=>id,foundationTreeViewTemplate:()=>ad,foundationUrlInput:()=>vd,foundationUrlInputShadowOptions:()=>pd,foundationUrlInputStyles:()=>dd,foundationUrlInputTemplate:()=>ud,fuiAccentPalette:()=>oo,fuiAccentSwatch:()=>to,fuiCardFillColor:()=>no,fuiCardForegroundColor:()=>ro,fuiDefaultCardFillColor:()=>Xt,fuiDefaultCardPalette:()=>Kt,fuiFillColor:()=>ao,fuiNeutralPalette:()=>Jt,fuiNeutralSwatch:()=>Qt,getBannerTemplate:()=>se,getDefaultConfig:()=>go,getDialogTemplate:()=>Mo,getDropdownMenuTemplate:()=>ai,getErrorDialogTemplate:()=>Ti,getExports:()=>fo,getFontawesomeIconsCss:()=>wn,getPrefixedDatePicker:()=>It,getPrefixedErrorBanner:()=>ri,getPrefixedFileUpload:()=>qi,getPrefixedFilterTemplate:()=>ha,getPrefixedFlyout:()=>za,getPrefixedMultiselect:()=>gs,getPrefixedSnackbar:()=>Vl,getPrefixedUrlInput:()=>cd,getTypeRampValue:()=>bo,jsonConverter:()=>Ts,mapType:()=>wa,maxheight:()=>rs,media:()=>z,menuTemplate:()=>S,mixinFoundationFontFamily:()=>_o,multiselectStyles:()=>ds,multiselectTemplate:()=>fs,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>xo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>mo,provideDesignSystem:()=>bd,provideTokens:()=>uo,registerFoundationDesignSystem:()=>Bd,singleOptionTemplate:()=>D,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>ho,tagFor:()=>Id,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>Zi,white:()=>Vt});var i={};o.r(i),o.d(i,{accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,bodyFont:()=>s.bodyFont,controlCornerRadius:()=>s.controlCornerRadius,defaultNeutralForegroundContrast:()=>so,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>no,fuiCardForegroundColor:()=>ro,fuiFillColor:()=>ao,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>wo,baseLayerLuminanceValue:()=>$o,controlCornerRadiusValue:()=>So,designUnitValue:()=>Do,directionValue:()=>Fo,neutralPaletteValue:()=>xo});var n=o(75951),s=o(13896),l=o(83147);const r=(e,t)=>l.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[51],{50051:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>C,Anchor:()=>L,AnchoredRegion:()=>M,Avatar:()=>z,Badge:()=>K,Banner:()=>de,BaseDatasource:()=>ot,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>De,CSSVarsTokenMapper:()=>Fd,Calendar:()=>Le,Card:()=>Me,Checkbox:()=>Ve,Combobox:()=>xt,ConnectionIndicator:()=>Ot,DEFUALT_FILTER_BAR_COLUMNS:()=>Ia,DataGrid:()=>At,DataGridCell:()=>Mt,DataGridDatasource:()=>Sd,DataGridRow:()=>Gt,DatePicker:()=>uo,Dialog:()=>ci,DialogElement:()=>di,Disclosure:()=>mi,Divider:()=>wi,DropdownMenu:()=>ki,ErrorBanner:()=>Ei,ErrorBoundary:()=>Xi,ErrorBoundaryEvent:()=>Ii,ErrorDialog:()=>ta,FaPrefixFromStyle:()=>Mn,FileUpload:()=>va,Filter:()=>Oa,FilterBar:()=>Ma,FilterEvents:()=>Ca,FlexLayout:()=>Ua,FlexMediaQueriesEnum:()=>Pa,Flipper:()=>Xa,Flyout:()=>an,FoundationDesignSystemProvider:()=>ei,FoundationRouter:()=>Bd,GridLayout:()=>vn,GridLayoutItem:()=>wn,GridMediaQueriesEnum:()=>rn,HorizontalScroll:()=>Sn,Icon:()=>Hn,Listbox:()=>Gn,ListboxOption:()=>qn,Menu:()=>es,MenuItem:()=>ss,Modal:()=>ms,Multiselect:()=>Ss,MultiselectDatasource:()=>ys,NotificationListener:()=>Id,NumberField:()=>ks,OptionsDatasource:()=>gt,Popper:()=>Ns,Progress:()=>Bs,ProgressRing:()=>Ws,Radio:()=>Js,RadioGroup:()=>nl,SegmentedControl:()=>ul,SegmentedItem:()=>fl,Select:()=>Fl,Skeleton:()=>kl,Slider:()=>Ml,SliderLabel:()=>Vl,Snackbar:()=>Zl,Switch:()=>tr,Tab:()=>lr,TabPanel:()=>hr,Tabs:()=>yr,TextArea:()=>Dr,TextField:()=>Rr,Toast:()=>Br,Toolbar:()=>Ur,Tooltip:()=>Zr,TreeItem:()=>id,TreeView:()=>dd,UrlInput:()=>bd,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>Vo,actionsMenuBaseStyles:()=>$,baseComponents:()=>wd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Uo,black:()=>vo,bodyFont:()=>s.bodyFont,closeIcon:()=>ai,configureDesignSystem:()=>Go,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>Wo,createDesignSystemProxy:()=>xd,createFormData:()=>ra,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>P,defaultAvatarConfig:()=>Y,defaultBadgeConfig:()=>Q,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>Ce,defaultCalendarConfig:()=>Re,defaultCardConfig:()=>Pe,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>Ft,defaultDataGridCellConfig:()=>Pt,defaultDataGridConfig:()=>Et,defaultDataGridRowConfig:()=>zt,defaultDatePickerConfig:()=>co,defaultDialogConfig:()=>ri,defaultDisclosureConfig:()=>gi,defaultDividerConfig:()=>$i,defaultFileUploadConfig:()=>fa,defaultFillColor:()=>fo,defaultFlexLayoutConfig:()=>za,defaultFlipperConfig:()=>Za,defaultFlyoutConfig:()=>sn,defaultGridLayoutConfig:()=>hn,defaultGridLayoutItemConfig:()=>yn,defaultHorizontalScrollConfig:()=>_n,defaultIconConfig:()=>In,defaultListboxConfig:()=>zn,defaultListboxOptionConfig:()=>Kn,defaultMenuConfig:()=>os,defaultMenuItemConfig:()=>rs,defaultModalConfig:()=>hs,defaultMultiselectConfig:()=>Fs,defaultNeutralForegroundContrast:()=>To,defaultNumberFieldConfig:()=>Ls,defaultProgressConfig:()=>Vs,defaultProgressRingConfig:()=>Xs,defaultRadioConfig:()=>tl,defaultRadioGroupConfig:()=>ll,defaultSegmentedControlConfig:()=>hl,defaultSegmentedItemConfig:()=>yl,defaultSelectConfig:()=>Dl,defaultSkeletonConfig:()=>Ll,defaultSliderConfig:()=>Pl,defaultSliderLabelConfig:()=>Ul,defaultSwitchConfig:()=>ir,defaultTabConfig:()=>dr,defaultTabPanelConfig:()=>vr,defaultTabsConfig:()=>xr,defaultTextAreaConfig:()=>Cr,defaultTextFieldConfig:()=>Nr,defaultToastConfig:()=>jr,defaultToolbarConfig:()=>Wr,defaultTooltipConfig:()=>Jr,defaultTreeItemConfig:()=>nd,defaultTreeViewConfig:()=>ud,defaultUrlInputConfig:()=>fd,defineFactory:()=>Hd,density:()=>s.density,designToken:()=>No,designUnit:()=>s.designUnit,designUnitValue:()=>qo,direction:()=>s.direction,directionValue:()=>Yo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>ca,dropdownMenuBaseStyles:()=>Si,errorDialogTemplate:()=>Ji,extractMenuItems:()=>_i,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ea,flyoutAnimationTime:()=>Ja,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,foundationAccordion:()=>h,foundationAccordionItem:()=>y,foundationAccordionItemShadowOptions:()=>f,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>r,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>O,foundationActionsMenuStyles:()=>F,foundationActionsMenuTemplate:()=>_,foundationAnchor:()=>E,foundationAnchorShadowOptions:()=>A,foundationAnchorStyles:()=>k,foundationAnchorTemplate:()=>T,foundationAnchoredRegion:()=>j,foundationAnchoredRegionShadowOptions:()=>H,foundationAnchoredRegionStyles:()=>I,foundationAnchoredRegionTemplate:()=>N,foundationAvatar:()=>W,foundationAvatarShadowOptions:()=>U,foundationAvatarStyles:()=>B,foundationAvatarTemplate:()=>G,foundationBadge:()=>J,foundationBadgeShadowOptions:()=>Z,foundationBadgeStyles:()=>q,foundationBadgeTemplate:()=>X,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>oe,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>_e,foundationButtonStyles:()=>Fe,foundationButtonTemplate:()=>Se,foundationCalendar:()=>Ee,foundationCalendarShadowOptions:()=>Ae,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>je,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Ne,foundationCardTemplate:()=>Ie,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>ze,foundationCheckboxStyles:()=>Be,foundationCheckboxTemplate:()=>Ge,foundationCombobox:()=>St,foundationComboboxShadowOptions:()=>$t,foundationComboboxStyles:()=>ft,foundationComboboxTemplate:()=>bt,foundationConnectionIndicator:()=>kt,foundationConnectionIndicatorStyles:()=>_t,foundationConnectionIndicatorTemplate:()=>Ct,foundationDataGrid:()=>Nt,foundationDataGridCell:()=>jt,foundationDataGridCellShadowOptions:()=>Ht,foundationDataGridCellStyles:()=>It,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Ut,foundationDataGridRowShadowOptions:()=>Vt,foundationDataGridRowStyles:()=>Bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Rt,foundationDataGridStyles:()=>Tt,foundationDataGridTemplate:()=>Lt,foundationDatePicker:()=>po,foundationDatePickerShadowOptions:()=>ro,foundationDatePickerStyles:()=>no,foundationDatePickerTemplate:()=>lo,foundationDesignSystemProvider:()=>ti,foundationDialog:()=>ui,foundationDialogShadowOptions:()=>li,foundationDialogStyles:()=>ii,foundationDialogTemplate:()=>si,foundationDisclosure:()=>fi,foundationDisclosureShadowOptions:()=>vi,foundationDisclosureStyles:()=>pi,foundationDisclosureTemplate:()=>hi,foundationDivider:()=>Fi,foundationDividerShadowOptions:()=>xi,foundationDividerStyles:()=>bi,foundationDividerTemplate:()=>yi,foundationDropdownMenu:()=>Ti,foundationDropdownMenuStyles:()=>Di,foundationDropdownMenuTemplate:()=>Oi,foundationErrorBanner:()=>Ni,foundationErrorBannerShadowOptions:()=>Ri,foundationErrorBannerTemplate:()=>Ai,foundationErrorBoundary:()=>Ki,foundationErrorBoundaryShadowOptions:()=>qi,foundationErrorBoundaryTemplate:()=>Wi,foundationErrorDialog:()=>oa,foundationErrorDialogShadowOptions:()=>ea,foundationErrorDialogStyles:()=>Zi,foundationFileUpload:()=>ba,foundationFileUploadShadowOptions:()=>ga,foundationFileUploadStyles:()=>na,foundationFileUploadTemplate:()=>la,foundationFilter:()=>ka,foundationFilterBar:()=>Ha,foundationFilterBarStyles:()=>La,foundationFilterBarTemplate:()=>Na,foundationFilterStyles:()=>ya,foundationFilterTemplate:()=>_a,foundationFlexLayout:()=>Ya,foundationFlexLayoutShadowOptions:()=>Va,foundationFlexLayoutStyles:()=>Ba,foundationFlexLayoutTemplate:()=>Ga,foundationFlipper:()=>Qa,foundationFlipperShadowOptions:()=>Ka,foundationFlipperStyles:()=>Wa,foundationFlipperTemplate:()=>qa,foundationFlyout:()=>ln,foundationFlyoutShadowOptions:()=>nn,foundationFlyoutStyles:()=>en,foundationFlyoutTemplate:()=>on,foundationGridLayout:()=>gn,foundationGridLayoutItem:()=>xn,foundationGridLayoutItemShadowOptions:()=>bn,foundationGridLayoutItemTemplate:()=>fn,foundationGridLayoutShadowOptions:()=>pn,foundationGridLayoutStyles:()=>cn,foundationGridLayoutTemplate:()=>un,foundationHorizontalScroll:()=>Cn,foundationHorizontalScrollShadowOptions:()=>Dn,foundationHorizontalScrollStyles:()=>$n,foundationHorizontalScrollTemplate:()=>Fn,foundationIcon:()=>Pn,foundationIconShadowOptions:()=>Nn,foundationIconStyles:()=>Rn,foundationIconTemplate:()=>En,foundationListbox:()=>Un,foundationListboxOption:()=>Zn,foundationListboxOptionShadowOptions:()=>Xn,foundationListboxOptionStyles:()=>Yn,foundationListboxOptionTemplate:()=>Wn,foundationListboxShadowOptions:()=>Vn,foundationListboxStyles:()=>jn,foundationListboxTemplate:()=>Bn,foundationMenu:()=>is,foundationMenuItem:()=>ds,foundationMenuItemShadowOptions:()=>ls,foundationMenuItemStyles:()=>as,foundationMenuItemTemplate:()=>ns,foundationMenuShadowOptions:()=>ts,foundationMenuStyles:()=>Qn,foundationMenuTemplate:()=>Jn,foundationModal:()=>vs,foundationModalShadowOptions:()=>ps,foundationModalStyles:()=>cs,foundationModalTemplate:()=>us,foundationMultiselect:()=>Ds,foundationMultiselectShadowOptions:()=>$s,foundationNotificationListener:()=>Md,foundationNotificationListenerShadowOptions:()=>Nd,foundationNotificationListenerTemplate:()=>Dd,foundationNumberField:()=>As,foundationNumberFieldShadowOptions:()=>Ts,foundationNumberFieldStyles:()=>Cs,foundationNumberFieldTemplate:()=>Os,foundationPopper:()=>Hs,foundationProgress:()=>zs,foundationProgressRing:()=>Ks,foundationProgressRingShadowOptions:()=>qs,foundationProgressRingStyles:()=>Us,foundationProgressRingTemplate:()=>Ys,foundationProgressShadowOptions:()=>Gs,foundationProgressStyles:()=>Ps,foundationProgressTemplate:()=>js,foundationRadio:()=>ol,foundationRadioGroup:()=>rl,foundationRadioGroupShadowOptions:()=>sl,foundationRadioGroupStyles:()=>il,foundationRadioGroupTemplate:()=>al,foundationRadioShadowOptions:()=>el,foundationRadioStyles:()=>Zs,foundationRadioTemplate:()=>Qs,foundationSegmentedControl:()=>ml,foundationSegmentedControlShadowOptions:()=>pl,foundationSegmentedControlStyles:()=>dl,foundationSegmentedControlTemplate:()=>cl,foundationSegmentedItem:()=>wl,foundationSegmentedItemShadowOptions:()=>bl,foundationSegmentedItemStyles:()=>vl,foundationSegmentedItemTemplate:()=>gl,foundationSelect:()=>_l,foundationSelectShadowOptions:()=>Sl,foundationSelectStyles:()=>xl,foundationSelectTemplate:()=>$l,foundationSkeleton:()=>Al,foundationSkeletonShadowOptions:()=>Tl,foundationSkeletonStyles:()=>Cl,foundationSkeletonTemplate:()=>Ol,foundationSlider:()=>jl,foundationSliderLabel:()=>Yl,foundationSliderLabelShadowOptions:()=>zl,foundationSliderLabelStyles:()=>Bl,foundationSliderLabelTemplate:()=>Gl,foundationSliderShadowOptions:()=>Hl,foundationSliderStyles:()=>Rl,foundationSliderTemplate:()=>Il,foundationSnackbar:()=>Ql,foundationSnackbarShadowOptions:()=>Kl,foundationSnackbarStyles:()=>Wl,foundationSnackbarTemplate:()=>Xl,foundationSwitch:()=>ar,foundationSwitchShadowOptions:()=>or,foundationSwitchStyles:()=>Jl,foundationSwitchTemplate:()=>er,foundationTab:()=>cr,foundationTabPanel:()=>gr,foundationTabPanelShadowOptions:()=>mr,foundationTabPanelStyles:()=>ur,foundationTabPanelTemplate:()=>pr,foundationTabShadowOptions:()=>rr,foundationTabStyles:()=>nr,foundationTabTemplate:()=>sr,foundationTabs:()=>$r,foundationTabsShadowOptions:()=>wr,foundationTabsStyles:()=>fr,foundationTabsTemplate:()=>br,foundationTextArea:()=>Or,foundationTextAreaShadowOptions:()=>_r,foundationTextAreaStyles:()=>Fr,foundationTextAreaTemplate:()=>Sr,foundationTextField:()=>Ir,foundationTextFieldShadowOptions:()=>Er,foundationTextFieldStyles:()=>Lr,foundationTextFieldTemplate:()=>Ar,foundationToast:()=>Gr,foundationToastShadowOptions:()=>Pr,foundationToastStyles:()=>Mr,foundationToastTemplate:()=>Hr,foundationToolbar:()=>qr,foundationToolbarShadowOptions:()=>Yr,foundationToolbarStyles:()=>Vr,foundationToolbarTemplate:()=>zr,foundationTooltip:()=>ed,foundationTooltipShadowOptions:()=>Qr,foundationTooltipStyles:()=>Xr,foundationTooltipTemplate:()=>Kr,foundationTreeItem:()=>sd,foundationTreeItemShadowOptions:()=>ad,foundationTreeItemStyles:()=>td,foundationTreeItemTemplate:()=>od,foundationTreeView:()=>pd,foundationTreeViewShadowOptions:()=>cd,foundationTreeViewStyles:()=>ld,foundationTreeViewTemplate:()=>rd,foundationUrlInput:()=>yd,foundationUrlInputShadowOptions:()=>gd,foundationUrlInputStyles:()=>hd,foundationUrlInputTemplate:()=>vd,fuiAccentPalette:()=>_o,fuiAccentSwatch:()=>Do,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Ao,fuiDefaultCardFillColor:()=>yo,fuiDefaultCardPalette:()=>wo,fuiFillColor:()=>Oo,fuiNeutralPalette:()=>Fo,fuiNeutralSwatch:()=>$o,getBannerTemplate:()=>se,getDefaultConfig:()=>Po,getDialogTemplate:()=>ni,getDropdownMenuTemplate:()=>Ci,getErrorDialogTemplate:()=>Qi,getExports:()=>jo,getFontawesomeIconsCss:()=>An,getPrefixedDatePicker:()=>so,getPrefixedErrorBanner:()=>Li,getPrefixedFileUpload:()=>sa,getPrefixedFilterTemplate:()=>Da,getPrefixedFlyout:()=>tn,getPrefixedMultiselect:()=>ws,getPrefixedSnackbar:()=>ql,getPrefixedUrlInput:()=>md,getTypeRampValue:()=>Bo,jsonConverter:()=>Es,mapType:()=>Aa,maxheight:()=>fs,media:()=>V,menuTemplate:()=>S,mixinFoundationFontFamily:()=>Ko,multiselectStyles:()=>bs,multiselectTemplate:()=>xs,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>zo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>Mo,provideDesignSystem:()=>$d,provideTokens:()=>Eo,registerFoundationDesignSystem:()=>Gd,singleOptionTemplate:()=>D,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Io,tagFor:()=>Pd,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>da,white:()=>mo});var i={};o.r(i),o.d(i,{accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,bodyFont:()=>s.bodyFont,controlCornerRadius:()=>s.controlCornerRadius,defaultNeutralForegroundContrast:()=>To,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Ao,fuiFillColor:()=>Oo,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Vo,baseLayerLuminanceValue:()=>Uo,controlCornerRadiusValue:()=>Wo,designUnitValue:()=>qo,directionValue:()=>Yo,neutralPaletteValue:()=>zo});var n=o(75951),s=o(13896),l=o(83147);const r=(e,t)=>l.css`
2
2
  ${(0,s.accordionStyles)(e,t)}
3
3
  `,d=(e,t)=>(0,n.accordionTemplate)(e,t);class c extends n.Accordion{}const u={delegatesFocus:!0,mode:"open"},p={},h=c.compose(Object.assign({baseName:"accordion",template:d,styles:r,shadowOptions:u},p)),m=(e,t)=>l.css`
4
4
  ${(0,s.accordionItemStyles)(e,t)}
@@ -150,26 +150,26 @@
150
150
  >
151
151
  ${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
152
152
  </fast-button>
153
- `,C=l.html`
153
+ `,_=l.html`
154
154
  <div
155
155
  class="actions-container${e=>e.isVertical?" actions-vertical":""}"
156
156
  part="actions-container"
157
157
  >
158
158
  ${e=>e.getTemplate()}
159
159
  </div>
160
- `;class _ extends n.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.A)(["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 this.rowData?"function"==typeof e?e(this.rowData):e:""}getTemplate(){if(!this.hideMenuSingleOption)return S;const e=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==e.length?1===e.length?(this.singleOption=e[0],D):S:void 0}}(0,w.__decorate)([l.observable],_.prototype,"actions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],_.prototype,"isVertical",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],_.prototype,"addDefaultActions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],_.prototype,"autoCloseOnAction",void 0),(0,w.__decorate)([l.observable],_.prototype,"classNames",void 0),(0,w.__decorate)([l.observable],_.prototype,"definition",void 0),(0,w.__decorate)([l.attr],_.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],_.prototype,"open",void 0),(0,w.__decorate)([l.attr],_.prototype,"buttonAppearance",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],_.prototype,"hideDisabled",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],_.prototype,"hideMenuSingleOption",void 0),(0,w.__decorate)([l.observable],_.prototype,"singleOption",void 0);const O=_.compose({baseName:"actions-menu",styles:F,template:C}),k=(e,t)=>l.css`
160
+ `;class C extends n.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.A)(["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 this.rowData?"function"==typeof e?e(this.rowData):e:""}getTemplate(){if(!this.hideMenuSingleOption)return S;const e=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==e.length?1===e.length?(this.singleOption=e[0],D):S:void 0}}(0,w.__decorate)([l.observable],C.prototype,"actions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],C.prototype,"isVertical",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],C.prototype,"addDefaultActions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],C.prototype,"autoCloseOnAction",void 0),(0,w.__decorate)([l.observable],C.prototype,"classNames",void 0),(0,w.__decorate)([l.observable],C.prototype,"definition",void 0),(0,w.__decorate)([l.attr],C.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],C.prototype,"open",void 0),(0,w.__decorate)([l.attr],C.prototype,"buttonAppearance",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],C.prototype,"hideDisabled",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],C.prototype,"hideMenuSingleOption",void 0),(0,w.__decorate)([l.observable],C.prototype,"singleOption",void 0);const O=C.compose({baseName:"actions-menu",styles:F,template:_}),k=(e,t)=>l.css`
161
161
  ${(0,s.anchorStyles)(e,t)}
162
- `,T=(e,t)=>(0,n.anchorTemplate)(e,t);class L extends s.Anchor{}const A={delegatesFocus:!0,mode:"open"},R={},E=L.compose(Object.assign({baseName:"anchor",template:T,styles:k,shadowOptions:A},R)),N=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),M=(e,t)=>l.css`
162
+ `,T=(e,t)=>(0,n.anchorTemplate)(e,t);class L extends s.Anchor{}const A={delegatesFocus:!0,mode:"open"},R={},E=L.compose(Object.assign({baseName:"anchor",template:T,styles:k,shadowOptions:A},R)),N=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),I=(e,t)=>l.css`
163
163
  ${(0,s.anchoredRegionStyles)(e,t)}
164
- `;class I extends s.AnchoredRegion{}const P={delegatesFocus:!0,mode:"open"},H={},B=I.compose(Object.assign({baseName:"anchored-region",template:N,styles:M,shadowOptions:P},H)),j=(e,t)=>l.css`
164
+ `;class M extends s.AnchoredRegion{}const H={delegatesFocus:!0,mode:"open"},P={},j=M.compose(Object.assign({baseName:"anchored-region",template:N,styles:I,shadowOptions:H},P)),B=(e,t)=>l.css`
165
165
  ${(0,s.avatarStyles)(e,t)}
166
- `,G=(e,t)=>(0,n.avatarTemplate)(e,t),z=l.html`
166
+ `,G=(e,t)=>(0,n.avatarTemplate)(e,t),V=l.html`
167
167
  ${(0,l.when)((e=>e.imgSrc),l.html`
168
168
  <img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
169
169
  `)}
170
- `;class V extends s.Avatar{}const U={delegatesFocus:!0,mode:"open"},Y={media:z},W=V.compose(Object.assign({baseName:"avatar",template:G,styles:j,shadowOptions:U},Y)),q=(e,t)=>l.css`
170
+ `;class z extends s.Avatar{}const U={delegatesFocus:!0,mode:"open"},Y={media:V},W=z.compose(Object.assign({baseName:"avatar",template:G,styles:B,shadowOptions:U},Y)),q=(e,t)=>l.css`
171
171
  ${(0,s.badgeStyles)(e,t)}
172
- `,X=(e,t)=>(0,n.badgeTemplate)(e,t);class K extends s.Badge{}const Z=void 0,Q={},J=K.compose(Object.assign({baseName:"badge",template:X,styles:q,shadowOptions:Z},Q));var ee=o(20755);const te=(0,ee.createLogger)("foundation-ui"),oe=l.css`
172
+ `,X=(e,t)=>(0,n.badgeTemplate)(e,t);class K extends s.Badge{}const Z=void 0,Q={},J=K.compose(Object.assign({baseName:"badge",template:X,styles:q,shadowOptions:Z},Q));var ee=o(56446);const te=(0,ee.createLogger)("foundation-ui"),oe=l.css`
173
173
  @keyframes delete-animate {
174
174
  from {
175
175
  height: 100px;
@@ -277,7 +277,7 @@
277
277
  ${(0,s.breadcrumbItemStyles)(e,t)}
278
278
  `,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const we=void 0,xe={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:we},xe)),Fe=(e,t)=>l.css`
279
279
  ${(0,s.buttonStyles)(e,t)}
280
- `,Se=(e,t)=>(0,n.buttonTemplate)(e,t);class De extends s.Button{}const Ce={delegatesFocus:!0,mode:"open"},_e={},Oe=De.compose(Object.assign({baseName:"button",template:Se,styles:Fe,shadowOptions:Ce},_e)),ke=()=>l.css`
280
+ `,Se=(e,t)=>(0,n.buttonTemplate)(e,t);class De extends s.Button{}const _e={delegatesFocus:!0,mode:"open"},Ce={},Oe=De.compose(Object.assign({baseName:"button",template:Se,styles:Fe,shadowOptions:_e},Ce)),ke=()=>l.css`
281
281
  ${s.CalendarStyles}
282
282
  `,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ae={delegatesFocus:!0,mode:"open"},Re={},Ee=Le.compose(Object.assign({baseName:"calendar",template:Te,styles:ke,shadowOptions:Ae},Re)),Ne=(e,t)=>l.css`
283
283
  ${(0,s.cardStyles)(e,t)}
@@ -285,9 +285,9 @@
285
285
  background-color: var(--fui-card-fill-color);
286
286
  color: var(--fui-card-foreground-color);
287
287
  }
288
- `,Me=(e,t)=>(0,n.cardTemplate)(e,t);class Ie extends s.Card{}const Pe=void 0,He={},Be=Ie.compose(Object.assign({baseName:"card",template:Me,styles:Ne,shadowOptions:Pe},He)),je=(e,t)=>l.css`
288
+ `,Ie=(e,t)=>(0,n.cardTemplate)(e,t);class Me extends s.Card{}const He=void 0,Pe={},je=Me.compose(Object.assign({baseName:"card",template:Ie,styles:Ne,shadowOptions:He},Pe)),Be=(e,t)=>l.css`
289
289
  ${(0,s.checkboxStyles)(e,t)}
290
- `,Ge=(e,t)=>(0,n.checkboxTemplate)(e,t);class ze extends s.Checkbox{}const Ve=void 0,Ue={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 '},Ye=ze.compose(Object.assign({baseName:"checkbox",template:Ge,styles:je,shadowOptions:Ve},Ue)),We=(e,t)=>l.css`
290
+ `,Ge=(e,t)=>(0,n.checkboxTemplate)(e,t);class Ve extends s.Checkbox{}const ze=void 0,Ue={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 '},Ye=Ve.compose(Object.assign({baseName:"checkbox",template:Ge,styles:Be,shadowOptions:ze},Ue));var We=o(82940),qe=o(40001),Xe=o.n(qe),Ke=o(32449),Ze=o(9162),Qe=o(5127),Je=o(89074),et=o(6852),tt=o(26714);class ot extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=We.WJ.MAX_ROWS_250,this.maxView=We.WJ.MAX_VIEW_1000,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 tt.X(new Map)}criteriaChanged(e,t){const o=e!==(0,Ke.p)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,w.__awaiter)(this,void 0,void 0,(function*(){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 te.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===Ze.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Qe.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else te.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,w.__awaiter)(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 te.error("received invalid RequestServerResult",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,a;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===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Ke.p)(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)}}(0,w.__decorate)([Je.lj],ot.prototype,"connect",void 0),(0,w.__decorate)([et.Yh],ot.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],ot.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],ot.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],ot.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],ot.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],ot.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ot.prototype,"withTimestampFormatting",void 0);const it=(0,ee.createLogger)("foundation-criteria");var at;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(at||(at={}));class nt{constructor(e){this.$$operator=e}static And(){return new nt(at.AND)}static Or(){return new nt(at.OR)}static Not(){return new nt(at.NOT)}static GreaterThan(){return new nt(at.GT)}static GreaterThanOrEqual(){return new nt(at.GE)}static LessThan(){return new nt(at.LT)}static LessThanOrEqual(){return new nt(at.LE)}static NotEqual(){return new nt(at.NE)}static Equal(){return new nt(at.EQ)}get operator(){return this.$$operator}}const st="default";class lt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,nt.And()),this.Or=(e,t={})=>this.withExpression(e,t,nt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,nt.Not())}withExpression(e,t={},o=nt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=st)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof nt;return t&&it.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,st)}}else s(e,st);else s(e,"string"==typeof e?st:e.group);var l;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 nt){if(o[t-1]instanceof nt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof nt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const rt=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},dt=e=>t=>`${t.field} ${e} ${rt(t)}`,ct=e=>dt(at.EQ)(e),ut=e=>`Expr.containsIgnoreCase(${e.field}, ${rt(e)})`;class pt{constructor(e){this.serialiser=ct,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 ht(e,t){var o;const i=new lt;i.withExpression((new pt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(ut).build()),e.criteria=i.build()}function mt(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var vt;let gt=vt=class extends ot{constructor(){super(...arguments),this.initalSelectedValueInitialized=!1,this.optionElement="fast-option",this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof xt&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||te.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===We._g.DATASERVER&&ht(this,this.initialSelectedValue),e===We._g.REQUEST_SERVER&&mt(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof vt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));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.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],gt.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],gt.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],gt.prototype,"labelFormatter",void 0),(0,w.__decorate)([l.observable],gt.prototype,"initialSelectedValue",void 0),gt=vt=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],gt);const ft=(e,t)=>l.css`
291
291
  .combo-box-indicator {
292
292
  transition-property: transform;
293
293
  transition-duration: 0.2s;
@@ -299,7 +299,60 @@
299
299
  }
300
300
 
301
301
  ${(0,s.comboboxStyles)(e,t)}
302
- `,qe=(e,t)=>(0,n.comboboxTemplate)(e,t);var Xe,Ke;class Ze extends s.Combobox{constructor(){super(...arguments),Xe.set(this,void 0),Ke.set(this,!1),this.caseSensitive=!1,this.ignoreInputClick=!1}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,l=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=s!==l?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),l.Observable.notify(this,"value"))}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),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(ie(e,this))this.open=!1;else{if(ae(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!ae(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.__classPrivateFieldSet)(this,Ke,this.open,"f"),!this.open)return!0;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){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":return!(0,w.__classPrivateFieldGet)(this,Ke,"f");case"ArrowLeft":case"ArrowRight":case"Home":case"End":return;case"Backspace":case"Delete":const t=super.keyupHandler(e);return this.selectItemByValue(this.control.value),t}return super.keyupHandler(e)}get indicator(){return(0,w.__classPrivateFieldGet)(this,Xe,"f")||(0,w.__classPrivateFieldSet)(this,Xe,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.__classPrivateFieldGet)(this,Xe,"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))}}Xe=new WeakMap,Ke=new WeakMap,(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],Ze.prototype,"caseSensitive",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],Ze.prototype,"ignoreInputClick",void 0);const Qe={delegatesFocus:!0,mode:"open"},Je={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 '},et=Ze.compose(Object.assign({baseName:"combobox",template:qe,styles:We,shadowOptions:Qe},Je));var tt=o(89074),ot=o(75527);const it=(e,t)=>l.css`
302
+ `,bt=(e,t)=>l.html`
303
+ <template
304
+ aria-disabled="${e=>e.ariaDisabled}"
305
+ autocomplete="${e=>e.autocomplete}"
306
+ class="${e=>e.open?"open":""} ${e=>e.disabled?"disabled":""} ${e=>e.position}"
307
+ ?open="${e=>e.open}"
308
+ tabindex="${e=>e.disabled?null:"0"}"
309
+ @click="${(e,t)=>e.clickHandler(t.event)}"
310
+ @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
311
+ @keydown="${(e,t)=>e.keydownHandler(t.event)}"
312
+ >
313
+ <div class="control" part="control">
314
+ ${(0,n.startSlotTemplate)(e,t)}
315
+ <slot name="control">
316
+ <input
317
+ aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}"
318
+ aria-autocomplete="${e=>e.ariaAutoComplete}"
319
+ aria-controls="${e=>e.ariaControls}"
320
+ aria-disabled="${e=>e.ariaDisabled}"
321
+ aria-expanded="${e=>e.ariaExpanded}"
322
+ aria-haspopup="listbox"
323
+ class="selected-value"
324
+ part="selected-value"
325
+ placeholder="${e=>e.placeholder}"
326
+ role="combobox"
327
+ type="text"
328
+ ?disabled="${e=>e.disabled}"
329
+ :value="${e=>e.value}"
330
+ @input="${(e,t)=>e.inputHandler(t.event)}"
331
+ @keyup="${(e,t)=>e.keyupHandler(t.event)}"
332
+ ${(0,l.ref)("control")}
333
+ />
334
+ <div class="indicator" part="indicator" aria-hidden="true">
335
+ <slot name="indicator">${t.indicator||""}</slot>
336
+ </div>
337
+ </slot>
338
+ ${(0,n.endSlotTemplate)(e,t)}
339
+ </div>
340
+ <div
341
+ class="listbox"
342
+ id="${e=>e.listboxId}"
343
+ part="listbox"
344
+ role="listbox"
345
+ ?disabled="${e=>e.disabled}"
346
+ ?hidden="${e=>!e.open}"
347
+ ${(0,l.ref)("listbox")}
348
+ >
349
+ <slot
350
+ ${(0,l.ref)("slottedDatasource")}
351
+ ${(0,l.slotted)({filter:n.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
352
+ ></slot>
353
+ </div>
354
+ </template>
355
+ `;var yt,wt;class xt extends s.Combobox{constructor(){super(...arguments),yt.set(this,void 0),wt.set(this,!1),this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1}debounceChanged(e,t){this.debouncedInputHandler=Xe()(this.asyncSetFilter,t)}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,l=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=s!==l?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),l.Observable.notify(this,"value"))}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),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(ie(e,this))this.open=!1;else{if(ae(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!ae(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.__classPrivateFieldSet)(this,wt,this.open,"f"),!this.open)return!0;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){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":return!(0,w.__classPrivateFieldGet)(this,wt,"f");case"ArrowLeft":case"ArrowRight":case"Home":case"End":return;case"Backspace":case"Delete":const t=super.keyupHandler(e);return this.selectItemByValue(this.control.value),t}return super.keyupHandler(e)}get indicator(){return(0,w.__classPrivateFieldGet)(this,yt,"f")||(0,w.__classPrivateFieldSet)(this,yt,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.__classPrivateFieldGet)(this,yt,"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 gt));if(e.length>0){const t=e[0].datasource.resourceType;t===We._g.DATASERVER&&ht(e[0],this.control.value),t===We._g.REQUEST_SERVER&&mt(e[0],this.control.value)}else te.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}}yt=new WeakMap,wt=new WeakMap,(0,w.__decorate)([l.observable],xt.prototype,"slottedDatasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xt.prototype,"async",void 0),(0,w.__decorate)([l.attr],xt.prototype,"debounce",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],xt.prototype,"caseSensitive",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],xt.prototype,"ignoreInputClick",void 0);const $t={delegatesFocus:!0,mode:"open"},Ft={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 '},St=xt.compose(Object.assign({baseName:"combobox",template:bt,styles:ft,shadowOptions:$t},Ft));var Dt=o(75527);const _t=(e,t)=>l.css`
303
356
  :host {
304
357
  --light-size: 12px;
305
358
  --height: calc(var(--design-unit) * 2px + var(--light-size));
@@ -350,18 +403,18 @@
350
403
  text-overflow: ellipsis;
351
404
  white-space: nowrap;
352
405
  }
353
- `,at=l.html`
406
+ `,Ct=l.html`
354
407
  <div class=${e=>(0,x.A)(["light",!0],[e.colour,!0])}></div>
355
408
  ${(0,l.when)((e=>e.showLabel),l.html`
356
409
  <div class="label">${e=>e.label}</div>
357
410
  `)}
358
- `;class nt extends n.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.__decorate)([tt.lj],nt.prototype,"connect",void 0),(0,w.__decorate)([ot.z],nt.prototype,"session",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],nt.prototype,"showLabel",void 0),(0,w.__decorate)([l.observable],nt.prototype,"label",void 0),(0,w.__decorate)([l.observable],nt.prototype,"colour",void 0);const st=nt.compose({baseName:"connection-indicator",template:at,styles:it}),lt=(e,t)=>l.css`
411
+ `;class Ot extends n.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.__decorate)([Je.lj],Ot.prototype,"connect",void 0),(0,w.__decorate)([Dt.z],Ot.prototype,"session",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],Ot.prototype,"showLabel",void 0),(0,w.__decorate)([l.observable],Ot.prototype,"label",void 0),(0,w.__decorate)([l.observable],Ot.prototype,"colour",void 0);const kt=Ot.compose({baseName:"connection-indicator",template:Ct,styles:_t}),Tt=(e,t)=>l.css`
359
412
  ${(0,s.dataGridStyles)(e,t)}
360
- `,rt=(e,t)=>(0,n.dataGridTemplate)(e,t);class dt extends s.DataGrid{}const ct=void 0,ut={},pt=dt.compose(Object.assign({baseName:"data-grid",template:rt,styles:lt,shadowOptions:ct},ut)),ht=(e,t)=>l.css`
413
+ `,Lt=(e,t)=>(0,n.dataGridTemplate)(e,t);class At extends s.DataGrid{}const Rt=void 0,Et={},Nt=At.compose(Object.assign({baseName:"data-grid",template:Lt,styles:Tt,shadowOptions:Rt},Et)),It=(e,t)=>l.css`
361
414
  ${(0,s.dataGridCellStyles)(e,t)}
362
- `;class mt extends s.DataGridCell{}const vt=void 0,gt={},ft=mt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:ht,shadowOptions:vt},gt)),bt=(e,t)=>l.css`
415
+ `;class Mt extends s.DataGridCell{}const Ht=void 0,Pt={},jt=Mt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:It,shadowOptions:Ht},Pt)),Bt=(e,t)=>l.css`
363
416
  ${(0,s.dataGridRowStyles)(e,t)}
364
- `;class yt extends s.DataGridRow{}const wt=void 0,xt={},$t=yt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:bt,shadowOptions:wt},xt));var Ft=o(87530),St=o.n(Ft),Dt=o(55466),Ct=o.n(Dt),_t=o(82839),Ot=o.n(_t),kt=o(55477),Tt=o.n(kt),Lt=o(78113),At=o.n(Lt);class Rt{constructor(e=null,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()}}St().extend(At());class Et{constructor(e=null,t="default"){const o=new Rt(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+=St()(o.date).isLeapYear()?1:0)}getDay(e){return new Rt(new Date(this.year,this.number-1,e),this.lang)}}St().extend(At());class Nt{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new Rt(null,o),this.year=null!=e?e:this.today.year,this.month=new Et(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 Et(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Et(new Date(this.year-1,11),this.lang):new Et(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Et(new Date(this.year+1,0),this.lang):new Et(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Et(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Et(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Et(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Et(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Et(new Date(this.year,this.month.number-1-1),this.lang)}}const Mt=l.css`
417
+ `;class Gt extends s.DataGridRow{}const Vt=void 0,zt={},Ut=Gt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Bt,shadowOptions:Vt},zt));var Yt=o(87530),Wt=o.n(Yt),qt=o(55466),Xt=o.n(qt),Kt=o(82839),Zt=o.n(Kt),Qt=o(55477),Jt=o.n(Qt),eo=o(78113),to=o.n(eo);class oo{constructor(e=null,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()}}Wt().extend(to());class io{constructor(e=null,t="default"){const o=new oo(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+=Wt()(o.date).isLeapYear()?1:0)}getDay(e){return new oo(new Date(this.year,this.number-1,e),this.lang)}}Wt().extend(to());class ao{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new oo(null,o),this.year=null!=e?e:this.today.year,this.month=new io(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 io(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new io(new Date(this.year-1,11),this.lang):new io(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new io(new Date(this.year+1,0),this.lang):new io(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new io(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new io(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new io(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new io(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new io(new Date(this.year,this.month.number-1-1),this.lang)}}const no=l.css`
365
418
  :host {
366
419
  position: relative;
367
420
  }
@@ -496,7 +549,7 @@
496
549
  background: var(--neutral-stroke-hover);
497
550
  color: (--neutral-foreground-rest);
498
551
  }
499
- `,It=e=>l.html`
552
+ `,so=e=>l.html`
500
553
  <${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,l.ref)("toggleButton")}>
501
554
  <div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
502
555
  </${e}-text-field>
@@ -530,44 +583,44 @@
530
583
  `)}
531
584
  </div>
532
585
  </div>
533
- `,Pt=l.html`
534
- ${e=>It(ne(e))}
535
- `,Ht=void 0,Bt={};class jt extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=St()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=St()().localeData().longDateFormat("L");this.currentDate=new Rt(St()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=St()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}constructor(){super(),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",St().extend(Ct()),St().extend(Tt()),St().extend(Ot()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?St()(e,"MM-DD-YYYY"):St()();this.currentDate=new Rt(t.toDate(),this.lang),this.calendar=new Nt(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=St()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=St()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),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.A)(["visible",this.visible],this.position)}isSelectedDate(e){return St()(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){St()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=St()(this.currentDate.Date).format(this.format),this.value=St()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,w.__decorate)([l.attr],jt.prototype,"format",void 0),(0,w.__decorate)([l.attr],jt.prototype,"lang",void 0),(0,w.__decorate)([l.attr],jt.prototype,"visible",void 0),(0,w.__decorate)([l.attr],jt.prototype,"position",void 0),(0,w.__decorate)([l.attr],jt.prototype,"value",void 0),(0,w.__decorate)([l.observable],jt.prototype,"currentDate",void 0),(0,w.__decorate)([l.observable],jt.prototype,"currentMonth",void 0),(0,w.__decorate)([l.observable],jt.prototype,"currentYear",void 0),(0,w.__decorate)([l.observable],jt.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([l.observable],jt.prototype,"formatDate",void 0),(0,w.__decorate)([l.observable],jt.prototype,"monthList",void 0);const Gt=jt.compose(Object.assign({baseName:"date-picker",styles:Mt,template:Pt,shadowOptions:Ht},Bt));var zt=o(82694);const Vt=s.SwatchRGB.create(1,1,1),Ut=s.SwatchRGB.create(0,0,0),Yt=(0,zt.parseColorHexRGB)("#585858"),Wt=s.SwatchRGB.create(Yt.r,Yt.g,Yt.b),qt=(0,zt.parseColorHexRGB)("#ffffff"),Xt=s.SwatchRGB.create(qt.r,qt.g,qt.b),Kt=s.PaletteRGB.from(Xt),Zt=(0,zt.parseColorHexRGB)("#eeeeee"),Qt=s.SwatchRGB.create(Zt.r,Zt.g,Zt.b),Jt=s.PaletteRGB.from(Qt),eo=(0,zt.parseColorHexRGB)("#08c3a5"),to=s.SwatchRGB.create(eo.r,eo.g,eo.b),oo=s.PaletteRGB.from(to),{create:io}=n.DesignToken,ao=io("fui-fill-color").withDefault(Wt),no=io({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Xt),so=14;function lo(e,t){return e.colorContrast(t,so)}const ro=io({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>lo(io("fui-card-palette").withDefault(Kt).getValueFor(e),no.getValueFor(e))));var co=o(47823);const uo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const a=`${o}Value`;t[a]&&i(e[o],t[a])}))};function po(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const ho={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,zt.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},mo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,zt.parseColorHexRGB)(e))),vo=["baseClass","baseName","shadowOptions","styles","template"],go=(e,t=vo)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),fo=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:go(t)}},bo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},yo=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,mo(o.color.accent.$value)),s.neutralPalette.setValueFor(e,mo(o.color.neutral.$value)),s.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),s.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),s.density.setValueFor(e,o.style.density.$value),s.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),s.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),s.designUnit.setValueFor(e,o.space.designUnit.$value),s.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),s.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=s.typeRampBaseFontSize.getValueFor(e),a=s.typeRampBaseLineHeight.getValueFor(e);s.typeRampMinus1FontSize.setValueFor(e,bo(i,co.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,bo(a,co.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,bo(i,co.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,bo(a,co.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,bo(i,co.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,bo(a,co.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,bo(i,co.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,bo(a,co.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,bo(i,co.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,bo(a,co.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,bo(i,co.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,bo(a,co.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,bo(i,co.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,bo(a,co.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,bo(i,co.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,bo(a,co.Yd.plusSix))},wo=mo("#08c3a5"),xo=mo("#eeeeee"),$o=s.StandardLuminance.DarkMode;const Fo=o(5598).N.ltr,So=4,Do=4;var Co=o(67973);const _o=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Oo=l.css`
586
+ `,lo=l.html`
587
+ ${e=>so(ne(e))}
588
+ `,ro=void 0,co={};class uo extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Wt()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=Wt()().localeData().longDateFormat("L");this.currentDate=new oo(Wt()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}constructor(){super(),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",Wt().extend(Xt()),Wt().extend(Jt()),Wt().extend(Zt()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?Wt()(e,"MM-DD-YYYY"):Wt()();this.currentDate=new oo(t.toDate(),this.lang),this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=Wt()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),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.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Wt()(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){Wt()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.value=Wt()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,w.__decorate)([l.attr],uo.prototype,"format",void 0),(0,w.__decorate)([l.attr],uo.prototype,"lang",void 0),(0,w.__decorate)([l.attr],uo.prototype,"visible",void 0),(0,w.__decorate)([l.attr],uo.prototype,"position",void 0),(0,w.__decorate)([l.attr],uo.prototype,"value",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentMonth",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentYear",void 0),(0,w.__decorate)([l.observable],uo.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([l.observable],uo.prototype,"formatDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"monthList",void 0);const po=uo.compose(Object.assign({baseName:"date-picker",styles:no,template:lo,shadowOptions:ro},co));var ho=o(82694);const mo=s.SwatchRGB.create(1,1,1),vo=s.SwatchRGB.create(0,0,0),go=(0,ho.parseColorHexRGB)("#585858"),fo=s.SwatchRGB.create(go.r,go.g,go.b),bo=(0,ho.parseColorHexRGB)("#ffffff"),yo=s.SwatchRGB.create(bo.r,bo.g,bo.b),wo=s.PaletteRGB.from(yo),xo=(0,ho.parseColorHexRGB)("#eeeeee"),$o=s.SwatchRGB.create(xo.r,xo.g,xo.b),Fo=s.PaletteRGB.from($o),So=(0,ho.parseColorHexRGB)("#08c3a5"),Do=s.SwatchRGB.create(So.r,So.g,So.b),_o=s.PaletteRGB.from(Do),{create:Co}=n.DesignToken,Oo=Co("fui-fill-color").withDefault(fo),ko=Co({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(yo),To=14;function Lo(e,t){return e.colorContrast(t,To)}const Ao=Co({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Lo(Co("fui-card-palette").withDefault(wo).getValueFor(e),ko.getValueFor(e))));var Ro=o(47823);const Eo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const a=`${o}Value`;t[a]&&i(e[o],t[a])}))};function No(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Io={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,ho.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Mo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,ho.parseColorHexRGB)(e))),Ho=["baseClass","baseName","shadowOptions","styles","template"],Po=(e,t=Ho)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),jo=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Po(t)}},Bo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},Go=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,Mo(o.color.accent.$value)),s.neutralPalette.setValueFor(e,Mo(o.color.neutral.$value)),s.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),s.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),s.density.setValueFor(e,o.style.density.$value),s.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),s.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),s.designUnit.setValueFor(e,o.space.designUnit.$value),s.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),s.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=s.typeRampBaseFontSize.getValueFor(e),a=s.typeRampBaseLineHeight.getValueFor(e);s.typeRampMinus1FontSize.setValueFor(e,Bo(i,Ro.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,Bo(a,Ro.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,Bo(i,Ro.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,Bo(a,Ro.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,Bo(i,Ro.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,Bo(i,Ro.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,Bo(i,Ro.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,Bo(i,Ro.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,Bo(i,Ro.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,Bo(i,Ro.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,Bo(a,Ro.Yd.plusSix))},Vo=Mo("#08c3a5"),zo=Mo("#eeeeee"),Uo=s.StandardLuminance.DarkMode;const Yo=o(5598).N.ltr,Wo=4,qo=4;var Xo=o(67973);const Ko=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Zo=l.css`
536
589
  ${(0,n.display)("flex")}
537
590
  :host {
538
591
  flex: 1;
539
592
  }
540
- `,ko=l.css`
593
+ `,Qo=l.css`
541
594
  :host {
542
- background-color: ${ao};
595
+ background-color: ${Oo};
543
596
  }
544
597
  `.withBehaviors((0,n.forcedColorsStylesheetBehavior)(l.css`
545
598
  :host {
546
- background-color: ${Co.H.ButtonFace};
547
- box-shadow: 0 0 0 1px ${Co.H.CanvasText};
548
- color: ${Co.H.ButtonText};
599
+ background-color: ${Xo.H.ButtonFace};
600
+ box-shadow: 0 0 0 1px ${Xo.H.CanvasText};
601
+ color: ${Xo.H.ButtonText};
549
602
  }
550
- `)),To=(e,t)=>l.css`
603
+ `)),Jo=(e,t)=>l.css`
551
604
  ${e.name} ${"h"+t} {
552
605
  margin: 0;
553
606
  }
554
- `;class Lo extends s.DesignSystemProvider{constructor(){super(),uo(i,a,this)}}(0,w.__decorate)([(0,l.attr)({attribute:"card-fill-color",converter:ho}),po(no)],Lo.prototype,"cardFillColor",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"card-foreground-color",converter:ho}),po(ro)],Lo.prototype,"cardForegroundColor",void 0);const Ao=Lo.compose({baseName:"design-system-provider",template:l.html`
607
+ `;class ei extends s.DesignSystemProvider{constructor(){super(),Eo(i,a,this)}}(0,w.__decorate)([(0,l.attr)({attribute:"card-fill-color",converter:Io}),No(ko)],ei.prototype,"cardFillColor",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"card-foreground-color",converter:Io}),No(Ao)],ei.prototype,"cardForegroundColor",void 0);const ti=ei.compose({baseName:"design-system-provider",template:l.html`
555
608
  <slot></slot>
556
609
  `,styles:e=>{const t=(e=>l.css`
557
- ${To(e,"1")}
558
- ${To(e,"2")}
559
- ${To(e,"3")}
560
- ${To(e,"4")}
561
- ${To(e,"5")}
562
- ${To(e,"6")}
610
+ ${Jo(e,"1")}
611
+ ${Jo(e,"2")}
612
+ ${Jo(e,"3")}
613
+ ${Jo(e,"4")}
614
+ ${Jo(e,"5")}
615
+ ${Jo(e,"6")}
563
616
  `)(e);return t.addStylesTo(document),l.css`
564
- ${Oo}
565
- ${ko}
617
+ ${Zo}
618
+ ${Qo}
566
619
  ${t}
567
620
  :host * {
568
- ${_o()}
621
+ ${Ko()}
569
622
  }
570
- `}});var Ro=o(15098);const Eo=l.css`
623
+ `}});var oi=o(15098);const ii=l.css`
571
624
  :host {
572
625
  --dialog-min-width: 358px;
573
626
  --notification-details-min-height: 40px;
@@ -621,7 +674,7 @@
621
674
  overflow: hidden;
622
675
  min-height: var(--notification-details-min-height);
623
676
  }
624
- `,No=(e="start")=>`\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="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,Mo=e=>l.html`
677
+ `,ai=(e="start")=>`\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="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,ni=e=>l.html`
625
678
  <dialog ${(0,l.ref)("mainElement")} part="dialog">
626
679
  <div class="content-wrapper">
627
680
  <div part="top" class="top">
@@ -629,7 +682,7 @@
629
682
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.notification)||void 0===t?void 0:t.title}}</h2>
630
683
  </slot>
631
684
  ${(0,l.when)((e=>e.showCloseIcon),l.html`
632
- <div class="close-icon" @click=${e=>e.close()}>${No()}</div>
685
+ <div class="close-icon" @click=${e=>e.close()}>${ai()}</div>
633
686
  `)}
634
687
  </div>
635
688
  <slot>
@@ -658,13 +711,13 @@
658
711
  </div>
659
712
  </div>
660
713
  </dialog>
661
- `,Io=l.html`
662
- ${e=>Mo(ne(e))}
663
- `,Po={mode:"open",delegatesFocus:!0},Ho={};class Bo extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Ro.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}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){te.error(e)}}}(0,w.__decorate)([l.observable],Bo.prototype,"notification",void 0),(0,w.__decorate)([l.attr],Bo.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],Bo.prototype,"showCloseIcon",void 0),(0,w.__decorate)([l.observable],Bo.prototype,"onShowCallback",void 0),(0,w.__decorate)([l.observable],Bo.prototype,"onCloseCallback",void 0),(0,w.__decorate)([l.volatile],Bo.prototype,"open",null);class jo extends Bo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Go=jo.compose(Object.assign({baseName:"dialog",styles:Eo,template:Io,shadowOptions:Po},Ho)),zo=(e,t)=>l.css`
714
+ `,si=l.html`
715
+ ${e=>ni(ne(e))}
716
+ `,li={mode:"open",delegatesFocus:!0},ri={};class di extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||oi.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}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){te.error(e)}}}(0,w.__decorate)([l.observable],di.prototype,"notification",void 0),(0,w.__decorate)([l.attr],di.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],di.prototype,"showCloseIcon",void 0),(0,w.__decorate)([l.observable],di.prototype,"onShowCallback",void 0),(0,w.__decorate)([l.observable],di.prototype,"onCloseCallback",void 0),(0,w.__decorate)([l.volatile],di.prototype,"open",null);class ci extends di{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const ui=ci.compose(Object.assign({baseName:"dialog",styles:ii,template:si,shadowOptions:li},ri)),pi=(e,t)=>l.css`
664
717
  ${(0,s.disclosureStyles)(e,t)}
665
- `,Vo=(e,t)=>(0,n.disclosureTemplate)(e,t);class Uo extends n.Disclosure{}const Yo=void 0,Wo={},qo=Uo.compose(Object.assign({baseName:"disclosure",template:Vo,styles:zo,shadowOptions:Yo},Wo)),Xo=(e,t)=>l.css`
718
+ `,hi=(e,t)=>(0,n.disclosureTemplate)(e,t);class mi extends n.Disclosure{}const vi=void 0,gi={},fi=mi.compose(Object.assign({baseName:"disclosure",template:hi,styles:pi,shadowOptions:vi},gi)),bi=(e,t)=>l.css`
666
719
  ${(0,s.dividerStyles)(e,t)}
667
- `,Ko=(e,t)=>(0,n.dividerTemplate)(e,t);class Zo extends n.Divider{}const Qo=void 0,Jo={},ei=Zo.compose(Object.assign({baseName:"divider",template:Ko,styles:Xo,shadowOptions:Qo},Jo)),ti=(e,t,o)=>l.css`
720
+ `,yi=(e,t)=>(0,n.dividerTemplate)(e,t);class wi extends n.Divider{}const xi=void 0,$i={},Fi=wi.compose(Object.assign({baseName:"divider",template:yi,styles:bi,shadowOptions:xi},$i)),Si=(e,t,o)=>l.css`
668
721
  :host {
669
722
  --dropdown-opener-height-multiplier: 0.7px;
670
723
  --menu-item-height-multiplier: 0.7px;
@@ -727,9 +780,9 @@
727
780
  var(--menu-item-height-multiplier)
728
781
  );
729
782
  }
730
- `,oi=(e,t)=>l.css`
731
- ${ti("foundation",e,t)}
732
- `,ii=(e,t)=>l.html`
783
+ `,Di=(e,t)=>l.css`
784
+ ${Si("foundation",e,t)}
785
+ `,_i=(e,t)=>l.html`
733
786
  ${(0,l.repeat)((()=>e),l.html`
734
787
  ${(0,l.when)((e=>e.isDisabled&&e.isDisabled()),l.html`
735
788
  <${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
@@ -750,12 +803,12 @@
750
803
  `)}
751
804
  ${e=>e.name}
752
805
  ${(0,l.when)((e=>e.submenu),l.html`
753
- <${t}-menu>${e=>ii(e.submenu,t)}</${t}-menu>
806
+ <${t}-menu>${e=>_i(e.submenu,t)}</${t}-menu>
754
807
  `)}
755
808
  </${t}-menu-item>
756
809
  `)}
757
810
  `)}
758
- `,ai=e=>l.html`
811
+ `,Ci=e=>l.html`
759
812
  <div class="actions-container" part="actions-container">
760
813
  <${e}-button
761
814
  id="actiosnMenuTrigger"
@@ -772,12 +825,12 @@
772
825
  class="actions-menu ${e=>e.classNames}"
773
826
  part="actions-menu"
774
827
  >
775
- ${t=>ii(t.allItems,e)}
828
+ ${t=>_i(t.allItems,e)}
776
829
  </${e}-menu>
777
830
  </div>
778
- `,ni=l.html`
779
- ${e=>ai(ne(e))}
780
- `;class si extends n.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){ie(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["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.__decorate)([l.observable],si.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],si.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],si.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],si.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],si.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],si.prototype,"open",void 0),(0,w.__decorate)([l.attr],si.prototype,"buttonAppearance",void 0);const li=si.compose({baseName:"dropdown-menu",styles:oi,template:ni}),ri=e=>l.html`
831
+ `,Oi=l.html`
832
+ ${e=>Ci(ne(e))}
833
+ `;class ki extends n.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){ie(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["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.__decorate)([l.observable],ki.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],ki.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],ki.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],ki.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],ki.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],ki.prototype,"open",void 0),(0,w.__decorate)([l.attr],ki.prototype,"buttonAppearance",void 0);const Ti=ki.compose({baseName:"dropdown-menu",styles:Di,template:Oi}),Li=e=>l.html`
781
834
  <${e}-banner ${(0,l.ref)("banner")}>
782
835
  <div slot="content">
783
836
  <div>
@@ -798,13 +851,13 @@
798
851
  </${e}-button>
799
852
  `)}
800
853
  </${e}-banner>
801
- `,di=l.html`
802
- ${e=>ri(ne(e))}
803
- `,ci={mode:"open",delegatesFocus:!0};class ui extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){te.error(e)}}))}}(0,w.__decorate)([l.observable],ui.prototype,"error",void 0),(0,w.__decorate)([l.observable],ui.prototype,"notification",void 0);const pi=ui.compose({baseName:"error-banner",template:di,shadowOptions:ci});var hi,mi=o(6852);!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(hi||(hi={}));const vi=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"}`},gi=(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},fi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},bi=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=gi("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!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.notification)||void 0===r?void 0:r.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(w),g.appendChild(f)},yi=(0,ee.createLogger)("foundation-error"),wi={alert:e=>{alert(vi(e))},notification:bi,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);gi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);gi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-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 fi()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},xi=(e,t,o)=>{var i,a;yi.log({message:vi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ee.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{wi[i]&&wi[i](e,t,o)}))};class $i{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 ee.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}}const Fi=()=>new $i;class Si{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 Di=l.html`
854
+ `,Ai=l.html`
855
+ ${e=>Li(ne(e))}
856
+ `,Ri={mode:"open",delegatesFocus:!0};class Ei extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){te.error(e)}}))}}(0,w.__decorate)([l.observable],Ei.prototype,"error",void 0),(0,w.__decorate)([l.observable],Ei.prototype,"notification",void 0);const Ni=Ei.compose({baseName:"error-banner",template:Ai,shadowOptions:Ri});var Ii;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ii||(Ii={}));const Mi=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"}`},Hi=(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},Pi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ji=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=Hi("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!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.notification)||void 0===r?void 0:r.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(w),g.appendChild(f)},Bi=(0,ee.createLogger)("foundation-error"),Gi={alert:e=>{alert(Mi(e))},notification:ji,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);Hi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Hi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-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 Pi()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},Vi=(e,t,o)=>{var i,a;Bi.log({message:Mi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ee.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Gi[i]&&Gi[i](e,t,o)}))};class zi{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 ee.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}}const Ui=()=>new zi;class Yi{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 Wi=l.html`
804
857
  <template ${(0,l.ref)("errorBoundary")}>
805
858
  <slot></slot>
806
859
  </template>
807
- `,Ci={mode:"open",delegatesFocus:!0};class _i extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ee.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(hi.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),xi(e.detail,this.tagName,this.errorBoundary)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||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;xi(Fi().withTitle(e).withErrorDetails(o).withNotification((new Si).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,w.__decorate)([l.observable],_i.prototype,"errorBoundary",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],_i.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],_i.prototype,"closeTimeout",void 0),(0,w.__decorate)([mi.Yh],_i.prototype,"datasource",void 0);const Oi=_i.compose({baseName:"error-boundary",template:Di,shadowOptions:Ci}),ki=l.css`
860
+ `,qi={mode:"open",delegatesFocus:!0};class Xi extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ee.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Ii.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),Vi(e.detail,this.tagName,this.errorBoundary)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||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;Vi(Ui().withTitle(e).withErrorDetails(o).withNotification((new Yi).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,w.__decorate)([l.observable],Xi.prototype,"errorBoundary",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Xi.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Xi.prototype,"closeTimeout",void 0),(0,w.__decorate)([et.Yh],Xi.prototype,"datasource",void 0);const Ki=Xi.compose({baseName:"error-boundary",template:Wi,shadowOptions:qi}),Zi=l.css`
808
861
  :host {
809
862
  --design-unit: 3;
810
863
  --dialog-max-width: 358px;
@@ -823,7 +876,7 @@
823
876
  overflow: hidden;
824
877
  min-height: var(--error-details-min-height);
825
878
  }
826
- `,Ti=e=>l.html`
879
+ `,Qi=e=>l.html`
827
880
  <${e}-dialog show-close-icon="false" ${(0,l.ref)("dialog")}>
828
881
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
829
882
  <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>
@@ -840,9 +893,9 @@
840
893
  </${e}-button>
841
894
  `)}
842
895
  </${e}-dialog>
843
- `,Li=l.html`
844
- ${e=>Ti(ne(e))}
845
- `,Ai={mode:"open",delegatesFocus:!0};class Ri extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,l;(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===(l=null===(s=null===(n=null===(a=this.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===l?void 0:l.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){te.error(e)}}}(0,w.__decorate)([l.observable],Ri.prototype,"error",void 0),(0,w.__decorate)([l.observable],Ri.prototype,"notification",void 0);const Ei=Ri.compose({baseName:"error-dialog",template:Li,styles:ki,shadowOptions:Ai});var Ni=o(22296);const Mi=(0,ee.createLogger)("foundation-criteria");var Ii;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Ii||(Ii={}));class Pi{constructor(e){this.$$operator=e}static And(){return new Pi(Ii.AND)}static Or(){return new Pi(Ii.OR)}static Not(){return new Pi(Ii.NOT)}static GreaterThan(){return new Pi(Ii.GT)}static GreaterThanOrEqual(){return new Pi(Ii.GE)}static LessThan(){return new Pi(Ii.LT)}static LessThanOrEqual(){return new Pi(Ii.LE)}static NotEqual(){return new Pi(Ii.NE)}static Equal(){return new Pi(Ii.EQ)}get operator(){return this.$$operator}}const Hi="default";class Bi{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Pi.And()),this.Or=(e,t={})=>this.withExpression(e,t,Pi.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Pi.Not())}withExpression(e,t={},o=Pi.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=Hi)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof Pi;return t&&Mi.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,Hi)}}else s(e,Hi);else s(e,"string"==typeof e?Hi:e.group);var l;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 Pi){if(o[t-1]instanceof Pi)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Pi?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const ji=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},Gi=e=>t=>`${t.field} ${e} ${ji(t)}`,zi=e=>Gi(Ii.EQ)(e),Vi=e=>`Expr.containsIgnoreCase(${e.field}, ${ji(e)})`;class Ui{constructor(e){this.serialiser=zi,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}}var Yi=o(21607);const Wi=l.css`
896
+ `,Ji=l.html`
897
+ ${e=>Qi(ne(e))}
898
+ `,ea={mode:"open",delegatesFocus:!0};class ta extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,l;(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===(l=null===(s=null===(n=null===(a=this.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===l?void 0:l.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){te.error(e)}}}(0,w.__decorate)([l.observable],ta.prototype,"error",void 0),(0,w.__decorate)([l.observable],ta.prototype,"notification",void 0);const oa=ta.compose({baseName:"error-dialog",template:Ji,styles:Zi,shadowOptions:ea});var ia=o(22296),aa=o(21607);const na=l.css`
846
899
  /* Host */
847
900
  :host {
848
901
  display: flex;
@@ -890,7 +943,7 @@
890
943
  fast-data-grid-row {
891
944
  align-items: center;
892
945
  }
893
- `,qi=e=>l.html`
946
+ `,sa=e=>l.html`
894
947
  <template>
895
948
  <div class="file-selection">
896
949
  <input type="file" multiple ${(0,l.ref)("fileInput")}
@@ -916,13 +969,13 @@
916
969
  </${e}-data-grid>
917
970
  </div>
918
971
  </template>
919
- `,Xi=l.html`
920
- ${e=>qi(ne(e))}
921
- `,Ki=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},Zi=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},Qi=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,w.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&bi(Fi().withTitle(null==o?void 0:o.MESSAGE_TYPE).withErrorDetails(null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR).withNotification({autoClose:!0,closeTimeout:5e3,type:"warning"}).build(),"zero"),te.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(),a&&bi(Fi().withTitle("Success").withErrorDetails("File downloaded successfully").withNotification({autoClose:!0,closeTimeout:5e3,type:"success"}).build(),"zero"),te.info("File downloaded successfully")}})).catch((e=>{te.error(e)}))},Ji=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],ea=["text/plain","text/csv"],ta=["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"],oa=l.html`
972
+ `,la=l.html`
973
+ ${e=>sa(ne(e))}
974
+ `,ra=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},da=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},ca=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,w.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&ji(Ui().withTitle(null==o?void 0:o.MESSAGE_TYPE).withErrorDetails(null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR).withNotification({autoClose:!0,closeTimeout:5e3,type:"warning"}).build(),"zero"),te.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(),a&&ji(Ui().withTitle("Success").withErrorDetails("File downloaded successfully").withNotification({autoClose:!0,closeTimeout:5e3,type:"success"}).build(),"zero"),te.info("File downloaded successfully")}})).catch((e=>{te.error(e)}))},ua=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],pa=["text/plain","text/csv"],ha=["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"],ma=l.html`
922
975
  ${(0,l.when)((e=>e.rowData),l.html`
923
- ${e=>"DATETIME"===e.columnDefinition.type?(0,Yi.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
976
+ ${e=>"DATETIME"===e.columnDefinition.type?(0,aa.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
924
977
  `)}
925
- `;class ia extends n.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,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,...Ji]:"office/*"===t?e=[...e,...ta]:"text/*"===t?e=[...e,...ea]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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 Bi).withExpression((new Ui).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:Ni.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,w.__awaiter)(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=>{Ni.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,w.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"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`
978
+ `;class va extends n.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,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,...ua]:"office/*"===t?e=[...e,...ha]:"text/*"===t?e=[...e,...pa]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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 lt).withExpression((new pt).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:ia.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,w.__awaiter)(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=>{ia.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,w.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"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`
926
979
  <template>
927
980
  <div class="download-button-container">
928
981
  <${e}-button
@@ -933,7 +986,7 @@
933
986
  </${e}-button>
934
987
  </div>
935
988
  </template>
936
- `}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:oa}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0&&this.acceptedFormats.length>0){for(const t of e){if(!(this.accept.split(",").includes(".msg")&&t.name&&t.name.endsWith("msg")||this.acceptedFormats.includes(t.type)))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{const e=Ki(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Zi(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return Ni.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);Ni.k.info(t),this.clearSelection()}catch(e){Ni.k.error(e)}}))}handleFileDownload(e){Qi(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],ia.prototype,"gridCriteria",void 0),(0,w.__decorate)([tt.lj],ia.prototype,"connect",void 0),(0,w.__decorate)([ot.z],ia.prototype,"session",void 0),(0,w.__decorate)([l.attr],ia.prototype,"label",void 0),(0,w.__decorate)([l.attr],ia.prototype,"accept",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"file-size-limit-bytes"})],ia.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],ia.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-event-name"})],ia.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"field-name"})],ia.prototype,"fieldName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"entity-id"})],ia.prototype,"entityId",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-key"})],ia.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"grid-fields"})],ia.prototype,"gridFields",void 0),(0,w.__decorate)([l.observable],ia.prototype,"fileName",void 0),(0,w.__decorate)([l.observable],ia.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([l.observable],ia.prototype,"filesGridColumnDefinitions",void 0);const aa=void 0,na={},sa=ia.compose(Object.assign({baseName:"file-upload",styles:Wi,template:Xi,shadowOptions:aa},na)),la=l.css`
989
+ `}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:ma}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0&&this.acceptedFormats.length>0){for(const t of e){if(!(this.accept.split(",").includes(".msg")&&t.name&&t.name.endsWith("msg")||this.acceptedFormats.includes(t.type)))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{const e=ra(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield da(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ia.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ia.k.info(t),this.clearSelection()}catch(e){ia.k.error(e)}}))}handleFileDownload(e){ca(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],va.prototype,"gridCriteria",void 0),(0,w.__decorate)([Je.lj],va.prototype,"connect",void 0),(0,w.__decorate)([Dt.z],va.prototype,"session",void 0),(0,w.__decorate)([l.attr],va.prototype,"label",void 0),(0,w.__decorate)([l.attr],va.prototype,"accept",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"file-size-limit-bytes"})],va.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],va.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-event-name"})],va.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"field-name"})],va.prototype,"fieldName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"entity-id"})],va.prototype,"entityId",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-key"})],va.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"grid-fields"})],va.prototype,"gridFields",void 0),(0,w.__decorate)([l.observable],va.prototype,"fileName",void 0),(0,w.__decorate)([l.observable],va.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([l.observable],va.prototype,"filesGridColumnDefinitions",void 0);const ga=void 0,fa={},ba=va.compose(Object.assign({baseName:"file-upload",styles:na,template:la,shadowOptions:ga},fa)),ya=l.css`
937
990
  .filter-wrapper {
938
991
  border: 1px solid gray;
939
992
  border-radius: calc(var(--design-unit) * 2px);
@@ -984,52 +1037,52 @@
984
1037
  .flex-row foundation-select {
985
1038
  flex: 1;
986
1039
  }
987
- `;var ra=o(18471);const da=l.html`
988
- <div class="close-icon" @click=${e=>e.clear()}>${No()}</div>
989
- `;function ca(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 ua=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],pa=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
1040
+ `;var wa=o(18471);const xa=l.html`
1041
+ <div class="close-icon" @click=${e=>e.clear()}>${ai()}</div>
1042
+ `;function $a(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 Fa=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Sa=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
990
1043
  <div class="flex-row">
991
1044
  <div>${e=>e.label}</div>
992
- ${da}
1045
+ ${xa}
993
1046
  </div>
994
1047
  <div class="flex-row">
995
1048
  <${e}-text-field
996
1049
  ${(0,l.ref)("numFilterFieldMin")}
997
1050
  type="number"
998
- :value=${(0,ra.Z)((e=>e.numFilterMin))}
1051
+ :value=${(0,wa.Z)((e=>e.numFilterMin))}
999
1052
  placeholder="min"
1000
1053
  ></${e}-text-field>
1001
1054
  <${e}-text-field
1002
1055
  ${(0,l.ref)("numFilterFieldMax")}
1003
1056
  type="number"
1004
- :value=${(0,ra.Z)((e=>e.numFilterMax))}
1057
+ :value=${(0,wa.Z)((e=>e.numFilterMax))}
1005
1058
  placeholder="max"
1006
1059
  ></${e}-text-field>
1007
1060
  </div>
1008
1061
  `)(t);case"date":return(e=>l.html`
1009
1062
  <div class="flex-row">
1010
1063
  <div>${e=>e.label}</div>
1011
- ${da}
1064
+ ${xa}
1012
1065
  </div>
1013
1066
  <div class="flex-row">
1014
1067
  <${e}-text-field
1015
1068
  ${(0,l.ref)("dateFilterFieldMin")}
1016
1069
  type="date"
1017
- :value=${(0,ra.Z)((e=>e.dateFilterMin))}
1070
+ :value=${(0,wa.Z)((e=>e.dateFilterMin))}
1018
1071
  ></${e}-text-field>
1019
1072
  <${e}-text-field
1020
1073
  ${(0,l.ref)("dateFilterFieldMax")}
1021
1074
  type="date"
1022
- :value=${(0,ra.Z)((e=>e.dateFilterMax))}
1075
+ :value=${(0,wa.Z)((e=>e.dateFilterMax))}
1023
1076
  ></${e}-text-field>
1024
1077
  </div>
1025
1078
  `)(t);case"boolean":return(e=>l.html`
1026
1079
  <div class="flex-row">
1027
1080
  <div>${e=>e.label}</div>
1028
- ${da}
1081
+ ${xa}
1029
1082
  </div>
1030
1083
  <div class="flex-row">
1031
- <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(ca(t))}}">
1032
- ${(0,l.repeat)((()=>ua),l.html`
1084
+ <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection($a(t))}}">
1085
+ ${(0,l.repeat)((()=>Fa),l.html`
1033
1086
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
1034
1087
  ${e=>e.name}
1035
1088
  </${e}-option>
@@ -1039,10 +1092,10 @@
1039
1092
  `)(t);case"enum":return(e=>l.html`
1040
1093
  <div class="flex-row">
1041
1094
  <div>${e=>e.label}</div>
1042
- ${da}
1095
+ ${xa}
1043
1096
  </div>
1044
1097
  <div class="flex-row">
1045
- <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(ca(t))}}">
1098
+ <${e}-select @change="${(e,t)=>e.onEnumFilterSelection($a(t))}}">
1046
1099
  ${(0,l.repeat)((e=>e.enumFilterOptions),l.html`
1047
1100
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
1048
1101
  ${e=>e.name}
@@ -1053,20 +1106,20 @@
1053
1106
  `)(t);default:return(e=>l.html`
1054
1107
  <div class="flex-row">
1055
1108
  <div>${e=>e.label}</div>
1056
- ${da}
1109
+ ${xa}
1057
1110
  </div>
1058
1111
  <div class="flex-row">
1059
1112
  <${e}-text-field
1060
1113
  ${(0,l.ref)("textFilterField")}
1061
1114
  type="text"
1062
- :value=${(0,ra.Z)((e=>e.textFilter))}
1115
+ :value=${(0,wa.Z)((e=>e.textFilter))}
1063
1116
  />
1064
1117
  </div>
1065
- `)(t)}},ha=e=>l.html`
1066
- <div class="filter-wrapper">${t=>pa(t,e)}</div>
1067
- `,ma=l.html`
1068
- ${e=>ha(ne(e))}</div>
1069
- `;var va;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(va||(va={}));class ga extends n.FoundationElement{constructor(){super(...arguments),this.type="text",this.textFilter="",this.enumFilterOptions=[{name:"All",value:"all",selected:!0}]}textFilterChanged(e,t){if(!(null==t?void 0:t.length))return void this.$emit(va.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(va.change,{fieldName:this.fieldName,filter:o,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(va.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,i=`${this.fieldName} <= ${t}`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(va.change,{fieldName:this.fieldName,filter:a,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,"").replace("T","-")}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(va.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,i=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(va.change,{fieldName:this.fieldName,filter:a,target:this.target})}connectedCallback(){var e;if(super.connectedCallback(),null===(e=this.enumOptions)||void 0===e?void 0:e.length){const e=this.enumOptions.includes("|")?"|":",",t=this.enumOptions.split(e).map((e=>({name:e,value:e})));this.enumFilterOptions=[{name:"All",value:"all",selected:!0},...t]}}clear(){switch(this.type){case"number":this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case"date":this.dateFilterFieldMin.value="",this.dateFilterFieldMax.value="",this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case"text":this.textFilterField.value=""}this.$emit(va.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(va.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(va.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([l.attr],ga.prototype,"fieldName",void 0),(0,w.__decorate)([l.attr],ga.prototype,"type",void 0),(0,w.__decorate)([l.attr],ga.prototype,"label",void 0),(0,w.__decorate)([l.attr],ga.prototype,"target",void 0),(0,w.__decorate)([l.observable],ga.prototype,"textFilter",void 0),(0,w.__decorate)([l.observable],ga.prototype,"numFilterMin",void 0),(0,w.__decorate)([l.observable],ga.prototype,"numFilterMax",void 0),(0,w.__decorate)([l.observable],ga.prototype,"dateFilterMin",void 0),(0,w.__decorate)([l.observable],ga.prototype,"dateFilterMax",void 0),(0,w.__decorate)([l.attr],ga.prototype,"enumOptions",void 0),(0,w.__decorate)([l.observable],ga.prototype,"enumFilterOptions",void 0);const fa=ga.compose({baseName:"filter",template:ma,styles:la});var ba=o(41353);const ya=(e,t)=>l.css`
1118
+ `)(t)}},Da=e=>l.html`
1119
+ <div class="filter-wrapper">${t=>Sa(t,e)}</div>
1120
+ `,_a=l.html`
1121
+ ${e=>Da(ne(e))}</div>
1122
+ `;var Ca;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Ca||(Ca={}));class Oa extends n.FoundationElement{constructor(){super(...arguments),this.type="text",this.textFilter="",this.enumFilterOptions=[{name:"All",value:"all",selected:!0}]}textFilterChanged(e,t){if(!(null==t?void 0:t.length))return void this.$emit(Ca.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Ca.change,{fieldName:this.fieldName,filter:o,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Ca.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,i=`${this.fieldName} <= ${t}`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Ca.change,{fieldName:this.fieldName,filter:a,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,"").replace("T","-")}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Ca.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,i=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Ca.change,{fieldName:this.fieldName,filter:a,target:this.target})}connectedCallback(){var e;if(super.connectedCallback(),null===(e=this.enumOptions)||void 0===e?void 0:e.length){const e=this.enumOptions.includes("|")?"|":",",t=this.enumOptions.split(e).map((e=>({name:e,value:e})));this.enumFilterOptions=[{name:"All",value:"all",selected:!0},...t]}}clear(){switch(this.type){case"number":this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case"date":this.dateFilterFieldMin.value="",this.dateFilterFieldMax.value="",this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case"text":this.textFilterField.value=""}this.$emit(Ca.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Ca.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Ca.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Ca.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Ca.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([l.attr],Oa.prototype,"fieldName",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"type",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"label",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"target",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"textFilter",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"numFilterMin",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"numFilterMax",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"dateFilterMin",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"dateFilterMax",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"enumOptions",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"enumFilterOptions",void 0);const ka=Oa.compose({baseName:"filter",template:_a,styles:ya});var Ta=o(41353);const La=(e,t)=>l.css`
1070
1123
  .filter-bar {
1071
1124
  background-color: #2c2f33;
1072
1125
  padding: calc(var(--design-unit) * 2px);
@@ -1102,9 +1155,9 @@
1102
1155
  .toggle-collapsed {
1103
1156
  color: #48ed9c;
1104
1157
  }
1105
- `,wa=e=>{switch(e){case"INT":case"DOUBLE":case"LONG":return"number";case"DATETIME":return"date";case"BOOLEAN":return"boolean";case"ENUM":return"enum";default:return"text"}},xa=l.html`
1158
+ `,Aa=e=>{switch(e){case"INT":case"DOUBLE":case"LONG":return"number";case"DATETIME":return"date";case"BOOLEAN":return"boolean";case"ENUM":return"enum";default:return"text"}},Ra=l.html`
1106
1159
  <p>Fetching metadata for ${e=>e.resource}...</p>
1107
- `,$a=e=>l.html`
1160
+ `,Ea=e=>l.html`
1108
1161
  <div
1109
1162
  class=${e=>(0,x.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
1110
1163
  @click="${e=>e.toggle()}"
@@ -1124,17 +1177,17 @@
1124
1177
  <${e}-filter
1125
1178
  label="${e=>e.UI_LABEL}"
1126
1179
  target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
1127
- type="${e=>wa(e.TYPE)}"
1180
+ type="${e=>Aa(e.TYPE)}"
1128
1181
  fieldName="${e=>e.NAME}"
1129
1182
  enumOptions="${e=>e.VALID_VALUES}"
1130
1183
  ></${e}-filter>
1131
1184
  `)}
1132
1185
  </div>
1133
1186
  </div>
1134
- `,Fa=l.html`
1135
- ${e=>e.ready?$a(ne(e)):xa}
1136
- `,Sa=5;class Da extends n.FoundationElement{constructor(){super(...arguments),this.columns=Sa,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i,a;let n=!1,s=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(s=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==s?void 0:s.length));for(let e=0;null!==(a=e<(null===(i=this.fields)||void 0===i?void 0:i.length))&&void 0!==a&&a;e+=1){const t=n?s[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,ba.Ho)(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=>te.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.__decorate)([l.attr],Da.prototype,"resource",void 0),(0,w.__decorate)([l.attr],Da.prototype,"only",void 0),(0,w.__decorate)([l.attr],Da.prototype,"labels",void 0),(0,w.__decorate)([l.attr],Da.prototype,"target",void 0),(0,w.__decorate)([l.attr],Da.prototype,"columns",void 0),(0,w.__decorate)([l.observable],Da.prototype,"ready",void 0),(0,w.__decorate)([l.observable],Da.prototype,"fields",void 0),(0,w.__decorate)([tt.lj],Da.prototype,"connect",void 0),(0,w.__decorate)([l.observable],Da.prototype,"collapsed",void 0);const Ca=Da.compose({baseName:"filter-bar",template:Fa,styles:ya});var _a;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(_a||(_a={}));const Oa=e=>{const t=e?`-${e}`:"";return l.css`
1137
- ${t&&`@media only screen and ${_a[e]} {`}
1187
+ `,Na=l.html`
1188
+ ${e=>e.ready?Ea(ne(e)):Ra}
1189
+ `,Ia=5;class Ma extends n.FoundationElement{constructor(){super(...arguments),this.columns=Ia,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i,a;let n=!1,s=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(s=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==s?void 0:s.length));for(let e=0;null!==(a=e<(null===(i=this.fields)||void 0===i?void 0:i.length))&&void 0!==a&&a;e+=1){const t=n?s[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Ta.Ho)(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=>te.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.__decorate)([l.attr],Ma.prototype,"resource",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"only",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"labels",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"target",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"columns",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"ready",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"fields",void 0),(0,w.__decorate)([Je.lj],Ma.prototype,"connect",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"collapsed",void 0);const Ha=Ma.compose({baseName:"filter-bar",template:Na,styles:La});var Pa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Pa||(Pa={}));const ja=e=>{const t=e?`-${e}`:"";return l.css`
1190
+ ${t&&`@media only screen and ${Pa[e]} {`}
1138
1191
  :host(.spacing${t}-1x) slot {
1139
1192
  gap: calc(var(--design-unit) * 2px);
1140
1193
  }
@@ -1251,7 +1304,7 @@
1251
1304
  align-content: space-evenly;
1252
1305
  }
1253
1306
  ${t&&"}"}
1254
- `},ka=l.css`
1307
+ `},Ba=l.css`
1255
1308
  :host {
1256
1309
  width: 100%;
1257
1310
  height: 100%;
@@ -1263,17 +1316,17 @@
1263
1316
  display: flex;
1264
1317
  }
1265
1318
 
1266
- ${Oa()}
1267
- ${Oa("lg")}
1268
- ${Oa("md")}
1269
- ${Oa("sm")}
1270
- `,Ta=l.html`
1319
+ ${ja()}
1320
+ ${ja("lg")}
1321
+ ${ja("md")}
1322
+ ${ja("sm")}
1323
+ `,Ga=l.html`
1271
1324
  <template>
1272
1325
  <slot></slot>
1273
1326
  </template>
1274
- `,La=void 0,Aa={};class Ra extends n.FoundationElement{}const Ea=Ra.compose(Object.assign({baseName:"flex-layout",styles:ka,template:Ta,shadowOptions:La},Aa)),Na=(e,t)=>l.css`
1327
+ `,Va=void 0,za={};class Ua extends n.FoundationElement{}const Ya=Ua.compose(Object.assign({baseName:"flex-layout",styles:Ba,template:Ga,shadowOptions:Va},za)),Wa=(e,t)=>l.css`
1275
1328
  ${(0,s.flipperStyles)(e,t)}
1276
- `,Ma=(e,t)=>(0,n.flipperTemplate)(e,t);class Ia extends s.Flipper{}const Pa=void 0,Ha={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 '},Ba=Ia.compose(Object.assign({baseName:"flipper",template:Ma,styles:Na,shadowOptions:Pa},Ha)),ja=225,Ga=l.css`
1329
+ `,qa=(e,t)=>(0,n.flipperTemplate)(e,t);class Xa extends s.Flipper{}const Ka=void 0,Za={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 '},Qa=Xa.compose(Object.assign({baseName:"flipper",template:qa,styles:Wa,shadowOptions:Ka},Za)),Ja=225,en=l.css`
1277
1330
  /* Host */
1278
1331
  :host {
1279
1332
  display: inline-block;
@@ -1298,7 +1351,7 @@
1298
1351
  height: 100%;
1299
1352
  position: absolute;
1300
1353
  /* stylelint-disable-next-line function-name-case */
1301
- transition: transform ${ja.toString()}ms ease-in;
1354
+ transition: transform ${Ja.toString()}ms ease-in;
1302
1355
  width: 20%;
1303
1356
  z-index: 2001;
1304
1357
  }
@@ -1346,7 +1399,7 @@
1346
1399
  opacity: 50%;
1347
1400
  position: absolute;
1348
1401
  /* stylelint-disable-next-line function-name-case */
1349
- transition: opacity ${ja.toString()}ms linear;
1402
+ transition: opacity ${Ja.toString()}ms linear;
1350
1403
  width: 100%;
1351
1404
  z-index: 2000;
1352
1405
  }
@@ -1354,7 +1407,7 @@
1354
1407
  :host([visuallyhidden]) div.background {
1355
1408
  opacity: 0%;
1356
1409
  }
1357
- `,za=e=>l.html`
1410
+ `,tn=e=>l.html`
1358
1411
  <div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
1359
1412
  <div class="container">
1360
1413
  <div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
@@ -1378,10 +1431,10 @@
1378
1431
  </div>
1379
1432
  </div>
1380
1433
  </div>
1381
- `,Va=l.html`
1382
- ${e=>za(ne(e))}
1383
- `;class Ua extends n.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||setTimeout((()=>this.visuallyhidden=!1),1)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}}(0,w.__decorate)([l.attr],Ua.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ua.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ua.prototype,"closed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ua.prototype,"visuallyhidden",void 0);const Ya=void 0,Wa={},qa=Ua.compose(Object.assign({baseName:"flyout",styles:Ga,template:Va,shadowOptions:Ya},Wa));var Xa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Xa||(Xa={}));const Ka=e=>{const t=e?`-${e}`:"";return l.css`
1384
- ${t&&`@media only screen and ${Xa[e]} {`}
1434
+ `,on=l.html`
1435
+ ${e=>tn(ne(e))}
1436
+ `;class an extends n.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||setTimeout((()=>this.visuallyhidden=!1),1)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}}(0,w.__decorate)([l.attr],an.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"closed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"visuallyhidden",void 0);const nn=void 0,sn={},ln=an.compose(Object.assign({baseName:"flyout",styles:en,template:on,shadowOptions:nn},sn));var rn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(rn||(rn={}));const dn=e=>{const t=e?`-${e}`:"";return l.css`
1437
+ ${t&&`@media only screen and ${rn[e]} {`}
1385
1438
  :host(.spacing${t}-1x) slot {
1386
1439
  gap: calc(var(--design-unit) * 2px);
1387
1440
  }
@@ -1466,32 +1519,32 @@
1466
1519
  place-items: stretch;
1467
1520
  }
1468
1521
  ${t&&"}"}
1469
- `},Za=l.css`
1522
+ `},cn=l.css`
1470
1523
  slot {
1471
1524
  width: 100%;
1472
1525
  height: 100%;
1473
1526
  display: grid;
1474
1527
  }
1475
1528
 
1476
- ${Ka()}
1477
- ${Ka("lg")}
1478
- ${Ka("md")}
1479
- ${Ka("sm")}
1480
- `,Qa=l.html`
1529
+ ${dn()}
1530
+ ${dn("lg")}
1531
+ ${dn("md")}
1532
+ ${dn("sm")}
1533
+ `,un=l.html`
1481
1534
  <template>
1482
1535
  <slot></slot>
1483
1536
  </template>
1484
- `,Ja=void 0,en={};class tn{constructor(e,t,o,i="1fr",a="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&l.cssPartial`grid-template-columns: repeat(${t}, ${i});`,s=o&&l.cssPartial`grid-template-rows: repeat(${o}, ${a});`;this.styles=l.css`
1537
+ `,pn=void 0,hn={};class mn{constructor(e,t,o,i="1fr",a="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&l.cssPartial`grid-template-columns: repeat(${t}, ${i});`,s=o&&l.cssPartial`grid-template-rows: repeat(${o}, ${a});`;this.styles=l.css`
1485
1538
  slot {
1486
1539
  ${s||""}
1487
1540
  ${n||""}
1488
1541
  }
1489
- `}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class on extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Xa).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new tn(Xa[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])})).filter((e=>!!e));const e=this["row-count"]&&l.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&l.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=l.css`
1542
+ `}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class vn extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(rn).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new mn(rn[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])})).filter((e=>!!e));const e=this["row-count"]&&l.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&l.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=l.css`
1490
1543
  slot {
1491
1544
  ${e||""}
1492
1545
  ${t||""}
1493
1546
  }
1494
- `,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,w.__decorate)([l.attr],on.prototype,"col-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-width",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-lg-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-lg-width",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-md-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-md-width",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-sm-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"col-sm-width",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-height",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-lg-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-lg-height",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-md-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-md-height",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-sm-count",void 0),(0,w.__decorate)([l.attr],on.prototype,"row-sm-height",void 0);const an=on.compose(Object.assign({baseName:"grid-layout",styles:Za,template:Qa,shadowOptions:Ja},en)),nn=l.html`
1547
+ `,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,w.__decorate)([l.attr],vn.prototype,"col-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-width",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-lg-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-lg-width",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-md-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-md-width",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-sm-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"col-sm-width",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-height",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-lg-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-lg-height",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-md-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-md-height",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-sm-count",void 0),(0,w.__decorate)([l.attr],vn.prototype,"row-sm-height",void 0);const gn=vn.compose(Object.assign({baseName:"grid-layout",styles:cn,template:un,shadowOptions:pn},hn)),fn=l.html`
1495
1548
  <template>
1496
1549
  <style>
1497
1550
  :host {
@@ -1520,9 +1573,9 @@
1520
1573
  </style>
1521
1574
  <slot></slot>
1522
1575
  </template>
1523
- `,sn=void 0,ln={};class rn extends n.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.__decorate)([(0,l.attr)({attribute:"col-number"})],rn.prototype,"colNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-sm-number"})],rn.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-md-number"})],rn.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-lg-number"})],rn.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-number"})],rn.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-sm-number"})],rn.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-md-number"})],rn.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-lg-number"})],rn.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width"})],rn.prototype,"width",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-sm"})],rn.prototype,"widthSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-md"})],rn.prototype,"widthMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-lg"})],rn.prototype,"widthLg",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height"})],rn.prototype,"height",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-sm"})],rn.prototype,"heightSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-md"})],rn.prototype,"heightMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-lg"})],rn.prototype,"heightLg",void 0);const dn=rn.compose(Object.assign({baseName:"grid-layout-item",template:nn,shadowOptions:sn},ln)),cn=(e,t)=>l.css`
1576
+ `,bn=void 0,yn={};class wn extends n.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.__decorate)([(0,l.attr)({attribute:"col-number"})],wn.prototype,"colNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-sm-number"})],wn.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-md-number"})],wn.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-lg-number"})],wn.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-number"})],wn.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-sm-number"})],wn.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-md-number"})],wn.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-lg-number"})],wn.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width"})],wn.prototype,"width",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-sm"})],wn.prototype,"widthSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-md"})],wn.prototype,"widthMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-lg"})],wn.prototype,"widthLg",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height"})],wn.prototype,"height",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-sm"})],wn.prototype,"heightSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-md"})],wn.prototype,"heightMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-lg"})],wn.prototype,"heightLg",void 0);const xn=wn.compose(Object.assign({baseName:"grid-layout-item",template:fn,shadowOptions:bn},yn)),$n=(e,t)=>l.css`
1524
1577
  ${(0,s.horizontalScrollStyles)(e,t)}
1525
- `,un=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class pn extends s.HorizontalScroll{}const hn={delegatesFocus:!0,mode:"open"},mn={nextFlipper:l.html`
1578
+ `,Fn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class Sn extends s.HorizontalScroll{}const Dn={delegatesFocus:!0,mode:"open"},_n={nextFlipper:l.html`
1526
1579
  <fast-flipper
1527
1580
  @click="${e=>e.scrollToNext()}"
1528
1581
  aria-hidden="${e=>e.flippersHiddenFromAT}"
@@ -1533,9 +1586,9 @@
1533
1586
  direction="previous"
1534
1587
  aria-hidden="${e=>e.flippersHiddenFromAT}"
1535
1588
  ></fast-flipper>
1536
- `},vn=pn.compose(Object.assign({baseName:"horizontal-scroll",template:un,styles:cn,shadowOptions:hn},mn));var gn=o(38938),fn=o(79840),bn=o(64739),yn=o(75030);const wn=()=>(gn.vI.add(yn.mRB,bn.NCV,fn.vnX),gn.vz.css()),xn=(e,t)=>l.css`
1537
- ${wn()}
1538
- `,$n=l.html`
1589
+ `},Cn=Sn.compose(Object.assign({baseName:"horizontal-scroll",template:Fn,styles:$n,shadowOptions:Dn},_n));var On=o(38938),kn=o(79840),Tn=o(64739),Ln=o(75030);const An=()=>(On.vI.add(Ln.mRB,Tn.NCV,kn.vnX),On.vz.css()),Rn=(e,t)=>l.css`
1590
+ ${An()}
1591
+ `,En=l.html`
1539
1592
  <template>
1540
1593
  <i
1541
1594
  ${(0,l.ref)("iElement")}
@@ -1545,7 +1598,7 @@
1545
1598
  <slot></slot>
1546
1599
  </i>
1547
1600
  </template>
1548
- `,Fn={mode:"open",delegatesFocus:!0},Sn={};var Dn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Dn||(Dn={}));class Cn extends n.FoundationElement{constructor(){super(...arguments),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()}loadIcon(){if(!this.iElement)return;const e=(0,gn.N)({prefix:Dn[this.variant],iconName:this.name}),t=(0,gn.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([l.observable],Cn.prototype,"iElement",void 0),(0,w.__decorate)([l.attr],Cn.prototype,"name",void 0),(0,w.__decorate)([l.attr],Cn.prototype,"size",void 0),(0,w.__decorate)([l.attr],Cn.prototype,"variant",void 0);const _n=Cn.compose(Object.assign({baseName:"icon",template:$n,styles:xn,shadowOptions:Fn},Sn)),On=(e,t)=>l.css`
1601
+ `,Nn={mode:"open",delegatesFocus:!0},In={};var Mn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Mn||(Mn={}));class Hn extends n.FoundationElement{constructor(){super(...arguments),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()}loadIcon(){if(!this.iElement)return;const e=(0,On.N)({prefix:Mn[this.variant],iconName:this.name}),t=(0,On.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([l.observable],Hn.prototype,"iElement",void 0),(0,w.__decorate)([l.attr],Hn.prototype,"name",void 0),(0,w.__decorate)([l.attr],Hn.prototype,"size",void 0),(0,w.__decorate)([l.attr],Hn.prototype,"variant",void 0);const Pn=Hn.compose(Object.assign({baseName:"icon",template:En,styles:Rn,shadowOptions:Nn},In)),jn=(e,t)=>l.css`
1549
1602
  ${(0,s.listboxStyles)(e,t)}
1550
1603
 
1551
1604
  :host {
@@ -1556,11 +1609,11 @@
1556
1609
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
1557
1610
  border-radius: calc(var(--control-corner-radius) * 1px);
1558
1611
  }
1559
- `,kn=(e,t)=>(0,n.listboxTemplate)(e,t);class Tn extends s.Listbox{}const Ln=void 0,An={},Rn=Tn.compose(Object.assign({baseName:"listbox",template:kn,styles:On,shadowOptions:Ln},An)),En=(e,t)=>l.css`
1612
+ `,Bn=(e,t)=>(0,n.listboxTemplate)(e,t);class Gn extends s.Listbox{}const Vn=void 0,zn={},Un=Gn.compose(Object.assign({baseName:"listbox",template:Bn,styles:jn,shadowOptions:Vn},zn)),Yn=(e,t)=>l.css`
1560
1613
  ${(0,s.optionStyles)(e,t)}
1561
- `,Nn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class Mn extends s.ListboxOption{}const In=void 0,Pn={},Hn=Mn.compose(Object.assign({baseName:"option",template:Nn,styles:En,shadowOptions:In},Pn)),Bn=(e,t)=>l.css`
1614
+ `,Wn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class qn extends s.ListboxOption{}const Xn=void 0,Kn={},Zn=qn.compose(Object.assign({baseName:"option",template:Wn,styles:Yn,shadowOptions:Xn},Kn)),Qn=(e,t)=>l.css`
1562
1615
  ${(0,s.menuStyles)(e,t)}
1563
- `,jn=(e,t)=>(0,n.menuTemplate)(e,t);class Gn extends s.Menu{}const zn=void 0,Vn={},Un=Gn.compose(Object.assign({baseName:"menu",template:jn,styles:Bn,shadowOptions:zn},Vn)),Yn=(e,t)=>l.css`
1616
+ `,Jn=(e,t)=>(0,n.menuTemplate)(e,t);class es extends s.Menu{}const ts=void 0,os={},is=es.compose(Object.assign({baseName:"menu",template:Jn,styles:Qn,shadowOptions:ts},os)),as=(e,t)=>l.css`
1564
1617
  ${(0,s.menuItemStyles)(e,t)}
1565
1618
 
1566
1619
  :host, :host(.indent-0[aria-haspopup='menu']) {
@@ -1574,11 +1627,11 @@
1574
1627
  height: auto;
1575
1628
  width: auto;
1576
1629
  }
1577
- `,Wn=(e,t)=>(0,n.menuItemTemplate)(e,t);class qn extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Xn=void 0,Kn={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n 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 '},Zn=qn.compose(Object.assign({baseName:"menu-item",template:Wn,styles:Yn,shadowOptions:Xn},Kn)),Qn=l.css`
1578
- ${Eo}
1579
- `,Jn=l.html`
1580
- ${Io}
1581
- `,es={mode:"open",delegatesFocus:!0},ts={};class os extends Bo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const is=os.compose(Object.assign({baseName:"modal",styles:Qn,template:Jn,shadowOptions:es},ts));var as,ns=o(82940),ss=o(40001),ls=o.n(ss);!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(as||(as={}));const rs=230,ds=l.css`
1630
+ `,ns=(e,t)=>(0,n.menuItemTemplate)(e,t);class ss extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const ls=void 0,rs={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n 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 '},ds=ss.compose(Object.assign({baseName:"menu-item",template:ns,styles:as,shadowOptions:ls},rs)),cs=l.css`
1631
+ ${ii}
1632
+ `,us=l.html`
1633
+ ${si}
1634
+ `,ps={mode:"open",delegatesFocus:!0},hs={};class ms extends di{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const vs=ms.compose(Object.assign({baseName:"modal",styles:cs,template:us,shadowOptions:ps},hs));var gs;!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(gs||(gs={}));const fs=230,bs=l.css`
1582
1635
  .root {
1583
1636
  position: relative;
1584
1637
  width: inherit;
@@ -1705,7 +1758,7 @@
1705
1758
 
1706
1759
  .visible {
1707
1760
  visibility: visible;
1708
- max-height: ${rs.toString()}px;
1761
+ max-height: ${fs.toString()}px;
1709
1762
  }
1710
1763
 
1711
1764
  ::slotted(foundation-checkbox),
@@ -1740,7 +1793,7 @@
1740
1793
  .label-hidden {
1741
1794
  display: none;
1742
1795
  }
1743
- `;var cs=o(32449),us=o(9162),ps=o(5127),hs=o(26714);class ms extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=ns.WJ.MAX_ROWS_250,this.maxView=ns.WJ.MAX_VIEW_1000,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 hs.X(new Map)}criteriaChanged(e,t){const o=e!==(0,cs.p)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,w.__awaiter)(this,void 0,void 0,(function*(){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 te.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===us.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,ps.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else te.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,w.__awaiter)(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 te.error("received invalid RequestServerResult",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,a;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===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,cs.p)(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)}}(0,w.__decorate)([tt.lj],ms.prototype,"connect",void 0),(0,w.__decorate)([mi.Yh],ms.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],ms.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],ms.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],ms.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],ms.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],ms.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],ms.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],ms.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ms.prototype,"withTimestampFormatting",void 0);let vs=class extends ms{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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||te.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=>({value:e[this.valueField],label:e[this.labelField]})));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],vs.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],vs.prototype,"labelField",void 0),vs=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],vs);const gs=(e="foundation")=>l.html`
1796
+ `;let ys=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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||te.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=>({value:e[this.valueField],label:e[this.labelField]})));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],ys.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],ys.prototype,"labelField",void 0),ys=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],ys);const ws=(e="foundation")=>l.html`
1744
1797
  <label
1745
1798
  part="label"
1746
1799
  for="control"
@@ -1781,7 +1834,7 @@
1781
1834
  <${e}-text-field
1782
1835
  id="filter-search"
1783
1836
  part="filter-search"
1784
- value=${(0,ra.Z)((e=>e.filterSearchValue),"string","input")}
1837
+ value=${(0,wa.Z)((e=>e.filterSearchValue),"string","input")}
1785
1838
  placeholder="${e=>e.getPlaceholder}"
1786
1839
  @input=${(e,t)=>e.inputHandler()}
1787
1840
  @change=${(e,t)=>e.changeHandler(t.event)}
@@ -1815,11 +1868,11 @@
1815
1868
  </div>
1816
1869
  </div>
1817
1870
  <slot
1818
- ${(0,l.slotted)({property:"slottedDatasource",filter:e=>e instanceof vs})}
1871
+ ${(0,l.slotted)({property:"slottedDatasource",filter:e=>e instanceof ys})}
1819
1872
  ></slot>
1820
- `,fs=l.html`
1821
- ${gs()}
1822
- `,bs=void 0,ys={};class ws extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.async=!1,this.debounce=500,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=as.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=ls()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===as.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}toggle(){this.open||this.position!==as.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<rs+this.offsetHeight?null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"):null===(t=this.optionsElement)||void 0===t||t.classList.remove("position-above")}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",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.optionGetter(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 isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}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)}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.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===ns._g.DATASERVER&&this.dataserverCriteriaBuilder(),e===ns._g.REQUEST_SERVER&&this.requestServerCriteriaBuilder()}else this.loading=!1,te.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}dataserverCriteriaBuilder(){var e;const t=new Bi;t.withExpression((new Ui).withField(null!==(e=this.slottedDatasource[0].labelField)&&void 0!==e?e:this.slottedDatasource[0].valueField).withValue(this.filterSearchValue).withSerialiser(Vi).build()),this.slottedDatasource[0].criteria=t.build()}requestServerCriteriaBuilder(){var e;const t=null!==(e=this.slottedDatasource[0].labelField)&&void 0!==e?e:this.slottedDatasource[0].valueField;this.slottedDatasource[0].request={[t]:`${this.filterSearchValue}*`},this.slottedDatasource[0].fetchGenesisData()}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){ie(e,this)&&(this.open=!1)}}(0,w.__decorate)([l.attr],ws.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ws.prototype,"all",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ws.prototype,"allSelected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ws.prototype,"search",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ws.prototype,"disabled",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ws.prototype,"async",void 0),(0,w.__decorate)([l.attr],ws.prototype,"debounce",void 0),(0,w.__decorate)([l.observable],ws.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([l.observable],ws.prototype,"slottedDatasource",void 0),(0,w.__decorate)([l.observable],ws.prototype,"valueFormatter",void 0),(0,w.__decorate)([l.observable],ws.prototype,"loading",void 0),(0,w.__decorate)([l.observable],ws.prototype,"filterSearchValue",void 0),(0,w.__decorate)([l.observable],ws.prototype,"open",void 0),(0,w.__decorate)([l.observable],ws.prototype,"options",void 0),(0,w.__decorate)([l.observable],ws.prototype,"selectedOptions",void 0),(0,w.__decorate)([l.observable],ws.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([l.observable],ws.prototype,"scrollContainer",void 0),(0,w.__decorate)([l.observable],ws.prototype,"position",void 0),(0,w.__decorate)([l.observable],ws.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([l.volatile],ws.prototype,"getDisplayValue",null),(0,w.__decorate)([l.volatile],ws.prototype,"getPlaceholder",null),(0,w.__decorate)([l.volatile],ws.prototype,"isAllSelected",null),(0,w.__decorate)([l.volatile],ws.prototype,"isAllOptionsDisabled",null);const xs=ws.compose(Object.assign({baseName:"multiselect",template:fs,styles:ds,shadowOptions:bs},ys));class $s{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 Fs=(e,t)=>l.css`
1873
+ `,xs=l.html`
1874
+ ${ws()}
1875
+ `,$s=void 0,Fs={};class Ss extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.async=!1,this.debounce=500,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=gs.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=Xe()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===gs.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}toggle(){this.open||this.position!==gs.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<fs+this.offsetHeight?null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"):null===(t=this.optionsElement)||void 0===t||t.classList.remove("position-above")}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",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.optionGetter(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 isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}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)}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.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===We._g.DATASERVER&&ht(this.slottedDatasource[0],this.filterSearchValue),e===We._g.REQUEST_SERVER&&mt(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,te.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){ie(e,this)&&(this.open=!1)}}(0,w.__decorate)([l.attr],Ss.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ss.prototype,"all",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ss.prototype,"allSelected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ss.prototype,"search",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ss.prototype,"disabled",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ss.prototype,"async",void 0),(0,w.__decorate)([l.attr],Ss.prototype,"debounce",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"slottedDatasource",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"valueFormatter",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"loading",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"filterSearchValue",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"open",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"options",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"selectedOptions",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"scrollContainer",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"position",void 0),(0,w.__decorate)([l.observable],Ss.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([l.volatile],Ss.prototype,"getDisplayValue",null),(0,w.__decorate)([l.volatile],Ss.prototype,"getPlaceholder",null),(0,w.__decorate)([l.volatile],Ss.prototype,"isAllSelected",null),(0,w.__decorate)([l.volatile],Ss.prototype,"isAllOptionsDisabled",null);const Ds=Ss.compose(Object.assign({baseName:"multiselect",template:xs,styles:bs,shadowOptions:$s},Fs));class _s{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 Cs=(e,t)=>l.css`
1823
1876
  ${(0,s.numberFieldStyles)(e,t)}
1824
1877
  ::part(label) {
1825
1878
  color: var(--neutral-foreground-rest);
@@ -1849,7 +1902,7 @@
1849
1902
  ::part(end) {
1850
1903
  margin-inline-end: unset;
1851
1904
  }
1852
- `,Ss=(e,t)=>l.html`
1905
+ `,Os=(e,t)=>l.html`
1853
1906
  <template class="${e=>e.readOnly?"readonly":""}">
1854
1907
  <label
1855
1908
  part="label"
@@ -1918,7 +1971,7 @@
1918
1971
  ${(0,n.endSlotTemplate)(e,t)}
1919
1972
  </div>
1920
1973
  </template>
1921
- `;class Ds extends s.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)}sanitiseInputVal(e){return String(new $s(this.locale).parse(String(e)))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}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=this.validateMinMax(t.toString(),this.withFormatting),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=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new $s(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate((()=>{const e=this.validateValue(this.control.value);this.control.value=this.toIntlNumberFormat(e),this.value=e,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(t&&null!==t||!this.control){if(t&&null!==t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void l.DOM.queueUpdate((()=>{this.control.value=this.withFormatting?this.toIntlNumberFormat(this.value):this.value}));const e=t;l.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}else this.control.value=""}handleBlur(){this.isUserInput=!1,this.value=this.validateMinMax(this.control.value,this.withFormatting),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input")}}(0,w.__decorate)([l.attr],Ds.prototype,"autocomplete",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ds.prototype,"hideStep",void 0),(0,w.__decorate)([l.attr],Ds.prototype,"value",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ds.prototype,"withFormatting",void 0),(0,w.__decorate)([l.attr],Ds.prototype,"locale",void 0);const Cs={delegatesFocus:!0,mode:"open"},_s={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 '},Os=Ds.compose(Object.assign({baseName:"number-field",template:Ss,styles:Fs,shadowOptions:Cs},_s));var ks=o(86975);const Ts={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Ls extends n.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,ks.fi)(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.__decorate)([l.attr],Ls.prototype,"selector",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ls.prototype,"show",void 0),(0,w.__decorate)([l.attr],Ls.prototype,"event",void 0),(0,w.__decorate)([l.attr],Ls.prototype,"placement",void 0),(0,w.__decorate)([(0,l.attr)({converter:Ts})],Ls.prototype,"offset",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ls.prototype,"flip",void 0);const As=l.css`
1974
+ `;class ks extends s.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)}sanitiseInputVal(e){return String(new _s(this.locale).parse(String(e)))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}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=this.validateMinMax(t.toString(),this.withFormatting),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=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new _s(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate((()=>{const e=this.validateValue(this.control.value);this.control.value=this.toIntlNumberFormat(e),this.value=e,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(t&&null!==t||!this.control){if(t&&null!==t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void l.DOM.queueUpdate((()=>{this.control.value=this.withFormatting?this.toIntlNumberFormat(this.value):this.value}));const e=t;l.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}else this.control.value=""}handleBlur(){this.isUserInput=!1,this.value=this.validateMinMax(this.control.value,this.withFormatting),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input")}}(0,w.__decorate)([l.attr],ks.prototype,"autocomplete",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ks.prototype,"hideStep",void 0),(0,w.__decorate)([l.attr],ks.prototype,"value",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ks.prototype,"withFormatting",void 0),(0,w.__decorate)([l.attr],ks.prototype,"locale",void 0);const Ts={delegatesFocus:!0,mode:"open"},Ls={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 '},As=ks.compose(Object.assign({baseName:"number-field",template:Os,styles:Cs,shadowOptions:Ts},Ls));var Rs=o(86975);const Es={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Ns extends n.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,Rs.fi)(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.__decorate)([l.attr],Ns.prototype,"selector",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ns.prototype,"show",void 0),(0,w.__decorate)([l.attr],Ns.prototype,"event",void 0),(0,w.__decorate)([l.attr],Ns.prototype,"placement",void 0),(0,w.__decorate)([(0,l.attr)({converter:Es})],Ns.prototype,"offset",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ns.prototype,"flip",void 0);const Is=l.css`
1922
1975
  :host {
1923
1976
  display: none;
1924
1977
  inset: unset !important;
@@ -1928,22 +1981,22 @@
1928
1981
  :host([show]) {
1929
1982
  display: block;
1930
1983
  }
1931
- `,Rs=l.html`
1984
+ `,Ms=l.html`
1932
1985
  <template>
1933
1986
  <slot></slot>
1934
1987
  </template>
1935
- `,Es=Ls.compose({baseName:"popper",styles:As,template:Rs}),Ns=(e,t)=>l.css`
1988
+ `,Hs=Ns.compose({baseName:"popper",styles:Is,template:Ms}),Ps=(e,t)=>l.css`
1936
1989
  ${(0,s.progressStyles)(e,t)}
1937
1990
  :host {
1938
1991
  height: calc(var(--design-unit) * 2px);
1939
1992
  }
1940
- `,Ms=(e,t)=>(0,n.progressTemplate)(e,t);class Is extends s.Progress{}const Ps=void 0,Hs={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Bs=Is.compose(Object.assign({baseName:"progress",template:Ms,styles:Ns,shadowOptions:Ps},Hs)),js=(e,t)=>l.css`
1993
+ `,js=(e,t)=>(0,n.progressTemplate)(e,t);class Bs extends s.Progress{}const Gs=void 0,Vs={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},zs=Bs.compose(Object.assign({baseName:"progress",template:js,styles:Ps,shadowOptions:Gs},Vs)),Us=(e,t)=>l.css`
1941
1994
  ${(0,s.progressRingStyles)(e,t)}
1942
- `,Gs=(e,t)=>(0,n.progressRingTemplate)(e,t);class zs extends s.Progress{}const Vs=void 0,Us={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 '},Ys=zs.compose(Object.assign({baseName:"progress-ring",template:Gs,styles:js,shadowOptions:Vs},Us)),Ws=(e,t)=>l.css`
1995
+ `,Ys=(e,t)=>(0,n.progressRingTemplate)(e,t);class Ws extends s.Progress{}const qs=void 0,Xs={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 '},Ks=Ws.compose(Object.assign({baseName:"progress-ring",template:Ys,styles:Us,shadowOptions:qs},Xs)),Zs=(e,t)=>l.css`
1943
1996
  ${(0,s.radioStyles)(e,t)}
1944
- `,qs=(e,t)=>(0,n.radioTemplate)(e,t);class Xs extends s.Radio{}const Ks=void 0,Zs={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Qs=Xs.compose(Object.assign({baseName:"radio",template:qs,styles:Ws,shadowOptions:Ks},Zs)),Js=(e,t)=>l.css`
1997
+ `,Qs=(e,t)=>(0,n.radioTemplate)(e,t);class Js extends s.Radio{}const el=void 0,tl={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},ol=Js.compose(Object.assign({baseName:"radio",template:Qs,styles:Zs,shadowOptions:el},tl)),il=(e,t)=>l.css`
1945
1998
  ${(0,s.radioGroupStyles)(e,t)}
1946
- `,el=(e,t)=>(0,n.radioGroupTemplate)(e,t);class tl extends s.RadioGroup{}const ol=void 0,il={},al=tl.compose(Object.assign({baseName:"radio-group",template:el,styles:Js,shadowOptions:ol},il)),nl=(e,t)=>l.css`
1999
+ `,al=(e,t)=>(0,n.radioGroupTemplate)(e,t);class nl extends s.RadioGroup{}const sl=void 0,ll={},rl=nl.compose(Object.assign({baseName:"radio-group",template:al,styles:il,shadowOptions:sl},ll)),dl=(e,t)=>l.css`
1947
2000
  ${(0,s.radioGroupStyles)(e,t)}
1948
2001
  ::slotted(foundation-segmented-item:first-of-type) {
1949
2002
  border-radius: calc(var(--control-corner-radius) * 1px) 0 0
@@ -1956,7 +2009,7 @@
1956
2009
  calc(var(--control-corner-radius) * 1px) 0;
1957
2010
  border-left-width: 0;
1958
2011
  }
1959
- `,sl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class ll extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const rl=void 0,dl={},cl=ll.compose(Object.assign({baseName:"segmented-control",template:sl,styles:nl,shadowOptions:rl},dl)),ul=(e,t)=>l.css`
2012
+ `,cl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class ul extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const pl=void 0,hl={},ml=ul.compose(Object.assign({baseName:"segmented-control",template:cl,styles:dl,shadowOptions:pl},hl)),vl=(e,t)=>l.css`
1960
2013
  ${(0,s.radioStyles)(e,t)}
1961
2014
  :host {
1962
2015
  padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
@@ -1967,7 +2020,7 @@
1967
2020
  :host([aria-checked='true']) {
1968
2021
  background: var(--accent-foreground-rest);
1969
2022
  }
1970
- `,pl=(e,t)=>l.html`
2023
+ `,gl=(e,t)=>l.html`
1971
2024
  <template
1972
2025
  role="radio"
1973
2026
  aria-checked="${e=>e.checked}"
@@ -1981,21 +2034,21 @@
1981
2034
  <slot></slot>
1982
2035
  </span>
1983
2036
  </template>
1984
- `;class hl extends s.Radio{}const ml=void 0,vl={},gl=hl.compose(Object.assign({baseName:"segmented-item",template:pl,styles:ul,shadowOptions:ml},vl)),fl=(e,t)=>l.css`
2037
+ `;class fl extends s.Radio{}const bl=void 0,yl={},wl=fl.compose(Object.assign({baseName:"segmented-item",template:gl,styles:vl,shadowOptions:bl},yl)),xl=(e,t)=>l.css`
1985
2038
  ${(0,s.selectStyles)(e,t)}
1986
- `,bl=(e,t)=>(0,n.selectTemplate)(e,t);class yl extends s.Select{}const wl=void 0,xl={indicator:'\n <svg\n class="select-indicator"\n part="select-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 '},$l=yl.compose(Object.assign({baseName:"select",template:bl,styles:fl,shadowOptions:wl},xl)),Fl=(e,t)=>l.css`
2039
+ `,$l=(e,t)=>(0,n.selectTemplate)(e,t);class Fl extends s.Select{}const Sl=void 0,Dl={indicator:'\n <svg\n class="select-indicator"\n part="select-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 '},_l=Fl.compose(Object.assign({baseName:"select",template:$l,styles:xl,shadowOptions:Sl},Dl)),Cl=(e,t)=>l.css`
1987
2040
  ${(0,s.skeletonStyles)(e,t)}
1988
- `,Sl=(e,t)=>(0,n.skeletonTemplate)(e,t);class Dl extends s.Skeleton{}const Cl=void 0,_l={},Ol=Dl.compose(Object.assign({baseName:"skeleton",template:Sl,styles:Fl,shadowOptions:Cl},_l)),kl=(e,t)=>l.css`
2041
+ `,Ol=(e,t)=>(0,n.skeletonTemplate)(e,t);class kl extends s.Skeleton{}const Tl=void 0,Ll={},Al=kl.compose(Object.assign({baseName:"skeleton",template:Ol,styles:Cl,shadowOptions:Tl},Ll)),Rl=(e,t)=>l.css`
1989
2042
  ${(0,s.sliderStyles)(e,t)}
1990
2043
  .track-progress {
1991
2044
  background-color: var(--accent-fill-rest);
1992
2045
  border-radius: calc(var(--control-corner-radius) * 1px);
1993
2046
  }
1994
- `;var Tl=o(75511),Ll=o(62515);const Al=(e,t)=>l.html`
2047
+ `;var El=o(75511),Nl=o(62515);const Il=(e,t)=>l.html`
1995
2048
  <template
1996
2049
  role="slider"
1997
2050
  class="${e=>e.readOnly?"readonly":""}
1998
- ${e=>e.orientation||Tl.i.horizontal}"
2051
+ ${e=>e.orientation||El.i.horizontal}"
1999
2052
  tabindex="${e=>e.disabled?null:0}"
2000
2053
  aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
2001
2054
  aria-valuenow="${e=>e.value}"
@@ -2010,7 +2063,7 @@
2010
2063
  <div ${(0,l.ref)("track")} part="track-container" class="track">
2011
2064
  <div
2012
2065
  class="track-progress"
2013
- style="${e=>{const t=1-(0,Ll.b9)(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;`}}"
2066
+ style="${e=>{const t=1-(0,Nl.b9)(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;`}}"
2014
2067
  ></div>
2015
2068
  </div>
2016
2069
  <slot></slot>
@@ -2024,9 +2077,9 @@
2024
2077
  </div>
2025
2078
  </div>
2026
2079
  </template>
2027
- `;class Rl extends s.Slider{}const El=void 0,Nl={thumb:'\n <div class="thumb-cursor"></div>\n '},Ml=Rl.compose(Object.assign({baseName:"slider",template:Al,styles:kl,shadowOptions:El},Nl)),Il=(e,t)=>l.css`
2080
+ `;class Ml extends s.Slider{}const Hl=void 0,Pl={thumb:'\n <div class="thumb-cursor"></div>\n '},jl=Ml.compose(Object.assign({baseName:"slider",template:Il,styles:Rl,shadowOptions:Hl},Pl)),Bl=(e,t)=>l.css`
2028
2081
  ${(0,s.sliderLabelStyles)(e,t)}
2029
- `,Pl=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class Hl extends s.SliderLabel{}const Bl=void 0,jl={},Gl=Hl.compose(Object.assign({baseName:"slider-label",template:Pl,styles:Il,shadowOptions:Bl},jl)),zl=l.css`
2082
+ `,Gl=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class Vl extends s.SliderLabel{}const zl=void 0,Ul={},Yl=Vl.compose(Object.assign({baseName:"slider-label",template:Gl,styles:Bl,shadowOptions:zl},Ul)),Wl=l.css`
2030
2083
  @keyframes append-animate {
2031
2084
  from {
2032
2085
  transform: translateX(100%);
@@ -2108,7 +2161,7 @@
2108
2161
  flex: 1;
2109
2162
  overflow: hidden;
2110
2163
  }
2111
- `,Vl=e=>l.html`
2164
+ `,ql=e=>l.html`
2112
2165
  <div class="snackbar ${e=>e.deleteAnimation}" ${(0,l.ref)("snackbar")}>
2113
2166
  <div part="content" class="content">
2114
2167
  <div>
@@ -2127,9 +2180,9 @@
2127
2180
  `)}
2128
2181
  </div>
2129
2182
  </div>
2130
- `,Ul=l.html`
2131
- ${e=>Vl(ne(e))}
2132
- `,Yl={mode:"open",delegatesFocus:!0};class Wl extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=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!==a?a:""}notificationChanged(e,t){var o,i,a;this.type=null!==(a=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!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Wl.prototype,"error",void 0),(0,w.__decorate)([l.observable],Wl.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Wl.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Wl.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Wl.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Wl.prototype,"type",void 0);const ql=Wl.compose({baseName:"snackbar",styles:zl,template:Ul,shadowOptions:Yl}),Xl=(e,t)=>l.css`
2183
+ `,Xl=l.html`
2184
+ ${e=>ql(ne(e))}
2185
+ `,Kl={mode:"open",delegatesFocus:!0};class Zl extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=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!==a?a:""}notificationChanged(e,t){var o,i,a;this.type=null!==(a=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!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Zl.prototype,"error",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Zl.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Zl.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Zl.prototype,"type",void 0);const Ql=Zl.compose({baseName:"snackbar",styles:Wl,template:Xl,shadowOptions:Kl}),Jl=(e,t)=>l.css`
2133
2186
  ${(0,s.switchStyles)(e,t)}
2134
2187
  .checked-indicator {
2135
2188
  transform: scale(1.3);
@@ -2142,24 +2195,24 @@
2142
2195
  .checked-indicator {
2143
2196
  border-radius: calc(var(--control-corner-radius) * 2px);
2144
2197
  }
2145
- `,Kl=(e,t)=>(0,n.switchTemplate)(e,t);class Zl extends s.Switch{}const Ql=void 0,Jl={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},er=Zl.compose(Object.assign({baseName:"switch",template:Kl,styles:Xl,shadowOptions:Ql},Jl)),tr=(e,t)=>l.css`
2198
+ `,er=(e,t)=>(0,n.switchTemplate)(e,t);class tr extends s.Switch{}const or=void 0,ir={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},ar=tr.compose(Object.assign({baseName:"switch",template:er,styles:Jl,shadowOptions:or},ir)),nr=(e,t)=>l.css`
2146
2199
  ${(0,s.tabStyles)(e,t)}
2147
- `,or=(e,t)=>(0,n.tabTemplate)(e,t);class ir extends s.Tab{}const ar=void 0,nr={},sr=ir.compose(Object.assign({baseName:"tab",template:or,styles:tr,shadowOptions:ar},nr)),lr=(e,t)=>l.css`
2200
+ `,sr=(e,t)=>(0,n.tabTemplate)(e,t);class lr extends s.Tab{}const rr=void 0,dr={},cr=lr.compose(Object.assign({baseName:"tab",template:sr,styles:nr,shadowOptions:rr},dr)),ur=(e,t)=>l.css`
2148
2201
  ${(0,s.tabPanelStyles)(e,t)}
2149
- `,rr=(e,t)=>(0,n.tabPanelTemplate)(e,t);class dr extends s.TabPanel{}const cr=void 0,ur={},pr=dr.compose(Object.assign({baseName:"tab-panel",template:rr,styles:lr,shadowOptions:cr},ur)),hr=(e,t)=>l.css`
2202
+ `,pr=(e,t)=>(0,n.tabPanelTemplate)(e,t);class hr extends s.TabPanel{}const mr=void 0,vr={},gr=hr.compose(Object.assign({baseName:"tab-panel",template:pr,styles:ur,shadowOptions:mr},vr)),fr=(e,t)=>l.css`
2150
2203
  ${(0,s.tabsStyles)(e,t)}
2151
- `,mr=(e,t)=>(0,n.tabsTemplate)(e,t);class vr extends s.Tabs{}const gr=void 0,fr={},br=vr.compose(Object.assign({baseName:"tabs",template:mr,styles:hr,shadowOptions:gr},fr)),yr=(e,t)=>l.css`
2204
+ `,br=(e,t)=>(0,n.tabsTemplate)(e,t);class yr extends s.Tabs{}const wr=void 0,xr={},$r=yr.compose(Object.assign({baseName:"tabs",template:br,styles:fr,shadowOptions:wr},xr)),Fr=(e,t)=>l.css`
2152
2205
  ${(0,s.textAreaStyles)(e,t)}
2153
2206
  :host .control {
2154
2207
  padding: calc(var(--design-unit) * 3px);
2155
2208
  }
2156
- `,wr=(e,t)=>(0,n.textAreaTemplate)(e,t);class xr extends s.TextArea{}const $r=void 0,Fr={},Sr=xr.compose(Object.assign({baseName:"text-area",template:wr,styles:yr,shadowOptions:$r},Fr)),{create:Dr}=n.DesignToken,Cr=Dr("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),_r=(e,t)=>l.css`
2209
+ `,Sr=(e,t)=>(0,n.textAreaTemplate)(e,t);class Dr extends s.TextArea{}const _r=void 0,Cr={},Or=Dr.compose(Object.assign({baseName:"text-area",template:Sr,styles:Fr,shadowOptions:_r},Cr)),{create:kr}=n.DesignToken,Tr=kr("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),Lr=(e,t)=>l.css`
2157
2210
  ${(0,s.textFieldStyles)(e,t)}
2158
2211
 
2159
2212
  input {
2160
- color-scheme: ${Cr};
2213
+ color-scheme: ${Tr};
2161
2214
  }
2162
- `,Or=(e,t)=>l.html`
2215
+ `,Ar=(e,t)=>l.html`
2163
2216
  <template
2164
2217
  class="
2165
2218
  ${e=>e.readOnly?"readonly":""}
@@ -2221,7 +2274,7 @@
2221
2274
  ${(0,n.endSlotTemplate)(e,t)}
2222
2275
  </div>
2223
2276
  </template>
2224
- `;class kr extends s.TextField{constructor(){super(...arguments),this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,w.__decorate)([l.attr],kr.prototype,"autocomplete",void 0),(0,w.__decorate)([l.attr],kr.prototype,"autocapitalize",void 0),(0,w.__decorate)([l.attr],kr.prototype,"step",void 0);const Tr={mode:"open",delegatesFocus:!0},Lr={},Ar=kr.compose(Object.assign({baseName:"text-field",template:Or,styles:_r,shadowOptions:Tr},Lr)),Rr=l.css`
2277
+ `;class Rr extends s.TextField{constructor(){super(...arguments),this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,w.__decorate)([l.attr],Rr.prototype,"autocomplete",void 0),(0,w.__decorate)([l.attr],Rr.prototype,"autocapitalize",void 0),(0,w.__decorate)([l.attr],Rr.prototype,"step",void 0);const Er={mode:"open",delegatesFocus:!0},Nr={},Ir=Rr.compose(Object.assign({baseName:"text-field",template:Ar,styles:Lr,shadowOptions:Er},Nr)),Mr=l.css`
2225
2278
  @keyframes append-animate {
2226
2279
  from {
2227
2280
  transform: translateX(100%);
@@ -2322,12 +2375,12 @@
2322
2375
  .close-icon svg {
2323
2376
  cursor: pointer;
2324
2377
  }
2325
- `,Er=l.html`
2378
+ `,Hr=l.html`
2326
2379
  <div class="toast ${e=>e.deleteAnimation}" ${(0,l.ref)("toast")}>
2327
2380
  <div class="content-wrapper">
2328
2381
  <div part="top" class="top">
2329
2382
  <slot name="top"></slot>
2330
- <div class="close-icon" @click=${e=>e.close()}>${No()}</div>
2383
+ <div class="close-icon" @click=${e=>e.close()}>${ai()}</div>
2331
2384
  </div>
2332
2385
  <div part="content" class="content">
2333
2386
  <slot name="content"></slot>
@@ -2340,11 +2393,11 @@
2340
2393
  </div>
2341
2394
  </div>
2342
2395
  </div>
2343
- `,Nr={mode:"open",delegatesFocus:!0},Mr={};class Ir extends n.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.__decorate)([l.observable],Ir.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Ir.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Ir.prototype,"autoClose",void 0);const Pr=Ir.compose(Object.assign({baseName:"toast",styles:Rr,template:Er,shadowOptions:Nr},Mr)),Hr=(e,t)=>l.css`
2396
+ `,Pr={mode:"open",delegatesFocus:!0},jr={};class Br extends n.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.__decorate)([l.observable],Br.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Br.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Br.prototype,"autoClose",void 0);const Gr=Br.compose(Object.assign({baseName:"toast",styles:Mr,template:Hr,shadowOptions:Pr},jr)),Vr=(e,t)=>l.css`
2344
2397
  ${(0,s.toolbarStyles)(e,t)}
2345
- `,Br=(e,t)=>(0,n.toolbarTemplate)(e,t);class jr extends s.Toolbar{}const Gr=void 0,zr={},Vr=jr.compose(Object.assign({baseName:"toolbar",template:Br,styles:Hr,shadowOptions:Gr},zr)),Ur=(e,t)=>l.css`
2398
+ `,zr=(e,t)=>(0,n.toolbarTemplate)(e,t);class Ur extends s.Toolbar{}const Yr=void 0,Wr={},qr=Ur.compose(Object.assign({baseName:"toolbar",template:zr,styles:Vr,shadowOptions:Yr},Wr)),Xr=(e,t)=>l.css`
2346
2399
  ${(0,s.tooltipStyles)(e,t)}
2347
- `,Yr=(e,t)=>(0,n.tooltipTemplate)(e,t);class Wr extends s.Tooltip{}const qr=void 0,Xr={},Kr=Wr.compose(Object.assign({baseName:"tooltip",template:Yr,styles:Ur,shadowOptions:qr},Xr)),Zr=(e,t)=>l.css`
2400
+ `,Kr=(e,t)=>(0,n.tooltipTemplate)(e,t);class Zr extends s.Tooltip{}const Qr=void 0,Jr={},ed=Zr.compose(Object.assign({baseName:"tooltip",template:Kr,styles:Xr,shadowOptions:Qr},Jr)),td=(e,t)=>l.css`
2348
2401
  ${(0,s.treeItemStyles)(e,t)}
2349
2402
  :host {
2350
2403
  --focus-stroke-width: 0;
@@ -2361,9 +2414,9 @@
2361
2414
  .positioning-region {
2362
2415
  height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
2363
2416
  }
2364
- `,Qr=(e,t)=>(0,n.treeItemTemplate)(e,t);class Jr extends s.TreeItem{}const ed=void 0,td={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>'},od=Jr.compose(Object.assign({baseName:"tree-item",template:Qr,styles:Zr,shadowOptions:ed},td)),id=(e,t)=>l.css`
2417
+ `,od=(e,t)=>(0,n.treeItemTemplate)(e,t);class id extends s.TreeItem{}const ad=void 0,nd={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>'},sd=id.compose(Object.assign({baseName:"tree-item",template:od,styles:td,shadowOptions:ad},nd)),ld=(e,t)=>l.css`
2365
2418
  ${(0,s.treeViewStyles)(e,t)}
2366
- `,ad=(e,t)=>(0,n.treeViewTemplate)(e,t);class nd extends n.TreeView{}const sd=void 0,ld={},rd=nd.compose(Object.assign({baseName:"tree-view",template:ad,styles:id,shadowOptions:sd},ld)),dd=(e,t)=>l.css`
2419
+ `,rd=(e,t)=>(0,n.treeViewTemplate)(e,t);class dd extends n.TreeView{}const cd=void 0,ud={},pd=dd.compose(Object.assign({baseName:"tree-view",template:rd,styles:ld,shadowOptions:cd},ud)),hd=(e,t)=>l.css`
2367
2420
  .container {
2368
2421
  position: relative;
2369
2422
  width: 100%;
@@ -2383,7 +2436,7 @@
2383
2436
  overflow: hidden;
2384
2437
  text-overflow: ellipsis;
2385
2438
  }
2386
- `,cd=e=>l.html`
2439
+ `,md=e=>l.html`
2387
2440
  <div class="container" value=${e=>e.value}>
2388
2441
  <${e}-text-field
2389
2442
  class="url-input"
@@ -2398,11 +2451,11 @@
2398
2451
  <a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
2399
2452
  `)}
2400
2453
  </div>
2401
- `,ud=l.html`
2402
- ${e=>cd(ne(e))}
2403
- `,pd=void 0,hd={};class md extends s.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.__decorate)([l.observable],md.prototype,"value",void 0),(0,w.__decorate)([l.observable],md.prototype,"focused",void 0);const vd=md.compose(Object.assign({baseName:"url-input",template:ud,styles:dd,shadowOptions:pd},hd)),gd={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:O,foundationAnchor:E,foundationAnchoredRegion:B,foundationAvatar:W,foundationBadge:J,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ee,foundationCard:Be,foundationCheckbox:Ye,foundationCombobox:et,foundationConnectionIndicator:st,foundationDataGrid:pt,foundationDataGridCell:ft,foundationDataGridRow:$t,foundationDatePicker:Gt,foundationDesignSystemProvider:Ao,foundationDialog:Go,foundationDisclosure:qo,foundationDivider:ei,foundationDropdownMenu:li,foundationErrorBoundary:Oi,foundationErrorBanner:pi,foundationErrorDialog:Ei,foundationFileUpload:sa,foundationFilter:fa,foundationFilterBar:Ca,foundationFlexLayout:Ea,foundationFlipper:Ba,foundationFlyout:qa,foundationGridLayout:an,foundationGridLayoutItem:dn,foundationHorizontalScroll:vn,foundationIcon:_n,foundationListbox:Rn,foundationListboxOption:Hn,foundationMenu:Un,foundationMenuItem:Zn,foundationModal:is,foundationMultiselect:xs,foundationNumberField:Os,foundationProgress:Bs,foundationPopper:Es,foundationProgressRing:Ys,foundationRadio:Qs,foundationRadioGroup:al,foundationSegmentedControl:cl,foundationSegmentedItem:gl,foundationSelect:$l,foundationSkeleton:Ol,foundationSlider:Ml,foundationSliderLabel:Gl,foundationSnackbar:ql,foundationSwitch:er,foundationTab:sr,foundationTabPanel:pr,foundationTabs:br,foundationTextArea:Sr,foundationTextField:Ar,foundationToast:Pr,foundationToolbar:Vr,foundationTooltip:Kr,foundationTreeItem:od,foundationTreeView:rd,foundationUrlInput:vd,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function fd(e){return new Proxy(e,{get:(e,t,...o)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...o)}})}const bd=(e,t="foundation")=>{e&&uo(i,a,e);return fd(n.DesignSystem.getOrCreate(e).withPrefix(t))};class yd 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 wd=class extends ms{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.__awaiter)(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(){te.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){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};wd=(0,w.__decorate)([(0,l.customElement)({name:"data-grid-datasource"})],wd);const xd=l.html`
2454
+ `,vd=l.html`
2455
+ ${e=>md(ne(e))}
2456
+ `,gd=void 0,fd={};class bd extends s.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.__decorate)([l.observable],bd.prototype,"value",void 0),(0,w.__decorate)([l.observable],bd.prototype,"focused",void 0);const yd=bd.compose(Object.assign({baseName:"url-input",template:vd,styles:hd,shadowOptions:gd},fd)),wd={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:O,foundationAnchor:E,foundationAnchoredRegion:j,foundationAvatar:W,foundationBadge:J,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ee,foundationCard:je,foundationCheckbox:Ye,foundationCombobox:St,foundationConnectionIndicator:kt,foundationDataGrid:Nt,foundationDataGridCell:jt,foundationDataGridRow:Ut,foundationDatePicker:po,foundationDesignSystemProvider:ti,foundationDialog:ui,foundationDisclosure:fi,foundationDivider:Fi,foundationDropdownMenu:Ti,foundationErrorBoundary:Ki,foundationErrorBanner:Ni,foundationErrorDialog:oa,foundationFileUpload:ba,foundationFilter:ka,foundationFilterBar:Ha,foundationFlexLayout:Ya,foundationFlipper:Qa,foundationFlyout:ln,foundationGridLayout:gn,foundationGridLayoutItem:xn,foundationHorizontalScroll:Cn,foundationIcon:Pn,foundationListbox:Un,foundationListboxOption:Zn,foundationMenu:is,foundationMenuItem:ds,foundationModal:vs,foundationMultiselect:Ds,foundationNumberField:As,foundationProgress:zs,foundationPopper:Hs,foundationProgressRing:Ks,foundationRadio:ol,foundationRadioGroup:rl,foundationSegmentedControl:ml,foundationSegmentedItem:wl,foundationSelect:_l,foundationSkeleton:Al,foundationSlider:jl,foundationSliderLabel:Yl,foundationSnackbar:Ql,foundationSwitch:ar,foundationTab:cr,foundationTabPanel:gr,foundationTabs:$r,foundationTextArea:Or,foundationTextField:Ir,foundationToast:Gr,foundationToolbar:qr,foundationTooltip:ed,foundationTreeItem:sd,foundationTreeView:pd,foundationUrlInput:yd,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function xd(e){return new Proxy(e,{get:(e,t,...o)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...o)}})}const $d=(e,t="foundation")=>{e&&Eo(i,a,e);return xd(n.DesignSystem.getOrCreate(e).withPrefix(t))};class Fd 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 Sd=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.__awaiter)(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(){te.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){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};Sd=(0,w.__decorate)([(0,l.customElement)({name:"data-grid-datasource"})],Sd);const Dd=l.html`
2404
2457
  <template ${(0,l.ref)("notificationListener")}>
2405
2458
  <slot></slot>
2406
2459
  </template>
2407
- `;var $d;!function(e){e.NOTIFICATION_EVENT="notification-event"}($d||($d={}));const Fd=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"}`},Sd=(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},Dd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Cd=(0,ee.createLogger)("foundation-notifications"),_d={alert:e=>{alert(Fd(e))},toast:(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m,v,g,f,b,y;const w=t.split("-")[0],x=Sd("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.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`),F=document.createElement("div");F.setAttribute("slot","top"),F.textContent=e.title;const S=document.createElement("div");S.setAttribute("slot","content"),S.textContent=(null==e?void 0:e.body)||"";const D=document.createElement("div");let C;D.setAttribute("slot","date"),D.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.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),C.appendChild(o)}))),$.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&$.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.closeTimeout)&&$.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),$.appendChild(F),$.appendChild(S),$.appendChild(D),C&&$.appendChild(C),x.appendChild($)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Sd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Sd("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-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 Dd()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},Od=(e,t,o)=>{var i,a;Cd.log({message:Fd(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ee.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{_d[i]&&_d[i](e,t,o)}))};class kd{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=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.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in ee.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},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 Td{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}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=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)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const Ld={mode:"open",delegatesFocus:!0};class Ad extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener($d.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Od(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,ps.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{var t;const{HEADER:o,MESSAGE:i,NOTIFY_SEVERITY:a}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:t})=>!t||t({details:e})))),Od((new kd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Td).withDetails(e).withType(null==a?void 0:a.toLowerCase()).withButtons(l).withAutoClose(null!==(t=!!s)&&void 0!==t?t:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}))}}(0,w.__decorate)([l.observable],Ad.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Ad.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Ad.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],Ad.prototype,"toastButtons",void 0),(0,w.__decorate)([mi.Yh],Ad.prototype,"datasource",void 0);const Rd=Ad.compose({baseName:"notification-listener",template:xd,shadowOptions:Ld});var Ed;let Nd=Ed=class extends ms{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){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.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||te.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Ed||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));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)}));const i=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Nd.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Nd.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],Nd.prototype,"labelFormatter",void 0),Nd=Ed=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],Nd);const Md=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return l.FASTElement.define(class extends e{},i(o))};function Id(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 Pd=o(1279);let Hd=class extends(Pd.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Hd=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],Hd);const Bd=()=>bd().register(gd)}}]);
2408
- //# sourceMappingURL=701.0b853a354543bcc647af5c250a46f6b4.js.map
2460
+ `;var _d;!function(e){e.NOTIFICATION_EVENT="notification-event"}(_d||(_d={}));const Cd=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"}`},Od=(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},kd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Td=(0,ee.createLogger)("foundation-notifications"),Ld={alert:e=>{alert(Cd(e))},toast:(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m,v,g,f,b,y;const w=t.split("-")[0],x=Od("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.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`),F=document.createElement("div");F.setAttribute("slot","top"),F.textContent=e.title;const S=document.createElement("div");S.setAttribute("slot","content"),S.textContent=(null==e?void 0:e.body)||"";const D=document.createElement("div");let _;D.setAttribute("slot","date"),D.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(_=document.createElement("div"),_.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),_.appendChild(o)}))),$.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&$.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.closeTimeout)&&$.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),$.appendChild(F),$.appendChild(S),$.appendChild(D),_&&$.appendChild(_),x.appendChild($)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Od("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Od("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-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 kd()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},Ad=(e,t,o)=>{var i,a;Td.log({message:Cd(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ee.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Ld[i]&&Ld[i](e,t,o)}))};class Rd{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=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.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in ee.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},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 Ed{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}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=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)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const Nd={mode:"open",delegatesFocus:!0};class Id extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(_d.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Ad(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,Qe.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{var t;const{HEADER:o,MESSAGE:i,NOTIFY_SEVERITY:a}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:t})=>!t||t({details:e})))),Ad((new Rd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Ed).withDetails(e).withType(null==a?void 0:a.toLowerCase()).withButtons(l).withAutoClose(null!==(t=!!s)&&void 0!==t?t:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}))}}(0,w.__decorate)([l.observable],Id.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Id.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Id.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],Id.prototype,"toastButtons",void 0),(0,w.__decorate)([et.Yh],Id.prototype,"datasource",void 0);const Md=Id.compose({baseName:"notification-listener",template:Dd,shadowOptions:Nd}),Hd=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return l.FASTElement.define(class extends e{},i(o))};function Pd(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 jd=o(1279);let Bd=class extends(jd.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Bd=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],Bd);const Gd=()=>$d().register(wd)}}]);
2461
+ //# sourceMappingURL=51.798cdb9aceaf11f47e12e5d1888c0854.js.map