@swisspost/internet-header 10.5.0 → 10.7.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/loader.cjs.js +1 -1
- package/dist/cjs/{package-pLOjVG24.js → package-BWgt2bx3.js} +1 -1
- package/dist/cjs/{package-DdU-rENe.js → package-BtKYhTNj.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +4 -4
- 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 +26 -4
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +153 -53
- package/dist/cjs/post-closebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +34 -30
- package/dist/cjs/post-footer.cjs.entry.js +4 -4
- package/dist/cjs/post-header.cjs.entry.js +16 -10
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +5 -5
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +1 -1
- package/dist/cjs/post-popover-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-popovercontainer.cjs.entry.js +28 -24
- 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 +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +3 -11
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +75 -78
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +2 -10
- package/dist/collection/components/post-internet-header/post-internet-header.js +16 -66
- package/dist/collection/config/klp-urls.js +33 -0
- package/dist/collection/services/config.service.js +25 -11
- package/dist/collection/tests/setup-tests.js +1 -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-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-icon2.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-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-footer.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/loader.js +1 -1
- package/dist/esm/{package-Ny5VnydI.js → package-BBz9PVf0.js} +1 -1
- package/dist/esm/{package-CWWSnot0.js → package-DRoYikPQ.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +4 -4
- 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 +26 -4
- package/dist/esm/post-breadcrumbs.entry.js +153 -53
- package/dist/esm/post-closebutton.entry.js +2 -2
- package/dist/esm/post-date-picker.entry.js +34 -30
- package/dist/esm/post-footer.entry.js +4 -4
- package/dist/esm/post-header.entry.js +16 -10
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/post-language-menu-item.entry.js +1 -1
- package/dist/esm/post-language-menu.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +5 -5
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +1 -1
- package/dist/esm/post-popover-trigger.entry.js +3 -3
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-popovercontainer.entry.js +28 -24
- 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 +2 -2
- package/dist/esm/post-stepper-item.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +3 -11
- package/dist/esm/swisspost-internet-header.entry.js +75 -78
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/package-BBz9PVf0.js +1 -0
- package/dist/esm-es5/{package-CWWSnot0.js → package-DRoYikPQ.js} +1 -1
- 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/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/p-06f12978.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-6d67cc9d.entry.js → p-110f7b07.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e008aab0.entry.js → p-12cb6db2.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1587ba27.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c5a114a3.system.entry.js → p-17c15d71.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-38159567.entry.js → p-1b2b7af5.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-03a80973.system.entry.js → p-1bb3ad80.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-735effe5.system.entry.js → p-1d5fca41.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-211fa616.entry.js +1 -0
- package/dist/swisspost-internet-header/p-317104a6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-32fd1973.entry.js +1 -0
- package/dist/swisspost-internet-header/p-34c89f09.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-83549cef.system.entry.js → p-35ddf3ca.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-250ff1e6.system.entry.js → p-36be4427.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fa10409f.entry.js → p-370ecda3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3f3e5828.system.entry.js → p-3975075b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-097214a3.entry.js → p-3ca53634.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-429c457a.entry.js +1 -0
- package/dist/swisspost-internet-header/p-46dc968c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b1d25e1d.entry.js → p-47cd54ff.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e6c60488.entry.js → p-4889abef.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-495d1a20.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-138f2186.entry.js → p-4d9971e2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-14a5b926.system.entry.js → p-5915d0c4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6dea21a2.entry.js → p-5971e15b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-06eb086c.system.entry.js → p-65457750.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-65f9efeb.entry.js +1 -0
- package/dist/swisspost-internet-header/p-68898c0b.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-6a35fb20.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f04924d8.system.entry.js → p-6c9cb3b7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6f3ba321.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-3dfdd503.system.entry.js → p-77a5472c.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f54a41d5.system.entry.js → p-7949ff33.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-79f2d9ef.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-40ee5200.entry.js → p-7e8c8743.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cb0bcdf7.system.entry.js → p-81a2ec15.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2e4a1d59.entry.js → p-82b18f9d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3b8bc9bf.entry.js → p-85f59fc3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a5b1c8b5.entry.js → p-8943e2e2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8978be6a.system.entry.js → p-895b1160.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8bce262b.entry.js +1 -0
- package/dist/swisspost-internet-header/p-8d9023ce.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-d96cbabb.system.entry.js → p-94c6710f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fddbd731.entry.js → p-97727574.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cc0d4d02.system.entry.js → p-990da9f3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5e98bd48.system.entry.js → p-9c09cf8b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bb7fe5c4.entry.js → p-9dc1ecd1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9e6a4c52.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-58318d31.entry.js → p-9e85063a.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9f0ff23c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-CYCx3cRc.system.js → p-B6etRRpy.system.js} +1 -1
- package/dist/swisspost-internet-header/p-BBz9PVf0.js +1 -0
- package/dist/swisspost-internet-header/{p-MZb_boDk.system.js → p-DHWj-DKi.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-Bkt75U1-.system.js → p-DHpwVMSs.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-C3HusDuA.js → p-IHvD9UqE.js} +1 -1
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/{p-1c33394a.system.entry.js → p-a0ee4b1e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ee42c33b.system.entry.js → p-a41bc8b4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ddbbc505.entry.js → p-a41bdf7a.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-aa5d0b16.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-1501e9e0.entry.js → p-b3481769.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-badd758a.system.entry.js → p-bdd376c5.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-93653f6e.system.entry.js → p-c0c10b63.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-436a661f.entry.js → p-c1db8f13.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c0cd2db1.entry.js → p-c28020b7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e9569ed9.entry.js → p-c5e6949c.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-30b56aa5.entry.js → p-c6659dca.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-c6672194.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f8cb3ed7.system.entry.js → p-c785b2d8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e02d5b07.entry.js → p-cc4571a9.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-cde7b565.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8c11a307.entry.js → p-cfd1f343.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d35adc7b.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-7f223aac.system.entry.js → p-d61814f0.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a24350c6.system.entry.js → p-d6b85bbe.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d6e0e5f2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-d90947de.system.entry.js → p-d7b33964.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dcee68ed.system.entry.js → p-d7df13be.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e0563b59.entry.js → p-d91f90a1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d9741ab5.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a6db4d60.entry.js → p-d9c1046b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-204aaba4.system.entry.js → p-db3f471b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-04651cdc.entry.js → p-dbcd6fb9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-deadf1bf.entry.js → p-df83b4ce.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-85d6fa3b.entry.js → p-e0f04375.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e67350dd.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-08a6f709.system.entry.js → p-eb76e336.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8afbbdf6.system.entry.js → p-ec7c0b5e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ef16275c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-dd20bb2e.system.entry.js → p-fc08fd7d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/config/klp-urls.d.ts +23 -0
- package/dist/types/services/config.service.d.ts +2 -1
- package/package.json +21 -22
- package/readme.md +2 -2
- package/dist/esm-es5/package-Ny5VnydI.js +0 -1
- package/dist/swisspost-internet-header/p-004c6278.entry.js +0 -1
- package/dist/swisspost-internet-header/p-15613920.entry.js +0 -1
- package/dist/swisspost-internet-header/p-159e96f4.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2e23353c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3f704fa4.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4e883523.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-51c3d47f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-638891f4.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6d4d21b7.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7204ff05.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-770cac8f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-81985723.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8e81fedf.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-Ny5VnydI.js +0 -1
- package/dist/swisspost-internet-header/p-a1476fe8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a1a640e5.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a3f0cee6.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-aaa51210.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b62df652.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c275ce9f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c96d1aeb.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d6f0b224.entry.js +0 -1
- package/dist/swisspost-internet-header/p-dbb7038b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e5171236.entry.js +0 -1
- package/dist/swisspost-internet-header/p-eb0b4ff8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fb4b0989.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fec7c3c1.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-BWgt2bx3.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
|
|
|
@@ -216,14 +216,30 @@ const fetchConfig = async (projectId, environment, lang) => {
|
|
|
216
216
|
if (projectId === 'test') {
|
|
217
217
|
environment = 'int01';
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
219
|
+
let lastError;
|
|
220
|
+
for (const host of getConfigHosts(environment)) {
|
|
221
|
+
const url = generateConfigUrl(projectId, environment, lang, host);
|
|
222
|
+
try {
|
|
223
|
+
const res = await fetch(url);
|
|
224
|
+
if (!res.ok)
|
|
225
|
+
throw new Error(`Request failed with status ${res.status}`);
|
|
226
|
+
return (await res.json());
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
lastError = error;
|
|
230
|
+
console.warn(`Internet Header: API origin "${host}" not yet available! Falling back to the temporary origin until main origin is up and running.`);
|
|
231
|
+
}
|
|
226
232
|
}
|
|
233
|
+
throw new Error(`Internet Header: fetching config failed. ${lastError?.message}`);
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Hosts to try, in order of preference.
|
|
237
|
+
* On prod, www.post.ch is a fallback for the upcoming move away from site.post.ch.
|
|
238
|
+
*/
|
|
239
|
+
const getConfigHosts = (environment) => {
|
|
240
|
+
const isProd = environment.toUpperCase() === 'PROD';
|
|
241
|
+
// remove `site.post.ch` as soon as the header API is available under `www.post.ch`!
|
|
242
|
+
return isProd ? ['https://site.post.ch', 'https://www.post.ch'] : ['https://int.post.ch'];
|
|
227
243
|
};
|
|
228
244
|
/**
|
|
229
245
|
* Generate a URL with all necessary query params to get the configuration.
|
|
@@ -231,16 +247,14 @@ const fetchConfig = async (projectId, environment, lang) => {
|
|
|
231
247
|
* @param projectId string
|
|
232
248
|
* @param environment int01, int02 or prod
|
|
233
249
|
* @param lang currently selected language
|
|
250
|
+
* @param host base host to request the config from
|
|
234
251
|
* @returns URL pointing to the project config
|
|
235
252
|
*/
|
|
236
|
-
const generateConfigUrl = (projectId, environment, lang) => {
|
|
253
|
+
const generateConfigUrl = (projectId, environment, lang, host = getConfigHosts(environment)[0]) => {
|
|
237
254
|
if (projectId === 'test')
|
|
238
255
|
return 'assets/config/test-configuration.json';
|
|
239
256
|
const parsedEnvironment = environment.toUpperCase();
|
|
240
257
|
const parsedLang = lang.toLowerCase();
|
|
241
|
-
const isProd = parsedEnvironment === 'PROD';
|
|
242
|
-
// NOTE: use preview.post.ch for local testing
|
|
243
|
-
const host = `https://${isProd ? '' : 'int.'}preview.post.ch`;
|
|
244
258
|
try {
|
|
245
259
|
const query = new URLSearchParams({
|
|
246
260
|
serviceId: projectId,
|
|
@@ -415,29 +429,44 @@ const getSimilarityScore = (a, b) => {
|
|
|
415
429
|
return i;
|
|
416
430
|
};
|
|
417
431
|
|
|
418
|
-
|
|
432
|
+
/**
|
|
433
|
+
* KLP (Swiss Post Login) session API endpoint path
|
|
434
|
+
*/
|
|
435
|
+
const KLP_SESSION_ENDPOINT = '/v1/session/subscribe';
|
|
436
|
+
/**
|
|
437
|
+
* KLP base URL mapping for different environments
|
|
438
|
+
* Maps each environment to its corresponding KLP authentication service URL
|
|
439
|
+
*
|
|
440
|
+
* Environment | Base URL
|
|
441
|
+
* -- | --
|
|
442
|
+
* PROD | https://n.account.post.ch
|
|
443
|
+
* INT2 | https://n.accountint2.post.ch
|
|
444
|
+
* INT1 | https://n.accountint1.post.ch
|
|
445
|
+
* dev01, dev02, devs1, test | https://n.accountint1.post.ch
|
|
446
|
+
*/
|
|
447
|
+
const KLP_BASE_URLS = {
|
|
448
|
+
dev01: 'https://n.accountint1.post.ch',
|
|
449
|
+
dev02: 'https://n.accountint1.post.ch',
|
|
450
|
+
devs1: 'https://n.accountint1.post.ch',
|
|
451
|
+
test: 'https://n.accountint1.post.ch',
|
|
452
|
+
int01: 'https://n.accountint1.post.ch',
|
|
453
|
+
int02: 'https://n.accountint2.post.ch',
|
|
454
|
+
prod: 'https://n.account.post.ch',
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Constructs the full session URL for a given environment
|
|
458
|
+
* @param environment - The target environment
|
|
459
|
+
* @returns The full KLP session subscription URL
|
|
460
|
+
*/
|
|
461
|
+
const getSessionUrl = (environment) => {
|
|
462
|
+
const baseUrl = KLP_BASE_URLS[environment];
|
|
463
|
+
return `${baseUrl}${KLP_SESSION_ENDPOINT}`;
|
|
464
|
+
};
|
|
465
|
+
|
|
419
466
|
const PostInternetHeader = class {
|
|
420
|
-
alternateLinksObserver;
|
|
421
|
-
/**
|
|
422
|
-
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
423
|
-
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
424
|
-
*/
|
|
425
|
-
activeRoute = 'auto';
|
|
426
467
|
handleActiveRouteChange() {
|
|
427
468
|
this.updateActiveUrl();
|
|
428
469
|
}
|
|
429
|
-
/**
|
|
430
|
-
* Target environment. Choose 'int01' for local testing.
|
|
431
|
-
*/
|
|
432
|
-
environment = 'prod';
|
|
433
|
-
/**
|
|
434
|
-
* Makes the header content span the full width on screens larger than 1440px.
|
|
435
|
-
*/
|
|
436
|
-
fullWidth = false;
|
|
437
|
-
/**
|
|
438
|
-
* Initial language to be used. Overrides automatic language detection.
|
|
439
|
-
*/
|
|
440
|
-
language;
|
|
441
470
|
async handleLanguageChange(newValue) {
|
|
442
471
|
try {
|
|
443
472
|
// Pass newValue explicitly — it wins first priority in getUserLang's chain
|
|
@@ -447,55 +476,22 @@ const PostInternetHeader = class {
|
|
|
447
476
|
console.error(error);
|
|
448
477
|
}
|
|
449
478
|
}
|
|
450
|
-
/**
|
|
451
|
-
* Your project id, previously passed as query string parameter serviceId.
|
|
452
|
-
*/
|
|
453
|
-
project;
|
|
454
|
-
/**
|
|
455
|
-
* Visually hidden label for the back button.
|
|
456
|
-
*/
|
|
457
|
-
textBack;
|
|
458
|
-
/**
|
|
459
|
-
* Visually hidden label for the language menu.
|
|
460
|
-
*/
|
|
461
|
-
textChangeLanguage;
|
|
462
|
-
/**
|
|
463
|
-
* Visually hidden label for the close button.
|
|
464
|
-
*/
|
|
465
|
-
textClose;
|
|
466
|
-
/**
|
|
467
|
-
* Visually hidden label for the current language.
|
|
468
|
-
* The placeholder `{name}` will be replaced with the name of the currently selected language.
|
|
469
|
-
*/
|
|
470
|
-
textCurrentLanguage;
|
|
471
|
-
/**
|
|
472
|
-
* Visually hidden label for the current user.
|
|
473
|
-
* The placeholder `{user}` will be replaced with the full name of the currently logged-in user.
|
|
474
|
-
*/
|
|
475
|
-
textCurrentUser;
|
|
476
|
-
/**
|
|
477
|
-
* Visually hidden label for the main navigation element.
|
|
478
|
-
*/
|
|
479
|
-
textMain;
|
|
480
|
-
/**
|
|
481
|
-
* Visually hidden label for the burger menu button.
|
|
482
|
-
*/
|
|
483
|
-
textMenu;
|
|
484
|
-
/**
|
|
485
|
-
* Visually hidden label for the login widget trigger button.
|
|
486
|
-
*/
|
|
487
|
-
textAccessUserLinks;
|
|
488
|
-
/**
|
|
489
|
-
* Visually hidden label for the user menu.
|
|
490
|
-
*/
|
|
491
|
-
textUserLinks;
|
|
492
|
-
/**
|
|
493
|
-
* Fires when the header has been rendered to the page.
|
|
494
|
-
*/
|
|
495
|
-
headerLoaded;
|
|
496
479
|
constructor(hostRef) {
|
|
497
480
|
index.registerInstance(this, hostRef);
|
|
498
481
|
this.headerLoaded = index.createEvent(this, "headerLoaded");
|
|
482
|
+
/**
|
|
483
|
+
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
484
|
+
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
485
|
+
*/
|
|
486
|
+
this.activeRoute = 'auto';
|
|
487
|
+
/**
|
|
488
|
+
* Target environment. Choose 'int01' for local testing.
|
|
489
|
+
*/
|
|
490
|
+
this.environment = 'prod';
|
|
491
|
+
/**
|
|
492
|
+
* Makes the header content span the full width on screens larger than 1440px.
|
|
493
|
+
*/
|
|
494
|
+
this.fullWidth = false;
|
|
499
495
|
if (this.project === undefined || this.project === '' || !isValidProjectId(this.project)) {
|
|
500
496
|
throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`);
|
|
501
497
|
}
|
|
@@ -539,7 +535,8 @@ const PostInternetHeader = class {
|
|
|
539
535
|
}
|
|
540
536
|
async fetchUserData() {
|
|
541
537
|
try {
|
|
542
|
-
const
|
|
538
|
+
const sessionUrl = getSessionUrl(this.environment);
|
|
539
|
+
const response = await fetch(sessionUrl, {
|
|
543
540
|
credentials: 'include',
|
|
544
541
|
});
|
|
545
542
|
if (response.ok) {
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["swisspost-internet-header.cjs",[[
|
|
22
|
+
return index.bootstrapLazy([["swisspost-internet-header.cjs",[[0,"swisspost-internet-header",{"activeRoute":[1,"active-route"],"environment":[1],"fullWidth":[4,"full-width"],"language":[1],"project":[1],"textBack":[513,"text-back"],"textChangeLanguage":[513,"text-change-language"],"textClose":[513,"text-close"],"textCurrentLanguage":[513,"text-current-language"],"textCurrentUser":[513,"text-current-user"],"textMain":[513,"text-main"],"textMenu":[513,"text-menu"],"textAccessUserLinks":[513,"text-access-user-links"],"textUserLinks":[513,"text-user-links"]},[[0,"postChange","handleLanguageChangeEvent"]],{"activeRoute":[{"handleActiveRouteChange":0}],"language":[{"handleLanguageChange":0}]}]]],["swisspost-internet-footer.cjs",[[0,"swisspost-internet-footer",{"textFooter":[513,"text-footer"],"textCookieSettings":[513,"text-cookie-settings"],"liveSupportEnabled":[32],"cookieSettingsEnabled":[32]}]]],["post-breadcrumbs.cjs",[[257,"post-breadcrumbs",{"homeUrl":[513,"home-url"],"textHome":[513,"text-home"],"homeTextOnly":[516,"home-text-only"],"textBreadcrumbs":[513,"text-breadcrumbs"],"textMoreItems":[513,"text-more-items"],"id":[32],"loaded":[32],"hasSlottedHomeAnchor":[32],"hasSlottedHomeIcon":[32],"collapsed":[32],"homeCollapsed":[32],"lastItemWraps":[32]}]]],["post-popover.cjs",[[257,"post-popover",{"placement":[1],"textClose":[513,"text-close"],"arrow":[4],"edgeGap":[32],"show":[64],"hide":[64],"toggle":[64]}]]],["post-date-picker.cjs",[[257,"post-date-picker",{"locale":[1],"range":[4],"min":[1],"max":[1],"cellConfig":[16],"inline":[4],"textNextMonth":[513,"text-next-month"],"textNextYear":[513,"text-next-year"],"textNextDecade":[513,"text-next-decade"],"textPreviousMonth":[513,"text-previous-month"],"textPreviousYear":[513,"text-previous-year"],"textPreviousDecade":[513,"text-previous-decade"],"textSwitchYear":[513,"text-switch-year"],"textToggleCalendar":[1,"text-toggle-calendar"],"inputDisabled":[32],"today":[32],"startDate":[32],"show":[64],"hide":[64]},null,{"locale":[{"validateLocale":0},{"updateLocale":0}],"range":[{"updateRange":0}],"min":[{"updateMin":0}],"max":[{"updateMax":0}],"inline":[{"validateInline":0}]}]]],["post-megadropdown.cjs",[[257,"post-megadropdown",{"textClose":[513,"text-close"],"textBack":[513,"text-back"],"device":[32],"isVisible":[32],"trigger":[32],"megadropdownTitle":[32],"animationClass":[32],"toggle":[64],"show":[64],"hide":[64],"focusFirst":[64]}]]],["post-side-navigation.cjs",[[257,"post-side-navigation",{"textClose":[513,"text-close"],"size":[1],"device":[32],"toggle":[64],"show":[64],"hide":[64]}]]],["post-autocomplete.cjs",[[257,"post-autocomplete",{"filterThreshold":[514,"filter-threshold"],"clearable":[516],"listbox":[513],"textAvailableSuggestions":[513,"text-available-suggestions"],"selectedValue":[32]}]]],["post-back-to-top.cjs",[[1,"post-back-to-top",{"textBackToTop":[513,"text-back-to-top"],"belowFold":[32]},null,{"belowFold":[{"watchBelowFold":0}]}]]],["post-breadcrumb-item.cjs",[[257,"post-breadcrumb-item",{"url":[513],"label":[513],"description":[513],"variant":[513],"selected":[516],"standalone":[516],"hasSlottedAnchor":[32]}]]],["post-listbox.cjs",[[257,"post-listbox",{"show":[64],"hide":[64],"filter":[64],"clearSelection":[64],"navigate":[64],"selectActive":[64]},[[0,"postOptionSelected","optionClicked"]]]]],["post-listbox-option.cjs",[[257,"post-listbox-option",{"value":[513],"selected":[516],"highlighted":[516]}]]],["post-megadropdown-trigger.cjs",[[257,"post-megadropdown-trigger",{"active":[516],"for":[513],"isMegadropdownExpanded":[32],"slottedContent":[32]},[[4,"postToggleMegadropdown","onMegadropdownToggled"]]]]],["post-number-input.cjs",[[257,"post-number-input",{"isDisabled":[32],"isIncrementDisabled":[32],"isDecrementDisabled":[32],"small":[32],"input":[32]}]]],["post-pagination.cjs",[[1,"post-pagination",{"page":[1026],"pageSize":[514,"page-size"],"collectionSize":[514,"collection-size"],"label":[513],"textPrevious":[513,"text-previous"],"textNext":[513,"text-next"],"textPage":[513,"text-page"],"textFirst":[513,"text-first"],"textLast":[513,"text-last"],"paginationId":[32],"maxVisiblePages":[32],"items":[32]},null,{"page":[{"handlePropsChange":0}],"pageSize":[{"handlePropsChange":0}],"collectionSize":[{"handlePropsChange":0}]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[513],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tabs.cjs",[[257,"post-tabs",{"textPrevTabItems":[513,"text-prev-tab-items"],"textNextTabItems":[513,"text-next-tab-items"],"activeTab":[513,"active-tab"],"size":[513],"label":[513],"isPagesVariant":[32],"showLeftScrollButton":[32],"showRightScrollButton":[32],"show":[64]},null,{"label":[{"validateLabel":0}]}]]],["post-tooltip.cjs",[[257,"post-tooltip",{"placement":[1],"arrow":[4],"open":[1540],"show":[64],"hide":[64],"toggle":[64]}]]],["post-avatar.cjs",[[257,"post-avatar",{"firstname":[513],"lastname":[1],"email":[1],"description":[1],"slottedImage":[32],"avatarType":[32],"imageUrl":[32],"imageAlt":[32],"initials":[32],"storageKey":[32]},null,{"email":[{"updateEmail":0}]}]]],["post-banner.cjs",[[257,"post-banner",{"type":[513],"hasActions":[32],"dismiss":[64]}]]],["post-linkarea.cjs",[[257,"post-linkarea"]]],["post-popover-trigger.cjs",[[257,"post-popover-trigger",{"for":[513],"ariaExpanded":[32],"popoverOpen":[32]},null,{"popoverOpen":[{"syncAriaExpanded":0}]}]]],["post-progressbar.cjs",[[1,"post-progressbar",{"min":[2],"max":[2],"value":[2]}]]],["post-side-navigation-trigger.cjs",[[257,"post-side-navigation-trigger",{"for":[513],"update":[64]}]]],["post-stepper.cjs",[[257,"post-stepper",{"textCurrentStep":[513,"text-current-step"],"textCompletedStep":[513,"text-completed-step"],"textStepNumber":[513,"text-step-number"],"currentIndex":[2,"current-index"],"selectedIndex":[2,"selected-index"],"mobileActiveStepLabel":[32],"mobileActiveStepName":[32]},null,{"currentIndex":[{"validateCurrentIndex":0}],"selectedIndex":[{"validateSelectedIndex":0}],"textStepNumber":[{"updateActiveStepNumber":0}]}]]],["post-stepper-item.cjs",[[257,"post-stepper-item"]]],["post-tab-item.cjs",[[257,"post-tab-item",{"name":[513],"disabled":[516],"tabId":[32],"isPagesVariant":[32]}]]],["post-tab-panel.cjs",[[257,"post-tab-panel",{"for":[513],"panelId":[32]}]]],["post-tooltip-trigger.cjs",[[257,"post-tooltip-trigger",{"for":[513],"delay":[2]}]]],["post-popovercontainer.cjs",[[257,"post-popovercontainer",{"placement":[1],"edgeGap":[2,"edge-gap"],"offset":[2],"arrow":[4],"safeSpace":[513,"safe-space"],"autoHide":[4,"auto-hide"],"dynamicPlacement":[32],"show":[64],"hide":[64],"toggle":[64]}]]],["post-icon.cjs",[[1,"post-icon",{"animation":[513],"base":[1],"url":[1],"flipH":[516,"flip-h"],"flipV":[516,"flip-v"],"name":[513],"rotate":[2],"scale":[2]}]]],["post-footer.cjs",[[257,"post-footer",{"textFooter":[513,"text-footer"],"device":[32],"slotDisplayed":[32]}]]],["post-language-menu.cjs",[[257,"post-language-menu",{"textChangeLanguage":[513,"text-change-language"],"textCurrentLanguage":[513,"text-current-language"],"variant":[513],"activeLang":[32]},[[0,"postChange","handlePostChange"],[7,"scroll","hideMenuOnScroll"],[0,"postLanguageMenuItemInitiallyActive","handleInitiallyActive"]],{"variant":[{"handleVariantChange":0}]}]]],["post-header.cjs",[[257,"post-header",{"fullWidth":[516,"full-width"],"textMenu":[513,"text-menu"],"device":[32],"hasTitle":[32],"hasMainNav":[32],"hasLocalNav":[32],"burgerMenuExtended":[32],"megadropdownOpen":[32],"toggleBurgerMenu":[64]},[[0,"focusin","onFocusChange"],[0,"focusout","onFocusChange"]],{"device":[{"lockBody":0}],"burgerMenuExtended":[{"lockBody":0}]}]]],["post-language-menu-item.cjs",[[260,"post-language-menu-item",{"code":[513],"active":[1540],"variant":[1],"name":[1],"description":[1],"url":[1],"select":[64]}]]],["post-mainnavigation.cjs",[[257,"post-mainnavigation",{"textMain":[513,"text-main"],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]]]],["post-logo.cjs",[[257,"post-logo",{"url":[1]}]]],["post-togglebutton.cjs",[[257,"post-togglebutton",{"toggled":[1028]}]]],["post-closebutton.cjs",[[321,"post-closebutton",{"buttonType":[1,"button-type"],"placement":[513],"size":[513]}]]],["post-menu-item.cjs",[[0,"post-menu-item"]]],["post-menu_2.cjs",[[257,"post-menu",{"placement":[1],"label":[513],"isVisible":[32],"toggle":[64],"show":[64],"hide":[64]}],[257,"post-menu-trigger",{"for":[513]}]]],["post-accordion_4.cjs",[[257,"post-accordion-item",{"collapsed":[1540],"slottedLogo":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]]],[257,"post-accordion",{"headingLevel":[514,"heading-level"],"multiple":[516],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":[{"syncHeadingLevel":0}]}],[257,"post-collapsible",{"collapsed":[1028],"toggle":[64]}],[257,"post-collapsible-trigger",{"for":[513],"update":[64]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -5,17 +5,9 @@ import { getText } from "../../utils/get-text";
|
|
|
5
5
|
import { version } from "../../../../package";
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
export class PostInternetFooter {
|
|
8
|
-
/**
|
|
9
|
-
* Visually hidden label for the footer.
|
|
10
|
-
*/
|
|
11
|
-
textFooter;
|
|
12
|
-
/**
|
|
13
|
-
* Label for the "Cookie Settings" button.
|
|
14
|
-
*/
|
|
15
|
-
textCookieSettings;
|
|
16
|
-
liveSupportEnabled = false;
|
|
17
|
-
cookieSettingsEnabled = false;
|
|
18
8
|
constructor() {
|
|
9
|
+
this.liveSupportEnabled = false;
|
|
10
|
+
this.cookieSettingsEnabled = false;
|
|
19
11
|
this.liveSupportEnabled = this.unbluEnabled();
|
|
20
12
|
this.cookieSettingsEnabled = this.ucUIEnabled();
|
|
21
13
|
/**
|
|
@@ -3,32 +3,14 @@ import { dispose, state } from "../../data/store";
|
|
|
3
3
|
import { getAlternateLinks, observeAlternateLinks } from "../../services/alternate-link.service";
|
|
4
4
|
import { getLocalizedConfig, isValidProjectId } from "../../services/config.service";
|
|
5
5
|
import { getActiveLink } from "../../services/route.service";
|
|
6
|
+
import { getSessionUrl } from "../../config/klp-urls";
|
|
6
7
|
import { version } from "../../../../package";
|
|
7
8
|
import { h, Host, } from "@stencil/core";
|
|
8
9
|
import "@swisspost/design-system-components";
|
|
9
|
-
const SESSION_URL = 'https://n.account.post.ch/v1/session/subscribe';
|
|
10
10
|
export class PostInternetHeader {
|
|
11
|
-
alternateLinksObserver;
|
|
12
|
-
/**
|
|
13
|
-
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
14
|
-
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
15
|
-
*/
|
|
16
|
-
activeRoute = 'auto';
|
|
17
11
|
handleActiveRouteChange() {
|
|
18
12
|
this.updateActiveUrl();
|
|
19
13
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Target environment. Choose 'int01' for local testing.
|
|
22
|
-
*/
|
|
23
|
-
environment = 'prod';
|
|
24
|
-
/**
|
|
25
|
-
* Makes the header content span the full width on screens larger than 1440px.
|
|
26
|
-
*/
|
|
27
|
-
fullWidth = false;
|
|
28
|
-
/**
|
|
29
|
-
* Initial language to be used. Overrides automatic language detection.
|
|
30
|
-
*/
|
|
31
|
-
language;
|
|
32
14
|
async handleLanguageChange(newValue) {
|
|
33
15
|
try {
|
|
34
16
|
// Pass newValue explicitly — it wins first priority in getUserLang's chain
|
|
@@ -38,53 +20,20 @@ export class PostInternetHeader {
|
|
|
38
20
|
console.error(error);
|
|
39
21
|
}
|
|
40
22
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Your project id, previously passed as query string parameter serviceId.
|
|
43
|
-
*/
|
|
44
|
-
project;
|
|
45
|
-
/**
|
|
46
|
-
* Visually hidden label for the back button.
|
|
47
|
-
*/
|
|
48
|
-
textBack;
|
|
49
|
-
/**
|
|
50
|
-
* Visually hidden label for the language menu.
|
|
51
|
-
*/
|
|
52
|
-
textChangeLanguage;
|
|
53
|
-
/**
|
|
54
|
-
* Visually hidden label for the close button.
|
|
55
|
-
*/
|
|
56
|
-
textClose;
|
|
57
|
-
/**
|
|
58
|
-
* Visually hidden label for the current language.
|
|
59
|
-
* The placeholder `{name}` will be replaced with the name of the currently selected language.
|
|
60
|
-
*/
|
|
61
|
-
textCurrentLanguage;
|
|
62
|
-
/**
|
|
63
|
-
* Visually hidden label for the current user.
|
|
64
|
-
* The placeholder `{user}` will be replaced with the full name of the currently logged-in user.
|
|
65
|
-
*/
|
|
66
|
-
textCurrentUser;
|
|
67
|
-
/**
|
|
68
|
-
* Visually hidden label for the main navigation element.
|
|
69
|
-
*/
|
|
70
|
-
textMain;
|
|
71
|
-
/**
|
|
72
|
-
* Visually hidden label for the burger menu button.
|
|
73
|
-
*/
|
|
74
|
-
textMenu;
|
|
75
|
-
/**
|
|
76
|
-
* Visually hidden label for the login widget trigger button.
|
|
77
|
-
*/
|
|
78
|
-
textAccessUserLinks;
|
|
79
|
-
/**
|
|
80
|
-
* Visually hidden label for the user menu.
|
|
81
|
-
*/
|
|
82
|
-
textUserLinks;
|
|
83
|
-
/**
|
|
84
|
-
* Fires when the header has been rendered to the page.
|
|
85
|
-
*/
|
|
86
|
-
headerLoaded;
|
|
87
23
|
constructor() {
|
|
24
|
+
/**
|
|
25
|
+
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
26
|
+
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
27
|
+
*/
|
|
28
|
+
this.activeRoute = 'auto';
|
|
29
|
+
/**
|
|
30
|
+
* Target environment. Choose 'int01' for local testing.
|
|
31
|
+
*/
|
|
32
|
+
this.environment = 'prod';
|
|
33
|
+
/**
|
|
34
|
+
* Makes the header content span the full width on screens larger than 1440px.
|
|
35
|
+
*/
|
|
36
|
+
this.fullWidth = false;
|
|
88
37
|
if (this.project === undefined || this.project === '' || !isValidProjectId(this.project)) {
|
|
89
38
|
throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`);
|
|
90
39
|
}
|
|
@@ -128,7 +77,8 @@ export class PostInternetHeader {
|
|
|
128
77
|
}
|
|
129
78
|
async fetchUserData() {
|
|
130
79
|
try {
|
|
131
|
-
const
|
|
80
|
+
const sessionUrl = getSessionUrl(this.environment);
|
|
81
|
+
const response = await fetch(sessionUrl, {
|
|
132
82
|
credentials: 'include',
|
|
133
83
|
});
|
|
134
84
|
if (response.ok) {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KLP (Swiss Post Login) session API endpoint path
|
|
3
|
+
*/
|
|
4
|
+
export const KLP_SESSION_ENDPOINT = '/v1/session/subscribe';
|
|
5
|
+
/**
|
|
6
|
+
* KLP base URL mapping for different environments
|
|
7
|
+
* Maps each environment to its corresponding KLP authentication service URL
|
|
8
|
+
*
|
|
9
|
+
* Environment | Base URL
|
|
10
|
+
* -- | --
|
|
11
|
+
* PROD | https://n.account.post.ch
|
|
12
|
+
* INT2 | https://n.accountint2.post.ch
|
|
13
|
+
* INT1 | https://n.accountint1.post.ch
|
|
14
|
+
* dev01, dev02, devs1, test | https://n.accountint1.post.ch
|
|
15
|
+
*/
|
|
16
|
+
export const KLP_BASE_URLS = {
|
|
17
|
+
dev01: 'https://n.accountint1.post.ch',
|
|
18
|
+
dev02: 'https://n.accountint1.post.ch',
|
|
19
|
+
devs1: 'https://n.accountint1.post.ch',
|
|
20
|
+
test: 'https://n.accountint1.post.ch',
|
|
21
|
+
int01: 'https://n.accountint1.post.ch',
|
|
22
|
+
int02: 'https://n.accountint2.post.ch',
|
|
23
|
+
prod: 'https://n.account.post.ch',
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Constructs the full session URL for a given environment
|
|
27
|
+
* @param environment - The target environment
|
|
28
|
+
* @returns The full KLP session subscription URL
|
|
29
|
+
*/
|
|
30
|
+
export const getSessionUrl = (environment) => {
|
|
31
|
+
const baseUrl = KLP_BASE_URLS[environment];
|
|
32
|
+
return `${baseUrl}${KLP_SESSION_ENDPOINT}`;
|
|
33
|
+
};
|
|
@@ -56,14 +56,30 @@ export const fetchConfig = async (projectId, environment, lang) => {
|
|
|
56
56
|
if (projectId === 'test') {
|
|
57
57
|
environment = 'int01';
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
let lastError;
|
|
60
|
+
for (const host of getConfigHosts(environment)) {
|
|
61
|
+
const url = generateConfigUrl(projectId, environment, lang, host);
|
|
62
|
+
try {
|
|
63
|
+
const res = await fetch(url);
|
|
64
|
+
if (!res.ok)
|
|
65
|
+
throw new Error(`Request failed with status ${res.status}`);
|
|
66
|
+
return (await res.json());
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
lastError = error;
|
|
70
|
+
console.warn(`Internet Header: API origin "${host}" not yet available! Falling back to the temporary origin until main origin is up and running.`);
|
|
71
|
+
}
|
|
66
72
|
}
|
|
73
|
+
throw new Error(`Internet Header: fetching config failed. ${lastError?.message}`);
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Hosts to try, in order of preference.
|
|
77
|
+
* On prod, www.post.ch is a fallback for the upcoming move away from site.post.ch.
|
|
78
|
+
*/
|
|
79
|
+
const getConfigHosts = (environment) => {
|
|
80
|
+
const isProd = environment.toUpperCase() === 'PROD';
|
|
81
|
+
// remove `site.post.ch` as soon as the header API is available under `www.post.ch`!
|
|
82
|
+
return isProd ? ['https://site.post.ch', 'https://www.post.ch'] : ['https://int.post.ch'];
|
|
67
83
|
};
|
|
68
84
|
/**
|
|
69
85
|
* Generate a URL with all necessary query params to get the configuration.
|
|
@@ -71,16 +87,14 @@ export const fetchConfig = async (projectId, environment, lang) => {
|
|
|
71
87
|
* @param projectId string
|
|
72
88
|
* @param environment int01, int02 or prod
|
|
73
89
|
* @param lang currently selected language
|
|
90
|
+
* @param host base host to request the config from
|
|
74
91
|
* @returns URL pointing to the project config
|
|
75
92
|
*/
|
|
76
|
-
export const generateConfigUrl = (projectId, environment, lang) => {
|
|
93
|
+
export const generateConfigUrl = (projectId, environment, lang, host = getConfigHosts(environment)[0]) => {
|
|
77
94
|
if (projectId === 'test')
|
|
78
95
|
return 'assets/config/test-configuration.json';
|
|
79
96
|
const parsedEnvironment = environment.toUpperCase();
|
|
80
97
|
const parsedLang = lang.toLowerCase();
|
|
81
|
-
const isProd = parsedEnvironment === 'PROD';
|
|
82
|
-
// NOTE: use preview.post.ch for local testing
|
|
83
|
-
const host = `https://${isProd ? '' : 'int.'}preview.post.ch`;
|
|
84
98
|
try {
|
|
85
99
|
const query = new URLSearchParams({
|
|
86
100
|
serviceId: projectId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="10.
|
|
1
|
+
const o="10.7.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,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.
|
|
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.7.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 n}from"./url.js";import{T as c}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 n=t.length-1;n>=0;n--)(s=t[n])&&(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 h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1,this.standalone=!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,slot:"menu"},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([variant=menuitem]) :is(a,span){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}:host([variant=listitem]){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([variant=listitem]) :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([variant=listitem]) :is(button,a):not(:disabled):hover{text-decoration:none}:host([variant=listitem]) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([variant=listitem]) :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([variant=listitem]) :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([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([variant=listitem]) :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([variant=listitem]) :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([variant=listitem]) :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}:host([variant=listitem]) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host([variant=listitem]) :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([variant=listitem])::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([variant=listitem]):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)}:host([variant=listitem]):host([standalone]:not([standalone=false])) :is(a,span){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516],standalone:[516]}]);u([n()],h.prototype,"url",void 0),u([c("string")],h.prototype,"label",void 0),u([c("string")],h.prototype,"description",void 0),u([l(["listitem","menuitem"])],h.prototype,"variant",void 0),u([d(),c("boolean")],h.prototype,"selected",void 0),u([d(),c("boolean")],h.prototype,"standalone",void 0);const m=h,p=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),h);break;case"post-menu-item":customElements.get(s(t))||a()}}))};export{m as PostBreadcrumbItem,p 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 n}from"./url.js";import{T as c}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 n=t.length-1;n>=0;n--)(s=t[n])&&(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 h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.hasSlottedAnchor=!1,this.variant="listitem",this.selected=!1,this.standalone=!1}componentWillLoad(){this.checkSlottedAnchor()}checkSlottedAnchor(){this.hasSlottedAnchor=Array.from(this.host.children).some((t=>"A"===t.tagName))}renderContent(){const t=o("slot",{onSlotchange:()=>this.checkSlottedAnchor()}),e=this.url instanceof URL?this.url.href:this.url;return this.hasSlottedAnchor?t:e?o("a",{href:e,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},t):o("span",null,t)}render(){const t=this.renderContent();return"listitem"===this.variant||this.selected?o(i,{"data-version":r,role:"listitem",slot:this.selected?"selected":void 0},t):o(i,{"data-version":r,slot:"menu"},o("post-menu-item",null,t))}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([variant=menuitem]) :is(a,span),:host([variant=menuitem]) ::slotted(a){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}:host([variant=listitem]){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([variant=listitem]) :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([variant=listitem]) :is(button,a):not(:disabled):hover{text-decoration:none}:host([variant=listitem]) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([variant=listitem]) :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([variant=listitem]) :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([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([variant=listitem]) :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([variant=listitem]) :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([variant=listitem]) :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}:host([variant=listitem]) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host([variant=listitem]) :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([variant=listitem])::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([variant=listitem]):not([standalone]:not([standalone=false])) ::slotted(a){white-space:nowrap}:host([variant=listitem]):host([selected]:not([selected=false])){-ms-flex-negative:0;flex-shrink:0}:host([variant=listitem]):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)}:host([variant=listitem]):host([standalone]:not([standalone=false])){-ms-flex-negative:1;flex-shrink:1}:host([variant=listitem]):host([standalone]:not([standalone=false])) :is(a,span),:host([variant=listitem]):host([standalone]:not([standalone=false])) ::slotted(a){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516],standalone:[516],hasSlottedAnchor:[32]}]);u([n()],h.prototype,"url",void 0),u([c("string")],h.prototype,"label",void 0),u([c("string")],h.prototype,"description",void 0),u([l(["listitem","menuitem"])],h.prototype,"variant",void 0),u([d(),c("boolean")],h.prototype,"selected",void 0),u([d(),c("boolean")],h.prototype,"standalone",void 0);const m=h,p=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),h);break;case"post-menu-item":customElements.get(s(t))||a()}}))};export{m as PostBreadcrumbItem,p as defineCustomElement}
|