@genesislcap/design-system-configurator 14.32.0 → 14.32.1

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"785.785.xxxxxxxxxxxxxxxxxxxx.js","mappings":";uJAAoEA,EAAOC,QAAkI,WAAY,aAAa,IAAIC,EAAE,IAAIC,EAAE,IAAIC,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,OAAOC,EAAE,QAAQC,EAAE,UAAUC,EAAE,OAAOC,EAAE,OAAOC,EAAE,eAAeC,EAAE,6FAA6FC,EAAE,sFAAsFC,EAAE,CAACC,KAAK,KAAKC,SAAS,2DAA2DC,MAAM,KAAKC,OAAO,wFAAwFD,MAAM,KAAKE,QAAQ,SAASrB,GAAG,IAAIC,EAAE,CAAC,KAAK,KAAK,KAAK,MAAMC,EAAEF,EAAE,IAAI,MAAM,IAAIA,GAAGC,GAAGC,EAAE,IAAI,KAAKD,EAAEC,IAAID,EAAE,IAAI,GAAG,GAAGqB,EAAE,SAAStB,EAAEC,EAAEC,GAAG,IAAIC,EAAEoB,OAAOvB,GAAG,OAAOG,GAAGA,EAAEqB,QAAQvB,EAAED,EAAE,GAAGyB,MAAMxB,EAAE,EAAEE,EAAEqB,QAAQE,KAAKxB,GAAGF,CAAC,EAAE2B,EAAE,CAACtB,EAAEiB,EAAEM,EAAE,SAAS5B,GAAG,IAAIC,GAAGD,EAAE6B,YAAY3B,EAAE4B,KAAKC,IAAI9B,GAAGE,EAAE2B,KAAKE,MAAM9B,EAAE,IAAIE,EAAEF,EAAE,GAAG,OAAOD,GAAG,EAAE,IAAI,KAAKqB,EAAEnB,EAAE,EAAE,KAAK,IAAImB,EAAElB,EAAE,EAAE,IAAI,EAAEkB,EAAE,SAAStB,EAAEC,EAAEC,GAAG,GAAGD,EAAEgC,OAAO/B,EAAE+B,OAAO,OAAOj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,OAAQ,SAAUjN,EAAMm4C,GACtBrzC,EACE9E,EACA,GACA8L,EAAO,CAAC,EAAGqsC,EAAY,CACrBC,SAAU,IAGhB,EACAa,eAAgB,SAAUd,GACxB,OAAO/0C,EAAKV,KAAKmb,UAAW/R,EAAO,CAAC,EAAGpJ,KAAKy1C,WAAYA,GAC1D,EACAe,cAAe,SAAUr7B,GACvB,OAAOza,EAAK0I,EAAO,CAAC,EAAGpJ,KAAKmb,UAAWA,GAAYnb,KAAKy1C,WAC1D,GAEF,CACEA,WAAY,CAAEpjC,MAAOlJ,OAAOstC,OAAOjB,IACnCr6B,UAAW,CAAE9I,MAAOlJ,OAAOstC,OAAOt7B,KAGxC,CAEUza,CApHa,CACrB41C,KAAM,SAAUjkC,GAId,MAHiB,MAAbA,EAAM,KACRA,EAAQA,EAAM3P,MAAM,GAAI,IAEnB2P,EAAMnT,QAAQ,mBAAoB02C,mBAC3C,EACAK,MAAO,SAAU5jC,GACf,OAAOsjC,mBAAmBtjC,GAAOnT,QAC/B,2CACA02C,mBAEJ,GAwG+B,CAAEc,KAAM","sources":["webpack://@genesislcap/design-system-configurator/../../../node_modules/dayjs/dayjs.min.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/dayjs/plugin/isLeapYear.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/actions-menu/actions-menu.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/actions-menu/actions-menu.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/actions-menu/actions-menu.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/anchor/anchor.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/anchor/anchor.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/anchor/anchor.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/badge/badge.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/badge/badge.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/badge/badge.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/banner/banner.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/banner/banner.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/banner/banner.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb/breadcrumb.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb/breadcrumb.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb/breadcrumb.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb-item/breadcrumb-item.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb-item/breadcrumb-item.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/breadcrumb-item/breadcrumb-item.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/button/button.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/button/button.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/button/button.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/card/card.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/card/card.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/card/card.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/checkbox/checkbox.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/checkbox/checkbox.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/checkbox/checkbox.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/combobox/combobox.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/combobox/combobox.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/combobox/combobox.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/connection-indicator/connection-indicator.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/connection-indicator/connection-indicator.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/connection-indicator/connection-indicator.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid/data-grid.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid/data-grid.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid/data-grid.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid-cell/data-grid-cell.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid-cell/data-grid.cell.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid-row/data-grid-row.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid-row/data-grid.row.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/day.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/month.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/calendar.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/date-picker.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/date-picker.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/date-picker/date-picker.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/styles/colors.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/tokens/custom.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/design-system-provider/design-system-provider.utils.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/values/color.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/values/misc.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/values/sizing.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/styles/fonts.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/design-system-provider/design-system-provider.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/design-system-provider/design-system-provider.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dialog/dialog.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_common/icons.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dialog/dialog.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dialog/dialog.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/disclosure/disclosure.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/disclosure/disclosure.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/disclosure/disclosure.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/divider/divider.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/divider/divider.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/divider/divider.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/utils/dom.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dropdown-menu/dropdown-menu.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dropdown-menu/dropdown-menu.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/dropdown-menu/dropdown-menu.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/utils/logger.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-banner/error-banner.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-banner/error-banner.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/types.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/error-util.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/error-launcher.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/notification/notification-launcher.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/dialog/error-dialog-launcher.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/snackbar/snackbar-launcher.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-errors/dist/esm/banner/error-banner-launcher.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-boundary/error-boundary.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-boundary/error-boundary.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-dialog/error-dialog.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-dialog/error-dialog.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/error-dialog/error-dialog.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/logger.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/types.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/utils.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/criteria-builder.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/serialisers.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-criteria/dist/esm/expression-builder.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/file-upload/file-upload.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/file-upload/file-upload.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/file-upload/file-upload.utils.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/file-upload/file-upload.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter/filter.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter/filter.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter/filter.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter-bar/filter-bar.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter-bar/filter-bar.utils.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter-bar/filter-bar.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/filter-bar/filter-bar.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flex-layout/flex-layout.types.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flex-layout/responsiveness/flex-layout-rwd.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flex-layout/flex-layout.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flex-layout/flex-layout.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flex-layout/flex-layout.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flipper/flipper.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flipper/flipper.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flipper/flipper.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flyout/flyout.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flyout/flyout.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/flyout/flyout.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout/grid-layout.types.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout/responsiveness/grid-layout-rwd.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout/grid-layout.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout/grid-layout.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout/grid-layout.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout-item/grid-layout-item.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/grid-layout-item/grid-layout-item.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/styles/external/fontawesome-free/index.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/icon/icon.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/icon/icon.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/icon/icon.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/listbox-option/listbox-option.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/listbox-option/listbox-option.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/listbox-option/listbox-option.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu/menu.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu/menu.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu/menu.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu-item/menu-item.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu-item/menu-item.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/menu-item/menu-item.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/modal/modal.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/modal/modal.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/modal/modal.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/multiselect/multiselect-consts.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/multiselect/multiselect.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/multiselect/multiselect.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/multiselect/multiselect.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/number-field/number-field.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/number-field/number-field.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/number-field/number-field.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/popper/popper.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress/progress.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress/progress.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress/progress.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress-ring/progress-ring.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress-ring/progress-ring.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/progress-ring/progress-ring.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio/radio.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio/radio.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio/radio.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio-group/radio-group.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio-group/radio-group.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/radio-group/radio-group.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-control/segmented-control.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-control/segmented-control.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-control/segmented-control.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-item/segmented-item.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-item/segmented-item.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/segmented-item/segmented-item.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/select/select.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/select/select.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/select/select.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/skeleton/skeleton.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/skeleton/skeleton.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/skeleton/skeleton.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/slider/slider.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/slider/slider.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/slider/slider.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/snackbar/snackbar.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/snackbar/snackbar.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/snackbar/snackbar.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/switch/switch.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/switch/switch.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/switch/switch.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab/tab.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab/tab.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab/tab.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab-panel/tab-panel.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab-panel/tab-panel.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tab-panel/tab-panel.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tabs/tabs.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tabs/tabs.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tabs/tabs.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-area/text-area.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-area/text-area.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-area/text-area.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-field/text-field.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-field/text-field.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/text-field/text-field.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toast/toast.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toast/toast.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toast/toast.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toolbar/toolbar.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toolbar/toolbar.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/toolbar/toolbar.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tooltip/tooltip.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tooltip/tooltip.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tooltip/tooltip.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-item/tree-item.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-item/tree-item.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-item/tree-item.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-view/tree-view.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-view/tree-view.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/tree-view/tree-view.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/url-input/url-input.styles.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/url-input/url-input.template.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/url-input/url-input.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/base-components.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/provide-design-system.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/_config/styles/directives.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/utils/base-datasource.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/data-grid-datasource/data-grid-datasource.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/options-datasource/options-datasource.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/options-datasource/multiselect-datasource.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/patterns/define.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/patterns/tag-for.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/router/router.js","webpack://@genesislcap/design-system-configurator/../../foundation/foundation-ui/dist/esm/index.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/js-cookie/dist/js.cookie.mjs"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=h+\"Date\",n[d]=h+\"Date\",n[f]=h+\"Month\",n[c]=h+\"FullYear\",n[u]=h+\"Hours\",n[s]=h+\"Minutes\",n[i]=h+\"Seconds\",n[r]=h+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,\"0\")},d=n.meridiem||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,\"0\"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,\"0\"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,\"0\"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,\"0\"),s:String(this.$s),ss:O.s(this.$s,2,\"0\"),SSS:O.s(this.$ms,3,\"0\"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",f],[\"$y\",c],[\"$D\",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isLeapYear=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}));","import { css } from '@microsoft/fast-element';\nexport const actionsMenuBaseStyles = (context, definition) => css `\n :host {\n --actions-opener-height-multiplier: 0.7px;\n --actions-opener-bg-color: 249 254 255;\n --menu-item-height-multiplier: 0.7px;\n }\n\n .actions-container {\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: right;\n }\n\n .actions-menu {\n display: none;\n position: absolute;\n max-width: 350px;\n overflow-y: auto;\n }\n\n .actions-vertical .actions-menu {\n padding: calc(var(--design-unit) * 1px);\n max-height: 175px;\n z-index: 100;\n }\n\n .actions-menu:not(.hidden):hover {\n display: inline-flex;\n }\n\n .hidden {\n display: none;\n }\n\n .visible {\n display: inline-flex;\n }\n\n .actions-opener {\n align-self: center;\n display: flex;\n height: calc(\n (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *\n var(--actions-opener-height-multiplier)\n );\n }\n\n svg {\n width: 100%;\n height: 100%;\n fill: #879ba6;\n }\n\n .actions-opener:hover svg {\n fill: #fff;\n }\n\n fast-menu-item {\n display: flex;\n user-select: none;\n }\n\n fast-menu-item::part(content) {\n margin-inline: 10px;\n }\n\n fast-menu-item[disabled] {\n pointer-events: none;\n }\n\n .menu-item {\n flex: 1;\n max-height: calc(\n (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *\n var(--menu-item-height-multiplier)\n );\n }\n\n .actions-vertical .menu-item {\n flex: 1 1 auto;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n }\n\n .actions-vertical .visible,\n .actions-vertical .actions-menu:not(.hidden):hover {\n display: flex;\n flex-direction: column;\n }\n`;\nexport const foundationActionsMenuStyles = (context, definition) => css `\n ${actionsMenuBaseStyles(context, definition)}\n`;\n","import { html, ref, repeat, when } from '@microsoft/fast-element';\nexport const foundationActionsMenuTemplate = html `\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n <fast-button\n id=\"actiosnMenuTrigger\"\n class=\"actions-opener${(x) => (x.open ? ' opened' : '')}\"\n appearance=\"${(x) => x.buttonAppearance}\"\n part=\"actions-opener\"\n @click=${(x) => x.toggleActionsMenuVisibility()}\n >\n ${(x) => x.open\n ? '✖'\n : html `\n ${x.name}\n `}\n </fast-button>\n <fast-menu\n ${ref('actionsMenu')}\n class=\"actions-menu ${(x) => x.classNames}\"\n part=\"actions-menu\"\n >\n ${repeat((x) => x.allActions, html `\n ${when((x, context) => x.isDisabled && x.isDisabled(context.parent.rowData), html `\n <fast-menu-item\n class=\"menu-item\"\n tabindex=\"${(x, context) => context.index}\"\n disabled\n >\n ${(x) => x.name}\n </fast-menu-item>\n `)}\n ${when((x, context) => !x.isDisabled || !x.isDisabled(context.parent.rowData), html `\n <fast-menu-item\n class=\"menu-item\"\n tabindex=\"${(x, context) => context.index}\"\n @click=${(x, context) => context.parent.onActionMenuItemClick(x.callback)}\n style=\"${(x) => (x.color ? `color: ${x.color};` : '')}\"\n >\n ${(x) => x.name}\n </fast-menu-item>\n `)}\n `, { positioning: true })}\n </fast-menu>\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { classNames } from '@microsoft/fast-web-utilities';\nimport { foundationActionsMenuStyles as styles } from './actions-menu.styles';\nimport { foundationActionsMenuTemplate as template } from './actions-menu.template';\n/**\n * @tagname %%prefix%%-actions-menu\n */\nexport class ActionsMenu extends FoundationElement {\n constructor() {\n super(...arguments);\n this.isVertical = false;\n this.addDefaultActions = true;\n this.autoCloseOnAction = true;\n this.name = 'Actions';\n this.open = false;\n }\n definitionChanged(oldValue, newValue) {\n var _a, _b;\n this.actions = [...((_a = this.actions) !== null && _a !== void 0 ? _a : []), ...((_b = newValue === null || newValue === void 0 ? void 0 : newValue.actions) !== null && _b !== void 0 ? _b : [])];\n delete this.definition.actions;\n if (newValue.buttonText) {\n this.name = newValue.buttonText;\n delete this.definition.customButtonText;\n }\n if (newValue.isVertical) {\n this.isVertical = newValue.isVertical;\n delete this.definition.isVertical;\n }\n if (newValue.buttonAppearance) {\n this.buttonAppearance = newValue.buttonAppearance;\n delete this.definition.buttonAppearance;\n }\n }\n openChanged() {\n this.classNames = classNames(['visible', this.open], ['hidden', !this.open]);\n }\n toggleActionsMenuVisibility() {\n this.open = !this.open;\n }\n onActionMenuItemClick(callback) {\n if (this.autoCloseOnAction)\n this.open = false;\n callback(this.rowData);\n }\n get allActions() {\n var _a;\n const defaultActions = [\n {\n name: '✖',\n callback: () => (this.open = false),\n },\n ];\n return this.addDefaultActions ? [...((_a = this.actions) !== null && _a !== void 0 ? _a : []), ...defaultActions] : this.actions;\n }\n get rowData() {\n if (!this.definition)\n return;\n const { node, data } = this.definition;\n return (node === null || node === void 0 ? void 0 : node.data) || data;\n }\n}\n__decorate([\n observable\n], ActionsMenu.prototype, \"actions\", void 0);\n__decorate([\n attr({ attribute: 'is-vertical', mode: 'boolean' })\n], ActionsMenu.prototype, \"isVertical\", void 0);\n__decorate([\n attr({ attribute: 'add-default-actions', mode: 'boolean' })\n], ActionsMenu.prototype, \"addDefaultActions\", void 0);\n__decorate([\n attr({ attribute: 'auto-close-on-action', mode: 'boolean' })\n], ActionsMenu.prototype, \"autoCloseOnAction\", void 0);\n__decorate([\n observable\n], ActionsMenu.prototype, \"classNames\", void 0);\n__decorate([\n observable\n], ActionsMenu.prototype, \"definition\", void 0);\n__decorate([\n attr\n], ActionsMenu.prototype, \"name\", void 0);\n__decorate([\n attr({ attribute: 'open', mode: 'boolean' })\n], ActionsMenu.prototype, \"open\", void 0);\n__decorate([\n attr\n], ActionsMenu.prototype, \"buttonAppearance\", void 0);\n/**\n * The Foundation Actions Menu\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-actions-menu\\>\n */\nexport const foundationActionsMenu = ActionsMenu.compose({\n baseName: 'actions-menu',\n styles,\n template,\n});\n","import { anchorStyles as fastAnchorStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationAnchorStyles = (context, definition) => css `\n ${fastAnchorStyles(context, definition)}\n`;\n","import { anchorTemplate as fastAnchorTemplate } from '@microsoft/fast-foundation';\nexport const foundationAnchorTemplate = (context, definition) => fastAnchorTemplate(context, definition);\n","import { Anchor as FASTAnchor } from '@microsoft/fast-components';\nimport { foundationAnchorStyles as styles } from './anchor.styles';\nimport { foundationAnchorTemplate as template } from './anchor.template';\n/**\n * @tagname %%prefix%%-anchor\n */\nexport class Anchor extends FASTAnchor {\n}\n// explicitly declaring for extensibility\nexport const foundationAnchorShadowOptions = {\n delegatesFocus: true,\n mode: 'open',\n};\nexport const defaultAnchorConfig = {};\n/**\n * The Foundation Anchor\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-anchor\\>\n */\nexport const foundationAnchor = Anchor.compose(Object.assign({ baseName: 'anchor', template,\n styles, shadowOptions: foundationAnchorShadowOptions }, defaultAnchorConfig));\n","import { badgeStyles as fastBadgeStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationBadgeStyles = (context, definition) => css `\n ${fastBadgeStyles(context, definition)}\n`;\n","import { badgeTemplate as fastBadgeTemplate } from '@microsoft/fast-foundation';\nexport const foundationBadgeTemplate = (context, definition) => fastBadgeTemplate(context, definition);\n","import { Badge as FASTBadge } from '@microsoft/fast-components';\nimport { foundationBadgeStyles as styles } from './badge.styles';\nimport { foundationBadgeTemplate as template } from './badge.template';\n/**\n * @tagname %%prefix%%-badge\n */\nexport class Badge extends FASTBadge {\n}\n// explicitly declaring for extensibility\nexport const foundationBadgeShadowOptions = undefined;\nexport const defaultBadgeConfig = {};\n/**\n * The Foundation Badge\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-badge\\>\n */\nexport const foundationBadge = Badge.compose(Object.assign({ baseName: 'badge', template,\n styles, shadowOptions: foundationBadgeShadowOptions }, defaultBadgeConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationBannerStyles = css `\n @keyframes delete-animate {\n from {\n height: 100px;\n opacity: 100%;\n }\n\n to {\n height: 0;\n opacity: 0%;\n }\n }\n\n @keyframes append-animate {\n from {\n height: 0;\n opacity: 0%;\n }\n\n to {\n height: var(--banner-height);\n opacity: 100%;\n }\n }\n\n :host {\n --banner-width: 100%;\n --banner-height: 65px;\n --flow: row;\n }\n\n @media screen and (max-width: 640px) {\n :host {\n --flow: column;\n --banner-height: 100px;\n }\n }\n\n .banner {\n animation: append-animate 0.3s linear;\n width: var(--banner-width);\n height: var(--banner-height);\n background-color: var(--fill-color);\n display: flex;\n flex-direction: var(--flow);\n padding: 5px 8px;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .banner-delete {\n animation: delete-animate 0.3s linear;\n opacity: 0%;\n }\n\n .content {\n display: flex;\n align-items: center;\n flex: 2;\n font-size: 12px;\n overflow: hidden;\n }\n\n .action {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n gap: 10px;\n flex: 1;\n overflow: hidden;\n }\n`;\n","import { html, ref } from '@microsoft/fast-element';\nexport const foundationBannerTemplate = html `\n <div class=\"banner ${(x) => x.dismissAnimation}\" ${ref('banner')}>\n <div part=\"content\" class=\"content\">\n <slot name=\"content\"></slot>\n </div>\n <div part=\"action\" class=\"action\">\n <slot name=\"action\" class=\"action\"></slot>\n </div>\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationBannerStyles as styles } from './banner.styles';\nimport { foundationBannerTemplate as template } from './banner.template';\nexport const foundationBannerShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n/**\n * @tagname %%prefix%%-banner\n */\nexport class Banner extends FoundationElement {\n constructor() {\n super(...arguments);\n this.dismissAnimation = '';\n }\n connectedCallback() {\n super.connectedCallback();\n }\n /**\n * Dismiss the Banner from display.\n */\n dismiss() {\n this.dismissAnimation = 'banner-delete';\n return new Promise((resolve) => {\n this.banner.onanimationend = () => {\n this.remove();\n resolve();\n };\n });\n }\n}\n__decorate([\n observable\n], Banner.prototype, \"dismissAnimation\", void 0);\n/**\n * The Foundation Banner\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-banner\\>\n */\nexport const foundationBanner = Banner.compose({\n baseName: 'banner',\n styles,\n template,\n shadowOptions: foundationBannerShadowOptions,\n});\n","import { breadcrumbStyles as fastBreadcrumbStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationBreadcrumbStyles = (context, definition) => css `\n ${fastBreadcrumbStyles(context, definition)}\n`;\n","import { breadcrumbTemplate as fastBreadcrumbTemplate } from '@microsoft/fast-foundation';\nexport const foundationBreadcrumbTemplate = (context, definition) => fastBreadcrumbTemplate(context, definition);\n","import { Breadcrumb as FASTBreadcrumb } from '@microsoft/fast-components';\nimport { foundationBreadcrumbStyles as styles } from './breadcrumb.styles';\nimport { foundationBreadcrumbTemplate as template } from './breadcrumb.template';\n/**\n * @tagname %%prefix%%-breadcrumb\n */\nexport class Breadcrumb extends FASTBreadcrumb {\n}\n// explicitly declaring for extensibility\nexport const foundationBreadcrumbShadowOptions = undefined;\nexport const defaultBreadcrumbConfig = {};\n/**\n * The Foundation Breadcrumb\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-breadcrumb\\>\n */\nexport const foundationBreadcrumb = Breadcrumb.compose(Object.assign({ baseName: 'breadcrumb', template,\n styles, shadowOptions: foundationBreadcrumbShadowOptions }, defaultBreadcrumbConfig));\n","import { breadcrumbItemStyles as fastBreadcrumbItemStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationBreadcrumbItemStyles = (context, definition) => css `\n ${fastBreadcrumbItemStyles(context, definition)}\n`;\n","import { breadcrumbItemTemplate as fastBreadcrumbItemTemplate } from '@microsoft/fast-foundation';\nexport const foundationBreadcrumbItemTemplate = (context, definition) => fastBreadcrumbItemTemplate(context, definition);\n","import { BreadcrumbItem as FASTBreadcrumbItem } from '@microsoft/fast-components';\nimport { foundationBreadcrumbItemStyles as styles } from './breadcrumb-item.styles';\nimport { foundationBreadcrumbItemTemplate as template } from './breadcrumb-item.template';\nexport class BreadcrumbItem extends FASTBreadcrumbItem {\n}\n// explicitly declaring for extensibility\nexport const foundationBreadcrumbItemShadowOptions = undefined;\nexport const defaultBreadcrumbItemConfig = {\n separator: '/',\n};\n/**\n * The Foundation Breadcrumb Item\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-breadcrumb-item\\>\n */\nexport const foundationBreadcrumbItem = BreadcrumbItem.compose(Object.assign({ baseName: 'breadcrumb-item', template,\n styles, shadowOptions: foundationBreadcrumbItemShadowOptions }, defaultBreadcrumbItemConfig));\n","import { buttonStyles as fastButtonStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationButtonStyles = (context, definition) => css `\n ${fastButtonStyles(context, definition)}\n`;\n","import { buttonTemplate as fastButtonTemplate } from '@microsoft/fast-foundation';\nexport const foundationButtonTemplate = (context, definition) => fastButtonTemplate(context, definition);\n","import { Button as FASTButton } from '@microsoft/fast-components';\nimport { foundationButtonStyles as styles } from './button.styles';\nimport { foundationButtonTemplate as template } from './button.template';\n/**\n * @tagname %%prefix%%-button\n */\nexport class Button extends FASTButton {\n}\n// explicitly declaring for extensibility\nexport const foundationButtonShadowOptions = {\n delegatesFocus: true,\n mode: 'open',\n};\nexport const defaultButtonConfig = {};\n/**\n * The Foundation Button\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-button\\>\n */\nexport const foundationButton = Button.compose(Object.assign({ baseName: 'button', template,\n styles, shadowOptions: foundationButtonShadowOptions }, defaultButtonConfig));\n","import { cardStyles as fastCardStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationCardStyles = (context, definition) => css `\n ${fastCardStyles(context, definition)}\n :host {\n background-color: var(--fui-card-fill-color);\n color: var(--fui-card-foreground-color);\n }\n`;\n","import { cardTemplate as fastCardTemplate } from '@microsoft/fast-foundation';\nexport const foundationCardTemplate = (context, definition) => fastCardTemplate(context, definition);\n","import { Card as FASTCard } from '@microsoft/fast-components';\nimport { foundationCardStyles as styles } from './card.styles';\nimport { foundationCardTemplate as template } from './card.template';\n/**\n * @tagname %%prefix%%-card\n */\nexport class Card extends FASTCard {\n}\n// explicitly declaring for extensibility\nexport const foundationCardShadowOptions = undefined;\nexport const defaultCardConfig = {};\n/**\n * The Foundation Card\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-card\\>\n */\nexport const foundationCard = Card.compose(Object.assign({ baseName: 'card', template,\n styles, shadowOptions: foundationCardShadowOptions }, defaultCardConfig));\n","import { checkboxStyles as fastCheckboxStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationCheckboxStyles = (context, definition) => css `\n ${fastCheckboxStyles(context, definition)}\n`;\n","import { checkboxTemplate as fastCheckboxTemplate } from '@microsoft/fast-foundation';\nexport const foundationCheckboxTemplate = (context, definition) => fastCheckboxTemplate(context, definition);\n","import { Checkbox as FASTCheckbox } from '@microsoft/fast-components';\nimport { foundationCheckboxStyles as styles } from './checkbox.styles';\nimport { foundationCheckboxTemplate as template } from './checkbox.template';\nexport class Checkbox extends FASTCheckbox {\n}\n// explicitly declaring for extensibility\nexport const foundationCheckboxShadowOptions = undefined;\nexport const defaultCheckboxConfig = {\n checkedIndicator: `\n <svg\n aria-hidden=\"true\"\n part=\"checked-indicator\"\n class=\"checked-indicator\"\n viewBox=\"0 0 20 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z\"\n />\n </svg>\n `,\n indeterminateIndicator: `\n <div part=\"indeterminate-indicator\" class=\"indeterminate-indicator\"></div>\n `,\n};\n/**\n * The Foundation Checkbox\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-checkbox\\>\n */\nexport const foundationCheckbox = Checkbox.compose(Object.assign({ baseName: 'checkbox', template,\n styles, shadowOptions: foundationCheckboxShadowOptions }, defaultCheckboxConfig));\n","import { comboboxStyles as fastComboboxStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationComboboxStyles = (context, definition) => css `\n ${fastComboboxStyles(context, definition)}\n`;\n","import { comboboxTemplate as fastComboboxTemplate } from '@microsoft/fast-foundation';\nexport const foundationComboboxTemplate = (context, definition) => fastComboboxTemplate(context, definition);\n","import { Combobox as FASTComboBox } from '@microsoft/fast-components';\nimport { foundationComboboxStyles as styles } from './combobox.styles';\nimport { foundationComboboxTemplate as template } from './combobox.template';\nexport class Combobox extends FASTComboBox {\n}\n// explicitly declaring for extensibility\nexport const foundationComboboxShadowOptions = undefined;\nexport const defaultComboboxConfig = {\n indicator: `\n <svg\n class=\"combo-box-indicator\"\n part=\"combo-box-indicator\"\n viewBox=\"0 0 12 7\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z\"\n />\n </svg>\n `,\n};\n/**\n * The Foundation Combo-box\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-combo-box\\>\n */\nexport const foundationCombobox = Combobox.compose(Object.assign({ baseName: 'combobox', template,\n styles, shadowOptions: foundationComboboxShadowOptions }, defaultComboboxConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationConnectionIndicatorStyles = (context, definition) => css `\n :host {\n --light-size: 12px;\n --height: calc(var(--design-unit) * 2px + var(--light-size));\n\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: var(--height);\n margin: calc(var(--design-unit) * 2px) 0;\n\n /* https://www.colorxs.com/color/traffic-light-green-2032-20 */\n --green: 50 164 49;\n --trafic-light-green: rgb(var(--green));\n --trafic-light-green-glow:\n rgb(var(--green) / 40%) 0 0 4px 4px,\n rgb(var(--green) / 20%) 0 0 8px 8px;\n\n /* https://www.colorxs.com/color/ral-3020-traffic-red */\n --red: 187 30 16;\n --trafic-light-red: rgb(var(--red));\n --trafic-light-red-glow:\n rgb(var(--red) / 40%) 0 0 4px 4px,\n rgb(var(--red) / 20%) 0 0 8px 8px;\n }\n\n .light {\n height: var(--light-size);\n width: var(--light-size);\n margin: 1rem;\n border-radius: 100%;\n }\n\n .green {\n background: var(--trafic-light-green);\n box-shadow: var(--trafic-light-green-glow);\n }\n\n .red {\n background: var(--trafic-light-red);\n box-shadow: var(--trafic-light-red-glow);\n }\n\n .label {\n font-size: small;\n color: grey;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n`;\n","import { when } from '@microsoft/fast-element';\nimport { html } from '@microsoft/fast-element';\nimport { classNames } from '@microsoft/fast-web-utilities';\nexport const foundationConnectionIndicatorTemplate = html `\n <div class=${(x) => classNames(['light', true], [x.colour, true])}></div>\n ${when((x) => x.showLabel, html `\n <div class=\"label\">${(x) => x.label}</div>\n `)}\n`;\n","import { __decorate } from \"tslib\";\nimport { Connect, Session } from '@genesislcap/foundation-comms';\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationConnectionIndicatorStyles as styles } from './connection-indicator.styles';\nimport { foundationConnectionIndicatorTemplate as template } from './connection-indicator.template';\n/**\n * @tagname %%prefix%%-connection-indicator\n */\nexport class ConnectionIndicator extends FoundationElement {\n constructor() {\n super(...arguments);\n this.showLabel = false;\n // could have been a boolean but might support more states in the future (connecting?)\n this.label = 'disconnected';\n this.colour = 'red';\n }\n connectedCallback() {\n super.connectedCallback();\n this.subscription = this.connect.isConnectedSubject.subscribe((connected) => {\n this.label = this.getLabel(connected);\n this.colour = connected ? 'green' : 'red';\n });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n }\n getLabel(connected) {\n if (!connected)\n return 'disconnected';\n const hostUrl = this.session.getSessionStorageItem('hostUrl');\n return `${hostUrl} ✔`;\n }\n}\n__decorate([\n Connect\n], ConnectionIndicator.prototype, \"connect\", void 0);\n__decorate([\n Session\n], ConnectionIndicator.prototype, \"session\", void 0);\n__decorate([\n attr({ mode: 'boolean', attribute: 'show-label' })\n], ConnectionIndicator.prototype, \"showLabel\", void 0);\n__decorate([\n observable\n], ConnectionIndicator.prototype, \"label\", void 0);\n__decorate([\n observable\n], ConnectionIndicator.prototype, \"colour\", void 0);\n/**\n * The Connection Indicator\n *\n * @public\n * @remarks\n * HTML Element: \\<connection-indicator\\>\n */\nexport const foundationConnectionIndicator = ConnectionIndicator.compose({\n baseName: 'connection-indicator',\n template,\n styles,\n});\n","import { dataGridStyles as fastDataGridStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationDataGridStyles = (context, defintion) => css `\n ${fastDataGridStyles(context, defintion)}\n`;\n","import { dataGridTemplate as fastDataGridTemplate } from '@microsoft/fast-foundation';\nexport const foundationDataGridTemplate = (context, definition) => fastDataGridTemplate(context, definition);\n","import { DataGrid as FASTDataGrid } from '@microsoft/fast-components';\nimport { foundationDataGridStyles as gridStyles } from './data-grid.styles';\nimport { foundationDataGridTemplate as gridTemplate } from './data-grid.template';\n/**\n * @tagname %%prefix%%-data-grid\n */\nexport class DataGrid extends FASTDataGrid {\n}\n// explicitly declaring for extensibility\nexport const foundationDataGridShadowOptions = undefined;\nexport const defaultDataGridConfig = {};\n/**\n * The Foundation Data Grid Element.\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-data-grid\\>\n */\nexport const foundationDataGrid = DataGrid.compose(Object.assign({ baseName: 'data-grid', template: gridTemplate, styles: gridStyles, shadowOptions: foundationDataGridShadowOptions }, defaultDataGridConfig));\n","import { dataGridCellStyles as fastDataGridCellStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationDataGridCellStyles = (context, defintion) => css `\n ${fastDataGridCellStyles(context, defintion)}\n`;\n","import { DataGridCell as FASTDataGridCell } from '@microsoft/fast-components';\nimport { dataGridCellTemplate as template } from '@microsoft/fast-foundation';\nimport { foundationDataGridCellStyles as styles } from './data-grid-cell.styles';\nexport { dataGridCellTemplate as foundationDataGridCellTemplate } from '@microsoft/fast-foundation';\n/**\n * @tagname %%prefix%%-data-grid-cell\n */\nexport class DataGridCell extends FASTDataGridCell {\n}\n// explicitly declaring for extensibility\nexport const foundationDataGridCellShadowOptions = undefined;\nexport const defaultDataGridCellConfig = {};\n/**\n * The Foundation Data Grid Cell Element.\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-data-grid-cell\\>\n */\nexport const foundationDataGridCell = DataGridCell.compose(Object.assign({ baseName: 'data-grid-cell', template,\n styles, shadowOptions: foundationDataGridCellShadowOptions }, defaultDataGridCellConfig));\n","import { dataGridRowStyles as fastDataGridRowStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationDataGridRowStyles = (context, defintion) => css `\n ${fastDataGridRowStyles(context, defintion)}\n`;\n","import { DataGridRow as FASTDataGridRow } from '@microsoft/fast-components';\nimport { dataGridRowTemplate as template } from '@microsoft/fast-foundation';\nimport { foundationDataGridRowStyles as styles } from './data-grid-row.styles';\nexport { dataGridRowTemplate as foundationDataGridRowTemplate } from '@microsoft/fast-foundation';\n/**\n * @tagname %%prefix%%-data-grid-row\n */\nexport class DataGridRow extends FASTDataGridRow {\n}\n// explicitly declaring for extensibility\nexport const foundationDataGridRowShadowOptions = undefined;\nexport const defaultDataGridRowConfig = {};\n/**\n * The Foundation Data Grid Row Element.\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-data-grid-row\\>\n */\nexport const foundationDataGridRow = DataGridRow.compose(Object.assign({ baseName: 'data-grid-row', template,\n styles, shadowOptions: foundationDataGridRowShadowOptions }, defaultDataGridRowConfig));\n","export default class Day {\n constructor(date = null, lang = 'default') {\n date = date !== null && date !== void 0 ? date : new Date();\n this.Date = date;\n this.date = date.getDate();\n this.day = date.toLocaleString(lang, { weekday: 'long' });\n this.dayNumber = date.getDay() + 1;\n this.dayShort = date.toLocaleString(lang, { weekday: 'short' });\n this.year = date.getFullYear();\n this.yearShort = Number(date.toLocaleString(lang, { year: '2-digit' }));\n this.month = date.toLocaleString(lang, { month: 'long' });\n this.monthShort = date.toLocaleString(lang, { month: 'short' });\n this.monthNumber = date.getMonth() + 1;\n this.timestamp = date.getTime();\n }\n}\n","import dayjs from 'dayjs';\nimport isLeapYear from 'dayjs/plugin/isLeapYear';\nimport Day from './day';\ndayjs.extend(isLeapYear);\nexport default class Month {\n constructor(date = null, lang = 'default') {\n const day = new Day(date, lang);\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n const monthSize = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n this.lang = lang;\n this.name = day.month;\n this.number = day.monthNumber;\n this.year = day.year;\n this.numberOfDays = monthSize[this.number - 1];\n if (this.number === 2) {\n this.numberOfDays += dayjs(day.date).isLeapYear() ? 1 : 0;\n }\n }\n getDay(date) {\n return new Day(new Date(this.year, this.number - 1, date), this.lang);\n }\n}\n","import dayjs from 'dayjs';\nimport isLeapYear from 'dayjs/plugin/isLeapYear';\nimport Day from './day';\nimport Month from './month';\ndayjs.extend(isLeapYear);\nexport default class Calendar {\n constructor(year = null, monthNumber = null, lang = 'default') {\n this.weekDays = Array.from({ length: 7 });\n this.today = new Day(null, lang);\n this.year = year !== null && year !== void 0 ? year : this.today.year;\n this.month = new Month(new Date(this.year, (monthNumber || this.today.monthNumber) - 1), lang);\n this.lang = lang;\n this.weekDays.forEach((item, index) => {\n const day = this.month.getDay(index);\n this.weekDays[day.dayNumber - 1] = day.day;\n });\n }\n getMonth(monthNumber) {\n return new Month(new Date(this.year, monthNumber - 1), this.lang);\n }\n getPreviousMonth() {\n const month = 11;\n if (this.month.number === 1) {\n return new Month(new Date(this.year - 1, month), this.lang);\n }\n return new Month(new Date(this.year, this.month.number - 2), this.lang);\n }\n getNextMonth() {\n if (this.month.number === 1) {\n return new Month(new Date(this.year + 1, 0), this.lang);\n }\n return new Month(new Date(this.year, this.month.number + 2), this.lang);\n }\n goToDate(monthNumber, year) {\n this.month = new Month(new Date(year, monthNumber - 1), this.lang);\n this.year = year;\n }\n goToNextYear() {\n this.year += 1;\n this.month = new Month(new Date(this.year, 0), this.lang);\n }\n goToPreviousYear() {\n const month = 11;\n this.year -= 1;\n this.month = new Month(new Date(this.year, month), this.lang);\n }\n goToNextMonth() {\n const month = 12;\n if (this.month.number === month) {\n return this.goToNextYear();\n }\n this.month = new Month(new Date(this.year, this.month.number + 1 - 1), this.lang);\n }\n goToPreviousMonth() {\n if (this.month.number === 1) {\n return this.goToPreviousYear();\n }\n this.month = new Month(new Date(this.year, this.month.number - 1 - 1), this.lang);\n }\n}\n","import { css } from '@microsoft/fast-element';\nexport const foundationDatePickerStyles = css `\n :host {\n position: relative;\n }\n\n .date-toggle {\n padding: 0 0 0 15px;\n border: none;\n appearance: none;\n background: #eee;\n color: #333;\n border-radius: calc(var(--control-corner-radius) * 1px);\n cursor: pointer;\n text-transform: capitalize;\n }\n\n .date-toggle zero-icon {\n padding: 10px;\n }\n\n .calendar-dropdown {\n display: none;\n width: 300px;\n z-index: 999;\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, 8px);\n margin: 10px 0 0;\n padding: 20px;\n background: var(--neutral-foreground-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n box-shadow: 0 0 8px rgb(0 0 0 / 20%);\n }\n\n .calendar-dropdown.top {\n top: auto;\n bottom: 100%;\n margin: 0 0 5px;\n transform: translate(-50%, -8px);\n }\n\n .calendar-dropdown.left {\n top: 50%;\n left: 0;\n margin: 0 0 0 5px;\n transform: translate(calc(-8px + -100%), -50%);\n }\n\n .calendar-dropdown.right {\n top: 50%;\n left: 100%;\n transform: translate(8px, -50%);\n }\n\n .calendar-dropdown.visible {\n display: block;\n }\n\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0 0 10px;\n }\n\n .header h3 {\n margin: 0;\n text-transform: capitalize;\n font-weight: bold;\n color: var(--foreground-on-accent-rest);\n }\n\n .header .months-arrows {\n display: flex;\n flex-direction: row;\n }\n\n .header .icon-container {\n display: flex;\n width: 25px;\n height: 25px;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .header .icon-container:first-child {\n margin-right: calc(var(--design-unit) * 2px);\n }\n\n .header .prev-month,\n .header .next-month {\n color: var(--foreground-on-accent-rest);\n font-size: 18px;\n }\n\n .week-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n margin-bottom: 10px;\n color: var(--foreground-on-accent-rest);\n }\n\n .week-days span {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n text-transform: capitalize;\n }\n\n .month-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n }\n\n .month-day {\n padding: 8px 5px;\n color: #808080;\n background: none;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 4px);\n cursor: pointer;\n border: none;\n }\n\n .month-day.current {\n opacity: 100%;\n color: var(--foreground-on-accent-rest);\n }\n\n .month-day.selected {\n background: var(--accent-foreground-rest);\n color: var(--neutral-foreground-rest);\n }\n\n .month-day:hover {\n background: var(--neutral-stroke-hover);\n color: (--neutral-foreground-rest);\n }\n`;\n","import { html } from '@microsoft/fast-element';\nimport { ref, repeat } from '@microsoft/fast-element';\nexport const foundationDatePickerTemplate = html `\n <foundation-button type=\"button\" class=\"date-toggle\" ${ref('toggleButton')}>\n ${(x) => x.formatDate}\n <zero-icon variant=\"regular\" name=\"calendar-alt\"></zero-icon>\n </foundation-button>\n <div class=\"calendar-dropdown ${(x) => x.calendarDropdownClasses} ${(x) => x.position}\">\n <div class=\"header\">\n <h3>${(x) => x.currentMonth} ${(x) => x.currentYear}</h3>\n <div class=\"months-arrows\">\n <div class=\"icon-container\" ${ref('prevBtn')}>\n <zero-icon name=\"angle-left\" class=\"prev-month\" aria-label=\"previous month\"></zero-icon>\n </div>\n <div class=\"icon-container\" ${ref('nextBtn')}>\n <zero-icon name=\"angle-right\" class=\"next-month\" aria-label=\"next month\"></zero-icon>\n </div>\n </div>\n </div>\n <div class=\"week-days\">\n ${repeat((x) => x.calendar.weekDays, html `\n <span>${(x, c) => x.substring(0, c.parent.substringNumber)}</span>\n `)}\n </div>\n <div class=\"month-days\" ${ref('calendarDaysContainer')}>\n ${repeat((x) => x.monthList, html `\n <button\n class=\"month-day \n ${(x, c) => (c.parent.isSelectedDate(x) ? 'selected' : '')} \n ${(x, c) => (x.monthNumber === c.parent.calendar.month.number ? 'current' : '')}\"\n @click=${(x, c) => c.parent.selectDay(x)}\n >\n ${(x, c) => x.date}\n </button>\n `)}\n </div>\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { classNames } from '@microsoft/fast-web-utilities';\nimport dayjs from 'dayjs';\nimport Calendar from './calendar';\nimport { foundationDatePickerStyles as styles } from './date-picker.styles';\nimport { foundationDatePickerTemplate as template } from './date-picker.template';\nimport Day from './day';\nexport const foundationDatePickerShadowOptions = undefined;\nexport const defaultDatePickerConfig = {};\n/**\n * @tagname %%prefix%%-date-picker\n */\nexport class DatePicker extends FoundationElement {\n formatChanged(oldValue, newValue) {\n if (newValue && this.calendar) {\n this.formatDate = dayjs(this.currentDate.Date).format(newValue);\n }\n }\n valueChanged(oldValue, newValue) {\n if (newValue && this.calendar) {\n this.currentDate = new Day(new Date(newValue));\n this.calendar.goToDate(this.currentDate.monthNumber, this.currentDate.year);\n this.formatDate = dayjs(this.currentDate.Date).format(this.format);\n this.updateHeaderText();\n this.monthList = this.getMonthDaysGrid();\n }\n }\n constructor() {\n var _a;\n super();\n this.format = 'MM-DD-YYYY';\n this.visible = false;\n this.position = 'bottom';\n const lang = 'en-US';\n const date = new Date((_a = this.currentDate) !== null && _a !== void 0 ? _a : (this.getAttribute('value') || Date.now()));\n this.substringNumber = 3;\n this.currentDate = new Day(date, lang);\n this.value = dayjs(this.currentDate.Date).format('MM-DD-YYYY');\n this.calendar = new Calendar(this.currentDate.year, this.currentDate.monthNumber, lang);\n }\n connectedCallback() {\n super.connectedCallback();\n this.currentMonth = this.calendar.month.name;\n this.currentYear = this.calendar.year;\n this.formatDate = dayjs(this.currentDate.Date).format(this.format);\n this.toggleButton.addEventListener('click', () => this.toggleCalendar());\n this.prevBtn.addEventListener('click', () => this.prevMonth());\n this.nextBtn.addEventListener('click', () => this.nextMonth());\n this.monthList = this.getMonthDaysGrid();\n }\n updateHeaderText() {\n this.currentMonth = this.calendar.month.name;\n this.currentYear = this.calendar.year;\n }\n toggleCalendar() {\n this.visible = !this.visible;\n this.toggleVisibility();\n if (!this.isCurrentCalendarMonth()) {\n this.calendar.goToDate(this.currentDate.monthNumber, this.currentDate.year);\n this.updateHeaderText();\n }\n }\n toggleVisibility() {\n this.calendarDropdownClasses = classNames(['visible', this.visible], this.position);\n }\n isSelectedDate(date) {\n return dayjs(date.Date).isSame(this.currentDate.Date, 'day');\n }\n isCurrentCalendarMonth() {\n return (this.currentMonth === this.currentDate.monthNumber &&\n this.currentYear === this.currentDate.year);\n }\n prevMonth() {\n this.calendar.goToPreviousMonth();\n this.updateHeaderText();\n this.monthList = this.getMonthDaysGrid();\n }\n nextMonth() {\n this.calendar.goToNextMonth();\n this.updateHeaderText();\n this.monthList = this.getMonthDaysGrid();\n }\n selectDay(day) {\n if (dayjs(day.Date).isSame(this.currentDate.Date))\n return;\n this.currentDate = day;\n if (day.monthNumber !== this.calendar.month.number) {\n this.prevMonth();\n }\n this.formatDate = dayjs(this.currentDate.Date).format(this.format);\n this.value = dayjs(day.Date).format('MM-DD-YYYY');\n this.toggleCalendar();\n }\n getMonthDaysGrid() {\n const firstDayOfTheMonth = this.calendar.month.getDay(1);\n const prevMonth = this.calendar.getPreviousMonth();\n const totalLastMonthFinalDays = firstDayOfTheMonth.dayNumber - 1;\n const totalDays = this.calendar.month.numberOfDays + totalLastMonthFinalDays;\n const monthList = Array.from({ length: totalDays });\n for (let i = totalLastMonthFinalDays; i < totalDays; i += 1) {\n monthList[i] = this.calendar.month.getDay(i + 1 - totalLastMonthFinalDays);\n }\n for (let i = 0; i < totalLastMonthFinalDays; i += 1) {\n const inverted = totalLastMonthFinalDays - (i + 1);\n monthList[i] = prevMonth.getDay(prevMonth.numberOfDays - inverted);\n }\n return monthList;\n }\n}\n__decorate([\n attr\n], DatePicker.prototype, \"format\", void 0);\n__decorate([\n attr\n], DatePicker.prototype, \"visible\", void 0);\n__decorate([\n attr\n], DatePicker.prototype, \"position\", void 0);\n__decorate([\n attr\n], DatePicker.prototype, \"value\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"currentDate\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"currentMonth\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"currentYear\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"calendarDropdownClasses\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"formatDate\", void 0);\n__decorate([\n observable\n], DatePicker.prototype, \"monthList\", void 0);\n/**\n * The Foundation DatePicker\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-date-picker\\>\n */\nexport const foundationDatePicker = DatePicker.compose(Object.assign({ baseName: 'date-picker', styles,\n template, shadowOptions: foundationDatePickerShadowOptions }, defaultDatePickerConfig));\n","import { parseColorHexRGB } from '@microsoft/fast-colors';\nimport { PaletteRGB, SwatchRGB } from '@microsoft/fast-components';\n/**\n * @internal\n */\nexport const white = SwatchRGB.create(1, 1, 1);\n/**\n * @internal\n */\nexport const black = SwatchRGB.create(0, 0, 0);\n/**\n * @internal\n */\nconst fuiBGColor = parseColorHexRGB('#585858');\nexport const defaultFillColor = SwatchRGB.create(fuiBGColor.r, fuiBGColor.g, fuiBGColor.b);\n/**\n * @internal\n */\nconst fuiCardBGColor = parseColorHexRGB('#ffffff');\nexport const fuiDefaultCardFillColor = SwatchRGB.create(fuiCardBGColor.r, fuiCardBGColor.g, fuiCardBGColor.b);\nexport const fuiDefaultCardPalette = PaletteRGB.from(fuiDefaultCardFillColor);\n/**\n * @internal\n */\nconst fuiNeutralRGB = parseColorHexRGB('#eeeeee');\nexport const fuiNeutralSwatch = SwatchRGB.create(fuiNeutralRGB.r, fuiNeutralRGB.g, fuiNeutralRGB.b);\nexport const fuiNeutralPalette = PaletteRGB.from(fuiNeutralSwatch);\n/**\n * @internal\n */\nconst fuiAccentRGB = parseColorHexRGB('#08c3a5');\nexport const fuiAccentSwatch = SwatchRGB.create(fuiAccentRGB.r, fuiAccentRGB.g, fuiAccentRGB.b);\nexport const fuiAccentPalette = PaletteRGB.from(fuiAccentSwatch);\n","import { DesignToken } from '@microsoft/fast-foundation';\nimport { defaultFillColor, fuiDefaultCardFillColor, fuiDefaultCardPalette } from '../styles/colors';\nconst { create } = DesignToken;\n/** @public */\nexport const fuiFillColor = create('fui-fill-color').withDefault(defaultFillColor);\n/** @public */\nexport const fuiCardFillColor = create({\n name: 'card-fill-color',\n cssCustomPropertyName: 'fui-card-fill-color',\n}).withDefault(fuiDefaultCardFillColor);\nexport const defaultNeutralForegroundContrast = 14;\nexport function neutralForeground(palette, reference) {\n return palette.colorContrast(reference, defaultNeutralForegroundContrast);\n}\n/** @public */\nexport const fuiCardForegroundColor = create({\n name: 'card-foreground-color',\n cssCustomPropertyName: 'fui-card-foreground-color',\n}).withDefault((element) => {\n const cardPalette = create('fui-card-palette').withDefault(fuiDefaultCardPalette);\n return neutralForeground(cardPalette.getValueFor(element), fuiCardFillColor.getValueFor(element));\n});\n","import { TypeRampValues } from '@genesislcap/foundation-utils';\nimport { parseColorHexRGB } from '@microsoft/fast-colors';\nimport { PaletteRGB, SwatchRGB, accentPalette, controlCornerRadius, designUnit, neutralPalette, baseLayerLuminance, density, strokeWidth, bodyFont, typeRampBaseFontSize, typeRampBaseLineHeight, typeRampMinus1FontSize, typeRampMinus1LineHeight, typeRampMinus2FontSize, typeRampMinus2LineHeight, typeRampPlus1FontSize, typeRampPlus1LineHeight, typeRampPlus2FontSize, typeRampPlus2LineHeight, typeRampPlus3FontSize, typeRampPlus3LineHeight, typeRampPlus4FontSize, typeRampPlus4LineHeight, typeRampPlus5FontSize, typeRampPlus5LineHeight, typeRampPlus6FontSize, typeRampPlus6LineHeight, } from '@microsoft/fast-components';\nexport const provideTokens = (tokens, values, element) => {\n const setToken = element\n ? (token, value) => token.setValueFor(element, value)\n : (token, value) => token.withDefault(value);\n Object.keys(tokens).forEach((token) => {\n const valueKey = `${token}Value`;\n if (values[valueKey]) {\n setToken(tokens[token], values[valueKey]);\n }\n });\n};\nexport function designToken(token) {\n return (source, key) => {\n source[key + 'Changed'] = function (prev, next) {\n if (next !== undefined && next !== null) {\n token.setValueFor(this, next);\n }\n else {\n token.deleteValueFor(this);\n }\n };\n };\n}\nexport const swatchConverter = {\n toView(value) {\n if (value === null || value === undefined) {\n return null;\n }\n return value === null || value === void 0 ? void 0 : value.toColorString();\n },\n fromView(value) {\n if (value === null || value === undefined) {\n return null;\n }\n const color = parseColorHexRGB(value);\n return color ? SwatchRGB.create(color.r, color.g, color.b) : null;\n },\n};\nexport const paletteFromHex = (hexColor) => PaletteRGB.from(SwatchRGB.from(parseColorHexRGB(hexColor)));\nconst defaultExclusions = ['baseClass', 'baseName', 'shadowOptions', 'styles', 'template'];\nexport const getDefaultConfig = (definition, exclusions = defaultExclusions) => {\n const keys = Object.keys(definition).filter((k) => !exclusions.includes(k));\n return keys.reduce((accumulator, key) => {\n accumulator[key] = definition[key];\n return accumulator;\n }, {});\n};\nexport const getExports = (registrationFunction) => {\n const { definition } = registrationFunction();\n const { shadowOptions, styles, template } = definition;\n const defaultConfig = getDefaultConfig(definition);\n return { shadowOptions, styles, template, defaultConfig };\n};\nexport const getTypeRampValue = (baseTypeRamp, value) => {\n const regex = /^(\\d+)([a-z]+)/i;\n const matches = baseTypeRamp.match(regex);\n const baseFontValue = matches[1];\n const baseUnit = matches[2];\n const typeRampSize = Number(baseFontValue) + value;\n return typeRampSize + baseUnit;\n};\nexport const configureDesignSystem = (provider, config) => {\n const designTokens = config.design_tokens;\n accentPalette.setValueFor(provider, paletteFromHex(designTokens.color.accent.$value));\n neutralPalette.setValueFor(provider, paletteFromHex(designTokens.color.neutral.$value));\n bodyFont.setValueFor(provider, designTokens.fontFamily.bodyFont.$value);\n baseLayerLuminance.setValueFor(provider, designTokens.mode.luminance.$value);\n density.setValueFor(provider, designTokens.style.density.$value);\n controlCornerRadius.setValueFor(provider, designTokens.style.borderRadius.$value);\n strokeWidth.setValueFor(provider, designTokens.style.strokeWidth.$value);\n designUnit.setValueFor(provider, designTokens.space.designUnit.$value);\n typeRampBaseFontSize.setValueFor(provider, designTokens.typography.baseFontSize.$value);\n typeRampBaseLineHeight.setValueFor(provider, designTokens.typography.baseLineHeight.$value);\n const baseFontSize = typeRampBaseFontSize.getValueFor(provider);\n const baseLineHeight = typeRampBaseLineHeight.getValueFor(provider);\n typeRampMinus1FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.minusOne));\n typeRampMinus1LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.minusOne));\n typeRampMinus2FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.minusTwo));\n typeRampMinus2LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.minusTwo));\n typeRampPlus1FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusOne));\n typeRampPlus1LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusOne));\n typeRampPlus2FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusTwo));\n typeRampPlus2LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusTwo));\n typeRampPlus3FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusThree));\n typeRampPlus3LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusThree));\n typeRampPlus4FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusFour));\n typeRampPlus4LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusFour));\n typeRampPlus5FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusFive));\n typeRampPlus5LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusFive));\n typeRampPlus6FontSize.setValueFor(provider, getTypeRampValue(baseFontSize, TypeRampValues.plusSix));\n typeRampPlus6LineHeight.setValueFor(provider, getTypeRampValue(baseLineHeight, TypeRampValues.plusSix));\n};\n","import { StandardLuminance } from '@microsoft/fast-components';\nimport { paletteFromHex } from '../../design-system-provider/design-system-provider.utils';\nexport const accentPaletteValue = paletteFromHex('#08c3a5');\nexport const neutralPaletteValue = paletteFromHex('#eeeeee');\nexport const baseLayerLuminanceValue = StandardLuminance.DarkMode;\n// export const accentFillRestDeltaValue = 0;\n// export const accentFillHoverDeltaValue = 4;\n// export const accentFillActiveDeltaValue = -5;\n// export const accentFillFocusDeltaValue = 0;\n// export const accentForegroundRestDeltaValue = 0;\n// export const accentForegroundHoverDeltaValue = 6;\n// export const accentForegroundActiveDeltaValue = -4;\n// export const accentForegroundFocusDeltaValue = 0;\n// export const neutralFillRestDeltaValue = 7;\n// export const neutralFillHoverDeltaValue = 10;\n// export const neutralFillActiveDeltaValue = 5;\n// export const neutralFillFocusDeltaValue = 0;\n// export const neutralFillInputRestDeltaValue = 0;\n// export const neutralFillInputHoverDeltaValue = 0;\n// export const neutralFillInputActiveDeltaValue = 0;\n// export const neutralFillInputFocusDeltaValue = 0;\n// export const neutralFillStealthRestDeltaValue = 0;\n// export const neutralFillStealthHoverDeltaValue = 5;\n// export const neutralFillStealthActiveDeltaValue = 3;\n// export const neutralFillStealthFocusDeltaValue = 0;\n// export const neutralFillStrongRestDeltaValue = 0;\n// export const neutralFillStrongHoverDeltaValue = 8;\n// export const neutralFillStrongActiveDeltaValue = -5;\n// export const neutralFillStrongFocusDeltaValue = 0;\n// export const neutralFillLayerRestDeltaValue = 3;\n// export const neutralStrokeRestDeltaValue = 25;\n// export const neutralStrokeHoverDeltaValue = 40;\n// export const neutralStrokeActiveDeltaValue = 16;\n// export const neutralStrokeFocusDeltaValue = 25;\n// export const neutralStrokeDividerRestDeltaValue = 8;\n","import { Direction } from '@microsoft/fast-web-utilities';\n// export const prefix = 'foundation';\nexport const directionValue = Direction.ltr;\n// export const disabledOpacityValue = 0.3;\n// export const strokeWidthValue = 1;\n// export const focusStrokeWidthValue = 2;\n","// export const baseHeightMultiplierValue = 10;\nexport const controlCornerRadiusValue = 4;\n// export const densityValue = 0;\nexport const designUnitValue = 4;\n","import { bodyFont } from '@microsoft/fast-components';\nexport const mixinFoundationFontFamily = (style = 'normal', weight = 'normal') => `\n font-family: ${bodyFont};\n font-style: ${style};\n font-weight: ${weight};\n`;\n","import { css } from '@microsoft/fast-element';\nimport { display, forcedColorsStylesheetBehavior, } from '@microsoft/fast-foundation';\nimport { SystemColors } from '@microsoft/fast-web-utilities';\nimport { mixinFoundationFontFamily } from '../_config/styles';\nimport { fuiFillColor } from '../_config/tokens';\nconst baseStyles = css `\n ${display('flex')}\n :host {\n flex: 1;\n }\n`;\nconst backgroundStyles = css `\n :host {\n background-color: ${fuiFillColor};\n }\n`.withBehaviors(forcedColorsStylesheetBehavior(css `\n :host {\n background-color: ${SystemColors.ButtonFace};\n box-shadow: 0 0 0 1px ${SystemColors.CanvasText};\n color: ${SystemColors.ButtonText};\n }\n `));\nconst getHeaderForContext = (context, headingLevel) => css `\n ${context.name} ${'h' + headingLevel} {\n margin: 0;\n }\n`;\nconst typography = (context) => css `\n ${getHeaderForContext(context, '1')}\n ${getHeaderForContext(context, '2')}\n ${getHeaderForContext(context, '3')}\n ${getHeaderForContext(context, '4')}\n ${getHeaderForContext(context, '5')}\n ${getHeaderForContext(context, '6')}\n`;\nexport const designSystemProviderStyles = (context) => {\n const contextualizedTypography = typography(context);\n // Document-level but contextualized overrides (h1, h2, span, etc)\n contextualizedTypography.addStylesTo(document);\n return css `\n ${baseStyles}\n ${backgroundStyles}\n ${contextualizedTypography}\n :host * {\n ${mixinFoundationFontFamily()}\n }\n `;\n};\n","import { __decorate } from \"tslib\";\nimport { DesignSystemProvider as FASTDesignSystemProvider, } from '@microsoft/fast-components';\nimport { attr, html } from '@microsoft/fast-element';\nimport * as tokens from '../_config/tokens';\nimport { fuiCardFillColor, fuiCardForegroundColor } from '../_config/tokens/custom';\nimport * as values from '../_config/values';\nimport { designSystemProviderStyles } from './design-system-provider.styles';\nimport { designToken, provideTokens, swatchConverter } from './design-system-provider.utils';\n/**\n * The Foundation Design System Provider\n * @public\n * @tagname %%prefix%%-design-system-provider\n */\nexport class FoundationDesignSystemProvider extends FASTDesignSystemProvider {\n constructor() {\n super();\n provideTokens(tokens, values, this);\n }\n}\n__decorate([\n attr({\n attribute: 'card-fill-color',\n converter: swatchConverter,\n }),\n designToken(fuiCardFillColor)\n], FoundationDesignSystemProvider.prototype, \"cardFillColor\", void 0);\n__decorate([\n attr({\n attribute: 'card-foreground-color',\n converter: swatchConverter,\n }),\n designToken(fuiCardForegroundColor)\n], FoundationDesignSystemProvider.prototype, \"cardForegroundColor\", void 0);\n/**\n * The Foundation Design System Provider composed element\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-design-system-provider\\>\n */\nexport const foundationDesignSystemProvider = FoundationDesignSystemProvider.compose({\n baseName: 'design-system-provider',\n template: html `\n <slot></slot>\n `,\n styles: designSystemProviderStyles,\n});\n","import { css } from '@microsoft/fast-element';\nexport const foundationDialogStyles = css `\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n top: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon svg {\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 2px);\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 4px);\n overflow: inherit;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n`;\n","export const closeIcon = (slot = 'start') => `\n <svg class=\"svg-icon\" slot=\"${slot}\" width=\"16px\" height=\"16px\">\n <g transform=\"matrix(1 0 0 1 -1865 -3576 )\">\n <path d=\"M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z \" fill-rule=\"nonzero\" fill=\"#879ba6\" stroke=\"none\" transform=\"matrix(1 0 0 1 1865 3576 )\" />\n </g>\n </svg>\n`;\n","import { html, ref, when } from '@microsoft/fast-element';\nimport { closeIcon } from '../_common/icons';\nexport const foundationDialogTemplate = html `\n <dialog ${ref('mainElement')} part=\"dialog\">\n <div class=\"content-wrapper\">\n <div part=\"top\" class=\"top\">\n <slot name=\"top\"></slot>\n ${when((x) => x.showCloseIcon, html `\n <div class=\"close-icon\" @click=${(x) => x.close()}>${closeIcon()}</div>\n `)}\n </div>\n <slot></slot>\n <div part=\"bottom\" class=\"bottom\">\n <slot name=\"bottom\"></slot>\n </div>\n </div>\n </dialog>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable, volatile } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport dialogPolyfill from 'dialog-polyfill';\nimport { foundationDialogStyles as styles } from './dialog.styles';\nimport { foundationDialogTemplate as template } from './dialog.template';\n// explicitly declaring for extensibility\nexport const foundationDialogShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nexport const defaultDialogConfig = {};\nexport class DialogElement extends FoundationElement {\n constructor() {\n super(...arguments);\n this.position = 'centre';\n /**\n * Whether or not to show the close icon\n */\n this.showCloseIcon = true;\n }\n connectedCallback() {\n super.connectedCallback();\n if (!window['HTMLDialogElement']) {\n dialogPolyfill.registerDialog(this.mainElement);\n }\n this.mainElement.addEventListener('close', () => {\n if (this.onCloseCallback)\n this.onCloseCallback();\n });\n }\n /**\n * Determine if the dialog is showing or closed.\n */\n get open() {\n return this.mainElement.hasAttribute('open');\n }\n /**\n * Remove the HTMLDialogElement from display\n */\n close() {\n this.mainElement['close']();\n }\n}\n__decorate([\n attr\n], DialogElement.prototype, \"position\", void 0);\n__decorate([\n attr({ mode: 'boolean', attribute: 'show-close-icon' })\n], DialogElement.prototype, \"showCloseIcon\", void 0);\n__decorate([\n observable\n], DialogElement.prototype, \"onShowCallback\", void 0);\n__decorate([\n observable\n], DialogElement.prototype, \"onCloseCallback\", void 0);\n__decorate([\n volatile\n], DialogElement.prototype, \"open\", null);\n/**\n * @tagname %%prefix%%-dialog\n */\nexport class Dialog extends DialogElement {\n show() {\n if (this.onShowCallback)\n this.onShowCallback();\n this.mainElement['show']();\n }\n}\n/**\n * The Foundation Dialog\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-dialog\\>\n */\nexport const foundationDialog = Dialog.compose(Object.assign({ baseName: 'dialog', styles,\n template, shadowOptions: foundationDialogShadowOptions }, defaultDialogConfig));\n","import { disclosureStyles as fastDisclosureStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationDisclosureStyles = (context, definition) => css `\n ${fastDisclosureStyles(context, definition)}\n`;\n","import { disclosureTemplate as fastDisclosureTemplate } from '@microsoft/fast-foundation';\nexport const foundationDisclosureTemplate = (context, definition) => fastDisclosureTemplate(context, definition);\n","import { Disclosure as FASTDisclosure } from '@microsoft/fast-foundation';\nimport { foundationDisclosureStyles as styles } from './disclosure.styles';\nimport { foundationDisclosureTemplate as template } from './disclosure.template';\n/**\n * @tagname %%prefix%%-disclosure\n */\nexport class Disclosure extends FASTDisclosure {\n}\n// explicitly declaring for extensibility\nexport const foundationDisclosureShadowOptions = undefined;\nexport const defaultDisclosureConfig = {};\n/**\n * The Foundation Disclosure\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-disclosure\\>\n */\nexport const foundationDisclosure = Disclosure.compose(Object.assign({ baseName: 'disclosure', template,\n styles, shadowOptions: foundationDisclosureShadowOptions }, defaultDisclosureConfig));\n","import { dividerStyles as fastDividerStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationDividerStyles = (context, definition) => css `\n ${fastDividerStyles(context, definition)}\n`;\n","import { dividerTemplate as fastDividerTemplate } from '@microsoft/fast-foundation';\nexport const foundationDividerTemplate = (context, definition) => fastDividerTemplate(context, definition);\n","import { Divider as FASTDivider } from '@microsoft/fast-foundation';\nimport { foundationDividerStyles as styles } from './divider.styles';\nimport { foundationDividerTemplate as template } from './divider.template';\n/**\n * @tagname %%prefix%%-divider\n */\nexport class Divider extends FASTDivider {\n}\n// explicitly declaring for extensibility\nexport const foundationDividerShadowOptions = undefined;\nexport const defaultDividerConfig = {};\n/**\n * The Foundation Divider\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-divider\\>\n */\nexport const foundationDivider = Divider.compose(Object.assign({ baseName: 'divider', template,\n styles, shadowOptions: foundationDividerShadowOptions }, defaultDividerConfig));\n","export const wasClickOutsideElement = (event, target) => !event.composedPath().includes(target);\nexport const wasClickInsideElement = (event, target) => event.composedPath().includes(target);\n","import { css } from '@microsoft/fast-element';\nexport const dropdownMenuBaseStyles = (prefix, context, definition) => css `\n :host {\n --dropdown-opener-height-multiplier: 0.7px;\n --menu-item-height-multiplier: 0.7px;\n }\n\n .actions-menu {\n display: inline-flex;\n flex-direction: column;\n max-height: calc(\n var(--max-height) -\n ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px)\n );\n position: absolute;\n z-index: 1;\n gap: calc(var(--design-unit) * 1px);\n }\n\n .hidden {\n display: none;\n }\n\n .actions-opener {\n display: flex;\n justify-content: center;\n height: calc(\n (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *\n var(--dropdown-opener-height-multiplier)\n );\n max-width: 120px;\n }\n\n ${prefix}-menu-item {\n display: flex;\n user-select: none;\n }\n\n ${prefix}-menu-item::part(content) {\n margin-inline: 5px;\n }\n\n ${prefix}-menu-item::part(expand-collapse-glyph-container) {\n margin-inline-end: 5px;\n }\n\n ${prefix}-menu-item::part(expand-collapse) {\n margin-inline-start: 5px;\n }\n\n ${prefix}-menu-item[disabled] {\n pointer-events: none;\n }\n\n ${prefix}-icon {\n padding-left: 5px;\n }\n\n .menu-item {\n max-height: calc(\n (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *\n var(--menu-item-height-multiplier)\n );\n }\n`;\nexport const foundationDropdownMenuStyles = (context, definition) => css `\n ${dropdownMenuBaseStyles('foundation', context, definition)}\n`;\n","import { html, ref, repeat, when } from '@microsoft/fast-element';\nexport const extractMenuItems = (items, prefix) => html `\n ${repeat(() => items, html `\n ${when((x) => x.isDisabled && x.isDisabled(), html `\n <${prefix}-menu-item class=\"menu-item\" disabled>${(x) => x.name}</${prefix}-menu-item>\n `)}\n ${when((x) => !x.isDisabled || !x.isDisabled(), html `\n <${prefix}-menu-item\n class=\"menu-item\"\n @click=${(x) => (!x.submenu ? x.callback() : '')}\n style=\"${(x) => (x.color ? `color: ${x.color};` : '')}\"\n >\n ${when((x) => x.icon, html `\n <${prefix}-icon\n name=${(x) => x.icon.name}\n size=${(x) => x.icon.size}\n variant=${(x) => x.icon.variant}\n slot=\"start\"\n ></${prefix}-icon>\n `)}\n ${(x) => x.name}\n ${when((x) => x.submenu, html `\n <${prefix}-menu>${(x) => extractMenuItems(x.submenu, prefix)}</${prefix}-menu>\n `)}\n </${prefix}-menu-item>\n `)}\n `)}\n`;\nexport const getDropdownMenuTemplate = (prefix) => html `\n <div class=\"actions-container\" part=\"actions-container\">\n <${prefix}-button\n id=\"actiosnMenuTrigger\"\n class=\"actions-opener\"\n appearance=\"${(x) => x.buttonAppearance}\"\n part=\"actions-opener\"\n @click=${(x) => x.toggleDropdownMenuVisibility()}\n :disabled=${(x) => x.disabled}\n >\n ${(x) => x.name}\n </${prefix}-button>\n <${prefix}-menu\n ${ref('dropdownMenu')}\n class=\"actions-menu ${(x) => x.classNames}\"\n part=\"actions-menu\"\n >\n ${(x) => extractMenuItems(x.allItems, prefix)}\n </${prefix}-menu>\n </div>\n`;\nexport const foundationDropdownMenuTemplate = html `\n ${(x) => getDropdownMenuTemplate(x.tagName.toLowerCase().split('-')[0])}\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { classNames } from '@microsoft/fast-web-utilities';\nimport { wasClickOutsideElement } from '../utils';\nimport { foundationDropdownMenuStyles as styles } from './dropdown-menu.styles';\nimport { foundationDropdownMenuTemplate as template } from './dropdown-menu.template';\n/**\n * @tagname %%prefix%%-dropdown-menu\n */\nexport class DropdownMenu extends FoundationElement {\n constructor() {\n super(...arguments);\n this.autoClose = true;\n this.disabled = false;\n this.name = 'Dropdown Menu';\n this.open = false;\n this.clickOutside = (e) => this.handleClickOutside(e);\n }\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('onMenuClick', this.onDropdownMenuItemClick);\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('mousedown', this.clickOutside);\n }\n handleClickOutside(event) {\n if (wasClickOutsideElement(event, this)) {\n this.open = false;\n }\n }\n openChanged() {\n this.classNames = classNames(['hidden', !this.open]);\n if (this.open) {\n document.addEventListener('mousedown', this.clickOutside);\n }\n else {\n document.removeEventListener('mousedown', this.clickOutside);\n }\n }\n toggleDropdownMenuVisibility() {\n this.open = !this.open;\n }\n onDropdownMenuItemClick() {\n if (this.autoClose)\n this.open = false;\n }\n get allItems() {\n return this.items;\n }\n}\n__decorate([\n observable\n], DropdownMenu.prototype, \"items\", void 0);\n__decorate([\n attr({ attribute: 'auto-close', mode: 'boolean' })\n], DropdownMenu.prototype, \"autoClose\", void 0);\n__decorate([\n attr({ attribute: 'disable-button', mode: 'boolean' })\n], DropdownMenu.prototype, \"disabled\", void 0);\n__decorate([\n observable\n], DropdownMenu.prototype, \"classNames\", void 0);\n__decorate([\n attr\n], DropdownMenu.prototype, \"name\", void 0);\n__decorate([\n attr({ attribute: 'open', mode: 'boolean' })\n], DropdownMenu.prototype, \"open\", void 0);\n__decorate([\n attr\n], DropdownMenu.prototype, \"buttonAppearance\", void 0);\n/**\n * The Foundation Dropdown Menu\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-dropdown-menu\\>\n */\nexport const foundationDropdownMenu = DropdownMenu.compose({\n baseName: 'dropdown-menu',\n styles,\n template,\n});\n","import { createLogger } from '@genesislcap/foundation-utils';\nexport const logger = createLogger('foundation-ui');\n","import { html, ref, repeat } from '@microsoft/fast-element';\nexport const foundationErrorBannerTemplate = html `\n <foundation-banner ${ref('banner')}>\n <div slot=\"content\">\n <div>${(x) => { var _a; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || 'Place holder for error message'; }}</div>\n </div>\n\n <foundation-button slot=\"action\" appearance=\"lightweight\" @click=${(x) => { var _a; return (_a = x.banner) === null || _a === void 0 ? void 0 : _a.dismiss(); }}>\n ${(x) => { var _a, _b, _c, _d; return ((_d = (_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.banner) === null || _c === void 0 ? void 0 : _c.dismissingAction) === null || _d === void 0 ? void 0 : _d.label) || 'Ignore'; }}\n </foundation-button>\n ${repeat((x) => { var _a, _b; return (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.banner.confirmingActions; }, html `\n <foundation-button\n slot=\"action\"\n appearance=\"lightweight\"\n @click=${(x, c) => {\n var _a;\n x === null || x === void 0 ? void 0 : x.action();\n (_a = c.parent) === null || _a === void 0 ? void 0 : _a.dismiss();\n}}\n >\n ${(x) => x.label}\n </foundation-button>\n `)}\n </foundation-banner>\n`;\n","import { __awaiter, __decorate } from \"tslib\";\nimport { observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { logger } from '../utils';\nimport { foundationErrorBannerTemplate as template } from './error-banner.template';\nexport const foundationErrorBannerShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n/**\n * @tagname %%prefix%%-error-banner\n */\nexport class ErrorBanner extends FoundationElement {\n connectedCallback() {\n super.connectedCallback();\n }\n /**\n * Dismiss the Error Banner from display.\n */\n dismiss() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield this.banner.dismiss();\n this.remove();\n }\n catch (e) {\n logger.error(e);\n }\n });\n }\n}\n__decorate([\n observable\n], ErrorBanner.prototype, \"error\", void 0);\n/**\n * The Foundation Error Banner\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-error-banner\\>\n */\nexport const foundationErrorBanner = ErrorBanner.compose({\n baseName: 'error-banner',\n template,\n shadowOptions: foundationErrorBannerShadowOptions,\n});\n","/**\n * @public\n * enum for different types of error boundary events\n */\nexport var ErrorBoundaryEvent;\n(function (ErrorBoundaryEvent) {\n ErrorBoundaryEvent[\"ERROR_BOUNDARY_EVENT\"] = \"error-boundary-event\";\n})(ErrorBoundaryEvent || (ErrorBoundaryEvent = {}));\n","import { LogLevel } from '@genesislcap/foundation-utils';\n/**\n * Retrieves the error details from an ErrorStructure object\n * @public\n * @param details - The ErrorStructure object\n * @returns The title and error details concatenated as a string, or default values ('Error: Something went wrong') if not present\n */\nexport const getErrorDetails = (details) => {\n var _a, _b;\n const title = (_a = details === null || details === void 0 ? void 0 : details.title) !== null && _a !== void 0 ? _a : 'Error';\n const errorDetails = (_b = details === null || details === void 0 ? void 0 : details.errorDetails) !== null && _b !== void 0 ? _b : 'Something went wrong';\n return `${title}: ${errorDetails}`;\n};\n/**\n * Retrieves the log level from an ErrorStructure object\n * @public\n * @param details - The ErrorStructure object\n * @returns The log level or the default value (LogLevel.Error) if not present\n */\nexport const getLoglevel = (details) => {\n var _a;\n return (details === null || details === void 0 ? void 0 : details.logLevel) || ((_a = details === null || details === void 0 ? void 0 : details.config) === null || _a === void 0 ? void 0 : _a.logLevel) || LogLevel.Error;\n};\n/**\n * Get/Create the error container in the DOM\n * @public\n * @param id - The id of the container\n * @param tagName - The tag name to create prefix for the design system provider\n * @returns\n */\nexport const getErrorContainer = (id, tagName) => {\n const tagPrefix = tagName.split('-')[0];\n let container = document.querySelector(`#${id}`);\n if (!container) {\n container = document.createElement('div');\n container.setAttribute('id', id);\n const dsProvider = document.createElement(`${tagPrefix}-design-system-provider`);\n dsProvider.appendChild(container);\n document.body.appendChild(dsProvider);\n }\n return container;\n};\n/**\n * Get the error banner anchor to attach the banner to\n * @public\n * @param element - The element to start searching from\n * @returns\n */\nexport const getErrorBannerAnchor = (element) => {\n var _a, _b;\n while (element && !(element instanceof ShadowRoot)) {\n const anchor = (_a = element === null || element === void 0 ? void 0 : element.getRootNode()) === null || _a === void 0 ? void 0 : _a.getElementById('error-banner-anchor');\n if (anchor) {\n anchor.style.position = 'relative';\n return anchor;\n }\n element = (_b = element === null || element === void 0 ? void 0 : element.getRootNode()) === null || _b === void 0 ? void 0 : _b.host;\n }\n return createErrorBannerContainer();\n};\nconst createErrorBannerContainer = () => {\n const anchor = document.createElement('div');\n anchor.setAttribute('id', 'error-banner-anchor');\n anchor.style.position = 'relative';\n document.body.insertBefore(anchor, document.body.firstChild);\n return anchor;\n};\n","import { createLogger } from '@genesislcap/foundation-utils';\nimport { showBanner } from './banner';\nimport { showDialog } from './dialog';\nimport { getErrorDetails, getLoglevel } from './error-util';\nimport { showNotification } from './notification';\nimport { showSnackbar } from './snackbar';\nconst logger = createLogger('foundation-error');\nconst errorTypeToComponentMap = {\n alert: (error) => {\n alert(getErrorDetails(error));\n },\n notification: showNotification,\n dialog: showDialog,\n snackbar: showSnackbar,\n banner: showBanner,\n};\n/**\n * Shows the error in the appropriate component\n * @public\n * @param error - The ErrorStructure object\n * @param tagName - The tag name to create prefix for the design system provider *\n * @param errorBoundary - The error boundary element\n * @returns\n * */\nexport const showError = (error, tagName, errorBoundary) => {\n logger.log({\n message: getErrorDetails(error),\n level: getLoglevel(error),\n });\n const keys = Object.keys((error === null || error === void 0 ? void 0 : error.config) || {});\n keys.forEach((key) => {\n if (errorTypeToComponentMap[key]) {\n errorTypeToComponentMap[key](error, tagName, errorBoundary);\n }\n });\n};\n","import { getErrorContainer } from '../error-util';\n/**\n * Shows the error notification\n * @internal\n * @param error - The ErrorStructure object\n * @param tagName - The tag name to create prefix for the design system provider & error component\n * @returns\n * */\nexport const showNotification = (error, tagName) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;\n const tagPrefix = tagName.split('-')[0];\n const container = getErrorContainer('notify-container', tagName);\n if (container) {\n container.style.position = 'fixed';\n container.style.top = '0';\n container.style.right = '0';\n }\n const toastNotify = document.createElement(`${tagPrefix}-toast`);\n const errorTitle = document.createElement('div');\n errorTitle.setAttribute('slot', 'top');\n errorTitle.textContent = (_a = error.title) !== null && _a !== void 0 ? _a : 'Error';\n const errorDetails = document.createElement('div');\n errorDetails.setAttribute('slot', 'content');\n errorDetails.textContent = (error === null || error === void 0 ? void 0 : error.errorDetails) || '';\n const errorDate = document.createElement('div');\n errorDate.setAttribute('slot', 'date');\n errorDate.textContent = new Date().toLocaleTimeString();\n toastNotify.setAttribute('notify', ((_c = (_b = error === null || error === void 0 ? void 0 : error.config) === null || _b === void 0 ? void 0 : _b.notification) === null || _c === void 0 ? void 0 : _c.type) || '');\n ((_e = (_d = error === null || error === void 0 ? void 0 : error.config) === null || _d === void 0 ? void 0 : _d.notification) === null || _e === void 0 ? void 0 : _e.autoClose)\n ? toastNotify.setAttribute('auto-close', `${(_g = (_f = error === null || error === void 0 ? void 0 : error.config) === null || _f === void 0 ? void 0 : _f.notification) === null || _g === void 0 ? void 0 : _g.autoClose}`)\n : '';\n ((_j = (_h = error === null || error === void 0 ? void 0 : error.config) === null || _h === void 0 ? void 0 : _h.notification) === null || _j === void 0 ? void 0 : _j.closeTimeout)\n ? toastNotify.setAttribute('close-timeout', `${(_l = (_k = error === null || error === void 0 ? void 0 : error.config) === null || _k === void 0 ? void 0 : _k.notification) === null || _l === void 0 ? void 0 : _l.closeTimeout}`)\n : '';\n toastNotify.appendChild(errorTitle);\n toastNotify.appendChild(errorDetails);\n toastNotify.appendChild(errorDate);\n container.appendChild(toastNotify);\n};\n","import { getErrorContainer } from '../error-util';\n/**\n * Shows the error dialog\n * @internal\n * @param error - The ErrorStructure object\n * @param tagName - The tag name to create prefix for the design system provider & error component\n * @returns\n * */\nexport const showDialog = (error, tagName) => {\n const tagPrefix = tagName.split('-')[0];\n const dialog = document.createElement(`${tagPrefix}-error-dialog`);\n const container = getErrorContainer('dialog-container', tagName);\n container.appendChild(dialog);\n dialog.error = error;\n dialog.show();\n};\n","import { getErrorContainer } from '../error-util';\n/**\n * Shows the snackbar\n * @internal\n * @param error - The ErrorStructure object\n * @param tagName - The tag name to create prefix for the design system provider & error component\n * @returns\n * */\nexport const showSnackbar = (error, tagName) => {\n const tagPrefix = tagName.split('-')[0];\n const snackbar = document.createElement(`${tagPrefix}-snackbar`);\n const container = getErrorContainer('snack-container', tagName);\n container.appendChild(snackbar);\n snackbar.error = error;\n};\n","import { getErrorBannerAnchor } from '../error-util';\n/**\n * Shows the error dialog\n * @public\n * @param error - The ErrorStructure object\n * @param tagName - The tag name to create prefix for the design system provider & error component\n * @returns\n * */\nexport const showBanner = (error, tagName, errorBoundary) => {\n var _a;\n const tagPrefix = tagName.split('-')[0];\n const banner = document.createElement(`${tagPrefix}-error-banner`);\n const container = getErrorBannerAnchor(errorBoundary);\n if (((_a = container === null || container === void 0 ? void 0 : container.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {\n banner.style.position = 'absolute';\n banner.style.top = '0';\n banner.style.left = '0';\n banner.style.width = '100%';\n }\n container.appendChild(banner);\n banner.error = error;\n};\n","import { html, ref } from '@microsoft/fast-element';\nexport const foundationErrorBoundaryTemplate = html `\n <template ${ref('errorBoundary')}>\n <slot></slot>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { ErrorBoundaryEvent, showError } from '@genesislcap/foundation-errors';\nimport { createLogger } from '@genesislcap/foundation-utils';\nimport { observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationErrorBoundaryTemplate as template } from './error-boundary.template';\nexport const foundationErrorBoundaryShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n/**\n * @tagname %%prefix%%-error-boundary\n */\nexport class ErrorBoundary extends FoundationElement {\n constructor() {\n super(...arguments);\n this.logger = createLogger('error-boundary');\n }\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(ErrorBoundaryEvent.ERROR_BOUNDARY_EVENT, (e) => {\n e.stopImmediatePropagation();\n showError(e.detail, this.tagName, this.errorBoundary);\n });\n }\n}\n__decorate([\n observable\n], ErrorBoundary.prototype, \"errorBoundary\", void 0);\n/**\n * The Foundation Error Boundary\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-error-boundary\\>\n */\nexport const foundationErrorBoundary = ErrorBoundary.compose({\n baseName: 'error-boundary',\n template,\n shadowOptions: foundationErrorBoundaryShadowOptions,\n});\n","import { css } from '@microsoft/fast-element';\nexport const foundationErrorDialogStyles = css `\n :host {\n --design-unit: 3;\n --dialog-max-width: 358px;\n --dialog-min-width: 358px;\n --dialog-max-height: 128px;\n --error-details-min-height: 40px;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--error-details-min-height);\n }\n`;\n","import { html, ref, repeat } from '@microsoft/fast-element';\nexport const getErrorDialogTemplate = (prefix) => html `\n <${prefix}-dialog show-close-icon=\"false\" ${ref('dialog')}>\n <h2 slot=\"top\" class=\"title\">${(x) => { var _a; return (_a = x.error) === null || _a === void 0 ? void 0 : _a.title; }}</h2>\n <div class=\"details\">${(x) => { var _a; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || 'Place holder for error message'; }}</div>\n <${prefix}-button slot=\"bottom\" appearance=\"lightweight\" @click=${(x) => {\n x.dismiss();\n}}>\n ${(x) => { var _a, _b, _c, _d; return ((_d = (_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.dialog) === null || _c === void 0 ? void 0 : _c.dismissingAction) === null || _d === void 0 ? void 0 : _d.label) || 'Ignore'; }}\n </${prefix}-button>\n ${repeat((x) => { var _a, _b; return (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.dialog.confirmingActions; }, html `\n <${prefix}-button\n slot=\"bottom\"\n appearance=\"lightweight\"\n @click=${(x, c) => {\n x === null || x === void 0 ? void 0 : x.action();\n c.parent.closeDialog();\n}}\n >\n ${(x) => x.label}\n </${prefix}-button>\n `)}\n </${prefix}-dialog>\n`;\nexport const errorDialogTemplate = html `\n ${(x) => getErrorDialogTemplate(x.tagName.toLowerCase().split('-')[0])}\n`;\n","import { __decorate } from \"tslib\";\nimport { observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { logger } from '../utils';\nimport { foundationErrorDialogStyles as styles } from './error-dialog.styles';\nimport { errorDialogTemplate as template } from './error-dialog.template';\nexport const foundationErrorDialogShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n/**\n * @tagname %%prefix%%-error-dialog\n */\nexport class ErrorDialog extends FoundationElement {\n connectedCallback() {\n super.connectedCallback();\n }\n /**\n * Show the Error Dialog.\n */\n show() {\n this.dialog.show();\n }\n /**\n * Dismiss the Error Dialog from display and calls the dismissing action.\n */\n dismiss() {\n var _a, _b, _c, _d;\n if ((_d = (_c = (_b = (_a = this.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.dialog) === null || _c === void 0 ? void 0 : _c.dismissingAction) === null || _d === void 0 ? void 0 : _d.action) {\n this.error.config.dialog.dismissingAction.action();\n }\n this.closeDialog();\n }\n /**\n * Dismiss the Error Dialog from display.\n */\n closeDialog() {\n try {\n this.dialog.close();\n this.remove();\n }\n catch (e) {\n logger.error(e);\n }\n }\n}\n__decorate([\n observable\n], ErrorDialog.prototype, \"error\", void 0);\n/**\n * The Foundation Error Dialog\n *\n * @public\n * @remarks\n * HTML Element: <foundation-error-dialog>\n */\nexport const foundationErrorDialog = ErrorDialog.compose({\n baseName: 'error-dialog',\n template,\n styles,\n shadowOptions: foundationErrorDialogShadowOptions,\n});\n","import { createLogger } from '@genesislcap/foundation-utils';\nexport const logger = createLogger('foundation-criteria');\n","/**\n * @internal\n */\nexport var Operator;\n(function (Operator) {\n Operator[\"AND\"] = \"&&\";\n Operator[\"OR\"] = \"||\";\n Operator[\"NOT\"] = \"!\";\n Operator[\"GT\"] = \">\";\n Operator[\"GE\"] = \">=\";\n Operator[\"LT\"] = \"<\";\n Operator[\"LE\"] = \"<=\";\n Operator[\"NE\"] = \"!=\";\n Operator[\"EQ\"] = \"==\";\n})(Operator || (Operator = {}));\n/**\n * Used to describe how Expressions are joined\n * @public\n */\nexport class Join {\n constructor(type) {\n this.$$operator = type;\n }\n static And() {\n return new Join(Operator.AND);\n }\n static Or() {\n return new Join(Operator.OR);\n }\n static Not() {\n return new Join(Operator.NOT);\n }\n static GreaterThan() {\n return new Join(Operator.GT);\n }\n static GreaterThanOrEqual() {\n return new Join(Operator.GE);\n }\n static LessThan() {\n return new Join(Operator.LT);\n }\n static LessThanOrEqual() {\n return new Join(Operator.LE);\n }\n static NotEqual() {\n return new Join(Operator.NE);\n }\n static Equal() {\n return new Join(Operator.EQ);\n }\n get operator() {\n return this.$$operator;\n }\n}\n","/* eslint-disable @typescript-eslint/no-magic-numbers */\nimport { Serialisers } from './serialisers';\nexport const interleave = (source, obj) => source\n .flat()\n .flatMap((value, index, array) => (array.length - 1 !== index ? [value, obj] : value));\nexport const ensureArray = (value) => (Array.isArray(value) ? value : [value]);\nexport const isExpressionParams = (value) => ((Array.isArray(value) && value.length === 3) ||\n (value.length === 4 && Array.isArray(value[0])) ||\n typeof value[0] === 'string') &&\n typeof value[1] === 'function' &&\n Object.values(Serialisers).includes(value[1]);\n","import { logger } from './logger';\nimport { Join } from './types';\nimport { interleave } from './utils';\nconst DEFAULT_GROUP = 'default';\n/**\n * Builder class used to generate query criteria\n *\n * @public\n */\nexport class CriteriaBuilder {\n constructor() {\n this.expressions = {};\n this.And = (expression, options = {}) => this.withExpression(expression, options, Join.And());\n this.Or = (expression, options = {}) => this.withExpression(expression, options, Join.Or());\n this.Not = (expression, options = {}) => this.withExpression(expression, options, Join.Not());\n }\n withExpression(expression, options = {}, groupJoin = Join.And()) {\n const { condition, join: optionsJoin, groupName } = options;\n const addExpressionToGroup = (e, gName = DEFAULT_GROUP) => {\n var _a;\n const prev = (_a = this.expressions[gName]) !== null && _a !== void 0 ? _a : [];\n this.expressions[gName] = [\n ...prev,\n { join: groupJoin || optionsJoin, condition, expression: e },\n ];\n };\n // When expression is array of expressions\n if (Array.isArray(expression)) {\n // And a join option is present\n if (optionsJoin) {\n // Remove inline joins\n const withoutInline = expression.filter((e) => {\n const isJoin = e instanceof Join;\n if (isJoin) {\n logger.warn('Inline joins will be discarded when join is defined in ExpressionOptions');\n }\n return !isJoin;\n });\n if (groupName) {\n // Add every expression to the group\n withoutInline.forEach((exp) => {\n addExpressionToGroup(exp, groupName);\n });\n }\n else {\n // Merge join specified in options with expressions and add to group\n const joined = interleave(withoutInline, optionsJoin);\n addExpressionToGroup(joined, DEFAULT_GROUP);\n }\n }\n else {\n addExpressionToGroup(expression, DEFAULT_GROUP);\n }\n }\n else {\n addExpressionToGroup(expression, expression.group);\n }\n return this;\n }\n build(outputFn) {\n const parsedExpressions = Object.entries(this.expressions).reduce((acc, [groupName, expressions]) => (Object.assign(Object.assign({}, acc), { [groupName]: `(${expressions\n .filter(({ condition }) => (condition ? condition() : true))\n .map(({ expression, join }, index, arr) => this.parseExpression(expression, arr[index - 1], join))\n .join('')})` })), {});\n return outputFn\n ? outputFn(parsedExpressions)\n : `(${Object.values(parsedExpressions).join(' && ')})`;\n }\n reset() {\n this.expressions = {};\n }\n parseExpression(expression, previous, join) {\n const result = [];\n if (join && !!previous) {\n result.push(` ${join.operator} `);\n }\n if (Array.isArray(expression)) {\n expression.forEach((e, idx, arr) => {\n if (e instanceof Join) {\n const prev = arr[idx - 1];\n if (prev instanceof Join) {\n throw new Error('Adjacent Join operations detected');\n }\n }\n });\n result.push(`(${expression.map((e) => this.parseExpression(e, undefined)).join('')})`);\n }\n else if (expression instanceof Join) {\n result.push(` ${expression.operator} `);\n }\n else if (expression) {\n result.push(expression.serialiser(expression));\n }\n return result.join('');\n }\n}\n","import { Operator } from './types';\nconst getValue = (e) => {\n const { value } = e;\n if (e.valueGetter) {\n return e.valueGetter(value);\n }\n else if (typeof value === 'function') {\n return value(e);\n }\n else if (Array.isArray(value)) {\n return value.join(',');\n }\n else if (typeof value === 'string') {\n return `\"${value}\"`;\n }\n return value;\n};\nconst createSerialiser = (operator) => (e) => `${e.field} ${operator} ${getValue(e)}`;\n/**\n * Functions to to serialise an Expression to a string\n * @public\n */\nexport const Serialisers = {\n AND: (e) => createSerialiser(Operator.AND)(e),\n OR: (e) => createSerialiser(Operator.OR)(e),\n NOT: (e) => createSerialiser(Operator.NOT)(e),\n GT: (e) => createSerialiser(Operator.GT)(e),\n GE: (e) => createSerialiser(Operator.GE)(e),\n LT: (e) => createSerialiser(Operator.LT)(e),\n LE: (e) => createSerialiser(Operator.LE)(e),\n NE: (e) => createSerialiser(Operator.NE)(e),\n EQ: (e) => createSerialiser(Operator.EQ)(e),\n equals: (e) => `${e.field}.equals(${getValue(e)})`,\n equalsIgnoreCase: (e) => `${e.field}.equalsIgnoreCase(${getValue(e)})`,\n contains: (e) => `Expr.contains(${e.field}, ${getValue(e)})`,\n fieldContains: (e) => `${e.field}.contains(${getValue(e)})`,\n containsIgnoreCase: (e) => `Expr.containsIgnoreCase(${e.field}, ${getValue(e)})`,\n dateIsEqual: (e) => `Expr.dateIsEqual(${e.field}, ${getValue(e)})`,\n dateIsGreaterEqual: (e) => `Expr.dateIsGreaterEqual(${e.field}, ${getValue(e)})`,\n dateIsLessEqual: (e) => `Expr.dateIsLessEqual(${e.field}, ${getValue(e)})`,\n};\n","import { Serialisers } from './serialisers';\n/**\n * @public\n */\nexport class ExpressionBuilder {\n constructor(opts) {\n this.serialiser = Serialisers.EQ;\n this.build = () => {\n if (!this.field) {\n throw new Error(`Missing required param 'field'`);\n }\n if (this.value === undefined) {\n throw new Error(`Missing required param 'value'`);\n }\n if (!this.serialiser) {\n throw new Error(`Missing required param 'serialise'`);\n }\n return {\n field: this.field,\n value: this.value,\n serialiser: this.serialiser,\n params: this.params,\n valueGetter: this.valueGetter,\n group: this.group,\n };\n };\n if (opts) {\n this.field = opts.field;\n this.value = opts.value;\n this.serialiser = opts.serialiser;\n this.params = opts.params;\n this.valueGetter = opts.valueGetter;\n this.group = opts.group;\n }\n }\n withField(field) {\n this.field = field;\n return this;\n }\n withValue(value) {\n this.value = value;\n return this;\n }\n withSerialiser(serialiser) {\n this.serialiser = serialiser;\n return this;\n }\n withParams(params) {\n this.params = params;\n return this;\n }\n withValueGetter(valueGetter) {\n this.valueGetter = valueGetter;\n return this;\n }\n withGroup(group) {\n this.group = group;\n return this;\n }\n}\n","import { css } from '@microsoft/fast-element';\nexport const foundationFileUploadStyles = css `\n /* Host */\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .file-selection {\n display: flex;\n align-items: end;\n justify-content: start;\n padding-bottom: 10px;\n }\n\n .file-selection :nth-last-child(-n + 2) {\n margin: 0;\n margin-left: 10px;\n }\n\n input[type='file'] {\n display: none;\n }\n\n .clear-icon {\n cursor: pointer;\n }\n\n .uploader-grid {\n overflow-y: auto;\n }\n\n .file-name-input {\n flex: 1;\n }\n\n .download-button-container {\n display: flex;\n }\n\n .download-button {\n height: 22px;\n }\n\n fast-data-grid-row {\n align-items: center;\n }\n`;\n","import { html, ref, when } from '@microsoft/fast-element';\nexport const getPrefixedFileUpload = (prefix) => html `\n<template>\n <div class=\"file-selection\">\n <input type=\"file\" multiple ${ref('fileInput')} \n @change=${(x, c) => x.onInputChange(c.event)} :accept=\"${(x) => x.accept}\"/>\n <${prefix}-text-field readOnly type=\"text\" id=\"fileName\" part=\"file-name-input\" class=\"file-name-input\"\n :label=\"${(x) => x.label}\" \n :value=\"${(x) => x.fileName}\">\n ${(x) => x.label} \n ${when((x) => x.fileName, html `\n <${prefix}-icon slot=\"end\" class=\"clear-icon\" name=\"xmark\" \n @click=${(x) => x.clearSelection()}></${prefix}-icon>\n `)}\n </${prefix}-text-field>\n\n <${prefix}-button @click=${(x) => x.handleClick()} part=\"select-file-button\">Browse</${prefix}-button>\n <${prefix}-button @click=${(x) => x.handleFileUpload()} part=\"upload-file-button\"\n :disabled=\"${(x) => !x.fileName}\" >Upload</${prefix}-button>\n </div>\n <div class=\"uploader-grid\">\n <${prefix}-data-grid generate-header=\"sticky\" part=\"uploaded-files-grid\"\n :rowsData=\"${(x) => x.uploadedFilesList}\"\n :columnDefinitions=\"${(x) => x.filesGridColumnDefinitions}\"> \n </${prefix}-data-grid>\n </div>\n</template>\n`;\nexport const foundationFileUploadTemplate = html `\n ${(x) => getPrefixedFileUpload(x.tagName.toLowerCase().split('-')[0])}\n`;\n","import { logger } from '../utils';\nexport const createFormData = (files) => {\n const formData = new FormData();\n files.forEach((file) => {\n formData.append(file.name, file);\n });\n return formData;\n};\nexport const uploadFiles = (url, formData, authToken) => {\n const headers = new Headers();\n headers.append('SESSION_AUTH_TOKEN', authToken);\n return fetch(url, {\n method: 'POST',\n body: formData,\n headers,\n }).then((response) => response.json().then((data) => {\n return data;\n }));\n};\nexport const downloadFile = (url, filename, authToken) => {\n const headers = new Headers();\n headers.append('SESSION_AUTH_TOKEN', authToken);\n fetch(url, {\n method: 'GET',\n headers,\n })\n .then((res) => res.blob())\n .then((blob) => {\n const objectUrl = window.URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = objectUrl;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n a.remove();\n })\n .catch((error) => {\n logger.error(error);\n });\n};\n","import { __awaiter, __decorate } from \"tslib\";\nimport { logger, Session, Connect } from '@genesislcap/foundation-comms';\nimport { CriteriaBuilder, ExpressionBuilder } from '@genesislcap/foundation-criteria';\nimport { formatDateTimeTimestamp } from '@genesislcap/foundation-utils';\nimport { attr, html, when, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationFileUploadStyles as styles } from './file-upload.styles';\nimport { foundationFileUploadTemplate as template } from './file-upload.template';\nimport { createFormData, downloadFile, uploadFiles } from './file-upload.utils';\nconst IMAGE_FILE_TYPES = ['image/png', 'image/bmp', 'image/gif', 'image/jpeg', 'image/jpg'];\nconst TEXT_FILE_TYPES = ['text/plain', 'text/csv'];\nconst OFFICE_FILE_TYPES = [\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/pdf',\n];\nconst FILE_SIZE_LIMIT = 104857600; // 100MiB as bytes\nconst cellTemplateColumn = html `\n ${when((x) => x.rowData, html `\n ${(x) => x.columnDefinition['type'] === 'DATETIME'\n ? formatDateTimeTimestamp(x.rowData[x.columnDefinition.columnDataKey])\n : x.rowData[x.columnDefinition.columnDataKey]}\n `)}\n`;\n/**\n * @tagname %%prefix%%-file-upload\n */\nexport class FileUpload extends FoundationElement {\n constructor() {\n super(...arguments);\n this.acceptedFormats = [];\n this.accept = '';\n this.fileSizeLimitBytes = FILE_SIZE_LIMIT;\n this.uploadedFilesResourceName = 'ALL_FILE_ATTACHMENTS';\n this.uploadEventName = 'gwf/attachment-handler/upload';\n this.gridFields = ''; // list of fieldNames to show in grid\n this.fileName = '';\n this.uploadedFilesList = [];\n this.filesGridColumnDefinitions = [];\n }\n acceptChanged() {\n let acceptedValues = [];\n if (this.accept.length > 0) {\n this.accept.split(',').forEach((el) => {\n if (el === 'image/*') {\n acceptedValues = [...acceptedValues, ...IMAGE_FILE_TYPES];\n }\n else if (el === 'office/*') {\n acceptedValues = [...acceptedValues, ...OFFICE_FILE_TYPES];\n }\n else if (el === 'text/*') {\n acceptedValues = [...acceptedValues, ...TEXT_FILE_TYPES];\n }\n else {\n acceptedValues.push(el);\n }\n });\n }\n this.acceptedFormats = acceptedValues;\n }\n fieldNameChanged() {\n this.setupGrid();\n }\n entityIdChanged() {\n this.setupGrid();\n }\n connectedCallback() {\n const _super = Object.create(null, {\n connectedCallback: { get: () => super.connectedCallback }\n });\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n _super.connectedCallback.call(this);\n if (!((_a = this.filesGridColumnDefinitions) === null || _a === void 0 ? void 0 : _a.length))\n this.setColumnDefs();\n });\n }\n setupGrid() {\n if (this.entityId !== undefined && this.fieldName !== undefined) {\n this.gridCriteria = new CriteriaBuilder()\n .withExpression(new ExpressionBuilder().withField(this.fieldName).withValue(this.entityId).build())\n .build();\n this.setRowData();\n }\n }\n handleStreamRowOperation(data) {\n let index;\n for (const row of data.ROW) {\n if (!row.DETAILS)\n continue;\n switch (row.DETAILS.OPERATION) {\n case 'INSERT':\n this.uploadedFilesList.unshift(row);\n break;\n case 'MODIFY':\n index = this.uploadedFilesList.findIndex((e) => e.FILE_ATTACHMENT_ID === row.FILE_ATTACHMENT_ID);\n this.uploadedFilesList.splice(index, 1, row);\n break;\n case 'DELETE':\n index = this.uploadedFilesList.findIndex((e) => e.FILE_ATTACHMENT_ID === row.FILE_ATTACHMENT_ID);\n this.uploadedFilesList.splice(index, 1);\n break;\n default:\n logger.error(`Unsupported operation type: ${row.DETAILS.OPERATION}`);\n }\n }\n }\n setRowData() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.connect.stream(this.uploadedFilesResourceName, (response) => {\n var _a;\n if (response.SEQUENCE_ID === 1) {\n this.uploadedFilesList = (_a = response.ROW) !== null && _a !== void 0 ? _a : [];\n }\n else {\n this.handleStreamRowOperation(response);\n }\n }, (error) => {\n logger.error(error);\n }, { CRITERIA_MATCH: this.gridCriteria });\n });\n }\n setColumnDefs() {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const metadata = yield this.connect.getMetadata(this.uploadedFilesResourceName);\n const columnDefs = [];\n if (this.gridFields.length > 0) {\n this.gridFields.split(' ').forEach((gridField) => {\n var _a;\n const field = (_a = metadata.FIELD) === null || _a === void 0 ? void 0 : _a.find((metadatField) => metadatField.NAME === gridField);\n if (field) {\n columnDefs.push(this.getColumnObject(field));\n }\n else if (gridField === 'DOWNLOAD' && this.downloadEventName) {\n columnDefs.push(this.getDownloadColumn());\n }\n });\n }\n else {\n (_a = metadata.FIELD) === null || _a === void 0 ? void 0 : _a.forEach((field) => {\n columnDefs.push(this.getColumnObject(field));\n });\n if (this.downloadEventName) {\n columnDefs.push(this.getDownloadColumn());\n }\n }\n this.filesGridColumnDefinitions = columnDefs;\n });\n }\n getDownloadColumn() {\n const prefix = this.tagName.toLowerCase().split('-')[0];\n return {\n columnDataKey: 'FILE_NAME',\n title: 'File',\n cellTemplate: html `\n <template>\n <div class=\"download-button-container\">\n <${prefix}-button\n class=\"download-button\"\n @click=\"${(x) => this.handleFileDownload(x.rowData)}\"\n >\n DOWNLOAD\n </${prefix}-button>\n </div>\n </template>\n `,\n };\n }\n getColumnObject(column) {\n return {\n columnDataKey: column.NAME,\n title: column.NAME.toLowerCase()\n .split('_')\n .map((el) => el.charAt(0).toUpperCase() + el.slice(1))\n .join(' '),\n type: column.TYPE,\n cellTemplate: cellTemplateColumn,\n };\n }\n handleClick() {\n this.fileInput.value = null;\n this.fileInput.click();\n }\n onInputChange(e) {\n var _a, _b;\n const files = Array.from((_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : []);\n this.onFilesSelected(files);\n }\n onFilesSelected(files) {\n if (files.length > 0) {\n if (this.acceptedFormats.length > 0) {\n for (const file of files) {\n if (!this.acceptedFormats.includes(file.type)) {\n alert(`Not a valid file type. Accepted Formats are ${this.accept}`);\n return;\n }\n if (file.size > this.fileSizeLimitBytes) {\n alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`);\n return;\n }\n }\n }\n this.selectedFiles = files;\n this.fileName = this.selectedFiles.map((e) => e.name.trim()).join();\n }\n }\n handleFileUpload() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const formData = createFormData(this.selectedFiles);\n formData.append(this.uploadKey, this.entityId);\n const data = yield uploadFiles(this.uploadEventName, formData, this.session.getItem('authToken', 'session'));\n if (data.ERROR) {\n logger.error(data.ERROR);\n this.$emit('errorOut', data.ERROR);\n return;\n }\n logger.info(data);\n this.clearSelection();\n }\n catch (ex) {\n logger.error(ex);\n }\n });\n }\n handleFileDownload(rowData) {\n downloadFile(this.downloadEventName(rowData), rowData.FILE_NAME, this.session.getItem('authToken', 'session'));\n }\n clearSelection() {\n this.fileName = '';\n this.selectedFiles = [];\n }\n}\n__decorate([\n observable\n], FileUpload.prototype, \"gridCriteria\", void 0);\n__decorate([\n Connect\n], FileUpload.prototype, \"connect\", void 0);\n__decorate([\n Session\n], FileUpload.prototype, \"session\", void 0);\n__decorate([\n attr\n], FileUpload.prototype, \"label\", void 0);\n__decorate([\n attr\n], FileUpload.prototype, \"accept\", void 0);\n__decorate([\n attr({ attribute: 'file-size-limit-bytes' })\n], FileUpload.prototype, \"fileSizeLimitBytes\", void 0);\n__decorate([\n attr({ attribute: 'uploaded-files-resource-name' })\n], FileUpload.prototype, \"uploadedFilesResourceName\", void 0);\n__decorate([\n attr({ attribute: 'upload-event-name' })\n], FileUpload.prototype, \"uploadEventName\", void 0);\n__decorate([\n attr({ attribute: 'field-name' })\n], FileUpload.prototype, \"fieldName\", void 0);\n__decorate([\n attr({ attribute: 'entity-id' })\n], FileUpload.prototype, \"entityId\", void 0);\n__decorate([\n attr({ attribute: 'upload-key' })\n], FileUpload.prototype, \"uploadKey\", void 0);\n__decorate([\n attr({ attribute: 'grid-fields' })\n], FileUpload.prototype, \"gridFields\", void 0);\n__decorate([\n observable\n], FileUpload.prototype, \"fileName\", void 0);\n__decorate([\n observable\n], FileUpload.prototype, \"uploadedFilesList\", void 0);\n__decorate([\n observable\n], FileUpload.prototype, \"filesGridColumnDefinitions\", void 0);\n// explicitly declaring for extensibility\nexport const foundationFileUploadShadowOptions = undefined;\nexport const defaultFileUploadConfig = {};\n/**\n * The Foundation File Upload\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-file-upload\\>\n */\nexport const foundationFileUpload = FileUpload.compose(Object.assign({ baseName: 'file-upload', styles,\n template, shadowOptions: foundationFileUploadShadowOptions }, defaultFileUploadConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationFilterStyles = css `\n .filter-wrapper {\n border: 1px solid gray;\n border-radius: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 1px);\n }\n\n .close-icon {\n display: flex;\n place-content: center;\n align-items: center;\n flex-direction: column;\n align-content: center;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n padding: calc(var(--design-unit) * 1px);\n border: 1px solid transparent;\n border-radius: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon,\n .cloase-icon svg path {\n transition-property: all;\n transition-timing-function: linear;\n transition-duration: 300ms;\n }\n\n .close-icon:hover {\n border-color: red;\n background: rgb(255 0 0 / 25%);\n }\n\n .close-icon:hover svg path {\n fill: red;\n }\n\n .flex-row {\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: space-between;\n align-items: center;\n }\n\n .flex-row zero-text-field,\n .flex-row zero-select,\n .flex-row foundation-text-field,\n .flex-row foundation-select {\n flex: 1;\n }\n`;\n","import { sync } from '@genesislcap/foundation-utils';\nimport { html, ref, repeat } from '@microsoft/fast-element';\nimport { closeIcon } from '../_common/icons';\nconst closeIconTemplate = html `\n <div class=\"close-icon\" @click=${(x) => x.clear()}>${closeIcon()}</div>\n`;\nconst textFilterTemplate = html `\n <div class=\"flex-row\">\n <div>${(x) => x.label}</div>\n ${closeIconTemplate}\n </div>\n <div class=\"flex-row\">\n <foundation-text-field\n ${ref('textFilterField')}\n type=\"text\"\n :value=${sync((x) => x.textFilter)}\n />\n </div>\n`;\nconst numberFilterTemplate = html `\n <div class=\"flex-row\">\n <div>${(x) => x.label}</div>\n ${closeIconTemplate}\n </div>\n <div class=\"flex-row\">\n <foundation-text-field\n ${ref('numFilterFieldMin')}\n type=\"number\"\n :value=${sync((x) => x.numFilterMin)}\n placeholder=\"min\"\n ></foundation-text-field>\n <foundation-text-field\n ${ref('numFilterFieldMax')}\n type=\"number\"\n :value=${sync((x) => x.numFilterMax)}\n placeholder=\"max\"\n ></foundation-text-field>\n </div>\n`;\nconst dateFilterTemplate = html `\n <div class=\"flex-row\">\n <div>${(x) => x.label}</div>\n ${closeIconTemplate}\n </div>\n <div class=\"flex-row\">\n <foundation-text-field\n ${ref('dateFilterFieldMin')}\n type=\"date\"\n :value=${sync((x) => x.dateFilterMin)}\n ></foundation-text-field>\n <foundation-text-field\n ${ref('dateFilterFieldMax')}\n type=\"date\"\n :value=${sync((x) => x.dateFilterMax)}\n ></foundation-text-field>\n </div>\n`;\nfunction targetValue(ctx) {\n var _a, _b, _c;\n return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.event) === null || _a === void 0 ? void 0 : _a.target) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 'all';\n}\nconst booleanFilterOptions = [\n { name: 'All', value: 'all', selected: true },\n { name: 'True', value: 'true' },\n { name: 'False', value: 'false' },\n { name: 'N/A', value: 'null' },\n];\nconst booleanFilterTemplate = html `\n <div class=\"flex-row\">\n <div>${(x) => x.label}</div>\n ${closeIconTemplate}\n </div>\n <div class=\"flex-row\">\n <foundation-select @change=\"${(x, c) => x.onBooleanFilterSelection(targetValue(c))}}\">\n ${repeat(() => booleanFilterOptions, html `\n <foundation-option value=\"${(x) => x.value}\" selected=\"${(x) => x.selected}\">\n ${(x) => x.name}\n </foundation-option>\n `)}\n </foundation-select>\n </div>\n`;\nconst enumFilterTemplate = html `\n <div class=\"flex-row\">\n <div>${(x) => x.label}</div>\n ${closeIconTemplate}\n </div>\n <div class=\"flex-row\">\n <zero-select @change=\"${(x, c) => x.onEnumFilterSelection(targetValue(c))}}\">\n ${repeat((x) => x.enumFilterOptions, html `\n <zero-option value=\"${(x) => x.value}\" selected=\"${(x) => x.selected}\">\n ${(x) => x.name}\n </zero-option>\n `)}\n </zero-select>\n </div>\n`;\nconst selectTemplate = (x) => {\n switch (x.type) {\n case 'number':\n return numberFilterTemplate;\n case 'date':\n return dateFilterTemplate;\n case 'boolean':\n return booleanFilterTemplate;\n case 'enum':\n return enumFilterTemplate;\n default:\n return textFilterTemplate;\n }\n};\nexport const foundationFilterTemplate = html `\n <div class=\"filter-wrapper\">${(x) => selectTemplate(x)}</div>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationFilterStyles as styles } from './filter.styles';\nimport { foundationFilterTemplate as template } from './filter.template';\nexport var FilterEvents;\n(function (FilterEvents) {\n FilterEvents[\"change\"] = \"filter-changed\";\n FilterEvents[\"clear\"] = \"filter-cleared\";\n})(FilterEvents || (FilterEvents = {}));\n/**\n * @tagname %%prefix%%-filter\n */\nexport class Filter extends FoundationElement {\n constructor() {\n super(...arguments);\n this.type = 'text';\n this.textFilter = '';\n this.enumFilterOptions = [{ name: 'All', value: 'all', selected: true }];\n }\n textFilterChanged(oldCriteria, newCriteria) {\n if (!(newCriteria === null || newCriteria === void 0 ? void 0 : newCriteria.length)) {\n // treat empty string as clear\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n target: this.target,\n });\n return;\n }\n const newFilter = `Expr.containsIgnoreCase(${this.fieldName},'${newCriteria}')`;\n this.$emit(FilterEvents.change, {\n fieldName: this.fieldName,\n filter: newFilter,\n target: this.target,\n });\n }\n numFilterMinChanged(oldMin, newMin) {\n this.numFilterMin = Number.isFinite(Number(newMin)) ? Number(newMin) : undefined;\n this.handleNumericFilter(this.numFilterMin, this.numFilterMax);\n }\n numFilterMaxChanged(oldMax, newMax) {\n this.numFilterMax = Number.isFinite(Number(newMax)) ? Number(newMax) : undefined;\n this.handleNumericFilter(this.numFilterMin, this.numFilterMax);\n }\n handleNumericFilter(min, max) {\n if (!Number.isFinite(min) && !Number.isFinite(max)) {\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n target: this.target,\n });\n return;\n }\n const minFilter = `${this.fieldName} >= ${min}`;\n const maxFilter = `${this.fieldName} <= ${max}`;\n const newFilter = !Number.isFinite(min)\n ? maxFilter\n : !Number.isFinite(max)\n ? minFilter\n : `(${minFilter} && ${maxFilter})`;\n this.$emit(FilterEvents.change, {\n fieldName: this.fieldName,\n filter: newFilter,\n target: this.target,\n });\n }\n /**\n * Example: 1634083200000 -> '20211013-00:00:00'\n * @param epoch ms since unix epoch\n * @returns date string compatible with genesis Expr filters\n */\n formatDate(epoch) {\n if (!Number.isFinite(epoch))\n return undefined;\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n return new Date(epoch).toISOString().slice(0, 19).replace(/-/g, '').replace('T', '-');\n }\n dateFilterMinChanged(oldMin, newMin) {\n this.dateMinMS = Date.parse(newMin);\n this.handleDateFilter(this.dateMinMS, this.dateMaxMS);\n }\n dateFilterMaxChanged(oldMax, newMax) {\n this.dateMaxMS = Date.parse(newMax);\n this.handleDateFilter(this.dateMinMS, this.dateMaxMS);\n }\n handleDateFilter(min, max) {\n if (!Number.isFinite(min) && !Number.isFinite(max)) {\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n });\n return;\n }\n const minFilter = `Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(min)}')`;\n const maxFilter = `Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(max)}')`;\n const newFilter = !Number.isFinite(min)\n ? maxFilter\n : !Number.isFinite(max)\n ? minFilter\n : `(${minFilter} && ${maxFilter})`;\n this.$emit(FilterEvents.change, {\n fieldName: this.fieldName,\n filter: newFilter,\n target: this.target,\n });\n }\n connectedCallback() {\n var _a;\n super.connectedCallback();\n if ((_a = this.enumOptions) === null || _a === void 0 ? void 0 : _a.length) {\n const delimiter = this.enumOptions.includes('|') ? '|' : ','; // TODO: confirm delimiter\n const newOptions = this.enumOptions\n .split(delimiter)\n .map((opt) => ({ name: opt, value: opt }));\n this.enumFilterOptions = [{ name: 'All', value: 'all', selected: true }, ...newOptions];\n }\n }\n clear() {\n switch (this.type) {\n case 'number':\n this.numFilterFieldMin.value = undefined;\n this.numFilterFieldMax.value = undefined;\n this.numFilterMin = undefined;\n this.numFilterMax = undefined;\n break;\n case 'date':\n this.dateFilterFieldMin.value = '';\n this.dateFilterFieldMax.value = '';\n this.dateMinMS = NaN;\n this.dateMaxMS = NaN;\n break;\n case 'text':\n this.textFilterField.value = '';\n }\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n target: this.target,\n });\n }\n onBooleanFilterSelection(selection) {\n if (!selection || selection === 'all') {\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n target: this.target,\n });\n return;\n }\n this.$emit(FilterEvents.change, {\n fieldName: this.fieldName,\n filter: `${this.fieldName} == ${selection}`,\n target: this.target,\n });\n }\n onEnumFilterSelection(selection) {\n if (!selection || selection === 'all') {\n this.$emit(FilterEvents.clear, {\n fieldName: this.fieldName,\n target: this.target,\n });\n return;\n }\n this.$emit(FilterEvents.change, {\n fieldName: this.fieldName,\n filter: `${this.fieldName} == \"${selection}\"`,\n target: this.target,\n });\n }\n}\n__decorate([\n attr\n], Filter.prototype, \"fieldName\", void 0);\n__decorate([\n attr\n], Filter.prototype, \"type\", void 0);\n__decorate([\n attr\n], Filter.prototype, \"label\", void 0);\n__decorate([\n attr\n], Filter.prototype, \"target\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"textFilter\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"numFilterMin\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"numFilterMax\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"dateFilterMin\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"dateFilterMax\", void 0);\n__decorate([\n attr\n], Filter.prototype, \"enumOptions\", void 0);\n__decorate([\n observable\n], Filter.prototype, \"enumFilterOptions\", void 0);\nexport const foundationFilter = Filter.compose({\n baseName: 'filter',\n template,\n styles,\n});\n","import { css } from '@microsoft/fast-element';\nexport const foundationFilterBarStyles = (context, definition) => css `\n .filter-bar {\n background-color: #2c2f33;\n padding: calc(var(--design-unit) * 2px);\n transition: all 0.5s ease-out;\n }\n\n .filter-grid {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-auto-rows: minmax(64px, auto);\n gap: calc(var(--design-unit) * 1px);\n align-items: end;\n justify-items: stretch;\n }\n\n .toggle {\n display: flex;\n justify-content: center;\n min-height: 20px;\n cursor: pointer;\n border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px)\n 0 0;\n border-top: 2px solid;\n color: #f44378;\n }\n\n .collapsed {\n max-height: 0;\n padding: 0;\n overflow: hidden;\n }\n\n .toggle-collapsed {\n color: #48ed9c;\n }\n`;\n","export const mapType = (TYPE) => {\n switch (TYPE) {\n case 'INT':\n case 'DOUBLE':\n case 'LONG':\n return 'number';\n case 'DATETIME':\n return 'date';\n case 'BOOLEAN':\n return 'boolean';\n case 'ENUM':\n return 'enum';\n case 'TEXT':\n default:\n return 'text';\n }\n};\n","import { html, ref, repeat, when } from '@microsoft/fast-element';\nimport { classNames } from '@microsoft/fast-web-utilities';\nimport { mapType } from './filter-bar.utils';\nconst loadingTemplate = html `\n <p>Fetching metadata for ${(x) => x.resource}...</p>\n`;\nconst collapseIcon = html `\n ${when((x) => x.collapsed, html `\n <foundation-icon name=\"arrow-up\"></foundation-icon>\n `)}\n ${when((x) => !x.collapsed, html `\n <foundation-icon name=\"arrow-down\"></foundation-icon>\n `)}\n`;\nconst filterBarTemplate = html `\n <div\n class=${(x) => classNames(['toggle', true], ['toggle-collapsed', x.collapsed])}\n @click=\"${(x) => x.toggle()}\"\n >\n ${collapseIcon}\n </div>\n <div class=${(x) => classNames(['filter-bar', true], ['collapsed', x.collapsed])}>\n <div class=\"filter-grid\" ${ref('filterGrid')}>\n ${repeat((x) => x.fields, html `\n <foundation-filter\n label=\"${(x) => x.UI_LABEL}\"\n target=\"${(x, c) => { var _a; return (_a = c.parent) === null || _a === void 0 ? void 0 : _a.target; }}\"\n type=\"${(x) => mapType(x.TYPE)}\"\n fieldName=\"${(x) => x.NAME}\"\n ></foundation-filter>\n `)}\n </div>\n </div>\n`;\nexport const foundationFilterBarTemplate = html `\n ${(x) => (x.ready ? filterBarTemplate : loadingTemplate)}\n`;\n","import { __decorate } from \"tslib\";\nimport { Connect } from '@genesislcap/foundation-comms';\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { pascalCase } from '@microsoft/fast-web-utilities';\nimport { logger } from '../utils';\nimport { foundationFilterBarStyles as styles } from './filter-bar.styles';\nimport { foundationFilterBarTemplate as template } from './filter-bar.template';\nexport const DEFUALT_FILTER_BAR_COLUMNS = 5;\n/**\n * @tagname %%prefix%%-filter-bar\n */\nexport class FilterBar extends FoundationElement {\n constructor() {\n super(...arguments);\n this.columns = DEFUALT_FILTER_BAR_COLUMNS;\n this.ready = false;\n this.collapsed = true;\n }\n connectedCallback() {\n super.connectedCallback();\n this.init();\n }\n initLabels() {\n var _a, _b, _c, _d, _e;\n let customLabels = false;\n let labels = [];\n if ((_a = this === null || this === void 0 ? void 0 : this.labels) === null || _a === void 0 ? void 0 : _a.length) {\n labels = (_b = this.labels.split(',')) === null || _b === void 0 ? void 0 : _b.map((l) => l.trim());\n customLabels = ((_c = this.fields) === null || _c === void 0 ? void 0 : _c.length) === (labels === null || labels === void 0 ? void 0 : labels.length);\n }\n for (let i = 0; (_e = i < ((_d = this.fields) === null || _d === void 0 ? void 0 : _d.length)) !== null && _e !== void 0 ? _e : 0; i += 1) {\n const label = customLabels\n ? labels[i]\n : this.camelCasePreserveWhitespace(this.fields[i].NAME.replace(/_/g, ' '));\n this.fields[i].UI_LABEL = label;\n }\n }\n camelCasePreserveWhitespace(input) {\n return input\n .split(' ')\n .map((s) => pascalCase(s))\n .join(' ');\n }\n resourceChanged(oldResource, newResource) {\n if (oldResource === newResource || !(oldResource === null || oldResource === void 0 ? void 0 : oldResource.length))\n return;\n this.init();\n }\n init() {\n this.ready = false;\n this.connect\n .getMetadata(this.resource)\n .then((meta) => {\n var _a, _b;\n this.fields = meta.FIELD;\n if ((_a = this.only) === null || _a === void 0 ? void 0 : _a.length) {\n const desiredFields = this.only.split(',').map((f) => f.trim());\n const maintainOrder = (a, b) => desiredFields.indexOf(a.NAME) > desiredFields.indexOf(b.NAME) ? 1 : -1;\n this.fields = (_b = this.fields) === null || _b === void 0 ? void 0 : _b.filter((f) => desiredFields.includes(f.NAME)).sort(maintainOrder);\n }\n this.ready = true;\n })\n .then(() => this.initLabels())\n .then(() => window.requestAnimationFrame(() => {\n this.adjustColumnStyles();\n }))\n .catch((e) => logger.error(e));\n }\n adjustColumnStyles() {\n if (!this.filterGrid)\n return;\n this.filterGrid.style['grid-template-columns'] = `repeat(${this.columns}, 1fr)`;\n }\n toggle() {\n if (!this.ready)\n return;\n this.collapsed = !this.collapsed;\n }\n}\n__decorate([\n attr\n], FilterBar.prototype, \"resource\", void 0);\n__decorate([\n attr\n], FilterBar.prototype, \"only\", void 0);\n__decorate([\n attr\n], FilterBar.prototype, \"labels\", void 0);\n__decorate([\n attr\n], FilterBar.prototype, \"target\", void 0);\n__decorate([\n attr\n], FilterBar.prototype, \"columns\", void 0);\n__decorate([\n observable\n], FilterBar.prototype, \"ready\", void 0);\n__decorate([\n observable\n], FilterBar.prototype, \"fields\", void 0);\n__decorate([\n Connect\n], FilterBar.prototype, \"connect\", void 0);\n__decorate([\n observable\n], FilterBar.prototype, \"collapsed\", void 0);\n/**\n * The Foundation Filter\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-filter-bar\\>\n */\nexport const foundationFilterBar = FilterBar.compose({\n baseName: 'filter-bar',\n template,\n styles,\n});\n","export var FlexMediaQueriesEnum;\n(function (FlexMediaQueriesEnum) {\n FlexMediaQueriesEnum[\"sm\"] = \"(max-width: 640px)\";\n FlexMediaQueriesEnum[\"md\"] = \"(min-width: 641px) and (max-width: 1023px)\";\n FlexMediaQueriesEnum[\"lg\"] = \"(min-width: 1024px)\";\n})(FlexMediaQueriesEnum || (FlexMediaQueriesEnum = {}));\n","import { css } from '@microsoft/fast-element';\nimport { FlexMediaQueriesEnum } from '../flex-layout.types';\nexport const flexLayoutRWDStyles = (breakPoint) => {\n const bp = breakPoint ? `-${breakPoint}` : ``;\n return css `\n ${bp && `@media only screen and ${FlexMediaQueriesEnum[breakPoint]} {`}\n :host(.spacing${bp}-1x) slot {\n gap: calc(var(--design-unit) * 2px);\n }\n\n :host(.spacing${bp}-2x) slot {\n gap: calc(var(--design-unit) * 4px);\n }\n\n :host(.spacing${bp}-3x) slot {\n gap: calc(var(--design-unit) * 6px);\n }\n\n :host(.spacing${bp}-4x) slot {\n gap: calc(var(--design-unit) * 8px);\n }\n\n :host(.spacing${bp}-5x) slot {\n gap: calc(var(--design-unit) * 10px);\n }\n\n :host(.spacing${bp}-6x) slot {\n gap: calc(var(--design-unit) * 12px);\n }\n\n :host(.flex${bp}-column) slot {\n flex-direction: column;\n }\n\n :host(.flex${bp}-column-reverse) slot {\n flex-direction: column-reverse;\n }\n\n :host(.flex${bp}-row) slot {\n flex-direction: row;\n }\n\n :host(.flex${bp}-row-reverse) slot {\n flex-direction: row-reverse;\n }\n\n :host(.flex${bp}-wrap) slot {\n flex-wrap: wrap;\n }\n\n :host(.flex${bp}-wrap-reverse) slot {\n flex-wrap: wrap-reverse;\n }\n\n :host(.justify${bp}-start) slot {\n justify-content: flex-start;\n }\n\n :host(.justify${bp}-end) slot {\n justify-content: flex-end;\n }\n\n :host(.justify${bp}-center) slot {\n justify-content: center;\n }\n\n :host(.justify${bp}-between) slot {\n justify-content: space-between;\n }\n\n :host(.justify${bp}-around) slot {\n justify-content: space-around;\n }\n\n :host(.justify${bp}-evenly) slot {\n justify-content: space-evenly;\n }\n\n :host(.items${bp}-start) slot {\n align-items: flex-start;\n }\n\n :host(.items${bp}-end) slot {\n align-items: flex-end;\n }\n\n :host(.items${bp}-center) slot {\n align-items: center;\n }\n\n :host(.items${bp}-stretch) slot {\n align-items: stretch;\n }\n\n :host(.items${bp}-baseline) slot {\n align-items: baseline;\n }\n\n :host(.content${bp}-start) slot {\n align-content: flex-start;\n }\n\n :host(.content${bp}-end) slot {\n align-content: flex-end;\n }\n\n :host(.content${bp}-center) slot {\n align-content: center;\n }\n\n :host(.content${bp}-between) slot {\n align-content: space-between;\n }\n\n :host(.content${bp}-around) slot {\n align-content: space-around;\n }\n\n :host(.content${bp}-evenly) slot {\n align-content: space-evenly;\n }\n ${bp && `}`}\n `;\n};\n","import { css } from '@microsoft/fast-element';\nimport { flexLayoutRWDStyles } from './responsiveness';\nexport const foundationFlexLayoutStyles = css `\n :host {\n width: 100%;\n height: 100%;\n }\n\n slot {\n width: 100%;\n height: 100%;\n display: flex;\n }\n\n ${flexLayoutRWDStyles()}\n ${flexLayoutRWDStyles('lg')}\n ${flexLayoutRWDStyles('md')}\n ${flexLayoutRWDStyles('sm')}\n`;\n","import { html } from '@microsoft/fast-element';\nexport const foundationFlexLayoutTemplate = html `\n <template>\n <slot></slot>\n </template>\n`;\n","import { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationFlexLayoutStyles as styles } from './flex-layout.styles';\nimport { foundationFlexLayoutTemplate as template } from './flex-layout.template';\n// explicitly declaring for extensibility\nexport const foundationFlexLayoutShadowOptions = undefined;\nexport const defaultFlexLayoutConfig = {};\n/**\n * @tagname %%prefix%%-flex-layout\n */\nexport class FlexLayout extends FoundationElement {\n}\n/**\n * The Foundation Flex Layout\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-flex-layout\\>\n */\nexport const foundationFlexLayout = FlexLayout.compose(Object.assign({ baseName: 'flex-layout', styles,\n template, shadowOptions: foundationFlexLayoutShadowOptions }, defaultFlexLayoutConfig));\n","import { flipperStyles as fastFlipperStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationFlipperStyles = (context, definition) => css `\n ${fastFlipperStyles(context, definition)}\n`;\n","import { flipperTemplate as fastFlipperTemplate } from '@microsoft/fast-foundation';\nexport const foundationFlipperTemplate = (context, definition) => fastFlipperTemplate(context, definition);\n","import { Flipper as FASTFlipper } from '@microsoft/fast-components';\nimport { foundationFlipperStyles as styles } from './flipper.styles';\nimport { foundationFlipperTemplate as template } from './flipper.template';\nexport class Flipper extends FASTFlipper {\n}\n// explicitly declaring for extensibility\nexport const foundationFlipperShadowOptions = undefined;\nexport const defaultFlipperConfig = {\n next: `\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z\"\n />\n </svg>\n `,\n previous: `\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z\"\n />\n </svg>\n `,\n};\n/**\n * The Foundation Flipper\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-flipper\\>\n */\nexport const foundationFlipper = Flipper.compose(Object.assign({ baseName: 'flipper', template,\n styles, shadowOptions: foundationFlipperShadowOptions }, defaultFlipperConfig));\n","import { css } from '@microsoft/fast-element';\nexport const flyoutAnimationTime = 225;\nexport const foundationFlyoutStyles = css `\n /* Host */\n :host {\n display: inline-block;\n height: 100vh;\n position: absolute;\n width: 100vw;\n }\n\n :host([closed]) {\n display: none;\n }\n\n div.container {\n height: 100%;\n width: 100%;\n }\n\n /* flyout */\n div.flyout {\n background-color: white;\n color: black;\n height: 100%;\n position: absolute;\n /* stylelint-disable-next-line function-name-case */\n transition: transform ${flyoutAnimationTime.toString()}ms ease-in;\n width: 20%;\n z-index: 2001;\n }\n\n :host([position='left']) div.flyout {\n left: 0;\n transform: translateX(0%);\n }\n\n :host([position='right']) div.flyout {\n right: 0;\n transform: translateX(0%);\n }\n\n :host([visuallyhidden][position='left']) div.flyout {\n left: 0;\n transform: translateX(-100%);\n }\n\n :host([visuallyhidden][position='right']) div.flyout {\n right: 0;\n transform: translateX(100%);\n }\n\n div.header {\n align-items: center;\n display: flex;\n padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 2px);\n }\n\n div.title {\n flex-grow: 1;\n }\n\n div.header zero-icon {\n cursor: pointer;\n }\n\n div.footer {\n bottom: 0;\n position: absolute;\n width: 100%;\n }\n\n /* Background */\n div.background {\n background-color: black;\n height: 100%;\n opacity: 50%;\n position: absolute;\n /* stylelint-disable-next-line function-name-case */\n transition: opacity ${flyoutAnimationTime.toString()}ms linear;\n width: 100%;\n z-index: 2000;\n }\n\n :host([visuallyhidden]) div.background {\n opacity: 0%;\n }\n`;\n","import { html } from '@microsoft/fast-element';\nexport const foundationFlyoutTemplate = html `\n <template ?closed=${(x) => x.closed} ?visuallyhidden=${(x) => x.visuallyhidden}>\n <div class=\"container\">\n <div class=\"background\" part=\"background\" @click=${(x) => x.closeFlyout()}></div>\n <div class=\"flyout\" part=\"flyout\" @transitionend=${(x) => x.closingFinished()}>\n <div class=\"header\" part=\"header\">\n <div class=\"title\" part=\"title\">\n <slot name=\"title\"></slot>\n </div>\n <div class=\"exit\" part=\"exit\" @click=${(x) => x.closeFlyout()}>\n <zero-icon name=\"times\"></zero-icon>\n </div>\n </div>\n <div class=\"content\" part=\"content\">\n <slot></slot>\n </div>\n <div class=\"footer\" part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n </div>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationFlyoutStyles as styles } from './flyout.styles';\nimport { foundationFlyoutTemplate as template } from './flyout.template';\n/**\n * @tagname %%prefix%%-flyout\n */\nexport class Flyout extends FoundationElement {\n constructor() {\n super(...arguments);\n this.position = 'right';\n this.closed = true;\n this.visuallyhidden = true;\n }\n closedChanged() {\n if (!this.closed) {\n // TODO: timeout shouldn't be necessary here but without it opening transition doesn't work\n setTimeout(() => (this.visuallyhidden = false), 1);\n }\n }\n closeFlyout() {\n this.visuallyhidden = true;\n }\n closingFinished() {\n if (this.visuallyhidden) {\n this.closed = true;\n this.$emit('closed');\n }\n }\n}\n__decorate([\n attr\n], Flyout.prototype, \"position\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Flyout.prototype, \"closed\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Flyout.prototype, \"visuallyhidden\", void 0);\n// explicitly declaring for extensibility\nexport const foundationFlyoutShadowOptions = undefined;\nexport const defaultFlyoutConfig = {};\n/**\n * The Foundation Flyout\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-flyout\\>\n */\nexport const foundationFlyout = Flyout.compose(Object.assign({ baseName: 'flyout', styles,\n template, shadowOptions: foundationFlyoutShadowOptions }, defaultFlyoutConfig));\n","export var GridMediaQueriesEnum;\n(function (GridMediaQueriesEnum) {\n GridMediaQueriesEnum[\"sm\"] = \"(max-width: 640px)\";\n GridMediaQueriesEnum[\"md\"] = \"(min-width: 641px) and (max-width: 1023px)\";\n GridMediaQueriesEnum[\"lg\"] = \"(min-width: 1024px)\";\n})(GridMediaQueriesEnum || (GridMediaQueriesEnum = {}));\n","import { css } from '@microsoft/fast-element';\nimport { GridMediaQueriesEnum } from '../grid-layout.types';\nexport const gridLayoutRWDStyles = (breakPoint) => {\n const bp = breakPoint ? `-${breakPoint}` : ``;\n return css `\n ${bp && `@media only screen and ${GridMediaQueriesEnum[breakPoint]} {`}\n :host(.spacing${bp}-1x) slot {\n gap: calc(var(--design-unit) * 2px);\n }\n\n :host(.spacing${bp}-2x) slot {\n gap: calc(var(--design-unit) * 4px);\n }\n\n :host(.spacing${bp}-3x) slot {\n gap: calc(var(--design-unit) * 6px);\n }\n\n :host(.spacing${bp}-4x) slot {\n gap: calc(var(--design-unit) * 8px);\n }\n\n :host(.spacing${bp}-5x) slot {\n gap: calc(var(--design-unit) * 10px);\n }\n\n :host(.spacing${bp}-6x) slot {\n gap: calc(var(--design-unit) * 12px);\n }\n\n :host(.flow${bp}-row) slot {\n grid-auto-flow: row;\n }\n\n :host(.flow${bp}-column) slot {\n grid-auto-flow: column;\n }\n\n :host(.flow${bp}-row-dense) slot {\n grid-auto-flow: row dense;\n }\n\n :host(.flow${bp}-column-dense) slot {\n grid-auto-flow: column dense;\n }\n\n :host(.content${bp}-center) slot {\n place-content: center;\n }\n\n :host(.content${bp}-start) slot {\n place-content: start;\n }\n\n :host(.content${bp}-end) slot {\n place-content: end;\n }\n\n :host(.content${bp}-between) slot {\n place-content: space-between;\n }\n\n :host(.content${bp}-around) slot {\n place-content: space-around;\n }\n\n :host(.content${bp}-evenly) slot {\n place-content: space-evenly;\n }\n\n :host(.content${bp}-stretch) slot {\n place-content: stretch;\n }\n\n :host(.place${bp}-items-start) slot {\n place-items: start;\n }\n\n :host(.place${bp}-items-end) slot {\n place-items: end;\n }\n\n :host(.place${bp}-items-center) slot {\n place-items: center;\n }\n\n :host(.place${bp}-items-stretch) slot {\n place-items: stretch;\n }\n ${bp && `}`}\n `;\n};\n","import { css } from '@microsoft/fast-element';\nimport { gridLayoutRWDStyles } from './responsiveness';\nexport const foundationGridLayoutStyles = css `\n slot {\n width: 100%;\n height: 100%;\n display: grid;\n }\n\n ${gridLayoutRWDStyles()}\n ${gridLayoutRWDStyles('lg')}\n ${gridLayoutRWDStyles('md')}\n ${gridLayoutRWDStyles('sm')}\n`;\n","import { html } from '@microsoft/fast-element';\nexport const foundationGridLayoutTemplate = html `\n <template>\n <slot></slot>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, css, cssPartial, } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationGridLayoutStyles as styles } from './grid-layout.styles';\nimport { foundationGridLayoutTemplate as template } from './grid-layout.template';\nimport { GridMediaQueriesEnum } from './grid-layout.types';\nexport const foundationGridLayoutShadowOptions = undefined;\nexport const defaultGridLayoutConfig = {};\nclass ResponsiveGridBehavior {\n constructor(query, cols, rows, width = '1fr', height = '1fr') {\n this.listenerCache = new WeakMap();\n this.query = window.matchMedia(query);\n const colPartial = cols && cssPartial `grid-template-columns: repeat(${cols}, ${width});`;\n const rowPartial = rows && cssPartial `grid-template-rows: repeat(${rows}, ${height});`;\n this.styles = css `\n slot {\n ${rowPartial || ''}\n ${colPartial || ''}\n }\n `;\n }\n bind(source) {\n let attached = false;\n const listener = (event) => {\n const { matches } = event;\n if (matches && !attached) {\n source.$fastController.addStyles(this.styles);\n attached = true;\n }\n else if (!matches && attached) {\n source.$fastController.removeStyles(this.styles);\n attached = false;\n }\n };\n listener({ matches: this.query.matches });\n this.query.addEventListener('change', listener);\n this.listenerCache.set(source, listener);\n }\n unbind(source) {\n const listener = this.listenerCache.get(source);\n if (listener) {\n this.query.removeEventListener('change', listener);\n this.listenerCache.delete(source);\n }\n source.$fastController.removeStyles(this.styles);\n }\n}\n/**\n * @tagname %%prefix%%-grid-layout\n */\nexport class GridLayout extends FoundationElement {\n constructor() {\n super(...arguments);\n this.behaviors = [];\n }\n connectedCallback() {\n super.connectedCallback();\n this.behaviors = Object.keys(GridMediaQueriesEnum)\n .map((bp) => {\n if (!this[`col-${bp}-count`] && !this[`row-${bp}-count`]) {\n return;\n }\n return new ResponsiveGridBehavior(GridMediaQueriesEnum[bp], this[`col-${bp}-count`], this[`row-${bp}-count`], this[`col-${bp}-width`], this[`row-${bp}-height`]);\n })\n .filter((x) => !!x);\n const rowPartial = this['row-count'] &&\n cssPartial `grid-template-rows: repeat(${this['row-count']}, ${this['row-height'] || '1fr'});`;\n const colPartial = this['col-count'] &&\n cssPartial `grid-template-columns: repeat(${this['col-count']}, ${this['col-width'] || '1fr'});`;\n this.baseStyles = css `\n slot {\n ${rowPartial || ''}\n ${colPartial || ''}\n }\n `;\n this.$fastController.addStyles(this.baseStyles);\n this.$fastController.addBehaviors(this.behaviors);\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.$fastController.removeBehaviors(this.behaviors);\n this.$fastController.removeStyles(this.baseStyles);\n }\n}\n__decorate([\n attr\n], GridLayout.prototype, 'col-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-width', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-lg-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-lg-width', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-md-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-md-width', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-sm-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'col-sm-width', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-height', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-lg-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-lg-height', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-md-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-md-height', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-sm-count', void 0);\n__decorate([\n attr\n], GridLayout.prototype, 'row-sm-height', void 0);\n/**\n * The Foundation Grid Layout\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-grid-layout\\>\n */\nexport const foundationGridLayout = GridLayout.compose(Object.assign({ baseName: 'grid-layout', styles,\n template, shadowOptions: foundationGridLayoutShadowOptions }, defaultGridLayoutConfig));\n","import { html } from '@microsoft/fast-element';\nexport const foundationGridLayoutItemTemplate = html `\n <template>\n <style>\n :host {\n width: 100%;\n height: 100%;\n ${(x) => x.setGridItemProperties(x.colNumber, x.rowNumber, x.width, x.height)}\n }\n\n @media only screen and (min-width: 1025px) {\n :host {\n ${(x) => x.setGridItemProperties(x.colLgNumber, x.rowLgNumber, x.widthLg, x.heightLg)}\n }\n }\n\n @media only screen and (min-width: 641px) and (max-width: 1024px) {\n :host {\n ${(x) => x.setGridItemProperties(x.colMdNumber, x.rowMdNumber, x.widthSm, x.heightMd)}\n }\n }\n\n @media only screen and (max-width: 640px) {\n :host {\n ${(x) => x.setGridItemProperties(x.colSmNumber, x.rowSmNumber, x.widthSm, x.heightSm)}\n }\n }\n </style>\n <slot></slot>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationGridLayoutItemTemplate as template } from './grid-layout-item.template';\nexport const foundationGridLayoutItemShadowOptions = undefined;\nexport const defaultGridLayoutItemConfig = {};\n/**\n * @tagname %%prefix%%-grid-layout-item\n */\nexport class GridLayoutItem extends FoundationElement {\n setGridItemProperties(column, row, width, height) {\n if (row && column && width && height) {\n const gridRow = row === 0 || height === 0 ? 'auto' : `${row} / ${Number(row) + Number(height)}`;\n const gridColumn = column === 0 || width === 0 ? 'auto' : `${column} / ${Number(column) + Number(width)}`;\n return `grid-row: ${gridRow}; grid-column: ${gridColumn}`;\n }\n }\n}\n__decorate([\n attr({ attribute: 'col-number' })\n], GridLayoutItem.prototype, \"colNumber\", void 0);\n__decorate([\n attr({ attribute: 'col-sm-number' })\n], GridLayoutItem.prototype, \"colSmNumber\", void 0);\n__decorate([\n attr({ attribute: 'col-md-number' })\n], GridLayoutItem.prototype, \"colMdNumber\", void 0);\n__decorate([\n attr({ attribute: 'col-lg-number' })\n], GridLayoutItem.prototype, \"colLgNumber\", void 0);\n__decorate([\n attr({ attribute: 'row-number' })\n], GridLayoutItem.prototype, \"rowNumber\", void 0);\n__decorate([\n attr({ attribute: 'row-sm-number' })\n], GridLayoutItem.prototype, \"rowSmNumber\", void 0);\n__decorate([\n attr({ attribute: 'row-md-number' })\n], GridLayoutItem.prototype, \"rowMdNumber\", void 0);\n__decorate([\n attr({ attribute: 'row-lg-number' })\n], GridLayoutItem.prototype, \"rowLgNumber\", void 0);\n__decorate([\n attr({ attribute: 'width' })\n], GridLayoutItem.prototype, \"width\", void 0);\n__decorate([\n attr({ attribute: 'width-sm' })\n], GridLayoutItem.prototype, \"widthSm\", void 0);\n__decorate([\n attr({ attribute: 'width-md' })\n], GridLayoutItem.prototype, \"widthMd\", void 0);\n__decorate([\n attr({ attribute: 'width-lg' })\n], GridLayoutItem.prototype, \"widthLg\", void 0);\n__decorate([\n attr({ attribute: 'height' })\n], GridLayoutItem.prototype, \"height\", void 0);\n__decorate([\n attr({ attribute: 'height-sm' })\n], GridLayoutItem.prototype, \"heightSm\", void 0);\n__decorate([\n attr({ attribute: 'height-md' })\n], GridLayoutItem.prototype, \"heightMd\", void 0);\n__decorate([\n attr({ attribute: 'height-lg' })\n], GridLayoutItem.prototype, \"heightLg\", void 0);\n/**\n * The Foundation Grid Layout Item\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-grid-layout-item\\>\n */\nexport const foundationGridLayoutItem = GridLayoutItem.compose(Object.assign({ baseName: 'grid-layout-item', template, shadowOptions: foundationGridLayoutItemShadowOptions }, defaultGridLayoutItemConfig));\n","import { dom, library } from '@fortawesome/fontawesome-svg-core';\nimport { fab } from '@fortawesome/free-brands-svg-icons';\nimport { far } from '@fortawesome/free-regular-svg-icons';\nimport { fas } from '@fortawesome/free-solid-svg-icons';\nexport const getFontawesomeIconsCss = () => {\n // config.autoReplaceSvg = true;\n // config.observeMutations = true;\n library.add(fas, far, fab);\n return dom.css();\n};\n","import { css } from '@microsoft/fast-element';\nimport { getFontawesomeIconsCss } from '../_config/styles/external/fontawesome-free';\nexport const foundationIconStyles = (context, definition) => css `\n ${getFontawesomeIconsCss()}\n`;\n","import { html, ref } from '@microsoft/fast-element';\nexport const foundationIconTemplate = html `\n <template>\n <i\n ${ref('iElement')}\n class=${(x) => `fa-${x.name} fa-${x.size} fa-${x.variant}`}\n part=${(x) => `icon-${x.name}-${x.size}-${x.variant}`}\n >\n <slot></slot>\n </i>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { findIconDefinition, icon } from '@fortawesome/fontawesome-svg-core';\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationIconStyles as styles } from './icon.styles';\nimport { foundationIconTemplate as template } from './icon.template';\n// explicitly declaring for extensibility\nexport const foundationIconShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nexport const defaultIconConfig = {};\nexport var FaPrefixFromStyle;\n(function (FaPrefixFromStyle) {\n FaPrefixFromStyle[\"solid\"] = \"fas\";\n FaPrefixFromStyle[\"regular\"] = \"far\";\n FaPrefixFromStyle[\"brand\"] = \"fab\";\n})(FaPrefixFromStyle || (FaPrefixFromStyle = {}));\n/**\n * @tagname %%prefix%%-icon\n */\nexport class Icon extends FoundationElement {\n constructor() {\n super(...arguments);\n this.size = 'sm';\n this.variant = 'solid';\n }\n nameChanged(oldValue, newValue) {\n newValue ? this.loadIcon() : '';\n }\n sizeChanged(oldValue, newValue) {\n newValue ? this.loadIcon() : '';\n }\n variantChanged(oldValue, newValue) {\n newValue ? this.loadIcon() : '';\n }\n connectedCallback() {\n super.connectedCallback();\n this.loadIcon();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.iElement.replaceChildren();\n }\n loadIcon() {\n if (!this.iElement) {\n return;\n }\n const iconDefinition = findIconDefinition({\n prefix: FaPrefixFromStyle[this.variant],\n iconName: this.name,\n });\n const faIcon = icon(iconDefinition);\n if (faIcon && faIcon.node) {\n this.iElement.innerHTML = '';\n Array.from(faIcon.node).map((n) => this.iElement.appendChild(n));\n }\n }\n}\n__decorate([\n observable\n], Icon.prototype, \"iElement\", void 0);\n__decorate([\n attr\n], Icon.prototype, \"name\", void 0);\n__decorate([\n attr\n], Icon.prototype, \"size\", void 0);\n__decorate([\n attr\n], Icon.prototype, \"variant\", void 0);\n/**\n * The Foundation Icon\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-icon\\>\n */\nexport const foundationIcon = Icon.compose(Object.assign({ baseName: 'icon', template,\n styles, shadowOptions: foundationIconShadowOptions }, defaultIconConfig));\n","import { optionStyles as fastListboxOptionStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationListboxOptionStyles = (context, definition) => css `\n ${fastListboxOptionStyles(context, definition)}\n`;\n","import { listboxOptionTemplate as fastListboxOptionTemplate } from '@microsoft/fast-foundation';\nexport const foundationListboxOptionTemplate = (context, definition) => fastListboxOptionTemplate(context, definition);\n","import { ListboxOption as FASTListboxOption } from '@microsoft/fast-components';\nimport { foundationListboxOptionStyles as styles } from './listbox-option.styles';\nimport { foundationListboxOptionTemplate as template } from './listbox-option.template';\n/**\n * @tagname %%prefix%%-option\n */\nexport class ListboxOption extends FASTListboxOption {\n}\n// explicitly declaring for extensibility\nexport const foundationListboxOptionShadowOptions = undefined;\nexport const defaultListboxOptionConfig = {};\nexport const foundationListboxOption = ListboxOption.compose(Object.assign({ baseName: 'option', template,\n styles, shadowOptions: foundationListboxOptionShadowOptions }, defaultListboxOptionConfig));\n","import { menuStyles as fastMenuStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationMenuStyles = (context, definition) => css `\n ${fastMenuStyles(context, definition)}\n`;\n","import { menuTemplate as fastMenuTemplate } from '@microsoft/fast-foundation';\nexport const foundationMenuTemplate = (context, definition) => fastMenuTemplate(context, definition);\n","import { Menu as FASTMenu } from '@microsoft/fast-components';\nimport { foundationMenuStyles as styles } from './menu.styles';\nimport { foundationMenuTemplate as template } from './menu.template';\n/**\n * @tagname %%prefix%%-menu\n */\nexport class Menu extends FASTMenu {\n}\n// explicitly declaring for extensibility\nexport const foundationMenuShadowOptions = undefined;\nexport const defaultMenuConfig = {};\n/**\n * The Foundation Menu\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-menu\\>\n */\nexport const foundationMenu = Menu.compose(Object.assign({ baseName: 'menu', template,\n styles, shadowOptions: foundationMenuShadowOptions }, defaultMenuConfig));\n","import { menuItemStyles as fastMenuItemStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationMenuItemStyles = (context, definition) => css `\n ${fastMenuItemStyles(context, definition)}\n`;\n","import { menuItemTemplate as fastMenuItemTemplate } from '@microsoft/fast-foundation';\nexport const foundationMenuItemTemplate = (context, definition) => fastMenuItemTemplate(context, definition);\n","import { MenuItem as FASTMenuItem } from '@microsoft/fast-components';\nimport { foundationMenuItemStyles as styles } from './menu-item.styles';\nimport { foundationMenuItemTemplate as template } from './menu-item.template';\nexport class MenuItem extends FASTMenuItem {\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', () => this.$emit('onMenuClick'));\n }\n}\n// explicitly declaring for extensibility\nexport const foundationMenuItemShadowOptions = undefined;\nexport const defaultMenuItemConfig = {\n expandCollapseGlyph: `\n <svg \n class=\"expand-collapse-glyph\"\n part=\"expand-collapse-glyph\" \n viewBox=\"0 0 16 16\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z\"\n />\n </svg>\n `,\n};\n/**\n * The Foundation Menu Item\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-menu-item\\>\n */\nexport const foundationMenuItem = MenuItem.compose(Object.assign({ baseName: 'menu-item', template,\n styles, shadowOptions: foundationMenuItemShadowOptions }, defaultMenuItemConfig));\n","import { css } from '@microsoft/fast-element';\nimport { foundationDialogStyles } from '../dialog';\nexport const foundationModalStyles = css `\n ${foundationDialogStyles}\n`;\n","import { html } from '@microsoft/fast-element';\nimport { foundationDialogTemplate } from '../dialog';\nexport const foundationModalTemplate = html `\n ${foundationDialogTemplate}\n`;\n","import { DialogElement } from '../dialog';\nimport { foundationModalStyles as styles } from './modal.styles';\nimport { foundationModalTemplate as template } from './modal.template';\n// explicitly declaring for extensibility\nexport const foundationModalShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nexport const defaultModalConfig = {};\n/**\n * @tagname %%prefix%%-modal\n */\nexport class Modal extends DialogElement {\n show() {\n if (this.onShowCallback)\n this.onShowCallback();\n this.mainElement['showModal']();\n }\n}\n/**\n * The Foundation Modal\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-modal\\>\n */\nexport const foundationModal = Modal.compose(Object.assign({ baseName: 'modal', styles,\n template, shadowOptions: foundationModalShadowOptions }, defaultModalConfig));\n","export var Position;\n(function (Position) {\n Position[\"BELOW\"] = \"below\";\n Position[\"ABOVE\"] = \"above\";\n Position[\"DYNAMIC\"] = \"dynamic\";\n})(Position || (Position = {}));\n","import { css } from '@microsoft/fast-element';\nexport const maxheight = 230;\nexport const multiselectStyles = css `\n .root {\n position: relative;\n width: inherit;\n min-width: 250px;\n }\n\n .control {\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field {\n width: 100%;\n cursor: pointer;\n color: rgb(241 241 241);\n min-height: 40px;\n padding: 0 calc(var(--design-unit) * 2.25px);\n border-width: 0;\n background: var(--neutral-fill-input-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field:focus {\n outline: 1px solid var(--accent-fill-rest);\n background: var(--neutral-fill-input-rest);\n border-style: none;\n box-shadow: none;\n }\n\n #display-field:hover:not(:focus) {\n outline: 1px solid rgb(231 232 232);\n }\n\n button {\n pointer-events: none;\n }\n\n #arrow-icon {\n position: absolute;\n left: calc(100% - 26px);\n padding: 0;\n cursor: pointer;\n transform: rotate(0deg);\n transition: transform 0.2s linear 0s;\n }\n\n #arrow-icon.flipped {\n transform: rotate(180deg);\n }\n\n .options {\n display: flex;\n flex-direction: column;\n position: absolute;\n height: max-content;\n overflow-y: hidden;\n margin-top: 5px;\n border: 1px solid rgba(46 51 57 / 100%);\n border-radius: 4px;\n background: var(--neutral-fill-input-rest);\n width: 100%;\n max-height: 0;\n visibility: hidden;\n transition: max-height 0.4s ease 0s, visibility 0.4s ease 0s;\n z-index: 999;\n }\n\n .position-above {\n bottom: 100%;\n }\n\n .checkbox-container {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n scrollbar-width: thin;\n scrollbar-color: rgb(46 48 53) rgb(31 33 38);\n }\n\n .checkbox-container zero-checkbox {\n min-width: fit-content;\n }\n\n #filter-search {\n padding: 5px;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n }\n\n ::-webkit-scrollbar-track {\n background: rgb(31 33 38);\n }\n\n ::-webkit-scrollbar-thumb {\n width: 8px;\n border-radius: 10px;\n box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);\n background-color: rgb(46 48 53);\n border: 3px solid rgb(31 33 38);\n }\n\n .visible {\n visibility: visible;\n max-height: ${maxheight.toString()}px;\n }\n\n ::slotted(foundation-checkbox),\n foundation-checkbox {\n border-bottom: 1px solid rgb(46 48 52);\n padding: 5px 0 5px 5px;\n margin: 0;\n }\n\n ::slotted(foundation-checkbox:hover),\n foundation-checkbox:hover {\n background-color: rgb(45 47 51);\n cursor: pointer;\n }\n\n ::slotted(foundation-checkbox)::part(label),\n foundation-checkbox::part(label) {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .label {\n display: block;\n cursor: pointer;\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-style: normal;\n margin: calc(var(--design-unit) * 2px) 0;\n }\n\n .label-hidden {\n display: none;\n }\n`;\n","import { html, repeat, ref, when, slotted } from '@microsoft/fast-element';\nimport { whitespaceFilter } from '@microsoft/fast-foundation';\nconst ARROW_SVG_PATH = 'M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z';\nexport const getPrefixedMultiselect = (prefix = 'foundation') => html `\n <label\n part=\"label\"\n for=\"control\"\n class=\"${(x) => x.defaultSlottedNodes && x.defaultSlottedNodes.length ? 'label' : 'label label-hidden'}\"\n >\n <slot\n name=\"label\"\n ${slotted({\n property: 'defaultSlottedNodes',\n filter: whitespaceFilter,\n})}\n ></slot>\n </label>\n <div class=\"root\" part=\"root\">\n <div class=\"control\" part=\"control\">\n <svg\n viewBox=\"0 0 12 7\"\n ${ref('arrowIcon')}\n @click=${(x) => x.toggle()}\n id=\"arrow-icon\"\n width=\"16px\"\n fill=\"white\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"${ARROW_SVG_PATH}\" />\n </svg>\n <input\n part=\"input\"\n readonly\n type=\"text\"\n id=\"display-field\"\n :value=\"${(x) => x.getDisplayValue}\"\n @click=${(x) => x.toggle()}\n />\n </div>\n <div ${ref('optionsElement')} class=\"options\">\n ${when((x) => x.search, html `\n <${prefix}-text-field\n id=\"filter-search\"\n placeholder=\"${(x) => x.getPlaceholder}\"\n @input=${(x, c) => x.setFilter(c.event)}\n @change=${(x, c) => x.changeHandler(c.event)}\n ></${prefix}-text-field>\n `)}\n <div class=\"checkbox-container\">\n ${when((x) => x.all, html `\n <${prefix}-checkbox\n @click=${(x) => x.selectCheckboxAll()}\n @change=${(x, c) => x.changeHandler(c.event)}\n ?current-checked=\"${(x) => x.isAllSelected}\"\n >\n All ${(x) => x.name}\n </${prefix}-checkbox>\n `)}\n ${repeat((x) => x.filteredAvailableOptions, html `\n <${prefix}-checkbox\n @click=${(x, c) => c.parent.selectCheckboxOne(x)}\n @change=${(x, c) => c.parent.changeHandler(c.event)}\n ?current-checked=\"${(x, c) => c.parent.isOptionSelected(x)}\"\n >\n ${(x, ctx) => ctx.parent.getItemLabel(x)}\n </${prefix}-checkbox>\n `)}\n </div>\n </div>\n </div>\n`;\nexport const multiselectTemplate = html `\n ${getPrefixedMultiselect()}\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable, volatile } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { wasClickOutsideElement } from '../utils';\nimport { Position } from './multiselect-consts';\nimport { multiselectStyles as styles, maxheight } from './multiselect.styles';\nimport { multiselectTemplate as template } from './multiselect.template';\nexport const foundationMultiselectShadowOptions = undefined;\nexport const defaultMultiselectConfig = {};\n/**\n * @tagname %%prefix%%-multiselect\n */\nexport class Multiselect extends FoundationElement {\n constructor() {\n super(...arguments);\n this.name = '';\n this.all = true;\n this.allSelected = false;\n this.search = true;\n this.clickOutside = (e) => this.handleClickOutside(e);\n this.open = false;\n this.options = [];\n this.selectedOptions = [];\n this.filteredAvailableOptions = [...this.options];\n this.position = Position.BELOW;\n this.initialisedOptions = false;\n }\n openChanged(previous, open) {\n var _a, _b, _c, _d;\n if (open) {\n document.addEventListener('mousedown', this.clickOutside);\n (_a = this.arrowIcon) === null || _a === void 0 ? void 0 : _a.classList.add('flipped');\n (_b = this.optionsElement) === null || _b === void 0 ? void 0 : _b.classList.add('visible');\n }\n else {\n document.removeEventListener('mousedown', this.clickOutside);\n (_c = this.arrowIcon) === null || _c === void 0 ? void 0 : _c.classList.remove('flipped');\n (_d = this.optionsElement) === null || _d === void 0 ? void 0 : _d.classList.remove('visible');\n }\n }\n connectedCallback() {\n var _a;\n super.connectedCallback();\n if (this.position === Position.ABOVE) {\n (_a = this.optionsElement) === null || _a === void 0 ? void 0 : _a.classList.add('position-above');\n }\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('mousedown', this.clickOutside);\n }\n optionsChanged() {\n if (this.allSelected && !this.initialisedOptions) {\n this.selectedOptions = this.options.map((option) => this.optionGetter(option));\n }\n this.filteredAvailableOptions = [...this.options];\n }\n selectedOptionsChanged() {\n if (this.$fastController.isConnected) {\n this.initialisedOptions = true;\n return;\n }\n }\n toggle() {\n if (!this.open && this.position === Position.DYNAMIC) {\n this.setDropdownPosition();\n }\n this.open = !this.open;\n }\n setDropdownPosition() {\n var _a, _b;\n const remainingSpace = (this.scrollContainer || this.parentElement).clientHeight -\n (this.offsetTop - (this.scrollContainer || this.parentElement).scrollTop);\n const totalHeight = maxheight + this.offsetHeight;\n if (remainingSpace < totalHeight) {\n (_a = this.optionsElement) === null || _a === void 0 ? void 0 : _a.classList.add('position-above');\n }\n else {\n (_b = this.optionsElement) === null || _b === void 0 ? void 0 : _b.classList.remove('position-above');\n }\n }\n optionGetter(option) {\n if (typeof option != 'string') {\n return option.value;\n }\n return option;\n }\n getItemLabel(option) {\n if (!option) {\n return '';\n }\n if (typeof option === 'string') {\n return option;\n }\n return option.label || option.value || '';\n }\n get getDisplayValue() {\n let displayText = '';\n switch (this.selectedOptions.length) {\n case 0: {\n displayText = this.getPlaceholder;\n break;\n }\n case 1: {\n const selectedOption = this.options.find((option) => this.optionGetter(option) === this.selectedOptions[0]);\n displayText = this.getItemLabel(selectedOption);\n break;\n }\n case this.options.length: {\n displayText = `All ${this.name}`.trim();\n break;\n }\n default: {\n displayText = `${this.selectedOptions.length} Selected`;\n }\n }\n return displayText;\n }\n get getPlaceholder() {\n return `Search ${this.name}`.trim().concat('...');\n }\n get isAllSelected() {\n return this.selectedOptions.length === this.options.length;\n }\n isOptionSelected(normalizedOption) {\n return this.selectedOptions.includes(this.optionGetter(normalizedOption));\n }\n selectCheckboxOne(normalizedOption) {\n const option = this.optionGetter(normalizedOption);\n const isIncluded = this.selectedOptions.includes(option);\n if (!isIncluded) {\n this.selectedOptions = [...this.selectedOptions, option];\n }\n else {\n this.selectedOptions = [...this.selectedOptions];\n this.selectedOptions.splice(this.selectedOptions.indexOf(option), 1);\n }\n this.$emit('selectionChange', this.selectedOptions);\n }\n selectCheckboxAll() {\n const prevAllChecked = this.selectedOptions.length === this.options.length;\n this.selectedOptions = prevAllChecked\n ? []\n : this.options.map((option) => this.optionGetter(option));\n if (this.onAllSelectedCallback) {\n this.onAllSelectedCallback(!prevAllChecked);\n }\n this.$emit('selectionChange', this.selectedOptions);\n }\n setFilter(event) {\n this.filteredAvailableOptions = [\n ...this.options.filter((option) => {\n var _a;\n const currentTarget = event.currentTarget;\n const optionValue = typeof option == 'string' ? option : (_a = option.label) !== null && _a !== void 0 ? _a : option.value;\n return optionValue.toLowerCase().startsWith(currentTarget.value.toLowerCase());\n }),\n ];\n }\n changeHandler(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n handleClickOutside(event) {\n if (wasClickOutsideElement(event, this)) {\n this.open = false;\n }\n }\n}\n__decorate([\n attr\n], Multiselect.prototype, \"name\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Multiselect.prototype, \"all\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Multiselect.prototype, \"allSelected\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Multiselect.prototype, \"search\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"defaultSlottedNodes\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"open\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"options\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"selectedOptions\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"filteredAvailableOptions\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"scrollContainer\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"position\", void 0);\n__decorate([\n observable\n], Multiselect.prototype, \"onAllSelectedCallback\", void 0);\n__decorate([\n volatile\n], Multiselect.prototype, \"getDisplayValue\", null);\n__decorate([\n volatile\n], Multiselect.prototype, \"getPlaceholder\", null);\n__decorate([\n volatile\n], Multiselect.prototype, \"isAllSelected\", null);\nexport const foundationMultiselect = Multiselect.compose(Object.assign({ baseName: 'multiselect', template,\n styles, shadowOptions: foundationMultiselectShadowOptions }, defaultMultiselectConfig));\n","import { numberFieldStyles as fastNumberFieldStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationNumberFieldStyles = (context, definition) => css `\n ${fastNumberFieldStyles(context, definition)}\n ::part(label) {\n color: var(--neutral-foreground-rest);\n }\n\n fast-text-field {\n display: unset;\n }\n\n .controls {\n margin-bottom: auto;\n margin-inline-end: 5px;\n margin-top: auto;\n }\n\n .step-down,\n .step-up {\n display: block;\n fill: var(--neutral-foreground-rest);\n }\n\n .step-down-glyph,\n .step-up-glyph {\n padding: unset;\n }\n\n ::part(end) {\n margin-inline-end: unset;\n }\n`;\n","import { html } from '@microsoft/fast-element';\nimport { numberFieldTemplate as fastNumberFieldTemplate } from '@microsoft/fast-foundation';\nexport const foundationNumberFieldTemplate = (context, definition) => html `\n ${fastNumberFieldTemplate(context, definition)}\n`;\n","import { __decorate } from \"tslib\";\nimport { NumberField as FASTNumberField } from '@microsoft/fast-components';\nimport { attr } from '@microsoft/fast-element';\nimport { foundationNumberFieldStyles as styles } from './number-field.styles';\nimport { foundationNumberFieldTemplate as template } from './number-field.template';\nconst formattedInputPrecision = 12;\nexport class NumberField extends FASTNumberField {\n constructor() {\n super(...arguments);\n this.hideStep = false;\n this.value = '';\n this.withFormatting = false;\n this.isStepChange = false;\n }\n sanitiseInputVal(inputVal) {\n return inputVal.replace(/[^0-9\\-+.]|\\b[-+]|[.]{2,}$/g, '');\n }\n toIntlNumberFormat(value) {\n return Intl.NumberFormat().format(Number(value.replace(/,/g, '')));\n }\n validateValue(value) {\n var _a, _b;\n let validValue = parseFloat(parseFloat(this.sanitiseInputVal(value)).toPrecision(formattedInputPrecision));\n if (isNaN(validValue)) {\n validValue = '';\n }\n else {\n validValue = Math.min(validValue, (_a = this.max) !== null && _a !== void 0 ? _a : validValue);\n validValue = Math.max(validValue, (_b = this.min) !== null && _b !== void 0 ? _b : validValue).toString();\n }\n return validValue.toLocaleString();\n }\n // revert Intl Number Format before super step change\n handleStepChange() {\n this.isStepChange = true;\n this.value = this.sanitiseInputVal(this.value);\n this.isStepChange = false;\n }\n stepUp() {\n this.handleStepChange();\n super.stepUp();\n }\n stepDown() {\n this.handleStepChange();\n super.stepDown();\n }\n valueChanged(previous, next) {\n if (this.isStepChange) {\n return;\n }\n if (this.withFormatting) {\n const rgxIsNegativeOrDecimal = /^(?![\\s\\S])|^-$|\\.0*$/g;\n this.value = rgxIsNegativeOrDecimal.test(next)\n ? next\n : this.toIntlNumberFormat(this.validateValue(next));\n }\n else {\n super.valueChanged(previous, this.value);\n }\n }\n}\n__decorate([\n attr({ mode: 'boolean' })\n], NumberField.prototype, \"hideStep\", void 0);\n__decorate([\n attr\n], NumberField.prototype, \"value\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], NumberField.prototype, \"withFormatting\", void 0);\nexport const foundationNumberFieldShadowOptions = {\n delegatesFocus: true,\n mode: 'open',\n};\nexport const defaultNumberFieldConfig = {\n stepDownGlyph: `\n <svg class=\"step-down-glyph\" viewBox=\"0 0 24 24\" width=\"1rem\" height=\"1rem\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z\"/>\n </svg>\n `,\n stepUpGlyph: `\n <svg class=\"step-up-glyph\" viewBox=\"0 0 24 24\" width=\"1rem\" height=\"1rem\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z\"/>\n </svg>\n `,\n};\n/**\n * The Foundation NumberField\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-number-field\\>\n */\nexport const foundationNumberField = NumberField.compose(Object.assign({ baseName: 'number-field', template,\n styles, shadowOptions: foundationNumberFieldShadowOptions }, defaultNumberFieldConfig));\n","import { __decorate } from \"tslib\";\nimport { attr, html, css } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { createPopper } from '@popperjs/core';\nexport const jsonConverter = {\n toView(value) {\n return JSON.stringify(value);\n },\n fromView(value) {\n if (value === null || value === undefined)\n return value;\n return JSON.parse(value);\n },\n};\n/**\n * @tagname %%prefix%%-popper\n */\nexport class Popper extends FoundationElement {\n constructor() {\n super(...arguments);\n this.show = false;\n this.event = 'click';\n this.placement = 'bottom';\n this.flip = false;\n }\n selectorChanged(oldValue, newValue) {\n if (newValue === oldValue)\n return;\n if (this.popper)\n this.popper.destroy();\n if (this.target) {\n this.target.removeEventListener(this.event, this.toggle.bind(this));\n }\n this.target = this.getRootNode().querySelector(this.selector);\n this.target.addEventListener(this.event, this.toggle.bind(this));\n this.popper = createPopper(this.target, this, this.buildOptions());\n }\n placementChanged() {\n if (this.popper)\n this.popper.setOptions(this.buildOptions());\n }\n offsetChanged() {\n if (this.popper)\n this.popper.setOptions(this.buildOptions());\n }\n flipChanged() {\n if (this.popper)\n this.popper.setOptions(this.buildOptions());\n }\n buildOptions() {\n const options = {\n placement: this.placement,\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: this.offset || [0, 0],\n },\n },\n {\n name: 'flip',\n enabled: this.flip,\n },\n ],\n };\n return options;\n }\n toggle() {\n this.show = !this.show;\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this.popper) {\n this.popper.destroy();\n this.popper = null;\n }\n }\n}\n__decorate([\n attr\n], Popper.prototype, \"selector\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Popper.prototype, \"show\", void 0);\n__decorate([\n attr\n], Popper.prototype, \"event\", void 0);\n__decorate([\n attr\n], Popper.prototype, \"placement\", void 0);\n__decorate([\n attr({ converter: jsonConverter })\n], Popper.prototype, \"offset\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], Popper.prototype, \"flip\", void 0);\nconst styles = css `\n :host {\n display: none;\n inset: unset !important;\n transform: unset !important;\n }\n\n :host([show]) {\n display: block;\n }\n`;\nconst template = html `\n <template>\n <slot></slot>\n </template>\n`;\n/**\n * The Foundation Popper\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-popper\\>\n */\nexport const foundationPopper = Popper.compose({\n baseName: 'popper',\n styles,\n template,\n});\n","import { progressStyles as fastProgressStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationProgressStyles = (context, definition) => css `\n ${fastProgressStyles(context, definition)}\n :host {\n height: calc(var(--design-unit) * 2px);\n }\n`;\n","import { progressTemplate as fastProgressTemplate } from '@microsoft/fast-foundation';\nexport const foundationProgressTemplate = (context, definition) => fastProgressTemplate(context, definition);\n","import { Progress as FASTProgress } from '@microsoft/fast-components';\nimport { foundationProgressStyles as styles } from './progress.styles';\nimport { foundationProgressTemplate as template } from './progress.template';\nexport class Progress extends FASTProgress {\n}\n// explicitly declaring for extensibility\nexport const foundationProgressShadowOptions = undefined;\nexport const defaultProgressConfig = {\n indeterminateIndicator1: `<span class=\"indeterminate-indicator-1\" part=\"indeterminate-indicator-1\"></span>`,\n indeterminateIndicator2: `<span class=\"indeterminate-indicator-1\" part=\"indeterminate-indicator-1\"></span>`,\n};\n/**\n * The Foundation Progress\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-progress\\>\n */\nexport const foundationProgress = Progress.compose(Object.assign({ baseName: 'progress', template,\n styles, shadowOptions: foundationProgressShadowOptions }, defaultProgressConfig));\n","import { progressRingStyles as fastProgressRingStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationProgressRingStyles = (context, definition) => css `\n ${fastProgressRingStyles(context, definition)}\n`;\n","import { progressRingTemplate as fastProgressRingTemplate } from '@microsoft/fast-foundation';\nexport const foundationProgressRingTemplate = (context, definition) => fastProgressRingTemplate(context, definition);\n","import { Progress as FASTProgressRing } from '@microsoft/fast-components';\nimport { foundationProgressRingStyles as styles } from './progress-ring.styles';\nimport { foundationProgressRingTemplate as template } from './progress-ring.template';\nexport class ProgressRing extends FASTProgressRing {\n}\n// explicitly declaring for extensibility\nexport const foundationProgressRingShadowOptions = undefined;\nexport const defaultProgressRingConfig = {\n indeterminateIndicator: `\n <svg class=\"progress\" part=\"progress\" viewBox=\"0 0 16 16\">\n <circle class=\"background\" part=\"background\" cx=\"8px\" cy=\"8px\" r=\"7px\"></circle>\n <circle class=\"indeterminate-indicator-1\" part=\"indeterminate-indicator-1\" cx=\"8px\" cy=\"8px\" r=\"7px\"></circle>\n </svg>\n `,\n};\n/**\n * The Foundation Progress Ring\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-progress-ring\\>\n */\nexport const foundationProgressRing = ProgressRing.compose(Object.assign({ baseName: 'progress-ring', template,\n styles, shadowOptions: foundationProgressRingShadowOptions }, defaultProgressRingConfig));\n","import { radioStyles as fastRadioStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationRadioStyles = (context, definition) => css `\n ${fastRadioStyles(context, definition)}\n`;\n","import { radioTemplate as fastRadioTemplate } from '@microsoft/fast-foundation';\nexport const foundationRadioTemplate = (context, definition) => fastRadioTemplate(context, definition);\n","import { Radio as FASTRadio } from '@microsoft/fast-components';\nimport { foundationRadioStyles as styles } from './radio.styles';\nimport { foundationRadioTemplate as template } from './radio.template';\nexport class Radio extends FASTRadio {\n}\n// explicitly declaring for extensibility\nexport const foundationRadioShadowOptions = undefined;\nexport const defaultRadioConfig = {\n checkedIndicator: `\n <div part=\"checked-indicator\" class=\"checked-indicator\"></div>\n `,\n};\n/**\n * The Foundation Radio\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-radio\\>\n */\nexport const foundationRadio = Radio.compose(Object.assign({ baseName: 'radio', template,\n styles, shadowOptions: foundationRadioShadowOptions }, defaultRadioConfig));\n","import { radioGroupStyles as fastRadioGroupStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationRadioGroupStyles = (context, definition) => css `\n ${fastRadioGroupStyles(context, definition)}\n`;\n","import { radioGroupTemplate as fastRadioGroupTemplate } from '@microsoft/fast-foundation';\nexport const foundationRadioGroupTemplate = (context, definition) => fastRadioGroupTemplate(context, definition);\n","import { RadioGroup as FASTRadioGroup } from '@microsoft/fast-components';\nimport { foundationRadioGroupStyles as styles } from './radio-group.styles';\nimport { foundationRadioGroupTemplate as template } from './radio-group.template';\n/**\n * @tagname %%prefix%%-radio-group\n */\nexport class RadioGroup extends FASTRadioGroup {\n}\n// explicitly declaring for extensibility\nexport const foundationRadioGroupShadowOptions = undefined;\nexport const defaultRadioGroupConfig = {};\n/**\n * The Foundation Radio Group\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-radio-group\\>\n */\nexport const foundationRadioGroup = RadioGroup.compose(Object.assign({ baseName: 'radio-group', template,\n styles, shadowOptions: foundationRadioGroupShadowOptions }, defaultRadioGroupConfig));\n","import { radioGroupStyles as fastSegmentedControlStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSegmentedControlStyles = (context, definition) => css `\n ${fastSegmentedControlStyles(context, definition)}\n ::slotted(foundation-segmented-item:first-of-type) {\n border-radius: calc(var(--control-corner-radius) * 1px) 0 0\n calc(var(--control-corner-radius) * 1px);\n border-right-width: 0;\n }\n\n ::slotted(foundation-segmented-item:last-of-type) {\n border-radius: 0 calc(var(--control-corner-radius) * 1px)\n calc(var(--control-corner-radius) * 1px) 0;\n border-left-width: 0;\n }\n`;\n","import { radioGroupTemplate as fastSegmentedControlTemplate } from '@microsoft/fast-foundation';\nexport const foundationSegmentedControlTemplate = (context, definition) => fastSegmentedControlTemplate(context, definition);\n","import { RadioGroup as FASTRadioGroup } from '@microsoft/fast-foundation';\nimport { foundationSegmentedControlStyles as styles } from './segmented-control.styles';\nimport { foundationSegmentedControlTemplate as template } from './segmented-control.template';\n/**\n * @tagname %%prefix%%-segmented-control\n */\nexport class SegmentedControl extends FASTRadioGroup {\n valueChanged() {\n if (this.value === undefined) {\n if (this.slottedRadioButtons) {\n this.slottedRadioButtons.forEach((radio) => {\n radio.checked = false;\n });\n }\n }\n super.valueChanged();\n }\n}\n// explicitly declaring for extensibility\nexport const foundationSegmentedControlShadowOptions = undefined;\nexport const defaultSegmentedControlConfig = {};\n/**\n * The Foundation Segmented Control\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-segmented-control\\>\n */\nexport const foundationSegmentedControl = SegmentedControl.compose(Object.assign({ baseName: 'segmented-control', template,\n styles, shadowOptions: foundationSegmentedControlShadowOptions }, defaultSegmentedControlConfig));\n","import { radioStyles as fastSegmentedItemStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSegmentedItemStyles = (context, definition) => css `\n ${fastSegmentedItemStyles(context, definition)}\n :host {\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n cursor: pointer;\n }\n\n :host([aria-checked='true']) {\n background: var(--accent-foreground-rest);\n }\n`;\n","import { html } from '@microsoft/fast-element';\nexport const foundationSegmentedItemTemplate = (context, definition) => html `\n <template\n role=\"radio\"\n aria-checked=\"${(x) => x.checked}\"\n aria-required=\"${(x) => x.required}\"\n aria-disabled=\"${(x) => x.disabled}\"\n aria-readonly=\"${(x) => x.readOnly}\"\n @keypress=\"${(x, c) => x.keypressHandler(c.event)}\"\n @click=\"${(x, c) => x.clickHandler(c.event)}\"\n >\n <span>\n <slot></slot>\n </span>\n </template>\n`;\n","import { Radio as FASTRadio } from '@microsoft/fast-components';\nimport { foundationSegmentedItemStyles as styles } from './segmented-item.styles';\nimport { foundationSegmentedItemTemplate as template } from './segmented-item.template';\nexport class SegmentedItem extends FASTRadio {\n}\n// explicitly declaring for extensibility\nexport const foundationSegmentedItemShadowOptions = undefined;\nexport const defaultSegmentedItemConfig = {};\n/**\n * The Foundation Segmented item\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-segmented-item\\>\n */\nexport const foundationSegmentedItem = SegmentedItem.compose(Object.assign({ baseName: 'segmented-item', template,\n styles, shadowOptions: foundationSegmentedItemShadowOptions }, defaultSegmentedItemConfig));\n","import { selectStyles as fastSelectStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSelectStyles = (context, definition) => css `\n ${fastSelectStyles(context, definition)}\n`;\n","import { selectTemplate as fastSelectTemplate } from '@microsoft/fast-foundation';\nexport const foundationSelectTemplate = (context, definition) => fastSelectTemplate(context, definition);\n","import { Select as FASTSelect } from '@microsoft/fast-components';\nimport { foundationSelectStyles as styles } from './select.styles';\nimport { foundationSelectTemplate as template } from './select.template';\nexport class Select extends FASTSelect {\n}\n// explicitly declaring for extensibility\nexport const foundationSelectShadowOptions = undefined;\nexport const defaultSelectConfig = {\n indicator: `\n <svg\n class=\"select-indicator\"\n part=\"select-indicator\"\n viewBox=\"0 0 12 7\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z\"\n />\n </svg>\n `,\n};\n/**\n * The Foundation Select\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-select\\>\n */\nexport const foundationSelect = Select.compose(Object.assign({ baseName: 'select', template,\n styles, shadowOptions: foundationSelectShadowOptions }, defaultSelectConfig));\n","import { skeletonStyles as fastSkeletonStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSkeletonStyles = (context, definition) => css `\n ${fastSkeletonStyles(context, definition)}\n`;\n","import { skeletonTemplate as fastSkeletonTemplate } from '@microsoft/fast-foundation';\nexport const foundationSkeletonTemplate = (context, definition) => fastSkeletonTemplate(context, definition);\n","import { Skeleton as FASTSkeleton } from '@microsoft/fast-components';\nimport { foundationSkeletonStyles as styles } from './skeleton.styles';\nimport { foundationSkeletonTemplate as template } from './skeleton.template';\n/**\n * @tagname %%prefix%%-skeleton\n */\nexport class Skeleton extends FASTSkeleton {\n}\n// explicitly declaring for extensibility\nexport const foundationSkeletonShadowOptions = undefined;\nexport const defaultSkeletonConfig = {};\n/**\n * The Foundation Skeleton\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-skeleton\\>\n */\nexport const foundationSkeleton = Skeleton.compose(Object.assign({ baseName: 'skeleton', template,\n styles, shadowOptions: foundationSkeletonShadowOptions }, defaultSkeletonConfig));\n","import { sliderStyles as fastSliderStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSliderStyles = (context, definition) => css `\n ${fastSliderStyles(context, definition)}\n .track-progress {\n background-color: var(--accent-fill-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n`;\n","import { html, ref } from '@microsoft/fast-element';\nimport { limit, Orientation } from '@microsoft/fast-web-utilities';\n/**\n * The template for the {@link @microsoft/fast-foundation#(Slider:class)} component.\n * @public\n */\nexport const foundationSliderTemplate = (context, definition) => html `\n <template\n role=\"slider\"\n class=\"${(x) => (x.readOnly ? 'readonly' : '')}\n ${(x) => x.orientation || Orientation.horizontal}\"\n tabindex=\"${(x) => (x.disabled ? null : 0)}\"\n aria-valuetext=\"${(x) => x.valueTextFormatter(x.value)}\"\n aria-valuenow=\"${(x) => x.value}\"\n aria-valuemin=\"${(x) => x.min}\"\n aria-valuemax=\"${(x) => x.max}\"\n aria-disabled=\"${(x) => (x.disabled ? true : void 0)}\"\n aria-readonly=\"${(x) => (x.readOnly ? true : void 0)}\"\n aria-orientation=\"${(x) => x.orientation}\"\n class=\"${(x) => x.orientation}\"\n >\n <div part=\"positioning-region\" class=\"positioning-region\">\n <div ${ref('track')} part=\"track-container\" class=\"track\">\n <div\n class=\"track-progress\"\n style=\"${(x) => {\n const base = 1 - limit(0, 1, (parseInt(x.value) - x.min) / (x.max - x.min));\n const percentage = Math.round((1 - base) * 100);\n if (x.orientation === 'horizontal') {\n return x.isDragging\n ? `height: calc(var(--track-width) * 1px); width: ${percentage}%;`\n : `height: calc(var(--track-width) * 1px); width: ${percentage}%; transition: all 0.2s ease;`;\n }\n else {\n return x.isDragging\n ? `width: calc(var(--track-width) * 1px); height: ${percentage}%;`\n : `width: calc(var(--track-width) * 1px); height: ${percentage}%; transition: all 0.2s ease;`;\n }\n}}\"\n ></div>\n </div>\n <slot></slot>\n <div\n ${ref('thumb')}\n part=\"thumb-container\"\n class=\"thumb-container\"\n style=\"${(x) => x.position}\"\n >\n <slot name=\"thumb\">${definition.thumb || ''}</slot>\n </div>\n </div>\n </template>\n`;\n","import { Slider as FASTSlider } from '@microsoft/fast-components';\nimport { foundationSliderStyles as styles } from './slider.styles';\nimport { foundationSliderTemplate as template } from './slider.template';\nexport class Slider extends FASTSlider {\n}\n// explicitly declaring for extensibility\nexport const foundationSliderShadowOptions = undefined;\nexport const defaultSliderConfig = {\n thumb: `\n <div class=\"thumb-cursor\"></div>\n `,\n};\n/**\n * The Foundation Slider\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-slider\\>\n */\nexport const foundationSlider = Slider.compose(Object.assign({ baseName: 'slider', template,\n styles, shadowOptions: foundationSliderShadowOptions }, defaultSliderConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationSnackbarStyles = css `\n @keyframes append-animate {\n from {\n transform: translateX(100%);\n opacity: 0%;\n }\n\n to {\n transform: translateX(0%);\n opacity: 100%;\n }\n }\n\n @keyframes delete-animate {\n from {\n transform: translateX(0%);\n opacity: 100%;\n }\n\n to {\n transform: translateX(100%);\n opacity: 0%;\n }\n }\n\n :host {\n --snackbar-min-width: 356px;\n --snackbar-min-height: 55px;\n --snackbar-max-width: 496px;\n --snackbar-max-height: 55px;\n }\n\n .snackbar {\n animation: append-animate 0.3s linear;\n max-width: var(--snackbar-max-width);\n min-width: var(--snackbar-min-width);\n max-height: var(--snackbar-max-height);\n background-color: var(--fill-color);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border-width: thin;\n border-color: var(--neutral-fill-rest);\n box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);\n box-sizing: border-box;\n display: flex;\n position: fixed;\n bottom: 5px;\n flex-direction: row;\n padding: 2px 16px;\n }\n\n .snackbar-delete {\n animation: delete-animate 0.3s linear;\n opacity: 0%;\n }\n\n .snackbar::after {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n height: calc(100% - 2px);\n width: 2px;\n border-radius: 2px;\n }\n\n .content {\n display: flex;\n align-items: center;\n flex: 2;\n font-size: 12px;\n overflow: hidden;\n }\n\n .action {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n gap: 10px;\n flex: 1;\n overflow: hidden;\n }\n`;\n","import { html, ref, repeat } from '@microsoft/fast-element';\nexport const foundationSnackbarTemplate = html `\n <div class=\"snackbar ${(x) => x.deleteAnimation}\" ${ref('snackbar')}>\n <div part=\"content\" class=\"content\">\n <div>${(x) => { var _a; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || 'Place holder for error message'; }}</div>\n </div>\n <div part=\"action\" class=\"action\">\n ${repeat((x) => { var _a, _b, _c; return (_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.snackbar) === null || _c === void 0 ? void 0 : _c.confirmingActions; }, html `\n <foundation-button\n slot=\"action\"\n appearance=\"lightweight\"\n @click=${(x, c) => {\n var _a;\n x === null || x === void 0 ? void 0 : x.action();\n (_a = c.parent) === null || _a === void 0 ? void 0 : _a.dismiss();\n}}\n >\n ${(x) => x.label}\n </foundation-button>\n `)}\n </div>\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationSnackbarStyles as styles } from './snackbar.styles';\nimport { foundationSnackbarTemplate as template } from './snackbar.template';\nexport const foundationSnackbarShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nconst CLOSE_TIMEOUT = 10000;\n/**\n * @tagname %%prefix%%-snackbar\n */\nexport class Snackbar extends FoundationElement {\n constructor() {\n super(...arguments);\n this.deleteAnimation = '';\n this.closeTimeout = CLOSE_TIMEOUT;\n this.autoClose = true;\n this.type = '';\n }\n connectedCallback() {\n super.connectedCallback();\n if (this.autoClose) {\n setTimeout(() => {\n this.deleteAnimation = 'snackbar-delete';\n this.snackbar.onanimationend = () => {\n this.dismiss();\n };\n }, this.closeTimeout);\n }\n }\n errorChanged(oldValue, newValue) {\n var _a, _b, _c;\n this.type = (_c = (_b = (_a = newValue === null || newValue === void 0 ? void 0 : newValue.config) === null || _a === void 0 ? void 0 : _a.snackbar) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : '';\n }\n /**\n * Remove the snackbar from display.\n */\n dismiss() {\n this.remove();\n }\n}\n__decorate([\n observable\n], Snackbar.prototype, \"error\", void 0);\n__decorate([\n observable\n], Snackbar.prototype, \"deleteAnimation\", void 0);\n__decorate([\n attr({ attribute: 'close-timeout' })\n], Snackbar.prototype, \"closeTimeout\", void 0);\n__decorate([\n attr({ attribute: 'auto-close' })\n], Snackbar.prototype, \"autoClose\", void 0);\n__decorate([\n attr({ attribute: 'type' })\n], Snackbar.prototype, \"type\", void 0);\n/**\n * The Foundation Snackbar\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-snackbar\\>\n */\nexport const foundationSnackbar = Snackbar.compose({\n baseName: 'snackbar',\n styles,\n template,\n shadowOptions: foundationSnackbarShadowOptions,\n});\n","import { switchStyles as fastSwitchStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationSwitchStyles = (context, definition) => css `\n ${fastSwitchStyles(context, definition)}\n .checked-indicator {\n transform: scale(1.3);\n }\n\n .switch {\n border-radius: calc(var(--control-corner-radius) * 3px);\n }\n\n .checked-indicator {\n border-radius: calc(var(--control-corner-radius) * 2px);\n }\n`;\n","import { switchTemplate as fastSwitchTemplate } from '@microsoft/fast-foundation';\nexport const foundationSwitchTemplate = (context, definition) => fastSwitchTemplate(context, definition);\n","import { Switch as FASTSwitch } from '@microsoft/fast-components';\nimport { foundationSwitchStyles as styles } from './switch.styles';\nimport { foundationSwitchTemplate as template } from './switch.template';\nexport class Switch extends FASTSwitch {\n}\n// explicitly declaring for extensibility\nexport const foundationSwitchShadowOptions = undefined;\nexport const defaultSwitchConfig = {\n switch: `<div class=\"checked-indicator\" part=\"checked-indicator\"></div>`,\n};\n/**\n * The Foundation Switch\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-switch\\>\n */\nexport const foundationSwitch = Switch.compose(Object.assign({ baseName: 'switch', template,\n styles, shadowOptions: foundationSwitchShadowOptions }, defaultSwitchConfig));\n","import { tabStyles as fastTabStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTabStyles = (context, definition) => css `\n ${fastTabStyles(context, definition)}\n`;\n","import { tabTemplate as fastTabTemplate } from '@microsoft/fast-foundation';\nexport const foundationTabTemplate = (context, definition) => fastTabTemplate(context, definition);\n","import { Tab as FASTTab } from '@microsoft/fast-components';\nimport { foundationTabStyles as styles } from './tab.styles';\nimport { foundationTabTemplate as template } from './tab.template';\n/**\n * @tagname %%prefix%%-tab\n */\nexport class Tab extends FASTTab {\n}\n// explicitly declaring for extensibility\nexport const foundationTabShadowOptions = undefined;\nexport const defaultTabConfig = {};\n/**\n * The Foundation Tab\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tab\\>\n */\nexport const foundationTab = Tab.compose(Object.assign({ baseName: 'tab', template,\n styles, shadowOptions: foundationTabShadowOptions }, defaultTabConfig));\n","import { tabPanelStyles as fastTabPanelStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTabPanelStyles = (context, definition) => css `\n ${fastTabPanelStyles(context, definition)}\n`;\n","import { tabPanelTemplate as fastTabPanelTemplate } from '@microsoft/fast-foundation';\nexport const foundationTabPanelTemplate = (context, definition) => fastTabPanelTemplate(context, definition);\n","import { TabPanel as FASTTabPanel } from '@microsoft/fast-components';\nimport { foundationTabPanelStyles as styles } from './tab-panel.styles';\nimport { foundationTabPanelTemplate as template } from './tab-panel.template';\n/**\n * @tagname %%prefix%%-tab-panel\n */\nexport class TabPanel extends FASTTabPanel {\n}\n// explicitly declaring for extensibility\nexport const foundationTabPanelShadowOptions = undefined;\nexport const defaultTabPanelConfig = {};\n/**\n * The Foundation Tab Panel\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tab-panel\\>\n */\nexport const foundationTabPanel = TabPanel.compose(Object.assign({ baseName: 'tab-panel', template,\n styles, shadowOptions: foundationTabPanelShadowOptions }, defaultTabPanelConfig));\n","import { tabsStyles as fastTabsStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTabsStyles = (context, definition) => css `\n ${fastTabsStyles(context, definition)}\n`;\n","import { tabsTemplate as fastTabsTemplate } from '@microsoft/fast-foundation';\nexport const foundationTabsTemplate = (context, definition) => fastTabsTemplate(context, definition);\n","import { Tabs as FASTTabs } from '@microsoft/fast-components';\nimport { foundationTabsStyles as styles } from './tabs.styles';\nimport { foundationTabsTemplate as template } from './tabs.template';\n/**\n * @tagname %%prefix%%-tabs\n */\nexport class Tabs extends FASTTabs {\n}\n// explicitly declaring for extensibility\nexport const foundationTabsShadowOptions = undefined;\nexport const defaultTabsConfig = {};\n/**\n * The Foundation Tabs\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tabs\\>\n */\nexport const foundationTabs = Tabs.compose(Object.assign({ baseName: 'tabs', template,\n styles, shadowOptions: foundationTabsShadowOptions }, defaultTabsConfig));\n","import { textAreaStyles as fastTextAreaStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTextAreaStyles = (context, definition) => css `\n ${fastTextAreaStyles(context, definition)}\n :host .control {\n padding: calc(var(--design-unit) * 3px);\n }\n`;\n","import { textAreaTemplate as fastTextAreaTemplate } from '@microsoft/fast-foundation';\nexport const foundationTextAreaTemplate = (context, definition) => fastTextAreaTemplate(context, definition);\n","import { TextArea as FASTTextArea } from '@microsoft/fast-components';\nimport { foundationTextAreaStyles as styles } from './text-area.styles';\nimport { foundationTextAreaTemplate as template } from './text-area.template';\n/**\n * @tagname %%prefix%%-text-area\n */\nexport class TextArea extends FASTTextArea {\n}\n// explicitly declaring for extensibility\nexport const foundationTextAreaShadowOptions = undefined;\nexport const defaultTextAreaConfig = {};\n/**\n * The Foundation Text Area\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-text-area\\>\n */\nexport const foundationTextArea = TextArea.compose(Object.assign({ baseName: 'text-area', template,\n styles, shadowOptions: foundationTextAreaShadowOptions }, defaultTextAreaConfig));\n","import { activeColorScheme } from '@genesislcap/foundation-utils';\nimport { textFieldStyles as fastTextFieldStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTextFieldStyles = (context, definition) => css `\n ${fastTextFieldStyles(context, definition)}\n\n input {\n color-scheme: ${activeColorScheme};\n }\n`;\n","import { html, ref, slotted } from '@microsoft/fast-element';\nimport { endSlotTemplate, startSlotTemplate, whitespaceFilter, } from '@microsoft/fast-foundation';\n/**\n * TODO: Raise PR against FAST\n * Unfortunately this template is almost a complete duplicate of the original fast version, just with additional\n * input atts required for auto completion.\n */\nexport const foundationTextFieldTemplate = (context, definition) => html `\n <template\n class=\"\n ${(x) => (x.readOnly ? 'readonly' : '')}\n \"\n >\n <label\n part=\"label\"\n for=\"${(x) => (x.id ? x.id : 'control')}\"\n class=\"${(x) => x.defaultSlottedNodes && x.defaultSlottedNodes.length ? 'label' : 'label label__hidden'}\"\n >\n <slot ${slotted({ property: 'defaultSlottedNodes', filter: whitespaceFilter })}></slot>\n </label>\n <div class=\"root\" part=\"root\">\n ${startSlotTemplate(context, definition)}\n <input\n name=\"${(x) => x.name}\"\n autocomplete=\"${(x) => x.autocomplete}\"\n autocapitalize=\"${(x) => x.autocapitalize}\"\n id=\"${(x) => (x.id ? x.id : 'control')}\"\n class=\"control\"\n part=\"control\"\n @input=\"${(x) => x.handleTextInput()}\"\n @change=\"${(x) => x.handleChange()}\"\n step=\"${(x) => x.step}\"\n ?autofocus=\"${(x) => x.autofocus}\"\n ?disabled=\"${(x) => x.disabled}\"\n list=\"${(x) => x.list}\"\n maxlength=\"${(x) => x.maxlength}\"\n minlength=\"${(x) => x.minlength}\"\n pattern=\"${(x) => x.pattern}\"\n placeholder=\"${(x) => x.placeholder}\"\n ?readonly=\"${(x) => x.readOnly}\"\n ?required=\"${(x) => x.required}\"\n size=\"${(x) => x.size}\"\n ?spellcheck=\"${(x) => x.spellcheck}\"\n :value=\"${(x) => x.value}\"\n type=\"${(x) => x.type}\"\n aria-atomic=\"${(x) => x.ariaAtomic}\"\n aria-busy=\"${(x) => x.ariaBusy}\"\n aria-controls=\"${(x) => x.ariaControls}\"\n aria-current=\"${(x) => x.ariaCurrent}\"\n aria-describedby=\"${(x) => x.ariaDescribedby}\"\n aria-details=\"${(x) => x.ariaDetails}\"\n aria-disabled=\"${(x) => x.ariaDisabled}\"\n aria-errormessage=\"${(x) => x.ariaErrormessage}\"\n aria-flowto=\"${(x) => x.ariaFlowto}\"\n aria-haspopup=\"${(x) => x.ariaHaspopup}\"\n aria-hidden=\"${(x) => x.ariaHidden}\"\n aria-invalid=\"${(x) => x.ariaInvalid}\"\n aria-keyshortcuts=\"${(x) => x.ariaKeyshortcuts}\"\n aria-label=\"${(x) => x.ariaLabel}\"\n aria-labelledby=\"${(x) => x.ariaLabelledby}\"\n aria-live=\"${(x) => x.ariaLive}\"\n aria-owns=\"${(x) => x.ariaOwns}\"\n aria-relevant=\"${(x) => x.ariaRelevant}\"\n aria-roledescription=\"${(x) => x.ariaRoledescription}\"\n ${ref('control')}\n />\n ${endSlotTemplate(context, definition)}\n </div>\n </template>\n`;\n","import { __decorate } from \"tslib\";\nimport { TextField as FASTTextField } from '@microsoft/fast-components';\nimport { attr } from '@microsoft/fast-element';\nimport { foundationTextFieldStyles as styles } from './text-field.styles';\nimport { foundationTextFieldTemplate as template } from './text-field.template';\n// TODO: Raise a PR against FAST to get autocomplete stuff in place\n/**\n * @tagname %%prefix%%-text-field\n */\nexport class TextField extends FASTTextField {\n constructor() {\n super(...arguments);\n this.autocapitalize = 'off';\n }\n autocompleteChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.autocomplete = this.autocomplete;\n }\n }\n autocapitalizeChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.autocapitalize = this.autocapitalize;\n }\n }\n}\n__decorate([\n attr\n], TextField.prototype, \"autocomplete\", void 0);\n__decorate([\n attr\n], TextField.prototype, \"autocapitalize\", void 0);\n__decorate([\n attr\n], TextField.prototype, \"step\", void 0);\n// explicitly declaring for extensibility\nexport const foundationTextFieldShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nexport const defaultTextFieldConfig = {};\n/**\n * The Foundation Text Fields\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-text-field\\>\n */\nexport const foundationTextField = TextField.compose(Object.assign({ baseName: 'text-field', template,\n styles, shadowOptions: foundationTextFieldShadowOptions }, defaultTextFieldConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationToastStyles = css `\n @keyframes append-animate {\n from {\n transform: translateX(100%);\n opacity: 0%;\n }\n\n to {\n transform: translateX(0%);\n opacity: 100%;\n }\n }\n\n @keyframes delete-animate {\n from {\n transform: translateX(0%);\n opacity: 100%;\n }\n\n to {\n transform: translateX(100%);\n opacity: 0%;\n }\n }\n\n :host {\n --toast-min-width: 356px;\n --toast-min-height: 128px;\n --toast-max-width: 356px;\n --toast-max-height: 272px;\n }\n\n .toast {\n animation: append-animate 0.3s linear;\n max-width: var(--toast-max-width);\n min-width: var(--toast-min-width);\n background-color: var(--fill-color);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border-width: thin;\n border-color: var(--neutral-fill-rest);\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n display: flex;\n position: relative;\n flex-direction: row;\n padding: 8px 8px 8px 15px;\n margin: 5px;\n }\n\n .toast-delete {\n animation: delete-animate 0.3s linear;\n opacity: 0%;\n }\n\n .toast::after {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 5px;\n height: calc(100% - 10px);\n width: 4px;\n border-radius: 2px;\n background-color: red;\n }\n\n .content-wrapper {\n height: fit-content;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .bottom {\n width: 70%;\n }\n\n .top {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n .content {\n width: 85%;\n font-size: 12px;\n overflow-wrap: break-word;\n }\n\n .date {\n color: var(--neutral-foreground-hint);\n font-size: 12px;\n margin: 0 0 5px;\n }\n\n .close-icon svg {\n cursor: pointer;\n }\n`;\n","import { html, ref } from '@microsoft/fast-element';\nimport { closeIcon } from '../_common/icons';\nexport const foundationToastTemplate = html `\n <div class=\"toast ${(x) => x.deleteAnimation}\" ${ref('toast')}>\n <div class=\"content-wrapper\">\n <div part=\"top\" class=\"top\">\n <slot name=\"top\"></slot>\n <div class=\"close-icon\" @click=${(x) => x.close()}>${closeIcon()}</div>\n </div>\n <div part=\"content\" class=\"content\">\n <slot name=\"content\"></slot>\n </div>\n <div part=\"date\" class=\"date\">\n <slot name=\"date\"></slot>\n </div>\n <div part=\"bottom\" class=\"bottom\">\n <slot name=\"bottom\"></slot>\n </div>\n </div>\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { attr, observable } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { foundationToastStyles as styles } from './toast.styles';\nimport { foundationToastTemplate as template } from './toast.template';\n// explicitly declaring for extensibility\nexport const foundationToastShadowOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\nexport const defaultToastConfig = {};\n/**\n * @tagname %%prefix%%-toast\n */\nexport class Toast extends FoundationElement {\n constructor() {\n super(...arguments);\n this.deleteAnimation = '';\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n this.closeTimeout = 10000;\n this.autoClose = false;\n }\n connectedCallback() {\n super.connectedCallback();\n if (this.autoClose) {\n setTimeout(() => {\n this.deleteAnimation = 'toast-delete';\n this.toast.onanimationend = () => {\n this.remove();\n };\n }, this.closeTimeout);\n }\n }\n /**\n * Remove the toast from display.\n */\n close() {\n this.remove();\n }\n}\n__decorate([\n observable\n], Toast.prototype, \"deleteAnimation\", void 0);\n__decorate([\n attr({ attribute: 'close-timeout' })\n], Toast.prototype, \"closeTimeout\", void 0);\n__decorate([\n attr({ attribute: 'auto-close' })\n], Toast.prototype, \"autoClose\", void 0);\n/**\n * The Foundation Toast\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-toast\\>\n */\nexport const foundationToast = Toast.compose(Object.assign({ baseName: 'toast', styles,\n template, shadowOptions: foundationToastShadowOptions }, defaultToastConfig));\n","import { toolbarStyles as fastToolbarStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationToolbarStyles = (context, definition) => css `\n ${fastToolbarStyles(context, definition)}\n`;\n","import { toolbarTemplate as fastToolbarTemplate } from '@microsoft/fast-foundation';\nexport const foundationToolbarTemplate = (context, definition) => fastToolbarTemplate(context, definition);\n","import { Toolbar as FASTToolbar } from '@microsoft/fast-components';\nimport { foundationToolbarStyles as styles } from './toolbar.styles';\nimport { foundationToolbarTemplate as template } from './toolbar.template';\n/**\n * @tagname %%prefix%%-toolbar\n */\nexport class Toolbar extends FASTToolbar {\n}\n// explicitly declaring for extensibility\nexport const foundationToolbarShadowOptions = undefined;\nexport const defaultToolbarConfig = {};\n/**\n * The Foundation Toolbar\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-toolbar\\>\n */\nexport const foundationToolbar = Toolbar.compose(Object.assign({ baseName: 'toolbar', template,\n styles, shadowOptions: foundationToolbarShadowOptions }, defaultToolbarConfig));\n","import { tooltipStyles as fastTooltipStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTooltipStyles = (context, definition) => css `\n ${fastTooltipStyles(context, definition)}\n`;\n","import { tooltipTemplate as fastTooltipTemplate } from '@microsoft/fast-foundation';\nexport const foundationTooltipTemplate = (context, definition) => fastTooltipTemplate(context, definition);\n","import { Tooltip as FASTTooltip } from '@microsoft/fast-components';\nimport { foundationTooltipStyles as styles } from './tooltip.styles';\nimport { foundationTooltipTemplate as template } from './tooltip.template';\n/**\n * @tagname %%prefix%%-tooltip\n */\nexport class Tooltip extends FASTTooltip {\n}\n// explicitly declaring for extensibility\nexport const foundationTooltipShadowOptions = undefined;\nexport const defaultTooltipConfig = {};\n/**\n * The Foundation Tooltip\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tooltip\\>\n */\nexport const foundationTooltip = Tooltip.compose(Object.assign({ baseName: 'tooltip', template,\n styles, shadowOptions: foundationTooltipShadowOptions }, defaultTooltipConfig));\n","import { treeItemStyles as fastTreeItemStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTreeItemStyles = (context, definition) => css `\n ${fastTreeItemStyles(context, definition)}\n :host {\n --focus-stroke-width: 0;\n --tree-item-nested-width: 1em;\n }\n\n :host([selected])::after {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);\n width: 5px;\n top: 0;\n border-radius: 0;\n }\n\n .positioning-region {\n height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);\n }\n`;\n","import { treeItemTemplate as fastTreeItemTemplate } from '@microsoft/fast-foundation';\nexport const foundationTreeItemTemplate = (context, definition) => fastTreeItemTemplate(context, definition);\n","import { TreeItem as FASTTreeItem } from '@microsoft/fast-components';\nimport { foundationTreeItemStyles as styles } from './tree-item.styles';\nimport { foundationTreeItemTemplate as template } from './tree-item.template';\nexport class TreeItem extends FASTTreeItem {\n}\n// explicitly declaring for extensibility\nexport const foundationTreeItemShadowOptions = undefined;\nexport const defaultTreeItemConfig = {\n expandCollapseGlyph: `\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" class=\"expand-collapse-glyph\">\n <path d=\"M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z\"></path>\n </svg>`,\n};\n/**\n * The Foundation Tree item\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tree-item\\>\n */\nexport const foundationTreeItem = TreeItem.compose(Object.assign({ baseName: 'tree-item', template,\n styles, shadowOptions: foundationTreeItemShadowOptions }, defaultTreeItemConfig));\n","import { treeViewStyles as fastTreeViewStyles } from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nexport const foundationTreeViewStyles = (context, definition) => css `\n ${fastTreeViewStyles(context, definition)}\n`;\n","import { treeViewTemplate as fastTreeViewTemplate } from '@microsoft/fast-foundation';\nexport const foundationTreeViewTemplate = (context, definition) => fastTreeViewTemplate(context, definition);\n","import { TreeView as FASTTreeView } from '@microsoft/fast-foundation';\nimport { foundationTreeViewStyles as styles } from './tree-view.styles';\nimport { foundationTreeViewTemplate as template } from './tree-view.template';\n/**\n * @tagname %%prefix%%-tree-view\n */\nexport class TreeView extends FASTTreeView {\n}\n// explicitly declaring for extensibility\nexport const foundationTreeViewShadowOptions = undefined;\nexport const defaultTreeViewConfig = {};\n/**\n * The Foundation Tree View\n *\n * @public\n * @remarks\n * HTML Element: \\<foundation-tree-view\\>\n */\nexport const foundationTreeView = TreeView.compose(Object.assign({ baseName: 'tree-view', template,\n styles, shadowOptions: foundationTreeViewShadowOptions }, defaultTreeViewConfig));\n","import { css } from '@microsoft/fast-element';\nexport const foundationUrlInputStyles = (context, definition) => css `\n .container {\n position: relative;\n width: 100%;\n }\n\n .url-input {\n position: relative;\n width: 100%;\n }\n\n .url-input-link {\n position: absolute;\n left: 10px;\n top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n`;\n","import { html, when } from '@microsoft/fast-element';\nexport const urlinputTemplate = html `\n <div class=\"container\" value=${(x) => x.value}>\n <fast-text-field\n class=\"url-input\"\n required\n type=\"url\"\n :value=${(x) => (x.focused && !x.readOnly ? x.value : '')}\n @blur=${(x, c) => { var _a; return (!x.readOnly ? x.saveUrl((_a = c.event) === null || _a === void 0 ? void 0 : _a.target['value']) : ''); }}\n @focus=${(x) => x.focus()}\n :readOnly=${(x) => x.readOnly}\n }\n ></fast-text-field>\n ${when((x) => x.readOnly || !x.focused, html `\n <a class=\"url-input-link\" href=${(x) => x.value} target=\"_blank\">${(x) => x.value}</a>\n `)}\n </div>\n`;\n","import { __decorate } from \"tslib\";\nimport { TextField as FASTTextField } from '@microsoft/fast-components';\nimport { observable } from '@microsoft/fast-element';\nimport { foundationUrlInputStyles as styles } from './url-input.styles';\nimport { urlinputTemplate as template } from './url-input.template';\nexport const foundationUrlInputShadowOptions = undefined;\nexport const defaultUrlInputConfig = {};\n/**\n * @tagname %%prefix%%-url-input\n */\nexport class UrlInput extends FASTTextField {\n constructor() {\n super(...arguments);\n this.value = '';\n }\n saveUrl(url) {\n this.value = url.startsWith('http') ? url : 'https://' + url;\n this.focused = false;\n }\n focus() {\n this.focused = true;\n }\n}\n__decorate([\n observable\n], UrlInput.prototype, \"value\", void 0);\n__decorate([\n observable\n], UrlInput.prototype, \"focused\", void 0);\nexport const foundationUrlInput = UrlInput.compose(Object.assign({ baseName: 'url-input', template,\n styles, shadowOptions: foundationUrlInputShadowOptions }, defaultUrlInputConfig));\n","// Genesis Foundation Zero\nimport { foundationActionsMenu } from './actions-menu';\nimport { foundationAnchor } from './anchor';\nimport { foundationBadge } from './badge';\nimport { foundationBanner } from './banner';\nimport { foundationBreadcrumb } from './breadcrumb';\nimport { foundationBreadcrumbItem } from './breadcrumb-item';\nimport { foundationButton } from './button';\nimport { foundationCard } from './card';\nimport { foundationCheckbox } from './checkbox';\nimport { foundationCombobox } from './combobox';\nimport { foundationConnectionIndicator } from './connection-indicator';\nimport { foundationDataGrid } from './data-grid';\nimport { foundationDataGridCell } from './data-grid-cell';\nimport { foundationDataGridRow } from './data-grid-row';\nimport { foundationDatePicker } from './date-picker';\nimport { foundationDesignSystemProvider } from './design-system-provider';\nimport { foundationDialog } from './dialog';\nimport { foundationDisclosure } from './disclosure';\nimport { foundationDivider } from './divider';\nimport { foundationDropdownMenu } from './dropdown-menu';\nimport { foundationErrorBanner } from './error-banner';\nimport { foundationErrorBoundary } from './error-boundary';\nimport { foundationErrorDialog } from './error-dialog';\nimport { foundationFileUpload } from './file-upload';\nimport { foundationFilter } from './filter/';\nimport { foundationFilterBar } from './filter-bar/';\nimport { foundationFlexLayout } from './flex-layout';\nimport { foundationFlipper } from './flipper/';\nimport { foundationFlyout } from './flyout/';\nimport { foundationGridLayout } from './grid-layout';\nimport { foundationGridLayoutItem } from './grid-layout-item';\nimport { foundationIcon } from './icon';\nimport { foundationListboxOption } from './listbox-option';\nimport { foundationMenu } from './menu';\nimport { foundationMenuItem } from './menu-item';\nimport { foundationModal } from './modal';\nimport { foundationMultiselect } from './multiselect';\nimport { foundationNumberField } from './number-field';\nimport { foundationPopper } from './popper';\nimport { foundationProgress } from './progress';\nimport { foundationProgressRing } from './progress-ring';\nimport { foundationRadio } from './radio';\nimport { foundationRadioGroup } from './radio-group';\nimport { foundationSegmentedControl } from './segmented-control';\nimport { foundationSegmentedItem } from './segmented-item';\nimport { foundationSelect } from './select/index';\nimport { foundationSkeleton } from './skeleton';\nimport { foundationSlider } from './slider';\nimport { foundationSnackbar } from './snackbar';\nimport { foundationSwitch } from './switch';\nimport { foundationTab } from './tab';\nimport { foundationTabPanel } from './tab-panel';\nimport { foundationTabs } from './tabs';\nimport { foundationTextArea } from './text-area';\nimport { foundationTextField } from './text-field';\nimport { foundationToast } from './toast';\nimport { foundationToolbar } from './toolbar';\nimport { foundationTooltip } from './tooltip';\nimport { foundationTreeItem } from './tree-item';\nimport { foundationTreeView } from './tree-view';\nimport { foundationUrlInput } from './url-input';\nexport const baseComponents = {\n foundationActionsMenu,\n foundationAnchor,\n foundationBadge,\n foundationBanner,\n foundationBreadcrumbItem,\n foundationBreadcrumb,\n foundationButton,\n foundationCard,\n foundationCheckbox,\n foundationCombobox,\n foundationConnectionIndicator,\n foundationDataGrid,\n foundationDataGridCell,\n foundationDataGridRow,\n foundationDatePicker,\n foundationDesignSystemProvider,\n foundationDialog,\n foundationDisclosure,\n foundationDivider,\n foundationDropdownMenu,\n foundationErrorBoundary,\n foundationErrorBanner,\n foundationErrorDialog,\n foundationFileUpload,\n foundationFilter,\n foundationFilterBar,\n foundationFlexLayout,\n foundationFlipper,\n foundationFlyout,\n foundationGridLayout,\n foundationGridLayoutItem,\n foundationIcon,\n foundationListboxOption,\n foundationMenu,\n foundationMenuItem,\n foundationModal,\n foundationMultiselect,\n foundationNumberField,\n foundationProgress,\n foundationPopper,\n foundationProgressRing,\n foundationRadio,\n foundationRadioGroup,\n foundationSegmentedControl,\n foundationSegmentedItem,\n foundationSelect,\n foundationSkeleton,\n foundationSlider,\n foundationSnackbar,\n foundationSwitch,\n foundationTab,\n foundationTabPanel,\n foundationTabs,\n foundationTextArea,\n foundationTextField,\n foundationToast,\n foundationToolbar,\n foundationTooltip,\n foundationTreeItem,\n foundationTreeView,\n foundationUrlInput,\n register(container, ...rest) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n};\n","import { DesignSystem } from '@microsoft/fast-foundation';\nimport * as tokens from './_config/tokens';\nimport * as values from './_config/values';\nimport { provideTokens } from './design-system-provider';\nexport function createDesignSystemProxy(designSystem) {\n return new Proxy(designSystem, {\n get: (target, prop, ...rest) => {\n if (['withPrefix', 'withShadowRootMode', 'withElementDisambiguation'].includes(prop)) {\n throw new Error('Modification of the Design System is not allowed.');\n }\n return Reflect.get(target, prop, ...rest);\n },\n });\n}\n/**\n * Provides a design system for the specified element either by returning one that was\n * already created for that element or creating one.\n * @param element - The element to root the design system at. By default, this is the body.\n * @returns A Foundation Design System\n * @public\n */\nexport const provideDesignSystem = (element, prefix = 'foundation') => {\n if (element) {\n provideTokens(tokens, values, element);\n }\n const designSystem = DesignSystem.getOrCreate(element).withPrefix(prefix);\n return createDesignSystemProxy(designSystem);\n};\n","import { CSSDirective, cssPartial } from '@microsoft/fast-element';\nexport class CSSVarsTokenMapper extends CSSDirective {\n constructor(tokenMap) {\n super();\n this.tokenMap = tokenMap;\n }\n createTokenPartial(key, value) {\n return cssPartial `${key}: ${value}`;\n }\n createTokensCSS() {\n const styles = [];\n for (const [key, value] of Object.entries(this.tokenMap)) {\n styles.push(this.createTokenPartial(key, value).createCSS());\n }\n return styles;\n }\n createCSS() {\n return this.createTokensCSS().join(';');\n }\n}\n","import { __awaiter, __decorate } from \"tslib\";\nimport { Connect, dataServerResultFilter, Datasource, DatasourceDefaults, MessageType, normaliseCriteria, } from '@genesislcap/foundation-comms';\nimport { attr, DOM } from '@microsoft/fast-element';\nimport { FoundationElement } from '@microsoft/fast-foundation';\nimport { BehaviorSubject } from 'rxjs';\nimport { logger } from './logger';\nconst criteriaDelimiter = ';';\nconst criteriaJoin = ' && ';\nconst withoutFullInit = null;\nexport class BaseDatasource extends FoundationElement {\n constructor() {\n super(...arguments);\n this.withGridInit = true;\n this.isSnapshot = false;\n this.maxRows = DatasourceDefaults.MAX_ROWS_250;\n this.maxView = DatasourceDefaults.MAX_VIEW_1000;\n this.reverse = false;\n this.rowId = 'ROW_REF';\n /**\n * Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.\n * @public\n */\n this.withTimestampFormatting = true;\n this.requiresFullDataRefresh = true;\n this.rowsSyncedWithStream = new Map();\n this.dataSubWasLoggedOff = false;\n this.criteriaFromFilters = new Map();\n this.update = new BehaviorSubject(new Map());\n }\n set datasourceConfig(config) {\n if (config) {\n Object.keys(config).forEach((key) => {\n if (config[key] !== undefined) {\n this[key] = config[key];\n }\n });\n }\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.clearData();\n }\n // Genesis Specific\n reset() {\n this.requiresFullDataRefresh = true;\n this.fetchGenesisData();\n }\n fetchGenesisData(withFullInit = true) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.data) {\n this.syncComponentData(this.data);\n return;\n }\n const requiresMetadataFetch = withFullInit || !this.datasource.initialized;\n if (!requiresMetadataFetch) {\n this.connect.dataLogoff(this.sourceRef);\n this.clearData();\n }\n const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);\n if (!initOK) {\n logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);\n return;\n }\n if (this.isSnapshot) {\n const rowData = yield this.datasource.snapshotFiltered();\n this.syncComponentData(rowData);\n return;\n }\n logger.debug(`requesting stream for ${this.resourceName}`);\n this.dataSub = this.datasource.stream.subscribe((result) => {\n this.sourceRef = result.SOURCE_REF;\n const messageType = result.MESSAGE_TYPE;\n if (messageType && messageType === MessageType.LOGOFF_ACK) {\n this.dataSubWasLoggedOff = true;\n return;\n }\n this.dataSubWasLoggedOff = false;\n if (result.ROW) {\n const nextMessage = dataServerResultFilter(result);\n this.handleStreamUpdate(nextMessage);\n }\n else {\n this.handleStreamUpdate(result);\n }\n });\n });\n }\n initDatasource() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.datasource.init(this.datasourceOptions(), true);\n });\n }\n datasourceOptions() {\n return {\n criteria: this.buildCriteria(),\n fields: this.fields,\n isSnapshot: this.isSnapshot,\n orderBy: this.orderBy,\n resourceName: this.resourceName,\n request: this.request,\n reverse: this.reverse,\n maxRows: this.maxRows,\n maxView: this.maxView,\n };\n }\n handleStreamUpdate(result) {\n if (!result)\n return;\n const isRequestServer = result.hasOwnProperty('REPLY');\n if (isRequestServer) {\n this.applyRequestServerData(result);\n }\n else {\n this.applyDataserverData(result);\n }\n }\n applyRequestServerData(requestServerResult) {\n var _a, _b;\n if (!Array.isArray(requestServerResult.REPLY) ||\n !((_a = requestServerResult.MESSAGE_TYPE) === null || _a === void 0 ? void 0 : _a.startsWith('REP_'))) {\n logger.error('received invalid RequestServerResult', requestServerResult);\n return;\n }\n if (this.requiresFullDataRefresh) {\n if (this.rowId !== 'ROW_REF') {\n (_b = requestServerResult.REPLY) === null || _b === void 0 ? void 0 : _b.forEach((insertData) => {\n this.rowsSyncedWithStream.set(insertData[this.rowId], insertData);\n });\n }\n const rowData = this.rowsSyncedWithStream.size > 0\n ? Array.from(this.rowsSyncedWithStream.values())\n : requestServerResult.REPLY;\n this.syncComponentData(rowData);\n return;\n }\n this.handleStreamInserts(requestServerResult.REPLY);\n const rowsToDelete = Array.from(this.rowsSyncedWithStream.values()).filter((row) => !requestServerResult.REPLY.includes(row));\n this.handleStreamDeletes(rowsToDelete);\n }\n applyDataserverData(dataServerResult) {\n var _a, _b, _c, _d;\n if (this.requiresFullDataRefresh) {\n (_a = dataServerResult.inserts) === null || _a === void 0 ? void 0 : _a.forEach((insertData) => {\n this.rowsSyncedWithStream.set(insertData[this.rowId], insertData);\n });\n const rowData = Array.from(this.rowsSyncedWithStream.values());\n this.syncComponentData(rowData);\n return;\n }\n if (((_b = dataServerResult.inserts) === null || _b === void 0 ? void 0 : _b.length) > 0) {\n this.handleStreamInserts(dataServerResult.inserts);\n }\n if (((_c = dataServerResult.deletes) === null || _c === void 0 ? void 0 : _c.length) > 0) {\n this.handleStreamDeletes(dataServerResult.deletes);\n }\n if (((_d = dataServerResult.updates) === null || _d === void 0 ? void 0 : _d.length) > 0) {\n this.handleStreamUpdates(dataServerResult.updates);\n }\n }\n buildCriteria() {\n var _a;\n const initialCriteria = ((_a = this.criteria) === null || _a === void 0 ? void 0 : _a.split(criteriaDelimiter)) || [];\n return normaliseCriteria(initialCriteria.join(criteriaJoin), criteriaDelimiter);\n }\n criteriaChanged(oldCriteria, newCriteria) {\n const firstCriteria = !oldCriteria && newCriteria;\n const criteriaNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);\n if (firstCriteria || criteriaNotDuplicate) {\n DOM.queueUpdate(() => this.fetchGenesisData(withoutFullInit));\n }\n }\n setFilter(fieldName, newFilter) {\n this.criteriaFromFilters.set(fieldName, newFilter);\n this.update.next(this.criteriaFromFilters);\n }\n removeFilter(fieldName) {\n this.criteriaFromFilters.delete(fieldName);\n this.update.next(this.criteriaFromFilters);\n }\n}\n__decorate([\n Connect\n], BaseDatasource.prototype, \"connect\", void 0);\n__decorate([\n Datasource\n], BaseDatasource.prototype, \"datasource\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], BaseDatasource.prototype, \"withGridInit\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"criteria\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"fields\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], BaseDatasource.prototype, \"isSnapshot\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"maxRows\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"maxView\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"orderBy\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"resourceName\", void 0);\n__decorate([\n attr({ mode: 'boolean' })\n], BaseDatasource.prototype, \"reverse\", void 0);\n__decorate([\n attr\n], BaseDatasource.prototype, \"rowId\", void 0);\n__decorate([\n attr({ mode: 'boolean', attribute: 'with-timestamp-formatting' })\n], BaseDatasource.prototype, \"withTimestampFormatting\", void 0);\n","import { __awaiter, __decorate } from \"tslib\";\nimport { customElement } from '@microsoft/fast-element';\nimport { BaseDatasource, logger } from '../utils';\nlet DataGridDatasource = class DataGridDatasource extends BaseDatasource {\n constructor() {\n super(...arguments);\n this.isSnapshot = true;\n }\n connectedCallback() {\n const _super = Object.create(null, {\n connectedCallback: { get: () => super.connectedCallback }\n });\n return __awaiter(this, void 0, void 0, function* () {\n _super.connectedCallback.call(this);\n this.dataGrid = this.parentElement;\n if (this.dataGrid && this.resourceName && this.connect.isConnected) {\n this.fetchGenesisData();\n }\n });\n }\n getColumnDefs(fieldsMetadata) {\n const colDefsFromGenesisData = fieldsMetadata === null || fieldsMetadata === void 0 ? void 0 : fieldsMetadata.flatMap((field) => {\n if (this.fields && !this.fields.includes(field.name)) {\n return [];\n }\n return { columnDataKey: field.name };\n });\n return colDefsFromGenesisData;\n }\n clearData() {\n logger.debug('clearData - Method not implemented.');\n }\n syncComponentData(snapshotData) {\n const rowData = snapshotData !== null && snapshotData !== void 0 ? snapshotData : Array.from(this.rowsSyncedWithStream.values());\n const columns = this.getColumnDefs(this.datasource.fieldMetadata);\n this.dataGrid.columnDefinitions = columns;\n this.dataGrid.rowsData = rowData;\n }\n handleStreamInserts(insertedRows) {\n logger.debug('handleStreamInserts - Method not implemented.');\n }\n handleStreamDeletes(deletedRows) {\n logger.debug('handleStreamDeletes - Method not implemented.');\n }\n handleStreamUpdates(updatedRows) {\n logger.debug('handleStreamUpdates - Method not implemented.');\n }\n};\nDataGridDatasource = __decorate([\n customElement({\n name: 'data-grid-datasource',\n })\n], DataGridDatasource);\nexport { DataGridDatasource };\n","var OptionsDatasource_1;\nimport { __awaiter, __decorate } from \"tslib\";\nimport { attr, customElement, DOM } from '@microsoft/fast-element';\nimport { BaseDatasource, logger } from '../utils';\nlet OptionsDatasource = OptionsDatasource_1 = class OptionsDatasource extends BaseDatasource {\n constructor() {\n super(...arguments);\n this.optionElement = 'fast-option';\n this.isSnapshot = true;\n }\n connectedCallback() {\n const _super = Object.create(null, {\n connectedCallback: { get: () => super.connectedCallback }\n });\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n _super.connectedCallback.call(this);\n this.fields = this.labelField ? (_a = this.valueField) === null || _a === void 0 ? void 0 : _a.concat(' ', this.labelField) : this.valueField;\n this.select = this.parentElement;\n this.select.addEventListener('change', (e) => {\n const selectedOption = this.options.find((option) => option.label === e.target.value);\n this.select.$emit('value-change', selectedOption);\n });\n if (this.select &&\n this.valueField &&\n ((this.resourceName && this.connect.isConnected) || this.data)) {\n this.fetchGenesisData();\n }\n if (!this.valueField) {\n logger.warn('Specify field for values in options (e.g value-field=\"VALUE\") and optionally field for label (e.g label-field=\"NAME\")');\n }\n });\n }\n clearData() {\n Array.from(this.select.children).forEach((x) => {\n if (!(x instanceof OptionsDatasource_1)) {\n this.select.removeChild(x);\n }\n });\n this.select.value = '';\n this.select.initialValue = '';\n }\n syncComponentData(snapshotData) {\n var _a;\n const rowData = snapshotData !== null && snapshotData !== void 0 ? snapshotData : Array.from(this.rowsSyncedWithStream.values());\n this.options = rowData.map((row) => ({\n value: row[this.valueField],\n label: row[this.labelField],\n }));\n const listboxOptions = this.options.map(({ value, label }) => {\n const option = document.createElement(this.optionElement);\n option.textContent = label ? label : value;\n option.value = value;\n return option;\n });\n listboxOptions.forEach((x) => {\n this.select.appendChild(x);\n });\n const initialLabel = (_a = this.options.find((x) => x.value === this.initialSelectedValue)) === null || _a === void 0 ? void 0 : _a.label;\n DOM.queueUpdate(() => {\n this.select.value = initialLabel;\n });\n }\n handleStreamInserts(insertedRows) {\n logger.debug('handleStreamInserts - Method not implemented.');\n }\n handleStreamDeletes(deletedRows) {\n logger.debug('handleStreamDeletes - Method not implemented.');\n }\n handleStreamUpdates(updatedRows) {\n logger.debug('handleStreamUpdates - Method not implemented.');\n }\n};\n__decorate([\n attr({ attribute: 'label-field' })\n], OptionsDatasource.prototype, \"labelField\", void 0);\n__decorate([\n attr({ attribute: 'value-field' })\n], OptionsDatasource.prototype, \"valueField\", void 0);\nOptionsDatasource = OptionsDatasource_1 = __decorate([\n customElement({\n name: 'options-datasource',\n })\n], OptionsDatasource);\nexport { OptionsDatasource };\n","import { __awaiter, __decorate } from \"tslib\";\nimport { attr, customElement } from '@microsoft/fast-element';\nimport { BaseDatasource, logger } from '../utils';\nlet MultiselectDatasource = class MultiselectDatasource extends BaseDatasource {\n constructor() {\n super(...arguments);\n this.isSnapshot = true;\n }\n connectedCallback() {\n const _super = Object.create(null, {\n connectedCallback: { get: () => super.connectedCallback }\n });\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n _super.connectedCallback.call(this);\n this.fields = this.labelField ? (_a = this.valueField) === null || _a === void 0 ? void 0 : _a.concat(' ', this.labelField) : this.valueField;\n this.select = this.parentElement;\n if (this.select &&\n this.valueField &&\n ((this.resourceName && this.connect.isConnected) || this.data)) {\n this.fetchGenesisData();\n }\n if (!this.valueField) {\n logger.warn('Specify field for values in options (e.g value-field=\"VALUE\") and optionally field for label which is supported only in select and combobox (e.g label-field=\"NAME\")');\n }\n });\n }\n clearData() {\n this.select.options = [];\n }\n syncComponentData(snapshotData) {\n const rowData = snapshotData !== null && snapshotData !== void 0 ? snapshotData : Array.from(this.rowsSyncedWithStream.values());\n const options = rowData.map((row) => ({\n value: row[this.valueField],\n label: row[this.labelField],\n }));\n this.select.options = options;\n }\n handleStreamInserts(insertedRows) {\n logger.debug('handleStreamInserts - Method not implemented.');\n }\n handleStreamDeletes(deletedRows) {\n logger.debug('handleStreamDeletes - Method not implemented.');\n }\n handleStreamUpdates(updatedRows) {\n logger.debug('handleStreamUpdates - Method not implemented.');\n }\n};\n__decorate([\n attr({ attribute: 'value-field' })\n], MultiselectDatasource.prototype, \"valueField\", void 0);\n__decorate([\n attr({ attribute: 'label-field' })\n], MultiselectDatasource.prototype, \"labelField\", void 0);\nMultiselectDatasource = __decorate([\n customElement({\n name: 'multiselect-datasource',\n })\n], MultiselectDatasource);\nexport { MultiselectDatasource };\n","import { FASTElement } from '@microsoft/fast-element';\nconst defaultDefinitionOverrider = (base) => (override) => (Object.assign(Object.assign({}, base), override));\n/**\n * Defines a platform custom element based on the provided type and definition.\n *\n * @example\n * An example using custom definition merge logic, useful if you need to impose hard restrictions.\n * ```ts\n * const definitionOverrider = (definition) => ({\n * ...baseDefinition,\n * ...definition,\n * styles: baseDefinition.styles,\n * shadowOptions: {\n * mode: 'closed,\n * },\n * });\n * export const define = defineFactory(LoginForm, definitionOverrider);\n * ```\n *\n * @example\n * You can provide the base definition if you're happy with the default spread operator merge logic.\n * ```ts\n * export const define = defineFactory(LoginForm, baseDefinition);\n * ```\n *\n * @param Type - The custom element Type / Class to define.\n * @param overriderOrBase - A function that merges definitions, or the base definition if custom merging is not needed.\n * @returns The type class.\n */\nexport const defineFactory = (Type, overriderOrBase) => (definition) => {\n const overrider = typeof overriderOrBase === 'function'\n ? overriderOrBase\n : defaultDefinitionOverrider(overriderOrBase);\n return FASTElement.define(class extends Type {\n }, overrider(definition));\n};\n","// TODO: Remove after upgrade to latest fast-element or proxy the underlying version\nimport { FASTElementDefinition } from '@microsoft/fast-element';\n/**\n * Determines what HTML tag name to use for the dependency.\n * @param dependency - The dependency the template is dependent on.\n * @returns The tag name to use in markup.\n * @beta\n */\nexport function tagFor(dependency) {\n if (typeof dependency === 'string') {\n return dependency;\n }\n if (typeof dependency === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n dependency = FASTElementDefinition.forType(dependency); // < using forType instead of getByType for now...\n if (!dependency) {\n throw new Error('Missing FASTElement definition.');\n }\n }\n return dependency.name;\n}\n","import { __awaiter, __decorate } from \"tslib\";\nimport { customElement, DOM, FASTElement } from '@microsoft/fast-element';\nimport { Router } from '@microsoft/fast-router';\nconst routerProperty = '$router';\n/**\n * @beta\n * @privateRemarks\n * Created to patch an issue and act as a placeholder to improve the api ahead of upgrading to the latest. Depending on\n * how much we build on this, we may want to promote it to its own package.\n */\nlet FoundationRouter = class FoundationRouter extends Router.from(FASTElement) {\n connectedCallback() {\n super.connectedCallback();\n /**\n * Tactical patch for Safari 16\n * {@link https://genesisglobal.atlassian.net/browse/PA-226}\n *\n * Explicitly set the config on the $router property when we connect to the DOM.\n */\n DOM.queueUpdate(() => __awaiter(this, void 0, void 0, function* () {\n this[routerProperty].config = this.config;\n }));\n }\n};\nFoundationRouter = __decorate([\n customElement({\n name: 'foundation-router',\n })\n], FoundationRouter);\nexport { FoundationRouter };\n","import { baseComponents } from './base-components';\nimport { createDesignSystemProxy, provideDesignSystem } from './provide-design-system';\nexport { baseComponents, createDesignSystemProxy, provideDesignSystem };\nexport const registerFoundationDesignSystem = () => provideDesignSystem().register(baseComponents);\nexport * from './_common';\nexport * from './_config';\nexport * from './actions-menu';\nexport * from './anchor';\nexport * from './badge';\nexport * from './banner';\nexport * from './breadcrumb-item';\nexport * from './breadcrumb';\nexport * from './button';\nexport * from './card';\nexport * from './checkbox';\nexport * from './combobox';\nexport * from './connection-indicator';\nexport * from './data-grid';\nexport * from './data-grid-cell';\nexport * from './data-grid-datasource';\nexport * from './data-grid-row';\nexport * from './date-picker';\nexport * from './design-system-provider';\nexport * from './dialog';\nexport * from './disclosure';\nexport * from './divider';\nexport * from './dropdown-menu';\nexport * from './error-boundary';\nexport * from './error-banner';\nexport * from './error-dialog';\nexport * from './file-upload';\nexport * from './filter';\nexport * from './filter-bar';\nexport * from './flex-layout';\nexport * from './flipper';\nexport * from './flyout';\nexport * from './grid-layout';\nexport * from './grid-layout-item';\nexport * from './icon';\nexport * from './listbox-option';\nexport * from './menu';\nexport * from './menu-item';\nexport * from './modal';\nexport * from './multiselect';\nexport * from './number-field';\nexport * from './options-datasource';\nexport * from './patterns';\nexport * from './popper';\nexport * from './progress';\nexport * from './progress-ring';\nexport * from './radio';\nexport * from './radio-group';\nexport * from './router';\nexport * from './segmented-control';\nexport * from './segmented-item';\nexport * from './select';\nexport * from './skeleton';\nexport * from './slider';\nexport * from './snackbar';\nexport * from './switch';\nexport * from './tab';\nexport * from './tab-panel';\nexport * from './tabs';\nexport * from './text-area';\nexport * from './text-field';\nexport * from './toast';\nexport * from './toolbar';\nexport * from './tooltip';\nexport * from './tree-item';\nexport * from './tree-view';\nexport * from './url-input';\nexport * from './utils/base-datasource';\n","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n"],"names":["module","exports","t","e","n","r","i","s","u","a","o","f","h","c","d","l","$","y","M","name","weekdays","split","months","ordinal","m","String","length","Array","join","v","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","replace","g","_","S","args","arguments","O","locale","$L","utc","$u","x","$x","$offset","this","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","apply","slice","$locale","weekStart","$set","min","daysInMonth","get","Number","round","subtract","format","invalidDate","meridiem","YY","YYYY","MM","MMM","monthsShort","MMMM","DD","dd","weekdaysMin","ddd","weekdaysShort","dddd","H","HH","hh","A","mm","ss","SSS","Z","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","T","forEach","extend","$i","isDayjs","en","Ls","isLeapYear","actionsMenuBaseStyles","context","definition","css","foundationActionsMenuStyles","foundationActionsMenuTemplate","html","isVertical","open","buttonAppearance","toggleActionsMenuVisibility","ref","classNames","repeat","allActions","when","isDisabled","parent","rowData","index","onActionMenuItemClick","callback","color","positioning","ActionsMenu","FoundationElement","constructor","super","addDefaultActions","autoCloseOnAction","definitionChanged","oldValue","newValue","_a","_b","actions","buttonText","customButtonText","openChanged","defaultActions","node","data","__decorate","observable","attr","attribute","mode","foundationActionsMenu","compose","baseName","styles","template","foundationAnchorStyles","foundationAnchorTemplate","Anchor","foundationAnchorShadowOptions","delegatesFocus","defaultAnchorConfig","foundationAnchor","Object","assign","foundationBadgeStyles","foundationBadgeTemplate","Badge","foundationBadgeShadowOptions","undefined","defaultBadgeConfig","foundationBadge","foundationBannerStyles","foundationBannerTemplate","dismissAnimation","foundationBannerShadowOptions","Banner","connectedCallback","dismiss","Promise","resolve","banner","onanimationend","remove","foundationBanner","shadowOptions","foundationBreadcrumbStyles","foundationBreadcrumbTemplate","Breadcrumb","foundationBreadcrumbShadowOptions","defaultBreadcrumbConfig","foundationBreadcrumb","foundationBreadcrumbItemStyles","foundationBreadcrumbItemTemplate","BreadcrumbItem","foundationBreadcrumbItemShadowOptions","defaultBreadcrumbItemConfig","separator","foundationBreadcrumbItem","foundationButtonStyles","foundationButtonTemplate","Button","foundationButtonShadowOptions","defaultButtonConfig","foundationButton","foundationCardStyles","foundationCardTemplate","Card","foundationCardShadowOptions","defaultCardConfig","foundationCard","foundationCheckboxStyles","foundationCheckboxTemplate","Checkbox","foundationCheckboxShadowOptions","defaultCheckboxConfig","checkedIndicator","indeterminateIndicator","foundationCheckbox","foundationComboboxStyles","foundationComboboxTemplate","Combobox","foundationComboboxShadowOptions","defaultComboboxConfig","indicator","foundationCombobox","foundationConnectionIndicatorStyles","foundationConnectionIndicatorTemplate","colour","showLabel","label","ConnectionIndicator","subscription","connect","isConnectedSubject","subscribe","connected","getLabel","disconnectedCallback","unsubscribe","session","getSessionStorageItem","foundationConnectionIndicator","foundationDataGridStyles","defintion","foundationDataGridTemplate","DataGrid","foundationDataGridShadowOptions","defaultDataGridConfig","foundationDataGrid","foundationDataGridCellStyles","DataGridCell","foundationDataGridCellShadowOptions","defaultDataGridCellConfig","foundationDataGridCell","foundationDataGridRowStyles","DataGridRow","foundationDataGridRowShadowOptions","defaultDataGridRowConfig","foundationDataGridRow","Day","lang","day","toLocaleString","weekday","dayNumber","dayShort","yearShort","monthShort","monthNumber","timestamp","Month","number","numberOfDays","Calendar","weekDays","from","today","item","getPreviousMonth","getNextMonth","goToDate","goToNextYear","goToPreviousYear","goToNextMonth","goToPreviousMonth","foundationDatePickerStyles","foundationDatePickerTemplate","formatDate","calendarDropdownClasses","position","currentMonth","currentYear","calendar","substringNumber","monthList","isSelectedDate","selectDay","foundationDatePickerShadowOptions","defaultDatePickerConfig","DatePicker","formatChanged","currentDate","valueChanged","updateHeaderText","getMonthDaysGrid","visible","getAttribute","now","value","toggleButton","addEventListener","toggleCalendar","prevBtn","prevMonth","nextBtn","nextMonth","toggleVisibility","isCurrentCalendarMonth","firstDayOfTheMonth","totalLastMonthFinalDays","totalDays","inverted","foundationDatePicker","white","SwatchRGB","black","fuiBGColor","parseColorHexRGB","defaultFillColor","b","fuiCardBGColor","fuiDefaultCardFillColor","fuiDefaultCardPalette","PaletteRGB","fuiNeutralRGB","fuiNeutralSwatch","fuiNeutralPalette","fuiAccentRGB","fuiAccentSwatch","fuiAccentPalette","create","DesignToken","fuiFillColor","withDefault","fuiCardFillColor","cssCustomPropertyName","defaultNeutralForegroundContrast","neutralForeground","palette","reference","colorContrast","fuiCardForegroundColor","element","getValueFor","provideTokens","tokens","values","setToken","token","setValueFor","keys","valueKey","designToken","source","key","prev","next","deleteValueFor","swatchConverter","toView","toColorString","fromView","paletteFromHex","hexColor","defaultExclusions","getDefaultConfig","exclusions","filter","k","includes","reduce","accumulator","getExports","registrationFunction","defaultConfig","getTypeRampValue","baseTypeRamp","matches","baseFontValue","baseUnit","configureDesignSystem","provider","config","designTokens","design_tokens","accentPalette","accent","$value","neutralPalette","neutral","bodyFont","fontFamily","baseLayerLuminance","luminance","density","style","controlCornerRadius","borderRadius","strokeWidth","designUnit","space","typeRampBaseFontSize","typography","baseFontSize","typeRampBaseLineHeight","baseLineHeight","typeRampMinus1FontSize","TypeRampValues","typeRampMinus1LineHeight","typeRampMinus2FontSize","typeRampMinus2LineHeight","typeRampPlus1FontSize","typeRampPlus1LineHeight","typeRampPlus2FontSize","typeRampPlus2LineHeight","typeRampPlus3FontSize","typeRampPlus3LineHeight","typeRampPlus4FontSize","typeRampPlus4LineHeight","typeRampPlus5FontSize","typeRampPlus5LineHeight","typeRampPlus6FontSize","typeRampPlus6LineHeight","accentPaletteValue","neutralPaletteValue","baseLayerLuminanceValue","StandardLuminance","directionValue","controlCornerRadiusValue","designUnitValue","mixinFoundationFontFamily","weight","baseStyles","display","backgroundStyles","withBehaviors","forcedColorsStylesheetBehavior","getHeaderForContext","headingLevel","FoundationDesignSystemProvider","converter","foundationDesignSystemProvider","contextualizedTypography","addStylesTo","document","foundationDialogStyles","closeIcon","slot","foundationDialogTemplate","showCloseIcon","close","foundationDialogShadowOptions","defaultDialogConfig","DialogElement","window","mainElement","onCloseCallback","hasAttribute","volatile","Dialog","show","onShowCallback","foundationDialog","foundationDisclosureStyles","foundationDisclosureTemplate","Disclosure","foundationDisclosureShadowOptions","defaultDisclosureConfig","foundationDisclosure","foundationDividerStyles","foundationDividerTemplate","Divider","foundationDividerShadowOptions","defaultDividerConfig","foundationDivider","wasClickOutsideElement","event","target","composedPath","dropdownMenuBaseStyles","prefix","foundationDropdownMenuStyles","extractMenuItems","items","submenu","icon","size","variant","getDropdownMenuTemplate","toggleDropdownMenuVisibility","disabled","allItems","foundationDropdownMenuTemplate","tagName","DropdownMenu","autoClose","clickOutside","handleClickOutside","onDropdownMenuItemClick","removeEventListener","foundationDropdownMenu","logger","createLogger","foundationErrorBannerTemplate","error","errorDetails","_c","_d","dismissingAction","confirmingActions","action","foundationErrorBannerShadowOptions","ErrorBanner","__awaiter","foundationErrorBanner","ErrorBoundaryEvent","getErrorDetails","details","title","getErrorContainer","id","tagPrefix","container","querySelector","createElement","setAttribute","dsProvider","appendChild","body","createErrorBannerContainer","anchor","insertBefore","firstChild","errorTypeToComponentMap","alert","notification","_e","_f","_g","_h","_j","_k","_l","top","right","toastNotify","errorTitle","textContent","errorDate","toLocaleTimeString","type","closeTimeout","dialog","snackbar","errorBoundary","ShadowRoot","getRootNode","getElementById","host","getErrorBannerAnchor","children","left","width","foundationErrorBoundaryTemplate","foundationErrorBoundaryShadowOptions","ErrorBoundary","ERROR_BOUNDARY_EVENT","stopImmediatePropagation","detail","log","message","level","logLevel","LogLevel","foundationErrorBoundary","foundationErrorDialogStyles","getErrorDialogTemplate","closeDialog","errorDialogTemplate","foundationErrorDialogShadowOptions","ErrorDialog","foundationErrorDialog","Operator","Join","$$operator","static","AND","OR","NOT","GT","GE","LT","LE","NE","EQ","operator","DEFAULT_GROUP","CriteriaBuilder","expressions","And","expression","options","withExpression","Or","Not","groupJoin","condition","optionsJoin","groupName","addExpressionToGroup","gName","isArray","withoutInline","isJoin","exp","joined","obj","flat","flatMap","array","group","build","outputFn","parsedExpressions","entries","acc","map","arr","parseExpression","reset","previous","result","push","idx","Error","serialiser","getValue","valueGetter","createSerialiser","field","ExpressionBuilder","opts","params","withField","withValue","withSerialiser","withParams","withValueGetter","withGroup","foundationFileUploadStyles","getPrefixedFileUpload","onInputChange","accept","fileName","clearSelection","handleClick","handleFileUpload","uploadedFilesList","filesGridColumnDefinitions","foundationFileUploadTemplate","createFormData","files","formData","FormData","file","append","uploadFiles","url","authToken","headers","Headers","fetch","method","then","response","json","downloadFile","filename","res","blob","objectUrl","URL","createObjectURL","href","download","click","catch","IMAGE_FILE_TYPES","TEXT_FILE_TYPES","OFFICE_FILE_TYPES","cellTemplateColumn","columnDefinition","formatDateTimeTimestamp","columnDataKey","FileUpload","acceptedFormats","fileSizeLimitBytes","uploadedFilesResourceName","uploadEventName","gridFields","acceptChanged","acceptedValues","el","fieldNameChanged","setupGrid","entityIdChanged","_super","call","setColumnDefs","entityId","fieldName","gridCriteria","setRowData","handleStreamRowOperation","row","ROW","DETAILS","OPERATION","unshift","findIndex","FILE_ATTACHMENT_ID","splice","stream","SEQUENCE_ID","CRITERIA_MATCH","metadata","getMetadata","columnDefs","gridField","FIELD","find","metadatField","NAME","getColumnObject","downloadEventName","getDownloadColumn","cellTemplate","handleFileDownload","column","charAt","toUpperCase","TYPE","fileInput","onFilesSelected","selectedFiles","trim","uploadKey","getItem","ERROR","$emit","ex","FILE_NAME","foundationFileUploadShadowOptions","defaultFileUploadConfig","foundationFileUpload","foundationFilterStyles","closeIconTemplate","clear","textFilterTemplate","sync","textFilter","numberFilterTemplate","numFilterMin","numFilterMax","dateFilterTemplate","dateFilterMin","dateFilterMax","targetValue","ctx","booleanFilterOptions","selected","booleanFilterTemplate","onBooleanFilterSelection","enumFilterTemplate","onEnumFilterSelection","enumFilterOptions","foundationFilterTemplate","selectTemplate","FilterEvents","Filter","textFilterChanged","oldCriteria","newCriteria","newFilter","change","numFilterMinChanged","oldMin","newMin","isFinite","handleNumericFilter","numFilterMaxChanged","oldMax","newMax","max","minFilter","maxFilter","epoch","dateFilterMinChanged","dateMinMS","handleDateFilter","dateMaxMS","dateFilterMaxChanged","enumOptions","delimiter","newOptions","opt","numFilterFieldMin","numFilterFieldMax","dateFilterFieldMin","dateFilterFieldMax","textFilterField","selection","foundationFilter","foundationFilterBarStyles","mapType","loadingTemplate","resource","collapseIcon","collapsed","filterBarTemplate","toggle","fields","UI_LABEL","foundationFilterBarTemplate","ready","DEFUALT_FILTER_BAR_COLUMNS","FilterBar","columns","initLabels","customLabels","labels","camelCasePreserveWhitespace","input","resourceChanged","oldResource","newResource","meta","only","desiredFields","maintainOrder","indexOf","sort","requestAnimationFrame","adjustColumnStyles","filterGrid","foundationFilterBar","FlexMediaQueriesEnum","flexLayoutRWDStyles","breakPoint","bp","foundationFlexLayoutStyles","foundationFlexLayoutTemplate","foundationFlexLayoutShadowOptions","defaultFlexLayoutConfig","FlexLayout","foundationFlexLayout","foundationFlipperStyles","foundationFlipperTemplate","Flipper","foundationFlipperShadowOptions","defaultFlipperConfig","foundationFlipper","flyoutAnimationTime","foundationFlyoutStyles","foundationFlyoutTemplate","closed","visuallyhidden","closeFlyout","closingFinished","Flyout","closedChanged","setTimeout","foundationFlyoutShadowOptions","defaultFlyoutConfig","foundationFlyout","GridMediaQueriesEnum","gridLayoutRWDStyles","foundationGridLayoutStyles","foundationGridLayoutTemplate","foundationGridLayoutShadowOptions","defaultGridLayoutConfig","ResponsiveGridBehavior","query","cols","rows","height","listenerCache","WeakMap","matchMedia","colPartial","cssPartial","rowPartial","bind","attached","listener","$fastController","addStyles","removeStyles","unbind","delete","GridLayout","behaviors","addBehaviors","removeBehaviors","foundationGridLayout","foundationGridLayoutItemTemplate","setGridItemProperties","colNumber","rowNumber","colLgNumber","rowLgNumber","widthLg","heightLg","colMdNumber","rowMdNumber","widthSm","heightMd","colSmNumber","rowSmNumber","heightSm","foundationGridLayoutItemShadowOptions","defaultGridLayoutItemConfig","GridLayoutItem","foundationGridLayoutItem","getFontawesomeIconsCss","foundationIconStyles","foundationIconTemplate","foundationIconShadowOptions","defaultIconConfig","FaPrefixFromStyle","Icon","nameChanged","loadIcon","sizeChanged","variantChanged","iElement","replaceChildren","iconDefinition","iconName","faIcon","innerHTML","foundationIcon","foundationListboxOptionStyles","foundationListboxOptionTemplate","ListboxOption","foundationListboxOptionShadowOptions","defaultListboxOptionConfig","foundationListboxOption","foundationMenuStyles","foundationMenuTemplate","Menu","foundationMenuShadowOptions","defaultMenuConfig","foundationMenu","foundationMenuItemStyles","foundationMenuItemTemplate","MenuItem","foundationMenuItemShadowOptions","defaultMenuItemConfig","expandCollapseGlyph","foundationMenuItem","foundationModalStyles","foundationModalTemplate","foundationModalShadowOptions","defaultModalConfig","Modal","foundationModal","Position","maxheight","multiselectStyles","getPrefixedMultiselect","defaultSlottedNodes","slotted","property","whitespaceFilter","getDisplayValue","search","getPlaceholder","setFilter","changeHandler","all","selectCheckboxAll","isAllSelected","filteredAvailableOptions","selectCheckboxOne","isOptionSelected","getItemLabel","multiselectTemplate","foundationMultiselectShadowOptions","defaultMultiselectConfig","Multiselect","allSelected","selectedOptions","BELOW","initialisedOptions","arrowIcon","classList","optionsElement","ABOVE","optionsChanged","option","optionGetter","selectedOptionsChanged","isConnected","DYNAMIC","setDropdownPosition","scrollContainer","parentElement","clientHeight","offsetTop","scrollTop","offsetHeight","displayText","selectedOption","concat","normalizedOption","prevAllChecked","onAllSelectedCallback","currentTarget","startsWith","preventDefault","foundationMultiselect","foundationNumberFieldStyles","foundationNumberFieldTemplate","NumberField","hideStep","withFormatting","isStepChange","sanitiseInputVal","inputVal","toIntlNumberFormat","Intl","NumberFormat","validateValue","validValue","parseFloat","toPrecision","isNaN","handleStepChange","stepUp","stepDown","rgxIsNegativeOrDecimal","foundationNumberFieldShadowOptions","defaultNumberFieldConfig","stepDownGlyph","stepUpGlyph","foundationNumberField","jsonConverter","JSON","stringify","Popper","placement","flip","selectorChanged","popper","destroy","selector","buildOptions","placementChanged","setOptions","offsetChanged","flipChanged","modifiers","offset","enabled","foundationPopper","foundationProgressStyles","foundationProgressTemplate","Progress","foundationProgressShadowOptions","defaultProgressConfig","indeterminateIndicator1","indeterminateIndicator2","foundationProgress","foundationProgressRingStyles","foundationProgressRingTemplate","ProgressRing","foundationProgressRingShadowOptions","defaultProgressRingConfig","foundationProgressRing","foundationRadioStyles","foundationRadioTemplate","Radio","foundationRadioShadowOptions","defaultRadioConfig","foundationRadio","foundationRadioGroupStyles","foundationRadioGroupTemplate","RadioGroup","foundationRadioGroupShadowOptions","defaultRadioGroupConfig","foundationRadioGroup","foundationSegmentedControlStyles","foundationSegmentedControlTemplate","SegmentedControl","slottedRadioButtons","radio","checked","foundationSegmentedControlShadowOptions","defaultSegmentedControlConfig","foundationSegmentedControl","foundationSegmentedItemStyles","foundationSegmentedItemTemplate","required","readOnly","keypressHandler","clickHandler","SegmentedItem","foundationSegmentedItemShadowOptions","defaultSegmentedItemConfig","foundationSegmentedItem","foundationSelectStyles","foundationSelectTemplate","Select","foundationSelectShadowOptions","defaultSelectConfig","foundationSelect","foundationSkeletonStyles","foundationSkeletonTemplate","Skeleton","foundationSkeletonShadowOptions","defaultSkeletonConfig","foundationSkeleton","foundationSliderStyles","foundationSliderTemplate","orientation","valueTextFormatter","base","parseInt","percentage","isDragging","thumb","Slider","foundationSliderShadowOptions","defaultSliderConfig","foundationSlider","foundationSnackbarStyles","foundationSnackbarTemplate","deleteAnimation","foundationSnackbarShadowOptions","Snackbar","errorChanged","foundationSnackbar","foundationSwitchStyles","foundationSwitchTemplate","Switch","foundationSwitchShadowOptions","defaultSwitchConfig","switch","foundationSwitch","foundationTabStyles","foundationTabTemplate","Tab","foundationTabShadowOptions","defaultTabConfig","foundationTab","foundationTabPanelStyles","foundationTabPanelTemplate","TabPanel","foundationTabPanelShadowOptions","defaultTabPanelConfig","foundationTabPanel","foundationTabsStyles","foundationTabsTemplate","Tabs","foundationTabsShadowOptions","defaultTabsConfig","foundationTabs","foundationTextAreaStyles","foundationTextAreaTemplate","TextArea","foundationTextAreaShadowOptions","defaultTextAreaConfig","foundationTextArea","foundationTextFieldStyles","activeColorScheme","foundationTextFieldTemplate","startSlotTemplate","autocomplete","autocapitalize","handleTextInput","handleChange","step","autofocus","list","maxlength","minlength","pattern","placeholder","spellcheck","ariaAtomic","ariaBusy","ariaControls","ariaCurrent","ariaDescribedby","ariaDetails","ariaDisabled","ariaErrormessage","ariaFlowto","ariaHaspopup","ariaHidden","ariaInvalid","ariaKeyshortcuts","ariaLabel","ariaLabelledby","ariaLive","ariaOwns","ariaRelevant","ariaRoledescription","endSlotTemplate","TextField","autocompleteChanged","proxy","HTMLInputElement","autocapitalizeChanged","foundationTextFieldShadowOptions","defaultTextFieldConfig","foundationTextField","foundationToastStyles","foundationToastTemplate","foundationToastShadowOptions","defaultToastConfig","Toast","toast","foundationToast","foundationToolbarStyles","foundationToolbarTemplate","Toolbar","foundationToolbarShadowOptions","defaultToolbarConfig","foundationToolbar","foundationTooltipStyles","foundationTooltipTemplate","Tooltip","foundationTooltipShadowOptions","defaultTooltipConfig","foundationTooltip","foundationTreeItemStyles","foundationTreeItemTemplate","TreeItem","foundationTreeItemShadowOptions","defaultTreeItemConfig","foundationTreeItem","foundationTreeViewStyles","foundationTreeViewTemplate","TreeView","foundationTreeViewShadowOptions","defaultTreeViewConfig","foundationTreeView","foundationUrlInputStyles","urlinputTemplate","focused","saveUrl","focus","foundationUrlInputShadowOptions","defaultUrlInputConfig","UrlInput","foundationUrlInput","baseComponents","register","rest","createDesignSystemProxy","designSystem","Proxy","prop","Reflect","provideDesignSystem","DesignSystem","withPrefix","CSSVarsTokenMapper","CSSDirective","tokenMap","createTokenPartial","createTokensCSS","createCSS","BaseDatasource","withGridInit","isSnapshot","maxRows","maxView","reverse","rowId","withTimestampFormatting","requiresFullDataRefresh","rowsSyncedWithStream","Map","dataSubWasLoggedOff","criteriaFromFilters","update","BehaviorSubject","datasourceConfig","clearData","fetchGenesisData","withFullInit","syncComponentData","requiresMetadataFetch","datasource","initialized","dataLogoff","sourceRef","datasourceOptions","snapshotFiltered","debug","resourceName","dataSub","SOURCE_REF","messageType","MESSAGE_TYPE","nextMessage","dataServerResultFilter","handleStreamUpdate","initDatasource","criteria","buildCriteria","orderBy","request","hasOwnProperty","applyRequestServerData","applyDataserverData","requestServerResult","REPLY","insertData","handleStreamInserts","rowsToDelete","handleStreamDeletes","dataServerResult","inserts","deletes","updates","handleStreamUpdates","initialCriteria","normaliseCriteria","criteriaChanged","firstCriteria","criteriaNotDuplicate","DOM","removeFilter","DataGridDatasource","dataGrid","getColumnDefs","fieldsMetadata","snapshotData","fieldMetadata","columnDefinitions","rowsData","insertedRows","deletedRows","updatedRows","OptionsDatasource_1","customElement","OptionsDatasource","optionElement","labelField","valueField","select","warn","removeChild","initialValue","initialLabel","initialSelectedValue","MultiselectDatasource","defineFactory","Type","overriderOrBase","overrider","override","FASTElement","tagFor","dependency","FASTElementDefinition","FoundationRouter","registerFoundationDesignSystem","api","defaultAttributes","attributes","expires","encodeURIComponent","decodeURIComponent","escape","stringifiedAttributes","attributeName","cookie","write","cookies","jar","parts","found","read","withAttributes","withConverter","freeze","path"],"sourceRoot":""}