@swisspost/design-system-components 9.0.0-next.11 → 9.0.0-next.13
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/.config/bindings.angular.js +4 -0
- package/dist/cjs/{attribute-observer-10f08c04.js → attribute-observer-6d8b886b.js} +4 -4
- package/dist/cjs/{check-one-of-f4f5d0c0.js → check-one-of-ef931478.js} +2 -1
- package/dist/cjs/{check-type-64af82a9.js → check-type-696d2c51.js} +4 -4
- package/dist/cjs/{check-url-3ffdd2fb.js → check-url-1cf6fb0d.js} +2 -1
- package/dist/cjs/{debounce-1151afe3.js → debounce-158fd76f.js} +2 -1
- package/dist/cjs/fade-72d5ef55.js +14 -0
- package/dist/cjs/{index-5d4e0aed.js → index-bea4ac42.js} +7 -5
- package/dist/cjs/index.cjs.js +27 -27
- package/dist/cjs/{package-5fdfea90.js → package-60e57542.js} +1 -1
- package/dist/cjs/{post-accordion-dabc9271.js → post-accordion-1e495c23.js} +5 -4
- package/dist/cjs/{post-accordion-item-9dadc543.js → post-accordion-item-86b6950a.js} +6 -6
- package/dist/cjs/post-accordion-item.cjs.entry.js +6 -6
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-avatar-fddda407.js → post-avatar-067c033b.js} +7 -11
- package/dist/cjs/post-avatar.cjs.entry.js +2 -2
- package/dist/cjs/{post-back-to-top-6dfbcd1b.js → post-back-to-top-7efd1066.js} +8 -7
- package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/{post-banner-6df79142.js → post-banner-a6808d7d.js} +11 -6
- package/dist/cjs/post-banner.cjs.entry.js +7 -7
- package/dist/cjs/{post-breadcrumb-b05fb572.js → post-breadcrumb-b33abf67.js} +27 -26
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +6 -6
- package/dist/cjs/post-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/post-card-control-7867a104.js +283 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +7 -7
- package/dist/cjs/{post-collapsible-trigger-94f1bbd9.js → post-collapsible-trigger-6affdc02.js} +38 -32
- package/dist/cjs/post-collapsible_2.cjs.entry.js +7 -7
- package/dist/cjs/{post-footer-f95510e4.js → post-footer-330e8999.js} +11 -8
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-item-106036fa.js → post-menu-item-48191dfd.js} +6 -6
- package/dist/cjs/{post-popover-cc55d371.js → post-popover-27f3e9aa.js} +7 -5
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-4aa3fabb.js → post-rating-28904e91.js} +13 -3
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-header-86b129ab.js +33 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-77162d5b.js → post-tab-panel-94333a7e.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-ee832221.js → post-tabs-f8581050.js} +21 -16
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-8778a125.js → post-tag-3a24c574.js} +3 -3
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-togglebutton-00632399.js → post-togglebutton-e7d697bf.js} +184 -106
- package/dist/cjs/{post-tooltip-d3dd17b2.js → post-tooltip-8c87dfe3.js} +8 -7
- package/dist/cjs/post-tooltip.cjs.entry.js +7 -7
- package/dist/cjs/{slide-5d51abe8.js → slide-8ae17ee4.js} +4 -4
- package/dist/collection/animations/collapse.js +5 -5
- package/dist/collection/animations/fade.js +6 -2
- package/dist/collection/animations/slide.js +4 -4
- package/dist/collection/components/post-accordion/post-accordion.js +3 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -3
- package/dist/collection/components/post-avatar/post-avatar.js +6 -9
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +5 -3
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +6 -0
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +24 -22
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +4 -3
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +43 -31
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +9 -2
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +19 -18
- package/dist/collection/components/post-footer/post-footer.js +1 -0
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +9 -8
- package/dist/collection/components/post-icon/post-icon.js +51 -14
- package/dist/collection/components/post-language-option/post-language-option.js +5 -0
- package/dist/collection/components/post-language-switch/post-language-switch.js +2 -1
- package/dist/collection/components/post-list/post-list.js +2 -0
- package/dist/collection/components/post-list-item/post-list-item.js +1 -0
- package/dist/collection/components/post-logo/post-logo.js +2 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +6 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +14 -2
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +6 -5
- package/dist/collection/components/post-menu/post-menu.js +42 -29
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +13 -11
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +4 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +9 -0
- package/dist/collection/components/post-rating/post-rating.js +12 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -0
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -0
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +16 -15
- package/dist/collection/components/post-tag/post-tag.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +1 -0
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +11 -10
- package/dist/collection/components/post-tooltip/post-tooltip.js +5 -3
- package/dist/collection/utils/attribute-observer.js +4 -4
- package/dist/collection/utils/breakpoints.js +9 -6
- package/dist/collection/utils/component-on-ready.js +4 -4
- package/dist/collection/utils/debounce.js +2 -1
- package/dist/collection/utils/get-focusable-children.js +2 -2
- package/dist/collection/utils/property-checkers/check-one-of.js +2 -1
- package/dist/collection/utils/property-checkers/check-pattern.js +2 -1
- package/dist/collection/utils/property-checkers/check-type.js +4 -4
- package/dist/collection/utils/property-checkers/check-url.js +2 -1
- package/dist/collection/utils/property-checkers/empty-or.js +2 -1
- package/dist/collection/utils/sass-export.js +8 -5
- package/dist/components/attribute-observer.js +4 -4
- package/dist/components/check-one-of.js +2 -1
- package/dist/components/check-type.js +4 -4
- package/dist/components/debounce.js +2 -1
- package/dist/components/fade.js +6 -2
- package/dist/components/index2.js +6 -3
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +4 -4
- package/dist/components/post-accordion2.js +3 -2
- package/dist/components/post-avatar2.js +6 -10
- package/dist/components/post-back-to-top2.js +5 -4
- package/dist/components/post-banner2.js +7 -2
- package/dist/components/post-breadcrumb-item2.js +4 -4
- package/dist/components/post-breadcrumb2.js +24 -23
- package/dist/components/post-card-control2.js +44 -33
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +19 -19
- package/dist/components/post-collapsible2.js +15 -9
- package/dist/components/post-footer2.js +10 -7
- package/dist/components/post-header2.js +10 -10
- package/dist/components/post-icon2.js +51 -15
- package/dist/components/post-language-option2.js +5 -1
- package/dist/components/post-language-switch2.js +2 -2
- package/dist/components/post-list-item2.js +1 -1
- package/dist/components/post-list2.js +2 -1
- package/dist/components/post-logo2.js +2 -2
- package/dist/components/post-mainnavigation2.js +7 -2
- package/dist/components/post-megadropdown-trigger2.js +6 -6
- package/dist/components/post-megadropdown2.js +15 -4
- package/dist/components/post-menu-trigger2.js +13 -12
- package/dist/components/post-menu2.js +44 -32
- package/dist/components/post-popover2.js +5 -3
- package/dist/components/post-popovercontainer2.js +10 -2
- package/dist/components/post-rating2.js +12 -2
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +19 -14
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/post-togglebutton2.js +11 -11
- package/dist/components/post-tooltip2.js +5 -4
- package/dist/components/slide.js +4 -4
- package/dist/docs.json +3 -8
- package/dist/esm/{attribute-observer-37fa950a.js → attribute-observer-2f203993.js} +4 -4
- package/dist/esm/{check-one-of-6b3ef8eb.js → check-one-of-0d5858c0.js} +2 -1
- package/dist/esm/{check-type-8828dbe4.js → check-type-a6ccc9a3.js} +4 -4
- package/dist/esm/{check-url-a974431e.js → check-url-0bd876f7.js} +2 -1
- package/dist/esm/{debounce-abe98cc2.js → debounce-e54c7131.js} +2 -1
- package/dist/esm/fade-1f3cacf4.js +11 -0
- package/dist/esm/{index-b49c9904.js → index-d1bbbd88.js} +7 -5
- package/dist/esm/index.js +27 -27
- package/dist/esm/package-495dba42.js +3 -0
- package/dist/esm/{post-accordion-25df8744.js → post-accordion-48eb17c3.js} +6 -5
- package/dist/esm/{post-accordion-item-33fb36df.js → post-accordion-item-e0893bb3.js} +7 -7
- package/dist/esm/post-accordion-item.entry.js +6 -6
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-avatar-731aafd6.js → post-avatar-20cde806.js} +8 -12
- package/dist/esm/post-avatar.entry.js +2 -2
- package/dist/esm/{post-back-to-top-3a6b6203.js → post-back-to-top-e422c426.js} +9 -8
- package/dist/esm/post-back-to-top.entry.js +4 -4
- package/dist/esm/{post-banner-b2eb796c.js → post-banner-7385397e.js} +12 -7
- package/dist/esm/post-banner.entry.js +7 -7
- package/dist/esm/{post-breadcrumb-0a99384c.js → post-breadcrumb-39203792.js} +28 -27
- package/dist/esm/post-breadcrumb-item_2.entry.js +6 -6
- package/dist/esm/post-breadcrumb.entry.js +4 -4
- package/dist/esm/post-card-control-d2c25c96.js +281 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/post-closebutton_15.entry.js +7 -7
- package/dist/esm/{post-collapsible-trigger-7fc4d61c.js → post-collapsible-trigger-2f9ad9a5.js} +39 -33
- package/dist/esm/post-collapsible_2.entry.js +7 -7
- package/dist/esm/{post-footer-97bbd770.js → post-footer-e804a967.js} +12 -9
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/{post-menu-item-ae066299.js → post-menu-item-f9793958.js} +7 -7
- package/dist/esm/{post-popover-62e33068.js → post-popover-8205412a.js} +8 -6
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-rating-ee73a51b.js → post-rating-95ecb434.js} +14 -4
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-tab-header-d520b99a.js +31 -0
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-5e35e7df.js → post-tab-panel-8c8d2332.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-b614a577.js → post-tabs-dd6dfe43.js} +22 -17
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-413626e4.js → post-tag-593813a4.js} +4 -4
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-togglebutton-caf0000b.js → post-togglebutton-120df903.js} +185 -107
- package/dist/esm/{post-tooltip-b0f1b147.js → post-tooltip-a13d6fbb.js} +9 -8
- package/dist/esm/post-tooltip.entry.js +7 -7
- package/dist/esm/{slide-3422b8a3.js → slide-62768431.js} +4 -4
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0b613350.js +1 -0
- package/dist/post-components/p-1fda117c.js +1 -0
- package/dist/post-components/p-20e1b680.js +1 -0
- package/dist/post-components/p-29bc8ddc.entry.js +1 -0
- package/dist/post-components/p-2b4c7ec7.entry.js +1 -0
- package/dist/post-components/p-2f327006.entry.js +1 -0
- package/dist/post-components/p-3632ace7.js +1 -0
- package/dist/post-components/p-3a978ea9.entry.js +1 -0
- package/dist/post-components/{p-cc55b611.js → p-3d4fdde0.js} +1 -1
- package/dist/post-components/p-427132e3.entry.js +1 -0
- package/dist/post-components/p-445dfa96.js +1 -0
- package/dist/post-components/p-4af6dbed.js +1 -0
- package/dist/post-components/p-4c0c13a9.js +1 -0
- package/dist/post-components/{p-d45f8861.js → p-4fc83a1c.js} +2 -2
- package/dist/post-components/p-5384e6f4.js +1 -0
- package/dist/post-components/p-5630677a.entry.js +1 -0
- package/dist/post-components/p-5e5ee06d.entry.js +1 -0
- package/dist/post-components/p-64e3de38.js +1 -0
- package/dist/post-components/p-68c43ef0.entry.js +1 -0
- package/dist/post-components/p-6e39bb59.entry.js +1 -0
- package/dist/post-components/p-6fede961.js +1 -0
- package/dist/post-components/p-72a5ee9b.js +1 -0
- package/dist/post-components/p-72d9d594.entry.js +1 -0
- package/dist/post-components/p-85bf673e.entry.js +1 -0
- package/dist/post-components/p-8decb072.entry.js +1 -0
- package/dist/post-components/p-92f8803c.entry.js +1 -0
- package/dist/post-components/p-9596c7d6.js +1 -0
- package/dist/post-components/p-9748a355.js +1 -0
- package/dist/post-components/p-975b30f5.js +1 -0
- package/dist/post-components/p-9a50697e.entry.js +1 -0
- package/dist/post-components/p-a72cb18c.js +1 -0
- package/dist/post-components/p-aaca7ca7.js +1 -0
- package/dist/post-components/p-ac2189b7.js +1 -0
- package/dist/post-components/p-afe3b28e.js +1 -0
- package/dist/post-components/p-b129c166.js +1 -0
- package/dist/post-components/p-bd49bb7e.entry.js +1 -0
- package/dist/post-components/p-c043686c.entry.js +1 -0
- package/dist/post-components/p-c8544b65.js +1 -0
- package/dist/post-components/p-c9f65844.entry.js +1 -0
- package/dist/post-components/{p-189a07cf.entry.js → p-d6449a93.entry.js} +1 -1
- package/dist/post-components/p-f7c5b0c2.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/collapse.d.ts +2 -2
- package/dist/types/animations/fade.d.ts +2 -2
- package/dist/types/animations/slide.d.ts +2 -2
- package/dist/types/components/post-icon/post-icon.d.ts +1 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/bindings.angular.d.ts +2 -0
- package/dist/types/utils/attribute-observer.d.ts +1 -1
- package/dist/types/utils/component-on-ready.d.ts +1 -1
- package/dist/types/utils/get-focusable-children.d.ts +1 -1
- package/dist/types/utils/sass-export.d.ts +5 -1
- package/loaders/attribute-observer.js +4 -4
- package/loaders/check-one-of.js +2 -1
- package/loaders/check-type.js +4 -4
- package/loaders/debounce.js +2 -1
- package/loaders/fade.js +6 -2
- package/loaders/index2.js +6 -3
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item2.js +4 -4
- package/loaders/post-accordion.js +3 -2
- package/loaders/post-avatar.js +6 -10
- package/loaders/post-back-to-top.js +5 -4
- package/loaders/post-banner.js +7 -2
- package/loaders/post-breadcrumb-item2.js +4 -4
- package/loaders/post-breadcrumb.js +24 -23
- package/loaders/post-card-control.js +44 -33
- package/loaders/post-closebutton.js +1 -1
- package/loaders/post-collapsible-trigger2.js +19 -19
- package/loaders/post-collapsible2.js +15 -9
- package/loaders/post-footer.js +10 -7
- package/loaders/post-header.js +10 -10
- package/loaders/post-icon2.js +51 -15
- package/loaders/post-language-option.js +5 -1
- package/loaders/post-language-switch.js +2 -2
- package/loaders/post-list-item.js +1 -1
- package/loaders/post-list.js +2 -1
- package/loaders/post-logo.js +2 -2
- package/loaders/post-mainnavigation.js +7 -2
- package/loaders/post-megadropdown-trigger.js +6 -6
- package/loaders/post-megadropdown.js +15 -4
- package/loaders/post-menu-trigger2.js +13 -12
- package/loaders/post-menu2.js +44 -32
- package/loaders/post-popover.js +5 -3
- package/loaders/post-popovercontainer2.js +10 -2
- package/loaders/post-rating.js +12 -2
- package/loaders/post-tab-header.js +2 -2
- package/loaders/post-tab-panel.js +1 -1
- package/loaders/post-tabs.js +19 -14
- package/loaders/post-tag.js +2 -2
- package/loaders/post-togglebutton.js +11 -11
- package/loaders/post-tooltip.js +5 -4
- package/loaders/slide.js +4 -4
- package/package.json +13 -9
- package/dist/cjs/fade-35a3633a.js +0 -10
- package/dist/cjs/post-card-control-97ed732c.js +0 -272
- package/dist/cjs/post-tab-header-1eee4cbf.js +0 -33
- package/dist/esm/fade-7fd71785.js +0 -7
- package/dist/esm/package-cf78d928.js +0 -3
- package/dist/esm/post-card-control-ff272e38.js +0 -270
- package/dist/esm/post-tab-header-dac84177.js +0 -31
- package/dist/post-components/p-012a39b8.js +0 -1
- package/dist/post-components/p-0a74bc53.js +0 -1
- package/dist/post-components/p-0addae0c.entry.js +0 -1
- package/dist/post-components/p-128b11b3.js +0 -1
- package/dist/post-components/p-13ae0f4d.entry.js +0 -1
- package/dist/post-components/p-15173f46.js +0 -1
- package/dist/post-components/p-18b84db7.entry.js +0 -1
- package/dist/post-components/p-2571a1be.entry.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-2747a945.js +0 -1
- package/dist/post-components/p-32165625.js +0 -1
- package/dist/post-components/p-42ef1d9f.entry.js +0 -1
- package/dist/post-components/p-465e9eee.entry.js +0 -1
- package/dist/post-components/p-515e0f96.js +0 -1
- package/dist/post-components/p-5467b223.js +0 -1
- package/dist/post-components/p-60ea48ce.js +0 -1
- package/dist/post-components/p-61cff5d9.entry.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-723ad003.entry.js +0 -1
- package/dist/post-components/p-73863597.js +0 -1
- package/dist/post-components/p-761723b6.js +0 -1
- package/dist/post-components/p-7c966321.js +0 -1
- package/dist/post-components/p-8e808ae6.js +0 -1
- package/dist/post-components/p-92611da2.entry.js +0 -1
- package/dist/post-components/p-990db73a.js +0 -1
- package/dist/post-components/p-99b12d43.entry.js +0 -1
- package/dist/post-components/p-9fbb33c2.entry.js +0 -1
- package/dist/post-components/p-a43a3cdb.js +0 -1
- package/dist/post-components/p-ad770600.entry.js +0 -1
- package/dist/post-components/p-af48ed67.entry.js +0 -1
- package/dist/post-components/p-c4139fb9.js +0 -1
- package/dist/post-components/p-dc11a5d5.entry.js +0 -1
- package/dist/post-components/p-df9ea014.js +0 -1
- package/dist/post-components/p-e1dc7f01.entry.js +0 -1
- package/dist/post-components/p-e533625e.js +0 -1
- package/dist/post-components/p-f0da081f.entry.js +0 -1
- package/dist/post-components/p-f380a026.entry.js +0 -1
- package/dist/post-components/p-fbcc89be.js +0 -1
- /package/dist/post-components/{p-4a3f67ab.js → p-8562c7dc.js} +0 -0
- /package/dist/post-components/{p-611b3c41.js → p-bacd3e2c.js} +0 -0
- /package/dist/post-components/{p-b22656b1.js → p-cb9ab938.js} +0 -0
- /package/dist/post-components/{p-d4f93f2b.js → p-e1baac59.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as i}from"./p-0e216cc4.js";import{s,a as r}from"./p-515e0f96.js";import{v as a}from"./p-0a74bc53.js";import{c}from"./p-4a3f67ab.js";import{c as n}from"./p-b095519d.js";const d=class{constructor(o){t(this,o),this.handleScroll=()=>{this.belowFold=this.isBelowFold()},this.label=void 0,this.belowFold=!1}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){t?s(this.el,this.translateY):r(this.el,this.translateY)}scrollToTop(){window.scrollTo({top:0})}validateLabel(){c(this.label,"string","The label property of the Back to Top component is required for accessibility purposes. Please ensure it is set."),n(this.label,"The label property of the Back to Top component must not be empty. Please provide a proper text for the label")}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.translateY=window.getComputedStyle(this.el).getPropertyValue("--post-floating-button-translate-y"),this.belowFold||(this.el.style.transform=`translateY(${this.translateY})`),this.belowFold&&s(this.el,this.translateY),this.validateLabel()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"92d56ff9055c2af38ae47b28c3af20771eed9a39","data-version":a},o("button",{key:"ae305dd5b5a3f8d97553945e547ad45e824e6b7d",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},o("post-icon",{key:"37792f99d6ef79df4260f6ad1c5780e545f7870a","aria-hidden":"true",name:"3026"}),o("span",{key:"8768101a26e259c2bd0695a97e6bb4077ad31ae6",class:"visually-hidden"},this.label)))}get el(){return i(this)}static get watchers(){return{belowFold:["watchBelowFold"],label:["validateLabel"]}}};d.style=":host{--post-floating-button-translate-y:calc(-1 * var(--post-core-dimension-112));position:fixed;top:var(--post-device-position-1);right:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{d as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_footer}from"./p-2747a945.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=(t,e)=>new MutationObserver((s=>{s.forEach((s=>{"attributes"===s.type&&s.attributeName===t&&e(s.target),"childList"===s.type&&s.addedNodes.forEach((s=>{s.nodeType===Node.ELEMENT_NODE&&s.hasAttribute(t)&&e(s)}))}))}));export{t as g}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion_item}from"./p-128b11b3.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-247a1668.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";import"./p-5959f2bd.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,H as a,g as e}from"./p-0e216cc4.js";import{v as s}from"./p-0a74bc53.js";import{c as r}from"./p-b095519d.js";var o;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(o||(o={}));const n=class{constructor(i){t(this,i),this.firstname=void 0,this.lastname=void 0,this.userid=void 0,this.email=void 0,this.slottedImage=void 0,this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials=""}validateFirstname(){r(this.firstname,"The `firstname` property of the `post-avatar` is required!")}async getAvatar(){if(null!==this.slottedImage)this.avatarType=o.Slotted;else{let t=!1;!t&&this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||this.getAvatarByInitials()}}async getImageByProp(t,i){var a;if(!t)return!1;const e=null!==(a=await this.getStorageItem(t))&&void 0!==a?a:{ok:!1,url:""};if(!e.ok)try{const t=await i();e.ok=t.ok,e.url=t.url,this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=o.Image,this.setStorageItem(this.userid,JSON.stringify(e))}catch(i){this.removeStorageItem(t),console.info(`Loading avatar by type "${o.Image}" failed.`)}return e.ok}async fetchImageByUserId(){return await fetch(n.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await this.cryptify(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}getAvatarByInitials(){this.initials=this.getInitials(),this.avatarType=o.Initials}getNames(){return[this.firstname,this.lastname].filter((t=>t))}getInitials(){return this.getNames().map((t=>t.charAt(0))).join("").trim()}async getStorageItem(t){var i;const a=await this.cryptify(t),e=null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i?void 0:i.getItem(a);return e?JSON.parse(e):null}async setStorageItem(t,i){var a;const e=await this.cryptify(t);null===(a=null===window||void 0===window?void 0:window.sessionStorage)||void 0===a||a.setItem(e,i)}async removeStorageItem(t){var i;const a=await this.cryptify(t);null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i||i.removeItem(a)}async cryptify(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}onSlotDefaultChange(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentWillRender(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentDidLoad(){this.validateFirstname()}render(){const t=this.getNames().reduce(((t,a,e)=>(e>0&&t.push(i("span",null," ")),t.push(a.charAt(0)),t.push(i("span",null,a.slice(1))),t)),[]);return i(a,{"data-version":s},i("slot",{onSlotchange:this.onSlotDefaultChange.bind(this)},"image"===this.avatarType&&i("img",{src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("div",{class:"initials"},t)))}get host(){return e(this)}static get watchers(){return{firstname:["validateFirstname"]}}};n.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",n.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.initials span:not(caption){position:absolute !important}';export{n as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as i,H as t,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-0a74bc53.js";import{c as s}from"./p-b22656b1.js";import{d as a}from"./p-d4f93f2b.js";const c=class{constructor(i){e(this,i),this.waitForBreadcrumbRef=a((()=>{var e;(null===(e=this.breadcrumbNavRef)||void 0===e?void 0:e.clientWidth)>0?this.checkConcatenation():this.waitForBreadcrumbRef()}),50),this.handleResize=()=>{window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.checkConcatenation())},this.homeUrl=void 0,this.homeText="Home",this.breadcrumbItems=[],this.isConcatenated=void 0,this.lastWindowWidth=void 0}validateUrl(){s(this.homeUrl,'The "url" property of the home-icon is invalid')}componentWillLoad(){this.updateBreadcrumbItems()}componentDidLoad(){window.addEventListener("resize",this.handleResize),this.waitForBreadcrumbRef()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateBreadcrumbItems(){this.breadcrumbItems=Array.from(this.host.querySelectorAll("post-breadcrumb-item")).map((e=>({text:e.textContent||"",url:e.getAttribute("url")||""}))),this.lastItem=this.breadcrumbItems[this.breadcrumbItems.length-1]}getParentWidth(){let e=this.host.parentNode;for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e instanceof HTMLElement?e.clientWidth:window.innerWidth}checkConcatenation(){var e;if(!this.breadcrumbNavRef)return;const i=this.getParentWidth(),t=Array.from((null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".hidden-breadcrumb-item"))||[]).reduce(((e,i)=>e+i.getBoundingClientRect().width),0);this.isConcatenated=t>i}handleBreadcrumbItemClick(){var e,i;if(this.host.shadowRoot){const t=null===(i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".menu-trigger-wrapper"))||void 0===i?void 0:i.querySelector("button");t&&t.click()}}render(){const e=this.breadcrumbItems.slice(0,-1);return i(t,{key:"1baffcf05840127383931baec809e2b94e402e5e","data-version":r},i("nav",{key:"c6725b8aa970f35f15f31ecc56280e7518b2dba9","aria-label":"Breadcrumb",class:"breadcrumbs-nav",ref:e=>this.breadcrumbNavRef=e},i("ol",{key:"3166f345dde9f7003b23f5e7a1ddbe587b3fb4be",class:"no-list breadcrumbs-list"},i("li",{key:"2efcbd6502cc5245ee63fd344a28c8aea4561cde"},i("a",{key:"b727c3d880ca9ebb7fc8527263a142662e4d42fd",href:this.homeUrl,class:"breadcrumb-link"},i("span",{key:"d683d05bce032759aa224e7a36ef5d7fb3883187",class:"visually-hidden"},this.homeText),i("post-icon",{key:"f17d5f56a49f0525d64414c079968d80b0c7eca3",name:"home",class:"home-icon"}))),this.isConcatenated?i("div",{class:"menu-trigger-wrapper","aria-label":"More breadcrumbs",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleBreadcrumbItemClick())}},i("post-icon",{name:"2111",class:"breadcrumb-item-icon"}),i("div",{class:"actual-menu"},i("post-menu-trigger",{for:"breadcrumb-menu",tabIndex:0},i("button",{class:"btn test",tabIndex:-1},"...")),i("post-menu",{id:"breadcrumb-menu"},e.map((e=>i("post-menu-item",{key:e.url||e.text,class:"breadcrumb-item",onKeyDown:e=>{if("Enter"===e.key||" "===e.key){const i=e.currentTarget.querySelector("a");null==i||i.click(),e.preventDefault()}}},e.url?i("a",{href:e.url},e.text):i("span",null,e.text))))))):e.map((e=>i("post-breadcrumb-item",{url:e.url,key:e.url||e.text},e.text))),this.lastItem&&i("post-breadcrumb-item",{key:"674dd84e23c325f874f57b92b0171b47d600d463",url:this.lastItem.url,"aria-current":"page",tabindex:-1},this.lastItem.text)),i("div",{key:"b4131833874403a8166446991510a36003a21aed",class:"hidden-items"},i("a",{key:"aa31950651d486afdb97974c24929cc80e0c3f53",href:this.homeUrl,class:"hidden-breadcrumb-item"},i("span",{key:"e9d1f5e225220a5942f8844dc26014f1278f935f",class:"visually-hidden"},this.homeText),i("post-icon",{key:"493a91739d10c3e536da52d636aca4b305f88273",name:"home",class:"home-icon"})),this.breadcrumbItems.map((e=>i("post-breadcrumb-item",{url:e.url,key:`hidden-${e.url||e.text}`,class:"hidden-breadcrumb-item"},e.text))))))}get host(){return o(this)}static get watchers(){return{homeUrl:["validateUrl"]}}};c.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{gap:var(--post-device-spacing-gap-inline-4);position:absolute;height:0;overflow:hidden;white-space:nowrap}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-trigger{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-bottom:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item a{text-decoration:none;color:inherit;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);font-size:var(--post-device-font-size-6)}.breadcrumb-item a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item a:focus-visible{border-radius:var(--post-device-border-radius-focus)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}post-breadcrumb-item:last-of-type{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:last-of-type:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";export{c as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as a,H as i,g as e}from"./p-0e216cc4.js";import{v as o}from"./p-0a74bc53.js";import{f as r,a as n}from"./p-2737eaf5.js";const h=class{constructor(a){t(this,a),this.postChange=s(this,"postChange",7),this.isLoaded=!1,this.activePanel=void 0}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-header")).filter((t=>t.closest("post-tabs")===this.host))}componentDidLoad(){var t;this.moveMisplacedTabs(),this.enableTabs();const s=this.activePanel||(null===(t=this.tabs[0])||void 0===t?void 0:t.panel);this.show(s),this.isLoaded=!0}async show(t){var s;if(t===(null===(s=this.activeTab)||void 0===s?void 0:s.panel))return;const a=this.activeTab,i=this.host.querySelector(`post-tab-header[panel=${t}]`);this.activateTab(i),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!a||this.showing||this.hiding||this.hidePanel(a.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{"tabs"!==t.getAttribute("slot")&&t.setAttribute("slot","tabs")}))}enableTabs(){var t;this.tabs&&(this.tabs.forEach((async t=>{var s;if(await(s=t,"function"==typeof s.componentOnReady?s.componentOnReady():new Promise((t=>{return a=()=>{t(s)},"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a);var a}))),t.getAttribute("aria-controls"))return;const a=this.getPanel(t.panel);t.setAttribute("aria-controls",a.id),a.setAttribute("aria-labelledby",t.id),t.addEventListener("click",(()=>{this.show(t.panel)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.panel))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(null===(t=this.tabs[0])||void 0===t?void 0:t.panel))}activateTab(t){this.activeTab&&(this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove("active")),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.classList.add("active"),this.activeTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=r(s),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.activeTab.panel);t.style.display="block",this.isLoaded&&(this.showing=n(t),this.showing.onfinish=()=>{this.showing=null})}getPanel(t){return this.host.querySelector(`post-tab-panel[name=${t}]`)}navigateTabs(t,s){const a=Array.from(this.tabs).indexOf(t);let i;i="ArrowRight"===s?this.tabs[a+1]||this.tabs[0]:this.tabs[a-1]||this.tabs[this.tabs.length-1],i&&i.focus()}render(){return a(i,{key:"27b5f90f8b6d8f0d3688b3c965fa666df5f8edab","data-version":o},a("div",{key:"4d811e26c2bed4abc63e89517dca0f6fd9f701c3",class:"tabs-wrapper",part:"tabs"},a("div",{key:"d740301189c1335c3d76520d6a5bfe3e75789d4a",class:"tabs",role:"tablist"},a("slot",{key:"9b3dc7e7d05b8577dfb480d684cf423a8adc2a23",name:"tabs",onSlotchange:()=>this.enableTabs()}))),a("div",{key:"fe219c0eaad3c67bea5a47f0690a8bdda0c739aa",class:"tab-content",part:"content"},a("slot",{key:"80d8eb9fe9292e4c2486fded48928ffc9c5219bf",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return e(this)}};h.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}';export{h as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as a,g as r}from"./p-0e216cc4.js";import{v as e}from"./p-0a74bc53.js";const o=class{constructor(i){t(this,i),this.postInput=s(this,"postInput",7),this.postChange=s(this,"postChange",7),this.hasChanged=!1,this.hoveredIndex=void 0,this.label="Rating",this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return i(a,{key:"bb4ab7c2ae609e8e288c62516be93f0b96926eff","data-version":e},i("div",{key:"0176474611f998938aef0b267c118478d6623fbc",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} out of ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>i("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},i("post-icon",{name:"2062",class:"stroke"}),i("post-icon",{name:"2574",class:"fill"}))))))}get host(){return r(this)}};o.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";export{o as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion}from"./p-df9ea014.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as i,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-0a74bc53.js";import{b as s}from"./p-5467b223.js";const c=class{constructor(t){e(this,t),this.url=void 0}validateUrl(){try{this.validUrl=this.constructUrl(this.url)}catch(e){this.validUrl=void 0}}constructUrl(e){const t=/^https?:\/\//.test(String(this.url));if("string"==typeof e){const i=t?e:`${window.location.origin}${e}`;return s(i,'The "url" property of the post-breadcrumb-item is invalid'),i}}connectedCallback(){this.validateUrl()}handleKeyDown(e){var t;if("Enter"===e.key||" "===e.key){const i=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("a");i&&(e.preventDefault(),i.click())}}render(){const e=this.validUrl?"a":"span";return t(i,{key:"b64295c6b59c2e200fe0eae5483e60b733f5eb8c","data-version":r},t("post-icon",{key:"0e8a0712f03b551206e8cfeef51446f318d60f20",name:"2111",class:"breadcrumb-item-icon"}),t(e,Object.assign({key:"d3e218f0b3b8feab97cbce6a8190dcddc0b92c92",class:"breadcrumb-item"},this.validUrl?{href:this.validUrl}:{},{onKeyDown:e=>this.handleKeyDown(e)}),t("slot",{key:"dea5990614b38fcaab1fae46aafa6c2ed652cf9a"})))}get host(){return o(this)}static get watchers(){return{url:["validateUrl"]}}};c.style=":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";const a=class{constructor(t){e(this,t)}render(){return t(i,{key:"1cd717c2bbc991b33acba0bbfa5d5a2412f6dcc7",role:"menuitem","data-version":r},t("slot",{key:"fe09373b79d299f21ebfdf596bab4d4bc30a9060"}))}};export{c as P,a}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_card_control}from"./p-15173f46.js";import"./p-0e216cc4.js";import"./p-611b3c41.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-0a74bc53.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tab_header}from"./p-012a39b8.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-5959f2bd.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,g as i,c as n}from"./p-0e216cc4.js";import{v as a}from"./p-0a74bc53.js";import{s,a as r}from"./p-515e0f96.js";import{c as l,d as c,b as d}from"./p-5467b223.js";import{c as p}from"./p-b095519d.js";import{c as h}from"./p-4a3f67ab.js";import{n as u}from"./p-5959f2bd.js";import{g as f}from"./p-fc91cbc2.js";const g=class{constructor(e){t(this,e)}render(){return e(o,{key:"cb5be35247053b1227c32f7949baca51ccc31081","data-version":a},e("button",{key:"ece4ca00fedfd0ee76a971ca2a9cf0cf9a1e7f0c",class:"btn btn-icon-close",type:"button"},e("post-icon",{key:"c14a15906a1f229d642c2a8aea456f7a4acc5619","aria-hidden":"true",name:"closex"}),e("span",{key:"94757c5e870f57ec8ba0c52fc5bb2a1f6eed91c2",class:"visually-hidden"},e("slot",{key:"a76c388cceca0b7d4da01b8e737e65f24d11df23"}))))}get host(){return i(this)}},m=class{constructor(e){t(this,e),this.scrollParent=null,this.throttledScroll=()=>this.handleScrollEvent(),this.throttledResize=function(t,e){var o,i={},n=i.noTrailing,a=void 0!==n&&n,s=i.noLeading,r=void 0!==s&&s,l=i.debounceMode,c=void 0===l?void 0:l,d=!1,p=0;function h(){o&&clearTimeout(o)}function u(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var s=this,l=Date.now()-p;function u(){p=Date.now(),e.apply(s,i)}function f(){o=void 0}d||(r||!c||o||u(),h(),void 0===c&&l>50?r?(p=Date.now(),a||(o=setTimeout(c?f:u,50))):u():!0!==a&&(o=setTimeout(c?f:u,void 0===c?50-l:50)))}return u.cancel=function(t){var e=(t||{}).upcomingOnly,o=void 0!==e&&e;h(),d=!o},u}(0,(()=>this.handleResize())),this.device=null,this.mobileMenuExtended=!1}componentWillRender(){this.scrollParent=this.getScrollParent(this.host),this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:!0}),window.addEventListener("resize",this.throttledResize,{passive:!0}),this.handleResize(),this.handleScrollEvent()}frozeBody(t){document.body.style.overflow=t?"hidden":""}async toggleMobileMenu(){"desktop"!==this.device&&(this.mobileMenuAnimation=this.mobileMenuExtended?s(this.mobileMenu):r(this.mobileMenu),this.host.querySelector("post-togglebutton").toggled=!this.mobileMenuExtended,this.mobileMenuExtended&&await this.mobileMenuAnimation.finished,this.mobileMenuExtended=!this.mobileMenuExtended,this.mobileMenuExtended||await this.mobileMenuAnimation.finished)}handleScrollEvent(){const t=Math.max(0,this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop);this.host.style.setProperty("--header-scroll-top",`${t}px`)}getScrollParent(t){let e=t.parentElement;for(;e;){if("BODY"===e.nodeName)return document;if(this.isScrollable(e))return e;e=e.parentElement}return document}isScrollable(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const o=e.getPropertyValue(t);return"auto"===o||"scroll"===o}))}handleResize(){var t;const e=this.device;let o;const i=null===window||void 0===window?void 0:window.innerWidth;o=i>=1024?"desktop":i>=600?"tablet":"mobile","desktop"===o&&this.mobileMenuExtended&&(this.toggleMobileMenu(),this.mobileMenuAnimation.finish());const n=null===(t=this.host.shadowRoot.querySelector(".title-header"))||void 0===t?void 0:t.clientHeight;this.host.style.setProperty("--main-header-height",`${n}px`),o!==e&&(this.device=o,window.requestAnimationFrame((()=>{this.switchLanguageSwitchMode()})))}switchLanguageSwitchMode(){var t;const e="desktop"===this.device?"menu":"list";null===(t=this.host.querySelector("post-language-switch"))||void 0===t||t.setAttribute("variant",e)}render(){const t=["navigation"];return this.mobileMenuExtended&&t.push("extended"),e(o,{key:"008e84568ce41249365d93169b2f94cd988601d0",version:a},e("div",{key:"f6415c30b3bfacd01a65166c7f0a3afc37676cc8",class:"global-header"},e("div",{key:"dc1465a3a68ce8c66c7da644d992c37d8d09ccc4",class:"global-sub"},e("div",{key:"490b4afe502465bc20ccc41149533929987f2fab",class:"logo"},e("slot",{key:"28ee1cdb2804f6315fffa2c319a1e2fa1e54ad08",name:"post-logo"}))),e("div",{key:"777d715f4718bb6738665f3d65c9ee4729a977de",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"c1ddbfdecc96fe3a6efb930d8475ee880059d372",name:"meta-navigation"}),e("slot",{key:"df1ccf5c36ea4a05812c3983961389c42c42ddb9",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"ace2dda9a3f3d898934c7d47c84e2475fb555e5d",name:"post-language-switch"}),e("div",{key:"3e8d94d9534d5daaa2f8e6ca5cc0833e78a49224",onClick:()=>this.toggleMobileMenu(),class:"mobile-toggle"},e("slot",{key:"58e3637f103411f5e577dba931caf884f46a6e47",name:"post-togglebutton"})))),e("div",{key:"f90ff065ed795fc780c90768e5c0ab5a431bec8d",class:"title-header "+(this.mobileMenuExtended?"title-header-mobile-extended":"")},e("slot",{key:"a1aaaf02da073b9e7de82e84c93745afa6a8c4e9",name:"title"}),e("div",{key:"84ae2f8b846536130967362de160e054049c8489",class:"global-sub"},e("slot",{key:"8a845cd7f87b3a2c2fba7ffc1ace31e87f6329d9",name:"local-controls"}),e("slot",{key:"f3822b883fc88436a84d3ca7f840946af992417e"}))),e("div",{key:"8e0390c6c2b9a71488eea73c9207d0c336c9b75d",ref:t=>this.mobileMenu=t,class:t.join(" ")},e("slot",{key:"5fc2db060eb962c313fc4c9ab67032e990ff54c6",name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("div",{key:"7b9147dcf5de01865785d417c8d1966efb891ace",class:"navigation-footer"},e("slot",{key:"6e163a7dad7b0b0fc02493cd15152179d4242980",name:"meta-navigation"}),e("slot",{key:"e8fd19eeed8a99d69ccd8635e36cd0256ed4424b",name:"post-language-switch"}))))}get host(){return i(this)}static get watchers(){return{mobileMenuExtended:["frozeBody"]}}};m.style="*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--global-header-minimal-height:24px;--main-header-height:56px;--main-header-min-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (min-width: 1024px){:host{display:block;position:sticky;inset-inline:0;inset-block-start:calc(-1*(var(--global-header-height) + var(--main-header-height) - var(--global-header-minimal-height)));box-shadow:var(--post-core-elevation-3)}}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px;--main-header-height:48px;--main-header-min-height:48px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline:var(--post-core-dimension-4);height:var(--global-header-height);z-index:1}@media screen and (max-width: 1023.99px){.global-header{inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{padding-inline-end:var(--post-core-dimension-12);top:calc((var(--global-header-height) - var(--global-header-minimal-height))*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:var(--post-core-dimension-24)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:var(--global-header-minimal-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem;flex-shrink:0 !important}.title-header{display:flex;align-items:center;gap:var(--post-core-dimension-8);min-height:var(--main-header-min-height);justify-content:space-between;background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.title-header{padding:var(--post-core-dimension-18) var(--post-core-dimension-16) var(--post-core-dimension-4) var(--post-core-dimension-12)}}@media screen and (max-width: 1023.99px){.title-header{position:sticky;z-index:1;inset-block-start:var(--global-header-height);padding-inline:var(--post-core-dimension-8) var(--post-core-dimension-16);padding-block:var(--post-core-dimension-9);flex-wrap:wrap}.title-header.title-header-mobile-extended{border-bottom:1px solid var(--post-core-color-sandgrey-012)}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;flex-shrink:10}@media screen and (min-width: 1024px){::slotted(h1){font-size:var(--post-core-font-size-28) !important}}@media screen and (max-width: 1023.99px){::slotted(h1){font-size:var(--post-core-font-size-20) !important;max-width:calc(100vw - var(--post-core-dimension-8) - var(--post-core-dimension-16))}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.navigation{position:sticky;z-index:1;inset-block-start:var(--global-header-minimal-height)}}@media screen and (max-width: 1023.99px){.navigation{position:fixed;inset-inline:0;inset-block-end:calc(100vh - var(--header-height));box-shadow:var(--post-core-elevation-3);min-height:var(--post-core-dimension-10);max-height:calc(100vh - var(--header-height));overflow:auto}::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column;padding-block:var(--post-core-dimension-16) var(--post-core-dimension-24);padding-inline:var(--post-core-dimension-32)}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}::slotted(post-mainnavigation){background-color:var(--post-core-color-sandgrey-002);gap:var(--post-core-dimension-32)}.navigation-footer{background-color:var(--post-core-color-sandgrey-006);gap:var(--post-core-dimension-24)}}";const b=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],v=class{constructor(e){t(this,e),this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(t=this.animation){void 0!==t&&l(t,b,`The post-icon "animation" prop requires one of the following values: ${b.join(", ")}.`)}validateBase(t=this.base){c(t,"string",'The post-icon "base" prop should be a string.')}validateFlipH(t=this.flipH){c(t,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(t=this.flipV){c(t,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(t=this.name){p(t,'The post-icon "name" prop is required!.'),h(t,"string",'The post-icon "name" prop should be a string.')}validateRotate(t=this.rotate){c(t,"number",'The post-icon "rotate" prop should be a number.')}validateScale(t=this.scale){c(t,"number",'The post-icon "scale" prop should be a number.')}getPath(){var t,e,o,i,n,a;const s=null!==(e=null===(t=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===t?void 0:t.getAttribute("data-post-icon-base"))&&void 0!==e?e:null,r=null===(o=document.getElementsByTagName("base")[0])||void 0===o?void 0:o.href,l=`${null!==(a=null!==(n=null!==(i=this.base)&&void 0!==i?i:s)&&void 0!==n?n:r)&&void 0!==a?a:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");return new URL(`${l}${this.name}.svg`,window.location.origin).toString()}getStyles(){const t=this.getPath();return Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,o])=>Object.assign(t,{[e]:o})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(o,{key:"70e13e357929d2601de3b61f46f9a717ba491fd5","data-version":a},e("span",{key:"a0c40175bfa6bd06f3498dc056685c8396b6e706",style:this.getStyles()}))}get host(){return i(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};v.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";const w=class{constructor(e){t(this,e),this.postChange=n(this,"postChange",7),this.code=void 0,this.active=void 0,this.variant=void 0,this.name=void 0,this.url=void 0}validateCode(t=this.code){h(t,"string",'The "code" property of the post-language-option component must be a string.')}validateActiveProp(t=this.active){c(t,"boolean",'The "active" property of the post-language-option component must be a boolean value.')}validateName(t=this.name){c(t,"string",'The "name" property of the post-language-option component must be a string.')}validateUrl(t=this.url){c(t,"string",'The "url" property of the post-language-option component must be a valid URL.')}componentDidLoad(){if(this.validateCode(),this.validateActiveProp(),this.validateName(),this.validateUrl(),!this.name&&this.isNameRequired())throw new Error('The "name" property of the post-language-option component is required when the full language name is not displayed.')}async select(){this.active=!0,this.emitChange()}emitChange(){this.postChange.emit(this.code)}isNameRequired(){return this.host.textContent.toLowerCase()===this.code.toLowerCase()}render(){const t=this.code.toLowerCase(),i=t=>{"Enter"!==t.key&&" "!==t.key||this.emitChange()};return e(o,{key:"6a7c4af5ab0a953cc2c70621efc6fff905638900","data-version":a,role:this.variant?`${this.variant}item`:null},this.url?e("a",{"aria-current":this.active?"page":void 0,"aria-label":this.name,href:this.url,hrefLang:t,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)):e("button",{"aria-current":this.active?"true":void 0,"aria-label":this.name,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)))}get host(){return i(this)}static get watchers(){return{code:["validateCode"],active:["validateActiveProp"],name:["validateName"],url:["validateUrl"]}}};w.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}post-language-option a{color:inherit;text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;height:100%;width:100%;padding:var(--post-language-option-padding);border-radius:2px}post-language-option :is(a,button){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-language-option:where([variant=list]) :is(a,button){width:40px;height:40px}post-language-option:where([variant=list]) :is(a,button):hover{color:#504f4b}post-language-option:where([variant=list]) :is(a,button)[aria-current=true],post-language-option:where([variant=list]) :is(a,button)[aria-current=page]{background-color:#050400;color:#fff}post-language-option:where([variant=list]) :is(a,button)[aria-current=true]:hover,post-language-option:where([variant=list]) :is(a,button)[aria-current=page]:hover{background-color:#504f4b}post-language-option:where([variant=menu]){width:100%}post-language-option:where([variant=menu]) :is(a,button){padding-block:13px;padding-inline:24px;box-sizing:border-box;position:relative;left:-1px;width:calc(100% + 2px)}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]::after{content:"";left:0;height:3px;background-color:#050400;width:100%;display:block;position:absolute;bottom:3px}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]:hover::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]:hover::after{background-color:#504f4b}post-language-option:where([variant=menu]) :is(a,button):hover{color:#504f4b}';const y=["list","menu"],x=class{constructor(e){t(this,e),this.menuId=`p${u(11)}`,this.caption=void 0,this.description=void 0,this.variant="list",this.activeLang=void 0}validateCaption(t=this.caption){h(t,"string",'The "caption" property of the post-language-switch component must be a string.')}validateDescription(t=this.description){h(t,"string",'The "description" property of the post-language-switch component must be a string.')}validateVariant(t=this.variant){l(t,y,`The "variant" property of the post-language-switch component must be: ${y.join(", ")}`)}connectedCallback(){this.updateChildrenVariant(),this.activeLang=Array.from(this.host.querySelectorAll("post-language-option")).find((t=>"true"==t.getAttribute("active"))).getAttribute("code")}updateChildrenVariant(){this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("variant",this.variant)}))}componentWillUpdate(){this.updateChildrenVariant()}componentDidLoad(){this.validateCaption(),this.validateDescription(),this.validateVariant(),this.host.addEventListener("postChange",(t=>{if(this.activeLang=t.detail,this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("active",t.code&&t.code===this.activeLang?"true":"false")})),"menu"===this.variant){const t=this.host.shadowRoot.querySelector("post-menu");t.toggle(t)}}))}renderList(){return e(o,{"data-version":a,"aria-label":`${this.caption}, ${this.description}`,"aria-role":"list"},e("slot",null))}renderDropdown(){return e(o,{"data-version":a},e("post-menu-trigger",{for:this.menuId},e("button",{class:"post-language-switch-trigger","aria-label":`${this.caption}, ${this.description}`},this.activeLang.toUpperCase(),e("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),e("post-menu",{id:this.menuId,class:"post-language-switch-dropdown-container"},e("slot",null)))}render(){return"list"===this.variant?this.renderList():this.renderDropdown()}get host(){return i(this)}static get watchers(){return{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}}};x.style=":host{display:block}@media screen and (max-width: 1023.99px){:host{display:flex !important;gap:.5rem}}.post-language-switch-dropdown-container{display:flex;flex-direction:column}.post-language-switch-dropdown-container>*{width:100%}.post-language-switch-trigger{cursor:pointer;padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-decoration:none;display:inline-flex;align-items:center;gap:var(--post-core-dimension-6);border-radius:var(--post-core-dimension-24);font-size:var(--post-core-font-size-16);padding:var(--post-core-dimension-3) var(--post-core-dimension-10)}.post-language-switch-trigger{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-language-switch-trigger:not(:disabled):hover,.post-language-switch-trigger.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.post-language-switch-trigger post-icon{height:var(--post-core-dimension-16);width:var(--post-core-dimension-16)}";const k=class{constructor(e){t(this,e),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`title-${this.host.id||u(6)}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.textContent.trim())throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(o,{key:"70594af566e1fe34ce0b9ebe1a8cbbc868dab973","data-version":a},e("div",{key:"27b6c4af3d51a0d83f968ec751b6bcf46feb7d05",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"a913bd018199bb031e3d96d487bd528831453387"})),e("div",{key:"e1a3ddecc643a78f57b91cc9ccb0de6b02302a47",role:"list","aria-labelledby":this.titleId},e("slot",{key:"bd7c6df300d28fe0b9f1dd3135eb42da00e731b9",name:"post-list-item"})))}get host(){return i(this)}};k.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;flex-direction:column;gap:var(--post-list-title-gap, 0)}post-list>[role=list]{display:flex;flex-direction:column;gap:var(--post-list-item-gap, 0)}post-list:where([horizontal]:not([horizontal=false])){flex-direction:row;align-items:center}post-list:where([horizontal]:not([horizontal=false]))>[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const T=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(o,{key:"f7b26e05f1fa8bab9909dcee305dbf74960671eb",role:"listitem",slot:"post-list-item"},e("slot",{key:"3d75b0acf3f4a89c64c447e8d182bbc9a4f930a0"}))}get host(){return i(this)}};T.style=":host{display:flex}";const E=class{constructor(e){t(this,e),this.url=void 0}validateUrl(){d(this.url,'The "url" property of the post-logo is invalid')}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(o,{key:"c20cf7b8d3684d33cf9b85448a560a93cd4df118","data-version":a},e(t?"a":"span",Object.assign({key:"16f5f647935c87124d7bf1be5dd5fb4c6d56a76f",class:"logo "+(t?"logo-link":"")},t?{href:t}:{}),e("span",{key:"1373265c0c2271069c1ee540fb6d5576e67dd923",class:"description"},e("slot",{key:"d52c8c0d28e8292f7a30733dc195e1e1e32edf2a",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"ad1c0ff356325415a1f99c4bc941895d1448801a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"ca8015671b16c192d44a1b48699e45ff7adc6123",id:"Logo"},e("rect",{key:"e862e2ea34630326ca6f6eea164f227b138d44c1",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"d25e571bd67524c33c343312826e37dafedf918c",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"a053c52cf9de963d52bc6a0f078a986c836b6038",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}static get watchers(){return{url:["validateUrl"]}}};E.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link :focus,:focus-visible{border-radius:2px}";const C=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7)}connectedCallback(){this.header=this.host.closest("post-header")}disconnectedCallback(){this.header=null}handleBackButtonClick(){this.header&&this.header.toggleMobileMenu()}render(){return e(o,{key:"23d1cc3919d15543bf409e8fa25be02973532a12",slot:"post-mainnavigation"},e("div",{key:"8d35b8b7715fbac387361706a03a10e4af481301",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"01899ddef2cdc321ff7383eec310877335e951a7",name:"back-button"})),e("nav",{key:"3237225f2608b28355e669e11189ba1ccc9c593a"},e("slot",{key:"32105f3acf726a590631896c707a2149706a90d5"})))}get host(){return i(this)}};C.style="post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:\"\";mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}post-mainnavigation [slot=back-button]{display:none}}@media screen and (max-width: 1023.99px){post-mainnavigation post-list>[role=list]{transform:none !important}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;height:var(--post-core-dimension-48);padding-inline-end:var(--post-core-dimension-6);gap:var(--post-core-dimension-16);border-block:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-block-end-color:currentColor;font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button.selected{border-block-width:var(--post-core-dimension-3)}post-mainnavigation post-list-item>a:hover::after,post-mainnavigation post-list-item>button:hover::after,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::after{content:\"\";display:block;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;width:var(--post-core-dimension-24);height:var(--post-core-dimension-24)}}post-mainnavigation .back-button .btn{padding-inline:0}";const S=class{constructor(e){t(this,e),this.postToggleMegadropdown=n(this,"postToggleMegadropdown",7),this.isVisible=!1,this.animationClass=null}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.postToggleMegadropdown.emit(this.isVisible)})),this.popoverRef.addEventListener("animationend",(()=>{"slide-out"===this.animationClass&&this.hide()}))}async toggle(t){this.isVisible?this.hide():await this.show(t)}async show(t){this.popoverRef?(await this.popoverRef.show(t),this.animationClass="slide-in"):console.error("show: popoverRef is null or undefined")}hide(){this.popoverRef?this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handleBackButtonClick(){this.animationClass="slide-out"}handleCloseButtonClick(){this.popoverRef.hide()}handleFocusout(t){const e=t.relatedTarget;this.popoverRef.querySelector(".megadropdown").contains(e)||this.hide()}render(){return e(o,{key:"cb7df3441b1c064045c6d27cd7e20376a62de57c"},e("post-popovercontainer",{key:"8c2de3df3d1dd59187f463d751654958326dde02",class:this.animationClass,placement:"bottom","edge-gap":"0",ref:t=>this.popoverRef=t},e("div",{key:"392182e1d6206c969fc64b1758d121e1ab6361f3",class:"megadropdown",onFocusout:t=>this.handleFocusout(t)},e("div",{key:"45742e41d227d0481436bd49de065044a2ce5e35",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"5607a569924faba3be599b6e1f53f4a8704b2f05",name:"back-button"})),e("div",{key:"c1a99e2d25af71fc3122e1173549ad7fe1d920b7",onClick:()=>this.handleCloseButtonClick(),class:"close-button"},e("slot",{key:"82059d749600e18e63c836d5ab6697eb50ec91cf",name:"close-button"})),e("slot",{key:"eea5e876c1ae5558a3c5c6301b298e564d8b75b0",name:"megadropdown-title"}),e("div",{key:"16b0f351786aef2827ce08163a554e49c40f224b",class:"megadropdown-content"},e("slot",{key:"97e5230769b01070e488f71704740ec27de9f2d4"})))))}get host(){return i(this)}};S.style="@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;border:none;border-top:1px solid #e1e0dc;width:100%;border-radius:0;box-shadow:0 8px 6px rgba(0,0,0,.16)}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto;border-top:unset}post-popovercontainer.slide-in{animation:slide-in;animation-duration:350ms;animation-fill-mode:forwards}post-popovercontainer.slide-out{animation:slide-out;animation-duration:350ms;animation-fill-mode:forwards}}.megadropdown{padding:31px 40px 40px}@media screen and (max-width: 1023.99px){.megadropdown{padding:16px 32px 24px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.99px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.99px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-top:0;margin-bottom:8px;font-weight:900}.megadropdown h2 a{text-decoration:none;font-weight:inherit;border-bottom:0;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown h2{display:block;font-size:20px}}.megadropdown a:hover{border-block-width:0}.megadropdown a:hover::after{content:unset}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;border-bottom:1px solid #050400;padding:15px 12px 14px 0;display:block;font-weight:900}.megadropdown post-list .list-title h3 a{text-decoration:none;width:100%;font-size:inherit;display:inline-block;font-weight:inherit;height:unset;padding:0;border:0}@media screen and (max-width: 1023.99px){.megadropdown post-list .list-title h3{font-size:16px;padding:12px 12px 11px 0}}.megadropdown post-list-item{border-bottom:1px solid #050400}.megadropdown post-list-item>a{padding:13px 12px 12px 0;display:block;text-decoration:none;width:100%;border-bottom:0;height:auto;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown post-list-item>a{padding:12px 12px 11px 0}}.megadropdown .back-button{display:none;margin-bottom:2rem}.megadropdown .back-button .btn{width:auto}.megadropdown .back-button post-icon{transform:rotate(180deg)}@media screen and (max-width: 1023.99px){.megadropdown .back-button{display:block}}.megadropdown .close-button{position:absolute;top:1rem;right:1rem}@media screen and (max-width: 1023.99px){.megadropdown .close-button{display:none}}";const A=class{constructor(e){t(this,e),this.slottedButton=null,this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get megadropdown(){const t=document.getElementById(this.for);return t&&"post-megadropdown"===t.localName?t:null}handleToggle(){this.megadropdown?this.megadropdown.toggle(this.host):console.warn(`No post-megadropdown found with ID: ${this.for}`)}componentDidLoad(){this.validateControlFor(),document.addEventListener("postToggleMegadropdown",(t=>{t.target.id===this.for&&(this.ariaExpanded=t.detail,this.slottedButton&&this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()))})),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()}))):console.warn("No button found within post-megadropdown-trigger")}render(){return e(o,{key:"ba9b6922d4f4eac596f7d1310a5a1bf534b156d8","data-version":a,"tab-index":"-1"},e("button",{key:"5fe4ea7f385897606f472ea72be84399e76550e2"},e("slot",{key:"333f583f0db191599c4be9be9647789b2ea1ecaf"})))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};A.style="post-megadropdown-trigger{width:100%}";const M=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,L=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *",'[tabindex^="-"]'].join(",")})`,z=class{constructor(e){t(this,e),this.toggleMenu=n(this,"toggleMenu",7),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)},this.placement="bottom",this.isVisible=!1}connectedCallback(){this.root=f(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible)}))}async toggle(t){this.isVisible?await this.hide():await this.show(t)}async show(t){if(this.popoverRef){await this.popoverRef.show(t),this.lastFocusedElement=this.root.activeElement;const e=this.getSlottedItems();e.length>0&&e[0].focus()}else console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?(await this.popoverRef.hide(),this.lastFocusedElement&&this.lastFocusedElement.focus()):console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const e=this.getSlottedItems();if(!e.length)return;let o=e.findIndex((t=>t===f(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%e.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:o=e.length-1;break;case this.KEYCODES.SPACE:case this.KEYCODES.ENTER:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[o]&&e[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot");return(t?t.assignedElements():[]).flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).filter((t=>"menuitem"===t.getAttribute("role"))).flatMap((t=>Array.from(t.querySelectorAll(`& > ${M}:not(${L})`))))}render(){return e(o,{key:"68c4661d3ab9256dadbbe3243247456c090b728e","data-version":a},e("post-popovercontainer",{key:"b6cb0624239e0ed5aeadac63ffb1b1f7fb0e873e",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"608f677ae715eb09ed46fde9912241dc35673e06",class:"popover-container",part:"popover-container"},e("slot",{key:"83f84b7b29b4d7c9d4e0924026ca7469c1f0cfb0"}))))}get host(){return i(this)}};z.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}.popover-container{display:flex;flex-direction:column}";const D=class{constructor(e){t(this,e),this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())},this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){const t=this.menu;t&&this.slottedButton?(this.ariaExpanded=!this.ariaExpanded,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()),t.toggle(this.host)):console.warn(`No post-menu found with ID: ${this.for}`)}componentDidLoad(){if(this.root=f(this.host),this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),!this.slottedButton){const t=this.host.querySelector(".menu-trigger-webc");if(t.shadowRoot){const e=t.shadowRoot.querySelector("button");e&&(this.slottedButton=e)}}this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return e(o,{key:"5bdaebd0c1f46fda5804c0e8d39ab3e714b523c5","data-version":a,"tab-index":"-1"},e("slot",{key:"ffee26535991d712f44cb1859a5976ec89ad772a"}))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};D.style=":host{display:inline-block}";const H=Math.min,j=Math.max,$=Math.round,O=Math.floor,R=t=>({x:t,y:t}),F={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function B(t,e,o){return j(t,H(e,o))}function N(t,e){return"function"==typeof t?t(e):t}function W(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function I(t){return"x"===t?"y":"x"}function U(t){return"y"===t?"height":"width"}function V(t){return["top","bottom"].includes(W(t))?"y":"x"}function X(t){return I(V(t))}function Y(t){return t.replace(/start|end/g,(t=>P[t]))}function K(t){return t.replace(/left|right|bottom|top/g,(t=>F[t]))}function G(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function _(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function J(t,e,o){let{reference:i,floating:n}=t;const a=V(e),s=X(e),r=U(s),l=W(e),c="y"===a,d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[r]/2-n[r]/2;let u;switch(l){case"top":u={x:d,y:i.y-n.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:p};break;case"left":u={x:i.x-n.width,y:p};break;default:u={x:i.x,y:i.y}}switch(q(e)){case"start":u[s]-=h*(o&&c?-1:1);break;case"end":u[s]+=h*(o&&c?-1:1)}return u}async function Q(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:a,rects:s,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:u=0}=N(e,t),f=G(u),g=r[h?"floating"===p?"reference":"floating":p],m=_(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...s.floating,x:i,y:n}:s.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(r.floating)),w=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},y=_(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-y.top+f.top)/w.y,bottom:(y.bottom-m.bottom+f.bottom)/w.y,left:(m.left-y.left+f.left)/w.x,right:(y.right-m.right+f.right)/w.x}}function Z(t){const e=H(...t.map((t=>t.left))),o=H(...t.map((t=>t.top)));return{x:e,y:o,width:j(...t.map((t=>t.right)))-e,height:j(...t.map((t=>t.bottom)))-o}}function tt(){return"undefined"!=typeof window}function et(t){return nt(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function it(t){var e;return null==(e=(nt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function nt(t){return!!tt()&&(t instanceof Node||t instanceof ot(t).Node)}function at(t){return!!tt()&&(t instanceof Element||t instanceof ot(t).Element)}function st(t){return!!tt()&&(t instanceof HTMLElement||t instanceof ot(t).HTMLElement)}function rt(t){return!(!tt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot)}function lt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function ct(t){return["table","td","th"].includes(et(t))}function dt(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function pt(t){const e=ht(),o=at(t)?ft(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!o[t]&&"none"!==o[t]))||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ut(t){return["html","body","#document"].includes(et(t))}function ft(t){return ot(t).getComputedStyle(t)}function gt(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if("html"===et(t))return t;const e=t.assignedSlot||t.parentNode||rt(t)&&t.host||it(t);return rt(e)?e.host:e}function bt(t){const e=mt(t);return ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&<(e)?e:bt(e)}function vt(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=bt(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),s=ot(n);if(a){const t=wt(s);return e.concat(s,s.visualViewport||[],lt(n)?n:[],t&&o?vt(t):[])}return e.concat(n,vt(n,[],o))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yt(t){const e=ft(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=st(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,r=$(o)!==a||$(i)!==s;return r&&(o=a,i=s),{width:o,height:i,$:r}}function xt(t){return at(t)?t:t.contextElement}function kt(t){const e=xt(t);if(!st(e))return R(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:a}=yt(e);let s=(a?$(o.width):o.width)/i,r=(a?$(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),r&&Number.isFinite(r)||(r=1),{x:s,y:r}}const Tt=R(0);function Et(t){const e=ot(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Tt}function Ct(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),a=xt(t);let s=R(1);e&&(i?at(i)&&(s=kt(i)):s=kt(t));const r=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ot(t))&&e}(a,o,i)?Et(a):R(0);let l=(n.left+r.x)/s.x,c=(n.top+r.y)/s.y,d=n.width/s.x,p=n.height/s.y;if(a){const t=ot(a),e=i&&at(i)?ot(i):i;let o=t,n=wt(o);for(;n&&i&&e!==o;){const t=kt(n),e=n.getBoundingClientRect(),i=ft(n),a=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=a,c+=s,o=ot(n),n=wt(o)}}return _({width:d,height:p,x:l,y:c})}function St(t,e){const o=gt(t).scrollLeft;return e?e.left+o:Ct(it(t)).left+o}function At(t,e,o){void 0===o&&(o=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(o?0:St(t,i)),y:i.top+e.scrollTop}}function Mt(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=ot(t),i=it(t),n=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,r=0,l=0;if(n){a=n.width,s=n.height;const t=ht();(!t||t&&"fixed"===e)&&(r=n.offsetLeft,l=n.offsetTop)}return{width:a,height:s,x:r,y:l}}(t,o);else if("document"===e)i=function(t){const e=it(t),o=gt(t),i=t.ownerDocument.body,n=j(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=j(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+St(t);const r=-o.scrollTop;return"rtl"===ft(i).direction&&(s+=j(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:r}}(it(t));else if(at(e))i=function(t,e){const o=Ct(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=st(t)?kt(t):R(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:n*a.x,y:i*a.y}}(e,o);else{const o=Et(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return _(i)}function Lt(t,e){const o=mt(t);return!(o===e||!at(o)||ut(o))&&("fixed"===ft(o).position||Lt(o,e))}function zt(t,e,o){const i=st(e),n=it(e),a="fixed"===o,s=Ct(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const l=R(0);if(i||!i&&!a)if(("body"!==et(e)||lt(n))&&(r=gt(e)),i){const t=Ct(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=St(n));const c=!n||i||a?R(0):At(n,r);return{x:s.left+r.scrollLeft-l.x-c.x,y:s.top+r.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Dt(t){return"static"===ft(t).position}function Ht(t,e){if(!st(t)||"fixed"===ft(t).position)return null;if(e)return e(t);let o=t.offsetParent;return it(t)===o&&(o=o.ownerDocument.body),o}function jt(t,e){const o=ot(t);if(dt(t))return o;if(!st(t)){let e=mt(t);for(;e&&!ut(e);){if(at(e)&&!Dt(e))return e;e=mt(e)}return o}let i=Ht(t,e);for(;i&&ct(i)&&Dt(i);)i=Ht(i,e);return i&&ut(i)&&Dt(i)&&!pt(i)?o:i||function(t){let e=mt(t);for(;st(e)&&!ut(e);){if(pt(e))return e;if(dt(e))return null;e=mt(e)}return null}(t)||o}const $t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const a="fixed"===n,s=it(i),r=!!e&&dt(e.floating);if(i===s||r&&a)return o;let l={scrollLeft:0,scrollTop:0},c=R(1);const d=R(0),p=st(i);if((p||!p&&!a)&&(("body"!==et(i)||lt(s))&&(l=gt(i)),st(i))){const t=Ct(i);c=kt(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const h=!s||p||a?R(0):At(s,l,!0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:o.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:it,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const a=[..."clippingAncestors"===o?dt(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=vt(t,[],!1).filter((t=>at(t)&&"body"!==et(t))),n=null;const a="fixed"===ft(t).position;let s=a?mt(t):t;for(;at(s)&&!ut(s);){const e=ft(s),o=pt(s);o||"fixed"!==e.position||(n=null),(a?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||lt(s)&&!o&&Lt(t,s))?i=i.filter((t=>t!==s)):n=e,s=mt(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=a.reduce(((t,o)=>{const i=Mt(e,o,n);return t.top=j(i.top,t.top),t.right=H(i.right,t.right),t.bottom=H(i.bottom,t.bottom),t.left=j(i.left,t.left),t}),Mt(e,a[0],n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jt,getElementRects:async function(t){const e=this.getOffsetParent||jt,o=this.getDimensions,i=await o(t.floating);return{reference:zt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=yt(t);return{width:e,height:o}},getScale:kt,isElement:at,isRTL:function(t){return"rtl"===ft(t).direction}};function Ot(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Rt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:a,placement:s,middlewareData:r}=e,l=await async function(t,e){const{placement:o,platform:i,elements:n}=t,a=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=W(o),r=q(o),l="y"===V(o),c=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,p=N(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return r&&"number"==typeof f&&(u="end"===r?-1*f:f),l?{x:u*d,y:h*c}:{x:h*c,y:u*d}}(e,t);return s===(null==(o=r.offset)?void 0:o.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:s}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=N(t,e),c={x:o,y:i},d=await Q(e,l),p=V(W(n)),h=I(p);let u=c[h],f=c[p];a&&(u=B(u+d["y"===h?"top":"left"],u,u-d["y"===h?"bottom":"right"])),s&&(f=B(f+d["y"===p?"top":"left"],f,f-d["y"===p?"bottom":"right"]));const g=r.fn({...e,[h]:u,[p]:f});return{...g,data:{x:g.x-o,y:g.y-i}}}}},Pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:n,middlewareData:a,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=N(t,e);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const b=W(n),v=W(r)===r,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=h||(v||!g?[K(r)]:function(t){const e=K(t);return[Y(t),e,Y(e)]}(r));h||"none"===f||y.push(...function(t,e,o,i){const n=q(t);let a=function(t,e,o){const i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?a:s;default:return[]}}(W(t),"start"===o,i);return n&&(a=a.map((t=>t+"-"+n)),e&&(a=a.concat(a.map(Y)))),a}(r,g,f,w));const x=[r,...y],k=await Q(e,m),T=[];let E=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&T.push(k[b]),p){const t=function(t,e,o){void 0===o&&(o=!1);const i=q(t),n=X(t),a=U(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=K(s)),[s,K(s)]}(n,s,w);T.push(k[t[0]],k[t[1]])}if(E=[...E,{placement:n,overflows:T}],!T.every((t=>t<=0))){var C,S;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let o=null==(S=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!o)switch(u){case"bestFit":{var A;const t=null==(A=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:A[0];t&&(o=t);break}case"initialPlacement":o=r}if(n!==o)return{reset:{placement:o}}}return{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:n,elements:a}=e,{apply:s=(()=>{}),...r}=N(t,e),l=await Q(e,r),c=W(o),d=q(o),p="y"===V(o),{width:h,height:u}=i.floating;let f,g;"top"===c||"bottom"===c?(f=c,g=d===(await(null==n.isRTL?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,f="end"===d?"top":"bottom");const m=u-l[f],b=h-l[g],v=!e.middlewareData.shift;let w=m,y=b;if(p){const t=h-l.left-l.right;y=d||v?H(b,t):t}else{const t=u-l.top-l.bottom;w=d||v?H(m,t):t}if(v&&!d){const t=j(l.left,0),e=j(l.right,0),o=j(l.top,0),i=j(l.bottom,0);p?y=h-2*(0!==t||0!==e?t+e:j(l.left,l.right)):w=u-2*(0!==o||0!==i?o+i:j(l.top,l.bottom))}await s({...e,availableWidth:y,availableHeight:w});const x=await n.getDimensions(a.floating);return h!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}},Nt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:o,y:i,placement:n,rects:a,middlewareData:s}=e,{offset:r=0,mainAxis:l=!0,crossAxis:c=!0}=N(t,e),d={x:o,y:i},p=V(n),h=I(p);let u=d[h],f=d[p];const g=N(r,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===h?"height":"width",e=a.reference[h]-a.floating[t]+m.mainAxis,o=a.reference[h]+a.reference[t]-m.mainAxis;u<e?u=e:u>o&&(u=o)}if(c){var b,v;const t="y"===h?"width":"height",e=["top","left"].includes(W(n)),o=a.reference[p]-a.floating[t]+(e&&(null==(b=s.offset)?void 0:b[p])||0)+(e?0:m.crossAxis),i=a.reference[p]+a.reference[t]+(e?0:(null==(v=s.offset)?void 0:v[p])||0)-(e?m.crossAxis:0);f<o?f=o:f>i&&(f=i)}return{[h]:u,[p]:f}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...i}={}){super(t,i),this.oldState=String(e||""),this.newState=String(o||"")}},e=new WeakMap;function o(o,i,n){e.set(o,setTimeout((()=>{e.has(o)&&o.dispatchEvent(new t("toggle",{cancelable:!1,oldState:i,newState:n}))}),0))}var i=globalThis.ShadowRoot||function(){},n=globalThis.HTMLDialogElement||function(){},a=new WeakMap,s=new WeakMap,r=new WeakMap;function l(t){return r.get(t)||"hidden"}var c=new WeakMap;function d(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof n&&t.hasAttribute("open")||document.fullscreenElement===t)}function p(t){return t?Array.from(s.get(t.ownerDocument)||[]).indexOf(t)+1:0}function h(t){let e=s.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function u(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?u(t.parentNode):t}function f(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===r.get(t))return t;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}function g(t){return!(t.hidden||t instanceof i||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var m=new WeakMap;function b(e){if(!d(e,!1))return;let i=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!d(e,!1))return;let n=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),o=function(t){let e=new Map,o=0,i=t.ownerDocument;for(let t of s.get(i)||[])e.set(t,o),o+=1;e.set(t,o),o+=1;let n=null;return function(t){let o=f(t);if(null===o)return null;let i=e.get(o);(null===n||e.get(n)<i)&&(n=o)}(t?.parentElement),n}(e)||i;if(y(o,!1,!0),t!==e.getAttribute("popover")||!d(e,!1))return}h(i)||(n=!0),m.delete(e);let l=i.activeElement;e.classList.add(":popover-open"),r.set(e,"showing"),a.has(i)||a.set(i,new Set),a.get(i).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}let i=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){if(g(n))return n;n=i.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(s.has(i)||s.set(i,new Set),s.get(i).add(e),E(c.get(e),!0)),n&&l&&"auto"===e.popover&&m.set(e,l),o(e,"closed","open")}function v(e,i=!1,n=!1){if(!d(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(y(e,i,n),!d(e,!0))||(E(c.get(e),!1),c.delete(e),n&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!d(e,!0))))return;a.get(l)?.delete(e),s.get(l)?.delete(e),e.classList.remove(":popover-open"),r.set(e,"hidden"),n&&o(e,"open","closed");let p=m.get(e);p&&(m.delete(e),i&&p.focus())}function w(t,e=!1,o=!1){let i=h(t);for(;i;)v(i,e,o),i=h(t)}function y(t,e,o){let i=t.ownerDocument||t;if(t instanceof Document)return w(i,e,o);let n=null,a=!1;for(let e of s.get(i)||[])if(e===t)a=!0;else if(a){n=e;break}if(!a)return w(i,e,o);for(;n&&"showing"===l(n)&&s.get(i)?.size;)v(n,e,o)}var x=new WeakMap;function k(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let o=e.ownerDocument;if(!h(o))return;let n=function(t){let e=f(t),o=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}(t);return p(e)>p(o)?e:o}(e);if(n&&"pointerdown"===t.type)x.set(o,n);else if("pointerup"===t.type){let t=x.get(o)===n;x.delete(o),t&&y(n||o,!1,!0)}}var T=new WeakMap;function E(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var C=globalThis.ShadowRoot||function(){};function S(t,e,o){let i=t[e];Object.defineProperty(t,e,{value(t){return i.call(this,o(t))}})}var A=/(^|[^\\]):popover-open\b/g,M="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",L=null;function z(t){if(null===L)try{(L=new CSSStyleSheet).replaceSync(M)}catch{L=!1}if(!1===L){let e=document.createElement("style");e.textContent=M,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[L,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(A,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,S(Document.prototype,"querySelector",e),S(Document.prototype,"querySelectorAll",e),S(Element.prototype,"querySelector",e),S(Element.prototype,"querySelectorAll",e),S(Element.prototype,"matches",e),S(Element.prototype,"closest",e),S(DocumentFragment.prototype,"querySelectorAll",e),S(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){b(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===r.get(this)&&void 0===t||!1===t?v(this,!0,!0):(void 0===t||!0===t)&&b(this)}}});let o=Element.prototype.attachShadow;o&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=o.call(this,t);return z(e),e}}});let i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=i.call(this);return t.shadowRoot&&z(t.shadowRoot),t}}});let n=new WeakMap;function a(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;let e=u(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof C)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}a(HTMLButtonElement),a(HTMLInputElement);var s;(s=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let o=u(e);if(!(o instanceof C||o instanceof Document))return;let i=e.closest("[popovertargetaction],[popovertarget]");return i?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let o=l(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?v(e,!0,!0):d(e,!1)&&(c.set(e,t),b(e)))}(i),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{let e=t.key,o=t.target;!t.defaultPrevented&&o&&("Escape"===e||"Esc"===e)&&y(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",k),s.addEventListener("pointerup",k),z(document)}()})();const Wt={top:"bottom",right:"left",bottom:"top",left:"right"},qt=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7),this.placement="top",this.edgeGap=8,this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=xt(t),d=n||a?[...c?vt(c):[],...vt(e)]:[];d.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),a&&t.addEventListener("resize",o)}));const p=c&&r?function(t,e){let o,i=null;const n=it(t);function a(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:p,width:h,height:u}=c;if(r||e(),!h||!u)return;const f={rootMargin:-O(p)+"px "+-O(n.clientWidth-(d+h))+"px "+-O(n.clientHeight-(p+u))+"px "+-O(d)+"px",threshold:j(0,H(1,l))||1};let g=!0;function m(e){const i=e[0].intersectionRatio;if(i!==l){if(!g)return s();i?s(!1,i):o=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==i||Ot(c,t.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(m,{...f,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,f)}i.observe(t)}(!0),a}(c,o):null;let h,u=-1,f=null;s&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),o()})),c&&!l&&f.observe(c),f.observe(e));let g=l?Ct(t):null;return l&&function e(){const i=Ct(t);g&&!Ot(g,i)&&o(),g=i,h=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{n&&t.removeEventListener("scroll",o),a&&t.removeEventListener("resize",o)})),null==p||p(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=this.edgeGap,e=[Pt(),(void 0===o&&(o={}),{name:"inline",options:o,async fn(t){const{placement:e,elements:i,rects:n,platform:a,strategy:s}=t,{padding:r=2,x:l,y:c}=N(o,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),p=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let i=null;for(let t=0;t<e.length;t++){const n=e[t];!i||n.y-i.y>i.height/2?o.push([n]):o[o.length-1].push(n),i=n}return o.map((t=>_(Z(t))))}(d),h=_(Z(d)),u=G(r),f=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=l&&null!=c)return p.find((t=>l>t.left-u.left&&l<t.right+u.right&&c>t.top-u.top&&c<t.bottom+u.bottom))||h;if(p.length>=2){if("y"===V(e)){const t=p[0],o=p[p.length-1],i="top"===W(e),n=t.top,a=o.bottom,s=i?t.left:o.left,r=i?t.right:o.right;return{top:n,bottom:a,left:s,right:r,width:r-s,height:a-n,x:s,y:n}}const t="left"===W(e),o=j(...p.map((t=>t.right))),i=H(...p.map((t=>t.left))),n=p.filter((e=>t?e.left===i:e.right===o)),a=n[0].top,s=n[n.length-1].bottom;return{top:a,bottom:s,left:i,right:o,width:o-i,height:s-a,x:i,y:a}}return h}},floating:i.floating,strategy:s});return n.reference.x!==f.reference.x||n.reference.y!==f.reference.y||n.reference.width!==f.reference.width||n.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}),Ft({padding:t,limiter:Nt({offset:32})}),Bt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}}),Rt(this.arrow?t+4:t)];var o;this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:a,platform:s,elements:r,middlewareData:l}=e,{element:c,padding:d=0}=N(t,e)||{};if(null==c)return{};const p=G(d),h={x:o,y:i},u=X(n),f=U(u),g=await s.getDimensions(c),m="y"===u,b=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=a.reference[f]+a.reference[u]-h[u]-a.floating[f],x=h[u]-a.reference[u],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let T=k?k[w]:0;T&&await(null==s.isElement?void 0:s.isElement(k))||(T=r.floating[w]||a.floating[f]);const E=y/2-x/2,C=T/2-g[f]/2-1,S=H(p[b],C),A=H(p[v],C),M=S,L=T-g[f]-A,z=T/2-g[f]/2+E,D=B(M,z,L),j=!l.arrow&&null!=q(n)&&z!==D&&a.reference[f]/2-(z<M?S:A)-g[f]/2<0,$=j?z<M?z-M:z-L:0;return{[u]:h[u]+$,data:{[u]:D,centerOffset:z-D-$,...j&&{alignmentOffset:$}},reset:j}}}))({element:this.arrowRef,padding:t}));const{x:i,y:n,middlewareData:a,placement:s}=await((t,e,o)=>{const i=new Map,n={platform:$t,...o},a={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,r=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=J(c,i,l),h=i,u={},f=0;for(let o=0;o<r.length;o++){const{name:a,fn:g}=r[o],{x:m,y:b,data:v,reset:w}=await g({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:u,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,p=null!=b?b:p,u={...u,[a]:{...u[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):w.rects),({x:d,y:p}=J(c,h,l))),o=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:u}})(t,e,{...n,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e});if(this.host.style.left=`${i}px`,this.host.style.top=`${n}px`,this.arrow){const t=s.split("-")[0],{x:e,y:o}=a.arrow,i=Wt[t],n=2;Object.assign(this.arrowRef.style,{top:o?`${o}px`:"",left:e?`${e}px`:"",[i]:-this.arrowRef.offsetWidth/2-n+"px"}),this.arrowRef.classList.remove(...Object.values(Wt)),this.arrowRef.classList.add(i)}}render(){return e(o,{key:"844302edb3852f99229d4f4ccacf82cd78588435","data-version":a},this.arrow&&e("span",{key:"ae293d24ef24282bfcaeb7f545653a563e5246d5",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"61dd3072a5217099028e3dd4b22fa845ea2f5970"}))}get host(){return i(this)}};qt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";const It=class{constructor(e){t(this,e),this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())},this.toggled=!1}validateToggled(t=this.toggled){h(t,"boolean",'The "toggled" property of the post-togglebutton must be a boolean.')}componentWillLoad(){this.validateToggled(),this.host.addEventListener("click",(()=>this.handleClick())),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)))}render(){return e(o,{key:"461f72ebada75a99921b7a166f67f2547aa6465e","data-version":a,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"cd5f4cc4df687cceacb3ea6c125b7b62f01b2712"}))}get host(){return i(this)}static get watchers(){return{toggled:["validateToggled"]}}};It.style=":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";export{g as P,m as a,v as b,w as c,x as d,k as e,T as f,E as g,C as h,S as i,A as j,z as k,D as l,qt as m,It as n}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_breadcrumb}from"./p-761723b6.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-b22656b1.js";import"./p-d4f93f2b.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_banner}from"./p-32165625.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-2737eaf5.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";import"./p-5959f2bd.js";import"./p-b095519d.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,H as e,g as o}from"./p-0e216cc4.js";import{v as a}from"./p-0a74bc53.js";import{n as r}from"./p-5959f2bd.js";const c=class{constructor(t){s(this,t),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||r(6)}`}render(){return t(e,{key:"9e8f9c5dc0c1c3d1b7e63cbb9e9cbb0cf116da9b","data-version":a,id:this.panelId,role:"tabpanel"},t("slot",{key:"3ece42346845324cfa0fb9af5721efab2b71e2f1"}))}get host(){return o(this)}};c.style=":host{display:none}";export{c as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_back_to_top}from"./p-60ea48ce.js";import"./p-0e216cc4.js";import"./p-515e0f96.js";import"./p-0a74bc53.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-0a74bc53.js";import{H as a}from"./p-247a1668.js";import{c as r}from"./p-611b3c41.js";const c=class{constructor(e){t(this,e),this.expandedItems=new Set,this.headingLevel=void 0,this.multiple=!1}validateHeadingLevel(t=this.headingLevel){t&&(r(t,a,"The `heading-level` property of the `post-accordion` must be a number between 1 and 6."),this.accordionItems.forEach((e=>{e.setAttribute("heading-level",String(t))})))}componentWillLoad(){this.registerAccordionItems(),this.validateHeadingLevel()}collapseToggleHandler(t){t.stopPropagation();const e=t.target;if(e.closest("post-accordion")===this.host&&"post-accordion-item"===e.localName){const e=t.target,o=this.expandedItems.has(e);if(o?this.expandedItems.delete(e):this.expandedItems.add(e),this.multiple||o)return;Array.from(this.expandedItems.values()).filter((t=>t!==e)).forEach((t=>{t.toggle(!1)}))}}async toggle(t){const e=this.accordionItems.find((e=>e.id===t));if(!e)throw new Error(`No post-accordion-item found with id #${t}.`);await e.toggle()}async expandAll(){this.multiple?await Promise.all(this.accordionItems.map((t=>t.toggle(!0)))):this.expandedItems.size||await this.accordionItems[0].toggle(!0)}async collapseAll(){await Promise.all(this.accordionItems.map((t=>t.toggle(!1))))}registerAccordionItems(){this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item")),this.accordionItems.filter((t=>!t.collapsed||this.expandedItems.has(t))).forEach(((t,e)=>{this.multiple||0===e?this.expandedItems.add(t):t.setAttribute("collapsed","")}))}render(){return e(o,{key:"cfc6280e052937f50bc481fe73cf25ede6e40314","data-version":i},e("div",{key:"090539a2ebe9d216609a7e56597c5f379d439fb8",class:"accordion"},e("slot",{key:"4ae4095b14b6b9233f1d66c8543d625a77a77e09",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return s(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};c.style=":host{display:block}::slotted(post-accordion-item){display:block}::slotted(post-accordion-item:not(:only-of-type:first-of-type)){margin-top:calc(var(--post-device-border-width-default)*-1)}::slotted(post-accordion-item:not(:only-of-type):first-of-type){--post-accordion-button-border-top:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}";export{c as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_rating}from"./p-8e808ae6.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as o,H as t,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-0a74bc53.js";import{g as r}from"./p-6adeaa6c.js";let a=0;const n="data-popover-target",c=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(n);if(!t||"key"in e&&"Enter"!==e.key)return;const s=document.getElementById(t);null==s||s.toggle(o)},d=r(n,(e=>{const o=e.hasAttribute(n);e.setAttribute("aria-expanded",o?"false":null)})),l=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===a&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),d.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[n]})),a++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){a--,0===a&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),d.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${n}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"c2f53a7ac9d6bbcca8c220d9b8a5ed0dda360cf9","data-version":i},o("post-popovercontainer",{key:"fa5a32cfd4263fcabed5405f2b6bb2ab0ca93c9a",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"4799da001d006a47d93be1393618744a0b393841",class:"popover-container"},o("div",{key:"7a28ea59e07591c8b835dd10157bc5e9b85793c6",class:"popover-content"},o("slot",{key:"1ba6533577817d1fc2b7762654b5639596b16422"})),o("button",{key:"f1446964325e49b79bc0fe26a05bb4f12a140c61",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"dd056bb988df548e8cae61ba226c1d9e124bc32b",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return s(this)}};l.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{l as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tooltip}from"./p-d45f8861.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-6adeaa6c.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_collapsible,a as post_collapsible_trigger}from"./p-fbcc89be.js";import"./p-0e216cc4.js";import"./p-0a74bc53.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";import"./p-b095519d.js";import"./p-d4f93f2b.js";import"./p-fc91cbc2.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as o,g as e}from"./p-0e216cc4.js";import{v as r}from"./p-0a74bc53.js";import{d as a}from"./p-5467b223.js";import{c as h}from"./p-4a3f67ab.js";import{c as l}from"./p-b095519d.js";import{d as c}from"./p-d4f93f2b.js";import{g as n}from"./p-fc91cbc2.js";const d={height:"0",overflow:"hidden"},p={duration:350,easing:"ease",fill:"forwards"},g=class{constructor(i){t(this,i),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){a(this.collapsed,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean."),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(i=this.host).animate([d,{height:`${i.scrollHeight}px`,offset:1},{height:"auto"}],p):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,d],p)})(this.host);var i;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,this.host.offsetParent&&s.commitStyles(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return i(o,{key:"fd2402bcf9dee7753da3d9dc78e48e7410a774c2","data-version":r,tabindex:this.collapsed?-1:void 0},i("slot",{key:"7119a56492d6ed3fea4c5be8a34d8af60f18fe0a"}))}get host(){return e(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};g.style=":host{display:block;overflow:hidden}";const u=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=c((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const i=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==i?!i:void 0}`)})),this.for=void 0}setAriaAttributes(){l(this.for,'The post-collapsible-trigger "for" prop is required.'),h(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentWillLoad(){this.root=n(this.host),this.root.addEventListener("postToggle",(t=>{this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}))}componentDidLoad(){this.host.setAttribute("data-version",r),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return e(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{g as P,u as a}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|