@watermarkinsights/ripple 5.3.1-2 → 5.4.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/global-e7e100cd.js → cjs/app-globals-338dc72a.js} +10 -1
- package/dist/cjs/{chartFunctions-0238043b.js → chartFunctions-9c8c61ef.js} +4 -4
- package/dist/cjs/{functions-3be85c6d.js → functions-05e7ad5a.js} +104 -7
- package/dist/cjs/index-788526f5.js +1851 -0
- package/dist/cjs/{intl-567eb9d8.js → intl-2b550151.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
- package/dist/cjs/ripple.cjs.js +12 -11
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
- package/dist/cjs/wm-button.cjs.entry.js +5 -4
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +7 -6
- package/dist/cjs/wm-date-range.cjs.entry.js +8 -7
- package/dist/cjs/wm-datepicker.cjs.entry.js +8 -7
- package/dist/cjs/wm-file-list.cjs.entry.js +4 -3
- package/dist/cjs/wm-file.cjs.entry.js +5 -4
- package/dist/cjs/wm-input.cjs.entry.js +6 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
- package/dist/cjs/wm-modal-footer.cjs.entry.js +4 -3
- package/dist/cjs/wm-modal-header.cjs.entry.js +6 -5
- package/dist/cjs/wm-modal.cjs.entry.js +6 -5
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
- package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
- package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
- package/dist/cjs/wm-search.cjs.entry.js +7 -6
- package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
- package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
- package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
- package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +16 -12
- package/dist/collection/components/datepickers/wm-datepicker.js +16 -12
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-option/wm-option.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +5 -4
- package/dist/collection/components/wm-select/wm-select.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/chart.js +13 -32
- package/dist/{cjs/global-70b45f6c.js → esm/app-globals-5fa0b568.js} +7 -2
- package/dist/esm/{chartFunctions-036fdb89.js → chartFunctions-a4c41273.js} +4 -4
- package/dist/esm/{functions-46843ea0.js → functions-25781571.js} +105 -8
- package/dist/esm/index-130e07bb.js +1820 -0
- package/dist/esm/{intl-8b8740b9.js → intl-df3d34d1.js} +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-calendar.entry.js +6 -5
- package/dist/esm/priv-chart-popover.entry.js +6 -5
- package/dist/esm/priv-navigator-button.entry.js +4 -3
- package/dist/esm/priv-navigator-item.entry.js +4 -3
- package/dist/esm/ripple.js +13 -12
- package/dist/esm/wm-action-menu_2.entry.js +8 -6
- package/dist/esm/wm-button.entry.js +5 -4
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-date-range.entry.js +8 -7
- package/dist/esm/wm-datepicker.entry.js +8 -7
- package/dist/esm/wm-file-list.entry.js +4 -3
- package/dist/esm/wm-file.entry.js +5 -4
- package/dist/esm/wm-input.entry.js +6 -5
- package/dist/esm/wm-line-chart.entry.js +15 -14
- package/dist/esm/wm-modal-footer.entry.js +4 -3
- package/dist/esm/wm-modal-header.entry.js +6 -5
- package/dist/esm/wm-modal.entry.js +6 -5
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- package/dist/esm/wm-option_2.entry.js +10 -8
- package/dist/esm/wm-pagination.entry.js +5 -4
- package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
- package/dist/esm/wm-search.entry.js +7 -6
- package/dist/esm/wm-snackbar.entry.js +7 -6
- package/dist/esm/wm-tab-item_3.entry.js +11 -8
- package/dist/esm/wm-tag-input.entry.js +8 -7
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +6 -5
- package/dist/esm/wm-timepicker.entry.js +6 -5
- package/dist/esm/wm-toggletip.entry.js +6 -5
- package/dist/esm/wm-uploader.entry.js +7 -6
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-5fa0b568.js +1 -0
- package/dist/esm-es5/{chartFunctions-036fdb89.js → chartFunctions-a4c41273.js} +1 -1
- package/dist/esm-es5/functions-25781571.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-8b8740b9.js → intl-df3d34d1.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +1 -2
- package/dist/loader/index.cjs.js +1 -2
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/ripple/{p-5029fcd8.system.entry.js → p-00515e48.system.entry.js} +1 -1
- package/dist/ripple/{p-45abd8fe.entry.js → p-041e579b.entry.js} +1 -1
- package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0af94825.entry.js +1 -0
- package/dist/ripple/p-0ff41567.system.entry.js +1 -0
- package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
- package/dist/ripple/p-13fc2164.entry.js +1 -0
- package/dist/ripple/p-155224a2.system.entry.js +1 -0
- package/dist/ripple/{p-d837c1f5.js → p-1a9e55ae.js} +1 -1
- package/dist/ripple/p-1f09134c.entry.js +1 -0
- package/dist/ripple/p-298c2675.entry.js +1 -0
- package/dist/ripple/p-2d619f83.entry.js +1 -0
- package/dist/ripple/{p-cc4a429b.entry.js → p-2e3728f1.entry.js} +1 -1
- package/dist/ripple/p-31781d88.system.entry.js +1 -0
- package/dist/ripple/p-31d7ecf9.system.entry.js +1 -0
- package/dist/ripple/p-341ebafa.entry.js +1 -0
- package/dist/ripple/p-3423a9b6.system.entry.js +1 -0
- package/dist/ripple/p-376efca9.entry.js +1 -0
- package/dist/ripple/p-3b5f4364.system.entry.js +1 -0
- package/dist/ripple/p-418ed08c.system.entry.js +1 -0
- package/dist/ripple/p-4520ba7b.entry.js +1 -0
- package/dist/ripple/p-45f53a78.system.js +1 -0
- package/dist/ripple/p-4670ccb4.system.js +1 -0
- package/dist/ripple/p-488e1690.entry.js +1 -0
- package/dist/ripple/p-4baaf026.entry.js +1 -0
- package/dist/ripple/p-5051034b.entry.js +1 -0
- package/dist/ripple/p-56766bb2.entry.js +1 -0
- package/dist/ripple/p-576f8e7c.js +1 -0
- package/dist/ripple/p-5caaf651.system.entry.js +1 -0
- package/dist/ripple/p-5ece78e5.system.entry.js +1 -0
- package/dist/ripple/{p-42d1c301.entry.js → p-672ae2cb.entry.js} +1 -1
- package/dist/ripple/{p-3a44e1c8.entry.js → p-67a7f0b0.entry.js} +1 -1
- package/dist/ripple/p-6d0e5159.system.entry.js +1 -0
- package/dist/ripple/p-6d56676e.system.entry.js +1 -0
- package/dist/ripple/{p-b7ead395.system.entry.js → p-6fe35d1e.system.entry.js} +1 -1
- package/dist/ripple/{p-2ba7e68e.system.entry.js → p-7c51092b.system.entry.js} +1 -1
- package/dist/ripple/p-7d32497f.system.js +1 -0
- package/dist/ripple/p-7eab6bea.system.entry.js +1 -0
- package/dist/ripple/p-7fb95b89.entry.js +1 -0
- package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/p-85cbeb7d.system.entry.js +1 -0
- package/dist/ripple/p-88cfd58d.js +1 -0
- package/dist/ripple/p-8d075bcf.system.entry.js +1 -0
- package/dist/ripple/{p-8159cdf5.entry.js → p-8e72de50.entry.js} +1 -1
- package/dist/ripple/p-9c723924.system.entry.js +1 -0
- package/dist/ripple/{p-510679f8.system.entry.js → p-a1a2f8c9.system.entry.js} +1 -1
- package/dist/ripple/p-a62e7532.entry.js +1 -0
- package/dist/ripple/{p-1ac66a15.system.js → p-a9d89ac8.system.js} +1 -1
- package/dist/ripple/{p-a152cf3a.system.entry.js → p-aab56a37.system.entry.js} +1 -1
- package/dist/ripple/{p-79106e23.system.entry.js → p-ac40417b.system.entry.js} +1 -1
- package/dist/ripple/p-ad4529d2.entry.js +1 -0
- package/dist/ripple/{p-ffb31979.system.entry.js → p-b0c566b5.system.entry.js} +1 -1
- package/dist/ripple/p-b7307be6.system.entry.js +1 -0
- package/dist/ripple/{p-624a2812.entry.js → p-bee8ab6e.entry.js} +1 -1
- package/dist/ripple/p-c2181de0.entry.js +1 -0
- package/dist/ripple/{p-d4b209ec.system.js → p-c9141443.system.js} +1 -1
- package/dist/ripple/{p-e7a64841.system.entry.js → p-ca35a8b7.system.entry.js} +1 -1
- package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/p-d5ba9de1.system.entry.js +1 -0
- package/dist/ripple/{p-df1a11f1.system.entry.js → p-d93c51dd.system.entry.js} +1 -1
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-db10990a.entry.js +1 -0
- package/dist/ripple/p-de0e138f.system.entry.js +1 -0
- package/dist/ripple/p-e2fe86a7.system.entry.js +1 -0
- package/dist/ripple/p-e85b1f40.entry.js +1 -0
- package/dist/ripple/p-ea0dfadf.system.entry.js +1 -0
- package/dist/ripple/p-eb14b354.entry.js +1 -0
- package/dist/ripple/p-f17fd62b.entry.js +1 -0
- package/dist/ripple/p-f20e8a69.entry.js +1 -0
- package/dist/ripple/{p-d79fdf0b.js → p-f54e9ed0.js} +1 -1
- package/dist/ripple/p-f836a5e8.entry.js +1 -0
- package/dist/ripple/p-fabe4ca4.entry.js +1 -0
- package/dist/ripple/p-fbaae34d.system.entry.js +1 -0
- package/dist/ripple/{p-a37cf34a.entry.js → p-ff69270a.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +1 -1
- package/dist/cjs/index-e86c28b6.js +0 -2641
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
- package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
- package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
- package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm/index-558b5a82.js +0 -2610
- package/dist/esm-es5/functions-46843ea0.js +0 -1
- package/dist/esm-es5/global-e7e100cd.js +0 -1
- package/dist/esm-es5/index-558b5a82.js +0 -1
- package/dist/ripple/p-09a31f0c.entry.js +0 -1
- package/dist/ripple/p-0aa17cac.entry.js +0 -1
- package/dist/ripple/p-0dc51fad.entry.js +0 -1
- package/dist/ripple/p-0ea8609b.system.entry.js +0 -1
- package/dist/ripple/p-220b3070.system.js +0 -1
- package/dist/ripple/p-240124b0.system.entry.js +0 -1
- package/dist/ripple/p-26fbc7f5.system.entry.js +0 -1
- package/dist/ripple/p-294b38ca.system.entry.js +0 -1
- package/dist/ripple/p-2b05bf05.entry.js +0 -1
- package/dist/ripple/p-311923b2.system.entry.js +0 -1
- package/dist/ripple/p-3183bba8.entry.js +0 -1
- package/dist/ripple/p-31976813.entry.js +0 -1
- package/dist/ripple/p-33679b9d.entry.js +0 -1
- package/dist/ripple/p-34b5830f.system.js +0 -1
- package/dist/ripple/p-3568472c.entry.js +0 -1
- package/dist/ripple/p-359d45dc.entry.js +0 -1
- package/dist/ripple/p-4ce70b1b.js +0 -1
- package/dist/ripple/p-4e56f3f5.system.entry.js +0 -1
- package/dist/ripple/p-568c595f.js +0 -2
- package/dist/ripple/p-591918a4.entry.js +0 -1
- package/dist/ripple/p-62a8f09c.entry.js +0 -1
- package/dist/ripple/p-75ba63ba.entry.js +0 -1
- package/dist/ripple/p-7e6f5a1e.system.entry.js +0 -1
- package/dist/ripple/p-8029af07.system.entry.js +0 -1
- package/dist/ripple/p-822618d7.entry.js +0 -1
- package/dist/ripple/p-86d655fb.system.entry.js +0 -1
- package/dist/ripple/p-884294c6.entry.js +0 -1
- package/dist/ripple/p-8fbddb6c.system.entry.js +0 -1
- package/dist/ripple/p-902a54c5.entry.js +0 -1
- package/dist/ripple/p-905dd4da.system.entry.js +0 -1
- package/dist/ripple/p-99b0c3dd.system.js +0 -1
- package/dist/ripple/p-a8524a48.entry.js +0 -1
- package/dist/ripple/p-ab8d78cc.system.js +0 -2
- package/dist/ripple/p-bc5e9d24.entry.js +0 -1
- package/dist/ripple/p-bf636261.entry.js +0 -1
- package/dist/ripple/p-c4b9d46d.entry.js +0 -1
- package/dist/ripple/p-c885c7f9.entry.js +0 -1
- package/dist/ripple/p-c91b10f3.system.entry.js +0 -1
- package/dist/ripple/p-c9543950.system.entry.js +0 -1
- package/dist/ripple/p-cacfbaf1.system.entry.js +0 -1
- package/dist/ripple/p-ce9a8bd1.entry.js +0 -1
- package/dist/ripple/p-d24882a7.system.entry.js +0 -1
- package/dist/ripple/p-d33d6e96.system.entry.js +0 -1
- package/dist/ripple/p-df2560f3.system.entry.js +0 -1
- package/dist/ripple/p-e3bcdde8.system.entry.js +0 -1
- package/dist/ripple/p-e3de5bbd.system.entry.js +0 -1
- package/dist/ripple/p-e83a98d3.entry.js +0 -1
- package/dist/ripple/p-e995f7f0.js +0 -1
- package/dist/ripple/p-eaac6bcd.entry.js +0 -1
- package/dist/ripple/p-f67fd802.system.entry.js +0 -1
- package/dist/ripple/p-fe8d02c3.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,r,a,t){function n(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,i){function o(e){try{p(t.next(e))}catch(e){i(e)}}function d(e){try{p(t["throw"](e))}catch(e){i(e)}}function p(e){e.done?a(e.value):n(e.value).then(o,d)}p((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,n,i,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(r){return p([e,r])}}function p(d){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(a=0)),a)try{if(t=1,n&&(i=d[0]&2?n["return"]:d[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;if(n=0,i)d=[d[0]&2,i.value];switch(d[0]){case 0:case 1:i=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;n=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){a.label=d[1];break}if(d[0]===6&&a.label<i[1]){a.label=i[1];i=d;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(d);break}if(i[2])a.ops.pop();a.trys.pop();continue}d=r.call(e,a)}catch(e){d=[6,e];n=0}finally{t=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,a){if(a||arguments.length===2)for(var t=0,n=r.length,i;t<n;t++){if(i||!(t in r)){if(!i)i=Array.prototype.slice.call(r,0,t);i[t]=r[t]}}return e.concat(i||Array.prototype.slice.call(r))};System.register(["./p-ab8d78cc.system.js","./p-34b5830f.system.js"],(function(e){"use strict";var r,a,t,n,i,o,d,p,s,l,c;return{setters:[function(e){r=e.r;a=e.c;t=e.h;n=e.H;i=e.g},function(e){o=e.i;d=e.B;p=e.I;s=e.J;l=e.C;c=e.K}],execute:function(){var u=':host{--wmcolor-calendar-border:var(--wmcolor-border);--wmcolor-calendar-day-border-hover:var(--wmcolor-border-focus);--wmcolor-calendar-range-background:var(--wmcolor-interactive-background-hover);--wmcolor-datepicker-range-background-hover:var(--wmcolor-datepicker-day-background-hover);--wmcolor-datepicker-range-background-selected:var(--wmcolor-background-selected);--range-start-svg:url(\'data:image/svg+xml,<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 6C0 2.68629 2.68629 0 6 0H28.8457C31.0777 0 33.1251 1.23886 34.1607 3.21596L42.5417 19.216C43.455 20.9596 43.455 23.0404 42.5417 24.784L34.1607 40.784C33.1251 42.7611 31.0777 44 28.8458 44H6C2.68629 44 0 41.3137 0 38V6Z" fill="%23575195"/></svg>\');--range-end-svg:url(\'data:image/svg+xml,<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M44 6C44 2.68629 41.3137 0 38 0H15.1543C12.9223 0 10.8749 1.23886 9.83926 3.21596L1.45831 19.216C0.544956 20.9596 0.54496 23.0404 1.45831 24.784L9.83926 40.784C10.8749 42.7611 12.9223 44 15.1542 44H38C41.3137 44 44 41.3137 44 38V6Z" fill="%23575195"/></svg>\');--range-background-selected:linear-gradient(\n transparent,\n transparent 5px,\n var(--wmcolor-datepicker-range-background-selected) 5px,\n var(--wmcolor-datepicker-range-background-selected) 39px,\n transparent 39px\n );--range-background-hover:linear-gradient(\n transparent,\n transparent 5px,\n var(--wmcolor-datepicker-range-background-hover) 5px,\n var(--wmcolor-datepicker-range-background-hover) 39px,\n transparent 39px\n )}:host priv-calendar+priv-calendar{-webkit-border-start:1px solid var(--wmcolor-calendar-border);border-inline-start:1px solid var(--wmcolor-calendar-border)}.toggle{all:unset;cursor:pointer;padding:0 0.375rem;height:2.375rem;background-color:var(--wmcolor-datepicker-toggle-background);border:none;border-radius:3px}.toggle span::after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f0ed";font-size:1.5rem;color:var(--wmcolor-datepicker-toggle-icon);padding:0;line-height:2.5rem}.toggle:hover{-webkit-box-shadow:none;box-shadow:none;background:var(--wmcolor-datepicker-toggle-background-hover)}.toggle:disabled{pointer-events:none;-webkit-box-shadow:none;box-shadow:none;background-color:var(--wmcolor-datepicker-toggle-background-disabled)}.toggle:disabled .calendar::after{color:var(--wmcolor-datepicker-toggle-icon-disabled)}[dir=RTL] .toggle{right:auto;left:0}.toggle::-moz-focus-inner{border:0}.toggle:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:0}.toggle:focus-visible:not(:active){border:none;z-index:11}.inside .toggle{border-top-left-radius:0;border-bottom-left-radius:0;border-start-start-radius:0;border-end-start-radius:0}.popup-wrapper{visibility:hidden;font-family:inherit;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;-webkit-box-shadow:0px 4px 15px 0px rgba(0, 0, 0, 0.2);box-shadow:0px 4px 15px 0px rgba(0, 0, 0, 0.2);z-index:10;position:absolute;left:0;top:calc(100% + 2px);min-height:21.0625rem;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;-webkit-transform-origin:center top;transform-origin:center top;-webkit-transform:scale(1, 0);transform:scale(1, 0);background-color:var(--wmcolor-datepicker-background)}.popup-wrapper.start{border:2px solid cyan}.popup-wrapper.end{left:247px !important;border:2px solid teal}.popup-wrapper.open{-webkit-transform:scale(1, 1);transform:scale(1, 1)}.popup-wrapper.expand-upwards{top:auto;bottom:2.375rem;-webkit-transform-origin:center bottom;transform-origin:center bottom}.popup-wrapper .calendar-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;position:relative;padding:0.9375rem 0.25rem}.popup-wrapper .calendar-header .title-box{height:2.625rem;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:1px solid;font-weight:500;font-size:0.875rem;background:var(--wmcolor-datepicker-selector-background);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:0 0.375rem 0 0.75rem;border-color:var(--wmcolor-datepicker-selector-border);color:var(--wmcolor-datepicker-selector-text)}.popup-wrapper .calendar-header .title-box:after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f140";padding-left:0.75rem;font-size:1.12rem}.popup-wrapper .calendar-header .title-box.year:after{content:"\\f143"}.popup-wrapper .calendar-header .title-box::-moz-focus-inner{border:0}.popup-wrapper .calendar-header .arw-btn{cursor:pointer;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;width:2.75rem;height:2.75rem;border:none;color:var(--wmcolor-datepicker-navigation-text);background:var(--wmcolor-datepicker-navigation-background);padding:0;-webkit-box-shadow:none;box-shadow:none;line-height:2.75rem}.popup-wrapper .calendar-header .arw-btn .mdi{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1.5rem;font-weight:normal;line-height:2.75rem}.popup-wrapper .calendar-header .arw-btn:hover{background-color:var(--wmcolor-datepicker-navigation-background-hover)}.popup-wrapper .calendar-header .arw-btn:active{-ms-transform:scale(0.9, 0.9);-webkit-transform:scale(0.9, 0.9);-moz-transform:scale(0.9, 0.9);transform:scale(0.9, 0.9)}.popup-wrapper .separator{min-width:1px;background:var(--wm-color-border)}.popup-wrapper .day-view{min-width:21rem}.popup-wrapper .day-view .date-grid{width:100%;text-align:center;border-collapse:collapse;margin-bottom:0.4375rem;color:var(--wmcolor-datepicker-day-text)}.popup-wrapper .day-view .date-grid div[role=row]{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;padding-inline:0.875rem}.popup-wrapper .day-view .date-grid div[role=row]:not(.header-row){height:2.75rem}.popup-wrapper .day-view .date-grid .date-header{background-color:var(--wmcolor-datepicker-weekdays-background)}.popup-wrapper .day-view .date-grid .header-cell{height:2.0625rem;line-height:2.0625rem;width:2.75rem;margin:0 calc((14.28% - 44px) / 2);padding:0;display:inline-block;font-size:0.8125rem;font-weight:bold;color:var(--wmcolor-datepicker-weekdays-text);border:none}.popup-wrapper .day-view .date-grid [role=gridcell]{padding:0;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;aspect-ratio:1;font-size:0.875rem;font-weight:500;position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 0 2.75rem;flex:1 0 2.75rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.popup-wrapper .day-view .date-grid .date-cell{cursor:pointer}.popup-wrapper .day-view .date-grid .date-cell:hover{background-color:var(--wmcolor-datepicker-day-background-hover)}.popup-wrapper .day-view .date-grid .date-cell[aria-selected=true]{background-color:var(--wmcolor-datepicker-day-background-selected);color:var(--wmcolor-datepicker-day-text-selected)}.popup-wrapper .day-view .date-grid .date-cell.in-range{background:var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-start:not(.preview):hover{background-repeat:no-repeat;background-position:center, center left 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-end:not(.preview):hover{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:not(.preview):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), var(--range-background-selected);color:var(--wmcolor-datepicker-day-text)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview{position:relative;background-image:var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), var(--range-background-hover);background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-position:center left -5px, center left 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-position:center right -5px, center right 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:first-child:not(.preview-start,.preview-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), linear-gradient(transparent, transparent 15px, var(--wmcolor-datepicker-range-background-hover) 15px, var(--wmcolor-datepicker-range-background-hover) 29px, transparent 29px);background-position:center left -5px, center right -5px, center;background-size:auto, auto, 9px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:last-child,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:first-child{background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 17px, var(--wmcolor-calendar-day-border-hover) 18px, var(--wmcolor-calendar-day-border-hover) 20px, transparent 21px)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start{background-position:center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:first-child{background-position:center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:last-child{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start{background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 17px, var(--wmcolor-calendar-day-border-hover) 18px, var(--wmcolor-calendar-day-border-hover) 20px, transparent 21px), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:focus-visible,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:focus-visible{outline:none;border:none}.popup-wrapper .day-view .date-grid .date-cell.in-range:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:-5px center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range:first-child:not(.preview-start,.preview-end,.range-start,.range-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:center, -5px center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-start:last-child:hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.range-end:first-child:hover{background:radial-gradient(#dbd9ef 20px, transparent 21px);background-position:center}.popup-wrapper .day-view .date-grid .date-cell.in-range:last-of-type:not(.range-start,.range-end,.preview),.popup-wrapper .day-view .date-grid .date-cell.in-range:last-child:not(.range-start,.range-end,.preview),.popup-wrapper .day-view .date-grid .date-cell.in-range.last-of-month:not(.range-start,.range-end,.preview){background:radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:5px center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:last-of-type:not(.range-start,.range-end,.preview-start,.preview-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range:last-child:not(.range-start,.range-end,.preview-start,.preview-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.last-of-month:not(.range-start,.range-end,.preview-start,.preview-end):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:center, 5px center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.today:after{content:"";display:block;position:absolute;inset:auto 0 6px 0;width:6px;aspect-ratio:1;border-radius:50%;justify-self:center;background-color:var(--wmcolor-datepicker-day-background-selected);margin:auto}.popup-wrapper .day-view .date-grid .date-cell.range-start,.popup-wrapper .day-view .date-grid .date-cell.range-end{border-radius:0;margin:0;outline:none;font-weight:600;color:var(--wmcolor-datepicker-day-text-selected)}.popup-wrapper .day-view .date-grid .date-cell.range-start:focus-visible,.popup-wrapper .day-view .date-grid .date-cell.range-end:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:-2px;border:none;z-index:11}.popup-wrapper .day-view .date-grid .date-cell.range-start:focus-visible[aria-selected=true],.popup-wrapper .day-view .date-grid .date-cell.range-end:focus-visible[aria-selected=true]{outline-offset:2px}.popup-wrapper .day-view .date-grid .date-cell.range-start{background-image:var(--range-start-svg);-webkit-padding-end:2px;padding-inline-end:2px;background-color:transparent}.popup-wrapper .day-view .date-grid .date-cell.range-start.in-range:not(:hover,:last-of-type,:last-child){background-image:var(--range-start-svg), var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.range-start.in-range.preview:not(:last-of-type,:last-child){background-image:var(--range-start-svg), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.range-end{background-image:var(--range-end-svg);-webkit-padding-start:2px;padding-inline-start:2px;background-color:transparent}.popup-wrapper .day-view .date-grid .date-cell.range-end.in-range:not(:hover,:first-of-type,:first-child){background-image:var(--range-end-svg), var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.range-end.in-range.preview:not(:first-of-type,:first-child){background-image:var(--range-end-svg), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.range-start.range-end{background:var(--wmcolor-datepicker-day-background-selected);border-radius:50%;padding-inline:0;margin:1px;-ms-flex-preferred-size:42px;flex-basis:42px}.popup-wrapper .month-view .months{border-top:2px solid;border-top-color:var(--wmcolor-datepicker-month-border);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.popup-wrapper .month-view .month-row{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;border-bottom:2px solid;border-bottom-color:var(--wmcolor-datepicker-month-border)}.popup-wrapper .month-view .month{border:none;background:white;cursor:pointer;width:7rem;height:4rem;line-height:4rem;font-family:inherit;font-weight:500;color:var(--wmcolor-datepicker-month-text)}.popup-wrapper .month-view .month:not(:last-child){border-right:2px solid;border-right-color:var(--wmcolor-datepicker-month-border)}.popup-wrapper .month-view .month:hover{border-right-color:transparent;background-color:var(--wmcolor-datepicker-month-background-hover)}.popup-wrapper .month-view .month:active,.popup-wrapper .month-view .month.selected{background-color:var(--wmcolor-datepicker-month-background-selected);color:var(--wmcolor-datepicker-month-text-selected)}.popup-wrapper button:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .title-box:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .month.focused:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .date-cell:focus-visible:not(.preview-start,.preview-end){outline:3px solid var(--wmcolor-interactive-focus);outline-offset:-2px;border:none;z-index:11}.popup-wrapper button:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .title-box:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .month.focused:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .date-cell:focus-visible:not(.preview-start,.preview-end)[aria-selected=true]{outline-offset:2px}.popup-range{display:-ms-flexbox;display:flex}.popup{width:21rem}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}';var g=e("priv_calendar",function(){function e(e){var n=this;r(this,e);this.cellTriggered=a(this,"cellTriggered",7);this.cellHovered=a(this,"cellHovered",7);this.outOfCal=a(this,"outOfCal",7);this.popupBlurred=a(this,"popupBlurred",7);this.dateFocus=a(this,"dateFocus",7);this.today=this.dateToISO(new Date);this.calType="single";this.calName="";this.calInstructions=o.formatMessage({id:"date.instructions",defaultMessage:"Use arrows to select a date in the table. Tab left or right to buttons for selecting previous month, next month, or the month selection table."});this._focus={year:{asString:function(){return d.year.asString(n.focusDate)},asInt:function(){return d.year.asInt(n.focusDate)},set:function(e){var r=n._focus.month.asInt();var a=n._focus.day.asInt();n.focusDate=p(e,r,a)},increase:function(e){var r=d.year.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.year.decrease(n.focusDate,e);n.focusDate=r}},month:{asString:function(){return d.month.asString(n.focusDate)},asInt:function(){return d.month.asInt(n.focusDate)},set:function(e){var r=n._focus.year.asInt();var a=n._focus.day.asInt();n.focusDate=p(r,e,a)},increase:function(e){var r=d.month.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.month.decrease(n.focusDate,e);n.focusDate=r}},day:{asString:function(){return d.day.asString(n.focusDate)},asInt:function(){return d.day.asInt(n.focusDate)},set:function(e){var r=n._focus.year.asInt();var a=n._focus.month.asInt();e=e===-1?c(a,r):e;n.focusDate=p(r,a,e)},increase:function(e){var r=d.day.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.day.decrease(n.focusDate,e);n.focusDate=r}}};this.monthButtonFocus={set:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];a.classList.remove("selected");a.tabIndex=-1;r[e-1].classList.add("selected");r[e-1].tabIndex=0;r[e-1].focus()},increase:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];var t=r.indexOf(a);var i=(t+e)%12;if(i<t){n._focus.year.increase(1)}a.classList.remove("focused");a.tabIndex=-1;r[i].classList.add("focused");r[i].tabIndex=0;r[i].focus()},decrease:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];var t=r.indexOf(a);var i=t+24;i=(i-e)%12;if(i>t){n._focus.year.decrease(1)}a.classList.remove("focused");a.tabIndex=-1;r[i].classList.add("focused");r[i].tabIndex=0;r[i].focus()}};this.renderCalendarDate=function(e,r,a,i){if(e==="placeholder"){return t("div",{role:"gridcell"})}var p=d.month.asInt(e);var u=d.day.asInt(e);var g=d.year.asInt(e);var v=a&&a===e;var w=v?"true":"false";var h=["date-cell"];var f=e===n.focusDate;var b=e===n.today;if(b)h.push("today");if(n.calType==="range"){var m=a&&i&&i===e&&a<i;w=m?"true":w;var k=u===1;var y=u===c(p,g);var x=n.isInRange(e);var C=n.isInRangePreview(e);var M=!i&&a&&n.hoverDate&&e===n.hoverDate;var _=M&&n.hoverDate<a;var A=M&&n.hoverDate>a;if(k)h.push("first-of-month");if(y)h.push("last-of-month");if(v){if(C&&!m&&n.hoverDate&&n.hoverDate<a){h.push("range-end")}else{h.push("range-start")}}if(m)h.push("range-end");if(x)h.push("in-range");if(C)h.push("in-range preview");if(_)h.push("preview-start");if(A)h.push("preview-end")}var z=h.join(" ");return t("div",{role:"gridcell",id:"cell-".concat(e),class:z,"aria-selected":w,"aria-label":"".concat(b?"".concat(o.formatMessage({id:"date.today",defaultMessage:"today",description:"calendar button"}),", "):"").concat(s[r],", ").concat(l[p-1]," ").concat(u,", ").concat(g),onClick:function(e){n.handleDateClick(e.target)},onMouseOver:function(){return n.cellHovered.emit(e)},"data-month":d.month.asString(e),"data-year":d.year.asString(e),onBlur:function(e){return e.stopPropagation()},tabIndex:f?0:-1},u)};this.disabled=false;this.view="day";this.focusDate=this.today;this.startDate=undefined;this.endDate=undefined;this.hoverDate=undefined}e.prototype.setCalName=function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");var r;if(e.length===1){r=o.formatMessage({id:"date.calName",defaultMessage:"Calendar. "})}else if(e[0]===this.el){r=o.formatMessage({id:"date.firstCalName",defaultMessage:"First calendar. "})}else{r=o.formatMessage({id:"date.secondCalName",defaultMessage:"Second calendar. "})}this.calName=r};e.prototype.setCalType=function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");this.calType=e.length===1?"single":"range"};e.prototype.componentWillLoad=function(){this.setCalName();this.setCalType()};e.prototype.handleFocusDate=function(e,r){if(this.view==="day"){var a=this.getCell(r);if(a)a.tabIndex=-1;var t=this.getCell(e);if(t)t.tabIndex=0}else{var n=this.el.querySelector("#month-".concat(d.month.asInt(r)));if(n)n.tabIndex=-1;var i=this.el.querySelector("#month-".concat(d.month.asInt(e)));if(i)i.tabIndex=0}this.dateFocus.emit()};Object.defineProperty(e.prototype,"otherCalEl",{get:function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");var r;if(e.length===2){r=e[0]===this.el?e[1]:e[0]}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"headerButtonEls",{get:function(){return Array.from(this.el.querySelectorAll(".header-btn"))},enumerable:false,configurable:true});e.prototype.handleKey=function(e){switch(e.key){case" ":case"Enter":e.preventDefault();!e.target.id.includes("popup-title")&&e.target.click();break;case"PageUp":e.preventDefault();if(this.view==="day"){this._focus.month.decrease(1);this.focusCell()}else{this._focus.year.decrease(1)}break;case"PageDown":e.preventDefault();if(this.view==="day"){this._focus.month.increase(1);this.focusCell()}else{this._focus.year.increase(1)}break;case"Home":e.preventDefault();if(this.view==="day"){this._focus.day.set(1);this.focusCell()}else{this.monthButtonFocus.set(1)}break;case"End":e.preventDefault();if(this.view==="day"){this._focus.day.set(-1);this.focusCell()}else{this.monthButtonFocus.set(12)}break;case"ArrowLeft":e.preventDefault();if(this.view==="day"){this._focus.day.decrease(1);this.focusCell()}else{this.monthButtonFocus.decrease(1)}break;case"ArrowRight":e.preventDefault();if(this.view==="day"){this._focus.day.increase(1);this.focusCell()}else{this.monthButtonFocus.increase(1)}break;case"ArrowUp":e.preventDefault();if(this.view==="day"){this._focus.day.decrease(7);this.focusCell()}else{this.monthButtonFocus.decrease(3)}break;case"ArrowDown":e.preventDefault();if(this.view==="day"){if(!(document.activeElement.shadowRoot||document).activeElement.classList.contains("date-cell")){this.focusCell();break}this._focus.day.increase(7);this.focusCell()}else{var r=(document.activeElement.shadowRoot||document).activeElement;if(r.classList.contains("header-btn")){var a="#month-".concat(this._focus.month.asInt());var t=this.el.querySelector(a);t.tabIndex=0;t.focus();break}this.monthButtonFocus.increase(3)}break}};e.prototype.handleDateClick=function(e){var r={cal:this.el,cell:e};this.cellTriggered.emit(r)};e.prototype.removeZeroes=function(e){return+e<10?+e.slice(1):+e};e.prototype.dateToISO=function(e){var r=[e.getUTCFullYear().toString().padStart(4,"0"),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0")];return r.join("-")};e.prototype.isInRange=function(e){if(this.otherCalEl){var r=this.startDate||this.otherCalEl.startDate;var a=this.endDate||this.otherCalEl.endDate;if(r&&a){return r<=e&&e<=a}}return false};e.prototype.isInRangePreview=function(e){if(this.otherCalEl){var r=this.startDate||this.otherCalEl.startDate;var a=this.endDate||this.otherCalEl.endDate;if(r&&a)return false;if(r&&this.hoverDate){if(this.hoverDate>r){return r<=e&&e<=this.hoverDate}else if(this.hoverDate<r){return this.hoverDate<=e&&e<=r}}else if(a&&this.hoverDate){if(this.hoverDate<a){return this.hoverDate<=e&&e<=a}else if(this.hoverDate>a){return a<=e&&e<=this.hoverDate}}}return false};e.prototype.getMonthFirstDay=function(e,r){return+new Date(r,e-1,1,12,0,0).getDay()+1};e.prototype.getCalendarDates=function(e){var r=d.month.asInt(e);var a=d.year.asInt(e);var t=c(r,a);var n=__spreadArray([],new Array(t).fill(undefined),true).map((function(e,t){var n=t+1;return p(a,r,n)}));var i=this.getMonthFirstDay(r,a);var o=i-1;var s=o>0?new Array(o).fill("placeholder"):[];var l=42-(o+t);l=l>6?l-7:l;var u=l>0?new Array(l).fill("placeholder"):[];return __spreadArray(__spreadArray(__spreadArray([],s,true),n,true),u,true)};e.prototype.getCell=function(e){return this.el.querySelector("#cell-".concat(e))};e.prototype.focusFirstFocusable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prevBtnEl.focus();return[2]}))}))};e.prototype.focusLastFocusable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.focusCell();return[2]}))}))};e.prototype.focusCell=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){requestAnimationFrame((function(){var r=c(e._focus.month.asInt(),e._focus.year.asInt());var a=e._focus.day.asInt();if(a>r){e._focus.day.set(r)}var t=e.getCell(e.focusDate);if(t){t.tabIndex=0;t.focus()}if(e.view=="day"){e.cellHovered.emit(e.focusDate)}}));return[2]}))}))};e.prototype.toggleBusyAttribute=function(e){this.el.querySelector("#wm-container").setAttribute("aria-busy",e)};e.prototype.renderMonth=function(e,r){var a=this;return t("button",{id:"month-".concat(r+1),class:"month ".concat(this._focus.month.asInt()===r+1?"selected focused":""),role:"gridcell",tabindex:r+1===this._focus.month.asInt()?0:-1,onBlur:function(e){return e.stopPropagation()},onClick:function(){a._focus.month.set(r+1);a.view="day";a.focusCell()}},e)};e.prototype.renderDayView=function(){var e=this;var r=this.getCalendarDates(this.focusDate);var a=this.startDate||this.otherCalEl&&this.otherCalEl.startDate;var n=this.endDate||this.otherCalEl&&this.otherCalEl.endDate;return t("div",{class:"popup day-view"},t("div",{class:"calendar-header"},t("button",{onClick:function(){e._focus.month.decrease(1)},class:"header-btn arw-btn",ref:function(r){return e.prevBtnEl=r},"aria-label":o.formatMessage({id:"date.selectPreviousMonth",defaultMessage:"Select previous month",description:"Calendar button"})},t("span",{class:"mdi"},"")),t("div",{id:"popup-title-month",class:"header-btn title-box",tabindex:"0",role:"button",onKeyDown:function(r){if(r.key==="Enter"||r.key===" "){r.preventDefault();e.view="month"}},onClick:function(){return e.view="month"},"aria-label":"".concat(o.formatMessage({id:"date.currentMonth",defaultMessage:"current month",description:"Calendar button"}),": ").concat(l[this._focus.month.asInt()-1],"\n ").concat(this._focus.year.asString(),"."),"aria-describedby":"month-title"},t("span",{class:"title","aria-hidden":"true"},l[this._focus.month.asInt()-1]," ",this._focus.year.asString())),t("button",{onClick:function(){e._focus.month.increase(1)},"aria-label":o.formatMessage({id:"date.selectNextMonth",defaultMessage:"Select next month",description:"Calendar button"}),class:"header-btn arw-btn"},t("span",{class:"mdi"},""))),t("div",{"aria-labelledby":"popup-title-month",role:"grid",class:"date-grid"},t("div",{role:"rowgroup",class:"date-header"},t("div",{role:"row",class:"header-row"},t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.su",defaultMessage:"Su",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.mo",defaultMessage:"Mo",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.tu",defaultMessage:"Tu",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.we",defaultMessage:"We",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.th",defaultMessage:"Th",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.fr",defaultMessage:"Fr",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.sa",defaultMessage:"Sa",description:"Abbreviated day of the week"}))))),t("div",{role:"rowgroup"},t("div",{role:"row",class:"date-row"},r.slice(0,7).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(7,14).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(14,21).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(21,28).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(28,35).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),r.length>35?t("div",{role:"row"},r.slice(35).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))):"")))};e.prototype.renderMonthView=function(){var e=this;return t("div",{class:"month-view"},t("div",{class:"calendar-header"},t("button",{onClick:function(){e._focus.year.decrease(1)},"aria-label":o.formatMessage({id:"date.selectPreviousYear",defaultMessage:"Select previous year",description:"Calendar button"}),class:"header-btn arw-btn",ref:function(r){return e.prevBtnEl=r}},t("span",{class:"mdi"},"")),t("div",{id:"popup-title-year",tabindex:"0",class:"header-btn title-box year",role:"button",onClick:function(){return e.view="day"},onKeyDown:function(r){if(r.key==="Enter"||r.key===" "){r.preventDefault();e.view="day"}},"aria-labelledby":"year-title"},t("span",{class:"title"},this._focus.year.asString())),t("button",{onClick:function(){e._focus.year.increase(1)},"aria-label":o.formatMessage({id:"date.selectNextYear",defaultMessage:"Select next year",description:"Calendar button"}),class:"header-btn arw-btn"},t("span",{class:"mdi"},""))),t("div",{"aria-labelledby":"popup-title-year",role:"grid",class:"months"},t("div",{role:"row",class:"month-row"},l.slice(0,3).map((function(r,a){return e.renderMonth(r,a)}))),t("div",{role:"row",class:"month-row"},l.slice(3,6).map((function(r,a){return e.renderMonth(r,a+3)}))),t("div",{role:"row",class:"month-row"},l.slice(6,9).map((function(r,a){return e.renderMonth(r,a+6)}))),t("div",{role:"row",class:"month-row"},l.slice(9).map((function(r,a){return e.renderMonth(r,a+9)})))))};e.prototype.render=function(){var e=this;return t(n,{onMouseOut:function(r){if(!e.el.parentElement.contains(r.toElement))e.outOfCal.emit()},role:"application","aria-describedby":"application"},this.view==="day"?this.renderDayView():this.renderMonthView(),t("div",{id:"application",class:"sr-only"},this.calName,this.calInstructions))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{focusDate:["handleFocusDate"]}},enumerable:false,configurable:true});return e}());g.style=u}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,r,a,t){function n(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,i){function o(e){try{p(t.next(e))}catch(e){i(e)}}function d(e){try{p(t["throw"](e))}catch(e){i(e)}}function p(e){e.done?a(e.value):n(e.value).then(o,d)}p((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,n,i,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(r){return p([e,r])}}function p(d){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(a=0)),a)try{if(t=1,n&&(i=d[0]&2?n["return"]:d[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;if(n=0,i)d=[d[0]&2,i.value];switch(d[0]){case 0:case 1:i=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;n=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){a.label=d[1];break}if(d[0]===6&&a.label<i[1]){a.label=i[1];i=d;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(d);break}if(i[2])a.ops.pop();a.trys.pop();continue}d=r.call(e,a)}catch(e){d=[6,e];n=0}finally{t=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,a){if(a||arguments.length===2)for(var t=0,n=r.length,i;t<n;t++){if(i||!(t in r)){if(!i)i=Array.prototype.slice.call(r,0,t);i[t]=r[t]}}return e.concat(i||Array.prototype.slice.call(r))};System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js"],(function(e){"use strict";var r,a,t,n,i,o,d,p,s,l,c;return{setters:[function(e){r=e.r;a=e.c;t=e.h;n=e.H;i=e.g},function(e){o=e.i;d=e.B;p=e.I;s=e.J;l=e.K;c=e.C}],execute:function(){var u=':host{--wmcolor-calendar-border:var(--wmcolor-border);--wmcolor-calendar-day-border-hover:var(--wmcolor-border-focus);--wmcolor-calendar-range-background:var(--wmcolor-interactive-background-hover);--wmcolor-datepicker-range-background-hover:var(--wmcolor-datepicker-day-background-hover);--wmcolor-datepicker-range-background-selected:var(--wmcolor-background-selected);--range-start-svg:url(\'data:image/svg+xml,<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 6C0 2.68629 2.68629 0 6 0H28.8457C31.0777 0 33.1251 1.23886 34.1607 3.21596L42.5417 19.216C43.455 20.9596 43.455 23.0404 42.5417 24.784L34.1607 40.784C33.1251 42.7611 31.0777 44 28.8458 44H6C2.68629 44 0 41.3137 0 38V6Z" fill="%23575195"/></svg>\');--range-end-svg:url(\'data:image/svg+xml,<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M44 6C44 2.68629 41.3137 0 38 0H15.1543C12.9223 0 10.8749 1.23886 9.83926 3.21596L1.45831 19.216C0.544956 20.9596 0.54496 23.0404 1.45831 24.784L9.83926 40.784C10.8749 42.7611 12.9223 44 15.1542 44H38C41.3137 44 44 41.3137 44 38V6Z" fill="%23575195"/></svg>\');--range-background-selected:linear-gradient(\n transparent,\n transparent 5px,\n var(--wmcolor-datepicker-range-background-selected) 5px,\n var(--wmcolor-datepicker-range-background-selected) 39px,\n transparent 39px\n );--range-background-hover:linear-gradient(\n transparent,\n transparent 5px,\n var(--wmcolor-datepicker-range-background-hover) 5px,\n var(--wmcolor-datepicker-range-background-hover) 39px,\n transparent 39px\n )}:host priv-calendar+priv-calendar{-webkit-border-start:1px solid var(--wmcolor-calendar-border);border-inline-start:1px solid var(--wmcolor-calendar-border)}.toggle{all:unset;cursor:pointer;padding:0 0.375rem;height:2.375rem;background-color:var(--wmcolor-datepicker-toggle-background);border:none;border-radius:3px}.toggle span::after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f0ed";font-size:1.5rem;color:var(--wmcolor-datepicker-toggle-icon);padding:0;line-height:2.5rem}.toggle:hover{-webkit-box-shadow:none;box-shadow:none;background:var(--wmcolor-datepicker-toggle-background-hover)}.toggle:disabled{pointer-events:none;-webkit-box-shadow:none;box-shadow:none;background-color:var(--wmcolor-datepicker-toggle-background-disabled)}.toggle:disabled .calendar::after{color:var(--wmcolor-datepicker-toggle-icon-disabled)}[dir=RTL] .toggle{right:auto;left:0}.toggle::-moz-focus-inner{border:0}.toggle:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:0}.toggle:focus-visible:not(:active){border:none;z-index:11}.inside .toggle{border-top-left-radius:0;border-bottom-left-radius:0;border-start-start-radius:0;border-end-start-radius:0}.popup-wrapper{visibility:hidden;font-family:inherit;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;-webkit-box-shadow:0px 4px 15px 0px rgba(0, 0, 0, 0.2);box-shadow:0px 4px 15px 0px rgba(0, 0, 0, 0.2);z-index:10;position:absolute;left:0;top:calc(100% + 2px);min-height:21.0625rem;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;-webkit-transform-origin:center top;transform-origin:center top;-webkit-transform:scale(1, 0);transform:scale(1, 0);background-color:var(--wmcolor-datepicker-background)}.popup-wrapper.start{border:2px solid cyan}.popup-wrapper.end{left:247px !important;border:2px solid teal}.popup-wrapper.open{-webkit-transform:scale(1, 1);transform:scale(1, 1)}.popup-wrapper.expand-upwards{top:auto;bottom:2.375rem;-webkit-transform-origin:center bottom;transform-origin:center bottom}.popup-wrapper .calendar-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;position:relative;padding:0.9375rem 0.25rem}.popup-wrapper .calendar-header .title-box{height:2.625rem;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:1px solid;font-weight:500;font-size:0.875rem;background:var(--wmcolor-datepicker-selector-background);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:0 0.375rem 0 0.75rem;border-color:var(--wmcolor-datepicker-selector-border);color:var(--wmcolor-datepicker-selector-text)}.popup-wrapper .calendar-header .title-box:after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f140";padding-left:0.75rem;font-size:1.12rem}.popup-wrapper .calendar-header .title-box.year:after{content:"\\f143"}.popup-wrapper .calendar-header .title-box::-moz-focus-inner{border:0}.popup-wrapper .calendar-header .arw-btn{cursor:pointer;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;width:2.75rem;height:2.75rem;border:none;color:var(--wmcolor-datepicker-navigation-text);background:var(--wmcolor-datepicker-navigation-background);padding:0;-webkit-box-shadow:none;box-shadow:none;line-height:2.75rem}.popup-wrapper .calendar-header .arw-btn .mdi{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1.5rem;font-weight:normal;line-height:2.75rem}.popup-wrapper .calendar-header .arw-btn:hover{background-color:var(--wmcolor-datepicker-navigation-background-hover)}.popup-wrapper .calendar-header .arw-btn:active{-ms-transform:scale(0.9, 0.9);-webkit-transform:scale(0.9, 0.9);-moz-transform:scale(0.9, 0.9);transform:scale(0.9, 0.9)}.popup-wrapper .separator{min-width:1px;background:var(--wm-color-border)}.popup-wrapper .day-view{min-width:21rem}.popup-wrapper .day-view .date-grid{width:100%;text-align:center;border-collapse:collapse;margin-bottom:0.4375rem;color:var(--wmcolor-datepicker-day-text)}.popup-wrapper .day-view .date-grid div[role=row]{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;padding-inline:0.875rem}.popup-wrapper .day-view .date-grid div[role=row]:not(.header-row){height:2.75rem}.popup-wrapper .day-view .date-grid .date-header{background-color:var(--wmcolor-datepicker-weekdays-background)}.popup-wrapper .day-view .date-grid .header-cell{height:2.0625rem;line-height:2.0625rem;width:2.75rem;margin:0 calc((14.28% - 44px) / 2);padding:0;display:inline-block;font-size:0.8125rem;font-weight:bold;color:var(--wmcolor-datepicker-weekdays-text);border:none}.popup-wrapper .day-view .date-grid [role=gridcell]{padding:0;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;aspect-ratio:1;font-size:0.875rem;font-weight:500;position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 0 2.75rem;flex:1 0 2.75rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.popup-wrapper .day-view .date-grid .date-cell{cursor:pointer}.popup-wrapper .day-view .date-grid .date-cell:hover{background-color:var(--wmcolor-datepicker-day-background-hover)}.popup-wrapper .day-view .date-grid .date-cell[aria-selected=true]{background-color:var(--wmcolor-datepicker-day-background-selected);color:var(--wmcolor-datepicker-day-text-selected)}.popup-wrapper .day-view .date-grid .date-cell.in-range{background:var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-start:not(.preview):hover{background-repeat:no-repeat;background-position:center, center left 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-end:not(.preview):hover{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:not(.preview):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), var(--range-background-selected);color:var(--wmcolor-datepicker-day-text)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview{position:relative;background-image:var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), var(--range-background-hover);background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-position:center left -5px, center left 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview:last-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-position:center right -5px, center right 17px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview.last-of-month:first-child:not(.preview-start,.preview-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), radial-gradient(var(--wmcolor-datepicker-range-background-hover) 16px, transparent 17px), linear-gradient(transparent, transparent 15px, var(--wmcolor-datepicker-range-background-hover) 15px, var(--wmcolor-datepicker-range-background-hover) 29px, transparent 29px);background-position:center left -5px, center right -5px, center;background-size:auto, auto, 9px}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:last-child,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:first-child{background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 17px, var(--wmcolor-calendar-day-border-hover) 18px, var(--wmcolor-calendar-day-border-hover) 20px, transparent 21px)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start{background-position:center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:first-child{background-position:center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:last-child{background-position:center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start{background-image:radial-gradient(var(--wmcolor-datepicker-range-background-hover) 17px, var(--wmcolor-calendar-day-border-hover) 18px, var(--wmcolor-calendar-day-border-hover) 20px, transparent 21px), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-end:focus-visible,.popup-wrapper .day-view .date-grid .date-cell.in-range.preview-start:focus-visible{outline:none;border:none}.popup-wrapper .day-view .date-grid .date-cell.in-range:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range:first-child:not(.preview-start,.preview-end,.range-start,.range-end),.popup-wrapper .day-view .date-grid .date-cell.in-range.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end){background-image:radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:-5px center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:first-of-type:not(.preview-start,.preview-end,.range-start,.range-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range:first-child:not(.preview-start,.preview-end,.range-start,.range-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.first-of-month:not(.preview-start,.preview-end,.range-start,.range-end):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:center, -5px center, center left 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range.range-start:last-child:hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.range-end:first-child:hover{background:radial-gradient(#dbd9ef 20px, transparent 21px);background-position:center}.popup-wrapper .day-view .date-grid .date-cell.in-range:last-of-type:not(.range-start,.range-end,.preview),.popup-wrapper .day-view .date-grid .date-cell.in-range:last-child:not(.range-start,.range-end,.preview),.popup-wrapper .day-view .date-grid .date-cell.in-range.last-of-month:not(.range-start,.range-end,.preview){background:radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:5px center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.in-range:last-of-type:not(.range-start,.range-end,.preview-start,.preview-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range:last-child:not(.range-start,.range-end,.preview-start,.preview-end):hover,.popup-wrapper .day-view .date-grid .date-cell.in-range.last-of-month:not(.range-start,.range-end,.preview-start,.preview-end):hover{background-image:radial-gradient(#dbd9ef 20px, transparent 21px), radial-gradient(var(--wmcolor-datepicker-range-background-selected) 16px, transparent 17px), var(--range-background-selected);background-position:center, 5px center, center right 17px;background-repeat:no-repeat}.popup-wrapper .day-view .date-grid .date-cell.today:after{content:"";display:block;position:absolute;inset:auto 0 6px 0;width:6px;aspect-ratio:1;border-radius:50%;justify-self:center;background-color:var(--wmcolor-datepicker-day-background-selected);margin:auto}.popup-wrapper .day-view .date-grid .date-cell.range-start,.popup-wrapper .day-view .date-grid .date-cell.range-end{border-radius:0;margin:0;outline:none;font-weight:600;color:var(--wmcolor-datepicker-day-text-selected)}.popup-wrapper .day-view .date-grid .date-cell.range-start:focus-visible,.popup-wrapper .day-view .date-grid .date-cell.range-end:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:-2px;border:none;z-index:11}.popup-wrapper .day-view .date-grid .date-cell.range-start:focus-visible[aria-selected=true],.popup-wrapper .day-view .date-grid .date-cell.range-end:focus-visible[aria-selected=true]{outline-offset:2px}.popup-wrapper .day-view .date-grid .date-cell.range-start{background-image:var(--range-start-svg);-webkit-padding-end:2px;padding-inline-end:2px;background-color:transparent}.popup-wrapper .day-view .date-grid .date-cell.range-start.in-range:not(:hover,:last-of-type,:last-child){background-image:var(--range-start-svg), var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.range-start.in-range.preview:not(:last-of-type,:last-child){background-image:var(--range-start-svg), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.range-end{background-image:var(--range-end-svg);-webkit-padding-start:2px;padding-inline-start:2px;background-color:transparent}.popup-wrapper .day-view .date-grid .date-cell.range-end.in-range:not(:hover,:first-of-type,:first-child){background-image:var(--range-end-svg), var(--range-background-selected);border-radius:0}.popup-wrapper .day-view .date-grid .date-cell.range-end.in-range.preview:not(:first-of-type,:first-child){background-image:var(--range-end-svg), var(--range-background-hover)}.popup-wrapper .day-view .date-grid .date-cell.range-start.range-end{background:var(--wmcolor-datepicker-day-background-selected);border-radius:50%;padding-inline:0;margin:1px;-ms-flex-preferred-size:42px;flex-basis:42px}.popup-wrapper .month-view .months{border-top:2px solid;border-top-color:var(--wmcolor-datepicker-month-border);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.popup-wrapper .month-view .month-row{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;border-bottom:2px solid;border-bottom-color:var(--wmcolor-datepicker-month-border)}.popup-wrapper .month-view .month{border:none;background:white;cursor:pointer;width:7rem;height:4rem;line-height:4rem;font-family:inherit;font-weight:500;color:var(--wmcolor-datepicker-month-text)}.popup-wrapper .month-view .month:not(:last-child){border-right:2px solid;border-right-color:var(--wmcolor-datepicker-month-border)}.popup-wrapper .month-view .month:hover{border-right-color:transparent;background-color:var(--wmcolor-datepicker-month-background-hover)}.popup-wrapper .month-view .month:active,.popup-wrapper .month-view .month.selected{background-color:var(--wmcolor-datepicker-month-background-selected);color:var(--wmcolor-datepicker-month-text-selected)}.popup-wrapper button:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .title-box:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .month.focused:focus-visible:not(.preview-start,.preview-end),.popup-wrapper .date-cell:focus-visible:not(.preview-start,.preview-end){outline:3px solid var(--wmcolor-interactive-focus);outline-offset:-2px;border:none;z-index:11}.popup-wrapper button:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .title-box:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .month.focused:focus-visible:not(.preview-start,.preview-end)[aria-selected=true],.popup-wrapper .date-cell:focus-visible:not(.preview-start,.preview-end)[aria-selected=true]{outline-offset:2px}.popup-range{display:-ms-flexbox;display:flex}.popup{width:21rem}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}';var g=u;var v=e("priv_calendar",function(){function e(e){var n=this;r(this,e);this.cellTriggered=a(this,"cellTriggered",7);this.cellHovered=a(this,"cellHovered",7);this.outOfCal=a(this,"outOfCal",7);this.popupBlurred=a(this,"popupBlurred",7);this.dateFocus=a(this,"dateFocus",7);this.today=this.dateToISO(new Date);this.calType="single";this.calName="";this.calInstructions=o.formatMessage({id:"date.instructions",defaultMessage:"Use arrows to select a date in the table. Tab left or right to buttons for selecting previous month, next month, or the month selection table."});this._focus={year:{asString:function(){return d.year.asString(n.focusDate)},asInt:function(){return d.year.asInt(n.focusDate)},set:function(e){var r=n._focus.month.asInt();var a=n._focus.day.asInt();n.focusDate=p(e,r,a)},increase:function(e){var r=d.year.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.year.decrease(n.focusDate,e);n.focusDate=r}},month:{asString:function(){return d.month.asString(n.focusDate)},asInt:function(){return d.month.asInt(n.focusDate)},set:function(e){var r=n._focus.year.asInt();var a=n._focus.day.asInt();n.focusDate=p(r,e,a)},increase:function(e){var r=d.month.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.month.decrease(n.focusDate,e);n.focusDate=r}},day:{asString:function(){return d.day.asString(n.focusDate)},asInt:function(){return d.day.asInt(n.focusDate)},set:function(e){var r=n._focus.year.asInt();var a=n._focus.month.asInt();e=e===-1?s(a,r):e;n.focusDate=p(r,a,e)},increase:function(e){var r=d.day.increase(n.focusDate,e);n.focusDate=r},decrease:function(e){var r=d.day.decrease(n.focusDate,e);n.focusDate=r}}};this.monthButtonFocus={set:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];a.classList.remove("selected");a.tabIndex=-1;r[e-1].classList.add("selected");r[e-1].tabIndex=0;r[e-1].focus()},increase:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];var t=r.indexOf(a);var i=(t+e)%12;if(i<t){n._focus.year.increase(1)}a.classList.remove("focused");a.tabIndex=-1;r[i].classList.add("focused");r[i].tabIndex=0;r[i].focus()},decrease:function(e){var r=Array.from(n.el.querySelectorAll(".month"));var a=r.filter((function(e){return e.classList.contains("focused")}))[0];var t=r.indexOf(a);var i=t+24;i=(i-e)%12;if(i>t){n._focus.year.decrease(1)}a.classList.remove("focused");a.tabIndex=-1;r[i].classList.add("focused");r[i].tabIndex=0;r[i].focus()}};this.renderCalendarDate=function(e,r,a,i){if(e==="placeholder"){return t("div",{role:"gridcell"})}var p=d.month.asInt(e);var u=d.day.asInt(e);var g=d.year.asInt(e);var v=a&&a===e;var w=v?"true":"false";var h=["date-cell"];var f=e===n.focusDate;var b=e===n.today;if(b)h.push("today");if(n.calType==="range"){var m=a&&i&&i===e&&a<i;w=m?"true":w;var k=u===1;var y=u===s(p,g);var x=n.isInRange(e);var C=n.isInRangePreview(e);var M=!i&&a&&n.hoverDate&&e===n.hoverDate;var _=M&&n.hoverDate<a;var A=M&&n.hoverDate>a;if(k)h.push("first-of-month");if(y)h.push("last-of-month");if(v){if(C&&!m&&n.hoverDate&&n.hoverDate<a){h.push("range-end")}else{h.push("range-start")}}if(m)h.push("range-end");if(x)h.push("in-range");if(C)h.push("in-range preview");if(_)h.push("preview-start");if(A)h.push("preview-end")}var z=h.join(" ");return t("div",{role:"gridcell",id:"cell-".concat(e),class:z,"aria-selected":w,"aria-label":"".concat(b?"".concat(o.formatMessage({id:"date.today",defaultMessage:"today",description:"calendar button"}),", "):"").concat(l[r],", ").concat(c[p-1]," ").concat(u,", ").concat(g),onClick:function(e){n.handleDateClick(e.target)},onMouseOver:function(){return n.cellHovered.emit(e)},"data-month":d.month.asString(e),"data-year":d.year.asString(e),onBlur:function(e){return e.stopPropagation()},tabIndex:f?0:-1},u)};this.disabled=false;this.view="day";this.focusDate=this.today;this.startDate=undefined;this.endDate=undefined;this.hoverDate=undefined}e.prototype.setCalName=function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");var r;if(e.length===1){r=o.formatMessage({id:"date.calName",defaultMessage:"Calendar. "})}else if(e[0]===this.el){r=o.formatMessage({id:"date.firstCalName",defaultMessage:"First calendar. "})}else{r=o.formatMessage({id:"date.secondCalName",defaultMessage:"Second calendar. "})}this.calName=r};e.prototype.setCalType=function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");this.calType=e.length===1?"single":"range"};e.prototype.componentWillLoad=function(){this.setCalName();this.setCalType()};e.prototype.handleFocusDate=function(e,r){if(this.view==="day"){var a=this.getCell(r);if(a)a.tabIndex=-1;var t=this.getCell(e);if(t)t.tabIndex=0}else{var n=this.el.querySelector("#month-".concat(d.month.asInt(r)));if(n)n.tabIndex=-1;var i=this.el.querySelector("#month-".concat(d.month.asInt(e)));if(i)i.tabIndex=0}this.dateFocus.emit()};Object.defineProperty(e.prototype,"otherCalEl",{get:function(){var e=this.el.parentElement.querySelectorAll("priv-calendar");var r;if(e.length===2){r=e[0]===this.el?e[1]:e[0]}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"headerButtonEls",{get:function(){return Array.from(this.el.querySelectorAll(".header-btn"))},enumerable:false,configurable:true});e.prototype.handleKey=function(e){switch(e.key){case" ":case"Enter":e.preventDefault();!e.target.id.includes("popup-title")&&e.target.click();break;case"PageUp":e.preventDefault();if(this.view==="day"){this._focus.month.decrease(1);this.focusCell()}else{this._focus.year.decrease(1)}break;case"PageDown":e.preventDefault();if(this.view==="day"){this._focus.month.increase(1);this.focusCell()}else{this._focus.year.increase(1)}break;case"Home":e.preventDefault();if(this.view==="day"){this._focus.day.set(1);this.focusCell()}else{this.monthButtonFocus.set(1)}break;case"End":e.preventDefault();if(this.view==="day"){this._focus.day.set(-1);this.focusCell()}else{this.monthButtonFocus.set(12)}break;case"ArrowLeft":e.preventDefault();if(this.view==="day"){this._focus.day.decrease(1);this.focusCell()}else{this.monthButtonFocus.decrease(1)}break;case"ArrowRight":e.preventDefault();if(this.view==="day"){this._focus.day.increase(1);this.focusCell()}else{this.monthButtonFocus.increase(1)}break;case"ArrowUp":e.preventDefault();if(this.view==="day"){this._focus.day.decrease(7);this.focusCell()}else{this.monthButtonFocus.decrease(3)}break;case"ArrowDown":e.preventDefault();if(this.view==="day"){if(!(document.activeElement.shadowRoot||document).activeElement.classList.contains("date-cell")){this.focusCell();break}this._focus.day.increase(7);this.focusCell()}else{var r=(document.activeElement.shadowRoot||document).activeElement;if(r.classList.contains("header-btn")){var a="#month-".concat(this._focus.month.asInt());var t=this.el.querySelector(a);t.tabIndex=0;t.focus();break}this.monthButtonFocus.increase(3)}break}};e.prototype.handleDateClick=function(e){var r={cal:this.el,cell:e};this.cellTriggered.emit(r)};e.prototype.removeZeroes=function(e){return+e<10?+e.slice(1):+e};e.prototype.dateToISO=function(e){var r=[e.getUTCFullYear().toString().padStart(4,"0"),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0")];return r.join("-")};e.prototype.isInRange=function(e){if(this.otherCalEl){var r=this.startDate||this.otherCalEl.startDate;var a=this.endDate||this.otherCalEl.endDate;if(r&&a){return r<=e&&e<=a}}return false};e.prototype.isInRangePreview=function(e){if(this.otherCalEl){var r=this.startDate||this.otherCalEl.startDate;var a=this.endDate||this.otherCalEl.endDate;if(r&&a)return false;if(r&&this.hoverDate){if(this.hoverDate>r){return r<=e&&e<=this.hoverDate}else if(this.hoverDate<r){return this.hoverDate<=e&&e<=r}}else if(a&&this.hoverDate){if(this.hoverDate<a){return this.hoverDate<=e&&e<=a}else if(this.hoverDate>a){return a<=e&&e<=this.hoverDate}}}return false};e.prototype.getMonthFirstDay=function(e,r){return+new Date(r,e-1,1,12,0,0).getDay()+1};e.prototype.getCalendarDates=function(e){var r=d.month.asInt(e);var a=d.year.asInt(e);var t=s(r,a);var n=__spreadArray([],new Array(t).fill(undefined),true).map((function(e,t){var n=t+1;return p(a,r,n)}));var i=this.getMonthFirstDay(r,a);var o=i-1;var l=o>0?new Array(o).fill("placeholder"):[];var c=42-(o+t);c=c>6?c-7:c;var u=c>0?new Array(c).fill("placeholder"):[];return __spreadArray(__spreadArray(__spreadArray([],l,true),n,true),u,true)};e.prototype.getCell=function(e){return this.el.querySelector("#cell-".concat(e))};e.prototype.focusFirstFocusable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prevBtnEl.focus();return[2]}))}))};e.prototype.focusLastFocusable=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.focusCell();return[2]}))}))};e.prototype.focusCell=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){requestAnimationFrame((function(){var r=s(e._focus.month.asInt(),e._focus.year.asInt());var a=e._focus.day.asInt();if(a>r){e._focus.day.set(r)}var t=e.getCell(e.focusDate);if(t){t.tabIndex=0;t.focus()}if(e.view=="day"){e.cellHovered.emit(e.focusDate)}}));return[2]}))}))};e.prototype.toggleBusyAttribute=function(e){this.el.querySelector("#wm-container").setAttribute("aria-busy",e)};e.prototype.renderMonth=function(e,r){var a=this;return t("button",{id:"month-".concat(r+1),class:"month ".concat(this._focus.month.asInt()===r+1?"selected focused":""),role:"gridcell",tabindex:r+1===this._focus.month.asInt()?0:-1,onBlur:function(e){return e.stopPropagation()},onClick:function(){a._focus.month.set(r+1);a.view="day";a.focusCell()}},e)};e.prototype.renderDayView=function(){var e=this;var r=this.getCalendarDates(this.focusDate);var a=this.startDate||this.otherCalEl&&this.otherCalEl.startDate;var n=this.endDate||this.otherCalEl&&this.otherCalEl.endDate;return t("div",{class:"popup day-view"},t("div",{class:"calendar-header"},t("button",{onClick:function(){e._focus.month.decrease(1)},class:"header-btn arw-btn",ref:function(r){return e.prevBtnEl=r},"aria-label":o.formatMessage({id:"date.selectPreviousMonth",defaultMessage:"Select previous month",description:"Calendar button"})},t("span",{class:"mdi"},"")),t("div",{id:"popup-title-month",class:"header-btn title-box",tabindex:"0",role:"button",onKeyDown:function(r){if(r.key==="Enter"||r.key===" "){r.preventDefault();e.view="month"}},onClick:function(){return e.view="month"},"aria-label":"".concat(o.formatMessage({id:"date.currentMonth",defaultMessage:"current month",description:"Calendar button"}),": ").concat(c[this._focus.month.asInt()-1],"\n ").concat(this._focus.year.asString(),"."),"aria-describedby":"month-title"},t("span",{class:"title","aria-hidden":"true"},c[this._focus.month.asInt()-1]," ",this._focus.year.asString())),t("button",{onClick:function(){e._focus.month.increase(1)},"aria-label":o.formatMessage({id:"date.selectNextMonth",defaultMessage:"Select next month",description:"Calendar button"}),class:"header-btn arw-btn"},t("span",{class:"mdi"},""))),t("div",{"aria-labelledby":"popup-title-month",role:"grid",class:"date-grid"},t("div",{role:"rowgroup",class:"date-header"},t("div",{role:"row",class:"header-row"},t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.su",defaultMessage:"Su",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.mo",defaultMessage:"Mo",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.tu",defaultMessage:"Tu",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.we",defaultMessage:"We",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.th",defaultMessage:"Th",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.fr",defaultMessage:"Fr",description:"Abbreviated day of the week"}))),t("div",{role:"columnheader",class:"header-cell"},t("span",null,o.formatMessage({id:"date.sa",defaultMessage:"Sa",description:"Abbreviated day of the week"}))))),t("div",{role:"rowgroup"},t("div",{role:"row",class:"date-row"},r.slice(0,7).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(7,14).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(14,21).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(21,28).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),t("div",{role:"row"},r.slice(28,35).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))),r.length>35?t("div",{role:"row"},r.slice(35).map((function(r,t){return e.renderCalendarDate(r,t,a,n)}))):"")))};e.prototype.renderMonthView=function(){var e=this;return t("div",{class:"month-view"},t("div",{class:"calendar-header"},t("button",{onClick:function(){e._focus.year.decrease(1)},"aria-label":o.formatMessage({id:"date.selectPreviousYear",defaultMessage:"Select previous year",description:"Calendar button"}),class:"header-btn arw-btn",ref:function(r){return e.prevBtnEl=r}},t("span",{class:"mdi"},"")),t("div",{id:"popup-title-year",tabindex:"0",class:"header-btn title-box year",role:"button",onClick:function(){return e.view="day"},onKeyDown:function(r){if(r.key==="Enter"||r.key===" "){r.preventDefault();e.view="day"}},"aria-labelledby":"year-title"},t("span",{class:"title"},this._focus.year.asString())),t("button",{onClick:function(){e._focus.year.increase(1)},"aria-label":o.formatMessage({id:"date.selectNextYear",defaultMessage:"Select next year",description:"Calendar button"}),class:"header-btn arw-btn"},t("span",{class:"mdi"},""))),t("div",{"aria-labelledby":"popup-title-year",role:"grid",class:"months"},t("div",{role:"row",class:"month-row"},c.slice(0,3).map((function(r,a){return e.renderMonth(r,a)}))),t("div",{role:"row",class:"month-row"},c.slice(3,6).map((function(r,a){return e.renderMonth(r,a+3)}))),t("div",{role:"row",class:"month-row"},c.slice(6,9).map((function(r,a){return e.renderMonth(r,a+6)}))),t("div",{role:"row",class:"month-row"},c.slice(9).map((function(r,a){return e.renderMonth(r,a+9)})))))};e.prototype.render=function(){var e=this;return t(n,{key:"14af9cecf405ac061fd2345488fda226bb068a40",onMouseOut:function(r){if(!e.el.parentElement.contains(r.toElement))e.outOfCal.emit()},role:"application","aria-describedby":"application"},this.view==="day"?this.renderDayView():this.renderMonthView(),t("div",{key:"dd1583339054b245d006f4ea3caa7efab5f31e4a",id:"application",class:"sr-only"},this.calName,this.calInstructions))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{focusDate:["handleFocusDate"]}},enumerable:false,configurable:true});return e}());v.style=g}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as s,g as t}from"./p-
|
|
1
|
+
import{r,c as s,g as t}from"./p-d9da0502.js";const a=class{constructor(t){r(this,t),this.wmWrapperLoaded=s(this,"wmWrapperLoaded",7)}componentDidLoad(){this.wmWrapperLoaded.emit()}render(){}get el(){return t(this)}};export{a as wm_wrapper}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="ripple";var i={allRenderFn:false,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:true,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=Object.defineProperty;var f=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var u=new WeakMap;var o=function(r){return u.get(r)};var l=r("r",(function(r,e){return u.set(e.t=r,e)}));var v=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return u.set(r,n)};var s=function(r,e){return e in r};var c=function(r,e){return(0,console.error)(r,e)};var d=new Map;var h=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r._;if(!a){return void 0}var f=d.get(a);if(f){return f[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{d.set(a,r)}return r[i]}),c)};var p=new Map;var m="{visibility:hidden}.hydrated{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w="http://www.w3.org/1999/xlink";var b=typeof window!=="undefined"?window:{};var g=b.document||{head:{}};var _={i:0,S:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var S=function(){var r=false;try{g.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var $=r("p",(function(r){return Promise.resolve(r)}));var k=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var j=false;var x=[];var O=[];var A=function(r,e){return function(n){r.push(n);if(!j){j=true;if(e&&_.i&4){E(T)}else{_.raf(T)}}}};var C=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){c(r)}}r.length=0};var T=function(){C(x);{C(O);if(j=x.length>0){_.raf(T)}}};var E=function(r){return $().then(r)};var D=A(O,true);var L={};var R="http://www.w3.org/2000/svg";var F="http://www.w3.org/1999/xhtml";var M=function(r){return r!=null};var P=function(r){r=typeof r;return r==="object"||r==="function"};function U(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var N={};f(N,{err:function(){return H},map:function(){return z},ok:function(){return W},unwrap:function(){return B},unwrapErr:function(){return G}});var W=function(r){return{isOk:true,isErr:false,value:r}};var H=function(r){return{isOk:false,isErr:true,value:r}};function z(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return W(r)}))}else{return W(n)}}if(r.isErr){var t=r.value;return H(t)}throw"should never get here"}var B=function(r){if(r.isOk){return r.value}else{throw r.value}};var G=function(r){if(r.isErr){return r.value}else{throw r.value}};var I=function(r,e){if(e===void 0){e=""}{return function(){return}}};var Q=function(r,e){{return function(){return}}};var q=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!P(i)){i=String(i)}if(u&&o){l[l.length-1].$+=i}else{l.push(u?K(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,J)}var c=K(r,null);c.k=e;if(l.length>0){c.j=l}{c.O=a}{c.A=f}return c}));var K=function(r,e){var n={i:0,C:r,$:e,T:null,j:null};{n.k=null}{n.O=null}{n.A=null}return n};var V=r("H",{});var X=function(r){return r&&r.C===V};var J={forEach:function(r,e){return r.map(Y).forEach(e)},map:function(r,e){return r.map(Y).map(e).map(Z)}};var Y=function(r){return{vattrs:r.k,vchildren:r.j,vkey:r.O,vname:r.A,vtag:r.C,vtext:r.$}};var Z=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return q.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=K(r.vtag,r.vtext);n.k=r.vattrs;n.j=r.vchildren;n.O=r.vkey;n.A=r.vname;return n};var rr=function(r,e){if(r!=null&&!P(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var er=r("g",(function(r){return o(r).$hostElement$}));var nr=r("c",(function(r,e,n){var t=er(r);return{emit:function(r){return tr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var tr=function(r,e,n){var t=_.ce(e,n);r.dispatchEvent(t);return t};var ir=new WeakMap;var ar=function(r,e,n){var t=p.get(r);if(k&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}p.set(r,t)};var fr=function(r,e,n){var t;var i=or(e);var a=p.get(i);r=r.nodeType===11?r:g;if(a){if(typeof a==="string"){r=r.head||r;var f=ir.get(r);var u=void 0;if(!f){ir.set(r,f=new Set)}if(!f.has(i)){{u=g.createElement("style");u.innerHTML=a;var o=(t=_.D)!=null?t:U(g);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:document.querySelector("style");r.insertBefore(u,v)}else if("host"in r){r.prepend(u)}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=y}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var ur=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=I("attachStyles",e.m);var a=fr(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var or=function(r,e){return"sc-"+r.m};var lr=function(r,e,n,t,i,a){if(n!==t){var f=s(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=sr(n);var v=sr(t);o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){r.style.removeProperty(c)}else{r.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){r.style.setProperty(c,t[c])}else{r.style[c]=t[c]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(s(b,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var d=e.endsWith(cr);e=e.replace(dr,"");if(n){_.rel(r,e,n,d)}if(t){_.ael(r,e,t,d)}}}else{var h=P(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(w,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(w,e,t)}else{r.setAttribute(e,t)}}}}};var vr=/\s/;var sr=function(r){return!r?[]:r.split(vr)};var cr="Capture";var dr=new RegExp(cr+"$");var hr=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.k||L;var a=e.k||L;{for(var f=0,u=pr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){lr(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=pr(Object.keys(a));l<v.length;l++){var o=v[l];lr(t,o,i[o],a[o],n,e.i)}};function pr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var mr;var yr;var wr;var br=false;var gr=false;var _r=false;var Sr=false;var $r=function(r,e,n,t){var a;var f=e.j[n];var u=0;var o;var l;var v;if(!br){_r=true;if(f.C==="slot"){if(mr){t.classList.add(mr+"-s")}f.i|=f.j?2:1}}if(f.$!==null){o=f.T=g.createTextNode(f.$)}else if(f.i&1){o=f.T=g.createTextNode("")}else{if(!Sr){Sr=f.C==="svg"}o=f.T=g.createElementNS(Sr?R:F,!br&&i.slotRelocation&&f.i&2?"slot-fb":f.C);if(Sr&&f.C==="foreignObject"){Sr=false}{hr(null,f,Sr)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&M(mr)&&o["s-si"]!==mr){o.classList.add(o["s-si"]=mr)}if(f.j){for(u=0;u<f.j.length;++u){l=$r(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.C==="svg"){Sr=false}else if(o.tagName==="foreignObject"){Sr=true}}}o["s-hn"]=wr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=yr;o["s-sn"]=f.A||"";o["s-rf"]=(a=f.k)==null?void 0:a.ref;v=r&&r.j&&r.j[n];if(v&&v.C===f.C&&r.T){{kr(r.T,false)}}}}return o};var kr=function(r,e){_.i|=1;var n=Array.from(r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===wr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==wr&&f["s-ol"]){Pr(Tr(f),f,Cr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;_r=true}if(e){kr(f,e)}}_.i&=~1};var jr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===wr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=$r(null,n,i,r);if(u){t[i].T=u;Pr(f,u,Cr(e))}}}};var xr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;Mr(i);if(a){{gr=true;if(a["s-ol"]){a["s-ol"].remove()}else{kr(a,true)}}a.remove()}}}};var Or=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(Ar(v,d,i)){Er(v,d,i);v=e[++a];d=t[++f]}else if(Ar(s,h,i)){Er(s,h,i);s=e[--l];h=t[--c]}else if(Ar(v,h,i)){if(v.C==="slot"||h.C==="slot"){kr(v.T.parentNode,false)}Er(v,h,i);Pr(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(Ar(s,d,i)){if(v.C==="slot"||h.C==="slot"){kr(s.T.parentNode,false)}Er(s,d,i);Pr(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].O!==null&&e[o].O===d.O){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=$r(e&&e[f],n,u,r)}else{Er(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=$r(e&&e[f],n,f,r);d=t[++f]}if(p){{Pr(Tr(v.T),p,Cr(v.T))}}}}if(a>l){jr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){xr(e,a,l)}};var Ar=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("L"in r&&n&&r.T.nodeType!==8){return false}return r.A===e.A}if(!n){return r.O===e.O}return true}return false};var Cr=function(r){return r&&r["s-ol"]||r};var Tr=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Er=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.j;var f=e.j;var u=e.C;var o=e.$;var l;if(o===null){{Sr=u==="svg"?true:u==="foreignObject"?false:Sr}{if(u==="slot"&&!br);else{hr(r,e,Sr)}}if(a!==null&&f!==null){Or(t,a,e,f,n)}else if(f!==null){if(r.$!==null){t.textContent=""}jr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){xr(a,0,a.length-1)}if(Sr&&u==="svg"){Sr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.$!==o){t.data=o}};var Dr=function(r){var e=r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else{if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Dr(i)}}};var Lr=[];var Rr=function(r){var e;var n;var t;for(var a=0,f=r.childNodes;a<f.length;a++){var u=f[a];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;var o=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&!i.experimentalSlotFixes){if(Fr(e,o)){var r=Lr.find((function(r){return r.R===e}));gr=true;e["s-sn"]=e["s-sn"]||o;if(r){r.R["s-sh"]=u["s-hn"];r.F=u}else{e["s-sh"]=u["s-hn"];Lr.push({F:u,R:e})}if(e["s-sr"]){Lr.map((function(n){if(Fr(n.R,e["s-sn"])){r=Lr.find((function(r){return r.R===e}));if(r&&!n.F){n.F=r.F}}}))}}else if(!Lr.some((function(r){return r.R===e}))){Lr.push({R:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){Rr(u)}}};var Fr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var Mr=function(r){{r.k&&r.k.ref&&r.k.ref(null);r.j&&r.j.map(Mr)}};var Pr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);return t};var Ur=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.M||K(null,null);var v=X(e)?e:q(null,null,e);wr=u.tagName;if(o.P){v.k=v.k||{};o.P.map((function(r){var e=r[0],n=r[1];return v.k[n]=u[e]}))}if(n&&v.k){for(var s=0,c=Object.keys(v.k);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v.k[d]=u[d]}}}v.C=null;v.i|=4;r.M=v;v.T=l.T=u.shadowRoot||u;{mr=u["s-sc"]}br=(o.i&1)!==0;{yr=u["s-cr"];gr=false}Er(l,v,n);{_.i|=1;if(_r){Rr(v.T);for(var h=0,p=Lr;h<p.length;h++){var m=p[h];var y=m.R;if(!y["s-ol"]){var w=g.createTextNode("");w["s-nr"]=y;Pr(y.parentNode,y["s-ol"]=w,y)}}for(var b=0,S=Lr;b<S.length;b++){var m=S[b];var y=m.R;var $=m.F;if($){var k=$.parentNode;var j=$.nextSibling;{var w=(t=y["s-ol"])==null?void 0:t.previousSibling;while(w){var x=(i=w["s-nr"])!=null?i:null;if(x&&x["s-sn"]===y["s-sn"]&&k===x.parentNode){x=x.nextSibling;while(x===y||(x==null?void 0:x["s-sr"])){x=x==null?void 0:x.nextSibling}if(!x||!x["s-nr"]){j=x;break}}w=w.previousSibling}}if(!j&&k!==y.parentNode||y.nextSibling!==j){if(y!==j){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Pr(k,y,j);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof $["s-rf"]==="function"&&$["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if(gr){Dr(v.T)}_.i&=~1;Lr.length=0}yr=void 0};var Nr=function(r,e){if(e&&!r.U&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.U=e})))}};var Wr=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}Nr(r,r.N);var n=function(){return Hr(r,e)};return D(n)};var Hr=function(r,e){var n=r.$hostElement$;var t=I("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.W){r.W.map((function(r){var e=r[0],n=r[1];return Vr(i,e,n)}));r.W=void 0}}{a=Vr(i,"componentWillLoad")}}else{{a=Vr(i,"componentWillUpdate")}}t();return zr(a,(function(){return Gr(r,i,e)}))};var zr=function(r,e){return Br(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var Br=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var Gr=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=I("update",r.u.m);f=i["s-rc"];if(t){ur(r)}u=I("render",r.u.m);{Ir(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return Qr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var Ir=function(r,e,n,t){try{e=e.render&&e.render();{r.i&=~16}{r.i|=2}{{{Ur(r,e,t)}}}}catch(e){c(e,r.$hostElement$)}return null};var Qr=function(r){var e=r.u.m;var n=r.$hostElement$;var t=I("postUpdate",e);var i=r.t;var a=r.N;{Vr(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{Xr(n)}{Vr(i,"componentDidLoad")}t();{r.p(n);if(!a){Kr()}}}else{{Vr(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.U){r.U();r.U=void 0}if(r.i&512){E((function(){return Wr(r,false)}))}r.i&=~(4|512)}};var qr=r("f",(function(r){{var e=o(r);var n=e.$hostElement$.isConnected;if(n&&(e.i&(2|16))===2){Wr(e,false)}return n}}));var Kr=function(r){{Xr(g.documentElement)}E((function(){return tr(b,"appload",{detail:{namespace:t}})}))};var Vr=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){c(r)}}return void 0};var Xr=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var Jr=function(r,e){return o(r).o.get(e)};var Yr=function(r,e,n,t){var i=o(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var l=i.t;n=rr(n,t.H[e][0]);var v=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!v;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(l){if(t.B&&u&128){var d=t.B[e];if(d){d.map((function(r){try{l[r](n,f,e)}catch(r){c(r,a)}}))}}if((u&(2|16))===2){Wr(i,false)}}}};var Zr=function(r,e,n){var t,i;var a=r.prototype;if(e.H||(e.B||r.watchers)){if(r.watchers&&!e.B){e.B=r.watchers}var f=Object.entries((t=e.H)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return Jr(this,t)},set:function(r){Yr(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=o(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;_.jmp((function(){var f;var l=u.get(r);if(i.hasOwnProperty(l)){t=i[l];delete i[l]}else if(a.hasOwnProperty(l)&&typeof i[l]==="number"&&i[l]==t){return}else if(l==null){var v=o(i);var s=v==null?void 0:v.i;if(s&&!(s&8)&&s&128&&t!==n){var c=v.t;var d=(f=e.B)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}i[l]=t===null&&typeof i[l]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.B)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.P)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var re=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,d,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t._;if(!i)return[3,4];a=h(t);if(!(a&&"then"in a))return[3,2];f=Q();return[4,a];case 1:n=y.sent();f();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.G,'" was not found'))}if(!n.isProxied){{t.B=n.watchers}Zr(n,t,2);n.isProxied=true}u=I("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){c(r)}{e.i&=~8}{e.i|=128}u();return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=or(t);if(!p.has(v)){s=I("registerStyles",t.m);ar(v,l,!!(t.i&1));s()}}y.label=6;case 6:d=e.N;m=function(){return Wr(e,true)};if(d&&d["s-rc"]){d["s-rc"].push(m)}else{m()}return[2]}}))}))};var ee=function(r){};var ne=function(r){if((_.i&1)===0){var e=o(r);var n=e.u;var t=I("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;{if(n.i&(4|8)){te(r)}}{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){Nr(e,e.N=i);break}}}if(n.H){Object.entries(n.H).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{re(r,e,n)}}else{oe(r,e,n.I);if(e==null?void 0:e.t);else if(e==null?void 0:e.h){e.h.then((function(){return ee()}))}}t()}};var te=function(r){var e=r["s-cr"]=g.createComment("");e["s-cn"]=true;Pr(r,e,r.firstChild)};var ie=function(r){};var ae=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((_.i&1)===0){e=o(r);{if(e.q){e.q.map((function(r){return r()}));e.q=void 0}}if(e==null?void 0:e.t);else if(e==null?void 0:e.h){e.h.then((function(){return ie()}))}}return[2]}))}))};var fe=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=I();var i=[];var a=e.exclude||[];var f=b.customElements;var u=g.head;var l=u.querySelector("meta[charset]");var s=g.createElement("style");var c=[];var d;var h=true;Object.assign(_,e);_.S=new URL(e.resourcesUrl||"./",g.baseURI).href;var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],H:e[2],I:e[3]};if(t.i&4){p=true}{t.H=e[2]}{t.I=e[3]}{t.P=[]}{t.B=(n=e[4])!=null?n:{}}var u=t.m;var l=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;v(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;oe(this,e,t.I)}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{_.jmp((function(){return ne(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;_.jmp((function(){return ae(r)}))};e.prototype.componentOnReady=function(){return o(this).h};return e}(HTMLElement);t._=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,Zr(l,t,1))}}))}));if(i.length>0){if(p){s.textContent+=y}{s.textContent+=i.sort()+m}if(s.innerHTML.length){s.setAttribute("data-styles","");var w=(n=_.D)!=null?n:U(g);if(w!=null){s.setAttribute("nonce",w)}u.insertBefore(s,l?l.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{_.jmp((function(){return d=setTimeout(Kr,30)}))}}t()}));var ue=r("F",(function(r,e){return e}));var oe=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=ve(r,t);var u=le(e,a);var o=se(t);_.ael(f,i,u,o);(e.q=e.q||[]).push((function(){return _.rel(f,i,u,o)}))}))}};var le=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.W=r.W||[]).push([e,n])}}}catch(r){c(r)}}};var ve=function(r,e){if(e&4)return g;if(e&8)return b;return r};var se=function(r){return S?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var ce=r("s",(function(r){return _.D=r}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js"],(function(e){"use strict";var t,i,r,o,n,l,s,a,f;return{setters:[function(e){t=e.r;i=e.c;r=e.h;o=e.H;n=e.g},function(e){l=e.i;s=e.m;a=e.s;f=e.h}],execute:function(){var c=':host{--wmcolor-file-background-error:var(--wmcolor-background-error);--wmcolor-file-background:var(--wmcolor-background-readonly);--wmcolor-file-border-error:var(--wmcolor-border-error);--wmcolor-file-border:var(--wmcolor-border);--wmcolor-file-checkmark-icon:var(--wmcolor-positive);--wmcolor-file-progress:var(--wmcolor-progress);display:block;width:100%}.file-wrapper{font-size:0.875rem;position:relative;list-style:none}.file-wrapper .file{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;min-height:3.5rem;padding:0.5rem 1.25rem;position:relative;background:var(--wmcolor-file-background);border:1px solid var(--wmcolor-file-border);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.file-wrapper .file .filename{display:inline-block;white-space:nowrap}.file-wrapper .file .left-group{overflow:hidden;min-width:5.3125rem;-ms-flex-positive:1;flex-grow:1}.file-wrapper .file .right-group{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;-ms-flex-align:center;align-items:center;gap:1rem;min-width:0;padding-left:5rem}.file-wrapper .file .right-group.condensed{padding-left:2.5rem}.file-wrapper .file .right-group .file-controls{display:-ms-flexbox;display:flex;gap:1rem}.file-wrapper .file .right-group .file-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:end;gap:0.25rem;text-align:right;min-width:8.5rem;max-width:450px;-ms-flex:1;flex:1}.file-wrapper .file .right-group .file-info .uploader-name{max-width:100%;overflow-wrap:break-word}.file-wrapper .file.--error{border:1px solid var(--wmcolor-file-border-error);background-color:var(--wmcolor-file-background-error);height:3.75rem}.file-wrapper.checked .file:after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f133";position:absolute;right:-44px;color:var(--wmcolor-file-checkmark-icon);font-size:28px;line-height:1}.name-wrapper{overflow:hidden}.progress{position:absolute;left:0;top:0;right:0;height:8px}.error-message{display:block;font-style:italic;color:var(--wmcolor-text-error);font-size:0.875rem}.error-message:not(:empty){margin-top:0.25rem}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}';var u=c;var d=e("wm_file",function(){function e(e){t(this,e);this.wmFilePreview=i(this,"wmFilePreview",7);this.wmFileDownload=i(this,"wmFileDownload",7);this.wmFileDelete=i(this,"wmFileDelete",7);this.wmFileErrorCleared=i(this,"wmFileErrorCleared",7);this.fullFilename="".concat(this.name,".").concat(this.type);this.name=undefined;this.type=undefined;this.fileActions="download delete";this.lastUpdated=undefined;this.progress=undefined;this.size=undefined;this.uploadedBy=undefined;this.errorMessage=undefined;this.showInfo="last-updated"}Object.defineProperty(e.prototype,"isCondensed",{get:function(){return this.el.clientWidth<500},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUploading",{get:function(){return this.progress!==undefined&&this.progress<100},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"previewButtonTooltip",{get:function(){return l.formatMessage({id:"file.previewButtonTooltip",defaultMessage:"Preview",description:"Tooltip of a button that triggers a file to be previewed"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"downloadButtonTooltip",{get:function(){return l.formatMessage({id:"file.downloadButtonTooltip",defaultMessage:"Download",description:"Tooltip of a button that triggers a file to be downloaded"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"deleteButtonTooltip",{get:function(){return l.formatMessage({id:"file.deleteButtonTooltip",defaultMessage:"Delete",description:"Tooltip of a button that triggers a file to be deleted"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"previewActionMessage",{get:function(){return l.formatMessage({id:"file.previewAction",defaultMessage:"Preview File",description:"Label of a button that triggers a file to be previewed"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"downloadActionMessage",{get:function(){return l.formatMessage({id:"file.downloadAction",defaultMessage:"Download File",description:"Label of a button that triggers a file to be downloaded"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"deleteActionMessage",{get:function(){return l.formatMessage({id:"file.deleteAction",defaultMessage:"Delete File",description:"Label of a button that triggers a file to be delete"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"actionMenuLabel",{get:function(){return l.formatMessage({id:"file.actionMenuLabel",defaultMessage:"Actions",description:"Label of a button that opens a menu of file actions"})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"clearButtonText",{get:function(){return l.formatMessage({id:"file.clearErrorText",defaultMessage:"Clear",description:"Text for a button used to clear an error"})},enumerable:false,configurable:true});e.prototype.generateClearButtonLabel=function(e){return l.formatMessage({id:"file.clearErrorLabel",defaultMessage:"Clear {fileName} error",description:"Label for a button used to clear an error, including filename"},{fileName:e})};e.prototype.componentWillLoad=function(){var e=this;if(!this.el.id){console.error("wm-file: a file id is required")}if(!this.name){console.error('wm-file: "name" is a required property')}if(!this.type){console.error('wm-file: "type" is a required property')}if(this.el.parentElement&&this.el.parentElement.showInfo){this.showInfo=this.el.parentElement.showInfo}if(this.showInfo==="time"){console.warn("wm-file: show-info='time' is deprecated, use show-info='last-updated'");this.showInfo="last-updated"}var t=new ResizeObserver((function(){e.setFilename()}));t.observe(this.el)};e.prototype.setFilename=function(){var e=this;requestAnimationFrame((function(){var t=e.el.shadowRoot.querySelector(".filename");var i=e.el.shadowRoot.querySelector(".left-group").getBoundingClientRect().left;var r=e.el.shadowRoot.querySelector(".right-group");var o=r?r.getBoundingClientRect().left:e.el.shadowRoot.querySelector(".file-wrapper").getBoundingClientRect().right-20;t.textContent=s(t,e.fullFilename,o-i,7)}))};e.prototype.componentDidRender=function(){this.setFilename()};e.prototype.previewFile=function(){this.wmFilePreview.emit()};e.prototype.downloadFile=function(){this.wmFileDownload.emit()};e.prototype.deleteFile=function(){this.wmFileDelete.emit()};e.prototype.handleFilenameMouseEnter=function(e){if(e.target.textContent!==this.fullFilename){a("bottom",e.target,this.fullFilename)}};e.prototype.renderFileName=function(){var e=this;return r("div",{class:"left-group"},r("div",{class:"name-wrapper"},r("span",{class:"sr-only"},this.fullFilename),r("span",{"aria-hidden":"true",class:"filename",onMouseEnter:function(t){return e.handleFilenameMouseEnter(t)},onMouseLeave:function(){return f()}}),this.isUploading&&r("span",{class:"sr-only"},"uploading")))};e.prototype.renderFileInfo=function(){return r("div",{class:"file-info"},(this.showInfo==="uploaded-by"||this.showInfo==="all")&&r("div",{class:"details uploader-name"},this.uploadedBy),(this.showInfo==="last-updated"||this.showInfo==="all")&&r("div",{class:"details"},this.lastUpdated),(this.showInfo==="size"||this.showInfo==="all")&&r("div",{class:"details"},this.size))};e.prototype.renderActionMenu=function(){var e=this;var t=r("wm-menuitem",{icon:"f208",onClick:function(){return e.previewFile()}},this.previewActionMessage);var i=r("wm-menuitem",{icon:"f1da",onClick:function(){return e.downloadFile()}},this.downloadActionMessage);var o=r("wm-menuitem",{icon:"f1c0",onClick:function(){return e.deleteFile()}},this.deleteActionMessage);return r("wm-action-menu",{"action-menu-type":"icon",tooltip:this.actionMenuLabel,"tooltip-position":"bottom","label-for-identical-buttons":"".concat(this.name," ").concat(this.actionMenuLabel)},this.fileActions.includes("preview")&&t,this.fileActions.includes("download")&&i,this.fileActions.includes("delete")&&o)};e.prototype.renderFileActionButtons=function(){var e=this;var t=r("wm-button",{class:"preview-button","button-type":"icononly",tooltip:this.previewButtonTooltip,"tooltip-position":"bottom","label-for-identical-buttons":"preview ".concat(this.name),icon:"f208",onClick:function(){return e.previewFile()}});var i=r("wm-button",{class:"download-button","button-type":"icononly",tooltip:this.downloadButtonTooltip,"tooltip-position":"bottom","label-for-identical-buttons":"download ".concat(this.name),icon:"f1da",onClick:function(){return e.downloadFile()}});var o=r("wm-button",{class:"delete-button","button-type":"icononly",tooltip:this.deleteButtonTooltip,"tooltip-position":"bottom","label-for-identical-buttons":"delete ".concat(this.name),icon:"f1c0",onClick:function(){return e.deleteFile()}});return r("div",{class:"file-controls"},this.fileActions.includes("preview")&&t,this.fileActions.includes("download")&&i,this.fileActions.includes("delete")&&o)};e.prototype.renderFileInProgress=function(){return r("div",{class:"file-wrapper"},r("div",{class:"file --progress"},r("div",{class:"progress",style:{background:"linear-gradient(to right, var(--wmcolor-file-progress) ".concat(this.progress,"%, transparent ").concat(this.progress,"%)")}}),this.renderFileName()))};e.prototype.renderFileControls=function(){var e=this.fileActions.split(" ").length===1;var t=this.isCondensed&&!e;return t?this.renderActionMenu():this.renderFileActionButtons()};e.prototype.renderFile=function(){var e=this;return r("div",{class:"file-wrapper ".concat(this.progress===100?"checked":"")},r("div",{class:"file ".concat(this.errorMessage?"--error":"")},this.renderFileName(),!this.errorMessage&&r("div",{class:"right-group ".concat(this.isCondensed?"condensed":"")},this.renderFileInfo(),this.fileActions!==""&&this.renderFileControls()),this.errorMessage&&r("wm-button",{"permanently-delete":true,"button-type":"textonly","label-for-identical-buttons":this.generateClearButtonLabel(this.name),onClick:function(){return e.wmFileErrorCleared.emit()}},this.clearButtonText)),this.errorMessage&&r("div",{class:"error-message"},this.errorMessage))};e.prototype.render=function(){return r(o,{key:"0943b20ae9ce90cb1687ff3c092622d2169f9c47",role:"listitem"},this.isUploading?this.renderFileInProgress():this.renderFile())};Object.defineProperty(e,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());d.style=u}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function c(t){try{s(i.next(t))}catch(t){u(t)}}function o(t){try{s(i["throw"](t))}catch(t){u(t)}}function s(t){t.done?n(t.value):r(t.value).then(c,o)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,r,u,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(t){return function(e){return s([t,e])}}function s(o){if(i)throw new TypeError("Generator is already executing.");while(c&&(c=0,o[0]&&(n=0)),n)try{if(i=1,r&&(u=o[0]&2?r["return"]:o[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,o[1])).done)return u;if(r=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){n.label=o[1];break}if(o[0]===6&&n.label<u[1]){n.label=u[1];u=o;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(o);break}if(u[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];r=0}finally{i=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js"],(function(t){"use strict";var e,n,i,r;return{setters:[function(t){e=t.r;n=t.c;i=t.g},function(t){r=t.g}],execute:function(){var u=t("wm_tag_option",function(){function t(t){e(this,t);this.privTagOptionSelected=n(this,"privTagOptionSelected",7);this.privTagOptionDeselected=n(this,"privTagOptionDeselected",7);this.wmTagOptionSelected=n(this,"wmTagOptionSelected",7);this.wmTagOptionDeselected=n(this,"wmTagOptionDeselected",7);this.selected=false;this.locked=false;this.col1=undefined;this.col2=undefined;this.col3=undefined;this.col4=undefined}t.prototype.emitSelectedEvent=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.wmTagOptionSelected.emit();return[2]}))}))};t.prototype.emitDeselectedEvent=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.wmTagOptionDeselected.emit();return[2]}))}))};t.prototype.componentWillLoad=function(){if(!this.el.id){this.el.id=r()}};t.prototype.handleSelected=function(){this.selected?this.privTagOptionSelected.emit():this.privTagOptionDeselected.emit()};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["handleSelected"]}},enumerable:false,configurable:true});return t}())}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,v=[],y=[],$=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&d.o?g(b):d.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{w(v),w(y),(m=v.length>0)&&d.raf(b)},g=t=>h().then(t),k=$(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>C,ok:()=>E,unwrap:()=>A,unwrapErr:()=>D});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P,R,A=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},T=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?F(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,U);const f=F(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},F=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),H={},U={forEach:(t,e)=>t.map(L).forEach(e),map:(t,e)=>t.map(L).map(e).map(N)},L=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),N=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),T(t.vtag,e,...t.vchildren||[])}const e=F(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},W=t=>n(t).$hostElement$,q=(t,e,n)=>{const o=W(t);return{emit:t=>G(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},G=(t,e,n)=>{const o=d.ce(e,n);return t.dispatchEvent(o),o},I=new WeakMap,V=t=>"sc-"+t.k,_=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=B(n),s=B(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(J);e=e.replace(K,""),n&&d.rel(t,e,n,l),o&&d.ael(t,e,o,l)}}},z=/\s/,B=t=>t?t.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||S,s=e.u||S;for(const t of X(Object.keys(l)))t in s||_(o,t,l[t],void 0,n,e.o);for(const t of X(Object.keys(s)))_(o,t,l[t],s[t],n,e.o)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Y=!1,Z=!1,tt=!1,et=!1,nt=(t,e,n,o)=>{var l;const s=e.h[n];let i,r,c,u=0;if(Y||(tt=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=a.createTextNode(s.i);else if(1&s.o)i=s.$=a.createTextNode("");else{if(et||(et="svg"===s.v),i=s.$=a.createElementNS(et?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Y&&2&s.o?"slot-fb":s.v),et&&"foreignObject"===s.v&&(et=!1),Q(null,s,et),i.getRootNode().querySelector("body"),s.h)for(u=0;u<s.h.length;++u)r=nt(t,s,u,i),r&&i.appendChild(r);"svg"===s.v?et=!1:"foreignObject"===i.tagName&&(et=!0)}return i["s-hn"]=R,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=P,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&&ot(t.$,!1)),i},ot=(t,e)=>{d.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==R&&o["s-ol"]&&(mt(ct(o),o,rt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,tt=!0),e&&ot(o,e)}d.o&=-2},lt=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===R&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=nt(null,n,l,t),i&&(o[l].$=i,mt(r,i,rt(e))))},st=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;pt(e),t&&(Z=!0,t["s-ol"]?t["s-ol"].remove():ot(t,!0),t.remove())}}},it=(t,e,n=!1)=>!(t.v!==e.v||("slot"===t.v?"S"in t&&n&&8!==t.$.nodeType||t.m!==e.m:!n&&t.p!==e.p)),rt=t=>t&&t["s-ol"]||t,ct=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ut=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.v,r=e.i;let c;null===r?(et="svg"===i||"foreignObject"!==i&&et,("slot"!==i||Y)&&Q(t,e,et),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ut(d,m,l),d=e[++r],m=o[++c];else if(it(h,v,l))ut(h,v,l),h=e[--a],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||ot(d.$.parentNode,!1),ut(d,v,l),mt(t,d.$,h.$.nextSibling),d=e[++r],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||ot(h.$.parentNode,!1),ut(h,m,l),mt(t,h.$,d.$),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.v!==m.v?s=nt(e&&e[c],n,u,t):(ut(i,m,l),e[u]=void 0,s=i.$),m=o[++c]):(s=nt(e&&e[c],n,c,t),m=o[++c]),s&&mt(ct(d.$),s,rt(d.$))}r>a?lt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&st(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),lt(o,null,e,s,0,s.length-1)):!n&&null!==l&&st(l,0,l.length-1),et&&"svg"===i&&(et=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ft=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ft(t)}},at=[],dt=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(ht(e,t)){let n=at.find((t=>t.j===e));Z=!0,e["s-sn"]=e["s-sn"]||t,n?(n.j["s-sh"]=l["s-hn"],n.O=l):(e["s-sh"]=l["s-hn"],at.push({O:l,j:e})),e["s-sr"]&&at.map((t=>{ht(t.j,e["s-sn"])&&(n=at.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else at.some((t=>t.j===e))||at.push({j:e})}1===l.nodeType&&dt(l)}},ht=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,pt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(pt)},mt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),vt=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},yt=(t,e)=>{if(t.o|=16,!(4&t.o))return vt(t,t.M),k((()=>$t(t,e)));t.o|=512},$t=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e?(t.o|=256,t.P&&(t.P.map((([t,e])=>Et(n,t,e))),t.P=void 0),o=Et(n,"componentWillLoad")):o=Et(n,"componentWillUpdate"),wt(o,(()=>gt(t,n,e)))},wt=(t,e)=>bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,gt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.R,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=V(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=I.get(t=t.head||t);if(i||I.set(t,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=d.A)?n:O(a);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:document.querySelector("style");t.insertBefore(s,n)}else"host"in t?t.prepend(s):t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);kt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>St(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},kt=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.R,u=t.D||F(null,null),f=(t=>t&&t.v===H)(e)?e:T(null,null,e);if(R=r.tagName,c.T&&(f.u=f.u||{},c.T.map((([t,e])=>f.u[e]=r[t]))),n&&f.u)for(const t of Object.keys(f.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=r[t]);if(f.v=null,f.o|=4,t.D=f,f.$=u.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),P=r["s-cr"],Z=!1,ut(u,f,n),d.o|=1,tt){dt(f.$);for(const t of at){const e=t.j;if(!e["s-ol"]){const t=a.createTextNode("");t["s-nr"]=e,mt(e.parentNode,e["s-ol"]=t,e)}}for(const t of at){const e=t.j,r=t.O;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),mt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Z&&ft(f.$),d.o&=-2,at.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},St=t=>{const e=t.$hostElement$,n=t.t,o=t.M;Et(n,"componentDidRender"),64&t.o?Et(n,"componentDidUpdate"):(t.o|=64,xt(e),Et(n,"componentDidLoad"),t.F(e),o||Ot()),t.H(e),t.C&&(t.C(),t.C=void 0),512&t.o&&g((()=>yt(t,!1))),t.o&=-517},jt=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&yt(e,!1),o}},Ot=()=>{xt(a.documentElement),g((()=>G(f,"appload",{detail:{namespace:"ripple"}})))},Et=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},xt=t=>t.classList.add("hydrated"),Ct=(t,e,o)=>{var l,i;const r=t.prototype;if(e.U||e.L||t.watchers){t.watchers&&!e.L&&(e.L=t.watchers);const c=Object.entries(null!=(l=e.U)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,t,{get(){return((t,e)=>n(this).N.get(e))(0,t)},set(o){((t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.N.get(e),u=i.o,f=i.t;if(o=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.U[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.N.set(e,o),f)){if(l.L&&128&u){const t=l.L[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&yt(i,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.W)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(t,l,s){d.jmp((()=>{var i;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=e.L)?void 0:i[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.L)?i:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.T)||l.push([t,s])),s}))]))}}return t},Mt=(t,o={})=>{var l;const u=[],h=o.exclude||[],m=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),w=[];let b,g=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],U:o[2],q:o[3]};4&c.o&&(k=!0),c.U=o[2],c.q=o[3],c.T=[],c.L=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,R:n,N:new Map};o.W=new Promise((t=>o.H=t)),o.G=new Promise((t=>o.F=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open",delegatesFocus:!!(16&c.o)})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Rt(this,t,c.q)),b&&(clearTimeout(b),b=null),g?w.push(this):d.jmp((()=>(t=>{if(!(1&d.o)){const e=n(t),o=e.R,l=()=>{};if(1&e.o)Rt(t,e,o.q),(null==e?void 0:e.t)||(null==e?void 0:e.G)&&e.G.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,mt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){vt(e,e.M=n);break}}o.U&&Object.entries(o.U).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.I){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.I;if(!n)return;const o=i.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(i.set(n,t),t[e])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.V}" was not found`);o.isProxied||(n.L=o.watchers,Ct(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=V(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.M,c=()=>yt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const t=n(this);t._&&(t._.map((t=>t())),t._=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.G)&&t.G.then((()=>{}))}})()))}componentOnReady(){return n(this).G}};c.I=t[0],h.includes(f)||m.get(f)||(u.push(f),m.define(f,Ct(v,c,1)))}))})),u.length>0&&(k&&($.textContent+=c),$.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(l=d.A)?l:O(a);null!=t&&$.setAttribute("nonce",t),v.insertBefore($,y?y.nextSibling:v.firstChild)}g=!1,w.length?w.map((t=>t.connectedCallback())):d.jmp((()=>b=setTimeout(Ot,30)))},Pt=(t,e)=>e,Rt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Dt(t,n),i=At(e,l),r=Tt(n);d.ael(s,o,i,r),(e._=e._||[]).push((()=>d.rel(s,o,i,r)))}))},At=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.P=t.P||[]).push([e,n])}catch(t){s(t)}},Dt=(t,e)=>4&e?a:8&e?f:t,Tt=t=>({passive:!!(1&t),capture:!!(2&t)}),Ft=t=>d.A=t;export{Pt as F,H,Mt as b,q as c,jt as f,W as g,T as h,h as p,o as r,Ft as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as o,g as a,f as n}from"./p-d9da0502.js";import{i as r,z as s,h as c,s as l}from"./p-88cfd58d.js";import{g as d}from"./p-f54e9ed0.js";const h=class{constructor(i){t(this,i),this.wmNavigationStateChanged=e(this,"wmNavigationStateChanged",7),this.mainNavigationMessage=r.formatMessage({id:"navigation.mainNavigation",defaultMessage:"Main",description:"Label describing the site navigation, for screen reader users"}),this.throttledRerender=s((()=>n(this.el)),50),this.open=!1}get isCollapsible(){return window.innerWidth<1024}get ariaExpanded(){return this.isCollapsible?this.open.toString():void 0}closeOnEscape(t){"Escape"===t.key&&(this.open=!1)}handleWindowResize(){this.throttledRerender()}handleHamburgerClicked(){this.open=!this.open}handleClickOnItem(){this.open=!1}handleStateChange(){this.isCollapsible&&(this.wmNavigationStateChanged.emit(),this.open?this.expand():this.collapse())}componentWillLoad(){this.el.focus=()=>{const t=this.open?this.el.shadowRoot.querySelector(".toggle"):document.querySelector("wm-navigation-hamburger"),e=this.el.querySelector("wm-navigation-item");this.isCollapsible?t.focus():e.focus()},this.isCollapsible&&this.open&&(this.wmNavigationStateChanged.emit(),this.expand())}redirectFocusFromBody(t){"BODY"!==document.activeElement.tagName||t.relatedTarget||this.el.focus()}expand(){document.body.tabIndex=0,document.body.addEventListener("focus",this.redirectFocusFromBody.bind(this),!0),setTimeout((()=>this.toggleEl.focus()),250)}collapse(){document.body.tabIndex=-1,document.body.removeEventListener("focus",this.redirectFocusFromBody.bind(this));const t=document.querySelector("wm-navigation-hamburger");t&&t.focus()}focusLastItem(){const t=this.el.querySelectorAll("wm-navigation-item");Array.from(t).pop().focus()}renderOverlay(){return i("div",{class:"overlay",onClick:()=>{this.open=!1}})}render(){return i(o,{key:"07253bd6d752aa41a1715cf2d28e600b7aae4355",role:"navigation","aria-expanded":this.ariaExpanded,"aria-label":this.mainNavigationMessage},this.open?this.renderOverlay():"",this.isCollapsible&&i("div",{key:"dbb1d92bad6c1f59f159f63758cc0110e1d6b94b",class:"trapfocus",tabindex:this.open?0:void 0,onFocus:()=>this.focusLastItem()}),i("div",{key:"93b63fb63bb94b32f25d250836c1d8b98cc20d08",class:"tray"},i("div",{key:"89a4323868c66a84bb4f12921103b150068906bc",class:"toggle-wrapper"},i("wm-button",{key:"0de023f3c6dd6e396adf0a248ca8333095a43359",ref:t=>this.toggleEl=t,class:"toggle","button-type":"navigational",icon:this.open?"f156":"f35c","icon-size":"2rem",tooltip:this.open?d.close:d.open,"tooltip-position":"right",tabIndex:this.open?void 0:-1,onClick:()=>{this.open=!this.open}})),i("ul",{key:"1d7b6fc3268583b27b2a0dc46859b6ca1c6d8e52",class:"navlist"},i("slot",{key:"870cf6f8c01dba37611097c836880792ddddefd6"}))),this.isCollapsible&&i("div",{key:"2d89c522803c67ea290e054ac2a8040f3f257282",class:"trapfocus",tabindex:this.open?0:void 0,onFocus:()=>this.toggleEl.focus()}))}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{open:["handleStateChange"]}}};h.style=":host{--wmcolor-navigation-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-navigation-background-selected:var(--wmcolor-background-selected);--wmcolor-navigation-background:var(--wmcolor-background);--wmcolor-navigation-border-selected:var(--wmcolor-interactive);--wmcolor-navigation-focus:var(--wmcolor-interactive-focus);--wmcolor-navigation-icon-selected:var(--wmcolor-interactive);--wmcolor-navigation-icon:var(--wmcolor-icon);--wmcolor-navigation-text-selected:var(--wmcolor-interactive);z-index:10}:host([aria-expanded=true]){z-index:5000}.tray{-webkit-box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);-moz-box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:7.5625rem;background-color:var(--wmcolor-navigation-background);overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;font-size:0.875rem;height:100%}.navlist{margin:0;padding:0}.toggle-wrapper{display:none}@media screen and (max-width: 1023px){.tray{-ms-transition:transform 0.33s ease;-webkit-transition:transform 0.33s ease;-moz-transition:transform 0.33s ease;-webkit-transition:-webkit-transform 0.33s ease;transition:-webkit-transform 0.33s ease;transition:transform 0.33s ease;transition:transform 0.33s ease, -webkit-transform 0.33s ease;position:fixed;top:0;bottom:0;left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.tray ul{visibility:hidden}.tray .toggle-wrapper{display:inline-block;min-height:5rem;width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host([aria-expanded=true]) .tray{-webkit-transform:translateX(0);transform:translateX(0)}:host([aria-expanded=true]) .tray ul{visibility:visible}.overlay{width:100vw;height:100vh;max-width:none;max-height:none;position:fixed !important;top:0;bottom:0;left:0;right:0;-webkit-transform:translate(0%, 0%);transform:translate(0%, 0%);background-color:rgba(25, 25, 25, 0.4);-ms-transition:opacity 0.5s ease-out;-webkit-transition:opacity 0.5s ease-out;-moz-transition:opacity 0.5s ease-out;transition:opacity 0.5s ease-out}}";const m=class{constructor(i){t(this,i),this.wmNavigationHamburgerClicked=e(this,"wmNavigationHamburgerClicked",7),this.showNavMessage=r.formatMessage({id:"navigation.showNavigation",defaultMessage:"Show navigation",description:"For user interface element opening a navigation menu"}),this.navId=void 0,this.isTabbing=!1,this.open=!1}toggleTabbingOn(){this.isTabbing=!0}toggleTabbingOff(){this.isTabbing=!1}handleNavigationStateChanged(t){this.open=t.target.open}componentWillLoad(){document.body.classList.contains("wmcl-user-is-tabbing")&&this.toggleTabbingOn(),this.navId||console.error("wm-navigation-hamburger: nav-id is a required prop")}handleClick(){c(),this.wmNavigationHamburgerClicked.emit()}render(){return i(o,{key:"b813a9264454c413f65eef5389e394ef1b291317",class:"hamburger "+(this.open?"nav-open":"nav-closed")},i("button",{key:"4e623dd65471a455bc352940ea99a2ed1e10ff63","aria-expanded":this.open,"aria-label":this.showNavMessage,onMouseEnter:()=>l("right",this.el,this.showNavMessage),onMouseLeave:()=>c(),onFocus:()=>this.isTabbing&&l("right",this.el,this.showNavMessage),onBlur:()=>c(),onClick:()=>this.handleClick()},i("span",{key:"6754b962ff1a87cabe636bad94e953c7bbdde09e",class:"icon"})))}static get delegatesFocus(){return!0}get el(){return a(this)}};m.style='button{--wmcolor-navigation-hamburger-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-navigation-hamburger-icon:var(--wmcolor-interactive);display:none;width:100%;height:100%;border:none;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);background-color:transparent;outline:none;padding:0}button:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:0}button:hover{background-color:var(--wmcolor-navigation-hamburger-background-hover)}.icon:before{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f35c";font-size:1.5rem;color:var(--wmcolor-navigation-hamburger-icon)}@media screen and (max-width: 1023px){:host{width:3.75rem;height:3.75rem}button{display:initial}}';const g=class{constructor(i){t(this,i),this.wmNavigationItemClicked=e(this,"wmNavigationItemClicked",7),this.href=void 0,this.text=void 0,this.active=void 0}render(){return i(o,{key:"59d24293849944df41c1d904458413e8f201e348",role:"listitem"},i("a",{key:"4e0e4717b961c7020ab19a5564ed8328789c5f34",class:"link "+(this.active?"active":""),href:this.href,onClick:()=>this.wmNavigationItemClicked.emit()},i("div",{key:"8ce442d2d492faba715138bbc7a0e2c2d2bc1a75",class:"icon","aria-hidden":"true"},i("slot",{key:"898d3ec6a650f7a2e2d59f2c01d777b7d061420c"})),i("div",{key:"e1858a03da5dbb807adbaed86e50cac95f59edc3",class:"text"},this.text)))}static get delegatesFocus(){return!0}get el(){return a(this)}};g.style='.link{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:inherit;text-decoration:none;min-height:4.5rem;text-align:center;padding:1.25rem 0.5rem;font-weight:500;outline:none;position:relative;background:var(--wmcolor-navigation-background)}.link:hover{background-color:var(--wmcolor-navigation-background-hover)}.link .icon{font-size:1.375rem;color:var(--wmcolor-navigation-icon)}.link .text{font-size:0.875rem}.link:focus-visible{outline:3px solid var(--wmcolor-interactive-focus);outline-offset:-3px}.link.active{background-color:var(--wmcolor-navigation-background-selected)}.link.active:before{content:"";background-color:var(--wmcolor-navigation-border-selected);position:absolute;height:100%;width:5px;left:0}.link.active .text{color:var(--wmcolor-navigation-text-selected)}.link.active .icon{color:var(--wmcolor-navigation-icon-selected)}';export{h as wm_navigation,m as wm_navigation_hamburger,g as wm_navigation_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function o(e){try{d(i.next(e))}catch(e){n(e)}}function s(e){try{d(i["throw"](e))}catch(e){n(e)}}function d(e){e.done?r(e.value):a(e.value).then(o,s)}d((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return d([e,t])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(i=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js"],(function(e){"use strict";var t,r,i,a,n,o,s,d,c,l,u,p,h,f,b;return{setters:[function(e){t=e.r;r=e.c;i=e.h;a=e.F;n=e.H;o=e.g},function(e){s=e.t;d=e.j;c=e.a;l=e.k;u=e.A;p=e.B;h=e.C;f=e.D;b=e.i}],execute:function(){var w=':host{--wmcolor-datepicker-background:var(--wmcolor-background);--wmcolor-datepicker-day-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-datepicker-day-background-selected:var(--wmcolor-interactive);--wmcolor-datepicker-day-text-outside:var(--wmcolor-interactive-disabled);--wmcolor-datepicker-day-text-selected:var(--wmcolor-interactive-text-selected);--wmcolor-datepicker-day-text:var(--wmcolor-text);--wmcolor-datepicker-input-background-disabled:var(--wmcolor-input-background-disabled);--wmcolor-datepicker-input-background:var(--wmcolor-input-background);--wmcolor-datepicker-input-border:var(--wmcolor-input-border);--wmcolor-datepicker-input-text-disabled:var(--wmcolor-input-text-disabled);--wmcolor-datepicker-input-text:var(--wmcolor-input-text);--wmcolor-datepicker-month-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-datepicker-month-background-selected:var(--wmcolor-interactive);--wmcolor-datepicker-month-background:var(--wmcolor-text);--wmcolor-datepicker-month-border:var(--wmcolor-border-light);--wmcolor-datepicker-month-text-selected:var(--wmcolor-text-ondark);--wmcolor-datepicker-month-text:var(--wmcolor-interactive);--wmcolor-datepicker-navigation-background-hover:var(--wmcolor-button-background-navigational-hover);--wmcolor-datepicker-navigation-background:var(--wmcolor-button-background-navigational);--wmcolor-datepicker-navigation-text:var(--wmcolor-button-icon-navigational);--wmcolor-datepicker-selector-background:var(--wmcolor-button-background-secondary);--wmcolor-datepicker-selector-border:var(--wmcolor-button-border-secondary);--wmcolor-datepicker-selector-text:var(--wmcolor-button-text-secondary);--wmcolor-datepicker-toggle-background-disabled:var(--wmcolor-input-background-disabled);--wmcolor-datepicker-toggle-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-datepicker-toggle-background:var(--wmcolor-input-background);--wmcolor-datepicker-toggle-icon-disabled:var(--wmcolor-interactive-disabled);--wmcolor-datepicker-toggle-icon:var(--wmcolor-interactive);--wmcolor-datepicker-weekdays-background:var(--wmcolor-table-header-background);--wmcolor-datepicker-weekdays-text:var(--wmcolor-text);font-family:inherit}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host .wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:0.875rem}:host .wrapper .label{display:block;line-height:normal;font-weight:600;white-space:nowrap;margin-bottom:0.25rem}:host .wrapper .label .required{color:var(--wmcolor-text-required)}:host .wrapper.label-left{-ms-flex-direction:row;flex-direction:row}:host .wrapper.label-left .label-wrapper{line-height:2.5rem}:host .wrapper.label-left .label-wrapper .label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:2.5rem;white-space:normal;margin-bottom:0;margin-right:0.75rem}:host .wrapper.label-none label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}:host .wrapper.invalid .label{color:var(--wmcolor-text-error)}:host .wrapper.invalid .label:after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f026";margin-left:0.3125rem}[dir=RTL] :host .wrapper.invalid .label:after{margin-left:0;margin-right:0.3125rem}:host .wrapper.rtl.label-left .label{margin-right:0;margin-left:0.75rem}:host .wrapper{position:relative}:host .wrapper .single-wrapper,:host .wrapper .range-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;position:relative}:host .wrapper .date-input{border-radius:3px;color:var(--wmcolor-datepicker-input-text);font-size:0.875rem;padding:0.625rem 0.9375rem 0.5rem;min-width:0;-ms-flex:1;flex:1;margin:0;background-color:var(--wmcolor-datepicker-input-background)}:host .wrapper .date-input:disabled{background-color:var(--wmcolor-datepicker-input-background-disabled);color:var(--wmcolor-datepicker-input-text-disabled)}:host .wrapper .date-input:focus{outline:none}:host .wrapper .input{height:2.5rem;border:1px solid var(--wmcolor-datepicker-input-border);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;max-width:236px;}:host .wrapper #single-date-input{height:100%;border:none;border-radius:3px;-webkit-margin-end:3px;margin-inline-end:3px}:host .wrapper .range-wrapper{max-width:257px;display:grid;grid-template-rows:minmax(21px, 1fr) 38px;grid-template-columns:120px 17px 120px;grid-template-areas:"start-label-wrapper . end-label-wrapper" "start-date-input hyphen end-date-input"}:host .wrapper .range-wrapper #start-label-wrapper{grid-area:start-label-wrapper}:host .wrapper .range-wrapper #end-label-wrapper{grid-area:end-label-wrapper}:host .wrapper .range-wrapper #start-date-input{grid-area:start-date-input}:host .wrapper .range-wrapper #hyphen{grid-area:hyphen}:host .wrapper .range-wrapper #end-date-input{grid-area:end-date-input}:host .wrapper .range-wrapper .label{text-wrap:wrap}:host .wrapper .range-wrapper.cal{max-width:305px;-webkit-column-gap:4px;-moz-column-gap:4px;column-gap:4px;grid-template-columns:120px 17px 120px 36px;grid-template-areas:"start-label-wrapper . end-label-wrapper ." "start-date-input hyphen end-date-input toggle-wrapper"}:host .wrapper .range-wrapper.cal #toggle-wrapper{grid-area:toggle-wrapper}:host .wrapper #start-date-input,:host .wrapper #end-date-input{max-width:120px}:host .wrapper #start-date-input:focus,:host .wrapper #end-date-input:focus{outline:2px solid var(--wmcolor-input-border-focus);border-color:var(--wmcolor-input-border-focus)}:host .wrapper.invalid .input,:host .wrapper .date-input.invalid{-webkit-box-shadow:0 0 0 1px var(--wmcolor-input-border-error);-moz-box-shadow:0 0 0 1px var(--wmcolor-input-border-error);box-shadow:0 0 0 1px var(--wmcolor-input-border-error);border-color:var(--wmcolor-input-border-error)}:host .wrapper .error{display:block;font-style:italic;color:var(--wmcolor-text-error);font-size:0.875rem;margin-bottom:4px;top:100%;left:0}:host .wrapper .error:not(:empty){margin-top:0.25rem}:host .wrapper.focus #single-date-input{outline:2px solid var(--wmcolor-input-border-focus);border-color:var(--wmcolor-input-border-focus)}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}';var m=w;var v=e("wm_date_range",function(){function e(e){t(this,e);this.wmRangeSelection=r(this,"wmRangeSelection",7);this.wmStartInputBlur=r(this,"wmStartInputBlur",7);this.wmEndInputBlur=r(this,"wmEndInputBlur",7);this.openUp=false;this.calWidth=681;this.popupClicked=false;this.toggleButtonClicked=false;this.formats={"mm/dd/yyyy":"US","dd/mm/yyyy":"INT","yyyy/mm/dd":"ISO"};this.dateFormat="mm/dd/yyyy";this.disabled=false;this.errorMessage=undefined;this.invalidStart=false;this.invalidEnd=false;this.labelStart="";this.labelEnd="";this.preselected=undefined;this.requiredField=false;this.valueStart="";this.valueEnd="";this.availSpace=0;this.isExpanded=false}Object.defineProperty(e.prototype,"_disabled",{get:function(){return s(this.disabled)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focusDates",{get:function(){var e=this.toISO(this.valueStart);var t=d(new Date);if(this._isValidISO(e)){t=e}else if(this.preselected&&this._isValidISO(this.preselected)){t=this.preselected}var r=this.toJSDate(t);if(r.getUTCMonth()==11){r.setYear(r.getUTCFullYear()+1)}r.setMonth((r.getUTCMonth()+1)%12,1);var i=d(r);var a=this.toISO(this.valueEnd);if(this._isValidISO(a)){var n=this.isSameMonth(t,a);if(!n){i=a;if(!e){var o=this.toJSDate(i);var s=o.getUTCMonth()-1;if(s==-1){s=11;o.setYear(o.getUTCFullYear()-1)}o.setMonth(s,1);t=d(o)}}}return[t,i]},enumerable:false,configurable:true});e.prototype.isSameMonth=function(e,t){if(e&&t){return e.slice(0,-3)===t.slice(0,-3)}else{return false}};e.prototype.toJSDate=function(e){if(e&&this._isValidISO(e)){var t=new Date;t.setUTCFullYear(parseInt(e.split("-")[0]),parseInt(e.split("-")[1])-1,parseInt(e.split("-")[2]));return t}else{return undefined}};e.prototype.toISO=function(e){return this._reformatDate(this.formats[this.dateFormat],"ISO",e)};e.prototype.handleDisabled=function(){c(this.el,this._disabled)};e.prototype.updateValueStart=function(){this.startInputEl.value=this.valueStart?this.valueStart:""};e.prototype.updateValueEnd=function(){this.endInputEl.value=this.valueEnd?this.valueEnd:""};e.prototype.handleErrorMessage=function(){var e=this;if(this.errorMessage){setTimeout((function(){return e.announce(e.errorMessage)}),100)}};e.prototype.togglePopup=function(){this.isExpanded?this.closePopup():this.openPopup();this.toggleButtonClicked=true};e.prototype.closePopup=function(e){var t=this;if(e===void 0){e=false}this.date1=undefined;this.date2=undefined;this.startCalEl.startDate=undefined;this.startCalEl.endDate=undefined;this.startCalEl.hoverDate=undefined;this.endCalEl.startDate=undefined;this.endCalEl.endDate=undefined;this.endCalEl.hoverDate=undefined;this.isExpanded=false;this.startCalEl.view="day";this.endCalEl.view="day";this.popupEl.classList.remove("open");window.setTimeout((function(){t.popupEl.style.visibility="hidden"}),250);if(e){this.toggleEl.focus()}};e.prototype.openPopup=function(){var e=this;this.openUp=l(this.el,this.popupEl.clientHeight,this.labelEl.clientHeight);var t=u(this.el),r=t.spaceLeft,i=t.spaceRight;if(i>=this.calWidth-this.el.clientWidth){this.popupEl.style.left="0";this.popupEl.style.right="auto"}else if(r>=this.calWidth-this.el.clientWidth){this.popupEl.style.right="0";this.popupEl.style.left="auto"}else{var a=(this.availSpace-this.calWidth)/2-r;this.popupEl.style.left="".concat(a,"px");this.popupEl.style.right="auto"}this.popupEl.style.visibility="visible";window.requestAnimationFrame((function(){e.popupEl.classList.add("open")}));this.isExpanded=true;this.startCalEl.focusDate=this.focusDates[0];this.endCalEl.focusDate=this.focusDates[1];this.startCalEl.focusCell();if(this.valueStart){var n=this.toISO(this.valueStart);if(this._isValidISO(n)){this.startCalEl.startDate=n}if(this.valueEnd){var o=this.toISO(this.valueEnd);if(this._isValidISO(o)){if(this.isSameMonth(n,o)){this.startCalEl.endDate=o}else{this.endCalEl.endDate=o}}}}};e.prototype.handleFocus=function(){this.wrapperEl.classList.add("focus")};e.prototype.handleBlur=function(){this.wrapperEl.classList.remove("focus")};e.prototype.handleStartInputBlur=function(){this.wmStartInputBlur.emit()};e.prototype.handleEndInputBlur=function(){this.wmEndInputBlur.emit()};e.prototype.handleStartInput=function(e){this.valueStart=e.target.value};e.prototype.handleEndInput=function(e){this.valueEnd=e.target.value};e.prototype.handleKey=function(e){switch(e.key){case"Escape":e.preventDefault();e.stopPropagation();this.closePopup(true);break}};e.prototype.blurHandler=function(){if(!this.popupClicked&&!this.toggleButtonClicked&&this.isExpanded){this.closePopup()}this.popupClicked=false;this.toggleButtonClicked=false};e.prototype.handleBlurOnWindow=function(){if(this.isExpanded){this.closePopup()}};e.prototype.handleDateFocus=function(e){var t=e.target;var r=t.focusDate;var i=this.startCalEl.focusDate.slice(0,-3);var a=this.endCalEl.focusDate.slice(0,-3);if(t==this.startCalEl){if(i>=a){this.endCalEl.focusDate=p.month.increase(this.startCalEl.focusDate,1)}}else if(t==this.endCalEl){if(a<=i){this.startCalEl.focusDate=p.month.decrease(this.endCalEl.focusDate,1)}}if(this.oldFocusVal){var n=p.year.asInt(r);var o=p.year.asInt(this.oldFocusVal);var s=p.month.asInt(r);var d=p.month.asInt(this.oldFocusVal);if(t.view==="day"){if(n!=o||s!=d){this.liveRegionEl.innerHTML="Viewing ".concat(h[s-1],", ").concat(n)}}else{if(n!=o){this.liveRegionEl.innerHTML="".concat(n," selected.")}else if(s!=d){this.liveRegionEl.innerHTML="".concat(h[s-1],", ").concat(n)}}}this.oldFocusVal=t.focusDate};e.prototype.handlePopupBlurred=function(e){if(e.detail.relatedTarget!==this.el){var t=new CustomEvent("blur");t.relatedTarget=e.detail.relatedTarget;this.el.dispatchEvent(t)}};e.prototype.handleCellTriggered=function(e){var t=e.detail.cal;var r=e.detail.cell;var i=r.getAttribute("data-year")+"-"+r.getAttribute("data-month")+"-"+r.textContent.padStart(2,"0");if(this.startCalEl.endDate||this.endCalEl.endDate){this.startCalEl.startDate=undefined;this.startCalEl.endDate=undefined;this.endCalEl.startDate=undefined;this.endCalEl.endDate=undefined;t.startDate=i;this.date1=i;this.date2=undefined}else if(this.date1&&i!==this.date1){if(this.date1>i){this.date2=this.date1;this.date1=i}else{this.date2=i}var a={startDate:{iso:this.date1,us:this._reformatDate("ISO","US",this.date1),int:this._reformatDate("ISO","INT",this.date1)},endDate:{iso:this.date2,us:this._reformatDate("ISO","US",this.date2),int:this._reformatDate("ISO","INT",this.date2)}};this.wmRangeSelection.emit(a);this.closePopup(true);this.date1=undefined;this.date2=undefined}else{t.startDate=i;this.date1=i}var n=new CustomEvent("input");this.el.dispatchEvent(n);var o=new CustomEvent("change");this.el.dispatchEvent(o)};e.prototype.handleOutOfCal=function(){this.startCalEl.hoverDate=undefined;this.endCalEl.hoverDate=undefined};e.prototype.handleCellHovered=function(e){this.startCalEl.hoverDate=this.startCalEl.startDate===e.detail?undefined:e.detail;this.endCalEl.hoverDate=this.endCalEl.startDate===e.detail?undefined:e.detail};e.prototype.reformatDate=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this._reformatDate(e,t,r)]}))}))};e.prototype._reformatDate=function(e,t,r){if(e!=="ISO"&&t!=="ISO")return"";if(!e||!t||!r)return"";var i=/^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;if(!i.test(r)){return r}else{var a=r.replace(/[\-\.]/gi,"/").split("/");switch(t){case"US":return a[1].padStart(2,"0")+"/"+a[2].padStart(2,"0")+"/"+a[0].padStart(4,"20");case"INT":return a[2].padStart(2,"0")+"/"+a[1].padStart(2,"0")+"/"+a[0].padStart(4,"20");case"ISO":if(e==="US"){return a[2].padStart(4,"20")+"-"+a[0].padStart(2,"0")+"-"+a[1].padStart(2,"0")}else if(e==="INT"){return a[2].padStart(4,"20")+"-"+a[1].padStart(2,"0")+"-"+a[0].padStart(2,"0")}else if(e==="ISO"){return a[0].padStart(4,"20")+"-"+a[1].padStart(2,"0")+"-"+a[2].padStart(2,"0")}default:return a.join("/")}}};e.prototype.isValidISO=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this._isValidISO(e)]}))}))};e.prototype._isValidISO=function(e){var t=/^\d\d\d\d[-]\d\d[-]\d\d$/;if(!e||!t.test(e)){return false}else{var r=e.split("-");var i=parseInt(r[2],10);var a=parseInt(r[1],10);var n=parseInt(r[0],10);if(n<1e3||n>3e3||a==0||a>12)return false;var o=[31,28,31,30,31,30,31,31,30,31,30,31];if(n%400==0||n%100!=0&&n%4==0)o[1]=29;return i>0&&i<=o[a-1]}};e.prototype.setAvailSpace=function(){this.availSpace=(this.hiddenOverflowParent||document.body).clientWidth};e.prototype.componentWillLoad=function(){var e=this;if(this.labelStart===""||this.labelEnd===""){console.error("For accessibility reasons you must specify labels for the date range inputs.")}c(this.el,this._disabled);this.hiddenOverflowParent=f(this.el);if(this.hiddenOverflowParent){var t=new ResizeObserver((function(){e.availSpace=e.hiddenOverflowParent.clientWidth}));t.observe(this.hiddenOverflowParent)}this.setAvailSpace()};e.prototype.announce=function(e){if(this.liveRegionEl.textContent===e){e+=" "}this.liveRegionEl.textContent=e};e.prototype.renderCalendars=function(){var e=this;if(this.calWidth<=this.availSpace){return i(a,null,i("div",{class:"popup-wrapper ".concat(this.startCalEl&&this.startCalEl.view,"-view ").concat(this.openUp?"expand-upwards":""),id:"popup-wrapper",ref:function(t){return e.popupEl=t},onClick:function(){return e.popupClicked=true},style:{display:"flex"}},i("div",{class:"trapfocus",tabIndex:this.isExpanded?0:undefined,onFocus:function(){return e.endCalEl.focusLastFocusable()}}),i("priv-calendar",{ref:function(t){return e.startCalEl=t},onClick:function(){return e.popupClicked=true},onDateFocus:function(t){return e.handleDateFocus(t)}}),i("priv-calendar",{ref:function(t){return e.endCalEl=t},onClick:function(){return e.popupClicked=true},onDateFocus:function(t){return e.handleDateFocus(t)}}),i("div",{class:"trapfocus",tabIndex:this.isExpanded?0:undefined,onFocus:function(){return e.startCalEl.focusFirstFocusable()}})))}};e.prototype.render=function(){var e=this;return i(n,{key:"e8d0c88743871493bcaeec068d48ed08f62dbf8c","aria-busy":"false"},i("div",{key:"012aa6b6f18636b2a55d4ecc6b7e2bd307b04fd0",ref:function(t){return e.wrapperEl=t},class:"wrapper"},i("div",{key:"f68a445295c7814e5fb115173be6eded33abefc5",class:"range-wrapper ".concat(this.calWidth<=this.availSpace?"cal":"")},i("div",{key:"fd65dbfd86ac7f806113326ce94f49c6bae21691",class:"label-wrapper",id:"start-label-wrapper"},i("label",{key:"f51549404052afb0dd1544357ed2f944483c3af7",ref:function(t){return e.labelEl=t},id:"startlabel",htmlFor:"start-date-input",class:"label",title:"".concat(this.labelStart," (").concat(this.dateFormat,")")},this.labelStart,this.requiredField&&i("span",{key:"d282d9ba284721c504b317acb8ce37e2de076c8f","aria-hidden":"true",class:"required"},"*"))),i("div",{key:"cbaf22798e7cf3acaf94a4f67177afa7197ca77f",class:"label-wrapper",id:"end-label-wrapper"},i("label",{key:"fc357775e90200781de3e686eba882c9a66fdb00",id:"endlabel",htmlFor:"end-date-input",class:"label",title:"".concat(this.labelEnd," (").concat(this.dateFormat,")")},this.labelEnd,this.requiredField&&i("span",{key:"5783a070decbfb54d88faff089735ca423d74ef6","aria-hidden":"true",class:"required"},"*"))),i("input",{key:"7f870e1939e080424fb4ebbf0f01f85f2d4a307b",disabled:this._disabled,type:"text",id:"start-date-input",class:"date-input input ".concat(this.invalidStart?"invalid":""),name:"start-date",placeholder:this.dateFormat,value:this.valueStart,onFocus:function(){return e.handleFocus()},onInput:function(t){return e.handleStartInput(t)},onBlur:function(){return e.handleStartInputBlur()},ref:function(t){return e.startInputEl=t},"aria-describedby":"error","aria-label":this.labelStart,"aria-required":this.requiredField?"true":null}),i("div",{key:"f5e41de3464ae45a9d8566d8b02e9d917ced63c2",id:"hyphen"}," - "),i("input",{key:"65d107a3e0133ee4fe9bbfcbd26c36c75959b026",disabled:this._disabled,type:"text",id:"end-date-input",class:"date-input input ".concat(this.invalidEnd?"invalid":""),name:"end-date",placeholder:this.dateFormat,value:this.valueEnd,onFocus:function(){return e.handleFocus()},onInput:function(t){return e.handleEndInput(t)},onBlur:function(){return e.handleEndInputBlur()},ref:function(t){return e.endInputEl=t},"aria-describedby":"error","aria-label":this.labelEnd,"aria-required":this.requiredField?"true":null}),i("div",{key:"aee8fbed7434ab65b2f3a2bb8a7e227691f722ae",class:"toggle-wrapper",id:"toggle-wrapper"},this.calWidth<=this.availSpace&&i("button",{key:"42575a1737f65a4d01e12e6403175afad1f39fa0",disabled:this.disabled,onClick:this.togglePopup.bind(this),"aria-describedby":"date-input",ref:function(t){return e.toggleEl=t},"aria-expanded":"".concat(this.isExpanded),class:"toggle",id:"toggle"},i("span",{key:"7267cb592ea8959f1823b6ed6c2656213bf3ba76",class:"calendar",title:b.formatMessage({id:"date.calendarView",defaultMessage:"Calendar View",description:"Calendar button"})}))),this.renderCalendars()),i("div",{key:"b4ed550eb26261f2a140998229dc902e72eb8642"},i("div",{key:"98a4a27732bd274be45d451487f1e11ccced0008",id:"live-region","aria-live":"polite","aria-relevant":"text",class:"sr-only"}),i("div",{key:"f9749b90e500acf87127d4310f9312023f6982dc",id:"month-title",class:"sr-only"},b.formatMessage({id:"date.selectMonth",defaultMessage:"Activate to select a month.",description:"Calendar button"})),i("div",{key:"bc2e1261fed2cf3a3a294d19354eb9bf4c627e46",id:"year-title",class:"sr-only"},b.formatMessage({id:"date.selectYear",defaultMessage:"Activate to select a year.",description:"Calendar button"}))),i("div",{key:"f82463f10d1a9fb7a4474149c65d535bf4e8b963",id:"error",class:"error"},this.errorMessage),i("div",{key:"7500d9fd2ebb57e01629e4abc8913c5f3766ed60",ref:function(t){return e.liveRegionEl=t},class:"sr-only","aria-live":"polite","aria-atomic":"true"})))};Object.defineProperty(e,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["handleDisabled"],valueStart:["updateValueStart"],valueEnd:["updateValueEnd"],errorMessage:["handleErrorMessage"]}},enumerable:false,configurable:true});return e}());v.style=m}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js","./p-a9d89ac8.system.js"],(function(e){"use strict";var t,i,r,a,n,o,s,l;return{setters:[function(e){t=e.r;i=e.c;r=e.h;a=e.g},function(e){n=e.t;o=e.a;s=e.b},function(e){l=e.g}],execute:function(){var p=':host{font-family:inherit;width:100%}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host .wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:0.875rem}:host .wrapper .label{display:block;line-height:normal;font-weight:600;white-space:nowrap;margin-bottom:0.25rem}:host .wrapper .label .required{color:var(--wmcolor-text-required)}:host .wrapper.label-left{-ms-flex-direction:row;flex-direction:row}:host .wrapper.label-left .label-wrapper{line-height:2.5rem}:host .wrapper.label-left .label-wrapper .label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:2.5rem;white-space:normal;margin-bottom:0;margin-right:0.75rem}:host .wrapper.label-none label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}:host .wrapper.invalid .label{color:var(--wmcolor-text-error)}:host .wrapper.invalid .label:after{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f026";margin-left:0.3125rem}[dir=RTL] :host .wrapper.invalid .label:after{margin-left:0;margin-right:0.3125rem}:host .wrapper.rtl.label-left .label{margin-right:0;margin-left:0.75rem}:host .wrapper .inner-wrapper{width:100%}:host .wrapper .text-after-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px}:host .wrapper .text-after{-ms-flex:0 1 fit-content;flex:0 1 fit-content}:host .wrapper .inputfield-wrapper{height:2.5rem;min-width:6.25rem;border:1px solid var(--wmcolor-input-border);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;display:-ms-flexbox;display:flex}:host .wrapper .inputfield-wrapper.disabled{background-color:var(--wmcolor-input-background-disabled);color:var(--wmcolor-input-text-disabled)}:host .wrapper .inputfield-wrapper.disabled .symbol{background:none}:host .wrapper .symbol{display:-ms-flexbox;display:flex;background-color:var(--wmcolor-input-unit-background);-ms-flex:0 0 44px;flex:0 0 44px;padding-inline:8px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .wrapper .character-count{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:5rem;background-color:var(--wmcolor-input-charcount-background);font-size:0.875rem;font-weight:500;-ms-flex-item-align:stretch;align-self:stretch}:host .wrapper input{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;border:none;font-family:inherit;font-size:0.875rem;height:100%;-ms-flex:1;flex:1;padding:0.75rem 1rem;width:100%}:host .wrapper input:focus{outline:none}:host .wrapper input[type=number]{padding-right:0}:host .wrapper .info{font-style:italic;line-height:100%;margin:4px 0}:host .wrapper.invalid .inputfield-wrapper{-webkit-box-shadow:0 0 0 1px var(--wmcolor-input-border-error);-moz-box-shadow:0 0 0 1px var(--wmcolor-input-border-error);box-shadow:0 0 0 1px var(--wmcolor-input-border-error);border-color:var(--wmcolor-input-border-error)}:host .wrapper.invalid .error-message{display:block;font-style:italic;color:var(--wmcolor-text-error);font-size:0.875rem;line-height:100%}:host .wrapper.invalid .error-message:not(:empty){margin-top:0.25rem}:host .wrapper:focus .inputfield-wrapper,:host .wrapper.focus .inputfield-wrapper{outline:2px solid var(--wmcolor-input-border-focus);border-color:var(--wmcolor-input-border-focus)}:host .sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}';var d=p;var c=e("wm_input",function(){function e(e){t(this,e);this.wmInputValueChanged=i(this,"wmInputValueChanged",7);this.previousValue="";this.label=undefined;this.labelPosition="top";this.value="";this.disabled=false;this.info=undefined;this.inputWidth="";this.placeholder="";this.requiredField=false;this.errorMessage=undefined;this.characterLimit=undefined;this.symbolBefore=undefined;this.symbolAfter=undefined;this.textAfter=undefined;this.type="text";this.step=1;this.min=undefined;this.max=undefined;this.isSubmit=false;this.announcement=""}e.prototype.getInputWidth=function(){return this.inputWidth?{width:this.inputWidth}:{flex:"1"}};Object.defineProperty(e.prototype,"charCount",{get:function(){return this.value.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDisabled",{get:function(){return n(this.disabled)},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){if(!this.label){console.error("wm-input requires the label property")}o(this.el,this.isDisabled)};e.prototype.componentDidLoad=function(){this.previousValue=this.inputEl.value};e.prototype.handleDisabledChange=function(){o(this.el,this.isDisabled)};e.prototype.announceError=function(){var e=this;if(this.errorMessage){setTimeout((function(){return e.announce(e.errorMessage)}),100)}};e.prototype.handleInput=function(e){this.value=e.target.value;if(this.characterLimit&&this.charCount>=this.characterLimit-5){this.announce(this.generateCharacterLimitWarning(this.charCount,this.characterLimit))}};e.prototype.handleKeyDown=function(e){var t=e.ctrlKey||e.metaKey||e.altKey;var i=/^.$/.test(e.key)&&!t;var r=i&&this.characterLimit&&this.inputEl.value.length>=this.characterLimit;if(r){this.announce(this.generateCharacterLimitWarning(this.charCount,this.characterLimit))}if(e.key==="Enter"){this.isSubmit&&s(this.el.closest("form"))}};e.prototype.handleBlur=function(){if(this.value!==this.previousValue){this.wmInputValueChanged.emit({value:this.value})}this.previousValue=this.value;this.inputWrapperEl.classList.remove("focus")};e.prototype.handleFocus=function(){this.inputWrapperEl.classList.add("focus")};e.prototype.announce=function(e){if(this.liveRegionEl.textContent===e){e+=" "}this.announcement=e};e.prototype.generateCharacterLimitWarning=function(e,t){var i=l.getCharactersEntered(e,t);if(e>=t){i+=" ".concat(l.characterLimitReached)}return i};e.prototype.descriptors=function(){return this.symbolBefore||this.symbolAfter||this.textAfter?"symbol-before inputfield symbol-after text-after info error":"info error"};e.prototype.render=function(){var e=this;return r("div",{key:"6bff33a353bd632527d8ebd95031db8c8138ae87",class:"wrapper label-".concat(this.labelPosition," ").concat(this.errorMessage?"invalid":""),ref:function(t){return e.inputWrapperEl=t}},r("div",{key:"c04c1edf83bb49604e4ca504abc51e6647d5487c",class:"label-wrapper"},r("label",{key:"35d3cf8433a915d548717e7eac14308b1d7a7490",htmlFor:"inputfield",class:"label"},this.label,this.characterLimit&&r("span",{key:"a4d9d478d893bde516031f2b0e7097fb17755b28",class:"sr-only"}," ",l.getCharacterLimit(this.characterLimit)),this.requiredField&&r("span",{key:"7fa0965a9c325e24aac64c522ef354d9bcf841bd",class:"required","aria-hidden":"true"},"*"))),r("div",{key:"4df1efa5078a5d5a6edfd6538923545d3945a34c",class:"inner-wrapper"},r("div",{key:"0c879dc570054b620eb424e0d660c930e2e580bb",class:"text-after-wrapper"},r("div",{key:"76886618707f4ca0d5e3ef46ccc7a3561569cb8b",class:"inputfield-wrapper ".concat(this.isDisabled?"disabled":""),style:this.getInputWidth()},this.symbolBefore&&r("span",{key:"fe346fecf4fa7f0f030354de9d37ac03af8df5d4",class:"symbol",id:"symbol-before"},this.symbolBefore),r("input",{key:"d3ac5033a0aa7e49c2af2a786a3e09d46bec0e51",ref:function(t){return e.inputEl=t},id:"inputfield",disabled:this.isDisabled,"aria-describedby":this.descriptors(),onInput:function(t){return e.handleInput(t)},onKeyDown:function(t){return e.handleKeyDown(t)},onBlur:function(){return e.handleBlur()},onFocus:function(){return e.handleFocus()},placeholder:this.placeholder,autocomplete:"off","aria-required":this.requiredField?"true":null,maxLength:this.characterLimit||undefined,type:this.type,step:this.step,max:this.max,min:this.min,value:this.el.value}),this.symbolAfter&&r("span",{key:"948bcf0ca5186a924b7b7e0099fb072ef78658e4",class:"symbol",id:"symbol-after"},this.symbolAfter),this.characterLimit&&typeof this.characterLimit==="number"?r("div",{class:"character-count"},this.charCount,"/",this.characterLimit):""),this.textAfter&&r("span",{key:"59ab9c5a6530828b9fbf021de2baa98e0306555b",class:"text-after",id:"text-after"},this.textAfter)),this.info&&r("div",{key:"981aed3eb22a54accce593c1791f496b4641bc1f",id:"info",class:"info"},this.info),r("div",{key:"cb8fb8d79193f4505204d4bc1bdc62a52675387f",id:"error",class:"error-message"},this.errorMessage),r("div",{key:"a319ec8aa8f23c7a51af1de3a65e3778b7cadb67",class:"sr-only","aria-live":"polite","aria-atomic":"true",ref:function(t){return e.liveRegionEl=t}},this.announcement)))};Object.defineProperty(e,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["handleDisabledChange"],errorMessage:["announceError"]}},enumerable:false,configurable:true});return e}());c.style=d}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,g as i}from"./p-d9da0502.js";const o=class{constructor(t){e(this,t),this.secondaryText="",this.primaryText="",this.infoText="",this.primaryActionDisabled=!1,this.deleteStyle=!1}componentWillLoad(){const e=this.el.closest("wm-modal");this.uid=e.uid,e.addEventListener("focusLastElement",(()=>{this.lastElement.focus()}))}emitParentPrimaryEvent(){const e=this.el.closest("wm-modal");e&&e.emitPrimaryEvent()}emitParentSecondaryEvent(){const e=this.el.closest("wm-modal");e&&e.emitSecondaryEvent()}render(){return t("div",{key:"09b1182d96ad0f65ad6e2d865901ca600ef6bdc6",class:"wm-wrapper "+(this.infoText?" footer-text":"")},t("div",{key:"1e8d2e33fb67996cf2e6d3827ad566da2af0121f",class:"wm-info","aria-live":"polite"},this.infoText),t("div",{key:"3ef4184bbfe126af97339c495c21f78b82f96fbc",class:"wm-button-collection"},this.secondaryText&&t("wm-button",{key:"3eb4cb51d51cf7d7e4d61d16399b036cccfb5825",onClick:()=>this.emitParentSecondaryEvent(),id:`wm-secondary-${this.uid}`,ref:e=>this.primaryActionDisabled?this.lastElement=e:void 0},this.secondaryText),t("wm-button",{key:"449c91c2c7af5810a8f8e3ab64c63a212a2df541","button-type":this.deleteStyle?"secondary":"primary","permanently-delete":this.deleteStyle,onClick:()=>this.emitParentPrimaryEvent(),disabled:this.primaryActionDisabled,id:`wm-primary-${this.uid}`,ref:e=>this.primaryActionDisabled?void 0:this.lastElement=e},this.primaryText)))}get el(){return i(this)}};o.style="wm-modal-footer{display:block;-webkit-border-radius:0px 0px 5px 5px;-moz-border-radius:0px 0px 5px 5px;-ms-border-radius:0px 0px 5px 5px;border-radius:0px 0px 5px 5px}wm-modal-footer .wm-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media only screen and (max-width: 650px){wm-modal-footer .wm-wrapper.footer-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}wm-modal-footer .wm-wrapper wm-button+wm-button{margin-left:1rem}wm-modal-footer .wm-wrapper .wm-info{font-size:0.875rem;font-style:italic}@media only screen and (max-width: 650px){wm-modal-footer .wm-wrapper .wm-info{padding-bottom:0.625rem}}wm-modal-footer .wm-wrapper .wm-info:focus{outline:none}";export{o as wm_modal_footer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-cef8a45b.system.js","./p-4670ccb4.system.js","./p-42fa7a77.system.js"],(function(t){"use strict";var i,e,n,o,r,s,a,c,h,u;return{setters:[function(t){i=t.r;e=t.c;n=t.h;o=t.H;r=t.g},function(t){s=t.d;a=t.q;c=t.k;h=t.y},function(t){u=t.g}],execute:function(){var m=":host{--wmcolor-actionmenu-background:var(--wmcolor-background);--wmcolor-actionmenu-text:var(--wmcolor-interactive);--wmcolor-actionmenu-text-disabled:var(--wmcolor-option-text-disabled);position:relative;display:inline-block;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;color:var(--wmcolor-actionmenu-text);font-family:inherit}:host .sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}:host(:focus){outline:none}wm-action-menu:focus{outline:none}.dropdown{position:absolute;padding:0;margin:0.25rem 0;border-radius:3px 3px 3px 3px;min-width:11.4375rem;-ms-transform:scale(1, 0);-webkit-transform:scale(1, 0);-moz-transform:scale(1, 0);transform:scale(1, 0);-ms-transition:transform 0.25s ease;-webkit-transition:transform 0.25s ease;-moz-transition:transform 0.25s ease;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;-ms-transform-origin:center top;-webkit-transform-origin:center top;-moz-transform-origin:center top;transform-origin:center top;visibility:hidden;-webkit-box-shadow:0 3px 14px 3px rgba(5, 3, 3, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);box-shadow:0 3px 14px 3px rgba(5, 3, 3, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);background:var(--wmcolor-actionmenu-background);z-index:10;text-align:left;white-space:nowrap}.dropdown:focus{outline:none}.dropdown.open{-ms-transform:scale(1, 1);-webkit-transform:scale(1, 1);-moz-transform:scale(1, 1);transform:scale(1, 1);visibility:visible}.dropdown.open-up{bottom:2.5rem;top:auto;-ms-transform-origin:center bottom;-webkit-transform-origin:center bottom;-moz-transform-origin:center bottom;transform-origin:center bottom}.dropdown.right{left:0}.dropdown.left{right:0}";var d=m;var l=t("wm_action_menu",function(){function t(t){var n=this;i(this,t);this.wmActionMenuLoaded=e(this,"wmActionMenuLoaded",7);this.menuLoaded=e(this,"menuLoaded",7);this.openUp=false;this.keysSoFar="";this.searchIndex=0;this.debouncedClearKeysSoFar=s((function(){n.keysSoFar=""}),500);this.isExpanded=false;this.tooltipPosition=undefined;this.actionMenuType="icon";this.buttonText=undefined;this.disabled=false;this.tooltip=undefined;this.labelForIdenticalButtons=undefined;this.darkMode=undefined}Object.defineProperty(t.prototype,"horizontalPosition",{get:function(){return!!this.el&&!!this.itemsEl&&a(this.el,this.itemsEl.clientWidth)?"right":"left"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"childItems",{get:function(){return Array.from(this.el.querySelectorAll("wm-menuitem"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"internalButtonType",{get:function(){return this.actionMenuType==="icon"||this.actionMenuType==="text"?this.actionMenuType+"only":this.actionMenuType},enumerable:false,configurable:true});t.prototype.handleClickedItem=function(){this.close()};t.prototype.handleKeyUp=function(t){this.moveUp(t.target)};t.prototype.handleKeyDown=function(t){this.moveDown(t.detail)};t.prototype.handleHomeKey=function(){this.focusFirstItem()};t.prototype.handleEndKey=function(){this.focusLastItem()};t.prototype.handleTabKey=function(){if(this.isExpanded){this.close()}};t.prototype.handleEscKey=function(){this.close();this.wmButtonEl.focus()};t.prototype.handleKey=function(t){var i=this;switch(t.key){case"ArrowDown":if(!this.isExpanded){t.preventDefault();this.open();window.requestAnimationFrame((function(){return i.focusFirstItem()}))}break;case"ArrowUp":if(!this.isExpanded){t.preventDefault();this.open();window.requestAnimationFrame((function(){return i.focusLastItem()}))}break}};t.prototype.handleMenuitemBlur=function(t){var i=t.detail.relatedTarget===this.el||this.el.contains(t.detail.relatedTarget);if(!i){var e=new CustomEvent("blur");e.relatedTarget=t.detail.relatedTarget;this.el.dispatchEvent(e)}};t.prototype.handleButtonBlur=function(t){var i=t.relatedTarget===this.el||this.el.contains(t.relatedTarget);if(i){t.stopPropagation()}};t.prototype.componentDidLoad=function(){if(this.actionMenuType!=="icon"&&!this.buttonText){console.error("wm-action-menu should have a valid button-text property when action-menu-type is set to 'text' or 'selector'")}if(this.actionMenuType==="icon"&&!this.tooltip){console.error("wm-action-menu should have a valid tooltip when action-menu-type is set to 'icon'")}this.wmActionMenuLoaded.emit();this.menuLoaded.emit()};t.prototype.moveUp=function(t){var i=this.childItems.indexOf(t);if(i===0){this.focusLastItem()}else{this.childItems[i-1].focus()}};t.prototype.moveDown=function(t){var i=this.childItems.indexOf(t);if(i===this.childItems.length-1){this.focusFirstItem()}else{this.childItems[i+1].focus()}};t.prototype.open=function(){var t=this;if(!this.disabled){this.openUp=c(this.el,this.itemsEl.clientHeight);this.isExpanded=true;this.itemsEl.classList.remove("hidden");window.requestAnimationFrame((function(){return t.focusFirstItem()}))}};t.prototype.close=function(t){var i=this;if(t===void 0){t=true}this.isExpanded=false;window.setTimeout((function(){i.itemsEl.classList.add("hidden")}),150);window.setTimeout((function(){if(t&&(document.activeElement.tagName==="BODY"||document.activeElement.tagName==="WM-MENUITEM")){i.wmButtonEl.focus()}}),250)};t.prototype.focusFirstItem=function(){this.childItems[0].focus()};t.prototype.focusLastItem=function(){this.childItems[this.childItems.length-1].focus()};t.prototype.findAndFocusItem=function(t){var i=this;if(!this.keysSoFar&&t.detail==" "){t.target.click()}else{var e=t.detail.toLowerCase();this.focusFirstItem();if(!this.keysSoFar){this.childItems.forEach((function(t,e){if(t===document.activeElement){i.searchIndex=e}}))}this.keysSoFar+=e;var n=this.findMatchInRange(this.childItems,this.searchIndex+1,this.childItems.length);if(!n){n=this.findMatchInRange(this.childItems,0,this.searchIndex)}if(n){n.focus()}this.debouncedClearKeysSoFar()}};t.prototype.findMatchInRange=function(t,i,e){for(var n=i;n<e;n++){var o=t[n].textContent;if(o&&o.toLowerCase().indexOf(this.keysSoFar)===0){return t[n]}}return null};t.prototype.render=function(){var t=this;return n(o,{key:"e6d63a25a3589c42657c7cf0825f9973861e92ae",onBlur:function(){return t.close(false)}},n("div",{key:"5744b207e0ebec31cb7a70b8c616700b9436d58b",class:h()},n("wm-button",{key:"9509bafa8ac5acbb76aafc464d36e4b97b0a8d07","button-type":this.internalButtonType,tooltip:this.tooltip,"custom-background":this.darkMode?"dark":undefined,"label-for-identical-buttons":this.labelForIdenticalButtons,icon:this.actionMenuType==="icon"?"f1d9":"",iconSize:this.actionMenuType==="icon"?"24px":undefined,id:"menubtn",onClick:function(){return t.isExpanded?t.close():t.open()},onBlur:function(i){return t.handleButtonBlur(i)},disabled:this.disabled,ref:function(i){return t.wmButtonEl=i},"tooltip-position":this.tooltipPosition||this.horizontalPosition,"aria-haspopup":"true","aria-expanded":this.isExpanded?"true":"false","aria-controls":"menu"},this.buttonText),n("div",{key:"e7846dd17a5b343b506a8c60176bba8ef8e8c2e0",class:"dropdown ".concat(this.openUp?"open-up":""," ").concat(this.horizontalPosition," ").concat(this.isExpanded?"open":""," hidden"),id:"menu",tabindex:-1,role:"menu",ref:function(i){return t.itemsEl=i}},n("slot",{key:"e227cd3ea8e2093e64c4b8c335ee098768139fd3"}))))};Object.defineProperty(t,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());l.style=d;var f=':host{--wmcolor-actionmenu-item-background-hover:var(--wmcolor-option-background-hover);--wmcolor-actionmenu-item-background-disabled:var(--wmcolor-option-background-disabled);--wmcolor-actionmenu-item-background:var(--wmcolor-option-background);--wmcolor-actionmenu-item-border:var(--wmcolor-option-border);--wmcolor-actionmenu-item-text-description:var(--wmcolor-option-text);--wmcolor-actionmenu-item-text-disabled:var(--wmcolor-option-text-disabled);--wmcolor-actionmenu-item-text:var(--wmcolor-interactive);contain:content;font-family:inherit}:host .wrapper{display:block;min-width:8.75rem;cursor:pointer;padding:1.25rem;border-radius:0px 0px 0px 0px;background:var(--wmcolor-actionmenu-item-background);font-family:inherit;font-weight:500;list-style:none;border-bottom:2px solid var(--wmcolor-actionmenu-item-border);color:var(--wmcolor-actionmenu-item-text);font-weight:700}:host .wrapper:hover{background:var(--wmcolor-actionmenu-item-background-hover);outline:none}:host .wrapper .description{color:var(--wmcolor-actionmenu-item-text-description);font-size:0.875rem;padding-top:0.5rem;white-space:normal;font-weight:400}:host .wrapper:not(:last-child){border-bottom:2px solid var(--wmcolor-actionmenu-item-border)}:host ::slotted{font-family:inherit}:host .mdi{display:inline-block;font:normal normal normal 24px/1 "Material Design Icons";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;margin-right:0.625rem;pointer-events:none;font-size:1.12rem}:host(:focus-visible){outline:none}:host(:focus-visible) .wrapper{outline:none;background:var(--wmcolor-actionmenu-item-background-hover)}:host([aria-disabled=true]){pointer-events:none}:host([aria-disabled=true]) .wrapper{background:var(--wmcolor-actionmenu-item-background-disabled);color:var(--wmcolor-actionmenu-text-disabled)}:host([aria-disabled=true]) .description{color:var(--wmcolor-actionmenu-text-disabled)}';var b=f;var p=t("wm_menuitem",function(){function t(t){i(this,t);this.wmMenuitemClicked=e(this,"wmMenuitemClicked",7);this.wmKeyUpPressed=e(this,"wmKeyUpPressed",7);this.wmKeyDownPressed=e(this,"wmKeyDownPressed",7);this.wmEscKeyPressed=e(this,"wmEscKeyPressed",7);this.wmHomeKeyPressed=e(this,"wmHomeKeyPressed",7);this.wmEndKeyPressed=e(this,"wmEndKeyPressed",7);this.wmPageDownItems=e(this,"wmPageDownItems",7);this.wmPageUpItems=e(this,"wmPageUpItems",7);this.wmTabKeyPressed=e(this,"wmTabKeyPressed",7);this.wmLetterPressed=e(this,"wmLetterPressed",7);this.wmMenuitemBlurred=e(this,"wmMenuitemBlurred",7);this.descriptionCharLimit=100;this.disabled=false;this.icon=undefined;this.description=undefined}t.prototype.handleKeydown=function(t){var i=t.altKey||t.ctrlKey||t.metaKey;var e=/^.$/.test(t.key);var n=e&&!i;switch(t.key){case"ArrowUp":t.preventDefault();this.wmKeyUpPressed.emit(this.el);break;case"ArrowDown":t.preventDefault();this.wmKeyDownPressed.emit(this.el);break;case"Enter":t.preventDefault();if(!this.disabled){this.el.click()}break;case"Escape":t.preventDefault();t.stopPropagation();this.wmEscKeyPressed.emit();break;case"Home":t.preventDefault();this.wmHomeKeyPressed.emit();break;case"End":t.preventDefault();this.wmEndKeyPressed.emit();break;case"Tab":this.wmTabKeyPressed.emit();break;default:if(n){t.preventDefault();this.wmLetterPressed.emit(t.key)}}};t.prototype.handleClick=function(){if(!this.disabled){this.wmMenuitemClicked.emit()}};t.prototype.handleBlur=function(t){this.wmMenuitemBlurred.emit({relatedTarget:t.relatedTarget})};t.prototype.setOnClick=function(){if(this.disabled&&this.el.onclick){this.onClickFunc=this.el.onclick;this.el.onclick=null}else if(!this.disabled&&this.onClickFunc){this.el.onclick=this.onClickFunc}};t.prototype.componentWillLoad=function(){if(this.icon){this.icon=u(this.icon)}if(this.description){if(this.description.length>this.descriptionCharLimit){console.error("wm-menuitem description is above the character limit of ".concat(this.descriptionCharLimit))}if(this.icon){console.error("wm-menuitems with descriptions do not support the use of icons")}}this.setOnClick()};t.prototype.componentDidLoad=function(){if(this.icon){this.iconEl.classList.add("mdi");this.iconEl.innerHTML="&#x".concat(this.icon,";")}};t.prototype.render=function(){var t=this;return n(o,{key:"1b81b125825133d025c2f138c2e9d89306bd0b93",tabindex:-1,role:"menuitem","aria-disabled":this.disabled?"true":null},n("div",{key:"e820464ef57df83441622726b55098c3abdeb6e3",class:"wrapper","aria-disabled":this.disabled?"true":null},n("span",{key:"d903355e81bdc504a04cb9489ecd455d6d41a1e1",ref:function(i){return t.iconEl=i}}),this.el.textContent,this.description?n("div",{class:"description"},this.description):""))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["setOnClick"]}},enumerable:false,configurable:true});return t}());p.style=b}}}));
|