@swisspost/design-system-components 10.0.0-next.68 → 10.0.0-next.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.config/rollup-plugin.air-datepicker-locale.js +30 -0
- package/dist/cjs/_air-datepicker-locale_ar-CWOSiErt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_bg-JFWSZzWm.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ca-D4TAa7rI.js +5 -0
- package/dist/cjs/_air-datepicker-locale_cs-DosuWhKM.js +5 -0
- package/dist/cjs/_air-datepicker-locale_da-B5NHFJuC.js +5 -0
- package/dist/cjs/_air-datepicker-locale_de-pCyAfzJ2.js +5 -0
- package/dist/cjs/_air-datepicker-locale_el-Cpwc-DA1.js +5 -0
- package/dist/cjs/_air-datepicker-locale_en-Be7ImjN_.js +5 -0
- package/dist/cjs/_air-datepicker-locale_es-Cv0KAzTX.js +5 -0
- package/dist/cjs/_air-datepicker-locale_eu-DIWyMMth.js +5 -0
- package/dist/cjs/_air-datepicker-locale_fi-D0NlYCfL.js +5 -0
- package/dist/cjs/_air-datepicker-locale_fr-SkEOXj1I.js +5 -0
- package/dist/cjs/_air-datepicker-locale_hr-BrTsx2iQ.js +5 -0
- package/dist/cjs/_air-datepicker-locale_hu-a5Toa3rt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_id-h0ieLcJv.js +5 -0
- package/dist/cjs/_air-datepicker-locale_it-DQeeF5n7.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ja-C78DHDAv.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ko-BGSYNW_t.js +5 -0
- package/dist/cjs/_air-datepicker-locale_nb-BQkZ_Pvp.js +5 -0
- package/dist/cjs/_air-datepicker-locale_nl-DG6dvxj-.js +5 -0
- package/dist/cjs/_air-datepicker-locale_pl-mZxBq8TF.js +5 -0
- package/dist/cjs/_air-datepicker-locale_pt-sCO-c8dQ.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ro-Cf2HyYTE.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ru-BS-yHOKw.js +5 -0
- package/dist/cjs/_air-datepicker-locale_si-C-vceOjt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sk-D6Sexd7V.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sl-C769P2Cr.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sv-DV21M0v9.js +5 -0
- package/dist/cjs/_air-datepicker-locale_th-HFoj3y5r.js +5 -0
- package/dist/cjs/_air-datepicker-locale_tr-C4soRqRo.js +5 -0
- package/dist/cjs/_air-datepicker-locale_uk-BM5nVNZS.js +5 -0
- package/dist/cjs/_air-datepicker-locale_zh-B4bR_9wv.js +5 -0
- package/dist/cjs/{index-Du1lKw8D.js → index-DPdHkdGf.js} +353 -1933
- package/dist/cjs/index-YBj3gUJp.js +114540 -0
- package/dist/cjs/{index.browser-Doj636JV.js → index.browser-BVb9l9T_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/{esm/long-press-event-C_2k3G1c.js → cjs/long-press-event-Dx21Ojod.js} +13 -1
- package/dist/cjs/{package-DB6yM9Rp.js → package-CzSn3NmD.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/post-autocomplete.cjs.entry.js +36 -10
- package/dist/cjs/post-avatar.cjs.entry.js +4 -4
- package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/post-banner.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -5
- package/dist/cjs/post-closebutton_14.cjs.entry.js +59 -57
- package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/post-date-picker.cjs.entry.js +368 -268
- package/dist/cjs/post-footer.cjs.entry.js +5 -5
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +4 -4
- package/dist/cjs/post-login-widget.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +7 -7
- package/dist/cjs/post-pagination.cjs.entry.js +5 -5
- package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +4 -4
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +6 -6
- package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
- package/dist/cjs/post-tabs.cjs.entry.js +5 -5
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -1
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +52 -7
- package/dist/collection/components/post-avatar/post-avatar.js +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -2
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-date-picker/air-locales.js +34 -0
- package/dist/collection/components/post-date-picker/constants.js +42 -0
- package/dist/collection/components/post-date-picker/post-date-picker.css +6 -2
- package/dist/collection/components/post-date-picker/post-date-picker.js +295 -135
- package/dist/collection/components/post-footer/post-footer.js +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +5 -5
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +11 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-login-widget/post-login-widget.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +3 -2
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -11
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +4 -4
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/is-iso-date.js +7 -6
- package/dist/collection/utils/locales.js +17 -0
- package/dist/components/_air-datepicker-locale_ar.js +1 -0
- package/dist/components/_air-datepicker-locale_bg.js +1 -0
- package/dist/components/_air-datepicker-locale_ca.js +1 -0
- package/dist/components/_air-datepicker-locale_cs.js +1 -0
- package/dist/components/_air-datepicker-locale_da.js +1 -0
- package/dist/components/_air-datepicker-locale_de.js +1 -0
- package/dist/components/_air-datepicker-locale_el.js +1 -0
- package/dist/components/_air-datepicker-locale_en.js +1 -0
- package/dist/components/_air-datepicker-locale_es.js +1 -0
- package/dist/components/_air-datepicker-locale_eu.js +1 -0
- package/dist/components/_air-datepicker-locale_fi.js +1 -0
- package/dist/components/_air-datepicker-locale_fr.js +1 -0
- package/dist/components/_air-datepicker-locale_hr.js +1 -0
- package/dist/components/_air-datepicker-locale_hu.js +1 -0
- package/dist/components/_air-datepicker-locale_id.js +1 -0
- package/dist/components/_air-datepicker-locale_it.js +1 -0
- package/dist/components/_air-datepicker-locale_ja.js +1 -0
- package/dist/components/_air-datepicker-locale_ko.js +1 -0
- package/dist/components/_air-datepicker-locale_nb.js +1 -0
- package/dist/components/_air-datepicker-locale_nl.js +1 -0
- package/dist/components/_air-datepicker-locale_pl.js +1 -0
- package/dist/components/_air-datepicker-locale_pt.js +1 -0
- package/dist/components/_air-datepicker-locale_ro.js +1 -0
- package/dist/components/_air-datepicker-locale_ru.js +1 -0
- package/dist/components/_air-datepicker-locale_si.js +1 -0
- package/dist/components/_air-datepicker-locale_sk.js +1 -0
- package/dist/components/_air-datepicker-locale_sl.js +1 -0
- package/dist/components/_air-datepicker-locale_sv.js +1 -0
- package/dist/components/_air-datepicker-locale_th.js +1 -0
- package/dist/components/_air-datepicker-locale_tr.js +1 -0
- package/dist/components/_air-datepicker-locale_uk.js +1 -0
- package/dist/components/_air-datepicker-locale_zh.js +1 -0
- package/dist/components/index3.js +6 -0
- package/dist/components/long-press-event.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item2.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.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-login-widget.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.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-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-rating.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/react/index.js +1 -1
- package/dist/components/react/p-B0UL6WWC.js +1 -0
- package/dist/components/react/p-B4l5EAoq.js +1 -0
- package/dist/components/react/{p-CmkOK7QT.js → p-B4tq6hiA.js} +1 -1
- package/dist/components/react/p-B5zHEJHg.js +1 -0
- package/dist/components/react/p-BI8IDv3x.js +1 -0
- package/dist/components/react/p-BL8Kkhue.js +1 -0
- package/dist/components/react/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
- package/dist/components/react/{p-DSw_A3Mh.js → p-BYfHrHCb.js} +1 -1
- package/dist/components/react/p-B_mxRlWV.js +1 -0
- package/dist/components/react/p-BaE0RQYu.js +1 -0
- package/dist/components/react/p-BbOp03Tv.js +1 -0
- package/dist/components/react/p-BfPjPzPS.js +1 -0
- package/dist/components/react/p-BhrWATcv.js +1 -0
- package/dist/components/react/{p-CuiEdxy9.js → p-Bj33xnuq.js} +1 -1
- package/dist/components/react/p-Blr-q_ib.js +1 -0
- package/dist/components/react/p-ByHlofKQ.js +1 -0
- package/dist/components/react/p-BzFuQlXL.js +1 -0
- package/dist/components/react/p-C820VY6h.js +1 -0
- package/dist/components/react/p-CHD6fZJe.js +1 -0
- package/dist/components/react/p-CJcRbvrI.js +6 -0
- package/dist/components/react/p-CKeMJgsB.js +1 -0
- package/dist/components/react/p-CKmlbvS5.js +1 -0
- package/dist/components/react/p-CLO4Gc79.js +1 -0
- package/dist/components/react/p-COcQTTvB.js +1 -0
- package/dist/components/react/p-CY0xDY7T.js +1 -0
- package/dist/components/react/p-CaXZrKGy.js +1 -0
- package/dist/components/react/{p-BOqFllSV.js → p-CfQqdIV2.js} +1 -1
- package/dist/components/react/p-Cp9RABzO.js +1 -0
- package/dist/components/react/{p-wHDwT4JH.js → p-D1KBbwmi.js} +1 -1
- package/dist/components/react/p-D74-8pcb.js +1 -0
- package/dist/components/react/p-D7MKQ7S-.js +1 -0
- package/dist/components/react/p-DAIxJysJ.js +1 -0
- package/dist/components/react/p-DLWEDodU.js +1 -0
- package/dist/components/react/p-DQq5Bnk2.js +1 -0
- package/dist/components/react/{p-DPFq3I2q.js → p-DRtzK3cr.js} +1 -1
- package/dist/components/react/p-DYpJ3j2A.js +1 -0
- package/dist/components/react/{p-aFH1oGSZ.js → p-De_QjSNJ.js} +1 -1
- package/dist/components/react/p-DiNZLG90.js +1 -0
- package/dist/components/react/p-Dp41Pg4o.js +1 -0
- package/dist/components/react/{p-BFAXoyMM.js → p-DwJ5SwpN.js} +1 -1
- package/dist/components/react/{p-rEK_D60T.js → p-HNUXY1z7.js} +1 -1
- package/dist/components/react/p-TmutBiUy.js +1 -0
- package/dist/components/react/{p-ByN3t9FX.js → p-UY924tHr.js} +1 -1
- package/dist/components/react/p-bl3gSRgH.js +1 -0
- package/dist/components/react/p-jZZU8-Dx.js +1 -0
- package/dist/components/react/p-r5tpdxcW.js +1 -0
- package/dist/components/react/p-tHlklq2F.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-login-widget.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.d.ts +26 -0
- package/dist/docs.json +113 -9
- package/dist/esm/_air-datepicker-locale_ar-DQq5Bnk2.js +3 -0
- package/dist/esm/_air-datepicker-locale_bg-bl3gSRgH.js +3 -0
- package/dist/esm/_air-datepicker-locale_ca-BI8IDv3x.js +3 -0
- package/dist/esm/_air-datepicker-locale_cs-COcQTTvB.js +3 -0
- package/dist/esm/_air-datepicker-locale_da-jZZU8-Dx.js +3 -0
- package/dist/esm/_air-datepicker-locale_de-DiNZLG90.js +3 -0
- package/dist/esm/_air-datepicker-locale_el-CY0xDY7T.js +3 -0
- package/dist/esm/_air-datepicker-locale_en-D74-8pcb.js +3 -0
- package/dist/esm/_air-datepicker-locale_es-TmutBiUy.js +3 -0
- package/dist/esm/_air-datepicker-locale_eu-Blr-q_ib.js +3 -0
- package/dist/esm/_air-datepicker-locale_fi-B5zHEJHg.js +3 -0
- package/dist/esm/_air-datepicker-locale_fr-CLO4Gc79.js +3 -0
- package/dist/esm/_air-datepicker-locale_hr-CKeMJgsB.js +3 -0
- package/dist/esm/_air-datepicker-locale_hu-B_mxRlWV.js +3 -0
- package/dist/esm/_air-datepicker-locale_id-BhrWATcv.js +3 -0
- package/dist/esm/_air-datepicker-locale_it-B0UL6WWC.js +3 -0
- package/dist/esm/_air-datepicker-locale_ja-DLWEDodU.js +3 -0
- package/dist/esm/_air-datepicker-locale_ko-BL8Kkhue.js +3 -0
- package/dist/esm/_air-datepicker-locale_nb-BzFuQlXL.js +3 -0
- package/dist/esm/_air-datepicker-locale_nl-ByHlofKQ.js +3 -0
- package/dist/esm/_air-datepicker-locale_pl-CaXZrKGy.js +3 -0
- package/dist/esm/_air-datepicker-locale_pt-CKmlbvS5.js +3 -0
- package/dist/esm/_air-datepicker-locale_ro-r5tpdxcW.js +3 -0
- package/dist/esm/_air-datepicker-locale_ru-BfPjPzPS.js +3 -0
- package/dist/esm/_air-datepicker-locale_si-Dp41Pg4o.js +3 -0
- package/dist/esm/_air-datepicker-locale_sk-BaE0RQYu.js +3 -0
- package/dist/esm/_air-datepicker-locale_sl-tHlklq2F.js +3 -0
- package/dist/esm/_air-datepicker-locale_sv-DYpJ3j2A.js +3 -0
- package/dist/esm/_air-datepicker-locale_th-D7MKQ7S-.js +3 -0
- package/dist/esm/_air-datepicker-locale_tr-CHD6fZJe.js +3 -0
- package/dist/esm/_air-datepicker-locale_uk-Cp9RABzO.js +3 -0
- package/dist/esm/_air-datepicker-locale_zh-C820VY6h.js +3 -0
- package/dist/esm/index-CJcRbvrI.js +114535 -0
- package/dist/esm/{index-Ci4L1rzN.js → index-DmAi35UF.js} +353 -1933
- package/dist/esm/{index.browser-BLchVpF6.js → index.browser-nA1BKco0.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/{cjs/long-press-event-Q8jMUNXD.js → esm/long-press-event-BNgqqRsB.js} +11 -3
- package/dist/esm/package-B4l5EAoq.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +4 -4
- package/dist/esm/post-autocomplete.entry.js +36 -10
- package/dist/esm/post-avatar.entry.js +4 -4
- package/dist/esm/post-back-to-top.entry.js +4 -4
- package/dist/esm/post-banner.entry.js +4 -4
- package/dist/esm/post-breadcrumb-item.entry.js +4 -4
- package/dist/esm/post-breadcrumbs.entry.js +5 -5
- package/dist/esm/post-closebutton_14.entry.js +56 -54
- package/dist/esm/post-collapsible_2.entry.js +5 -5
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/post-date-picker.entry.js +352 -252
- package/dist/esm/post-footer.entry.js +4 -4
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +4 -4
- package/dist/esm/post-login-widget.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +6 -6
- package/dist/esm/post-pagination.entry.js +5 -5
- package/dist/esm/post-popover-trigger.entry.js +4 -4
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +4 -4
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +6 -6
- package/dist/esm/post-tab-item.entry.js +5 -5
- package/dist/esm/post-tab-panel.entry.js +5 -5
- package/dist/esm/post-tabs.entry.js +5 -5
- package/dist/esm/post-tooltip-trigger.entry.js +5 -5
- package/dist/esm/post-tooltip.entry.js +5 -5
- package/dist/post-components/{p-4ad6993e.entry.js → p-0992cba9.entry.js} +1 -1
- package/dist/post-components/{p-9bdb92c0.entry.js → p-0c249c71.entry.js} +1 -1
- package/dist/post-components/{p-4c021d5f.entry.js → p-1e28d279.entry.js} +1 -1
- package/dist/post-components/{p-5f86479f.entry.js → p-220d0eab.entry.js} +1 -1
- package/dist/post-components/{p-38880c61.entry.js → p-272de102.entry.js} +1 -1
- package/dist/post-components/{p-5c66d070.entry.js → p-30e5bc99.entry.js} +1 -1
- package/dist/post-components/p-500a3fc7.entry.js +1 -0
- package/dist/post-components/{p-eb89eecb.entry.js → p-52f85cba.entry.js} +1 -1
- package/dist/post-components/{p-602960ff.entry.js → p-5664d5b5.entry.js} +1 -1
- package/dist/post-components/p-5ade4255.entry.js +1 -0
- package/dist/post-components/p-6644e626.entry.js +1 -0
- package/dist/post-components/p-694e76be.entry.js +1 -0
- package/dist/post-components/p-8b68164f.entry.js +1 -0
- package/dist/post-components/{p-cdc11592.entry.js → p-906b669b.entry.js} +1 -1
- package/dist/post-components/p-92e4a7f7.entry.js +1 -0
- package/dist/post-components/{p-df54677a.entry.js → p-95df4d4e.entry.js} +1 -1
- package/dist/post-components/{p-7ad4e293.entry.js → p-9fab1847.entry.js} +1 -1
- package/dist/post-components/p-B0UL6WWC.js +1 -0
- package/dist/post-components/p-B4l5EAoq.js +1 -0
- package/dist/post-components/p-B5zHEJHg.js +1 -0
- package/dist/post-components/p-BI8IDv3x.js +1 -0
- package/dist/post-components/p-BL8Kkhue.js +1 -0
- package/dist/post-components/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
- package/dist/post-components/p-B_mxRlWV.js +1 -0
- package/dist/post-components/p-BaE0RQYu.js +1 -0
- package/dist/post-components/p-BfPjPzPS.js +1 -0
- package/dist/post-components/p-BhrWATcv.js +1 -0
- package/dist/post-components/p-Blr-q_ib.js +1 -0
- package/dist/post-components/p-ByHlofKQ.js +1 -0
- package/dist/post-components/p-BzFuQlXL.js +1 -0
- package/dist/post-components/p-C820VY6h.js +1 -0
- package/dist/post-components/p-CHD6fZJe.js +1 -0
- package/dist/post-components/p-CJcRbvrI.js +6 -0
- package/dist/post-components/p-CKeMJgsB.js +1 -0
- package/dist/post-components/p-CKmlbvS5.js +1 -0
- package/dist/post-components/p-CLO4Gc79.js +1 -0
- package/dist/post-components/p-COcQTTvB.js +1 -0
- package/dist/post-components/p-CY0xDY7T.js +1 -0
- package/dist/post-components/p-CaXZrKGy.js +1 -0
- package/dist/post-components/p-Cp9RABzO.js +1 -0
- package/dist/post-components/p-D74-8pcb.js +1 -0
- package/dist/post-components/p-D7MKQ7S-.js +1 -0
- package/dist/post-components/p-DLWEDodU.js +1 -0
- package/dist/post-components/p-DQq5Bnk2.js +1 -0
- package/dist/post-components/p-DYpJ3j2A.js +1 -0
- package/dist/post-components/p-DiNZLG90.js +1 -0
- package/dist/post-components/p-DmAi35UF.js +2 -0
- package/dist/post-components/p-Dp41Pg4o.js +1 -0
- package/dist/post-components/p-TmutBiUy.js +1 -0
- package/dist/post-components/p-bl3gSRgH.js +1 -0
- package/dist/post-components/p-c70cad6e.entry.js +1 -0
- package/dist/post-components/{p-319959ee.entry.js → p-c95fcb40.entry.js} +1 -1
- package/dist/post-components/{p-39b2b086.entry.js → p-cca0cf23.entry.js} +1 -1
- package/dist/post-components/{p-fd10d5b9.entry.js → p-cd6684e1.entry.js} +1 -1
- package/dist/post-components/p-d57462a3.entry.js +1 -0
- package/dist/post-components/{p-f64c6491.entry.js → p-d99bdef2.entry.js} +1 -1
- package/dist/post-components/{p-e331093d.entry.js → p-dfe811cc.entry.js} +1 -1
- package/dist/post-components/p-f14ca918.entry.js +1 -0
- package/dist/post-components/{p-e01ce660.entry.js → p-f88a161a.entry.js} +1 -1
- package/dist/post-components/p-fc2882a8.entry.js +1 -0
- package/dist/post-components/p-jZZU8-Dx.js +1 -0
- package/dist/post-components/p-r5tpdxcW.js +1 -0
- package/dist/post-components/p-tHlklq2F.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/prebuild.js +4 -1
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +10 -0
- package/dist/types/components/post-date-picker/air-locales.d.ts +5 -0
- package/dist/types/components/post-date-picker/constants.d.ts +37 -0
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +74 -18
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -0
- package/dist/types/components/post-stepper/post-stepper.d.ts +2 -2
- package/dist/types/components.d.ts +286 -80
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/rollup-plugin.air-datepicker-locale.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +1 -0
- package/dist/types/language-tags.js +0 -0
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/locales.d.ts +11 -0
- package/hydrate/index.js +120010 -4831
- package/hydrate/index.mjs +120010 -4831
- package/package.json +14 -13
- package/dist/cjs/breakpoints-B0Olgvgc.js +0 -206
- package/dist/collection/components/post-date-picker/locales.js +0 -10
- package/dist/components/breakpoints.js +0 -1
- package/dist/components/react/p-BADyL6qQ.js +0 -1
- package/dist/components/react/p-BQ3HlJPr.js +0 -1
- package/dist/components/react/p-NDMNbu5d.js +0 -1
- package/dist/components/react/p-_AAbD0Gm.js +0 -1
- package/dist/esm/breakpoints-BQ3HlJPr.js +0 -202
- package/dist/esm/package-NDMNbu5d.js +0 -3
- package/dist/post-components/p-1edd4d7c.entry.js +0 -1
- package/dist/post-components/p-3364b421.entry.js +0 -1
- package/dist/post-components/p-631f4bdd.entry.js +0 -1
- package/dist/post-components/p-6336ea0b.entry.js +0 -1
- package/dist/post-components/p-82871134.entry.js +0 -1
- package/dist/post-components/p-8c91a9d8.entry.js +0 -1
- package/dist/post-components/p-BQ3HlJPr.js +0 -1
- package/dist/post-components/p-Ci4L1rzN.js +0 -2
- package/dist/post-components/p-NDMNbu5d.js +0 -1
- package/dist/post-components/p-e4fd234d.entry.js +0 -1
- package/dist/post-components/p-ee03eed0.entry.js +0 -1
- package/dist/post-components/p-f1813327.entry.js +0 -1
- package/dist/post-components/p-f1bff988.entry.js +0 -1
- package/dist/types/components/post-date-picker/locales.d.ts +0 -6
- /package/dist/components/react/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
- /package/dist/post-components/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "10.0.0-next.
|
|
3
|
+
"version": "10.0.0-next.69",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"author": "Swiss Post <design-system@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,28 +66,29 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@floating-ui/dom": "1.7.
|
|
69
|
+
"@floating-ui/dom": "1.7.6",
|
|
70
70
|
"@oddbird/popover-polyfill": "0.6.0",
|
|
71
|
-
"@stencil/core": "4.
|
|
72
|
-
"@swisspost/design-system-icons": "10.0.0-next.
|
|
73
|
-
"@swisspost/design-system-styles": "10.0.0-next.
|
|
71
|
+
"@stencil/core": "4.43.3",
|
|
72
|
+
"@swisspost/design-system-icons": "10.0.0-next.69",
|
|
73
|
+
"@swisspost/design-system-styles": "10.0.0-next.69",
|
|
74
74
|
"air-datepicker": "3.6.0",
|
|
75
75
|
"ally.js": "1.4.1",
|
|
76
76
|
"imask": "7.6.1",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"language-tags": "1.0.9",
|
|
78
|
+
"long-press-event": "2.5.2",
|
|
79
|
+
"nanoid": "5.1.11"
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
82
|
"@eslint/compat": "1.2.5",
|
|
82
83
|
"@eslint/js": "9.18.0",
|
|
83
|
-
"@percy/cli": "1.31.
|
|
84
|
+
"@percy/cli": "1.31.13",
|
|
84
85
|
"@percy/cypress": "3.1.8",
|
|
85
86
|
"@playwright/test": "1.56.1",
|
|
86
87
|
"@stencil-community/eslint-plugin": "0.10.0",
|
|
87
88
|
"@stencil/angular-output-target": "1.1.1",
|
|
88
89
|
"@stencil/react-output-target": "1.2.0",
|
|
89
90
|
"@stencil/sass": "3.0.12",
|
|
90
|
-
"@swisspost/design-system-eslint": "10.0.0-next.
|
|
91
|
+
"@swisspost/design-system-eslint": "10.0.0-next.69",
|
|
91
92
|
"@types/jest": "29.5.14",
|
|
92
93
|
"@types/node": "^24.0.0",
|
|
93
94
|
"@typescript-eslint/parser": "7.18.0",
|
|
@@ -109,10 +110,10 @@
|
|
|
109
110
|
"rollup-plugin-postcss": "4.0.2",
|
|
110
111
|
"sass": "1.89.2",
|
|
111
112
|
"throttle-debounce": "5.0.2",
|
|
112
|
-
"ts-jest": "29.4.
|
|
113
|
+
"ts-jest": "29.4.9",
|
|
113
114
|
"ts-node": "10.9.2",
|
|
114
|
-
"typescript": "5.
|
|
115
|
-
"typescript-eslint": "8.
|
|
115
|
+
"typescript": "5.9.3",
|
|
116
|
+
"typescript-eslint": "8.59.2"
|
|
116
117
|
},
|
|
117
118
|
"keywords": [
|
|
118
119
|
"components",
|
|
@@ -123,7 +124,7 @@
|
|
|
123
124
|
"frontend"
|
|
124
125
|
],
|
|
125
126
|
"scripts": {
|
|
126
|
-
"play": "pnpm prebuild:script && stencil build --dev --port 9200 --serve --watch --
|
|
127
|
+
"play": "pnpm prebuild:script && stencil build --dev --port 9200 --serve --watch --config stencil.config.play.ts",
|
|
127
128
|
"start": "pnpm prebuild:script && stencil build --dev --watch --docs --docs-readme",
|
|
128
129
|
"prebuild": "pnpm clean && pnpm prebuild:script",
|
|
129
130
|
"build": "stencil build --docs-readme",
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
7
|
-
* execution of handlers on events like resize and scroll.
|
|
8
|
-
*
|
|
9
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
10
|
-
* are most useful.
|
|
11
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
12
|
-
* as-is, to `callback` when the throttled-function is executed.
|
|
13
|
-
* @param {object} [options] - An object to configure options.
|
|
14
|
-
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
15
|
-
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
16
|
-
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
17
|
-
* `delay` milliseconds, the internal counter is reset).
|
|
18
|
-
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
19
|
-
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
20
|
-
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
21
|
-
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
22
|
-
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
23
|
-
*
|
|
24
|
-
* @returns {Function} A new, throttled, function.
|
|
25
|
-
*/
|
|
26
|
-
function throttle (delay, callback, options) {
|
|
27
|
-
var _ref = options || {},
|
|
28
|
-
_ref$noTrailing = _ref.noTrailing,
|
|
29
|
-
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
30
|
-
_ref$noLeading = _ref.noLeading,
|
|
31
|
-
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
32
|
-
_ref$debounceMode = _ref.debounceMode,
|
|
33
|
-
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
34
|
-
/*
|
|
35
|
-
* After wrapper has stopped being called, this timeout ensures that
|
|
36
|
-
* `callback` is executed at the proper times in `throttle` and `end`
|
|
37
|
-
* debounce modes.
|
|
38
|
-
*/
|
|
39
|
-
var timeoutID;
|
|
40
|
-
var cancelled = false;
|
|
41
|
-
|
|
42
|
-
// Keep track of the last time `callback` was executed.
|
|
43
|
-
var lastExec = 0;
|
|
44
|
-
|
|
45
|
-
// Function to clear existing timeout
|
|
46
|
-
function clearExistingTimeout() {
|
|
47
|
-
if (timeoutID) {
|
|
48
|
-
clearTimeout(timeoutID);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Function to cancel next exec
|
|
53
|
-
function cancel(options) {
|
|
54
|
-
var _ref2 = options || {},
|
|
55
|
-
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
56
|
-
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
57
|
-
clearExistingTimeout();
|
|
58
|
-
cancelled = !upcomingOnly;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/*
|
|
62
|
-
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
63
|
-
* functionality and when executed will limit the rate at which `callback`
|
|
64
|
-
* is executed.
|
|
65
|
-
*/
|
|
66
|
-
function wrapper() {
|
|
67
|
-
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
68
|
-
arguments_[_key] = arguments[_key];
|
|
69
|
-
}
|
|
70
|
-
var self = this;
|
|
71
|
-
var elapsed = Date.now() - lastExec;
|
|
72
|
-
if (cancelled) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Execute `callback` and update the `lastExec` timestamp.
|
|
77
|
-
function exec() {
|
|
78
|
-
lastExec = Date.now();
|
|
79
|
-
callback.apply(self, arguments_);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/*
|
|
83
|
-
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
84
|
-
* to allow future `callback` executions.
|
|
85
|
-
*/
|
|
86
|
-
function clear() {
|
|
87
|
-
timeoutID = undefined;
|
|
88
|
-
}
|
|
89
|
-
if (!noLeading && debounceMode && !timeoutID) {
|
|
90
|
-
/*
|
|
91
|
-
* Since `wrapper` is being called for the first time and
|
|
92
|
-
* `debounceMode` is true (at begin), execute `callback`
|
|
93
|
-
* and noLeading != true.
|
|
94
|
-
*/
|
|
95
|
-
exec();
|
|
96
|
-
}
|
|
97
|
-
clearExistingTimeout();
|
|
98
|
-
if (debounceMode === undefined && elapsed > delay) {
|
|
99
|
-
if (noLeading) {
|
|
100
|
-
/*
|
|
101
|
-
* In throttle mode with noLeading, if `delay` time has
|
|
102
|
-
* been exceeded, update `lastExec` and schedule `callback`
|
|
103
|
-
* to execute after `delay` ms.
|
|
104
|
-
*/
|
|
105
|
-
lastExec = Date.now();
|
|
106
|
-
if (!noTrailing) {
|
|
107
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
/*
|
|
111
|
-
* In throttle mode without noLeading, if `delay` time has been exceeded, execute
|
|
112
|
-
* `callback`.
|
|
113
|
-
*/
|
|
114
|
-
exec();
|
|
115
|
-
}
|
|
116
|
-
} else if (noTrailing !== true) {
|
|
117
|
-
/*
|
|
118
|
-
* In trailing throttle mode, since `delay` time has not been
|
|
119
|
-
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
120
|
-
* recent execution.
|
|
121
|
-
*
|
|
122
|
-
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
123
|
-
* after `delay` ms.
|
|
124
|
-
*
|
|
125
|
-
* If `debounceMode` is false (at end), schedule `callback` to
|
|
126
|
-
* execute after `delay` ms.
|
|
127
|
-
*/
|
|
128
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
wrapper.cancel = cancel;
|
|
132
|
-
|
|
133
|
-
// Return the wrapper function.
|
|
134
|
-
return wrapper;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* eslint-disable no-undefined */
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
141
|
-
* guarantees that a function is only executed a single time, either at the
|
|
142
|
-
* very beginning of a series of calls, or at the very end.
|
|
143
|
-
*
|
|
144
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
145
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
146
|
-
* to `callback` when the debounced-function is executed.
|
|
147
|
-
* @param {object} [options] - An object to configure options.
|
|
148
|
-
* @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
149
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
150
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
151
|
-
*
|
|
152
|
-
* @returns {Function} A new, debounced function.
|
|
153
|
-
*/
|
|
154
|
-
function debounce (delay, callback, options) {
|
|
155
|
-
var _ref = {},
|
|
156
|
-
_ref$atBegin = _ref.atBegin,
|
|
157
|
-
atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
|
|
158
|
-
return throttle(delay, callback, {
|
|
159
|
-
debounceMode: atBegin !== false
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
class Breakpoint {
|
|
164
|
-
constructor() {
|
|
165
|
-
this.breakpoints = [
|
|
166
|
-
{ key: 'xl', device: 'desktop', minWidth: 1280 },
|
|
167
|
-
{ key: 'lg', device: 'desktop', minWidth: 1024 },
|
|
168
|
-
{ key: 'md', device: 'tablet', minWidth: 780 },
|
|
169
|
-
{ key: 'sm', device: 'tablet', minWidth: 600 },
|
|
170
|
-
{ key: 'xs', device: 'mobile', minWidth: 0 },
|
|
171
|
-
];
|
|
172
|
-
this.resizeObserver = globalThis.ResizeObserver
|
|
173
|
-
? new ResizeObserver(() => this.updateCurrentBreakpoint())
|
|
174
|
-
: null;
|
|
175
|
-
this.updateCurrentBreakpoint = throttle(50, (options = { emitEvents: true }) => {
|
|
176
|
-
const previousBreakpoint = this.currentBreakpoint;
|
|
177
|
-
const newBreakpoint = this.breakpoints.find(breakpoint => {
|
|
178
|
-
return breakpoint.minWidth <= innerWidth;
|
|
179
|
-
});
|
|
180
|
-
if (!newBreakpoint)
|
|
181
|
-
return;
|
|
182
|
-
this.currentBreakpoint = newBreakpoint;
|
|
183
|
-
if (!options.emitEvents)
|
|
184
|
-
return;
|
|
185
|
-
Object.keys(this.currentBreakpoint)
|
|
186
|
-
.filter(key => !previousBreakpoint || this.currentBreakpoint[key] !== previousBreakpoint[key])
|
|
187
|
-
.forEach((key) => this.dispatchEvent(key));
|
|
188
|
-
});
|
|
189
|
-
if (this.resizeObserver) {
|
|
190
|
-
this.updateCurrentBreakpoint({ emitEvents: false });
|
|
191
|
-
this.resizeObserver.observe(document.body);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
dispatchEvent(property) {
|
|
195
|
-
globalThis.dispatchEvent(new CustomEvent(`postBreakpoint:${property}`, { detail: this.currentBreakpoint[property] }));
|
|
196
|
-
}
|
|
197
|
-
get(property) {
|
|
198
|
-
this.updateCurrentBreakpoint({ emitEvents: false });
|
|
199
|
-
return this.currentBreakpoint[property];
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
const breakpoint = new Breakpoint();
|
|
203
|
-
|
|
204
|
-
exports.breakpoint = breakpoint;
|
|
205
|
-
exports.debounce = debounce;
|
|
206
|
-
exports.throttle = throttle;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import localeEn from "air-datepicker/locale/en";
|
|
2
|
-
import localeDe from "air-datepicker/locale/de";
|
|
3
|
-
import localeIt from "air-datepicker/locale/it";
|
|
4
|
-
import localeFr from "air-datepicker/locale/fr";
|
|
5
|
-
export const localesMap = {
|
|
6
|
-
en: localeEn,
|
|
7
|
-
fr: localeFr,
|
|
8
|
-
de: localeDe,
|
|
9
|
-
it: localeIt,
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,i,e){var s,n=e||{},o=n.noTrailing,d=void 0!==o&&o,h=n.noLeading,v=void 0!==h&&h,c=n.debounceMode,r=void 0===c?void 0:c,a=!1,u=0;function m(){s&&clearTimeout(s)}function l(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var h=this,c=Date.now()-u;function l(){u=Date.now(),i.apply(h,n)}function b(){s=void 0}a||(v||!r||s||l(),m(),void 0===r&&c>t?v?(u=Date.now(),d||(s=setTimeout(r?b:l,t))):l():!0!==d&&(s=setTimeout(r?b:l,void 0===r?t-c:t)))}return l.cancel=function(t){var i=(t||{}).upcomingOnly,e=void 0!==i&&i;m(),a=!e},l}function i(i,e){var s={}.atBegin;return t(i,e,{debounceMode:!1!==(void 0!==s&&s)})}const e=new class{constructor(){this.breakpoints=[{key:"xl",device:"desktop",minWidth:1280},{key:"lg",device:"desktop",minWidth:1024},{key:"md",device:"tablet",minWidth:780},{key:"sm",device:"tablet",minWidth:600},{key:"xs",device:"mobile",minWidth:0}],this.resizeObserver=globalThis.ResizeObserver?new ResizeObserver((()=>this.updateCurrentBreakpoint())):null,this.updateCurrentBreakpoint=t(50,((t={emitEvents:!0})=>{const i=this.currentBreakpoint,e=this.breakpoints.find((t=>t.minWidth<=innerWidth));e&&(this.currentBreakpoint=e,t.emitEvents&&Object.keys(this.currentBreakpoint).filter((t=>!i||this.currentBreakpoint[t]!==i[t])).forEach((t=>this.dispatchEvent(t))))})),this.resizeObserver&&(this.updateCurrentBreakpoint({emitEvents:!1}),this.resizeObserver.observe(document.body))}dispatchEvent(t){globalThis.dispatchEvent(new CustomEvent(`postBreakpoint:${t}`,{detail:this.currentBreakpoint[t]}))}get(t){return this.updateCurrentBreakpoint({emitEvents:!1}),this.currentBreakpoint[t]}};export{e as b,i as d,t}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,c as n,h as o,a as r,t as i}from"./index.js";import{d as s,g as a}from"./p-B2BDAeHI.js";import"./p-BQ3HlJPr.js";import{v as c}from"./p-NDMNbu5d.js";const l=["top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"],p=Math.min,u=Math.max,f=Math.round,h=Math.floor,d=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return u(t,p(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function w(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function x(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function S(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function E(t){return x(S(t))}function T(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const k=["left","right"],M=["right","left"],A=["top","bottom"],O=["bottom","top"];function H(t){const e=w(t);return m[e]+t.slice(e.length)}function L(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function $(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function D(t,e,n){let{reference:o,floating:r}=t;const i=S(e),s=E(e),a=b(s),c=w(e),l="y"===i,p=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:p,y:o.y-r.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-r.width,y:u};break;default:h={x:o.x,y:o.y}}switch(y(e)){case"start":h[s]-=f*(n&&l?-1:1);break;case"end":h[s]+=f*(n&&l?-1:1)}return h}async function P(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=v(e,t),d=L(h),m=a[f?"floating"===u?"reference":"floating":u],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:p,strategy:c})),w="floating"===u?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:c}):w);return{top:(g.top-b.top+d.top)/x.y,bottom:(b.bottom-g.bottom+d.bottom)/x.y,left:(g.left-b.left+d.left)/x.x,right:(b.right-g.right+d.right)/x.x}}function z(t){const e=p(...t.map((t=>t.left))),n=p(...t.map((t=>t.top)));return{x:e,y:n,width:u(...t.map((t=>t.right)))-e,height:u(...t.map((t=>t.bottom)))-n}}const C=new Set(["left","top"]);function F(){return"undefined"!=typeof window}function R(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!F()&&(t instanceof Node||t instanceof j(t).Node)}function N(t){return!!F()&&(t instanceof Element||t instanceof j(t).Element)}function G(t){return!!F()&&(t instanceof HTMLElement||t instanceof j(t).HTMLElement)}function I(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function q(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==r&&"contents"!==r}function J(t){return/^(table|td|th)$/.test(R(t))}function Q(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const V=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Y=t=>!!t&&"none"!==t;let _;function K(t){const e=N(t)?tt(t):t;return Y(e.transform)||Y(e.translate)||Y(e.scale)||Y(e.rotate)||Y(e.perspective)||!U()&&(Y(e.backdropFilter)||Y(e.filter))||V.test(e.willChange||"")||X.test(e.contain||"")}function U(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function Z(t){return/^(html|body|#document)$/.test(R(t))}function tt(t){return j(t).getComputedStyle(t)}function et(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nt(t){if("html"===R(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||W(t);return I(e)?e.host:e}function ot(t){const e=nt(t);return Z(e)?t.ownerDocument?t.ownerDocument.body:t.body:G(e)&&q(e)?e:ot(e)}function rt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=ot(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),s=j(r);if(i){const t=it(s);return e.concat(s,s.visualViewport||[],q(r)?r:[],t&&n?rt(t):[])}return e.concat(r,rt(r,[],n))}function it(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=tt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=G(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=f(n)!==i||f(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function at(t){return N(t)?t:t.contextElement}function ct(t){const e=at(t);if(!G(e))return d(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=st(e);let s=(i?f(n.width):n.width)/o,a=(i?f(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const lt=d(0);function pt(t){const e=j(t);return U()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:lt}function ut(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=at(t);let s=d(1);e&&(o?N(o)&&(s=ct(o)):s=ct(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(i,n,o)?pt(i):d(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,p=r.width/s.x,u=r.height/s.y;if(i){const t=j(i),e=o&&N(o)?j(o):o;let n=t,r=it(n);for(;r&&o&&e!==n;){const t=ct(r),e=r.getBoundingClientRect(),o=tt(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,p*=t.x,u*=t.y,c+=i,l+=s,n=j(r),r=it(n)}}return $({width:p,height:u,x:c,y:l})}function ft(t,e){const n=et(t).scrollLeft;return e?e.left+n:ut(W(t)).left+n}function ht(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-ft(t,n),y:n.top+e.scrollTop}}const dt=new Set(["absolute","fixed"]);function mt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=W(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const t=U();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,c=r.offsetTop)}const l=ft(o);if(l<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(o.clientWidth-e.clientWidth-r);s<=25&&(i-=s)}else l<=25&&(i+=l);return{width:i,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=et(t),o=t.ownerDocument.body,r=u(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=u(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ft(t);const a=-n.scrollTop;return"rtl"===tt(o).direction&&(s+=u(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(W(t));else if(N(e))o=function(t,e){const n=ut(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=G(t)?ct(t):d(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=pt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return $(o)}function gt(t,e){const n=nt(t);return!(n===e||!N(n)||Z(n))&&("fixed"===tt(n).position||gt(n,e))}function vt(t,e,n){const o=G(e),r=W(e),i="fixed"===n,s=ut(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=d(0);function l(){c.x=ft(r)}if(o||!o&&!i)if(("body"!==R(e)||q(r))&&(a=et(e)),o){const t=ut(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&l();i&&!o&&r&&l();const p=!r||o||i?d(0):ht(r,a);return{x:s.left+a.scrollLeft-c.x-p.x,y:s.top+a.scrollTop-c.y-p.y,width:s.width,height:s.height}}function wt(t){return"static"===tt(t).position}function yt(t,e){if(!G(t)||"fixed"===tt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=j(t);if(Q(t))return n;if(!G(t)){let e=nt(t);for(;e&&!Z(e);){if(N(e)&&!wt(e))return e;e=nt(e)}return n}let o=yt(t,e);for(;o&&J(o)&&wt(o);)o=yt(o,e);return o&&Z(o)&&wt(o)&&!K(o)?n:o||function(t){let e=nt(t);for(;G(e)&&!Z(e);){if(K(e))return e;if(Q(e))return null;e=nt(e)}return null}(t)||n}const bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=W(o),a=!!e&&Q(e.floating);if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=d(1);const p=d(0),u=G(o);if((u||!u&&!i)&&(("body"!==R(o)||q(s))&&(c=et(o)),G(o))){const t=ut(o);l=ct(o),p.x=t.x+o.clientLeft,p.y=t.y+o.clientTop}const f=!s||u||i?d(0):ht(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+p.x+f.x,y:n.y*l.y-c.scrollTop*l.y+p.y+f.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?Q(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter((t=>N(t)&&"body"!==R(t))),r=null;const i="fixed"===tt(t).position;let s=i?nt(t):t;for(;N(s)&&!Z(s);){const e=tt(s),n=K(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&dt.has(r.position)||q(s)&&!n&>(t,s))?o=o.filter((t=>t!==s)):r=e,s=nt(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=mt(e,n,r);return t.top=u(o.top,t.top),t.right=p(o.right,t.right),t.bottom=p(o.bottom,t.bottom),t.left=u(o.left,t.left),t}),mt(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,o=await n(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=st(t);return{width:e,height:n}},getScale:ct,isElement:N,isRTL:function(t){return"rtl"===tt(t).direction}};function St(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Et=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=w(n),a=y(n),c="y"===S(n),l=C.has(s)?-1:1,p=i&&c?-1:1,u=v(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:d}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),c?{x:h*p,y:f*l}:{x:f*l,y:h*p}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...g}=v(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const x=w(r),L=S(a),$=w(a)===a,D=await(null==c.isRTL?void 0:c.isRTL(l.floating)),P=f||($||!m?[H(a)]:function(t){const e=H(t);return[T(t),e,T(e)]}(a)),z="none"!==d;!f&&z&&P.push(...function(t,e,n,o){const r=y(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?M:k:e?k:M;case"left":case"right":return e?A:O;default:return[]}}(w(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(T)))),i}(a,m,d,D));const C=[a,...P],F=await c.detectOverflow(e,g),R=[];let j=(null==(o=i.flip)?void 0:o.overflows)||[];if(p&&R.push(F[x]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=y(t),r=E(t),i=b(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=H(s)),[s,H(s)]}(r,s,D);R.push(F[t[0]],F[t[1]])}if(j=[...j,{placement:r,overflows:R}],!R.every((t=>t<=0))){var W,B;const t=((null==(W=i.flip)?void 0:W.index)||0)+1,e=C[t];if(e&&("alignment"!==u||L===S(e)||j.every((t=>S(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:j},reset:{placement:e}};let n=null==(B=j.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!n)switch(h){case"bestFit":{var N;const t=null==(N=j.filter((t=>{if(z){const e=S(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:N[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...l}=v(t,e),f=await s.detectOverflow(e,l),h=w(r),d=y(r),m="y"===S(r),{width:g,height:x}=i.floating;let b,E;"top"===h||"bottom"===h?(b=h,E=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(E=h,b="end"===d?"top":"bottom");const T=x-f.top-f.bottom,k=g-f.left-f.right;let M=p(x-f[b],T),A=p(g-f[E],k);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=k),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=u(f.left,0),e=u(f.right,0),n=u(f.top,0),o=u(f.bottom,0);m?A=g-2*(0!==t||0!==e?t+e:u(f.left,f.right)):M=x-2*(0!==n||0!==o?n+o:u(f.top,f.bottom))}await c({...e,availableWidth:A,availableHeight:M});const O=await s.getDimensions(a.floating);return g!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}},Mt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=e,{padding:a=2,x:c,y:l}=v(t,e),f=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>$(z(t))))}(f),d=$(z(f)),m=L(a),g=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=l)return h.find((t=>c>t.left-m.left&&c<t.right+m.right&&l>t.top-m.top&&l<t.bottom+m.bottom))||d;if(h.length>=2){if("y"===S(n)){const t=h[0],e=h[h.length-1],o="top"===w(n),r=t.top,i=e.bottom,s=o?t.left:e.left,a=o?t.right:e.right;return{top:r,bottom:i,left:s,right:a,width:a-s,height:i-r,x:s,y:r}}const t="left"===w(n),e=u(...h.map((t=>t.right))),o=p(...h.map((t=>t.left))),r=h.filter((n=>t?n.left===o:n.right===e)),i=r[0].top,s=r[r.length-1].bottom;return{top:i,bottom:s,left:o,right:e,width:e-o,height:s-i,x:o,y:i}}return d}},floating:o.floating,strategy:s});return r.reference.x!==g.reference.x||r.reference.y!==g.reference.y||r.reference.width!==g.reference.width||r.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};var At=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},Ot=new WeakMap;function Ht(t,e,n){Ot.set(t,setTimeout((()=>{Ot.has(t)&&t.dispatchEvent(new At("toggle",{cancelable:!1,oldState:e,newState:n}))}),0))}var Lt=globalThis.ShadowRoot||function(){},$t=globalThis.HTMLDialogElement||function(){},Dt=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Ct=new WeakMap;function Ft(t){return Ct.get(t)||"hidden"}var Rt=new WeakMap;function jt(t){return[...t].pop()}function Wt(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Ft(t)||!e&&"hidden"!==Ft(t)||t instanceof $t&&t.hasAttribute("open")||document.fullscreenElement===t)}function Bt(t){if(!t)return 0;const e=Pt.get(document)||new Set,n=zt.get(document)||new Set;return n.has(t)?[...n].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Nt(t){let e;const n=zt.get(t)||new Set,o=Pt.get(t)||new Set,r=n.size>0?n:o.size>0?o:null;return r?(e=jt(r),e.isConnected?e:(r.delete(e),Nt(t))):null}function Gt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function It(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?It(t.parentNode):t}function qt(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Ct.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||It(t))instanceof Lt&&(t=t.host),t instanceof Document)return}}function Jt(t,e){const n=new Map;let o=0;for(const t of e||[])n.set(t,o),o+=1;n.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,i=null,s=null;for(;!o;){if(i=qt(e)||null,null===i)return;if(!n.has(i))return;"hint"!==t.popover&&"auto"!==i.popover||(o=!0),o||(e=i.parentElement)}s=n.get(i),(null===r||n.get(r)<s)&&(r=i)}(t.parentElement||It(t)),r}function Qt(t){return!(t.hidden||t instanceof Lt||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Xt(t){if(!Wt(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new At("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Wt(t,!1))return;let n=!1;const o=t.popover;let r=null;const i=Jt(t,Pt.get(e)||new Set),s=Jt(t,zt.get(e)||new Set);if("auto"===o&&(_t(zt.get(e)||new Set,n,!0),Ut(i||e,n,!0),r="auto"),"hint"===o&&(s?(Ut(s,n,!0),r="hint"):(_t(zt.get(e)||new Set,n,!0),i?(Ut(i,n,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!Wt(t,!1))return;Nt(e)||(n=!0),"auto"===r?(Pt.has(e)||Pt.set(e,new Set),Pt.get(e).add(t)):"hint"===r&&(zt.has(e)||zt.set(e,new Set),zt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var c;t.classList.add(":popover-open"),Ct.set(t,"showing"),Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t),ne(Rt.get(t),!0),c=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}const o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){if(Qt(r))return r;r=o.nextNode()}}(c)?.focus(),n&&a&&"auto"===t.popover&&Vt.set(t,a),Ht(t,"closed","open")}function Yt(t,e=!1,n=!1){if(!Wt(t,!0))return;const o=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Ut(t,e,n),!Wt(t,!0)))return;const r=Pt.get(o)||new Set,i=r.has(t)&&jt(r)===t;if(ne(Rt.get(t),!1),Rt.delete(t),n&&(t.dispatchEvent(new At("beforetoggle",{oldState:"open",newState:"closed"})),i&&jt(r)!==t&&Ut(t,e,n),!Wt(t,!0)))return;Dt.get(o)?.delete(t),r.delete(t),zt.get(o)?.delete(t),t.classList.remove(":popover-open"),Ct.set(t,"hidden"),n&&Ht(t,"open","closed");const s=Vt.get(t);s&&(Vt.delete(t),e&&s.focus())}function _t(t,e=!1,n=!1){let o=Gt(t);for(;o;)Yt(o,e,n),o=Gt(t)}function Kt(t,e,n,o){let r=!1,i=!1;for(;r||!i;){i=!0;let s=null,a=!1;for(const n of e)if(n===t)a=!0;else if(a){s=n;break}if(!s)return;for(;"showing"===Ft(s)&&e.size;)Yt(jt(e),n,o);e.has(t)&&jt(e)!==t&&(r=!0),r&&(o=!1)}}function Ut(t,e,n){const o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,n=!1){let o=Nt(t);for(;o;)Yt(o,e,n),o=Nt(t)}(o,e,n);zt.get(o)?.has(t)?Kt(t,zt.get(o),e,n):(_t(zt.get(o)||new Set,e,n),Pt.get(o)?.has(t)&&Kt(t,Pt.get(o),e,n))}var Zt=new WeakMap;function te(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const n=e.ownerDocument;if(!Nt(n))return;const o=function(t){const e=qt(t),n=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||It(t))instanceof Lt&&(t=t.host),t instanceof Document)return}}(t);return Bt(e)>Bt(n)?e:n}(e);if(o&&"pointerdown"===t.type)Zt.set(n,o);else if("pointerup"===t.type){const t=Zt.get(n)===o;Zt.delete(n),t&&Ut(o||n,!1,!0)}}var ee=new WeakMap;function ne(t,e=!1){if(!t)return;ee.has(t)||ee.set(t,t.getAttribute("aria-expanded"));const n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{const e=ee.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var oe=globalThis.ShadowRoot||function(){};function re(t,e,n){const o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var ie=/(^|[^\\]):popover-open\b/g;var se=null;function ae(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===se)try{(se=new CSSStyleSheet).replaceSync(e)}catch{se=!1}if(!1===se){const n=document.createElement("style");n.textContent=e,t instanceof Document?t.head.prepend(n):t.prepend(n)}else t.adoptedStyleSheets=[se,...t.adoptedStyleSheets]}const ce={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},le=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postBeforeShow=n(this,"postBeforeShow"),this.postShow=n(this,"postShow"),this.postHide=n(this,"postHide"),this.postBeforeToggle=n(this,"postBeforeToggle"),this.postToggle=n(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}validatePlacement(){s(this,"placement",l)}validateEdgeGap(){a(this,"edgeGap","number")}validateSafeSpace(){s(this,"safeSpace",["triangle","trapezoid"])}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ie,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||At,re(Document.prototype,"querySelector",t),re(Document.prototype,"querySelectorAll",t),re(Element.prototype,"querySelector",t),re(Element.prototype,"querySelectorAll",t),re(Element.prototype,"matches",t),re(Element.prototype,"closest",t),re(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Xt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Yt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Ct.get(this)&&void 0===t.force||!1===t.force?Yt(this,!0,!0):void 0!==t.force&&!0!==t.force||Xt(this),"showing"===Ct.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const n=e.call(this,t);return ae(n),n}}});const n=HTMLElement.prototype.attachInternals;n&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=n.call(this);return t.shadowRoot&&ae(t.shadowRoot),t}}});const o=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;const e=It(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof oe)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var i;r(HTMLButtonElement),r(HTMLInputElement),(i=document).addEventListener("click",(t=>{const e=t.composedPath(),n=e[0];if(!(n instanceof Element)||n?.shadowRoot)return;const o=It(n);if(!(o instanceof oe||o instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const n=Ft(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?Yt(e,!0,!0):Wt(e,!1)&&(Rt.set(e,t),Xt(e)))}(r),void t.preventDefault()):void 0})),i.addEventListener("keydown",(t=>{const e=t.key,n=t.target;t.defaultPrevented||!n||"Escape"!==e&&"Esc"!==e||Ut(n.ownerDocument,!0,!0)})),i.addEventListener("pointerdown",te),i.addEventListener("pointerup",te),ae(document)}()}componentDidLoad(){this.validatePlacement(),this.validateEdgeGap(),this.validateSafeSpace(),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){return this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ce[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let n;try{if(n=t(e),!n)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=n,"running"===n.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await n.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===n&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=at(t),f=r||i?[...l?rt(l):[],...rt(e)]:[];f.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=l&&a?function(t,e){let n,o=null;const r=W(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const l=t.getBoundingClientRect(),{left:f,top:d,width:m,height:g}=l;if(a||e(),!m||!g)return;const v={rootMargin:-h(d)+"px "+-h(r.clientWidth-(f+m))+"px "+-h(r.clientHeight-(d+g))+"px "+-h(f)+"px",threshold:u(0,p(1,c))||1};let w=!0;function y(e){const o=e[0].intersectionRatio;if(o!==c){if(!w)return s();o?s(!1,o):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==o||St(l,t.getBoundingClientRect())||s(),w=!1}try{o=new IntersectionObserver(y,{...v,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(y,v)}o.observe(t)}(!0),i}(l,n):null;let m,g=-1,v=null;s&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=v)||t.observe(e)}))),n()})),l&&!c&&v.observe(l),v.observe(e));let w=c?ut(t):null;return c&&function e(){const o=ut(t);w&&!St(w,o)&&n(),w=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=v)||t.disconnect(),v=null,c&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:e,y:n,middlewareData:o,placement:r}=await this.computeMainPosition(),i=r.split("-")[0];if(this.dynamicPlacement=i,this.host.style.left=`${e}px`,this.host.style.top=`${n}px`,this.arrow&&o.arrow){const{x:e,y:n}=o.arrow,r=t.STATIC_SIDES[i],s=Number.parseFloat(getComputedStyle(document.documentElement).fontSize),a=getComputedStyle(this.arrowRef).getPropertyValue("--arrow-size").trim(),c=-.5*(a.endsWith("rem")?Number.parseFloat(a)*s:Number.parseFloat(a));r&&Object.assign(this.arrowRef.style,{left:e?`${e}px`:"",top:n?`${n}px`:"",[r]:`${c}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(i)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),n=Tt({padding:this.getHeaderHeight(),crossAxis:!1}),o=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=v(t,e),p={x:n,y:o},u=await i.detectOverflow(e,l),f=S(w(r)),h=x(f);let d=p[h],m=p[f];s&&(d=g(d+u["y"===h?"top":"left"],d,d-u["y"===h?"bottom":"right"])),a&&(m=g(m+u["y"===f?"top":"left"],m,m-u["y"===f?"bottom":"right"]));const y=c.fn({...e,[h]:d,[f]:m});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[h]:s,[f]:a}}}}}}({padding:t,limiter:(i={offset:32},void 0===i&&(i={}),{options:i,fn(t){const{x:e,y:n,placement:o,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=v(i,t),p={x:e,y:n},u=S(o),f=x(u);let h=p[f],d=p[u];const m=v(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const t="y"===f?"height":"width",e=r.reference[f]-r.floating[t]+g.mainAxis,n=r.reference[f]+r.reference[t]-g.mainAxis;h<e?h=e:h>n&&(h=n)}if(l){var y,b;const t="y"===f?"width":"height",e=C.has(w(o)),n=r.reference[u]-r.floating[t]+(e&&(null==(y=s.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),i=r.reference[u]+r.reference[t]+(e?0:(null==(b=s.offset)?void 0:b[u])||0)-(e?g.crossAxis:0);d<n?d=n:d>i&&(d=i)}return{[f]:h,[u]:d}}})}),r=[Et(this.offset??(this.arrow?t+4:t)),Mt(),...e?[n,o]:[o,n],kt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}})];var i;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=v(t,e)||{};if(null==l)return{};const f=L(u),h={x:n,y:o},d=E(r),m=b(d),w=await s.getDimensions(l),x="y"===d,S=x?"top":"left",T=x?"bottom":"right",k=x?"clientHeight":"clientWidth",M=i.reference[m]+i.reference[d]-h[d]-i.floating[m],A=h[d]-i.reference[d],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let H=O?O[k]:0;H&&await(null==s.isElement?void 0:s.isElement(O))||(H=a.floating[k]||i.floating[m]);const $=M/2-A/2,D=H/2-w[m]/2-1,P=p(f[S],D),z=p(f[T],D),C=P,F=H-w[m]-z,R=H/2-w[m]/2+$,j=g(C,R,F),W=!c.arrow&&null!=y(r)&&R!==j&&i.reference[m]/2-(R<C?P:z)-w[m]/2<0,B=W?R<C?R-C:R-F:0;return{[d]:h[d]+B,data:{[d]:j,centerOffset:R-j-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,n)=>{const o=new Map,r={platform:bt,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:P},c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:p,y:u}=D(l,o,c),f=o,h=0;const d={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:v}=m,{x:w,y,data:x,reset:b}=await v({x:p,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});p=null!=w?w:p,u=null!=y?y:u,d[g]={...d[g],...x},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:p,y:u}=D(l,f,c))),n=-1)}return{x:p,y:u,placement:f,strategy:r,middlewareData:d}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(e){const n=this.eventTarget.getBoundingClientRect(),o="top"===e||"bottom"===e,r=((t,e,n)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?n.top:n.bottom,xStart:n.left,xEnd:n.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?n.left:n.right,yStart:n.top,yEnd:n.bottom}})(e,this.host.getBoundingClientRect(),n);t.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${r.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${r.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${r.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${r.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${r.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${r.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${r.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${r.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${r.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${r.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${r.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${r.trigger.yEnd}px`))}render(){return o(r,{key:"ef2247b951044fe3b26af9ab90e269812345c04b","data-version":c,popover:"auto"},o("div",{key:"81a28e7873922a830c193e31a14523245315f3e2",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"01bba4ef926779defb660d3d2b2d25c8cd030707","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("slot",{key:"8fa288a638da1cfed3285b6605c64e3b3ff7bc07"})))}get host(){return this}static get watchers(){return{placement:[{validatePlacement:0}],edgeGap:[{validateEdgeGap:0}],safeSpace:[{validateSafeSpace:0}]}}static get style(){return'@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{box-shadow:var(--post-device-elevation-300);width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host .arrow{--arrow-size: 0.5825rem;position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}'}},[257,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],offset:[2],arrow:[4],safeSpace:[513,"safe-space"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]},void 0,{placement:[{validatePlacement:0}],edgeGap:[{validateEdgeGap:0}],safeSpace:[{validateSafeSpace:0}]}]);function pe(){"undefined"!=typeof customElements&&["post-popovercontainer"].forEach((t=>{"post-popovercontainer"===t&&(customElements.get(i(t))||customElements.define(i(t),le))}))}le.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},le.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],pe();export{le as P,l as a,pe as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,i,e){var s,n=e||{},o=n.noTrailing,d=void 0!==o&&o,h=n.noLeading,v=void 0!==h&&h,c=n.debounceMode,r=void 0===c?void 0:c,a=!1,u=0;function m(){s&&clearTimeout(s)}function l(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var h=this,c=Date.now()-u;function l(){u=Date.now(),i.apply(h,n)}function b(){s=void 0}a||(v||!r||s||l(),m(),void 0===r&&c>t?v?(u=Date.now(),d||(s=setTimeout(r?b:l,t))):l():!0!==d&&(s=setTimeout(r?b:l,void 0===r?t-c:t)))}return l.cancel=function(t){var i=(t||{}).upcomingOnly,e=void 0!==i&&i;m(),a=!e},l}function i(i,e){var s={}.atBegin;return t(i,e,{debounceMode:!1!==(void 0!==s&&s)})}const e=new class{constructor(){this.breakpoints=[{key:"xl",device:"desktop",minWidth:1280},{key:"lg",device:"desktop",minWidth:1024},{key:"md",device:"tablet",minWidth:780},{key:"sm",device:"tablet",minWidth:600},{key:"xs",device:"mobile",minWidth:0}],this.resizeObserver=globalThis.ResizeObserver?new ResizeObserver((()=>this.updateCurrentBreakpoint())):null,this.updateCurrentBreakpoint=t(50,((t={emitEvents:!0})=>{const i=this.currentBreakpoint,e=this.breakpoints.find((t=>t.minWidth<=innerWidth));e&&(this.currentBreakpoint=e,t.emitEvents&&Object.keys(this.currentBreakpoint).filter((t=>!i||this.currentBreakpoint[t]!==i[t])).forEach((t=>this.dispatchEvent(t))))})),this.resizeObserver&&(this.updateCurrentBreakpoint({emitEvents:!1}),this.resizeObserver.observe(document.body))}dispatchEvent(t){globalThis.dispatchEvent(new CustomEvent(`postBreakpoint:${t}`,{detail:this.currentBreakpoint[t]}))}get(t){return this.updateCurrentBreakpoint({emitEvents:!1}),this.currentBreakpoint[t]}};export{e as b,i as d,t}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t="10.0.0-next.68";export{t as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,p as e,H as o,h as i,a as r}from"./index.js";import{v as n}from"./p-NDMNbu5d.js";import{d as a,b as c}from"./p-B2BDAeHI.js";import"./p-BQ3HlJPr.js";import{d as s}from"./p-rEK_D60T.js";const d=["button","submit","reset"],b=["manual","auto"],l=["default","small"],v=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.buttonType="button",this.placement="auto",this.size="default"}validateButtonType(){a(this,"buttonType",d)}validatePlacement(){c(this,"placement",b)}validateSize(){c(this,"size",l)}componentDidLoad(){this.checkContent()}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){this.validateButtonType(),this.validatePlacement(),this.validateSize(),this.host.querySelector(".visually-hidden").textContent||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return i(r,{key:"130f1b06ef428564f8e0b57351f28b4ee64c6d47","data-version":n},i("button",{key:"710173d4918e16b2511316ca55caf59aab400dc9",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm"},i("post-icon",{key:"ddbce04c23089ccb25da9717191d3e0cf86f9007","aria-hidden":"true",name:"closex"}),i("span",{key:"886145ced526930d35aa96922a15a98a8ad8d52c",class:"visually-hidden"},i("slot",{key:"4c88b414ba1abd99103437afc4ac3e3e33fbdf15"}))))}get host(){return this}static get watchers(){return{buttonType:[{validateButtonType:0}],placement:[{validatePlacement:0}],size:[{validateSize:0}]}}static get style(){return".btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash)}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg);color:var(--post-scheme-color-interactive-button-primary-disabled-fg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton[size=small] .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}post-closebutton:not([placement]),post-closebutton[placement=auto]{position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}post-closebutton .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}"}},[260,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]},void 0,{buttonType:[{validateButtonType:0}],placement:[{validatePlacement:0}],size:[{validateSize:0}]}]);function h(){"undefined"!=typeof customElements&&["post-closebutton","post-icon"].forEach((e=>{switch(e){case"post-closebutton":customElements.get(t(e))||customElements.define(t(e),v);break;case"post-icon":customElements.get(t(e))||s()}}))}h();export{v as P,h as d}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
5
|
-
* execution of handlers on events like resize and scroll.
|
|
6
|
-
*
|
|
7
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
8
|
-
* are most useful.
|
|
9
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
10
|
-
* as-is, to `callback` when the throttled-function is executed.
|
|
11
|
-
* @param {object} [options] - An object to configure options.
|
|
12
|
-
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
13
|
-
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
14
|
-
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
15
|
-
* `delay` milliseconds, the internal counter is reset).
|
|
16
|
-
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
17
|
-
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
18
|
-
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
19
|
-
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
20
|
-
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
21
|
-
*
|
|
22
|
-
* @returns {Function} A new, throttled, function.
|
|
23
|
-
*/
|
|
24
|
-
function throttle (delay, callback, options) {
|
|
25
|
-
var _ref = options || {},
|
|
26
|
-
_ref$noTrailing = _ref.noTrailing,
|
|
27
|
-
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
28
|
-
_ref$noLeading = _ref.noLeading,
|
|
29
|
-
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
30
|
-
_ref$debounceMode = _ref.debounceMode,
|
|
31
|
-
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
32
|
-
/*
|
|
33
|
-
* After wrapper has stopped being called, this timeout ensures that
|
|
34
|
-
* `callback` is executed at the proper times in `throttle` and `end`
|
|
35
|
-
* debounce modes.
|
|
36
|
-
*/
|
|
37
|
-
var timeoutID;
|
|
38
|
-
var cancelled = false;
|
|
39
|
-
|
|
40
|
-
// Keep track of the last time `callback` was executed.
|
|
41
|
-
var lastExec = 0;
|
|
42
|
-
|
|
43
|
-
// Function to clear existing timeout
|
|
44
|
-
function clearExistingTimeout() {
|
|
45
|
-
if (timeoutID) {
|
|
46
|
-
clearTimeout(timeoutID);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Function to cancel next exec
|
|
51
|
-
function cancel(options) {
|
|
52
|
-
var _ref2 = options || {},
|
|
53
|
-
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
54
|
-
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
55
|
-
clearExistingTimeout();
|
|
56
|
-
cancelled = !upcomingOnly;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/*
|
|
60
|
-
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
61
|
-
* functionality and when executed will limit the rate at which `callback`
|
|
62
|
-
* is executed.
|
|
63
|
-
*/
|
|
64
|
-
function wrapper() {
|
|
65
|
-
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
-
arguments_[_key] = arguments[_key];
|
|
67
|
-
}
|
|
68
|
-
var self = this;
|
|
69
|
-
var elapsed = Date.now() - lastExec;
|
|
70
|
-
if (cancelled) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Execute `callback` and update the `lastExec` timestamp.
|
|
75
|
-
function exec() {
|
|
76
|
-
lastExec = Date.now();
|
|
77
|
-
callback.apply(self, arguments_);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/*
|
|
81
|
-
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
82
|
-
* to allow future `callback` executions.
|
|
83
|
-
*/
|
|
84
|
-
function clear() {
|
|
85
|
-
timeoutID = undefined;
|
|
86
|
-
}
|
|
87
|
-
if (!noLeading && debounceMode && !timeoutID) {
|
|
88
|
-
/*
|
|
89
|
-
* Since `wrapper` is being called for the first time and
|
|
90
|
-
* `debounceMode` is true (at begin), execute `callback`
|
|
91
|
-
* and noLeading != true.
|
|
92
|
-
*/
|
|
93
|
-
exec();
|
|
94
|
-
}
|
|
95
|
-
clearExistingTimeout();
|
|
96
|
-
if (debounceMode === undefined && elapsed > delay) {
|
|
97
|
-
if (noLeading) {
|
|
98
|
-
/*
|
|
99
|
-
* In throttle mode with noLeading, if `delay` time has
|
|
100
|
-
* been exceeded, update `lastExec` and schedule `callback`
|
|
101
|
-
* to execute after `delay` ms.
|
|
102
|
-
*/
|
|
103
|
-
lastExec = Date.now();
|
|
104
|
-
if (!noTrailing) {
|
|
105
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
/*
|
|
109
|
-
* In throttle mode without noLeading, if `delay` time has been exceeded, execute
|
|
110
|
-
* `callback`.
|
|
111
|
-
*/
|
|
112
|
-
exec();
|
|
113
|
-
}
|
|
114
|
-
} else if (noTrailing !== true) {
|
|
115
|
-
/*
|
|
116
|
-
* In trailing throttle mode, since `delay` time has not been
|
|
117
|
-
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
118
|
-
* recent execution.
|
|
119
|
-
*
|
|
120
|
-
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
121
|
-
* after `delay` ms.
|
|
122
|
-
*
|
|
123
|
-
* If `debounceMode` is false (at end), schedule `callback` to
|
|
124
|
-
* execute after `delay` ms.
|
|
125
|
-
*/
|
|
126
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
wrapper.cancel = cancel;
|
|
130
|
-
|
|
131
|
-
// Return the wrapper function.
|
|
132
|
-
return wrapper;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/* eslint-disable no-undefined */
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
139
|
-
* guarantees that a function is only executed a single time, either at the
|
|
140
|
-
* very beginning of a series of calls, or at the very end.
|
|
141
|
-
*
|
|
142
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
143
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
144
|
-
* to `callback` when the debounced-function is executed.
|
|
145
|
-
* @param {object} [options] - An object to configure options.
|
|
146
|
-
* @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
147
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
148
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
149
|
-
*
|
|
150
|
-
* @returns {Function} A new, debounced function.
|
|
151
|
-
*/
|
|
152
|
-
function debounce (delay, callback, options) {
|
|
153
|
-
var _ref = {},
|
|
154
|
-
_ref$atBegin = _ref.atBegin,
|
|
155
|
-
atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
|
|
156
|
-
return throttle(delay, callback, {
|
|
157
|
-
debounceMode: atBegin !== false
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
class Breakpoint {
|
|
162
|
-
constructor() {
|
|
163
|
-
this.breakpoints = [
|
|
164
|
-
{ key: 'xl', device: 'desktop', minWidth: 1280 },
|
|
165
|
-
{ key: 'lg', device: 'desktop', minWidth: 1024 },
|
|
166
|
-
{ key: 'md', device: 'tablet', minWidth: 780 },
|
|
167
|
-
{ key: 'sm', device: 'tablet', minWidth: 600 },
|
|
168
|
-
{ key: 'xs', device: 'mobile', minWidth: 0 },
|
|
169
|
-
];
|
|
170
|
-
this.resizeObserver = globalThis.ResizeObserver
|
|
171
|
-
? new ResizeObserver(() => this.updateCurrentBreakpoint())
|
|
172
|
-
: null;
|
|
173
|
-
this.updateCurrentBreakpoint = throttle(50, (options = { emitEvents: true }) => {
|
|
174
|
-
const previousBreakpoint = this.currentBreakpoint;
|
|
175
|
-
const newBreakpoint = this.breakpoints.find(breakpoint => {
|
|
176
|
-
return breakpoint.minWidth <= innerWidth;
|
|
177
|
-
});
|
|
178
|
-
if (!newBreakpoint)
|
|
179
|
-
return;
|
|
180
|
-
this.currentBreakpoint = newBreakpoint;
|
|
181
|
-
if (!options.emitEvents)
|
|
182
|
-
return;
|
|
183
|
-
Object.keys(this.currentBreakpoint)
|
|
184
|
-
.filter(key => !previousBreakpoint || this.currentBreakpoint[key] !== previousBreakpoint[key])
|
|
185
|
-
.forEach((key) => this.dispatchEvent(key));
|
|
186
|
-
});
|
|
187
|
-
if (this.resizeObserver) {
|
|
188
|
-
this.updateCurrentBreakpoint({ emitEvents: false });
|
|
189
|
-
this.resizeObserver.observe(document.body);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
dispatchEvent(property) {
|
|
193
|
-
globalThis.dispatchEvent(new CustomEvent(`postBreakpoint:${property}`, { detail: this.currentBreakpoint[property] }));
|
|
194
|
-
}
|
|
195
|
-
get(property) {
|
|
196
|
-
this.updateCurrentBreakpoint({ emitEvents: false });
|
|
197
|
-
return this.currentBreakpoint[property];
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
const breakpoint = new Breakpoint();
|
|
201
|
-
|
|
202
|
-
export { breakpoint as b, debounce as d, throttle as t };
|