@swisspost/internet-header 10.6.0 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-B5ypPkK3.js +4 -4
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/is-focus-visible-B3CqVQsX.js +19 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-pKyFPwiA.js → package-DAEQGHsE.js} +1 -1
- package/dist/cjs/{package-D7UYFbVU.js → package-DV0YNR6p.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +11 -5
- package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +80 -56
- package/dist/cjs/post-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/post-banner.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +39 -23
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/post-header.cjs.entry.js +40 -15
- package/dist/cjs/post-icon.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu.cjs.entry.js +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
- package/dist/cjs/post-listbox-option.cjs.entry.js +1 -1
- package/dist/cjs/post-listbox.cjs.entry.js +1 -1
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +1 -1
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +36 -18
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-menu_2.cjs.entry.js +5 -15
- package/dist/cjs/post-number-input.cjs.entry.js +2 -2
- package/dist/cjs/post-pagination.cjs.entry.js +2 -2
- package/dist/cjs/post-popover-trigger.cjs.entry.js +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-popovercontainer.cjs.entry.js +387 -536
- package/dist/cjs/post-rating.cjs.entry.js +1 -1
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +1 -1
- package/dist/cjs/post-side-navigation.cjs.entry.js +9 -4
- package/dist/cjs/post-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/post-stepper.cjs.entry.js +1 -1
- package/dist/cjs/post-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -3
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +34 -17
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/internal/UserMenu.js +8 -6
- package/dist/collection/services/config.service.js +25 -10
- package/dist/components/is-focus-visible.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-language-menu2.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index-h3opCZqH.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/is-focus-visible-BWwWKRO5.js +17 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Dy8-dzD8.js → package--a_K3g1E.js} +1 -1
- package/dist/esm/{package-T8T3po4z.js → package-BdiQsTQm.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +11 -5
- package/dist/esm/post-autocomplete.entry.js +1 -1
- package/dist/esm/post-avatar.entry.js +80 -56
- package/dist/esm/post-back-to-top.entry.js +2 -2
- package/dist/esm/post-banner.entry.js +2 -2
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-breadcrumbs.entry.js +2 -2
- package/dist/esm/post-closebutton.entry.js +2 -2
- package/dist/esm/post-date-picker.entry.js +39 -23
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-header.entry.js +40 -15
- package/dist/esm/post-icon.entry.js +1 -1
- package/dist/esm/post-language-menu-item.entry.js +1 -1
- package/dist/esm/post-language-menu.entry.js +2 -2
- package/dist/esm/post-linkarea.entry.js +1 -1
- package/dist/esm/post-listbox-option.entry.js +1 -1
- package/dist/esm/post-listbox.entry.js +1 -1
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +1 -1
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +36 -18
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/post-menu_2.entry.js +5 -15
- package/dist/esm/post-number-input.entry.js +2 -2
- package/dist/esm/post-pagination.entry.js +2 -2
- package/dist/esm/post-popover-trigger.entry.js +1 -1
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-popovercontainer.entry.js +387 -536
- package/dist/esm/post-rating.entry.js +1 -1
- package/dist/esm/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm/post-side-navigation.entry.js +9 -4
- package/dist/esm/post-stepper-item.entry.js +1 -1
- package/dist/esm/post-stepper.entry.js +1 -1
- package/dist/esm/post-tab-item.entry.js +1 -1
- package/dist/esm/post-tab-panel.entry.js +1 -1
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +1 -1
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +5 -3
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +34 -17
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index-h3opCZqH.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/is-focus-visible-BWwWKRO5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{package-Dy8-dzD8.js → package--a_K3g1E.js} +1 -1
- package/dist/esm-es5/package-BdiQsTQm.js +1 -0
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-fcfd3134.entry.js → p-0c6839cd.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f4ce6247.entry.js → p-148cfacf.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1617517b.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-255b2067.entry.js → p-174e2b92.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-613fa3a4.entry.js → p-1ab10b94.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0d4d5c56.entry.js → p-1d145a3d.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1df3d147.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-3d38ab21.entry.js → p-22da79ea.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-72377b16.system.entry.js → p-238c919d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-26ac0464.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ca68b8cf.entry.js → p-2d56ef1f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4bdbf9e9.system.entry.js → p-3124582e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-000978a2.system.entry.js → p-36232387.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1780039a.entry.js → p-381ac502.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-81f34993.system.entry.js → p-3995eead.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3afac939.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-6f187e15.entry.js → p-3ef5a7c0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f3e68437.system.entry.js → p-42fe4c65.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bfc4a6a9.entry.js → p-4466ee14.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-45398826.entry.js +1 -0
- package/dist/swisspost-internet-header/p-45d989e5.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-84ebaf4b.system.entry.js → p-49c132a1.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-4ab5590e.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-31af5cf2.system.entry.js → p-4b39fa0b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bb4c3ac1.entry.js → p-4d94cb9d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-089412b9.entry.js → p-518f5952.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8f21a530.entry.js → p-546f0429.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-5550933f.entry.js +1 -0
- package/dist/swisspost-internet-header/p-576e3b55.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-03587cd5.entry.js → p-57b73dd7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d68a1179.entry.js → p-5a929d5c.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a8b0c0ec.system.entry.js → p-5aa3e212.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0f501e99.system.entry.js → p-5ac46ce3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-b344fa82.entry.js → p-5e112c81.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-61e37660.entry.js +1 -0
- package/dist/swisspost-internet-header/p-629dfdba.entry.js +1 -0
- package/dist/swisspost-internet-header/p-62a14cc2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-62b7473b.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-25407470.system.entry.js → p-65fb1a64.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6c284cd6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-6f0c2a5c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-745c3c76.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-39af32a0.system.entry.js → p-74b8b73a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-155f5b00.system.entry.js → p-79dc7e1b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-7a8d9175.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-7f953da2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-599e94e7.entry.js → p-80ce5ec8.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-851c2112.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-8b90f7d2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-8ff4691a.entry.js +1 -0
- package/dist/swisspost-internet-header/p-925203fb.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-94aae5c3.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e69e8fa4.entry.js → p-94c7624f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a46ef8a8.system.entry.js → p-9ac136f3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-D_rLPX5e.system.js → p-B1oFB_zk.system.js} +1 -1
- package/dist/swisspost-internet-header/p-BVux4d1J.system.js +1 -0
- package/dist/swisspost-internet-header/p-BWwWKRO5.js +1 -0
- package/dist/swisspost-internet-header/{p-B-DGLCj0.js → p-BXoqlxOG.js} +1 -1
- package/dist/swisspost-internet-header/p-BdiQsTQm.js +1 -0
- package/dist/swisspost-internet-header/{p-COm5Sc71.system.js → p-CYBchhbg.system.js} +1 -1
- package/dist/swisspost-internet-header/p-Ctf1S46w.system.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-a00eb4a0.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a1237171.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a12be1fd.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a1ed3c1d.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a21c305f.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a4bfe46c.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a9045c62.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ac9d7b3f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-bc0fcd50.entry.js +1 -0
- package/dist/swisspost-internet-header/p-bc30850c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-bf861c95.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-d7c2cce3.entry.js → p-c36c9d88.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2e8c0f26.entry.js → p-cd3f5447.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d1eab2a3.entry.js +1 -0
- package/dist/swisspost-internet-header/p-d28a58ec.entry.js +1 -0
- package/dist/swisspost-internet-header/p-d390eac9.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-d52b2e2e.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-d8384d86.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-dae00825.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-dcc3e62f.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c1e818d2.entry.js → p-de1eae9a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-21e537be.system.entry.js → p-ef4aec35.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0c651391.system.entry.js → p-f2794080.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-586ee1e8.system.entry.js → p-f78ac8af.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8717e0ce.system.entry.js → p-f8f292cf.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fb0e4425.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-fd8106f1.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-fea21512.entry.js +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/services/config.service.d.ts +2 -1
- package/package.json +9 -7
- package/dist/esm-es5/package-T8T3po4z.js +0 -1
- package/dist/swisspost-internet-header/p-068b1e2b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-087b1e22.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-094ef16a.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1502d221.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-161b1a45.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-16623b05.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1a18ac48.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2196012d.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2197ca9e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2b0f93fb.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2da6fba5.entry.js +0 -1
- package/dist/swisspost-internet-header/p-35b6e07c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3ff138ba.entry.js +0 -1
- package/dist/swisspost-internet-header/p-42806d60.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4557a744.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4562d9d8.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-53c33e94.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5443664a.entry.js +0 -1
- package/dist/swisspost-internet-header/p-547d9572.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-57f1f9e2.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-651b9efe.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6d6fb84b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6f79a60d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7ad0de4b.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-826d0669.entry.js +0 -1
- package/dist/swisspost-internet-header/p-98d2dfb3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9b6c8533.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9c5941a2.entry.js +0 -1
- package/dist/swisspost-internet-header/p-BT1GO8tc.system.js +0 -1
- package/dist/swisspost-internet-header/p-T8T3po4z.js +0 -1
- package/dist/swisspost-internet-header/p-a435a51d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a75d1e4f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-abe2eefe.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b4de053e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b85fabc2.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c96dbc97.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-caed751e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-cb52e42c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-cec19e1d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d45690b3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e5ebe099.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e6ec5fa5.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ede58236.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f4489f68.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f783b224.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fdbcf065.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as o}from"./p-h3opCZqH.js";import{v as e}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,g as o}from"./p-h3opCZqH.js";import{v as e}from"./p-BdiQsTQm.js";import{i as r}from"./p-BrY4VWTQ.js";import{T as h}from"./p-DZMUeI8H.js";import"./p-BFTU3MAI.js";import"./p-vAzHgwTd.js";const n=class{syncAriaExpanded(t){this.ariaExpanded=t,this.trigger&&this.trigger.setAttribute("aria-expanded",String(t))}hasAriaControlsElements(t){return"ariaControlsElements"in t}get popover(){const t=this.host.querySelector("post-popover")??document.getElementById(this.for);return t?"post-popover"===t?.localName?t:null:(console.error(`No post-popover found ${this.for?`with ID: ${this.for}`:"inside the <post-popover-trigger>"}.`),null)}setupTrigger(){const t=this.popover;this.trigger=this.host.querySelector("*"),this.trigger?(r(this.trigger)||(this.trigger.setAttribute("tabindex","0"),this.trigger.setAttribute("role","button")),t&&(this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString()),this.trigger.setAttribute("aria-haspopup","true"),this.for?this.trigger.setAttribute("aria-controls",this.for):this.hasAriaControlsElements(this.trigger)?this.trigger.ariaControlsElements=[t]:(t.id||=`popover-${crypto.randomUUID()}`,this.trigger.setAttribute("aria-controls",t.id)),this.trigger?.addEventListener("click",this.boundHandleToggle),this.trigger?.addEventListener("keydown",this.boundHandleKeyDown))):console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.")}handleToggle(){this.popover?.toggle(this.trigger),this.focusTrigger()}focusTrigger(){!this.popoverOpen&&this.trigger&&this.trigger.focus({preventScroll:!0})}constructor(s){t(this,s),this.ariaExpanded=!1,this.popoverOpen=!1,this.handleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleToggle())},this.boundHandleToggle=this.handleToggle.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandlePostToggle=t=>{this.popoverOpen=t.detail.isOpen,this.focusTrigger()}}componentDidLoad(){this.setupTrigger(),this.popover?.addEventListener("postToggle",this.boundHandlePostToggle)}disconnectedCallback(){this.trigger?.removeEventListener("click",this.boundHandleToggle),this.trigger?.removeEventListener("keydown",this.boundHandleKeyDown),this.popover?.removeEventListener("postToggle",this.boundHandlePostToggle)}render(){return s(i,{key:"f9c320748c1cfdfb6accce4e20c64ea7c00d20c5","data-version":e},s("slot",{key:"e00dcaa23ec3e2976136c26931780d083b6f1a8f",onSlotchange:()=>this.setupTrigger()}))}get host(){return o(this)}static get watchers(){return{popoverOpen:[{syncAriaExpanded:0}]}}};(function(t,s,i,o){var e,r=arguments.length,h=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,o);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(h=(r<3?e(h):r>3?e(s,i,h):e(s,i))||h);r>3&&h&&Object.defineProperty(s,i,h)})([h("string")],n.prototype,"for",void 0),n.style=":host{cursor:pointer}";export{n as post_popover_trigger}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as i,g as o}from"./p-h3opCZqH.js";import{v as s}from"./p-BdiQsTQm.js";import{t as r}from"./p-bR8vy6-s.js";import{n as a}from"./p-8LXe8Zt_.js";import{c as n}from"./p-lpWRZjJp.js";import{R as c}from"./p-DvaRK2lz.js";import{U as l}from"./p-C6RsLT58.js";import{T as m}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var d=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const h=class{constructor(e){t(this,e),this.debounceUpdateCollapsedItems=r(50,this.updateCollapsedItems.bind(this)),this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems),this.mutationObserver=new MutationObserver((()=>{this.updateAfterMutation()})),this.loaded=!1,this.hasSlottedHomeAnchor=!1,this.hasSlottedHomeIcon=!1,this.collapsed=0,this.homeCollapsed=!1,this.lastItemWraps=!1,this.nav=null,this.hiddenNav=null,this.homeTextOnly=!1}componentWillLoad(){this.id=this.host.id||`b${a(6)}`,this.checkSlottedHomeAnchor()}async componentDidLoad(){this.resizeObserver?.observe(document.body),this.mutationObserver?.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),await this.updateHiddenNav(),await this.updateCollapsedItems(),this.loaded=!0}disconnectedCallback(){this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),this.debounceUpdateCollapsedItems.cancel()}checkSlottedHomeAnchor(){const t=Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot")));this.hasSlottedHomeAnchor="A"===t?.tagName,this.hasSlottedHomeIcon=this.hasSlottedHomeAnchor&&!!t?.querySelector("post-icon")}get usesHomeText(){return this.hasSlottedHomeAnchor?!this.hasSlottedHomeIcon:this.homeTextOnly}async updateCollapsedItems(){if(!this.nav)return;const{overflowing:t,homeOverflows:e,lastItemWraps:i}=await this.calculateCollapsedItems();this.collapsed=t,this.homeCollapsed=e,this.lastItemWraps=i}async calculateCollapsedItems(){const t=this.host.querySelectorAll("post-breadcrumb-item"),{overflowing:e,homeOverflows:i,lastItemWraps:o}=await this.calculateOverflowingItems();return{overflowing:Math.max(e,t.length-6),homeOverflows:i,lastItemWraps:o}}async calculateOverflowingItems(){if(!this.hiddenNav)return{overflowing:0,homeOverflows:!1,lastItemWraps:!1};const t=this.hiddenNav,e=t.clientWidth,i=Number.parseFloat(getComputedStyle(t.firstElementChild).gap),o=t.querySelector(".menu")?.clientWidth??0,s=t.querySelector(".home")?.clientWidth??0,r=Array.from(t.querySelectorAll("post-breadcrumb-item")).slice(0,-1),{overflowing:a,remainingWidth:n}=this.collapseMiddleItems(r,i,o,e),c=this.usesHomeText&&n>e;return{overflowing:a,homeOverflows:c,lastItemWraps:this.usesHomeText?c&&n-s+(0===a?o:0)>e:n>e}}collapseMiddleItems(t,e,i,o){let s=this.hiddenNav.scrollWidth-i+e,r=0;for(;r<t.length&&s>o;)0===r&&(s+=i),s-=t[r++].clientWidth+e;return{overflowing:r,remainingWidth:s}}updateItems(t,e,i){t.forEach(((o,s)=>{const r=s===t.length-1;o.setAttribute("variant",s<e?"menuitem":"listitem"),o.setAttribute("selected",String(r)),o.setAttribute("standalone",String(r&&s===e&&i))}))}async updateHiddenNav(){this.hiddenNav?.remove(),this.hiddenNav=await this.renderHiddenNav()}async updateAfterMutation(){await this.updateHiddenNav(),await this.updateCollapsedItems()}async renderHiddenNav(){const t=this.host.shadowRoot;if(!t||!this.nav)return null;const e=this.nav.cloneNode(!0),i=e.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach(((t,e)=>{const o=i[e],s=t.assignedElements();if(s.length>0)s.forEach((t=>{o.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),o.remove();else{const t=o.parentNode;t&&(Array.from(o.childNodes).forEach((e=>t.insertBefore(e,o))),o.remove())}}));const o=e.querySelector(".home");o?.parentNode?.replaceChild(this.buildMeasurementHomeElement(),o),e.classList.remove("loading"),e.classList.add("invisible"),e.querySelector(".menu").classList.remove("empty"),t.append(e);const s=e.querySelectorAll("post-breadcrumb-item");return await Promise.all(Array.from(s).map((t=>n(t)))),this.updateItems(s,0,!1),e}buildMeasurementHomeElement(){const t=document.createElement("div");t.className="breadcrumb-item home"+(this.usesHomeText?"":" icon"),t.setAttribute("role","listitem");const e=this.hasSlottedHomeAnchor?Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot"))):null;if(e)return t.append(e.cloneNode(!0)),t;const i=document.createElement("a");this.homeUrl&&(i.href=this.homeUrl);const o=document.createElement("span");if(this.usesHomeText||(o.className="visually-hidden"),o.textContent=this.textHome,i.append(o),!this.usesHomeText){const t=document.createElement("post-icon");t.setAttribute("aria-hidden","true"),t.setAttribute("name","home"),i.append(t)}return t.append(i),t}renderMenu(){const t=`${this.id}-menu`;return e("div",{class:"breadcrumb-item menu "+(0!==this.collapsed||this.homeCollapsed?"":"empty"),role:"listitem"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"..."))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},this.homeCollapsed&&this.usesHomeText&&e("post-menu-item",null,this.renderHomeContent()),e("slot",{name:"menu"})))}renderHomeContent(){return e("slot",{name:"home",onSlotchange:()=>this.checkSlottedHomeAnchor()},e("a",{href:this.homeUrl},e("span",{class:this.usesHomeText?void 0:"visually-hidden"},this.textHome),!this.usesHomeText&&e("post-icon",{"aria-hidden":"true",name:"home"})))}renderHome(){return e("div",{class:"breadcrumb-item home"+(this.usesHomeText?"":" icon"),role:"listitem"},this.renderHomeContent())}render(){if(this.loaded){const t=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(t,this.collapsed,this.lastItemWraps)}return e(i,{key:"8d5f457a7c6a2df0cfaf5c31f3ffc6937de76e57","data-version":s,class:this.homeCollapsed&&this.usesHomeText?"home-collapsed":void 0},e("nav",{key:"ce3fd7ad69060dd6968afaad6170e27eee72682f","aria-label":this.textBreadcrumbs,ref:t=>this.nav=t,class:this.loaded?"":"loading"},e("div",{key:"1c400c8c1e1b625203876cc9804936782a2202c6",role:"list"},(!this.homeCollapsed||!this.usesHomeText)&&this.renderHome(),this.renderMenu(),e("slot",{key:"5cf6618b487961c0e7d70637f5396d023660ec55"}),e("slot",{key:"f4fb662d04d9966c76a22444844d692611472b2d",name:"selected"}))))}get host(){return o(this)}};d([c({when:"hasSlottedHomeAnchor",truthy:!1}),l()],h.prototype,"homeUrl",void 0),d([c({when:"hasSlottedHomeAnchor",truthy:!1}),m("string")],h.prototype,"textHome",void 0),d([c(),m("boolean")],h.prototype,"homeTextOnly",void 0),d([c(),m("string")],h.prototype,"textBreadcrumbs",void 0),d([c(),m("string")],h.prototype,"textMoreItems",void 0),h.style=':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}[role=list]>.menu:first-child::before{content:none}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,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 :is(button,a):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){.breadcrumb-item :is(button,a):focus-visible{outline-color:Highlight !important}}.breadcrumb-item :is(button,a).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(button,a).pretend-focus{outline-color:Highlight !important}}.breadcrumb-item :is(button,a):has(: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){.breadcrumb-item :is(button,a):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,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 :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}post-menu-item>slot[name=home]>a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;min-width:0;white-space:normal;overflow:visible;text-overflow:unset;-ms-flex-pack:start;justify-content:start;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-menu-item>slot[name=home]>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item>slot[name=home]>a{font-size:1.25rem;padding-block:13px}}post-menu-item>slot[name=home]>a:focus-visible{outline:none !important}post-menu-item>slot[name=home]>a.pretend-focus{outline:none !important}post-menu-item>slot[name=home]>a:has(:focus-visible){outline:none !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus){outline:none !important}}post-menu-item>slot[name=home]>a::after{content:"";position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--post-device-border-radius-focus) - var(--post-device-spacing-padding-44))}post-menu-item>slot[name=home]>a::after{outline-offset:var(--post-device-spacing-padding-44) !important;outline:#050400 none var(--post-device-border-width-focus) !important}post-menu-item>slot[name=home]>a:focus-visible::after{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-item>slot[name=home]>a:focus-visible::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a.pretend-focus::after{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-item>slot[name=home]>a.pretend-focus::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a:has(:focus-visible)::after{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-item>slot[name=home]>a:has(:focus-visible)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{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-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}post-menu-item>slot[name=home]>a:hover{background-color:#504f4b;color:#fff}post-menu-item>slot[name=home]>a:hover:focus-visible::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover.pretend-focus::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover:has(:focus-visible)::after{outline-color:#fff !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:hover:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:#fff !important}}.home{-ms-flex:none;flex:none}.home::before{content:unset}.home.icon{padding-block:var(--post-device-spacing-padding-47)}.home.icon post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{-webkit-margin-end:calc(-1*var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_breadcrumbs}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as i}from"./p-h3opCZqH.js";import{f as s}from"./p-BVCjnh6Q.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-h3opCZqH.js";import{f as s}from"./p-BVCjnh6Q.js";import{v as a}from"./p-BdiQsTQm.js";import{R as r}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-CoDiS_Ik.js";import"./p-vAzHgwTd.js";const n=class{constructor(o){t(this,o),this.belowFold=!1,this.handleScroll=()=>{this.belowFold=this.isBelowFold()}}isBelowFold(){return window.scrollY>window.innerHeight}async watchBelowFold(t){this.currentAnimation?.cancel(),this.host.hidden=!1,this.currentAnimation=s(this.host,t?"in":"out",{translate:this.translateY,fill:"forwards"});try{await this.currentAnimation.finished,this.belowFold||(this.host.hidden=!0)}catch{}}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getSecondPixelValue(t){for(const o of t){const t=o.match(/\b\d+px\b/g);if(t&&t.length>1)return t[1]}}animateButton(){const t=globalThis.getComputedStyle(this.host).getPropertyValue("top"),o=this.host.shadowRoot.querySelector("button"),e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation").split(","),i=this.getSecondPixelValue(e);t&&"auto"!==t&&i&&(this.translateY=-1-Number.parseFloat(t.replace("px",""))-Number.parseFloat(i.replace("px","")),this.belowFold&&s(this.host,"in",{translate:this.translateY,fill:"forwards"}),this.belowFold||(this.host.style.transform=`translateY(${this.translateY})`))}componentWillLoad(){this.belowFold=this.isBelowFold(),this.host.hidden=!this.belowFold}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,{passive:!0}),this.animateButton()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"149a8afee36c12130b3e503c4da5cffdaa3f86b5","data-version":a},o("button",{key:"4e291c5cfaa55bb6a68f436af570d83377436a3a",class:"back-to-top",onClick:this.scrollToTop},o("post-icon",{key:"c25e8d12cf6f751b368010ad2d82534fa95adf86","aria-hidden":"true",name:"arrowup"}),o("span",{key:"e16d1247a5ab7e39629e4bec7307ee562c589f7e",class:"visually-hidden"},this.textBackToTop)))}get host(){return i(this)}static get watchers(){return{belowFold:[{watchBelowFold:0}]}}};(function(t,o,e,i){var s,a=arguments.length,r=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(r=(a<3?s(r):a>3?s(o,e,r):s(o,e))||r);a>3&&r&&Object.defineProperty(o,e,r)})([r(),c("string")],n.prototype,"textBackToTop",void 0),n.style=":host{opacity:0;--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;z-index:1019;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;-webkit-box-shadow:var(--post-back-to-top-elevation);box-shadow:var(--post-back-to-top-elevation);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:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}: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: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 .back-to-top:focus-visible{outline-color:Highlight !important}}:host .back-to-top.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.pretend-focus{outline-color:Highlight !important}}:host .back-to-top:has(: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 .back-to-top:has(:focus-visible){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)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}: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{n as post_back_to_top}
|
package/dist/swisspost-internet-header/{p-72377b16.system.entry.js → p-238c919d.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-Bwi1IyPf.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,n,s,f,i,o,u,c;return{setters:[function(e){t=e.r;n=e.h;s=e.H;f=e.g},function(e){i=e.v},function(e){o=e.n},function(e){u=e.R},function(e){c=e.T},null],execute:function(){var r=function(){return":host{display:none}"};var a=undefined&&undefined.__decorate||function(e,t,n,s){var f=arguments.length,i=f<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,s);else for(var u=e.length-1;u>=0;u--)if(o=e[u])i=(f<3?o(i):f>3?o(t,n,i):o(t,n))||i;return f>3&&i&&Object.defineProperty(t,n,i),i};var l=e("post_tab_panel",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){this.panelId="panel-".concat(this.host.id||o(6))};e.prototype.render=function(){return n(s,{key:"2b02063bf2e67f4e826155759f28a1ae47b0c8e0","data-version":i,id:this.panelId,role:"tabpanel",slot:"panels",style:undefined},n("slot",{key:"b4c39e035d0f49f5654b030f4aada27fbebb122c"}))};Object.defineProperty(e.prototype,"host",{get:function(){return f(this)},enumerable:false,configurable:true});return e}());a([u(),c("string")],l.prototype,"for",void 0);l.style=r()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as s,H as e,g as i}from"./p-h3opCZqH.js";import{v as r}from"./p-BdiQsTQm.js";import{b as a}from"./p-I1j7a0bW.js";import{i as n}from"./p-BWwWKRO5.js";import{a as l}from"./p-DYYpZAAV.js";import{R as d}from"./p-DvaRK2lz.js";import{T as p}from"./p-DZMUeI8H.js";import{O as h}from"./p-Drxf8XVU.js";import"./p-08F-DB-d.js";import"./p-vAzHgwTd.js";var c=function(t,o,s,e){var i,r=arguments.length,a=r<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,o,s,e);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(a=(r<3?i(a):r>3?i(o,s,a):i(o,s))||a);return r>3&&a&&Object.defineProperty(o,s,a),a};const m=class{constructor(s){t(this,s),this.postToggle=o(this,"postToggle"),this.device=a.get("device"),this.size="large",this.breakpointChange=t=>{this.device=t.detail,"desktop"===this.device&&(this.dialog?.open&&this.dialog.close(),this.postToggle.emit(!1))},this.handleKeyDown=t=>{if("Escape"!==t.key)return;const o=this.collapsible;o&&!o.collapsed&&(t.preventDefault(),t.stopPropagation(),o.toggle(!1),this.collapsibleTrigger?.querySelector("button")?.focus())},this.handleDialogClick=t=>{t.composedPath().some((t=>t instanceof HTMLAnchorElement))&&this.dialog.close()}}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange),this.host.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange),this.host.removeEventListener("keydown",this.handleKeyDown)}get dialog(){return this.host.shadowRoot?.querySelector("dialog")}get collapsibleTrigger(){return document.activeElement?.closest("post-collapsible-trigger")??null}get collapsible(){return this.collapsibleTrigger?.querySelector(":scope > post-collapsible")??null}async toggle(){if("desktop"!==this.device)return this.dialog?.open?this.hide():this.show()}async show(){if("desktop"===this.device)return;const t=n(document.activeElement);this.dialog.showModal(),this.postToggle.emit(!0),t&&this.focusNav()}async hide(){"desktop"!==this.device&&this.dialog.close()}focusNav(){const t=this.host.shadowRoot?.querySelector("slot"),o=t?.assignedElements({flatten:!0})[0];if(!o)return;const[s]=l(o);s?.focus()}renderNav(){return s("slot",null)}renderDialog(){return s("dialog",{onClick:this.handleDialogClick,onClose:()=>{this.postToggle.emit(!1)}},s("slot",null),s("post-closebutton",{onClick:()=>this.hide()},this.textClose))}render(){return s(e,{key:"742833fbbbc716630d5fc5cc6289e44e3d05ee17","data-version":r},"desktop"===this.device?this.renderNav():this.renderDialog())}get host(){return i(this)}};c([d(),p("string")],m.prototype,"textClose",void 0),c([h(["large","small"])],m.prototype,"size",void 0),m.style=":host{display:-ms-flexbox;display:flex}:host,:host dialog{background-color:var(--post-scheme-color-palette-bg-2);-webkit-border-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke4);border-inline-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke4)}:host dialog{overflow:visible;width:var(--post-core-dimension-296);bottom:auto;right:auto;border:none;padding:0;max-height:100dvh;-webkit-transform:translateX(-100%);transform:translateX(-100%);-webkit-transition-property:overlay,display,-webkit-transform;transition-property:overlay,display,-webkit-transform;transition-property:transform,overlay,display;transition-property:transform,overlay,display,-webkit-transform;transition-behavior:allow-discrete;-webkit-transition-duration:350ms;transition-duration:350ms;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host dialog:focus,:host dialog:focus-visible{outline:none}:host dialog[open]{-webkit-transform:translateX(0);transform:translateX(0)}@starting-style{:host dialog[open]{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@media (prefers-reduced-motion: reduce){:host dialog{-webkit-transition:none;transition:none}}:host post-closebutton{-webkit-transform:translate(50%, 0);transform:translate(50%, 0)}";export{m as post_side_navigation}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-BdiQsTQm.js";import{g as a}from"./p-08F-DB-d.js";import{R as n}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import{E as h}from"./p-BEcxHjuM.js";import"./p-vAzHgwTd.js";var c=function(t,s,i,e){var o,a=arguments.length,n=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(s,i,n):o(s,i))||n);return a>3&&n&&Object.defineProperty(s,i,n),n};const d=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.toggleSideNavigation=this.toggleSideNavigation.bind(this),this.handlePostToggle=this.handlePostToggle.bind(this)}connectedCallback(){this.root=a(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-side-navigation-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect(),this.root.removeEventListener("postToggle",this.handlePostToggle),this.trigger?.removeEventListener("click",this.toggleSideNavigation)}get sideNavigation(){const t=this.root.getElementById(this.for);return t&&"post-side-navigation"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger&&this.trigger.removeEventListener("click",this.toggleSideNavigation),this.trigger=t,this.trigger.addEventListener("click",this.toggleSideNavigation),this.updateAriaAttributes())}updateAriaAttributes(){if(!this.trigger)return;const t=this.trigger.getAttribute("aria-controls");t?.includes(this.for)||this.trigger.setAttribute("aria-controls",t?`${t} ${this.for}`:this.for),this.trigger.setAttribute("aria-expanded","false")}handlePostToggle(t){this.trigger?.setAttribute("aria-expanded",`${t.detail}`)}async update(){this.updateAriaAttributes()}async toggleSideNavigation(){await(this.sideNavigation?.toggle())}render(){return s(i,{key:"1c908083562ec5ca01cd9410c72ac78ae11ce72f","data-version":o},s("slot",{key:"38f63424e8c66b4bf926418b57555dc676d24d45"}))}get host(){return e(this)}};c([n(),r("string")],d.prototype,"for",void 0),c([h("post-side-navigation",{ignoreNestedComponents:!1})],d.prototype,"handlePostToggle",null),d.style=":host{display:inline-block}@media screen and (min-width: 1024px){:host{display:none}}";export{d as post_side_navigation_trigger}
|
package/dist/swisspost-internet-header/{p-4bdbf9e9.system.entry.js → p-3124582e.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-CiwQnVr3.system.js","./p-BMZcKRx0.system.js","./p-D4wq7hIE.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var n,i,a,e,r,o,s,f;return{setters:[function(t){n=t.r;i=t.h;a=t.H;e=t.g},function(t){r=t.v},function(t){o=t.O},function(t){s=t.T},function(t){f=t.R},null],execute:function(){var m=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"];var c=function(){return":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]){-webkit-transform-origin:center;transform-origin:center}:host([animation=cylon]){-webkit-animation:icon-animation-cylon .75s ease-in-out infinite alternate;animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){-webkit-animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){-webkit-animation:icon-animation-spin 2s linear infinite normal;animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){-webkit-animation:icon-animation-fade .75s ease-in-out infinite alternate;animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){-webkit-animation:icon-animation-throb .75s ease-in-out infinite alternate;animation:icon-animation-throb .75s ease-in-out infinite alternate}@-webkit-keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@-webkit-keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@-webkit-keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@-webkit-keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}"};var l=undefined&&undefined.__decorate||function(t,n,i,a){var e=arguments.length,r=e<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,n,i,a);else for(var s=t.length-1;s>=0;s--)if(o=t[s])r=(e<3?o(r):e>3?o(n,i,r):o(n,i))||r;return e>3&&r&&Object.defineProperty(n,i,r),r};var u="https://unpkg.com/@swisspost/design-system-icons@".concat(r,"/public/post-icons/");var b=t("post_icon",function(){function t(t){n(this,t);this.flipH=false;this.flipV=false}t.prototype.getUrl=function(){var t,n,i;var a=(t=this.name)!==null&&t!==void 0?t:this.host.getAttribute("name");var e="".concat(a,".svg");if((n=this.url)===null||n===void 0?void 0:n.startsWith("data:image/")){return this.url}if(this.url){return this.url}var r=function(t){return/^https?:\/\//.test(t)};var o=function(t){return t&&!t.endsWith("/")?"".concat(t,"/"):t};var s=function(t){return t.replaceAll(/([^:])\/\//g,"$1/")};var f=globalThis.location.origin;var m=((i=document.querySelector("base[href]"))===null||i===void 0?void 0:i.getAttribute("href"))||"";var c="";{var l=document.querySelector('meta[name="design-system-settings"]');c=(l===null||l===void 0?void 0:l.getAttribute("data-post-icon-base"))||""}var b=function(t){var n=o(m);var i=o(t);if(r(n)){return"".concat(n).concat(i)}return"".concat(f).concat(n).concat(i)};var h;if(this.base){h=r(this.base)?"".concat(o(this.base)).concat(e):"".concat(b(this.base)).concat(e);return s(h)}if(c){h=r(c)?"".concat(o(c)).concat(e):"".concat(b(c)).concat(e);return s(h)}return s("".concat(u).concat(e))};t.prototype.getStyles=function(){var t=this.getUrl();return Object.fromEntries(Object.entries({"-webkit-mask-image":"url(".concat(t,")"),"mask-image":"url('".concat(t,"')"),transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((function(t){var n=t[0],i=t[1];return i!==null})))};t.prototype.render=function(){return i(a,{key:"405ccfde4206c14f044575d0b23998d93a03ffb6","data-version":r},i("span",{key:"ad70ccf63add4b881ef6096ae460e13fba09f508",style:this.getStyles()}))};Object.defineProperty(t.prototype,"host",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());l([o(m)],b.prototype,"animation",void 0);l([s("string")],b.prototype,"base",void 0);l([f(),s("string")],b.prototype,"name",void 0);l([s("number")],b.prototype,"rotate",void 0);l([s("number")],b.prototype,"scale",void 0);b.style=c()}}}));
|
package/dist/swisspost-internet-header/{p-000978a2.system.entry.js → p-36232387.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js"],(function(t){"use strict";var e,o,s,n,i;return{setters:[function(t){e=t.r;o=t.h;s=t.H;n=t.g},function(t){i=t.v}],execute:function(){var r=function(){return":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}"};var a=t("post_togglebutton",function(){function t(t){var o=this;e(this,t);this.toggled=false;this.handleClick=function(){o.toggled=!o.toggled};this.handleKeydown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();o.host.click()}}}t.prototype.componentWillLoad=function(){var t=this;this.host.addEventListener("click",(function(){return t.handleClick()}),{capture:true});this.host.addEventListener("keydown",(function(e){return t.handleKeydown(e)}),{capture:true})};t.prototype.render=function(){return o(s,{key:"81fa9d922480059096e4146c10cf2ef72357b482","data-version":i,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},o("slot",{key:"4e8d793e3867ba4c9c8e17d509652309a79f032a"}))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());a.style=r()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-BdiQsTQm.js";import{R as h}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const n=["pointerenter","pointerleave","focusin","focusout"];let a;const l=class{constructor(s){t(this,s),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}get tooltip(){const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentWillLoad(){import("./p-BrY4VWTQ.js").then((function(t){return t.f})).then((t=>{a??=t.default}))}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a?.(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){n.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){n.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return s(i,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":o},s("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:()=>this.handleSlotChange()}))}get host(){return e(this)}};(function(t,s,i,e){var o,h=arguments.length,r=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(h<3?o(r):h>3?o(s,i,r):o(s,i))||r);h>3&&r&&Object.defineProperty(s,i,r)})([h(),r("string")],l.prototype,"for",void 0),l.style="post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";export{l as post_tooltip_trigger}
|
package/dist/swisspost-internet-header/{p-81f34993.system.entry.js → p-3995eead.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function o(t){try{c(e.next(t))}catch(t){s(t)}}function u(t){try{c(e["throw"](t))}catch(t){s(t)}}function c(t){t.done?n(t.value):r(t.value).then(o,u)}c((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return c([t,i])}}function c(u){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(e=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1];s=u;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(u);break}if(s[2])n.ops.pop();n.trys.pop();continue}u=i.call(t,n)}catch(t){u=[6,t];r=0}finally{e=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function o(t){try{c(e.next(t))}catch(t){s(t)}}function u(t){try{c(e["throw"](t))}catch(t){s(t)}}function c(t){t.done?n(t.value):r(t.value).then(o,u)}c((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return c([t,i])}}function c(u){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(e=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1];s=u;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(u);break}if(s[2])n.ops.pop();n.trys.pop();continue}u=i.call(t,n)}catch(t){u=[6,t];r=0}finally{e=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-qFxyG4GI.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-iSGRM5O1.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,n,e,r,s,o,u,c,a;return{setters:[function(t){i=t.r;n=t.h;e=t.H;r=t.g},function(t){s=t.v},function(t){o=t.g},function(t){u=t.R},function(t){c=t.T},function(t){a=t.E},null],execute:function(){var f=function(){return":host{display:inline-block}@media screen and (min-width: 1024px){:host{display:none}}"};var h=undefined&&undefined.__decorate||function(t,i,n,e){var r=arguments.length,s=r<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)if(o=t[u])s=(r<3?o(s):r>3?o(i,n,s):o(i,n))||s;return r>3&&s&&Object.defineProperty(i,n,s),s};var l=t("post_side_navigation_trigger",function(){function t(t){var n=this;i(this,t);this.observer=new MutationObserver((function(){return n.setTrigger()}));this.toggleSideNavigation=this.toggleSideNavigation.bind(this);this.handlePostToggle=this.handlePostToggle.bind(this)}t.prototype.connectedCallback=function(){this.root=o(this.host);this.root.addEventListener("postToggle",this.handlePostToggle);this.observer.observe(this.host,{childList:true,subtree:true})};t.prototype.componentDidLoad=function(){this.setTrigger();if(!this.trigger)console.warn("The post-side-navigation-trigger must contain a button.")};t.prototype.disconnectedCallback=function(){var t;this.observer.disconnect();this.root.removeEventListener("postToggle",this.handlePostToggle);(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("click",this.toggleSideNavigation)};Object.defineProperty(t.prototype,"sideNavigation",{get:function(){var t=this.root.getElementById(this.for);if(t&&t.localName==="post-side-navigation"){return t}return null},enumerable:false,configurable:true});t.prototype.setTrigger=function(){var t=this.host.querySelector("button");if(!t||this.trigger&&t.isEqualNode(this.trigger))return;if(this.trigger){this.trigger.removeEventListener("click",this.toggleSideNavigation)}this.trigger=t;this.trigger.addEventListener("click",this.toggleSideNavigation);this.updateAriaAttributes()};t.prototype.updateAriaAttributes=function(){if(!this.trigger)return;var t=this.trigger.getAttribute("aria-controls");if(!(t===null||t===void 0?void 0:t.includes(this.for))){var i=t?"".concat(t," ").concat(this.for):this.for;this.trigger.setAttribute("aria-controls",i)}this.trigger.setAttribute("aria-expanded","false")};t.prototype.handlePostToggle=function(t){var i;(i=this.trigger)===null||i===void 0?void 0:i.setAttribute("aria-expanded","".concat(t.detail))};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateAriaAttributes();return[2]}))}))};t.prototype.toggleSideNavigation=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,(t=this.sideNavigation)===null||t===void 0?void 0:t.toggle()];case 1:i.sent();return[2]}}))}))};t.prototype.render=function(){return n(e,{key:"1c908083562ec5ca01cd9410c72ac78ae11ce72f","data-version":s},n("slot",{key:"38f63424e8c66b4bf926418b57555dc676d24d45"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());h([u(),c("string")],l.prototype,"for",void 0);h([a("post-side-navigation",{ignoreNestedComponents:false})],l.prototype,"handlePostToggle",null);l.style=f()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as n,H as i}from"./p-h3opCZqH.js";import{c as o,L as r,g as a,T as s,s as c,d as l,v as u}from"./p-BXoqlxOG.js";const h=({user:e,description:n})=>t("post-avatar",{firstname:e.name,lastname:e.surname,email:e.email,description:n,"aria-hidden":n?void 0:"true"}),d=({config:e,textClose:n,textBack:i})=>{const a=o(e.trigger.text);return[t("post-megadropdown-trigger",{key:"trigger",for:a},e.trigger.text),t("post-megadropdown",{key:"dropdown",id:a,textClose:n,textBack:i},e.overview&&t(r,{config:e.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),t("div",{class:"row row-cols-1 row-cols-sm-2"},e.sections.map((e=>t(g,{config:e})))))]},g=({config:e})=>{const n=a(e.title),i=o(n);return t("div",{class:"col"},t(s,{class:"post-megadropdown-list-title",id:i,config:e.title}),t("ul",{class:"post-megadropdown-list","aria-labelledby":i},e.items.map((e=>t("li",{key:e.url},t(r,{config:e,ariaCurrentWhenActive:"page"}))))))},p=t=>{const e=new URL(t,window.location.href);return e.searchParams.set("changeCompanyTargetURL",window.location.href),e.toString()},f=({config:e,slot:n,textCurrentUser:i,textUserLinks:a,textAccessUserLinks:s})=>{const c="B2B"===e.user.userType,l=c&&e.user.canChangeCompany&&e.user.company,u=("B2C"===e.user.userType||c)&&"userAndProfile"===e.user.changeUserAndProfile||l,d=[e.user.name,e.user.surname].join(" "),g=o(d);return t("div",{slot:n},t("post-menu-trigger",{for:g},t("button",{class:"btn btn-link",type:"button"},t(h,{user:e.user,description:i.replace("{user}",`${d}`)}),t("span",{class:"visually-hidden"},s))),t("post-menu",{id:g,label:a,placement:"bottom-end"},t("div",{slot:"header"},t(h,{user:e.user}),e.user.company&&t("p",null,e.user.company),t("p",null,d)),e.accountSwitch&&u&&t("post-menu-item",null,t(r,{config:{text:e.accountSwitch.text,url:p(e.accountSwitch.url),icon:e.accountSwitch.icon}})),e.companySwitch&&l&&t("post-menu-item",null,t(r,{config:{text:e.companySwitch.text,url:p(e.companySwitch.url),icon:e.companySwitch.icon}})),e.options.map((e=>t("post-menu-item",{key:e.url},t(r,{config:e})))),e.logoutLink&&t("post-menu-item",null,t(r,{config:e.logoutLink}))))},w=()=>{const t=new Map,e=document.querySelectorAll('head link[rel="alternate"][hreflang][href]');for(const n of e){const e=n.getAttribute("href");if(!e)continue;const i=n.hreflang?.toLowerCase();if(!t.has(i))try{const n=new URL(e,document.baseURI);t.set(i,n.href)}catch{}}return t},m=t=>{const e=t.split("/").filter(Boolean)[0];if(e)try{return Intl.getCanonicalLocales(e),e}catch{return}},v=t=>t.substring(0,2).toLowerCase(),y=new Map,L=async(t,e,n)=>{if(!C(t))throw new Error(`Internet Header: invalid project id "${t}"`);let i;"test"===t&&(e="int01");for(const o of b(e)){const r=k(t,e,n,o);try{const t=await fetch(r);if(!t.ok)throw new Error(`Request failed with status ${t.status}`);return await t.json()}catch(t){i=t,console.warn(`Internet Header: API origin "${o}" not yet available! Falling back to the temporary origin until main origin is up and running.`)}}throw new Error(`Internet Header: fetching config failed. ${i?.message}`)},b=t=>"PROD"===t.toUpperCase()?["https://site.post.ch","https://www.post.ch"]:["https://int.post.ch"],k=(t,e,n,i=b(e)[0])=>{if("test"===t)return"assets/config/test-configuration.json";const o=e.toUpperCase(),r=n.toLowerCase();try{const e=new URLSearchParams({serviceId:t,environment:o,lang:r}).toString();return new URL(`${i}/api/header?${e}`).toString()}catch(t){throw new Error("Internet Header: Config URL is invalid.")}},C=t=>""!==t&&t.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(t),x=(t,e,n)=>{if(null===t||null===e||t.origin!==e.origin)return 0;const i=t.pathname.toLocaleLowerCase(),o=e.pathname.toLocaleLowerCase();if(i===o)return 1/0;if(t.pathname.length<e.pathname.length)return 0;if("auto"===n){const n=[t.origin.toLocaleLowerCase(),...i.split("/").filter((t=>null!==t&&""!==t))],r=[e.origin.toLocaleLowerCase(),...o.split("/").filter((t=>null!==t&&""!==t))],a=A(n,r);return Math.min(n.length,r.length)===a?a:0}return 0},A=(t,e)=>{if(null==t||null==e||0===t.length||0===e.length)return 0;let n=0;for(;n<Math.min(t.length,e.length);n++)if(t[n]!==e[n])return 0;return n},U={dev01:"https://n.accountint1.post.ch",dev02:"https://n.accountint1.post.ch",devs1:"https://n.accountint1.post.ch",test:"https://n.accountint1.post.ch",int01:"https://n.accountint1.post.ch",int02:"https://n.accountint2.post.ch",prod:"https://n.account.post.ch"},R=class{handleActiveRouteChange(){this.updateActiveUrl()}async handleLanguageChange(t){try{await this.updateConfig(t)}catch(t){console.error(t)}}constructor(t){if(e(this,t),this.headerLoaded=n(this,"headerLoaded"),this.activeRoute="auto",this.environment="prod",this.fullWidth=!1,void 0===this.project||""===this.project||!C(this.project))throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`)}connectedCallback(){this.observeAlternateLinks()}async componentWillLoad(){this.initAlternateLinks(),await Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])}componentDidLoad(){window.requestAnimationFrame((()=>{this.headerLoaded.emit()}))}disconnectedCallback(){this.alternateLinksObserver?.disconnect(),l()}handleLanguageChangeEvent(t){t.target instanceof HTMLElement&&"post-language-menu-item"===t.target.localName&&t.detail!==this.language&&this.handleLanguageChange(t.detail)}async fetchHeaderConfig(){try{c.projectId=this.project,c.environment=this.environment.toLocaleLowerCase(),void 0!==this.language&&(c.currentLanguage=this.language),await this.updateConfig()}catch(t){console.error(t)}}async fetchUserData(){try{const t=`${U[this.environment]}/v1/session/subscribe`,e=await fetch(t,{credentials:"include"});if(e.ok){const t=await e.json();c.user=t?.data}}catch{}}async updateConfig(t){c.localizedConfig=await(async({projectId:t,environment:e,language:n})=>{const i=(()=>{const t=document.querySelector("#PPM_HEADER_DATA");return null!=t?.textContent?JSON.parse(t.textContent):null})();if(i){const t=document.documentElement.lang;return c.currentLanguage=t,i}const o=(t=>{const e=new URL(window.location.href),n=[t,e.searchParams.get("lang"),m(e.pathname),document.documentElement.lang,null!=navigator.language?v(navigator.language):null!=navigator.languages&&navigator.languages.length>0?v(navigator.languages[0]):null,c.currentLanguage].filter((t=>null!=t));return v(n[0]??"de")})(n),r=`${t}-${e}-${o}`;let a=y.get(r);null==a&&(a=L(t,e,o).finally((()=>{y.delete(r)})),y.set(r,a));const s={...await a};return c.currentLanguage=o,s})({projectId:this.project,environment:this.environment,language:t??this.language}),this.updateActiveUrl()}initAlternateLinks(){c.alternateLinks=w()}observeAlternateLinks(){this.alternateLinksObserver=(()=>{const t=new MutationObserver((t=>{var e;t.some((t=>"attributes"===t.type?t.target instanceof HTMLLinkElement&&("href"===t.attributeName||"hreflang"===t.attributeName||"rel"===t.attributeName&&"alternate"===t.target.rel):"childList"===t.type&&[...t.addedNodes,...t.removedNodes].some((t=>t instanceof HTMLLinkElement&&t.hasAttribute("href")&&t.hasAttribute("hreflang")&&t.hasAttribute("rel")&&"alternate"===t.rel))))&&(e=w(),c.alternateLinks=e)}));return t.observe(document.head,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href","hreflang","rel"]}),t})()}updateActiveUrl(){c.activeLink=(t=>{const e=(t=>{const e=[];if(!t)return e;const n=t=>{null!=t&&(Array.isArray(t)?t.forEach(n):"object"==typeof t&&null!==t&&("url"in t&&"string"==typeof t.url&&e.push(t),Object.values(t).forEach(n)))};return n(t),e})(c.localizedConfig?.header);if(0===e.length||"none"===t)return null;if("auto"===t||"exact"===t){const t=(t=>t.find((t=>t.active)))(e);if(t)return t}let n;if("auto"===t||"exact"===t)n=new URL(window.location.href);else try{n=new URL(t,document.location.origin)}catch{return console.warn(`Active Route: ${t} is not a valid URL. Navigation highlighting has been disabled.`),null}const i=(t=>t.filter((t=>""!==t.url&&"#"!==t.url&&"/"!==t.url)))(e);return((t,e,n)=>{let i=null;for(const o of t)try{const t=new URL(o.url,document.location.origin),r=x(e,t,n);if(r>0&&((!i||r>i.score)&&(i={link:o,score:r}),r===1/0))break}catch{}return i?i.link:null})(i,n,"exact"===t?"exact":"auto")})(this.activeRoute)}getUserMenuOptions(t){return[...t.userProfile?[t.userProfile]:[],...t.settings?[t.settings]:[],...t.userLinks??[]]}getLanguageUrl(t,e){return c.alternateLinks.get(t.toLowerCase())??e}renderNavItem(e,n={}){return"url"in e?t(r,{...n,config:e}):t(f,{slot:n.slot,config:e,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})}renderNavigation(e,n,i={}){return 0===n.length?null:1===n.length?this.renderNavItem(n[0],{...i,slot:e}):t("ul",{slot:e},n.map((e=>t("li",{key:"url"in e?e.url:e.user.email},this.renderNavItem(e,i)))))}render(){if(!c.localizedConfig?.header)return void console.error(new Error("Internet Header: Config cannot be loaded"));const{globalHeader:e,localHeader:n}=c.localizedConfig.header;return t(i,{"data-version":u},t("post-header",{textMenu:this.textMenu},"image"in e.postLogo?t(r,{slot:"post-logo",config:e.postLogo}):t("post-logo",{slot:"post-logo",url:e.postLogo.url,"aria-label":e.postLogo.label,"aria-description":e.postLogo.description},e.postLogo.text),e.audience&&this.renderNavigation("audience",e.audience,{ariaCurrentWhenActive:"location"}),e.primaryNavigation&&this.renderNavigation("global-nav-primary",e.primaryNavigation),e.secondaryNavigation&&this.renderNavigation("global-nav-secondary",e.secondaryNavigation,{ariaCurrentWhenActive:"location"}),e.languages&&e.languages.length>0&&t("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},e.languages.map((e=>t("post-language-menu-item",{key:e.code,url:this.getLanguageUrl(e.code,e.url),active:e.active,code:e.code,name:e.label,description:e.description},e.text)))),e.postLogin&&this.renderNavItem(c.user?{user:c.user,options:this.getUserMenuOptions(e.postLogin),accountSwitch:e.postLogin.accountSwitch,companySwitch:e.postLogin.companySwitch,logoutLink:e.postLogin.logoutLink}:e.postLogin.loginLink,{slot:"post-login"}),n.title&&t("p",{slot:"title"},n.title),n.navigation&&this.renderNavigation("local-nav",n.navigation),n.mainNavigation&&n.mainNavigation.length>0&&t("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},t("ul",null,n.mainNavigation.map((e=>t("li",{key:"url"in e?e.url:e.trigger.text},"url"in e?t(r,{config:e,ariaCurrentWhenActive:"page"}):t(d,{config:e,textBack:this.textBack,textClose:this.textClose}))))))))}static get watchers(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}}};export{R as swisspost_internet_header}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as o}from"./p-h3opCZqH.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as o}from"./p-h3opCZqH.js";import{v as a}from"./p-BdiQsTQm.js";import{d as n}from"./p-C9hMpmsD.js";import{R as h}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=class{constructor(s){t(this,s),this.postFilteringEvent=i(this,"postFilteringEvent"),this.debouncedHandleInput=n((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.expanded=!1,this.lastQuery="",this.selectedValue=null,this.handleClick=async()=>{await this.runQuery("",!0)},this.handleBlur=()=>{this.restoreSelectedValue(),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const i=t.target.value.trim();await this.runQuery(i.length>=this.filterThreshold?i:"")},this.handleKeyDown=t=>{const{key:i,altKey:s}=t;switch(i){case"ArrowDown":t.preventDefault(),this.showListBox(),s||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{this.updateSelectedValue(t.detail),this.hideListBox()},this.handleOptionActive=t=>{const i=t.detail;i?this.inputElement.setAttribute("aria-activedescendant",i):this.inputElement.removeAttribute("aria-activedescendant")},this.handleClear=()=>{this.inputElement&&(this.updateSelectedValue(null),this.listBoxElement.clearSelection(),this.hideListBox())}}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){if(!this.inputElement)return;if(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",!this.listBoxElement)return;this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false");const t=this.inputElement.labels?.[0];t&&(t.id||(t.id=crypto.randomUUID()),this.listBoxElement.setAttribute("aria-labelledby",t.id)),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleBlur),this.inputElement.addEventListener("click",this.handleClick))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleBlur),this.inputElement.removeEventListener("click",this.handleClick))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}async showListBox(){await this.listBoxElement.show(),this.expanded=!0,this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()}async hideListBox(){this.clearAnnouncement(),this.expanded=!1,this.host.removeAttribute("open"),this.inputElement.ariaExpanded="false",this.inputElement.removeAttribute("aria-activedescendant"),await this.listBoxElement.hide()}updateSelectedValue(t){this.selectedValue=t,this.inputElement.value=this.selectedValue??""}restoreSelectedValue(){this.inputElement.value=this.selectedValue??""}async runQuery(t,i=!1){this.lastQuery!==(this.lastQuery=t)&&await this.filterListBox(t),this.expanded?this.announceCount():(i||t)&&await this.showListBox()}async filterListBox(t){this.postFilteringEvent.emit(t).defaultPrevented||await(this.listBoxElement?.filter(t))}render(){return s(e,{key:"8b386930fe5484cd73395224b5f0c5daea867b33","data-version":a},s("slot",{key:"9aa5a34de2cf18c3d6342069fc2b4ce52baac0d3"}),this.clearable&&null!==this.selectedValue&&s("button",{key:"90b459fffc29066667ca4656b6871275d061d3fd",type:"button",class:"autocomplete-clear",onClick:this.handleClear},s("post-icon",{key:"419de2b608f1638b14aed086f8e2c6064ae634bc","aria-hidden":"true",name:"closex"})),s("post-icon",{key:"56b7dd986023a0e46d902020b923ae525c88bef1","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),s("output",{key:"6ef02d0baf03c7f562ba6d5c95918e4a7ae1214f",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,i,s,e){var o,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([h(),r("string")],c.prototype,"textAvailableSuggestions",void 0),c.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{c as post_autocomplete}
|
package/dist/swisspost-internet-header/{p-f3e68437.system.entry.js → p-42fe4c65.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,r,s,o,a;return{setters:[function(t){e=t.r;i=t.h;n=t.H;r=t.g},function(t){s=t.v},function(t){o=t.R},function(t){a=t.T},null],execute:function(){var l=function(){return":host{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-margin-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));-webkit-margin-end:calc(-1*var(--post-local-header-padding-inline-end));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:16px;background:#fff;-webkit-box-shadow:var(--post-device-elevation-500);box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{-webkit-margin-end:-48px;margin-inline-end:-48px}.scroll-control.scroll-right{-webkit-margin-start:-48px;margin-inline-start:-48px}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:16px}"};var c=undefined&&undefined.__decorate||function(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)if(o=t[a])s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s;return r>3&&s&&Object.defineProperty(e,i,s),s};var h=100;var f=400;var d=t("post_mainnavigation",function(){function t(t){e(this,t);this.canScrollLeft=false;this.canScrollRight=false;this.scrollRight=this.scrollRight.bind(this);this.scrollLeft=this.scrollLeft.bind(this);this.checkScrollability=this.checkScrollability.bind(this);this.resizeObserver=new ResizeObserver(this.checkScrollability);this.mutationObserver=new MutationObserver(this.checkScrollability)}t.prototype.componentDidLoad=function(){var t=this;var e;setTimeout((function(){t.checkScrollability()}));this.resizeObserver.observe(this.navbar);this.mutationObserver.observe(this.navbar,{subtree:true,childList:true});(e=this.navbar)===null||e===void 0?void 0:e.addEventListener("scrollend",this.checkScrollability)};t.prototype.disconnectedCallback=function(){var t;this.mutationObserver.disconnect();this.resizeObserver.disconnect();(t=this.navbar)===null||t===void 0?void 0:t.removeEventListener("scrollend",this.checkScrollability)};t.prototype.stopScrolling=function(){if(this.scrollRepeatInterval)clearInterval(this.scrollRepeatInterval)};Object.defineProperty(t.prototype,"navigationItems",{get:function(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canScroll",{get:function(){return this.canScrollLeft||this.canScrollRight},enumerable:false,configurable:true});t.prototype.checkScrollability=function(){var t=this.navbar,e=t.scrollLeft,i=t.scrollWidth,n=t.clientWidth;if(i===n){this.canScrollLeft=this.canScrollRight=false}else{this.canScrollLeft=Math.floor(e)>0;this.canScrollRight=Math.ceil(n+e)<i}};t.prototype.handleScrollButtonClick=function(t,e){if(!this.canScroll||t.button!==0)return;this.temporarilyDisableNavbar();var i=e==="right"?this.scrollRight:this.scrollLeft;i();this.scrollRepeatInterval=setInterval((function(){i()}),h)};t.prototype.scrollRight=function(){var t=this.host.shadowRoot.querySelector(".scroll-right").getBoundingClientRect().left;for(var e=0,i=this.navigationItems;e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.right,o=r.width;var a=s-.25*o<t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.scrollLeft=function(){var t=this.host.shadowRoot.querySelector(".scroll-left").getBoundingClientRect().right;for(var e=0,i=this.navigationItems.reverse();e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.left,o=r.width;var a=s+.25*o>t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.temporarilyDisableNavbar=function(){var t=this;if(this.navbarDisableTimer)clearTimeout(this.navbarDisableTimer);this.navbar.setAttribute("inert","");this.navbarDisableTimer=setTimeout((function(){t.navbar.removeAttribute("inert")}),f)};t.prototype.render=function(){var t=this;return i(n,{key:"cf7b2328a41b41ca28956120b8042590655e7bb2",version:s,class:this.canScroll?"scrollable":""},i("div",{key:"a25c55cf7b11a11ce86fb134dd57dbdad3d30301","aria-hidden":"true",class:{"scroll-control scroll-left":true,"d-none":!this.canScrollLeft},onMouseDown:function(e){return t.handleScrollButtonClick(e,"left")}},i("post-icon",{key:"013778591637d5ee0ac2cd2bf3f23c677ba2a13f","aria-hidden":"true",name:"chevronleft"})),i("nav",{key:"a007b7be57429580de35865e5eff0c54378d0a8e",ref:function(e){return t.navbar=e},"aria-label":this.textMain},i("slot",{key:"bc8e1db18430ee43b5963539fbaa65e1fb1b0c55"})),i("div",{key:"cdb413fedc9a90c712db0fe5d6ab760a426ff632","aria-hidden":"true",class:{"scroll-control scroll-right":true,"d-none":!this.canScrollRight},onMouseDown:function(e){return t.handleScrollButtonClick(e,"right")}},i("post-icon",{key:"b2df569a79881b3a044556ba9c0f2e2b0646e78b","aria-hidden":"true",name:"chevronright"})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());c([o(),a("string")],d.prototype,"textMain",void 0);d.style=l()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,g as s}from"./p-h3opCZqH.js";import{v as o}from"./p-
|
|
1
|
+
import{r as t,h as e,H as i,g as s}from"./p-h3opCZqH.js";import{v as o}from"./p-BdiQsTQm.js";import{R as n}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const a=class{constructor(e){t(this,e),this.canScrollLeft=!1,this.canScrollRight=!1,this.scrollRight=this.scrollRight.bind(this),this.scrollLeft=this.scrollLeft.bind(this),this.checkScrollability=this.checkScrollability.bind(this),this.resizeObserver=new ResizeObserver(this.checkScrollability),this.mutationObserver=new MutationObserver(this.checkScrollability)}componentDidLoad(){setTimeout((()=>{this.checkScrollability()})),this.resizeObserver.observe(this.navbar),this.mutationObserver.observe(this.navbar,{subtree:!0,childList:!0}),this.navbar?.addEventListener("scrollend",this.checkScrollability)}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.navbar?.removeEventListener("scrollend",this.checkScrollability)}stopScrolling(){this.scrollRepeatInterval&&clearInterval(this.scrollRepeatInterval)}get navigationItems(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))}get canScroll(){return this.canScrollLeft||this.canScrollRight}checkScrollability(){const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.navbar;e===i?this.canScrollLeft=this.canScrollRight=!1:(this.canScrollLeft=Math.floor(t)>0,this.canScrollRight=Math.ceil(i+t)<e)}handleScrollButtonClick(t,e){if(!this.canScroll||0!==t.button)return;this.temporarilyDisableNavbar();const i="right"===e?this.scrollRight:this.scrollLeft;i(),this.scrollRepeatInterval=setInterval((()=>{i()}),100)}scrollRight(){const t=this.host.shadowRoot.querySelector(".scroll-right").getBoundingClientRect().left;for(const e of this.navigationItems){const{right:i,width:s}=e.getBoundingClientRect();if(!(i-.25*s<t))return void this.navbar.scrollBy({left:i-t})}}scrollLeft(){const t=this.host.shadowRoot.querySelector(".scroll-left").getBoundingClientRect().right;for(const e of this.navigationItems.reverse()){const{left:i,width:s}=e.getBoundingClientRect();if(!(i+.25*s>t))return void this.navbar.scrollBy({left:i-t})}}temporarilyDisableNavbar(){this.navbarDisableTimer&&clearTimeout(this.navbarDisableTimer),this.navbar.setAttribute("inert",""),this.navbarDisableTimer=setTimeout((()=>{this.navbar.removeAttribute("inert")}),400)}render(){return e(i,{key:"cf7b2328a41b41ca28956120b8042590655e7bb2",version:o,class:this.canScroll?"scrollable":""},e("div",{key:"a25c55cf7b11a11ce86fb134dd57dbdad3d30301","aria-hidden":"true",class:{"scroll-control scroll-left":!0,"d-none":!this.canScrollLeft},onMouseDown:t=>this.handleScrollButtonClick(t,"left")},e("post-icon",{key:"013778591637d5ee0ac2cd2bf3f23c677ba2a13f","aria-hidden":"true",name:"chevronleft"})),e("nav",{key:"a007b7be57429580de35865e5eff0c54378d0a8e",ref:t=>this.navbar=t,"aria-label":this.textMain},e("slot",{key:"bc8e1db18430ee43b5963539fbaa65e1fb1b0c55"})),e("div",{key:"cdb413fedc9a90c712db0fe5d6ab760a426ff632","aria-hidden":"true",class:{"scroll-control scroll-right":!0,"d-none":!this.canScrollRight},onMouseDown:t=>this.handleScrollButtonClick(t,"right")},e("post-icon",{key:"b2df569a79881b3a044556ba9c0f2e2b0646e78b","aria-hidden":"true",name:"chevronright"})))}get host(){return s(this)}};(function(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([n(),r("string")],a.prototype,"textMain",void 0),a.style=":host{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-margin-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));-webkit-margin-end:calc(-1*var(--post-local-header-padding-inline-end));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:16px;background:#fff;-webkit-box-shadow:var(--post-device-elevation-500);box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{-webkit-margin-end:-48px;margin-inline-end:-48px}.scroll-control.scroll-right{-webkit-margin-start:-48px;margin-inline-start:-48px}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:16px}";export{a as post_mainnavigation}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-BdiQsTQm.js";const i=class{constructor(e){t(this,e)}connectedCallback(){this.host.dataset.version=o}get host(){return e(this)}};i.style='post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;width:100%}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item button,post-menu-item a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:13px}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline:none !important}post-menu-item button.pretend-focus,post-menu-item a.pretend-focus{outline:none !important}post-menu-item button:has(:focus-visible),post-menu-item a:has(:focus-visible){outline:none !important}@supports not selector(:has(:focus-visible)){post-menu-item button:is(:focus-visible,:focus-within,.pretend-focus),post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus){outline:none !important}}post-menu-item button::after,post-menu-item a::after{content:"";position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--post-device-border-radius-focus) - var(--post-device-spacing-padding-44))}post-menu-item button::after,post-menu-item a::after{outline-offset:var(--post-device-spacing-padding-44) !important;outline:#050400 none var(--post-device-border-width-focus) !important}post-menu-item button:focus-visible::after,post-menu-item a:focus-visible::after{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-item button:focus-visible::after,post-menu-item a:focus-visible::after{outline-color:Highlight !important}}post-menu-item button.pretend-focus::after,post-menu-item a.pretend-focus::after{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-item button.pretend-focus::after,post-menu-item a.pretend-focus::after{outline-color:Highlight !important}}post-menu-item button:has(:focus-visible)::after,post-menu-item a:has(:focus-visible)::after{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-item button:has(:focus-visible)::after,post-menu-item a:has(:focus-visible)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-item button:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus)::after{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-item button:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}post-menu-item button:hover:focus-visible::after,post-menu-item a:hover:focus-visible::after{outline-color:#fff !important}post-menu-item button:hover.pretend-focus::after,post-menu-item a:hover.pretend-focus::after{outline-color:#fff !important}post-menu-item button:hover:has(:focus-visible)::after,post-menu-item a:hover:has(:focus-visible)::after{outline-color:#fff !important}@supports not selector(:has(:focus-visible)){post-menu-item button:hover:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:hover:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:#fff !important}}post-menu-item button post-icon,post-menu-item a post-icon{width:16px;height:16px;margin-block:4px}@media screen and (min-width: 780px){post-menu-item button post-icon,post-menu-item a post-icon{width:24px;height:24px;margin:0}}';export{i as post_menu_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(t,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))r[e]=t[e]};return r(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))r[i]=t[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,t,e,n){function i(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,o){function a(r){try{s(n.next(r))}catch(r){o(r)}}function u(r){try{s(n["throw"](r))}catch(r){o(r)}}function s(r){r.done?e(r.value):i(r.value).then(a,u)}s((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(r){return function(t){return s([r,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=t.call(r,e)}catch(r){u=[6,r];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(r,t){var e={};for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0)e[n]=r[n];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++){if(t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i]))e[n[i]]=r[n[i]]}return e};var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return r.concat(o||Array.prototype.slice.call(t))};System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-CiwQnVr3.system.js","./p-BYB4z0RW.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(r){"use strict";var t,e,n,i,o,a,u,s,f;return{setters:[function(r){t=r.r;e=r.c;n=r.h;i=r.H;o=r.g},function(r){a=r.v},function(r){u=r.O},function(r){s=r.P},function(r){f=r.T},null],execute:function(){var c=this;var v=250;var l="ease-out";function d(r){if(!r)return;return r.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:v,easing:l,fill:"forwards"})}var p=["top","right","bottom","left"];var h=Math.min;var w=Math.max;var g=Math.round;var b=Math.floor;var _=function(r){return{x:r,y:r}};var m={left:"right",right:"left",bottom:"top",top:"bottom"};function x(r,t,e){return w(r,h(t,e))}function y(r,t){return typeof r==="function"?r(t):r}function k(r){return r.split("-")[0]}function S(r){return r.split("-")[1]}function M(r){return r==="x"?"y":"x"}function T(r){return r==="y"?"height":"width"}function A(r){var t=r[0];return t==="t"||t==="b"?"y":"x"}function E(r){return M(A(r))}function O(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}var H=["left","right"];var j=["right","left"];var L=["top","bottom"];var C=["bottom","top"];function z(r,t,e){switch(r){case"top":case"bottom":if(e)return t?j:H;return t?H:j;case"left":case"right":return t?L:C;default:return[]}}function R(r,t,e,n){var i=S(r);var o=z(k(r),e==="start",n);if(i){o=o.map((function(r){return r+"-"+i}));{o=o.concat(o.map(O))}}return o}function D(r){var t=k(r);return m[t]+r.slice(t.length)}function F(r){var t,e,n,i;return{top:(t=r.top)!=null?t:0,right:(e=r.right)!=null?e:0,bottom:(n=r.bottom)!=null?n:0,left:(i=r.left)!=null?i:0}}function B(r){return typeof r!=="number"?F(r):{top:r,right:r,bottom:r,left:r}}function W(r){var t=r.x,e=r.y,n=r.width,i=r.height;return{width:n,height:i,top:e,left:t,right:t+n,bottom:e+i,x:t,y:e}}function I(r,t,e){var n=r.reference,i=r.floating;var o=A(t);var a=E(t);var u=T(a);var s=k(t);var f=o==="y";var c=n.x+n.width/2-i.width/2;var v=n.y+n.height/2-i.height/2;var l=n[u]/2-i[u]/2;var d;switch(s){case"top":d={x:c,y:n.y-i.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:v};break;case"left":d={x:n.x-i.width,y:v};break;default:d={x:n.x,y:n.y}}var p=S(t);if(p){d[a]+=l*(p==="end"?1:-1)*(e&&f?-1:1)}return d}function P(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,h,w,g,b,_,m,x,k,S,M,T,A,E,O,H,j,L,C,z,R,D;var F;return __generator(this,(function(I){switch(I.label){case 0:if(t===void 0){t={}}n=r.x,i=r.y,o=r.platform,a=r.rects,u=r.elements,s=r.strategy;f=y(t,r),c=f.boundary,v=c===void 0?"clippingAncestors":c,l=f.rootBoundary,d=l===void 0?"viewport":l,p=f.elementContext,h=p===void 0?"floating":p,w=f.altBoundary,g=w===void 0?false:w,b=f.padding,_=b===void 0?0:b;m=B(_);x=h==="floating"?"reference":"floating";k=u[g?x:h];M=W;A=(T=o).getClippingRect;F={};return[4,o.isElement==null?void 0:o.isElement(k)];case 1:if(!((e=I.sent())!=null?e:true))return[3,2];E=k;return[3,5];case 2:O=k.contextElement;if(O)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)];case 3:O=I.sent();I.label=4;case 4:E=O;I.label=5;case 5:return[4,A.apply(T,[(F.element=E,F.boundary=v,F.rootBoundary=d,F.strategy=s,F)])];case 6:S=M.apply(void 0,[I.sent()]);H=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)];case 7:j=I.sent();return[4,o.isElement==null?void 0:o.isElement(j)];case 8:C=I.sent();if(!C)return[3,10];return[4,o.getScale==null?void 0:o.getScale(j)];case 9:C=I.sent();I.label=10;case 10:L=C||{x:1,y:1};R=W;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,12];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:H,offsetParent:j,strategy:s})];case 11:D=I.sent();return[3,13];case 12:D=H;I.label=13;case 13:z=R.apply(void 0,[D]);return[2,{top:(S.top-z.top+m.top)/L.y,bottom:(z.bottom-S.bottom+m.bottom)/L.y,left:(S.left-z.left+m.left)/L.x,right:(z.right-S.right+m.right)/L.x}]}}))}))}var q=50;var N=function(r,t,e){return __awaiter(c,void 0,void 0,(function(){var n,i,o,a,u,s,f,c,v,l,d,p,h,w,g,b,_,m,x,y,k,S,M,T,A,E;var O;return __generator(this,(function(H){switch(H.label){case 0:n=e.placement,i=n===void 0?"bottom":n,o=e.strategy,a=o===void 0?"absolute":o,u=e.middleware,s=u===void 0?[]:u,f=e.platform;c=f.detectOverflow?f:__assign(__assign({},f),{detectOverflow:P});return[4,f.isRTL==null?void 0:f.isRTL(t)];case 1:v=H.sent();return[4,f.getElementRects({reference:r,floating:t,strategy:a})];case 2:l=H.sent();d=I(l,i,v),p=d.x,h=d.y;w=i;g=0;b={};_=0;H.label=3;case 3:if(!(_<s.length))return[3,11];m=s[_];if(!m){return[3,10]}x=m.name,y=m.fn;return[4,y({x:p,y:h,initialPlacement:i,placement:w,strategy:a,middlewareData:b,rects:l,platform:c,elements:{reference:r,floating:t}})];case 4:k=H.sent(),S=k.x,M=k.y,T=k.data,A=k.reset;p=S!=null?S:p;h=M!=null?M:h;b[x]=__assign(__assign({},b[x]),T);if(!(A&&g<q))return[3,10];g++;if(!(typeof A==="object"))return[3,9];if(A.placement){w=A.placement}if(!A.rects)return[3,8];if(!(A.rects===true))return[3,6];return[4,f.getElementRects({reference:r,floating:t,strategy:a})];case 5:E=H.sent();return[3,7];case 6:E=A.rects;H.label=7;case 7:l=E;H.label=8;case 8:O=I(l,w,v),p=O.x,h=O.y;H.label=9;case 9:_=-1;H.label=10;case 10:_++;return[3,3];case 11:return[2,{x:p,y:h,placement:w,strategy:a,middlewareData:b}]}}))}))};var V=function(r){return{name:"arrow",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,w,g,b,_,m,k,M,A,O,H,j,L,C,z,R,D,F,W,I,P,q;var N,V;return __generator(this,(function($){switch($.label){case 0:e=t.x,n=t.y,i=t.placement,o=t.rects,a=t.platform,u=t.elements,s=t.middlewareData;f=y(r,t)||{},c=f.element,v=f.padding,l=v===void 0?0:v;if(c==null){return[2,{}]}d=B(l);p={x:e,y:n};w=E(i);g=T(w);return[4,a.getDimensions(c)];case 1:b=$.sent();_=w==="y";m=_?"top":"left";k=_?"bottom":"right";M=_?"clientHeight":"clientWidth";A=o.reference[g]+o.reference[w]-p[w]-o.floating[g];O=p[w]-o.reference[w];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(c)];case 2:H=$.sent();j=H?H[M]:0;L=!j;if(L)return[3,4];return[4,a.isElement==null?void 0:a.isElement(H)];case 3:L=!$.sent();$.label=4;case 4:if(L){j=u.floating[M]||o.floating[g]}C=A/2-O/2;z=j/2-b[g]/2-1;R=h(d[m],z);D=h(d[k],z);F=j-b[g]-D;W=j/2-b[g]/2+C;I=x(R,W,F);P=!s.arrow&&S(i)!=null&&W!==I&&o.reference[g]/2-(W<R?R:D)-b[g]/2<0;q=P?W<R?W-R:W-F:0;return[2,(N={},N[w]=p[w]+q,N.data=__assign((V={},V[w]=I,V.centerOffset=W-I-q,V),P&&{alignmentOffset:q}),N.reset=P,N)]}}))}))}}};function $(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function G(r){return p.some((function(t){return r[t]>=0}))}var K=function(r){if(r===void 0){r={}}return{name:"hide",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,f,c;return __generator(this,(function(v){switch(v.label){case 0:e=t.rects,n=t.platform;i=y(r,t),o=i.strategy,a=o===void 0?"referenceHidden":o,u=__rest(i,["strategy"]);s=a;switch(s){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,n.detectOverflow(t,__assign(__assign({},u),{elementContext:"reference"}))];case 2:f=v.sent();c=$(f,e.reference);return[2,{data:{referenceHiddenOffsets:c,referenceHidden:G(c)}}];case 3:return[4,n.detectOverflow(t,__assign(__assign({},u),{altBoundary:true}))];case 4:f=v.sent();c=$(f,e.floating);return[2,{data:{escapedOffsets:c,escaped:G(c)}}];case 5:{return[2,{}]}v.label=6;case 6:return[2]}}))}))}}};function Q(r){var t=h.apply(void 0,r.map((function(r){return r.left})));var e=h.apply(void 0,r.map((function(r){return r.top})));var n=w.apply(void 0,r.map((function(r){return r.right})));var i=w.apply(void 0,r.map((function(r){return r.bottom})));return{x:t,y:e,width:n-t,height:i-e}}function Y(r){var t=r.slice().sort((function(r,t){return r.y-t.y}));var e=[];var n=null;for(var i=0;i<t.length;i++){var o=t[i];if(!n||o.y-n.y>n.height/2){e.push([o])}else{e[e.length-1].push(o)}n=o}return e.map((function(r){return W(Q(r))}))}var Z=function(r){if(r===void 0){r={}}return{name:"inline",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){function e(){if(b.length===2&&(b[0].left>b[1].right||b[1].left>b[0].right)&&v!=null&&l!=null){return b.find((function(r){return v>r.left-m.left&&v<r.right+m.right&&l>r.top-m.top&&l<r.bottom+m.bottom}))||_}if(b.length>=2){if(A(n)==="y"){var r=b[0];var t=b[b.length-1];var e=k(n)==="top";var i=r.top;var o=t.bottom;var a=e?r.left:t.left;var u=e?r.right:t.right;return W({x:a,y:i,width:u-a,height:o-i})}var s=k(n)==="left";var f=w.apply(void 0,b.map((function(r){return r.right})));var c=h.apply(void 0,b.map((function(r){return r.left})));var d=b.filter((function(r){return s?r.left===c:r.right===f}));var p=d[0].top;var g=d[d.length-1].bottom;return W({x:c,y:p,width:f-c,height:g-p})}return _}var n,i,o,a,u,s,f,c,v,l,d,p,g,b,_,m,x;return __generator(this,(function(h){switch(h.label){case 0:n=t.placement,i=t.elements,o=t.rects,a=t.platform,u=t.strategy;s=y(r,t),f=s.padding,c=f===void 0?2:f,v=s.x,l=s.y;g=(p=Array).from;return[4,a.getClientRects==null?void 0:a.getClientRects(i.reference)];case 1:d=g.apply(p,[h.sent()||[]]);if(!d.length){return[2,{}]}b=Y(d);_=W(Q(d));m=B(c);return[4,a.getElementRects({reference:{getBoundingClientRect:e},floating:i.floating,strategy:u})];case 2:x=h.sent();if(o.reference.x!==x.reference.x||o.reference.y!==x.reference.y||o.reference.width!==x.reference.width||o.reference.height!==x.reference.height){return[2,{reset:{rects:x}}]}return[2,{}]}}))}))}}};var J=new Set(["left","top"]);function U(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,h;return __generator(this,(function(w){switch(w.label){case 0:e=r.placement,n=r.platform,i=r.elements;return[4,n.isRTL==null?void 0:n.isRTL(i.floating)];case 1:o=w.sent();a=k(e);u=S(e);s=A(e)==="y";f=J.has(a)?-1:1;c=o&&s?-1:1;v=y(t,r);l=typeof v==="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis},d=l.mainAxis,p=l.crossAxis,h=l.alignmentAxis;if(u&&typeof h==="number"){p=u==="end"?h*-1:h}return[2,s?{x:p*c,y:d*f}:{x:d*f,y:p*c}]}}))}))}var X=function(r){if(r===void 0){r=0}return{name:"offset",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s;return __generator(this,(function(f){switch(f.label){case 0:i=t.x,o=t.y,a=t.placement,u=t.middlewareData;return[4,U(t,r)];case 1:s=f.sent();if(a===((e=u.offset)==null?void 0:e.placement)&&(n=u.arrow)!=null&&n.alignmentOffset){return[2,{}]}return[2,{x:i+s.x,y:o+s.y,data:__assign(__assign({},s),{placement:a})}]}}))}))}}};var rr=function(r){if(r===void 0){r={}}return{name:"shift",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,h,w,g,b,_,m,k;var S,T;return __generator(this,(function(E){switch(E.label){case 0:e=t.x,n=t.y,i=t.placement,o=t.platform;a=y(r,t),u=a.mainAxis,s=u===void 0?true:u,f=a.crossAxis,c=f===void 0?false:f,v=a.limiter,l=v===void 0?{fn:function(r){var t=r.x,e=r.y;return{x:t,y:e}}}:v,d=__rest(a,["mainAxis","crossAxis","limiter"]);p={x:e,y:n};return[4,o.detectOverflow(t,d)];case 1:h=E.sent();w=A(i);g=M(w);b=p[g];_=p[w];m=function(r,t){return x(t+h[r==="y"?"top":"left"],t,t-h[r==="y"?"bottom":"right"])};if(s){b=m(g,b)}if(c){_=m(w,_)}k=l.fn(__assign(__assign({},t),(S={},S[g]=b,S[w]=_,S)));return[2,__assign(__assign({},k),{data:{x:k.x-e,y:k.y-n,enabled:(T={},T[g]=s,T[w]=c,T)}})]}}))}))}}};var tr=function(r){if(r===void 0){r={}}return{options:r,fn:function(t){var e;var n,i;var o=t.x,a=t.y,u=t.placement,s=t.rects,f=t.middlewareData;var c=y(r,t),v=c.offset,l=v===void 0?0:v,d=c.mainAxis,p=d===void 0?true:d,h=c.crossAxis,w=h===void 0?true:h;var g={x:o,y:a};var b=A(u);var _=M(b);var m=g[_];var x=g[b];var S=y(l,t);var T=typeof S==="number"?{mainAxis:S,crossAxis:0}:{mainAxis:(n=S.mainAxis)!=null?n:0,crossAxis:(i=S.crossAxis)!=null?i:0};if(p){var E=_==="y"?"height":"width";var O=s.reference[_]-s.floating[E]+T.mainAxis;var H=s.reference[_]+s.reference[E]-T.mainAxis;if(m<O){m=O}else if(m>H){m=H}}if(w){var j,L;var E=_==="y"?"width":"height";var C=J.has(k(u));var O=s.reference[b]-s.floating[E]+(C?((j=f.offset)==null?void 0:j[b])||0:0)+(C?0:T.crossAxis);var H=s.reference[b]+s.reference[E]+(C?0:((L=f.offset)==null?void 0:L[b])||0)-(C?T.crossAxis:0);if(x<O){x=O}else if(x>H){x=H}}return e={},e[_]=m,e[b]=x,e}}};var er=function(r){if(r===void 0){r={}}return{name:"size",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,g,b,_,m,x,M,T,E,O,H,j,L,C,z;return __generator(this,(function(R){switch(R.label){case 0:e=t.placement,n=t.rects,i=t.platform,o=t.elements;a=y(r,t),u=a.apply,s=u===void 0?function(){}:u,f=__rest(a,["apply"]);return[4,i.detectOverflow(t,f)];case 1:c=R.sent();v=k(e);l=S(e);d=A(e)==="y";p=n.floating,g=p.width,b=p.height;if(!(v==="top"||v==="bottom"))return[3,3];_=v;x=l;return[4,i.isRTL==null?void 0:i.isRTL(o.floating)];case 2:m=x===(R.sent()?"start":"end")?"left":"right";return[3,4];case 3:m=v;_=l==="end"?"top":"bottom";R.label=4;case 4:M=b-c.top-c.bottom;T=g-c.left-c.right;E=h(b-c[_],M);O=h(g-c[m],T);H=t.middlewareData.shift;j=!H;L=E;C=O;if(H!=null&&H.enabled.x){C=T}if(H!=null&&H.enabled.y){L=M}if(j&&!l){if(d){C=g-2*w(c.left,c.right)}else{L=b-2*w(c.top,c.bottom)}}return[4,s(__assign(__assign({},t),{availableWidth:C,availableHeight:L}))];case 5:R.sent();return[4,i.getDimensions(o.floating)];case 6:z=R.sent();if(g!==z.width||b!==z.height){return[2,{reset:{rects:true}}]}return[2,{}]}}))}))}}};function nr(){return typeof window!=="undefined"}function ir(r){if(ur(r)){return(r.nodeName||"").toLowerCase()}return"#document"}function or(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function ar(r){var t;return(t=(ur(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function ur(r){if(!nr()){return false}return r instanceof Node||r instanceof or(r).Node}function sr(r){if(!nr()){return false}return r instanceof Element||r instanceof or(r).Element}function fr(r){if(!nr()){return false}return r instanceof HTMLElement||r instanceof or(r).HTMLElement}function cr(r){if(!nr()||typeof ShadowRoot==="undefined"){return false}return r instanceof ShadowRoot||r instanceof or(r).ShadowRoot}function vr(r){var t=yr(r),e=t.overflow,n=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&o!=="inline"&&o!=="contents"}function lr(r){return/^(table|td|th)$/.test(ir(r))}function dr(r){try{if(r.matches(":popover-open")){return true}}catch(r){}try{return r.matches(":modal")}catch(r){return false}}var pr=/transform|translate|scale|rotate|perspective|filter/;var hr=/paint|layout|strict|content/;var wr=function(r){return!!r&&r!=="none"};var gr;function br(r){var t=sr(r)?yr(r):r;return wr(t.transform)||wr(t.translate)||wr(t.scale)||wr(t.rotate)||wr(t.perspective)||!mr()&&(wr(t.backdropFilter)||wr(t.filter))||pr.test(t.willChange||"")||hr.test(t.contain||"")}function _r(r){var t=Sr(r);while(fr(t)&&!xr(t)){if(br(t)){return t}else if(dr(t)){return null}t=Sr(t)}return null}function mr(){if(gr==null){gr=typeof CSS!=="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}return gr}function xr(r){return/^(html|body|#document)$/.test(ir(r))}function yr(r){return or(r).getComputedStyle(r)}function kr(r){if(sr(r)){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}return{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Sr(r){if(ir(r)==="html"){return r}var t=r.assignedSlot||r.parentNode||cr(r)&&r.host||ar(r);return cr(t)?t.host:t}function Mr(r){var t=Sr(r);if(xr(t)){return(r.ownerDocument||r).body}if(fr(t)&&vr(t)){return t}return Mr(t)}function Tr(r,t,e){var n;if(t===void 0){t=[]}if(e===void 0){e=true}var i=Mr(r);var o=i===((n=r.ownerDocument)==null?void 0:n.body);var a=or(i);if(o){var u=Ar(a);return t.concat(a,a.visualViewport||[],vr(i)?i:[],u&&e?Tr(u):[])}else{return t.concat(i,Tr(i,[],e))}}function Ar(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Er(r){var t=yr(r);var e=parseFloat(t.width)||0;var n=parseFloat(t.height)||0;var i=fr(r);var o=i?r.offsetWidth:e;var a=i?r.offsetHeight:n;var u=g(e)!==o||g(n)!==a;if(u){e=o;n=a}return{width:e,height:n,$:u}}function Or(r){return!sr(r)?r.contextElement:r}function Hr(r){var t=Or(r);if(!fr(t)){return _(1)}var e=t.getBoundingClientRect();var n=Er(t),i=n.width,o=n.height,a=n.$;var u=(a?g(e.width):e.width)/i;var s=(a?g(e.height):e.height)/o;if(!u||!Number.isFinite(u)){u=1}if(!s||!Number.isFinite(s)){s=1}return{x:u,y:s}}var jr=_(0);function Lr(r){var t=or(r);if(!mr()||!t.visualViewport){return jr}return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cr(r,t,e){if(t===void 0){t=false}return!!e&&t&&e===or(r)}function zr(r,t,e,n){if(t===void 0){t=false}if(e===void 0){e=false}var i=r.getBoundingClientRect();var o=Or(r);var a=_(1);if(t){if(n){if(sr(n)){a=Hr(n)}}else{a=Hr(r)}}var u=Cr(o,e,n)?Lr(o):_(0);var s=(i.left+u.x)/a.x;var f=(i.top+u.y)/a.y;var c=i.width/a.x;var v=i.height/a.y;if(o&&n){var l=or(o);var d=sr(n)?or(n):n;var p=l;var h=Ar(p);while(h&&d!==p){var w=Hr(h);var g=h.getBoundingClientRect();var b=yr(h);var m=g.left+(h.clientLeft+parseFloat(b.paddingLeft))*w.x;var x=g.top+(h.clientTop+parseFloat(b.paddingTop))*w.y;s*=w.x;f*=w.y;c*=w.x;v*=w.y;s+=m;f+=x;p=or(h);h=Ar(p)}}return W({width:c,height:v,x:s,y:f})}function Rr(r,t){var e=kr(r).scrollLeft;if(!t){return zr(ar(r)).left+e}return t.left+e}function Dr(r,t){var e=r.getBoundingClientRect();var n=e.left+t.scrollLeft-Rr(r,e);var i=e.top+t.scrollTop;return{x:n,y:i}}function Fr(r){var t=r.elements,e=r.rect,n=r.offsetParent,i=r.strategy;var o=i==="fixed";var a=ar(n);var u=t?dr(t.floating):false;if(n===a||u&&o){return e}var s={scrollLeft:0,scrollTop:0};var f=_(1);var c=_(0);var v=fr(n);if(v||!o){if(ir(n)!=="body"||vr(a)){s=kr(n)}if(v){var l=zr(n);f=Hr(n);c.x=l.x+n.clientLeft;c.y=l.y+n.clientTop}}var d=a&&!v&&!o?Dr(a,s):_(0);return{width:e.width*f.x,height:e.height*f.y,x:e.x*f.x-s.scrollLeft*f.x+c.x+d.x,y:e.y*f.y-s.scrollTop*f.y+c.y+d.y}}function Br(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function Wr(r){var t=kr(r);var e=r.ownerDocument.body;var n=w(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth);var i=w(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight);var o=-t.scrollLeft+Rr(r);var a=-t.scrollTop;if(yr(e).direction==="rtl"){o+=w(r.clientWidth,e.clientWidth)-n}return{width:n,height:i,x:o,y:a}}var Ir=25;function Pr(r,t,e){if(e===void 0){e="viewport"}var n=e==="layoutViewport";var i=or(r);var o=ar(r);var a=i.visualViewport;var u=o.clientWidth;var s=o.clientHeight;var f=0;var c=0;if(a){var v=!mr()||t==="fixed";if(n){if(!v){f=-a.offsetLeft;c=-a.offsetTop}}else{u=a.width;s=a.height;if(v){f=a.offsetLeft;c=a.offsetTop}}}var l=Rr(o);if(l<=0){var d=o.ownerDocument;var p=d.body;var h=getComputedStyle(p);var w=d.compatMode==="CSS1Compat"?parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0:0;var g=Math.abs(o.clientWidth-p.clientWidth-w);var b=getComputedStyle(o).scrollbarGutter==="stable both-edges"?g/2:g;if(b<=Ir){u-=b}}return{width:u,height:s,x:f,y:c}}function qr(r,t){var e=zr(r,true,t==="fixed");var n=e.top+r.clientTop;var i=e.left+r.clientLeft;var o=Hr(r);var a=r.clientWidth*o.x;var u=r.clientHeight*o.y;var s=i*o.x;var f=n*o.y;return{width:a,height:u,x:s,y:f}}function Nr(r,t,e){var n;if(t==="viewport"||t==="layoutViewport"){n=Pr(r,e,t)}else if(t==="document"){n=Wr(ar(r))}else if(sr(t)){n=qr(t,e)}else{var i=Lr(r);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return W(n)}function Vr(r,t){var e=t.get(r);if(e){return e}var n=Tr(r,[],false).filter((function(r){return sr(r)&&ir(r)!=="body"}));var i=null;var o=yr(r).position==="fixed";var a=o?Sr(r):r;while(sr(a)&&!xr(a)){var u=yr(a);var s=br(a);var f=i?i.position:o?"fixed":"";var c=!s&&(f==="fixed"||f==="absolute"&&u.position==="static");if(c){n=n.filter((function(r){return r!==a}))}else{i=u}a=Sr(a)}t.set(r,n);return n}function $r(r){var t=r.element,e=r.boundary,n=r.rootBoundary,i=r.strategy;var o=e==="clippingAncestors"?dr(t)?[]:Vr(t,this._c):[].concat(e);var a=__spreadArray(__spreadArray([],o,true),[n],false);var u=Nr(t,a[0],i);var s=u.top;var f=u.right;var c=u.bottom;var v=u.left;for(var l=1;l<a.length;l++){var d=Nr(t,a[l],i);s=w(d.top,s);f=h(d.right,f);c=h(d.bottom,c);v=w(d.left,v)}return{width:f-v,height:c-s,x:v,y:s}}function Gr(r){var t=Er(r),e=t.width,n=t.height;return{width:e,height:n}}function Kr(r,t,e){var n=fr(t);var i=ar(t);var o=e==="fixed";var a=zr(r,true,o,t);var u={scrollLeft:0,scrollTop:0};var s=_(0);if(n||!o){if(ir(t)!=="body"||vr(i)){u=kr(t)}if(n){var f=zr(t,true,o,t);s.x=f.x+t.clientLeft;s.y=f.y+t.clientTop}}if(!n&&i){s.x=Rr(i)}var c=i&&!n&&!o?Dr(i,u):_(0);var v=a.left+u.scrollLeft-s.x-c.x;var l=a.top+u.scrollTop-s.y-c.y;return{x:v,y:l,width:a.width,height:a.height}}function Qr(r){return yr(r).position==="static"}function Yr(r,t){if(!fr(r)||yr(r).position==="fixed"){return null}if(t){return t(r)}var e=r.offsetParent;if(ar(r)===e){e=e.ownerDocument.body}return e}function Zr(r,t){var e=or(r);if(dr(r)){return e}if(!fr(r)){var n=Sr(r);while(n&&!xr(n)){if(sr(n)&&!Qr(n)){return n}n=Sr(n)}return e}var i=Yr(r,t);while(i&&lr(i)&&Qr(i)){i=Yr(i,t)}if(i&&xr(i)&&Qr(i)&&!br(i)){return e}return i||_r(r)||e}var Jr=function(r){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,o;var a;return __generator(this,(function(u){switch(u.label){case 0:t=this.getOffsetParent||Zr;e=this.getDimensions;return[4,e(r.floating)];case 1:n=u.sent();a={};i=Kr;o=[r.reference];return[4,t(r.floating)];case 2:return[2,(a.reference=i.apply(void 0,o.concat([u.sent(),r.strategy])),a.floating={x:0,y:0,width:n.width,height:n.height},a)]}}))}))};function Ur(r){return yr(r).direction==="rtl"}var Xr={convertOffsetParentRelativeRectToViewportRelativeRect:Fr,getDocumentElement:ar,getClippingRect:$r,getOffsetParent:Zr,getElementRects:Jr,getClientRects:Br,getDimensions:Gr,getScale:Hr,isElement:sr,isRTL:Ur};function rt(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function tt(r,t,e){var n=null;var i;var o=ar(r);function a(){var r;clearTimeout(i);(r=n)==null||r.disconnect();n=null}function u(e,s){if(e===void 0){e=false}if(s===void 0){s=1}a();var f=r.getBoundingClientRect();var c=f.left,v=f.top,l=f.width,d=f.height;if(!e){t()}if(!l||!d){return}var p=b(v);var g=b(o.clientWidth-(c+l));var _=b(o.clientHeight-(v+d));var m=b(c);var x=-p+"px "+-g+"px "+-_+"px "+-m+"px";var y={rootMargin:x,threshold:w(0,h(1,s))||1};var k=true;function S(t){var e=t[0].intersectionRatio;if(!rt(f,r.getBoundingClientRect())){return u()}if(e!==s){if(!k){return u()}if(!e){i=setTimeout((function(){u(false,1e-7)}),1e3)}else{u(false,e)}}k=false}try{n=new IntersectionObserver(S,__assign(__assign({},y),{root:o.ownerDocument}))}catch(r){n=new IntersectionObserver(S,y)}n.observe(r)}var s=or(r);var f=function(){return u(e)};s.addEventListener("resize",f);u(true);return function(){s.removeEventListener("resize",f);a()}}function et(r,t,e,n){if(n===void 0){n={}}var i=n.ancestorScroll,o=i===void 0?true:i,a=n.ancestorResize,u=a===void 0?true:a,s=n.elementResize,f=s===void 0?typeof ResizeObserver==="function":s,c=n.layoutShift,v=c===void 0?typeof IntersectionObserver==="function":c,l=n.animationFrame,d=l===void 0?false:l;var p=Or(r);var h=o||u?__spreadArray(__spreadArray([],p?Tr(p):[],true),t?Tr(t):[],true):[];h.forEach((function(r){o&&r.addEventListener("scroll",e);u&&r.addEventListener("resize",e)}));var w=p&&v?tt(p,e,u):null;var g=-1;var b=null;if(f){b=new ResizeObserver((function(r){var n=r[0];if(n&&n.target===p&&b&&t){b.unobserve(t);cancelAnimationFrame(g);g=requestAnimationFrame((function(){var r;(r=b)==null||r.observe(t)}))}e()}));if(p&&!d){b.observe(p)}if(t){b.observe(t)}}var _;var m=d?zr(r):null;if(d){x()}function x(){var t=zr(r);if(m&&!rt(m,t)){e()}m=t;_=requestAnimationFrame(x)}e();return function(){var r;h.forEach((function(r){o&&r.removeEventListener("scroll",e);u&&r.removeEventListener("resize",e)}));w==null||w();(r=b)==null||r.disconnect();b=null;if(d){cancelAnimationFrame(_)}}}var nt=P;var it=X;var ot=rr;var at=er;var ut=K;var st=V;var ft=Z;var ct=tr;var vt=function(r,t,e){var n=new Map;var i=e!=null?e:{};var o=__assign(__assign(__assign({},Xr),i.platform),{_c:n});return N(r,t,__assign(__assign({},i),{platform:o}))};function lt(r,t){return p[(p.indexOf(r)+t)%4]}var dt=function(r){return lt(r,1)};var pt=function(r){return lt(r,2)};var ht=function(r){return lt(r,3)};var wt="post-flip";function gt(r){if(r===void 0){r={}}return{name:wt,options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c,v,l,d,p,h,w,g,b;var _,m,x,S,M;return __generator(this,(function(T){switch(T.label){case 0:e=t.middlewareData,n=t.placement;if((_=e.arrow)===null||_===void 0?void 0:_.alignmentOffset)return[2,{}];i=y(r,t),o=i.minSize,a=o===void 0?{}:o,u=__rest(i,["minSize"]);s=Math.abs((x=(m=e.offset)===null||m===void 0?void 0:m[A(n)])!==null&&x!==void 0?x:0);f=k(n);return[4,nt(t,__assign(__assign({},u),{elementContext:"reference"}))];case 1:c=T.sent();return[4,nt(t,__assign(__assign({},u),{elementContext:"floating"}))];case 2:v=T.sent();if(Math.max(c[f],v[f])<=0)return[2,{}];l=e[wt];d={overflow:c,minSize:a,gap:s};p=(S=l===null||l===void 0?void 0:l.deficits)!==null&&S!==void 0?S:[];if(!((M=l===null||l===void 0?void 0:l.placements)!==null&&M!==void 0))return[3,3];w=M;return[3,5];case 3:return[4,bt(t,d)];case 4:w=T.sent();T.label=5;case 5:h=w;if(p.length<h.length){p=__spreadArray(__spreadArray([],p,true),[_t(f,d)],false)}g={placements:h,deficits:p};if(p.length<h.length){return[2,{data:g,reset:{placement:h[p.length]}}]}b=g.placements[g.deficits.indexOf(Math.min.apply(Math,g.deficits))];return[2,b===n?{data:g}:{data:g,reset:{placement:b}}]}}))}))}}}function bt(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,u,s,f,c;var v,l;return __generator(this,(function(d){switch(d.label){case 0:e=r.placement,n=r.platform,i=r.elements;o=t.overflow;a=k(e);u=[e,D(e)];s=Math.min(_t(a,t),_t(pt(a),t));if(s<=0)return[2,u];return[4,(v=n.isRTL)===null||v===void 0?void 0:v.call(n,i.floating)];case 1:f=(l=d.sent())!==null&&l!==void 0?l:false;c=R(e,true,"start",f);c.sort((function(r,t){return o[k(r)]-o[k(t)]}));return[2,__spreadArray(__spreadArray([],u,true),c,true)]}}))}))}function _t(r,t){var e;var n=t.minSize,i=t.overflow,o=t.gap;var a=(e=n[T(A(r))])!==null&&e!==void 0?e:0;return o+a+i[r]}var mt=Symbol("Clipping Rect Cache");var xt=__assign(__assign({},Xr),{getClippingRect:yt});function yt(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}return __awaiter(this,void 0,void 0,(function(){var t,e,n;return __generator(this,(function(i){switch(i.label){case 0:t=r[0].element;e=this[mt].get(t);if(e)return[2,e];return[4,Xr.getClippingRect.apply(this,r)];case 1:n=i.sent();kt(n,t);this[mt].set(t,n);return[2,n]}}))}))}function kt(r,t){var e=t.ownerDocument.querySelector("post-header");if(e===null)return;var n=t;while(!xr(n)){n=Sr(n);if(!fr(n))continue;if(dr(n)||n===e)return}var i=e.getBoundingClientRect();var o=Math.max(r.y,i.bottom);r.height-=o-r.y;r.y=o}var St=function(r,t,e){var n;e!==null&&e!==void 0?e:e={};return vt(r,t,__assign(__assign({},e),{platform:__assign(__assign(__assign({},xt),e.platform),(n={},n[mt]=new Map,n))}))};var Mt="post-safe-space";function Tt(){return{name:Mt,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,o,a,u,s,f,c,v;return __generator(this,(function(l){switch(l.label){case 0:t=r.placement,e=r.rects,n=r.x,i=r.y;o=k(t);return[4,At(r,e.reference)];case 1:a=l.sent();return[4,At(r,__assign(__assign({},e.floating),{x:n,y:i}))];case 2:u=l.sent();s=__spreadArray(__spreadArray([],Et(u,pt(o)),true),Et(a,o),true);f=[];for(c=0;c<s.length;c+=2){f.push("".concat(s[c],"px ").concat(s[c+1],"px"))}v={polygon:"polygon(".concat(f.join(", "),")")};return[2,{data:v}]}}))}))}}}function At(r,t){return __awaiter(this,arguments,void 0,(function(r,t){var e,n,i,o,a;var u;var s,f;var c=r.elements,v=r.platform,l=r.strategy;return __generator(this,(function(r){switch(r.label){case 0:if(!((s=v.convertOffsetParentRelativeRectToViewportRelativeRect)===null||s===void 0))return[3,1];n=void 0;return[3,3];case 1:o=(i=s).call;a=[v];u={};return[4,(f=v.getOffsetParent)===null||f===void 0?void 0:f.call(v,c.floating)];case 2:n=o.apply(i,a.concat([(u.offsetParent=r.sent(),u.rect=t,u.elements=c,u.strategy=l,u)]));r.label=3;case 3:return[4,n];case 4:e=r.sent();return[2,W(e!==null&&e!==void 0?e:t)]}}))}))}function Et(r,t){var e=r[t];var n=r[ht(t)];var i=r[dt(t)];return A(t)==="x"?[e,n,e,i]:[n,e,i,e]}var Ot=function(r){__extends(t,r);function t(t,e){if(e===void 0){e={}}var n=this;var i=e.oldState,o=i===void 0?"":i,a=e.newState,u=a===void 0?"":a,s=__rest(e,["oldState","newState"]);n=r.call(this,t,s)||this;n.oldState=String(o||"");n.newState=String(u||"");return n}return t}(Event);var Ht=new WeakMap;function jt(r,t,e){Ht.set(r,setTimeout((function(){if(!Ht.has(r))return;r.dispatchEvent(new Ot("toggle",{cancelable:false,oldState:t,newState:e}))}),0))}var Lt=globalThis.ShadowRoot||function(){};var Ct=globalThis.HTMLDialogElement||function(){};var zt=new WeakMap;var Rt=new WeakMap;var Dt=new WeakMap;var Ft=new WeakMap;function Bt(r){return Ft.get(r)||"hidden"}var Wt=new WeakMap;function It(r){return __spreadArray([],r,true).pop()}function Pt(r){var t=r.popoverTargetElement;if(!(t instanceof HTMLElement)){return}var e=Bt(t);if(r.popoverTargetAction==="show"&&e==="showing"){return}if(r.popoverTargetAction==="hide"&&e==="hidden")return;if(e==="showing"){ee(t,true,true)}else if(qt(t,false)){Wt.set(t,r);te(t)}}function qt(r,t){if(r.popover!=="auto"&&r.popover!=="manual"&&r.popover!=="hint"){return false}if(!r.isConnected)return false;if(t&&Bt(r)!=="showing"){return false}if(!t&&Bt(r)!=="hidden"){return false}if(r instanceof Ct&&r.hasAttribute("open")){return false}if(document.fullscreenElement===r)return false;return true}function Nt(r){if(!r)return 0;var t=Rt.get(document)||new Set;var e=Dt.get(document)||new Set;if(e.has(r)){return __spreadArray([],e,true).indexOf(r)+t.size+1}if(t.has(r)){return __spreadArray([],t,true).indexOf(r)+1}return 0}function Vt(r){var t=Qt(r);var e=Yt(r);if(Nt(t)>Nt(e)){return t}return e}function $t(r){var t;var e=Dt.get(r)||new Set;var n=Rt.get(r)||new Set;var i=e.size>0?e:n.size>0?n:null;if(i){t=It(i);if(!t.isConnected){i.delete(t);return $t(r)}return t}return null}function Gt(r){for(var t=0,e=r||[];t<e.length;t++){var n=e[t];if(!n.isConnected){r.delete(n)}else{return n}}return null}function Kt(r){if(typeof r.getRootNode==="function"){return r.getRootNode()}if(r.parentNode)return Kt(r.parentNode);return r}function Qt(r){while(r){if(r instanceof HTMLElement&&r.popover==="auto"&&Ft.get(r)==="showing"){return r}r=r instanceof Element&&r.assignedSlot||r.parentElement||Kt(r);if(r instanceof Lt)r=r.host;if(r instanceof Document)return}}function Yt(r){while(r){var t=r.popoverTargetElement;if(t instanceof HTMLElement)return t;r=r.parentElement||Kt(r);if(r instanceof Lt)r=r.host;if(r instanceof Document)return}}function Zt(r,t){var e=new Map;var n=0;for(var i=0,o=t||[];i<o.length;i++){var a=o[i];e.set(a,n);n+=1}e.set(r,n);n+=1;var u=null;function s(t){if(!t)return;var n=false;var i=null;var o=null;while(!n){i=Qt(t)||null;if(i===null)return;if(!e.has(i))return;if(r.popover==="hint"||i.popover==="auto"){n=true}if(!n){t=i.parentElement}}o=e.get(i);if(u===null||e.get(u)<o){u=i}}s(r.parentElement||Kt(r));return u}function Jt(r){if(r.hidden||r instanceof Lt)return false;if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement||r instanceof HTMLOptGroupElement||r instanceof HTMLOptionElement||r instanceof HTMLFieldSetElement){if(r.disabled)return false}if(r instanceof HTMLInputElement&&r.type==="hidden"){return false}if(r instanceof HTMLAnchorElement&&r.href===""){return false}return typeof r.tabIndex==="number"&&r.tabIndex!==-1}function Ut(r){if(r.shadowRoot&&r.shadowRoot.delegatesFocus!==true){return null}var t=r;if(t.shadowRoot){t=t.shadowRoot}var e=t.querySelector("[autofocus]");if(e){return e}else{var n=t.querySelectorAll("slot");for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=a.assignedElements({flatten:true});for(var s=0,f=u;s<f.length;s++){var c=f[s];if(c.hasAttribute("autofocus")){return c}else{e=c.querySelector("[autofocus]");if(e){return e}}}}}var v=r.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);var l=v.currentNode;while(l){if(Jt(l)){return l}l=v.nextNode()}}function Xt(r){var t;(t=Ut(r))===null||t===void 0?void 0:t.focus()}var re=new WeakMap;function te(r){if(!qt(r,false)){return}var t=r.ownerDocument;if(!r.dispatchEvent(new Ot("beforetoggle",{cancelable:true,oldState:"closed",newState:"open"}))){return}if(!qt(r,false)){return}var e=false;var n=r.popover;var i=null;var o=Zt(r,Rt.get(t)||new Set);var a=Zt(r,Dt.get(t)||new Set);if(n==="auto"){ie(Dt.get(t)||new Set,e,true);var u=o||t;ae(u,e,true);i="auto"}if(n==="hint"){if(a){ae(a,e,true);i="hint"}else{ie(Dt.get(t)||new Set,e,true);if(o){ae(o,e,true);i="auto"}else{i="hint"}}}if(n==="auto"||n==="hint"){if(n!==r.popover||!qt(r,false)){return}if(!$t(t)){e=true}if(i==="auto"){if(!Rt.has(t)){Rt.set(t,new Set)}Rt.get(t).add(r)}else if(i==="hint"){if(!Dt.has(t)){Dt.set(t,new Set)}Dt.get(t).add(r)}}re.delete(r);var s=t.activeElement;r.classList.add(":popover-open");Ft.set(r,"showing");if(!zt.has(t)){zt.set(t,new Set)}zt.get(t).add(r);ce(Wt.get(r),true);Xt(r);if(e&&s&&r.popover==="auto"){re.set(r,s)}jt(r,"closed","open")}function ee(r,t,e){var n,i;if(t===void 0){t=false}if(e===void 0){e=false}if(!qt(r,true)){return}var o=r.ownerDocument;if(["auto","hint"].includes(r.popover)){ae(r,t,e);if(!qt(r,true)){return}}var a=Rt.get(o)||new Set;var u=a.has(r)&&It(a)===r;ce(Wt.get(r),false);Wt.delete(r);if(e){r.dispatchEvent(new Ot("beforetoggle",{oldState:"open",newState:"closed"}));if(u&&It(a)!==r){ae(r,t,e)}if(!qt(r,true)){return}}(n=zt.get(o))===null||n===void 0?void 0:n.delete(r);a.delete(r);(i=Dt.get(o))===null||i===void 0?void 0:i.delete(r);r.classList.remove(":popover-open");Ft.set(r,"hidden");if(e){jt(r,"open","closed")}var s=re.get(r);if(s){re.delete(r);if(t){s.focus()}}}function ne(r,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=$t(r);while(n){ee(n,t,e);n=$t(r)}}function ie(r,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=Gt(r);while(n){ee(n,t,e);n=Gt(r)}}function oe(r,t,e,n){var i=false;var o=false;while(i||!o){o=true;var a=null;var u=false;for(var s=0,f=t;s<f.length;s++){var c=f[s];if(c===r){u=true}else if(u){a=c;break}}if(!a)return;while(Bt(a)==="showing"&&t.size){ee(It(t),e,n)}if(t.has(r)&&It(t)!==r){i=true}if(i){n=false}}}function ae(r,t,e){var n,i;var o=r.ownerDocument||r;if(r instanceof Document){return ne(o,t,e)}if((n=Dt.get(o))===null||n===void 0?void 0:n.has(r)){oe(r,Dt.get(o),t,e);return}ie(Dt.get(o)||new Set,t,e);if(!((i=Rt.get(o))===null||i===void 0?void 0:i.has(r))){return}oe(r,Rt.get(o),t,e)}var ue=new WeakMap;function se(r){if(!r.isTrusted)return;var t=r.composedPath()[0];if(!t)return;var e=t.ownerDocument;var n=$t(e);if(!n)return;var i=Vt(t);if(i&&r.type==="pointerdown"){ue.set(e,i)}else if(r.type==="pointerup"){var o=ue.get(e)===i;ue.delete(e);if(o){ae(i||e,false,true)}}}var fe=new WeakMap;function ce(r,t){if(t===void 0){t=false}if(!r)return;if(!fe.has(r)){fe.set(r,r.getAttribute("aria-expanded"))}var e=r.popoverTargetElement;if(e instanceof HTMLElement&&e.popover==="auto"){r.setAttribute("aria-expanded",String(t))}else{var n=fe.get(r);if(!n){r.removeAttribute("aria-expanded")}else{r.setAttribute("aria-expanded",n)}}}var ve=globalThis.ShadowRoot||function(){};function le(){return typeof HTMLElement!=="undefined"&&typeof HTMLElement.prototype==="object"&&"popover"in HTMLElement.prototype}function de(r,t,e){var n=r[t];Object.defineProperty(r,t,{value:function(r){return n.call(this,e(r))}})}var pe=/(^|[^\\]):popover-open\b/g;function he(){return typeof globalThis.CSSLayerBlockRule==="function"}function we(){var r=he();return"\n".concat(r?"@layer popover-polyfill {":"","\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([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\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").concat(r?"}":"","\n")}var ge=null;function be(r){var t=we();if(ge===null){try{ge=new CSSStyleSheet;ge.replaceSync(t)}catch(r){ge=false}}if(ge===false){var e=document.createElement("style");e.textContent=t;if(r instanceof Document){r.head.prepend(e)}else{r.prepend(e)}}else{r.adoptedStyleSheets=__spreadArray([ge],r.adoptedStyleSheets,true)}}function _e(){if(typeof window==="undefined")return;window.ToggleEvent=window.ToggleEvent||Ot;function r(r){if(r===null||r===void 0?void 0:r.includes(":popover-open")){r=r.replace(pe,"$1.\\:popover-open")}return r}de(Document.prototype,"querySelector",r);de(Document.prototype,"querySelectorAll",r);de(Element.prototype,"querySelector",r);de(Element.prototype,"querySelectorAll",r);de(Element.prototype,"matches",r);de(Element.prototype,"closest",r);de(DocumentFragment.prototype,"querySelectorAll",r);Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:true,configurable:true,get:function(){if(!this.hasAttribute("popover"))return null;var r=(this.getAttribute("popover")||"").toLowerCase();if(r===""||r=="auto")return"auto";if(r=="hint")return"hint";return"manual"},set:function(r){if(r===null){this.removeAttribute("popover")}else{this.setAttribute("popover",r)}}},showPopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}te(this)}},hidePopover:{enumerable:true,configurable:true,value:function(){ee(this,true,true)}},togglePopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}if(typeof r==="boolean"){r={force:r}}if(Ft.get(this)==="showing"&&r.force===void 0||r.force===false){ee(this,true,true)}else if(r.force===void 0||r.force===true){te(this)}return Ft.get(this)==="showing"}}});var t=Element.prototype.attachShadow;if(t){Object.defineProperties(Element.prototype,{attachShadow:{enumerable:true,configurable:true,writable:true,value:function(r){var e=t.call(this,r);be(e);return e}}})}var e=HTMLElement.prototype.attachInternals;if(e){Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:true,configurable:true,writable:true,value:function(){var r=e.call(this);if(r.shadowRoot){be(r.shadowRoot)}return r}}})}var n=new WeakMap;function i(r){Object.defineProperties(r.prototype,{popoverTargetElement:{enumerable:true,configurable:true,set:function(r){if(r===null){this.removeAttribute("popovertarget");n.delete(this)}else if(!(r instanceof Element)){throw new TypeError("popoverTargetElement must be an element or null")}else{this.setAttribute("popovertarget","");n.set(this,r)}},get:function(){if(this.localName!=="button"&&this.localName!=="input"){return null}if(this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"){return null}if(this.disabled){return null}if(this.form&&this.type==="submit"){return null}var r=n.get(this);if(r&&r.isConnected){return r}else if(r&&!r.isConnected){n.delete(this);return null}var t=Kt(this);var e=this.getAttribute("popovertarget");if((t instanceof Document||t instanceof ve)&&e){return t.getElementById(e)||null}return null}},popoverTargetAction:{enumerable:true,configurable:true,get:function(){var r=(this.getAttribute("popovertargetaction")||"").toLowerCase();if(r==="show"||r==="hide")return r;return"toggle"},set:function(r){this.setAttribute("popovertargetaction",r)}}})}i(HTMLButtonElement);i(HTMLInputElement);var o=function(r){var t=r.composedPath();var e=t[0];if(!(e instanceof Element)||(e===null||e===void 0?void 0:e.shadowRoot)){return}var n=Kt(e);if(!(n instanceof ve||n instanceof Document)){return}var i=t.find((function(r){var t;return(t=r.matches)===null||t===void 0?void 0:t.call(r,"[popovertargetaction],[popovertarget]")}));if(i){Pt(i);r.preventDefault();return}};var a=function(r){var t=r.key;var e=r.target;if(!r.defaultPrevented&&e&&(t==="Escape"||t==="Esc")){ae(e.ownerDocument,true,true)}};var u=function(r){r.addEventListener("click",o);r.addEventListener("keydown",a);r.addEventListener("pointerdown",se);r.addEventListener("pointerup",se)};u(document);be(document)}var me=function(){return'@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host [part=post-popovercontainer-content]{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:var(--post-popovercontainer-available-width);max-height:var(--post-popovercontainer-available-height);color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative;display:-ms-flexbox;display:flex}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host [part=post-popovercontainer-content]{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[data-side=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[data-side=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[data-side=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[data-side=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[data-side=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto;-webkit-clip-path:var(--post-popovercontainer-safe-space, polygon(0 0, 0 0, 0 0));clip-path:var(--post-popovercontainer-safe-space, polygon(0 0, 0 0, 0 0))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[data-side=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[data-side=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[data-side=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}'};var xe=undefined&&undefined.__decorate||function(r,t,e,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(r,t,e,n);else for(var u=r.length-1;u>=0;u--)if(a=r[u])o=(i<3?a(o):i>3?a(t,e,o):a(t,e))||o;return i>3&&o&&Object.defineProperty(t,e,o),o};var ye="--post-popovercontainer-available-width";var ke="--post-popovercontainer-available-height";var Se="--post-popovercontainer-safe-space";var Me=r("post_popovercontainer",function(){function r(r){t(this,r);this.postBeforeShow=e(this,"postBeforeShow");this.postShow=e(this,"postShow");this.postHide=e(this,"postHide");this.postBeforeToggle=e(this,"postBeforeToggle");this.postToggle=e(this,"postToggle");this.anchorRef=null;this.arrowRef=null;this.hasBeenOpened=false;this.toggleTimeoutId=null;this.runningAnimation=null;this.stopAutoUpdate=null;this.placement="top";this.edgeGap=8;this.arrow=false}r.prototype.connectedCallback=function(){if(!le()){_e()}};r.prototype.componentDidLoad=function(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.disconnectedCallback=function(){this.cleanup();this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.cleanup=function(){var r;(r=this.stopAutoUpdate)===null||r===void 0?void 0:r.call(this);if(this.runningAnimation){this.runningAnimation.cancel();this.runningAnimation=null}};r.prototype.isOpen=function(){var r;return(r=this.host)===null||r===void 0?void 0:r.matches(":where(:popover-open, .popover-open)")};r.prototype.getContent=function(){var r;return(r=this.host)===null||r===void 0?void 0:r.shadowRoot.querySelector('[part="post-popovercontainer-content"]')};r.prototype.getContentMinSize=function(){var r=this.getContent();if(!r)return{};var t=getComputedStyle(r),e=t.minWidth,n=t.minHeight;return{width:Number.parseFloat(e)||0,height:Number.parseFloat(n)||0}};r.prototype.show=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.toggleTimeoutId||!r||this.isOpen())return[2];this.anchorRef=r;this.host.showPopover();return[2]}))}))};r.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(this.toggleTimeoutId||!this.isOpen())return[2];this.anchorRef=null;this.host.hidePopover();this.postHide.emit();return[2]}))}))};r.prototype.toggle=function(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){e=this.isOpen();if(!this.host||this.toggleTimeoutId)return[2,e];n=t===true||t===undefined&&!e;if(e===n||n&&!r)return[2,e];this.anchorRef=n?r:null;this.host.togglePopover(t);this.toggleTimeoutId=null;return[2,this.isOpen()]}))}))};r.prototype.handleToggle=function(r){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:this.toggleTimeoutId=globalThis.setTimeout((function(){return t.toggleTimeoutId=null}),10);if(!(r.newState==="open"))return[3,2];return[4,this.handleOpen()];case 1:e.sent();return[3,4];case 2:return[4,this.handleClose()];case 3:e.sent();e.label=4;case 4:return[2]}}))}))};r.prototype.handleOpen=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:!this.hasBeenOpened});return[4,this.updatePosition(true)];case 1:t.sent();this.startAutoUpdate();t.label=2;case 2:t.trys.push([2,4,,5]);return[4,this.runOpenAnimation()];case 3:t.sent();return[3,5];case 4:r=t.sent();return[2];case 5:this.postToggle.emit({isOpen:true});this.postShow.emit({first:!this.hasBeenOpened});this.hasBeenOpened=true;return[2]}}))}))};r.prototype.runOpenAnimation=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:r=this.getContent();if(!r)return[2];this.runningAnimation=d(r);return[4,this.runningAnimation.finished];case 1:t.sent();return[2]}}))}))};r.prototype.handleClose=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.postBeforeToggle.emit({willOpen:false});this.cleanup();this.host.style.removeProperty(ye);this.host.style.removeProperty(ke);this.host.style.removeProperty(Se);this.postToggle.emit({isOpen:false});this.postHide.emit();return[2]}))}))};r.prototype.startAutoUpdate=function(){var r=this;if(!this.host||!this.anchorRef)return;this.stopAutoUpdate=et(this.anchorRef,this.host,(function(){return r.updatePosition(r.autoResize)}))};r.prototype.updatePosition=function(){return __awaiter(this,arguments,void 0,(function(r){var t,e,n,i,o;var a;if(r===void 0){r=false}return __generator(this,(function(u){switch(u.label){case 0:return[4,this.computePosition(r)];case 1:t=u.sent(),e=t.x,n=t.y,i=t.middlewareData,o=t.placement;if((a=i.hide)===null||a===void 0?void 0:a.referenceHidden){this.host.hidePopover();return[2]}this.side=k(o);this.host.style.left="".concat(e,"px");this.host.style.top="".concat(n,"px");if(i.arrow){this.arrowRef.style.left=i.arrow.x?"".concat(i.arrow.x,"px"):"";this.arrowRef.style.top=i.arrow.y?"".concat(i.arrow.y,"px"):"";this.arrowRef.style[pt(this.side)]="-".concat(this.arrowRef.offsetWidth/2,"px")}if(i[Mt]){this.host.style.setProperty(Se,i[Mt].polygon)}return[2]}}))}))};r.prototype.computePosition=function(r){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i;var o,a,u,s;return __generator(this,(function(f){t=(o=this.edgeGap)!==null&&o!==void 0?o:0;e=[it((a=this.offset)!==null&&a!==void 0?a:this.arrow?t+4:t),ft()];n=gt({padding:t,minSize:this.getContentMinSize()});i=ot({limiter:ct({offset:32}),padding:t});if((u=this.placement)===null||u===void 0?void 0:u.includes("-"))e.push(n,i);else e.push(i,n);if(r){e.push(at({padding:t,apply:function(r){var t=r.availableWidth,e=r.availableHeight,n=r.elements;n.floating.style.setProperty(ye,"".concat(Math.max(0,t),"px"));n.floating.style.setProperty(ke,"".concat(Math.max(0,e),"px"))}}))}if(this.arrow)e.push(st({element:this.arrowRef,padding:t}));if(this.safeSpace)e.push(Tt());if(this.autoHide)e.push(ut({strategy:"referenceHidden"}));return[2,St(this.anchorRef,this.host,{placement:(s=this.placement)!==null&&s!==void 0?s:"top",strategy:"fixed",middleware:e})]}))}))};r.prototype.render=function(){var r=this;return n(i,{key:"d48b21174f74b790f8a72b4294e9f741c3b64d14","data-version":a,popover:"auto"},n("div",{key:"455e84294ecb36e25cc62582eb6c41058f24f6bc",part:"post-popovercontainer-content"},this.arrow&&n("span",{key:"9d11f2596443876123eeaf5a02430d049c1c8b25","data-side":this.side,class:"arrow",ref:function(t){return r.arrowRef=t}}),n("span",{key:"a562460cdfa5539e7d9c23f1d044a2c045df5b9f",part:"post-popovercontainer-border-mask"}),n("slot",{key:"5aa546bbdf6c70e2a0afabf818d421581060f8a7"})))};Object.defineProperty(r.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return r}());xe([u(s)],Me.prototype,"placement",void 0);xe([f("number")],Me.prototype,"edgeGap",void 0);Me.style=me()}}}));
|
package/dist/swisspost-internet-header/{p-84ebaf4b.system.entry.js → p-49c132a1.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js"],(function(t){"use strict";var e,o,n,i,s;return{setters:[function(t){e=t.r;o=t.c;n=t.h;i=t.H},function(t){s=t.v}],execute:function(){var c=function(){return":host{padding:12px 12px 9px 16px;background-color:#fff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-pack:justify;justify-content:space-between}:host(:hover){background-color:#f0efed}:host([data-active=true]){outline:2px solid #000;outline-offset:-4px}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid #050400;outline-offset:2px}.option-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0}.option-description{display:none;font-size:.85em;color:#666}:host(:not(:empty)) .option-description{display:block}post-icon{width:24px;height:24px}"};var a=t("post_listbox_option",function(){function t(t){e(this,t);this.postOptionSelected=o(this,"postOptionSelected");this.optionId=crypto.randomUUID();this.selected=false;this.highlighted=false}t.prototype.render=function(){var t=this;return n(i,{key:"38481f1a4721d50530bbd96a80ebc89933c8311c","data-version":s,role:"option","aria-selected":"".concat(this.selected),"data-active":this.highlighted?"true":null,onPointerDown:function(t){return t.preventDefault()},onClick:function(){return t.postOptionSelected.emit(t.value)},id:"post-listbox-option-".concat(this.optionId)},n("span",{key:"25403d2e68f44f68d5c3f2097c5aab57f90176cf",class:"option-content"},this.value,n("span",{key:"0caf89cfb81695f33637facd07dcf628fa6024a8",class:"option-description"},n("slot",{key:"857ed6d15014fb8d32f7074c9f1622d540f8ed13"}))),this.selected&&n("post-icon",{key:"3b300532591be12424a84cebd082b8c0c3ca6935","aria-hidden":"true",name:"checkmark"}))};return t}());a.style=c()}}}));
|