@seamly/web-ui 24.2.1-beta.1 → 24.3.0-alpha.1
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/build/dist/lib/index.debug.js +2492 -2189
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +461 -447
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +911 -498
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +5 -3
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +4681 -22580
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -2
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/package.json +19 -19
- package/src/javascripts/{index.ts → core/index.ts} +32 -0
- package/src/javascripts/core/ui/components/layout/icon.tsx +102 -0
- package/src/javascripts/{ui → core/ui}/components/view/index.tsx +1 -1
- package/src/javascripts/{ui → core/ui}/hooks/event-bus-hooks.ts +1 -1
- package/src/javascripts/style-guide/components/app.tsx +8 -5
- package/src/javascripts/style-guide/components/links.tsx +2 -2
- package/src/javascripts/style-guide/components/static-core.tsx +12 -15
- package/src/javascripts/style-guide/components/view.tsx +2 -3
- package/src/javascripts/style-guide/index.ts +5 -0
- package/src/javascripts/style-guide/states.ts +6 -4
- package/src/javascripts/style-guide/style-guide-engine.tsx +1 -2
- package/src/javascripts/style-guide/style-guide-external-api.ts +1 -1
- package/webpack/config.package.js +9 -58
- package/webpack/defaults.js +7 -27
- package/webpack/parts/dev-server.js +3 -3
- package/build/dist/lib/components.js +0 -21127
- package/build/dist/lib/components.js.map +0 -1
- package/build/dist/lib/components.min.js +0 -3
- package/build/dist/lib/components.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/components.min.js.map +0 -1
- package/build/dist/lib/config.js +0 -58
- package/build/dist/lib/config.js.map +0 -1
- package/build/dist/lib/config.min.js +0 -2
- package/build/dist/lib/config.min.js.map +0 -1
- package/build/dist/lib/contexts.js +0 -123
- package/build/dist/lib/contexts.js.map +0 -1
- package/build/dist/lib/contexts.min.js +0 -2
- package/build/dist/lib/contexts.min.js.map +0 -1
- package/build/dist/lib/hooks.js +0 -14045
- package/build/dist/lib/hooks.js.map +0 -1
- package/build/dist/lib/hooks.min.js +0 -3
- package/build/dist/lib/hooks.min.js.LICENSE.txt +0 -9
- package/build/dist/lib/hooks.min.js.map +0 -1
- package/build/dist/lib/standalone.js +0 -22386
- package/build/dist/lib/standalone.js.map +0 -1
- package/build/dist/lib/standalone.min.js +0 -3
- package/build/dist/lib/standalone.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/standalone.min.js.map +0 -1
- package/build/dist/lib/storage.js +0 -269
- package/build/dist/lib/storage.js.map +0 -1
- package/build/dist/lib/storage.min.js +0 -3
- package/build/dist/lib/storage.min.js.LICENSE.txt +0 -1
- package/build/dist/lib/storage.min.js.map +0 -1
- package/build/dist/lib/style-guide.min.js.LICENSE.txt +0 -19
- package/build/dist/lib/utils.js +0 -23303
- package/build/dist/lib/utils.js.map +0 -1
- package/build/dist/lib/utils.min.js +0 -3
- package/build/dist/lib/utils.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/utils.min.js.map +0 -1
- package/src/javascripts/package/components.ts +0 -25
- package/src/javascripts/package/config.ts +0 -1
- package/src/javascripts/package/contexts.ts +0 -7
- package/src/javascripts/package/hooks.ts +0 -31
- package/src/javascripts/package/storage.ts +0 -3
- package/src/javascripts/package/utils.ts +0 -20
- package/src/javascripts/style-guide.ts +0 -5
- package/src/javascripts/ui/components/layout/icon.tsx +0 -102
- /package/src/javascripts/{api → core/api}/api.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/asyncapi.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/channel.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/conversation-connector.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-api-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-base-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-configuration-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-general-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-offline-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-session-expired-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-unauthorized-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-unavailable-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/index.ts +0 -0
- /package/src/javascripts/{api → core/api}/utils.ts +0 -0
- /package/src/javascripts/{config.ts → core/config.ts} +0 -0
- /package/src/javascripts/{config.types.ts → core/config.types.ts} +0 -0
- /package/src/javascripts/{domains → core/domains}/app/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/app.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/errors/index.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/context.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/forms.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/provider.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/utils.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/i18n.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/options/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/redux/create-debounced-async-thunk.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/redux/redux.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/index.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/store.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-button.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/index.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/translation-option.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/translation-options.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/translation-status.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/translations.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/constants.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/utils.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/visibility.types.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/css.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/debug.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/engine/index.tsx +0 -0
- /package/src/javascripts/{lib → core/lib}/external-api/index.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/external-api/initialize-api.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/id.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/mutex.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/preact-debug.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/split-url-params.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/index.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/app-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/app-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/cookie-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/cookie-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/session-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/session-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/url-helpers.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/app-options/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-app.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-status/chat-status-action.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-status/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/component-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/component-filter.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/conversation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/card-component.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/card-message.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/components/controls.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/components/pagination.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-message/components/slide.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-message/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/chat-scroll-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/chat-scroll-provider.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/unread-messages-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/choice-prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/conversation-suggestions.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/cta.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/default.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/new-translation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/time-indicator.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/event-participant.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/event.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/hooks/use-event-link-click-handler.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/hooks/use-formatted-date.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/image-lightbox.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/image.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/participant.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/splash.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/text.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/translation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/upload.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/video.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event-divider.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/loader.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/message-container.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/use-chat-scroll.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-activity-event-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-activity-monitor.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-api-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-chat.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-core.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-event-subscriber.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-file-upload-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-file-upload.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-idle-detach-counter.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-initializer.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-instance-functions-loader.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-live-region-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-live-region.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-new-notifications.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-read-state.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/abort-transaction-button/abort-transaction-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/entry-container.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/text-entry-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload/file-upload-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload-toggle.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/error.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/file-input.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/input.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/label.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/wrapper.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/agent-info.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/chat-frame.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/chat.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/collapsed-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/continue-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/header.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/interrupt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/pre-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/privacy-disclaimer.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options-frame.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/transcript/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/transcript/transcript-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/suggestions-item.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/suggestions-list.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/translation-proposal/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/app-view.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/inline-view.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/collapse-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/window-open-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/idle-detach-warning.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/resume-conversation-prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/in-out-transition.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/lightbox.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/modal.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/upload-progress.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/component-helper-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/file-upload-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/focus-helper-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/live-region-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-api-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-entry-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-option-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-state-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/sounds/beep.mp3 +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-click-outside.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-debounce.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-event-component-mapping.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-interval.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-notifications.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-actions.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-activity-event-handler.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-chat.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-commands.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-conversation.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-idle-detach-countdown.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-resume-conversation-prompt.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-session-expired-command.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-single-file-upload.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-timeout.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/utility-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/form-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/general-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/seamly-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/seamly-utils.types.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/validations.ts +0 -0
package/build/dist/lib/index.js
CHANGED
|
@@ -14,40 +14,40 @@ module.exports=function(n){var t={},e=[];n=n||this,n.on=function(e,r,l){return(t
|
|
|
14
14
|
"use strict";
|
|
15
15
|
__webpack_require__.r(__webpack_exports__);
|
|
16
16
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17
|
-
/* harmony export */ Children: () => (/* binding */
|
|
17
|
+
/* harmony export */ Children: () => (/* binding */ O),
|
|
18
18
|
/* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
|
|
19
19
|
/* harmony export */ Fragment: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
|
|
20
|
-
/* harmony export */ PureComponent: () => (/* binding */
|
|
21
|
-
/* harmony export */ StrictMode: () => (/* binding */
|
|
22
|
-
/* harmony export */ Suspense: () => (/* binding */
|
|
23
|
-
/* harmony export */ SuspenseList: () => (/* binding */
|
|
24
|
-
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */
|
|
25
|
-
/* harmony export */ cloneElement: () => (/* binding */
|
|
20
|
+
/* harmony export */ PureComponent: () => (/* binding */ N),
|
|
21
|
+
/* harmony export */ StrictMode: () => (/* binding */ Cn),
|
|
22
|
+
/* harmony export */ Suspense: () => (/* binding */ P),
|
|
23
|
+
/* harmony export */ SuspenseList: () => (/* binding */ B),
|
|
24
|
+
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ hn),
|
|
25
|
+
/* harmony export */ cloneElement: () => (/* binding */ _n),
|
|
26
26
|
/* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
|
|
27
27
|
/* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
|
|
28
|
-
/* harmony export */ createFactory: () => (/* binding */
|
|
29
|
-
/* harmony export */ createPortal: () => (/* binding */
|
|
28
|
+
/* harmony export */ createFactory: () => (/* binding */ dn),
|
|
29
|
+
/* harmony export */ createPortal: () => (/* binding */ $),
|
|
30
30
|
/* harmony export */ createRef: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
|
|
31
|
-
/* harmony export */ "default": () => (/* binding */
|
|
32
|
-
/* harmony export */ findDOMNode: () => (/* binding */
|
|
33
|
-
/* harmony export */ flushSync: () => (/* binding */
|
|
34
|
-
/* harmony export */ forwardRef: () => (/* binding */
|
|
35
|
-
/* harmony export */ hydrate: () => (/* binding */
|
|
36
|
-
/* harmony export */ isElement: () => (/* binding */
|
|
37
|
-
/* harmony export */ isFragment: () => (/* binding */
|
|
38
|
-
/* harmony export */ isMemo: () => (/* binding */
|
|
39
|
-
/* harmony export */ isValidElement: () => (/* binding */
|
|
40
|
-
/* harmony export */ lazy: () => (/* binding */
|
|
41
|
-
/* harmony export */ memo: () => (/* binding */
|
|
42
|
-
/* harmony export */ render: () => (/* binding */
|
|
43
|
-
/* harmony export */ startTransition: () => (/* binding */
|
|
44
|
-
/* harmony export */ unmountComponentAtNode: () => (/* binding */
|
|
45
|
-
/* harmony export */ unstable_batchedUpdates: () => (/* binding */
|
|
46
|
-
/* harmony export */ useDeferredValue: () => (/* binding */
|
|
47
|
-
/* harmony export */ useInsertionEffect: () => (/* binding */
|
|
48
|
-
/* harmony export */ useSyncExternalStore: () => (/* binding */
|
|
49
|
-
/* harmony export */ useTransition: () => (/* binding */
|
|
50
|
-
/* harmony export */ version: () => (/* binding */
|
|
31
|
+
/* harmony export */ "default": () => (/* binding */ Rn),
|
|
32
|
+
/* harmony export */ findDOMNode: () => (/* binding */ Sn),
|
|
33
|
+
/* harmony export */ flushSync: () => (/* binding */ En),
|
|
34
|
+
/* harmony export */ forwardRef: () => (/* binding */ D),
|
|
35
|
+
/* harmony export */ hydrate: () => (/* binding */ tn),
|
|
36
|
+
/* harmony export */ isElement: () => (/* binding */ xn),
|
|
37
|
+
/* harmony export */ isFragment: () => (/* binding */ mn),
|
|
38
|
+
/* harmony export */ isMemo: () => (/* binding */ yn),
|
|
39
|
+
/* harmony export */ isValidElement: () => (/* binding */ pn),
|
|
40
|
+
/* harmony export */ lazy: () => (/* binding */ z),
|
|
41
|
+
/* harmony export */ memo: () => (/* binding */ M),
|
|
42
|
+
/* harmony export */ render: () => (/* binding */ nn),
|
|
43
|
+
/* harmony export */ startTransition: () => (/* binding */ R),
|
|
44
|
+
/* harmony export */ unmountComponentAtNode: () => (/* binding */ bn),
|
|
45
|
+
/* harmony export */ unstable_batchedUpdates: () => (/* binding */ gn),
|
|
46
|
+
/* harmony export */ useDeferredValue: () => (/* binding */ w),
|
|
47
|
+
/* harmony export */ useInsertionEffect: () => (/* binding */ I),
|
|
48
|
+
/* harmony export */ useSyncExternalStore: () => (/* binding */ C),
|
|
49
|
+
/* harmony export */ useTransition: () => (/* binding */ k),
|
|
50
|
+
/* harmony export */ version: () => (/* binding */ vn)
|
|
51
51
|
/* harmony export */ });
|
|
52
52
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8785);
|
|
53
53
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -56,28 +56,100 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56
56
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
57
57
|
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isElement","isFragment","isMemo","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
|
|
58
58
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
59
|
-
function g(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({t:{__:e,u:t}}),u=r[0].t,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.u=t,C(u)&&o({t:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return C(u)&&o({t:u}),n(function(){C(u)&&o({t:u})})},[n]),e}function C(n){var t,e,r=n.u,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}function x(n){n()}function R(n){return n}function w(){return[!1,x]}var k=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function I(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(I.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(n,t){return g(this.props,n)||g(this.state,t)};var M=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),M&&M(n)};var T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function A(n){function t(t){if(!("ref"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=T,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var D=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},L={map:D,forEach:D,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},O=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var F=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function U(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)})),n}function V(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function W(){this.__u=0,this.o=null,this.__b=null}function P(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function j(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function z(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),F&&F(n)},(W.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=P(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=V(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},W.prototype.componentWillUnmount=function(){this.o=[]},W.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=U(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var B=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function H(n){return this.getChildContext=function(){return n.context},n.children}function Z(n){var e=this,r=n.h;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),e.v||(e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.h.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(H,{context:e.context},n.__v),e.v)}function Y(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{__v:n,h:e});return r.containerInfo=e,r}(z.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=P(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),B(t,n,r)):u()};e?e(o):o()}},z.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){B(n,e,t)})};var $="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,G=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,J=/[A-Z0-9]/g,K="undefined"!=typeof document,Q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function X(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function nn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var tn=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function en(){}function rn(){return this.cancelBubble}function un(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return tn&&(n=tn(n)),n.persist=en,n.isPropagationStopped=rn,n.isDefaultPrevented=un,n.nativeEvent=n};var on,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||K&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===f&&"no"===c?c=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||Q(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":G.test(i)&&(i=f):f=i="oninput":o&&q.test(i)?i=i.replace(J,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",cn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=$,fn&&fn(n)};var ln=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){ln&&ln(n),on=n.__c};var an=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){an&&an(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),on=null};var sn={ReactCurrentDispatcher:{current:{readContext:function(n){return on.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:R,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:k,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:E,useTransition:w}}},hn="18.3.1";function vn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function dn(n){return!!n&&n.$$typeof===$}function pn(n){return dn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function mn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function yn(n){return dn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function _n(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function bn(n){return n&&(n.base||1===n.nodeType&&n)||null}var Sn=function(n,t){return n(t)},gn=function(n,t){return n(t)},En=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,Cn=dn,xn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:k,useTransition:w,useDeferredValue:R,useSyncExternalStore:E,startTransition:x,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:L,render:X,hydrate:nn,unmountComponentAtNode:_n,createPortal:Y,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:vn,cloneElement:yn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:dn,isElement:Cn,isFragment:pn,isMemo:mn,findDOMNode:bn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:I,memo:N,forwardRef:A,flushSync:gn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:W,SuspenseList:z,lazy:j,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sn};
|
|
59
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function C(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({t:{__:e,u:t}}),u=r[0].t,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.u=t,x(u)&&o({t:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return x(u)&&o({t:u}),n(function(){x(u)&&o({t:u})})},[n]),e}function x(n){var t,e,r=n.u,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}function R(n){n()}function w(n){return n}function k(){return[!1,R]}var I=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function N(n,t){this.props=n,this.context=t}function M(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(N.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,N.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=A,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var L=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:L,forEach:L,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},F=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);F(n,t,e,r)};var U=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null}function j(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function z(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function B(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(P.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.h;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),e.v||(e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.h.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{context:e.context},n.__v),e.v)}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Y,{__v:n,h:e});return r.containerInfo=e,r}(B.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u()};e?e(o):o()}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t)})};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function rn(){}function un(){return this.cancelBubble}function on(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return en&&(n=en(n)),n.persist=rn,n.isPropagationStopped=un,n.isDefaultPrevented=on,n.nativeEvent=n};var cn,ln={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===l&&"no"===c?c=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":J.test(i)&&(i=l):l=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===l&&u[i=l]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",ln)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=q,fn&&fn(n)};var an=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){an&&an(n),cn=n.__c};var sn=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){sn&&sn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),cn=null};var hn={ReactCurrentDispatcher:{current:{readContext:function(n){return cn.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:w,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:I,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:C,useTransition:k}}},vn="18.3.1";function dn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function pn(n){return!!n&&n.$$typeof===q}function mn(n){return pn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function yn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function _n(n){return pn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function bn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function Sn(n){return n&&(n.base||1===n.nodeType&&n)||null}var gn=function(n,t){return n(t)},En=function(n,t){return n(t)},Cn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,xn=pn,Rn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:R,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:O,render:nn,hydrate:tn,unmountComponentAtNode:bn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:dn,cloneElement:_n,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:pn,isElement:xn,isFragment:mn,isMemo:yn,findDOMNode:Sn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:N,memo:M,forwardRef:D,flushSync:En,unstable_batchedUpdates:gn,StrictMode:Cn,Suspense:P,SuspenseList:B,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn};
|
|
60
60
|
//# sourceMappingURL=compat.module.js.map
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
/***/ }),
|
|
64
64
|
|
|
65
|
-
/***/
|
|
65
|
+
/***/ 5160:
|
|
66
66
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
67
67
|
|
|
68
68
|
"use strict";
|
|
69
69
|
/**
|
|
70
70
|
* @license React
|
|
71
|
-
* use-sync-external-store-with-selector.production.
|
|
71
|
+
* use-sync-external-store-with-selector.production.js
|
|
72
72
|
*
|
|
73
|
-
* Copyright (c)
|
|
73
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the MIT license found in the
|
|
76
76
|
* LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var React = __webpack_require__(7402);
|
|
81
|
+
function is(x, y) {
|
|
82
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
83
|
+
}
|
|
84
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
85
|
+
useSyncExternalStore = React.useSyncExternalStore,
|
|
86
|
+
useRef = React.useRef,
|
|
87
|
+
useEffect = React.useEffect,
|
|
88
|
+
useMemo = React.useMemo,
|
|
89
|
+
useDebugValue = React.useDebugValue;
|
|
90
|
+
exports.useSyncExternalStoreWithSelector = function (
|
|
91
|
+
subscribe,
|
|
92
|
+
getSnapshot,
|
|
93
|
+
getServerSnapshot,
|
|
94
|
+
selector,
|
|
95
|
+
isEqual
|
|
96
|
+
) {
|
|
97
|
+
var instRef = useRef(null);
|
|
98
|
+
if (null === instRef.current) {
|
|
99
|
+
var inst = { hasValue: !1, value: null };
|
|
100
|
+
instRef.current = inst;
|
|
101
|
+
} else inst = instRef.current;
|
|
102
|
+
instRef = useMemo(
|
|
103
|
+
function () {
|
|
104
|
+
function memoizedSelector(nextSnapshot) {
|
|
105
|
+
if (!hasMemo) {
|
|
106
|
+
hasMemo = !0;
|
|
107
|
+
memoizedSnapshot = nextSnapshot;
|
|
108
|
+
nextSnapshot = selector(nextSnapshot);
|
|
109
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
110
|
+
var currentSelection = inst.value;
|
|
111
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
112
|
+
return (memoizedSelection = currentSelection);
|
|
113
|
+
}
|
|
114
|
+
return (memoizedSelection = nextSnapshot);
|
|
115
|
+
}
|
|
116
|
+
currentSelection = memoizedSelection;
|
|
117
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
118
|
+
var nextSelection = selector(nextSnapshot);
|
|
119
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
120
|
+
return (memoizedSnapshot = nextSnapshot), currentSelection;
|
|
121
|
+
memoizedSnapshot = nextSnapshot;
|
|
122
|
+
return (memoizedSelection = nextSelection);
|
|
123
|
+
}
|
|
124
|
+
var hasMemo = !1,
|
|
125
|
+
memoizedSnapshot,
|
|
126
|
+
memoizedSelection,
|
|
127
|
+
maybeGetServerSnapshot =
|
|
128
|
+
void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
129
|
+
return [
|
|
130
|
+
function () {
|
|
131
|
+
return memoizedSelector(getSnapshot());
|
|
132
|
+
},
|
|
133
|
+
null === maybeGetServerSnapshot
|
|
134
|
+
? void 0
|
|
135
|
+
: function () {
|
|
136
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
137
|
+
}
|
|
138
|
+
];
|
|
139
|
+
},
|
|
140
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
141
|
+
);
|
|
142
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
143
|
+
useEffect(
|
|
144
|
+
function () {
|
|
145
|
+
inst.hasValue = !0;
|
|
146
|
+
inst.value = value;
|
|
147
|
+
},
|
|
148
|
+
[value]
|
|
149
|
+
);
|
|
150
|
+
useDebugValue(value);
|
|
151
|
+
return value;
|
|
152
|
+
};
|
|
81
153
|
|
|
82
154
|
|
|
83
155
|
/***/ }),
|
|
@@ -89,7 +161,7 @@ t(function(){f.hasValue=!0;f.value=d},[d]);v(d);return d};
|
|
|
89
161
|
|
|
90
162
|
|
|
91
163
|
if (true) {
|
|
92
|
-
module.exports = __webpack_require__(
|
|
164
|
+
module.exports = __webpack_require__(5160);
|
|
93
165
|
} else {}
|
|
94
166
|
|
|
95
167
|
|
|
@@ -659,7 +731,7 @@ module.exports = !fails(function () {
|
|
|
659
731
|
var NATIVE_BIND = __webpack_require__(616);
|
|
660
732
|
|
|
661
733
|
var call = Function.prototype.call;
|
|
662
|
-
|
|
734
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
663
735
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
664
736
|
return call.apply(call, arguments);
|
|
665
737
|
};
|
|
@@ -720,6 +792,7 @@ var NATIVE_BIND = __webpack_require__(616);
|
|
|
720
792
|
|
|
721
793
|
var FunctionPrototype = Function.prototype;
|
|
722
794
|
var call = FunctionPrototype.call;
|
|
795
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
723
796
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
724
797
|
|
|
725
798
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
@@ -1950,7 +2023,19 @@ var createSetLike = function (size) {
|
|
|
1950
2023
|
};
|
|
1951
2024
|
};
|
|
1952
2025
|
|
|
1953
|
-
|
|
2026
|
+
var createSetLikeWithInfinitySize = function (size) {
|
|
2027
|
+
return {
|
|
2028
|
+
size: size,
|
|
2029
|
+
has: function () {
|
|
2030
|
+
return true;
|
|
2031
|
+
},
|
|
2032
|
+
keys: function () {
|
|
2033
|
+
throw new Error('e');
|
|
2034
|
+
}
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
module.exports = function (name, callback) {
|
|
1954
2039
|
var Set = getBuiltIn('Set');
|
|
1955
2040
|
try {
|
|
1956
2041
|
new Set()[name](createSetLike(0));
|
|
@@ -1960,7 +2045,18 @@ module.exports = function (name) {
|
|
|
1960
2045
|
new Set()[name](createSetLike(-1));
|
|
1961
2046
|
return false;
|
|
1962
2047
|
} catch (error2) {
|
|
1963
|
-
return true;
|
|
2048
|
+
if (!callback) return true;
|
|
2049
|
+
// early V8 implementation bug
|
|
2050
|
+
// https://issues.chromium.org/issues/351332634
|
|
2051
|
+
try {
|
|
2052
|
+
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
2053
|
+
return false;
|
|
2054
|
+
} catch (error) {
|
|
2055
|
+
var set = new Set();
|
|
2056
|
+
set.add(1);
|
|
2057
|
+
set.add(2);
|
|
2058
|
+
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
2059
|
+
}
|
|
1964
2060
|
}
|
|
1965
2061
|
} catch (error) {
|
|
1966
2062
|
return false;
|
|
@@ -2072,10 +2168,10 @@ var SHARED = '__core-js_shared__';
|
|
|
2072
2168
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
2073
2169
|
|
|
2074
2170
|
(store.versions || (store.versions = [])).push({
|
|
2075
|
-
version: '3.
|
|
2171
|
+
version: '3.40.0',
|
|
2076
2172
|
mode: IS_PURE ? 'pure' : 'global',
|
|
2077
|
-
copyright: '© 2014-
|
|
2078
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2173
|
+
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
2174
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE',
|
|
2079
2175
|
source: 'https://github.com/zloirock/core-js'
|
|
2080
2176
|
});
|
|
2081
2177
|
|
|
@@ -2468,9 +2564,13 @@ var $ = __webpack_require__(6518);
|
|
|
2468
2564
|
var difference = __webpack_require__(3440);
|
|
2469
2565
|
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
2470
2566
|
|
|
2567
|
+
var INCORRECT = !setMethodAcceptSetLike('difference', function (result) {
|
|
2568
|
+
return result.size === 0;
|
|
2569
|
+
});
|
|
2570
|
+
|
|
2471
2571
|
// `Set.prototype.difference` method
|
|
2472
2572
|
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
2473
|
-
$({ target: 'Set', proto: true, real: true, forced:
|
|
2573
|
+
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2474
2574
|
difference: difference
|
|
2475
2575
|
});
|
|
2476
2576
|
|
|
@@ -2487,8 +2587,10 @@ var fails = __webpack_require__(9039);
|
|
|
2487
2587
|
var intersection = __webpack_require__(8750);
|
|
2488
2588
|
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
2489
2589
|
|
|
2490
|
-
var INCORRECT = !setMethodAcceptSetLike('intersection'
|
|
2491
|
-
|
|
2590
|
+
var INCORRECT = !setMethodAcceptSetLike('intersection', function (result) {
|
|
2591
|
+
return result.size === 2 && result.has(1) && result.has(2);
|
|
2592
|
+
}) || fails(function () {
|
|
2593
|
+
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
2492
2594
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
2493
2595
|
});
|
|
2494
2596
|
|
|
@@ -2510,9 +2612,13 @@ var $ = __webpack_require__(6518);
|
|
|
2510
2612
|
var isDisjointFrom = __webpack_require__(4449);
|
|
2511
2613
|
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
2512
2614
|
|
|
2615
|
+
var INCORRECT = !setMethodAcceptSetLike('isDisjointFrom', function (result) {
|
|
2616
|
+
return !result;
|
|
2617
|
+
});
|
|
2618
|
+
|
|
2513
2619
|
// `Set.prototype.isDisjointFrom` method
|
|
2514
2620
|
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2515
|
-
$({ target: 'Set', proto: true, real: true, forced:
|
|
2621
|
+
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2516
2622
|
isDisjointFrom: isDisjointFrom
|
|
2517
2623
|
});
|
|
2518
2624
|
|
|
@@ -2528,9 +2634,13 @@ var $ = __webpack_require__(6518);
|
|
|
2528
2634
|
var isSubsetOf = __webpack_require__(3838);
|
|
2529
2635
|
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
2530
2636
|
|
|
2637
|
+
var INCORRECT = !setMethodAcceptSetLike('isSubsetOf', function (result) {
|
|
2638
|
+
return result;
|
|
2639
|
+
});
|
|
2640
|
+
|
|
2531
2641
|
// `Set.prototype.isSubsetOf` method
|
|
2532
2642
|
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2533
|
-
$({ target: 'Set', proto: true, real: true, forced:
|
|
2643
|
+
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2534
2644
|
isSubsetOf: isSubsetOf
|
|
2535
2645
|
});
|
|
2536
2646
|
|
|
@@ -2546,9 +2656,13 @@ var $ = __webpack_require__(6518);
|
|
|
2546
2656
|
var isSupersetOf = __webpack_require__(8527);
|
|
2547
2657
|
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
2548
2658
|
|
|
2659
|
+
var INCORRECT = !setMethodAcceptSetLike('isSupersetOf', function (result) {
|
|
2660
|
+
return !result;
|
|
2661
|
+
});
|
|
2662
|
+
|
|
2549
2663
|
// `Set.prototype.isSupersetOf` method
|
|
2550
2664
|
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
2551
|
-
$({ target: 'Set', proto: true, real: true, forced:
|
|
2665
|
+
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2552
2666
|
isSupersetOf: isSupersetOf
|
|
2553
2667
|
});
|
|
2554
2668
|
|
|
@@ -2806,11 +2920,30 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2806
2920
|
TextEntry: () => (/* reexport */ TextEntry),
|
|
2807
2921
|
Upload: () => (/* reexport */ entry_upload),
|
|
2808
2922
|
View: () => (/* reexport */ view),
|
|
2923
|
+
appReducer: () => (/* reexport */ app_slice),
|
|
2924
|
+
appStorageProvider: () => (/* reexport */ appStore),
|
|
2809
2925
|
calculateVisibility: () => (/* reexport */ calculateVisibility),
|
|
2810
2926
|
className: () => (/* reexport */ css_className),
|
|
2811
|
-
|
|
2927
|
+
configReducer: () => (/* reexport */ slice),
|
|
2928
|
+
cookieStorageProvider: () => (/* reexport */ cookieStore),
|
|
2929
|
+
"default": () => (/* binding */ core),
|
|
2812
2930
|
eventTypes: () => (/* reexport */ eventTypes),
|
|
2931
|
+
formsReducer: () => (/* reexport */ forms_slice),
|
|
2932
|
+
getSearchParamsByKeys: () => (/* reexport */ getSearchParamsByKeys),
|
|
2933
|
+
getUrlSearchParams: () => (/* reexport */ getUrlSearchParams),
|
|
2934
|
+
getUrlSearchString: () => (/* reexport */ getUrlSearchString),
|
|
2935
|
+
i18nReducer: () => (/* reexport */ i18n_slice),
|
|
2936
|
+
interruptReducer: () => (/* reexport */ interrupt_slice),
|
|
2813
2937
|
randomId: () => (/* reexport */ randomId),
|
|
2938
|
+
sessionStorageProvider: () => (/* reexport */ store),
|
|
2939
|
+
setConfig: () => (/* reexport */ setConfig),
|
|
2940
|
+
setInitialLocale: () => (/* reexport */ setInitialLocale),
|
|
2941
|
+
setParticipant: () => (/* reexport */ setParticipant),
|
|
2942
|
+
setPreChatEvents: () => (/* reexport */ setPreChatEvents),
|
|
2943
|
+
setTranslations: () => (/* reexport */ setTranslations),
|
|
2944
|
+
stateReducer: () => (/* reexport */ store_slice),
|
|
2945
|
+
timeout: () => (/* reexport */ timeout),
|
|
2946
|
+
translationReducer: () => (/* reexport */ translations_slice),
|
|
2814
2947
|
useChoicePrompt: () => (/* reexport */ useChoicePrompt),
|
|
2815
2948
|
useEvents: () => (/* reexport */ useEvents),
|
|
2816
2949
|
useGeneratedId: () => (/* reexport */ useGeneratedId),
|
|
@@ -2827,6 +2960,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2827
2960
|
useTranslatedEventData: () => (/* reexport */ useTranslatedEventData),
|
|
2828
2961
|
useTranslations: () => (/* reexport */ useTranslations),
|
|
2829
2962
|
useTranslationsContainer: () => (/* reexport */ useTranslationsContainer),
|
|
2963
|
+
visibilityReducer: () => (/* reexport */ visibility_slice),
|
|
2830
2964
|
visibilityStates: () => (/* reexport */ visibilityStates)
|
|
2831
2965
|
});
|
|
2832
2966
|
|
|
@@ -3442,7 +3576,7 @@ var ReconnectingWebSocket = /** @class */ (function () {
|
|
|
3442
3576
|
|
|
3443
3577
|
/* harmony default export */ const reconnecting_websocket_mjs = (ReconnectingWebSocket);
|
|
3444
3578
|
|
|
3445
|
-
;// ./src/javascripts/lib/split-url-params.ts
|
|
3579
|
+
;// ./src/javascripts/core/lib/split-url-params.ts
|
|
3446
3580
|
const splitUrlParams = url => {
|
|
3447
3581
|
const searchIndex = url.indexOf('?');
|
|
3448
3582
|
if (searchIndex < 0) {
|
|
@@ -3465,7 +3599,7 @@ const splitUrlParams = url => {
|
|
|
3465
3599
|
};
|
|
3466
3600
|
};
|
|
3467
3601
|
/* harmony default export */ const split_url_params = (splitUrlParams);
|
|
3468
|
-
;// ./src/javascripts/api/conversation-connector.ts
|
|
3602
|
+
;// ./src/javascripts/core/api/conversation-connector.ts
|
|
3469
3603
|
|
|
3470
3604
|
|
|
3471
3605
|
|
|
@@ -3634,7 +3768,7 @@ class ConversationConnector {
|
|
|
3634
3768
|
return () => subscribers.delete(callback);
|
|
3635
3769
|
}
|
|
3636
3770
|
}
|
|
3637
|
-
;// ./src/javascripts/api/errors/seamly-api-error.ts
|
|
3771
|
+
;// ./src/javascripts/core/api/errors/seamly-api-error.ts
|
|
3638
3772
|
// eslint-disable-next-line no-undef
|
|
3639
3773
|
|
|
3640
3774
|
class ApiError extends Error {
|
|
@@ -3646,7 +3780,7 @@ class ApiError extends Error {
|
|
|
3646
3780
|
this.status = options?.status;
|
|
3647
3781
|
}
|
|
3648
3782
|
}
|
|
3649
|
-
;// ./src/javascripts/api/errors/seamly-base-error.ts
|
|
3783
|
+
;// ./src/javascripts/core/api/errors/seamly-base-error.ts
|
|
3650
3784
|
function parseOriginalErrMsg(str) {
|
|
3651
3785
|
try {
|
|
3652
3786
|
const json = JSON.parse(str);
|
|
@@ -3678,7 +3812,7 @@ class SeamlyBaseError extends Error {
|
|
|
3678
3812
|
}
|
|
3679
3813
|
}
|
|
3680
3814
|
}
|
|
3681
|
-
;// ./src/javascripts/api/errors/seamly-configuration-error.ts
|
|
3815
|
+
;// ./src/javascripts/core/api/errors/seamly-configuration-error.ts
|
|
3682
3816
|
|
|
3683
3817
|
class SeamlyConfigurationError extends SeamlyBaseError {
|
|
3684
3818
|
constructor(originalError, ...params) {
|
|
@@ -3687,7 +3821,7 @@ class SeamlyConfigurationError extends SeamlyBaseError {
|
|
|
3687
3821
|
this.langKey = 'errors.configError';
|
|
3688
3822
|
}
|
|
3689
3823
|
}
|
|
3690
|
-
;// ./src/javascripts/api/errors/seamly-general-error.ts
|
|
3824
|
+
;// ./src/javascripts/core/api/errors/seamly-general-error.ts
|
|
3691
3825
|
|
|
3692
3826
|
class SeamlyGeneralError extends SeamlyBaseError {
|
|
3693
3827
|
constructor(originalError, ...params) {
|
|
@@ -3697,7 +3831,7 @@ class SeamlyGeneralError extends SeamlyBaseError {
|
|
|
3697
3831
|
this.action = 'reset';
|
|
3698
3832
|
}
|
|
3699
3833
|
}
|
|
3700
|
-
;// ./src/javascripts/api/errors/seamly-session-expired-error.ts
|
|
3834
|
+
;// ./src/javascripts/core/api/errors/seamly-session-expired-error.ts
|
|
3701
3835
|
|
|
3702
3836
|
class SeamlySessionExpiredError extends SeamlyBaseError {
|
|
3703
3837
|
constructor(originalError, ...params) {
|
|
@@ -3706,7 +3840,7 @@ class SeamlySessionExpiredError extends SeamlyBaseError {
|
|
|
3706
3840
|
this.action = 'reset';
|
|
3707
3841
|
}
|
|
3708
3842
|
}
|
|
3709
|
-
;// ./src/javascripts/api/errors/seamly-unauthorized-error.ts
|
|
3843
|
+
;// ./src/javascripts/core/api/errors/seamly-unauthorized-error.ts
|
|
3710
3844
|
|
|
3711
3845
|
class SeamlyUnauthorizedError extends SeamlyBaseError {
|
|
3712
3846
|
constructor(originalError, ...params) {
|
|
@@ -3716,12 +3850,12 @@ class SeamlyUnauthorizedError extends SeamlyBaseError {
|
|
|
3716
3850
|
this.action = 'reset';
|
|
3717
3851
|
}
|
|
3718
3852
|
}
|
|
3719
|
-
;// ./src/javascripts/lib/debug.ts
|
|
3853
|
+
;// ./src/javascripts/core/lib/debug.ts
|
|
3720
3854
|
const debug = false ? 0 : namespace => (...msg) =>
|
|
3721
3855
|
// eslint-disable-next-line
|
|
3722
3856
|
console.debug(namespace, ...msg);
|
|
3723
3857
|
/* harmony default export */ const lib_debug = (debug);
|
|
3724
|
-
;// ./src/javascripts/lib/store/index.ts
|
|
3858
|
+
;// ./src/javascripts/core/lib/store/index.ts
|
|
3725
3859
|
/* eslint-disable */
|
|
3726
3860
|
function objectStore(key, storageProvider) {
|
|
3727
3861
|
const sessionStore = storageProvider(key);
|
|
@@ -3747,7 +3881,7 @@ function objectStore(key, storageProvider) {
|
|
|
3747
3881
|
}
|
|
3748
3882
|
};
|
|
3749
3883
|
}
|
|
3750
|
-
;// ./src/javascripts/lib/store/providers/session-storage.ts
|
|
3884
|
+
;// ./src/javascripts/core/lib/store/providers/session-storage.ts
|
|
3751
3885
|
function store(key) {
|
|
3752
3886
|
const KEY = `cvco.${key}`;
|
|
3753
3887
|
return {
|
|
@@ -3768,7 +3902,7 @@ function store(key) {
|
|
|
3768
3902
|
}
|
|
3769
3903
|
};
|
|
3770
3904
|
}
|
|
3771
|
-
;// ./src/javascripts/ui/utils/seamly-utils.ts
|
|
3905
|
+
;// ./src/javascripts/core/ui/utils/seamly-utils.ts
|
|
3772
3906
|
const eventTypes = {
|
|
3773
3907
|
info: 'info',
|
|
3774
3908
|
message: 'message',
|
|
@@ -3845,11 +3979,11 @@ const cardTypes = {
|
|
|
3845
3979
|
navigate: 'navigate',
|
|
3846
3980
|
topic: 'topic'
|
|
3847
3981
|
};
|
|
3848
|
-
;// ./src/javascripts/lib/id.ts
|
|
3982
|
+
;// ./src/javascripts/core/lib/id.ts
|
|
3849
3983
|
function randomId() {
|
|
3850
3984
|
return `_${(Number(String(Math.random()).slice(2)) + Date.now() + Math.round(performance.now())).toString(36)}`;
|
|
3851
3985
|
}
|
|
3852
|
-
;// ./src/javascripts/api/utils.ts
|
|
3986
|
+
;// ./src/javascripts/core/api/utils.ts
|
|
3853
3987
|
|
|
3854
3988
|
|
|
3855
3989
|
function buildPayload(command, payload) {
|
|
@@ -3909,7 +4043,7 @@ function getTimeZone() {
|
|
|
3909
4043
|
return undefined;
|
|
3910
4044
|
}
|
|
3911
4045
|
}
|
|
3912
|
-
;// ./src/javascripts/api/index.ts
|
|
4046
|
+
;// ./src/javascripts/core/api/index.ts
|
|
3913
4047
|
|
|
3914
4048
|
|
|
3915
4049
|
|
|
@@ -4340,7 +4474,7 @@ class API {
|
|
|
4340
4474
|
return {
|
|
4341
4475
|
clientName: "@seamly/web-ui",
|
|
4342
4476
|
clientVariant: this.#layoutMode,
|
|
4343
|
-
clientVersion: "24.
|
|
4477
|
+
clientVersion: "24.3.0-alpha.1",
|
|
4344
4478
|
currentUrl: window.location.toString(),
|
|
4345
4479
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4346
4480
|
timezone: getTimeZone(),
|
|
@@ -7934,7 +8068,7 @@ function redux_toolkit_modern_formatProdErrorMessage(code) {
|
|
|
7934
8068
|
}
|
|
7935
8069
|
|
|
7936
8070
|
//# sourceMappingURL=redux-toolkit.modern.mjs.map
|
|
7937
|
-
;// ./src/javascripts/api/errors/seamly-unavailable-error.ts
|
|
8071
|
+
;// ./src/javascripts/core/api/errors/seamly-unavailable-error.ts
|
|
7938
8072
|
|
|
7939
8073
|
|
|
7940
8074
|
/**
|
|
@@ -7949,7 +8083,7 @@ class SeamlyUnavailableError extends SeamlyBaseError {
|
|
|
7949
8083
|
this.langKey = 'errors.seamlyUnavailable';
|
|
7950
8084
|
}
|
|
7951
8085
|
}
|
|
7952
|
-
;// ./src/javascripts/domains/config/actions.ts
|
|
8086
|
+
;// ./src/javascripts/core/domains/config/actions.ts
|
|
7953
8087
|
|
|
7954
8088
|
const initializeConfig = createAsyncThunk('initializeConfig', async (_, {
|
|
7955
8089
|
extra: {
|
|
@@ -7992,7 +8126,7 @@ const resetConfig = createAsyncThunk('resetConfig', async (_, {
|
|
|
7992
8126
|
}) => {
|
|
7993
8127
|
return config;
|
|
7994
8128
|
});
|
|
7995
|
-
;// ./src/javascripts/domains/redux/create-debounced-async-thunk.ts
|
|
8129
|
+
;// ./src/javascripts/core/domains/redux/create-debounced-async-thunk.ts
|
|
7996
8130
|
|
|
7997
8131
|
/**
|
|
7998
8132
|
* A debounced analogue of the `createAsyncThunk` from `@reduxjs/toolkit`
|
|
@@ -8763,14 +8897,14 @@ var createStructuredSelector = Object.assign(
|
|
|
8763
8897
|
);
|
|
8764
8898
|
|
|
8765
8899
|
//# sourceMappingURL=reselect.mjs.map
|
|
8766
|
-
;// ./src/javascripts/domains/app/selectors.ts
|
|
8900
|
+
;// ./src/javascripts/core/domains/app/selectors.ts
|
|
8767
8901
|
|
|
8768
8902
|
const selectUserHasResponded = createSelector(({
|
|
8769
8903
|
app
|
|
8770
8904
|
}) => app, ({
|
|
8771
8905
|
userHasResponded
|
|
8772
8906
|
}) => userHasResponded);
|
|
8773
|
-
;// ./src/javascripts/domains/visibility/constants.ts
|
|
8907
|
+
;// ./src/javascripts/core/domains/visibility/constants.ts
|
|
8774
8908
|
const StoreKey = 'visibility';
|
|
8775
8909
|
const visibilityStates = {
|
|
8776
8910
|
hidden: 'hidden',
|
|
@@ -8778,7 +8912,7 @@ const visibilityStates = {
|
|
|
8778
8912
|
open: 'open',
|
|
8779
8913
|
initialize: null
|
|
8780
8914
|
};
|
|
8781
|
-
;// ./src/javascripts/domains/config/selectors.ts
|
|
8915
|
+
;// ./src/javascripts/core/domains/config/selectors.ts
|
|
8782
8916
|
|
|
8783
8917
|
|
|
8784
8918
|
const selectConfig = createSelector(({
|
|
@@ -8797,7 +8931,7 @@ const selectConfig = createSelector(({
|
|
|
8797
8931
|
}
|
|
8798
8932
|
return newConfig;
|
|
8799
8933
|
});
|
|
8800
|
-
;// ./src/javascripts/domains/visibility/utils.ts
|
|
8934
|
+
;// ./src/javascripts/core/domains/visibility/utils.ts
|
|
8801
8935
|
|
|
8802
8936
|
const calculateVisibility = ({
|
|
8803
8937
|
hasResponded,
|
|
@@ -8837,175 +8971,68 @@ var compat_module = __webpack_require__(7402);
|
|
|
8837
8971
|
// EXTERNAL MODULE: ./node_modules/use-sync-external-store/with-selector.js
|
|
8838
8972
|
var with_selector = __webpack_require__(8418);
|
|
8839
8973
|
;// ./node_modules/react-redux/dist/react-redux.mjs
|
|
8840
|
-
// src/index.ts
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
8974
|
// src/utils/react.ts
|
|
8845
8975
|
|
|
8846
|
-
var React = (
|
|
8847
|
-
// prettier-ignore
|
|
8848
|
-
// @ts-ignore
|
|
8849
|
-
true ? compat_module["default"] : compat_module
|
|
8850
|
-
);
|
|
8851
|
-
|
|
8852
|
-
// src/components/Context.ts
|
|
8853
|
-
var ContextKey = Symbol.for(`react-redux-context`);
|
|
8854
|
-
var gT = typeof globalThis !== "undefined" ? globalThis : (
|
|
8855
|
-
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
8856
|
-
{}
|
|
8857
|
-
);
|
|
8858
|
-
function getContext() {
|
|
8859
|
-
if (!React.createContext)
|
|
8860
|
-
return {};
|
|
8861
|
-
const contextMap = gT[ContextKey] ?? (gT[ContextKey] = /* @__PURE__ */ new Map());
|
|
8862
|
-
let realContext = contextMap.get(React.createContext);
|
|
8863
|
-
if (!realContext) {
|
|
8864
|
-
realContext = React.createContext(
|
|
8865
|
-
null
|
|
8866
|
-
);
|
|
8867
|
-
if (false) {}
|
|
8868
|
-
contextMap.set(React.createContext, realContext);
|
|
8869
|
-
}
|
|
8870
|
-
return realContext;
|
|
8871
|
-
}
|
|
8872
|
-
var ReactReduxContext = /* @__PURE__ */ getContext();
|
|
8873
|
-
|
|
8874
|
-
// src/utils/useSyncExternalStore.ts
|
|
8875
|
-
var notInitialized = () => {
|
|
8876
|
-
throw new Error("uSES not initialized!");
|
|
8877
|
-
};
|
|
8878
|
-
|
|
8879
|
-
// src/hooks/useReduxContext.ts
|
|
8880
|
-
function createReduxContextHook(context = ReactReduxContext) {
|
|
8881
|
-
return function useReduxContext2() {
|
|
8882
|
-
const contextValue = React.useContext(context);
|
|
8883
|
-
if (false) {}
|
|
8884
|
-
return contextValue;
|
|
8885
|
-
};
|
|
8886
|
-
}
|
|
8887
|
-
var useReduxContext = /* @__PURE__ */ createReduxContextHook();
|
|
8888
|
-
|
|
8889
|
-
// src/hooks/useSelector.ts
|
|
8890
|
-
var useSyncExternalStoreWithSelector = notInitialized;
|
|
8891
|
-
var initializeUseSelector = (fn) => {
|
|
8892
|
-
useSyncExternalStoreWithSelector = fn;
|
|
8893
|
-
};
|
|
8894
|
-
var refEquality = (a, b) => a === b;
|
|
8895
|
-
function createSelectorHook(context = ReactReduxContext) {
|
|
8896
|
-
const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
|
|
8897
|
-
const useSelector2 = (selector, equalityFnOrOptions = {}) => {
|
|
8898
|
-
const { equalityFn = refEquality, devModeChecks = {} } = typeof equalityFnOrOptions === "function" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;
|
|
8899
|
-
if (false) {}
|
|
8900
|
-
const {
|
|
8901
|
-
store,
|
|
8902
|
-
subscription,
|
|
8903
|
-
getServerState,
|
|
8904
|
-
stabilityCheck,
|
|
8905
|
-
identityFunctionCheck
|
|
8906
|
-
} = useReduxContext2();
|
|
8907
|
-
const firstRun = React.useRef(true);
|
|
8908
|
-
const wrappedSelector = React.useCallback(
|
|
8909
|
-
{
|
|
8910
|
-
[selector.name](state) {
|
|
8911
|
-
const selected = selector(state);
|
|
8912
|
-
if (false) {}
|
|
8913
|
-
return selected;
|
|
8914
|
-
}
|
|
8915
|
-
}[selector.name],
|
|
8916
|
-
[selector, stabilityCheck, devModeChecks.stabilityCheck]
|
|
8917
|
-
);
|
|
8918
|
-
const selectedState = useSyncExternalStoreWithSelector(
|
|
8919
|
-
subscription.addNestedSub,
|
|
8920
|
-
store.getState,
|
|
8921
|
-
getServerState || store.getState,
|
|
8922
|
-
wrappedSelector,
|
|
8923
|
-
equalityFn
|
|
8924
|
-
);
|
|
8925
|
-
React.useDebugValue(selectedState);
|
|
8926
|
-
return selectedState;
|
|
8927
|
-
};
|
|
8928
|
-
Object.assign(useSelector2, {
|
|
8929
|
-
withTypes: () => useSelector2
|
|
8930
|
-
});
|
|
8931
|
-
return useSelector2;
|
|
8932
|
-
}
|
|
8933
|
-
var react_redux_useSelector = /* @__PURE__ */ createSelectorHook();
|
|
8934
8976
|
|
|
8935
8977
|
// src/utils/react-is.ts
|
|
8936
|
-
var
|
|
8937
|
-
var
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
var
|
|
8941
|
-
var
|
|
8942
|
-
var
|
|
8943
|
-
var
|
|
8944
|
-
var
|
|
8945
|
-
var
|
|
8946
|
-
var
|
|
8947
|
-
var
|
|
8948
|
-
var
|
|
8949
|
-
|
|
8950
|
-
|
|
8978
|
+
var IS_REACT_19 = /* @__PURE__ */ (/* unused pure expression or super */ null && (React.version.startsWith("19")));
|
|
8979
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
8980
|
+
IS_REACT_19 ? "react.transitional.element" : "react.element"
|
|
8981
|
+
)));
|
|
8982
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.portal")));
|
|
8983
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.fragment")));
|
|
8984
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.strict_mode")));
|
|
8985
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.profiler")));
|
|
8986
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.consumer")));
|
|
8987
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.context")));
|
|
8988
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
8989
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.suspense")));
|
|
8990
|
+
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
8991
|
+
"react.suspense_list"
|
|
8992
|
+
)));
|
|
8993
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
8994
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.lazy")));
|
|
8995
|
+
var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.offscreen")));
|
|
8996
|
+
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
8997
|
+
"react.client.reference"
|
|
8998
|
+
)));
|
|
8951
8999
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
8952
9000
|
var Memo = REACT_MEMO_TYPE;
|
|
8953
9001
|
function isValidElementType(type) {
|
|
8954
|
-
|
|
8955
|
-
return true;
|
|
8956
|
-
}
|
|
8957
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE) {
|
|
8958
|
-
return true;
|
|
8959
|
-
}
|
|
8960
|
-
if (typeof type === "object" && type !== null) {
|
|
8961
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
8962
|
-
// types supported by any Flight configuration anywhere since
|
|
8963
|
-
// we don't know which Flight build this will end up being used
|
|
8964
|
-
// with.
|
|
8965
|
-
type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) {
|
|
8966
|
-
return true;
|
|
8967
|
-
}
|
|
8968
|
-
}
|
|
8969
|
-
return false;
|
|
9002
|
+
return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) ? true : false;
|
|
8970
9003
|
}
|
|
8971
9004
|
function typeOf(object) {
|
|
8972
9005
|
if (typeof object === "object" && object !== null) {
|
|
8973
|
-
const $$typeof = object
|
|
9006
|
+
const { $$typeof } = object;
|
|
8974
9007
|
switch ($$typeof) {
|
|
8975
|
-
case REACT_ELEMENT_TYPE:
|
|
8976
|
-
|
|
8977
|
-
switch (type) {
|
|
9008
|
+
case REACT_ELEMENT_TYPE:
|
|
9009
|
+
switch (object = object.type, object) {
|
|
8978
9010
|
case REACT_FRAGMENT_TYPE:
|
|
8979
9011
|
case REACT_PROFILER_TYPE:
|
|
8980
9012
|
case REACT_STRICT_MODE_TYPE:
|
|
8981
9013
|
case REACT_SUSPENSE_TYPE:
|
|
8982
9014
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
8983
|
-
return
|
|
8984
|
-
default:
|
|
8985
|
-
|
|
8986
|
-
switch ($$typeofType) {
|
|
8987
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
9015
|
+
return object;
|
|
9016
|
+
default:
|
|
9017
|
+
switch (object = object && object.$$typeof, object) {
|
|
8988
9018
|
case REACT_CONTEXT_TYPE:
|
|
8989
9019
|
case REACT_FORWARD_REF_TYPE:
|
|
8990
9020
|
case REACT_LAZY_TYPE:
|
|
8991
9021
|
case REACT_MEMO_TYPE:
|
|
8992
|
-
|
|
8993
|
-
|
|
9022
|
+
return object;
|
|
9023
|
+
case REACT_CONSUMER_TYPE:
|
|
9024
|
+
return object;
|
|
8994
9025
|
default:
|
|
8995
9026
|
return $$typeof;
|
|
8996
9027
|
}
|
|
8997
|
-
}
|
|
8998
9028
|
}
|
|
8999
|
-
|
|
9000
|
-
case REACT_PORTAL_TYPE: {
|
|
9029
|
+
case REACT_PORTAL_TYPE:
|
|
9001
9030
|
return $$typeof;
|
|
9002
|
-
}
|
|
9003
9031
|
}
|
|
9004
9032
|
}
|
|
9005
|
-
return void 0;
|
|
9006
9033
|
}
|
|
9007
9034
|
function isContextConsumer(object) {
|
|
9008
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
9035
|
+
return IS_REACT_19 ? typeOf(object) === REACT_CONSUMER_TYPE : typeOf(object) === REACT_CONTEXT_TYPE;
|
|
9009
9036
|
}
|
|
9010
9037
|
function isMemo(object) {
|
|
9011
9038
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
@@ -9094,12 +9121,9 @@ function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, merg
|
|
|
9094
9121
|
);
|
|
9095
9122
|
state = nextState;
|
|
9096
9123
|
ownProps = nextOwnProps;
|
|
9097
|
-
if (propsChanged && stateChanged)
|
|
9098
|
-
|
|
9099
|
-
if (
|
|
9100
|
-
return handleNewProps();
|
|
9101
|
-
if (stateChanged)
|
|
9102
|
-
return handleNewState();
|
|
9124
|
+
if (propsChanged && stateChanged) return handleNewPropsAndNewState();
|
|
9125
|
+
if (propsChanged) return handleNewProps();
|
|
9126
|
+
if (stateChanged) return handleNewState();
|
|
9103
9127
|
return mergedProps;
|
|
9104
9128
|
}
|
|
9105
9129
|
return function pureFinalPropsSelector(nextState, nextOwnProps) {
|
|
@@ -9133,11 +9157,9 @@ function react_redux_bindActionCreators(actionCreators, dispatch) {
|
|
|
9133
9157
|
|
|
9134
9158
|
// src/utils/isPlainObject.ts
|
|
9135
9159
|
function react_redux_isPlainObject(obj) {
|
|
9136
|
-
if (typeof obj !== "object" || obj === null)
|
|
9137
|
-
return false;
|
|
9160
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
9138
9161
|
const proto = Object.getPrototypeOf(obj);
|
|
9139
|
-
if (proto === null)
|
|
9140
|
-
return true;
|
|
9162
|
+
if (proto === null) return true;
|
|
9141
9163
|
let baseProto = proto;
|
|
9142
9164
|
while (Object.getPrototypeOf(baseProto) !== null) {
|
|
9143
9165
|
baseProto = Object.getPrototypeOf(baseProto);
|
|
@@ -9295,8 +9317,7 @@ function createListenerCollection() {
|
|
|
9295
9317
|
first = listener;
|
|
9296
9318
|
}
|
|
9297
9319
|
return function unsubscribe() {
|
|
9298
|
-
if (!isSubscribed || first === null)
|
|
9299
|
-
return;
|
|
9320
|
+
if (!isSubscribed || first === null) return;
|
|
9300
9321
|
isSubscribed = false;
|
|
9301
9322
|
if (listener.next) {
|
|
9302
9323
|
listener.next.prev = listener.prev;
|
|
@@ -9386,9 +9407,12 @@ function createSubscription(store, parentSub) {
|
|
|
9386
9407
|
}
|
|
9387
9408
|
|
|
9388
9409
|
// src/utils/useIsomorphicLayoutEffect.ts
|
|
9389
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
9390
|
-
var
|
|
9391
|
-
var
|
|
9410
|
+
var canUseDOM = () => !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
9411
|
+
var isDOM = /* @__PURE__ */ canUseDOM();
|
|
9412
|
+
var isRunningInReactNative = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
9413
|
+
var isReactNative = /* @__PURE__ */ isRunningInReactNative();
|
|
9414
|
+
var getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? compat_module.useLayoutEffect : compat_module.useEffect;
|
|
9415
|
+
var useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect();
|
|
9392
9416
|
|
|
9393
9417
|
// src/utils/shallowEqual.ts
|
|
9394
9418
|
function react_redux_is(x, y) {
|
|
@@ -9399,15 +9423,13 @@ function react_redux_is(x, y) {
|
|
|
9399
9423
|
}
|
|
9400
9424
|
}
|
|
9401
9425
|
function shallowEqual(objA, objB) {
|
|
9402
|
-
if (react_redux_is(objA, objB))
|
|
9403
|
-
return true;
|
|
9426
|
+
if (react_redux_is(objA, objB)) return true;
|
|
9404
9427
|
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
9405
9428
|
return false;
|
|
9406
9429
|
}
|
|
9407
9430
|
const keysA = Object.keys(objA);
|
|
9408
9431
|
const keysB = Object.keys(objB);
|
|
9409
|
-
if (keysA.length !== keysB.length)
|
|
9410
|
-
return false;
|
|
9432
|
+
if (keysA.length !== keysB.length) return false;
|
|
9411
9433
|
for (let i = 0; i < keysA.length; i++) {
|
|
9412
9434
|
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !react_redux_is(objA[keysA[i]], objB[keysA[i]])) {
|
|
9413
9435
|
return false;
|
|
@@ -9498,11 +9520,28 @@ function hoistNonReactStatics(targetComponent, sourceComponent) {
|
|
|
9498
9520
|
return targetComponent;
|
|
9499
9521
|
}
|
|
9500
9522
|
|
|
9523
|
+
// src/components/Context.ts
|
|
9524
|
+
var ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);
|
|
9525
|
+
var gT = typeof globalThis !== "undefined" ? globalThis : (
|
|
9526
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
9527
|
+
{}
|
|
9528
|
+
);
|
|
9529
|
+
function getContext() {
|
|
9530
|
+
if (!compat_module.createContext) return {};
|
|
9531
|
+
const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();
|
|
9532
|
+
let realContext = contextMap.get(compat_module.createContext);
|
|
9533
|
+
if (!realContext) {
|
|
9534
|
+
realContext = compat_module.createContext(
|
|
9535
|
+
null
|
|
9536
|
+
);
|
|
9537
|
+
if (false) {}
|
|
9538
|
+
contextMap.set(compat_module.createContext, realContext);
|
|
9539
|
+
}
|
|
9540
|
+
return realContext;
|
|
9541
|
+
}
|
|
9542
|
+
var ReactReduxContext = /* @__PURE__ */ getContext();
|
|
9543
|
+
|
|
9501
9544
|
// src/components/connect.tsx
|
|
9502
|
-
var useSyncExternalStore = (/* unused pure expression or super */ null && (notInitialized));
|
|
9503
|
-
var initializeConnect = (fn) => {
|
|
9504
|
-
useSyncExternalStore = fn;
|
|
9505
|
-
};
|
|
9506
9545
|
var NO_SUBSCRIPTION_ARRAY = (/* unused pure expression or super */ null && ([null, null]));
|
|
9507
9546
|
var stringifyComponent = (Comp) => {
|
|
9508
9547
|
try {
|
|
@@ -9523,9 +9562,8 @@ function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled
|
|
|
9523
9562
|
}
|
|
9524
9563
|
}
|
|
9525
9564
|
function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {
|
|
9526
|
-
if (!shouldHandleStateChanges)
|
|
9527
|
-
|
|
9528
|
-
};
|
|
9565
|
+
if (!shouldHandleStateChanges) return () => {
|
|
9566
|
+
};
|
|
9529
9567
|
let didUnsubscribe = false;
|
|
9530
9568
|
let lastThrownError = null;
|
|
9531
9569
|
const checkForUpdates = () => {
|
|
@@ -9604,7 +9642,6 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9604
9642
|
WrappedComponent,
|
|
9605
9643
|
// @ts-ignore
|
|
9606
9644
|
initMapStateToProps,
|
|
9607
|
-
// @ts-ignore
|
|
9608
9645
|
initMapDispatchToProps,
|
|
9609
9646
|
initMergeProps,
|
|
9610
9647
|
areStatesEqual,
|
|
@@ -9634,8 +9671,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9634
9671
|
return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);
|
|
9635
9672
|
}, [store]);
|
|
9636
9673
|
const [subscription, notifyNestedSubs] = React.useMemo(() => {
|
|
9637
|
-
if (!shouldHandleStateChanges)
|
|
9638
|
-
return NO_SUBSCRIPTION_ARRAY;
|
|
9674
|
+
if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;
|
|
9639
9675
|
const subscription2 = createSubscription(
|
|
9640
9676
|
store,
|
|
9641
9677
|
didStoreComeFromProps ? void 0 : contextValue.subscription
|
|
@@ -9708,7 +9744,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9708
9744
|
]);
|
|
9709
9745
|
let actualChildProps;
|
|
9710
9746
|
try {
|
|
9711
|
-
actualChildProps = useSyncExternalStore(
|
|
9747
|
+
actualChildProps = React.useSyncExternalStore(
|
|
9712
9748
|
// TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
|
|
9713
9749
|
subscribeForReact,
|
|
9714
9750
|
// TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
|
|
@@ -9774,25 +9810,20 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
9774
9810
|
var connect_default = (/* unused pure expression or super */ null && (connect));
|
|
9775
9811
|
|
|
9776
9812
|
// src/components/Provider.tsx
|
|
9777
|
-
function Provider({
|
|
9778
|
-
store
|
|
9779
|
-
|
|
9780
|
-
children,
|
|
9781
|
-
serverState,
|
|
9782
|
-
stabilityCheck = "once",
|
|
9783
|
-
identityFunctionCheck = "once"
|
|
9784
|
-
}) {
|
|
9785
|
-
const contextValue = React.useMemo(() => {
|
|
9813
|
+
function Provider(providerProps) {
|
|
9814
|
+
const { children, context, serverState, store } = providerProps;
|
|
9815
|
+
const contextValue = compat_module.useMemo(() => {
|
|
9786
9816
|
const subscription = createSubscription(store);
|
|
9787
|
-
|
|
9817
|
+
const baseContextValue = {
|
|
9788
9818
|
store,
|
|
9789
9819
|
subscription,
|
|
9790
|
-
getServerState: serverState ? () => serverState : void 0
|
|
9791
|
-
stabilityCheck,
|
|
9792
|
-
identityFunctionCheck
|
|
9820
|
+
getServerState: serverState ? () => serverState : void 0
|
|
9793
9821
|
};
|
|
9794
|
-
|
|
9795
|
-
|
|
9822
|
+
if (true) {
|
|
9823
|
+
return baseContextValue;
|
|
9824
|
+
} else {}
|
|
9825
|
+
}, [store, serverState]);
|
|
9826
|
+
const previousState = compat_module.useMemo(() => store.getState(), [store]);
|
|
9796
9827
|
useIsomorphicLayoutEffect(() => {
|
|
9797
9828
|
const { subscription } = contextValue;
|
|
9798
9829
|
subscription.onStateChange = subscription.notifyNestedSubs;
|
|
@@ -9806,10 +9837,20 @@ function Provider({
|
|
|
9806
9837
|
};
|
|
9807
9838
|
}, [contextValue, previousState]);
|
|
9808
9839
|
const Context = context || ReactReduxContext;
|
|
9809
|
-
return /* @__PURE__ */
|
|
9840
|
+
return /* @__PURE__ */ compat_module.createElement(Context.Provider, { value: contextValue }, children);
|
|
9810
9841
|
}
|
|
9811
9842
|
var Provider_default = Provider;
|
|
9812
9843
|
|
|
9844
|
+
// src/hooks/useReduxContext.ts
|
|
9845
|
+
function createReduxContextHook(context = ReactReduxContext) {
|
|
9846
|
+
return function useReduxContext2() {
|
|
9847
|
+
const contextValue = compat_module.useContext(context);
|
|
9848
|
+
if (false) {}
|
|
9849
|
+
return contextValue;
|
|
9850
|
+
};
|
|
9851
|
+
}
|
|
9852
|
+
var useReduxContext = /* @__PURE__ */ createReduxContextHook();
|
|
9853
|
+
|
|
9813
9854
|
// src/hooks/useStore.ts
|
|
9814
9855
|
function createStoreHook(context = ReactReduxContext) {
|
|
9815
9856
|
const useReduxContext2 = context === ReactReduxContext ? useReduxContext : (
|
|
@@ -9841,15 +9882,49 @@ function createDispatchHook(context = ReactReduxContext) {
|
|
|
9841
9882
|
}
|
|
9842
9883
|
var useDispatch = /* @__PURE__ */ createDispatchHook();
|
|
9843
9884
|
|
|
9885
|
+
// src/hooks/useSelector.ts
|
|
9886
|
+
|
|
9887
|
+
var refEquality = (a, b) => a === b;
|
|
9888
|
+
function createSelectorHook(context = ReactReduxContext) {
|
|
9889
|
+
const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
|
|
9890
|
+
const useSelector2 = (selector, equalityFnOrOptions = {}) => {
|
|
9891
|
+
const { equalityFn = refEquality } = typeof equalityFnOrOptions === "function" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;
|
|
9892
|
+
if (false) {}
|
|
9893
|
+
const reduxContext = useReduxContext2();
|
|
9894
|
+
const { store, subscription, getServerState } = reduxContext;
|
|
9895
|
+
const firstRun = compat_module.useRef(true);
|
|
9896
|
+
const wrappedSelector = compat_module.useCallback(
|
|
9897
|
+
{
|
|
9898
|
+
[selector.name](state) {
|
|
9899
|
+
const selected = selector(state);
|
|
9900
|
+
if (false) {}
|
|
9901
|
+
return selected;
|
|
9902
|
+
}
|
|
9903
|
+
}[selector.name],
|
|
9904
|
+
[selector]
|
|
9905
|
+
);
|
|
9906
|
+
const selectedState = (0,with_selector.useSyncExternalStoreWithSelector)(
|
|
9907
|
+
subscription.addNestedSub,
|
|
9908
|
+
store.getState,
|
|
9909
|
+
getServerState || store.getState,
|
|
9910
|
+
wrappedSelector,
|
|
9911
|
+
equalityFn
|
|
9912
|
+
);
|
|
9913
|
+
compat_module.useDebugValue(selectedState);
|
|
9914
|
+
return selectedState;
|
|
9915
|
+
};
|
|
9916
|
+
Object.assign(useSelector2, {
|
|
9917
|
+
withTypes: () => useSelector2
|
|
9918
|
+
});
|
|
9919
|
+
return useSelector2;
|
|
9920
|
+
}
|
|
9921
|
+
var react_redux_useSelector = /* @__PURE__ */ createSelectorHook();
|
|
9922
|
+
|
|
9844
9923
|
// src/exports.ts
|
|
9845
9924
|
var batch = (/* unused pure expression or super */ null && (defaultNoopBatch));
|
|
9846
9925
|
|
|
9847
|
-
// src/index.ts
|
|
9848
|
-
initializeUseSelector(with_selector.useSyncExternalStoreWithSelector);
|
|
9849
|
-
initializeConnect(compat_module.useSyncExternalStore);
|
|
9850
|
-
|
|
9851
9926
|
//# sourceMappingURL=react-redux.mjs.map
|
|
9852
|
-
;// ./src/javascripts/domains/config/hooks.ts
|
|
9927
|
+
;// ./src/javascripts/core/domains/config/hooks.ts
|
|
9853
9928
|
|
|
9854
9929
|
|
|
9855
9930
|
const useConfig = () => react_redux_useSelector(selectConfig);
|
|
@@ -9869,7 +9944,7 @@ function useStartChatIcon() {
|
|
|
9869
9944
|
} = useConfig();
|
|
9870
9945
|
return startChatIcon;
|
|
9871
9946
|
}
|
|
9872
|
-
;// ./src/javascripts/ui/utils/general-utils.ts
|
|
9947
|
+
;// ./src/javascripts/core/ui/utils/general-utils.ts
|
|
9873
9948
|
|
|
9874
9949
|
const debounce = (func, wait) => {
|
|
9875
9950
|
let timeout;
|
|
@@ -10000,7 +10075,7 @@ const omit = (obj, keys) => Object.keys(obj).reduce((accum, key) => {
|
|
|
10000
10075
|
function childIsVNode(child) {
|
|
10001
10076
|
return typeof child === 'object';
|
|
10002
10077
|
}
|
|
10003
|
-
;// ./src/javascripts/ui/hooks/seamly-state-hooks.ts
|
|
10078
|
+
;// ./src/javascripts/core/ui/hooks/seamly-state-hooks.ts
|
|
10004
10079
|
|
|
10005
10080
|
|
|
10006
10081
|
|
|
@@ -10121,7 +10196,7 @@ const useSeamlyLayoutMode = () => {
|
|
|
10121
10196
|
isResolving: !layoutMode
|
|
10122
10197
|
};
|
|
10123
10198
|
};
|
|
10124
|
-
;// ./src/javascripts/domains/visibility/selectors.ts
|
|
10199
|
+
;// ./src/javascripts/core/domains/visibility/selectors.ts
|
|
10125
10200
|
|
|
10126
10201
|
const selectVisibility = createSelector(({
|
|
10127
10202
|
visibility
|
|
@@ -10132,7 +10207,7 @@ const selectShowInlineView = createSelector(({
|
|
|
10132
10207
|
const selectSetInputFocus = createSelector(({
|
|
10133
10208
|
visibility
|
|
10134
10209
|
}) => visibility, state => state.setInputFocus);
|
|
10135
|
-
;// ./src/javascripts/domains/visibility/actions.ts
|
|
10210
|
+
;// ./src/javascripts/core/domains/visibility/actions.ts
|
|
10136
10211
|
|
|
10137
10212
|
|
|
10138
10213
|
|
|
@@ -10217,7 +10292,7 @@ const initializeVisibility = createAsyncThunk('initialize', async (_, {
|
|
|
10217
10292
|
}));
|
|
10218
10293
|
return storedVisibility;
|
|
10219
10294
|
});
|
|
10220
|
-
;// ./src/javascripts/domains/app/actions.ts
|
|
10295
|
+
;// ./src/javascripts/core/domains/app/actions.ts
|
|
10221
10296
|
|
|
10222
10297
|
|
|
10223
10298
|
|
|
@@ -10297,7 +10372,7 @@ const resetApp = create_debounced_async_thunk('resetApp', async (_, {
|
|
|
10297
10372
|
wait: 2000,
|
|
10298
10373
|
leading: true
|
|
10299
10374
|
});
|
|
10300
|
-
;// ./src/javascripts/config.ts
|
|
10375
|
+
;// ./src/javascripts/core/config.ts
|
|
10301
10376
|
const CSS_NAME = 'cvco';
|
|
10302
10377
|
const userParticipantId = 'seamly-client-participant';
|
|
10303
10378
|
|
|
@@ -10334,7 +10409,7 @@ const defaultConfig = {
|
|
|
10334
10409
|
}
|
|
10335
10410
|
}
|
|
10336
10411
|
};
|
|
10337
|
-
;// ./src/javascripts/domains/config/slice.ts
|
|
10412
|
+
;// ./src/javascripts/core/domains/config/slice.ts
|
|
10338
10413
|
|
|
10339
10414
|
|
|
10340
10415
|
|
|
@@ -10439,7 +10514,7 @@ const {
|
|
|
10439
10514
|
setPreChatEvents
|
|
10440
10515
|
} = configSlice.actions;
|
|
10441
10516
|
/* harmony default export */ const slice = (configSlice.reducer);
|
|
10442
|
-
;// ./src/javascripts/domains/app/slice.ts
|
|
10517
|
+
;// ./src/javascripts/core/domains/app/slice.ts
|
|
10443
10518
|
|
|
10444
10519
|
|
|
10445
10520
|
const initialState = {
|
|
@@ -10469,7 +10544,7 @@ const {
|
|
|
10469
10544
|
setHasResponded
|
|
10470
10545
|
} = appSlice.actions;
|
|
10471
10546
|
/* harmony default export */ const app_slice = (appSlice.reducer);
|
|
10472
|
-
;// ./src/javascripts/api/errors/seamly-offline-error.ts
|
|
10547
|
+
;// ./src/javascripts/core/api/errors/seamly-offline-error.ts
|
|
10473
10548
|
|
|
10474
10549
|
class SeamlyOfflineError extends SeamlyBaseError {
|
|
10475
10550
|
constructor(originalError, ...params) {
|
|
@@ -10478,7 +10553,7 @@ class SeamlyOfflineError extends SeamlyBaseError {
|
|
|
10478
10553
|
this.langKey = 'errors.seamlyOffline';
|
|
10479
10554
|
}
|
|
10480
10555
|
}
|
|
10481
|
-
;// ./src/javascripts/domains/errors/index.ts
|
|
10556
|
+
;// ./src/javascripts/core/domains/errors/index.ts
|
|
10482
10557
|
|
|
10483
10558
|
|
|
10484
10559
|
|
|
@@ -10548,7 +10623,7 @@ function createErrorsMiddleware({
|
|
|
10548
10623
|
};
|
|
10549
10624
|
};
|
|
10550
10625
|
}
|
|
10551
|
-
;// ./src/javascripts/domains/forms/slice.ts
|
|
10626
|
+
;// ./src/javascripts/core/domains/forms/slice.ts
|
|
10552
10627
|
|
|
10553
10628
|
|
|
10554
10629
|
const initialFormState = {
|
|
@@ -10660,7 +10735,7 @@ const {
|
|
|
10660
10735
|
updateControlTouched: slice_updateControlTouched
|
|
10661
10736
|
} = formsSlice.actions;
|
|
10662
10737
|
/* harmony default export */ const forms_slice = (formsSlice.reducer);
|
|
10663
|
-
;// ./src/javascripts/domains/i18n/actions.ts
|
|
10738
|
+
;// ./src/javascripts/core/domains/i18n/actions.ts
|
|
10664
10739
|
|
|
10665
10740
|
const setLocale = createAsyncThunk('setLocale', async (userLocale, {
|
|
10666
10741
|
extra: {
|
|
@@ -10694,7 +10769,7 @@ const setLocale = createAsyncThunk('setLocale', async (userLocale, {
|
|
|
10694
10769
|
return true;
|
|
10695
10770
|
}
|
|
10696
10771
|
});
|
|
10697
|
-
;// ./src/javascripts/domains/i18n/slice.ts
|
|
10772
|
+
;// ./src/javascripts/core/domains/i18n/slice.ts
|
|
10698
10773
|
|
|
10699
10774
|
|
|
10700
10775
|
|
|
@@ -10765,7 +10840,7 @@ const {
|
|
|
10765
10840
|
setTranslations
|
|
10766
10841
|
} = i18nSlice.actions;
|
|
10767
10842
|
/* harmony default export */ const i18n_slice = (i18nSlice.reducer);
|
|
10768
|
-
;// ./src/javascripts/domains/store/actions.ts
|
|
10843
|
+
;// ./src/javascripts/core/domains/store/actions.ts
|
|
10769
10844
|
|
|
10770
10845
|
const getConversation = createAsyncThunk('getConversation', async (_, {
|
|
10771
10846
|
extra: {
|
|
@@ -10803,7 +10878,7 @@ const getConversation = createAsyncThunk('getConversation', async (_, {
|
|
|
10803
10878
|
return lastEvent && payloadLastEventId !== lastEvent.payload.id;
|
|
10804
10879
|
}
|
|
10805
10880
|
});
|
|
10806
|
-
;// ./src/javascripts/domains/interrupt/slice.ts
|
|
10881
|
+
;// ./src/javascripts/core/domains/interrupt/slice.ts
|
|
10807
10882
|
|
|
10808
10883
|
|
|
10809
10884
|
|
|
@@ -10835,7 +10910,7 @@ const {
|
|
|
10835
10910
|
clearInterrupt
|
|
10836
10911
|
} = interruptSlice.actions;
|
|
10837
10912
|
/* harmony default export */ const interrupt_slice = (interruptSlice.reducer);
|
|
10838
|
-
;// ./src/javascripts/domains/interrupt/middleware.ts
|
|
10913
|
+
;// ./src/javascripts/core/domains/interrupt/middleware.ts
|
|
10839
10914
|
|
|
10840
10915
|
|
|
10841
10916
|
const handledErrorTypes = ['SeamlyGeneralError', 'SeamlyConfigurationError', 'SeamlySessionExpiredError', 'SeamlyOfflineError', 'SeamlyUnauthorizedError', 'SeamlyUnavailableError'];
|
|
@@ -10860,7 +10935,7 @@ function createInterruptMiddleware({
|
|
|
10860
10935
|
return next(action);
|
|
10861
10936
|
};
|
|
10862
10937
|
}
|
|
10863
|
-
;// ./src/javascripts/domains/store/slice.ts
|
|
10938
|
+
;// ./src/javascripts/core/domains/store/slice.ts
|
|
10864
10939
|
|
|
10865
10940
|
|
|
10866
10941
|
|
|
@@ -11539,7 +11614,7 @@ const {
|
|
|
11539
11614
|
setProactiveMessages
|
|
11540
11615
|
} = storeSlice.actions;
|
|
11541
11616
|
/* harmony default export */ const store_slice = (storeSlice.reducer);
|
|
11542
|
-
;// ./src/javascripts/domains/options/middleware.ts
|
|
11617
|
+
;// ./src/javascripts/core/domains/options/middleware.ts
|
|
11543
11618
|
|
|
11544
11619
|
function createOptionsMiddleware({
|
|
11545
11620
|
api
|
|
@@ -11560,7 +11635,7 @@ function createOptionsMiddleware({
|
|
|
11560
11635
|
return result;
|
|
11561
11636
|
};
|
|
11562
11637
|
}
|
|
11563
|
-
;// ./src/javascripts/domains/translations/middleware.ts
|
|
11638
|
+
;// ./src/javascripts/core/domains/translations/middleware.ts
|
|
11564
11639
|
|
|
11565
11640
|
|
|
11566
11641
|
|
|
@@ -11597,7 +11672,7 @@ const createI18nMiddleware = ({
|
|
|
11597
11672
|
};
|
|
11598
11673
|
};
|
|
11599
11674
|
/* harmony default export */ const middleware = (createI18nMiddleware);
|
|
11600
|
-
;// ./src/javascripts/domains/translations/slice.ts
|
|
11675
|
+
;// ./src/javascripts/core/domains/translations/slice.ts
|
|
11601
11676
|
|
|
11602
11677
|
|
|
11603
11678
|
|
|
@@ -11736,7 +11811,7 @@ const {
|
|
|
11736
11811
|
disableTranslationProposalPrompt
|
|
11737
11812
|
} = translationSlice.actions;
|
|
11738
11813
|
/* harmony default export */ const translations_slice = (translationSlice.reducer);
|
|
11739
|
-
;// ./src/javascripts/domains/visibility/slice.ts
|
|
11814
|
+
;// ./src/javascripts/core/domains/visibility/slice.ts
|
|
11740
11815
|
|
|
11741
11816
|
|
|
11742
11817
|
|
|
@@ -11779,7 +11854,7 @@ const {
|
|
|
11779
11854
|
setShowInlineView
|
|
11780
11855
|
} = visibilitySlice.actions;
|
|
11781
11856
|
/* harmony default export */ const visibility_slice = (visibilitySlice.reducer);
|
|
11782
|
-
;// ./src/javascripts/domains/store/index.ts
|
|
11857
|
+
;// ./src/javascripts/core/domains/store/index.ts
|
|
11783
11858
|
|
|
11784
11859
|
|
|
11785
11860
|
|
|
@@ -12355,7 +12430,7 @@ function selectTypeHandler(value, matches, locale, values, process) {
|
|
|
12355
12430
|
|
|
12356
12431
|
//# sourceMappingURL=icu-message-formatter.js.map
|
|
12357
12432
|
|
|
12358
|
-
;// ./src/javascripts/domains/i18n/selectors.ts
|
|
12433
|
+
;// ./src/javascripts/core/domains/i18n/selectors.ts
|
|
12359
12434
|
|
|
12360
12435
|
const selectTranslations = createSelector(({
|
|
12361
12436
|
i18n
|
|
@@ -12377,7 +12452,7 @@ const selectIsLoading = createSelector(({
|
|
|
12377
12452
|
}) => i18n, ({
|
|
12378
12453
|
isLoading
|
|
12379
12454
|
}) => isLoading);
|
|
12380
|
-
;// ./src/javascripts/domains/i18n/hooks.ts
|
|
12455
|
+
;// ./src/javascripts/core/domains/i18n/hooks.ts
|
|
12381
12456
|
|
|
12382
12457
|
|
|
12383
12458
|
|
|
@@ -12409,7 +12484,7 @@ function useI18n() {
|
|
|
12409
12484
|
initialLocale
|
|
12410
12485
|
};
|
|
12411
12486
|
}
|
|
12412
|
-
;// ./src/javascripts/domains/visibility/hooks.ts
|
|
12487
|
+
;// ./src/javascripts/core/domains/visibility/hooks.ts
|
|
12413
12488
|
|
|
12414
12489
|
|
|
12415
12490
|
|
|
@@ -12512,22 +12587,15 @@ const useShowInlineView = () => {
|
|
|
12512
12587
|
showInlineView
|
|
12513
12588
|
};
|
|
12514
12589
|
};
|
|
12515
|
-
;// ./src/javascripts/domains/app/hooks.ts
|
|
12590
|
+
;// ./src/javascripts/core/domains/app/hooks.ts
|
|
12516
12591
|
|
|
12517
12592
|
|
|
12518
12593
|
const useUserHasResponded = () => react_redux_useSelector(selectUserHasResponded);
|
|
12519
|
-
;// ./src/javascripts/ui/components/core/seamly-api-context.ts
|
|
12594
|
+
;// ./src/javascripts/core/ui/components/core/seamly-api-context.ts
|
|
12520
12595
|
|
|
12521
12596
|
const SeamlyApiContext = (0,external_preact_.createContext)(null);
|
|
12522
12597
|
const SeamlyEventBusContext = (0,external_preact_.createContext)(null);
|
|
12523
|
-
;// ./src/javascripts/ui/
|
|
12524
|
-
|
|
12525
|
-
const SeamlyLiveRegionContext = (0,external_preact_.createContext)(null);
|
|
12526
|
-
;// ./src/javascripts/package/contexts.ts
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
;// ./src/javascripts/ui/hooks/event-bus-hooks.ts
|
|
12598
|
+
;// ./src/javascripts/core/ui/hooks/event-bus-hooks.ts
|
|
12531
12599
|
|
|
12532
12600
|
|
|
12533
12601
|
const useSeamlyEventBusContext = () => {
|
|
@@ -12538,7 +12606,7 @@ const useSeamlyEventBusContext = () => {
|
|
|
12538
12606
|
return eventBus;
|
|
12539
12607
|
};
|
|
12540
12608
|
/* harmony default export */ const event_bus_hooks = (useSeamlyEventBusContext);
|
|
12541
|
-
;// ./src/javascripts/ui/hooks/seamly-api-hooks.ts
|
|
12609
|
+
;// ./src/javascripts/core/ui/hooks/seamly-api-hooks.ts
|
|
12542
12610
|
|
|
12543
12611
|
|
|
12544
12612
|
const useSeamlyApiContext = () => {
|
|
@@ -12568,7 +12636,7 @@ const useSeamlyHasConversation = () => {
|
|
|
12568
12636
|
}, [api]);
|
|
12569
12637
|
return hasConversation;
|
|
12570
12638
|
};
|
|
12571
|
-
;// ./src/javascripts/ui/hooks/use-seamly-commands.ts
|
|
12639
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-commands.ts
|
|
12572
12640
|
|
|
12573
12641
|
|
|
12574
12642
|
|
|
@@ -12759,7 +12827,10 @@ const useSeamlyCommands = () => {
|
|
|
12759
12827
|
};
|
|
12760
12828
|
};
|
|
12761
12829
|
/* harmony default export */ const use_seamly_commands = (useSeamlyCommands);
|
|
12762
|
-
;// ./src/javascripts/ui/
|
|
12830
|
+
;// ./src/javascripts/core/ui/components/core/seamly-live-region-context.ts
|
|
12831
|
+
|
|
12832
|
+
const SeamlyLiveRegionContext = (0,external_preact_.createContext)(null);
|
|
12833
|
+
;// ./src/javascripts/core/ui/hooks/live-region-hooks.ts
|
|
12763
12834
|
|
|
12764
12835
|
|
|
12765
12836
|
|
|
@@ -12791,7 +12862,7 @@ const useLiveRegion = () => {
|
|
|
12791
12862
|
sendAssertive
|
|
12792
12863
|
};
|
|
12793
12864
|
};
|
|
12794
|
-
;// ./src/javascripts/domains/interrupt/selectors.ts
|
|
12865
|
+
;// ./src/javascripts/core/domains/interrupt/selectors.ts
|
|
12795
12866
|
|
|
12796
12867
|
const selectError = createSelector(({
|
|
12797
12868
|
interrupt
|
|
@@ -12799,7 +12870,7 @@ const selectError = createSelector(({
|
|
|
12799
12870
|
error
|
|
12800
12871
|
}) => error);
|
|
12801
12872
|
const selectHasError = createSelector(selectError, error => Boolean(error));
|
|
12802
|
-
;// ./src/javascripts/domains/interrupt/hooks.ts
|
|
12873
|
+
;// ./src/javascripts/core/domains/interrupt/hooks.ts
|
|
12803
12874
|
|
|
12804
12875
|
|
|
12805
12876
|
|
|
@@ -12850,7 +12921,7 @@ function useInterrupt() {
|
|
|
12850
12921
|
error
|
|
12851
12922
|
};
|
|
12852
12923
|
}
|
|
12853
|
-
;// ./src/javascripts/ui/hooks/use-session-expired-command.ts
|
|
12924
|
+
;// ./src/javascripts/core/ui/hooks/use-session-expired-command.ts
|
|
12854
12925
|
|
|
12855
12926
|
|
|
12856
12927
|
|
|
@@ -12896,7 +12967,7 @@ function useSessionExpiredCommand() {
|
|
|
12896
12967
|
};
|
|
12897
12968
|
}, [action, reset, isExpiredError, dispatch]);
|
|
12898
12969
|
}
|
|
12899
|
-
;// ./src/javascripts/ui/hooks/use-seamly-chat.ts
|
|
12970
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-chat.ts
|
|
12900
12971
|
|
|
12901
12972
|
|
|
12902
12973
|
|
|
@@ -12993,7 +13064,7 @@ const jsx_runtime_namespaceObject = require("preact/jsx-runtime");
|
|
|
12993
13064
|
|
|
12994
13065
|
|
|
12995
13066
|
|
|
12996
|
-
;// ./src/javascripts/ui/components/core/seamly-chat.tsx
|
|
13067
|
+
;// ./src/javascripts/core/ui/components/core/seamly-chat.tsx
|
|
12997
13068
|
|
|
12998
13069
|
|
|
12999
13070
|
const SeamlyChat = ({
|
|
@@ -13005,11 +13076,11 @@ const SeamlyChat = ({
|
|
|
13005
13076
|
});
|
|
13006
13077
|
};
|
|
13007
13078
|
/* harmony default export */ const seamly_chat = (SeamlyChat);
|
|
13008
|
-
;// ./src/javascripts/ui/components/conversation/component-context.ts
|
|
13079
|
+
;// ./src/javascripts/core/ui/components/conversation/component-context.ts
|
|
13009
13080
|
|
|
13010
13081
|
const ComponentContext = (0,external_preact_.createContext)(null);
|
|
13011
13082
|
/* harmony default export */ const component_context = (ComponentContext);
|
|
13012
|
-
;// ./src/javascripts/ui/hooks/focus-helper-hooks.ts
|
|
13083
|
+
;// ./src/javascripts/core/ui/hooks/focus-helper-hooks.ts
|
|
13013
13084
|
|
|
13014
13085
|
|
|
13015
13086
|
|
|
@@ -13053,10 +13124,10 @@ const useFocusIfSeamlyContainedFocus = () => {
|
|
|
13053
13124
|
runIfElementContainsOrHasFocus(containerElementRef.current, focusFn);
|
|
13054
13125
|
}, []);
|
|
13055
13126
|
};
|
|
13056
|
-
;// ./src/javascripts/domains/translations/selectors.ts
|
|
13127
|
+
;// ./src/javascripts/core/domains/translations/selectors.ts
|
|
13057
13128
|
|
|
13058
13129
|
const selectIsTranslated = channelEvent => createSelector(store => store.translations.translatedEventGroups, translatedEventGroups => Object.values(translatedEventGroups).every(value => channelEvent?.payload?.id && !value.includes(channelEvent.payload.id)));
|
|
13059
|
-
;// ./src/javascripts/domains/translations/hooks.ts
|
|
13130
|
+
;// ./src/javascripts/core/domains/translations/hooks.ts
|
|
13060
13131
|
|
|
13061
13132
|
|
|
13062
13133
|
|
|
@@ -13210,7 +13281,7 @@ const useTranslationProposal = () => {
|
|
|
13210
13281
|
translationProposal
|
|
13211
13282
|
};
|
|
13212
13283
|
};
|
|
13213
|
-
;// ./src/javascripts/lib/css.ts
|
|
13284
|
+
;// ./src/javascripts/core/lib/css.ts
|
|
13214
13285
|
|
|
13215
13286
|
const css_className = (...classes) => classes.flat().map(c => {
|
|
13216
13287
|
if (typeof c === 'object') {
|
|
@@ -13224,7 +13295,7 @@ const css_className = (...classes) => classes.flat().map(c => {
|
|
|
13224
13295
|
}
|
|
13225
13296
|
return [CSS_NAME, c].join('-');
|
|
13226
13297
|
}).join(' ');
|
|
13227
|
-
;// ./src/javascripts/ui/hooks/component-helper-hooks.ts
|
|
13298
|
+
;// ./src/javascripts/core/ui/hooks/component-helper-hooks.ts
|
|
13228
13299
|
|
|
13229
13300
|
|
|
13230
13301
|
const useSeamlyAppContainerClassNames = () => {
|
|
@@ -13244,7 +13315,7 @@ const useSeamlyMessageContainerClassNames = event => {
|
|
|
13244
13315
|
}
|
|
13245
13316
|
return classNames;
|
|
13246
13317
|
};
|
|
13247
|
-
;// ./src/javascripts/ui/hooks/use-seamly-conversation.ts
|
|
13318
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-conversation.ts
|
|
13248
13319
|
|
|
13249
13320
|
|
|
13250
13321
|
|
|
@@ -13254,11 +13325,11 @@ const useSeamlyConversation = () => {
|
|
|
13254
13325
|
return (0,compat_namespaceObject.useSyncExternalStore)(ConversationConnector.subscribe, getSnapshot);
|
|
13255
13326
|
};
|
|
13256
13327
|
/* harmony default export */ const use_seamly_conversation = (useSeamlyConversation);
|
|
13257
|
-
;// ./src/javascripts/ui/components/core/seamly-file-upload-context.ts
|
|
13328
|
+
;// ./src/javascripts/core/ui/components/core/seamly-file-upload-context.ts
|
|
13258
13329
|
|
|
13259
13330
|
const SeamlyFileUploadContext = (0,external_preact_.createContext)(null);
|
|
13260
13331
|
/* harmony default export */ const seamly_file_upload_context = (SeamlyFileUploadContext);
|
|
13261
|
-
;// ./src/javascripts/ui/hooks/file-upload-hooks.ts
|
|
13332
|
+
;// ./src/javascripts/core/ui/hooks/file-upload-hooks.ts
|
|
13262
13333
|
|
|
13263
13334
|
|
|
13264
13335
|
|
|
@@ -13335,7 +13406,7 @@ const useFileUploads = () => {
|
|
|
13335
13406
|
isComplete: currentUploads.every(file => file.complete)
|
|
13336
13407
|
};
|
|
13337
13408
|
};
|
|
13338
|
-
;// ./src/javascripts/ui/hooks/seamly-option-hooks.ts
|
|
13409
|
+
;// ./src/javascripts/core/ui/hooks/seamly-option-hooks.ts
|
|
13339
13410
|
|
|
13340
13411
|
|
|
13341
13412
|
|
|
@@ -13431,11 +13502,11 @@ const useOptionButton = () => {
|
|
|
13431
13502
|
focusButton
|
|
13432
13503
|
};
|
|
13433
13504
|
};
|
|
13434
|
-
;// ./src/javascripts/ui/components/core/seamly-activity-event-context.ts
|
|
13505
|
+
;// ./src/javascripts/core/ui/components/core/seamly-activity-event-context.ts
|
|
13435
13506
|
|
|
13436
13507
|
const SeamlyActivityEventContext = (0,external_preact_.createContext)(null);
|
|
13437
13508
|
/* harmony default export */ const seamly_activity_event_context = (SeamlyActivityEventContext);
|
|
13438
|
-
;// ./src/javascripts/ui/hooks/use-seamly-activity-event-handler.ts
|
|
13509
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-activity-event-handler.ts
|
|
13439
13510
|
|
|
13440
13511
|
|
|
13441
13512
|
const useSeamlyActivityEventHandler = () => {
|
|
@@ -13446,7 +13517,7 @@ const useSeamlyActivityEventHandler = () => {
|
|
|
13446
13517
|
return onActivityHandler;
|
|
13447
13518
|
};
|
|
13448
13519
|
/* harmony default export */ const use_seamly_activity_event_handler = (useSeamlyActivityEventHandler);
|
|
13449
|
-
;// ./src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.ts
|
|
13520
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-idle-detach-countdown.ts
|
|
13450
13521
|
|
|
13451
13522
|
|
|
13452
13523
|
|
|
@@ -13555,7 +13626,7 @@ const useSeamlyIdleDetachCountdown = () => {
|
|
|
13555
13626
|
};
|
|
13556
13627
|
};
|
|
13557
13628
|
/* harmony default export */ const use_seamly_idle_detach_countdown = (useSeamlyIdleDetachCountdown);
|
|
13558
|
-
;// ./src/javascripts/ui/hooks/use-seamly-resume-conversation-prompt.ts
|
|
13629
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-resume-conversation-prompt.ts
|
|
13559
13630
|
|
|
13560
13631
|
|
|
13561
13632
|
|
|
@@ -13598,7 +13669,7 @@ const useSeamlyResumeConversationPrompt = () => {
|
|
|
13598
13669
|
};
|
|
13599
13670
|
};
|
|
13600
13671
|
/* harmony default export */ const use_seamly_resume_conversation_prompt = (useSeamlyResumeConversationPrompt);
|
|
13601
|
-
;// ./src/javascripts/ui/hooks/utility-hooks.ts
|
|
13672
|
+
;// ./src/javascripts/core/ui/hooks/utility-hooks.ts
|
|
13602
13673
|
|
|
13603
13674
|
|
|
13604
13675
|
const useForceUpdate = () => {
|
|
@@ -13617,7 +13688,7 @@ const useGeneratedId = () => {
|
|
|
13617
13688
|
const [id] = (0,hooks_.useState)(() => randomId());
|
|
13618
13689
|
return id;
|
|
13619
13690
|
};
|
|
13620
|
-
;// ./src/javascripts/ui/hooks/seamly-hooks.ts
|
|
13691
|
+
;// ./src/javascripts/core/ui/hooks/seamly-hooks.ts
|
|
13621
13692
|
|
|
13622
13693
|
// Import extracted hooks here for use inside this file
|
|
13623
13694
|
|
|
@@ -13660,7 +13731,7 @@ const useSeamlyEventStream = (nextFn, filterFn) => {
|
|
|
13660
13731
|
});
|
|
13661
13732
|
}, [nextFn, filterFn, conversation]);
|
|
13662
13733
|
};
|
|
13663
|
-
;// ./src/javascripts/ui/components/conversation/event/event-participant.tsx
|
|
13734
|
+
;// ./src/javascripts/core/ui/components/conversation/event/event-participant.tsx
|
|
13664
13735
|
|
|
13665
13736
|
|
|
13666
13737
|
|
|
@@ -13712,7 +13783,7 @@ const EventParticipant = ({
|
|
|
13712
13783
|
}) : null;
|
|
13713
13784
|
};
|
|
13714
13785
|
/* harmony default export */ const event_participant = (EventParticipant);
|
|
13715
|
-
;// ./src/javascripts/ui/components/conversation/message-container.tsx
|
|
13786
|
+
;// ./src/javascripts/core/ui/components/conversation/message-container.tsx
|
|
13716
13787
|
|
|
13717
13788
|
|
|
13718
13789
|
|
|
@@ -13779,7 +13850,7 @@ const MessageContainer = ({
|
|
|
13779
13850
|
});
|
|
13780
13851
|
};
|
|
13781
13852
|
/* harmony default export */ const message_container = (MessageContainer);
|
|
13782
|
-
;// ./src/javascripts/ui/components/conversation/event/card-component.tsx
|
|
13853
|
+
;// ./src/javascripts/core/ui/components/conversation/event/card-component.tsx
|
|
13783
13854
|
|
|
13784
13855
|
|
|
13785
13856
|
|
|
@@ -13880,7 +13951,7 @@ const CardComponent = ({
|
|
|
13880
13951
|
});
|
|
13881
13952
|
};
|
|
13882
13953
|
/* harmony default export */ const card_component = (CardComponent);
|
|
13883
|
-
;// ./src/javascripts/ui/components/conversation/event/card-message.tsx
|
|
13954
|
+
;// ./src/javascripts/core/ui/components/conversation/event/card-message.tsx
|
|
13884
13955
|
|
|
13885
13956
|
|
|
13886
13957
|
|
|
@@ -13903,7 +13974,7 @@ const CardMessage = ({
|
|
|
13903
13974
|
});
|
|
13904
13975
|
};
|
|
13905
13976
|
/* harmony default export */ const card_message = (CardMessage);
|
|
13906
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-message/components/slide.tsx
|
|
13977
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-message/components/slide.tsx
|
|
13907
13978
|
|
|
13908
13979
|
|
|
13909
13980
|
|
|
@@ -13976,7 +14047,7 @@ const icon_options_32_namespaceObject = "<svg xmlns=\"http://www.w3.org/2000/svg
|
|
|
13976
14047
|
const icon_send_32_namespaceObject = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" x=\"0px\" y=\"0px\" viewBox=\"0 0 32 32\"><defs/><path fill=\"#4A48C1\" d=\"M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z\"/></svg>";
|
|
13977
14048
|
;// ./src/icons/icon_upload-32.svg
|
|
13978
14049
|
const icon_upload_32_namespaceObject = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" x=\"0px\" y=\"0px\" viewBox=\"0 0 32 32\"><defs/><path fill=\"#4A48C1\" d=\"M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z\"/></svg>";
|
|
13979
|
-
;// ./src/javascripts/ui/components/layout/icon.tsx
|
|
14050
|
+
;// ./src/javascripts/core/ui/components/layout/icon.tsx
|
|
13980
14051
|
|
|
13981
14052
|
|
|
13982
14053
|
|
|
@@ -14077,7 +14148,7 @@ const Icon = ({
|
|
|
14077
14148
|
})]
|
|
14078
14149
|
});
|
|
14079
14150
|
/* harmony default export */ const layout_icon = (Icon);
|
|
14080
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/components/controls.tsx
|
|
14151
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/components/controls.tsx
|
|
14081
14152
|
|
|
14082
14153
|
|
|
14083
14154
|
|
|
@@ -14121,7 +14192,7 @@ function CarouselControls({
|
|
|
14121
14192
|
})]
|
|
14122
14193
|
});
|
|
14123
14194
|
}
|
|
14124
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/components/pagination.tsx
|
|
14195
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/components/pagination.tsx
|
|
14125
14196
|
|
|
14126
14197
|
|
|
14127
14198
|
|
|
@@ -14162,7 +14233,7 @@ function CarouselPagination({
|
|
|
14162
14233
|
})
|
|
14163
14234
|
});
|
|
14164
14235
|
}
|
|
14165
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/index.tsx
|
|
14236
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/index.tsx
|
|
14166
14237
|
|
|
14167
14238
|
|
|
14168
14239
|
|
|
@@ -14258,7 +14329,7 @@ function CarouselComponent({
|
|
|
14258
14329
|
})]
|
|
14259
14330
|
});
|
|
14260
14331
|
}
|
|
14261
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-message/index.tsx
|
|
14332
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-message/index.tsx
|
|
14262
14333
|
|
|
14263
14334
|
|
|
14264
14335
|
|
|
@@ -14283,7 +14354,7 @@ const CarouselMessage = ({
|
|
|
14283
14354
|
});
|
|
14284
14355
|
};
|
|
14285
14356
|
/* harmony default export */ const carousel_message = (CarouselMessage);
|
|
14286
|
-
;// ./src/javascripts/ui/components/conversation/event/choice-prompt.tsx
|
|
14357
|
+
;// ./src/javascripts/core/ui/components/conversation/event/choice-prompt.tsx
|
|
14287
14358
|
|
|
14288
14359
|
|
|
14289
14360
|
|
|
@@ -14425,7 +14496,7 @@ const ChoicePrompt = ({
|
|
|
14425
14496
|
});
|
|
14426
14497
|
};
|
|
14427
14498
|
/* harmony default export */ const choice_prompt = (ChoicePrompt);
|
|
14428
|
-
;// ./src/javascripts/ui/components/suggestions/suggestions-item.tsx
|
|
14499
|
+
;// ./src/javascripts/core/ui/components/suggestions/suggestions-item.tsx
|
|
14429
14500
|
|
|
14430
14501
|
|
|
14431
14502
|
|
|
@@ -14464,7 +14535,7 @@ const SuggestionsItem = ({
|
|
|
14464
14535
|
});
|
|
14465
14536
|
};
|
|
14466
14537
|
/* harmony default export */ const suggestions_item = (SuggestionsItem);
|
|
14467
|
-
;// ./src/javascripts/ui/components/suggestions/suggestions-list.tsx
|
|
14538
|
+
;// ./src/javascripts/core/ui/components/suggestions/suggestions-list.tsx
|
|
14468
14539
|
|
|
14469
14540
|
|
|
14470
14541
|
|
|
@@ -14484,7 +14555,7 @@ const SuggestionsList = ({
|
|
|
14484
14555
|
}, suggestion.id))
|
|
14485
14556
|
});
|
|
14486
14557
|
/* harmony default export */ const suggestions_list = (SuggestionsList);
|
|
14487
|
-
;// ./src/javascripts/ui/components/conversation/event/conversation-suggestions.tsx
|
|
14558
|
+
;// ./src/javascripts/core/ui/components/conversation/event/conversation-suggestions.tsx
|
|
14488
14559
|
|
|
14489
14560
|
|
|
14490
14561
|
|
|
@@ -14590,7 +14661,7 @@ const ConversationSuggestions = ({
|
|
|
14590
14661
|
});
|
|
14591
14662
|
};
|
|
14592
14663
|
/* harmony default export */ const conversation_suggestions = (ConversationSuggestions);
|
|
14593
|
-
;// ./src/javascripts/ui/components/conversation/event/hooks/use-event-link-click-handler.ts
|
|
14664
|
+
;// ./src/javascripts/core/ui/components/conversation/event/hooks/use-event-link-click-handler.ts
|
|
14594
14665
|
|
|
14595
14666
|
|
|
14596
14667
|
const useEventLinkClickHandler = ({
|
|
@@ -14616,7 +14687,7 @@ const useEventLinkClickHandler = ({
|
|
|
14616
14687
|
return eventClick;
|
|
14617
14688
|
};
|
|
14618
14689
|
/* harmony default export */ const use_event_link_click_handler = (useEventLinkClickHandler);
|
|
14619
|
-
;// ./src/javascripts/ui/components/conversation/event/cta.tsx
|
|
14690
|
+
;// ./src/javascripts/core/ui/components/conversation/event/cta.tsx
|
|
14620
14691
|
|
|
14621
14692
|
|
|
14622
14693
|
|
|
@@ -14668,7 +14739,7 @@ const Cta = ({
|
|
|
14668
14739
|
});
|
|
14669
14740
|
};
|
|
14670
14741
|
/* harmony default export */ const cta = (Cta);
|
|
14671
|
-
;// ./src/javascripts/ui/components/conversation/event-divider.tsx
|
|
14742
|
+
;// ./src/javascripts/core/ui/components/conversation/event-divider.tsx
|
|
14672
14743
|
|
|
14673
14744
|
|
|
14674
14745
|
|
|
@@ -14718,7 +14789,7 @@ const EventDivider = ({
|
|
|
14718
14789
|
});
|
|
14719
14790
|
};
|
|
14720
14791
|
/* harmony default export */ const event_divider = (EventDivider);
|
|
14721
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/default.tsx
|
|
14792
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/default.tsx
|
|
14722
14793
|
|
|
14723
14794
|
|
|
14724
14795
|
|
|
@@ -14743,7 +14814,7 @@ const Divider = ({
|
|
|
14743
14814
|
}) : null;
|
|
14744
14815
|
};
|
|
14745
14816
|
/* harmony default export */ const variants_default = (Divider);
|
|
14746
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/new-translation.tsx
|
|
14817
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/new-translation.tsx
|
|
14747
14818
|
|
|
14748
14819
|
|
|
14749
14820
|
|
|
@@ -14798,7 +14869,7 @@ const NewTranslationDivider = ({
|
|
|
14798
14869
|
});
|
|
14799
14870
|
};
|
|
14800
14871
|
/* harmony default export */ const new_translation = (NewTranslationDivider);
|
|
14801
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/index.tsx
|
|
14872
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/index.tsx
|
|
14802
14873
|
|
|
14803
14874
|
|
|
14804
14875
|
|
|
@@ -14818,7 +14889,7 @@ const divider_Divider = ({
|
|
|
14818
14889
|
});
|
|
14819
14890
|
};
|
|
14820
14891
|
/* harmony default export */ const divider = (divider_Divider);
|
|
14821
|
-
;// ./src/javascripts/ui/components/conversation/event/hooks/use-formatted-date.ts
|
|
14892
|
+
;// ./src/javascripts/core/ui/components/conversation/event/hooks/use-formatted-date.ts
|
|
14822
14893
|
|
|
14823
14894
|
|
|
14824
14895
|
|
|
@@ -14867,7 +14938,7 @@ const useFormattedDate = date => {
|
|
|
14867
14938
|
timeUntilMidnight
|
|
14868
14939
|
};
|
|
14869
14940
|
};
|
|
14870
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/time-indicator.tsx
|
|
14941
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/time-indicator.tsx
|
|
14871
14942
|
|
|
14872
14943
|
|
|
14873
14944
|
|
|
@@ -15489,7 +15560,7 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
15489
15560
|
|
|
15490
15561
|
;// ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
15491
15562
|
/*!
|
|
15492
|
-
* focus-trap 7.6.
|
|
15563
|
+
* focus-trap 7.6.4
|
|
15493
15564
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
15494
15565
|
*/
|
|
15495
15566
|
|
|
@@ -15505,9 +15576,9 @@ function _arrayWithoutHoles(r) {
|
|
|
15505
15576
|
function _defineProperty(e, r, t) {
|
|
15506
15577
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
15507
15578
|
value: t,
|
|
15508
|
-
enumerable:
|
|
15509
|
-
configurable:
|
|
15510
|
-
writable:
|
|
15579
|
+
enumerable: true,
|
|
15580
|
+
configurable: true,
|
|
15581
|
+
writable: true
|
|
15511
15582
|
}) : e[r] = t, e;
|
|
15512
15583
|
}
|
|
15513
15584
|
function _iterableToArray(r) {
|
|
@@ -15529,7 +15600,7 @@ function ownKeys(e, r) {
|
|
|
15529
15600
|
function _objectSpread2(e) {
|
|
15530
15601
|
for (var r = 1; r < arguments.length; r++) {
|
|
15531
15602
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
15532
|
-
r % 2 ? ownKeys(Object(t),
|
|
15603
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
15533
15604
|
_defineProperty(e, r, t[r]);
|
|
15534
15605
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
15535
15606
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -15543,7 +15614,7 @@ function _toConsumableArray(r) {
|
|
|
15543
15614
|
function _toPrimitive(t, r) {
|
|
15544
15615
|
if ("object" != typeof t || !t) return t;
|
|
15545
15616
|
var e = t[Symbol.toPrimitive];
|
|
15546
|
-
if (
|
|
15617
|
+
if (undefined !== e) {
|
|
15547
15618
|
var i = e.call(t, r || "default");
|
|
15548
15619
|
if ("object" != typeof i) return i;
|
|
15549
15620
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -15558,7 +15629,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
15558
15629
|
if (r) {
|
|
15559
15630
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
15560
15631
|
var t = {}.toString.call(r).slice(8, -1);
|
|
15561
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
15632
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
|
|
15562
15633
|
}
|
|
15563
15634
|
}
|
|
15564
15635
|
|
|
@@ -15567,7 +15638,7 @@ var activeFocusTraps = {
|
|
|
15567
15638
|
if (trapStack.length > 0) {
|
|
15568
15639
|
var activeTrap = trapStack[trapStack.length - 1];
|
|
15569
15640
|
if (activeTrap !== trap) {
|
|
15570
|
-
activeTrap.
|
|
15641
|
+
activeTrap._setPausedState(true);
|
|
15571
15642
|
}
|
|
15572
15643
|
}
|
|
15573
15644
|
var trapIndex = trapStack.indexOf(trap);
|
|
@@ -15584,8 +15655,8 @@ var activeFocusTraps = {
|
|
|
15584
15655
|
if (trapIndex !== -1) {
|
|
15585
15656
|
trapStack.splice(trapIndex, 1);
|
|
15586
15657
|
}
|
|
15587
|
-
if (trapStack.length > 0) {
|
|
15588
|
-
trapStack[trapStack.length - 1].
|
|
15658
|
+
if (trapStack.length > 0 && !trapStack[trapStack.length - 1]._isManuallyPaused()) {
|
|
15659
|
+
trapStack[trapStack.length - 1]._setPausedState(false);
|
|
15589
15660
|
}
|
|
15590
15661
|
}
|
|
15591
15662
|
};
|
|
@@ -15593,10 +15664,10 @@ var isSelectableInput = function isSelectableInput(node) {
|
|
|
15593
15664
|
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
15594
15665
|
};
|
|
15595
15666
|
var isEscapeEvent = function isEscapeEvent(e) {
|
|
15596
|
-
return (e === null || e ===
|
|
15667
|
+
return (e === null || e === undefined ? undefined : e.key) === 'Escape' || (e === null || e === undefined ? undefined : e.key) === 'Esc' || (e === null || e === undefined ? undefined : e.keyCode) === 27;
|
|
15597
15668
|
};
|
|
15598
15669
|
var isTabEvent = function isTabEvent(e) {
|
|
15599
|
-
return (e === null || e ===
|
|
15670
|
+
return (e === null || e === undefined ? undefined : e.key) === 'Tab' || (e === null || e === undefined ? undefined : e.keyCode) === 9;
|
|
15600
15671
|
};
|
|
15601
15672
|
|
|
15602
15673
|
// checks for TAB by default
|
|
@@ -15623,7 +15694,7 @@ var valueOrHandler = function valueOrHandler(value) {
|
|
|
15623
15694
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
15624
15695
|
params[_key - 1] = arguments[_key];
|
|
15625
15696
|
}
|
|
15626
|
-
return typeof value === 'function' ? value.apply(
|
|
15697
|
+
return typeof value === 'function' ? value.apply(undefined, params) : value;
|
|
15627
15698
|
};
|
|
15628
15699
|
var getActualTarget = function getActualTarget(event) {
|
|
15629
15700
|
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
@@ -15642,8 +15713,8 @@ var internalTrapStack = [];
|
|
|
15642
15713
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
15643
15714
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
15644
15715
|
// should be safe code to execute if the `document` option isn't specified
|
|
15645
|
-
var doc = (userOptions === null || userOptions ===
|
|
15646
|
-
var trapStack = (userOptions === null || userOptions ===
|
|
15716
|
+
var doc = (userOptions === null || userOptions === undefined ? undefined : userOptions.document) || document;
|
|
15717
|
+
var trapStack = (userOptions === null || userOptions === undefined ? undefined : userOptions.trapStack) || internalTrapStack;
|
|
15647
15718
|
var config = _objectSpread2({
|
|
15648
15719
|
returnFocusOnDeactivate: true,
|
|
15649
15720
|
escapeDeactivates: true,
|
|
@@ -15683,6 +15754,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15683
15754
|
mostRecentlyFocusedNode: null,
|
|
15684
15755
|
active: false,
|
|
15685
15756
|
paused: false,
|
|
15757
|
+
manuallyPaused: false,
|
|
15686
15758
|
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
15687
15759
|
// has been delayed during activation
|
|
15688
15760
|
delayInitialFocusTimer: undefined,
|
|
@@ -15714,7 +15786,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15714
15786
|
* if the element isn't found.
|
|
15715
15787
|
*/
|
|
15716
15788
|
var findContainerIndex = function findContainerIndex(element, event) {
|
|
15717
|
-
var composedPath = typeof (event === null || event ===
|
|
15789
|
+
var composedPath = typeof (event === null || event === undefined ? undefined : event.composedPath) === 'function' ? event.composedPath() : undefined;
|
|
15718
15790
|
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
15719
15791
|
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
15720
15792
|
// and we still need to find the element in there
|
|
@@ -15725,7 +15797,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15725
15797
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
15726
15798
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
15727
15799
|
// look inside web components even if open)
|
|
15728
|
-
composedPath === null || composedPath ===
|
|
15800
|
+
composedPath === null || composedPath === undefined ? undefined : composedPath.includes(container)) || tabbableNodes.find(function (node) {
|
|
15729
15801
|
return node === element;
|
|
15730
15802
|
});
|
|
15731
15803
|
});
|
|
@@ -15752,12 +15824,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15752
15824
|
var getNodeForOption = function getNodeForOption(optionName) {
|
|
15753
15825
|
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
15754
15826
|
_ref2$hasFallback = _ref2.hasFallback,
|
|
15755
|
-
hasFallback = _ref2$hasFallback ===
|
|
15827
|
+
hasFallback = _ref2$hasFallback === undefined ? false : _ref2$hasFallback,
|
|
15756
15828
|
_ref2$params = _ref2.params,
|
|
15757
|
-
params = _ref2$params ===
|
|
15829
|
+
params = _ref2$params === undefined ? [] : _ref2$params;
|
|
15758
15830
|
var optionValue = config[optionName];
|
|
15759
15831
|
if (typeof optionValue === 'function') {
|
|
15760
|
-
optionValue = optionValue.apply(
|
|
15832
|
+
optionValue = optionValue.apply(undefined, _toConsumableArray(params));
|
|
15761
15833
|
}
|
|
15762
15834
|
if (optionValue === true) {
|
|
15763
15835
|
optionValue = undefined; // use default value
|
|
@@ -15973,7 +16045,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15973
16045
|
var target = _ref3.target,
|
|
15974
16046
|
event = _ref3.event,
|
|
15975
16047
|
_ref3$isBackward = _ref3.isBackward,
|
|
15976
|
-
isBackward = _ref3$isBackward ===
|
|
16048
|
+
isBackward = _ref3$isBackward === undefined ? false : _ref3$isBackward;
|
|
15977
16049
|
target = target || getActualTarget(event);
|
|
15978
16050
|
updateTabbableNodes();
|
|
15979
16051
|
var destinationNode = null;
|
|
@@ -16355,14 +16427,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16355
16427
|
state.active = true;
|
|
16356
16428
|
state.paused = false;
|
|
16357
16429
|
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
16358
|
-
onActivate === null || onActivate ===
|
|
16430
|
+
onActivate === null || onActivate === undefined || onActivate();
|
|
16359
16431
|
var finishActivation = function finishActivation() {
|
|
16360
16432
|
if (checkCanFocusTrap) {
|
|
16361
16433
|
updateTabbableNodes();
|
|
16362
16434
|
}
|
|
16363
16435
|
addListeners();
|
|
16364
16436
|
updateObservedNodes();
|
|
16365
|
-
onPostActivate === null || onPostActivate ===
|
|
16437
|
+
onPostActivate === null || onPostActivate === undefined || onPostActivate();
|
|
16366
16438
|
};
|
|
16367
16439
|
if (checkCanFocusTrap) {
|
|
16368
16440
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
@@ -16391,13 +16463,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16391
16463
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
16392
16464
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
16393
16465
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
16394
|
-
onDeactivate === null || onDeactivate ===
|
|
16466
|
+
onDeactivate === null || onDeactivate === undefined || onDeactivate();
|
|
16395
16467
|
var finishDeactivation = function finishDeactivation() {
|
|
16396
16468
|
delay(function () {
|
|
16397
16469
|
if (returnFocus) {
|
|
16398
16470
|
_tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
16399
16471
|
}
|
|
16400
|
-
onPostDeactivate === null || onPostDeactivate ===
|
|
16472
|
+
onPostDeactivate === null || onPostDeactivate === undefined || onPostDeactivate();
|
|
16401
16473
|
});
|
|
16402
16474
|
};
|
|
16403
16475
|
if (returnFocus && checkCanReturnFocus) {
|
|
@@ -16408,31 +16480,21 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16408
16480
|
return this;
|
|
16409
16481
|
},
|
|
16410
16482
|
pause: function pause(pauseOptions) {
|
|
16411
|
-
if (
|
|
16483
|
+
if (!state.active) {
|
|
16412
16484
|
return this;
|
|
16413
16485
|
}
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
state.paused = true;
|
|
16417
|
-
onPause === null || onPause === void 0 || onPause();
|
|
16418
|
-
removeListeners();
|
|
16419
|
-
updateObservedNodes();
|
|
16420
|
-
onPostPause === null || onPostPause === void 0 || onPostPause();
|
|
16421
|
-
return this;
|
|
16486
|
+
state.manuallyPaused = true;
|
|
16487
|
+
return this._setPausedState(true, pauseOptions);
|
|
16422
16488
|
},
|
|
16423
16489
|
unpause: function unpause(unpauseOptions) {
|
|
16424
|
-
if (!state.
|
|
16490
|
+
if (!state.active) {
|
|
16425
16491
|
return this;
|
|
16426
16492
|
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
addListeners();
|
|
16433
|
-
updateObservedNodes();
|
|
16434
|
-
onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause();
|
|
16435
|
-
return this;
|
|
16493
|
+
state.manuallyPaused = false;
|
|
16494
|
+
if (trapStack[trapStack.length - 1] !== this) {
|
|
16495
|
+
return this;
|
|
16496
|
+
}
|
|
16497
|
+
return this._setPausedState(false, unpauseOptions);
|
|
16436
16498
|
},
|
|
16437
16499
|
updateContainerElements: function updateContainerElements(containerElements) {
|
|
16438
16500
|
var elementsAsArray = [].concat(containerElements).filter(Boolean);
|
|
@@ -16446,6 +16508,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16446
16508
|
return this;
|
|
16447
16509
|
}
|
|
16448
16510
|
};
|
|
16511
|
+
Object.defineProperties(trap, {
|
|
16512
|
+
_isManuallyPaused: {
|
|
16513
|
+
value: function value() {
|
|
16514
|
+
return state.manuallyPaused;
|
|
16515
|
+
}
|
|
16516
|
+
},
|
|
16517
|
+
_setPausedState: {
|
|
16518
|
+
value: function value(paused, options) {
|
|
16519
|
+
if (state.paused === paused) {
|
|
16520
|
+
return this;
|
|
16521
|
+
}
|
|
16522
|
+
state.paused = paused;
|
|
16523
|
+
if (paused) {
|
|
16524
|
+
var onPause = getOption(options, 'onPause');
|
|
16525
|
+
var onPostPause = getOption(options, 'onPostPause');
|
|
16526
|
+
onPause === null || onPause === undefined || onPause();
|
|
16527
|
+
removeListeners();
|
|
16528
|
+
updateObservedNodes();
|
|
16529
|
+
onPostPause === null || onPostPause === undefined || onPostPause();
|
|
16530
|
+
} else {
|
|
16531
|
+
var onUnpause = getOption(options, 'onUnpause');
|
|
16532
|
+
var onPostUnpause = getOption(options, 'onPostUnpause');
|
|
16533
|
+
onUnpause === null || onUnpause === undefined || onUnpause();
|
|
16534
|
+
updateTabbableNodes();
|
|
16535
|
+
addListeners();
|
|
16536
|
+
updateObservedNodes();
|
|
16537
|
+
onPostUnpause === null || onPostUnpause === undefined || onPostUnpause();
|
|
16538
|
+
}
|
|
16539
|
+
return this;
|
|
16540
|
+
}
|
|
16541
|
+
}
|
|
16542
|
+
});
|
|
16449
16543
|
|
|
16450
16544
|
// initialize container elements
|
|
16451
16545
|
trap.updateContainerElements(elements);
|
|
@@ -16455,7 +16549,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16455
16549
|
|
|
16456
16550
|
//# sourceMappingURL=focus-trap.esm.js.map
|
|
16457
16551
|
|
|
16458
|
-
;// ./src/javascripts/ui/components/widgets/modal.tsx
|
|
16552
|
+
;// ./src/javascripts/core/ui/components/widgets/modal.tsx
|
|
16459
16553
|
|
|
16460
16554
|
|
|
16461
16555
|
|
|
@@ -16552,7 +16646,7 @@ const Modal = ({
|
|
|
16552
16646
|
}), modalContainer.current);
|
|
16553
16647
|
};
|
|
16554
16648
|
/* harmony default export */ const modal = (Modal);
|
|
16555
|
-
;// ./src/javascripts/ui/components/widgets/lightbox.tsx
|
|
16649
|
+
;// ./src/javascripts/core/ui/components/widgets/lightbox.tsx
|
|
16556
16650
|
|
|
16557
16651
|
|
|
16558
16652
|
|
|
@@ -16638,7 +16732,7 @@ const Lightbox = ({
|
|
|
16638
16732
|
});
|
|
16639
16733
|
};
|
|
16640
16734
|
/* harmony default export */ const lightbox = (Lightbox);
|
|
16641
|
-
;// ./src/javascripts/ui/components/conversation/event/image-lightbox.tsx
|
|
16735
|
+
;// ./src/javascripts/core/ui/components/conversation/event/image-lightbox.tsx
|
|
16642
16736
|
|
|
16643
16737
|
|
|
16644
16738
|
|
|
@@ -16679,7 +16773,7 @@ const ImageLightbox = ({
|
|
|
16679
16773
|
});
|
|
16680
16774
|
};
|
|
16681
16775
|
/* harmony default export */ const image_lightbox = (ImageLightbox);
|
|
16682
|
-
;// ./src/javascripts/ui/components/conversation/event/image.tsx
|
|
16776
|
+
;// ./src/javascripts/core/ui/components/conversation/event/image.tsx
|
|
16683
16777
|
|
|
16684
16778
|
|
|
16685
16779
|
|
|
@@ -16717,7 +16811,7 @@ const image_Image = ({
|
|
|
16717
16811
|
});
|
|
16718
16812
|
};
|
|
16719
16813
|
/* harmony default export */ const event_image = (image_Image);
|
|
16720
|
-
;// ./src/javascripts/ui/components/conversation/event/participant.tsx
|
|
16814
|
+
;// ./src/javascripts/core/ui/components/conversation/event/participant.tsx
|
|
16721
16815
|
|
|
16722
16816
|
|
|
16723
16817
|
|
|
@@ -16742,7 +16836,7 @@ const Participant = ({
|
|
|
16742
16836
|
});
|
|
16743
16837
|
};
|
|
16744
16838
|
/* harmony default export */ const participant = (Participant);
|
|
16745
|
-
;// ./src/javascripts/ui/components/conversation/event/splash.tsx
|
|
16839
|
+
;// ./src/javascripts/core/ui/components/conversation/event/splash.tsx
|
|
16746
16840
|
|
|
16747
16841
|
|
|
16748
16842
|
|
|
@@ -16775,7 +16869,7 @@ const Splash = ({
|
|
|
16775
16869
|
});
|
|
16776
16870
|
};
|
|
16777
16871
|
/* harmony default export */ const splash = (Splash);
|
|
16778
|
-
;// ./src/javascripts/ui/components/conversation/event/text.tsx
|
|
16872
|
+
;// ./src/javascripts/core/ui/components/conversation/event/text.tsx
|
|
16779
16873
|
|
|
16780
16874
|
|
|
16781
16875
|
|
|
@@ -16817,7 +16911,7 @@ const Text = ({
|
|
|
16817
16911
|
});
|
|
16818
16912
|
};
|
|
16819
16913
|
/* harmony default export */ const event_text = (Text);
|
|
16820
|
-
;// ./src/javascripts/ui/components/conversation/event/translation.tsx
|
|
16914
|
+
;// ./src/javascripts/core/ui/components/conversation/event/translation.tsx
|
|
16821
16915
|
|
|
16822
16916
|
|
|
16823
16917
|
|
|
@@ -16840,7 +16934,7 @@ const Translation = ({
|
|
|
16840
16934
|
});
|
|
16841
16935
|
};
|
|
16842
16936
|
/* harmony default export */ const translation = (Translation);
|
|
16843
|
-
;// ./src/javascripts/ui/components/conversation/event/upload.tsx
|
|
16937
|
+
;// ./src/javascripts/core/ui/components/conversation/event/upload.tsx
|
|
16844
16938
|
|
|
16845
16939
|
|
|
16846
16940
|
|
|
@@ -16978,7 +17072,7 @@ const Upload = ({
|
|
|
16978
17072
|
});
|
|
16979
17073
|
};
|
|
16980
17074
|
/* harmony default export */ const upload = (Upload);
|
|
16981
|
-
;// ./src/javascripts/ui/components/conversation/event/video.tsx
|
|
17075
|
+
;// ./src/javascripts/core/ui/components/conversation/event/video.tsx
|
|
16982
17076
|
|
|
16983
17077
|
|
|
16984
17078
|
|
|
@@ -17012,7 +17106,7 @@ const Video = ({
|
|
|
17012
17106
|
});
|
|
17013
17107
|
};
|
|
17014
17108
|
/* harmony default export */ const video = (Video);
|
|
17015
|
-
;// ./src/javascripts/ui/components/conversation/component-filter.tsx
|
|
17109
|
+
;// ./src/javascripts/core/ui/components/conversation/component-filter.tsx
|
|
17016
17110
|
|
|
17017
17111
|
|
|
17018
17112
|
|
|
@@ -17081,7 +17175,7 @@ const ComponentFilter = ({
|
|
|
17081
17175
|
});
|
|
17082
17176
|
};
|
|
17083
17177
|
/* harmony default export */ const component_filter = (ComponentFilter);
|
|
17084
|
-
;// ./src/javascripts/ui/components/core/seamly-activity-monitor.tsx
|
|
17178
|
+
;// ./src/javascripts/core/ui/components/core/seamly-activity-monitor.tsx
|
|
17085
17179
|
|
|
17086
17180
|
|
|
17087
17181
|
|
|
@@ -17145,7 +17239,7 @@ const SeamlyActivityMonitor = ({
|
|
|
17145
17239
|
});
|
|
17146
17240
|
};
|
|
17147
17241
|
/* harmony default export */ const seamly_activity_monitor = (SeamlyActivityMonitor);
|
|
17148
|
-
;// ./src/javascripts/ui/components/core/seamly-event-subscriber.ts
|
|
17242
|
+
;// ./src/javascripts/core/ui/components/core/seamly-event-subscriber.ts
|
|
17149
17243
|
|
|
17150
17244
|
|
|
17151
17245
|
|
|
@@ -17427,7 +17521,7 @@ const SeamlyEventSubscriber = () => {
|
|
|
17427
17521
|
return null;
|
|
17428
17522
|
};
|
|
17429
17523
|
/* harmony default export */ const seamly_event_subscriber = (SeamlyEventSubscriber);
|
|
17430
|
-
;// ./src/javascripts/ui/components/core/seamly-file-upload.tsx
|
|
17524
|
+
;// ./src/javascripts/core/ui/components/core/seamly-file-upload.tsx
|
|
17431
17525
|
|
|
17432
17526
|
|
|
17433
17527
|
|
|
@@ -17556,7 +17650,7 @@ const SeamlyFileUpload = ({
|
|
|
17556
17650
|
});
|
|
17557
17651
|
};
|
|
17558
17652
|
/* harmony default export */ const seamly_file_upload = (SeamlyFileUpload);
|
|
17559
|
-
;// ./src/javascripts/ui/hooks/use-interval.ts
|
|
17653
|
+
;// ./src/javascripts/core/ui/hooks/use-interval.ts
|
|
17560
17654
|
|
|
17561
17655
|
const useInterval = (callback, delay) => {
|
|
17562
17656
|
const savedCallback = (0,hooks_.useRef)(callback);
|
|
@@ -17576,7 +17670,7 @@ const useInterval = (callback, delay) => {
|
|
|
17576
17670
|
}, [delay]);
|
|
17577
17671
|
};
|
|
17578
17672
|
/* harmony default export */ const use_interval = (useInterval);
|
|
17579
|
-
;// ./src/javascripts/ui/components/core/seamly-idle-detach-counter.ts
|
|
17673
|
+
;// ./src/javascripts/core/ui/components/core/seamly-idle-detach-counter.ts
|
|
17580
17674
|
|
|
17581
17675
|
|
|
17582
17676
|
const SeamlyIdleDetachCounter = () => {
|
|
@@ -17592,7 +17686,7 @@ const SeamlyIdleDetachCounter = () => {
|
|
|
17592
17686
|
return null;
|
|
17593
17687
|
};
|
|
17594
17688
|
/* harmony default export */ const seamly_idle_detach_counter = (SeamlyIdleDetachCounter);
|
|
17595
|
-
;// ./src/javascripts/ui/components/core/seamly-initializer.tsx
|
|
17689
|
+
;// ./src/javascripts/core/ui/components/core/seamly-initializer.tsx
|
|
17596
17690
|
|
|
17597
17691
|
|
|
17598
17692
|
|
|
@@ -17611,7 +17705,7 @@ const SeamlyInitializer = () => {
|
|
|
17611
17705
|
return null;
|
|
17612
17706
|
};
|
|
17613
17707
|
/* harmony default export */ const seamly_initializer = (SeamlyInitializer);
|
|
17614
|
-
;// ./src/javascripts/ui/components/core/seamly-instance-functions-loader.ts
|
|
17708
|
+
;// ./src/javascripts/core/ui/components/core/seamly-instance-functions-loader.ts
|
|
17615
17709
|
|
|
17616
17710
|
|
|
17617
17711
|
|
|
@@ -17775,7 +17869,7 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17775
17869
|
return null;
|
|
17776
17870
|
};
|
|
17777
17871
|
/* harmony default export */ const seamly_instance_functions_loader = (SeamlyInstanceFunctionsLoader);
|
|
17778
|
-
;// ./src/javascripts/ui/components/core/seamly-live-region.tsx
|
|
17872
|
+
;// ./src/javascripts/core/ui/components/core/seamly-live-region.tsx
|
|
17779
17873
|
|
|
17780
17874
|
|
|
17781
17875
|
|
|
@@ -17832,7 +17926,7 @@ const SeamlyLiveRegion = ({
|
|
|
17832
17926
|
});
|
|
17833
17927
|
};
|
|
17834
17928
|
/* harmony default export */ const seamly_live_region = (SeamlyLiveRegion);
|
|
17835
|
-
;// ./src/javascripts/ui/components/core/seamly-new-notifications.ts
|
|
17929
|
+
;// ./src/javascripts/core/ui/components/core/seamly-new-notifications.ts
|
|
17836
17930
|
|
|
17837
17931
|
|
|
17838
17932
|
|
|
@@ -17894,7 +17988,7 @@ const SeamlyNewNotifications = () => {
|
|
|
17894
17988
|
return null;
|
|
17895
17989
|
};
|
|
17896
17990
|
/* harmony default export */ const seamly_new_notifications = (SeamlyNewNotifications);
|
|
17897
|
-
;// ./src/javascripts/ui/components/core/seamly-read-state.ts
|
|
17991
|
+
;// ./src/javascripts/core/ui/components/core/seamly-read-state.ts
|
|
17898
17992
|
|
|
17899
17993
|
|
|
17900
17994
|
|
|
@@ -17930,7 +18024,7 @@ const SeamlyReadState = () => {
|
|
|
17930
18024
|
return null;
|
|
17931
18025
|
};
|
|
17932
18026
|
/* harmony default export */ const seamly_read_state = (SeamlyReadState);
|
|
17933
|
-
;// ./src/javascripts/ui/components/core/seamly-core.tsx
|
|
18027
|
+
;// ./src/javascripts/core/ui/components/core/seamly-core.tsx
|
|
17934
18028
|
|
|
17935
18029
|
|
|
17936
18030
|
|
|
@@ -17979,7 +18073,7 @@ const SeamlyCore = ({
|
|
|
17979
18073
|
});
|
|
17980
18074
|
};
|
|
17981
18075
|
/* harmony default export */ const seamly_core = (SeamlyCore);
|
|
17982
|
-
;// ./src/javascripts/domains/store/selectors.ts
|
|
18076
|
+
;// ./src/javascripts/core/domains/store/selectors.ts
|
|
17983
18077
|
|
|
17984
18078
|
|
|
17985
18079
|
|
|
@@ -18001,16 +18095,7 @@ const selectUnreadEventIds = createSelector(selectUnreadEvents, events => events
|
|
|
18001
18095
|
const selectShowNotifications = createSelector(({
|
|
18002
18096
|
state
|
|
18003
18097
|
}) => state.options.features?.webNotifications, webNotifications => webNotifications?.enabled);
|
|
18004
|
-
;// ./src/javascripts/
|
|
18005
|
-
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
;// ./src/javascripts/ui/components/layout/privacy-disclaimer.tsx
|
|
18098
|
+
;// ./src/javascripts/core/ui/components/layout/privacy-disclaimer.tsx
|
|
18014
18099
|
|
|
18015
18100
|
|
|
18016
18101
|
|
|
@@ -18037,7 +18122,7 @@ const PrivacyDisclaimer = () => {
|
|
|
18037
18122
|
}) : null;
|
|
18038
18123
|
};
|
|
18039
18124
|
/* harmony default export */ const privacy_disclaimer = (PrivacyDisclaimer);
|
|
18040
|
-
;// ./src/javascripts/ui/hooks/use-debounce.ts
|
|
18125
|
+
;// ./src/javascripts/core/ui/hooks/use-debounce.ts
|
|
18041
18126
|
|
|
18042
18127
|
const useDebounce = (value, delay = 20) => {
|
|
18043
18128
|
const [debouncedValue, setDebouncedValue] = (0,hooks_.useState)(value);
|
|
@@ -18051,7 +18136,7 @@ const useDebounce = (value, delay = 20) => {
|
|
|
18051
18136
|
return debouncedValue;
|
|
18052
18137
|
};
|
|
18053
18138
|
/* harmony default export */ const use_debounce = (useDebounce);
|
|
18054
|
-
;// ./src/javascripts/domains/forms/selectors.ts
|
|
18139
|
+
;// ./src/javascripts/core/domains/forms/selectors.ts
|
|
18055
18140
|
|
|
18056
18141
|
const getState = ({
|
|
18057
18142
|
forms
|
|
@@ -18075,7 +18160,7 @@ const getControlValueByName = createSelector([getFormControlsByFormId, (_, {
|
|
|
18075
18160
|
const getControlTouchedByName = createSelector([getFormControlsByFormId, (_, {
|
|
18076
18161
|
name
|
|
18077
18162
|
}) => name], (controls, name) => controls[name]?.touched);
|
|
18078
|
-
;// ./src/javascripts/domains/forms/context.ts
|
|
18163
|
+
;// ./src/javascripts/core/domains/forms/context.ts
|
|
18079
18164
|
|
|
18080
18165
|
const FormContext = (0,external_preact_.createContext)({
|
|
18081
18166
|
handleSubmit: () => undefined,
|
|
@@ -18090,7 +18175,7 @@ const {
|
|
|
18090
18175
|
Consumer
|
|
18091
18176
|
} = FormContext;
|
|
18092
18177
|
/* harmony default export */ const context = (FormContext);
|
|
18093
|
-
;// ./src/javascripts/domains/forms/utils.ts
|
|
18178
|
+
;// ./src/javascripts/core/domains/forms/utils.ts
|
|
18094
18179
|
function validate(values, schema = {}) {
|
|
18095
18180
|
return Object.entries(schema).reduce((errors, [key, validations]) => {
|
|
18096
18181
|
const validationsArr = !Array.isArray(validations) ? [validations] : validations;
|
|
@@ -18103,7 +18188,7 @@ function validate(values, schema = {}) {
|
|
|
18103
18188
|
return errors;
|
|
18104
18189
|
}, {});
|
|
18105
18190
|
}
|
|
18106
|
-
;// ./src/javascripts/domains/forms/hooks.ts
|
|
18191
|
+
;// ./src/javascripts/core/domains/forms/hooks.ts
|
|
18107
18192
|
|
|
18108
18193
|
|
|
18109
18194
|
|
|
@@ -18194,7 +18279,7 @@ function useFormControl(name) {
|
|
|
18194
18279
|
}), [isValid, error, touched]);
|
|
18195
18280
|
return [field, meta];
|
|
18196
18281
|
}
|
|
18197
|
-
;// ./src/javascripts/ui/components/entry/text-entry/hooks.ts
|
|
18282
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/hooks.ts
|
|
18198
18283
|
|
|
18199
18284
|
|
|
18200
18285
|
|
|
@@ -18289,7 +18374,7 @@ const useEntryAbortTransaction = () => {
|
|
|
18289
18374
|
clearEntryAbortTransaction
|
|
18290
18375
|
};
|
|
18291
18376
|
};
|
|
18292
|
-
;// ./src/javascripts/ui/components/entry/abort-transaction-button/abort-transaction-button.tsx
|
|
18377
|
+
;// ./src/javascripts/core/ui/components/entry/abort-transaction-button/abort-transaction-button.tsx
|
|
18293
18378
|
|
|
18294
18379
|
|
|
18295
18380
|
|
|
@@ -18322,7 +18407,7 @@ function AbortTransactionButton() {
|
|
|
18322
18407
|
})
|
|
18323
18408
|
});
|
|
18324
18409
|
}
|
|
18325
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/chat-scroll-context.ts
|
|
18410
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/chat-scroll-context.ts
|
|
18326
18411
|
|
|
18327
18412
|
|
|
18328
18413
|
const ChatScrollContext = (0,external_preact_.createContext)(null);
|
|
@@ -18334,7 +18419,7 @@ const useChatScrollContext = () => {
|
|
|
18334
18419
|
return context;
|
|
18335
18420
|
};
|
|
18336
18421
|
/* harmony default export */ const chat_scroll_context = (ChatScrollContext);
|
|
18337
|
-
;// ./src/javascripts/ui/hooks/use-event-component-mapping.ts
|
|
18422
|
+
;// ./src/javascripts/core/ui/hooks/use-event-component-mapping.ts
|
|
18338
18423
|
|
|
18339
18424
|
|
|
18340
18425
|
|
|
@@ -18362,7 +18447,7 @@ const useEventComponentMapping = event => {
|
|
|
18362
18447
|
return [Component || components?.fallback, SubComponent];
|
|
18363
18448
|
};
|
|
18364
18449
|
/* harmony default export */ const use_event_component_mapping = (useEventComponentMapping);
|
|
18365
|
-
;// ./src/javascripts/ui/components/conversation/event/event.tsx
|
|
18450
|
+
;// ./src/javascripts/core/ui/components/conversation/event/event.tsx
|
|
18366
18451
|
|
|
18367
18452
|
|
|
18368
18453
|
|
|
@@ -18434,7 +18519,7 @@ const event_Event = ({
|
|
|
18434
18519
|
});
|
|
18435
18520
|
};
|
|
18436
18521
|
/* harmony default export */ const event_event = (event_Event);
|
|
18437
|
-
;// ./src/javascripts/ui/components/conversation/loader.tsx
|
|
18522
|
+
;// ./src/javascripts/core/ui/components/conversation/loader.tsx
|
|
18438
18523
|
|
|
18439
18524
|
|
|
18440
18525
|
|
|
@@ -18471,7 +18556,7 @@ const Loader = () => {
|
|
|
18471
18556
|
});
|
|
18472
18557
|
};
|
|
18473
18558
|
/* harmony default export */ const loader = (Loader);
|
|
18474
|
-
;// ./src/javascripts/ui/components/conversation/conversation.tsx
|
|
18559
|
+
;// ./src/javascripts/core/ui/components/conversation/conversation.tsx
|
|
18475
18560
|
|
|
18476
18561
|
|
|
18477
18562
|
|
|
@@ -18548,7 +18633,7 @@ const Conversation = () => {
|
|
|
18548
18633
|
});
|
|
18549
18634
|
};
|
|
18550
18635
|
/* harmony default export */ const conversation = (Conversation);
|
|
18551
|
-
;// ./src/javascripts/ui/hooks/use-timeout.ts
|
|
18636
|
+
;// ./src/javascripts/core/ui/hooks/use-timeout.ts
|
|
18552
18637
|
|
|
18553
18638
|
function useTimeout(callback, delay) {
|
|
18554
18639
|
const timeoutRef = (0,hooks_.useRef)(null);
|
|
@@ -18565,7 +18650,7 @@ function useTimeout(callback, delay) {
|
|
|
18565
18650
|
}, [delay]);
|
|
18566
18651
|
return timeoutRef;
|
|
18567
18652
|
}
|
|
18568
|
-
;// ./src/javascripts/ui/components/widgets/in-out-transition.tsx
|
|
18653
|
+
;// ./src/javascripts/core/ui/components/widgets/in-out-transition.tsx
|
|
18569
18654
|
|
|
18570
18655
|
|
|
18571
18656
|
|
|
@@ -18662,7 +18747,7 @@ const InOutTransition = ({
|
|
|
18662
18747
|
});
|
|
18663
18748
|
};
|
|
18664
18749
|
/* harmony default export */ const in_out_transition = (InOutTransition);
|
|
18665
|
-
;// ./src/javascripts/ui/components/suggestions/index.tsx
|
|
18750
|
+
;// ./src/javascripts/core/ui/components/suggestions/index.tsx
|
|
18666
18751
|
|
|
18667
18752
|
|
|
18668
18753
|
|
|
@@ -18838,7 +18923,7 @@ const Suggestions = ({
|
|
|
18838
18923
|
});
|
|
18839
18924
|
};
|
|
18840
18925
|
/* harmony default export */ const suggestions = (Suggestions);
|
|
18841
|
-
;// ./src/javascripts/ui/components/layout/chat.tsx
|
|
18926
|
+
;// ./src/javascripts/core/ui/components/layout/chat.tsx
|
|
18842
18927
|
|
|
18843
18928
|
|
|
18844
18929
|
|
|
@@ -18905,7 +18990,7 @@ const Chat = (0,compat_namespaceObject.forwardRef)(({
|
|
|
18905
18990
|
});
|
|
18906
18991
|
});
|
|
18907
18992
|
/* harmony default export */ const chat = (Chat);
|
|
18908
|
-
;// ./src/javascripts/ui/components/chat-status/index.tsx
|
|
18993
|
+
;// ./src/javascripts/core/ui/components/chat-status/index.tsx
|
|
18909
18994
|
|
|
18910
18995
|
|
|
18911
18996
|
|
|
@@ -18947,7 +19032,7 @@ const ChatStatus = ({
|
|
|
18947
19032
|
});
|
|
18948
19033
|
};
|
|
18949
19034
|
/* harmony default export */ const chat_status = (ChatStatus);
|
|
18950
|
-
;// ./src/javascripts/ui/components/chat-status/chat-status-action.tsx
|
|
19035
|
+
;// ./src/javascripts/core/ui/components/chat-status/chat-status-action.tsx
|
|
18951
19036
|
|
|
18952
19037
|
|
|
18953
19038
|
|
|
@@ -18970,7 +19055,7 @@ const ChatStatusAction = ({
|
|
|
18970
19055
|
})]
|
|
18971
19056
|
});
|
|
18972
19057
|
/* harmony default export */ const chat_status_action = (ChatStatusAction);
|
|
18973
|
-
;// ./src/javascripts/ui/components/translation-proposal/index.tsx
|
|
19058
|
+
;// ./src/javascripts/core/ui/components/translation-proposal/index.tsx
|
|
18974
19059
|
|
|
18975
19060
|
|
|
18976
19061
|
|
|
@@ -19000,7 +19085,7 @@ function TranslationProposal() {
|
|
|
19000
19085
|
})
|
|
19001
19086
|
});
|
|
19002
19087
|
}
|
|
19003
|
-
;// ./src/javascripts/domains/translations/components/translation-status.tsx
|
|
19088
|
+
;// ./src/javascripts/core/domains/translations/components/translation-status.tsx
|
|
19004
19089
|
|
|
19005
19090
|
|
|
19006
19091
|
|
|
@@ -19016,7 +19101,7 @@ function TranslationStatus() {
|
|
|
19016
19101
|
}
|
|
19017
19102
|
return !isActive ? /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(TranslationProposal, {}) : null;
|
|
19018
19103
|
}
|
|
19019
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/translation-option.tsx
|
|
19104
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/translation-option.tsx
|
|
19020
19105
|
|
|
19021
19106
|
|
|
19022
19107
|
|
|
@@ -19052,7 +19137,7 @@ const TranslationOption = ({
|
|
|
19052
19137
|
});
|
|
19053
19138
|
};
|
|
19054
19139
|
/* harmony default export */ const translation_option = (TranslationOption);
|
|
19055
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/translation-options.tsx
|
|
19140
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/translation-options.tsx
|
|
19056
19141
|
|
|
19057
19142
|
|
|
19058
19143
|
|
|
@@ -19154,7 +19239,7 @@ const TranslationOptions = ({
|
|
|
19154
19239
|
});
|
|
19155
19240
|
};
|
|
19156
19241
|
/* harmony default export */ const translation_options = (TranslationOptions);
|
|
19157
|
-
;// ./src/javascripts/ui/hooks/use-click-outside.ts
|
|
19242
|
+
;// ./src/javascripts/core/ui/hooks/use-click-outside.ts
|
|
19158
19243
|
|
|
19159
19244
|
const useClickOutside = callback => {
|
|
19160
19245
|
const ref = (0,hooks_.useRef)(null);
|
|
@@ -19176,7 +19261,7 @@ const useClickOutside = callback => {
|
|
|
19176
19261
|
return ref;
|
|
19177
19262
|
};
|
|
19178
19263
|
/* harmony default export */ const use_click_outside = (useClickOutside);
|
|
19179
|
-
;// ./src/javascripts/ui/components/options/options-frame.tsx
|
|
19264
|
+
;// ./src/javascripts/core/ui/components/options/options-frame.tsx
|
|
19180
19265
|
|
|
19181
19266
|
|
|
19182
19267
|
|
|
@@ -19269,7 +19354,7 @@ const OptionsFrame = ({
|
|
|
19269
19354
|
});
|
|
19270
19355
|
};
|
|
19271
19356
|
/* harmony default export */ const options_frame = (OptionsFrame);
|
|
19272
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/index.tsx
|
|
19357
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/index.tsx
|
|
19273
19358
|
|
|
19274
19359
|
|
|
19275
19360
|
|
|
@@ -19298,7 +19383,7 @@ function TranslationsOptionsDialog({
|
|
|
19298
19383
|
});
|
|
19299
19384
|
}
|
|
19300
19385
|
/* harmony default export */ const options_dialog = (TranslationsOptionsDialog);
|
|
19301
|
-
;// ./src/javascripts/domains/translations/components/options-button.tsx
|
|
19386
|
+
;// ./src/javascripts/core/domains/translations/components/options-button.tsx
|
|
19302
19387
|
|
|
19303
19388
|
|
|
19304
19389
|
|
|
@@ -19365,7 +19450,7 @@ function TranslationsOptionsButton({
|
|
|
19365
19450
|
})]
|
|
19366
19451
|
});
|
|
19367
19452
|
}
|
|
19368
|
-
;// ./src/javascripts/domains/forms/provider.tsx
|
|
19453
|
+
;// ./src/javascripts/core/domains/forms/provider.tsx
|
|
19369
19454
|
|
|
19370
19455
|
|
|
19371
19456
|
|
|
@@ -19489,13 +19574,13 @@ const FormProvider = ({
|
|
|
19489
19574
|
});
|
|
19490
19575
|
};
|
|
19491
19576
|
/* harmony default export */ const provider = (FormProvider);
|
|
19492
|
-
;// ./src/javascripts/ui/utils/form-utils.ts
|
|
19577
|
+
;// ./src/javascripts/core/ui/utils/form-utils.ts
|
|
19493
19578
|
const getValidator = (fn, errorText, compareValue = null) => ({
|
|
19494
19579
|
fn,
|
|
19495
19580
|
errorText,
|
|
19496
19581
|
compareValue
|
|
19497
19582
|
});
|
|
19498
|
-
;// ./src/javascripts/ui/utils/validations.ts
|
|
19583
|
+
;// ./src/javascripts/core/ui/utils/validations.ts
|
|
19499
19584
|
const validateFileSize = (fileList, maxSize) => {
|
|
19500
19585
|
let isValid = true;
|
|
19501
19586
|
for (let i = 0; i < fileList.length; i++) {
|
|
@@ -19516,7 +19601,7 @@ const isEmailString = val => {
|
|
|
19516
19601
|
/* eslint-enable no-control-regex */
|
|
19517
19602
|
|
|
19518
19603
|
const isNotEmptyString = val => !!val;
|
|
19519
|
-
;// ./src/javascripts/ui/components/form-controls/form.tsx
|
|
19604
|
+
;// ./src/javascripts/core/ui/components/form-controls/form.tsx
|
|
19520
19605
|
|
|
19521
19606
|
|
|
19522
19607
|
|
|
@@ -19547,7 +19632,7 @@ function Form({
|
|
|
19547
19632
|
});
|
|
19548
19633
|
}
|
|
19549
19634
|
/* harmony default export */ const form_controls_form = (Form);
|
|
19550
|
-
;// ./src/javascripts/ui/components/form-controls/error.tsx
|
|
19635
|
+
;// ./src/javascripts/core/ui/components/form-controls/error.tsx
|
|
19551
19636
|
|
|
19552
19637
|
|
|
19553
19638
|
|
|
@@ -19576,7 +19661,7 @@ function error_Error({
|
|
|
19576
19661
|
})
|
|
19577
19662
|
});
|
|
19578
19663
|
}
|
|
19579
|
-
;// ./src/javascripts/ui/components/form-controls/wrapper.tsx
|
|
19664
|
+
;// ./src/javascripts/core/ui/components/form-controls/wrapper.tsx
|
|
19580
19665
|
|
|
19581
19666
|
|
|
19582
19667
|
|
|
@@ -19608,7 +19693,7 @@ const FormControlWrapper = ({
|
|
|
19608
19693
|
});
|
|
19609
19694
|
};
|
|
19610
19695
|
/* harmony default export */ const wrapper = (FormControlWrapper);
|
|
19611
|
-
;// ./src/javascripts/ui/components/form-controls/input.tsx
|
|
19696
|
+
;// ./src/javascripts/core/ui/components/form-controls/input.tsx
|
|
19612
19697
|
|
|
19613
19698
|
|
|
19614
19699
|
|
|
@@ -19671,7 +19756,7 @@ function Input({
|
|
|
19671
19756
|
});
|
|
19672
19757
|
}
|
|
19673
19758
|
/* harmony default export */ const input = (Input);
|
|
19674
|
-
;// ./src/javascripts/ui/components/options/transcript/transcript-form.tsx
|
|
19759
|
+
;// ./src/javascripts/core/ui/components/options/transcript/transcript-form.tsx
|
|
19675
19760
|
|
|
19676
19761
|
|
|
19677
19762
|
|
|
@@ -19705,7 +19790,7 @@ function TranscriptForm({
|
|
|
19705
19790
|
})]
|
|
19706
19791
|
});
|
|
19707
19792
|
}
|
|
19708
|
-
;// ./src/javascripts/ui/components/options/transcript/index.tsx
|
|
19793
|
+
;// ./src/javascripts/core/ui/components/options/transcript/index.tsx
|
|
19709
19794
|
|
|
19710
19795
|
|
|
19711
19796
|
|
|
@@ -19780,7 +19865,7 @@ const Transcript = () => {
|
|
|
19780
19865
|
});
|
|
19781
19866
|
};
|
|
19782
19867
|
/* harmony default export */ const transcript = (Transcript);
|
|
19783
|
-
;// ./src/javascripts/ui/components/options/options.tsx
|
|
19868
|
+
;// ./src/javascripts/core/ui/components/options/options.tsx
|
|
19784
19869
|
|
|
19785
19870
|
|
|
19786
19871
|
|
|
@@ -19802,7 +19887,7 @@ const Options = () => {
|
|
|
19802
19887
|
return RenderOption ? /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(RenderOption, {}) : null;
|
|
19803
19888
|
};
|
|
19804
19889
|
/* harmony default export */ const options = (Options);
|
|
19805
|
-
;// ./src/javascripts/ui/components/options/options-button.tsx
|
|
19890
|
+
;// ./src/javascripts/core/ui/components/options/options-button.tsx
|
|
19806
19891
|
|
|
19807
19892
|
|
|
19808
19893
|
|
|
@@ -20008,7 +20093,7 @@ const OptionsButton = () => {
|
|
|
20008
20093
|
});
|
|
20009
20094
|
};
|
|
20010
20095
|
/* harmony default export */ const options_button = (OptionsButton);
|
|
20011
|
-
;// ./src/javascripts/ui/components/app-options/index.tsx
|
|
20096
|
+
;// ./src/javascripts/core/ui/components/app-options/index.tsx
|
|
20012
20097
|
|
|
20013
20098
|
|
|
20014
20099
|
|
|
@@ -20061,7 +20146,7 @@ function AppOptions() {
|
|
|
20061
20146
|
})]
|
|
20062
20147
|
});
|
|
20063
20148
|
}
|
|
20064
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/unread-messages-button.tsx
|
|
20149
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/unread-messages-button.tsx
|
|
20065
20150
|
|
|
20066
20151
|
|
|
20067
20152
|
|
|
@@ -20100,7 +20185,7 @@ const UnreadMessagesButton = () => {
|
|
|
20100
20185
|
});
|
|
20101
20186
|
};
|
|
20102
20187
|
/* harmony default export */ const unread_messages_button = (UnreadMessagesButton);
|
|
20103
|
-
;// ./src/javascripts/ui/components/conversation/use-chat-scroll.ts
|
|
20188
|
+
;// ./src/javascripts/core/ui/components/conversation/use-chat-scroll.ts
|
|
20104
20189
|
|
|
20105
20190
|
|
|
20106
20191
|
|
|
@@ -20183,7 +20268,7 @@ const useChatScroll = eventRefs => {
|
|
|
20183
20268
|
};
|
|
20184
20269
|
};
|
|
20185
20270
|
/* harmony default export */ const use_chat_scroll = (useChatScroll);
|
|
20186
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx
|
|
20271
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx
|
|
20187
20272
|
|
|
20188
20273
|
|
|
20189
20274
|
|
|
@@ -20226,7 +20311,7 @@ const ChatScrollProvider = ({
|
|
|
20226
20311
|
});
|
|
20227
20312
|
};
|
|
20228
20313
|
/* harmony default export */ const chat_scroll_provider = (ChatScrollProvider);
|
|
20229
|
-
;// ./src/javascripts/ui/components/warnings/prompt.tsx
|
|
20314
|
+
;// ./src/javascripts/core/ui/components/warnings/prompt.tsx
|
|
20230
20315
|
|
|
20231
20316
|
|
|
20232
20317
|
|
|
@@ -20250,7 +20335,7 @@ const Prompt = ({
|
|
|
20250
20335
|
});
|
|
20251
20336
|
};
|
|
20252
20337
|
/* harmony default export */ const warnings_prompt = (Prompt);
|
|
20253
|
-
;// ./src/javascripts/ui/components/warnings/idle-detach-warning.tsx
|
|
20338
|
+
;// ./src/javascripts/core/ui/components/warnings/idle-detach-warning.tsx
|
|
20254
20339
|
|
|
20255
20340
|
|
|
20256
20341
|
|
|
@@ -20320,7 +20405,7 @@ const IdleDetachWarning = () => {
|
|
|
20320
20405
|
});
|
|
20321
20406
|
};
|
|
20322
20407
|
/* harmony default export */ const idle_detach_warning = (IdleDetachWarning);
|
|
20323
|
-
;// ./src/javascripts/ui/components/warnings/resume-conversation-prompt.tsx
|
|
20408
|
+
;// ./src/javascripts/core/ui/components/warnings/resume-conversation-prompt.tsx
|
|
20324
20409
|
|
|
20325
20410
|
|
|
20326
20411
|
|
|
@@ -20366,7 +20451,7 @@ const ResumeConversationPrompt = () => {
|
|
|
20366
20451
|
});
|
|
20367
20452
|
};
|
|
20368
20453
|
/* harmony default export */ const resume_conversation_prompt = (ResumeConversationPrompt);
|
|
20369
|
-
;// ./src/javascripts/ui/hooks/seamly-entry-hooks.ts
|
|
20454
|
+
;// ./src/javascripts/core/ui/hooks/seamly-entry-hooks.ts
|
|
20370
20455
|
|
|
20371
20456
|
|
|
20372
20457
|
|
|
@@ -20468,7 +20553,7 @@ const useSeamlyEntry = () => {
|
|
|
20468
20553
|
setBlockAutoEntrySwitch: dispatchBlockAutoEntrySwitch
|
|
20469
20554
|
};
|
|
20470
20555
|
};
|
|
20471
|
-
;// ./src/javascripts/ui/components/entry/text-entry/text-entry-form.tsx
|
|
20556
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/text-entry-form.tsx
|
|
20472
20557
|
|
|
20473
20558
|
|
|
20474
20559
|
|
|
@@ -20575,7 +20660,7 @@ function TextEntryForm({
|
|
|
20575
20660
|
})]
|
|
20576
20661
|
});
|
|
20577
20662
|
}
|
|
20578
|
-
;// ./src/javascripts/ui/components/entry/text-entry/index.tsx
|
|
20663
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/index.tsx
|
|
20579
20664
|
|
|
20580
20665
|
|
|
20581
20666
|
|
|
@@ -20621,7 +20706,7 @@ function TextEntry({
|
|
|
20621
20706
|
})
|
|
20622
20707
|
});
|
|
20623
20708
|
}
|
|
20624
|
-
;// ./src/javascripts/ui/components/widgets/upload-progress.tsx
|
|
20709
|
+
;// ./src/javascripts/core/ui/components/widgets/upload-progress.tsx
|
|
20625
20710
|
|
|
20626
20711
|
|
|
20627
20712
|
|
|
@@ -20674,7 +20759,7 @@ const UploadProgress = () => {
|
|
|
20674
20759
|
});
|
|
20675
20760
|
};
|
|
20676
20761
|
/* harmony default export */ const upload_progress = (UploadProgress);
|
|
20677
|
-
;// ./src/javascripts/ui/hooks/use-single-file-upload.ts
|
|
20762
|
+
;// ./src/javascripts/core/ui/hooks/use-single-file-upload.ts
|
|
20678
20763
|
|
|
20679
20764
|
|
|
20680
20765
|
|
|
@@ -20708,7 +20793,7 @@ const useSingleFileUpload = (formId, name) => {
|
|
|
20708
20793
|
};
|
|
20709
20794
|
};
|
|
20710
20795
|
/* harmony default export */ const use_single_file_upload = (useSingleFileUpload);
|
|
20711
|
-
;// ./src/javascripts/ui/components/form-controls/file-input.tsx
|
|
20796
|
+
;// ./src/javascripts/core/ui/components/form-controls/file-input.tsx
|
|
20712
20797
|
|
|
20713
20798
|
|
|
20714
20799
|
|
|
@@ -20805,7 +20890,7 @@ function FileInput({
|
|
|
20805
20890
|
})]
|
|
20806
20891
|
});
|
|
20807
20892
|
}
|
|
20808
|
-
;// ./src/javascripts/ui/components/entry/upload/file-upload-form.tsx
|
|
20893
|
+
;// ./src/javascripts/core/ui/components/entry/upload/file-upload-form.tsx
|
|
20809
20894
|
|
|
20810
20895
|
|
|
20811
20896
|
|
|
@@ -20858,7 +20943,7 @@ const FileInputForm = ({
|
|
|
20858
20943
|
});
|
|
20859
20944
|
};
|
|
20860
20945
|
/* harmony default export */ const file_upload_form = (FileInputForm);
|
|
20861
|
-
;// ./src/javascripts/ui/components/entry/upload/index.tsx
|
|
20946
|
+
;// ./src/javascripts/core/ui/components/entry/upload/index.tsx
|
|
20862
20947
|
|
|
20863
20948
|
|
|
20864
20949
|
|
|
@@ -21017,7 +21102,7 @@ const upload_Upload = () => {
|
|
|
21017
21102
|
});
|
|
21018
21103
|
};
|
|
21019
21104
|
/* harmony default export */ const entry_upload = (upload_Upload);
|
|
21020
|
-
;// ./src/javascripts/ui/components/entry/upload-toggle.tsx
|
|
21105
|
+
;// ./src/javascripts/core/ui/components/entry/upload-toggle.tsx
|
|
21021
21106
|
|
|
21022
21107
|
|
|
21023
21108
|
|
|
@@ -21101,7 +21186,7 @@ const UploadToggle = () => {
|
|
|
21101
21186
|
}) : null;
|
|
21102
21187
|
};
|
|
21103
21188
|
/* harmony default export */ const upload_toggle = (UploadToggle);
|
|
21104
|
-
;// ./src/javascripts/ui/components/entry/entry-container.tsx
|
|
21189
|
+
;// ./src/javascripts/core/ui/components/entry/entry-container.tsx
|
|
21105
21190
|
|
|
21106
21191
|
|
|
21107
21192
|
|
|
@@ -21195,7 +21280,7 @@ const EntryContainer = () => {
|
|
|
21195
21280
|
});
|
|
21196
21281
|
};
|
|
21197
21282
|
/* harmony default export */ const entry_container = (EntryContainer);
|
|
21198
|
-
;// ./src/javascripts/ui/components/view/window-view/collapse-button.tsx
|
|
21283
|
+
;// ./src/javascripts/core/ui/components/view/window-view/collapse-button.tsx
|
|
21199
21284
|
|
|
21200
21285
|
|
|
21201
21286
|
|
|
@@ -21225,7 +21310,7 @@ const CollapseButton = () => {
|
|
|
21225
21310
|
}) : null;
|
|
21226
21311
|
};
|
|
21227
21312
|
/* harmony default export */ const collapse_button = (CollapseButton);
|
|
21228
|
-
;// ./src/javascripts/ui/components/layout/interrupt.tsx
|
|
21313
|
+
;// ./src/javascripts/core/ui/components/layout/interrupt.tsx
|
|
21229
21314
|
|
|
21230
21315
|
|
|
21231
21316
|
|
|
@@ -21290,7 +21375,7 @@ const Interrupt = () => {
|
|
|
21290
21375
|
}) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
|
|
21291
21376
|
};
|
|
21292
21377
|
/* harmony default export */ const interrupt = (Interrupt);
|
|
21293
|
-
;// ./src/javascripts/ui/components/layout/chat-frame.tsx
|
|
21378
|
+
;// ./src/javascripts/core/ui/components/layout/chat-frame.tsx
|
|
21294
21379
|
|
|
21295
21380
|
|
|
21296
21381
|
|
|
@@ -21322,7 +21407,7 @@ function ChatFrame({
|
|
|
21322
21407
|
});
|
|
21323
21408
|
}
|
|
21324
21409
|
/* harmony default export */ const chat_frame = (ChatFrame);
|
|
21325
|
-
;// ./src/javascripts/ui/components/view/app-view.tsx
|
|
21410
|
+
;// ./src/javascripts/core/ui/components/view/app-view.tsx
|
|
21326
21411
|
|
|
21327
21412
|
|
|
21328
21413
|
|
|
@@ -21335,7 +21420,7 @@ const AppView = () => {
|
|
|
21335
21420
|
});
|
|
21336
21421
|
};
|
|
21337
21422
|
/* harmony default export */ const app_view = (AppView);
|
|
21338
|
-
;// ./src/javascripts/ui/components/layout/collapsed-chat-messages.tsx
|
|
21423
|
+
;// ./src/javascripts/core/ui/components/layout/collapsed-chat-messages.tsx
|
|
21339
21424
|
|
|
21340
21425
|
|
|
21341
21426
|
|
|
@@ -21359,7 +21444,7 @@ function CollapsedChatMessages({
|
|
|
21359
21444
|
}, event.payload.id))
|
|
21360
21445
|
});
|
|
21361
21446
|
}
|
|
21362
|
-
;// ./src/javascripts/ui/components/layout/pre-chat-messages.tsx
|
|
21447
|
+
;// ./src/javascripts/core/ui/components/layout/pre-chat-messages.tsx
|
|
21363
21448
|
|
|
21364
21449
|
|
|
21365
21450
|
|
|
@@ -21379,7 +21464,7 @@ function PreChatMessages() {
|
|
|
21379
21464
|
events: preChatEvents
|
|
21380
21465
|
}) : null;
|
|
21381
21466
|
}
|
|
21382
|
-
;// ./src/javascripts/ui/components/view/inline-view.tsx
|
|
21467
|
+
;// ./src/javascripts/core/ui/components/view/inline-view.tsx
|
|
21383
21468
|
|
|
21384
21469
|
|
|
21385
21470
|
|
|
@@ -21419,7 +21504,7 @@ const InlineView = () => {
|
|
|
21419
21504
|
});
|
|
21420
21505
|
};
|
|
21421
21506
|
/* harmony default export */ const inline_view = (InlineView);
|
|
21422
|
-
;// ./src/javascripts/ui/components/layout/continue-chat-messages.tsx
|
|
21507
|
+
;// ./src/javascripts/core/ui/components/layout/continue-chat-messages.tsx
|
|
21423
21508
|
|
|
21424
21509
|
|
|
21425
21510
|
|
|
@@ -21445,7 +21530,7 @@ function ContinueChatMessages() {
|
|
|
21445
21530
|
events: [continueChatEvent]
|
|
21446
21531
|
});
|
|
21447
21532
|
}
|
|
21448
|
-
;// ./src/javascripts/ui/components/view/window-view/window-open-button.tsx
|
|
21533
|
+
;// ./src/javascripts/core/ui/components/view/window-view/window-open-button.tsx
|
|
21449
21534
|
|
|
21450
21535
|
|
|
21451
21536
|
|
|
@@ -21513,7 +21598,7 @@ const WindowOpenButton = ({
|
|
|
21513
21598
|
});
|
|
21514
21599
|
};
|
|
21515
21600
|
/* harmony default export */ const window_open_button = (WindowOpenButton);
|
|
21516
|
-
;// ./src/javascripts/ui/components/view/window-view/index.tsx
|
|
21601
|
+
;// ./src/javascripts/core/ui/components/view/window-view/index.tsx
|
|
21517
21602
|
|
|
21518
21603
|
|
|
21519
21604
|
|
|
@@ -21570,9 +21655,9 @@ const WindowView = () => {
|
|
|
21570
21655
|
});
|
|
21571
21656
|
};
|
|
21572
21657
|
/* harmony default export */ const window_view = (WindowView);
|
|
21573
|
-
;// ./src/javascripts/ui/hooks/sounds/beep.mp3
|
|
21658
|
+
;// ./src/javascripts/core/ui/hooks/sounds/beep.mp3
|
|
21574
21659
|
/* harmony default export */ const beep = (__webpack_require__.p + "sounds/beep.mp3");
|
|
21575
|
-
;// ./src/javascripts/ui/hooks/use-notifications.ts
|
|
21660
|
+
;// ./src/javascripts/core/ui/hooks/use-notifications.ts
|
|
21576
21661
|
|
|
21577
21662
|
|
|
21578
21663
|
|
|
@@ -21649,7 +21734,7 @@ const useNotification = () => {
|
|
|
21649
21734
|
};
|
|
21650
21735
|
};
|
|
21651
21736
|
/* harmony default export */ const use_notifications = (useNotification);
|
|
21652
|
-
;// ./src/javascripts/ui/components/view/index.tsx
|
|
21737
|
+
;// ./src/javascripts/core/ui/components/view/index.tsx
|
|
21653
21738
|
|
|
21654
21739
|
|
|
21655
21740
|
|
|
@@ -21765,7 +21850,7 @@ const View = ({
|
|
|
21765
21850
|
}) : null;
|
|
21766
21851
|
};
|
|
21767
21852
|
/* harmony default export */ const view = (View);
|
|
21768
|
-
;// ./src/javascripts/ui/components/chat-app.tsx
|
|
21853
|
+
;// ./src/javascripts/core/ui/components/chat-app.tsx
|
|
21769
21854
|
|
|
21770
21855
|
|
|
21771
21856
|
|
|
@@ -21776,7 +21861,7 @@ const ChatApp = props => {
|
|
|
21776
21861
|
});
|
|
21777
21862
|
};
|
|
21778
21863
|
/* harmony default export */ const chat_app = (ChatApp);
|
|
21779
|
-
;// ./src/javascripts/lib/engine/index.tsx
|
|
21864
|
+
;// ./src/javascripts/core/lib/engine/index.tsx
|
|
21780
21865
|
|
|
21781
21866
|
|
|
21782
21867
|
|
|
@@ -21897,7 +21982,7 @@ class Engine {
|
|
|
21897
21982
|
return true;
|
|
21898
21983
|
}
|
|
21899
21984
|
}
|
|
21900
|
-
;// ./src/javascripts/lib/external-api/index.ts
|
|
21985
|
+
;// ./src/javascripts/core/lib/external-api/index.ts
|
|
21901
21986
|
|
|
21902
21987
|
// @ts-nocheck
|
|
21903
21988
|
|
|
@@ -22116,7 +22201,7 @@ class ExternalApi {
|
|
|
22116
22201
|
}
|
|
22117
22202
|
}
|
|
22118
22203
|
/* harmony default export */ const external_api = (ExternalApi);
|
|
22119
|
-
;// ./src/javascripts/lib/external-api/initialize-api.ts
|
|
22204
|
+
;// ./src/javascripts/core/lib/external-api/initialize-api.ts
|
|
22120
22205
|
|
|
22121
22206
|
|
|
22122
22207
|
function initializeExternalApi(appConfig) {
|
|
@@ -22131,7 +22216,7 @@ function initializeExternalApi(appConfig) {
|
|
|
22131
22216
|
};
|
|
22132
22217
|
seamly.push(...seamlyActions);
|
|
22133
22218
|
}
|
|
22134
|
-
;// ./src/javascripts/ui/hooks/use-seamly-actions.ts
|
|
22219
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-actions.ts
|
|
22135
22220
|
|
|
22136
22221
|
|
|
22137
22222
|
const useSeamlyActions = () => {
|
|
@@ -22173,7 +22258,201 @@ const useSeamlyActions = () => {
|
|
|
22173
22258
|
setSeamlyContainerElement: payload => dispatch(setSeamlyContainerElement(payload))
|
|
22174
22259
|
};
|
|
22175
22260
|
};
|
|
22176
|
-
;// ./src/javascripts/
|
|
22261
|
+
;// ./src/javascripts/core/lib/store/providers/app-storage.ts
|
|
22262
|
+
// @ts-nocheck
|
|
22263
|
+
function appStore() {
|
|
22264
|
+
return {
|
|
22265
|
+
get: () => {
|
|
22266
|
+
// For Android we can retrieve data directly over the bridge
|
|
22267
|
+
// iOS and ReactNative will write the data on the window.seamlyBridgeData object on init
|
|
22268
|
+
if (window.hasOwnProperty('SeamlyBridge')) {
|
|
22269
|
+
try {
|
|
22270
|
+
// eslint-disable-next-line no-undef
|
|
22271
|
+
return JSON.parse(SeamlyBridge.getData());
|
|
22272
|
+
} catch (e) {
|
|
22273
|
+
console.error('Unexpected or malformed data retrieved from bridge', e);
|
|
22274
|
+
// Android should always return unchanged JSON data.
|
|
22275
|
+
// If something went wrong parsing the response, it's best to start from scratch
|
|
22276
|
+
return {};
|
|
22277
|
+
}
|
|
22278
|
+
}
|
|
22279
|
+
return window.seamlyBridgeData;
|
|
22280
|
+
},
|
|
22281
|
+
set: newData => {
|
|
22282
|
+
// iOS
|
|
22283
|
+
if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.seamlyBridge) {
|
|
22284
|
+
window.webkit.messageHandlers.seamlyBridge.postMessage(JSON.stringify(newData));
|
|
22285
|
+
}
|
|
22286
|
+
|
|
22287
|
+
// Android
|
|
22288
|
+
if (window.hasOwnProperty('SeamlyBridge')) {
|
|
22289
|
+
// eslint-disable-next-line no-undef
|
|
22290
|
+
SeamlyBridge.setData(JSON.stringify(newData));
|
|
22291
|
+
}
|
|
22292
|
+
|
|
22293
|
+
// React Native
|
|
22294
|
+
if (window.ReactNativeWebView) {
|
|
22295
|
+
window.ReactNativeWebView.postMessage(JSON.stringify(newData));
|
|
22296
|
+
}
|
|
22297
|
+
}
|
|
22298
|
+
};
|
|
22299
|
+
}
|
|
22300
|
+
;// ./node_modules/js-cookie/dist/js.cookie.mjs
|
|
22301
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
22302
|
+
/* eslint-disable no-var */
|
|
22303
|
+
function js_cookie_assign (target) {
|
|
22304
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
22305
|
+
var source = arguments[i];
|
|
22306
|
+
for (var key in source) {
|
|
22307
|
+
target[key] = source[key];
|
|
22308
|
+
}
|
|
22309
|
+
}
|
|
22310
|
+
return target
|
|
22311
|
+
}
|
|
22312
|
+
/* eslint-enable no-var */
|
|
22313
|
+
|
|
22314
|
+
/* eslint-disable no-var */
|
|
22315
|
+
var defaultConverter = {
|
|
22316
|
+
read: function (value) {
|
|
22317
|
+
if (value[0] === '"') {
|
|
22318
|
+
value = value.slice(1, -1);
|
|
22319
|
+
}
|
|
22320
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
|
|
22321
|
+
},
|
|
22322
|
+
write: function (value) {
|
|
22323
|
+
return encodeURIComponent(value).replace(
|
|
22324
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
22325
|
+
decodeURIComponent
|
|
22326
|
+
)
|
|
22327
|
+
}
|
|
22328
|
+
};
|
|
22329
|
+
/* eslint-enable no-var */
|
|
22330
|
+
|
|
22331
|
+
/* eslint-disable no-var */
|
|
22332
|
+
|
|
22333
|
+
function init (converter, defaultAttributes) {
|
|
22334
|
+
function set (name, value, attributes) {
|
|
22335
|
+
if (typeof document === 'undefined') {
|
|
22336
|
+
return
|
|
22337
|
+
}
|
|
22338
|
+
|
|
22339
|
+
attributes = js_cookie_assign({}, defaultAttributes, attributes);
|
|
22340
|
+
|
|
22341
|
+
if (typeof attributes.expires === 'number') {
|
|
22342
|
+
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
22343
|
+
}
|
|
22344
|
+
if (attributes.expires) {
|
|
22345
|
+
attributes.expires = attributes.expires.toUTCString();
|
|
22346
|
+
}
|
|
22347
|
+
|
|
22348
|
+
name = encodeURIComponent(name)
|
|
22349
|
+
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
|
22350
|
+
.replace(/[()]/g, escape);
|
|
22351
|
+
|
|
22352
|
+
var stringifiedAttributes = '';
|
|
22353
|
+
for (var attributeName in attributes) {
|
|
22354
|
+
if (!attributes[attributeName]) {
|
|
22355
|
+
continue
|
|
22356
|
+
}
|
|
22357
|
+
|
|
22358
|
+
stringifiedAttributes += '; ' + attributeName;
|
|
22359
|
+
|
|
22360
|
+
if (attributes[attributeName] === true) {
|
|
22361
|
+
continue
|
|
22362
|
+
}
|
|
22363
|
+
|
|
22364
|
+
// Considers RFC 6265 section 5.2:
|
|
22365
|
+
// ...
|
|
22366
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
22367
|
+
// character:
|
|
22368
|
+
// Consume the characters of the unparsed-attributes up to,
|
|
22369
|
+
// not including, the first %x3B (";") character.
|
|
22370
|
+
// ...
|
|
22371
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
22372
|
+
}
|
|
22373
|
+
|
|
22374
|
+
return (document.cookie =
|
|
22375
|
+
name + '=' + converter.write(value, name) + stringifiedAttributes)
|
|
22376
|
+
}
|
|
22377
|
+
|
|
22378
|
+
function get (name) {
|
|
22379
|
+
if (typeof document === 'undefined' || (arguments.length && !name)) {
|
|
22380
|
+
return
|
|
22381
|
+
}
|
|
22382
|
+
|
|
22383
|
+
// To prevent the for loop in the first place assign an empty array
|
|
22384
|
+
// in case there are no cookies at all.
|
|
22385
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
22386
|
+
var jar = {};
|
|
22387
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
22388
|
+
var parts = cookies[i].split('=');
|
|
22389
|
+
var value = parts.slice(1).join('=');
|
|
22390
|
+
|
|
22391
|
+
try {
|
|
22392
|
+
var found = decodeURIComponent(parts[0]);
|
|
22393
|
+
jar[found] = converter.read(value, found);
|
|
22394
|
+
|
|
22395
|
+
if (name === found) {
|
|
22396
|
+
break
|
|
22397
|
+
}
|
|
22398
|
+
} catch (e) {}
|
|
22399
|
+
}
|
|
22400
|
+
|
|
22401
|
+
return name ? jar[name] : jar
|
|
22402
|
+
}
|
|
22403
|
+
|
|
22404
|
+
return Object.create(
|
|
22405
|
+
{
|
|
22406
|
+
set,
|
|
22407
|
+
get,
|
|
22408
|
+
remove: function (name, attributes) {
|
|
22409
|
+
set(
|
|
22410
|
+
name,
|
|
22411
|
+
'',
|
|
22412
|
+
js_cookie_assign({}, attributes, {
|
|
22413
|
+
expires: -1
|
|
22414
|
+
})
|
|
22415
|
+
);
|
|
22416
|
+
},
|
|
22417
|
+
withAttributes: function (attributes) {
|
|
22418
|
+
return init(this.converter, js_cookie_assign({}, this.attributes, attributes))
|
|
22419
|
+
},
|
|
22420
|
+
withConverter: function (converter) {
|
|
22421
|
+
return init(js_cookie_assign({}, this.converter, converter), this.attributes)
|
|
22422
|
+
}
|
|
22423
|
+
},
|
|
22424
|
+
{
|
|
22425
|
+
attributes: { value: Object.freeze(defaultAttributes) },
|
|
22426
|
+
converter: { value: Object.freeze(converter) }
|
|
22427
|
+
}
|
|
22428
|
+
)
|
|
22429
|
+
}
|
|
22430
|
+
|
|
22431
|
+
var api = init(defaultConverter, { path: '/' });
|
|
22432
|
+
/* eslint-enable no-var */
|
|
22433
|
+
|
|
22434
|
+
|
|
22435
|
+
|
|
22436
|
+
;// ./src/javascripts/core/lib/store/providers/cookie-storage.ts
|
|
22437
|
+
|
|
22438
|
+
function cookieStore(attributes = {}) {
|
|
22439
|
+
return function (key) {
|
|
22440
|
+
const KEY = `cvco.${key}`;
|
|
22441
|
+
return {
|
|
22442
|
+
get() {
|
|
22443
|
+
const jsonStr = api.get(KEY);
|
|
22444
|
+
return jsonStr ? JSON.parse(jsonStr) : null;
|
|
22445
|
+
},
|
|
22446
|
+
set(value) {
|
|
22447
|
+
if (!value) {
|
|
22448
|
+
return;
|
|
22449
|
+
}
|
|
22450
|
+
api.set(KEY, JSON.stringify(value), attributes);
|
|
22451
|
+
}
|
|
22452
|
+
};
|
|
22453
|
+
};
|
|
22454
|
+
}
|
|
22455
|
+
;// ./src/javascripts/core/ui/components/layout/agent-info.tsx
|
|
22177
22456
|
|
|
22178
22457
|
|
|
22179
22458
|
|
|
@@ -22238,7 +22517,7 @@ const AgentInfo = () => {
|
|
|
22238
22517
|
}) : null;
|
|
22239
22518
|
};
|
|
22240
22519
|
/* harmony default export */ const agent_info = (AgentInfo);
|
|
22241
|
-
;// ./src/javascripts/ui/components/layout/header.tsx
|
|
22520
|
+
;// ./src/javascripts/core/ui/components/layout/header.tsx
|
|
22242
22521
|
|
|
22243
22522
|
|
|
22244
22523
|
|
|
@@ -22276,7 +22555,128 @@ const Header = ({
|
|
|
22276
22555
|
});
|
|
22277
22556
|
};
|
|
22278
22557
|
/* harmony default export */ const header = (Header);
|
|
22279
|
-
;// ./src/javascripts/
|
|
22558
|
+
;// ./src/javascripts/core/lib/url-helpers.ts
|
|
22559
|
+
const getUrlSearchParams = () => {
|
|
22560
|
+
const params = new URLSearchParams(window.location.search);
|
|
22561
|
+
return Array.from(params.entries()).reduce((acc, [key, val]) => ({
|
|
22562
|
+
...acc,
|
|
22563
|
+
[key]: val
|
|
22564
|
+
}), {});
|
|
22565
|
+
};
|
|
22566
|
+
|
|
22567
|
+
// Return search parameters as a string
|
|
22568
|
+
const getUrlSearchString = params => new URLSearchParams(params).toString();
|
|
22569
|
+
|
|
22570
|
+
// Return search parameters found in URL or sessionStorage
|
|
22571
|
+
const getSearchParamsByKeys = (...keys) => {
|
|
22572
|
+
const url = new URL(window.location.href);
|
|
22573
|
+
const values = keys.reduce((acc, key) => {
|
|
22574
|
+
const searchParam = url.searchParams.get(key);
|
|
22575
|
+
const param = searchParam || sessionStorage.getItem(key);
|
|
22576
|
+
if (param) {
|
|
22577
|
+
acc[key] = param;
|
|
22578
|
+
}
|
|
22579
|
+
return acc;
|
|
22580
|
+
}, {});
|
|
22581
|
+
return values;
|
|
22582
|
+
};
|
|
22583
|
+
|
|
22584
|
+
// Adds a search parameter to the url
|
|
22585
|
+
const setSearchParam = (key, value) => {
|
|
22586
|
+
const url = new URL(window.location.href);
|
|
22587
|
+
const {
|
|
22588
|
+
searchParams
|
|
22589
|
+
} = url;
|
|
22590
|
+
searchParams.set(key, value);
|
|
22591
|
+
url.search = searchParams.toString();
|
|
22592
|
+
window.location.href = url.toString();
|
|
22593
|
+
};
|
|
22594
|
+
|
|
22595
|
+
// Adds search parameters to the url
|
|
22596
|
+
const setSearchParams = params => {
|
|
22597
|
+
const url = new URL(window.location.href);
|
|
22598
|
+
const {
|
|
22599
|
+
searchParams
|
|
22600
|
+
} = url;
|
|
22601
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
22602
|
+
searchParams.set(key, value);
|
|
22603
|
+
});
|
|
22604
|
+
url.search = searchParams.toString();
|
|
22605
|
+
window.location.href = url.toString();
|
|
22606
|
+
};
|
|
22607
|
+
|
|
22608
|
+
// Removes a search parameter from the url
|
|
22609
|
+
const removeSearchParam = (...keys) => {
|
|
22610
|
+
const url = new URL(window.location.href);
|
|
22611
|
+
const {
|
|
22612
|
+
searchParams
|
|
22613
|
+
} = url;
|
|
22614
|
+
keys.forEach(key => searchParams.delete(key));
|
|
22615
|
+
url.search = searchParams.toString();
|
|
22616
|
+
window.history.replaceState({}, '', url);
|
|
22617
|
+
};
|
|
22618
|
+
|
|
22619
|
+
// Replace search parameters with those found in URL search parameters or sessionStorage
|
|
22620
|
+
const replaceSearchParams = (...keys) => {
|
|
22621
|
+
const url = new URL(window.location.href);
|
|
22622
|
+
const params = keys.reduce((acc, key) => {
|
|
22623
|
+
const paramValue = url.searchParams.get(key);
|
|
22624
|
+
const value = paramValue || sessionStorage.getItem(key);
|
|
22625
|
+
|
|
22626
|
+
// If the query parameter is present, add it to the sessionStorage
|
|
22627
|
+
if (paramValue) {
|
|
22628
|
+
sessionStorage.setItem(key, paramValue);
|
|
22629
|
+
}
|
|
22630
|
+
|
|
22631
|
+
// Bail if there is nothing to set
|
|
22632
|
+
if (!value) return acc;
|
|
22633
|
+
acc.set(key, value);
|
|
22634
|
+
return acc;
|
|
22635
|
+
}, new URLSearchParams());
|
|
22636
|
+
|
|
22637
|
+
// To keep other params in place, we merge them with the current URL parameters
|
|
22638
|
+
const combinedParams = new URLSearchParams({
|
|
22639
|
+
...Object.fromEntries(url.searchParams),
|
|
22640
|
+
...Object.fromEntries(params)
|
|
22641
|
+
});
|
|
22642
|
+
if (combinedParams.toString()) {
|
|
22643
|
+
window.history.replaceState(null, '', `?${combinedParams}`);
|
|
22644
|
+
}
|
|
22645
|
+
return getSearchParamsByKeys(...params.keys());
|
|
22646
|
+
};
|
|
22647
|
+
|
|
22648
|
+
// Sets up click handlers for elements with data-attribute `data-reset-search-params`.
|
|
22649
|
+
// Clicking these will remove all given keys from the sessionStorage and remove the search parameters from the url
|
|
22650
|
+
|
|
22651
|
+
// If you want to reset both 'apiKey' and 'locale' when the event is executed, you would use it as followed
|
|
22652
|
+
// import { initResetSearchParams } from 'lib/url-helpers'
|
|
22653
|
+
|
|
22654
|
+
// Setup the event handlers for the search parameters you want to be reset after execution.
|
|
22655
|
+
// initResetSearchParams('apiKey', 'locale')
|
|
22656
|
+
|
|
22657
|
+
// Somewhere in the HTML add an element with the 'data-reset-search-params' attribute.
|
|
22658
|
+
// <a href="#" data-reset-search-params>Reset account and source locale</a>
|
|
22659
|
+
const initResetSearchParams = (...keys) => {
|
|
22660
|
+
const resetLink = document.querySelector('[data-reset-search-params]');
|
|
22661
|
+
if (!resetLink) {
|
|
22662
|
+
return;
|
|
22663
|
+
}
|
|
22664
|
+
resetLink.addEventListener('click', e => {
|
|
22665
|
+
e.preventDefault();
|
|
22666
|
+
const url = new URL(window.location.href);
|
|
22667
|
+
keys.forEach(key => {
|
|
22668
|
+
// Clear current session for each key
|
|
22669
|
+
sessionStorage.removeItem(key);
|
|
22670
|
+
|
|
22671
|
+
// Delete key from url
|
|
22672
|
+
url.searchParams.delete(key);
|
|
22673
|
+
});
|
|
22674
|
+
|
|
22675
|
+
// Reload page
|
|
22676
|
+
window.location.href = url.toString();
|
|
22677
|
+
});
|
|
22678
|
+
};
|
|
22679
|
+
;// ./src/javascripts/core/index.ts
|
|
22280
22680
|
// Polyfills
|
|
22281
22681
|
|
|
22282
22682
|
|
|
@@ -22303,6 +22703,9 @@ const Header = ({
|
|
|
22303
22703
|
// Used by: Demo
|
|
22304
22704
|
|
|
22305
22705
|
|
|
22706
|
+
|
|
22707
|
+
|
|
22708
|
+
|
|
22306
22709
|
// Used by: Client
|
|
22307
22710
|
|
|
22308
22711
|
|
|
@@ -22327,8 +22730,18 @@ const Header = ({
|
|
|
22327
22730
|
|
|
22328
22731
|
|
|
22329
22732
|
|
|
22733
|
+
|
|
22734
|
+
|
|
22735
|
+
|
|
22736
|
+
|
|
22737
|
+
|
|
22738
|
+
|
|
22739
|
+
|
|
22740
|
+
|
|
22741
|
+
|
|
22742
|
+
|
|
22330
22743
|
// Used by: Client
|
|
22331
|
-
/* harmony default export */ const
|
|
22744
|
+
/* harmony default export */ const core = (initializeExternalApi);
|
|
22332
22745
|
})();
|
|
22333
22746
|
|
|
22334
22747
|
module.exports = __webpack_exports__;
|