@swisspost/internet-header 10.8.0 → 10.9.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-DV0YNR6p.js → package-B_v8dSM6.js} +1 -1
- package/dist/cjs/{package-DAEQGHsE.js → package-kgRYEtTJ.js} +1 -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 +1 -1
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +6 -5
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/post-header.cjs.entry.js +71 -10
- package/dist/cjs/post-icon.cjs.entry.js +2 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- 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 +32 -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 +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +12 -7
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +9 -3
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/assets/config/test-configuration.json +32 -12
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +11 -6
- package/dist/collection/components/post-internet-header/post-internet-header.js +27 -2
- package/dist/collection/services/alternate-link.service.js +2 -1
- package/dist/components/package.js +1 -1
- package/dist/components/package2.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-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 +30 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BdiQsTQm.js → package-CAL337jJ.js} +1 -1
- package/dist/esm/{package--a_K3g1E.js → package-h2MHUaQn.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 +1 -1
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton.entry.js +1 -1
- package/dist/esm/post-date-picker.entry.js +6 -5
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-header.entry.js +71 -10
- package/dist/esm/post-icon.entry.js +2 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/esm/post-menu-item.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- 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 +32 -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 +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +12 -7
- package/dist/esm/swisspost-internet-header.entry.js +9 -3
- 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-CAL337jJ.js +1 -0
- package/dist/esm-es5/{package--a_K3g1E.js → package-h2MHUaQn.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/assets/config/test-configuration.json +32 -12
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-3124582e.system.entry.js → p-01bad942.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6c284cd6.system.entry.js → p-02b29b77.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d94cb9d.entry.js → p-03103f05.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1d145a3d.entry.js → p-0589e5c6.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-07c129bc.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-45398826.entry.js → p-0bbb5c31.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0bedd5e7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-851c2112.system.entry.js → p-0c59b247.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0df8cfb2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a1237171.system.entry.js → p-1104f44a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45d989e5.system.entry.js → p-155bc3d9.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3995eead.system.entry.js → p-17c93eba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d390eac9.system.entry.js → p-180b541b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5aa3e212.system.entry.js → p-185db23a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f78ac8af.system.entry.js → p-1868ed70.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5550933f.entry.js → p-1a128c9a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-94c7624f.entry.js → p-23cfa957.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-94aae5c3.entry.js → p-25d097c2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1df3d147.entry.js → p-2bee008a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-148cfacf.entry.js → p-330495e7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-61e37660.entry.js → p-386284d7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7a8d9175.system.entry.js → p-38b49f7e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8ff4691a.entry.js → p-3bd877a7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a1ed3c1d.system.entry.js → p-3d2f922d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bf861c95.entry.js → p-3f0368c7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-80ce5ec8.entry.js → p-4c742645.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5a929d5c.entry.js → p-501e3ecd.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-5a9034d3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-dcc3e62f.entry.js → p-5c7fd6f4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5ac46ce3.system.entry.js → p-5ceb7a51.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-5d1b5b3a.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f2794080.system.entry.js → p-5fe96d1a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-174e2b92.entry.js → p-64be5876.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dae00825.system.entry.js → p-65c27c7e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d28a58ec.entry.js → p-6aed8ac4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-629dfdba.entry.js → p-6cd8c6b0.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6dbd75fe.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-6e842506.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fb0e4425.system.entry.js → p-70c79c55.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-785ab999.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-3ef5a7c0.entry.js → p-7f46e6e7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-62b7473b.entry.js → p-7f8ba8b5.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-de1eae9a.entry.js → p-80f1da9d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4466ee14.entry.js → p-8173229d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-62a14cc2.system.entry.js → p-822603ec.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-83120625.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-925203fb.system.entry.js → p-8780dd5c.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-57b73dd7.entry.js → p-87c738a0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1b2b7af5.entry.js → p-8a3118d3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2d56ef1f.entry.js → p-8a4141ba.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4b39fa0b.system.entry.js → p-8ce359ad.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8ed8d9c8.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ac9d7b3f.system.entry.js → p-9183ebfa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a00eb4a0.entry.js → p-96402eea.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-74b8b73a.system.entry.js → p-9883a70b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ef4aec35.system.entry.js → p-99b5e4db.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a12be1fd.system.entry.js → p-99c241aa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-745c3c76.system.entry.js → p-9b0e0fe8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9e0f1730.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-CAL337jJ.js +1 -0
- package/dist/swisspost-internet-header/{p-BXoqlxOG.js → p-CdUTW0zV.js} +1 -1
- package/dist/swisspost-internet-header/{p-B1oFB_zk.system.js → p-CgnycKPl.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CYBchhbg.system.js → p-DaxTM5LF.system.js} +1 -1
- package/dist/swisspost-internet-header/p-R-F1E1j0.system.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-a4bd564c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a9045c62.system.entry.js → p-a706901f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-22da79ea.entry.js → p-a7e33875.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-36232387.system.entry.js → p-aac0bcd3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d8384d86.system.entry.js → p-b00a20d4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-b3aef8a6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c36c9d88.entry.js → p-b95f2edd.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-381ac502.entry.js → p-bff994e9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0c6839cd.entry.js → p-c1dfc933.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bc0fcd50.entry.js → p-c5a5c0d6.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-518f5952.entry.js → p-c6f3e4b0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8b90f7d2.system.entry.js → p-cc2fc16f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d7df13be.system.entry.js → p-ce5265e7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fd8106f1.system.entry.js → p-cfe2d854.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6f0c2a5c.system.entry.js → p-d2fd6e63.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4ab5590e.system.entry.js → p-d51872e2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fea21512.entry.js → p-d94d5319.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bc30850c.system.entry.js → p-daf5c078.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-dfe34af2.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a4bfe46c.entry.js → p-e5d55394.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-26ac0464.entry.js → p-e5fd9f44.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1617517b.entry.js → p-e6c6a342.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-79dc7e1b.system.entry.js → p-ee0ad3ba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f953da2.system.entry.js → p-fbb944aa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9ac136f3.system.entry.js → p-fe677b2a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-footer/post-internet-footer.d.ts +1 -0
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +4 -0
- package/dist/types/components.d.ts +11 -0
- package/package.json +19 -19
- package/readme.md +1 -1
- package/dist/esm-es5/package-BdiQsTQm.js +0 -1
- package/dist/swisspost-internet-header/p-1ab10b94.entry.js +0 -1
- package/dist/swisspost-internet-header/p-238c919d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3afac939.entry.js +0 -1
- package/dist/swisspost-internet-header/p-42fe4c65.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-49c132a1.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-546f0429.entry.js +0 -1
- package/dist/swisspost-internet-header/p-576e3b55.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5e112c81.entry.js +0 -1
- package/dist/swisspost-internet-header/p-65fb1a64.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-BdiQsTQm.js +0 -1
- package/dist/swisspost-internet-header/p-Ctf1S46w.system.js +0 -1
- package/dist/swisspost-internet-header/p-a21c305f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-cd3f5447.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d1eab2a3.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d52b2e2e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f8f292cf.system.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,i){function r(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function u(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):r(t.value).then(s,u)}c((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(n){return c([t,n])}}function c(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(e=0)),e)try{if(i=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];r=0}finally{i=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-iSGRM5O1.system.js"],(function(t){"use strict";var n,e,i,r,o,s,u;return{setters:[function(t){n=t.r;e=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){u=t.E}],execute:function(){var c=function(){return"post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}post-popovercontainer::part(post-popovercontainer-content){-ms-flex-direction:column;flex-direction:column}"};var f=undefined&&undefined.__decorate||function(t,n,e,i){var r=arguments.length,o=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,n,e,i);else for(var u=t.length-1;u>=0;u--)if(s=t[u])o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o;return r>3&&o&&Object.defineProperty(n,e,o),o};var a=t("post_listbox",function(){function t(t){var i=this;n(this,t);this.postOptionActive=e(this,"postOptionActive");this.highlightedIndex=-1;this.visibleOptions=[];this.diacriticPattern=/[\u0300-\u036F]/u;this.registerOptions=function(){i.visibleOptions=i.options};this.updateSelection=function(t){i.options.forEach((function(n){n.selected=n.value===t;n.highlighted=false}));i.highlightedIndex=-1;i.clearActive()};this.clearActive=function(){i.highlightedIndex=-1;i.postOptionActive.emit(null)};this.normalizeText=function(t){return t.trim().normalize("NFD").replace(i.diacriticPattern,"").toLocaleLowerCase()};this.resetFilter=function(){i.visibleOptions=i.options;i.options.forEach((function(t){t.hidden=false;t.highlighted=false}))}}Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.host.querySelectorAll("post-listbox-option"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inputElement",{get:function(){var t=this.host.closest("post-autocomplete");if(!t){t=document.querySelector('post-autocomplete[listbox="'.concat(this.host.id,'"]'))}return t===null||t===void 0?void 0:t.querySelector("input")},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){this.registerOptions()};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;var n;return __generator(this,(function(e){t=this.inputElement;if(t){(n=this.popoverContainer)===null||n===void 0?void 0:n.show(t)}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){(t=this.popoverContainer)===null||t===void 0?void 0:t.hide();return[2]}))}))};t.prototype.filter=function(t){return __awaiter(this,void 0,void 0,(function(){var n;var e=this;return __generator(this,(function(i){n=this.normalizeText(t);if(n){this.visibleOptions=this.options.filter((function(t){var i=e.normalizeText(t.textContent);var r=e.normalizeText(t.value);var o=r.includes(n)||i.includes(n);t.hidden=!o;return o}))}else{this.resetFilter()}this.clearActive();return[2]}))}))};t.prototype.clearSelection=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateSelection();return[2]}))}))};t.prototype.navigate=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){if(this.visibleOptions.length===0)return[2];if(this.highlightedIndex>=0){this.visibleOptions[this.highlightedIndex].highlighted=false}switch(t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length;break}n=this.visibleOptions[this.highlightedIndex];n.scrollIntoView({behavior:"smooth",block:"end"});n.highlighted=true;this.postOptionActive.emit(n.id);return[2]}))}))};t.prototype.selectActive=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){if(this.highlightedIndex>=0){t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value);this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:true,detail:t.value}))}return[2]}))}))};t.prototype.optionClicked=function(t){this.updateSelection(t.detail)};t.prototype.render=function(){var t=this;return i(r,{key:"845f11b5c19b41226884c26a7e3859af21587e26","data-version":s,role:"listbox"},i("post-popovercontainer",{key:"21b107869f854ddcf7915b67060cc33ef7c48af3",placement:"bottom-start",ref:function(n){return t.popoverContainer=n}},i("slot",{key:"2e7d6af9eb461c2f5110f0785ca656fa6b96f72e",name:"blank-slate"}),i("slot",{key:"3bef18fa1cc03f93335e99cb85f4f3d2b0461c33"})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u("post-listbox-option")],a.prototype,"optionClicked",null);a.style=c()}}}));
|
package/dist/swisspost-internet-header/{p-925203fb.system.entry.js → p-8780dd5c.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,o,i){function n(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function c(e){try{s(i.next(e))}catch(e){r(e)}}function a(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?o(e.value):n(e.value).then(c,a)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(t){return s([e,t])}}function s(a){if(i)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(o=0)),o)try{if(i=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e];n=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,i){function n(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function c(e){try{s(i.next(e))}catch(e){r(e)}}function a(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?o(e.value):n(e.value).then(c,a)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(t){return s([e,t])}}function s(a){if(i)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(o=0)),o)try{if(i=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e];n=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-CHIhqOmO.system.js","./p-CiwQnVr3.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,o,i,n,r,c,a,s;return{setters:[function(e){t=e.r;o=e.c;i=e.h;n=e.H;r=e.g},function(e){c=e.v},function(e){a=e.f},function(e){s=e.O},null,null],execute:function(){var d=["success","warning","error","info"];var f=function(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);-webkit-padding-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{--post-banner-focus-room:calc( var(--post-device-border-width-focus) + var(--post-device-spacing-padding-2) );display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto;padding:var(--post-banner-focus-room);margin:calc(-1*var(--post-banner-focus-room))}.actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-webkit-margin-before:var(--post-device-spacing-padding-block-10);margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'};var l=undefined&&undefined.__decorate||function(e,t,o,i){var n=arguments.length,r=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)if(c=e[a])r=(n<3?c(r):n>3?c(t,o,r):c(t,o))||r;return n>3&&r&&Object.defineProperty(t,o,r),r};var p=e("post_banner",function(){function e(e){t(this,e);this.postDismissed=o(this,"postDismissed");this.mutationObserver=new MutationObserver(this.checkContent.bind(this));this.hasActions=false;this.type="info"}e.prototype.connectedCallback=function(){this.mutationObserver.observe(this.host,{childList:true})};e.prototype.componentDidLoad=function(){this.checkContent()};e.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect()};e.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=a(this.host,"out");return[4,e.finished];case 1:t.sent();this.postDismissed.emit();this.host.remove();return[2]}}))}))};e.prototype.checkContent=function(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0};e.prototype.render=function(){return i(n,{key:"890eea914f07f31f64c9e1b01fca94e824a019bc","data-version":c,role:"alert","data-color-scheme":"light"},i("slot",{key:"d4ac9c3714979cde7bba7554fbe1886d2cf75701",name:"close-button"}),i("div",{key:"a097570719b709a3b67aa7152701edbf1174ace0",class:"post-banner-content"},i("slot",{key:"df12b0e63ac4cf4152c196eaad071774be4d7b88",name:"heading"}),i("slot",{key:"a5e376800525119dc47815b9977936fa3966e087"}),this.hasActions&&i("div",{key:"6a0cc7f82873bcfde5109ed9e6bfe8255e30b19c",class:"actions"},i("slot",{key:"11b1d289705cb9d1d96b20b4fcea2b923bfd184a",name:"actions"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l([s(d)],p.prototype,"type",void 0);p.style=f()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i}from"./p-h3opCZqH.js";import{v as o}from"./p-BdiQsTQm.js";const r=class{constructor(t){e(this,t)}render(){return t(i,{key:"f41ae27d8de89912b3aa34d9c89f5ec69f3df301","data-version":o,role:"listitem"},t("span",{key:"00a0dd2eb3fb020e49c5782245e1f3e72c77e780",class:"stepper-item-content"},t("span",{key:"bc9932083d295b92db24ddd22cb18a755db5ad11",class:"step-hidden-label visually-hidden"}),t("span",{key:"efe2d809c82c1d7de9e0cdf4e52b924943afa0bf",class:"label"},t("slot",{key:"47aceca3fc331ef91da60674dbc2af5ea7e76ec8"}))))}};r.style=':host{grid-row:1;position:relative;-webkit-padding-start:0;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){-webkit-padding-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){-webkit-padding-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:-20px;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-margin-after:var(--post-device-spacing-gap-1);margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{-webkit-margin-start:auto;margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;-webkit-mask-image:var(--post-icon-checkmark-solid);mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vc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0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{-webkit-mask-image:var(--post-icon-edit-solid);mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI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C0zLjUzIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}:host([aria-current=step]:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}@media screen and (max-width: 779.98px){:host{-ms-flex-positive:1;flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){-ms-flex:0 0 32px;flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{r as post_stepper_item}
|
|
1
|
+
import{r as e,h as t,H as i}from"./p-h3opCZqH.js";import{v as o}from"./p-CAL337jJ.js";const r=class{constructor(t){e(this,t)}render(){return t(i,{key:"53b052a2b68a93df9fda7f80f23d602d8a8efc56","data-version":o,role:"listitem"},t("span",{key:"e06841841e7fad42ff9de3e39dadf5fab96b9952",class:"stepper-item-content"},t("span",{key:"f934ef19fbdd65111b7cf561dcc9297122d62595",class:"step-hidden-label visually-hidden"}),t("span",{key:"213db918f5ab854225974678c50176bb565ac2b1",class:"label"},t("slot",{key:"d8e067ea304700e37edb996a4c715d41e209b8d8"}))))}};r.style=':host{grid-row:1;position:relative;-webkit-padding-start:0;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){-webkit-padding-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){-webkit-padding-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:-20px;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-margin-after:var(--post-device-spacing-gap-1);margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{-webkit-margin-start:auto;margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;-webkit-mask-image:var(--post-icon-checkmark-solid);mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xNi4zNSAxLjczeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJtMTEuMTggMTguODgtNS4xNC01LjUxYTEuNSAxLjUgMCAwIDEgLjA3LTIuMTJjLjYtLjU2IDEuNTUtLjUzIDIuMTIuMDdsMi41NCAyLjcyIDQuODQtNy4zM2MuNDYtLjY5IDEuMzktLjg4IDIuMDgtLjQzLjY5LjQ2Ljg4IDEuMzkuNDMgMi4wOGwtNi45NCAxMC41MVoiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTE0Ljg3IDI0LjgxIDguMjMgMTcuN2MtLjY2LS43MS0uNjItMS44MS4wOC0yLjQ3LjcxLS42NiAxLjgxLS42MiAyLjQ3LjA4bDMuNjEgMy44NiA2LjYyLTEwLjA0Yy41My0uODEgMS42Mi0xLjAzIDIuNDItLjUuODEuNTMgMS4wMyAxLjYyLjUgMi40MkwxNC44NiAyNC44WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPS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mUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{-webkit-mask-image:var(--post-icon-edit-solid);mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2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dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}:host([aria-current=step]:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}@media screen and (max-width: 779.98px){:host{-ms-flex-positive:1;flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){-ms-flex:0 0 32px;flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{r as post_stepper_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r,H as t,g as i}from"./p-h3opCZqH.js";import{r as o,c as s,g as a}from"./p-vAzHgwTd.js";import{T as n}from"./p-DZMUeI8H.js";function c(e,r,t){const i=s({priority:1,blocking:!1,run(i,o){const{value:s,showError:n}=a(i,o);if("number"!=typeof s)return!0;const c=function(e,r){const t="string"==typeof r?e[r]:r;return"number"==typeof t?t:null}(i,e);if(null===c){if("string"==typeof e){const r=typeof i[e];if("number"!==r)return n(`references property "${e}" which must be a number but got ${r}`),!1}return!0}const u=r.include??t.includeDefault;if(!t.compare(s,c,u)){const r=String("string"==typeof e?c:e);return n(`must be ${t.formatExpectation(r,u)}`),!1}return!0}});return function(r,t){"string"==typeof e&&o(r,e,t),i(r,t)}}function u(e,r={}){return c(e,{include:r.includeMin},{includeDefault:!1,compare:(e,r,t)=>t?e>=r:e>r,formatExpectation:(e,r)=>r?`greater than or equal to "${e}"`:`greater than "${e}"`})}var l=function(e,r,t,i){var o,s=arguments.length,a=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(r,t,a):o(r,t))||a);return s>3&&a&&Object.defineProperty(r,t,a),a};const p=class{constructor(r){e(this,r),this.min=0,this.max=100}getEffectiveMin(){return Number.isFinite(this.min)?this.min:0}getEffectiveMax(){return Number.isFinite(this.max)&&this.max>this.getEffectiveMin()?this.max:100}getEffectiveValue(e,r){return void 0===this.value||!Number.isFinite(this.value)||this.value<e||this.value>r?e:this.value}render(){const e=this.getEffectiveMin(),i=this.getEffectiveMax(),o=this.getEffectiveValue(e,i);return r(t,{key:"
|
|
1
|
+
import{r as e,h as r,H as t,g as i}from"./p-h3opCZqH.js";import{r as o,c as s,g as a}from"./p-vAzHgwTd.js";import{T as n}from"./p-DZMUeI8H.js";function c(e,r,t){const i=s({priority:1,blocking:!1,run(i,o){const{value:s,showError:n}=a(i,o);if("number"!=typeof s)return!0;const c=function(e,r){const t="string"==typeof r?e[r]:r;return"number"==typeof t?t:null}(i,e);if(null===c){if("string"==typeof e){const r=typeof i[e];if("number"!==r)return n(`references property "${e}" which must be a number but got ${r}`),!1}return!0}const u=r.include??t.includeDefault;if(!t.compare(s,c,u)){const r=String("string"==typeof e?c:e);return n(`must be ${t.formatExpectation(r,u)}`),!1}return!0}});return function(r,t){"string"==typeof e&&o(r,e,t),i(r,t)}}function u(e,r={}){return c(e,{include:r.includeMin},{includeDefault:!1,compare:(e,r,t)=>t?e>=r:e>r,formatExpectation:(e,r)=>r?`greater than or equal to "${e}"`:`greater than "${e}"`})}var l=function(e,r,t,i){var o,s=arguments.length,a=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(r,t,a):o(r,t))||a);return s>3&&a&&Object.defineProperty(r,t,a),a};const p=class{constructor(r){e(this,r),this.min=0,this.max=100}getEffectiveMin(){return Number.isFinite(this.min)?this.min:0}getEffectiveMax(){return Number.isFinite(this.max)&&this.max>this.getEffectiveMin()?this.max:100}getEffectiveValue(e,r){return void 0===this.value||!Number.isFinite(this.value)||this.value<e||this.value>r?e:this.value}render(){const e=this.getEffectiveMin(),i=this.getEffectiveMax(),o=this.getEffectiveValue(e,i);return r(t,{key:"26bdbb5219393e8b44e2fe5395d8a4cd8aa7e18a",role:"progressbar","aria-valuenow":o,"aria-valuemin":e,"aria-valuemax":i},r("div",{key:"65b81479fac7aa6024556ef6589064f997f4394e",class:"progress-value",style:{"--post-progressbar-value":(o-e)/(i-e)*100+"%"}}))}get host(){return i(this)}};l([n("number")],p.prototype,"min",void 0),l([n("number"),u("min")],p.prototype,"max",void 0),l([n("number"),u("min"),function(e,r={}){return c("max",{include:r.includeMax},{includeDefault:!0,compare:(e,r,t)=>t?e<=r:e<r,formatExpectation:(e,r)=>r?`less than or equal to "${e}"`:`less than "${e}"`})}()],p.prototype,"value",void 0),p.style=":host{display:block;position:relative;height:var(--post-device-sizing-interactive-progressbar-indicator);border-radius:var(--post-device-border-radius-round);-webkit-box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;overflow:hidden}.progress-value{position:absolute;inset-block:0;inset-inline-start:0;width:var(--post-progressbar-value, 0);border-radius:var(--post-device-border-radius-round);background-color:var(--post-progressbar-status-color, var(--post-scheme-color-interactive-primary-enabled-bg2));-webkit-transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border:1px solid Highlight}.progress-value{background-color:Highlight}}";export{p as post_progressbar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-CAL337jJ.js";import{g as a}from"./p-08F-DB-d.js";import{R as n}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import{E as h}from"./p-BEcxHjuM.js";import"./p-vAzHgwTd.js";var c=function(t,s,i,e){var o,a=arguments.length,n=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(s,i,n):o(s,i))||n);return a>3&&n&&Object.defineProperty(s,i,n),n};const d=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.toggleSideNavigation=this.toggleSideNavigation.bind(this),this.handlePostToggle=this.handlePostToggle.bind(this)}connectedCallback(){this.root=a(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-side-navigation-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect(),this.root.removeEventListener("postToggle",this.handlePostToggle),this.trigger?.removeEventListener("click",this.toggleSideNavigation)}get sideNavigation(){const t=this.root.getElementById(this.for);return t&&"post-side-navigation"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger&&this.trigger.removeEventListener("click",this.toggleSideNavigation),this.trigger=t,this.trigger.addEventListener("click",this.toggleSideNavigation),this.updateAriaAttributes())}updateAriaAttributes(){if(!this.trigger)return;const t=this.trigger.getAttribute("aria-controls");t?.includes(this.for)||this.trigger.setAttribute("aria-controls",t?`${t} ${this.for}`:this.for),this.trigger.setAttribute("aria-expanded","false")}handlePostToggle(t){this.trigger?.setAttribute("aria-expanded",`${t.detail}`)}async update(){this.updateAriaAttributes()}async toggleSideNavigation(){await(this.sideNavigation?.toggle())}render(){return s(i,{key:"2822a6c7246da96de537eff3e3fbf5a2db400547","data-version":o},s("slot",{key:"0bb02d90c7916a4dbfe6dd7fc0f4325509939a80"}))}get host(){return e(this)}};c([n(),r("string")],d.prototype,"for",void 0),c([h("post-side-navigation",{ignoreNestedComponents:!1})],d.prototype,"handlePostToggle",null),d.style=":host{display:inline-block}@media screen and (min-width: 1024px){:host{display:none}}";export{d as post_side_navigation_trigger}
|
package/dist/swisspost-internet-header/{p-4b39fa0b.system.entry.js → p-8ce359ad.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,u,c;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){u=t.R},function(t){c=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"7811d666f249ead72768adaf5bdc92e47b447d8a","data-version":r},n("slot",{key:"68e56c43ebec2abffbf049647ac08757dadf22f9",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u(),c("string")],v.prototype,"for",void 0);v.style=h()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as n,g as i}from"./p-h3opCZqH.js";import{v as e}from"./p-CAL337jJ.js";import{O as o}from"./p-Drxf8XVU.js";import{T as r}from"./p-DZMUeI8H.js";import{R as s}from"./p-DvaRK2lz.js";import"./p-vAzHgwTd.js";var m=function(t,a,n,i){var e,o=arguments.length,r=o<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,a,n,i);else for(var s=t.length-1;s>=0;s--)(e=t[s])&&(r=(o<3?e(r):o>3?e(a,n,r):e(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};const f=`https://unpkg.com/@swisspost/design-system-icons@${e}/public/post-icons/`,c=class{constructor(a){t(this,a),this.flipH=!1,this.flipV=!1}getUrl(){const t=`${this.name??this.host.getAttribute("name")}.svg`;if(this.url?.startsWith("data:image/"))return this.url;if(this.url)return this.url;const a=t=>/^https?:\/\//.test(t),n=t=>t&&!t.endsWith("/")?`${t}/`:t,i=t=>t.replaceAll(/([^:])\/\//g,"$1/"),e=globalThis.location.origin,o=document.querySelector("base[href]")?.getAttribute("href")||"";let r="";{const t=document.querySelector('meta[name="design-system-settings"]');r=t?.getAttribute("data-post-icon-base")||""}const s=t=>{const i=n(o),r=n(t);return a(i)?`${i}${r}`:`${e}${i}${r}`};let m;return this.base?(m=a(this.base)?`${n(this.base)}${t}`:`${s(this.base)}${t}`,i(m)):r?(m=a(r)?`${n(r)}${t}`:`${s(r)}${t}`,i(m)):i(`${f}${t}`)}getStyles(){const t=this.getUrl();return Object.fromEntries(Object.entries({"mask-image":`url('${t}')`,transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,a])=>null!==a)))}render(){return a(n,{key:"2d49a76d0f02832caf330d3419aea80f0aefb4d1","data-version":e},a("span",{key:"bf5ee6b7fc3e7acf2b23d7787928f59b49ce73d5",style:this.getStyles()}))}get host(){return i(this)}};m([o(["cylon","cylon-vertical","spin","spin-reverse","fade","throb"])],c.prototype,"animation",void 0),m([r("string")],c.prototype,"base",void 0),m([s(),r("string")],c.prototype,"name",void 0),m([r("number")],c.prototype,"rotate",void 0),m([r("number")],c.prototype,"scale",void 0),c.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){-webkit-transform-origin:center;transform-origin:center}:host([animation=cylon]){-webkit-animation:icon-animation-cylon .75s ease-in-out infinite alternate;animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){-webkit-animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){-webkit-animation:icon-animation-spin 2s linear infinite normal;animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){-webkit-animation:icon-animation-fade .75s ease-in-out infinite alternate;animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){-webkit-animation:icon-animation-throb .75s ease-in-out infinite alternate;animation:icon-animation-throb .75s ease-in-out infinite alternate}@-webkit-keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@-webkit-keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@-webkit-keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@-webkit-keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}";export{c as post_icon}
|
package/dist/swisspost-internet-header/{p-ac9d7b3f.system.entry.js → p-9183ebfa.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i["throw"](t))}catch(t){r(t)}}function u(t){t.done?n(t.value):o(t.value).then(s,a)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i["throw"](t))}catch(t){r(t)}}function u(t){t.done?n(t.value):o(t.value).then(s,a)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-D1A3ltXC.system.js","./p-BVux4d1J.system.js","./p-BIAUtR0M.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-CiwQnVr3.system.js","./p-qFxyG4GI.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,n,i,o,r,s,a,u,l,c,f,d;return{setters:[function(t){e=t.r;n=t.c;i=t.h;o=t.H;r=t.g},function(t){s=t.v},function(t){a=t.b},function(t){u=t.i},function(t){l=t.a},function(t){c=t.R},function(t){f=t.T},function(t){d=t.O},null,null],execute:function(){var v=["large","small"];var h=function(){return":host{display:-ms-flexbox;display:flex}:host,:host dialog{background-color:var(--post-scheme-color-palette-bg-2);-webkit-border-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke4);border-inline-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke4)}:host dialog{overflow:visible;width:var(--post-core-dimension-296);bottom:auto;right:auto;border:none;padding:0;max-height:100dvh;-webkit-transform:translateX(-100%);transform:translateX(-100%);-webkit-transition-property:overlay,display,-webkit-transform;transition-property:overlay,display,-webkit-transform;transition-property:transform,overlay,display;transition-property:transform,overlay,display,-webkit-transform;transition-behavior:allow-discrete;-webkit-transition-duration:350ms;transition-duration:350ms;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host dialog:focus,:host dialog:focus-visible{outline:none}:host dialog[open]{-webkit-transform:translateX(0);transform:translateX(0)}@starting-style{:host dialog[open]{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@media (prefers-reduced-motion: reduce){:host dialog{-webkit-transition:none;transition:none}}:host post-closebutton{-webkit-transform:translate(50%, 0);transform:translate(50%, 0)}"};var p=undefined&&undefined.__decorate||function(t,e,n,i){var o=arguments.length,r=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r;return o>3&&r&&Object.defineProperty(e,n,r),r};var b=t("post_side_navigation",function(){function t(t){var i=this;e(this,t);this.postToggle=n(this,"postToggle");this.device=a.get("device");this.size="large";this.breakpointChange=function(t){var e;i.device=t.detail;if(i.device==="desktop"){if((e=i.dialog)===null||e===void 0?void 0:e.open){i.dialog.close()}i.postToggle.emit(false)}};this.handleKeyDown=function(t){var e,n;if(t.key!=="Escape")return;var o=i.collapsible;if(!o||o.collapsed)return;t.preventDefault();t.stopPropagation();o.toggle(false);(n=(e=i.collapsibleTrigger)===null||e===void 0?void 0:e.querySelector("button"))===null||n===void 0?void 0:n.focus()};this.handleDialogClick=function(t){var e=t.composedPath();if(e.some((function(t){return t instanceof HTMLAnchorElement}))){i.dialog.close()}}}t.prototype.connectedCallback=function(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange);this.host.addEventListener("keydown",this.handleKeyDown)};t.prototype.disconnectedCallback=function(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange);this.host.removeEventListener("keydown",this.handleKeyDown)};Object.defineProperty(t.prototype,"dialog",{get:function(){var t;return(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector("dialog")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"collapsibleTrigger",{get:function(){var t,e;return(e=(t=document.activeElement)===null||t===void 0?void 0:t.closest("post-collapsible-trigger"))!==null&&e!==void 0?e:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"collapsible",{get:function(){var t,e;return(e=(t=this.collapsibleTrigger)===null||t===void 0?void 0:t.querySelector(":scope > post-collapsible"))!==null&&e!==void 0?e:null},enumerable:false,configurable:true});t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.device==="desktop")return[2];return[2,((t=this.dialog)===null||t===void 0?void 0:t.open)?this.hide():this.show()]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.device==="desktop")return[2];t=u(document.activeElement);this.dialog.showModal();this.postToggle.emit(true);if(t)this.focusNav();return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.device==="desktop")return[2];this.dialog.close();return[2]}))}))};t.prototype.focusNav=function(){var t;var e=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector("slot");var n=e===null||e===void 0?void 0:e.assignedElements({flatten:true})[0];if(!n)return;var i=l(n)[0];i===null||i===void 0?void 0:i.focus()};t.prototype.renderNav=function(){return i("slot",null)};t.prototype.renderDialog=function(){var t=this;return i("dialog",{onClick:this.handleDialogClick,onClose:function(){t.postToggle.emit(false)}},i("slot",null),i("post-closebutton",{onClick:function(){return t.hide()}},this.textClose))};t.prototype.render=function(){return i(o,{key:"d323d8990ed9abfb5ca6c15daa70d49dabd496f9","data-version":s},this.device==="desktop"?this.renderNav():this.renderDialog())};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());p([c(),f("string")],b.prototype,"textClose",void 0);p([d(v)],b.prototype,"size",void 0);b.style=h()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as e,g as s}from"./p-h3opCZqH.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,h as i,H as e,g as s}from"./p-h3opCZqH.js";import{v as a}from"./p-CAL337jJ.js";import{P as r}from"./p-BBIc4yKQ.js";import{R as o}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var c=function(t,i,e,s){var a,r=arguments.length,o=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(r<3?a(o):r>3?a(i,e,o):a(i,e))||o);return r>3&&o&&Object.defineProperty(i,e,o),o};const d=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var l;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials"}(l||(l={}));const h=class{constructor(i){t(this,i),this.slottedImage=null,this.avatarType=l.Initials,this.imageUrl="",this.imageAlt="",this.showSlottedImage=()=>{this.slottedImage&&(this.slottedImage.style.display="block",this.avatarType=l.Slotted)},this.hideSlottedImage=()=>{this.slottedImage&&(this.slottedImage.style.display="none"),this.avatarType=l.Initials}}updateEmail(){this.getAvatarImage()}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?(this.imageUrl="",this.updateSlottedImageVisibility()):(this.imageUrl="",this.email?.match(d)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=l.Initials))}async getImageByProp(t,i,e=l.Image){if(!t)return!1;try{const s=await i(t);return e===l.Image&&(this.imageUrl=s,this.imageAlt=`${[this.firstname,this.lastname].filter(Boolean).join(" ")} avatar`),this.avatarType=e,!0}catch(t){return console.info("Loading avatar image failed.",t),!1}}async fetchImageByEmail(t){return await this.loadImage(await async function(t){return`https://www.gravatar.com/avatar/${await async function(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}(t.trim().toLowerCase())}?s=80&d=404&r=g`}(t))}updateSlottedImageVisibility(){this.slottedImage?.complete&&this.slottedImage.naturalWidth>0?this.showSlottedImage():this.hideSlottedImage()}loadImage(t){return new Promise(((i,e)=>{const s=new Image;s.addEventListener("load",(()=>i(t)),{once:!0}),s.addEventListener("error",(()=>e(new Error(`Could not load ${t}`))),{once:!0}),s.src=t}))}slotChanged(t){const i=t.target.assignedElements({flatten:!0}).find((t=>t instanceof HTMLImageElement));i instanceof HTMLImageElement?this.observeSlottedImage(i):(this.disconnectSlottedImage(),this.slottedImage=null,this.getAvatarImage())}observeSlottedImage(t){this.disconnectSlottedImage(),this.slottedImage=t,t.addEventListener("load",this.showSlottedImage),t.addEventListener("error",this.hideSlottedImage),this.slottedImageObserver=new MutationObserver((()=>this.getAvatarImage())),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]}),this.updateSlottedImageVisibility()}disconnectSlottedImage(){this.slottedImageObserver?.disconnect(),this.slottedImage&&(this.slottedImage.removeEventListener("load",this.showSlottedImage),this.slottedImage.removeEventListener("error",this.hideSlottedImage))}componentWillLoad(){this.avatarType=l.Initials,this.getAvatarImage()}disconnectedCallback(){this.disconnectSlottedImage()}render(){const t=[this.firstname,this.lastname].filter((t=>"string"==typeof t)).map((t=>t.trim())),s=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"ccba82ea3d543a8fad108ea7a8dd30bf6715c132","data-version":a},i("span",{key:"5e7b58d3eeb6bdf49c8a81f36b4d7fffa5b925cc"},i("slot",{key:"7b91589fbccdef4e29e3f5f3f58607887adac559",onSlotchange:t=>this.slotChanged(t)})),this.avatarType===l.Image&&i("img",{key:"65e9e2945592323e54e08d8152e7571222ad728d",src:this.imageUrl,alt:this.imageAlt}),this.avatarType===l.Initials&&i("span",{key:"d4305127e6c77239ab4bf3226aacc153277732cc",class:"initials"},s,i("span",{key:"5e681cb3205708fc42706d20c5d37a097f290898"},this.description??r)))}get host(){return s(this)}static get watchers(){return{email:[{updateEmail:0}]}}};c([o(),n("string")],h.prototype,"firstname",void 0),c([n("string")],h.prototype,"lastname",void 0),c([r(d)],h.prototype,"email",void 0),c([n("string")],h.prototype,"description",void 0),h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:-ms-inline-flexbox;display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
|
package/dist/swisspost-internet-header/{p-74b8b73a.system.entry.js → p-9883a70b.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-DoVr7uzg.system.js","./p-BMZcKRx0.system.js","./p-Bzy18UgU.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,s,o,r,u;return{setters:[function(t){i=t.r;e=t.h;n=t.H;s=t.g},function(t){o=t.v},function(t){r=t.i},function(t){u=t.T},null,null],execute:function(){var c=function(){return":host{cursor:pointer}"};var h=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var l=t("post_popover_trigger",function(){function t(t){var e=this;i(this,t);this.ariaExpanded=false;this.popoverOpen=false;this.handleKeyDown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.handleToggle()}};this.boundHandleToggle=this.handleToggle.bind(this);this.boundHandleKeyDown=this.handleKeyDown.bind(this);this.boundHandlePostToggle=function(t){e.popoverOpen=t.detail.isOpen;e.focusTrigger()}}t.prototype.syncAriaExpanded=function(t){this.ariaExpanded=t;if(this.trigger){this.trigger.setAttribute("aria-expanded",String(t))}};t.prototype.hasAriaControlsElements=function(t){return"ariaControlsElements"in t};Object.defineProperty(t.prototype,"popover",{get:function(){var t;var i=(t=this.host.querySelector("post-popover"))!==null&&t!==void 0?t:document.getElementById(this.for);if(!i){var e=this.for?"with ID: ".concat(this.for):"inside the <post-popover-trigger>";console.error("No post-popover found ".concat(e,"."));return null}return(i===null||i===void 0?void 0:i.localName)==="post-popover"?i:null},enumerable:false,configurable:true});t.prototype.setupTrigger=function(){var t,i;var e=this.popover;this.trigger=this.host.querySelector("*");if(!this.trigger){console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.");return}if(!r(this.trigger)){this.trigger.setAttribute("tabindex","0");this.trigger.setAttribute("role","button")}if(!e)return;this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString());this.trigger.setAttribute("aria-haspopup","true");if(this.for){this.trigger.setAttribute("aria-controls",this.for)}else{if(this.hasAriaControlsElements(this.trigger)){this.trigger.ariaControlsElements=[e]}else{e.id||(e.id="popover-".concat(crypto.randomUUID()));this.trigger.setAttribute("aria-controls",e.id)}}(t=this.trigger)===null||t===void 0?void 0:t.addEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("keydown",this.boundHandleKeyDown)};t.prototype.handleToggle=function(){var t;(t=this.popover)===null||t===void 0?void 0:t.toggle(this.trigger);this.focusTrigger()};t.prototype.focusTrigger=function(){if(!this.popoverOpen&&this.trigger){this.trigger.focus({preventScroll:true})}};t.prototype.componentDidLoad=function(){var t;this.setupTrigger();(t=this.popover)===null||t===void 0?void 0:t.addEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.disconnectedCallback=function(){var t,i,e;(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("keydown",this.boundHandleKeyDown);(e=this.popover)===null||e===void 0?void 0:e.removeEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.render=function(){var t=this;return e(n,{key:"4b7c011d95452d0ce2a7e459ae17e0a0ab3ecb50","data-version":o},e("slot",{key:"57907ff226d48ef8aa9b494787bc81528e0180ba",onSlotchange:function(){return t.setupTrigger()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{popoverOpen:[{syncAriaExpanded:0}]}},enumerable:false,configurable:true});return t}());h([u("string")],l.prototype,"for",void 0);l.style=c()}}}));
|
package/dist/swisspost-internet-header/{p-ef4aec35.system.entry.js → p-99b5e4db.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):s(t.value).then(o,a)}c((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=a(0),o["throw"]=a(1),o["return"]=a(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(i){return c([t,i])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(e=0)),e)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;s=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=i.call(t,e)}catch(t){a=[6,t];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-DIiKaF8J.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,s,r,o,a,c,u;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.H;r=t.g},function(t){o=t.v},function(t){a=t.d},function(t){c=t.R},function(t){u=t.T},null],execute:function(){var f=function(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var h=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,r=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)if(o=t[a])r=(s<3?o(r):s>3?o(i,e,r):o(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var l=t("post_autocomplete",function(){function t(t){var n=this;i(this,t);this.postFilteringEvent=e(this,"postFilteringEvent");this.debouncedHandleInput=a((function(t){void n.handleInput(t)}),250);this.filterThreshold=0;this.clearable=false;this.expanded=false;this.lastQuery="";this.selectedValue=null;this.handleClick=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.runQuery("",true)];case 1:t.sent();return[2]}}))}))};this.handleBlur=function(){n.restoreSelectedValue();n.hideListBox()};this.handleInput=function(t){return __awaiter(n,void 0,void 0,(function(){var i;return __generator(this,(function(e){switch(e.label){case 0:if(!this.listBoxElement)return[2];i=t.target.value.trim();return[4,this.runQuery(i.length>=this.filterThreshold?i:"")];case 1:e.sent();return[2]}}))}))};this.handleKeyDown=function(t){var i=t.key,e=t.altKey;switch(i){case"ArrowDown":t.preventDefault();n.showListBox();if(!e){n.listBoxElement.navigate("down")}break;case"ArrowUp":t.preventDefault();n.listBoxElement.navigate("up");break;case"Enter":if(n.listBoxElement.hidden)return;t.preventDefault();n.listBoxElement.selectActive();n.hideListBox();break;case"Escape":n.hideListBox();break;case"Tab":n.listBoxElement.selectActive();n.hideListBox();break;case"Home":t.preventDefault();n.listBoxElement.navigate("first");break;case"End":t.preventDefault();n.listBoxElement.navigate("last");break}};this.handleOptionSelected=function(t){var i=t.detail;n.updateSelectedValue(i);n.hideListBox()};this.handleOptionActive=function(t){var i=t.detail;if(i){n.inputElement.setAttribute("aria-activedescendant",i)}else{n.inputElement.removeAttribute("aria-activedescendant")}};this.handleClear=function(){if(n.inputElement){n.updateSelectedValue(null);n.listBoxElement.clearSelection();n.hideListBox()}}}Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.host.querySelector("input")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"listBoxElement",{get:function(){if(this.listbox){return document.getElementById(this.listbox)}else{return this.host.querySelector("post-listbox")}},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){var t;if(!this.inputElement)return;this.inputElement.role="combobox";this.inputElement.ariaAutoComplete="list";if(!this.listBoxElement)return;if(!this.listBoxElement.id)this.listBoxElement.id=crypto.randomUUID();this.inputElement.setAttribute("aria-controls",this.listBoxElement.id);this.inputElement.setAttribute("aria-expanded","false");var i=(t=this.inputElement.labels)===null||t===void 0?void 0:t[0];if(i){if(!i.id)i.id=crypto.randomUUID();this.listBoxElement.setAttribute("aria-labelledby",i.id)}this.inputElement.autocomplete="off";this.attachInputListeners();this.attachListboxListeners()};t.prototype.disconnectedCallback=function(){this.detachInputListeners();this.detachListboxListeners()};t.prototype.attachInputListeners=function(){if(this.inputElement){this.inputElement.addEventListener("input",this.debouncedHandleInput);this.inputElement.addEventListener("keydown",this.handleKeyDown);this.inputElement.addEventListener("blur",this.handleBlur);this.inputElement.addEventListener("click",this.handleClick)}};t.prototype.detachInputListeners=function(){if(this.inputElement){this.inputElement.removeEventListener("input",this.debouncedHandleInput);this.inputElement.removeEventListener("keydown",this.handleKeyDown);this.inputElement.removeEventListener("blur",this.handleBlur);this.inputElement.removeEventListener("click",this.handleClick)}};t.prototype.attachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.detachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.clearAnnouncement=function(){if(this.outputElement)this.outputElement.textContent=""};t.prototype.announceCount=function(){if(!this.outputElement||!this.listBoxElement)return;var t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))};t.prototype.showListBox=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.listBoxElement.show()];case 1:t.sent();this.expanded=true;this.inputElement.ariaExpanded="true";this.host.setAttribute("open","");this.announceCount();return[2]}}))}))};t.prototype.hideListBox=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.clearAnnouncement();this.expanded=false;this.host.removeAttribute("open");this.inputElement.ariaExpanded="false";this.inputElement.removeAttribute("aria-activedescendant");return[4,this.listBoxElement.hide()];case 1:t.sent();return[2]}}))}))};t.prototype.updateSelectedValue=function(t){var i;this.selectedValue=t;this.inputElement.value=(i=this.selectedValue)!==null&&i!==void 0?i:""};t.prototype.restoreSelectedValue=function(){var t;this.inputElement.value=(t=this.selectedValue)!==null&&t!==void 0?t:""};t.prototype.runQuery=function(t){return __awaiter(this,arguments,void 0,(function(t,i){if(i===void 0){i=false}return __generator(this,(function(e){switch(e.label){case 0:if(!(this.lastQuery!==(this.lastQuery=t)))return[3,2];return[4,this.filterListBox(t)];case 1:e.sent();e.label=2;case 2:if(!this.expanded)return[3,3];this.announceCount();return[3,5];case 3:if(!(i||t))return[3,5];return[4,this.showListBox()];case 4:e.sent();e.label=5;case 5:return[2]}}))}))};t.prototype.filterListBox=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){switch(e.label){case 0:if(this.postFilteringEvent.emit(t).defaultPrevented)return[2];return[4,(i=this.listBoxElement)===null||i===void 0?void 0:i.filter(t)];case 1:e.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;return n(s,{key:"8b386930fe5484cd73395224b5f0c5daea867b33","data-version":o},n("slot",{key:"9aa5a34de2cf18c3d6342069fc2b4ce52baac0d3"}),this.clearable&&this.selectedValue!==null&&n("button",{key:"90b459fffc29066667ca4656b6871275d061d3fd",type:"button",class:"autocomplete-clear",onClick:this.handleClear},n("post-icon",{key:"419de2b608f1638b14aed086f8e2c6064ae634bc","aria-hidden":"true",name:"closex"})),n("post-icon",{key:"56b7dd986023a0e46d902020b923ae525c88bef1","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),n("output",{key:"6ef02d0baf03c7f562ba6d5c95918e4a7ae1214f",class:"visually-hidden",ref:function(i){return t.outputElement=i}}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());h([c(),u("string")],l.prototype,"textAvailableSuggestions",void 0);l.style=f()}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):s(t.value).then(o,a)}c((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=a(0),o["throw"]=a(1),o["return"]=a(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(i){return c([t,i])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(e=0)),e)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;s=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=i.call(t,e)}catch(t){a=[6,t];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-DIiKaF8J.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,s,r,o,a,c,u;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.H;r=t.g},function(t){o=t.v},function(t){a=t.d},function(t){c=t.R},function(t){u=t.T},null],execute:function(){var f=function(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var h=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,r=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)if(o=t[a])r=(s<3?o(r):s>3?o(i,e,r):o(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var l=t("post_autocomplete",function(){function t(t){var n=this;i(this,t);this.postFilteringEvent=e(this,"postFilteringEvent");this.debouncedHandleInput=a((function(t){void n.handleInput(t)}),250);this.filterThreshold=0;this.clearable=false;this.expanded=false;this.lastQuery="";this.selectedValue=null;this.handleClick=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.runQuery("",true)];case 1:t.sent();return[2]}}))}))};this.handleBlur=function(){n.restoreSelectedValue();n.hideListBox()};this.handleInput=function(t){return __awaiter(n,void 0,void 0,(function(){var i;return __generator(this,(function(e){switch(e.label){case 0:if(!this.listBoxElement)return[2];i=t.target.value.trim();return[4,this.runQuery(i.length>=this.filterThreshold?i:"")];case 1:e.sent();return[2]}}))}))};this.handleKeyDown=function(t){var i=t.key,e=t.altKey;switch(i){case"ArrowDown":t.preventDefault();n.showListBox();if(!e){n.listBoxElement.navigate("down")}break;case"ArrowUp":t.preventDefault();n.listBoxElement.navigate("up");break;case"Enter":if(n.listBoxElement.hidden)return;t.preventDefault();n.listBoxElement.selectActive();n.hideListBox();break;case"Escape":n.hideListBox();break;case"Tab":n.listBoxElement.selectActive();n.hideListBox();break;case"Home":t.preventDefault();n.listBoxElement.navigate("first");break;case"End":t.preventDefault();n.listBoxElement.navigate("last");break}};this.handleOptionSelected=function(t){var i=t.detail;n.updateSelectedValue(i);n.hideListBox()};this.handleOptionActive=function(t){var i=t.detail;if(i){n.inputElement.setAttribute("aria-activedescendant",i)}else{n.inputElement.removeAttribute("aria-activedescendant")}};this.handleClear=function(){if(n.inputElement){n.updateSelectedValue(null);n.listBoxElement.clearSelection();n.hideListBox()}}}Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.host.querySelector("input")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"listBoxElement",{get:function(){if(this.listbox){return document.getElementById(this.listbox)}else{return this.host.querySelector("post-listbox")}},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){var t;if(!this.inputElement)return;this.inputElement.role="combobox";this.inputElement.ariaAutoComplete="list";if(!this.listBoxElement)return;if(!this.listBoxElement.id)this.listBoxElement.id=crypto.randomUUID();this.inputElement.setAttribute("aria-controls",this.listBoxElement.id);this.inputElement.setAttribute("aria-expanded","false");var i=(t=this.inputElement.labels)===null||t===void 0?void 0:t[0];if(i){if(!i.id)i.id=crypto.randomUUID();this.listBoxElement.setAttribute("aria-labelledby",i.id)}this.inputElement.autocomplete="off";this.attachInputListeners();this.attachListboxListeners()};t.prototype.disconnectedCallback=function(){this.detachInputListeners();this.detachListboxListeners()};t.prototype.attachInputListeners=function(){if(this.inputElement){this.inputElement.addEventListener("input",this.debouncedHandleInput);this.inputElement.addEventListener("keydown",this.handleKeyDown);this.inputElement.addEventListener("blur",this.handleBlur);this.inputElement.addEventListener("click",this.handleClick)}};t.prototype.detachInputListeners=function(){if(this.inputElement){this.inputElement.removeEventListener("input",this.debouncedHandleInput);this.inputElement.removeEventListener("keydown",this.handleKeyDown);this.inputElement.removeEventListener("blur",this.handleBlur);this.inputElement.removeEventListener("click",this.handleClick)}};t.prototype.attachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.detachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.clearAnnouncement=function(){if(this.outputElement)this.outputElement.textContent=""};t.prototype.announceCount=function(){if(!this.outputElement||!this.listBoxElement)return;var t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))};t.prototype.showListBox=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.listBoxElement.show()];case 1:t.sent();this.expanded=true;this.inputElement.ariaExpanded="true";this.host.setAttribute("open","");this.announceCount();return[2]}}))}))};t.prototype.hideListBox=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.clearAnnouncement();this.expanded=false;this.host.removeAttribute("open");this.inputElement.ariaExpanded="false";this.inputElement.removeAttribute("aria-activedescendant");return[4,this.listBoxElement.hide()];case 1:t.sent();return[2]}}))}))};t.prototype.updateSelectedValue=function(t){var i;this.selectedValue=t;this.inputElement.value=(i=this.selectedValue)!==null&&i!==void 0?i:""};t.prototype.restoreSelectedValue=function(){var t;this.inputElement.value=(t=this.selectedValue)!==null&&t!==void 0?t:""};t.prototype.runQuery=function(t){return __awaiter(this,arguments,void 0,(function(t,i){if(i===void 0){i=false}return __generator(this,(function(e){switch(e.label){case 0:if(!(this.lastQuery!==(this.lastQuery=t)))return[3,2];return[4,this.filterListBox(t)];case 1:e.sent();e.label=2;case 2:if(!this.expanded)return[3,3];this.announceCount();return[3,5];case 3:if(!(i||t))return[3,5];return[4,this.showListBox()];case 4:e.sent();e.label=5;case 5:return[2]}}))}))};t.prototype.filterListBox=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){switch(e.label){case 0:if(this.postFilteringEvent.emit(t).defaultPrevented)return[2];return[4,(i=this.listBoxElement)===null||i===void 0?void 0:i.filter(t)];case 1:e.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;return n(s,{key:"8b386930fe5484cd73395224b5f0c5daea867b33","data-version":o},n("slot",{key:"9aa5a34de2cf18c3d6342069fc2b4ce52baac0d3"}),this.clearable&&this.selectedValue!==null&&n("button",{key:"90b459fffc29066667ca4656b6871275d061d3fd",type:"button",class:"autocomplete-clear",onClick:this.handleClear},n("post-icon",{key:"419de2b608f1638b14aed086f8e2c6064ae634bc","aria-hidden":"true",name:"closex"})),n("post-icon",{key:"56b7dd986023a0e46d902020b923ae525c88bef1","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),n("output",{key:"6ef02d0baf03c7f562ba6d5c95918e4a7ae1214f",class:"visually-hidden",ref:function(i){return t.outputElement=i}}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());h([c(),u("string")],l.prototype,"textAvailableSuggestions",void 0);l.style=f()}}}));
|
package/dist/swisspost-internet-header/{p-a12be1fd.system.entry.js → p-99c241aa.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):r(t.value).then(s,a)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,o;i<r;i++){if(o||!(i in e)){if(!o)o=Array.prototype.slice.call(e,0,i);o[i]=e[i]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-qFxyG4GI.system.js","./p-BVux4d1J.system.js","./p-BIAUtR0M.system.js","./p-CiwQnVr3.system.js","./p-BYB4z0RW.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-iSGRM5O1.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,n,i,r,o,s,a,u,c,f,h,l,d,p;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){a=t.g},function(t){u=t.i},function(t){c=t.a},function(t){f=t.O},function(t){h=t.P},function(t){l=t.R},function(t){d=t.T},function(t){p=t.E},null],execute:function(){var v=function(){return":host{display:block}:where([part=post-menu]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-block:8px;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}::slotted([slot=header]){margin-top:-8px;padding:16px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;-webkit-border-after:1px solid #050400;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:12px 16px}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:8px 16px}}post-popovercontainer::part(post-popovercontainer-content){background-color:#fff}"};var b=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var y=t("post_menu",function(){function t(t){var i=this;e(this,t);this.toggleMenu=n(this,"toggleMenu");this.lastFocusedElement=null;this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"};this.placement="bottom";this.isVisible=false;this.handleKeyDown=function(t){t.stopPropagation();if(t.key===i.KEYCODES.ESCAPE){i.toggle(i.host);return}if(Object.values(i.KEYCODES).includes(t.key)){i.controlKeyDownHandler(t)}};this.handleClick=function(t){var e=t.target;if(["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(e.tagName)){i.toggle(i.host)}}}t.prototype.connectedCallback=function(){this.root=a(this.host);this.host.addEventListener("keydown",this.handleKeyDown);this.host.addEventListener("click",this.handleClick)};t.prototype.disconnectedCallback=function(){this.host.removeEventListener("keydown",this.handleKeyDown);this.host.removeEventListener("click",this.handleClick)};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.toggle(t)];case 1:e.sent();return[3,3];case 2:console.error("toggle: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.show(t)];case 1:e.sent();return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};t.prototype.handlePostShown=function(t){if(t.detail.first){this.host.setAttribute("role","menu");var e=this.getSlottedItems();for(var n=0,i=e;n<i.length;n++){var r=i[n];r.setAttribute("role","menuitem")}if(this.label)this.host.setAttribute("aria-label",this.label)}};t.prototype.handlePostBeforeToggle=function(t){var e=this;var n;this.isVisible=t.detail.willOpen;this.toggleMenu.emit(this.isVisible);if(this.isVisible){this.lastFocusedElement=(n=this.root)===null||n===void 0?void 0:n.activeElement;if(u(this.lastFocusedElement)){requestAnimationFrame((function(){var t=e.getSlottedItems();if(t.length>0){t[0].focus()}}))}}else if(this.lastFocusedElement){this.lastFocusedElement.focus()}};t.prototype.controlKeyDownHandler=function(t){var e=this.getSlottedItems();if(e.length===0){return}var n=e.findIndex((function(t){return t===a(t).activeElement}));switch(t.key){case this.KEYCODES.UP:t.preventDefault();n=(n-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault();n=(n+1)%e.length;break;case this.KEYCODES.HOME:t.preventDefault();n=0;break;case this.KEYCODES.END:t.preventDefault();n=e.length-1;break;case this.KEYCODES.SPACE:this.toggle(this.host);return;case this.KEYCODES.TAB:this.toggle(this.host);break}if(e[n]){e[n].focus()}};t.prototype.getSlottedItems=function(){var t=this.host.shadowRoot.querySelectorAll("slot");var e=[];t.forEach((function(t){return e.push.apply(e,t.assignedElements())}));return e.flatMap((function(t){return t instanceof HTMLSlotElement?t.assignedElements():t})).flatMap((function(t){return __spreadArray(__spreadArray([],c(t),true),t.shadowRoot?c(t.shadowRoot):[],true)}))};t.prototype.render=function(){var t=this;return i(r,{key:"988b77e3589a499e23e95eb6eff985edbadd4d2e","data-version":s},i("post-popovercontainer",{key:"fd0ee4d4234fe1f222757c00d778ebb2a2c5ac13",autoHide:true,autoResize:true,onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:function(e){return t.popoverRef=e}},i("div",{key:"8b46a79db5944854c97c862608bd5a8d9113398e",part:"post-menu"},i("slot",{key:"a024a0ade2a865b12d1a452c6c33f9afde1f34e0",name:"header"}),i("slot",{key:"1465a5d8d9463e6557a2a8c32aa119429a4783b3"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());b([f(h)],y.prototype,"placement",void 0);b([l(),d("string")],y.prototype,"label",void 0);b([p("post-popovercontainer")],y.prototype,"handlePostShown",null);b([p("post-popovercontainer")],y.prototype,"handlePostBeforeToggle",null);y.style=v();var m=function(){return":host{display:inline-block}"};var g=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var w=t("post_menu_trigger",function(){function t(t){e(this,t);this.updateAriaExpanded=this.updateAriaExpanded.bind(this)}t.prototype.connectedCallback=function(){this.root=a(this.host)};t.prototype.componentDidLoad=function(){this.setAriaAttributes();if(this.root){this.root.addEventListener("toggleMenu",this.updateAriaExpanded)}};t.prototype.disconnectedCallback=function(){this.root.removeEventListener("toggleMenu",this.updateAriaExpanded)};t.prototype.updateAriaExpanded=function(t){var e=t.target;if(e.localName==="post-menu"&&e.id===this.for){this.slottedButton.setAttribute("aria-expanded",t.detail.toString())}};t.prototype.setAriaAttributes=function(){var t=this.host.querySelectorAll("button");if(t.length!==1){console.warn("The post-menu-trigger should contain exactly one button (".concat(t.length," found)."));return}this.slottedButton=t.item(0);this.slottedButton.setAttribute("type","button");this.slottedButton.setAttribute("aria-haspopup","menu");this.slottedButton.setAttribute("aria-expanded","false");this.slottedButton.addEventListener("click",this.handleToggle.bind(this));this.slottedButton.addEventListener("keydown",this.handleKeyDown.bind(this))};t.prototype.handleKeyDown=function(t){if(t.key==="ArrowUp"||t.key==="ArrowDown"){t.preventDefault();this.handleToggle()}};t.prototype.handleToggle=function(){var t=this.getMenu();if(t)t.toggle(this.host)};t.prototype.getMenu=function(){var t=this.root.getElementById(this.for);if(t&&t.localName==="post-menu")return t;console.warn("No post-menu found with ID: ".concat(this.for));return null};t.prototype.render=function(){return i(r,{key:"f75522d28e9a45c80846a191cff3ea2eb51b5bde","data-version":s},i("slot",{key:"bc70e3ddc8dc372611c00a4cda52cd35ede02a3f"}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());g([l(),d("string")],w.prototype,"for",void 0);w.style=m()}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(s,a)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,o;i<r;i++){if(o||!(i in e)){if(!o)o=Array.prototype.slice.call(e,0,i);o[i]=e[i]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-qFxyG4GI.system.js","./p-BVux4d1J.system.js","./p-BIAUtR0M.system.js","./p-CiwQnVr3.system.js","./p-BYB4z0RW.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-iSGRM5O1.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,n,i,r,o,s,a,c,u,f,h,l,d,p;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){a=t.g},function(t){c=t.i},function(t){u=t.a},function(t){f=t.O},function(t){h=t.P},function(t){l=t.R},function(t){d=t.T},function(t){p=t.E},null],execute:function(){var b=function(){return":host{display:block}:where([part=post-menu]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-block:8px;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}::slotted([slot=header]){margin-top:-8px;padding:16px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;-webkit-border-after:1px solid #050400;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:12px 16px}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:8px 16px}}post-popovercontainer::part(post-popovercontainer-content){background-color:#fff}"};var v=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var y=t("post_menu",function(){function t(t){var i=this;e(this,t);this.toggleMenu=n(this,"toggleMenu");this.lastFocusedElement=null;this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"};this.placement="bottom";this.isVisible=false;this.handleKeyDown=function(t){t.stopPropagation();if(t.key===i.KEYCODES.ESCAPE){i.toggle(i.host);return}if(Object.values(i.KEYCODES).includes(t.key)){i.controlKeyDownHandler(t)}};this.handleClick=function(t){var e=t.target;if(["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(e.tagName)){i.toggle(i.host)}}}t.prototype.connectedCallback=function(){this.root=a(this.host);this.host.addEventListener("keydown",this.handleKeyDown);this.host.addEventListener("click",this.handleClick)};t.prototype.disconnectedCallback=function(){this.host.removeEventListener("keydown",this.handleKeyDown);this.host.removeEventListener("click",this.handleClick)};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.toggle(t)];case 1:e.sent();return[3,3];case 2:console.error("toggle: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.show(t)];case 1:e.sent();return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};t.prototype.handlePostShown=function(t){if(t.detail.first){this.host.setAttribute("role","menu");var e=this.getSlottedItems();for(var n=0,i=e;n<i.length;n++){var r=i[n];r.setAttribute("role","menuitem")}if(this.label)this.host.setAttribute("aria-label",this.label)}};t.prototype.handlePostBeforeToggle=function(t){var e=this;var n;this.isVisible=t.detail.willOpen;this.toggleMenu.emit(this.isVisible);if(this.isVisible){this.lastFocusedElement=(n=this.root)===null||n===void 0?void 0:n.activeElement;if(c(this.lastFocusedElement)){requestAnimationFrame((function(){var t=e.getSlottedItems();if(t.length>0){t[0].focus()}}))}}else if(this.lastFocusedElement){this.lastFocusedElement.focus()}};t.prototype.controlKeyDownHandler=function(t){var e=this.getSlottedItems();if(e.length===0){return}var n=e.findIndex((function(t){return t===a(t).activeElement}));switch(t.key){case this.KEYCODES.UP:t.preventDefault();n=(n-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault();n=(n+1)%e.length;break;case this.KEYCODES.HOME:t.preventDefault();n=0;break;case this.KEYCODES.END:t.preventDefault();n=e.length-1;break;case this.KEYCODES.SPACE:this.toggle(this.host);return;case this.KEYCODES.TAB:this.toggle(this.host);break}if(e[n]){e[n].focus()}};t.prototype.getSlottedItems=function(){var t=this.host.shadowRoot.querySelectorAll("slot");var e=[];t.forEach((function(t){return e.push.apply(e,t.assignedElements())}));return e.flatMap((function(t){return t instanceof HTMLSlotElement?t.assignedElements():t})).flatMap((function(t){return __spreadArray(__spreadArray([],u(t),true),t.shadowRoot?u(t.shadowRoot):[],true)}))};t.prototype.render=function(){var t=this;return i(r,{key:"424d6a6b439f05d8fecca4814f2aeba53e7333b9","data-version":s},i("post-popovercontainer",{key:"0dce87ba2c4731ac458105a10a80514c2db07b52",autoHide:true,autoResize:true,onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:function(e){return t.popoverRef=e}},i("div",{key:"693bbd1e352d8c52f76dae4fba41558ef1ad4308",part:"post-menu"},i("slot",{key:"7e3a24f00f99c99120ca75bf8a0b34aad27cbac3",name:"header"}),i("slot",{key:"1d9d360db4880ebc6e35cf2ac6cbdd738289f102"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());v([f(h)],y.prototype,"placement",void 0);v([l(),d("string")],y.prototype,"label",void 0);v([p("post-popovercontainer")],y.prototype,"handlePostShown",null);v([p("post-popovercontainer")],y.prototype,"handlePostBeforeToggle",null);y.style=b();var m=function(){return":host{display:inline-block}"};var g=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var w=t("post_menu_trigger",function(){function t(t){e(this,t);this.updateAriaExpanded=this.updateAriaExpanded.bind(this)}t.prototype.connectedCallback=function(){this.root=a(this.host)};t.prototype.componentDidLoad=function(){this.setAriaAttributes();if(this.root){this.root.addEventListener("toggleMenu",this.updateAriaExpanded)}};t.prototype.disconnectedCallback=function(){this.root.removeEventListener("toggleMenu",this.updateAriaExpanded)};t.prototype.updateAriaExpanded=function(t){var e=t.target;if(e.localName==="post-menu"&&e.id===this.for){this.slottedButton.setAttribute("aria-expanded",t.detail.toString())}};t.prototype.setAriaAttributes=function(){var t=this.host.querySelectorAll("button");if(t.length!==1){console.warn("The post-menu-trigger should contain exactly one button (".concat(t.length," found)."));return}this.slottedButton=t.item(0);this.slottedButton.setAttribute("type","button");this.slottedButton.setAttribute("aria-haspopup","menu");this.slottedButton.setAttribute("aria-expanded","false");this.slottedButton.addEventListener("click",this.handleToggle.bind(this));this.slottedButton.addEventListener("keydown",this.handleKeyDown.bind(this))};t.prototype.handleKeyDown=function(t){if(t.key==="ArrowUp"||t.key==="ArrowDown"){t.preventDefault();this.handleToggle()}};t.prototype.handleToggle=function(){var t=this.getMenu();if(t)t.toggle(this.host)};t.prototype.getMenu=function(){var t=this.root.getElementById(this.for);if(t&&t.localName==="post-menu")return t;console.warn("No post-menu found with ID: ".concat(this.for));return null};t.prototype.render=function(){return i(r,{key:"8f43fe80dd56550141481f157a06caf559494291","data-version":s},i("slot",{key:"1b5d220cff9894918aedc54b0585df75095dcb0e"}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());g([l(),d("string")],w.prototype,"for",void 0);w.style=m()}}}));
|