solid-ui 3.1.3-4 → 3.1.3-6
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/chunks/{menu-items-DKKcQrb6.js → DialogProvider-DphduSXG.js} +157 -56
- package/dist/chunks/DialogProvider-DphduSXG.js.map +1 -0
- package/dist/chunks/{account-BUAN8dcJ.js → account-CFhrB0LO.js} +23 -26
- package/dist/chunks/account-CFhrB0LO.js.map +1 -0
- package/dist/chunks/{auth-C5d3nG1T.js → auth-Cpf3HYqF.js} +32 -29
- package/dist/chunks/auth-Cpf3HYqF.js.map +1 -0
- package/dist/chunks/{avatar-CsuCQCRu.js → avatar-D281qln0.js} +8 -8
- package/dist/chunks/{avatar-CsuCQCRu.js.map → avatar-D281qln0.js.map} +1 -1
- package/dist/chunks/{button-GHRF3psH.js → button-DbKYu6-r.js} +7 -7
- package/dist/chunks/{button-GHRF3psH.js.map → button-DbKYu6-r.js.map} +1 -1
- package/dist/chunks/chevron-down-ujxRg3MD.js +10 -0
- package/dist/chunks/chevron-down-ujxRg3MD.js.map +1 -0
- package/dist/chunks/{combobox-eju-wypA.js → combobox-Dtgc8qqO.js} +135 -91
- package/dist/chunks/combobox-Dtgc8qqO.js.map +1 -0
- package/dist/chunks/{combobox-option-CW1ZwMC7.js → combobox-option-Ck0mu4Gc.js} +4 -4
- package/dist/chunks/{combobox-option-CW1ZwMC7.js.map → combobox-option-Ck0mu4Gc.js.map} +1 -1
- package/dist/chunks/{components-Dlw2zOvI.js → components-BlEGdx4i.js} +83 -15
- package/dist/chunks/components-BlEGdx4i.js.map +1 -0
- package/dist/chunks/{create-context-IPEkU7ze.js → context-DJ_8r7Oc.js} +8 -4
- package/dist/chunks/context-DJ_8r7Oc.js.map +1 -0
- package/dist/chunks/{decorators-CJJL4XBH.js → decorators-BiCkPd_3.js} +28 -35
- package/dist/chunks/decorators-BiCkPd_3.js.map +1 -0
- package/dist/chunks/{dialog-DmDA1aY8.js → dialog-DlBtmOm6.js} +105 -63
- package/dist/chunks/dialog-DlBtmOm6.js.map +1 -0
- package/dist/chunks/{dialog-content-C8VhHg5G.js → dialog-content-CMeH_BD7.js} +3 -3
- package/dist/chunks/{dialog-content-C8VhHg5G.js.map → dialog-content-CMeH_BD7.js.map} +1 -1
- package/dist/chunks/{dialog-footer-CtHFoTZS.js → dialog-footer-D0zzIMlx.js} +3 -3
- package/dist/chunks/{dialog-footer-CtHFoTZS.js.map → dialog-footer-D0zzIMlx.js.map} +1 -1
- package/dist/chunks/{dialog-header-D9jjujFf.js → dialog-header-DeC1iiLD.js} +3 -3
- package/dist/chunks/{dialog-header-D9jjujFf.js.map → dialog-header-DeC1iiLD.js.map} +1 -1
- package/dist/chunks/{dialogs-root-C4igEIk0.js → dialogs-root-BcUcRuAt.js} +10 -9
- package/dist/chunks/dialogs-root-BcUcRuAt.js.map +1 -0
- package/dist/chunks/{footer-CS8u8ycB.js → footer-Bxe4WPgl.js} +6 -6
- package/dist/chunks/{footer-CS8u8ycB.js.map → footer-Bxe4WPgl.js.map} +1 -1
- package/dist/chunks/{guard-CiRf-2tc.js → guard-Da3znlJI.js} +5 -5
- package/dist/chunks/{guard-CiRf-2tc.js.map → guard-Da3znlJI.js.map} +1 -1
- package/dist/chunks/{header-hptVqz21.js → header-Bqd2CEK3.js} +40 -40
- package/dist/chunks/{header-hptVqz21.js.map → header-Bqd2CEK3.js.map} +1 -1
- package/dist/chunks/input-Bkzi4zSV.js +311 -0
- package/dist/chunks/input-Bkzi4zSV.js.map +1 -0
- package/dist/chunks/{lit-CC2G_f_C.js → lit-C4H1jI4q.js} +110 -95
- package/dist/chunks/{lit-CC2G_f_C.js.map → lit-C4H1jI4q.js.map} +1 -1
- package/dist/chunks/{login-button-D3M_rY5D.js → login-button-C603hM0G.js} +10 -7
- package/dist/chunks/login-button-C603hM0G.js.map +1 -0
- package/dist/chunks/{logout-button-ChD3v11m.js → logout-button-Cxzpq-C3.js} +10 -7
- package/dist/chunks/logout-button-Cxzpq-C3.js.map +1 -0
- package/dist/chunks/menu-aQiqq1ET.js +3251 -0
- package/dist/chunks/menu-aQiqq1ET.js.map +1 -0
- package/dist/chunks/{menu-item-DoTy3MUu.js → menu-item-DBy4o-M4.js} +69 -55
- package/dist/chunks/menu-item-DBy4o-M4.js.map +1 -0
- package/dist/chunks/{photo-capture-COoxZRW_.js → photo-capture-tiBsdSbA.js} +20 -20
- package/dist/chunks/{photo-capture-COoxZRW_.js.map → photo-capture-tiBsdSbA.js.map} +1 -1
- package/dist/chunks/{provider-C7cgeyP2.js → provider-DZmdgerD.js} +7 -7
- package/dist/chunks/{provider-C7cgeyP2.js.map → provider-DZmdgerD.js.map} +1 -1
- package/dist/chunks/select-option-hd_d1RNj.js +195 -0
- package/dist/chunks/select-option-hd_d1RNj.js.map +1 -0
- package/dist/chunks/select-wczAzbZF.js +292 -0
- package/dist/chunks/select-wczAzbZF.js.map +1 -0
- package/dist/chunks/{signup-button-BE5-JSwt.js → signup-button-CsRaOUI4.js} +10 -7
- package/dist/chunks/signup-button-CsRaOUI4.js.map +1 -0
- package/dist/chunks/{src-Dk9GB6DL.js → src-BOU-JwWx.js} +3 -4
- package/dist/chunks/{src-Dk9GB6DL.js.map → src-BOU-JwWx.js.map} +1 -1
- package/dist/components/account/Account.cjs.js +8 -10
- package/dist/components/account/Account.cjs.js.map +1 -1
- package/dist/components/account/Account.d.ts.map +1 -1
- package/dist/components/account/Account.esm.js +7 -10
- package/dist/components/account/Account.esm.js.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js +26 -17
- package/dist/components/combobox/Combobox.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +5 -3
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.esm.js +130 -79
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.cjs.js +1 -1
- package/dist/components/dialog/Dialog.cjs.js.map +1 -1
- package/dist/components/dialog/Dialog.d.ts +3 -1
- package/dist/components/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/dialog/Dialog.esm.js +59 -60
- package/dist/components/dialog/Dialog.esm.js.map +1 -1
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.cjs.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
- package/dist/components/dialogs-root/DialogsRoot.d.ts.map +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js +4 -2
- package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/footer.js +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/header.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +2 -1
- package/dist/components/input/Input.cjs.js +17 -0
- package/dist/components/input/Input.cjs.js.map +1 -0
- package/dist/components/input/Input.d.ts +17 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/{chunks/menu-DCsLCND4.js → components/input/Input.esm.js} +157 -96
- package/dist/components/input/Input.esm.js.map +1 -0
- package/dist/components/input/Input.stories.d.ts +43 -0
- package/dist/components/input/Input.stories.d.ts.map +1 -0
- package/dist/components/input/Input.styles.cjs.js +2 -0
- package/dist/components/input/Input.styles.cjs.js.map +1 -0
- package/dist/components/input/Input.styles.esm.js +7 -0
- package/dist/components/input/Input.styles.esm.js.map +1 -0
- package/dist/components/input/index.cjs.js +2 -0
- package/dist/components/input/index.cjs.js.map +1 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.esm.js +7 -0
- package/dist/components/input/index.esm.js.map +1 -0
- package/dist/components/input.js +2 -0
- package/dist/components/login-button/LoginButton.cjs.js +1 -1
- package/dist/components/login-button/LoginButton.cjs.js.map +1 -1
- package/dist/components/login-button/LoginButton.d.ts +1 -0
- package/dist/components/login-button/LoginButton.d.ts.map +1 -1
- package/dist/components/login-button/LoginButton.esm.js +4 -1
- package/dist/components/login-button/LoginButton.esm.js.map +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button/LogoutButton.cjs.js +1 -1
- package/dist/components/logout-button/LogoutButton.cjs.js.map +1 -1
- package/dist/components/logout-button/LogoutButton.d.ts +1 -0
- package/dist/components/logout-button/LogoutButton.d.ts.map +1 -1
- package/dist/components/logout-button/LogoutButton.esm.js +4 -1
- package/dist/components/logout-button/LogoutButton.esm.js.map +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.cjs.js +13 -8
- package/dist/components/menu/Menu.cjs.js.map +1 -1
- package/dist/components/menu/Menu.d.ts +13 -8
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.esm.js +132 -88
- package/dist/components/menu/Menu.esm.js.map +1 -1
- package/dist/components/menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/menu/Menu.styles.cjs.js +2 -0
- package/dist/components/menu/Menu.styles.cjs.js.map +1 -0
- package/dist/components/menu/Menu.styles.esm.js +7 -0
- package/dist/components/menu/Menu.styles.esm.js.map +1 -0
- package/dist/components/menu-item/MenuItem.cjs.js +5 -7
- package/dist/components/menu-item/MenuItem.cjs.js.map +1 -1
- package/dist/components/menu-item/MenuItem.d.ts +2 -0
- package/dist/components/menu-item/MenuItem.d.ts.map +1 -1
- package/dist/components/menu-item/MenuItem.esm.js +61 -47
- package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.styles.cjs.js +1 -1
- package/dist/components/menu-item/MenuItem.styles.cjs.js.map +1 -1
- package/dist/components/menu-item/MenuItem.styles.esm.js +1 -1
- package/dist/components/menu-item/MenuItem.styles.esm.js.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/select/Select.cjs.js +21 -0
- package/dist/components/select/Select.cjs.js.map +1 -0
- package/dist/components/select/Select.d.ts +15 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/{menu-items/MenuItems.esm.js → select/Select.esm.js} +140 -65
- package/dist/components/select/Select.esm.js.map +1 -0
- package/dist/components/select/Select.stories.d.ts +27 -0
- package/dist/components/select/Select.stories.d.ts.map +1 -0
- package/dist/components/select/Select.styles.cjs.js +2 -0
- package/dist/components/select/Select.styles.cjs.js.map +1 -0
- package/dist/components/select/Select.styles.esm.js +7 -0
- package/dist/components/select/Select.styles.esm.js.map +1 -0
- package/dist/components/select/index.cjs.js +2 -1
- package/dist/components/select/index.cjs.js.map +1 -0
- package/dist/components/select/index.d.ts +3 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.esm.js +7 -3
- package/dist/components/select/index.esm.js.map +1 -0
- package/dist/components/select-option/SelectOption.cjs.js +2 -0
- package/dist/components/select-option/SelectOption.cjs.js.map +1 -0
- package/dist/components/select-option/SelectOption.d.ts +6 -0
- package/dist/components/select-option/SelectOption.d.ts.map +1 -0
- package/dist/components/select-option/SelectOption.esm.js +194 -0
- package/dist/components/select-option/SelectOption.esm.js.map +1 -0
- package/dist/components/select-option/index.cjs.js +2 -0
- package/dist/components/select-option/index.cjs.js.map +1 -0
- package/dist/components/select-option/index.d.ts +4 -0
- package/dist/components/select-option/index.d.ts.map +1 -0
- package/dist/components/select-option/index.esm.js +7 -0
- package/dist/components/select-option/index.esm.js.map +1 -0
- package/dist/components/select-option.js +2 -0
- package/dist/components/select.js +2 -2
- package/dist/components/signup-button/SignupButton.cjs.js +1 -1
- package/dist/components/signup-button/SignupButton.cjs.js.map +1 -1
- package/dist/components/signup-button/SignupButton.d.ts +1 -0
- package/dist/components/signup-button/SignupButton.d.ts.map +1 -1
- package/dist/components/signup-button/SignupButton.esm.js +4 -1
- package/dist/components/signup-button/SignupButton.esm.js.map +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components.js +24 -23
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +13 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -8
- package/dist/lib/auth/NoopAuth.cjs.js +1 -1
- package/dist/lib/auth/NoopAuth.cjs.js.map +1 -1
- package/dist/lib/auth/NoopAuth.esm.js +1 -1
- package/dist/lib/auth/NoopAuth.esm.js.map +1 -1
- package/dist/lib/components/index.cjs.js +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/components/index.esm.js +4 -1
- package/dist/lib/components/traits/DialogTrait.cjs.js +2 -0
- package/dist/lib/components/traits/DialogTrait.cjs.js.map +1 -0
- package/dist/lib/components/traits/DialogTrait.d.ts +13 -0
- package/dist/lib/components/traits/DialogTrait.d.ts.map +1 -0
- package/dist/lib/components/traits/DialogTrait.esm.js +16 -0
- package/dist/lib/components/traits/DialogTrait.esm.js.map +1 -0
- package/dist/lib/components/traits/InputTrait.cjs.js +2 -0
- package/dist/lib/components/traits/InputTrait.cjs.js.map +1 -0
- package/dist/lib/components/traits/InputTrait.d.ts +29 -0
- package/dist/lib/components/traits/InputTrait.d.ts.map +1 -0
- package/dist/lib/components/traits/InputTrait.esm.js +44 -0
- package/dist/lib/components/traits/InputTrait.esm.js.map +1 -0
- package/dist/lib/components/traits/WebComponentTrait.d.ts +11 -0
- package/dist/lib/components/traits/WebComponentTrait.d.ts.map +1 -0
- package/dist/lib/components/traits/index.cjs.js +1 -0
- package/dist/lib/components/traits/index.d.ts +6 -0
- package/dist/lib/components/traits/index.d.ts.map +1 -0
- package/dist/lib/components/traits/index.esm.js +2 -0
- package/dist/lib/components/web-component/WebComponent.cjs.js +1 -1
- package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
- package/dist/lib/components/web-component/WebComponent.d.ts +7 -0
- package/dist/lib/components/web-component/WebComponent.d.ts.map +1 -1
- package/dist/lib/components/web-component/WebComponent.esm.js +16 -0
- package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
- package/dist/lib/dialogs/Dialog.cjs.js +1 -1
- package/dist/lib/dialogs/Dialog.cjs.js.map +1 -1
- package/dist/lib/dialogs/Dialog.d.ts +6 -1
- package/dist/lib/dialogs/Dialog.d.ts.map +1 -1
- package/dist/lib/dialogs/Dialog.esm.js +6 -2
- package/dist/lib/dialogs/Dialog.esm.js.map +1 -1
- package/dist/lib/dialogs/context.cjs.js +1 -1
- package/dist/lib/dialogs/context.cjs.js.map +1 -1
- package/dist/lib/dialogs/context.d.ts +3 -0
- package/dist/lib/dialogs/context.d.ts.map +1 -1
- package/dist/lib/dialogs/context.esm.js +4 -3
- package/dist/lib/dialogs/context.esm.js.map +1 -1
- package/dist/lib/dialogs/events/close-dialog.cjs.js +1 -1
- package/dist/lib/dialogs/events/close-dialog.cjs.js.map +1 -1
- package/dist/lib/dialogs/events/close-dialog.d.ts +2 -1
- package/dist/lib/dialogs/events/close-dialog.d.ts.map +1 -1
- package/dist/lib/dialogs/events/close-dialog.esm.js +3 -2
- package/dist/lib/dialogs/events/close-dialog.esm.js.map +1 -1
- package/dist/lib/dialogs/helpers.cjs.js +1 -1
- package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
- package/dist/lib/dialogs/helpers.d.ts +2 -1
- package/dist/lib/dialogs/helpers.d.ts.map +1 -1
- package/dist/lib/dialogs/helpers.esm.js +3 -3
- package/dist/lib/dialogs/helpers.esm.js.map +1 -1
- package/dist/lib/dialogs/index.cjs.js +1 -1
- package/dist/lib/dialogs/index.esm.js +1 -1
- package/dist/loader.js +6 -8
- package/dist/solid-ui.js +1022 -447
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1022 -447
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/theme.css +1 -1
- package/package.json +3 -2
- package/dist/chunks/DialogProvider-BbWGIFN5.js +0 -211
- package/dist/chunks/DialogProvider-BbWGIFN5.js.map +0 -1
- package/dist/chunks/account-BUAN8dcJ.js.map +0 -1
- package/dist/chunks/auth-C5d3nG1T.js.map +0 -1
- package/dist/chunks/close-dialog-qpl1X44Q.js +0 -14
- package/dist/chunks/close-dialog-qpl1X44Q.js.map +0 -1
- package/dist/chunks/combobox-eju-wypA.js.map +0 -1
- package/dist/chunks/components-Dlw2zOvI.js.map +0 -1
- package/dist/chunks/consume-BefsVEGX.js +0 -49
- package/dist/chunks/consume-BefsVEGX.js.map +0 -1
- package/dist/chunks/context-ChcZyr30.js +0 -7
- package/dist/chunks/context-ChcZyr30.js.map +0 -1
- package/dist/chunks/context-ImtIQIYP.js +0 -7
- package/dist/chunks/context-ImtIQIYP.js.map +0 -1
- package/dist/chunks/create-context-IPEkU7ze.js.map +0 -1
- package/dist/chunks/decorators-CJJL4XBH.js.map +0 -1
- package/dist/chunks/dialog-DmDA1aY8.js.map +0 -1
- package/dist/chunks/dialogs-root-C4igEIk0.js.map +0 -1
- package/dist/chunks/login-button-D3M_rY5D.js.map +0 -1
- package/dist/chunks/logout-button-ChD3v11m.js.map +0 -1
- package/dist/chunks/menu-DCsLCND4.js.map +0 -1
- package/dist/chunks/menu-item-DoTy3MUu.js.map +0 -1
- package/dist/chunks/menu-items-DKKcQrb6.js.map +0 -1
- package/dist/chunks/provide-CqCWUUfi.js +0 -113
- package/dist/chunks/provide-CqCWUUfi.js.map +0 -1
- package/dist/chunks/select-bVnWqF4c.js +0 -560
- package/dist/chunks/select-bVnWqF4c.js.map +0 -1
- package/dist/chunks/signup-button-BE5-JSwt.js.map +0 -1
- package/dist/components/menu-items/MenuItems.cjs.js +0 -6
- package/dist/components/menu-items/MenuItems.cjs.js.map +0 -1
- package/dist/components/menu-items/MenuItems.d.ts +0 -8
- package/dist/components/menu-items/MenuItems.d.ts.map +0 -1
- package/dist/components/menu-items/MenuItems.esm.js.map +0 -1
- package/dist/components/menu-items/MenuItems.styles.cjs.js +0 -2
- package/dist/components/menu-items/MenuItems.styles.cjs.js.map +0 -1
- package/dist/components/menu-items/MenuItems.styles.esm.js +0 -7
- package/dist/components/menu-items/MenuItems.styles.esm.js.map +0 -1
- package/dist/components/menu-items/index.cjs.js +0 -2
- package/dist/components/menu-items/index.cjs.js.map +0 -1
- package/dist/components/menu-items/index.d.ts +0 -4
- package/dist/components/menu-items/index.d.ts.map +0 -1
- package/dist/components/menu-items/index.esm.js +0 -7
- package/dist/components/menu-items/index.esm.js.map +0 -1
- package/dist/components/menu-items.js +0 -2
- package/dist/lib/menus/context.cjs.js +0 -2
- package/dist/lib/menus/context.cjs.js.map +0 -1
- package/dist/lib/menus/context.d.ts +0 -7
- package/dist/lib/menus/context.d.ts.map +0 -1
- package/dist/lib/menus/context.esm.js +0 -7
- package/dist/lib/menus/context.esm.js.map +0 -1
- package/dist/lib/menus/index.cjs.js +0 -1
- package/dist/lib/menus/index.d.ts +0 -2
- package/dist/lib/menus/index.d.ts.map +0 -1
- package/dist/lib/menus/index.esm.js +0 -1
- package/dist/v2/components/forms/select/Select.cjs.js +0 -225
- package/dist/v2/components/forms/select/Select.cjs.js.map +0 -1
- package/dist/v2/components/forms/select/Select.esm.js +0 -394
- package/dist/v2/components/forms/select/Select.esm.js.map +0 -1
- package/dist/v2/components/forms/select/index.cjs.js +0 -2
- package/dist/v2/components/forms/select/index.cjs.js.map +0 -1
- package/dist/v2/components/forms/select/index.esm.js +0 -7
- package/dist/v2/components/forms/select/index.esm.js.map +0 -1
- package/dist/v2/components/forms/shared/downArrow.cjs.js +0 -9
- package/dist/v2/components/forms/shared/downArrow.cjs.js.map +0 -1
- package/dist/v2/components/forms/shared/downArrow.esm.js +0 -14
- package/dist/v2/components/forms/shared/downArrow.esm.js.map +0 -1
- package/dist/v2/components/forms/shared/keyboard.cjs.js +0 -2
- package/dist/v2/components/forms/shared/keyboard.cjs.js.map +0 -1
- package/dist/v2/components/forms/shared/keyboard.esm.js +0 -34
- package/dist/v2/components/forms/shared/keyboard.esm.js.map +0 -1
- package/dist/v2/components/forms/shared/listboxStyles.cjs.js +0 -95
- package/dist/v2/components/forms/shared/listboxStyles.cjs.js.map +0 -1
- package/dist/v2/components/forms/shared/listboxStyles.esm.js +0 -100
- package/dist/v2/components/forms/shared/listboxStyles.esm.js.map +0 -1
- package/dist/v2/components/forms/shared/listboxTemplate.cjs.js +0 -24
- package/dist/v2/components/forms/shared/listboxTemplate.cjs.js.map +0 -1
- package/dist/v2/components/forms/shared/listboxTemplate.esm.js +0 -37
- package/dist/v2/components/forms/shared/listboxTemplate.esm.js.map +0 -1
|
@@ -0,0 +1,3251 @@
|
|
|
1
|
+
import { a as e, i as t } from "./components-BlEGdx4i.js";
|
|
2
|
+
import { a as n, c as r, i, r as a, t as o } from "./lit-C4H1jI4q.js";
|
|
3
|
+
import { i as s, n as c, r as l, t as u } from "./decorators-BiCkPd_3.js";
|
|
4
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.2LXKNNNE.js
|
|
5
|
+
var d = class extends Event {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super("wa-select", {
|
|
8
|
+
bubbles: !0,
|
|
9
|
+
cancelable: !0,
|
|
10
|
+
composed: !0
|
|
11
|
+
}), this.detail = e;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.TTJR7FH2.js
|
|
16
|
+
function* f(e = document.activeElement) {
|
|
17
|
+
e != null && (yield e, "shadowRoot" in e && e.shadowRoot && e.shadowRoot.mode !== "closed" && (yield* f(e.shadowRoot.activeElement)));
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.Z6IK7DP4.js
|
|
21
|
+
var p = r`
|
|
22
|
+
:host {
|
|
23
|
+
--show-duration: var(--wa-transition-fast);
|
|
24
|
+
--hide-duration: var(--wa-transition-fast);
|
|
25
|
+
display: contents;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#menu {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
width: max-content;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0.25em;
|
|
34
|
+
border: var(--wa-border-style) var(--wa-border-width-s) var(--wa-color-surface-border);
|
|
35
|
+
border-radius: var(--wa-border-radius-m);
|
|
36
|
+
background-color: var(--wa-color-surface-raised);
|
|
37
|
+
box-shadow: var(--wa-shadow-m);
|
|
38
|
+
color: var(--wa-color-text-normal);
|
|
39
|
+
text-align: start;
|
|
40
|
+
user-select: none;
|
|
41
|
+
overflow: auto;
|
|
42
|
+
max-width: var(--auto-size-available-width) !important;
|
|
43
|
+
max-height: var(--auto-size-available-height) !important;
|
|
44
|
+
|
|
45
|
+
&.show {
|
|
46
|
+
animation: show var(--show-duration) ease;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.hide {
|
|
50
|
+
animation: show var(--hide-duration) ease reverse;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
::slotted(h1),
|
|
54
|
+
::slotted(h2),
|
|
55
|
+
::slotted(h3),
|
|
56
|
+
::slotted(h4),
|
|
57
|
+
::slotted(h5),
|
|
58
|
+
::slotted(h6) {
|
|
59
|
+
display: block !important;
|
|
60
|
+
margin: 0.25em 0 !important;
|
|
61
|
+
padding: 0.25em 0.75em !important;
|
|
62
|
+
color: var(--wa-color-text-quiet);
|
|
63
|
+
font-family: var(--wa-font-family-body) !important;
|
|
64
|
+
font-weight: var(--wa-font-weight-semibold) !important;
|
|
65
|
+
font-size: var(--wa-font-size-smaller) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
::slotted(wa-divider) {
|
|
69
|
+
--spacing: 0.25em; /* Component-specific, left as-is */
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
wa-popup[data-current-placement^='top'] #menu {
|
|
74
|
+
transform-origin: bottom;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
wa-popup[data-current-placement^='bottom'] #menu {
|
|
78
|
+
transform-origin: top;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
wa-popup[data-current-placement^='left'] #menu {
|
|
82
|
+
transform-origin: right;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
wa-popup[data-current-placement^='right'] #menu {
|
|
86
|
+
transform-origin: left;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
wa-popup[data-current-placement='left-start'] #menu {
|
|
90
|
+
transform-origin: right top;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
wa-popup[data-current-placement='left-end'] #menu {
|
|
94
|
+
transform-origin: right bottom;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
wa-popup[data-current-placement='right-start'] #menu {
|
|
98
|
+
transform-origin: left top;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
wa-popup[data-current-placement='right-end'] #menu {
|
|
102
|
+
transform-origin: left bottom;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes show {
|
|
106
|
+
from {
|
|
107
|
+
scale: 0.9;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
to {
|
|
111
|
+
scale: 1;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`, m = class extends Event {
|
|
116
|
+
constructor() {
|
|
117
|
+
super("wa-show", {
|
|
118
|
+
bubbles: !0,
|
|
119
|
+
cancelable: !0,
|
|
120
|
+
composed: !0
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}, h = class extends Event {
|
|
124
|
+
constructor(e) {
|
|
125
|
+
super("wa-hide", {
|
|
126
|
+
bubbles: !0,
|
|
127
|
+
cancelable: !0,
|
|
128
|
+
composed: !0
|
|
129
|
+
}), this.detail = e;
|
|
130
|
+
}
|
|
131
|
+
}, g = class extends Event {
|
|
132
|
+
constructor() {
|
|
133
|
+
super("wa-after-hide", {
|
|
134
|
+
bubbles: !0,
|
|
135
|
+
cancelable: !1,
|
|
136
|
+
composed: !0
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}, _ = class extends Event {
|
|
140
|
+
constructor() {
|
|
141
|
+
super("wa-after-show", {
|
|
142
|
+
bubbles: !0,
|
|
143
|
+
cancelable: !1,
|
|
144
|
+
composed: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}, v = [];
|
|
148
|
+
function y(e) {
|
|
149
|
+
v.push(e);
|
|
150
|
+
}
|
|
151
|
+
function b(e) {
|
|
152
|
+
for (let t = v.length - 1; t >= 0; t--) if (v[t] === e) {
|
|
153
|
+
v.splice(t, 1);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function x(e) {
|
|
158
|
+
return v.length > 0 && v[v.length - 1] === e;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region node_modules/@awesome.me/webawesome/node_modules/nanoid/url-alphabet/index.js
|
|
162
|
+
var S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", C = (e = 21) => {
|
|
163
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
164
|
+
for (; e--;) t += S[n[e] & 63];
|
|
165
|
+
return t;
|
|
166
|
+
};
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.KNJT7KBU.js
|
|
169
|
+
function w(e = "") {
|
|
170
|
+
return `${e}${C()}`;
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.RPQJAXXR.js
|
|
174
|
+
var T = {
|
|
175
|
+
small: "s",
|
|
176
|
+
medium: "m",
|
|
177
|
+
large: "l"
|
|
178
|
+
}, ee = /* @__PURE__ */ new Set();
|
|
179
|
+
function te(e, t) {
|
|
180
|
+
t in T && !ee.has(`${e}:${t}`) && (ee.add(`${e}:${t}`), console.warn(`[${e}] size="${t}" is deprecated. Use size="${T[t]}" instead. The long-form value will be removed in the next major version.`));
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.G5ZZIGWB.js
|
|
184
|
+
var E = r`
|
|
185
|
+
:host([size='xs']) {
|
|
186
|
+
font-size: var(--wa-font-size-xs);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:host([size='s']),
|
|
190
|
+
:host([size='small']) {
|
|
191
|
+
font-size: var(--wa-font-size-s);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host([size='m']),
|
|
195
|
+
:host([size='medium']) {
|
|
196
|
+
font-size: var(--wa-font-size-m);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([size='l']),
|
|
200
|
+
:host([size='large']) {
|
|
201
|
+
font-size: var(--wa-font-size-l);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([size='xl']) {
|
|
205
|
+
font-size: var(--wa-font-size-xl);
|
|
206
|
+
}
|
|
207
|
+
`;
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.L6CIKOFQ.js
|
|
210
|
+
function D(e, t) {
|
|
211
|
+
return new Promise((n) => {
|
|
212
|
+
let r = new AbortController(), { signal: i } = r;
|
|
213
|
+
if (e.classList.contains(t)) return;
|
|
214
|
+
e.classList.add(t);
|
|
215
|
+
let a = !1, o = () => {
|
|
216
|
+
a || (a = !0, e.classList.remove(t), n(), r.abort());
|
|
217
|
+
};
|
|
218
|
+
e.addEventListener("animationend", o, {
|
|
219
|
+
once: !0,
|
|
220
|
+
signal: i
|
|
221
|
+
}), e.addEventListener("animationcancel", o, {
|
|
222
|
+
once: !0,
|
|
223
|
+
signal: i
|
|
224
|
+
}), requestAnimationFrame(() => {
|
|
225
|
+
!a && e.getAnimations().length === 0 && o();
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.PZAN6FPN.js
|
|
231
|
+
function O(e, t) {
|
|
232
|
+
let n = {
|
|
233
|
+
waitUntilFirstUpdate: !1,
|
|
234
|
+
...t
|
|
235
|
+
};
|
|
236
|
+
return (t, r) => {
|
|
237
|
+
let { update: i } = t, a = Array.isArray(e) ? e : [e];
|
|
238
|
+
t.update = function(e) {
|
|
239
|
+
a.forEach((t) => {
|
|
240
|
+
let i = t;
|
|
241
|
+
if (e.has(i)) {
|
|
242
|
+
let t = e.get(i), a = this[i];
|
|
243
|
+
t !== a && (!n.waitUntilFirstUpdate || this.hasUpdated) && this[r](t, a);
|
|
244
|
+
}
|
|
245
|
+
}), i.call(this, e);
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.7VGCIHDG.js
|
|
251
|
+
var k = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, re = (e) => {
|
|
252
|
+
throw TypeError(e);
|
|
253
|
+
}, A = (e, t, n, r) => {
|
|
254
|
+
for (var i = r > 1 ? void 0 : r ? ne(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
|
|
255
|
+
return r && i && k(t, n, i), i;
|
|
256
|
+
}, ie = (e, t, n) => t.has(e) || re("Cannot " + n), ae = (e, t, n) => (ie(e, t, "read from private field"), n ? n.call(e) : t.get(e)), oe = (e, t, n) => t.has(e) ? re("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), se = (e, t, n, r) => (ie(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ce = r`
|
|
257
|
+
:host {
|
|
258
|
+
box-sizing: border-box;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:host *,
|
|
262
|
+
:host *::before,
|
|
263
|
+
:host *::after {
|
|
264
|
+
box-sizing: inherit;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
[hidden],
|
|
268
|
+
:host([hidden]) {
|
|
269
|
+
display: none !important;
|
|
270
|
+
}
|
|
271
|
+
`, le = /;\s+$/;
|
|
272
|
+
function ue(e) {
|
|
273
|
+
return e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
274
|
+
}
|
|
275
|
+
function de(e) {
|
|
276
|
+
let { property: t, value: n, element: r } = e;
|
|
277
|
+
if (n) {
|
|
278
|
+
let e = r.getAttribute("style") || "";
|
|
279
|
+
e && (e.match(le) || (e += ";"), e += " ");
|
|
280
|
+
let i = `${t}: ${n}`;
|
|
281
|
+
return e.includes(i) ? void 0 : `${e}${i};`;
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
var fe, j = class extends o {
|
|
286
|
+
constructor() {
|
|
287
|
+
super(), oe(this, fe, !1), this.initialReflectedProperties = /* @__PURE__ */ new Map(), this.didSSR = !!this.shadowRoot, this.customStates = {
|
|
288
|
+
set: (e, t) => {
|
|
289
|
+
if (this.internals?.states) try {
|
|
290
|
+
t ? this.internals.states.add(e) : this.internals.states.delete(e);
|
|
291
|
+
} catch (e) {
|
|
292
|
+
if (String(e).includes("must start with '--'")) console.error("Your browser implements an outdated version of CustomStateSet. Consider using a polyfill");
|
|
293
|
+
else throw e;
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
has: (e) => {
|
|
297
|
+
if (!this.internals?.states) return !1;
|
|
298
|
+
try {
|
|
299
|
+
return this.internals.states.has(e);
|
|
300
|
+
} catch {
|
|
301
|
+
return !1;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
try {
|
|
306
|
+
this.internals = this.attachInternals();
|
|
307
|
+
} catch {
|
|
308
|
+
console.error("Element internals are not supported in your browser. Consider using a polyfill");
|
|
309
|
+
}
|
|
310
|
+
this.customStates.set("wa-defined", !0);
|
|
311
|
+
let e = this.constructor;
|
|
312
|
+
for (let [t, n] of e.elementProperties) n.default === "inherit" && n.initial !== void 0 && typeof t == "string" && this.customStates.set(`initial-${t}-${n.initial}`, !0);
|
|
313
|
+
}
|
|
314
|
+
static get styles() {
|
|
315
|
+
return [ce, ...Array.isArray(this.css) ? this.css : this.css ? [this.css] : []];
|
|
316
|
+
}
|
|
317
|
+
connectedCallback() {
|
|
318
|
+
super.connectedCallback(), this.didSSR || this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace("wa-", "")} `)), this.didSSR && this.updateComplete.then(() => {
|
|
319
|
+
this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace("wa-", "")} `));
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
attributeChangedCallback(e, t, n) {
|
|
323
|
+
ae(this, fe) || (this.constructor.elementProperties.forEach((e, t) => {
|
|
324
|
+
e.reflect && this[t] != null && this.initialReflectedProperties.set(t, this[t]);
|
|
325
|
+
}), se(this, fe, !0)), super.attributeChangedCallback(e, t, n);
|
|
326
|
+
}
|
|
327
|
+
willUpdate(e) {
|
|
328
|
+
super.willUpdate(e), this.initialReflectedProperties.forEach((t, n) => {
|
|
329
|
+
e.has(n) && this[n] == null && (this[n] = t);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
firstUpdated(e) {
|
|
333
|
+
super.firstUpdated(e), this.didSSR && this.shadowRoot?.querySelectorAll("slot").forEach((e) => {
|
|
334
|
+
e.dispatchEvent(new Event("slotchange", {
|
|
335
|
+
bubbles: !0,
|
|
336
|
+
composed: !1,
|
|
337
|
+
cancelable: !1
|
|
338
|
+
}));
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
update(e) {
|
|
342
|
+
try {
|
|
343
|
+
super.update(e);
|
|
344
|
+
} catch (e) {
|
|
345
|
+
if (this.didSSR && !this.hasUpdated) {
|
|
346
|
+
let t = new Event("lit-hydration-error", {
|
|
347
|
+
bubbles: !0,
|
|
348
|
+
composed: !0,
|
|
349
|
+
cancelable: !1
|
|
350
|
+
});
|
|
351
|
+
t.error = e, this.dispatchEvent(t);
|
|
352
|
+
}
|
|
353
|
+
throw e;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
setStyle(e, t) {
|
|
357
|
+
if (!this.style) {
|
|
358
|
+
let n = de({
|
|
359
|
+
property: ue(e),
|
|
360
|
+
value: t,
|
|
361
|
+
element: this
|
|
362
|
+
});
|
|
363
|
+
n && this.setAttribute("style", n);
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
this.style[e] = t;
|
|
367
|
+
}
|
|
368
|
+
setStyleProperty(e, t) {
|
|
369
|
+
if (!this.style) {
|
|
370
|
+
let n = de({
|
|
371
|
+
property: e,
|
|
372
|
+
value: t,
|
|
373
|
+
element: this
|
|
374
|
+
});
|
|
375
|
+
n && this.setAttribute("style", n);
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
this.style.setProperty(e, t);
|
|
379
|
+
}
|
|
380
|
+
relayNativeEvent(e, t) {
|
|
381
|
+
e.stopImmediatePropagation(), this.dispatchEvent(new e.constructor(e.type, {
|
|
382
|
+
...e,
|
|
383
|
+
...t
|
|
384
|
+
}));
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
fe = /* @__PURE__ */ new WeakMap(), A([l()], j.prototype, "dir", 2), A([l()], j.prototype, "lang", 2), A([l({
|
|
388
|
+
type: Boolean,
|
|
389
|
+
reflect: !0,
|
|
390
|
+
attribute: "did-ssr"
|
|
391
|
+
})], j.prototype, "didSSR", 2);
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region node_modules/@shoelace-style/localize/dist/index.js
|
|
394
|
+
var pe = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Map(), N, me = "ltr", he = "en", ge = typeof MutationObserver < "u" && typeof document < "u" && document.documentElement !== void 0;
|
|
395
|
+
if (ge) {
|
|
396
|
+
let e = new MutationObserver(ve);
|
|
397
|
+
me = document.documentElement.dir || "ltr", he = document.documentElement.lang || navigator.language, e.observe(document.documentElement, {
|
|
398
|
+
attributes: !0,
|
|
399
|
+
attributeFilter: ["dir", "lang"]
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function _e(...e) {
|
|
403
|
+
e.map((e) => {
|
|
404
|
+
let t = e.$code.toLowerCase();
|
|
405
|
+
M.has(t) ? M.set(t, Object.assign(Object.assign({}, M.get(t)), e)) : M.set(t, e), N ||= e;
|
|
406
|
+
}), ve();
|
|
407
|
+
}
|
|
408
|
+
function ve() {
|
|
409
|
+
ge && (me = document.documentElement.dir || "ltr", he = document.documentElement.lang || navigator.language), [...pe.keys()].map((e) => {
|
|
410
|
+
typeof e.requestUpdate == "function" && e.requestUpdate();
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
var ye = class {
|
|
414
|
+
constructor(e) {
|
|
415
|
+
this.host = e, this.host.addController(this);
|
|
416
|
+
}
|
|
417
|
+
hostConnected() {
|
|
418
|
+
pe.add(this.host);
|
|
419
|
+
}
|
|
420
|
+
hostDisconnected() {
|
|
421
|
+
pe.delete(this.host);
|
|
422
|
+
}
|
|
423
|
+
dir() {
|
|
424
|
+
return `${this.host.dir || me}`.toLowerCase();
|
|
425
|
+
}
|
|
426
|
+
lang() {
|
|
427
|
+
return `${this.host.lang || he}`.toLowerCase();
|
|
428
|
+
}
|
|
429
|
+
getTranslationData(e) {
|
|
430
|
+
let t;
|
|
431
|
+
try {
|
|
432
|
+
t = new Intl.Locale(e.replace(/_/g, "-"));
|
|
433
|
+
} catch {
|
|
434
|
+
return {
|
|
435
|
+
locale: void 0,
|
|
436
|
+
language: "",
|
|
437
|
+
region: "",
|
|
438
|
+
primary: void 0,
|
|
439
|
+
secondary: void 0
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
let n = t.language.toLowerCase(), r = t.region?.toLowerCase() ?? "", i = M.get(`${n}-${r}`), a = M.get(n);
|
|
443
|
+
return {
|
|
444
|
+
locale: t,
|
|
445
|
+
language: n,
|
|
446
|
+
region: r,
|
|
447
|
+
primary: i,
|
|
448
|
+
secondary: a
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
exists(e, t) {
|
|
452
|
+
let { primary: n, secondary: r } = this.getTranslationData(t.lang ?? this.lang());
|
|
453
|
+
return t = Object.assign({ includeFallback: !1 }, t), !!(n && n[e] || r && r[e] || t.includeFallback && N && N[e]);
|
|
454
|
+
}
|
|
455
|
+
term(e, ...t) {
|
|
456
|
+
let { primary: n, secondary: r } = this.getTranslationData(this.lang()), i;
|
|
457
|
+
if (n && n[e]) i = n[e];
|
|
458
|
+
else if (r && r[e]) i = r[e];
|
|
459
|
+
else if (N && N[e]) i = N[e];
|
|
460
|
+
else return console.error(`No translation found for: ${String(e)}`), String(e);
|
|
461
|
+
return typeof i == "function" ? i(...t) : i;
|
|
462
|
+
}
|
|
463
|
+
date(e, t) {
|
|
464
|
+
return e = new Date(e), new Intl.DateTimeFormat(this.lang(), t).format(e);
|
|
465
|
+
}
|
|
466
|
+
number(e, t) {
|
|
467
|
+
return e = Number(e), isNaN(e) ? "" : new Intl.NumberFormat(this.lang(), t).format(e);
|
|
468
|
+
}
|
|
469
|
+
relativeTime(e, t, n) {
|
|
470
|
+
return new Intl.RelativeTimeFormat(this.lang(), n).format(e, t);
|
|
471
|
+
}
|
|
472
|
+
}, be = {
|
|
473
|
+
$code: "en",
|
|
474
|
+
$name: "English",
|
|
475
|
+
$dir: "ltr",
|
|
476
|
+
carousel: "Carousel",
|
|
477
|
+
captions: "Captions",
|
|
478
|
+
chooseDate: "Choose date",
|
|
479
|
+
chooseDecade: "Choose decade",
|
|
480
|
+
chooseMonth: "Choose month",
|
|
481
|
+
chooseYear: "Choose year",
|
|
482
|
+
clearEntry: "Clear entry",
|
|
483
|
+
close: "Close",
|
|
484
|
+
closeCalendar: "Close calendar",
|
|
485
|
+
createOption: (e) => `Create "${e}"`,
|
|
486
|
+
copied: "Copied",
|
|
487
|
+
copy: "Copy",
|
|
488
|
+
currentValue: "Current value",
|
|
489
|
+
date: "Date",
|
|
490
|
+
datePickerKeyboardHelp: "Use arrow keys to change values; press Alt+Down Arrow to open the calendar.",
|
|
491
|
+
day: "Day",
|
|
492
|
+
incompleteDate: "Enter a complete date.",
|
|
493
|
+
dropFileHere: "Drop file here or click to browse",
|
|
494
|
+
decrement: "Decrement",
|
|
495
|
+
dropFilesHere: "Drop files here or click to browse",
|
|
496
|
+
empty: "Empty",
|
|
497
|
+
endDate: "End date",
|
|
498
|
+
error: "Error",
|
|
499
|
+
enterFullscreen: "Enter fullscreen",
|
|
500
|
+
exitFullscreen: "Exit fullscreen",
|
|
501
|
+
goToSlide: (e, t) => `Go to slide ${e} of ${t}`,
|
|
502
|
+
hidePassword: "Hide password",
|
|
503
|
+
increment: "Increment",
|
|
504
|
+
loading: "Loading",
|
|
505
|
+
month: "Month",
|
|
506
|
+
moreOptions: "More Options",
|
|
507
|
+
mute: "Mute",
|
|
508
|
+
nextDecade: "Next decade",
|
|
509
|
+
nextMonth: "Next month",
|
|
510
|
+
nextSlide: "Next slide",
|
|
511
|
+
nextVideo: "Next Video",
|
|
512
|
+
nextYear: "Next year",
|
|
513
|
+
numCharacters: (e) => e === 1 ? "1 character" : `${e} characters`,
|
|
514
|
+
numCharactersRemaining: (e) => e === 1 ? "1 character remaining" : `${e} characters remaining`,
|
|
515
|
+
numOptionsSelected: (e) => e === 0 ? "No options selected" : e === 1 ? "1 option selected" : `${e} options selected`,
|
|
516
|
+
pause: "Pause",
|
|
517
|
+
pauseAnimation: "Pause animation",
|
|
518
|
+
pictureInPicture: "Picture in picture",
|
|
519
|
+
play: "Play",
|
|
520
|
+
playbackSpeed: "Playback speed",
|
|
521
|
+
playlist: "Playlist",
|
|
522
|
+
playAnimation: "Play animation",
|
|
523
|
+
previousDecade: "Previous decade",
|
|
524
|
+
previousMonth: "Previous month",
|
|
525
|
+
previousSlide: "Previous slide",
|
|
526
|
+
previousVideo: "Previous video",
|
|
527
|
+
previousYear: "Previous year",
|
|
528
|
+
progress: "Progress",
|
|
529
|
+
rangeTooLong: (e) => e === 1 ? "Select a range no longer than 1 day" : `Select a range no longer than ${e} days`,
|
|
530
|
+
rangeTooShort: (e) => e === 1 ? "Select a range at least 1 day long" : `Select a range at least ${e} days long`,
|
|
531
|
+
readonly: "Read-only",
|
|
532
|
+
selected: "Selected",
|
|
533
|
+
selectedDateLabel: (e) => `Selected: ${e}`,
|
|
534
|
+
selectedRangeLabel: (e) => `Selected range: ${e}`,
|
|
535
|
+
selectionCleared: "Selection cleared",
|
|
536
|
+
remove: "Remove",
|
|
537
|
+
resize: "Resize",
|
|
538
|
+
scrollableRegion: "Scrollable region",
|
|
539
|
+
scrollToEnd: "Scroll to end",
|
|
540
|
+
scrollToStart: "Scroll to start",
|
|
541
|
+
selectAColorFromTheScreen: "Select a color from the screen",
|
|
542
|
+
showPassword: "Show password",
|
|
543
|
+
slideNum: (e) => `Slide ${e}`,
|
|
544
|
+
startDate: "Start date",
|
|
545
|
+
today: "Today",
|
|
546
|
+
toggleColorFormat: "Toggle color format",
|
|
547
|
+
seek: "Seek",
|
|
548
|
+
seekProgress: (e, t) => `${e} of ${t}`,
|
|
549
|
+
currentlyPlaying: "currently playing",
|
|
550
|
+
unmute: "Unmute",
|
|
551
|
+
videoPlayer: "Video player",
|
|
552
|
+
volume: "Volume",
|
|
553
|
+
year: "Year",
|
|
554
|
+
zoomIn: "Zoom in",
|
|
555
|
+
zoomOut: "Zoom out",
|
|
556
|
+
am: "AM",
|
|
557
|
+
chooseTime: "Choose time",
|
|
558
|
+
closeTimeInput: "Close time picker",
|
|
559
|
+
dayPeriod: "AM/PM",
|
|
560
|
+
hour: "Hour",
|
|
561
|
+
minute: "Minute",
|
|
562
|
+
now: "Now",
|
|
563
|
+
pm: "PM",
|
|
564
|
+
second: "Second",
|
|
565
|
+
time: "Time",
|
|
566
|
+
timeInputKeyboardHelp: "Use arrow keys to change values; press Alt+Down Arrow to open the time picker."
|
|
567
|
+
};
|
|
568
|
+
_e(be);
|
|
569
|
+
var xe = be, Se = class extends ye {
|
|
570
|
+
lang() {
|
|
571
|
+
return this.host.didSSR && !this.host.hasUpdated ? this.host.lang || "en" : super.lang();
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
_e(xe);
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
577
|
+
var P = Math.min, F = Math.max, Ce = Math.round, we = Math.floor, I = (e) => ({
|
|
578
|
+
x: e,
|
|
579
|
+
y: e
|
|
580
|
+
}), Te = {
|
|
581
|
+
left: "right",
|
|
582
|
+
right: "left",
|
|
583
|
+
bottom: "top",
|
|
584
|
+
top: "bottom"
|
|
585
|
+
};
|
|
586
|
+
function Ee(e, t, n) {
|
|
587
|
+
return F(e, P(t, n));
|
|
588
|
+
}
|
|
589
|
+
function L(e, t) {
|
|
590
|
+
return typeof e == "function" ? e(t) : e;
|
|
591
|
+
}
|
|
592
|
+
function R(e) {
|
|
593
|
+
return e.split("-")[0];
|
|
594
|
+
}
|
|
595
|
+
function z(e) {
|
|
596
|
+
return e.split("-")[1];
|
|
597
|
+
}
|
|
598
|
+
function De(e) {
|
|
599
|
+
return e === "x" ? "y" : "x";
|
|
600
|
+
}
|
|
601
|
+
function Oe(e) {
|
|
602
|
+
return e === "y" ? "height" : "width";
|
|
603
|
+
}
|
|
604
|
+
function B(e) {
|
|
605
|
+
let t = e[0];
|
|
606
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
607
|
+
}
|
|
608
|
+
function ke(e) {
|
|
609
|
+
return De(B(e));
|
|
610
|
+
}
|
|
611
|
+
function Ae(e, t, n) {
|
|
612
|
+
n === void 0 && (n = !1);
|
|
613
|
+
let r = z(e), i = ke(e), a = Oe(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
614
|
+
return t.reference[a] > t.floating[a] && (o = ze(o)), [o, ze(o)];
|
|
615
|
+
}
|
|
616
|
+
function je(e) {
|
|
617
|
+
let t = ze(e);
|
|
618
|
+
return [
|
|
619
|
+
Me(e),
|
|
620
|
+
t,
|
|
621
|
+
Me(t)
|
|
622
|
+
];
|
|
623
|
+
}
|
|
624
|
+
function Me(e) {
|
|
625
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
626
|
+
}
|
|
627
|
+
var Ne = ["left", "right"], Pe = ["right", "left"], Fe = ["top", "bottom"], Ie = ["bottom", "top"];
|
|
628
|
+
function Le(e, t, n) {
|
|
629
|
+
switch (e) {
|
|
630
|
+
case "top":
|
|
631
|
+
case "bottom": return n ? t ? Pe : Ne : t ? Ne : Pe;
|
|
632
|
+
case "left":
|
|
633
|
+
case "right": return t ? Fe : Ie;
|
|
634
|
+
default: return [];
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
function Re(e, t, n, r) {
|
|
638
|
+
let i = z(e), a = Le(R(e), n === "start", r);
|
|
639
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Me)))), a;
|
|
640
|
+
}
|
|
641
|
+
function ze(e) {
|
|
642
|
+
let t = R(e);
|
|
643
|
+
return Te[t] + e.slice(t.length);
|
|
644
|
+
}
|
|
645
|
+
function Be(e) {
|
|
646
|
+
return {
|
|
647
|
+
top: 0,
|
|
648
|
+
right: 0,
|
|
649
|
+
bottom: 0,
|
|
650
|
+
left: 0,
|
|
651
|
+
...e
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function Ve(e) {
|
|
655
|
+
return typeof e == "number" ? {
|
|
656
|
+
top: e,
|
|
657
|
+
right: e,
|
|
658
|
+
bottom: e,
|
|
659
|
+
left: e
|
|
660
|
+
} : Be(e);
|
|
661
|
+
}
|
|
662
|
+
function He(e) {
|
|
663
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
664
|
+
return {
|
|
665
|
+
width: r,
|
|
666
|
+
height: i,
|
|
667
|
+
top: n,
|
|
668
|
+
left: t,
|
|
669
|
+
right: t + r,
|
|
670
|
+
bottom: n + i,
|
|
671
|
+
x: t,
|
|
672
|
+
y: n
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
677
|
+
function Ue(e, t, n) {
|
|
678
|
+
let { reference: r, floating: i } = e, a = B(t), o = ke(t), s = Oe(o), c = R(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
679
|
+
switch (c) {
|
|
680
|
+
case "top":
|
|
681
|
+
p = {
|
|
682
|
+
x: u,
|
|
683
|
+
y: r.y - i.height
|
|
684
|
+
};
|
|
685
|
+
break;
|
|
686
|
+
case "bottom":
|
|
687
|
+
p = {
|
|
688
|
+
x: u,
|
|
689
|
+
y: r.y + r.height
|
|
690
|
+
};
|
|
691
|
+
break;
|
|
692
|
+
case "right":
|
|
693
|
+
p = {
|
|
694
|
+
x: r.x + r.width,
|
|
695
|
+
y: d
|
|
696
|
+
};
|
|
697
|
+
break;
|
|
698
|
+
case "left":
|
|
699
|
+
p = {
|
|
700
|
+
x: r.x - i.width,
|
|
701
|
+
y: d
|
|
702
|
+
};
|
|
703
|
+
break;
|
|
704
|
+
default: p = {
|
|
705
|
+
x: r.x,
|
|
706
|
+
y: r.y
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
switch (z(t)) {
|
|
710
|
+
case "start":
|
|
711
|
+
p[o] -= f * (n && l ? -1 : 1);
|
|
712
|
+
break;
|
|
713
|
+
case "end":
|
|
714
|
+
p[o] += f * (n && l ? -1 : 1);
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
return p;
|
|
718
|
+
}
|
|
719
|
+
async function We(e, t) {
|
|
720
|
+
t === void 0 && (t = {});
|
|
721
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = L(t, e), p = Ve(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = He(await i.getClippingRect({
|
|
722
|
+
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
723
|
+
boundary: c,
|
|
724
|
+
rootBoundary: l,
|
|
725
|
+
strategy: s
|
|
726
|
+
})), g = u === "floating" ? {
|
|
727
|
+
x: n,
|
|
728
|
+
y: r,
|
|
729
|
+
width: a.floating.width,
|
|
730
|
+
height: a.floating.height
|
|
731
|
+
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
732
|
+
x: 1,
|
|
733
|
+
y: 1
|
|
734
|
+
}, y = He(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
735
|
+
elements: o,
|
|
736
|
+
rect: g,
|
|
737
|
+
offsetParent: _,
|
|
738
|
+
strategy: s
|
|
739
|
+
}) : g);
|
|
740
|
+
return {
|
|
741
|
+
top: (h.top - y.top + p.top) / v.y,
|
|
742
|
+
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
|
|
743
|
+
left: (h.left - y.left + p.left) / v.x,
|
|
744
|
+
right: (y.right - h.right + p.right) / v.x
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
var Ge = 50, Ke = async (e, t, n) => {
|
|
748
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
749
|
+
...o,
|
|
750
|
+
detectOverflow: We
|
|
751
|
+
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
752
|
+
reference: e,
|
|
753
|
+
floating: t,
|
|
754
|
+
strategy: i
|
|
755
|
+
}), { x: u, y: d } = Ue(l, r, c), f = r, p = 0, m = {};
|
|
756
|
+
for (let n = 0; n < a.length; n++) {
|
|
757
|
+
let h = a[n];
|
|
758
|
+
if (!h) continue;
|
|
759
|
+
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
760
|
+
x: u,
|
|
761
|
+
y: d,
|
|
762
|
+
initialPlacement: r,
|
|
763
|
+
placement: f,
|
|
764
|
+
strategy: i,
|
|
765
|
+
middlewareData: m,
|
|
766
|
+
rects: l,
|
|
767
|
+
platform: s,
|
|
768
|
+
elements: {
|
|
769
|
+
reference: e,
|
|
770
|
+
floating: t
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
u = v ?? u, d = y ?? d, m[g] = {
|
|
774
|
+
...m[g],
|
|
775
|
+
...b
|
|
776
|
+
}, x && p < Ge && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
777
|
+
reference: e,
|
|
778
|
+
floating: t,
|
|
779
|
+
strategy: i
|
|
780
|
+
}) : x.rects), {x: u, y: d} = Ue(l, f, c)), n = -1);
|
|
781
|
+
}
|
|
782
|
+
return {
|
|
783
|
+
x: u,
|
|
784
|
+
y: d,
|
|
785
|
+
placement: f,
|
|
786
|
+
strategy: i,
|
|
787
|
+
middlewareData: m
|
|
788
|
+
};
|
|
789
|
+
}, qe = (e) => ({
|
|
790
|
+
name: "arrow",
|
|
791
|
+
options: e,
|
|
792
|
+
async fn(t) {
|
|
793
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = L(e, t) || {};
|
|
794
|
+
if (l == null) return {};
|
|
795
|
+
let d = Ve(u), f = {
|
|
796
|
+
x: n,
|
|
797
|
+
y: r
|
|
798
|
+
}, p = ke(i), m = Oe(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
799
|
+
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
800
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = P(d[_], T), te = P(d[v], T), E = ee, D = C - h[m] - te, O = C / 2 - h[m] / 2 + w, k = Ee(E, O, D), ne = !c.arrow && z(i) != null && O !== k && a.reference[m] / 2 - (O < E ? ee : te) - h[m] / 2 < 0, re = ne ? O < E ? O - E : O - D : 0;
|
|
801
|
+
return {
|
|
802
|
+
[p]: f[p] + re,
|
|
803
|
+
data: {
|
|
804
|
+
[p]: k,
|
|
805
|
+
centerOffset: O - k - re,
|
|
806
|
+
...ne && { alignmentOffset: re }
|
|
807
|
+
},
|
|
808
|
+
reset: ne
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
}), Je = function(e) {
|
|
812
|
+
return e === void 0 && (e = {}), {
|
|
813
|
+
name: "flip",
|
|
814
|
+
options: e,
|
|
815
|
+
async fn(t) {
|
|
816
|
+
var n;
|
|
817
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = L(e, t);
|
|
818
|
+
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
819
|
+
let g = R(r), _ = B(o), v = R(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ze(o)] : je(o)), x = p !== "none";
|
|
820
|
+
!d && x && b.push(...Re(o, m, p, y));
|
|
821
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
822
|
+
if (l && w.push(C[g]), u) {
|
|
823
|
+
let e = Ae(r, a, y);
|
|
824
|
+
w.push(C[e[0]], C[e[1]]);
|
|
825
|
+
}
|
|
826
|
+
if (T = [...T, {
|
|
827
|
+
placement: r,
|
|
828
|
+
overflows: w
|
|
829
|
+
}], !w.every((e) => e <= 0)) {
|
|
830
|
+
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
831
|
+
if (t && (!(u === "alignment" && _ !== B(t)) || T.every((e) => B(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
832
|
+
data: {
|
|
833
|
+
index: e,
|
|
834
|
+
overflows: T
|
|
835
|
+
},
|
|
836
|
+
reset: { placement: t }
|
|
837
|
+
};
|
|
838
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
839
|
+
if (!n) switch (f) {
|
|
840
|
+
case "bestFit": {
|
|
841
|
+
let e = T.filter((e) => {
|
|
842
|
+
if (x) {
|
|
843
|
+
let t = B(e.placement);
|
|
844
|
+
return t === _ || t === "y";
|
|
845
|
+
}
|
|
846
|
+
return !0;
|
|
847
|
+
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
848
|
+
e && (n = e);
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
case "initialPlacement":
|
|
852
|
+
n = o;
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
855
|
+
if (r !== n) return { reset: { placement: n } };
|
|
856
|
+
}
|
|
857
|
+
return {};
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
}, Ye = /*#__PURE__*/ new Set(["left", "top"]);
|
|
861
|
+
async function Xe(e, t) {
|
|
862
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = R(n), s = z(n), c = B(n) === "y", l = Ye.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = L(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
863
|
+
mainAxis: d,
|
|
864
|
+
crossAxis: 0,
|
|
865
|
+
alignmentAxis: null
|
|
866
|
+
} : {
|
|
867
|
+
mainAxis: d.mainAxis || 0,
|
|
868
|
+
crossAxis: d.crossAxis || 0,
|
|
869
|
+
alignmentAxis: d.alignmentAxis
|
|
870
|
+
};
|
|
871
|
+
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
|
|
872
|
+
x: p * u,
|
|
873
|
+
y: f * l
|
|
874
|
+
} : {
|
|
875
|
+
x: f * l,
|
|
876
|
+
y: p * u
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
var Ze = function(e) {
|
|
880
|
+
return e === void 0 && (e = 0), {
|
|
881
|
+
name: "offset",
|
|
882
|
+
options: e,
|
|
883
|
+
async fn(t) {
|
|
884
|
+
var n;
|
|
885
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Xe(t, e);
|
|
886
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
887
|
+
x: r + s.x,
|
|
888
|
+
y: i + s.y,
|
|
889
|
+
data: {
|
|
890
|
+
...s,
|
|
891
|
+
placement: a
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
}, Qe = function(e) {
|
|
897
|
+
return e === void 0 && (e = {}), {
|
|
898
|
+
name: "shift",
|
|
899
|
+
options: e,
|
|
900
|
+
async fn(t) {
|
|
901
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
902
|
+
let { x: t, y: n } = e;
|
|
903
|
+
return {
|
|
904
|
+
x: t,
|
|
905
|
+
y: n
|
|
906
|
+
};
|
|
907
|
+
} }, ...l } = L(e, t), u = {
|
|
908
|
+
x: n,
|
|
909
|
+
y: r
|
|
910
|
+
}, d = await a.detectOverflow(t, l), f = B(R(i)), p = De(f), m = u[p], h = u[f];
|
|
911
|
+
if (o) {
|
|
912
|
+
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
913
|
+
m = Ee(n, m, r);
|
|
914
|
+
}
|
|
915
|
+
if (s) {
|
|
916
|
+
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
917
|
+
h = Ee(n, h, r);
|
|
918
|
+
}
|
|
919
|
+
let g = c.fn({
|
|
920
|
+
...t,
|
|
921
|
+
[p]: m,
|
|
922
|
+
[f]: h
|
|
923
|
+
});
|
|
924
|
+
return {
|
|
925
|
+
...g,
|
|
926
|
+
data: {
|
|
927
|
+
x: g.x - n,
|
|
928
|
+
y: g.y - r,
|
|
929
|
+
enabled: {
|
|
930
|
+
[p]: o,
|
|
931
|
+
[f]: s
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
}, $e = function(e) {
|
|
938
|
+
return e === void 0 && (e = {}), {
|
|
939
|
+
name: "size",
|
|
940
|
+
options: e,
|
|
941
|
+
async fn(t) {
|
|
942
|
+
var n, r;
|
|
943
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = L(e, t), u = await o.detectOverflow(t, l), d = R(i), f = z(i), p = B(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
944
|
+
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
945
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = P(h - u[g], v), x = P(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
946
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
947
|
+
let e = F(u.left, 0), t = F(u.right, 0), n = F(u.top, 0), r = F(u.bottom, 0);
|
|
948
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : F(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : F(u.top, u.bottom));
|
|
949
|
+
}
|
|
950
|
+
await c({
|
|
951
|
+
...t,
|
|
952
|
+
availableWidth: w,
|
|
953
|
+
availableHeight: C
|
|
954
|
+
});
|
|
955
|
+
let T = await o.getDimensions(s.floating);
|
|
956
|
+
return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
962
|
+
function et() {
|
|
963
|
+
return typeof window < "u";
|
|
964
|
+
}
|
|
965
|
+
function V(e) {
|
|
966
|
+
return tt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
967
|
+
}
|
|
968
|
+
function H(e) {
|
|
969
|
+
var t;
|
|
970
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
971
|
+
}
|
|
972
|
+
function U(e) {
|
|
973
|
+
return ((tt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
974
|
+
}
|
|
975
|
+
function tt(e) {
|
|
976
|
+
return et() ? e instanceof Node || e instanceof H(e).Node : !1;
|
|
977
|
+
}
|
|
978
|
+
function W(e) {
|
|
979
|
+
return et() ? e instanceof Element || e instanceof H(e).Element : !1;
|
|
980
|
+
}
|
|
981
|
+
function G(e) {
|
|
982
|
+
return et() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
|
|
983
|
+
}
|
|
984
|
+
function nt(e) {
|
|
985
|
+
return !et() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
|
|
986
|
+
}
|
|
987
|
+
function rt(e) {
|
|
988
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
|
|
989
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
990
|
+
}
|
|
991
|
+
function it(e) {
|
|
992
|
+
return /^(table|td|th)$/.test(V(e));
|
|
993
|
+
}
|
|
994
|
+
function at(e) {
|
|
995
|
+
try {
|
|
996
|
+
if (e.matches(":popover-open")) return !0;
|
|
997
|
+
} catch {}
|
|
998
|
+
try {
|
|
999
|
+
return e.matches(":modal");
|
|
1000
|
+
} catch {
|
|
1001
|
+
return !1;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
var ot = /transform|translate|scale|rotate|perspective|filter/, st = /paint|layout|strict|content/, K = (e) => !!e && e !== "none", ct;
|
|
1005
|
+
function lt(e) {
|
|
1006
|
+
let t = W(e) ? q(e) : e;
|
|
1007
|
+
return K(t.transform) || K(t.translate) || K(t.scale) || K(t.rotate) || K(t.perspective) || !dt() && (K(t.backdropFilter) || K(t.filter)) || ot.test(t.willChange || "") || st.test(t.contain || "");
|
|
1008
|
+
}
|
|
1009
|
+
function ut(e) {
|
|
1010
|
+
let t = J(e);
|
|
1011
|
+
for (; G(t) && !ft(t);) {
|
|
1012
|
+
if (lt(t)) return t;
|
|
1013
|
+
if (at(t)) return null;
|
|
1014
|
+
t = J(t);
|
|
1015
|
+
}
|
|
1016
|
+
return null;
|
|
1017
|
+
}
|
|
1018
|
+
function dt() {
|
|
1019
|
+
return ct ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ct;
|
|
1020
|
+
}
|
|
1021
|
+
function ft(e) {
|
|
1022
|
+
return /^(html|body|#document)$/.test(V(e));
|
|
1023
|
+
}
|
|
1024
|
+
function q(e) {
|
|
1025
|
+
return H(e).getComputedStyle(e);
|
|
1026
|
+
}
|
|
1027
|
+
function pt(e) {
|
|
1028
|
+
return W(e) ? {
|
|
1029
|
+
scrollLeft: e.scrollLeft,
|
|
1030
|
+
scrollTop: e.scrollTop
|
|
1031
|
+
} : {
|
|
1032
|
+
scrollLeft: e.scrollX,
|
|
1033
|
+
scrollTop: e.scrollY
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
function J(e) {
|
|
1037
|
+
if (V(e) === "html") return e;
|
|
1038
|
+
let t = e.assignedSlot || e.parentNode || nt(e) && e.host || U(e);
|
|
1039
|
+
return nt(t) ? t.host : t;
|
|
1040
|
+
}
|
|
1041
|
+
function mt(e) {
|
|
1042
|
+
let t = J(e);
|
|
1043
|
+
return ft(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && rt(t) ? t : mt(t);
|
|
1044
|
+
}
|
|
1045
|
+
function ht(e, t, n) {
|
|
1046
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1047
|
+
let r = mt(e), i = r === e.ownerDocument?.body, a = H(r);
|
|
1048
|
+
if (i) {
|
|
1049
|
+
let e = gt(a);
|
|
1050
|
+
return t.concat(a, a.visualViewport || [], rt(r) ? r : [], e && n ? ht(e) : []);
|
|
1051
|
+
} else return t.concat(r, ht(r, [], n));
|
|
1052
|
+
}
|
|
1053
|
+
function gt(e) {
|
|
1054
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1055
|
+
}
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1058
|
+
function _t(e) {
|
|
1059
|
+
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = G(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Ce(n) !== a || Ce(r) !== o;
|
|
1060
|
+
return s && (n = a, r = o), {
|
|
1061
|
+
width: n,
|
|
1062
|
+
height: r,
|
|
1063
|
+
$: s
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
function vt(e) {
|
|
1067
|
+
return W(e) ? e : e.contextElement;
|
|
1068
|
+
}
|
|
1069
|
+
function yt(e) {
|
|
1070
|
+
let t = vt(e);
|
|
1071
|
+
if (!G(t)) return I(1);
|
|
1072
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = _t(t), o = (a ? Ce(n.width) : n.width) / r, s = (a ? Ce(n.height) : n.height) / i;
|
|
1073
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1074
|
+
x: o,
|
|
1075
|
+
y: s
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
var bt = /*#__PURE__*/ I(0);
|
|
1079
|
+
function xt(e) {
|
|
1080
|
+
let t = H(e);
|
|
1081
|
+
return !dt() || !t.visualViewport ? bt : {
|
|
1082
|
+
x: t.visualViewport.offsetLeft,
|
|
1083
|
+
y: t.visualViewport.offsetTop
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
function St(e, t, n) {
|
|
1087
|
+
return t === void 0 && (t = !1), !n || t && n !== H(e) ? !1 : t;
|
|
1088
|
+
}
|
|
1089
|
+
function Y(e, t, n, r) {
|
|
1090
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1091
|
+
let i = e.getBoundingClientRect(), a = vt(e), o = I(1);
|
|
1092
|
+
t && (r ? W(r) && (o = yt(r)) : o = yt(e));
|
|
1093
|
+
let s = St(a, n, r) ? xt(a) : I(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1094
|
+
if (a) {
|
|
1095
|
+
let e = H(a), t = r && W(r) ? H(r) : r, n = e, i = gt(n);
|
|
1096
|
+
for (; i && r && t !== n;) {
|
|
1097
|
+
let e = yt(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1098
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = H(i), i = gt(n);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return He({
|
|
1102
|
+
width: u,
|
|
1103
|
+
height: d,
|
|
1104
|
+
x: c,
|
|
1105
|
+
y: l
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
function Ct(e, t) {
|
|
1109
|
+
let n = pt(e).scrollLeft;
|
|
1110
|
+
return t ? t.left + n : Y(U(e)).left + n;
|
|
1111
|
+
}
|
|
1112
|
+
function wt(e, t) {
|
|
1113
|
+
let n = e.getBoundingClientRect();
|
|
1114
|
+
return {
|
|
1115
|
+
x: n.left + t.scrollLeft - Ct(e, n),
|
|
1116
|
+
y: n.top + t.scrollTop
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
function Tt(e) {
|
|
1120
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = U(r), s = t ? at(t.floating) : !1;
|
|
1121
|
+
if (r === o || s && a) return n;
|
|
1122
|
+
let c = {
|
|
1123
|
+
scrollLeft: 0,
|
|
1124
|
+
scrollTop: 0
|
|
1125
|
+
}, l = I(1), u = I(0), d = G(r);
|
|
1126
|
+
if ((d || !d && !a) && ((V(r) !== "body" || rt(o)) && (c = pt(r)), d)) {
|
|
1127
|
+
let e = Y(r);
|
|
1128
|
+
l = yt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1129
|
+
}
|
|
1130
|
+
let f = o && !d && !a ? wt(o, c) : I(0);
|
|
1131
|
+
return {
|
|
1132
|
+
width: n.width * l.x,
|
|
1133
|
+
height: n.height * l.y,
|
|
1134
|
+
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
|
|
1135
|
+
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
function Et(e) {
|
|
1139
|
+
return Array.from(e.getClientRects());
|
|
1140
|
+
}
|
|
1141
|
+
function Dt(e) {
|
|
1142
|
+
let t = U(e), n = pt(e), r = e.ownerDocument.body, i = F(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = F(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ct(e), s = -n.scrollTop;
|
|
1143
|
+
return q(r).direction === "rtl" && (o += F(t.clientWidth, r.clientWidth) - i), {
|
|
1144
|
+
width: i,
|
|
1145
|
+
height: a,
|
|
1146
|
+
x: o,
|
|
1147
|
+
y: s
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
var Ot = 25;
|
|
1151
|
+
function kt(e, t) {
|
|
1152
|
+
let n = H(e), r = U(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1153
|
+
if (i) {
|
|
1154
|
+
a = i.width, o = i.height;
|
|
1155
|
+
let e = dt();
|
|
1156
|
+
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1157
|
+
}
|
|
1158
|
+
let l = Ct(r);
|
|
1159
|
+
if (l <= 0) {
|
|
1160
|
+
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1161
|
+
o <= Ot && (a -= o);
|
|
1162
|
+
} else l <= Ot && (a += l);
|
|
1163
|
+
return {
|
|
1164
|
+
width: a,
|
|
1165
|
+
height: o,
|
|
1166
|
+
x: s,
|
|
1167
|
+
y: c
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
function At(e, t) {
|
|
1171
|
+
let n = Y(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = G(e) ? yt(e) : I(1);
|
|
1172
|
+
return {
|
|
1173
|
+
width: e.clientWidth * a.x,
|
|
1174
|
+
height: e.clientHeight * a.y,
|
|
1175
|
+
x: i * a.x,
|
|
1176
|
+
y: r * a.y
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
function jt(e, t, n) {
|
|
1180
|
+
let r;
|
|
1181
|
+
if (t === "viewport") r = kt(e, n);
|
|
1182
|
+
else if (t === "document") r = Dt(U(e));
|
|
1183
|
+
else if (W(t)) r = At(t, n);
|
|
1184
|
+
else {
|
|
1185
|
+
let n = xt(e);
|
|
1186
|
+
r = {
|
|
1187
|
+
x: t.x - n.x,
|
|
1188
|
+
y: t.y - n.y,
|
|
1189
|
+
width: t.width,
|
|
1190
|
+
height: t.height
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
return He(r);
|
|
1194
|
+
}
|
|
1195
|
+
function Mt(e, t) {
|
|
1196
|
+
let n = J(e);
|
|
1197
|
+
return n === t || !W(n) || ft(n) ? !1 : q(n).position === "fixed" || Mt(n, t);
|
|
1198
|
+
}
|
|
1199
|
+
function Nt(e, t) {
|
|
1200
|
+
let n = t.get(e);
|
|
1201
|
+
if (n) return n;
|
|
1202
|
+
let r = ht(e, [], !1).filter((e) => W(e) && V(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? J(e) : e;
|
|
1203
|
+
for (; W(o) && !ft(o);) {
|
|
1204
|
+
let t = q(o), n = lt(o);
|
|
1205
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || rt(o) && !n && Mt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = J(o);
|
|
1206
|
+
}
|
|
1207
|
+
return t.set(e, r), r;
|
|
1208
|
+
}
|
|
1209
|
+
function Pt(e) {
|
|
1210
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? at(t) ? [] : Nt(t, this._c) : [].concat(n), r], o = jt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1211
|
+
for (let e = 1; e < a.length; e++) {
|
|
1212
|
+
let n = jt(t, a[e], i);
|
|
1213
|
+
s = F(n.top, s), c = P(n.right, c), l = P(n.bottom, l), u = F(n.left, u);
|
|
1214
|
+
}
|
|
1215
|
+
return {
|
|
1216
|
+
width: c - u,
|
|
1217
|
+
height: l - s,
|
|
1218
|
+
x: u,
|
|
1219
|
+
y: s
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
function Ft(e) {
|
|
1223
|
+
let { width: t, height: n } = _t(e);
|
|
1224
|
+
return {
|
|
1225
|
+
width: t,
|
|
1226
|
+
height: n
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
function It(e, t, n) {
|
|
1230
|
+
let r = G(t), i = U(t), a = n === "fixed", o = Y(e, !0, a, t), s = {
|
|
1231
|
+
scrollLeft: 0,
|
|
1232
|
+
scrollTop: 0
|
|
1233
|
+
}, c = I(0);
|
|
1234
|
+
function l() {
|
|
1235
|
+
c.x = Ct(i);
|
|
1236
|
+
}
|
|
1237
|
+
if (r || !r && !a) if ((V(t) !== "body" || rt(i)) && (s = pt(t)), r) {
|
|
1238
|
+
let e = Y(t, !0, a, t);
|
|
1239
|
+
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1240
|
+
} else i && l();
|
|
1241
|
+
a && !r && i && l();
|
|
1242
|
+
let u = i && !r && !a ? wt(i, s) : I(0);
|
|
1243
|
+
return {
|
|
1244
|
+
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1245
|
+
y: o.top + s.scrollTop - c.y - u.y,
|
|
1246
|
+
width: o.width,
|
|
1247
|
+
height: o.height
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
function Lt(e) {
|
|
1251
|
+
return q(e).position === "static";
|
|
1252
|
+
}
|
|
1253
|
+
function Rt(e, t) {
|
|
1254
|
+
if (!G(e) || q(e).position === "fixed") return null;
|
|
1255
|
+
if (t) return t(e);
|
|
1256
|
+
let n = e.offsetParent;
|
|
1257
|
+
return U(e) === n && (n = n.ownerDocument.body), n;
|
|
1258
|
+
}
|
|
1259
|
+
function zt(e, t) {
|
|
1260
|
+
let n = H(e);
|
|
1261
|
+
if (at(e)) return n;
|
|
1262
|
+
if (!G(e)) {
|
|
1263
|
+
let t = J(e);
|
|
1264
|
+
for (; t && !ft(t);) {
|
|
1265
|
+
if (W(t) && !Lt(t)) return t;
|
|
1266
|
+
t = J(t);
|
|
1267
|
+
}
|
|
1268
|
+
return n;
|
|
1269
|
+
}
|
|
1270
|
+
let r = Rt(e, t);
|
|
1271
|
+
for (; r && it(r) && Lt(r);) r = Rt(r, t);
|
|
1272
|
+
return r && ft(r) && Lt(r) && !lt(r) ? n : r || ut(e) || n;
|
|
1273
|
+
}
|
|
1274
|
+
var Bt = async function(e) {
|
|
1275
|
+
let t = this.getOffsetParent || zt, n = this.getDimensions, r = await n(e.floating);
|
|
1276
|
+
return {
|
|
1277
|
+
reference: It(e.reference, await t(e.floating), e.strategy),
|
|
1278
|
+
floating: {
|
|
1279
|
+
x: 0,
|
|
1280
|
+
y: 0,
|
|
1281
|
+
width: r.width,
|
|
1282
|
+
height: r.height
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
function Vt(e) {
|
|
1287
|
+
return q(e).direction === "rtl";
|
|
1288
|
+
}
|
|
1289
|
+
var Ht = {
|
|
1290
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Tt,
|
|
1291
|
+
getDocumentElement: U,
|
|
1292
|
+
getClippingRect: Pt,
|
|
1293
|
+
getOffsetParent: zt,
|
|
1294
|
+
getElementRects: Bt,
|
|
1295
|
+
getClientRects: Et,
|
|
1296
|
+
getDimensions: Ft,
|
|
1297
|
+
getScale: yt,
|
|
1298
|
+
isElement: W,
|
|
1299
|
+
isRTL: Vt
|
|
1300
|
+
};
|
|
1301
|
+
function Ut(e, t) {
|
|
1302
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1303
|
+
}
|
|
1304
|
+
function Wt(e, t) {
|
|
1305
|
+
let n = null, r, i = U(e);
|
|
1306
|
+
function a() {
|
|
1307
|
+
var e;
|
|
1308
|
+
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
1309
|
+
}
|
|
1310
|
+
function o(s, c) {
|
|
1311
|
+
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1312
|
+
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1313
|
+
if (s || t(), !f || !p) return;
|
|
1314
|
+
let m = we(d), h = we(i.clientWidth - (u + f)), g = we(i.clientHeight - (d + p)), _ = we(u), v = {
|
|
1315
|
+
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1316
|
+
threshold: F(0, P(1, c)) || 1
|
|
1317
|
+
}, y = !0;
|
|
1318
|
+
function b(t) {
|
|
1319
|
+
let n = t[0].intersectionRatio;
|
|
1320
|
+
if (n !== c) {
|
|
1321
|
+
if (!y) return o();
|
|
1322
|
+
n ? o(!1, n) : r = setTimeout(() => {
|
|
1323
|
+
o(!1, 1e-7);
|
|
1324
|
+
}, 1e3);
|
|
1325
|
+
}
|
|
1326
|
+
n === 1 && !Ut(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1327
|
+
}
|
|
1328
|
+
try {
|
|
1329
|
+
n = new IntersectionObserver(b, {
|
|
1330
|
+
...v,
|
|
1331
|
+
root: i.ownerDocument
|
|
1332
|
+
});
|
|
1333
|
+
} catch {
|
|
1334
|
+
n = new IntersectionObserver(b, v);
|
|
1335
|
+
}
|
|
1336
|
+
n.observe(e);
|
|
1337
|
+
}
|
|
1338
|
+
return o(!0), a;
|
|
1339
|
+
}
|
|
1340
|
+
function Gt(e, t, n, r) {
|
|
1341
|
+
r === void 0 && (r = {});
|
|
1342
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = vt(e), u = i || a ? [...l ? ht(l) : [], ...t ? ht(t) : []] : [];
|
|
1343
|
+
u.forEach((e) => {
|
|
1344
|
+
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1345
|
+
});
|
|
1346
|
+
let d = l && s ? Wt(l, n) : null, f = -1, p = null;
|
|
1347
|
+
o && (p = new ResizeObserver((e) => {
|
|
1348
|
+
let [r] = e;
|
|
1349
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1350
|
+
var e;
|
|
1351
|
+
(e = p) == null || e.observe(t);
|
|
1352
|
+
})), n();
|
|
1353
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
1354
|
+
let m, h = c ? Y(e) : null;
|
|
1355
|
+
c && g();
|
|
1356
|
+
function g() {
|
|
1357
|
+
let t = Y(e);
|
|
1358
|
+
h && !Ut(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1359
|
+
}
|
|
1360
|
+
return n(), () => {
|
|
1361
|
+
var e;
|
|
1362
|
+
u.forEach((e) => {
|
|
1363
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
1364
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
var Kt = Ze, qt = Qe, Jt = Je, Yt = $e, Xt = qe, Zt = (e, t, n) => {
|
|
1368
|
+
let r = /* @__PURE__ */ new Map(), i = {
|
|
1369
|
+
platform: Ht,
|
|
1370
|
+
...n
|
|
1371
|
+
}, a = {
|
|
1372
|
+
...i.platform,
|
|
1373
|
+
_c: r
|
|
1374
|
+
};
|
|
1375
|
+
return Ke(e, t, {
|
|
1376
|
+
...i,
|
|
1377
|
+
platform: a
|
|
1378
|
+
});
|
|
1379
|
+
}, Qt = /* @__PURE__ */ new Set(), X = class extends j {
|
|
1380
|
+
constructor() {
|
|
1381
|
+
super(...arguments), this.submenuCleanups = /* @__PURE__ */ new Map(), this.localize = new Se(this), this.userTypedQuery = "", this.openSubmenuStack = [], this.open = !1, this.size = "m", this.placement = "bottom-start", this.distance = 0, this.skidding = 0, this.handleDocumentKeyDown = async (e) => {
|
|
1382
|
+
let t = this.localize.dir() === "rtl";
|
|
1383
|
+
if (e.key === "Escape" && this.open && x(this)) {
|
|
1384
|
+
let t = this.getTrigger();
|
|
1385
|
+
e.preventDefault(), e.stopPropagation(), this.open = !1, t?.focus({ preventScroll: !0 });
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
let n = [...f()].find((e) => e.localName === "wa-dropdown-item"), r = n?.localName === "wa-dropdown-item", i = this.getCurrentSubmenuItem(), a = !!i, o, s, c;
|
|
1389
|
+
a ? (o = this.getSubmenuItems(i), s = o.find((e) => e.active || e === n), c = s ? o.indexOf(s) : -1) : (o = this.getItems(), s = o.find((e) => e.active || e === n), c = s ? o.indexOf(s) : -1);
|
|
1390
|
+
let l;
|
|
1391
|
+
if (e.key === "ArrowUp" && (e.preventDefault(), e.stopPropagation(), l = c > 0 ? o[c - 1] : o[o.length - 1]), e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), l = c !== -1 && c < o.length - 1 ? o[c + 1] : o[0]), e.key === (t ? "ArrowLeft" : "ArrowRight") && r && s && s.hasSubmenu) {
|
|
1392
|
+
e.preventDefault(), e.stopPropagation(), s.submenuOpen = !0, this.addToSubmenuStack(s), setTimeout(() => {
|
|
1393
|
+
let e = this.getSubmenuItems(s);
|
|
1394
|
+
e.length > 0 && (e.forEach((e, t) => e.active = t === 0), e[0].focus({ preventScroll: !0 }));
|
|
1395
|
+
}, 0);
|
|
1396
|
+
return;
|
|
1397
|
+
}
|
|
1398
|
+
if (e.key === (t ? "ArrowRight" : "ArrowLeft") && a) {
|
|
1399
|
+
e.preventDefault(), e.stopPropagation();
|
|
1400
|
+
let t = this.removeFromSubmenuStack();
|
|
1401
|
+
t && (t.submenuOpen = !1, setTimeout(() => {
|
|
1402
|
+
t.focus({ preventScroll: !0 }), t.active = !0, (t.slot === "submenu" ? this.getSubmenuItems(t.parentElement) : this.getItems()).forEach((e) => {
|
|
1403
|
+
e !== t && (e.active = !1);
|
|
1404
|
+
});
|
|
1405
|
+
}, 0));
|
|
1406
|
+
return;
|
|
1407
|
+
}
|
|
1408
|
+
if ((e.key === "Home" || e.key === "End") && (e.preventDefault(), e.stopPropagation(), l = e.key === "Home" ? o[0] : o[o.length - 1]), e.key === "Tab" && await this.hideMenu(), e.key.length === 1 && !(e.metaKey || e.ctrlKey || e.altKey) && !(e.key === " " && this.userTypedQuery === "") && (clearTimeout(this.userTypedTimeout), this.userTypedTimeout = setTimeout(() => {
|
|
1409
|
+
this.userTypedQuery = "";
|
|
1410
|
+
}, 1e3), this.userTypedQuery += e.key, o.some((e) => {
|
|
1411
|
+
let t = (e.textContent || "").trim().toLowerCase(), n = this.userTypedQuery.trim().toLowerCase();
|
|
1412
|
+
return t.startsWith(n) ? (l = e, !0) : !1;
|
|
1413
|
+
})), l) {
|
|
1414
|
+
e.preventDefault(), e.stopPropagation(), o.forEach((e) => e.active = e === l), l.focus({ preventScroll: !0 }), l.scrollIntoView({ block: "nearest" });
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
(e.key === "Enter" || e.key === " " && this.userTypedQuery === "") && r && s && (e.preventDefault(), e.stopPropagation(), s.hasSubmenu ? (s.submenuOpen = !0, this.addToSubmenuStack(s), setTimeout(() => {
|
|
1418
|
+
let e = this.getSubmenuItems(s);
|
|
1419
|
+
e.length > 0 && (e.forEach((e, t) => e.active = t === 0), e[0].focus({ preventScroll: !0 }));
|
|
1420
|
+
}, 0)) : this.makeSelection(s));
|
|
1421
|
+
}, this.handleDocumentPointerDown = (e) => {
|
|
1422
|
+
e.composedPath().some((e) => e instanceof HTMLElement ? e === this || e.closest("wa-dropdown, [part=\"submenu\"]") : !1) || (this.open = !1);
|
|
1423
|
+
}, this.handleGlobalMouseMove = (e) => {
|
|
1424
|
+
let t = this.getCurrentSubmenuItem();
|
|
1425
|
+
if (!t?.submenuOpen || !t.submenuElement) return;
|
|
1426
|
+
let n = t.submenuElement.getBoundingClientRect(), r = this.localize.dir() === "rtl", i = r ? n.right : n.left, a = r ? Math.max(e.clientX, i) : Math.min(e.clientX, i), o = Math.max(n.top, Math.min(e.clientY, n.bottom));
|
|
1427
|
+
t.submenuElement.style.setProperty("--safe-triangle-cursor-x", `${a}px`), t.submenuElement.style.setProperty("--safe-triangle-cursor-y", `${o}px`);
|
|
1428
|
+
let s = e.composedPath(), c = t.matches(":hover"), l = !!t.submenuElement?.matches(":hover"), u = c || !!s.find((e) => e === t), d = l || !!s.find((e) => e instanceof HTMLElement && e.closest("[part=\"submenu\"]") === t.submenuElement);
|
|
1429
|
+
!u && !d && setTimeout(() => {
|
|
1430
|
+
!c && !l && (t.submenuOpen = !1);
|
|
1431
|
+
}, 100);
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
handleSizeChange() {
|
|
1435
|
+
te(this.localName, this.size);
|
|
1436
|
+
}
|
|
1437
|
+
disconnectedCallback() {
|
|
1438
|
+
super.disconnectedCallback(), clearInterval(this.userTypedTimeout), this.closeAllSubmenus(), this.submenuCleanups.forEach((e) => e()), this.submenuCleanups.clear(), document.removeEventListener("mousemove", this.handleGlobalMouseMove), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("pointerdown", this.handleDocumentPointerDown), b(this);
|
|
1439
|
+
}
|
|
1440
|
+
firstUpdated() {
|
|
1441
|
+
this.syncAriaAttributes();
|
|
1442
|
+
}
|
|
1443
|
+
async updated(e) {
|
|
1444
|
+
if (e.has("open")) {
|
|
1445
|
+
let t = e.get("open");
|
|
1446
|
+
if (t === this.open || t === void 0 && this.open === !1) return;
|
|
1447
|
+
this.customStates.set("open", this.open), this.open ? await this.showMenu() : (this.closeAllSubmenus(), await this.hideMenu());
|
|
1448
|
+
}
|
|
1449
|
+
e.has("size") && this.syncItemSizes();
|
|
1450
|
+
}
|
|
1451
|
+
getItems(e = !1) {
|
|
1452
|
+
let t = (this.defaultSlot?.assignedElements({ flatten: !0 }) ?? []).filter((e) => e.localName === "wa-dropdown-item");
|
|
1453
|
+
return e ? t : t.filter((e) => !e.disabled);
|
|
1454
|
+
}
|
|
1455
|
+
getSubmenuItems(e, t = !1) {
|
|
1456
|
+
let n = e.shadowRoot?.querySelector("slot[name=\"submenu\"]") || e.querySelector("slot[name=\"submenu\"]");
|
|
1457
|
+
if (!n) return [];
|
|
1458
|
+
let r = n.assignedElements({ flatten: !0 }).filter((e) => e.localName === "wa-dropdown-item");
|
|
1459
|
+
return t ? r : r.filter((e) => !e.disabled);
|
|
1460
|
+
}
|
|
1461
|
+
syncItemSizes() {
|
|
1462
|
+
(this.defaultSlot?.assignedElements({ flatten: !0 }) ?? []).filter((e) => e.localName === "wa-dropdown-item").forEach((e) => e.size = this.size);
|
|
1463
|
+
}
|
|
1464
|
+
addToSubmenuStack(e) {
|
|
1465
|
+
let t = this.openSubmenuStack.indexOf(e);
|
|
1466
|
+
t === -1 ? this.openSubmenuStack.push(e) : this.openSubmenuStack = this.openSubmenuStack.slice(0, t + 1);
|
|
1467
|
+
}
|
|
1468
|
+
removeFromSubmenuStack() {
|
|
1469
|
+
return this.openSubmenuStack.pop();
|
|
1470
|
+
}
|
|
1471
|
+
getCurrentSubmenuItem() {
|
|
1472
|
+
return this.openSubmenuStack.length > 0 ? this.openSubmenuStack[this.openSubmenuStack.length - 1] : void 0;
|
|
1473
|
+
}
|
|
1474
|
+
closeAllSubmenus() {
|
|
1475
|
+
this.getItems(!0).forEach((e) => {
|
|
1476
|
+
e.submenuOpen = !1;
|
|
1477
|
+
}), this.openSubmenuStack = [];
|
|
1478
|
+
}
|
|
1479
|
+
closeSiblingSubmenus(e) {
|
|
1480
|
+
let t = e.closest("wa-dropdown-item:not([slot=\"submenu\"])"), n;
|
|
1481
|
+
n = t ? this.getSubmenuItems(t, !0) : this.getItems(!0), n.forEach((t) => {
|
|
1482
|
+
t !== e && t.submenuOpen && (t.submenuOpen = !1);
|
|
1483
|
+
}), this.openSubmenuStack.includes(e) || this.openSubmenuStack.push(e);
|
|
1484
|
+
}
|
|
1485
|
+
getTrigger() {
|
|
1486
|
+
return this.querySelector("[slot=\"trigger\"]");
|
|
1487
|
+
}
|
|
1488
|
+
async showMenu() {
|
|
1489
|
+
if (!this.getTrigger() || !this.popup || !this.menu) return;
|
|
1490
|
+
let e = new m();
|
|
1491
|
+
if (this.dispatchEvent(e), e.defaultPrevented) {
|
|
1492
|
+
this.open = !1;
|
|
1493
|
+
return;
|
|
1494
|
+
}
|
|
1495
|
+
if (this.popup.active) return;
|
|
1496
|
+
Qt.forEach((e) => e.open = !1), this.popup.active = !0, this.open = !0, Qt.add(this), y(this), this.syncAriaAttributes(), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("pointerdown", this.handleDocumentPointerDown), document.addEventListener("mousemove", this.handleGlobalMouseMove), this.menu.classList.remove("hide"), await D(this.menu, "show");
|
|
1497
|
+
let t = this.getItems();
|
|
1498
|
+
t.length > 0 && (t.forEach((e, t) => e.active = t === 0), t[0].focus({ preventScroll: !0 })), this.dispatchEvent(new _());
|
|
1499
|
+
}
|
|
1500
|
+
async hideMenu() {
|
|
1501
|
+
if (!this.popup || !this.menu) return;
|
|
1502
|
+
let e = new h({ source: this });
|
|
1503
|
+
if (this.dispatchEvent(e), e.defaultPrevented) {
|
|
1504
|
+
this.open = !0;
|
|
1505
|
+
return;
|
|
1506
|
+
}
|
|
1507
|
+
this.open = !1, Qt.delete(this), b(this), this.syncAriaAttributes(), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("pointerdown", this.handleDocumentPointerDown), document.removeEventListener("mousemove", this.handleGlobalMouseMove), this.menu.classList.remove("show"), await D(this.menu, "hide"), this.popup.active = this.open, this.dispatchEvent(new g());
|
|
1508
|
+
}
|
|
1509
|
+
handleMenuClick(e) {
|
|
1510
|
+
let t = e.target.closest("wa-dropdown-item");
|
|
1511
|
+
if (!(!t || t.disabled)) {
|
|
1512
|
+
if (t.hasSubmenu) {
|
|
1513
|
+
t.submenuOpen ||= (this.closeSiblingSubmenus(t), this.addToSubmenuStack(t), !0), e.stopPropagation();
|
|
1514
|
+
return;
|
|
1515
|
+
}
|
|
1516
|
+
this.makeSelection(t);
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
async handleMenuSlotChange() {
|
|
1520
|
+
let e = this.getItems(!0);
|
|
1521
|
+
await Promise.all(e.map((e) => e.updateComplete)), this.syncItemSizes();
|
|
1522
|
+
let t = e.some((e) => e.type === "checkbox"), n = e.some((e) => e.hasSubmenu);
|
|
1523
|
+
e.forEach((e, r) => {
|
|
1524
|
+
e.active = r === 0, e.checkboxAdjacent = t, e.submenuAdjacent = n;
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
handleTriggerClick() {
|
|
1528
|
+
this.open = !this.open;
|
|
1529
|
+
}
|
|
1530
|
+
handleSubmenuOpening(e) {
|
|
1531
|
+
let t = e.detail.item;
|
|
1532
|
+
this.closeSiblingSubmenus(t), this.addToSubmenuStack(t), this.setupSubmenuPosition(t), this.processSubmenuItems(t);
|
|
1533
|
+
}
|
|
1534
|
+
setupSubmenuPosition(e) {
|
|
1535
|
+
if (!e.submenuElement) return;
|
|
1536
|
+
this.cleanupSubmenuPosition(e);
|
|
1537
|
+
let t = Gt(e, e.submenuElement, () => {
|
|
1538
|
+
this.positionSubmenu(e), this.updateSafeTriangleCoordinates(e);
|
|
1539
|
+
});
|
|
1540
|
+
this.submenuCleanups.set(e, t);
|
|
1541
|
+
let n = e.submenuElement.querySelector("slot[name=\"submenu\"]");
|
|
1542
|
+
n && (n.removeEventListener("slotchange", X.handleSubmenuSlotChange), n.addEventListener("slotchange", X.handleSubmenuSlotChange), X.handleSubmenuSlotChange({ target: n }));
|
|
1543
|
+
}
|
|
1544
|
+
static handleSubmenuSlotChange(e) {
|
|
1545
|
+
let t = e.target;
|
|
1546
|
+
if (!t) return;
|
|
1547
|
+
let n = t.assignedElements().filter((e) => e.localName === "wa-dropdown-item");
|
|
1548
|
+
if (n.length === 0) return;
|
|
1549
|
+
let r = n.some((e) => e.hasSubmenu), i = n.some((e) => e.type === "checkbox");
|
|
1550
|
+
n.forEach((e) => {
|
|
1551
|
+
e.submenuAdjacent = r, e.checkboxAdjacent = i;
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
processSubmenuItems(e) {
|
|
1555
|
+
if (!e.submenuElement) return;
|
|
1556
|
+
let t = this.getSubmenuItems(e, !0), n = t.some((e) => e.hasSubmenu);
|
|
1557
|
+
t.forEach((e) => {
|
|
1558
|
+
e.submenuAdjacent = n;
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
cleanupSubmenuPosition(e) {
|
|
1562
|
+
let t = this.submenuCleanups.get(e);
|
|
1563
|
+
t && (t(), this.submenuCleanups.delete(e));
|
|
1564
|
+
}
|
|
1565
|
+
positionSubmenu(e) {
|
|
1566
|
+
if (!e.submenuElement) return;
|
|
1567
|
+
let t = this.localize.dir() === "rtl" ? "left-start" : "right-start";
|
|
1568
|
+
Zt(e, e.submenuElement, {
|
|
1569
|
+
placement: t,
|
|
1570
|
+
middleware: [
|
|
1571
|
+
Kt({
|
|
1572
|
+
mainAxis: 0,
|
|
1573
|
+
crossAxis: -5
|
|
1574
|
+
}),
|
|
1575
|
+
Jt({ fallbackStrategy: "bestFit" }),
|
|
1576
|
+
qt({ padding: 8 })
|
|
1577
|
+
]
|
|
1578
|
+
}).then(({ x: t, y: n, placement: r }) => {
|
|
1579
|
+
e.submenuElement.setAttribute("data-placement", r), Object.assign(e.submenuElement.style, {
|
|
1580
|
+
left: `${t}px`,
|
|
1581
|
+
top: `${n}px`
|
|
1582
|
+
});
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
updateSafeTriangleCoordinates(e) {
|
|
1586
|
+
if (!e.submenuElement || !e.submenuOpen) return;
|
|
1587
|
+
if (document.activeElement?.matches(":focus-visible")) {
|
|
1588
|
+
e.submenuElement.style.setProperty("--safe-triangle-visible", "none");
|
|
1589
|
+
return;
|
|
1590
|
+
}
|
|
1591
|
+
e.submenuElement.style.setProperty("--safe-triangle-visible", "block");
|
|
1592
|
+
let t = e.submenuElement.getBoundingClientRect(), n = this.localize.dir() === "rtl";
|
|
1593
|
+
e.submenuElement.style.setProperty("--safe-triangle-submenu-start-x", `${n ? t.right : t.left}px`), e.submenuElement.style.setProperty("--safe-triangle-submenu-start-y", `${t.top}px`), e.submenuElement.style.setProperty("--safe-triangle-submenu-end-x", `${n ? t.right : t.left}px`), e.submenuElement.style.setProperty("--safe-triangle-submenu-end-y", `${t.bottom}px`);
|
|
1594
|
+
}
|
|
1595
|
+
makeSelection(e) {
|
|
1596
|
+
let t = this.getTrigger();
|
|
1597
|
+
if (e.disabled) return;
|
|
1598
|
+
e.type === "checkbox" && (e.checked = !e.checked);
|
|
1599
|
+
let n = new d({ item: e });
|
|
1600
|
+
this.dispatchEvent(n), n.defaultPrevented || (this.open = !1, t?.focus({ preventScroll: !0 }));
|
|
1601
|
+
}
|
|
1602
|
+
async syncAriaAttributes() {
|
|
1603
|
+
let e = this.getTrigger(), t;
|
|
1604
|
+
e && (e.localName === "wa-button" ? (await customElements.whenDefined("wa-button"), await e.updateComplete, t = e.shadowRoot.querySelector("[part=\"base\"]")) : t = e, t.hasAttribute("id") || t.setAttribute("id", w("wa-dropdown-trigger-")), t.setAttribute("aria-haspopup", "menu"), t.setAttribute("aria-expanded", this.open ? "true" : "false"), this.menu?.setAttribute("aria-expanded", "false"));
|
|
1605
|
+
}
|
|
1606
|
+
render() {
|
|
1607
|
+
let e = this.didSSR && !this.hasUpdated ? this.open : this.popup?.active;
|
|
1608
|
+
return i`
|
|
1609
|
+
<wa-popup
|
|
1610
|
+
placement=${this.placement}
|
|
1611
|
+
distance=${this.distance}
|
|
1612
|
+
skidding=${this.skidding}
|
|
1613
|
+
?active=${e}
|
|
1614
|
+
flip
|
|
1615
|
+
flip-fallback-strategy="best-fit"
|
|
1616
|
+
shift
|
|
1617
|
+
shift-padding="10"
|
|
1618
|
+
auto-size="vertical"
|
|
1619
|
+
auto-size-padding="10"
|
|
1620
|
+
>
|
|
1621
|
+
<slot
|
|
1622
|
+
name="trigger"
|
|
1623
|
+
slot="anchor"
|
|
1624
|
+
@click=${this.handleTriggerClick}
|
|
1625
|
+
@slotchange=${this.syncAriaAttributes}
|
|
1626
|
+
></slot>
|
|
1627
|
+
<div
|
|
1628
|
+
id="menu"
|
|
1629
|
+
part="menu"
|
|
1630
|
+
role="menu"
|
|
1631
|
+
tabindex="-1"
|
|
1632
|
+
aria-orientation="vertical"
|
|
1633
|
+
@click=${this.handleMenuClick}
|
|
1634
|
+
@submenu-opening=${this.handleSubmenuOpening}
|
|
1635
|
+
>
|
|
1636
|
+
<slot @slotchange=${this.handleMenuSlotChange}></slot>
|
|
1637
|
+
</div>
|
|
1638
|
+
</wa-popup>
|
|
1639
|
+
`;
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
X.css = [E, p], A([u("slot:not([name])")], X.prototype, "defaultSlot", 2), A([u("#menu")], X.prototype, "menu", 2), A([u("wa-popup")], X.prototype, "popup", 2), A([l({
|
|
1643
|
+
type: Boolean,
|
|
1644
|
+
reflect: !0
|
|
1645
|
+
})], X.prototype, "open", 2), A([l({ reflect: !0 })], X.prototype, "size", 2), A([O("size")], X.prototype, "handleSizeChange", 1), A([l({ reflect: !0 })], X.prototype, "placement", 2), A([l({ type: Number })], X.prototype, "distance", 2), A([l({ type: Number })], X.prototype, "skidding", 2), X = A([s("wa-dropdown")], X);
|
|
1646
|
+
//#endregion
|
|
1647
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.VCKA3KNZ.js
|
|
1648
|
+
var $t = r`
|
|
1649
|
+
:host {
|
|
1650
|
+
display: flex;
|
|
1651
|
+
position: relative;
|
|
1652
|
+
align-items: center;
|
|
1653
|
+
padding: 0.5em 1em;
|
|
1654
|
+
border-radius: var(--wa-border-radius-s);
|
|
1655
|
+
isolation: isolate;
|
|
1656
|
+
color: var(--wa-color-text-normal);
|
|
1657
|
+
line-height: var(--wa-line-height-condensed);
|
|
1658
|
+
cursor: pointer;
|
|
1659
|
+
transition:
|
|
1660
|
+
var(--wa-transition-fast) background-color var(--wa-transition-easing),
|
|
1661
|
+
var(--wa-transition-fast) color var(--wa-transition-easing);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
@media (hover: hover) {
|
|
1665
|
+
:host(:hover:not(:state(disabled))) {
|
|
1666
|
+
background-color: var(--wa-color-neutral-fill-normal);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
:host(:state(submenu-open)) {
|
|
1671
|
+
background-color: var(--wa-color-neutral-fill-normal);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
:host(:focus-visible) {
|
|
1675
|
+
z-index: 1;
|
|
1676
|
+
outline: var(--wa-focus-ring);
|
|
1677
|
+
background-color: var(--wa-color-neutral-fill-normal);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
:host(:state(disabled)),
|
|
1681
|
+
:host([disabled]) {
|
|
1682
|
+
opacity: 0.5;
|
|
1683
|
+
cursor: not-allowed;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
/* Danger variant */
|
|
1687
|
+
:host([variant='danger']),
|
|
1688
|
+
:host([variant='danger']) #details {
|
|
1689
|
+
color: var(--wa-color-danger-on-quiet);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
@media (hover: hover) {
|
|
1693
|
+
:host([variant='danger']:hover) {
|
|
1694
|
+
background-color: var(--wa-color-danger-fill-normal);
|
|
1695
|
+
color: var(--wa-color-danger-on-normal);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
:host([variant='danger']:state(submenu-open)),
|
|
1700
|
+
:host([variant='danger']:focus-visible) {
|
|
1701
|
+
background-color: var(--wa-color-danger-fill-normal);
|
|
1702
|
+
color: var(--wa-color-danger-on-normal);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
:host([checkbox-adjacent]) {
|
|
1706
|
+
padding-inline-start: 2em;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
/* Only add padding when item actually has a submenu */
|
|
1710
|
+
:host([submenu-adjacent]:not(:state(has-submenu))) #details {
|
|
1711
|
+
padding-inline-end: 0;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
:host(:state(has-submenu)[submenu-adjacent]) #details {
|
|
1715
|
+
padding-inline-end: 1.75em;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
#check {
|
|
1719
|
+
visibility: hidden;
|
|
1720
|
+
margin-inline-start: -1.5em;
|
|
1721
|
+
margin-inline-end: 0.5em;
|
|
1722
|
+
font-size: var(--wa-font-size-smaller);
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
:host(:state(checked)) #check {
|
|
1726
|
+
visibility: visible;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
#icon ::slotted(*) {
|
|
1730
|
+
display: flex;
|
|
1731
|
+
flex: 0 0 auto;
|
|
1732
|
+
align-items: center;
|
|
1733
|
+
margin-inline-end: 0.75em !important;
|
|
1734
|
+
font-size: var(--wa-font-size-smaller);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
#label {
|
|
1738
|
+
flex: 1 1 auto;
|
|
1739
|
+
min-width: 0;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
#details {
|
|
1743
|
+
display: flex;
|
|
1744
|
+
flex: 0 0 auto;
|
|
1745
|
+
align-items: center;
|
|
1746
|
+
justify-content: end;
|
|
1747
|
+
color: var(--wa-color-text-quiet);
|
|
1748
|
+
font-size: var(--wa-font-size-smaller) !important;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
#details ::slotted(*) {
|
|
1752
|
+
margin-inline-start: 2em !important;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
/* Submenu indicator icon */
|
|
1756
|
+
#submenu-indicator {
|
|
1757
|
+
position: absolute;
|
|
1758
|
+
inset-inline-end: 1em;
|
|
1759
|
+
color: var(--wa-color-neutral-on-quiet);
|
|
1760
|
+
font-size: var(--wa-font-size-smaller);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/* Flip chevron icon when RTL */
|
|
1764
|
+
:host(:dir(rtl)) #submenu-indicator {
|
|
1765
|
+
transform: scaleX(-1);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
/* Submenu styles */
|
|
1769
|
+
#submenu {
|
|
1770
|
+
display: flex;
|
|
1771
|
+
z-index: 10;
|
|
1772
|
+
position: absolute;
|
|
1773
|
+
top: 0;
|
|
1774
|
+
left: 0;
|
|
1775
|
+
flex-direction: column;
|
|
1776
|
+
width: max-content;
|
|
1777
|
+
margin: 0;
|
|
1778
|
+
padding: 0.25em;
|
|
1779
|
+
border: var(--wa-border-style) var(--wa-border-width-s) var(--wa-color-surface-border);
|
|
1780
|
+
border-radius: var(--wa-border-radius-m);
|
|
1781
|
+
background-color: var(--wa-color-surface-raised);
|
|
1782
|
+
box-shadow: var(--wa-shadow-m);
|
|
1783
|
+
color: var(--wa-color-text-normal);
|
|
1784
|
+
text-align: start;
|
|
1785
|
+
user-select: none;
|
|
1786
|
+
|
|
1787
|
+
/* Override default popover styles */
|
|
1788
|
+
&[popover] {
|
|
1789
|
+
margin: 0;
|
|
1790
|
+
inset: auto;
|
|
1791
|
+
padding: 0.25em;
|
|
1792
|
+
overflow: visible;
|
|
1793
|
+
border-radius: var(--wa-border-radius-m);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
&.show {
|
|
1797
|
+
animation: submenu-show var(--show-duration, var(--wa-transition-fast)) ease;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
&.hide {
|
|
1801
|
+
animation: submenu-show var(--show-duration, var(--wa-transition-fast)) ease reverse;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/* Submenu placement transform origins */
|
|
1805
|
+
&[data-placement^='top'] {
|
|
1806
|
+
transform-origin: bottom;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
&[data-placement^='bottom'] {
|
|
1810
|
+
transform-origin: top;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
&[data-placement^='left'] {
|
|
1814
|
+
transform-origin: right;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
&[data-placement^='right'] {
|
|
1818
|
+
transform-origin: left;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
&[data-placement='left-start'] {
|
|
1822
|
+
transform-origin: right top;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
&[data-placement='left-end'] {
|
|
1826
|
+
transform-origin: right bottom;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
&[data-placement='right-start'] {
|
|
1830
|
+
transform-origin: left top;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
&[data-placement='right-end'] {
|
|
1834
|
+
transform-origin: left bottom;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
/* Safe triangle styling */
|
|
1838
|
+
&::before {
|
|
1839
|
+
display: none;
|
|
1840
|
+
z-index: 9;
|
|
1841
|
+
position: fixed;
|
|
1842
|
+
top: 0;
|
|
1843
|
+
right: 0;
|
|
1844
|
+
bottom: 0;
|
|
1845
|
+
left: 0;
|
|
1846
|
+
background-color: transparent;
|
|
1847
|
+
content: '';
|
|
1848
|
+
clip-path: polygon(
|
|
1849
|
+
var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),
|
|
1850
|
+
var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),
|
|
1851
|
+
var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)
|
|
1852
|
+
);
|
|
1853
|
+
pointer-events: auto; /* Enable mouse events on the triangle */
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
&[data-visible]::before {
|
|
1857
|
+
display: block;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
::slotted(wa-dropdown-item) {
|
|
1862
|
+
font-size: inherit;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
::slotted(wa-divider) {
|
|
1866
|
+
--spacing: 0.25em;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
@keyframes submenu-show {
|
|
1870
|
+
from {
|
|
1871
|
+
scale: 0.9;
|
|
1872
|
+
opacity: 0;
|
|
1873
|
+
}
|
|
1874
|
+
to {
|
|
1875
|
+
scale: 1;
|
|
1876
|
+
opacity: 1;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
`, en = class {
|
|
1880
|
+
constructor(e, ...t) {
|
|
1881
|
+
this.slotNames = [], this.handleSlotChange = (e) => {
|
|
1882
|
+
let t = e.target;
|
|
1883
|
+
(this.slotNames.includes("[default]") && !t.name || t.name && this.slotNames.includes(t.name)) && this.host.requestUpdate();
|
|
1884
|
+
}, (this.host = e).addController(this), this.slotNames = t;
|
|
1885
|
+
}
|
|
1886
|
+
hasDefaultSlot() {
|
|
1887
|
+
return this.host.childNodes ? [...this.host.childNodes].some((e) => {
|
|
1888
|
+
if (e.nodeType === Node.TEXT_NODE && e.textContent.trim() !== "") return !0;
|
|
1889
|
+
if (e.nodeType === Node.ELEMENT_NODE) {
|
|
1890
|
+
let t = e;
|
|
1891
|
+
if (t.tagName.toLowerCase() === "wa-visually-hidden") return !1;
|
|
1892
|
+
if (!t.hasAttribute("slot")) return !0;
|
|
1893
|
+
}
|
|
1894
|
+
return !1;
|
|
1895
|
+
}) : !1;
|
|
1896
|
+
}
|
|
1897
|
+
hasNamedSlot(e) {
|
|
1898
|
+
return this.host.querySelector?.(`:scope > [slot="${e}"]`) !== null;
|
|
1899
|
+
}
|
|
1900
|
+
test(e, t) {
|
|
1901
|
+
return t && this.host.didSSR && !this.host.hasUpdated ? !!this.host[t] : e === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(e);
|
|
1902
|
+
}
|
|
1903
|
+
hostConnected() {
|
|
1904
|
+
let e = this.host.shadowRoot;
|
|
1905
|
+
e && "addEventListener" in e && e.addEventListener("slotchange", this.handleSlotChange);
|
|
1906
|
+
}
|
|
1907
|
+
hostDisconnected() {
|
|
1908
|
+
let e = this.host.shadowRoot;
|
|
1909
|
+
e && "removeEventListener" in e && e.removeEventListener("slotchange", this.handleSlotChange);
|
|
1910
|
+
}
|
|
1911
|
+
}, Z = class extends j {
|
|
1912
|
+
constructor() {
|
|
1913
|
+
super(...arguments), this.hasSlotController = new en(this, "[default]", "start", "end"), this.active = !1, this.variant = "default", this.size = "m", this.checkboxAdjacent = !1, this.submenuAdjacent = !1, this.type = "normal", this.checked = !1, this.disabled = !1, this.submenuOpen = !1, this.hasSubmenu = !1, this.handleSlotChange = () => {
|
|
1914
|
+
this.hasSubmenu = this.hasSlotController.test("submenu"), this.updateHasSubmenuState(), this.hasSubmenu ? (this.setAttribute("aria-haspopup", "menu"), this.setAttribute("aria-expanded", this.submenuOpen ? "true" : "false")) : (this.removeAttribute("aria-haspopup"), this.removeAttribute("aria-expanded"));
|
|
1915
|
+
}, this.handleHostClick = (e) => {
|
|
1916
|
+
this.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1917
|
+
}, this.handleClick = (e) => {
|
|
1918
|
+
this.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
handleSizeChange() {
|
|
1922
|
+
te(this.localName, this.size);
|
|
1923
|
+
}
|
|
1924
|
+
connectedCallback() {
|
|
1925
|
+
super.connectedCallback(), this.addEventListener?.("click", this.handleHostClick), this.addEventListener?.("mouseenter", this.handleMouseEnter.bind(this)), this.shadowRoot?.addEventListener?.("click", this.handleClick, { capture: !0 }), this.shadowRoot?.addEventListener?.("slotchange", this.handleSlotChange);
|
|
1926
|
+
}
|
|
1927
|
+
disconnectedCallback() {
|
|
1928
|
+
super.disconnectedCallback(), this.closeSubmenu(), this.removeEventListener?.("click", this.handleHostClick), this.removeEventListener?.("mouseenter", this.handleMouseEnter), this.shadowRoot?.removeEventListener?.("click", this.handleClick, { capture: !0 }), this.shadowRoot?.removeEventListener?.("slotchange", this.handleSlotChange);
|
|
1929
|
+
}
|
|
1930
|
+
firstUpdated() {
|
|
1931
|
+
this.setAttribute("tabindex", "-1"), this.hasSubmenu = this.hasSlotController.test("submenu"), this.updateHasSubmenuState();
|
|
1932
|
+
}
|
|
1933
|
+
updated(e) {
|
|
1934
|
+
e.has("active") && (this.setAttribute("tabindex", this.active ? "0" : "-1"), this.customStates.set("active", this.active)), e.has("checked") && (this.type === "checkbox" ? this.setAttribute("aria-checked", this.checked ? "true" : "false") : this.removeAttribute("aria-checked"), this.customStates.set("checked", this.checked)), e.has("disabled") && (this.setAttribute("aria-disabled", this.disabled ? "true" : "false"), this.customStates.set("disabled", this.disabled)), e.has("type") && (this.type === "checkbox" ? (this.setAttribute("role", "menuitemcheckbox"), this.setAttribute("aria-checked", this.checked ? "true" : "false")) : (this.setAttribute("role", "menuitem"), this.removeAttribute("aria-checked"))), e.has("submenuOpen") && (this.customStates.set("submenu-open", this.submenuOpen), this.submenuOpen ? this.openSubmenu() : this.closeSubmenu());
|
|
1935
|
+
}
|
|
1936
|
+
updateHasSubmenuState() {
|
|
1937
|
+
this.customStates.set("has-submenu", this.hasSubmenu);
|
|
1938
|
+
}
|
|
1939
|
+
async openSubmenu() {
|
|
1940
|
+
let e = this.submenuElement;
|
|
1941
|
+
!this.hasSubmenu || !e || !this.isConnected || (this.notifyParentOfOpening(), e.showPopover?.(), e.hidden = !1, e.setAttribute("data-visible", ""), this.submenuOpen = !0, this.setAttribute("aria-expanded", "true"), await D(e, "show"), setTimeout(() => {
|
|
1942
|
+
let e = this.getSubmenuItems();
|
|
1943
|
+
e.length > 0 && (e.forEach((e, t) => e.active = t === 0), e[0].focus({ preventScroll: !0 }));
|
|
1944
|
+
}, 0));
|
|
1945
|
+
}
|
|
1946
|
+
notifyParentOfOpening() {
|
|
1947
|
+
let e = new CustomEvent("submenu-opening", {
|
|
1948
|
+
bubbles: !0,
|
|
1949
|
+
composed: !0,
|
|
1950
|
+
detail: { item: this }
|
|
1951
|
+
});
|
|
1952
|
+
this.dispatchEvent(e);
|
|
1953
|
+
let t = this.parentElement;
|
|
1954
|
+
t && [...t.children].filter((e) => e !== this && e.localName === "wa-dropdown-item" && e.getAttribute("slot") === this.getAttribute("slot") && e.submenuOpen).forEach((e) => {
|
|
1955
|
+
e.submenuOpen = !1;
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
async closeSubmenu() {
|
|
1959
|
+
let e = this.submenuElement;
|
|
1960
|
+
!this.hasSubmenu || !e || (this.submenuOpen = !1, this.setAttribute("aria-expanded", "false"), e.hidden || (await D(e, "hide"), e?.isConnected && (e.hidden = !0, e.removeAttribute("data-visible"), e.hidePopover?.())));
|
|
1961
|
+
}
|
|
1962
|
+
getSubmenuItems() {
|
|
1963
|
+
return [...this.children].filter((e) => e.localName === "wa-dropdown-item" && e.getAttribute("slot") === "submenu" && !e.hasAttribute("disabled"));
|
|
1964
|
+
}
|
|
1965
|
+
handleMouseEnter() {
|
|
1966
|
+
this.hasSubmenu && !this.disabled && (this.notifyParentOfOpening(), this.submenuOpen = !0);
|
|
1967
|
+
}
|
|
1968
|
+
render() {
|
|
1969
|
+
return i`
|
|
1970
|
+
${this.type === "checkbox" ? i`
|
|
1971
|
+
<wa-icon
|
|
1972
|
+
id="check"
|
|
1973
|
+
part="checkmark"
|
|
1974
|
+
exportparts="svg:checkmark__svg"
|
|
1975
|
+
library="system"
|
|
1976
|
+
name="check"
|
|
1977
|
+
></wa-icon>
|
|
1978
|
+
` : ""}
|
|
1979
|
+
|
|
1980
|
+
<span id="icon" part="icon">
|
|
1981
|
+
<slot name="icon"></slot>
|
|
1982
|
+
</span>
|
|
1983
|
+
|
|
1984
|
+
<span id="label" part="label">
|
|
1985
|
+
<slot></slot>
|
|
1986
|
+
</span>
|
|
1987
|
+
|
|
1988
|
+
<span id="details" part="details">
|
|
1989
|
+
<slot name="details"></slot>
|
|
1990
|
+
</span>
|
|
1991
|
+
|
|
1992
|
+
${this.hasSubmenu ? i`
|
|
1993
|
+
<wa-icon
|
|
1994
|
+
id="submenu-indicator"
|
|
1995
|
+
part="submenu-icon"
|
|
1996
|
+
exportparts="svg:submenu-icon__svg"
|
|
1997
|
+
library="system"
|
|
1998
|
+
name="chevron-right"
|
|
1999
|
+
></wa-icon>
|
|
2000
|
+
` : ""}
|
|
2001
|
+
${this.hasSubmenu ? i`
|
|
2002
|
+
<div
|
|
2003
|
+
id="submenu"
|
|
2004
|
+
part="submenu"
|
|
2005
|
+
popover="manual"
|
|
2006
|
+
role="menu"
|
|
2007
|
+
tabindex="-1"
|
|
2008
|
+
aria-orientation="vertical"
|
|
2009
|
+
hidden
|
|
2010
|
+
>
|
|
2011
|
+
<slot name="submenu"></slot>
|
|
2012
|
+
</div>
|
|
2013
|
+
` : ""}
|
|
2014
|
+
`;
|
|
2015
|
+
}
|
|
2016
|
+
};
|
|
2017
|
+
Z.css = $t, A([u("#submenu")], Z.prototype, "submenuElement", 2), A([l({ type: Boolean })], Z.prototype, "active", 2), A([l({ reflect: !0 })], Z.prototype, "variant", 2), A([l({ reflect: !0 })], Z.prototype, "size", 2), A([O("size")], Z.prototype, "handleSizeChange", 1), A([l({
|
|
2018
|
+
attribute: "checkbox-adjacent",
|
|
2019
|
+
type: Boolean,
|
|
2020
|
+
reflect: !0
|
|
2021
|
+
})], Z.prototype, "checkboxAdjacent", 2), A([l({
|
|
2022
|
+
attribute: "submenu-adjacent",
|
|
2023
|
+
type: Boolean,
|
|
2024
|
+
reflect: !0
|
|
2025
|
+
})], Z.prototype, "submenuAdjacent", 2), A([l()], Z.prototype, "value", 2), A([l({ reflect: !0 })], Z.prototype, "type", 2), A([l({ type: Boolean })], Z.prototype, "checked", 2), A([l({
|
|
2026
|
+
type: Boolean,
|
|
2027
|
+
reflect: !0
|
|
2028
|
+
})], Z.prototype, "disabled", 2), A([l({
|
|
2029
|
+
type: Boolean,
|
|
2030
|
+
reflect: !0
|
|
2031
|
+
})], Z.prototype, "submenuOpen", 2), A([c()], Z.prototype, "hasSubmenu", 2), Z = A([s("wa-dropdown-item")], Z);
|
|
2032
|
+
//#endregion
|
|
2033
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.ZWQCGLB5.js
|
|
2034
|
+
var tn = class extends Event {
|
|
2035
|
+
constructor() {
|
|
2036
|
+
super("wa-reposition", {
|
|
2037
|
+
bubbles: !0,
|
|
2038
|
+
cancelable: !1,
|
|
2039
|
+
composed: !0
|
|
2040
|
+
});
|
|
2041
|
+
}
|
|
2042
|
+
}, nn = r`
|
|
2043
|
+
:host {
|
|
2044
|
+
--arrow-color: black;
|
|
2045
|
+
--arrow-size: var(--wa-tooltip-arrow-size);
|
|
2046
|
+
--popup-border-width: 0px;
|
|
2047
|
+
--show-duration: var(--wa-transition-fast);
|
|
2048
|
+
--hide-duration: var(--wa-transition-fast);
|
|
2049
|
+
|
|
2050
|
+
/*
|
|
2051
|
+
* These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
|
|
2052
|
+
* 0.7071 is derived from sin(45) to calculate the length of the arrow after rotation.
|
|
2053
|
+
*
|
|
2054
|
+
* The diamond will be translated inward by --arrow-base-offset, the border thickness, to centralise it on
|
|
2055
|
+
* the inner edge of the popup border. This also means we need to increase the size of the arrow by the
|
|
2056
|
+
* same amount to compensate.
|
|
2057
|
+
*
|
|
2058
|
+
* A diamond shaped clipping mask is used to avoid overlap of popup content. This extends slightly inward so
|
|
2059
|
+
* the popup border is covered with no sub-pixel rounding artifacts. The diamond corners are mitred at 22.5º
|
|
2060
|
+
* to properly merge any arrow border with the popup border. The constant 1.4142 is derived from 1 + tan(22.5).
|
|
2061
|
+
*
|
|
2062
|
+
*/
|
|
2063
|
+
--arrow-base-offset: var(--popup-border-width);
|
|
2064
|
+
--arrow-size-diagonal: calc((var(--arrow-size) + var(--arrow-base-offset)) * 0.7071);
|
|
2065
|
+
--arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
|
|
2066
|
+
--arrow-size-div: calc(var(--arrow-size-diagonal) * 2);
|
|
2067
|
+
--arrow-clipping-corner: calc(var(--arrow-base-offset) * 1.4142);
|
|
2068
|
+
|
|
2069
|
+
display: contents;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
.popup {
|
|
2073
|
+
position: absolute;
|
|
2074
|
+
isolation: isolate;
|
|
2075
|
+
max-width: var(--auto-size-available-width, none);
|
|
2076
|
+
max-height: var(--auto-size-available-height, none);
|
|
2077
|
+
|
|
2078
|
+
/* Clear UA styles for [popover] */
|
|
2079
|
+
:where(&) {
|
|
2080
|
+
inset: unset;
|
|
2081
|
+
padding: unset;
|
|
2082
|
+
margin: unset;
|
|
2083
|
+
width: unset;
|
|
2084
|
+
height: unset;
|
|
2085
|
+
color: unset;
|
|
2086
|
+
background: unset;
|
|
2087
|
+
border: unset;
|
|
2088
|
+
overflow: unset;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
.popup-fixed {
|
|
2093
|
+
position: fixed;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
.popup:not(.popup-active) {
|
|
2097
|
+
display: none;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
.arrow {
|
|
2101
|
+
position: absolute;
|
|
2102
|
+
width: var(--arrow-size-div);
|
|
2103
|
+
height: var(--arrow-size-div);
|
|
2104
|
+
background: var(--arrow-color);
|
|
2105
|
+
z-index: 3;
|
|
2106
|
+
clip-path: polygon(
|
|
2107
|
+
var(--arrow-clipping-corner) 100%,
|
|
2108
|
+
var(--arrow-base-offset) calc(100% - var(--arrow-base-offset)),
|
|
2109
|
+
calc(var(--arrow-base-offset) - 2px) calc(100% - var(--arrow-base-offset)),
|
|
2110
|
+
calc(100% - var(--arrow-base-offset)) calc(var(--arrow-base-offset) - 2px),
|
|
2111
|
+
calc(100% - var(--arrow-base-offset)) var(--arrow-base-offset),
|
|
2112
|
+
100% var(--arrow-clipping-corner),
|
|
2113
|
+
100% 100%
|
|
2114
|
+
);
|
|
2115
|
+
rotate: 45deg;
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
:host([data-current-placement|='left']) .arrow {
|
|
2119
|
+
rotate: -45deg;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
:host([data-current-placement|='right']) .arrow {
|
|
2123
|
+
rotate: 135deg;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
:host([data-current-placement|='bottom']) .arrow {
|
|
2127
|
+
rotate: 225deg;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/* Hover bridge */
|
|
2131
|
+
.popup-hover-bridge:not(.popup-hover-bridge-visible) {
|
|
2132
|
+
display: none;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
.popup-hover-bridge {
|
|
2136
|
+
position: fixed;
|
|
2137
|
+
z-index: 899;
|
|
2138
|
+
top: 0;
|
|
2139
|
+
right: 0;
|
|
2140
|
+
bottom: 0;
|
|
2141
|
+
left: 0;
|
|
2142
|
+
clip-path: polygon(
|
|
2143
|
+
var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
|
|
2144
|
+
var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
|
|
2145
|
+
var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
|
|
2146
|
+
var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
|
|
2147
|
+
);
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
/* Built-in animations */
|
|
2151
|
+
.show {
|
|
2152
|
+
animation: show var(--show-duration) ease;
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
.hide {
|
|
2156
|
+
animation: show var(--hide-duration) ease reverse;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
@keyframes show {
|
|
2160
|
+
from {
|
|
2161
|
+
opacity: 0;
|
|
2162
|
+
}
|
|
2163
|
+
to {
|
|
2164
|
+
opacity: 1;
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
.show-with-scale {
|
|
2169
|
+
animation: show-with-scale var(--show-duration) ease;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
.hide-with-scale {
|
|
2173
|
+
animation: show-with-scale var(--hide-duration) ease reverse;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
@keyframes show-with-scale {
|
|
2177
|
+
from {
|
|
2178
|
+
opacity: 0;
|
|
2179
|
+
scale: 0.8;
|
|
2180
|
+
}
|
|
2181
|
+
to {
|
|
2182
|
+
opacity: 1;
|
|
2183
|
+
scale: 1;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
`;
|
|
2187
|
+
//#endregion
|
|
2188
|
+
//#region node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
|
|
2189
|
+
function rn(e) {
|
|
2190
|
+
return on(e);
|
|
2191
|
+
}
|
|
2192
|
+
function an(e) {
|
|
2193
|
+
return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
|
|
2194
|
+
}
|
|
2195
|
+
function on(e) {
|
|
2196
|
+
for (let t = e; t; t = an(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
|
|
2197
|
+
for (let t = an(e); t; t = an(t)) {
|
|
2198
|
+
if (!(t instanceof Element)) continue;
|
|
2199
|
+
let e = getComputedStyle(t);
|
|
2200
|
+
if (e.display !== "contents" && (e.position !== "static" || lt(e) || t.tagName === "BODY")) return t;
|
|
2201
|
+
}
|
|
2202
|
+
return null;
|
|
2203
|
+
}
|
|
2204
|
+
//#endregion
|
|
2205
|
+
//#region node_modules/lit-html/directive.js
|
|
2206
|
+
var sn = {
|
|
2207
|
+
ATTRIBUTE: 1,
|
|
2208
|
+
CHILD: 2,
|
|
2209
|
+
PROPERTY: 3,
|
|
2210
|
+
BOOLEAN_ATTRIBUTE: 4,
|
|
2211
|
+
EVENT: 5,
|
|
2212
|
+
ELEMENT: 6
|
|
2213
|
+
}, cn = (e) => (...t) => ({
|
|
2214
|
+
_$litDirective$: e,
|
|
2215
|
+
values: t
|
|
2216
|
+
}), ln = class {
|
|
2217
|
+
constructor(e) {}
|
|
2218
|
+
get _$AU() {
|
|
2219
|
+
return this._$AM._$AU;
|
|
2220
|
+
}
|
|
2221
|
+
_$AT(e, t, n) {
|
|
2222
|
+
this._$Ct = e, this._$AM = t, this._$Ci = n;
|
|
2223
|
+
}
|
|
2224
|
+
_$AS(e, t) {
|
|
2225
|
+
return this.update(e, t);
|
|
2226
|
+
}
|
|
2227
|
+
update(e, t) {
|
|
2228
|
+
return this.render(...t);
|
|
2229
|
+
}
|
|
2230
|
+
}, un = cn(class extends ln {
|
|
2231
|
+
constructor(e) {
|
|
2232
|
+
if (super(e), e.type !== sn.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2233
|
+
}
|
|
2234
|
+
render(e) {
|
|
2235
|
+
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
|
2236
|
+
}
|
|
2237
|
+
update(e, [t]) {
|
|
2238
|
+
if (this.st === void 0) {
|
|
2239
|
+
this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((e) => e !== "")));
|
|
2240
|
+
for (let e in t) t[e] && !this.nt?.has(e) && this.st.add(e);
|
|
2241
|
+
return this.render(t);
|
|
2242
|
+
}
|
|
2243
|
+
let n = e.element.classList;
|
|
2244
|
+
for (let e of this.st) e in t || (n.remove(e), this.st.delete(e));
|
|
2245
|
+
for (let e in t) {
|
|
2246
|
+
let r = !!t[e];
|
|
2247
|
+
r === this.st.has(e) || this.nt?.has(e) || (r ? (n.add(e), this.st.add(e)) : (n.remove(e), this.st.delete(e)));
|
|
2248
|
+
}
|
|
2249
|
+
return a;
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
//#endregion
|
|
2253
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.K442ELDU.js
|
|
2254
|
+
function dn(e) {
|
|
2255
|
+
return typeof e == "object" && !!e && "getBoundingClientRect" in e && ("contextElement" in e ? e instanceof Element : !0);
|
|
2256
|
+
}
|
|
2257
|
+
var fn = !!globalThis?.HTMLElement?.prototype.hasOwnProperty("popover"), Q = class extends j {
|
|
2258
|
+
constructor() {
|
|
2259
|
+
super(...arguments), this.localize = new Se(this), this.SUPPORTS_POPOVER = !1, this.active = !1, this.placement = "top", this.boundary = "viewport", this.distance = 0, this.skidding = 0, this.arrow = !1, this.arrowPlacement = "anchor", this.arrowPadding = 10, this.flip = !1, this.flipFallbackPlacements = "", this.flipFallbackStrategy = "best-fit", this.flipPadding = 0, this.shift = !1, this.shiftPadding = 0, this.autoSizePadding = 0, this.hoverBridge = !1, this.updateHoverBridge = () => {
|
|
2260
|
+
if (this.hoverBridge && this.anchorEl && this.popup) {
|
|
2261
|
+
let e = this.anchorEl.getBoundingClientRect(), t = this.popup.getBoundingClientRect(), n = this.placement.includes("top") || this.placement.includes("bottom"), r = 0, i = 0, a = 0, o = 0, s = 0, c = 0, l = 0, u = 0;
|
|
2262
|
+
n ? e.top < t.top ? (r = e.left, i = e.bottom, a = e.right, o = e.bottom, s = t.left, c = t.top, l = t.right, u = t.top) : (r = t.left, i = t.bottom, a = t.right, o = t.bottom, s = e.left, c = e.top, l = e.right, u = e.top) : e.left < t.left ? (r = e.right, i = e.top, a = t.left, o = t.top, s = e.right, c = e.bottom, l = t.left, u = t.bottom) : (r = t.right, i = t.top, a = e.left, o = e.top, s = t.right, c = t.bottom, l = e.left, u = e.bottom), this.style.setProperty("--hover-bridge-top-left-x", `${r}px`), this.style.setProperty("--hover-bridge-top-left-y", `${i}px`), this.style.setProperty("--hover-bridge-top-right-x", `${a}px`), this.style.setProperty("--hover-bridge-top-right-y", `${o}px`), this.style.setProperty("--hover-bridge-bottom-left-x", `${s}px`), this.style.setProperty("--hover-bridge-bottom-left-y", `${c}px`), this.style.setProperty("--hover-bridge-bottom-right-x", `${l}px`), this.style.setProperty("--hover-bridge-bottom-right-y", `${u}px`);
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
async connectedCallback() {
|
|
2267
|
+
super.connectedCallback(), await this.updateComplete, this.SUPPORTS_POPOVER = fn, this.start();
|
|
2268
|
+
}
|
|
2269
|
+
disconnectedCallback() {
|
|
2270
|
+
super.disconnectedCallback(), this.stop();
|
|
2271
|
+
}
|
|
2272
|
+
async updated(e) {
|
|
2273
|
+
super.updated(e), e.has("active") && (this.active ? this.start() : this.stop()), e.has("anchor") && this.handleAnchorChange(), this.active && (await this.updateComplete, this.reposition());
|
|
2274
|
+
}
|
|
2275
|
+
async handleAnchorChange() {
|
|
2276
|
+
if (await this.stop(), this.anchor && typeof this.anchor == "string") {
|
|
2277
|
+
let e = this.getRootNode();
|
|
2278
|
+
this.anchorEl = e.getElementById(this.anchor);
|
|
2279
|
+
} else this.anchor instanceof Element || dn(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector("[slot=\"anchor\"]");
|
|
2280
|
+
this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({ flatten: !0 })[0]), this.anchorEl && this.start();
|
|
2281
|
+
}
|
|
2282
|
+
start() {
|
|
2283
|
+
!this.anchorEl || !this.active || !this.isConnected || (this.popup?.showPopover?.(), this.cleanup = Gt(this.anchorEl, this.popup, () => {
|
|
2284
|
+
this.reposition();
|
|
2285
|
+
}));
|
|
2286
|
+
}
|
|
2287
|
+
async stop() {
|
|
2288
|
+
return new Promise((e) => {
|
|
2289
|
+
this.popup?.hidePopover?.(), this.cleanup ? (this.cleanup(), this.cleanup = void 0, this.removeAttribute("data-current-placement"), this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height"), requestAnimationFrame(() => e())) : e();
|
|
2290
|
+
});
|
|
2291
|
+
}
|
|
2292
|
+
reposition() {
|
|
2293
|
+
if (!this.active || !this.anchorEl || !this.popup) return;
|
|
2294
|
+
let e = [Kt({
|
|
2295
|
+
mainAxis: this.distance,
|
|
2296
|
+
crossAxis: this.skidding
|
|
2297
|
+
})];
|
|
2298
|
+
this.sync ? e.push(Yt({ apply: ({ rects: e }) => {
|
|
2299
|
+
let t = this.sync === "width" || this.sync === "both", n = this.sync === "height" || this.sync === "both";
|
|
2300
|
+
this.popup.style.width = t ? `${e.reference.width}px` : "", this.popup.style.height = n ? `${e.reference.height}px` : "";
|
|
2301
|
+
} })) : (this.popup.style.width = "", this.popup.style.height = "");
|
|
2302
|
+
let t;
|
|
2303
|
+
this.SUPPORTS_POPOVER && !dn(this.anchor) && this.boundary === "scroll" && (t = ht(this.anchorEl).filter((e) => e instanceof Element)), this.flip && e.push(Jt({
|
|
2304
|
+
boundary: this.flipBoundary || t,
|
|
2305
|
+
fallbackPlacements: this.flipFallbackPlacements,
|
|
2306
|
+
fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
|
|
2307
|
+
padding: this.flipPadding
|
|
2308
|
+
})), this.shift && e.push(qt({
|
|
2309
|
+
boundary: this.shiftBoundary || t,
|
|
2310
|
+
padding: this.shiftPadding
|
|
2311
|
+
})), this.autoSize ? e.push(Yt({
|
|
2312
|
+
boundary: this.autoSizeBoundary || t,
|
|
2313
|
+
padding: this.autoSizePadding,
|
|
2314
|
+
apply: ({ availableWidth: e, availableHeight: t }) => {
|
|
2315
|
+
this.autoSize === "vertical" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-height", `${t}px`) : this.style.removeProperty("--auto-size-available-height"), this.autoSize === "horizontal" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-width", `${e}px`) : this.style.removeProperty("--auto-size-available-width");
|
|
2316
|
+
}
|
|
2317
|
+
})) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(Xt({
|
|
2318
|
+
element: this.arrowEl,
|
|
2319
|
+
padding: this.arrowPadding
|
|
2320
|
+
}));
|
|
2321
|
+
let n = this.SUPPORTS_POPOVER ? (e) => Ht.getOffsetParent(e, rn) : Ht.getOffsetParent;
|
|
2322
|
+
Zt(this.anchorEl, this.popup, {
|
|
2323
|
+
placement: this.placement,
|
|
2324
|
+
middleware: e,
|
|
2325
|
+
strategy: this.SUPPORTS_POPOVER ? "absolute" : "fixed",
|
|
2326
|
+
platform: {
|
|
2327
|
+
...Ht,
|
|
2328
|
+
getOffsetParent: n
|
|
2329
|
+
}
|
|
2330
|
+
}).then(({ x: e, y: t, middlewareData: n, placement: r }) => {
|
|
2331
|
+
let i = this.localize.dir() === "rtl", a = {
|
|
2332
|
+
top: "bottom",
|
|
2333
|
+
right: "left",
|
|
2334
|
+
bottom: "top",
|
|
2335
|
+
left: "right"
|
|
2336
|
+
}[r.split("-")[0]];
|
|
2337
|
+
if (this.setAttribute("data-current-placement", r), Object.assign(this.popup.style, {
|
|
2338
|
+
left: `${e}px`,
|
|
2339
|
+
top: `${t}px`
|
|
2340
|
+
}), this.arrow) {
|
|
2341
|
+
let e = n.arrow.x, t = n.arrow.y, r = "", o = "", s = "", c = "";
|
|
2342
|
+
if (this.arrowPlacement === "start") {
|
|
2343
|
+
let n = typeof e == "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
2344
|
+
r = typeof t == "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "", o = i ? n : "", c = i ? "" : n;
|
|
2345
|
+
} else if (this.arrowPlacement === "end") {
|
|
2346
|
+
let n = typeof e == "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
2347
|
+
o = i ? "" : n, c = i ? n : "", s = typeof t == "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
2348
|
+
} else this.arrowPlacement === "center" ? (c = typeof e == "number" ? "calc(50% - var(--arrow-size-diagonal))" : "", r = typeof t == "number" ? "calc(50% - var(--arrow-size-diagonal))" : "") : (c = typeof e == "number" ? `${e}px` : "", r = typeof t == "number" ? `${t}px` : "");
|
|
2349
|
+
Object.assign(this.arrowEl.style, {
|
|
2350
|
+
top: r,
|
|
2351
|
+
right: o,
|
|
2352
|
+
bottom: s,
|
|
2353
|
+
left: c,
|
|
2354
|
+
[a]: "calc(var(--arrow-base-offset) - var(--arrow-size-diagonal))"
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
}), requestAnimationFrame(() => this.updateHoverBridge()), this.dispatchEvent(new tn());
|
|
2358
|
+
}
|
|
2359
|
+
render() {
|
|
2360
|
+
return i`
|
|
2361
|
+
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
2362
|
+
|
|
2363
|
+
<span
|
|
2364
|
+
part="hover-bridge"
|
|
2365
|
+
class=${un({
|
|
2366
|
+
"popup-hover-bridge": !0,
|
|
2367
|
+
"popup-hover-bridge-visible": this.hoverBridge && this.active
|
|
2368
|
+
})}
|
|
2369
|
+
></span>
|
|
2370
|
+
|
|
2371
|
+
<div
|
|
2372
|
+
popover="manual"
|
|
2373
|
+
part="popup"
|
|
2374
|
+
class=${un({
|
|
2375
|
+
popup: !0,
|
|
2376
|
+
"popup-active": this.active,
|
|
2377
|
+
"popup-fixed": !this.SUPPORTS_POPOVER,
|
|
2378
|
+
"popup-has-arrow": this.arrow
|
|
2379
|
+
})}
|
|
2380
|
+
>
|
|
2381
|
+
<slot></slot>
|
|
2382
|
+
${this.arrow ? i`<div part="arrow" class="arrow" role="presentation"></div>` : ""}
|
|
2383
|
+
</div>
|
|
2384
|
+
`;
|
|
2385
|
+
}
|
|
2386
|
+
};
|
|
2387
|
+
Q.css = nn, A([u(".popup")], Q.prototype, "popup", 2), A([u(".arrow")], Q.prototype, "arrowEl", 2), A([l({
|
|
2388
|
+
attribute: !1,
|
|
2389
|
+
type: Boolean
|
|
2390
|
+
})], Q.prototype, "SUPPORTS_POPOVER", 2), A([l()], Q.prototype, "anchor", 2), A([l({
|
|
2391
|
+
type: Boolean,
|
|
2392
|
+
reflect: !0
|
|
2393
|
+
})], Q.prototype, "active", 2), A([l({ reflect: !0 })], Q.prototype, "placement", 2), A([l()], Q.prototype, "boundary", 2), A([l({ type: Number })], Q.prototype, "distance", 2), A([l({ type: Number })], Q.prototype, "skidding", 2), A([l({ type: Boolean })], Q.prototype, "arrow", 2), A([l({ attribute: "arrow-placement" })], Q.prototype, "arrowPlacement", 2), A([l({
|
|
2394
|
+
attribute: "arrow-padding",
|
|
2395
|
+
type: Number
|
|
2396
|
+
})], Q.prototype, "arrowPadding", 2), A([l({ type: Boolean })], Q.prototype, "flip", 2), A([l({
|
|
2397
|
+
attribute: "flip-fallback-placements",
|
|
2398
|
+
converter: {
|
|
2399
|
+
fromAttribute: (e) => e.split(" ").map((e) => e.trim()).filter((e) => e !== ""),
|
|
2400
|
+
toAttribute: (e) => e.join(" ")
|
|
2401
|
+
}
|
|
2402
|
+
})], Q.prototype, "flipFallbackPlacements", 2), A([l({ attribute: "flip-fallback-strategy" })], Q.prototype, "flipFallbackStrategy", 2), A([l({ type: Object })], Q.prototype, "flipBoundary", 2), A([l({
|
|
2403
|
+
attribute: "flip-padding",
|
|
2404
|
+
type: Number
|
|
2405
|
+
})], Q.prototype, "flipPadding", 2), A([l({ type: Boolean })], Q.prototype, "shift", 2), A([l({ type: Object })], Q.prototype, "shiftBoundary", 2), A([l({
|
|
2406
|
+
attribute: "shift-padding",
|
|
2407
|
+
type: Number
|
|
2408
|
+
})], Q.prototype, "shiftPadding", 2), A([l({ attribute: "auto-size" })], Q.prototype, "autoSize", 2), A([l()], Q.prototype, "sync", 2), A([l({ type: Object })], Q.prototype, "autoSizeBoundary", 2), A([l({
|
|
2409
|
+
attribute: "auto-size-padding",
|
|
2410
|
+
type: Number
|
|
2411
|
+
})], Q.prototype, "autoSizePadding", 2), A([l({
|
|
2412
|
+
attribute: "hover-bridge",
|
|
2413
|
+
type: Boolean
|
|
2414
|
+
})], Q.prototype, "hoverBridge", 2), Q = A([s("wa-popup")], Q);
|
|
2415
|
+
//#endregion
|
|
2416
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.YDQCS2HK.js
|
|
2417
|
+
var pn = class extends Event {
|
|
2418
|
+
constructor() {
|
|
2419
|
+
super("wa-error", {
|
|
2420
|
+
bubbles: !0,
|
|
2421
|
+
cancelable: !1,
|
|
2422
|
+
composed: !0
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
}, mn = class extends Event {
|
|
2426
|
+
constructor() {
|
|
2427
|
+
super("wa-load", {
|
|
2428
|
+
bubbles: !0,
|
|
2429
|
+
cancelable: !1,
|
|
2430
|
+
composed: !0
|
|
2431
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
}, hn = r`
|
|
2434
|
+
:host {
|
|
2435
|
+
--primary-color: currentColor;
|
|
2436
|
+
--primary-opacity: 1;
|
|
2437
|
+
--secondary-color: currentColor;
|
|
2438
|
+
--secondary-opacity: 0.4;
|
|
2439
|
+
--rotate-angle: 0deg;
|
|
2440
|
+
|
|
2441
|
+
box-sizing: content-box;
|
|
2442
|
+
display: inline-flex;
|
|
2443
|
+
align-items: center;
|
|
2444
|
+
justify-content: center;
|
|
2445
|
+
vertical-align: -0.125em;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
/* Standard */
|
|
2449
|
+
:host(:not([auto-width])) {
|
|
2450
|
+
width: 1.25em;
|
|
2451
|
+
height: 1em;
|
|
2452
|
+
min-width: 1.25em; /* <-- this is what Safari respects for intrinsic */
|
|
2453
|
+
min-height: 1em;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
/* Auto-width */
|
|
2457
|
+
:host([auto-width]) {
|
|
2458
|
+
width: auto;
|
|
2459
|
+
height: 1em;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
svg {
|
|
2463
|
+
fill: currentColor;
|
|
2464
|
+
height: 1em;
|
|
2465
|
+
overflow: visible;
|
|
2466
|
+
width: auto;
|
|
2467
|
+
|
|
2468
|
+
/* Duotone colors with path-specific opacity fallback */
|
|
2469
|
+
path[data-duotone-primary] {
|
|
2470
|
+
color: var(--primary-color);
|
|
2471
|
+
opacity: var(--path-opacity, var(--primary-opacity));
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
path[data-duotone-secondary] {
|
|
2475
|
+
color: var(--secondary-color);
|
|
2476
|
+
opacity: var(--path-opacity, var(--secondary-opacity));
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/* Rotation */
|
|
2481
|
+
:host([rotate]) {
|
|
2482
|
+
transform: rotate(var(--rotate-angle, 0deg));
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
/* Flipping */
|
|
2486
|
+
:host([flip='x']) {
|
|
2487
|
+
transform: scaleX(-1);
|
|
2488
|
+
}
|
|
2489
|
+
:host([flip='y']) {
|
|
2490
|
+
transform: scaleY(-1);
|
|
2491
|
+
}
|
|
2492
|
+
:host([flip='both']) {
|
|
2493
|
+
transform: scale(-1, -1);
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/* Rotation and Flipping combined */
|
|
2497
|
+
:host([rotate][flip='x']) {
|
|
2498
|
+
transform: rotate(var(--rotate-angle, 0deg)) scaleX(-1);
|
|
2499
|
+
}
|
|
2500
|
+
:host([rotate][flip='y']) {
|
|
2501
|
+
transform: rotate(var(--rotate-angle, 0deg)) scaleY(-1);
|
|
2502
|
+
}
|
|
2503
|
+
:host([rotate][flip='both']) {
|
|
2504
|
+
transform: rotate(var(--rotate-angle, 0deg)) scale(-1, -1);
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
/* Animations */
|
|
2508
|
+
:host([animation='beat']) {
|
|
2509
|
+
animation-name: beat;
|
|
2510
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2511
|
+
animation-direction: var(--animation-direction, normal);
|
|
2512
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2513
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2514
|
+
animation-timing-function: var(--animation-timing, ease-in-out);
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
:host([animation='fade']) {
|
|
2518
|
+
animation-name: fade;
|
|
2519
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2520
|
+
animation-direction: var(--animation-direction, normal);
|
|
2521
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2522
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2523
|
+
animation-timing-function: var(--animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
:host([animation='beat-fade']) {
|
|
2527
|
+
animation-name: beat-fade;
|
|
2528
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2529
|
+
animation-direction: var(--animation-direction, normal);
|
|
2530
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2531
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2532
|
+
animation-timing-function: var(--animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
:host([animation='bounce']) {
|
|
2536
|
+
animation-name: bounce;
|
|
2537
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2538
|
+
animation-direction: var(--animation-direction, normal);
|
|
2539
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2540
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2541
|
+
animation-timing-function: var(--animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
:host([animation='flip']) {
|
|
2545
|
+
animation-name: flip;
|
|
2546
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2547
|
+
animation-direction: var(--animation-direction, normal);
|
|
2548
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2549
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2550
|
+
animation-timing-function: var(--animation-timing, ease-in-out);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
:host([animation='shake']) {
|
|
2554
|
+
animation-name: shake;
|
|
2555
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2556
|
+
animation-direction: var(--animation-direction, normal);
|
|
2557
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2558
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2559
|
+
animation-timing-function: var(--animation-timing, linear);
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
:host([animation='spin']) {
|
|
2563
|
+
animation-name: spin;
|
|
2564
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2565
|
+
animation-direction: var(--animation-direction, normal);
|
|
2566
|
+
animation-duration: var(--animation-duration, 2s);
|
|
2567
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2568
|
+
animation-timing-function: var(--animation-timing, linear);
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
:host([animation='spin-pulse']) {
|
|
2572
|
+
animation-name: spin-pulse;
|
|
2573
|
+
animation-direction: var(--animation-direction, normal);
|
|
2574
|
+
animation-duration: var(--animation-duration, 1s);
|
|
2575
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2576
|
+
animation-timing-function: var(--animation-timing, steps(8));
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
:host([animation='spin-reverse']) {
|
|
2580
|
+
animation-name: spin;
|
|
2581
|
+
animation-delay: var(--animation-delay, 0s);
|
|
2582
|
+
animation-direction: var(--animation-direction, reverse);
|
|
2583
|
+
animation-duration: var(--animation-duration, 2s);
|
|
2584
|
+
animation-iteration-count: var(--animation-iteration-count, infinite);
|
|
2585
|
+
animation-timing-function: var(--animation-timing, linear);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
/* Keyframes */
|
|
2589
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2590
|
+
:host([animation='beat']),
|
|
2591
|
+
:host([animation='bounce']),
|
|
2592
|
+
:host([animation='fade']),
|
|
2593
|
+
:host([animation='beat-fade']),
|
|
2594
|
+
:host([animation='flip']),
|
|
2595
|
+
:host([animation='shake']),
|
|
2596
|
+
:host([animation='spin']),
|
|
2597
|
+
:host([animation='spin-pulse']),
|
|
2598
|
+
:host([animation='spin-reverse']) {
|
|
2599
|
+
animation: none !important;
|
|
2600
|
+
transition: none !important;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
@keyframes beat {
|
|
2604
|
+
0%,
|
|
2605
|
+
90% {
|
|
2606
|
+
transform: scale(1);
|
|
2607
|
+
}
|
|
2608
|
+
45% {
|
|
2609
|
+
transform: scale(var(--beat-scale, 1.25));
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
@keyframes fade {
|
|
2614
|
+
50% {
|
|
2615
|
+
opacity: var(--fade-opacity, 0.4);
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
@keyframes beat-fade {
|
|
2620
|
+
0%,
|
|
2621
|
+
100% {
|
|
2622
|
+
opacity: var(--beat-fade-opacity, 0.4);
|
|
2623
|
+
transform: scale(1);
|
|
2624
|
+
}
|
|
2625
|
+
50% {
|
|
2626
|
+
opacity: 1;
|
|
2627
|
+
transform: scale(var(--beat-fade-scale, 1.125));
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
@keyframes bounce {
|
|
2632
|
+
0% {
|
|
2633
|
+
transform: scale(1, 1) translateY(0);
|
|
2634
|
+
}
|
|
2635
|
+
10% {
|
|
2636
|
+
transform: scale(var(--bounce-start-scale-x, 1.1), var(--bounce-start-scale-y, 0.9)) translateY(0);
|
|
2637
|
+
}
|
|
2638
|
+
30% {
|
|
2639
|
+
transform: scale(var(--bounce-jump-scale-x, 0.9), var(--bounce-jump-scale-y, 1.1))
|
|
2640
|
+
translateY(var(--bounce-height, -0.5em));
|
|
2641
|
+
}
|
|
2642
|
+
50% {
|
|
2643
|
+
transform: scale(var(--bounce-land-scale-x, 1.05), var(--bounce-land-scale-y, 0.95)) translateY(0);
|
|
2644
|
+
}
|
|
2645
|
+
57% {
|
|
2646
|
+
transform: scale(1, 1) translateY(var(--bounce-rebound, -0.125em));
|
|
2647
|
+
}
|
|
2648
|
+
64% {
|
|
2649
|
+
transform: scale(1, 1) translateY(0);
|
|
2650
|
+
}
|
|
2651
|
+
100% {
|
|
2652
|
+
transform: scale(1, 1) translateY(0);
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
@keyframes flip {
|
|
2657
|
+
50% {
|
|
2658
|
+
transform: rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), var(--flip-angle, -180deg));
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
@keyframes shake {
|
|
2663
|
+
0% {
|
|
2664
|
+
transform: rotate(-15deg);
|
|
2665
|
+
}
|
|
2666
|
+
4% {
|
|
2667
|
+
transform: rotate(15deg);
|
|
2668
|
+
}
|
|
2669
|
+
8%,
|
|
2670
|
+
24% {
|
|
2671
|
+
transform: rotate(-18deg);
|
|
2672
|
+
}
|
|
2673
|
+
12%,
|
|
2674
|
+
28% {
|
|
2675
|
+
transform: rotate(18deg);
|
|
2676
|
+
}
|
|
2677
|
+
16% {
|
|
2678
|
+
transform: rotate(-22deg);
|
|
2679
|
+
}
|
|
2680
|
+
20% {
|
|
2681
|
+
transform: rotate(22deg);
|
|
2682
|
+
}
|
|
2683
|
+
32% {
|
|
2684
|
+
transform: rotate(-12deg);
|
|
2685
|
+
}
|
|
2686
|
+
36% {
|
|
2687
|
+
transform: rotate(12deg);
|
|
2688
|
+
}
|
|
2689
|
+
40%,
|
|
2690
|
+
100% {
|
|
2691
|
+
transform: rotate(0deg);
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
@keyframes spin {
|
|
2696
|
+
0% {
|
|
2697
|
+
transform: rotate(0deg);
|
|
2698
|
+
}
|
|
2699
|
+
100% {
|
|
2700
|
+
transform: rotate(360deg);
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
@keyframes spin-pulse {
|
|
2705
|
+
0% {
|
|
2706
|
+
transform: rotate(0deg);
|
|
2707
|
+
}
|
|
2708
|
+
100% {
|
|
2709
|
+
transform: rotate(360deg);
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
`, gn = "", _n = "";
|
|
2713
|
+
function vn() {
|
|
2714
|
+
return gn.replace(/\/$/, "");
|
|
2715
|
+
}
|
|
2716
|
+
function yn(e) {
|
|
2717
|
+
_n = e;
|
|
2718
|
+
}
|
|
2719
|
+
function bn() {
|
|
2720
|
+
if (!_n) {
|
|
2721
|
+
let e = document.querySelector("[data-fa-kit-code]");
|
|
2722
|
+
e && yn(e.getAttribute("data-fa-kit-code") || "");
|
|
2723
|
+
}
|
|
2724
|
+
return _n;
|
|
2725
|
+
}
|
|
2726
|
+
//#endregion
|
|
2727
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.HCXBOJYW.js
|
|
2728
|
+
var xn = "7.2.0";
|
|
2729
|
+
function Sn(e, t, n) {
|
|
2730
|
+
let r = "solid";
|
|
2731
|
+
return t === "chisel" && (r = "chisel-regular"), t === "etch" && (r = "etch-solid"), t === "graphite" && (r = "graphite-thin"), t === "jelly" && (r = "jelly-regular", n === "duo-regular" && (r = "jelly-duo-regular"), n === "fill-regular" && (r = "jelly-fill-regular")), t === "jelly-duo" && (r = "jelly-duo-regular"), t === "jelly-fill" && (r = "jelly-fill-regular"), t === "notdog" && (n === "solid" && (r = "notdog-solid"), n === "duo-solid" && (r = "notdog-duo-solid")), t === "notdog-duo" && (r = "notdog-duo-solid"), t === "slab" && ((n === "solid" || n === "regular") && (r = "slab-regular"), n === "press-regular" && (r = "slab-press-regular")), t === "slab-press" && (r = "slab-press-regular"), t === "thumbprint" && (r = "thumbprint-light"), t === "utility" && (r = "utility-semibold"), t === "utility-duo" && (r = "utility-duo-semibold"), t === "utility-fill" && (r = "utility-fill-semibold"), t === "whiteboard" && (r = "whiteboard-semibold"), t === "classic" && (n === "thin" && (r = "thin"), n === "light" && (r = "light"), n === "regular" && (r = "regular"), n === "solid" && (r = "solid")), t === "duotone" && (n === "thin" && (r = "duotone-thin"), n === "light" && (r = "duotone-light"), n === "regular" && (r = "duotone-regular"), n === "solid" && (r = "duotone")), t === "sharp" && (n === "thin" && (r = "sharp-thin"), n === "light" && (r = "sharp-light"), n === "regular" && (r = "sharp-regular"), n === "solid" && (r = "sharp-solid")), t === "sharp-duotone" && (n === "thin" && (r = "sharp-duotone-thin"), n === "light" && (r = "sharp-duotone-light"), n === "regular" && (r = "sharp-duotone-regular"), n === "solid" && (r = "sharp-duotone-solid")), t === "brands" && (r = "brands"), r;
|
|
2732
|
+
}
|
|
2733
|
+
function Cn(e, t, n) {
|
|
2734
|
+
let r = Sn(e, t, n), i = vn();
|
|
2735
|
+
if (i) return `${i}/${r}/${e}.svg`;
|
|
2736
|
+
let a = bn();
|
|
2737
|
+
return a.length > 0 ? `https://ka-p.fontawesome.com/releases/v${xn}/svgs/${r}/${e}.svg?token=${encodeURIComponent(a)}` : `https://ka-f.fontawesome.com/releases/v${xn}/svgs/${r}/${e}.svg`;
|
|
2738
|
+
}
|
|
2739
|
+
var wn = {
|
|
2740
|
+
name: "default",
|
|
2741
|
+
resolver: (e, t = "classic", n = "solid") => Cn(e, t, n),
|
|
2742
|
+
mutator: (e, t) => {
|
|
2743
|
+
if (t?.family && !e.hasAttribute("data-duotone-initialized")) {
|
|
2744
|
+
let { family: n, variant: r } = t;
|
|
2745
|
+
if (n === "duotone" || n === "sharp-duotone" || n === "notdog-duo" || n === "notdog" && r === "duo-solid" || n === "jelly-duo" || n === "jelly" && r === "duo-regular" || n === "utility-duo" || n === "thumbprint") {
|
|
2746
|
+
let n = [...e.querySelectorAll("path")], r = n.find((e) => !e.hasAttribute("opacity")), i = n.find((e) => e.hasAttribute("opacity"));
|
|
2747
|
+
if (!r || !i) return;
|
|
2748
|
+
if (r.setAttribute("data-duotone-primary", ""), i.setAttribute("data-duotone-secondary", ""), t.swapOpacity && r && i) {
|
|
2749
|
+
let e = i.getAttribute("opacity") || "0.4";
|
|
2750
|
+
r.style.setProperty("--path-opacity", e), i.style.setProperty("--path-opacity", "1");
|
|
2751
|
+
}
|
|
2752
|
+
e.setAttribute("data-duotone-initialized", "");
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
};
|
|
2757
|
+
//#endregion
|
|
2758
|
+
//#region node_modules/@awesome.me/webawesome/dist/chunks/chunk.XTA2JDH4.js
|
|
2759
|
+
function Tn(e) {
|
|
2760
|
+
return `data:image/svg+xml,${encodeURIComponent(e)}`;
|
|
2761
|
+
}
|
|
2762
|
+
var En = {
|
|
2763
|
+
solid: {
|
|
2764
|
+
backward: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M236.3 107.1C247.9 96 265 92.9 279.7 99.2C294.4 105.5 304 120 304 136L304 272.3L476.3 107.2C487.9 96 505 92.9 519.7 99.2C534.4 105.5 544 120 544 136L544 504C544 520 534.4 534.5 519.7 540.8C505 547.1 487.9 544 476.3 532.9L304 367.7L304 504C304 520 294.4 534.5 279.7 540.8C265 547.1 247.9 544 236.3 532.9L44.3 348.9C36.5 341.3 32 330.9 32 320C32 309.1 36.5 298.7 44.3 291.1L236.3 107.1z\"/></svg>",
|
|
2765
|
+
"backward-step": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M491 100.8C478.1 93.8 462.3 94.5 450 102.6L192 272.1L192 128C192 110.3 177.7 96 160 96C142.3 96 128 110.3 128 128L128 512C128 529.7 142.3 544 160 544C177.7 544 192 529.7 192 512L192 367.9L450 537.5C462.3 545.6 478 546.3 491 539.3C504 532.3 512 518.8 512 504.1L512 136.1C512 121.4 503.9 107.9 491 100.9z\"/></svg>",
|
|
2766
|
+
check: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>",
|
|
2767
|
+
"chevron-down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z\"/></svg>",
|
|
2768
|
+
"chevron-left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>",
|
|
2769
|
+
"chevron-right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>",
|
|
2770
|
+
circle: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>",
|
|
2771
|
+
"closed-captioning": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M64 192C64 156.7 92.7 128 128 128L512 128C547.3 128 576 156.7 576 192L576 448C576 483.3 547.3 512 512 512L128 512C92.7 512 64 483.3 64 448L64 192zM216 272L248 272C252.4 272 256 275.6 256 280C256 293.3 266.7 304 280 304C293.3 304 304 293.3 304 280C304 249.1 278.9 224 248 224L216 224C185.1 224 160 249.1 160 280L160 360C160 390.9 185.1 416 216 416L248 416C278.9 416 304 390.9 304 360C304 346.7 293.3 336 280 336C266.7 336 256 346.7 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 280C208 275.6 211.6 272 216 272zM384 280C384 275.6 387.6 272 392 272L424 272C428.4 272 432 275.6 432 280C432 293.3 442.7 304 456 304C469.3 304 480 293.3 480 280C480 249.1 454.9 224 424 224L392 224C361.1 224 336 249.1 336 280L336 360C336 390.9 361.1 416 392 416L424 416C454.9 416 480 390.9 480 360C480 346.7 469.3 336 456 336C442.7 336 432 346.7 432 360C432 364.4 428.4 368 424 368L392 368C387.6 368 384 364.4 384 360L384 280z\"/></svg>",
|
|
2772
|
+
"closed-captioning-slash": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M39 39.1C48.4 29.7 63.6 29.7 72.9 39.1L161.8 128L512 128C547.3 128 576 156.7 576 192L576 448C576 473.5 561.1 495.4 539.6 505.8L601 567.1C610.4 576.5 610.4 591.7 601 601C591.6 610.3 576.4 610.4 567.1 601L39 73.1C29.7 63.7 29.7 48.5 39 39.1zM384 350.1L384 279.9C384 275.5 387.6 271.9 392 271.9L424 271.9C428.4 271.9 432 275.5 432 279.9C432 293.2 442.7 303.9 456 303.9C469.3 303.9 480 293.2 480 279.9C480 249 454.9 223.9 424 223.9L392 223.9C361.1 223.9 336 249 336 279.9L336 302.1L384 350.1zM445.5 411.6C465.7 403.2 480 383.2 480 359.9C480 346.6 469.3 335.9 456 335.9C442.7 335.9 432 346.6 432 359.9C432 364.3 428.4 367.9 424 367.9L401.8 367.9L445.5 411.6zM162.3 264.1C160.8 269.1 160 274.5 160 280L160 360C160 390.9 185.1 416 216 416L248 416C266.1 416 282.1 407.5 292.4 394.2L410.2 512L128 512C92.7 512 64 483.3 64 448L64 192C64 184.2 65.4 176.7 68 169.8L162.3 264.1zM256.1 357.9C256 358.6 256 359.3 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 309.8L256.1 357.9z\"/></svg>",
|
|
2773
|
+
compress: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z\"/></svg>",
|
|
2774
|
+
"ellipsis-vertical": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z\"/></svg>",
|
|
2775
|
+
expand: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 96C110.3 96 96 110.3 96 128L96 224C96 241.7 110.3 256 128 256C145.7 256 160 241.7 160 224L160 160L224 160C241.7 160 256 145.7 256 128C256 110.3 241.7 96 224 96L128 96zM160 416C160 398.3 145.7 384 128 384C110.3 384 96 398.3 96 416L96 512C96 529.7 110.3 544 128 544L224 544C241.7 544 256 529.7 256 512C256 494.3 241.7 480 224 480L160 480L160 416zM416 96C398.3 96 384 110.3 384 128C384 145.7 398.3 160 416 160L480 160L480 224C480 241.7 494.3 256 512 256C529.7 256 544 241.7 544 224L544 128C544 110.3 529.7 96 512 96L416 96zM544 416C544 398.3 529.7 384 512 384C494.3 384 480 398.3 480 416L480 480L416 480C398.3 480 384 494.3 384 512C384 529.7 398.3 544 416 544L512 544C529.7 544 544 529.7 544 512L544 416z\"/></svg>",
|
|
2776
|
+
eyedropper: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z\"/></svg>",
|
|
2777
|
+
forward: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M403.7 107.1C392.1 96 375 92.9 360.3 99.2C345.6 105.5 336 120 336 136L336 272.3L163.7 107.2C152.1 96 135 92.9 120.3 99.2C105.6 105.5 96 120 96 136L96 504C96 520 105.6 534.5 120.3 540.8C135 547.1 152.1 544 163.7 532.9L336 367.7L336 504C336 520 345.6 534.5 360.3 540.8C375 547.1 392.1 544 403.7 532.9L595.7 348.9C603.6 341.4 608 330.9 608 320C608 309.1 603.5 298.7 595.7 291.1L403.7 107.1z\"/></svg>",
|
|
2778
|
+
file: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z\"/></svg>",
|
|
2779
|
+
"file-audio": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM389.8 307.7C380.7 301.4 368.3 303.6 362 312.7C355.7 321.8 357.9 334.2 367 340.5C390.9 357.2 406.4 384.8 406.4 416C406.4 447.2 390.8 474.9 367 491.5C357.9 497.8 355.7 510.3 362 519.3C368.3 528.3 380.8 530.6 389.8 524.3C423.9 500.5 446.4 460.8 446.4 416C446.4 371.2 424 331.5 389.8 307.7zM208 376C199.2 376 192 383.2 192 392L192 440C192 448.8 199.2 456 208 456L232 456L259.2 490C262.2 493.8 266.8 496 271.7 496L272 496C280.8 496 288 488.8 288 480L288 352C288 343.2 280.8 336 272 336L271.7 336C266.8 336 262.2 338.2 259.2 342L232 376L208 376zM336 448.2C336 458.9 346.5 466.4 354.9 459.8C367.8 449.5 376 433.7 376 416C376 398.3 367.8 382.5 354.9 372.2C346.5 365.5 336 373.1 336 383.8L336 448.3z\"/></svg>",
|
|
2780
|
+
"file-code": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM282.2 359.6C290.8 349.5 289.7 334.4 279.6 325.8C269.5 317.2 254.4 318.3 245.8 328.4L197.8 384.4C190.1 393.4 190.1 406.6 197.8 415.6L245.8 471.6C254.4 481.7 269.6 482.8 279.6 474.2C289.6 465.6 290.8 450.4 282.2 440.4L247.6 400L282.2 359.6zM394.2 328.4C385.6 318.3 370.4 317.2 360.4 325.8C350.4 334.4 349.2 349.6 357.8 359.6L392.4 400L357.8 440.4C349.2 450.5 350.3 465.6 360.4 474.2C370.5 482.8 385.6 481.7 394.2 471.6L442.2 415.6C449.9 406.6 449.9 393.4 442.2 384.4L394.2 328.4z\"/></svg>",
|
|
2781
|
+
"file-excel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM292 330.7C284.6 319.7 269.7 316.7 258.7 324C247.7 331.3 244.7 346.3 252 357.3L291.2 416L252 474.7C244.6 485.7 247.6 500.6 258.7 508C269.8 515.4 284.6 512.4 292 501.3L320 459.3L348 501.3C355.4 512.3 370.3 515.3 381.3 508C392.3 500.7 395.3 485.7 388 474.7L348.8 416L388 357.3C395.4 346.3 392.4 331.4 381.3 324C370.2 316.6 355.4 319.6 348 330.7L320 372.7L292 330.7z\"/></svg>",
|
|
2782
|
+
"file-image": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320C192 337.7 206.3 352 224 352C241.7 352 256 337.7 256 320zM220.6 512L419.4 512C435.2 512 448 499.2 448 483.4C448 476.1 445.2 469 440.1 463.7L343.3 361.9C337.3 355.6 328.9 352 320.1 352L319.8 352C311 352 302.7 355.6 296.6 361.9L199.9 463.7C194.8 469 192 476.1 192 483.4C192 499.2 204.8 512 220.6 512z\"/></svg>",
|
|
2783
|
+
"file-pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 64C92.7 64 64 92.7 64 128L64 512C64 547.3 92.7 576 128 576L208 576L208 464C208 428.7 236.7 400 272 400L448 400L448 234.5C448 217.5 441.3 201.2 429.3 189.2L322.7 82.7C310.7 70.7 294.5 64 277.5 64L128 64zM389.5 240L296 240C282.7 240 272 229.3 272 216L272 122.5L389.5 240zM272 444C261 444 252 453 252 464L252 592C252 603 261 612 272 612C283 612 292 603 292 592L292 564L304 564C337.1 564 364 537.1 364 504C364 470.9 337.1 444 304 444L272 444zM304 524L292 524L292 484L304 484C315 484 324 493 324 504C324 515 315 524 304 524zM400 444C389 444 380 453 380 464L380 592C380 603 389 612 400 612L432 612C460.7 612 484 588.7 484 560L484 496C484 467.3 460.7 444 432 444L400 444zM420 572L420 484L432 484C438.6 484 444 489.4 444 496L444 560C444 566.6 438.6 572 432 572L420 572zM508 464L508 592C508 603 517 612 528 612C539 612 548 603 548 592L548 548L576 548C587 548 596 539 596 528C596 517 587 508 576 508L548 508L548 484L576 484C587 484 596 475 596 464C596 453 587 444 576 444L528 444C517 444 508 453 508 464z\"/></svg>",
|
|
2784
|
+
"file-powerpoint": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM280 320C266.7 320 256 330.7 256 344L256 488C256 501.3 266.7 512 280 512C293.3 512 304 501.3 304 488L304 464L328 464C367.8 464 400 431.8 400 392C400 352.2 367.8 320 328 320L280 320zM328 416L304 416L304 368L328 368C341.3 368 352 378.7 352 392C352 405.3 341.3 416 328 416z\"/></svg>",
|
|
2785
|
+
"file-video": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM208 368L208 464C208 481.7 222.3 496 240 496L336 496C353.7 496 368 481.7 368 464L368 440L403 475C406.2 478.2 410.5 480 415 480C424.4 480 432 472.4 432 463L432 368.9C432 359.5 424.4 351.9 415 351.9C410.5 351.9 406.2 353.7 403 356.9L368 391.9L368 367.9C368 350.2 353.7 335.9 336 335.9L240 335.9C222.3 335.9 208 350.2 208 367.9z\"/></svg>",
|
|
2786
|
+
"file-word": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM263.4 338.8C260.5 325.9 247.7 317.7 234.8 320.6C221.9 323.5 213.7 336.3 216.6 349.2L248.6 493.2C250.9 503.7 260 511.4 270.8 512C281.6 512.6 291.4 505.9 294.8 495.6L320 419.9L345.2 495.6C348.6 505.8 358.4 512.5 369.2 512C380 511.5 389.1 503.8 391.4 493.2L423.4 349.2C426.3 336.3 418.1 323.4 405.2 320.6C392.3 317.8 379.4 325.9 376.6 338.8L363.4 398.2L342.8 336.4C339.5 326.6 330.4 320 320 320C309.6 320 300.5 326.6 297.2 336.4L276.6 398.2L263.4 338.8z\"/></svg>",
|
|
2787
|
+
"file-zipper": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM192 136C192 149.3 202.7 160 216 160L264 160C277.3 160 288 149.3 288 136C288 122.7 277.3 112 264 112L216 112C202.7 112 192 122.7 192 136zM192 232C192 245.3 202.7 256 216 256L264 256C277.3 256 288 245.3 288 232C288 218.7 277.3 208 264 208L216 208C202.7 208 192 218.7 192 232zM256 304L224 304C206.3 304 192 318.3 192 336L192 384C192 410.5 213.5 432 240 432C266.5 432 288 410.5 288 384L288 336C288 318.3 273.7 304 256 304zM240 368C248.8 368 256 375.2 256 384C256 392.8 248.8 400 240 400C231.2 400 224 392.8 224 384C224 375.2 231.2 368 240 368z\"/></svg>",
|
|
2788
|
+
"forward-step": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M21 36.8c12.9-7 28.7-6.3 41 1.8L320 208.1 320 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 384c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-144.1-258 169.6c-12.3 8.1-28 8.8-41 1.8S0 454.7 0 440L0 72C0 57.3 8.1 43.8 21 36.8z\"/></svg>",
|
|
2789
|
+
gauge: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z\"/></svg>",
|
|
2790
|
+
gear: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 400C364.5 399.8 400.2 363.9 400 319.7C399.8 275.5 363.9 239.8 319.7 240C275.5 240.2 239.8 276.1 240 320.3C240.2 364.5 276.1 400.2 320.3 400z\"/></svg>",
|
|
2791
|
+
"grip-vertical": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>",
|
|
2792
|
+
indeterminate: "<svg part=\"indeterminate-icon\" class=\"icon\" viewBox=\"0 0 16 16\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\"><g stroke=\"currentColor\" stroke-width=\"2\"><g transform=\"translate(2.285714 6.857143)\"><path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"/></g></g></g></svg>",
|
|
2793
|
+
minus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/></svg>",
|
|
2794
|
+
pause: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z\"/></svg>",
|
|
2795
|
+
"picture-in-picture": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M448 32c35.3 0 64 28.7 64 64l0 112-64 0 0-112-384 0 0 320 144 0 0 64-144 0-6.5-.3c-30.1-3.1-54.1-27-57.1-57.1L0 416 0 96C0 62.9 25.2 35.6 57.5 32.3L64 32 448 32zm16 224c26.5 0 48 21.5 48 48l0 128c0 26.5-21.5 48-48 48l-160 0c-26.5 0-48-21.5-48-48l0-128c0-26.5 21.5-48 48-48l160 0z\"/></svg>",
|
|
2796
|
+
play: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z\"/></svg>",
|
|
2797
|
+
"play-circle": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z\"/></svg>",
|
|
2798
|
+
plus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z\"/></svg>",
|
|
2799
|
+
star: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>",
|
|
2800
|
+
upload: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M352 173.3L352 384C352 401.7 337.7 416 320 416C302.3 416 288 401.7 288 384L288 173.3L246.6 214.7C234.1 227.2 213.8 227.2 201.3 214.7C188.8 202.2 188.8 181.9 201.3 169.4L297.3 73.4C309.8 60.9 330.1 60.9 342.6 73.4L438.6 169.4C451.1 181.9 451.1 202.2 438.6 214.7C426.1 227.2 405.8 227.2 393.3 214.7L352 173.3zM320 464C364.2 464 400 428.2 400 384L480 384C515.3 384 544 412.7 544 448L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 448C96 412.7 124.7 384 160 384L240 384C240 428.2 275.8 464 320 464zM464 488C477.3 488 488 477.3 488 464C488 450.7 477.3 440 464 440C450.7 440 440 450.7 440 464C440 477.3 450.7 488 464 488z\"/></svg>",
|
|
2801
|
+
user: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/></svg>",
|
|
2802
|
+
volume: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM441.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C443.3 170.7 464 210.9 464 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z\"/></svg>",
|
|
2803
|
+
"volume-low": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM380.6 181.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z\"/></svg>",
|
|
2804
|
+
"volume-xmark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM367 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z\"/></svg>",
|
|
2805
|
+
xmark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z\"/></svg>"
|
|
2806
|
+
},
|
|
2807
|
+
regular: {
|
|
2808
|
+
calendar: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M216 64C229.3 64 240 74.7 240 88L240 128L400 128L400 88C400 74.7 410.7 64 424 64C437.3 64 448 74.7 448 88L448 128L480 128C515.3 128 544 156.7 544 192L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 192C96 156.7 124.7 128 160 128L192 128L192 88C192 74.7 202.7 64 216 64zM216 176L160 176C151.2 176 144 183.2 144 192L144 240L496 240L496 192C496 183.2 488.8 176 480 176L216 176zM144 288L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 288L144 288z\"/></svg>",
|
|
2809
|
+
"circle-question": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z\"/></svg>",
|
|
2810
|
+
"circle-xmark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z\"/></svg>",
|
|
2811
|
+
clock: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320zM64 320C64 461.4 178.6 576 320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320zM296 184L296 320C296 328 300 335.5 306.7 340L402.7 404C413.7 411.4 428.6 408.4 436 397.3C443.4 386.2 440.4 371.4 429.3 364L344 307.2L344 184C344 170.7 333.3 160 320 160C306.7 160 296 170.7 296 184z\"/></svg>",
|
|
2812
|
+
copy: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z\"/></svg>",
|
|
2813
|
+
eye: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z\"/></svg>",
|
|
2814
|
+
"eye-slash": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z\"/></svg>",
|
|
2815
|
+
star: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>"
|
|
2816
|
+
}
|
|
2817
|
+
}, Dn = {
|
|
2818
|
+
name: "system",
|
|
2819
|
+
resolver: (e, t = "classic", n = "solid") => {
|
|
2820
|
+
let r = En[n][e] ?? En.regular[e] ?? En.regular["circle-question"];
|
|
2821
|
+
return r ? Tn(r) : "";
|
|
2822
|
+
}
|
|
2823
|
+
}, On = "classic", kn = [wn, Dn], An = /* @__PURE__ */ new Set();
|
|
2824
|
+
function jn(e) {
|
|
2825
|
+
An.add(e);
|
|
2826
|
+
}
|
|
2827
|
+
function Mn(e) {
|
|
2828
|
+
An.delete(e);
|
|
2829
|
+
}
|
|
2830
|
+
function Nn(e) {
|
|
2831
|
+
return kn.find((t) => t.name === e);
|
|
2832
|
+
}
|
|
2833
|
+
function Pn() {
|
|
2834
|
+
return On;
|
|
2835
|
+
}
|
|
2836
|
+
//#endregion
|
|
2837
|
+
//#region node_modules/lit-html/directive-helpers.js
|
|
2838
|
+
var { I: Fn } = n, In = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, Ln = Symbol(), Rn = Symbol(), zn, Bn = /* @__PURE__ */ new Map(), $ = class extends j {
|
|
2839
|
+
constructor() {
|
|
2840
|
+
super(...arguments), this.svg = null, this.autoWidth = !1, this.swapOpacity = !1, this.label = "", this.library = "default", this.rotate = 0, this.resolveIcon = async (e, t) => {
|
|
2841
|
+
let n;
|
|
2842
|
+
if (t?.spriteSheet) {
|
|
2843
|
+
this.hasUpdated || await this.updateComplete, this.svg = i`<svg part="svg">
|
|
2844
|
+
<use part="use" href="${e}"></use>
|
|
2845
|
+
</svg>`, await this.updateComplete;
|
|
2846
|
+
let n = this.shadowRoot.querySelector("[part='svg']");
|
|
2847
|
+
return typeof t.mutator == "function" && t.mutator(n, this), this.svg;
|
|
2848
|
+
}
|
|
2849
|
+
try {
|
|
2850
|
+
if (n = await fetch(e, { mode: "cors" }), !n.ok) return n.status === 410 ? Ln : Rn;
|
|
2851
|
+
} catch {
|
|
2852
|
+
return Rn;
|
|
2853
|
+
}
|
|
2854
|
+
try {
|
|
2855
|
+
let e = document.createElement("div");
|
|
2856
|
+
e.innerHTML = await n.text();
|
|
2857
|
+
let t = e.firstElementChild;
|
|
2858
|
+
if (t?.tagName?.toLowerCase() !== "svg") return Ln;
|
|
2859
|
+
zn ||= new DOMParser();
|
|
2860
|
+
let r = zn.parseFromString(t.outerHTML, "text/html").body.querySelector("svg");
|
|
2861
|
+
return r ? (r.part.add("svg"), document.adoptNode(r)) : Ln;
|
|
2862
|
+
} catch {
|
|
2863
|
+
return Ln;
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
}
|
|
2867
|
+
connectedCallback() {
|
|
2868
|
+
super.connectedCallback(), jn(this);
|
|
2869
|
+
}
|
|
2870
|
+
firstUpdated(e) {
|
|
2871
|
+
super.firstUpdated(e), this.hasAttribute("rotate") && this.style.setProperty("--rotate-angle", `${this.rotate}deg`), this.setIcon();
|
|
2872
|
+
}
|
|
2873
|
+
disconnectedCallback() {
|
|
2874
|
+
super.disconnectedCallback(), Mn(this);
|
|
2875
|
+
}
|
|
2876
|
+
async getIconSource() {
|
|
2877
|
+
let e = Nn(this.library), t = this.family || Pn();
|
|
2878
|
+
if (this.name && e) {
|
|
2879
|
+
let n;
|
|
2880
|
+
try {
|
|
2881
|
+
n = await e.resolver(this.name, t, this.variant, this.autoWidth);
|
|
2882
|
+
} catch {
|
|
2883
|
+
n = void 0;
|
|
2884
|
+
}
|
|
2885
|
+
return {
|
|
2886
|
+
url: n,
|
|
2887
|
+
fromLibrary: !0
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
return {
|
|
2891
|
+
url: this.src,
|
|
2892
|
+
fromLibrary: !1
|
|
2893
|
+
};
|
|
2894
|
+
}
|
|
2895
|
+
handleLabelChange() {
|
|
2896
|
+
typeof this.label == "string" && this.label.length > 0 ? (this.setAttribute("role", "img"), this.setAttribute("aria-label", this.label), this.removeAttribute("aria-hidden")) : (this.removeAttribute("role"), this.removeAttribute("aria-label"), this.setAttribute("aria-hidden", "true"));
|
|
2897
|
+
}
|
|
2898
|
+
async setIcon() {
|
|
2899
|
+
let { url: e, fromLibrary: t } = await this.getIconSource(), n = t ? Nn(this.library) : void 0;
|
|
2900
|
+
if (!e) {
|
|
2901
|
+
this.svg = null;
|
|
2902
|
+
return;
|
|
2903
|
+
}
|
|
2904
|
+
let r = Bn.get(e);
|
|
2905
|
+
r || (r = this.resolveIcon(e, n), Bn.set(e, r));
|
|
2906
|
+
let i = await r;
|
|
2907
|
+
if (i === Rn && Bn.delete(e), e === (await this.getIconSource()).url) {
|
|
2908
|
+
if (In(i)) {
|
|
2909
|
+
this.svg = i;
|
|
2910
|
+
return;
|
|
2911
|
+
}
|
|
2912
|
+
switch (i) {
|
|
2913
|
+
case Rn:
|
|
2914
|
+
case Ln:
|
|
2915
|
+
this.svg = null, this.dispatchEvent(new pn());
|
|
2916
|
+
break;
|
|
2917
|
+
default: this.svg = i.cloneNode(!0), n?.mutator?.(this.svg, this), this.dispatchEvent(new mn());
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
willUpdate(e) {
|
|
2922
|
+
return this.style || this.setStyleProperty("--rotate-angle", `${this.rotate}deg`), super.willUpdate(e);
|
|
2923
|
+
}
|
|
2924
|
+
updated(e) {
|
|
2925
|
+
super.updated(e);
|
|
2926
|
+
let t = Nn(this.library);
|
|
2927
|
+
this.hasAttribute("rotate") && this.style.setProperty("--rotate-angle", `${this.rotate}deg`);
|
|
2928
|
+
let n = this.shadowRoot?.querySelector("svg");
|
|
2929
|
+
n && t?.mutator?.(n, this);
|
|
2930
|
+
}
|
|
2931
|
+
render() {
|
|
2932
|
+
return this.hasUpdated ? this.svg : i`<svg part="svg" width="16" height="16" viewBox="0 0 16 16"></svg>`;
|
|
2933
|
+
}
|
|
2934
|
+
};
|
|
2935
|
+
$.css = hn, A([c()], $.prototype, "svg", 2), A([l({ reflect: !0 })], $.prototype, "name", 2), A([l({ reflect: !0 })], $.prototype, "family", 2), A([l({ reflect: !0 })], $.prototype, "variant", 2), A([l({
|
|
2936
|
+
attribute: "auto-width",
|
|
2937
|
+
type: Boolean,
|
|
2938
|
+
reflect: !0
|
|
2939
|
+
})], $.prototype, "autoWidth", 2), A([l({
|
|
2940
|
+
attribute: "swap-opacity",
|
|
2941
|
+
type: Boolean,
|
|
2942
|
+
reflect: !0
|
|
2943
|
+
})], $.prototype, "swapOpacity", 2), A([l()], $.prototype, "src", 2), A([l()], $.prototype, "label", 2), A([l({ reflect: !0 })], $.prototype, "library", 2), A([l({
|
|
2944
|
+
type: Number,
|
|
2945
|
+
reflect: !0
|
|
2946
|
+
})], $.prototype, "rotate", 2), A([l({
|
|
2947
|
+
type: String,
|
|
2948
|
+
reflect: !0
|
|
2949
|
+
})], $.prototype, "flip", 2), A([l({
|
|
2950
|
+
type: String,
|
|
2951
|
+
reflect: !0
|
|
2952
|
+
})], $.prototype, "animation", 2), A([O("label")], $.prototype, "handleLabelChange", 1), A([O([
|
|
2953
|
+
"family",
|
|
2954
|
+
"name",
|
|
2955
|
+
"library",
|
|
2956
|
+
"variant",
|
|
2957
|
+
"src",
|
|
2958
|
+
"autoWidth",
|
|
2959
|
+
"swapOpacity"
|
|
2960
|
+
], { waitUntilFirstUpdate: !0 })], $.prototype, "setIcon", 1), $ = A([s("wa-icon")], $);
|
|
2961
|
+
//#endregion
|
|
2962
|
+
//#region src/components/menu/Menu.styles.css
|
|
2963
|
+
var Vn = r`wa-dropdown::part(menu){min-width:300px;box-shadow:0 4px 16px #00000059}wa-dropdown-item{padding:0}`, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or;
|
|
2964
|
+
function sr(e, t, n) {
|
|
2965
|
+
cr(e, t), t.set(e, n);
|
|
2966
|
+
}
|
|
2967
|
+
function cr(e, t) {
|
|
2968
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
2969
|
+
}
|
|
2970
|
+
function lr(e, t, n) {
|
|
2971
|
+
return e.set(dr(e, t), n), n;
|
|
2972
|
+
}
|
|
2973
|
+
function ur(e, t) {
|
|
2974
|
+
return e.get(dr(e, t));
|
|
2975
|
+
}
|
|
2976
|
+
function dr(e, t, n) {
|
|
2977
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
2978
|
+
throw TypeError("Private element is not present on this object");
|
|
2979
|
+
}
|
|
2980
|
+
function fr(e, t, n) {
|
|
2981
|
+
return (t = mr(t)) in e ? Object.defineProperty(e, t, {
|
|
2982
|
+
value: n,
|
|
2983
|
+
enumerable: !0,
|
|
2984
|
+
configurable: !0,
|
|
2985
|
+
writable: !0
|
|
2986
|
+
}) : e[t] = n, e;
|
|
2987
|
+
}
|
|
2988
|
+
function pr(e, t, n, r, i, a) {
|
|
2989
|
+
function o(e, t, n) {
|
|
2990
|
+
return function(r, i) {
|
|
2991
|
+
return n && n(r), e[t].call(r, i);
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
function s(e, t) {
|
|
2995
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
2996
|
+
return t;
|
|
2997
|
+
}
|
|
2998
|
+
function c(e, t, n, r) {
|
|
2999
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
3000
|
+
return e;
|
|
3001
|
+
}
|
|
3002
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
3003
|
+
function h(e) {
|
|
3004
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
3005
|
+
}
|
|
3006
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
3007
|
+
if (!y) {
|
|
3008
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
3009
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
3010
|
+
d ? (f || p ? b = {
|
|
3011
|
+
get: gr(function() {
|
|
3012
|
+
return v(this);
|
|
3013
|
+
}, r, "get"),
|
|
3014
|
+
set: function(e) {
|
|
3015
|
+
t[4](this, e);
|
|
3016
|
+
}
|
|
3017
|
+
} : b[S] = v, f || gr(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
3018
|
+
}
|
|
3019
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
3020
|
+
var T = _[w], ee = n ? _[w - 1] : void 0, te = {}, E = {
|
|
3021
|
+
kind: [
|
|
3022
|
+
"field",
|
|
3023
|
+
"accessor",
|
|
3024
|
+
"method",
|
|
3025
|
+
"getter",
|
|
3026
|
+
"setter",
|
|
3027
|
+
"class"
|
|
3028
|
+
][i],
|
|
3029
|
+
name: r,
|
|
3030
|
+
metadata: a,
|
|
3031
|
+
addInitializer: function(e, t) {
|
|
3032
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
3033
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
3034
|
+
}.bind(null, te)
|
|
3035
|
+
};
|
|
3036
|
+
try {
|
|
3037
|
+
if (y) (g = c(T.call(ee, C, E), "class decorators", "return")) && (C = g);
|
|
3038
|
+
else {
|
|
3039
|
+
var D, O;
|
|
3040
|
+
E.static = u, E.private = d, d ? i === 2 ? D = function(e) {
|
|
3041
|
+
return h(e), b.value;
|
|
3042
|
+
} : (i < 4 && (D = o(b, "get", h)), i !== 3 && (O = o(b, "set", h))) : (D = function(e) {
|
|
3043
|
+
return e[r];
|
|
3044
|
+
}, (i < 2 || i === 4) && (O = function(e, t) {
|
|
3045
|
+
e[r] = t;
|
|
3046
|
+
}));
|
|
3047
|
+
var k = E.access = { has: d ? m.bind() : function(e) {
|
|
3048
|
+
return r in e;
|
|
3049
|
+
} };
|
|
3050
|
+
if (D && (k.get = D), O && (k.set = O), C = T.call(ee, p ? {
|
|
3051
|
+
get: b.get,
|
|
3052
|
+
set: b.set
|
|
3053
|
+
} : b[S], E), p) {
|
|
3054
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
3055
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3056
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
3057
|
+
}
|
|
3058
|
+
} finally {
|
|
3059
|
+
te.v = !0;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
return (f || p) && l.push(function(e, t) {
|
|
3063
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
3064
|
+
return t;
|
|
3065
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
3066
|
+
}
|
|
3067
|
+
function u(e, t) {
|
|
3068
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
3069
|
+
configurable: !0,
|
|
3070
|
+
enumerable: !0,
|
|
3071
|
+
value: t
|
|
3072
|
+
});
|
|
3073
|
+
}
|
|
3074
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3075
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
3076
|
+
var i, a, o = [], c = function(t) {
|
|
3077
|
+
return _r(t) === e;
|
|
3078
|
+
}, u = /* @__PURE__ */ new Map();
|
|
3079
|
+
function d(e) {
|
|
3080
|
+
e && o.push(s.bind(null, e));
|
|
3081
|
+
}
|
|
3082
|
+
for (var f = 0; f < t.length; f++) {
|
|
3083
|
+
var p = t[f];
|
|
3084
|
+
if (Array.isArray(p)) {
|
|
3085
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
3086
|
+
if (!y && !g) {
|
|
3087
|
+
var x = u.get(b);
|
|
3088
|
+
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
3089
|
+
u.set(b, !(m > 2) || m);
|
|
3090
|
+
}
|
|
3091
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : mr(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
return d(i), d(a), o;
|
|
3095
|
+
}(e, t, i, f);
|
|
3096
|
+
return n.length || u(e, f), {
|
|
3097
|
+
e: p,
|
|
3098
|
+
get c() {
|
|
3099
|
+
var t = [];
|
|
3100
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
}
|
|
3104
|
+
function mr(e) {
|
|
3105
|
+
var t = hr(e, "string");
|
|
3106
|
+
return typeof t == "symbol" ? t : t + "";
|
|
3107
|
+
}
|
|
3108
|
+
function hr(e, t) {
|
|
3109
|
+
if (typeof e != "object" || !e) return e;
|
|
3110
|
+
var n = e[Symbol.toPrimitive];
|
|
3111
|
+
if (n !== void 0) {
|
|
3112
|
+
var r = n.call(e, t || "default");
|
|
3113
|
+
if (typeof r != "object") return r;
|
|
3114
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
3115
|
+
}
|
|
3116
|
+
return (t === "string" ? String : Number)(e);
|
|
3117
|
+
}
|
|
3118
|
+
function gr(e, t, n) {
|
|
3119
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
3120
|
+
try {
|
|
3121
|
+
Object.defineProperty(e, "name", {
|
|
3122
|
+
configurable: !0,
|
|
3123
|
+
value: n ? n + " " + t : t
|
|
3124
|
+
});
|
|
3125
|
+
} catch {}
|
|
3126
|
+
return e;
|
|
3127
|
+
}
|
|
3128
|
+
function _r(e) {
|
|
3129
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3130
|
+
return e;
|
|
3131
|
+
}
|
|
3132
|
+
function vr(e) {
|
|
3133
|
+
return e;
|
|
3134
|
+
}
|
|
3135
|
+
Xn = [e("solid-ui-menu")];
|
|
3136
|
+
var yr;
|
|
3137
|
+
new (ar = (Wn = /*#__PURE__*/ new WeakMap(), Gn = /*#__PURE__*/ new WeakMap(), Kn = /*#__PURE__*/ new WeakMap(), qn = /*#__PURE__*/ new WeakMap(), or = (Zn = l({
|
|
3138
|
+
type: String,
|
|
3139
|
+
reflect: !0
|
|
3140
|
+
}), $n = l({
|
|
3141
|
+
type: Number,
|
|
3142
|
+
reflect: !0
|
|
3143
|
+
}), tr = u("wa-dropdown"), rr = c(), "placement"), Un = class extends t {
|
|
3144
|
+
constructor(...e) {
|
|
3145
|
+
super(...e), sr(this, Wn, (Jn(this), Qn(this, "bottom-start"))), sr(this, Gn, er(this, 0)), sr(this, Kn, nr(this, null)), sr(this, qn, ir(this, [])), fr(this, "observer", new MutationObserver(() => this.syncItems()));
|
|
3146
|
+
}
|
|
3147
|
+
get [or]() {
|
|
3148
|
+
return ur(Wn, this);
|
|
3149
|
+
}
|
|
3150
|
+
set placement(e) {
|
|
3151
|
+
lr(Wn, this, e);
|
|
3152
|
+
}
|
|
3153
|
+
get distance() {
|
|
3154
|
+
return ur(Gn, this);
|
|
3155
|
+
}
|
|
3156
|
+
set distance(e) {
|
|
3157
|
+
lr(Gn, this, e);
|
|
3158
|
+
}
|
|
3159
|
+
get dropdown() {
|
|
3160
|
+
return ur(Kn, this);
|
|
3161
|
+
}
|
|
3162
|
+
set dropdown(e) {
|
|
3163
|
+
lr(Kn, this, e);
|
|
3164
|
+
}
|
|
3165
|
+
get items() {
|
|
3166
|
+
return ur(qn, this);
|
|
3167
|
+
}
|
|
3168
|
+
set items(e) {
|
|
3169
|
+
lr(qn, this, e);
|
|
3170
|
+
}
|
|
3171
|
+
connectedCallback() {
|
|
3172
|
+
super.connectedCallback(), this.syncItems(), this.observer.observe(this, { childList: !0 });
|
|
3173
|
+
}
|
|
3174
|
+
disconnectedCallback() {
|
|
3175
|
+
super.disconnectedCallback(), this.observer.disconnect();
|
|
3176
|
+
}
|
|
3177
|
+
render() {
|
|
3178
|
+
return i`
|
|
3179
|
+
<wa-dropdown
|
|
3180
|
+
placement=${this.placement}
|
|
3181
|
+
distance=${this.distance}
|
|
3182
|
+
@wa-select=${this.onWaSelect}
|
|
3183
|
+
>
|
|
3184
|
+
<slot name="trigger" slot="trigger"></slot>
|
|
3185
|
+
|
|
3186
|
+
${this.items.map((e) => i`<wa-dropdown-item @click=${this.onItemClick}>
|
|
3187
|
+
<slot name=${e.slot}></slot>
|
|
3188
|
+
</wa-dropdown-item>`)}
|
|
3189
|
+
</wa-dropdown>
|
|
3190
|
+
`;
|
|
3191
|
+
}
|
|
3192
|
+
syncItems() {
|
|
3193
|
+
let e = Array.from(this.children).filter((e) => !e.hasAttribute("slot"));
|
|
3194
|
+
this.items = e.map((e, t) => {
|
|
3195
|
+
let n = `menu-item-${t}`;
|
|
3196
|
+
return e.getAttribute("slot") !== n && e.setAttribute("slot", n), { slot: n };
|
|
3197
|
+
});
|
|
3198
|
+
}
|
|
3199
|
+
onItemClick(e) {
|
|
3200
|
+
let t = e.currentTarget;
|
|
3201
|
+
e.stopPropagation(), !t.disabled && (this.dispatchSelectEvent(t).defaultPrevented || !this.dropdown || (this.dropdown.open = !1));
|
|
3202
|
+
}
|
|
3203
|
+
onWaSelect(e) {
|
|
3204
|
+
if (this.dispatchSelectEvent(e.detail.item).defaultPrevented) {
|
|
3205
|
+
e.preventDefault();
|
|
3206
|
+
return;
|
|
3207
|
+
}
|
|
3208
|
+
let t = e.detail.item.children[0].getAttribute("name");
|
|
3209
|
+
this.querySelector(`[slot="${t}"]`)?.click?.();
|
|
3210
|
+
}
|
|
3211
|
+
dispatchSelectEvent(e) {
|
|
3212
|
+
let t = e.children[0].getAttribute("name"), n = this.querySelector(`[slot="${t}"]`), r = new CustomEvent("solid-ui-select", {
|
|
3213
|
+
bubbles: !0,
|
|
3214
|
+
composed: !0,
|
|
3215
|
+
cancelable: !0
|
|
3216
|
+
});
|
|
3217
|
+
return n?.dispatchEvent(r), r;
|
|
3218
|
+
}
|
|
3219
|
+
}, {e: [Qn, er, nr, ir, Jn], c: [yr, Yn]} = pr(Un, [
|
|
3220
|
+
[
|
|
3221
|
+
Zn,
|
|
3222
|
+
1,
|
|
3223
|
+
"placement"
|
|
3224
|
+
],
|
|
3225
|
+
[
|
|
3226
|
+
$n,
|
|
3227
|
+
1,
|
|
3228
|
+
"distance"
|
|
3229
|
+
],
|
|
3230
|
+
[
|
|
3231
|
+
tr,
|
|
3232
|
+
1,
|
|
3233
|
+
"dropdown"
|
|
3234
|
+
],
|
|
3235
|
+
[
|
|
3236
|
+
rr,
|
|
3237
|
+
1,
|
|
3238
|
+
"items"
|
|
3239
|
+
]
|
|
3240
|
+
], Xn, 0, void 0, t), Un), Hn = class extends vr {
|
|
3241
|
+
constructor() {
|
|
3242
|
+
super(yr), fr(this, "styles", Vn), Yn();
|
|
3243
|
+
}
|
|
3244
|
+
}, fr(Hn, ar, void 0), Hn)();
|
|
3245
|
+
//#endregion
|
|
3246
|
+
//#region src/components/menu/index.ts
|
|
3247
|
+
var br = yr;
|
|
3248
|
+
//#endregion
|
|
3249
|
+
export { yr as n, br as t };
|
|
3250
|
+
|
|
3251
|
+
//# sourceMappingURL=menu-aQiqq1ET.js.map
|