@fortanix/baklava 1.0.0-beta-20241114
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/CHANGELOG.md +6 -0
- package/LICENSE +373 -0
- package/README.md +43 -0
- package/app/Demo.tsx +33 -0
- package/app/index.html +12 -0
- package/app/lib.ts +54 -0
- package/app/main.tsx +32 -0
- package/dist/baklava.d.ts +752 -0
- package/dist/baklava.js +4962 -0
- package/dist/lib.css +1 -0
- package/package.json +102 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-100.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-200.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-300.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-500.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-600.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-700.woff2 +0 -0
- package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-regular.woff2 +0 -0
- package/src/assets/fonts/open-sans/open-sans-v23-latin-600.woff2 +0 -0
- package/src/assets/fonts/open-sans/open-sans-v23-latin-700.woff2 +0 -0
- package/src/assets/fonts/open-sans/open-sans-v23-latin-regular.woff2 +0 -0
- package/src/assets/fonts/source-code-pro/source-code-pro-v14-latin-regular.woff2 +0 -0
- package/src/assets/icons/_icons.ts +58 -0
- package/src/assets/icons/accounts.svg +11 -0
- package/src/assets/icons/alert.svg +3 -0
- package/src/assets/icons/apache.svg +3 -0
- package/src/assets/icons/apps.svg +5 -0
- package/src/assets/icons/assessment.svg +11 -0
- package/src/assets/icons/audit-log.svg +12 -0
- package/src/assets/icons/authentication.svg +12 -0
- package/src/assets/icons/calendar.svg +10 -0
- package/src/assets/icons/caret-down.svg +3 -0
- package/src/assets/icons/check.svg +3 -0
- package/src/assets/icons/cloud-accounts.svg +15 -0
- package/src/assets/icons/copy.svg +4 -0
- package/src/assets/icons/cross.svg +4 -0
- package/src/assets/icons/dashboard.svg +12 -0
- package/src/assets/icons/dataverse.svg +12 -0
- package/src/assets/icons/delete.svg +5 -0
- package/src/assets/icons/docs.svg +10 -0
- package/src/assets/icons/download.svg +11 -0
- package/src/assets/icons/edit-params.svg +3 -0
- package/src/assets/icons/edit.svg +10 -0
- package/src/assets/icons/email.svg +3 -0
- package/src/assets/icons/eye.svg +11 -0
- package/src/assets/icons/file-error.svg +17 -0
- package/src/assets/icons/file.svg +15 -0
- package/src/assets/icons/folder.svg +14 -0
- package/src/assets/icons/fortanix-ki.svg +13 -0
- package/src/assets/icons/graph.svg +9 -0
- package/src/assets/icons/groups.svg +10 -0
- package/src/assets/icons/hide.svg +3 -0
- package/src/assets/icons/home.svg +11 -0
- package/src/assets/icons/iam.svg +11 -0
- package/src/assets/icons/info.svg +4 -0
- package/src/assets/icons/infrastructure.svg +5 -0
- package/src/assets/icons/integrations.svg +3 -0
- package/src/assets/icons/key-link.svg +12 -0
- package/src/assets/icons/key.svg +4 -0
- package/src/assets/icons/no-login.svg +10 -0
- package/src/assets/icons/page-forward.svg +4 -0
- package/src/assets/icons/plugins.svg +4 -0
- package/src/assets/icons/policy.svg +13 -0
- package/src/assets/icons/print.svg +11 -0
- package/src/assets/icons/scripts.svg +4 -0
- package/src/assets/icons/search.svg +3 -0
- package/src/assets/icons/security-object.svg +5 -0
- package/src/assets/icons/services.svg +10 -0
- package/src/assets/icons/settings.svg +12 -0
- package/src/assets/icons/solutions.svg +3 -0
- package/src/assets/icons/success.svg +3 -0
- package/src/assets/icons/tasks.svg +10 -0
- package/src/assets/icons/user-profile.svg +3 -0
- package/src/assets/icons/user.svg +10 -0
- package/src/assets/icons/warning.svg +3 -0
- package/src/assets/icons/workflows.svg +11 -0
- package/src/assets/icons_new/Accounts.svg +11 -0
- package/src/assets/icons_new/Alert.svg +3 -0
- package/src/assets/icons_new/Apache.svg +3 -0
- package/src/assets/icons_new/Apps.svg +5 -0
- package/src/assets/icons_new/Assessment.svg +11 -0
- package/src/assets/icons_new/Audit Log.svg +12 -0
- package/src/assets/icons_new/Authentication.svg +12 -0
- package/src/assets/icons_new/Calendar.svg +10 -0
- package/src/assets/icons_new/Carrot Down.svg +3 -0
- package/src/assets/icons_new/Cloud Accounts.svg +15 -0
- package/src/assets/icons_new/Copy.svg +4 -0
- package/src/assets/icons_new/Dashboard.svg +12 -0
- package/src/assets/icons_new/Dataverse.svg +12 -0
- package/src/assets/icons_new/Delete.svg +5 -0
- package/src/assets/icons_new/Docs.svg +10 -0
- package/src/assets/icons_new/Download.svg +11 -0
- package/src/assets/icons_new/Edit Params.svg +3 -0
- package/src/assets/icons_new/Edit.svg +10 -0
- package/src/assets/icons_new/Email.svg +3 -0
- package/src/assets/icons_new/Eye.svg +11 -0
- package/src/assets/icons_new/Groups.svg +10 -0
- package/src/assets/icons_new/Hide.svg +3 -0
- package/src/assets/icons_new/Home.svg +11 -0
- package/src/assets/icons_new/IAM.svg +11 -0
- package/src/assets/icons_new/Info.svg +4 -0
- package/src/assets/icons_new/Infrastructure.svg +5 -0
- package/src/assets/icons_new/Integrations.svg +3 -0
- package/src/assets/icons_new/KI.svg +13 -0
- package/src/assets/icons_new/Key Link.svg +12 -0
- package/src/assets/icons_new/Key.svg +4 -0
- package/src/assets/icons_new/No Login.svg +10 -0
- package/src/assets/icons_new/Page FWD.svg +4 -0
- package/src/assets/icons_new/Plugins.svg +4 -0
- package/src/assets/icons_new/Policy.svg +13 -0
- package/src/assets/icons_new/Print.svg +11 -0
- package/src/assets/icons_new/Scripts.svg +4 -0
- package/src/assets/icons_new/Search.svg +3 -0
- package/src/assets/icons_new/Security Objects.svg +5 -0
- package/src/assets/icons_new/Services.svg +10 -0
- package/src/assets/icons_new/Settings.svg +12 -0
- package/src/assets/icons_new/Solutions.svg +3 -0
- package/src/assets/icons_new/Tasks.svg +10 -0
- package/src/assets/icons_new/User Account.svg +3 -0
- package/src/assets/icons_new/Users.svg +10 -0
- package/src/assets/icons_new/Workflows.svg +11 -0
- package/src/assets/icons_old/_icons.ts +172 -0
- package/src/assets/icons_old/account.svg +4 -0
- package/src/assets/icons_old/accounts.svg +4 -0
- package/src/assets/icons_old/add.svg +4 -0
- package/src/assets/icons_old/alert.svg +4 -0
- package/src/assets/icons_old/app.svg +4 -0
- package/src/assets/icons_old/arrow-drop-down.svg +4 -0
- package/src/assets/icons_old/arrow-drop-up.svg +4 -0
- package/src/assets/icons_old/arrow-expand.svg +4 -0
- package/src/assets/icons_old/arrow-left.svg +5 -0
- package/src/assets/icons_old/arrow-right.svg +4 -0
- package/src/assets/icons_old/audit-log.svg +4 -0
- package/src/assets/icons_old/bell.svg +4 -0
- package/src/assets/icons_old/billing.svg +4 -0
- package/src/assets/icons_old/bug.svg +4 -0
- package/src/assets/icons_old/builds.svg +4 -0
- package/src/assets/icons_old/calendar.svg +4 -0
- package/src/assets/icons_old/certificate.svg +4 -0
- package/src/assets/icons_old/check.svg +4 -0
- package/src/assets/icons_old/checkbox-checked.svg +4 -0
- package/src/assets/icons_old/checkbox-disabled.svg +4 -0
- package/src/assets/icons_old/checkbox-unchecked.svg +4 -0
- package/src/assets/icons_old/chevron-left.svg +4 -0
- package/src/assets/icons_old/chevron-right.svg +4 -0
- package/src/assets/icons_old/clear-all.svg +4 -0
- package/src/assets/icons_old/color-picker.svg +10 -0
- package/src/assets/icons_old/connection.svg +4 -0
- package/src/assets/icons_old/copy.svg +4 -0
- package/src/assets/icons_old/cross-thin.svg +4 -0
- package/src/assets/icons_old/cross.svg +4 -0
- package/src/assets/icons_old/crypto-policy.svg +4 -0
- package/src/assets/icons_old/customers.svg +4 -0
- package/src/assets/icons_old/dashboard.svg +4 -0
- package/src/assets/icons_old/data-center.svg +4 -0
- package/src/assets/icons_old/data-connector-read.svg +6 -0
- package/src/assets/icons_old/data-connector-write.svg +6 -0
- package/src/assets/icons_old/dataset.svg +3 -0
- package/src/assets/icons_old/dataverse.svg +6 -0
- package/src/assets/icons_old/delete.svg +4 -0
- package/src/assets/icons_old/deployment-deployed.svg +4 -0
- package/src/assets/icons_old/deployment-none.svg +4 -0
- package/src/assets/icons_old/derive.svg +4 -0
- package/src/assets/icons_old/docs.svg +4 -0
- package/src/assets/icons_old/document-blank.svg +4 -0
- package/src/assets/icons_old/domain.svg +4 -0
- package/src/assets/icons_old/download-cloud.svg +4 -0
- package/src/assets/icons_old/download.svg +4 -0
- package/src/assets/icons_old/edit-params.svg +4 -0
- package/src/assets/icons_old/edit.svg +4 -0
- package/src/assets/icons_old/em-app.svg +4 -0
- package/src/assets/icons_old/em-dashboard.svg +4 -0
- package/src/assets/icons_old/email.svg +4 -0
- package/src/assets/icons_old/empty-credential.svg +4 -0
- package/src/assets/icons_old/enterprise-badge.svg +6 -0
- package/src/assets/icons_old/environment-production.svg +4 -0
- package/src/assets/icons_old/environment-test.svg +4 -0
- package/src/assets/icons_old/event-critical.svg +4 -0
- package/src/assets/icons_old/event-error.svg +4 -0
- package/src/assets/icons_old/event-success.svg +4 -0
- package/src/assets/icons_old/event-warning.svg +4 -0
- package/src/assets/icons_old/expiration.svg +4 -0
- package/src/assets/icons_old/export.svg +4 -0
- package/src/assets/icons_old/external.svg +4 -0
- package/src/assets/icons_old/eye-closed.svg +4 -0
- package/src/assets/icons_old/eye.svg +4 -0
- package/src/assets/icons_old/file.svg +7 -0
- package/src/assets/icons_old/flag.svg +4 -0
- package/src/assets/icons_old/forbid.svg +4 -0
- package/src/assets/icons_old/fortanix-app-aci.svg +6 -0
- package/src/assets/icons_old/fortanix-app-edp.svg +4 -0
- package/src/assets/icons_old/fortanix-app-enclave-os.svg +4 -0
- package/src/assets/icons_old/frame-expand.svg +4 -0
- package/src/assets/icons_old/fresh.svg +4 -0
- package/src/assets/icons_old/generated.svg +4 -0
- package/src/assets/icons_old/gift.svg +4 -0
- package/src/assets/icons_old/global.svg +4 -0
- package/src/assets/icons_old/group.svg +4 -0
- package/src/assets/icons_old/help.svg +4 -0
- package/src/assets/icons_old/home-info.svg +5 -0
- package/src/assets/icons_old/home.svg +4 -0
- package/src/assets/icons_old/horizontal-collapse.svg +5 -0
- package/src/assets/icons_old/horizontal-expand.svg +5 -0
- package/src/assets/icons_old/hsm.svg +4 -0
- package/src/assets/icons_old/info.svg +4 -0
- package/src/assets/icons_old/install.svg +4 -0
- package/src/assets/icons_old/integration.svg +7 -0
- package/src/assets/icons_old/key-clone.svg +4 -0
- package/src/assets/icons_old/key-custodian-policy.svg +10 -0
- package/src/assets/icons_old/key-destroy.svg +4 -0
- package/src/assets/icons_old/key-download.svg +4 -0
- package/src/assets/icons_old/key-justification-policy.svg +5 -0
- package/src/assets/icons_old/key-link.svg +4 -0
- package/src/assets/icons_old/key-metadata-policy.svg +5 -0
- package/src/assets/icons_old/key-primary.svg +11 -0
- package/src/assets/icons_old/key-remove.svg +4 -0
- package/src/assets/icons_old/key-rotation.svg +4 -0
- package/src/assets/icons_old/key-undo-policy.svg +10 -0
- package/src/assets/icons_old/key-wrapping.svg +6 -0
- package/src/assets/icons_old/key.svg +4 -0
- package/src/assets/icons_old/leave-account.svg +4 -0
- package/src/assets/icons_old/link.svg +4 -0
- package/src/assets/icons_old/lock-closed.svg +4 -0
- package/src/assets/icons_old/lock.svg +4 -0
- package/src/assets/icons_old/locked-user.svg +4 -0
- package/src/assets/icons_old/marketplace.svg +4 -0
- package/src/assets/icons_old/minus.svg +4 -0
- package/src/assets/icons_old/monitoring.svg +4 -0
- package/src/assets/icons_old/no-logging.svg +4 -0
- package/src/assets/icons_old/node-cluster.svg +4 -0
- package/src/assets/icons_old/node.svg +4 -0
- package/src/assets/icons_old/operations.svg +13 -0
- package/src/assets/icons_old/options.svg +4 -0
- package/src/assets/icons_old/play.svg +4 -0
- package/src/assets/icons_old/plug.svg +4 -0
- package/src/assets/icons_old/plugin-clone.svg +4 -0
- package/src/assets/icons_old/plugin.svg +4 -0
- package/src/assets/icons_old/plugins.svg +4 -0
- package/src/assets/icons_old/pod.svg +4 -0
- package/src/assets/icons_old/print.svg +4 -0
- package/src/assets/icons_old/projects.svg +11 -0
- package/src/assets/icons_old/python.svg +4 -0
- package/src/assets/icons_old/quorum.svg +4 -0
- package/src/assets/icons_old/refresh.svg +4 -0
- package/src/assets/icons_old/regenerate.svg +4 -0
- package/src/assets/icons_old/region.svg +4 -0
- package/src/assets/icons_old/reports.svg +3 -0
- package/src/assets/icons_old/request-approve.svg +4 -0
- package/src/assets/icons_old/request-decline.svg +4 -0
- package/src/assets/icons_old/reseller.svg +4 -0
- package/src/assets/icons_old/script.svg +7 -0
- package/src/assets/icons_old/search.svg +4 -0
- package/src/assets/icons_old/service-account.svg +4 -0
- package/src/assets/icons_old/settings.svg +4 -0
- package/src/assets/icons_old/sidebar-closed.svg +8 -0
- package/src/assets/icons_old/sidebar-open.svg +8 -0
- package/src/assets/icons_old/sign-out.svg +4 -0
- package/src/assets/icons_old/sign.svg +4 -0
- package/src/assets/icons_old/software.svg +4 -0
- package/src/assets/icons_old/sql-aggregate.svg +7 -0
- package/src/assets/icons_old/sql.svg +7 -0
- package/src/assets/icons_old/stack.svg +4 -0
- package/src/assets/icons_old/star-empty.svg +4 -0
- package/src/assets/icons_old/star-fill.svg +4 -0
- package/src/assets/icons_old/subscription.svg +5 -0
- package/src/assets/icons_old/support.svg +11 -0
- package/src/assets/icons_old/switcher.svg +4 -0
- package/src/assets/icons_old/sysadmin.svg +4 -0
- package/src/assets/icons_old/tag.svg +4 -0
- package/src/assets/icons_old/target.svg +4 -0
- package/src/assets/icons_old/tasks.svg +4 -0
- package/src/assets/icons_old/tfa-user.svg +4 -0
- package/src/assets/icons_old/tfa.svg +4 -0
- package/src/assets/icons_old/tokenization.svg +4 -0
- package/src/assets/icons_old/tools.svg +4 -0
- package/src/assets/icons_old/transition-from.svg +4 -0
- package/src/assets/icons_old/transition-to.svg +4 -0
- package/src/assets/icons_old/upload.svg +4 -0
- package/src/assets/icons_old/user-remove.svg +3 -0
- package/src/assets/icons_old/user.svg +4 -0
- package/src/assets/icons_old/view-type-cards.svg +4 -0
- package/src/assets/icons_old/view-type-list.svg +4 -0
- package/src/assets/icons_old/view-type-table.svg +4 -0
- package/src/assets/icons_old/warning.svg +4 -0
- package/src/assets/icons_old/workflow.svg +3 -0
- package/src/assets/icons_old/wrap.svg +4 -0
- package/src/assets/icons_old/wrench.svg +4 -0
- package/src/assets/images/fortanix_logo_icon.svg +20 -0
- package/src/components/actions/Button/Button.module.scss +81 -0
- package/src/components/actions/Button/Button.stories.tsx +262 -0
- package/src/components/actions/Button/Button.tsx +133 -0
- package/src/components/actions/ButtonAsLink/ButtonAsLink.module.scss +13 -0
- package/src/components/actions/ButtonAsLink/ButtonAsLink.stories.tsx +49 -0
- package/src/components/actions/ButtonAsLink/ButtonAsLink.tsx +56 -0
- package/src/components/actions/Link/Link.module.scss +38 -0
- package/src/components/actions/Link/Link.stories.tsx +54 -0
- package/src/components/actions/Link/Link.tsx +59 -0
- package/src/components/actions/LinkAsButton/LinkAsButton.stories.tsx +70 -0
- package/src/components/actions/LinkAsButton/LinkAsButton.tsx +59 -0
- package/src/components/containers/Alert/Alert.module.scss +41 -0
- package/src/components/containers/Alert/Alert.stories.tsx +47 -0
- package/src/components/containers/Alert/Alert.tsx +65 -0
- package/src/components/containers/Banner/Banner.module.scss +100 -0
- package/src/components/containers/Banner/Banner.stories.tsx +198 -0
- package/src/components/containers/Banner/Banner.tsx +121 -0
- package/src/components/containers/Card/Card.module.scss +32 -0
- package/src/components/containers/Card/Card.stories.tsx +67 -0
- package/src/components/containers/Card/Card.tsx +48 -0
- package/src/components/containers/Dialog/Dialog.module.scss +166 -0
- package/src/components/containers/Dialog/Dialog.stories.tsx +32 -0
- package/src/components/containers/Dialog/Dialog.tsx +130 -0
- package/src/components/containers/Panel/Panel.module.scss +32 -0
- package/src/components/containers/Panel/Panel.stories.tsx +46 -0
- package/src/components/containers/Panel/Panel.tsx +48 -0
- package/src/components/forms/context/Form/Form.module.scss +11 -0
- package/src/components/forms/context/Form/Form.stories.tsx +99 -0
- package/src/components/forms/context/Form/Form.tsx +106 -0
- package/src/components/forms/context/Form/FormOptics.tsx +109 -0
- package/src/components/forms/context/SubmitButton/SubmitButton.module.scss +9 -0
- package/src/components/forms/context/SubmitButton/SubmitButton.stories.tsx +132 -0
- package/src/components/forms/context/SubmitButton/SubmitButton.tsx +98 -0
- package/src/components/forms/controls/Checkbox/Checkbox.module.scss +67 -0
- package/src/components/forms/controls/Checkbox/Checkbox.stories.tsx +119 -0
- package/src/components/forms/controls/Checkbox/Checkbox.tsx +53 -0
- package/src/components/forms/controls/Input/Input.module.scss +40 -0
- package/src/components/forms/controls/Input/Input.stories.tsx +55 -0
- package/src/components/forms/controls/Input/Input.tsx +44 -0
- package/src/components/forms/controls/SegmentedControl/SegmentedControl.module.scss +76 -0
- package/src/components/forms/controls/SegmentedControl/SegmentedControl.stories.tsx +92 -0
- package/src/components/forms/controls/SegmentedControl/SegmentedControl.tsx +103 -0
- package/src/components/forms/controls/Select/Select.module.scss +105 -0
- package/src/components/forms/controls/Select/Select.stories.tsx +43 -0
- package/src/components/forms/controls/Select/Select.tsx +166 -0
- package/src/components/forms/controls/Switch/Switch.module.scss +63 -0
- package/src/components/forms/controls/Switch/Switch.stories.tsx +50 -0
- package/src/components/forms/controls/Switch/Switch.tsx +46 -0
- package/src/components/forms/fields/CheckboxField/CheckboxField.module.scss +46 -0
- package/src/components/forms/fields/CheckboxField/CheckboxField.stories.tsx +74 -0
- package/src/components/forms/fields/CheckboxField/CheckboxField.tsx +118 -0
- package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.module.scss +22 -0
- package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.stories.tsx +36 -0
- package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.tsx +37 -0
- package/src/components/forms/fields/InputField/InputField.module.scss +24 -0
- package/src/components/forms/fields/InputField/InputField.stories.tsx +57 -0
- package/src/components/forms/fields/InputField/InputField.tsx +72 -0
- package/src/components/graphics/Icon/Icon.module.scss +42 -0
- package/src/components/graphics/Icon/Icon.stories.tsx +67 -0
- package/src/components/graphics/Icon/Icon.tsx +50 -0
- package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.module.scss +76 -0
- package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.stories.tsx +101 -0
- package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.tsx +91 -0
- package/src/components/graphics/ProgressBar/ProgressBar.module.scss +43 -0
- package/src/components/graphics/ProgressBar/ProgressBar.stories.tsx +70 -0
- package/src/components/graphics/ProgressBar/ProgressBar.tsx +58 -0
- package/src/components/graphics/Spinner/Spinner.module.scss +61 -0
- package/src/components/graphics/Spinner/Spinner.stories.tsx +56 -0
- package/src/components/graphics/Spinner/Spinner.tsx +41 -0
- package/src/components/lists/PropertyList/PropertyList.module.scss +33 -0
- package/src/components/lists/PropertyList/PropertyList.stories.tsx +45 -0
- package/src/components/lists/PropertyList/PropertyList.tsx +60 -0
- package/src/components/navigations/Stepper/Stepper.module.scss +88 -0
- package/src/components/navigations/Stepper/Stepper.stories.tsx +68 -0
- package/src/components/navigations/Stepper/Stepper.tsx +95 -0
- package/src/components/navigations/Tabs/Tabs.module.scss +71 -0
- package/src/components/navigations/Tabs/Tabs.stories.tsx +106 -0
- package/src/components/navigations/Tabs/Tabs.tsx +121 -0
- package/src/components/overlays/DropdownMenu/DropdownMenu.module.scss +113 -0
- package/src/components/overlays/DropdownMenu/DropdownMenu.stories.tsx +91 -0
- package/src/components/overlays/DropdownMenu/DropdownMenu.tsx +155 -0
- package/src/components/overlays/DropdownMenu/DropdownMenuProvider.module.scss +105 -0
- package/src/components/overlays/DropdownMenu/DropdownMenuProvider.stories.tsx +71 -0
- package/src/components/overlays/DropdownMenu/DropdownMenuProvider.tsx +168 -0
- package/src/components/overlays/Modal/Modal.module.scss +185 -0
- package/src/components/overlays/Modal/Modal.stories.tsx +144 -0
- package/src/components/overlays/Modal/Modal.tsx +202 -0
- package/src/components/overlays/Toast/Toast.module.scss +123 -0
- package/src/components/overlays/Toast/Toast.stories.tsx +219 -0
- package/src/components/overlays/Toast/Toast.tsx +233 -0
- package/src/components/overlays/Toast/ToastyOverride.scss +27 -0
- package/src/components/overlays/Tooltip/Tooltip.module.scss +162 -0
- package/src/components/overlays/Tooltip/Tooltip.stories.tsx +115 -0
- package/src/components/overlays/Tooltip/Tooltip.tsx +75 -0
- package/src/components/overlays/Tooltip/TooltipProvider.stories.tsx +169 -0
- package/src/components/overlays/Tooltip/TooltipProvider.tsx +164 -0
- package/src/components/util/Clipboard/Clipboard.tsx +11 -0
- package/src/components/util/Popover/Popover.tsx +219 -0
- package/src/docs/Changelog.mdx +7 -0
- package/src/docs/Colors.mdx +113 -0
- package/src/docs/Colors.module.scss +56 -0
- package/src/docs/Iconography.mdx +70 -0
- package/src/docs/Iconography.module.scss +37 -0
- package/src/docs/Introduction.mdx +26 -0
- package/src/docs/Typography.mdx +109 -0
- package/src/docs/Typography.module.scss +22 -0
- package/src/layouts/AppLayout/AppLayout.module.scss +110 -0
- package/src/layouts/AppLayout/AppLayout.stories.tsx +112 -0
- package/src/layouts/AppLayout/AppLayout.tsx +31 -0
- package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.module.scss +47 -0
- package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.stories.tsx +66 -0
- package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.tsx +63 -0
- package/src/layouts/AppLayout/Header/AccountSelector.module.scss +24 -0
- package/src/layouts/AppLayout/Header/AccountSelector.stories.tsx +31 -0
- package/src/layouts/AppLayout/Header/AccountSelector.tsx +51 -0
- package/src/layouts/AppLayout/Header/Header.module.scss +74 -0
- package/src/layouts/AppLayout/Header/Header.stories.tsx +30 -0
- package/src/layouts/AppLayout/Header/Header.tsx +31 -0
- package/src/layouts/AppLayout/Header/SolutionSelector.module.scss +24 -0
- package/src/layouts/AppLayout/Header/SolutionSelector.stories.tsx +31 -0
- package/src/layouts/AppLayout/Header/SolutionSelector.tsx +50 -0
- package/src/layouts/AppLayout/Header/UserMenu.module.scss +31 -0
- package/src/layouts/AppLayout/Header/UserMenu.stories.tsx +32 -0
- package/src/layouts/AppLayout/Header/UserMenu.tsx +67 -0
- package/src/layouts/AppLayout/Logo/Logo.module.scss +78 -0
- package/src/layouts/AppLayout/Logo/Logo.tsx +38 -0
- package/src/layouts/AppLayout/Nav/Nav.module.scss +73 -0
- package/src/layouts/AppLayout/Nav/Nav.stories.tsx +32 -0
- package/src/layouts/AppLayout/Nav/Nav.tsx +75 -0
- package/src/layouts/AppLayout/Sidebar/Sidebar.module.scss +46 -0
- package/src/layouts/AppLayout/Sidebar/Sidebar.stories.tsx +30 -0
- package/src/layouts/AppLayout/Sidebar/Sidebar.tsx +33 -0
- package/src/layouts/FormLayout/FormLayout.module.scss +19 -0
- package/src/layouts/FormLayout/FormLayout.stories.tsx +64 -0
- package/src/layouts/FormLayout/FormLayout.tsx +32 -0
- package/src/styling/accessibility.css +24 -0
- package/src/styling/context/theming.scss +26 -0
- package/src/styling/context/theming_mixins.scss +79 -0
- package/src/styling/defs.scss +60 -0
- package/src/styling/fonts.css +126 -0
- package/src/styling/fonts_mixins.scss +16 -0
- package/src/styling/global.scss +49 -0
- package/src/styling/lib/normalize.css +78 -0
- package/src/styling/lib/reset-custom.css +58 -0
- package/src/styling/lib/reset.css +115 -0
- package/src/styling/main.scss +29 -0
- package/src/styling/variables.css +18 -0
- package/src/styling/variables.scss +928 -0
- package/src/styling/variables.ts +64 -0
- package/src/types/globals.d.ts +14 -0
- package/src/types/vite-env.d.ts +1 -0
- package/src/typography/BodyText/BodyText.mixins.scss +224 -0
- package/src/typography/BodyText/BodyText.module.scss +28 -0
- package/src/typography/BodyText/BodyText.stories.tsx +109 -0
- package/src/typography/BodyText/BodyText.tsx +30 -0
- package/src/typography/Heading/Heading.mixins.scss +42 -0
- package/src/typography/Heading/Heading.module.scss +15 -0
- package/src/typography/Heading/Heading.stories.tsx +112 -0
- package/src/typography/Heading/Heading.tsx +57 -0
- package/src/util/componentUtil.ts +19 -0
- package/src/util/drag.ts +197 -0
- package/src/util/reactUtil.ts +40 -0
- package/src/util/storybook/OverflowTester.css +13 -0
- package/src/util/storybook/OverflowTester.tsx +30 -0
- package/src/util/time.ts +12 -0
- package/src/util/types.ts +8 -0
package/dist/baklava.js
ADDED
|
@@ -0,0 +1,4962 @@
|
|
|
1
|
+
import { jsx as y, jsxs as V, Fragment as Ee } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import q, { useLayoutEffect as Ht, useEffect as dt, useRef as Ue, useState as un, useSyncExternalStore as ro, isValidElement as We, cloneElement as fn } from "react";
|
|
4
|
+
import './lib.css';const kr = (e) => {
|
|
5
|
+
const t = "The action took too long to complete";
|
|
6
|
+
return new Promise((n, r) => setTimeout(r, e, new Error(t)));
|
|
7
|
+
};
|
|
8
|
+
function oo(e) {
|
|
9
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
|
+
}
|
|
11
|
+
var yr = { exports: {} };
|
|
12
|
+
/*!
|
|
13
|
+
Copyright (c) 2018 Jed Watson.
|
|
14
|
+
Licensed under the MIT License (MIT), see
|
|
15
|
+
http://jedwatson.github.io/classnames
|
|
16
|
+
*/
|
|
17
|
+
(function(e) {
|
|
18
|
+
(function() {
|
|
19
|
+
var t = function() {
|
|
20
|
+
function n() {
|
|
21
|
+
}
|
|
22
|
+
n.prototype = /* @__PURE__ */ Object.create(null);
|
|
23
|
+
function r(u, c) {
|
|
24
|
+
for (var d = c.length, p = 0; p < d; ++p)
|
|
25
|
+
f(u, c[p]);
|
|
26
|
+
}
|
|
27
|
+
var o = {}.hasOwnProperty;
|
|
28
|
+
function i(u, c) {
|
|
29
|
+
u[c] = !0;
|
|
30
|
+
}
|
|
31
|
+
function s(u, c) {
|
|
32
|
+
if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
|
|
33
|
+
u[c.toString()] = !0;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
for (var d in c)
|
|
37
|
+
o.call(c, d) && (u[d] = !!c[d]);
|
|
38
|
+
}
|
|
39
|
+
var l = /\s+/;
|
|
40
|
+
function a(u, c) {
|
|
41
|
+
for (var d = c.split(l), p = d.length, g = 0; g < p; ++g)
|
|
42
|
+
u[d[g]] = !0;
|
|
43
|
+
}
|
|
44
|
+
function f(u, c) {
|
|
45
|
+
if (c) {
|
|
46
|
+
var d = typeof c;
|
|
47
|
+
d === "string" ? a(u, c) : Array.isArray(c) ? r(u, c) : d === "object" ? s(u, c) : d === "number" && i(u, c);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function m() {
|
|
51
|
+
for (var u = arguments.length, c = Array(u), d = 0; d < u; d++)
|
|
52
|
+
c[d] = arguments[d];
|
|
53
|
+
var p = new n();
|
|
54
|
+
r(p, c);
|
|
55
|
+
var g = [];
|
|
56
|
+
for (var v in p)
|
|
57
|
+
p[v] && g.push(v);
|
|
58
|
+
return g.join(" ");
|
|
59
|
+
}
|
|
60
|
+
return m;
|
|
61
|
+
}();
|
|
62
|
+
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
63
|
+
})();
|
|
64
|
+
})(yr);
|
|
65
|
+
var so = yr.exports;
|
|
66
|
+
const E = /* @__PURE__ */ oo(so), io = "_9TsD0G_bk-spinner", co = "_9TsD0G_bk-spinner--inline", ao = "_9TsD0G_bk-spinner--large", lo = "_9TsD0G_bk-spinner--medium", uo = "_9TsD0G_bk-spinner--small", fo = "_9TsD0G_spin", Jt = { "bk-spinner": io, "bk-spinner--inline": co, "bk-spinner--large": ao, "bk-spinner--medium": lo, "bk-spinner--small": uo, spin: fo }, vr = ({
|
|
67
|
+
inline: e,
|
|
68
|
+
size: t = "small",
|
|
69
|
+
...n
|
|
70
|
+
}) => /* @__PURE__ */ y(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
...n,
|
|
74
|
+
className: E({
|
|
75
|
+
bk: !0,
|
|
76
|
+
[Jt["bk-spinner"]]: !0,
|
|
77
|
+
[Jt[`bk-spinner--${t}`]]: !0,
|
|
78
|
+
[Jt["bk-spinner--inline"]]: e
|
|
79
|
+
}, n.className)
|
|
80
|
+
}
|
|
81
|
+
), po = "YQLd5a_bk-button", mo = "YQLd5a_bk-button--disabled", bo = "YQLd5a_bk-button--nonactive", go = "YQLd5a_bk-button--primary", _o = "YQLd5a_bk-button--secondary", ke = { "bk-button": po, "bk-button--disabled": mo, "bk-button--nonactive": bo, "bk-button--primary": go, "bk-button--secondary": _o }, wr = Symbol("baklava.Button.internalSubmit"), de = (e) => {
|
|
82
|
+
const {
|
|
83
|
+
children: t,
|
|
84
|
+
unstyled: n = !1,
|
|
85
|
+
label: r,
|
|
86
|
+
nonactive: o = !1,
|
|
87
|
+
variant: i = "tertiary",
|
|
88
|
+
onPress: s,
|
|
89
|
+
asyncTimeout: l = 3e4,
|
|
90
|
+
...a
|
|
91
|
+
} = e, [f, m] = b.useTransition(), u = f, c = !a.disabled && !o && !u, d = o || u, p = b.useCallback(() => {
|
|
92
|
+
typeof s == "function" && m(async () => {
|
|
93
|
+
await Promise.race([s(), kr(l)]);
|
|
94
|
+
});
|
|
95
|
+
}, [s, l]), g = b.useCallback(async (_) => {
|
|
96
|
+
var w;
|
|
97
|
+
(w = e.onClick) == null || w.call(e, _), c && typeof s == "function" && (_.preventDefault(), p());
|
|
98
|
+
}, [e.onClick, c, s, p]), v = () => t || /* @__PURE__ */ V(Ee, { children: [
|
|
99
|
+
u && /* @__PURE__ */ y(vr, { className: "icon", inline: !0 }),
|
|
100
|
+
r
|
|
101
|
+
] }), h = a.type;
|
|
102
|
+
let k;
|
|
103
|
+
if (h === "submit")
|
|
104
|
+
throw new Error("Button component cannot have type 'submit', use SubmitButton instead.");
|
|
105
|
+
return h === wr && (k = "submit"), /* @__PURE__ */ y(
|
|
106
|
+
"button",
|
|
107
|
+
{
|
|
108
|
+
...a,
|
|
109
|
+
type: k,
|
|
110
|
+
disabled: !c,
|
|
111
|
+
className: E({
|
|
112
|
+
bk: !0,
|
|
113
|
+
[ke["bk-button"]]: !n,
|
|
114
|
+
[ke["bk-button--primary"]]: i === "primary",
|
|
115
|
+
[ke["bk-button--secondary"]]: i === "secondary",
|
|
116
|
+
[ke["bk-button--nonactive"]]: d,
|
|
117
|
+
[ke["bk-button--disabled"]]: !c
|
|
118
|
+
}, e.className),
|
|
119
|
+
onClick: g,
|
|
120
|
+
children: v()
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}, ho = "hu6PYW_bk-link", ko = "hu6PYW_bk-link--small", At = { "bk-link": ho, "bk-link--small": ko }, Rn = (e) => {
|
|
124
|
+
const {
|
|
125
|
+
children: t,
|
|
126
|
+
unstyled: n = !1,
|
|
127
|
+
size: r = "medium",
|
|
128
|
+
label: o,
|
|
129
|
+
href: i,
|
|
130
|
+
...s
|
|
131
|
+
} = e, l = s.target === "_blank" ? "noopener noreferrer" : void 0;
|
|
132
|
+
return /* @__PURE__ */ y(
|
|
133
|
+
"a",
|
|
134
|
+
{
|
|
135
|
+
rel: l,
|
|
136
|
+
href: i,
|
|
137
|
+
...s,
|
|
138
|
+
className: E({
|
|
139
|
+
bk: !0,
|
|
140
|
+
[At["bk-link"]]: !n,
|
|
141
|
+
[At["bk-link--small"]]: r === "small"
|
|
142
|
+
}, e.className),
|
|
143
|
+
children: t ?? o
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}, yo = "s0eMvG_bk-button-as-link", vo = { "bk-button-as-link": yo }, Ol = (e) => {
|
|
147
|
+
const {
|
|
148
|
+
unstyled: t = !1,
|
|
149
|
+
size: n = "medium",
|
|
150
|
+
label: r,
|
|
151
|
+
...o
|
|
152
|
+
} = e;
|
|
153
|
+
return /* @__PURE__ */ y(
|
|
154
|
+
de,
|
|
155
|
+
{
|
|
156
|
+
...o,
|
|
157
|
+
unstyled: !0,
|
|
158
|
+
label: r,
|
|
159
|
+
className: E({
|
|
160
|
+
bk: !0,
|
|
161
|
+
[vo["bk-button-as-link"]]: !t,
|
|
162
|
+
[At["bk-link"]]: !t,
|
|
163
|
+
[At["bk-link--small"]]: n === "small"
|
|
164
|
+
}, e.className)
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}, Cl = (e) => {
|
|
168
|
+
const {
|
|
169
|
+
unstyled: t = !1,
|
|
170
|
+
label: n,
|
|
171
|
+
variant: r,
|
|
172
|
+
nonactive: o,
|
|
173
|
+
disabled: i,
|
|
174
|
+
...s
|
|
175
|
+
} = e;
|
|
176
|
+
return /* @__PURE__ */ y(
|
|
177
|
+
Rn,
|
|
178
|
+
{
|
|
179
|
+
...s,
|
|
180
|
+
unstyled: !0,
|
|
181
|
+
label: n,
|
|
182
|
+
className: E({
|
|
183
|
+
bk: !0,
|
|
184
|
+
[ke["bk-button"]]: !t,
|
|
185
|
+
[ke["bk-button--primary"]]: r === "primary",
|
|
186
|
+
[ke["bk-button--secondary"]]: r === "secondary",
|
|
187
|
+
[ke["bk-button--nonactive"]]: o,
|
|
188
|
+
[ke["bk-button--disabled"]]: i
|
|
189
|
+
}, e.className),
|
|
190
|
+
size: "medium"
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}, wo = (e) => {
|
|
194
|
+
throw new Error("Unexpected case");
|
|
195
|
+
}, xo = "qxCLgG_bk-icon", Eo = "qxCLgG_bk-icon--background-circle", Kn = { "bk-icon": xo, "bk-icon--background-circle": Eo }, ie = ({ unstyled: e, icon: t, color: n = "currentColor", decoration: r, ...o }) => {
|
|
196
|
+
const i = `#baklava-icon-${t}`;
|
|
197
|
+
return /* @__PURE__ */ y(
|
|
198
|
+
"svg",
|
|
199
|
+
{
|
|
200
|
+
role: "img",
|
|
201
|
+
"aria-label": `${t} icon`,
|
|
202
|
+
"aria-hidden": !0,
|
|
203
|
+
...o,
|
|
204
|
+
className: E({
|
|
205
|
+
bk: !0,
|
|
206
|
+
[Kn["bk-icon"]]: !e,
|
|
207
|
+
[Kn["bk-icon--background-circle"]]: (r == null ? void 0 : r.type) === "background-circle"
|
|
208
|
+
}, o.className),
|
|
209
|
+
children: /* @__PURE__ */ y("use", { href: i, fill: n })
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}, Ro = "GVTpJW_bk-h1", To = "GVTpJW_bk-h2", So = "GVTpJW_bk-h3", Oo = "GVTpJW_bk-h4", Co = "GVTpJW_bk-h5", No = "GVTpJW_bk-h6", xr = { "bk-h1": Ro, "bk-h2": To, "bk-h3": So, "bk-h4": Oo, "bk-h5": Co, "bk-h6": No }, Io = ({ unstyled: e, ...t }) => /* @__PURE__ */ y("h4", { ...t, className: E("bk", { [xr["bk-h4"]]: !e }, t.className) }), Ao = ({ unstyled: e, ...t }) => /* @__PURE__ */ y("h5", { ...t, className: E("bk", { [xr["bk-h5"]]: !e }, t.className) }), Mo = "eUcIoG_bk-panel", Do = "eUcIoG_bk-panel__heading", Er = { "bk-panel": Mo, "bk-panel__heading": Do }, Po = (e) => /* @__PURE__ */ y(Io, { ...e, className: E(Er["bk-panel__heading"], e.className) }), Lo = Object.assign(
|
|
213
|
+
(e) => {
|
|
214
|
+
const { children: t, unstyled: n = !1, ...r } = e;
|
|
215
|
+
return /* @__PURE__ */ y(
|
|
216
|
+
"section",
|
|
217
|
+
{
|
|
218
|
+
...r,
|
|
219
|
+
className: E(
|
|
220
|
+
"bk",
|
|
221
|
+
{ [Er["bk-panel"]]: !n },
|
|
222
|
+
r.className
|
|
223
|
+
),
|
|
224
|
+
children: t
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
Heading: Po
|
|
230
|
+
}
|
|
231
|
+
), Fo = "QDjpwG_bk-alert", Bo = "QDjpwG_bk-alert--error", $o = "QDjpwG_bk-alert--info", Ho = "QDjpwG_bk-alert--success", Go = "QDjpwG_bk-alert--warning", Vo = "QDjpwG_bk-alert__icon", Le = { "bk-alert": Fo, "bk-alert--error": Bo, "bk-alert--info": $o, "bk-alert--success": Ho, "bk-alert--warning": Go, "bk-alert__icon": Vo }, Nl = (e) => {
|
|
232
|
+
const {
|
|
233
|
+
children: t,
|
|
234
|
+
unstyled: n = !1,
|
|
235
|
+
kind: r = "info",
|
|
236
|
+
...o
|
|
237
|
+
} = e, i = (() => {
|
|
238
|
+
switch (r) {
|
|
239
|
+
case "info":
|
|
240
|
+
return "info";
|
|
241
|
+
case "warning":
|
|
242
|
+
return "warning";
|
|
243
|
+
case "error":
|
|
244
|
+
return "alert";
|
|
245
|
+
case "success":
|
|
246
|
+
return "success";
|
|
247
|
+
default:
|
|
248
|
+
throw wo();
|
|
249
|
+
}
|
|
250
|
+
})();
|
|
251
|
+
return /* @__PURE__ */ V(
|
|
252
|
+
Lo,
|
|
253
|
+
{
|
|
254
|
+
role: "alert",
|
|
255
|
+
...o,
|
|
256
|
+
className: E({
|
|
257
|
+
bk: !0,
|
|
258
|
+
[Le["bk-alert"]]: !n,
|
|
259
|
+
[Le["bk-alert--info"]]: r === "info",
|
|
260
|
+
[Le["bk-alert--warning"]]: r === "warning",
|
|
261
|
+
[Le["bk-alert--error"]]: r === "error",
|
|
262
|
+
[Le["bk-alert--success"]]: r === "success"
|
|
263
|
+
}, e.className),
|
|
264
|
+
children: [
|
|
265
|
+
/* @__PURE__ */ y(ie, { icon: i, className: E(Le["bk-alert__icon"]) }),
|
|
266
|
+
/* @__PURE__ */ y("article", { className: E(Le["bk-alert__message"]), children: t })
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
}, qo = "QRhvGa_bk-card", Ko = "QRhvGa_bk-card__heading", Rr = { "bk-card": qo, "bk-card__heading": Ko }, Wo = (e) => /* @__PURE__ */ y(Ao, { ...e, className: E(Rr["bk-card__heading"], e.className) }), Il = Object.assign(
|
|
271
|
+
(e) => {
|
|
272
|
+
const { children: t, unstyled: n = !1, ...r } = e;
|
|
273
|
+
return /* @__PURE__ */ y(
|
|
274
|
+
"section",
|
|
275
|
+
{
|
|
276
|
+
...r,
|
|
277
|
+
className: E(
|
|
278
|
+
"bk",
|
|
279
|
+
{ [Rr["bk-card"]]: !n },
|
|
280
|
+
r.className
|
|
281
|
+
),
|
|
282
|
+
children: t
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
Heading: Wo
|
|
288
|
+
}
|
|
289
|
+
), jo = "S-YlRG_bk-dialog", Uo = "S-YlRG_bk-dialog--slide-out-left", zo = "S-YlRG_bk-dialog--slide-out-right", Yo = "S-YlRG_bk-dialog__actions", Xo = "S-YlRG_bk-dialog__content", Jo = "S-YlRG_bk-dialog__header", Qo = "S-YlRG_bk-panel", Zo = "S-YlRG_bk-panel__heading", vt = { "bk-dialog": jo, "bk-dialog--slide-out-left": Uo, "bk-dialog--slide-out-right": zo, "bk-dialog__actions": Yo, "bk-dialog__content": Xo, "bk-dialog__header": Jo, "bk-panel": Qo, "bk-panel__heading": Zo }, Al = ({ children: e, unstyled: t, className: n, active: r, onClose: o }) => {
|
|
290
|
+
const i = b.useRef(null), s = b.useCallback((f) => {
|
|
291
|
+
const m = i.current;
|
|
292
|
+
m !== null && r && f.target === m && o();
|
|
293
|
+
}, [r, o]);
|
|
294
|
+
b.useEffect(() => {
|
|
295
|
+
const f = i.current;
|
|
296
|
+
if (f !== null)
|
|
297
|
+
return f.addEventListener("close", s), () => {
|
|
298
|
+
f.removeEventListener("close", s);
|
|
299
|
+
};
|
|
300
|
+
}, [s]);
|
|
301
|
+
const l = b.useCallback(() => {
|
|
302
|
+
o();
|
|
303
|
+
}, [o]), a = b.useCallback((f) => {
|
|
304
|
+
const m = i.current;
|
|
305
|
+
m !== null && f.target === m && l();
|
|
306
|
+
}, [l]);
|
|
307
|
+
return /* @__PURE__ */ V(
|
|
308
|
+
"dialog",
|
|
309
|
+
{
|
|
310
|
+
open: !0,
|
|
311
|
+
ref: i,
|
|
312
|
+
className: E({
|
|
313
|
+
bk: !0,
|
|
314
|
+
[vt["bk-dialog"]]: !t
|
|
315
|
+
}, n),
|
|
316
|
+
onClick: a,
|
|
317
|
+
children: [
|
|
318
|
+
/* @__PURE__ */ y("header", { className: vt["bk-dialog__header"], children: /* @__PURE__ */ y("h1", { children: "Title" }) }),
|
|
319
|
+
/* @__PURE__ */ y("section", { className: E(vt["bk-dialog__content"], "body-text"), children: e }),
|
|
320
|
+
/* @__PURE__ */ V("footer", { className: E(vt["bk-dialog__actions"]), children: [
|
|
321
|
+
/* @__PURE__ */ y(de, { autoFocus: !0, variant: "secondary", label: "Cancel" }),
|
|
322
|
+
/* @__PURE__ */ y(de, { variant: "primary", label: "Submit" })
|
|
323
|
+
] })
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
);
|
|
327
|
+
}, es = "WonXRa_bk-banner", ts = "WonXRa_bk-banner--alert", ns = "WonXRa_bk-banner--informational", rs = "WonXRa_bk-banner--success", os = "WonXRa_bk-banner--warning", ss = "WonXRa_bk-banner__action", is = "WonXRa_bk-banner__button", cs = "WonXRa_bk-banner__close-button", as = "WonXRa_bk-banner__icon", ls = "WonXRa_bk-banner__subtitle", us = "WonXRa_bk-banner__title", Ve = { "bk-banner": es, "bk-banner--alert": ts, "bk-banner--informational": ns, "bk-banner--success": rs, "bk-banner--warning": os, "bk-banner__action": ss, "bk-banner__button": is, "bk-banner__close-button": cs, "bk-banner__icon": as, "bk-banner__subtitle": ls, "bk-banner__title": us }, fs = (e) => {
|
|
328
|
+
const { variant: t } = e;
|
|
329
|
+
let n = t;
|
|
330
|
+
return n === "informational" && (n = "warning"), /* @__PURE__ */ y(ie, { icon: n });
|
|
331
|
+
}, Ml = (e) => {
|
|
332
|
+
const {
|
|
333
|
+
unstyled: t = !1,
|
|
334
|
+
variant: n = "informational",
|
|
335
|
+
title: r = "",
|
|
336
|
+
subtitle: o = "",
|
|
337
|
+
closeButton: i = !1,
|
|
338
|
+
actions: s = null,
|
|
339
|
+
...l
|
|
340
|
+
} = e, [a, f] = b.useState(!1);
|
|
341
|
+
return a ? null : /* @__PURE__ */ V(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
role: "presentation",
|
|
345
|
+
...l,
|
|
346
|
+
className: E({
|
|
347
|
+
bk: !0,
|
|
348
|
+
[Ve["bk-banner"]]: !t,
|
|
349
|
+
[Ve[`bk-banner--${n}`]]: n
|
|
350
|
+
}, l.className),
|
|
351
|
+
children: [
|
|
352
|
+
/* @__PURE__ */ y("span", { className: Ve["bk-banner__icon"], children: /* @__PURE__ */ y(fs, { variant: n }) }),
|
|
353
|
+
/* @__PURE__ */ y("strong", { className: Ve["bk-banner__title"], children: r }),
|
|
354
|
+
o && /* @__PURE__ */ y("span", { className: Ve["bk-banner__subtitle"], children: o }),
|
|
355
|
+
s,
|
|
356
|
+
i && /* @__PURE__ */ y(
|
|
357
|
+
de,
|
|
358
|
+
{
|
|
359
|
+
className: Ve["bk-banner__close-button"],
|
|
360
|
+
onClick: () => f(!0),
|
|
361
|
+
children: /* @__PURE__ */ y(ie, { icon: "cross" })
|
|
362
|
+
}
|
|
363
|
+
)
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
);
|
|
367
|
+
};
|
|
368
|
+
var dn = { exports: {} }, re = {};
|
|
369
|
+
/**
|
|
370
|
+
* @license React
|
|
371
|
+
* react-dom.production.js
|
|
372
|
+
*
|
|
373
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
374
|
+
*
|
|
375
|
+
* This source code is licensed under the MIT license found in the
|
|
376
|
+
* LICENSE file in the root directory of this source tree.
|
|
377
|
+
*/
|
|
378
|
+
var Wn;
|
|
379
|
+
function ds() {
|
|
380
|
+
if (Wn) return re;
|
|
381
|
+
Wn = 1;
|
|
382
|
+
function e(l) {
|
|
383
|
+
var a = "https://react.dev/errors/" + l;
|
|
384
|
+
if (1 < arguments.length) {
|
|
385
|
+
a += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
386
|
+
for (var f = 2; f < arguments.length; f++)
|
|
387
|
+
a += "&args[]=" + encodeURIComponent(arguments[f]);
|
|
388
|
+
}
|
|
389
|
+
return "Minified React error #" + l + "; visit " + a + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
390
|
+
}
|
|
391
|
+
var t = q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
392
|
+
function n() {
|
|
393
|
+
}
|
|
394
|
+
var r = {
|
|
395
|
+
d: {
|
|
396
|
+
f: n,
|
|
397
|
+
r: function() {
|
|
398
|
+
throw Error(e(522));
|
|
399
|
+
},
|
|
400
|
+
D: n,
|
|
401
|
+
C: n,
|
|
402
|
+
L: n,
|
|
403
|
+
m: n,
|
|
404
|
+
X: n,
|
|
405
|
+
S: n,
|
|
406
|
+
M: n
|
|
407
|
+
},
|
|
408
|
+
p: 0,
|
|
409
|
+
findDOMNode: null
|
|
410
|
+
}, o = Symbol.for("react.portal");
|
|
411
|
+
function i(l, a, f) {
|
|
412
|
+
var m = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
413
|
+
return {
|
|
414
|
+
$$typeof: o,
|
|
415
|
+
key: m == null ? null : "" + m,
|
|
416
|
+
children: l,
|
|
417
|
+
containerInfo: a,
|
|
418
|
+
implementation: f
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
function s(l, a) {
|
|
422
|
+
if (l === "font") return "";
|
|
423
|
+
if (typeof a == "string")
|
|
424
|
+
return a === "use-credentials" ? a : "";
|
|
425
|
+
}
|
|
426
|
+
return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, re.createPortal = function(l, a) {
|
|
427
|
+
var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
428
|
+
if (!a || a.nodeType !== 1 && a.nodeType !== 9 && a.nodeType !== 11)
|
|
429
|
+
throw Error(e(299));
|
|
430
|
+
return i(l, a, null, f);
|
|
431
|
+
}, re.flushSync = function(l) {
|
|
432
|
+
var a = t.T, f = r.p;
|
|
433
|
+
try {
|
|
434
|
+
if (t.T = null, r.p = 2, l) return l();
|
|
435
|
+
} finally {
|
|
436
|
+
t.T = a, r.p = f, r.d.f();
|
|
437
|
+
}
|
|
438
|
+
}, re.preconnect = function(l, a) {
|
|
439
|
+
typeof l == "string" && (a ? (a = a.crossOrigin, a = typeof a == "string" ? a === "use-credentials" ? a : "" : void 0) : a = null, r.d.C(l, a));
|
|
440
|
+
}, re.prefetchDNS = function(l) {
|
|
441
|
+
typeof l == "string" && r.d.D(l);
|
|
442
|
+
}, re.preinit = function(l, a) {
|
|
443
|
+
if (typeof l == "string" && a && typeof a.as == "string") {
|
|
444
|
+
var f = a.as, m = s(f, a.crossOrigin), u = typeof a.integrity == "string" ? a.integrity : void 0, c = typeof a.fetchPriority == "string" ? a.fetchPriority : void 0;
|
|
445
|
+
f === "style" ? r.d.S(
|
|
446
|
+
l,
|
|
447
|
+
typeof a.precedence == "string" ? a.precedence : void 0,
|
|
448
|
+
{
|
|
449
|
+
crossOrigin: m,
|
|
450
|
+
integrity: u,
|
|
451
|
+
fetchPriority: c
|
|
452
|
+
}
|
|
453
|
+
) : f === "script" && r.d.X(l, {
|
|
454
|
+
crossOrigin: m,
|
|
455
|
+
integrity: u,
|
|
456
|
+
fetchPriority: c,
|
|
457
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}, re.preinitModule = function(l, a) {
|
|
461
|
+
if (typeof l == "string")
|
|
462
|
+
if (typeof a == "object" && a !== null) {
|
|
463
|
+
if (a.as == null || a.as === "script") {
|
|
464
|
+
var f = s(
|
|
465
|
+
a.as,
|
|
466
|
+
a.crossOrigin
|
|
467
|
+
);
|
|
468
|
+
r.d.M(l, {
|
|
469
|
+
crossOrigin: f,
|
|
470
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0,
|
|
471
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
} else a == null && r.d.M(l);
|
|
475
|
+
}, re.preload = function(l, a) {
|
|
476
|
+
if (typeof l == "string" && typeof a == "object" && a !== null && typeof a.as == "string") {
|
|
477
|
+
var f = a.as, m = s(f, a.crossOrigin);
|
|
478
|
+
r.d.L(l, f, {
|
|
479
|
+
crossOrigin: m,
|
|
480
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0,
|
|
481
|
+
nonce: typeof a.nonce == "string" ? a.nonce : void 0,
|
|
482
|
+
type: typeof a.type == "string" ? a.type : void 0,
|
|
483
|
+
fetchPriority: typeof a.fetchPriority == "string" ? a.fetchPriority : void 0,
|
|
484
|
+
referrerPolicy: typeof a.referrerPolicy == "string" ? a.referrerPolicy : void 0,
|
|
485
|
+
imageSrcSet: typeof a.imageSrcSet == "string" ? a.imageSrcSet : void 0,
|
|
486
|
+
imageSizes: typeof a.imageSizes == "string" ? a.imageSizes : void 0,
|
|
487
|
+
media: typeof a.media == "string" ? a.media : void 0
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
}, re.preloadModule = function(l, a) {
|
|
491
|
+
if (typeof l == "string")
|
|
492
|
+
if (a) {
|
|
493
|
+
var f = s(a.as, a.crossOrigin);
|
|
494
|
+
r.d.m(l, {
|
|
495
|
+
as: typeof a.as == "string" && a.as !== "script" ? a.as : void 0,
|
|
496
|
+
crossOrigin: f,
|
|
497
|
+
integrity: typeof a.integrity == "string" ? a.integrity : void 0
|
|
498
|
+
});
|
|
499
|
+
} else r.d.m(l);
|
|
500
|
+
}, re.requestFormReset = function(l) {
|
|
501
|
+
r.d.r(l);
|
|
502
|
+
}, re.unstable_batchedUpdates = function(l, a) {
|
|
503
|
+
return l(a);
|
|
504
|
+
}, re.useFormState = function(l, a, f) {
|
|
505
|
+
return t.H.useFormState(l, a, f);
|
|
506
|
+
}, re.useFormStatus = function() {
|
|
507
|
+
return t.H.useHostTransitionStatus();
|
|
508
|
+
}, re.version = "19.0.0-rc-fb9a90fa48-20240614", re;
|
|
509
|
+
}
|
|
510
|
+
var oe = {};
|
|
511
|
+
/**
|
|
512
|
+
* @license React
|
|
513
|
+
* react-dom.development.js
|
|
514
|
+
*
|
|
515
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
516
|
+
*
|
|
517
|
+
* This source code is licensed under the MIT license found in the
|
|
518
|
+
* LICENSE file in the root directory of this source tree.
|
|
519
|
+
*/
|
|
520
|
+
var jn;
|
|
521
|
+
function ps() {
|
|
522
|
+
return jn || (jn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
523
|
+
function e(u) {
|
|
524
|
+
for (var c = arguments.length, d = Array(1 < c ? c - 1 : 0), p = 1; p < c; p++)
|
|
525
|
+
d[p - 1] = arguments[p];
|
|
526
|
+
c = u, p = Error("react-stack-top-frame"), a.getCurrentStack && (p = a.getCurrentStack(p), p !== "" && (c += "%s", d = d.concat([p]))), d.unshift(c), Function.prototype.apply.call(console.error, console, d);
|
|
527
|
+
}
|
|
528
|
+
function t() {
|
|
529
|
+
}
|
|
530
|
+
function n(u) {
|
|
531
|
+
return "" + u;
|
|
532
|
+
}
|
|
533
|
+
function r(u, c, d) {
|
|
534
|
+
var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
535
|
+
try {
|
|
536
|
+
n(p);
|
|
537
|
+
var g = !1;
|
|
538
|
+
} catch {
|
|
539
|
+
g = !0;
|
|
540
|
+
}
|
|
541
|
+
return g && (e(
|
|
542
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
543
|
+
typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object"
|
|
544
|
+
), n(p)), {
|
|
545
|
+
$$typeof: m,
|
|
546
|
+
key: p == null ? null : "" + p,
|
|
547
|
+
children: u,
|
|
548
|
+
containerInfo: c,
|
|
549
|
+
implementation: d
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
function o(u, c) {
|
|
553
|
+
if (u === "font") return "";
|
|
554
|
+
if (typeof c == "string")
|
|
555
|
+
return c === "use-credentials" ? c : "";
|
|
556
|
+
}
|
|
557
|
+
function i(u) {
|
|
558
|
+
return u === null ? "`null`" : u === void 0 ? "`undefined`" : u === "" ? "an empty string" : 'something with type "' + typeof u + '"';
|
|
559
|
+
}
|
|
560
|
+
function s(u) {
|
|
561
|
+
return u === null ? "`null`" : u === void 0 ? "`undefined`" : u === "" ? "an empty string" : typeof u == "string" ? JSON.stringify(u) : typeof u == "number" ? "`" + u + "`" : 'something with type "' + typeof u + '"';
|
|
562
|
+
}
|
|
563
|
+
function l() {
|
|
564
|
+
var u = a.H;
|
|
565
|
+
return u === null && e(
|
|
566
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
567
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
568
|
+
2. You might be breaking the Rules of Hooks
|
|
569
|
+
3. You might have more than one copy of React in the same app
|
|
570
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
571
|
+
), u;
|
|
572
|
+
}
|
|
573
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
574
|
+
var a = q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, f = {
|
|
575
|
+
d: {
|
|
576
|
+
f: t,
|
|
577
|
+
r: function() {
|
|
578
|
+
throw Error(
|
|
579
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
580
|
+
);
|
|
581
|
+
},
|
|
582
|
+
D: t,
|
|
583
|
+
C: t,
|
|
584
|
+
L: t,
|
|
585
|
+
m: t,
|
|
586
|
+
X: t,
|
|
587
|
+
S: t,
|
|
588
|
+
M: t
|
|
589
|
+
},
|
|
590
|
+
p: 0,
|
|
591
|
+
findDOMNode: null
|
|
592
|
+
}, m = Symbol.for("react.portal");
|
|
593
|
+
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || e(
|
|
594
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
595
|
+
), oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f, oe.createPortal = function(u, c) {
|
|
596
|
+
var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
597
|
+
if (!c || c.nodeType !== 1 && c.nodeType !== 9 && c.nodeType !== 11)
|
|
598
|
+
throw Error("Target container is not a DOM element.");
|
|
599
|
+
return r(u, c, null, d);
|
|
600
|
+
}, oe.flushSync = function(u) {
|
|
601
|
+
var c = a.T, d = f.p;
|
|
602
|
+
try {
|
|
603
|
+
if (a.T = null, f.p = 2, u)
|
|
604
|
+
return u();
|
|
605
|
+
} finally {
|
|
606
|
+
a.T = c, f.p = d, f.d.f() && e(
|
|
607
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
608
|
+
);
|
|
609
|
+
}
|
|
610
|
+
}, oe.preconnect = function(u, c) {
|
|
611
|
+
typeof u == "string" && u ? c != null && typeof c != "object" ? e(
|
|
612
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
613
|
+
s(c)
|
|
614
|
+
) : c != null && typeof c.crossOrigin != "string" && e(
|
|
615
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
616
|
+
i(c.crossOrigin)
|
|
617
|
+
) : e(
|
|
618
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
619
|
+
i(u)
|
|
620
|
+
), typeof u == "string" && (c ? (c = c.crossOrigin, c = typeof c == "string" ? c === "use-credentials" ? c : "" : void 0) : c = null, f.d.C(u, c));
|
|
621
|
+
}, oe.prefetchDNS = function(u) {
|
|
622
|
+
if (typeof u != "string" || !u)
|
|
623
|
+
e(
|
|
624
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
625
|
+
i(u)
|
|
626
|
+
);
|
|
627
|
+
else if (1 < arguments.length) {
|
|
628
|
+
var c = arguments[1];
|
|
629
|
+
typeof c == "object" && c.hasOwnProperty("crossOrigin") ? e(
|
|
630
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
631
|
+
s(c)
|
|
632
|
+
) : e(
|
|
633
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
634
|
+
s(c)
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
typeof u == "string" && f.d.D(u);
|
|
638
|
+
}, oe.preinit = function(u, c) {
|
|
639
|
+
if (typeof u == "string" && u ? c == null || typeof c != "object" ? e(
|
|
640
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
641
|
+
s(c)
|
|
642
|
+
) : c.as !== "style" && c.as !== "script" && e(
|
|
643
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
644
|
+
s(c.as)
|
|
645
|
+
) : e(
|
|
646
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
647
|
+
i(u)
|
|
648
|
+
), typeof u == "string" && c && typeof c.as == "string") {
|
|
649
|
+
var d = c.as, p = o(d, c.crossOrigin), g = typeof c.integrity == "string" ? c.integrity : void 0, v = typeof c.fetchPriority == "string" ? c.fetchPriority : void 0;
|
|
650
|
+
d === "style" ? f.d.S(
|
|
651
|
+
u,
|
|
652
|
+
typeof c.precedence == "string" ? c.precedence : void 0,
|
|
653
|
+
{
|
|
654
|
+
crossOrigin: p,
|
|
655
|
+
integrity: g,
|
|
656
|
+
fetchPriority: v
|
|
657
|
+
}
|
|
658
|
+
) : d === "script" && f.d.X(u, {
|
|
659
|
+
crossOrigin: p,
|
|
660
|
+
integrity: g,
|
|
661
|
+
fetchPriority: v,
|
|
662
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}, oe.preinitModule = function(u, c) {
|
|
666
|
+
var d = "";
|
|
667
|
+
if (typeof u == "string" && u || (d += " The `href` argument encountered was " + i(u) + "."), c !== void 0 && typeof c != "object" ? d += " The `options` argument encountered was " + i(c) + "." : c && "as" in c && c.as !== "script" && (d += " The `as` option encountered was " + s(c.as) + "."), d)
|
|
668
|
+
e(
|
|
669
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
670
|
+
d
|
|
671
|
+
);
|
|
672
|
+
else
|
|
673
|
+
switch (d = c && typeof c.as == "string" ? c.as : "script", d) {
|
|
674
|
+
case "script":
|
|
675
|
+
break;
|
|
676
|
+
default:
|
|
677
|
+
d = s(d), e(
|
|
678
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
679
|
+
d,
|
|
680
|
+
u
|
|
681
|
+
);
|
|
682
|
+
}
|
|
683
|
+
typeof u == "string" && (typeof c == "object" && c !== null ? (c.as == null || c.as === "script") && (d = o(
|
|
684
|
+
c.as,
|
|
685
|
+
c.crossOrigin
|
|
686
|
+
), f.d.M(u, {
|
|
687
|
+
crossOrigin: d,
|
|
688
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
|
|
689
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0
|
|
690
|
+
})) : c == null && f.d.M(u));
|
|
691
|
+
}, oe.preload = function(u, c) {
|
|
692
|
+
var d = "";
|
|
693
|
+
if (typeof u == "string" && u || (d += " The `href` argument encountered was " + i(u) + "."), c == null || typeof c != "object" ? d += " The `options` argument encountered was " + i(c) + "." : typeof c.as == "string" && c.as || (d += " The `as` option encountered was " + i(c.as) + "."), d && e(
|
|
694
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
695
|
+
d
|
|
696
|
+
), typeof u == "string" && typeof c == "object" && c !== null && typeof c.as == "string") {
|
|
697
|
+
d = c.as;
|
|
698
|
+
var p = o(
|
|
699
|
+
d,
|
|
700
|
+
c.crossOrigin
|
|
701
|
+
);
|
|
702
|
+
f.d.L(u, d, {
|
|
703
|
+
crossOrigin: p,
|
|
704
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
|
|
705
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0,
|
|
706
|
+
type: typeof c.type == "string" ? c.type : void 0,
|
|
707
|
+
fetchPriority: typeof c.fetchPriority == "string" ? c.fetchPriority : void 0,
|
|
708
|
+
referrerPolicy: typeof c.referrerPolicy == "string" ? c.referrerPolicy : void 0,
|
|
709
|
+
imageSrcSet: typeof c.imageSrcSet == "string" ? c.imageSrcSet : void 0,
|
|
710
|
+
imageSizes: typeof c.imageSizes == "string" ? c.imageSizes : void 0,
|
|
711
|
+
media: typeof c.media == "string" ? c.media : void 0
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}, oe.preloadModule = function(u, c) {
|
|
715
|
+
var d = "";
|
|
716
|
+
typeof u == "string" && u || (d += " The `href` argument encountered was " + i(u) + "."), c !== void 0 && typeof c != "object" ? d += " The `options` argument encountered was " + i(c) + "." : c && "as" in c && typeof c.as != "string" && (d += " The `as` option encountered was " + i(c.as) + "."), d && e(
|
|
717
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
718
|
+
d
|
|
719
|
+
), typeof u == "string" && (c ? (d = o(
|
|
720
|
+
c.as,
|
|
721
|
+
c.crossOrigin
|
|
722
|
+
), f.d.m(u, {
|
|
723
|
+
as: typeof c.as == "string" && c.as !== "script" ? c.as : void 0,
|
|
724
|
+
crossOrigin: d,
|
|
725
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0
|
|
726
|
+
})) : f.d.m(u));
|
|
727
|
+
}, oe.requestFormReset = function(u) {
|
|
728
|
+
f.d.r(u);
|
|
729
|
+
}, oe.unstable_batchedUpdates = function(u, c) {
|
|
730
|
+
return u(c);
|
|
731
|
+
}, oe.useFormState = function(u, c, d) {
|
|
732
|
+
return l().useFormState(u, c, d);
|
|
733
|
+
}, oe.useFormStatus = function() {
|
|
734
|
+
return l().useHostTransitionStatus();
|
|
735
|
+
}, oe.version = "19.0.0-rc-fb9a90fa48-20240614", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
736
|
+
}()), oe;
|
|
737
|
+
}
|
|
738
|
+
function Tr() {
|
|
739
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
740
|
+
if (process.env.NODE_ENV !== "production")
|
|
741
|
+
throw new Error("^_^");
|
|
742
|
+
try {
|
|
743
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tr);
|
|
744
|
+
} catch (e) {
|
|
745
|
+
console.error(e);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
process.env.NODE_ENV === "production" ? (Tr(), dn.exports = ds()) : dn.exports = ps();
|
|
750
|
+
var Gt = dn.exports;
|
|
751
|
+
const ms = "aHwKpW_bk-form", Un = { "bk-form": ms }, Sr = b.createContext(null), Or = () => {
|
|
752
|
+
const e = b.use(Sr);
|
|
753
|
+
if (e === null)
|
|
754
|
+
throw new Error("Missing FormContext provider");
|
|
755
|
+
return e;
|
|
756
|
+
}, Dl = (e) => {
|
|
757
|
+
const { unstyled: t = !1, nestable: n, children: r, className: o, ...i } = e, s = b.useId(), [l, a] = b.useState(null), f = b.useMemo(() => ({ formId: s }), [s]), m = ({ children: u }) => /* @__PURE__ */ y(
|
|
758
|
+
"form",
|
|
759
|
+
{
|
|
760
|
+
method: typeof i.action == "function" ? void 0 : "post",
|
|
761
|
+
...i,
|
|
762
|
+
id: s,
|
|
763
|
+
onSubmit: (c) => {
|
|
764
|
+
var d;
|
|
765
|
+
c.preventDefault(), (d = i.onSubmit) == null || d.call(i, c), b.startTransition(async () => {
|
|
766
|
+
if (typeof i.action == "function") {
|
|
767
|
+
const p = new FormData(c.target);
|
|
768
|
+
await i.action(p);
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
},
|
|
772
|
+
...n ? { hidden: !0 } : {
|
|
773
|
+
className: E({
|
|
774
|
+
bk: !0,
|
|
775
|
+
[Un["bk-form"]]: !t
|
|
776
|
+
}, o)
|
|
777
|
+
},
|
|
778
|
+
children: /* @__PURE__ */ y(Sr.Provider, { value: f, children: u })
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
return n ? /* @__PURE__ */ y(
|
|
782
|
+
"div",
|
|
783
|
+
{
|
|
784
|
+
ref: a,
|
|
785
|
+
className: E({
|
|
786
|
+
bk: !0,
|
|
787
|
+
[Un["bk-form"]]: !t
|
|
788
|
+
}, o),
|
|
789
|
+
children: l && m({ children: Gt.createPortal(r, l) })
|
|
790
|
+
}
|
|
791
|
+
) : m({ children: r });
|
|
792
|
+
};
|
|
793
|
+
const Pl = (e) => {
|
|
794
|
+
const {
|
|
795
|
+
onPress: t,
|
|
796
|
+
asyncTimeout: n = 3e4,
|
|
797
|
+
...r
|
|
798
|
+
} = e, o = Or(), i = Gt.useFormStatus(), [s, l] = b.useTransition(), a = s || i.pending, f = !r.disabled && !r.nonactive && !a, m = !f;
|
|
799
|
+
r.nonactive;
|
|
800
|
+
const u = () => {
|
|
801
|
+
typeof t == "function" && l(async () => {
|
|
802
|
+
await Promise.race([t(), kr(n)]);
|
|
803
|
+
});
|
|
804
|
+
}, c = b.useCallback(async (p) => {
|
|
805
|
+
var g;
|
|
806
|
+
(g = e.onClick) == null || g.call(e, p), f && typeof t == "function" && (p.preventDefault(), u());
|
|
807
|
+
}, [e.onClick, f, t, u]), d = () => r.children ? r.children : /* @__PURE__ */ V(Ee, { children: [
|
|
808
|
+
a && /* @__PURE__ */ y(vr, { className: "icon", inline: !0 }),
|
|
809
|
+
r.label ?? "Submit"
|
|
810
|
+
] });
|
|
811
|
+
return /* @__PURE__ */ y(
|
|
812
|
+
de,
|
|
813
|
+
{
|
|
814
|
+
variant: "primary",
|
|
815
|
+
form: o.formId,
|
|
816
|
+
...r,
|
|
817
|
+
type: wr,
|
|
818
|
+
disabled: m,
|
|
819
|
+
onClick: c,
|
|
820
|
+
children: d()
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
}, bs = "jRLY5G_bk-checkbox", gs = "jRLY5G_pseudo-focused", _s = { "bk-checkbox": bs, "pseudo-focused": gs }, Ll = (e) => {
|
|
824
|
+
const {
|
|
825
|
+
unstyled: t = !1,
|
|
826
|
+
indeterminate: n = !1,
|
|
827
|
+
...r
|
|
828
|
+
} = e, o = b.useRef(null);
|
|
829
|
+
return b.useEffect(() => {
|
|
830
|
+
o != null && o.current && (n && (o.current.checked = !1), o.current.indeterminate = n);
|
|
831
|
+
}, [n]), /* @__PURE__ */ y(
|
|
832
|
+
"input",
|
|
833
|
+
{
|
|
834
|
+
type: "checkbox",
|
|
835
|
+
ref: o,
|
|
836
|
+
...r,
|
|
837
|
+
className: E(
|
|
838
|
+
"bk",
|
|
839
|
+
{ [_s["bk-checkbox"]]: !t },
|
|
840
|
+
r.className
|
|
841
|
+
)
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
}, hs = "Is1cYa_bk-input", ks = { "bk-input": hs }, Cr = ({ unstyled: e = !1, type: t = "text", ...n }) => {
|
|
845
|
+
if (t === "button" || t === "submit" || t === "image" || t === "reset")
|
|
846
|
+
throw new Error(`Input: unsupported type '${t}'.`);
|
|
847
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
848
|
+
/* @__PURE__ */ y(
|
|
849
|
+
"input",
|
|
850
|
+
{
|
|
851
|
+
...n,
|
|
852
|
+
type: t,
|
|
853
|
+
className: E({
|
|
854
|
+
bk: !0,
|
|
855
|
+
[ks["bk-input"]]: !e
|
|
856
|
+
}, n.className)
|
|
857
|
+
}
|
|
858
|
+
),
|
|
859
|
+
/* @__PURE__ */ y(ie, { icon: "caret-down" })
|
|
860
|
+
] });
|
|
861
|
+
}, ys = "tcQtDq_bk-segmented-control", vs = "tcQtDq_bk-segmented-control--disabled", ws = "tcQtDq_bk-segmented-control__item", xs = "tcQtDq_bk-segmented-control__toggle", wt = { "bk-segmented-control": ys, "bk-segmented-control--disabled": vs, "bk-segmented-control__item": ws, "bk-segmented-control__toggle": xs }, Fl = (e) => {
|
|
862
|
+
const {
|
|
863
|
+
unstyled: t = !1,
|
|
864
|
+
options: n = [],
|
|
865
|
+
defaultValue: r,
|
|
866
|
+
disabled: o = !1,
|
|
867
|
+
onChange: i,
|
|
868
|
+
...s
|
|
869
|
+
} = e, l = b.useMemo(() => n.map((c) => typeof c != "object" || c === null ? {
|
|
870
|
+
label: c,
|
|
871
|
+
value: c
|
|
872
|
+
} : c), [n]), a = () => {
|
|
873
|
+
var c;
|
|
874
|
+
return r && l.some((d) => d.value === r) ? r : (c = l[0]) == null ? void 0 : c.value;
|
|
875
|
+
}, [f, m] = b.useState(a()), u = (c) => {
|
|
876
|
+
o || (m(c), i == null || i(c));
|
|
877
|
+
};
|
|
878
|
+
return /* @__PURE__ */ y(
|
|
879
|
+
"ul",
|
|
880
|
+
{
|
|
881
|
+
...s,
|
|
882
|
+
role: "tablist",
|
|
883
|
+
className: E({
|
|
884
|
+
bk: !0,
|
|
885
|
+
[wt["bk-segmented-control"]]: !t,
|
|
886
|
+
[wt["bk-segmented-control--disabled"]]: o
|
|
887
|
+
}, s.className),
|
|
888
|
+
children: l.map(
|
|
889
|
+
(c, d) => /* @__PURE__ */ y("li", { className: wt["bk-segmented-control__item"], children: /* @__PURE__ */ y(
|
|
890
|
+
de,
|
|
891
|
+
{
|
|
892
|
+
role: "tab",
|
|
893
|
+
unstyled: !0,
|
|
894
|
+
className: E({
|
|
895
|
+
[wt["bk-segmented-control__toggle"]]: !0
|
|
896
|
+
}, c.className),
|
|
897
|
+
"aria-label": c.label,
|
|
898
|
+
label: c.label,
|
|
899
|
+
onClick: () => {
|
|
900
|
+
u(c.value);
|
|
901
|
+
},
|
|
902
|
+
"aria-checked": f === c.value ? "true" : "false"
|
|
903
|
+
}
|
|
904
|
+
) }, d)
|
|
905
|
+
)
|
|
906
|
+
}
|
|
907
|
+
);
|
|
908
|
+
}, Es = "SLHRla_bk-select", Rs = "SLHRla_bk-select__dropdown", Ts = "SLHRla_bk-select__option", pn = { "bk-select": Es, "bk-select__dropdown": Rs, "bk-select__option": Ts };
|
|
909
|
+
function Vt() {
|
|
910
|
+
return typeof window < "u";
|
|
911
|
+
}
|
|
912
|
+
function Je(e) {
|
|
913
|
+
return Nr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
914
|
+
}
|
|
915
|
+
function ue(e) {
|
|
916
|
+
var t;
|
|
917
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
918
|
+
}
|
|
919
|
+
function ve(e) {
|
|
920
|
+
var t;
|
|
921
|
+
return (t = (Nr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
922
|
+
}
|
|
923
|
+
function Nr(e) {
|
|
924
|
+
return Vt() ? e instanceof Node || e instanceof ue(e).Node : !1;
|
|
925
|
+
}
|
|
926
|
+
function W(e) {
|
|
927
|
+
return Vt() ? e instanceof Element || e instanceof ue(e).Element : !1;
|
|
928
|
+
}
|
|
929
|
+
function ae(e) {
|
|
930
|
+
return Vt() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
|
|
931
|
+
}
|
|
932
|
+
function mn(e) {
|
|
933
|
+
return !Vt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ue(e).ShadowRoot;
|
|
934
|
+
}
|
|
935
|
+
function pt(e) {
|
|
936
|
+
const {
|
|
937
|
+
overflow: t,
|
|
938
|
+
overflowX: n,
|
|
939
|
+
overflowY: r,
|
|
940
|
+
display: o
|
|
941
|
+
} = me(e);
|
|
942
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
943
|
+
}
|
|
944
|
+
function Ss(e) {
|
|
945
|
+
return ["table", "td", "th"].includes(Je(e));
|
|
946
|
+
}
|
|
947
|
+
function qt(e) {
|
|
948
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
949
|
+
try {
|
|
950
|
+
return e.matches(t);
|
|
951
|
+
} catch {
|
|
952
|
+
return !1;
|
|
953
|
+
}
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
function Tn(e) {
|
|
957
|
+
const t = Sn(), n = W(e) ? me(e) : e;
|
|
958
|
+
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
959
|
+
}
|
|
960
|
+
function Os(e) {
|
|
961
|
+
let t = Re(e);
|
|
962
|
+
for (; ae(t) && !Ae(t); ) {
|
|
963
|
+
if (Tn(t))
|
|
964
|
+
return t;
|
|
965
|
+
if (qt(t))
|
|
966
|
+
return null;
|
|
967
|
+
t = Re(t);
|
|
968
|
+
}
|
|
969
|
+
return null;
|
|
970
|
+
}
|
|
971
|
+
function Sn() {
|
|
972
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
973
|
+
}
|
|
974
|
+
function Ae(e) {
|
|
975
|
+
return ["html", "body", "#document"].includes(Je(e));
|
|
976
|
+
}
|
|
977
|
+
function me(e) {
|
|
978
|
+
return ue(e).getComputedStyle(e);
|
|
979
|
+
}
|
|
980
|
+
function Kt(e) {
|
|
981
|
+
return W(e) ? {
|
|
982
|
+
scrollLeft: e.scrollLeft,
|
|
983
|
+
scrollTop: e.scrollTop
|
|
984
|
+
} : {
|
|
985
|
+
scrollLeft: e.scrollX,
|
|
986
|
+
scrollTop: e.scrollY
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
function Re(e) {
|
|
990
|
+
if (Je(e) === "html")
|
|
991
|
+
return e;
|
|
992
|
+
const t = (
|
|
993
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
994
|
+
e.assignedSlot || // DOM Element detected.
|
|
995
|
+
e.parentNode || // ShadowRoot detected.
|
|
996
|
+
mn(e) && e.host || // Fallback.
|
|
997
|
+
ve(e)
|
|
998
|
+
);
|
|
999
|
+
return mn(t) ? t.host : t;
|
|
1000
|
+
}
|
|
1001
|
+
function Ir(e) {
|
|
1002
|
+
const t = Re(e);
|
|
1003
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && pt(t) ? t : Ir(t);
|
|
1004
|
+
}
|
|
1005
|
+
function Ie(e, t, n) {
|
|
1006
|
+
var r;
|
|
1007
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1008
|
+
const o = Ir(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ue(o);
|
|
1009
|
+
if (i) {
|
|
1010
|
+
const l = bn(s);
|
|
1011
|
+
return t.concat(s, s.visualViewport || [], pt(o) ? o : [], l && n ? Ie(l) : []);
|
|
1012
|
+
}
|
|
1013
|
+
return t.concat(o, Ie(o, [], n));
|
|
1014
|
+
}
|
|
1015
|
+
function bn(e) {
|
|
1016
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1017
|
+
}
|
|
1018
|
+
function Mt(e) {
|
|
1019
|
+
let t = e.activeElement;
|
|
1020
|
+
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
1021
|
+
var n;
|
|
1022
|
+
t = t.shadowRoot.activeElement;
|
|
1023
|
+
}
|
|
1024
|
+
return t;
|
|
1025
|
+
}
|
|
1026
|
+
function ze(e, t) {
|
|
1027
|
+
if (!e || !t)
|
|
1028
|
+
return !1;
|
|
1029
|
+
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
1030
|
+
if (e.contains(t))
|
|
1031
|
+
return !0;
|
|
1032
|
+
if (n && mn(n)) {
|
|
1033
|
+
let r = t;
|
|
1034
|
+
for (; r; ) {
|
|
1035
|
+
if (e === r)
|
|
1036
|
+
return !0;
|
|
1037
|
+
r = r.parentNode || r.host;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return !1;
|
|
1041
|
+
}
|
|
1042
|
+
function Ar() {
|
|
1043
|
+
const e = navigator.userAgentData;
|
|
1044
|
+
return e != null && e.platform ? e.platform : navigator.platform;
|
|
1045
|
+
}
|
|
1046
|
+
function Mr() {
|
|
1047
|
+
const e = navigator.userAgentData;
|
|
1048
|
+
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
1049
|
+
let {
|
|
1050
|
+
brand: n,
|
|
1051
|
+
version: r
|
|
1052
|
+
} = t;
|
|
1053
|
+
return n + "/" + r;
|
|
1054
|
+
}).join(" ") : navigator.userAgent;
|
|
1055
|
+
}
|
|
1056
|
+
function Cs(e) {
|
|
1057
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : gn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1058
|
+
}
|
|
1059
|
+
function Dr(e) {
|
|
1060
|
+
return Ns() ? !1 : !gn() && e.width === 0 && e.height === 0 || gn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
1061
|
+
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
1062
|
+
}
|
|
1063
|
+
function Pr() {
|
|
1064
|
+
return /apple/i.test(navigator.vendor);
|
|
1065
|
+
}
|
|
1066
|
+
function gn() {
|
|
1067
|
+
const e = /android/i;
|
|
1068
|
+
return e.test(Ar()) || e.test(Mr());
|
|
1069
|
+
}
|
|
1070
|
+
function Lr() {
|
|
1071
|
+
return Ar().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
1072
|
+
}
|
|
1073
|
+
function Ns() {
|
|
1074
|
+
return Mr().includes("jsdom/");
|
|
1075
|
+
}
|
|
1076
|
+
function ct(e, t) {
|
|
1077
|
+
const n = ["mouse", "pen"];
|
|
1078
|
+
return t || n.push("", void 0), n.includes(e);
|
|
1079
|
+
}
|
|
1080
|
+
function Is(e) {
|
|
1081
|
+
return "nativeEvent" in e;
|
|
1082
|
+
}
|
|
1083
|
+
function As(e) {
|
|
1084
|
+
return e.matches("html,body");
|
|
1085
|
+
}
|
|
1086
|
+
function Ce(e) {
|
|
1087
|
+
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
1088
|
+
}
|
|
1089
|
+
function Qt(e, t) {
|
|
1090
|
+
if (t == null)
|
|
1091
|
+
return !1;
|
|
1092
|
+
if ("composedPath" in e)
|
|
1093
|
+
return e.composedPath().includes(t);
|
|
1094
|
+
const n = e;
|
|
1095
|
+
return n.target != null && t.contains(n.target);
|
|
1096
|
+
}
|
|
1097
|
+
function qe(e) {
|
|
1098
|
+
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
1099
|
+
}
|
|
1100
|
+
const Ms = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
1101
|
+
function On(e) {
|
|
1102
|
+
return ae(e) && e.matches(Ms);
|
|
1103
|
+
}
|
|
1104
|
+
function pe(e) {
|
|
1105
|
+
e.preventDefault(), e.stopPropagation();
|
|
1106
|
+
}
|
|
1107
|
+
function Ds(e) {
|
|
1108
|
+
return e ? e.getAttribute("role") === "combobox" && On(e) : !1;
|
|
1109
|
+
}
|
|
1110
|
+
const Ps = ["top", "right", "bottom", "left"], Ye = Math.min, Be = Math.max, Dt = Math.round, Ke = Math.floor, Me = (e) => ({
|
|
1111
|
+
x: e,
|
|
1112
|
+
y: e
|
|
1113
|
+
}), Ls = {
|
|
1114
|
+
left: "right",
|
|
1115
|
+
right: "left",
|
|
1116
|
+
bottom: "top",
|
|
1117
|
+
top: "bottom"
|
|
1118
|
+
}, Fs = {
|
|
1119
|
+
start: "end",
|
|
1120
|
+
end: "start"
|
|
1121
|
+
};
|
|
1122
|
+
function _n(e, t, n) {
|
|
1123
|
+
return Be(e, Ye(t, n));
|
|
1124
|
+
}
|
|
1125
|
+
function De(e, t) {
|
|
1126
|
+
return typeof e == "function" ? e(t) : e;
|
|
1127
|
+
}
|
|
1128
|
+
function Pe(e) {
|
|
1129
|
+
return e.split("-")[0];
|
|
1130
|
+
}
|
|
1131
|
+
function mt(e) {
|
|
1132
|
+
return e.split("-")[1];
|
|
1133
|
+
}
|
|
1134
|
+
function Cn(e) {
|
|
1135
|
+
return e === "x" ? "y" : "x";
|
|
1136
|
+
}
|
|
1137
|
+
function Nn(e) {
|
|
1138
|
+
return e === "y" ? "height" : "width";
|
|
1139
|
+
}
|
|
1140
|
+
function He(e) {
|
|
1141
|
+
return ["top", "bottom"].includes(Pe(e)) ? "y" : "x";
|
|
1142
|
+
}
|
|
1143
|
+
function In(e) {
|
|
1144
|
+
return Cn(He(e));
|
|
1145
|
+
}
|
|
1146
|
+
function Bs(e, t, n) {
|
|
1147
|
+
n === void 0 && (n = !1);
|
|
1148
|
+
const r = mt(e), o = In(e), i = Nn(o);
|
|
1149
|
+
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1150
|
+
return t.reference[i] > t.floating[i] && (s = Pt(s)), [s, Pt(s)];
|
|
1151
|
+
}
|
|
1152
|
+
function $s(e) {
|
|
1153
|
+
const t = Pt(e);
|
|
1154
|
+
return [hn(e), t, hn(t)];
|
|
1155
|
+
}
|
|
1156
|
+
function hn(e) {
|
|
1157
|
+
return e.replace(/start|end/g, (t) => Fs[t]);
|
|
1158
|
+
}
|
|
1159
|
+
function Hs(e, t, n) {
|
|
1160
|
+
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1161
|
+
switch (e) {
|
|
1162
|
+
case "top":
|
|
1163
|
+
case "bottom":
|
|
1164
|
+
return n ? t ? o : r : t ? r : o;
|
|
1165
|
+
case "left":
|
|
1166
|
+
case "right":
|
|
1167
|
+
return t ? i : s;
|
|
1168
|
+
default:
|
|
1169
|
+
return [];
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
function Gs(e, t, n, r) {
|
|
1173
|
+
const o = mt(e);
|
|
1174
|
+
let i = Hs(Pe(e), n === "start", r);
|
|
1175
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(hn)))), i;
|
|
1176
|
+
}
|
|
1177
|
+
function Pt(e) {
|
|
1178
|
+
return e.replace(/left|right|bottom|top/g, (t) => Ls[t]);
|
|
1179
|
+
}
|
|
1180
|
+
function Vs(e) {
|
|
1181
|
+
return {
|
|
1182
|
+
top: 0,
|
|
1183
|
+
right: 0,
|
|
1184
|
+
bottom: 0,
|
|
1185
|
+
left: 0,
|
|
1186
|
+
...e
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
function Fr(e) {
|
|
1190
|
+
return typeof e != "number" ? Vs(e) : {
|
|
1191
|
+
top: e,
|
|
1192
|
+
right: e,
|
|
1193
|
+
bottom: e,
|
|
1194
|
+
left: e
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
function Lt(e) {
|
|
1198
|
+
const {
|
|
1199
|
+
x: t,
|
|
1200
|
+
y: n,
|
|
1201
|
+
width: r,
|
|
1202
|
+
height: o
|
|
1203
|
+
} = e;
|
|
1204
|
+
return {
|
|
1205
|
+
width: r,
|
|
1206
|
+
height: o,
|
|
1207
|
+
top: n,
|
|
1208
|
+
left: t,
|
|
1209
|
+
right: t + r,
|
|
1210
|
+
bottom: n + o,
|
|
1211
|
+
x: t,
|
|
1212
|
+
y: n
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
function zn(e, t, n) {
|
|
1216
|
+
let {
|
|
1217
|
+
reference: r,
|
|
1218
|
+
floating: o
|
|
1219
|
+
} = e;
|
|
1220
|
+
const i = He(t), s = In(t), l = Nn(s), a = Pe(t), f = i === "y", m = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, c = r[l] / 2 - o[l] / 2;
|
|
1221
|
+
let d;
|
|
1222
|
+
switch (a) {
|
|
1223
|
+
case "top":
|
|
1224
|
+
d = {
|
|
1225
|
+
x: m,
|
|
1226
|
+
y: r.y - o.height
|
|
1227
|
+
};
|
|
1228
|
+
break;
|
|
1229
|
+
case "bottom":
|
|
1230
|
+
d = {
|
|
1231
|
+
x: m,
|
|
1232
|
+
y: r.y + r.height
|
|
1233
|
+
};
|
|
1234
|
+
break;
|
|
1235
|
+
case "right":
|
|
1236
|
+
d = {
|
|
1237
|
+
x: r.x + r.width,
|
|
1238
|
+
y: u
|
|
1239
|
+
};
|
|
1240
|
+
break;
|
|
1241
|
+
case "left":
|
|
1242
|
+
d = {
|
|
1243
|
+
x: r.x - o.width,
|
|
1244
|
+
y: u
|
|
1245
|
+
};
|
|
1246
|
+
break;
|
|
1247
|
+
default:
|
|
1248
|
+
d = {
|
|
1249
|
+
x: r.x,
|
|
1250
|
+
y: r.y
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
switch (mt(t)) {
|
|
1254
|
+
case "start":
|
|
1255
|
+
d[s] -= c * (n && f ? -1 : 1);
|
|
1256
|
+
break;
|
|
1257
|
+
case "end":
|
|
1258
|
+
d[s] += c * (n && f ? -1 : 1);
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
return d;
|
|
1262
|
+
}
|
|
1263
|
+
const qs = async (e, t, n) => {
|
|
1264
|
+
const {
|
|
1265
|
+
placement: r = "bottom",
|
|
1266
|
+
strategy: o = "absolute",
|
|
1267
|
+
middleware: i = [],
|
|
1268
|
+
platform: s
|
|
1269
|
+
} = n, l = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1270
|
+
let f = await s.getElementRects({
|
|
1271
|
+
reference: e,
|
|
1272
|
+
floating: t,
|
|
1273
|
+
strategy: o
|
|
1274
|
+
}), {
|
|
1275
|
+
x: m,
|
|
1276
|
+
y: u
|
|
1277
|
+
} = zn(f, r, a), c = r, d = {}, p = 0;
|
|
1278
|
+
for (let g = 0; g < l.length; g++) {
|
|
1279
|
+
const {
|
|
1280
|
+
name: v,
|
|
1281
|
+
fn: h
|
|
1282
|
+
} = l[g], {
|
|
1283
|
+
x: k,
|
|
1284
|
+
y: _,
|
|
1285
|
+
data: w,
|
|
1286
|
+
reset: N
|
|
1287
|
+
} = await h({
|
|
1288
|
+
x: m,
|
|
1289
|
+
y: u,
|
|
1290
|
+
initialPlacement: r,
|
|
1291
|
+
placement: c,
|
|
1292
|
+
strategy: o,
|
|
1293
|
+
middlewareData: d,
|
|
1294
|
+
rects: f,
|
|
1295
|
+
platform: s,
|
|
1296
|
+
elements: {
|
|
1297
|
+
reference: e,
|
|
1298
|
+
floating: t
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
m = k ?? m, u = _ ?? u, d = {
|
|
1302
|
+
...d,
|
|
1303
|
+
[v]: {
|
|
1304
|
+
...d[v],
|
|
1305
|
+
...w
|
|
1306
|
+
}
|
|
1307
|
+
}, N && p <= 50 && (p++, typeof N == "object" && (N.placement && (c = N.placement), N.rects && (f = N.rects === !0 ? await s.getElementRects({
|
|
1308
|
+
reference: e,
|
|
1309
|
+
floating: t,
|
|
1310
|
+
strategy: o
|
|
1311
|
+
}) : N.rects), {
|
|
1312
|
+
x: m,
|
|
1313
|
+
y: u
|
|
1314
|
+
} = zn(f, c, a)), g = -1);
|
|
1315
|
+
}
|
|
1316
|
+
return {
|
|
1317
|
+
x: m,
|
|
1318
|
+
y: u,
|
|
1319
|
+
placement: c,
|
|
1320
|
+
strategy: o,
|
|
1321
|
+
middlewareData: d
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
async function Ft(e, t) {
|
|
1325
|
+
var n;
|
|
1326
|
+
t === void 0 && (t = {});
|
|
1327
|
+
const {
|
|
1328
|
+
x: r,
|
|
1329
|
+
y: o,
|
|
1330
|
+
platform: i,
|
|
1331
|
+
rects: s,
|
|
1332
|
+
elements: l,
|
|
1333
|
+
strategy: a
|
|
1334
|
+
} = e, {
|
|
1335
|
+
boundary: f = "clippingAncestors",
|
|
1336
|
+
rootBoundary: m = "viewport",
|
|
1337
|
+
elementContext: u = "floating",
|
|
1338
|
+
altBoundary: c = !1,
|
|
1339
|
+
padding: d = 0
|
|
1340
|
+
} = De(t, e), p = Fr(d), v = l[c ? u === "floating" ? "reference" : "floating" : u], h = Lt(await i.getClippingRect({
|
|
1341
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1342
|
+
boundary: f,
|
|
1343
|
+
rootBoundary: m,
|
|
1344
|
+
strategy: a
|
|
1345
|
+
})), k = u === "floating" ? {
|
|
1346
|
+
x: r,
|
|
1347
|
+
y: o,
|
|
1348
|
+
width: s.floating.width,
|
|
1349
|
+
height: s.floating.height
|
|
1350
|
+
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), w = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1351
|
+
x: 1,
|
|
1352
|
+
y: 1
|
|
1353
|
+
} : {
|
|
1354
|
+
x: 1,
|
|
1355
|
+
y: 1
|
|
1356
|
+
}, N = Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1357
|
+
elements: l,
|
|
1358
|
+
rect: k,
|
|
1359
|
+
offsetParent: _,
|
|
1360
|
+
strategy: a
|
|
1361
|
+
}) : k);
|
|
1362
|
+
return {
|
|
1363
|
+
top: (h.top - N.top + p.top) / w.y,
|
|
1364
|
+
bottom: (N.bottom - h.bottom + p.bottom) / w.y,
|
|
1365
|
+
left: (h.left - N.left + p.left) / w.x,
|
|
1366
|
+
right: (N.right - h.right + p.right) / w.x
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
const Ks = (e) => ({
|
|
1370
|
+
name: "arrow",
|
|
1371
|
+
options: e,
|
|
1372
|
+
async fn(t) {
|
|
1373
|
+
const {
|
|
1374
|
+
x: n,
|
|
1375
|
+
y: r,
|
|
1376
|
+
placement: o,
|
|
1377
|
+
rects: i,
|
|
1378
|
+
platform: s,
|
|
1379
|
+
elements: l,
|
|
1380
|
+
middlewareData: a
|
|
1381
|
+
} = t, {
|
|
1382
|
+
element: f,
|
|
1383
|
+
padding: m = 0
|
|
1384
|
+
} = De(e, t) || {};
|
|
1385
|
+
if (f == null)
|
|
1386
|
+
return {};
|
|
1387
|
+
const u = Fr(m), c = {
|
|
1388
|
+
x: n,
|
|
1389
|
+
y: r
|
|
1390
|
+
}, d = In(o), p = Nn(d), g = await s.getDimensions(f), v = d === "y", h = v ? "top" : "left", k = v ? "bottom" : "right", _ = v ? "clientHeight" : "clientWidth", w = i.reference[p] + i.reference[d] - c[d] - i.floating[p], N = c[d] - i.reference[d], I = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
1391
|
+
let A = I ? I[_] : 0;
|
|
1392
|
+
(!A || !await (s.isElement == null ? void 0 : s.isElement(I))) && (A = l.floating[_] || i.floating[p]);
|
|
1393
|
+
const S = w / 2 - N / 2, P = A / 2 - g[p] / 2 - 1, B = Ye(u[h], P), G = Ye(u[k], P), L = B, F = A - g[p] - G, O = A / 2 - g[p] / 2 + S, x = _n(L, O, F), R = !a.arrow && mt(o) != null && O !== x && i.reference[p] / 2 - (O < L ? B : G) - g[p] / 2 < 0, C = R ? O < L ? O - L : O - F : 0;
|
|
1394
|
+
return {
|
|
1395
|
+
[d]: c[d] + C,
|
|
1396
|
+
data: {
|
|
1397
|
+
[d]: x,
|
|
1398
|
+
centerOffset: O - x - C,
|
|
1399
|
+
...R && {
|
|
1400
|
+
alignmentOffset: C
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
reset: R
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
}), Ws = function(e) {
|
|
1407
|
+
return e === void 0 && (e = {}), {
|
|
1408
|
+
name: "flip",
|
|
1409
|
+
options: e,
|
|
1410
|
+
async fn(t) {
|
|
1411
|
+
var n, r;
|
|
1412
|
+
const {
|
|
1413
|
+
placement: o,
|
|
1414
|
+
middlewareData: i,
|
|
1415
|
+
rects: s,
|
|
1416
|
+
initialPlacement: l,
|
|
1417
|
+
platform: a,
|
|
1418
|
+
elements: f
|
|
1419
|
+
} = t, {
|
|
1420
|
+
mainAxis: m = !0,
|
|
1421
|
+
crossAxis: u = !0,
|
|
1422
|
+
fallbackPlacements: c,
|
|
1423
|
+
fallbackStrategy: d = "bestFit",
|
|
1424
|
+
fallbackAxisSideDirection: p = "none",
|
|
1425
|
+
flipAlignment: g = !0,
|
|
1426
|
+
...v
|
|
1427
|
+
} = De(e, t);
|
|
1428
|
+
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1429
|
+
return {};
|
|
1430
|
+
const h = Pe(o), k = He(l), _ = Pe(l) === l, w = await (a.isRTL == null ? void 0 : a.isRTL(f.floating)), N = c || (_ || !g ? [Pt(l)] : $s(l)), I = p !== "none";
|
|
1431
|
+
!c && I && N.push(...Gs(l, g, p, w));
|
|
1432
|
+
const A = [l, ...N], S = await Ft(t, v), P = [];
|
|
1433
|
+
let B = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1434
|
+
if (m && P.push(S[h]), u) {
|
|
1435
|
+
const O = Bs(o, s, w);
|
|
1436
|
+
P.push(S[O[0]], S[O[1]]);
|
|
1437
|
+
}
|
|
1438
|
+
if (B = [...B, {
|
|
1439
|
+
placement: o,
|
|
1440
|
+
overflows: P
|
|
1441
|
+
}], !P.every((O) => O <= 0)) {
|
|
1442
|
+
var G, L;
|
|
1443
|
+
const O = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, x = A[O];
|
|
1444
|
+
if (x)
|
|
1445
|
+
return {
|
|
1446
|
+
data: {
|
|
1447
|
+
index: O,
|
|
1448
|
+
overflows: B
|
|
1449
|
+
},
|
|
1450
|
+
reset: {
|
|
1451
|
+
placement: x
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
let R = (L = B.filter((C) => C.overflows[0] <= 0).sort((C, T) => C.overflows[1] - T.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
1455
|
+
if (!R)
|
|
1456
|
+
switch (d) {
|
|
1457
|
+
case "bestFit": {
|
|
1458
|
+
var F;
|
|
1459
|
+
const C = (F = B.filter((T) => {
|
|
1460
|
+
if (I) {
|
|
1461
|
+
const H = He(T.placement);
|
|
1462
|
+
return H === k || // Create a bias to the `y` side axis due to horizontal
|
|
1463
|
+
// reading directions favoring greater width.
|
|
1464
|
+
H === "y";
|
|
1465
|
+
}
|
|
1466
|
+
return !0;
|
|
1467
|
+
}).map((T) => [T.placement, T.overflows.filter((H) => H > 0).reduce((H, M) => H + M, 0)]).sort((T, H) => T[1] - H[1])[0]) == null ? void 0 : F[0];
|
|
1468
|
+
C && (R = C);
|
|
1469
|
+
break;
|
|
1470
|
+
}
|
|
1471
|
+
case "initialPlacement":
|
|
1472
|
+
R = l;
|
|
1473
|
+
break;
|
|
1474
|
+
}
|
|
1475
|
+
if (o !== R)
|
|
1476
|
+
return {
|
|
1477
|
+
reset: {
|
|
1478
|
+
placement: R
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
return {};
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
function Yn(e, t) {
|
|
1487
|
+
return {
|
|
1488
|
+
top: e.top - t.height,
|
|
1489
|
+
right: e.right - t.width,
|
|
1490
|
+
bottom: e.bottom - t.height,
|
|
1491
|
+
left: e.left - t.width
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
function Xn(e) {
|
|
1495
|
+
return Ps.some((t) => e[t] >= 0);
|
|
1496
|
+
}
|
|
1497
|
+
const js = function(e) {
|
|
1498
|
+
return e === void 0 && (e = {}), {
|
|
1499
|
+
name: "hide",
|
|
1500
|
+
options: e,
|
|
1501
|
+
async fn(t) {
|
|
1502
|
+
const {
|
|
1503
|
+
rects: n
|
|
1504
|
+
} = t, {
|
|
1505
|
+
strategy: r = "referenceHidden",
|
|
1506
|
+
...o
|
|
1507
|
+
} = De(e, t);
|
|
1508
|
+
switch (r) {
|
|
1509
|
+
case "referenceHidden": {
|
|
1510
|
+
const i = await Ft(t, {
|
|
1511
|
+
...o,
|
|
1512
|
+
elementContext: "reference"
|
|
1513
|
+
}), s = Yn(i, n.reference);
|
|
1514
|
+
return {
|
|
1515
|
+
data: {
|
|
1516
|
+
referenceHiddenOffsets: s,
|
|
1517
|
+
referenceHidden: Xn(s)
|
|
1518
|
+
}
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
case "escaped": {
|
|
1522
|
+
const i = await Ft(t, {
|
|
1523
|
+
...o,
|
|
1524
|
+
altBoundary: !0
|
|
1525
|
+
}), s = Yn(i, n.floating);
|
|
1526
|
+
return {
|
|
1527
|
+
data: {
|
|
1528
|
+
escapedOffsets: s,
|
|
1529
|
+
escaped: Xn(s)
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
default:
|
|
1534
|
+
return {};
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
async function Us(e, t) {
|
|
1540
|
+
const {
|
|
1541
|
+
placement: n,
|
|
1542
|
+
platform: r,
|
|
1543
|
+
elements: o
|
|
1544
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Pe(n), l = mt(n), a = He(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, u = De(t, e);
|
|
1545
|
+
let {
|
|
1546
|
+
mainAxis: c,
|
|
1547
|
+
crossAxis: d,
|
|
1548
|
+
alignmentAxis: p
|
|
1549
|
+
} = typeof u == "number" ? {
|
|
1550
|
+
mainAxis: u,
|
|
1551
|
+
crossAxis: 0,
|
|
1552
|
+
alignmentAxis: null
|
|
1553
|
+
} : {
|
|
1554
|
+
mainAxis: u.mainAxis || 0,
|
|
1555
|
+
crossAxis: u.crossAxis || 0,
|
|
1556
|
+
alignmentAxis: u.alignmentAxis
|
|
1557
|
+
};
|
|
1558
|
+
return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), a ? {
|
|
1559
|
+
x: d * m,
|
|
1560
|
+
y: c * f
|
|
1561
|
+
} : {
|
|
1562
|
+
x: c * f,
|
|
1563
|
+
y: d * m
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
const zs = function(e) {
|
|
1567
|
+
return e === void 0 && (e = 0), {
|
|
1568
|
+
name: "offset",
|
|
1569
|
+
options: e,
|
|
1570
|
+
async fn(t) {
|
|
1571
|
+
var n, r;
|
|
1572
|
+
const {
|
|
1573
|
+
x: o,
|
|
1574
|
+
y: i,
|
|
1575
|
+
placement: s,
|
|
1576
|
+
middlewareData: l
|
|
1577
|
+
} = t, a = await Us(t, e);
|
|
1578
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
1579
|
+
x: o + a.x,
|
|
1580
|
+
y: i + a.y,
|
|
1581
|
+
data: {
|
|
1582
|
+
...a,
|
|
1583
|
+
placement: s
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
}, Ys = function(e) {
|
|
1589
|
+
return e === void 0 && (e = {}), {
|
|
1590
|
+
name: "shift",
|
|
1591
|
+
options: e,
|
|
1592
|
+
async fn(t) {
|
|
1593
|
+
const {
|
|
1594
|
+
x: n,
|
|
1595
|
+
y: r,
|
|
1596
|
+
placement: o
|
|
1597
|
+
} = t, {
|
|
1598
|
+
mainAxis: i = !0,
|
|
1599
|
+
crossAxis: s = !1,
|
|
1600
|
+
limiter: l = {
|
|
1601
|
+
fn: (v) => {
|
|
1602
|
+
let {
|
|
1603
|
+
x: h,
|
|
1604
|
+
y: k
|
|
1605
|
+
} = v;
|
|
1606
|
+
return {
|
|
1607
|
+
x: h,
|
|
1608
|
+
y: k
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
...a
|
|
1613
|
+
} = De(e, t), f = {
|
|
1614
|
+
x: n,
|
|
1615
|
+
y: r
|
|
1616
|
+
}, m = await Ft(t, a), u = He(Pe(o)), c = Cn(u);
|
|
1617
|
+
let d = f[c], p = f[u];
|
|
1618
|
+
if (i) {
|
|
1619
|
+
const v = c === "y" ? "top" : "left", h = c === "y" ? "bottom" : "right", k = d + m[v], _ = d - m[h];
|
|
1620
|
+
d = _n(k, d, _);
|
|
1621
|
+
}
|
|
1622
|
+
if (s) {
|
|
1623
|
+
const v = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", k = p + m[v], _ = p - m[h];
|
|
1624
|
+
p = _n(k, p, _);
|
|
1625
|
+
}
|
|
1626
|
+
const g = l.fn({
|
|
1627
|
+
...t,
|
|
1628
|
+
[c]: d,
|
|
1629
|
+
[u]: p
|
|
1630
|
+
});
|
|
1631
|
+
return {
|
|
1632
|
+
...g,
|
|
1633
|
+
data: {
|
|
1634
|
+
x: g.x - n,
|
|
1635
|
+
y: g.y - r,
|
|
1636
|
+
enabled: {
|
|
1637
|
+
[c]: i,
|
|
1638
|
+
[u]: s
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
};
|
|
1644
|
+
}, Xs = function(e) {
|
|
1645
|
+
return e === void 0 && (e = {}), {
|
|
1646
|
+
options: e,
|
|
1647
|
+
fn(t) {
|
|
1648
|
+
const {
|
|
1649
|
+
x: n,
|
|
1650
|
+
y: r,
|
|
1651
|
+
placement: o,
|
|
1652
|
+
rects: i,
|
|
1653
|
+
middlewareData: s
|
|
1654
|
+
} = t, {
|
|
1655
|
+
offset: l = 0,
|
|
1656
|
+
mainAxis: a = !0,
|
|
1657
|
+
crossAxis: f = !0
|
|
1658
|
+
} = De(e, t), m = {
|
|
1659
|
+
x: n,
|
|
1660
|
+
y: r
|
|
1661
|
+
}, u = He(o), c = Cn(u);
|
|
1662
|
+
let d = m[c], p = m[u];
|
|
1663
|
+
const g = De(l, t), v = typeof g == "number" ? {
|
|
1664
|
+
mainAxis: g,
|
|
1665
|
+
crossAxis: 0
|
|
1666
|
+
} : {
|
|
1667
|
+
mainAxis: 0,
|
|
1668
|
+
crossAxis: 0,
|
|
1669
|
+
...g
|
|
1670
|
+
};
|
|
1671
|
+
if (a) {
|
|
1672
|
+
const _ = c === "y" ? "height" : "width", w = i.reference[c] - i.floating[_] + v.mainAxis, N = i.reference[c] + i.reference[_] - v.mainAxis;
|
|
1673
|
+
d < w ? d = w : d > N && (d = N);
|
|
1674
|
+
}
|
|
1675
|
+
if (f) {
|
|
1676
|
+
var h, k;
|
|
1677
|
+
const _ = c === "y" ? "width" : "height", w = ["top", "left"].includes(Pe(o)), N = i.reference[u] - i.floating[_] + (w && ((h = s.offset) == null ? void 0 : h[u]) || 0) + (w ? 0 : v.crossAxis), I = i.reference[u] + i.reference[_] + (w ? 0 : ((k = s.offset) == null ? void 0 : k[u]) || 0) - (w ? v.crossAxis : 0);
|
|
1678
|
+
p < N ? p = N : p > I && (p = I);
|
|
1679
|
+
}
|
|
1680
|
+
return {
|
|
1681
|
+
[c]: d,
|
|
1682
|
+
[u]: p
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
function Br(e) {
|
|
1688
|
+
const t = me(e);
|
|
1689
|
+
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1690
|
+
const o = ae(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = Dt(n) !== i || Dt(r) !== s;
|
|
1691
|
+
return l && (n = i, r = s), {
|
|
1692
|
+
width: n,
|
|
1693
|
+
height: r,
|
|
1694
|
+
$: l
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function An(e) {
|
|
1698
|
+
return W(e) ? e : e.contextElement;
|
|
1699
|
+
}
|
|
1700
|
+
function je(e) {
|
|
1701
|
+
const t = An(e);
|
|
1702
|
+
if (!ae(t))
|
|
1703
|
+
return Me(1);
|
|
1704
|
+
const n = t.getBoundingClientRect(), {
|
|
1705
|
+
width: r,
|
|
1706
|
+
height: o,
|
|
1707
|
+
$: i
|
|
1708
|
+
} = Br(t);
|
|
1709
|
+
let s = (i ? Dt(n.width) : n.width) / r, l = (i ? Dt(n.height) : n.height) / o;
|
|
1710
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1711
|
+
x: s,
|
|
1712
|
+
y: l
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
const Js = /* @__PURE__ */ Me(0);
|
|
1716
|
+
function $r(e) {
|
|
1717
|
+
const t = ue(e);
|
|
1718
|
+
return !Sn() || !t.visualViewport ? Js : {
|
|
1719
|
+
x: t.visualViewport.offsetLeft,
|
|
1720
|
+
y: t.visualViewport.offsetTop
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
function Qs(e, t, n) {
|
|
1724
|
+
return t === void 0 && (t = !1), !n || t && n !== ue(e) ? !1 : t;
|
|
1725
|
+
}
|
|
1726
|
+
function Ge(e, t, n, r) {
|
|
1727
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1728
|
+
const o = e.getBoundingClientRect(), i = An(e);
|
|
1729
|
+
let s = Me(1);
|
|
1730
|
+
t && (r ? W(r) && (s = je(r)) : s = je(e));
|
|
1731
|
+
const l = Qs(i, n, r) ? $r(i) : Me(0);
|
|
1732
|
+
let a = (o.left + l.x) / s.x, f = (o.top + l.y) / s.y, m = o.width / s.x, u = o.height / s.y;
|
|
1733
|
+
if (i) {
|
|
1734
|
+
const c = ue(i), d = r && W(r) ? ue(r) : r;
|
|
1735
|
+
let p = c, g = bn(p);
|
|
1736
|
+
for (; g && r && d !== p; ) {
|
|
1737
|
+
const v = je(g), h = g.getBoundingClientRect(), k = me(g), _ = h.left + (g.clientLeft + parseFloat(k.paddingLeft)) * v.x, w = h.top + (g.clientTop + parseFloat(k.paddingTop)) * v.y;
|
|
1738
|
+
a *= v.x, f *= v.y, m *= v.x, u *= v.y, a += _, f += w, p = ue(g), g = bn(p);
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
return Lt({
|
|
1742
|
+
width: m,
|
|
1743
|
+
height: u,
|
|
1744
|
+
x: a,
|
|
1745
|
+
y: f
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
function Zs(e) {
|
|
1749
|
+
let {
|
|
1750
|
+
elements: t,
|
|
1751
|
+
rect: n,
|
|
1752
|
+
offsetParent: r,
|
|
1753
|
+
strategy: o
|
|
1754
|
+
} = e;
|
|
1755
|
+
const i = o === "fixed", s = ve(r), l = t ? qt(t.floating) : !1;
|
|
1756
|
+
if (r === s || l && i)
|
|
1757
|
+
return n;
|
|
1758
|
+
let a = {
|
|
1759
|
+
scrollLeft: 0,
|
|
1760
|
+
scrollTop: 0
|
|
1761
|
+
}, f = Me(1);
|
|
1762
|
+
const m = Me(0), u = ae(r);
|
|
1763
|
+
if ((u || !u && !i) && ((Je(r) !== "body" || pt(s)) && (a = Kt(r)), ae(r))) {
|
|
1764
|
+
const c = Ge(r);
|
|
1765
|
+
f = je(r), m.x = c.x + r.clientLeft, m.y = c.y + r.clientTop;
|
|
1766
|
+
}
|
|
1767
|
+
return {
|
|
1768
|
+
width: n.width * f.x,
|
|
1769
|
+
height: n.height * f.y,
|
|
1770
|
+
x: n.x * f.x - a.scrollLeft * f.x + m.x,
|
|
1771
|
+
y: n.y * f.y - a.scrollTop * f.y + m.y
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
function ei(e) {
|
|
1775
|
+
return Array.from(e.getClientRects());
|
|
1776
|
+
}
|
|
1777
|
+
function kn(e, t) {
|
|
1778
|
+
const n = Kt(e).scrollLeft;
|
|
1779
|
+
return t ? t.left + n : Ge(ve(e)).left + n;
|
|
1780
|
+
}
|
|
1781
|
+
function ti(e) {
|
|
1782
|
+
const t = ve(e), n = Kt(e), r = e.ownerDocument.body, o = Be(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Be(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1783
|
+
let s = -n.scrollLeft + kn(e);
|
|
1784
|
+
const l = -n.scrollTop;
|
|
1785
|
+
return me(r).direction === "rtl" && (s += Be(t.clientWidth, r.clientWidth) - o), {
|
|
1786
|
+
width: o,
|
|
1787
|
+
height: i,
|
|
1788
|
+
x: s,
|
|
1789
|
+
y: l
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
function ni(e, t) {
|
|
1793
|
+
const n = ue(e), r = ve(e), o = n.visualViewport;
|
|
1794
|
+
let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
1795
|
+
if (o) {
|
|
1796
|
+
i = o.width, s = o.height;
|
|
1797
|
+
const f = Sn();
|
|
1798
|
+
(!f || f && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
|
|
1799
|
+
}
|
|
1800
|
+
return {
|
|
1801
|
+
width: i,
|
|
1802
|
+
height: s,
|
|
1803
|
+
x: l,
|
|
1804
|
+
y: a
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function ri(e, t) {
|
|
1808
|
+
const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = ae(e) ? je(e) : Me(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = o * i.x, f = r * i.y;
|
|
1809
|
+
return {
|
|
1810
|
+
width: s,
|
|
1811
|
+
height: l,
|
|
1812
|
+
x: a,
|
|
1813
|
+
y: f
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
function Jn(e, t, n) {
|
|
1817
|
+
let r;
|
|
1818
|
+
if (t === "viewport")
|
|
1819
|
+
r = ni(e, n);
|
|
1820
|
+
else if (t === "document")
|
|
1821
|
+
r = ti(ve(e));
|
|
1822
|
+
else if (W(t))
|
|
1823
|
+
r = ri(t, n);
|
|
1824
|
+
else {
|
|
1825
|
+
const o = $r(e);
|
|
1826
|
+
r = {
|
|
1827
|
+
...t,
|
|
1828
|
+
x: t.x - o.x,
|
|
1829
|
+
y: t.y - o.y
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
return Lt(r);
|
|
1833
|
+
}
|
|
1834
|
+
function Hr(e, t) {
|
|
1835
|
+
const n = Re(e);
|
|
1836
|
+
return n === t || !W(n) || Ae(n) ? !1 : me(n).position === "fixed" || Hr(n, t);
|
|
1837
|
+
}
|
|
1838
|
+
function oi(e, t) {
|
|
1839
|
+
const n = t.get(e);
|
|
1840
|
+
if (n)
|
|
1841
|
+
return n;
|
|
1842
|
+
let r = Ie(e, [], !1).filter((l) => W(l) && Je(l) !== "body"), o = null;
|
|
1843
|
+
const i = me(e).position === "fixed";
|
|
1844
|
+
let s = i ? Re(e) : e;
|
|
1845
|
+
for (; W(s) && !Ae(s); ) {
|
|
1846
|
+
const l = me(s), a = Tn(s);
|
|
1847
|
+
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || pt(s) && !a && Hr(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = Re(s);
|
|
1848
|
+
}
|
|
1849
|
+
return t.set(e, r), r;
|
|
1850
|
+
}
|
|
1851
|
+
function si(e) {
|
|
1852
|
+
let {
|
|
1853
|
+
element: t,
|
|
1854
|
+
boundary: n,
|
|
1855
|
+
rootBoundary: r,
|
|
1856
|
+
strategy: o
|
|
1857
|
+
} = e;
|
|
1858
|
+
const s = [...n === "clippingAncestors" ? qt(t) ? [] : oi(t, this._c) : [].concat(n), r], l = s[0], a = s.reduce((f, m) => {
|
|
1859
|
+
const u = Jn(t, m, o);
|
|
1860
|
+
return f.top = Be(u.top, f.top), f.right = Ye(u.right, f.right), f.bottom = Ye(u.bottom, f.bottom), f.left = Be(u.left, f.left), f;
|
|
1861
|
+
}, Jn(t, l, o));
|
|
1862
|
+
return {
|
|
1863
|
+
width: a.right - a.left,
|
|
1864
|
+
height: a.bottom - a.top,
|
|
1865
|
+
x: a.left,
|
|
1866
|
+
y: a.top
|
|
1867
|
+
};
|
|
1868
|
+
}
|
|
1869
|
+
function ii(e) {
|
|
1870
|
+
const {
|
|
1871
|
+
width: t,
|
|
1872
|
+
height: n
|
|
1873
|
+
} = Br(e);
|
|
1874
|
+
return {
|
|
1875
|
+
width: t,
|
|
1876
|
+
height: n
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
function ci(e, t, n) {
|
|
1880
|
+
const r = ae(t), o = ve(t), i = n === "fixed", s = Ge(e, !0, i, t);
|
|
1881
|
+
let l = {
|
|
1882
|
+
scrollLeft: 0,
|
|
1883
|
+
scrollTop: 0
|
|
1884
|
+
};
|
|
1885
|
+
const a = Me(0);
|
|
1886
|
+
if (r || !r && !i)
|
|
1887
|
+
if ((Je(t) !== "body" || pt(o)) && (l = Kt(t)), r) {
|
|
1888
|
+
const d = Ge(t, !0, i, t);
|
|
1889
|
+
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1890
|
+
} else o && (a.x = kn(o));
|
|
1891
|
+
let f = 0, m = 0;
|
|
1892
|
+
if (o && !r && !i) {
|
|
1893
|
+
const d = o.getBoundingClientRect();
|
|
1894
|
+
m = d.top + l.scrollTop, f = d.left + l.scrollLeft - // RTL <body> scrollbar.
|
|
1895
|
+
kn(o, d);
|
|
1896
|
+
}
|
|
1897
|
+
const u = s.left + l.scrollLeft - a.x - f, c = s.top + l.scrollTop - a.y - m;
|
|
1898
|
+
return {
|
|
1899
|
+
x: u,
|
|
1900
|
+
y: c,
|
|
1901
|
+
width: s.width,
|
|
1902
|
+
height: s.height
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
function Zt(e) {
|
|
1906
|
+
return me(e).position === "static";
|
|
1907
|
+
}
|
|
1908
|
+
function Qn(e, t) {
|
|
1909
|
+
if (!ae(e) || me(e).position === "fixed")
|
|
1910
|
+
return null;
|
|
1911
|
+
if (t)
|
|
1912
|
+
return t(e);
|
|
1913
|
+
let n = e.offsetParent;
|
|
1914
|
+
return ve(e) === n && (n = n.ownerDocument.body), n;
|
|
1915
|
+
}
|
|
1916
|
+
function Gr(e, t) {
|
|
1917
|
+
const n = ue(e);
|
|
1918
|
+
if (qt(e))
|
|
1919
|
+
return n;
|
|
1920
|
+
if (!ae(e)) {
|
|
1921
|
+
let o = Re(e);
|
|
1922
|
+
for (; o && !Ae(o); ) {
|
|
1923
|
+
if (W(o) && !Zt(o))
|
|
1924
|
+
return o;
|
|
1925
|
+
o = Re(o);
|
|
1926
|
+
}
|
|
1927
|
+
return n;
|
|
1928
|
+
}
|
|
1929
|
+
let r = Qn(e, t);
|
|
1930
|
+
for (; r && Ss(r) && Zt(r); )
|
|
1931
|
+
r = Qn(r, t);
|
|
1932
|
+
return r && Ae(r) && Zt(r) && !Tn(r) ? n : r || Os(e) || n;
|
|
1933
|
+
}
|
|
1934
|
+
const ai = async function(e) {
|
|
1935
|
+
const t = this.getOffsetParent || Gr, n = this.getDimensions, r = await n(e.floating);
|
|
1936
|
+
return {
|
|
1937
|
+
reference: ci(e.reference, await t(e.floating), e.strategy),
|
|
1938
|
+
floating: {
|
|
1939
|
+
x: 0,
|
|
1940
|
+
y: 0,
|
|
1941
|
+
width: r.width,
|
|
1942
|
+
height: r.height
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
};
|
|
1946
|
+
function li(e) {
|
|
1947
|
+
return me(e).direction === "rtl";
|
|
1948
|
+
}
|
|
1949
|
+
const ui = {
|
|
1950
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Zs,
|
|
1951
|
+
getDocumentElement: ve,
|
|
1952
|
+
getClippingRect: si,
|
|
1953
|
+
getOffsetParent: Gr,
|
|
1954
|
+
getElementRects: ai,
|
|
1955
|
+
getClientRects: ei,
|
|
1956
|
+
getDimensions: ii,
|
|
1957
|
+
getScale: je,
|
|
1958
|
+
isElement: W,
|
|
1959
|
+
isRTL: li
|
|
1960
|
+
};
|
|
1961
|
+
function fi(e, t) {
|
|
1962
|
+
let n = null, r;
|
|
1963
|
+
const o = ve(e);
|
|
1964
|
+
function i() {
|
|
1965
|
+
var l;
|
|
1966
|
+
clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
|
|
1967
|
+
}
|
|
1968
|
+
function s(l, a) {
|
|
1969
|
+
l === void 0 && (l = !1), a === void 0 && (a = 1), i();
|
|
1970
|
+
const {
|
|
1971
|
+
left: f,
|
|
1972
|
+
top: m,
|
|
1973
|
+
width: u,
|
|
1974
|
+
height: c
|
|
1975
|
+
} = e.getBoundingClientRect();
|
|
1976
|
+
if (l || t(), !u || !c)
|
|
1977
|
+
return;
|
|
1978
|
+
const d = Ke(m), p = Ke(o.clientWidth - (f + u)), g = Ke(o.clientHeight - (m + c)), v = Ke(f), k = {
|
|
1979
|
+
rootMargin: -d + "px " + -p + "px " + -g + "px " + -v + "px",
|
|
1980
|
+
threshold: Be(0, Ye(1, a)) || 1
|
|
1981
|
+
};
|
|
1982
|
+
let _ = !0;
|
|
1983
|
+
function w(N) {
|
|
1984
|
+
const I = N[0].intersectionRatio;
|
|
1985
|
+
if (I !== a) {
|
|
1986
|
+
if (!_)
|
|
1987
|
+
return s();
|
|
1988
|
+
I ? s(!1, I) : r = setTimeout(() => {
|
|
1989
|
+
s(!1, 1e-7);
|
|
1990
|
+
}, 1e3);
|
|
1991
|
+
}
|
|
1992
|
+
_ = !1;
|
|
1993
|
+
}
|
|
1994
|
+
try {
|
|
1995
|
+
n = new IntersectionObserver(w, {
|
|
1996
|
+
...k,
|
|
1997
|
+
// Handle <iframe>s
|
|
1998
|
+
root: o.ownerDocument
|
|
1999
|
+
});
|
|
2000
|
+
} catch {
|
|
2001
|
+
n = new IntersectionObserver(w, k);
|
|
2002
|
+
}
|
|
2003
|
+
n.observe(e);
|
|
2004
|
+
}
|
|
2005
|
+
return s(!0), i;
|
|
2006
|
+
}
|
|
2007
|
+
function di(e, t, n, r) {
|
|
2008
|
+
r === void 0 && (r = {});
|
|
2009
|
+
const {
|
|
2010
|
+
ancestorScroll: o = !0,
|
|
2011
|
+
ancestorResize: i = !0,
|
|
2012
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
2013
|
+
layoutShift: l = typeof IntersectionObserver == "function",
|
|
2014
|
+
animationFrame: a = !1
|
|
2015
|
+
} = r, f = An(e), m = o || i ? [...f ? Ie(f) : [], ...Ie(t)] : [];
|
|
2016
|
+
m.forEach((h) => {
|
|
2017
|
+
o && h.addEventListener("scroll", n, {
|
|
2018
|
+
passive: !0
|
|
2019
|
+
}), i && h.addEventListener("resize", n);
|
|
2020
|
+
});
|
|
2021
|
+
const u = f && l ? fi(f, n) : null;
|
|
2022
|
+
let c = -1, d = null;
|
|
2023
|
+
s && (d = new ResizeObserver((h) => {
|
|
2024
|
+
let [k] = h;
|
|
2025
|
+
k && k.target === f && d && (d.unobserve(t), cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
2026
|
+
var _;
|
|
2027
|
+
(_ = d) == null || _.observe(t);
|
|
2028
|
+
})), n();
|
|
2029
|
+
}), f && !a && d.observe(f), d.observe(t));
|
|
2030
|
+
let p, g = a ? Ge(e) : null;
|
|
2031
|
+
a && v();
|
|
2032
|
+
function v() {
|
|
2033
|
+
const h = Ge(e);
|
|
2034
|
+
g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, p = requestAnimationFrame(v);
|
|
2035
|
+
}
|
|
2036
|
+
return n(), () => {
|
|
2037
|
+
var h;
|
|
2038
|
+
m.forEach((k) => {
|
|
2039
|
+
o && k.removeEventListener("scroll", n), i && k.removeEventListener("resize", n);
|
|
2040
|
+
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(p);
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
const pi = zs, mi = Ys, bi = Ws, gi = js, Zn = Ks, _i = Xs, hi = (e, t, n) => {
|
|
2044
|
+
const r = /* @__PURE__ */ new Map(), o = {
|
|
2045
|
+
platform: ui,
|
|
2046
|
+
...n
|
|
2047
|
+
}, i = {
|
|
2048
|
+
...o.platform,
|
|
2049
|
+
_c: r
|
|
2050
|
+
};
|
|
2051
|
+
return qs(e, t, {
|
|
2052
|
+
...o,
|
|
2053
|
+
platform: i
|
|
2054
|
+
});
|
|
2055
|
+
};
|
|
2056
|
+
var St = typeof document < "u" ? Ht : dt;
|
|
2057
|
+
function Bt(e, t) {
|
|
2058
|
+
if (e === t)
|
|
2059
|
+
return !0;
|
|
2060
|
+
if (typeof e != typeof t)
|
|
2061
|
+
return !1;
|
|
2062
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
2063
|
+
return !0;
|
|
2064
|
+
let n, r, o;
|
|
2065
|
+
if (e && t && typeof e == "object") {
|
|
2066
|
+
if (Array.isArray(e)) {
|
|
2067
|
+
if (n = e.length, n !== t.length) return !1;
|
|
2068
|
+
for (r = n; r-- !== 0; )
|
|
2069
|
+
if (!Bt(e[r], t[r]))
|
|
2070
|
+
return !1;
|
|
2071
|
+
return !0;
|
|
2072
|
+
}
|
|
2073
|
+
if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
|
|
2074
|
+
return !1;
|
|
2075
|
+
for (r = n; r-- !== 0; )
|
|
2076
|
+
if (!{}.hasOwnProperty.call(t, o[r]))
|
|
2077
|
+
return !1;
|
|
2078
|
+
for (r = n; r-- !== 0; ) {
|
|
2079
|
+
const i = o[r];
|
|
2080
|
+
if (!(i === "_owner" && e.$$typeof) && !Bt(e[i], t[i]))
|
|
2081
|
+
return !1;
|
|
2082
|
+
}
|
|
2083
|
+
return !0;
|
|
2084
|
+
}
|
|
2085
|
+
return e !== e && t !== t;
|
|
2086
|
+
}
|
|
2087
|
+
function Vr(e) {
|
|
2088
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2089
|
+
}
|
|
2090
|
+
function er(e, t) {
|
|
2091
|
+
const n = Vr(e);
|
|
2092
|
+
return Math.round(t * n) / n;
|
|
2093
|
+
}
|
|
2094
|
+
function en(e) {
|
|
2095
|
+
const t = b.useRef(e);
|
|
2096
|
+
return St(() => {
|
|
2097
|
+
t.current = e;
|
|
2098
|
+
}), t;
|
|
2099
|
+
}
|
|
2100
|
+
function ki(e) {
|
|
2101
|
+
e === void 0 && (e = {});
|
|
2102
|
+
const {
|
|
2103
|
+
placement: t = "bottom",
|
|
2104
|
+
strategy: n = "absolute",
|
|
2105
|
+
middleware: r = [],
|
|
2106
|
+
platform: o,
|
|
2107
|
+
elements: {
|
|
2108
|
+
reference: i,
|
|
2109
|
+
floating: s
|
|
2110
|
+
} = {},
|
|
2111
|
+
transform: l = !0,
|
|
2112
|
+
whileElementsMounted: a,
|
|
2113
|
+
open: f
|
|
2114
|
+
} = e, [m, u] = b.useState({
|
|
2115
|
+
x: 0,
|
|
2116
|
+
y: 0,
|
|
2117
|
+
strategy: n,
|
|
2118
|
+
placement: t,
|
|
2119
|
+
middlewareData: {},
|
|
2120
|
+
isPositioned: !1
|
|
2121
|
+
}), [c, d] = b.useState(r);
|
|
2122
|
+
Bt(c, r) || d(r);
|
|
2123
|
+
const [p, g] = b.useState(null), [v, h] = b.useState(null), k = b.useCallback((T) => {
|
|
2124
|
+
T !== I.current && (I.current = T, g(T));
|
|
2125
|
+
}, []), _ = b.useCallback((T) => {
|
|
2126
|
+
T !== A.current && (A.current = T, h(T));
|
|
2127
|
+
}, []), w = i || p, N = s || v, I = b.useRef(null), A = b.useRef(null), S = b.useRef(m), P = a != null, B = en(a), G = en(o), L = en(f), F = b.useCallback(() => {
|
|
2128
|
+
if (!I.current || !A.current)
|
|
2129
|
+
return;
|
|
2130
|
+
const T = {
|
|
2131
|
+
placement: t,
|
|
2132
|
+
strategy: n,
|
|
2133
|
+
middleware: c
|
|
2134
|
+
};
|
|
2135
|
+
G.current && (T.platform = G.current), hi(I.current, A.current, T).then((H) => {
|
|
2136
|
+
const M = {
|
|
2137
|
+
...H,
|
|
2138
|
+
// The floating element's position may be recomputed while it's closed
|
|
2139
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
2140
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2141
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
2142
|
+
isPositioned: L.current !== !1
|
|
2143
|
+
};
|
|
2144
|
+
O.current && !Bt(S.current, M) && (S.current = M, Gt.flushSync(() => {
|
|
2145
|
+
u(M);
|
|
2146
|
+
}));
|
|
2147
|
+
});
|
|
2148
|
+
}, [c, t, n, G, L]);
|
|
2149
|
+
St(() => {
|
|
2150
|
+
f === !1 && S.current.isPositioned && (S.current.isPositioned = !1, u((T) => ({
|
|
2151
|
+
...T,
|
|
2152
|
+
isPositioned: !1
|
|
2153
|
+
})));
|
|
2154
|
+
}, [f]);
|
|
2155
|
+
const O = b.useRef(!1);
|
|
2156
|
+
St(() => (O.current = !0, () => {
|
|
2157
|
+
O.current = !1;
|
|
2158
|
+
}), []), St(() => {
|
|
2159
|
+
if (w && (I.current = w), N && (A.current = N), w && N) {
|
|
2160
|
+
if (B.current)
|
|
2161
|
+
return B.current(w, N, F);
|
|
2162
|
+
F();
|
|
2163
|
+
}
|
|
2164
|
+
}, [w, N, F, B, P]);
|
|
2165
|
+
const x = b.useMemo(() => ({
|
|
2166
|
+
reference: I,
|
|
2167
|
+
floating: A,
|
|
2168
|
+
setReference: k,
|
|
2169
|
+
setFloating: _
|
|
2170
|
+
}), [k, _]), R = b.useMemo(() => ({
|
|
2171
|
+
reference: w,
|
|
2172
|
+
floating: N
|
|
2173
|
+
}), [w, N]), C = b.useMemo(() => {
|
|
2174
|
+
const T = {
|
|
2175
|
+
position: n,
|
|
2176
|
+
left: 0,
|
|
2177
|
+
top: 0
|
|
2178
|
+
};
|
|
2179
|
+
if (!R.floating)
|
|
2180
|
+
return T;
|
|
2181
|
+
const H = er(R.floating, m.x), M = er(R.floating, m.y);
|
|
2182
|
+
return l ? {
|
|
2183
|
+
...T,
|
|
2184
|
+
transform: "translate(" + H + "px, " + M + "px)",
|
|
2185
|
+
...Vr(R.floating) >= 1.5 && {
|
|
2186
|
+
willChange: "transform"
|
|
2187
|
+
}
|
|
2188
|
+
} : {
|
|
2189
|
+
position: n,
|
|
2190
|
+
left: H,
|
|
2191
|
+
top: M
|
|
2192
|
+
};
|
|
2193
|
+
}, [n, l, R.floating, m.x, m.y]);
|
|
2194
|
+
return b.useMemo(() => ({
|
|
2195
|
+
...m,
|
|
2196
|
+
update: F,
|
|
2197
|
+
refs: x,
|
|
2198
|
+
elements: R,
|
|
2199
|
+
floatingStyles: C
|
|
2200
|
+
}), [m, F, x, R, C]);
|
|
2201
|
+
}
|
|
2202
|
+
const yi = (e) => {
|
|
2203
|
+
function t(n) {
|
|
2204
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
2205
|
+
}
|
|
2206
|
+
return {
|
|
2207
|
+
name: "arrow",
|
|
2208
|
+
options: e,
|
|
2209
|
+
fn(n) {
|
|
2210
|
+
const {
|
|
2211
|
+
element: r,
|
|
2212
|
+
padding: o
|
|
2213
|
+
} = typeof e == "function" ? e(n) : e;
|
|
2214
|
+
return r && t(r) ? r.current != null ? Zn({
|
|
2215
|
+
element: r.current,
|
|
2216
|
+
padding: o
|
|
2217
|
+
}).fn(n) : {} : r ? Zn({
|
|
2218
|
+
element: r,
|
|
2219
|
+
padding: o
|
|
2220
|
+
}).fn(n) : {};
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
}, vi = (e, t) => ({
|
|
2224
|
+
...pi(e),
|
|
2225
|
+
options: [e, t]
|
|
2226
|
+
}), wi = (e, t) => ({
|
|
2227
|
+
...mi(e),
|
|
2228
|
+
options: [e, t]
|
|
2229
|
+
}), xi = (e, t) => ({
|
|
2230
|
+
..._i(e),
|
|
2231
|
+
options: [e, t]
|
|
2232
|
+
}), Ei = (e, t) => ({
|
|
2233
|
+
...bi(e),
|
|
2234
|
+
options: [e, t]
|
|
2235
|
+
}), Ri = (e, t) => ({
|
|
2236
|
+
...gi(e),
|
|
2237
|
+
options: [e, t]
|
|
2238
|
+
}), Ti = (e, t) => ({
|
|
2239
|
+
...yi(e),
|
|
2240
|
+
options: [e, t]
|
|
2241
|
+
}), qr = {
|
|
2242
|
+
...b
|
|
2243
|
+
}, Si = qr.useInsertionEffect, Oi = Si || ((e) => e());
|
|
2244
|
+
function _e(e) {
|
|
2245
|
+
const t = b.useRef(() => {
|
|
2246
|
+
if (process.env.NODE_ENV !== "production")
|
|
2247
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
2248
|
+
});
|
|
2249
|
+
return Oi(() => {
|
|
2250
|
+
t.current = e;
|
|
2251
|
+
}), b.useCallback(function() {
|
|
2252
|
+
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
2253
|
+
r[o] = arguments[o];
|
|
2254
|
+
return t.current == null ? void 0 : t.current(...r);
|
|
2255
|
+
}, []);
|
|
2256
|
+
}
|
|
2257
|
+
const Mn = "ArrowUp", bt = "ArrowDown", Xe = "ArrowLeft", Qe = "ArrowRight";
|
|
2258
|
+
function xt(e, t, n) {
|
|
2259
|
+
return Math.floor(e / t) !== n;
|
|
2260
|
+
}
|
|
2261
|
+
function ot(e, t) {
|
|
2262
|
+
return t < 0 || t >= e.current.length;
|
|
2263
|
+
}
|
|
2264
|
+
function tn(e, t) {
|
|
2265
|
+
return se(e, {
|
|
2266
|
+
disabledIndices: t
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
function tr(e, t) {
|
|
2270
|
+
return se(e, {
|
|
2271
|
+
decrement: !0,
|
|
2272
|
+
startingIndex: e.current.length,
|
|
2273
|
+
disabledIndices: t
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
function se(e, t) {
|
|
2277
|
+
let {
|
|
2278
|
+
startingIndex: n = -1,
|
|
2279
|
+
decrement: r = !1,
|
|
2280
|
+
disabledIndices: o,
|
|
2281
|
+
amount: i = 1
|
|
2282
|
+
} = t === void 0 ? {} : t;
|
|
2283
|
+
const s = e.current;
|
|
2284
|
+
let l = n;
|
|
2285
|
+
do
|
|
2286
|
+
l += r ? -i : i;
|
|
2287
|
+
while (l >= 0 && l <= s.length - 1 && Ot(s, l, o));
|
|
2288
|
+
return l;
|
|
2289
|
+
}
|
|
2290
|
+
function Ci(e, t) {
|
|
2291
|
+
let {
|
|
2292
|
+
event: n,
|
|
2293
|
+
orientation: r,
|
|
2294
|
+
loop: o,
|
|
2295
|
+
cols: i,
|
|
2296
|
+
disabledIndices: s,
|
|
2297
|
+
minIndex: l,
|
|
2298
|
+
maxIndex: a,
|
|
2299
|
+
prevIndex: f,
|
|
2300
|
+
stopEvent: m = !1
|
|
2301
|
+
} = t, u = f;
|
|
2302
|
+
if (n.key === Mn) {
|
|
2303
|
+
if (m && pe(n), f === -1)
|
|
2304
|
+
u = a;
|
|
2305
|
+
else if (u = se(e, {
|
|
2306
|
+
startingIndex: u,
|
|
2307
|
+
amount: i,
|
|
2308
|
+
decrement: !0,
|
|
2309
|
+
disabledIndices: s
|
|
2310
|
+
}), o && (f - i < l || u < 0)) {
|
|
2311
|
+
const c = f % i, d = a % i, p = a - (d - c);
|
|
2312
|
+
d === c ? u = a : u = d > c ? p : p - i;
|
|
2313
|
+
}
|
|
2314
|
+
ot(e, u) && (u = f);
|
|
2315
|
+
}
|
|
2316
|
+
if (n.key === bt && (m && pe(n), f === -1 ? u = l : (u = se(e, {
|
|
2317
|
+
startingIndex: f,
|
|
2318
|
+
amount: i,
|
|
2319
|
+
disabledIndices: s
|
|
2320
|
+
}), o && f + i > a && (u = se(e, {
|
|
2321
|
+
startingIndex: f % i - i,
|
|
2322
|
+
amount: i,
|
|
2323
|
+
disabledIndices: s
|
|
2324
|
+
}))), ot(e, u) && (u = f)), r === "both") {
|
|
2325
|
+
const c = Ke(f / i);
|
|
2326
|
+
n.key === Qe && (m && pe(n), f % i !== i - 1 ? (u = se(e, {
|
|
2327
|
+
startingIndex: f,
|
|
2328
|
+
disabledIndices: s
|
|
2329
|
+
}), o && xt(u, i, c) && (u = se(e, {
|
|
2330
|
+
startingIndex: f - f % i - 1,
|
|
2331
|
+
disabledIndices: s
|
|
2332
|
+
}))) : o && (u = se(e, {
|
|
2333
|
+
startingIndex: f - f % i - 1,
|
|
2334
|
+
disabledIndices: s
|
|
2335
|
+
})), xt(u, i, c) && (u = f)), n.key === Xe && (m && pe(n), f % i !== 0 ? (u = se(e, {
|
|
2336
|
+
startingIndex: f,
|
|
2337
|
+
decrement: !0,
|
|
2338
|
+
disabledIndices: s
|
|
2339
|
+
}), o && xt(u, i, c) && (u = se(e, {
|
|
2340
|
+
startingIndex: f + (i - f % i),
|
|
2341
|
+
decrement: !0,
|
|
2342
|
+
disabledIndices: s
|
|
2343
|
+
}))) : o && (u = se(e, {
|
|
2344
|
+
startingIndex: f + (i - f % i),
|
|
2345
|
+
decrement: !0,
|
|
2346
|
+
disabledIndices: s
|
|
2347
|
+
})), xt(u, i, c) && (u = f));
|
|
2348
|
+
const d = Ke(a / i) === c;
|
|
2349
|
+
ot(e, u) && (o && d ? u = n.key === Xe ? a : se(e, {
|
|
2350
|
+
startingIndex: f - f % i - 1,
|
|
2351
|
+
disabledIndices: s
|
|
2352
|
+
}) : u = f);
|
|
2353
|
+
}
|
|
2354
|
+
return u;
|
|
2355
|
+
}
|
|
2356
|
+
function Ni(e, t, n) {
|
|
2357
|
+
const r = [];
|
|
2358
|
+
let o = 0;
|
|
2359
|
+
return e.forEach((i, s) => {
|
|
2360
|
+
let {
|
|
2361
|
+
width: l,
|
|
2362
|
+
height: a
|
|
2363
|
+
} = i;
|
|
2364
|
+
if (l > t && process.env.NODE_ENV !== "production")
|
|
2365
|
+
throw new Error("[Floating UI]: Invalid grid - item width at index " + s + " is greater than grid columns");
|
|
2366
|
+
let f = !1;
|
|
2367
|
+
for (n && (o = 0); !f; ) {
|
|
2368
|
+
const m = [];
|
|
2369
|
+
for (let u = 0; u < l; u++)
|
|
2370
|
+
for (let c = 0; c < a; c++)
|
|
2371
|
+
m.push(o + u + c * t);
|
|
2372
|
+
o % t + l <= t && m.every((u) => r[u] == null) ? (m.forEach((u) => {
|
|
2373
|
+
r[u] = s;
|
|
2374
|
+
}), f = !0) : o++;
|
|
2375
|
+
}
|
|
2376
|
+
}), [...r];
|
|
2377
|
+
}
|
|
2378
|
+
function Ii(e, t, n, r, o) {
|
|
2379
|
+
if (e === -1) return -1;
|
|
2380
|
+
const i = n.indexOf(e), s = t[e];
|
|
2381
|
+
switch (o) {
|
|
2382
|
+
case "tl":
|
|
2383
|
+
return i;
|
|
2384
|
+
case "tr":
|
|
2385
|
+
return s ? i + s.width - 1 : i;
|
|
2386
|
+
case "bl":
|
|
2387
|
+
return s ? i + (s.height - 1) * r : i;
|
|
2388
|
+
case "br":
|
|
2389
|
+
return n.lastIndexOf(e);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
function Ai(e, t) {
|
|
2393
|
+
return t.flatMap((n, r) => e.includes(n) ? [r] : []);
|
|
2394
|
+
}
|
|
2395
|
+
function Ot(e, t, n) {
|
|
2396
|
+
if (n)
|
|
2397
|
+
return n.includes(t);
|
|
2398
|
+
const r = e[t];
|
|
2399
|
+
return r == null || r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true";
|
|
2400
|
+
}
|
|
2401
|
+
let nr = 0;
|
|
2402
|
+
function rr(e, t) {
|
|
2403
|
+
t === void 0 && (t = {});
|
|
2404
|
+
const {
|
|
2405
|
+
preventScroll: n = !1,
|
|
2406
|
+
cancelPrevious: r = !0,
|
|
2407
|
+
sync: o = !1
|
|
2408
|
+
} = t;
|
|
2409
|
+
r && cancelAnimationFrame(nr);
|
|
2410
|
+
const i = () => e == null ? void 0 : e.focus({
|
|
2411
|
+
preventScroll: n
|
|
2412
|
+
});
|
|
2413
|
+
o ? i() : nr = requestAnimationFrame(i);
|
|
2414
|
+
}
|
|
2415
|
+
var ee = typeof document < "u" ? Ht : dt;
|
|
2416
|
+
let or = !1, Mi = 0;
|
|
2417
|
+
const sr = () => (
|
|
2418
|
+
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
2419
|
+
// on <React 18
|
|
2420
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Mi++
|
|
2421
|
+
);
|
|
2422
|
+
function Di() {
|
|
2423
|
+
const [e, t] = b.useState(() => or ? sr() : void 0);
|
|
2424
|
+
return ee(() => {
|
|
2425
|
+
e == null && t(sr());
|
|
2426
|
+
}, []), b.useEffect(() => {
|
|
2427
|
+
or = !0;
|
|
2428
|
+
}, []), e;
|
|
2429
|
+
}
|
|
2430
|
+
const Pi = qr.useId, Kr = Pi || Di;
|
|
2431
|
+
let at;
|
|
2432
|
+
process.env.NODE_ENV !== "production" && (at = /* @__PURE__ */ new Set());
|
|
2433
|
+
function nn() {
|
|
2434
|
+
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
2435
|
+
n[r] = arguments[r];
|
|
2436
|
+
const o = "Floating UI: " + n.join(" ");
|
|
2437
|
+
if (!((e = at) != null && e.has(o))) {
|
|
2438
|
+
var i;
|
|
2439
|
+
(i = at) == null || i.add(o), console.warn(o);
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
function Li() {
|
|
2443
|
+
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
2444
|
+
n[r] = arguments[r];
|
|
2445
|
+
const o = "Floating UI: " + n.join(" ");
|
|
2446
|
+
if (!((e = at) != null && e.has(o))) {
|
|
2447
|
+
var i;
|
|
2448
|
+
(i = at) == null || i.add(o), console.error(o);
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
function Fi() {
|
|
2452
|
+
const e = /* @__PURE__ */ new Map();
|
|
2453
|
+
return {
|
|
2454
|
+
emit(t, n) {
|
|
2455
|
+
var r;
|
|
2456
|
+
(r = e.get(t)) == null || r.forEach((o) => o(n));
|
|
2457
|
+
},
|
|
2458
|
+
on(t, n) {
|
|
2459
|
+
e.set(t, [...e.get(t) || [], n]);
|
|
2460
|
+
},
|
|
2461
|
+
off(t, n) {
|
|
2462
|
+
var r;
|
|
2463
|
+
e.set(t, ((r = e.get(t)) == null ? void 0 : r.filter((o) => o !== n)) || []);
|
|
2464
|
+
}
|
|
2465
|
+
};
|
|
2466
|
+
}
|
|
2467
|
+
const Bi = /* @__PURE__ */ b.createContext(null), $i = /* @__PURE__ */ b.createContext(null), Wt = () => {
|
|
2468
|
+
var e;
|
|
2469
|
+
return ((e = b.useContext(Bi)) == null ? void 0 : e.id) || null;
|
|
2470
|
+
}, jt = () => b.useContext($i);
|
|
2471
|
+
function Dn(e) {
|
|
2472
|
+
return "data-floating-ui-" + e;
|
|
2473
|
+
}
|
|
2474
|
+
function Oe(e) {
|
|
2475
|
+
const t = Ue(e);
|
|
2476
|
+
return ee(() => {
|
|
2477
|
+
t.current = e;
|
|
2478
|
+
}), t;
|
|
2479
|
+
}
|
|
2480
|
+
const ir = /* @__PURE__ */ Dn("safe-polygon");
|
|
2481
|
+
function Ct(e, t, n) {
|
|
2482
|
+
return n && !ct(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2483
|
+
}
|
|
2484
|
+
function Hi(e, t) {
|
|
2485
|
+
t === void 0 && (t = {});
|
|
2486
|
+
const {
|
|
2487
|
+
open: n,
|
|
2488
|
+
onOpenChange: r,
|
|
2489
|
+
dataRef: o,
|
|
2490
|
+
events: i,
|
|
2491
|
+
elements: s
|
|
2492
|
+
} = e, {
|
|
2493
|
+
enabled: l = !0,
|
|
2494
|
+
delay: a = 0,
|
|
2495
|
+
handleClose: f = null,
|
|
2496
|
+
mouseOnly: m = !1,
|
|
2497
|
+
restMs: u = 0,
|
|
2498
|
+
move: c = !0
|
|
2499
|
+
} = t, d = jt(), p = Wt(), g = Oe(f), v = Oe(a), h = Oe(n), k = b.useRef(), _ = b.useRef(-1), w = b.useRef(), N = b.useRef(-1), I = b.useRef(!0), A = b.useRef(!1), S = b.useRef(() => {
|
|
2500
|
+
}), P = b.useCallback(() => {
|
|
2501
|
+
var x;
|
|
2502
|
+
const R = (x = o.current.openEvent) == null ? void 0 : x.type;
|
|
2503
|
+
return (R == null ? void 0 : R.includes("mouse")) && R !== "mousedown";
|
|
2504
|
+
}, [o]);
|
|
2505
|
+
b.useEffect(() => {
|
|
2506
|
+
if (!l) return;
|
|
2507
|
+
function x(R) {
|
|
2508
|
+
let {
|
|
2509
|
+
open: C
|
|
2510
|
+
} = R;
|
|
2511
|
+
C || (clearTimeout(_.current), clearTimeout(N.current), I.current = !0);
|
|
2512
|
+
}
|
|
2513
|
+
return i.on("openchange", x), () => {
|
|
2514
|
+
i.off("openchange", x);
|
|
2515
|
+
};
|
|
2516
|
+
}, [l, i]), b.useEffect(() => {
|
|
2517
|
+
if (!l || !g.current || !n) return;
|
|
2518
|
+
function x(C) {
|
|
2519
|
+
P() && r(!1, C, "hover");
|
|
2520
|
+
}
|
|
2521
|
+
const R = Ce(s.floating).documentElement;
|
|
2522
|
+
return R.addEventListener("mouseleave", x), () => {
|
|
2523
|
+
R.removeEventListener("mouseleave", x);
|
|
2524
|
+
};
|
|
2525
|
+
}, [s.floating, n, r, l, g, P]);
|
|
2526
|
+
const B = b.useCallback(function(x, R, C) {
|
|
2527
|
+
R === void 0 && (R = !0), C === void 0 && (C = "hover");
|
|
2528
|
+
const T = Ct(v.current, "close", k.current);
|
|
2529
|
+
T && !w.current ? (clearTimeout(_.current), _.current = window.setTimeout(() => r(!1, x, C), T)) : R && (clearTimeout(_.current), r(!1, x, C));
|
|
2530
|
+
}, [v, r]), G = _e(() => {
|
|
2531
|
+
S.current(), w.current = void 0;
|
|
2532
|
+
}), L = _e(() => {
|
|
2533
|
+
if (A.current) {
|
|
2534
|
+
const x = Ce(s.floating).body;
|
|
2535
|
+
x.style.pointerEvents = "", x.removeAttribute(ir), A.current = !1;
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
b.useEffect(() => {
|
|
2539
|
+
if (!l) return;
|
|
2540
|
+
function x() {
|
|
2541
|
+
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
2542
|
+
}
|
|
2543
|
+
function R(M) {
|
|
2544
|
+
if (clearTimeout(_.current), I.current = !1, m && !ct(k.current) || u > 0 && !Ct(v.current, "open"))
|
|
2545
|
+
return;
|
|
2546
|
+
const K = Ct(v.current, "open", k.current);
|
|
2547
|
+
K ? _.current = window.setTimeout(() => {
|
|
2548
|
+
h.current || r(!0, M, "hover");
|
|
2549
|
+
}, K) : r(!0, M, "hover");
|
|
2550
|
+
}
|
|
2551
|
+
function C(M) {
|
|
2552
|
+
if (x()) return;
|
|
2553
|
+
S.current();
|
|
2554
|
+
const K = Ce(s.floating);
|
|
2555
|
+
if (clearTimeout(N.current), g.current && o.current.floatingContext) {
|
|
2556
|
+
n || clearTimeout(_.current), w.current = g.current({
|
|
2557
|
+
...o.current.floatingContext,
|
|
2558
|
+
tree: d,
|
|
2559
|
+
x: M.clientX,
|
|
2560
|
+
y: M.clientY,
|
|
2561
|
+
onClose() {
|
|
2562
|
+
L(), G(), B(M, !0, "safe-polygon");
|
|
2563
|
+
}
|
|
2564
|
+
});
|
|
2565
|
+
const X = w.current;
|
|
2566
|
+
K.addEventListener("mousemove", X), S.current = () => {
|
|
2567
|
+
K.removeEventListener("mousemove", X);
|
|
2568
|
+
};
|
|
2569
|
+
return;
|
|
2570
|
+
}
|
|
2571
|
+
(k.current === "touch" ? !ze(s.floating, M.relatedTarget) : !0) && B(M);
|
|
2572
|
+
}
|
|
2573
|
+
function T(M) {
|
|
2574
|
+
x() || o.current.floatingContext && (g.current == null || g.current({
|
|
2575
|
+
...o.current.floatingContext,
|
|
2576
|
+
tree: d,
|
|
2577
|
+
x: M.clientX,
|
|
2578
|
+
y: M.clientY,
|
|
2579
|
+
onClose() {
|
|
2580
|
+
L(), G(), B(M);
|
|
2581
|
+
}
|
|
2582
|
+
})(M));
|
|
2583
|
+
}
|
|
2584
|
+
if (W(s.domReference)) {
|
|
2585
|
+
var H;
|
|
2586
|
+
const M = s.domReference;
|
|
2587
|
+
return n && M.addEventListener("mouseleave", T), (H = s.floating) == null || H.addEventListener("mouseleave", T), c && M.addEventListener("mousemove", R, {
|
|
2588
|
+
once: !0
|
|
2589
|
+
}), M.addEventListener("mouseenter", R), M.addEventListener("mouseleave", C), () => {
|
|
2590
|
+
var K;
|
|
2591
|
+
n && M.removeEventListener("mouseleave", T), (K = s.floating) == null || K.removeEventListener("mouseleave", T), c && M.removeEventListener("mousemove", R), M.removeEventListener("mouseenter", R), M.removeEventListener("mouseleave", C);
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
}, [s, l, e, m, u, c, B, G, L, r, n, h, d, v, g, o]), ee(() => {
|
|
2595
|
+
var x;
|
|
2596
|
+
if (l && n && (x = g.current) != null && x.__options.blockPointerEvents && P()) {
|
|
2597
|
+
A.current = !0;
|
|
2598
|
+
const C = s.floating;
|
|
2599
|
+
if (W(s.domReference) && C) {
|
|
2600
|
+
var R;
|
|
2601
|
+
const T = Ce(s.floating).body;
|
|
2602
|
+
T.setAttribute(ir, "");
|
|
2603
|
+
const H = s.domReference, M = d == null || (R = d.nodesRef.current.find((K) => K.id === p)) == null || (R = R.context) == null ? void 0 : R.elements.floating;
|
|
2604
|
+
return M && (M.style.pointerEvents = ""), T.style.pointerEvents = "none", H.style.pointerEvents = "auto", C.style.pointerEvents = "auto", () => {
|
|
2605
|
+
T.style.pointerEvents = "", H.style.pointerEvents = "", C.style.pointerEvents = "";
|
|
2606
|
+
};
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
}, [l, n, p, s, d, g, P]), ee(() => {
|
|
2610
|
+
n || (k.current = void 0, G(), L());
|
|
2611
|
+
}, [n, G, L]), b.useEffect(() => () => {
|
|
2612
|
+
G(), clearTimeout(_.current), clearTimeout(N.current), L();
|
|
2613
|
+
}, [l, s.domReference, G, L]);
|
|
2614
|
+
const F = b.useMemo(() => {
|
|
2615
|
+
function x(R) {
|
|
2616
|
+
k.current = R.pointerType;
|
|
2617
|
+
}
|
|
2618
|
+
return {
|
|
2619
|
+
onPointerDown: x,
|
|
2620
|
+
onPointerEnter: x,
|
|
2621
|
+
onMouseMove(R) {
|
|
2622
|
+
const {
|
|
2623
|
+
nativeEvent: C
|
|
2624
|
+
} = R;
|
|
2625
|
+
function T() {
|
|
2626
|
+
!I.current && !h.current && r(!0, C, "hover");
|
|
2627
|
+
}
|
|
2628
|
+
m && !ct(k.current) || n || u === 0 || (clearTimeout(N.current), k.current === "touch" ? T() : N.current = window.setTimeout(T, u));
|
|
2629
|
+
}
|
|
2630
|
+
};
|
|
2631
|
+
}, [m, r, n, h, u]), O = b.useMemo(() => ({
|
|
2632
|
+
onMouseEnter() {
|
|
2633
|
+
clearTimeout(_.current);
|
|
2634
|
+
},
|
|
2635
|
+
onMouseLeave(x) {
|
|
2636
|
+
B(x.nativeEvent, !1);
|
|
2637
|
+
}
|
|
2638
|
+
}), [B]);
|
|
2639
|
+
return b.useMemo(() => l ? {
|
|
2640
|
+
reference: F,
|
|
2641
|
+
floating: O
|
|
2642
|
+
} : {}, [l, F, O]);
|
|
2643
|
+
}
|
|
2644
|
+
const yn = () => {
|
|
2645
|
+
}, Gi = /* @__PURE__ */ b.createContext({
|
|
2646
|
+
delay: 0,
|
|
2647
|
+
initialDelay: 0,
|
|
2648
|
+
timeoutMs: 0,
|
|
2649
|
+
currentId: null,
|
|
2650
|
+
setCurrentId: yn,
|
|
2651
|
+
setState: yn,
|
|
2652
|
+
isInstantPhase: !1
|
|
2653
|
+
}), Vi = () => b.useContext(Gi);
|
|
2654
|
+
function qi(e, t) {
|
|
2655
|
+
t === void 0 && (t = {});
|
|
2656
|
+
const {
|
|
2657
|
+
open: n,
|
|
2658
|
+
onOpenChange: r,
|
|
2659
|
+
floatingId: o
|
|
2660
|
+
} = e, {
|
|
2661
|
+
id: i
|
|
2662
|
+
} = t, s = i ?? o, l = Vi(), {
|
|
2663
|
+
currentId: a,
|
|
2664
|
+
setCurrentId: f,
|
|
2665
|
+
initialDelay: m,
|
|
2666
|
+
setState: u,
|
|
2667
|
+
timeoutMs: c
|
|
2668
|
+
} = l;
|
|
2669
|
+
return ee(() => {
|
|
2670
|
+
a && (u({
|
|
2671
|
+
delay: {
|
|
2672
|
+
open: 1,
|
|
2673
|
+
close: Ct(m, "close")
|
|
2674
|
+
}
|
|
2675
|
+
}), a !== s && r(!1));
|
|
2676
|
+
}, [s, r, u, a, m]), ee(() => {
|
|
2677
|
+
function d() {
|
|
2678
|
+
r(!1), u({
|
|
2679
|
+
delay: m,
|
|
2680
|
+
currentId: null
|
|
2681
|
+
});
|
|
2682
|
+
}
|
|
2683
|
+
if (a && !n && a === s) {
|
|
2684
|
+
if (c) {
|
|
2685
|
+
const p = window.setTimeout(d, c);
|
|
2686
|
+
return () => {
|
|
2687
|
+
clearTimeout(p);
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
d();
|
|
2691
|
+
}
|
|
2692
|
+
}, [n, u, a, s, r, m, c]), ee(() => {
|
|
2693
|
+
f === yn || !n || f(s);
|
|
2694
|
+
}, [n, f, s]), l;
|
|
2695
|
+
}
|
|
2696
|
+
function Nt(e, t) {
|
|
2697
|
+
let n = e.filter((o) => {
|
|
2698
|
+
var i;
|
|
2699
|
+
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
2700
|
+
}), r = n;
|
|
2701
|
+
for (; r.length; )
|
|
2702
|
+
r = e.filter((o) => {
|
|
2703
|
+
var i;
|
|
2704
|
+
return (i = r) == null ? void 0 : i.some((s) => {
|
|
2705
|
+
var l;
|
|
2706
|
+
return o.parentId === s.id && ((l = o.context) == null ? void 0 : l.open);
|
|
2707
|
+
});
|
|
2708
|
+
}), n = n.concat(r);
|
|
2709
|
+
return n;
|
|
2710
|
+
}
|
|
2711
|
+
function Ki(e, t) {
|
|
2712
|
+
let n, r = -1;
|
|
2713
|
+
function o(i, s) {
|
|
2714
|
+
s > r && (n = i, r = s), Nt(e, i).forEach((a) => {
|
|
2715
|
+
o(a.id, s + 1);
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2718
|
+
return o(t, 0), e.find((i) => i.id === n);
|
|
2719
|
+
}
|
|
2720
|
+
const vn = "data-floating-ui-focusable";
|
|
2721
|
+
function Wi(e) {
|
|
2722
|
+
return e ? e.hasAttribute(vn) ? e : e.querySelector("[" + vn + "]") || e : null;
|
|
2723
|
+
}
|
|
2724
|
+
function cr(e) {
|
|
2725
|
+
return ae(e.target) && e.target.tagName === "BUTTON";
|
|
2726
|
+
}
|
|
2727
|
+
function ar(e) {
|
|
2728
|
+
return On(e);
|
|
2729
|
+
}
|
|
2730
|
+
function ji(e, t) {
|
|
2731
|
+
t === void 0 && (t = {});
|
|
2732
|
+
const {
|
|
2733
|
+
open: n,
|
|
2734
|
+
onOpenChange: r,
|
|
2735
|
+
dataRef: o,
|
|
2736
|
+
elements: {
|
|
2737
|
+
domReference: i
|
|
2738
|
+
}
|
|
2739
|
+
} = e, {
|
|
2740
|
+
enabled: s = !0,
|
|
2741
|
+
event: l = "click",
|
|
2742
|
+
toggle: a = !0,
|
|
2743
|
+
ignoreMouse: f = !1,
|
|
2744
|
+
keyboardHandlers: m = !0
|
|
2745
|
+
} = t, u = b.useRef(), c = b.useRef(!1), d = b.useMemo(() => ({
|
|
2746
|
+
onPointerDown(p) {
|
|
2747
|
+
u.current = p.pointerType;
|
|
2748
|
+
},
|
|
2749
|
+
onMouseDown(p) {
|
|
2750
|
+
const g = u.current;
|
|
2751
|
+
p.button === 0 && l !== "click" && (ct(g, !0) && f || (n && a && (!o.current.openEvent || o.current.openEvent.type === "mousedown") ? r(!1, p.nativeEvent, "click") : (p.preventDefault(), r(!0, p.nativeEvent, "click"))));
|
|
2752
|
+
},
|
|
2753
|
+
onClick(p) {
|
|
2754
|
+
const g = u.current;
|
|
2755
|
+
if (l === "mousedown" && u.current) {
|
|
2756
|
+
u.current = void 0;
|
|
2757
|
+
return;
|
|
2758
|
+
}
|
|
2759
|
+
ct(g, !0) && f || (n && a && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, p.nativeEvent, "click") : r(!0, p.nativeEvent, "click"));
|
|
2760
|
+
},
|
|
2761
|
+
onKeyDown(p) {
|
|
2762
|
+
u.current = void 0, !(p.defaultPrevented || !m || cr(p)) && (p.key === " " && !ar(i) && (p.preventDefault(), c.current = !0), p.key === "Enter" && r(!(n && a), p.nativeEvent, "click"));
|
|
2763
|
+
},
|
|
2764
|
+
onKeyUp(p) {
|
|
2765
|
+
p.defaultPrevented || !m || cr(p) || ar(i) || p.key === " " && c.current && (c.current = !1, r(!(n && a), p.nativeEvent, "click"));
|
|
2766
|
+
}
|
|
2767
|
+
}), [o, i, l, f, m, r, n, a]);
|
|
2768
|
+
return b.useMemo(() => s ? {
|
|
2769
|
+
reference: d
|
|
2770
|
+
} : {}, [s, d]);
|
|
2771
|
+
}
|
|
2772
|
+
const Ui = {
|
|
2773
|
+
pointerdown: "onPointerDown",
|
|
2774
|
+
mousedown: "onMouseDown",
|
|
2775
|
+
click: "onClick"
|
|
2776
|
+
}, zi = {
|
|
2777
|
+
pointerdown: "onPointerDownCapture",
|
|
2778
|
+
mousedown: "onMouseDownCapture",
|
|
2779
|
+
click: "onClickCapture"
|
|
2780
|
+
}, lr = (e) => {
|
|
2781
|
+
var t, n;
|
|
2782
|
+
return {
|
|
2783
|
+
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
2784
|
+
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
function Yi(e, t) {
|
|
2788
|
+
t === void 0 && (t = {});
|
|
2789
|
+
const {
|
|
2790
|
+
open: n,
|
|
2791
|
+
onOpenChange: r,
|
|
2792
|
+
elements: o,
|
|
2793
|
+
dataRef: i
|
|
2794
|
+
} = e, {
|
|
2795
|
+
enabled: s = !0,
|
|
2796
|
+
escapeKey: l = !0,
|
|
2797
|
+
outsidePress: a = !0,
|
|
2798
|
+
outsidePressEvent: f = "pointerdown",
|
|
2799
|
+
referencePress: m = !1,
|
|
2800
|
+
referencePressEvent: u = "pointerdown",
|
|
2801
|
+
ancestorScroll: c = !1,
|
|
2802
|
+
bubbles: d,
|
|
2803
|
+
capture: p
|
|
2804
|
+
} = t, g = jt(), v = _e(typeof a == "function" ? a : () => !1), h = typeof a == "function" ? v : a, k = b.useRef(!1), _ = b.useRef(!1), {
|
|
2805
|
+
escapeKey: w,
|
|
2806
|
+
outsidePress: N
|
|
2807
|
+
} = lr(d), {
|
|
2808
|
+
escapeKey: I,
|
|
2809
|
+
outsidePress: A
|
|
2810
|
+
} = lr(p), S = _e((O) => {
|
|
2811
|
+
var x;
|
|
2812
|
+
if (!n || !s || !l || O.key !== "Escape")
|
|
2813
|
+
return;
|
|
2814
|
+
const R = (x = i.current.floatingContext) == null ? void 0 : x.nodeId, C = g ? Nt(g.nodesRef.current, R) : [];
|
|
2815
|
+
if (!w && (O.stopPropagation(), C.length > 0)) {
|
|
2816
|
+
let T = !0;
|
|
2817
|
+
if (C.forEach((H) => {
|
|
2818
|
+
var M;
|
|
2819
|
+
if ((M = H.context) != null && M.open && !H.context.dataRef.current.__escapeKeyBubbles) {
|
|
2820
|
+
T = !1;
|
|
2821
|
+
return;
|
|
2822
|
+
}
|
|
2823
|
+
}), !T)
|
|
2824
|
+
return;
|
|
2825
|
+
}
|
|
2826
|
+
r(!1, Is(O) ? O.nativeEvent : O, "escape-key");
|
|
2827
|
+
}), P = _e((O) => {
|
|
2828
|
+
var x;
|
|
2829
|
+
const R = () => {
|
|
2830
|
+
var C;
|
|
2831
|
+
S(O), (C = qe(O)) == null || C.removeEventListener("keydown", R);
|
|
2832
|
+
};
|
|
2833
|
+
(x = qe(O)) == null || x.addEventListener("keydown", R);
|
|
2834
|
+
}), B = _e((O) => {
|
|
2835
|
+
var x;
|
|
2836
|
+
const R = k.current;
|
|
2837
|
+
k.current = !1;
|
|
2838
|
+
const C = _.current;
|
|
2839
|
+
if (_.current = !1, f === "click" && C || R || typeof h == "function" && !h(O))
|
|
2840
|
+
return;
|
|
2841
|
+
const T = qe(O), H = "[" + Dn("inert") + "]", M = Ce(o.floating).querySelectorAll(H);
|
|
2842
|
+
let K = W(T) ? T : null;
|
|
2843
|
+
for (; K && !Ae(K); ) {
|
|
2844
|
+
const j = Re(K);
|
|
2845
|
+
if (Ae(j) || !W(j))
|
|
2846
|
+
break;
|
|
2847
|
+
K = j;
|
|
2848
|
+
}
|
|
2849
|
+
if (M.length && W(T) && !As(T) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2850
|
+
!ze(T, o.floating) && // If the target root element contains none of the markers, then the
|
|
2851
|
+
// element was injected after the floating element rendered.
|
|
2852
|
+
Array.from(M).every((j) => !ze(K, j)))
|
|
2853
|
+
return;
|
|
2854
|
+
if (ae(T) && F) {
|
|
2855
|
+
const j = T.clientWidth > 0 && T.scrollWidth > T.clientWidth, Q = T.clientHeight > 0 && T.scrollHeight > T.clientHeight;
|
|
2856
|
+
let ne = Q && O.offsetX > T.clientWidth;
|
|
2857
|
+
if (Q && me(T).direction === "rtl" && (ne = O.offsetX <= T.offsetWidth - T.clientWidth), ne || j && O.offsetY > T.clientHeight)
|
|
2858
|
+
return;
|
|
2859
|
+
}
|
|
2860
|
+
const Z = (x = i.current.floatingContext) == null ? void 0 : x.nodeId, X = g && Nt(g.nodesRef.current, Z).some((j) => {
|
|
2861
|
+
var Q;
|
|
2862
|
+
return Qt(O, (Q = j.context) == null ? void 0 : Q.elements.floating);
|
|
2863
|
+
});
|
|
2864
|
+
if (Qt(O, o.floating) || Qt(O, o.domReference) || X)
|
|
2865
|
+
return;
|
|
2866
|
+
const te = g ? Nt(g.nodesRef.current, Z) : [];
|
|
2867
|
+
if (te.length > 0) {
|
|
2868
|
+
let j = !0;
|
|
2869
|
+
if (te.forEach((Q) => {
|
|
2870
|
+
var ne;
|
|
2871
|
+
if ((ne = Q.context) != null && ne.open && !Q.context.dataRef.current.__outsidePressBubbles) {
|
|
2872
|
+
j = !1;
|
|
2873
|
+
return;
|
|
2874
|
+
}
|
|
2875
|
+
}), !j)
|
|
2876
|
+
return;
|
|
2877
|
+
}
|
|
2878
|
+
r(!1, O, "outside-press");
|
|
2879
|
+
}), G = _e((O) => {
|
|
2880
|
+
var x;
|
|
2881
|
+
const R = () => {
|
|
2882
|
+
var C;
|
|
2883
|
+
B(O), (C = qe(O)) == null || C.removeEventListener(f, R);
|
|
2884
|
+
};
|
|
2885
|
+
(x = qe(O)) == null || x.addEventListener(f, R);
|
|
2886
|
+
});
|
|
2887
|
+
b.useEffect(() => {
|
|
2888
|
+
if (!n || !s)
|
|
2889
|
+
return;
|
|
2890
|
+
i.current.__escapeKeyBubbles = w, i.current.__outsidePressBubbles = N;
|
|
2891
|
+
function O(C) {
|
|
2892
|
+
r(!1, C, "ancestor-scroll");
|
|
2893
|
+
}
|
|
2894
|
+
const x = Ce(o.floating);
|
|
2895
|
+
l && x.addEventListener("keydown", I ? P : S, I), h && x.addEventListener(f, A ? G : B, A);
|
|
2896
|
+
let R = [];
|
|
2897
|
+
return c && (W(o.domReference) && (R = Ie(o.domReference)), W(o.floating) && (R = R.concat(Ie(o.floating))), !W(o.reference) && o.reference && o.reference.contextElement && (R = R.concat(Ie(o.reference.contextElement)))), R = R.filter((C) => {
|
|
2898
|
+
var T;
|
|
2899
|
+
return C !== ((T = x.defaultView) == null ? void 0 : T.visualViewport);
|
|
2900
|
+
}), R.forEach((C) => {
|
|
2901
|
+
C.addEventListener("scroll", O, {
|
|
2902
|
+
passive: !0
|
|
2903
|
+
});
|
|
2904
|
+
}), () => {
|
|
2905
|
+
l && x.removeEventListener("keydown", I ? P : S, I), h && x.removeEventListener(f, A ? G : B, A), R.forEach((C) => {
|
|
2906
|
+
C.removeEventListener("scroll", O);
|
|
2907
|
+
});
|
|
2908
|
+
};
|
|
2909
|
+
}, [i, o, l, h, f, n, r, c, s, w, N, S, I, P, B, A, G]), b.useEffect(() => {
|
|
2910
|
+
k.current = !1;
|
|
2911
|
+
}, [h, f]);
|
|
2912
|
+
const L = b.useMemo(() => ({
|
|
2913
|
+
onKeyDown: S,
|
|
2914
|
+
[Ui[u]]: (O) => {
|
|
2915
|
+
m && r(!1, O.nativeEvent, "reference-press");
|
|
2916
|
+
}
|
|
2917
|
+
}), [S, r, m, u]), F = b.useMemo(() => ({
|
|
2918
|
+
onKeyDown: S,
|
|
2919
|
+
onMouseDown() {
|
|
2920
|
+
_.current = !0;
|
|
2921
|
+
},
|
|
2922
|
+
onMouseUp() {
|
|
2923
|
+
_.current = !0;
|
|
2924
|
+
},
|
|
2925
|
+
[zi[f]]: () => {
|
|
2926
|
+
k.current = !0;
|
|
2927
|
+
}
|
|
2928
|
+
}), [S, f]);
|
|
2929
|
+
return b.useMemo(() => s ? {
|
|
2930
|
+
reference: L,
|
|
2931
|
+
floating: F
|
|
2932
|
+
} : {}, [s, L, F]);
|
|
2933
|
+
}
|
|
2934
|
+
function Xi(e) {
|
|
2935
|
+
const {
|
|
2936
|
+
open: t = !1,
|
|
2937
|
+
onOpenChange: n,
|
|
2938
|
+
elements: r
|
|
2939
|
+
} = e, o = Kr(), i = b.useRef({}), [s] = b.useState(() => Fi()), l = Wt() != null;
|
|
2940
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2941
|
+
const d = r.reference;
|
|
2942
|
+
d && !W(d) && Li("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
2943
|
+
}
|
|
2944
|
+
const [a, f] = b.useState(r.reference), m = _e((d, p, g) => {
|
|
2945
|
+
i.current.openEvent = d ? p : void 0, s.emit("openchange", {
|
|
2946
|
+
open: d,
|
|
2947
|
+
event: p,
|
|
2948
|
+
reason: g,
|
|
2949
|
+
nested: l
|
|
2950
|
+
}), n == null || n(d, p, g);
|
|
2951
|
+
}), u = b.useMemo(() => ({
|
|
2952
|
+
setPositionReference: f
|
|
2953
|
+
}), []), c = b.useMemo(() => ({
|
|
2954
|
+
reference: a || r.reference || null,
|
|
2955
|
+
floating: r.floating || null,
|
|
2956
|
+
domReference: r.reference
|
|
2957
|
+
}), [a, r.reference, r.floating]);
|
|
2958
|
+
return b.useMemo(() => ({
|
|
2959
|
+
dataRef: i,
|
|
2960
|
+
open: t,
|
|
2961
|
+
onOpenChange: m,
|
|
2962
|
+
elements: c,
|
|
2963
|
+
events: s,
|
|
2964
|
+
floatingId: o,
|
|
2965
|
+
refs: u
|
|
2966
|
+
}), [t, m, c, s, o, u]);
|
|
2967
|
+
}
|
|
2968
|
+
function Ji(e) {
|
|
2969
|
+
e === void 0 && (e = {});
|
|
2970
|
+
const {
|
|
2971
|
+
nodeId: t
|
|
2972
|
+
} = e, n = Xi({
|
|
2973
|
+
...e,
|
|
2974
|
+
elements: {
|
|
2975
|
+
reference: null,
|
|
2976
|
+
floating: null,
|
|
2977
|
+
...e.elements
|
|
2978
|
+
}
|
|
2979
|
+
}), r = e.rootContext || n, o = r.elements, [i, s] = b.useState(null), [l, a] = b.useState(null), m = (o == null ? void 0 : o.reference) || i, u = b.useRef(null), c = jt();
|
|
2980
|
+
ee(() => {
|
|
2981
|
+
m && (u.current = m);
|
|
2982
|
+
}, [m]);
|
|
2983
|
+
const d = ki({
|
|
2984
|
+
...e,
|
|
2985
|
+
elements: {
|
|
2986
|
+
...o,
|
|
2987
|
+
...l && {
|
|
2988
|
+
reference: l
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
}), p = b.useCallback((_) => {
|
|
2992
|
+
const w = W(_) ? {
|
|
2993
|
+
getBoundingClientRect: () => _.getBoundingClientRect(),
|
|
2994
|
+
contextElement: _
|
|
2995
|
+
} : _;
|
|
2996
|
+
a(w), d.refs.setReference(w);
|
|
2997
|
+
}, [d.refs]), g = b.useCallback((_) => {
|
|
2998
|
+
(W(_) || _ === null) && (u.current = _, s(_)), (W(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2999
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
3000
|
+
// callback ref.
|
|
3001
|
+
_ !== null && !W(_)) && d.refs.setReference(_);
|
|
3002
|
+
}, [d.refs]), v = b.useMemo(() => ({
|
|
3003
|
+
...d.refs,
|
|
3004
|
+
setReference: g,
|
|
3005
|
+
setPositionReference: p,
|
|
3006
|
+
domReference: u
|
|
3007
|
+
}), [d.refs, g, p]), h = b.useMemo(() => ({
|
|
3008
|
+
...d.elements,
|
|
3009
|
+
domReference: m
|
|
3010
|
+
}), [d.elements, m]), k = b.useMemo(() => ({
|
|
3011
|
+
...d,
|
|
3012
|
+
...r,
|
|
3013
|
+
refs: v,
|
|
3014
|
+
elements: h,
|
|
3015
|
+
nodeId: t
|
|
3016
|
+
}), [d, v, h, t, r]);
|
|
3017
|
+
return ee(() => {
|
|
3018
|
+
r.dataRef.current.floatingContext = k;
|
|
3019
|
+
const _ = c == null ? void 0 : c.nodesRef.current.find((w) => w.id === t);
|
|
3020
|
+
_ && (_.context = k);
|
|
3021
|
+
}), b.useMemo(() => ({
|
|
3022
|
+
...d,
|
|
3023
|
+
context: k,
|
|
3024
|
+
refs: v,
|
|
3025
|
+
elements: h
|
|
3026
|
+
}), [d, v, h, k]);
|
|
3027
|
+
}
|
|
3028
|
+
function Qi(e, t) {
|
|
3029
|
+
t === void 0 && (t = {});
|
|
3030
|
+
const {
|
|
3031
|
+
open: n,
|
|
3032
|
+
onOpenChange: r,
|
|
3033
|
+
events: o,
|
|
3034
|
+
dataRef: i,
|
|
3035
|
+
elements: s
|
|
3036
|
+
} = e, {
|
|
3037
|
+
enabled: l = !0,
|
|
3038
|
+
visibleOnly: a = !0
|
|
3039
|
+
} = t, f = b.useRef(!1), m = b.useRef(), u = b.useRef(!0);
|
|
3040
|
+
b.useEffect(() => {
|
|
3041
|
+
if (!l) return;
|
|
3042
|
+
const d = ue(s.domReference);
|
|
3043
|
+
function p() {
|
|
3044
|
+
!n && ae(s.domReference) && s.domReference === Mt(Ce(s.domReference)) && (f.current = !0);
|
|
3045
|
+
}
|
|
3046
|
+
function g() {
|
|
3047
|
+
u.current = !0;
|
|
3048
|
+
}
|
|
3049
|
+
return d.addEventListener("blur", p), d.addEventListener("keydown", g, !0), () => {
|
|
3050
|
+
d.removeEventListener("blur", p), d.removeEventListener("keydown", g, !0);
|
|
3051
|
+
};
|
|
3052
|
+
}, [s.domReference, n, l]), b.useEffect(() => {
|
|
3053
|
+
if (!l) return;
|
|
3054
|
+
function d(p) {
|
|
3055
|
+
let {
|
|
3056
|
+
reason: g
|
|
3057
|
+
} = p;
|
|
3058
|
+
(g === "reference-press" || g === "escape-key") && (f.current = !0);
|
|
3059
|
+
}
|
|
3060
|
+
return o.on("openchange", d), () => {
|
|
3061
|
+
o.off("openchange", d);
|
|
3062
|
+
};
|
|
3063
|
+
}, [o, l]), b.useEffect(() => () => {
|
|
3064
|
+
clearTimeout(m.current);
|
|
3065
|
+
}, []);
|
|
3066
|
+
const c = b.useMemo(() => ({
|
|
3067
|
+
onPointerDown(d) {
|
|
3068
|
+
Dr(d.nativeEvent) || (u.current = !1);
|
|
3069
|
+
},
|
|
3070
|
+
onMouseLeave() {
|
|
3071
|
+
f.current = !1;
|
|
3072
|
+
},
|
|
3073
|
+
onFocus(d) {
|
|
3074
|
+
if (f.current) return;
|
|
3075
|
+
const p = qe(d.nativeEvent);
|
|
3076
|
+
if (a && W(p))
|
|
3077
|
+
try {
|
|
3078
|
+
if (Pr() && Lr()) throw Error();
|
|
3079
|
+
if (!p.matches(":focus-visible")) return;
|
|
3080
|
+
} catch {
|
|
3081
|
+
if (!u.current && !On(p))
|
|
3082
|
+
return;
|
|
3083
|
+
}
|
|
3084
|
+
r(!0, d.nativeEvent, "focus");
|
|
3085
|
+
},
|
|
3086
|
+
onBlur(d) {
|
|
3087
|
+
f.current = !1;
|
|
3088
|
+
const p = d.relatedTarget, g = d.nativeEvent, v = W(p) && p.hasAttribute(Dn("focus-guard")) && p.getAttribute("data-type") === "outside";
|
|
3089
|
+
m.current = window.setTimeout(() => {
|
|
3090
|
+
var h;
|
|
3091
|
+
const k = Mt(s.domReference ? s.domReference.ownerDocument : document);
|
|
3092
|
+
!p && k === s.domReference || ze((h = i.current.floatingContext) == null ? void 0 : h.refs.floating.current, k) || ze(s.domReference, k) || v || r(!1, g, "focus");
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
}), [i, s.domReference, r, a]);
|
|
3096
|
+
return b.useMemo(() => l ? {
|
|
3097
|
+
reference: c
|
|
3098
|
+
} : {}, [l, c]);
|
|
3099
|
+
}
|
|
3100
|
+
const ur = "active", fr = "selected";
|
|
3101
|
+
function rn(e, t, n) {
|
|
3102
|
+
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
3103
|
+
let i = e;
|
|
3104
|
+
if (o && e) {
|
|
3105
|
+
const {
|
|
3106
|
+
[ur]: s,
|
|
3107
|
+
[fr]: l,
|
|
3108
|
+
...a
|
|
3109
|
+
} = e;
|
|
3110
|
+
i = a;
|
|
3111
|
+
}
|
|
3112
|
+
return {
|
|
3113
|
+
...n === "floating" && {
|
|
3114
|
+
tabIndex: -1,
|
|
3115
|
+
[vn]: ""
|
|
3116
|
+
},
|
|
3117
|
+
...i,
|
|
3118
|
+
...t.map((s) => {
|
|
3119
|
+
const l = s ? s[n] : null;
|
|
3120
|
+
return typeof l == "function" ? e ? l(e) : null : l;
|
|
3121
|
+
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
3122
|
+
let [f, m] = a;
|
|
3123
|
+
if (!(o && [ur, fr].includes(f)))
|
|
3124
|
+
if (f.indexOf("on") === 0) {
|
|
3125
|
+
if (r.has(f) || r.set(f, []), typeof m == "function") {
|
|
3126
|
+
var u;
|
|
3127
|
+
(u = r.get(f)) == null || u.push(m), s[f] = function() {
|
|
3128
|
+
for (var c, d = arguments.length, p = new Array(d), g = 0; g < d; g++)
|
|
3129
|
+
p[g] = arguments[g];
|
|
3130
|
+
return (c = r.get(f)) == null ? void 0 : c.map((v) => v(...p)).find((v) => v !== void 0);
|
|
3131
|
+
};
|
|
3132
|
+
}
|
|
3133
|
+
} else
|
|
3134
|
+
s[f] = m;
|
|
3135
|
+
}), s), {})
|
|
3136
|
+
};
|
|
3137
|
+
}
|
|
3138
|
+
function Zi(e) {
|
|
3139
|
+
e === void 0 && (e = []);
|
|
3140
|
+
const t = e.map((l) => l == null ? void 0 : l.reference), n = e.map((l) => l == null ? void 0 : l.floating), r = e.map((l) => l == null ? void 0 : l.item), o = b.useCallback(
|
|
3141
|
+
(l) => rn(l, e, "reference"),
|
|
3142
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3143
|
+
t
|
|
3144
|
+
), i = b.useCallback(
|
|
3145
|
+
(l) => rn(l, e, "floating"),
|
|
3146
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3147
|
+
n
|
|
3148
|
+
), s = b.useCallback(
|
|
3149
|
+
(l) => rn(l, e, "item"),
|
|
3150
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3151
|
+
r
|
|
3152
|
+
);
|
|
3153
|
+
return b.useMemo(() => ({
|
|
3154
|
+
getReferenceProps: o,
|
|
3155
|
+
getFloatingProps: i,
|
|
3156
|
+
getItemProps: s
|
|
3157
|
+
}), [o, i, s]);
|
|
3158
|
+
}
|
|
3159
|
+
let dr = !1;
|
|
3160
|
+
function Ut(e, t, n) {
|
|
3161
|
+
switch (e) {
|
|
3162
|
+
case "vertical":
|
|
3163
|
+
return t;
|
|
3164
|
+
case "horizontal":
|
|
3165
|
+
return n;
|
|
3166
|
+
default:
|
|
3167
|
+
return t || n;
|
|
3168
|
+
}
|
|
3169
|
+
}
|
|
3170
|
+
function pr(e, t) {
|
|
3171
|
+
return Ut(t, e === Mn || e === bt, e === Xe || e === Qe);
|
|
3172
|
+
}
|
|
3173
|
+
function on(e, t, n) {
|
|
3174
|
+
return Ut(t, e === bt, n ? e === Xe : e === Qe) || e === "Enter" || e === " " || e === "";
|
|
3175
|
+
}
|
|
3176
|
+
function ec(e, t, n) {
|
|
3177
|
+
return Ut(t, n ? e === Xe : e === Qe, e === bt);
|
|
3178
|
+
}
|
|
3179
|
+
function mr(e, t, n) {
|
|
3180
|
+
return Ut(t, n ? e === Qe : e === Xe, e === Mn);
|
|
3181
|
+
}
|
|
3182
|
+
function Wr(e, t) {
|
|
3183
|
+
const {
|
|
3184
|
+
open: n,
|
|
3185
|
+
onOpenChange: r,
|
|
3186
|
+
elements: o
|
|
3187
|
+
} = e, {
|
|
3188
|
+
listRef: i,
|
|
3189
|
+
activeIndex: s,
|
|
3190
|
+
onNavigate: l = () => {
|
|
3191
|
+
},
|
|
3192
|
+
enabled: a = !0,
|
|
3193
|
+
selectedIndex: f = null,
|
|
3194
|
+
allowEscape: m = !1,
|
|
3195
|
+
loop: u = !1,
|
|
3196
|
+
nested: c = !1,
|
|
3197
|
+
rtl: d = !1,
|
|
3198
|
+
virtual: p = !1,
|
|
3199
|
+
focusItemOnOpen: g = "auto",
|
|
3200
|
+
focusItemOnHover: v = !0,
|
|
3201
|
+
openOnArrowKeyDown: h = !0,
|
|
3202
|
+
disabledIndices: k = void 0,
|
|
3203
|
+
orientation: _ = "vertical",
|
|
3204
|
+
cols: w = 1,
|
|
3205
|
+
scrollItemIntoView: N = !0,
|
|
3206
|
+
virtualItemRef: I,
|
|
3207
|
+
itemSizes: A,
|
|
3208
|
+
dense: S = !1
|
|
3209
|
+
} = t;
|
|
3210
|
+
process.env.NODE_ENV !== "production" && (m && (u || nn("`useListNavigation` looping must be enabled to allow escaping."), p || nn("`useListNavigation` must be virtual to allow escaping.")), _ === "vertical" && w > 1 && nn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
|
|
3211
|
+
const P = Wi(o.floating), B = Oe(P), G = Wt(), L = jt(), F = _e(l), O = b.useRef(g), x = b.useRef(f ?? -1), R = b.useRef(null), C = b.useRef(!0), T = b.useRef(F), H = b.useRef(!!o.floating), M = b.useRef(n), K = b.useRef(!1), Z = b.useRef(!1), X = Oe(k), te = Oe(n), j = Oe(N), Q = Oe(f), [ne, gt] = b.useState(), [Fn, Bn] = b.useState(), Ze = _e(function($, J, D) {
|
|
3212
|
+
D === void 0 && (D = !1);
|
|
3213
|
+
function U(Y) {
|
|
3214
|
+
p ? (gt(Y.id), L == null || L.events.emit("virtualfocus", Y), I && (I.current = Y)) : rr(Y, {
|
|
3215
|
+
preventScroll: !0,
|
|
3216
|
+
// Mac Safari does not move the virtual cursor unless the focus call
|
|
3217
|
+
// is sync. However, for the very first focus call, we need to wait
|
|
3218
|
+
// for the position to be ready in order to prevent unwanted
|
|
3219
|
+
// scrolling. This means the virtual cursor will not move to the first
|
|
3220
|
+
// item when first opening the floating element, but will on
|
|
3221
|
+
// subsequent calls. `preventScroll` is supported in modern Safari,
|
|
3222
|
+
// so we can use that instead.
|
|
3223
|
+
// iOS Safari must be async or the first item will not be focused.
|
|
3224
|
+
sync: Lr() && Pr() ? dr || K.current : !1
|
|
3225
|
+
});
|
|
3226
|
+
}
|
|
3227
|
+
const le = $.current[J.current];
|
|
3228
|
+
le && U(le), requestAnimationFrame(() => {
|
|
3229
|
+
const Y = $.current[J.current] || le;
|
|
3230
|
+
if (!Y) return;
|
|
3231
|
+
le || U(Y);
|
|
3232
|
+
const he = j.current;
|
|
3233
|
+
he && Xt && (D || !C.current) && (Y.scrollIntoView == null || Y.scrollIntoView(typeof he == "boolean" ? {
|
|
3234
|
+
block: "nearest",
|
|
3235
|
+
inline: "nearest"
|
|
3236
|
+
} : he));
|
|
3237
|
+
});
|
|
3238
|
+
});
|
|
3239
|
+
ee(() => {
|
|
3240
|
+
document.createElement("div").focus({
|
|
3241
|
+
get preventScroll() {
|
|
3242
|
+
return dr = !0, !1;
|
|
3243
|
+
}
|
|
3244
|
+
});
|
|
3245
|
+
}, []), ee(() => {
|
|
3246
|
+
a && (n && o.floating ? O.current && f != null && (Z.current = !0, x.current = f, F(f)) : H.current && (x.current = -1, T.current(null)));
|
|
3247
|
+
}, [a, n, o.floating, f, F]), ee(() => {
|
|
3248
|
+
if (a && n && o.floating)
|
|
3249
|
+
if (s == null) {
|
|
3250
|
+
if (K.current = !1, Q.current != null)
|
|
3251
|
+
return;
|
|
3252
|
+
if (H.current && (x.current = -1, Ze(i, x)), (!M.current || !H.current) && O.current && (R.current != null || O.current === !0 && R.current == null)) {
|
|
3253
|
+
let $ = 0;
|
|
3254
|
+
const J = () => {
|
|
3255
|
+
i.current[0] == null ? ($ < 2 && ($ ? requestAnimationFrame : queueMicrotask)(J), $++) : (x.current = R.current == null || on(R.current, _, d) || c ? tn(i, X.current) : tr(i, X.current), R.current = null, F(x.current));
|
|
3256
|
+
};
|
|
3257
|
+
J();
|
|
3258
|
+
}
|
|
3259
|
+
} else ot(i, s) || (x.current = s, Ze(i, x, Z.current), Z.current = !1);
|
|
3260
|
+
}, [a, n, o.floating, s, Q, c, i, _, d, F, Ze, X]), ee(() => {
|
|
3261
|
+
var $;
|
|
3262
|
+
if (!a || o.floating || !L || p || !H.current)
|
|
3263
|
+
return;
|
|
3264
|
+
const J = L.nodesRef.current, D = ($ = J.find((Y) => Y.id === G)) == null || ($ = $.context) == null ? void 0 : $.elements.floating, U = Mt(Ce(o.floating)), le = J.some((Y) => Y.context && ze(Y.context.elements.floating, U));
|
|
3265
|
+
D && !le && C.current && D.focus({
|
|
3266
|
+
preventScroll: !0
|
|
3267
|
+
});
|
|
3268
|
+
}, [a, o.floating, L, G, p]), ee(() => {
|
|
3269
|
+
if (!a || !L || !p || G) return;
|
|
3270
|
+
function $(J) {
|
|
3271
|
+
Bn(J.id), I && (I.current = J);
|
|
3272
|
+
}
|
|
3273
|
+
return L.events.on("virtualfocus", $), () => {
|
|
3274
|
+
L.events.off("virtualfocus", $);
|
|
3275
|
+
};
|
|
3276
|
+
}, [a, L, p, G, I]), ee(() => {
|
|
3277
|
+
T.current = F, H.current = !!o.floating;
|
|
3278
|
+
}), ee(() => {
|
|
3279
|
+
n || (R.current = null);
|
|
3280
|
+
}, [n]), ee(() => {
|
|
3281
|
+
M.current = n;
|
|
3282
|
+
}, [n]);
|
|
3283
|
+
const $n = s != null, Xt = b.useMemo(() => {
|
|
3284
|
+
function $(D) {
|
|
3285
|
+
if (!n) return;
|
|
3286
|
+
const U = i.current.indexOf(D);
|
|
3287
|
+
U !== -1 && F(U);
|
|
3288
|
+
}
|
|
3289
|
+
return {
|
|
3290
|
+
onFocus(D) {
|
|
3291
|
+
let {
|
|
3292
|
+
currentTarget: U
|
|
3293
|
+
} = D;
|
|
3294
|
+
$(U);
|
|
3295
|
+
},
|
|
3296
|
+
onClick: (D) => {
|
|
3297
|
+
let {
|
|
3298
|
+
currentTarget: U
|
|
3299
|
+
} = D;
|
|
3300
|
+
return U.focus({
|
|
3301
|
+
preventScroll: !0
|
|
3302
|
+
});
|
|
3303
|
+
},
|
|
3304
|
+
// Safari
|
|
3305
|
+
...v && {
|
|
3306
|
+
onMouseMove(D) {
|
|
3307
|
+
let {
|
|
3308
|
+
currentTarget: U
|
|
3309
|
+
} = D;
|
|
3310
|
+
$(U);
|
|
3311
|
+
},
|
|
3312
|
+
onPointerLeave(D) {
|
|
3313
|
+
let {
|
|
3314
|
+
pointerType: U
|
|
3315
|
+
} = D;
|
|
3316
|
+
!C.current || U === "touch" || (x.current = -1, Ze(i, x), F(null), p || rr(B.current, {
|
|
3317
|
+
preventScroll: !0
|
|
3318
|
+
}));
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3322
|
+
}, [n, B, Ze, v, i, F, p]), et = _e(($) => {
|
|
3323
|
+
if (C.current = !1, K.current = !0, !te.current && $.currentTarget === B.current)
|
|
3324
|
+
return;
|
|
3325
|
+
if (c && mr($.key, _, d)) {
|
|
3326
|
+
pe($), r(!1, $.nativeEvent, "list-navigation"), ae(o.domReference) && !p && o.domReference.focus();
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3329
|
+
const J = x.current, D = tn(i, k), U = tr(i, k);
|
|
3330
|
+
if ($.key === "Home" && (pe($), x.current = D, F(x.current)), $.key === "End" && (pe($), x.current = U, F(x.current)), w > 1) {
|
|
3331
|
+
const le = A || Array.from({
|
|
3332
|
+
length: i.current.length
|
|
3333
|
+
}, () => ({
|
|
3334
|
+
width: 1,
|
|
3335
|
+
height: 1
|
|
3336
|
+
})), Y = Ni(le, w, S), he = Y.findIndex((be) => be != null && !Ot(i.current, be, k)), ht = Y.reduce((be, Te, kt) => Te != null && !Ot(i.current, Te, k) ? kt : be, -1), tt = Y[Ci({
|
|
3337
|
+
current: Y.map((be) => be != null ? i.current[be] : null)
|
|
3338
|
+
}, {
|
|
3339
|
+
event: $,
|
|
3340
|
+
orientation: _,
|
|
3341
|
+
loop: u,
|
|
3342
|
+
cols: w,
|
|
3343
|
+
// treat undefined (empty grid spaces) as disabled indices so we
|
|
3344
|
+
// don't end up in them
|
|
3345
|
+
disabledIndices: Ai([...k || i.current.map((be, Te) => Ot(i.current, Te) ? Te : void 0), void 0], Y),
|
|
3346
|
+
minIndex: he,
|
|
3347
|
+
maxIndex: ht,
|
|
3348
|
+
prevIndex: Ii(
|
|
3349
|
+
x.current > U ? D : x.current,
|
|
3350
|
+
le,
|
|
3351
|
+
Y,
|
|
3352
|
+
w,
|
|
3353
|
+
// use a corner matching the edge closest to the direction
|
|
3354
|
+
// we're moving in so we don't end up in the same item. Prefer
|
|
3355
|
+
// top/left over bottom/right.
|
|
3356
|
+
$.key === bt ? "bl" : $.key === Qe ? "tr" : "tl"
|
|
3357
|
+
),
|
|
3358
|
+
stopEvent: !0
|
|
3359
|
+
})];
|
|
3360
|
+
if (tt != null && (x.current = tt, F(x.current)), _ === "both")
|
|
3361
|
+
return;
|
|
3362
|
+
}
|
|
3363
|
+
if (pr($.key, _)) {
|
|
3364
|
+
if (pe($), n && !p && Mt($.currentTarget.ownerDocument) === $.currentTarget) {
|
|
3365
|
+
x.current = on($.key, _, d) ? D : U, F(x.current);
|
|
3366
|
+
return;
|
|
3367
|
+
}
|
|
3368
|
+
on($.key, _, d) ? u ? x.current = J >= U ? m && J !== i.current.length ? -1 : D : se(i, {
|
|
3369
|
+
startingIndex: J,
|
|
3370
|
+
disabledIndices: k
|
|
3371
|
+
}) : x.current = Math.min(U, se(i, {
|
|
3372
|
+
startingIndex: J,
|
|
3373
|
+
disabledIndices: k
|
|
3374
|
+
})) : u ? x.current = J <= D ? m && J !== -1 ? i.current.length : U : se(i, {
|
|
3375
|
+
startingIndex: J,
|
|
3376
|
+
decrement: !0,
|
|
3377
|
+
disabledIndices: k
|
|
3378
|
+
}) : x.current = Math.max(D, se(i, {
|
|
3379
|
+
startingIndex: J,
|
|
3380
|
+
decrement: !0,
|
|
3381
|
+
disabledIndices: k
|
|
3382
|
+
})), ot(i, x.current) ? F(null) : F(x.current);
|
|
3383
|
+
}
|
|
3384
|
+
}), _t = b.useMemo(() => p && n && $n && {
|
|
3385
|
+
"aria-activedescendant": Fn || ne
|
|
3386
|
+
}, [p, n, $n, Fn, ne]), Hn = b.useMemo(() => ({
|
|
3387
|
+
"aria-orientation": _ === "both" ? void 0 : _,
|
|
3388
|
+
...!Ds(o.domReference) && _t,
|
|
3389
|
+
onKeyDown: et,
|
|
3390
|
+
onPointerMove() {
|
|
3391
|
+
C.current = !0;
|
|
3392
|
+
}
|
|
3393
|
+
}), [_t, et, o.domReference, _]), Gn = b.useMemo(() => {
|
|
3394
|
+
function $(D) {
|
|
3395
|
+
g === "auto" && Cs(D.nativeEvent) && (O.current = !0);
|
|
3396
|
+
}
|
|
3397
|
+
function J(D) {
|
|
3398
|
+
O.current = g, g === "auto" && Dr(D.nativeEvent) && (O.current = !0);
|
|
3399
|
+
}
|
|
3400
|
+
return {
|
|
3401
|
+
..._t,
|
|
3402
|
+
onKeyDown(D) {
|
|
3403
|
+
C.current = !1;
|
|
3404
|
+
const U = D.key.indexOf("Arrow") === 0, le = ec(D.key, _, d), Y = mr(D.key, _, d), he = pr(D.key, _), ht = (c ? le : he) || D.key === "Enter" || D.key.trim() === "";
|
|
3405
|
+
if (p && n) {
|
|
3406
|
+
const kt = L == null ? void 0 : L.nodesRef.current.find((yt) => yt.parentId == null), Se = L && kt ? Ki(L.nodesRef.current, kt.id) : null;
|
|
3407
|
+
if (U && Se && I) {
|
|
3408
|
+
const yt = new KeyboardEvent("keydown", {
|
|
3409
|
+
key: D.key,
|
|
3410
|
+
bubbles: !0
|
|
3411
|
+
});
|
|
3412
|
+
if (le || Y) {
|
|
3413
|
+
var tt, be;
|
|
3414
|
+
const no = ((tt = Se.context) == null ? void 0 : tt.elements.domReference) === D.currentTarget, Vn = Y && !no ? (be = Se.context) == null ? void 0 : be.elements.domReference : le ? i.current.find((qn) => (qn == null ? void 0 : qn.id) === ne) : null;
|
|
3415
|
+
Vn && (pe(D), Vn.dispatchEvent(yt), Bn(void 0));
|
|
3416
|
+
}
|
|
3417
|
+
if (he && Se.context && Se.context.open && Se.parentId && D.currentTarget !== Se.context.elements.domReference) {
|
|
3418
|
+
var Te;
|
|
3419
|
+
pe(D), (Te = Se.context.elements.domReference) == null || Te.dispatchEvent(yt);
|
|
3420
|
+
return;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
return et(D);
|
|
3424
|
+
}
|
|
3425
|
+
if (!(!n && !h && U)) {
|
|
3426
|
+
if (ht && (R.current = c && he ? null : D.key), c) {
|
|
3427
|
+
le && (pe(D), n ? (x.current = tn(i, X.current), F(x.current)) : r(!0, D.nativeEvent, "list-navigation"));
|
|
3428
|
+
return;
|
|
3429
|
+
}
|
|
3430
|
+
he && (f != null && (x.current = f), pe(D), !n && h ? r(!0, D.nativeEvent, "list-navigation") : et(D), n && F(x.current));
|
|
3431
|
+
}
|
|
3432
|
+
},
|
|
3433
|
+
onFocus() {
|
|
3434
|
+
n && !p && F(null);
|
|
3435
|
+
},
|
|
3436
|
+
onPointerDown: J,
|
|
3437
|
+
onMouseDown: $,
|
|
3438
|
+
onClick: $
|
|
3439
|
+
};
|
|
3440
|
+
}, [ne, _t, et, X, g, i, c, F, r, n, h, _, d, f, L, p, I]);
|
|
3441
|
+
return b.useMemo(() => a ? {
|
|
3442
|
+
reference: Gn,
|
|
3443
|
+
floating: Hn,
|
|
3444
|
+
item: Xt
|
|
3445
|
+
} : {}, [a, Gn, Hn, Xt]);
|
|
3446
|
+
}
|
|
3447
|
+
const tc = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
3448
|
+
function nc(e, t) {
|
|
3449
|
+
var n;
|
|
3450
|
+
t === void 0 && (t = {});
|
|
3451
|
+
const {
|
|
3452
|
+
open: r,
|
|
3453
|
+
floatingId: o
|
|
3454
|
+
} = e, {
|
|
3455
|
+
enabled: i = !0,
|
|
3456
|
+
role: s = "dialog"
|
|
3457
|
+
} = t, l = (n = tc.get(s)) != null ? n : s, a = Kr(), m = Wt() != null, u = b.useMemo(() => l === "tooltip" || s === "label" ? {
|
|
3458
|
+
["aria-" + (s === "label" ? "labelledby" : "describedby")]: r ? o : void 0
|
|
3459
|
+
} : {
|
|
3460
|
+
"aria-expanded": r ? "true" : "false",
|
|
3461
|
+
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
3462
|
+
"aria-controls": r ? o : void 0,
|
|
3463
|
+
...l === "listbox" && {
|
|
3464
|
+
role: "combobox"
|
|
3465
|
+
},
|
|
3466
|
+
...l === "menu" && {
|
|
3467
|
+
id: a
|
|
3468
|
+
},
|
|
3469
|
+
...l === "menu" && m && {
|
|
3470
|
+
role: "menuitem"
|
|
3471
|
+
},
|
|
3472
|
+
...s === "select" && {
|
|
3473
|
+
"aria-autocomplete": "none"
|
|
3474
|
+
},
|
|
3475
|
+
...s === "combobox" && {
|
|
3476
|
+
"aria-autocomplete": "list"
|
|
3477
|
+
}
|
|
3478
|
+
}, [l, o, m, r, a, s]), c = b.useMemo(() => {
|
|
3479
|
+
const p = {
|
|
3480
|
+
id: o,
|
|
3481
|
+
...l && {
|
|
3482
|
+
role: l
|
|
3483
|
+
}
|
|
3484
|
+
};
|
|
3485
|
+
return l === "tooltip" || s === "label" ? p : {
|
|
3486
|
+
...p,
|
|
3487
|
+
...l === "menu" && {
|
|
3488
|
+
"aria-labelledby": a
|
|
3489
|
+
}
|
|
3490
|
+
};
|
|
3491
|
+
}, [l, o, a, s]), d = b.useCallback((p) => {
|
|
3492
|
+
let {
|
|
3493
|
+
active: g,
|
|
3494
|
+
selected: v
|
|
3495
|
+
} = p;
|
|
3496
|
+
const h = {
|
|
3497
|
+
role: "option",
|
|
3498
|
+
...g && {
|
|
3499
|
+
id: o + "-option"
|
|
3500
|
+
}
|
|
3501
|
+
};
|
|
3502
|
+
switch (s) {
|
|
3503
|
+
case "select":
|
|
3504
|
+
return {
|
|
3505
|
+
...h,
|
|
3506
|
+
"aria-selected": g && v
|
|
3507
|
+
};
|
|
3508
|
+
case "combobox":
|
|
3509
|
+
return {
|
|
3510
|
+
...h,
|
|
3511
|
+
...g && {
|
|
3512
|
+
"aria-selected": !0
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
}
|
|
3516
|
+
return {};
|
|
3517
|
+
}, [o, s]);
|
|
3518
|
+
return b.useMemo(() => i ? {
|
|
3519
|
+
reference: u,
|
|
3520
|
+
floating: c,
|
|
3521
|
+
item: d
|
|
3522
|
+
} : {}, [i, u, c, d]);
|
|
3523
|
+
}
|
|
3524
|
+
function rc(e, t) {
|
|
3525
|
+
const [n, r] = b.useState(e);
|
|
3526
|
+
return e && !n && r(!0), b.useEffect(() => {
|
|
3527
|
+
if (!e && n) {
|
|
3528
|
+
const o = setTimeout(() => r(!1), t);
|
|
3529
|
+
return () => clearTimeout(o);
|
|
3530
|
+
}
|
|
3531
|
+
}, [e, n, t]), n;
|
|
3532
|
+
}
|
|
3533
|
+
function oc(e, t) {
|
|
3534
|
+
t === void 0 && (t = {});
|
|
3535
|
+
const {
|
|
3536
|
+
open: n,
|
|
3537
|
+
elements: {
|
|
3538
|
+
floating: r
|
|
3539
|
+
}
|
|
3540
|
+
} = e, {
|
|
3541
|
+
duration: o = 250
|
|
3542
|
+
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = b.useState("unmounted"), f = rc(n, s);
|
|
3543
|
+
return !f && l === "close" && a("unmounted"), ee(() => {
|
|
3544
|
+
if (r) {
|
|
3545
|
+
if (n) {
|
|
3546
|
+
a("initial");
|
|
3547
|
+
const m = requestAnimationFrame(() => {
|
|
3548
|
+
a("open");
|
|
3549
|
+
});
|
|
3550
|
+
return () => {
|
|
3551
|
+
cancelAnimationFrame(m);
|
|
3552
|
+
};
|
|
3553
|
+
}
|
|
3554
|
+
a("close");
|
|
3555
|
+
}
|
|
3556
|
+
}, [n, r]), {
|
|
3557
|
+
isMounted: f,
|
|
3558
|
+
status: l
|
|
3559
|
+
};
|
|
3560
|
+
}
|
|
3561
|
+
const Pn = (e = {}) => {
|
|
3562
|
+
const t = {
|
|
3563
|
+
...e,
|
|
3564
|
+
floatingUiOptions: e.floatingUiOptions ?? {},
|
|
3565
|
+
floatingUiFlipOptions: e.floatingUiFlipOptions ?? {},
|
|
3566
|
+
floatingUiInteractions: e.floatingUiInteractions ?? (() => []),
|
|
3567
|
+
action: e.action ?? "click",
|
|
3568
|
+
placement: e.placement ?? "top",
|
|
3569
|
+
offset: e.offset ?? 0,
|
|
3570
|
+
enablePreciseTracking: e.enablePreciseTracking ?? !1,
|
|
3571
|
+
arrowRef: e.arrowRef ?? null,
|
|
3572
|
+
hasDelayGroup: e.hasDelayGroup ?? !1
|
|
3573
|
+
}, n = b.useMemo(() => t.action, []), r = [
|
|
3574
|
+
vi(t.offset),
|
|
3575
|
+
Ei({
|
|
3576
|
+
fallbackAxisSideDirection: "end",
|
|
3577
|
+
//fallbackStrategy: 'initialPlacement',
|
|
3578
|
+
crossAxis: !1,
|
|
3579
|
+
// Useful with `shift()`, see: https://floating-ui.com/docs/flip
|
|
3580
|
+
...t.boundary ? { boundary: t.boundary } : {},
|
|
3581
|
+
...t.floatingUiFlipOptions
|
|
3582
|
+
}),
|
|
3583
|
+
wi({
|
|
3584
|
+
limiter: xi({ offset: 10 }),
|
|
3585
|
+
...t.boundary ? { boundary: t.boundary } : {}
|
|
3586
|
+
})
|
|
3587
|
+
];
|
|
3588
|
+
n === "hover" && r.push(Ri({
|
|
3589
|
+
strategy: "escaped",
|
|
3590
|
+
...t.boundary ? { boundary: t.boundary } : {}
|
|
3591
|
+
})), t.arrowRef && r.push(Ti({ element: t.arrowRef }));
|
|
3592
|
+
const [o, i] = b.useState(!1), { context: s, refs: l, placement: a, floatingStyles: f } = Ji({
|
|
3593
|
+
open: o,
|
|
3594
|
+
onOpenChange: i,
|
|
3595
|
+
placement: t.placement,
|
|
3596
|
+
strategy: "fixed",
|
|
3597
|
+
// Use `fixed` to contain within the viewport (as opposed to containing block with `absolute`)
|
|
3598
|
+
whileElementsMounted(v, h, k) {
|
|
3599
|
+
return di(v, h, k, {
|
|
3600
|
+
animationFrame: t.enablePreciseTracking
|
|
3601
|
+
});
|
|
3602
|
+
},
|
|
3603
|
+
...t.floatingUiOptions,
|
|
3604
|
+
middleware: [
|
|
3605
|
+
...r,
|
|
3606
|
+
...t.floatingUiOptions.middleware ?? []
|
|
3607
|
+
]
|
|
3608
|
+
}), u = [
|
|
3609
|
+
nc(s, { role: "tooltip" })
|
|
3610
|
+
];
|
|
3611
|
+
if (n === "click")
|
|
3612
|
+
u.push(ji(s, { toggle: !0 })), u.push(Yi(s));
|
|
3613
|
+
else if (n === "hover") {
|
|
3614
|
+
u.push(Qi(s));
|
|
3615
|
+
const { delay: v } = qi(s), h = t.hasDelayGroup ? v : {
|
|
3616
|
+
open: 500,
|
|
3617
|
+
// Fallback time to open after if the cursor never "rests"
|
|
3618
|
+
close: 200
|
|
3619
|
+
// Allows the user to move the cursor from anchor to tooltip without closing
|
|
3620
|
+
};
|
|
3621
|
+
u.push(Hi(s, {
|
|
3622
|
+
restMs: 20,
|
|
3623
|
+
// User's cursor must be at rest before opening
|
|
3624
|
+
delay: h
|
|
3625
|
+
}));
|
|
3626
|
+
}
|
|
3627
|
+
const { getReferenceProps: c, getFloatingProps: d, getItemProps: p } = Zi([
|
|
3628
|
+
...u,
|
|
3629
|
+
...t.floatingUiInteractions(s)
|
|
3630
|
+
]), { isMounted: g } = oc(s, { duration: { open: 0, close: 500 } });
|
|
3631
|
+
return b.useEffect(() => {
|
|
3632
|
+
const v = l.floating.current;
|
|
3633
|
+
if (!v)
|
|
3634
|
+
return;
|
|
3635
|
+
const h = v.matches(":popover-open");
|
|
3636
|
+
o && !h ? v.showPopover() : !o && h && v.hidePopover();
|
|
3637
|
+
}, [o, l.floating]), {
|
|
3638
|
+
context: s,
|
|
3639
|
+
isOpen: o,
|
|
3640
|
+
setIsOpen: i,
|
|
3641
|
+
isMounted: g,
|
|
3642
|
+
refs: l,
|
|
3643
|
+
placement: a,
|
|
3644
|
+
floatingStyles: f,
|
|
3645
|
+
getReferenceProps: c,
|
|
3646
|
+
getFloatingProps: d,
|
|
3647
|
+
getItemProps: p
|
|
3648
|
+
};
|
|
3649
|
+
}, sc = (e) => {
|
|
3650
|
+
const {
|
|
3651
|
+
context: {
|
|
3652
|
+
placement: t,
|
|
3653
|
+
elements: { floating: n },
|
|
3654
|
+
middlewareData: { arrow: r }
|
|
3655
|
+
},
|
|
3656
|
+
staticOffset: o
|
|
3657
|
+
} = e;
|
|
3658
|
+
if (!n)
|
|
3659
|
+
return null;
|
|
3660
|
+
const [i, s] = t.split("-");
|
|
3661
|
+
return {
|
|
3662
|
+
side: ((a) => {
|
|
3663
|
+
switch (a) {
|
|
3664
|
+
case "top":
|
|
3665
|
+
return "bottom";
|
|
3666
|
+
case "bottom":
|
|
3667
|
+
return "top";
|
|
3668
|
+
case "left":
|
|
3669
|
+
return "right";
|
|
3670
|
+
case "right":
|
|
3671
|
+
return "left";
|
|
3672
|
+
default:
|
|
3673
|
+
return a;
|
|
3674
|
+
}
|
|
3675
|
+
})(i),
|
|
3676
|
+
arrowX: o || (typeof (r == null ? void 0 : r.x) == "number" ? `${r.x}px` : void 0),
|
|
3677
|
+
arrowY: o || (typeof (r == null ? void 0 : r.y) == "number" ? `${r.y}px` : void 0)
|
|
3678
|
+
};
|
|
3679
|
+
}, lt = (...e) => {
|
|
3680
|
+
const t = e.filter(Boolean);
|
|
3681
|
+
return t.length <= 1 ? t[0] || null : (n) => {
|
|
3682
|
+
t.forEach((r) => {
|
|
3683
|
+
typeof r == "function" ? r(n) : r && (r.current = n);
|
|
3684
|
+
});
|
|
3685
|
+
};
|
|
3686
|
+
}, jr = b.createContext(null), ic = () => {
|
|
3687
|
+
const e = b.use(jr);
|
|
3688
|
+
if (e === null)
|
|
3689
|
+
throw new Error("Missing SelectContext provider");
|
|
3690
|
+
return e;
|
|
3691
|
+
}, cc = (e) => {
|
|
3692
|
+
const { optionKey: t, label: n, ...r } = e, { selectedOption: o, selectOption: i, getItemProps: s } = ic(), l = { optionKey: t, label: n };
|
|
3693
|
+
return /* @__PURE__ */ y("li", { "aria-selected": typeof o == "string" && o === t, children: /* @__PURE__ */ y(
|
|
3694
|
+
de,
|
|
3695
|
+
{
|
|
3696
|
+
unstyled: !0,
|
|
3697
|
+
role: "option",
|
|
3698
|
+
...r,
|
|
3699
|
+
className: E(
|
|
3700
|
+
pn["bk-select__option"],
|
|
3701
|
+
r.className
|
|
3702
|
+
),
|
|
3703
|
+
...s({
|
|
3704
|
+
onClick: () => {
|
|
3705
|
+
i(l);
|
|
3706
|
+
}
|
|
3707
|
+
}),
|
|
3708
|
+
children: n ?? r.children
|
|
3709
|
+
}
|
|
3710
|
+
) });
|
|
3711
|
+
}, Bl = Object.assign(
|
|
3712
|
+
(e) => {
|
|
3713
|
+
const { children: t, unstyled: n = !1, searchable: r, ...o } = e, i = b.useRef(null), [s, l] = b.useState(null), a = b.useRef([]), [f, m] = b.useState(null), {
|
|
3714
|
+
refs: u,
|
|
3715
|
+
placement: c,
|
|
3716
|
+
floatingStyles: d,
|
|
3717
|
+
getReferenceProps: p,
|
|
3718
|
+
getFloatingProps: g,
|
|
3719
|
+
getItemProps: v,
|
|
3720
|
+
setIsOpen: h
|
|
3721
|
+
} = Pn({
|
|
3722
|
+
placement: "bottom",
|
|
3723
|
+
floatingUiFlipOptions: {
|
|
3724
|
+
fallbackAxisSideDirection: "none",
|
|
3725
|
+
fallbackStrategy: "initialPlacement"
|
|
3726
|
+
},
|
|
3727
|
+
floatingUiInteractions: (_) => [
|
|
3728
|
+
Wr(_, {
|
|
3729
|
+
listRef: a,
|
|
3730
|
+
activeIndex: f,
|
|
3731
|
+
onNavigate: m
|
|
3732
|
+
})
|
|
3733
|
+
]
|
|
3734
|
+
}), k = b.useMemo(() => ({
|
|
3735
|
+
selectedOption: (s == null ? void 0 : s.optionKey) ?? null,
|
|
3736
|
+
selectOption: (_) => {
|
|
3737
|
+
var w;
|
|
3738
|
+
l(_), h(!1), (w = i.current) == null || w.focus();
|
|
3739
|
+
},
|
|
3740
|
+
getItemProps: v
|
|
3741
|
+
}), [s]);
|
|
3742
|
+
return /* @__PURE__ */ V(jr.Provider, { value: k, children: [
|
|
3743
|
+
/* @__PURE__ */ V(
|
|
3744
|
+
de,
|
|
3745
|
+
{
|
|
3746
|
+
unstyled: !0,
|
|
3747
|
+
...o,
|
|
3748
|
+
className: E(
|
|
3749
|
+
"bk",
|
|
3750
|
+
{ [pn["bk-select"]]: !n },
|
|
3751
|
+
o.className
|
|
3752
|
+
),
|
|
3753
|
+
...p(),
|
|
3754
|
+
ref: lt(i, u.setReference),
|
|
3755
|
+
children: [
|
|
3756
|
+
/* @__PURE__ */ y(
|
|
3757
|
+
Cr,
|
|
3758
|
+
{
|
|
3759
|
+
tabIndex: -1,
|
|
3760
|
+
placeholder: "Select an option",
|
|
3761
|
+
value: s === null ? "" : s.label,
|
|
3762
|
+
onChange: () => {
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
),
|
|
3766
|
+
/* @__PURE__ */ y(ie, { icon: "caret-down" })
|
|
3767
|
+
]
|
|
3768
|
+
}
|
|
3769
|
+
),
|
|
3770
|
+
/* @__PURE__ */ y(
|
|
3771
|
+
"ul",
|
|
3772
|
+
{
|
|
3773
|
+
ref: u.setFloating,
|
|
3774
|
+
"data-placement": c,
|
|
3775
|
+
...g({
|
|
3776
|
+
popover: "manual",
|
|
3777
|
+
style: d,
|
|
3778
|
+
className: pn["bk-select__dropdown"]
|
|
3779
|
+
}),
|
|
3780
|
+
tabIndex: void 0,
|
|
3781
|
+
children: t
|
|
3782
|
+
}
|
|
3783
|
+
)
|
|
3784
|
+
] });
|
|
3785
|
+
},
|
|
3786
|
+
{ Option: cc }
|
|
3787
|
+
), ac = "_6177Wa_bk-input-field", lc = "_6177Wa_bk-input-field__control", uc = "_6177Wa_bk-input-field__label", sn = { "bk-input-field": ac, "bk-input-field__control": lc, "bk-input-field__label": uc }, $l = (e) => {
|
|
3788
|
+
const {
|
|
3789
|
+
unstyled: t = !1,
|
|
3790
|
+
label: n,
|
|
3791
|
+
labelProps: r = {},
|
|
3792
|
+
wrapperProps: o = {},
|
|
3793
|
+
...i
|
|
3794
|
+
} = e, s = b.useId(), l = Or();
|
|
3795
|
+
return /* @__PURE__ */ V(
|
|
3796
|
+
"div",
|
|
3797
|
+
{
|
|
3798
|
+
...o,
|
|
3799
|
+
className: E(
|
|
3800
|
+
"bk",
|
|
3801
|
+
{ [sn["bk-input-field"]]: !t },
|
|
3802
|
+
o.className
|
|
3803
|
+
),
|
|
3804
|
+
children: [
|
|
3805
|
+
n && /* @__PURE__ */ y(
|
|
3806
|
+
"label",
|
|
3807
|
+
{
|
|
3808
|
+
htmlFor: s,
|
|
3809
|
+
...r,
|
|
3810
|
+
className: E(sn["bk-input-field__label"], r.className),
|
|
3811
|
+
children: n
|
|
3812
|
+
}
|
|
3813
|
+
),
|
|
3814
|
+
/* @__PURE__ */ y(
|
|
3815
|
+
Cr,
|
|
3816
|
+
{
|
|
3817
|
+
...i,
|
|
3818
|
+
id: s,
|
|
3819
|
+
form: l.formId,
|
|
3820
|
+
className: E(sn["bk-input-field__control"], i.className)
|
|
3821
|
+
}
|
|
3822
|
+
)
|
|
3823
|
+
]
|
|
3824
|
+
}
|
|
3825
|
+
);
|
|
3826
|
+
}, fc = "Xja0na_bk-progress-bar", dc = "Xja0na_bk-progress-bar__hint-text", pc = "Xja0na_bk-progress-bar__label", cn = { "bk-progress-bar": fc, "bk-progress-bar__hint-text": dc, "bk-progress-bar__label": pc }, Hl = (e) => {
|
|
3827
|
+
const {
|
|
3828
|
+
unstyled: t = !1,
|
|
3829
|
+
progress: n = 0,
|
|
3830
|
+
label: r = void 0,
|
|
3831
|
+
hintText: o = void 0,
|
|
3832
|
+
...i
|
|
3833
|
+
} = e;
|
|
3834
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
3835
|
+
r && /* @__PURE__ */ y("div", { className: cn["bk-progress-bar__label"], children: r }),
|
|
3836
|
+
/* @__PURE__ */ V(
|
|
3837
|
+
"progress",
|
|
3838
|
+
{
|
|
3839
|
+
...i,
|
|
3840
|
+
className: E({
|
|
3841
|
+
bk: !0,
|
|
3842
|
+
[cn["bk-progress-bar"]]: !t
|
|
3843
|
+
}, i.className),
|
|
3844
|
+
max: "100",
|
|
3845
|
+
value: n,
|
|
3846
|
+
children: [
|
|
3847
|
+
n,
|
|
3848
|
+
"%"
|
|
3849
|
+
]
|
|
3850
|
+
}
|
|
3851
|
+
),
|
|
3852
|
+
o && /* @__PURE__ */ y("div", { className: cn["bk-progress-bar__hint-text"], children: o })
|
|
3853
|
+
] });
|
|
3854
|
+
}, mc = "JVlywG_bk-property-list", bc = "JVlywG_bk-property-list__property", wn = { "bk-property-list": mc, "bk-property-list__property": bc }, gc = ({ unstyled: e, label: t, value: n, fullWidth: r = !1, ...o }) => /* @__PURE__ */ V(
|
|
3855
|
+
"div",
|
|
3856
|
+
{
|
|
3857
|
+
...o,
|
|
3858
|
+
className: E({
|
|
3859
|
+
[wn["bk-property-list__property"]]: !e,
|
|
3860
|
+
[wn["bk-property-list__property--full-width"]]: r
|
|
3861
|
+
}, o.className),
|
|
3862
|
+
children: [
|
|
3863
|
+
/* @__PURE__ */ y("dt", { children: t }),
|
|
3864
|
+
/* @__PURE__ */ y("dd", { children: n })
|
|
3865
|
+
]
|
|
3866
|
+
}
|
|
3867
|
+
), Gl = Object.assign(
|
|
3868
|
+
({ unstyled: e = !1, ...t }) => /* @__PURE__ */ y(
|
|
3869
|
+
"dl",
|
|
3870
|
+
{
|
|
3871
|
+
...t,
|
|
3872
|
+
className: E({
|
|
3873
|
+
bk: !0,
|
|
3874
|
+
[wn["bk-property-list"]]: !e
|
|
3875
|
+
}, t.className)
|
|
3876
|
+
}
|
|
3877
|
+
),
|
|
3878
|
+
{ Property: gc }
|
|
3879
|
+
), _c = "S904AW_bk-tabs", hc = "S904AW_bk-tabs__switcher", kc = "S904AW_bk-tabs__switcher__tab", yc = "S904AW_bk-tabs__tab-content", Et = { "bk-tabs": _c, "bk-tabs__switcher": hc, "bk-tabs__switcher__tab": kc, "bk-tabs__tab-content": yc }, Vl = ({ children: e }) => e, ql = (e) => {
|
|
3880
|
+
const { unstyled: t = !1, activeKey: n, children: r, onSwitch: o, ...i } = e, s = (c) => {
|
|
3881
|
+
const d = c.filter((p) => p.props.tabKey === n);
|
|
3882
|
+
if (d.length === 0)
|
|
3883
|
+
return null;
|
|
3884
|
+
if (d.length > 1)
|
|
3885
|
+
throw new TypeError("Ambiguous active tab");
|
|
3886
|
+
return d[0];
|
|
3887
|
+
}, l = (c) => {
|
|
3888
|
+
const { children: d, tabKey: p, title: g, hide: v, render: h, ...k } = c.props;
|
|
3889
|
+
return k;
|
|
3890
|
+
}, a = (c) => {
|
|
3891
|
+
let d;
|
|
3892
|
+
return typeof c.props.render == "function" ? d = c.props.render() : d = c.props.children, d;
|
|
3893
|
+
}, f = b.Children.toArray(r), m = s(f), u = (m && l(m)) ?? null;
|
|
3894
|
+
return /* @__PURE__ */ V(
|
|
3895
|
+
"div",
|
|
3896
|
+
{
|
|
3897
|
+
...i,
|
|
3898
|
+
role: "tablist",
|
|
3899
|
+
className: E({
|
|
3900
|
+
bk: !0,
|
|
3901
|
+
[Et["bk-tabs"]]: !t
|
|
3902
|
+
}, i.className),
|
|
3903
|
+
children: [
|
|
3904
|
+
/* @__PURE__ */ y("ul", { className: E(Et["bk-tabs__switcher"]), children: f.map((c) => {
|
|
3905
|
+
if (c.props.hide) return null;
|
|
3906
|
+
const d = c.props.tabKey === n;
|
|
3907
|
+
return /* @__PURE__ */ y(
|
|
3908
|
+
"li",
|
|
3909
|
+
{
|
|
3910
|
+
role: "tab",
|
|
3911
|
+
tabIndex: 0,
|
|
3912
|
+
"aria-selected": d ? "true" : "false",
|
|
3913
|
+
"data-tab": c.props.tabKey,
|
|
3914
|
+
className: E(Et["bk-tabs__switcher__tab"], c.props.className),
|
|
3915
|
+
onClick: () => {
|
|
3916
|
+
o(c.props.tabKey);
|
|
3917
|
+
},
|
|
3918
|
+
children: c.props.title
|
|
3919
|
+
},
|
|
3920
|
+
c.props.tabKey
|
|
3921
|
+
);
|
|
3922
|
+
}) }),
|
|
3923
|
+
m && /* @__PURE__ */ y(
|
|
3924
|
+
"div",
|
|
3925
|
+
{
|
|
3926
|
+
...u ?? {},
|
|
3927
|
+
className: E(Et["bk-tabs__tab-content"], u == null ? void 0 : u.className),
|
|
3928
|
+
children: a(m)
|
|
3929
|
+
}
|
|
3930
|
+
)
|
|
3931
|
+
]
|
|
3932
|
+
}
|
|
3933
|
+
);
|
|
3934
|
+
}, vc = "dKHX7q_bk-stepper", wc = "dKHX7q_bk-stepper--horizontal", xc = "dKHX7q_bk-stepper--vertical", Ec = "dKHX7q_bk-stepper__item", Rc = "dKHX7q_bk-stepper__item--checked", Tc = "dKHX7q_bk-stepper__item__circle", Sc = "dKHX7q_bk-stepper__item__circle__icon", Oc = "dKHX7q_bk-stepper__item__optional", Cc = "dKHX7q_bk-stepper__item__title", we = { "bk-stepper": vc, "bk-stepper--horizontal": wc, "bk-stepper--vertical": xc, "bk-stepper__item": Ec, "bk-stepper__item--checked": Rc, "bk-stepper__item__circle": Tc, "bk-stepper__item__circle__icon": Sc, "bk-stepper__item__optional": Oc, "bk-stepper__item__title": Cc }, Kl = (e) => {
|
|
3935
|
+
const { unstyled: t = !1, steps: n = [], activeKey: r, direction: o = "vertical", onSwitch: i, ...s } = e, l = (a, f) => {
|
|
3936
|
+
a.key === "Enter" && i(f);
|
|
3937
|
+
};
|
|
3938
|
+
return /* @__PURE__ */ y(
|
|
3939
|
+
"ul",
|
|
3940
|
+
{
|
|
3941
|
+
...s,
|
|
3942
|
+
className: E({
|
|
3943
|
+
bk: !0,
|
|
3944
|
+
[we["bk-stepper"]]: !t,
|
|
3945
|
+
[we["bk-stepper--horizontal"]]: o === "horizontal",
|
|
3946
|
+
[we["bk-stepper--vertical"]]: o === "vertical"
|
|
3947
|
+
}, s.className),
|
|
3948
|
+
children: n.map((a, f) => {
|
|
3949
|
+
if (a.hide) return null;
|
|
3950
|
+
const m = a.stepKey === r, u = f < n.findIndex((c) => c.stepKey === r);
|
|
3951
|
+
return /* @__PURE__ */ V(
|
|
3952
|
+
"li",
|
|
3953
|
+
{
|
|
3954
|
+
role: "tab",
|
|
3955
|
+
tabIndex: 0,
|
|
3956
|
+
"aria-selected": m ? "true" : "false",
|
|
3957
|
+
"data-tab": a.stepKey,
|
|
3958
|
+
className: E({
|
|
3959
|
+
[we["bk-stepper__item"]]: !0,
|
|
3960
|
+
[we["bk-stepper__item--checked"]]: u
|
|
3961
|
+
}, a.className),
|
|
3962
|
+
onClick: () => {
|
|
3963
|
+
i(a.stepKey);
|
|
3964
|
+
},
|
|
3965
|
+
onKeyDown: (c) => {
|
|
3966
|
+
l(c, a.stepKey);
|
|
3967
|
+
},
|
|
3968
|
+
children: [
|
|
3969
|
+
/* @__PURE__ */ y("span", { className: E(we["bk-stepper__item__circle"]), children: u ? /* @__PURE__ */ y(ie, { icon: "check", className: E(we["bk-stepper__item__circle__icon"]) }) : f + 1 }),
|
|
3970
|
+
/* @__PURE__ */ y("span", { className: E(we["bk-stepper__item__title"]), children: a.title }),
|
|
3971
|
+
a.isOptional && /* @__PURE__ */ y("span", { className: E(we["bk-stepper__item__optional"]), children: "(Optional)" })
|
|
3972
|
+
]
|
|
3973
|
+
},
|
|
3974
|
+
a.stepKey
|
|
3975
|
+
);
|
|
3976
|
+
})
|
|
3977
|
+
}
|
|
3978
|
+
);
|
|
3979
|
+
}, Nc = "QP33YW_bk-dropdown-menu", Ic = "QP33YW_bk-dropdown-menu__item", Ac = "QP33YW_bk-dropdown-menu__item__icon", Fe = { "bk-dropdown-menu": Nc, "bk-dropdown-menu__item": Ic, "bk-dropdown-menu__item__icon": Ac }, Ur = b.createContext(null), zr = () => {
|
|
3980
|
+
const e = b.use(Ur);
|
|
3981
|
+
if (e === null)
|
|
3982
|
+
throw new Error("Missing DropdownMenuContext provider");
|
|
3983
|
+
return e;
|
|
3984
|
+
}, Yr = (e) => {
|
|
3985
|
+
const { itemKey: t, label: n, icon: r, onActivate: o, ...i } = e, s = zr(), { optionProps: l, selectedOption: a, selectOption: f } = s, m = { optionKey: t, label: n };
|
|
3986
|
+
return /* @__PURE__ */ y("li", { "aria-selected": a === t, children: /* @__PURE__ */ V(
|
|
3987
|
+
de,
|
|
3988
|
+
{
|
|
3989
|
+
unstyled: !0,
|
|
3990
|
+
role: "option",
|
|
3991
|
+
...i,
|
|
3992
|
+
...l == null ? void 0 : l({
|
|
3993
|
+
option: m,
|
|
3994
|
+
selected: !1
|
|
3995
|
+
}),
|
|
3996
|
+
className: E(
|
|
3997
|
+
Fe["bk-dropdown-menu__item"],
|
|
3998
|
+
Fe["bk-dropdown-menu__item--action"],
|
|
3999
|
+
i.className
|
|
4000
|
+
),
|
|
4001
|
+
onClick: () => {
|
|
4002
|
+
o(s);
|
|
4003
|
+
},
|
|
4004
|
+
children: [
|
|
4005
|
+
r && /* @__PURE__ */ y(ie, { icon: r }),
|
|
4006
|
+
n ?? i.children
|
|
4007
|
+
]
|
|
4008
|
+
}
|
|
4009
|
+
) });
|
|
4010
|
+
}, Xr = (e) => {
|
|
4011
|
+
const { optionKey: t, label: n, icon: r, ...o } = e, { selectedOption: i, selectOption: s, optionProps: l } = zr(), a = { optionKey: t, label: n }, f = i === t;
|
|
4012
|
+
return /* @__PURE__ */ y("li", { "aria-selected": f, children: /* @__PURE__ */ V(
|
|
4013
|
+
de,
|
|
4014
|
+
{
|
|
4015
|
+
unstyled: !0,
|
|
4016
|
+
role: "option",
|
|
4017
|
+
...o,
|
|
4018
|
+
...l == null ? void 0 : l({
|
|
4019
|
+
option: a,
|
|
4020
|
+
selected: f
|
|
4021
|
+
}),
|
|
4022
|
+
className: E(
|
|
4023
|
+
Fe["bk-dropdown-menu__item"],
|
|
4024
|
+
Fe["bk-dropdown-menu__item--option"],
|
|
4025
|
+
o.className
|
|
4026
|
+
),
|
|
4027
|
+
onClick: () => {
|
|
4028
|
+
s(a);
|
|
4029
|
+
},
|
|
4030
|
+
children: [
|
|
4031
|
+
r && /* @__PURE__ */ y(ie, { icon: r, className: Fe["bk-dropdown-menu__item__icon"] }),
|
|
4032
|
+
/* @__PURE__ */ y("span", { className: Fe["bk-dropdown-menu__item__label"], children: n ?? o.children })
|
|
4033
|
+
]
|
|
4034
|
+
}
|
|
4035
|
+
) });
|
|
4036
|
+
}, Mc = Object.assign(
|
|
4037
|
+
(e) => {
|
|
4038
|
+
const { children: t, unstyled: n = !1, ...r } = e;
|
|
4039
|
+
return /* @__PURE__ */ y(
|
|
4040
|
+
"ul",
|
|
4041
|
+
{
|
|
4042
|
+
...r,
|
|
4043
|
+
className: E(
|
|
4044
|
+
"bk",
|
|
4045
|
+
{ [Fe["bk-dropdown-menu"]]: !n }
|
|
4046
|
+
),
|
|
4047
|
+
children: t
|
|
4048
|
+
}
|
|
4049
|
+
);
|
|
4050
|
+
},
|
|
4051
|
+
{ Action: Yr, Option: Xr }
|
|
4052
|
+
), Dc = "J65anq_bk-modal", Pc = "J65anq_bk-modal--slide-out-left", Lc = "J65anq_bk-modal--slide-out-right", Fc = "J65anq_bk-modal-fullscreen", Bc = "J65anq_bk-modal-large", $c = "J65anq_bk-modal-medium", Hc = "J65anq_bk-modal-small", Gc = "J65anq_bk-modal-spinner", Vc = "J65anq_bk-modal-x-large", qc = "J65anq_bk-modal__close", Kc = "J65anq_bk-modal__container", Wc = "J65anq_bk-modal__content", jc = "J65anq_bk-modal__header", Uc = "J65anq_bk-panel", zc = "J65anq_bk-panel__heading", ge = { "bk-modal": Dc, "bk-modal--slide-out-left": Pc, "bk-modal--slide-out-right": Lc, "bk-modal-fullscreen": Fc, "bk-modal-large": Bc, "bk-modal-medium": $c, "bk-modal-small": Hc, "bk-modal-spinner": Gc, "bk-modal-x-large": Vc, "bk-modal__close": qc, "bk-modal__container": Kc, "bk-modal__content": Wc, "bk-modal__header": jc, "bk-panel": Uc, "bk-panel__heading": zc }, Yc = ({ children: e, unstyled: t, className: n }) => /* @__PURE__ */ y(
|
|
4053
|
+
"header",
|
|
4054
|
+
{
|
|
4055
|
+
className: E(
|
|
4056
|
+
{
|
|
4057
|
+
bk: !0,
|
|
4058
|
+
[ge["bk-modal__header"]]: !t
|
|
4059
|
+
},
|
|
4060
|
+
n
|
|
4061
|
+
),
|
|
4062
|
+
children: e
|
|
4063
|
+
}
|
|
4064
|
+
), Xc = ({ children: e, unstyled: t, className: n }) => /* @__PURE__ */ y(
|
|
4065
|
+
"section",
|
|
4066
|
+
{
|
|
4067
|
+
className: E(
|
|
4068
|
+
{
|
|
4069
|
+
bk: !0,
|
|
4070
|
+
"body-text": !0,
|
|
4071
|
+
[ge["bk-modal__content"]]: !t
|
|
4072
|
+
},
|
|
4073
|
+
n
|
|
4074
|
+
),
|
|
4075
|
+
children: e
|
|
4076
|
+
}
|
|
4077
|
+
), Jc = ({ children: e, unstyled: t, className: n }) => /* @__PURE__ */ y(
|
|
4078
|
+
"footer",
|
|
4079
|
+
{
|
|
4080
|
+
className: E(
|
|
4081
|
+
{
|
|
4082
|
+
bk: !0,
|
|
4083
|
+
[ge["bk-modal__footer"]]: !t
|
|
4084
|
+
},
|
|
4085
|
+
n
|
|
4086
|
+
),
|
|
4087
|
+
children: e
|
|
4088
|
+
}
|
|
4089
|
+
), Ln = ({
|
|
4090
|
+
children: e,
|
|
4091
|
+
unstyled: t,
|
|
4092
|
+
className: n,
|
|
4093
|
+
size: r = "medium",
|
|
4094
|
+
closeable: o = !0,
|
|
4095
|
+
active: i,
|
|
4096
|
+
onClose: s
|
|
4097
|
+
}) => {
|
|
4098
|
+
const l = b.useRef(null);
|
|
4099
|
+
b.useEffect(() => {
|
|
4100
|
+
const c = l.current;
|
|
4101
|
+
c !== null && (i && !c.open ? c.showModal() : !i && c.open && c.close());
|
|
4102
|
+
}, [i]);
|
|
4103
|
+
const a = b.useCallback(
|
|
4104
|
+
(c) => {
|
|
4105
|
+
const d = l.current;
|
|
4106
|
+
d !== null && i && c.target === d && s();
|
|
4107
|
+
},
|
|
4108
|
+
[i, s]
|
|
4109
|
+
);
|
|
4110
|
+
b.useEffect(() => {
|
|
4111
|
+
const c = l.current;
|
|
4112
|
+
if (c !== null)
|
|
4113
|
+
return c.addEventListener("close", a), () => {
|
|
4114
|
+
c.removeEventListener("close", a);
|
|
4115
|
+
};
|
|
4116
|
+
}, [a]);
|
|
4117
|
+
const f = b.useCallback(() => {
|
|
4118
|
+
s();
|
|
4119
|
+
}, [s]), m = b.useCallback(
|
|
4120
|
+
(c) => {
|
|
4121
|
+
const d = l.current;
|
|
4122
|
+
d !== null && c.target === d && o && f();
|
|
4123
|
+
},
|
|
4124
|
+
[f, o]
|
|
4125
|
+
), u = (c) => {
|
|
4126
|
+
c.key === "Escape" && !o && c.preventDefault();
|
|
4127
|
+
};
|
|
4128
|
+
return (
|
|
4129
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents: <explanation>
|
|
4130
|
+
/* @__PURE__ */ V(
|
|
4131
|
+
"dialog",
|
|
4132
|
+
{
|
|
4133
|
+
ref: l,
|
|
4134
|
+
className: E(
|
|
4135
|
+
{
|
|
4136
|
+
bk: !0,
|
|
4137
|
+
[ge["bk-modal-small"]]: r === "small",
|
|
4138
|
+
[ge["bk-modal-medium"]]: r === "medium",
|
|
4139
|
+
[ge["bk-modal-large"]]: r === "large",
|
|
4140
|
+
[ge["bk-modal-x-large"]]: r === "x-large",
|
|
4141
|
+
[ge["bk-modal-fullscreen"]]: r === "fullscreen",
|
|
4142
|
+
[ge["bk-modal"]]: !t
|
|
4143
|
+
},
|
|
4144
|
+
n
|
|
4145
|
+
),
|
|
4146
|
+
onClick: m,
|
|
4147
|
+
onKeyDown: u,
|
|
4148
|
+
children: [
|
|
4149
|
+
o && /* @__PURE__ */ y(
|
|
4150
|
+
"button",
|
|
4151
|
+
{
|
|
4152
|
+
type: "button",
|
|
4153
|
+
className: E(ge["bk-modal__close"]),
|
|
4154
|
+
onClick: f,
|
|
4155
|
+
children: /* @__PURE__ */ y(ie, { icon: "cross" })
|
|
4156
|
+
}
|
|
4157
|
+
),
|
|
4158
|
+
/* @__PURE__ */ y("div", { className: E(ge["bk-modal__container"]), children: e })
|
|
4159
|
+
]
|
|
4160
|
+
}
|
|
4161
|
+
)
|
|
4162
|
+
);
|
|
4163
|
+
};
|
|
4164
|
+
Ln.Content = Xc;
|
|
4165
|
+
Ln.Header = Yc;
|
|
4166
|
+
Ln.Footer = Jc;
|
|
4167
|
+
function Jr(e) {
|
|
4168
|
+
var t, n, r = "";
|
|
4169
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
4170
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
4171
|
+
var o = e.length;
|
|
4172
|
+
for (t = 0; t < o; t++) e[t] && (n = Jr(e[t])) && (r && (r += " "), r += n);
|
|
4173
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
4174
|
+
return r;
|
|
4175
|
+
}
|
|
4176
|
+
function Ne() {
|
|
4177
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Jr(e)) && (r && (r += " "), r += t);
|
|
4178
|
+
return r;
|
|
4179
|
+
}
|
|
4180
|
+
const ut = (e) => typeof e == "number" && !isNaN(e), $e = (e) => typeof e == "string", fe = (e) => typeof e == "function", It = (e) => $e(e) || fe(e) ? e : null, xn = (e) => We(e) || $e(e) || fe(e) || ut(e);
|
|
4181
|
+
function Qc(e, t, n) {
|
|
4182
|
+
n === void 0 && (n = 300);
|
|
4183
|
+
const { scrollHeight: r, style: o } = e;
|
|
4184
|
+
requestAnimationFrame(() => {
|
|
4185
|
+
o.minHeight = "initial", o.height = r + "px", o.transition = `all ${n}ms`, requestAnimationFrame(() => {
|
|
4186
|
+
o.height = "0", o.padding = "0", o.margin = "0", setTimeout(t, n);
|
|
4187
|
+
});
|
|
4188
|
+
});
|
|
4189
|
+
}
|
|
4190
|
+
function zt(e) {
|
|
4191
|
+
let { enter: t, exit: n, appendPosition: r = !1, collapse: o = !0, collapseDuration: i = 300 } = e;
|
|
4192
|
+
return function(s) {
|
|
4193
|
+
let { children: l, position: a, preventExitTransition: f, done: m, nodeRef: u, isIn: c, playToast: d } = s;
|
|
4194
|
+
const p = r ? `${t}--${a}` : t, g = r ? `${n}--${a}` : n, v = Ue(0);
|
|
4195
|
+
return Ht(() => {
|
|
4196
|
+
const h = u.current, k = p.split(" "), _ = (w) => {
|
|
4197
|
+
w.target === u.current && (d(), h.removeEventListener("animationend", _), h.removeEventListener("animationcancel", _), v.current === 0 && w.type !== "animationcancel" && h.classList.remove(...k));
|
|
4198
|
+
};
|
|
4199
|
+
h.classList.add(...k), h.addEventListener("animationend", _), h.addEventListener("animationcancel", _);
|
|
4200
|
+
}, []), dt(() => {
|
|
4201
|
+
const h = u.current, k = () => {
|
|
4202
|
+
h.removeEventListener("animationend", k), o ? Qc(h, m, i) : m();
|
|
4203
|
+
};
|
|
4204
|
+
c || (f ? k() : (v.current = 1, h.className += ` ${g}`, h.addEventListener("animationend", k)));
|
|
4205
|
+
}, [c]), q.createElement(q.Fragment, null, l);
|
|
4206
|
+
};
|
|
4207
|
+
}
|
|
4208
|
+
function br(e, t) {
|
|
4209
|
+
return e != null ? { content: e.content, containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, status: t } : {};
|
|
4210
|
+
}
|
|
4211
|
+
const ce = /* @__PURE__ */ new Map();
|
|
4212
|
+
let ft = [];
|
|
4213
|
+
const En = /* @__PURE__ */ new Set(), Zc = (e) => En.forEach((t) => t(e)), Qr = () => ce.size > 0;
|
|
4214
|
+
function Zr(e, t) {
|
|
4215
|
+
var n;
|
|
4216
|
+
if (t) return !((n = ce.get(t)) == null || !n.isToastActive(e));
|
|
4217
|
+
let r = !1;
|
|
4218
|
+
return ce.forEach((o) => {
|
|
4219
|
+
o.isToastActive(e) && (r = !0);
|
|
4220
|
+
}), r;
|
|
4221
|
+
}
|
|
4222
|
+
function eo(e, t) {
|
|
4223
|
+
xn(e) && (Qr() || ft.push({ content: e, options: t }), ce.forEach((n) => {
|
|
4224
|
+
n.buildToast(e, t);
|
|
4225
|
+
}));
|
|
4226
|
+
}
|
|
4227
|
+
function gr(e, t) {
|
|
4228
|
+
ce.forEach((n) => {
|
|
4229
|
+
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === n.id && n.toggle(e, t == null ? void 0 : t.id) : n.toggle(e, t == null ? void 0 : t.id);
|
|
4230
|
+
});
|
|
4231
|
+
}
|
|
4232
|
+
function ea(e) {
|
|
4233
|
+
const { subscribe: t, getSnapshot: n, setProps: r } = Ue(function(i) {
|
|
4234
|
+
const s = i.containerId || 1;
|
|
4235
|
+
return { subscribe(l) {
|
|
4236
|
+
const a = /* @__PURE__ */ function(m, u, c) {
|
|
4237
|
+
let d = 1, p = 0, g = [], v = [], h = [], k = u;
|
|
4238
|
+
const _ = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Set(), N = () => {
|
|
4239
|
+
h = Array.from(_.values()), w.forEach((S) => S());
|
|
4240
|
+
}, I = (S) => {
|
|
4241
|
+
v = S == null ? [] : v.filter((P) => P !== S), N();
|
|
4242
|
+
}, A = (S) => {
|
|
4243
|
+
const { toastId: P, onOpen: B, updateId: G, children: L } = S.props, F = G == null;
|
|
4244
|
+
S.staleId && _.delete(S.staleId), _.set(P, S), v = [...v, S.props.toastId].filter((O) => O !== S.staleId), N(), c(br(S, F ? "added" : "updated")), F && fe(B) && B(We(L) && L.props);
|
|
4245
|
+
};
|
|
4246
|
+
return { id: m, props: k, observe: (S) => (w.add(S), () => w.delete(S)), toggle: (S, P) => {
|
|
4247
|
+
_.forEach((B) => {
|
|
4248
|
+
P != null && P !== B.props.toastId || fe(B.toggle) && B.toggle(S);
|
|
4249
|
+
});
|
|
4250
|
+
}, removeToast: I, toasts: _, clearQueue: () => {
|
|
4251
|
+
p -= g.length, g = [];
|
|
4252
|
+
}, buildToast: (S, P) => {
|
|
4253
|
+
if (((Z) => {
|
|
4254
|
+
let { containerId: X, toastId: te, updateId: j } = Z;
|
|
4255
|
+
const Q = X ? X !== m : m !== 1, ne = _.has(te) && j == null;
|
|
4256
|
+
return Q || ne;
|
|
4257
|
+
})(P)) return;
|
|
4258
|
+
const { toastId: B, updateId: G, data: L, staleId: F, delay: O } = P, x = () => {
|
|
4259
|
+
I(B);
|
|
4260
|
+
}, R = G == null;
|
|
4261
|
+
R && p++;
|
|
4262
|
+
const C = { ...k, style: k.toastStyle, key: d++, ...Object.fromEntries(Object.entries(P).filter((Z) => {
|
|
4263
|
+
let [X, te] = Z;
|
|
4264
|
+
return te != null;
|
|
4265
|
+
})), toastId: B, updateId: G, data: L, closeToast: x, isIn: !1, className: It(P.className || k.toastClassName), bodyClassName: It(P.bodyClassName || k.bodyClassName), progressClassName: It(P.progressClassName || k.progressClassName), autoClose: !P.isLoading && (T = P.autoClose, H = k.autoClose, T === !1 || ut(T) && T > 0 ? T : H), deleteToast() {
|
|
4266
|
+
const Z = _.get(B), { onClose: X, children: te } = Z.props;
|
|
4267
|
+
fe(X) && X(We(te) && te.props), c(br(Z, "removed")), _.delete(B), p--, p < 0 && (p = 0), g.length > 0 ? A(g.shift()) : N();
|
|
4268
|
+
} };
|
|
4269
|
+
var T, H;
|
|
4270
|
+
C.closeButton = k.closeButton, P.closeButton === !1 || xn(P.closeButton) ? C.closeButton = P.closeButton : P.closeButton === !0 && (C.closeButton = !xn(k.closeButton) || k.closeButton);
|
|
4271
|
+
let M = S;
|
|
4272
|
+
We(S) && !$e(S.type) ? M = fn(S, { closeToast: x, toastProps: C, data: L }) : fe(S) && (M = S({ closeToast: x, toastProps: C, data: L }));
|
|
4273
|
+
const K = { content: M, props: C, staleId: F };
|
|
4274
|
+
k.limit && k.limit > 0 && p > k.limit && R ? g.push(K) : ut(O) ? setTimeout(() => {
|
|
4275
|
+
A(K);
|
|
4276
|
+
}, O) : A(K);
|
|
4277
|
+
}, setProps(S) {
|
|
4278
|
+
k = S;
|
|
4279
|
+
}, setToggle: (S, P) => {
|
|
4280
|
+
_.get(S).toggle = P;
|
|
4281
|
+
}, isToastActive: (S) => v.some((P) => P === S), getSnapshot: () => k.newestOnTop ? h.reverse() : h };
|
|
4282
|
+
}(s, i, Zc);
|
|
4283
|
+
ce.set(s, a);
|
|
4284
|
+
const f = a.observe(l);
|
|
4285
|
+
return ft.forEach((m) => eo(m.content, m.options)), ft = [], () => {
|
|
4286
|
+
f(), ce.delete(s);
|
|
4287
|
+
};
|
|
4288
|
+
}, setProps(l) {
|
|
4289
|
+
var a;
|
|
4290
|
+
(a = ce.get(s)) == null || a.setProps(l);
|
|
4291
|
+
}, getSnapshot() {
|
|
4292
|
+
var l;
|
|
4293
|
+
return (l = ce.get(s)) == null ? void 0 : l.getSnapshot();
|
|
4294
|
+
} };
|
|
4295
|
+
}(e)).current;
|
|
4296
|
+
r(e);
|
|
4297
|
+
const o = ro(t, n, n);
|
|
4298
|
+
return { getToastToRender: function(i) {
|
|
4299
|
+
if (!o) return [];
|
|
4300
|
+
const s = /* @__PURE__ */ new Map();
|
|
4301
|
+
return o.forEach((l) => {
|
|
4302
|
+
const { position: a } = l.props;
|
|
4303
|
+
s.has(a) || s.set(a, []), s.get(a).push(l);
|
|
4304
|
+
}), Array.from(s, (l) => i(l[0], l[1]));
|
|
4305
|
+
}, isToastActive: Zr, count: o == null ? void 0 : o.length };
|
|
4306
|
+
}
|
|
4307
|
+
function ta(e) {
|
|
4308
|
+
const [t, n] = un(!1), [r, o] = un(!1), i = Ue(null), s = Ue({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: a, closeToast: f, onClick: m, closeOnClick: u } = e;
|
|
4309
|
+
var c, d;
|
|
4310
|
+
function p() {
|
|
4311
|
+
n(!0);
|
|
4312
|
+
}
|
|
4313
|
+
function g() {
|
|
4314
|
+
n(!1);
|
|
4315
|
+
}
|
|
4316
|
+
function v(_) {
|
|
4317
|
+
const w = i.current;
|
|
4318
|
+
s.canDrag && w && (s.didMove = !0, t && g(), s.delta = e.draggableDirection === "x" ? _.clientX - s.start : _.clientY - s.start, s.start !== _.clientX && (s.canCloseOnClick = !1), w.style.transform = `translate3d(${e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`},0)`, w.style.opacity = "" + (1 - Math.abs(s.delta / s.removalDistance)));
|
|
4319
|
+
}
|
|
4320
|
+
function h() {
|
|
4321
|
+
document.removeEventListener("pointermove", v), document.removeEventListener("pointerup", h);
|
|
4322
|
+
const _ = i.current;
|
|
4323
|
+
if (s.canDrag && s.didMove && _) {
|
|
4324
|
+
if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance) return o(!0), e.closeToast(), void e.collapseAll();
|
|
4325
|
+
_.style.transition = "transform 0.2s, opacity 0.2s", _.style.removeProperty("transform"), _.style.removeProperty("opacity");
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
(d = ce.get((c = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || d.setToggle(c.id, c.fn), dt(() => {
|
|
4329
|
+
if (e.pauseOnFocusLoss) return document.hasFocus() || g(), window.addEventListener("focus", p), window.addEventListener("blur", g), () => {
|
|
4330
|
+
window.removeEventListener("focus", p), window.removeEventListener("blur", g);
|
|
4331
|
+
};
|
|
4332
|
+
}, [e.pauseOnFocusLoss]);
|
|
4333
|
+
const k = { onPointerDown: function(_) {
|
|
4334
|
+
if (e.draggable === !0 || e.draggable === _.pointerType) {
|
|
4335
|
+
s.didMove = !1, document.addEventListener("pointermove", v), document.addEventListener("pointerup", h);
|
|
4336
|
+
const w = i.current;
|
|
4337
|
+
s.canCloseOnClick = !0, s.canDrag = !0, w.style.transition = "none", e.draggableDirection === "x" ? (s.start = _.clientX, s.removalDistance = w.offsetWidth * (e.draggablePercent / 100)) : (s.start = _.clientY, s.removalDistance = w.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent) / 100);
|
|
4338
|
+
}
|
|
4339
|
+
}, onPointerUp: function(_) {
|
|
4340
|
+
const { top: w, bottom: N, left: I, right: A } = i.current.getBoundingClientRect();
|
|
4341
|
+
_.nativeEvent.type !== "touchend" && e.pauseOnHover && _.clientX >= I && _.clientX <= A && _.clientY >= w && _.clientY <= N ? g() : p();
|
|
4342
|
+
} };
|
|
4343
|
+
return l && a && (k.onMouseEnter = g, e.stacked || (k.onMouseLeave = p)), u && (k.onClick = (_) => {
|
|
4344
|
+
m && m(_), s.canCloseOnClick && f();
|
|
4345
|
+
}), { playToast: p, pauseToast: g, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers: k };
|
|
4346
|
+
}
|
|
4347
|
+
function na(e) {
|
|
4348
|
+
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: s, style: l, controlledProgress: a, progress: f, rtl: m, isIn: u, theme: c } = e;
|
|
4349
|
+
const d = i || a && f === 0, p = { ...l, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
|
|
4350
|
+
a && (p.transform = `scaleX(${f})`);
|
|
4351
|
+
const g = Ne("Toastify__progress-bar", a ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${c}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": m }), v = fe(s) ? s({ rtl: m, type: o, defaultClassName: g }) : Ne(g, s), h = { [a && f >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: a && f < 1 ? null : () => {
|
|
4352
|
+
u && r();
|
|
4353
|
+
} };
|
|
4354
|
+
return q.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": d }, q.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${c} Toastify__progress-bar--${o}` }), q.createElement("div", { role: "progressbar", "aria-hidden": d ? "true" : "false", "aria-label": "notification timer", className: v, style: p, ...h }));
|
|
4355
|
+
}
|
|
4356
|
+
let ra = 1;
|
|
4357
|
+
const to = () => "" + ra++;
|
|
4358
|
+
function oa(e) {
|
|
4359
|
+
return e && ($e(e.toastId) || ut(e.toastId)) ? e.toastId : to();
|
|
4360
|
+
}
|
|
4361
|
+
function st(e, t) {
|
|
4362
|
+
return eo(e, t), t.toastId;
|
|
4363
|
+
}
|
|
4364
|
+
function $t(e, t) {
|
|
4365
|
+
return { ...t, type: t && t.type || e, toastId: oa(t) };
|
|
4366
|
+
}
|
|
4367
|
+
function Rt(e) {
|
|
4368
|
+
return (t, n) => st(t, $t(e, n));
|
|
4369
|
+
}
|
|
4370
|
+
function z(e, t) {
|
|
4371
|
+
return st(e, $t("default", t));
|
|
4372
|
+
}
|
|
4373
|
+
z.loading = (e, t) => st(e, $t("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), z.promise = function(e, t, n) {
|
|
4374
|
+
let r, { pending: o, error: i, success: s } = t;
|
|
4375
|
+
o && (r = $e(o) ? z.loading(o, n) : z.loading(o.render, { ...n, ...o }));
|
|
4376
|
+
const l = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, a = (m, u, c) => {
|
|
4377
|
+
if (u == null) return void z.dismiss(r);
|
|
4378
|
+
const d = { type: m, ...l, ...n, data: c }, p = $e(u) ? { render: u } : u;
|
|
4379
|
+
return r ? z.update(r, { ...d, ...p }) : z(p.render, { ...d, ...p }), c;
|
|
4380
|
+
}, f = fe(e) ? e() : e;
|
|
4381
|
+
return f.then((m) => a("success", s, m)).catch((m) => a("error", i, m)), f;
|
|
4382
|
+
}, z.success = Rt("success"), z.info = Rt("info"), z.error = Rt("error"), z.warning = Rt("warning"), z.warn = z.warning, z.dark = (e, t) => st(e, $t("default", { theme: "dark", ...t })), z.dismiss = function(e) {
|
|
4383
|
+
(function(t) {
|
|
4384
|
+
var n;
|
|
4385
|
+
if (Qr()) {
|
|
4386
|
+
if (t == null || $e(n = t) || ut(n)) ce.forEach((r) => {
|
|
4387
|
+
r.removeToast(t);
|
|
4388
|
+
});
|
|
4389
|
+
else if (t && ("containerId" in t || "id" in t)) {
|
|
4390
|
+
const r = ce.get(t.containerId);
|
|
4391
|
+
r ? r.removeToast(t.id) : ce.forEach((o) => {
|
|
4392
|
+
o.removeToast(t.id);
|
|
4393
|
+
});
|
|
4394
|
+
}
|
|
4395
|
+
} else ft = ft.filter((r) => t != null && r.options.toastId !== t);
|
|
4396
|
+
})(e);
|
|
4397
|
+
}, z.clearWaitingQueue = function(e) {
|
|
4398
|
+
e === void 0 && (e = {}), ce.forEach((t) => {
|
|
4399
|
+
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
4400
|
+
});
|
|
4401
|
+
}, z.isActive = Zr, z.update = function(e, t) {
|
|
4402
|
+
t === void 0 && (t = {});
|
|
4403
|
+
const n = ((r, o) => {
|
|
4404
|
+
var i;
|
|
4405
|
+
let { containerId: s } = o;
|
|
4406
|
+
return (i = ce.get(s || 1)) == null ? void 0 : i.toasts.get(r);
|
|
4407
|
+
})(e, t);
|
|
4408
|
+
if (n) {
|
|
4409
|
+
const { props: r, content: o } = n, i = { delay: 100, ...r, ...t, toastId: t.toastId || e, updateId: to() };
|
|
4410
|
+
i.toastId !== e && (i.staleId = e);
|
|
4411
|
+
const s = i.render || o;
|
|
4412
|
+
delete i.render, st(s, i);
|
|
4413
|
+
}
|
|
4414
|
+
}, z.done = (e) => {
|
|
4415
|
+
z.update(e, { progress: 1 });
|
|
4416
|
+
}, z.onChange = function(e) {
|
|
4417
|
+
return En.add(e), () => {
|
|
4418
|
+
En.delete(e);
|
|
4419
|
+
};
|
|
4420
|
+
}, z.play = (e) => gr(!0, e), z.pause = (e) => gr(!1, e);
|
|
4421
|
+
const sa = typeof window < "u" ? Ht : dt, Tt = (e) => {
|
|
4422
|
+
let { theme: t, type: n, isLoading: r, ...o } = e;
|
|
4423
|
+
return q.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...o });
|
|
4424
|
+
}, an = { info: function(e) {
|
|
4425
|
+
return q.createElement(Tt, { ...e }, q.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
4426
|
+
}, warning: function(e) {
|
|
4427
|
+
return q.createElement(Tt, { ...e }, q.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
4428
|
+
}, success: function(e) {
|
|
4429
|
+
return q.createElement(Tt, { ...e }, q.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
4430
|
+
}, error: function(e) {
|
|
4431
|
+
return q.createElement(Tt, { ...e }, q.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
4432
|
+
}, spinner: function() {
|
|
4433
|
+
return q.createElement("div", { className: "Toastify__spinner" });
|
|
4434
|
+
} }, ia = (e) => {
|
|
4435
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = ta(e), { closeButton: s, children: l, autoClose: a, onClick: f, type: m, hideProgressBar: u, closeToast: c, transition: d, position: p, className: g, style: v, bodyClassName: h, bodyStyle: k, progressClassName: _, progressStyle: w, updateId: N, role: I, progress: A, rtl: S, toastId: P, deleteToast: B, isIn: G, isLoading: L, closeOnClick: F, theme: O } = e, x = Ne("Toastify__toast", `Toastify__toast-theme--${O}`, `Toastify__toast--${m}`, { "Toastify__toast--rtl": S }, { "Toastify__toast--close-on-click": F }), R = fe(g) ? g({ rtl: S, position: p, type: m, defaultClassName: x }) : Ne(x, g), C = function(K) {
|
|
4436
|
+
let { theme: Z, type: X, isLoading: te, icon: j } = K, Q = null;
|
|
4437
|
+
const ne = { theme: Z, type: X };
|
|
4438
|
+
return j === !1 || (fe(j) ? Q = j({ ...ne, isLoading: te }) : We(j) ? Q = fn(j, ne) : te ? Q = an.spinner() : ((gt) => gt in an)(X) && (Q = an[X](ne))), Q;
|
|
4439
|
+
}(e), T = !!A || !a, H = { closeToast: c, type: m, theme: O };
|
|
4440
|
+
let M = null;
|
|
4441
|
+
return s === !1 || (M = fe(s) ? s(H) : We(s) ? fn(s, H) : function(K) {
|
|
4442
|
+
let { closeToast: Z, theme: X, ariaLabel: te = "close" } = K;
|
|
4443
|
+
return q.createElement("button", { className: `Toastify__close-button Toastify__close-button--${X}`, type: "button", onClick: (j) => {
|
|
4444
|
+
j.stopPropagation(), Z(j);
|
|
4445
|
+
}, "aria-label": te }, q.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, q.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
4446
|
+
}(H)), q.createElement(d, { isIn: G, done: B, position: p, preventExitTransition: n, nodeRef: r, playToast: i }, q.createElement("div", { id: P, onClick: f, "data-in": G, className: R, ...o, style: v, ref: r }, q.createElement("div", { ...G && { role: I }, className: fe(h) ? h({ type: m }) : Ne("Toastify__toast-body", h), style: k }, C != null && q.createElement("div", { className: Ne("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !L }) }, C), q.createElement("div", null, l)), M, q.createElement(na, { ...N && !T ? { key: `pb-${N}` } : {}, rtl: S, theme: O, delay: a, isRunning: t, isIn: G, closeToast: c, hide: u, type: m, style: w, className: _, controlledProgress: T, progress: A || 0 })));
|
|
4447
|
+
}, Yt = function(e, t) {
|
|
4448
|
+
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
4449
|
+
}, ca = zt(Yt("bounce", !0));
|
|
4450
|
+
zt(Yt("slide", !0));
|
|
4451
|
+
zt(Yt("zoom"));
|
|
4452
|
+
zt(Yt("flip"));
|
|
4453
|
+
const aa = { position: "top-right", transition: ca, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
4454
|
+
function la(e) {
|
|
4455
|
+
let t = { ...aa, ...e };
|
|
4456
|
+
const n = e.stacked, [r, o] = un(!0), i = Ue(null), { getToastToRender: s, isToastActive: l, count: a } = ea(t), { className: f, style: m, rtl: u, containerId: c } = t;
|
|
4457
|
+
function d(g) {
|
|
4458
|
+
const v = Ne("Toastify__toast-container", `Toastify__toast-container--${g}`, { "Toastify__toast-container--rtl": u });
|
|
4459
|
+
return fe(f) ? f({ position: g, rtl: u, defaultClassName: v }) : Ne(v, It(f));
|
|
4460
|
+
}
|
|
4461
|
+
function p() {
|
|
4462
|
+
n && (o(!0), z.play());
|
|
4463
|
+
}
|
|
4464
|
+
return sa(() => {
|
|
4465
|
+
if (n) {
|
|
4466
|
+
var g;
|
|
4467
|
+
const v = i.current.querySelectorAll('[data-in="true"]'), h = 12, k = (g = t.position) == null ? void 0 : g.includes("top");
|
|
4468
|
+
let _ = 0, w = 0;
|
|
4469
|
+
Array.from(v).reverse().forEach((N, I) => {
|
|
4470
|
+
const A = N;
|
|
4471
|
+
A.classList.add("Toastify__toast--stacked"), I > 0 && (A.dataset.collapsed = `${r}`), A.dataset.pos || (A.dataset.pos = k ? "top" : "bot");
|
|
4472
|
+
const S = _ * (r ? 0.2 : 1) + (r ? 0 : h * I);
|
|
4473
|
+
A.style.setProperty("--y", `${k ? S : -1 * S}px`), A.style.setProperty("--g", `${h}`), A.style.setProperty("--s", "" + (1 - (r ? w : 0))), _ += A.offsetHeight, w += 0.025;
|
|
4474
|
+
});
|
|
4475
|
+
}
|
|
4476
|
+
}, [r, a, n]), q.createElement("div", { ref: i, className: "Toastify", id: c, onMouseEnter: () => {
|
|
4477
|
+
n && (o(!1), z.pause());
|
|
4478
|
+
}, onMouseLeave: p }, s((g, v) => {
|
|
4479
|
+
const h = v.length ? { ...m } : { ...m, pointerEvents: "none" };
|
|
4480
|
+
return q.createElement("div", { className: d(g), style: h, key: `container-${g}` }, v.map((k) => {
|
|
4481
|
+
let { content: _, props: w } = k;
|
|
4482
|
+
return q.createElement(ia, { ...w, stacked: n, collapseAll: p, isIn: l(w.toastId, w.containerId), style: w.style, key: `toast-${w.key}` }, _);
|
|
4483
|
+
}));
|
|
4484
|
+
}));
|
|
4485
|
+
}
|
|
4486
|
+
const ua = "-bMA8G_bk-tooltip", fa = "-bMA8G_bk-tooltip--arrow", da = "-bMA8G_bk-tooltip--arrow-bottom", pa = "-bMA8G_bk-tooltip--arrow-left", ma = "-bMA8G_bk-tooltip--arrow-right", ba = "-bMA8G_bk-tooltip--arrow-top", ga = "-bMA8G_bk-tooltip--large", _a = "-bMA8G_bk-tooltip--medium", ha = "-bMA8G_bk-tooltip--small", ka = "-bMA8G_bk-tooltip__alert", ya = "-bMA8G_bk-tooltip__icon", va = "-bMA8G_bk-tooltip__title", xe = { "bk-tooltip": ua, "bk-tooltip--arrow": fa, "bk-tooltip--arrow-bottom": da, "bk-tooltip--arrow-left": pa, "bk-tooltip--arrow-right": ma, "bk-tooltip--arrow-top": ba, "bk-tooltip--large": ga, "bk-tooltip--medium": _a, "bk-tooltip--small": ha, "bk-tooltip__alert": ka, "bk-tooltip__icon": ya, "bk-tooltip__title": va }, wa = ({ unstyled: e = !1, size: t = void 0, ...n }) => /* @__PURE__ */ y(
|
|
4487
|
+
"div",
|
|
4488
|
+
{
|
|
4489
|
+
role: "tooltip",
|
|
4490
|
+
...n,
|
|
4491
|
+
className: E({
|
|
4492
|
+
bk: !0,
|
|
4493
|
+
[xe["bk-tooltip"]]: !e,
|
|
4494
|
+
"bk-body-text": !e,
|
|
4495
|
+
[xe["bk-tooltip--small"]]: t === "small",
|
|
4496
|
+
[xe["bk-tooltip--medium"]]: t === "medium",
|
|
4497
|
+
[xe["bk-tooltip--large"]]: t === "large"
|
|
4498
|
+
}, n.className)
|
|
4499
|
+
}
|
|
4500
|
+
), Wl = (e) => {
|
|
4501
|
+
const {
|
|
4502
|
+
children: t,
|
|
4503
|
+
tooltip: n,
|
|
4504
|
+
placement: r,
|
|
4505
|
+
size: o,
|
|
4506
|
+
enablePreciseTracking: i = !1,
|
|
4507
|
+
boundary: s,
|
|
4508
|
+
onTooltipActivated: l,
|
|
4509
|
+
onTooltipDeactivated: a,
|
|
4510
|
+
...f
|
|
4511
|
+
} = e, m = b.useRef(null), {
|
|
4512
|
+
context: u,
|
|
4513
|
+
isMounted: c,
|
|
4514
|
+
refs: d,
|
|
4515
|
+
floatingStyles: p,
|
|
4516
|
+
getReferenceProps: g,
|
|
4517
|
+
getFloatingProps: v
|
|
4518
|
+
} = Pn({
|
|
4519
|
+
action: "hover",
|
|
4520
|
+
placement: r,
|
|
4521
|
+
offset: 6,
|
|
4522
|
+
enablePreciseTracking: i,
|
|
4523
|
+
boundary: s,
|
|
4524
|
+
...m.current ? { arrowRef: m } : {}
|
|
4525
|
+
}), h = sc({ context: u });
|
|
4526
|
+
b.useLayoutEffect(() => {
|
|
4527
|
+
c ? l == null || l() : a == null || a();
|
|
4528
|
+
}, [c, l, a]);
|
|
4529
|
+
const k = () => {
|
|
4530
|
+
if (!c || !n)
|
|
4531
|
+
return null;
|
|
4532
|
+
const w = v({
|
|
4533
|
+
popover: "manual",
|
|
4534
|
+
style: p
|
|
4535
|
+
});
|
|
4536
|
+
return /* @__PURE__ */ V(
|
|
4537
|
+
wa,
|
|
4538
|
+
{
|
|
4539
|
+
...w,
|
|
4540
|
+
ref: lt(d.setFloating, f.ref),
|
|
4541
|
+
className: E(
|
|
4542
|
+
w.className,
|
|
4543
|
+
{ [xe["bk-tooltip--arrow"]]: !!(h != null && h.side) },
|
|
4544
|
+
{ [xe["bk-tooltip--arrow-top"]]: (h == null ? void 0 : h.side) === "top" },
|
|
4545
|
+
{ [xe["bk-tooltip--arrow-bottom"]]: (h == null ? void 0 : h.side) === "bottom" },
|
|
4546
|
+
{ [xe["bk-tooltip--arrow-left"]]: (h == null ? void 0 : h.side) === "left" },
|
|
4547
|
+
{ [xe["bk-tooltip--arrow-right"]]: (h == null ? void 0 : h.side) === "right" },
|
|
4548
|
+
f.className
|
|
4549
|
+
),
|
|
4550
|
+
style: {
|
|
4551
|
+
...w.style ?? {},
|
|
4552
|
+
...f.style,
|
|
4553
|
+
"--arrow-x": h == null ? void 0 : h.arrowX,
|
|
4554
|
+
"--arrow-y": h == null ? void 0 : h.arrowY
|
|
4555
|
+
},
|
|
4556
|
+
size: o,
|
|
4557
|
+
children: [
|
|
4558
|
+
n,
|
|
4559
|
+
/* @__PURE__ */ y("span", { ref: m, hidden: !0, "aria-hidden": !0 })
|
|
4560
|
+
]
|
|
4561
|
+
}
|
|
4562
|
+
);
|
|
4563
|
+
}, _ = () => {
|
|
4564
|
+
const w = (N) => {
|
|
4565
|
+
const I = (N == null ? void 0 : N.ref) ?? void 0;
|
|
4566
|
+
return typeof I == "string" ? (console.error("Failed to render Tooltip, due to use of legacy string ref"), N ?? {}) : {
|
|
4567
|
+
...g(N),
|
|
4568
|
+
ref: I ? lt(I, d.setReference) : d.setReference
|
|
4569
|
+
};
|
|
4570
|
+
};
|
|
4571
|
+
return typeof t == "function" ? t(w) : b.isValidElement(t) ? b.Children.count(t) === 1 ? b.cloneElement(t, w(t.props)) : (console.error("Invalid children passed to TooltipContainer, expected a render prop or single child element."), t) : /* @__PURE__ */ y("span", { ...w(), children: t });
|
|
4572
|
+
};
|
|
4573
|
+
return /* @__PURE__ */ V(Ee, { children: [
|
|
4574
|
+
k(),
|
|
4575
|
+
_()
|
|
4576
|
+
] });
|
|
4577
|
+
}, xa = "ujrFIq_bk-close--dark", Ea = "ujrFIq_bk-toast", Ra = "ujrFIq_bk-toast--error", Ta = "ujrFIq_bk-toast--info", Sa = "ujrFIq_bk-toast--success", Oa = "ujrFIq_bk-toast__actions", Ca = "ujrFIq_bk-toast__body", Na = "ujrFIq_bk-toast__button", Ia = "ujrFIq_bk-toast__copy-button", Aa = "ujrFIq_bk-toast__copy-icon", Ma = "ujrFIq_bk-toast__icon--error", Da = "ujrFIq_bk-toast__icon--info", Pa = "ujrFIq_bk-toast__icon--success", La = "ujrFIq_bk-toast__link", Fa = "ujrFIq_bk-toast__message", Ba = "ujrFIq_bk-toast__message__title", $a = "ujrFIq_bk-toast__progress-bar--error", Ha = "ujrFIq_bk-toast__progress-bar--info", Ga = "ujrFIq_bk-toast__progress-bar--success", it = { "bk-close--dark": xa, "bk-toast": Ea, "bk-toast--error": Ra, "bk-toast--info": Ta, "bk-toast--success": Sa, "bk-toast__actions": Oa, "bk-toast__body": Ca, "bk-toast__button": Na, "bk-toast__copy-button": Ia, "bk-toast__copy-icon": Aa, "bk-toast__icon--error": Ma, "bk-toast__icon--info": Da, "bk-toast__icon--success": Pa, "bk-toast__link": La, "bk-toast__message": Fa, "bk-toast__message__title": Ba, "bk-toast__progress-bar--error": $a, "bk-toast__progress-bar--info": Ha, "bk-toast__progress-bar--success": Ga }, jl = (e) => {
|
|
4578
|
+
const { title: t, message: n, options: r = {} } = e;
|
|
4579
|
+
return /* @__PURE__ */ V(Ee, { children: [
|
|
4580
|
+
/* @__PURE__ */ V("div", { className: E(it["bk-toast__message"]), children: [
|
|
4581
|
+
/* @__PURE__ */ y("div", { className: E(it["bk-toast__message__title"]), children: t }),
|
|
4582
|
+
n && typeof n != "function" && /* @__PURE__ */ y("p", { children: n })
|
|
4583
|
+
] }),
|
|
4584
|
+
r.actions && /* @__PURE__ */ y("div", { className: E(it["bk-toast__actions"]), children: r.actions })
|
|
4585
|
+
] });
|
|
4586
|
+
}, Va = ({ closeToast: e }) => /* @__PURE__ */ y(ie, { icon: "cross", className: E(it["bk-close--dark"]), onClick: e }), Ul = (e) => {
|
|
4587
|
+
const {
|
|
4588
|
+
unstyled: t = !1,
|
|
4589
|
+
hasCloseButton: n = !1,
|
|
4590
|
+
className: r = "",
|
|
4591
|
+
showProgressBar: o = !1,
|
|
4592
|
+
children: i,
|
|
4593
|
+
...s
|
|
4594
|
+
} = e;
|
|
4595
|
+
return /* @__PURE__ */ V(Ee, { children: [
|
|
4596
|
+
i,
|
|
4597
|
+
Gt.createPortal(
|
|
4598
|
+
/* @__PURE__ */ y(
|
|
4599
|
+
la,
|
|
4600
|
+
{
|
|
4601
|
+
className: E(
|
|
4602
|
+
{
|
|
4603
|
+
bk: !0,
|
|
4604
|
+
[it["bk-toast"]]: !t
|
|
4605
|
+
},
|
|
4606
|
+
r
|
|
4607
|
+
),
|
|
4608
|
+
hideProgressBar: !o,
|
|
4609
|
+
closeButton: n && /* @__PURE__ */ y(Va, {}),
|
|
4610
|
+
...s
|
|
4611
|
+
}
|
|
4612
|
+
),
|
|
4613
|
+
window.document.body
|
|
4614
|
+
)
|
|
4615
|
+
] });
|
|
4616
|
+
}, qa = "UvCgwG_bk-app-layout", Ka = "UvCgwG_bk-app-layout__content", Wa = "UvCgwG_bk-app-layout__footer", ja = "UvCgwG_bk-app-layout__header", Ua = "UvCgwG_bk-app-layout__sidebar", za = { "bk-app-layout": qa, "bk-app-layout__content": Ka, "bk-app-layout__footer": Wa, "bk-app-layout__header": ja, "bk-app-layout__sidebar": Ua }, zl = (e) => {
|
|
4617
|
+
const { unstyled: t = !1, ...n } = e;
|
|
4618
|
+
return /* @__PURE__ */ y(
|
|
4619
|
+
"div",
|
|
4620
|
+
{
|
|
4621
|
+
...n,
|
|
4622
|
+
className: E(
|
|
4623
|
+
"bk",
|
|
4624
|
+
{ [za["bk-app-layout"]]: !t },
|
|
4625
|
+
n.className
|
|
4626
|
+
)
|
|
4627
|
+
}
|
|
4628
|
+
);
|
|
4629
|
+
}, Ya = "qXsYOq_bk-breadcrumb", Xa = "qXsYOq_bk-breadcrumb-item", Ja = "qXsYOq_bk-breadcrumb-item--with-trailing-slash", Qa = "qXsYOq_bk-breadcrumb-link", Za = "qXsYOq_bk-breadcrumbs", nt = { "bk-breadcrumb": Ya, "bk-breadcrumb-item": Xa, "bk-breadcrumb-item--with-trailing-slash": Ja, "bk-breadcrumb-link": Qa, "bk-breadcrumbs": Za }, Yl = (e) => {
|
|
4630
|
+
const { children: t, unstyled: n = !1, items: r = [], hasTrailingSlash: o, ...i } = e;
|
|
4631
|
+
return /* @__PURE__ */ y(
|
|
4632
|
+
"nav",
|
|
4633
|
+
{
|
|
4634
|
+
...i,
|
|
4635
|
+
"aria-label": "Breadcrumbs",
|
|
4636
|
+
className: E({
|
|
4637
|
+
bk: !0,
|
|
4638
|
+
[nt["bk-breadcrumbs"]]: !n
|
|
4639
|
+
}, i.className),
|
|
4640
|
+
children: /* @__PURE__ */ V("ol", { className: E([nt["bk-breadcrumb"]]), children: [
|
|
4641
|
+
r.map((s, l) => {
|
|
4642
|
+
const a = l === r.length - 1;
|
|
4643
|
+
return /* @__PURE__ */ y(
|
|
4644
|
+
"li",
|
|
4645
|
+
{
|
|
4646
|
+
className: E({
|
|
4647
|
+
[nt["bk-breadcrumb-item"]]: !0,
|
|
4648
|
+
[nt["bk-breadcrumb-item--with-trailing-slash"]]: o
|
|
4649
|
+
}, s.className),
|
|
4650
|
+
children: s.href && !a ? /* @__PURE__ */ y(Rn, { href: s.href, className: E([nt["bk-breadcrumb-link"]]), children: s.title }) : s.title
|
|
4651
|
+
},
|
|
4652
|
+
l
|
|
4653
|
+
);
|
|
4654
|
+
}),
|
|
4655
|
+
t
|
|
4656
|
+
] })
|
|
4657
|
+
}
|
|
4658
|
+
);
|
|
4659
|
+
}, el = "ReT2ua_bk-app-layout-header", tl = "ReT2ua_popover-user-profile", nl = "ReT2ua_user-profile-trigger", rl = { "bk-app-layout-header": el, "popover-user-profile": tl, "user-profile-trigger": nl }, Xl = ({ children: e, unstyled: t, ...n }) => /* @__PURE__ */ y(
|
|
4660
|
+
"header",
|
|
4661
|
+
{
|
|
4662
|
+
role: "banner",
|
|
4663
|
+
...n,
|
|
4664
|
+
className: E(
|
|
4665
|
+
"bk",
|
|
4666
|
+
{ [rl["bk-app-layout-header"]]: !t }
|
|
4667
|
+
),
|
|
4668
|
+
children: e
|
|
4669
|
+
}
|
|
4670
|
+
);
|
|
4671
|
+
const ye = Object.assign(
|
|
4672
|
+
(e) => {
|
|
4673
|
+
const { children: t, unstyled: n = !1, items: r, placement: o = "bottom", enablePreciseTracking: i, ...s } = e, l = b.useRef(null), [a, f] = b.useState(null), m = b.useRef([]), [u, c] = b.useState(null), {
|
|
4674
|
+
refs: d,
|
|
4675
|
+
placement: p,
|
|
4676
|
+
floatingStyles: g,
|
|
4677
|
+
getReferenceProps: v,
|
|
4678
|
+
getFloatingProps: h,
|
|
4679
|
+
getItemProps: k,
|
|
4680
|
+
setIsOpen: _
|
|
4681
|
+
} = Pn({
|
|
4682
|
+
placement: o,
|
|
4683
|
+
offset: 8,
|
|
4684
|
+
floatingUiFlipOptions: {
|
|
4685
|
+
fallbackAxisSideDirection: "none",
|
|
4686
|
+
fallbackStrategy: "initialPlacement"
|
|
4687
|
+
},
|
|
4688
|
+
floatingUiInteractions: (I) => [
|
|
4689
|
+
Wr(I, {
|
|
4690
|
+
listRef: m,
|
|
4691
|
+
activeIndex: u,
|
|
4692
|
+
onNavigate: c
|
|
4693
|
+
})
|
|
4694
|
+
]
|
|
4695
|
+
}), w = b.useMemo(() => ({
|
|
4696
|
+
optionProps: () => k(),
|
|
4697
|
+
selectedOption: (a == null ? void 0 : a.optionKey) ?? null,
|
|
4698
|
+
selectOption: (I) => {
|
|
4699
|
+
var A;
|
|
4700
|
+
f(I), _(!1), (A = l.current) == null || A.focus();
|
|
4701
|
+
},
|
|
4702
|
+
close: () => {
|
|
4703
|
+
_(!1);
|
|
4704
|
+
}
|
|
4705
|
+
}), [a, _, k]);
|
|
4706
|
+
return (
|
|
4707
|
+
// @ts-ignore React 19
|
|
4708
|
+
/* @__PURE__ */ V(Ur, { value: w, children: [
|
|
4709
|
+
(() => {
|
|
4710
|
+
const I = (A) => {
|
|
4711
|
+
const S = (A == null ? void 0 : A.ref) ?? void 0;
|
|
4712
|
+
return typeof S == "string" ? (console.error("Failed to render DropdownMenuProvider, due to use of legacy string ref"), A ?? {}) : {
|
|
4713
|
+
...v(A),
|
|
4714
|
+
ref: S ? lt(S, d.setReference) : d.setReference
|
|
4715
|
+
};
|
|
4716
|
+
};
|
|
4717
|
+
return typeof t == "function" ? t({ props: I, state: w }) : b.isValidElement(t) ? b.Children.count(t) === 1 ? b.cloneElement(t, I(t.props)) : (console.error("Invalid children passed to DropdownMenuProvider, expected a render prop or single child element."), t) : /* @__PURE__ */ y("span", { ...I(), children: t });
|
|
4718
|
+
})(),
|
|
4719
|
+
/* @__PURE__ */ y(
|
|
4720
|
+
Mc,
|
|
4721
|
+
{
|
|
4722
|
+
...h({
|
|
4723
|
+
popover: "manual",
|
|
4724
|
+
style: g,
|
|
4725
|
+
...s,
|
|
4726
|
+
className: E(s.className)
|
|
4727
|
+
}),
|
|
4728
|
+
tabIndex: void 0,
|
|
4729
|
+
ref: lt(d.setFloating, s.ref),
|
|
4730
|
+
"data-placement": p,
|
|
4731
|
+
children: r
|
|
4732
|
+
}
|
|
4733
|
+
)
|
|
4734
|
+
] })
|
|
4735
|
+
);
|
|
4736
|
+
},
|
|
4737
|
+
{ Action: Yr, Option: Xr }
|
|
4738
|
+
), ol = "b7FQFq_bk-account-selector", sl = "b7FQFq_bk-account-selector__icon", _r = { "bk-account-selector": ol, "bk-account-selector__icon": sl }, Jl = (e) => {
|
|
4739
|
+
const { unstyled: t = !1, children: n, ...r } = e;
|
|
4740
|
+
return /* @__PURE__ */ y(
|
|
4741
|
+
ye,
|
|
4742
|
+
{
|
|
4743
|
+
placement: "bottom-start",
|
|
4744
|
+
items: /* @__PURE__ */ V(Ee, { children: [
|
|
4745
|
+
/* @__PURE__ */ y(ye.Option, { optionKey: "account-1", icon: "accounts", label: "Account 1" }),
|
|
4746
|
+
/* @__PURE__ */ y(ye.Option, { optionKey: "account-2", icon: "accounts", label: "Account 2" }),
|
|
4747
|
+
/* @__PURE__ */ y(ye.Option, { optionKey: "account-3", icon: "accounts", label: "Account 3" })
|
|
4748
|
+
] }),
|
|
4749
|
+
children: ({ props: o, state: i }) => /* @__PURE__ */ V(
|
|
4750
|
+
de,
|
|
4751
|
+
{
|
|
4752
|
+
unstyled: !0,
|
|
4753
|
+
...o({
|
|
4754
|
+
...r,
|
|
4755
|
+
className: E("bk", { [_r["bk-account-selector"]]: !t }, r.className)
|
|
4756
|
+
}),
|
|
4757
|
+
children: [
|
|
4758
|
+
/* @__PURE__ */ y(
|
|
4759
|
+
ie,
|
|
4760
|
+
{
|
|
4761
|
+
icon: "groups",
|
|
4762
|
+
className: _r["bk-account-selector__icon"],
|
|
4763
|
+
decoration: { type: "background-circle" }
|
|
4764
|
+
}
|
|
4765
|
+
),
|
|
4766
|
+
i.selectedOption === null ? "Accounts" : i.selectedOption,
|
|
4767
|
+
/* @__PURE__ */ y(ie, { icon: "caret-down" })
|
|
4768
|
+
]
|
|
4769
|
+
}
|
|
4770
|
+
)
|
|
4771
|
+
}
|
|
4772
|
+
);
|
|
4773
|
+
}, il = "SLL0RG_bk-solution-selector", cl = "SLL0RG_bk-solution-selector__icon", hr = { "bk-solution-selector": il, "bk-solution-selector__icon": cl }, Ql = (e) => {
|
|
4774
|
+
const { unstyled: t = !1, children: n, ...r } = e;
|
|
4775
|
+
return /* @__PURE__ */ y(
|
|
4776
|
+
ye,
|
|
4777
|
+
{
|
|
4778
|
+
placement: "bottom-start",
|
|
4779
|
+
items: /* @__PURE__ */ V(Ee, { children: [
|
|
4780
|
+
/* @__PURE__ */ y(ye.Option, { optionKey: "iam", icon: "user", label: "Identity & Access Management" }),
|
|
4781
|
+
/* @__PURE__ */ y(ye.Option, { optionKey: "key-insight", icon: "key", label: "Key Insight" })
|
|
4782
|
+
] }),
|
|
4783
|
+
children: ({ props: o }) => /* @__PURE__ */ V(
|
|
4784
|
+
de,
|
|
4785
|
+
{
|
|
4786
|
+
unstyled: !0,
|
|
4787
|
+
...o({
|
|
4788
|
+
...r,
|
|
4789
|
+
className: E("bk", { [hr["bk-solution-selector"]]: !t }, r.className)
|
|
4790
|
+
}),
|
|
4791
|
+
children: [
|
|
4792
|
+
/* @__PURE__ */ y(
|
|
4793
|
+
ie,
|
|
4794
|
+
{
|
|
4795
|
+
icon: "solutions",
|
|
4796
|
+
className: hr["bk-solution-selector__icon"],
|
|
4797
|
+
decoration: { type: "background-circle" }
|
|
4798
|
+
}
|
|
4799
|
+
),
|
|
4800
|
+
"Solutions",
|
|
4801
|
+
/* @__PURE__ */ y(ie, { icon: "caret-down" })
|
|
4802
|
+
]
|
|
4803
|
+
}
|
|
4804
|
+
)
|
|
4805
|
+
}
|
|
4806
|
+
);
|
|
4807
|
+
}, al = "UQB_AW_bk-user-menu", ll = "UQB_AW_bk-user-menu__user-icon", ul = "UQB_AW_bk-user-menu__user-name", ln = { "bk-user-menu": al, "bk-user-menu__user-icon": ll, "bk-user-menu__user-name": ul }, Zl = (e) => {
|
|
4808
|
+
const { unstyled: t = !1, children: n, userName: r, ...o } = e, i = () => r ? /* @__PURE__ */ V(Ee, { children: [
|
|
4809
|
+
/* @__PURE__ */ y(ie, { icon: "user-profile", className: E(ln["bk-user-menu__user-icon"]) }),
|
|
4810
|
+
/* @__PURE__ */ y("span", { className: E(ln["bk-user-menu__user-name"]), children: r })
|
|
4811
|
+
] }) : n;
|
|
4812
|
+
return /* @__PURE__ */ y(
|
|
4813
|
+
ye,
|
|
4814
|
+
{
|
|
4815
|
+
placement: "bottom-end",
|
|
4816
|
+
items: /* @__PURE__ */ V(Ee, { children: [
|
|
4817
|
+
/* @__PURE__ */ y(
|
|
4818
|
+
ye.Action,
|
|
4819
|
+
{
|
|
4820
|
+
itemKey: "profile",
|
|
4821
|
+
label: "Profile",
|
|
4822
|
+
onActivate: ({ close: s }) => {
|
|
4823
|
+
console.log("Activated profile"), s();
|
|
4824
|
+
}
|
|
4825
|
+
}
|
|
4826
|
+
),
|
|
4827
|
+
/* @__PURE__ */ y(
|
|
4828
|
+
ye.Action,
|
|
4829
|
+
{
|
|
4830
|
+
itemKey: "sign-out",
|
|
4831
|
+
label: "Sign out",
|
|
4832
|
+
onActivate: ({ close: s }) => {
|
|
4833
|
+
console.log("Activated sign out"), s();
|
|
4834
|
+
}
|
|
4835
|
+
}
|
|
4836
|
+
)
|
|
4837
|
+
] }),
|
|
4838
|
+
children: /* @__PURE__ */ y(
|
|
4839
|
+
de,
|
|
4840
|
+
{
|
|
4841
|
+
unstyled: !0,
|
|
4842
|
+
...o,
|
|
4843
|
+
className: E("bk", { [ln["bk-user-menu"]]: !t }, o.className),
|
|
4844
|
+
children: i()
|
|
4845
|
+
}
|
|
4846
|
+
)
|
|
4847
|
+
}
|
|
4848
|
+
);
|
|
4849
|
+
}, fl = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2028.8%2042.1'%20style='enable-background:new%200%200%2028.8%2042.1;'%20xml:space='preserve'%20aria-labelledby='logo-small'%3e%3cstyle%20type='text/css'%3e%20.st0{%20fill:url(%23Fill-1_1_);%20}%20.st1{%20fill:%23FFFFFF;%20}%20%3c/style%3e%3cg%20id='Group-3'%3e%3clinearGradient%20id='Fill-1_1_'%20gradientUnits='userSpaceOnUse'%20x1='-536.7165'%20y1='106.2919'%20x2='-535.7165'%20y2='106.2919'%20gradientTransform='matrix(28.8323%200%200%2041.5823%2015474.7715%20-4398.7603)'%3e%3cstop%20offset='0'%20style='stop-color:%237C59A4'/%3e%3cstop%20offset='0.5244'%20style='stop-color:%23647ABA'/%3e%3cstop%20offset='1'%20style='stop-color:%233BC5F3'/%3e%3c/linearGradient%3e%3cpath%20id='Fill-1'%20class='st0'%20d='M24.6,4.5h4.2V0.3h-4.2C24.6,0.3,24.6,4.5,24.6,4.5z%20M12.3,4.5h4.2V0.3h-4.2V4.5z%20M0,4.5h4.2V0.3%20H0V4.5z%20M24.6,10.8h4.2V6.6h-4.2C24.6,6.6,24.6,10.8,24.6,10.8z%20M18.8,10.8H23V6.6h-4.2V10.8z%20M12.3,17.1h4.2V6.6h-4.2V17.1z%20M5.9,36.4h4.2V6.6H5.9V36.4z%20M0,10.8h4.2V6.6H0V10.8z%20M24.6,17.1h4.2v-4.2h-4.2C24.6,12.9,24.6,17.1,24.6,17.1z%20M18.8,36.4H23%20V12.9h-4.2V36.4z%20M0,29.4h4.2V12.9H0V29.4z%20M24.6,29.4h4.2V19.2h-4.2C24.6,19.2,24.6,29.4,24.6,29.4z%20M12.3,23.5h4.2v-4.2h-4.2%20V23.5z%20M12.3,41.9h4.2V25.2h-4.2V41.9z'/%3e%3c/g%3e%3c/svg%3e", dl = "_1bMqcG_bk-app-logo", pl = { "bk-app-logo": dl }, eu = ({ ...e }) => {
|
|
4850
|
+
const t = "Data Security Manager";
|
|
4851
|
+
return /* @__PURE__ */ y(
|
|
4852
|
+
"figure",
|
|
4853
|
+
{
|
|
4854
|
+
...e,
|
|
4855
|
+
className: E(
|
|
4856
|
+
"bk",
|
|
4857
|
+
pl["bk-app-logo"],
|
|
4858
|
+
e.className
|
|
4859
|
+
),
|
|
4860
|
+
children: /* @__PURE__ */ V("div", { className: "_logo", children: [
|
|
4861
|
+
/* @__PURE__ */ y("div", { className: "_icon", children: /* @__PURE__ */ y("img", { alt: `Fortanix ${t}`, src: fl }) }),
|
|
4862
|
+
/* @__PURE__ */ y("span", { className: "_title", children: "Fortanix" }),
|
|
4863
|
+
/* @__PURE__ */ y("span", { className: "_subtitle", children: t })
|
|
4864
|
+
] })
|
|
4865
|
+
}
|
|
4866
|
+
);
|
|
4867
|
+
}, ml = "LUKdhW_bk-nav", bl = "LUKdhW_bk-nav__item", gl = "LUKdhW_bk-nav__item__link", rt = { "bk-nav": ml, "bk-nav__item": bl, "bk-nav__item__link": gl }, _l = (e) => {
|
|
4868
|
+
const { unstyled: t, children: n, className: r, href: o, label: i, icon: s, active: l, ...a } = e, f = () => i ? /* @__PURE__ */ V(Rn, { unstyled: !0, href: o, className: E(rt["bk-nav__item__link"]), children: [
|
|
4869
|
+
s && /* @__PURE__ */ y(ie, { className: E(rt["bk-nav__item__link__icon"]), icon: s }),
|
|
4870
|
+
/* @__PURE__ */ y("span", { className: E(rt["bk-nav__item__link__label"]), children: i })
|
|
4871
|
+
] }) : n;
|
|
4872
|
+
return /* @__PURE__ */ y(
|
|
4873
|
+
"li",
|
|
4874
|
+
{
|
|
4875
|
+
"aria-current": l ? "page" : void 0,
|
|
4876
|
+
...a,
|
|
4877
|
+
className: E(
|
|
4878
|
+
{ [rt["bk-nav__item"]]: !t }
|
|
4879
|
+
),
|
|
4880
|
+
children: f()
|
|
4881
|
+
}
|
|
4882
|
+
);
|
|
4883
|
+
}, tu = Object.assign(
|
|
4884
|
+
({ unstyled: e, children: t, className: n, ...r }) => /* @__PURE__ */ y(
|
|
4885
|
+
"nav",
|
|
4886
|
+
{
|
|
4887
|
+
...r,
|
|
4888
|
+
className: E(
|
|
4889
|
+
"bk",
|
|
4890
|
+
{ [rt["bk-nav"]]: !e }
|
|
4891
|
+
),
|
|
4892
|
+
children: /* @__PURE__ */ y("menu", { children: t })
|
|
4893
|
+
}
|
|
4894
|
+
),
|
|
4895
|
+
{ NavItem: _l }
|
|
4896
|
+
), hl = "ZEakJq_-collapsed", kl = "ZEakJq_bk-app-layout-sidebar", yl = "ZEakJq_bk-app-layout-sidebar--collapsible", vl = "ZEakJq_bk-app-layout-sidebar__action-collapse", wl = "ZEakJq_bk-logo-with-text", xl = { "-collapsed": hl, "bk-app-layout-sidebar": kl, "bk-app-layout-sidebar--collapsible": yl, "bk-app-layout-sidebar__action-collapse": vl, "bk-logo-with-text": wl }, nu = ({ children: e, unstyled: t, ...n }) => /* @__PURE__ */ y(
|
|
4897
|
+
"aside",
|
|
4898
|
+
{
|
|
4899
|
+
...n,
|
|
4900
|
+
className: E(
|
|
4901
|
+
"bk",
|
|
4902
|
+
{ [xl["bk-app-layout-sidebar"]]: !t },
|
|
4903
|
+
//{ [cl['bk-app-layout-sidebar--collapsible']]: true },
|
|
4904
|
+
n.className
|
|
4905
|
+
),
|
|
4906
|
+
children: e
|
|
4907
|
+
}
|
|
4908
|
+
), El = "vij1nW_bk-form-layout", Rl = { "bk-form-layout": El }, ru = (e) => {
|
|
4909
|
+
const { unstyled: t = !1, ...n } = e;
|
|
4910
|
+
return /* @__PURE__ */ y(
|
|
4911
|
+
"div",
|
|
4912
|
+
{
|
|
4913
|
+
...n,
|
|
4914
|
+
className: E(
|
|
4915
|
+
"bk",
|
|
4916
|
+
{ [Rl["bk-form-layout"]]: !t },
|
|
4917
|
+
n.className
|
|
4918
|
+
)
|
|
4919
|
+
}
|
|
4920
|
+
);
|
|
4921
|
+
};
|
|
4922
|
+
export {
|
|
4923
|
+
Jl as AccountSelector,
|
|
4924
|
+
Nl as Alert,
|
|
4925
|
+
zl as AppLayout,
|
|
4926
|
+
Ml as Banner,
|
|
4927
|
+
Yl as Breadcrumbs,
|
|
4928
|
+
de as Button,
|
|
4929
|
+
Ol as ButtonAsLink,
|
|
4930
|
+
Il as Card,
|
|
4931
|
+
Ll as Checkbox,
|
|
4932
|
+
Al as Dialog,
|
|
4933
|
+
Mc as DropdownMenu,
|
|
4934
|
+
Dl as Form,
|
|
4935
|
+
ru as FormLayout,
|
|
4936
|
+
Xl as Header,
|
|
4937
|
+
ie as Icon,
|
|
4938
|
+
Cr as Input,
|
|
4939
|
+
$l as InputField,
|
|
4940
|
+
Rn as Link,
|
|
4941
|
+
Cl as LinkAsButton,
|
|
4942
|
+
eu as Logo,
|
|
4943
|
+
Ln as Modal,
|
|
4944
|
+
tu as Nav,
|
|
4945
|
+
Lo as Panel,
|
|
4946
|
+
Hl as ProgressBar,
|
|
4947
|
+
Gl as PropertyList,
|
|
4948
|
+
Fl as SegmentedControl,
|
|
4949
|
+
Bl as Select,
|
|
4950
|
+
nu as Sidebar,
|
|
4951
|
+
Ql as SolutionSelector,
|
|
4952
|
+
vr as Spinner,
|
|
4953
|
+
Kl as Stepper,
|
|
4954
|
+
Pl as SubmitButton,
|
|
4955
|
+
Vl as Tab,
|
|
4956
|
+
ql as Tabs,
|
|
4957
|
+
jl as ToastMessage,
|
|
4958
|
+
Ul as ToastProvider,
|
|
4959
|
+
wa as Tooltip,
|
|
4960
|
+
Wl as TooltipProvider,
|
|
4961
|
+
Zl as UserMenu
|
|
4962
|
+
};
|