@genesislcap/design-system-configurator 14.373.2-MX-499.3 → 14.373.2-MX-499.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/110.110.ddf26ae506131bab2ddd.js +131 -0
  2. package/dist/110.7e20a2b648d2484216f576ee3373601f.js.map +1 -0
  3. package/dist/359.3251e92dacbbae50c0067b447f49a688.js.map +1 -0
  4. package/dist/359.359.f5900b37a97ff746d4bd.js +2 -0
  5. package/dist/374.374.68d0546328c19292b57c.js +5146 -0
  6. package/dist/374.685ab5ac9960c62b024f7ede813aad67.js.map +1 -0
  7. package/dist/382.382.70135d77dc896dededa8.js +13 -0
  8. package/dist/382.7d8d80f08d8a7e2b06467366ed231a1c.js.map +1 -0
  9. package/dist/{588.588.b954832e0228557f5751.js → 445.445.97400d0ba7e0ccc6e672.js} +3 -3
  10. package/dist/{588.7048bd4bd0c3f3085dddf60a28cf09e4.js.map → 445.f33bfdd3c7659b76b08f8106d436c540.js.map} +1 -1
  11. package/dist/535.3ce19bad0d5e4b228991b85c6e7f0b75.js.map +1 -0
  12. package/dist/535.535.efe402e29cac1d3bacc6.js +775 -0
  13. package/dist/{417.417.b9aa1af5e028e65b7fdc.js → 601.601.9cccf3a26bdb9622aa21.js} +59 -59
  14. package/dist/601.feefbfc2292c53dfcb6055ca19fe6883.js.map +1 -0
  15. package/dist/{714.65811bc86f4924fc0def931673ca1576.js.map → 705.6967cc91e1cb96bab531a53a432aa26a.js.map} +1 -1
  16. package/dist/705.705.db7257000f97995fb284.js +2 -0
  17. package/dist/759.0c1fcd0684d1c65e1315b922ca4c2159.js.map +1 -0
  18. package/dist/{445.445.75bcad5095c175e4a251.js → 759.759.43ca2d2aa2ae607d2aa4.js} +252 -241
  19. package/dist/{826.826.117e2d8d8da71c18415f.js → 826.826.9f5e19d2e8bc3c3cdc0d.js} +2 -2
  20. package/dist/835.09a2c98d7d68ff7f030a208135bbf812.js.map +1 -0
  21. package/dist/835.835.c45b1173559d79231a6b.js +2 -0
  22. package/dist/876.4b1a1261b019a55b536b90f1701ffb4e.js.map +1 -0
  23. package/dist/{816.816.3e7440fbd6718a8414c2.js → 876.876.f9ed60559e9b619baa5d.js} +377 -377
  24. package/dist/887.012016c575e29126a68b2a4fe70a8cb7.js.map +1 -0
  25. package/dist/887.887.b672b67e697a8aa461e1.js +3 -0
  26. package/dist/designSystemConfigurator.d463ad86672fb0fdcc6c89219a1e0549.js.map +1 -0
  27. package/dist/index.html +1 -1
  28. package/dist/main.52f9d7e8a5147ea36882308d288f2ba8.js.map +1 -0
  29. package/dist/main.a1565d24805b6094992a.js +2 -0
  30. package/dist/npm.numeral.08cacf3f8d341ee2ecc5043544e76673.js.map +1 -0
  31. package/dist/npm.numeral.74.6985f31d5772375ef0c8.js +3 -0
  32. package/dist/npm.numeral.74.6985f31d5772375ef0c8.js.LICENSE.txt +14 -0
  33. package/dist/remoteEntry.js +2 -2
  34. package/package.json +13 -13
  35. package/dist/151.151.0a43fc3e6414436d844f.js +0 -2
  36. package/dist/151.df7f6c518aba4dc761325e73decb24ee.js.map +0 -1
  37. package/dist/227.091b797b296b199e6c46dc176a8c7401.js.map +0 -1
  38. package/dist/227.227.7bbe4753e644f6b4337e.js +0 -3
  39. package/dist/242.242.43bdc8eeffbc0b42c358.js +0 -786
  40. package/dist/242.3f2d1c0429112a375ce6af7d9b77101d.js.map +0 -1
  41. package/dist/29.0a1ece57d1b5ca67cd47edb954da1bcc.js.map +0 -1
  42. package/dist/29.29.7e95d12d2aaf21c03e0d.js +0 -4794
  43. package/dist/347.347.07dc76528ef935608a82.js +0 -2
  44. package/dist/347.dc20c3579c9073997e093bb6d65c2cde.js.map +0 -1
  45. package/dist/417.145fa1c3801452bd5746b628ab30a25f.js.map +0 -1
  46. package/dist/445.c6daee010fbecacac70859b2a968ea96.js.map +0 -1
  47. package/dist/714.714.4bfc6425e1dbfb7c70c2.js +0 -2
  48. package/dist/816.6dbf1a0a1072650412d6fe5f8bb168c1.js.map +0 -1
  49. package/dist/designSystemConfigurator.52124d26821144aeeb1023c072b2baff.js.map +0 -1
  50. package/dist/main.65d1736ce088b29a0d7b.js +0 -2
  51. package/dist/main.7ce2ee5391e617c26d8c4105bd621f74.js.map +0 -1
  52. /package/dist/{588.588.b954832e0228557f5751.js.LICENSE.txt → 445.445.97400d0ba7e0ccc6e672.js.LICENSE.txt} +0 -0
  53. /package/dist/{826.826.117e2d8d8da71c18415f.js.LICENSE.txt → 826.826.9f5e19d2e8bc3c3cdc0d.js.LICENSE.txt} +0 -0
  54. /package/dist/{227.227.7bbe4753e644f6b4337e.js.LICENSE.txt → 887.887.b672b67e697a8aa461e1.js.LICENSE.txt} +0 -0
@@ -1,6 +1,6 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[816],{31274:(e,t,i)=>{i.d(t,{u:()=>n});var o=i(60416);const n=(e,t,i)=>{(0,o.u_)(e);const n=t.split("-")[0],a=document.createElement(`${n}-dialog`),s=i?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(i):(0,o.jE)("dialog-container",t);s.appendChild(a),a.notification=e,a.show()}},60416:(e,t,i)=>{i.d(t,{cL:()=>h,jE:()=>u,uP:()=>d,u_:()=>c});var o=i(30314),n=i(52945),a=i(68424);const s=(0,o.createLogger)("foundation-notifications");let r=null;const l=new Map,d=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.body)&&void 0!==i?i:"Something went wrong"}`},c=e=>{var t,i;s.log({message:d(e),level:(t=e,(null==t?void 0:t.logLevel)||(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.logLevel)||o.LogLevel.Debug)})},u=(e,t)=>{let i=document.querySelector(`#${e}`);if(!i)if(l.has(e))i=l.get(e);else{const t=(0,n.fI)(document).find(t=>t.id===e);t&&(i=t,l.set(e,t))}if(!i){i=document.createElement("div"),i.setAttribute("id",e),i.style.zIndex="9999";const{element:t,prefix:o}=(0,a.DW)(document.body,"rapid");if(t)t.appendChild(i),r=t;else if(r)r.appendChild(i);else{const e=document.createElement(`${o}-design-system-provider`);e.appendChild(i),document.body.appendChild(e),r=e}}return i},h=e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return p()},p=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e}},70997:(e,t,i)=>{function o(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),a=o(i);return(t,i)=>e(t,i)?n(t,i):a(t,i)}i.d(t,{q:()=>o})},74816:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>te,Anchor:()=>ae,AnchoredRegion:()=>ue,Avatar:()=>be,Badge:()=>Se,Banner:()=>Fe,BaseDatasource:()=>M,BaseFileComponent:()=>la,Breadcrumb:()=>Me,BreadcrumbItem:()=>Be,Button:()=>qe,COMBO_INPUT_MIN_LENGTH:()=>Jd,CSSVarsTokenMapper:()=>Io,Calendar:()=>et,Card:()=>st,CategorizedMultiselect:()=>Rt,Checkbox:()=>Lt,Combobox:()=>Gt,ConnectionIndicator:()=>Xt,DEFUALT_FILTER_BAR_COLUMNS:()=>qa,DataGrid:()=>ei,DataGridCell:()=>ai,DataGridDatasource:()=>ap,DataGridRow:()=>ci,DatePicker:()=>Mi,DefaultRouter:()=>uv,DesignTokensObservable:()=>Bi,Dialog:()=>Xo,DialogElement:()=>Ko,Disclosure:()=>en,Divider:()=>rn,DropdownMenu:()=>gn,EnvironmentIndicator:()=>Dn,ErrorBanner:()=>Ln,ErrorBoundary:()=>Kn,ErrorBoundaryEvent:()=>Hn,ErrorDialog:()=>ta,ExpressionBuilderConfig:()=>a,ExpressionBuilderCore:()=>Sm,FaPrefixFromStyle:()=>Vs,FileReader:()=>ma,FileUpload:()=>ka,Filter:()=>Pa,FilterBar:()=>Ka,FilterEvents:()=>za,FlexLayout:()=>os,FlexMediaQueriesEnum:()=>Ja,Flipper:()=>rs,Flyout:()=>vs,FoundationDesignSystemProvider:()=>zo,FoundationExpressionBuilder:()=>lm,FoundationRouteCollection:()=>Sv,FoundationRouteNav:()=>Cv,FoundationRouter:()=>kv,FoundationRouterConfiguration:()=>Ev,FoundationRuleExpressionBuilder:()=>zm,FoundationValueExpressionBuilder:()=>Vm,GenerateNavigationPathEventType:()=>Tv,GridLayout:()=>Os,GridLayoutItem:()=>Rs,GridMediaQueriesEnum:()=>Cs,HorizontalScroll:()=>Ls,INPUT_MIN_LENGTH:()=>Qd,Icon:()=>qs,Listbox:()=>Js,ListboxOption:()=>nr,Menu:()=>cr,MenuItem:()=>gr,Modal:()=>Sr,Multiselect:()=>$t,MultiselectDatasource:()=>bt,NavigateToEventType:()=>Ov,NotificationListener:()=>Km,NumberField:()=>Hr,OptionsDatasource:()=>ft,Popper:()=>Ol,Position:()=>ct,Progress:()=>cl,ProgressRing:()=>Fl,Radio:()=>Hl,RadioGroup:()=>jl,Router:()=>cv,RuleExpression:()=>Em,SCROLL_TIMEOUT:()=>Xd,SECTION_NAVIGATOR_EVENTS:()=>mc,SNACKBAR_CLOSE_TIMEOUT:()=>ru,SNACKBAR_EVENTS_NAMES:()=>lu,SNACKBAR_TYPES:()=>su,SNACKBAR_TYPE_DEFAULT:()=>au,Scheduler:()=>Ql,SchedulerCronBuilder:()=>Nd,SchedulerTimezone:()=>Ud,SearchBar:()=>ec,SearchBarCombobox:()=>sc,SectionNavigator:()=>fc,SegmentedControl:()=>$c,SegmentedItem:()=>Ic,Select:()=>Lc,Skeleton:()=>Uc,Slider:()=>Kc,SliderLabel:()=>tu,Snackbar:()=>pu,StackingIcons:()=>fu,StatusPill:()=>xu,Stepper:()=>Fv,StepperTab:()=>Tu,StepperTabPanel:()=>Fu,Switch:()=>Hu,SystemHealthOverlay:()=>bl,Tab:()=>ju,TabPanel:()=>Xu,Tabs:()=>ih,TextArea:()=>lh,TextField:()=>gh,Toast:()=>Eh,Toolbar:()=>Ih,Tooltip:()=>Lh,TreeItem:()=>Uh,TreeView:()=>Wh,UrlInput:()=>ip,accentFillActive:()=>l.accentFillActive,accentFillActiveDelta:()=>l.accentFillActiveDelta,accentFillFocus:()=>l.accentFillFocus,accentFillFocusDelta:()=>l.accentFillFocusDelta,accentFillHover:()=>l.accentFillHover,accentFillHoverDelta:()=>l.accentFillHoverDelta,accentFillRest:()=>l.accentFillRest,accentFillRestDelta:()=>l.accentFillRestDelta,accentForegroundActive:()=>l.accentForegroundActive,accentForegroundActiveDelta:()=>l.accentForegroundActiveDelta,accentForegroundFocus:()=>l.accentForegroundFocus,accentForegroundFocusDelta:()=>l.accentForegroundFocusDelta,accentForegroundHover:()=>l.accentForegroundHover,accentForegroundHoverDelta:()=>l.accentForegroundHoverDelta,accentForegroundRest:()=>l.accentForegroundRest,accentForegroundRestDelta:()=>l.accentForegroundRestDelta,accentPalette:()=>l.accentPalette,accentPaletteValue:()=>xo,actionsMenuBaseStyles:()=>w,applyCustomTokens:()=>qi,baseComponents:()=>np,baseHeightMultiplier:()=>l.baseHeightMultiplier,baseLayerLuminance:()=>l.baseLayerLuminance,baseLayerLuminanceValue:()=>So,black:()=>oo,bodyFont:()=>l.bodyFont,categorizedMultiselectStyles:()=>Ot,categorizedMultiselectTemplate:()=>kt,clientOperators:()=>Tm,closeIcon:()=>da,configureDesignSystem:()=>to,configureEnvironmentIndicator:()=>kn,controlCornerRadius:()=>l.controlCornerRadius,controlCornerRadiusValue:()=>Oo,createDesignSystemProxy:()=>ml,createFormData:()=>wa,crossIcon:()=>Yd,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>y,defaultAnchorConfig:()=>re,defaultAnchoredRegionConfig:()=>pe,defaultAvatarConfig:()=>Ce,defaultBadgeConfig:()=>Oe,defaultBreadcrumbConfig:()=>He,defaultBreadcrumbItemConfig:()=>je,defaultButtonConfig:()=>Xe,defaultCalendarConfig:()=>it,defaultCardConfig:()=>lt,defaultCategorizedMultiselectConfig:()=>Dt,defaultCheckboxConfig:()=>_t,defaultComboboxConfig:()=>Vt,defaultConfig:()=>Zl,defaultCronBuilderConfig:()=>Md,defaultDataGridCellConfig:()=>ri,defaultDataGridConfig:()=>ii,defaultDataGridRowConfig:()=>hi,defaultDatePickerConfig:()=>Li,defaultDialogConfig:()=>qo,defaultDisclosureConfig:()=>on,defaultDividerConfig:()=>dn,defaultFileUploadConfig:()=>Da,defaultFillColor:()=>ao,defaultFlexLayoutConfig:()=>is,defaultFlipperConfig:()=>ds,defaultFlyoutConfig:()=>fs,defaultGridLayoutConfig:()=>Ss,defaultGridLayoutItemConfig:()=>Ds,defaultHorizontalScrollConfig:()=>_s,defaultIconConfig:()=>js,defaultListboxConfig:()=>er,defaultListboxOptionConfig:()=>sr,defaultMenuConfig:()=>hr,defaultMenuItemConfig:()=>br,defaultModalConfig:()=>$r,defaultMultiselectConfig:()=>xt,defaultNavItemPredicate:()=>wv,defaultNeutralForegroundContrast:()=>yo,defaultNumberFieldConfig:()=>Pr,defaultPlacementIndexPadding:()=>xv,defaultProgressConfig:()=>hl,defaultProgressRingConfig:()=>Nl,defaultRadioConfig:()=>Pl,defaultRadioGroupConfig:()=>Yl,defaultSearchBarComboboxConfig:()=>lc,defaultSearchBarConfig:()=>ic,defaultSectionNavigatorConfig:()=>yc,defaultSegmentedControlConfig:()=>Ec,defaultSegmentedItemConfig:()=>Rc,defaultSelectConfig:()=>_c,defaultSkeletonConfig:()=>Gc,defaultSliderConfig:()=>Qc,defaultSliderLabelConfig:()=>ou,defaultStepperConfig:()=>Nv,defaultStepperTabConfig:()=>Iu,defaultStepperTabPanelConfig:()=>Nu,defaultSwitchConfig:()=>Pu,defaultSystemHealthOverlayConfig:()=>xl,defaultTabConfig:()=>Yu,defaultTabPanelConfig:()=>Ju,defaultTabsConfig:()=>nh,defaultTextAreaConfig:()=>ch,defaultTextFieldConfig:()=>bh,defaultTimezoneConfig:()=>Gd,defaultToastConfig:()=>Sh,defaultToolbarConfig:()=>Rh,defaultTooltipConfig:()=>_h,defaultTreeItemConfig:()=>Gh,defaultTreeViewConfig:()=>Kh,defaultUrlInputConfig:()=>tp,defineFactory:()=>Qm,density:()=>l.density,designToken:()=>Vi,designTokensMap:()=>Zi,designUnit:()=>l.designUnit,designUnitValue:()=>To,direction:()=>l.direction,directionValue:()=>Eo,disabledOpacity:()=>l.disabledOpacity,downloadFile:()=>$a,dropdownMenuBaseStyles:()=>un,environmentIndicatorStyles:()=>yn,errorDialogTemplate:()=>Jn,extractMenuItems:()=>pn,faSizeValueDefault:()=>Ys,faSizeValues:()=>Ws,fileReaderStyles:()=>ca,fileReaderTemplate:()=>pa,fillColor:()=>l.fillColor,filterBarTemplate:()=>Va,findParentRouter:()=>vv,findRouter:()=>mv,findTopLevelRouter:()=>gv,flyoutAnimationTime:()=>us,focusStrokeInner:()=>l.focusStrokeInner,focusStrokeOuter:()=>l.focusStrokeOuter,focusStrokeWidth:()=>l.focusStrokeWidth,foregroundOnAccentActive:()=>l.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>l.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>l.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>l.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>l.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>l.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>l.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>l.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>wu,foundationAccordion:()=>m,foundationAccordionItem:()=>C,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>g,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>h,foundationAccordionStyles:()=>c,foundationAccordionTemplate:()=>r,foundationActionsMenu:()=>ie,foundationActionsMenuStyles:()=>x,foundationActionsMenuTemplate:()=>Z,foundationAnchor:()=>le,foundationAnchorShadowOptions:()=>se,foundationAnchorStyles:()=>ne,foundationAnchorTemplate:()=>oe,foundationAnchoredRegion:()=>me,foundationAnchoredRegionShadowOptions:()=>he,foundationAnchoredRegionStyles:()=>ce,foundationAnchoredRegionTemplate:()=>de,foundationAvatar:()=>we,foundationAvatarShadowOptions:()=>ye,foundationAvatarStyles:()=>fe,foundationAvatarTemplate:()=>ve,foundationBadge:()=>Te,foundationBadgeShadowOptions:()=>Ee,foundationBadgeStyles:()=>$e,foundationBadgeTemplate:()=>xe,foundationBanner:()=>Ae,foundationBannerShadowOptions:()=>Re,foundationBannerStyles:()=>ke,foundationBannerTemplate:()=>De,foundationBreadcrumb:()=>ze,foundationBreadcrumbItem:()=>Ve,foundationBreadcrumbItemShadowOptions:()=>Ge,foundationBreadcrumbItemStyles:()=>Ue,foundationBreadcrumbItemTemplate:()=>Pe,foundationBreadcrumbShadowOptions:()=>_e,foundationBreadcrumbStyles:()=>Le,foundationBreadcrumbTemplate:()=>Ne,foundationButton:()=>Qe,foundationButtonShadowOptions:()=>Ke,foundationButtonStyles:()=>We,foundationButtonTemplate:()=>Ye,foundationCalendar:()=>ot,foundationCalendarShadowOptions:()=>tt,foundationCalendarStyles:()=>Je,foundationCalendarTemplate:()=>Ze,foundationCard:()=>dt,foundationCardShadowOptions:()=>rt,foundationCardStyles:()=>at,foundationCardTemplate:()=>nt,foundationCategorizedMultiselect:()=>Ft,foundationCategorizedMultiselectShadowOptions:()=>It,foundationCheckbox:()=>Ht,foundationCheckboxShadowOptions:()=>Mt,foundationCheckboxStyles:()=>Nt,foundationCheckboxTemplate:()=>At,foundationCombobox:()=>Yt,foundationComboboxShadowOptions:()=>jt,foundationComboboxStyles:()=>zt,foundationComboboxTemplate:()=>Pt,foundationConnectionIndicator:()=>Qt,foundationConnectionIndicatorStyles:()=>qt,foundationConnectionIndicatorTemplate:()=>Kt,foundationDataGrid:()=>oi,foundationDataGridCell:()=>li,foundationDataGridCellShadowOptions:()=>si,foundationDataGridCellStyles:()=>ni,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>pi,foundationDataGridRowShadowOptions:()=>ui,foundationDataGridRowStyles:()=>di,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>ti,foundationDataGridStyles:()=>Zt,foundationDataGridTemplate:()=>Jt,foundationDatePicker:()=>_i,foundationDatePickerShadowOptions:()=>Ni,foundationDatePickerStyles:()=>mi,foundationDatePickerTemplate:()=>fi,foundationDesignSystemProvider:()=>Po,foundationDialog:()=>Qo,foundationDialogShadowOptions:()=>Wo,foundationDialogStyles:()=>Uo,foundationDialogTemplate:()=>Vo,foundationDisclosure:()=>nn,foundationDisclosureShadowOptions:()=>tn,foundationDisclosureStyles:()=>Zo,foundationDisclosureTemplate:()=>Jo,foundationDivider:()=>cn,foundationDividerShadowOptions:()=>ln,foundationDividerStyles:()=>sn,foundationDividerTemplate:()=>an,foundationDropdownMenu:()=>fn,foundationDropdownMenuStyles:()=>hn,foundationDropdownMenuTemplate:()=>vn,foundationEnvironmentIndicator:()=>Rn,foundationEnvironmentIndicatorTemplate:()=>Cn,foundationErrorBanner:()=>Mn,foundationErrorBannerShadowOptions:()=>Nn,foundationErrorBannerTemplate:()=>An,foundationErrorBoundary:()=>Xn,foundationErrorBoundaryShadowOptions:()=>qn,foundationErrorBoundaryTemplate:()=>_n,foundationErrorDialog:()=>ia,foundationErrorDialogShadowOptions:()=>ea,foundationErrorDialogStyles:()=>Zn,foundationFileReader:()=>va,foundationFileReaderStyles:()=>ua,foundationFileUpload:()=>Ra,foundationFileUploadShadowOptions:()=>Ia,foundationFileUploadStyles:()=>ba,foundationFileUploadTemplate:()=>Ca,foundationFilter:()=>Ua,foundationFilterBar:()=>Xa,foundationFilterBarStyles:()=>Ba,foundationFilterBarTemplate:()=>Ya,foundationFilterStyles:()=>Fa,foundationFilterTemplate:()=>Ha,foundationFlexLayout:()=>ns,foundationFlexLayoutShadowOptions:()=>ts,foundationFlexLayoutStyles:()=>es,foundationFlexLayoutTemplate:()=>Qa,foundationFlipper:()=>cs,foundationFlipperShadowOptions:()=>ls,foundationFlipperStyles:()=>ss,foundationFlipperTemplate:()=>as,foundationFlyout:()=>bs,foundationFlyoutShadowOptions:()=>gs,foundationFlyoutStyles:()=>hs,foundationFlyoutTemplate:()=>ms,foundationGridLayout:()=>Ts,foundationGridLayoutItem:()=>Fs,foundationGridLayoutItemShadowOptions:()=>Is,foundationGridLayoutItemTemplate:()=>ks,foundationGridLayoutShadowOptions:()=>$s,foundationGridLayoutStyles:()=>xs,foundationGridLayoutTemplate:()=>ys,foundationHorizontalScroll:()=>Hs,foundationHorizontalScrollShadowOptions:()=>Ms,foundationHorizontalScrollStyles:()=>Ns,foundationHorizontalScrollTemplate:()=>As,foundationIcon:()=>Ks,foundationIconShadowOptions:()=>Gs,foundationIconStyles:()=>zs,foundationIconTemplate:()=>Us,foundationListbox:()=>tr,foundationListboxOption:()=>rr,foundationListboxOptionShadowOptions:()=>ar,foundationListboxOptionStyles:()=>or,foundationListboxOptionTemplate:()=>ir,foundationListboxShadowOptions:()=>Zs,foundationListboxStyles:()=>Qs,foundationListboxTemplate:()=>Xs,foundationMenu:()=>pr,foundationMenuItem:()=>yr,foundationMenuItemShadowOptions:()=>fr,foundationMenuItemStyles:()=>vr,foundationMenuItemTemplate:()=>mr,foundationMenuShadowOptions:()=>ur,foundationMenuStyles:()=>dr,foundationMenuTemplate:()=>lr,foundationModal:()=>Er,foundationModalShadowOptions:()=>xr,foundationModalStyles:()=>Cr,foundationModalTemplate:()=>wr,foundationMultiselect:()=>St,foundationMultiselectShadowOptions:()=>wt,foundationNotificationListener:()=>Xm,foundationNotificationListenerShadowOptions:()=>qm,foundationNotificationListenerTemplate:()=>Ym,foundationNumberField:()=>Ur,foundationNumberFieldShadowOptions:()=>zr,foundationNumberFieldStyles:()=>Tr,foundationNumberFieldTemplate:()=>Or,foundationPopper:()=>Il,foundationProgress:()=>pl,foundationProgressRing:()=>Ll,foundationProgressRingShadowOptions:()=>Al,foundationProgressRingStyles:()=>Rl,foundationProgressRingTemplate:()=>Dl,foundationProgressShadowOptions:()=>ul,foundationProgressStyles:()=>dl,foundationProgressTemplate:()=>ll,foundationRadio:()=>Ul,foundationRadioGroup:()=>Wl,foundationRadioGroupShadowOptions:()=>Vl,foundationRadioGroupStyles:()=>Gl,foundationRadioGroupTemplate:()=>Bl,foundationRadioShadowOptions:()=>zl,foundationRadioStyles:()=>_l,foundationRadioTemplate:()=>Ml,foundationScheduler:()=>ed,foundationSchedulerCronBuilder:()=>_d,foundationSchedulerCronBuilderShadowOptions:()=>Ld,foundationSchedulerCronBuilderTemplate:()=>Ad,foundationSchedulerShadowOptions:()=>Jl,foundationSchedulerTemplate:()=>Xl,foundationSchedulerTimezone:()=>jd,foundationSchedulerTimezoneShadowOptions:()=>Bd,foundationSchedulerTimezoneTemplate:()=>Pd,foundationSearchBar:()=>oc,foundationSearchBarCombobox:()=>dc,foundationSearchBarComboboxShadowOptions:()=>rc,foundationSearchBarComboboxStyles:()=>nc,foundationSearchBarComboboxTemplate:()=>ac,foundationSearchBarShadowOptions:()=>tc,foundationSearchBarStyles:()=>Vd,foundationSearchBarTemplate:()=>Kd,foundationSectionNavigator:()=>Cc,foundationSectionNavigatorShadowOptions:()=>bc,foundationSectionNavigatorStyles:()=>cc,foundationSectionNavigatorTemplate:()=>uc,foundationSegmentedControl:()=>Oc,foundationSegmentedControlShadowOptions:()=>Sc,foundationSegmentedControlStyles:()=>xc,foundationSegmentedControlTemplate:()=>wc,foundationSegmentedItem:()=>Fc,foundationSegmentedItemShadowOptions:()=>Dc,foundationSegmentedItemStyles:()=>kc,foundationSegmentedItemTemplate:()=>Tc,foundationSelect:()=>Hc,foundationSelectShadowOptions:()=>Mc,foundationSelectStyles:()=>Nc,foundationSelectTemplate:()=>Ac,foundationSkeleton:()=>jc,foundationSkeletonShadowOptions:()=>Bc,foundationSkeletonStyles:()=>Pc,foundationSkeletonTemplate:()=>zc,foundationSlider:()=>Jc,foundationSliderLabel:()=>nu,foundationSliderLabelShadowOptions:()=>iu,foundationSliderLabelStyles:()=>eu,foundationSliderLabelTemplate:()=>Zc,foundationSliderShadowOptions:()=>Xc,foundationSliderStyles:()=>qc,foundationSliderTemplate:()=>Wc,foundationSnackbar:()=>mu,foundationSnackbarShadowOptions:()=>hu,foundationSnackbarStyles:()=>du,foundationSnackbarTemplate:()=>uu,foundationStackingIcons:()=>bu,foundationStackingIconsStyles:()=>vu,foundationStackingIconsTemplate:()=>gu,foundationStatusPill:()=>$u,foundationStatusPillTemplate:()=>Cu,foundationStepper:()=>Lv,foundationStepperShadowOptions:()=>Av,foundationStepperStyles:()=>Rv,foundationStepperTab:()=>Du,foundationStepperTabPanel:()=>Lu,foundationStepperTabPanelShadowOptions:()=>Au,foundationStepperTabPanelTemplate:()=>Ru,foundationStepperTabShadowOptions:()=>ku,foundationStepperTabStyles:()=>Ou,foundationStepperTabTemplate:()=>Eu,foundationStepperTemplate:()=>Dv,foundationSwitch:()=>Uu,foundationSwitchShadowOptions:()=>zu,foundationSwitchStyles:()=>_u,foundationSwitchTemplate:()=>Mu,foundationSystemHealthOverlay:()=>$l,foundationSystemHealthOverlayShadowOptions:()=>wl,foundationSystemHealthOverlayStyles:()=>Cl,foundationSystemHealthOverlayTemplate:()=>yl,foundationTab:()=>Wu,foundationTabPanel:()=>Zu,foundationTabPanelShadowOptions:()=>Qu,foundationTabPanelStyles:()=>Ku,foundationTabPanelTemplate:()=>qu,foundationTabShadowOptions:()=>Vu,foundationTabStyles:()=>Gu,foundationTabTemplate:()=>Bu,foundationTabs:()=>ah,foundationTabsShadowOptions:()=>oh,foundationTabsStyles:()=>th,foundationTabsTemplate:()=>eh,foundationTextArea:()=>uh,foundationTextAreaShadowOptions:()=>dh,foundationTextAreaStyles:()=>rh,foundationTextAreaTemplate:()=>sh,foundationTextField:()=>yh,foundationTextFieldShadowOptions:()=>fh,foundationTextFieldStyles:()=>vh,foundationTextFieldTemplate:()=>hh,foundationToast:()=>Oh,foundationToastShadowOptions:()=>$h,foundationToastStyles:()=>Ch,foundationToastTemplate:()=>xh,foundationToolbar:()=>Fh,foundationToolbarShadowOptions:()=>Dh,foundationToolbarStyles:()=>kh,foundationToolbarTemplate:()=>Th,foundationTooltip:()=>Hh,foundationTooltipShadowOptions:()=>Mh,foundationTooltipStyles:()=>Nh,foundationTooltipTemplate:()=>Ah,foundationTreeItem:()=>jh,foundationTreeItemShadowOptions:()=>Bh,foundationTreeItemStyles:()=>Ph,foundationTreeItemTemplate:()=>zh,foundationTreeView:()=>Xh,foundationTreeViewShadowOptions:()=>qh,foundationTreeViewStyles:()=>Yh,foundationTreeViewTemplate:()=>Vh,foundationUrlInput:()=>op,foundationUrlInputShadowOptions:()=>ep,foundationUrlInputStyles:()=>Qh,foundationUrlInputTemplate:()=>Zh,fromBinaryExpression:()=>Lm,fromMethodExpression:()=>_m,fuiAccentPalette:()=>vo,fuiAccentSwatch:()=>mo,fuiCardFillColor:()=>bo,fuiCardForegroundColor:()=>wo,fuiDefaultCardFillColor:()=>ro,fuiDefaultCardPalette:()=>lo,fuiFillColor:()=>fo,fuiNeutralPalette:()=>ho,fuiNeutralSwatch:()=>uo,getBannerTemplate:()=>Ie,getCriteriaBuilder:()=>Zd,getDefaultConfig:()=>Xi,getDesignSystemPrefix:()=>z,getDialogTemplate:()=>jo,getDropdownMenuTemplate:()=>mn,getErrorDialogTemplate:()=>Qn,getExports:()=>Qi,getFontawesomeIconsCss:()=>No,getNavItems:()=>$v,getPrefixedCategorizedMultiselect:()=>Tt,getPrefixedCronBuilder:()=>Fd,getPrefixedDatePicker:()=>gi,getPrefixedErrorBanner:()=>Fn,getPrefixedFileReader:()=>ha,getPrefixedFileUpload:()=>ya,getPrefixedFilterTemplate:()=>_a,getPrefixedFlyout:()=>ps,getPrefixedIcon:()=>Ps,getPrefixedMultiselect:()=>yt,getPrefixedScheduler:()=>Kl,getPrefixedSchedulerTimezone:()=>zd,getPrefixedSearchBar:()=>qd,getPrefixedSnackbar:()=>cu,getPrefixedStepper:()=>Iv,getPrefixedStepperTab:()=>Su,getPrefixedToast:()=>wh,getPrefixedUrlInput:()=>Jh,getTypeRampValue:()=>Ji,inputControls:()=>bd,isAbsoluteUrl:()=>pv,jsonConverter:()=>El,mapType:()=>Ga,maxheight:()=>pt,media:()=>ge,menuTemplate:()=>Q,mixinFoundationFontFamily:()=>Lo,multiselectStyles:()=>mt,multiselectTemplate:()=>Ct,neutralFillActive:()=>l.neutralFillActive,neutralFillActiveDelta:()=>l.neutralFillActiveDelta,neutralFillFocus:()=>l.neutralFillFocus,neutralFillFocusDelta:()=>l.neutralFillFocusDelta,neutralFillHover:()=>l.neutralFillHover,neutralFillHoverDelta:()=>l.neutralFillHoverDelta,neutralFillInputActive:()=>l.neutralFillInputActive,neutralFillInputActiveDelta:()=>l.neutralFillInputActiveDelta,neutralFillInputFocus:()=>l.neutralFillInputFocus,neutralFillInputFocusDelta:()=>l.neutralFillInputFocusDelta,neutralFillInputHover:()=>l.neutralFillInputHover,neutralFillInputHoverDelta:()=>l.neutralFillInputHoverDelta,neutralFillInputRest:()=>l.neutralFillInputRest,neutralFillInputRestDelta:()=>l.neutralFillInputRestDelta,neutralFillLayerRest:()=>l.neutralFillLayerRest,neutralFillLayerRestDelta:()=>l.neutralFillLayerRestDelta,neutralFillRest:()=>l.neutralFillRest,neutralFillRestDelta:()=>l.neutralFillRestDelta,neutralFillStealthActive:()=>l.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>l.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>l.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>l.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>l.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>l.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>l.neutralFillStealthRest,neutralFillStealthRestDelta:()=>l.neutralFillStealthRestDelta,neutralFillStrongActive:()=>l.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>l.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>l.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>l.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>l.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>l.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>l.neutralFillStrongRest,neutralFillStrongRestDelta:()=>l.neutralFillStrongRestDelta,neutralForeground:()=>Co,neutralForegroundHint:()=>l.neutralForegroundHint,neutralForegroundRest:()=>l.neutralForegroundRest,neutralLayer1:()=>l.neutralLayer1,neutralLayer2:()=>l.neutralLayer2,neutralLayer3:()=>l.neutralLayer3,neutralLayer4:()=>l.neutralLayer4,neutralLayerCardContainer:()=>l.neutralLayerCardContainer,neutralLayerFloating:()=>l.neutralLayerFloating,neutralPalette:()=>l.neutralPalette,neutralPaletteValue:()=>$o,neutralStrokeActive:()=>l.neutralStrokeActive,neutralStrokeActiveDelta:()=>l.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>l.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>l.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>l.neutralStrokeFocus,neutralStrokeFocusDelta:()=>l.neutralStrokeFocusDelta,neutralStrokeHover:()=>l.neutralStrokeHover,neutralStrokeHoverDelta:()=>l.neutralStrokeHoverDelta,neutralStrokeRest:()=>l.neutralStrokeRest,neutralStrokeRestDelta:()=>l.neutralStrokeRestDelta,optionsMaxheight:()=>Et,paletteFromHex:()=>Wi,pathJoin:()=>fv,plusIcon:()=>Wd,provideDesignSystem:()=>vl,provideTokens:()=>ji,rebuildOperator:()=>Nm,registerFoundationDesignSystem:()=>Mv,removeChildRouteParameter:()=>yv,removeLastPathSegment:()=>bv,routerLogger:()=>av,routerProperty:()=>dv,ruleExpressionToGroup:()=>Hm,ruleToRuleExpression:()=>Fm,ruleToRuleMethodExpression:()=>Rm,schedulerCronBuilderStyles:()=>yd,schedulerStyles:()=>ql,schedulerTimezoneStyles:()=>Hd,selectCustomToken:()=>eo,singleOptionTemplate:()=>J,statusPillStyles:()=>yu,strokeWidth:()=>l.strokeWidth,swatchConverter:()=>Yi,tagFor:()=>Jm,transformOperatorNameToServerName:()=>Dm,transformServerNameToOperatorName:()=>Am,typeRampBaseFontSize:()=>l.typeRampBaseFontSize,typeRampBaseLineHeight:()=>l.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>l.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>l.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>l.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>l.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>l.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>l.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>l.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>l.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>l.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>l.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>l.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>l.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>l.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>l.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>l.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>l.typeRampPlus6LineHeight,uploadFiles:()=>xa,white:()=>io});var o={};i.r(o),i.d(o,{accentFillActive:()=>l.accentFillActive,accentFillActiveDelta:()=>l.accentFillActiveDelta,accentFillFocus:()=>l.accentFillFocus,accentFillFocusDelta:()=>l.accentFillFocusDelta,accentFillHover:()=>l.accentFillHover,accentFillHoverDelta:()=>l.accentFillHoverDelta,accentFillRest:()=>l.accentFillRest,accentFillRestDelta:()=>l.accentFillRestDelta,accentForegroundActive:()=>l.accentForegroundActive,accentForegroundActiveDelta:()=>l.accentForegroundActiveDelta,accentForegroundFocus:()=>l.accentForegroundFocus,accentForegroundFocusDelta:()=>l.accentForegroundFocusDelta,accentForegroundHover:()=>l.accentForegroundHover,accentForegroundHoverDelta:()=>l.accentForegroundHoverDelta,accentForegroundRest:()=>l.accentForegroundRest,accentForegroundRestDelta:()=>l.accentForegroundRestDelta,accentPalette:()=>l.accentPalette,baseHeightMultiplier:()=>l.baseHeightMultiplier,baseLayerLuminance:()=>l.baseLayerLuminance,bodyFont:()=>l.bodyFont,controlCornerRadius:()=>l.controlCornerRadius,defaultNeutralForegroundContrast:()=>yo,density:()=>l.density,designUnit:()=>l.designUnit,direction:()=>l.direction,disabledOpacity:()=>l.disabledOpacity,fillColor:()=>l.fillColor,focusStrokeInner:()=>l.focusStrokeInner,focusStrokeOuter:()=>l.focusStrokeOuter,focusStrokeWidth:()=>l.focusStrokeWidth,foregroundOnAccentActive:()=>l.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>l.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>l.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>l.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>l.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>l.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>l.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>l.foregroundOnAccentRestLarge,fuiCardFillColor:()=>bo,fuiCardForegroundColor:()=>wo,fuiFillColor:()=>fo,neutralFillActive:()=>l.neutralFillActive,neutralFillActiveDelta:()=>l.neutralFillActiveDelta,neutralFillFocus:()=>l.neutralFillFocus,neutralFillFocusDelta:()=>l.neutralFillFocusDelta,neutralFillHover:()=>l.neutralFillHover,neutralFillHoverDelta:()=>l.neutralFillHoverDelta,neutralFillInputActive:()=>l.neutralFillInputActive,neutralFillInputActiveDelta:()=>l.neutralFillInputActiveDelta,neutralFillInputFocus:()=>l.neutralFillInputFocus,neutralFillInputFocusDelta:()=>l.neutralFillInputFocusDelta,neutralFillInputHover:()=>l.neutralFillInputHover,neutralFillInputHoverDelta:()=>l.neutralFillInputHoverDelta,neutralFillInputRest:()=>l.neutralFillInputRest,neutralFillInputRestDelta:()=>l.neutralFillInputRestDelta,neutralFillLayerRest:()=>l.neutralFillLayerRest,neutralFillLayerRestDelta:()=>l.neutralFillLayerRestDelta,neutralFillRest:()=>l.neutralFillRest,neutralFillRestDelta:()=>l.neutralFillRestDelta,neutralFillStealthActive:()=>l.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>l.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>l.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>l.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>l.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>l.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>l.neutralFillStealthRest,neutralFillStealthRestDelta:()=>l.neutralFillStealthRestDelta,neutralFillStrongActive:()=>l.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>l.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>l.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>l.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>l.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>l.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>l.neutralFillStrongRest,neutralFillStrongRestDelta:()=>l.neutralFillStrongRestDelta,neutralForeground:()=>Co,neutralForegroundHint:()=>l.neutralForegroundHint,neutralForegroundRest:()=>l.neutralForegroundRest,neutralLayer1:()=>l.neutralLayer1,neutralLayer2:()=>l.neutralLayer2,neutralLayer3:()=>l.neutralLayer3,neutralLayer4:()=>l.neutralLayer4,neutralLayerCardContainer:()=>l.neutralLayerCardContainer,neutralLayerFloating:()=>l.neutralLayerFloating,neutralPalette:()=>l.neutralPalette,neutralStrokeActive:()=>l.neutralStrokeActive,neutralStrokeActiveDelta:()=>l.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>l.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>l.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>l.neutralStrokeFocus,neutralStrokeFocusDelta:()=>l.neutralStrokeFocusDelta,neutralStrokeHover:()=>l.neutralStrokeHover,neutralStrokeHoverDelta:()=>l.neutralStrokeHoverDelta,neutralStrokeRest:()=>l.neutralStrokeRest,neutralStrokeRestDelta:()=>l.neutralStrokeRestDelta,strokeWidth:()=>l.strokeWidth,typeRampBaseFontSize:()=>l.typeRampBaseFontSize,typeRampBaseLineHeight:()=>l.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>l.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>l.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>l.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>l.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>l.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>l.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>l.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>l.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>l.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>l.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>l.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>l.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>l.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>l.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>l.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>l.typeRampPlus6LineHeight});var n={};i.r(n),i.d(n,{accentPaletteValue:()=>xo,baseLayerLuminanceValue:()=>So,controlCornerRadiusValue:()=>Oo,designUnitValue:()=>To,directionValue:()=>Eo,neutralPaletteValue:()=>$o});var a={};i.r(a),i.d(a,{BASE_LOGICAL_COMBINATORS:()=>sp,BASE_OPERATORS:()=>hp,LOGICAL_COMBINATORS:()=>rp,NULL_COMBINATOR:()=>lp});var s=i(84674);const r=(e,t)=>(0,s.accordionTemplate)(e,t);var l=i(54634),d=i(33681);const c=(e,t)=>d.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[876],{62876:(e,t,i)=>{i.r(t),i.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>Y,Anchor:()=>X,AnchoredRegion:()=>ie,Avatar:()=>de,Badge:()=>ge,Banner:()=>$e,BaseDatasource:()=>M,BaseFileComponent:()=>Vn,Breadcrumb:()=>Te,BreadcrumbItem:()=>Ne,Button:()=>ze,COMBO_INPUT_MIN_LENGTH:()=>Nd,CSSVarsTokenMapper:()=>vo,Calendar:()=>Ve,Card:()=>Qe,CategorizedMultiselect:()=>wt,Checkbox:()=>Et,Combobox:()=>Nt,ConnectionIndicator:()=>Pt,DEFUALT_FILTER_BAR_COLUMNS:()=>Ra,DataGrid:()=>jt,DataGridCell:()=>Kt,DataGridDatasource:()=>_h,DataGridRow:()=>ei,DatePicker:()=>Ei,DefaultRouter:()=>jm,DesignTokensObservable:()=>Ii,Dialog:()=>Mo,DialogElement:()=>Lo,Disclosure:()=>Po,Divider:()=>Yo,DropdownMenu:()=>tn,EnvironmentIndicator:()=>mn,ErrorBanner:()=>yn,ErrorBoundary:()=>Nn,ErrorBoundaryEvent:()=>xn,ErrorDialog:()=>zn,ExpressionBuilderConfig:()=>a,ExpressionBuilderCore:()=>om,FaPrefixFromStyle:()=>Ts,FileReader:()=>Qn,FileUpload:()=>ua,Filter:()=>$a,FilterBar:()=>Fa,FilterEvents:()=>xa,FlexLayout:()=>Pa,FlexMediaQueriesEnum:()=>La,Flipper:()=>ja,Flyout:()=>Ja,FoundationDesignSystemProvider:()=>Oo,FoundationExpressionBuilder:()=>Up,FoundationRouteCollection:()=>og,FoundationRouteNav:()=>Zm,FoundationRouter:()=>rg,FoundationRouterConfiguration:()=>ng,FoundationRuleExpressionBuilder:()=>bm,FoundationValueExpressionBuilder:()=>Sm,GenerateNavigationPathEventType:()=>sg,GridLayout:()=>ds,GridLayoutItem:()=>ms,GridMediaQueriesEnum:()=>os,HorizontalScroll:()=>bs,INPUT_MIN_LENGTH:()=>Fd,Icon:()=>Ds,Listbox:()=>As,ListboxOption:()=>Ps,Menu:()=>Ys,MenuItem:()=>Js,Modal:()=>sr,Multiselect:()=>pt,MultiselectDatasource:()=>lt,NavigateToEventType:()=>ag,NotificationListener:()=>km,NumberField:()=>yr,OptionsDatasource:()=>rt,Popper:()=>rl,Position:()=>tt,Progress:()=>Vr,ProgressRing:()=>pl,Radio:()=>yl,RadioGroup:()=>El,Router:()=>Gm,RuleExpression:()=>nm,SCROLL_TIMEOUT:()=>Rd,SECTION_NAVIGATOR_EVENTS:()=>Kd,SNACKBAR_CLOSE_TIMEOUT:()=>Bc,SNACKBAR_EVENTS_NAMES:()=>Gc,SNACKBAR_TYPES:()=>Uc,SNACKBAR_TYPE_DEFAULT:()=>Pc,Scheduler:()=>Fl,SchedulerCronBuilder:()=>gd,SchedulerTimezone:()=>xd,SearchBar:()=>Ld,SearchBarCombobox:()=>Ud,SectionNavigator:()=>Jd,SegmentedControl:()=>nc,SegmentedItem:()=>cc,Select:()=>vc,Skeleton:()=>xc,Slider:()=>Dc,SliderLabel:()=>Mc,Snackbar:()=>qc,StackingIcons:()=>Jc,StatusPill:()=>ou,Stepper:()=>ug,StepperTab:()=>lu,StepperTabPanel:()=>pu,Switch:()=>yu,SystemHealthOverlay:()=>Zr,Tab:()=>Eu,TabPanel:()=>Ru,Tabs:()=>Hu,TextArea:()=>Gu,TextField:()=>Ku,Toast:()=>nh,Toolbar:()=>lh,Tooltip:()=>mh,TreeItem:()=>Ch,TreeView:()=>Oh,UrlInput:()=>Lh,accentFillActive:()=>l.accentFillActive,accentFillActiveDelta:()=>l.accentFillActiveDelta,accentFillFocus:()=>l.accentFillFocus,accentFillFocusDelta:()=>l.accentFillFocusDelta,accentFillHover:()=>l.accentFillHover,accentFillHoverDelta:()=>l.accentFillHoverDelta,accentFillRest:()=>l.accentFillRest,accentFillRestDelta:()=>l.accentFillRestDelta,accentForegroundActive:()=>l.accentForegroundActive,accentForegroundActiveDelta:()=>l.accentForegroundActiveDelta,accentForegroundFocus:()=>l.accentForegroundFocus,accentForegroundFocusDelta:()=>l.accentForegroundFocusDelta,accentForegroundHover:()=>l.accentForegroundHover,accentForegroundHoverDelta:()=>l.accentForegroundHoverDelta,accentForegroundRest:()=>l.accentForegroundRest,accentForegroundRestDelta:()=>l.accentForegroundRestDelta,accentPalette:()=>l.accentPalette,accentPaletteValue:()=>lo,actionsMenuBaseStyles:()=>w,applyCustomTokens:()=>Li,baseComponents:()=>Hh,baseHeightMultiplier:()=>l.baseHeightMultiplier,baseLayerLuminance:()=>l.baseLayerLuminance,baseLayerLuminanceValue:()=>uo,black:()=>ji,bodyFont:()=>l.bodyFont,categorizedMultiselectStyles:()=>vt,categorizedMultiselectTemplate:()=>bt,clientOperators:()=>sm,closeIcon:()=>Yn,configureDesignSystem:()=>Bi,configureEnvironmentIndicator:()=>hn,controlCornerRadius:()=>l.controlCornerRadius,controlCornerRadiusValue:()=>po,createDesignSystemProxy:()=>Kr,createFormData:()=>na,crossIcon:()=>Td,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>y,defaultAnchorConfig:()=>J,defaultAnchoredRegionConfig:()=>ne,defaultAvatarConfig:()=>ue,defaultBadgeConfig:()=>fe,defaultBreadcrumbConfig:()=>Ie,defaultBreadcrumbItemConfig:()=>Le,defaultButtonConfig:()=>Ue,defaultCalendarConfig:()=>We,defaultCardConfig:()=>Ze,defaultCategorizedMultiselectConfig:()=>Ct,defaultCheckboxConfig:()=>Tt,defaultComboboxConfig:()=>Lt,defaultConfig:()=>Al,defaultCronBuilderConfig:()=>fd,defaultDataGridCellConfig:()=>Qt,defaultDataGridConfig:()=>Yt,defaultDataGridRowConfig:()=>ii,defaultDatePickerConfig:()=>Si,defaultDialogConfig:()=>Ao,defaultDisclosureConfig:()=>Bo,defaultDividerConfig:()=>qo,defaultFileUploadConfig:()=>pa,defaultFillColor:()=>Yi,defaultFlexLayoutConfig:()=>za,defaultFlipperConfig:()=>Ya,defaultFlyoutConfig:()=>es,defaultGridLayoutConfig:()=>rs,defaultGridLayoutItemConfig:()=>ps,defaultHorizontalScrollConfig:()=>Cs,defaultIconConfig:()=>Os,defaultListboxConfig:()=>Ms,defaultListboxOptionConfig:()=>Bs,defaultMenuConfig:()=>qs,defaultMenuItemConfig:()=>er,defaultModalConfig:()=>ar,defaultMultiselectConfig:()=>ht,defaultNavItemPredicate:()=>eg,defaultNeutralForegroundContrast:()=>ao,defaultNumberFieldConfig:()=>wr,defaultPlacementIndexPadding:()=>tg,defaultProgressConfig:()=>Wr,defaultProgressRingConfig:()=>gl,defaultRadioConfig:()=>wl,defaultRadioGroupConfig:()=>Tl,defaultSearchBarComboboxConfig:()=>Gd,defaultSearchBarConfig:()=>Hd,defaultSectionNavigatorConfig:()=>ec,defaultSegmentedControlConfig:()=>sc,defaultSegmentedItemConfig:()=>hc,defaultSelectConfig:()=>bc,defaultSkeletonConfig:()=>Sc,defaultSliderConfig:()=>Fc,defaultSliderLabelConfig:()=>_c,defaultStepperConfig:()=>pg,defaultStepperTabConfig:()=>cu,defaultStepperTabPanelConfig:()=>gu,defaultSwitchConfig:()=>wu,defaultSystemHealthOverlayConfig:()=>ol,defaultTabConfig:()=>Tu,defaultTabPanelConfig:()=>Nu,defaultTabsConfig:()=>zu,defaultTextAreaConfig:()=>Vu,defaultTextFieldConfig:()=>Qu,defaultTimezoneConfig:()=>Sd,defaultToastConfig:()=>oh,defaultToolbarConfig:()=>ch,defaultTooltipConfig:()=>vh,defaultTreeItemConfig:()=>xh,defaultTreeViewConfig:()=>kh,defaultUrlInputConfig:()=>Ah,defineFactory:()=>Dm,density:()=>l.density,designToken:()=>Fi,designTokensMap:()=>Pi,designUnit:()=>l.designUnit,designUnitValue:()=>mo,direction:()=>l.direction,directionValue:()=>ho,disabledOpacity:()=>l.disabledOpacity,downloadFile:()=>sa,dropdownMenuBaseStyles:()=>Xo,environmentIndicatorStyles:()=>nn,errorDialogTemplate:()=>Mn,extractMenuItems:()=>Jo,faSizeValueDefault:()=>ks,faSizeValues:()=>Is,fileReaderStyles:()=>Wn,fileReaderTemplate:()=>Xn,fillColor:()=>l.fillColor,filterBarTemplate:()=>ka,findParentRouter:()=>qm,findRouter:()=>Wm,findTopLevelRouter:()=>Km,flyoutAnimationTime:()=>qa,focusStrokeInner:()=>l.focusStrokeInner,focusStrokeOuter:()=>l.focusStrokeOuter,focusStrokeWidth:()=>l.focusStrokeWidth,foregroundOnAccentActive:()=>l.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>l.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>l.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>l.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>l.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>l.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>l.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>l.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>iu,foundationAccordion:()=>m,foundationAccordionItem:()=>C,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>v,foundationAccordionItemTemplate:()=>g,foundationAccordionShadowOptions:()=>h,foundationAccordionStyles:()=>c,foundationAccordionTemplate:()=>r,foundationActionsMenu:()=>W,foundationActionsMenuStyles:()=>x,foundationActionsMenuTemplate:()=>j,foundationAnchor:()=>Z,foundationAnchorShadowOptions:()=>Q,foundationAnchorStyles:()=>K,foundationAnchorTemplate:()=>q,foundationAnchoredRegion:()=>ae,foundationAnchoredRegionShadowOptions:()=>oe,foundationAnchoredRegionStyles:()=>te,foundationAnchoredRegionTemplate:()=>ee,foundationAvatar:()=>he,foundationAvatarShadowOptions:()=>ce,foundationAvatarStyles:()=>le,foundationAvatarTemplate:()=>se,foundationBadge:()=>be,foundationBadgeShadowOptions:()=>ve,foundationBadgeStyles:()=>me,foundationBadgeTemplate:()=>pe,foundationBanner:()=>Se,foundationBannerShadowOptions:()=>xe,foundationBannerStyles:()=>ye,foundationBannerTemplate:()=>we,foundationBreadcrumb:()=>De,foundationBreadcrumbItem:()=>Me,foundationBreadcrumbItemShadowOptions:()=>Ae,foundationBreadcrumbItemStyles:()=>Fe,foundationBreadcrumbItemTemplate:()=>Re,foundationBreadcrumbShadowOptions:()=>ke,foundationBreadcrumbStyles:()=>Oe,foundationBreadcrumbTemplate:()=>Ee,foundationButton:()=>Be,foundationButtonShadowOptions:()=>Pe,foundationButtonStyles:()=>_e,foundationButtonTemplate:()=>He,foundationCalendar:()=>qe,foundationCalendarShadowOptions:()=>Ye,foundationCalendarStyles:()=>Ge,foundationCalendarTemplate:()=>je,foundationCard:()=>et,foundationCardShadowOptions:()=>Je,foundationCardStyles:()=>Xe,foundationCardTemplate:()=>Ke,foundationCategorizedMultiselect:()=>xt,foundationCategorizedMultiselectShadowOptions:()=>yt,foundationCheckbox:()=>kt,foundationCheckboxShadowOptions:()=>Ot,foundationCheckboxStyles:()=>St,foundationCheckboxTemplate:()=>$t,foundationCombobox:()=>Mt,foundationComboboxShadowOptions:()=>At,foundationComboboxStyles:()=>It,foundationComboboxTemplate:()=>Dt,foundationConnectionIndicator:()=>Ut,foundationConnectionIndicatorStyles:()=>_t,foundationConnectionIndicatorTemplate:()=>zt,foundationDataGrid:()=>Wt,foundationDataGridCell:()=>Jt,foundationDataGridCellShadowOptions:()=>Xt,foundationDataGridCellStyles:()=>qt,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>oi,foundationDataGridRowShadowOptions:()=>ti,foundationDataGridRowStyles:()=>Zt,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Vt,foundationDataGridStyles:()=>Gt,foundationDataGridTemplate:()=>Bt,foundationDatePicker:()=>Oi,foundationDatePickerShadowOptions:()=>$i,foundationDatePickerStyles:()=>ni,foundationDatePickerTemplate:()=>ri,foundationDesignSystemProvider:()=>To,foundationDialog:()=>Ho,foundationDialogShadowOptions:()=>No,foundationDialogStyles:()=>ko,foundationDialogTemplate:()=>Ro,foundationDisclosure:()=>Go,foundationDisclosureShadowOptions:()=>Uo,foundationDisclosureStyles:()=>zo,foundationDisclosureTemplate:()=>_o,foundationDivider:()=>Ko,foundationDividerShadowOptions:()=>Wo,foundationDividerStyles:()=>Vo,foundationDividerTemplate:()=>jo,foundationDropdownMenu:()=>on,foundationDropdownMenuStyles:()=>Qo,foundationDropdownMenuTemplate:()=>en,foundationEnvironmentIndicator:()=>gn,foundationEnvironmentIndicatorTemplate:()=>an,foundationErrorBanner:()=>Cn,foundationErrorBannerShadowOptions:()=>bn,foundationErrorBannerTemplate:()=>fn,foundationErrorBoundary:()=>An,foundationErrorBoundaryShadowOptions:()=>Fn,foundationErrorBoundaryTemplate:()=>wn,foundationErrorDialog:()=>Pn,foundationErrorDialogShadowOptions:()=>_n,foundationErrorDialogStyles:()=>Hn,foundationFileReader:()=>Jn,foundationFileReaderStyles:()=>qn,foundationFileUpload:()=>ma,foundationFileUploadShadowOptions:()=>ha,foundationFileUploadStyles:()=>ta,foundationFileUploadTemplate:()=>oa,foundationFilter:()=>Sa,foundationFilterBar:()=>Na,foundationFilterBarStyles:()=>Ea,foundationFilterBarTemplate:()=>Ia,foundationFilterStyles:()=>ga,foundationFilterTemplate:()=>wa,foundationFlexLayout:()=>Ua,foundationFlexLayoutShadowOptions:()=>_a,foundationFlexLayoutStyles:()=>Ha,foundationFlexLayoutTemplate:()=>Aa,foundationFlipper:()=>Wa,foundationFlipperShadowOptions:()=>Va,foundationFlipperStyles:()=>Ga,foundationFlipperTemplate:()=>Ba,foundationFlyout:()=>ts,foundationFlyoutShadowOptions:()=>Za,foundationFlyoutStyles:()=>Ka,foundationFlyoutTemplate:()=>Qa,foundationGridLayout:()=>cs,foundationGridLayoutItem:()=>gs,foundationGridLayoutItemShadowOptions:()=>hs,foundationGridLayoutItemTemplate:()=>us,foundationGridLayoutShadowOptions:()=>ss,foundationGridLayoutStyles:()=>as,foundationGridLayoutTemplate:()=>is,foundationHorizontalScroll:()=>ws,foundationHorizontalScrollShadowOptions:()=>ys,foundationHorizontalScrollStyles:()=>fs,foundationHorizontalScrollTemplate:()=>vs,foundationIcon:()=>Rs,foundationIconShadowOptions:()=>Es,foundationIconStyles:()=>xs,foundationIconTemplate:()=>Ss,foundationListbox:()=>Hs,foundationListboxOption:()=>Gs,foundationListboxOptionShadowOptions:()=>Us,foundationListboxOptionStyles:()=>zs,foundationListboxOptionTemplate:()=>_s,foundationListboxShadowOptions:()=>Ls,foundationListboxStyles:()=>Ns,foundationListboxTemplate:()=>Fs,foundationMenu:()=>Ks,foundationMenuItem:()=>tr,foundationMenuItemShadowOptions:()=>Zs,foundationMenuItemStyles:()=>Qs,foundationMenuItemTemplate:()=>Xs,foundationMenuShadowOptions:()=>Ws,foundationMenuStyles:()=>Vs,foundationMenuTemplate:()=>js,foundationModal:()=>rr,foundationModalShadowOptions:()=>nr,foundationModalStyles:()=>ir,foundationModalTemplate:()=>or,foundationMultiselect:()=>mt,foundationMultiselectShadowOptions:()=>ut,foundationNotificationListener:()=>Im,foundationNotificationListenerShadowOptions:()=>Tm,foundationNotificationListenerTemplate:()=>Em,foundationNumberField:()=>xr,foundationNumberFieldShadowOptions:()=>Cr,foundationNumberFieldStyles:()=>dr,foundationNumberFieldTemplate:()=>lr,foundationPopper:()=>cl,foundationProgress:()=>qr,foundationProgressRing:()=>vl,foundationProgressRingShadowOptions:()=>ml,foundationProgressRingStyles:()=>hl,foundationProgressRingTemplate:()=>ul,foundationProgressShadowOptions:()=>Yr,foundationProgressStyles:()=>jr,foundationProgressTemplate:()=>Gr,foundationRadio:()=>xl,foundationRadioGroup:()=>kl,foundationRadioGroupShadowOptions:()=>Ol,foundationRadioGroupStyles:()=>Sl,foundationRadioGroupTemplate:()=>$l,foundationRadioShadowOptions:()=>Cl,foundationRadioStyles:()=>bl,foundationRadioTemplate:()=>fl,foundationScheduler:()=>Ll,foundationSchedulerCronBuilder:()=>bd,foundationSchedulerCronBuilderShadowOptions:()=>vd,foundationSchedulerCronBuilderTemplate:()=>md,foundationSchedulerShadowOptions:()=>Nl,foundationSchedulerTemplate:()=>Rl,foundationSchedulerTimezone:()=>Ed,foundationSchedulerTimezoneShadowOptions:()=>$d,foundationSchedulerTimezoneTemplate:()=>wd,foundationSearchBar:()=>_d,foundationSearchBarCombobox:()=>jd,foundationSearchBarComboboxShadowOptions:()=>Bd,foundationSearchBarComboboxStyles:()=>zd,foundationSearchBarComboboxTemplate:()=>Pd,foundationSearchBarShadowOptions:()=>Md,foundationSearchBarStyles:()=>Od,foundationSearchBarTemplate:()=>Dd,foundationSectionNavigator:()=>tc,foundationSectionNavigatorShadowOptions:()=>Zd,foundationSectionNavigatorStyles:()=>Vd,foundationSectionNavigatorTemplate:()=>Yd,foundationSegmentedControl:()=>rc,foundationSegmentedControlShadowOptions:()=>ac,foundationSegmentedControlStyles:()=>oc,foundationSegmentedControlTemplate:()=>ic,foundationSegmentedItem:()=>pc,foundationSegmentedItemShadowOptions:()=>uc,foundationSegmentedItemStyles:()=>dc,foundationSegmentedItemTemplate:()=>lc,foundationSelect:()=>yc,foundationSelectShadowOptions:()=>fc,foundationSelectStyles:()=>gc,foundationSelectTemplate:()=>mc,foundationSkeleton:()=>Ec,foundationSkeletonShadowOptions:()=>$c,foundationSkeletonStyles:()=>wc,foundationSkeletonTemplate:()=>Cc,foundationSlider:()=>Nc,foundationSliderLabel:()=>zc,foundationSliderLabelShadowOptions:()=>Hc,foundationSliderLabelStyles:()=>Lc,foundationSliderLabelTemplate:()=>Ac,foundationSliderShadowOptions:()=>Rc,foundationSliderStyles:()=>Ic,foundationSliderTemplate:()=>kc,foundationSnackbar:()=>Kc,foundationSnackbarShadowOptions:()=>Wc,foundationSnackbarStyles:()=>jc,foundationSnackbarTemplate:()=>Yc,foundationStackingIcons:()=>Zc,foundationStackingIconsStyles:()=>Xc,foundationStackingIconsTemplate:()=>Qc,foundationStatusPill:()=>nu,foundationStatusPillTemplate:()=>tu,foundationStepper:()=>mg,foundationStepperShadowOptions:()=>hg,foundationStepperStyles:()=>cg,foundationStepperTab:()=>uu,foundationStepperTabPanel:()=>vu,foundationStepperTabPanelShadowOptions:()=>mu,foundationStepperTabPanelTemplate:()=>hu,foundationStepperTabShadowOptions:()=>du,foundationStepperTabStyles:()=>ru,foundationStepperTabTemplate:()=>su,foundationStepperTemplate:()=>dg,foundationSwitch:()=>xu,foundationSwitchShadowOptions:()=>Cu,foundationSwitchStyles:()=>bu,foundationSwitchTemplate:()=>fu,foundationSystemHealthOverlay:()=>nl,foundationSystemHealthOverlayShadowOptions:()=>il,foundationSystemHealthOverlayStyles:()=>tl,foundationSystemHealthOverlayTemplate:()=>el,foundationTab:()=>ku,foundationTabPanel:()=>Au,foundationTabPanelShadowOptions:()=>Fu,foundationTabPanelStyles:()=>Du,foundationTabPanelTemplate:()=>Iu,foundationTabShadowOptions:()=>Ou,foundationTabStyles:()=>Su,foundationTabTemplate:()=>$u,foundationTabs:()=>Pu,foundationTabsShadowOptions:()=>_u,foundationTabsStyles:()=>Mu,foundationTabsTemplate:()=>Lu,foundationTextArea:()=>Yu,foundationTextAreaShadowOptions:()=>ju,foundationTextAreaStyles:()=>Bu,foundationTextAreaTemplate:()=>Uu,foundationTextField:()=>Ju,foundationTextFieldShadowOptions:()=>Xu,foundationTextFieldStyles:()=>qu,foundationTextFieldTemplate:()=>Wu,foundationToast:()=>ah,foundationToastShadowOptions:()=>ih,foundationToastStyles:()=>Zu,foundationToastTemplate:()=>th,foundationToolbar:()=>uh,foundationToolbarShadowOptions:()=>dh,foundationToolbarStyles:()=>rh,foundationToolbarTemplate:()=>sh,foundationTooltip:()=>fh,foundationTooltipShadowOptions:()=>gh,foundationTooltipStyles:()=>ph,foundationTooltipTemplate:()=>hh,foundationTreeItem:()=>$h,foundationTreeItemShadowOptions:()=>wh,foundationTreeItemStyles:()=>yh,foundationTreeItemTemplate:()=>bh,foundationTreeView:()=>Ih,foundationTreeViewShadowOptions:()=>Th,foundationTreeViewStyles:()=>Eh,foundationTreeViewTemplate:()=>Sh,foundationUrlInput:()=>Mh,foundationUrlInputShadowOptions:()=>Nh,foundationUrlInputStyles:()=>Dh,foundationUrlInputTemplate:()=>Fh,fromBinaryExpression:()=>mm,fromMethodExpression:()=>vm,fuiAccentPalette:()=>to,fuiAccentSwatch:()=>eo,fuiCardFillColor:()=>no,fuiCardForegroundColor:()=>ro,fuiDefaultCardFillColor:()=>qi,fuiDefaultCardPalette:()=>Ki,fuiFillColor:()=>oo,fuiNeutralPalette:()=>Ji,fuiNeutralSwatch:()=>Qi,getBannerTemplate:()=>Ce,getCriteriaBuilder:()=>Ad,getDefaultConfig:()=>Hi,getDesignSystemPrefix:()=>z,getDialogTemplate:()=>Do,getDropdownMenuTemplate:()=>Zo,getErrorDialogTemplate:()=>Ln,getExports:()=>_i,getFontawesomeIconsCss:()=>wo,getNavItems:()=>ig,getPrefixedCategorizedMultiselect:()=>ft,getPrefixedCronBuilder:()=>pd,getPrefixedDatePicker:()=>si,getPrefixedErrorBanner:()=>vn,getPrefixedFileReader:()=>Kn,getPrefixedFileUpload:()=>ia,getPrefixedFilterTemplate:()=>Ca,getPrefixedFlyout:()=>Xa,getPrefixedIcon:()=>$s,getPrefixedMultiselect:()=>dt,getPrefixedScheduler:()=>Dl,getPrefixedSchedulerTimezone:()=>Cd,getPrefixedSearchBar:()=>Id,getPrefixedSnackbar:()=>Vc,getPrefixedStepper:()=>lg,getPrefixedStepperTab:()=>au,getPrefixedToast:()=>eh,getPrefixedUrlInput:()=>Rh,getTypeRampValue:()=>zi,inputControls:()=>Zl,isAbsoluteUrl:()=>Ym,jsonConverter:()=>sl,mapType:()=>Oa,maxheight:()=>nt,media:()=>re,menuTemplate:()=>B,mixinFoundationFontFamily:()=>xo,multiselectStyles:()=>at,multiselectTemplate:()=>ct,neutralFillActive:()=>l.neutralFillActive,neutralFillActiveDelta:()=>l.neutralFillActiveDelta,neutralFillFocus:()=>l.neutralFillFocus,neutralFillFocusDelta:()=>l.neutralFillFocusDelta,neutralFillHover:()=>l.neutralFillHover,neutralFillHoverDelta:()=>l.neutralFillHoverDelta,neutralFillInputActive:()=>l.neutralFillInputActive,neutralFillInputActiveDelta:()=>l.neutralFillInputActiveDelta,neutralFillInputFocus:()=>l.neutralFillInputFocus,neutralFillInputFocusDelta:()=>l.neutralFillInputFocusDelta,neutralFillInputHover:()=>l.neutralFillInputHover,neutralFillInputHoverDelta:()=>l.neutralFillInputHoverDelta,neutralFillInputRest:()=>l.neutralFillInputRest,neutralFillInputRestDelta:()=>l.neutralFillInputRestDelta,neutralFillLayerRest:()=>l.neutralFillLayerRest,neutralFillLayerRestDelta:()=>l.neutralFillLayerRestDelta,neutralFillRest:()=>l.neutralFillRest,neutralFillRestDelta:()=>l.neutralFillRestDelta,neutralFillStealthActive:()=>l.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>l.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>l.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>l.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>l.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>l.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>l.neutralFillStealthRest,neutralFillStealthRestDelta:()=>l.neutralFillStealthRestDelta,neutralFillStrongActive:()=>l.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>l.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>l.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>l.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>l.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>l.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>l.neutralFillStrongRest,neutralFillStrongRestDelta:()=>l.neutralFillStrongRestDelta,neutralForeground:()=>so,neutralForegroundHint:()=>l.neutralForegroundHint,neutralForegroundRest:()=>l.neutralForegroundRest,neutralLayer1:()=>l.neutralLayer1,neutralLayer2:()=>l.neutralLayer2,neutralLayer3:()=>l.neutralLayer3,neutralLayer4:()=>l.neutralLayer4,neutralLayerCardContainer:()=>l.neutralLayerCardContainer,neutralLayerFloating:()=>l.neutralLayerFloating,neutralPalette:()=>l.neutralPalette,neutralPaletteValue:()=>co,neutralStrokeActive:()=>l.neutralStrokeActive,neutralStrokeActiveDelta:()=>l.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>l.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>l.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>l.neutralStrokeFocus,neutralStrokeFocusDelta:()=>l.neutralStrokeFocusDelta,neutralStrokeHover:()=>l.neutralStrokeHover,neutralStrokeHoverDelta:()=>l.neutralStrokeHoverDelta,neutralStrokeRest:()=>l.neutralStrokeRest,neutralStrokeRestDelta:()=>l.neutralStrokeRestDelta,optionsMaxheight:()=>gt,paletteFromHex:()=>Ai,pathJoin:()=>Xm,plusIcon:()=>kd,provideDesignSystem:()=>Xr,provideTokens:()=>Ri,rebuildOperator:()=>pm,registerFoundationDesignSystem:()=>gg,removeChildRouteParameter:()=>Jm,removeLastPathSegment:()=>Qm,routerLogger:()=>_m,routerProperty:()=>Bm,ruleExpressionToGroup:()=>fm,ruleToRuleExpression:()=>um,ruleToRuleMethodExpression:()=>cm,schedulerCronBuilderStyles:()=>ed,schedulerStyles:()=>Il,schedulerTimezoneStyles:()=>yd,selectCustomToken:()=>Ui,singleOptionTemplate:()=>G,statusPillStyles:()=>eu,strokeWidth:()=>l.strokeWidth,swatchConverter:()=>Ni,tagFor:()=>Rm,transformOperatorNameToServerName:()=>dm,transformServerNameToOperatorName:()=>hm,typeRampBaseFontSize:()=>l.typeRampBaseFontSize,typeRampBaseLineHeight:()=>l.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>l.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>l.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>l.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>l.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>l.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>l.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>l.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>l.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>l.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>l.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>l.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>l.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>l.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>l.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>l.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>l.typeRampPlus6LineHeight,uploadFiles:()=>aa,white:()=>Gi});var o={};i.r(o),i.d(o,{accentFillActive:()=>l.accentFillActive,accentFillActiveDelta:()=>l.accentFillActiveDelta,accentFillFocus:()=>l.accentFillFocus,accentFillFocusDelta:()=>l.accentFillFocusDelta,accentFillHover:()=>l.accentFillHover,accentFillHoverDelta:()=>l.accentFillHoverDelta,accentFillRest:()=>l.accentFillRest,accentFillRestDelta:()=>l.accentFillRestDelta,accentForegroundActive:()=>l.accentForegroundActive,accentForegroundActiveDelta:()=>l.accentForegroundActiveDelta,accentForegroundFocus:()=>l.accentForegroundFocus,accentForegroundFocusDelta:()=>l.accentForegroundFocusDelta,accentForegroundHover:()=>l.accentForegroundHover,accentForegroundHoverDelta:()=>l.accentForegroundHoverDelta,accentForegroundRest:()=>l.accentForegroundRest,accentForegroundRestDelta:()=>l.accentForegroundRestDelta,accentPalette:()=>l.accentPalette,baseHeightMultiplier:()=>l.baseHeightMultiplier,baseLayerLuminance:()=>l.baseLayerLuminance,bodyFont:()=>l.bodyFont,controlCornerRadius:()=>l.controlCornerRadius,defaultNeutralForegroundContrast:()=>ao,density:()=>l.density,designUnit:()=>l.designUnit,direction:()=>l.direction,disabledOpacity:()=>l.disabledOpacity,fillColor:()=>l.fillColor,focusStrokeInner:()=>l.focusStrokeInner,focusStrokeOuter:()=>l.focusStrokeOuter,focusStrokeWidth:()=>l.focusStrokeWidth,foregroundOnAccentActive:()=>l.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>l.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>l.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>l.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>l.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>l.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>l.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>l.foregroundOnAccentRestLarge,fuiCardFillColor:()=>no,fuiCardForegroundColor:()=>ro,fuiFillColor:()=>oo,neutralFillActive:()=>l.neutralFillActive,neutralFillActiveDelta:()=>l.neutralFillActiveDelta,neutralFillFocus:()=>l.neutralFillFocus,neutralFillFocusDelta:()=>l.neutralFillFocusDelta,neutralFillHover:()=>l.neutralFillHover,neutralFillHoverDelta:()=>l.neutralFillHoverDelta,neutralFillInputActive:()=>l.neutralFillInputActive,neutralFillInputActiveDelta:()=>l.neutralFillInputActiveDelta,neutralFillInputFocus:()=>l.neutralFillInputFocus,neutralFillInputFocusDelta:()=>l.neutralFillInputFocusDelta,neutralFillInputHover:()=>l.neutralFillInputHover,neutralFillInputHoverDelta:()=>l.neutralFillInputHoverDelta,neutralFillInputRest:()=>l.neutralFillInputRest,neutralFillInputRestDelta:()=>l.neutralFillInputRestDelta,neutralFillLayerRest:()=>l.neutralFillLayerRest,neutralFillLayerRestDelta:()=>l.neutralFillLayerRestDelta,neutralFillRest:()=>l.neutralFillRest,neutralFillRestDelta:()=>l.neutralFillRestDelta,neutralFillStealthActive:()=>l.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>l.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>l.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>l.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>l.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>l.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>l.neutralFillStealthRest,neutralFillStealthRestDelta:()=>l.neutralFillStealthRestDelta,neutralFillStrongActive:()=>l.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>l.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>l.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>l.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>l.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>l.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>l.neutralFillStrongRest,neutralFillStrongRestDelta:()=>l.neutralFillStrongRestDelta,neutralForeground:()=>so,neutralForegroundHint:()=>l.neutralForegroundHint,neutralForegroundRest:()=>l.neutralForegroundRest,neutralLayer1:()=>l.neutralLayer1,neutralLayer2:()=>l.neutralLayer2,neutralLayer3:()=>l.neutralLayer3,neutralLayer4:()=>l.neutralLayer4,neutralLayerCardContainer:()=>l.neutralLayerCardContainer,neutralLayerFloating:()=>l.neutralLayerFloating,neutralPalette:()=>l.neutralPalette,neutralStrokeActive:()=>l.neutralStrokeActive,neutralStrokeActiveDelta:()=>l.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>l.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>l.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>l.neutralStrokeFocus,neutralStrokeFocusDelta:()=>l.neutralStrokeFocusDelta,neutralStrokeHover:()=>l.neutralStrokeHover,neutralStrokeHoverDelta:()=>l.neutralStrokeHoverDelta,neutralStrokeRest:()=>l.neutralStrokeRest,neutralStrokeRestDelta:()=>l.neutralStrokeRestDelta,strokeWidth:()=>l.strokeWidth,typeRampBaseFontSize:()=>l.typeRampBaseFontSize,typeRampBaseLineHeight:()=>l.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>l.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>l.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>l.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>l.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>l.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>l.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>l.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>l.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>l.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>l.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>l.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>l.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>l.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>l.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>l.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>l.typeRampPlus6LineHeight});var n={};i.r(n),i.d(n,{accentPaletteValue:()=>lo,baseLayerLuminanceValue:()=>uo,controlCornerRadiusValue:()=>po,designUnitValue:()=>mo,directionValue:()=>ho,neutralPaletteValue:()=>co});var a={};i.r(a),i.d(a,{BASE_LOGICAL_COMBINATORS:()=>zh,BASE_OPERATORS:()=>Vh,LOGICAL_COMBINATORS:()=>Ph,NULL_COMBINATOR:()=>Uh});var s=i(84674);const r=(e,t)=>(0,s.accordionTemplate)(e,t);var l=i(54634),d=i(33681);const c=(e,t)=>d.css`
2
2
  ${(0,l.accordionStyles)(e,t)}
3
- `;class u extends s.Accordion{}const h={delegatesFocus:!0,mode:"open"},p={},m=u.compose(Object.assign({baseName:"accordion",template:r,styles:c,shadowOptions:h},p)),v=(e,t)=>(0,s.accordionItemTemplate)(e,t),g=(e,t)=>d.css`
3
+ `;class u extends s.Accordion{}const h={delegatesFocus:!0,mode:"open"},p={},m=u.compose(Object.assign({baseName:"accordion",template:r,styles:c,shadowOptions:h},p)),g=(e,t)=>(0,s.accordionItemTemplate)(e,t),v=(e,t)=>d.css`
4
4
  ${(0,l.accordionItemStyles)(e,t)}
5
5
 
6
6
  slot[name='collapsed-icon'] {
@@ -14,7 +14,7 @@
14
14
  stroke: var(--accent-foreground-rest);
15
15
  fill: none;
16
16
  }
17
- `;class f extends l.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},C=f.compose(Object.assign({baseName:"accordion-item",template:v,styles:g,shadowOptions:b},y)),w=(e,t)=>d.css`
17
+ `;class f extends l.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},C=f.compose(Object.assign({baseName:"accordion-item",template:g,styles:v,shadowOptions:b},y)),w=(e,t)=>d.css`
18
18
  :host {
19
19
  --actions-opener-height-multiplier: 0.7px;
20
20
  --actions-opener-bg-color: 249 254 255;
@@ -107,7 +107,7 @@
107
107
  }
108
108
  `,x=(e,t)=>d.css`
109
109
  ${w(e,t)}
110
- `;var $=i(55823),S=i(40370),E=i(6884),O=i(96730),T=i(21281),k=i(34193),I=i(41119),D=i(26347),R=i(9033),F=i(12066),A=i(97156),N=i(30314);const L=(0,N.createLogger)("foundation-ui");class M extends((0,S.C)(s.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=E.OD.MAX_ROWS_250,this.maxView=E.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new A.t(new Map)}criteriaChanged(e,t){const i=e!==(0,O.Q)(t,";");this.datasource.initialized&&i&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,$.sH)(this,arguments,void 0,function*(e=!0){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t)){if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();return void this.syncComponentData(e)}L.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===T.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,k.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)})}else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})})}initDatasource(){return(0,$.sH)(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,i;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(i=e.REPLY)||void 0===i||i.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 o=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(o)}applyDataserverData(e){var t,i,o,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(o=e.deletes)||void 0===o?void 0:o.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,O.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:i,loggerArgs:o=[]}=e;t&&L[i](t,...o)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find(t=>t.name===e)}getDefaultLabelFormat(e,t){return t===I.w.DATE||t===I.w.DATETIME?(0,F.Ey)(e,t===I.w.DATETIME):e}}(0,$.Cg)([D.dm],M.prototype,"connect",void 0),(0,$.Cg)([R.yW],M.prototype,"datasource",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"withGridInit",void 0),(0,$.Cg)([d.attr],M.prototype,"criteria",void 0),(0,$.Cg)([d.observable],M.prototype,"data",void 0),(0,$.Cg)([d.attr],M.prototype,"fields",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"isSnapshot",void 0),(0,$.Cg)([d.attr],M.prototype,"maxRows",void 0),(0,$.Cg)([d.attr],M.prototype,"maxView",void 0),(0,$.Cg)([d.attr],M.prototype,"orderBy",void 0),(0,$.Cg)([d.attr],M.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"reverse",void 0),(0,$.Cg)([d.attr],M.prototype,"rowId",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],M.prototype,"withTimestampFormatting",void 0);const _=(e,t)=>!e.composedPath().includes(t),H=(e,t)=>e.composedPath().includes(t),z=e=>e.tagName.toLowerCase().split("-")[0];const P=(0,N.createLogger)("foundation-criteria");var U;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(U||(U={}));class B{constructor(e){this.$$operator=e}static And(){return new B(U.AND)}static Or(){return new B(U.OR)}static Not(){return new B(U.NOT)}static GreaterThan(){return new B(U.GT)}static GreaterThanOrEqual(){return new B(U.GE)}static LessThan(){return new B(U.LT)}static LessThanOrEqual(){return new B(U.LE)}static NotEqual(){return new B(U.NE)}static Equal(){return new B(U.EQ)}get operator(){return this.$$operator}}const G="default";class j{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,B.And()),this.Or=(e,t={})=>this.withExpression(e,t,B.Or()),this.Not=(e,t={})=>this.withExpression(e,t,B.Not())}withExpression(e,t={},i=B.And()){const{condition:o,join:n,groupName:a}=t,s=(e,t=G)=>{var a;const s=null!==(a=this.expressions[t])&&void 0!==a?a:[];this.expressions[t]=[...s,{join:i||n,condition:o,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter(e=>{const t=e instanceof B;return t&&P.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(a)t.forEach(e=>{s(e,a)});else{const e=(r=n,t.flat().flatMap((e,t,i)=>i.length-1!==t?[e,r]:e));s(e,G)}}else s(e,G);else s(e,"string"==typeof e?G:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:`(${i.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},i,o)=>this.parseExpression(e,o[i-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,i){const o=[];return i&&t&&o.push(` ${i.operator} `),"string"==typeof e?o.push(e):Array.isArray(e)?(e.forEach((e,t,i)=>{if(e instanceof B){if(i[t-1]instanceof B)throw new Error("Adjacent Join operations detected")}}),o.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof B?o.push(` ${e.operator} `):e&&o.push(e.serialiser(e)),o.join("")}}const V=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},Y=e=>t=>`${t.field} ${e} ${V(t)}`,W=e=>Y(U.EQ)(e),q=e=>`Expr.containsIgnoreCase(${e.field}, ${V(e)})`;class K{constructor(e){this.serialiser=W,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 X(e,t){var i;const o=new j;o.withExpression((new K).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(q).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${o.build()}`:e.criteria=o.build()}const Q=e=>d.html`
110
+ `;var $=i(55823),S=i(40370),E=i(6884),O=i(96730),T=i(21281),k=i(34193),I=i(41119),D=i(26347),R=i(9033),F=i(47110),N=i(97156),A=i(30314);const L=(0,A.createLogger)("foundation-ui");class M extends((0,S.C)(s.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=E.OD.MAX_ROWS_250,this.maxView=E.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new N.t(new Map)}criteriaChanged(e,t){const i=e!==(0,O.Q)(t,";");this.datasource.initialized&&i&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,$.sH)(this,arguments,void 0,function*(e=!0){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t)){if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();return void this.syncComponentData(e)}L.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===T.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,k.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)})}else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})})}initDatasource(){return(0,$.sH)(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,i;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(i=e.REPLY)||void 0===i||i.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 o=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(o)}applyDataserverData(e){var t,i,o,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(o=e.deletes)||void 0===o?void 0:o.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,O.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:i,loggerArgs:o=[]}=e;t&&L[i](t,...o)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find(t=>t.name===e)}getDefaultLabelFormat(e,t){return t===I.w.DATE||t===I.w.DATETIME?(0,F.Ey)(e,t===I.w.DATETIME):e}}(0,$.Cg)([D.dm],M.prototype,"connect",void 0),(0,$.Cg)([R.yW],M.prototype,"datasource",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"withGridInit",void 0),(0,$.Cg)([d.attr],M.prototype,"criteria",void 0),(0,$.Cg)([d.observable],M.prototype,"data",void 0),(0,$.Cg)([d.attr],M.prototype,"fields",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"isSnapshot",void 0),(0,$.Cg)([d.attr],M.prototype,"maxRows",void 0),(0,$.Cg)([d.attr],M.prototype,"maxView",void 0),(0,$.Cg)([d.attr],M.prototype,"orderBy",void 0),(0,$.Cg)([d.attr],M.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],M.prototype,"reverse",void 0),(0,$.Cg)([d.attr],M.prototype,"rowId",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],M.prototype,"withTimestampFormatting",void 0);const H=(e,t)=>!e.composedPath().includes(t),_=(e,t)=>e.composedPath().includes(t),z=e=>e.tagName.toLowerCase().split("-")[0];var P=i(34149);function U(e,t){var i;const o=new P.b;o.withExpression((new P.KN).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(P.ns.containsIgnoreCase).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${o.build()}`:e.criteria=o.build()}const B=e=>d.html`
111
111
  <${e}-button
112
112
  id="actiosnMenuTrigger"
113
113
  class="actions-opener${e=>e.open?" opened":""}"
@@ -143,7 +143,7 @@
143
143
  `)}
144
144
  `,{positioning:!0})}
145
145
  </${e}-menu>
146
- `,J=e=>d.html`
146
+ `,G=e=>d.html`
147
147
  <${e}-button
148
148
  appearance="${e=>e.buttonAppearance}"
149
149
  part="actions-opener"
@@ -153,26 +153,26 @@
153
153
  >
154
154
  ${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
155
155
  </${e}-button>
156
- `,Z=d.html`
156
+ `,j=d.html`
157
157
  <div
158
158
  class="actions-container${e=>e.isVertical?" actions-vertical":""}"
159
159
  part="actions-container"
160
160
  >
161
161
  ${e=>e.getTemplate(z(e))}
162
162
  </div>
163
- `;var ee=i(31679);class te extends s.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],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,ee.x)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return Q(e);const t=this.actions.filter(e=>!e.isDisabled||!e.isDisabled(this.rowData));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],J(e)):Q(e):void 0}}(0,$.Cg)([d.observable],te.prototype,"actions",void 0),(0,$.Cg)([(0,d.attr)({attribute:"is-vertical",mode:"boolean"})],te.prototype,"isVertical",void 0),(0,$.Cg)([(0,d.attr)({attribute:"add-default-actions",mode:"boolean"})],te.prototype,"addDefaultActions",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close-on-action",mode:"boolean"})],te.prototype,"autoCloseOnAction",void 0),(0,$.Cg)([d.observable],te.prototype,"classNames",void 0),(0,$.Cg)([d.observable],te.prototype,"definition",void 0),(0,$.Cg)([d.attr],te.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({attribute:"open",mode:"boolean"})],te.prototype,"open",void 0),(0,$.Cg)([d.attr],te.prototype,"buttonAppearance",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-disabled",mode:"boolean"})],te.prototype,"hideDisabled",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],te.prototype,"hideMenuSingleOption",void 0),(0,$.Cg)([d.observable],te.prototype,"singleOption",void 0);const ie=te.compose({baseName:"actions-menu",styles:x,template:Z}),oe=(e,t)=>(0,s.anchorTemplate)(e,t),ne=(e,t)=>d.css`
163
+ `;var V=i(31679);class Y extends s.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],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,V.x)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return B(e);const t=this.actions.filter(e=>!e.isDisabled||!e.isDisabled(this.rowData));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],G(e)):B(e):void 0}}(0,$.Cg)([d.observable],Y.prototype,"actions",void 0),(0,$.Cg)([(0,d.attr)({attribute:"is-vertical",mode:"boolean"})],Y.prototype,"isVertical",void 0),(0,$.Cg)([(0,d.attr)({attribute:"add-default-actions",mode:"boolean"})],Y.prototype,"addDefaultActions",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close-on-action",mode:"boolean"})],Y.prototype,"autoCloseOnAction",void 0),(0,$.Cg)([d.observable],Y.prototype,"classNames",void 0),(0,$.Cg)([d.observable],Y.prototype,"definition",void 0),(0,$.Cg)([d.attr],Y.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({attribute:"open",mode:"boolean"})],Y.prototype,"open",void 0),(0,$.Cg)([d.attr],Y.prototype,"buttonAppearance",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-disabled",mode:"boolean"})],Y.prototype,"hideDisabled",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],Y.prototype,"hideMenuSingleOption",void 0),(0,$.Cg)([d.observable],Y.prototype,"singleOption",void 0);const W=Y.compose({baseName:"actions-menu",styles:x,template:j}),q=(e,t)=>(0,s.anchorTemplate)(e,t),K=(e,t)=>d.css`
164
164
  ${(0,l.anchorStyles)(e,t)}
165
- `;class ae extends l.Anchor{}const se={delegatesFocus:!0,mode:"open"},re={},le=ae.compose(Object.assign({baseName:"anchor",template:oe,styles:ne,shadowOptions:se},re)),de=(e,t)=>(0,s.anchoredRegionTemplate)(e,t),ce=(e,t)=>d.css`
165
+ `;class X extends l.Anchor{}const Q={delegatesFocus:!0,mode:"open"},J={},Z=X.compose(Object.assign({baseName:"anchor",template:q,styles:K,shadowOptions:Q},J)),ee=(e,t)=>(0,s.anchoredRegionTemplate)(e,t),te=(e,t)=>d.css`
166
166
  ${(0,l.anchoredRegionStyles)(e,t)}
167
- `;class ue extends l.AnchoredRegion{}const he={delegatesFocus:!0,mode:"open"},pe={},me=ue.compose(Object.assign({baseName:"anchored-region",template:de,styles:ce,shadowOptions:he},pe)),ve=(e,t)=>(0,s.avatarTemplate)(e,t),ge=d.html`
167
+ `;class ie extends l.AnchoredRegion{}const oe={delegatesFocus:!0,mode:"open"},ne={},ae=ie.compose(Object.assign({baseName:"anchored-region",template:ee,styles:te,shadowOptions:oe},ne)),se=(e,t)=>(0,s.avatarTemplate)(e,t),re=d.html`
168
168
  ${(0,d.when)(e=>e.imgSrc,d.html`
169
169
  <img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
170
170
  `)}
171
- `,fe=(e,t)=>d.css`
171
+ `,le=(e,t)=>d.css`
172
172
  ${(0,l.avatarStyles)(e,t)}
173
- `;class be extends l.Avatar{}const ye={delegatesFocus:!0,mode:"open"},Ce={media:ge},we=be.compose(Object.assign({baseName:"avatar",template:ve,styles:fe,shadowOptions:ye},Ce)),xe=(e,t)=>(0,s.badgeTemplate)(e,t),$e=(e,t)=>d.css`
173
+ `;class de extends l.Avatar{}const ce={delegatesFocus:!0,mode:"open"},ue={media:re},he=de.compose(Object.assign({baseName:"avatar",template:se,styles:le,shadowOptions:ce},ue)),pe=(e,t)=>(0,s.badgeTemplate)(e,t),me=(e,t)=>d.css`
174
174
  ${(0,l.badgeStyles)(e,t)}
175
- `;class Se extends l.Badge{}const Ee=void 0,Oe={},Te=Se.compose(Object.assign({baseName:"badge",template:xe,styles:$e,shadowOptions:Ee},Oe)),ke=d.css`
175
+ `;class ge extends l.Badge{}const ve=void 0,fe={},be=ge.compose(Object.assign({baseName:"badge",template:pe,styles:me,shadowOptions:ve},fe)),ye=d.css`
176
176
  @keyframes delete-animate {
177
177
  from {
178
178
  height: 100px;
@@ -244,7 +244,7 @@
244
244
  flex: 1;
245
245
  overflow: hidden;
246
246
  }
247
- `,Ie=e=>d.html`
247
+ `,Ce=e=>d.html`
248
248
  <div role="alert" aria-live="polite" class="banner ${e=>e.dismissAnimation}" ${(0,d.ref)("banner")}>
249
249
  <div part="content" class="content">
250
250
  <slot name="content">
@@ -273,23 +273,23 @@
273
273
  </slot>
274
274
  </div>
275
275
  </div>
276
- `,De=d.html`
277
- ${e=>Ie(z(e))}
278
- `,Re={mode:"open",delegatesFocus:!0};class Fe extends s.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise(e=>{this.banner.onanimationend=()=>{this.remove(),e()}})}dismissNotification(){return(0,$.sH)(this,void 0,void 0,function*(){try{yield this.dismiss(),this.remove()}catch(e){L.error(e)}})}}(0,$.Cg)([d.observable],Fe.prototype,"dismissAnimation",void 0),(0,$.Cg)([d.observable],Fe.prototype,"notification",void 0);const Ae=Fe.compose({baseName:"banner",styles:ke,template:De,shadowOptions:Re}),Ne=(e,t)=>(0,s.breadcrumbTemplate)(e,t),Le=(e,t)=>d.css`
276
+ `,we=d.html`
277
+ ${e=>Ce(z(e))}
278
+ `,xe={mode:"open",delegatesFocus:!0};class $e extends s.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise(e=>{this.banner.onanimationend=()=>{this.remove(),e()}})}dismissNotification(){return(0,$.sH)(this,void 0,void 0,function*(){try{yield this.dismiss(),this.remove()}catch(e){L.error(e)}})}}(0,$.Cg)([d.observable],$e.prototype,"dismissAnimation",void 0),(0,$.Cg)([d.observable],$e.prototype,"notification",void 0);const Se=$e.compose({baseName:"banner",styles:ye,template:we,shadowOptions:xe}),Ee=(e,t)=>(0,s.breadcrumbTemplate)(e,t),Oe=(e,t)=>d.css`
279
279
  ${(0,l.breadcrumbStyles)(e,t)}
280
- `;class Me extends l.Breadcrumb{}const _e=void 0,He={},ze=Me.compose(Object.assign({baseName:"breadcrumb",template:Ne,styles:Le,shadowOptions:_e},He)),Pe=(e,t)=>(0,s.breadcrumbItemTemplate)(e,t),Ue=(e,t)=>d.css`
280
+ `;class Te extends l.Breadcrumb{}const ke=void 0,Ie={},De=Te.compose(Object.assign({baseName:"breadcrumb",template:Ee,styles:Oe,shadowOptions:ke},Ie)),Re=(e,t)=>(0,s.breadcrumbItemTemplate)(e,t),Fe=(e,t)=>d.css`
281
281
  ${(0,l.breadcrumbItemStyles)(e,t)}
282
- `;class Be extends l.BreadcrumbItem{}const Ge=void 0,je={separator:"/"},Ve=Be.compose(Object.assign({baseName:"breadcrumb-item",template:Pe,styles:Ue,shadowOptions:Ge},je)),Ye=(e,t)=>(0,s.buttonTemplate)(e,t),We=(e,t)=>d.css`
282
+ `;class Ne extends l.BreadcrumbItem{}const Ae=void 0,Le={separator:"/"},Me=Ne.compose(Object.assign({baseName:"breadcrumb-item",template:Re,styles:Fe,shadowOptions:Ae},Le)),He=(e,t)=>(0,s.buttonTemplate)(e,t),_e=(e,t)=>d.css`
283
283
  ${(0,l.buttonStyles)(e,t)}
284
- `;class qe extends l.Button{}const Ke={delegatesFocus:!0,mode:"open"},Xe={},Qe=qe.compose(Object.assign({baseName:"button",template:Ye,styles:We,shadowOptions:Ke},Xe)),Je=()=>d.css`
284
+ `;class ze extends l.Button{}const Pe={delegatesFocus:!0,mode:"open"},Ue={},Be=ze.compose(Object.assign({baseName:"button",template:He,styles:_e,shadowOptions:Pe},Ue)),Ge=()=>d.css`
285
285
  ${l.CalendarStyles}
286
- `,Ze=(e,t)=>(0,s.calendarTemplate)(e,t);class et extends l.Calendar{}const tt={delegatesFocus:!0,mode:"open"},it={},ot=et.compose(Object.assign({baseName:"calendar",template:Ze,styles:Je,shadowOptions:tt},it)),nt=(e,t)=>(0,s.cardTemplate)(e,t),at=(e,t)=>d.css`
286
+ `,je=(e,t)=>(0,s.calendarTemplate)(e,t);class Ve extends l.Calendar{}const Ye={delegatesFocus:!0,mode:"open"},We={},qe=Ve.compose(Object.assign({baseName:"calendar",template:je,styles:Ge,shadowOptions:Ye},We)),Ke=(e,t)=>(0,s.cardTemplate)(e,t),Xe=(e,t)=>d.css`
287
287
  ${(0,l.cardStyles)(e,t)}
288
288
  :host {
289
289
  background-color: var(--fui-card-fill-color);
290
290
  color: var(--fui-card-foreground-color);
291
291
  }
292
- `;class st extends l.Card{}const rt=void 0,lt={},dt=st.compose(Object.assign({baseName:"card",template:nt,styles:at,shadowOptions:rt},lt));var ct;!function(e){e.BELOW="below",e.ABOVE="above"}(ct||(ct={}));var ut=i(62051),ht=i.n(ut);const pt=230,mt=d.css`
292
+ `;class Qe extends l.Card{}const Je=void 0,Ze={},et=Qe.compose(Object.assign({baseName:"card",template:Ke,styles:Xe,shadowOptions:Je},Ze));var tt;!function(e){e.BELOW="below",e.ABOVE="above"}(tt||(tt={}));var it=i(62051),ot=i.n(it);const nt=230,at=d.css`
293
293
  :host {
294
294
  --scrollbar-width: 12px;
295
295
  --scrollbar-thumb-width: 8px;
@@ -433,7 +433,7 @@
433
433
 
434
434
  .visible {
435
435
  visibility: visible;
436
- max-height: var(--custom-max-height, ${pt.toString()}px);
436
+ max-height: var(--custom-max-height, ${nt.toString()}px);
437
437
  overflow: hidden;
438
438
  }
439
439
 
@@ -530,11 +530,11 @@
530
530
  resize: none;
531
531
  overflow: hidden;
532
532
  }
533
- `;var vt,gt=i(40729);let ft=vt=class extends M{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.baseCriteria="",this.resizeObserverCallback=e=>{e.forEach(e=>{this.checkOverflow(e.target)})},this.selectChangeHandler=e=>{var t;const i=e.target.value,o=null===(t=this.options)||void 0===t?void 0:t.find(e=>String(e.label)===i);!o&&this.allowCustomOptions&&this.select instanceof l.Combobox?this.select.$emit("value-change",{label:i,value:i}):this.select.$emit("value-change",o)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData())}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t,i;e.connectedCallback.call(this),this.baseCriteria=this.criteria,this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(i=this.optionElement)&&void 0!==i?i:`${z(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.fetchData(),this.valueField||L.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),this.select.removeEventListener("change",this.selectChangeHandler)}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof l.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,$.sH)(this,void 0,void 0,function*(){(yield this.datasource.init(this.datasourceOptions(),!0))?X(this,this.initialSelectedValue):this.handleError({message:`Genesis Datasource async mode initialization failed for ${this.resourceName}`,loggerType:"error"})})}clearData(){this.select&&(Array.from(this.select.children).forEach(e=>{e instanceof vt||this.select.removeChild(e)}),this.select.value="",this.select.initialValue="")}checkOverflow(e){const t=e.shadowRoot.querySelector(".content");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",e.textContent):e.removeAttribute("title"))}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.options=t.map(e=>{var t;return{value:e[this.valueField],label:this.labelRowFormatter?this.labelRowFormatter(e):this.labelFormatter?this.labelFormatter(e[this.labelField]):this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}});if(this.options.map(({value:e,label:t})=>{const i=document.createElement(this.optionElement);return i.textContent=t||e,i.value=e,i}).forEach(e=>{this.select.appendChild(e),this.resizeObserver.observe(e)}),!this.initalSelectedValueInitialized||this.select instanceof l.Combobox&&!this.select.async){this.resetCombobox();const e=this.getInitialLabel();d.DOM.queueUpdate(()=>{this.select.value=String(e),this.select instanceof l.Combobox&&this.select.async&&this.selectChangeHandler({target:{value:e}})}),this.initalSelectedValueInitialized=!0}}else{this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof l.Combobox&&!this.select.async)&&(this.resetCombobox(),d.DOM.queueUpdate(()=>{this.select.value=String(this.initialSelectedValue)}),this.initalSelectedValueInitialized=!0);const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}getInitialLabel(){var e,t;let i="";return(this.initialSelectedValue||0===this.initialSelectedValue)&&(i=this.allowCustomOptions&&this.select instanceof l.Combobox?(null===(e=this.options.find(e=>e.value===this.initialSelectedValue))||void 0===e?void 0:e.label)||this.initialSelectedValue:(null===(t=this.options.find(e=>e.value===this.initialSelectedValue))||void 0===t?void 0:t.label)||""),i}resetCombobox(){this.select&&this.select instanceof l.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};(0,$.Cg)([(0,d.attr)({attribute:"label-field"})],ft.prototype,"labelField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"option-element"})],ft.prototype,"optionElement",void 0),(0,$.Cg)([(0,d.attr)({attribute:"value-field"})],ft.prototype,"valueField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"empty-data-label"})],ft.prototype,"emptyDataLabel",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"allow-custom-options"})],ft.prototype,"allowCustomOptions",void 0),(0,$.Cg)([d.observable],ft.prototype,"labelFormatter",void 0),(0,$.Cg)([d.observable],ft.prototype,"labelRowFormatter",void 0),(0,$.Cg)([d.observable],ft.prototype,"initialSelectedValue",void 0),ft=vt=(0,$.Cg)([(0,d.customElement)({name:"options-datasource"})],ft);let bt=class extends M{constructor(){super(...arguments),this.isSnapshot=!0,this.baseCriteria=""}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),this.baseCriteria=this.criteria,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||L.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 i=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map(e=>{var t;return{value:e[this.valueField],label:this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}});(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=i}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};(0,$.Cg)([(0,d.attr)({attribute:"value-field"})],bt.prototype,"valueField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"label-field"})],bt.prototype,"labelField",void 0),bt=(0,$.Cg)([(0,d.customElement)({name:"multiselect-datasource"})],bt);const yt=(e="foundation")=>d.html`
533
+ `;var st;let rt=st=class extends M{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.baseCriteria="",this.resizeObserverCallback=e=>{e.forEach(e=>{this.checkOverflow(e.target)})},this.selectChangeHandler=e=>{var t;const i=e.target.value,o=null===(t=this.options)||void 0===t?void 0:t.find(e=>String(e.label)===i);!o&&this.allowCustomOptions&&this.select instanceof l.Combobox?this.select.$emit("value-change",{label:i,value:i}):this.select.$emit("value-change",o)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData())}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t,i;e.connectedCallback.call(this),this.baseCriteria=this.criteria,this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(i=this.optionElement)&&void 0!==i?i:`${z(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.fetchData(),this.valueField||L.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),this.select.removeEventListener("change",this.selectChangeHandler)}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof l.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,$.sH)(this,void 0,void 0,function*(){(yield this.datasource.init(this.datasourceOptions(),!0))?U(this,this.initialSelectedValue):this.handleError({message:`Genesis Datasource async mode initialization failed for ${this.resourceName}`,loggerType:"error"})})}clearData(){this.select&&(Array.from(this.select.children).forEach(e=>{e instanceof st||this.select.removeChild(e)}),this.select.value="",this.select.initialValue="")}checkOverflow(e){const t=e.shadowRoot.querySelector(".content");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",e.textContent):e.removeAttribute("title"))}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.options=t.map(e=>{var t;return{value:e[this.valueField],label:this.labelRowFormatter?this.labelRowFormatter(e):this.labelFormatter?this.labelFormatter(e[this.labelField]):this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}});if(this.options.map(({value:e,label:t})=>{const i=document.createElement(this.optionElement);return i.textContent=t||e,i.value=e,i}).forEach(e=>{this.select.appendChild(e),this.resizeObserver.observe(e)}),!this.initalSelectedValueInitialized||this.select instanceof l.Combobox&&!this.select.async){this.resetCombobox();const e=this.getInitialLabel();d.DOM.queueUpdate(()=>{this.select.value=String(e),this.select instanceof l.Combobox&&this.select.async&&this.selectChangeHandler({target:{value:e}})}),this.initalSelectedValueInitialized=!0}}else{this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof l.Combobox&&!this.select.async)&&(this.resetCombobox(),d.DOM.queueUpdate(()=>{this.select.value=String(this.initialSelectedValue)}),this.initalSelectedValueInitialized=!0);const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}getInitialLabel(){var e,t;let i="";return(this.initialSelectedValue||0===this.initialSelectedValue)&&(i=this.allowCustomOptions&&this.select instanceof l.Combobox?(null===(e=this.options.find(e=>e.value===this.initialSelectedValue))||void 0===e?void 0:e.label)||this.initialSelectedValue:(null===(t=this.options.find(e=>e.value===this.initialSelectedValue))||void 0===t?void 0:t.label)||""),i}resetCombobox(){this.select&&this.select instanceof l.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};(0,$.Cg)([(0,d.attr)({attribute:"label-field"})],rt.prototype,"labelField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"option-element"})],rt.prototype,"optionElement",void 0),(0,$.Cg)([(0,d.attr)({attribute:"value-field"})],rt.prototype,"valueField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"empty-data-label"})],rt.prototype,"emptyDataLabel",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"allow-custom-options"})],rt.prototype,"allowCustomOptions",void 0),(0,$.Cg)([d.observable],rt.prototype,"labelFormatter",void 0),(0,$.Cg)([d.observable],rt.prototype,"labelRowFormatter",void 0),(0,$.Cg)([d.observable],rt.prototype,"initialSelectedValue",void 0),rt=st=(0,$.Cg)([(0,d.customElement)({name:"options-datasource"})],rt);let lt=class extends M{constructor(){super(...arguments),this.isSnapshot=!0,this.baseCriteria=""}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),this.baseCriteria=this.criteria,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||L.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 i=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map(e=>{var t;return{value:e[this.valueField],label:this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}});(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=i}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};(0,$.Cg)([(0,d.attr)({attribute:"value-field"})],lt.prototype,"valueField",void 0),(0,$.Cg)([(0,d.attr)({attribute:"label-field"})],lt.prototype,"labelField",void 0),lt=(0,$.Cg)([(0,d.customElement)({name:"multiselect-datasource"})],lt);const dt=(e="foundation")=>d.html`
534
534
  <label
535
535
  part="label"
536
536
  for="display-field"
537
- class=${e=>{var t;return(0,ee.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
537
+ class=${e=>{var t;return(0,V.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
538
538
  >
539
539
  <slot
540
540
  name="label"
@@ -555,7 +555,7 @@
555
555
  @click=${e=>e.toggle()}
556
556
  ?disabled="${e=>e.disabled}"
557
557
  ${(0,d.ref)("filterSearchInput")}
558
- value=${(0,gt.O)(e=>e.filterSearchValue,"string","input")}
558
+ value=${(0,F.OH)(e=>e.filterSearchValue,"string","input")}
559
559
  placeholder="${e=>e.getDisplayValue}"
560
560
  autocomplete="off"
561
561
  @input=${(e,t)=>e.inputHandler()}
@@ -566,7 +566,7 @@
566
566
  viewBox="0 0 12 7"
567
567
  ${(0,d.ref)("arrowIcon")}
568
568
  id="arrow-icon"
569
- class="${e=>(0,ee.x)(["disabled-svg",e.disabled])}"
569
+ class="${e=>(0,V.x)(["disabled-svg",e.disabled])}"
570
570
  xmlns="http://www.w3.org/2000/svg"
571
571
  >
572
572
  <path 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"}" />
@@ -580,7 +580,7 @@
580
580
  <${e}-progress slot="indicator"></${e}-progress>
581
581
  `)}
582
582
  <section
583
- class=${e=>(0,ee.x)("multiselect-dropdown",["resizable",e.resizable])}
583
+ class=${e=>(0,V.x)("multiselect-dropdown",["resizable",e.resizable])}
584
584
  ${(0,d.ref)("multiselectDropdown")}
585
585
  part="multiselect-dropdown"
586
586
  >
@@ -607,7 +607,7 @@
607
607
  >
608
608
  <li
609
609
  part="options-header-item"
610
- class=${e=>{var t;return(0,ee.x)("options-header-item",["options-header-item-hidden",!(null===(t=e.optionsHeaderSlottedNodes)||void 0===t?void 0:t.length)])}}
610
+ class=${e=>{var t;return(0,V.x)("options-header-item",["options-header-item-hidden",!(null===(t=e.optionsHeaderSlottedNodes)||void 0===t?void 0:t.length)])}}
611
611
  >
612
612
  <slot
613
613
  name="options-header"
@@ -637,11 +637,11 @@
637
637
  </section>
638
638
  </div>
639
639
  <slot
640
- ${(0,d.slotted)({property:"slottedDatasource",filter:e=>e instanceof bt})}
640
+ ${(0,d.slotted)({property:"slottedDatasource",filter:e=>e instanceof lt})}
641
641
  ></slot>
642
- `,Ct=d.html`
643
- ${yt()}
644
- `,wt=void 0,xt={};class $t extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ct.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,i=e.clientY-this.startY,o=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+i);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${o}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=ht()(this.asyncSetFilter,t)}openChanged(e,t){var i,o,n,a;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.add("flipped"),null===(o=this.multiselectDropdown)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(a=this.multiselectDropdown)||void 0===a||a.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ct.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return d.html`
642
+ `,ct=d.html`
643
+ ${dt()}
644
+ `,ut=void 0,ht={};class pt extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=tt.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,i=e.clientY-this.startY,o=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+i);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${o}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=ot()(this.asyncSetFilter,t)}openChanged(e,t){var i,o,n,a;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.add("flipped"),null===(o=this.multiselectDropdown)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(a=this.multiselectDropdown)||void 0===a||a.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===tt.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return d.html`
645
645
  ${"string"==typeof e?d.html`
646
646
  <span part="option-label">${()=>t.getItemLabel(e)}</span>
647
647
  `:d.html`
@@ -653,7 +653,7 @@
653
653
  ${()=>t.getItemLabel(e)}
654
654
  </span>
655
655
  `}
656
- `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map(e=>this.optionValueGetter(e))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<pt&&o>n?ct.ABOVE:ct.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===ct.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===ct.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find(e=>this.optionValueGetter(e)===this.selectedOptions[0]);e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some(i=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(i)===JSON.stringify(t)}catch(e){return i===t}return i===t})}selectCheckboxOne(e){const t=this.optionValueGetter(e),i=this.selectedOptions.includes(t);this.selectedOptions=i?this.selectedOptions.filter(e=>e!==t):[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter(e=>!this.isOptionDisabled(e)).map(e=>this.optionValueGetter(e)),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter(t=>{var i,o;const n="string"==typeof t?t:null!==(i=this.optionLabelGetter(t))&&void 0!==i?i:this.optionValueGetter(t);return(null!==(o=null==n?void 0:n.toLowerCase())&&void 0!==o?o:"")===e})}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter(t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const i=t.label.toLowerCase(),o="object"==typeof t.value?(n=t.value,Object.values(n).some(t=>t.toLowerCase().includes(e))):String(t.value).toLowerCase().includes(e);var n;return i.includes(e)||o})}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){this.slottedDatasource.length>0?X(this.slottedDatasource[0],this.filterSearchValue):(this.loading=!1,L.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality."))}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){_(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:i=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),i&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:i})}}(0,$.Cg)([d.attr],$t.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"auto-position"})],$t.prototype,"autoPosition",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"all",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"allSelected",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"search",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"disabled",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"creatable",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"async",void 0),(0,$.Cg)([d.attr],$t.prototype,"debounce",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],$t.prototype,"resizable",void 0),(0,$.Cg)([d.attr],$t.prototype,"tabindex",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"filter-by-contains"})],$t.prototype,"filterByContains",void 0),(0,$.Cg)([d.observable],$t.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],$t.prototype,"slottedDatasource",void 0),(0,$.Cg)([d.observable],$t.prototype,"valueFormatter",void 0),(0,$.Cg)([d.observable],$t.prototype,"loading",void 0),(0,$.Cg)([d.observable],$t.prototype,"filterSearchValue",void 0),(0,$.Cg)([d.observable],$t.prototype,"open",void 0),(0,$.Cg)([d.observable],$t.prototype,"options",void 0),(0,$.Cg)([d.observable],$t.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],$t.prototype,"filteredAvailableOptions",void 0),(0,$.Cg)([d.observable],$t.prototype,"scrollContainer",void 0),(0,$.Cg)([d.attr],$t.prototype,"position",void 0),(0,$.Cg)([d.observable],$t.prototype,"onAllSelectedCallback",void 0),(0,$.Cg)([d.observable],$t.prototype,"itemRenderer",void 0),(0,$.Cg)([d.volatile],$t.prototype,"getDisplayValue",null),(0,$.Cg)([d.volatile],$t.prototype,"getPlaceholder",null),(0,$.Cg)([d.volatile],$t.prototype,"isAllOptionsDisabled",null),(0,$.Cg)([d.volatile],$t.prototype,"showCreatable",null),(0,$.Cg)([d.observable],$t.prototype,"optionsHeaderSlottedNodes",void 0);const St=$t.compose(Object.assign({baseName:"multiselect",template:Ct,styles:mt,shadowOptions:wt},xt)),Et=450,Ot=d.css`
656
+ `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map(e=>this.optionValueGetter(e))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<nt&&o>n?tt.ABOVE:tt.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===tt.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===tt.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find(e=>this.optionValueGetter(e)===this.selectedOptions[0]);e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some(i=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(i)===JSON.stringify(t)}catch(e){return i===t}return i===t})}selectCheckboxOne(e){const t=this.optionValueGetter(e),i=this.selectedOptions.includes(t);this.selectedOptions=i?this.selectedOptions.filter(e=>e!==t):[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter(e=>!this.isOptionDisabled(e)).map(e=>this.optionValueGetter(e)),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter(t=>{var i,o;const n="string"==typeof t?t:null!==(i=this.optionLabelGetter(t))&&void 0!==i?i:this.optionValueGetter(t);return(null!==(o=null==n?void 0:n.toLowerCase())&&void 0!==o?o:"")===e})}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter(t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const i=t.label.toLowerCase(),o="object"==typeof t.value?(n=t.value,Object.values(n).some(t=>t.toLowerCase().includes(e))):String(t.value).toLowerCase().includes(e);var n;return i.includes(e)||o})}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){this.slottedDatasource.length>0?U(this.slottedDatasource[0],this.filterSearchValue):(this.loading=!1,L.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality."))}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){H(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:i=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),i&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:i})}}(0,$.Cg)([d.attr],pt.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"auto-position"})],pt.prototype,"autoPosition",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"all",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"allSelected",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"search",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"disabled",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"creatable",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"async",void 0),(0,$.Cg)([d.attr],pt.prototype,"debounce",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],pt.prototype,"resizable",void 0),(0,$.Cg)([d.attr],pt.prototype,"tabindex",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"filter-by-contains"})],pt.prototype,"filterByContains",void 0),(0,$.Cg)([d.observable],pt.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],pt.prototype,"slottedDatasource",void 0),(0,$.Cg)([d.observable],pt.prototype,"valueFormatter",void 0),(0,$.Cg)([d.observable],pt.prototype,"loading",void 0),(0,$.Cg)([d.observable],pt.prototype,"filterSearchValue",void 0),(0,$.Cg)([d.observable],pt.prototype,"open",void 0),(0,$.Cg)([d.observable],pt.prototype,"options",void 0),(0,$.Cg)([d.observable],pt.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],pt.prototype,"filteredAvailableOptions",void 0),(0,$.Cg)([d.observable],pt.prototype,"scrollContainer",void 0),(0,$.Cg)([d.attr],pt.prototype,"position",void 0),(0,$.Cg)([d.observable],pt.prototype,"onAllSelectedCallback",void 0),(0,$.Cg)([d.observable],pt.prototype,"itemRenderer",void 0),(0,$.Cg)([d.volatile],pt.prototype,"getDisplayValue",null),(0,$.Cg)([d.volatile],pt.prototype,"getPlaceholder",null),(0,$.Cg)([d.volatile],pt.prototype,"isAllOptionsDisabled",null),(0,$.Cg)([d.volatile],pt.prototype,"showCreatable",null),(0,$.Cg)([d.observable],pt.prototype,"optionsHeaderSlottedNodes",void 0);const mt=pt.compose(Object.assign({baseName:"multiselect",template:ct,styles:at,shadowOptions:ut},ht)),gt=450,vt=d.css`
657
657
  .root {
658
658
  position: relative;
659
659
  width: 100%;
@@ -841,15 +841,15 @@
841
841
 
842
842
  .visible {
843
843
  visibility: visible;
844
- max-height: ${Et.toString()}px;
844
+ max-height: ${gt.toString()}px;
845
845
  }
846
- `,Tt=(e="foundation")=>d.html`
846
+ `,ft=(e="foundation")=>d.html`
847
847
  <div class="root" part="root">
848
848
  <div class="control" part="control" @click=${e=>!e.disabled&&e.toggle()}>
849
849
  <label
850
850
  part="label"
851
851
  for="control"
852
- class=${e=>{var t;return(0,ee.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
852
+ class=${e=>{var t;return(0,V.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
853
853
  >
854
854
  <slot
855
855
  ${(0,d.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}
@@ -866,7 +866,7 @@
866
866
  <${e}-text-field
867
867
  id="filter-search"
868
868
  part="filter-search"
869
- value=${(0,gt.O)(e=>e.filterSearchValue,"string","input")}
869
+ value=${(0,F.OH)(e=>e.filterSearchValue,"string","input")}
870
870
  placeholder="${e=>e.getPlaceholder}"
871
871
  @input=${(e,t)=>e.setFilter()}
872
872
  @change=${(e,t)=>e.changeHandler(t.event)}
@@ -912,11 +912,11 @@
912
912
  </div>
913
913
  </div>
914
914
  </div>
915
- `,kt=d.html`
916
- ${Tt()}
917
- `,It=void 0,Dt={};class Rt extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=ct.BELOW}openChanged(e,t){var i,o;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ct.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce((e,t)=>{const i=t.type||"Other";return e[i]?e[i].options.push(t):e[i]={type:i,options:[t]},e},{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const i=t.getBoundingClientRect(),o=this.getBoundingClientRect(),n=i.top+i.height/2;e=o.top<n?ct.BELOW:ct.ABOVE}else{const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<t.height&&o>n?ct.ABOVE:ct.BELOW}}e===ct.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ct.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter(e=>{var t;const i=e.description,o=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==i?void 0:i.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||o.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0});this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){_(e,this)&&(this.open=!1)}}(0,$.Cg)([d.attr],Rt.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"auto-position"})],Rt.prototype,"autoPosition",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Rt.prototype,"search",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Rt.prototype,"disabled",void 0),(0,$.Cg)([d.observable],Rt.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],Rt.prototype,"valueFormatter",void 0),(0,$.Cg)([d.observable],Rt.prototype,"filterSearchValue",void 0),(0,$.Cg)([d.observable],Rt.prototype,"open",void 0),(0,$.Cg)([d.observable],Rt.prototype,"options",void 0),(0,$.Cg)([d.observable],Rt.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],Rt.prototype,"filteredAvailableOptions",void 0),(0,$.Cg)([d.observable],Rt.prototype,"position",void 0),(0,$.Cg)([d.volatile],Rt.prototype,"getPlaceholder",null);const Ft=Rt.compose(Object.assign({baseName:"categorized-multiselect",template:kt,styles:Ot,shadowOptions:It},Dt)),At=(e,t)=>(0,s.checkboxTemplate)(e,t),Nt=(e,t)=>d.css`
915
+ `,bt=d.html`
916
+ ${ft()}
917
+ `,yt=void 0,Ct={};class wt extends s.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=tt.BELOW}openChanged(e,t){var i,o;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===tt.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce((e,t)=>{const i=t.type||"Other";return e[i]?e[i].options.push(t):e[i]={type:i,options:[t]},e},{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const i=t.getBoundingClientRect(),o=this.getBoundingClientRect(),n=i.top+i.height/2;e=o.top<n?tt.BELOW:tt.ABOVE}else{const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<t.height&&o>n?tt.ABOVE:tt.BELOW}}e===tt.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===tt.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter(e=>{var t;const i=e.description,o=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==i?void 0:i.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||o.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0});this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){H(e,this)&&(this.open=!1)}}(0,$.Cg)([d.attr],wt.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"auto-position"})],wt.prototype,"autoPosition",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],wt.prototype,"search",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],wt.prototype,"disabled",void 0),(0,$.Cg)([d.observable],wt.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],wt.prototype,"valueFormatter",void 0),(0,$.Cg)([d.observable],wt.prototype,"filterSearchValue",void 0),(0,$.Cg)([d.observable],wt.prototype,"open",void 0),(0,$.Cg)([d.observable],wt.prototype,"options",void 0),(0,$.Cg)([d.observable],wt.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],wt.prototype,"filteredAvailableOptions",void 0),(0,$.Cg)([d.observable],wt.prototype,"position",void 0),(0,$.Cg)([d.volatile],wt.prototype,"getPlaceholder",null);const xt=wt.compose(Object.assign({baseName:"categorized-multiselect",template:bt,styles:vt,shadowOptions:yt},Ct)),$t=(e,t)=>(0,s.checkboxTemplate)(e,t),St=(e,t)=>d.css`
918
918
  ${(0,l.checkboxStyles)(e,t)}
919
- `;class Lt extends l.Checkbox{}const Mt=void 0,_t={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 '},Ht=Lt.compose(Object.assign({baseName:"checkbox",template:At,styles:Nt,shadowOptions:Mt},_t)),zt=(e,t)=>d.css`
919
+ `;class Et extends l.Checkbox{}const Ot=void 0,Tt={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 '},kt=Et.compose(Object.assign({baseName:"checkbox",template:$t,styles:St,shadowOptions:Ot},Tt)),It=(e,t)=>d.css`
920
920
  .combo-box-indicator {
921
921
  transition-property: transform;
922
922
  transition-duration: 0.2s;
@@ -928,7 +928,7 @@
928
928
  }
929
929
 
930
930
  ${(0,l.comboboxStyles)(e,t)}
931
- `,Pt=(e,t)=>d.html`
931
+ `,Dt=(e,t)=>d.html`
932
932
  <template
933
933
  aria-activedescendant="${e=>e.activeDescendant}"
934
934
  class="${e=>e.open?"open":""} ${e=>e.disabled?"disabled":""} ${e=>e.position}"
@@ -982,7 +982,7 @@
982
982
  ></slot>
983
983
  </div>
984
984
  </template>
985
- `;var Ut,Bt;class Gt extends l.Combobox{constructor(){super(...arguments),Ut.set(this,void 0),Bt.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",this.scrollToSelectedWhenOpening=!1,this.scrollToSelectedWhenOpeningOptions={behavior:"auto",block:"nearest"},this.scrollWhenSelectionChanges=!1,this.scrollWhenSelectionChangesOptions={behavior:"auto",block:"center"},this.resetCombobox=()=>{this.selectedOptions=[],this.selectedIndex=-1,this.value="",this.control.value="",this.filter="",this.filterOptions()}}get activeDescendant(){var e,t;if(this.selectedOptions&&0!==this.selectedOptions.length)return this.ariaActiveDescendant=null===(e=this.selectedOptions[0])||void 0===e?void 0:e.id,null===(t=this.selectedOptions[0])||void 0===t?void 0:t.id}debounceChanged(e,t){this.debouncedInputHandler=ht()(this.asyncSetFilter,t)}openChanged(){super.openChanged(),this.open?this.scrollToSelectedWhenOpening&&setTimeout(()=>{const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollToSelectedWhenOpeningOptions)},500):(this.manuallyDispatchChangeEvent(),this.filter="",this.filterOptions())}get value(){return d.Observable.track(this,"value"),this._ourValue}set value(e){var t,i,o;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),a=this.options?this.options.findIndex(n):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(i=this.options[a])||void 0===i?void 0:i.text;this.selectedIndex=r&&r!==s?a:this.selectedIndex,e&&""!==e.trim()&&-1===a&&(e=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),d.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const i=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(i)}filterOptions(){this.autocomplete&&this.autocomplete!==s.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter(e=>{const i=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?i.includes(t):i.startsWith(t)}),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(e=>e.hidden=!this.filteredOptions.includes(e)))}clickHandler(e){if(!this.disabled)if(_(e,this))this.open=!1;else{if(H(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!H(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,$.GG)(this,Bt,this.open,"f"),!this.open)return this.open=!0,!0;break;case"ArrowDown":case"ArrowUp":if(!this.open)return this.open=!0,!0;if(this.scrollWhenSelectionChanges){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollWhenSelectionChangesOptions)}break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const i=super.keydownHandler(e);return"Enter"!==t?i:void 0}keyupHandler(e){var t;const i=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(i){case"Enter":return!(0,$.gn)(this,Bt,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.needManualChangeEventDispatch=!0,this.currentValue=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value);break;case"Home":case"End":return;case"Backspace":case"Delete":const i=super.keyupHandler(e);return this.selectItemByValue(this.control.value),i}return super.keyupHandler(e)}get indicator(){return(0,$.gn)(this,Ut,"f")||(0,$.GG)(this,Ut,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,$.gn)(this,Ut,"f")}selectItemByValue(e){var t,i,o;this.selectedIndex=null!==(i=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.text===e))&&void 0!==i?i:-1,null===(o=this.options)||void 0===o||o.forEach((e,t)=>e.selected=t===this.selectedIndex)}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.control.value,t=this.slottedDatasource.assignedNodes().filter(e=>e instanceof ft);t.length>0?(X(t[0],this.control.value),d.DOM.queueUpdate(()=>{this.control.value=e})):L.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}Ut=new WeakMap,Bt=new WeakMap,(0,$.Cg)([d.observable],Gt.prototype,"activeDescendant",null),(0,$.Cg)([d.observable],Gt.prototype,"slottedDatasource",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Gt.prototype,"async",void 0),(0,$.Cg)([d.attr],Gt.prototype,"debounce",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"case-sensitive"})],Gt.prototype,"caseSensitive",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"ignore-input-click"})],Gt.prototype,"ignoreInputClick",void 0),(0,$.Cg)([(0,d.attr)({attribute:"filter-mode"})],Gt.prototype,"filterMode",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],Gt.prototype,"scrollToSelectedWhenOpening",void 0),(0,$.Cg)([d.observable],Gt.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],Gt.prototype,"scrollWhenSelectionChanges",void 0),(0,$.Cg)([d.observable],Gt.prototype,"scrollWhenSelectionChangesOptions",void 0);const jt={delegatesFocus:!0,mode:"open"},Vt={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 '},Yt=Gt.compose(Object.assign({baseName:"combobox",template:Pt,styles:zt,shadowOptions:jt},Vt));var Wt=i(98316);const qt=(e,t)=>d.css`
985
+ `;var Rt,Ft;class Nt extends l.Combobox{constructor(){super(...arguments),Rt.set(this,void 0),Ft.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",this.scrollToSelectedWhenOpening=!1,this.scrollToSelectedWhenOpeningOptions={behavior:"auto",block:"nearest"},this.scrollWhenSelectionChanges=!1,this.scrollWhenSelectionChangesOptions={behavior:"auto",block:"center"},this.resetCombobox=()=>{this.selectedOptions=[],this.selectedIndex=-1,this.value="",this.control.value="",this.filter="",this.filterOptions()}}get activeDescendant(){var e,t;if(this.selectedOptions&&0!==this.selectedOptions.length)return this.ariaActiveDescendant=null===(e=this.selectedOptions[0])||void 0===e?void 0:e.id,null===(t=this.selectedOptions[0])||void 0===t?void 0:t.id}debounceChanged(e,t){this.debouncedInputHandler=ot()(this.asyncSetFilter,t)}openChanged(){super.openChanged(),this.open?this.scrollToSelectedWhenOpening&&setTimeout(()=>{const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollToSelectedWhenOpeningOptions)},500):(this.manuallyDispatchChangeEvent(),this.filter="",this.filterOptions())}get value(){return d.Observable.track(this,"value"),this._ourValue}set value(e){var t,i,o;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),a=this.options?this.options.findIndex(n):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(i=this.options[a])||void 0===i?void 0:i.text;this.selectedIndex=r&&r!==s?a:this.selectedIndex,e&&""!==e.trim()&&-1===a&&(e=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),d.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const i=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(i)}filterOptions(){this.autocomplete&&this.autocomplete!==s.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter(e=>{const i=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?i.includes(t):i.startsWith(t)}),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(e=>e.hidden=!this.filteredOptions.includes(e)))}clickHandler(e){if(!this.disabled)if(H(e,this))this.open=!1;else{if(_(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!_(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,$.GG)(this,Ft,this.open,"f"),!this.open)return this.open=!0,!0;break;case"ArrowDown":case"ArrowUp":if(!this.open)return this.open=!0,!0;if(this.scrollWhenSelectionChanges){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollWhenSelectionChangesOptions)}break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const i=super.keydownHandler(e);return"Enter"!==t?i:void 0}keyupHandler(e){var t;const i=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(i){case"Enter":return!(0,$.gn)(this,Ft,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.needManualChangeEventDispatch=!0,this.currentValue=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value);break;case"Home":case"End":return;case"Backspace":case"Delete":const i=super.keyupHandler(e);return this.selectItemByValue(this.control.value),i}return super.keyupHandler(e)}get indicator(){return(0,$.gn)(this,Rt,"f")||(0,$.GG)(this,Rt,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,$.gn)(this,Rt,"f")}selectItemByValue(e){var t,i,o;this.selectedIndex=null!==(i=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.text===e))&&void 0!==i?i:-1,null===(o=this.options)||void 0===o||o.forEach((e,t)=>e.selected=t===this.selectedIndex)}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.control.value,t=this.slottedDatasource.assignedNodes().filter(e=>e instanceof rt);t.length>0?(U(t[0],this.control.value),d.DOM.queueUpdate(()=>{this.control.value=e})):L.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}Rt=new WeakMap,Ft=new WeakMap,(0,$.Cg)([d.observable],Nt.prototype,"activeDescendant",null),(0,$.Cg)([d.observable],Nt.prototype,"slottedDatasource",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Nt.prototype,"async",void 0),(0,$.Cg)([d.attr],Nt.prototype,"debounce",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"case-sensitive"})],Nt.prototype,"caseSensitive",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"ignore-input-click"})],Nt.prototype,"ignoreInputClick",void 0),(0,$.Cg)([(0,d.attr)({attribute:"filter-mode"})],Nt.prototype,"filterMode",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],Nt.prototype,"scrollToSelectedWhenOpening",void 0),(0,$.Cg)([d.observable],Nt.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],Nt.prototype,"scrollWhenSelectionChanges",void 0),(0,$.Cg)([d.observable],Nt.prototype,"scrollWhenSelectionChangesOptions",void 0);const At={delegatesFocus:!0,mode:"open"},Lt={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 '},Mt=Nt.compose(Object.assign({baseName:"combobox",template:Dt,styles:It,shadowOptions:At},Lt));var Ht=i(98316);const _t=(e,t)=>d.css`
986
986
  :host {
987
987
  --light-size: 12px;
988
988
  --height: calc(var(--design-unit) * 2px + var(--light-size));
@@ -1033,18 +1033,18 @@
1033
1033
  text-overflow: ellipsis;
1034
1034
  white-space: nowrap;
1035
1035
  }
1036
- `,Kt=d.html`
1037
- <div class=${e=>(0,ee.x)(["light",!0],[e.colour,!0])}></div>
1036
+ `,zt=d.html`
1037
+ <div class=${e=>(0,V.x)(["light",!0],[e.colour,!0])}></div>
1038
1038
  ${(0,d.when)(e=>e.showLabel,d.html`
1039
1039
  <div class="label">${e=>e.label}</div>
1040
1040
  `)}
1041
- `;class Xt extends s.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe(e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"})}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,$.Cg)([D.dm],Xt.prototype,"connect",void 0),(0,$.Cg)([Wt.N],Xt.prototype,"session",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-label"})],Xt.prototype,"showLabel",void 0),(0,$.Cg)([d.observable],Xt.prototype,"label",void 0),(0,$.Cg)([d.observable],Xt.prototype,"colour",void 0);const Qt=Xt.compose({baseName:"connection-indicator",template:Kt,styles:qt}),Jt=(e,t)=>(0,s.dataGridTemplate)(e,t),Zt=(e,t)=>d.css`
1041
+ `;class Pt extends s.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe(e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"})}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,$.Cg)([D.dm],Pt.prototype,"connect",void 0),(0,$.Cg)([Ht.N],Pt.prototype,"session",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-label"})],Pt.prototype,"showLabel",void 0),(0,$.Cg)([d.observable],Pt.prototype,"label",void 0),(0,$.Cg)([d.observable],Pt.prototype,"colour",void 0);const Ut=Pt.compose({baseName:"connection-indicator",template:zt,styles:_t}),Bt=(e,t)=>(0,s.dataGridTemplate)(e,t),Gt=(e,t)=>d.css`
1042
1042
  ${(0,l.dataGridStyles)(e,t)}
1043
- `;class ei extends l.DataGrid{}const ti=void 0,ii={},oi=ei.compose(Object.assign({baseName:"data-grid",template:Jt,styles:Zt,shadowOptions:ti},ii)),ni=(e,t)=>d.css`
1043
+ `;class jt extends l.DataGrid{}const Vt=void 0,Yt={},Wt=jt.compose(Object.assign({baseName:"data-grid",template:Bt,styles:Gt,shadowOptions:Vt},Yt)),qt=(e,t)=>d.css`
1044
1044
  ${(0,l.dataGridCellStyles)(e,t)}
1045
- `;class ai extends l.DataGridCell{}const si=void 0,ri={},li=ai.compose(Object.assign({baseName:"data-grid-cell",template:s.dataGridCellTemplate,styles:ni,shadowOptions:si},ri)),di=(e,t)=>d.css`
1045
+ `;class Kt extends l.DataGridCell{}const Xt=void 0,Qt={},Jt=Kt.compose(Object.assign({baseName:"data-grid-cell",template:s.dataGridCellTemplate,styles:qt,shadowOptions:Xt},Qt)),Zt=(e,t)=>d.css`
1046
1046
  ${(0,l.dataGridRowStyles)(e,t)}
1047
- `;class ci extends l.DataGridRow{}const ui=void 0,hi={},pi=ci.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:di,shadowOptions:ui},hi)),mi=d.css`
1047
+ `;class ei extends l.DataGridRow{}const ti=void 0,ii={},oi=ei.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:Zt,shadowOptions:ti},ii)),ni=d.css`
1048
1048
  :host {
1049
1049
  position: relative;
1050
1050
  }
@@ -1200,7 +1200,7 @@
1200
1200
  .date-toggle[readonly] .label {
1201
1201
  cursor: pointer;
1202
1202
  }
1203
- `,vi=[1,7],gi=e=>d.html`
1203
+ `,ai=[1,7],si=e=>d.html`
1204
1204
  <${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" @click="${e=>e.toggleCalendar()}">
1205
1205
  ${e=>e.label}
1206
1206
  <div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
@@ -1217,20 +1217,20 @@
1217
1217
  </${e}-button>
1218
1218
  </div>
1219
1219
  </div>
1220
- <div class="week-days ${e=>(0,ee.x)(["hide-weekends",e.hideWeekends])}">
1220
+ <div class="week-days ${e=>(0,V.x)(["hide-weekends",e.hideWeekends])}">
1221
1221
  ${(0,d.repeat)(e=>{var t;return null===(t=e.calendar)||void 0===t?void 0:t.weekDays},d.html`
1222
- ${(0,d.when)((e,t)=>!t.parent.hideWeekends||-1===vi.indexOf(t.index+1),d.html`
1222
+ ${(0,d.when)((e,t)=>!t.parent.hideWeekends||-1===ai.indexOf(t.index+1),d.html`
1223
1223
  <span
1224
- class="${(e,t)=>(0,ee.x)(["disabled",-1!==t.parent.disabledDaysOfWeek.indexOf(t.index+1)])}"
1224
+ class="${(e,t)=>(0,V.x)(["disabled",-1!==t.parent.disabledDaysOfWeek.indexOf(t.index+1)])}"
1225
1225
  >
1226
1226
  ${(e,t)=>e.substring(0,t.parent.substringNumber)}
1227
1227
  </span>
1228
1228
  `)}
1229
1229
  `,{positioning:!0})}
1230
1230
  </div>
1231
- <div class="month-days ${e=>(0,ee.x)(["hide-weekends",e.hideWeekends])}">
1231
+ <div class="month-days ${e=>(0,V.x)(["hide-weekends",e.hideWeekends])}">
1232
1232
  ${(0,d.repeat)(e=>e.monthList,d.html`
1233
- ${(0,d.when)((e,t)=>!t.parent.hideWeekends||-1===vi.indexOf(e.dayNumber),d.html`
1233
+ ${(0,d.when)((e,t)=>!t.parent.hideWeekends||-1===ai.indexOf(e.dayNumber),d.html`
1234
1234
  <button
1235
1235
  ?disabled="${(e,t)=>-1!==t.parent.disabledDaysOfWeek.indexOf(e.dayNumber)}"
1236
1236
  class="month-day
@@ -1245,44 +1245,44 @@
1245
1245
  </div>
1246
1246
  <slot name="bottom"></slot>
1247
1247
  </div>
1248
- `,fi=d.html`
1249
- ${e=>gi(z(e))}
1250
- `;var bi=i(94343),yi=i.n(bi),Ci=i(58915),wi=i.n(Ci),xi=i(7554),$i=i.n(xi),Si=i(49916),Ei=i.n(Si),Oi=i(33839),Ti=i.n(Oi);class ki{constructor(e,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}yi().extend(Ti());class Ii{constructor(e=null,t="default"){const i=new ki(e,t);this.lang=t,this.name=i.month,this.number=i.monthNumber,this.year=i.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=yi()(i.date).isLeapYear()?1:0)}getDay(e){return new ki(new Date(this.year,this.number-1,e),this.lang)}}yi().extend(Ti());class Di{constructor(e=null,t=null,i="default"){this.weekDays=Array.from({length:7}),this.today=new ki(null,i),this.year=null!=e?e:this.today.year,this.month=new Ii(new Date(this.year,(t||this.today.monthNumber)-1),i),this.lang=i,this.weekDays.forEach((e,t)=>{const i=this.month.getDay(t);this.weekDays[i.dayNumber-1]=i.day})}getMonth(e){return new Ii(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Ii(new Date(this.year-1,11),this.lang):new Ii(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Ii(new Date(this.year+1,0),this.lang):new Ii(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Ii(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Ii(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Ii(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Ii(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Ii(new Date(this.year,this.month.number-1-1),this.lang)}}var Ri=i(28745);const Fi=[1,2,3,4,5,6,7],Ai=(e,t,i)=>{if(o=t,-1===e.indexOf(o.dayNumber))return t;var o;const n=Fi.filter(t=>-1===e.indexOf(t));let a=n.find(e=>e>t.dayNumber);a||(a=Math.min(...n));const s=t.dayNumber<a?a-t.dayNumber:a-t.dayNumber+7;return n.length?new ki(((e,t=1)=>{const i=new Date(e);return i.setDate(e.getDate()+t),i})(t.Date,s),i):(Ri.v.warn("Date picker disabled days - all days of week have been disabled"),t)},Ni=void 0,Li={};class Mi extends s.FoundationElement{constructor(){super(...arguments),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[]}formatChanged(e,t){t&&this.calendar&&(this.formatDate=yi()(this.currentDate.Date).format(t))}inlineCalendarChanged(){this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(t&&this.calendar){const e=yi()().localeData().longDateFormat("L");this.currentDate=new ki(yi()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=yi()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}connectedCallback(){var e;super.connectedCallback(),yi().extend(wi()),yi().extend(Ei()),yi().extend($i()),this.substringNumber=3;const t=this.value,i=t?yi()(t,"MM-DD-YYYY"):yi()();let o=new ki(i.toDate(),this.lang);(null===(e=this.disabledDaysOfWeek)||void 0===e?void 0:e.length)&&(o=Ai(this.disabledDaysOfWeek,o,this.lang)),this.currentDate=o,this.calendar=new Di(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=yi()(this.currentDate.Date).format("MM-DD-YYYY"),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=yi()(this.currentDate.Date).format(this.format),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,ee.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return yi()(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){yi()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=yi()(this.currentDate.Date).format(this.format),this.value=yi()(e.Date).format("MM-DD-YYYY"),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),i=e.dayNumber-1,o=this.calendar.month.numberOfDays+i,n=Array.from({length:o});for(let e=i;e<o;e+=1)n[e]=this.calendar.month.getDay(e+1-i);for(let e=0;e<i;e+=1){const o=i-(e+1);n[e]=t.getDay(t.numberOfDays-o)}return n}}(0,$.Cg)([d.attr],Mi.prototype,"format",void 0),(0,$.Cg)([d.attr],Mi.prototype,"lang",void 0),(0,$.Cg)([d.attr],Mi.prototype,"visible",void 0),(0,$.Cg)([(0,d.attr)({attribute:"inline-calendar",mode:"boolean"})],Mi.prototype,"inlineCalendar",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-weekends",mode:"boolean"})],Mi.prototype,"hideWeekends",void 0),(0,$.Cg)([d.attr],Mi.prototype,"position",void 0),(0,$.Cg)([d.attr],Mi.prototype,"label",void 0),(0,$.Cg)([d.attr],Mi.prototype,"value",void 0),(0,$.Cg)([d.observable],Mi.prototype,"currentDate",void 0),(0,$.Cg)([d.observable],Mi.prototype,"currentMonth",void 0),(0,$.Cg)([d.observable],Mi.prototype,"currentYear",void 0),(0,$.Cg)([d.observable],Mi.prototype,"calendarDropdownClasses",void 0),(0,$.Cg)([d.observable],Mi.prototype,"formatDate",void 0),(0,$.Cg)([d.observable],Mi.prototype,"monthList",void 0),(0,$.Cg)([d.observable],Mi.prototype,"disabledDaysOfWeek",void 0),(0,$.Cg)([d.observable],Mi.prototype,"calendar",void 0);const _i=Mi.compose(Object.assign({baseName:"date-picker",styles:mi,template:fi,shadowOptions:Ni},Li)),Hi=(e,t)=>{const i=structuredClone(e);return!t||"object"!=typeof t||Array.isArray(t)?void 0!==t?t:i:(Object.keys(t).forEach(e=>{const o=t[e],n=i[e];if(null==o)return;const a=e=>e instanceof Date;!o||"object"!=typeof o||Array.isArray(o)||a(o)||!n||"object"!=typeof n||Array.isArray(n)||a(n)?i[e]=o:i[e]=Hi(n,o)}),i)};var zi=i(80273),Pi=i(83912);const Ui={design_tokens:{color:{accent:{$value:"#0EAFE2",$type:"color"},neutral:{$value:"#7C909B",$type:"color"}},fontFamily:{bodyFont:{$value:'Roboto, "Segoe UI", Arial, Helvetica, sans-serif',$type:"fontFamily"}},typography:{baseFontSize:{$value:"14px",$type:"dimension"},baseLineHeight:{$value:"20px",$type:"dimension"}},mode:{luminance:{$value:.23,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};class Bi{constructor(){this.value=null}}(0,$.Cg)([d.observable],Bi.prototype,"value",void 0);const Gi=new Bi,ji=(e,t,i)=>{const o=i?(e,t)=>e.setValueFor(i,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(i=>{const n=`${i}Value`;t[n]&&o(e[i],t[n])})};function Vi(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}const Yi={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Pi.parseColorHexRGB)(e);return t?l.SwatchRGB.create(t.r,t.g,t.b):null}},Wi=e=>l.PaletteRGB.from(l.SwatchRGB.from((0,Pi.parseColorHexRGB)(e))),qi=(e,t,i="")=>{Object.entries(t).forEach(([t,o])=>{const n=i?`${i}-${t}`:t;o&&"object"==typeof o&&("$value"in o?e.style.setProperty(`--${n}`,String(o.$value)):qi(e,o,n))})},Ki=["baseClass","baseName","shadowOptions","styles","template"],Xi=(e,t=Ki)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}),Qi=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:n}=t;return{shadowOptions:i,styles:o,template:n,defaultConfig:Xi(t)}},Ji=(e,t)=>{const i=e.match(/^(\d+)([a-z]+)/i),o=i[1],n=i[2];return Number(o)+t+n},Zi=()=>Gi,eo=(...e)=>{const t=Gi.value;if(!(null==t?void 0:t.customTokens)||0===e.length)return null;return function e(t,i){const[o,...n]=t;if(0===n.length){const e=i[o];return e&&e.$value?e:null}const a=i[o];return a?e(n,a):null}(e,t.customTokens)},to=(e,t)=>{const i=Hi(Ui,t);const o=i.design_tokens;l.accentPalette.setValueFor(e,Wi(o.color.accent.$value)),l.neutralPalette.setValueFor(e,Wi(o.color.neutral.$value)),l.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),l.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),l.density.setValueFor(e,o.style.density.$value),l.baseHeightMultiplier.setValueFor(e,o.style.baseHeightMultiplier.$value),l.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),l.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),l.designUnit.setValueFor(e,o.space.designUnit.$value),l.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),l.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const n=l.typeRampBaseFontSize.getValueFor(e),a=l.typeRampBaseLineHeight.getValueFor(e);l.typeRampMinus1FontSize.setValueFor(e,Ji(n,zi.Du.minusOne)),l.typeRampMinus1LineHeight.setValueFor(e,Ji(a,zi.Du.minusOne)),l.typeRampMinus2FontSize.setValueFor(e,Ji(n,zi.Du.minusTwo)),l.typeRampMinus2LineHeight.setValueFor(e,Ji(a,zi.Du.minusTwo)),l.typeRampPlus1FontSize.setValueFor(e,Ji(n,zi.Du.plusOne)),l.typeRampPlus1LineHeight.setValueFor(e,Ji(a,zi.Du.plusOne)),l.typeRampPlus2FontSize.setValueFor(e,Ji(n,zi.Du.plusTwo)),l.typeRampPlus2LineHeight.setValueFor(e,Ji(a,zi.Du.plusTwo)),l.typeRampPlus3FontSize.setValueFor(e,Ji(n,zi.Du.plusThree)),l.typeRampPlus3LineHeight.setValueFor(e,Ji(a,zi.Du.plusThree)),l.typeRampPlus4FontSize.setValueFor(e,Ji(n,zi.Du.plusFour)),l.typeRampPlus4LineHeight.setValueFor(e,Ji(a,zi.Du.plusFour)),l.typeRampPlus5FontSize.setValueFor(e,Ji(n,zi.Du.plusFive)),l.typeRampPlus5LineHeight.setValueFor(e,Ji(a,zi.Du.plusFive)),l.typeRampPlus6FontSize.setValueFor(e,Ji(n,zi.Du.plusSix)),l.typeRampPlus6LineHeight.setValueFor(e,Ji(a,zi.Du.plusSix)),i.customTokens&&qi(e,i.customTokens),Gi.value=structuredClone(i)},io=l.SwatchRGB.create(1,1,1),oo=l.SwatchRGB.create(0,0,0),no=(0,Pi.parseColorHexRGB)("#585858"),ao=l.SwatchRGB.create(no.r,no.g,no.b),so=(0,Pi.parseColorHexRGB)("#ffffff"),ro=l.SwatchRGB.create(so.r,so.g,so.b),lo=l.PaletteRGB.from(ro),co=(0,Pi.parseColorHexRGB)("#eeeeee"),uo=l.SwatchRGB.create(co.r,co.g,co.b),ho=l.PaletteRGB.from(uo),po=(0,Pi.parseColorHexRGB)("#08c3a5"),mo=l.SwatchRGB.create(po.r,po.g,po.b),vo=l.PaletteRGB.from(mo),{create:go}=s.DesignToken,fo=go("fui-fill-color").withDefault(ao),bo=go({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(ro),yo=14;function Co(e,t){return e.colorContrast(t,yo)}const wo=go({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault(e=>Co(go("fui-card-palette").withDefault(lo).getValueFor(e),bo.getValueFor(e))),xo=Wi("#08c3a5"),$o=Wi("#eeeeee"),So=l.StandardLuminance.DarkMode;const Eo=i(85109).O.ltr,Oo=4,To=4;var ko=i(85090);class Io extends d.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return d.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,i]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,i).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}var Do=i(70623),Ro=i(10463),Fo=i(19037),Ao=i(22984);const No=()=>(Do.Yv.add(Ao.X7I,Fo.C91,Ro.Cvc),Do.tT.css()),Lo=(e="normal",t="normal")=>`\n font-family: ${l.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Mo=d.css`
1248
+ `,ri=d.html`
1249
+ ${e=>si(z(e))}
1250
+ `;var li=i(94343),di=i.n(li),ci=i(58915),ui=i.n(ci),hi=i(7554),pi=i.n(hi),mi=i(49916),gi=i.n(mi),vi=i(33839),fi=i.n(vi);class bi{constructor(e,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}di().extend(fi());class yi{constructor(e=null,t="default"){const i=new bi(e,t);this.lang=t,this.name=i.month,this.number=i.monthNumber,this.year=i.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=di()(i.date).isLeapYear()?1:0)}getDay(e){return new bi(new Date(this.year,this.number-1,e),this.lang)}}di().extend(fi());class Ci{constructor(e=null,t=null,i="default"){this.weekDays=Array.from({length:7}),this.today=new bi(null,i),this.year=null!=e?e:this.today.year,this.month=new yi(new Date(this.year,(t||this.today.monthNumber)-1),i),this.lang=i,this.weekDays.forEach((e,t)=>{const i=this.month.getDay(t);this.weekDays[i.dayNumber-1]=i.day})}getMonth(e){return new yi(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new yi(new Date(this.year-1,11),this.lang):new yi(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new yi(new Date(this.year+1,0),this.lang):new yi(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new yi(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new yi(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new yi(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new yi(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new yi(new Date(this.year,this.month.number-1-1),this.lang)}}const wi=[1,2,3,4,5,6,7],xi=(e,t,i)=>{if(o=t,-1===e.indexOf(o.dayNumber))return t;var o;const n=wi.filter(t=>-1===e.indexOf(t));let a=n.find(e=>e>t.dayNumber);a||(a=Math.min(...n));const s=t.dayNumber<a?a-t.dayNumber:a-t.dayNumber+7;return n.length?new bi(((e,t=1)=>{const i=new Date(e);return i.setDate(e.getDate()+t),i})(t.Date,s),i):(F.vF.warn("Date picker disabled days - all days of week have been disabled"),t)},$i=void 0,Si={};class Ei extends s.FoundationElement{constructor(){super(...arguments),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[]}formatChanged(e,t){t&&this.calendar&&(this.formatDate=di()(this.currentDate.Date).format(t))}inlineCalendarChanged(){this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(t&&this.calendar){const e=di()().localeData().longDateFormat("L");this.currentDate=new bi(di()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=di()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}connectedCallback(){var e;super.connectedCallback(),di().extend(ui()),di().extend(gi()),di().extend(pi()),this.substringNumber=3;const t=this.value,i=t?di()(t,"MM-DD-YYYY"):di()();let o=new bi(i.toDate(),this.lang);(null===(e=this.disabledDaysOfWeek)||void 0===e?void 0:e.length)&&(o=xi(this.disabledDaysOfWeek,o,this.lang)),this.currentDate=o,this.calendar=new Ci(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=di()(this.currentDate.Date).format("MM-DD-YYYY"),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=di()(this.currentDate.Date).format(this.format),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,V.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return di()(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){di()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=di()(this.currentDate.Date).format(this.format),this.value=di()(e.Date).format("MM-DD-YYYY"),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),i=e.dayNumber-1,o=this.calendar.month.numberOfDays+i,n=Array.from({length:o});for(let e=i;e<o;e+=1)n[e]=this.calendar.month.getDay(e+1-i);for(let e=0;e<i;e+=1){const o=i-(e+1);n[e]=t.getDay(t.numberOfDays-o)}return n}}(0,$.Cg)([d.attr],Ei.prototype,"format",void 0),(0,$.Cg)([d.attr],Ei.prototype,"lang",void 0),(0,$.Cg)([d.attr],Ei.prototype,"visible",void 0),(0,$.Cg)([(0,d.attr)({attribute:"inline-calendar",mode:"boolean"})],Ei.prototype,"inlineCalendar",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-weekends",mode:"boolean"})],Ei.prototype,"hideWeekends",void 0),(0,$.Cg)([d.attr],Ei.prototype,"position",void 0),(0,$.Cg)([d.attr],Ei.prototype,"label",void 0),(0,$.Cg)([d.attr],Ei.prototype,"value",void 0),(0,$.Cg)([d.observable],Ei.prototype,"currentDate",void 0),(0,$.Cg)([d.observable],Ei.prototype,"currentMonth",void 0),(0,$.Cg)([d.observable],Ei.prototype,"currentYear",void 0),(0,$.Cg)([d.observable],Ei.prototype,"calendarDropdownClasses",void 0),(0,$.Cg)([d.observable],Ei.prototype,"formatDate",void 0),(0,$.Cg)([d.observable],Ei.prototype,"monthList",void 0),(0,$.Cg)([d.observable],Ei.prototype,"disabledDaysOfWeek",void 0),(0,$.Cg)([d.observable],Ei.prototype,"calendar",void 0);const Oi=Ei.compose(Object.assign({baseName:"date-picker",styles:ni,template:ri,shadowOptions:$i},Si));var Ti=i(83912);const ki={design_tokens:{color:{accent:{$value:"#0EAFE2",$type:"color"},neutral:{$value:"#7C909B",$type:"color"}},fontFamily:{bodyFont:{$value:'Roboto, "Segoe UI", Arial, Helvetica, sans-serif',$type:"fontFamily"}},typography:{baseFontSize:{$value:"14px",$type:"dimension"},baseLineHeight:{$value:"20px",$type:"dimension"}},mode:{luminance:{$value:.23,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};class Ii{constructor(){this.value=null}}(0,$.Cg)([d.observable],Ii.prototype,"value",void 0);const Di=new Ii,Ri=(e,t,i)=>{const o=i?(e,t)=>e.setValueFor(i,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(i=>{const n=`${i}Value`;t[n]&&o(e[i],t[n])})};function Fi(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}const Ni={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Ti.parseColorHexRGB)(e);return t?l.SwatchRGB.create(t.r,t.g,t.b):null}},Ai=e=>l.PaletteRGB.from(l.SwatchRGB.from((0,Ti.parseColorHexRGB)(e))),Li=(e,t,i="")=>{Object.entries(t).forEach(([t,o])=>{const n=i?`${i}-${t}`:t;o&&"object"==typeof o&&("$value"in o?e.style.setProperty(`--${n}`,String(o.$value)):Li(e,o,n))})},Mi=["baseClass","baseName","shadowOptions","styles","template"],Hi=(e,t=Mi)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}),_i=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:n}=t;return{shadowOptions:i,styles:o,template:n,defaultConfig:Hi(t)}},zi=(e,t)=>{const i=e.match(/^(\d+)([a-z]+)/i),o=i[1],n=i[2];return Number(o)+t+n},Pi=()=>Di,Ui=(...e)=>{const t=Di.value;if(!(null==t?void 0:t.customTokens)||0===e.length)return null;return function e(t,i){const[o,...n]=t;if(0===n.length){const e=i[o];return e&&e.$value?e:null}const a=i[o];return a?e(n,a):null}(e,t.customTokens)},Bi=(e,t)=>{const i=(o=ki,n=t,(0,F.$N)(o,n));var o,n;const a=i.design_tokens;l.accentPalette.setValueFor(e,Ai(a.color.accent.$value)),l.neutralPalette.setValueFor(e,Ai(a.color.neutral.$value)),l.bodyFont.setValueFor(e,a.fontFamily.bodyFont.$value),l.baseLayerLuminance.setValueFor(e,a.mode.luminance.$value),l.density.setValueFor(e,a.style.density.$value),l.baseHeightMultiplier.setValueFor(e,a.style.baseHeightMultiplier.$value),l.controlCornerRadius.setValueFor(e,a.style.borderRadius.$value),l.strokeWidth.setValueFor(e,a.style.strokeWidth.$value),l.designUnit.setValueFor(e,a.space.designUnit.$value),l.typeRampBaseFontSize.setValueFor(e,a.typography.baseFontSize.$value),l.typeRampBaseLineHeight.setValueFor(e,a.typography.baseLineHeight.$value);const s=l.typeRampBaseFontSize.getValueFor(e),r=l.typeRampBaseLineHeight.getValueFor(e);l.typeRampMinus1FontSize.setValueFor(e,zi(s,F.Du.minusOne)),l.typeRampMinus1LineHeight.setValueFor(e,zi(r,F.Du.minusOne)),l.typeRampMinus2FontSize.setValueFor(e,zi(s,F.Du.minusTwo)),l.typeRampMinus2LineHeight.setValueFor(e,zi(r,F.Du.minusTwo)),l.typeRampPlus1FontSize.setValueFor(e,zi(s,F.Du.plusOne)),l.typeRampPlus1LineHeight.setValueFor(e,zi(r,F.Du.plusOne)),l.typeRampPlus2FontSize.setValueFor(e,zi(s,F.Du.plusTwo)),l.typeRampPlus2LineHeight.setValueFor(e,zi(r,F.Du.plusTwo)),l.typeRampPlus3FontSize.setValueFor(e,zi(s,F.Du.plusThree)),l.typeRampPlus3LineHeight.setValueFor(e,zi(r,F.Du.plusThree)),l.typeRampPlus4FontSize.setValueFor(e,zi(s,F.Du.plusFour)),l.typeRampPlus4LineHeight.setValueFor(e,zi(r,F.Du.plusFour)),l.typeRampPlus5FontSize.setValueFor(e,zi(s,F.Du.plusFive)),l.typeRampPlus5LineHeight.setValueFor(e,zi(r,F.Du.plusFive)),l.typeRampPlus6FontSize.setValueFor(e,zi(s,F.Du.plusSix)),l.typeRampPlus6LineHeight.setValueFor(e,zi(r,F.Du.plusSix)),i.customTokens&&Li(e,i.customTokens),Di.value=structuredClone(i)},Gi=l.SwatchRGB.create(1,1,1),ji=l.SwatchRGB.create(0,0,0),Vi=(0,Ti.parseColorHexRGB)("#585858"),Yi=l.SwatchRGB.create(Vi.r,Vi.g,Vi.b),Wi=(0,Ti.parseColorHexRGB)("#ffffff"),qi=l.SwatchRGB.create(Wi.r,Wi.g,Wi.b),Ki=l.PaletteRGB.from(qi),Xi=(0,Ti.parseColorHexRGB)("#eeeeee"),Qi=l.SwatchRGB.create(Xi.r,Xi.g,Xi.b),Ji=l.PaletteRGB.from(Qi),Zi=(0,Ti.parseColorHexRGB)("#08c3a5"),eo=l.SwatchRGB.create(Zi.r,Zi.g,Zi.b),to=l.PaletteRGB.from(eo),{create:io}=s.DesignToken,oo=io("fui-fill-color").withDefault(Yi),no=io({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(qi),ao=14;function so(e,t){return e.colorContrast(t,ao)}const ro=io({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault(e=>so(io("fui-card-palette").withDefault(Ki).getValueFor(e),no.getValueFor(e))),lo=Ai("#08c3a5"),co=Ai("#eeeeee"),uo=l.StandardLuminance.DarkMode;const ho=i(85109).O.ltr,po=4,mo=4;var go=i(85090);class vo extends d.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return d.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,i]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,i).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}var fo=i(70623),bo=i(10463),yo=i(19037),Co=i(22984);const wo=()=>(fo.Yv.add(Co.X7I,yo.C91,bo.Cvc),fo.tT.css()),xo=(e="normal",t="normal")=>`\n font-family: ${l.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,$o=d.css`
1251
1251
  ${(0,s.display)("flex")}
1252
1252
  :host {
1253
1253
  flex: 1;
1254
1254
  }
1255
- `,_o=d.css`
1255
+ `,So=d.css`
1256
1256
  :host {
1257
- background-color: ${fo};
1257
+ background-color: ${oo};
1258
1258
  }
1259
1259
  `.withBehaviors((0,s.forcedColorsStylesheetBehavior)(d.css`
1260
1260
  :host {
1261
- background-color: ${ko.A.ButtonFace};
1262
- box-shadow: 0 0 0 1px ${ko.A.CanvasText};
1263
- color: ${ko.A.ButtonText};
1261
+ background-color: ${go.A.ButtonFace};
1262
+ box-shadow: 0 0 0 1px ${go.A.CanvasText};
1263
+ color: ${go.A.ButtonText};
1264
1264
  }
1265
- `)),Ho=(e,t)=>d.css`
1265
+ `)),Eo=(e,t)=>d.css`
1266
1266
  ${e.name} ${"h"+t} {
1267
1267
  margin: 0;
1268
1268
  }
1269
- `;class zo extends l.DesignSystemProvider{constructor(){super(),ji(o,n,this)}}(0,$.Cg)([(0,d.attr)({attribute:"card-fill-color",converter:Yi}),Vi(bo)],zo.prototype,"cardFillColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"card-foreground-color",converter:Yi}),Vi(wo)],zo.prototype,"cardForegroundColor",void 0);const Po=zo.compose({baseName:"design-system-provider",template:d.html`
1269
+ `;class Oo extends l.DesignSystemProvider{constructor(){super(),Ri(o,n,this)}}(0,$.Cg)([(0,d.attr)({attribute:"card-fill-color",converter:Ni}),Fi(no)],Oo.prototype,"cardFillColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"card-foreground-color",converter:Ni}),Fi(ro)],Oo.prototype,"cardForegroundColor",void 0);const To=Oo.compose({baseName:"design-system-provider",template:d.html`
1270
1270
  <slot></slot>
1271
1271
  `,styles:e=>{const t=(e=>d.css`
1272
- ${Ho(e,"1")}
1273
- ${Ho(e,"2")}
1274
- ${Ho(e,"3")}
1275
- ${Ho(e,"4")}
1276
- ${Ho(e,"5")}
1277
- ${Ho(e,"6")}
1272
+ ${Eo(e,"1")}
1273
+ ${Eo(e,"2")}
1274
+ ${Eo(e,"3")}
1275
+ ${Eo(e,"4")}
1276
+ ${Eo(e,"5")}
1277
+ ${Eo(e,"6")}
1278
1278
  `)(e);return t.addStylesTo(document),d.css`
1279
- ${Mo}
1280
- ${_o}
1279
+ ${$o}
1280
+ ${So}
1281
1281
  ${t}
1282
1282
  :host * {
1283
- ${Lo()}
1283
+ ${xo()}
1284
1284
  }
1285
- `}}),Uo=d.css`
1285
+ `}}),ko=d.css`
1286
1286
  :host {
1287
1287
  --dialog-close-icon-display: flex;
1288
1288
  --dialog-min-width: 358px;
@@ -1551,7 +1551,7 @@
1551
1551
  dialog[style*='position: fixed'] {
1552
1552
  margin: 0;
1553
1553
  }
1554
- `;var Bo=i(70997);const Go=d.html`
1554
+ `,Io=d.html`
1555
1555
  <slot>
1556
1556
  ${(0,d.when)(e=>e.notification,d.html`
1557
1557
  <div class="details">
@@ -1559,7 +1559,7 @@
1559
1559
  </div>
1560
1560
  `)}
1561
1561
  </slot>
1562
- `,jo=e=>d.html`
1562
+ `,Do=e=>d.html`
1563
1563
  <dialog ${(0,d.ref)("mainElement")} part="dialog" type=${e=>e.type}>
1564
1564
  <div class="content-wrapper" part="content">
1565
1565
  <div part="top" class="top" ${(0,d.ref)("topElement")}>
@@ -1579,9 +1579,9 @@
1579
1579
  `)}
1580
1580
  </div>
1581
1581
  </div>
1582
- ${(0,Bo.q)(e=>e.resizable,d.html`
1583
- <div class="content-container" part="content-container">${Go}</div>
1584
- `,Go)}
1582
+ ${(0,F.qM)(e=>e.resizable,d.html`
1583
+ <div class="content-container" part="content-container">${Io}</div>
1584
+ `,Io)}
1585
1585
  <div part="bottom" class="bottom">
1586
1586
  <slot name="bottom">
1587
1587
  ${(0,d.when)(e=>e.notification,d.html`
@@ -1611,13 +1611,13 @@
1611
1611
  <div class="resize-handle resize-handle-sw" data-direction="sw"></div>
1612
1612
  `)}
1613
1613
  </dialog>
1614
- `,Vo=d.html`
1615
- ${e=>jo(z(e))}
1616
- `;var Yo=i(40543);const Wo={mode:"open",delegatesFocus:!0},qo={};class Ko extends s.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0,this.resizable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth="",this.originalHeight="",this.originalPosition="",this.originalLeft="",this.originalTop="",this.originalMargin="",this.isMaximized=!1,this.hasBeenResized=!1}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Yo.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",()=>{this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")}),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open",""),this.setupResizeHandlers()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers()}setupResizeHandlers(){if(!this.resizable)return;const e=window.innerWidth,t=window.innerHeight;let i=this.minWidth,o=this.minHeight;void 0!==this.initialWidth&&(i=Math.max(this.minWidth,Math.min(this.initialWidth,e))),void 0!==this.initialHeight&&(o=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${i}px`,this.originalHeight=this.mainElement.style.height||`${o}px`,this.originalPosition=this.mainElement.style.position||"",this.originalLeft=this.mainElement.style.left||"",this.originalTop=this.mainElement.style.top||"",this.originalMargin=this.mainElement.style.margin||"",this.mainElement.style.height=`${o}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${i}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height;this.shadowRoot.querySelectorAll(".resize-handle").forEach(e=>{e.addEventListener("mousedown",this.handleResizeStart.bind(this)),e.addEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){var e;document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this));const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".resize-handle");null==t||t.forEach(e=>{e.removeEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();const t=e.target.dataset.direction;if(!["n","s","e","w"].includes(t))return;const i=this.mainElement.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight;switch(this.mainElement.style.position="fixed",this.mainElement.style.margin="0",t){case"n":this.mainElement.style.height=`${i.bottom}px`,this.mainElement.style.top="0px";break;case"s":this.mainElement.style.height=n-i.top+"px";break;case"e":this.mainElement.style.width=o-i.left+"px";break;case"w":this.mainElement.style.width=`${i.right}px`,this.mainElement.style.left="0px"}this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;const t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;const i=this.mainElement.getBoundingClientRect();switch(this.startWidth=i.width,this.startHeight=i.height,this.startLeft=i.left,this.startTop=i.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case"n":this.resizeOffsetY=e.clientY-i.top;break;case"s":this.resizeOffsetY=e.clientY-i.bottom;break;case"e":this.resizeOffsetX=e.clientX-i.right;break;case"w":this.resizeOffsetX=e.clientX-i.left;break;case"ne":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.top;break;case"nw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.top;break;case"se":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.bottom;break;case"sw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.bottom}this.mainElement.style.position="fixed",this.mainElement.style.left=`${i.left}px`,this.mainElement.style.top=`${i.top}px`,this.mainElement.style.margin="0",document.addEventListener("mousemove",this.handleResizeMove.bind(this)),document.addEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.add("resizing")}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();const t=e.clientX-this.startX-this.resizeOffsetX,i=e.clientY-this.startY-this.resizeOffsetY;let o=this.startWidth,n=this.startHeight,a=this.startLeft,s=this.startTop,r=!1;switch(this.currentResizeHandle){case"se":o=this.startWidth+t,n=this.startHeight+i;break;case"sw":o=this.startWidth-t,n=this.startHeight+i,a=this.startLeft+t,r=!0;break;case"ne":o=this.startWidth+t,n=this.startHeight-i,s=this.startTop+i,r=!0;break;case"nw":o=this.startWidth-t,n=this.startHeight-i,a=this.startLeft+t,s=this.startTop+i,r=!0;break;case"e":o=this.startWidth+t;break;case"w":o=this.startWidth-t,a=this.startLeft+t,r=!0;break;case"s":n=this.startHeight+i;break;case"n":n=this.startHeight-i,s=this.startTop+i,r=!0}const l=window.innerWidth,d=window.innerHeight;if(this.resizable){if(o<this.minWidth){const e=this.minWidth-o;o=this.minWidth,this.currentResizeHandle.includes("w")&&(a-=e)}if(n<this.minHeight){const e=this.minHeight-n;n=this.minHeight,this.currentResizeHandle.includes("n")&&(s-=e)}if(this.currentResizeHandle.includes("e")){const e=l-this.startLeft;o>e&&(o=e)}if(this.currentResizeHandle.includes("s")){const e=d-this.startTop;n>e&&(n=e)}if(this.currentResizeHandle.includes("w")){a<0&&(o+=a,a=0);const e=l-a;o>e&&(o=e)}if(this.currentResizeHandle.includes("n")){s<0&&(n+=s,s=0);const e=d-s;n>e&&(n=e)}}this.mainElement.style.width=`${o}px`,this.mainElement.style.height=`${n}px`,r&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${s}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.remove("resizing");const t=this.mainElement.style.width,i=this.mainElement.style.height;t===this.originalWidth&&i===this.originalHeight||(this.hasBeenResized=!0),this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute("open")}get resizeIconName(){return this.hasBeenResized||this.isMaximized?"compress":"expand"}close(){this.mainElement.close()}dismiss(){var e,t,i,o;(null===(o=null===(i=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){L.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position="fixed",this.mainElement.style.left="0px",this.mainElement.style.top="0px",this.mainElement.style.margin="0",this.mainElement.style.width="100vw",this.mainElement.style.height="100vh",this.isMaximized=!0,this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){this.resizable&&this.mainElement&&(this.hasBeenResized||this.isMaximized?(this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})):this.maximize())}}(0,$.Cg)([d.observable],Ko.prototype,"notification",void 0),(0,$.Cg)([(0,d.attr)({attribute:"type"})],Ko.prototype,"type",void 0),(0,$.Cg)([d.attr],Ko.prototype,"position",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-close-icon"})],Ko.prototype,"showCloseIcon",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"resizable"})],Ko.prototype,"resizable",void 0),(0,$.Cg)([(0,d.attr)({attribute:"min-width"})],Ko.prototype,"minWidth",void 0),(0,$.Cg)([(0,d.attr)({attribute:"min-height"})],Ko.prototype,"minHeight",void 0),(0,$.Cg)([(0,d.attr)({attribute:"initial-width"})],Ko.prototype,"initialWidth",void 0),(0,$.Cg)([(0,d.attr)({attribute:"initial-height"})],Ko.prototype,"initialHeight",void 0),(0,$.Cg)([d.observable],Ko.prototype,"onShowCallback",void 0),(0,$.Cg)([d.observable],Ko.prototype,"onCloseCallback",void 0),(0,$.Cg)([d.observable],Ko.prototype,"isMaximized",void 0),(0,$.Cg)([d.observable],Ko.prototype,"hasBeenResized",void 0),(0,$.Cg)([d.volatile],Ko.prototype,"open",null),(0,$.Cg)([d.volatile],Ko.prototype,"resizeIconName",null);class Xo extends Ko{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Qo=Xo.compose(Object.assign({baseName:"dialog",styles:Uo,template:Vo,shadowOptions:Wo},qo)),Jo=(e,t)=>(0,s.disclosureTemplate)(e,t),Zo=(e,t)=>d.css`
1614
+ `,Ro=d.html`
1615
+ ${e=>Do(z(e))}
1616
+ `;var Fo=i(40543);const No={mode:"open",delegatesFocus:!0},Ao={};class Lo extends s.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0,this.resizable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth="",this.originalHeight="",this.originalPosition="",this.originalLeft="",this.originalTop="",this.originalMargin="",this.isMaximized=!1,this.hasBeenResized=!1}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Fo.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",()=>{this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")}),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open",""),this.setupResizeHandlers()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers()}setupResizeHandlers(){if(!this.resizable)return;const e=window.innerWidth,t=window.innerHeight;let i=this.minWidth,o=this.minHeight;void 0!==this.initialWidth&&(i=Math.max(this.minWidth,Math.min(this.initialWidth,e))),void 0!==this.initialHeight&&(o=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${i}px`,this.originalHeight=this.mainElement.style.height||`${o}px`,this.originalPosition=this.mainElement.style.position||"",this.originalLeft=this.mainElement.style.left||"",this.originalTop=this.mainElement.style.top||"",this.originalMargin=this.mainElement.style.margin||"",this.mainElement.style.height=`${o}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${i}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height;this.shadowRoot.querySelectorAll(".resize-handle").forEach(e=>{e.addEventListener("mousedown",this.handleResizeStart.bind(this)),e.addEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){var e;document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this));const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".resize-handle");null==t||t.forEach(e=>{e.removeEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();const t=e.target.dataset.direction;if(!["n","s","e","w"].includes(t))return;const i=this.mainElement.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight;switch(this.mainElement.style.position="fixed",this.mainElement.style.margin="0",t){case"n":this.mainElement.style.height=`${i.bottom}px`,this.mainElement.style.top="0px";break;case"s":this.mainElement.style.height=n-i.top+"px";break;case"e":this.mainElement.style.width=o-i.left+"px";break;case"w":this.mainElement.style.width=`${i.right}px`,this.mainElement.style.left="0px"}this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;const t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;const i=this.mainElement.getBoundingClientRect();switch(this.startWidth=i.width,this.startHeight=i.height,this.startLeft=i.left,this.startTop=i.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case"n":this.resizeOffsetY=e.clientY-i.top;break;case"s":this.resizeOffsetY=e.clientY-i.bottom;break;case"e":this.resizeOffsetX=e.clientX-i.right;break;case"w":this.resizeOffsetX=e.clientX-i.left;break;case"ne":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.top;break;case"nw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.top;break;case"se":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.bottom;break;case"sw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.bottom}this.mainElement.style.position="fixed",this.mainElement.style.left=`${i.left}px`,this.mainElement.style.top=`${i.top}px`,this.mainElement.style.margin="0",document.addEventListener("mousemove",this.handleResizeMove.bind(this)),document.addEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.add("resizing")}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();const t=e.clientX-this.startX-this.resizeOffsetX,i=e.clientY-this.startY-this.resizeOffsetY;let o=this.startWidth,n=this.startHeight,a=this.startLeft,s=this.startTop,r=!1;switch(this.currentResizeHandle){case"se":o=this.startWidth+t,n=this.startHeight+i;break;case"sw":o=this.startWidth-t,n=this.startHeight+i,a=this.startLeft+t,r=!0;break;case"ne":o=this.startWidth+t,n=this.startHeight-i,s=this.startTop+i,r=!0;break;case"nw":o=this.startWidth-t,n=this.startHeight-i,a=this.startLeft+t,s=this.startTop+i,r=!0;break;case"e":o=this.startWidth+t;break;case"w":o=this.startWidth-t,a=this.startLeft+t,r=!0;break;case"s":n=this.startHeight+i;break;case"n":n=this.startHeight-i,s=this.startTop+i,r=!0}const l=window.innerWidth,d=window.innerHeight;if(this.resizable){if(o<this.minWidth){const e=this.minWidth-o;o=this.minWidth,this.currentResizeHandle.includes("w")&&(a-=e)}if(n<this.minHeight){const e=this.minHeight-n;n=this.minHeight,this.currentResizeHandle.includes("n")&&(s-=e)}if(this.currentResizeHandle.includes("e")){const e=l-this.startLeft;o>e&&(o=e)}if(this.currentResizeHandle.includes("s")){const e=d-this.startTop;n>e&&(n=e)}if(this.currentResizeHandle.includes("w")){a<0&&(o+=a,a=0);const e=l-a;o>e&&(o=e)}if(this.currentResizeHandle.includes("n")){s<0&&(n+=s,s=0);const e=d-s;n>e&&(n=e)}}this.mainElement.style.width=`${o}px`,this.mainElement.style.height=`${n}px`,r&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${s}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.remove("resizing");const t=this.mainElement.style.width,i=this.mainElement.style.height;t===this.originalWidth&&i===this.originalHeight||(this.hasBeenResized=!0),this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute("open")}get resizeIconName(){return this.hasBeenResized||this.isMaximized?"compress":"expand"}close(){this.mainElement.close()}dismiss(){var e,t,i,o;(null===(o=null===(i=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){L.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position="fixed",this.mainElement.style.left="0px",this.mainElement.style.top="0px",this.mainElement.style.margin="0",this.mainElement.style.width="100vw",this.mainElement.style.height="100vh",this.isMaximized=!0,this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){this.resizable&&this.mainElement&&(this.hasBeenResized||this.isMaximized?(this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})):this.maximize())}}(0,$.Cg)([d.observable],Lo.prototype,"notification",void 0),(0,$.Cg)([(0,d.attr)({attribute:"type"})],Lo.prototype,"type",void 0),(0,$.Cg)([d.attr],Lo.prototype,"position",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-close-icon"})],Lo.prototype,"showCloseIcon",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"resizable"})],Lo.prototype,"resizable",void 0),(0,$.Cg)([(0,d.attr)({attribute:"min-width"})],Lo.prototype,"minWidth",void 0),(0,$.Cg)([(0,d.attr)({attribute:"min-height"})],Lo.prototype,"minHeight",void 0),(0,$.Cg)([(0,d.attr)({attribute:"initial-width"})],Lo.prototype,"initialWidth",void 0),(0,$.Cg)([(0,d.attr)({attribute:"initial-height"})],Lo.prototype,"initialHeight",void 0),(0,$.Cg)([d.observable],Lo.prototype,"onShowCallback",void 0),(0,$.Cg)([d.observable],Lo.prototype,"onCloseCallback",void 0),(0,$.Cg)([d.observable],Lo.prototype,"isMaximized",void 0),(0,$.Cg)([d.observable],Lo.prototype,"hasBeenResized",void 0),(0,$.Cg)([d.volatile],Lo.prototype,"open",null),(0,$.Cg)([d.volatile],Lo.prototype,"resizeIconName",null);class Mo extends Lo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Ho=Mo.compose(Object.assign({baseName:"dialog",styles:ko,template:Ro,shadowOptions:No},Ao)),_o=(e,t)=>(0,s.disclosureTemplate)(e,t),zo=(e,t)=>d.css`
1617
1617
  ${(0,l.disclosureStyles)(e,t)}
1618
- `;class en extends s.Disclosure{}const tn=void 0,on={},nn=en.compose(Object.assign({baseName:"disclosure",template:Jo,styles:Zo,shadowOptions:tn},on)),an=(e,t)=>(0,s.dividerTemplate)(e,t),sn=(e,t)=>d.css`
1618
+ `;class Po extends s.Disclosure{}const Uo=void 0,Bo={},Go=Po.compose(Object.assign({baseName:"disclosure",template:_o,styles:zo,shadowOptions:Uo},Bo)),jo=(e,t)=>(0,s.dividerTemplate)(e,t),Vo=(e,t)=>d.css`
1619
1619
  ${(0,l.dividerStyles)(e,t)}
1620
- `;class rn extends s.Divider{}const ln=void 0,dn={},cn=rn.compose(Object.assign({baseName:"divider",template:an,styles:sn,shadowOptions:ln},dn)),un=(e,t,i)=>d.css`
1620
+ `;class Yo extends s.Divider{}const Wo=void 0,qo={},Ko=Yo.compose(Object.assign({baseName:"divider",template:jo,styles:Vo,shadowOptions:Wo},qo)),Xo=(e,t,i)=>d.css`
1621
1621
  :host {
1622
1622
  --dropdown-opener-height-multiplier: 0.7px;
1623
1623
  --menu-item-height-multiplier: 0.7px;
@@ -1680,9 +1680,9 @@
1680
1680
  var(--menu-item-height-multiplier)
1681
1681
  );
1682
1682
  }
1683
- `,hn=(e,t)=>d.css`
1684
- ${un("foundation",e,t)}
1685
- `,pn=(e,t)=>d.html`
1683
+ `,Qo=(e,t)=>d.css`
1684
+ ${Xo("foundation",e,t)}
1685
+ `,Jo=(e,t)=>d.html`
1686
1686
  ${(0,d.repeat)(()=>e,d.html`
1687
1687
  ${(0,d.when)(e=>e.isDisabled&&e.isDisabled(),d.html`
1688
1688
  <${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
@@ -1703,12 +1703,12 @@
1703
1703
  `)}
1704
1704
  ${e=>e.name}
1705
1705
  ${(0,d.when)(e=>e.submenu,d.html`
1706
- <${t}-menu>${e=>pn(e.submenu,t)}</${t}-menu>
1706
+ <${t}-menu>${e=>Jo(e.submenu,t)}</${t}-menu>
1707
1707
  `)}
1708
1708
  </${t}-menu-item>
1709
1709
  `)}
1710
1710
  `)}
1711
- `,mn=e=>d.html`
1711
+ `,Zo=e=>d.html`
1712
1712
  <div class="actions-container" part="actions-container">
1713
1713
  <${e}-button
1714
1714
  id="actiosnMenuTrigger"
@@ -1725,12 +1725,12 @@
1725
1725
  class="actions-menu ${e=>e.classNames}"
1726
1726
  part="actions-menu"
1727
1727
  >
1728
- ${t=>pn(t.allItems,e)}
1728
+ ${t=>Jo(t.allItems,e)}
1729
1729
  </${e}-menu>
1730
1730
  </div>
1731
- `,vn=d.html`
1732
- ${e=>mn(z(e))}
1733
- `;class gn extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){_(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,ee.x)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,$.Cg)([d.observable],gn.prototype,"items",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close",mode:"boolean"})],gn.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"disable-button",mode:"boolean"})],gn.prototype,"disabled",void 0),(0,$.Cg)([d.observable],gn.prototype,"classNames",void 0),(0,$.Cg)([d.attr],gn.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({attribute:"open",mode:"boolean"})],gn.prototype,"open",void 0),(0,$.Cg)([d.attr],gn.prototype,"buttonAppearance",void 0);const fn=gn.compose({baseName:"dropdown-menu",styles:hn,template:vn});var bn=i(84686);const yn=d.css`
1731
+ `,en=d.html`
1732
+ ${e=>Zo(z(e))}
1733
+ `;class tn extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){H(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,V.x)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,$.Cg)([d.observable],tn.prototype,"items",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close",mode:"boolean"})],tn.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"disable-button",mode:"boolean"})],tn.prototype,"disabled",void 0),(0,$.Cg)([d.observable],tn.prototype,"classNames",void 0),(0,$.Cg)([d.attr],tn.prototype,"name",void 0),(0,$.Cg)([(0,d.attr)({attribute:"open",mode:"boolean"})],tn.prototype,"open",void 0),(0,$.Cg)([d.attr],tn.prototype,"buttonAppearance",void 0);const on=tn.compose({baseName:"dropdown-menu",styles:Qo,template:en}),nn=d.css`
1734
1734
  .environment-indicator {
1735
1735
  font-size: 12px;
1736
1736
  display: inline-flex;
@@ -1757,7 +1757,7 @@
1757
1757
  .environment-indicator.lg .icon {
1758
1758
  font-size: calc(var(--design-unit) * 3.5px);
1759
1759
  }
1760
- `,Cn=d.html`
1760
+ `,an=d.html`
1761
1761
  ${e=>{return t=z(e),d.html`
1762
1762
  ${(0,d.when)(e=>e.config,d.html`
1763
1763
  <div
@@ -1782,7 +1782,7 @@
1782
1782
  </div>
1783
1783
  `)}
1784
1784
  `;var t}}
1785
- `;var wn=i(17190);const xn="default",$n={level:xn,showIcon:!1,iconSize:"sm",backgroundColor:"#2222ff",textColor:"#ffffff",label:"DEFAULT"},Sn=[$n,{level:"dev",showIcon:!1,icon:"code",backgroundColor:"#ff6b35",label:"DEV"},{level:"prod",showIcon:!1,icon:"check-circle",backgroundColor:"#28a745",label:"PROD"}],En=(0,wn.r)(),On=s.DI.createInterface(e=>e.instance(En),e=>e.instance(En)),Tn=s.DI.createInterface("EnvironmentIndicatorConfig");function kn(){return(0,$.sH)(this,arguments,void 0,function*(e={configs:[]}){const{configs:t,currentLevel:i}=e,o={currentLevel:i,configs:t&&t.length>0?t:[$n]};s.DI.getOrCreateDOMContainer().register(s.Registration.instance(On,En),s.Registration.instance(Tn,o)),En.publish(o)})}const In=(0,N.createLogger)("EnvironmentIndicator");class Dn extends s.FoundationElement{constructor(){super(...arguments),this.size="sm",this.textColor="#ffffff",this.icon="check-circle",this.iconSize="sm",this.useDefaultConfig=!1,this.config=$n,this.envConfigs=Sn}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){const e=s.DI.getOrCreateDOMContainer().get(On);e&&"function"==typeof e.subscribe?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):In.error("Observer not found or invalid in DI container")}connectedCallback(){super.connectedCallback(),this.diConfig=function(){try{const e=s.DI.getOrCreateDOMContainer().get(Tn);if(e)return e}catch(e){return}}(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){const e={};return["label","size","showIcon","icon","iconSize","backgroundColor","textColor"].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{const{currentLevel:e}=this.diConfig;if(e)return e}catch(e){In.error(e)}return bn.H6!==xn?bn.H6:this.useDefaultConfig?xn:void 0}getEnvConfigByLevel(){const e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?$n:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},$n),{level:t}),e);if(this.diConfig){const{configs:i}=this.diConfig;if(i&&i.length>0){const o=i.find(({level:e})=>e===t);if(o)return Object.assign(Object.assign({},o),e)}}const i=this.envConfigs.find(({level:e})=>e===t);return i?Object.assign(Object.assign({},i),e):void 0}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i);["level","label","show-icon","icon-size","size","background-color","text-color","icon"].includes(e)&&t!==i&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}}(0,$.Cg)([d.attr],Dn.prototype,"level",void 0),(0,$.Cg)([d.attr],Dn.prototype,"label",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-icon"})],Dn.prototype,"showIcon",void 0),(0,$.Cg)([d.attr],Dn.prototype,"size",void 0),(0,$.Cg)([(0,d.attr)({attribute:"background-color"})],Dn.prototype,"backgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"text-color"})],Dn.prototype,"textColor",void 0),(0,$.Cg)([d.attr],Dn.prototype,"icon",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-size"})],Dn.prototype,"iconSize",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"use-default-config"})],Dn.prototype,"useDefaultConfig",void 0),(0,$.Cg)([d.observable],Dn.prototype,"config",void 0),(0,$.Cg)([d.observable],Dn.prototype,"envConfigs",void 0),(0,$.Cg)([d.observable],Dn.prototype,"diConfig",void 0);const Rn=Dn.compose({baseName:"environment-indicator",template:Cn,styles:yn}),Fn=e=>d.html`
1785
+ `,sn="default",rn={level:sn,showIcon:!1,iconSize:"sm",backgroundColor:"#2222ff",textColor:"#ffffff",label:"DEFAULT"},ln=[rn,{level:"dev",showIcon:!1,icon:"code",backgroundColor:"#ff6b35",label:"DEV"},{level:"prod",showIcon:!1,icon:"check-circle",backgroundColor:"#28a745",label:"PROD"}],dn=(0,F.rc)(),cn=s.DI.createInterface(e=>e.instance(dn),e=>e.instance(dn)),un=s.DI.createInterface("EnvironmentIndicatorConfig");function hn(){return(0,$.sH)(this,arguments,void 0,function*(e={configs:[]}){const{configs:t,currentLevel:i}=e,o={currentLevel:i,configs:t&&t.length>0?t:[rn]};s.DI.getOrCreateDOMContainer().register(s.Registration.instance(cn,dn),s.Registration.instance(un,o)),dn.publish(o)})}const pn=(0,A.createLogger)("EnvironmentIndicator");class mn extends s.FoundationElement{constructor(){super(...arguments),this.size="sm",this.textColor="#ffffff",this.icon="check-circle",this.iconSize="sm",this.useDefaultConfig=!1,this.config=rn,this.envConfigs=ln}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){const e=s.DI.getOrCreateDOMContainer().get(cn);e&&"function"==typeof e.subscribe?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):pn.error("Observer not found or invalid in DI container")}connectedCallback(){super.connectedCallback(),this.diConfig=function(){try{const e=s.DI.getOrCreateDOMContainer().get(un);if(e)return e}catch(e){return}}(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){const e={};return["label","size","showIcon","icon","iconSize","backgroundColor","textColor"].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{const{currentLevel:e}=this.diConfig;if(e)return e}catch(e){pn.error(e)}return F.H6!==sn?F.H6:this.useDefaultConfig?sn:void 0}getEnvConfigByLevel(){const e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?rn:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},rn),{level:t}),e);if(this.diConfig){const{configs:i}=this.diConfig;if(i&&i.length>0){const o=i.find(({level:e})=>e===t);if(o)return Object.assign(Object.assign({},o),e)}}const i=this.envConfigs.find(({level:e})=>e===t);return i?Object.assign(Object.assign({},i),e):void 0}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i);["level","label","show-icon","icon-size","size","background-color","text-color","icon"].includes(e)&&t!==i&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}}(0,$.Cg)([d.attr],mn.prototype,"level",void 0),(0,$.Cg)([d.attr],mn.prototype,"label",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"show-icon"})],mn.prototype,"showIcon",void 0),(0,$.Cg)([d.attr],mn.prototype,"size",void 0),(0,$.Cg)([(0,d.attr)({attribute:"background-color"})],mn.prototype,"backgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"text-color"})],mn.prototype,"textColor",void 0),(0,$.Cg)([d.attr],mn.prototype,"icon",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-size"})],mn.prototype,"iconSize",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"use-default-config"})],mn.prototype,"useDefaultConfig",void 0),(0,$.Cg)([d.observable],mn.prototype,"config",void 0),(0,$.Cg)([d.observable],mn.prototype,"envConfigs",void 0),(0,$.Cg)([d.observable],mn.prototype,"diConfig",void 0);const gn=mn.compose({baseName:"environment-indicator",template:an,styles:nn}),vn=e=>d.html`
1786
1786
  <${e}-banner ${(0,d.ref)("banner")}>
1787
1787
  <div slot="content">
1788
1788
  <div>
@@ -1803,13 +1803,13 @@
1803
1803
  </${e}-button>
1804
1804
  `)}
1805
1805
  </${e}-banner>
1806
- `,An=d.html`
1807
- ${e=>Fn(z(e))}
1808
- `,Nn={mode:"open",delegatesFocus:!0};class Ln extends s.FoundationElement{connectedCallback(){super.connectedCallback(),L.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,$.sH)(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){L.error(e)}})}}(0,$.Cg)([d.observable],Ln.prototype,"error",void 0),(0,$.Cg)([d.observable],Ln.prototype,"notification",void 0);const Mn=Ln.compose({baseName:"error-banner",template:An,shadowOptions:Nn}),_n=d.html`
1806
+ `,fn=d.html`
1807
+ ${e=>vn(z(e))}
1808
+ `,bn={mode:"open",delegatesFocus:!0};class yn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),L.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,$.sH)(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){L.error(e)}})}}(0,$.Cg)([d.observable],yn.prototype,"error",void 0),(0,$.Cg)([d.observable],yn.prototype,"notification",void 0);const Cn=yn.compose({baseName:"error-banner",template:fn,shadowOptions:bn}),wn=d.html`
1809
1809
  <template ${(0,d.ref)("errorBoundary")}>
1810
1810
  <slot></slot>
1811
1811
  </template>
1812
- `;var Hn;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Hn||(Hn={}));const zn=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.errorDetails)&&void 0!==i?i:"Something went wrong"}`},Pn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||N.LogLevel.Error},Un=(e,t)=>{const i=t.split("-")[0];let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e);const t=document.createElement(`${i}-design-system-provider`);t.appendChild(o),document.body.appendChild(t)}return o},Bn=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Gn=(0,N.createLogger)("foundation-error"),jn={alert:e=>{alert(zn(e))},notification:(e,t)=>{var i,o,n,a,s,r,l,d,c,u,h,p,m;const v=t.split("-")[0],g=Un("notify-container",t);if(g)switch(g.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.notification)||void 0===o?void 0:o.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const C=document.createElement("div");C.setAttribute("slot","date"),C.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===s?void 0:s.type)||""),(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(h=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===h?void 0:h.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(C),g.appendChild(f)},dialog:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-error-dialog`);Un("dialog-container",t).appendChild(o),o.error=e,o.show()},snackbar:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`);Un("snack-container",t).appendChild(o),o.error=e},banner:(e,t,i)=>{var o;const n=t.split("-")[0],a=document.createElement(`${n}-error-banner`),s=(e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return Bn()})(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.error=e}},Vn=(e,t,i)=>{Gn.log({message:zn(e),level:Pn(e)});Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{jn[o]&&jn[o](e,t,i)})};class Yn{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 N.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Wn{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 qn={mode:"open",delegatesFocus:!0};class Kn extends s.FoundationElement{constructor(){super(...arguments),this.logger=(0,N.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(Hn.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),Vn(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void L.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe(e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,i=null==t?void 0:t.BODY,o=t.NOTIFY_SEVERITY;Vn((new Yn).withTitle(e).withErrorDetails(i).withNotification((new Wn).withType(o).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,$.Cg)([d.observable],Kn.prototype,"errorBoundary",void 0),(0,$.Cg)([(0,d.attr)({attribute:"resource-name"})],Kn.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout",converter:d.nullableNumberConverter})],Kn.prototype,"closeTimeout",void 0),(0,$.Cg)([R.yW],Kn.prototype,"datasource",void 0);const Xn=Kn.compose({baseName:"error-boundary",template:_n,shadowOptions:qn}),Qn=e=>d.html`
1812
+ `;var xn;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(xn||(xn={}));const $n=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.errorDetails)&&void 0!==i?i:"Something went wrong"}`},Sn=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||A.LogLevel.Error},En=(e,t)=>{const i=t.split("-")[0];let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e);const t=document.createElement(`${i}-design-system-provider`);t.appendChild(o),document.body.appendChild(t)}return o},On=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Tn=(0,A.createLogger)("foundation-error"),kn={alert:e=>{alert($n(e))},notification:(e,t)=>{var i,o,n,a,s,r,l,d,c,u,h,p,m;const g=t.split("-")[0],v=En("notify-container",t);if(v)switch(v.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.notification)||void 0===o?void 0:o.position){case"top-left":v.style.top="0",v.style.left="0";break;case"bottom-left":v.style.bottom="0",v.style.left="0";break;case"bottom-right":v.style.bottom="0",v.style.right="0";break;default:v.style.top="0",v.style.right="0"}const f=document.createElement(`${g}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const C=document.createElement("div");C.setAttribute("slot","date"),C.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.notification)||void 0===s?void 0:s.type)||""),(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(h=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===h?void 0:h.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(C),v.appendChild(f)},dialog:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-error-dialog`);En("dialog-container",t).appendChild(o),o.error=e,o.show()},snackbar:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`);En("snack-container",t).appendChild(o),o.error=e},banner:(e,t,i)=>{var o;const n=t.split("-")[0],a=document.createElement(`${n}-error-banner`),s=(e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return On()})(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.error=e}},In=(e,t,i)=>{Tn.log({message:$n(e),level:Sn(e)});Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{kn[o]&&kn[o](e,t,i)})};class Dn{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 A.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Rn{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 Fn={mode:"open",delegatesFocus:!0};class Nn extends s.FoundationElement{constructor(){super(...arguments),this.logger=(0,A.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(xn.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),In(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void L.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe(e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,i=null==t?void 0:t.BODY,o=t.NOTIFY_SEVERITY;In((new Dn).withTitle(e).withErrorDetails(i).withNotification((new Rn).withType(o).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,$.Cg)([d.observable],Nn.prototype,"errorBoundary",void 0),(0,$.Cg)([(0,d.attr)({attribute:"resource-name"})],Nn.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout",converter:d.nullableNumberConverter})],Nn.prototype,"closeTimeout",void 0),(0,$.Cg)([R.yW],Nn.prototype,"datasource",void 0);const An=Nn.compose({baseName:"error-boundary",template:wn,shadowOptions:Fn}),Ln=e=>d.html`
1813
1813
  <${e}-dialog show-close-icon="false" ${(0,d.ref)("dialog")}>
1814
1814
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
1815
1815
  <div class="details">${e=>{var t,i;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(i=e.notification)||void 0===i?void 0:i.body)||"Place holder for error message"}}</div>
@@ -1826,9 +1826,9 @@
1826
1826
  </${e}-button>
1827
1827
  `)}
1828
1828
  </${e}-dialog>
1829
- `,Jn=d.html`
1830
- ${e=>Qn(z(e))}
1831
- `,Zn=d.css`
1829
+ `,Mn=d.html`
1830
+ ${e=>Ln(z(e))}
1831
+ `,Hn=d.css`
1832
1832
  :host {
1833
1833
  --design-unit: 3;
1834
1834
  --dialog-max-width: 358px;
@@ -1847,7 +1847,7 @@
1847
1847
  overflow: hidden;
1848
1848
  min-height: var(--error-details-min-height);
1849
1849
  }
1850
- `,ea={mode:"open",delegatesFocus:!0};class ta extends s.FoundationElement{connectedCallback(){super.connectedCallback(),L.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,i,o,n,a,s,r;(null===(o=null===(i=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(a=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){L.error(e)}}}(0,$.Cg)([d.observable],ta.prototype,"error",void 0),(0,$.Cg)([d.observable],ta.prototype,"notification",void 0);const ia=ta.compose({baseName:"error-dialog",template:Jn,styles:Zn,shadowOptions:ea});var oa=i(60416);var na=i(31274);const aa=(e,t,i)=>{var o,n,a,s,r,l,d,c,u,h,p,m,v,g,f,b,y,C;(0,oa.u_)(e);const w=t.split("-")[0],x=null!=i?i:(0,oa.jE)("notify-container",t);if(x)switch(x.style.position="fixed",null===(n=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===n?void 0:n.position){case"top-left":x.style.top="var(--nav-height, 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="var(--nav-height, 0)",x.style.right="0"}const $=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const E=document.createElement("div");E.setAttribute("slot","content"),E.textContent=(null==e?void 0:e.body)||"";const O=document.createElement("div");let T;O.setAttribute("slot","date"),O.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(T=document.createElement("div"),T.setAttribute("slot","bottom"),e.config.toast.buttons.forEach(t=>{const i=document.createElement(`${w}-button`);i.textContent=t.placeholder||"example placeholder",i.addEventListener("click",()=>{const{details:o}=e.config.toast;if(t.action)return t.action({details:o,buttonElement:i,toastElement:$})}),t.appearance&&i.setAttribute("appearance",t.appearance),T.appendChild(i)})),$.setAttribute("notify",(null===(h=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===h?void 0:h.type)||""),e.iconName&&$.setAttribute("notification-icon",e.iconName),(null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===m?void 0:m.autoClose)&&$.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&$.setAttribute("close-timeout",`${null===(C=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===C?void 0:C.closeTimeout}`),$.appendChild(S),$.appendChild(E),$.appendChild(O),T&&$.appendChild(T),x.appendChild($)},sa={alert:e=>{(0,oa.u_)(e),alert((0,oa.uP)(e))},toast:aa,dialog:na.u,snackbar:(e,t)=>{(0,oa.u_)(e);const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`),n=(0,oa.jE)("snack-container",t);n&&(n.style.position="fixed",n.style.bottom="0",n.style.left="0"),n.appendChild(o),o.notification=e},banner:(e,t,i)=>{var o;(0,oa.u_)(e);const n=t.split("-")[0],a=document.createElement(`${n}-banner`),s=(0,oa.cL)(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.notification=e}},ra=(e,t,i)=>{Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{sa[o]&&sa[o](e,t,i)})};class la extends s.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const i=null==e?void 0:e.target,o=Array.from(null!==(t=null==i?void 0:i.files)&&void 0!==t?t:[]),n=o.find(e=>e.size>this.fileSizeLimitBytes);if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(o)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){ra({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,$.Cg)([d.attr],la.prototype,"label",void 0),(0,$.Cg)([d.attr],la.prototype,"accept",void 0),(0,$.Cg)([(0,d.attr)({attribute:"file-size-limit-bytes"})],la.prototype,"fileSizeLimitBytes",void 0),(0,$.Cg)([d.observable],la.prototype,"fileName",void 0),(0,$.Cg)([d.observable],la.prototype,"isProcessing",void 0);const da=(e="start",t="#879ba6")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,ca=(e,t,i)=>d.css`
1850
+ `,_n={mode:"open",delegatesFocus:!0};class zn extends s.FoundationElement{connectedCallback(){super.connectedCallback(),L.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,i,o,n,a,s,r;(null===(o=null===(i=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(a=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){L.error(e)}}}(0,$.Cg)([d.observable],zn.prototype,"error",void 0),(0,$.Cg)([d.observable],zn.prototype,"notification",void 0);const Pn=zn.compose({baseName:"error-dialog",template:Mn,styles:Hn,shadowOptions:_n});var Un=i(60416);var Bn=i(31274);const Gn={alert:e=>{(0,Un.u_)(e),alert((0,Un.uP)(e))},toast:i(49644).P,dialog:Bn.u,snackbar:(e,t)=>{(0,Un.u_)(e);const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`),n=(0,Un.jE)("snack-container",t);n&&(n.style.position="fixed",n.style.bottom="0",n.style.left="0"),n.appendChild(o),o.notification=e},banner:(e,t,i)=>{var o;(0,Un.u_)(e);const n=t.split("-")[0],a=document.createElement(`${n}-banner`),s=(0,Un.cL)(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.notification=e}},jn=(e,t,i)=>{Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{Gn[o]&&Gn[o](e,t,i)})};class Vn extends s.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const i=null==e?void 0:e.target,o=Array.from(null!==(t=null==i?void 0:i.files)&&void 0!==t?t:[]),n=o.find(e=>e.size>this.fileSizeLimitBytes);if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(o)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){jn({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,$.Cg)([d.attr],Vn.prototype,"label",void 0),(0,$.Cg)([d.attr],Vn.prototype,"accept",void 0),(0,$.Cg)([(0,d.attr)({attribute:"file-size-limit-bytes"})],Vn.prototype,"fileSizeLimitBytes",void 0),(0,$.Cg)([d.observable],Vn.prototype,"fileName",void 0),(0,$.Cg)([d.observable],Vn.prototype,"isProcessing",void 0);const Yn=(e="start",t="#879ba6")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,Wn=(e,t,i)=>d.css`
1851
1851
  /* Host */
1852
1852
  :host {
1853
1853
  display: flex;
@@ -1897,9 +1897,9 @@
1897
1897
  justify-content: center;
1898
1898
  z-index: 2;
1899
1899
  }
1900
- `,ua=(e,t)=>d.css`
1901
- ${ca("foundation",e,t)}
1902
- `,ha=e=>d.html`
1900
+ `,qn=(e,t)=>d.css`
1901
+ ${Wn("foundation",e,t)}
1902
+ `,Kn=e=>d.html`
1903
1903
  <template>
1904
1904
  <div class="file-reader">
1905
1905
  ${(0,d.when)(e=>e.isProcessing,d.html`
@@ -1935,9 +1935,9 @@
1935
1935
  `)}
1936
1936
  </div>
1937
1937
  </template>
1938
- `,pa=d.html`
1939
- ${e=>ha(z(e))}
1940
- `;class ma extends la{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=".json,application/json"}onFileSelected(e){var t,i;const o=e[0];if(o&&this.accept.includes("json")&&!(null===(i=null===(t=null==o?void 0:o.name)||void 0===t?void 0:t.toLowerCase())||void 0===i?void 0:i.endsWith(".json"))){const e="Selected file is not a JSON file";return this.showError("File Type Error",e),void this.$emit("error",new Error(e))}this.selectedFile=o,this.fileName=o.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return(0,$.sH)(this,void 0,void 0,function*(){var e;if(this.getSelectedFile()){this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{const t=yield this.getSelectedFile().text();let i;try{i=JSON.parse(t)}catch(e){return this.showError("Invalid JSON Format","The selected file contains invalid JSON"),void this.$emit("error",e)}this.fileContent=i,this.$emit("file-read",{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),null===(e=this.onFileRead)||void 0===e||e.call(this,this.fileContent)}catch(e){this.showError("File Processing Error","An error occurred while processing the file"),this.$emit("error",e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}}else this.showError("No File Selected","Please select a file to process")})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}}(0,$.Cg)([(0,d.attr)({attribute:"auto-process",mode:"boolean"})],ma.prototype,"autoProcess",void 0),(0,$.Cg)([(0,d.attr)({attribute:"processing-delay-ms"})],ma.prototype,"processingDelayMs",void 0),(0,$.Cg)([d.observable],ma.prototype,"fileContent",void 0),(0,$.Cg)([d.observable],ma.prototype,"onFileRead",void 0);const va=ma.compose({baseName:"file-reader",styles:ua,template:pa});var ga=i(17465),fa=i(32748);const ba=d.css`
1938
+ `,Xn=d.html`
1939
+ ${e=>Kn(z(e))}
1940
+ `;class Qn extends Vn{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=".json,application/json"}onFileSelected(e){var t,i;const o=e[0];if(o&&this.accept.includes("json")&&!(null===(i=null===(t=null==o?void 0:o.name)||void 0===t?void 0:t.toLowerCase())||void 0===i?void 0:i.endsWith(".json"))){const e="Selected file is not a JSON file";return this.showError("File Type Error",e),void this.$emit("error",new Error(e))}this.selectedFile=o,this.fileName=o.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return(0,$.sH)(this,void 0,void 0,function*(){var e;if(this.getSelectedFile()){this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{const t=yield this.getSelectedFile().text();let i;try{i=JSON.parse(t)}catch(e){return this.showError("Invalid JSON Format","The selected file contains invalid JSON"),void this.$emit("error",e)}this.fileContent=i,this.$emit("file-read",{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),null===(e=this.onFileRead)||void 0===e||e.call(this,this.fileContent)}catch(e){this.showError("File Processing Error","An error occurred while processing the file"),this.$emit("error",e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}}else this.showError("No File Selected","Please select a file to process")})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}}(0,$.Cg)([(0,d.attr)({attribute:"auto-process",mode:"boolean"})],Qn.prototype,"autoProcess",void 0),(0,$.Cg)([(0,d.attr)({attribute:"processing-delay-ms"})],Qn.prototype,"processingDelayMs",void 0),(0,$.Cg)([d.observable],Qn.prototype,"fileContent",void 0),(0,$.Cg)([d.observable],Qn.prototype,"onFileRead",void 0);const Jn=Qn.compose({baseName:"file-reader",styles:qn,template:Xn});var Zn=i(17465),ea=i(32748);const ta=d.css`
1941
1941
  /* Host */
1942
1942
  :host {
1943
1943
  display: flex;
@@ -1985,7 +1985,7 @@
1985
1985
  fast-data-grid-row {
1986
1986
  align-items: center;
1987
1987
  }
1988
- `,ya=e=>d.html`
1988
+ `,ia=e=>d.html`
1989
1989
  <template>
1990
1990
  <div class="file-selection">
1991
1991
  <input type="file" multiple ${(0,d.ref)("fileInput")}
@@ -2011,13 +2011,13 @@
2011
2011
  </${e}-data-grid>
2012
2012
  </div>
2013
2013
  </template>
2014
- `,Ca=d.html`
2015
- ${e=>ya(z(e))}
2016
- `,wa=e=>{const t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},xa=(e,t,i,o)=>{const n=new Headers;return n.append("SESSION_AUTH_TOKEN",i),o.post(e,{body:t,headers:n})},$a=(e,t,i,o="GET",n,a,s="zero")=>{const r=new Headers;r.append("SESSION_AUTH_TOKEN",i),fetch(e,{method:o,body:a,headers:r,credentials:"include"}).then(e=>(0,$.sH)(void 0,void 0,void 0,function*(){var t;if(e.ok)return e.blob();{const i=yield e.json();n&&ra({title:null==i?void 0:i.MESSAGE_TYPE,body:null===(t=null==i?void 0:i.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},s),L.error(i||"An error occurred while downloading the file.")}})).then(e=>{if(e){const i=window.URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),o.remove(),n&&ra({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},s),L.info("File downloaded successfully")}}).catch(e=>{L.error(e)})},Sa=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Ea=["text/plain","text/csv"],Oa=["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"],Ta=d.html`
2014
+ `,oa=d.html`
2015
+ ${e=>ia(z(e))}
2016
+ `,na=e=>{const t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},aa=(e,t,i,o)=>{const n=new Headers;return n.append("SESSION_AUTH_TOKEN",i),o.post(e,{body:t,headers:n})},sa=(e,t,i,o="GET",n,a,s="zero")=>{const r=new Headers;r.append("SESSION_AUTH_TOKEN",i),fetch(e,{method:o,body:a,headers:r,credentials:"include"}).then(e=>(0,$.sH)(void 0,void 0,void 0,function*(){var t;if(e.ok)return e.blob();{const i=yield e.json();n&&jn({title:null==i?void 0:i.MESSAGE_TYPE,body:null===(t=null==i?void 0:i.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},s),L.error(i||"An error occurred while downloading the file.")}})).then(e=>{if(e){const i=window.URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),o.remove(),n&&jn({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},s),L.info("File downloaded successfully")}}).catch(e=>{L.error(e)})},ra=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],la=["text/plain","text/csv"],da=["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"],ca=d.html`
2017
2017
  ${(0,d.when)(e=>e.rowData,d.html`
2018
2018
  ${e=>"DATETIME"===e.columnDefinition.type?(0,F.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
2019
2019
  `)}
2020
- `;class ka extends la{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="gwf/attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach(t=>{"image/*"===t?e=[...e,...Sa]:"office/*"===t?e=[...e,...Oa]:"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}});return(0,$.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()})}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new j).withExpression((new K).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const i of e.ROW)if(i.DETAILS)switch(i.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(i);break;case"MODIFY":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,i);break;case"DELETE":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:ga.v.error(`Unsupported operation type: ${i.DETAILS.OPERATION}`)}}setRowData(){return(0,$.sH)(this,void 0,void 0,function*(){yield this.connect.stream(this.uploadedFilesResourceName,e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)},e=>{ga.v.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return(0,$.sH)(this,void 0,void 0,function*(){var e;const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),i=[];this.gridFields.length>0?this.gridFields.split(" ").forEach(e=>{var o;const n=null===(o=t.FIELD)||void 0===o?void 0:o.find(t=>t.NAME===e);n?i.push(this.getColumnObject(n)):"DOWNLOAD"===e&&this.downloadEventName&&i.push(this.getDownloadColumn())}):(null===(e=t.FIELD)||void 0===e||e.forEach(e=>{i.push(this.getColumnObject(e))}),this.downloadEventName&&i.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=i})}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:d.html`
2020
+ `;class ua extends Vn{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="gwf/attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach(t=>{"image/*"===t?e=[...e,...ra]:"office/*"===t?e=[...e,...da]:"text/*"===t?e=[...e,...la]:e.push(t)}),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()})}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new P.b).withExpression((new P.KN).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const i of e.ROW)if(i.DETAILS)switch(i.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(i);break;case"MODIFY":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,i);break;case"DELETE":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:Zn.v.error(`Unsupported operation type: ${i.DETAILS.OPERATION}`)}}setRowData(){return(0,$.sH)(this,void 0,void 0,function*(){yield this.connect.stream(this.uploadedFilesResourceName,e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)},e=>{Zn.v.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return(0,$.sH)(this,void 0,void 0,function*(){var e;const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),i=[];this.gridFields.length>0?this.gridFields.split(" ").forEach(e=>{var o;const n=null===(o=t.FIELD)||void 0===o?void 0:o.find(t=>t.NAME===e);n?i.push(this.getColumnObject(n)):"DOWNLOAD"===e&&this.downloadEventName&&i.push(this.getDownloadColumn())}):(null===(e=t.FIELD)||void 0===e||e.forEach(e=>{i.push(this.getColumnObject(e))}),this.downloadEventName&&i.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=i})}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:d.html`
2021
2021
  <template>
2022
2022
  <div class="download-button-container">
2023
2023
  <${e}-button
@@ -2028,7 +2028,7 @@
2028
2028
  </${e}-button>
2029
2029
  </div>
2030
2030
  </template>
2031
- `}}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:Ta}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){const t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0)for(const e of t)if(!(this.accept.split(",").includes(".msg")&&e.name&&e.name.endsWith("msg")||this.acceptedFormats.includes(e.type)))return void this.showError("File Type Error",`Not a valid file type. Accepted Formats are ${this.accept}`);this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join()}onFileCleared(){this.fileName="",this.selectedFiles=[]}handleFileUpload(){return(0,$.sH)(this,void 0,void 0,function*(){try{const e=wa(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield xa(this.uploadEventName,e,this.session.getItem("authToken","session"),this.http);if(t.ERROR)return ga.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ga.v.info(t),this.$emit("success",t),this.clearSelection()}catch(e){this.$emit("errorOut",e),ga.v.error(e)}})}handleFileDownload(e){const t=this.tagName.toLowerCase().split("-")[0];$a(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"),"GET",!0,void 0,t)}}(0,$.Cg)([d.observable],ka.prototype,"gridCriteria",void 0),(0,$.Cg)([D.dm],ka.prototype,"connect",void 0),(0,$.Cg)([fa.l],ka.prototype,"http",void 0),(0,$.Cg)([Wt.N],ka.prototype,"session",void 0),(0,$.Cg)([(0,d.attr)({attribute:"uploaded-files-resource-name"})],ka.prototype,"uploadedFilesResourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"upload-event-name"})],ka.prototype,"uploadEventName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"field-name"})],ka.prototype,"fieldName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"entity-id"})],ka.prototype,"entityId",void 0),(0,$.Cg)([(0,d.attr)({attribute:"upload-key"})],ka.prototype,"uploadKey",void 0),(0,$.Cg)([(0,d.attr)({attribute:"grid-fields"})],ka.prototype,"gridFields",void 0),(0,$.Cg)([d.observable],ka.prototype,"fileName",void 0),(0,$.Cg)([d.observable],ka.prototype,"uploadedFilesList",void 0),(0,$.Cg)([d.observable],ka.prototype,"filesGridColumnDefinitions",void 0);const Ia=void 0,Da={},Ra=ka.compose(Object.assign({baseName:"file-upload",styles:ba,template:Ca,shadowOptions:Ia},Da)),Fa=d.css`
2031
+ `}}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:ca}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){const t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0)for(const e of t)if(!(this.accept.split(",").includes(".msg")&&e.name&&e.name.endsWith("msg")||this.acceptedFormats.includes(e.type)))return void this.showError("File Type Error",`Not a valid file type. Accepted Formats are ${this.accept}`);this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join()}onFileCleared(){this.fileName="",this.selectedFiles=[]}handleFileUpload(){return(0,$.sH)(this,void 0,void 0,function*(){try{const e=na(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield aa(this.uploadEventName,e,this.session.getItem("authToken","session"),this.http);if(t.ERROR)return Zn.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);Zn.v.info(t),this.$emit("success",t),this.clearSelection()}catch(e){this.$emit("errorOut",e),Zn.v.error(e)}})}handleFileDownload(e){const t=this.tagName.toLowerCase().split("-")[0];sa(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"),"GET",!0,void 0,t)}}(0,$.Cg)([d.observable],ua.prototype,"gridCriteria",void 0),(0,$.Cg)([D.dm],ua.prototype,"connect",void 0),(0,$.Cg)([ea.l],ua.prototype,"http",void 0),(0,$.Cg)([Ht.N],ua.prototype,"session",void 0),(0,$.Cg)([(0,d.attr)({attribute:"uploaded-files-resource-name"})],ua.prototype,"uploadedFilesResourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"upload-event-name"})],ua.prototype,"uploadEventName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"field-name"})],ua.prototype,"fieldName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"entity-id"})],ua.prototype,"entityId",void 0),(0,$.Cg)([(0,d.attr)({attribute:"upload-key"})],ua.prototype,"uploadKey",void 0),(0,$.Cg)([(0,d.attr)({attribute:"grid-fields"})],ua.prototype,"gridFields",void 0),(0,$.Cg)([d.observable],ua.prototype,"fileName",void 0),(0,$.Cg)([d.observable],ua.prototype,"uploadedFilesList",void 0),(0,$.Cg)([d.observable],ua.prototype,"filesGridColumnDefinitions",void 0);const ha=void 0,pa={},ma=ua.compose(Object.assign({baseName:"file-upload",styles:ta,template:oa,shadowOptions:ha},pa)),ga=d.css`
2032
2032
  .filter-wrapper {
2033
2033
  border: 1px solid gray;
2034
2034
  border-radius: calc(var(--design-unit) * 2px);
@@ -2079,52 +2079,52 @@
2079
2079
  .flex-row foundation-select {
2080
2080
  flex: 1;
2081
2081
  }
2082
- `,Aa=d.html`
2083
- <div class="close-icon" @click=${e=>e.clear()}>${da()}</div>
2084
- `;function Na(e){var t,i,o;return null!==(o=null===(i=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===i?void 0:i.value)&&void 0!==o?o:"all"}const La=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Ma=(e,t)=>{switch(e.type){case"number":return(e=>d.html`
2082
+ `,va=d.html`
2083
+ <div class="close-icon" @click=${e=>e.clear()}>${Yn()}</div>
2084
+ `;function fa(e){var t,i,o;return null!==(o=null===(i=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===i?void 0:i.value)&&void 0!==o?o:"all"}const ba=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],ya=(e,t)=>{switch(e.type){case"number":return(e=>d.html`
2085
2085
  <div class="flex-row">
2086
2086
  <div>${e=>e.label}</div>
2087
- ${Aa}
2087
+ ${va}
2088
2088
  </div>
2089
2089
  <div class="flex-row">
2090
2090
  <${e}-text-field
2091
2091
  ${(0,d.ref)("numFilterFieldMin")}
2092
2092
  type="number"
2093
- :value=${(0,gt.O)(e=>e.numFilterMin)}
2093
+ :value=${(0,F.OH)(e=>e.numFilterMin)}
2094
2094
  placeholder="min"
2095
2095
  ></${e}-text-field>
2096
2096
  <${e}-text-field
2097
2097
  ${(0,d.ref)("numFilterFieldMax")}
2098
2098
  type="number"
2099
- :value=${(0,gt.O)(e=>e.numFilterMax)}
2099
+ :value=${(0,F.OH)(e=>e.numFilterMax)}
2100
2100
  placeholder="max"
2101
2101
  ></${e}-text-field>
2102
2102
  </div>
2103
2103
  `)(t);case"date":return(e=>d.html`
2104
2104
  <div class="flex-row">
2105
2105
  <div>${e=>e.label}</div>
2106
- ${Aa}
2106
+ ${va}
2107
2107
  </div>
2108
2108
  <div class="flex-row">
2109
2109
  <${e}-text-field
2110
2110
  ${(0,d.ref)("dateFilterFieldMin")}
2111
2111
  type="date"
2112
- :value=${(0,gt.O)(e=>e.dateFilterMin)}
2112
+ :value=${(0,F.OH)(e=>e.dateFilterMin)}
2113
2113
  ></${e}-text-field>
2114
2114
  <${e}-text-field
2115
2115
  ${(0,d.ref)("dateFilterFieldMax")}
2116
2116
  type="date"
2117
- :value=${(0,gt.O)(e=>e.dateFilterMax)}
2117
+ :value=${(0,F.OH)(e=>e.dateFilterMax)}
2118
2118
  ></${e}-text-field>
2119
2119
  </div>
2120
2120
  `)(t);case"boolean":return(e=>d.html`
2121
2121
  <div class="flex-row">
2122
2122
  <div>${e=>e.label}</div>
2123
- ${Aa}
2123
+ ${va}
2124
2124
  </div>
2125
2125
  <div class="flex-row">
2126
- <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(Na(t))}}">
2127
- ${(0,d.repeat)(()=>La,d.html`
2126
+ <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(fa(t))}}">
2127
+ ${(0,d.repeat)(()=>ba,d.html`
2128
2128
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
2129
2129
  ${e=>e.name}
2130
2130
  </${e}-option>
@@ -2134,10 +2134,10 @@
2134
2134
  `)(t);case"enum":return(e=>d.html`
2135
2135
  <div class="flex-row">
2136
2136
  <div>${e=>e.label}</div>
2137
- ${Aa}
2137
+ ${va}
2138
2138
  </div>
2139
2139
  <div class="flex-row">
2140
- <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(Na(t))}}">
2140
+ <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(fa(t))}}">
2141
2141
  ${(0,d.repeat)(e=>e.enumFilterOptions,d.html`
2142
2142
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
2143
2143
  ${e=>e.name}
@@ -2148,20 +2148,20 @@
2148
2148
  `)(t);default:return(e=>d.html`
2149
2149
  <div class="flex-row">
2150
2150
  <div>${e=>e.label}</div>
2151
- ${Aa}
2151
+ ${va}
2152
2152
  </div>
2153
2153
  <div class="flex-row">
2154
2154
  <${e}-text-field
2155
2155
  ${(0,d.ref)("textFilterField")}
2156
2156
  type="text"
2157
- :value=${(0,gt.O)(e=>e.textFilter)}
2157
+ :value=${(0,F.OH)(e=>e.textFilter)}
2158
2158
  />
2159
2159
  </div>
2160
- `)(t)}},_a=e=>d.html`
2161
- <div class="filter-wrapper">${t=>Ma(t,e)}</div>
2162
- `,Ha=d.html`
2163
- ${e=>_a(z(e))}</div>
2164
- `;var za;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(za||(za={}));class Pa extends s.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(za.clear,{fieldName:this.fieldName,target:this.target});const i=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(za.change,{fieldName:this.fieldName,filter:i,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(za.clear,{fieldName:this.fieldName,target:this.target});const i=`${this.fieldName} >= ${e}`,o=`${this.fieldName} <= ${t}`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(za.change,{fieldName:this.fieldName,filter:n,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(za.clear,{fieldName:this.fieldName});const i=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,o=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(za.change,{fieldName:this.fieldName,filter:n,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(za.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(za.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(za.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(za.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(za.clear,{fieldName:this.fieldName,target:this.target})}}(0,$.Cg)([d.attr],Pa.prototype,"fieldName",void 0),(0,$.Cg)([d.attr],Pa.prototype,"type",void 0),(0,$.Cg)([d.attr],Pa.prototype,"label",void 0),(0,$.Cg)([d.attr],Pa.prototype,"target",void 0),(0,$.Cg)([d.observable],Pa.prototype,"textFilter",void 0),(0,$.Cg)([d.observable],Pa.prototype,"numFilterMin",void 0),(0,$.Cg)([d.observable],Pa.prototype,"numFilterMax",void 0),(0,$.Cg)([d.observable],Pa.prototype,"dateFilterMin",void 0),(0,$.Cg)([d.observable],Pa.prototype,"dateFilterMax",void 0),(0,$.Cg)([d.attr],Pa.prototype,"enumOptions",void 0),(0,$.Cg)([d.observable],Pa.prototype,"enumFilterOptions",void 0);const Ua=Pa.compose({baseName:"filter",template:Ha,styles:Fa}),Ba=(e,t)=>d.css`
2160
+ `)(t)}},Ca=e=>d.html`
2161
+ <div class="filter-wrapper">${t=>ya(t,e)}</div>
2162
+ `,wa=d.html`
2163
+ ${e=>Ca(z(e))}</div>
2164
+ `;var xa;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(xa||(xa={}));class $a extends s.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(xa.clear,{fieldName:this.fieldName,target:this.target});const i=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(xa.change,{fieldName:this.fieldName,filter:i,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(xa.clear,{fieldName:this.fieldName,target:this.target});const i=`${this.fieldName} >= ${e}`,o=`${this.fieldName} <= ${t}`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(xa.change,{fieldName:this.fieldName,filter:n,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(xa.clear,{fieldName:this.fieldName});const i=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,o=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(xa.change,{fieldName:this.fieldName,filter:n,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(xa.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(xa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(xa.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(xa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(xa.clear,{fieldName:this.fieldName,target:this.target})}}(0,$.Cg)([d.attr],$a.prototype,"fieldName",void 0),(0,$.Cg)([d.attr],$a.prototype,"type",void 0),(0,$.Cg)([d.attr],$a.prototype,"label",void 0),(0,$.Cg)([d.attr],$a.prototype,"target",void 0),(0,$.Cg)([d.observable],$a.prototype,"textFilter",void 0),(0,$.Cg)([d.observable],$a.prototype,"numFilterMin",void 0),(0,$.Cg)([d.observable],$a.prototype,"numFilterMax",void 0),(0,$.Cg)([d.observable],$a.prototype,"dateFilterMin",void 0),(0,$.Cg)([d.observable],$a.prototype,"dateFilterMax",void 0),(0,$.Cg)([d.attr],$a.prototype,"enumOptions",void 0),(0,$.Cg)([d.observable],$a.prototype,"enumFilterOptions",void 0);const Sa=$a.compose({baseName:"filter",template:wa,styles:ga}),Ea=(e,t)=>d.css`
2165
2165
  .filter-bar {
2166
2166
  background-color: #2c2f33;
2167
2167
  padding: calc(var(--design-unit) * 2px);
@@ -2197,11 +2197,11 @@
2197
2197
  .toggle-collapsed {
2198
2198
  color: #48ed9c;
2199
2199
  }
2200
- `,Ga=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"}},ja=d.html`
2200
+ `,Oa=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"}},Ta=d.html`
2201
2201
  <p>Fetching metadata for ${e=>e.resource}...</p>
2202
- `,Va=e=>d.html`
2202
+ `,ka=e=>d.html`
2203
2203
  <div
2204
- class=${e=>(0,ee.x)(["toggle",!0],["toggle-collapsed",e.collapsed])}
2204
+ class=${e=>(0,V.x)(["toggle",!0],["toggle-collapsed",e.collapsed])}
2205
2205
  @click="${e=>e.toggle()}"
2206
2206
  >
2207
2207
  ${(e=>d.html`
@@ -2213,27 +2213,27 @@
2213
2213
  `)}
2214
2214
  `)(e)}
2215
2215
  </div>
2216
- <div class=${e=>(0,ee.x)(["filter-bar",!0],["collapsed",e.collapsed])}>
2216
+ <div class=${e=>(0,V.x)(["filter-bar",!0],["collapsed",e.collapsed])}>
2217
2217
  <div class="filter-grid" ${(0,d.ref)("filterGrid")}>
2218
2218
  ${(0,d.repeat)(e=>e.fields,d.html`
2219
2219
  <${e}-filter
2220
2220
  label="${e=>e.UI_LABEL}"
2221
2221
  target="${(e,t)=>{var i;return null===(i=t.parent)||void 0===i?void 0:i.target}}"
2222
- type="${e=>Ga(e.TYPE)}"
2222
+ type="${e=>Oa(e.TYPE)}"
2223
2223
  fieldName="${e=>e.NAME}"
2224
2224
  enumOptions="${e=>e.VALID_VALUES}"
2225
2225
  ></${e}-filter>
2226
2226
  `)}
2227
2227
  </div>
2228
2228
  </div>
2229
- `,Ya=d.html`
2230
- ${e=>e.ready?Va(z(e)):ja}
2231
- `;var Wa=i(64324);const qa=5;class Ka extends s.FoundationElement{constructor(){super(...arguments),this.columns=qa,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,i,o;let n=!1,a=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(a=null===(t=this.labels.split(","))||void 0===t?void 0:t.map(e=>e.trim()),n=(null===(i=this.fields)||void 0===i?void 0:i.length)===(null==a?void 0:a.length));for(let e=0;e<((null===(o=this.fields)||void 0===o?void 0:o.length)||0);e+=1){const t=n?a[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map(e=>(0,Wa.fL)(e)).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{var t,i;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,i)=>e.indexOf(t.NAME)>e.indexOf(i.NAME)?1:-1;this.fields=null===(i=this.fields)||void 0===i?void 0:i.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>L.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,$.Cg)([d.attr],Ka.prototype,"resource",void 0),(0,$.Cg)([d.attr],Ka.prototype,"only",void 0),(0,$.Cg)([d.attr],Ka.prototype,"labels",void 0),(0,$.Cg)([d.attr],Ka.prototype,"target",void 0),(0,$.Cg)([d.attr],Ka.prototype,"columns",void 0),(0,$.Cg)([d.observable],Ka.prototype,"ready",void 0),(0,$.Cg)([d.observable],Ka.prototype,"fields",void 0),(0,$.Cg)([D.dm],Ka.prototype,"connect",void 0),(0,$.Cg)([d.observable],Ka.prototype,"collapsed",void 0);const Xa=Ka.compose({baseName:"filter-bar",template:Ya,styles:Ba}),Qa=d.html`
2229
+ `,Ia=d.html`
2230
+ ${e=>e.ready?ka(z(e)):Ta}
2231
+ `;var Da=i(64324);const Ra=5;class Fa extends s.FoundationElement{constructor(){super(...arguments),this.columns=Ra,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,i,o;let n=!1,a=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(a=null===(t=this.labels.split(","))||void 0===t?void 0:t.map(e=>e.trim()),n=(null===(i=this.fields)||void 0===i?void 0:i.length)===(null==a?void 0:a.length));for(let e=0;e<((null===(o=this.fields)||void 0===o?void 0:o.length)||0);e+=1){const t=n?a[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map(e=>(0,Da.fL)(e)).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{var t,i;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,i)=>e.indexOf(t.NAME)>e.indexOf(i.NAME)?1:-1;this.fields=null===(i=this.fields)||void 0===i?void 0:i.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>L.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,$.Cg)([d.attr],Fa.prototype,"resource",void 0),(0,$.Cg)([d.attr],Fa.prototype,"only",void 0),(0,$.Cg)([d.attr],Fa.prototype,"labels",void 0),(0,$.Cg)([d.attr],Fa.prototype,"target",void 0),(0,$.Cg)([d.attr],Fa.prototype,"columns",void 0),(0,$.Cg)([d.observable],Fa.prototype,"ready",void 0),(0,$.Cg)([d.observable],Fa.prototype,"fields",void 0),(0,$.Cg)([D.dm],Fa.prototype,"connect",void 0),(0,$.Cg)([d.observable],Fa.prototype,"collapsed",void 0);const Na=Fa.compose({baseName:"filter-bar",template:Ia,styles:Ea}),Aa=d.html`
2232
2232
  <template>
2233
2233
  <slot></slot>
2234
2234
  </template>
2235
- `;var Ja;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ja||(Ja={}));const Za=e=>{const t=e?`-${e}`:"";return d.css`
2236
- ${t&&`@media only screen and ${Ja[e]} {`}
2235
+ `;var La;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(La||(La={}));const Ma=e=>{const t=e?`-${e}`:"";return d.css`
2236
+ ${t&&`@media only screen and ${La[e]} {`}
2237
2237
  :host(.spacing${t}-1x) slot {
2238
2238
  gap: calc(var(--design-unit) * 2px);
2239
2239
  }
@@ -2350,7 +2350,7 @@
2350
2350
  align-content: space-evenly;
2351
2351
  }
2352
2352
  ${t&&"}"}
2353
- `},es=d.css`
2353
+ `},Ha=d.css`
2354
2354
  :host {
2355
2355
  width: 100%;
2356
2356
  height: 100%;
@@ -2362,13 +2362,13 @@
2362
2362
  display: flex;
2363
2363
  }
2364
2364
 
2365
- ${Za()}
2366
- ${Za("lg")}
2367
- ${Za("md")}
2368
- ${Za("sm")}
2369
- `,ts=void 0,is={};class os extends s.FoundationElement{}const ns=os.compose(Object.assign({baseName:"flex-layout",styles:es,template:Qa,shadowOptions:ts},is)),as=(e,t)=>(0,s.flipperTemplate)(e,t),ss=(e,t)=>d.css`
2365
+ ${Ma()}
2366
+ ${Ma("lg")}
2367
+ ${Ma("md")}
2368
+ ${Ma("sm")}
2369
+ `,_a=void 0,za={};class Pa extends s.FoundationElement{}const Ua=Pa.compose(Object.assign({baseName:"flex-layout",styles:Ha,template:Aa,shadowOptions:_a},za)),Ba=(e,t)=>(0,s.flipperTemplate)(e,t),Ga=(e,t)=>d.css`
2370
2370
  ${(0,l.flipperStyles)(e,t)}
2371
- `;class rs extends l.Flipper{}const ls=void 0,ds={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 '},cs=rs.compose(Object.assign({baseName:"flipper",template:as,styles:ss,shadowOptions:ls},ds)),us=225,hs=d.css`
2371
+ `;class ja extends l.Flipper{}const Va=void 0,Ya={next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '},Wa=ja.compose(Object.assign({baseName:"flipper",template:Ba,styles:Ga,shadowOptions:Va},Ya)),qa=225,Ka=d.css`
2372
2372
  /* Host */
2373
2373
  :host {
2374
2374
  display: inline-block;
@@ -2393,7 +2393,7 @@
2393
2393
  height: 100%;
2394
2394
  position: absolute;
2395
2395
  /* stylelint-disable-next-line function-name-case */
2396
- transition: transform ${us.toString()}ms ease-in;
2396
+ transition: transform ${qa.toString()}ms ease-in;
2397
2397
  width: 20%;
2398
2398
  z-index: 2001;
2399
2399
  }
@@ -2441,7 +2441,7 @@
2441
2441
  opacity: 50%;
2442
2442
  position: absolute;
2443
2443
  /* stylelint-disable-next-line function-name-case */
2444
- transition: opacity ${us.toString()}ms linear;
2444
+ transition: opacity ${qa.toString()}ms linear;
2445
2445
  width: 100%;
2446
2446
  z-index: 2000;
2447
2447
  }
@@ -2449,7 +2449,7 @@
2449
2449
  :host([visuallyhidden]) div.background {
2450
2450
  opacity: 0%;
2451
2451
  }
2452
- `,ps=e=>d.html`
2452
+ `,Xa=e=>d.html`
2453
2453
  <div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
2454
2454
  <div class="container">
2455
2455
  <div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
@@ -2473,14 +2473,14 @@
2473
2473
  </div>
2474
2474
  </div>
2475
2475
  </div>
2476
- `,ms=d.html`
2477
- ${e=>ps(z(e))}
2478
- `;class vs extends s.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}focusExit(){this.exit.focus()}}(0,$.Cg)([d.attr],vs.prototype,"position",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],vs.prototype,"displayHeader",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],vs.prototype,"closed",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],vs.prototype,"visuallyhidden",void 0);const gs=void 0,fs={},bs=vs.compose(Object.assign({baseName:"flyout",styles:hs,template:ms,shadowOptions:gs},fs)),ys=d.html`
2476
+ `,Qa=d.html`
2477
+ ${e=>Xa(z(e))}
2478
+ `;class Ja extends s.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}focusExit(){this.exit.focus()}}(0,$.Cg)([d.attr],Ja.prototype,"position",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Ja.prototype,"displayHeader",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Ja.prototype,"closed",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Ja.prototype,"visuallyhidden",void 0);const Za=void 0,es={},ts=Ja.compose(Object.assign({baseName:"flyout",styles:Ka,template:Qa,shadowOptions:Za},es)),is=d.html`
2479
2479
  <template>
2480
2480
  <slot></slot>
2481
2481
  </template>
2482
- `;var Cs;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Cs||(Cs={}));const ws=e=>{const t=e?`-${e}`:"";return d.css`
2483
- ${t&&`@media only screen and ${Cs[e]} {`}
2482
+ `;var os;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(os||(os={}));const ns=e=>{const t=e?`-${e}`:"";return d.css`
2483
+ ${t&&`@media only screen and ${os[e]} {`}
2484
2484
  :host(.spacing${t}-1x) slot {
2485
2485
  gap: calc(var(--design-unit) * 2px);
2486
2486
  }
@@ -2565,28 +2565,28 @@
2565
2565
  place-items: stretch;
2566
2566
  }
2567
2567
  ${t&&"}"}
2568
- `},xs=d.css`
2568
+ `},as=d.css`
2569
2569
  slot {
2570
2570
  width: 100%;
2571
2571
  height: 100%;
2572
2572
  display: grid;
2573
2573
  }
2574
2574
 
2575
- ${ws()}
2576
- ${ws("lg")}
2577
- ${ws("md")}
2578
- ${ws("sm")}
2579
- `,$s=void 0,Ss={};class Es{constructor(e,t,i,o="1fr",n="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const a=t&&d.cssPartial`grid-template-columns: repeat(${t}, ${o});`,s=i&&d.cssPartial`grid-template-rows: repeat(${i}, ${n});`;this.styles=d.css`
2575
+ ${ns()}
2576
+ ${ns("lg")}
2577
+ ${ns("md")}
2578
+ ${ns("sm")}
2579
+ `,ss=void 0,rs={};class ls{constructor(e,t,i,o="1fr",n="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const a=t&&d.cssPartial`grid-template-columns: repeat(${t}, ${o});`,s=i&&d.cssPartial`grid-template-rows: repeat(${i}, ${n});`;this.styles=d.css`
2580
2580
  slot {
2581
2581
  ${s||""}
2582
2582
  ${a||""}
2583
2583
  }
2584
- `}bind(e){let t=!1;const i=i=>{const{matches:o}=i;o&&!t?(e.$fastController.addStyles(this.styles),t=!0):!o&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};i({matches:this.query.matches}),this.query.addEventListener("change",i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}}class Os extends s.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Cs).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new Es(Cs[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"]&&d.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&d.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=d.css`
2584
+ `}bind(e){let t=!1;const i=i=>{const{matches:o}=i;o&&!t?(e.$fastController.addStyles(this.styles),t=!0):!o&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};i({matches:this.query.matches}),this.query.addEventListener("change",i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}}class ds extends s.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(os).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new ls(os[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"]&&d.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&d.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=d.css`
2585
2585
  slot {
2586
2586
  ${e||""}
2587
2587
  ${t||""}
2588
2588
  }
2589
- `,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}}(0,$.Cg)([d.attr],Os.prototype,"col-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-width",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-lg-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-lg-width",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-md-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-md-width",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-sm-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"col-sm-width",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-height",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-lg-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-lg-height",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-md-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-md-height",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-sm-count",void 0),(0,$.Cg)([d.attr],Os.prototype,"row-sm-height",void 0);const Ts=Os.compose(Object.assign({baseName:"grid-layout",styles:xs,template:ys,shadowOptions:$s},Ss)),ks=d.html`
2589
+ `,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}}(0,$.Cg)([d.attr],ds.prototype,"col-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-width",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-lg-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-lg-width",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-md-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-md-width",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-sm-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"col-sm-width",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-height",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-lg-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-lg-height",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-md-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-md-height",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-sm-count",void 0),(0,$.Cg)([d.attr],ds.prototype,"row-sm-height",void 0);const cs=ds.compose(Object.assign({baseName:"grid-layout",styles:as,template:is,shadowOptions:ss},rs)),us=d.html`
2590
2590
  <template>
2591
2591
  <style>
2592
2592
  :host {
@@ -2615,9 +2615,9 @@
2615
2615
  </style>
2616
2616
  <slot></slot>
2617
2617
  </template>
2618
- `,Is=void 0,Ds={};class Rs extends s.FoundationElement{setGridItemProperties(e,t,i,o){if(t&&e&&i&&o){return`grid-row: ${0===t||0===o?"auto":`${t} / ${Number(t)+Number(o)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}(0,$.Cg)([(0,d.attr)({attribute:"col-number"})],Rs.prototype,"colNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-sm-number"})],Rs.prototype,"colSmNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-md-number"})],Rs.prototype,"colMdNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-lg-number"})],Rs.prototype,"colLgNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-number"})],Rs.prototype,"rowNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-sm-number"})],Rs.prototype,"rowSmNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-md-number"})],Rs.prototype,"rowMdNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-lg-number"})],Rs.prototype,"rowLgNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width"})],Rs.prototype,"width",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-sm"})],Rs.prototype,"widthSm",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-md"})],Rs.prototype,"widthMd",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-lg"})],Rs.prototype,"widthLg",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height"})],Rs.prototype,"height",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-sm"})],Rs.prototype,"heightSm",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-md"})],Rs.prototype,"heightMd",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-lg"})],Rs.prototype,"heightLg",void 0);const Fs=Rs.compose(Object.assign({baseName:"grid-layout-item",template:ks,shadowOptions:Is},Ds)),As=(e,t)=>(0,s.horizontalScrollTemplate)(e,t),Ns=(e,t)=>d.css`
2618
+ `,hs=void 0,ps={};class ms extends s.FoundationElement{setGridItemProperties(e,t,i,o){if(t&&e&&i&&o){return`grid-row: ${0===t||0===o?"auto":`${t} / ${Number(t)+Number(o)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}(0,$.Cg)([(0,d.attr)({attribute:"col-number"})],ms.prototype,"colNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-sm-number"})],ms.prototype,"colSmNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-md-number"})],ms.prototype,"colMdNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"col-lg-number"})],ms.prototype,"colLgNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-number"})],ms.prototype,"rowNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-sm-number"})],ms.prototype,"rowSmNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-md-number"})],ms.prototype,"rowMdNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"row-lg-number"})],ms.prototype,"rowLgNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width"})],ms.prototype,"width",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-sm"})],ms.prototype,"widthSm",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-md"})],ms.prototype,"widthMd",void 0),(0,$.Cg)([(0,d.attr)({attribute:"width-lg"})],ms.prototype,"widthLg",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height"})],ms.prototype,"height",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-sm"})],ms.prototype,"heightSm",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-md"})],ms.prototype,"heightMd",void 0),(0,$.Cg)([(0,d.attr)({attribute:"height-lg"})],ms.prototype,"heightLg",void 0);const gs=ms.compose(Object.assign({baseName:"grid-layout-item",template:us,shadowOptions:hs},ps)),vs=(e,t)=>(0,s.horizontalScrollTemplate)(e,t),fs=(e,t)=>d.css`
2619
2619
  ${(0,l.horizontalScrollStyles)(e,t)}
2620
- `;class Ls extends l.HorizontalScroll{}const Ms={delegatesFocus:!0,mode:"open"},_s={nextFlipper:d.html`
2620
+ `;class bs extends l.HorizontalScroll{}const ys={delegatesFocus:!0,mode:"open"},Cs={nextFlipper:d.html`
2621
2621
  <foundation-flipper
2622
2622
  @click="${e=>e.scrollToNext()}"
2623
2623
  aria-hidden="${e=>e.flippersHiddenFromAT}"
@@ -2628,8 +2628,8 @@
2628
2628
  direction="previous"
2629
2629
  aria-hidden="${e=>e.flippersHiddenFromAT}"
2630
2630
  ></foundation-flipper>
2631
- `},Hs=Ls.compose(Object.assign({baseName:"horizontal-scroll",template:As,styles:Ns,shadowOptions:Ms},_s)),zs=(e,t)=>d.css`
2632
- ${No()}
2631
+ `},ws=bs.compose(Object.assign({baseName:"horizontal-scroll",template:vs,styles:fs,shadowOptions:ys},Cs)),xs=(e,t)=>d.css`
2632
+ ${wo()}
2633
2633
 
2634
2634
  .fa-stack-1x {
2635
2635
  font-size: 1em;
@@ -2703,12 +2703,12 @@
2703
2703
  height: auto;
2704
2704
  box-sizing: border-box;
2705
2705
  }
2706
- `,Ps=e=>d.html`
2706
+ `,$s=e=>d.html`
2707
2707
  <template>
2708
2708
  <i
2709
2709
  ${(0,d.ref)("iElement")}
2710
2710
  id="${e=>e.tooltipId}"
2711
- class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${(0,ee.x)(["error-tooltip",!(!e.isError||!e.tooltip)],["tooltip-icon",!(e.isError||!e.tooltip)])}`}
2711
+ class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${(0,V.x)(["error-tooltip",!(!e.isError||!e.tooltip)],["tooltip-icon",!(e.isError||!e.tooltip)])}`}
2712
2712
  part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}
2713
2713
  >
2714
2714
  <slot></slot>
@@ -2721,9 +2721,9 @@
2721
2721
  </${e}-tooltip>
2722
2722
  `)}
2723
2723
  </template>
2724
- `,Us=d.html`
2725
- ${e=>Ps(z(e))}
2726
- `;var Bs=i(32808);const Gs={mode:"open",delegatesFocus:!0},js={};var Vs;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Vs||(Vs={}));const Ys="1x",Ws=["2xs","xs","sm","lg","xl","2xl",Ys,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class qs extends s.FoundationElement{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=(0,Do.wu)({prefix:Vs[this.variant],iconName:this.name}),t=(0,Do.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}(0,$.Cg)([d.observable],qs.prototype,"iElement",void 0),(0,$.Cg)([Bs.k],qs.prototype,"uuid",void 0),(0,$.Cg)([(0,d.attr)({attribute:"tooltip-id"})],qs.prototype,"tooltipId",void 0),(0,$.Cg)([d.attr],qs.prototype,"tooltip",void 0),(0,$.Cg)([(0,d.attr)({attribute:"error",mode:"boolean"})],qs.prototype,"isError",void 0),(0,$.Cg)([d.attr],qs.prototype,"name",void 0),(0,$.Cg)([d.attr],qs.prototype,"size",void 0),(0,$.Cg)([d.attr],qs.prototype,"variant",void 0);const Ks=qs.compose(Object.assign({baseName:"icon",template:Us,styles:zs,shadowOptions:Gs},js)),Xs=(e,t)=>(0,s.listboxTemplate)(e,t),Qs=(e,t)=>d.css`
2724
+ `,Ss=d.html`
2725
+ ${e=>$s(z(e))}
2726
+ `,Es={mode:"open",delegatesFocus:!0},Os={};var Ts;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Ts||(Ts={}));const ks="1x",Is=["2xs","xs","sm","lg","xl","2xl",ks,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class Ds extends s.FoundationElement{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=(0,fo.wu)({prefix:Ts[this.variant],iconName:this.name}),t=(0,fo.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}(0,$.Cg)([d.observable],Ds.prototype,"iElement",void 0),(0,$.Cg)([F.kk],Ds.prototype,"uuid",void 0),(0,$.Cg)([(0,d.attr)({attribute:"tooltip-id"})],Ds.prototype,"tooltipId",void 0),(0,$.Cg)([d.attr],Ds.prototype,"tooltip",void 0),(0,$.Cg)([(0,d.attr)({attribute:"error",mode:"boolean"})],Ds.prototype,"isError",void 0),(0,$.Cg)([d.attr],Ds.prototype,"name",void 0),(0,$.Cg)([d.attr],Ds.prototype,"size",void 0),(0,$.Cg)([d.attr],Ds.prototype,"variant",void 0);const Rs=Ds.compose(Object.assign({baseName:"icon",template:Ss,styles:xs,shadowOptions:Es},Os)),Fs=(e,t)=>(0,s.listboxTemplate)(e,t),Ns=(e,t)=>d.css`
2727
2727
  ${(0,l.listboxStyles)(e,t)}
2728
2728
 
2729
2729
  :host {
@@ -2734,11 +2734,11 @@
2734
2734
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
2735
2735
  border-radius: calc(var(--control-corner-radius) * 1px);
2736
2736
  }
2737
- `;class Js extends l.Listbox{}const Zs=void 0,er={},tr=Js.compose(Object.assign({baseName:"listbox",template:Xs,styles:Qs,shadowOptions:Zs},er)),ir=(e,t)=>(0,s.listboxOptionTemplate)(e,t),or=(e,t)=>d.css`
2737
+ `;class As extends l.Listbox{}const Ls=void 0,Ms={},Hs=As.compose(Object.assign({baseName:"listbox",template:Fs,styles:Ns,shadowOptions:Ls},Ms)),_s=(e,t)=>(0,s.listboxOptionTemplate)(e,t),zs=(e,t)=>d.css`
2738
2738
  ${(0,l.optionStyles)(e,t)}
2739
- `;class nr extends l.ListboxOption{}const ar=void 0,sr={},rr=nr.compose(Object.assign({baseName:"option",template:ir,styles:or,shadowOptions:ar},sr)),lr=(e,t)=>(0,s.menuTemplate)(e,t),dr=(e,t)=>d.css`
2739
+ `;class Ps extends l.ListboxOption{}const Us=void 0,Bs={},Gs=Ps.compose(Object.assign({baseName:"option",template:_s,styles:zs,shadowOptions:Us},Bs)),js=(e,t)=>(0,s.menuTemplate)(e,t),Vs=(e,t)=>d.css`
2740
2740
  ${(0,l.menuStyles)(e,t)}
2741
- `;class cr extends l.Menu{}const ur=void 0,hr={},pr=cr.compose(Object.assign({baseName:"menu",template:lr,styles:dr,shadowOptions:ur},hr)),mr=(e,t)=>(0,s.menuItemTemplate)(e,t),vr=(e,t)=>d.css`
2741
+ `;class Ys extends l.Menu{}const Ws=void 0,qs={},Ks=Ys.compose(Object.assign({baseName:"menu",template:js,styles:Vs,shadowOptions:Ws},qs)),Xs=(e,t)=>(0,s.menuItemTemplate)(e,t),Qs=(e,t)=>d.css`
2742
2742
  ${(0,l.menuItemStyles)(e,t)}
2743
2743
 
2744
2744
  :host, :host(.indent-0[aria-haspopup='menu']) {
@@ -2752,15 +2752,15 @@
2752
2752
  height: auto;
2753
2753
  width: auto;
2754
2754
  }
2755
- `;class gr extends l.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const fr=void 0,br={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 '},yr=gr.compose(Object.assign({baseName:"menu-item",template:mr,styles:vr,shadowOptions:fr},br)),Cr=d.css`
2756
- ${Uo}
2755
+ `;class Js extends l.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const Zs=void 0,er={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 '},tr=Js.compose(Object.assign({baseName:"menu-item",template:Xs,styles:Qs,shadowOptions:Zs},er)),ir=d.css`
2756
+ ${ko}
2757
2757
 
2758
2758
  :host([draggable])::part(top) {
2759
2759
  cursor: move;
2760
2760
  }
2761
- `,wr=d.html`
2762
- ${Vo}
2763
- `,xr={mode:"open",delegatesFocus:!0},$r={};class Sr extends Ko{constructor(){super(...arguments),this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.modalWidth=0,this.modalHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.draggable=!1,this.onCloseCallback=()=>{this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}draggableChanged(e,t){var i,o;t?(this.onMouseDownBound=this.onMouseDown.bind(this),null===(i=this.mainElement)||void 0===i||i.addEventListener("mousedown",this.onMouseDownBound)):(this.onMouseDownBound&&(null===(o=this.mainElement)||void 0===o||o.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null),this.removeDraggableEventListeners())}show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}connectedCallback(){var e;super.connectedCallback(),this.draggable&&(this.onMouseDownBound=this.onMouseDown.bind(this),null===(e=this.mainElement)||void 0===e||e.addEventListener("mousedown",this.onMouseDownBound))}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeDraggableEventListeners(),this.onMouseDownBound&&(null===(e=this.mainElement)||void 0===e||e.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.offsetX=e.clientX-t.left,this.offsetY=e.clientY-t.top,this.modalWidth=t.width,this.modalHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,i=window.innerHeight;let o=e.clientX-this.offsetX,n=e.clientY-this.offsetY;o=Math.max(0,Math.min(t-this.modalWidth,o)),n=Math.max(0,Math.min(i-this.modalHeight,n)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${o}px`,top:`${n}px`,margin:"0"})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}}(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Sr.prototype,"draggable",void 0);const Er=Sr.compose(Object.assign({baseName:"modal",template:wr,styles:Cr,shadowOptions:xr},$r)),Or=(e,t)=>d.html`
2761
+ `,or=d.html`
2762
+ ${Ro}
2763
+ `,nr={mode:"open",delegatesFocus:!0},ar={};class sr extends Lo{constructor(){super(...arguments),this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.modalWidth=0,this.modalHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.draggable=!1,this.onCloseCallback=()=>{this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}draggableChanged(e,t){var i,o;t?(this.onMouseDownBound=this.onMouseDown.bind(this),null===(i=this.mainElement)||void 0===i||i.addEventListener("mousedown",this.onMouseDownBound)):(this.onMouseDownBound&&(null===(o=this.mainElement)||void 0===o||o.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null),this.removeDraggableEventListeners())}show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}connectedCallback(){var e;super.connectedCallback(),this.draggable&&(this.onMouseDownBound=this.onMouseDown.bind(this),null===(e=this.mainElement)||void 0===e||e.addEventListener("mousedown",this.onMouseDownBound))}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeDraggableEventListeners(),this.onMouseDownBound&&(null===(e=this.mainElement)||void 0===e||e.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.offsetX=e.clientX-t.left,this.offsetY=e.clientY-t.top,this.modalWidth=t.width,this.modalHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,i=window.innerHeight;let o=e.clientX-this.offsetX,n=e.clientY-this.offsetY;o=Math.max(0,Math.min(t-this.modalWidth,o)),n=Math.max(0,Math.min(i-this.modalHeight,n)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${o}px`,top:`${n}px`,margin:"0"})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}}(0,$.Cg)([(0,d.attr)({mode:"boolean"})],sr.prototype,"draggable",void 0);const rr=sr.compose(Object.assign({baseName:"modal",template:or,styles:ir,shadowOptions:nr},ar)),lr=(e,t)=>d.html`
2764
2764
  <template class="${e=>e.readOnly?"readonly":""}">
2765
2765
  <label
2766
2766
  part="label"
@@ -2829,7 +2829,7 @@
2829
2829
  ${(0,s.endSlotTemplate)(e,t)}
2830
2830
  </div>
2831
2831
  </template>
2832
- `,Tr=(e,t)=>d.css`
2832
+ `,dr=(e,t)=>d.css`
2833
2833
  ${(0,l.numberFieldStyles)(e,t)}
2834
2834
  ::part(label) {
2835
2835
  color: var(--neutral-foreground-rest);
@@ -2863,19 +2863,19 @@
2863
2863
  .label-hidden {
2864
2864
  margin: 0;
2865
2865
  }
2866
- `;class kr{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),i=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.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(`[${i.join("")}]`,"g"),this._index=e=>o.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 Ir=9,Dr=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts(12345.6).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},Rr=(e,t)=>{const{decimalSeparator:i}=Dr(0,t);return"."===i?e:e.replace(/\./g,i)},Fr=(e,t,i)=>Intl.NumberFormat(t,i).format(Number(e)),Ar=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const o=e.indexOf("."),n=-1!==o,a=n?e.length-o-1:0,s=t.minimumFractionDigits,r=t.maximumFractionDigits;if(a>=s&&a<=r)return e;let l=e;if(a<s){n||(l=e+".");l+="0".repeat(s-a)}if(a>r){const t=n?e.substring(0,o):e,i=(n?e.substring(o+1):"").substring(0,r);l=0===r?t:`${t}.${i}`}return l},Nr=(e,t,i=!0,o)=>{if(null==e||""===e)return"";const n="number"==typeof e?e.toString():e,a=null!=o?o:12;let s;if(i)s=((e,t)=>String(new kr(t).parse(String(e))))(n,t);else{const{decimalSeparator:e}=Dr(0,t);if("."!==e){s=n.replace(new RegExp(`\\${e}`,"g"),".");const t=s.indexOf(".");-1!==t&&(s=s.substring(0,t))}else s=n}s=String(s);if(!/^-?\d*\.?\d+$/.test(s))return"";if(void 0!==a){if(s.replace(".","").replace(/^0+/,"").length>a){const e=s.indexOf(".");if(-1!==e){const t=s.substring(0,e),i=t.length;if(i>=a)return s.substring(0,a);{const o=a-i;return`${t}.${s.substring(e+1).substring(0,o)}`}}return s.substring(0,a)}}return s},Lr=(e,t,i)=>((e,t,i)=>{const{decimalSeparator:o}=Dr(0,i),n=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${n}(\\d*?)(0+)$`),s=e.match(a);if(s){const e=s[1],i=s[2],o=String(t);if(!isNaN(Number(t))){if(o.includes(".")){const t=o.split(".")[1],n=Math.max(0,i.length-(t.length-e.length));return o+"0".repeat(n)}return o+"."+e+i}}return String(t)})(e,Nr(e,t,void 0,i),t),Mr=(e,t,i=!0,o,n,a)=>{let s=parseFloat(Nr(e,t,i,a));return isNaN(s)?s="":(s=Math.min(s,null!=n?n:s),s=Math.max(s,null!=o?o:s)),String(s)},_r=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const o=t.substring(i+1).length;if(0===o)return 1;const n=Math.pow(10,-o);return parseFloat(n.toFixed(o))}catch(t){const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return 1;const n=i.substring(o+1).length;if(0===n)return 1;const a=Math.pow(10,-n);return parseFloat(a.toFixed(n))}};class Hr extends l.NumberField{constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_r(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)+t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))+1;if(s<=Ir){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))+t;o<=Ir?(e=o+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,o))+1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Mr(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_r(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)-t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))-1;if(s>=0){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))-t;o>=0?(e=o+e,t=0):(e=Ir.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,o))-1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Mr(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(this.isUserInput=!0,this.withFormatting&&!new kr(this.locale).hasSeparator(this.control.value)?d.DOM.queueUpdate(()=>{const e=Lr(this.control.value,this.locale,this.maximumInputPrecision);this.value=Ar(e,this.options),this.control&&(this.control.value=Ar(Rr(e,this.locale),this.options)),this.$emit("input")}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||d.DOM.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")}))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=Mr(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void d.DOM.queueUpdate(()=>{this.control&&(this.control.value=this.withFormatting&&this.value?Fr(this.value,this.locale,this.options):this.value)});const e=t;d.DOM.queueUpdate(()=>{this.control&&(""!==this.control.value&&""!==this.value?(this.control.value=Rr(String(e),this.locale),this.value=this.withFormatting?Lr(this.control.value,this.locale,this.maximumInputPrecision):this.control.value):this.control.value=e)})}}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=Mr(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?Ar(e,this.options):e),this.control.value=this.withFormatting&&this.value?Fr(this.value,this.locale,this.options):e,this.$emit("input")}}(0,$.Cg)([d.attr],Hr.prototype,"autocomplete",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Hr.prototype,"hideStep",void 0),(0,$.Cg)([d.attr],Hr.prototype,"value",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Hr.prototype,"withFormatting",void 0),(0,$.Cg)([d.attr],Hr.prototype,"locale",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Hr.prototype,"autoStepPrecision",void 0),(0,$.Cg)([d.attr],Hr.prototype,"maximumInputPrecision",void 0);const zr={delegatesFocus:!0,mode:"open"},Pr={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 '},Ur=Hr.compose(Object.assign({baseName:"number-field",template:Or,styles:Tr,shadowOptions:zr},Pr));var Br=i(92277);var Gr=i(72154),jr=i.n(Gr),Vr=i(57565),Yr=i.n(Vr),Wr=i(13160),qr=i(24669),Kr=i(5709),Xr=i(45230);const Qr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,$.sH)(void 0,void 0,void 0,function*(){const t=(0,D.tn)(),i=yield t.getMoreColumns(e),o=Date.now(),n=i;return{isConnected:i.MESSAGE_TYPE===T.Go.MORE_COLUMNS_ACK,lastUpdated:o,lastMessage:n}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:o}=t;(0,Xr.Ol)().sendForStream(e,i,o)}},Jr=s.DI.createInterface(e=>e.instance(Qr)),Zr="system-health-changed";var el;const tl=(0,N.createLogger)("network-monitor",{level:N.LogLevel.Info}),il=Date.now(),ol=(null===(el=window.navigator)||void 0===el?void 0:el.userAgent)?jr().parse(window.navigator.userAgent):void 0,nl=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Yr()(e,void 0,2,t);class al{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,$.sH)(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;tl.info("Run health checks, triggered by",nl(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const o=yield this.isOnlineCheck();o?tl.debug(`Network connected at ${i}`):tl.warn(`Network disconnected at ${i}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),o),a=this.preFlightSocketChecks(n);if(a||tl.debug("Socket pre-flight checks failed"),!o||!a){tl.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const n=e[i.resourceName];return n?(n.sourceRef=[...n.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},o)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach((e,t)=>{const{resourceName:o,message:n,functions:a}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=a,{SOURCE_REF:c}=n;let u,h,p,m,v,g=!1;r.push((()=>(0,$.sH)(this,void 0,void 0,function*(){var n,a,r;try{tl.debug(`Running health check against ${o}`);const e=yield Promise.race([l(c,t),(a=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise(e=>{setTimeout(()=>{e(r())},a)}))]);g=e.isConnected,u=e.lastUpdated,h=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),p=e,h=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return v=(null==h?void 0:h.MESSAGE_TYPE)===T.Go.MSG_NACK||(0,T.z2)(h,Wr.v.NOT_FOUND),i=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?tl.debug(`${o} is healthy at ${i}`):tl.warn(`${o} is not healthy at ${i}`),h&&tl.debug(`${o} messaged at ${i}`,nl(h)),p&&tl.error(`${o} errored at ${i}`,nl(p)),m&&tl.warn(`${o} timed out at ${i}`),v&&(tl.error(`${o} issue, re-attempting data logon at ${i}`),d(e)),s&&(s=g),{name:o,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:p}}))())});const l=(yield Promise.allSettled(r)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return tl.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});tl.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:l,resourcesAllConnected:s,socket:n}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(tl.level=this.config.logLevel)}create(){this.resources?tl.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout(()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")},this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.addEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.addEventListener(e,this.runAllChecks)),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener(({detail:e})=>{const{functions:t,message:i,resourceName:o,stream:n}=e;this.config.ignoredGenesisResources.includes(o)||this.addResource(n,{functions:t,message:i,resourceName:o})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:o,error:n}=e,a=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let s="";(0,T.z2)(a,Wr.v.NOT_FOUND)?s="Please check the resource is running.":(0,T.z2)(a,Wr.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(o)),tl.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,n)})),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener(e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)})),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener(({detail:e})=>{const{resourceName:t,error:i}=e;i&&tl.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.removeEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.removeEventListener(e,this.runAllChecks)),this.unsubscribableObservers.forEach(e=>e()),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?tl.debug:tl.warn)("Emitting 'system-health-changed' event",nl(this.status)),null==i||i.dispatchEvent(new CustomEvent(Zr,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(tl.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,$.sH)(this,void 0,void 0,function*(){return tl.debug("User requested report stability to Genesis."),tl.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const o=!!t&&e.isConnected,n=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:o,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,o=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:o})}normaliseEventDetail(e){var t,i,o,n;const a=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:ol,username:l,isHealthy:a,lastUpdated:s,nextUpdate:r,firstUpdated:il,runAllChecks:()=>{tl.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return tl.debug("Socket not configured"),!1;if(e.isReconnecting)return tl.debug("Socket reconnecting"),!1;if(e.isConnecting)return tl.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return tl.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&tl.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return tl.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,F.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval(()=>this.runAllChecks("check interval"),this.config.checkInterval)}}(0,$.Cg)([Jr],al.prototype,"config",void 0),(0,$.Cg)([Kr.S5],al.prototype,"socketStatus",void 0),(0,$.Cg)([qr.a4],al.prototype,"connectEvents",void 0),(0,$.Cg)([Br.KJ],al.prototype,"user",void 0),(0,$.Cg)([d.observable],al.prototype,"status",void 0);const sl=s.DI.createInterface(e=>e.singleton(al));var rl=i(6526);const ll=(e,t)=>(0,s.progressTemplate)(e,t),dl=(e,t)=>d.css`
2866
+ `,cr=9,ur=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts(12345.6).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},hr=(e,t)=>{const{decimalSeparator:i}=ur(0,t);return"."===i?e:e.replace(/\./g,i)},pr=(e,t,i)=>Intl.NumberFormat(t,i).format(Number(e)),mr=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const o=e.indexOf("."),n=-1!==o,a=n?e.length-o-1:0,s=t.minimumFractionDigits,r=t.maximumFractionDigits;if(a>=s&&a<=r)return e;let l=e;if(a<s){n||(l=e+".");l+="0".repeat(s-a)}if(a>r){const t=n?e.substring(0,o):e,i=(n?e.substring(o+1):"").substring(0,r);l=0===r?t:`${t}.${i}`}return l},gr=(e,t,i=!0,o)=>{if(null==e||""===e)return"";const n="number"==typeof e?e.toString():e,a=null!=o?o:12;let s;if(i)s=((e,t)=>String(new F.dR(t).parse(String(e))))(n,t);else{const{decimalSeparator:e}=ur(0,t);if("."!==e){s=n.replace(new RegExp(`\\${e}`,"g"),".");const t=s.indexOf(".");-1!==t&&(s=s.substring(0,t))}else s=n}s=String(s);if(!/^-?\d*\.?\d+$/.test(s))return"";if(void 0!==a){if(s.replace(".","").replace(/^0+/,"").length>a){const e=s.indexOf(".");if(-1!==e){const t=s.substring(0,e),i=t.length;if(i>=a)return s.substring(0,a);{const o=a-i;return`${t}.${s.substring(e+1).substring(0,o)}`}}return s.substring(0,a)}}return s},vr=(e,t,i)=>((e,t,i)=>{const{decimalSeparator:o}=ur(0,i),n=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${n}(\\d*?)(0+)$`),s=e.match(a);if(s){const e=s[1],i=s[2],o=String(t);if(!isNaN(Number(t))){if(o.includes(".")){const t=o.split(".")[1],n=Math.max(0,i.length-(t.length-e.length));return o+"0".repeat(n)}return o+"."+e+i}}return String(t)})(e,gr(e,t,void 0,i),t),fr=(e,t,i=!0,o,n,a)=>{let s=parseFloat(gr(e,t,i,a));return isNaN(s)?s="":(s=Math.min(s,null!=n?n:s),s=Math.max(s,null!=o?o:s)),String(s)},br=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const o=t.substring(i+1).length;if(0===o)return 1;const n=Math.pow(10,-o);return parseFloat(n.toFixed(o))}catch(t){const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return 1;const n=i.substring(o+1).length;if(0===n)return 1;const a=Math.pow(10,-n);return parseFloat(a.toFixed(n))}};class yr extends l.NumberField{constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?br(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)+t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))+1;if(s<=cr){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))+t;o<=cr?(e=o+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,o))+1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=fr(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?br(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)-t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))-1;if(s>=0){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))-t;o>=0?(e=o+e,t=0):(e=cr.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,o))-1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=fr(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(this.isUserInput=!0,this.withFormatting&&!new F.dR(this.locale).hasSeparator(this.control.value)?d.DOM.queueUpdate(()=>{const e=vr(this.control.value,this.locale,this.maximumInputPrecision);this.value=mr(e,this.options),this.control&&(this.control.value=mr(hr(e,this.locale),this.options)),this.$emit("input")}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||d.DOM.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")}))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=fr(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void d.DOM.queueUpdate(()=>{this.control&&(this.control.value=this.withFormatting&&this.value?pr(this.value,this.locale,this.options):this.value)});const e=t;d.DOM.queueUpdate(()=>{this.control&&(""!==this.control.value&&""!==this.value?(this.control.value=hr(String(e),this.locale),this.value=this.withFormatting?vr(this.control.value,this.locale,this.maximumInputPrecision):this.control.value):this.control.value=e)})}}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=fr(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?mr(e,this.options):e),this.control.value=this.withFormatting&&this.value?pr(this.value,this.locale,this.options):e,this.$emit("input")}}(0,$.Cg)([d.attr],yr.prototype,"autocomplete",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],yr.prototype,"hideStep",void 0),(0,$.Cg)([d.attr],yr.prototype,"value",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],yr.prototype,"withFormatting",void 0),(0,$.Cg)([d.attr],yr.prototype,"locale",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],yr.prototype,"autoStepPrecision",void 0),(0,$.Cg)([d.attr],yr.prototype,"maximumInputPrecision",void 0);const Cr={delegatesFocus:!0,mode:"open"},wr={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 '},xr=yr.compose(Object.assign({baseName:"number-field",template:lr,styles:dr,shadowOptions:Cr},wr));var $r=i(92277),Sr=i(72154),Er=i.n(Sr),Or=i(57565),Tr=i.n(Or),kr=i(13160),Ir=i(24669),Dr=i(5709),Rr=i(45230);const Fr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,$.sH)(void 0,void 0,void 0,function*(){const t=(0,D.tn)(),i=yield t.getMoreColumns(e),o=Date.now(),n=i;return{isConnected:i.MESSAGE_TYPE===T.Go.MORE_COLUMNS_ACK,lastUpdated:o,lastMessage:n}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:o}=t;(0,Rr.Ol)().sendForStream(e,i,o)}},Nr=s.DI.createInterface(e=>e.instance(Fr)),Ar="system-health-changed";var Lr;const Mr=(0,A.createLogger)("network-monitor",{level:A.LogLevel.Info}),Hr=Date.now(),_r=(null===(Lr=window.navigator)||void 0===Lr?void 0:Lr.userAgent)?Er().parse(window.navigator.userAgent):void 0,zr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Tr()(e,void 0,2,t);class Pr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,$.sH)(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;Mr.info("Run health checks, triggered by",zr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const o=yield this.isOnlineCheck();o?Mr.debug(`Network connected at ${i}`):Mr.warn(`Network disconnected at ${i}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),o),a=this.preFlightSocketChecks(n);if(a||Mr.debug("Socket pre-flight checks failed"),!o||!a){Mr.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const n=e[i.resourceName];return n?(n.sourceRef=[...n.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},o)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach((e,t)=>{const{resourceName:o,message:n,functions:a}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=a,{SOURCE_REF:c}=n;let u,h,p,m,g,v=!1;r.push((()=>(0,$.sH)(this,void 0,void 0,function*(){var n;try{Mr.debug(`Running health check against ${o}`);const e=yield Promise.race([l(c,t),(0,F.P0)(this.config.checkTimeout,()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}))]);v=e.isConnected,u=e.lastUpdated,h=e.lastMessage,m=e.timeout}catch(e){v=!1,u=this.getNowTimestamp(),p=e,h=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return g=(null==h?void 0:h.MESSAGE_TYPE)===T.Go.MSG_NACK||(0,T.z2)(h,kr.v.NOT_FOUND),i=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),v?Mr.debug(`${o} is healthy at ${i}`):Mr.warn(`${o} is not healthy at ${i}`),h&&Mr.debug(`${o} messaged at ${i}`,zr(h)),p&&Mr.error(`${o} errored at ${i}`,zr(p)),m&&Mr.warn(`${o} timed out at ${i}`),g&&(Mr.error(`${o} issue, re-attempting data logon at ${i}`),d(e)),s&&(s=v),{name:o,sourceRef:[c],isConnected:v,lastUpdated:u,lastError:p}}))())});const l=(yield Promise.allSettled(r)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return Mr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});Mr.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:l,resourcesAllConnected:s,socket:n}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(Mr.level=this.config.logLevel)}create(){this.resources?Mr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout(()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")},this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.addEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.addEventListener(e,this.runAllChecks)),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener(({detail:e})=>{const{functions:t,message:i,resourceName:o,stream:n}=e;this.config.ignoredGenesisResources.includes(o)||this.addResource(n,{functions:t,message:i,resourceName:o})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:o,error:n}=e,a=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let s="";(0,T.z2)(a,kr.v.NOT_FOUND)?s="Please check the resource is running.":(0,T.z2)(a,kr.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(o)),Mr.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,n)})),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener(e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)})),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener(({detail:e})=>{const{resourceName:t,error:i}=e;i&&Mr.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.removeEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.removeEventListener(e,this.runAllChecks)),this.unsubscribableObservers.forEach(e=>e()),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?Mr.debug:Mr.warn)("Emitting 'system-health-changed' event",zr(this.status)),null==i||i.dispatchEvent(new CustomEvent(Ar,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(Mr.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,$.sH)(this,void 0,void 0,function*(){return Mr.debug("User requested report stability to Genesis."),Mr.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const o=!!t&&e.isConnected,n=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:o,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,o=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:o})}normaliseEventDetail(e){var t,i,o,n;const a=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:_r,username:l,isHealthy:a,lastUpdated:s,nextUpdate:r,firstUpdated:Hr,runAllChecks:()=>{Mr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return Mr.debug("Socket not configured"),!1;if(e.isReconnecting)return Mr.debug("Socket reconnecting"),!1;if(e.isConnecting)return Mr.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return Mr.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&Mr.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return Mr.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,F.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval(()=>this.runAllChecks("check interval"),this.config.checkInterval)}}(0,$.Cg)([Nr],Pr.prototype,"config",void 0),(0,$.Cg)([Dr.S5],Pr.prototype,"socketStatus",void 0),(0,$.Cg)([Ir.a4],Pr.prototype,"connectEvents",void 0),(0,$.Cg)([$r.KJ],Pr.prototype,"user",void 0),(0,$.Cg)([d.observable],Pr.prototype,"status",void 0);const Ur=s.DI.createInterface(e=>e.singleton(Pr));var Br=i(6526);const Gr=(e,t)=>(0,s.progressTemplate)(e,t),jr=(e,t)=>d.css`
2867
2867
  ${(0,l.progressStyles)(e,t)}
2868
2868
  :host {
2869
2869
  height: calc(var(--design-unit) * 2px);
2870
2870
  }
2871
- `;class cl extends l.Progress{}const ul=void 0,hl={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},pl=cl.compose(Object.assign({baseName:"progress",template:ll,styles:dl,shadowOptions:ul},hl));function ml(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}const vl=(e,t="foundation",i,a)=>{e&&ji(null!=i?i:o,null!=a?a:n,e);return ml(s.DesignSystem.getOrCreate(e).withPrefix(t))},gl="app",fl="component";vl().register(pl({prefix:"next-update"}));class bl extends s.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=gl,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case rl.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case rl.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case rl.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===fl&&L.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){tl.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=(0,ee.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,ee.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,ee.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,ee.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,ee.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,ee.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},t<0&&clearInterval(this.timeTillNextUpdateInterval)},1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(Zr,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(Zr,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?d.html`
2871
+ `;class Vr extends l.Progress{}const Yr=void 0,Wr={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},qr=Vr.compose(Object.assign({baseName:"progress",template:Gr,styles:jr,shadowOptions:Yr},Wr));function Kr(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}const Xr=(e,t="foundation",i,a)=>{e&&Ri(null!=i?i:o,null!=a?a:n,e);return Kr(s.DesignSystem.getOrCreate(e).withPrefix(t))},Qr="app",Jr="component";Xr().register(qr({prefix:"next-update"}));class Zr extends s.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=Qr,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Br.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Br.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case Br.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Jr&&L.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){Mr.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=(0,V.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,V.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,V.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,V.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,V.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,V.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},t<0&&clearInterval(this.timeTillNextUpdateInterval)},1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(Ar,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(Ar,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?d.html`
2872
2872
  <span class="checkmark">&#x2714;</span>
2873
2873
  `:d.html`
2874
2874
  <span class="checkmark">&#10008;</span>
2875
- `}}(0,$.Cg)([Jr],bl.prototype,"config",void 0),(0,$.Cg)([sl],bl.prototype,"networkMonitor",void 0),(0,$.Cg)([d.observable],bl.prototype,"resourceList",void 0),(0,$.Cg)([d.observable],bl.prototype,"isOpen",void 0),(0,$.Cg)([d.observable],bl.prototype,"wasOpenedByUser",void 0),(0,$.Cg)([d.observable],bl.prototype,"isDismissed",void 0),(0,$.Cg)([d.observable],bl.prototype,"templateClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"containerClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"isOnlineClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"isHealthyClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"isSocketHealthyClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"resourcesAllConnectedClassNames",void 0),(0,$.Cg)([d.observable],bl.prototype,"timeTillNextUpdate",void 0),(0,$.Cg)([d.observable],bl.prototype,"saveDataCallback",void 0),(0,$.Cg)([d.attr],bl.prototype,"mode",void 0),(0,$.Cg)([(0,d.attr)({attribute:"log-level",converter:d.nullableNumberConverter})],bl.prototype,"logLevel",void 0),(0,$.Cg)([d.observable],bl.prototype,"status",void 0);const yl=(e,t)=>d.html`
2875
+ `}}(0,$.Cg)([Nr],Zr.prototype,"config",void 0),(0,$.Cg)([Ur],Zr.prototype,"networkMonitor",void 0),(0,$.Cg)([d.observable],Zr.prototype,"resourceList",void 0),(0,$.Cg)([d.observable],Zr.prototype,"isOpen",void 0),(0,$.Cg)([d.observable],Zr.prototype,"wasOpenedByUser",void 0),(0,$.Cg)([d.observable],Zr.prototype,"isDismissed",void 0),(0,$.Cg)([d.observable],Zr.prototype,"templateClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"containerClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"isOnlineClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"isHealthyClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"isSocketHealthyClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"resourcesAllConnectedClassNames",void 0),(0,$.Cg)([d.observable],Zr.prototype,"timeTillNextUpdate",void 0),(0,$.Cg)([d.observable],Zr.prototype,"saveDataCallback",void 0),(0,$.Cg)([d.attr],Zr.prototype,"mode",void 0),(0,$.Cg)([(0,d.attr)({attribute:"log-level",converter:d.nullableNumberConverter})],Zr.prototype,"logLevel",void 0),(0,$.Cg)([d.observable],Zr.prototype,"status",void 0);const el=(e,t)=>d.html`
2876
2876
  <template class="${e=>e.templateClassNames}">
2877
2877
  <header class="${e=>e.isHealthyClassNames}" part="header">
2878
- <h1>System ${e=>(0,Wa.fL)(e.isHealthyClassNames)}</h1>
2878
+ <h1>System ${e=>(0,Da.fL)(e.isHealthyClassNames)}</h1>
2879
2879
  ${(0,d.when)(e=>!e.status.isHealthy,d.html`
2880
2880
  <span class="data-warning">Data Validity Unknown</span>
2881
2881
  `)}
@@ -2904,7 +2904,7 @@
2904
2904
  </header>
2905
2905
  <div class="container ${e=>e.containerClassNames}" part="container">
2906
2906
  <section class="network-section ${e=>e.isOnlineClassNames}" part="network-section">
2907
- <h2>Network ${e=>(0,Wa.fL)(e.status.isOnline?"online":"offline")}</h2>
2907
+ <h2>Network ${e=>(0,Da.fL)(e.status.isOnline?"online":"offline")}</h2>
2908
2908
  <dl class="resource-list">
2909
2909
  <div class="resource ${e=>e.isOnlineClassNames}">
2910
2910
  <div class="attributes">
@@ -2924,11 +2924,11 @@
2924
2924
  `)}
2925
2925
  <div class="platform-type">
2926
2926
  <dt>Platform Type</dt>
2927
- <dd>${e=>{var t;return(0,Wa.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
2927
+ <dd>${e=>{var t;return(0,Da.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
2928
2928
  </div>
2929
2929
  <div class="os-name">
2930
2930
  <dt>OS Name</dt>
2931
- <dd>${e=>{var t;return(0,Wa.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
2931
+ <dd>${e=>{var t;return(0,Da.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
2932
2932
  </div>
2933
2933
  <div class="os-version">
2934
2934
  <dt>OS Version</dt>
@@ -2938,7 +2938,7 @@
2938
2938
  <div class="attributes">
2939
2939
  <div class="browser-name">
2940
2940
  <dt>Browser Name</dt>
2941
- <dd>${e=>{var t;return(0,Wa.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
2941
+ <dd>${e=>{var t;return(0,Da.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
2942
2942
  </div>
2943
2943
  <div class="browser-version">
2944
2944
  <dt>Browser Version</dt>
@@ -2968,13 +2968,13 @@
2968
2968
  `)}
2969
2969
  </div>
2970
2970
  <div class="controls">
2971
- ${e=>bl.getCheckmarkTemplate(e.status.isOnline)}
2971
+ ${e=>Zr.getCheckmarkTemplate(e.status.isOnline)}
2972
2972
  </div>
2973
2973
  </div>
2974
2974
  </dl>
2975
2975
  </section>
2976
2976
  <section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section">
2977
- <h2>WebSocket ${e=>(0,Wa.fL)(e.isSocketHealthyClassNames)}</h2>
2977
+ <h2>WebSocket ${e=>(0,Da.fL)(e.isSocketHealthyClassNames)}</h2>
2978
2978
  <dl class="resource-list">
2979
2979
  <div class="resource ${e=>e.isSocketHealthyClassNames}">
2980
2980
  <div class="attributes">
@@ -3014,7 +3014,7 @@
3014
3014
  </div>
3015
3015
  </div>
3016
3016
  <div class="controls">
3017
- ${e=>bl.getCheckmarkTemplate(e.isSocketHealthy)}
3017
+ ${e=>Zr.getCheckmarkTemplate(e.isSocketHealthy)}
3018
3018
  </div>
3019
3019
  </div>
3020
3020
  </dl>
@@ -3023,7 +3023,7 @@
3023
3023
  class="resource-section ${e=>e.resourcesAllConnectedClassNames}"
3024
3024
  part="resource-section"
3025
3025
  >
3026
- <h2>Resources ${e=>(0,Wa.fL)(e.resourcesAllConnectedClassNames)}</h2>
3026
+ <h2>Resources ${e=>(0,Da.fL)(e.resourcesAllConnectedClassNames)}</h2>
3027
3027
  <dl class="resource-list">
3028
3028
  ${(0,d.repeat)(e=>e.resourceList,d.html`
3029
3029
  <div class="resource ${e=>e.isConnected?"healthy":"unhealthy"}">
@@ -3050,7 +3050,7 @@
3050
3050
  </div>
3051
3051
  </div>
3052
3052
  <div class="controls">
3053
- ${e=>bl.getCheckmarkTemplate(e.isConnected)}
3053
+ ${e=>Zr.getCheckmarkTemplate(e.isConnected)}
3054
3054
  </div>
3055
3055
  </div>
3056
3056
  `)}
@@ -3058,7 +3058,7 @@
3058
3058
  </section>
3059
3059
  </div>
3060
3060
  </template>
3061
- `,Cl=(e,t)=>d.css`
3061
+ `,tl=(e,t)=>d.css`
3062
3062
  :host {
3063
3063
  --font-family: Menlo, Consolas, monospace;
3064
3064
 
@@ -3329,7 +3329,7 @@
3329
3329
  padding: 0.2em 0.5em;
3330
3330
  background-color: var(--color-unhealthy-opacity-20);
3331
3331
  }
3332
- `,wl=void 0,xl={},$l=bl.compose(Object.assign({baseName:"system-health-overlay",template:yl,styles:Cl,shadowOptions:wl},xl));var Sl=i(4934);const El={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Ol extends s.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,Sl.n4)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,$.Cg)([d.attr],Ol.prototype,"selector",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Ol.prototype,"show",void 0),(0,$.Cg)([d.attr],Ol.prototype,"event",void 0),(0,$.Cg)([d.attr],Ol.prototype,"placement",void 0),(0,$.Cg)([(0,d.attr)({converter:El})],Ol.prototype,"offset",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Ol.prototype,"flip",void 0);const Tl=d.css`
3332
+ `,il=void 0,ol={},nl=Zr.compose(Object.assign({baseName:"system-health-overlay",template:el,styles:tl,shadowOptions:il},ol));var al=i(4934);const sl={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class rl extends s.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,al.n4)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,$.Cg)([d.attr],rl.prototype,"selector",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],rl.prototype,"show",void 0),(0,$.Cg)([d.attr],rl.prototype,"event",void 0),(0,$.Cg)([d.attr],rl.prototype,"placement",void 0),(0,$.Cg)([(0,d.attr)({converter:sl})],rl.prototype,"offset",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],rl.prototype,"flip",void 0);const ll=d.css`
3333
3333
  :host {
3334
3334
  display: none;
3335
3335
  inset: unset !important;
@@ -3339,37 +3339,37 @@
3339
3339
  :host([show]) {
3340
3340
  display: block;
3341
3341
  }
3342
- `,kl=d.html`
3342
+ `,dl=d.html`
3343
3343
  <template>
3344
3344
  <slot></slot>
3345
3345
  </template>
3346
- `,Il=Ol.compose({baseName:"popper",styles:Tl,template:kl}),Dl=(e,t)=>(0,s.progressRingTemplate)(e,t),Rl=(e,t)=>d.css`
3346
+ `,cl=rl.compose({baseName:"popper",styles:ll,template:dl}),ul=(e,t)=>(0,s.progressRingTemplate)(e,t),hl=(e,t)=>d.css`
3347
3347
  ${(0,l.progressRingStyles)(e,t)}
3348
- `;class Fl extends l.Progress{}const Al=void 0,Nl={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 '},Ll=Fl.compose(Object.assign({baseName:"progress-ring",template:Dl,styles:Rl,shadowOptions:Al},Nl)),Ml=(e,t)=>(0,s.radioTemplate)(e,t),_l=(e,t)=>d.css`
3348
+ `;class pl extends l.Progress{}const ml=void 0,gl={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 '},vl=pl.compose(Object.assign({baseName:"progress-ring",template:ul,styles:hl,shadowOptions:ml},gl)),fl=(e,t)=>(0,s.radioTemplate)(e,t),bl=(e,t)=>d.css`
3349
3349
  ${(0,l.radioStyles)(e,t)}
3350
- `;class Hl extends l.Radio{}const zl=void 0,Pl={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Ul=Hl.compose(Object.assign({baseName:"radio",template:Ml,styles:_l,shadowOptions:zl},Pl)),Bl=(e,t)=>(0,s.radioGroupTemplate)(e,t),Gl=(e,t)=>d.css`
3350
+ `;class yl extends l.Radio{}const Cl=void 0,wl={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},xl=yl.compose(Object.assign({baseName:"radio",template:fl,styles:bl,shadowOptions:Cl},wl)),$l=(e,t)=>(0,s.radioGroupTemplate)(e,t),Sl=(e,t)=>d.css`
3351
3351
  ${(0,l.radioGroupStyles)(e,t)}
3352
- `;class jl extends l.RadioGroup{}const Vl=void 0,Yl={},Wl=jl.compose(Object.assign({baseName:"radio-group",template:Bl,styles:Gl,shadowOptions:Vl},Yl)),ql=d.css`
3352
+ `;class El extends l.RadioGroup{}const Ol=void 0,Tl={},kl=El.compose(Object.assign({baseName:"radio-group",template:$l,styles:Sl,shadowOptions:Ol},Tl)),Il=d.css`
3353
3353
  /* Host */
3354
3354
  :host {
3355
3355
  display: flex;
3356
3356
  flex-direction: column;
3357
3357
  width: 100%;
3358
3358
  }
3359
- `,Kl=e=>d.html`
3359
+ `,Dl=e=>d.html`
3360
3360
  <template>
3361
3361
  <${e}-scheduler-timezone
3362
- :timezone=${(0,gt.O)(e=>e.timezone)}
3362
+ :timezone=${(0,F.OH)(e=>e.timezone)}
3363
3363
  @change=${(e,t)=>e.handleChange(t.event,"timezone")}
3364
3364
  ></${e}-scheduler-timezone>
3365
3365
  <${e}-scheduler-cron-builder
3366
- :cron=${(0,gt.O)(e=>e.cron)}
3366
+ :cron=${(0,F.OH)(e=>e.cron)}
3367
3367
  @change=${(e,t)=>e.handleChange(t.event,"cronExpression")}
3368
3368
  ></${e}-scheduler-cron-builder>
3369
3369
  </template>
3370
- `,Xl=d.html`
3371
- ${e=>Kl(z(e))}
3372
- `;class Ql extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:i}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:i}),this.$emit("change",this.cronConfig)}}(0,$.Cg)([d.observable],Ql.prototype,"timezone",void 0),(0,$.Cg)([d.observable],Ql.prototype,"cron",void 0),(0,$.Cg)([d.observable],Ql.prototype,"cronConfig",void 0);const Jl=void 0,Zl={},ed=Ql.compose(Object.assign({baseName:"scheduler",styles:ql,template:Xl,shadowOptions:Jl},Zl)),td=(e,t,i)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let o={title:e.title,body:e.body,iconName:e.iconName},n={};e.createdAt&&(o=Object.assign({createdAt:e.createdAt},o)),e.logLevel in N.LogLevel&&(o=Object.assign({logLevel:e.logLevel},o)),e.toast&&(n=Object.assign({toast:e.toast},n),o=Object.assign({config:n},o)),aa(o,t,i)};var id,od,nd;!function(e){e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(id||(id={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(od||(od={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(nd||(nd={}));const ad=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],sd=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],rd=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}];var ld;!function(e){e.updateCronConfig="update-cron-config"}(ld||(ld={}));const dd=e=>Number(e)>1?`/${e}`:"";const cd=(e,t,i)=>{const o=Number(e);return!isNaN(o)&&o<=i&&o>=t};function ud(e,t,i,o=!1,n=cd){if("*"===e)return!0;if(o&&("?"===e||"L"===e))return!0;if(o&&e.endsWith("L"))return n(e.slice(0,-1),t,i);if(e.startsWith("*/"))return n(e.substring(2),1,i);if(e.startsWith("0/"))return n(e.substring(2),0,i);if(o&&e.includes("#")){const[o,a]=e.split("#");return n(o,t,i)&&n(a,1,4)}if(n(e,t,i))return!0;if(e.includes("-")){const[o,a]=e.split("-");return n(o,t,i)&&n(a,t,i)}return!!e.includes(",")&&e.split(",").every(e=>ud(e,t,i,o,n))}function hd(e,t){return{type:id.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?od.WEEK:od.WORK_WEEK}}function pd(e){return{type:id.HOURLY,frequency:e.includes("/")?e.split("/")[1]:"1"}}function md(e){return{type:id.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const vd=(e,t,i,o)=>{let n;return n="?"===t?{type:nd.DAY_OF_MONTH,day:o.split(/[L#]/)[0],weekNumber:o.includes("#")?o.split("#")[1]:"-1"}:{type:nd.DATE,dayDate:t},e===id.YEARLY&&(n.month=i),n};function gd(e,t,i,o=vd){return{type:id.YEARLY,frequency:2===i.split("/").length?i.split("/")[1]:"1",dateOrDay:o(id.YEARLY,e,t,i.split("/")[0])}}function fd(e,t,i,o=vd){return{type:id.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:o(id.MONTHLY,e,t,i.split("/")[0])}}const bd=d.css`
3370
+ `,Rl=d.html`
3371
+ ${e=>Dl(z(e))}
3372
+ `;class Fl extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:i}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:i}),this.$emit("change",this.cronConfig)}}(0,$.Cg)([d.observable],Fl.prototype,"timezone",void 0),(0,$.Cg)([d.observable],Fl.prototype,"cron",void 0),(0,$.Cg)([d.observable],Fl.prototype,"cronConfig",void 0);const Nl=void 0,Al={},Ll=Fl.compose(Object.assign({baseName:"scheduler",styles:Il,template:Rl,shadowOptions:Nl},Al));var Ml,Hl,_l,zl=i(74209);!function(e){e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(Ml||(Ml={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(Hl||(Hl={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(_l||(_l={}));const Pl=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],Ul=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],Bl=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}];var Gl;!function(e){e.updateCronConfig="update-cron-config"}(Gl||(Gl={}));const jl=e=>Number(e)>1?`/${e}`:"";const Vl=(e,t,i)=>{const o=Number(e);return!isNaN(o)&&o<=i&&o>=t};function Yl(e,t,i,o=!1,n=Vl){if("*"===e)return!0;if(o&&("?"===e||"L"===e))return!0;if(o&&e.endsWith("L"))return n(e.slice(0,-1),t,i);if(e.startsWith("*/"))return n(e.substring(2),1,i);if(e.startsWith("0/"))return n(e.substring(2),0,i);if(o&&e.includes("#")){const[o,a]=e.split("#");return n(o,t,i)&&n(a,1,4)}if(n(e,t,i))return!0;if(e.includes("-")){const[o,a]=e.split("-");return n(o,t,i)&&n(a,t,i)}return!!e.includes(",")&&e.split(",").every(e=>Yl(e,t,i,o,n))}function Wl(e,t){return{type:Ml.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?Hl.WEEK:Hl.WORK_WEEK}}function ql(e){return{type:Ml.HOURLY,frequency:e.includes("/")?e.split("/")[1]:"1"}}function Kl(e){return{type:Ml.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const Xl=(e,t,i,o)=>{let n;return n="?"===t?{type:_l.DAY_OF_MONTH,day:o.split(/[L#]/)[0],weekNumber:o.includes("#")?o.split("#")[1]:"-1"}:{type:_l.DATE,dayDate:t},e===Ml.YEARLY&&(n.month=i),n};function Ql(e,t,i,o=Xl){return{type:Ml.YEARLY,frequency:2===i.split("/").length?i.split("/")[1]:"1",dateOrDay:o(Ml.YEARLY,e,t,i.split("/")[0])}}function Jl(e,t,i,o=Xl){return{type:Ml.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:o(Ml.MONTHLY,e,t,i.split("/")[0])}}const Zl=d.css`
3373
3373
  .input-container {
3374
3374
  display: flex;
3375
3375
  flex-direction: column;
@@ -3391,8 +3391,8 @@
3391
3391
  align-items: center;
3392
3392
  gap: calc(var(--design-unit) * 4px);
3393
3393
  }
3394
- `,yd=d.css`
3395
- ${bd}
3394
+ `,ed=d.css`
3395
+ ${Zl}
3396
3396
  /* Host */
3397
3397
  :host {
3398
3398
  display: flex;
@@ -3443,30 +3443,30 @@
3443
3443
  font-size: var(--type-ramp-minus-1-font-size);
3444
3444
  white-space: nowrap;
3445
3445
  }
3446
- `,Cd=e=>class extends e{$emit(...e){const[t,i,o]=((...e)=>{let[t,i,o]=e,n=i;var a;if(((null==(a=i)?void 0:a.hasOwnProperty("bubbles"))||(null==a?void 0:a.hasOwnProperty("cancelable"))||(null==a?void 0:a.hasOwnProperty("composed")))&&(o=i,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,o]})(...e);return super.$emit(t,i,o)}},wd=d.css`
3447
- ${bd}
3448
- `,xd=d.html`
3446
+ `,td=e=>class extends e{$emit(...e){const[t,i,o]=((...e)=>{let[t,i,o]=e,n=i;var a;if(((null==(a=i)?void 0:a.hasOwnProperty("bubbles"))||(null==a?void 0:a.hasOwnProperty("cancelable"))||(null==a?void 0:a.hasOwnProperty("composed")))&&(o=i,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,o]})(...e);return super.$emit(t,i,o)}},id=d.css`
3447
+ ${Zl}
3448
+ `,od=d.html`
3449
3449
  ${e=>{return t=e.prefix,d.html`
3450
3450
  <template>
3451
3451
  <div class="input-container">
3452
3452
  <label class="label">Of</label>
3453
3453
  <${t}-select
3454
3454
  data-test-id="select-week-type"
3455
- :value=${(0,gt.O)(e=>e.weekType)}
3455
+ :value=${(0,F.OH)(e=>e.weekType)}
3456
3456
  @change="${e=>e.updateCronConfig()}"
3457
3457
  >
3458
- <${t}-option data-test-id="${od.WEEK}">
3459
- ${od.WEEK}
3458
+ <${t}-option data-test-id="${Hl.WEEK}">
3459
+ ${Hl.WEEK}
3460
3460
  </${t}-option>
3461
- <${t}-option data-test-id="${od.WORK_WEEK}">
3462
- ${od.WORK_WEEK}
3461
+ <${t}-option data-test-id="${Hl.WORK_WEEK}">
3462
+ ${Hl.WORK_WEEK}
3463
3463
  </${t}-option>
3464
3464
  </${t}-select>
3465
3465
  </div>
3466
3466
  </template>
3467
3467
  `;var t}}
3468
- `;let $d=class extends(Cd(s.FoundationElement)){constructor(){super(...arguments),this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||od.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(ld.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],$d.prototype,"prefix",void 0),(0,$.Cg)([d.observable],$d.prototype,"config",void 0),(0,$.Cg)([d.observable],$d.prototype,"weekType",void 0),$d=(0,$.Cg)([(0,d.customElement)({name:"daily-recurrence",template:xd,styles:wd})],$d);const Sd=d.css`
3469
- ${bd}
3468
+ `;let nd=class extends(td(s.FoundationElement)){constructor(){super(...arguments),this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||Hl.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(Gl.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],nd.prototype,"prefix",void 0),(0,$.Cg)([d.observable],nd.prototype,"config",void 0),(0,$.Cg)([d.observable],nd.prototype,"weekType",void 0),nd=(0,$.Cg)([(0,d.customElement)({name:"daily-recurrence",template:od,styles:id})],nd);const ad=d.css`
3469
+ ${Zl}
3470
3470
  :host {
3471
3471
  display: flex;
3472
3472
  flex-direction: column;
@@ -3487,43 +3487,43 @@
3487
3487
  .day-date-number-field::part(root) {
3488
3488
  width: 40%;
3489
3489
  }
3490
- `,Ed=e=>d.html`
3490
+ `,sd=e=>d.html`
3491
3491
  <div class="input-container">
3492
3492
  <label class="label">Month</label>
3493
- <${e}-select data-test-id="month-dropdown" :value=${(0,gt.O)(e=>e.selectedMonth)} @change="${e=>e.updateCronConfig()}" >
3494
- ${(0,d.repeat)(()=>rd,d.html`
3493
+ <${e}-select data-test-id="month-dropdown" :value=${(0,F.OH)(e=>e.selectedMonth)} @change="${e=>e.updateCronConfig()}" >
3494
+ ${(0,d.repeat)(()=>Bl,d.html`
3495
3495
  <${e}-option value="${e=>e.value}">
3496
3496
  ${e=>e.label}
3497
3497
  </${e}-option>
3498
3498
  `)}
3499
3499
  </${e}-select>
3500
3500
  </div>
3501
- `,Od=e=>d.html`
3501
+ `,rd=e=>d.html`
3502
3502
  ${(e=>d.html`
3503
3503
  <div class="input-container">
3504
3504
  <label class="label">On</label>
3505
3505
  <${e}-select
3506
3506
  data-test-id="select-day-or-date"
3507
- :value=${(0,gt.O)(e=>e.dayOrDate)}
3507
+ :value=${(0,F.OH)(e=>e.dayOrDate)}
3508
3508
  @change="${e=>e.updateCronConfig()}"
3509
3509
  >
3510
- <${e}-option data-test-id="${nd.DATE}">
3511
- ${nd.DATE}
3510
+ <${e}-option data-test-id="${_l.DATE}">
3511
+ ${_l.DATE}
3512
3512
  </${e}-option>
3513
- <${e}-option data-test-id="${nd.DAY_OF_MONTH}">
3514
- ${nd.DAY_OF_MONTH}
3513
+ <${e}-option data-test-id="${_l.DAY_OF_MONTH}">
3514
+ ${_l.DAY_OF_MONTH}
3515
3515
  </${e}-option>
3516
3516
  </${e}-select>
3517
3517
  </div>
3518
3518
  `)(e)}
3519
- ${(0,Bo.q)(e=>e.dayOrDate===nd.DATE,(e=>d.html`
3519
+ ${(0,F.qM)(e=>e.dayOrDate===_l.DATE,(e=>d.html`
3520
3520
  <div class="row">
3521
- ${(0,d.when)(e=>e.config.type===id.YEARLY,d.html`
3522
- ${Ed(e)}
3521
+ ${(0,d.when)(e=>e.config.type===Ml.YEARLY,d.html`
3522
+ ${sd(e)}
3523
3523
  `)}
3524
3524
  <div class="input-container">
3525
- <label class="label"> ${e=>e.config.type===id.MONTHLY?"Day date":"Day"}</label>
3526
- <${e}-select data-test-id="day-date-dropdown" :value=${(0,gt.O)(e=>e.dayDate)} @change="${e=>e.updateCronConfig()}" >
3525
+ <label class="label"> ${e=>e.config.type===Ml.MONTHLY?"Day date":"Day"}</label>
3526
+ <${e}-select data-test-id="day-date-dropdown" :value=${(0,F.OH)(e=>e.dayDate)} @change="${e=>e.updateCronConfig()}" >
3527
3527
  ${(0,d.repeat)(()=>Array.from({length:31},(e,t)=>t+1),d.html`
3528
3528
  <${e}-option value="${e=>e}">
3529
3529
  ${e=>e}
@@ -3535,17 +3535,17 @@
3535
3535
 
3536
3536
  `)(e),(e=>d.html`
3537
3537
  <div class="day-of-month-row">
3538
- ${(0,d.when)(e=>e.config.type===id.YEARLY,d.html`
3539
- ${Ed(e)}
3538
+ ${(0,d.when)(e=>e.config.type===Ml.YEARLY,d.html`
3539
+ ${sd(e)}
3540
3540
  `)}
3541
3541
  <div class="input-container">
3542
3542
  <label class="label">Day of Month</label>
3543
3543
  <${e}-select
3544
3544
  data-test-id="select-week-number"
3545
- :value=${(0,gt.O)(e=>e.weekNumber)}
3545
+ :value=${(0,F.OH)(e=>e.weekNumber)}
3546
3546
  @change="${e=>e.updateCronConfig()}"
3547
3547
  >
3548
- ${(0,d.repeat)(()=>sd,d.html`
3548
+ ${(0,d.repeat)(()=>Ul,d.html`
3549
3549
  <${e}-option value="${e=>e.value}">
3550
3550
  ${e=>e.label}
3551
3551
  </${e}-option>
@@ -3556,10 +3556,10 @@
3556
3556
  <label class="label">Day</label>
3557
3557
  <${e}-select
3558
3558
  data-test-id="select-week-day"
3559
- :value=${(0,gt.O)(e=>e.day)}
3559
+ :value=${(0,F.OH)(e=>e.day)}
3560
3560
  @change="${e=>e.updateCronConfig()}"
3561
3561
  >
3562
- ${(0,d.repeat)(()=>ad,d.html`
3562
+ ${(0,d.repeat)(()=>Pl,d.html`
3563
3563
  <${e}-option value="${e=>e.value}">
3564
3564
  ${e=>e.label}
3565
3565
  </${e}-option>
@@ -3568,22 +3568,22 @@
3568
3568
  </div>
3569
3569
  </div>
3570
3570
  `)(e))}
3571
- `,Td=d.html`
3572
- ${e=>Od(e.prefix)}
3573
- `;let kd=class extends(Cd(s.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.dayOrDate=nd.DATE,this.weekNumber="1",this.day="1",this.selectedMonth="1"}configChanged(){this.config.type!==id.YEARLY&&this.config.type!==id.MONTHLY||(this.dayOrDate=this.config.dateOrDay.type||nd.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===id.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===nd.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||"1",this.day=this.config.dateOrDay.day||"1"):this.dayDate=this.config.dateOrDay.dayDate||"1"}getDayOrDateConfig(){let e;return e=this.dayOrDate===nd.DATE?{type:nd.DATE,dayDate:this.dayDate||"1"}:{type:nd.DAY_OF_MONTH,day:this.day||"1",weekNumber:this.weekNumber||"1"},e}updateCronConfig(){this.config.type===id.MONTHLY?this.config=Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):this.config=Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||"1"})}),this.$emit(ld.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],kd.prototype,"prefix",void 0),(0,$.Cg)([d.observable],kd.prototype,"config",void 0),(0,$.Cg)([d.observable],kd.prototype,"dayOrDate",void 0),(0,$.Cg)([d.observable],kd.prototype,"dayDate",void 0),(0,$.Cg)([d.observable],kd.prototype,"weekNumber",void 0),(0,$.Cg)([d.observable],kd.prototype,"day",void 0),(0,$.Cg)([d.observable],kd.prototype,"selectedMonth",void 0),kd=(0,$.Cg)([(0,d.customElement)({name:"monthly-yearly-recurrence",template:Td,styles:Sd})],kd);const Id=d.css`
3574
- ${bd}
3571
+ `,ld=d.html`
3572
+ ${e=>rd(e.prefix)}
3573
+ `;let dd=class extends(td(s.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.dayOrDate=_l.DATE,this.weekNumber="1",this.day="1",this.selectedMonth="1"}configChanged(){this.config.type!==Ml.YEARLY&&this.config.type!==Ml.MONTHLY||(this.dayOrDate=this.config.dateOrDay.type||_l.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===Ml.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===_l.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||"1",this.day=this.config.dateOrDay.day||"1"):this.dayDate=this.config.dateOrDay.dayDate||"1"}getDayOrDateConfig(){let e;return e=this.dayOrDate===_l.DATE?{type:_l.DATE,dayDate:this.dayDate||"1"}:{type:_l.DAY_OF_MONTH,day:this.day||"1",weekNumber:this.weekNumber||"1"},e}updateCronConfig(){this.config.type===Ml.MONTHLY?this.config=Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):this.config=Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||"1"})}),this.$emit(Gl.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],dd.prototype,"prefix",void 0),(0,$.Cg)([d.observable],dd.prototype,"config",void 0),(0,$.Cg)([d.observable],dd.prototype,"dayOrDate",void 0),(0,$.Cg)([d.observable],dd.prototype,"dayDate",void 0),(0,$.Cg)([d.observable],dd.prototype,"weekNumber",void 0),(0,$.Cg)([d.observable],dd.prototype,"day",void 0),(0,$.Cg)([d.observable],dd.prototype,"selectedMonth",void 0),dd=(0,$.Cg)([(0,d.customElement)({name:"monthly-yearly-recurrence",template:ld,styles:ad})],dd);const cd=d.css`
3574
+ ${Zl}
3575
3575
  .weekdays-row {
3576
3576
  display: flex;
3577
3577
  gap: calc(var(--design-unit) * 3px);
3578
3578
  flex-wrap: wrap;
3579
3579
  }
3580
- `,Dd=d.html`
3580
+ `,ud=d.html`
3581
3581
  ${e=>{return t=e.prefix,d.html`
3582
3582
  <template>
3583
3583
  <div class="input-container">
3584
3584
  <label class="label">On</label>
3585
3585
  <div class="weekdays-row">
3586
- ${(0,d.repeat)(()=>ad,d.html`
3586
+ ${(0,d.repeat)(()=>Pl,d.html`
3587
3587
  <${t}-checkbox
3588
3588
  part="weekdays-checkbox"
3589
3589
  class="weekdays-checkbox"
@@ -3598,38 +3598,38 @@
3598
3598
  </div>
3599
3599
  </template>
3600
3600
  `;var t}}
3601
- `;let Rd=class extends(Cd(s.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.selectedDays=new Set}configChanged(){var e;this.selectedDays=(null===(e=this.config)||void 0===e?void 0:e.selectedDays)?new Set([...this.config.selectedDays]):new Set}checkboxChangeHandler(e){const{checked:t,value:i}=e.target;t?this.selectedDays.add(i):this.selectedDays.delete(i),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(ld.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],Rd.prototype,"prefix",void 0),(0,$.Cg)([d.observable],Rd.prototype,"config",void 0),Rd=(0,$.Cg)([(0,d.customElement)({name:"weekly-recurrence",template:Dd,styles:Id})],Rd);const Fd=e=>d.html`
3601
+ `;let hd=class extends(td(s.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.selectedDays=new Set}configChanged(){var e;this.selectedDays=(null===(e=this.config)||void 0===e?void 0:e.selectedDays)?new Set([...this.config.selectedDays]):new Set}checkboxChangeHandler(e){const{checked:t,value:i}=e.target;t?this.selectedDays.add(i):this.selectedDays.delete(i),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(Gl.updateCronConfig,this.config)}};(0,$.Cg)([d.observable],hd.prototype,"prefix",void 0),(0,$.Cg)([d.observable],hd.prototype,"config",void 0),hd=(0,$.Cg)([(0,d.customElement)({name:"weekly-recurrence",template:ud,styles:cd})],hd);const pd=e=>d.html`
3602
3602
  <template>
3603
3603
  <div class="container">
3604
3604
  <div class="input-container">
3605
3605
  <label class="label">Recurrence</label>
3606
3606
  <${e}-select
3607
3607
  data-test-id="select-recurrence"
3608
- :value=${(0,gt.O)(e=>e.recurrence)}
3608
+ :value=${(0,F.OH)(e=>e.recurrence)}
3609
3609
  @change="${e=>e.handleRecurrenceChange()}"
3610
3610
  >
3611
- <${e}-option data-test-id="${id.HOURLY}">
3612
- ${id.HOURLY}
3611
+ <${e}-option data-test-id="${Ml.HOURLY}">
3612
+ ${Ml.HOURLY}
3613
3613
  </${e}-option>
3614
- <${e}-option data-test-id="${id.DAILY}">
3615
- ${id.DAILY}
3614
+ <${e}-option data-test-id="${Ml.DAILY}">
3615
+ ${Ml.DAILY}
3616
3616
  </${e}-option>
3617
- <${e}-option data-test-id="${id.WEEKLY}">
3618
- ${id.WEEKLY}
3617
+ <${e}-option data-test-id="${Ml.WEEKLY}">
3618
+ ${Ml.WEEKLY}
3619
3619
  </${e}-option>
3620
- <${e}-option data-test-id="${id.MONTHLY}">
3621
- ${id.MONTHLY}
3620
+ <${e}-option data-test-id="${Ml.MONTHLY}">
3621
+ ${Ml.MONTHLY}
3622
3622
  </${e}-option>
3623
- <${e}-option data-test-id="${id.YEARLY}">
3624
- ${id.YEARLY}
3623
+ <${e}-option data-test-id="${Ml.YEARLY}">
3624
+ ${Ml.YEARLY}
3625
3625
  </${e}-option>
3626
3626
  </${e}-select>
3627
3627
  </div>
3628
3628
  <div class="row">
3629
- ${(0,d.when)(e=>e.recurrence!==id.WEEKLY&&e.recurrence!==id.YEARLY,d.html`
3629
+ ${(0,d.when)(e=>e.recurrence!==Ml.WEEKLY&&e.recurrence!==Ml.YEARLY,d.html`
3630
3630
  <div class="input-container">
3631
3631
  <label class="label"> Frequency in ${e=>e.frequencySuffix}</label>
3632
- <${e}-select class="frequency-select" data-test-id="frequency-dropdown" :value=${(0,gt.O)(e=>e.frequency)} @change="${e=>e.handleChange("frequency")}" >
3632
+ <${e}-select class="frequency-select" data-test-id="frequency-dropdown" :value=${(0,F.OH)(e=>e.frequency)} @change="${e=>e.handleChange("frequency")}" >
3633
3633
  ${(0,d.repeat)(e=>e.frequencyList,d.html`
3634
3634
  <${e}-option value="${e=>e}">
3635
3635
  ${e=>e}
@@ -3641,8 +3641,8 @@
3641
3641
  <div class="input-container">
3642
3642
  <label class="label">Time </label>
3643
3643
  <div class="flex-row">
3644
- ${(0,d.when)(e=>e.recurrence!==id.HOURLY,d.html`
3645
- <${e}-select class="time-select" data-test-id="hours-dropdown" :value=${(0,gt.O)(e=>e.hours)} @change="${e=>e.handleChange("hours")}" >
3644
+ ${(0,d.when)(e=>e.recurrence!==Ml.HOURLY,d.html`
3645
+ <${e}-select class="time-select" data-test-id="hours-dropdown" :value=${(0,F.OH)(e=>e.hours)} @change="${e=>e.handleChange("hours")}" >
3646
3646
  ${(0,d.repeat)(()=>Array.from({length:24},(e,t)=>t),d.html`
3647
3647
  <${e}-option value="${e=>e}">
3648
3648
  ${e=>e}
@@ -3650,7 +3650,7 @@
3650
3650
  `,{recycle:!1})}
3651
3651
  <div slot="end" class="suffix-label">hr</div>
3652
3652
  </${e}-select>`)}
3653
- <${e}-select class="time-select" data-test-id="mins-dropdown" :value=${(0,gt.O)(e=>e.minutes)} @change="${e=>e.handleChange("minutes")}" >
3653
+ <${e}-select class="time-select" data-test-id="mins-dropdown" :value=${(0,F.OH)(e=>e.minutes)} @change="${e=>e.handleChange("minutes")}" >
3654
3654
  ${(0,d.repeat)(()=>Array.from({length:60},(e,t)=>t),d.html`
3655
3655
  <${e}-option value="${e=>e}">
3656
3656
  ${e=>e}
@@ -3658,7 +3658,7 @@
3658
3658
  `)}
3659
3659
  <div slot="end" class="suffix-label">min</div>
3660
3660
  </${e}-select>
3661
- <${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${(0,gt.O)(e=>e.seconds)} @change="${e=>e.handleChange("seconds")}" >
3661
+ <${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${(0,F.OH)(e=>e.seconds)} @change="${e=>e.handleChange("seconds")}" >
3662
3662
  ${(0,d.repeat)(()=>Array.from({length:60},(e,t)=>t),d.html`
3663
3663
  <${e}-option value="${e=>e}">
3664
3664
  ${e=>e}
@@ -3670,13 +3670,13 @@
3670
3670
  </div>
3671
3671
  </div>
3672
3672
 
3673
- ${(0,d.when)(e=>e.recurrence===id.DAILY,(e=>d.html`
3673
+ ${(0,d.when)(e=>e.recurrence===Ml.DAILY,(e=>d.html`
3674
3674
  <daily-recurrence :prefix=${()=>e} :config=${e=>e.cronConfig}></daily-recurrence>
3675
3675
  `)(e))}
3676
- ${(0,d.when)(e=>e.recurrence===id.WEEKLY,(e=>d.html`
3676
+ ${(0,d.when)(e=>e.recurrence===Ml.WEEKLY,(e=>d.html`
3677
3677
  <weekly-recurrence :prefix=${()=>e} :config=${e=>e.cronConfig}></weekly-recurrence>
3678
3678
  `)(e))}
3679
- ${(0,d.when)(e=>e.recurrence===id.MONTHLY||e.recurrence===id.YEARLY,(e=>d.html`
3679
+ ${(0,d.when)(e=>e.recurrence===Ml.MONTHLY||e.recurrence===Ml.YEARLY,(e=>d.html`
3680
3680
  <monthly-yearly-recurrence
3681
3681
  :prefix=${()=>e}
3682
3682
  :config=${e=>e.cronConfig}
@@ -3686,9 +3686,9 @@
3686
3686
  </div>
3687
3687
 
3688
3688
  </template>
3689
- `,Ad=d.html`
3690
- ${e=>Fd(z(e))}
3691
- `;class Nd extends s.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForHourlyRecurrence:pd,buildConfigForDailyRecurrence:hd,buildConfigForWeeklyRecurrence:md,buildConfigForMonthlyRecurrence:fd,buildConfigForYearlyRecurrence:gd},this.recurrence=id.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:id.DAILY,weekType:od.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.hours="0",this.minutes="0",this.seconds="0",this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=ud)=>{const i=e.trim().split(" ");if(6!=i.length)return!1;const[o,n,a,s,r,l]=i;return t(o,0,59)&&t(n,0,59)&&t(a,0,23)&&t(s,1,31,!0)&&t(r,1,12)&&t(l,0,7,!0)})(this.cron))return void td({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},z(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void td({title:"Cron Scheduler",body:e,toast:{type:"critical"}},z(this))}}get frequencySuffix(){switch(this.cronConfig.type){case id.HOURLY:return"Hour(s)";case id.DAILY:return"Day(s)";case id.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case id.HOURLY:return Array.from({length:24},(e,t)=>t);case id.DAILY:return Array.from({length:31},(e,t)=>t+1);case id.MONTHLY:case id.YEARLY:return Array.from({length:12},(e,t)=>t+1);default:return[]}}connectedCallback(){super.connectedCallback(),this.addEventListener(ld.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(ld.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case id.HOURLY:const e=this.getBaseConfigFields(),{hours:t}=e,i=(0,$.Tt)(e,["hours"]);this.cronConfig=Object.assign(Object.assign({type:id.HOURLY},i),{frequency:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case id.DAILY:this.cronConfig=Object.assign(Object.assign({type:id.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:od.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case id.WEEKLY:this.cronConfig=Object.assign(Object.assign({type:id.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set}),this.generateCronExpressionFromConfig(this.cronConfig);break;case id.MONTHLY:this.cronConfig=Object.assign(Object.assign({type:id.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:nd.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case id.YEARLY:this.cronConfig=Object.assign(Object.assign({type:id.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:nd.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:td({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},z(this))}}handleChange(e){this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case id.HOURLY:this.cron=function(e){return`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case id.DAILY:this.cron=function(e,t=dd){const i=e.weekType===od.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===od.WORK_WEEK?"2-6":"?"}`}(e,dd);break;case id.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case id.MONTHLY:this.cron=function(e,t=dd){const{dateOrDay:i,minutes:o,hours:n,seconds:a,frequency:s}=e,r=t(s);return i.type===nd.DATE?`${a} ${o} ${n} ${i.dayDate} *${r} ?`:"-1"===i.weekNumber?`${a} ${o} ${n} ? *${r} ${i.day}L`:`${e.seconds} ${o} ${n} ? *${r} ${i.day}#${i.weekNumber}`}(e,dd);break;case id.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:n}=e;return t.type===nd.DATE?`${o} ${i} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${n} ? ${t.month} ${t.day}L`:`${o} ${i} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:td({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},z(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,n,a,s,r,l]=i;if("?"!==l&&"?"!==s)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(a))return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(a));if("2-6"===l||"?"===l&&("*"===s||s.startsWith("*")))return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForDailyRecurrence(s,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(s)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForMonthlyRecurrence(s,r,l)):Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForYearlyRecurrence(s,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency,this.minutes=this.cronConfig.minutes,this.seconds=this.cronConfig.seconds,this.cronConfig.type!==id.HOURLY&&(this.hours=this.cronConfig.hours)}}(0,$.Cg)([d.observable],Nd.prototype,"recurrence",void 0),(0,$.Cg)([d.observable],Nd.prototype,"cron",void 0),(0,$.Cg)([d.observable],Nd.prototype,"cronConfig",void 0),(0,$.Cg)([d.observable],Nd.prototype,"frequency",void 0),(0,$.Cg)([d.observable],Nd.prototype,"hours",void 0),(0,$.Cg)([d.observable],Nd.prototype,"minutes",void 0),(0,$.Cg)([d.observable],Nd.prototype,"seconds",void 0),(0,$.Cg)([d.volatile],Nd.prototype,"frequencySuffix",null),(0,$.Cg)([d.volatile],Nd.prototype,"frequencyList",null),(0,$.Cg)([d.attr],Nd.prototype,"timezone",void 0);const Ld=void 0,Md={},_d=Nd.compose(Object.assign({baseName:"scheduler-cron-builder",styles:yd,template:Ad,shadowOptions:Ld},Md)),Hd=d.css`
3689
+ `,md=d.html`
3690
+ ${e=>pd(z(e))}
3691
+ `;class gd extends s.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForHourlyRecurrence:ql,buildConfigForDailyRecurrence:Wl,buildConfigForWeeklyRecurrence:Kl,buildConfigForMonthlyRecurrence:Jl,buildConfigForYearlyRecurrence:Ql},this.recurrence=Ml.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:Ml.DAILY,weekType:Hl.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.hours="0",this.minutes="0",this.seconds="0",this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=Yl)=>{const i=e.trim().split(" ");if(6!=i.length)return!1;const[o,n,a,s,r,l]=i;return t(o,0,59)&&t(n,0,59)&&t(a,0,23)&&t(s,1,31,!0)&&t(r,1,12)&&t(l,0,7,!0)})(this.cron))return void(0,zl.u)({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},z(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void(0,zl.u)({title:"Cron Scheduler",body:e,toast:{type:"critical"}},z(this))}}get frequencySuffix(){switch(this.cronConfig.type){case Ml.HOURLY:return"Hour(s)";case Ml.DAILY:return"Day(s)";case Ml.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case Ml.HOURLY:return Array.from({length:24},(e,t)=>t);case Ml.DAILY:return Array.from({length:31},(e,t)=>t+1);case Ml.MONTHLY:case Ml.YEARLY:return Array.from({length:12},(e,t)=>t+1);default:return[]}}connectedCallback(){super.connectedCallback(),this.addEventListener(Gl.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(Gl.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Ml.HOURLY:const e=this.getBaseConfigFields(),{hours:t}=e,i=(0,$.Tt)(e,["hours"]);this.cronConfig=Object.assign(Object.assign({type:Ml.HOURLY},i),{frequency:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ml.DAILY:this.cronConfig=Object.assign(Object.assign({type:Ml.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:Hl.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ml.WEEKLY:this.cronConfig=Object.assign(Object.assign({type:Ml.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ml.MONTHLY:this.cronConfig=Object.assign(Object.assign({type:Ml.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:_l.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Ml.YEARLY:this.cronConfig=Object.assign(Object.assign({type:Ml.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:_l.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:(0,zl.u)({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},z(this))}}handleChange(e){this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Ml.HOURLY:this.cron=function(e){return`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case Ml.DAILY:this.cron=function(e,t=jl){const i=e.weekType===Hl.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===Hl.WORK_WEEK?"2-6":"?"}`}(e,jl);break;case Ml.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case Ml.MONTHLY:this.cron=function(e,t=jl){const{dateOrDay:i,minutes:o,hours:n,seconds:a,frequency:s}=e,r=t(s);return i.type===_l.DATE?`${a} ${o} ${n} ${i.dayDate} *${r} ?`:"-1"===i.weekNumber?`${a} ${o} ${n} ? *${r} ${i.day}L`:`${e.seconds} ${o} ${n} ? *${r} ${i.day}#${i.weekNumber}`}(e,jl);break;case Ml.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:n}=e;return t.type===_l.DATE?`${o} ${i} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${n} ? ${t.month} ${t.day}L`:`${o} ${i} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:(0,zl.u)({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},z(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,n,a,s,r,l]=i;if("?"!==l&&"?"!==s)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(a))return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(a));if("2-6"===l||"?"===l&&("*"===s||s.startsWith("*")))return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForDailyRecurrence(s,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(s)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForMonthlyRecurrence(s,r,l)):Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForYearlyRecurrence(s,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency,this.minutes=this.cronConfig.minutes,this.seconds=this.cronConfig.seconds,this.cronConfig.type!==Ml.HOURLY&&(this.hours=this.cronConfig.hours)}}(0,$.Cg)([d.observable],gd.prototype,"recurrence",void 0),(0,$.Cg)([d.observable],gd.prototype,"cron",void 0),(0,$.Cg)([d.observable],gd.prototype,"cronConfig",void 0),(0,$.Cg)([d.observable],gd.prototype,"frequency",void 0),(0,$.Cg)([d.observable],gd.prototype,"hours",void 0),(0,$.Cg)([d.observable],gd.prototype,"minutes",void 0),(0,$.Cg)([d.observable],gd.prototype,"seconds",void 0),(0,$.Cg)([d.volatile],gd.prototype,"frequencySuffix",null),(0,$.Cg)([d.volatile],gd.prototype,"frequencyList",null),(0,$.Cg)([d.attr],gd.prototype,"timezone",void 0);const vd=void 0,fd={},bd=gd.compose(Object.assign({baseName:"scheduler-cron-builder",styles:ed,template:md,shadowOptions:vd},fd)),yd=d.css`
3692
3692
  /* Host */
3693
3693
  :host {
3694
3694
  display: flex;
@@ -3715,7 +3715,7 @@
3715
3715
  .timezone-combobox::part(listbox) {
3716
3716
  max-height: 20vh;
3717
3717
  }
3718
- `,zd=e=>d.html`
3718
+ `,Cd=e=>d.html`
3719
3719
  <template>
3720
3720
  <div class="container">
3721
3721
  <label class="label">Time Zone</label>
@@ -3723,7 +3723,7 @@
3723
3723
  data-test-id="cron-scheduler-timezone"
3724
3724
  autocomplete="both"
3725
3725
  class="timezone-combobox"
3726
- value="${(0,gt.O)(e=>e.timezone)}"
3726
+ value="${(0,F.OH)(e=>e.timezone)}"
3727
3727
  >
3728
3728
  ${(0,d.repeat)(e=>e.timeZones,d.html`
3729
3729
  <${e}-option value="${e=>e}">${e=>e}</${e}-option>
@@ -3731,9 +3731,9 @@
3731
3731
  </${e}-combobox>
3732
3732
  </div>
3733
3733
  </template>
3734
- `,Pd=d.html`
3735
- ${e=>zd(z(e))}
3736
- `;class Ud extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return(0,$.sH)(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){td({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),ga.v.error(e)}})}}(0,$.Cg)([d.observable],Ud.prototype,"timezone",void 0),(0,$.Cg)([D.dm],Ud.prototype,"connect",void 0),(0,$.Cg)([d.observable],Ud.prototype,"timeZones",void 0);const Bd=void 0,Gd={},jd=Ud.compose(Object.assign({baseName:"scheduler-timezone",styles:Hd,template:Pd,shadowOptions:Bd},Gd)),Vd=d.css`
3734
+ `,wd=d.html`
3735
+ ${e=>Cd(z(e))}
3736
+ `;class xd extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return(0,$.sH)(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){(0,zl.u)({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),Zn.v.error(e)}})}}(0,$.Cg)([d.observable],xd.prototype,"timezone",void 0),(0,$.Cg)([D.dm],xd.prototype,"connect",void 0),(0,$.Cg)([d.observable],xd.prototype,"timeZones",void 0);const $d=void 0,Sd={},Ed=xd.compose(Object.assign({baseName:"scheduler-timezone",styles:yd,template:wd,shadowOptions:$d},Sd)),Od=d.css`
3737
3737
  .search-bar-combobox {
3738
3738
  width: 100%;
3739
3739
  min-width: auto;
@@ -3826,9 +3826,9 @@
3826
3826
  .close-icon {
3827
3827
  color: var(--accent-fill-rest);
3828
3828
  }
3829
- `,Yd=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',Wd=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',qd=e=>d.html`
3829
+ `,Td=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',kd=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',Id=e=>d.html`
3830
3830
 
3831
- <label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,ee.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
3831
+ <label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,V.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
3832
3832
  >
3833
3833
  <slot
3834
3834
  ${(0,d.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}
@@ -3905,10 +3905,10 @@
3905
3905
  <${e}-tooltip class="tooltip" anchor="search-clear-button">
3906
3906
  Clear Search Terms
3907
3907
  </${e}-tooltip>
3908
- `,Kd=d.html`
3909
- ${e=>qd(z(e))}
3910
- `,Xd=10,Qd=3,Jd=1,Zd=(e,t)=>(new j).withExpression((new K).withField(e).withValue(t).withSerialiser(q).build()).build();class ec extends s.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=Qd,this.position=ct.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,n;const a=t.value,s=this.searchTerm.trim();e.push({field:a,term:s,label:(null===(i=this.options.find(e=>e.field===a))||void 0===i?void 0:i.label(s))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===a))||void 0===o?void 0:o.createCriteria,resourceType:null===(n=this.options.find(e=>e.field===a))||void 0===n?void 0:n.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),d.DOM.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},Xd)})}pasteHandler(e){var t;this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),a=this.addOrReplaceSelectedText(this.combobox.value,n,o);(null==a?void 0:a.length)>=this.minlength&&(this.combobox.value=a,this.searchTerm=a,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,$.sH)(this,void 0,void 0,function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(i=>i.field===t.field&&i.term.trim()===e.trim()))}}(0,$.Cg)([d.observable],ec.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],ec.prototype,"options",void 0),(0,$.Cg)([d.observable],ec.prototype,"searchTerm",void 0),(0,$.Cg)([d.attr],ec.prototype,"appearance",void 0),(0,$.Cg)([d.attr],ec.prototype,"minlength",void 0),(0,$.Cg)([d.attr],ec.prototype,"position",void 0),(0,$.Cg)([d.attr],ec.prototype,"placeholder",void 0),(0,$.Cg)([d.attr],ec.prototype,"disabled",void 0),(0,$.Cg)([d.observable],ec.prototype,"loading",void 0),(0,$.Cg)([d.observable],ec.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],ec.prototype,"filteredOptions",void 0);const tc=void 0,ic={},oc=ec.compose(Object.assign({baseName:"search-bar",template:Kd,styles:Vd,shadowOptions:tc},ic)),nc=(e,t)=>d.css`
3911
- ${zt(e,t)}
3908
+ `,Dd=d.html`
3909
+ ${e=>Id(z(e))}
3910
+ `,Rd=10,Fd=3,Nd=1,Ad=(e,t)=>(new P.b).withExpression((new P.KN).withField(e).withValue(t).withSerialiser(P.ns.containsIgnoreCase).build()).build();class Ld extends s.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=Fd,this.position=tt.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,n;const a=t.value,s=this.searchTerm.trim();e.push({field:a,term:s,label:(null===(i=this.options.find(e=>e.field===a))||void 0===i?void 0:i.label(s))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===a))||void 0===o?void 0:o.createCriteria,resourceType:null===(n=this.options.find(e=>e.field===a))||void 0===n?void 0:n.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),d.DOM.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},Rd)})}pasteHandler(e){var t;this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),a=this.addOrReplaceSelectedText(this.combobox.value,n,o);(null==a?void 0:a.length)>=this.minlength&&(this.combobox.value=a,this.searchTerm=a,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,$.sH)(this,void 0,void 0,function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(i=>i.field===t.field&&i.term.trim()===e.trim()))}}(0,$.Cg)([d.observable],Ld.prototype,"defaultSlottedNodes",void 0),(0,$.Cg)([d.observable],Ld.prototype,"options",void 0),(0,$.Cg)([d.observable],Ld.prototype,"searchTerm",void 0),(0,$.Cg)([d.attr],Ld.prototype,"appearance",void 0),(0,$.Cg)([d.attr],Ld.prototype,"minlength",void 0),(0,$.Cg)([d.attr],Ld.prototype,"position",void 0),(0,$.Cg)([d.attr],Ld.prototype,"placeholder",void 0),(0,$.Cg)([d.attr],Ld.prototype,"disabled",void 0),(0,$.Cg)([d.observable],Ld.prototype,"loading",void 0),(0,$.Cg)([d.observable],Ld.prototype,"selectedOptions",void 0),(0,$.Cg)([d.observable],Ld.prototype,"filteredOptions",void 0);const Md=void 0,Hd={},_d=Ld.compose(Object.assign({baseName:"search-bar",template:Dd,styles:Od,shadowOptions:Md},Hd)),zd=(e,t)=>d.css`
3911
+ ${It(e,t)}
3912
3912
  .control {
3913
3913
  width: auto;
3914
3914
  padding-left: calc(${l.designUnit} * 1px);
@@ -3929,7 +3929,7 @@
3929
3929
  min-width: 150px;
3930
3930
  max-width: 169px;
3931
3931
  }
3932
- `,ac=(e,t)=>d.html`
3932
+ `,Pd=(e,t)=>d.html`
3933
3933
  <template
3934
3934
  aria-disabled="${e=>e.ariaDisabled}"
3935
3935
  autocomplete="${e=>e.autocomplete}"
@@ -3981,7 +3981,7 @@
3981
3981
  ></slot>
3982
3982
  </div>
3983
3983
  </template>
3984
- `;class sc extends l.Combobox{constructor(){super(...arguments),this.minlength=Jd,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit("change")}this.control.focus()}}keyupHandler(e){switch(e.key){case"Backspace":case"Delete":this.previousLength<0?this.$emit("inputdeleted"):this.previousLength=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit("change")}}super.keyupHandler(e)}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case"Enter":return-1!==this.selectedIndex&&super.keydownHandler(e);case"Tab":if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}(0,$.Cg)([d.attr],sc.prototype,"minlength",void 0);const rc={delegatesFocus:!0,mode:"open"},lc={},dc=sc.compose(Object.assign({baseName:"search-bar-combobox",template:ac,styles:nc,shadowOptions:rc},lc)),cc=d.css`
3984
+ `;class Ud extends l.Combobox{constructor(){super(...arguments),this.minlength=Nd,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit("change")}this.control.focus()}}keyupHandler(e){switch(e.key){case"Backspace":case"Delete":this.previousLength<0?this.$emit("inputdeleted"):this.previousLength=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit("change")}}super.keyupHandler(e)}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case"Enter":return-1!==this.selectedIndex&&super.keydownHandler(e);case"Tab":if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}(0,$.Cg)([d.attr],Ud.prototype,"minlength",void 0);const Bd={delegatesFocus:!0,mode:"open"},Gd={},jd=Ud.compose(Object.assign({baseName:"search-bar-combobox",template:Pd,styles:zd,shadowOptions:Bd},Gd)),Vd=d.css`
3985
3985
  :host {
3986
3986
  display: block;
3987
3987
  width: 100%;
@@ -4174,7 +4174,7 @@
4174
4174
  .section-link.state-none {
4175
4175
  color: var(--neutral-foreground-rest);
4176
4176
  }
4177
- `,uc=d.html`
4177
+ `,Yd=d.html`
4178
4178
  ${e=>{return t=z(e),d.html`
4179
4179
  <template>
4180
4180
  <div
@@ -4219,7 +4219,7 @@
4219
4219
  </div>
4220
4220
  </template>
4221
4221
  `;var t}}
4222
- `,hc=(0,N.createLogger)("SectionNavigator"),pc="section-navigator",mc={setState:`${pc}-set-state`,setStates:`${pc}-set-states`,clearState:`${pc}-clear-state`,clearAllStates:`${pc}-clear-all-states`},vc={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},gc={active:{name:"circle-dot",variant:"solid"},inactive:{name:"times-circle",variant:"regular"},pending:{name:"clock",variant:"solid"},disabled:{name:"ban",variant:"solid"},error:{name:"times",variant:"solid"},completed:{name:"check",variant:"solid"}};class fc extends s.FoundationElement{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=vc,this.stateIcons=gc,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=""}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections))return hc.warn("Sections must be an array"),void(this.sectionItems=[]);this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(this.sectionContent){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,n=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${n}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){hc.error("Error updating spacer:",e)}}else hc.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void hc.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){hc.error("Error scrolling to section:",e)}else hc.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},fc.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,fc.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){hc.error("Error setting up scroll detection:",e)}else hc.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const n=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(n){const a=n.offsetTop+n.clientHeight/2,s=Math.abs(a-e);s<i&&(i=s,t=o.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener("scroll",this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){hc.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){hc.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){hc.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){hc.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let n=null==o?void 0:o.getAttribute("data-section");if(!n){const t=e.target.closest("[slot]");n=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}n||(n=this.activeSection),e.stopPropagation(),e.preventDefault();const a=Object.assign(Object.assign({},i),{sectionName:n}),s=new CustomEvent(t,{detail:a,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}catch(e){hc.error("Error handling generic state event:",e)}},this.addEventListener(mc.setState,this.handleSetStateRef),this.addEventListener(mc.setStates,this.handleSetStatesRef),this.addEventListener(mc.clearState,this.handleClearStateRef),this.addEventListener(mc.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(mc.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(mc.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(mc.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(mc.clearAllStates,this.handleGenericStateEventRef,!0)):hc.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void hc.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void hc.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void hc.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void hc.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void hc.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void hc.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],n=o.indexOf(t);if(n>-1){const t=o.filter((e,t)=>t!==n);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void hc.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):hc.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(hc.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return hc.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||gc[e]:(hc.warn("State name is required"),gc.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(mc.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(mc.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(mc.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(mc.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(mc.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(mc.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(mc.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(mc.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}fc.SCROLL_END_TIMEOUT=150,fc.SCROLL_DEBOUNCE_TIMEOUT=100,(0,$.Cg)([d.observable],fc.prototype,"sections",void 0),(0,$.Cg)([(0,d.attr)({attribute:"scroll-behavior"})],fc.prototype,"scrollBehavior",void 0),(0,$.Cg)([(0,d.attr)({attribute:"state-tooltips"})],fc.prototype,"stateTooltips",void 0),(0,$.Cg)([(0,d.attr)({attribute:"state-icons"})],fc.prototype,"stateIcons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"disable-auto-scroll-detection",mode:"boolean"})],fc.prototype,"disableAutoScrollDetection",void 0),(0,$.Cg)([d.observable],fc.prototype,"sectionItems",void 0),(0,$.Cg)([d.observable],fc.prototype,"activeSection",void 0);const bc={mode:"open"},yc={},Cc=fc.compose(Object.assign({baseName:"foundation-section-navigator",template:uc,styles:cc,shadowOptions:bc},yc)),wc=(e,t)=>(0,s.radioGroupTemplate)(e,t),xc=(e,t)=>d.css`
4222
+ `,Wd=(0,A.createLogger)("SectionNavigator"),qd="section-navigator",Kd={setState:`${qd}-set-state`,setStates:`${qd}-set-states`,clearState:`${qd}-clear-state`,clearAllStates:`${qd}-clear-all-states`},Xd={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},Qd={active:{name:"circle-dot",variant:"solid"},inactive:{name:"times-circle",variant:"regular"},pending:{name:"clock",variant:"solid"},disabled:{name:"ban",variant:"solid"},error:{name:"times",variant:"solid"},completed:{name:"check",variant:"solid"}};class Jd extends s.FoundationElement{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=Xd,this.stateIcons=Qd,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=""}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections))return Wd.warn("Sections must be an array"),void(this.sectionItems=[]);this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(this.sectionContent){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,n=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${n}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){Wd.error("Error updating spacer:",e)}}else Wd.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void Wd.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){Wd.error("Error scrolling to section:",e)}else Wd.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},Jd.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,Jd.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){Wd.error("Error setting up scroll detection:",e)}else Wd.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const n=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(n){const a=n.offsetTop+n.clientHeight/2,s=Math.abs(a-e);s<i&&(i=s,t=o.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener("scroll",this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){Wd.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){Wd.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){Wd.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){Wd.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let n=null==o?void 0:o.getAttribute("data-section");if(!n){const t=e.target.closest("[slot]");n=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}n||(n=this.activeSection),e.stopPropagation(),e.preventDefault();const a=Object.assign(Object.assign({},i),{sectionName:n}),s=new CustomEvent(t,{detail:a,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}catch(e){Wd.error("Error handling generic state event:",e)}},this.addEventListener(Kd.setState,this.handleSetStateRef),this.addEventListener(Kd.setStates,this.handleSetStatesRef),this.addEventListener(Kd.clearState,this.handleClearStateRef),this.addEventListener(Kd.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(Kd.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Kd.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Kd.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Kd.clearAllStates,this.handleGenericStateEventRef,!0)):Wd.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void Wd.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Wd.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void Wd.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Wd.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void Wd.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Wd.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],n=o.indexOf(t);if(n>-1){const t=o.filter((e,t)=>t!==n);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void Wd.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):Wd.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(Wd.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return Wd.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||Qd[e]:(Wd.warn("State name is required"),Qd.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(Kd.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(Kd.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(Kd.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(Kd.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(Kd.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Kd.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Kd.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Kd.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}Jd.SCROLL_END_TIMEOUT=150,Jd.SCROLL_DEBOUNCE_TIMEOUT=100,(0,$.Cg)([d.observable],Jd.prototype,"sections",void 0),(0,$.Cg)([(0,d.attr)({attribute:"scroll-behavior"})],Jd.prototype,"scrollBehavior",void 0),(0,$.Cg)([(0,d.attr)({attribute:"state-tooltips"})],Jd.prototype,"stateTooltips",void 0),(0,$.Cg)([(0,d.attr)({attribute:"state-icons"})],Jd.prototype,"stateIcons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"disable-auto-scroll-detection",mode:"boolean"})],Jd.prototype,"disableAutoScrollDetection",void 0),(0,$.Cg)([d.observable],Jd.prototype,"sectionItems",void 0),(0,$.Cg)([d.observable],Jd.prototype,"activeSection",void 0);const Zd={mode:"open"},ec={},tc=Jd.compose(Object.assign({baseName:"foundation-section-navigator",template:Yd,styles:Vd,shadowOptions:Zd},ec)),ic=(e,t)=>(0,s.radioGroupTemplate)(e,t),oc=(e,t)=>d.css`
4223
4223
  ${(0,l.radioGroupStyles)(e,t)}
4224
4224
  ::slotted(foundation-segmented-item:first-of-type) {
4225
4225
  border-radius: calc(var(--control-corner-radius) * 1px) 0 0
@@ -4232,7 +4232,7 @@
4232
4232
  calc(var(--control-corner-radius) * 1px) 0;
4233
4233
  border-left-width: 0;
4234
4234
  }
4235
- `;class $c extends s.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}const Sc=void 0,Ec={},Oc=$c.compose(Object.assign({baseName:"segmented-control",template:wc,styles:xc,shadowOptions:Sc},Ec)),Tc=(e,t)=>d.html`
4235
+ `;class nc extends s.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}const ac=void 0,sc={},rc=nc.compose(Object.assign({baseName:"segmented-control",template:ic,styles:oc,shadowOptions:ac},sc)),lc=(e,t)=>d.html`
4236
4236
  <template
4237
4237
  role="radio"
4238
4238
  aria-checked="${e=>e.checked}"
@@ -4246,7 +4246,7 @@
4246
4246
  <slot></slot>
4247
4247
  </span>
4248
4248
  </template>
4249
- `,kc=(e,t)=>d.css`
4249
+ `,dc=(e,t)=>d.css`
4250
4250
  ${(0,l.radioStyles)(e,t)}
4251
4251
  :host {
4252
4252
  padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
@@ -4257,7 +4257,7 @@
4257
4257
  :host([aria-checked='true']) {
4258
4258
  background: var(--accent-foreground-rest);
4259
4259
  }
4260
- `;class Ic extends l.Radio{}const Dc=void 0,Rc={},Fc=Ic.compose(Object.assign({baseName:"segmented-item",template:Tc,styles:kc,shadowOptions:Dc},Rc)),Ac=(e,t)=>(0,s.selectTemplate)(e,t),Nc=(e,t)=>d.css`
4260
+ `;class cc extends l.Radio{}const uc=void 0,hc={},pc=cc.compose(Object.assign({baseName:"segmented-item",template:lc,styles:dc,shadowOptions:uc},hc)),mc=(e,t)=>(0,s.selectTemplate)(e,t),gc=(e,t)=>d.css`
4261
4261
  ${(0,l.selectStyles)(e,t)}
4262
4262
 
4263
4263
  :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible),
@@ -4265,13 +4265,13 @@
4265
4265
  box-shadow: none;
4266
4266
  outline: none;
4267
4267
  }
4268
- `;class Lc extends l.Select{focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void d.DOM.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}keydownHandler(e){switch(e.key){case"ArrowDown":case"ArrowUp":if(this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}else this.open=!0}return super.keydownHandler(e)}}const Mc=void 0,_c={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 '},Hc=Lc.compose(Object.assign({baseName:"select",template:Ac,styles:Nc,shadowOptions:Mc},_c)),zc=(e,t)=>(0,s.skeletonTemplate)(e,t),Pc=(e,t)=>d.css`
4268
+ `;class vc extends l.Select{focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void d.DOM.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}keydownHandler(e){switch(e.key){case"ArrowDown":case"ArrowUp":if(this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}else this.open=!0}return super.keydownHandler(e)}}const fc=void 0,bc={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 '},yc=vc.compose(Object.assign({baseName:"select",template:mc,styles:gc,shadowOptions:fc},bc)),Cc=(e,t)=>(0,s.skeletonTemplate)(e,t),wc=(e,t)=>d.css`
4269
4269
  ${(0,l.skeletonStyles)(e,t)}
4270
- `;class Uc extends l.Skeleton{}const Bc=void 0,Gc={},jc=Uc.compose(Object.assign({baseName:"skeleton",template:zc,styles:Pc,shadowOptions:Bc},Gc));var Vc=i(17733),Yc=i(54120);const Wc=(e,t)=>d.html`
4270
+ `;class xc extends l.Skeleton{}const $c=void 0,Sc={},Ec=xc.compose(Object.assign({baseName:"skeleton",template:Cc,styles:wc,shadowOptions:$c},Sc));var Oc=i(17733),Tc=i(54120);const kc=(e,t)=>d.html`
4271
4271
  <template
4272
4272
  role="slider"
4273
4273
  class="${e=>e.readOnly?"readonly":""}
4274
- ${e=>e.orientation||Vc.t.horizontal}"
4274
+ ${e=>e.orientation||Oc.t.horizontal}"
4275
4275
  tabindex="${e=>e.disabled?null:0}"
4276
4276
  aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
4277
4277
  aria-valuenow="${e=>e.value}"
@@ -4286,7 +4286,7 @@
4286
4286
  <div ${(0,d.ref)("track")} part="track-container" class="track">
4287
4287
  <div
4288
4288
  class="track-progress"
4289
- style="${e=>{const t=1-(0,Yc.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"
4289
+ style="${e=>{const t=1-(0,Tc.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"
4290
4290
  ></div>
4291
4291
  </div>
4292
4292
  <slot></slot>
@@ -4300,15 +4300,15 @@
4300
4300
  </div>
4301
4301
  </div>
4302
4302
  </template>
4303
- `,qc=(e,t)=>d.css`
4303
+ `,Ic=(e,t)=>d.css`
4304
4304
  ${(0,l.sliderStyles)(e,t)}
4305
4305
  .track-progress {
4306
4306
  background-color: var(--accent-fill-rest);
4307
4307
  border-radius: calc(var(--control-corner-radius) * 1px);
4308
4308
  }
4309
- `;class Kc extends l.Slider{}const Xc=void 0,Qc={thumb:'\n <div class="thumb-cursor"></div>\n '},Jc=Kc.compose(Object.assign({baseName:"slider",template:Wc,styles:qc,shadowOptions:Xc},Qc)),Zc=(e,t)=>(0,s.sliderLabelTemplate)(e,t),eu=(e,t)=>d.css`
4309
+ `;class Dc extends l.Slider{}const Rc=void 0,Fc={thumb:'\n <div class="thumb-cursor"></div>\n '},Nc=Dc.compose(Object.assign({baseName:"slider",template:kc,styles:Ic,shadowOptions:Rc},Fc)),Ac=(e,t)=>(0,s.sliderLabelTemplate)(e,t),Lc=(e,t)=>d.css`
4310
4310
  ${(0,l.sliderLabelStyles)(e,t)}
4311
- `;class tu extends l.SliderLabel{}const iu=void 0,ou={},nu=tu.compose(Object.assign({baseName:"slider-label",template:Zc,styles:eu,shadowOptions:iu},ou)),au="default",su={DEFAULT:au,ERROR:"error",SUCCESS:"success"},ru=1e4,lu={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},du=d.css`
4311
+ `;class Mc extends l.SliderLabel{}const Hc=void 0,_c={},zc=Mc.compose(Object.assign({baseName:"slider-label",template:Ac,styles:Lc,shadowOptions:Hc},_c)),Pc="default",Uc={DEFAULT:Pc,ERROR:"error",SUCCESS:"success"},Bc=1e4,Gc={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},jc=d.css`
4312
4312
  @keyframes append-from-left-animate {
4313
4313
  from {
4314
4314
  transform: translateX(100%);
@@ -4429,7 +4429,7 @@
4429
4429
  flex: 1;
4430
4430
  overflow: hidden;
4431
4431
  }
4432
- `,cu=e=>d.html`
4432
+ `,Vc=e=>d.html`
4433
4433
  <div
4434
4434
  role="alert"
4435
4435
  aria-live="polite"
@@ -4458,10 +4458,10 @@
4458
4458
  </div>
4459
4459
  `)}
4460
4460
  </div>
4461
- `,uu=d.html`
4462
- ${e=>cu(z(e))}
4463
- `,hu={mode:"open",delegatesFocus:!0};class pu extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=ru,this.autoClose=!0,this.type=au,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(lu.DISMISS,this.dismissEventListener)}errorChanged(e,t){var i,o,n;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:au}notificationChanged(e,t){var i,o,n,a,s,r,l,d,c;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:au,this.autoClose=null===(r=null===(s=null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:ru}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(lu.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(lu.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,$.Cg)([d.observable],pu.prototype,"error",void 0),(0,$.Cg)([d.observable],pu.prototype,"notification",void 0),(0,$.Cg)([d.observable],pu.prototype,"deleteAnimation",void 0),(0,$.Cg)([(0,d.attr)({attribute:"identifier"})],pu.prototype,"identifier",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout"})],pu.prototype,"closeTimeout",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close",mode:"boolean"})],pu.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"type"})],pu.prototype,"type",void 0);const mu=pu.compose({baseName:"snackbar",styles:du,template:uu,shadowOptions:hu}),vu=(e,t)=>d.css`
4464
- ${No()}
4461
+ `,Yc=d.html`
4462
+ ${e=>Vc(z(e))}
4463
+ `,Wc={mode:"open",delegatesFocus:!0};class qc extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=Bc,this.autoClose=!0,this.type=Pc,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(Gc.DISMISS,this.dismissEventListener)}errorChanged(e,t){var i,o,n;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Pc}notificationChanged(e,t){var i,o,n,a,s,r,l,d,c;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Pc,this.autoClose=null===(r=null===(s=null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:Bc}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(Gc.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Gc.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,$.Cg)([d.observable],qc.prototype,"error",void 0),(0,$.Cg)([d.observable],qc.prototype,"notification",void 0),(0,$.Cg)([d.observable],qc.prototype,"deleteAnimation",void 0),(0,$.Cg)([(0,d.attr)({attribute:"identifier"})],qc.prototype,"identifier",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout"})],qc.prototype,"closeTimeout",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close",mode:"boolean"})],qc.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"type"})],qc.prototype,"type",void 0);const Kc=qc.compose({baseName:"snackbar",styles:jc,template:Yc,shadowOptions:Wc}),Xc=(e,t)=>d.css`
4464
+ ${wo()}
4465
4465
 
4466
4466
  .fa-stack {
4467
4467
  display: inline-block;
@@ -4486,14 +4486,14 @@
4486
4486
  .fa-stack-1x {
4487
4487
  z-index: 1;
4488
4488
  }
4489
- `,gu=d.html`
4489
+ `,Qc=d.html`
4490
4490
  <span
4491
4491
  class=${e=>`fa-stack fa-${e.size}`}
4492
4492
  style=${e=>`vertical-align: ${e["vertical-align"]};`}
4493
4493
  >
4494
4494
  <slot></slot>
4495
4495
  </span>
4496
- `;class fu extends s.FoundationElement{constructor(){super(...arguments),this.size=Ys,this["vertical-align"]="baseline"}}(0,$.Cg)([d.attr],fu.prototype,"size",void 0),(0,$.Cg)([d.attr],fu.prototype,"vertical-align",void 0);const bu=fu.compose({baseName:"stacking-icons",template:gu,styles:vu}),yu=d.css`
4496
+ `;class Jc extends s.FoundationElement{constructor(){super(...arguments),this.size=ks,this["vertical-align"]="baseline"}}(0,$.Cg)([d.attr],Jc.prototype,"size",void 0),(0,$.Cg)([d.attr],Jc.prototype,"vertical-align",void 0);const Zc=Jc.compose({baseName:"stacking-icons",template:Qc,styles:Xc}),eu=d.css`
4497
4497
  .status-pill {
4498
4498
  font-size: 12px;
4499
4499
  display: inline-flex;
@@ -4527,7 +4527,7 @@
4527
4527
  .status-pill-image {
4528
4528
  height: 14px;
4529
4529
  }
4530
- `,Cu=d.html`
4530
+ `,tu=d.html`
4531
4531
  ${e=>{return t=z(e),d.html`
4532
4532
  <div
4533
4533
  data-test-id="status-pill"
@@ -4556,10 +4556,10 @@
4556
4556
  `)}
4557
4557
  </div>
4558
4558
  `;var t}}
4559
- `,wu=(e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const n=Math.floor(i/3600);i%=3600;const a=Math.floor(i/60),s=Math.floor(i%60),r=[];switch(o&&r.push(`${o}d`),t){case"minute":n&&r.push(`${n}h`),a&&r.push(`${a}m`),!a&&s&&r.push("< 1m");break;case"hour":n&&r.push(`${n}h`),n||!a&&!s||r.push("< 1h");break;default:n&&r.push(`${n}h`),a&&r.push(`${a}m`),s&&r.push(`${s}s`)}return r.length?r.join(" "):"0s"};class xu extends s.FoundationElement{constructor(){super(...arguments),this.iconSize="sm",this.dateCountdownCompletedMessage="Expired",this.dateCountdownUnit="second"}dateCountdownChanged(e,t){if(e!==t){if(!t)return void this.clearCountdownTimer();this.setUpDateCountdown(t)}}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))L.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t);i<=0?(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=wu(i,this.dateCountdownUnit)}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null,this.countdown=null)}}(0,$.Cg)([(0,d.attr)({attribute:"background-color"})],xu.prototype,"backgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-name"})],xu.prototype,"iconName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-src"})],xu.prototype,"iconSrc",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-initial"})],xu.prototype,"iconInitial",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-initial-background-color"})],xu.prototype,"iconInitialBackgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-size"})],xu.prototype,"iconSize",void 0),(0,$.Cg)([(0,d.attr)({attribute:"text-color"})],xu.prototype,"textColor",void 0),(0,$.Cg)([d.attr],xu.prototype,"text",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown"})],xu.prototype,"dateCountdown",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown-completed-message"})],xu.prototype,"dateCountdownCompletedMessage",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown-unit"})],xu.prototype,"dateCountdownUnit",void 0),(0,$.Cg)([d.observable],xu.prototype,"countdown",void 0);const $u=xu.compose({baseName:"status-pill",styles:yu,template:Cu}),Su=e=>d.html`
4560
- ${(0,Bo.q)(e=>e.orientation===s.TabsOrientation.vertical,d.html`
4559
+ `,iu=(e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const n=Math.floor(i/3600);i%=3600;const a=Math.floor(i/60),s=Math.floor(i%60),r=[];switch(o&&r.push(`${o}d`),t){case"minute":n&&r.push(`${n}h`),a&&r.push(`${a}m`),!a&&s&&r.push("< 1m");break;case"hour":n&&r.push(`${n}h`),n||!a&&!s||r.push("< 1h");break;default:n&&r.push(`${n}h`),a&&r.push(`${a}m`),s&&r.push(`${s}s`)}return r.length?r.join(" "):"0s"};class ou extends s.FoundationElement{constructor(){super(...arguments),this.iconSize="sm",this.dateCountdownCompletedMessage="Expired",this.dateCountdownUnit="second"}dateCountdownChanged(e,t){if(e!==t){if(!t)return void this.clearCountdownTimer();this.setUpDateCountdown(t)}}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))L.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t);i<=0?(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=iu(i,this.dateCountdownUnit)}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null,this.countdown=null)}}(0,$.Cg)([(0,d.attr)({attribute:"background-color"})],ou.prototype,"backgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-name"})],ou.prototype,"iconName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-src"})],ou.prototype,"iconSrc",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-initial"})],ou.prototype,"iconInitial",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-initial-background-color"})],ou.prototype,"iconInitialBackgroundColor",void 0),(0,$.Cg)([(0,d.attr)({attribute:"icon-size"})],ou.prototype,"iconSize",void 0),(0,$.Cg)([(0,d.attr)({attribute:"text-color"})],ou.prototype,"textColor",void 0),(0,$.Cg)([d.attr],ou.prototype,"text",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown"})],ou.prototype,"dateCountdown",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown-completed-message"})],ou.prototype,"dateCountdownCompletedMessage",void 0),(0,$.Cg)([(0,d.attr)({attribute:"date-countdown-unit"})],ou.prototype,"dateCountdownUnit",void 0),(0,$.Cg)([d.observable],ou.prototype,"countdown",void 0);const nu=ou.compose({baseName:"status-pill",styles:eu,template:tu}),au=e=>d.html`
4560
+ ${(0,F.qM)(e=>e.orientation===s.TabsOrientation.vertical,d.html`
4561
4561
  <${e}-tree-item ${(0,d.ref)("treeItem")}
4562
- class=${e=>(0,ee.x)("tree-item",["cursor-pointer",e.showCursorPointer])}
4562
+ class=${e=>(0,V.x)("tree-item",["cursor-pointer",e.showCursorPointer])}
4563
4563
  @click="${(e,t)=>e.$emit("tab-clicked",e.tabPosition-1)}">
4564
4564
  ${(0,d.when)(e=>e.completed,d.html`
4565
4565
  <${e}-icon
@@ -4580,9 +4580,9 @@
4580
4580
  <slot></slot>
4581
4581
  </${e}-tree-item>
4582
4582
  `,d.html`
4583
- <div class=${e=>(0,ee.x)("step-container",["selected",e.selected])}>
4583
+ <div class=${e=>(0,V.x)("step-container",["selected",e.selected])}>
4584
4584
  <div
4585
- class=${e=>(0,ee.x)("step-number-container",["cursor-pointer",e.showCursorPointer])}
4585
+ class=${e=>(0,V.x)("step-number-container",["cursor-pointer",e.showCursorPointer])}
4586
4586
  @click="${e=>e.$emit("tab-clicked",e.tabPosition-1)}"
4587
4587
  >
4588
4588
  ${(0,d.when)(e=>!e.hideStepNumber,d.html`
@@ -4600,9 +4600,9 @@
4600
4600
  `)}
4601
4601
  </div>
4602
4602
  `)}
4603
- `,Eu=d.html`
4604
- ${e=>Su(z(e))}
4605
- `,Ou=(e,t)=>d.css`
4603
+ `,su=d.html`
4604
+ ${e=>au(z(e))}
4605
+ `,ru=(e,t)=>d.css`
4606
4606
  .tree-item {
4607
4607
  cursor: default;
4608
4608
  }
@@ -4712,11 +4712,11 @@
4712
4712
  width: calc(100% - 28px);
4713
4713
  background-color: var(--accent-fill-rest); /* Choose a color */
4714
4714
  }
4715
- `;class Tu extends s.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=s.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}}(0,$.Cg)([d.attr],Tu.prototype,"slot",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"selected",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"completed",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"error",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"isLast",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"hideStepNumber",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Tu.prototype,"showCursorPointer",void 0),(0,$.Cg)([(0,d.attr)({attribute:"tab-position"})],Tu.prototype,"tabPosition",void 0),(0,$.Cg)([d.attr],Tu.prototype,"orientation",void 0);const ku=void 0,Iu={},Du=Tu.compose(Object.assign({baseName:"stepper-tab",template:Eu,styles:Ou,shadowOptions:ku},Iu)),Ru=()=>d.html`
4715
+ `;class lu extends s.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=s.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}}(0,$.Cg)([d.attr],lu.prototype,"slot",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"selected",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"completed",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"error",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"isLast",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"hideStepNumber",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],lu.prototype,"showCursorPointer",void 0),(0,$.Cg)([(0,d.attr)({attribute:"tab-position"})],lu.prototype,"tabPosition",void 0),(0,$.Cg)([d.attr],lu.prototype,"orientation",void 0);const du=void 0,cu={},uu=lu.compose(Object.assign({baseName:"stepper-tab",template:su,styles:ru,shadowOptions:du},cu)),hu=()=>d.html`
4716
4716
  <template slot="tab-panel" role="stepper-tab-panel">
4717
4717
  <slot></slot>
4718
4718
  </template>
4719
- `;class Fu extends s.FoundationElement{}const Au=void 0,Nu={},Lu=Fu.compose(Object.assign({baseName:"stepper-tab-panel",template:Ru,shadowOptions:Au},Nu)),Mu=(e,t)=>(0,s.switchTemplate)(e,t),_u=(e,t)=>d.css`
4719
+ `;class pu extends s.FoundationElement{}const mu=void 0,gu={},vu=pu.compose(Object.assign({baseName:"stepper-tab-panel",template:hu,shadowOptions:mu},gu)),fu=(e,t)=>(0,s.switchTemplate)(e,t),bu=(e,t)=>d.css`
4720
4720
  ${(0,l.switchStyles)(e,t)}
4721
4721
  .checked-indicator {
4722
4722
  transform: scale(1.3);
@@ -4729,32 +4729,32 @@
4729
4729
  .checked-indicator {
4730
4730
  border-radius: calc(var(--control-corner-radius) * 2px);
4731
4731
  }
4732
- `;class Hu extends l.Switch{}const zu=void 0,Pu={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},Uu=Hu.compose(Object.assign({baseName:"switch",template:Mu,styles:_u,shadowOptions:zu},Pu)),Bu=(e,t)=>(0,s.tabTemplate)(e,t),Gu=(e,t)=>d.css`
4732
+ `;class yu extends l.Switch{}const Cu=void 0,wu={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},xu=yu.compose(Object.assign({baseName:"switch",template:fu,styles:bu,shadowOptions:Cu},wu)),$u=(e,t)=>(0,s.tabTemplate)(e,t),Su=(e,t)=>d.css`
4733
4733
  ${(0,l.tabStyles)(e,t)}
4734
4734
 
4735
4735
  :host {
4736
4736
  user-select: none;
4737
4737
  }
4738
- `;class ju extends l.Tab{}const Vu=void 0,Yu={},Wu=ju.compose(Object.assign({baseName:"tab",template:Bu,styles:Gu,shadowOptions:Vu},Yu)),qu=(e,t)=>(0,s.tabPanelTemplate)(e,t),Ku=(e,t)=>d.css`
4738
+ `;class Eu extends l.Tab{}const Ou=void 0,Tu={},ku=Eu.compose(Object.assign({baseName:"tab",template:$u,styles:Su,shadowOptions:Ou},Tu)),Iu=(e,t)=>(0,s.tabPanelTemplate)(e,t),Du=(e,t)=>d.css`
4739
4739
  ${(0,l.tabPanelStyles)(e,t)}
4740
4740
 
4741
4741
  :host {
4742
4742
  height: 100%;
4743
4743
  padding: 0;
4744
4744
  }
4745
- `;class Xu extends l.TabPanel{}const Qu=void 0,Ju={},Zu=Xu.compose(Object.assign({baseName:"tab-panel",template:qu,styles:Ku,shadowOptions:Qu},Ju)),eh=(e,t)=>(0,s.tabsTemplate)(e,t),th=(e,t)=>d.css`
4745
+ `;class Ru extends l.TabPanel{}const Fu=void 0,Nu={},Au=Ru.compose(Object.assign({baseName:"tab-panel",template:Iu,styles:Du,shadowOptions:Fu},Nu)),Lu=(e,t)=>(0,s.tabsTemplate)(e,t),Mu=(e,t)=>d.css`
4746
4746
  ${(0,l.tabsStyles)(e,t)}
4747
4747
 
4748
4748
  :host {
4749
4749
  height: 100%;
4750
4750
  width: 100%;
4751
4751
  }
4752
- `;class ih extends l.Tabs{get currentTabIndex(){return this.activeTabIndex}}const oh=void 0,nh={},ah=ih.compose(Object.assign({baseName:"tabs",template:eh,styles:th,shadowOptions:oh},nh)),sh=(e,t)=>(0,s.textAreaTemplate)(e,t),rh=(e,t)=>d.css`
4752
+ `;class Hu extends l.Tabs{get currentTabIndex(){return this.activeTabIndex}}const _u=void 0,zu={},Pu=Hu.compose(Object.assign({baseName:"tabs",template:Lu,styles:Mu,shadowOptions:_u},zu)),Uu=(e,t)=>(0,s.textAreaTemplate)(e,t),Bu=(e,t)=>d.css`
4753
4753
  ${(0,l.textAreaStyles)(e,t)}
4754
4754
  :host .control {
4755
4755
  padding: calc(var(--design-unit) * 3px);
4756
4756
  }
4757
- `;class lh extends l.TextArea{}const dh=void 0,ch={},uh=lh.compose(Object.assign({baseName:"text-area",template:sh,styles:rh,shadowOptions:dh},ch)),hh=(e,t)=>d.html`
4757
+ `;class Gu extends l.TextArea{}const ju=void 0,Vu={},Yu=Gu.compose(Object.assign({baseName:"text-area",template:Uu,styles:Bu,shadowOptions:ju},Vu)),Wu=(e,t)=>d.html`
4758
4758
  <template
4759
4759
  class="
4760
4760
  ${e=>e.readOnly?"readonly":""}
@@ -4816,17 +4816,17 @@
4816
4816
  ${(0,s.endSlotTemplate)(e,t)}
4817
4817
  </div>
4818
4818
  </template>
4819
- `,{create:ph}=s.DesignToken,mh=ph("active-color-scheme").withDefault(e=>l.baseLayerLuminance.getValueFor(e)===l.StandardLuminance.LightMode?"light":"dark"),vh=(e,t)=>d.css`
4819
+ `,qu=(e,t)=>d.css`
4820
4820
  ${(0,l.textFieldStyles)(e,t)}
4821
4821
 
4822
4822
  input {
4823
- color-scheme: ${mh};
4823
+ color-scheme: ${F.jz};
4824
4824
  }
4825
4825
 
4826
4826
  .label-hidden {
4827
4827
  margin: 0;
4828
4828
  }
4829
- `;class gh extends l.TextField{constructor(){super(...arguments),this.autocomplete="off",this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,$.Cg)([d.attr],gh.prototype,"autocomplete",void 0),(0,$.Cg)([d.attr],gh.prototype,"autocapitalize",void 0),(0,$.Cg)([d.attr],gh.prototype,"step",void 0);const fh={mode:"open",delegatesFocus:!0},bh={},yh=gh.compose(Object.assign({baseName:"text-field",template:hh,styles:vh,shadowOptions:fh},bh)),Ch=d.css`
4829
+ `;class Ku extends l.TextField{constructor(){super(...arguments),this.autocomplete="off",this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,$.Cg)([d.attr],Ku.prototype,"autocomplete",void 0),(0,$.Cg)([d.attr],Ku.prototype,"autocapitalize",void 0),(0,$.Cg)([d.attr],Ku.prototype,"step",void 0);const Xu={mode:"open",delegatesFocus:!0},Qu={},Ju=Ku.compose(Object.assign({baseName:"text-field",template:Wu,styles:qu,shadowOptions:Xu},Qu)),Zu=d.css`
4830
4830
  @keyframes append-animate {
4831
4831
  from {
4832
4832
  transform: translateX(100%);
@@ -4937,7 +4937,7 @@
4937
4937
  margin-left: auto;
4938
4938
  color: #879ba6;
4939
4939
  }
4940
- `,wh=(e="zero")=>d.html`
4940
+ `,eh=(e="zero")=>d.html`
4941
4941
  <div role="alert" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${(0,d.ref)("toast")}>
4942
4942
  <div class="content-wrapper">
4943
4943
  <div part="top" class="top">
@@ -4958,13 +4958,13 @@
4958
4958
  </div>
4959
4959
  </div>
4960
4960
  </div>
4961
- `,xh=d.html`
4962
- ${e=>wh(z(e))}
4963
- `,$h={mode:"open",delegatesFocus:!0},Sh={};class Eh extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout(()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout)}close(){this.remove()}}(0,$.Cg)([d.observable],Eh.prototype,"deleteAnimation",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout"})],Eh.prototype,"closeTimeout",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close"})],Eh.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"notification-icon"})],Eh.prototype,"notificationIcon",void 0);const Oh=Eh.compose(Object.assign({baseName:"toast",styles:Ch,template:xh,shadowOptions:$h},Sh)),Th=(e,t)=>(0,s.toolbarTemplate)(e,t),kh=(e,t)=>d.css`
4961
+ `,th=d.html`
4962
+ ${e=>eh(z(e))}
4963
+ `,ih={mode:"open",delegatesFocus:!0},oh={};class nh extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout(()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout)}close(){this.remove()}}(0,$.Cg)([d.observable],nh.prototype,"deleteAnimation",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout"})],nh.prototype,"closeTimeout",void 0),(0,$.Cg)([(0,d.attr)({attribute:"auto-close"})],nh.prototype,"autoClose",void 0),(0,$.Cg)([(0,d.attr)({attribute:"notification-icon"})],nh.prototype,"notificationIcon",void 0);const ah=nh.compose(Object.assign({baseName:"toast",styles:Zu,template:th,shadowOptions:ih},oh)),sh=(e,t)=>(0,s.toolbarTemplate)(e,t),rh=(e,t)=>d.css`
4964
4964
  ${(0,l.toolbarStyles)(e,t)}
4965
- `;class Ih extends l.Toolbar{}const Dh=void 0,Rh={},Fh=Ih.compose(Object.assign({baseName:"toolbar",template:Th,styles:kh,shadowOptions:Dh},Rh)),Ah=(e,t)=>(0,s.tooltipTemplate)(e,t),Nh=(e,t)=>d.css`
4965
+ `;class lh extends l.Toolbar{}const dh=void 0,ch={},uh=lh.compose(Object.assign({baseName:"toolbar",template:sh,styles:rh,shadowOptions:dh},ch)),hh=(e,t)=>(0,s.tooltipTemplate)(e,t),ph=(e,t)=>d.css`
4966
4966
  ${(0,l.tooltipStyles)(e,t)}
4967
- `;class Lh extends l.Tooltip{}const Mh=void 0,_h={},Hh=Lh.compose(Object.assign({baseName:"tooltip",template:Ah,styles:Nh,shadowOptions:Mh},_h)),zh=(e,t)=>(0,s.treeItemTemplate)(e,t),Ph=(e,t)=>d.css`
4967
+ `;class mh extends l.Tooltip{}const gh=void 0,vh={},fh=mh.compose(Object.assign({baseName:"tooltip",template:hh,styles:ph,shadowOptions:gh},vh)),bh=(e,t)=>(0,s.treeItemTemplate)(e,t),yh=(e,t)=>d.css`
4968
4968
  ${(0,l.treeItemStyles)(e,t)}
4969
4969
  :host {
4970
4970
  --focus-stroke-width: 0;
@@ -4981,9 +4981,9 @@
4981
4981
  .positioning-region {
4982
4982
  height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
4983
4983
  }
4984
- `;class Uh extends l.TreeItem{}const Bh=void 0,Gh={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>'},jh=Uh.compose(Object.assign({baseName:"tree-item",template:zh,styles:Ph,shadowOptions:Bh},Gh)),Vh=(e,t)=>(0,s.treeViewTemplate)(e,t),Yh=(e,t)=>d.css`
4984
+ `;class Ch extends l.TreeItem{}const wh=void 0,xh={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>'},$h=Ch.compose(Object.assign({baseName:"tree-item",template:bh,styles:yh,shadowOptions:wh},xh)),Sh=(e,t)=>(0,s.treeViewTemplate)(e,t),Eh=(e,t)=>d.css`
4985
4985
  ${(0,l.treeViewStyles)(e,t)}
4986
- `;class Wh extends s.TreeView{}const qh=void 0,Kh={},Xh=Wh.compose(Object.assign({baseName:"tree-view",template:Vh,styles:Yh,shadowOptions:qh},Kh)),Qh=(e,t)=>d.css`
4986
+ `;class Oh extends s.TreeView{}const Th=void 0,kh={},Ih=Oh.compose(Object.assign({baseName:"tree-view",template:Sh,styles:Eh,shadowOptions:Th},kh)),Dh=(e,t)=>d.css`
4987
4987
  .container {
4988
4988
  position: relative;
4989
4989
  width: 100%;
@@ -5003,7 +5003,7 @@
5003
5003
  overflow: hidden;
5004
5004
  text-overflow: ellipsis;
5005
5005
  }
5006
- `,Jh=e=>d.html`
5006
+ `,Rh=e=>d.html`
5007
5007
  <div class="container" value=${e=>e.value}>
5008
5008
  <${e}-text-field
5009
5009
  class="url-input"
@@ -5018,9 +5018,9 @@
5018
5018
  <a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
5019
5019
  `)}
5020
5020
  </div>
5021
- `,Zh=d.html`
5022
- ${e=>Jh(z(e))}
5023
- `,ep=void 0,tp={};class ip extends l.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,$.Cg)([d.observable],ip.prototype,"value",void 0),(0,$.Cg)([d.observable],ip.prototype,"focused",void 0);const op=ip.compose(Object.assign({baseName:"url-input",template:Zh,styles:Qh,shadowOptions:ep},tp)),np={foundationAccordion:m,foundationAccordionItem:C,foundationActionsMenu:ie,foundationAnchor:le,foundationAnchoredRegion:me,foundationAvatar:we,foundationBadge:Te,foundationBanner:Ae,foundationBreadcrumb:ze,foundationBreadcrumbItem:Ve,foundationButton:Qe,foundationCalendar:ot,foundationCard:dt,foundationCategorizedMultiselect:Ft,foundationCheckbox:Ht,foundationCombobox:Yt,foundationConnectionIndicator:Qt,foundationDataGrid:oi,foundationDataGridCell:li,foundationDataGridRow:pi,foundationDatePicker:_i,foundationDesignSystemProvider:Po,foundationDialog:Qo,foundationDisclosure:nn,foundationDivider:cn,foundationDropdownMenu:fn,foundationErrorBanner:Mn,foundationErrorBoundary:Xn,foundationErrorDialog:ia,foundationFileReader:va,foundationFileUpload:Ra,foundationFilter:Ua,foundationFilterBar:Xa,foundationFlexLayout:ns,foundationFlipper:cs,foundationFlyout:bs,foundationGridLayout:Ts,foundationGridLayoutItem:Fs,foundationHorizontalScroll:Hs,foundationIcon:Ks,foundationListbox:tr,foundationListboxOption:rr,foundationMenu:pr,foundationMenuItem:yr,foundationModal:Er,foundationMultiselect:St,foundationNumberField:Ur,foundationPopper:Il,foundationProgress:pl,foundationProgressRing:Ll,foundationRadio:Ul,foundationRadioGroup:Wl,foundationScheduler:ed,foundationSchedulerCronBuilder:_d,foundationSchedulerTimezone:jd,foundationSearchBar:oc,foundationSearchBarCombobox:dc,foundationSegmentedControl:Oc,foundationSegmentedItem:Fc,foundationSelect:Hc,foundationSkeleton:jc,foundationSlider:Jc,foundationSliderLabel:nu,foundationSnackbar:mu,foundationStackingIcons:bu,foundationStatusPill:$u,foundationEnvironmentIndicator:Rn,foundationStepperTab:Du,foundationStepperTabPanel:Lu,foundationSwitch:Uu,foundationSystemHealthOverlay:$l,foundationTab:Wu,foundationTabPanel:Zu,foundationTabs:ah,foundationTextArea:uh,foundationTextField:yh,foundationToast:Oh,foundationToolbar:Fh,foundationTooltip:Hh,foundationTreeItem:jh,foundationTreeView:Xh,foundationUrlInput:op,foundationSectionNavigator:Cc,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};let ap=class extends M{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return null==e?void 0:e.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){L.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};ap=(0,$.Cg)([(0,d.customElement)({name:"data-grid-datasource"})],ap);const sp=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],rp=[...sp,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],lp={type:"NULL",maxRules:1,invisible:!0},dp=["int","short","long","bigdecimal","double"],cp=["date","date-time"],up=["enum",...dp,"string",...cp,"boolean"],hp=[{type:"equal",nbInputs:1,applyTo:up,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:up,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...dp,...cp],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...dp,...cp],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...up].filter(e=>"boolean"!==e)},{type:"not_any_of",nbInputs:"many",applyTo:[...up].filter(e=>"boolean"!==e)},{type:"within_inclusive",nbInputs:2,applyTo:[...dp,...cp],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...dp,...cp],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...up],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...up],optgroup:"Null"}];var pp=i(93678);const mp=i.n(pp)()();function vp(e,t,i){const o=function e(o){const n=mp(o);if(n.groupId===t)return n.children=i(n.children),n;const a=[];let s=!1;for(const t of n.children)if("children"in t){const i=e(t);i?(a.push(i),s=!0):a.push(t)}else a.push(t);return n.children=a,s?n:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function gp(e,t,i){return function e(o){for(const n of o.children){if(i(n,t))return o;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function fp(e,t){const i=gp(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function bp(e,t){const i=gp(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function yp(e,t,i){return vp(e,t,e=>[...e,i])}const Cp="group-root";function wp(e,t){const i=(e,o)=>{return"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:Cp,children:e.children.map(e=>i(e,2))})}function xp(e){const t=e.children.map(e=>"children"in e?xp(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const $p=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,Sp=e=>`${$p(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,Ep=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},Op=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},Tp=e=>{const t={},i=[],o=e=>[...e].sort((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const n=[];return Object.keys(t).sort().forEach(e=>{n.push({optgroup:e,xs:o(t[e])})}),[...n,...o(i)]};function kp(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var Ip;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(Ip||(Ip={}));const Dp=d.css`
5021
+ `,Fh=d.html`
5022
+ ${e=>Rh(z(e))}
5023
+ `,Nh=void 0,Ah={};class Lh extends l.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,$.Cg)([d.observable],Lh.prototype,"value",void 0),(0,$.Cg)([d.observable],Lh.prototype,"focused",void 0);const Mh=Lh.compose(Object.assign({baseName:"url-input",template:Fh,styles:Dh,shadowOptions:Nh},Ah)),Hh={foundationAccordion:m,foundationAccordionItem:C,foundationActionsMenu:W,foundationAnchor:Z,foundationAnchoredRegion:ae,foundationAvatar:he,foundationBadge:be,foundationBanner:Se,foundationBreadcrumb:De,foundationBreadcrumbItem:Me,foundationButton:Be,foundationCalendar:qe,foundationCard:et,foundationCategorizedMultiselect:xt,foundationCheckbox:kt,foundationCombobox:Mt,foundationConnectionIndicator:Ut,foundationDataGrid:Wt,foundationDataGridCell:Jt,foundationDataGridRow:oi,foundationDatePicker:Oi,foundationDesignSystemProvider:To,foundationDialog:Ho,foundationDisclosure:Go,foundationDivider:Ko,foundationDropdownMenu:on,foundationErrorBanner:Cn,foundationErrorBoundary:An,foundationErrorDialog:Pn,foundationFileReader:Jn,foundationFileUpload:ma,foundationFilter:Sa,foundationFilterBar:Na,foundationFlexLayout:Ua,foundationFlipper:Wa,foundationFlyout:ts,foundationGridLayout:cs,foundationGridLayoutItem:gs,foundationHorizontalScroll:ws,foundationIcon:Rs,foundationListbox:Hs,foundationListboxOption:Gs,foundationMenu:Ks,foundationMenuItem:tr,foundationModal:rr,foundationMultiselect:mt,foundationNumberField:xr,foundationPopper:cl,foundationProgress:qr,foundationProgressRing:vl,foundationRadio:xl,foundationRadioGroup:kl,foundationScheduler:Ll,foundationSchedulerCronBuilder:bd,foundationSchedulerTimezone:Ed,foundationSearchBar:_d,foundationSearchBarCombobox:jd,foundationSegmentedControl:rc,foundationSegmentedItem:pc,foundationSelect:yc,foundationSkeleton:Ec,foundationSlider:Nc,foundationSliderLabel:zc,foundationSnackbar:Kc,foundationStackingIcons:Zc,foundationStatusPill:nu,foundationEnvironmentIndicator:gn,foundationStepperTab:uu,foundationStepperTabPanel:vu,foundationSwitch:xu,foundationSystemHealthOverlay:nl,foundationTab:ku,foundationTabPanel:Au,foundationTabs:Pu,foundationTextArea:Yu,foundationTextField:Ju,foundationToast:ah,foundationToolbar:uh,foundationTooltip:fh,foundationTreeItem:$h,foundationTreeView:Ih,foundationUrlInput:Mh,foundationSectionNavigator:tc,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};let _h=class extends M{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return null==e?void 0:e.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){L.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){L.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){L.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){L.debug("handleStreamUpdates - Method not implemented.")}};_h=(0,$.Cg)([(0,d.customElement)({name:"data-grid-datasource"})],_h);const zh=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],Ph=[...zh,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],Uh={type:"NULL",maxRules:1,invisible:!0},Bh=["int","short","long","bigdecimal","double"],Gh=["date","date-time"],jh=["enum",...Bh,"string",...Gh,"boolean"],Vh=[{type:"equal",nbInputs:1,applyTo:jh,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:jh,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Bh,...Gh],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Bh,...Gh],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...jh].filter(e=>"boolean"!==e)},{type:"not_any_of",nbInputs:"many",applyTo:[...jh].filter(e=>"boolean"!==e)},{type:"within_inclusive",nbInputs:2,applyTo:[...Bh,...Gh],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Bh,...Gh],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...jh],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...jh],optgroup:"Null"}];var Yh=i(93678);const Wh=i.n(Yh)()();function qh(e,t,i){const o=function e(o){const n=Wh(o);if(n.groupId===t)return n.children=i(n.children),n;const a=[];let s=!1;for(const t of n.children)if("children"in t){const i=e(t);i?(a.push(i),s=!0):a.push(t)}else a.push(t);return n.children=a,s?n:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function Kh(e,t,i){return function e(o){for(const n of o.children){if(i(n,t))return o;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function Xh(e,t){const i=Kh(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function Qh(e,t){const i=Kh(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function Jh(e,t,i){return qh(e,t,e=>[...e,i])}const Zh="group-root";function ep(e,t){const i=(e,o)=>{return"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:Zh,children:e.children.map(e=>i(e,2))})}function tp(e){const t=e.children.map(e=>"children"in e?tp(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const ip=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,op=e=>`${ip(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,np=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},ap=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},sp=e=>{const t={},i=[],o=e=>[...e].sort((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const n=[];return Object.keys(t).sort().forEach(e=>{n.push({optgroup:e,xs:o(t[e])})}),[...n,...o(i)]};function rp(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var lp;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(lp||(lp={}));const dp=d.css`
5024
5024
  :host {
5025
5025
  --item-vertical-spacing: 4px;
5026
5026
  --item-border-radius: 5px;
@@ -5194,7 +5194,7 @@
5194
5194
  .rules-list > *:last-child::after {
5195
5195
  display: none;
5196
5196
  }
5197
- `,Rp=d.css`
5197
+ `,cp=d.css`
5198
5198
  .rules-group-container {
5199
5199
  border: 1px solid #ccc;
5200
5200
  margin-bottom: 10px;
@@ -5237,10 +5237,10 @@
5237
5237
  list-style: none;
5238
5238
  padding-left: 0;
5239
5239
  }
5240
- `;function Fp(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),a=o(i);return(t,i)=>e(t,i)?n(t,i):a(t,i)}const Ap=d.html`
5240
+ `;function up(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),a=o(i);return(t,i)=>e(t,i)?n(t,i):a(t,i)}const hp=d.html`
5241
5241
  ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.radio,{radioTag:n,radioGroupTag:a}=o?{radioTag:o.input,radioGroupTag:o.group}:{radioTag:"input",radioGroupTag:"div"};return d.html`
5242
5242
  <div class="btn-group group-conditions">
5243
- ${Fp(e=>"input"!==n,d.html`
5243
+ ${up(e=>"input"!==n,d.html`
5244
5244
  <${a}
5245
5245
  class="radio-group-container"
5246
5246
  name="combinator"
@@ -5278,7 +5278,7 @@
5278
5278
  `)}
5279
5279
  </div>
5280
5280
  `}}
5281
- `,Np=d.html`
5281
+ `,pp=d.html`
5282
5282
  ${e=>{var t,i,o,n,a,s,r,l;const c=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button",u=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${null===(a=null===(n=null===(o=e.config)||void 0===o?void 0:o.combinators)||void 0===n?void 0:n[0])||void 0===a?void 0:a.type})`,h=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${null===(l=null===(r=null===(s=e.config)||void 0===s?void 0:s.combinators)||void 0===r?void 0:r[0])||void 0===l?void 0:l.type})`;return d.html`
5283
5283
  <div class="btn-group float-end group-actions">
5284
5284
  ${(0,d.when)(e=>e.allowAddRule,d.html`
@@ -5315,13 +5315,13 @@
5315
5315
  `)}
5316
5316
  </div>
5317
5317
  `}}
5318
- `,Lp=d.html`
5318
+ `,mp=d.html`
5319
5319
  <div class="rules-group-container">
5320
- <div class="rules-group-header">${Np} ${Ap}</div>
5320
+ <div class="rules-group-header">${pp} ${hp}</div>
5321
5321
  <div class="rules-group-body">
5322
5322
  <div class="rules-list">
5323
5323
  ${(0,d.repeat)(e=>{var t,i;return null!==(i=null===(t=e.model)||void 0===t?void 0:t.children)&&void 0!==i?i:[]},d.html`
5324
- ${Fp(e=>"children"in e,d.html`
5324
+ ${up(e=>"children"in e,d.html`
5325
5325
  <expression-group
5326
5326
  :config=${(e,t)=>t.parent.config}
5327
5327
  :styles=${(e,t)=>t.parent.styles}
@@ -5345,7 +5345,7 @@
5345
5345
  </div>
5346
5346
  </div>
5347
5347
  </div>
5348
- `;let Mp=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),kp(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(Ip.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(Ip.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(Ip.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const i=e.target.getAttribute("value");if(!i)throw new Error("No value found in the custom radio group event target");this.updateCombinator(i)}updateCombinator(e){var t,i;const o=this.config.combinators.find(({type:t})=>t===e);if(!o)throw new Error(`Cannot find selected combinator ${e}`);(null===(i=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type)!==o.type&&this.dispatchGroupDataUpdated(o)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(Ip.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],Mp.prototype,"config",void 0),(0,$.Cg)([d.observable],Mp.prototype,"styles",void 0),(0,$.Cg)([d.observable],Mp.prototype,"model",void 0),(0,$.Cg)([d.observable],Mp.prototype,"index",void 0),(0,$.Cg)([d.volatile],Mp.prototype,"allowAddRule",null),(0,$.Cg)([d.volatile],Mp.prototype,"allowAddGroup",null),Mp=(0,$.Cg)([(0,d.customElement)({name:"expression-group",template:Lp,styles:Rp,shadowOptions:{delegatesFocus:!0}})],Mp);const _p=d.html`
5348
+ `;let gp=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),rp(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(lp.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(lp.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(lp.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const i=e.target.getAttribute("value");if(!i)throw new Error("No value found in the custom radio group event target");this.updateCombinator(i)}updateCombinator(e){var t,i;const o=this.config.combinators.find(({type:t})=>t===e);if(!o)throw new Error(`Cannot find selected combinator ${e}`);(null===(i=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type)!==o.type&&this.dispatchGroupDataUpdated(o)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(lp.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],gp.prototype,"config",void 0),(0,$.Cg)([d.observable],gp.prototype,"styles",void 0),(0,$.Cg)([d.observable],gp.prototype,"model",void 0),(0,$.Cg)([d.observable],gp.prototype,"index",void 0),(0,$.Cg)([d.volatile],gp.prototype,"allowAddRule",null),(0,$.Cg)([d.volatile],gp.prototype,"allowAddGroup",null),gp=(0,$.Cg)([(0,d.customElement)({name:"expression-group",template:mp,styles:cp,shadowOptions:{delegatesFocus:!0}})],gp);const vp=d.html`
5349
5349
  <div class="query-builder">
5350
5350
  ${(0,d.when)(e=>null!==e.model,d.html`
5351
5351
  <expression-group
@@ -5355,7 +5355,7 @@
5355
5355
  ></expression-group>
5356
5356
  `)}
5357
5357
  </div>
5358
- `,Hp=d.html`
5358
+ `,fp=d.html`
5359
5359
  ${e=>{var t,i,o,n;const a=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",s=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",r="optgroup";return d.html`
5360
5360
  <${a}
5361
5361
  class="form-select"
@@ -5386,7 +5386,7 @@
5386
5386
  `)}
5387
5387
  </${a}>
5388
5388
  `}}
5389
- `;let zp=class extends d.FASTElement{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),kp(this,this.styles,"field")}get groupedFieldss(){return Tp(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(Ip.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],zp.prototype,"fields",void 0),(0,$.Cg)([d.observable],zp.prototype,"field",void 0),(0,$.Cg)([d.observable],zp.prototype,"config",void 0),(0,$.Cg)([d.observable],zp.prototype,"styles",void 0),(0,$.Cg)([d.volatile],zp.prototype,"groupedFieldss",null),zp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-field",template:Hp})],zp);const Pp=d.html`
5389
+ `;let bp=class extends d.FASTElement{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),rp(this,this.styles,"field")}get groupedFieldss(){return sp(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(lp.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],bp.prototype,"fields",void 0),(0,$.Cg)([d.observable],bp.prototype,"field",void 0),(0,$.Cg)([d.observable],bp.prototype,"config",void 0),(0,$.Cg)([d.observable],bp.prototype,"styles",void 0),(0,$.Cg)([d.volatile],bp.prototype,"groupedFieldss",null),bp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-field",template:fp})],bp);const yp=d.html`
5390
5390
  ${e=>{var t,i,o,n;const a=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",s=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",r="optgroup";return d.html`
5391
5391
  <${a}
5392
5392
  class="form-select"
@@ -5419,7 +5419,7 @@
5419
5419
  `)}
5420
5420
  </${a}>
5421
5421
  `}}
5422
- `;let Up=class extends d.FASTElement{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),kp(this,this.styles,"operator")}get allowedOperators(){const e=e=>{var t,i,o;return null===(o=null===(i=null===(t=this.field)||void 0===t?void 0:t.operators)||void 0===i?void 0:i.includes(e.type))||void 0===o||o},t=e=>{var t,i,o,n;return null===(n=null===(i=null===(t=null==e?void 0:e.applyTo)||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,null===(o=this.field)||void 0===o?void 0:o.type))||void 0===n||n};return this.operators.filter(i=>e(i)&&t(i))}get groupedOperators(){return Tp(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(Ip.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],Up.prototype,"operators",void 0),(0,$.Cg)([d.observable],Up.prototype,"operator",void 0),(0,$.Cg)([d.observable],Up.prototype,"field",void 0),(0,$.Cg)([d.observable],Up.prototype,"config",void 0),(0,$.Cg)([d.observable],Up.prototype,"styles",void 0),(0,$.Cg)([d.volatile],Up.prototype,"allowedOperators",null),(0,$.Cg)([d.volatile],Up.prototype,"groupedOperators",null),Up=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-operator",template:Pp})],Up);const Bp=e=>["short","int","long"].includes(e),Gp=e=>["double","bigdecimal"].includes(e),jp=(e,t)=>{var i,o;return null===(o=null===(i=(e=>Bp(e)?/^[+-]?[0-9]+$/:Gp(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},Vp=d.css`
5422
+ `;let Cp=class extends d.FASTElement{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),rp(this,this.styles,"operator")}get allowedOperators(){const e=e=>{var t,i,o;return null===(o=null===(i=null===(t=this.field)||void 0===t?void 0:t.operators)||void 0===i?void 0:i.includes(e.type))||void 0===o||o},t=e=>{var t,i,o,n;return null===(n=null===(i=null===(t=null==e?void 0:e.applyTo)||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,null===(o=this.field)||void 0===o?void 0:o.type))||void 0===n||n};return this.operators.filter(i=>e(i)&&t(i))}get groupedOperators(){return sp(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(lp.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],Cp.prototype,"operators",void 0),(0,$.Cg)([d.observable],Cp.prototype,"operator",void 0),(0,$.Cg)([d.observable],Cp.prototype,"field",void 0),(0,$.Cg)([d.observable],Cp.prototype,"config",void 0),(0,$.Cg)([d.observable],Cp.prototype,"styles",void 0),(0,$.Cg)([d.volatile],Cp.prototype,"allowedOperators",null),(0,$.Cg)([d.volatile],Cp.prototype,"groupedOperators",null),Cp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-operator",template:yp})],Cp);const wp=e=>["short","int","long"].includes(e),xp=e=>["double","bigdecimal"].includes(e),$p=(e,t)=>{var i,o;return null===(o=null===(i=(e=>wp(e)?/^[+-]?[0-9]+$/:xp(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},Sp=d.css`
5423
5423
  .text-input.error {
5424
5424
  color: red;
5425
5425
  }
@@ -5428,16 +5428,16 @@
5428
5428
  display: inline-grid;
5429
5429
  align-items: center;
5430
5430
  }
5431
- `,Yp=d.html`
5432
- ${e=>{var t,i;const o=Ep(e),n="datetime-local"===o?"datetimeLocal":o,a=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i[n],s=a||"input";return d.html`
5431
+ `,Ep=d.html`
5432
+ ${e=>{var t,i;const o=np(e),n="datetime-local"===o?"datetimeLocal":o,a=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i[n],s=a||"input";return d.html`
5433
5433
  <${s}
5434
5434
  ${a?"":`type="${o}"`}
5435
- class="text-input ${e=>(0,ee.x)(["error",e.validationError])}"
5435
+ class="text-input ${e=>(0,V.x)(["error",e.validationError])}"
5436
5436
  value=${e=>e.value}
5437
5437
  @blur=${(e,t)=>e.handleInputChange(t.event)}
5438
5438
  />
5439
5439
  `}}
5440
- `,Wp=d.html`
5440
+ `,Op=d.html`
5441
5441
  ${e=>{var t,i,o,n;const a=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",s=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option";return d.html`
5442
5442
  <${a}
5443
5443
  class="form-select"
@@ -5451,7 +5451,7 @@
5451
5451
  `)}
5452
5452
  </${a}>
5453
5453
  `}}
5454
- `,qp=d.html`
5454
+ `,Tp=d.html`
5455
5455
  ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.checkbox,n=o||"input";return d.html`
5456
5456
  <label>
5457
5457
  <${n}
@@ -5463,15 +5463,15 @@
5463
5463
  True
5464
5464
  </label>
5465
5465
  `}}
5466
- `,Kp=d.html`
5467
- <div>Input type "${e=>Ep(e)}" not yet supported.</div>
5468
- `,Xp=d.html`
5469
- ${e=>{const t=Ep(e);return d.html`
5466
+ `,kp=d.html`
5467
+ <div>Input type "${e=>np(e)}" not yet supported.</div>
5468
+ `,Ip=d.html`
5469
+ ${e=>{const t=np(e);return d.html`
5470
5470
  <div class="value-and-validation">
5471
- ${(0,d.when)(()=>["text","number","date","datetime-local"].includes(t),Yp)}
5472
- ${(0,d.when)(()=>"select"===t,Wp)}
5473
- ${(0,d.when)(()=>"checkbox"===t,qp)}
5474
- ${(0,d.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),Kp)}
5471
+ ${(0,d.when)(()=>["text","number","date","datetime-local"].includes(t),Ep)}
5472
+ ${(0,d.when)(()=>"select"===t,Op)}
5473
+ ${(0,d.when)(()=>"checkbox"===t,Tp)}
5474
+ ${(0,d.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),kp)}
5475
5475
  ${(0,d.when)(e=>e.validationMsg,d.html`
5476
5476
  <p class="validation-msg">${e=>e.validationMsg}</p>
5477
5477
  `)}
@@ -5488,11 +5488,11 @@
5488
5488
  `}}
5489
5489
  `)}
5490
5490
  `}}
5491
- `,Qp=d.html`
5492
- ${Fp(e=>e.field,Xp,d.html`
5491
+ `,Dp=d.html`
5492
+ ${up(e=>e.field,Ip,d.html`
5493
5493
  <div>Select a field to set value</div>
5494
5494
  `)}
5495
- `;let Jp=class extends d.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),kp(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,jp(Op(this),e)].filter(e=>!!e).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let i;i="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&Bp(Op(this))?parseInt(t.value):this.field&&Gp(Op(this))?parseFloat(t.value):t.value,this.value=i;const o={value:i,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(Ip.ValueUpdated,{detail:o,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(Ip.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,$.Cg)([(0,d.attr)({attribute:"value-index"})],Jp.prototype,"valueIndex",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Jp.prototype,"variadic",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"validation-error"})],Jp.prototype,"validationError",void 0),(0,$.Cg)([(0,d.attr)({attribute:"validation-msg"})],Jp.prototype,"validationMsg",void 0),(0,$.Cg)([d.observable],Jp.prototype,"field",void 0),(0,$.Cg)([d.observable],Jp.prototype,"operator",void 0),(0,$.Cg)([d.observable],Jp.prototype,"value",void 0),(0,$.Cg)([d.observable],Jp.prototype,"config",void 0),(0,$.Cg)([d.observable],Jp.prototype,"styles",void 0),Jp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-value",template:Qp,styles:Vp,shadowOptions:{delegatesFocus:!0}})],Jp);const Zp=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:em(e,t),em=(e,t)=>{var i,o;switch(Op(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return $p(new Date);case"date-time":return Sp(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.type)?null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},tm=(e,t)=>{var i,o,n,a;const s=(r=e,l=t,e=>{var t,i,o;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(o=null===(i=l.operator)||void 0===i?void 0:i.valueType)||void 0===o?void 0:o.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(i=s(0))&&void 0!==i?i:Zp(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(o=s(0))&&void 0!==o?o:Zp(e,t),null!==(n=s(1))&&void 0!==n?n:Zp(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(a=s(0))&&void 0!==a?a:Zp(e,t)]}}},im=(e,t,i)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map((e,o)=>o===i?t:e)}}},om=e=>!e&&0!==e,nm=d.css`
5495
+ `;let Rp=class extends d.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),rp(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,$p(ap(this),e)].filter(e=>!!e).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let i;i="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&wp(ap(this))?parseInt(t.value):this.field&&xp(ap(this))?parseFloat(t.value):t.value,this.value=i;const o={value:i,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(lp.ValueUpdated,{detail:o,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(lp.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,$.Cg)([(0,d.attr)({attribute:"value-index"})],Rp.prototype,"valueIndex",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],Rp.prototype,"variadic",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean",attribute:"validation-error"})],Rp.prototype,"validationError",void 0),(0,$.Cg)([(0,d.attr)({attribute:"validation-msg"})],Rp.prototype,"validationMsg",void 0),(0,$.Cg)([d.observable],Rp.prototype,"field",void 0),(0,$.Cg)([d.observable],Rp.prototype,"operator",void 0),(0,$.Cg)([d.observable],Rp.prototype,"value",void 0),(0,$.Cg)([d.observable],Rp.prototype,"config",void 0),(0,$.Cg)([d.observable],Rp.prototype,"styles",void 0),Rp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule-value",template:Dp,styles:Sp,shadowOptions:{delegatesFocus:!0}})],Rp);const Fp=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:Np(e,t),Np=(e,t)=>{var i,o;switch(ap(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return ip(new Date);case"date-time":return op(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.type)?null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},Ap=(e,t)=>{var i,o,n,a;const s=(r=e,l=t,e=>{var t,i,o;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(o=null===(i=l.operator)||void 0===i?void 0:i.valueType)||void 0===o?void 0:o.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(i=s(0))&&void 0!==i?i:Fp(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(o=s(0))&&void 0!==o?o:Fp(e,t),null!==(n=s(1))&&void 0!==n?n:Fp(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(a=s(0))&&void 0!==a?a:Fp(e,t)]}}},Lp=(e,t,i)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map((e,o)=>o===i?t:e)}}},Mp=e=>!e&&0!==e,Hp=d.css`
5496
5496
  .rule-container {
5497
5497
  border: 1px solid #eee;
5498
5498
  margin-bottom: 5px;
@@ -5551,9 +5551,9 @@
5551
5551
  expression-rule-value {
5552
5552
  display: flex;
5553
5553
  }
5554
- `,am=d.html`
5554
+ `,_p=d.html`
5555
5555
  ${e=>{var t,i;const o=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button";return d.html`
5556
- <div class="rule-container ${e=>(0,ee.x)(["error",e.error])}">
5556
+ <div class="rule-container ${e=>(0,V.x)(["error",e.error])}">
5557
5557
  <div class="rule-content">
5558
5558
  <expression-rule-field
5559
5559
  class="margin"
@@ -5611,14 +5611,14 @@ class="margin"
5611
5611
  </div>
5612
5612
  </div>
5613
5613
  `}}
5614
- `;let sm=class extends d.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),kp(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==Op(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(om)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,Zp(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(Ip.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(Ip.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(Ip.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,o=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:o,value:null,operator:null}};this.dispatchEvent(new CustomEvent(Ip.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:im(this.model,t,i)};this.dispatchEvent(new CustomEvent(Ip.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const o=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!o)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(Ip.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:tm(o,this.model)},bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],sm.prototype,"config",void 0),(0,$.Cg)([d.observable],sm.prototype,"styles",void 0),(0,$.Cg)([d.observable],sm.prototype,"model",void 0),(0,$.Cg)([d.observable],sm.prototype,"index",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],sm.prototype,"error",void 0),(0,$.Cg)([d.volatile],sm.prototype,"operandIterator",null),sm=(0,$.Cg)([(0,d.customElement)({name:"expression-rule",template:am,styles:nm,shadowOptions:{delegatesFocus:!0}})],sm);let rm=class extends d.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=wp(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=xp(t);this.dispatchChangeEvent(i)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(Ip.AddGroup,this.handleAddGroup),this.addEventListener(Ip.DelGroup,this.handleDeleteGroup),this.addEventListener(Ip.AddRule,this.handleAddRule),this.addEventListener(Ip.DelRule,this.handleDeleteRule),this.addEventListener(Ip.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(Ip.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Ip.AddGroup,this.handleAddGroup),this.removeEventListener(Ip.DelGroup,this.handleDeleteGroup),this.removeEventListener(Ip.AddRule,this.handleAddRule),this.removeEventListener(Ip.DelRule,this.handleDeleteRule),this.removeEventListener(Ip.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(Ip.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,o;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(o=e.fields)||void 0===o?void 0:o.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:Cp,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,o={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=yp(this.model,t,o)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=yp(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=vp(i=this.model,fp(i,o=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==o))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,o;this.model=vp(i=this.model,bp(i,o=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==o))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===Cp?Object.assign(Object.assign({},e),i):vp(e,fp(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return vp(e,bp(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};(0,$.Cg)([d.observable],rm.prototype,"config",void 0),(0,$.Cg)([d.observable],rm.prototype,"styles",void 0),(0,$.Cg)([d.observable],rm.prototype,"model",void 0),rm=(0,$.Cg)([(0,d.customElement)({name:"expression-builder",template:_p,styles:Dp})],rm);let lm=class extends rm{};lm=(0,$.Cg)([(0,d.customElement)({name:"foundation-expression-builder",styles:Dp,template:_p})],lm);const dm=["int","short","long"],cm=["double","bigdecimal"],um=[...dm,...cm],hm=["date","date-time"],pm=["string","enum"],mm=["boolean"],vm=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type};function gm(e){switch(vm(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function fm(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function bm(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function ym(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}const Cm=1e3;function wm(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=vm(e);if(pm.includes(i))return t;if(um.includes(i))return t.toString();if(mm.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(hm.includes(i))return(new Date(t).getTime()/Cm).toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function xm(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?xm(e,t):t(e)).filter(Boolean)}}function $m(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=vm(e);if(pm.includes(i))return t;if(dm.includes(i))return parseInt(t);if(cm.includes(i))return parseFloat(t);if(mm.includes(i))return t;if(hm.includes(i)){const e=new Date(parseInt(t)*Cm);return"date"===i?$p(e):Sp(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const Sm={template:_p,styles:Dp};var Em;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(Em||(Em={}));const Om=[{type:Em.logicalOperations.AND,maxRules:"many"},{type:Em.logicalOperations.OR,maxRules:"many"}],Tm={EQUALS:Em.operations.EQUALS,NOT_EQUALS:Em.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:Em.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:Em.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:Em.operations.LESS_THAN,LESS_THAN_OR_EQUAL:Em.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:Em.operations.IS_CURRENT,IS_PREVIOUS:Em.operations.IS_PREVIOUS},km={type:"enum",input:"select",values:{HOUR:"HOUR",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}},Im=[{type:Tm.EQUALS,nbInputs:1,applyTo:[...pm,...mm,...um,...hm],tooltip:"Check the equality of the field compared to a set value"},{type:Tm.NOT_EQUALS,nbInputs:1,applyTo:[...pm,...mm,...um,...hm],tooltip:"Check that the field is different from a set value"},{type:Tm.IS_NULL,nbInputs:0,applyTo:["enum",...mm,...um,...hm],tooltip:"Check if the field value is null"},{type:Tm.NOT_NULL,nbInputs:0,applyTo:["enum",...mm,...um,...hm],tooltip:"Check if the field value is not null"},{type:Tm.IS_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:Tm.NOT_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:Tm.CONTAINS,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:Tm.CONTAINS_WORDS_STARTING_WITH,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:Tm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:Tm.GREATER_THAN,nbInputs:1,applyTo:[...um],tooltip:"Check if the field value is greater than a specified number"},{type:Tm.GREATER_THAN_OR_EQUAL,nbInputs:1,applyTo:[...um],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:Tm.LESS_THAN,nbInputs:1,applyTo:[...um],tooltip:"Check if the field value is less than a specified number"},{type:Tm.LESS_THAN_OR_EQUAL,nbInputs:1,applyTo:[...um],tooltip:"Check if the field value is less than or equal to a specified number"},{type:Tm.IS_BEFORE,nbInputs:1,applyTo:[...hm],tooltip:"Check if the field is before a specified date/time"},{type:Tm.IS_AFTER,nbInputs:1,applyTo:[...hm],tooltip:"Check if the field is after a specified date/time"},{type:Tm.ON_OR_BEFORE,nbInputs:1,applyTo:[...hm],tooltip:"Check if the field is on or before a specified date/time"},{type:Tm.ON_OR_AFTER,nbInputs:1,applyTo:[...hm],tooltip:"Check if the field is on or after a specified date/time"},{type:Tm.IS_CURRENT,nbInputs:1,applyTo:[...hm],tooltip:"Check whether the current date/time matches the current hour/day/week/month/year",valueType:km},{type:Tm.IS_PREVIOUS,nbInputs:1,applyTo:[...hm],tooltip:"Check whether the current date/time matches the previous hour/day/week/month/year",valueType:km}];function Dm(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function Rm(e,t){switch(t){case Tm.IS_NULL_OR_BLANK:return ym(e,Em.methodCall.IS_NULL_OR_BLANK,[]);case Tm.NOT_NULL_OR_BLANK:return ym(e,Em.methodCall.NOT_NULL_OR_BLANK,[]);case Tm.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return ym(e,Em.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case Tm.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return ym(e,Em.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case Tm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return ym(e,Em.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case Tm.IS_CURRENT:case Tm.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return ym(e,Em.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===Tm.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function Fm(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=wm(e),n=gm(o),a=Dm(o.operator.type);switch(a){case Tm.EQUALS:case Tm.NOT_EQUALS:case Tm.GREATER_THAN:case Tm.GREATER_THAN_OR_EQUAL:case Tm.LESS_THAN:case Tm.LESS_THAN_OR_EQUAL:return fm(o,a,n);case Tm.IS_NULL:return bm(o,Em.operations.EQUALS,{TYPE:"NULL"});case Tm.NOT_NULL:return bm(o,Em.operations.NOT_EQUALS,{TYPE:"NULL"});case Tm.IS_NULL_OR_BLANK:case Tm.NOT_NULL_OR_BLANK:case Tm.CONTAINS:case Tm.CONTAINS_WORDS_STARTING_WITH:case Tm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case Tm.IS_CURRENT:case Tm.IS_PREVIOUS:return Rm(o,a);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function Am(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function Nm(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?Tm[Tm.IS_NULL]:Tm[Tm.NOT_NULL];return Im.find(t=>t.type===e)}const i=Am(t.OPERATION,e);return Im.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}function Lm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return $m(Nm({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}const Mm=3;function _m(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[Tm[Tm.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[Tm[Tm.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[Tm[Tm.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[Tm[Tm.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&t.PARAMETERS.length===Mm:return[Tm[Tm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===Em.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===Mm&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[Tm["CURRENT"===t.PARAMETERS[2].VALUE?Tm.IS_CURRENT:Tm.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:Im.find(e=>e.type===i),value:o}}function Hm(e,t){return{combinator:Om.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return Hm(e,t);if("BINARY_EXPRESSION"===t.TYPE)return Lm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return _m(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let zm=class extends rm{ruleConfigChanged(e,t){this.config=Object.assign({combinators:Om,operators:Im,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:Hm(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=xm(e,Fm);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,$.Cg)([d.observable],zm.prototype,"ruleConfig",void 0),zm=(0,$.Cg)([(0,d.customElement)({name:"foundation-rule-expression-builder",styles:Dp,template:_p})],zm);const Pm={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},Um=[{type:Pm.PLUS,applyTo:[...um],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:Pm.MINUS,applyTo:[...um],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:Pm.MULTIPLY,applyTo:[...um],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:Pm.DIVIDE,applyTo:[...um],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:Pm.CONVERT_TO_DATE,applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:Pm.CONVERT_TO_DATE_TIME,applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function Bm(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=wm(e),n=gm(o),a=o.operator.type;switch(a){case Pm.TRIM:case Pm.CONVERT_TO_DATE:case Pm.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case Pm.TRIM:return ym(e,Em.methodCall.TRIM,[]);case Pm.CONVERT_TO_DATE:return ym(e,Em.methodCall.LONG_TO_DATE,[]);case Pm.CONVERT_TO_DATE_TIME:return ym(e,Em.methodCall.LONG_TO_DATE_TIME,[])}}(o,a);case Pm.PLUS:case Pm.MINUS:case Pm.DIVIDE:case Pm.MULTIPLY:return fm(o,a,n);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function Gm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return $m(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return Um.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function jm(e,t){return{combinator:lp,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return jm(e,t);if("BINARY_EXPRESSION"===t.TYPE)return Gm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[Pm[Pm.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[Pm[Pm.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[Pm[Pm.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:Um.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let Vm=class extends rm{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=jm(t.fields,i);this.config={combinators:[lp],operators:Um,fields:t.fields,model:o,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:Bm(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,$.Cg)([d.observable],Vm.prototype,"valueConfig",void 0),Vm=(0,$.Cg)([(0,d.customElement)({name:"foundation-value-expression-builder",styles:Dp,template:_p})],Vm);const Ym=d.html`
5614
+ `;let zp=class extends d.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),rp(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==ap(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Mp)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,Fp(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(lp.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(lp.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(lp.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,o=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:o,value:null,operator:null}};this.dispatchEvent(new CustomEvent(lp.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:Lp(this.model,t,i)};this.dispatchEvent(new CustomEvent(lp.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const o=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!o)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(lp.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:Ap(o,this.model)},bubbles:!0,composed:!0}))}};(0,$.Cg)([d.observable],zp.prototype,"config",void 0),(0,$.Cg)([d.observable],zp.prototype,"styles",void 0),(0,$.Cg)([d.observable],zp.prototype,"model",void 0),(0,$.Cg)([d.observable],zp.prototype,"index",void 0),(0,$.Cg)([(0,d.attr)({mode:"boolean"})],zp.prototype,"error",void 0),(0,$.Cg)([d.volatile],zp.prototype,"operandIterator",null),zp=(0,$.Cg)([(0,d.customElement)({name:"expression-rule",template:_p,styles:Hp,shadowOptions:{delegatesFocus:!0}})],zp);let Pp=class extends d.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=ep(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=tp(t);this.dispatchChangeEvent(i)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(lp.AddGroup,this.handleAddGroup),this.addEventListener(lp.DelGroup,this.handleDeleteGroup),this.addEventListener(lp.AddRule,this.handleAddRule),this.addEventListener(lp.DelRule,this.handleDeleteRule),this.addEventListener(lp.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(lp.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(lp.AddGroup,this.handleAddGroup),this.removeEventListener(lp.DelGroup,this.handleDeleteGroup),this.removeEventListener(lp.AddRule,this.handleAddRule),this.removeEventListener(lp.DelRule,this.handleDeleteRule),this.removeEventListener(lp.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(lp.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,o;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(o=e.fields)||void 0===o?void 0:o.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:Zh,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,o={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=Jh(this.model,t,o)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=Jh(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=qh(i=this.model,Xh(i,o=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==o))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,o;this.model=qh(i=this.model,Qh(i,o=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==o))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===Zh?Object.assign(Object.assign({},e),i):qh(e,Xh(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return qh(e,Qh(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};(0,$.Cg)([d.observable],Pp.prototype,"config",void 0),(0,$.Cg)([d.observable],Pp.prototype,"styles",void 0),(0,$.Cg)([d.observable],Pp.prototype,"model",void 0),Pp=(0,$.Cg)([(0,d.customElement)({name:"expression-builder",template:vp,styles:dp})],Pp);let Up=class extends Pp{};Up=(0,$.Cg)([(0,d.customElement)({name:"foundation-expression-builder",styles:dp,template:vp})],Up);const Bp=["int","short","long"],Gp=["double","bigdecimal"],jp=[...Bp,...Gp],Vp=["date","date-time"],Yp=["string","enum"],Wp=["boolean"],qp=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type};function Kp(e){switch(qp(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function Xp(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function Qp(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function Jp(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}const Zp=1e3;function em(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=qp(e);if(Yp.includes(i))return t;if(jp.includes(i))return t.toString();if(Wp.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Vp.includes(i))return(new Date(t).getTime()/Zp).toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function tm(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?tm(e,t):t(e)).filter(Boolean)}}function im(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=qp(e);if(Yp.includes(i))return t;if(Bp.includes(i))return parseInt(t);if(Gp.includes(i))return parseFloat(t);if(Wp.includes(i))return t;if(Vp.includes(i)){const e=new Date(parseInt(t)*Zp);return"date"===i?ip(e):op(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const om={template:vp,styles:dp};var nm;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(nm||(nm={}));const am=[{type:nm.logicalOperations.AND,maxRules:"many"},{type:nm.logicalOperations.OR,maxRules:"many"}],sm={EQUALS:nm.operations.EQUALS,NOT_EQUALS:nm.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:nm.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:nm.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:nm.operations.LESS_THAN,LESS_THAN_OR_EQUAL:nm.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:nm.operations.IS_CURRENT,IS_PREVIOUS:nm.operations.IS_PREVIOUS},rm={type:"enum",input:"select",values:{HOUR:"HOUR",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}},lm=[{type:sm.EQUALS,nbInputs:1,applyTo:[...Yp,...Wp,...jp,...Vp],tooltip:"Check the equality of the field compared to a set value"},{type:sm.NOT_EQUALS,nbInputs:1,applyTo:[...Yp,...Wp,...jp,...Vp],tooltip:"Check that the field is different from a set value"},{type:sm.IS_NULL,nbInputs:0,applyTo:["enum",...Wp,...jp,...Vp],tooltip:"Check if the field value is null"},{type:sm.NOT_NULL,nbInputs:0,applyTo:["enum",...Wp,...jp,...Vp],tooltip:"Check if the field value is not null"},{type:sm.IS_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:sm.NOT_NULL_OR_BLANK,nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:sm.CONTAINS,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:sm.CONTAINS_WORDS_STARTING_WITH,nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:sm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:sm.GREATER_THAN,nbInputs:1,applyTo:[...jp],tooltip:"Check if the field value is greater than a specified number"},{type:sm.GREATER_THAN_OR_EQUAL,nbInputs:1,applyTo:[...jp],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:sm.LESS_THAN,nbInputs:1,applyTo:[...jp],tooltip:"Check if the field value is less than a specified number"},{type:sm.LESS_THAN_OR_EQUAL,nbInputs:1,applyTo:[...jp],tooltip:"Check if the field value is less than or equal to a specified number"},{type:sm.IS_BEFORE,nbInputs:1,applyTo:[...Vp],tooltip:"Check if the field is before a specified date/time"},{type:sm.IS_AFTER,nbInputs:1,applyTo:[...Vp],tooltip:"Check if the field is after a specified date/time"},{type:sm.ON_OR_BEFORE,nbInputs:1,applyTo:[...Vp],tooltip:"Check if the field is on or before a specified date/time"},{type:sm.ON_OR_AFTER,nbInputs:1,applyTo:[...Vp],tooltip:"Check if the field is on or after a specified date/time"},{type:sm.IS_CURRENT,nbInputs:1,applyTo:[...Vp],tooltip:"Check whether the current date/time matches the current hour/day/week/month/year",valueType:rm},{type:sm.IS_PREVIOUS,nbInputs:1,applyTo:[...Vp],tooltip:"Check whether the current date/time matches the previous hour/day/week/month/year",valueType:rm}];function dm(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function cm(e,t){switch(t){case sm.IS_NULL_OR_BLANK:return Jp(e,nm.methodCall.IS_NULL_OR_BLANK,[]);case sm.NOT_NULL_OR_BLANK:return Jp(e,nm.methodCall.NOT_NULL_OR_BLANK,[]);case sm.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return Jp(e,nm.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case sm.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return Jp(e,nm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case sm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return Jp(e,nm.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case sm.IS_CURRENT:case sm.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return Jp(e,nm.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===sm.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function um(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=em(e),n=Kp(o),a=dm(o.operator.type);switch(a){case sm.EQUALS:case sm.NOT_EQUALS:case sm.GREATER_THAN:case sm.GREATER_THAN_OR_EQUAL:case sm.LESS_THAN:case sm.LESS_THAN_OR_EQUAL:return Xp(o,a,n);case sm.IS_NULL:return Qp(o,nm.operations.EQUALS,{TYPE:"NULL"});case sm.NOT_NULL:return Qp(o,nm.operations.NOT_EQUALS,{TYPE:"NULL"});case sm.IS_NULL_OR_BLANK:case sm.NOT_NULL_OR_BLANK:case sm.CONTAINS:case sm.CONTAINS_WORDS_STARTING_WITH:case sm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case sm.IS_CURRENT:case sm.IS_PREVIOUS:return cm(o,a);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function hm(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function pm(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?sm[sm.IS_NULL]:sm[sm.NOT_NULL];return lm.find(t=>t.type===e)}const i=hm(t.OPERATION,e);return lm.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}function mm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return im(pm({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}const gm=3;function vm(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[sm[sm.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[sm[sm.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[sm[sm.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[sm[sm.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&t.PARAMETERS.length===gm:return[sm[sm.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===nm.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===gm&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[sm["CURRENT"===t.PARAMETERS[2].VALUE?sm.IS_CURRENT:sm.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:lm.find(e=>e.type===i),value:o}}function fm(e,t){return{combinator:am.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return fm(e,t);if("BINARY_EXPRESSION"===t.TYPE)return mm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return vm(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let bm=class extends Pp{ruleConfigChanged(e,t){this.config=Object.assign({combinators:am,operators:lm,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:fm(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=tm(e,um);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,$.Cg)([d.observable],bm.prototype,"ruleConfig",void 0),bm=(0,$.Cg)([(0,d.customElement)({name:"foundation-rule-expression-builder",styles:dp,template:vp})],bm);const ym={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},Cm=[{type:ym.PLUS,applyTo:[...jp],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:ym.MINUS,applyTo:[...jp],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:ym.MULTIPLY,applyTo:[...jp],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:ym.DIVIDE,applyTo:[...jp],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:ym.CONVERT_TO_DATE,applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:ym.CONVERT_TO_DATE_TIME,applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function wm(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=em(e),n=Kp(o),a=o.operator.type;switch(a){case ym.TRIM:case ym.CONVERT_TO_DATE:case ym.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case ym.TRIM:return Jp(e,nm.methodCall.TRIM,[]);case ym.CONVERT_TO_DATE:return Jp(e,nm.methodCall.LONG_TO_DATE,[]);case ym.CONVERT_TO_DATE_TIME:return Jp(e,nm.methodCall.LONG_TO_DATE_TIME,[])}}(o,a);case ym.PLUS:case ym.MINUS:case ym.DIVIDE:case ym.MULTIPLY:return Xp(o,a,n);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function xm(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return im(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return Cm.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function $m(e,t){return{combinator:Uh,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return $m(e,t);if("BINARY_EXPRESSION"===t.TYPE)return xm(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[ym[ym.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[ym[ym.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[ym[ym.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:Cm.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let Sm=class extends Pp{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=$m(t.fields,i);this.config={combinators:[Uh],operators:Cm,fields:t.fields,model:o,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:wm(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,$.Cg)([d.observable],Sm.prototype,"valueConfig",void 0),Sm=(0,$.Cg)([(0,d.customElement)({name:"foundation-value-expression-builder",styles:dp,template:vp})],Sm);const Em=d.html`
5615
5615
  <template ${(0,d.ref)("notificationListener")}>
5616
5616
  <slot></slot>
5617
5617
  </template>
5618
- `;var Wm;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Wm||(Wm={}));const qm={mode:"open",delegatesFocus:!0};class Km extends s.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(Wm.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),ra(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>(0,$.sH)(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return(0,$.sH)(this,void 0,void 0,function*(){this.resourceName&&(yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return(0,$.sH)(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,k.d)(e))}):L.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e)})}showNotificationToast(e){const{HEADER:t,MESSAGE:i,NOTIFY_SEVERITY:o}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));const r={title:t,body:i,createdAt:n,toast:{details:e,type:null==o?void 0:o.toLowerCase(),buttons:s,autoClose:void 0!==a?!!a:!!this.closeTimeout,closeTimeout:null!=a?a:this.closeTimeout,position:this.toastPosition}};td(r,this.tagName)}}(0,$.Cg)([d.observable],Km.prototype,"notificationListener",void 0),(0,$.Cg)([D.dm],Km.prototype,"connect",void 0),(0,$.Cg)([(0,d.attr)({attribute:"resource-name"})],Km.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout",converter:d.nullableNumberConverter})],Km.prototype,"closeTimeout",void 0),(0,$.Cg)([d.observable],Km.prototype,"toastButtons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"toast-position"})],Km.prototype,"toastPosition",void 0),(0,$.Cg)([R.yW],Km.prototype,"datasource",void 0);const Xm=Km.compose({baseName:"notification-listener",template:Ym,shadowOptions:qm}),Qm=(e,t)=>i=>{const o="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return d.FASTElement.define(class extends e{},o(i))};function Jm(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=d.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Zm,ev=i(16171);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Zm||(Zm={}));class tv{constructor(e){this.analytics=(0,ev.Ay)(e)}trackEvent(e,t){ga.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const iv=s.DI.createInterface(e=>e.singleton(tv));var ov=i(98647),nv=i(35044);const av=(0,N.createLogger)("foundation-router");var sv=i(36132),rv=i(80751),lv=i(3479);const dv="$router",cv=Object.freeze({getOrCreateFor:e=>{const t=e[dv];return void 0!==t?t:e[dv]=new uv(e)},find:e=>lv.Ix.find(e),from:e=>lv.Ix.from(e)});class uv extends lv.LK{}const hv=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function pv(e){return hv.test(e)}function mv(e){return e.config instanceof ov.Y?e:cv.find(e)}function vv(e){return mv(e).parent}function gv(e){let t=mv(e);for(;t&&t.level>0;)t=t.parent;return t}function fv(e,t="/",i=!1){const o=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&o.endsWith(t)?o.slice(0,-1):o}function bv(e,t="/"){const i=e.split(t);return 2===i.length&&""===i[0]&&""!==i[1]?e:(i.length>1&&i.pop(),i.join(t))}function yv(e){return e.replace(`/*${rv.N}`,"")}const Cv=Object.freeze({path:Object.freeze({get current(){return sv.qh.path.current},generateRoute:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=mv(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t=!0)=>{e&&pv(e)?location.href=e:(history.pushState({},document.title,e),t&&Cv.path.trigger(e))},replace:(e,t=!0)=>{e&&pv(e)?location.href=e:(history.replaceState({},document.title,e),t&&Cv.path.trigger(e))},trigger:e=>{sv.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=mv(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Cv.name.generateRoute(e,t,i);null!==n&&Cv.path.push(n,o)}),replace:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Cv.name.generateRoute(e,t,i);null!==n&&Cv.path.replace(n,o)}),trigger:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){const o=yield Cv.name.generateRoute(e,t,i);null!==o&&Cv.path.trigger(o)})})}),wv=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,xv=10;function $v(e,t=wv,i=xv){const o=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,n)=>{e.navItems.filter(t).map((t,o)=>{var a,s,r,l;const d=null!==(a=t.placementIndex)&&void 0!==a?a:n*i+o;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})}).forEach(e=>o.push(e))}),o.sort((e,t)=>e.placementIndex-t.placementIndex)}class Sv extends rv.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(av.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(o))return av.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return av.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,$.Cg)([d.observable],Sv.prototype,"definitions",void 0);class Ev extends ov.Y{constructor(){super(),this.logger=av,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new Sv(this),this.basename=bn.OB,this.routes=new Sv(this)}getNavItems(e=wv){return $v(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,$.sH)(this,void 0,void 0,function*(){this.analytics.trackEvent(Zm.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,$.sH)(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,o;if(this.user.isAuthenticated){const n=null!==(o=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==o?o:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),Cv.name.replace(e.router,n)}else this.user.trackPath(),Cv.name.replace(e.router,this.loginPath)})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),Cv.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,$.sH)(this,void 0,void 0,function*(){const o=yield i.generateRouteFromName.call(this,e,t);return o?this.generateNavigationPath(o):null})}navigateTo(e){return(0,$.sH)(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield Cv.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&Cv.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=nv.C.build(t);let n=i&&!e.startsWith(i)?fv([i,e]):e;return n=o?`${n}?${o}`:n,n}getNavigationPathBasename(){var e,t;const i=this.parent,o=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return o?yv(o):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,$.Cg)([s.Container],Ev.prototype,"container",void 0),(0,$.Cg)([iv],Ev.prototype,"analytics",void 0),(0,$.Cg)([Br.KJ],Ev.prototype,"user",void 0),(0,$.Cg)([Wt.N],Ev.prototype,"_session",void 0);const Ov="navigate-to",Tv="generate-navigation-path";let kv=class extends(cv.from(d.FASTElement)){constructor(){super(...arguments),this.logger=av,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:o}=e.detail;if(!o)return;o(this.config.generateNavigationPath(t,i))}}get router(){return this[dv]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),d.DOM.queueUpdate(()=>(0,$.sH)(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(Ov,this.onNavigateTo),this.addEventListener(Tv,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(Ov,this.onNavigateTo),this.removeEventListener(Tv,this.onGenerateNavigationPath)}};kv=(0,$.Cg)([(0,d.customElement)({name:"foundation-router"})],kv);const Iv=e=>d.html`
5618
+ `;var Om;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Om||(Om={}));const Tm={mode:"open",delegatesFocus:!0};class km extends s.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,$.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(Om.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),jn(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>(0,$.sH)(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return(0,$.sH)(this,void 0,void 0,function*(){this.resourceName&&(yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return(0,$.sH)(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,k.d)(e))}):L.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e)})}showNotificationToast(e){const{HEADER:t,MESSAGE:i,NOTIFY_SEVERITY:o}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));const r={title:t,body:i,createdAt:n,toast:{details:e,type:null==o?void 0:o.toLowerCase(),buttons:s,autoClose:void 0!==a?!!a:!!this.closeTimeout,closeTimeout:null!=a?a:this.closeTimeout,position:this.toastPosition}};(0,zl.u)(r,this.tagName)}}(0,$.Cg)([d.observable],km.prototype,"notificationListener",void 0),(0,$.Cg)([D.dm],km.prototype,"connect",void 0),(0,$.Cg)([(0,d.attr)({attribute:"resource-name"})],km.prototype,"resourceName",void 0),(0,$.Cg)([(0,d.attr)({attribute:"close-timeout",converter:d.nullableNumberConverter})],km.prototype,"closeTimeout",void 0),(0,$.Cg)([d.observable],km.prototype,"toastButtons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"toast-position"})],km.prototype,"toastPosition",void 0),(0,$.Cg)([R.yW],km.prototype,"datasource",void 0);const Im=km.compose({baseName:"notification-listener",template:Em,shadowOptions:Tm}),Dm=(e,t)=>i=>{const o="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return d.FASTElement.define(class extends e{},o(i))};function Rm(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=d.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Fm,Nm=i(16171);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Fm||(Fm={}));class Am{constructor(e){this.analytics=(0,Nm.Ay)(e)}trackEvent(e,t){Zn.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Lm=s.DI.createInterface(e=>e.singleton(Am));var Mm=i(98647),Hm=i(35044);const _m=(0,A.createLogger)("foundation-router");var zm=i(36132),Pm=i(80751),Um=i(3479);const Bm="$router",Gm=Object.freeze({getOrCreateFor:e=>{const t=e[Bm];return void 0!==t?t:e[Bm]=new jm(e)},find:e=>Um.Ix.find(e),from:e=>Um.Ix.from(e)});class jm extends Um.LK{}const Vm=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function Ym(e){return Vm.test(e)}function Wm(e){return e.config instanceof Mm.Y?e:Gm.find(e)}function qm(e){return Wm(e).parent}function Km(e){let t=Wm(e);for(;t&&t.level>0;)t=t.parent;return t}function Xm(e,t="/",i=!1){const o=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&o.endsWith(t)?o.slice(0,-1):o}function Qm(e,t="/"){const i=e.split(t);return 2===i.length&&""===i[0]&&""!==i[1]?e:(i.length>1&&i.pop(),i.join(t))}function Jm(e){return e.replace(`/*${Pm.N}`,"")}const Zm=Object.freeze({path:Object.freeze({get current(){return zm.qh.path.current},generateRoute:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Wm(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t=!0)=>{e&&Ym(e)?location.href=e:(history.pushState({},document.title,e),t&&Zm.path.trigger(e))},replace:(e,t=!0)=>{e&&Ym(e)?location.href=e:(history.replaceState({},document.title,e),t&&Zm.path.trigger(e))},trigger:e=>{zm.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Wm(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Zm.name.generateRoute(e,t,i);null!==n&&Zm.path.push(n,o)}),replace:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Zm.name.generateRoute(e,t,i);null!==n&&Zm.path.replace(n,o)}),trigger:(e,t,...i)=>(0,$.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){const o=yield Zm.name.generateRoute(e,t,i);null!==o&&Zm.path.trigger(o)})})}),eg=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,tg=10;function ig(e,t=eg,i=tg){const o=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,n)=>{e.navItems.filter(t).map((t,o)=>{var a,s,r,l;const d=null!==(a=t.placementIndex)&&void 0!==a?a:n*i+o;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})}).forEach(e=>o.push(e))}),o.sort((e,t)=>e.placementIndex-t.placementIndex)}class og extends Pm.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(_m.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(o))return _m.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return _m.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,$.Cg)([d.observable],og.prototype,"definitions",void 0);class ng extends Mm.Y{constructor(){super(),this.logger=_m,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new og(this),this.basename=F.OB,this.routes=new og(this)}getNavItems(e=eg){return ig(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,$.sH)(this,void 0,void 0,function*(){this.analytics.trackEvent(Fm.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,$.sH)(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,o;if(this.user.isAuthenticated){const n=null!==(o=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==o?o:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),Zm.name.replace(e.router,n)}else this.user.trackPath(),Zm.name.replace(e.router,this.loginPath)})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),Zm.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,$.sH)(this,void 0,void 0,function*(){const o=yield i.generateRouteFromName.call(this,e,t);return o?this.generateNavigationPath(o):null})}navigateTo(e){return(0,$.sH)(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield Zm.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&Zm.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=Hm.C.build(t);let n=i&&!e.startsWith(i)?Xm([i,e]):e;return n=o?`${n}?${o}`:n,n}getNavigationPathBasename(){var e,t;const i=this.parent,o=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return o?Jm(o):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,$.Cg)([s.Container],ng.prototype,"container",void 0),(0,$.Cg)([Lm],ng.prototype,"analytics",void 0),(0,$.Cg)([$r.KJ],ng.prototype,"user",void 0),(0,$.Cg)([Ht.N],ng.prototype,"_session",void 0);const ag="navigate-to",sg="generate-navigation-path";let rg=class extends(Gm.from(d.FASTElement)){constructor(){super(...arguments),this.logger=_m,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:o}=e.detail;if(!o)return;o(this.config.generateNavigationPath(t,i))}}get router(){return this[Bm]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),d.DOM.queueUpdate(()=>(0,$.sH)(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(ag,this.onNavigateTo),this.addEventListener(sg,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(ag,this.onNavigateTo),this.removeEventListener(sg,this.onGenerateNavigationPath)}};rg=(0,$.Cg)([(0,d.customElement)({name:"foundation-router"})],rg);const lg=e=>d.html`
5619
5619
 
5620
- <${e}-card class=${e=>(0,ee.x)("stepper-tab",["stepper-tab-hidden",e.hideTabs])} part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab">
5621
- <div class=${e=>(0,ee.x)("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])} part="stepper-tab-menu">
5620
+ <${e}-card class=${e=>(0,V.x)("stepper-tab",["stepper-tab-hidden",e.hideTabs])} part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab">
5621
+ <div class=${e=>(0,V.x)("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])} part="stepper-tab-menu">
5622
5622
  <slot name="tab" ${(0,d.slotted)("tabs")} ></slot>
5623
5623
  </div>
5624
5624
  ${(0,d.when)(e=>e.orientation===s.TabsOrientation.vertical,d.html`
@@ -5646,9 +5646,9 @@ class="margin"
5646
5646
  </div>
5647
5647
  `)}
5648
5648
  </${e}-card>
5649
- `,Dv=d.html`
5650
- ${e=>Iv(z(e))}
5651
- `,Rv=d.css`
5649
+ `,dg=d.html`
5650
+ ${e=>lg(z(e))}
5651
+ `,cg=d.css`
5652
5652
  :host {
5653
5653
  display: flex;
5654
5654
  height: 100%;
@@ -5747,5 +5747,5 @@ class="margin"
5747
5747
  max-height: 70px;
5748
5748
  height: 70px;
5749
5749
  }
5750
- `;class Fv extends s.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.orientation=s.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,n=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",a),e.setAttribute("aria-controls",a),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=n)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)}),this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&this.tabpanels.length>0}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return L.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(L.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Wa.NF)()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Wa.NF)()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}(0,$.Cg)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],Fv.prototype,"hideSubmitButton",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-step-number",mode:"boolean"})],Fv.prototype,"hideStepNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],Fv.prototype,"allowBackwardJumps",void 0),(0,$.Cg)([(0,d.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],Fv.prototype,"allowForwardJumps",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-all-buttons",mode:"boolean"})],Fv.prototype,"hideAllButtons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-tabs",mode:"boolean"})],Fv.prototype,"hideTabs",void 0),(0,$.Cg)([d.attr],Fv.prototype,"orientation",void 0),(0,$.Cg)([d.attr],Fv.prototype,"activeid",void 0),(0,$.Cg)([d.observable],Fv.prototype,"tabs",void 0),(0,$.Cg)([d.observable],Fv.prototype,"tabpanels",void 0),(0,$.Cg)([d.observable],Fv.prototype,"validation",void 0),(0,$.Cg)([d.observable],Fv.prototype,"progressValue",void 0),(0,$.Cg)([d.observable],Fv.prototype,"activeTabIndex",void 0),(0,$.Cg)([d.volatile],Fv.prototype,"disabledPreviousStep",null),(0,$.Cg)([d.volatile],Fv.prototype,"isLastStep",null),(0,$.Cg)([d.volatile],Fv.prototype,"islastStepValid",null);const Av=void 0,Nv={},Lv=Fv.compose(Object.assign({baseName:"stepper",template:Dv,styles:Rv,shadowOptions:Av},Nv)),Mv=()=>vl().register(np)},80273:(e,t,i)=>{i.d(t,{Du:()=>l,IT:()=>s,WP:()=>n,f4:()=>r,zz:()=>a});var o=i(52945);const n=(e,t)=>{(0,o.O5)(e,t)};var a,s;!function(e){e.Italic="italic",e.Normal="normal"}(a||(a={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(s||(s={}));const r=(e,t=a.Normal,i=s.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${i};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
5751
- //# sourceMappingURL=816.6dbf1a0a1072650412d6fe5f8bb168c1.js.map
5750
+ `;class ug extends s.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.orientation=s.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,n=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",a),e.setAttribute("aria-controls",a),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=n)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)}),this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&this.tabpanels.length>0}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return L.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(L.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Da.NF)()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Da.NF)()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}(0,$.Cg)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],ug.prototype,"hideSubmitButton",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-step-number",mode:"boolean"})],ug.prototype,"hideStepNumber",void 0),(0,$.Cg)([(0,d.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],ug.prototype,"allowBackwardJumps",void 0),(0,$.Cg)([(0,d.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],ug.prototype,"allowForwardJumps",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-all-buttons",mode:"boolean"})],ug.prototype,"hideAllButtons",void 0),(0,$.Cg)([(0,d.attr)({attribute:"hide-tabs",mode:"boolean"})],ug.prototype,"hideTabs",void 0),(0,$.Cg)([d.attr],ug.prototype,"orientation",void 0),(0,$.Cg)([d.attr],ug.prototype,"activeid",void 0),(0,$.Cg)([d.observable],ug.prototype,"tabs",void 0),(0,$.Cg)([d.observable],ug.prototype,"tabpanels",void 0),(0,$.Cg)([d.observable],ug.prototype,"validation",void 0),(0,$.Cg)([d.observable],ug.prototype,"progressValue",void 0),(0,$.Cg)([d.observable],ug.prototype,"activeTabIndex",void 0),(0,$.Cg)([d.volatile],ug.prototype,"disabledPreviousStep",null),(0,$.Cg)([d.volatile],ug.prototype,"isLastStep",null),(0,$.Cg)([d.volatile],ug.prototype,"islastStepValid",null);const hg=void 0,pg={},mg=ug.compose(Object.assign({baseName:"stepper",template:dg,styles:cg,shadowOptions:hg},pg)),gg=()=>Xr().register(Hh)}}]);
5751
+ //# sourceMappingURL=876.4b1a1261b019a55b536b90f1701ffb4e.js.map