@genesislcap/design-system-configurator 14.27.1 → 14.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/{361.361.8da6cce02a7f7112d807.js → 361.361.00e7d36e197713e2aa3f.js} +1 -1
  2. package/dist/{430.430.3ee7c13492ce7a9b32af.js → 430.430.58196dc932265ccbc218.js} +1 -1
  3. package/dist/635.0aa8d06e0e7e6d72cb37fd225689f982.js.map +1 -0
  4. package/dist/{635.635.dd000d27ca78f1e3c7e6.js → 635.635.7a698dd539b9959b1518.js} +4 -4
  5. package/dist/{688.688.345b2976753560251c8b.js → 688.688.91fdd430c7502dad7bf0.js} +2 -2
  6. package/dist/{688.640200870affa5b6de487ec74eca5098.js.map → 688.71f7caa7c5596ce9e8a7070671133f13.js.map} +1 -1
  7. package/dist/{755.9a7aecd6f809d3501c72cb59e24e35af.js.map → 755.3286f535f2f194a1cf0e810fede2ea5a.js.map} +1 -1
  8. package/dist/755.755.8761c4e8bf0f126519e3.js +2 -0
  9. package/dist/{785.785.9423255d4eb858effe11.js → 785.785.04cdb08c414df221465a.js} +2 -2
  10. package/dist/designSystemConfigurator.07c538128920446416bb6f7e30e25d35.js.map +1 -0
  11. package/dist/index.html +1 -1
  12. package/dist/info.html +4 -4
  13. package/dist/main.88b43c4401afafb787e61e91d058d30e.js.map +1 -0
  14. package/dist/main.b85f69337ffb3d80058a.js +2 -0
  15. package/dist/remoteEntry.js +2 -2
  16. package/package.json +7 -7
  17. package/dist/635.300d266f82487685cb5ddbc087296342.js.map +0 -1
  18. package/dist/755.755.31adebace6f9c1ed030c.js +0 -2
  19. package/dist/designSystemConfigurator.507336bf57c4e53d7892f73f4fcd594f.js.map +0 -1
  20. package/dist/main.3e274355b8d0bb00035d.js +0 -2
  21. package/dist/main.72ce388fbbceba1e0520d86a81c4fba2.js.map +0 -1
  22. /package/dist/{785.785.9423255d4eb858effe11.js.LICENSE.txt → 785.785.04cdb08c414df221465a.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[361],{72361:(e,a,t)=>{t.r(a),t.d(a,{Accordion:()=>r.Accordion,AccordionItem:()=>r.AccordionItem,ActionsMenu:()=>i.ActionsMenu,Anchor:()=>i.Anchor,AnchoredRegion:()=>r.AnchoredRegion,Avatar:()=>r.Avatar,Badge:()=>i.Badge,Banner:()=>i.Banner,Breadcrumb:()=>i.Breadcrumb,BreadcrumbItem:()=>i.BreadcrumbItem,Button:()=>i.Button,Calendar:()=>r.Calendar,Card:()=>i.Card,Checkbox:()=>i.Checkbox,ColorHEX:()=>n,Combobox:()=>i.Combobox,ConnectionIndicator:()=>i.ConnectionIndicator,DataGrid:()=>i.DataGrid,DataGridCell:()=>i.DataGridCell,DataGridRow:()=>i.DataGridRow,DatePicker:()=>i.DatePicker,Dialog:()=>i.Dialog,Disclosure:()=>i.Disclosure,Divider:()=>i.Divider,DropdownMenu:()=>i.DropdownMenu,ErrorBanner:()=>i.ErrorBanner,ErrorBoundary:()=>i.ErrorBoundary,ErrorDialog:()=>i.ErrorDialog,FileUpload:()=>i.FileUpload,Filter:()=>i.Filter,FilterBar:()=>i.FilterBar,FlexLayout:()=>i.FlexLayout,Flipper:()=>i.Flipper,Flyout:()=>i.Flyout,GridLayout:()=>i.GridLayout,GridLayoutItem:()=>i.GridLayoutItem,HorizontalScroll:()=>r.HorizontalScroll,Icon:()=>i.Icon,Listbox:()=>r.Listbox,ListboxOption:()=>i.ListboxOption,Menu:()=>i.Menu,MenuItem:()=>i.MenuItem,Modal:()=>i.Modal,Multiselect:()=>i.Multiselect,NumberField:()=>i.NumberField,Picker:()=>r.Picker,Progress:()=>i.Progress,ProgressRing:()=>i.ProgressRing,Radio:()=>i.Radio,RadioGroup:()=>i.RadioGroup,Search:()=>r.Search,SegmentedControl:()=>i.SegmentedControl,SegmentedItem:()=>i.SegmentedItem,Select:()=>i.Select,Skeleton:()=>i.Skeleton,Slider:()=>i.Slider,SliderLabel:()=>r.SliderLabel,Snackbar:()=>i.Snackbar,Switch:()=>i.Switch,Tab:()=>i.Tab,TabPanel:()=>i.TabPanel,Tabs:()=>i.Tabs,TextArea:()=>i.TextArea,TextField:()=>i.TextField,Toast:()=>i.Toast,Toolbar:()=>i.Toolbar,Tooltip:()=>i.Tooltip,TreeItem:()=>i.TreeItem,TreeView:()=>i.TreeView,UrlInput:()=>i.UrlInput,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillActiveDeltaValue:()=>F,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillFocusDeltaValue:()=>f,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillHoverDeltaValue:()=>h,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentFillRestDeltaValue:()=>c,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundActiveDeltaValue:()=>m,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundFocusDeltaValue:()=>y,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundHoverDeltaValue:()=>S,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentForegroundRestDeltaValue:()=>g,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>p,alphaAccordion:()=>Ae,alphaAccordionItem:()=>xe,alphaAccordionItemShadowOptions:()=>Ge,alphaAccordionItemStyles:()=>ze,alphaAccordionItemTemplate:()=>Me,alphaAccordionShadowOptions:()=>He,alphaAccordionStyles:()=>Te,alphaAccordionTemplate:()=>Le,alphaActionsMenu:()=>We,alphaActionsMenuShadowOptions:()=>Xe,alphaActionsMenuStyles:()=>je,alphaActionsMenuTemplate:()=>Ye,alphaAnchor:()=>Ze,alphaAnchorShadowOptions:()=>la,alphaAnchorStyles:()=>ta,alphaAnchorTemplate:()=>aa,alphaAnchoredRegion:()=>ua,alphaAnchoredRegionShadowOptions:()=>ca,alphaAnchoredRegionStyles:()=>da,alphaAnchoredRegionTemplate:()=>sa,alphaAvatar:()=>Sa,alphaAvatarShadowOptions:()=>Ra,alphaAvatarStyles:()=>Da,alphaAvatarTemplate:()=>ya,alphaBadge:()=>Aa,alphaBadgeShadowOptions:()=>Ha,alphaBadgeStyles:()=>Ta,alphaBadgeTemplate:()=>La,alphaBanner:()=>xa,alphaBannerShadowOptions:()=>Ga,alphaBannerStyles:()=>za,alphaBannerTemplate:()=>Ma,alphaBreadcrumb:()=>Wa,alphaBreadcrumbItem:()=>Za,alphaBreadcrumbItemShadowOptions:()=>lt,alphaBreadcrumbItemStyles:()=>tt,alphaBreadcrumbItemTemplate:()=>at,alphaBreadcrumbShadowOptions:()=>Xa,alphaBreadcrumbStyles:()=>ja,alphaBreadcrumbTemplate:()=>Ya,alphaButton:()=>ut,alphaButtonShadowOptions:()=>ct,alphaButtonStyles:()=>dt,alphaButtonTemplate:()=>st,alphaCalendar:()=>St,alphaCalendarShadowOptions:()=>Rt,alphaCalendarStyles:()=>Dt,alphaCalendarTemplate:()=>yt,alphaCard:()=>At,alphaCardShadowOptions:()=>Ht,alphaCardStyles:()=>Tt,alphaCardTemplate:()=>Lt,alphaCheckbox:()=>xt,alphaCheckboxShadowOptions:()=>Gt,alphaCheckboxStyles:()=>zt,alphaCheckboxTemplate:()=>Mt,alphaCombobox:()=>Wt,alphaComboboxShadowOptions:()=>Xt,alphaComboboxStyles:()=>jt,alphaComboboxTemplate:()=>Yt,alphaConnectionIndicator:()=>Zt,alphaConnectionIndicatorShadowOptions:()=>ll,alphaConnectionIndicatorStyles:()=>tl,alphaConnectionIndicatorTemplate:()=>al,alphaDataGrid:()=>ul,alphaDataGridCell:()=>Sl,alphaDataGridCellShadowOptions:()=>Rl,alphaDataGridCellStyles:()=>Dl,alphaDataGridCellTemplate:()=>yl,alphaDataGridRow:()=>Al,alphaDataGridRowShadowOptions:()=>Hl,alphaDataGridRowStyles:()=>Tl,alphaDataGridRowTemplate:()=>Ll,alphaDataGridShadowOptions:()=>cl,alphaDataGridStyles:()=>dl,alphaDataGridTemplate:()=>sl,alphaDatePicker:()=>xl,alphaDatePickerShadowOptions:()=>Gl,alphaDatePickerStyles:()=>zl,alphaDatePickerTemplate:()=>Ml,alphaDialog:()=>Wl,alphaDialogShadowOptions:()=>Xl,alphaDialogStyles:()=>jl,alphaDialogTemplate:()=>Yl,alphaDisclosure:()=>Zl,alphaDisclosureShadowOptions:()=>lo,alphaDisclosureStyles:()=>to,alphaDisclosureTemplate:()=>ao,alphaDivider:()=>uo,alphaDividerShadowOptions:()=>ho,alphaDividerStyles:()=>co,alphaDividerTemplate:()=>so,alphaDropdownMenu:()=>mo,alphaDropdownMenuShadowOptions:()=>Co,alphaDropdownMenuStyles:()=>Ro,alphaDropdownMenuTemplate:()=>Do,alphaErrorBanner:()=>bo,alphaErrorBannerShadowOptions:()=>Po,alphaErrorBannerStyles:()=>Ho,alphaErrorBannerTemplate:()=>To,alphaErrorBoundary:()=>Bo,alphaErrorBoundaryShadowOptions:()=>Eo,alphaErrorBoundaryStyles:()=>Go,alphaErrorBoundaryTemplate:()=>zo,alphaErrorDialog:()=>_o,alphaErrorDialogShadowOptions:()=>qo,alphaErrorDialogStyles:()=>Xo,alphaErrorDialogTemplate:()=>jo,alphaFileUpload:()=>en,alphaFileUploadShadowOptions:()=>on,alphaFileUploadStyles:()=>ln,alphaFileUploadTemplate:()=>tn,alphaFilter:()=>sn,alphaFilterBar:()=>yn,alphaFilterBarShadowOptions:()=>vn,alphaFilterBarStyles:()=>Cn,alphaFilterBarTemplate:()=>Rn,alphaFilterShadowOptions:()=>Fn,alphaFilterStyles:()=>hn,alphaFilterTemplate:()=>cn,alphaFlexLayout:()=>Ln,alphaFlexLayoutShadowOptions:()=>In,alphaFlexLayoutStyles:()=>Pn,alphaFlexLayoutTemplate:()=>Hn,alphaFlipper:()=>Mn,alphaFlipperShadowOptions:()=>Un,alphaFlipperStyles:()=>En,alphaFlipperTemplate:()=>Gn,alphaFlyout:()=>Yn,alphaFlyoutShadowOptions:()=>Jn,alphaFlyoutStyles:()=>qn,alphaFlyoutTemplate:()=>Xn,alphaGridLayout:()=>ai,alphaGridLayoutItem:()=>si,alphaGridLayoutItemShadowOptions:()=>Fi,alphaGridLayoutItemStyles:()=>hi,alphaGridLayoutItemTemplate:()=>ci,alphaGridLayoutShadowOptions:()=>ni,alphaGridLayoutStyles:()=>oi,alphaGridLayoutTemplate:()=>li,alphaHorizontalScroll:()=>yi,alphaHorizontalScrollShadowOptions:()=>vi,alphaHorizontalScrollStyles:()=>Ci,alphaHorizontalScrollTemplate:()=>Ri,alphaIcon:()=>Li,alphaIconShadowOptions:()=>Ii,alphaIconStyles:()=>Pi,alphaIconTemplate:()=>Hi,alphaListbox:()=>Mi,alphaListboxOption:()=>Yi,alphaListboxOptionShadowOptions:()=>Ji,alphaListboxOptionStyles:()=>qi,alphaListboxOptionTemplate:()=>Xi,alphaListboxShadowOptions:()=>Ui,alphaListboxStyles:()=>Ei,alphaListboxTemplate:()=>Gi,alphaMenu:()=>ar,alphaMenuItem:()=>sr,alphaMenuItemShadowOptions:()=>Fr,alphaMenuItemStyles:()=>hr,alphaMenuItemTemplate:()=>cr,alphaMenuShadowOptions:()=>nr,alphaMenuStyles:()=>or,alphaMenuTemplate:()=>lr,alphaModal:()=>yr,alphaModalShadowOptions:()=>vr,alphaModalStyles:()=>Cr,alphaModalTemplate:()=>Rr,alphaMultiselect:()=>Lr,alphaMultiselectShadowOptions:()=>Ir,alphaMultiselectStyles:()=>Pr,alphaMultiselectTemplate:()=>Hr,alphaNumberField:()=>Mr,alphaNumberFieldShadowOptions:()=>Ur,alphaNumberFieldStyles:()=>Er,alphaNumberFieldTemplate:()=>Gr,alphaPicker:()=>Yr,alphaPickerShadowOptions:()=>Jr,alphaPickerStyles:()=>qr,alphaPickerTemplate:()=>Xr,alphaProgress:()=>au,alphaProgressRing:()=>su,alphaProgressRingShadowOptions:()=>Fu,alphaProgressRingStyles:()=>hu,alphaProgressRingTemplate:()=>cu,alphaProgressShadowOptions:()=>nu,alphaProgressStyles:()=>ou,alphaProgressTemplate:()=>lu,alphaRadio:()=>yu,alphaRadioGroup:()=>Lu,alphaRadioGroupShadowOptions:()=>Iu,alphaRadioGroupStyles:()=>Pu,alphaRadioGroupTemplate:()=>Hu,alphaRadioShadowOptions:()=>vu,alphaRadioStyles:()=>Cu,alphaRadioTemplate:()=>Ru,alphaSearch:()=>Mu,alphaSearchShadowOptions:()=>Uu,alphaSearchStyles:()=>Eu,alphaSearchTemplate:()=>Gu,alphaSegmentedControl:()=>Yu,alphaSegmentedControlShadowOptions:()=>Ju,alphaSegmentedControlStyles:()=>qu,alphaSegmentedControlTemplate:()=>Xu,alphaSegmentedItem:()=>ap,alphaSegmentedItemShadowOptions:()=>np,alphaSegmentedItemStyles:()=>op,alphaSegmentedItemTemplate:()=>lp,alphaSelect:()=>sp,alphaSelectShadowOptions:()=>Fp,alphaSelectStyles:()=>hp,alphaSelectTemplate:()=>cp,alphaSkeleton:()=>yp,alphaSkeletonShadowOptions:()=>vp,alphaSkeletonStyles:()=>Cp,alphaSkeletonTemplate:()=>Rp,alphaSlider:()=>Lp,alphaSliderLabel:()=>Mp,alphaSliderLabelShadowOptions:()=>Up,alphaSliderLabelStyles:()=>Ep,alphaSliderLabelTemplate:()=>Gp,alphaSliderShadowOptions:()=>Ip,alphaSliderStyles:()=>Pp,alphaSliderTemplate:()=>Hp,alphaSnackbar:()=>Yp,alphaSnackbarShadowOptions:()=>Jp,alphaSnackbarStyles:()=>qp,alphaSnackbarTemplate:()=>Xp,alphaSwitch:()=>as,alphaSwitchShadowOptions:()=>ns,alphaSwitchStyles:()=>os,alphaSwitchTemplate:()=>ls,alphaTab:()=>ss,alphaTabPanel:()=>ys,alphaTabPanelShadowOptions:()=>vs,alphaTabPanelStyles:()=>Cs,alphaTabPanelTemplate:()=>Rs,alphaTabShadowOptions:()=>Fs,alphaTabStyles:()=>hs,alphaTabTemplate:()=>cs,alphaTabs:()=>Ls,alphaTabsShadowOptions:()=>Is,alphaTabsStyles:()=>Ps,alphaTabsTemplate:()=>Hs,alphaTextArea:()=>Ms,alphaTextAreaShadowOptions:()=>Us,alphaTextAreaStyles:()=>Es,alphaTextAreaTemplate:()=>Gs,alphaTextField:()=>Ys,alphaTextFieldShadowOptions:()=>Js,alphaTextFieldStyles:()=>qs,alphaTextFieldTemplate:()=>Xs,alphaToast:()=>ad,alphaToastShadowOptions:()=>nd,alphaToastStyles:()=>od,alphaToastTemplate:()=>ld,alphaToolbar:()=>sd,alphaToolbarShadowOptions:()=>Fd,alphaToolbarStyles:()=>hd,alphaToolbarTemplate:()=>cd,alphaTooltip:()=>yd,alphaTooltipShadowOptions:()=>vd,alphaTooltipStyles:()=>Cd,alphaTooltipTemplate:()=>Rd,alphaTreeItem:()=>Ld,alphaTreeItemShadowOptions:()=>Id,alphaTreeItemStyles:()=>Pd,alphaTreeItemTemplate:()=>Hd,alphaTreeView:()=>Md,alphaTreeViewShadowOptions:()=>Ud,alphaTreeViewStyles:()=>Ed,alphaTreeViewTemplate:()=>Gd,alphaUrlInput:()=>Yd,alphaUrlInputShadowOptions:()=>Jd,alphaUrlInputStyles:()=>qd,alphaUrlInputTemplate:()=>Xd,baseComponents:()=>Kd,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseHeightMultiplierValue:()=>X,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>d,bodyFont:()=>r.bodyFont,bodyFontValue:()=>Q,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>q,defaultAccordionConfig:()=>be,defaultAccordionItemConfig:()=>Be,defaultActionsMenuConfig:()=>_e,defaultAnchorConfig:()=>ea,defaultAnchoredRegionConfig:()=>pa,defaultAvatarConfig:()=>ma,defaultBadgeConfig:()=>ba,defaultBannerConfig:()=>Ba,defaultBreadcrumbConfig:()=>_a,defaultBreadcrumbItemConfig:()=>et,defaultButtonConfig:()=>pt,defaultCalendarConfig:()=>mt,defaultCardConfig:()=>bt,defaultCheckboxConfig:()=>Bt,defaultComboboxConfig:()=>_t,defaultConnectionIndicatorConfig:()=>el,defaultDataGridCellConfig:()=>ml,defaultDataGridConfig:()=>pl,defaultDataGridRowConfig:()=>bl,defaultDatePickerConfig:()=>Bl,defaultDialogConfig:()=>_l,defaultDisclosureConfig:()=>eo,defaultDividerConfig:()=>po,defaultDropdownMenuConfig:()=>yo,defaultErrorBannerConfig:()=>Lo,defaultErrorBoundaryConfig:()=>Mo,defaultErrorDialogConfig:()=>Yo,defaultFileUploadConfig:()=>an,defaultFilterBarConfig:()=>Dn,defaultFilterConfig:()=>dn,defaultFlexLayoutConfig:()=>Tn,defaultFlipperConfig:()=>zn,defaultFlyoutConfig:()=>jn,defaultGridLayoutConfig:()=>ti,defaultGridLayoutItemConfig:()=>di,defaultHorizontalScrollConfig:()=>Di,defaultIconConfig:()=>Ti,defaultListboxConfig:()=>zi,defaultListboxOptionConfig:()=>ji,defaultMenuConfig:()=>tr,defaultMenuItemConfig:()=>dr,defaultModalConfig:()=>Dr,defaultMultiselectConfig:()=>Tr,defaultNumberFieldConfig:()=>zr,defaultPickerConfig:()=>jr,defaultProgressConfig:()=>tu,defaultProgressRingConfig:()=>du,defaultRadioConfig:()=>Du,defaultRadioGroupConfig:()=>Tu,defaultSearchConfig:()=>zu,defaultSegmentedControlConfig:()=>ju,defaultSegmentedItemConfig:()=>tp,defaultSelectConfig:()=>dp,defaultSkeletonConfig:()=>Dp,defaultSliderConfig:()=>Tp,defaultSliderLabelConfig:()=>zp,defaultSnackbarConfig:()=>jp,defaultSwitchConfig:()=>ts,defaultTabConfig:()=>ds,defaultTabPanelConfig:()=>Ds,defaultTabsConfig:()=>Ts,defaultTextAreaConfig:()=>zs,defaultTextFieldConfig:()=>js,defaultToastConfig:()=>td,defaultToolbarConfig:()=>dd,defaultTooltipConfig:()=>Dd,defaultTreeItemConfig:()=>Td,defaultTreeViewConfig:()=>zd,defaultUrlInputConfig:()=>jd,density:()=>r.density,densityValue:()=>J,designTokens:()=>Se,designUnit:()=>r.designUnit,designUnitValue:()=>K,direction:()=>r.direction,directionValue:()=>W,disabledOpacity:()=>r.disabledOpacity,disabledOpacityValue:()=>_,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,focusStrokeWidthValue:()=>j,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillActiveDeltaValue:()=>C,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillFocusDeltaValue:()=>v,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillHoverDeltaValue:()=>R,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputActiveDeltaValue:()=>A,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputFocusDeltaValue:()=>b,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputHoverDeltaValue:()=>w,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillInputRestDeltaValue:()=>O,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillLayerRestDeltaValue:()=>B,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillRestDeltaValue:()=>D,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthActiveDeltaValue:()=>H,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthFocusDeltaValue:()=>P,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthHoverDeltaValue:()=>T,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStealthRestDeltaValue:()=>L,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongActiveDeltaValue:()=>V,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongFocusDeltaValue:()=>x,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongHoverDeltaValue:()=>k,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralFillStrongRestDeltaValue:()=>I,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>s,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeActiveDeltaValue:()=>G,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeDividerRestDeltaValue:()=>U,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeFocusDeltaValue:()=>E,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeHoverDeltaValue:()=>z,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,neutralStrokeRestDeltaValue:()=>M,prefix:()=>N,provideDesignSystem:()=>Zd,strokeWidth:()=>r.strokeWidth,strokeWidthValue:()=>Y,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseFontSizeValue:()=>Z,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampBaseLineHeightValue:()=>ee,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1FontSizeValue:()=>ae,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus1LineHeightValue:()=>te,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2FontSizeValue:()=>le,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampMinus2LineHeightValue:()=>oe,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1FontSizeValue:()=>ne,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus1LineHeightValue:()=>ie,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2FontSizeValue:()=>re,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus2LineHeightValue:()=>ue,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3FontSizeValue:()=>pe,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus3LineHeightValue:()=>se,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4FontSizeValue:()=>de,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus4LineHeightValue:()=>ce,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5FontSizeValue:()=>he,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus5LineHeightValue:()=>Fe,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6FontSizeValue:()=>fe,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,typeRampPlus6LineHeightValue:()=>ge});var l={};t.r(l),t.d(l,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var o={};t.r(o),t.d(o,{accentFillActiveDeltaValue:()=>F,accentFillFocusDeltaValue:()=>f,accentFillHoverDeltaValue:()=>h,accentFillRestDeltaValue:()=>c,accentForegroundActiveDeltaValue:()=>m,accentForegroundFocusDeltaValue:()=>y,accentForegroundHoverDeltaValue:()=>S,accentForegroundRestDeltaValue:()=>g,accentPaletteValue:()=>p,baseHeightMultiplierValue:()=>X,baseLayerLuminanceValue:()=>d,bodyFontValue:()=>Q,controlCornerRadiusValue:()=>q,densityValue:()=>J,designTokens:()=>Se,designUnitValue:()=>K,directionValue:()=>W,disabledOpacityValue:()=>_,focusStrokeWidthValue:()=>j,neutralFillActiveDeltaValue:()=>C,neutralFillFocusDeltaValue:()=>v,neutralFillHoverDeltaValue:()=>R,neutralFillInputActiveDeltaValue:()=>A,neutralFillInputFocusDeltaValue:()=>b,neutralFillInputHoverDeltaValue:()=>w,neutralFillInputRestDeltaValue:()=>O,neutralFillLayerRestDeltaValue:()=>B,neutralFillRestDeltaValue:()=>D,neutralFillStealthActiveDeltaValue:()=>H,neutralFillStealthFocusDeltaValue:()=>P,neutralFillStealthHoverDeltaValue:()=>T,neutralFillStealthRestDeltaValue:()=>L,neutralFillStrongActiveDeltaValue:()=>V,neutralFillStrongFocusDeltaValue:()=>x,neutralFillStrongHoverDeltaValue:()=>k,neutralFillStrongRestDeltaValue:()=>I,neutralPaletteValue:()=>s,neutralStrokeActiveDeltaValue:()=>G,neutralStrokeDividerRestDeltaValue:()=>U,neutralStrokeFocusDeltaValue:()=>E,neutralStrokeHoverDeltaValue:()=>z,neutralStrokeRestDeltaValue:()=>M,prefix:()=>N,strokeWidthValue:()=>Y,typeRampBaseFontSizeValue:()=>Z,typeRampBaseLineHeightValue:()=>ee,typeRampMinus1FontSizeValue:()=>ae,typeRampMinus1LineHeightValue:()=>te,typeRampMinus2FontSizeValue:()=>le,typeRampMinus2LineHeightValue:()=>oe,typeRampPlus1FontSizeValue:()=>ne,typeRampPlus1LineHeightValue:()=>ie,typeRampPlus2FontSizeValue:()=>re,typeRampPlus2LineHeightValue:()=>ue,typeRampPlus3FontSizeValue:()=>pe,typeRampPlus3LineHeightValue:()=>se,typeRampPlus4FontSizeValue:()=>de,typeRampPlus4LineHeightValue:()=>ce,typeRampPlus5FontSizeValue:()=>he,typeRampPlus5LineHeightValue:()=>Fe,typeRampPlus6FontSizeValue:()=>fe,typeRampPlus6LineHeightValue:()=>ge});var n,i=t(99440),r=t(13896),u=t(83147);!function(e){e.accentYellow="#FFBC05",e.neutralGrey="#808080"}(n||(n={}));const p=(0,i.paletteFromHex)(n.accentYellow),s=(0,i.paletteFromHex)(n.neutralGrey),d=r.StandardLuminance.DarkMode,c=0,h=4,F=-5,f=0,g=0,S=6,m=-4,y=0,D=7,R=10,C=5,v=0,O=0,w=0,A=0,b=0,L=0,T=5,H=3,P=0,I=0,k=8,V=-5,x=0,B=3,M=25,z=40,G=16,E=25,U=8;var $=t(5598);const N="alpha",W=$.N.ltr,_=.3,Y=1,j=2,X=10,q=4,J=0,K=4,Q='"Segoe UI", Arial, Helvetica, sans-serif',Z="14px",ee="20px",ae="12px",te="16px",le="10px",oe="16px",ne="16px",ie="24px",re="20px",ue="28px",pe="28px",se="36px",de="34px",ce="44px",he="46px",Fe="56px",fe="60px",ge="72px",Se={design_tokens:{color:{accent:{$value:p.source.toColorString(),$type:"color"},neutral:{$value:s.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Q,$type:"fontFamily"}},typography:{baseFontSize:{$value:Z,$type:"dimension"},baseLineHeight:{$value:ee,$type:"dimension"}},mode:{luminance:{$value:d,$type:"number"}},style:{density:{$value:J,$type:"number"},borderRadius:{$value:q,$type:"number"},strokeWidth:{$value:Y,$type:"number"}},space:{designUnit:{$value:K,$type:"number"}}}};class me extends r.DesignSystemProvider{constructor(){super(),(0,i.provideTokens)(l,o,this)}}const ye=me.compose({baseName:"design-system-provider",template:u.html`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[361],{72361:(e,a,t)=>{t.r(a),t.d(a,{Accordion:()=>r.Accordion,AccordionItem:()=>r.AccordionItem,ActionsMenu:()=>i.ActionsMenu,Anchor:()=>i.Anchor,AnchoredRegion:()=>r.AnchoredRegion,Avatar:()=>r.Avatar,Badge:()=>i.Badge,Banner:()=>i.Banner,Breadcrumb:()=>i.Breadcrumb,BreadcrumbItem:()=>i.BreadcrumbItem,Button:()=>i.Button,Calendar:()=>r.Calendar,Card:()=>i.Card,Checkbox:()=>i.Checkbox,ColorHEX:()=>n,Combobox:()=>i.Combobox,ConnectionIndicator:()=>i.ConnectionIndicator,DataGrid:()=>i.DataGrid,DataGridCell:()=>i.DataGridCell,DataGridRow:()=>i.DataGridRow,DatePicker:()=>i.DatePicker,Dialog:()=>i.Dialog,Disclosure:()=>i.Disclosure,Divider:()=>i.Divider,DropdownMenu:()=>i.DropdownMenu,ErrorBanner:()=>i.ErrorBanner,ErrorBoundary:()=>i.ErrorBoundary,ErrorDialog:()=>i.ErrorDialog,FileUpload:()=>i.FileUpload,Filter:()=>i.Filter,FilterBar:()=>i.FilterBar,FlexLayout:()=>i.FlexLayout,Flipper:()=>i.Flipper,Flyout:()=>i.Flyout,GridLayout:()=>i.GridLayout,GridLayoutItem:()=>i.GridLayoutItem,HorizontalScroll:()=>r.HorizontalScroll,Icon:()=>i.Icon,Listbox:()=>r.Listbox,ListboxOption:()=>i.ListboxOption,Menu:()=>i.Menu,MenuItem:()=>i.MenuItem,Modal:()=>i.Modal,Multiselect:()=>i.Multiselect,NumberField:()=>i.NumberField,Picker:()=>r.Picker,Progress:()=>i.Progress,ProgressRing:()=>i.ProgressRing,Radio:()=>i.Radio,RadioGroup:()=>i.RadioGroup,Search:()=>r.Search,SegmentedControl:()=>i.SegmentedControl,SegmentedItem:()=>i.SegmentedItem,Select:()=>i.Select,Skeleton:()=>i.Skeleton,Slider:()=>i.Slider,SliderLabel:()=>r.SliderLabel,Snackbar:()=>i.Snackbar,Switch:()=>i.Switch,Tab:()=>i.Tab,TabPanel:()=>i.TabPanel,Tabs:()=>i.Tabs,TextArea:()=>i.TextArea,TextField:()=>i.TextField,Toast:()=>i.Toast,Toolbar:()=>i.Toolbar,Tooltip:()=>i.Tooltip,TreeItem:()=>i.TreeItem,TreeView:()=>i.TreeView,UrlInput:()=>i.UrlInput,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillActiveDeltaValue:()=>F,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillFocusDeltaValue:()=>f,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillHoverDeltaValue:()=>h,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentFillRestDeltaValue:()=>c,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundActiveDeltaValue:()=>m,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundFocusDeltaValue:()=>y,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundHoverDeltaValue:()=>S,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentForegroundRestDeltaValue:()=>g,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>p,alphaAccordion:()=>Ae,alphaAccordionItem:()=>xe,alphaAccordionItemShadowOptions:()=>Ge,alphaAccordionItemStyles:()=>ze,alphaAccordionItemTemplate:()=>Me,alphaAccordionShadowOptions:()=>He,alphaAccordionStyles:()=>Te,alphaAccordionTemplate:()=>Le,alphaActionsMenu:()=>We,alphaActionsMenuShadowOptions:()=>Xe,alphaActionsMenuStyles:()=>je,alphaActionsMenuTemplate:()=>Ye,alphaAnchor:()=>Ze,alphaAnchorShadowOptions:()=>la,alphaAnchorStyles:()=>ta,alphaAnchorTemplate:()=>aa,alphaAnchoredRegion:()=>ua,alphaAnchoredRegionShadowOptions:()=>ca,alphaAnchoredRegionStyles:()=>da,alphaAnchoredRegionTemplate:()=>sa,alphaAvatar:()=>Sa,alphaAvatarShadowOptions:()=>Ra,alphaAvatarStyles:()=>Da,alphaAvatarTemplate:()=>ya,alphaBadge:()=>Aa,alphaBadgeShadowOptions:()=>Ha,alphaBadgeStyles:()=>Ta,alphaBadgeTemplate:()=>La,alphaBanner:()=>xa,alphaBannerShadowOptions:()=>Ga,alphaBannerStyles:()=>za,alphaBannerTemplate:()=>Ma,alphaBreadcrumb:()=>Wa,alphaBreadcrumbItem:()=>Za,alphaBreadcrumbItemShadowOptions:()=>lt,alphaBreadcrumbItemStyles:()=>tt,alphaBreadcrumbItemTemplate:()=>at,alphaBreadcrumbShadowOptions:()=>Xa,alphaBreadcrumbStyles:()=>ja,alphaBreadcrumbTemplate:()=>Ya,alphaButton:()=>ut,alphaButtonShadowOptions:()=>ct,alphaButtonStyles:()=>dt,alphaButtonTemplate:()=>st,alphaCalendar:()=>St,alphaCalendarShadowOptions:()=>Rt,alphaCalendarStyles:()=>Dt,alphaCalendarTemplate:()=>yt,alphaCard:()=>At,alphaCardShadowOptions:()=>Ht,alphaCardStyles:()=>Tt,alphaCardTemplate:()=>Lt,alphaCheckbox:()=>xt,alphaCheckboxShadowOptions:()=>Gt,alphaCheckboxStyles:()=>zt,alphaCheckboxTemplate:()=>Mt,alphaCombobox:()=>Wt,alphaComboboxShadowOptions:()=>Xt,alphaComboboxStyles:()=>jt,alphaComboboxTemplate:()=>Yt,alphaConnectionIndicator:()=>Zt,alphaConnectionIndicatorShadowOptions:()=>ll,alphaConnectionIndicatorStyles:()=>tl,alphaConnectionIndicatorTemplate:()=>al,alphaDataGrid:()=>ul,alphaDataGridCell:()=>Sl,alphaDataGridCellShadowOptions:()=>Rl,alphaDataGridCellStyles:()=>Dl,alphaDataGridCellTemplate:()=>yl,alphaDataGridRow:()=>Al,alphaDataGridRowShadowOptions:()=>Hl,alphaDataGridRowStyles:()=>Tl,alphaDataGridRowTemplate:()=>Ll,alphaDataGridShadowOptions:()=>cl,alphaDataGridStyles:()=>dl,alphaDataGridTemplate:()=>sl,alphaDatePicker:()=>xl,alphaDatePickerShadowOptions:()=>Gl,alphaDatePickerStyles:()=>zl,alphaDatePickerTemplate:()=>Ml,alphaDialog:()=>Wl,alphaDialogShadowOptions:()=>Xl,alphaDialogStyles:()=>jl,alphaDialogTemplate:()=>Yl,alphaDisclosure:()=>Zl,alphaDisclosureShadowOptions:()=>lo,alphaDisclosureStyles:()=>to,alphaDisclosureTemplate:()=>ao,alphaDivider:()=>uo,alphaDividerShadowOptions:()=>ho,alphaDividerStyles:()=>co,alphaDividerTemplate:()=>so,alphaDropdownMenu:()=>mo,alphaDropdownMenuShadowOptions:()=>Co,alphaDropdownMenuStyles:()=>Ro,alphaDropdownMenuTemplate:()=>Do,alphaErrorBanner:()=>bo,alphaErrorBannerShadowOptions:()=>Po,alphaErrorBannerStyles:()=>Ho,alphaErrorBannerTemplate:()=>To,alphaErrorBoundary:()=>Bo,alphaErrorBoundaryShadowOptions:()=>Eo,alphaErrorBoundaryStyles:()=>Go,alphaErrorBoundaryTemplate:()=>zo,alphaErrorDialog:()=>_o,alphaErrorDialogShadowOptions:()=>qo,alphaErrorDialogStyles:()=>Xo,alphaErrorDialogTemplate:()=>jo,alphaFileUpload:()=>en,alphaFileUploadShadowOptions:()=>on,alphaFileUploadStyles:()=>ln,alphaFileUploadTemplate:()=>tn,alphaFilter:()=>sn,alphaFilterBar:()=>yn,alphaFilterBarShadowOptions:()=>vn,alphaFilterBarStyles:()=>Cn,alphaFilterBarTemplate:()=>Rn,alphaFilterShadowOptions:()=>Fn,alphaFilterStyles:()=>hn,alphaFilterTemplate:()=>cn,alphaFlexLayout:()=>Ln,alphaFlexLayoutShadowOptions:()=>In,alphaFlexLayoutStyles:()=>Pn,alphaFlexLayoutTemplate:()=>Hn,alphaFlipper:()=>Mn,alphaFlipperShadowOptions:()=>Un,alphaFlipperStyles:()=>En,alphaFlipperTemplate:()=>Gn,alphaFlyout:()=>Yn,alphaFlyoutShadowOptions:()=>Jn,alphaFlyoutStyles:()=>qn,alphaFlyoutTemplate:()=>Xn,alphaGridLayout:()=>ai,alphaGridLayoutItem:()=>si,alphaGridLayoutItemShadowOptions:()=>Fi,alphaGridLayoutItemStyles:()=>hi,alphaGridLayoutItemTemplate:()=>ci,alphaGridLayoutShadowOptions:()=>ni,alphaGridLayoutStyles:()=>oi,alphaGridLayoutTemplate:()=>li,alphaHorizontalScroll:()=>yi,alphaHorizontalScrollShadowOptions:()=>vi,alphaHorizontalScrollStyles:()=>Ci,alphaHorizontalScrollTemplate:()=>Ri,alphaIcon:()=>Li,alphaIconShadowOptions:()=>Ii,alphaIconStyles:()=>Pi,alphaIconTemplate:()=>Hi,alphaListbox:()=>Mi,alphaListboxOption:()=>Yi,alphaListboxOptionShadowOptions:()=>Ji,alphaListboxOptionStyles:()=>qi,alphaListboxOptionTemplate:()=>Xi,alphaListboxShadowOptions:()=>Ui,alphaListboxStyles:()=>Ei,alphaListboxTemplate:()=>Gi,alphaMenu:()=>ar,alphaMenuItem:()=>sr,alphaMenuItemShadowOptions:()=>Fr,alphaMenuItemStyles:()=>hr,alphaMenuItemTemplate:()=>cr,alphaMenuShadowOptions:()=>nr,alphaMenuStyles:()=>or,alphaMenuTemplate:()=>lr,alphaModal:()=>yr,alphaModalShadowOptions:()=>vr,alphaModalStyles:()=>Cr,alphaModalTemplate:()=>Rr,alphaMultiselect:()=>Lr,alphaMultiselectShadowOptions:()=>Ir,alphaMultiselectStyles:()=>Pr,alphaMultiselectTemplate:()=>Hr,alphaNumberField:()=>Mr,alphaNumberFieldShadowOptions:()=>Ur,alphaNumberFieldStyles:()=>Er,alphaNumberFieldTemplate:()=>Gr,alphaPicker:()=>Yr,alphaPickerShadowOptions:()=>Jr,alphaPickerStyles:()=>qr,alphaPickerTemplate:()=>Xr,alphaProgress:()=>au,alphaProgressRing:()=>su,alphaProgressRingShadowOptions:()=>Fu,alphaProgressRingStyles:()=>hu,alphaProgressRingTemplate:()=>cu,alphaProgressShadowOptions:()=>nu,alphaProgressStyles:()=>ou,alphaProgressTemplate:()=>lu,alphaRadio:()=>yu,alphaRadioGroup:()=>Lu,alphaRadioGroupShadowOptions:()=>Iu,alphaRadioGroupStyles:()=>Pu,alphaRadioGroupTemplate:()=>Hu,alphaRadioShadowOptions:()=>vu,alphaRadioStyles:()=>Cu,alphaRadioTemplate:()=>Ru,alphaSearch:()=>Mu,alphaSearchShadowOptions:()=>Uu,alphaSearchStyles:()=>Eu,alphaSearchTemplate:()=>Gu,alphaSegmentedControl:()=>Yu,alphaSegmentedControlShadowOptions:()=>Ju,alphaSegmentedControlStyles:()=>qu,alphaSegmentedControlTemplate:()=>Xu,alphaSegmentedItem:()=>ap,alphaSegmentedItemShadowOptions:()=>np,alphaSegmentedItemStyles:()=>op,alphaSegmentedItemTemplate:()=>lp,alphaSelect:()=>sp,alphaSelectShadowOptions:()=>Fp,alphaSelectStyles:()=>hp,alphaSelectTemplate:()=>cp,alphaSkeleton:()=>yp,alphaSkeletonShadowOptions:()=>vp,alphaSkeletonStyles:()=>Cp,alphaSkeletonTemplate:()=>Rp,alphaSlider:()=>Lp,alphaSliderLabel:()=>Mp,alphaSliderLabelShadowOptions:()=>Up,alphaSliderLabelStyles:()=>Ep,alphaSliderLabelTemplate:()=>Gp,alphaSliderShadowOptions:()=>Ip,alphaSliderStyles:()=>Pp,alphaSliderTemplate:()=>Hp,alphaSnackbar:()=>Yp,alphaSnackbarShadowOptions:()=>Jp,alphaSnackbarStyles:()=>qp,alphaSnackbarTemplate:()=>Xp,alphaSwitch:()=>as,alphaSwitchShadowOptions:()=>ns,alphaSwitchStyles:()=>os,alphaSwitchTemplate:()=>ls,alphaTab:()=>ss,alphaTabPanel:()=>ys,alphaTabPanelShadowOptions:()=>vs,alphaTabPanelStyles:()=>Cs,alphaTabPanelTemplate:()=>Rs,alphaTabShadowOptions:()=>Fs,alphaTabStyles:()=>hs,alphaTabTemplate:()=>cs,alphaTabs:()=>Ls,alphaTabsShadowOptions:()=>Is,alphaTabsStyles:()=>Ps,alphaTabsTemplate:()=>Hs,alphaTextArea:()=>Ms,alphaTextAreaShadowOptions:()=>Us,alphaTextAreaStyles:()=>Es,alphaTextAreaTemplate:()=>Gs,alphaTextField:()=>Ys,alphaTextFieldShadowOptions:()=>Js,alphaTextFieldStyles:()=>qs,alphaTextFieldTemplate:()=>Xs,alphaToast:()=>ad,alphaToastShadowOptions:()=>nd,alphaToastStyles:()=>od,alphaToastTemplate:()=>ld,alphaToolbar:()=>sd,alphaToolbarShadowOptions:()=>Fd,alphaToolbarStyles:()=>hd,alphaToolbarTemplate:()=>cd,alphaTooltip:()=>yd,alphaTooltipShadowOptions:()=>vd,alphaTooltipStyles:()=>Cd,alphaTooltipTemplate:()=>Rd,alphaTreeItem:()=>Ld,alphaTreeItemShadowOptions:()=>Id,alphaTreeItemStyles:()=>Pd,alphaTreeItemTemplate:()=>Hd,alphaTreeView:()=>Md,alphaTreeViewShadowOptions:()=>Ud,alphaTreeViewStyles:()=>Ed,alphaTreeViewTemplate:()=>Gd,alphaUrlInput:()=>Yd,alphaUrlInputShadowOptions:()=>Jd,alphaUrlInputStyles:()=>qd,alphaUrlInputTemplate:()=>Xd,baseComponents:()=>Kd,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseHeightMultiplierValue:()=>X,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>d,bodyFont:()=>r.bodyFont,bodyFontValue:()=>Q,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>q,defaultAccordionConfig:()=>be,defaultAccordionItemConfig:()=>Be,defaultActionsMenuConfig:()=>_e,defaultAnchorConfig:()=>ea,defaultAnchoredRegionConfig:()=>pa,defaultAvatarConfig:()=>ma,defaultBadgeConfig:()=>ba,defaultBannerConfig:()=>Ba,defaultBreadcrumbConfig:()=>_a,defaultBreadcrumbItemConfig:()=>et,defaultButtonConfig:()=>pt,defaultCalendarConfig:()=>mt,defaultCardConfig:()=>bt,defaultCheckboxConfig:()=>Bt,defaultComboboxConfig:()=>_t,defaultConnectionIndicatorConfig:()=>el,defaultDataGridCellConfig:()=>ml,defaultDataGridConfig:()=>pl,defaultDataGridRowConfig:()=>bl,defaultDatePickerConfig:()=>Bl,defaultDialogConfig:()=>_l,defaultDisclosureConfig:()=>eo,defaultDividerConfig:()=>po,defaultDropdownMenuConfig:()=>yo,defaultErrorBannerConfig:()=>Lo,defaultErrorBoundaryConfig:()=>Mo,defaultErrorDialogConfig:()=>Yo,defaultFileUploadConfig:()=>an,defaultFilterBarConfig:()=>Dn,defaultFilterConfig:()=>dn,defaultFlexLayoutConfig:()=>Tn,defaultFlipperConfig:()=>zn,defaultFlyoutConfig:()=>jn,defaultGridLayoutConfig:()=>ti,defaultGridLayoutItemConfig:()=>di,defaultHorizontalScrollConfig:()=>Di,defaultIconConfig:()=>Ti,defaultListboxConfig:()=>zi,defaultListboxOptionConfig:()=>ji,defaultMenuConfig:()=>tr,defaultMenuItemConfig:()=>dr,defaultModalConfig:()=>Dr,defaultMultiselectConfig:()=>Tr,defaultNumberFieldConfig:()=>zr,defaultPickerConfig:()=>jr,defaultProgressConfig:()=>tu,defaultProgressRingConfig:()=>du,defaultRadioConfig:()=>Du,defaultRadioGroupConfig:()=>Tu,defaultSearchConfig:()=>zu,defaultSegmentedControlConfig:()=>ju,defaultSegmentedItemConfig:()=>tp,defaultSelectConfig:()=>dp,defaultSkeletonConfig:()=>Dp,defaultSliderConfig:()=>Tp,defaultSliderLabelConfig:()=>zp,defaultSnackbarConfig:()=>jp,defaultSwitchConfig:()=>ts,defaultTabConfig:()=>ds,defaultTabPanelConfig:()=>Ds,defaultTabsConfig:()=>Ts,defaultTextAreaConfig:()=>zs,defaultTextFieldConfig:()=>js,defaultToastConfig:()=>td,defaultToolbarConfig:()=>dd,defaultTooltipConfig:()=>Dd,defaultTreeItemConfig:()=>Td,defaultTreeViewConfig:()=>zd,defaultUrlInputConfig:()=>jd,density:()=>r.density,densityValue:()=>J,designTokens:()=>Se,designUnit:()=>r.designUnit,designUnitValue:()=>K,direction:()=>r.direction,directionValue:()=>W,disabledOpacity:()=>r.disabledOpacity,disabledOpacityValue:()=>_,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,focusStrokeWidthValue:()=>j,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillActiveDeltaValue:()=>C,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillFocusDeltaValue:()=>v,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillHoverDeltaValue:()=>R,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputActiveDeltaValue:()=>A,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputFocusDeltaValue:()=>b,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputHoverDeltaValue:()=>w,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillInputRestDeltaValue:()=>O,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillLayerRestDeltaValue:()=>B,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillRestDeltaValue:()=>D,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthActiveDeltaValue:()=>H,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthFocusDeltaValue:()=>P,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthHoverDeltaValue:()=>T,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStealthRestDeltaValue:()=>L,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongActiveDeltaValue:()=>V,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongFocusDeltaValue:()=>x,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongHoverDeltaValue:()=>k,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralFillStrongRestDeltaValue:()=>I,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>s,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeActiveDeltaValue:()=>G,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeDividerRestDeltaValue:()=>U,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeFocusDeltaValue:()=>E,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeHoverDeltaValue:()=>z,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,neutralStrokeRestDeltaValue:()=>M,prefix:()=>N,provideDesignSystem:()=>Zd,strokeWidth:()=>r.strokeWidth,strokeWidthValue:()=>Y,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseFontSizeValue:()=>Z,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampBaseLineHeightValue:()=>ee,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1FontSizeValue:()=>ae,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus1LineHeightValue:()=>te,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2FontSizeValue:()=>le,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampMinus2LineHeightValue:()=>oe,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1FontSizeValue:()=>ne,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus1LineHeightValue:()=>ie,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2FontSizeValue:()=>re,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus2LineHeightValue:()=>ue,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3FontSizeValue:()=>pe,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus3LineHeightValue:()=>se,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4FontSizeValue:()=>de,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus4LineHeightValue:()=>ce,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5FontSizeValue:()=>he,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus5LineHeightValue:()=>Fe,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6FontSizeValue:()=>fe,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,typeRampPlus6LineHeightValue:()=>ge});var l={};t.r(l),t.d(l,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var o={};t.r(o),t.d(o,{accentFillActiveDeltaValue:()=>F,accentFillFocusDeltaValue:()=>f,accentFillHoverDeltaValue:()=>h,accentFillRestDeltaValue:()=>c,accentForegroundActiveDeltaValue:()=>m,accentForegroundFocusDeltaValue:()=>y,accentForegroundHoverDeltaValue:()=>S,accentForegroundRestDeltaValue:()=>g,accentPaletteValue:()=>p,baseHeightMultiplierValue:()=>X,baseLayerLuminanceValue:()=>d,bodyFontValue:()=>Q,controlCornerRadiusValue:()=>q,densityValue:()=>J,designTokens:()=>Se,designUnitValue:()=>K,directionValue:()=>W,disabledOpacityValue:()=>_,focusStrokeWidthValue:()=>j,neutralFillActiveDeltaValue:()=>C,neutralFillFocusDeltaValue:()=>v,neutralFillHoverDeltaValue:()=>R,neutralFillInputActiveDeltaValue:()=>A,neutralFillInputFocusDeltaValue:()=>b,neutralFillInputHoverDeltaValue:()=>w,neutralFillInputRestDeltaValue:()=>O,neutralFillLayerRestDeltaValue:()=>B,neutralFillRestDeltaValue:()=>D,neutralFillStealthActiveDeltaValue:()=>H,neutralFillStealthFocusDeltaValue:()=>P,neutralFillStealthHoverDeltaValue:()=>T,neutralFillStealthRestDeltaValue:()=>L,neutralFillStrongActiveDeltaValue:()=>V,neutralFillStrongFocusDeltaValue:()=>x,neutralFillStrongHoverDeltaValue:()=>k,neutralFillStrongRestDeltaValue:()=>I,neutralPaletteValue:()=>s,neutralStrokeActiveDeltaValue:()=>G,neutralStrokeDividerRestDeltaValue:()=>U,neutralStrokeFocusDeltaValue:()=>E,neutralStrokeHoverDeltaValue:()=>z,neutralStrokeRestDeltaValue:()=>M,prefix:()=>N,strokeWidthValue:()=>Y,typeRampBaseFontSizeValue:()=>Z,typeRampBaseLineHeightValue:()=>ee,typeRampMinus1FontSizeValue:()=>ae,typeRampMinus1LineHeightValue:()=>te,typeRampMinus2FontSizeValue:()=>le,typeRampMinus2LineHeightValue:()=>oe,typeRampPlus1FontSizeValue:()=>ne,typeRampPlus1LineHeightValue:()=>ie,typeRampPlus2FontSizeValue:()=>re,typeRampPlus2LineHeightValue:()=>ue,typeRampPlus3FontSizeValue:()=>pe,typeRampPlus3LineHeightValue:()=>se,typeRampPlus4FontSizeValue:()=>de,typeRampPlus4LineHeightValue:()=>ce,typeRampPlus5FontSizeValue:()=>he,typeRampPlus5LineHeightValue:()=>Fe,typeRampPlus6FontSizeValue:()=>fe,typeRampPlus6LineHeightValue:()=>ge});var n,i=t(43310),r=t(13896),u=t(83147);!function(e){e.accentYellow="#FFBC05",e.neutralGrey="#808080"}(n||(n={}));const p=(0,i.paletteFromHex)(n.accentYellow),s=(0,i.paletteFromHex)(n.neutralGrey),d=r.StandardLuminance.DarkMode,c=0,h=4,F=-5,f=0,g=0,S=6,m=-4,y=0,D=7,R=10,C=5,v=0,O=0,w=0,A=0,b=0,L=0,T=5,H=3,P=0,I=0,k=8,V=-5,x=0,B=3,M=25,z=40,G=16,E=25,U=8;var $=t(5598);const N="alpha",W=$.N.ltr,_=.3,Y=1,j=2,X=10,q=4,J=0,K=4,Q='"Segoe UI", Arial, Helvetica, sans-serif',Z="14px",ee="20px",ae="12px",te="16px",le="10px",oe="16px",ne="16px",ie="24px",re="20px",ue="28px",pe="28px",se="36px",de="34px",ce="44px",he="46px",Fe="56px",fe="60px",ge="72px",Se={design_tokens:{color:{accent:{$value:p.source.toColorString(),$type:"color"},neutral:{$value:s.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Q,$type:"fontFamily"}},typography:{baseFontSize:{$value:Z,$type:"dimension"},baseLineHeight:{$value:ee,$type:"dimension"}},mode:{luminance:{$value:d,$type:"number"}},style:{density:{$value:J,$type:"number"},borderRadius:{$value:q,$type:"number"},strokeWidth:{$value:Y,$type:"number"}},space:{designUnit:{$value:K,$type:"number"}}}};class me extends r.DesignSystemProvider{constructor(){super(),(0,i.provideTokens)(l,o,this)}}const ye=me.compose({baseName:"design-system-provider",template:u.html`
2
2
  <slot></slot>
3
3
  `});t(82694);const De=["baseClass","baseName","shadowOptions","styles","template"],Re=e=>{const{definition:a}=e(),{shadowOptions:t,styles:l,template:o}=a,n=((e,a=De)=>Object.keys(e).filter((e=>!a.includes(e))).reduce(((a,t)=>(a[t]=e[t],a)),{}))(a);return{shadowOptions:t,styles:l,template:o,defaultConfig:n}},{defaultConfig:Ce,shadowOptions:ve,styles:Oe,template:we}=Re(r.fastAccordion),Ae=()=>(0,r.fastAccordion)(),be=Ce,Le=we,Te=Oe,He=ve,{defaultConfig:Pe,shadowOptions:Ie,styles:ke,template:Ve}=Re(r.fastAccordionItem),xe=()=>(0,r.fastAccordionItem)(),Be=Pe,Me=Ve,ze=ke,Ge=Ie,{defaultConfig:Ee,shadowOptions:Ue,styles:$e,template:Ne}=Re(i.foundationActionsMenu),We=()=>(0,i.foundationActionsMenu)(),_e=Ee,Ye=Ne,je=$e,Xe=Ue,{defaultConfig:qe,shadowOptions:Je,styles:Ke,template:Qe}=Re(i.foundationAnchor),Ze=()=>(0,i.foundationAnchor)(),ea=qe,aa=Qe,ta=Ke,la=Je,{defaultConfig:oa,shadowOptions:na,styles:ia,template:ra}=Re(r.fastAnchoredRegion),ua=()=>(0,r.fastAnchoredRegion)(),pa=oa,sa=ra,da=ia,ca=na,{defaultConfig:ha,shadowOptions:Fa,styles:fa,template:ga}=Re(r.fastAvatar),Sa=()=>(0,r.fastAvatar)(),ma=ha,ya=ga,Da=fa,Ra=Fa,{defaultConfig:Ca,shadowOptions:va,styles:Oa,template:wa}=Re(i.foundationBadge),Aa=()=>(0,i.foundationBadge)(),ba=Ca,La=wa,Ta=Oa,Ha=va,{defaultConfig:Pa,shadowOptions:Ia,styles:ka,template:Va}=Re(i.foundationBanner),xa=()=>(0,i.foundationBanner)(),Ba=Pa,Ma=Va,za=ka,Ga=Ia,{defaultConfig:Ea,shadowOptions:Ua,styles:$a,template:Na}=Re(i.foundationBreadcrumb),Wa=()=>(0,i.foundationBreadcrumb)(),_a=Ea,Ya=Na,ja=$a,Xa=Ua,{defaultConfig:qa,shadowOptions:Ja,styles:Ka,template:Qa}=Re(i.foundationBreadcrumbItem),Za=()=>(0,i.foundationBreadcrumbItem)(),et=qa,at=Qa,tt=Ka,lt=Ja,{defaultConfig:ot,shadowOptions:nt,styles:it,template:rt}=Re(i.foundationButton),ut=()=>(0,i.foundationButton)(),pt=ot,st=rt,dt=it,ct=nt,{defaultConfig:ht,shadowOptions:Ft,styles:ft,template:gt}=Re(r.fastCalendar),St=()=>(0,r.fastCalendar)(),mt=ht,yt=gt,Dt=ft,Rt=Ft,{defaultConfig:Ct,shadowOptions:vt,styles:Ot,template:wt}=Re(i.foundationCard),At=()=>(0,i.foundationCard)(),bt=Ct,Lt=wt,Tt=Ot,Ht=vt,{defaultConfig:Pt,shadowOptions:It,styles:kt,template:Vt}=Re(i.foundationCheckbox),xt=()=>(0,i.foundationCheckbox)(),Bt=Pt,Mt=Vt,zt=kt,Gt=It,{defaultConfig:Et,shadowOptions:Ut,styles:$t,template:Nt}=Re(i.foundationCombobox),Wt=()=>(0,i.foundationCombobox)(),_t=Et,Yt=Nt,jt=$t,Xt=Ut,{defaultConfig:qt,shadowOptions:Jt,styles:Kt,template:Qt}=Re(i.foundationConnectionIndicator),Zt=()=>(0,i.foundationConnectionIndicator)(),el=qt,al=Qt,tl=Kt,ll=Jt,{defaultConfig:ol,shadowOptions:nl,styles:il,template:rl}=Re(i.foundationDataGrid),ul=()=>(0,i.foundationDataGrid)(),pl=ol,sl=rl,dl=il,cl=nl,{defaultConfig:hl,shadowOptions:Fl,styles:fl,template:gl}=Re(i.foundationDataGridCell),Sl=()=>(0,i.foundationDataGridCell)(),ml=hl,yl=gl,Dl=fl,Rl=Fl,{defaultConfig:Cl,shadowOptions:vl,styles:Ol,template:wl}=Re(i.foundationDataGridRow),Al=()=>(0,i.foundationDataGridRow)(),bl=Cl,Ll=wl,Tl=Ol,Hl=vl,{defaultConfig:Pl,shadowOptions:Il,styles:kl,template:Vl}=Re(i.foundationDatePicker),xl=()=>(0,i.foundationDatePicker)(),Bl=Pl,Ml=Vl,zl=kl,Gl=Il,{defaultConfig:El,shadowOptions:Ul,styles:$l,template:Nl}=Re(i.foundationDialog),Wl=()=>(0,i.foundationDialog)(),_l=El,Yl=Nl,jl=$l,Xl=Ul,{defaultConfig:ql,shadowOptions:Jl,styles:Kl,template:Ql}=Re(i.foundationDisclosure),Zl=()=>(0,i.foundationDisclosure)(),eo=ql,ao=Ql,to=Kl,lo=Jl,{defaultConfig:oo,shadowOptions:no,styles:io,template:ro}=Re(i.foundationDivider),uo=()=>(0,i.foundationDivider)(),po=oo,so=ro,co=io,ho=no,{defaultConfig:Fo,shadowOptions:fo,styles:go,template:So}=Re(i.foundationDropdownMenu),mo=()=>(0,i.foundationDropdownMenu)(),yo=Fo,Do=So,Ro=go,Co=fo,{defaultConfig:vo,shadowOptions:Oo,styles:wo,template:Ao}=Re(i.foundationErrorBanner),bo=()=>(0,i.foundationErrorBanner)(),Lo=vo,To=Ao,Ho=wo,Po=Oo,{defaultConfig:Io,shadowOptions:ko,styles:Vo,template:xo}=Re(i.foundationErrorBoundary),Bo=()=>(0,i.foundationErrorBoundary)(),Mo=Io,zo=xo,Go=Vo,Eo=ko,{defaultConfig:Uo,shadowOptions:$o,styles:No,template:Wo}=Re(i.foundationErrorDialog),_o=()=>(0,i.foundationErrorDialog)(),Yo=Uo,jo=Wo,Xo=No,qo=$o,{defaultConfig:Jo,shadowOptions:Ko,styles:Qo,template:Zo}=Re(i.foundationFileUpload),en=()=>(0,i.foundationFileUpload)(),an=Jo,tn=Zo,ln=Qo,on=Ko,{defaultConfig:nn,shadowOptions:rn,styles:un,template:pn}=Re(i.foundationFilter),sn=()=>(0,i.foundationFilter)(),dn=nn,cn=pn,hn=un,Fn=rn,{defaultConfig:fn,shadowOptions:gn,styles:Sn,template:mn}=Re(i.foundationFilterBar),yn=()=>(0,i.foundationFilterBar)(),Dn=fn,Rn=mn,Cn=Sn,vn=gn,{defaultConfig:On,shadowOptions:wn,styles:An,template:bn}=Re(i.foundationFlexLayout),Ln=()=>(0,i.foundationFlexLayout)(),Tn=On,Hn=bn,Pn=An,In=wn,{defaultConfig:kn,shadowOptions:Vn,styles:xn,template:Bn}=Re(i.foundationFlipper),Mn=()=>(0,i.foundationFlipper)(),zn=kn,Gn=Bn,En=xn,Un=Vn,{defaultConfig:$n,shadowOptions:Nn,styles:Wn,template:_n}=Re(i.foundationFlyout),Yn=()=>(0,i.foundationFlyout)(),jn=$n,Xn=_n,qn=Wn,Jn=Nn,{defaultConfig:Kn,shadowOptions:Qn,styles:Zn,template:ei}=Re(i.foundationGridLayout),ai=()=>(0,i.foundationGridLayout)(),ti=Kn,li=ei,oi=Zn,ni=Qn,{defaultConfig:ii,shadowOptions:ri,styles:ui,template:pi}=Re(i.foundationGridLayoutItem),si=()=>(0,i.foundationGridLayoutItem)(),di=ii,ci=pi,hi=ui,Fi=ri,{defaultConfig:fi,shadowOptions:gi,styles:Si,template:mi}=Re(r.fastHorizontalScroll),yi=()=>(0,r.fastHorizontalScroll)(),Di=fi,Ri=mi,Ci=Si,vi=gi,{defaultConfig:Oi,shadowOptions:wi,styles:Ai,template:bi}=Re(i.foundationIcon),Li=()=>(0,i.foundationIcon)(),Ti=Oi,Hi=bi,Pi=Ai,Ii=wi,{defaultConfig:ki,shadowOptions:Vi,styles:xi,template:Bi}=Re(r.fastListbox),Mi=()=>(0,r.fastListbox)(),zi=ki,Gi=Bi,Ei=xi,Ui=Vi,{defaultConfig:$i,shadowOptions:Ni,styles:Wi,template:_i}=Re(i.foundationListboxOption),Yi=()=>(0,i.foundationListboxOption)(),ji=$i,Xi=_i,qi=Wi,Ji=Ni,{defaultConfig:Ki,shadowOptions:Qi,styles:Zi,template:er}=Re(i.foundationMenu),ar=()=>(0,i.foundationMenu)(),tr=Ki,lr=er,or=Zi,nr=Qi,{defaultConfig:ir,shadowOptions:rr,styles:ur,template:pr}=Re(i.foundationMenuItem),sr=()=>(0,i.foundationMenuItem)(),dr=ir,cr=pr,hr=ur,Fr=rr,{defaultConfig:fr,shadowOptions:gr,styles:Sr,template:mr}=Re(i.foundationModal),yr=()=>(0,i.foundationModal)(),Dr=fr,Rr=mr,Cr=Sr,vr=gr,{defaultConfig:Or,shadowOptions:wr,styles:Ar,template:br}=Re(i.foundationMultiselect),Lr=()=>(0,i.foundationMultiselect)(),Tr=Or,Hr=br,Pr=Ar,Ir=wr,{defaultConfig:kr,shadowOptions:Vr,styles:xr,template:Br}=Re(i.foundationNumberField),Mr=()=>(0,i.foundationNumberField)(),zr=kr,Gr=Br,Er=xr,Ur=Vr,{defaultConfig:$r,shadowOptions:Nr,styles:Wr,template:_r}=Re(r.fastPicker),Yr=()=>(0,r.fastPicker)(),jr=$r,Xr=_r,qr=Wr,Jr=Nr,{defaultConfig:Kr,shadowOptions:Qr,styles:Zr,template:eu}=Re(i.foundationProgress),au=()=>(0,i.foundationProgress)(),tu=Kr,lu=eu,ou=Zr,nu=Qr,{defaultConfig:iu,shadowOptions:ru,styles:uu,template:pu}=Re(i.foundationProgressRing),su=()=>(0,i.foundationProgressRing)(),du=iu,cu=pu,hu=uu,Fu=ru,{defaultConfig:fu,shadowOptions:gu,styles:Su,template:mu}=Re(i.foundationRadio),yu=()=>(0,i.foundationRadio)(),Du=fu,Ru=mu,Cu=Su,vu=gu,{defaultConfig:Ou,shadowOptions:wu,styles:Au,template:bu}=Re(i.foundationRadioGroup),Lu=()=>(0,i.foundationRadioGroup)(),Tu=Ou,Hu=bu,Pu=Au,Iu=wu,{defaultConfig:ku,shadowOptions:Vu,styles:xu,template:Bu}=Re(r.fastSearch),Mu=()=>(0,r.fastSearch)(),zu=ku,Gu=Bu,Eu=xu,Uu=Vu,{defaultConfig:$u,shadowOptions:Nu,styles:Wu,template:_u}=Re(i.foundationSegmentedControl),Yu=()=>(0,i.foundationSegmentedControl)(),ju=$u,Xu=_u,qu=Wu,Ju=Nu,{defaultConfig:Ku,shadowOptions:Qu,styles:Zu,template:ep}=Re(i.foundationSegmentedItem),ap=()=>(0,i.foundationSegmentedItem)(),tp=Ku,lp=ep,op=Zu,np=Qu,{defaultConfig:ip,shadowOptions:rp,styles:up,template:pp}=Re(i.foundationSelect),sp=()=>(0,i.foundationSelect)(),dp=ip,cp=pp,hp=up,Fp=rp,{defaultConfig:fp,shadowOptions:gp,styles:Sp,template:mp}=Re(i.foundationSkeleton),yp=()=>(0,i.foundationSkeleton)(),Dp=fp,Rp=mp,Cp=Sp,vp=gp,{defaultConfig:Op,shadowOptions:wp,styles:Ap,template:bp}=Re(i.foundationSlider),Lp=()=>(0,i.foundationSlider)(),Tp=Op,Hp=bp,Pp=Ap,Ip=wp,{defaultConfig:kp,shadowOptions:Vp,styles:xp,template:Bp}=Re(r.fastSliderLabel),Mp=()=>(0,r.fastSliderLabel)(),zp=kp,Gp=Bp,Ep=xp,Up=Vp,{defaultConfig:$p,shadowOptions:Np,styles:Wp,template:_p}=Re(i.foundationSnackbar),Yp=()=>(0,i.foundationSnackbar)(),jp=$p,Xp=_p,qp=Wp,Jp=Np,{defaultConfig:Kp,shadowOptions:Qp,styles:Zp,template:es}=Re(i.foundationSwitch),as=()=>(0,i.foundationSwitch)(),ts=Kp,ls=es,os=Zp,ns=Qp,{defaultConfig:is,shadowOptions:rs,styles:us,template:ps}=Re(i.foundationTab),ss=()=>(0,i.foundationTab)(),ds=is,cs=ps,hs=us,Fs=rs,{defaultConfig:fs,shadowOptions:gs,styles:Ss,template:ms}=Re(i.foundationTabPanel),ys=()=>(0,i.foundationTabPanel)(),Ds=fs,Rs=ms,Cs=Ss,vs=gs,{defaultConfig:Os,shadowOptions:ws,styles:As,template:bs}=Re(i.foundationTabs),Ls=()=>(0,i.foundationTabs)(),Ts=Os,Hs=bs,Ps=As,Is=ws,{defaultConfig:ks,shadowOptions:Vs,styles:xs,template:Bs}=Re(i.foundationTextArea),Ms=()=>(0,i.foundationTextArea)(),zs=ks,Gs=Bs,Es=xs,Us=Vs,{defaultConfig:$s,shadowOptions:Ns,styles:Ws,template:_s}=Re(i.foundationTextField),Ys=()=>(0,i.foundationTextField)(),js=$s,Xs=_s,qs=Ws,Js=Ns,{defaultConfig:Ks,shadowOptions:Qs,styles:Zs,template:ed}=Re(i.foundationToast),ad=()=>(0,i.foundationToast)(),td=Ks,ld=ed,od=Zs,nd=Qs,{defaultConfig:id,shadowOptions:rd,styles:ud,template:pd}=Re(i.foundationToolbar),sd=()=>(0,i.foundationToolbar)(),dd=id,cd=pd,hd=ud,Fd=rd,{defaultConfig:fd,shadowOptions:gd,styles:Sd,template:md}=Re(i.foundationTooltip),yd=()=>(0,i.foundationTooltip)(),Dd=fd,Rd=md,Cd=Sd,vd=gd,{defaultConfig:Od,shadowOptions:wd,styles:Ad,template:bd}=Re(i.foundationTreeItem),Ld=()=>(0,i.foundationTreeItem)(),Td=Od,Hd=bd,Pd=Ad,Id=wd,{defaultConfig:kd,shadowOptions:Vd,styles:xd,template:Bd}=Re(i.foundationTreeView),Md=()=>(0,i.foundationTreeView)(),zd=kd,Gd=Bd,Ed=xd,Ud=Vd,{defaultConfig:$d,shadowOptions:Nd,styles:Wd,template:_d}=Re(i.foundationUrlInput),Yd=()=>(0,i.foundationUrlInput)(),jd=$d,Xd=_d,qd=Wd,Jd=Nd,Kd={designSystemProvider:ye,alphaAccordion:Ae,alphaAccordionItem:xe,alphaActionsMenu:We,alphaAnchor:Ze,alphaAnchoredRegion:ua,alphaAvatar:Sa,alphaBadge:Aa,alphaBanner:xa,alphaBreadcrumb:Wa,alphaBreadcrumbItem:Za,alphaButton:ut,alphaCalendar:St,alphaCard:At,alphaCheckbox:xt,alphaCombobox:Wt,alphaConnectionIndicator:Zt,alphaDataGrid:ul,alphaDataGridCell:Sl,alphaDataGridRow:Al,alphaDatePicker:xl,alphaDialog:Wl,alphaDisclosure:Zl,alphaDivider:uo,alphaDropdownMenu:mo,alphaErrorBanner:bo,alphaErrorBoundary:Bo,alphaErrorDialog:_o,alphaFileUpload:en,alphaFilter:sn,alphaFilterBar:yn,alphaFlexLayout:Ln,alphaFlipper:Mn,alphaFlyout:Yn,alphaGridLayout:ai,alphaGridLayoutItem:si,alphaHorizontalScroll:yi,alphaIcon:Li,alphaListbox:Mi,alphaListboxOption:Yi,alphaMenu:ar,alphaMenuItem:sr,alphaModal:yr,alphaMultiselect:Lr,alphaNumberField:Mr,alphaPicker:Yr,alphaProgress:au,alphaProgressRing:su,alphaRadio:yu,alphaRadioGroup:Lu,alphaSearch:Mu,alphaSegmentedControl:Yu,alphaSegmentedItem:ap,alphaSelect:sp,alphaSkeleton:yp,alphaSlider:Lp,alphaSliderLabel:Mp,alphaSnackbar:Yp,alphaSwitch:as,alphaTab:ss,alphaTabPanel:ys,alphaTabs:Ls,alphaTextArea:Ms,alphaTextField:Ys,alphaToast:ad,alphaToolbar:sd,alphaTooltip:yd,alphaTreeItem:Ld,alphaTreeView:Md,alphaUrlInput:Yd,register(e,...a){if(e)for(const t in this)"register"!==t&&this[t]().register(e,...a)}};var Qd=t(75951);const Zd=(e,a="alpha")=>{e&&(0,i.provideTokens)(l,o,e);const t=Qd.DesignSystem.getOrCreate(e).withPrefix(a);return(0,i.createDesignSystemProxy)(t)}}}]);
4
4
  //# sourceMappingURL=361.a1b4dda436f688032dca2de3232d9ab4.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[430],{4077:(e,t,s)=>{var i;s.d(t,{G:()=>i,l:()=>r}),function(e){e.BASIC="BASIC",e.SSO="SSO",e.JWT="JWT",e.REFRESH="REFRESH"}(i||(i={}));class r extends Error{constructor(e,t,s="Auth Failed \n"){super(s),this.sent=e,this.received=t,Object.setPrototypeOf(this,r.prototype)}isIgnorableError(){var e,t,s,i;return null===(i=null===(s=null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)||void 0===s?void 0:s.toLowerCase())||void 0===i?void 0:i.includes("request needs the user to be logged")}getMessageError(){var e,t;return Array.isArray(null===(e=this.received)||void 0===e?void 0:e.ERROR)?null===(t=this.received)||void 0===t?void 0:t.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}getDetailsError(){var e,t,s,i;return Array.isArray(null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)?null===(i=null===(s=this.received)||void 0===s?void 0:s.DETAILS)||void 0===i?void 0:i.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}hasPasswordExpiredError(){return this.hasErrorCode("PASSWORD_EXPIRED")}hasErrorCode(e){var t,s;return!!Array.isArray(null===(t=this.received)||void 0===t?void 0:t.ERROR)&&(null===(s=this.received)||void 0===s?void 0:s.ERROR.some((t=>t.CODE===e)))}errorDetailFormatter(e){return`\n ${e.CODE}: \n ${e.TEXT}`}}},62646:(e,t,s)=>{s.d(t,{lj:()=>J});var i=s(186),r=s(76429),o=s(83147),n=s(75951);class a{constructor(){this.cachedMetadata=new Map,this.cachedJsonSchema=new Map}getMetadataFor(e){return this.cachedMetadata.get(e)}getJsonSchemaFor(e){return this.cachedJsonSchema.get(e)}hasMetadataFor(e){return this.cachedMetadata.has(e)}hasJsonSchemaFor(e){return this.cachedJsonSchema.has(e)}setMetadataFor(e,t){this.cachedMetadata.set(e,t)}setJsonSchemaFor(e,t){this.cachedJsonSchema.set(e,t)}}const c=n.DI.createInterface((e=>e.singleton(a))),h=new RegExp(/wss?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)\b\/*$/,"i");var d=s(22296);const E=n.DI.createInterface(),l=n.DI.createInterface();var u=s(26714),S=s(16697),g=s(56383),_=s(29866),T=s(40804),R=s(7211),p=s(44866),m=s(75527);class v{serialize(e){return JSON.stringify(e)}deserialize(e){return e?"string"==typeof e?JSON.parse(e):e.data?JSON.parse(e.data):e.text().then((e=>JSON.parse(e))):Promise.resolve({})}}const O=n.DI.createInterface((e=>e.singleton(v)));let A=class{constructor(e){this.serializer=e}get(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"GET"}));return(t.serializer||this.serializer).deserialize(s)}))}post(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"POST"}));return(t.serializer||this.serializer).deserialize(s)}))}};A=(0,i.__decorate)([(0,i.__param)(0,O)],A);const I=n.DI.createInterface((e=>e.singleton(A)));var f=s(9162);const M={polling:Object.assign({POLLING_MAP:{EVENT_AMEND_USER:{TEMP_FREQUENCY:500,AMOUNT_OF_POLLS:5,QUERIES:["ALL_USERS"]}},POLLING_INTERVAL_MAP:{ALL_TRADES:5e3,ALL_USERS:5e3,ALL_PROCESSES_STATUS:1e4},POLLING_FREQUENCY:5e3},{})};let N=class e{get isConnected(){return this._isConnected}set isConnected(e){this._isConnected=e,this.isConnectedSubject.next(this._isConnected)}constructor(e,t,s,i,r,o=M){this.http=e,this.messageBuilder=t,this.session=s,this.metaCache=i,this.serializer=r,this.config=o,this.isWorking=!1,this._isConnected=!1,this.isConnectedSubject=new u.X(this._isConnected),this.ongoingTurbo={},this.streams=new Map}checkHost(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){try{return this.getMessage({MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:"host check"}).then((e=>e.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG))}catch(e){return d.k.error(e),!1}}))}send(t,s){return this.http.post(e.getUrl(this.host,t),{body:e.getBody(t),headers:e.getHeaders(t)})}httpMode(){return!0}setValidSession(e){d.k.warn("setValidSession() called while in http polling mode.")}connect(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.host=e,this.host.endsWith("/")||(this.host=this.host.concat("/")),this.checkHost().then((e=>(this.isConnected=e,this.session.setSessionStorageItem("hostUrl",this.host),e)))}))}disconnect(){this.isConnected=!1,this.streams.clear(),this.ongoingTurbo={},this.host=void 0}snapshot(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return d.k.debug(`HTTP MODE - ${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.send(s).then((e=>(this.dataLogoff(s.SOURCE_REF).catch((e=>d.k.error(e))),e)))}))}stream(e,t,s,i){const r=this.messageBuilder.createDataLogonMessage(e,i);d.k.debug(`HTTP MODE - ${r.MESSAGE_TYPE} (stream) message created -> `,r);const o=r.SOURCE_REF;this.streams.set(o,{SOURCE_REF:o,POLLING_FREQUENCY:new u.X(this.config.polling.POLLING_FREQUENCY),RESOURCE_NAME:e});const n=this.streams.get(o).POLLING_FREQUENCY,a=(0,S.z)((0,g.D)(this.send(r)),n.pipe((0,_.w)((e=>(0,T.F)(e)))).pipe((0,_.w)((()=>(0,g.D)(this.getMessage(r)))))).pipe((0,R.o)((()=>this.streams.has(o))),(0,p.x)((()=>{d.k.debug(`Terminating stream for ${e} - ${o}`),this.dataLogoff(o)})));return this.streams.get(o).STREAM=a,a}getMessage(t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.http.get(e.getUrl(this.host,t),{headers:e.getHeaders(t)})}))}getMoreRows(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return d.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} message created -> `,t),this.send(t)}))}dataLogoff(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return this.send(t).then((t=>(this.streams.has(e)&&(d.k.debug(`Removing stream ${e}`),this.streams.delete(e)),t)))}))}getMetadata(e,t=!0){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e);return d.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} (metadata) message created -> `,t),this.send(t).then((e=>e.DETAILS))}))}getJSONSchema(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);return d.k.debug(`HTTP MODE! - ${t.MESSAGE_TYPE} (json schema) message created -> `,t),this.send(t)}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return d.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (request server) message created -> `,s),this.send(s)}commitEvent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return d.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (commit) message created -> `,s),this.send(s).then((t=>(this.maybeTurbo(e,t),t)))}))}maybeTurbo(e,t){var s;if(!(null===(s=null==t?void 0:t.MESSAGE_TYPE)||void 0===s?void 0:s.endsWith("_ACK")))return;if(this.ongoingTurbo[e])return void d.k.debug(`${e} polling frequency is already accelerated.`);const i=this.config.polling.POLLING_MAP[e];if(!(null==i?void 0:i.TEMP_FREQUENCY)||!i.AMOUNT_OF_POLLS)return;const r=i.TEMP_FREQUENCY,o=r*i.AMOUNT_OF_POLLS,n=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP)),a=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP));for(const e of i.QUERIES)a[e]=r,n[e]||(n[e]=this.config.polling.POLLING_FREQUENCY);d.k.debug(`${e} TRIGGERED -> ENFORCING TURBO | FREQUENCY=${r}ms DURATION=${o}`),this.ongoingTurbo[e]=!0,this.updateIntervals({polling:{POLLING_INTERVAL_MAP:a}}),setTimeout((()=>{d.k.debug(`RESTORED ORIGINAL POLLING INTERVALS FOR ${e}`),this.updateIntervals({polling:{POLLING_INTERVAL_MAP:n}}),this.ongoingTurbo[e]=!1}),o)}updateIntervals(e){const{POLLING_INTERVAL_MAP:t}=e.polling;t&&(this.config.polling.POLLING_INTERVAL_MAP=t,this.handlePollingIntervalMapUpdate(t))}handlePollingIntervalMapUpdate(e){if(e)for(const t in e){if(!e.hasOwnProperty(t))continue;const s=e[t];this.config.polling.POLLING_INTERVAL_MAP[t]=s,d.k.debug(`Setting polling frequency for ${t} = ${s}`),[...this.streams.values()].filter((e=>e.RESOURCE_NAME===t)).forEach((e=>{var t;return null===(t=null==e?void 0:e.POLLING_FREQUENCY)||void 0===t?void 0:t.next(s)}))}}static getHeaders(e){const t={"Content-type":"application/json; charset=UTF-8","source-ref":e.SOURCE_REF};return e.SESSION_AUTH_TOKEN&&(t["SESSION-AUTH-TOKEN"]=e.SESSION_AUTH_TOKEN),e.MESSAGE_TYPE===f.N$.EVENT_LOGOUT&&(t["SESSION-ID"]=e.SESSION_ID),t}static getBody(e){return JSON.stringify(e)}static getUrl(e,t){const s=t.MESSAGE_TYPE;let i=t.MESSAGE_TYPE.replace(/_/g,"-").toLowerCase();return s===f.N$.DATA_LOGON&&(i=t.DETAILS.DATASOURCE_NAME.replace(/_/g,"-").toLowerCase()),`${e}${i}`}};(0,i.__decorate)([o.observable],N.prototype,"host",void 0),(0,i.__decorate)([o.observable],N.prototype,"isWorking",void 0),(0,i.__decorate)([o.observable],N.prototype,"_isConnected",void 0),(0,i.__decorate)([o.volatile],N.prototype,"isConnected",null),N=(0,i.__decorate)([(0,i.__param)(0,I),(0,i.__param)(1,f.sW),(0,i.__param)(2,m.z),(0,i.__param)(3,c),(0,i.__param)(4,r.JSONSerializer),(0,i.__param)(5,(0,n.optional)(l))],N);n.DI.createInterface((e=>e.singleton(N)));var b=s(72284),C=s(98239),U=s(37674),k=s(30094),L=s(30526),w=s(47821),P=s(68370),y=s(52354),D=s(2355);const G=1e4,F=6e4;var H;!function(e){e.Linear="linear",e.Exponential="exponential"}(H||(H={}));const V=(e,t)=>{const{reconnectInterval:s=G}=e,i=s>F?F:s,r=Math.round(Math.log2(F/i));return i*Math.pow(2,t%r)},$=e=>{const{reconnectInterval:t=G}=e;return t>F?F:t};class Y extends b.x{constructor(){super()}}class K{constructor(e,t,s,i){this._message=e,this._onMessage=t,this._onError=s,this._isSubscription=i}get sentMessage(){return this._message}get onReceivedMessage(){return this._onMessage}get onReceivedError(){return this._onError}get isSubscription(){return this._isSubscription}}let W=class{isConnectedChanged(e,t){this.isConnectedSubject.next(t)}constructor(e,t,s,i){this.messageBuilder=e,this.session=t,this.serializer=s,this.uuid=i,this.defaultInterval=1e4,this.secondsMultiplier=1e3,this.isConnectedSubject=new u.X(!1),this.isConnected=!1,this.hasValidSession=!1,this.heartbeatIsEnabled=!0,this.heartbeatInterval=this.defaultInterval,this.isReconnecting=!1,this.socketMessages=()=>this.wsMessages}get heartbeatLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeatLogging)&&void 0!==t&&t}get messageLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableMessageLogging)&&void 0!==t&&t}connect(e,t,s){return this.url=e,this.connectOptions=t,this.reconnectOptions=s,new Promise((e=>{var t,s,r,o;d.k.info(`${this.isReconnecting?"Reconnecting":"Connecting"} to ${this.url}`);(!this.isReconnecting||!(null===(t=this.reconnectOptions)||void 0===t?void 0:t.reconnectStreams))&&this.cleanMessages(),null===(s=this.socketSubscription)||void 0===s||s.unsubscribe(),this.websocket=new y.p({url:this.url,openObserver:{next:()=>{this.isConnected=!0,this.session.setSessionStorageItem("hostUrl",this.url),this.prepareHeartbeat(),d.k.info("WebSocket connection is now open"),e(this.isConnected)}},closeObserver:{next:t=>{this.disconnectedByServer=!t.wasClean,this.isConnected=!1,this.disconnectedByServer&&d.k.info(`WebSocket connection was closed due an error - Code: ${t.code} ${t.reason?" | Reason: "+t.reason:""}`),e(this.isConnected)}},serializer:this.serializer.serialize,deserializer:this.serializer.deserialize});this.socketSubscription=this.websocket.subscribe(null!==(o=null===(r=this.connectOptions)||void 0===r?void 0:r.connectObserver)&&void 0!==o?o:{next:e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var t;const s=`Response Message received for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,s);const{SOURCE_REF:i,MESSAGE_TYPE:r}=e,o=this.getMessageHandler(i,r);if(!o)return;let n=!1;switch(e.MESSAGE_TYPE){case f.N$.EVENT_LOGIN_AUTH_ACK:{this.hasValidSession=!0;const s=e.DETAILS;s.HEARTBEAT_INTERVAL_SECS&&void 0===(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatInterval)&&(this.heartbeatInterval=s.HEARTBEAT_INTERVAL_SECS*this.secondsMultiplier,this.prepareHeartbeat());break}case f.Cs.LOGOUT_ACK:return this.hasValidSession=!1,o.onReceivedMessage.call(this,e),void this.cleanMessages();case f.Cs.LOGON_ACK:return;case f.Cs.LOGOFF_ACK:if(e.LOGGED_OUT&&this.hasValidSession){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.send(e);t?t.MESSAGE_TYPE===f.N$.EVENT_LOGIN_AUTH_ACK&&(this.session.setAuthResult(t),this.wsMessageHandlers.forEach((e=>{e.isSubscription&&(e.sentMessage.SESSION_AUTH_TOKEN=t.SESSION_AUTH_TOKEN,this.websocket.next(e.sentMessage))}))):this.hasValidSession=!1}break;case f.Cs.QUERY_UPDATE:if(!o.isSubscription){const e=this.messageBuilder.createDataLogoffMessage(i);this.send(e)}break;case f.Cs.MSG_NACK:n=!0}n?o.onReceivedError.call(this,{receivedMessage:e,sentMessage:o.sentMessage}):o.onReceivedMessage.call(this,e),this.wsMessages.next(e),o.isSubscription||this.removeMessageHandler(i)})),error:e=>{d.k.debug("Error found: ",e),this.reconnect()},complete:()=>{var e;this.disconnectedByServer&&(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)?this.reconnect():d.k.info("Connection is now closed")}})}))}prepareHeartbeat(){var e,t,s,r;this.heartbeatSubscription&&this.heartbeatSubscription.unsubscribe();const o=()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!this.isConnected)return;const e={MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:this.uuid.createId()},t=yield this.send(e);this.heartbeatIsEnabled=t.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG&&t.SOURCE_REF===e.SOURCE_REF}));if(null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeat)&&void 0!==t?t:this.heartbeatIsEnabled){const e=null!==(r=null===(s=this.connectOptions)||void 0===s?void 0:s.heartbeatInterval)&&void 0!==r?r:this.heartbeatInterval;this.heartbeatSubscription=(0,C.H)(e,e).pipe((0,R.o)((()=>this.websocket&&this.isConnected)),(0,L.b)((()=>this.heartbeatLoggingIsEnabled&&d.k.debug(`Sending a heartbeat ping every ${e} ms`)))).subscribe((()=>o()))}}reconnect(){var e,t,s,i,r;const o=!(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)&&!1===(null===(t=this.connectOptions)||void 0===t?void 0:t.enableHeartbeat);if(this.isReconnecting||o)return;this.isReconnecting=!0;const n=(null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectStrategy)===H.Exponential?V:$,a=this.isConnectedSubject.asObservable().pipe((0,_.w)((e=>e?(0,U.of)(-1):((e,t)=>new D.y((s=>{let i,r=0;return function o(){s.next(r),clearTimeout(i),i=setTimeout(o,t(e,r)),r+=1}(),()=>{clearTimeout(i)}})))(this.reconnectOptions,n).pipe((0,w.z)((e=>{var t,s,i;let r;return r=(null===(t=this.connectOptions)||void 0===t?void 0:t.alwaysOn)?e+1:null!==(i=null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectAttempts)&&void 0!==i?i:10,e<r?(0,U.of)(e):(0,k._)((()=>new Error(`Max reconnect attempts ${r} reached.`)))}))))),(0,R.o)((()=>this.websocket&&!this.isConnected)));a.subscribe(null!==(r=null===(i=this.reconnectOptions)||void 0===i?void 0:i.reconnectObserver)&&void 0!==r?r:{next:e=>{d.k.debug(`Attempt no. ${e+1} to reconnect`),this.websocket.complete(),this.connect(this.url,this.connectOptions,this.reconnectOptions)},error:e=>{var t;d.k.debug(e),null===(t=this.socketSubscription)||void 0===t||t.unsubscribe(),this.isReconnecting=!1},complete:()=>{d.k.info(this.isConnected?"Reconnected":"Disconnected"),this.isReconnecting=!1,this.wsMessageHandlers.forEach((e=>{e.isSubscription&&this.websocket.next(e.sentMessage)}))}})}reset(){this.isConnected=!1,this.websocket&&this.websocket.complete(),this.websocket=null,this.cleanMessages()}cleanMessages(){this.wsMessages&&this.wsMessages.complete(),this.wsMessages=new Y,this.wsMessageHandlers=new Map}send(e,t=!0){if(!this.isConnected)return void Promise.reject(new Error("WebSocket connection is closed"));const s=`Sending Message for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,s),new Promise(((s,i)=>{const r=e=>{s(e)},o=e=>{i(e)};t&&this.setMessageHandler(e,r,o),this.websocket.next(e)}))}sendForStream(e,t,s){if(!this.isConnected)return(0,k._)((()=>new Error("WebSocket connection is closed")));if(!this.hasValidSession)return(0,k._)((()=>new Error("WebSocket connection is open but there is no valid/active session, please check your auth flow")));const i=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,i),this.setMessageHandler(e,t,s,!0),this.websocket.next(e),(0,g.D)(this.wsMessages.pipe((0,P.h)((t=>t.SOURCE_REF===e.SOURCE_REF))))}setMessageHandler(e,t,s,i=!1){const r=`Setting Message Handler for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.debug,r),this.wsMessageHandlers.set(e.SOURCE_REF,new K(e,t,s,i))}removeMessageHandler(e){this.wsMessageHandlers.delete(e)}getMessageHandler(e,t){const s=`Getting Message Handler for SourceRef: ${e} | MessageType: ${t}`;return this.logMessageTypeFlow(t,d.k.debug,s),this.wsMessageHandlers.get(e)}logMessageTypeFlow(e,t,s){switch(e){case f.Cs.HEARTBEAT_PING:case f.Cs.HEARTBEAT_PONG:this.heartbeatLoggingIsEnabled&&t(s);break;default:this.messageLoggingIsEnabled&&t(s)}}};(0,i.__decorate)([o.observable],W.prototype,"websocket",void 0),(0,i.__decorate)([o.observable],W.prototype,"wsMessages",void 0),(0,i.__decorate)([o.observable],W.prototype,"wsMessageHandlers",void 0),(0,i.__decorate)([o.observable],W.prototype,"isConnected",void 0),(0,i.__decorate)([o.observable],W.prototype,"disconnectedByServer",void 0),(0,i.__decorate)([o.observable],W.prototype,"hasValidSession",void 0),(0,i.__decorate)([o.observable],W.prototype,"heartbeatIsEnabled",void 0),(0,i.__decorate)([o.observable],W.prototype,"isReconnecting",void 0),W=(0,i.__decorate)([(0,i.__param)(0,f.sW),(0,i.__param)(1,m.z),(0,i.__param)(2,O),(0,i.__param)(3,r.UUID)],W);const B=n.DI.createInterface((e=>e.singleton(W))),x={connect:{alwaysOn:!1,enableHeartbeat:!0,enableHeartbeatLogging:!1,heartbeatInterval:1e4,enableMessageLogging:!1},reconnect:{reconnectAttempts:10,reconnectInterval:1e4,reconnectStreams:!0}};let Q=class{get isConnected(){return this.socket.isConnected}get isConnectedSubject(){return this.socket.isConnectedSubject}constructor(e,t,s,i=x){this.socket=e,this.messageBuilder=t,this.metaCache=s,this.config=i,this.isWorking=!1}httpMode(){return!1}setValidSession(e){this.socket.hasValidSession=e}send(e,t){return this.socket.send(e,t)}connect(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.socket.reset(),h.test(e)?this.socket.connect(e,this.config.connect,this.config.reconnect):(d.k.error(`Specified host (${e}) is not valid WebSocket url. Connection will not proceed.`),void d.k.warn("Make sure the host url starts with wss:// or ws://"))}))}disconnect(){this.socket.reset()}snapshot(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.socket.send(s)}))}stream(e,t,s,i){const r=this.messageBuilder.createDataLogonMessage(e,i);return d.k.debug(`${r.MESSAGE_TYPE} (stream) message created -> `,r),this.socket.sendForStream(r,t,s)}getMoreRows(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return d.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t,!1)}))}dataLogoff(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return d.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t)}))}getMetadata(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return d.k.debug(`Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const i=this.messageBuilder.createMetaRequestMessage(e);let r;d.k.debug(`${i.MESSAGE_TYPE} (metadata) message created -> `,i);try{this.isWorking=!0;const t=yield this.socket.send(i);r=null!==(s=null==t?void 0:t.DETAILS)&&void 0!==s?s:{},Object.keys(r).length&&this.metaCache.setMetadataFor(e,r)}catch(e){d.k.error(e)}finally{this.isWorking=!1}return r}))}getJSONSchema(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasJsonSchemaFor(e))return d.k.debug(`Cached JsonSchema retrieved for ${e}`),this.metaCache.getJsonSchemaFor(e);const i=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);let r;d.k.debug(`${i.MESSAGE_TYPE} (json schema) message created -> `,i);try{this.isWorking=!0,r=null!==(s=yield this.socket.send(i))&&void 0!==s?s:{},Object.keys(r).length&&this.metaCache.setJsonSchemaFor(e,r)}catch(e){d.k.error(e)}finally{this.isWorking=!1}return r}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (request server) message created -> `,s),this.socket.send(s)}commitEvent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (commit) message created -> `,s),this.socket.send(s)}))}};(0,i.__decorate)([o.observable],Q.prototype,"isWorking",void 0),(0,i.__decorate)([o.volatile],Q.prototype,"isConnected",null),Q=(0,i.__decorate)([(0,i.__param)(0,B),(0,i.__param)(1,f.sW),(0,i.__param)(2,c),(0,i.__param)(3,(0,n.optional)(E))],Q);const j=n.DI.createInterface((e=>e.singleton(Q))),J=n.DI.createInterface((e=>e.aliasTo(j)))},9162:(e,t,s)=>{s.d(t,{Cs:()=>i,N$:()=>r,QT:()=>o,sW:()=>l});var i,r,o,n=s(186),a=s(76429),c=s(75951),h=s(4077),d=s(75527);!function(e){e.LOGON_ACK="LOGON_ACK",e.LOGON_NACK="LOGON_NACK",e.LOGOFF_ACK="LOGOFF_ACK",e.LOGOFF_NACK="LOGOFF_NACK",e.HEARTBEAT_PING="HEARTBEAT_PING",e.HEARTBEAT_PONG="HEARTBEAT_PONG",e.MORE_ROWS="MORE_ROWS",e.MSG_ACK="MSG_ACK",e.MSG_NACK="MSG_NACK",e.LOGOUT_ACK="LOGOUT_ACK",e.LOGOUT_NACK="LOGOUT_NACK",e.QUERY_UPDATE="QUERY_UPDATE"}(i||(i={})),function(e){e.EVENT_LOGIN_AUTH="EVENT_LOGIN_AUTH",e.EVENT_LOGIN_AUTH_ACK="EVENT_LOGIN_AUTH_ACK",e.EVENT_LOGIN_AUTH_NACK="EVENT_LOGIN_AUTH_NACK",e.EVENT_LOGOUT="EVENT_LOGOUT",e.DATA_LOGON="DATA_LOGON",e.DATA_LOGOFF="DATA_LOGOFF",e.META_REQUEST="META_REQUEST",e.JSON_SCHEMA_REQUEST="JSON_SCHEMA_REQUEST",e.RESOURCES_REQUEST="RESOURCES_REQUEST",e.EVENT_CHANGE_USER_PASSWORD="EVENT_CHANGE_USER_PASSWORD",e.EVENT_SELF_SERVICE_PASSWORD_RESET="EVENT_SELF_SERVICE_PASSWORD_RESET",e.EVENT_PASSWORD_RESET_ACTION="EVENT_PASSWORD_RESET_ACTION"}(r||(r={})),function(e){e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.UNKNOWN_MESSAGE_TYPE="UNKNOWN_MESSAGE_TYPE"}(o||(o={}));let E=class{constructor(e,t){this.session=e,this.uuid=t}createLoginMessage(e){let t;switch(e.type){case h.G.BASIC:t={USER_NAME:e.username,PASSWORD:e.password};break;case h.G.REFRESH:t={USER_NAME:e.username,REFRESH_AUTH_TOKEN:e.refreshToken};break;case h.G.SSO:t={SSO_TOKEN:e.ssoToken};break;case h.G.JWT:t={JWT:e.jwt,DOMAIN:e.domain}}return{DETAILS:t,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_LOGIN_AUTH}}createLogoutMessage(e){var t,s;return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_LOGOUT,SESSION_AUTH_TOKEN:null!==(t=e.authToken)&&void 0!==t?t:this.session.getSessionStorageItem("authToken"),SESSION_ID:null!==(s=e.sessionId)&&void 0!==s?s:this.session.getSessionStorageItem("sessionId")}}createDataLogonMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.DATA_LOGON,DETAILS:Object.assign({DATASOURCE_NAME:e},t),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createDataLogoffMessage(e){return{SOURCE_REF:e,MESSAGE_TYPE:r.DATA_LOGOFF,SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createRequestMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e.startsWith("REQ_")?e:`REQ_${e}`},t)}createMetaRequestMessage(e,t=r.META_REQUEST){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:t,DETAILS:{FEATURE:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createCommitMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e},t)}createRefreshTokenMessage(){return{SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:r.EVENT_LOGIN_AUTH,DETAILS:{REFRESH_AUTH_TOKEN:this.session.getSessionStorageItem("refreshToken")}}}createChangePasswordMessage(e,t,s){return{USER_NAME:e,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_CHANGE_USER_PASSWORD,DETAILS:{OLD_PASSWORD:t,NEW_PASSWORD:s}}}createForgotPasswordMessage(e,t,s=e){return{USER_NAME:s,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_SELF_SERVICE_PASSWORD_RESET,DETAILS:{USER_NAME:e,RETURN_URL:t}}}createForgotPasswordTokenMessage(e,t,s,i=e){return{USER_NAME:i,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_PASSWORD_RESET_ACTION,DETAILS:{USER_NAME:e,RESET_TOKEN:t,NEW_PASSWORD:s}}}createMoreRowsMessage(e){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.MORE_ROWS,DETAILS:{SOURCE_REF:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}};E=(0,n.__decorate)([(0,n.__param)(0,d.z),(0,n.__param)(1,a.UUID)],E);const l=c.DI.createInterface((e=>e.singleton(E)))},5127:(e,t,s)=>{s.d(t,{$:()=>r});var i=s(22296);function r(e,t="ROW_REF"){const s=e=>{const s=Object.assign(Object.assign({},e),{[t]:e.DETAILS[t]});return delete s.DETAILS,s},r=[],o=[],n=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":r.push(s(t));break;case"MODIFY":n.push(s(t));break;case"DELETE":o.push(s(t));break;default:i.k.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:r,deletes:o,updates:n,SOURCE_REF:e.SOURCE_REF}}},43752:(e,t,s)=>{s.d(t,{Yh:()=>G});var i=s(186),r=s(83147),o=s(75951),n=s(98239),a=s(56383),c=s(7211),h=s(29866),d=s(62646),E=s(9162),l=s(19082),u=s(4077),S=s(75527),g=s(22296);const _=o.DI.createInterface();function T(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(g.k.warn("PasswordCredential not available in this browser."),!1):(g.k.warn("CredentialsContainer not available in this browser."),!1)}const R=":";function p(e="",t=R,s){return e.split(t,s).map((e=>e.trim())).filter((e=>""!==e))}function m(e,t=R){const s="string"==typeof e&&e.trim();return!!s&&s.includes(t)}function v(e,t=R){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function O(e,t=R){for(const s of e)if(m(s,t))return s;return e.find((e=>"string"==typeof e&&!!e.trim()))}function A(e,t,s){const i="string"==typeof e&&e.trim();return!i||s&&!i.includes(s)||v(i)>1?s&&t&&s!==t?`${t}:${s}`:t||s:i}function I(e="credential"){g.k.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const f={password:!0,mediation:"optional"},M={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let N=class{constructor(e,t=M){this.session=e,this.config=t}createBasicCredentials(e){return{type:u.G.BASIC,username:e.username,password:e.password}}createRefreshCredentials(e){var t,s;return{type:u.G.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(s=null==e?void 0:e.refreshToken)&&void 0!==s?s:this.getRefreshToken()}}createSSOCredentials(e){var t;return{type:u.G.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const s=e&&!!e.id&&!!e.name&&!e.name.includes(R)&&v(e.id)<=1;return t?s&&!!e.password:s}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[s]=p(t.name||t.id),[i,r]=p(O([t.id,t.name]));return[{id:A(t.id||t.name,s,r),name:s,password:t.password||""},!0]}catch(e){I("PasswordCredential")}if(t)try{const e=t,[s]=p(e.name||e.username||e.organisation),[i,r]=p(O([e.organisation||e.username||e.name]));return[{id:A(e.id||e.username||e.name,s,r),name:s,password:e.password||""},!1]}catch(e){I("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!T())return;const t=new PasswordCredential(e);return g.k.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)}))}getCredentialsFromContainer(e=f){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(T())return g.k.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)}))}storeCredentialsInCookie(e){const{password:t}=e,s=(0,i.__rest)(e,["password"]),r=this.config.cookie.storePasswords?e:s;return g.k.debug("Storing credentials in cookie"),!!l.Z.set(this.config.cookie.name,JSON.stringify(r),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){g.k.debug("Getting credentials from cookie");const e=l.Z.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(T()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))}))}getCredentials(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return T()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())}))}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")}removeCookie(){l.Z.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken()}preventSilentAccess(){return T()&&navigator.credentials.preventSilentAccess()}};N=(0,i.__decorate)([(0,i.__param)(0,S.z),(0,i.__param)(1,(0,o.optional)(_))],N);const b=o.DI.createInterface((e=>e.singleton(N)));class C{constructor(e){Object.assign(this,e)}hasAdminProfile(){return this.hasProfile("ADMIN")}hasPermission(e){return this.hasKey(this.permissions,e)}hasProfile(e){return this.hasKey(this.profiles,e)}hasKey(e,t){return!!(e&&e.length&&t)&&(Array.isArray(t)||(t=[t]),t.some((t=>e.includes(t))))}}(0,i.__decorate)([r.observable],C.prototype,"permissions",void 0),(0,i.__decorate)([r.observable],C.prototype,"profiles",void 0),(0,i.__decorate)([r.observable],C.prototype,"username",void 0);let U=class{get isLoggedIn(){return!!this.loggedUserResult&&!(!this.loggedUserResult.authToken||!this.loggedUserResult.sessionId)}constructor(e,t,s,i){this.session=e,this.connect=t,this.messageBuilder=s,this.credentialManager=i,this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null}login(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;try{const s=this.messageBuilder.createLoginMessage(e),i=yield this.connect.send(s);if(!i||i.ERROR||(null===(t=i.DETAILS)||void 0===t?void 0:t.ERROR))throw new u.l(s,i);this.applyAuthResults({authToken:i.SESSION_AUTH_TOKEN,refreshToken:i.REFRESH_AUTH_TOKEN,profiles:i.PROFILE,username:i.USER_NAME,permissions:i.PERMISSION,sessionId:i.SESSION_ID}),this.session.setAuthResult(i),g.k.debug("Login Authentication Result:",i)}catch(e){if(g.k.error("Login Authentication Error:",e),!(e instanceof u.l&&e.isIgnorableError()))throw this.removeAuthResults(),e;g.k.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult}))}logout(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;let t={success:!1};try{const s=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1);const{CODE:i,DETAILS:r,ERROR:o,MESSAGE_TYPE:n,OIDC_LOGOUT_URL:a}=yield this.connect.send(s),c=null!==(e=null==r?void 0:r.ERROR)&&void 0!==e?e:o,h=n===E.Cs.LOGOUT_NACK;h&&g.k.warn("Unexpected Logout NACK received during logout.",c),t={success:n===E.Cs.LOGOUT_ACK||i===E.QT.SESSION_NOT_FOUND||h,error:c},a&&window.open(a,"_self")}catch(e){const s=new u.l(e.sentMessage,e.receivedMessage);if(g.k.error("Logout Authentication Error:",s),!s.isIgnorableError())throw e;g.k.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.isWorking=!1}return t}))}reAuthFromSession(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(yield this.ensureConnection()){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===E.N$.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.connect.setValidSession(!0),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1),!1}))}ensureConnection(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)}))}getLoggedUserFromMessage(e){const t=e.USER_NAME,s=e.SESSION_AUTH_TOKEN,i=e.REFRESH_AUTH_TOKEN;return t&&s&&i?{username:t,authToken:s,refreshToken:i,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?(this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId},this.currentUser=new C({permissions:e.permissions,profiles:e.profiles,username:e.username})):this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null,this.currentUser=null}};(0,i.__decorate)([r.observable],U.prototype,"isWorking",void 0),(0,i.__decorate)([r.observable],U.prototype,"loggedUserResult",void 0),(0,i.__decorate)([r.observable],U.prototype,"currentUser",void 0),(0,i.__decorate)([r.volatile],U.prototype,"isLoggedIn",null),U=(0,i.__decorate)([(0,i.__param)(0,S.z),(0,i.__param)(1,d.lj),(0,i.__param)(2,E.sW),(0,i.__param)(3,b)],U);const k=o.DI.createInterface((e=>e.singleton(U)));var L=s(66306);var w=s(5127),P=s(82940);const y={options:{criteria:"",isSnapshot:!1,maxRows:P.WJ.MAX_ROWS_250,maxView:P.WJ.MAX_VIEW_1000,movingView:!1,orderBy:"",resourceName:"",reverse:!1},criteriaToFields:function(e){const t=e.split("&&").map((e=>e.trim())),s={};return t.forEach((e=>{const t=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),i=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");s[t]=i})),s},dataServerResultFilter:w.$};let D=class{constructor(e,t,s=y){this.connect=e,this.auth=t,this.config=s,this.initialized=!1,this.readOnly=!0,this.originalFieldDef=[],this.requestFields=[],this.fieldMetadata=[],this.availableIndexes=[]}init(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!this.validResourceName(null==e?void 0:e.resourceName))return!1;if(this.options=Object.assign(Object.assign({},this.config.options),e),t){g.k.debug(`Initializing ${this.options.resourceName} Datasource`);const t=yield this.connect.getMetadata(this.options.resourceName).catch((t=>g.k.error(`Metadata Fetch failed for ${e.resourceName}:`,t)));if(!t)return this.deinit(),!1;this.resourceType=t.TYPE,this.availableIndexes=null!==(s=t.INDEXES)&&void 0!==s?s:[],this.originalFieldDef=(0,L.C)(t),this.fieldMetadata=(0,L.i)(this.originalFieldDef),this.requestFields=t.REQUEST_FIELD||[],g.k.debug(`Datasource for ${this.options.resourceName} is ready`)}return this.options.isSnapshot||(this._stream=yield this.createStream()),this.initialized=!0,this.initialized}))}deinit(){this.initialized=!1,this.options=void 0,this.resourceType=void 0,this.availableIndexes=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[]}get stream(){return this._stream}get params(){const e={CRITERIA_MATCH:this.options.criteria,FIELDS:this.options.fields,MAX_ROWS:this.options.maxRows,MAX_VIEW:this.options.maxView,MOVING_VIEW:this.options.movingView,REQUEST:this.options.request,REVERSE:this.options.reverse};if(this.options.orderBy)if(this.availableIndexes.findIndex((e=>e.NAME===this.options.orderBy))>-1)e.ORDER_BY=this.options.orderBy;else{const e=this.availableIndexes.map((e=>e.NAME));g.k.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return g.k.debug("Getting configured params:",e),e}snapshot(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){switch(g.k.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case P._g.DATASERVER:return this.connect.snapshot(this.options.resourceName,this.params);case P._g.REQUEST_SERVER:{const t=this.params,{REQUEST:s,CRITERIA_MATCH:r}=t,o={DETAILS:(0,i.__rest)(t,["REQUEST","CRITERIA_MATCH"]),REQUEST:Object.assign(Object.assign(Object.assign({},Object.fromEntries(this.requestFields.map((e=>[e.NAME,"*"])))),this.params.REQUEST),(null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.criteria)?this.config.criteriaToFields(this.options.criteria):{})};return this.connect.request(this.options.resourceName,o)}default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}}))}snapshotFiltered(e="ROW_REF"){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0}))}createStream(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(![P._g.DATASERVER,P._g.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===P._g.DATASERVER?this.createDataserverStream():(g.k.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())}))}createDataserverStream(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.options.resourceName,(e=>{}),(e=>g.k.error(e)),this.params)}))}createReqRepStream(){return(0,n.H)(0,P.WJ.REQ_REP_POLLING_INTERVAL_MS).pipe((0,c.o)((()=>this.connect.isConnected&&this.auth.isLoggedIn)),(0,h.w)((()=>(0,a.D)(this.snapshot()))))}validResourceName(e){return!!e&&!!e.trim().length}};(0,i.__decorate)([r.observable],D.prototype,"initialized",void 0),(0,i.__decorate)([r.observable],D.prototype,"readOnly",void 0),(0,i.__decorate)([r.volatile],D.prototype,"stream",null),D=(0,i.__decorate)([(0,i.__param)(0,d.lj),(0,i.__param)(1,k),(0,i.__param)(2,(0,o.optional)(P.tt))],D);const G=o.DI.createInterface((e=>e.transient(D)))},82940:(e,t,s)=>{s.d(t,{WJ:()=>o,_g:()=>i,tt:()=>n});var i,r=s(75951);!function(e){e.DATASERVER="DATASERVER",e.EVENT_HANDLER="EVENT_HANDLER",e.REQUEST_SERVER="REQUEST_SERVER"}(i||(i={}));class o{}o.MAX_ROWS_250=250,o.MAX_VIEW_1000=1e3,o.REQ_REP_POLLING_INTERVAL_MS=1e4;const n=r.DI.createInterface()},32449:(e,t,s)=>{function i(e,t=";"){return e?e.split(t).map((e=>e.trim())).sort(((e,t)=>e.localeCompare(t))).join(t):e}s.d(t,{p:()=>i})},83123:(e,t,s)=>{var i;s.d(t,{E:()=>r,r:()=>i}),function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.ENUM="ENUM",e.DATE="DATE",e.DATETIME="DATETIME",e.CUSTOM="CUSTOM"}(i||(i={}));const r={STRING:i.STRING,ENUM:i.ENUM,BOOLEAN:i.BOOLEAN,INT:i.NUMBER,DOUBLE:i.NUMBER,BIGDECIMAL:i.NUMBER,DATE:i.DATE,DATETIME:i.DATETIME}},66306:(e,t,s)=>{s.d(t,{C:()=>a,i:()=>n});var i=s(82940),r=s(22296),o=s(83123);const n=e=>e?e.map((e=>{const t={name:e.NAME,type:o.E[e.TYPE]||o.r.STRING};if(e.TYPE===o.r.ENUM&&e.VALID_VALUES)try{t.enumOptions=Array.isArray(e.VALID_VALUES)?e.VALID_VALUES:e.VALID_VALUES.split("|")}catch(e){r.k.error(e),t.enumOptions=[]}return t})):null,a=e=>{const t=null==e?void 0:e.TYPE;if(t===i._g.DATASERVER)return e.FIELD||[];if(t===i._g.REQUEST_SERVER)return e.REPLY_FIELD||[];throw new Error(`Unsupported resource type: ${t}`)}},75527:(e,t,s)=>{s.d(t,{z:()=>o});var i=s(75951);class r{constructor(){this.storageKeyPrefix="",this.returnUrl=this.getSessionStorageItem("returnUrl")||""}deleteUserFromSessionStorage(){["authToken","refreshToken","sessionId","ssoToken"].forEach((e=>this.removeSessionStorageItem(e)))}setStorageKeyPrefix(e){this.storageKeyPrefix=`${e.replace(/\s/g,"")}/`}setAuthResult(e){this.setSessionStorageItem("authToken",e.SESSION_AUTH_TOKEN),this.setSessionStorageItem("refreshToken",e.REFRESH_AUTH_TOKEN),this.setSessionStorageItem("username",e.USER_NAME),this.setSessionStorageItem("sessionId",e.SESSION_ID)}captureReturnUrl(){const{pathname:e,search:t,hash:s}=location;if("/login"===e)return;const i=`${"/"!==e?e:""}`;this.returnUrl=`${i}${t}${s}`,this.setSessionStorageItem("returnUrl",this.returnUrl)}setItem(e,t,s){"local"===s?localStorage.setItem(this.storageKeyPrefix+e,t):sessionStorage.setItem(this.storageKeyPrefix+e,t)}getItem(e,t){return"local"===t?localStorage.getItem(this.storageKeyPrefix+e):sessionStorage.getItem(this.storageKeyPrefix+e)}removeItem(e,t){"local"===t?localStorage.removeItem(this.storageKeyPrefix+e):sessionStorage.removeItem(this.storageKeyPrefix+e)}setLocalStorageItem(e,t){this.setItem(e,t,"local")}setSessionStorageItem(e,t){this.setItem(e,t,"session")}getLocalStorageItem(e){return this.getItem(e,"local")}getSessionStorageItem(e){return this.getItem(e,"session")}removeLocalStorageItem(e){this.removeItem(e,"local")}removeSessionStorageItem(e){this.removeItem(e,"session")}}const o=i.DI.createInterface((e=>e.singleton(r)))},22296:(e,t,s)=>{s.d(t,{k:()=>r});var i=s(76429);const r=(0,i.createLogger)("foundation-comms")}}]);
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[430],{4077:(e,t,s)=>{var i;s.d(t,{G:()=>i,l:()=>r}),function(e){e.BASIC="BASIC",e.SSO="SSO",e.JWT="JWT",e.REFRESH="REFRESH"}(i||(i={}));class r extends Error{constructor(e,t,s="Auth Failed \n"){super(s),this.sent=e,this.received=t,Object.setPrototypeOf(this,r.prototype)}isIgnorableError(){var e,t,s,i;return null===(i=null===(s=null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)||void 0===s?void 0:s.toLowerCase())||void 0===i?void 0:i.includes("request needs the user to be logged")}getMessageError(){var e,t;return Array.isArray(null===(e=this.received)||void 0===e?void 0:e.ERROR)?null===(t=this.received)||void 0===t?void 0:t.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}getDetailsError(){var e,t,s,i;return Array.isArray(null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)?null===(i=null===(s=this.received)||void 0===s?void 0:s.DETAILS)||void 0===i?void 0:i.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}hasPasswordExpiredError(){return this.hasErrorCode("PASSWORD_EXPIRED")}hasErrorCode(e){var t,s;return!!Array.isArray(null===(t=this.received)||void 0===t?void 0:t.ERROR)&&(null===(s=this.received)||void 0===s?void 0:s.ERROR.some((t=>t.CODE===e)))}errorDetailFormatter(e){return`\n ${e.CODE}: \n ${e.TEXT}`}}},62646:(e,t,s)=>{s.d(t,{lj:()=>J});var i=s(186),r=s(40977),o=s(83147),n=s(75951);class a{constructor(){this.cachedMetadata=new Map,this.cachedJsonSchema=new Map}getMetadataFor(e){return this.cachedMetadata.get(e)}getJsonSchemaFor(e){return this.cachedJsonSchema.get(e)}hasMetadataFor(e){return this.cachedMetadata.has(e)}hasJsonSchemaFor(e){return this.cachedJsonSchema.has(e)}setMetadataFor(e,t){this.cachedMetadata.set(e,t)}setJsonSchemaFor(e,t){this.cachedJsonSchema.set(e,t)}}const c=n.DI.createInterface((e=>e.singleton(a))),h=new RegExp(/wss?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)\b\/*$/,"i");var d=s(22296);const E=n.DI.createInterface(),l=n.DI.createInterface();var u=s(26714),S=s(16697),g=s(56383),_=s(29866),T=s(40804),R=s(7211),p=s(44866),m=s(75527);class v{serialize(e){return JSON.stringify(e)}deserialize(e){return e?"string"==typeof e?JSON.parse(e):e.data?JSON.parse(e.data):e.text().then((e=>JSON.parse(e))):Promise.resolve({})}}const O=n.DI.createInterface((e=>e.singleton(v)));let A=class{constructor(e){this.serializer=e}get(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"GET"}));return(t.serializer||this.serializer).deserialize(s)}))}post(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"POST"}));return(t.serializer||this.serializer).deserialize(s)}))}};A=(0,i.__decorate)([(0,i.__param)(0,O)],A);const I=n.DI.createInterface((e=>e.singleton(A)));var f=s(9162);const M={polling:Object.assign({POLLING_MAP:{EVENT_AMEND_USER:{TEMP_FREQUENCY:500,AMOUNT_OF_POLLS:5,QUERIES:["ALL_USERS"]}},POLLING_INTERVAL_MAP:{ALL_TRADES:5e3,ALL_USERS:5e3,ALL_PROCESSES_STATUS:1e4},POLLING_FREQUENCY:5e3},{})};let N=class e{get isConnected(){return this._isConnected}set isConnected(e){this._isConnected=e,this.isConnectedSubject.next(this._isConnected)}constructor(e,t,s,i,r,o=M){this.http=e,this.messageBuilder=t,this.session=s,this.metaCache=i,this.serializer=r,this.config=o,this.isWorking=!1,this._isConnected=!1,this.isConnectedSubject=new u.X(this._isConnected),this.ongoingTurbo={},this.streams=new Map}checkHost(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){try{return this.getMessage({MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:"host check"}).then((e=>e.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG))}catch(e){return d.k.error(e),!1}}))}send(t,s){return this.http.post(e.getUrl(this.host,t),{body:e.getBody(t),headers:e.getHeaders(t)})}httpMode(){return!0}setValidSession(e){d.k.warn("setValidSession() called while in http polling mode.")}connect(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.host=e,this.host.endsWith("/")||(this.host=this.host.concat("/")),this.checkHost().then((e=>(this.isConnected=e,this.session.setSessionStorageItem("hostUrl",this.host),e)))}))}disconnect(){this.isConnected=!1,this.streams.clear(),this.ongoingTurbo={},this.host=void 0}snapshot(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return d.k.debug(`HTTP MODE - ${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.send(s).then((e=>(this.dataLogoff(s.SOURCE_REF).catch((e=>d.k.error(e))),e)))}))}stream(e,t,s,i){const r=this.messageBuilder.createDataLogonMessage(e,i);d.k.debug(`HTTP MODE - ${r.MESSAGE_TYPE} (stream) message created -> `,r);const o=r.SOURCE_REF;this.streams.set(o,{SOURCE_REF:o,POLLING_FREQUENCY:new u.X(this.config.polling.POLLING_FREQUENCY),RESOURCE_NAME:e});const n=this.streams.get(o).POLLING_FREQUENCY,a=(0,S.z)((0,g.D)(this.send(r)),n.pipe((0,_.w)((e=>(0,T.F)(e)))).pipe((0,_.w)((()=>(0,g.D)(this.getMessage(r)))))).pipe((0,R.o)((()=>this.streams.has(o))),(0,p.x)((()=>{d.k.debug(`Terminating stream for ${e} - ${o}`),this.dataLogoff(o)})));return this.streams.get(o).STREAM=a,a}getMessage(t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.http.get(e.getUrl(this.host,t),{headers:e.getHeaders(t)})}))}getMoreRows(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return d.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} message created -> `,t),this.send(t)}))}dataLogoff(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return this.send(t).then((t=>(this.streams.has(e)&&(d.k.debug(`Removing stream ${e}`),this.streams.delete(e)),t)))}))}getMetadata(e,t=!0){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e);return d.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} (metadata) message created -> `,t),this.send(t).then((e=>e.DETAILS))}))}getJSONSchema(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);return d.k.debug(`HTTP MODE! - ${t.MESSAGE_TYPE} (json schema) message created -> `,t),this.send(t)}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return d.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (request server) message created -> `,s),this.send(s)}commitEvent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return d.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (commit) message created -> `,s),this.send(s).then((t=>(this.maybeTurbo(e,t),t)))}))}maybeTurbo(e,t){var s;if(!(null===(s=null==t?void 0:t.MESSAGE_TYPE)||void 0===s?void 0:s.endsWith("_ACK")))return;if(this.ongoingTurbo[e])return void d.k.debug(`${e} polling frequency is already accelerated.`);const i=this.config.polling.POLLING_MAP[e];if(!(null==i?void 0:i.TEMP_FREQUENCY)||!i.AMOUNT_OF_POLLS)return;const r=i.TEMP_FREQUENCY,o=r*i.AMOUNT_OF_POLLS,n=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP)),a=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP));for(const e of i.QUERIES)a[e]=r,n[e]||(n[e]=this.config.polling.POLLING_FREQUENCY);d.k.debug(`${e} TRIGGERED -> ENFORCING TURBO | FREQUENCY=${r}ms DURATION=${o}`),this.ongoingTurbo[e]=!0,this.updateIntervals({polling:{POLLING_INTERVAL_MAP:a}}),setTimeout((()=>{d.k.debug(`RESTORED ORIGINAL POLLING INTERVALS FOR ${e}`),this.updateIntervals({polling:{POLLING_INTERVAL_MAP:n}}),this.ongoingTurbo[e]=!1}),o)}updateIntervals(e){const{POLLING_INTERVAL_MAP:t}=e.polling;t&&(this.config.polling.POLLING_INTERVAL_MAP=t,this.handlePollingIntervalMapUpdate(t))}handlePollingIntervalMapUpdate(e){if(e)for(const t in e){if(!e.hasOwnProperty(t))continue;const s=e[t];this.config.polling.POLLING_INTERVAL_MAP[t]=s,d.k.debug(`Setting polling frequency for ${t} = ${s}`),[...this.streams.values()].filter((e=>e.RESOURCE_NAME===t)).forEach((e=>{var t;return null===(t=null==e?void 0:e.POLLING_FREQUENCY)||void 0===t?void 0:t.next(s)}))}}static getHeaders(e){const t={"Content-type":"application/json; charset=UTF-8","source-ref":e.SOURCE_REF};return e.SESSION_AUTH_TOKEN&&(t["SESSION-AUTH-TOKEN"]=e.SESSION_AUTH_TOKEN),e.MESSAGE_TYPE===f.N$.EVENT_LOGOUT&&(t["SESSION-ID"]=e.SESSION_ID),t}static getBody(e){return JSON.stringify(e)}static getUrl(e,t){const s=t.MESSAGE_TYPE;let i=t.MESSAGE_TYPE.replace(/_/g,"-").toLowerCase();return s===f.N$.DATA_LOGON&&(i=t.DETAILS.DATASOURCE_NAME.replace(/_/g,"-").toLowerCase()),`${e}${i}`}};(0,i.__decorate)([o.observable],N.prototype,"host",void 0),(0,i.__decorate)([o.observable],N.prototype,"isWorking",void 0),(0,i.__decorate)([o.observable],N.prototype,"_isConnected",void 0),(0,i.__decorate)([o.volatile],N.prototype,"isConnected",null),N=(0,i.__decorate)([(0,i.__param)(0,I),(0,i.__param)(1,f.sW),(0,i.__param)(2,m.z),(0,i.__param)(3,c),(0,i.__param)(4,r.JSONSerializer),(0,i.__param)(5,(0,n.optional)(l))],N);n.DI.createInterface((e=>e.singleton(N)));var b=s(72284),C=s(98239),U=s(37674),k=s(30094),L=s(30526),w=s(47821),P=s(68370),y=s(52354),D=s(2355);const G=1e4,F=6e4;var H;!function(e){e.Linear="linear",e.Exponential="exponential"}(H||(H={}));const V=(e,t)=>{const{reconnectInterval:s=G}=e,i=s>F?F:s,r=Math.round(Math.log2(F/i));return i*Math.pow(2,t%r)},$=e=>{const{reconnectInterval:t=G}=e;return t>F?F:t};class Y extends b.x{constructor(){super()}}class K{constructor(e,t,s,i){this._message=e,this._onMessage=t,this._onError=s,this._isSubscription=i}get sentMessage(){return this._message}get onReceivedMessage(){return this._onMessage}get onReceivedError(){return this._onError}get isSubscription(){return this._isSubscription}}let W=class{isConnectedChanged(e,t){this.isConnectedSubject.next(t)}constructor(e,t,s,i){this.messageBuilder=e,this.session=t,this.serializer=s,this.uuid=i,this.defaultInterval=1e4,this.secondsMultiplier=1e3,this.isConnectedSubject=new u.X(!1),this.isConnected=!1,this.hasValidSession=!1,this.heartbeatIsEnabled=!0,this.heartbeatInterval=this.defaultInterval,this.isReconnecting=!1,this.socketMessages=()=>this.wsMessages}get heartbeatLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeatLogging)&&void 0!==t&&t}get messageLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableMessageLogging)&&void 0!==t&&t}connect(e,t,s){return this.url=e,this.connectOptions=t,this.reconnectOptions=s,new Promise((e=>{var t,s,r,o;d.k.info(`${this.isReconnecting?"Reconnecting":"Connecting"} to ${this.url}`);(!this.isReconnecting||!(null===(t=this.reconnectOptions)||void 0===t?void 0:t.reconnectStreams))&&this.cleanMessages(),null===(s=this.socketSubscription)||void 0===s||s.unsubscribe(),this.websocket=new y.p({url:this.url,openObserver:{next:()=>{this.isConnected=!0,this.session.setSessionStorageItem("hostUrl",this.url),this.prepareHeartbeat(),d.k.info("WebSocket connection is now open"),e(this.isConnected)}},closeObserver:{next:t=>{this.disconnectedByServer=!t.wasClean,this.isConnected=!1,this.disconnectedByServer&&d.k.info(`WebSocket connection was closed due an error - Code: ${t.code} ${t.reason?" | Reason: "+t.reason:""}`),e(this.isConnected)}},serializer:this.serializer.serialize,deserializer:this.serializer.deserialize});this.socketSubscription=this.websocket.subscribe(null!==(o=null===(r=this.connectOptions)||void 0===r?void 0:r.connectObserver)&&void 0!==o?o:{next:e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var t;const s=`Response Message received for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,s);const{SOURCE_REF:i,MESSAGE_TYPE:r}=e,o=this.getMessageHandler(i,r);if(!o)return;let n=!1;switch(e.MESSAGE_TYPE){case f.N$.EVENT_LOGIN_AUTH_ACK:{this.hasValidSession=!0;const s=e.DETAILS;s.HEARTBEAT_INTERVAL_SECS&&void 0===(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatInterval)&&(this.heartbeatInterval=s.HEARTBEAT_INTERVAL_SECS*this.secondsMultiplier,this.prepareHeartbeat());break}case f.Cs.LOGOUT_ACK:return this.hasValidSession=!1,o.onReceivedMessage.call(this,e),void this.cleanMessages();case f.Cs.LOGON_ACK:return;case f.Cs.LOGOFF_ACK:if(e.LOGGED_OUT&&this.hasValidSession){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.send(e);t?t.MESSAGE_TYPE===f.N$.EVENT_LOGIN_AUTH_ACK&&(this.session.setAuthResult(t),this.wsMessageHandlers.forEach((e=>{e.isSubscription&&(e.sentMessage.SESSION_AUTH_TOKEN=t.SESSION_AUTH_TOKEN,this.websocket.next(e.sentMessage))}))):this.hasValidSession=!1}break;case f.Cs.QUERY_UPDATE:if(!o.isSubscription){const e=this.messageBuilder.createDataLogoffMessage(i);this.send(e)}break;case f.Cs.MSG_NACK:n=!0}n?o.onReceivedError.call(this,{receivedMessage:e,sentMessage:o.sentMessage}):o.onReceivedMessage.call(this,e),this.wsMessages.next(e),o.isSubscription||this.removeMessageHandler(i)})),error:e=>{d.k.debug("Error found: ",e),this.reconnect()},complete:()=>{var e;this.disconnectedByServer&&(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)?this.reconnect():d.k.info("Connection is now closed")}})}))}prepareHeartbeat(){var e,t,s,r;this.heartbeatSubscription&&this.heartbeatSubscription.unsubscribe();const o=()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!this.isConnected)return;const e={MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:this.uuid.createId()},t=yield this.send(e);this.heartbeatIsEnabled=t.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG&&t.SOURCE_REF===e.SOURCE_REF}));if(null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeat)&&void 0!==t?t:this.heartbeatIsEnabled){const e=null!==(r=null===(s=this.connectOptions)||void 0===s?void 0:s.heartbeatInterval)&&void 0!==r?r:this.heartbeatInterval;this.heartbeatSubscription=(0,C.H)(e,e).pipe((0,R.o)((()=>this.websocket&&this.isConnected)),(0,L.b)((()=>this.heartbeatLoggingIsEnabled&&d.k.debug(`Sending a heartbeat ping every ${e} ms`)))).subscribe((()=>o()))}}reconnect(){var e,t,s,i,r;const o=!(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)&&!1===(null===(t=this.connectOptions)||void 0===t?void 0:t.enableHeartbeat);if(this.isReconnecting||o)return;this.isReconnecting=!0;const n=(null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectStrategy)===H.Exponential?V:$,a=this.isConnectedSubject.asObservable().pipe((0,_.w)((e=>e?(0,U.of)(-1):((e,t)=>new D.y((s=>{let i,r=0;return function o(){s.next(r),clearTimeout(i),i=setTimeout(o,t(e,r)),r+=1}(),()=>{clearTimeout(i)}})))(this.reconnectOptions,n).pipe((0,w.z)((e=>{var t,s,i;let r;return r=(null===(t=this.connectOptions)||void 0===t?void 0:t.alwaysOn)?e+1:null!==(i=null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectAttempts)&&void 0!==i?i:10,e<r?(0,U.of)(e):(0,k._)((()=>new Error(`Max reconnect attempts ${r} reached.`)))}))))),(0,R.o)((()=>this.websocket&&!this.isConnected)));a.subscribe(null!==(r=null===(i=this.reconnectOptions)||void 0===i?void 0:i.reconnectObserver)&&void 0!==r?r:{next:e=>{d.k.debug(`Attempt no. ${e+1} to reconnect`),this.websocket.complete(),this.connect(this.url,this.connectOptions,this.reconnectOptions)},error:e=>{var t;d.k.debug(e),null===(t=this.socketSubscription)||void 0===t||t.unsubscribe(),this.isReconnecting=!1},complete:()=>{d.k.info(this.isConnected?"Reconnected":"Disconnected"),this.isReconnecting=!1,this.wsMessageHandlers.forEach((e=>{e.isSubscription&&this.websocket.next(e.sentMessage)}))}})}reset(){this.isConnected=!1,this.websocket&&this.websocket.complete(),this.websocket=null,this.cleanMessages()}cleanMessages(){this.wsMessages&&this.wsMessages.complete(),this.wsMessages=new Y,this.wsMessageHandlers=new Map}send(e,t=!0){if(!this.isConnected)return void Promise.reject(new Error("WebSocket connection is closed"));const s=`Sending Message for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,s),new Promise(((s,i)=>{const r=e=>{s(e)},o=e=>{i(e)};t&&this.setMessageHandler(e,r,o),this.websocket.next(e)}))}sendForStream(e,t,s){if(!this.isConnected)return(0,k._)((()=>new Error("WebSocket connection is closed")));if(!this.hasValidSession)return(0,k._)((()=>new Error("WebSocket connection is open but there is no valid/active session, please check your auth flow")));const i=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.info,i),this.setMessageHandler(e,t,s,!0),this.websocket.next(e),(0,g.D)(this.wsMessages.pipe((0,P.h)((t=>t.SOURCE_REF===e.SOURCE_REF))))}setMessageHandler(e,t,s,i=!1){const r=`Setting Message Handler for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,d.k.debug,r),this.wsMessageHandlers.set(e.SOURCE_REF,new K(e,t,s,i))}removeMessageHandler(e){this.wsMessageHandlers.delete(e)}getMessageHandler(e,t){const s=`Getting Message Handler for SourceRef: ${e} | MessageType: ${t}`;return this.logMessageTypeFlow(t,d.k.debug,s),this.wsMessageHandlers.get(e)}logMessageTypeFlow(e,t,s){switch(e){case f.Cs.HEARTBEAT_PING:case f.Cs.HEARTBEAT_PONG:this.heartbeatLoggingIsEnabled&&t(s);break;default:this.messageLoggingIsEnabled&&t(s)}}};(0,i.__decorate)([o.observable],W.prototype,"websocket",void 0),(0,i.__decorate)([o.observable],W.prototype,"wsMessages",void 0),(0,i.__decorate)([o.observable],W.prototype,"wsMessageHandlers",void 0),(0,i.__decorate)([o.observable],W.prototype,"isConnected",void 0),(0,i.__decorate)([o.observable],W.prototype,"disconnectedByServer",void 0),(0,i.__decorate)([o.observable],W.prototype,"hasValidSession",void 0),(0,i.__decorate)([o.observable],W.prototype,"heartbeatIsEnabled",void 0),(0,i.__decorate)([o.observable],W.prototype,"isReconnecting",void 0),W=(0,i.__decorate)([(0,i.__param)(0,f.sW),(0,i.__param)(1,m.z),(0,i.__param)(2,O),(0,i.__param)(3,r.UUID)],W);const B=n.DI.createInterface((e=>e.singleton(W))),x={connect:{alwaysOn:!1,enableHeartbeat:!0,enableHeartbeatLogging:!1,heartbeatInterval:1e4,enableMessageLogging:!1},reconnect:{reconnectAttempts:10,reconnectInterval:1e4,reconnectStreams:!0}};let Q=class{get isConnected(){return this.socket.isConnected}get isConnectedSubject(){return this.socket.isConnectedSubject}constructor(e,t,s,i=x){this.socket=e,this.messageBuilder=t,this.metaCache=s,this.config=i,this.isWorking=!1}httpMode(){return!1}setValidSession(e){this.socket.hasValidSession=e}send(e,t){return this.socket.send(e,t)}connect(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.socket.reset(),h.test(e)?this.socket.connect(e,this.config.connect,this.config.reconnect):(d.k.error(`Specified host (${e}) is not valid WebSocket url. Connection will not proceed.`),void d.k.warn("Make sure the host url starts with wss:// or ws://"))}))}disconnect(){this.socket.reset()}snapshot(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.socket.send(s)}))}stream(e,t,s,i){const r=this.messageBuilder.createDataLogonMessage(e,i);return d.k.debug(`${r.MESSAGE_TYPE} (stream) message created -> `,r),this.socket.sendForStream(r,t,s)}getMoreRows(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return d.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t,!1)}))}dataLogoff(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return d.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t)}))}getMetadata(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return d.k.debug(`Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const i=this.messageBuilder.createMetaRequestMessage(e);let r;d.k.debug(`${i.MESSAGE_TYPE} (metadata) message created -> `,i);try{this.isWorking=!0;const t=yield this.socket.send(i);r=null!==(s=null==t?void 0:t.DETAILS)&&void 0!==s?s:{},Object.keys(r).length&&this.metaCache.setMetadataFor(e,r)}catch(e){d.k.error(e)}finally{this.isWorking=!1}return r}))}getJSONSchema(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasJsonSchemaFor(e))return d.k.debug(`Cached JsonSchema retrieved for ${e}`),this.metaCache.getJsonSchemaFor(e);const i=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);let r;d.k.debug(`${i.MESSAGE_TYPE} (json schema) message created -> `,i);try{this.isWorking=!0,r=null!==(s=yield this.socket.send(i))&&void 0!==s?s:{},Object.keys(r).length&&this.metaCache.setJsonSchemaFor(e,r)}catch(e){d.k.error(e)}finally{this.isWorking=!1}return r}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (request server) message created -> `,s),this.socket.send(s)}commitEvent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return d.k.debug(`${s.MESSAGE_TYPE} (commit) message created -> `,s),this.socket.send(s)}))}};(0,i.__decorate)([o.observable],Q.prototype,"isWorking",void 0),(0,i.__decorate)([o.volatile],Q.prototype,"isConnected",null),Q=(0,i.__decorate)([(0,i.__param)(0,B),(0,i.__param)(1,f.sW),(0,i.__param)(2,c),(0,i.__param)(3,(0,n.optional)(E))],Q);const j=n.DI.createInterface((e=>e.singleton(Q))),J=n.DI.createInterface((e=>e.aliasTo(j)))},9162:(e,t,s)=>{s.d(t,{Cs:()=>i,N$:()=>r,QT:()=>o,sW:()=>l});var i,r,o,n=s(186),a=s(40977),c=s(75951),h=s(4077),d=s(75527);!function(e){e.LOGON_ACK="LOGON_ACK",e.LOGON_NACK="LOGON_NACK",e.LOGOFF_ACK="LOGOFF_ACK",e.LOGOFF_NACK="LOGOFF_NACK",e.HEARTBEAT_PING="HEARTBEAT_PING",e.HEARTBEAT_PONG="HEARTBEAT_PONG",e.MORE_ROWS="MORE_ROWS",e.MSG_ACK="MSG_ACK",e.MSG_NACK="MSG_NACK",e.LOGOUT_ACK="LOGOUT_ACK",e.LOGOUT_NACK="LOGOUT_NACK",e.QUERY_UPDATE="QUERY_UPDATE"}(i||(i={})),function(e){e.EVENT_LOGIN_AUTH="EVENT_LOGIN_AUTH",e.EVENT_LOGIN_AUTH_ACK="EVENT_LOGIN_AUTH_ACK",e.EVENT_LOGIN_AUTH_NACK="EVENT_LOGIN_AUTH_NACK",e.EVENT_LOGOUT="EVENT_LOGOUT",e.DATA_LOGON="DATA_LOGON",e.DATA_LOGOFF="DATA_LOGOFF",e.META_REQUEST="META_REQUEST",e.JSON_SCHEMA_REQUEST="JSON_SCHEMA_REQUEST",e.RESOURCES_REQUEST="RESOURCES_REQUEST",e.EVENT_CHANGE_USER_PASSWORD="EVENT_CHANGE_USER_PASSWORD",e.EVENT_SELF_SERVICE_PASSWORD_RESET="EVENT_SELF_SERVICE_PASSWORD_RESET",e.EVENT_PASSWORD_RESET_ACTION="EVENT_PASSWORD_RESET_ACTION"}(r||(r={})),function(e){e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.UNKNOWN_MESSAGE_TYPE="UNKNOWN_MESSAGE_TYPE"}(o||(o={}));let E=class{constructor(e,t){this.session=e,this.uuid=t}createLoginMessage(e){let t;switch(e.type){case h.G.BASIC:t={USER_NAME:e.username,PASSWORD:e.password};break;case h.G.REFRESH:t={USER_NAME:e.username,REFRESH_AUTH_TOKEN:e.refreshToken};break;case h.G.SSO:t={SSO_TOKEN:e.ssoToken};break;case h.G.JWT:t={JWT:e.jwt,DOMAIN:e.domain}}return{DETAILS:t,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_LOGIN_AUTH}}createLogoutMessage(e){var t,s;return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_LOGOUT,SESSION_AUTH_TOKEN:null!==(t=e.authToken)&&void 0!==t?t:this.session.getSessionStorageItem("authToken"),SESSION_ID:null!==(s=e.sessionId)&&void 0!==s?s:this.session.getSessionStorageItem("sessionId")}}createDataLogonMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.DATA_LOGON,DETAILS:Object.assign({DATASOURCE_NAME:e},t),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createDataLogoffMessage(e){return{SOURCE_REF:e,MESSAGE_TYPE:r.DATA_LOGOFF,SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createRequestMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e.startsWith("REQ_")?e:`REQ_${e}`},t)}createMetaRequestMessage(e,t=r.META_REQUEST){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:t,DETAILS:{FEATURE:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createCommitMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e},t)}createRefreshTokenMessage(){return{SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:r.EVENT_LOGIN_AUTH,DETAILS:{REFRESH_AUTH_TOKEN:this.session.getSessionStorageItem("refreshToken")}}}createChangePasswordMessage(e,t,s){return{USER_NAME:e,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_CHANGE_USER_PASSWORD,DETAILS:{OLD_PASSWORD:t,NEW_PASSWORD:s}}}createForgotPasswordMessage(e,t,s=e){return{USER_NAME:s,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_SELF_SERVICE_PASSWORD_RESET,DETAILS:{USER_NAME:e,RETURN_URL:t}}}createForgotPasswordTokenMessage(e,t,s,i=e){return{USER_NAME:i,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.EVENT_PASSWORD_RESET_ACTION,DETAILS:{USER_NAME:e,RESET_TOKEN:t,NEW_PASSWORD:s}}}createMoreRowsMessage(e){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.MORE_ROWS,DETAILS:{SOURCE_REF:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}};E=(0,n.__decorate)([(0,n.__param)(0,d.z),(0,n.__param)(1,a.UUID)],E);const l=c.DI.createInterface((e=>e.singleton(E)))},5127:(e,t,s)=>{s.d(t,{$:()=>r});var i=s(22296);function r(e,t="ROW_REF"){const s=e=>{const s=Object.assign(Object.assign({},e),{[t]:e.DETAILS[t]});return delete s.DETAILS,s},r=[],o=[],n=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":r.push(s(t));break;case"MODIFY":n.push(s(t));break;case"DELETE":o.push(s(t));break;default:i.k.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:r,deletes:o,updates:n,SOURCE_REF:e.SOURCE_REF}}},43752:(e,t,s)=>{s.d(t,{Yh:()=>G});var i=s(186),r=s(83147),o=s(75951),n=s(98239),a=s(56383),c=s(7211),h=s(29866),d=s(62646),E=s(9162),l=s(19082),u=s(4077),S=s(75527),g=s(22296);const _=o.DI.createInterface();function T(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(g.k.warn("PasswordCredential not available in this browser."),!1):(g.k.warn("CredentialsContainer not available in this browser."),!1)}const R=":";function p(e="",t=R,s){return e.split(t,s).map((e=>e.trim())).filter((e=>""!==e))}function m(e,t=R){const s="string"==typeof e&&e.trim();return!!s&&s.includes(t)}function v(e,t=R){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function O(e,t=R){for(const s of e)if(m(s,t))return s;return e.find((e=>"string"==typeof e&&!!e.trim()))}function A(e,t,s){const i="string"==typeof e&&e.trim();return!i||s&&!i.includes(s)||v(i)>1?s&&t&&s!==t?`${t}:${s}`:t||s:i}function I(e="credential"){g.k.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const f={password:!0,mediation:"optional"},M={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let N=class{constructor(e,t=M){this.session=e,this.config=t}createBasicCredentials(e){return{type:u.G.BASIC,username:e.username,password:e.password}}createRefreshCredentials(e){var t,s;return{type:u.G.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(s=null==e?void 0:e.refreshToken)&&void 0!==s?s:this.getRefreshToken()}}createSSOCredentials(e){var t;return{type:u.G.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const s=e&&!!e.id&&!!e.name&&!e.name.includes(R)&&v(e.id)<=1;return t?s&&!!e.password:s}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[s]=p(t.name||t.id),[i,r]=p(O([t.id,t.name]));return[{id:A(t.id||t.name,s,r),name:s,password:t.password||""},!0]}catch(e){I("PasswordCredential")}if(t)try{const e=t,[s]=p(e.name||e.username||e.organisation),[i,r]=p(O([e.organisation||e.username||e.name]));return[{id:A(e.id||e.username||e.name,s,r),name:s,password:e.password||""},!1]}catch(e){I("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!T())return;const t=new PasswordCredential(e);return g.k.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)}))}getCredentialsFromContainer(e=f){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(T())return g.k.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)}))}storeCredentialsInCookie(e){const{password:t}=e,s=(0,i.__rest)(e,["password"]),r=this.config.cookie.storePasswords?e:s;return g.k.debug("Storing credentials in cookie"),!!l.Z.set(this.config.cookie.name,JSON.stringify(r),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){g.k.debug("Getting credentials from cookie");const e=l.Z.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(T()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))}))}getCredentials(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return T()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())}))}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")}removeCookie(){l.Z.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken()}preventSilentAccess(){return T()&&navigator.credentials.preventSilentAccess()}};N=(0,i.__decorate)([(0,i.__param)(0,S.z),(0,i.__param)(1,(0,o.optional)(_))],N);const b=o.DI.createInterface((e=>e.singleton(N)));class C{constructor(e){Object.assign(this,e)}hasAdminProfile(){return this.hasProfile("ADMIN")}hasPermission(e){return this.hasKey(this.permissions,e)}hasProfile(e){return this.hasKey(this.profiles,e)}hasKey(e,t){return!!(e&&e.length&&t)&&(Array.isArray(t)||(t=[t]),t.some((t=>e.includes(t))))}}(0,i.__decorate)([r.observable],C.prototype,"permissions",void 0),(0,i.__decorate)([r.observable],C.prototype,"profiles",void 0),(0,i.__decorate)([r.observable],C.prototype,"username",void 0);let U=class{get isLoggedIn(){return!!this.loggedUserResult&&!(!this.loggedUserResult.authToken||!this.loggedUserResult.sessionId)}constructor(e,t,s,i){this.session=e,this.connect=t,this.messageBuilder=s,this.credentialManager=i,this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null}login(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;try{const s=this.messageBuilder.createLoginMessage(e),i=yield this.connect.send(s);if(!i||i.ERROR||(null===(t=i.DETAILS)||void 0===t?void 0:t.ERROR))throw new u.l(s,i);this.applyAuthResults({authToken:i.SESSION_AUTH_TOKEN,refreshToken:i.REFRESH_AUTH_TOKEN,profiles:i.PROFILE,username:i.USER_NAME,permissions:i.PERMISSION,sessionId:i.SESSION_ID}),this.session.setAuthResult(i),g.k.debug("Login Authentication Result:",i)}catch(e){if(g.k.error("Login Authentication Error:",e),!(e instanceof u.l&&e.isIgnorableError()))throw this.removeAuthResults(),e;g.k.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult}))}logout(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;let t={success:!1};try{const s=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1);const{CODE:i,DETAILS:r,ERROR:o,MESSAGE_TYPE:n,OIDC_LOGOUT_URL:a}=yield this.connect.send(s),c=null!==(e=null==r?void 0:r.ERROR)&&void 0!==e?e:o,h=n===E.Cs.LOGOUT_NACK;h&&g.k.warn("Unexpected Logout NACK received during logout.",c),t={success:n===E.Cs.LOGOUT_ACK||i===E.QT.SESSION_NOT_FOUND||h,error:c},a&&window.open(a,"_self")}catch(e){const s=new u.l(e.sentMessage,e.receivedMessage);if(g.k.error("Logout Authentication Error:",s),!s.isIgnorableError())throw e;g.k.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.isWorking=!1}return t}))}reAuthFromSession(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(yield this.ensureConnection()){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===E.N$.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.connect.setValidSession(!0),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1),!1}))}ensureConnection(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)}))}getLoggedUserFromMessage(e){const t=e.USER_NAME,s=e.SESSION_AUTH_TOKEN,i=e.REFRESH_AUTH_TOKEN;return t&&s&&i?{username:t,authToken:s,refreshToken:i,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?(this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId},this.currentUser=new C({permissions:e.permissions,profiles:e.profiles,username:e.username})):this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null,this.currentUser=null}};(0,i.__decorate)([r.observable],U.prototype,"isWorking",void 0),(0,i.__decorate)([r.observable],U.prototype,"loggedUserResult",void 0),(0,i.__decorate)([r.observable],U.prototype,"currentUser",void 0),(0,i.__decorate)([r.volatile],U.prototype,"isLoggedIn",null),U=(0,i.__decorate)([(0,i.__param)(0,S.z),(0,i.__param)(1,d.lj),(0,i.__param)(2,E.sW),(0,i.__param)(3,b)],U);const k=o.DI.createInterface((e=>e.singleton(U)));var L=s(66306);var w=s(5127),P=s(82940);const y={options:{criteria:"",isSnapshot:!1,maxRows:P.WJ.MAX_ROWS_250,maxView:P.WJ.MAX_VIEW_1000,movingView:!1,orderBy:"",resourceName:"",reverse:!1},criteriaToFields:function(e){const t=e.split("&&").map((e=>e.trim())),s={};return t.forEach((e=>{const t=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),i=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");s[t]=i})),s},dataServerResultFilter:w.$};let D=class{constructor(e,t,s=y){this.connect=e,this.auth=t,this.config=s,this.initialized=!1,this.readOnly=!0,this.originalFieldDef=[],this.requestFields=[],this.fieldMetadata=[],this.availableIndexes=[]}init(e,t=!0){var s;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(!this.validResourceName(null==e?void 0:e.resourceName))return!1;if(this.options=Object.assign(Object.assign({},this.config.options),e),t){g.k.debug(`Initializing ${this.options.resourceName} Datasource`);const t=yield this.connect.getMetadata(this.options.resourceName).catch((t=>g.k.error(`Metadata Fetch failed for ${e.resourceName}:`,t)));if(!t)return this.deinit(),!1;this.resourceType=t.TYPE,this.availableIndexes=null!==(s=t.INDEXES)&&void 0!==s?s:[],this.originalFieldDef=(0,L.C)(t),this.fieldMetadata=(0,L.i)(this.originalFieldDef),this.requestFields=t.REQUEST_FIELD||[],g.k.debug(`Datasource for ${this.options.resourceName} is ready`)}return this.options.isSnapshot||(this._stream=yield this.createStream()),this.initialized=!0,this.initialized}))}deinit(){this.initialized=!1,this.options=void 0,this.resourceType=void 0,this.availableIndexes=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[]}get stream(){return this._stream}get params(){const e={CRITERIA_MATCH:this.options.criteria,FIELDS:this.options.fields,MAX_ROWS:this.options.maxRows,MAX_VIEW:this.options.maxView,MOVING_VIEW:this.options.movingView,REQUEST:this.options.request,REVERSE:this.options.reverse};if(this.options.orderBy)if(this.availableIndexes.findIndex((e=>e.NAME===this.options.orderBy))>-1)e.ORDER_BY=this.options.orderBy;else{const e=this.availableIndexes.map((e=>e.NAME));g.k.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return g.k.debug("Getting configured params:",e),e}snapshot(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){switch(g.k.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case P._g.DATASERVER:return this.connect.snapshot(this.options.resourceName,this.params);case P._g.REQUEST_SERVER:{const t=this.params,{REQUEST:s,CRITERIA_MATCH:r}=t,o={DETAILS:(0,i.__rest)(t,["REQUEST","CRITERIA_MATCH"]),REQUEST:Object.assign(Object.assign(Object.assign({},Object.fromEntries(this.requestFields.map((e=>[e.NAME,"*"])))),this.params.REQUEST),(null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.criteria)?this.config.criteriaToFields(this.options.criteria):{})};return this.connect.request(this.options.resourceName,o)}default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}}))}snapshotFiltered(e="ROW_REF"){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0}))}createStream(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(![P._g.DATASERVER,P._g.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===P._g.DATASERVER?this.createDataserverStream():(g.k.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())}))}createDataserverStream(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.options.resourceName,(e=>{}),(e=>g.k.error(e)),this.params)}))}createReqRepStream(){return(0,n.H)(0,P.WJ.REQ_REP_POLLING_INTERVAL_MS).pipe((0,c.o)((()=>this.connect.isConnected&&this.auth.isLoggedIn)),(0,h.w)((()=>(0,a.D)(this.snapshot()))))}validResourceName(e){return!!e&&!!e.trim().length}};(0,i.__decorate)([r.observable],D.prototype,"initialized",void 0),(0,i.__decorate)([r.observable],D.prototype,"readOnly",void 0),(0,i.__decorate)([r.volatile],D.prototype,"stream",null),D=(0,i.__decorate)([(0,i.__param)(0,d.lj),(0,i.__param)(1,k),(0,i.__param)(2,(0,o.optional)(P.tt))],D);const G=o.DI.createInterface((e=>e.transient(D)))},82940:(e,t,s)=>{s.d(t,{WJ:()=>o,_g:()=>i,tt:()=>n});var i,r=s(75951);!function(e){e.DATASERVER="DATASERVER",e.EVENT_HANDLER="EVENT_HANDLER",e.REQUEST_SERVER="REQUEST_SERVER"}(i||(i={}));class o{}o.MAX_ROWS_250=250,o.MAX_VIEW_1000=1e3,o.REQ_REP_POLLING_INTERVAL_MS=1e4;const n=r.DI.createInterface()},32449:(e,t,s)=>{function i(e,t=";"){return e?e.split(t).map((e=>e.trim())).sort(((e,t)=>e.localeCompare(t))).join(t):e}s.d(t,{p:()=>i})},83123:(e,t,s)=>{var i;s.d(t,{E:()=>r,r:()=>i}),function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.ENUM="ENUM",e.DATE="DATE",e.DATETIME="DATETIME",e.CUSTOM="CUSTOM"}(i||(i={}));const r={STRING:i.STRING,ENUM:i.ENUM,BOOLEAN:i.BOOLEAN,INT:i.NUMBER,DOUBLE:i.NUMBER,BIGDECIMAL:i.NUMBER,DATE:i.DATE,DATETIME:i.DATETIME}},66306:(e,t,s)=>{s.d(t,{C:()=>a,i:()=>n});var i=s(82940),r=s(22296),o=s(83123);const n=e=>e?e.map((e=>{const t={name:e.NAME,type:o.E[e.TYPE]||o.r.STRING};if(e.TYPE===o.r.ENUM&&e.VALID_VALUES)try{t.enumOptions=Array.isArray(e.VALID_VALUES)?e.VALID_VALUES:e.VALID_VALUES.split("|")}catch(e){r.k.error(e),t.enumOptions=[]}return t})):null,a=e=>{const t=null==e?void 0:e.TYPE;if(t===i._g.DATASERVER)return e.FIELD||[];if(t===i._g.REQUEST_SERVER)return e.REPLY_FIELD||[];throw new Error(`Unsupported resource type: ${t}`)}},75527:(e,t,s)=>{s.d(t,{z:()=>o});var i=s(75951);class r{constructor(){this.storageKeyPrefix="",this.returnUrl=this.getSessionStorageItem("returnUrl")||""}deleteUserFromSessionStorage(){["authToken","refreshToken","sessionId","ssoToken"].forEach((e=>this.removeSessionStorageItem(e)))}setStorageKeyPrefix(e){this.storageKeyPrefix=`${e.replace(/\s/g,"")}/`}setAuthResult(e){this.setSessionStorageItem("authToken",e.SESSION_AUTH_TOKEN),this.setSessionStorageItem("refreshToken",e.REFRESH_AUTH_TOKEN),this.setSessionStorageItem("username",e.USER_NAME),this.setSessionStorageItem("sessionId",e.SESSION_ID)}captureReturnUrl(){const{pathname:e,search:t,hash:s}=location;if("/login"===e)return;const i=`${"/"!==e?e:""}`;this.returnUrl=`${i}${t}${s}`,this.setSessionStorageItem("returnUrl",this.returnUrl)}setItem(e,t,s){"local"===s?localStorage.setItem(this.storageKeyPrefix+e,t):sessionStorage.setItem(this.storageKeyPrefix+e,t)}getItem(e,t){return"local"===t?localStorage.getItem(this.storageKeyPrefix+e):sessionStorage.getItem(this.storageKeyPrefix+e)}removeItem(e,t){"local"===t?localStorage.removeItem(this.storageKeyPrefix+e):sessionStorage.removeItem(this.storageKeyPrefix+e)}setLocalStorageItem(e,t){this.setItem(e,t,"local")}setSessionStorageItem(e,t){this.setItem(e,t,"session")}getLocalStorageItem(e){return this.getItem(e,"local")}getSessionStorageItem(e){return this.getItem(e,"session")}removeLocalStorageItem(e){this.removeItem(e,"local")}removeSessionStorageItem(e){this.removeItem(e,"session")}}const o=i.DI.createInterface((e=>e.singleton(r)))},22296:(e,t,s)=>{s.d(t,{k:()=>r});var i=s(40977);const r=(0,i.createLogger)("foundation-comms")}}]);
2
2
  //# sourceMappingURL=430.d3832550663b4a658193ecf344e974ce.js.map