@swisspost/internet-header 10.2.0 → 10.4.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.cjs.js +1 -1
- package/dist/cjs/{package-2syswPDO.js → package-CL8OSAS4.js} +1 -1
- package/dist/cjs/{package-DQQbs4bt.js → package-HZ6bBKwJ.js} +2 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -4
- package/dist/cjs/post-closebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +33 -10
- package/dist/cjs/post-footer.cjs.entry.js +8 -5
- package/dist/cjs/post-header.cjs.entry.js +14 -5
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu.cjs.entry.js +3 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +2 -2
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown.cjs.entry.js +3 -3
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/post-number-input.cjs.entry.js +4 -4
- package/dist/cjs/post-pagination.cjs.entry.js +77 -27
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +12 -3
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +86 -2
- package/dist/collection/components/post-internet-header/post-internet-header.js +25 -2
- package/dist/collection/data/store.js +1 -0
- package/dist/collection/services/alternate-link.service.js +61 -0
- package/dist/components/package.js +1 -1
- package/dist/components/package2.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-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-icon2.js +1 -1
- package/dist/components/post-language-menu-item2.js +1 -1
- package/dist/components/post-language-menu2.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.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-menu-trigger2.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-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.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.js +1 -1
- package/dist/esm/{package-BEOiFUNg.js → package-B4lS4y6E.js} +2 -1
- package/dist/esm/{package-YQBh4peU.js → package-tTf1w3A9.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +1 -1
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-breadcrumbs.entry.js +5 -4
- package/dist/esm/post-closebutton.entry.js +2 -2
- package/dist/esm/post-date-picker.entry.js +33 -10
- package/dist/esm/post-footer.entry.js +8 -5
- package/dist/esm/post-header.entry.js +14 -5
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/post-language-menu-item.entry.js +2 -2
- package/dist/esm/post-language-menu.entry.js +4 -3
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +2 -2
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +3 -3
- package/dist/esm/post-megadropdown-trigger.entry.js +3 -3
- package/dist/esm/post-megadropdown.entry.js +3 -3
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/post-menu_2.entry.js +4 -4
- package/dist/esm/post-number-input.entry.js +4 -4
- package/dist/esm/post-pagination.entry.js +77 -27
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +12 -3
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +86 -2
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{package-BEOiFUNg.js → package-B4lS4y6E.js} +1 -1
- package/dist/esm-es5/package-tTf1w3A9.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-progressbar.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/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-8a3118d3.entry.js → p-06de7983.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-80860b2a.entry.js → p-09d4521f.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0da236b6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-5507b066.entry.js → p-0de83906.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-120a2867.entry.js +1 -0
- package/dist/swisspost-internet-header/p-16182f34.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-04cf59e4.system.entry.js → p-17a3d14a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8035438a.system.entry.js → p-1801d35d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9da73a63.entry.js → p-1a39c0c7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d763cf81.entry.js → p-1aeb1d6c.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fb22f9cc.system.entry.js → p-1ec41382.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d3e5d8ab.system.entry.js → p-1f30f235.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1fe8276f.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fa3bf2b6.entry.js → p-2501eb09.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6902ba81.entry.js → p-25a5281d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-693be85f.entry.js → p-2738143c.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2990978f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ce5265e7.system.entry.js → p-2b04e974.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2ec721b4.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-31f0de1e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3373f238.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-34259104.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-0018572d.entry.js → p-36be5234.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8429a0f8.system.entry.js → p-3c228ed0.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3c917e9d.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-42394464.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-3a69d97a.system.entry.js → p-429f04bc.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-4876e706.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-4ee32cba.system.entry.js → p-48cace4d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-4b44ce5f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-4d3939eb.entry.js +1 -0
- package/dist/swisspost-internet-header/p-52e305d7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-2d7fbb16.system.entry.js → p-5efffa89.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0cfd71fd.entry.js → p-658dd74d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bb71e55f.entry.js → p-65cfb55b.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-756574fd.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-0432ea2e.entry.js → p-79512699.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a017f91d.system.entry.js → p-7a66d431.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-7baa1968.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-367bb89f.entry.js → p-7c53064b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e6e3e2a1.system.entry.js → p-805ee472.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d424deaf.system.entry.js → p-80993537.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-80c03198.entry.js → p-80cb2bdb.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-83410f32.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-0bffd1b3.system.entry.js → p-85087a43.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8b9c9fda.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-aebd16d2.system.entry.js → p-8e61f407.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-90e78f26.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-925c8906.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f18ed6ce.entry.js → p-92e0402a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-388ff4b0.system.entry.js → p-999af688.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-94b12111.system.entry.js → p-9b4f74a6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3c55978f.entry.js → p-9e57bd5a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-EbHv-NGg.js → p-B4kfqOjJ.js} +1 -1
- package/dist/swisspost-internet-header/{p-C-jY5kgj.system.js → p-BhneAPKT.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-Bz5HDsjW.system.js → p-CHYNOqn0.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-DaXn118n.system.js → p-D8meK6Dd.system.js} +1 -1
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/{p-2992eede.system.entry.js → p-a204bb79.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d230f557.system.entry.js → p-a9c5178f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-17257472.system.entry.js → p-ab97669b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f89053da.entry.js → p-acabba28.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-aefc1c4c.entry.js +1 -0
- package/dist/swisspost-internet-header/p-b05dd248.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-b8bb2c10.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-946e0d66.entry.js → p-bc470741.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-bda3094c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f4ee9401.system.entry.js → p-be97ff93.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-bf2996de.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-c1e959fb.entry.js +1 -0
- package/dist/swisspost-internet-header/p-c546bebe.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8630a05f.entry.js → p-ca9c885e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fbb8f147.system.entry.js → p-d7e470ff.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dfcbf2ae.system.entry.js → p-db9eae5a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a4a7d445.system.entry.js → p-de258c90.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2fa843b1.entry.js → p-e26d9136.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1aaa2b5b.entry.js → p-e3515572.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e9582f72.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ec06df2f.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8e1f9fe7.entry.js → p-ec43767f.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ec45ed63.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ecb554c7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-30be319e.entry.js → p-f2ed3863.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-04d92bd1.entry.js → p-f32d49d7.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-f523050e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-f56fe63d.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e0cebd00.system.entry.js → p-f7a9a615.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-16f9605f.entry.js → p-fe440b79.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d8c35ad7.system.entry.js → p-fe9ac5ca.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-tTf1w3A9.js +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +9 -0
- package/dist/types/data/store.d.ts +1 -0
- package/dist/types/services/alternate-link.service.d.ts +13 -0
- package/package.json +4 -4
- package/dist/esm-es5/package-YQBh4peU.js +0 -1
- package/dist/swisspost-internet-header/p-157333c4.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1b3d12fe.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1ea8aa7b.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-217899fe.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2bd9d12d.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2f9015c7.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-311b1a06.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-37a651ba.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4ade4bc8.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4e8fbe60.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-50cd7954.entry.js +0 -1
- package/dist/swisspost-internet-header/p-53ab8bd7.entry.js +0 -1
- package/dist/swisspost-internet-header/p-658cdc8b.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-664cacb4.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6e338cb9.entry.js +0 -1
- package/dist/swisspost-internet-header/p-82316b5a.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8499b019.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-980d6e7d.entry.js +0 -1
- package/dist/swisspost-internet-header/p-994e894b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9b476cbf.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9d69f71c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-YQBh4peU.js +0 -1
- package/dist/swisspost-internet-header/p-a0a9f632.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a8d713f0.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b97832aa.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c98897dc.entry.js +0 -1
- package/dist/swisspost-internet-header/p-cc32910f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ce4e20c6.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d121eed9.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d6521b69.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e83fb5f9.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-eb2210a4.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ec5c1d1a.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f33c08e6.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f7b1f331.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-CL8OSAS4.js');
|
|
5
5
|
var componentOnReady = require('./component-on-ready-CifOTqw1.js');
|
|
6
6
|
var fade = require('./fade-CPQhl1fP.js');
|
|
7
7
|
var oneOf = require('./one-of-7TSi182P.js');
|
|
@@ -9,7 +9,7 @@ var type = require('./type-CAeEC3oM.js');
|
|
|
9
9
|
require('./utils-s05L2ulk.js');
|
|
10
10
|
require('./create-validator-decorator-CJK3Xf77.js');
|
|
11
11
|
|
|
12
|
-
const postTabsCss = () => `:host{display:block}:host .tabs-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .tabs-wrapper button.scroll-btn{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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 100ms,border-color 100ms,color 100ms;transition:background-color 100ms,border-color 100ms,color 100ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn{background-color:ButtonFace !important}:host .tabs-wrapper button.scroll-btn:hover{background-color:Highlight !important}}:host .tabs-wrapper button.scroll-btn post-icon{color:currentColor}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn post-icon{color:Highlight}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:hover post-icon{color:canvas}}:host .tabs-wrapper button.scroll-btn[hidden]{display:none}:host .tabs-wrapper button.scroll-btn{outline-offset:var(--post-device-spacing-padding-
|
|
12
|
+
const postTabsCss = () => `:host{display:block}:host .tabs-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .tabs-wrapper button.scroll-btn{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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 100ms,border-color 100ms,color 100ms;transition:background-color 100ms,border-color 100ms,color 100ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn{background-color:ButtonFace !important}:host .tabs-wrapper button.scroll-btn:hover{background-color:Highlight !important}}:host .tabs-wrapper button.scroll-btn post-icon{color:currentColor}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn post-icon{color:Highlight}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:hover post-icon{color:canvas}}:host .tabs-wrapper button.scroll-btn[hidden]{display:none}:host .tabs-wrapper button.scroll-btn{outline-offset:var(--post-device-spacing-padding-44) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .tabs-wrapper button.scroll-btn: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 .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .tabs-wrapper .tabs{overflow-x:hidden;background-color:rgba(0,0,0,0) !important;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:end;align-items:end;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;-webkit-padding-start:0;padding-inline-start:0;list-style:none}:host(.page-tabs){overflow:visible !important}:host(.page-tabs) .tabs-wrapper{margin-inline:calc(-1*(var(--post-container-offset)))}:host(.page-tabs) .tabs-wrapper button.scroll-btn{color:var(--post-scheme-color-interactive-primary-enabled-fg5);background-color:var(--post-scheme-color-interactive-primary-enabled-bg5);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke);position:absolute;z-index:2;-webkit-box-shadow:var(--post-device-elevation-200);box-shadow:var(--post-device-elevation-200);border-radius:var(--post-device-border-radius-2)}:host(.page-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-primary-hover-fg4);background-color:var(--post-scheme-color-interactive-primary-hover-bg8)}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-left{inset-inline-start:0;-webkit-border-start:none;border-inline-start:none;border-radius:0 var(--post-device-border-radius-2) var(--post-device-border-radius-2) 0}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-right{inset-inline-end:0;-webkit-border-end:none;border-inline-end:none;border-radius:var(--post-device-border-radius-2) 0 0 var(--post-device-border-radius-2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn{background-color:Highlight;color:HighlightText}}:host(.page-tabs) .tabs-wrapper::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:100%;height:var(--post-device-border-width-default);background-color:var(--post-palette-color-nested-tabs-page-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper::after{background-color:LinkText}}:host(.page-tabs) .tabs-wrapper .tabs{padding-inline:calc(var(--post-container-offset));gap:var(--post-device-spacing-gap-inline-5);scrollbar-width:none}:host(.page-tabs) .tabs-wrapper .tabs::-webkit-scrollbar{display:none}:host(.page-tabs:not([size=small])) button.scroll-btn{top:var(--post-device-spacing-padding-36)}:host(.page-tabs[size=small]) button.scroll-btn{top:var(--post-device-spacing-padding-36)}:host(.content-tabs) .tabs-wrapper button.scroll-btn{-ms-flex-negative:0;flex-shrink:0;color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{color:HighlightText}}:host(post-tabs:not([size=small])) button.scroll-btn{height:var(--post-device-sizing-interactive-button-height-10);width:var(--post-device-sizing-interactive-button-width-1);border-radius:var(--post-device-border-radius-2)}:host(post-tabs:not([size=small])) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size5);width:var(--post-device-sizing-interactive-icon-size5)}:host(.page-tabs:not([size=small])) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-39) var(--post-device-spacing-padding-40)}:host(.page-tabs:not([size=small])) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-40) var(--post-device-spacing-padding-39)}:host([size=small]) button.scroll-btn{height:var(--post-device-sizing-interactive-button-size-1);width:var(--post-device-sizing-interactive-button-size-1);border-radius:var(--post-device-border-radius-2)}:host([size=small]) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4)}:host(.page-tabs[size=small]) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-42) var(--post-device-spacing-padding-43)}:host(.page-tabs[size=small]) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-43) var(--post-device-spacing-padding-42)}`;
|
|
13
13
|
|
|
14
14
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15
15
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -424,10 +424,10 @@ const PostTabs = class {
|
|
|
424
424
|
render() {
|
|
425
425
|
const TabsContainer = this.isPagesVariant ? 'nav' : 'div';
|
|
426
426
|
const style = undefined;
|
|
427
|
-
return (index.h(index.Host, { key: '
|
|
427
|
+
return (index.h(index.Host, { key: 'd5776ab3d40faaf892fc494bc57455f94f7905de', "data-version": _package.version, style: style }, index.h("div", { key: '5a8055fd968bcbaa2fe408eb14cb140db0b5cd88', class: "tabs-wrapper", part: "post-tabs" }, index.h("button", { key: '96f5ead41bfcf826941c2d652f61e04729f18f1d', ref: el => (this.leftScrollButton = el), class: "scroll-btn scroll-btn-left", type: "button", "aria-label": this.textPrevTabItems, tabindex: this.showLeftScrollButton ? 0 : -1, hidden: !this.showLeftScrollButton, onClick: () => this.scrollTabs('prev') }, index.h("post-icon", { key: '37593c698ce7266194819ec47eee2412a7b7779d', name: "chevronleft" })), index.h(TabsContainer, { key: '6178c4a55c748dab1c4d1ff7eba5ba63332fd6fd', ref: el => (this.tabsContainer = el), class: "tabs", role: this.isPagesVariant ? undefined : 'tablist', "aria-label": this.isPagesVariant ? this.label : undefined }, index.h("slot", { key: 'e08327a41440a408ae6c8a8885cef34090bfb244', onSlotchange: () => {
|
|
428
428
|
this.moveMisplacedTabs();
|
|
429
429
|
this.enableTabs();
|
|
430
|
-
} })), index.h("button", { key: '
|
|
430
|
+
} })), index.h("button", { key: '1891e50feaf86f4aac16c63acc4bd836ebff3492', ref: el => (this.rightScrollButton = el), class: "scroll-btn scroll-btn-right", type: "button", "aria-label": this.textNextTabItems, tabindex: this.showRightScrollButton ? 0 : -1, hidden: !this.showRightScrollButton, onClick: () => this.scrollTabs('next') }, index.h("post-icon", { key: '3a95b1bd98566a4783e066aa0ce0e8fb083dc7c3', name: "chevronright" }))), !this.isPagesVariant && (index.h("div", { key: 'aef00cd5120565a053d892963e129f1ee6377a89', class: "tab-content", part: "post-tabs-content" }, index.h("slot", { key: 'd8068bcb3d4daa6f62dc4ad0da644d993ca82aa9', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
|
|
431
431
|
}
|
|
432
432
|
get host() { return index.getElement(this); }
|
|
433
433
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-CL8OSAS4.js');
|
|
5
5
|
|
|
6
6
|
const postTogglebuttonCss = () => `: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}`;
|
|
7
7
|
|
|
@@ -32,7 +32,7 @@ const PostTogglebutton = class {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '7b935b808aa1ebbe97ac37bed25bfc215513097f', "data-version": _package.version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, index.h("slot", { key: 'd06f112049850f8d7bdffd5e0b70440bae41010b' })));
|
|
36
36
|
}
|
|
37
37
|
get host() { return index.getElement(this); }
|
|
38
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-CL8OSAS4.js');
|
|
5
5
|
var required = require('./required-_r1rzbps.js');
|
|
6
6
|
var type = require('./type-CAeEC3oM.js');
|
|
7
7
|
require('./create-validator-decorator-CJK3Xf77.js');
|
|
@@ -183,7 +183,7 @@ const PostTooltipTrigger = class {
|
|
|
183
183
|
this.tooltip?.hide();
|
|
184
184
|
}
|
|
185
185
|
render() {
|
|
186
|
-
return (index.h(index.Host, { key: '
|
|
186
|
+
return (index.h(index.Host, { key: '6c772242ad42feedd5ff3fe7e7ab637fae8d1292', "data-version": _package.version }, index.h("slot", { key: 'fac33c09dcff608e386bc75af9eef4cc19eecf10', onSlotchange: () => this.handleSlotChange() })));
|
|
187
187
|
}
|
|
188
188
|
get host() { return index.getElement(this); }
|
|
189
189
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
4
|
var placement = require('./placement-qEFR9hmI.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-CL8OSAS4.js');
|
|
6
6
|
var oneOf = require('./one-of-7TSi182P.js');
|
|
7
7
|
require('./create-validator-decorator-CJK3Xf77.js');
|
|
8
8
|
|
|
9
|
-
const postTooltipCss = () => `:host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);
|
|
9
|
+
const postTooltipCss = () => `:host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);word-wrap:break-word;white-space:normal}`;
|
|
10
10
|
|
|
11
11
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12
12
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -74,7 +74,7 @@ const PostTooltip = class {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
77
|
-
return (index.h(index.Host, { key: '
|
|
77
|
+
return (index.h(index.Host, { key: '88e3d485579f14915471a3d6cd09654d4bd288e7', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'e1cd5638316cf34517d46c5b73c865ac4548d906', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, index.h("slot", { key: '02ce027505b3fe4f90c2e3208cb7e2c304138c5e' }))));
|
|
78
78
|
}
|
|
79
79
|
get host() { return index.getElement(this); }
|
|
80
80
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-HZ6bBKwJ.js');
|
|
5
5
|
|
|
6
6
|
const postInternetFooterCss = () => `.cookie-settings{min-height:0;border:0 none;font-weight:inherit}`;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-B5ypPkK3.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-HZ6bBKwJ.js');
|
|
5
5
|
|
|
6
6
|
const Avatar = ({ user, description }) => (index.h("post-avatar", { firstname: user.name, lastname: user.surname, email: user.email, description: description, "aria-hidden": description ? undefined : 'true' }));
|
|
7
7
|
|
|
@@ -43,6 +43,68 @@ const UserMenu = ({ config, slot, textCurrentUser, textUserLinks, textAccessUser
|
|
|
43
43
|
} }))), config.options.map(optionConfig => (index.h("post-menu-item", { key: optionConfig.url }, index.h(_package.Link, { config: optionConfig })))), config.logoutLink && (index.h("post-menu-item", null, index.h(_package.Link, { config: config.logoutLink }))))));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Read alternate language links from <link rel="alternate" hreflang="..."> in <head>.
|
|
48
|
+
* Only returns entries whose hreflang matches a supported language and whose href is a valid URL.
|
|
49
|
+
*/
|
|
50
|
+
const getAlternateLinks = () => {
|
|
51
|
+
const result = new Map();
|
|
52
|
+
const links = document.querySelectorAll('head link[rel="alternate"][hreflang][href]');
|
|
53
|
+
for (const link of links) {
|
|
54
|
+
const href = link.getAttribute('href');
|
|
55
|
+
if (!href)
|
|
56
|
+
continue;
|
|
57
|
+
const code = link.hreflang?.toLowerCase();
|
|
58
|
+
if (result.has(code))
|
|
59
|
+
continue;
|
|
60
|
+
try {
|
|
61
|
+
const url = new URL(href, document.baseURI);
|
|
62
|
+
result.set(code, url.href);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// Invalid URL, fall back to config
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Observe <head> for changes to alternate links.
|
|
72
|
+
* Fires the callback whenever a <link rel="alternate"> is added, removed,
|
|
73
|
+
* or has its href/hreflang attribute changed.
|
|
74
|
+
*
|
|
75
|
+
* @returns The MutationObserver instance.
|
|
76
|
+
*/
|
|
77
|
+
const observeAlternateLinks = (callback) => {
|
|
78
|
+
const observer = new MutationObserver(mutations => {
|
|
79
|
+
const isRelevant = mutations.some(m => {
|
|
80
|
+
if (m.type === 'attributes') {
|
|
81
|
+
if (!(m.target instanceof HTMLLinkElement))
|
|
82
|
+
return false;
|
|
83
|
+
return (m.attributeName === 'href' ||
|
|
84
|
+
m.attributeName === 'hreflang' ||
|
|
85
|
+
(m.attributeName === 'rel' && m.target.rel === 'alternate'));
|
|
86
|
+
}
|
|
87
|
+
if (m.type === 'childList') {
|
|
88
|
+
return [...m.addedNodes, ...m.removedNodes].some(n => n instanceof HTMLLinkElement &&
|
|
89
|
+
n.hasAttribute('href') &&
|
|
90
|
+
n.hasAttribute('hreflang') &&
|
|
91
|
+
n.hasAttribute('rel') && n.rel === 'alternate');
|
|
92
|
+
}
|
|
93
|
+
return false;
|
|
94
|
+
});
|
|
95
|
+
if (isRelevant) {
|
|
96
|
+
callback(getAlternateLinks());
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
observer.observe(document.head, {
|
|
100
|
+
childList: true,
|
|
101
|
+
subtree: true,
|
|
102
|
+
attributes: true,
|
|
103
|
+
attributeFilter: ['href', 'hreflang', 'rel'],
|
|
104
|
+
});
|
|
105
|
+
return observer;
|
|
106
|
+
};
|
|
107
|
+
|
|
46
108
|
const DEFAULT_LANGUAGE = 'de';
|
|
47
109
|
/**
|
|
48
110
|
* Determine the current user language
|
|
@@ -355,6 +417,7 @@ const getSimilarityScore = (a, b) => {
|
|
|
355
417
|
|
|
356
418
|
const SESSION_URL = 'https://n.account.post.ch/v1/session/subscribe';
|
|
357
419
|
const PostInternetHeader = class {
|
|
420
|
+
alternateLinksObserver;
|
|
358
421
|
/**
|
|
359
422
|
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
360
423
|
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
@@ -437,7 +500,11 @@ const PostInternetHeader = class {
|
|
|
437
500
|
throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`);
|
|
438
501
|
}
|
|
439
502
|
}
|
|
503
|
+
connectedCallback() {
|
|
504
|
+
this.observeAlternateLinks();
|
|
505
|
+
}
|
|
440
506
|
async componentWillLoad() {
|
|
507
|
+
this.initAlternateLinks();
|
|
441
508
|
await Promise.all([this.fetchHeaderConfig(), this.fetchUserData()]);
|
|
442
509
|
}
|
|
443
510
|
componentDidLoad() {
|
|
@@ -446,6 +513,7 @@ const PostInternetHeader = class {
|
|
|
446
513
|
});
|
|
447
514
|
}
|
|
448
515
|
disconnectedCallback() {
|
|
516
|
+
this.alternateLinksObserver?.disconnect();
|
|
449
517
|
// Reset the store to its original state
|
|
450
518
|
_package.dispose();
|
|
451
519
|
}
|
|
@@ -492,6 +560,15 @@ const PostInternetHeader = class {
|
|
|
492
560
|
});
|
|
493
561
|
this.updateActiveUrl();
|
|
494
562
|
}
|
|
563
|
+
initAlternateLinks() {
|
|
564
|
+
_package.state.alternateLinks = getAlternateLinks();
|
|
565
|
+
}
|
|
566
|
+
observeAlternateLinks() {
|
|
567
|
+
// Watch for dynamic changes (SPA route changes, late inserts)
|
|
568
|
+
this.alternateLinksObserver = observeAlternateLinks(updated => {
|
|
569
|
+
_package.state.alternateLinks = updated;
|
|
570
|
+
});
|
|
571
|
+
}
|
|
495
572
|
updateActiveUrl() {
|
|
496
573
|
_package.state.activeLink = getActiveLink(this.activeRoute);
|
|
497
574
|
}
|
|
@@ -502,6 +579,13 @@ const PostInternetHeader = class {
|
|
|
502
579
|
...(postLogin.userLinks ?? []),
|
|
503
580
|
];
|
|
504
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* Get the language switch URL for a given language code.
|
|
584
|
+
* Alternate links from <head> take priority over config-provided URLs.
|
|
585
|
+
*/
|
|
586
|
+
getLanguageUrl(code, configUrl) {
|
|
587
|
+
return _package.state.alternateLinks.get(code.toLowerCase()) ?? configUrl;
|
|
588
|
+
}
|
|
505
589
|
renderNavItem(config, props = {}) {
|
|
506
590
|
if ('url' in config) {
|
|
507
591
|
return index.h(_package.Link, { ...props, config: config });
|
|
@@ -529,7 +613,7 @@ const PostInternetHeader = class {
|
|
|
529
613
|
this.renderNavigation('global-nav-primary', globalHeader.primaryNavigation), globalHeader.secondaryNavigation &&
|
|
530
614
|
this.renderNavigation('global-nav-secondary', globalHeader.secondaryNavigation, {
|
|
531
615
|
ariaCurrentWhenActive: 'location',
|
|
532
|
-
}), globalHeader.languages && globalHeader.languages.length > 0 && (index.h("post-language-menu", { slot: "language-menu", textChangeLanguage: this.textChangeLanguage, textCurrentLanguage: this.textCurrentLanguage }, globalHeader.languages.map(lang => (index.h("post-language-menu-item", { key: lang.code, url: lang.url, active: lang.active, code: lang.code, name: lang.label, description: lang.description }, lang.text))))), globalHeader.postLogin &&
|
|
616
|
+
}), globalHeader.languages && globalHeader.languages.length > 0 && (index.h("post-language-menu", { slot: "language-menu", textChangeLanguage: this.textChangeLanguage, textCurrentLanguage: this.textCurrentLanguage }, globalHeader.languages.map(lang => (index.h("post-language-menu-item", { key: lang.code, url: this.getLanguageUrl(lang.code, lang.url), active: lang.active, code: lang.code, name: lang.label, description: lang.description }, lang.text))))), globalHeader.postLogin &&
|
|
533
617
|
this.renderNavItem(_package.state.user
|
|
534
618
|
? {
|
|
535
619
|
user: _package.state.user,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Link, MegaDropdown, UserMenu } from "../internal/index";
|
|
2
2
|
import { dispose, state } from "../../data/store";
|
|
3
|
+
import { getAlternateLinks, observeAlternateLinks } from "../../services/alternate-link.service";
|
|
3
4
|
import { getLocalizedConfig, isValidProjectId } from "../../services/config.service";
|
|
4
5
|
import { getActiveLink } from "../../services/route.service";
|
|
5
6
|
import { version } from "../../../../package";
|
|
6
|
-
import { h, Host } from "@stencil/core";
|
|
7
|
+
import { h, Host, } from "@stencil/core";
|
|
7
8
|
import "@swisspost/design-system-components";
|
|
8
9
|
const SESSION_URL = 'https://n.account.post.ch/v1/session/subscribe';
|
|
9
10
|
export class PostInternetHeader {
|
|
11
|
+
alternateLinksObserver;
|
|
10
12
|
/**
|
|
11
13
|
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
12
14
|
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
@@ -87,7 +89,11 @@ export class PostInternetHeader {
|
|
|
87
89
|
throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
92
|
+
connectedCallback() {
|
|
93
|
+
this.observeAlternateLinks();
|
|
94
|
+
}
|
|
90
95
|
async componentWillLoad() {
|
|
96
|
+
this.initAlternateLinks();
|
|
91
97
|
await Promise.all([this.fetchHeaderConfig(), this.fetchUserData()]);
|
|
92
98
|
}
|
|
93
99
|
componentDidLoad() {
|
|
@@ -96,6 +102,7 @@ export class PostInternetHeader {
|
|
|
96
102
|
});
|
|
97
103
|
}
|
|
98
104
|
disconnectedCallback() {
|
|
105
|
+
this.alternateLinksObserver?.disconnect();
|
|
99
106
|
// Reset the store to its original state
|
|
100
107
|
dispose();
|
|
101
108
|
}
|
|
@@ -142,6 +149,15 @@ export class PostInternetHeader {
|
|
|
142
149
|
});
|
|
143
150
|
this.updateActiveUrl();
|
|
144
151
|
}
|
|
152
|
+
initAlternateLinks() {
|
|
153
|
+
state.alternateLinks = getAlternateLinks();
|
|
154
|
+
}
|
|
155
|
+
observeAlternateLinks() {
|
|
156
|
+
// Watch for dynamic changes (SPA route changes, late inserts)
|
|
157
|
+
this.alternateLinksObserver = observeAlternateLinks(updated => {
|
|
158
|
+
state.alternateLinks = updated;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
145
161
|
updateActiveUrl() {
|
|
146
162
|
state.activeLink = getActiveLink(this.activeRoute);
|
|
147
163
|
}
|
|
@@ -152,6 +168,13 @@ export class PostInternetHeader {
|
|
|
152
168
|
...(postLogin.userLinks ?? []),
|
|
153
169
|
];
|
|
154
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* Get the language switch URL for a given language code.
|
|
173
|
+
* Alternate links from <head> take priority over config-provided URLs.
|
|
174
|
+
*/
|
|
175
|
+
getLanguageUrl(code, configUrl) {
|
|
176
|
+
return state.alternateLinks.get(code.toLowerCase()) ?? configUrl;
|
|
177
|
+
}
|
|
155
178
|
renderNavItem(config, props = {}) {
|
|
156
179
|
if ('url' in config) {
|
|
157
180
|
return h(Link, { ...props, config: config });
|
|
@@ -179,7 +202,7 @@ export class PostInternetHeader {
|
|
|
179
202
|
this.renderNavigation('global-nav-primary', globalHeader.primaryNavigation), globalHeader.secondaryNavigation &&
|
|
180
203
|
this.renderNavigation('global-nav-secondary', globalHeader.secondaryNavigation, {
|
|
181
204
|
ariaCurrentWhenActive: 'location',
|
|
182
|
-
}), globalHeader.languages && globalHeader.languages.length > 0 && (h("post-language-menu", { slot: "language-menu", textChangeLanguage: this.textChangeLanguage, textCurrentLanguage: this.textCurrentLanguage }, globalHeader.languages.map(lang => (h("post-language-menu-item", { key: lang.code, url: lang.url, active: lang.active, code: lang.code, name: lang.label, description: lang.description }, lang.text))))), globalHeader.postLogin &&
|
|
205
|
+
}), globalHeader.languages && globalHeader.languages.length > 0 && (h("post-language-menu", { slot: "language-menu", textChangeLanguage: this.textChangeLanguage, textCurrentLanguage: this.textCurrentLanguage }, globalHeader.languages.map(lang => (h("post-language-menu-item", { key: lang.code, url: this.getLanguageUrl(lang.code, lang.url), active: lang.active, code: lang.code, name: lang.label, description: lang.description }, lang.text))))), globalHeader.postLogin &&
|
|
183
206
|
this.renderNavItem(state.user
|
|
184
207
|
? {
|
|
185
208
|
user: state.user,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read alternate language links from <link rel="alternate" hreflang="..."> in <head>.
|
|
3
|
+
* Only returns entries whose hreflang matches a supported language and whose href is a valid URL.
|
|
4
|
+
*/
|
|
5
|
+
export const getAlternateLinks = () => {
|
|
6
|
+
const result = new Map();
|
|
7
|
+
const links = document.querySelectorAll('head link[rel="alternate"][hreflang][href]');
|
|
8
|
+
for (const link of links) {
|
|
9
|
+
const href = link.getAttribute('href');
|
|
10
|
+
if (!href)
|
|
11
|
+
continue;
|
|
12
|
+
const code = link.hreflang?.toLowerCase();
|
|
13
|
+
if (result.has(code))
|
|
14
|
+
continue;
|
|
15
|
+
try {
|
|
16
|
+
const url = new URL(href, document.baseURI);
|
|
17
|
+
result.set(code, url.href);
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
// Invalid URL, fall back to config
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Observe <head> for changes to alternate links.
|
|
27
|
+
* Fires the callback whenever a <link rel="alternate"> is added, removed,
|
|
28
|
+
* or has its href/hreflang attribute changed.
|
|
29
|
+
*
|
|
30
|
+
* @returns The MutationObserver instance.
|
|
31
|
+
*/
|
|
32
|
+
export const observeAlternateLinks = (callback) => {
|
|
33
|
+
const observer = new MutationObserver(mutations => {
|
|
34
|
+
const isRelevant = mutations.some(m => {
|
|
35
|
+
if (m.type === 'attributes') {
|
|
36
|
+
if (!(m.target instanceof HTMLLinkElement))
|
|
37
|
+
return false;
|
|
38
|
+
return (m.attributeName === 'href' ||
|
|
39
|
+
m.attributeName === 'hreflang' ||
|
|
40
|
+
(m.attributeName === 'rel' && m.target.rel === 'alternate'));
|
|
41
|
+
}
|
|
42
|
+
if (m.type === 'childList') {
|
|
43
|
+
return [...m.addedNodes, ...m.removedNodes].some(n => n instanceof HTMLLinkElement &&
|
|
44
|
+
n.hasAttribute('href') &&
|
|
45
|
+
n.hasAttribute('hreflang') &&
|
|
46
|
+
n.hasAttribute('rel') && n.rel === 'alternate');
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
});
|
|
50
|
+
if (isRelevant) {
|
|
51
|
+
callback(getAlternateLinks());
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
observer.observe(document.head, {
|
|
55
|
+
childList: true,
|
|
56
|
+
subtree: true,
|
|
57
|
+
attributes: true,
|
|
58
|
+
attributeFilter: ['href', 'hreflang', 'rel'],
|
|
59
|
+
});
|
|
60
|
+
return observer;
|
|
61
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="10.
|
|
1
|
+
const o="10.4.0";export{o as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getRenderingRef as e,forceUpdate as n,h as t}from"@stencil/core/internal/client";const r=e=>!("isConnected"in e)||e.isConnected,o=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(r))})(...n)}),2e3)}})(),s=e=>"function"==typeof e?e():e,{state:i,dispose:a}=(()=>{const t=((e,n=(e,n)=>e!==n)=>{const t=s(e);let r=new Map(Object.entries(null!=t?t:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var n;r=new Map(Object.entries(null!==(n=s(e))&&void 0!==n?n:{})),o.reset.forEach((e=>e()))},a=e=>(o.get.forEach((n=>n(e))),r.get(e)),c=(e,t)=>{const s=r.get(e);n(t,s,e)&&(r.set(e,t),o.set.forEach((n=>n(e,t,s))))},u="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,n)=>a(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>r.has(n),set:(e,n,t)=>(c(n,t),!0)}),l=(e,n)=>(o[e].push(n),()=>{((e,n)=>{const t=e.indexOf(n);t>=0&&(e[t]=e[e.length-1],e.length--)})(o[e],n)});return{state:u,get:a,set:c,on:l,onChange:(n,t)=>{const r=l("set",((e,r)=>{e===n&&t(r)})),o=l("reset",(()=>t(s(e)[n])));return()=>{r(),o()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(l("set",n.set)),n.get&&e.push(l("get",n.get)),n.reset&&e.push(l("reset",n.reset)),n.dispose&&e.push(l("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{o.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=r.get(e);o.set.forEach((t=>t(e,n,n)))}}})({projectId:null,currentLanguage:null,localizedConfig:null,environment:"prod",activeLink:null,search:!0,user:null},void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:n=>{const r=e();r&&((e,n,t)=>{const r=e.get(n);r?r.includes(t)||r.push(t):e.set(n,[t])})(t,n,r)},set:e=>{const r=t.get(e);r&&t.set(e,r.filter(n)),o(t)},reset:()=>{t.forEach((e=>e.forEach(n))),o(t)}}})()),t})(),c=({config:e,hiddenText:n,ariaCurrentWhenActive:r,...o})=>t("a",{...o,href:e.url,"aria-label":e.label,"aria-description":e.description,"aria-current":(null!==i.activeLink?e===i.activeLink:e.active)?r:void 0},t("span",{class:{"visually-hidden":!!n}},e.text),"icon"in e&&t("post-icon",{"aria-hidden":"true",name:e.icon}),"image"in e&&t("img",{src:e.image.src,alt:e.image.alt}));function u(e){const n=e.trim();if(""===n)throw new Error("createIdFrom: input string cannot be empty or whitespace only.");const t=n.toLowerCase().replace(/\s+/g,"-");let r=0,o=t;for(;document.getElementById(o);)o=`${t}-${++r}`;return o}function l(e){return"string"==typeof e?e:e.text}function p(e){return"string"==typeof e?{innerHTML:e}:{innerHTML:e.text,"aria-label":e.label,"aria-description":e.description}}const f=({config:e,tag:n="p",...r})=>{return function(e){return"string"!=typeof e&&"url"in e}(e)?"p"===(o=n)||"span"===o?t(c,{...r,config:e}):t(n,{...r},t(c,{config:e})):t(n,{...r,...p(e)});var o},d="10.
|
|
1
|
+
import{getRenderingRef as e,forceUpdate as n,h as t}from"@stencil/core/internal/client";const r=e=>!("isConnected"in e)||e.isConnected,o=(()=>{let e;return(...n)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let n of e.keys())e.set(n,e.get(n).filter(r))})(...n)}),2e3)}})(),s=e=>"function"==typeof e?e():e,{state:i,dispose:a}=(()=>{const t=((e,n=(e,n)=>e!==n)=>{const t=s(e);let r=new Map(Object.entries(null!=t?t:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var n;r=new Map(Object.entries(null!==(n=s(e))&&void 0!==n?n:{})),o.reset.forEach((e=>e()))},a=e=>(o.get.forEach((n=>n(e))),r.get(e)),c=(e,t)=>{const s=r.get(e);n(t,s,e)&&(r.set(e,t),o.set.forEach((n=>n(e,t,s))))},u="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,n)=>a(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,n)=>r.has(n),set:(e,n,t)=>(c(n,t),!0)}),l=(e,n)=>(o[e].push(n),()=>{((e,n)=>{const t=e.indexOf(n);t>=0&&(e[t]=e[e.length-1],e.length--)})(o[e],n)});return{state:u,get:a,set:c,on:l,onChange:(n,t)=>{const r=l("set",((e,r)=>{e===n&&t(r)})),o=l("reset",(()=>t(s(e)[n])));return()=>{r(),o()}},use:(...e)=>{const n=e.reduce(((e,n)=>(n.set&&e.push(l("set",n.set)),n.get&&e.push(l("get",n.get)),n.reset&&e.push(l("reset",n.reset)),n.dispose&&e.push(l("dispose",n.dispose)),e)),[]);return()=>n.forEach((e=>e()))},dispose:()=>{o.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const n=r.get(e);o.set.forEach((t=>t(e,n,n)))}}})({projectId:null,currentLanguage:null,localizedConfig:null,environment:"prod",activeLink:null,search:!0,user:null,alternateLinks:new Map},void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:n=>{const r=e();r&&((e,n,t)=>{const r=e.get(n);r?r.includes(t)||r.push(t):e.set(n,[t])})(t,n,r)},set:e=>{const r=t.get(e);r&&t.set(e,r.filter(n)),o(t)},reset:()=>{t.forEach((e=>e.forEach(n))),o(t)}}})()),t})(),c=({config:e,hiddenText:n,ariaCurrentWhenActive:r,...o})=>t("a",{...o,href:e.url,"aria-label":e.label,"aria-description":e.description,"aria-current":(null!==i.activeLink?e===i.activeLink:e.active)?r:void 0},t("span",{class:{"visually-hidden":!!n}},e.text),"icon"in e&&t("post-icon",{"aria-hidden":"true",name:e.icon}),"image"in e&&t("img",{src:e.image.src,alt:e.image.alt}));function u(e){const n=e.trim();if(""===n)throw new Error("createIdFrom: input string cannot be empty or whitespace only.");const t=n.toLowerCase().replace(/\s+/g,"-");let r=0,o=t;for(;document.getElementById(o);)o=`${t}-${++r}`;return o}function l(e){return"string"==typeof e?e:e.text}function p(e){return"string"==typeof e?{innerHTML:e}:{innerHTML:e.text,"aria-label":e.label,"aria-description":e.description}}const f=({config:e,tag:n="p",...r})=>{return function(e){return"string"!=typeof e&&"url"in e}(e)?"p"===(o=n)||"span"===o?t(c,{...r,config:e}):t(n,{...r},t(c,{config:e})):t(n,{...r,...p(e)});var o},d="10.4.0";export{c as L,f as T,u as c,a as d,l as g,i as s,d as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as e,h as o,Host as i,transformTag as s}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{d as a}from"./post-menu-item2.js";import{U as c}from"./url.js";import{T as n}from"./type.js";import{O as l}from"./one-of.js";import{R as d}from"./required.js";var u=function(t,e,o,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(e,o,a):s(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1}render(){const t=this.url instanceof URL?this.url.href:this.url,e=t?o("a",{href:t,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},o("slot",null)):o("span",null,o("slot",null));return"listitem"===this.variant||this.selected?o(i,{"data-version":r,role:"listitem",slot:this.selected?"selected":void 0},e):o(i,{"data-version":r},o("post-menu-item",null,e))}get host(){return this}static get style(){return'a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}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}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){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){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){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}a.btn:not(.btn-link){border-color:ButtonBorder !important}a.btn.btn-tertiary.px-0{border:0 !important;text-decoration:underline}}:host(:not([variant=menuitem])){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)}:host(:not([variant=menuitem])) :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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host(:not([variant=menuitem])) :is(button,a):not(:disabled):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host(:not([variant=menuitem])) :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}:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host(:not([variant=menuitem])) :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)}:host(:not([variant=menuitem]))::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:16px;width:16px;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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEu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z48L3N2Zz4=")}:is(a,span){white-space:var(--post-breadcrumb-item-wrap, normal) !important;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}:host([selected]:not([selected=false])){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)}:host([selected]:not([selected=false])) :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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false])) :is(button,a):not(:disabled):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([selected]:not([selected=false])) :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}:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host([selected]:not([selected=false])) :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)}:host([selected]:not([selected=false]))::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:16px;width:16px;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+PC9ze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DcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]);u([c()],g.prototype,"url",void 0),u([n("string")],g.prototype,"label",void 0),u([n("string")],g.prototype,"description",void 0),u([l(["listitem","menuitem"])],g.prototype,"variant",void 0),u([d(),n("boolean")],g.prototype,"selected",void 0);const M=g,b=function(){"undefined"!=typeof customElements&&["post-breadcrumb-item","post-menu-item"].forEach((t=>{switch(t){case"post-breadcrumb-item":customElements.get(s(t))||customElements.define(s(t),g);break;case"post-menu-item":customElements.get(s(t))||a()}}))};export{M as PostBreadcrumbItem,b as defineCustomElement}
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,h as o,Host as i,transformTag as s}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{d as a}from"./post-menu-item2.js";import{U as c}from"./url.js";import{T as n}from"./type.js";import{O as l}from"./one-of.js";import{R as d}from"./required.js";var u=function(t,e,o,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(e,o,a):s(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1}render(){const t=this.url instanceof URL?this.url.href:this.url,e=t?o("a",{href:t,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},o("slot",null)):o("span",null,o("slot",null));return"listitem"===this.variant||this.selected?o(i,{"data-version":r,role:"listitem",slot:this.selected?"selected":void 0},e):o(i,{"data-version":r},o("post-menu-item",null,e))}get host(){return this}static get style(){return'a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}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}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){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){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){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}a.btn:not(.btn-link){border-color:ButtonBorder !important}a.btn.btn-tertiary.px-0{border:0 !important}a.btn.btn-tertiary.px-0:not(:hover){text-decoration:underline}}:host(:not([variant=menuitem])){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)}:host(:not([variant=menuitem])) :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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host(:not([variant=menuitem])) :is(button,a):not(:disabled):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host(:not([variant=menuitem])) :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}:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host(:not([variant=menuitem])) :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)}:host(:not([variant=menuitem]))::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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloi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IyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:is(a,span){white-space:var(--post-breadcrumb-item-wrap, normal) !important;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}:host([selected]:not([selected=false])){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)}:host([selected]:not([selected=false])) :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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false])) :is(button,a):not(:disabled):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([selected]:not([selected=false])) :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}:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host([selected]:not([selected=false])) :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)}:host([selected]:not([selected=false]))::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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04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td2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]);u([c()],g.prototype,"url",void 0),u([n("string")],g.prototype,"label",void 0),u([n("string")],g.prototype,"description",void 0),u([l(["listitem","menuitem"])],g.prototype,"variant",void 0),u([d(),n("boolean")],g.prototype,"selected",void 0);const M=g,b=function(){"undefined"!=typeof customElements&&["post-breadcrumb-item","post-menu-item"].forEach((t=>{switch(t){case"post-breadcrumb-item":customElements.get(s(t))||customElements.define(s(t),g);break;case"post-menu-item":customElements.get(s(t))||a()}}))};export{M as PostBreadcrumbItem,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as e,h as i,Host as o,transformTag as s}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{t as a}from"./index2.js";import{d as c}from"./post-icon2.js";import{d as n}from"./post-menu2.js";import{d}from"./post-menu-trigger2.js";import{d as l}from"./post-popovercontainer2.js";import{c as b}from"./component-on-ready.js";import{n as m}from"./nanoid.js";import{R as u}from"./required.js";import{U as p}from"./url.js";import{T as g}from"./type.js";var h=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 c=t.length-1;c>=0;c--)(s=t[c])&&(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 M=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shouldRenderMenu=!1}componentWillLoad(){this.id=this.host.id||"b"+m(6)}componentDidLoad(){this.createMutationObserver(),this.createResizeObserver()}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}createMutationObserver(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),this.duplicateNavElement()}createResizeObserver(){this.resizeObserver=new ResizeObserver(a(50,this.checkOverflow.bind(this))),this.resizeObserver.observe(document.body)}duplicateNavElement(){const t=this.host.shadowRoot,e=t?.querySelector("nav");if(!t||!e)return;this.prepareBreadcrumbItemsForClone();const i=e.cloneNode(!0);i.classList.add("invisible"),t.querySelector("nav.invisible")?.remove(),t.append(i),requestAnimationFrame((()=>{this.duplicateSlottedElements(i,"slot:not([name])"),this.duplicateSlottedElements(i,'slot[name="selected"]'),this.checkOverflow()}))}duplicateSlottedElements(t,e){const i=this.host.shadowRoot?.querySelector(e),o=t.querySelector(e);i&&o&&(i.assignedElements().forEach((t=>{o.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),o.remove())}checkOverflow(){const t=this.host.shadowRoot?.querySelector("nav.invisible");if(!t)return;const e=Array.from(t.querySelectorAll("post-breadcrumb-item"));Promise.all(e.map((t=>b(t)))).then((()=>{this.shouldRenderMenu=t.scrollWidth>t.clientWidth,this.updateBreadcrumbItemProps()}))}prepareBreadcrumbItemsForClone(){this.shouldRenderMenu=!1,this.updateBreadcrumbItemProps()}updateBreadcrumbItemProps(){const t=this.host.querySelectorAll("post-breadcrumb-item");t.forEach(((e,i)=>{e.setAttribute("variant",this.shouldRenderMenu?"menuitem":"listitem"),e.setAttribute("selected",(i===t.length-1)+"")}))}renderMenu(){const t=this.id+"-menu";return i("div",{role:"listitem"},i("div",{class:"breadcrumb-item"},i("post-menu-trigger",{for:t},i("button",null,i("span",{class:"visually-hidden"},this.textMoreItems),i("span",{"aria-hidden":"true"},"...")))),i("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},i("slot",null)))}render(){return i(o,{key:"b6ac788d29127c030f4b1955c41a7d6e2ac8a346","data-version":r},i("nav",{key:"a7c081b3b4d991cdab30b2ca424c47b7231484cd","aria-label":this.textBreadcrumbs},i("div",{key:"c51606af26b874e66376afa2b7855b400368af85",role:"list"},i("div",{key:"88a33d5554b807252b1d89ef6ce3a611dd7e5014",class:"breadcrumb-item home",role:"listitem"},i("a",{key:"f0fdbff28d44944d18497bf1be12bd22a1281778",href:this.homeUrl},i("span",{key:"4d16bbe0565dfdd1764027db43cf4c61849f9159",class:"visually-hidden"},this.textHome),i("post-icon",{key:"86611c819469da07c965c29db3510843e685e449","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():i("slot",null),i("slot",{key:"cb4a22117596bc8f3f9df72e62564b48c1d88975",name:"selected"}))))}get host(){return this}static get style(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-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):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){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):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !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:16px;width:16px;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+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm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lsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'}},[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]);h([u(),p()],M.prototype,"homeUrl",void 0),h([u(),g("string")],M.prototype,"textHome",void 0),h([u(),g("string")],M.prototype,"textBreadcrumbs",void 0),h([u(),g("string")],M.prototype,"textMoreItems",void 0);const j=M,v=function(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),M);break;case"post-icon":customElements.get(s(t))||c();break;case"post-menu":customElements.get(s(t))||n();break;case"post-menu-trigger":customElements.get(s(t))||d();break;case"post-popovercontainer":customElements.get(s(t))||l()}}))};export{j as PostBreadcrumbs,v as defineCustomElement}
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,h as i,Host as o,transformTag as s}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{t as a}from"./index2.js";import{d as c}from"./post-icon2.js";import{d as n}from"./post-menu2.js";import{d}from"./post-menu-trigger2.js";import{d as l}from"./post-popovercontainer2.js";import{c as m}from"./component-on-ready.js";import{n as b}from"./nanoid.js";import{R as u}from"./required.js";import{U as p}from"./url.js";import{T as g}from"./type.js";var h=function(e,t,i,o){var s,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(r<3?s(a):r>3?s(t,i,a):s(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};const M=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.shouldRenderMenu=!1}componentWillLoad(){this.id=this.host.id||"b"+b(6)}componentDidLoad(){this.createMutationObserver(),this.createResizeObserver()}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}createMutationObserver(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),this.duplicateNavElement()}createResizeObserver(){this.resizeObserver=new ResizeObserver(a(50,this.checkOverflow.bind(this))),this.resizeObserver.observe(document.body)}duplicateNavElement(){const e=this.host.shadowRoot,t=e?.querySelector("nav");if(!e||!t)return;this.prepareBreadcrumbItemsForClone();const i=t.cloneNode(!0);i.classList.add("invisible"),e.querySelector("nav.invisible")?.remove(),e.append(i),requestAnimationFrame((()=>{this.duplicateSlottedElements(i,"slot:not([name])"),this.duplicateSlottedElements(i,'slot[name="selected"]'),this.checkOverflow()}))}duplicateSlottedElements(e,t){const i=this.host.shadowRoot?.querySelector(t),o=e.querySelector(t);i&&o&&(i.assignedElements().forEach((e=>{o.insertAdjacentElement("beforebegin",e.cloneNode(!0))})),o.remove())}checkOverflow(){const e=this.host.shadowRoot?.querySelector("nav.invisible");if(!e)return;const t=Array.from(e.querySelectorAll("post-breadcrumb-item"));Promise.all(t.map((e=>m(e)))).then((()=>{this.shouldRenderMenu=e.scrollWidth>e.clientWidth&&t.length>1,this.updateBreadcrumbItemProps()}))}prepareBreadcrumbItemsForClone(){this.shouldRenderMenu=!1,this.updateBreadcrumbItemProps()}updateBreadcrumbItemProps(){const e=this.host.querySelectorAll("post-breadcrumb-item");e.forEach(((t,i)=>{t.setAttribute("variant",this.shouldRenderMenu?"menuitem":"listitem"),t.setAttribute("selected",(i===e.length-1)+"")}))}renderMenu(){const e=this.id+"-menu";return i("div",{role:"listitem"},i("div",{class:"breadcrumb-item"},i("post-menu-trigger",{for:e},i("button",null,i("span",{class:"visually-hidden"},this.textMoreItems),i("span",{"aria-hidden":"true"},"...")))),i("post-menu",{id:e,label:this.textMoreItems,placement:"bottom-start"},i("slot",null)))}render(){return i(o,{key:"2640a012ada112396ea3c954cda45c7bfaf2968d","data-version":r},i("nav",{key:"397a017f326459c433e0f8fae5766badfad52e29","aria-label":this.textBreadcrumbs},i("div",{key:"eb1d83aeb4aca599350918ba6be9df2a5ce86453",role:"list"},i("div",{key:"217b359f3da4afc3ca8c28d8fc0d352f4198c9b1",class:"breadcrumb-item home",role:"listitem"},i("a",{key:"1c2c3754bc0ef04e48ab95b5dad62e2d4cbb85e9",href:this.homeUrl},i("span",{key:"15878d068a9901a2c7b4f6726e6962dc9158a86f",class:"visually-hidden"},this.textHome),i("post-icon",{key:"0d755bcc61c49ccd7944b4a9370198ed41ab1c34","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():i("slot",null),i("slot",{key:"a0bafe06eab2346ea12bd00aec40c91b5e5347d0",name:"selected"}))))}get host(){return this}static get style(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.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;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-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):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9I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MTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:var(--post-device-spacing-padding-47)}.home::before{content:unset}.home post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'}},[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]);h([u(),p()],M.prototype,"homeUrl",void 0),h([u(),g("string")],M.prototype,"textHome",void 0),h([u(),g("string")],M.prototype,"textBreadcrumbs",void 0),h([u(),g("string")],M.prototype,"textMoreItems",void 0);const v=M,j=function(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-trigger","post-popovercontainer"].forEach((e=>{switch(e){case"post-breadcrumbs":customElements.get(s(e))||customElements.define(s(e),M);break;case"post-icon":customElements.get(s(e))||c();break;case"post-menu":customElements.get(s(e))||n();break;case"post-menu-trigger":customElements.get(s(e))||d();break;case"post-popovercontainer":customElements.get(s(e))||l()}}))};export{v as PostBreadcrumbs,j as defineCustomElement}
|