@seamly/web-ui 24.2.1 → 24.3.0-alpha.2
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 +2497 -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 +915 -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 +4683 -22581
- 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} +35 -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 +15 -18
- 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
|
|
|
@@ -2794,6 +2908,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2794
2908
|
Icon: () => (/* reexport */ layout_icon),
|
|
2795
2909
|
Interrupt: () => (/* reexport */ interrupt),
|
|
2796
2910
|
MessageContainer: () => (/* reexport */ message_container),
|
|
2911
|
+
SeamlyActivityEventContext: () => (/* reexport */ seamly_activity_event_context),
|
|
2797
2912
|
SeamlyActivityMonitor: () => (/* reexport */ seamly_activity_monitor),
|
|
2798
2913
|
SeamlyApiContext: () => (/* reexport */ SeamlyApiContext),
|
|
2799
2914
|
SeamlyEventBusContext: () => (/* reexport */ SeamlyEventBusContext),
|
|
@@ -2806,11 +2921,32 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2806
2921
|
TextEntry: () => (/* reexport */ TextEntry),
|
|
2807
2922
|
Upload: () => (/* reexport */ entry_upload),
|
|
2808
2923
|
View: () => (/* reexport */ view),
|
|
2924
|
+
appReducer: () => (/* reexport */ app_slice),
|
|
2925
|
+
appStorageProvider: () => (/* reexport */ appStore),
|
|
2809
2926
|
calculateVisibility: () => (/* reexport */ calculateVisibility),
|
|
2810
2927
|
className: () => (/* reexport */ css_className),
|
|
2811
|
-
|
|
2928
|
+
configReducer: () => (/* reexport */ slice),
|
|
2929
|
+
cookieStorageProvider: () => (/* reexport */ cookieStore),
|
|
2930
|
+
"default": () => (/* binding */ core),
|
|
2812
2931
|
eventTypes: () => (/* reexport */ eventTypes),
|
|
2932
|
+
formsReducer: () => (/* reexport */ forms_slice),
|
|
2933
|
+
getSearchParamsByKeys: () => (/* reexport */ getSearchParamsByKeys),
|
|
2934
|
+
getUrlSearchParams: () => (/* reexport */ getUrlSearchParams),
|
|
2935
|
+
getUrlSearchString: () => (/* reexport */ getUrlSearchString),
|
|
2936
|
+
i18nReducer: () => (/* reexport */ i18n_slice),
|
|
2937
|
+
initResetSearchParams: () => (/* reexport */ initResetSearchParams),
|
|
2938
|
+
interruptReducer: () => (/* reexport */ interrupt_slice),
|
|
2813
2939
|
randomId: () => (/* reexport */ randomId),
|
|
2940
|
+
replaceSearchParams: () => (/* reexport */ replaceSearchParams),
|
|
2941
|
+
sessionStorageProvider: () => (/* reexport */ store),
|
|
2942
|
+
setConfig: () => (/* reexport */ setConfig),
|
|
2943
|
+
setInitialLocale: () => (/* reexport */ setInitialLocale),
|
|
2944
|
+
setParticipant: () => (/* reexport */ setParticipant),
|
|
2945
|
+
setPreChatEvents: () => (/* reexport */ setPreChatEvents),
|
|
2946
|
+
setTranslations: () => (/* reexport */ setTranslations),
|
|
2947
|
+
stateReducer: () => (/* reexport */ store_slice),
|
|
2948
|
+
timeout: () => (/* reexport */ timeout),
|
|
2949
|
+
translationReducer: () => (/* reexport */ translations_slice),
|
|
2814
2950
|
useChoicePrompt: () => (/* reexport */ useChoicePrompt),
|
|
2815
2951
|
useEvents: () => (/* reexport */ useEvents),
|
|
2816
2952
|
useGeneratedId: () => (/* reexport */ useGeneratedId),
|
|
@@ -2827,6 +2963,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2827
2963
|
useTranslatedEventData: () => (/* reexport */ useTranslatedEventData),
|
|
2828
2964
|
useTranslations: () => (/* reexport */ useTranslations),
|
|
2829
2965
|
useTranslationsContainer: () => (/* reexport */ useTranslationsContainer),
|
|
2966
|
+
visibilityReducer: () => (/* reexport */ visibility_slice),
|
|
2830
2967
|
visibilityStates: () => (/* reexport */ visibilityStates)
|
|
2831
2968
|
});
|
|
2832
2969
|
|
|
@@ -3442,7 +3579,7 @@ var ReconnectingWebSocket = /** @class */ (function () {
|
|
|
3442
3579
|
|
|
3443
3580
|
/* harmony default export */ const reconnecting_websocket_mjs = (ReconnectingWebSocket);
|
|
3444
3581
|
|
|
3445
|
-
;// ./src/javascripts/lib/split-url-params.ts
|
|
3582
|
+
;// ./src/javascripts/core/lib/split-url-params.ts
|
|
3446
3583
|
const splitUrlParams = url => {
|
|
3447
3584
|
const searchIndex = url.indexOf('?');
|
|
3448
3585
|
if (searchIndex < 0) {
|
|
@@ -3465,7 +3602,7 @@ const splitUrlParams = url => {
|
|
|
3465
3602
|
};
|
|
3466
3603
|
};
|
|
3467
3604
|
/* harmony default export */ const split_url_params = (splitUrlParams);
|
|
3468
|
-
;// ./src/javascripts/api/conversation-connector.ts
|
|
3605
|
+
;// ./src/javascripts/core/api/conversation-connector.ts
|
|
3469
3606
|
|
|
3470
3607
|
|
|
3471
3608
|
|
|
@@ -3634,7 +3771,7 @@ class ConversationConnector {
|
|
|
3634
3771
|
return () => subscribers.delete(callback);
|
|
3635
3772
|
}
|
|
3636
3773
|
}
|
|
3637
|
-
;// ./src/javascripts/api/errors/seamly-api-error.ts
|
|
3774
|
+
;// ./src/javascripts/core/api/errors/seamly-api-error.ts
|
|
3638
3775
|
// eslint-disable-next-line no-undef
|
|
3639
3776
|
|
|
3640
3777
|
class ApiError extends Error {
|
|
@@ -3646,7 +3783,7 @@ class ApiError extends Error {
|
|
|
3646
3783
|
this.status = options?.status;
|
|
3647
3784
|
}
|
|
3648
3785
|
}
|
|
3649
|
-
;// ./src/javascripts/api/errors/seamly-base-error.ts
|
|
3786
|
+
;// ./src/javascripts/core/api/errors/seamly-base-error.ts
|
|
3650
3787
|
function parseOriginalErrMsg(str) {
|
|
3651
3788
|
try {
|
|
3652
3789
|
const json = JSON.parse(str);
|
|
@@ -3678,7 +3815,7 @@ class SeamlyBaseError extends Error {
|
|
|
3678
3815
|
}
|
|
3679
3816
|
}
|
|
3680
3817
|
}
|
|
3681
|
-
;// ./src/javascripts/api/errors/seamly-configuration-error.ts
|
|
3818
|
+
;// ./src/javascripts/core/api/errors/seamly-configuration-error.ts
|
|
3682
3819
|
|
|
3683
3820
|
class SeamlyConfigurationError extends SeamlyBaseError {
|
|
3684
3821
|
constructor(originalError, ...params) {
|
|
@@ -3687,7 +3824,7 @@ class SeamlyConfigurationError extends SeamlyBaseError {
|
|
|
3687
3824
|
this.langKey = 'errors.configError';
|
|
3688
3825
|
}
|
|
3689
3826
|
}
|
|
3690
|
-
;// ./src/javascripts/api/errors/seamly-general-error.ts
|
|
3827
|
+
;// ./src/javascripts/core/api/errors/seamly-general-error.ts
|
|
3691
3828
|
|
|
3692
3829
|
class SeamlyGeneralError extends SeamlyBaseError {
|
|
3693
3830
|
constructor(originalError, ...params) {
|
|
@@ -3697,7 +3834,7 @@ class SeamlyGeneralError extends SeamlyBaseError {
|
|
|
3697
3834
|
this.action = 'reset';
|
|
3698
3835
|
}
|
|
3699
3836
|
}
|
|
3700
|
-
;// ./src/javascripts/api/errors/seamly-session-expired-error.ts
|
|
3837
|
+
;// ./src/javascripts/core/api/errors/seamly-session-expired-error.ts
|
|
3701
3838
|
|
|
3702
3839
|
class SeamlySessionExpiredError extends SeamlyBaseError {
|
|
3703
3840
|
constructor(originalError, ...params) {
|
|
@@ -3706,7 +3843,7 @@ class SeamlySessionExpiredError extends SeamlyBaseError {
|
|
|
3706
3843
|
this.action = 'reset';
|
|
3707
3844
|
}
|
|
3708
3845
|
}
|
|
3709
|
-
;// ./src/javascripts/api/errors/seamly-unauthorized-error.ts
|
|
3846
|
+
;// ./src/javascripts/core/api/errors/seamly-unauthorized-error.ts
|
|
3710
3847
|
|
|
3711
3848
|
class SeamlyUnauthorizedError extends SeamlyBaseError {
|
|
3712
3849
|
constructor(originalError, ...params) {
|
|
@@ -3716,12 +3853,12 @@ class SeamlyUnauthorizedError extends SeamlyBaseError {
|
|
|
3716
3853
|
this.action = 'reset';
|
|
3717
3854
|
}
|
|
3718
3855
|
}
|
|
3719
|
-
;// ./src/javascripts/lib/debug.ts
|
|
3856
|
+
;// ./src/javascripts/core/lib/debug.ts
|
|
3720
3857
|
const debug = false ? 0 : namespace => (...msg) =>
|
|
3721
3858
|
// eslint-disable-next-line
|
|
3722
3859
|
console.debug(namespace, ...msg);
|
|
3723
3860
|
/* harmony default export */ const lib_debug = (debug);
|
|
3724
|
-
;// ./src/javascripts/lib/store/index.ts
|
|
3861
|
+
;// ./src/javascripts/core/lib/store/index.ts
|
|
3725
3862
|
/* eslint-disable */
|
|
3726
3863
|
function objectStore(key, storageProvider) {
|
|
3727
3864
|
const sessionStore = storageProvider(key);
|
|
@@ -3747,7 +3884,7 @@ function objectStore(key, storageProvider) {
|
|
|
3747
3884
|
}
|
|
3748
3885
|
};
|
|
3749
3886
|
}
|
|
3750
|
-
;// ./src/javascripts/lib/store/providers/session-storage.ts
|
|
3887
|
+
;// ./src/javascripts/core/lib/store/providers/session-storage.ts
|
|
3751
3888
|
function store(key) {
|
|
3752
3889
|
const KEY = `cvco.${key}`;
|
|
3753
3890
|
return {
|
|
@@ -3768,7 +3905,7 @@ function store(key) {
|
|
|
3768
3905
|
}
|
|
3769
3906
|
};
|
|
3770
3907
|
}
|
|
3771
|
-
;// ./src/javascripts/ui/utils/seamly-utils.ts
|
|
3908
|
+
;// ./src/javascripts/core/ui/utils/seamly-utils.ts
|
|
3772
3909
|
const eventTypes = {
|
|
3773
3910
|
info: 'info',
|
|
3774
3911
|
message: 'message',
|
|
@@ -3845,11 +3982,11 @@ const cardTypes = {
|
|
|
3845
3982
|
navigate: 'navigate',
|
|
3846
3983
|
topic: 'topic'
|
|
3847
3984
|
};
|
|
3848
|
-
;// ./src/javascripts/lib/id.ts
|
|
3985
|
+
;// ./src/javascripts/core/lib/id.ts
|
|
3849
3986
|
function randomId() {
|
|
3850
3987
|
return `_${(Number(String(Math.random()).slice(2)) + Date.now() + Math.round(performance.now())).toString(36)}`;
|
|
3851
3988
|
}
|
|
3852
|
-
;// ./src/javascripts/api/utils.ts
|
|
3989
|
+
;// ./src/javascripts/core/api/utils.ts
|
|
3853
3990
|
|
|
3854
3991
|
|
|
3855
3992
|
function buildPayload(command, payload) {
|
|
@@ -3909,7 +4046,7 @@ function getTimeZone() {
|
|
|
3909
4046
|
return undefined;
|
|
3910
4047
|
}
|
|
3911
4048
|
}
|
|
3912
|
-
;// ./src/javascripts/api/index.ts
|
|
4049
|
+
;// ./src/javascripts/core/api/index.ts
|
|
3913
4050
|
|
|
3914
4051
|
|
|
3915
4052
|
|
|
@@ -4340,7 +4477,7 @@ class API {
|
|
|
4340
4477
|
return {
|
|
4341
4478
|
clientName: "@seamly/web-ui",
|
|
4342
4479
|
clientVariant: this.#layoutMode,
|
|
4343
|
-
clientVersion: "24.2
|
|
4480
|
+
clientVersion: "24.3.0-alpha.2",
|
|
4344
4481
|
currentUrl: window.location.toString(),
|
|
4345
4482
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4346
4483
|
timezone: getTimeZone(),
|
|
@@ -7934,7 +8071,7 @@ function redux_toolkit_modern_formatProdErrorMessage(code) {
|
|
|
7934
8071
|
}
|
|
7935
8072
|
|
|
7936
8073
|
//# sourceMappingURL=redux-toolkit.modern.mjs.map
|
|
7937
|
-
;// ./src/javascripts/api/errors/seamly-unavailable-error.ts
|
|
8074
|
+
;// ./src/javascripts/core/api/errors/seamly-unavailable-error.ts
|
|
7938
8075
|
|
|
7939
8076
|
|
|
7940
8077
|
/**
|
|
@@ -7949,7 +8086,7 @@ class SeamlyUnavailableError extends SeamlyBaseError {
|
|
|
7949
8086
|
this.langKey = 'errors.seamlyUnavailable';
|
|
7950
8087
|
}
|
|
7951
8088
|
}
|
|
7952
|
-
;// ./src/javascripts/domains/config/actions.ts
|
|
8089
|
+
;// ./src/javascripts/core/domains/config/actions.ts
|
|
7953
8090
|
|
|
7954
8091
|
const initializeConfig = createAsyncThunk('initializeConfig', async (_, {
|
|
7955
8092
|
extra: {
|
|
@@ -7992,7 +8129,7 @@ const resetConfig = createAsyncThunk('resetConfig', async (_, {
|
|
|
7992
8129
|
}) => {
|
|
7993
8130
|
return config;
|
|
7994
8131
|
});
|
|
7995
|
-
;// ./src/javascripts/domains/redux/create-debounced-async-thunk.ts
|
|
8132
|
+
;// ./src/javascripts/core/domains/redux/create-debounced-async-thunk.ts
|
|
7996
8133
|
|
|
7997
8134
|
/**
|
|
7998
8135
|
* A debounced analogue of the `createAsyncThunk` from `@reduxjs/toolkit`
|
|
@@ -8763,14 +8900,14 @@ var createStructuredSelector = Object.assign(
|
|
|
8763
8900
|
);
|
|
8764
8901
|
|
|
8765
8902
|
//# sourceMappingURL=reselect.mjs.map
|
|
8766
|
-
;// ./src/javascripts/domains/app/selectors.ts
|
|
8903
|
+
;// ./src/javascripts/core/domains/app/selectors.ts
|
|
8767
8904
|
|
|
8768
8905
|
const selectUserHasResponded = createSelector(({
|
|
8769
8906
|
app
|
|
8770
8907
|
}) => app, ({
|
|
8771
8908
|
userHasResponded
|
|
8772
8909
|
}) => userHasResponded);
|
|
8773
|
-
;// ./src/javascripts/domains/visibility/constants.ts
|
|
8910
|
+
;// ./src/javascripts/core/domains/visibility/constants.ts
|
|
8774
8911
|
const StoreKey = 'visibility';
|
|
8775
8912
|
const visibilityStates = {
|
|
8776
8913
|
hidden: 'hidden',
|
|
@@ -8778,7 +8915,7 @@ const visibilityStates = {
|
|
|
8778
8915
|
open: 'open',
|
|
8779
8916
|
initialize: null
|
|
8780
8917
|
};
|
|
8781
|
-
;// ./src/javascripts/domains/config/selectors.ts
|
|
8918
|
+
;// ./src/javascripts/core/domains/config/selectors.ts
|
|
8782
8919
|
|
|
8783
8920
|
|
|
8784
8921
|
const selectConfig = createSelector(({
|
|
@@ -8797,7 +8934,7 @@ const selectConfig = createSelector(({
|
|
|
8797
8934
|
}
|
|
8798
8935
|
return newConfig;
|
|
8799
8936
|
});
|
|
8800
|
-
;// ./src/javascripts/domains/visibility/utils.ts
|
|
8937
|
+
;// ./src/javascripts/core/domains/visibility/utils.ts
|
|
8801
8938
|
|
|
8802
8939
|
const calculateVisibility = ({
|
|
8803
8940
|
hasResponded,
|
|
@@ -8837,175 +8974,68 @@ var compat_module = __webpack_require__(7402);
|
|
|
8837
8974
|
// EXTERNAL MODULE: ./node_modules/use-sync-external-store/with-selector.js
|
|
8838
8975
|
var with_selector = __webpack_require__(8418);
|
|
8839
8976
|
;// ./node_modules/react-redux/dist/react-redux.mjs
|
|
8840
|
-
// src/index.ts
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
8977
|
// src/utils/react.ts
|
|
8845
8978
|
|
|
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
8979
|
|
|
8935
8980
|
// 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
|
-
|
|
8981
|
+
var IS_REACT_19 = /* @__PURE__ */ (/* unused pure expression or super */ null && (React.version.startsWith("19")));
|
|
8982
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
8983
|
+
IS_REACT_19 ? "react.transitional.element" : "react.element"
|
|
8984
|
+
)));
|
|
8985
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.portal")));
|
|
8986
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.fragment")));
|
|
8987
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.strict_mode")));
|
|
8988
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.profiler")));
|
|
8989
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.consumer")));
|
|
8990
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.context")));
|
|
8991
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
8992
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.suspense")));
|
|
8993
|
+
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
8994
|
+
"react.suspense_list"
|
|
8995
|
+
)));
|
|
8996
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
8997
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.lazy")));
|
|
8998
|
+
var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.offscreen")));
|
|
8999
|
+
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
9000
|
+
"react.client.reference"
|
|
9001
|
+
)));
|
|
8951
9002
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
8952
9003
|
var Memo = REACT_MEMO_TYPE;
|
|
8953
9004
|
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;
|
|
9005
|
+
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
9006
|
}
|
|
8971
9007
|
function typeOf(object) {
|
|
8972
9008
|
if (typeof object === "object" && object !== null) {
|
|
8973
|
-
const $$typeof = object
|
|
9009
|
+
const { $$typeof } = object;
|
|
8974
9010
|
switch ($$typeof) {
|
|
8975
|
-
case REACT_ELEMENT_TYPE:
|
|
8976
|
-
|
|
8977
|
-
switch (type) {
|
|
9011
|
+
case REACT_ELEMENT_TYPE:
|
|
9012
|
+
switch (object = object.type, object) {
|
|
8978
9013
|
case REACT_FRAGMENT_TYPE:
|
|
8979
9014
|
case REACT_PROFILER_TYPE:
|
|
8980
9015
|
case REACT_STRICT_MODE_TYPE:
|
|
8981
9016
|
case REACT_SUSPENSE_TYPE:
|
|
8982
9017
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
8983
|
-
return
|
|
8984
|
-
default:
|
|
8985
|
-
|
|
8986
|
-
switch ($$typeofType) {
|
|
8987
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
9018
|
+
return object;
|
|
9019
|
+
default:
|
|
9020
|
+
switch (object = object && object.$$typeof, object) {
|
|
8988
9021
|
case REACT_CONTEXT_TYPE:
|
|
8989
9022
|
case REACT_FORWARD_REF_TYPE:
|
|
8990
9023
|
case REACT_LAZY_TYPE:
|
|
8991
9024
|
case REACT_MEMO_TYPE:
|
|
8992
|
-
|
|
8993
|
-
|
|
9025
|
+
return object;
|
|
9026
|
+
case REACT_CONSUMER_TYPE:
|
|
9027
|
+
return object;
|
|
8994
9028
|
default:
|
|
8995
9029
|
return $$typeof;
|
|
8996
9030
|
}
|
|
8997
|
-
}
|
|
8998
9031
|
}
|
|
8999
|
-
|
|
9000
|
-
case REACT_PORTAL_TYPE: {
|
|
9032
|
+
case REACT_PORTAL_TYPE:
|
|
9001
9033
|
return $$typeof;
|
|
9002
|
-
}
|
|
9003
9034
|
}
|
|
9004
9035
|
}
|
|
9005
|
-
return void 0;
|
|
9006
9036
|
}
|
|
9007
9037
|
function isContextConsumer(object) {
|
|
9008
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
9038
|
+
return IS_REACT_19 ? typeOf(object) === REACT_CONSUMER_TYPE : typeOf(object) === REACT_CONTEXT_TYPE;
|
|
9009
9039
|
}
|
|
9010
9040
|
function isMemo(object) {
|
|
9011
9041
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
@@ -9094,12 +9124,9 @@ function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, merg
|
|
|
9094
9124
|
);
|
|
9095
9125
|
state = nextState;
|
|
9096
9126
|
ownProps = nextOwnProps;
|
|
9097
|
-
if (propsChanged && stateChanged)
|
|
9098
|
-
|
|
9099
|
-
if (
|
|
9100
|
-
return handleNewProps();
|
|
9101
|
-
if (stateChanged)
|
|
9102
|
-
return handleNewState();
|
|
9127
|
+
if (propsChanged && stateChanged) return handleNewPropsAndNewState();
|
|
9128
|
+
if (propsChanged) return handleNewProps();
|
|
9129
|
+
if (stateChanged) return handleNewState();
|
|
9103
9130
|
return mergedProps;
|
|
9104
9131
|
}
|
|
9105
9132
|
return function pureFinalPropsSelector(nextState, nextOwnProps) {
|
|
@@ -9133,11 +9160,9 @@ function react_redux_bindActionCreators(actionCreators, dispatch) {
|
|
|
9133
9160
|
|
|
9134
9161
|
// src/utils/isPlainObject.ts
|
|
9135
9162
|
function react_redux_isPlainObject(obj) {
|
|
9136
|
-
if (typeof obj !== "object" || obj === null)
|
|
9137
|
-
return false;
|
|
9163
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
9138
9164
|
const proto = Object.getPrototypeOf(obj);
|
|
9139
|
-
if (proto === null)
|
|
9140
|
-
return true;
|
|
9165
|
+
if (proto === null) return true;
|
|
9141
9166
|
let baseProto = proto;
|
|
9142
9167
|
while (Object.getPrototypeOf(baseProto) !== null) {
|
|
9143
9168
|
baseProto = Object.getPrototypeOf(baseProto);
|
|
@@ -9295,8 +9320,7 @@ function createListenerCollection() {
|
|
|
9295
9320
|
first = listener;
|
|
9296
9321
|
}
|
|
9297
9322
|
return function unsubscribe() {
|
|
9298
|
-
if (!isSubscribed || first === null)
|
|
9299
|
-
return;
|
|
9323
|
+
if (!isSubscribed || first === null) return;
|
|
9300
9324
|
isSubscribed = false;
|
|
9301
9325
|
if (listener.next) {
|
|
9302
9326
|
listener.next.prev = listener.prev;
|
|
@@ -9386,9 +9410,12 @@ function createSubscription(store, parentSub) {
|
|
|
9386
9410
|
}
|
|
9387
9411
|
|
|
9388
9412
|
// src/utils/useIsomorphicLayoutEffect.ts
|
|
9389
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
9390
|
-
var
|
|
9391
|
-
var
|
|
9413
|
+
var canUseDOM = () => !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
9414
|
+
var isDOM = /* @__PURE__ */ canUseDOM();
|
|
9415
|
+
var isRunningInReactNative = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
9416
|
+
var isReactNative = /* @__PURE__ */ isRunningInReactNative();
|
|
9417
|
+
var getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? compat_module.useLayoutEffect : compat_module.useEffect;
|
|
9418
|
+
var useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect();
|
|
9392
9419
|
|
|
9393
9420
|
// src/utils/shallowEqual.ts
|
|
9394
9421
|
function react_redux_is(x, y) {
|
|
@@ -9399,15 +9426,13 @@ function react_redux_is(x, y) {
|
|
|
9399
9426
|
}
|
|
9400
9427
|
}
|
|
9401
9428
|
function shallowEqual(objA, objB) {
|
|
9402
|
-
if (react_redux_is(objA, objB))
|
|
9403
|
-
return true;
|
|
9429
|
+
if (react_redux_is(objA, objB)) return true;
|
|
9404
9430
|
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
9405
9431
|
return false;
|
|
9406
9432
|
}
|
|
9407
9433
|
const keysA = Object.keys(objA);
|
|
9408
9434
|
const keysB = Object.keys(objB);
|
|
9409
|
-
if (keysA.length !== keysB.length)
|
|
9410
|
-
return false;
|
|
9435
|
+
if (keysA.length !== keysB.length) return false;
|
|
9411
9436
|
for (let i = 0; i < keysA.length; i++) {
|
|
9412
9437
|
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !react_redux_is(objA[keysA[i]], objB[keysA[i]])) {
|
|
9413
9438
|
return false;
|
|
@@ -9498,11 +9523,28 @@ function hoistNonReactStatics(targetComponent, sourceComponent) {
|
|
|
9498
9523
|
return targetComponent;
|
|
9499
9524
|
}
|
|
9500
9525
|
|
|
9526
|
+
// src/components/Context.ts
|
|
9527
|
+
var ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);
|
|
9528
|
+
var gT = typeof globalThis !== "undefined" ? globalThis : (
|
|
9529
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
9530
|
+
{}
|
|
9531
|
+
);
|
|
9532
|
+
function getContext() {
|
|
9533
|
+
if (!compat_module.createContext) return {};
|
|
9534
|
+
const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();
|
|
9535
|
+
let realContext = contextMap.get(compat_module.createContext);
|
|
9536
|
+
if (!realContext) {
|
|
9537
|
+
realContext = compat_module.createContext(
|
|
9538
|
+
null
|
|
9539
|
+
);
|
|
9540
|
+
if (false) {}
|
|
9541
|
+
contextMap.set(compat_module.createContext, realContext);
|
|
9542
|
+
}
|
|
9543
|
+
return realContext;
|
|
9544
|
+
}
|
|
9545
|
+
var ReactReduxContext = /* @__PURE__ */ getContext();
|
|
9546
|
+
|
|
9501
9547
|
// src/components/connect.tsx
|
|
9502
|
-
var useSyncExternalStore = (/* unused pure expression or super */ null && (notInitialized));
|
|
9503
|
-
var initializeConnect = (fn) => {
|
|
9504
|
-
useSyncExternalStore = fn;
|
|
9505
|
-
};
|
|
9506
9548
|
var NO_SUBSCRIPTION_ARRAY = (/* unused pure expression or super */ null && ([null, null]));
|
|
9507
9549
|
var stringifyComponent = (Comp) => {
|
|
9508
9550
|
try {
|
|
@@ -9523,9 +9565,8 @@ function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled
|
|
|
9523
9565
|
}
|
|
9524
9566
|
}
|
|
9525
9567
|
function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {
|
|
9526
|
-
if (!shouldHandleStateChanges)
|
|
9527
|
-
|
|
9528
|
-
};
|
|
9568
|
+
if (!shouldHandleStateChanges) return () => {
|
|
9569
|
+
};
|
|
9529
9570
|
let didUnsubscribe = false;
|
|
9530
9571
|
let lastThrownError = null;
|
|
9531
9572
|
const checkForUpdates = () => {
|
|
@@ -9604,7 +9645,6 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9604
9645
|
WrappedComponent,
|
|
9605
9646
|
// @ts-ignore
|
|
9606
9647
|
initMapStateToProps,
|
|
9607
|
-
// @ts-ignore
|
|
9608
9648
|
initMapDispatchToProps,
|
|
9609
9649
|
initMergeProps,
|
|
9610
9650
|
areStatesEqual,
|
|
@@ -9634,8 +9674,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9634
9674
|
return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);
|
|
9635
9675
|
}, [store]);
|
|
9636
9676
|
const [subscription, notifyNestedSubs] = React.useMemo(() => {
|
|
9637
|
-
if (!shouldHandleStateChanges)
|
|
9638
|
-
return NO_SUBSCRIPTION_ARRAY;
|
|
9677
|
+
if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;
|
|
9639
9678
|
const subscription2 = createSubscription(
|
|
9640
9679
|
store,
|
|
9641
9680
|
didStoreComeFromProps ? void 0 : contextValue.subscription
|
|
@@ -9708,7 +9747,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9708
9747
|
]);
|
|
9709
9748
|
let actualChildProps;
|
|
9710
9749
|
try {
|
|
9711
|
-
actualChildProps = useSyncExternalStore(
|
|
9750
|
+
actualChildProps = React.useSyncExternalStore(
|
|
9712
9751
|
// TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
|
|
9713
9752
|
subscribeForReact,
|
|
9714
9753
|
// TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
|
|
@@ -9774,25 +9813,20 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
9774
9813
|
var connect_default = (/* unused pure expression or super */ null && (connect));
|
|
9775
9814
|
|
|
9776
9815
|
// 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(() => {
|
|
9816
|
+
function Provider(providerProps) {
|
|
9817
|
+
const { children, context, serverState, store } = providerProps;
|
|
9818
|
+
const contextValue = compat_module.useMemo(() => {
|
|
9786
9819
|
const subscription = createSubscription(store);
|
|
9787
|
-
|
|
9820
|
+
const baseContextValue = {
|
|
9788
9821
|
store,
|
|
9789
9822
|
subscription,
|
|
9790
|
-
getServerState: serverState ? () => serverState : void 0
|
|
9791
|
-
stabilityCheck,
|
|
9792
|
-
identityFunctionCheck
|
|
9823
|
+
getServerState: serverState ? () => serverState : void 0
|
|
9793
9824
|
};
|
|
9794
|
-
|
|
9795
|
-
|
|
9825
|
+
if (true) {
|
|
9826
|
+
return baseContextValue;
|
|
9827
|
+
} else {}
|
|
9828
|
+
}, [store, serverState]);
|
|
9829
|
+
const previousState = compat_module.useMemo(() => store.getState(), [store]);
|
|
9796
9830
|
useIsomorphicLayoutEffect(() => {
|
|
9797
9831
|
const { subscription } = contextValue;
|
|
9798
9832
|
subscription.onStateChange = subscription.notifyNestedSubs;
|
|
@@ -9806,10 +9840,20 @@ function Provider({
|
|
|
9806
9840
|
};
|
|
9807
9841
|
}, [contextValue, previousState]);
|
|
9808
9842
|
const Context = context || ReactReduxContext;
|
|
9809
|
-
return /* @__PURE__ */
|
|
9843
|
+
return /* @__PURE__ */ compat_module.createElement(Context.Provider, { value: contextValue }, children);
|
|
9810
9844
|
}
|
|
9811
9845
|
var Provider_default = Provider;
|
|
9812
9846
|
|
|
9847
|
+
// src/hooks/useReduxContext.ts
|
|
9848
|
+
function createReduxContextHook(context = ReactReduxContext) {
|
|
9849
|
+
return function useReduxContext2() {
|
|
9850
|
+
const contextValue = compat_module.useContext(context);
|
|
9851
|
+
if (false) {}
|
|
9852
|
+
return contextValue;
|
|
9853
|
+
};
|
|
9854
|
+
}
|
|
9855
|
+
var useReduxContext = /* @__PURE__ */ createReduxContextHook();
|
|
9856
|
+
|
|
9813
9857
|
// src/hooks/useStore.ts
|
|
9814
9858
|
function createStoreHook(context = ReactReduxContext) {
|
|
9815
9859
|
const useReduxContext2 = context === ReactReduxContext ? useReduxContext : (
|
|
@@ -9841,15 +9885,49 @@ function createDispatchHook(context = ReactReduxContext) {
|
|
|
9841
9885
|
}
|
|
9842
9886
|
var useDispatch = /* @__PURE__ */ createDispatchHook();
|
|
9843
9887
|
|
|
9888
|
+
// src/hooks/useSelector.ts
|
|
9889
|
+
|
|
9890
|
+
var refEquality = (a, b) => a === b;
|
|
9891
|
+
function createSelectorHook(context = ReactReduxContext) {
|
|
9892
|
+
const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
|
|
9893
|
+
const useSelector2 = (selector, equalityFnOrOptions = {}) => {
|
|
9894
|
+
const { equalityFn = refEquality } = typeof equalityFnOrOptions === "function" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;
|
|
9895
|
+
if (false) {}
|
|
9896
|
+
const reduxContext = useReduxContext2();
|
|
9897
|
+
const { store, subscription, getServerState } = reduxContext;
|
|
9898
|
+
const firstRun = compat_module.useRef(true);
|
|
9899
|
+
const wrappedSelector = compat_module.useCallback(
|
|
9900
|
+
{
|
|
9901
|
+
[selector.name](state) {
|
|
9902
|
+
const selected = selector(state);
|
|
9903
|
+
if (false) {}
|
|
9904
|
+
return selected;
|
|
9905
|
+
}
|
|
9906
|
+
}[selector.name],
|
|
9907
|
+
[selector]
|
|
9908
|
+
);
|
|
9909
|
+
const selectedState = (0,with_selector.useSyncExternalStoreWithSelector)(
|
|
9910
|
+
subscription.addNestedSub,
|
|
9911
|
+
store.getState,
|
|
9912
|
+
getServerState || store.getState,
|
|
9913
|
+
wrappedSelector,
|
|
9914
|
+
equalityFn
|
|
9915
|
+
);
|
|
9916
|
+
compat_module.useDebugValue(selectedState);
|
|
9917
|
+
return selectedState;
|
|
9918
|
+
};
|
|
9919
|
+
Object.assign(useSelector2, {
|
|
9920
|
+
withTypes: () => useSelector2
|
|
9921
|
+
});
|
|
9922
|
+
return useSelector2;
|
|
9923
|
+
}
|
|
9924
|
+
var react_redux_useSelector = /* @__PURE__ */ createSelectorHook();
|
|
9925
|
+
|
|
9844
9926
|
// src/exports.ts
|
|
9845
9927
|
var batch = (/* unused pure expression or super */ null && (defaultNoopBatch));
|
|
9846
9928
|
|
|
9847
|
-
// src/index.ts
|
|
9848
|
-
initializeUseSelector(with_selector.useSyncExternalStoreWithSelector);
|
|
9849
|
-
initializeConnect(compat_module.useSyncExternalStore);
|
|
9850
|
-
|
|
9851
9929
|
//# sourceMappingURL=react-redux.mjs.map
|
|
9852
|
-
;// ./src/javascripts/domains/config/hooks.ts
|
|
9930
|
+
;// ./src/javascripts/core/domains/config/hooks.ts
|
|
9853
9931
|
|
|
9854
9932
|
|
|
9855
9933
|
const useConfig = () => react_redux_useSelector(selectConfig);
|
|
@@ -9869,7 +9947,7 @@ function useStartChatIcon() {
|
|
|
9869
9947
|
} = useConfig();
|
|
9870
9948
|
return startChatIcon;
|
|
9871
9949
|
}
|
|
9872
|
-
;// ./src/javascripts/ui/utils/general-utils.ts
|
|
9950
|
+
;// ./src/javascripts/core/ui/utils/general-utils.ts
|
|
9873
9951
|
|
|
9874
9952
|
const debounce = (func, wait) => {
|
|
9875
9953
|
let timeout;
|
|
@@ -10000,7 +10078,7 @@ const omit = (obj, keys) => Object.keys(obj).reduce((accum, key) => {
|
|
|
10000
10078
|
function childIsVNode(child) {
|
|
10001
10079
|
return typeof child === 'object';
|
|
10002
10080
|
}
|
|
10003
|
-
;// ./src/javascripts/ui/hooks/seamly-state-hooks.ts
|
|
10081
|
+
;// ./src/javascripts/core/ui/hooks/seamly-state-hooks.ts
|
|
10004
10082
|
|
|
10005
10083
|
|
|
10006
10084
|
|
|
@@ -10121,7 +10199,7 @@ const useSeamlyLayoutMode = () => {
|
|
|
10121
10199
|
isResolving: !layoutMode
|
|
10122
10200
|
};
|
|
10123
10201
|
};
|
|
10124
|
-
;// ./src/javascripts/domains/visibility/selectors.ts
|
|
10202
|
+
;// ./src/javascripts/core/domains/visibility/selectors.ts
|
|
10125
10203
|
|
|
10126
10204
|
const selectVisibility = createSelector(({
|
|
10127
10205
|
visibility
|
|
@@ -10132,7 +10210,7 @@ const selectShowInlineView = createSelector(({
|
|
|
10132
10210
|
const selectSetInputFocus = createSelector(({
|
|
10133
10211
|
visibility
|
|
10134
10212
|
}) => visibility, state => state.setInputFocus);
|
|
10135
|
-
;// ./src/javascripts/domains/visibility/actions.ts
|
|
10213
|
+
;// ./src/javascripts/core/domains/visibility/actions.ts
|
|
10136
10214
|
|
|
10137
10215
|
|
|
10138
10216
|
|
|
@@ -10217,7 +10295,7 @@ const initializeVisibility = createAsyncThunk('initialize', async (_, {
|
|
|
10217
10295
|
}));
|
|
10218
10296
|
return storedVisibility;
|
|
10219
10297
|
});
|
|
10220
|
-
;// ./src/javascripts/domains/app/actions.ts
|
|
10298
|
+
;// ./src/javascripts/core/domains/app/actions.ts
|
|
10221
10299
|
|
|
10222
10300
|
|
|
10223
10301
|
|
|
@@ -10297,7 +10375,7 @@ const resetApp = create_debounced_async_thunk('resetApp', async (_, {
|
|
|
10297
10375
|
wait: 2000,
|
|
10298
10376
|
leading: true
|
|
10299
10377
|
});
|
|
10300
|
-
;// ./src/javascripts/config.ts
|
|
10378
|
+
;// ./src/javascripts/core/config.ts
|
|
10301
10379
|
const CSS_NAME = 'cvco';
|
|
10302
10380
|
const userParticipantId = 'seamly-client-participant';
|
|
10303
10381
|
|
|
@@ -10334,7 +10412,7 @@ const defaultConfig = {
|
|
|
10334
10412
|
}
|
|
10335
10413
|
}
|
|
10336
10414
|
};
|
|
10337
|
-
;// ./src/javascripts/domains/config/slice.ts
|
|
10415
|
+
;// ./src/javascripts/core/domains/config/slice.ts
|
|
10338
10416
|
|
|
10339
10417
|
|
|
10340
10418
|
|
|
@@ -10439,7 +10517,7 @@ const {
|
|
|
10439
10517
|
setPreChatEvents
|
|
10440
10518
|
} = configSlice.actions;
|
|
10441
10519
|
/* harmony default export */ const slice = (configSlice.reducer);
|
|
10442
|
-
;// ./src/javascripts/domains/app/slice.ts
|
|
10520
|
+
;// ./src/javascripts/core/domains/app/slice.ts
|
|
10443
10521
|
|
|
10444
10522
|
|
|
10445
10523
|
const initialState = {
|
|
@@ -10469,7 +10547,7 @@ const {
|
|
|
10469
10547
|
setHasResponded
|
|
10470
10548
|
} = appSlice.actions;
|
|
10471
10549
|
/* harmony default export */ const app_slice = (appSlice.reducer);
|
|
10472
|
-
;// ./src/javascripts/api/errors/seamly-offline-error.ts
|
|
10550
|
+
;// ./src/javascripts/core/api/errors/seamly-offline-error.ts
|
|
10473
10551
|
|
|
10474
10552
|
class SeamlyOfflineError extends SeamlyBaseError {
|
|
10475
10553
|
constructor(originalError, ...params) {
|
|
@@ -10478,7 +10556,7 @@ class SeamlyOfflineError extends SeamlyBaseError {
|
|
|
10478
10556
|
this.langKey = 'errors.seamlyOffline';
|
|
10479
10557
|
}
|
|
10480
10558
|
}
|
|
10481
|
-
;// ./src/javascripts/domains/errors/index.ts
|
|
10559
|
+
;// ./src/javascripts/core/domains/errors/index.ts
|
|
10482
10560
|
|
|
10483
10561
|
|
|
10484
10562
|
|
|
@@ -10548,7 +10626,7 @@ function createErrorsMiddleware({
|
|
|
10548
10626
|
};
|
|
10549
10627
|
};
|
|
10550
10628
|
}
|
|
10551
|
-
;// ./src/javascripts/domains/forms/slice.ts
|
|
10629
|
+
;// ./src/javascripts/core/domains/forms/slice.ts
|
|
10552
10630
|
|
|
10553
10631
|
|
|
10554
10632
|
const initialFormState = {
|
|
@@ -10660,7 +10738,7 @@ const {
|
|
|
10660
10738
|
updateControlTouched: slice_updateControlTouched
|
|
10661
10739
|
} = formsSlice.actions;
|
|
10662
10740
|
/* harmony default export */ const forms_slice = (formsSlice.reducer);
|
|
10663
|
-
;// ./src/javascripts/domains/i18n/actions.ts
|
|
10741
|
+
;// ./src/javascripts/core/domains/i18n/actions.ts
|
|
10664
10742
|
|
|
10665
10743
|
const setLocale = createAsyncThunk('setLocale', async (userLocale, {
|
|
10666
10744
|
extra: {
|
|
@@ -10694,7 +10772,7 @@ const setLocale = createAsyncThunk('setLocale', async (userLocale, {
|
|
|
10694
10772
|
return true;
|
|
10695
10773
|
}
|
|
10696
10774
|
});
|
|
10697
|
-
;// ./src/javascripts/domains/i18n/slice.ts
|
|
10775
|
+
;// ./src/javascripts/core/domains/i18n/slice.ts
|
|
10698
10776
|
|
|
10699
10777
|
|
|
10700
10778
|
|
|
@@ -10765,7 +10843,7 @@ const {
|
|
|
10765
10843
|
setTranslations
|
|
10766
10844
|
} = i18nSlice.actions;
|
|
10767
10845
|
/* harmony default export */ const i18n_slice = (i18nSlice.reducer);
|
|
10768
|
-
;// ./src/javascripts/domains/store/actions.ts
|
|
10846
|
+
;// ./src/javascripts/core/domains/store/actions.ts
|
|
10769
10847
|
|
|
10770
10848
|
const getConversation = createAsyncThunk('getConversation', async (_, {
|
|
10771
10849
|
extra: {
|
|
@@ -10803,7 +10881,7 @@ const getConversation = createAsyncThunk('getConversation', async (_, {
|
|
|
10803
10881
|
return lastEvent && payloadLastEventId !== lastEvent.payload.id;
|
|
10804
10882
|
}
|
|
10805
10883
|
});
|
|
10806
|
-
;// ./src/javascripts/domains/interrupt/slice.ts
|
|
10884
|
+
;// ./src/javascripts/core/domains/interrupt/slice.ts
|
|
10807
10885
|
|
|
10808
10886
|
|
|
10809
10887
|
|
|
@@ -10835,7 +10913,7 @@ const {
|
|
|
10835
10913
|
clearInterrupt
|
|
10836
10914
|
} = interruptSlice.actions;
|
|
10837
10915
|
/* harmony default export */ const interrupt_slice = (interruptSlice.reducer);
|
|
10838
|
-
;// ./src/javascripts/domains/interrupt/middleware.ts
|
|
10916
|
+
;// ./src/javascripts/core/domains/interrupt/middleware.ts
|
|
10839
10917
|
|
|
10840
10918
|
|
|
10841
10919
|
const handledErrorTypes = ['SeamlyGeneralError', 'SeamlyConfigurationError', 'SeamlySessionExpiredError', 'SeamlyOfflineError', 'SeamlyUnauthorizedError', 'SeamlyUnavailableError'];
|
|
@@ -10860,7 +10938,7 @@ function createInterruptMiddleware({
|
|
|
10860
10938
|
return next(action);
|
|
10861
10939
|
};
|
|
10862
10940
|
}
|
|
10863
|
-
;// ./src/javascripts/domains/store/slice.ts
|
|
10941
|
+
;// ./src/javascripts/core/domains/store/slice.ts
|
|
10864
10942
|
|
|
10865
10943
|
|
|
10866
10944
|
|
|
@@ -11539,7 +11617,7 @@ const {
|
|
|
11539
11617
|
setProactiveMessages
|
|
11540
11618
|
} = storeSlice.actions;
|
|
11541
11619
|
/* harmony default export */ const store_slice = (storeSlice.reducer);
|
|
11542
|
-
;// ./src/javascripts/domains/options/middleware.ts
|
|
11620
|
+
;// ./src/javascripts/core/domains/options/middleware.ts
|
|
11543
11621
|
|
|
11544
11622
|
function createOptionsMiddleware({
|
|
11545
11623
|
api
|
|
@@ -11560,7 +11638,7 @@ function createOptionsMiddleware({
|
|
|
11560
11638
|
return result;
|
|
11561
11639
|
};
|
|
11562
11640
|
}
|
|
11563
|
-
;// ./src/javascripts/domains/translations/middleware.ts
|
|
11641
|
+
;// ./src/javascripts/core/domains/translations/middleware.ts
|
|
11564
11642
|
|
|
11565
11643
|
|
|
11566
11644
|
|
|
@@ -11597,7 +11675,7 @@ const createI18nMiddleware = ({
|
|
|
11597
11675
|
};
|
|
11598
11676
|
};
|
|
11599
11677
|
/* harmony default export */ const middleware = (createI18nMiddleware);
|
|
11600
|
-
;// ./src/javascripts/domains/translations/slice.ts
|
|
11678
|
+
;// ./src/javascripts/core/domains/translations/slice.ts
|
|
11601
11679
|
|
|
11602
11680
|
|
|
11603
11681
|
|
|
@@ -11736,7 +11814,7 @@ const {
|
|
|
11736
11814
|
disableTranslationProposalPrompt
|
|
11737
11815
|
} = translationSlice.actions;
|
|
11738
11816
|
/* harmony default export */ const translations_slice = (translationSlice.reducer);
|
|
11739
|
-
;// ./src/javascripts/domains/visibility/slice.ts
|
|
11817
|
+
;// ./src/javascripts/core/domains/visibility/slice.ts
|
|
11740
11818
|
|
|
11741
11819
|
|
|
11742
11820
|
|
|
@@ -11779,7 +11857,7 @@ const {
|
|
|
11779
11857
|
setShowInlineView
|
|
11780
11858
|
} = visibilitySlice.actions;
|
|
11781
11859
|
/* harmony default export */ const visibility_slice = (visibilitySlice.reducer);
|
|
11782
|
-
;// ./src/javascripts/domains/store/index.ts
|
|
11860
|
+
;// ./src/javascripts/core/domains/store/index.ts
|
|
11783
11861
|
|
|
11784
11862
|
|
|
11785
11863
|
|
|
@@ -12355,7 +12433,7 @@ function selectTypeHandler(value, matches, locale, values, process) {
|
|
|
12355
12433
|
|
|
12356
12434
|
//# sourceMappingURL=icu-message-formatter.js.map
|
|
12357
12435
|
|
|
12358
|
-
;// ./src/javascripts/domains/i18n/selectors.ts
|
|
12436
|
+
;// ./src/javascripts/core/domains/i18n/selectors.ts
|
|
12359
12437
|
|
|
12360
12438
|
const selectTranslations = createSelector(({
|
|
12361
12439
|
i18n
|
|
@@ -12377,7 +12455,7 @@ const selectIsLoading = createSelector(({
|
|
|
12377
12455
|
}) => i18n, ({
|
|
12378
12456
|
isLoading
|
|
12379
12457
|
}) => isLoading);
|
|
12380
|
-
;// ./src/javascripts/domains/i18n/hooks.ts
|
|
12458
|
+
;// ./src/javascripts/core/domains/i18n/hooks.ts
|
|
12381
12459
|
|
|
12382
12460
|
|
|
12383
12461
|
|
|
@@ -12409,7 +12487,7 @@ function useI18n() {
|
|
|
12409
12487
|
initialLocale
|
|
12410
12488
|
};
|
|
12411
12489
|
}
|
|
12412
|
-
;// ./src/javascripts/domains/visibility/hooks.ts
|
|
12490
|
+
;// ./src/javascripts/core/domains/visibility/hooks.ts
|
|
12413
12491
|
|
|
12414
12492
|
|
|
12415
12493
|
|
|
@@ -12512,22 +12590,15 @@ const useShowInlineView = () => {
|
|
|
12512
12590
|
showInlineView
|
|
12513
12591
|
};
|
|
12514
12592
|
};
|
|
12515
|
-
;// ./src/javascripts/domains/app/hooks.ts
|
|
12593
|
+
;// ./src/javascripts/core/domains/app/hooks.ts
|
|
12516
12594
|
|
|
12517
12595
|
|
|
12518
12596
|
const useUserHasResponded = () => react_redux_useSelector(selectUserHasResponded);
|
|
12519
|
-
;// ./src/javascripts/ui/components/core/seamly-api-context.ts
|
|
12597
|
+
;// ./src/javascripts/core/ui/components/core/seamly-api-context.ts
|
|
12520
12598
|
|
|
12521
12599
|
const SeamlyApiContext = (0,external_preact_.createContext)(null);
|
|
12522
12600
|
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
|
|
12601
|
+
;// ./src/javascripts/core/ui/hooks/event-bus-hooks.ts
|
|
12531
12602
|
|
|
12532
12603
|
|
|
12533
12604
|
const useSeamlyEventBusContext = () => {
|
|
@@ -12538,7 +12609,7 @@ const useSeamlyEventBusContext = () => {
|
|
|
12538
12609
|
return eventBus;
|
|
12539
12610
|
};
|
|
12540
12611
|
/* harmony default export */ const event_bus_hooks = (useSeamlyEventBusContext);
|
|
12541
|
-
;// ./src/javascripts/ui/hooks/seamly-api-hooks.ts
|
|
12612
|
+
;// ./src/javascripts/core/ui/hooks/seamly-api-hooks.ts
|
|
12542
12613
|
|
|
12543
12614
|
|
|
12544
12615
|
const useSeamlyApiContext = () => {
|
|
@@ -12568,7 +12639,7 @@ const useSeamlyHasConversation = () => {
|
|
|
12568
12639
|
}, [api]);
|
|
12569
12640
|
return hasConversation;
|
|
12570
12641
|
};
|
|
12571
|
-
;// ./src/javascripts/ui/hooks/use-seamly-commands.ts
|
|
12642
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-commands.ts
|
|
12572
12643
|
|
|
12573
12644
|
|
|
12574
12645
|
|
|
@@ -12759,7 +12830,10 @@ const useSeamlyCommands = () => {
|
|
|
12759
12830
|
};
|
|
12760
12831
|
};
|
|
12761
12832
|
/* harmony default export */ const use_seamly_commands = (useSeamlyCommands);
|
|
12762
|
-
;// ./src/javascripts/ui/
|
|
12833
|
+
;// ./src/javascripts/core/ui/components/core/seamly-live-region-context.ts
|
|
12834
|
+
|
|
12835
|
+
const SeamlyLiveRegionContext = (0,external_preact_.createContext)(null);
|
|
12836
|
+
;// ./src/javascripts/core/ui/hooks/live-region-hooks.ts
|
|
12763
12837
|
|
|
12764
12838
|
|
|
12765
12839
|
|
|
@@ -12791,7 +12865,7 @@ const useLiveRegion = () => {
|
|
|
12791
12865
|
sendAssertive
|
|
12792
12866
|
};
|
|
12793
12867
|
};
|
|
12794
|
-
;// ./src/javascripts/domains/interrupt/selectors.ts
|
|
12868
|
+
;// ./src/javascripts/core/domains/interrupt/selectors.ts
|
|
12795
12869
|
|
|
12796
12870
|
const selectError = createSelector(({
|
|
12797
12871
|
interrupt
|
|
@@ -12799,7 +12873,7 @@ const selectError = createSelector(({
|
|
|
12799
12873
|
error
|
|
12800
12874
|
}) => error);
|
|
12801
12875
|
const selectHasError = createSelector(selectError, error => Boolean(error));
|
|
12802
|
-
;// ./src/javascripts/domains/interrupt/hooks.ts
|
|
12876
|
+
;// ./src/javascripts/core/domains/interrupt/hooks.ts
|
|
12803
12877
|
|
|
12804
12878
|
|
|
12805
12879
|
|
|
@@ -12850,7 +12924,7 @@ function useInterrupt() {
|
|
|
12850
12924
|
error
|
|
12851
12925
|
};
|
|
12852
12926
|
}
|
|
12853
|
-
;// ./src/javascripts/ui/hooks/use-session-expired-command.ts
|
|
12927
|
+
;// ./src/javascripts/core/ui/hooks/use-session-expired-command.ts
|
|
12854
12928
|
|
|
12855
12929
|
|
|
12856
12930
|
|
|
@@ -12896,7 +12970,7 @@ function useSessionExpiredCommand() {
|
|
|
12896
12970
|
};
|
|
12897
12971
|
}, [action, reset, isExpiredError, dispatch]);
|
|
12898
12972
|
}
|
|
12899
|
-
;// ./src/javascripts/ui/hooks/use-seamly-chat.ts
|
|
12973
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-chat.ts
|
|
12900
12974
|
|
|
12901
12975
|
|
|
12902
12976
|
|
|
@@ -12993,7 +13067,7 @@ const jsx_runtime_namespaceObject = require("preact/jsx-runtime");
|
|
|
12993
13067
|
|
|
12994
13068
|
|
|
12995
13069
|
|
|
12996
|
-
;// ./src/javascripts/ui/components/core/seamly-chat.tsx
|
|
13070
|
+
;// ./src/javascripts/core/ui/components/core/seamly-chat.tsx
|
|
12997
13071
|
|
|
12998
13072
|
|
|
12999
13073
|
const SeamlyChat = ({
|
|
@@ -13005,11 +13079,11 @@ const SeamlyChat = ({
|
|
|
13005
13079
|
});
|
|
13006
13080
|
};
|
|
13007
13081
|
/* harmony default export */ const seamly_chat = (SeamlyChat);
|
|
13008
|
-
;// ./src/javascripts/ui/components/conversation/component-context.ts
|
|
13082
|
+
;// ./src/javascripts/core/ui/components/conversation/component-context.ts
|
|
13009
13083
|
|
|
13010
13084
|
const ComponentContext = (0,external_preact_.createContext)(null);
|
|
13011
13085
|
/* harmony default export */ const component_context = (ComponentContext);
|
|
13012
|
-
;// ./src/javascripts/ui/hooks/focus-helper-hooks.ts
|
|
13086
|
+
;// ./src/javascripts/core/ui/hooks/focus-helper-hooks.ts
|
|
13013
13087
|
|
|
13014
13088
|
|
|
13015
13089
|
|
|
@@ -13053,10 +13127,10 @@ const useFocusIfSeamlyContainedFocus = () => {
|
|
|
13053
13127
|
runIfElementContainsOrHasFocus(containerElementRef.current, focusFn);
|
|
13054
13128
|
}, []);
|
|
13055
13129
|
};
|
|
13056
|
-
;// ./src/javascripts/domains/translations/selectors.ts
|
|
13130
|
+
;// ./src/javascripts/core/domains/translations/selectors.ts
|
|
13057
13131
|
|
|
13058
13132
|
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
|
|
13133
|
+
;// ./src/javascripts/core/domains/translations/hooks.ts
|
|
13060
13134
|
|
|
13061
13135
|
|
|
13062
13136
|
|
|
@@ -13210,7 +13284,7 @@ const useTranslationProposal = () => {
|
|
|
13210
13284
|
translationProposal
|
|
13211
13285
|
};
|
|
13212
13286
|
};
|
|
13213
|
-
;// ./src/javascripts/lib/css.ts
|
|
13287
|
+
;// ./src/javascripts/core/lib/css.ts
|
|
13214
13288
|
|
|
13215
13289
|
const css_className = (...classes) => classes.flat().map(c => {
|
|
13216
13290
|
if (typeof c === 'object') {
|
|
@@ -13224,7 +13298,7 @@ const css_className = (...classes) => classes.flat().map(c => {
|
|
|
13224
13298
|
}
|
|
13225
13299
|
return [CSS_NAME, c].join('-');
|
|
13226
13300
|
}).join(' ');
|
|
13227
|
-
;// ./src/javascripts/ui/hooks/component-helper-hooks.ts
|
|
13301
|
+
;// ./src/javascripts/core/ui/hooks/component-helper-hooks.ts
|
|
13228
13302
|
|
|
13229
13303
|
|
|
13230
13304
|
const useSeamlyAppContainerClassNames = () => {
|
|
@@ -13244,7 +13318,7 @@ const useSeamlyMessageContainerClassNames = event => {
|
|
|
13244
13318
|
}
|
|
13245
13319
|
return classNames;
|
|
13246
13320
|
};
|
|
13247
|
-
;// ./src/javascripts/ui/hooks/use-seamly-conversation.ts
|
|
13321
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-conversation.ts
|
|
13248
13322
|
|
|
13249
13323
|
|
|
13250
13324
|
|
|
@@ -13254,11 +13328,11 @@ const useSeamlyConversation = () => {
|
|
|
13254
13328
|
return (0,compat_namespaceObject.useSyncExternalStore)(ConversationConnector.subscribe, getSnapshot);
|
|
13255
13329
|
};
|
|
13256
13330
|
/* harmony default export */ const use_seamly_conversation = (useSeamlyConversation);
|
|
13257
|
-
;// ./src/javascripts/ui/components/core/seamly-file-upload-context.ts
|
|
13331
|
+
;// ./src/javascripts/core/ui/components/core/seamly-file-upload-context.ts
|
|
13258
13332
|
|
|
13259
13333
|
const SeamlyFileUploadContext = (0,external_preact_.createContext)(null);
|
|
13260
13334
|
/* harmony default export */ const seamly_file_upload_context = (SeamlyFileUploadContext);
|
|
13261
|
-
;// ./src/javascripts/ui/hooks/file-upload-hooks.ts
|
|
13335
|
+
;// ./src/javascripts/core/ui/hooks/file-upload-hooks.ts
|
|
13262
13336
|
|
|
13263
13337
|
|
|
13264
13338
|
|
|
@@ -13335,7 +13409,7 @@ const useFileUploads = () => {
|
|
|
13335
13409
|
isComplete: currentUploads.every(file => file.complete)
|
|
13336
13410
|
};
|
|
13337
13411
|
};
|
|
13338
|
-
;// ./src/javascripts/ui/hooks/seamly-option-hooks.ts
|
|
13412
|
+
;// ./src/javascripts/core/ui/hooks/seamly-option-hooks.ts
|
|
13339
13413
|
|
|
13340
13414
|
|
|
13341
13415
|
|
|
@@ -13431,11 +13505,11 @@ const useOptionButton = () => {
|
|
|
13431
13505
|
focusButton
|
|
13432
13506
|
};
|
|
13433
13507
|
};
|
|
13434
|
-
;// ./src/javascripts/ui/components/core/seamly-activity-event-context.ts
|
|
13508
|
+
;// ./src/javascripts/core/ui/components/core/seamly-activity-event-context.ts
|
|
13435
13509
|
|
|
13436
13510
|
const SeamlyActivityEventContext = (0,external_preact_.createContext)(null);
|
|
13437
13511
|
/* harmony default export */ const seamly_activity_event_context = (SeamlyActivityEventContext);
|
|
13438
|
-
;// ./src/javascripts/ui/hooks/use-seamly-activity-event-handler.ts
|
|
13512
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-activity-event-handler.ts
|
|
13439
13513
|
|
|
13440
13514
|
|
|
13441
13515
|
const useSeamlyActivityEventHandler = () => {
|
|
@@ -13446,7 +13520,7 @@ const useSeamlyActivityEventHandler = () => {
|
|
|
13446
13520
|
return onActivityHandler;
|
|
13447
13521
|
};
|
|
13448
13522
|
/* harmony default export */ const use_seamly_activity_event_handler = (useSeamlyActivityEventHandler);
|
|
13449
|
-
;// ./src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.ts
|
|
13523
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-idle-detach-countdown.ts
|
|
13450
13524
|
|
|
13451
13525
|
|
|
13452
13526
|
|
|
@@ -13555,7 +13629,7 @@ const useSeamlyIdleDetachCountdown = () => {
|
|
|
13555
13629
|
};
|
|
13556
13630
|
};
|
|
13557
13631
|
/* harmony default export */ const use_seamly_idle_detach_countdown = (useSeamlyIdleDetachCountdown);
|
|
13558
|
-
;// ./src/javascripts/ui/hooks/use-seamly-resume-conversation-prompt.ts
|
|
13632
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-resume-conversation-prompt.ts
|
|
13559
13633
|
|
|
13560
13634
|
|
|
13561
13635
|
|
|
@@ -13598,7 +13672,7 @@ const useSeamlyResumeConversationPrompt = () => {
|
|
|
13598
13672
|
};
|
|
13599
13673
|
};
|
|
13600
13674
|
/* harmony default export */ const use_seamly_resume_conversation_prompt = (useSeamlyResumeConversationPrompt);
|
|
13601
|
-
;// ./src/javascripts/ui/hooks/utility-hooks.ts
|
|
13675
|
+
;// ./src/javascripts/core/ui/hooks/utility-hooks.ts
|
|
13602
13676
|
|
|
13603
13677
|
|
|
13604
13678
|
const useForceUpdate = () => {
|
|
@@ -13617,7 +13691,7 @@ const useGeneratedId = () => {
|
|
|
13617
13691
|
const [id] = (0,hooks_.useState)(() => randomId());
|
|
13618
13692
|
return id;
|
|
13619
13693
|
};
|
|
13620
|
-
;// ./src/javascripts/ui/hooks/seamly-hooks.ts
|
|
13694
|
+
;// ./src/javascripts/core/ui/hooks/seamly-hooks.ts
|
|
13621
13695
|
|
|
13622
13696
|
// Import extracted hooks here for use inside this file
|
|
13623
13697
|
|
|
@@ -13660,7 +13734,7 @@ const useSeamlyEventStream = (nextFn, filterFn) => {
|
|
|
13660
13734
|
});
|
|
13661
13735
|
}, [nextFn, filterFn, conversation]);
|
|
13662
13736
|
};
|
|
13663
|
-
;// ./src/javascripts/ui/components/conversation/event/event-participant.tsx
|
|
13737
|
+
;// ./src/javascripts/core/ui/components/conversation/event/event-participant.tsx
|
|
13664
13738
|
|
|
13665
13739
|
|
|
13666
13740
|
|
|
@@ -13712,7 +13786,7 @@ const EventParticipant = ({
|
|
|
13712
13786
|
}) : null;
|
|
13713
13787
|
};
|
|
13714
13788
|
/* harmony default export */ const event_participant = (EventParticipant);
|
|
13715
|
-
;// ./src/javascripts/ui/components/conversation/message-container.tsx
|
|
13789
|
+
;// ./src/javascripts/core/ui/components/conversation/message-container.tsx
|
|
13716
13790
|
|
|
13717
13791
|
|
|
13718
13792
|
|
|
@@ -13779,7 +13853,7 @@ const MessageContainer = ({
|
|
|
13779
13853
|
});
|
|
13780
13854
|
};
|
|
13781
13855
|
/* harmony default export */ const message_container = (MessageContainer);
|
|
13782
|
-
;// ./src/javascripts/ui/components/conversation/event/card-component.tsx
|
|
13856
|
+
;// ./src/javascripts/core/ui/components/conversation/event/card-component.tsx
|
|
13783
13857
|
|
|
13784
13858
|
|
|
13785
13859
|
|
|
@@ -13880,7 +13954,7 @@ const CardComponent = ({
|
|
|
13880
13954
|
});
|
|
13881
13955
|
};
|
|
13882
13956
|
/* harmony default export */ const card_component = (CardComponent);
|
|
13883
|
-
;// ./src/javascripts/ui/components/conversation/event/card-message.tsx
|
|
13957
|
+
;// ./src/javascripts/core/ui/components/conversation/event/card-message.tsx
|
|
13884
13958
|
|
|
13885
13959
|
|
|
13886
13960
|
|
|
@@ -13903,7 +13977,7 @@ const CardMessage = ({
|
|
|
13903
13977
|
});
|
|
13904
13978
|
};
|
|
13905
13979
|
/* harmony default export */ const card_message = (CardMessage);
|
|
13906
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-message/components/slide.tsx
|
|
13980
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-message/components/slide.tsx
|
|
13907
13981
|
|
|
13908
13982
|
|
|
13909
13983
|
|
|
@@ -13976,7 +14050,7 @@ const icon_options_32_namespaceObject = "<svg xmlns=\"http://www.w3.org/2000/svg
|
|
|
13976
14050
|
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
14051
|
;// ./src/icons/icon_upload-32.svg
|
|
13978
14052
|
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
|
|
14053
|
+
;// ./src/javascripts/core/ui/components/layout/icon.tsx
|
|
13980
14054
|
|
|
13981
14055
|
|
|
13982
14056
|
|
|
@@ -14077,7 +14151,7 @@ const Icon = ({
|
|
|
14077
14151
|
})]
|
|
14078
14152
|
});
|
|
14079
14153
|
/* harmony default export */ const layout_icon = (Icon);
|
|
14080
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/components/controls.tsx
|
|
14154
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/components/controls.tsx
|
|
14081
14155
|
|
|
14082
14156
|
|
|
14083
14157
|
|
|
@@ -14121,7 +14195,7 @@ function CarouselControls({
|
|
|
14121
14195
|
})]
|
|
14122
14196
|
});
|
|
14123
14197
|
}
|
|
14124
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/components/pagination.tsx
|
|
14198
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/components/pagination.tsx
|
|
14125
14199
|
|
|
14126
14200
|
|
|
14127
14201
|
|
|
@@ -14162,7 +14236,7 @@ function CarouselPagination({
|
|
|
14162
14236
|
})
|
|
14163
14237
|
});
|
|
14164
14238
|
}
|
|
14165
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-component/index.tsx
|
|
14239
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-component/index.tsx
|
|
14166
14240
|
|
|
14167
14241
|
|
|
14168
14242
|
|
|
@@ -14258,7 +14332,7 @@ function CarouselComponent({
|
|
|
14258
14332
|
})]
|
|
14259
14333
|
});
|
|
14260
14334
|
}
|
|
14261
|
-
;// ./src/javascripts/ui/components/conversation/event/carousel-message/index.tsx
|
|
14335
|
+
;// ./src/javascripts/core/ui/components/conversation/event/carousel-message/index.tsx
|
|
14262
14336
|
|
|
14263
14337
|
|
|
14264
14338
|
|
|
@@ -14283,7 +14357,7 @@ const CarouselMessage = ({
|
|
|
14283
14357
|
});
|
|
14284
14358
|
};
|
|
14285
14359
|
/* harmony default export */ const carousel_message = (CarouselMessage);
|
|
14286
|
-
;// ./src/javascripts/ui/components/conversation/event/choice-prompt.tsx
|
|
14360
|
+
;// ./src/javascripts/core/ui/components/conversation/event/choice-prompt.tsx
|
|
14287
14361
|
|
|
14288
14362
|
|
|
14289
14363
|
|
|
@@ -14425,7 +14499,7 @@ const ChoicePrompt = ({
|
|
|
14425
14499
|
});
|
|
14426
14500
|
};
|
|
14427
14501
|
/* harmony default export */ const choice_prompt = (ChoicePrompt);
|
|
14428
|
-
;// ./src/javascripts/ui/components/suggestions/suggestions-item.tsx
|
|
14502
|
+
;// ./src/javascripts/core/ui/components/suggestions/suggestions-item.tsx
|
|
14429
14503
|
|
|
14430
14504
|
|
|
14431
14505
|
|
|
@@ -14464,7 +14538,7 @@ const SuggestionsItem = ({
|
|
|
14464
14538
|
});
|
|
14465
14539
|
};
|
|
14466
14540
|
/* harmony default export */ const suggestions_item = (SuggestionsItem);
|
|
14467
|
-
;// ./src/javascripts/ui/components/suggestions/suggestions-list.tsx
|
|
14541
|
+
;// ./src/javascripts/core/ui/components/suggestions/suggestions-list.tsx
|
|
14468
14542
|
|
|
14469
14543
|
|
|
14470
14544
|
|
|
@@ -14484,7 +14558,7 @@ const SuggestionsList = ({
|
|
|
14484
14558
|
}, suggestion.id))
|
|
14485
14559
|
});
|
|
14486
14560
|
/* harmony default export */ const suggestions_list = (SuggestionsList);
|
|
14487
|
-
;// ./src/javascripts/ui/components/conversation/event/conversation-suggestions.tsx
|
|
14561
|
+
;// ./src/javascripts/core/ui/components/conversation/event/conversation-suggestions.tsx
|
|
14488
14562
|
|
|
14489
14563
|
|
|
14490
14564
|
|
|
@@ -14590,7 +14664,7 @@ const ConversationSuggestions = ({
|
|
|
14590
14664
|
});
|
|
14591
14665
|
};
|
|
14592
14666
|
/* harmony default export */ const conversation_suggestions = (ConversationSuggestions);
|
|
14593
|
-
;// ./src/javascripts/ui/components/conversation/event/hooks/use-event-link-click-handler.ts
|
|
14667
|
+
;// ./src/javascripts/core/ui/components/conversation/event/hooks/use-event-link-click-handler.ts
|
|
14594
14668
|
|
|
14595
14669
|
|
|
14596
14670
|
const useEventLinkClickHandler = ({
|
|
@@ -14616,7 +14690,7 @@ const useEventLinkClickHandler = ({
|
|
|
14616
14690
|
return eventClick;
|
|
14617
14691
|
};
|
|
14618
14692
|
/* harmony default export */ const use_event_link_click_handler = (useEventLinkClickHandler);
|
|
14619
|
-
;// ./src/javascripts/ui/components/conversation/event/cta.tsx
|
|
14693
|
+
;// ./src/javascripts/core/ui/components/conversation/event/cta.tsx
|
|
14620
14694
|
|
|
14621
14695
|
|
|
14622
14696
|
|
|
@@ -14668,7 +14742,7 @@ const Cta = ({
|
|
|
14668
14742
|
});
|
|
14669
14743
|
};
|
|
14670
14744
|
/* harmony default export */ const cta = (Cta);
|
|
14671
|
-
;// ./src/javascripts/ui/components/conversation/event-divider.tsx
|
|
14745
|
+
;// ./src/javascripts/core/ui/components/conversation/event-divider.tsx
|
|
14672
14746
|
|
|
14673
14747
|
|
|
14674
14748
|
|
|
@@ -14718,7 +14792,7 @@ const EventDivider = ({
|
|
|
14718
14792
|
});
|
|
14719
14793
|
};
|
|
14720
14794
|
/* harmony default export */ const event_divider = (EventDivider);
|
|
14721
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/default.tsx
|
|
14795
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/default.tsx
|
|
14722
14796
|
|
|
14723
14797
|
|
|
14724
14798
|
|
|
@@ -14743,7 +14817,7 @@ const Divider = ({
|
|
|
14743
14817
|
}) : null;
|
|
14744
14818
|
};
|
|
14745
14819
|
/* harmony default export */ const variants_default = (Divider);
|
|
14746
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/new-translation.tsx
|
|
14820
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/new-translation.tsx
|
|
14747
14821
|
|
|
14748
14822
|
|
|
14749
14823
|
|
|
@@ -14798,7 +14872,7 @@ const NewTranslationDivider = ({
|
|
|
14798
14872
|
});
|
|
14799
14873
|
};
|
|
14800
14874
|
/* harmony default export */ const new_translation = (NewTranslationDivider);
|
|
14801
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/index.tsx
|
|
14875
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/index.tsx
|
|
14802
14876
|
|
|
14803
14877
|
|
|
14804
14878
|
|
|
@@ -14818,7 +14892,7 @@ const divider_Divider = ({
|
|
|
14818
14892
|
});
|
|
14819
14893
|
};
|
|
14820
14894
|
/* harmony default export */ const divider = (divider_Divider);
|
|
14821
|
-
;// ./src/javascripts/ui/components/conversation/event/hooks/use-formatted-date.ts
|
|
14895
|
+
;// ./src/javascripts/core/ui/components/conversation/event/hooks/use-formatted-date.ts
|
|
14822
14896
|
|
|
14823
14897
|
|
|
14824
14898
|
|
|
@@ -14867,7 +14941,7 @@ const useFormattedDate = date => {
|
|
|
14867
14941
|
timeUntilMidnight
|
|
14868
14942
|
};
|
|
14869
14943
|
};
|
|
14870
|
-
;// ./src/javascripts/ui/components/conversation/event/divider/variants/time-indicator.tsx
|
|
14944
|
+
;// ./src/javascripts/core/ui/components/conversation/event/divider/variants/time-indicator.tsx
|
|
14871
14945
|
|
|
14872
14946
|
|
|
14873
14947
|
|
|
@@ -15489,7 +15563,7 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
15489
15563
|
|
|
15490
15564
|
;// ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
15491
15565
|
/*!
|
|
15492
|
-
* focus-trap 7.6.
|
|
15566
|
+
* focus-trap 7.6.4
|
|
15493
15567
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
15494
15568
|
*/
|
|
15495
15569
|
|
|
@@ -15505,9 +15579,9 @@ function _arrayWithoutHoles(r) {
|
|
|
15505
15579
|
function _defineProperty(e, r, t) {
|
|
15506
15580
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
15507
15581
|
value: t,
|
|
15508
|
-
enumerable:
|
|
15509
|
-
configurable:
|
|
15510
|
-
writable:
|
|
15582
|
+
enumerable: true,
|
|
15583
|
+
configurable: true,
|
|
15584
|
+
writable: true
|
|
15511
15585
|
}) : e[r] = t, e;
|
|
15512
15586
|
}
|
|
15513
15587
|
function _iterableToArray(r) {
|
|
@@ -15529,7 +15603,7 @@ function ownKeys(e, r) {
|
|
|
15529
15603
|
function _objectSpread2(e) {
|
|
15530
15604
|
for (var r = 1; r < arguments.length; r++) {
|
|
15531
15605
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
15532
|
-
r % 2 ? ownKeys(Object(t),
|
|
15606
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
15533
15607
|
_defineProperty(e, r, t[r]);
|
|
15534
15608
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
15535
15609
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -15543,7 +15617,7 @@ function _toConsumableArray(r) {
|
|
|
15543
15617
|
function _toPrimitive(t, r) {
|
|
15544
15618
|
if ("object" != typeof t || !t) return t;
|
|
15545
15619
|
var e = t[Symbol.toPrimitive];
|
|
15546
|
-
if (
|
|
15620
|
+
if (undefined !== e) {
|
|
15547
15621
|
var i = e.call(t, r || "default");
|
|
15548
15622
|
if ("object" != typeof i) return i;
|
|
15549
15623
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -15558,7 +15632,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
15558
15632
|
if (r) {
|
|
15559
15633
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
15560
15634
|
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) :
|
|
15635
|
+
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
15636
|
}
|
|
15563
15637
|
}
|
|
15564
15638
|
|
|
@@ -15567,7 +15641,7 @@ var activeFocusTraps = {
|
|
|
15567
15641
|
if (trapStack.length > 0) {
|
|
15568
15642
|
var activeTrap = trapStack[trapStack.length - 1];
|
|
15569
15643
|
if (activeTrap !== trap) {
|
|
15570
|
-
activeTrap.
|
|
15644
|
+
activeTrap._setPausedState(true);
|
|
15571
15645
|
}
|
|
15572
15646
|
}
|
|
15573
15647
|
var trapIndex = trapStack.indexOf(trap);
|
|
@@ -15584,8 +15658,8 @@ var activeFocusTraps = {
|
|
|
15584
15658
|
if (trapIndex !== -1) {
|
|
15585
15659
|
trapStack.splice(trapIndex, 1);
|
|
15586
15660
|
}
|
|
15587
|
-
if (trapStack.length > 0) {
|
|
15588
|
-
trapStack[trapStack.length - 1].
|
|
15661
|
+
if (trapStack.length > 0 && !trapStack[trapStack.length - 1]._isManuallyPaused()) {
|
|
15662
|
+
trapStack[trapStack.length - 1]._setPausedState(false);
|
|
15589
15663
|
}
|
|
15590
15664
|
}
|
|
15591
15665
|
};
|
|
@@ -15593,10 +15667,10 @@ var isSelectableInput = function isSelectableInput(node) {
|
|
|
15593
15667
|
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
15594
15668
|
};
|
|
15595
15669
|
var isEscapeEvent = function isEscapeEvent(e) {
|
|
15596
|
-
return (e === null || e ===
|
|
15670
|
+
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
15671
|
};
|
|
15598
15672
|
var isTabEvent = function isTabEvent(e) {
|
|
15599
|
-
return (e === null || e ===
|
|
15673
|
+
return (e === null || e === undefined ? undefined : e.key) === 'Tab' || (e === null || e === undefined ? undefined : e.keyCode) === 9;
|
|
15600
15674
|
};
|
|
15601
15675
|
|
|
15602
15676
|
// checks for TAB by default
|
|
@@ -15623,7 +15697,7 @@ var valueOrHandler = function valueOrHandler(value) {
|
|
|
15623
15697
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
15624
15698
|
params[_key - 1] = arguments[_key];
|
|
15625
15699
|
}
|
|
15626
|
-
return typeof value === 'function' ? value.apply(
|
|
15700
|
+
return typeof value === 'function' ? value.apply(undefined, params) : value;
|
|
15627
15701
|
};
|
|
15628
15702
|
var getActualTarget = function getActualTarget(event) {
|
|
15629
15703
|
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
@@ -15642,8 +15716,8 @@ var internalTrapStack = [];
|
|
|
15642
15716
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
15643
15717
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
15644
15718
|
// 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 ===
|
|
15719
|
+
var doc = (userOptions === null || userOptions === undefined ? undefined : userOptions.document) || document;
|
|
15720
|
+
var trapStack = (userOptions === null || userOptions === undefined ? undefined : userOptions.trapStack) || internalTrapStack;
|
|
15647
15721
|
var config = _objectSpread2({
|
|
15648
15722
|
returnFocusOnDeactivate: true,
|
|
15649
15723
|
escapeDeactivates: true,
|
|
@@ -15683,6 +15757,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15683
15757
|
mostRecentlyFocusedNode: null,
|
|
15684
15758
|
active: false,
|
|
15685
15759
|
paused: false,
|
|
15760
|
+
manuallyPaused: false,
|
|
15686
15761
|
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
15687
15762
|
// has been delayed during activation
|
|
15688
15763
|
delayInitialFocusTimer: undefined,
|
|
@@ -15714,7 +15789,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15714
15789
|
* if the element isn't found.
|
|
15715
15790
|
*/
|
|
15716
15791
|
var findContainerIndex = function findContainerIndex(element, event) {
|
|
15717
|
-
var composedPath = typeof (event === null || event ===
|
|
15792
|
+
var composedPath = typeof (event === null || event === undefined ? undefined : event.composedPath) === 'function' ? event.composedPath() : undefined;
|
|
15718
15793
|
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
15719
15794
|
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
15720
15795
|
// and we still need to find the element in there
|
|
@@ -15725,7 +15800,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15725
15800
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
15726
15801
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
15727
15802
|
// look inside web components even if open)
|
|
15728
|
-
composedPath === null || composedPath ===
|
|
15803
|
+
composedPath === null || composedPath === undefined ? undefined : composedPath.includes(container)) || tabbableNodes.find(function (node) {
|
|
15729
15804
|
return node === element;
|
|
15730
15805
|
});
|
|
15731
15806
|
});
|
|
@@ -15752,12 +15827,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15752
15827
|
var getNodeForOption = function getNodeForOption(optionName) {
|
|
15753
15828
|
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
15754
15829
|
_ref2$hasFallback = _ref2.hasFallback,
|
|
15755
|
-
hasFallback = _ref2$hasFallback ===
|
|
15830
|
+
hasFallback = _ref2$hasFallback === undefined ? false : _ref2$hasFallback,
|
|
15756
15831
|
_ref2$params = _ref2.params,
|
|
15757
|
-
params = _ref2$params ===
|
|
15832
|
+
params = _ref2$params === undefined ? [] : _ref2$params;
|
|
15758
15833
|
var optionValue = config[optionName];
|
|
15759
15834
|
if (typeof optionValue === 'function') {
|
|
15760
|
-
optionValue = optionValue.apply(
|
|
15835
|
+
optionValue = optionValue.apply(undefined, _toConsumableArray(params));
|
|
15761
15836
|
}
|
|
15762
15837
|
if (optionValue === true) {
|
|
15763
15838
|
optionValue = undefined; // use default value
|
|
@@ -15973,7 +16048,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
15973
16048
|
var target = _ref3.target,
|
|
15974
16049
|
event = _ref3.event,
|
|
15975
16050
|
_ref3$isBackward = _ref3.isBackward,
|
|
15976
|
-
isBackward = _ref3$isBackward ===
|
|
16051
|
+
isBackward = _ref3$isBackward === undefined ? false : _ref3$isBackward;
|
|
15977
16052
|
target = target || getActualTarget(event);
|
|
15978
16053
|
updateTabbableNodes();
|
|
15979
16054
|
var destinationNode = null;
|
|
@@ -16355,14 +16430,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16355
16430
|
state.active = true;
|
|
16356
16431
|
state.paused = false;
|
|
16357
16432
|
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
16358
|
-
onActivate === null || onActivate ===
|
|
16433
|
+
onActivate === null || onActivate === undefined || onActivate();
|
|
16359
16434
|
var finishActivation = function finishActivation() {
|
|
16360
16435
|
if (checkCanFocusTrap) {
|
|
16361
16436
|
updateTabbableNodes();
|
|
16362
16437
|
}
|
|
16363
16438
|
addListeners();
|
|
16364
16439
|
updateObservedNodes();
|
|
16365
|
-
onPostActivate === null || onPostActivate ===
|
|
16440
|
+
onPostActivate === null || onPostActivate === undefined || onPostActivate();
|
|
16366
16441
|
};
|
|
16367
16442
|
if (checkCanFocusTrap) {
|
|
16368
16443
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
@@ -16391,13 +16466,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16391
16466
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
16392
16467
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
16393
16468
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
16394
|
-
onDeactivate === null || onDeactivate ===
|
|
16469
|
+
onDeactivate === null || onDeactivate === undefined || onDeactivate();
|
|
16395
16470
|
var finishDeactivation = function finishDeactivation() {
|
|
16396
16471
|
delay(function () {
|
|
16397
16472
|
if (returnFocus) {
|
|
16398
16473
|
_tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
16399
16474
|
}
|
|
16400
|
-
onPostDeactivate === null || onPostDeactivate ===
|
|
16475
|
+
onPostDeactivate === null || onPostDeactivate === undefined || onPostDeactivate();
|
|
16401
16476
|
});
|
|
16402
16477
|
};
|
|
16403
16478
|
if (returnFocus && checkCanReturnFocus) {
|
|
@@ -16408,31 +16483,21 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16408
16483
|
return this;
|
|
16409
16484
|
},
|
|
16410
16485
|
pause: function pause(pauseOptions) {
|
|
16411
|
-
if (
|
|
16486
|
+
if (!state.active) {
|
|
16412
16487
|
return this;
|
|
16413
16488
|
}
|
|
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;
|
|
16489
|
+
state.manuallyPaused = true;
|
|
16490
|
+
return this._setPausedState(true, pauseOptions);
|
|
16422
16491
|
},
|
|
16423
16492
|
unpause: function unpause(unpauseOptions) {
|
|
16424
|
-
if (!state.
|
|
16493
|
+
if (!state.active) {
|
|
16425
16494
|
return this;
|
|
16426
16495
|
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
addListeners();
|
|
16433
|
-
updateObservedNodes();
|
|
16434
|
-
onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause();
|
|
16435
|
-
return this;
|
|
16496
|
+
state.manuallyPaused = false;
|
|
16497
|
+
if (trapStack[trapStack.length - 1] !== this) {
|
|
16498
|
+
return this;
|
|
16499
|
+
}
|
|
16500
|
+
return this._setPausedState(false, unpauseOptions);
|
|
16436
16501
|
},
|
|
16437
16502
|
updateContainerElements: function updateContainerElements(containerElements) {
|
|
16438
16503
|
var elementsAsArray = [].concat(containerElements).filter(Boolean);
|
|
@@ -16446,6 +16511,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16446
16511
|
return this;
|
|
16447
16512
|
}
|
|
16448
16513
|
};
|
|
16514
|
+
Object.defineProperties(trap, {
|
|
16515
|
+
_isManuallyPaused: {
|
|
16516
|
+
value: function value() {
|
|
16517
|
+
return state.manuallyPaused;
|
|
16518
|
+
}
|
|
16519
|
+
},
|
|
16520
|
+
_setPausedState: {
|
|
16521
|
+
value: function value(paused, options) {
|
|
16522
|
+
if (state.paused === paused) {
|
|
16523
|
+
return this;
|
|
16524
|
+
}
|
|
16525
|
+
state.paused = paused;
|
|
16526
|
+
if (paused) {
|
|
16527
|
+
var onPause = getOption(options, 'onPause');
|
|
16528
|
+
var onPostPause = getOption(options, 'onPostPause');
|
|
16529
|
+
onPause === null || onPause === undefined || onPause();
|
|
16530
|
+
removeListeners();
|
|
16531
|
+
updateObservedNodes();
|
|
16532
|
+
onPostPause === null || onPostPause === undefined || onPostPause();
|
|
16533
|
+
} else {
|
|
16534
|
+
var onUnpause = getOption(options, 'onUnpause');
|
|
16535
|
+
var onPostUnpause = getOption(options, 'onPostUnpause');
|
|
16536
|
+
onUnpause === null || onUnpause === undefined || onUnpause();
|
|
16537
|
+
updateTabbableNodes();
|
|
16538
|
+
addListeners();
|
|
16539
|
+
updateObservedNodes();
|
|
16540
|
+
onPostUnpause === null || onPostUnpause === undefined || onPostUnpause();
|
|
16541
|
+
}
|
|
16542
|
+
return this;
|
|
16543
|
+
}
|
|
16544
|
+
}
|
|
16545
|
+
});
|
|
16449
16546
|
|
|
16450
16547
|
// initialize container elements
|
|
16451
16548
|
trap.updateContainerElements(elements);
|
|
@@ -16455,7 +16552,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
16455
16552
|
|
|
16456
16553
|
//# sourceMappingURL=focus-trap.esm.js.map
|
|
16457
16554
|
|
|
16458
|
-
;// ./src/javascripts/ui/components/widgets/modal.tsx
|
|
16555
|
+
;// ./src/javascripts/core/ui/components/widgets/modal.tsx
|
|
16459
16556
|
|
|
16460
16557
|
|
|
16461
16558
|
|
|
@@ -16552,7 +16649,7 @@ const Modal = ({
|
|
|
16552
16649
|
}), modalContainer.current);
|
|
16553
16650
|
};
|
|
16554
16651
|
/* harmony default export */ const modal = (Modal);
|
|
16555
|
-
;// ./src/javascripts/ui/components/widgets/lightbox.tsx
|
|
16652
|
+
;// ./src/javascripts/core/ui/components/widgets/lightbox.tsx
|
|
16556
16653
|
|
|
16557
16654
|
|
|
16558
16655
|
|
|
@@ -16638,7 +16735,7 @@ const Lightbox = ({
|
|
|
16638
16735
|
});
|
|
16639
16736
|
};
|
|
16640
16737
|
/* harmony default export */ const lightbox = (Lightbox);
|
|
16641
|
-
;// ./src/javascripts/ui/components/conversation/event/image-lightbox.tsx
|
|
16738
|
+
;// ./src/javascripts/core/ui/components/conversation/event/image-lightbox.tsx
|
|
16642
16739
|
|
|
16643
16740
|
|
|
16644
16741
|
|
|
@@ -16679,7 +16776,7 @@ const ImageLightbox = ({
|
|
|
16679
16776
|
});
|
|
16680
16777
|
};
|
|
16681
16778
|
/* harmony default export */ const image_lightbox = (ImageLightbox);
|
|
16682
|
-
;// ./src/javascripts/ui/components/conversation/event/image.tsx
|
|
16779
|
+
;// ./src/javascripts/core/ui/components/conversation/event/image.tsx
|
|
16683
16780
|
|
|
16684
16781
|
|
|
16685
16782
|
|
|
@@ -16717,7 +16814,7 @@ const image_Image = ({
|
|
|
16717
16814
|
});
|
|
16718
16815
|
};
|
|
16719
16816
|
/* harmony default export */ const event_image = (image_Image);
|
|
16720
|
-
;// ./src/javascripts/ui/components/conversation/event/participant.tsx
|
|
16817
|
+
;// ./src/javascripts/core/ui/components/conversation/event/participant.tsx
|
|
16721
16818
|
|
|
16722
16819
|
|
|
16723
16820
|
|
|
@@ -16742,7 +16839,7 @@ const Participant = ({
|
|
|
16742
16839
|
});
|
|
16743
16840
|
};
|
|
16744
16841
|
/* harmony default export */ const participant = (Participant);
|
|
16745
|
-
;// ./src/javascripts/ui/components/conversation/event/splash.tsx
|
|
16842
|
+
;// ./src/javascripts/core/ui/components/conversation/event/splash.tsx
|
|
16746
16843
|
|
|
16747
16844
|
|
|
16748
16845
|
|
|
@@ -16775,7 +16872,7 @@ const Splash = ({
|
|
|
16775
16872
|
});
|
|
16776
16873
|
};
|
|
16777
16874
|
/* harmony default export */ const splash = (Splash);
|
|
16778
|
-
;// ./src/javascripts/ui/components/conversation/event/text.tsx
|
|
16875
|
+
;// ./src/javascripts/core/ui/components/conversation/event/text.tsx
|
|
16779
16876
|
|
|
16780
16877
|
|
|
16781
16878
|
|
|
@@ -16817,7 +16914,7 @@ const Text = ({
|
|
|
16817
16914
|
});
|
|
16818
16915
|
};
|
|
16819
16916
|
/* harmony default export */ const event_text = (Text);
|
|
16820
|
-
;// ./src/javascripts/ui/components/conversation/event/translation.tsx
|
|
16917
|
+
;// ./src/javascripts/core/ui/components/conversation/event/translation.tsx
|
|
16821
16918
|
|
|
16822
16919
|
|
|
16823
16920
|
|
|
@@ -16840,7 +16937,7 @@ const Translation = ({
|
|
|
16840
16937
|
});
|
|
16841
16938
|
};
|
|
16842
16939
|
/* harmony default export */ const translation = (Translation);
|
|
16843
|
-
;// ./src/javascripts/ui/components/conversation/event/upload.tsx
|
|
16940
|
+
;// ./src/javascripts/core/ui/components/conversation/event/upload.tsx
|
|
16844
16941
|
|
|
16845
16942
|
|
|
16846
16943
|
|
|
@@ -16978,7 +17075,7 @@ const Upload = ({
|
|
|
16978
17075
|
});
|
|
16979
17076
|
};
|
|
16980
17077
|
/* harmony default export */ const upload = (Upload);
|
|
16981
|
-
;// ./src/javascripts/ui/components/conversation/event/video.tsx
|
|
17078
|
+
;// ./src/javascripts/core/ui/components/conversation/event/video.tsx
|
|
16982
17079
|
|
|
16983
17080
|
|
|
16984
17081
|
|
|
@@ -17012,7 +17109,7 @@ const Video = ({
|
|
|
17012
17109
|
});
|
|
17013
17110
|
};
|
|
17014
17111
|
/* harmony default export */ const video = (Video);
|
|
17015
|
-
;// ./src/javascripts/ui/components/conversation/component-filter.tsx
|
|
17112
|
+
;// ./src/javascripts/core/ui/components/conversation/component-filter.tsx
|
|
17016
17113
|
|
|
17017
17114
|
|
|
17018
17115
|
|
|
@@ -17081,7 +17178,7 @@ const ComponentFilter = ({
|
|
|
17081
17178
|
});
|
|
17082
17179
|
};
|
|
17083
17180
|
/* harmony default export */ const component_filter = (ComponentFilter);
|
|
17084
|
-
;// ./src/javascripts/ui/components/core/seamly-activity-monitor.tsx
|
|
17181
|
+
;// ./src/javascripts/core/ui/components/core/seamly-activity-monitor.tsx
|
|
17085
17182
|
|
|
17086
17183
|
|
|
17087
17184
|
|
|
@@ -17145,7 +17242,7 @@ const SeamlyActivityMonitor = ({
|
|
|
17145
17242
|
});
|
|
17146
17243
|
};
|
|
17147
17244
|
/* harmony default export */ const seamly_activity_monitor = (SeamlyActivityMonitor);
|
|
17148
|
-
;// ./src/javascripts/ui/components/core/seamly-event-subscriber.ts
|
|
17245
|
+
;// ./src/javascripts/core/ui/components/core/seamly-event-subscriber.ts
|
|
17149
17246
|
|
|
17150
17247
|
|
|
17151
17248
|
|
|
@@ -17427,7 +17524,7 @@ const SeamlyEventSubscriber = () => {
|
|
|
17427
17524
|
return null;
|
|
17428
17525
|
};
|
|
17429
17526
|
/* harmony default export */ const seamly_event_subscriber = (SeamlyEventSubscriber);
|
|
17430
|
-
;// ./src/javascripts/ui/components/core/seamly-file-upload.tsx
|
|
17527
|
+
;// ./src/javascripts/core/ui/components/core/seamly-file-upload.tsx
|
|
17431
17528
|
|
|
17432
17529
|
|
|
17433
17530
|
|
|
@@ -17556,7 +17653,7 @@ const SeamlyFileUpload = ({
|
|
|
17556
17653
|
});
|
|
17557
17654
|
};
|
|
17558
17655
|
/* harmony default export */ const seamly_file_upload = (SeamlyFileUpload);
|
|
17559
|
-
;// ./src/javascripts/ui/hooks/use-interval.ts
|
|
17656
|
+
;// ./src/javascripts/core/ui/hooks/use-interval.ts
|
|
17560
17657
|
|
|
17561
17658
|
const useInterval = (callback, delay) => {
|
|
17562
17659
|
const savedCallback = (0,hooks_.useRef)(callback);
|
|
@@ -17576,7 +17673,7 @@ const useInterval = (callback, delay) => {
|
|
|
17576
17673
|
}, [delay]);
|
|
17577
17674
|
};
|
|
17578
17675
|
/* harmony default export */ const use_interval = (useInterval);
|
|
17579
|
-
;// ./src/javascripts/ui/components/core/seamly-idle-detach-counter.ts
|
|
17676
|
+
;// ./src/javascripts/core/ui/components/core/seamly-idle-detach-counter.ts
|
|
17580
17677
|
|
|
17581
17678
|
|
|
17582
17679
|
const SeamlyIdleDetachCounter = () => {
|
|
@@ -17592,7 +17689,7 @@ const SeamlyIdleDetachCounter = () => {
|
|
|
17592
17689
|
return null;
|
|
17593
17690
|
};
|
|
17594
17691
|
/* harmony default export */ const seamly_idle_detach_counter = (SeamlyIdleDetachCounter);
|
|
17595
|
-
;// ./src/javascripts/ui/components/core/seamly-initializer.tsx
|
|
17692
|
+
;// ./src/javascripts/core/ui/components/core/seamly-initializer.tsx
|
|
17596
17693
|
|
|
17597
17694
|
|
|
17598
17695
|
|
|
@@ -17611,7 +17708,7 @@ const SeamlyInitializer = () => {
|
|
|
17611
17708
|
return null;
|
|
17612
17709
|
};
|
|
17613
17710
|
/* harmony default export */ const seamly_initializer = (SeamlyInitializer);
|
|
17614
|
-
;// ./src/javascripts/ui/components/core/seamly-instance-functions-loader.ts
|
|
17711
|
+
;// ./src/javascripts/core/ui/components/core/seamly-instance-functions-loader.ts
|
|
17615
17712
|
|
|
17616
17713
|
|
|
17617
17714
|
|
|
@@ -17775,7 +17872,7 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17775
17872
|
return null;
|
|
17776
17873
|
};
|
|
17777
17874
|
/* harmony default export */ const seamly_instance_functions_loader = (SeamlyInstanceFunctionsLoader);
|
|
17778
|
-
;// ./src/javascripts/ui/components/core/seamly-live-region.tsx
|
|
17875
|
+
;// ./src/javascripts/core/ui/components/core/seamly-live-region.tsx
|
|
17779
17876
|
|
|
17780
17877
|
|
|
17781
17878
|
|
|
@@ -17832,7 +17929,7 @@ const SeamlyLiveRegion = ({
|
|
|
17832
17929
|
});
|
|
17833
17930
|
};
|
|
17834
17931
|
/* harmony default export */ const seamly_live_region = (SeamlyLiveRegion);
|
|
17835
|
-
;// ./src/javascripts/ui/components/core/seamly-new-notifications.ts
|
|
17932
|
+
;// ./src/javascripts/core/ui/components/core/seamly-new-notifications.ts
|
|
17836
17933
|
|
|
17837
17934
|
|
|
17838
17935
|
|
|
@@ -17894,7 +17991,7 @@ const SeamlyNewNotifications = () => {
|
|
|
17894
17991
|
return null;
|
|
17895
17992
|
};
|
|
17896
17993
|
/* harmony default export */ const seamly_new_notifications = (SeamlyNewNotifications);
|
|
17897
|
-
;// ./src/javascripts/ui/components/core/seamly-read-state.ts
|
|
17994
|
+
;// ./src/javascripts/core/ui/components/core/seamly-read-state.ts
|
|
17898
17995
|
|
|
17899
17996
|
|
|
17900
17997
|
|
|
@@ -17930,7 +18027,7 @@ const SeamlyReadState = () => {
|
|
|
17930
18027
|
return null;
|
|
17931
18028
|
};
|
|
17932
18029
|
/* harmony default export */ const seamly_read_state = (SeamlyReadState);
|
|
17933
|
-
;// ./src/javascripts/ui/components/core/seamly-core.tsx
|
|
18030
|
+
;// ./src/javascripts/core/ui/components/core/seamly-core.tsx
|
|
17934
18031
|
|
|
17935
18032
|
|
|
17936
18033
|
|
|
@@ -17979,7 +18076,7 @@ const SeamlyCore = ({
|
|
|
17979
18076
|
});
|
|
17980
18077
|
};
|
|
17981
18078
|
/* harmony default export */ const seamly_core = (SeamlyCore);
|
|
17982
|
-
;// ./src/javascripts/domains/store/selectors.ts
|
|
18079
|
+
;// ./src/javascripts/core/domains/store/selectors.ts
|
|
17983
18080
|
|
|
17984
18081
|
|
|
17985
18082
|
|
|
@@ -18001,16 +18098,7 @@ const selectUnreadEventIds = createSelector(selectUnreadEvents, events => events
|
|
|
18001
18098
|
const selectShowNotifications = createSelector(({
|
|
18002
18099
|
state
|
|
18003
18100
|
}) => 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
|
|
18101
|
+
;// ./src/javascripts/core/ui/components/layout/privacy-disclaimer.tsx
|
|
18014
18102
|
|
|
18015
18103
|
|
|
18016
18104
|
|
|
@@ -18037,7 +18125,7 @@ const PrivacyDisclaimer = () => {
|
|
|
18037
18125
|
}) : null;
|
|
18038
18126
|
};
|
|
18039
18127
|
/* harmony default export */ const privacy_disclaimer = (PrivacyDisclaimer);
|
|
18040
|
-
;// ./src/javascripts/ui/hooks/use-debounce.ts
|
|
18128
|
+
;// ./src/javascripts/core/ui/hooks/use-debounce.ts
|
|
18041
18129
|
|
|
18042
18130
|
const useDebounce = (value, delay = 20) => {
|
|
18043
18131
|
const [debouncedValue, setDebouncedValue] = (0,hooks_.useState)(value);
|
|
@@ -18051,7 +18139,7 @@ const useDebounce = (value, delay = 20) => {
|
|
|
18051
18139
|
return debouncedValue;
|
|
18052
18140
|
};
|
|
18053
18141
|
/* harmony default export */ const use_debounce = (useDebounce);
|
|
18054
|
-
;// ./src/javascripts/domains/forms/selectors.ts
|
|
18142
|
+
;// ./src/javascripts/core/domains/forms/selectors.ts
|
|
18055
18143
|
|
|
18056
18144
|
const getState = ({
|
|
18057
18145
|
forms
|
|
@@ -18075,7 +18163,7 @@ const getControlValueByName = createSelector([getFormControlsByFormId, (_, {
|
|
|
18075
18163
|
const getControlTouchedByName = createSelector([getFormControlsByFormId, (_, {
|
|
18076
18164
|
name
|
|
18077
18165
|
}) => name], (controls, name) => controls[name]?.touched);
|
|
18078
|
-
;// ./src/javascripts/domains/forms/context.ts
|
|
18166
|
+
;// ./src/javascripts/core/domains/forms/context.ts
|
|
18079
18167
|
|
|
18080
18168
|
const FormContext = (0,external_preact_.createContext)({
|
|
18081
18169
|
handleSubmit: () => undefined,
|
|
@@ -18090,7 +18178,7 @@ const {
|
|
|
18090
18178
|
Consumer
|
|
18091
18179
|
} = FormContext;
|
|
18092
18180
|
/* harmony default export */ const context = (FormContext);
|
|
18093
|
-
;// ./src/javascripts/domains/forms/utils.ts
|
|
18181
|
+
;// ./src/javascripts/core/domains/forms/utils.ts
|
|
18094
18182
|
function validate(values, schema = {}) {
|
|
18095
18183
|
return Object.entries(schema).reduce((errors, [key, validations]) => {
|
|
18096
18184
|
const validationsArr = !Array.isArray(validations) ? [validations] : validations;
|
|
@@ -18103,7 +18191,7 @@ function validate(values, schema = {}) {
|
|
|
18103
18191
|
return errors;
|
|
18104
18192
|
}, {});
|
|
18105
18193
|
}
|
|
18106
|
-
;// ./src/javascripts/domains/forms/hooks.ts
|
|
18194
|
+
;// ./src/javascripts/core/domains/forms/hooks.ts
|
|
18107
18195
|
|
|
18108
18196
|
|
|
18109
18197
|
|
|
@@ -18194,7 +18282,7 @@ function useFormControl(name) {
|
|
|
18194
18282
|
}), [isValid, error, touched]);
|
|
18195
18283
|
return [field, meta];
|
|
18196
18284
|
}
|
|
18197
|
-
;// ./src/javascripts/ui/components/entry/text-entry/hooks.ts
|
|
18285
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/hooks.ts
|
|
18198
18286
|
|
|
18199
18287
|
|
|
18200
18288
|
|
|
@@ -18289,7 +18377,7 @@ const useEntryAbortTransaction = () => {
|
|
|
18289
18377
|
clearEntryAbortTransaction
|
|
18290
18378
|
};
|
|
18291
18379
|
};
|
|
18292
|
-
;// ./src/javascripts/ui/components/entry/abort-transaction-button/abort-transaction-button.tsx
|
|
18380
|
+
;// ./src/javascripts/core/ui/components/entry/abort-transaction-button/abort-transaction-button.tsx
|
|
18293
18381
|
|
|
18294
18382
|
|
|
18295
18383
|
|
|
@@ -18322,7 +18410,7 @@ function AbortTransactionButton() {
|
|
|
18322
18410
|
})
|
|
18323
18411
|
});
|
|
18324
18412
|
}
|
|
18325
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/chat-scroll-context.ts
|
|
18413
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/chat-scroll-context.ts
|
|
18326
18414
|
|
|
18327
18415
|
|
|
18328
18416
|
const ChatScrollContext = (0,external_preact_.createContext)(null);
|
|
@@ -18334,7 +18422,7 @@ const useChatScrollContext = () => {
|
|
|
18334
18422
|
return context;
|
|
18335
18423
|
};
|
|
18336
18424
|
/* harmony default export */ const chat_scroll_context = (ChatScrollContext);
|
|
18337
|
-
;// ./src/javascripts/ui/hooks/use-event-component-mapping.ts
|
|
18425
|
+
;// ./src/javascripts/core/ui/hooks/use-event-component-mapping.ts
|
|
18338
18426
|
|
|
18339
18427
|
|
|
18340
18428
|
|
|
@@ -18362,7 +18450,7 @@ const useEventComponentMapping = event => {
|
|
|
18362
18450
|
return [Component || components?.fallback, SubComponent];
|
|
18363
18451
|
};
|
|
18364
18452
|
/* harmony default export */ const use_event_component_mapping = (useEventComponentMapping);
|
|
18365
|
-
;// ./src/javascripts/ui/components/conversation/event/event.tsx
|
|
18453
|
+
;// ./src/javascripts/core/ui/components/conversation/event/event.tsx
|
|
18366
18454
|
|
|
18367
18455
|
|
|
18368
18456
|
|
|
@@ -18434,7 +18522,7 @@ const event_Event = ({
|
|
|
18434
18522
|
});
|
|
18435
18523
|
};
|
|
18436
18524
|
/* harmony default export */ const event_event = (event_Event);
|
|
18437
|
-
;// ./src/javascripts/ui/components/conversation/loader.tsx
|
|
18525
|
+
;// ./src/javascripts/core/ui/components/conversation/loader.tsx
|
|
18438
18526
|
|
|
18439
18527
|
|
|
18440
18528
|
|
|
@@ -18471,7 +18559,7 @@ const Loader = () => {
|
|
|
18471
18559
|
});
|
|
18472
18560
|
};
|
|
18473
18561
|
/* harmony default export */ const loader = (Loader);
|
|
18474
|
-
;// ./src/javascripts/ui/components/conversation/conversation.tsx
|
|
18562
|
+
;// ./src/javascripts/core/ui/components/conversation/conversation.tsx
|
|
18475
18563
|
|
|
18476
18564
|
|
|
18477
18565
|
|
|
@@ -18548,7 +18636,7 @@ const Conversation = () => {
|
|
|
18548
18636
|
});
|
|
18549
18637
|
};
|
|
18550
18638
|
/* harmony default export */ const conversation = (Conversation);
|
|
18551
|
-
;// ./src/javascripts/ui/hooks/use-timeout.ts
|
|
18639
|
+
;// ./src/javascripts/core/ui/hooks/use-timeout.ts
|
|
18552
18640
|
|
|
18553
18641
|
function useTimeout(callback, delay) {
|
|
18554
18642
|
const timeoutRef = (0,hooks_.useRef)(null);
|
|
@@ -18565,7 +18653,7 @@ function useTimeout(callback, delay) {
|
|
|
18565
18653
|
}, [delay]);
|
|
18566
18654
|
return timeoutRef;
|
|
18567
18655
|
}
|
|
18568
|
-
;// ./src/javascripts/ui/components/widgets/in-out-transition.tsx
|
|
18656
|
+
;// ./src/javascripts/core/ui/components/widgets/in-out-transition.tsx
|
|
18569
18657
|
|
|
18570
18658
|
|
|
18571
18659
|
|
|
@@ -18662,7 +18750,7 @@ const InOutTransition = ({
|
|
|
18662
18750
|
});
|
|
18663
18751
|
};
|
|
18664
18752
|
/* harmony default export */ const in_out_transition = (InOutTransition);
|
|
18665
|
-
;// ./src/javascripts/ui/components/suggestions/index.tsx
|
|
18753
|
+
;// ./src/javascripts/core/ui/components/suggestions/index.tsx
|
|
18666
18754
|
|
|
18667
18755
|
|
|
18668
18756
|
|
|
@@ -18838,7 +18926,7 @@ const Suggestions = ({
|
|
|
18838
18926
|
});
|
|
18839
18927
|
};
|
|
18840
18928
|
/* harmony default export */ const suggestions = (Suggestions);
|
|
18841
|
-
;// ./src/javascripts/ui/components/layout/chat.tsx
|
|
18929
|
+
;// ./src/javascripts/core/ui/components/layout/chat.tsx
|
|
18842
18930
|
|
|
18843
18931
|
|
|
18844
18932
|
|
|
@@ -18905,7 +18993,7 @@ const Chat = (0,compat_namespaceObject.forwardRef)(({
|
|
|
18905
18993
|
});
|
|
18906
18994
|
});
|
|
18907
18995
|
/* harmony default export */ const chat = (Chat);
|
|
18908
|
-
;// ./src/javascripts/ui/components/chat-status/index.tsx
|
|
18996
|
+
;// ./src/javascripts/core/ui/components/chat-status/index.tsx
|
|
18909
18997
|
|
|
18910
18998
|
|
|
18911
18999
|
|
|
@@ -18947,7 +19035,7 @@ const ChatStatus = ({
|
|
|
18947
19035
|
});
|
|
18948
19036
|
};
|
|
18949
19037
|
/* harmony default export */ const chat_status = (ChatStatus);
|
|
18950
|
-
;// ./src/javascripts/ui/components/chat-status/chat-status-action.tsx
|
|
19038
|
+
;// ./src/javascripts/core/ui/components/chat-status/chat-status-action.tsx
|
|
18951
19039
|
|
|
18952
19040
|
|
|
18953
19041
|
|
|
@@ -18970,7 +19058,7 @@ const ChatStatusAction = ({
|
|
|
18970
19058
|
})]
|
|
18971
19059
|
});
|
|
18972
19060
|
/* harmony default export */ const chat_status_action = (ChatStatusAction);
|
|
18973
|
-
;// ./src/javascripts/ui/components/translation-proposal/index.tsx
|
|
19061
|
+
;// ./src/javascripts/core/ui/components/translation-proposal/index.tsx
|
|
18974
19062
|
|
|
18975
19063
|
|
|
18976
19064
|
|
|
@@ -19000,7 +19088,7 @@ function TranslationProposal() {
|
|
|
19000
19088
|
})
|
|
19001
19089
|
});
|
|
19002
19090
|
}
|
|
19003
|
-
;// ./src/javascripts/domains/translations/components/translation-status.tsx
|
|
19091
|
+
;// ./src/javascripts/core/domains/translations/components/translation-status.tsx
|
|
19004
19092
|
|
|
19005
19093
|
|
|
19006
19094
|
|
|
@@ -19016,7 +19104,7 @@ function TranslationStatus() {
|
|
|
19016
19104
|
}
|
|
19017
19105
|
return !isActive ? /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(TranslationProposal, {}) : null;
|
|
19018
19106
|
}
|
|
19019
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/translation-option.tsx
|
|
19107
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/translation-option.tsx
|
|
19020
19108
|
|
|
19021
19109
|
|
|
19022
19110
|
|
|
@@ -19052,7 +19140,7 @@ const TranslationOption = ({
|
|
|
19052
19140
|
});
|
|
19053
19141
|
};
|
|
19054
19142
|
/* harmony default export */ const translation_option = (TranslationOption);
|
|
19055
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/translation-options.tsx
|
|
19143
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/translation-options.tsx
|
|
19056
19144
|
|
|
19057
19145
|
|
|
19058
19146
|
|
|
@@ -19154,7 +19242,7 @@ const TranslationOptions = ({
|
|
|
19154
19242
|
});
|
|
19155
19243
|
};
|
|
19156
19244
|
/* harmony default export */ const translation_options = (TranslationOptions);
|
|
19157
|
-
;// ./src/javascripts/ui/hooks/use-click-outside.ts
|
|
19245
|
+
;// ./src/javascripts/core/ui/hooks/use-click-outside.ts
|
|
19158
19246
|
|
|
19159
19247
|
const useClickOutside = callback => {
|
|
19160
19248
|
const ref = (0,hooks_.useRef)(null);
|
|
@@ -19176,7 +19264,7 @@ const useClickOutside = callback => {
|
|
|
19176
19264
|
return ref;
|
|
19177
19265
|
};
|
|
19178
19266
|
/* harmony default export */ const use_click_outside = (useClickOutside);
|
|
19179
|
-
;// ./src/javascripts/ui/components/options/options-frame.tsx
|
|
19267
|
+
;// ./src/javascripts/core/ui/components/options/options-frame.tsx
|
|
19180
19268
|
|
|
19181
19269
|
|
|
19182
19270
|
|
|
@@ -19269,7 +19357,7 @@ const OptionsFrame = ({
|
|
|
19269
19357
|
});
|
|
19270
19358
|
};
|
|
19271
19359
|
/* harmony default export */ const options_frame = (OptionsFrame);
|
|
19272
|
-
;// ./src/javascripts/domains/translations/components/options-dialog/index.tsx
|
|
19360
|
+
;// ./src/javascripts/core/domains/translations/components/options-dialog/index.tsx
|
|
19273
19361
|
|
|
19274
19362
|
|
|
19275
19363
|
|
|
@@ -19298,7 +19386,7 @@ function TranslationsOptionsDialog({
|
|
|
19298
19386
|
});
|
|
19299
19387
|
}
|
|
19300
19388
|
/* harmony default export */ const options_dialog = (TranslationsOptionsDialog);
|
|
19301
|
-
;// ./src/javascripts/domains/translations/components/options-button.tsx
|
|
19389
|
+
;// ./src/javascripts/core/domains/translations/components/options-button.tsx
|
|
19302
19390
|
|
|
19303
19391
|
|
|
19304
19392
|
|
|
@@ -19365,7 +19453,7 @@ function TranslationsOptionsButton({
|
|
|
19365
19453
|
})]
|
|
19366
19454
|
});
|
|
19367
19455
|
}
|
|
19368
|
-
;// ./src/javascripts/domains/forms/provider.tsx
|
|
19456
|
+
;// ./src/javascripts/core/domains/forms/provider.tsx
|
|
19369
19457
|
|
|
19370
19458
|
|
|
19371
19459
|
|
|
@@ -19489,13 +19577,13 @@ const FormProvider = ({
|
|
|
19489
19577
|
});
|
|
19490
19578
|
};
|
|
19491
19579
|
/* harmony default export */ const provider = (FormProvider);
|
|
19492
|
-
;// ./src/javascripts/ui/utils/form-utils.ts
|
|
19580
|
+
;// ./src/javascripts/core/ui/utils/form-utils.ts
|
|
19493
19581
|
const getValidator = (fn, errorText, compareValue = null) => ({
|
|
19494
19582
|
fn,
|
|
19495
19583
|
errorText,
|
|
19496
19584
|
compareValue
|
|
19497
19585
|
});
|
|
19498
|
-
;// ./src/javascripts/ui/utils/validations.ts
|
|
19586
|
+
;// ./src/javascripts/core/ui/utils/validations.ts
|
|
19499
19587
|
const validateFileSize = (fileList, maxSize) => {
|
|
19500
19588
|
let isValid = true;
|
|
19501
19589
|
for (let i = 0; i < fileList.length; i++) {
|
|
@@ -19516,7 +19604,7 @@ const isEmailString = val => {
|
|
|
19516
19604
|
/* eslint-enable no-control-regex */
|
|
19517
19605
|
|
|
19518
19606
|
const isNotEmptyString = val => !!val;
|
|
19519
|
-
;// ./src/javascripts/ui/components/form-controls/form.tsx
|
|
19607
|
+
;// ./src/javascripts/core/ui/components/form-controls/form.tsx
|
|
19520
19608
|
|
|
19521
19609
|
|
|
19522
19610
|
|
|
@@ -19547,7 +19635,7 @@ function Form({
|
|
|
19547
19635
|
});
|
|
19548
19636
|
}
|
|
19549
19637
|
/* harmony default export */ const form_controls_form = (Form);
|
|
19550
|
-
;// ./src/javascripts/ui/components/form-controls/error.tsx
|
|
19638
|
+
;// ./src/javascripts/core/ui/components/form-controls/error.tsx
|
|
19551
19639
|
|
|
19552
19640
|
|
|
19553
19641
|
|
|
@@ -19576,7 +19664,7 @@ function error_Error({
|
|
|
19576
19664
|
})
|
|
19577
19665
|
});
|
|
19578
19666
|
}
|
|
19579
|
-
;// ./src/javascripts/ui/components/form-controls/wrapper.tsx
|
|
19667
|
+
;// ./src/javascripts/core/ui/components/form-controls/wrapper.tsx
|
|
19580
19668
|
|
|
19581
19669
|
|
|
19582
19670
|
|
|
@@ -19608,7 +19696,7 @@ const FormControlWrapper = ({
|
|
|
19608
19696
|
});
|
|
19609
19697
|
};
|
|
19610
19698
|
/* harmony default export */ const wrapper = (FormControlWrapper);
|
|
19611
|
-
;// ./src/javascripts/ui/components/form-controls/input.tsx
|
|
19699
|
+
;// ./src/javascripts/core/ui/components/form-controls/input.tsx
|
|
19612
19700
|
|
|
19613
19701
|
|
|
19614
19702
|
|
|
@@ -19671,7 +19759,7 @@ function Input({
|
|
|
19671
19759
|
});
|
|
19672
19760
|
}
|
|
19673
19761
|
/* harmony default export */ const input = (Input);
|
|
19674
|
-
;// ./src/javascripts/ui/components/options/transcript/transcript-form.tsx
|
|
19762
|
+
;// ./src/javascripts/core/ui/components/options/transcript/transcript-form.tsx
|
|
19675
19763
|
|
|
19676
19764
|
|
|
19677
19765
|
|
|
@@ -19705,7 +19793,7 @@ function TranscriptForm({
|
|
|
19705
19793
|
})]
|
|
19706
19794
|
});
|
|
19707
19795
|
}
|
|
19708
|
-
;// ./src/javascripts/ui/components/options/transcript/index.tsx
|
|
19796
|
+
;// ./src/javascripts/core/ui/components/options/transcript/index.tsx
|
|
19709
19797
|
|
|
19710
19798
|
|
|
19711
19799
|
|
|
@@ -19780,7 +19868,7 @@ const Transcript = () => {
|
|
|
19780
19868
|
});
|
|
19781
19869
|
};
|
|
19782
19870
|
/* harmony default export */ const transcript = (Transcript);
|
|
19783
|
-
;// ./src/javascripts/ui/components/options/options.tsx
|
|
19871
|
+
;// ./src/javascripts/core/ui/components/options/options.tsx
|
|
19784
19872
|
|
|
19785
19873
|
|
|
19786
19874
|
|
|
@@ -19802,7 +19890,7 @@ const Options = () => {
|
|
|
19802
19890
|
return RenderOption ? /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(RenderOption, {}) : null;
|
|
19803
19891
|
};
|
|
19804
19892
|
/* harmony default export */ const options = (Options);
|
|
19805
|
-
;// ./src/javascripts/ui/components/options/options-button.tsx
|
|
19893
|
+
;// ./src/javascripts/core/ui/components/options/options-button.tsx
|
|
19806
19894
|
|
|
19807
19895
|
|
|
19808
19896
|
|
|
@@ -20008,7 +20096,7 @@ const OptionsButton = () => {
|
|
|
20008
20096
|
});
|
|
20009
20097
|
};
|
|
20010
20098
|
/* harmony default export */ const options_button = (OptionsButton);
|
|
20011
|
-
;// ./src/javascripts/ui/components/app-options/index.tsx
|
|
20099
|
+
;// ./src/javascripts/core/ui/components/app-options/index.tsx
|
|
20012
20100
|
|
|
20013
20101
|
|
|
20014
20102
|
|
|
@@ -20061,7 +20149,7 @@ function AppOptions() {
|
|
|
20061
20149
|
})]
|
|
20062
20150
|
});
|
|
20063
20151
|
}
|
|
20064
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/unread-messages-button.tsx
|
|
20152
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/unread-messages-button.tsx
|
|
20065
20153
|
|
|
20066
20154
|
|
|
20067
20155
|
|
|
@@ -20100,7 +20188,7 @@ const UnreadMessagesButton = () => {
|
|
|
20100
20188
|
});
|
|
20101
20189
|
};
|
|
20102
20190
|
/* harmony default export */ const unread_messages_button = (UnreadMessagesButton);
|
|
20103
|
-
;// ./src/javascripts/ui/components/conversation/use-chat-scroll.ts
|
|
20191
|
+
;// ./src/javascripts/core/ui/components/conversation/use-chat-scroll.ts
|
|
20104
20192
|
|
|
20105
20193
|
|
|
20106
20194
|
|
|
@@ -20183,7 +20271,7 @@ const useChatScroll = eventRefs => {
|
|
|
20183
20271
|
};
|
|
20184
20272
|
};
|
|
20185
20273
|
/* harmony default export */ const use_chat_scroll = (useChatScroll);
|
|
20186
|
-
;// ./src/javascripts/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx
|
|
20274
|
+
;// ./src/javascripts/core/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx
|
|
20187
20275
|
|
|
20188
20276
|
|
|
20189
20277
|
|
|
@@ -20226,7 +20314,7 @@ const ChatScrollProvider = ({
|
|
|
20226
20314
|
});
|
|
20227
20315
|
};
|
|
20228
20316
|
/* harmony default export */ const chat_scroll_provider = (ChatScrollProvider);
|
|
20229
|
-
;// ./src/javascripts/ui/components/warnings/prompt.tsx
|
|
20317
|
+
;// ./src/javascripts/core/ui/components/warnings/prompt.tsx
|
|
20230
20318
|
|
|
20231
20319
|
|
|
20232
20320
|
|
|
@@ -20250,7 +20338,7 @@ const Prompt = ({
|
|
|
20250
20338
|
});
|
|
20251
20339
|
};
|
|
20252
20340
|
/* harmony default export */ const warnings_prompt = (Prompt);
|
|
20253
|
-
;// ./src/javascripts/ui/components/warnings/idle-detach-warning.tsx
|
|
20341
|
+
;// ./src/javascripts/core/ui/components/warnings/idle-detach-warning.tsx
|
|
20254
20342
|
|
|
20255
20343
|
|
|
20256
20344
|
|
|
@@ -20320,7 +20408,7 @@ const IdleDetachWarning = () => {
|
|
|
20320
20408
|
});
|
|
20321
20409
|
};
|
|
20322
20410
|
/* harmony default export */ const idle_detach_warning = (IdleDetachWarning);
|
|
20323
|
-
;// ./src/javascripts/ui/components/warnings/resume-conversation-prompt.tsx
|
|
20411
|
+
;// ./src/javascripts/core/ui/components/warnings/resume-conversation-prompt.tsx
|
|
20324
20412
|
|
|
20325
20413
|
|
|
20326
20414
|
|
|
@@ -20366,7 +20454,7 @@ const ResumeConversationPrompt = () => {
|
|
|
20366
20454
|
});
|
|
20367
20455
|
};
|
|
20368
20456
|
/* harmony default export */ const resume_conversation_prompt = (ResumeConversationPrompt);
|
|
20369
|
-
;// ./src/javascripts/ui/hooks/seamly-entry-hooks.ts
|
|
20457
|
+
;// ./src/javascripts/core/ui/hooks/seamly-entry-hooks.ts
|
|
20370
20458
|
|
|
20371
20459
|
|
|
20372
20460
|
|
|
@@ -20468,7 +20556,7 @@ const useSeamlyEntry = () => {
|
|
|
20468
20556
|
setBlockAutoEntrySwitch: dispatchBlockAutoEntrySwitch
|
|
20469
20557
|
};
|
|
20470
20558
|
};
|
|
20471
|
-
;// ./src/javascripts/ui/components/entry/text-entry/text-entry-form.tsx
|
|
20559
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/text-entry-form.tsx
|
|
20472
20560
|
|
|
20473
20561
|
|
|
20474
20562
|
|
|
@@ -20575,7 +20663,7 @@ function TextEntryForm({
|
|
|
20575
20663
|
})]
|
|
20576
20664
|
});
|
|
20577
20665
|
}
|
|
20578
|
-
;// ./src/javascripts/ui/components/entry/text-entry/index.tsx
|
|
20666
|
+
;// ./src/javascripts/core/ui/components/entry/text-entry/index.tsx
|
|
20579
20667
|
|
|
20580
20668
|
|
|
20581
20669
|
|
|
@@ -20621,7 +20709,7 @@ function TextEntry({
|
|
|
20621
20709
|
})
|
|
20622
20710
|
});
|
|
20623
20711
|
}
|
|
20624
|
-
;// ./src/javascripts/ui/components/widgets/upload-progress.tsx
|
|
20712
|
+
;// ./src/javascripts/core/ui/components/widgets/upload-progress.tsx
|
|
20625
20713
|
|
|
20626
20714
|
|
|
20627
20715
|
|
|
@@ -20674,7 +20762,7 @@ const UploadProgress = () => {
|
|
|
20674
20762
|
});
|
|
20675
20763
|
};
|
|
20676
20764
|
/* harmony default export */ const upload_progress = (UploadProgress);
|
|
20677
|
-
;// ./src/javascripts/ui/hooks/use-single-file-upload.ts
|
|
20765
|
+
;// ./src/javascripts/core/ui/hooks/use-single-file-upload.ts
|
|
20678
20766
|
|
|
20679
20767
|
|
|
20680
20768
|
|
|
@@ -20708,7 +20796,7 @@ const useSingleFileUpload = (formId, name) => {
|
|
|
20708
20796
|
};
|
|
20709
20797
|
};
|
|
20710
20798
|
/* harmony default export */ const use_single_file_upload = (useSingleFileUpload);
|
|
20711
|
-
;// ./src/javascripts/ui/components/form-controls/file-input.tsx
|
|
20799
|
+
;// ./src/javascripts/core/ui/components/form-controls/file-input.tsx
|
|
20712
20800
|
|
|
20713
20801
|
|
|
20714
20802
|
|
|
@@ -20805,7 +20893,7 @@ function FileInput({
|
|
|
20805
20893
|
})]
|
|
20806
20894
|
});
|
|
20807
20895
|
}
|
|
20808
|
-
;// ./src/javascripts/ui/components/entry/upload/file-upload-form.tsx
|
|
20896
|
+
;// ./src/javascripts/core/ui/components/entry/upload/file-upload-form.tsx
|
|
20809
20897
|
|
|
20810
20898
|
|
|
20811
20899
|
|
|
@@ -20858,7 +20946,7 @@ const FileInputForm = ({
|
|
|
20858
20946
|
});
|
|
20859
20947
|
};
|
|
20860
20948
|
/* harmony default export */ const file_upload_form = (FileInputForm);
|
|
20861
|
-
;// ./src/javascripts/ui/components/entry/upload/index.tsx
|
|
20949
|
+
;// ./src/javascripts/core/ui/components/entry/upload/index.tsx
|
|
20862
20950
|
|
|
20863
20951
|
|
|
20864
20952
|
|
|
@@ -21017,7 +21105,7 @@ const upload_Upload = () => {
|
|
|
21017
21105
|
});
|
|
21018
21106
|
};
|
|
21019
21107
|
/* harmony default export */ const entry_upload = (upload_Upload);
|
|
21020
|
-
;// ./src/javascripts/ui/components/entry/upload-toggle.tsx
|
|
21108
|
+
;// ./src/javascripts/core/ui/components/entry/upload-toggle.tsx
|
|
21021
21109
|
|
|
21022
21110
|
|
|
21023
21111
|
|
|
@@ -21101,7 +21189,7 @@ const UploadToggle = () => {
|
|
|
21101
21189
|
}) : null;
|
|
21102
21190
|
};
|
|
21103
21191
|
/* harmony default export */ const upload_toggle = (UploadToggle);
|
|
21104
|
-
;// ./src/javascripts/ui/components/entry/entry-container.tsx
|
|
21192
|
+
;// ./src/javascripts/core/ui/components/entry/entry-container.tsx
|
|
21105
21193
|
|
|
21106
21194
|
|
|
21107
21195
|
|
|
@@ -21195,7 +21283,7 @@ const EntryContainer = () => {
|
|
|
21195
21283
|
});
|
|
21196
21284
|
};
|
|
21197
21285
|
/* harmony default export */ const entry_container = (EntryContainer);
|
|
21198
|
-
;// ./src/javascripts/ui/components/view/window-view/collapse-button.tsx
|
|
21286
|
+
;// ./src/javascripts/core/ui/components/view/window-view/collapse-button.tsx
|
|
21199
21287
|
|
|
21200
21288
|
|
|
21201
21289
|
|
|
@@ -21225,7 +21313,7 @@ const CollapseButton = () => {
|
|
|
21225
21313
|
}) : null;
|
|
21226
21314
|
};
|
|
21227
21315
|
/* harmony default export */ const collapse_button = (CollapseButton);
|
|
21228
|
-
;// ./src/javascripts/ui/components/layout/interrupt.tsx
|
|
21316
|
+
;// ./src/javascripts/core/ui/components/layout/interrupt.tsx
|
|
21229
21317
|
|
|
21230
21318
|
|
|
21231
21319
|
|
|
@@ -21290,7 +21378,7 @@ const Interrupt = () => {
|
|
|
21290
21378
|
}) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
|
|
21291
21379
|
};
|
|
21292
21380
|
/* harmony default export */ const interrupt = (Interrupt);
|
|
21293
|
-
;// ./src/javascripts/ui/components/layout/chat-frame.tsx
|
|
21381
|
+
;// ./src/javascripts/core/ui/components/layout/chat-frame.tsx
|
|
21294
21382
|
|
|
21295
21383
|
|
|
21296
21384
|
|
|
@@ -21322,7 +21410,7 @@ function ChatFrame({
|
|
|
21322
21410
|
});
|
|
21323
21411
|
}
|
|
21324
21412
|
/* harmony default export */ const chat_frame = (ChatFrame);
|
|
21325
|
-
;// ./src/javascripts/ui/components/view/app-view.tsx
|
|
21413
|
+
;// ./src/javascripts/core/ui/components/view/app-view.tsx
|
|
21326
21414
|
|
|
21327
21415
|
|
|
21328
21416
|
|
|
@@ -21335,7 +21423,7 @@ const AppView = () => {
|
|
|
21335
21423
|
});
|
|
21336
21424
|
};
|
|
21337
21425
|
/* harmony default export */ const app_view = (AppView);
|
|
21338
|
-
;// ./src/javascripts/ui/components/layout/collapsed-chat-messages.tsx
|
|
21426
|
+
;// ./src/javascripts/core/ui/components/layout/collapsed-chat-messages.tsx
|
|
21339
21427
|
|
|
21340
21428
|
|
|
21341
21429
|
|
|
@@ -21359,7 +21447,7 @@ function CollapsedChatMessages({
|
|
|
21359
21447
|
}, event.payload.id))
|
|
21360
21448
|
});
|
|
21361
21449
|
}
|
|
21362
|
-
;// ./src/javascripts/ui/components/layout/pre-chat-messages.tsx
|
|
21450
|
+
;// ./src/javascripts/core/ui/components/layout/pre-chat-messages.tsx
|
|
21363
21451
|
|
|
21364
21452
|
|
|
21365
21453
|
|
|
@@ -21379,7 +21467,7 @@ function PreChatMessages() {
|
|
|
21379
21467
|
events: preChatEvents
|
|
21380
21468
|
}) : null;
|
|
21381
21469
|
}
|
|
21382
|
-
;// ./src/javascripts/ui/components/view/inline-view.tsx
|
|
21470
|
+
;// ./src/javascripts/core/ui/components/view/inline-view.tsx
|
|
21383
21471
|
|
|
21384
21472
|
|
|
21385
21473
|
|
|
@@ -21419,7 +21507,7 @@ const InlineView = () => {
|
|
|
21419
21507
|
});
|
|
21420
21508
|
};
|
|
21421
21509
|
/* harmony default export */ const inline_view = (InlineView);
|
|
21422
|
-
;// ./src/javascripts/ui/components/layout/continue-chat-messages.tsx
|
|
21510
|
+
;// ./src/javascripts/core/ui/components/layout/continue-chat-messages.tsx
|
|
21423
21511
|
|
|
21424
21512
|
|
|
21425
21513
|
|
|
@@ -21445,7 +21533,7 @@ function ContinueChatMessages() {
|
|
|
21445
21533
|
events: [continueChatEvent]
|
|
21446
21534
|
});
|
|
21447
21535
|
}
|
|
21448
|
-
;// ./src/javascripts/ui/components/view/window-view/window-open-button.tsx
|
|
21536
|
+
;// ./src/javascripts/core/ui/components/view/window-view/window-open-button.tsx
|
|
21449
21537
|
|
|
21450
21538
|
|
|
21451
21539
|
|
|
@@ -21513,7 +21601,7 @@ const WindowOpenButton = ({
|
|
|
21513
21601
|
});
|
|
21514
21602
|
};
|
|
21515
21603
|
/* harmony default export */ const window_open_button = (WindowOpenButton);
|
|
21516
|
-
;// ./src/javascripts/ui/components/view/window-view/index.tsx
|
|
21604
|
+
;// ./src/javascripts/core/ui/components/view/window-view/index.tsx
|
|
21517
21605
|
|
|
21518
21606
|
|
|
21519
21607
|
|
|
@@ -21570,9 +21658,9 @@ const WindowView = () => {
|
|
|
21570
21658
|
});
|
|
21571
21659
|
};
|
|
21572
21660
|
/* harmony default export */ const window_view = (WindowView);
|
|
21573
|
-
;// ./src/javascripts/ui/hooks/sounds/beep.mp3
|
|
21661
|
+
;// ./src/javascripts/core/ui/hooks/sounds/beep.mp3
|
|
21574
21662
|
/* harmony default export */ const beep = (__webpack_require__.p + "sounds/beep.mp3");
|
|
21575
|
-
;// ./src/javascripts/ui/hooks/use-notifications.ts
|
|
21663
|
+
;// ./src/javascripts/core/ui/hooks/use-notifications.ts
|
|
21576
21664
|
|
|
21577
21665
|
|
|
21578
21666
|
|
|
@@ -21649,7 +21737,7 @@ const useNotification = () => {
|
|
|
21649
21737
|
};
|
|
21650
21738
|
};
|
|
21651
21739
|
/* harmony default export */ const use_notifications = (useNotification);
|
|
21652
|
-
;// ./src/javascripts/ui/components/view/index.tsx
|
|
21740
|
+
;// ./src/javascripts/core/ui/components/view/index.tsx
|
|
21653
21741
|
|
|
21654
21742
|
|
|
21655
21743
|
|
|
@@ -21765,7 +21853,7 @@ const View = ({
|
|
|
21765
21853
|
}) : null;
|
|
21766
21854
|
};
|
|
21767
21855
|
/* harmony default export */ const view = (View);
|
|
21768
|
-
;// ./src/javascripts/ui/components/chat-app.tsx
|
|
21856
|
+
;// ./src/javascripts/core/ui/components/chat-app.tsx
|
|
21769
21857
|
|
|
21770
21858
|
|
|
21771
21859
|
|
|
@@ -21776,7 +21864,7 @@ const ChatApp = props => {
|
|
|
21776
21864
|
});
|
|
21777
21865
|
};
|
|
21778
21866
|
/* harmony default export */ const chat_app = (ChatApp);
|
|
21779
|
-
;// ./src/javascripts/lib/engine/index.tsx
|
|
21867
|
+
;// ./src/javascripts/core/lib/engine/index.tsx
|
|
21780
21868
|
|
|
21781
21869
|
|
|
21782
21870
|
|
|
@@ -21897,7 +21985,7 @@ class Engine {
|
|
|
21897
21985
|
return true;
|
|
21898
21986
|
}
|
|
21899
21987
|
}
|
|
21900
|
-
;// ./src/javascripts/lib/external-api/index.ts
|
|
21988
|
+
;// ./src/javascripts/core/lib/external-api/index.ts
|
|
21901
21989
|
|
|
21902
21990
|
// @ts-nocheck
|
|
21903
21991
|
|
|
@@ -22116,7 +22204,7 @@ class ExternalApi {
|
|
|
22116
22204
|
}
|
|
22117
22205
|
}
|
|
22118
22206
|
/* harmony default export */ const external_api = (ExternalApi);
|
|
22119
|
-
;// ./src/javascripts/lib/external-api/initialize-api.ts
|
|
22207
|
+
;// ./src/javascripts/core/lib/external-api/initialize-api.ts
|
|
22120
22208
|
|
|
22121
22209
|
|
|
22122
22210
|
function initializeExternalApi(appConfig) {
|
|
@@ -22131,7 +22219,7 @@ function initializeExternalApi(appConfig) {
|
|
|
22131
22219
|
};
|
|
22132
22220
|
seamly.push(...seamlyActions);
|
|
22133
22221
|
}
|
|
22134
|
-
;// ./src/javascripts/ui/hooks/use-seamly-actions.ts
|
|
22222
|
+
;// ./src/javascripts/core/ui/hooks/use-seamly-actions.ts
|
|
22135
22223
|
|
|
22136
22224
|
|
|
22137
22225
|
const useSeamlyActions = () => {
|
|
@@ -22173,7 +22261,201 @@ const useSeamlyActions = () => {
|
|
|
22173
22261
|
setSeamlyContainerElement: payload => dispatch(setSeamlyContainerElement(payload))
|
|
22174
22262
|
};
|
|
22175
22263
|
};
|
|
22176
|
-
;// ./src/javascripts/
|
|
22264
|
+
;// ./src/javascripts/core/lib/store/providers/app-storage.ts
|
|
22265
|
+
// @ts-nocheck
|
|
22266
|
+
function appStore() {
|
|
22267
|
+
return {
|
|
22268
|
+
get: () => {
|
|
22269
|
+
// For Android we can retrieve data directly over the bridge
|
|
22270
|
+
// iOS and ReactNative will write the data on the window.seamlyBridgeData object on init
|
|
22271
|
+
if (window.hasOwnProperty('SeamlyBridge')) {
|
|
22272
|
+
try {
|
|
22273
|
+
// eslint-disable-next-line no-undef
|
|
22274
|
+
return JSON.parse(SeamlyBridge.getData());
|
|
22275
|
+
} catch (e) {
|
|
22276
|
+
console.error('Unexpected or malformed data retrieved from bridge', e);
|
|
22277
|
+
// Android should always return unchanged JSON data.
|
|
22278
|
+
// If something went wrong parsing the response, it's best to start from scratch
|
|
22279
|
+
return {};
|
|
22280
|
+
}
|
|
22281
|
+
}
|
|
22282
|
+
return window.seamlyBridgeData;
|
|
22283
|
+
},
|
|
22284
|
+
set: newData => {
|
|
22285
|
+
// iOS
|
|
22286
|
+
if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.seamlyBridge) {
|
|
22287
|
+
window.webkit.messageHandlers.seamlyBridge.postMessage(JSON.stringify(newData));
|
|
22288
|
+
}
|
|
22289
|
+
|
|
22290
|
+
// Android
|
|
22291
|
+
if (window.hasOwnProperty('SeamlyBridge')) {
|
|
22292
|
+
// eslint-disable-next-line no-undef
|
|
22293
|
+
SeamlyBridge.setData(JSON.stringify(newData));
|
|
22294
|
+
}
|
|
22295
|
+
|
|
22296
|
+
// React Native
|
|
22297
|
+
if (window.ReactNativeWebView) {
|
|
22298
|
+
window.ReactNativeWebView.postMessage(JSON.stringify(newData));
|
|
22299
|
+
}
|
|
22300
|
+
}
|
|
22301
|
+
};
|
|
22302
|
+
}
|
|
22303
|
+
;// ./node_modules/js-cookie/dist/js.cookie.mjs
|
|
22304
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
22305
|
+
/* eslint-disable no-var */
|
|
22306
|
+
function js_cookie_assign (target) {
|
|
22307
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
22308
|
+
var source = arguments[i];
|
|
22309
|
+
for (var key in source) {
|
|
22310
|
+
target[key] = source[key];
|
|
22311
|
+
}
|
|
22312
|
+
}
|
|
22313
|
+
return target
|
|
22314
|
+
}
|
|
22315
|
+
/* eslint-enable no-var */
|
|
22316
|
+
|
|
22317
|
+
/* eslint-disable no-var */
|
|
22318
|
+
var defaultConverter = {
|
|
22319
|
+
read: function (value) {
|
|
22320
|
+
if (value[0] === '"') {
|
|
22321
|
+
value = value.slice(1, -1);
|
|
22322
|
+
}
|
|
22323
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
|
|
22324
|
+
},
|
|
22325
|
+
write: function (value) {
|
|
22326
|
+
return encodeURIComponent(value).replace(
|
|
22327
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
22328
|
+
decodeURIComponent
|
|
22329
|
+
)
|
|
22330
|
+
}
|
|
22331
|
+
};
|
|
22332
|
+
/* eslint-enable no-var */
|
|
22333
|
+
|
|
22334
|
+
/* eslint-disable no-var */
|
|
22335
|
+
|
|
22336
|
+
function init (converter, defaultAttributes) {
|
|
22337
|
+
function set (name, value, attributes) {
|
|
22338
|
+
if (typeof document === 'undefined') {
|
|
22339
|
+
return
|
|
22340
|
+
}
|
|
22341
|
+
|
|
22342
|
+
attributes = js_cookie_assign({}, defaultAttributes, attributes);
|
|
22343
|
+
|
|
22344
|
+
if (typeof attributes.expires === 'number') {
|
|
22345
|
+
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
22346
|
+
}
|
|
22347
|
+
if (attributes.expires) {
|
|
22348
|
+
attributes.expires = attributes.expires.toUTCString();
|
|
22349
|
+
}
|
|
22350
|
+
|
|
22351
|
+
name = encodeURIComponent(name)
|
|
22352
|
+
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
|
22353
|
+
.replace(/[()]/g, escape);
|
|
22354
|
+
|
|
22355
|
+
var stringifiedAttributes = '';
|
|
22356
|
+
for (var attributeName in attributes) {
|
|
22357
|
+
if (!attributes[attributeName]) {
|
|
22358
|
+
continue
|
|
22359
|
+
}
|
|
22360
|
+
|
|
22361
|
+
stringifiedAttributes += '; ' + attributeName;
|
|
22362
|
+
|
|
22363
|
+
if (attributes[attributeName] === true) {
|
|
22364
|
+
continue
|
|
22365
|
+
}
|
|
22366
|
+
|
|
22367
|
+
// Considers RFC 6265 section 5.2:
|
|
22368
|
+
// ...
|
|
22369
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
22370
|
+
// character:
|
|
22371
|
+
// Consume the characters of the unparsed-attributes up to,
|
|
22372
|
+
// not including, the first %x3B (";") character.
|
|
22373
|
+
// ...
|
|
22374
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
22375
|
+
}
|
|
22376
|
+
|
|
22377
|
+
return (document.cookie =
|
|
22378
|
+
name + '=' + converter.write(value, name) + stringifiedAttributes)
|
|
22379
|
+
}
|
|
22380
|
+
|
|
22381
|
+
function get (name) {
|
|
22382
|
+
if (typeof document === 'undefined' || (arguments.length && !name)) {
|
|
22383
|
+
return
|
|
22384
|
+
}
|
|
22385
|
+
|
|
22386
|
+
// To prevent the for loop in the first place assign an empty array
|
|
22387
|
+
// in case there are no cookies at all.
|
|
22388
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
22389
|
+
var jar = {};
|
|
22390
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
22391
|
+
var parts = cookies[i].split('=');
|
|
22392
|
+
var value = parts.slice(1).join('=');
|
|
22393
|
+
|
|
22394
|
+
try {
|
|
22395
|
+
var found = decodeURIComponent(parts[0]);
|
|
22396
|
+
jar[found] = converter.read(value, found);
|
|
22397
|
+
|
|
22398
|
+
if (name === found) {
|
|
22399
|
+
break
|
|
22400
|
+
}
|
|
22401
|
+
} catch (e) {}
|
|
22402
|
+
}
|
|
22403
|
+
|
|
22404
|
+
return name ? jar[name] : jar
|
|
22405
|
+
}
|
|
22406
|
+
|
|
22407
|
+
return Object.create(
|
|
22408
|
+
{
|
|
22409
|
+
set,
|
|
22410
|
+
get,
|
|
22411
|
+
remove: function (name, attributes) {
|
|
22412
|
+
set(
|
|
22413
|
+
name,
|
|
22414
|
+
'',
|
|
22415
|
+
js_cookie_assign({}, attributes, {
|
|
22416
|
+
expires: -1
|
|
22417
|
+
})
|
|
22418
|
+
);
|
|
22419
|
+
},
|
|
22420
|
+
withAttributes: function (attributes) {
|
|
22421
|
+
return init(this.converter, js_cookie_assign({}, this.attributes, attributes))
|
|
22422
|
+
},
|
|
22423
|
+
withConverter: function (converter) {
|
|
22424
|
+
return init(js_cookie_assign({}, this.converter, converter), this.attributes)
|
|
22425
|
+
}
|
|
22426
|
+
},
|
|
22427
|
+
{
|
|
22428
|
+
attributes: { value: Object.freeze(defaultAttributes) },
|
|
22429
|
+
converter: { value: Object.freeze(converter) }
|
|
22430
|
+
}
|
|
22431
|
+
)
|
|
22432
|
+
}
|
|
22433
|
+
|
|
22434
|
+
var api = init(defaultConverter, { path: '/' });
|
|
22435
|
+
/* eslint-enable no-var */
|
|
22436
|
+
|
|
22437
|
+
|
|
22438
|
+
|
|
22439
|
+
;// ./src/javascripts/core/lib/store/providers/cookie-storage.ts
|
|
22440
|
+
|
|
22441
|
+
function cookieStore(attributes = {}) {
|
|
22442
|
+
return function (key) {
|
|
22443
|
+
const KEY = `cvco.${key}`;
|
|
22444
|
+
return {
|
|
22445
|
+
get() {
|
|
22446
|
+
const jsonStr = api.get(KEY);
|
|
22447
|
+
return jsonStr ? JSON.parse(jsonStr) : null;
|
|
22448
|
+
},
|
|
22449
|
+
set(value) {
|
|
22450
|
+
if (!value) {
|
|
22451
|
+
return;
|
|
22452
|
+
}
|
|
22453
|
+
api.set(KEY, JSON.stringify(value), attributes);
|
|
22454
|
+
}
|
|
22455
|
+
};
|
|
22456
|
+
};
|
|
22457
|
+
}
|
|
22458
|
+
;// ./src/javascripts/core/ui/components/layout/agent-info.tsx
|
|
22177
22459
|
|
|
22178
22460
|
|
|
22179
22461
|
|
|
@@ -22238,7 +22520,7 @@ const AgentInfo = () => {
|
|
|
22238
22520
|
}) : null;
|
|
22239
22521
|
};
|
|
22240
22522
|
/* harmony default export */ const agent_info = (AgentInfo);
|
|
22241
|
-
;// ./src/javascripts/ui/components/layout/header.tsx
|
|
22523
|
+
;// ./src/javascripts/core/ui/components/layout/header.tsx
|
|
22242
22524
|
|
|
22243
22525
|
|
|
22244
22526
|
|
|
@@ -22276,7 +22558,128 @@ const Header = ({
|
|
|
22276
22558
|
});
|
|
22277
22559
|
};
|
|
22278
22560
|
/* harmony default export */ const header = (Header);
|
|
22279
|
-
;// ./src/javascripts/
|
|
22561
|
+
;// ./src/javascripts/core/lib/url-helpers.ts
|
|
22562
|
+
const getUrlSearchParams = () => {
|
|
22563
|
+
const params = new URLSearchParams(window.location.search);
|
|
22564
|
+
return Array.from(params.entries()).reduce((acc, [key, val]) => ({
|
|
22565
|
+
...acc,
|
|
22566
|
+
[key]: val
|
|
22567
|
+
}), {});
|
|
22568
|
+
};
|
|
22569
|
+
|
|
22570
|
+
// Return search parameters as a string
|
|
22571
|
+
const getUrlSearchString = params => new URLSearchParams(params).toString();
|
|
22572
|
+
|
|
22573
|
+
// Return search parameters found in URL or sessionStorage
|
|
22574
|
+
const getSearchParamsByKeys = (...keys) => {
|
|
22575
|
+
const url = new URL(window.location.href);
|
|
22576
|
+
const values = keys.reduce((acc, key) => {
|
|
22577
|
+
const searchParam = url.searchParams.get(key);
|
|
22578
|
+
const param = searchParam || sessionStorage.getItem(key);
|
|
22579
|
+
if (param) {
|
|
22580
|
+
acc[key] = param;
|
|
22581
|
+
}
|
|
22582
|
+
return acc;
|
|
22583
|
+
}, {});
|
|
22584
|
+
return values;
|
|
22585
|
+
};
|
|
22586
|
+
|
|
22587
|
+
// Adds a search parameter to the url
|
|
22588
|
+
const setSearchParam = (key, value) => {
|
|
22589
|
+
const url = new URL(window.location.href);
|
|
22590
|
+
const {
|
|
22591
|
+
searchParams
|
|
22592
|
+
} = url;
|
|
22593
|
+
searchParams.set(key, value);
|
|
22594
|
+
url.search = searchParams.toString();
|
|
22595
|
+
window.location.href = url.toString();
|
|
22596
|
+
};
|
|
22597
|
+
|
|
22598
|
+
// Adds search parameters to the url
|
|
22599
|
+
const setSearchParams = params => {
|
|
22600
|
+
const url = new URL(window.location.href);
|
|
22601
|
+
const {
|
|
22602
|
+
searchParams
|
|
22603
|
+
} = url;
|
|
22604
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
22605
|
+
searchParams.set(key, value);
|
|
22606
|
+
});
|
|
22607
|
+
url.search = searchParams.toString();
|
|
22608
|
+
window.location.href = url.toString();
|
|
22609
|
+
};
|
|
22610
|
+
|
|
22611
|
+
// Removes a search parameter from the url
|
|
22612
|
+
const removeSearchParam = (...keys) => {
|
|
22613
|
+
const url = new URL(window.location.href);
|
|
22614
|
+
const {
|
|
22615
|
+
searchParams
|
|
22616
|
+
} = url;
|
|
22617
|
+
keys.forEach(key => searchParams.delete(key));
|
|
22618
|
+
url.search = searchParams.toString();
|
|
22619
|
+
window.history.replaceState({}, '', url);
|
|
22620
|
+
};
|
|
22621
|
+
|
|
22622
|
+
// Replace search parameters with those found in URL search parameters or sessionStorage
|
|
22623
|
+
const replaceSearchParams = (...keys) => {
|
|
22624
|
+
const url = new URL(window.location.href);
|
|
22625
|
+
const params = keys.reduce((acc, key) => {
|
|
22626
|
+
const paramValue = url.searchParams.get(key);
|
|
22627
|
+
const value = paramValue || sessionStorage.getItem(key);
|
|
22628
|
+
|
|
22629
|
+
// If the query parameter is present, add it to the sessionStorage
|
|
22630
|
+
if (paramValue) {
|
|
22631
|
+
sessionStorage.setItem(key, paramValue);
|
|
22632
|
+
}
|
|
22633
|
+
|
|
22634
|
+
// Bail if there is nothing to set
|
|
22635
|
+
if (!value) return acc;
|
|
22636
|
+
acc.set(key, value);
|
|
22637
|
+
return acc;
|
|
22638
|
+
}, new URLSearchParams());
|
|
22639
|
+
|
|
22640
|
+
// To keep other params in place, we merge them with the current URL parameters
|
|
22641
|
+
const combinedParams = new URLSearchParams({
|
|
22642
|
+
...Object.fromEntries(url.searchParams),
|
|
22643
|
+
...Object.fromEntries(params)
|
|
22644
|
+
});
|
|
22645
|
+
if (combinedParams.toString()) {
|
|
22646
|
+
window.history.replaceState(null, '', `?${combinedParams}`);
|
|
22647
|
+
}
|
|
22648
|
+
return getSearchParamsByKeys(...params.keys());
|
|
22649
|
+
};
|
|
22650
|
+
|
|
22651
|
+
// Sets up click handlers for elements with data-attribute `data-reset-search-params`.
|
|
22652
|
+
// Clicking these will remove all given keys from the sessionStorage and remove the search parameters from the url
|
|
22653
|
+
|
|
22654
|
+
// If you want to reset both 'apiKey' and 'locale' when the event is executed, you would use it as followed
|
|
22655
|
+
// import { initResetSearchParams } from 'lib/url-helpers'
|
|
22656
|
+
|
|
22657
|
+
// Setup the event handlers for the search parameters you want to be reset after execution.
|
|
22658
|
+
// initResetSearchParams('apiKey', 'locale')
|
|
22659
|
+
|
|
22660
|
+
// Somewhere in the HTML add an element with the 'data-reset-search-params' attribute.
|
|
22661
|
+
// <a href="#" data-reset-search-params>Reset account and source locale</a>
|
|
22662
|
+
const initResetSearchParams = (...keys) => {
|
|
22663
|
+
const resetLink = document.querySelector('[data-reset-search-params]');
|
|
22664
|
+
if (!resetLink) {
|
|
22665
|
+
return;
|
|
22666
|
+
}
|
|
22667
|
+
resetLink.addEventListener('click', e => {
|
|
22668
|
+
e.preventDefault();
|
|
22669
|
+
const url = new URL(window.location.href);
|
|
22670
|
+
keys.forEach(key => {
|
|
22671
|
+
// Clear current session for each key
|
|
22672
|
+
sessionStorage.removeItem(key);
|
|
22673
|
+
|
|
22674
|
+
// Delete key from url
|
|
22675
|
+
url.searchParams.delete(key);
|
|
22676
|
+
});
|
|
22677
|
+
|
|
22678
|
+
// Reload page
|
|
22679
|
+
window.location.href = url.toString();
|
|
22680
|
+
});
|
|
22681
|
+
};
|
|
22682
|
+
;// ./src/javascripts/core/index.ts
|
|
22280
22683
|
// Polyfills
|
|
22281
22684
|
|
|
22282
22685
|
|
|
@@ -22303,6 +22706,9 @@ const Header = ({
|
|
|
22303
22706
|
// Used by: Demo
|
|
22304
22707
|
|
|
22305
22708
|
|
|
22709
|
+
|
|
22710
|
+
|
|
22711
|
+
|
|
22306
22712
|
// Used by: Client
|
|
22307
22713
|
|
|
22308
22714
|
|
|
@@ -22327,8 +22733,19 @@ const Header = ({
|
|
|
22327
22733
|
|
|
22328
22734
|
|
|
22329
22735
|
|
|
22736
|
+
|
|
22737
|
+
|
|
22738
|
+
|
|
22739
|
+
|
|
22740
|
+
|
|
22741
|
+
|
|
22742
|
+
|
|
22743
|
+
|
|
22744
|
+
|
|
22745
|
+
|
|
22746
|
+
|
|
22330
22747
|
// Used by: Client
|
|
22331
|
-
/* harmony default export */ const
|
|
22748
|
+
/* harmony default export */ const core = (initializeExternalApi);
|
|
22332
22749
|
})();
|
|
22333
22750
|
|
|
22334
22751
|
module.exports = __webpack_exports__;
|