@fluidattacks/design 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/capitalize.js +7 -0
- package/dist/_virtual/dayjs.min.js +8 -0
- package/dist/_virtual/dayjs.min2.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.umd.js +7 -0
- package/dist/_virtual/index.umd2.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +7 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.js +5 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isEmpty.js +7 -0
- package/dist/_virtual/isEqual.js +7 -0
- package/dist/_virtual/isNaN.js +7 -0
- package/dist/_virtual/isNil.js +7 -0
- package/dist/_virtual/isNumber.js +7 -0
- package/dist/_virtual/isUndefined.js +7 -0
- package/dist/_virtual/localizedFormat.js +7 -0
- package/dist/_virtual/localizedFormat2.js +4 -0
- package/dist/_virtual/lodash.js +8 -0
- package/dist/_virtual/lodash2.js +4 -0
- package/dist/_virtual/lowerFirst.js +7 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/scrollparent.js +7 -0
- package/dist/_virtual/scrollparent2.js +4 -0
- package/dist/_virtual/snakeCase.js +7 -0
- package/dist/_virtual/some.js +7 -0
- package/dist/_virtual/transform.js +7 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/components/@core/constants.js +78 -0
- package/dist/components/@core/index.js +18 -15
- package/dist/components/@core/styles.js +43 -0
- package/dist/components/@core/utils.js +115 -0
- package/dist/components/@core/variants/utils.js +6 -0
- package/dist/components/accordion/accordion-content/index.js +23 -3
- package/dist/components/accordion/index.js +93 -5
- package/dist/components/advanced-badge/index.js +75 -4
- package/dist/components/advisories-card/index.js +149 -5
- package/dist/components/alert/index.js +91 -4
- package/dist/components/alert/styles.js +116 -0
- package/dist/components/avatar/index.js +80 -5
- package/dist/components/avatar/styles.js +86 -0
- package/dist/components/button/index.js +104 -4
- package/dist/components/button/styles.js +117 -0
- package/dist/components/card/card-header/index.js +92 -4
- package/dist/components/card/card-with-image/index.js +93 -5
- package/dist/components/card/card-with-input/index.js +142 -5
- package/dist/components/card/card-with-input/styles.js +29 -0
- package/dist/components/card/card-with-options/index.js +83 -5
- package/dist/components/card/card-with-selector/index.js +134 -4
- package/dist/components/card/card-with-selector/styles.js +34 -0
- package/dist/components/card/card-with-switch/index.js +46 -4
- package/dist/components/card/index.js +13 -7
- package/dist/components/card/indicator-card/index.js +73 -5
- package/dist/components/card-container/index.js +30 -4
- package/dist/components/carousel/index.js +43 -6
- package/dist/components/carousel/styles.js +39 -0
- package/dist/components/checkbox/index.js +68 -4
- package/dist/components/checkbox/styles.js +82 -0
- package/dist/components/circular-progress/index.js +94 -4
- package/dist/components/cloud-image/index.js +25 -6
- package/dist/components/code-snippet/constants.js +72 -0
- package/dist/components/code-snippet/index.js +176 -6
- package/dist/components/colors/index.js +210 -6
- package/dist/components/conditions-dialog/index.js +88 -6
- package/dist/components/confirm-dialog/index.js +40 -6
- package/dist/components/container/index.js +31 -4
- package/dist/components/container/styles.js +23 -0
- package/dist/components/copy-button/index.js +41 -4
- package/dist/components/divider/index.js +25 -4
- package/dist/components/drawer/index.js +229 -6
- package/dist/components/drawer/styles.js +64 -0
- package/dist/components/dropdown/index.js +77 -6
- package/dist/components/dropdown/styles.js +45 -0
- package/dist/components/empty-state/empty-button/index.js +13 -3
- package/dist/components/empty-state/index.js +60 -3
- package/dist/components/empty-state/styles.js +41 -0
- package/dist/components/fa-tag/index.js +30 -3
- package/dist/components/fa-tag/styles.js +53 -0
- package/dist/components/file-preview/index.js +16 -3
- package/dist/components/file-preview/styles.js +27 -0
- package/dist/components/file-preview/utils.js +10 -0
- package/dist/components/filters/active-filters/active-filter/index.js +59 -3
- package/dist/components/filters/active-filters/index.js +49 -3
- package/dist/components/filters/active-filters/utils.js +64 -0
- package/dist/components/filters/context/index.js +17 -3
- package/dist/components/filters/filters-menu/index.js +199 -6
- package/dist/components/filters/hooks.js +25 -0
- package/dist/components/filters/index.js +219 -7
- package/dist/components/filters/options-menu/include-exclude/index.js +135 -5
- package/dist/components/filters/options-menu/include-exclude/multi-select.js +151 -0
- package/dist/components/filters/options-menu/include-exclude/styles.js +119 -0
- package/dist/components/filters/options-menu/index.js +289 -6
- package/dist/components/filters/options-menu/options/index.js +360 -6
- package/dist/components/filters/options-menu/single-select/index.js +236 -6
- package/dist/components/filters/options-menu/single-select/styles.js +33 -0
- package/dist/components/filters/options-menu/utils.js +4 -0
- package/dist/components/filters/search/no-matches/index.js +51 -4
- package/dist/components/filters/styles.js +121 -0
- package/dist/components/filters/utils.js +36 -0
- package/dist/components/form/index.js +103 -11
- package/dist/components/form/inner-form/index.js +8 -3
- package/dist/components/form/styles.js +15 -0
- package/dist/components/grid-container/index.js +33 -4
- package/dist/components/grid-container/styles.js +26 -0
- package/dist/components/group-selector/index.js +143 -6
- package/dist/components/group-selector/option-container/index.js +30 -6
- package/dist/components/group-selector/styles.js +42 -0
- package/dist/components/icon/index.js +54 -4
- package/dist/components/icon/styles.js +60 -0
- package/dist/components/icon-button/index.js +58 -4
- package/dist/components/icon-button/styles.js +29 -0
- package/dist/components/indicator-card-db/index.js +71 -5
- package/dist/components/indicator-card-db/styles.js +22 -0
- package/dist/components/inputs/fields/combobox/field/index.js +431 -6
- package/dist/components/inputs/fields/combobox/index.js +94 -4
- package/dist/components/inputs/fields/combobox/option/index.js +121 -6
- package/dist/components/inputs/fields/combobox/styles.js +132 -0
- package/dist/components/inputs/fields/date/calendar/cell/index.js +25 -5
- package/dist/components/inputs/fields/date/calendar/grid/index.js +23 -4
- package/dist/components/inputs/fields/date/calendar/header/index.js +42 -5
- package/dist/components/inputs/fields/date/calendar/index.js +29 -4
- package/dist/components/inputs/fields/date/calendar/styles.js +144 -0
- package/dist/components/inputs/fields/date/index.js +87 -5
- package/dist/components/inputs/fields/date-range/calendar/index.js +34 -5
- package/dist/components/inputs/fields/date-range/index.js +137 -5
- package/dist/components/inputs/fields/date-range/styles.js +16 -0
- package/dist/components/inputs/fields/date-time/calendar/index.js +49 -5
- package/dist/components/inputs/fields/date-time/calendar/styles.js +21 -0
- package/dist/components/inputs/fields/date-time/index.js +107 -5
- package/dist/components/inputs/fields/editable/index.js +26 -4
- package/dist/components/inputs/fields/input-array/field/index.js +69 -4
- package/dist/components/inputs/fields/input-array/index.js +65 -5
- package/dist/components/inputs/fields/input-file/default/index.js +65 -4
- package/dist/components/inputs/fields/input-file/dropzone/index.js +218 -5
- package/dist/components/inputs/fields/input-file/index.js +124 -5
- package/dist/components/inputs/fields/input-file/styles.js +137 -0
- package/dist/components/inputs/fields/input-section/index.js +29 -3
- package/dist/components/inputs/fields/input-tags/field/index.js +117 -5
- package/dist/components/inputs/fields/input-tags/index.js +64 -4
- package/dist/components/inputs/fields/input-tags/styles.js +11 -0
- package/dist/components/inputs/fields/number/compact/index.js +38 -4
- package/dist/components/inputs/fields/number/index.js +83 -3
- package/dist/components/inputs/fields/number-range/index.js +57 -3
- package/dist/components/inputs/fields/phone/index.js +181 -7
- package/dist/components/inputs/fields/phone/styles.js +110 -0
- package/dist/components/inputs/fields/text-area/index.js +94 -4
- package/dist/components/inputs/fields/text-input/index.js +133 -5
- package/dist/components/inputs/index.js +31 -16
- package/dist/components/inputs/label/index.js +51 -5
- package/dist/components/inputs/outline-container/index.js +106 -4
- package/dist/components/inputs/styles.js +264 -0
- package/dist/components/inputs/utils/action-button/index.js +29 -4
- package/dist/components/inputs/utils/calendar-button/index.js +35 -5
- package/dist/components/inputs/utils/date-selector/index.js +85 -4
- package/dist/components/inputs/utils/date-time-field/index.js +133 -7
- package/dist/components/inputs/utils/dialog/index.js +12 -5
- package/dist/components/inputs/utils/number-field/index.js +190 -6
- package/dist/components/inputs/utils/popover/index.js +61 -6
- package/dist/components/inputs/utils/styles.js +113 -0
- package/dist/components/inputs/utils.js +44 -0
- package/dist/components/item-card-db/index.js +70 -4
- package/dist/components/item-card-db/styles.js +47 -0
- package/dist/components/language-switcher/index.js +92 -7
- package/dist/components/language-switcher/language-option/index.js +35 -5
- package/dist/components/language-switcher/spinner/index.js +15 -3
- package/dist/components/language-switcher/styles.js +121 -0
- package/dist/components/layout/categories/buttons/index.js +14 -4
- package/dist/components/layout/categories/column/index.js +23 -3
- package/dist/components/layout/categories/column/styles.js +32 -0
- package/dist/components/layout/categories/gap/index.js +3 -2
- package/dist/components/layout/categories/gap/styles.js +17 -0
- package/dist/components/layout/categories/row/index.js +19 -3
- package/dist/components/layout/categories/row/styles.js +30 -0
- package/dist/components/layout/index.js +9 -6
- package/dist/components/link/index.js +61 -3
- package/dist/components/link/styles.js +57 -0
- package/dist/components/list-item/index.js +69 -6
- package/dist/components/list-item/styles.js +64 -0
- package/dist/components/little-flag/index.js +17 -3
- package/dist/components/little-flag/styles.js +18 -0
- package/dist/components/loading/index.js +22 -4
- package/dist/components/loading/styles.js +71 -0
- package/dist/components/loading/types.js +4 -0
- package/dist/components/logo/index.js +11 -3
- package/dist/components/lottie/index.js +7 -3
- package/dist/components/lottie/styles.js +16 -0
- package/dist/components/menu/index.js +57 -5
- package/dist/components/message-banner/index.js +76 -5
- package/dist/components/message-banner/styles.js +23 -0
- package/dist/components/modal/columns-modal/index.js +146 -6
- package/dist/components/modal/columns-modal/preview-panel/index.js +100 -5
- package/dist/components/modal/columns-modal/preview-panel/styles.js +29 -0
- package/dist/components/modal/columns-modal/search-panel/index.js +127 -4
- package/dist/components/modal/columns-modal/search-panel/styles.js +22 -0
- package/dist/components/modal/footer/index.js +57 -5
- package/dist/components/modal/header/index.js +65 -6
- package/dist/components/modal/index.js +112 -10
- package/dist/components/modal/modal-confirm/index.js +50 -3
- package/dist/components/modal/styles.js +156 -0
- package/dist/components/modal/utils.js +13 -0
- package/dist/components/notification/index.js +63 -5
- package/dist/components/notification/styles.js +62 -0
- package/dist/components/notification/utils.js +4 -0
- package/dist/components/notification-sign/index.js +23 -4
- package/dist/components/notification-sign/styles.js +34 -0
- package/dist/components/oauth-selector/index.js +93 -6
- package/dist/components/oauth-selector/option-container/index.js +74 -4
- package/dist/components/option-card/index.js +83 -5
- package/dist/components/package-card/index.js +105 -6
- package/dist/components/paginator-db/btn/index.js +19 -3
- package/dist/components/paginator-db/btn/styles.js +39 -0
- package/dist/components/paginator-db/dropdown/index.js +112 -6
- package/dist/components/paginator-db/index.js +123 -5
- package/dist/components/paginator-db/styles.js +31 -0
- package/dist/components/paginator-db/utils.js +21 -0
- package/dist/components/pop-up/description/index.js +58 -5
- package/dist/components/pop-up/index.js +164 -7
- package/dist/components/premium-feature/index.js +53 -4
- package/dist/components/premium-feature/styles.js +36 -0
- package/dist/components/priority-cards/card/index.js +81 -5
- package/dist/components/priority-cards/card/styles.js +18 -0
- package/dist/components/priority-cards/index.js +50 -6
- package/dist/components/priority-score/index.js +28 -4
- package/dist/components/progress-bar/index.js +61 -3
- package/dist/components/progress-bar/styles.js +95 -0
- package/dist/components/progress-indicator/in-progress-icon/index.js +51 -3
- package/dist/components/progress-indicator/index.js +29 -5
- package/dist/components/progress-indicator/step/index.js +81 -4
- package/dist/components/progress-indicator/styles.js +36 -0
- package/dist/components/radio-button/index.js +44 -4
- package/dist/components/radio-button/styles.js +85 -0
- package/dist/components/rank-position/icon/index.js +51 -3
- package/dist/components/rank-position/index.js +40 -4
- package/dist/components/rules-card/index.js +166 -6
- package/dist/components/scroll-button/index.js +49 -5
- package/dist/components/scroll-button/styles.js +13 -0
- package/dist/components/search/index.js +113 -6
- package/dist/components/search-dropdown/index.js +102 -6
- package/dist/components/search-dropdown/styles.js +79 -0
- package/dist/components/segmented-control/index.js +35 -4
- package/dist/components/segmented-control/styles.js +51 -0
- package/dist/components/segmented-progress-bar/index.js +47 -4
- package/dist/components/segmented-progress-bar/styles.js +35 -0
- package/dist/components/severity-badge/index.js +46 -4
- package/dist/components/severity-badge/utils.js +31 -0
- package/dist/components/severity-indicator/index.js +47 -4
- package/dist/components/severity-indicator/styles.js +23 -0
- package/dist/components/severity-indicator/utils.js +12 -0
- package/dist/components/severity-overview/badge/index.js +44 -4
- package/dist/components/severity-overview/index.js +15 -3
- package/dist/components/severity-overview/utils.js +29 -0
- package/dist/components/show-on-hover/index.js +11 -3
- package/dist/components/show-on-hover/styles.js +23 -0
- package/dist/components/slide-out-menu/index.js +142 -6
- package/dist/components/slide-out-menu/menu-item/index.js +65 -4
- package/dist/components/slide-out-menu/styles.js +29 -0
- package/dist/components/slider/index.js +79 -7
- package/dist/components/slider/styles.js +83 -0
- package/dist/components/slider/thumb/index.js +17 -5
- package/dist/components/slider/utils.js +4 -0
- package/dist/components/step-lapse/index.js +71 -4
- package/dist/components/step-lapse/styles.js +93 -0
- package/dist/components/summary-card/index.js +69 -4
- package/dist/components/table/context/index.js +13 -3
- package/dist/components/table/export-csv/index.js +40 -5
- package/dist/components/table/export-csv/utils.js +32 -0
- package/dist/components/table/index.js +22 -2
- package/dist/components/table/pagination/pagination-control/index.js +41 -4
- package/dist/components/table/pagination/pagination-control/styles.js +32 -0
- package/dist/components/table/pagination/pagination-dropdown/index.js +124 -6
- package/dist/components/table/pagination/pagination-size/index.js +29 -4
- package/dist/components/table/sort-icon/index.js +28 -4
- package/dist/components/table/sort-icon/styles.js +30 -0
- package/dist/components/table/styles.js +260 -0
- package/dist/components/table/table-body/index.js +108 -6
- package/dist/components/table/table-body/styles.js +10 -0
- package/dist/components/table/table-column-toggle/index.js +57 -5
- package/dist/components/table/table-content/head/index.js +149 -7
- package/dist/components/table/table-content/index.js +55 -4
- package/dist/components/table/table-footer/footer-content/index.js +4 -2
- package/dist/components/table/table-footer/index.js +16 -3
- package/dist/components/table/table-options/caption-content/index.js +6 -3
- package/dist/components/table/table-options/controls-content/index.js +6 -3
- package/dist/components/table/table-options/highlighted-content/index.js +5 -3
- package/dist/components/table/table-options/index.js +45 -4
- package/dist/components/table/table-options/styles.js +89 -0
- package/dist/components/table/wrapper/index.js +61 -6
- package/dist/components/table-button/index.js +47 -4
- package/dist/components/table-button/styles.js +59 -0
- package/dist/components/table-content/index.js +64 -5
- package/dist/components/table-content/item-content/index.js +60 -4
- package/dist/components/table-content/styles.js +17 -0
- package/dist/components/table-of-contents/index.js +42 -4
- package/dist/components/table-of-contents/styles.js +77 -0
- package/dist/components/tabs/index.js +61 -4
- package/dist/components/tabs/styles.js +64 -0
- package/dist/components/tabs/tab/index.js +42 -4
- package/dist/components/tag/index.js +102 -4
- package/dist/components/tag/styles.js +172 -0
- package/dist/components/timeline/card/index.js +50 -4
- package/dist/components/timeline/index.js +14 -4
- package/dist/components/timeline/styles.js +101 -0
- package/dist/components/toggle/index.js +96 -4
- package/dist/components/toggle/styles.js +186 -0
- package/dist/components/tooltip/index.js +133 -7
- package/dist/components/tooltip/styles.js +58 -0
- package/dist/components/tour/index.js +75 -7
- package/dist/components/tree/index.js +156 -5
- package/dist/components/truncated-list/index.js +51 -4
- package/dist/components/typography/heading/index.js +51 -4
- package/dist/components/typography/index.js +6 -4
- package/dist/components/typography/span/index.js +45 -4
- package/dist/components/typography/styles.js +141 -0
- package/dist/components/typography/text/index.js +53 -4
- package/dist/components/weaknesses-card/index.js +167 -6
- package/dist/components/weaknesses-card/styles.js +33 -0
- package/dist/globals/design-tokens-css/index.js +1 -1
- package/dist/globals/designs-provider/index.js +3 -3
- package/dist/hooks/index.js +18 -9
- package/dist/hooks/use-active-section.js +52 -0
- package/dist/hooks/use-carousel.js +19 -0
- package/dist/hooks/use-click-outside.js +20 -0
- package/dist/hooks/use-cloudinary-image.js +16 -0
- package/dist/hooks/use-columns-modal.js +54 -0
- package/dist/hooks/use-debounced-callback.js +9 -0
- package/dist/hooks/use-filters.js +188 -0
- package/dist/hooks/use-local-storage.js +36 -0
- package/dist/hooks/use-modal.js +14 -0
- package/dist/hooks/use-mount-effect.js +8 -0
- package/dist/hooks/use-query-states.js +55 -0
- package/dist/hooks/use-search.js +11 -0
- package/dist/index.js +334 -190
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@cloudinary/react/dist/index.js +2385 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/background/actions/BackgroundColor.js +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryAction.js +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryFormatAction.js +36 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/Action.js +59 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/RawAction.js +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/internalConstants.js +63 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/ActionModel.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IErrorObject.js +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/QualifierModel.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/actionToJson.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/qualifierToJson.js +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/Qualifier.js +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/QualifierValue.js +42 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/dataStructureUtils.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/objectFlip.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/prepareColor.js +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/unsupportedError.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/flag/FlagQualifier.js +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/flag.js +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/format/FormatQualifier.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/progressive.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/ImageTransformation.js +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/Transformation.js +244 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/VideoTransformation.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryFile.js +166 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryImage.js +10 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryTransformable.js +201 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryVideo.js +26 -0
- package/dist/node_modules/@cloudinary/url-gen/config/BaseConfig.js +14 -0
- package/dist/node_modules/@cloudinary/url-gen/config/URLConfig.js +81 -0
- package/dist/node_modules/@cloudinary/url-gen/instance/Cloudinary.js +24 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/internalConstants.js +16 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/cloudinaryURL.js +23 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/isFileName.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/isUrl.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/publicIDContainsVersion.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/utils/packageVersion.js +4 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/base64Map.js +10 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/encodeOSVersion.js +8 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/encodeVersion.js +17 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/getAnalyticsOptions.js +15 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/getSDKAnalyticsSignature.js +45 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/padVersion.js +14 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/reverseVersion.js +8 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/stringPad.js +13 -0
- package/dist/node_modules/@fastify/deepmerge/index.js +102 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +507 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +686 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +161 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +228 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@gilbarbara/deep-equal/dist/index.js +78 -0
- package/dist/node_modules/@gilbarbara/hooks/dist/index.js +81 -0
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +33 -0
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup.js +33 -0
- package/dist/node_modules/@internationalized/date/dist/private/CalendarDate.js +243 -0
- package/dist/node_modules/@internationalized/date/dist/private/DateFormatter.js +102 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/BuddhistCalendar.js +32 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/EthiopicCalendar.js +114 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +104 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/HebrewCalendar.js +88 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/IndianCalendar.js +40 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/IslamicCalendar.js +122 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/JapaneseCalendar.js +128 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/PersianCalendar.js +53 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/TaiwanCalendar.js +54 -0
- package/dist/node_modules/@internationalized/date/dist/private/conversion.js +141 -0
- package/dist/node_modules/@internationalized/date/dist/private/createCalendar.js +42 -0
- package/dist/node_modules/@internationalized/date/dist/private/manipulation.js +211 -0
- package/dist/node_modules/@internationalized/date/dist/private/queries.js +150 -0
- package/dist/node_modules/@internationalized/date/dist/private/string.js +50 -0
- package/dist/node_modules/@internationalized/date/dist/private/utils.js +6 -0
- package/dist/node_modules/@internationalized/date/dist/private/weekStartData.js +100 -0
- package/dist/node_modules/@internationalized/number/dist/private/NumberFormatter.js +121 -0
- package/dist/node_modules/@internationalized/number/dist/private/NumberParser.js +163 -0
- package/dist/node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.js +47 -0
- package/dist/node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.js +32 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +29 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +696 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +53 -0
- package/dist/node_modules/character-entities-legacy/index.js +111 -0
- package/dist/node_modules/character-reference-invalid/index.js +33 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/comma-separated-tokens/index.js +13 -0
- package/dist/node_modules/dayjs/dayjs.min.js +282 -0
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +29 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/components/LazyMotion/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +285 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/features-animation.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +28 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +20 -0
- package/dist/node_modules/hastscript/lib/create-h.js +112 -0
- package/dist/node_modules/hastscript/lib/index.js +8 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
- package/dist/node_modules/is-alphabetical/index.js +7 -0
- package/dist/node_modules/is-alphanumerical/index.js +8 -0
- package/dist/node_modules/is-decimal/index.js +7 -0
- package/dist/node_modules/is-hexadecimal/index.js +7 -0
- package/dist/node_modules/is-lite/dist/index.js +139 -0
- package/dist/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/lodash/_Hash.js +22 -0
- package/dist/node_modules/lodash/_ListCache.js +22 -0
- package/dist/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/lodash/_MapCache.js +22 -0
- package/dist/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/lodash/_SetCache.js +18 -0
- package/dist/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/lodash/_arrayReduce.js +15 -0
- package/dist/node_modules/lodash/_arraySome.js +15 -0
- package/dist/node_modules/lodash/_asciiToArray.js +12 -0
- package/dist/node_modules/lodash/_asciiWords.js +13 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/node_modules/lodash/_baseCreate.js +23 -0
- package/dist/node_modules/lodash/_baseEach.js +12 -0
- package/dist/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/lodash/_baseForOwn.js +15 -0
- package/dist/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/dist/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/node_modules/lodash/_baseHasIn.js +12 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +15 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +15 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +38 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +37 -0
- package/dist/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/node_modules/lodash/_baseIteratee.js +18 -0
- package/dist/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js +19 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +23 -0
- package/dist/node_modules/lodash/_baseProperty.js +14 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/dist/node_modules/lodash/_basePropertyOf.js +14 -0
- package/dist/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/lodash/_baseSome.js +17 -0
- package/dist/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/lodash/_baseToString.js +24 -0
- package/dist/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/node_modules/lodash/_cacheHas.js +12 -0
- package/dist/node_modules/lodash/_castPath.js +17 -0
- package/dist/node_modules/lodash/_castSlice.js +15 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_createBaseEach.js +22 -0
- package/dist/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/lodash/_createCaseFirst.js +21 -0
- package/dist/node_modules/lodash/_createCompounder.js +18 -0
- package/dist/node_modules/lodash/_deburrLetter.js +204 -0
- package/dist/node_modules/lodash/_equalArrays.js +46 -0
- package/dist/node_modules/lodash/_equalByTag.js +51 -0
- package/dist/node_modules/lodash/_equalObjects.js +42 -0
- package/dist/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/lodash/_getAllKeys.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js +15 -0
- package/dist/node_modules/lodash/_getMatchData.js +19 -0
- package/dist/node_modules/lodash/_getNative.js +16 -0
- package/dist/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/lodash/_getSymbols.js +16 -0
- package/dist/node_modules/lodash/_getTag.js +33 -0
- package/dist/node_modules/lodash/_getValue.js +12 -0
- package/dist/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/lodash/_hasUnicode.js +13 -0
- package/dist/node_modules/lodash/_hasUnicodeWord.js +13 -0
- package/dist/node_modules/lodash/_hashClear.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/node_modules/lodash/_hashGet.js +19 -0
- package/dist/node_modules/lodash/_hashHas.js +15 -0
- package/dist/node_modules/lodash/_hashSet.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js +14 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/node_modules/lodash/_isMasked.js +17 -0
- package/dist/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +14 -0
- package/dist/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/node_modules/lodash/_mapToArray.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +14 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +17 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nodeUtil.js +19 -0
- package/dist/node_modules/lodash/_objectToString.js +13 -0
- package/dist/node_modules/lodash/_overArg.js +14 -0
- package/dist/node_modules/lodash/_root.js +11 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js +12 -0
- package/dist/node_modules/lodash/_setToArray.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js +12 -0
- package/dist/node_modules/lodash/_stackHas.js +12 -0
- package/dist/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/lodash/_stringToArray.js +16 -0
- package/dist/node_modules/lodash/_stringToPath.js +16 -0
- package/dist/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/lodash/_toSource.js +23 -0
- package/dist/node_modules/lodash/_unicodeToArray.js +13 -0
- package/dist/node_modules/lodash/_unicodeWords.js +22 -0
- package/dist/node_modules/lodash/capitalize.js +15 -0
- package/dist/node_modules/lodash/deburr.js +15 -0
- package/dist/node_modules/lodash/eq.js +12 -0
- package/dist/node_modules/lodash/get.js +15 -0
- package/dist/node_modules/lodash/hasIn.js +15 -0
- package/dist/node_modules/lodash/identity.js +12 -0
- package/dist/node_modules/lodash/isArguments.js +16 -0
- package/dist/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/node_modules/lodash/isBuffer.js +14 -0
- package/dist/node_modules/lodash/isEmpty.js +33 -0
- package/dist/node_modules/lodash/isEqual.js +14 -0
- package/dist/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/lodash/isLength.js +13 -0
- package/dist/node_modules/lodash/isNaN.js +14 -0
- package/dist/node_modules/lodash/isNil.js +12 -0
- package/dist/node_modules/lodash/isNumber.js +15 -0
- package/dist/node_modules/lodash/isObject.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/node_modules/lodash/isSymbol.js +15 -0
- package/dist/node_modules/lodash/isTypedArray.js +13 -0
- package/dist/node_modules/lodash/isUndefined.js +12 -0
- package/dist/node_modules/lodash/keys.js +16 -0
- package/dist/node_modules/lodash/lodash.js +3692 -0
- package/dist/node_modules/lodash/lowerFirst.js +11 -0
- package/dist/node_modules/lodash/memoize.js +23 -0
- package/dist/node_modules/lodash/property.js +17 -0
- package/dist/node_modules/lodash/snakeCase.js +13 -0
- package/dist/node_modules/lodash/some.js +19 -0
- package/dist/node_modules/lodash/stubArray.js +12 -0
- package/dist/node_modules/lodash/stubFalse.js +12 -0
- package/dist/node_modules/lodash/toString.js +14 -0
- package/dist/node_modules/lodash/transform.js +30 -0
- package/dist/node_modules/lodash/upperFirst.js +11 -0
- package/dist/node_modules/lodash/words.js +17 -0
- package/dist/node_modules/lottie-light-react/build/index.umd.js +5068 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +112 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +144 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +106 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +178 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +68 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +74 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +33 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +43 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +618 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +263 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +143 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +215 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +14 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
- package/dist/node_modules/object-assign/index.js +54 -0
- package/dist/node_modules/parse-entities/lib/index.js +135 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-aria/dist/private/button/useButton.js +56 -0
- package/dist/node_modules/react-aria/dist/private/calendar/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendar.js +7 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarBase.js +76 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarCell.js +148 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarGrid.js +91 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useRangeCalendar.js +34 -0
- package/dist/node_modules/react-aria/dist/private/calendar/utils.js +109 -0
- package/dist/node_modules/react-aria/dist/private/combobox/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/combobox/useComboBox.js +243 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateField.js +115 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDatePicker.js +126 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDatePickerGroup.js +73 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateRangePicker.js +164 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateSegment.js +249 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDisplayNames.js +33 -0
- package/dist/node_modules/react-aria/dist/private/dialog/useDialog.js +52 -0
- package/dist/node_modules/react-aria/dist/private/dnd/DragManager.js +20 -0
- package/dist/node_modules/react-aria/dist/private/dnd/constants.js +33 -0
- package/dist/node_modules/react-aria/dist/private/dnd/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/dnd/useDrop.js +173 -0
- package/dist/node_modules/react-aria/dist/private/dnd/useVirtualDrop.js +31 -0
- package/dist/node_modules/react-aria/dist/private/dnd/utils.js +114 -0
- package/dist/node_modules/react-aria/dist/private/focus/FocusScope.js +490 -0
- package/dist/node_modules/react-aria/dist/private/focus/virtualFocus.js +32 -0
- package/dist/node_modules/react-aria/dist/private/form/useFormValidation.js +71 -0
- package/dist/node_modules/react-aria/dist/private/i18n/I18nProvider.js +10 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useCollator.js +11 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useDateFormatter.js +23 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useDefaultLocale.js +37 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useFilter.js +35 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useLocalizedStringFormatter.js +23 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useNumberFormatter.js +13 -0
- package/dist/node_modules/react-aria/dist/private/i18n/utils.js +47 -0
- package/dist/node_modules/react-aria/dist/private/interactions/PressResponder.js +14 -0
- package/dist/node_modules/react-aria/dist/private/interactions/context.js +9 -0
- package/dist/node_modules/react-aria/dist/private/interactions/createEventHandler.js +28 -0
- package/dist/node_modules/react-aria/dist/private/interactions/focusSafely.js +19 -0
- package/dist/node_modules/react-aria/dist/private/interactions/textSelection.js +36 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocus.js +31 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusVisible.js +90 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusWithin.js +59 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusable.js +32 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useHover.js +87 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useInteractOutside.js +51 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useKeyboard.js +12 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useLongPress.js +53 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useMove.js +165 -0
- package/dist/node_modules/react-aria/dist/private/interactions/usePress.js +418 -0
- package/dist/node_modules/react-aria/dist/private/interactions/utils.js +93 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ar-AE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/bg-BG.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/cs-CZ.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/da-DK.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/de-DE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/el-GR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/en-US.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/es-ES.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/et-EE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/fi-FI.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/fr-FR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/he-IL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/hr-HR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/hu-HU.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/it-IT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ja-JP.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ko-KR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/lt-LT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/lv-LV.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/nb-NO.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/nl-NL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pl-PL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pt-BR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pt-PT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ro-RO.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ru-RU.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sk-SK.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sl-SI.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sr-SP.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sv-SE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/tr-TR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/uk-UA.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/zh-CN.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/zh-TW.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ar-AE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/bg-BG.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/cs-CZ.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/da-DK.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/de-DE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/el-GR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/en-US.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/es-ES.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/et-EE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/fi-FI.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/fr-FR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/he-IL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/hr-HR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/hu-HU.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/it-IT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ja-JP.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ko-KR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/lt-LT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/lv-LV.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/nb-NO.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/nl-NL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pl-PL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pt-BR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pt-PT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ro-RO.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ru-RU.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sk-SK.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sl-SI.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sr-SP.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sv-SE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/tr-TR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/uk-UA.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/zh-CN.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/zh-TW.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ar-AE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/bg-BG.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/cs-CZ.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/da-DK.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/de-DE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/el-GR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/en-US.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/es-ES.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/et-EE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/fi-FI.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/fr-FR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/he-IL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/hr-HR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/hu-HU.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/it-IT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ja-JP.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ko-KR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/lt-LT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/lv-LV.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/nb-NO.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/nl-NL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pl-PL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pt-BR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pt-PT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ro-RO.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ru-RU.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sk-SK.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sl-SI.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sr-SP.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sv-SE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/tr-TR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/uk-UA.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/zh-CN.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/zh-TW.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ar-AE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/bg-BG.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/cs-CZ.js +46 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/da-DK.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/de-DE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/el-GR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/en-US.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/es-ES.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/et-EE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/fi-FI.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/fr-FR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/he-IL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/hr-HR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/hu-HU.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/it-IT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ja-JP.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ko-KR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/lt-LT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/lv-LV.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/nb-NO.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/nl-NL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pl-PL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pt-BR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pt-PT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ro-RO.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ru-RU.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sk-SK.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sl-SI.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sr-SP.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sv-SE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/tr-TR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/uk-UA.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/zh-CN.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/zh-TW.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ar-AE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/bg-BG.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/cs-CZ.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/da-DK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/de-DE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/el-GR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/en-US.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/es-ES.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/et-EE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/fi-FI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/fr-FR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/he-IL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/hr-HR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/hu-HU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/it-IT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ja-JP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ko-KR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/lt-LT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/lv-LV.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/nb-NO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/nl-NL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pl-PL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pt-BR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pt-PT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ro-RO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ru-RU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sk-SK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sl-SI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sr-SP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sv-SE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/tr-TR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/uk-UA.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/zh-CN.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/zh-TW.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ar-AE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/bg-BG.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/cs-CZ.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/da-DK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/de-DE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/el-GR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/en-US.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/es-ES.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/et-EE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/fi-FI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/fr-FR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/he-IL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/hr-HR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/hu-HU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/it-IT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ja-JP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ko-KR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/lt-LT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/lv-LV.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/nb-NO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/nl-NL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pl-PL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pt-BR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pt-PT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ro-RO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ru-RU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sk-SK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sl-SI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sr-SP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sv-SE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/tr-TR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/uk-UA.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/zh-CN.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/zh-TW.js +7 -0
- package/dist/node_modules/react-aria/dist/private/label/useField.js +36 -0
- package/dist/node_modules/react-aria/dist/private/label/useLabel.js +23 -0
- package/dist/node_modules/react-aria/dist/private/listbox/useListBox.js +56 -0
- package/dist/node_modules/react-aria/dist/private/listbox/useOption.js +69 -0
- package/dist/node_modules/react-aria/dist/private/listbox/utils.js +13 -0
- package/dist/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.js +49 -0
- package/dist/node_modules/react-aria/dist/private/menu/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/menu/useMenuTrigger.js +65 -0
- package/dist/node_modules/react-aria/dist/private/overlays/Overlay.js +38 -0
- package/dist/node_modules/react-aria/dist/private/overlays/PortalProvider.js +9 -0
- package/dist/node_modules/react-aria/dist/private/overlays/ariaHideOutside.js +119 -0
- package/dist/node_modules/react-aria/dist/private/overlays/calculatePosition.js +208 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useCloseOnScroll.js +26 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlay.js +50 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlayPosition.js +136 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlayTrigger.js +26 -0
- package/dist/node_modules/react-aria/dist/private/overlays/usePopover.js +46 -0
- package/dist/node_modules/react-aria/dist/private/overlays/usePreventScroll.js +112 -0
- package/dist/node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.js +38 -0
- package/dist/node_modules/react-aria/dist/private/selection/ListKeyboardDelegate.js +120 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableCollection.js +222 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableItem.js +137 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableList.js +38 -0
- package/dist/node_modules/react-aria/dist/private/selection/useTypeSelect.js +33 -0
- package/dist/node_modules/react-aria/dist/private/selection/utils.js +23 -0
- package/dist/node_modules/react-aria/dist/private/slider/useSlider.js +88 -0
- package/dist/node_modules/react-aria/dist/private/slider/useSliderThumb.js +142 -0
- package/dist/node_modules/react-aria/dist/private/slider/utils.js +10 -0
- package/dist/node_modules/react-aria/dist/private/spinbutton/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/spinbutton/useSpinButton.js +138 -0
- package/dist/node_modules/react-aria/dist/private/ssr/SSRProvider.js +52 -0
- package/dist/node_modules/react-aria/dist/private/textfield/useTextField.js +78 -0
- package/dist/node_modules/react-aria/dist/private/utils/chain.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/constants.js +5 -0
- package/dist/node_modules/react-aria/dist/private/utils/domHelpers.js +12 -0
- package/dist/node_modules/react-aria/dist/private/utils/filterDOMProps.js +65 -0
- package/dist/node_modules/react-aria/dist/private/utils/focusWithoutScrolling.js +45 -0
- package/dist/node_modules/react-aria/dist/private/utils/getNonce.js +15 -0
- package/dist/node_modules/react-aria/dist/private/utils/getScrollParent.js +9 -0
- package/dist/node_modules/react-aria/dist/private/utils/getScrollParents.js +10 -0
- package/dist/node_modules/react-aria/dist/private/utils/isElementVisible.js +25 -0
- package/dist/node_modules/react-aria/dist/private/utils/isFocusable.js +37 -0
- package/dist/node_modules/react-aria/dist/private/utils/isScrollable.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/isVirtualEvent.js +11 -0
- package/dist/node_modules/react-aria/dist/private/utils/keyboard.js +22 -0
- package/dist/node_modules/react-aria/dist/private/utils/mergeProps.js +23 -0
- package/dist/node_modules/react-aria/dist/private/utils/mergeRefs.js +21 -0
- package/dist/node_modules/react-aria/dist/private/utils/openLink.js +61 -0
- package/dist/node_modules/react-aria/dist/private/utils/platform.js +44 -0
- package/dist/node_modules/react-aria/dist/private/utils/runAfterTransition.js +38 -0
- package/dist/node_modules/react-aria/dist/private/utils/scrollIntoView.js +66 -0
- package/dist/node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.js +38 -0
- package/dist/node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.js +127 -0
- package/dist/node_modules/react-aria/dist/private/utils/useDeepMemo.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/useDescription.js +32 -0
- package/dist/node_modules/react-aria/dist/private/utils/useEffectEvent.js +17 -0
- package/dist/node_modules/react-aria/dist/private/utils/useEvent.js +20 -0
- package/dist/node_modules/react-aria/dist/private/utils/useFormReset.js +18 -0
- package/dist/node_modules/react-aria/dist/private/utils/useGlobalListeners.js +33 -0
- package/dist/node_modules/react-aria/dist/private/utils/useId.js +59 -0
- package/dist/node_modules/react-aria/dist/private/utils/useLabels.js +17 -0
- package/dist/node_modules/react-aria/dist/private/utils/useLayoutEffect.js +6 -0
- package/dist/node_modules/react-aria/dist/private/utils/useResizeObserver.js +32 -0
- package/dist/node_modules/react-aria/dist/private/utils/useSyncRef.js +12 -0
- package/dist/node_modules/react-aria/dist/private/utils/useUpdateEffect.js +15 -0
- package/dist/node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.js +13 -0
- package/dist/node_modules/react-aria/dist/private/utils/useValueEffect.js +28 -0
- package/dist/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js +40 -0
- package/dist/node_modules/react-csv/src/components/Download.js +34 -0
- package/dist/node_modules/react-csv/src/components/Link.js +85 -0
- package/dist/node_modules/react-csv/src/core.js +49 -0
- package/dist/node_modules/react-csv/src/index.js +6 -0
- package/dist/node_modules/react-csv/src/metaProps.js +23 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1501 -0
- package/dist/node_modules/react-innertext/index.js +16 -0
- package/dist/node_modules/react-international-phone/dist/index.js +333 -0
- package/dist/node_modules/react-joyride/dist/index.js +2044 -0
- package/dist/node_modules/react-stately/dist/private/calendar/useCalendarState.js +254 -0
- package/dist/node_modules/react-stately/dist/private/calendar/useRangeCalendarState.js +140 -0
- package/dist/node_modules/react-stately/dist/private/calendar/utils.js +66 -0
- package/dist/node_modules/react-stately/dist/private/collections/CollectionBuilder.js +160 -0
- package/dist/node_modules/react-stately/dist/private/collections/Item.js +37 -0
- package/dist/node_modules/react-stately/dist/private/collections/getChildNodes.js +33 -0
- package/dist/node_modules/react-stately/dist/private/collections/getItemCount.js +14 -0
- package/dist/node_modules/react-stately/dist/private/collections/useCollection.js +23 -0
- package/dist/node_modules/react-stately/dist/private/combobox/useComboBoxState.js +206 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/IncompleteDate.js +235 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/intlStrings.js +74 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/placeholders.js +399 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDateFieldState.js +263 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDatePickerState.js +76 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDateRangePickerState.js +171 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useTimeFieldState.js +57 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/utils.js +145 -0
- package/dist/node_modules/react-stately/dist/private/flags/flags.js +7 -0
- package/dist/node_modules/react-stately/dist/private/form/useFormValidationState.js +127 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ar-AE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/bg-BG.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/cs-CZ.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/da-DK.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/de-DE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/el-GR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/en-US.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/es-ES.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/et-EE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/fi-FI.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/fr-FR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/he-IL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/hr-HR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/hu-HU.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/it-IT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ja-JP.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ko-KR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/lt-LT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/lv-LV.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/nb-NO.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/nl-NL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pl-PL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pt-BR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pt-PT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ro-RO.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ru-RU.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sk-SK.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sl-SI.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sr-SP.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sv-SE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/tr-TR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/uk-UA.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/zh-CN.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/zh-TW.js +10 -0
- package/dist/node_modules/react-stately/dist/private/list/ListCollection.js +51 -0
- package/dist/node_modules/react-stately/dist/private/list/useListState.js +60 -0
- package/dist/node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.js +29 -0
- package/dist/node_modules/react-stately/dist/private/selection/Selection.js +8 -0
- package/dist/node_modules/react-stately/dist/private/selection/SelectionManager.js +274 -0
- package/dist/node_modules/react-stately/dist/private/selection/useMultipleSelectionState.js +57 -0
- package/dist/node_modules/react-stately/dist/private/slider/useSliderState.js +151 -0
- package/dist/node_modules/react-stately/dist/private/utils/number.js +26 -0
- package/dist/node_modules/react-stately/dist/private/utils/useControlledState.js +29 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +7 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +99 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +282 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/csharp.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/dart.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/docker.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/elixir.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/go.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/hcl.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/java.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/javascript.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/kotlin.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/php.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/powershell.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/ruby.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/scala.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/swift.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/toml.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.js +195 -0
- package/dist/node_modules/refractor/lang/bash.js +226 -0
- package/dist/node_modules/refractor/lang/clike.js +38 -0
- package/dist/node_modules/refractor/lang/csharp.js +385 -0
- package/dist/node_modules/refractor/lang/dart.js +76 -0
- package/dist/node_modules/refractor/lang/docker.js +101 -0
- package/dist/node_modules/refractor/lang/elixir.js +103 -0
- package/dist/node_modules/refractor/lang/go.js +32 -0
- package/dist/node_modules/refractor/lang/hcl.js +67 -0
- package/dist/node_modules/refractor/lang/java.js +135 -0
- package/dist/node_modules/refractor/lang/javascript.js +139 -0
- package/dist/node_modules/refractor/lang/json.js +31 -0
- package/dist/node_modules/refractor/lang/kotlin.js +83 -0
- package/dist/node_modules/refractor/lang/markup-templating.js +74 -0
- package/dist/node_modules/refractor/lang/markup.js +174 -0
- package/dist/node_modules/refractor/lang/php.js +328 -0
- package/dist/node_modules/refractor/lang/powershell.js +62 -0
- package/dist/node_modules/refractor/lang/python.js +68 -0
- package/dist/node_modules/refractor/lang/ruby.js +179 -0
- package/dist/node_modules/refractor/lang/scala.js +52 -0
- package/dist/node_modules/refractor/lang/swift.js +126 -0
- package/dist/node_modules/refractor/lang/toml.js +60 -0
- package/dist/node_modules/refractor/lang/typescript.js +53 -0
- package/dist/node_modules/refractor/lang/yaml.js +88 -0
- package/dist/node_modules/refractor/lib/core.js +107 -0
- package/dist/node_modules/refractor/lib/prism-core.js +430 -0
- package/dist/node_modules/scroll/index.js +36 -0
- package/dist/node_modules/scrollparent/scrollparent.js +28 -0
- package/dist/node_modules/space-separated-tokens/index.js +7 -0
- package/dist/node_modules/tabbable/dist/index.esm.js +200 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/utils/date.js +7 -0
- package/dist/utils/filters.js +60 -0
- package/dist/utils/index.js +26 -21
- package/dist/utils/normalizers.js +16 -0
- package/dist/utils/open-url.js +12 -0
- package/dist/utils/storage.js +16 -0
- package/dist/utils/url.js +13 -0
- package/package.json +5 -1
- package/dist/components-LCJjFofC.mjs +0 -18033
- package/dist/vendor-i-lggy4V.mjs +0 -48982
- /package/dist/assets/{index.css → styles/global.css} +0 -0
|
@@ -0,0 +1,2044 @@
|
|
|
1
|
+
import E, { useMemo as J, useCallback as Q, useRef as N, useState as nt, useEffect as F, isValidElement as dt, cloneElement as ht } from "react";
|
|
2
|
+
import { useMemoDeepCompare as $t, usePrevious as xt, useMount as Ut, useUpdateEffect as Mt, useWindowSize as jt } from "../../@gilbarbara/hooks/dist/index.js";
|
|
3
|
+
import { s as Ht } from "../../../_virtual/index.js";
|
|
4
|
+
import z from "../../is-lite/dist/index.js";
|
|
5
|
+
import ut from "../../../_virtual/index2.js";
|
|
6
|
+
import Yt from "../../../_virtual/index3.js";
|
|
7
|
+
import It from "../../@gilbarbara/deep-equal/dist/index.js";
|
|
8
|
+
import zt from "../../../_virtual/index4.js";
|
|
9
|
+
import Nt from "../../../_virtual/scrollparent.js";
|
|
10
|
+
import { createPortal as Wt } from "react-dom";
|
|
11
|
+
import { offset as yt, shift as Kt, arrow as Gt, useFloating as Et, autoPlacement as Vt, flip as Jt } from "../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
12
|
+
import { autoUpdate as Tt } from "../../@floating-ui/dom/dist/floating-ui.dom.js";
|
|
13
|
+
const qt = {
|
|
14
|
+
arrowBase: 32,
|
|
15
|
+
arrowColor: "#ffffff",
|
|
16
|
+
arrowSize: 16,
|
|
17
|
+
arrowSpacing: 12,
|
|
18
|
+
backgroundColor: "#ffffff",
|
|
19
|
+
beaconSize: 36,
|
|
20
|
+
beaconTrigger: "click",
|
|
21
|
+
beforeTimeout: 5e3,
|
|
22
|
+
blockTargetInteraction: !1,
|
|
23
|
+
buttons: [
|
|
24
|
+
"back",
|
|
25
|
+
"close",
|
|
26
|
+
"primary"
|
|
27
|
+
],
|
|
28
|
+
closeButtonAction: "close",
|
|
29
|
+
disableFocusTrap: !1,
|
|
30
|
+
dismissKeyAction: "close",
|
|
31
|
+
hideOverlay: !1,
|
|
32
|
+
loaderDelay: 300,
|
|
33
|
+
offset: 10,
|
|
34
|
+
overlayClickAction: "close",
|
|
35
|
+
overlayColor: "#00000080",
|
|
36
|
+
primaryColor: "#000000",
|
|
37
|
+
scrollDuration: 300,
|
|
38
|
+
scrollOffset: 20,
|
|
39
|
+
showProgress: !1,
|
|
40
|
+
skipBeacon: !1,
|
|
41
|
+
skipScroll: !1,
|
|
42
|
+
spotlightPadding: 10,
|
|
43
|
+
spotlightRadius: 4,
|
|
44
|
+
targetWaitTimeout: 1e3,
|
|
45
|
+
textColor: "#000000",
|
|
46
|
+
width: 380,
|
|
47
|
+
zIndex: 100
|
|
48
|
+
}, Xt = { beaconOptions: { offset: -18 } }, At = {
|
|
49
|
+
back: "Back",
|
|
50
|
+
close: "Close",
|
|
51
|
+
last: "Last",
|
|
52
|
+
next: "Next",
|
|
53
|
+
nextWithProgress: "Next ({current} of {total})",
|
|
54
|
+
open: "Open the dialog",
|
|
55
|
+
skip: "Skip"
|
|
56
|
+
}, Zt = {
|
|
57
|
+
isFixed: !1,
|
|
58
|
+
locale: At,
|
|
59
|
+
placement: "bottom"
|
|
60
|
+
}, Qt = {
|
|
61
|
+
continuous: !1,
|
|
62
|
+
debug: !1,
|
|
63
|
+
run: !1,
|
|
64
|
+
scrollToFirstStep: !1,
|
|
65
|
+
steps: []
|
|
66
|
+
}, R = {
|
|
67
|
+
INIT: "init",
|
|
68
|
+
START: "start",
|
|
69
|
+
STOP: "stop",
|
|
70
|
+
RESET: "reset",
|
|
71
|
+
PREV: "prev",
|
|
72
|
+
NEXT: "next",
|
|
73
|
+
GO: "go",
|
|
74
|
+
CLOSE: "close",
|
|
75
|
+
SKIP: "skip",
|
|
76
|
+
REPLAY: "replay",
|
|
77
|
+
UPDATE: "update",
|
|
78
|
+
COMPLETE: "complete"
|
|
79
|
+
}, H = {
|
|
80
|
+
TOUR_START: "tour:start",
|
|
81
|
+
STEP_BEFORE_HOOK: "step:before_hook",
|
|
82
|
+
STEP_BEFORE: "step:before",
|
|
83
|
+
SCROLL_START: "scroll:start",
|
|
84
|
+
SCROLL_END: "scroll:end",
|
|
85
|
+
BEACON: "beacon",
|
|
86
|
+
TOOLTIP: "tooltip",
|
|
87
|
+
STEP_AFTER: "step:after",
|
|
88
|
+
STEP_AFTER_HOOK: "step:after_hook",
|
|
89
|
+
TOUR_END: "tour:end",
|
|
90
|
+
TOUR_STATUS: "tour:status",
|
|
91
|
+
TARGET_NOT_FOUND: "error:target_not_found",
|
|
92
|
+
ERROR: "error"
|
|
93
|
+
}, d = {
|
|
94
|
+
INIT: "init",
|
|
95
|
+
READY: "ready",
|
|
96
|
+
BEACON_BEFORE: "beacon_before",
|
|
97
|
+
BEACON: "beacon",
|
|
98
|
+
TOOLTIP_BEFORE: "tooltip_before",
|
|
99
|
+
TOOLTIP: "tooltip",
|
|
100
|
+
COMPLETE: "complete"
|
|
101
|
+
}, K = {
|
|
102
|
+
BUTTON_BACK: "button_back",
|
|
103
|
+
BUTTON_CLOSE: "button_close",
|
|
104
|
+
BUTTON_PRIMARY: "button_primary",
|
|
105
|
+
BUTTON_SKIP: "button_skip",
|
|
106
|
+
KEYBOARD: "keyboard",
|
|
107
|
+
OVERLAY: "overlay"
|
|
108
|
+
}, w = {
|
|
109
|
+
IDLE: "idle",
|
|
110
|
+
READY: "ready",
|
|
111
|
+
WAITING: "waiting",
|
|
112
|
+
RUNNING: "running",
|
|
113
|
+
PAUSED: "paused",
|
|
114
|
+
SKIPPED: "skipped",
|
|
115
|
+
FINISHED: "finished"
|
|
116
|
+
}, te = "react-joyride-portal";
|
|
117
|
+
function ee(t) {
|
|
118
|
+
const e = {};
|
|
119
|
+
for (const n in t) t[n] !== void 0 && (e[n] = t[n]);
|
|
120
|
+
return e;
|
|
121
|
+
}
|
|
122
|
+
function et(...t) {
|
|
123
|
+
return Yt({
|
|
124
|
+
all: !0,
|
|
125
|
+
isMergeableObject: (e) => !(!z.plainObject(e) || dt(e))
|
|
126
|
+
})(...t);
|
|
127
|
+
}
|
|
128
|
+
function Lt(t) {
|
|
129
|
+
return Object.prototype.toString.call(t).slice(8, -1).toLowerCase();
|
|
130
|
+
}
|
|
131
|
+
function q(t, e = {}) {
|
|
132
|
+
const { defaultValue: n, step: o, steps: i } = e;
|
|
133
|
+
let r = ut(t);
|
|
134
|
+
if (r) (r.includes("{current}") || r.includes("{total}")) && o && i && (r = r.replace("{current}", o.toString()).replace("{total}", i.toString()));
|
|
135
|
+
else if (dt(t) && !Object.values(t.props).length && Lt(t.type) === "function") try {
|
|
136
|
+
r = q(t.type({}), e);
|
|
137
|
+
} catch {
|
|
138
|
+
r = ut(n);
|
|
139
|
+
}
|
|
140
|
+
else r = ut(n);
|
|
141
|
+
return r;
|
|
142
|
+
}
|
|
143
|
+
function Y(t, e, n, ...o) {
|
|
144
|
+
if (!t) return;
|
|
145
|
+
const i = /* @__PURE__ */ new Date(), r = `${String(i.getHours()).padStart(2, "0")}:${String(i.getMinutes()).padStart(2, "0")}:${String(i.getSeconds()).padStart(2, "0")}.${String(i.getMilliseconds()).padStart(3, "0")}`;
|
|
146
|
+
console.log(`${e} %c${n}%c ${r}`, "font-weight: bold", "color: gray; font-weight: normal", ...o);
|
|
147
|
+
}
|
|
148
|
+
function ne(t, e) {
|
|
149
|
+
const n = ee(e);
|
|
150
|
+
return {
|
|
151
|
+
...t,
|
|
152
|
+
...n
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function st() {
|
|
156
|
+
}
|
|
157
|
+
function oe(t) {
|
|
158
|
+
return Object.keys(t);
|
|
159
|
+
}
|
|
160
|
+
function at(t, ...e) {
|
|
161
|
+
if (!z.plainObject(t)) throw new TypeError("Expected an object");
|
|
162
|
+
const n = {};
|
|
163
|
+
for (const o in t)
|
|
164
|
+
({}).hasOwnProperty.call(t, o) && !e.includes(o) && (n[o] = t[o]);
|
|
165
|
+
return n;
|
|
166
|
+
}
|
|
167
|
+
function bt(t, ...e) {
|
|
168
|
+
if (!z.plainObject(t)) throw new TypeError("Expected an object");
|
|
169
|
+
if (!e.length) return t;
|
|
170
|
+
const n = {};
|
|
171
|
+
for (const o in t)
|
|
172
|
+
({}).hasOwnProperty.call(t, o) && e.includes(o) && (n[o] = t[o]);
|
|
173
|
+
return n;
|
|
174
|
+
}
|
|
175
|
+
function ft(t, e, n) {
|
|
176
|
+
const o = (r) => r.replace("{current}", String(e)).replace("{total}", String(n));
|
|
177
|
+
if (Lt(t) === "string") return o(t);
|
|
178
|
+
if (!dt(t)) return t;
|
|
179
|
+
const { children: i } = t.props;
|
|
180
|
+
if (z.string(i) && i.includes("{current}")) return ht(t, { children: o(i) });
|
|
181
|
+
if (Array.isArray(i)) return ht(t, { children: i.map((r) => typeof r == "string" ? o(r) : ft(r, e, n)) });
|
|
182
|
+
if (z.function(t.type) && !Object.values(t.props).length) try {
|
|
183
|
+
return ft(t.type({}), e, n);
|
|
184
|
+
} catch {
|
|
185
|
+
return t;
|
|
186
|
+
}
|
|
187
|
+
return t;
|
|
188
|
+
}
|
|
189
|
+
function St(t) {
|
|
190
|
+
return oe(t).sort().reduce((e, n) => (e[n] = t[n], e), {});
|
|
191
|
+
}
|
|
192
|
+
function pt() {
|
|
193
|
+
return !!(typeof window < "u" && window.document?.createElement);
|
|
194
|
+
}
|
|
195
|
+
function Ot(t) {
|
|
196
|
+
let e = 0, n = 0, o = t;
|
|
197
|
+
for (; o; )
|
|
198
|
+
e += o.offsetTop, n += o.offsetLeft, o = o.offsetParent;
|
|
199
|
+
return {
|
|
200
|
+
left: n,
|
|
201
|
+
top: e
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function gt(t) {
|
|
205
|
+
return t ? t.getBoundingClientRect() : null;
|
|
206
|
+
}
|
|
207
|
+
function re(t = !1) {
|
|
208
|
+
const { body: e, documentElement: n } = document;
|
|
209
|
+
if (!e || !n) return 0;
|
|
210
|
+
if (t) {
|
|
211
|
+
const o = [
|
|
212
|
+
e.scrollHeight,
|
|
213
|
+
e.offsetHeight,
|
|
214
|
+
n.clientHeight,
|
|
215
|
+
n.scrollHeight,
|
|
216
|
+
n.offsetHeight
|
|
217
|
+
].sort((r, c) => r - c), i = Math.floor(o.length / 2);
|
|
218
|
+
return o.length % 2 === 0 ? (o[i - 1] + o[i]) / 2 : o[i];
|
|
219
|
+
}
|
|
220
|
+
return Math.max(e.scrollHeight, e.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight);
|
|
221
|
+
}
|
|
222
|
+
function V(t) {
|
|
223
|
+
if (!t) return null;
|
|
224
|
+
if (typeof t == "function") try {
|
|
225
|
+
return t();
|
|
226
|
+
} catch (e) {
|
|
227
|
+
return process.env.NODE_ENV !== "production" && console.error(e), null;
|
|
228
|
+
}
|
|
229
|
+
if (typeof t == "object" && "current" in t) return t.current;
|
|
230
|
+
if (typeof t == "string") try {
|
|
231
|
+
return document.querySelector(t);
|
|
232
|
+
} catch (e) {
|
|
233
|
+
return process.env.NODE_ENV !== "production" && console.error(e), null;
|
|
234
|
+
}
|
|
235
|
+
return t;
|
|
236
|
+
}
|
|
237
|
+
function ie(t, e, n) {
|
|
238
|
+
const o = gt(t), i = ot(t), r = i ? !i.isSameNode(W()) : !1, c = n ?? rt(t);
|
|
239
|
+
let u = 0, s = o?.top ?? 0;
|
|
240
|
+
return r && c ? s = o?.top ?? 0 : i instanceof HTMLElement && (u = i.scrollTop, !r && !c && (s += u), i.isSameNode(W()) || (s += W().scrollTop)), Math.floor(s - e);
|
|
241
|
+
}
|
|
242
|
+
function ot(t, e) {
|
|
243
|
+
if (!t) return W();
|
|
244
|
+
const n = Nt(t);
|
|
245
|
+
if (n) {
|
|
246
|
+
if (n.isSameNode(W()))
|
|
247
|
+
return e ? document : W();
|
|
248
|
+
if (!(n.scrollHeight > n.offsetHeight)) return W();
|
|
249
|
+
}
|
|
250
|
+
return n;
|
|
251
|
+
}
|
|
252
|
+
function se(t) {
|
|
253
|
+
const e = t.getBoundingClientRect(), n = W(), o = e.top + e.height / 2, i = window.innerHeight / 2;
|
|
254
|
+
return Math.max(0, n.scrollTop + o - i);
|
|
255
|
+
}
|
|
256
|
+
function ce(t, e) {
|
|
257
|
+
if (!t) return 0;
|
|
258
|
+
const n = Nt(t) ?? W(), o = parseFloat(getComputedStyle(t).scrollMarginTop) || 0, i = gt(n), r = n.scrollTop ?? 0, { offsetTop: c = 0, scrollTop: u = 0 } = n;
|
|
259
|
+
let s = t.getBoundingClientRect().top + u;
|
|
260
|
+
if (c && (vt(t) || le(t))) {
|
|
261
|
+
const g = t.getBoundingClientRect(), f = g.top - (i?.top ?? 0), l = f + g.height, h = n.clientHeight, T = h * 0.2;
|
|
262
|
+
f >= T && l <= h - T ? s = r : s = f + r;
|
|
263
|
+
}
|
|
264
|
+
const p = Math.floor(s - e - o);
|
|
265
|
+
return p < 0 ? 0 : p;
|
|
266
|
+
}
|
|
267
|
+
function le(t) {
|
|
268
|
+
return t.offsetParent !== document.body;
|
|
269
|
+
}
|
|
270
|
+
function vt(t) {
|
|
271
|
+
if (!t) return !1;
|
|
272
|
+
const e = ot(t);
|
|
273
|
+
return e ? !e.isSameNode(W()) : !1;
|
|
274
|
+
}
|
|
275
|
+
function rt(t, e = "fixed") {
|
|
276
|
+
if (!t || !(t instanceof Element)) return !1;
|
|
277
|
+
const { nodeName: n } = t;
|
|
278
|
+
return n === "BODY" || n === "HTML" ? !1 : getComputedStyle(t).position === e ? !0 : t.parentNode ? rt(t.parentNode, e) : !1;
|
|
279
|
+
}
|
|
280
|
+
function ct(t) {
|
|
281
|
+
if (!t) return !1;
|
|
282
|
+
let e = t;
|
|
283
|
+
for (; e && e !== document.body; ) {
|
|
284
|
+
if (e instanceof HTMLElement) {
|
|
285
|
+
const { display: n, visibility: o } = getComputedStyle(e);
|
|
286
|
+
if (n === "none" || o === "hidden") return !1;
|
|
287
|
+
}
|
|
288
|
+
e = e.parentElement ?? null;
|
|
289
|
+
}
|
|
290
|
+
return !0;
|
|
291
|
+
}
|
|
292
|
+
function Rt(t) {
|
|
293
|
+
const { isFirstStep: e, scrollToFirstStep: n, step: o, target: i, targetLifecycle: r } = t;
|
|
294
|
+
if (o.skipScroll || e && !n && r !== d.TOOLTIP || o.placement === "center") return !1;
|
|
295
|
+
const c = i?.isConnected ? ot(i) : W(), u = c ? !c.isSameNode(W()) : !1;
|
|
296
|
+
return (o.isFixed || rt(i)) && !u ? !1 : c.scrollHeight > c.clientHeight;
|
|
297
|
+
}
|
|
298
|
+
function W() {
|
|
299
|
+
return document.scrollingElement ?? document.documentElement;
|
|
300
|
+
}
|
|
301
|
+
function Ct(t, e) {
|
|
302
|
+
const { duration: n, element: o } = e;
|
|
303
|
+
let i = () => {
|
|
304
|
+
};
|
|
305
|
+
const r = new Promise((c) => {
|
|
306
|
+
const { scrollTop: u } = o, s = t > u ? t - u : u - t;
|
|
307
|
+
i = zt.top(o, t, { duration: s < 100 ? 50 : n }, () => {
|
|
308
|
+
c();
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
return {
|
|
312
|
+
cancel: i,
|
|
313
|
+
promise: r
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
function ae(t) {
|
|
317
|
+
const e = t.replace(/^#?([\da-f])([\da-f])([\da-f])$/i, (o, i, r, c) => i + i + r + r + c + c), n = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(e);
|
|
318
|
+
return n ? [
|
|
319
|
+
parseInt(n[1], 16),
|
|
320
|
+
parseInt(n[2], 16),
|
|
321
|
+
parseInt(n[3], 16)
|
|
322
|
+
] : [];
|
|
323
|
+
}
|
|
324
|
+
const kt = {
|
|
325
|
+
backgroundColor: "transparent",
|
|
326
|
+
border: 0,
|
|
327
|
+
borderRadius: 0,
|
|
328
|
+
color: "#555555",
|
|
329
|
+
cursor: "pointer",
|
|
330
|
+
fontSize: 16,
|
|
331
|
+
lineHeight: 1,
|
|
332
|
+
padding: 0,
|
|
333
|
+
WebkitAppearance: "none"
|
|
334
|
+
}, lt = {
|
|
335
|
+
...kt,
|
|
336
|
+
borderRadius: 4,
|
|
337
|
+
padding: 8
|
|
338
|
+
};
|
|
339
|
+
function ue(t, e) {
|
|
340
|
+
const { styles: n } = t, o = et(n ?? {}, e.styles ?? {});
|
|
341
|
+
let { width: i } = e;
|
|
342
|
+
pt() && (i = typeof i == "number" && window.innerWidth < i ? window.innerWidth - 30 : i);
|
|
343
|
+
const r = {
|
|
344
|
+
bottom: 0,
|
|
345
|
+
left: 0,
|
|
346
|
+
overflow: "hidden",
|
|
347
|
+
position: "absolute",
|
|
348
|
+
right: 0,
|
|
349
|
+
top: 0,
|
|
350
|
+
zIndex: e.zIndex
|
|
351
|
+
};
|
|
352
|
+
return et({
|
|
353
|
+
arrow: {
|
|
354
|
+
alignItems: "center",
|
|
355
|
+
color: e.arrowColor,
|
|
356
|
+
display: "inline-flex",
|
|
357
|
+
justifyContent: "center",
|
|
358
|
+
position: "absolute"
|
|
359
|
+
},
|
|
360
|
+
beaconWrapper: {
|
|
361
|
+
...kt,
|
|
362
|
+
display: "inline-flex",
|
|
363
|
+
borderRadius: "50%",
|
|
364
|
+
position: "relative"
|
|
365
|
+
},
|
|
366
|
+
beacon: {
|
|
367
|
+
height: e.beaconSize,
|
|
368
|
+
width: e.beaconSize
|
|
369
|
+
},
|
|
370
|
+
beaconInner: {
|
|
371
|
+
animation: "joyride-beacon-inner 1.2s infinite ease-in-out",
|
|
372
|
+
backgroundColor: e.primaryColor,
|
|
373
|
+
borderRadius: "50%",
|
|
374
|
+
display: "block",
|
|
375
|
+
height: "50%",
|
|
376
|
+
left: "50%",
|
|
377
|
+
opacity: 0.7,
|
|
378
|
+
position: "absolute",
|
|
379
|
+
top: "50%",
|
|
380
|
+
transform: "translate(-50%, -50%)",
|
|
381
|
+
width: "50%"
|
|
382
|
+
},
|
|
383
|
+
beaconOuter: {
|
|
384
|
+
animation: "joyride-beacon-outer 1.2s infinite ease-in-out",
|
|
385
|
+
backgroundColor: `rgba(${ae(e.primaryColor).join(",")}, 0.2)`,
|
|
386
|
+
border: `2px solid ${e.primaryColor}`,
|
|
387
|
+
borderRadius: "50%",
|
|
388
|
+
boxSizing: "border-box",
|
|
389
|
+
display: "block",
|
|
390
|
+
height: "100%",
|
|
391
|
+
left: 0,
|
|
392
|
+
opacity: 0.9,
|
|
393
|
+
position: "absolute",
|
|
394
|
+
top: 0,
|
|
395
|
+
transformOrigin: "center",
|
|
396
|
+
width: "100%"
|
|
397
|
+
},
|
|
398
|
+
buttonBack: {
|
|
399
|
+
...lt,
|
|
400
|
+
color: e.primaryColor,
|
|
401
|
+
marginLeft: "auto",
|
|
402
|
+
marginRight: 5
|
|
403
|
+
},
|
|
404
|
+
buttonClose: {
|
|
405
|
+
...lt,
|
|
406
|
+
color: e.textColor,
|
|
407
|
+
height: 12,
|
|
408
|
+
padding: 8,
|
|
409
|
+
position: "absolute",
|
|
410
|
+
right: 0,
|
|
411
|
+
top: 0,
|
|
412
|
+
width: 12
|
|
413
|
+
},
|
|
414
|
+
buttonPrimary: {
|
|
415
|
+
...lt,
|
|
416
|
+
backgroundColor: e.primaryColor,
|
|
417
|
+
color: e.backgroundColor
|
|
418
|
+
},
|
|
419
|
+
buttonSkip: {
|
|
420
|
+
...lt,
|
|
421
|
+
color: e.textColor,
|
|
422
|
+
fontSize: 14
|
|
423
|
+
},
|
|
424
|
+
floater: {
|
|
425
|
+
display: "inline-block",
|
|
426
|
+
filter: "drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",
|
|
427
|
+
maxWidth: "100%",
|
|
428
|
+
transition: "opacity 0.3s"
|
|
429
|
+
},
|
|
430
|
+
loader: {
|
|
431
|
+
alignItems: "center",
|
|
432
|
+
display: "flex",
|
|
433
|
+
height: 48,
|
|
434
|
+
inset: 0,
|
|
435
|
+
justifyContent: "center",
|
|
436
|
+
pointerEvents: "none",
|
|
437
|
+
position: "fixed",
|
|
438
|
+
width: 48,
|
|
439
|
+
zIndex: e.zIndex + 1
|
|
440
|
+
},
|
|
441
|
+
overlay: {
|
|
442
|
+
...r,
|
|
443
|
+
backgroundColor: e.overlayColor
|
|
444
|
+
},
|
|
445
|
+
spotlight: {},
|
|
446
|
+
tooltip: {
|
|
447
|
+
backgroundColor: e.backgroundColor,
|
|
448
|
+
borderRadius: 5,
|
|
449
|
+
boxSizing: "border-box",
|
|
450
|
+
color: e.textColor,
|
|
451
|
+
fontSize: 16,
|
|
452
|
+
maxWidth: "100%",
|
|
453
|
+
padding: 12,
|
|
454
|
+
position: "relative",
|
|
455
|
+
width: i
|
|
456
|
+
},
|
|
457
|
+
tooltipContainer: {
|
|
458
|
+
lineHeight: 1.4,
|
|
459
|
+
textAlign: "center"
|
|
460
|
+
},
|
|
461
|
+
tooltipTitle: {
|
|
462
|
+
fontSize: 18,
|
|
463
|
+
margin: 0
|
|
464
|
+
},
|
|
465
|
+
tooltipContent: {
|
|
466
|
+
paddingBottom: 12,
|
|
467
|
+
paddingTop: 12
|
|
468
|
+
},
|
|
469
|
+
tooltipFooter: {
|
|
470
|
+
alignItems: "center",
|
|
471
|
+
display: "flex",
|
|
472
|
+
justifyContent: "flex-end"
|
|
473
|
+
},
|
|
474
|
+
tooltipFooterSpacer: { flex: 1 }
|
|
475
|
+
}, o);
|
|
476
|
+
}
|
|
477
|
+
const fe = [
|
|
478
|
+
"after",
|
|
479
|
+
"arrowBase",
|
|
480
|
+
"arrowColor",
|
|
481
|
+
"arrowSize",
|
|
482
|
+
"arrowSpacing",
|
|
483
|
+
"backgroundColor",
|
|
484
|
+
"beaconSize",
|
|
485
|
+
"beaconTrigger",
|
|
486
|
+
"before",
|
|
487
|
+
"beforeTimeout",
|
|
488
|
+
"buttons",
|
|
489
|
+
"closeButtonAction",
|
|
490
|
+
"skipBeacon",
|
|
491
|
+
"dismissKeyAction",
|
|
492
|
+
"disableFocusTrap",
|
|
493
|
+
"hideOverlay",
|
|
494
|
+
"skipScroll",
|
|
495
|
+
"blockTargetInteraction",
|
|
496
|
+
"loaderDelay",
|
|
497
|
+
"offset",
|
|
498
|
+
"overlayClickAction",
|
|
499
|
+
"overlayColor",
|
|
500
|
+
"primaryColor",
|
|
501
|
+
"scrollDuration",
|
|
502
|
+
"scrollOffset",
|
|
503
|
+
"showProgress",
|
|
504
|
+
"spotlightPadding",
|
|
505
|
+
"spotlightRadius",
|
|
506
|
+
"targetWaitTimeout",
|
|
507
|
+
"textColor",
|
|
508
|
+
"width",
|
|
509
|
+
"zIndex"
|
|
510
|
+
];
|
|
511
|
+
function mt(t, e) {
|
|
512
|
+
if (!e) return null;
|
|
513
|
+
const n = et(Zt, bt(t, "arrowComponent", "beaconComponent", "floatingOptions", "loaderComponent", "locale", "styles", "tooltipComponent"), e), o = et(qt, t.options ?? {}, bt(e, ...fe)), i = ue(t, {
|
|
514
|
+
...n,
|
|
515
|
+
...o
|
|
516
|
+
}), r = et(Xt, t.floatingOptions ?? {}, n.floatingOptions ?? {});
|
|
517
|
+
return {
|
|
518
|
+
...n,
|
|
519
|
+
...o,
|
|
520
|
+
locale: et(At, t.locale ?? {}, n.locale || {}),
|
|
521
|
+
floatingOptions: r,
|
|
522
|
+
spotlightPadding: de(o.spotlightPadding),
|
|
523
|
+
styles: i
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
function de(t) {
|
|
527
|
+
return typeof t == "number" ? {
|
|
528
|
+
top: t,
|
|
529
|
+
right: t,
|
|
530
|
+
bottom: t,
|
|
531
|
+
left: t
|
|
532
|
+
} : {
|
|
533
|
+
top: t?.top ?? 0,
|
|
534
|
+
right: t?.right ?? 0,
|
|
535
|
+
bottom: t?.bottom ?? 0,
|
|
536
|
+
left: t?.left ?? 0
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function pe(t, e, n) {
|
|
540
|
+
const { action: o } = e, i = n && [R.PREV, R.NEXT].includes(o);
|
|
541
|
+
return t.skipBeacon || t.placement === "center" || i;
|
|
542
|
+
}
|
|
543
|
+
function Bt(t, e = !1) {
|
|
544
|
+
return z.plainObject(t) ? t.target ? !0 : (Y(e, "tour", "target is missing from the step"), !1) : (Y(e, "tour", "step must be an object"), !1);
|
|
545
|
+
}
|
|
546
|
+
function _t(t, e = !1) {
|
|
547
|
+
return z.array(t) ? t.every((n) => Bt(n, e)) : (Y(e, "tour", "steps must be an array"), !1);
|
|
548
|
+
}
|
|
549
|
+
var ge = class {
|
|
550
|
+
beaconPosition = null;
|
|
551
|
+
debug;
|
|
552
|
+
eventListeners = /* @__PURE__ */ new Map();
|
|
553
|
+
listeners = /* @__PURE__ */ new Set();
|
|
554
|
+
props;
|
|
555
|
+
snapshot;
|
|
556
|
+
state;
|
|
557
|
+
steps;
|
|
558
|
+
tooltipPosition = null;
|
|
559
|
+
constructor(t) {
|
|
560
|
+
const { initialStepIndex: e, stepIndex: n, steps: o = [] } = t ?? {}, i = z.number(n);
|
|
561
|
+
let r = 0;
|
|
562
|
+
this.debug = t?.debug ?? !1, i ? (r = n, z.number(e) && Y(this.debug, "tour", "initialStepIndex is ignored in controlled mode")) : z.number(e) && (e >= 0 && e < o.length ? r = e : o.length > 0 && Y(this.debug, "tour", "initialStepIndex is out of bounds")), this.props = t ?? { steps: [] }, this.steps = o, this.state = {
|
|
563
|
+
action: R.INIT,
|
|
564
|
+
controlled: i,
|
|
565
|
+
index: r,
|
|
566
|
+
lifecycle: d.INIT,
|
|
567
|
+
origin: null,
|
|
568
|
+
positioned: !1,
|
|
569
|
+
scrolling: !1,
|
|
570
|
+
size: o.length,
|
|
571
|
+
status: o.length ? w.READY : w.IDLE,
|
|
572
|
+
waiting: !1
|
|
573
|
+
}, this.snapshot = Object.freeze({ ...this.state });
|
|
574
|
+
}
|
|
575
|
+
applyTransitions(t) {
|
|
576
|
+
return t.status === w.WAITING && t.size > 0 ? {
|
|
577
|
+
...t,
|
|
578
|
+
status: w.RUNNING
|
|
579
|
+
} : t;
|
|
580
|
+
}
|
|
581
|
+
getStep(t) {
|
|
582
|
+
return mt(this.props, this.steps[t ?? this.state.index]);
|
|
583
|
+
}
|
|
584
|
+
cleanupPositionData = () => {
|
|
585
|
+
this.beaconPosition = null, this.tooltipPosition = null;
|
|
586
|
+
};
|
|
587
|
+
getPositionData = (t) => t === "beacon" ? this.beaconPosition : this.tooltipPosition;
|
|
588
|
+
getServerSnapshot = () => this.snapshot;
|
|
589
|
+
getSnapshot = () => this.snapshot;
|
|
590
|
+
getEventState = () => at(this.snapshot, "positioned");
|
|
591
|
+
getState = () => at(this.snapshot, "positioned");
|
|
592
|
+
setPositionData = (t, e) => {
|
|
593
|
+
(t === "beacon" ? this.beaconPosition : this.tooltipPosition)?.placement !== e.placement && Y(this.debug, `step:${this.state.index}`, "positioned", `${t} ${e.placement}`), t === "beacon" ? this.beaconPosition = e : this.tooltipPosition = e, (this.state.lifecycle === d.BEACON_BEFORE || this.state.lifecycle === d.TOOLTIP_BEFORE) && !this.state.positioned && this.updateState({ positioned: !0 });
|
|
594
|
+
const n = this.getStep()?.floatingOptions?.onPosition;
|
|
595
|
+
n && n(e);
|
|
596
|
+
};
|
|
597
|
+
setSteps = (t) => {
|
|
598
|
+
this.steps = t, this.updateState({ size: t.length });
|
|
599
|
+
};
|
|
600
|
+
dispatch = (t, e) => {
|
|
601
|
+
const n = this.eventListeners.get(t.type);
|
|
602
|
+
if (n) for (const o of n) try {
|
|
603
|
+
o(t, e);
|
|
604
|
+
} catch {
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
on = (t, e) => {
|
|
608
|
+
let n = this.eventListeners.get(t);
|
|
609
|
+
return n || (n = /* @__PURE__ */ new Set(), this.eventListeners.set(t, n)), n.add(e), () => {
|
|
610
|
+
n.delete(e);
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
subscribe = (t) => (this.listeners.add(t), () => {
|
|
614
|
+
this.listeners.delete(t);
|
|
615
|
+
});
|
|
616
|
+
updateState = (t, e = !1) => {
|
|
617
|
+
const { controlled: n, index: o } = this.state, i = this.snapshot, r = n && !e && t.index !== void 0 ? o : t.index ?? o, c = {
|
|
618
|
+
action: t.action ?? this.state.action,
|
|
619
|
+
controlled: n,
|
|
620
|
+
index: r,
|
|
621
|
+
lifecycle: t.lifecycle ?? this.state.lifecycle,
|
|
622
|
+
origin: t.origin ?? null,
|
|
623
|
+
positioned: t.positioned ?? this.state.positioned,
|
|
624
|
+
scrolling: t.scrolling ?? this.state.scrolling,
|
|
625
|
+
size: t.size ?? this.state.size,
|
|
626
|
+
status: t.status ?? this.state.status,
|
|
627
|
+
waiting: t.waiting ?? this.state.waiting
|
|
628
|
+
}, u = this.applyTransitions(c);
|
|
629
|
+
if (this.state = u, !It(i, u)) {
|
|
630
|
+
this.snapshot = Object.freeze({ ...u });
|
|
631
|
+
for (const s of this.listeners) s(this.snapshot);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
function me(t) {
|
|
636
|
+
return new ge(t);
|
|
637
|
+
}
|
|
638
|
+
function wt(t, e) {
|
|
639
|
+
return Math.min(Math.max(t, 0), e);
|
|
640
|
+
}
|
|
641
|
+
function he(t, e, n) {
|
|
642
|
+
const o = N(e), i = N(n);
|
|
643
|
+
return o.current = e, i.current = n, J(() => {
|
|
644
|
+
const r = () => t.current.getSnapshot();
|
|
645
|
+
return {
|
|
646
|
+
close: (a = null) => {
|
|
647
|
+
const { index: m, status: y } = r();
|
|
648
|
+
y === w.RUNNING && t.current.updateState({
|
|
649
|
+
action: R.CLOSE,
|
|
650
|
+
index: m + 1,
|
|
651
|
+
origin: a,
|
|
652
|
+
lifecycle: d.COMPLETE,
|
|
653
|
+
positioned: !1,
|
|
654
|
+
scrolling: !1,
|
|
655
|
+
waiting: !1
|
|
656
|
+
});
|
|
657
|
+
},
|
|
658
|
+
go: (a) => {
|
|
659
|
+
const { controlled: m, size: y, status: x } = r();
|
|
660
|
+
if (m) {
|
|
661
|
+
Y(o.current, "tour", "go() is not supported in controlled mode");
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
664
|
+
x === w.RUNNING && t.current.updateState({
|
|
665
|
+
action: R.GO,
|
|
666
|
+
index: a,
|
|
667
|
+
lifecycle: d.COMPLETE,
|
|
668
|
+
positioned: !1,
|
|
669
|
+
scrolling: !1,
|
|
670
|
+
status: a < y ? x : w.FINISHED,
|
|
671
|
+
waiting: !1
|
|
672
|
+
});
|
|
673
|
+
},
|
|
674
|
+
info: () => at(t.current.getSnapshot(), "positioned"),
|
|
675
|
+
next: (a) => {
|
|
676
|
+
const { index: m, size: y, status: x } = r();
|
|
677
|
+
x === w.RUNNING && t.current.updateState({
|
|
678
|
+
action: R.NEXT,
|
|
679
|
+
index: wt(m + 1, y),
|
|
680
|
+
lifecycle: d.COMPLETE,
|
|
681
|
+
origin: a,
|
|
682
|
+
positioned: !1,
|
|
683
|
+
scrolling: !1,
|
|
684
|
+
waiting: !1
|
|
685
|
+
});
|
|
686
|
+
},
|
|
687
|
+
open: () => {
|
|
688
|
+
const { status: a } = r();
|
|
689
|
+
a === w.RUNNING && t.current.updateState({
|
|
690
|
+
action: R.UPDATE,
|
|
691
|
+
lifecycle: d.TOOLTIP_BEFORE,
|
|
692
|
+
positioned: !1,
|
|
693
|
+
scrolling: !1,
|
|
694
|
+
waiting: !1
|
|
695
|
+
});
|
|
696
|
+
},
|
|
697
|
+
prev: (a) => {
|
|
698
|
+
const { index: m, size: y, status: x } = r();
|
|
699
|
+
x === w.RUNNING && t.current.updateState({
|
|
700
|
+
action: R.PREV,
|
|
701
|
+
index: wt(m - 1, y),
|
|
702
|
+
lifecycle: d.COMPLETE,
|
|
703
|
+
origin: a,
|
|
704
|
+
positioned: !1,
|
|
705
|
+
scrolling: !1,
|
|
706
|
+
waiting: !1
|
|
707
|
+
});
|
|
708
|
+
},
|
|
709
|
+
replay: (a) => {
|
|
710
|
+
const { lifecycle: m, status: y } = r();
|
|
711
|
+
y !== w.RUNNING || m !== d.TOOLTIP || t.current.updateState({
|
|
712
|
+
action: R.REPLAY,
|
|
713
|
+
lifecycle: d.COMPLETE,
|
|
714
|
+
origin: a,
|
|
715
|
+
positioned: !1,
|
|
716
|
+
scrolling: !1,
|
|
717
|
+
waiting: !1
|
|
718
|
+
});
|
|
719
|
+
},
|
|
720
|
+
reset: (a = !1) => {
|
|
721
|
+
const { controlled: m } = r();
|
|
722
|
+
if (m) {
|
|
723
|
+
Y(o.current, "tour", "reset() is not supported in controlled mode");
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
i.current(), t.current.updateState({
|
|
727
|
+
action: R.RESET,
|
|
728
|
+
index: 0,
|
|
729
|
+
lifecycle: d.INIT,
|
|
730
|
+
positioned: !1,
|
|
731
|
+
scrolling: !1,
|
|
732
|
+
status: a ? w.RUNNING : w.READY,
|
|
733
|
+
waiting: !1
|
|
734
|
+
});
|
|
735
|
+
},
|
|
736
|
+
skip: (a) => {
|
|
737
|
+
const { status: m } = r();
|
|
738
|
+
m === w.RUNNING && t.current.updateState({
|
|
739
|
+
action: R.SKIP,
|
|
740
|
+
lifecycle: d.COMPLETE,
|
|
741
|
+
origin: a,
|
|
742
|
+
positioned: !1,
|
|
743
|
+
scrolling: !1,
|
|
744
|
+
status: w.SKIPPED,
|
|
745
|
+
waiting: !1
|
|
746
|
+
});
|
|
747
|
+
},
|
|
748
|
+
start: (a) => {
|
|
749
|
+
const { index: m, size: y } = r();
|
|
750
|
+
i.current(), t.current.updateState({
|
|
751
|
+
action: R.START,
|
|
752
|
+
index: z.number(a) ? a : m,
|
|
753
|
+
lifecycle: d.INIT,
|
|
754
|
+
positioned: !1,
|
|
755
|
+
scrolling: !1,
|
|
756
|
+
status: y ? w.RUNNING : w.WAITING,
|
|
757
|
+
waiting: !1
|
|
758
|
+
}, !0);
|
|
759
|
+
},
|
|
760
|
+
stop: (a = !1) => {
|
|
761
|
+
const { index: m, status: y } = r();
|
|
762
|
+
[w.FINISHED, w.SKIPPED].includes(y) || t.current.updateState({
|
|
763
|
+
action: R.STOP,
|
|
764
|
+
index: m + (a ? 1 : 0),
|
|
765
|
+
lifecycle: d.COMPLETE,
|
|
766
|
+
positioned: !1,
|
|
767
|
+
scrolling: !1,
|
|
768
|
+
status: w.PAUSED,
|
|
769
|
+
waiting: !1
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
}, [t]);
|
|
774
|
+
}
|
|
775
|
+
const ye = /* @__PURE__ */ new Set(["origin", "positioned"]);
|
|
776
|
+
function Ee(t, e) {
|
|
777
|
+
const n = N(null);
|
|
778
|
+
F(() => {
|
|
779
|
+
if (!e) return;
|
|
780
|
+
const o = t.current.getSnapshot();
|
|
781
|
+
return Y(!0, "tour", "init", o), n.current = o, t.current.subscribe((i) => {
|
|
782
|
+
const r = n.current;
|
|
783
|
+
if (n.current = i, !r) return;
|
|
784
|
+
const c = {};
|
|
785
|
+
let u = !1;
|
|
786
|
+
for (const s of Object.keys(i)) i[s] !== r[s] && !ye.has(s) && (c[s] = {
|
|
787
|
+
from: r[s],
|
|
788
|
+
to: i[s]
|
|
789
|
+
}, (s === "status" || s === "size") && (u = !0));
|
|
790
|
+
Object.keys(c).length && (!u && i.index >= i.size || Y(!0, u ? "tour" : `step:${i.index}`, "state", c));
|
|
791
|
+
});
|
|
792
|
+
}, [e, t]);
|
|
793
|
+
}
|
|
794
|
+
function Te(t, e, n) {
|
|
795
|
+
const o = N(t), i = N(e);
|
|
796
|
+
return o.current = t, i.current = e, Q((r, c, u) => {
|
|
797
|
+
const s = {
|
|
798
|
+
...n.current.getEventState(),
|
|
799
|
+
error: null,
|
|
800
|
+
scroll: null,
|
|
801
|
+
step: c,
|
|
802
|
+
type: r,
|
|
803
|
+
...u
|
|
804
|
+
};
|
|
805
|
+
o.current?.(s, i.current), n.current.dispatch(s, i.current);
|
|
806
|
+
}, [n]);
|
|
807
|
+
}
|
|
808
|
+
function Z(t, e) {
|
|
809
|
+
return {
|
|
810
|
+
hasChanged(n) {
|
|
811
|
+
return t[n] !== e[n];
|
|
812
|
+
},
|
|
813
|
+
hasChangedTo(n, o) {
|
|
814
|
+
const i = t[n], r = e[n];
|
|
815
|
+
return Array.isArray(o) ? o.includes(i) && !o.includes(r) : i === o && r !== o;
|
|
816
|
+
},
|
|
817
|
+
previous: e
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
function be(t) {
|
|
821
|
+
const { addFailure: e, controls: n, emitEvent: o, previousState: i, props: r, state: c, step: u, store: s } = t, { action: p, index: g, lifecycle: f, positioned: l, scrolling: h, size: T, status: P } = c, v = xt(u) ?? null, a = N(null), m = N(r), y = N(c), x = N(i), _ = N(u), $ = N(v), U = N(n), D = N(null), G = N(null), M = N(null);
|
|
822
|
+
m.current = r, y.current = c, x.current = i, _.current = u, $.current = v, U.current = n;
|
|
823
|
+
const O = () => {
|
|
824
|
+
D.current && (clearInterval(D.current), D.current = null), G.current = null, M.current && (M.current.cancel(), M.current = null);
|
|
825
|
+
};
|
|
826
|
+
F(() => {
|
|
827
|
+
if (!x.current) return;
|
|
828
|
+
const { hasChangedTo: S } = Z(y.current, x.current), b = S("action", [
|
|
829
|
+
R.NEXT,
|
|
830
|
+
R.PREV,
|
|
831
|
+
R.SKIP,
|
|
832
|
+
R.CLOSE,
|
|
833
|
+
R.REPLAY
|
|
834
|
+
]), C = p === R.START && (a.current === R.CLOSE || a.current === R.REPLAY);
|
|
835
|
+
(b || C) && (a.current = p);
|
|
836
|
+
}, [p]), F(() => {
|
|
837
|
+
if (!x.current) return () => {
|
|
838
|
+
O();
|
|
839
|
+
};
|
|
840
|
+
const { hasChanged: S } = Z(y.current, x.current), b = _.current;
|
|
841
|
+
if (S("index") && O(), P !== w.RUNNING || !b || f !== d.INIT) return () => {
|
|
842
|
+
O();
|
|
843
|
+
};
|
|
844
|
+
const { hasChangedTo: C } = Z(y.current, x.current);
|
|
845
|
+
C("status", w.RUNNING) && [
|
|
846
|
+
w.IDLE,
|
|
847
|
+
w.READY,
|
|
848
|
+
w.PAUSED
|
|
849
|
+
].includes(x.current.status) && o(H.TOUR_START, b), s.current.cleanupPositionData();
|
|
850
|
+
const { debug: A } = m.current;
|
|
851
|
+
if (b.before && !M.current) {
|
|
852
|
+
Y(A, `step:${g}`, "before()", b), M.current = { cancel: () => {
|
|
853
|
+
} }, s.current.updateState({ waiting: !0 }), o(H.STEP_BEFORE_HOOK, b, { action: a.current ?? y.current.action });
|
|
854
|
+
const B = () => {
|
|
855
|
+
M.current = null, s.current.updateState({
|
|
856
|
+
action: a.current ?? y.current.action,
|
|
857
|
+
waiting: !1,
|
|
858
|
+
lifecycle: d.READY
|
|
859
|
+
});
|
|
860
|
+
}, I = new AbortController(), k = b.beforeTimeout;
|
|
861
|
+
M.current = { cancel: () => I.abort() };
|
|
862
|
+
const L = k ? setTimeout(() => {
|
|
863
|
+
I.signal.aborted || (Y(A, `step:${g}`, "before()", "timed out", `${k}ms`), I.abort(), e(b, "before_hook"), o(H.ERROR, b, { error: /* @__PURE__ */ new Error("Step before hook timed out") }), B());
|
|
864
|
+
}, k) : null;
|
|
865
|
+
b.before({
|
|
866
|
+
...s.current.getState(),
|
|
867
|
+
action: a.current ?? s.current.getState().action,
|
|
868
|
+
step: b
|
|
869
|
+
}).then(() => {
|
|
870
|
+
I.signal.aborted || (L && clearTimeout(L), B());
|
|
871
|
+
}).catch((j) => {
|
|
872
|
+
I.signal.aborted || (L && clearTimeout(L), e(b, "before_hook"), o(H.ERROR, b, { error: j instanceof Error ? j : new Error(String(j)) }), B());
|
|
873
|
+
});
|
|
874
|
+
} else if (!M.current) {
|
|
875
|
+
D.current && G.current !== b.target && O();
|
|
876
|
+
const B = V(b.target);
|
|
877
|
+
if (B && ct(B))
|
|
878
|
+
O(), s.current.updateState({
|
|
879
|
+
action: a.current ?? R.UPDATE,
|
|
880
|
+
lifecycle: d.READY,
|
|
881
|
+
waiting: !1
|
|
882
|
+
});
|
|
883
|
+
else if (b.targetWaitTimeout === 0) s.current.updateState({
|
|
884
|
+
action: a.current ?? R.UPDATE,
|
|
885
|
+
lifecycle: d.READY,
|
|
886
|
+
waiting: !1
|
|
887
|
+
});
|
|
888
|
+
else if (!D.current) {
|
|
889
|
+
const { targetWaitTimeout: I } = b, k = Date.now();
|
|
890
|
+
G.current = b.target, Y(A, `step:${g}`, "polling", "started", `${I}ms`), s.current.updateState({ waiting: !0 }), D.current = setInterval(() => {
|
|
891
|
+
const L = V(b.target), j = Date.now() - k, tt = j >= I;
|
|
892
|
+
(L && ct(L) || tt) && (Y(A, `step:${g}`, "polling", L && ct(L) ? "found" : "timed out", `${j}ms`), O(), s.current.updateState({
|
|
893
|
+
action: a.current ?? R.UPDATE,
|
|
894
|
+
lifecycle: d.READY,
|
|
895
|
+
waiting: !1
|
|
896
|
+
}));
|
|
897
|
+
}, 100);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return () => {
|
|
901
|
+
O();
|
|
902
|
+
};
|
|
903
|
+
}, [
|
|
904
|
+
e,
|
|
905
|
+
o,
|
|
906
|
+
g,
|
|
907
|
+
f,
|
|
908
|
+
P,
|
|
909
|
+
s
|
|
910
|
+
]), F(() => {
|
|
911
|
+
if (!x.current) return;
|
|
912
|
+
const { hasChanged: S, hasChangedTo: b, previous: C } = Z(y.current, x.current), A = _.current;
|
|
913
|
+
if (!A) return;
|
|
914
|
+
const B = V(A.target), I = !!B;
|
|
915
|
+
if (I && ct(B)) {
|
|
916
|
+
if (b("lifecycle", d.READY) && C.lifecycle === d.INIT && o(H.STEP_BEFORE, A, { action: a.current ?? y.current.action }), b("lifecycle", d.READY)) {
|
|
917
|
+
const k = y.current, L = pe(A, k, m.current.continuous) ? d.TOOLTIP : d.BEACON, j = V(A.scrollTarget ?? A.spotlightTarget ?? A.target), tt = Rt({
|
|
918
|
+
isFirstStep: k.index === 0,
|
|
919
|
+
scrollToFirstStep: m.current.scrollToFirstStep,
|
|
920
|
+
step: A,
|
|
921
|
+
target: j,
|
|
922
|
+
targetLifecycle: L
|
|
923
|
+
}), Ft = L === d.TOOLTIP ? d.TOOLTIP_BEFORE : d.BEACON_BEFORE;
|
|
924
|
+
Y(m.current.debug, `step:${g}`, "scroll", tt ? "needed" : "skipped"), s.current.updateState({
|
|
925
|
+
action: R.UPDATE,
|
|
926
|
+
lifecycle: Ft,
|
|
927
|
+
scrolling: tt
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
} else if (y.current.status === w.RUNNING && f !== d.INIT && f !== d.COMPLETE && S("lifecycle")) {
|
|
931
|
+
Y(m.current.debug, `step:${g}`, I ? "Target not visible" : "Target not mounted", A), e(A, "target_not_found"), o(H.TARGET_NOT_FOUND, A);
|
|
932
|
+
const k = y.current;
|
|
933
|
+
k.controlled || s.current.updateState({
|
|
934
|
+
action: R.UPDATE,
|
|
935
|
+
index: k.index + (k.action === R.PREV ? -1 : 1),
|
|
936
|
+
lifecycle: d.INIT
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
}, [
|
|
940
|
+
e,
|
|
941
|
+
o,
|
|
942
|
+
g,
|
|
943
|
+
f,
|
|
944
|
+
s
|
|
945
|
+
]), F(() => {
|
|
946
|
+
if (!x.current) return;
|
|
947
|
+
const { hasChangedTo: S, previous: b } = Z(y.current, x.current), C = _.current, A = $.current;
|
|
948
|
+
if (C && S("lifecycle", d.TOOLTIP_BEFORE) && b.lifecycle === d.BEACON) {
|
|
949
|
+
const k = V(C.scrollTarget ?? C.spotlightTarget ?? C.target);
|
|
950
|
+
if (Rt({
|
|
951
|
+
isFirstStep: y.current.index === 0,
|
|
952
|
+
scrollToFirstStep: m.current.scrollToFirstStep,
|
|
953
|
+
step: C,
|
|
954
|
+
target: k,
|
|
955
|
+
targetLifecycle: d.TOOLTIP
|
|
956
|
+
})) {
|
|
957
|
+
s.current.updateState({
|
|
958
|
+
scrolling: !0,
|
|
959
|
+
positioned: !1
|
|
960
|
+
});
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
const B = f === d.BEACON_BEFORE || f === d.TOOLTIP_BEFORE;
|
|
965
|
+
if (C && B && !h) {
|
|
966
|
+
const k = f === d.TOOLTIP_BEFORE ? d.TOOLTIP : d.BEACON;
|
|
967
|
+
s.current.updateState({
|
|
968
|
+
action: R.UPDATE,
|
|
969
|
+
lifecycle: k
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
C && S("lifecycle", d.BEACON) && o(H.BEACON, C), C && S("lifecycle", d.TOOLTIP) && o(H.TOOLTIP, C);
|
|
973
|
+
const I = y.current;
|
|
974
|
+
if ((I.status === w.RUNNING || I.controlled && I.status === w.PAUSED && C) && A && S("lifecycle", d.COMPLETE) && b.lifecycle === d.TOOLTIP && (o(H.STEP_AFTER, A, {
|
|
975
|
+
action: a.current ?? R.UPDATE,
|
|
976
|
+
index: b.index ?? I.index,
|
|
977
|
+
lifecycle: I.lifecycle
|
|
978
|
+
}), A.after)) {
|
|
979
|
+
o(H.STEP_AFTER_HOOK, A, {
|
|
980
|
+
action: a.current ?? R.UPDATE,
|
|
981
|
+
index: b.index ?? I.index,
|
|
982
|
+
lifecycle: I.lifecycle
|
|
983
|
+
});
|
|
984
|
+
try {
|
|
985
|
+
A.after({
|
|
986
|
+
...s.current.getState(),
|
|
987
|
+
action: a.current ?? R.UPDATE,
|
|
988
|
+
index: b.index ?? I.index,
|
|
989
|
+
lifecycle: I.lifecycle,
|
|
990
|
+
step: A
|
|
991
|
+
});
|
|
992
|
+
} catch {
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}, [
|
|
996
|
+
o,
|
|
997
|
+
f,
|
|
998
|
+
l,
|
|
999
|
+
h,
|
|
1000
|
+
s
|
|
1001
|
+
]), F(() => {
|
|
1002
|
+
if (!x.current) return;
|
|
1003
|
+
const { hasChangedTo: S, previous: b } = Z(y.current, x.current), C = _.current, A = $.current;
|
|
1004
|
+
if (S("action", R.REPLAY) && S("lifecycle", d.COMPLETE)) {
|
|
1005
|
+
s.current.updateState({ lifecycle: d.INIT });
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
T && !C && f === d.INIT && s.current.updateState({
|
|
1009
|
+
action: R.UPDATE,
|
|
1010
|
+
lifecycle: d.COMPLETE,
|
|
1011
|
+
status: w.FINISHED
|
|
1012
|
+
}), !y.current.controlled && P === w.RUNNING && S("lifecycle", d.COMPLETE) && g < T && s.current.updateState({
|
|
1013
|
+
action: R.UPDATE,
|
|
1014
|
+
lifecycle: d.INIT
|
|
1015
|
+
}), S("lifecycle", d.COMPLETE) && g >= T && s.current.updateState({
|
|
1016
|
+
action: R.UPDATE,
|
|
1017
|
+
lifecycle: d.COMPLETE,
|
|
1018
|
+
status: w.FINISHED
|
|
1019
|
+
});
|
|
1020
|
+
const B = C ?? A ?? mt(m.current, m.current.steps[g - 1]);
|
|
1021
|
+
if (B && S("status", [w.FINISHED, w.SKIPPED])) {
|
|
1022
|
+
let I;
|
|
1023
|
+
C ? I = g : A ? I = b.index ?? g : I = g - 1, o(H.TOUR_END, B, { index: I }), y.current.controlled || U.current.reset(), a.current = null;
|
|
1024
|
+
}
|
|
1025
|
+
C && S("action", R.STOP) && (a.current = null, o(H.TOUR_STATUS, C)), C && S("action", R.RESET) && (o(H.TOUR_STATUS, C), a.current = null);
|
|
1026
|
+
}, [
|
|
1027
|
+
p,
|
|
1028
|
+
o,
|
|
1029
|
+
g,
|
|
1030
|
+
f,
|
|
1031
|
+
T,
|
|
1032
|
+
P,
|
|
1033
|
+
s
|
|
1034
|
+
]);
|
|
1035
|
+
}
|
|
1036
|
+
function Se({ controls: t, emitEvent: e, props: n, state: o, store: i }) {
|
|
1037
|
+
const { debug: r, initialStepIndex: c, run: u, stepIndex: s, steps: p } = n, g = N(void 0), f = N(o), l = N(t);
|
|
1038
|
+
f.current = o, l.current = t, F(() => {
|
|
1039
|
+
const h = g.current;
|
|
1040
|
+
if (g.current = n, !h || n === h) return;
|
|
1041
|
+
const { hasChanged: T } = Z(n, h);
|
|
1042
|
+
if (It(h.steps, p) || (_t(p, r) ? i.current.setSteps(p) : (Y(r, "tour", "Steps are not valid", p), e(H.ERROR, p[0] ?? {
|
|
1043
|
+
target: "",
|
|
1044
|
+
content: ""
|
|
1045
|
+
}, { error: /* @__PURE__ */ new Error("Steps are not valid") }))), T("run")) u ? i.current.getState().size && l.current.start(s ?? c) : l.current.stop();
|
|
1046
|
+
else if (z.number(s) && T("stepIndex")) {
|
|
1047
|
+
const P = z.number(h.stepIndex) && h.stepIndex < s ? R.NEXT : R.PREV;
|
|
1048
|
+
[w.FINISHED, w.SKIPPED].includes(f.current.status) || i.current.updateState({
|
|
1049
|
+
action: P,
|
|
1050
|
+
index: s,
|
|
1051
|
+
lifecycle: d.INIT,
|
|
1052
|
+
positioned: !1
|
|
1053
|
+
}, !0);
|
|
1054
|
+
}
|
|
1055
|
+
}, [
|
|
1056
|
+
r,
|
|
1057
|
+
e,
|
|
1058
|
+
c,
|
|
1059
|
+
n,
|
|
1060
|
+
u,
|
|
1061
|
+
s,
|
|
1062
|
+
p,
|
|
1063
|
+
i
|
|
1064
|
+
]);
|
|
1065
|
+
}
|
|
1066
|
+
function Oe(t, e) {
|
|
1067
|
+
const { beaconPosition: n, lifecycle: o, scrollOffset: i, step: r } = e;
|
|
1068
|
+
if (r.scrollTarget || r.spotlightTarget) return Math.max(0, t);
|
|
1069
|
+
let c = t - r.spotlightPadding.top;
|
|
1070
|
+
if (o === d.BEACON_BEFORE && n?.placement) {
|
|
1071
|
+
const u = Re(n);
|
|
1072
|
+
["bottom"].includes(n.placement) || (c += Math.floor(u - i));
|
|
1073
|
+
} else if (o === d.TOOLTIP_BEFORE) {
|
|
1074
|
+
const { placement: u } = r;
|
|
1075
|
+
if (u === "top") {
|
|
1076
|
+
const s = document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height ?? 0, p = r.floatingOptions?.hideArrow ? 0 : r.arrowSize, g = r.offset + r.spotlightPadding.top + p;
|
|
1077
|
+
c -= s + g;
|
|
1078
|
+
} else if (u === "left" || u === "right") {
|
|
1079
|
+
const s = document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height ?? 0, p = V(r.target)?.getBoundingClientRect().height ?? 0, g = i + r.spotlightPadding.top + p / 2 - s / 2;
|
|
1080
|
+
g < i && (c -= i - g);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
return Math.max(0, c);
|
|
1084
|
+
}
|
|
1085
|
+
function Re(t) {
|
|
1086
|
+
const e = t.middlewareData?.offset;
|
|
1087
|
+
return e ? ["left", "right"].some((n) => t.placement.startsWith(n)) ? e.x : e.y : 0;
|
|
1088
|
+
}
|
|
1089
|
+
function Ce({ emitEvent: t, previousState: e, props: n, state: o, step: i, store: r }) {
|
|
1090
|
+
const { index: c, lifecycle: u, positioned: s, scrolling: p, status: g } = o, f = N(null), l = N(o), h = N(e), T = N(n), P = N(i);
|
|
1091
|
+
l.current = o, h.current = e, T.current = n, P.current = i, F(() => () => {
|
|
1092
|
+
f.current?.();
|
|
1093
|
+
}, []), F(() => {
|
|
1094
|
+
if (!h.current || !P.current) return;
|
|
1095
|
+
const { hasChangedTo: v } = Z(l.current, h.current), a = P.current, { debug: m } = T.current, { scrollDuration: y } = a, x = u === d.BEACON_BEFORE || u === d.TOOLTIP_BEFORE;
|
|
1096
|
+
if (g === w.RUNNING && x && p && v("positioned", !0)) {
|
|
1097
|
+
const _ = V(a.scrollTarget ?? a.spotlightTarget ?? a.target), $ = r.current.getPositionData("beacon"), U = ot(_), D = U ? !U.isSameNode(W()) : !1;
|
|
1098
|
+
f.current?.(), (async () => {
|
|
1099
|
+
if (D && !rt(U)) {
|
|
1100
|
+
const B = W(), I = se(U), k = {
|
|
1101
|
+
initial: B.scrollTop,
|
|
1102
|
+
target: I,
|
|
1103
|
+
element: B,
|
|
1104
|
+
duration: y
|
|
1105
|
+
};
|
|
1106
|
+
t(H.SCROLL_START, a, { scroll: k });
|
|
1107
|
+
const { cancel: L, promise: j } = Ct(I, {
|
|
1108
|
+
element: B,
|
|
1109
|
+
duration: y
|
|
1110
|
+
});
|
|
1111
|
+
f.current = L, await j, t(H.SCROLL_END, a, { scroll: k });
|
|
1112
|
+
}
|
|
1113
|
+
const M = Math.floor(ce(_, a.scrollOffset)) || 0, O = D ? M : Oe(M, {
|
|
1114
|
+
beaconPosition: $,
|
|
1115
|
+
lifecycle: u,
|
|
1116
|
+
scrollOffset: a.scrollOffset,
|
|
1117
|
+
step: a
|
|
1118
|
+
});
|
|
1119
|
+
Y(m, `step:${c}`, "scroll", D ? "custom" : "document", `${M} → ${O}`);
|
|
1120
|
+
const S = U, b = {
|
|
1121
|
+
initial: S.scrollTop,
|
|
1122
|
+
target: O,
|
|
1123
|
+
element: S,
|
|
1124
|
+
duration: y
|
|
1125
|
+
};
|
|
1126
|
+
t(H.SCROLL_START, a, { scroll: b });
|
|
1127
|
+
const { cancel: C, promise: A } = Ct(O, {
|
|
1128
|
+
element: S,
|
|
1129
|
+
duration: y
|
|
1130
|
+
});
|
|
1131
|
+
f.current = C, await A, t(H.SCROLL_END, a, { scroll: b }), r.current.updateState({ scrolling: !1 });
|
|
1132
|
+
})().catch(() => {
|
|
1133
|
+
r.current.updateState({ scrolling: !1 });
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
}, [
|
|
1137
|
+
t,
|
|
1138
|
+
c,
|
|
1139
|
+
u,
|
|
1140
|
+
s,
|
|
1141
|
+
p,
|
|
1142
|
+
g,
|
|
1143
|
+
r
|
|
1144
|
+
]);
|
|
1145
|
+
}
|
|
1146
|
+
function we(t) {
|
|
1147
|
+
const e = $t(() => ne(Qt, t), [t]), { debug: n, initialStepIndex: o, onEvent: i, run: r, stepIndex: c, steps: u } = e, s = N(me(e)), p = Ht.useSyncExternalStore(s.current.subscribe, s.current.getSnapshot, s.current.getServerSnapshot), [g, f] = nt([]), l = Q((_, $) => {
|
|
1148
|
+
f((U) => [...U, {
|
|
1149
|
+
reason: $,
|
|
1150
|
+
step: _
|
|
1151
|
+
}]);
|
|
1152
|
+
}, []), h = Q(() => {
|
|
1153
|
+
f([]);
|
|
1154
|
+
}, []);
|
|
1155
|
+
Ee(s, n);
|
|
1156
|
+
const T = he(s, n, h), P = Te(i, T, s), { index: v, size: a, status: m } = p, y = xt(p), x = J(() => mt(e, u[v]), [
|
|
1157
|
+
v,
|
|
1158
|
+
e,
|
|
1159
|
+
u
|
|
1160
|
+
]);
|
|
1161
|
+
return Ut(() => {
|
|
1162
|
+
r && a && _t(u, n) && T.start(c ?? o);
|
|
1163
|
+
}), Mt(() => {
|
|
1164
|
+
r && a && m === w.IDLE && s.current.updateState({ status: w.READY });
|
|
1165
|
+
}, [
|
|
1166
|
+
r,
|
|
1167
|
+
a,
|
|
1168
|
+
m
|
|
1169
|
+
]), Se({
|
|
1170
|
+
controls: T,
|
|
1171
|
+
emitEvent: P,
|
|
1172
|
+
props: e,
|
|
1173
|
+
state: p,
|
|
1174
|
+
store: s
|
|
1175
|
+
}), be({
|
|
1176
|
+
addFailure: l,
|
|
1177
|
+
controls: T,
|
|
1178
|
+
emitEvent: P,
|
|
1179
|
+
previousState: y,
|
|
1180
|
+
props: e,
|
|
1181
|
+
state: p,
|
|
1182
|
+
step: x,
|
|
1183
|
+
store: s
|
|
1184
|
+
}), Ce({
|
|
1185
|
+
emitEvent: P,
|
|
1186
|
+
previousState: y,
|
|
1187
|
+
props: e,
|
|
1188
|
+
state: p,
|
|
1189
|
+
step: x,
|
|
1190
|
+
store: s
|
|
1191
|
+
}), {
|
|
1192
|
+
controls: T,
|
|
1193
|
+
failures: g,
|
|
1194
|
+
mergedProps: e,
|
|
1195
|
+
state: p,
|
|
1196
|
+
step: x,
|
|
1197
|
+
store: s
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
function Pe(t) {
|
|
1201
|
+
const [e, n] = nt(null);
|
|
1202
|
+
return F(() => {
|
|
1203
|
+
let o = null, i = !1;
|
|
1204
|
+
if (t) if (z.domElement(t))
|
|
1205
|
+
o = t, i = !0;
|
|
1206
|
+
else {
|
|
1207
|
+
const r = document.querySelector(t);
|
|
1208
|
+
r && (o = r);
|
|
1209
|
+
}
|
|
1210
|
+
else {
|
|
1211
|
+
const r = document.createElement("div");
|
|
1212
|
+
r.id = te, document.body.appendChild(r), o = r;
|
|
1213
|
+
}
|
|
1214
|
+
return n(o), () => {
|
|
1215
|
+
!o || i || o.parentNode === document.body && document.body.removeChild(o);
|
|
1216
|
+
};
|
|
1217
|
+
}, [t]), e;
|
|
1218
|
+
}
|
|
1219
|
+
const xe = {
|
|
1220
|
+
animation: "joyride-loader-spin 1s linear infinite",
|
|
1221
|
+
border: "5px solid rgba(0, 0, 0, 0.1)",
|
|
1222
|
+
borderRadius: "50%",
|
|
1223
|
+
borderTopColor: "#555"
|
|
1224
|
+
};
|
|
1225
|
+
function Ie({ nonce: t, step: e }) {
|
|
1226
|
+
const { loaderComponent: n } = e, o = !!n;
|
|
1227
|
+
if (F(() => {
|
|
1228
|
+
if (o || document.getElementById("joyride-loader-animation")) return st;
|
|
1229
|
+
const s = document.createElement("style");
|
|
1230
|
+
return s.id = "joyride-loader-animation", t && s.setAttribute("nonce", t), s.appendChild(document.createTextNode(`
|
|
1231
|
+
@keyframes joyride-loader-spin {
|
|
1232
|
+
to { transform: rotate(360deg); }
|
|
1233
|
+
}
|
|
1234
|
+
`)), document.head.appendChild(s), () => {
|
|
1235
|
+
const p = document.getElementById("joyride-loader-animation");
|
|
1236
|
+
p?.parentNode && p.parentNode.removeChild(p);
|
|
1237
|
+
};
|
|
1238
|
+
}, [o, t]), n === null) return null;
|
|
1239
|
+
const { height: i, width: r, ...c } = e.styles.loader;
|
|
1240
|
+
let u;
|
|
1241
|
+
if (n) {
|
|
1242
|
+
const s = n;
|
|
1243
|
+
u = /* @__PURE__ */ E.createElement(s, { step: e });
|
|
1244
|
+
} else u = /* @__PURE__ */ E.createElement("div", { style: {
|
|
1245
|
+
...xe,
|
|
1246
|
+
height: i,
|
|
1247
|
+
width: r,
|
|
1248
|
+
borderTopColor: e.primaryColor
|
|
1249
|
+
} });
|
|
1250
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
1251
|
+
className: "react-joyride__loader",
|
|
1252
|
+
"data-testid": "loader",
|
|
1253
|
+
style: c
|
|
1254
|
+
}, u);
|
|
1255
|
+
}
|
|
1256
|
+
const Ne = {
|
|
1257
|
+
height: 0,
|
|
1258
|
+
isFixed: !1,
|
|
1259
|
+
left: 0,
|
|
1260
|
+
top: 0,
|
|
1261
|
+
width: 0
|
|
1262
|
+
};
|
|
1263
|
+
function it(t, e) {
|
|
1264
|
+
const n = V(t);
|
|
1265
|
+
if (!n) return Ne;
|
|
1266
|
+
const o = gt(n), i = rt(n), r = ie(n, e.top, i);
|
|
1267
|
+
return {
|
|
1268
|
+
height: Math.round((o?.height ?? 0) + e.top + e.bottom),
|
|
1269
|
+
isFixed: i,
|
|
1270
|
+
left: Math.round((o?.left ?? 0) - e.left),
|
|
1271
|
+
top: r,
|
|
1272
|
+
width: Math.round((o?.width ?? 0) + e.left + e.right)
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
function Ae(t, e, n) {
|
|
1276
|
+
const [o, i] = nt(() => it(t, e)), r = N(void 0), c = N(null), u = N(n), s = N(null), p = Q(() => {
|
|
1277
|
+
clearTimeout(r.current), r.current = window.setTimeout(() => {
|
|
1278
|
+
i((f) => {
|
|
1279
|
+
const l = it(t, e);
|
|
1280
|
+
return f.top === l.top && f.left === l.left && f.width === l.width && f.height === l.height && f.isFixed === l.isFixed ? f : l;
|
|
1281
|
+
});
|
|
1282
|
+
}, 100);
|
|
1283
|
+
}, [t, e]);
|
|
1284
|
+
F(() => {
|
|
1285
|
+
let f = null;
|
|
1286
|
+
const l = (T) => {
|
|
1287
|
+
c.current = ot(T, !0), c.current && c.current.addEventListener("scroll", p, { passive: !0 }), window.addEventListener("scroll", p, { passive: !0 }), window.addEventListener("resize", p), typeof ResizeObserver < "u" && (s.current = new ResizeObserver(p), s.current.observe(T)), i(it(t, e));
|
|
1288
|
+
}, h = V(t);
|
|
1289
|
+
return h ? l(h) : (f = new MutationObserver(() => {
|
|
1290
|
+
const T = V(t);
|
|
1291
|
+
T && (f?.disconnect(), f = null, l(T));
|
|
1292
|
+
}), f.observe(document.body, {
|
|
1293
|
+
childList: !0,
|
|
1294
|
+
subtree: !0
|
|
1295
|
+
})), () => {
|
|
1296
|
+
f?.disconnect(), c.current && c.current.removeEventListener("scroll", p), window.removeEventListener("scroll", p), window.removeEventListener("resize", p), s.current?.disconnect(), clearTimeout(r.current);
|
|
1297
|
+
};
|
|
1298
|
+
}, [
|
|
1299
|
+
t,
|
|
1300
|
+
e,
|
|
1301
|
+
p
|
|
1302
|
+
]), F(() => {
|
|
1303
|
+
u.current && !n && i(it(t, e)), u.current = n;
|
|
1304
|
+
}, [
|
|
1305
|
+
n,
|
|
1306
|
+
t,
|
|
1307
|
+
e
|
|
1308
|
+
]);
|
|
1309
|
+
let g = o;
|
|
1310
|
+
return u.current && !n && (g = it(t, e)), g;
|
|
1311
|
+
}
|
|
1312
|
+
function Le(t, e, n) {
|
|
1313
|
+
let o = `M0 0H${t}V${e}H0Z`;
|
|
1314
|
+
return n && (o += ` ${n}`), o;
|
|
1315
|
+
}
|
|
1316
|
+
function Pt(t, e, n, o, i) {
|
|
1317
|
+
if (n <= 0 || o <= 0) return "";
|
|
1318
|
+
const r = Math.max(0, Math.min(i, n / 2, o / 2));
|
|
1319
|
+
let c = `M${t + r} ${e}`;
|
|
1320
|
+
return c += `H${t + n - r}`, c += `A${r} ${r} 0 0 1 ${t + n} ${e + r}`, c += `V${e + o - r}`, c += `A${r} ${r} 0 0 1 ${t + n - r} ${e + o}`, c += `H${t + r}`, c += `A${r} ${r} 0 0 1 ${t} ${e + o - r}`, c += `V${e + r}`, c += `A${r} ${r} 0 0 1 ${t + r} ${e}Z`, c;
|
|
1321
|
+
}
|
|
1322
|
+
const ve = [d.BEACON_BEFORE, d.BEACON];
|
|
1323
|
+
function ke(t) {
|
|
1324
|
+
const { blockTargetInteraction: e, continuous: n, hideOverlay: o, lifecycle: i, onClickOverlay: r, overlayClickAction: c, placement: u, portalElement: s, scrolling: p, spotlightPadding: g, spotlightRadius: f, spotlightTarget: l, styles: h, target: T, waiting: P } = t, v = jt(), a = Ae(l ?? T, g, p || P), m = N(null), y = (i === d.TOOLTIP || i === d.TOOLTIP_BEFORE) && u !== "center", [x, _] = nt(!1), $ = s ? m.current?.offsetParent : null, U = $?.clientWidth ?? v.width, D = $?.clientHeight ?? re() ?? v.height, G = h.overlay?.backgroundColor ?? "rgba(0, 0, 0, 0.5)", M = J(() => {
|
|
1325
|
+
const { backgroundColor: B, mixBlendMode: I, ...k } = h.overlay;
|
|
1326
|
+
return {
|
|
1327
|
+
height: D,
|
|
1328
|
+
pointerEvents: "none",
|
|
1329
|
+
...k
|
|
1330
|
+
};
|
|
1331
|
+
}, [D, h.overlay]), O = y && !p && !P;
|
|
1332
|
+
F(() => {
|
|
1333
|
+
O ? requestAnimationFrame(() => _(!0)) : _(!1);
|
|
1334
|
+
}, [O]);
|
|
1335
|
+
const S = n && ve.includes(i), b = !n && i !== d.TOOLTIP;
|
|
1336
|
+
if (o || !P && (S || b)) return null;
|
|
1337
|
+
let C = "";
|
|
1338
|
+
if (O) if (s && $) {
|
|
1339
|
+
const B = V(l ?? T);
|
|
1340
|
+
if (B) {
|
|
1341
|
+
const I = Ot(B), k = Ot($);
|
|
1342
|
+
C = Pt(I.left - k.left - g.left, I.top - k.top - g.top, B.offsetWidth + g.left + g.right, B.offsetHeight + g.top + g.bottom, f);
|
|
1343
|
+
}
|
|
1344
|
+
} else C = Pt(a.left, a.top, a.width, a.height, f);
|
|
1345
|
+
const A = Le(U, D, C);
|
|
1346
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
1347
|
+
ref: m,
|
|
1348
|
+
"aria-hidden": "true",
|
|
1349
|
+
className: "react-joyride__overlay",
|
|
1350
|
+
"data-testid": "overlay",
|
|
1351
|
+
style: M
|
|
1352
|
+
}, /* @__PURE__ */ E.createElement("svg", {
|
|
1353
|
+
className: "react-joyride__spotlight",
|
|
1354
|
+
"data-testid": "spotlight",
|
|
1355
|
+
style: {
|
|
1356
|
+
height: D,
|
|
1357
|
+
left: 0,
|
|
1358
|
+
position: a.isFixed ? "fixed" : "absolute",
|
|
1359
|
+
top: 0,
|
|
1360
|
+
width: U
|
|
1361
|
+
}
|
|
1362
|
+
}, /* @__PURE__ */ E.createElement("path", {
|
|
1363
|
+
d: A,
|
|
1364
|
+
fill: G,
|
|
1365
|
+
fillRule: "evenodd",
|
|
1366
|
+
onClick: r,
|
|
1367
|
+
style: {
|
|
1368
|
+
cursor: c ? "pointer" : "default",
|
|
1369
|
+
pointerEvents: "auto"
|
|
1370
|
+
}
|
|
1371
|
+
}), C && /* @__PURE__ */ E.createElement("path", {
|
|
1372
|
+
d: C,
|
|
1373
|
+
fill: G,
|
|
1374
|
+
style: {
|
|
1375
|
+
opacity: x ? 0 : 1,
|
|
1376
|
+
pointerEvents: e ? "auto" : "none",
|
|
1377
|
+
transition: "opacity 0.2s"
|
|
1378
|
+
}
|
|
1379
|
+
}), C && Object.keys(h.spotlight).length > 0 && /* @__PURE__ */ E.createElement("path", {
|
|
1380
|
+
d: C,
|
|
1381
|
+
fill: "none",
|
|
1382
|
+
style: { pointerEvents: "none" },
|
|
1383
|
+
...h.spotlight
|
|
1384
|
+
})));
|
|
1385
|
+
}
|
|
1386
|
+
function Dt(t) {
|
|
1387
|
+
const { children: e, element: n } = t;
|
|
1388
|
+
return n ? Wt(e, n) : null;
|
|
1389
|
+
}
|
|
1390
|
+
const Be = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), area[href], [tabindex]:not([tabindex="-1"]), [contenteditable]';
|
|
1391
|
+
function _e(t, e) {
|
|
1392
|
+
const n = N(null);
|
|
1393
|
+
F(() => {
|
|
1394
|
+
if (!t) return st;
|
|
1395
|
+
n.current = document.activeElement;
|
|
1396
|
+
const o = (r) => {
|
|
1397
|
+
if (r.key !== "Tab") return;
|
|
1398
|
+
const c = [...t.querySelectorAll(Be)], { shiftKey: u } = r;
|
|
1399
|
+
if (!c.length) return;
|
|
1400
|
+
r.preventDefault();
|
|
1401
|
+
let s = document.activeElement ? c.indexOf(document.activeElement) : 0;
|
|
1402
|
+
s === -1 || !u && s + 1 === c.length ? s = 0 : u && s === 0 ? s = c.length - 1 : s += u ? -1 : 1, c[s].focus();
|
|
1403
|
+
};
|
|
1404
|
+
t.addEventListener("keydown", o, !1);
|
|
1405
|
+
let i;
|
|
1406
|
+
{
|
|
1407
|
+
const r = t.querySelector(e);
|
|
1408
|
+
r && (i = setTimeout(() => {
|
|
1409
|
+
r.focus({ preventScroll: !0 });
|
|
1410
|
+
}, 100));
|
|
1411
|
+
}
|
|
1412
|
+
return () => {
|
|
1413
|
+
t.removeEventListener("keydown", o), i !== void 0 && clearTimeout(i), n.current?.focus({ preventScroll: !0 });
|
|
1414
|
+
};
|
|
1415
|
+
}, [t, e]);
|
|
1416
|
+
}
|
|
1417
|
+
function X(t, e, n) {
|
|
1418
|
+
const [o] = t.split("-");
|
|
1419
|
+
switch (o) {
|
|
1420
|
+
case "top":
|
|
1421
|
+
case "bottom":
|
|
1422
|
+
return {
|
|
1423
|
+
width: e,
|
|
1424
|
+
height: n
|
|
1425
|
+
};
|
|
1426
|
+
case "left":
|
|
1427
|
+
case "right":
|
|
1428
|
+
return {
|
|
1429
|
+
width: n,
|
|
1430
|
+
height: e
|
|
1431
|
+
};
|
|
1432
|
+
default:
|
|
1433
|
+
return null;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function De(t, e, n) {
|
|
1437
|
+
const [o] = t.split("-");
|
|
1438
|
+
switch (o) {
|
|
1439
|
+
case "top":
|
|
1440
|
+
return {
|
|
1441
|
+
points: `0,0 ${e / 2},${n} ${e},0`,
|
|
1442
|
+
...X(t, e, n)
|
|
1443
|
+
};
|
|
1444
|
+
case "bottom":
|
|
1445
|
+
return {
|
|
1446
|
+
points: `${e},${n} ${e / 2},0 0,${n}`,
|
|
1447
|
+
...X(t, e, n)
|
|
1448
|
+
};
|
|
1449
|
+
case "left":
|
|
1450
|
+
return {
|
|
1451
|
+
points: `0,0 ${n},${e / 2} 0,${e}`,
|
|
1452
|
+
...X(t, e, n)
|
|
1453
|
+
};
|
|
1454
|
+
case "right":
|
|
1455
|
+
return {
|
|
1456
|
+
points: `${n},${e} ${n},0 0,${e / 2}`,
|
|
1457
|
+
...X(t, e, n)
|
|
1458
|
+
};
|
|
1459
|
+
default:
|
|
1460
|
+
return null;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
function Fe(t, e, n, o) {
|
|
1464
|
+
if (!e) return {};
|
|
1465
|
+
const [i] = t.split("-");
|
|
1466
|
+
switch (i) {
|
|
1467
|
+
case "top":
|
|
1468
|
+
return {
|
|
1469
|
+
bottom: -n,
|
|
1470
|
+
left: e.x ?? 0,
|
|
1471
|
+
...X(t, o, n)
|
|
1472
|
+
};
|
|
1473
|
+
case "bottom":
|
|
1474
|
+
return {
|
|
1475
|
+
top: -n,
|
|
1476
|
+
left: e.x ?? 0,
|
|
1477
|
+
...X(t, o, n)
|
|
1478
|
+
};
|
|
1479
|
+
case "left":
|
|
1480
|
+
return {
|
|
1481
|
+
right: -n,
|
|
1482
|
+
top: e.y ?? 0,
|
|
1483
|
+
...X(t, o, n)
|
|
1484
|
+
};
|
|
1485
|
+
case "right":
|
|
1486
|
+
return {
|
|
1487
|
+
left: -n,
|
|
1488
|
+
top: e.y ?? 0,
|
|
1489
|
+
...X(t, o, n)
|
|
1490
|
+
};
|
|
1491
|
+
default:
|
|
1492
|
+
return {};
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
function $e({ arrowComponent: t, arrowRef: e, base: n, placement: o, position: i, size: r, styles: c }) {
|
|
1496
|
+
const u = t;
|
|
1497
|
+
let s = null;
|
|
1498
|
+
if (u) {
|
|
1499
|
+
if (!X(o, n, r)) return null;
|
|
1500
|
+
s = /* @__PURE__ */ E.createElement("span", { style: { flexShrink: 0 } }, /* @__PURE__ */ E.createElement(u, {
|
|
1501
|
+
base: n,
|
|
1502
|
+
placement: o,
|
|
1503
|
+
size: r
|
|
1504
|
+
}));
|
|
1505
|
+
} else {
|
|
1506
|
+
const p = De(o, n, r);
|
|
1507
|
+
if (!p) return null;
|
|
1508
|
+
s = /* @__PURE__ */ E.createElement("svg", {
|
|
1509
|
+
height: p.height,
|
|
1510
|
+
width: p.width,
|
|
1511
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1512
|
+
}, /* @__PURE__ */ E.createElement("polygon", {
|
|
1513
|
+
fill: "currentColor",
|
|
1514
|
+
points: p.points
|
|
1515
|
+
}));
|
|
1516
|
+
}
|
|
1517
|
+
return /* @__PURE__ */ E.createElement("span", {
|
|
1518
|
+
ref: e,
|
|
1519
|
+
className: "react-joyride__arrow",
|
|
1520
|
+
"data-testid": "arrow",
|
|
1521
|
+
style: {
|
|
1522
|
+
...c,
|
|
1523
|
+
...Fe(o, i, r, n),
|
|
1524
|
+
...i ? {} : { visibility: "hidden" }
|
|
1525
|
+
}
|
|
1526
|
+
}, s);
|
|
1527
|
+
}
|
|
1528
|
+
function Ue(t) {
|
|
1529
|
+
const { beaconComponent: e, continuous: n, index: o, isLastStep: i, locale: r, nonce: c, onInteract: u, shouldFocus: s, size: p, step: g, styles: f } = t, l = N(null), h = !!e;
|
|
1530
|
+
F(() => {
|
|
1531
|
+
if (h || document.getElementById("joyride-beacon-animation")) return st;
|
|
1532
|
+
const v = document.createElement("style");
|
|
1533
|
+
v.id = "joyride-beacon-animation", c && v.setAttribute("nonce", c), v.appendChild(document.createTextNode(`
|
|
1534
|
+
@keyframes joyride-beacon-inner {
|
|
1535
|
+
20% {
|
|
1536
|
+
opacity: 0.9;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
90% {
|
|
1540
|
+
opacity: 0.7;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
@keyframes joyride-beacon-outer {
|
|
1545
|
+
0% {
|
|
1546
|
+
transform: scale(1);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
45% {
|
|
1550
|
+
opacity: 0.7;
|
|
1551
|
+
transform: scale(0.75);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
100% {
|
|
1555
|
+
opacity: 0.9;
|
|
1556
|
+
transform: scale(1);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
`)), document.head.appendChild(v);
|
|
1560
|
+
const a = setTimeout(() => {
|
|
1561
|
+
z.domElement(l.current) && s && l.current.focus();
|
|
1562
|
+
}, 0);
|
|
1563
|
+
return () => {
|
|
1564
|
+
clearTimeout(a);
|
|
1565
|
+
const m = document.getElementById("joyride-beacon-animation");
|
|
1566
|
+
m?.parentNode && m.parentNode.removeChild(m);
|
|
1567
|
+
};
|
|
1568
|
+
}, [
|
|
1569
|
+
h,
|
|
1570
|
+
c,
|
|
1571
|
+
s
|
|
1572
|
+
]);
|
|
1573
|
+
const T = q(r.open);
|
|
1574
|
+
let P;
|
|
1575
|
+
if (e) {
|
|
1576
|
+
const v = e;
|
|
1577
|
+
P = /* @__PURE__ */ E.createElement(v, {
|
|
1578
|
+
continuous: n,
|
|
1579
|
+
index: o,
|
|
1580
|
+
isLastStep: i,
|
|
1581
|
+
size: p,
|
|
1582
|
+
step: g
|
|
1583
|
+
});
|
|
1584
|
+
} else P = /* @__PURE__ */ E.createElement("span", { style: f.beacon }, /* @__PURE__ */ E.createElement("span", { style: f.beaconOuter }), /* @__PURE__ */ E.createElement("span", { style: f.beaconInner }));
|
|
1585
|
+
return /* @__PURE__ */ E.createElement("button", {
|
|
1586
|
+
ref: l,
|
|
1587
|
+
"aria-label": T,
|
|
1588
|
+
className: "react-joyride__beacon",
|
|
1589
|
+
"data-testid": "button-beacon",
|
|
1590
|
+
onClick: u,
|
|
1591
|
+
onMouseEnter: u,
|
|
1592
|
+
style: f.beaconWrapper,
|
|
1593
|
+
title: T,
|
|
1594
|
+
type: "button"
|
|
1595
|
+
}, P);
|
|
1596
|
+
}
|
|
1597
|
+
function Me({ styles: t, ...e }) {
|
|
1598
|
+
const { color: n, height: o, width: i, ...r } = t;
|
|
1599
|
+
return /* @__PURE__ */ E.createElement("button", {
|
|
1600
|
+
style: r,
|
|
1601
|
+
type: "button",
|
|
1602
|
+
...e
|
|
1603
|
+
}, /* @__PURE__ */ E.createElement("svg", {
|
|
1604
|
+
height: typeof o == "number" ? `${o}px` : o,
|
|
1605
|
+
preserveAspectRatio: "xMidYMid",
|
|
1606
|
+
version: "1.1",
|
|
1607
|
+
viewBox: "0 0 18 18",
|
|
1608
|
+
width: typeof i == "number" ? `${i}px` : i,
|
|
1609
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1610
|
+
}, /* @__PURE__ */ E.createElement("g", null, /* @__PURE__ */ E.createElement("path", {
|
|
1611
|
+
d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",
|
|
1612
|
+
fill: n
|
|
1613
|
+
}))));
|
|
1614
|
+
}
|
|
1615
|
+
function je(t) {
|
|
1616
|
+
const { backProps: e, closeProps: n, index: o, isLastStep: i, primaryProps: r, skipProps: c, step: u, tooltipProps: s } = t, { buttons: p, content: g, styles: f, title: l } = u, h = {};
|
|
1617
|
+
p.includes("primary") && (h.primary = /* @__PURE__ */ E.createElement("button", {
|
|
1618
|
+
"data-testid": "button-primary",
|
|
1619
|
+
style: f.buttonPrimary,
|
|
1620
|
+
type: "button",
|
|
1621
|
+
...r
|
|
1622
|
+
})), p.includes("skip") && !i && (h.skip = /* @__PURE__ */ E.createElement("button", {
|
|
1623
|
+
"aria-live": "off",
|
|
1624
|
+
"data-testid": "button-skip",
|
|
1625
|
+
style: f.buttonSkip,
|
|
1626
|
+
type: "button",
|
|
1627
|
+
...c
|
|
1628
|
+
})), p.includes("back") && o > 0 && (h.back = /* @__PURE__ */ E.createElement("button", {
|
|
1629
|
+
"data-testid": "button-back",
|
|
1630
|
+
style: f.buttonBack,
|
|
1631
|
+
type: "button",
|
|
1632
|
+
...e
|
|
1633
|
+
})), h.close = p.includes("close") && /* @__PURE__ */ E.createElement(Me, {
|
|
1634
|
+
"data-testid": "button-close",
|
|
1635
|
+
styles: f.buttonClose,
|
|
1636
|
+
...n
|
|
1637
|
+
});
|
|
1638
|
+
const T = l ? {
|
|
1639
|
+
"aria-labelledby": "joyride-tooltip-title",
|
|
1640
|
+
"aria-describedby": "joyride-tooltip-content"
|
|
1641
|
+
} : {
|
|
1642
|
+
"aria-label": q(g),
|
|
1643
|
+
"aria-describedby": "joyride-tooltip-content"
|
|
1644
|
+
};
|
|
1645
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
1646
|
+
key: "JoyrideTooltip",
|
|
1647
|
+
className: "react-joyride__tooltip",
|
|
1648
|
+
"data-joyride-step": o,
|
|
1649
|
+
...u.id && { "data-joyride-id": u.id },
|
|
1650
|
+
style: f.tooltip,
|
|
1651
|
+
...s,
|
|
1652
|
+
...T
|
|
1653
|
+
}, /* @__PURE__ */ E.createElement("div", { style: f.tooltipContainer }, l && /* @__PURE__ */ E.createElement("h4", {
|
|
1654
|
+
id: "joyride-tooltip-title",
|
|
1655
|
+
style: f.tooltipTitle
|
|
1656
|
+
}, l), /* @__PURE__ */ E.createElement("div", {
|
|
1657
|
+
id: "joyride-tooltip-content",
|
|
1658
|
+
style: f.tooltipContent
|
|
1659
|
+
}, g)), p.some((P) => P === "back" || P === "primary" || P === "skip") && /* @__PURE__ */ E.createElement("div", { style: f.tooltipFooter }, /* @__PURE__ */ E.createElement("div", { style: f.tooltipFooterSpacer }, h.skip), h.back, h.primary), h.close);
|
|
1660
|
+
}
|
|
1661
|
+
function He(t) {
|
|
1662
|
+
const { continuous: e, controls: n, index: o, isLastStep: i, size: r, step: c } = t, u = (a) => {
|
|
1663
|
+
a.preventDefault(), n.prev(K.BUTTON_BACK);
|
|
1664
|
+
}, s = (a) => {
|
|
1665
|
+
a.preventDefault(), c.closeButtonAction === "skip" ? n.skip(K.BUTTON_CLOSE) : c.closeButtonAction === "replay" ? n.replay(K.BUTTON_CLOSE) : n.close(K.BUTTON_CLOSE);
|
|
1666
|
+
}, p = (a) => {
|
|
1667
|
+
if (a.preventDefault(), !e) {
|
|
1668
|
+
n.close(K.BUTTON_PRIMARY);
|
|
1669
|
+
return;
|
|
1670
|
+
}
|
|
1671
|
+
n.next(K.BUTTON_PRIMARY);
|
|
1672
|
+
}, g = (a) => {
|
|
1673
|
+
a.preventDefault(), n.skip(K.BUTTON_SKIP);
|
|
1674
|
+
}, f = () => {
|
|
1675
|
+
const { back: a, close: m, last: y, next: x, nextWithProgress: _, skip: $ } = c.locale, U = q(a), D = q(m), G = q(y), M = q(x), O = q($);
|
|
1676
|
+
let S = m, b = D;
|
|
1677
|
+
if (e) {
|
|
1678
|
+
if (S = x, b = M, c.showProgress && !i) {
|
|
1679
|
+
const C = q(_, {
|
|
1680
|
+
step: o + 1,
|
|
1681
|
+
steps: r
|
|
1682
|
+
});
|
|
1683
|
+
S = ft(_, o + 1, r), b = C;
|
|
1684
|
+
}
|
|
1685
|
+
i && (S = y, b = G);
|
|
1686
|
+
}
|
|
1687
|
+
return {
|
|
1688
|
+
backProps: {
|
|
1689
|
+
"aria-label": U,
|
|
1690
|
+
children: a,
|
|
1691
|
+
"data-action": "back",
|
|
1692
|
+
onClick: u,
|
|
1693
|
+
role: "button",
|
|
1694
|
+
title: U
|
|
1695
|
+
},
|
|
1696
|
+
closeProps: {
|
|
1697
|
+
"aria-label": D,
|
|
1698
|
+
children: m,
|
|
1699
|
+
"data-action": "close",
|
|
1700
|
+
onClick: s,
|
|
1701
|
+
role: "button",
|
|
1702
|
+
title: D
|
|
1703
|
+
},
|
|
1704
|
+
primaryProps: {
|
|
1705
|
+
"aria-label": b,
|
|
1706
|
+
children: S,
|
|
1707
|
+
"data-action": "primary",
|
|
1708
|
+
onClick: p,
|
|
1709
|
+
role: "button",
|
|
1710
|
+
title: b
|
|
1711
|
+
},
|
|
1712
|
+
skipProps: {
|
|
1713
|
+
"aria-label": O,
|
|
1714
|
+
children: $,
|
|
1715
|
+
"data-action": "skip",
|
|
1716
|
+
onClick: g,
|
|
1717
|
+
role: "button",
|
|
1718
|
+
title: O
|
|
1719
|
+
},
|
|
1720
|
+
tooltipProps: {
|
|
1721
|
+
"aria-modal": !0,
|
|
1722
|
+
role: "alertdialog"
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
}, { arrowComponent: l, beaconComponent: h, tooltipComponent: T, ...P } = c;
|
|
1726
|
+
let v;
|
|
1727
|
+
if (T) {
|
|
1728
|
+
const a = T;
|
|
1729
|
+
v = /* @__PURE__ */ E.createElement(a, {
|
|
1730
|
+
...f(),
|
|
1731
|
+
continuous: e,
|
|
1732
|
+
controls: n,
|
|
1733
|
+
index: o,
|
|
1734
|
+
isLastStep: i,
|
|
1735
|
+
size: r,
|
|
1736
|
+
step: P
|
|
1737
|
+
});
|
|
1738
|
+
} else v = /* @__PURE__ */ E.createElement(je, {
|
|
1739
|
+
...f(),
|
|
1740
|
+
continuous: e,
|
|
1741
|
+
controls: n,
|
|
1742
|
+
index: o,
|
|
1743
|
+
isLastStep: i,
|
|
1744
|
+
size: r,
|
|
1745
|
+
step: P
|
|
1746
|
+
});
|
|
1747
|
+
return v;
|
|
1748
|
+
}
|
|
1749
|
+
function Ye(t) {
|
|
1750
|
+
if (t.startsWith("left")) return ["top", "bottom"];
|
|
1751
|
+
if (t.startsWith("right")) return ["bottom", "top"];
|
|
1752
|
+
}
|
|
1753
|
+
function ze(t, e, n) {
|
|
1754
|
+
return t ? [Vt()] : e.floatingOptions?.flipOptions === !1 ? [] : [Jt({
|
|
1755
|
+
crossAxis: !1,
|
|
1756
|
+
fallbackPlacements: Ye(n),
|
|
1757
|
+
padding: 20,
|
|
1758
|
+
...e.floatingOptions?.flipOptions
|
|
1759
|
+
})];
|
|
1760
|
+
}
|
|
1761
|
+
function We(t) {
|
|
1762
|
+
const { continuous: e, controls: n, index: o, lifecycle: i, nonce: r, open: c, portalElement: u, setPositionData: s, setTooltipRef: p, shouldScroll: g, size: f, step: l, target: h, updateState: T } = t, P = N(null), v = N({}), a = N({}), m = l.placement === "center", y = l.placement === "auto", x = J(() => ({ getBoundingClientRect: () => ({
|
|
1763
|
+
x: window.innerWidth / 2,
|
|
1764
|
+
y: window.innerHeight / 2,
|
|
1765
|
+
top: window.innerHeight / 2,
|
|
1766
|
+
left: window.innerWidth / 2,
|
|
1767
|
+
bottom: window.innerHeight / 2,
|
|
1768
|
+
right: window.innerWidth / 2,
|
|
1769
|
+
width: 0,
|
|
1770
|
+
height: 0
|
|
1771
|
+
}) }), []), _ = J(() => vt(h) ? ot(h) : void 0, [h]), $ = J(() => rt(h), [h]), U = J(() => _ ? {
|
|
1772
|
+
boundary: _,
|
|
1773
|
+
rootBoundary: "viewport"
|
|
1774
|
+
} : {}, [_]), D = m || y ? "bottom" : l.placement, G = m ? "fixed" : l.floatingOptions?.strategy ?? (l.isFixed || $ ? "fixed" : "absolute"), M = J(() => m ? [{
|
|
1775
|
+
name: "center",
|
|
1776
|
+
fn: ({ rects: L }) => ({
|
|
1777
|
+
x: (window.innerWidth - L.floating.width) / 2,
|
|
1778
|
+
y: (window.innerHeight - L.floating.height) / 2
|
|
1779
|
+
})
|
|
1780
|
+
}] : [
|
|
1781
|
+
yt(({ placement: L }) => {
|
|
1782
|
+
let j = "right";
|
|
1783
|
+
L.startsWith("top") ? j = "top" : L.startsWith("bottom") ? j = "bottom" : L.startsWith("left") && (j = "left");
|
|
1784
|
+
const tt = l.spotlightTarget ? 0 : l.spotlightPadding[j];
|
|
1785
|
+
return l.offset + tt + (l.floatingOptions?.hideArrow ? 0 : l.arrowSize);
|
|
1786
|
+
}, [
|
|
1787
|
+
l.offset,
|
|
1788
|
+
l.spotlightPadding,
|
|
1789
|
+
l.spotlightTarget,
|
|
1790
|
+
l.arrowSize,
|
|
1791
|
+
l.floatingOptions?.hideArrow
|
|
1792
|
+
]),
|
|
1793
|
+
...ze(y, l, D),
|
|
1794
|
+
Kt({
|
|
1795
|
+
padding: 10,
|
|
1796
|
+
...U,
|
|
1797
|
+
...l.floatingOptions?.shiftOptions
|
|
1798
|
+
}),
|
|
1799
|
+
...l.floatingOptions?.hideArrow ? [] : [Gt({
|
|
1800
|
+
element: P,
|
|
1801
|
+
padding: l.arrowSpacing
|
|
1802
|
+
}, [l.arrowSpacing, l.arrowBase])],
|
|
1803
|
+
...l.floatingOptions?.middleware ?? []
|
|
1804
|
+
], [
|
|
1805
|
+
m,
|
|
1806
|
+
l,
|
|
1807
|
+
y,
|
|
1808
|
+
D,
|
|
1809
|
+
U
|
|
1810
|
+
]), O = Et({
|
|
1811
|
+
...m ? { elements: { reference: x } } : {},
|
|
1812
|
+
placement: D,
|
|
1813
|
+
strategy: G,
|
|
1814
|
+
middleware: M
|
|
1815
|
+
}), S = Et({
|
|
1816
|
+
strategy: G,
|
|
1817
|
+
placement: l.beaconPlacement ?? (y || m ? "bottom" : l.placement),
|
|
1818
|
+
middleware: J(() => [yt(l.floatingOptions?.beaconOptions?.offset ?? -18)], [l.floatingOptions?.beaconOptions?.offset]),
|
|
1819
|
+
whileElementsMounted: Tt
|
|
1820
|
+
});
|
|
1821
|
+
a.current = O.middlewareData, v.current = S.middlewareData, F(() => {
|
|
1822
|
+
const { floating: L, reference: j } = O.elements;
|
|
1823
|
+
if (!(!j || !L || i !== d.TOOLTIP))
|
|
1824
|
+
return Tt(j, L, O.update, l.floatingOptions?.autoUpdate);
|
|
1825
|
+
}, [
|
|
1826
|
+
i,
|
|
1827
|
+
O.update,
|
|
1828
|
+
l.floatingOptions?.autoUpdate,
|
|
1829
|
+
l.target,
|
|
1830
|
+
O.elements
|
|
1831
|
+
]), F(() => {
|
|
1832
|
+
!m && h && O.refs.setReference(h), h && S.refs.setReference(h);
|
|
1833
|
+
}, [
|
|
1834
|
+
S.refs,
|
|
1835
|
+
m,
|
|
1836
|
+
h,
|
|
1837
|
+
O.refs
|
|
1838
|
+
]), F(() => {
|
|
1839
|
+
O.isPositioned && s("tooltip", {
|
|
1840
|
+
placement: O.placement,
|
|
1841
|
+
x: O.x ?? 0,
|
|
1842
|
+
y: O.y ?? 0,
|
|
1843
|
+
middlewareData: a.current
|
|
1844
|
+
});
|
|
1845
|
+
}, [
|
|
1846
|
+
s,
|
|
1847
|
+
O.isPositioned,
|
|
1848
|
+
O.placement,
|
|
1849
|
+
O.x,
|
|
1850
|
+
O.y
|
|
1851
|
+
]), F(() => {
|
|
1852
|
+
S.isPositioned && s("beacon", {
|
|
1853
|
+
placement: S.placement,
|
|
1854
|
+
x: S.x ?? 0,
|
|
1855
|
+
y: S.y ?? 0,
|
|
1856
|
+
middlewareData: v.current
|
|
1857
|
+
});
|
|
1858
|
+
}, [
|
|
1859
|
+
s,
|
|
1860
|
+
S.isPositioned,
|
|
1861
|
+
S.placement,
|
|
1862
|
+
S.x,
|
|
1863
|
+
S.y
|
|
1864
|
+
]);
|
|
1865
|
+
const b = l.zIndex + 1, C = Q((L) => {
|
|
1866
|
+
L.type === "mouseenter" && l.beaconTrigger !== "hover" || T({
|
|
1867
|
+
lifecycle: d.TOOLTIP_BEFORE,
|
|
1868
|
+
positioned: !1
|
|
1869
|
+
});
|
|
1870
|
+
}, [l.beaconTrigger, T]), A = Q((L) => {
|
|
1871
|
+
L && (O.refs.setFloating(L), p(L));
|
|
1872
|
+
}, [O.refs, p]), { arrow: B, floater: I } = l.styles;
|
|
1873
|
+
let k = null;
|
|
1874
|
+
if (i === d.TOOLTIP || i === d.TOOLTIP_BEFORE) {
|
|
1875
|
+
const L = St({
|
|
1876
|
+
...I,
|
|
1877
|
+
...O.floatingStyles,
|
|
1878
|
+
zIndex: b,
|
|
1879
|
+
opacity: c && O.isPositioned ? 1 : 0,
|
|
1880
|
+
...!c && { transition: "none" }
|
|
1881
|
+
});
|
|
1882
|
+
k = /* @__PURE__ */ E.createElement("div", {
|
|
1883
|
+
ref: A,
|
|
1884
|
+
className: "react-joyride__floater",
|
|
1885
|
+
"data-testid": "floater",
|
|
1886
|
+
id: `react-joyride-step-${o}`,
|
|
1887
|
+
style: L
|
|
1888
|
+
}, /* @__PURE__ */ E.createElement(He, {
|
|
1889
|
+
continuous: e,
|
|
1890
|
+
controls: n,
|
|
1891
|
+
index: o,
|
|
1892
|
+
isLastStep: o + 1 === f,
|
|
1893
|
+
size: f,
|
|
1894
|
+
step: l
|
|
1895
|
+
}), !m && !l.floatingOptions?.hideArrow && /* @__PURE__ */ E.createElement($e, {
|
|
1896
|
+
arrowComponent: l.arrowComponent,
|
|
1897
|
+
arrowRef: P,
|
|
1898
|
+
base: l.arrowBase,
|
|
1899
|
+
placement: O.placement,
|
|
1900
|
+
position: O.middlewareData.arrow,
|
|
1901
|
+
size: l.arrowSize,
|
|
1902
|
+
styles: B
|
|
1903
|
+
}));
|
|
1904
|
+
} else (i === d.BEACON || i === d.BEACON_BEFORE) && (k = /* @__PURE__ */ E.createElement("div", {
|
|
1905
|
+
ref: S.refs.setFloating,
|
|
1906
|
+
className: "react-joyride__floater",
|
|
1907
|
+
"data-testid": "floater-beacon",
|
|
1908
|
+
id: `react-joyride-step-${o}-beacon`,
|
|
1909
|
+
style: St({
|
|
1910
|
+
...S.floatingStyles,
|
|
1911
|
+
zIndex: b
|
|
1912
|
+
})
|
|
1913
|
+
}, /* @__PURE__ */ E.createElement(Ue, {
|
|
1914
|
+
beaconComponent: l.beaconComponent,
|
|
1915
|
+
continuous: e,
|
|
1916
|
+
index: o,
|
|
1917
|
+
isLastStep: o + 1 === f,
|
|
1918
|
+
locale: l.locale,
|
|
1919
|
+
nonce: r,
|
|
1920
|
+
onInteract: C,
|
|
1921
|
+
shouldFocus: g,
|
|
1922
|
+
size: f,
|
|
1923
|
+
step: l,
|
|
1924
|
+
styles: l.styles
|
|
1925
|
+
})));
|
|
1926
|
+
return /* @__PURE__ */ E.createElement(Dt, { element: u }, k);
|
|
1927
|
+
}
|
|
1928
|
+
function Ke(t) {
|
|
1929
|
+
const { continuous: e, controls: n, index: o, lifecycle: i, nonce: r, portalElement: c, setPositionData: u, shouldScroll: s, size: p, step: g, updateState: f } = t, [l, h] = nt(null);
|
|
1930
|
+
_e(g.disableFocusTrap ? null : l, "[data-action=primary]");
|
|
1931
|
+
const T = V(g.target), P = i === d.TOOLTIP;
|
|
1932
|
+
return !Bt(g) || !z.domElement(T) ? null : /* @__PURE__ */ E.createElement(We, {
|
|
1933
|
+
key: `JoyrideStep-${o}`,
|
|
1934
|
+
continuous: e,
|
|
1935
|
+
controls: n,
|
|
1936
|
+
index: o,
|
|
1937
|
+
lifecycle: i,
|
|
1938
|
+
nonce: r,
|
|
1939
|
+
open: P,
|
|
1940
|
+
portalElement: c,
|
|
1941
|
+
setPositionData: u,
|
|
1942
|
+
setTooltipRef: h,
|
|
1943
|
+
shouldScroll: s,
|
|
1944
|
+
size: p,
|
|
1945
|
+
step: g,
|
|
1946
|
+
target: T,
|
|
1947
|
+
updateState: f
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
function Ge({ controls: t, mergedProps: e, state: n, step: o, store: i }) {
|
|
1951
|
+
const { continuous: r, debug: c, nonce: u, portalElement: s, scrollToFirstStep: p } = e, g = Pe(s), { index: f, lifecycle: l, status: h } = n, T = h === w.RUNNING, [P, v] = nt(!1), a = N(null), m = o?.loaderDelay ?? 0;
|
|
1952
|
+
F(() => (n.waiting ? m === 0 ? v(!0) : a.current = setTimeout(() => {
|
|
1953
|
+
v(!0);
|
|
1954
|
+
}, m) : v(!1), () => {
|
|
1955
|
+
a.current && (clearTimeout(a.current), a.current = null);
|
|
1956
|
+
}), [m, n.waiting]), F(() => {
|
|
1957
|
+
if (!T) return;
|
|
1958
|
+
const _ = ($) => {
|
|
1959
|
+
!o || l !== d.TOOLTIP || $.key === "Escape" && o.dismissKeyAction && (o.dismissKeyAction === "next" ? t.next(K.KEYBOARD) : o.dismissKeyAction === "replay" ? t.replay(K.KEYBOARD) : t.close(K.KEYBOARD));
|
|
1960
|
+
};
|
|
1961
|
+
return document.body.addEventListener("keydown", _, { passive: !0 }), () => {
|
|
1962
|
+
document.body.removeEventListener("keydown", _);
|
|
1963
|
+
};
|
|
1964
|
+
}, [
|
|
1965
|
+
t,
|
|
1966
|
+
T,
|
|
1967
|
+
l,
|
|
1968
|
+
o
|
|
1969
|
+
]);
|
|
1970
|
+
const y = Q(() => {
|
|
1971
|
+
switch (o?.overlayClickAction) {
|
|
1972
|
+
case "close":
|
|
1973
|
+
t.close(K.OVERLAY);
|
|
1974
|
+
break;
|
|
1975
|
+
case "next":
|
|
1976
|
+
t.next(K.OVERLAY);
|
|
1977
|
+
break;
|
|
1978
|
+
case "replay":
|
|
1979
|
+
t.replay(K.OVERLAY);
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
}, [t, o?.overlayClickAction]);
|
|
1983
|
+
if (!o || !T) return null;
|
|
1984
|
+
const x = n.action === R.START && !o.skipBeacon && o.placement !== "center";
|
|
1985
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, l !== d.INIT && /* @__PURE__ */ E.createElement(Ke, {
|
|
1986
|
+
...n,
|
|
1987
|
+
continuous: r,
|
|
1988
|
+
controls: t,
|
|
1989
|
+
debug: c,
|
|
1990
|
+
nonce: u,
|
|
1991
|
+
portalElement: g,
|
|
1992
|
+
setPositionData: i.current.setPositionData,
|
|
1993
|
+
shouldScroll: !o.skipScroll && (f !== 0 || p),
|
|
1994
|
+
step: o,
|
|
1995
|
+
updateState: i.current.updateState
|
|
1996
|
+
}), /* @__PURE__ */ E.createElement(Dt, { element: g }, /* @__PURE__ */ E.createElement(E.Fragment, null, P && /* @__PURE__ */ E.createElement(Ie, {
|
|
1997
|
+
nonce: u,
|
|
1998
|
+
step: o
|
|
1999
|
+
}), !x && /* @__PURE__ */ E.createElement(ke, {
|
|
2000
|
+
...o,
|
|
2001
|
+
continuous: r,
|
|
2002
|
+
lifecycle: l,
|
|
2003
|
+
onClickOverlay: y,
|
|
2004
|
+
portalElement: s ? g : null,
|
|
2005
|
+
scrolling: n.scrolling,
|
|
2006
|
+
waiting: n.waiting
|
|
2007
|
+
}))));
|
|
2008
|
+
}
|
|
2009
|
+
function Ve(t) {
|
|
2010
|
+
const { controls: e, failures: n, mergedProps: o, state: i, step: r, store: c } = we(t);
|
|
2011
|
+
return {
|
|
2012
|
+
controls: e,
|
|
2013
|
+
failures: n,
|
|
2014
|
+
on: Q((u, s) => c.current.on(u, s), [c]),
|
|
2015
|
+
state: J(() => at(i, "positioned"), [i]),
|
|
2016
|
+
step: r,
|
|
2017
|
+
Tour: pt() ? /* @__PURE__ */ E.createElement(Ge, {
|
|
2018
|
+
controls: e,
|
|
2019
|
+
mergedProps: o,
|
|
2020
|
+
state: i,
|
|
2021
|
+
step: r,
|
|
2022
|
+
store: c
|
|
2023
|
+
}) : null
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
function Je(t) {
|
|
2027
|
+
const { Tour: e } = Ve(t);
|
|
2028
|
+
return e;
|
|
2029
|
+
}
|
|
2030
|
+
function an(t) {
|
|
2031
|
+
return pt() ? /* @__PURE__ */ E.createElement(Je, t) : null;
|
|
2032
|
+
}
|
|
2033
|
+
export {
|
|
2034
|
+
R as ACTIONS,
|
|
2035
|
+
H as EVENTS,
|
|
2036
|
+
an as Joyride,
|
|
2037
|
+
d as LIFECYCLE,
|
|
2038
|
+
K as ORIGIN,
|
|
2039
|
+
te as PORTAL_ELEMENT_ID,
|
|
2040
|
+
w as STATUS,
|
|
2041
|
+
At as defaultLocale,
|
|
2042
|
+
qt as defaultOptions,
|
|
2043
|
+
Ve as useJoyride
|
|
2044
|
+
};
|