@maggioli-design-system/magma 1.11.8 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +7 -7
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +4 -3
- package/dist/cjs/mds-calendar_2.cjs.entry.js +246 -128
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +4 -4
- package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
- package/dist/cjs/mds-file.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +197 -55
- package/dist/cjs/mds-input-date.cjs.entry.js +16 -10
- package/dist/cjs/mds-input.cjs.entry.js +9 -9
- package/dist/cjs/mds-paginator.cjs.entry.js +24 -8
- package/dist/cjs/mds-text.cjs.entry.js +7 -4
- package/dist/collection/components/mds-accordion/mds-accordion.js +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-author/mds-author.js +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.js +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +1 -1
- package/dist/collection/components/mds-badge/mds-badge.js +1 -1
- package/dist/collection/components/mds-banner/mds-banner.js +2 -2
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +1 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +7 -7
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.js +3 -2
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +50 -7
- package/dist/collection/components/mds-calendar/mds-calendar.js +413 -128
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
- package/dist/collection/components/mds-chip/mds-chip.js +3 -3
- package/dist/collection/components/mds-details/mds-details.js +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-file/mds-file.js +3 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +3 -3
- package/dist/collection/components/mds-help/mds-help.js +1 -1
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -1
- package/dist/collection/components/mds-input/mds-input.js +9 -9
- package/dist/collection/components/mds-input-date/mds-input-date.js +19 -11
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +33 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +221 -71
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +24 -8
- package/dist/collection/components/mds-text/mds-text.js +7 -4
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +2 -2
- package/dist/components/mds-avatar-stack-item2.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar2.js +1 -1
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner2.js +2 -2
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +7 -7
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +2 -2
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button2.js +3 -2
- package/dist/components/mds-calendar-cell2.js +1 -1
- package/dist/components/mds-calendar2.js +256 -128
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip2.js +3 -3
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +2 -2
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +2 -2
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +3 -3
- package/dist/components/mds-header.js +2 -2
- package/dist/components/mds-help2.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon2.js +1 -1
- package/dist/components/mds-input-date-range.js +199 -55
- package/dist/components/mds-input-date.js +17 -10
- package/dist/components/mds-input2.js +9 -9
- package/dist/components/mds-paginator.js +24 -8
- package/dist/components/mds-text2.js +7 -4
- package/dist/documentation.json +239 -33
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +2 -2
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +6 -6
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +7 -7
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +4 -3
- package/dist/esm/mds-calendar_2.entry.js +246 -128
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +4 -4
- package/dist/esm/mds-file-preview.entry.js +2 -2
- package/dist/esm/mds-file.entry.js +3 -3
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +2 -2
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +197 -55
- package/dist/esm/mds-input-date.entry.js +16 -10
- package/dist/esm/mds-input.entry.js +9 -9
- package/dist/esm/mds-paginator.entry.js +24 -8
- package/dist/esm/mds-text.entry.js +7 -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-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +1 -1
- package/dist/esm-es5/mds-file.entry.js +1 -1
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/hydrate/index.js +572 -275
- package/dist/hydrate/index.mjs +572 -275
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-e3b0adb8.entry.js → p-02c9dffb.entry.js} +1 -1
- package/dist/magma-components/{p-e8626e7a.system.entry.js → p-03b5bdae.system.entry.js} +1 -1
- package/dist/magma-components/{p-fec5168f.entry.js → p-09b27f6e.entry.js} +1 -1
- package/dist/magma-components/p-09cbad84.system.entry.js +1 -0
- package/dist/magma-components/{p-0c3b813d.entry.js → p-0a9db9fc.entry.js} +1 -1
- package/dist/magma-components/{p-beeaec1c.entry.js → p-10957e40.entry.js} +1 -1
- package/dist/magma-components/{p-42f5037a.entry.js → p-14cad758.entry.js} +1 -1
- package/dist/magma-components/{p-35d85970.entry.js → p-188c906e.entry.js} +1 -1
- package/dist/magma-components/{p-91e16169.system.entry.js → p-191e79c8.system.entry.js} +1 -1
- package/dist/magma-components/{p-1a8d42d1.system.entry.js → p-1c37f4ce.system.entry.js} +1 -1
- package/dist/magma-components/{p-30648e76.system.entry.js → p-1cd6c3fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-c3ae9ba7.system.entry.js → p-1f52a479.system.entry.js} +1 -1
- package/dist/magma-components/p-20e0f9e3.entry.js +1 -0
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-237d60e2.system.entry.js → p-2910fa0c.system.entry.js} +1 -1
- package/dist/magma-components/{p-d95c9d2e.system.entry.js → p-2d947462.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b25be9f.entry.js → p-342a07c7.entry.js} +1 -1
- package/dist/magma-components/{p-b228a186.system.entry.js → p-39d9f24d.system.entry.js} +1 -1
- package/dist/magma-components/{p-27cb23f6.entry.js → p-3a57f53d.entry.js} +1 -1
- package/dist/magma-components/{p-0689710c.system.entry.js → p-3b267a52.system.entry.js} +1 -1
- package/dist/magma-components/p-3e72a9f4.entry.js +1 -0
- package/dist/magma-components/{p-2de8157b.system.entry.js → p-432be440.system.entry.js} +1 -1
- package/dist/magma-components/{p-5eca660e.system.entry.js → p-43a2f192.system.entry.js} +1 -1
- package/dist/magma-components/{p-eaf4805a.entry.js → p-48a2e8e4.entry.js} +1 -1
- package/dist/magma-components/{p-ff674ef9.entry.js → p-4ab9c985.entry.js} +1 -1
- package/dist/magma-components/{p-40eeffe8.entry.js → p-4b76248b.entry.js} +1 -1
- package/dist/magma-components/{p-11df77b3.entry.js → p-4cf97724.entry.js} +1 -1
- package/dist/magma-components/{p-1e686661.system.entry.js → p-4ece2e21.system.entry.js} +1 -1
- package/dist/magma-components/{p-0e2b6dd3.system.entry.js → p-5359bf5e.system.entry.js} +1 -1
- package/dist/magma-components/{p-536b4c16.entry.js → p-5619ed51.entry.js} +1 -1
- package/dist/magma-components/{p-d738a403.system.entry.js → p-5edd2f30.system.entry.js} +1 -1
- package/dist/magma-components/{p-033e85f1.entry.js → p-606cd4bb.entry.js} +1 -1
- package/dist/magma-components/{p-e9ade624.system.entry.js → p-61c35e05.system.entry.js} +1 -1
- package/dist/magma-components/{p-6e680417.system.entry.js → p-68a7d370.system.entry.js} +1 -1
- package/dist/magma-components/{p-50b07c72.system.entry.js → p-68dde65c.system.entry.js} +1 -1
- package/dist/magma-components/{p-409c9518.system.entry.js → p-7244ca7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-a9d6984e.entry.js → p-726cd93c.entry.js} +1 -1
- package/dist/magma-components/{p-c2798c9a.system.entry.js → p-7359e097.system.entry.js} +1 -1
- package/dist/magma-components/{p-723fbfb0.entry.js → p-78088de2.entry.js} +1 -1
- package/dist/magma-components/{p-83b2ee17.entry.js → p-7ae676db.entry.js} +1 -1
- package/dist/magma-components/{p-6d3ea2b6.entry.js → p-7b788f04.entry.js} +1 -1
- package/dist/magma-components/{p-b727c3a6.system.entry.js → p-80518658.system.entry.js} +1 -1
- package/dist/magma-components/{p-f6ef6105.entry.js → p-8314f381.entry.js} +1 -1
- package/dist/magma-components/{p-86f45462.entry.js → p-8469b603.entry.js} +1 -1
- package/dist/magma-components/{p-09aaa62b.system.entry.js → p-855f1617.system.entry.js} +1 -1
- package/dist/magma-components/{p-cae0e727.entry.js → p-89757b16.entry.js} +1 -1
- package/dist/magma-components/{p-60342fa8.system.entry.js → p-8bc52935.system.entry.js} +1 -1
- package/dist/magma-components/{p-6b4bf0df.entry.js → p-8f091ceb.entry.js} +1 -1
- package/dist/magma-components/{p-8859d528.entry.js → p-94fb14aa.entry.js} +1 -1
- package/dist/magma-components/{p-755dff75.system.entry.js → p-9b7e1f4b.system.entry.js} +1 -1
- package/dist/magma-components/{p-dfdc83ab.entry.js → p-9d5ab31c.entry.js} +1 -1
- package/dist/magma-components/{p-ddd59ddb.system.entry.js → p-9d86dd4c.system.entry.js} +1 -1
- package/dist/magma-components/{p-9e08e8f1.system.entry.js → p-a776c78c.system.entry.js} +1 -1
- package/dist/magma-components/{p-854848ca.entry.js → p-aacb6b47.entry.js} +1 -1
- package/dist/magma-components/{p-bdc49c99.entry.js → p-b4bad440.entry.js} +1 -1
- package/dist/magma-components/{p-3095eab8.system.entry.js → p-b7aae63a.system.entry.js} +1 -1
- package/dist/magma-components/{p-03cadeb4.system.entry.js → p-b7b0f420.system.entry.js} +1 -1
- package/dist/magma-components/{p-788e95ce.entry.js → p-ba8142cf.entry.js} +1 -1
- package/dist/magma-components/{p-84cf6604.system.entry.js → p-be5a7e23.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e3603c.system.entry.js → p-c3304189.system.entry.js} +1 -1
- package/dist/magma-components/{p-a201cbab.entry.js → p-c372fe03.entry.js} +1 -1
- package/dist/magma-components/{p-b4baf323.entry.js → p-c5730248.entry.js} +1 -1
- package/dist/magma-components/{p-3e50c4ab.entry.js → p-c5d2cd00.entry.js} +1 -1
- package/dist/magma-components/p-c6785782.entry.js +1 -0
- package/dist/magma-components/p-ca4ee5b5.system.entry.js +1 -0
- package/dist/magma-components/{p-7262712f.system.entry.js → p-cae04975.system.entry.js} +1 -1
- package/dist/magma-components/p-d7cf7569.entry.js +1 -0
- package/dist/magma-components/{p-6d1ce884.system.entry.js → p-d98a34dc.system.entry.js} +1 -1
- package/dist/magma-components/{p-2b3517af.system.entry.js → p-d99f38a7.system.entry.js} +1 -1
- package/dist/magma-components/{p-3c2df04e.system.entry.js → p-dd7b9422.system.entry.js} +1 -1
- package/dist/magma-components/{p-58b77d4f.entry.js → p-e0bd7509.entry.js} +1 -1
- package/dist/magma-components/p-e137eebd.entry.js +1 -0
- package/dist/magma-components/{p-a786264e.system.entry.js → p-e32a0ec8.system.entry.js} +1 -1
- package/dist/magma-components/{p-12527b99.system.entry.js → p-ef488f9f.system.entry.js} +1 -1
- package/dist/magma-components/{p-70223843.system.entry.js → p-f250731c.system.entry.js} +1 -1
- package/dist/magma-components/{p-8de607ef.entry.js → p-f2e7d2f0.entry.js} +1 -1
- package/dist/magma-components/{p-a9c9e071.system.entry.js → p-f349e728.system.entry.js} +1 -1
- package/dist/magma-components/p-f3f64ecf.entry.js +1 -0
- package/dist/magma-components/{p-1c2b1a44.system.entry.js → p-f584c1d7.system.entry.js} +1 -1
- package/dist/magma-components/{p-f5f97018.entry.js → p-fd25f69a.entry.js} +1 -1
- package/dist/magma-components/{p-977d3bf0.entry.js → p-fe3879f3.entry.js} +1 -1
- package/dist/stats.json +1159 -746
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +43 -1
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +23 -4
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -1
- package/dist/types/components.d.ts +94 -6
- package/package.json +6 -2
- package/dist/magma-components/p-224f80f4.entry.js +0 -1
- package/dist/magma-components/p-3da97c74.system.entry.js +0 -1
- package/dist/magma-components/p-643fd688.entry.js +0 -1
- package/dist/magma-components/p-80b11d2e.entry.js +0 -1
- package/dist/magma-components/p-9c97817b.entry.js +0 -1
- package/dist/magma-components/p-e1f3cc6d.entry.js +0 -1
- package/dist/magma-components/p-ead9e4c4.system.entry.js +0 -1
- package/dist/magma-components/p-fe0446d4.entry.js +0 -1
|
@@ -5,4 +5,4 @@ import{r as e,c as r,h as a,H as t,g as i}from"./p-3a6b32e7.js";import{m as o}fr
|
|
|
5
5
|
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
6
6
|
* @license BSD-3-Clause
|
|
7
7
|
* @version 10.1.0
|
|
8
|
-
*/const p="bits",g="bytes",f="jedec",y={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}},w={remove:"Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης"},u={remove:"Remove file from upload queue"},k={remove:"Eliminar archivo de la cola de carga"},x={remove:"Rimuovi file dalla coda di upload"},j=class{constructor(a){e(this,a),this.downloadedEvent=r(this,"mdsFileDownload",7),this.deletedEvent=r(this,"mdsFileDelete",7),this.t=new v({el:Object.assign(Object.assign({},w),d),en:Object.assign(Object.assign({},u),l),es:Object.assign(Object.assign({},k),n),it:Object.assign(Object.assign({},x),c)}),this.truncate="word",this.getDefaultKeyDescription=()=>m(this.filename,this.suffix).description,this.onClickDeletedEvent=()=>{this.deletedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})},this.onClickDownloadEvent=()=>{this.downloadedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})}}async updateLang(){this.language=this.t.lang(this.host)}componentWillLoad(){this.t.lang(this.host),this.format=m(this.filename,this.suffix).format}componentDidLoad(){this.handleDownloadable(this.downloadable)}handleFilename(e){this.format=m(e,this.suffix).format}handleDownloadable(e,r){var a;if(e===r)return;const t=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".card");e?null==t||t.addEventListener("click",this.onClickDownloadEvent):null==t||t.removeEventListener("click",this.onClickDownloadEvent)}render(){var e,r,i;return a(t,{key:"0710d30368cdde1184606c5faa805cdd0bb9054a"},this.deletable&&a("mds-button",{key:"366d3fe7de6e92b3bf8c0be6736666b593ec16cb",title:this.t.get("remove"),class:"action-delete",icon:o,variant:"light",onClick:this.onClickDeletedEvent}),a("div",{key:"a9c09b7749ea1f63e8cb4ee2e5383bfc9ae0d1b3",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src&&!this.message&&m(this.filename,this.suffix).preview?a("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):a("div",{class:s("preview",this.message?"preview--status":"preview--icon")},a("mds-icon",this.icon?{class:"icon",name:this.icon}:{class:"icon",name:h(this.filename,this.suffix).icon}),this.message&&a("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),a("mds-text",{key:"e2f1c6aca7f7e98f66d89aea9c53610ab9300f95",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),a("footer",{key:"3535084a42e1ad9f62c57ac54032a479f3a34463",class:s("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&a("mds-text",{key:"79c2bccab6b0740730193a54551a264beac1d772",class:"file-size",truncate:"word",typography:"caption",variant:"info"},function(e,{bits:r=!1,pad:a=!1,base:t=-1,round:i=2,locale:o="",localeOptions:s={},separator:d="",spacer:l=" ",symbols:n={},standard:c="",output:m="string",fullform:b=!1,fullforms:h=[],exponent:v=-1,roundingMethod:w="round",precision:u=0}={}){let k=v,x=Number(e),j=[],B=0,q="";"si"===c?(t=10,c=f):"iec"===c||c===f?t=2:2===t?c="iec":(t=10,c=f);const M=10===t?1e3:1024,z=!0===b,N=x<0,O=Math[w];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof O)throw new TypeError("Invalid rounding method");if(N&&(x=-x),(-1===k||isNaN(k))&&(k=Math.floor(Math.log(x)/Math.log(M)),k<0&&(k=0)),k>8&&(u>0&&(u+=8-k),k=8),"exponent"===m)return k;if(0===x)j[0]=0,q=j[1]=y.symbol[c][r?p:g][k];else{B=x/(2===t?Math.pow(2,10*k):Math.pow(1e3,k)),r&&(B*=8,B>=M&&k<8&&(B/=M,k++));const e=Math.pow(10,k>0?i:0);j[0]=O(B*e)/e,j[0]===M&&k<8&&-1===v&&(j[0]=1,k++),q=j[1]=10===t&&1===k?r?"kbit":"kB":y.symbol[c][r?p:g][k]}if(N&&(j[0]=-j[0]),u>0&&(j[0]=j[0].toPrecision(u)),j[1]=n[j[1]]||j[1],!0===o?j[0]=j[0].toLocaleString():o.length>0?j[0]=j[0].toLocaleString(o,s):d.length>0&&(j[0]=j[0].toString().replace(".",d)),a&&!1===Number.isInteger(j[0])&&i>0){const e=d||".",r=j[0].toString().split(e),a=r[1]||"",t=a.length;j[0]=`${r[0]}${e}${a.padEnd(t+(i-t),"0")}`}return z&&(j[1]=h[k]?h[k]:y.fullform[c][k]+(r?"bit":"byte")+(1===j[0]?"":"s")),"array"===m?j:"object"===m?{value:j[0],symbol:j[1],exponent:k,unit:q}:j.join(l)}(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&a("mds-text",{key:"143a603b4d3d974e3f93a06d3e2771a723a257d3",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),b(this.filename,this.suffix)&&a("mds-badge",{key:"39c15b38bc2c5d92151b299f4f93095e9fd17f4e",variant:h(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultKeyDescription())},b(this.filename,this.suffix)),!this.filesize&&a("mds-text",{key:"646a25849f8188fb5ac60cfeac9d0977ecd9f806",class:"description",truncate:"word",typography:"caption",variant:"info",title:null!==(r=this.description)&&void 0!==r?r:this.t.get(this.getDefaultKeyDescription())},null!==(i=this.description)&&void 0!==i?i:this.t.get(this.getDefaultKeyDescription())))))}get host(){return i(this)}static get watchers(){return{filename:["handleFilename"],downloadable:["handleDownloadable"]}}};j.style=':host{--mds-file-preview-background-color:rgb(var(--tone-neutral));--mds-file-preview-border-radius:0.5rem;--mds-file-preview-color:rgb(var(--tone-neutral-03));--mds-file-preview-icon-background:inherit;--mds-file-preview-icon-color:var(--mds-file-preview-color);-ms-flex-align:stretch;align-items:stretch;background-color:var(--mds-file-preview-background-color);border-radius:var(--mds-file-preview-border-radius);-webkit-box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);display:-ms-flexbox;display:flex;fill:var(--mds-file-preview-color);-ms-flex-pack:stretch;justify-content:stretch;position:relative}.card{grid-template-columns:repeat(1, minmax(1px, 100%));gap:0.5rem;padding:1rem;border-radius:var(--mds-file-preview-border-radius);display:grid;width:100%}.preview{aspect-ratio:1/1;background-color:var(--mds-file-preview-icon-background);border-radius:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-file-preview-color);fill:var(--mds-file-preview-icon-color);width:100%}.preview--image{-webkit-filter:brightness(0.975);filter:brightness(0.975);padding:0 !important}.preview--icon,.preview--status{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.preview--status{gap:0.5rem;padding:1rem}.icon{height:3rem;width:3rem}.message{text-align:center}.action-delete{background-color:var(--mds-file-preview-background-color);position:absolute;right:0;top:0;z-index:10}.infos{gap:0.5rem;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.suffix{-ms-flex-negative:0;flex-shrink:0}.infos--has-file-size{-ms-flex-pack:justify;justify-content:space-between}.file-name{--mds-text-line-clamp:2}:host([format="archive"]),:host([format="executable"]){--mds-file-preview-color:rgb(var(--label-amaranth-04));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04))}:host([format="attachment"]){--mds-file-preview-color:rgb(var(--tone-neutral-04));--mds-file-preview-icon-background:rgb(var(--tone-neutral-10));--mds-file-preview-icon-color:rgb(var(--tone-neutral-04))}:host([format="audio"]),:host([format="video"]){--mds-file-preview-color:rgb(var(--label-violet-04));--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-04))}:host([format="code"]),:host([format="data"]),:host([format="markup"]){--mds-file-preview-color:rgb(var(--label-yellow-04));--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-04))}:host([format="document"]),:host([format="certificate"]){--mds-file-preview-color:rgb(var(--label-orange-04));--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-04))}:host([format="email"]),:host([format="text"]){--mds-file-preview-color:rgb(var(--label-blue-04));--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-04))}:host([format="image"]){--mds-file-preview-color:rgb(var(--label-green-04));--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-04))}:host([format="slide"]){--mds-file-preview-color:rgb(var(--label-orchid-04));--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-04))}:host([format="spreadsheet"]){--mds-file-preview-color:rgb(var(--label-lime-04));--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-04))}:host([format="vector"]){--mds-file-preview-color:rgb(var(--label-aqua-04));--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-04))}:host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-09));--mds-file-preview-icon-color:rgb(var(--variant-primary-04))}:host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-09));--mds-file-preview-icon-color:rgb(var(--status-info-04));--mds-file-preview-color:rgb(var(--status-info-03))}:host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-09));--mds-file-preview-icon-color:rgb(var(--status-success-04));--mds-file-preview-color:rgb(var(--status-success-03))}:host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-09));--mds-file-preview-icon-color:rgb(var(--status-warning-04));--mds-file-preview-color:rgb(var(--status-warning-03))}:host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-09));--mds-file-preview-icon-color:rgb(var(--status-error-04));--mds-file-preview-color:rgb(var(--status-error-03))}:host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-09));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04));--mds-file-preview-color:rgb(var(--label-amaranth-03))}:host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-09));--mds-file-preview-icon-color:rgb(var(--label-aqua-04));--mds-file-preview-color:rgb(var(--label-aqua-03))}:host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-09));--mds-file-preview-icon-color:rgb(var(--label-blue-04));--mds-file-preview-color:rgb(var(--label-blue-03))}:host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-09));--mds-file-preview-icon-color:rgb(var(--label-green-04));--mds-file-preview-color:rgb(var(--label-green-03))}:host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-09));--mds-file-preview-icon-color:rgb(var(--label-lime-04));--mds-file-preview-color:rgb(var(--label-lime-03))}:host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-09));--mds-file-preview-icon-color:rgb(var(--label-orange-04));--mds-file-preview-color:rgb(var(--label-orange-03))}:host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-09));--mds-file-preview-icon-color:rgb(var(--label-orchid-04));--mds-file-preview-color:rgb(var(--label-orchid-03))}:host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-09));--mds-file-preview-icon-color:rgb(var(--label-sky-04));--mds-file-preview-color:rgb(var(--label-sky-03))}:host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-09));--mds-file-preview-icon-color:rgb(var(--label-violet-04));--mds-file-preview-color:rgb(var(--label-violet-03))}:host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-09));--mds-file-preview-icon-color:rgb(var(--label-yellow-04));--mds-file-preview-color:rgb(var(--label-yellow-03))}:host-context(.pref-contrast-more):host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-10));--mds-file-preview-icon-color:rgb(var(--variant-primary-02));--mds-file-preview-color:rgb(var(--variant-primary-01))}:host-context(.pref-contrast-more):host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-10));--mds-file-preview-icon-color:rgb(var(--status-info-02));--mds-file-preview-color:rgb(var(--status-info-01))}:host-context(.pref-contrast-more):host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-10));--mds-file-preview-icon-color:rgb(var(--status-success-02));--mds-file-preview-color:rgb(var(--status-success-01))}:host-context(.pref-contrast-more):host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-10));--mds-file-preview-icon-color:rgb(var(--status-warning-02));--mds-file-preview-color:rgb(var(--status-warning-01))}:host-context(.pref-contrast-more):host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-10));--mds-file-preview-icon-color:rgb(var(--status-error-02));--mds-file-preview-color:rgb(var(--status-error-01))}:host-context(.pref-contrast-more):host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02));--mds-file-preview-color:rgb(var(--label-amaranth-01))}:host-context(.pref-contrast-more):host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-02));--mds-file-preview-color:rgb(var(--label-aqua-01))}:host-context(.pref-contrast-more):host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-02));--mds-file-preview-color:rgb(var(--label-blue-01))}:host-context(.pref-contrast-more):host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-02));--mds-file-preview-color:rgb(var(--label-green-01))}:host-context(.pref-contrast-more):host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-02));--mds-file-preview-color:rgb(var(--label-lime-01))}:host-context(.pref-contrast-more):host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-02));--mds-file-preview-color:rgb(var(--label-orange-01))}:host-context(.pref-contrast-more):host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-02));--mds-file-preview-color:rgb(var(--label-orchid-01))}:host-context(.pref-contrast-more):host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10));--mds-file-preview-icon-color:rgb(var(--label-sky-02));--mds-file-preview-color:rgb(var(--label-sky-01))}:host-context(.pref-contrast-more):host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-02));--mds-file-preview-color:rgb(var(--label-violet-01))}:host-context(.pref-contrast-more):host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-02));--mds-file-preview-color:rgb(var(--label-yellow-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-10));--mds-file-preview-icon-color:rgb(var(--variant-primary-02));--mds-file-preview-color:rgb(var(--variant-primary-01))}:host-context(.pref-contrast-system):host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-10));--mds-file-preview-icon-color:rgb(var(--status-info-02));--mds-file-preview-color:rgb(var(--status-info-01))}:host-context(.pref-contrast-system):host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-10));--mds-file-preview-icon-color:rgb(var(--status-success-02));--mds-file-preview-color:rgb(var(--status-success-01))}:host-context(.pref-contrast-system):host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-10));--mds-file-preview-icon-color:rgb(var(--status-warning-02));--mds-file-preview-color:rgb(var(--status-warning-01))}:host-context(.pref-contrast-system):host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-10));--mds-file-preview-icon-color:rgb(var(--status-error-02));--mds-file-preview-color:rgb(var(--status-error-01))}:host-context(.pref-contrast-system):host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02));--mds-file-preview-color:rgb(var(--label-amaranth-01))}:host-context(.pref-contrast-system):host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-02));--mds-file-preview-color:rgb(var(--label-aqua-01))}:host-context(.pref-contrast-system):host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-02));--mds-file-preview-color:rgb(var(--label-blue-01))}:host-context(.pref-contrast-system):host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-02));--mds-file-preview-color:rgb(var(--label-green-01))}:host-context(.pref-contrast-system):host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-02));--mds-file-preview-color:rgb(var(--label-lime-01))}:host-context(.pref-contrast-system):host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-02));--mds-file-preview-color:rgb(var(--label-orange-01))}:host-context(.pref-contrast-system):host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-02));--mds-file-preview-color:rgb(var(--label-orchid-01))}:host-context(.pref-contrast-system):host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10));--mds-file-preview-icon-color:rgb(var(--label-sky-02));--mds-file-preview-color:rgb(var(--label-sky-01))}:host-context(.pref-contrast-system):host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-02));--mds-file-preview-color:rgb(var(--label-violet-01))}:host-context(.pref-contrast-system):host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-02));--mds-file-preview-color:rgb(var(--label-yellow-01))}}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .preview{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .preview{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3)}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3)}}:host-context(.pref-contrast-more){--mds-file-preview-color:rgb(var(--tone-neutral-01));-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3)}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-file-preview-color:rgb(var(--tone-neutral-01));-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3)}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{j as mds_file_preview}
|
|
8
|
+
*/const p="bits",g="bytes",f="jedec",y={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}},w={remove:"Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης"},u={remove:"Remove file from upload queue"},k={remove:"Eliminar archivo de la cola de carga"},x={remove:"Rimuovi file dalla coda di upload"},j=class{constructor(a){e(this,a),this.downloadedEvent=r(this,"mdsFileDownload",7),this.deletedEvent=r(this,"mdsFileDelete",7),this.t=new v({el:Object.assign(Object.assign({},w),d),en:Object.assign(Object.assign({},u),l),es:Object.assign(Object.assign({},k),n),it:Object.assign(Object.assign({},x),c)}),this.truncate="word",this.getDefaultKeyDescription=()=>m(this.filename,this.suffix).description,this.onClickDeletedEvent=()=>{this.deletedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})},this.onClickDownloadEvent=()=>{this.downloadedEvent.emit({target:this.host,filename:this.filename,extension:b(this.filename,this.suffix)})}}async updateLang(){this.language=this.t.lang(this.host)}componentWillLoad(){this.t.lang(this.host),this.format=m(this.filename,this.suffix).format}componentDidLoad(){this.handleDownloadable(this.downloadable)}handleFilename(e){this.format=m(e,this.suffix).format}handleDownloadable(e,r){var a;if(e===r)return;const t=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".card");e?null==t||t.addEventListener("click",this.onClickDownloadEvent):null==t||t.removeEventListener("click",this.onClickDownloadEvent)}render(){var e,r,i;return a(t,{key:"c19f52934f1fa591d71175d1a0a584c0e9d0bd92"},this.deletable&&a("mds-button",{key:"89ea5ca40b769a2be0fd1a85a647c76cfec19d1a",title:this.t.get("remove"),class:"action-delete",icon:o,variant:"light",onClick:this.onClickDeletedEvent}),a("div",{key:"4549aaf3814a0b76176ba5ff7c661ccb8459f537",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src&&!this.message&&m(this.filename,this.suffix).preview?a("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):a("div",{class:s("preview",this.message?"preview--status":"preview--icon")},a("mds-icon",this.icon?{class:"icon",name:this.icon}:{class:"icon",name:h(this.filename,this.suffix).icon}),this.message&&a("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),a("mds-text",{key:"b65a6b6b3dff0c40cda7493fede3e906ec2a39bb",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),a("footer",{key:"9a3ab25be54faa5d535eaaf4449985090aa5a9ea",class:s("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&a("mds-text",{key:"4c975b0c31a93568e2776ec71778a117d5eeeb66",class:"file-size",truncate:"word",typography:"caption",variant:"info"},function(e,{bits:r=!1,pad:a=!1,base:t=-1,round:i=2,locale:o="",localeOptions:s={},separator:d="",spacer:l=" ",symbols:n={},standard:c="",output:m="string",fullform:b=!1,fullforms:h=[],exponent:v=-1,roundingMethod:w="round",precision:u=0}={}){let k=v,x=Number(e),j=[],B=0,q="";"si"===c?(t=10,c=f):"iec"===c||c===f?t=2:2===t?c="iec":(t=10,c=f);const M=10===t?1e3:1024,z=!0===b,N=x<0,O=Math[w];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof O)throw new TypeError("Invalid rounding method");if(N&&(x=-x),(-1===k||isNaN(k))&&(k=Math.floor(Math.log(x)/Math.log(M)),k<0&&(k=0)),k>8&&(u>0&&(u+=8-k),k=8),"exponent"===m)return k;if(0===x)j[0]=0,q=j[1]=y.symbol[c][r?p:g][k];else{B=x/(2===t?Math.pow(2,10*k):Math.pow(1e3,k)),r&&(B*=8,B>=M&&k<8&&(B/=M,k++));const e=Math.pow(10,k>0?i:0);j[0]=O(B*e)/e,j[0]===M&&k<8&&-1===v&&(j[0]=1,k++),q=j[1]=10===t&&1===k?r?"kbit":"kB":y.symbol[c][r?p:g][k]}if(N&&(j[0]=-j[0]),u>0&&(j[0]=j[0].toPrecision(u)),j[1]=n[j[1]]||j[1],!0===o?j[0]=j[0].toLocaleString():o.length>0?j[0]=j[0].toLocaleString(o,s):d.length>0&&(j[0]=j[0].toString().replace(".",d)),a&&!1===Number.isInteger(j[0])&&i>0){const e=d||".",r=j[0].toString().split(e),a=r[1]||"",t=a.length;j[0]=`${r[0]}${e}${a.padEnd(t+(i-t),"0")}`}return z&&(j[1]=h[k]?h[k]:y.fullform[c][k]+(r?"bit":"byte")+(1===j[0]?"":"s")),"array"===m?j:"object"===m?{value:j[0],symbol:j[1],exponent:k,unit:q}:j.join(l)}(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&a("mds-text",{key:"98912a75f1d391ec5ef30ddb122c71750a21dff2",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),b(this.filename,this.suffix)&&a("mds-badge",{key:"e4985c4617aa81233dbb48dfa774c809e62f8384",variant:h(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultKeyDescription())},b(this.filename,this.suffix)),!this.filesize&&a("mds-text",{key:"180c16a686a3b627279388fd0f5f001bded84b65",class:"description",truncate:"word",typography:"caption",variant:"info",title:null!==(r=this.description)&&void 0!==r?r:this.t.get(this.getDefaultKeyDescription())},null!==(i=this.description)&&void 0!==i?i:this.t.get(this.getDefaultKeyDescription())))))}get host(){return i(this)}static get watchers(){return{filename:["handleFilename"],downloadable:["handleDownloadable"]}}};j.style=':host{--mds-file-preview-background-color:rgb(var(--tone-neutral));--mds-file-preview-border-radius:0.5rem;--mds-file-preview-color:rgb(var(--tone-neutral-03));--mds-file-preview-icon-background:inherit;--mds-file-preview-icon-color:var(--mds-file-preview-color);-ms-flex-align:stretch;align-items:stretch;background-color:var(--mds-file-preview-background-color);border-radius:var(--mds-file-preview-border-radius);-webkit-box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);display:-ms-flexbox;display:flex;fill:var(--mds-file-preview-color);-ms-flex-pack:stretch;justify-content:stretch;position:relative}.card{grid-template-columns:repeat(1, minmax(1px, 100%));gap:0.5rem;padding:1rem;border-radius:var(--mds-file-preview-border-radius);display:grid;width:100%}.preview{aspect-ratio:1/1;background-color:var(--mds-file-preview-icon-background);border-radius:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-file-preview-color);fill:var(--mds-file-preview-icon-color);width:100%}.preview--image{-webkit-filter:brightness(0.975);filter:brightness(0.975);padding:0 !important}.preview--icon,.preview--status{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.preview--status{gap:0.5rem;padding:1rem}.icon{height:3rem;width:3rem}.message{text-align:center}.action-delete{background-color:var(--mds-file-preview-background-color);position:absolute;right:0;top:0;z-index:10}.infos{gap:0.5rem;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.suffix{-ms-flex-negative:0;flex-shrink:0}.infos--has-file-size{-ms-flex-pack:justify;justify-content:space-between}.file-name{--mds-text-line-clamp:2}:host([format="archive"]),:host([format="executable"]){--mds-file-preview-color:rgb(var(--label-amaranth-04));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04))}:host([format="attachment"]){--mds-file-preview-color:rgb(var(--tone-neutral-04));--mds-file-preview-icon-background:rgb(var(--tone-neutral-10));--mds-file-preview-icon-color:rgb(var(--tone-neutral-04))}:host([format="audio"]),:host([format="video"]){--mds-file-preview-color:rgb(var(--label-violet-04));--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-04))}:host([format="code"]),:host([format="data"]),:host([format="markup"]){--mds-file-preview-color:rgb(var(--label-yellow-04));--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-04))}:host([format="document"]),:host([format="certificate"]){--mds-file-preview-color:rgb(var(--label-orange-04));--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-04))}:host([format="email"]),:host([format="text"]){--mds-file-preview-color:rgb(var(--label-blue-04));--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-04))}:host([format="image"]){--mds-file-preview-color:rgb(var(--label-green-04));--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-04))}:host([format="slide"]){--mds-file-preview-color:rgb(var(--label-orchid-04));--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-04))}:host([format="spreadsheet"]){--mds-file-preview-color:rgb(var(--label-lime-04));--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-04))}:host([format="vector"]){--mds-file-preview-color:rgb(var(--label-aqua-04));--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-04))}:host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-09));--mds-file-preview-icon-color:rgb(var(--variant-primary-04))}:host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-09));--mds-file-preview-icon-color:rgb(var(--status-info-04));--mds-file-preview-color:rgb(var(--status-info-03))}:host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-09));--mds-file-preview-icon-color:rgb(var(--status-success-04));--mds-file-preview-color:rgb(var(--status-success-03))}:host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-09));--mds-file-preview-icon-color:rgb(var(--status-warning-04));--mds-file-preview-color:rgb(var(--status-warning-03))}:host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-09));--mds-file-preview-icon-color:rgb(var(--status-error-04));--mds-file-preview-color:rgb(var(--status-error-03))}:host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-09));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04));--mds-file-preview-color:rgb(var(--label-amaranth-03))}:host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-09));--mds-file-preview-icon-color:rgb(var(--label-aqua-04));--mds-file-preview-color:rgb(var(--label-aqua-03))}:host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-09));--mds-file-preview-icon-color:rgb(var(--label-blue-04));--mds-file-preview-color:rgb(var(--label-blue-03))}:host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-09));--mds-file-preview-icon-color:rgb(var(--label-green-04));--mds-file-preview-color:rgb(var(--label-green-03))}:host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-09));--mds-file-preview-icon-color:rgb(var(--label-lime-04));--mds-file-preview-color:rgb(var(--label-lime-03))}:host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-09));--mds-file-preview-icon-color:rgb(var(--label-orange-04));--mds-file-preview-color:rgb(var(--label-orange-03))}:host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-09));--mds-file-preview-icon-color:rgb(var(--label-orchid-04));--mds-file-preview-color:rgb(var(--label-orchid-03))}:host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-09));--mds-file-preview-icon-color:rgb(var(--label-sky-04));--mds-file-preview-color:rgb(var(--label-sky-03))}:host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-09));--mds-file-preview-icon-color:rgb(var(--label-violet-04));--mds-file-preview-color:rgb(var(--label-violet-03))}:host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-09));--mds-file-preview-icon-color:rgb(var(--label-yellow-04));--mds-file-preview-color:rgb(var(--label-yellow-03))}:host-context(.pref-contrast-more):host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-10));--mds-file-preview-icon-color:rgb(var(--variant-primary-02));--mds-file-preview-color:rgb(var(--variant-primary-01))}:host-context(.pref-contrast-more):host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-10));--mds-file-preview-icon-color:rgb(var(--status-info-02));--mds-file-preview-color:rgb(var(--status-info-01))}:host-context(.pref-contrast-more):host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-10));--mds-file-preview-icon-color:rgb(var(--status-success-02));--mds-file-preview-color:rgb(var(--status-success-01))}:host-context(.pref-contrast-more):host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-10));--mds-file-preview-icon-color:rgb(var(--status-warning-02));--mds-file-preview-color:rgb(var(--status-warning-01))}:host-context(.pref-contrast-more):host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-10));--mds-file-preview-icon-color:rgb(var(--status-error-02));--mds-file-preview-color:rgb(var(--status-error-01))}:host-context(.pref-contrast-more):host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02));--mds-file-preview-color:rgb(var(--label-amaranth-01))}:host-context(.pref-contrast-more):host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-02));--mds-file-preview-color:rgb(var(--label-aqua-01))}:host-context(.pref-contrast-more):host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-02));--mds-file-preview-color:rgb(var(--label-blue-01))}:host-context(.pref-contrast-more):host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-02));--mds-file-preview-color:rgb(var(--label-green-01))}:host-context(.pref-contrast-more):host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-02));--mds-file-preview-color:rgb(var(--label-lime-01))}:host-context(.pref-contrast-more):host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-02));--mds-file-preview-color:rgb(var(--label-orange-01))}:host-context(.pref-contrast-more):host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-02));--mds-file-preview-color:rgb(var(--label-orchid-01))}:host-context(.pref-contrast-more):host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10));--mds-file-preview-icon-color:rgb(var(--label-sky-02));--mds-file-preview-color:rgb(var(--label-sky-01))}:host-context(.pref-contrast-more):host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-02));--mds-file-preview-color:rgb(var(--label-violet-01))}:host-context(.pref-contrast-more):host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-02));--mds-file-preview-color:rgb(var(--label-yellow-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant="primary"][message]){--mds-file-preview-icon-background:rgb(var(--variant-primary-10));--mds-file-preview-icon-color:rgb(var(--variant-primary-02));--mds-file-preview-color:rgb(var(--variant-primary-01))}:host-context(.pref-contrast-system):host([variant="info"][message]){--mds-file-preview-icon-background:rgb(var(--status-info-10));--mds-file-preview-icon-color:rgb(var(--status-info-02));--mds-file-preview-color:rgb(var(--status-info-01))}:host-context(.pref-contrast-system):host([variant="success"][message]){--mds-file-preview-icon-background:rgb(var(--status-success-10));--mds-file-preview-icon-color:rgb(var(--status-success-02));--mds-file-preview-color:rgb(var(--status-success-01))}:host-context(.pref-contrast-system):host([variant="warning"][message]){--mds-file-preview-icon-background:rgb(var(--status-warning-10));--mds-file-preview-icon-color:rgb(var(--status-warning-02));--mds-file-preview-color:rgb(var(--status-warning-01))}:host-context(.pref-contrast-system):host([variant="error"][message]){--mds-file-preview-icon-background:rgb(var(--status-error-10));--mds-file-preview-icon-color:rgb(var(--status-error-02));--mds-file-preview-color:rgb(var(--status-error-01))}:host-context(.pref-contrast-system):host([variant="amaranth"][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02));--mds-file-preview-color:rgb(var(--label-amaranth-01))}:host-context(.pref-contrast-system):host([variant="aqua"][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10));--mds-file-preview-icon-color:rgb(var(--label-aqua-02));--mds-file-preview-color:rgb(var(--label-aqua-01))}:host-context(.pref-contrast-system):host([variant="blue"][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10));--mds-file-preview-icon-color:rgb(var(--label-blue-02));--mds-file-preview-color:rgb(var(--label-blue-01))}:host-context(.pref-contrast-system):host([variant="green"][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10));--mds-file-preview-icon-color:rgb(var(--label-green-02));--mds-file-preview-color:rgb(var(--label-green-01))}:host-context(.pref-contrast-system):host([variant="lime"][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10));--mds-file-preview-icon-color:rgb(var(--label-lime-02));--mds-file-preview-color:rgb(var(--label-lime-01))}:host-context(.pref-contrast-system):host([variant="orange"][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10));--mds-file-preview-icon-color:rgb(var(--label-orange-02));--mds-file-preview-color:rgb(var(--label-orange-01))}:host-context(.pref-contrast-system):host([variant="orchid"][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10));--mds-file-preview-icon-color:rgb(var(--label-orchid-02));--mds-file-preview-color:rgb(var(--label-orchid-01))}:host-context(.pref-contrast-system):host([variant="sky"][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10));--mds-file-preview-icon-color:rgb(var(--label-sky-02));--mds-file-preview-color:rgb(var(--label-sky-01))}:host-context(.pref-contrast-system):host([variant="violet"][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10));--mds-file-preview-icon-color:rgb(var(--label-violet-02));--mds-file-preview-color:rgb(var(--label-violet-01))}:host-context(.pref-contrast-system):host([variant="yellow"][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10));--mds-file-preview-icon-color:rgb(var(--label-yellow-02));--mds-file-preview-color:rgb(var(--label-yellow-01))}}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .preview{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .preview{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3)}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3)}}:host-context(.pref-contrast-more){--mds-file-preview-color:rgb(var(--tone-neutral-01));-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3)}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-file-preview-color:rgb(var(--tone-neutral-01));-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3)}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{j as mds_file_preview}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as d,h as e,H as a,g as i}from"./p-3a6b32e7.js";import{c as r}from"./p-8a1a6e56.js";import{m as o}from"./p-581a0bb5.js";import{K as s}from"./p-23e7e277.js";const n=class{constructor(e){t(this,e),this.changedEvent=d(this,"mdsDetailsChange",7),this.hasIcon=!0,this.km=new s,this.opened=!1,this.toggle=()=>{this.isOpened=!this.isOpened,this.changedEvent.emit(this.isOpened)},this.checkIcon=()=>{this.hasIcon=null!==this.host.querySelector(':scope > [slot="icon"]')},this.onSlotChangeHandler=()=>{this.checkIcon()}}validateOpened(t){this.isOpened=t}componentWillLoad(){this.isOpened=this.opened,this.checkIcon()}componentDidLoad(){var t;const d=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".header");this.km.addElement(d),this.km.attachClickBehavior()}disconnectedCallback(){this.km.detachClickBehavior()}render(){return e(a,{key:"9614e2cbbeecbf320831181da5165a2cd46866fe"},e("div",{key:"1afe17a23472c2a621e31d497a53b335306dae40",class:r("icon",this.hasIcon?"":"icon--hidden"),onClick:this.toggle},e("slot",{key:"665ad16cf878150afc55749daa52bb083223bb6c",name:"icon",onSlotchange:this.onSlotChangeHandler})),e("div",{key:"b7431aa2dc87e4d953e08abecb80d72397558e4c",class:"content"},e("header",{key:"142622df46b291a20963c3d1c97d0d6fbf20f92f",class:"header",part:"header",tabindex:"0",onClick:this.toggle},e("div",{key:"d32359db6216bf25774b842444021c233487a443",class:"title"},e("slot",{key:"3d2df7c901a215dd9d272ffb6fdc25a9b72f7261",name:"title"})),e("i",{key:"5f310f2ceb2fe7f97ca0951ba99c1b975e15af82",class:r("helper-icon",this.isOpened&&"opened"),innerHTML:o})),e("div",{key:"4f78adbdd09b9dfb16fa5fb5375a28b14da9600b",class:r("details",this.isOpened&&"opened")},e("div",{key:"f1772f0b58c1f7c285c69ba01f2a039eebdb936d",class:"content-expander",part:"content"},e("slot",{key:"6e6036c45a73e6d102c79ab50954444b49118449"}),e("div",{key:"4b3c2145ff7e65f4716ed5745014aacd579f2347",class:"actions"},e("slot",{key:"55c50cd1c76823af992ea5a22704bf42a417b574",name:"action"}))))))}get host(){return i(this)}static get watchers(){return{opened:["validateOpened"]}}};n.style="@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-details-duration:300ms;--mds-details-icon-color:rgb(var(--variant-primary-04));--mds-details-helper-icon-color:rgb(var(--tone-neutral-03));gap:0.5rem;-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex}.content{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.content:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.content{display:grid}.details{gap:1rem;padding-top:0rem;opacity:0;display:grid;grid-template-rows:0fr;overflow:hidden;pointer-events:none;-webkit-transition-duration:var(--mds-details-duration);transition-duration:var(--mds-details-duration);-webkit-transition-property:grid-template-rows, opacity, padding;transition-property:grid-template-rows, opacity, padding;transition-property:grid-template-rows, opacity, padding, -ms-grid-rows}.content-expander{gap:1rem;display:grid;min-height:0}.details.opened{padding-top:1rem;grid-template-rows:1fr;opacity:1;overflow:visible;pointer-events:auto}.header{gap:0.5rem;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex}.icon{cursor:pointer;fill:var(--mds-details-icon-color)}.icon--hidden{display:none}.title{cursor:pointer}.helper-icon{display:-ms-flexbox;display:flex}.helper-icon svg{aspect-ratio:1/1;height:100%;width:100%}.helper-icon{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);cursor:pointer;fill:var(--mds-details-helper-icon-color);-ms-flex-negative:0;flex-shrink:0;rotate:0deg;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform}.helper-icon.opened{rotate:180deg}.actions{gap:1rem;display:-ms-flexbox;display:flex}:host-context(.pref-animation-reduce){--mds-details-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-details-duration:0s}}:host-context(.pref-contrast-more){--mds-details-icon-color:rgb(var(--variant-primary-03));--mds-details-helper-icon-color:rgb(var(--tone-neutral-02))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-details-icon-color:rgb(var(--variant-primary-03));--mds-details-helper-icon-color:rgb(var(--tone-neutral-02))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";export{n as mds_details}
|
|
1
|
+
import{r as t,c as d,h as e,H as a,g as i}from"./p-3a6b32e7.js";import{c as r}from"./p-8a1a6e56.js";import{m as o}from"./p-581a0bb5.js";import{K as s}from"./p-23e7e277.js";const n=class{constructor(e){t(this,e),this.changedEvent=d(this,"mdsDetailsChange",7),this.hasIcon=!0,this.km=new s,this.opened=!1,this.toggle=()=>{this.isOpened=!this.isOpened,this.changedEvent.emit(this.isOpened)},this.checkIcon=()=>{this.hasIcon=null!==this.host.querySelector(':scope > [slot="icon"]')},this.onSlotChangeHandler=()=>{this.checkIcon()}}validateOpened(t){this.isOpened=t}componentWillLoad(){this.isOpened=this.opened,this.checkIcon()}componentDidLoad(){var t;const d=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".header");this.km.addElement(d),this.km.attachClickBehavior()}disconnectedCallback(){this.km.detachClickBehavior()}render(){return e(a,{key:"d6184cacb2170c6c13d221199c13b52f282a2230"},e("div",{key:"aa7a8d55a1baeee4dbbdccc7ccd6b0a0c1bf7599",class:r("icon",this.hasIcon?"":"icon--hidden"),onClick:this.toggle},e("slot",{key:"a355f1df6eb85fb599885c2762949823d86f16d8",name:"icon",onSlotchange:this.onSlotChangeHandler})),e("div",{key:"3035feb250fb7c8a963d1578ef79e701edbfe306",class:"content"},e("header",{key:"e9449d592fcc69356af4030b98150ca02a2a6059",class:"header",part:"header",tabindex:"0",onClick:this.toggle},e("div",{key:"ca44725f199e7591f59d6415f6cabd5bbf233dc7",class:"title"},e("slot",{key:"40f0e20b99b36c15be9843402b7986c96e6de25d",name:"title"})),e("i",{key:"294dde9c5bd6dc5d8d855ea77a733e4c40cf3dd2",class:r("helper-icon",this.isOpened&&"opened"),innerHTML:o})),e("div",{key:"efb1acceefa5dcad28c05243c244062bbd959614",class:r("details",this.isOpened&&"opened")},e("div",{key:"05fad0bbd7dd9070e2f544ab74f98e2732a5107e",class:"content-expander",part:"content"},e("slot",{key:"f772008113a771c1be4eb9a188bc5b4d8c2a03f6"}),e("div",{key:"5385226217cf9ecb12e3b4143574eab79087e8b5",class:"actions"},e("slot",{key:"27ce04a70a4c7a412a08401b57d5f73377f21f86",name:"action"}))))))}get host(){return i(this)}static get watchers(){return{opened:["validateOpened"]}}};n.style="@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-details-duration:300ms;--mds-details-icon-color:rgb(var(--variant-primary-04));--mds-details-helper-icon-color:rgb(var(--tone-neutral-03));gap:0.5rem;-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex}.content{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.content:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.content{display:grid}.details{gap:1rem;padding-top:0rem;opacity:0;display:grid;grid-template-rows:0fr;overflow:hidden;pointer-events:none;-webkit-transition-duration:var(--mds-details-duration);transition-duration:var(--mds-details-duration);-webkit-transition-property:grid-template-rows, opacity, padding;transition-property:grid-template-rows, opacity, padding;transition-property:grid-template-rows, opacity, padding, -ms-grid-rows}.content-expander{gap:1rem;display:grid;min-height:0}.details.opened{padding-top:1rem;grid-template-rows:1fr;opacity:1;overflow:visible;pointer-events:auto}.header{gap:0.5rem;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex}.icon{cursor:pointer;fill:var(--mds-details-icon-color)}.icon--hidden{display:none}.title{cursor:pointer}.helper-icon{display:-ms-flexbox;display:flex}.helper-icon svg{aspect-ratio:1/1;height:100%;width:100%}.helper-icon{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);cursor:pointer;fill:var(--mds-details-helper-icon-color);-ms-flex-negative:0;flex-shrink:0;rotate:0deg;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform}.helper-icon.opened{rotate:180deg}.actions{gap:1rem;display:-ms-flexbox;display:flex}:host-context(.pref-animation-reduce){--mds-details-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-details-duration:0s}}:host-context(.pref-contrast-more){--mds-details-icon-color:rgb(var(--variant-primary-03));--mds-details-helper-icon-color:rgb(var(--tone-neutral-02))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-details-icon-color:rgb(var(--variant-primary-03));--mds-details-helper-icon-color:rgb(var(--tone-neutral-02))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";export{n as mds_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as r,h as a,H as e,g as d}from"./p-3a6b32e7.js";import{m as i}from"./p-d2f61b1f.js";import{D as o}from"./p-3833e170.js";import{L as n}from"./p-2d77deaf.js";import"./p-85aa8e05.js";const s=class{constructor(a){t(this,a),this.validationEvent=r(this,"mdsInputValidation",7),this.valueChange=r(this,"mdsInputDateSelect",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.isSlotted=!1,this.empty=void 0,this.t=new n({el:{},en:{},es:{},it:{}}),this.touched=!1,this.value="",this.variant="primary",this.min=null,this.max=null,this.delay=500,this.disabled=!1,this.readonly=!1,this.required=!1,this.calendarKey=0,this.hasFocus=!1,this.handleChange=t=>{const r=t.target;this.touched=!0,r.value&&(this.value=r.value),this.validateValue(r.validity.badInput)},this.onBlur=t=>{const r=t.target;this.hasFocus=!1,this.value=r.value,this.validateValue(r.validity.badInput)},this.onFocus=t=>{const r=t.target;this.hasFocus=!0,this.readonly&&setTimeout((()=>{r.select()}),10)}}async updateLang(){this.language=this.t.lang(this.host)}handleValue(){this.valueChange.emit(this.value),this.validateValue()}validateValue(t=!1){const r=o.fromISO(this.value),a=Boolean(this.value),e=a&&!r.isValid,d=this.required&&!a,i=r.isValid&&(this.max&&o.fromISO(this.max)<r||this.min&&o.fromISO(this.min)>r);t||e||d||i?(this.isValid=!1,this.variant="error",this.internals.setFormValue(null),this.empty=!(!t&&!e)||void 0):(this.isValid=!0,this.variant="primary",this.internals.setFormValue(this.value),this.empty=void 0),this.validationEvent.emit(this.isValid)}async focusInput(){var t;(null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input")).focus()}async setValue(t){return this.value=t,this.validateValue(),Promise.resolve()}async getErrors(){return Promise.resolve(this.isValid?null:{error:""})}formResetCallback(){this.internals.setFormValue("")}componentWillLoad(){if(this.isSlotted=!!this.host.getAttribute("slot"),this.value=this.value||"",this.language=this.t.lang(this.host),this.min&&this.max){const t=o.fromISO(this.min);o.fromISO(this.max)<t&&(this.max=this.min)}this.validateValue()}render(){return a(e,{key:"52c3166d9b5401776ff61e0e535571896a9d6ba8",empty:this.empty},a("input",{key:"a4f3f1c9c3602bb977677aa3063f2968c70adf33",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&a("div",{key:"e002daf5efa4367d1519acfb566ce4faf61d4fcd",class:"action-open-calendar-wrapper"},a("mds-button",{key:"e9c6f3191dc6fcb226a3f08d8526d44900816ba5",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"quiet",icon:i,onClick:()=>{this.calendarKey+=1}})),a("mds-input-tip",{key:"b4a4308288531dfb0d3b890393d5243b4687d459",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&a("mds-input-tip-item",{key:"4bc411c37bb5da3465443b72db0c7915c5bb5afd",expanded:!0,variant:"disabled"}),this.readonly&&a("mds-input-tip-item",{key:"6ba171f9f821354bcfbd7d9e8574dd5681a30a9b",expanded:!0,variant:"readonly"}),this.required&&a("mds-input-tip-item",{key:"4f69ccf812baee84c9831f9ce3ac57d74f8a7038",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&a("mds-dropdown",{key:"79f6ffd4fe2f708c9786904406e700c921200356",placement:"bottom-end","auto-placement":!1,ref:t=>this.dropdownRef=t,target:"#calendar-dropdown"},a("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:!1,lang:this.language,onMdsCalendarChange:t=>{if(this.value=t.detail.startDate,0===this.delay)return;const{dropdownRef:r}=this;r&&setTimeout((()=>{r.visible=!1}),this.delay)},startDate:this.value},this.min?{min:this.min}:{},this.max?{max:this.max}:{}))))}static get formAssociated(){return!0}get host(){return d(this)}static get watchers(){return{value:["handleValue"]}}};s.style='@tailwind utilities; :host{--mds-input-date-background:rgb(var(--tone-neutral));--mds-input-date-field-background-empty:rgb(var(--status-error-10));--mds-input-date-field-color-empty:rgb(var(--status-error-06));--mds-input-date-icon-color:var(--mds-input-date-variant-color);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color) / 0.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-variant-color) / 0.06);--mds-input-date-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.input::-webkit-calendar-picker-indicator{-webkit-appearance:none;appearance:none;-moz-appearance:textfield;display:none}.input{min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:transparent;border:0;border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:-moz-min-content;width:-webkit-min-content;width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty);color:var(--mds-input-date-field-color-empty)}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{border-radius:0.5rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:3rem;background-color:var(--mds-input-date-background);-webkit-box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);min-height:3rem;width:100%}:host(:focus-within) .input{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input:focus{outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input::-moz-placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-04))}.input:-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--tone-neutral-10))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-webkit-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled:-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05))}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}:host([disabled]:not([disabled="false"])) .action-open-calendar{-webkit-transform:translate(0.625rem, 0.5rem);transform:translate(0.625rem, 0.5rem)}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:1rem}}:host{--mds-input-date-icon-color:var(--variant-primary-03);--mds-input-date-variant-color:0 0 0}:host(:focus-within){--mds-input-date-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-icon-color:var(--status-info-05);--mds-input-date-tip-background:var(--status-info-05);--mds-input-date-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-icon-color:var(--status-info-04);--mds-input-date-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-icon-color:var(--status-success-05);--mds-input-date-tip-background:var(--status-success-05);--mds-input-date-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-icon-color:var(--status-success-04);--mds-input-date-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-icon-color:var(--status-warning-05);--mds-input-date-tip-background:var(--status-warning-05);--mds-input-date-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-icon-color:var(--status-warning-04);--mds-input-date-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-icon-color:var(--status-error-05);--mds-input-date-tip-background:var(--status-error-05);--mds-input-date-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-icon-color:var(--status-error-04);--mds-input-date-variant-color:var(--status-error-05)}';export{s as mds_input_date}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{s(t.next(e))}catch(e){i(e)}}function l(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(o,l)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(n=0)),n)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js","./p-c95d3b63.system.js","./p-0b49b32e.system.js","./p-8982c443.system.js","./p-d68089ba.system.js","./p-21b1acec.system.js"],(function(e){"use strict";var r,n,t,a,i,o,l,s,c;return{setters:[function(e){r=e.r;n=e.c;t=e.h;a=e.H;i=e.g},function(e){o=e.D},function(e){l=e.L},function(e){s=e.s},function(e){c=e.c},function(){}],execute:function(){var d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>';var h='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>';var u=":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;--mds-calendar-select-month-or-year-height:2.25rem;--mds-calendar-select-month-or-year-width:14rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between;min-width:0}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{-ms-flex-align:stretch;align-items:stretch;background-color:rgb(var(--tone-neutral-09));block-size:var(--mds-calendar-select-month-or-year-height);border-radius:var(--mds-calendar-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:0 0 var(--mds-calendar-select-month-or-year-width);flex:0 0 var(--mds-calendar-select-month-or-year-width);height:var(--mds-calendar-select-month-or-year-height);-ms-flex-pack:start;justify-content:flex-start;inline-size:var(--mds-calendar-select-month-or-year-width);max-block-size:var(--mds-calendar-select-month-or-year-height);max-height:var(--mds-calendar-select-month-or-year-height);max-inline-size:var(--mds-calendar-select-month-or-year-width);min-block-size:var(--mds-calendar-select-month-or-year-height);min-height:var(--mds-calendar-select-month-or-year-height);min-inline-size:var(--mds-calendar-select-month-or-year-width);overflow:hidden}.action-month,.action-year{--mds-button-radius:0;-ms-flex-item-align:stretch;align-self:stretch;block-size:100%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:0.5rem;padding-right:0.5rem}.action-month{-ms-flex:1 1 auto;flex:1 1 auto;min-width:0}.action-year{-ms-flex:0 0 4.5rem;flex:0 0 4.5rem}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{-ms-flex-align:center;align-items:center;aspect-ratio:1;min-height:auto;padding:0}.month-view{display:grid}.month-view__days-names,.month-view__cells{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7, minmax(1px, 100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3, minmax(1px, 100%));min-width:0}";var m=u;var v=e("mds_calendar",function(){function e(e){var t=this;r(this,e);this.datesEmitter=n(this,"mdsCalendarChange",7);this.navigationEmitter=n(this,"mdsCalendarNavigate",7);this.hoverEmitter=n(this,"mdsCalendarHover",7);this.checkPreselectionsEmitter=n(this,"mdsCalendarPreselect",7);this.hasPreselection=false;this.currentDate=o.now();this.weekDaysinMonth=[];this.weekdays=[];this.startDateIdentifier=null;this.endDateIdentifier=null;this.isFirstClick=true;this.currentView="calendar";this.selectedYear=this.currentDate.year;this.t=new l({it:{},en:{},es:{},el:{}});this.rangePicker=true;this.showPreviousButton=true;this.showNextButton=true;this.disableMonthYearSelection=false;this.showPreselection=false;this.viewDate=null;this.hoverDate=null;this.startDate=null;this.endDate=null;this.min=null;this.max=null;this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.currentMonth="";this.currentYear="";this.handleMouseOver=function(e){var r=e.target;if(!r.matches("mds-calendar-cell")||!t.rangePicker||!t.internalStartDate||t.internalEndDate){return}var n=r.getAttribute("date");if(n){t.hoverEmitter.emit({hoverDate:n})}};this.handleMouseLeave=function(){if(!t.rangePicker||!t.internalStartDate||t.internalEndDate||!t.hoverDate){return}t.hoverEmitter.emit({hoverDate:null})};this.handleMonthActionClick=function(e){e.stopPropagation();if(t.disableMonthYearSelection){e.preventDefault();return}t.currentView=t.currentView==="months"?"calendar":"months";requestAnimationFrame((function(){t.updateCalendar().then((function(){return t.setDates()}))}))};this.handleYearActionClick=function(e){e.stopPropagation();if(t.disableMonthYearSelection){e.preventDefault();return}t.currentView=t.currentView==="years"?"calendar":"years";requestAnimationFrame((function(){t.updateCalendar().then((function(){return t.setDates()}))}))}}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.handleStartDate=function(e){if(e!==null&&e!==""){this.internalStartDate=s(e===null||e===void 0?void 0:e.toString());this.startDateTime=o.fromISO(this.internalStartDate);this.startDateIdentifier=this.startDateTime.toISODate();if(this.internalEndDate){var r=o.fromISO(this.internalEndDate);if(this.startDateTime>r){console.warn("startDate is after endDate, swapping values");return}}else if(this.rangePicker){this.isFirstClick=false}this.updateDates()}else if(e===null||e===""){this.internalStartDate=null;this.startDateIdentifier=null;this.startDateTime=null;this.isFirstClick=true;this.updateDates()}};e.prototype.handleEndDate=function(e){if(!this.rangePicker){console.warn("rangePicker is disabled, endDate cannot be set");this.internalEndDate=null}else if(e!==null&&e!==""){this.internalEndDate=s(e===null||e===void 0?void 0:e.toString());this.endDateTime=o.fromISO(this.internalEndDate);this.endDateIdentifier=this.endDateTime.toISODate();if(this.internalStartDate){var r=o.fromISO(this.internalStartDate);if(r>this.endDateTime){console.warn("startDate is after endDate, swapping values");return}}this.updateDates()}else if(e===null||e===""){this.internalEndDate=null;this.endDateIdentifier=null;this.endDateTime=null;this.updateDates()}};e.prototype.handleViewDate=function(e){var r=this;if(e!==null&&e!==""){var n=o.fromISO(e.toString());if(n.isValid){this.currentDate=n;this.updateCalendar().then((function(){requestAnimationFrame((function(){return r.setDates()}))}))}}};e.prototype.handleHoverDate=function(){var e=this;requestAnimationFrame((function(){return e.setDates()}))};e.prototype.componentWillLoad=function(){var e,r;this.language=this.t.lang(this.host);if(this.viewDate){var n=o.fromISO(this.viewDate.toString());if(n.isValid){this.currentDate=n}}else if(this.internalStartDate){this.internalStartDate=s((e=this.internalStartDate)===null||e===void 0?void 0:e.toString());this.startDateTime=o.fromISO(this.internalStartDate);if(this.startDateTime.isValid){this.currentDate=this.startDateTime}}if(this.internalEndDate){this.internalEndDate=s((r=this.internalEndDate)===null||r===void 0?void 0:r.toString());this.endDateTime=o.fromISO(this.internalEndDate)}this.updateCalendar()};e.prototype.componentDidLoad=function(){var e,r,n,t,a;this.hasPreselection=((e=this.host)===null||e===void 0?void 0:e.querySelector(".date-preselection--has-preselection"))!==null;(n=(r=this.host)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.addEventListener("mouseover",this.handleMouseOver);(a=(t=this.host)===null||t===void 0?void 0:t.shadowRoot)===null||a===void 0?void 0:a.addEventListener("mouseleave",this.handleMouseLeave);this.setDates()};e.prototype.disconnectedCallback=function(){var e,r,n,t;(r=(e=this.host)===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.removeEventListener("mouseover",this.handleMouseOver);(t=(n=this.host)===null||n===void 0?void 0:n.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mouseleave",this.handleMouseLeave)};e.prototype.updateCurrentDate=function(e){return __awaiter(this,void 0,void 0,(function(){var r=this;return __generator(this,(function(n){switch(n.label){case 0:this.currentDate=o.fromISO(e);return[4,this.updateCalendar()];case 1:n.sent();return[4,new Promise((function(e){requestAnimationFrame((function(){r.setDates();e()}))}))];case 2:n.sent();return[2,Promise.resolve()]}}))}))};e.prototype.updateDates=function(){var e=this;this.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))};e.prototype.updateCalendar=function(){return __awaiter(this,void 0,void 0,(function(){var e;var r=this;return __generator(this,(function(n){try{e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map((function(n,t){return e.setLocale(r.language).plus({days:t}).toFormat("ccc")}));this.calculateWeekDaysInMonth();this.currentMonth=this.currentDate.setLocale(this.language).toFormat("MMMM");this.currentMonthNumber=this.currentDate.month;this.currentYear=this.currentDate.toFormat("yyyy")}catch(e){console.error("Error while updating the calendar:",e)}return[2]}))}))};e.prototype.setDates=function(){var e=this.host;if(!e)return;var r=e.shadowRoot;if(!r)return;var n=r.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.rangePicker){if(this.hoverDate&&!this.internalEndDate){this.setHoverSelection(n,r)}else{this.setRangeSelection(n,r)}}else{this.setSingleSelection(n,r)}};e.prototype.clearSelectionState=function(e){e.forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))};e.prototype.setRangeSelection=function(e,r){var n=this;this.clearSelectionState(e);if(!this.internalStartDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());if(!this.internalEndDate){this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false;var t=r.querySelectorAll("mds-calendar-cell");t.forEach((function(e){if(e.getAttribute("date")===n.startDateTime.toFormat("yyyy-MM-dd")){e.setAttribute("selection","single");e.setAttribute("preview","true")}}));return}this.endDateTime=o.fromISO(this.internalEndDate.toString());this.startDateIdentifier=this.startDateTime.toISODate();this.endDateIdentifier=this.endDateTime.toISODate();var a=r.querySelectorAll("mds-calendar-cell");if(a){var i=void 0;for(var l=0;l<a.length;l++){var s=a[l].getAttribute("date");if(s){var c=o.fromISO(s);if(c.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){a[l].setAttribute("selection","start")}if(c.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")){if(this.startDateTime.equals(this.endDateTime)){a[l].setAttribute("selection","single")}else{a[l].setAttribute("selection","end")}}i=c>this.startDateTime&&c<this.endDateTime;if(i){a[l].setAttribute("selection","middle")}}}}};e.prototype.setHoverSelection=function(e,r){this.clearSelectionState(e);if(!this.internalStartDate||!this.hoverDate){this.setRangeSelection(e,r);return}var n=o.fromISO(this.internalStartDate);var t=o.fromISO(this.hoverDate);if(!n.isValid||!t.isValid){this.setRangeSelection(e,r);return}var a=n<=t;var i=Array.from(r.querySelectorAll("mds-calendar-cell"));i.forEach((function(e){var r=e.getAttribute("date");if(!r)return;var i=o.fromISO(r);if(!i.isValid)return;var l=a?i>=n&&i<=t:i>=t&&i<=n;if(!l)return;e.setAttribute("preview","true");var s="middle";if(n.equals(t)&&i.equals(n)){s="single"}else if(i.equals(n)){s=a?"start":"end"}else if(i.equals(t)){s=a?"end":"start"}e.setAttribute("selection",s)}))};e.prototype.setSingleSelection=function(e,r){this.clearSelectionState(e);if(!this.internalStartDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());var n=r.querySelectorAll("mds-calendar-cell");if(n){for(var t=0;t<n.length;t++){var a=n[t].getAttribute("date");if(a){var i=o.fromISO(a);if(i.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){n[t].setAttribute("selection","single")}}}}};e.prototype.changeMonth=function(e){var r=this;this.currentDate=this.currentDate.plus({months:e});this.updateCalendar().then((function(){requestAnimationFrame((function(){return r.setDates()}))}));this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})};e.prototype.calculateWeekDaysInMonth=function(){var e=this.currentDate.startOf("month");var r=this.currentDate.endOf("month");var n=[];var t=e.weekday;var a=t-1;var i=e.minus({days:a});for(var o=i;o<e;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}for(var o=e;o<=r;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:true})}var l=r.weekday;var s=7-l;var c=r.plus({days:1});for(var o=c;o<c.plus({days:s});o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}this.weekDaysinMonth=n};e.prototype.handleRange=function(e,r){var n=this;var t,a;var i=this.startDate||this.host.getAttribute("start-date");if(this.rangePicker&&i&&!this.endDate&&!this.internalEndDate&&this.isFirstClick){this.internalStartDate=s(i.toString());this.startDateTime=o.fromISO(this.internalStartDate);this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false}var l=function(){n.internalStartDate=null;n.internalEndDate=null;n.startDateIdentifier=null;n.startDateTime=null;n.endDateIdentifier=null;n.endDateTime=null;n.isFirstClick=true;var e=n.host;requestAnimationFrame((function(){var r;(r=e===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))}))};if(this.startDateIdentifier&&this.endDateIdentifier){l()}if(this.isFirstClick){this.startDateIdentifier=r.toISODate();this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;var c=this.host;requestAnimationFrame((function(){var e;(e=c===null||c===void 0?void 0:c.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}))}));requestAnimationFrame((function(){e.setAttribute("selection","single");e.setAttribute("preview","true")}));this.datesEmitter.emit({startDate:this.internalStartDate});return}var d=this.host;var h=(t=d===null||d===void 0?void 0:d.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar-cell");var u=Array.from(h!==null&&h!==void 0?h:[]).findIndex((function(e){return e.getAttribute("date")===n.startDateIdentifier}));var m=Array.from(h!==null&&h!==void 0?h:[]).indexOf(e);if(this.startDateIdentifier&&o.fromISO(this.startDateIdentifier)<o.fromISO(e.getAttribute("date"))){this.endDateIdentifier=e.getAttribute("date");this.endDateTime=r;this.internalEndDate=this.endDateTime.toISO().split("T")[0]}else{this.endDateIdentifier=this.startDateIdentifier;this.endDateTime=this.startDateTime;this.internalEndDate=this.internalStartDate;this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0]}(a=d===null||d===void 0?void 0:d.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar-cell[preview]").forEach((function(e){e.removeAttribute("preview")}));if(h&&u!==-1){for(var v=u+1;v<m;v++){h[v].setAttribute("selection","middle")}}if(this.internalStartDate&&this.internalEndDate){this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});this.checkPreselectionsEmitter.emit()}};e.prototype.handleSingleSelection=function(e,r){var n;var t=this.host;(n=t===null||t===void 0?void 0:t.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}));this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;e.setAttribute("selection","single");if(this.internalStartDate){this.datesEmitter.emit({startDate:this.internalStartDate})}};e.prototype.render=function(){var e=this;return t(a,{key:"271209054e3f86d3c167ab6f2d84c801619f7fdb"},t("div",{key:"084902141f92f15f4b62ec34fc826b939f0ff05b",class:c("calendar-preselection",(this.showPreselection||this.hasPreselection)&&"calendar-preselection--has-preselection")},t("slot",{key:"986c1168978cc658b3a7409adafac5651cae7c77",name:"preselection"})),t("div",{key:"bbb9882d52d1fd89758704604c3a52016535561e",class:"calendar-view"},t("nav",{key:"9f993a0c44e484303716cef6530d9d95e84226a1"},this.showPreviousButton&&t("mds-button",{key:"f78027217275a9f0896fdfaa2ed99fd10064f581",class:"action-back",icon:h,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(-1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear-=10}else{r.stopPropagation()}}}),t("div",{key:"e2916642b7072db24f8e800fb033260a9c2a3dcd",class:"select-month-or-year"},(this.currentView==="calendar"||this.currentView==="months")&&t("mds-button",{key:"112c7d69205f2c57587a4ba12ecd7b445ef66170",class:"action-month",truncate:"none",variant:"dark",tone:"quiet",onClick:this.handleMonthActionClick},this.currentMonth),(this.currentView==="calendar"||this.currentView==="years")&&t("mds-button",{key:"91f990cfdafb34e3983f7e375e695dce5fde11fd",class:"action-year",truncate:"none",variant:"dark",tone:"quiet",onClick:this.handleYearActionClick},this.currentYear)),this.showNextButton&&t("mds-button",{key:"d297451100785c186b8ae054fa0203007f218cb7",class:"action-forward",icon:d,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear+=10}else{r.stopPropagation()}}})),this.currentView==="calendar"&&t("section",{key:"bf8eba9f66065c91d0f4feac4ddbc93c1fc63ad4",class:"month-view"},t("header",{key:"c90bf7ed93129ab8bfc3ecaab99fb2d012adab39",class:"month-view__days-names"},this.weekdays.map((function(e){return t("mds-button",{class:"week-day-name",variant:"dark",tone:"quiet"},e)}))),t("div",{key:"6b5fb95ad179b38fefe0986b48a3a12a287ccf61",class:"month-view__cells"},this.weekDaysinMonth.map((function(r,n){return t("mds-calendar-cell",{key:n,today:o.now().toFormat("yyyy-MM-dd")===r.date.toFormat("yyyy-MM-dd"),date:r.date.toFormat("yyyy-MM-dd"),month:r.isCurrentMonth?"current":"other",disabled:function(){if(e.min&&e.min!==""&&r.date<o.fromISO(e.min)){return true}if(e.max&&e.max!==""&&r.date>o.fromISO(e.max)){return true}return undefined}(),onClick:function(n){n.stopPropagation();var t=n.currentTarget;if(e.rangePicker)e.handleRange(t,r.date);else e.handleSingleSelection(t,r.date)},title:r.date.setLocale(e.language).toFormat("cccc d LLLL").replace(/^./,(function(e){return e.toUpperCase()}))},r.date.toFormat("dd"))})))),this.currentView==="months"&&t("section",{key:"5353ed4497b33fb5260cf6c2d1f087b228a0cda3",class:"month-selection"},t("header",{key:"70247928e4a74589900b0acd3b8d02686e41a4d1",class:"month-view__month-names"},Array.from({length:12}).map((function(r,n){var a=o.local().set({month:n+1}).setLocale(e.language).toFormat("MMMM");return t("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({month:n+1});e.currentMonth=e.currentDate.toFormat("MMMM");e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},a)})))),this.currentView==="years"&&t("section",{key:"99dca1c5f3ce083cb3bb117ce8bb705faa83e19c",class:"year-selection"},t("header",{key:"7d479a8c05815560306486bf0825a521c971a6e4",class:"month-view__years"},Array.from({length:12}).map((function(r,n){var a=e.selectedYear+n;return t("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({year:a});e.currentYear=a.toString();e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},a)}))))))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{startDate:["handleStartDate"],endDate:["handleEndDate"],viewDate:["handleViewDate"],hoverDate:["handleHoverDate"]}},enumerable:false,configurable:true});return e}());v.style=m;var b=':host{--mds-calendar-cell-background:transparent;--mds-calendar-cell-boundaries-background:transparent;--mds-calendar-cell-boundaries-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-boundaries-padding:0.25rem;--mds-calendar-cell-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-other-month-background:transparent;--mds-calendar-cell-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-disabled-background:transparent;--mds-calendar-cell-disabled-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-weekend-background:transparent;--mds-calendar-cell-weekend-color:rgb(var(--tone-neutral-06));--mds-calendar-cell-size:3rem;--mds-calendar-cell-selection-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-selection-week-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-preselection-today-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-today-color:rgb(var(--variant-primary-03));--mds-calendar-cell-preselection-current-month-background:rgb(var(--variant-primary-08));--mds-calendar-cell-preselection-current-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-preselection-other-month-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-other-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-background:rgb(var(--variant-primary-04));--mds-calendar-cell-selection-current-month-color:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-other-month-background:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-other-month-color:rgb(var(--tone-neutral-04));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--tone-neutral-05));aspect-ratio:1 / 1;display:-ms-flexbox;display:flex;padding:var(--mds-calendar-cell-boundaries-padding);position:relative}:host([month="other"]){visibility:var(--mds-calendar-cell-other-month-visibility, hidden)}.inner-dot{aspect-ratio:1 / 1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);display:-ms-flexbox;display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background);color:var(--mds-calendar-cell-color);inset:0;position:absolute;z-index:0}.action{-ms-flex-align:center;align-items:center;aspect-ratio:1 / 1;background-color:transparent;border-radius:0;color:var(--mds-calendar-cell-color);display:-ms-flexbox;display:flex;inset:calc(var(--mds-calendar-cell-gap) * -1);-ms-flex-pack:center;justify-content:center;min-height:0;min-width:0;padding:0;position:absolute;width:auto;z-index:2}:host([selection][orientation="horizontal"]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap) * -1);margin-right:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="horizontal"]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection="end"][orientation="horizontal"]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection][orientation="vertical"]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap) * -1);margin-top:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="vertical"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection="end"][orientation="vertical"]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation="vertical"]:not([selection="start"],[selection="end"])) .area-background{border-radius:0}:host(:nth-child(7n - 6)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n - 6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius)}:host([selection][orientation="horizontal"]:nth-child(7n - 6)) .area-background{margin-left:0}:host([selection][orientation="horizontal"]:nth-child(7n)) .area-background{margin-right:0}:host([selection="single"][orientation="horizontal"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n - 1)),:host(:nth-child(7n)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color);--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background)}:host([month="other"]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color);--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color);--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color)}:host([selection][month="current"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color)}:host([selection][month="current"]:nth-child(7n - 1)),:host([selection][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color)}:host([selection="start"][month="current"]:nth-child(7n - 1)),:host([selection="end"][month="current"]:nth-child(7n - 1)),:host([selection="start"][month="current"]:nth-child(7n)),:host([selection="end"][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection][month="other"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color)}:host([selection="start"][month="current"]),:host([selection="end"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color)}:host([selection="start"][month="other"]),:host([selection="end"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color)}:host([selection][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color)}:host([selection][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color)}:host([selection="start"][month="current"][preview]:not([preview="false"])),:host([selection="end"][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="start"][month="other"][preview]:not([preview="false"])),:host([selection="end"][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}:host([selection="single"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="single"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}';var f=b;var g=e("mds_calendar_cell",function(){function e(e){r(this,e);this.month="current";this.orientation="horizontal";this.preview=false;this.disabled=undefined;this.today=undefined}e.prototype.render=function(){return t(a,{key:"09389f01297dc7e38499fc5783fbe7b5be73cee5"},t("div",{key:"6501ca7b41eed8696e60156abf53f0cbbecae8d5",class:"inner-dot"}),t("div",{key:"34f8e50ba0032d7d9d3dd63aafc5ac536f1a0adf",class:"area-background"}),t("mds-button",{key:"bedafcb2817bfeac6ebee9fa3e0887a41a1bce9b",class:"action",variant:"dark",tone:"quiet",disabled:this.disabled},t("slot",{key:"197f10e47b61a6c6140774cd3e2443df61d9e4a4"})))};return e}());g.style=f}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-2aef517c.system.js"],(function(t){"use strict";var e,a,o,i;return{setters:[function(t){e=t.r;a=t.h;o=t.H;i=t.g}],execute:function(){var r={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}};var s=2147483647;var n=function(t){return t*16807%s};var d=function(t){return n(t)/s};var h=function(t){return n(t)};var m=function(t){if(t===void 0){t=1}var e=t<1?1:t;var a=function(){e=h(e);return e};return{random:function(){return a()},randomFloat:function(){return d(a())},range:function(t,e){var o=t-.4999;var i=e+.4999;return Math.round(o+(i-o)*d(a()))},rangeFloat:function(t,e){return t+(e-t)*d(a())}}};var y=function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))};var l=function(){return(Math.round(Math.random())-.5)*2};var f=function(t,e){return function(a){if(a>e)return t+(a-e);if(a<t)return e+(a-t);return a}};var g=m();var c=function(t,e){return function(){return(t+g.range(0,e))*l()}};var p=function(t,e){return function(a){return y(a).map(c(t,e))}};var u=function(t){var e=t.str,a=t.minCharCode,o=t.maxCharCode,i=t.placeholderChar,r=t.charStep;return function(t){return t.reduce((function(t,s,n){if(s!==0){if(Math.abs(s)>r){return t+i}return t+String.fromCharCode(f(a,o)(e.charCodeAt(n)+s))}return t+e.charAt(n)}),"")}};var b=function(){};var x=function(){function t(e){var a=this;this.start=function(){var t=a,e=t.frameOffset,o=t.charOffset,i=t.str,r=t.speed;var s=p(e,o)(i);a.stop();a.rafId=requestAnimationFrame((function(){a.step(s,r,r)}))};Object.assign(this,Object.assign(Object.assign({},t.defaults),e))}t.prototype.stop=function(){cancelAnimationFrame(this.rafId)};t.prototype.step=function(t,e,a){var o=this;var i=this,r=i.str,s=i.charStep,n=i.minCharCode,d=i.maxCharCode,h=i.placeholderChar,m=i.onProgress,y=i.onComplete;var l=t.slice(0,e);var f=l.map((function(t){if(t>0)return t-1;if(t<0)return t+1;return 0}));var g=u({str:r,minCharCode:n,maxCharCode:d,placeholderChar:h,charStep:s})(f);var c=__spreadArray(__spreadArray([],f,true),t.slice(e),true);m(g);if(g!==r){this.rafId=requestAnimationFrame((function(){o.step(c,e+a,a)}))}else{y(g)}};return t}();x.defaults={str:"",speed:2,placeholderChar:"_",frameOffset:30,charOffset:20,charStep:10,minCharCode:32,maxCharCode:122,onProgress:b,onComplete:b};var w=':host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));--mds-text-line-clamp:3;--mds-text-animation-speed:0.5;--mds-text-animation-placeholder-char:" ";display:-ms-flexbox;display:flex;min-width:0}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{cursor:inherit;display:inherit}:host([typography="snippet"]){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="hack"]){min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]){min-height:3rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:3rem;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h2"]){min-height:2.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:2.25rem;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h3"]){min-height:2.25rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.875rem;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h4"]){min-height:2rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.5rem;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h5"]){min-height:1.75rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h6"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]),:host([typography="h2"]),:host([typography="h3"]),:host([typography="h4"]),:host([typography="h5"]),:host([typography="h6"]){text-wrap:balance}:host([typography="action"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]){min-height:2rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"]){min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"]){min-height:1.25rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]),:host([typography="detail"]),:host([typography="caption"]){text-wrap:pretty}:host([typography="label"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="tip"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="option"]){min-height:0.625rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.625rem;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"][variant="read"]){min-height:2rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1.25rem;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"][variant="read"]){min-height:1.5rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1rem;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"][variant="read"]){min-height:1.25rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag="article"]),:host([tag="blockquote"]),:host([tag="dd"]),:host([tag="details"]),:host([tag="div"]),:host([tag="dl"]),:host([tag="dt"]),:host([tag="figcaption"]),:host([tag="h1"]),:host([tag="h2"]),:host([tag="h3"]),:host([tag="h4"]),:host([tag="h5"]),:host([tag="h6"]),:host([tag="label"]),:host([tag="legend"]),:host([tag="li"]),:host([tag="ol"]),:host([tag="p"]),:host([tag="pre"]),:host([tag="summary"]),:host([tag="ul"]){display:block}:host([tag="abbr"]),:host([tag="address"]),:host([tag="b"]),:host([tag="bdo"]),:host([tag="cite"]),:host([tag="code"]),:host([tag="del"]),:host([tag="dfn"]),:host([tag="em"]),:host([tag="i"]),:host([tag="ins"]),:host([tag="kbd"]),:host([tag="mark"]),:host([tag="q"]),:host([tag="rb"]),:host([tag="rt"]),:host([tag="ruby"]),:host([tag="s"]),:host([tag="samp"]),:host([tag="small"]),:host([tag="span"]),:host([tag="strong"]),:host([tag="sub"]),:host([tag="sup"]),:host([tag="time"]),:host([tag="u"]),:host([tag="var"]){display:inline}:host([tag="code"]){border-radius:0.25rem;padding-left:0.25rem;padding-right:0.25rem;padding-top:0.0625rem;padding-bottom:0.0625rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:rgb(var(--tone-neutral-09));-webkit-box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;color:rgb(var(--tone-neutral-03));-webkit-transition-property:color, background-color;transition-property:color, background-color}:host([truncate]) .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}:host([truncate="word"]) .text{white-space:nowrap}@supports (line-clamp: 1){:host([truncate="all"]) .text{line-clamp:var(--mds-text-line-clamp, 1)}}@supports (display: -webkit-box){:host([truncate="all"]) .text{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:var(--mds-text-line-clamp, 1)}}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var k=w;var v=t("mds_text",function(){function t(t){var a=this;e(this,t);this.cssTextAnimationSpeed=2;this.cssTextAnimationPlaceholderChar=" ";this.randomTextOptions={speed:this.cssTextAnimationSpeed,placeholderChar:this.cssTextAnimationPlaceholderChar,frameOffset:10,charOffset:20,charStep:15};this.animation="none";this.typography="detail";this.animateText=function(t){var e;var o=(e=a.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(".text");a.randomTextOptions.speed=a.cssTextAnimationSpeed;a.randomTextOptions.placeholderChar=a.cssTextAnimationPlaceholderChar;a.randomText=new x(Object.assign({str:t,onProgress:function(t){o.innerHTML=t}},a.randomTextOptions));a.randomText.start()};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(a.host);a.cssTextAnimationSpeed=Number(t.getPropertyValue("--mds-text-animation-speed"));var e=t.getPropertyValue("--mds-text-animation-placeholder-char");if(e==='" "'||e==="' '"){a.cssTextAnimationPlaceholderChar=" ";return}a.cssTextAnimationPlaceholderChar=e}}t.prototype.componentWillRender=function(){var t;var e=r[this.typography].tag;this.tag=(t=this.tag)!==null&&t!==void 0?t:e};t.prototype.componentDidLoad=function(){if(this.animation==="yugop")this.updateCSSCustomProps()};t.prototype.textHandler=function(t){if(this.animation==="none"){return}if(this.randomText){this.randomText.stop()}if(t){this.animateText(t)}};t.prototype.render=function(){return a(o,{key:"c2b975a38997a1ed8f5a6d49817398356a94cfc7"},a(this.tag,{key:"830f1caa4906a64330278da005b0cd10b014d21f",class:"text"},!this.text?a("slot",null):this.text))};Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{text:["textHandler"]}},enumerable:false,configurable:true});return t}());v.style=k}}}));
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-2aef517c.system.js"],(function(t){"use strict";var e,a,o,i;return{setters:[function(t){e=t.r;a=t.h;o=t.H;i=t.g}],execute:function(){var r={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}};var s=2147483647;var n=function(t){return t*16807%s};var d=function(t){return n(t)/s};var h=function(t){return n(t)};var m=function(t){if(t===void 0){t=1}var e=t<1?1:t;var a=function(){e=h(e);return e};return{random:function(){return a()},randomFloat:function(){return d(a())},range:function(t,e){var o=t-.4999;var i=e+.4999;return Math.round(o+(i-o)*d(a()))},rangeFloat:function(t,e){return t+(e-t)*d(a())}}};var l=function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))};var y=function(){return(Math.round(Math.random())-.5)*2};var f=function(t,e){return function(a){if(a>e)return t+(a-e);if(a<t)return e+(a-t);return a}};var g=m();var c=function(t,e){return function(){return(t+g.range(0,e))*y()}};var p=function(t,e){return function(a){return l(a).map(c(t,e))}};var u=function(t){var e=t.str,a=t.minCharCode,o=t.maxCharCode,i=t.placeholderChar,r=t.charStep;return function(t){return t.reduce((function(t,s,n){if(s!==0){if(Math.abs(s)>r){return t+i}return t+String.fromCharCode(f(a,o)(e.charCodeAt(n)+s))}return t+e.charAt(n)}),"")}};var b=function(){};var x=function(){function t(e){var a=this;this.start=function(){var t=a,e=t.frameOffset,o=t.charOffset,i=t.str,r=t.speed;var s=p(e,o)(i);a.stop();a.rafId=requestAnimationFrame((function(){a.step(s,r,r)}))};Object.assign(this,Object.assign(Object.assign({},t.defaults),e))}t.prototype.stop=function(){cancelAnimationFrame(this.rafId)};t.prototype.step=function(t,e,a){var o=this;var i=this,r=i.str,s=i.charStep,n=i.minCharCode,d=i.maxCharCode,h=i.placeholderChar,m=i.onProgress,l=i.onComplete;var y=t.slice(0,e);var f=y.map((function(t){if(t>0)return t-1;if(t<0)return t+1;return 0}));var g=u({str:r,minCharCode:n,maxCharCode:d,placeholderChar:h,charStep:s})(f);var c=__spreadArray(__spreadArray([],f,true),t.slice(e),true);m(g);if(g!==r){this.rafId=requestAnimationFrame((function(){o.step(c,e+a,a)}))}else{l(g)}};return t}();x.defaults={str:"",speed:2,placeholderChar:"_",frameOffset:30,charOffset:20,charStep:10,minCharCode:32,maxCharCode:122,onProgress:b,onComplete:b};var w=':host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));--mds-text-line-clamp:3;--mds-text-animation-speed:0.5;--mds-text-animation-placeholder-char:" ";display:-ms-flexbox;display:flex;min-width:0}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{cursor:inherit;display:inherit}:host([typography="snippet"]){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="hack"]){min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]){min-height:3rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:3rem;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h2"]){min-height:2.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:2.25rem;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h3"]){min-height:2.25rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.875rem;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h4"]){min-height:2rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.5rem;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h5"]){min-height:1.75rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h6"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]),:host([typography="h2"]),:host([typography="h3"]),:host([typography="h4"]),:host([typography="h5"]),:host([typography="h6"]){text-wrap:balance}:host([typography="action"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]){min-height:2rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"]){min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"]){min-height:1.25rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]),:host([typography="detail"]),:host([typography="caption"]){text-wrap:pretty}:host([typography="label"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="tip"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="option"]){min-height:0.625rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.625rem;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"][variant="read"]){min-height:2rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1.25rem;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"][variant="read"]){min-height:1.5rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1rem;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"][variant="read"]){min-height:1.25rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag="article"]),:host([tag="blockquote"]),:host([tag="dd"]),:host([tag="details"]),:host([tag="div"]),:host([tag="dl"]),:host([tag="dt"]),:host([tag="figcaption"]),:host([tag="h1"]),:host([tag="h2"]),:host([tag="h3"]),:host([tag="h4"]),:host([tag="h5"]),:host([tag="h6"]),:host([tag="label"]),:host([tag="legend"]),:host([tag="li"]),:host([tag="ol"]),:host([tag="p"]),:host([tag="pre"]),:host([tag="summary"]),:host([tag="ul"]){display:block}:host([tag="abbr"]),:host([tag="address"]),:host([tag="b"]),:host([tag="bdo"]),:host([tag="cite"]),:host([tag="code"]),:host([tag="del"]),:host([tag="dfn"]),:host([tag="em"]),:host([tag="i"]),:host([tag="ins"]),:host([tag="kbd"]),:host([tag="mark"]),:host([tag="q"]),:host([tag="rb"]),:host([tag="rt"]),:host([tag="ruby"]),:host([tag="s"]),:host([tag="samp"]),:host([tag="small"]),:host([tag="span"]),:host([tag="strong"]),:host([tag="sub"]),:host([tag="sup"]),:host([tag="time"]),:host([tag="u"]),:host([tag="var"]){display:inline}:host([tag="code"]){border-radius:0.25rem;padding-left:0.25rem;padding-right:0.25rem;padding-top:0.0625rem;padding-bottom:0.0625rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:rgb(var(--tone-neutral-09));-webkit-box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;color:rgb(var(--tone-neutral-03));-webkit-transition-property:color, background-color;transition-property:color, background-color}:host([truncate]) .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}:host([truncate="word"]) .text{white-space:nowrap}@supports (line-clamp: 1){:host([truncate="all"]) .text{line-clamp:var(--mds-text-line-clamp, 1)}}@supports (display: -webkit-box){:host([truncate="all"]) .text{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:var(--mds-text-line-clamp, 1)}}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var k=w;var v=t("mds_text",function(){function t(t){var a=this;e(this,t);this.cssTextAnimationSpeed=2;this.cssTextAnimationPlaceholderChar=" ";this.randomTextOptions={speed:this.cssTextAnimationSpeed,placeholderChar:this.cssTextAnimationPlaceholderChar,frameOffset:10,charOffset:20,charStep:15};this.animation="none";this.typography="detail";this.animateText=function(t){var e;var o=(e=a.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(".text");a.randomTextOptions.speed=a.cssTextAnimationSpeed;a.randomTextOptions.placeholderChar=a.cssTextAnimationPlaceholderChar;a.randomText=new x(Object.assign({str:t,onProgress:function(t){o.innerHTML=t}},a.randomTextOptions));a.randomText.start()};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(a.host);a.cssTextAnimationSpeed=Number(t.getPropertyValue("--mds-text-animation-speed"));var e=t.getPropertyValue("--mds-text-animation-placeholder-char");if(e==='" "'||e==="' '"){a.cssTextAnimationPlaceholderChar=" ";return}a.cssTextAnimationPlaceholderChar=e}}t.prototype.componentWillRender=function(){var t,e;var a=((t=r[this.typography])!==null&&t!==void 0?t:r.detail).tag;this.tag=(e=this.tag)!==null&&e!==void 0?e:a};t.prototype.componentDidLoad=function(){if(this.animation==="yugop")this.updateCSSCustomProps()};t.prototype.textHandler=function(t){if(this.animation==="none"){return}if(this.randomText){this.randomText.stop()}if(t){this.animateText(t)}};t.prototype.render=function(){return a(o,{key:"d096756b0b83d56c456b7cbe31898f8f7163fe44"},a(this.tag,{key:"b13042971ea7d46f60cac8d0c119398bc36155fd",class:"text"},!this.text?a("slot",null):this.text))};Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{text:["textHandler"]}},enumerable:false,configurable:true});return t}());v.style=k}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as r,g as i}from"./p-3a6b32e7.js";import{m as s}from"./p-d2f61b1f.js";import{D as n}from"./p-3833e170.js";import{c as d}from"./p-8a1a6e56.js";import{L as o}from"./p-2d77deaf.js";import"./p-85aa8e05.js";const h={from:"Από",to:"έως"},l={from:"From",to:"to"},c={from:"De",to:"a"},m={from:"Dal",to:"al"},p=class{constructor(a){t(this,a),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.t=new o({el:h,en:l,es:c,it:m}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.dualCalendar=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=n.fromISO(this.internalStartDate).isValid,e=n.fromISO(this.internalEndDate).isValid;t&&e&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.handleCalendarHover=t=>{if(!this.internalStartDate||this.internalEndDate)return void this.clearHoverPreview();const e=t.detail.hoverDate;this.hoveredCalendarDate!==e&&(this.hoveredCalendarDate=e,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),this.internalStartDate&&this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const e=this.getCalendars().indexOf(t.target),a=n.fromISO(t.detail.currentDate);a.isValid&&(this.visibleCalendarDate=a.minus({months:1===e?1:0}).startOf("month").toISODate())}}async updateLang(){this.language=this.t.lang(this.host)}getCalendars(){var t,e;return Array.from(null!==(e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==e?e:[])}resolveVisibleCalendarDate(t,e){var a;return(null!==(a=[t,e].map((t=>n.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==a?a:n.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const e=n.fromISO(this.visibleCalendarDate),a=n.fromISO(this.internalStartDate);let r=n.now();return e.isValid?r=e:a.isValid&&(r=a),r.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const e=n.fromISO(t);e.isValid&&(this.visibleCalendarDate=e.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}getEmittableDateRangeDetail(){const t=n.fromISO(this.internalStartDate),e=n.fromISO(this.internalEndDate);return t.isValid&&e.isValid?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}componentWillLoad(){if(this.language=this.t.lang(this.host),this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.initialStartDate=this.startDate,this.initialEndDate=this.endDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),this.min&&this.max){const t=n.fromISO(this.min);n.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){this.togglePreselection||(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),n.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?n.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const e=this.getCalendars();return e.length&&(await Promise.all(e.map(((t,e)=>t.updateCurrentDate(this.getCalendarViewDate(e))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,e){const a=null!=e?e:"";if(this.clearHoverPreview(),"start"===t){if(a===this.internalStartDate)return;this.internalStartDate=a,this.setVisibleCalendarDate(this.internalStartDate)}else{if(a===this.internalEndDate)return;this.internalEndDate=a}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,e){var a;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`),i=null==r?void 0:r.assignedElements()[0];i&&(this.syncingInputSlots.add(t),i.setValue(e).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,e;const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),r=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection"),a&&a.assignedElements()[0].addEventListener("mdsInputDateSelect",this.createFocusoutListener("start")),r&&r.assignedElements()[0].addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return e=>{if(this.syncingInputSlots.has(t))return;const a=e;this.clearHoverPreview(),"start"===t?(this.internalStartDate=a.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=a.detail,this.syncFormValue()}}validateDateRange(){if(this.internalStartDate&&this.internalEndDate){const t=n.fromISO(this.internalStartDate);n.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?a("div",{class:"calendar-preselection-panel"},a("div",{class:d("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},a("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return a("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),a("mds-calendar",Object.assign({lang:this.language,key:this.calendarKey,rangePicker:!0,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:()=>{this.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min?{min:this.min}:{},this.max?{max:this.max}:{})))}renderDualCalendars(){return a("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),a("mds-calendar",Object.assign({lang:this.language,key:`${this.calendarKey}-start`,rangePicker:!0,showNextButton:!1,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:()=>{this.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min?{min:this.min}:{},this.max?{max:this.max}:{})),a("mds-calendar",Object.assign({lang:this.language,key:`${this.calendarKey}-end`,rangePicker:!0,showPreviousButton:!1,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:()=>{this.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min?{min:this.min}:{},this.max?{max:this.max}:{})))}render(){return a(r,{key:"9f1d15ce17187fb4346d4a8248d9fef359235f54",onClick:this.focusDateInput},a("div",{key:"419236ee8bead4665a0164957282bcd5e7659661",class:"inputs"},a("div",{key:"e25a78a35ab091ccf357ade3a27b646b94ec42a6",class:"input-element"},a("mds-text",{key:"7d93c5d1ee1a8c690aeb18b88607f081c3785c1e",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),a("div",{key:"bb2b95cf1de464d9158df7aecb950af7927e7272",class:"input-wrapper"},a("slot",{key:"57cf6f4832fe383e22e5210e8d8f1584ac0a0f34",name:"start"}))),a("div",{key:"dd707a289ce5862549a1d98b3010861af2fe05ac",class:"input-element"},a("mds-text",{key:"212ba05e753f6b5f04032fc9eadbee33a66abccc",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),a("div",{key:"15cf868bb6808fd8f2bf4a8c13720e813c277d66",class:"input-wrapper"},a("slot",{key:"788d2c3ee00fd81724f1b058971a1366f3db6172",name:"end"})))),a("div",{key:"ca0c8be9804fdd2b7c4b7d17d234328182023f0b",class:"action-open-calendar-wrapper"},a("mds-button",{key:"9b4beb75e39698d2877c129b346024d785d8ba98",class:"action-open-calendar",variant:"dark",tone:"quiet",icon:s,id:"calendar-dropdown",onClick:()=>{this.calendarKey+=1}})),a("mds-dropdown",{key:"3274e94a6ae30fa2f060edeaa8f906972689af63",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","auto-placement":!1,placement:"bottom-end"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,e,a,r;const i=null!==(e=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==e?e:"",s=null!==(r=null===(a=this.internalEndDate)||void 0===a?void 0:a.trim())&&void 0!==r?r:"";this.internals.setFormValue(i||s?JSON.stringify({startDate:i,endDate:s}):null)}static get formAssociated(){return!0}get host(){return i(this)}static get watchers(){return{startDate:["handleStartDateChange"],endDate:["handleEndDateChange"]}}};p.style=':host{--mds-input-date-range-background:rgb(var(--tone-neutral));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 0.5rem;--mds-input-date-range-icon-color:var(--mds-input-date-range-variant-color);--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color) / 0.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color) / 0.06);--mds-input-date-range-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;cursor:text;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.date-preselection{display:grid;gap:0.5rem}.inputs{font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-date-range-background);border:0;-webkit-box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap);min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input-element{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex}:host(:focus-within) .inputs{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color) / 1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color) / 0.06)}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host() ::slotted(mds-input-date){color:inherit}.date-label{margin-left:0.125rem;margin-right:0.125rem;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:--spacing(200);min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.calendar-preselection-panel{background-color:rgb(var(--tone-neutral-09));border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;-ms-flex-line-pack:start;align-content:start;min-inline-size:-moz-max-content;min-inline-size:-webkit-max-content;min-inline-size:max-content;padding:1rem}.calendar-single{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:--spacing(200);min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.calendar-single mds-calendar,.calendars mds-calendar{-ms-flex:0 0 var(--mds-input-date-range-calendar-width);flex:0 0 var(--mds-input-date-range-calendar-width);inline-size:var(--mds-input-date-range-calendar-width);max-inline-size:var(--mds-input-date-range-calendar-width);min-inline-size:var(--mds-input-date-range-calendar-width)}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-range-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}.inputs{padding-right:1rem;-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content);justify-content:var(--mds-input-date-range-fields-firefox-justify-content)}}:host{--mds-input-date-range-icon-color:var(--variant-primary-03);--mds-input-date-range-variant-color:0 0 0}:host(:focus-within){--mds-input-date-range-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-range-icon-color:var(--status-info-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-range-icon-color:var(--status-info-04);--mds-input-date-range-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-range-icon-color:var(--status-success-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-range-icon-color:var(--status-success-04);--mds-input-date-range-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-range-icon-color:var(--status-warning-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-range-icon-color:var(--status-warning-04);--mds-input-date-range-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-range-icon-color:var(--status-error-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-range-icon-color:var(--status-error-04);--mds-input-date-range-variant-color:var(--status-error-05)}';export{p as mds_input_date_range}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,n,t,d){function r(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function i(e){try{o(d.next(e))}catch(e){a(e)}}function s(e){try{o(d["throw"](e))}catch(e){a(e)}}function o(e){e.done?t(e.value):r(e.value).then(i,s)}o((d=d.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},d,r,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(n){return o([e,n])}}function o(s){if(d)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(t=0)),t)try{if(d=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;r=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=n.call(e,t)}catch(e){s=[6,e];r=0}finally{d=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js"],(function(e){"use strict";var n,t,d,r,a;return{setters:[function(e){n=e.r;t=e.c;d=e.h;r=e.H;a=e.g}],execute:function(){var i='/**\n * @prop --mds-header-backdrop-background-image: Sets the background-image of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `medium`\n * @prop --mds-header-backdrop-filter: Sets the backdrop-filter of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `high`\n * @prop --mds-header-backdrop-height: Sets the height of the backdrop element visibile when the component attribute `appearance` is set to `inline`\n * @prop --mds-header-backdrop-show: Sets if the backdrop element is visible or not, only visible when the component attribute `appearance` is set to `inline`\n * @prop --mds-header-color: Sets the text color of the header and the mobile toggler icon\n * @prop --mds-header-hidden-bar-translate-inline: Sets translateY value for the appearance inline `mds-header-bar` element\n * @prop --mds-header-hidden-bar-translate-stripe: Sets translateY value for the appearance stripe `mds-header-bar` element\n * @prop --mds-header-icon-color: Sets the color of the icon toggler\n * @prop --mds-header-inline-margin-mobile: Sets inline margin on mobile viewport of `the mds-header-bar` when attribute `appearance` is set to `inline`\n * @prop --mds-header-inline-margin: Sets inline margin of `the mds-header-bar` when attribute `appearance` is set to `inline`\n * @prop --mds-header-z-index: Sets the z-index of the modal\n */\n\n:host {\n --mds-header-color: rgb(var(--tone-neutral-02));\n --mds-header-hidden-bar-translate-inline: translateY(-150%);\n --mds-header-hidden-bar-translate-stripe: translateY(-110%);\n --mds-header-icon-color: var(--mds-header-color, rgb(var(--tone-neutral-02)));\n --mds-header-modal-icon-color: rgb(var(--tone-neutral));\n --mds-header-backdrop-filter: blur(10px);\n --mds-header-backdrop-background-image: linear-gradient(to top, rgb(0 0 0 / 0), rgb(0 0 0 / 0.15));\n --mds-header-backdrop-height: 4rem;\n --mds-header-backdrop-show: true;\n --mds-header-z-index: var(--magma-header-z-index, 1000);\n --mds-header-inline-margin-mobile: 1rem;\n --mds-header-inline-margin: 1.5rem;\n\n color: var(--mds-header-color);\n fill: var(--mds-header-icon-color);\n position: relative;\n z-index: var(--mds-header-z-index);\n}\n\n.modal {\n --mds-modal-close-icon-color: var(--mds-header-modal-icon-color);\n\n z-index: var(--mds-header-z-index);\n}\n\n:host([appearance="inline"]) ::slotted(mds-header-bar) {\n --mds-header-inline-margin-current: var(--mds-header-inline-margin);\n max-width: 1280px;\n border-radius: 0.5rem;\n\n margin-bottom: var(--mds-header-inline-margin-current);\n margin-top: var(--mds-header-inline-margin-current);\n width: calc(100% - calc(var(--mds-header-inline-margin-current) * 2));\n}\n\n@media (width <= 767px) {\n :host([appearance="inline"]) ::slotted(mds-header-bar) {\n --mds-header-inline-margin-current: var(--mds-header-inline-margin-mobile);\n }\n}\n\n@media (max-width: 1023px) {\n\n :host([menu="desktop"]) .menu {\n display: none;\n }\n}\n\n@media (min-width: 1024px) {\n\n :host([menu="mobile"]) .menu {\n display: none;\n }\n}\n\n:host([menu="none"]) .menu {\n display: none;\n}\n\n:host([visibility="hidden"][appearance="stripe"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-stripe);\n transform: var(--mds-header-hidden-bar-translate-stripe);\n}\n\n:host([visibility="hidden"][appearance="inline"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-inline);\n transform: var(--mds-header-hidden-bar-translate-inline);\n}\n\n.backdrop {\n -ms-flex-align: center;\n align-items: center;\n -webkit-backdrop-filter: var(--mds-header-backdrop-filter);\n backdrop-filter: var(--mds-header-backdrop-filter);\n background-image: var(--mds-header-backdrop-background-image);\n content: \'\';\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-header-backdrop-height);\n inset: 0;\n opacity: 1;\n position: fixed;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: opacity, -webkit-transform;\n transition-property: opacity, -webkit-transform;\n transition-property: opacity, transform;\n transition-property: opacity, transform, -webkit-transform;\n width: 100%;\n\n\n /* should blurs the blur effect but not blurring */\n\n /* mask-image: linear-gradient(rgb(0 0 0 / 1), transparent); */\n}\n\n:host([appearance="inline"]) .backdrop {\n opacity: 1;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n\n:host([visibility="hidden"]) .backdrop,\n:host([appearance="stripe"]) .backdrop {\n opacity: 0;\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n@container style(--mds-header-backdrop-show: false) {\n :host-context(:not(.safari)) .backdrop {\n display: none;\n }\n}\n\n:host-context(.pref-theme-dark) {\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n}\n\n@media (prefers-color-scheme: dark) {\n :host-context(.pref-theme-system) {\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n }\n}\n\n:host-context(.pref-consumption-high) .backdrop {\n --mds-header-backdrop-background-image: none;\n}\n\n:host-context(.pref-consumption-medium) .backdrop {\n --mds-header-backdrop-filter: none;\n}\n\n:host-context(.pref-consumption-low) .backdrop {\n display: none;\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n';var s=i;var o=e("mds_header",function(){function e(e){var d=this;n(this,e);this.closedEvent=t(this,"mdsHeaderClose",7);this.visibleEvent=t(this,"mdsHeaderVisibilityChange",7);this.relativeTresholdDown=0;this.relativePosition=0;this.relativeThresholdUp=0;this.sanitizedAppearance=["stripe"];this.appearanceThreshold=300;this.appearance="stripe";this.backdrop=true;this.menu="mobile";this.nav="desktop";this.threshold=1;this.visibility="visible";this.mobileMenu=function(){return d.host.querySelector(':scope > [slot="menu"]')};this.close=function(){d.isOpened=false;d.closedEvent.emit({bar:d.headerBar});d.headerBar.setOpened(false)};this.handleVisibility=function(){if(!d.autoHide){return}if(window.scrollY<d.autoHide){d.visibility="visible";d.relativeThresholdUp=0;d.relativeTresholdDown=0;d.relativePosition=0;return}if(d.relativeTresholdDown-window.scrollY<=0){d.visibility="hidden";d.relativePosition=d.relativeTresholdDown}if(d.relativeThresholdUp-window.scrollY>=d.threshold){d.visibility="visible";d.relativeThresholdUp=window.scrollY;d.relativePosition=d.relativeThresholdUp}if(d.relativePosition<d.autoHide&&d.autoHide-window.scrollY<=0){d.visibility="hidden";d.relativePosition=d.autoHide}if(window.scrollY>d.relativeThresholdUp){d.relativeThresholdUp=window.scrollY}else{d.relativeTresholdDown=window.scrollY+d.threshold}};this.sanitizeAppearance=function(){if(!d.appearanceSet){return[d.appearance]}var e=/\b(\w+)\b/g;var n=d.appearanceSet.match(e);if(n){return n}return[d.appearance]};this.handleAppearance=function(){var e,n;if(window.scrollY>=d.appearanceThreshold){d.appearance=(e=d.sanitizedAppearance[1])!==null&&e!==void 0?e:d.appearance;return}d.appearance=(n=d.sanitizedAppearance[0])!==null&&n!==void 0?n:d.appearance};this.handleScroll=function(){if(typeof window==="undefined")return;if(d.autoHide){d.handleVisibility()}if(d.sanitizedAppearance.length>1){d.handleAppearance()}};this.setAppearanceSetData=function(){d.sanitizedAppearance=d.sanitizeAppearance();if(d.sanitizedAppearance[2]){d.appearanceThreshold=d.sanitizedAppearance[2]}d.relativeTresholdDown=d.threshold};this.initScrollListener=function(){if(!window){return}d.setAppearanceSetData();window.addEventListener("scroll",d.handleScroll)};this.defineHeaderBar=function(){d.headerBar=d.host.querySelector("mds-header-bar")}}e.prototype.setOpened=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e=true}return __generator(this,(function(n){this.isOpened=e;return[2]}))}))};e.prototype.disconnectedCallback=function(){if(!window){return}window.removeEventListener("scroll",this.handleScroll)};e.prototype.componentWillLoad=function(){this.hasMenu=this.mobileMenu()!==null;if(this.hasMenu){this.onMenuChangedHandler(this.menu);return}this.onMenuChangedHandler("none")};e.prototype.componentDidLoad=function(){this.defineHeaderBar();this.onMenuChangedHandler(this.menu);this.onNavChangedHandler(this.nav);this.initScrollListener()};e.prototype.onMenuChangedHandler=function(e,n){if(e===n){return}if(this.headerBar){this.headerBar.menu=e}};e.prototype.onNavChangedHandler=function(e,n){if(e===n){return}if(this.headerBar){this.headerBar.nav=e}};e.prototype.onAppearanceSetChangedHandler=function(){this.setAppearanceSetData()};e.prototype.handleVisibilityChange=function(e,n){if(e!==n){this.visibleEvent.emit({visibility:e})}};e.prototype.render=function(){return d(r,{key:"ed4faa9268044cc9b6046ff39cda66f7553a0043"},this.backdrop&&d("div",{key:"bb88d582b85506376e70e623c5d536392737eac7",class:"backdrop"}),d("slot",{key:"3e3b3b5b19de464572e1a2f1ac3be1b810c41af6"}),this.hasMenu&&d("div",{key:"9bd8c9c2e49b2b2b5df5c6aa69e065a628e1508e",class:"menu",part:"menu"},d("mds-modal",{key:"50de497869acb91e1a3df249c48063aa1a999ad0",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},d("slot",{key:"0d8173ec63daaf17959d2aaec7ffbfbfab9daa24",name:"menu"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["onMenuChangedHandler"],nav:["onNavChangedHandler"],appearanceSet:["onAppearanceSetChangedHandler"],visibility:["handleVisibilityChange"]}},enumerable:false,configurable:true});return e}());o.style=s}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,n,t,d){function r(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function i(e){try{o(d.next(e))}catch(e){a(e)}}function s(e){try{o(d["throw"](e))}catch(e){a(e)}}function o(e){e.done?t(e.value):r(e.value).then(i,s)}o((d=d.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},d,r,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(n){return o([e,n])}}function o(s){if(d)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(t=0)),t)try{if(d=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;r=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=n.call(e,t)}catch(e){s=[6,e];r=0}finally{d=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js"],(function(e){"use strict";var n,t,d,r,a;return{setters:[function(e){n=e.r;t=e.c;d=e.h;r=e.H;a=e.g}],execute:function(){var i='/**\n * @prop --mds-header-backdrop-background-image: Sets the background-image of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `medium`\n * @prop --mds-header-backdrop-filter: Sets the backdrop-filter of the backdrop element visibile when the component attribute `appearance` is set to `inline`, by default is shown when mds-pref-consumtion is set to `high`\n * @prop --mds-header-backdrop-height: Sets the height of the backdrop element visibile when the component attribute `appearance` is set to `inline`\n * @prop --mds-header-backdrop-show: Sets if the backdrop element is visible or not, only visible when the component attribute `appearance` is set to `inline`\n * @prop --mds-header-color: Sets the text color of the header and the mobile toggler icon\n * @prop --mds-header-hidden-bar-translate-inline: Sets translateY value for the appearance inline `mds-header-bar` element\n * @prop --mds-header-hidden-bar-translate-stripe: Sets translateY value for the appearance stripe `mds-header-bar` element\n * @prop --mds-header-icon-color: Sets the color of the icon toggler\n * @prop --mds-header-inline-margin-mobile: Sets inline margin on mobile viewport of `the mds-header-bar` when attribute `appearance` is set to `inline`\n * @prop --mds-header-inline-margin: Sets inline margin of `the mds-header-bar` when attribute `appearance` is set to `inline`\n * @prop --mds-header-z-index: Sets the z-index of the modal\n */\n\n:host {\n --mds-header-color: rgb(var(--tone-neutral-02));\n --mds-header-hidden-bar-translate-inline: translateY(-150%);\n --mds-header-hidden-bar-translate-stripe: translateY(-110%);\n --mds-header-icon-color: var(--mds-header-color, rgb(var(--tone-neutral-02)));\n --mds-header-modal-icon-color: rgb(var(--tone-neutral));\n --mds-header-backdrop-filter: blur(10px);\n --mds-header-backdrop-background-image: linear-gradient(to top, rgb(0 0 0 / 0), rgb(0 0 0 / 0.15));\n --mds-header-backdrop-height: 4rem;\n --mds-header-backdrop-show: true;\n --mds-header-z-index: var(--magma-header-z-index, 1000);\n --mds-header-inline-margin-mobile: 1rem;\n --mds-header-inline-margin: 1.5rem;\n\n color: var(--mds-header-color);\n fill: var(--mds-header-icon-color);\n position: relative;\n z-index: var(--mds-header-z-index);\n}\n\n.modal {\n --mds-modal-close-icon-color: var(--mds-header-modal-icon-color);\n\n z-index: var(--mds-header-z-index);\n}\n\n:host([appearance="inline"]) ::slotted(mds-header-bar) {\n --mds-header-inline-margin-current: var(--mds-header-inline-margin);\n max-width: 1280px;\n border-radius: 0.5rem;\n\n margin-bottom: var(--mds-header-inline-margin-current);\n margin-top: var(--mds-header-inline-margin-current);\n width: calc(100% - calc(var(--mds-header-inline-margin-current) * 2));\n}\n\n@media (width <= 767px) {\n :host([appearance="inline"]) ::slotted(mds-header-bar) {\n --mds-header-inline-margin-current: var(--mds-header-inline-margin-mobile);\n }\n}\n\n@media (max-width: 1023px) {\n\n :host([menu="desktop"]) .menu {\n display: none;\n }\n}\n\n@media (min-width: 1024px) {\n\n :host([menu="mobile"]) .menu {\n display: none;\n }\n}\n\n:host([menu="none"]) .menu {\n display: none;\n}\n\n:host([visibility="hidden"][appearance="stripe"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-stripe);\n transform: var(--mds-header-hidden-bar-translate-stripe);\n}\n\n:host([visibility="hidden"][appearance="inline"]) ::slotted(mds-header-bar) {\n -webkit-transform: var(--mds-header-hidden-bar-translate-inline);\n transform: var(--mds-header-hidden-bar-translate-inline);\n}\n\n.backdrop {\n -ms-flex-align: center;\n align-items: center;\n -webkit-backdrop-filter: var(--mds-header-backdrop-filter);\n backdrop-filter: var(--mds-header-backdrop-filter);\n background-image: var(--mds-header-backdrop-background-image);\n content: \'\';\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-header-backdrop-height);\n inset: 0;\n opacity: 1;\n position: fixed;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: opacity, -webkit-transform;\n transition-property: opacity, -webkit-transform;\n transition-property: opacity, transform;\n transition-property: opacity, transform, -webkit-transform;\n width: 100%;\n\n\n /* should blurs the blur effect but not blurring */\n\n /* mask-image: linear-gradient(rgb(0 0 0 / 1), transparent); */\n}\n\n:host([appearance="inline"]) .backdrop {\n opacity: 1;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n\n:host([visibility="hidden"]) .backdrop,\n:host([appearance="stripe"]) .backdrop {\n opacity: 0;\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n@container style(--mds-header-backdrop-show: false) {\n :host-context(:not(.safari)) .backdrop {\n display: none;\n }\n}\n\n:host-context(.pref-theme-dark) {\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n}\n\n@media (prefers-color-scheme: dark) {\n :host-context(.pref-theme-system) {\n --mds-header-modal-icon-color: rgb(var(--tone-neutral-01));\n }\n}\n\n:host-context(.pref-consumption-high) .backdrop {\n --mds-header-backdrop-background-image: none;\n}\n\n:host-context(.pref-consumption-medium) .backdrop {\n --mds-header-backdrop-filter: none;\n}\n\n:host-context(.pref-consumption-low) .backdrop {\n display: none;\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n';var s=i;var o=e("mds_header",function(){function e(e){var d=this;n(this,e);this.closedEvent=t(this,"mdsHeaderClose",7);this.visibleEvent=t(this,"mdsHeaderVisibilityChange",7);this.relativeTresholdDown=0;this.relativePosition=0;this.relativeThresholdUp=0;this.sanitizedAppearance=["stripe"];this.appearanceThreshold=300;this.appearance="stripe";this.backdrop=true;this.menu="mobile";this.nav="desktop";this.threshold=1;this.visibility="visible";this.mobileMenu=function(){return d.host.querySelector(':scope > [slot="menu"]')};this.close=function(){d.isOpened=false;d.closedEvent.emit({bar:d.headerBar});d.headerBar.setOpened(false)};this.handleVisibility=function(){if(!d.autoHide){return}if(window.scrollY<d.autoHide){d.visibility="visible";d.relativeThresholdUp=0;d.relativeTresholdDown=0;d.relativePosition=0;return}if(d.relativeTresholdDown-window.scrollY<=0){d.visibility="hidden";d.relativePosition=d.relativeTresholdDown}if(d.relativeThresholdUp-window.scrollY>=d.threshold){d.visibility="visible";d.relativeThresholdUp=window.scrollY;d.relativePosition=d.relativeThresholdUp}if(d.relativePosition<d.autoHide&&d.autoHide-window.scrollY<=0){d.visibility="hidden";d.relativePosition=d.autoHide}if(window.scrollY>d.relativeThresholdUp){d.relativeThresholdUp=window.scrollY}else{d.relativeTresholdDown=window.scrollY+d.threshold}};this.sanitizeAppearance=function(){if(!d.appearanceSet){return[d.appearance]}var e=/\b(\w+)\b/g;var n=d.appearanceSet.match(e);if(n){return n}return[d.appearance]};this.handleAppearance=function(){var e,n;if(window.scrollY>=d.appearanceThreshold){d.appearance=(e=d.sanitizedAppearance[1])!==null&&e!==void 0?e:d.appearance;return}d.appearance=(n=d.sanitizedAppearance[0])!==null&&n!==void 0?n:d.appearance};this.handleScroll=function(){if(typeof window==="undefined")return;if(d.autoHide){d.handleVisibility()}if(d.sanitizedAppearance.length>1){d.handleAppearance()}};this.setAppearanceSetData=function(){d.sanitizedAppearance=d.sanitizeAppearance();if(d.sanitizedAppearance[2]){d.appearanceThreshold=d.sanitizedAppearance[2]}d.relativeTresholdDown=d.threshold};this.initScrollListener=function(){if(!window){return}d.setAppearanceSetData();window.addEventListener("scroll",d.handleScroll)};this.defineHeaderBar=function(){d.headerBar=d.host.querySelector("mds-header-bar")}}e.prototype.setOpened=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e=true}return __generator(this,(function(n){this.isOpened=e;return[2]}))}))};e.prototype.disconnectedCallback=function(){if(!window){return}window.removeEventListener("scroll",this.handleScroll)};e.prototype.componentWillLoad=function(){this.hasMenu=this.mobileMenu()!==null;if(this.hasMenu){this.onMenuChangedHandler(this.menu);return}this.onMenuChangedHandler("none")};e.prototype.componentDidLoad=function(){this.defineHeaderBar();this.onMenuChangedHandler(this.menu);this.onNavChangedHandler(this.nav);this.initScrollListener()};e.prototype.onMenuChangedHandler=function(e,n){if(e===n){return}if(this.headerBar){this.headerBar.menu=e}};e.prototype.onNavChangedHandler=function(e,n){if(e===n){return}if(this.headerBar){this.headerBar.nav=e}};e.prototype.onAppearanceSetChangedHandler=function(){this.setAppearanceSetData()};e.prototype.handleVisibilityChange=function(e,n){if(e!==n){this.visibleEvent.emit({visibility:e})}};e.prototype.render=function(){return d(r,{key:"5f7a197284f180ab816c563e388a7f8e521e1f05"},this.backdrop&&d("div",{key:"e02d7329e0556d2cee684004faeefcfedf764fcc",class:"backdrop"}),d("slot",{key:"4ed32166f6ace18694cb3f060a6a23c22abc5771"}),this.hasMenu&&d("div",{key:"ee646a278ebeff78208618be2a601a3c0f62d651",class:"menu",part:"menu"},d("mds-modal",{key:"e29e93cd02bd159d4dee010648f8a919140fbb6a",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},d("slot",{key:"2910bffcf16ace95aead03ac16a358599f3f5b06",name:"menu"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["onMenuChangedHandler"],nav:["onNavChangedHandler"],appearanceSet:["onAppearanceSetChangedHandler"],visibility:["handleVisibilityChange"]}},enumerable:false,configurable:true});return e}());o.style=s}}}));
|