@nethesis/phone-island 1.0.6-dev.4 → 1.0.6-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/components/AlertGuard.js +1 -1
- package/dist/components/AlertGuard.js.map +1 -1
- package/dist/components/AlertView/index.js +1 -1
- package/dist/components/AlertView/index.js.map +1 -1
- package/dist/components/AudioBars.js +1 -1
- package/dist/components/AudioBars.js.map +1 -1
- package/dist/components/AudioPlayerView/Avatar.js +1 -1
- package/dist/components/AudioPlayerView/Avatar.js.map +1 -1
- package/dist/components/AudioPlayerView/PlayerFooterActions.js +1 -1
- package/dist/components/AudioPlayerView/PlayerFooterActions.js.map +1 -1
- package/dist/components/AudioPlayerView/Progress.js +1 -1
- package/dist/components/AudioPlayerView/Progress.js.map +1 -1
- package/dist/components/AudioPlayerView/index.js +1 -1
- package/dist/components/AudioPlayerView/index.js.map +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AvatarGroup.js.map +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/CallView/Actions.js +1 -1
- package/dist/components/CallView/Actions.js.map +1 -1
- package/dist/components/CallView/Avatar.js +1 -1
- package/dist/components/CallView/Avatar.js.map +1 -1
- package/dist/components/CallView/BackCall.js +1 -1
- package/dist/components/CallView/BackCall.js.map +1 -1
- package/dist/components/CallView/DisplayName.js +1 -1
- package/dist/components/CallView/DisplayName.js.map +1 -1
- package/dist/components/CallView/Number.js +1 -1
- package/dist/components/CallView/Number.js.map +1 -1
- package/dist/components/CallView/Timer.js +1 -1
- package/dist/components/CallView/Timer.js.map +1 -1
- package/dist/components/CallView/index.js +1 -1
- package/dist/components/CallView/index.js.map +1 -1
- package/dist/components/ConferenceView/ConferenceUsersList.js +1 -1
- package/dist/components/ConferenceView/ConferenceUsersList.js.map +1 -1
- package/dist/components/ConferenceView/index.js +1 -1
- package/dist/components/ConferenceView/index.js.map +1 -1
- package/dist/components/ContactView/ContactListView.js +1 -1
- package/dist/components/ContactView/ContactListView.js.map +1 -1
- package/dist/components/ContactView/ListAvatar.js +1 -1
- package/dist/components/ContactView/ListAvatar.js.map +1 -1
- package/dist/components/ContactView/SelectContactNumberView.js +1 -1
- package/dist/components/ContactView/SelectContactNumberView.js.map +1 -1
- package/dist/components/ContactView/StatusBullet.js +1 -1
- package/dist/components/ContactView/StatusBullet.js.map +1 -1
- package/dist/components/ContactView/TransferActions.js +1 -1
- package/dist/components/ContactView/TransferActions.js.map +1 -1
- package/dist/components/CustomThemedTooltip.js +1 -1
- package/dist/components/CustomThemedTooltip.js.map +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/Events.js +1 -1
- package/dist/components/Events.js.map +1 -1
- package/dist/components/GenericAvatar.js +1 -1
- package/dist/components/GenericAvatar.js.map +1 -1
- package/dist/components/Hangup.js +1 -1
- package/dist/components/Hangup.js.map +1 -1
- package/dist/components/Island.js +1 -1
- package/dist/components/Island.js.map +1 -1
- package/dist/components/IslandDrag.js +1 -1
- package/dist/components/IslandDrag.js.map +1 -1
- package/dist/components/IslandMotion.js +1 -1
- package/dist/components/IslandMotion.js.map +1 -1
- package/dist/components/KeypadView/Actions.js +1 -1
- package/dist/components/KeypadView/Actions.js.map +1 -1
- package/dist/components/KeypadView/index.js +1 -1
- package/dist/components/KeypadView/index.js.map +1 -1
- package/dist/components/OperatorBusyView/index.js +1 -1
- package/dist/components/OperatorBusyView/index.js.map +1 -1
- package/dist/components/PhysicalRecorderView/PhysicalRecordingTimer.js +1 -1
- package/dist/components/PhysicalRecorderView/PhysicalRecordingTimer.js.map +1 -1
- package/dist/components/PhysicalRecorderView/index.js +1 -1
- package/dist/components/PhysicalRecorderView/index.js.map +1 -1
- package/dist/components/RecorderView/Actions.js +1 -1
- package/dist/components/RecorderView/Actions.js.map +1 -1
- package/dist/components/RecorderView/BarsGroup.js +1 -1
- package/dist/components/RecorderView/BarsGroup.js.map +1 -1
- package/dist/components/RecorderView/Timer.js +1 -1
- package/dist/components/RecorderView/Timer.js.map +1 -1
- package/dist/components/RecorderView/index.js +1 -1
- package/dist/components/RecorderView/index.js.map +1 -1
- package/dist/components/RestAPI.js +1 -1
- package/dist/components/RestAPI.js.map +1 -1
- package/dist/components/SettingsView/AudioView.js +1 -1
- package/dist/components/SettingsView/AudioView.js.map +1 -1
- package/dist/components/SettingsView/MicrophoneView.js +1 -1
- package/dist/components/SettingsView/MicrophoneView.js.map +1 -1
- package/dist/components/SettingsView/SettingsHeader.js +1 -1
- package/dist/components/SettingsView/SettingsHeader.js.map +1 -1
- package/dist/components/SettingsView/ThemeView.js +1 -1
- package/dist/components/SettingsView/ThemeView.js.map +1 -1
- package/dist/components/SettingsView/VideoInputView.js +1 -1
- package/dist/components/SettingsView/VideoInputView.js.map +1 -1
- package/dist/components/SettingsView/index.js +1 -1
- package/dist/components/SettingsView/index.js.map +1 -1
- package/dist/components/SideView/SideView.js +1 -1
- package/dist/components/SideView/SideView.js.map +1 -1
- package/dist/components/SideView/components/SideViewButton.js +1 -1
- package/dist/components/SideView/components/SideViewButton.js.map +1 -1
- package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
- package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
- package/dist/components/Socket.js +1 -1
- package/dist/components/Socket.js.map +1 -1
- package/dist/components/StreamingAnswerView/index.js +1 -1
- package/dist/components/StreamingAnswerView/index.js.map +1 -1
- package/dist/components/StreamingImage/index.js +1 -1
- package/dist/components/StreamingImage/index.js.map +1 -1
- package/dist/components/SwitchDeviceView/index.js +1 -1
- package/dist/components/SwitchDeviceView/index.js.map +1 -1
- package/dist/components/SwitchInputView/DropdownContent.js +1 -1
- package/dist/components/SwitchInputView/DropdownContent.js.map +1 -1
- package/dist/components/SwitchInputView/Index.js +1 -1
- package/dist/components/TextScroll.js +1 -1
- package/dist/components/TextScroll.js.map +1 -1
- package/dist/components/TranscriptionView/TranscriptionView.js +1 -1
- package/dist/components/TranscriptionView/TranscriptionView.js.map +1 -1
- package/dist/components/TransferButton.js +1 -1
- package/dist/components/TransferButton.js.map +1 -1
- package/dist/components/VideoStreamingEmptyState/index.js +1 -1
- package/dist/components/VideoStreamingEmptyState/index.js.map +1 -1
- package/dist/components/VideoStreamingSkeleton/index.js +1 -1
- package/dist/components/VideoStreamingSkeleton/index.js.map +1 -1
- package/dist/components/VideoView/index.js +1 -1
- package/dist/components/VideoView/index.js.map +1 -1
- package/dist/components/ViewsTransition.js +1 -1
- package/dist/components/ViewsTransition.js.map +1 -1
- package/dist/components/WebRTC.js +1 -1
- package/dist/components/WebRTC.js.map +1 -1
- package/dist/events/CallEvents.js +1 -1
- package/dist/events/CallEvents.js.map +1 -1
- package/dist/events/PlayerEvents.js +1 -1
- package/dist/events/PlayerEvents.js.map +1 -1
- package/dist/events/RecorderEvents.js +1 -1
- package/dist/events/RecorderEvents.js.map +1 -1
- package/dist/events/SocketEvents.js +1 -1
- package/dist/events/SocketEvents.js.map +1 -1
- package/dist/lib/avatars/avatars.js +1 -1
- package/dist/lib/avatars/avatars.js.map +1 -1
- package/dist/lib/darkTheme.js +1 -1
- package/dist/lib/darkTheme.js.map +1 -1
- package/dist/lib/devices/devices.js +1 -1
- package/dist/lib/devices/devices.js.map +1 -1
- package/dist/lib/i18n.js +1 -1
- package/dist/lib/i18n.js.map +1 -1
- package/dist/lib/island/island.js +1 -1
- package/dist/lib/island/island.js.map +1 -1
- package/dist/lib/phone/audio.js +1 -1
- package/dist/lib/phone/audio.js.map +1 -1
- package/dist/lib/phone/call.js +1 -1
- package/dist/lib/phone/call.js.map +1 -1
- package/dist/lib/player/audio.js +1 -1
- package/dist/lib/player/audio.js.map +1 -1
- package/dist/lib/storage/local_storage.js +1 -1
- package/dist/lib/storage/local_storage.js.map +1 -1
- package/dist/lib/webrtc/messages.js +1 -1
- package/dist/lib/webrtc/messages.js.map +1 -1
- package/dist/models/alerts.js +1 -1
- package/dist/models/alerts.js.map +1 -1
- package/dist/models/audioBars.js +1 -1
- package/dist/models/audioBars.js.map +1 -1
- package/dist/models/avatars.js +1 -1
- package/dist/models/avatars.js.map +1 -1
- package/dist/models/conference.js +1 -1
- package/dist/models/conference.js.map +1 -1
- package/dist/models/currentCall.js +1 -1
- package/dist/models/currentCall.js.map +1 -1
- package/dist/models/currentUser.js +1 -1
- package/dist/models/currentUser.js.map +1 -1
- package/dist/models/darkTheme.js +1 -1
- package/dist/models/darkTheme.js.map +1 -1
- package/dist/models/fetchDefaults.js +1 -1
- package/dist/models/fetchDefaults.js.map +1 -1
- package/dist/models/island.js +1 -1
- package/dist/models/island.js.map +1 -1
- package/dist/models/listen.js +1 -1
- package/dist/models/listen.js.map +1 -1
- package/dist/models/mediaDevices.js +1 -1
- package/dist/models/mediaDevices.js.map +1 -1
- package/dist/models/motions.js +1 -1
- package/dist/models/motions.js.map +1 -1
- package/dist/models/paramUrl.js +1 -1
- package/dist/models/paramUrl.js.map +1 -1
- package/dist/models/physicalRecorder.js +1 -1
- package/dist/models/physicalRecorder.js.map +1 -1
- package/dist/models/player.js +1 -1
- package/dist/models/player.js.map +1 -1
- package/dist/models/queue.js +1 -1
- package/dist/models/queue.js.map +1 -1
- package/dist/models/recorder.js +1 -1
- package/dist/models/recorder.js.map +1 -1
- package/dist/models/ringtones.js +1 -1
- package/dist/models/ringtones.js.map +1 -1
- package/dist/models/screenShare.js +1 -1
- package/dist/models/screenShare.js.map +1 -1
- package/dist/models/streaming.js +1 -1
- package/dist/models/streaming.js.map +1 -1
- package/dist/models/users.js +1 -1
- package/dist/models/users.js.map +1 -1
- package/dist/models/webrtc.js +1 -1
- package/dist/models/webrtc.js.map +1 -1
- package/dist/models/websocket.js +1 -1
- package/dist/models/websocket.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/services/astproxy.js +1 -1
- package/dist/services/astproxy.js.map +1 -1
- package/dist/services/history_call.js +1 -1
- package/dist/services/history_call.js.map +1 -1
- package/dist/services/offhour.js +1 -1
- package/dist/services/offhour.js.map +1 -1
- package/dist/services/phonebook.js +1 -1
- package/dist/services/phonebook.js.map +1 -1
- package/dist/services/user.js +1 -1
- package/dist/services/user.js.map +1 -1
- package/dist/services/voicemail.js +1 -1
- package/dist/services/voicemail.js.map +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/index.js.map +1 -1
- package/dist/styles/CustomRange.styles.js +1 -1
- package/dist/styles/CustomRange.styles.js.map +1 -1
- package/dist/styles/Island.styles.js +1 -1
- package/dist/styles/Island.styles.js.map +1 -1
- package/dist/utils/genericFunctions/checkConnection.js +1 -1
- package/dist/utils/genericFunctions/checkConnection.js.map +1 -1
- package/dist/utils/streaming/streamingUtils.js +1 -1
- package/dist/utils/streaming/streamingUtils.js.map +1 -1
- package/package.json +5 -3
- package/dist/_virtual/EBML.js +0 -2
- package/dist/_virtual/EBML.js.map +0 -1
- package/dist/_virtual/EBMLDecoder.js +0 -2
- package/dist/_virtual/EBMLDecoder.js.map +0 -1
- package/dist/_virtual/EBMLEncoder.js +0 -2
- package/dist/_virtual/EBMLEncoder.js.map +0 -1
- package/dist/_virtual/EBMLReader.js +0 -2
- package/dist/_virtual/EBMLReader.js.map +0 -1
- package/dist/_virtual/_commonjs-dynamic-modules.js +0 -2
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -2
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/arrayLikeToArray.js +0 -2
- package/dist/_virtual/arrayLikeToArray.js.map +0 -1
- package/dist/_virtual/arrayWithHoles.js +0 -2
- package/dist/_virtual/arrayWithHoles.js.map +0 -1
- package/dist/_virtual/classCallCheck.js +0 -2
- package/dist/_virtual/classCallCheck.js.map +0 -1
- package/dist/_virtual/createClass.js +0 -2
- package/dist/_virtual/createClass.js.map +0 -1
- package/dist/_virtual/defineProperty.js +0 -2
- package/dist/_virtual/defineProperty.js.map +0 -1
- package/dist/_virtual/ebmlID.js +0 -2
- package/dist/_virtual/ebmlID.js.map +0 -1
- package/dist/_virtual/es5.js +0 -2
- package/dist/_virtual/es5.js.map +0 -1
- package/dist/_virtual/events.js +0 -2
- package/dist/_virtual/events.js.map +0 -1
- package/dist/_virtual/index.js +0 -2
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index10.js +0 -2
- package/dist/_virtual/index10.js.map +0 -1
- package/dist/_virtual/index11.js +0 -2
- package/dist/_virtual/index11.js.map +0 -1
- package/dist/_virtual/index2.js +0 -2
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -2
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -2
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -2
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.js +0 -2
- package/dist/_virtual/index6.js.map +0 -1
- package/dist/_virtual/index7.js +0 -2
- package/dist/_virtual/index7.js.map +0 -1
- package/dist/_virtual/index8.js +0 -2
- package/dist/_virtual/index8.js.map +0 -1
- package/dist/_virtual/index9.js +0 -2
- package/dist/_virtual/index9.js.map +0 -1
- package/dist/_virtual/int64-buffer.js +0 -2
- package/dist/_virtual/int64-buffer.js.map +0 -1
- package/dist/_virtual/iterableToArrayLimit.js +0 -2
- package/dist/_virtual/iterableToArrayLimit.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -2
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/moment.js +0 -2
- package/dist/_virtual/moment.js.map +0 -1
- package/dist/_virtual/nonIterableRest.js +0 -2
- package/dist/_virtual/nonIterableRest.js.map +0 -1
- package/dist/_virtual/objectWithoutProperties.js +0 -2
- package/dist/_virtual/objectWithoutProperties.js.map +0 -1
- package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -2
- package/dist/_virtual/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/_virtual/react-is.development.js +0 -2
- package/dist/_virtual/react-is.development.js.map +0 -1
- package/dist/_virtual/react-is.development2.js +0 -2
- package/dist/_virtual/react-is.development2.js.map +0 -1
- package/dist/_virtual/react-is.development3.js +0 -2
- package/dist/_virtual/react-is.development3.js.map +0 -1
- package/dist/_virtual/react-is.development4.js +0 -2
- package/dist/_virtual/react-is.development4.js.map +0 -1
- package/dist/_virtual/react-is.production.min.js +0 -2
- package/dist/_virtual/react-is.production.min.js.map +0 -1
- package/dist/_virtual/react-is.production.min2.js +0 -2
- package/dist/_virtual/react-is.production.min2.js.map +0 -1
- package/dist/_virtual/react-is.production.min3.js +0 -2
- package/dist/_virtual/react-is.production.min3.js.map +0 -1
- package/dist/_virtual/react-is.production.min4.js +0 -2
- package/dist/_virtual/react-is.production.min4.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -2
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/_virtual/requestMediaPermissions.js +0 -2
- package/dist/_virtual/requestMediaPermissions.js.map +0 -1
- package/dist/_virtual/sdp.js +0 -2
- package/dist/_virtual/sdp.js.map +0 -1
- package/dist/_virtual/slicedToArray.js +0 -2
- package/dist/_virtual/slicedToArray.js.map +0 -1
- package/dist/_virtual/toPrimitive.js +0 -2
- package/dist/_virtual/toPrimitive.js.map +0 -1
- package/dist/_virtual/toPropertyKey.js +0 -2
- package/dist/_virtual/toPropertyKey.js.map +0 -1
- package/dist/_virtual/tools-ebml.js +0 -2
- package/dist/_virtual/tools-ebml.js.map +0 -1
- package/dist/_virtual/tools.js +0 -2
- package/dist/_virtual/tools.js.map +0 -1
- package/dist/_virtual/typeof.js +0 -2
- package/dist/_virtual/typeof.js.map +0 -1
- package/dist/_virtual/unitless.cjs.dev.js +0 -2
- package/dist/_virtual/unitless.cjs.dev.js.map +0 -1
- package/dist/_virtual/unitless.cjs.js +0 -2
- package/dist/_virtual/unitless.cjs.js.map +0 -1
- package/dist/_virtual/unitless.cjs.prod.js +0 -2
- package/dist/_virtual/unitless.cjs.prod.js.map +0 -1
- package/dist/_virtual/unsupportedIterableToArray.js +0 -2
- package/dist/_virtual/unsupportedIterableToArray.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -2
- package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -2
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/_virtual/with-selector.development.js +0 -2
- package/dist/_virtual/with-selector.development.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -2
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/_virtual/with-selector.production.js +0 -2
- package/dist/_virtual/with-selector.production.js.map +0 -1
- package/dist/_virtual/with-selector2.js +0 -2
- package/dist/_virtual/with-selector2.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/createClass.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/createClass.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/typeof.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/typeof.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js.map +0 -1
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -2
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -2
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +0 -2
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.dev.js +0 -2
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.dev.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.js +0 -2
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.prod.js +0 -2
- package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.prod.js.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +0 -1
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js +0 -2
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js.map +0 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +0 -2
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +0 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +0 -2
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/id.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +0 -1
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +0 -2
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/context.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/context.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.mjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/utils.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/platform.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/platform.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/runAfterTransition.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/runAfterTransition.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useId.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useId.mjs.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs.js.map +0 -1
- package/dist/node_modules/@react-stately/flags/dist/import.mjs.js +0 -2
- package/dist/node_modules/@react-stately/flags/dist/import.mjs.js.map +0 -1
- package/dist/node_modules/@rematch/core/dist/core.esm.js +0 -2
- package/dist/node_modules/@rematch/core/dist/core.esm.js.map +0 -1
- package/dist/node_modules/@rematch/immer/dist/immer.esm.js +0 -2
- package/dist/node_modules/@rematch/immer/dist/immer.esm.js.map +0 -1
- package/dist/node_modules/@rematch/select/dist/select.esm.js +0 -2
- package/dist/node_modules/@rematch/select/dist/select.esm.js.map +0 -1
- package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.js +0 -2
- package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.js.map +0 -1
- package/dist/node_modules/bowser/es5.js +0 -2
- package/dist/node_modules/bowser/es5.js.map +0 -1
- package/dist/node_modules/classnames/index.js +0 -7
- package/dist/node_modules/classnames/index.js.map +0 -1
- package/dist/node_modules/ebml-block/index.js +0 -2
- package/dist/node_modules/ebml-block/index.js.map +0 -1
- package/dist/node_modules/ebml-block/lib/buffer-reader.js +0 -2
- package/dist/node_modules/ebml-block/lib/buffer-reader.js.map +0 -1
- package/dist/node_modules/ebml-block/lib/vint.js +0 -2
- package/dist/node_modules/ebml-block/lib/vint.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/socket.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/socket.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transport.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transport.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/index.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/index.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js.map +0 -1
- package/dist/node_modules/engine.io-client/build/esm/util.js +0 -2
- package/dist/node_modules/engine.io-client/build/esm/util.js.map +0 -1
- package/dist/node_modules/engine.io-parser/build/esm/commons.js +0 -2
- package/dist/node_modules/engine.io-parser/build/esm/commons.js.map +0 -1
- package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +0 -2
- package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js.map +0 -1
- package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +0 -2
- package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js.map +0 -1
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +0 -2
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +0 -1
- package/dist/node_modules/engine.io-parser/build/esm/index.js +0 -2
- package/dist/node_modules/engine.io-parser/build/esm/index.js.map +0 -1
- package/dist/node_modules/events/events.js +0 -2
- package/dist/node_modules/events/events.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js.map +0 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -2
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -2
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.js +0 -2
- package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.js.map +0 -1
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -2
- package/dist/node_modules/i18next/dist/esm/i18next.js.map +0 -1
- package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js +0 -2
- package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js.map +0 -1
- package/dist/node_modules/immer/dist/immer.esm.mjs.js +0 -2
- package/dist/node_modules/immer/dist/immer.esm.mjs.js.map +0 -1
- package/dist/node_modules/int64-buffer/int64-buffer.js +0 -2
- package/dist/node_modules/int64-buffer/int64-buffer.js.map +0 -1
- package/dist/node_modules/js-base64/base64.mjs.js +0 -2
- package/dist/node_modules/js-base64/base64.mjs.js.map +0 -1
- package/dist/node_modules/lodash/_Symbol.js +0 -2
- package/dist/node_modules/lodash/_Symbol.js.map +0 -1
- package/dist/node_modules/lodash/_baseGetTag.js +0 -2
- package/dist/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/dist/node_modules/lodash/_baseTrim.js +0 -2
- package/dist/node_modules/lodash/_baseTrim.js.map +0 -1
- package/dist/node_modules/lodash/_freeGlobal.js +0 -2
- package/dist/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/dist/node_modules/lodash/_getRawTag.js +0 -2
- package/dist/node_modules/lodash/_getRawTag.js.map +0 -1
- package/dist/node_modules/lodash/_objectToString.js +0 -2
- package/dist/node_modules/lodash/_objectToString.js.map +0 -1
- package/dist/node_modules/lodash/_root.js +0 -2
- package/dist/node_modules/lodash/_root.js.map +0 -1
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
- package/dist/node_modules/lodash/debounce.js +0 -2
- package/dist/node_modules/lodash/debounce.js.map +0 -1
- package/dist/node_modules/lodash/isObject.js +0 -2
- package/dist/node_modules/lodash/isObject.js.map +0 -1
- package/dist/node_modules/lodash/isObjectLike.js +0 -2
- package/dist/node_modules/lodash/isObjectLike.js.map +0 -1
- package/dist/node_modules/lodash/isSymbol.js +0 -2
- package/dist/node_modules/lodash/isSymbol.js.map +0 -1
- package/dist/node_modules/lodash/now.js +0 -2
- package/dist/node_modules/lodash/now.js.map +0 -1
- package/dist/node_modules/lodash/toNumber.js +0 -2
- package/dist/node_modules/lodash/toNumber.js.map +0 -1
- package/dist/node_modules/mic-check/lib/index.js +0 -2
- package/dist/node_modules/mic-check/lib/index.js.map +0 -1
- package/dist/node_modules/mic-check/lib/requestMediaPermissions.js +0 -2
- package/dist/node_modules/mic-check/lib/requestMediaPermissions.js.map +0 -1
- package/dist/node_modules/moment/moment.js +0 -4
- package/dist/node_modules/moment/moment.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/array.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/array.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/memo.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/memo.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/noop.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/noop.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/progress.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/progress.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js.map +0 -1
- package/dist/node_modules/object-assign/index.js +0 -8
- package/dist/node_modules/object-assign/index.js.map +0 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -2
- package/dist/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/node_modules/prop-types/index.js +0 -2
- package/dist/node_modules/prop-types/index.js.map +0 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/node_modules/prop-types/lib/has.js +0 -2
- package/dist/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -11
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -2
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/context.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/defaults.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/unescape.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js.map +0 -1
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/utils.js.map +0 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/react-is/index.js +0 -2
- package/dist/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/react-moment/dist/index.js +0 -12
- package/dist/node_modules/react-moment/dist/index.js.map +0 -1
- package/dist/node_modules/react-redux/es/components/Context.js +0 -2
- package/dist/node_modules/react-redux/es/components/Context.js.map +0 -1
- package/dist/node_modules/react-redux/es/components/Provider.js +0 -2
- package/dist/node_modules/react-redux/es/components/Provider.js.map +0 -1
- package/dist/node_modules/react-redux/es/hooks/useDispatch.js +0 -2
- package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +0 -1
- package/dist/node_modules/react-redux/es/hooks/useReduxContext.js +0 -2
- package/dist/node_modules/react-redux/es/hooks/useReduxContext.js.map +0 -1
- package/dist/node_modules/react-redux/es/hooks/useSelector.js +0 -2
- package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +0 -1
- package/dist/node_modules/react-redux/es/hooks/useStore.js +0 -2
- package/dist/node_modules/react-redux/es/hooks/useStore.js.map +0 -1
- package/dist/node_modules/react-redux/es/index.js +0 -2
- package/dist/node_modules/react-redux/es/index.js.map +0 -1
- package/dist/node_modules/react-redux/es/utils/Subscription.js +0 -2
- package/dist/node_modules/react-redux/es/utils/Subscription.js.map +0 -1
- package/dist/node_modules/react-redux/es/utils/batch.js +0 -2
- package/dist/node_modules/react-redux/es/utils/batch.js.map +0 -1
- package/dist/node_modules/react-redux/es/utils/shallowEqual.js +0 -2
- package/dist/node_modules/react-redux/es/utils/shallowEqual.js.map +0 -1
- package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js +0 -2
- package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js.map +0 -1
- package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js +0 -2
- package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js.map +0 -1
- package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js +0 -11
- package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js +0 -11
- package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/react-redux/node_modules/react-is/index.js +0 -2
- package/dist/node_modules/react-redux/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +0 -8
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +0 -1
- package/dist/node_modules/redux/es/redux.js +0 -2
- package/dist/node_modules/redux/es/redux.js.map +0 -1
- package/dist/node_modules/reselect/es/defaultMemoize.js +0 -2
- package/dist/node_modules/reselect/es/defaultMemoize.js.map +0 -1
- package/dist/node_modules/reselect/es/index.js +0 -2
- package/dist/node_modules/reselect/es/index.js.map +0 -1
- package/dist/node_modules/sdp/sdp.js +0 -2
- package/dist/node_modules/sdp/sdp.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/index.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/index.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/manager.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/manager.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/on.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/on.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/socket.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/socket.js.map +0 -1
- package/dist/node_modules/socket.io-client/build/esm/url.js +0 -2
- package/dist/node_modules/socket.io-client/build/esm/url.js.map +0 -1
- package/dist/node_modules/socket.io-parser/build/esm/binary.js +0 -2
- package/dist/node_modules/socket.io-parser/build/esm/binary.js.map +0 -1
- package/dist/node_modules/socket.io-parser/build/esm/index.js +0 -2
- package/dist/node_modules/socket.io-parser/build/esm/index.js.map +0 -1
- package/dist/node_modules/socket.io-parser/build/esm/is-binary.js +0 -2
- package/dist/node_modules/socket.io-parser/build/esm/is-binary.js.map +0 -1
- package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -2
- package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -2
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -11
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -2
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -2
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -2
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +0 -1
- package/dist/node_modules/void-elements/index.js +0 -2
- package/dist/node_modules/void-elements/index.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBML.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBML.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLDecoder.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLDecoder.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLEncoder.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLEncoder.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLReader.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLReader.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/ebmlID.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/ebmlID.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/index.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/index.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/tools-ebml.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/tools-ebml.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/ebml/tools.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/ebml/tools.js.map +0 -1
- package/dist/node_modules/webm-duration-fix/lib/index.js +0 -2
- package/dist/node_modules/webm-duration-fix/lib/index.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/common_shim.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/common_shim.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +0 -1
- package/dist/node_modules/webrtc-adapter/src/js/utils.js +0 -2
- package/dist/node_modules/webrtc-adapter/src/js/utils.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../utils/genericFunctions/eventDispatch.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../utils/genericFunctions/eventDispatch.js");require("tslib"),require("../store/index.js");var n={},t=null;function i(){0!==Object.keys(n).length?(e.eventDispatch("phone-island-parking-update",n),n={},t=null):t=null}exports.dispatchAlreadyLogin=function(){e.eventDispatch("phone-island-user-already-login",{})},exports.dispatchConversations=function(n,t){var i,s=((i={})[n.username]={conversations:null==n?void 0:n.conversations,status:null==n?void 0:n.status,sipuseragent:null==n?void 0:n.sipuseragent,username:null==n?void 0:n.username,port:null==n?void 0:n.port,dnd:null==n?void 0:n.dnd,number:null==n?void 0:n.exten,ip:null==n?void 0:n.ip,exten:null==n?void 0:n.exten,name:null==n?void 0:n.name,extensionType:t},i);e.eventDispatch("phone-island-conversations",s)},exports.dispatchCurrentUserQueueCallConnected=function(n){e.eventDispatch("phone-island-current-user-queue-call-connected",n)},exports.dispatchCurrentUserQueueCallWaiting=function(n){e.eventDispatch("phone-island-current-user-queue-call-waiting",n)},exports.dispatchDefaultDeviceUpdate=function(n){e.eventDispatch("phone-island-default-device-updated",{id:n})},exports.dispatchExtensions=function(n){var t,i=((t={})[n.username]={conversations:null==n?void 0:n.conversations,status:null==n?void 0:n.status,sipuseragent:null==n?void 0:n.sipuseragent,username:null==n?void 0:n.username,port:null==n?void 0:n.port,dnd:null==n?void 0:n.dnd,number:null==n?void 0:n.exten,ip:null==n?void 0:n.ip,exten:null==n?void 0:n.exten,name:null==n?void 0:n.name},t);e.eventDispatch("phone-island-extensions-update",i)},exports.dispatchMainPresence=function(n){var t,i=((t={})[n.mainPresence.username]={mainPresence:n.mainPresence.status},t);e.eventDispatch("phone-island-main-presence",i)},exports.dispatchParkingUpdate=function(s){(null==s?void 0:s.parking)?(n[s.parking]=s,t||(t=setTimeout(i,200))):e.eventDispatch("phone-island-parking-update",{})},exports.dispatchQueueMemberUpdate=function(n){var t,i=((t={})[n.member]=n,t);e.eventDispatch("phone-island-queue-member-update",i)},exports.dispatchQueueUpdate=function(n){var t,i=((t={})[n.queue]=n,t);e.eventDispatch("phone-island-queue-update",i)},exports.dispatchServerReload=function(){e.eventDispatch("phone-island-server-reloaded",{})},exports.dispatchUrlCall=function(n,t){var i={url:n,urlType:t};e.eventDispatch("phone-island-action-physical",{urlCallObject:i})};
|
|
2
2
|
//# sourceMappingURL=SocketEvents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocketEvents.js","sources":["../../src/events/SocketEvents.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { eventDispatch } from '../utils'\nimport type {\n MainPresenceTypes,\n MainPresenceEventTypes,\n ExtensionTypes,\n QueuesUpdateTypes,\n QueuesEventType,\n QueueUpdateMemberTypes,\n QueuesMemberEventType,\n CurrentUserQueueCallEventTypes,\n ParkingUpdateTypes,\n ParkingUpdateEventTypes,\n} from '../types'\n\nconst PARKING_UPDATE_DISPATCH_DELAY_MS = 200\nlet parkingUpdateBuffer: ParkingUpdateEventTypes = {}\nlet parkingUpdateDispatchTimer: ReturnType<typeof setTimeout> | null = null\n\nfunction flushParkingUpdates() {\n if (Object.keys(parkingUpdateBuffer).length === 0) {\n parkingUpdateDispatchTimer = null\n return\n }\n\n eventDispatch('phone-island-parking-update', parkingUpdateBuffer)\n parkingUpdateBuffer = {}\n parkingUpdateDispatchTimer = null\n}\n\n/**\n * The dispatch function for the userMainPresenceUpdate event\n *\n * @param event The userMainPresenceUpdate event from socket\n */\nexport function dispatchMainPresence(event: MainPresenceTypes) {\n const data: MainPresenceEventTypes = {\n [event.mainPresence.username]: {\n mainPresence: event.mainPresence.status,\n },\n }\n eventDispatch('phone-island-main-presence', data)\n}\n\n/**\n * The dispatch function for the extenUpdate event\n *\n * @param event The extenUpdate event from socket\n */\nexport function dispatchExtensions(event: ExtensionTypes) {\n const data: any = {\n [event.username]: {\n conversations: event?.conversations,\n status: event?.status,\n sipuseragent: event?.sipuseragent,\n username: event?.username,\n port: event?.port,\n dnd: event?.dnd,\n number: event?.exten,\n ip: event?.ip,\n exten: event?.exten,\n name: event?.name,\n },\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-extensions-update', data)\n}\n\n/**\n * The dispatch function for the extenUpdate event\n *\n * @param event The extenUpdate event from socket\n * @param extensionType The type of the extension (webrtc, mobile, nethlink, physical)\n */\nexport function dispatchConversations(event: ExtensionTypes, extensionType?: string) {\n const data: any = {\n [event.username]: {\n conversations: event?.conversations,\n status: event?.status,\n sipuseragent: event?.sipuseragent,\n username: event?.username,\n port: event?.port,\n dnd: event?.dnd,\n number: event?.exten,\n ip: event?.ip,\n exten: event?.exten,\n name: event?.name,\n extensionType: extensionType,\n },\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-conversations', data)\n}\n\n/**\n * The dispatch function for the queueUpdate event\n *\n * @param event The queueUpdate event from socket\n */\nexport function dispatchQueueUpdate(event: QueuesUpdateTypes) {\n const data: QueuesEventType = {\n [event.queue]: event,\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-queue-update', data)\n}\n\n/**\n * The dispatch function for the queueMemberUpdate event\n *\n * @param event The queueMemberUpdate event from socket\n */\nexport function dispatchQueueMemberUpdate(event: QueueUpdateMemberTypes) {\n const data: QueuesMemberEventType = {\n [event.member]: event,\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-queue-member-update', data)\n}\n\n/**\n * The dispatch function for the current user queue call waiting event\n *\n * @param event The current user queue call data\n */\nexport function dispatchCurrentUserQueueCallWaiting(event: CurrentUserQueueCallEventTypes) {\n eventDispatch('phone-island-current-user-queue-call-waiting', event)\n}\n\n/**\n * The dispatch function for the current user queue call connected event\n *\n * @param event The current user queue call data\n */\nexport function dispatchCurrentUserQueueCallConnected(event: CurrentUserQueueCallEventTypes) {\n eventDispatch('phone-island-current-user-queue-call-connected', event)\n}\n\n/**\n * The dispatch function for the takeOver event\n *\n * @param event The takeOver event from socket\n */\nexport function dispatchAlreadyLogin() {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-user-already-login', {})\n}\n\n/**\n * The dispatch function for server reload\n *\n * @param event The serverReload event from socket\n */\nexport function dispatchServerReload() {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-server-reloaded', {})\n}\n\n/**\n * The dispatch function for parking update\n *\n * @param event The parking update event from socket\n */\nexport function dispatchParkingUpdate(event: ParkingUpdateTypes) {\n // Batch rapid socket bursts into one browser event to avoid redundant refreshes\n if (!event?.parking) {\n eventDispatch('phone-island-parking-update', {})\n return\n }\n\n parkingUpdateBuffer[event.parking] = event\n\n if (!parkingUpdateDispatchTimer) {\n parkingUpdateDispatchTimer = setTimeout(\n flushParkingUpdates,\n PARKING_UPDATE_DISPATCH_DELAY_MS,\n )\n }\n}\n\n/**\n * The dispatch function for url physical call\n *\n * @param event The parking update event from socket\n */\nexport function dispatchUrlCall(url: string, urlType: string) {\n // Dispatch the event on window for external handlers\n let urlCallObject = {\n url: url,\n urlType: urlType,\n }\n eventDispatch('phone-island-action-physical', { urlCallObject })\n}\n\n/**\n * The dispatch function to update the default device\n *\n * @param extension The default_device_update event from socket\n */\nexport function dispatchDefaultDeviceUpdate(extension: string) {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-default-device-updated', { id: extension })\n}\n"],"names":["parkingUpdateBuffer","parkingUpdateDispatchTimer","flushParkingUpdates","Object","keys","length","eventDispatch","event","extensionType","data","_a","username","conversations","status","sipuseragent","port","dnd","number","exten","ip","name","extension","id","mainPresence","parking","setTimeout","member","queue","url","urlType","urlCallObject"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SocketEvents.js","sources":["../../src/events/SocketEvents.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { eventDispatch } from '../utils'\nimport type {\n MainPresenceTypes,\n MainPresenceEventTypes,\n ExtensionTypes,\n QueuesUpdateTypes,\n QueuesEventType,\n QueueUpdateMemberTypes,\n QueuesMemberEventType,\n CurrentUserQueueCallEventTypes,\n ParkingUpdateTypes,\n ParkingUpdateEventTypes,\n} from '../types'\n\nconst PARKING_UPDATE_DISPATCH_DELAY_MS = 200\nlet parkingUpdateBuffer: ParkingUpdateEventTypes = {}\nlet parkingUpdateDispatchTimer: ReturnType<typeof setTimeout> | null = null\n\nfunction flushParkingUpdates() {\n if (Object.keys(parkingUpdateBuffer).length === 0) {\n parkingUpdateDispatchTimer = null\n return\n }\n\n eventDispatch('phone-island-parking-update', parkingUpdateBuffer)\n parkingUpdateBuffer = {}\n parkingUpdateDispatchTimer = null\n}\n\n/**\n * The dispatch function for the userMainPresenceUpdate event\n *\n * @param event The userMainPresenceUpdate event from socket\n */\nexport function dispatchMainPresence(event: MainPresenceTypes) {\n const data: MainPresenceEventTypes = {\n [event.mainPresence.username]: {\n mainPresence: event.mainPresence.status,\n },\n }\n eventDispatch('phone-island-main-presence', data)\n}\n\n/**\n * The dispatch function for the extenUpdate event\n *\n * @param event The extenUpdate event from socket\n */\nexport function dispatchExtensions(event: ExtensionTypes) {\n const data: any = {\n [event.username]: {\n conversations: event?.conversations,\n status: event?.status,\n sipuseragent: event?.sipuseragent,\n username: event?.username,\n port: event?.port,\n dnd: event?.dnd,\n number: event?.exten,\n ip: event?.ip,\n exten: event?.exten,\n name: event?.name,\n },\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-extensions-update', data)\n}\n\n/**\n * The dispatch function for the extenUpdate event\n *\n * @param event The extenUpdate event from socket\n * @param extensionType The type of the extension (webrtc, mobile, nethlink, physical)\n */\nexport function dispatchConversations(event: ExtensionTypes, extensionType?: string) {\n const data: any = {\n [event.username]: {\n conversations: event?.conversations,\n status: event?.status,\n sipuseragent: event?.sipuseragent,\n username: event?.username,\n port: event?.port,\n dnd: event?.dnd,\n number: event?.exten,\n ip: event?.ip,\n exten: event?.exten,\n name: event?.name,\n extensionType: extensionType,\n },\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-conversations', data)\n}\n\n/**\n * The dispatch function for the queueUpdate event\n *\n * @param event The queueUpdate event from socket\n */\nexport function dispatchQueueUpdate(event: QueuesUpdateTypes) {\n const data: QueuesEventType = {\n [event.queue]: event,\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-queue-update', data)\n}\n\n/**\n * The dispatch function for the queueMemberUpdate event\n *\n * @param event The queueMemberUpdate event from socket\n */\nexport function dispatchQueueMemberUpdate(event: QueueUpdateMemberTypes) {\n const data: QueuesMemberEventType = {\n [event.member]: event,\n }\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-queue-member-update', data)\n}\n\n/**\n * The dispatch function for the current user queue call waiting event\n *\n * @param event The current user queue call data\n */\nexport function dispatchCurrentUserQueueCallWaiting(event: CurrentUserQueueCallEventTypes) {\n eventDispatch('phone-island-current-user-queue-call-waiting', event)\n}\n\n/**\n * The dispatch function for the current user queue call connected event\n *\n * @param event The current user queue call data\n */\nexport function dispatchCurrentUserQueueCallConnected(event: CurrentUserQueueCallEventTypes) {\n eventDispatch('phone-island-current-user-queue-call-connected', event)\n}\n\n/**\n * The dispatch function for the takeOver event\n *\n * @param event The takeOver event from socket\n */\nexport function dispatchAlreadyLogin() {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-user-already-login', {})\n}\n\n/**\n * The dispatch function for server reload\n *\n * @param event The serverReload event from socket\n */\nexport function dispatchServerReload() {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-server-reloaded', {})\n}\n\n/**\n * The dispatch function for parking update\n *\n * @param event The parking update event from socket\n */\nexport function dispatchParkingUpdate(event: ParkingUpdateTypes) {\n // Batch rapid socket bursts into one browser event to avoid redundant refreshes\n if (!event?.parking) {\n eventDispatch('phone-island-parking-update', {})\n return\n }\n\n parkingUpdateBuffer[event.parking] = event\n\n if (!parkingUpdateDispatchTimer) {\n parkingUpdateDispatchTimer = setTimeout(\n flushParkingUpdates,\n PARKING_UPDATE_DISPATCH_DELAY_MS,\n )\n }\n}\n\n/**\n * The dispatch function for url physical call\n *\n * @param event The parking update event from socket\n */\nexport function dispatchUrlCall(url: string, urlType: string) {\n // Dispatch the event on window for external handlers\n let urlCallObject = {\n url: url,\n urlType: urlType,\n }\n eventDispatch('phone-island-action-physical', { urlCallObject })\n}\n\n/**\n * The dispatch function to update the default device\n *\n * @param extension The default_device_update event from socket\n */\nexport function dispatchDefaultDeviceUpdate(extension: string) {\n // Dispatch the event on window for external handlers\n eventDispatch('phone-island-default-device-updated', { id: extension })\n}\n"],"names":["parkingUpdateBuffer","parkingUpdateDispatchTimer","flushParkingUpdates","Object","keys","length","eventDispatch","event","extensionType","data","_a","username","conversations","status","sipuseragent","port","dnd","number","exten","ip","name","extension","id","mainPresence","parking","setTimeout","member","queue","url","urlType","urlCallObject"],"mappings":"+LAiBA,IACIA,EAA+C,CAAA,EAC/CC,EAAmE,KAEvE,SAASC,IACyC,IAA5CC,OAAOC,KAAKJ,GAAqBK,QAKrCC,gBAAc,8BAA+BN,GAC7CA,EAAsB,CAAA,EACtBC,EAA6B,MAN3BA,EAA6B,IAOjC,yCAqHEK,gBAAc,kCAAmC,CAAA,EACnD,gCAxEgB,SAAsBC,EAAuBC,SACrDC,IAAIC,EAAA,CAAA,GACPH,EAAMI,UAAW,CAChBC,cAAeL,aAAA,EAAAA,EAAOK,cACtBC,OAAQN,aAAA,EAAAA,EAAOM,OACfC,aAAcP,aAAA,EAAAA,EAAOO,aACrBH,SAAUJ,aAAA,EAAAA,EAAOI,SACjBI,KAAMR,aAAA,EAAAA,EAAOQ,KACbC,IAAKT,aAAA,EAAAA,EAAOS,IACZC,OAAQV,aAAA,EAAAA,EAAOW,MACfC,GAAIZ,aAAA,EAAAA,EAAOY,GACXD,MAAOX,aAAA,EAAAA,EAAOW,MACdE,KAAMb,aAAA,EAAAA,EAAOa,KACbZ,cAAeA,MAInBF,gBAAc,6BAA8BG,EAC9C,gDA0CM,SAAgDF,GACpDD,gBAAc,iDAAkDC,EAClE,8CAXM,SAA8CA,GAClDD,gBAAc,+CAAgDC,EAChE,sCAwEM,SAAsCc,GAE1Cf,EAAAA,cAA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defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("../../store/index.js"),r=require("../storage/local_storage.js"),a=require("../../services/user.js"),s=864e5;exports.AVATARS_EXPIRATION_MILLIS=s,exports.getInitials=function(e){var t=e.split(" ").map((function(e){return e.charAt(0)})).join("");return t.length>3?t.slice(0,2).concat(t.charAt(t.length-1)):t},exports.retrieveAvatars=function(n){return e.__awaiter(this,void 0,void 0,(function(){var i,c,o;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),(i=r.loadCache("operatorsAvatars",n))&&Object.values(i).length>0?(t.store.dispatch.avatars.updateAvatars(i),[3,3]):[3,1];case 1:return[4,a.getAllAvatars()];case 2:(c=e.sent())&&Object.values(c).length>0&&(o=(new Date).getTime()+s,r.saveCache("operatorsAvatars",c,n,o),t.store.dispatch.avatars.updateAvatars(c)),e.label=3;case 3:return[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))};
|
|
2
2
|
//# sourceMappingURL=avatars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.js","sources":["../../../src/lib/avatars/avatars.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { AvatarsTypes } from '../../types'\nimport { store } from '../../store'\nimport { loadCache, saveCache } from '../storage/local_storage'\nimport { getAllAvatars } from '../../services/user'\n\nexport const AVATARS_EXPIRATION_MILLIS = 24 * 60 * 60 * 1000 // 24 hours\n\n/**\n * Get avatars from localstorage or request it from the api\n * ... other applications like nethvoice-cti could use or\n * ... request an avatars object\n *\n * @param username The username of the current user\n */\nexport async function retrieveAvatars(username: string) {\n try {\n let avatars: AvatarsTypes | undefined = loadCache('operatorsAvatars', username)\n if (avatars && Object.values(avatars).length > 0) {\n // Avatars already are in localstorage\n store.dispatch.avatars.updateAvatars(avatars)\n } else {\n // Request avatars to the API\n const avatarsResponse: AvatarsTypes | undefined = await getAllAvatars()\n if (avatarsResponse && Object.values(avatarsResponse).length > 0) {\n const expiration: number = new Date().getTime() + AVATARS_EXPIRATION_MILLIS\n // Update avatars in localstorage for performances and for other applications\n saveCache('operatorsAvatars', avatarsResponse, username, expiration)\n // Update avatars store\n store.dispatch.avatars.updateAvatars(avatarsResponse)\n }\n }\n } catch (error) {}\n}\n\nexport const getInitials = (displayName: string) => {\n const initials = displayName\n .split(' ')\n .map((name) => name.charAt(0))\n .join('')\n\n // Maximum of 3 initials\n if (initials.length > 3) {\n return initials.slice(0, 2).concat(initials.charAt(initials.length - 1))\n }\n return initials\n}\n"],"names":["AVATARS_EXPIRATION_MILLIS","displayName","initials","split","map","name","charAt","join","length","slice","concat","username","avatars","loadCache","Object","values","store","dispatch","updateAvatars","getAllAvatars","avatarsResponse","_a","sent","expiration","Date","getTime","saveCache"],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatars.js","sources":["../../../src/lib/avatars/avatars.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { AvatarsTypes } from '../../types'\nimport { store } from '../../store'\nimport { loadCache, saveCache } from '../storage/local_storage'\nimport { getAllAvatars } from '../../services/user'\n\nexport const AVATARS_EXPIRATION_MILLIS = 24 * 60 * 60 * 1000 // 24 hours\n\n/**\n * Get avatars from localstorage or request it from the api\n * ... other applications like nethvoice-cti could use or\n * ... request an avatars object\n *\n * @param username The username of the current user\n */\nexport async function retrieveAvatars(username: string) {\n try {\n let avatars: AvatarsTypes | undefined = loadCache('operatorsAvatars', username)\n if (avatars && Object.values(avatars).length > 0) {\n // Avatars already are in localstorage\n store.dispatch.avatars.updateAvatars(avatars)\n } else {\n // Request avatars to the API\n const avatarsResponse: AvatarsTypes | undefined = await getAllAvatars()\n if (avatarsResponse && Object.values(avatarsResponse).length > 0) {\n const expiration: number = new Date().getTime() + AVATARS_EXPIRATION_MILLIS\n // Update avatars in localstorage for performances and for other applications\n saveCache('operatorsAvatars', avatarsResponse, username, expiration)\n // Update avatars store\n store.dispatch.avatars.updateAvatars(avatarsResponse)\n }\n }\n } catch (error) {}\n}\n\nexport const getInitials = (displayName: string) => {\n const initials = displayName\n .split(' ')\n .map((name) => name.charAt(0))\n .join('')\n\n // Maximum of 3 initials\n if (initials.length > 3) {\n return initials.slice(0, 2).concat(initials.charAt(initials.length - 1))\n }\n return initials\n}\n"],"names":["AVATARS_EXPIRATION_MILLIS","displayName","initials","split","map","name","charAt","join","length","slice","concat","username","avatars","loadCache","Object","values","store","dispatch","updateAvatars","getAllAvatars","avatarsResponse","_a","sent","expiration","Date","getTime","saveCache"],"mappings":"0MAQaA,EAA4B,8DA6Bd,SAACC,GAC1B,IAAMC,EAAWD,EACdE,MAAM,KACNC,KAAI,SAACC,GAAS,OAAAA,EAAKC,OAAO,MAC1BC,KAAK,IAGR,OAAIL,EAASM,OAAS,EACbN,EAASO,MAAM,EAAG,GAAGC,OAAOR,EAASI,OAAOJ,EAASM,OAAS,IAEhEN,CACT,0BA/BM,SAAgCS,6HAG9B,8BADAC,EAAoCC,EAASA,UAAC,mBAAoBF,KACvDG,OAAOC,OAAOH,GAASJ,OAAS,GAE7CQ,EAAAA,MAAMC,SAASL,QAAQM,cAAcN,UAFS,CAAA,EAAA,UAKI,MAAM,CAAA,EAAAO,EAAAA,yBAAlDC,EAA4CC,EAAqBC,SAChDR,OAAOC,OAAOK,GAAiBZ,OAAS,IACvDe,GAAqB,IAAIC,MAAOC,UAAYzB,EAElD0B,EAAAA,UAAU,mBAAoBN,EAAiBT,EAAUY,GAEzDP,EAAAA,MAAMC,SAASL,QAAQM,cAAcE,qFAI5C"}
|
package/dist/lib/darkTheme.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../utils/genericFunctions/eventDispatch.js"),t=require("../utils/genericFunctions/localStorage.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../utils/genericFunctions/eventDispatch.js"),t=require("../utils/genericFunctions/localStorage.js");require("tslib");var s=require("../store/index.js"),r=function(){document.documentElement.classList.add("pi-dark")},c=function(){document.documentElement.classList.remove("pi-dark")},i=function(){var e=t.getJSONItem("phone-island-theme-selected")||{},i="system";"dark"===e.themeSelected?(i="dark",r()):"light"===e.themeSelected?(i="light",c()):window.matchMedia("(prefers-color-scheme: dark)").matches?r():c(),s.store.dispatch.darkTheme.update(i)};exports.checkDarkTheme=i,exports.setTheme=function(s){t.setJSONItem("phone-island-theme-selected",{themeSelected:s}),i(),e.eventDispatch("phone-island-theme-changed",{})};
|
|
2
2
|
//# sourceMappingURL=darkTheme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkTheme.js","sources":["../../src/lib/darkTheme.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { setJSONItem, getJSONItem, eventDispatch } from '../utils'\nimport { store } from '../store'\n\nconst addDarkClassToDocument = () => {\n document.documentElement.classList.add('pi-dark')\n}\n\nconst removeDarkClassFromDocument = () => {\n document.documentElement.classList.remove('pi-dark')\n}\n\n/**\n * Read theme from local storage and update global store\n */\nexport const checkDarkTheme = () => {\n const preferences = getJSONItem(`phone-island-theme-selected`) || {}\n let theme = 'system'\n\n if (preferences.themeSelected === 'dark') {\n theme = 'dark'\n addDarkClassToDocument()\n } else if (preferences.themeSelected === 'light') {\n theme = 'light'\n removeDarkClassFromDocument()\n } else {\n // system theme\n if (window.matchMedia('(prefers-color-scheme: dark)').matches) {\n addDarkClassToDocument()\n } else {\n removeDarkClassFromDocument()\n }\n }\n\n // update global store\n store.dispatch.darkTheme.update(theme)\n}\n\nexport const setTheme = (theme: string) => {\n setJSONItem('phone-island-theme-selected', { themeSelected: theme })\n checkDarkTheme()\n eventDispatch('phone-island-theme-changed', {})\n}\n"],"names":["addDarkClassToDocument","document","documentElement","classList","add","removeDarkClassFromDocument","remove","checkDarkTheme","preferences","getJSONItem","theme","themeSelected","window","matchMedia","matches","store","dispatch","darkTheme","update","setJSONItem","eventDispatch"],"mappings":"
|
|
1
|
+
{"version":3,"file":"darkTheme.js","sources":["../../src/lib/darkTheme.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { setJSONItem, getJSONItem, eventDispatch } from '../utils'\nimport { store } from '../store'\n\nconst addDarkClassToDocument = () => {\n document.documentElement.classList.add('pi-dark')\n}\n\nconst removeDarkClassFromDocument = () => {\n document.documentElement.classList.remove('pi-dark')\n}\n\n/**\n * Read theme from local storage and update global store\n */\nexport const checkDarkTheme = () => {\n const preferences = getJSONItem(`phone-island-theme-selected`) || {}\n let theme = 'system'\n\n if (preferences.themeSelected === 'dark') {\n theme = 'dark'\n addDarkClassToDocument()\n } else if (preferences.themeSelected === 'light') {\n theme = 'light'\n removeDarkClassFromDocument()\n } else {\n // system theme\n if (window.matchMedia('(prefers-color-scheme: dark)').matches) {\n addDarkClassToDocument()\n } else {\n removeDarkClassFromDocument()\n }\n }\n\n // update global store\n store.dispatch.darkTheme.update(theme)\n}\n\nexport const setTheme = (theme: string) => {\n setJSONItem('phone-island-theme-selected', { themeSelected: theme })\n checkDarkTheme()\n eventDispatch('phone-island-theme-changed', {})\n}\n"],"names":["addDarkClassToDocument","document","documentElement","classList","add","removeDarkClassFromDocument","remove","checkDarkTheme","preferences","getJSONItem","theme","themeSelected","window","matchMedia","matches","store","dispatch","darkTheme","update","setJSONItem","eventDispatch"],"mappings":"4PAMMA,EAAyB,WAC7BC,SAASC,gBAAgBC,UAAUC,IAAI,UACzC,EAEMC,EAA8B,WAClCJ,SAASC,gBAAgBC,UAAUG,OAAO,UAC5C,EAKaC,EAAiB,WAC5B,IAAMC,EAAcC,EAAAA,YAAY,gCAAkC,CAAA,EAC9DC,EAAQ,SAEsB,SAA9BF,EAAYG,eACdD,EAAQ,OACRV,KACuC,UAA9BQ,EAAYG,eACrBD,EAAQ,QACRL,KAGIO,OAAOC,WAAW,gCAAgCC,QACpDd,IAEAK,IAKJU,EAAAA,MAAMC,SAASC,UAAUC,OAAOR,EAClC,4CAEwB,SAACA,GACvBS,EAAAA,YAAY,8BAA+B,CAAER,cAAeD,IAC5DH,IACAa,gBAAc,6BAA8B,CAAA,EAC9C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0})
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("mic-check"),i=require("../webrtc/janus.js"),r=require("../../store/index.js"),t=require("../user/default_device.js");require("react");var n=require("../../utils/genericFunctions/localStorage.js");require("tslib");var o=i.default;exports.checkMediaPermissions=function(){if(t.isPhysical())return r.store.dispatch.alerts.removeAlert("browser_permissions"),r.store.dispatch.alerts.removeAlert("user_permissions"),r.store.dispatch.alerts.removeAlert("busy_camera"),void r.store.dispatch.alerts.removeAlert("unknown_media_permissions");e.requestMediaPermissions({audio:!0}).then((function(){})).catch((function(i){var t,n,s=i.type,d=null!==(n=((t={})[e.MediaPermissionsErrorType.SystemPermissionDenied]={alert:"browser_permissions",message:"WebRTC: browser does not have permission to access camera or microphone"},t[e.MediaPermissionsErrorType.UserPermissionDenied]={alert:"user_permissions",message:"WebRTC: user didn't allow app to access camera or microphone"},t)[s])&&void 0!==n?n:{alert:"unknown_media_permissions",message:"WebRTC: can't access audio or camera on this device. unknown error"};r.store.dispatch.alerts.setAlert(d.alert),o.error&&o.error(d.message)}))},exports.checkWebCamPermission=function(){return new Promise((function(i){e.requestMediaPermissions({video:!0}).then((function(){i(!0)})).catch((function(e){console.error("Error requesting webcam permission:",e),i(!1)}))}))},exports.getCurrentAudioInputDeviceId=function(){var e=n.getJSONItem("phone-island-audio-input-device").deviceId||null,i=r.store.select.mediaDevices.audioInputDevices(r.store.getState());if(i.find((function(i){return i.deviceId===e})))return e;var t=i.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||i[0],o=t?t.deviceId:"default";return null!==e&&o!==e&&(console.warn("Audio input device ".concat(e," no longer available, falling back to default device")),n.setJSONItem("phone-island-audio-input-device",{deviceId:o})),o},exports.getCurrentAudioOutputDeviceId=function(){var e=n.getJSONItem("phone-island-audio-output-device").deviceId||null,i=r.store.select.mediaDevices.audioOutputDevices(r.store.getState());if(i.find((function(i){return i.deviceId===e})))return e;var t=i.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||i[0],o=t?t.deviceId:"default";return null!==e&&o!==e&&(console.warn("Audio output device ".concat(e," no longer available, falling back to default device")),n.setJSONItem("phone-island-audio-output-device",{deviceId:o})),o},exports.getCurrentVideoInputDeviceId=function(){var e=n.getJSONItem("phone-island-video-input-device").deviceId||null,i=r.store.select.mediaDevices.videoInputDevices(r.store.getState());if(i.find((function(i){return i.deviceId===e})))return e;var t=i.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||i[0],o=t?t.deviceId:"default";return null!==e&&o!==e&&(console.warn("Video input device ".concat(e," no longer available, falling back to default device")),n.setJSONItem("phone-island-video-input-device",{deviceId:o})),o},exports.getSupportedDevices=function(e){var i,r,t=!1,n=!1,s=!1,d=!1;i=function(){var i={audio:t,audioCap:s,video:n,videoCap:d};o.log&&o.log("supportedDevices=",i),e()},r=[],navigator.mediaDevices.enumerateDevices().then((function(e){e.forEach((function(e){var i=!1;r.forEach((function(r){r.deviceId===e.deviceId&&r.kind===e.kind&&(i=!0)})),i||("videoinput"!==e.kind||d||(d=!0),"audioinput"!==e.kind||s||(s=!0),"audioinput"===e.kind&&(t=!0),e.kind,"videoinput"===e.kind&&(n=!0),r.push(e))})),i&&i()}))};
|
|
2
2
|
//# sourceMappingURL=devices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sources":["../../../src/lib/devices/devices.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport {\n MediaPermissionsError,\n MediaPermissionsErrorType,\n requestMediaPermissions,\n} from 'mic-check'\nimport JanusLib from '../webrtc/janus'\nimport { JanusTypes } from '../../types'\nimport { store } from '../../store'\nimport { isPhysical } from '../user/default_device'\nimport { getJSONItem, setJSONItem } from '../../utils'\nimport { eventDispatch} from '../../utils/genericFunctions/eventDispatch'\n\nconst Janus: JanusTypes = JanusLib\n\nexport const getSupportedDevices = function (origCallback: () => void) {\n let hasMicrophone = false\n let hasSpeakers = false\n let hasWebcam = false\n let isMicrophoneAlreadyCaptured = false\n let isWebcamAlreadyCaptured = false\n\n function checkDeviceSupport(callback: () => void) {\n const mediaDevices: MediaDeviceInfo[] = []\n\n navigator.mediaDevices.enumerateDevices().then((devices: MediaDeviceInfo[]) => {\n devices.forEach(function (device: MediaDeviceInfo) {\n let skip = false\n\n mediaDevices.forEach(function (d: MediaDeviceInfo) {\n if (d.deviceId === device.deviceId && d.kind === device.kind) {\n skip = true\n }\n })\n\n if (skip) {\n return\n }\n\n if (device.kind === 'videoinput' && !isWebcamAlreadyCaptured) {\n isWebcamAlreadyCaptured = true\n }\n if (device.kind === 'audioinput' && !isMicrophoneAlreadyCaptured) {\n isMicrophoneAlreadyCaptured = true\n }\n\n if (device.kind === 'audioinput') {\n hasMicrophone = true\n }\n\n if (device.kind === 'audiooutput') {\n hasSpeakers = true\n }\n\n if (device.kind === 'videoinput') {\n hasWebcam = true\n }\n\n mediaDevices.push(device)\n })\n\n if (callback) {\n callback()\n }\n })\n }\n\n // check for microphone/camera support!\n checkDeviceSupport(function () {\n const supportedDevices: any = {\n audio: hasMicrophone,\n audioCap: isMicrophoneAlreadyCaptured,\n video: hasWebcam,\n videoCap: isWebcamAlreadyCaptured,\n }\n\n Janus.log && Janus.log('supportedDevices=', supportedDevices)\n origCallback()\n })\n}\n\nexport const checkMediaPermissions = function () {\n //Remove all media alerts if default_device is physical\n if (isPhysical()) {\n store.dispatch.alerts.removeAlert('browser_permissions')\n store.dispatch.alerts.removeAlert('user_permissions')\n store.dispatch.alerts.removeAlert('busy_camera')\n store.dispatch.alerts.removeAlert('unknown_media_permissions')\n return\n }\n\n requestMediaPermissions({ audio: true })\n .then(() => {\n // Can successfully access camera and microphone streams\n // Save permissions state on rematch to get access globally on the app\n })\n .catch((err: any) => {\n const { type } = err\n\n // Define error mappings for different types of media permission errors\n const errorMap: any = {\n [MediaPermissionsErrorType.SystemPermissionDenied]: {\n alert: 'browser_permissions',\n message: 'WebRTC: browser does not have permission to access camera or microphone',\n },\n [MediaPermissionsErrorType.UserPermissionDenied]: {\n alert: 'user_permissions',\n message: \"WebRTC: user didn't allow app to access camera or microphone\",\n },\n }\n\n // Get error details from map or use default error\n const error = errorMap[type] ?? {\n alert: 'unknown_media_permissions',\n message: \"WebRTC: can't access audio or camera on this device. unknown error\",\n }\n\n // Display alert only for non-physical devices\n store.dispatch.alerts.setAlert(error.alert)\n\n // Log error message if Janus logger is available\n if (Janus.error) {\n Janus.error(error.message)\n }\n })\n}\n\nexport const checkWebCamPermission = function (): Promise<boolean> {\n return new Promise((resolve) => {\n requestMediaPermissions({ video: true })\n .then(() => {\n resolve(true)\n })\n .catch((err: any) => {\n console.error('Error requesting webcam permission:', err)\n resolve(false)\n })\n })\n}\n\nexport const getCurrentVideoInputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-video-input-device').deviceId || null\n const videoInputDevices = store.select.mediaDevices.videoInputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = videoInputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = videoInputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || videoInputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Video input device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-video-input-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n\nexport const getCurrentAudioInputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-audio-input-device').deviceId || null\n const audioInputDevices = store.select.mediaDevices.audioInputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = audioInputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = audioInputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || audioInputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Audio input device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-audio-input-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n\nexport const getCurrentAudioOutputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-audio-output-device').deviceId || null\n const audioOutputDevices = store.select.mediaDevices.audioOutputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = audioOutputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = audioOutputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || audioOutputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Audio output device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-audio-output-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n"],"names":["Janus","JanusLib","isPhysical","store","dispatch","alerts","removeAlert","requestMediaPermissions","audio","then","catch","err","type","error","_b","_a","MediaPermissionsErrorType","SystemPermissionDenied","alert","message","UserPermissionDenied","setAlert","Promise","resolve","video","console","currentDeviceId","getJSONItem","deviceId","audioInputDevices","select","mediaDevices","getState","find","device","defaultDevice","fallbackDeviceId","warn","setJSONItem","audioOutputDevices","videoInputDevices","origCallback","callback","hasMicrophone","hasWebcam","isMicrophoneAlreadyCaptured","isWebcamAlreadyCaptured","supportedDevices","audioCap","videoCap","log","navigator","enumerateDevices","devices","forEach","skip","d","kind","push"],"mappings":"gZAeMA,EAAoBC,EAAAA,sCAoEW,WAEnC,GAAIC,EAAUA,aAKZ,OAJAC,EAAAA,MAAMC,SAASC,OAAOC,YAAY,uBAClCH,EAAAA,MAAMC,SAASC,OAAOC,YAAY,oBAClCH,EAAAA,MAAMC,SAASC,OAAOC,YAAY,oBAClCH,EAAAA,MAAMC,SAASC,OAAOC,YAAY,6BAIpCC,oCAAwB,CAAEC,OAAO,IAC9BC,MAAK,WAGN,IACCC,OAAM,SAACC,WACEC,EAASD,EAAGC,KAedC,EAA0B,QAAlBC,IAZAC,EAAA,CAAA,GACXC,EAAAA,UAAAA,0BAA0BC,wBAAyB,CAClDC,MAAO,sBACPC,QAAS,2EAEXJ,EAACC,EAAAA,UAAAA,0BAA0BI,sBAAuB,CAChDF,MAAO,mBACPC,QAAS,mEAKUP,UAAS,IAAAE,EAAAA,EAAA,CAC9BI,MAAO,4BACPC,QAAS,sEAIXhB,EAAKA,MAACC,SAASC,OAAOgB,SAASR,EAAMK,OAGjClB,EAAMa,OACRb,EAAMa,MAAMA,EAAMM,QAEtB,GACJ,gCAEqC,WACnC,OAAO,IAAIG,SAAQ,SAACC,GAClBhB,oCAAwB,CAAEiB,OAAO,IAC9Bf,MAAK,WACJc,GAAQ,EACV,IACCb,OAAM,SAACC,GACNc,QAAQZ,MAAM,sCAAuCF,GACrDY,GAAQ,EACV,GACJ,GACF,uCA0B4C,WAC1C,IAAMG,EAAkBC,EAAWA,YAAC,mCAAmCC,UAAY,KAC7EC,EAAoB1B,EAAKA,MAAC2B,OAAOC,aAAaF,kBAAkB1B,EAAKA,MAAC6B,YAK5E,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AQlE,OANwB,OAApBF,GAA4BU,IAAqBV,IACnDD,QAAQY,KAAK,6BAAsBX,EAAe,yDAElDY,EAAAA,YAAY,kCAAmC,CAAEV,SAAUQ,KAGtDA,CAEX,8BAnJmC,SAAUK,GAC3C,IAM4BC,EACpBX,EAPJY,GAAgB,EAEhBC,GAAY,EACZC,GAA8B,EAC9BC,GAA0B,EAEFJ,EA8CT,WACjB,IAAMK,EAAwB,CAC5BvC,MAAOmC,EACPK,SAAUH,EACVrB,MAAOoB,EACPK,SAAUH,GAGZ9C,EAAMkD,KAAOlD,EAAMkD,IAAI,oBAAqBH,GAC5CN,GACF,EAvDQV,EAAkC,GAExCoB,UAAUpB,aAAaqB,mBAAmB3C,MAAK,SAAC4C,GAC9CA,EAAQC,SAAQ,SAAUpB,GACxB,IAAIqB,GAAO,EAEXxB,EAAauB,SAAQ,SAAUE,GACzBA,EAAE5B,WAAaM,EAAON,UAAY4B,EAAEC,OAASvB,EAAOuB,OACtDF,GAAO,EAEX,IAEIA,IAIgB,eAAhBrB,EAAOuB,MAA0BX,IACnCA,GAA0B,GAER,eAAhBZ,EAAOuB,MAA0BZ,IACnCA,GAA8B,GAGZ,eAAhBX,EAAOuB,OACTd,GAAgB,GAGdT,EAAOuB,KAIS,eAAhBvB,EAAOuB,OACTb,GAAY,GAGdb,EAAa2B,KAAKxB,GACpB,IAEIQ,GACFA,GAEJ,GAeJ"}
|
|
1
|
+
{"version":3,"file":"devices.js","sources":["../../../src/lib/devices/devices.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport {\n MediaPermissionsError,\n MediaPermissionsErrorType,\n requestMediaPermissions,\n} from 'mic-check'\nimport JanusLib from '../webrtc/janus'\nimport { JanusTypes } from '../../types'\nimport { store } from '../../store'\nimport { isPhysical } from '../user/default_device'\nimport { getJSONItem, setJSONItem } from '../../utils'\nimport { eventDispatch} from '../../utils/genericFunctions/eventDispatch'\n\nconst Janus: JanusTypes = JanusLib\n\nexport const getSupportedDevices = function (origCallback: () => void) {\n let hasMicrophone = false\n let hasSpeakers = false\n let hasWebcam = false\n let isMicrophoneAlreadyCaptured = false\n let isWebcamAlreadyCaptured = false\n\n function checkDeviceSupport(callback: () => void) {\n const mediaDevices: MediaDeviceInfo[] = []\n\n navigator.mediaDevices.enumerateDevices().then((devices: MediaDeviceInfo[]) => {\n devices.forEach(function (device: MediaDeviceInfo) {\n let skip = false\n\n mediaDevices.forEach(function (d: MediaDeviceInfo) {\n if (d.deviceId === device.deviceId && d.kind === device.kind) {\n skip = true\n }\n })\n\n if (skip) {\n return\n }\n\n if (device.kind === 'videoinput' && !isWebcamAlreadyCaptured) {\n isWebcamAlreadyCaptured = true\n }\n if (device.kind === 'audioinput' && !isMicrophoneAlreadyCaptured) {\n isMicrophoneAlreadyCaptured = true\n }\n\n if (device.kind === 'audioinput') {\n hasMicrophone = true\n }\n\n if (device.kind === 'audiooutput') {\n hasSpeakers = true\n }\n\n if (device.kind === 'videoinput') {\n hasWebcam = true\n }\n\n mediaDevices.push(device)\n })\n\n if (callback) {\n callback()\n }\n })\n }\n\n // check for microphone/camera support!\n checkDeviceSupport(function () {\n const supportedDevices: any = {\n audio: hasMicrophone,\n audioCap: isMicrophoneAlreadyCaptured,\n video: hasWebcam,\n videoCap: isWebcamAlreadyCaptured,\n }\n\n Janus.log && Janus.log('supportedDevices=', supportedDevices)\n origCallback()\n })\n}\n\nexport const checkMediaPermissions = function () {\n //Remove all media alerts if default_device is physical\n if (isPhysical()) {\n store.dispatch.alerts.removeAlert('browser_permissions')\n store.dispatch.alerts.removeAlert('user_permissions')\n store.dispatch.alerts.removeAlert('busy_camera')\n store.dispatch.alerts.removeAlert('unknown_media_permissions')\n return\n }\n\n requestMediaPermissions({ audio: true })\n .then(() => {\n // Can successfully access camera and microphone streams\n // Save permissions state on rematch to get access globally on the app\n })\n .catch((err: any) => {\n const { type } = err\n\n // Define error mappings for different types of media permission errors\n const errorMap: any = {\n [MediaPermissionsErrorType.SystemPermissionDenied]: {\n alert: 'browser_permissions',\n message: 'WebRTC: browser does not have permission to access camera or microphone',\n },\n [MediaPermissionsErrorType.UserPermissionDenied]: {\n alert: 'user_permissions',\n message: \"WebRTC: user didn't allow app to access camera or microphone\",\n },\n }\n\n // Get error details from map or use default error\n const error = errorMap[type] ?? {\n alert: 'unknown_media_permissions',\n message: \"WebRTC: can't access audio or camera on this device. unknown error\",\n }\n\n // Display alert only for non-physical devices\n store.dispatch.alerts.setAlert(error.alert)\n\n // Log error message if Janus logger is available\n if (Janus.error) {\n Janus.error(error.message)\n }\n })\n}\n\nexport const checkWebCamPermission = function (): Promise<boolean> {\n return new Promise((resolve) => {\n requestMediaPermissions({ video: true })\n .then(() => {\n resolve(true)\n })\n .catch((err: any) => {\n console.error('Error requesting webcam permission:', err)\n resolve(false)\n })\n })\n}\n\nexport const getCurrentVideoInputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-video-input-device').deviceId || null\n const videoInputDevices = store.select.mediaDevices.videoInputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = videoInputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = videoInputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || videoInputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Video input device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-video-input-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n\nexport const getCurrentAudioInputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-audio-input-device').deviceId || null\n const audioInputDevices = store.select.mediaDevices.audioInputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = audioInputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = audioInputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || audioInputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Audio input device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-audio-input-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n\nexport const getCurrentAudioOutputDeviceId = function () {\n const currentDeviceId = getJSONItem('phone-island-audio-output-device').deviceId || null\n const audioOutputDevices = store.select.mediaDevices.audioOutputDevices(store.getState())\n\n // Check if the current device is still available\n const deviceFound = audioOutputDevices.find((device) => device.deviceId === currentDeviceId)\n\n if (deviceFound) {\n return currentDeviceId\n } else {\n // Fallback to default device\n const defaultDevice = audioOutputDevices.find(device => device.deviceId === 'default' || device.deviceId === '') || audioOutputDevices[0]\n const fallbackDeviceId = defaultDevice ? defaultDevice.deviceId : 'default'\n\n if (currentDeviceId !== null && fallbackDeviceId !== currentDeviceId) {\n console.warn(`Audio output device ${currentDeviceId} no longer available, falling back to default device`)\n // Update localStorage with the fallback device\n setJSONItem('phone-island-audio-output-device', { deviceId: fallbackDeviceId })\n }\n\n return fallbackDeviceId\n }\n}\n"],"names":["Janus","JanusLib","isPhysical","store","dispatch","alerts","removeAlert","requestMediaPermissions","audio","then","catch","err","type","error","_b","_a","MediaPermissionsErrorType","SystemPermissionDenied","alert","message","UserPermissionDenied","setAlert","Promise","resolve","video","console","currentDeviceId","getJSONItem","deviceId","audioInputDevices","select","mediaDevices","getState","find","device","defaultDevice","fallbackDeviceId","warn","setJSONItem","audioOutputDevices","videoInputDevices","origCallback","callback","hasMicrophone","hasWebcam","isMicrophoneAlreadyCaptured","isWebcamAlreadyCaptured","supportedDevices","audioCap","videoCap","log","navigator","enumerateDevices","devices","forEach","skip","d","kind","push"],"m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8CT,WACjB,IAAMK,EAAwB,CAC5BvC,MAAOmC,EACPK,SAAUH,EACVrB,MAAOoB,EACPK,SAAUH,GAGZ9C,EAAMkD,KAAOlD,EAAMkD,IAAI,oBAAqBH,GAC5CN,GACF,EAvDQV,EAAkC,GAExCoB,UAAUpB,aAAaqB,mBAAmB3C,MAAK,SAAC4C,GAC9CA,EAAQC,SAAQ,SAAUpB,GACxB,IAAIqB,GAAO,EAEXxB,EAAauB,SAAQ,SAAUE,GACzBA,EAAE5B,WAAaM,EAAON,UAAY4B,EAAEC,OAASvB,EAAOuB,OACtDF,GAAO,EAEX,IAEIA,IAIgB,eAAhBrB,EAAOuB,MAA0BX,IACnCA,GAA0B,GAER,eAAhBZ,EAAOuB,MAA0BZ,IACnCA,GAA8B,GAGZ,eAAhBX,EAAOuB,OACTd,GAAgB,GAGdT,EAAOuB,KAIS,eAAhBvB,EAAOuB,OACTb,GAAY,GAGdb,EAAa2B,KAAKxB,GACpB,IAEIQ,GACFA,GAEJ,GAeJ"}
|
package/dist/lib/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("i18next"),t=require("react-i18next"),n=require("i18next-browser-languagedetector"),r=require("../public/locales/en/translation.json.js"),a=require("../public/locales/it/translation.json.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),u=i(n),o=!1;s.default.createInstance(),exports.initI18n=function(){if(o)return Promise.resolve();var e={resources:{en:{translations:r.default},it:{translations:a.default}},fallbackLng:"en",ns:["translations"],defaultNS:"translations",interpolation:{escapeValue:!1},detection:{order:["navigator"]},react:{useSuspense:!1},supportedLngs:["en","it"]};return o=!0,s.default.use(u.default).use(t.initReactI18next).init(e)};
|
|
2
2
|
//# sourceMappingURL=i18n.js.map
|
package/dist/lib/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sources":["../../src/lib/i18n.ts"],"sourcesContent":["import i18next from 'i18next'\nimport { initReactI18next } from 'react-i18next'\nimport LanguageDetector from 'i18next-browser-languagedetector'\nimport en from '../../public/locales/en/translation.json'\nimport it from '../../public/locales/it/translation.json'\n\nlet isInitialized = false\n\nexport const initI18n = () => {\n if (isInitialized) {\n return Promise.resolve()\n }\n\n const i18nConfig = {\n resources: {\n en: { translations: en },\n it: { translations: it }\n },\n fallbackLng: 'en',\n ns: ['translations'],\n defaultNS: 'translations',\n interpolation: {\n escapeValue: false\n },\n detection: {\n order: ['navigator']\n },\n react: {\n useSuspense: false\n },\n supportedLngs: ['en', 'it']\n }\n\n isInitialized = true\n return i18next\n .use(LanguageDetector)\n .use(initReactI18next)\n .init(i18nConfig)\n}\n\nexport default i18next.createInstance()\n"],"names":["isInitialized","i18next","createInstance","Promise","resolve","i18nConfig","resources","en","translations","it","fallbackLng","ns","defaultNS","interpolation","escapeValue","detection","order","react","useSuspense","supportedLngs","use","LanguageDetector","initReactI18next","init"],"mappings":"
|
|
1
|
+
{"version":3,"file":"i18n.js","sources":["../../src/lib/i18n.ts"],"sourcesContent":["import i18next from 'i18next'\nimport { initReactI18next } from 'react-i18next'\nimport LanguageDetector from 'i18next-browser-languagedetector'\nimport en from '../../public/locales/en/translation.json'\nimport it from '../../public/locales/it/translation.json'\n\nlet isInitialized = false\n\nexport const initI18n = () => {\n if (isInitialized) {\n return Promise.resolve()\n }\n\n const i18nConfig = {\n resources: {\n en: { translations: en },\n it: { translations: it }\n },\n fallbackLng: 'en',\n ns: ['translations'],\n defaultNS: 'translations',\n interpolation: {\n escapeValue: false\n },\n detection: {\n order: ['navigator']\n },\n react: {\n useSuspense: false\n },\n supportedLngs: ['en', 'it']\n }\n\n isInitialized = true\n return i18next\n .use(LanguageDetector)\n .use(initReactI18next)\n .init(i18nConfig)\n}\n\nexport default i18next.createInstance()\n"],"names":["isInitialized","i18next","createInstance","Promise","resolve","i18nConfig","resources","en","translations","it","fallbackLng","ns","defaultNS","interpolation","escapeValue","detection","order","react","useSuspense","supportedLngs","use","LanguageDetector","initReactI18next","init"],"mappings":"4WAMIA,GAAgB,EAkCLC,EAAO,QAACC,kCAhCC,WACtB,GAAIF,EACF,OAAOG,QAAQC,UAGjB,IAAMC,EAAa,CACjBC,UAAW,CACTC,GAAI,CAAEC,aAAcD,WACpBE,GAAI,CAAED,aAAcC,YAEtBC,YAAa,KACbC,GAAI,CAAC,gBACLC,UAAW,eACXC,cAAe,CACbC,aAAa,GAEfC,UAAW,CACTC,MAAO,CAAC,cAEVC,MAAO,CACLC,aAAa,GAEfC,cAAe,CAAC,KAAM,OAIxB,OADAnB,GAAgB,EACTC,EAAO,QACXmB,IAAIC,EAAAA,SACJD,IAAIE,EAAAA,kBACJC,KAAKlB,EACV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../store/index.js");require("react");var t=require("../../utils/genericFunctions/eventDispatch.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../store/index.js");require("react");var t=require("../../utils/genericFunctions/eventDispatch.js");require("tslib"),exports.backToPreviousView=function(){var i=e.store.getState().island,s=i.view,r=i.previousView;t.eventDispatch("phone-island-call-".concat(s,"-closed"),{}),e.store.dispatch.island.setIslandView("".concat(r||"call"))},exports.xPosition=function(e,t,i){var s=i.offsetWidth/2-t.offsetWidth/2;return e>0&&e>s?s:e<0&&e<-s?-s:e},exports.yPosition=function(e,t,i){var s=i.offsetHeight/2-t.offsetHeight/2;return e>0&&e>s?s:e<0&&e<-s?-s:e};
|
|
2
2
|
//# sourceMappingURL=island.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"island.js","sources":["../../../src/lib/island/island.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../../store'\nimport { eventDispatch } from '../../utils'\n\n/**\n * Retrieve the position on x axis\n */\nexport function xPosition(x: number, islandElement: HTMLElement, containerElement: HTMLElement) {\n // Get horizontal constraints\n const xConstraintPosition = containerElement.offsetWidth / 2 - islandElement.offsetWidth / 2\n // Return the X position inside the constraints\n return x > 0 && x > xConstraintPosition\n ? xConstraintPosition\n : x < 0 && x < -xConstraintPosition\n ? -xConstraintPosition\n : x\n}\n\n/**\n * Retrieve the position on y axis\n */\nexport function yPosition(y: number, islandElement: HTMLElement, containerElement: HTMLElement) {\n // Get vertical constraints\n const yConstraintPosition = containerElement.offsetHeight / 2 - islandElement.offsetHeight / 2\n // Return the Y position inside the constraints\n return y > 0 && y > yConstraintPosition\n ? yConstraintPosition\n : y < 0 && y < -yConstraintPosition\n ? -yConstraintPosition\n : y\n}\n\n/**\n * Go back to the previous view\n */\nexport function backToPreviousView() {\n const { view, previousView } = store.getState().island\n eventDispatch(`phone-island-call-${view}-closed`, {})\n store.dispatch.island.setIslandView(`${previousView || 'call'}`)\n}\n"],"names":["_a","store","getState","island","view","previousView","eventDispatch","concat","dispatch","setIslandView","x","islandElement","containerElement","xConstraintPosition","offsetWidth","y","yConstraintPosition","offsetHeight"],"mappings":"
|
|
1
|
+
{"version":3,"file":"island.js","sources":["../../../src/lib/island/island.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../../store'\nimport { eventDispatch } from '../../utils'\n\n/**\n * Retrieve the position on x axis\n */\nexport function xPosition(x: number, islandElement: HTMLElement, containerElement: HTMLElement) {\n // Get horizontal constraints\n const xConstraintPosition = containerElement.offsetWidth / 2 - islandElement.offsetWidth / 2\n // Return the X position inside the constraints\n return x > 0 && x > xConstraintPosition\n ? xConstraintPosition\n : x < 0 && x < -xConstraintPosition\n ? -xConstraintPosition\n : x\n}\n\n/**\n * Retrieve the position on y axis\n */\nexport function yPosition(y: number, islandElement: HTMLElement, containerElement: HTMLElement) {\n // Get vertical constraints\n const yConstraintPosition = containerElement.offsetHeight / 2 - islandElement.offsetHeight / 2\n // Return the Y position inside the constraints\n return y > 0 && y > yConstraintPosition\n ? yConstraintPosition\n : y < 0 && y < -yConstraintPosition\n ? -yConstraintPosition\n : y\n}\n\n/**\n * Go back to the previous view\n */\nexport function backToPreviousView() {\n const { view, previousView } = store.getState().island\n eventDispatch(`phone-island-call-${view}-closed`, {})\n store.dispatch.island.setIslandView(`${previousView || 'call'}`)\n}\n"],"names":["_a","store","getState","island","view","previousView","eventDispatch","concat","dispatch","setIslandView","x","islandElement","containerElement","xConstraintPosition","offsetWidth","y","yConstraintPosition","offsetHeight"],"mappings":"iPAsCQ,IAAAA,EAAyBC,EAAAA,MAAMC,WAAWC,OAAxCC,EAAIJ,EAAAI,KAAEC,iBACdC,EAAaA,cAAC,qBAAqBC,OAAAH,aAAe,CAAA,GAClDH,QAAMO,SAASL,OAAOM,cAAc,GAAAF,OAAGF,GAAgB,QACzD,6BAhC0BK,EAAWC,EAA4BC,GAE/D,IAAMC,EAAsBD,EAAiBE,YAAc,EAAIH,EAAcG,YAAc,EAE3F,OAAOJ,EAAI,GAAKA,EAAIG,EAChBA,EACAH,EAAI,GAAKA,GAAKG,GACbA,EACDH,CACN,6BAK0BK,EAAWJ,EAA4BC,GAE/D,IAAMI,EAAsBJ,EAAiBK,aAAe,EAAIN,EAAcM,aAAe,EAE7F,OAAOF,EAAI,GAAKA,EAAIC,EAChBA,EACAD,EAAI,GAAKA,GAAKC,GACbA,EACDD,CACN"}
|
package/dist/lib/phone/audio.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("../../store/index.js");exports.updateAudioPlayerSource=function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,new Promise((function(e,o){var a,i,n,d;try{null===(i=null===(a=r.store.getState().player.audioPlayer)||void 0===a?void 0:a.current)||void 0===i||i.addEventListener("canplaythrough",(function t(){var o,a;null===(a=null===(o=r.store.getState().player.audioPlayer)||void 0===o?void 0:o.current)||void 0===a||a.removeEventListener("canplaythrough",t),e(!0)})),null===(d=null===(n=r.store.getState().player.audioPlayer)||void 0===n?void 0:n.current)||void 0===d||d.addEventListener("loadedmetadata",(function e(){var t,o,a,i,n=null===(o=null===(t=r.store.getState().player.audioPlayer)||void 0===t?void 0:t.current)||void 0===o?void 0:o.duration;n&&r.store.dispatch.player.updateAudioPlayerTrackDuration(n),null===(i=null===(a=r.store.getState().player.audioPlayer)||void 0===a?void 0:a.current)||void 0===i||i.removeEventListener("loadedmetadata",e)})),r.store.dispatch.player.updateAudioPlayerSrc(t)}catch(e){console.error(e),o(e)}}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=audio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.js","sources":["../../../src/lib/phone/audio.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../../store'\n\n/**\n * Manages the audio update action\n */\nexport async function updateAudioPlayerSource(payload: string) {\n return new Promise((resolve, reject) => {\n function canPlayCb() {\n store.getState().player.audioPlayer?.current?.removeEventListener('canplaythrough', canPlayCb)\n resolve(true)\n }\n function loadedMetadata() {\n const trackDuration = store.getState().player.audioPlayer?.current?.duration\n trackDuration && store.dispatch.player.updateAudioPlayerTrackDuration(trackDuration)\n store\n .getState()\n .player.audioPlayer?.current?.removeEventListener('loadedmetadata', loadedMetadata)\n }\n try {\n // Event handlers must be set before updating the audio source of the element\n // Add event listener for canplaythrough event\n store.getState().player.audioPlayer?.current?.addEventListener('canplaythrough', canPlayCb)\n // Add event listener for onloadedmetadata event\n store\n .getState()\n .player.audioPlayer?.current?.addEventListener('loadedmetadata', loadedMetadata)\n // Update the audio player source\n store.dispatch.player.updateAudioPlayerSrc(payload)\n } catch (err) {\n console.error(err)\n reject(err)\n }\n })\n}\n"],"names":["payload","Promise","resolve","reject","_b","store","getState","player","audioPlayer","_a","current","addEventListener","canPlayCb","removeEventListener","_d","_c","loadedMetadata","trackDuration","duration","dispatch","updateAudioPlayerTrackDuration","updateAudioPlayerSrc","err","console","error"],"mappings":"
|
|
1
|
+
{"version":3,"file":"audio.js","sources":["../../../src/lib/phone/audio.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../../store'\n\n/**\n * Manages the audio update action\n */\nexport async function updateAudioPlayerSource(payload: string) {\n return new Promise((resolve, reject) => {\n function canPlayCb() {\n store.getState().player.audioPlayer?.current?.removeEventListener('canplaythrough', canPlayCb)\n resolve(true)\n }\n function loadedMetadata() {\n const trackDuration = store.getState().player.audioPlayer?.current?.duration\n trackDuration && store.dispatch.player.updateAudioPlayerTrackDuration(trackDuration)\n store\n .getState()\n .player.audioPlayer?.current?.removeEventListener('loadedmetadata', loadedMetadata)\n }\n try {\n // Event handlers must be set before updating the audio source of the element\n // Add event listener for canplaythrough event\n store.getState().player.audioPlayer?.current?.addEventListener('canplaythrough', canPlayCb)\n // Add event listener for onloadedmetadata event\n store\n .getState()\n .player.audioPlayer?.current?.addEventListener('loadedmetadata', loadedMetadata)\n // Update the audio player source\n store.dispatch.player.updateAudioPlayerSrc(payload)\n } catch (err) {\n console.error(err)\n reject(err)\n }\n })\n}\n"],"names":["payload","Promise","resolve","reject","_b","store","getState","player","audioPlayer","_a","current","addEventListener","canPlayCb","removeEventListener","_d","_c","loadedMetadata","trackDuration","duration","dispatch","updateAudioPlayerTrackDuration","updateAudioPlayerSrc","err","console","error"],"mappings":"6JAQM,SAAwCA,4FAC5C,MAAA,CAAA,EAAO,IAAIC,SAAQ,SAACC,EAASC,eAY3B,YAGEC,EAAqC,UAArCC,EAAAA,MAAMC,WAAWC,OAAOC,mBAAa,IAAAC,OAAA,EAAAA,EAAAC,wBAASC,iBAAiB,kBAdjE,SAASC,oBACPR,EAAqC,UAArCC,EAAAA,MAAMC,WAAWC,OAAOC,mBAAa,IAAAC,OAAA,EAAAA,EAAAC,wBAASG,oBAAoB,iBAAkBD,GACpFV,GAAQ,EACT,IAe+B,QAF9BY,EAEqB,UAFrBT,EAAKA,MACFC,WACAC,OAAOC,mBAAW,IAAAO,OAAA,EAAAA,EAAEL,eAAO,IAAAI,GAAAA,EAAEH,iBAAiB,kBAdnD,SAASK,gBACDC,EAA4D,QAA5Cb,EAAmC,QAAnCK,EAAAJ,EAAAA,MAAMC,WAAWC,OAAOC,mBAAW,IAAAC,OAAA,EAAAA,EAAEC,eAAO,IAAAN,OAAA,EAAAA,EAAEc,SACpED,GAAiBZ,EAAKA,MAACc,SAASZ,OAAOa,+BAA+BH,GAGxC,QAF9BH,EAEqB,UAFrBT,EAAKA,MACFC,WACAC,OAAOC,mBAAW,IAAAO,OAAA,EAAAA,EAAEL,eAAO,IAAAI,GAAAA,EAAED,oBAAoB,iBAAkBG,EACvE,IAUCX,EAAAA,MAAMc,SAASZ,OAAOc,qBAAqBrB,EAC5C,CAAC,MAAOsB,GACPC,QAAQC,MAAMF,GACdnB,EAAOmB,EACR,CACF,UACF"}
|
package/dist/lib/phone/call.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),t=require("../webrtc/messages.js"),r=require("../../store/index.js"),n=require("../user/default_device.js"),s=require("../../services/astproxy.js"),o=require("../../static/dtmf/index.js");require("react");var i=require("../../utils/genericFunctions/eventDispatch.js"),a=require("../../services/user.js"),c=require("../../utils/genericFunctions/isEmpty.js"),u=require("../../utils/streaming/getStreamingSourceId.js");function l(){var e=r.store.getState().currentCall,o=e.outgoing,c=e.accepted,l=e.streamingSourceNumber,d=r.store.getState().island.isFromStreaming;if(o||c){if(n.isWebRTC()?t.hangup():s.hangupPhysical(),r.store.dispatch.player.stopAudioPlayer(),r.store.dispatch.currentCall.reset(),r.store.dispatch.listen.reset(),d&&l){var p=u.getStreamingSourceId(l);p&&(a.unsubscribe({id:p}).then((function(){return console.debug("Unsubscribed from streaming source: ".concat(p))})).catch((function(e){return console.error("Error unsubscribing from streaming source:",e)})),r.store.dispatch.streaming.clearSourceImages())}r.store.dispatch.island.setIsFromStreaming(!1)}r.store.dispatch.island.resetOperatorBusy(),i.eventDispatch("phone-island-call-ended",{})}function d(){n.isWebRTC()?t.unpauseWebRTC()&&(r.store.dispatch.currentCall.updateCurrentCall({paused:!1}),r.store.dispatch.player.playRemoteAudio()):s.pausePhysical(!1);i.eventDispatch("phone-island-call-unheld",{})}function p(t){return e.__awaiter(this,void 0,void 0,(function(){var n,o,i;return e.__generator(this,(function(e){switch(e.label){case 0:return n=r.store.getState().currentCall.conversationId,o=r.store.getState().currentUser.default_device,i=(null==o?void 0:o.id)||(null==o?void 0:o.exten),n&&i&&t?[4,s.attendedTransfer({convid:n,to:t,endpointId:i})]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))}function v(){var t;return e.__awaiter(this,void 0,void 0,(function(){var n,o,a,u,l,d,p,v,f,h,g,C,m,b;return e.__generator(this,(function(e){switch(e.label){case 0:if(n=null===(t=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===t?void 0:t.currentCall,o=n.accepted,a=n.chSource,u=n.chDest,l=n.incoming,d=n.outgoing,p=n.incomingSocket,v=n.outgoingSocket,f=n.conversationId,h=r.store.getState().currentUser.default_device,g=(null==h?void 0:h.id)||(null==h?void 0:h.exten),C="",o&&(l||p)&&!c.isEmpty(a)?C=null==a?void 0:a.callerNum:o&&(d||v)&&!c.isEmpty(u)&&(C=null==u?void 0:u.callerNum),""===g||""===f||""===C)return[3,4];if(!(m={convid:null==f?void 0:f.toString(),addEndpointId:null==C?void 0:C.toString(),ownerEndpointId:null==g?void 0:g.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.startConf(m)];case 2:return e.sent()?(r.store.dispatch.currentCall.updateCurrentCall({conferencing:!0,paused:!1}),i.eventDispatch("phone-island-call-conferenced",{}),[2,!0]):[2,!1];case 3:return b=e.sent(),console.error(b),[2,!1];case 4:return[2,!1]}}))}))}function f(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,o;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===(t=r.store.getState().conference.conferenceId))return[3,4];if(!(n={confId:null==t?void 0:t.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.endConf(n)];case 2:return e.sent()?(i.eventDispatch("phone-island-owner-conference-finished",{}),[2,!0]):[2,!1];case 3:return o=e.sent(),console.error(o),[2,!1];case 4:return[2,!1]}}))}))}var h=function(){return!!r.store.getState().island.isConferenceList},g=function(e,t){var n=r.store.getState(),s=n.currentUser.username,o=n.conference,a=o.isActive,c=o.isOwnerInside,u=o.conferenceId,d=n.users.extensions;!a&&s&&(t.conference.setConferenceActive(!0),t.conference.setConferenceStartedFrom(s));var p=d?Object.values(d).find((function(t){return t.exten===e})):null,v=(null==p?void 0:p.name)||e;t.conference.addPendingUser({id:"".concat(u,"-").concat(e),name:v,owner:!1,muted:!1,extenId:e,joinTime:Date.now()}),c&&(l(),t.conference.toggleIsOwnerInside(!1)),requestAnimationFrame((function(){setTimeout((function(){i.eventDispatch("phone-island-call-start",{number:e})}),1e3)}))};function C(t,r){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return d(),[4,p(t)];case 1:return e.sent()&&(r.currentCall.updateCurrentCall({transferring:!0,paused:!1}),requestAnimationFrame((function(){r.player.playRemoteAudio(),i.eventDispatch("phone-island-call-transfered",{})}))),[2]}}))}))}exports.answerIncomingCall=function(){n.isWebRTC()?t.answerWebRTC():s.answerPhysical(),r.store.dispatch.island.resetOperatorBusyCompletely()},exports.attendedTransfer=p,exports.blindTransferFunction=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){var o;return e.__generator(this,(function(e){switch(e.label){case 0:return(o=r.store.getState().currentCall.conversationId)&&n&&t?[4,s.blindTransfer({convid:o,to:t,endpointId:n})]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))},exports.callNumber=function(e,o){var a="sip:".concat(e,"@").concat(o);r.store.dispatch.island.resetOperatorBusy(),r.store.dispatch.island.setOperatorBusyCalledNumber(e),n.isWebRTC()?t.callSipURI(a):s.callPhysical(e),i.eventDispatch("phone-island-call-started",{})},exports.clickTransferOrConference=function(t,n){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return h()?r.store.getState().conference.isActive?[3,2]:[4,v()]:[3,3];case 1:if(!e.sent())return[2];e.label=2;case 2:return g(t,n),[3,4];case 3:C(t,n),e.label=4;case 4:return[2]}}))}))},exports.endConference=f,exports.forceHangupConversation=function(){var e=r.store.getState().currentUser.conversations,t=function(t){Object.keys(e[t]).forEach((function(e){s.forceHangup({convid:e,endpointId:t,endpointType:"extension"})}))};for(var n in e)t(n)},exports.handleAttendedTransfer=C,exports.hangupAllExtensions=function(){var e=r.store.getState().currentUser.conversations,t=function(t){Object.keys(e[t]).forEach((function(e){s.hangupConversation({convid:e,endpointId:t})}))};for(var n in e)t(n)},exports.hangupCurrentCall=l,exports.hangupCurrentPhysicalRecording=function(){s.hangupPhysicalRecordingCall(),r.store.dispatch.player.stopAudioPlayer(),r.store.dispatch.physicalRecorder.reset(),r.store.dispatch.physicalRecorder.setRecording(!1),r.store.dispatch.island.setIslandView(null),r.store.dispatch.listen.reset(),i.eventDispatch("phone-island-call-ended",{})},exports.isInsideConferenceList=h,exports.joinConference=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,o,a;return e.__generator(this,(function(e){switch(e.label){case 0:if(t=r.store.getState().currentUser.default_device,""===(n=(null==t?void 0:t.id)||(null==t?void 0:t.exten)))return[3,4];if(!(o={endpointId:null==n?void 0:n.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.joinMyConf(o)];case 2:return e.sent()?(i.eventDispatch("phone-island-owner-conference-enter",{}),[2,!0]):[2,!1];case 3:return a=e.sent(),console.error(a),[2,!1];case 4:return[2,!1]}}))}))},exports.muteAllUsersConference=function(t,n){var o;return e.__awaiter(this,void 0,void 0,(function(){var i,a,c,u,l,d,p,v;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===t)return[2,!1];if(!(i=r.store.getState().conference.usersList)||0===Object.keys(i).length)return[2,!1];e.label=1;case 1:e.trys.push([1,6,,7]),a=Object.values(i),c=n?s.unmuteUserConf:s.muteUserConf,u=0,l=a,e.label=2;case 2:return u<l.length?(d=l[u],p={confId:null==t?void 0:t.toString(),userId:null===(o=d.id)||void 0===o?void 0:o.toString()},[4,c(p)]):[3,5];case 3:e.sent()&&r.store.dispatch.conference.toggleUserMuted({extenId:d.extenId,muted:!n}),e.label=4;case 4:return u++,[3,2];case 5:return[2,!0];case 6:return v=e.sent(),console.error(v),[2,!1];case 7:return[2]}}))}))},exports.muteCurrentCall=function(){n.isWebRTC()?t.muteWebRTC()&&r.store.dispatch.currentCall.updateCurrentCall({muted:!0}):s.mutePhysical(!0),i.eventDispatch("phone-island-call-muted",{})},exports.muteUserConference=function(t,r,n){return e.__awaiter(this,void 0,void 0,(function(){var o,i;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===t||""===r)return[2,!1];o={confId:null==t?void 0:t.toString(),userId:null==r?void 0:r.toString()},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(n?s.unmuteUserConf:s.muteUserConf)(o)];case 2:return[2,!!e.sent()];case 3:return i=e.sent(),console.error(i),[2,!1];case 4:return[2]}}))}))},exports.parkCurrentCall=function(){var e,t,n,o,a=null===(t=null===(e=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===e?void 0:e.currentCall)||void 0===t?void 0:t.conversationId,c=null===(o=null===(n=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===n?void 0:n.currentUser)||void 0===o?void 0:o.conversations,u={};if(a){if(c)for(var l in c)if(c.hasOwnProperty(l)){var d=c[l];Object.keys(d).length>0&&(u={numberParkId:l,idConversation:a})}Object.keys(u).length>0&&(null==u?void 0:u.numberParkId)&&(s.parkConversation({applicantId:null==u?void 0:u.numberParkId,convid:a,endpointId:null==u?void 0:u.numberParkId}),r.store.dispatch.currentCall.setParked(!0),i.eventDispatch("phone-island-call-parked",{}))}},exports.pauseCurrentCall=function(){n.isWebRTC()?t.pauseWebRTC()&&(r.store.dispatch.currentCall.updateCurrentCall({paused:!0}),r.store.dispatch.player.pauseRemoteAudio()):s.pausePhysical(!0),i.eventDispatch("phone-island-call-held",{})},exports.playDtmfAudio=function(e){"*"===e&&(e="star"),"#"===e&&(e="pound"),r.store.dispatch.player.updateStartAudioPlayer({src:o.default["dtmf_".concat(e)]})},exports.recordCurrentCall=function(t){var n,o,i,a;return e.__awaiter(this,void 0,void 0,(function(){var c,u,l,d,p,v,f;return e.__generator(this,(function(e){switch(e.label){case 0:return r.store.dispatch.currentCall.updateRecordingStatus(!t),c=null===(o=null===(n=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===n?void 0:n.currentUser)||void 0===o?void 0:o.conversations,(u=function(e){for(var t in e)if(0!==Object.keys(e[t]).length){var r=Object.values(e[t])[0];return{id:r.id,recording:r.recording}}return null}(c))?[3,1]:[2];case 1:switch(l=null===(i=null==u?void 0:u.id)||void 0===i?void 0:i.match(/\/(\d+)-/),d=l[1],p={convid:null===(a=null==u?void 0:u.id)||void 0===a?void 0:a.toString(),endpointId:null==d?void 0:d.toString()},v="",null==u?void 0:u.recording){case"false":v="start_record";break;case"true":v="mute_record";break;case"mute":v="unmute_record";break;default:v=""}if(!p)return[3,5];e.label=2;case 2:return e.trys.push([2,4,,5]),[4,s.toggleRecord(v,p)];case 3:return e.sent(),[3,5];case 4:return f=e.sent(),console.error(f),[2,[]];case 5:return[2]}}))}))},exports.removeUserConference=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){var o,i,a=this;return e.__generator(this,(function(c){switch(c.label){case 0:if(""===t||""===n)return[3,4];if(!(o={confId:null==t?void 0:t.toString(),extenId:null==n?void 0:n.toString()}))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,s.hangupUserConf(o)];case 2:return c.sent()?(setTimeout((function(){return e.__awaiter(a,void 0,void 0,(function(){var t,s;return e.__generator(this,(function(e){switch(e.label){case 0:return t=r.store.getState().conference.usersList,s=Object.values(t||{}).filter((function(e){return!e.owner&&e.extenId!==n})).length,0!==s?[3,2]:[4,f()];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}),500),[2,!0]):[2,!1];case 3:return i=c.sent(),console.error(i),[2,!1];case 4:return[2,!1]}}))}))},exports.startConference=v,exports.unmuteCurrentCall=function(){n.isWebRTC()?t.unmuteWebRTC()&&r.store.dispatch.currentCall.updateCurrentCall({muted:!1}):s.mutePhysical(!1),i.eventDispatch("phone-island-call-unmuted",{})},exports.unpauseCurrentCall=d,exports.waitingConferenceView=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("../webrtc/messages.js"),r=require("../../store/index.js"),n=require("../user/default_device.js"),s=require("../../services/astproxy.js"),o=require("../../static/dtmf/index.js");require("react");var i=require("../../utils/genericFunctions/eventDispatch.js"),a=require("../../services/user.js"),c=require("../../utils/genericFunctions/isEmpty.js"),u=require("../../utils/streaming/getStreamingSourceId.js");function l(){var e=r.store.getState().currentCall,o=e.outgoing,c=e.accepted,l=e.streamingSourceNumber,d=r.store.getState().island.isFromStreaming;if(o||c){if(n.isWebRTC()?t.hangup():s.hangupPhysical(),r.store.dispatch.player.stopAudioPlayer(),r.store.dispatch.currentCall.reset(),r.store.dispatch.listen.reset(),d&&l){var p=u.getStreamingSourceId(l);p&&(a.unsubscribe({id:p}).then((function(){return console.debug("Unsubscribed from streaming source: ".concat(p))})).catch((function(e){return console.error("Error unsubscribing from streaming source:",e)})),r.store.dispatch.streaming.clearSourceImages())}r.store.dispatch.island.setIsFromStreaming(!1)}r.store.dispatch.island.resetOperatorBusy(),i.eventDispatch("phone-island-call-ended",{})}function d(){n.isWebRTC()?t.unpauseWebRTC()&&(r.store.dispatch.currentCall.updateCurrentCall({paused:!1}),r.store.dispatch.player.playRemoteAudio()):s.pausePhysical(!1);i.eventDispatch("phone-island-call-unheld",{})}function p(t){return e.__awaiter(this,void 0,void 0,(function(){var n,o,i;return e.__generator(this,(function(e){switch(e.label){case 0:return n=r.store.getState().currentCall.conversationId,o=r.store.getState().currentUser.default_device,i=(null==o?void 0:o.id)||(null==o?void 0:o.exten),n&&i&&t?[4,s.attendedTransfer({convid:n,to:t,endpointId:i})]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))}function v(){var t;return e.__awaiter(this,void 0,void 0,(function(){var n,o,a,u,l,d,p,v,f,h,g,C,m,b;return e.__generator(this,(function(e){switch(e.label){case 0:if(n=null===(t=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===t?void 0:t.currentCall,o=n.accepted,a=n.chSource,u=n.chDest,l=n.incoming,d=n.outgoing,p=n.incomingSocket,v=n.outgoingSocket,f=n.conversationId,h=r.store.getState().currentUser.default_device,g=(null==h?void 0:h.id)||(null==h?void 0:h.exten),C="",o&&(l||p)&&!c.isEmpty(a)?C=null==a?void 0:a.callerNum:o&&(d||v)&&!c.isEmpty(u)&&(C=null==u?void 0:u.callerNum),""===g||""===f||""===C)return[3,4];if(!(m={convid:null==f?void 0:f.toString(),addEndpointId:null==C?void 0:C.toString(),ownerEndpointId:null==g?void 0:g.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.startConf(m)];case 2:return e.sent()?(r.store.dispatch.currentCall.updateCurrentCall({conferencing:!0,paused:!1}),i.eventDispatch("phone-island-call-conferenced",{}),[2,!0]):[2,!1];case 3:return b=e.sent(),console.error(b),[2,!1];case 4:return[2,!1]}}))}))}function f(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,o;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===(t=r.store.getState().conference.conferenceId))return[3,4];if(!(n={confId:null==t?void 0:t.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.endConf(n)];case 2:return e.sent()?(i.eventDispatch("phone-island-owner-conference-finished",{}),[2,!0]):[2,!1];case 3:return o=e.sent(),console.error(o),[2,!1];case 4:return[2,!1]}}))}))}var h=function(){return!!r.store.getState().island.isConferenceList},g=function(e,t){var n=r.store.getState(),s=n.currentUser.username,o=n.conference,a=o.isActive,c=o.isOwnerInside,u=o.conferenceId,d=n.users.extensions;!a&&s&&(t.conference.setConferenceActive(!0),t.conference.setConferenceStartedFrom(s));var p=d?Object.values(d).find((function(t){return t.exten===e})):null,v=(null==p?void 0:p.name)||e;t.conference.addPendingUser({id:"".concat(u,"-").concat(e),name:v,owner:!1,muted:!1,extenId:e,joinTime:Date.now()}),c&&(l(),t.conference.toggleIsOwnerInside(!1)),requestAnimationFrame((function(){setTimeout((function(){i.eventDispatch("phone-island-call-start",{number:e})}),1e3)}))};function C(t,r){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return d(),[4,p(t)];case 1:return e.sent()&&(r.currentCall.updateCurrentCall({transferring:!0,paused:!1}),requestAnimationFrame((function(){r.player.playRemoteAudio(),i.eventDispatch("phone-island-call-transfered",{})}))),[2]}}))}))}exports.answerIncomingCall=function(){n.isWebRTC()?t.answerWebRTC():s.answerPhysical(),r.store.dispatch.island.resetOperatorBusyCompletely()},exports.attendedTransfer=p,exports.blindTransferFunction=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){var o;return e.__generator(this,(function(e){switch(e.label){case 0:return(o=r.store.getState().currentCall.conversationId)&&n&&t?[4,s.blindTransfer({convid:o,to:t,endpointId:n})]:[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))},exports.callNumber=function(e,o){var a="sip:".concat(e,"@").concat(o);r.store.dispatch.island.resetOperatorBusy(),r.store.dispatch.island.setOperatorBusyCalledNumber(e),n.isWebRTC()?t.callSipURI(a):s.callPhysical(e),i.eventDispatch("phone-island-call-started",{})},exports.clickTransferOrConference=function(t,n){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return h()?r.store.getState().conference.isActive?[3,2]:[4,v()]:[3,3];case 1:if(!e.sent())return[2];e.label=2;case 2:return g(t,n),[3,4];case 3:C(t,n),e.label=4;case 4:return[2]}}))}))},exports.endConference=f,exports.forceHangupConversation=function(){var e=r.store.getState().currentUser.conversations,t=function(t){Object.keys(e[t]).forEach((function(e){s.forceHangup({convid:e,endpointId:t,endpointType:"extension"})}))};for(var n in e)t(n)},exports.handleAttendedTransfer=C,exports.hangupAllExtensions=function(){var e=r.store.getState().currentUser.conversations,t=function(t){Object.keys(e[t]).forEach((function(e){s.hangupConversation({convid:e,endpointId:t})}))};for(var n in e)t(n)},exports.hangupCurrentCall=l,exports.hangupCurrentPhysicalRecording=function(){s.hangupPhysicalRecordingCall(),r.store.dispatch.player.stopAudioPlayer(),r.store.dispatch.physicalRecorder.reset(),r.store.dispatch.physicalRecorder.setRecording(!1),r.store.dispatch.island.setIslandView(null),r.store.dispatch.listen.reset(),i.eventDispatch("phone-island-call-ended",{})},exports.isInsideConferenceList=h,exports.joinConference=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n,o,a;return e.__generator(this,(function(e){switch(e.label){case 0:if(t=r.store.getState().currentUser.default_device,""===(n=(null==t?void 0:t.id)||(null==t?void 0:t.exten)))return[3,4];if(!(o={endpointId:null==n?void 0:n.toString()}))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s.joinMyConf(o)];case 2:return e.sent()?(i.eventDispatch("phone-island-owner-conference-enter",{}),[2,!0]):[2,!1];case 3:return a=e.sent(),console.error(a),[2,!1];case 4:return[2,!1]}}))}))},exports.muteAllUsersConference=function(t,n){var o;return e.__awaiter(this,void 0,void 0,(function(){var i,a,c,u,l,d,p,v;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===t)return[2,!1];if(!(i=r.store.getState().conference.usersList)||0===Object.keys(i).length)return[2,!1];e.label=1;case 1:e.trys.push([1,6,,7]),a=Object.values(i),c=n?s.unmuteUserConf:s.muteUserConf,u=0,l=a,e.label=2;case 2:return u<l.length?(d=l[u],p={confId:null==t?void 0:t.toString(),userId:null===(o=d.id)||void 0===o?void 0:o.toString()},[4,c(p)]):[3,5];case 3:e.sent()&&r.store.dispatch.conference.toggleUserMuted({extenId:d.extenId,muted:!n}),e.label=4;case 4:return u++,[3,2];case 5:return[2,!0];case 6:return v=e.sent(),console.error(v),[2,!1];case 7:return[2]}}))}))},exports.muteCurrentCall=function(){n.isWebRTC()?t.muteWebRTC()&&r.store.dispatch.currentCall.updateCurrentCall({muted:!0}):s.mutePhysical(!0),i.eventDispatch("phone-island-call-muted",{})},exports.muteUserConference=function(t,r,n){return e.__awaiter(this,void 0,void 0,(function(){var o,i;return e.__generator(this,(function(e){switch(e.label){case 0:if(""===t||""===r)return[2,!1];o={confId:null==t?void 0:t.toString(),userId:null==r?void 0:r.toString()},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(n?s.unmuteUserConf:s.muteUserConf)(o)];case 2:return[2,!!e.sent()];case 3:return i=e.sent(),console.error(i),[2,!1];case 4:return[2]}}))}))},exports.parkCurrentCall=function(){var e,t,n,o,a=null===(t=null===(e=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===e?void 0:e.currentCall)||void 0===t?void 0:t.conversationId,c=null===(o=null===(n=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===n?void 0:n.currentUser)||void 0===o?void 0:o.conversations,u={};if(a){if(c)for(var l in c)if(c.hasOwnProperty(l)){var d=c[l];Object.keys(d).length>0&&(u={numberParkId:l,idConversation:a})}Object.keys(u).length>0&&(null==u?void 0:u.numberParkId)&&(s.parkConversation({applicantId:null==u?void 0:u.numberParkId,convid:a,endpointId:null==u?void 0:u.numberParkId}),r.store.dispatch.currentCall.setParked(!0),i.eventDispatch("phone-island-call-parked",{}))}},exports.pauseCurrentCall=function(){n.isWebRTC()?t.pauseWebRTC()&&(r.store.dispatch.currentCall.updateCurrentCall({paused:!0}),r.store.dispatch.player.pauseRemoteAudio()):s.pausePhysical(!0),i.eventDispatch("phone-island-call-held",{})},exports.playDtmfAudio=function(e){"*"===e&&(e="star"),"#"===e&&(e="pound"),r.store.dispatch.player.updateStartAudioPlayer({src:o.default["dtmf_".concat(e)]})},exports.recordCurrentCall=function(t){var n,o,i,a;return e.__awaiter(this,void 0,void 0,(function(){var c,u,l,d,p,v,f;return e.__generator(this,(function(e){switch(e.label){case 0:return r.store.dispatch.currentCall.updateRecordingStatus(!t),c=null===(o=null===(n=null===r.store||void 0===r.store?void 0:r.store.getState())||void 0===n?void 0:n.currentUser)||void 0===o?void 0:o.conversations,(u=function(e){for(var t in e)if(0!==Object.keys(e[t]).length){var r=Object.values(e[t])[0];return{id:r.id,recording:r.recording}}return null}(c))?[3,1]:[2];case 1:switch(l=null===(i=null==u?void 0:u.id)||void 0===i?void 0:i.match(/\/(\d+)-/),d=l[1],p={convid:null===(a=null==u?void 0:u.id)||void 0===a?void 0:a.toString(),endpointId:null==d?void 0:d.toString()},v="",null==u?void 0:u.recording){case"false":v="start_record";break;case"true":v="mute_record";break;case"mute":v="unmute_record";break;default:v=""}if(!p)return[3,5];e.label=2;case 2:return e.trys.push([2,4,,5]),[4,s.toggleRecord(v,p)];case 3:return e.sent(),[3,5];case 4:return f=e.sent(),console.error(f),[2,[]];case 5:return[2]}}))}))},exports.removeUserConference=function(t,n){return e.__awaiter(this,void 0,void 0,(function(){var o,i,a=this;return e.__generator(this,(function(c){switch(c.label){case 0:if(""===t||""===n)return[3,4];if(!(o={confId:null==t?void 0:t.toString(),extenId:null==n?void 0:n.toString()}))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,s.hangupUserConf(o)];case 2:return c.sent()?(setTimeout((function(){return e.__awaiter(a,void 0,void 0,(function(){var t,s;return e.__generator(this,(function(e){switch(e.label){case 0:return t=r.store.getState().conference.usersList,s=Object.values(t||{}).filter((function(e){return!e.owner&&e.extenId!==n})).length,0!==s?[3,2]:[4,f()];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}),500),[2,!0]):[2,!1];case 3:return i=c.sent(),console.error(i),[2,!1];case 4:return[2,!1]}}))}))},exports.startConference=v,exports.unmuteCurrentCall=function(){n.isWebRTC()?t.unmuteWebRTC()&&r.store.dispatch.currentCall.updateCurrentCall({muted:!1}):s.mutePhysical(!1),i.eventDispatch("phone-island-call-unmuted",{})},exports.unpauseCurrentCall=d,exports.waitingConferenceView=g;
|
|
2
2
|
//# sourceMappingURL=call.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sources":["../../../src/lib/phone/call.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport {\n callSipURI,\n hangup,\n answerWebRTC,\n muteWebRTC,\n unmuteWebRTC,\n pauseWebRTC,\n unpauseWebRTC,\n} from '../webrtc/messages'\nimport { Dispatch, store } from '../../store'\nimport { isWebRTC } from '../user/default_device'\nimport {\n blindTransfer as blindTransferRequest,\n attendedTransfer as attendedTransferRequest,\n hangupPhysical,\n answerPhysical,\n mutePhysical,\n pausePhysical,\n callPhysical,\n toggleRecord,\n hangupPhysicalRecordingCall,\n startConf,\n joinMyConf,\n endConf,\n muteUserConf,\n unmuteUserConf,\n hangupUserConf,\n forceHangup,\n} from '../../services/astproxy'\nimport dtmfAudios from '../../static/dtmf'\nimport { hangupConversation, parkConversation } from '../../services/astproxy'\nimport { eventDispatch } from '../../utils'\nimport { isEmpty } from '../../utils/genericFunctions/isEmpty'\nimport { getStreamingSourceId } from '../../utils/streaming/getStreamingSourceId'\nimport { unsubscribe } from '../../services/user'\n\n/**\n * Starts a call to a number\n * @param number The number string\n */\nexport function callNumber(number: string, sipHost: string) {\n const sipURI = `sip:${number}@${sipHost}`\n\n // Reset any previous operator busy state when starting a new call\n store.dispatch.island.resetOperatorBusy()\n // Save the called number for potential operator busy scenarios\n store.dispatch.island.setOperatorBusyCalledNumber(number)\n\n if (isWebRTC()) {\n callSipURI(sipURI)\n } else {\n callPhysical(number)\n }\n\n eventDispatch('phone-island-call-started', {})\n}\n\n/**\n * Answer incoming call\n */\nexport function answerIncomingCall() {\n if (isWebRTC()) {\n answerWebRTC()\n } else {\n answerPhysical()\n }\n // Reset operator busy completely when call is answered successfully\n store.dispatch.island.resetOperatorBusyCompletely()\n}\n\n/**\n * Hangup all the conversations of all the extensions of the current user\n */\nexport function hangupAllExtensions() {\n // Get current user endpoints\n const { conversations } = store.getState().currentUser\n // Hangup all the conversations of all extensions of the current user\n for (const extension in conversations) {\n const conversationsIds = Object.keys(conversations[extension])\n conversationsIds.forEach((id) => {\n hangupConversation({\n convid: id,\n endpointId: extension,\n })\n })\n }\n}\n\nexport function forceHangupConversation() {\n // Get current user endpoints\n const { conversations } = store.getState().currentUser\n // Hangup all the conversations of all extensions of the current user\n for (const extension in conversations) {\n const conversationsIds = Object.keys(conversations[extension])\n conversationsIds.forEach((id) => {\n forceHangup({\n convid: id,\n endpointId: extension,\n endpointType: 'extension',\n })\n })\n }\n}\n\n/**\n * Hangup current call\n */\nexport function hangupCurrentCall() {\n const { outgoing, accepted, streamingSourceNumber } = store.getState().currentCall\n const { isFromStreaming } = store.getState().island\n\n if (outgoing || accepted) {\n if (isWebRTC()) {\n hangup()\n } else {\n hangupPhysical()\n }\n store.dispatch.player.stopAudioPlayer()\n store.dispatch.currentCall.reset()\n store.dispatch.listen.reset()\n\n // If call was from a streaming source, unsubscribe and clear images\n if (isFromStreaming && streamingSourceNumber) {\n const sourceId = getStreamingSourceId(streamingSourceNumber)\n if (sourceId) {\n // Unsubscribe from streaming updates\n unsubscribe({ id: sourceId })\n .then(() => console.debug(`Unsubscribed from streaming source: ${sourceId}`))\n .catch((error) => console.error('Error unsubscribing from streaming source:', error))\n\n // Clear source images to free up memory\n store.dispatch.streaming.clearSourceImages()\n }\n }\n\n // Reset isFromStreaming flag\n store.dispatch.island.setIsFromStreaming(false)\n }\n // Reset operator busy state when call ends\n store.dispatch.island.resetOperatorBusy()\n // Caller close the call before the call is accepted\n eventDispatch('phone-island-call-ended', {})\n}\n\n/**\n * Hangup current physical recording\n */\nexport function hangupCurrentPhysicalRecording() {\n hangupPhysicalRecordingCall()\n store.dispatch.player.stopAudioPlayer()\n store.dispatch.physicalRecorder.reset()\n store.dispatch.physicalRecorder.setRecording(false)\n store.dispatch.island.setIslandView(null)\n store.dispatch.listen.reset()\n // Caller close the call before the call is accepted\n eventDispatch('phone-island-call-ended', {})\n}\n\n/**\n * Mute the current call\n */\nexport function muteCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const muted = muteWebRTC()\n if (muted) {\n store.dispatch.currentCall.updateCurrentCall({\n muted: true,\n })\n }\n } else {\n mutePhysical(true)\n }\n eventDispatch('phone-island-call-muted', {})\n}\n\n/**\n * Unmute the current call\n */\nexport function unmuteCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const unmuted = unmuteWebRTC()\n if (unmuted) {\n store.dispatch.currentCall.updateCurrentCall({\n muted: false,\n })\n }\n } else {\n mutePhysical(false)\n }\n eventDispatch('phone-island-call-unmuted', {})\n}\n\n/**\n * Pause the current call\n */\nexport function pauseCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const paused = pauseWebRTC()\n if (paused) {\n store.dispatch.currentCall.updateCurrentCall({\n paused: true,\n })\n // Pause remote audio\n store.dispatch.player.pauseRemoteAudio()\n }\n } else {\n pausePhysical(true)\n }\n eventDispatch('phone-island-call-held', {})\n}\n\n/**\n * Unpause the current call\n */\nexport function unpauseCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const unpaused = unpauseWebRTC()\n if (unpaused) {\n store.dispatch.currentCall.updateCurrentCall({\n paused: false,\n })\n // Play remote audio\n store.dispatch.player.playRemoteAudio()\n }\n } else {\n pausePhysical(false)\n }\n eventDispatch('phone-island-call-unheld', {})\n}\n\n/**\n * Transfer the current call through a blind transfer (not in use)\n */\nexport async function blindTransferFunction(number: string, endpointIdInConversation: string) {\n // Retrieve current conversation info\n const { conversationId } = store.getState().currentCall\n // Transfer the call through blind transfer\n if (conversationId && endpointIdInConversation && number) {\n return await blindTransferRequest({\n convid: conversationId,\n to: number,\n endpointId: endpointIdInConversation,\n })\n }\n}\n\n/**\n * Transfer the current call through a attended transfer\n */\nexport async function attendedTransfer(number: string) {\n // Retrieve current conversation info\n const { conversationId } = store.getState().currentCall\n const { default_device } = store.getState().currentUser\n let default_device_details = default_device?.id || default_device?.exten\n // Transfer the call through attended transfer\n if (conversationId && default_device_details && number) {\n return await attendedTransferRequest({\n convid: conversationId,\n to: number,\n endpointId: default_device_details,\n })\n }\n}\n\n/**\n * Play the dtmf audio files\n */\nexport function playDtmfAudio(key: string) {\n if (key === '*') key = 'star'\n if (key === '#') key = 'pound'\n store.dispatch.player.updateStartAudioPlayer({ src: dtmfAudios[`dtmf_${key}`] })\n}\n\n/**\n * Park the current call\n */\nexport function parkCurrentCall() {\n const conversationId = store?.getState()?.currentCall?.conversationId\n const userConversationInformations = store?.getState()?.currentUser?.conversations\n\n let parkingInformation: any = {}\n\n if (conversationId) {\n if (userConversationInformations) {\n for (const key in userConversationInformations) {\n if (userConversationInformations.hasOwnProperty(key)) {\n const conversation = userConversationInformations[key]\n if (Object.keys(conversation).length > 0) {\n parkingInformation = {\n numberParkId: key,\n idConversation: conversationId,\n }\n }\n }\n }\n }\n\n if (Object.keys(parkingInformation).length > 0) {\n if (parkingInformation?.numberParkId) {\n // If park information are not empty park call\n parkConversation({\n applicantId: parkingInformation?.numberParkId,\n convid: conversationId,\n endpointId: parkingInformation?.numberParkId,\n })\n\n store.dispatch.currentCall.setParked(true)\n\n eventDispatch('phone-island-call-parked', {})\n }\n }\n }\n}\n\nconst findFirstExtesnionNotEmpty = (data) => {\n for (const key in data) {\n if (Object.keys(data[key]).length !== 0) {\n const firstEntry: any = Object.values(data[key])[0]\n return {\n id: firstEntry.id,\n recording: firstEntry.recording,\n }\n }\n }\n return null\n}\n\nexport async function recordCurrentCall(recordingValue: boolean) {\n store.dispatch.currentCall.updateRecordingStatus(!recordingValue)\n const userConversationInformations = store?.getState()?.currentUser?.conversations\n\n const firstExtensionNotEmpty = findFirstExtesnionNotEmpty(userConversationInformations)\n\n if (!firstExtensionNotEmpty) {\n return\n } else {\n const numberToSendCall = firstExtensionNotEmpty?.id?.match(/\\/(\\d+)-/)\n const endpointId = numberToSendCall[1]\n\n const listenInformations = {\n convid: firstExtensionNotEmpty?.id?.toString(),\n endpointId: endpointId?.toString(),\n }\n\n let recordingValues = ''\n switch (firstExtensionNotEmpty?.recording) {\n case 'false':\n recordingValues = 'start_record'\n break\n case 'true':\n recordingValues = 'mute_record'\n break\n case 'mute':\n recordingValues = 'unmute_record'\n break\n default:\n recordingValues = ''\n break\n }\n\n if (listenInformations) {\n try {\n await toggleRecord(recordingValues, listenInformations)\n } catch (e) {\n console.error(e)\n return []\n }\n }\n }\n}\n\nexport async function startConference() {\n const {\n accepted,\n chSource,\n chDest,\n incoming,\n outgoing,\n incomingSocket,\n outgoingSocket,\n conversationId,\n }: any = store?.getState()?.currentCall\n const { default_device } = store.getState().currentUser\n const defaultDeviceId = default_device?.id || default_device?.exten\n let addedUserExtension = ''\n if (accepted && (incoming || incomingSocket) && !isEmpty(chSource)) {\n addedUserExtension = chSource?.callerNum\n } else if (accepted && (outgoing || outgoingSocket) && !isEmpty(chDest)) {\n addedUserExtension = chDest?.callerNum\n }\n\n if (defaultDeviceId !== '' && conversationId !== '' && addedUserExtension !== '') {\n const startConferenceInformations = {\n convid: conversationId?.toString(),\n addEndpointId: addedUserExtension?.toString(),\n ownerEndpointId: defaultDeviceId?.toString(),\n }\n\n if (startConferenceInformations) {\n try {\n const result = await startConf(startConferenceInformations)\n if (result) {\n // Set conferencing and disable pause\n store.dispatch.currentCall.updateCurrentCall({\n conferencing: true,\n paused: false,\n })\n\n eventDispatch('phone-island-call-conferenced', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function joinConference() {\n const { default_device } = store.getState().currentUser\n const defaultDeviceId = default_device?.id || default_device?.exten\n\n if (defaultDeviceId !== '') {\n const joinConferenceInformation = {\n endpointId: defaultDeviceId?.toString(),\n }\n\n if (joinConferenceInformation) {\n try {\n const result = await joinMyConf(joinConferenceInformation)\n if (result) {\n eventDispatch('phone-island-owner-conference-enter', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function endConference() {\n const { conferenceId } = store.getState().conference\n\n if (conferenceId !== '') {\n const endConferenceInformation = {\n confId: conferenceId?.toString(),\n }\n\n if (endConferenceInformation) {\n try {\n const result = await endConf(endConferenceInformation)\n if (result) {\n eventDispatch('phone-island-owner-conference-finished', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function muteUserConference(confId, userId, isAlreadyMuted) {\n if (confId === '' || userId === '') {\n return false\n }\n\n const muteUnmuteUserInformation = {\n confId: confId?.toString(),\n userId: userId?.toString(),\n }\n\n try {\n // Check if the user is already muted\n const actionFunction = isAlreadyMuted ? unmuteUserConf : muteUserConf\n const result = await actionFunction(muteUnmuteUserInformation)\n return !!result\n } catch (e) {\n console.error(e)\n return false\n }\n}\n\nexport async function muteAllUsersConference(confId, isAlreadyMuted) {\n if (confId === '') {\n return false\n }\n\n // Get the conference users from the store\n const { usersList } = store.getState().conference\n\n if (!usersList || Object.keys(usersList).length === 0) {\n return false\n }\n\n try {\n // Iterate through all users (except the owner) and mute/unmute them\n const nonOwnerUsers = Object.values(usersList)\n\n // Determine which function to use based on isAlreadyMuted\n const actionFunction = isAlreadyMuted ? unmuteUserConf : muteUserConf\n\n // For each user, call the appropriate function directly\n for (const user of nonOwnerUsers) {\n const muteUnmuteUserInformation = {\n confId: confId?.toString(),\n userId: user.id?.toString(),\n }\n\n const result = await actionFunction(muteUnmuteUserInformation)\n\n if (result) {\n store.dispatch.conference.toggleUserMuted({\n extenId: user.extenId,\n muted: !isAlreadyMuted,\n })\n }\n }\n\n return true\n } catch (e) {\n console.error(e)\n return false\n }\n}\n\nexport async function removeUserConference(conferenceId, extensionId) {\n if (conferenceId !== '' && extensionId !== '') {\n const removeUserInformation = {\n confId: conferenceId?.toString(),\n extenId: extensionId?.toString(),\n }\n\n if (removeUserInformation) {\n try {\n const result = await hangupUserConf(removeUserInformation)\n if (result) {\n // Check if this was the last participant (excluding owner)\n setTimeout(async () => {\n const { usersList } = store.getState().conference\n const remainingParticipants = Object.values(usersList || {}).filter(\n (user) => !user.owner && user.extenId !== extensionId,\n ).length\n\n // If no more participants left, end the conference\n if (remainingParticipants === 0) {\n await endConference()\n }\n }, 500)\n\n return true\n }\n\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport const clickTransferOrConference = async (number: string, dispatch: Dispatch) => {\n if (isInsideConferenceList()) {\n const { isActive } = store.getState().conference\n\n // Put current call user inside conference mode (only for first user to add not for the second one)\n // If conference is not active, start it first, otherwise proceed directly\n if (!isActive) {\n const conferenceStarted = await startConference()\n if (!conferenceStarted) {\n return // Early return if conference failed to start\n }\n }\n\n // Proceed to waiting conference view (common path for both cases)\n waitingConferenceView(number, dispatch)\n } else {\n handleAttendedTransfer(number, dispatch)\n }\n}\n\nexport const isInsideConferenceList = () => {\n const { isConferenceList } = store.getState().island\n if (isConferenceList) {\n return true\n }\n return false\n}\n\nexport const waitingConferenceView = (numberToCall, dispatch: Dispatch) => {\n // Get all required state in one call to minimize store access\n const state = store.getState()\n const { username } = state.currentUser\n const { isActive, isOwnerInside, conferenceId } = state.conference\n const { extensions } = state.users\n\n // Show current waiting user in back view (only on first)\n if (!isActive && username) {\n dispatch.conference.setConferenceActive(true)\n dispatch.conference.setConferenceStartedFrom(username)\n }\n\n // Add pending user to track the participant being added (before socket confirms)\n const extension = extensions\n ? Object.values(extensions).find((ext: any) => ext.exten === numberToCall)\n : null\n const extensionName = extension?.name || numberToCall\n\n dispatch.conference.addPendingUser({\n id: `${conferenceId}-${numberToCall}`,\n name: extensionName,\n owner: false,\n muted: false,\n extenId: numberToCall,\n joinTime: Date.now(),\n })\n\n // If owner has already started the conference, hangup before making a new call\n if (isOwnerInside) {\n hangupCurrentCall()\n dispatch.conference.toggleIsOwnerInside(false)\n }\n\n // Start new call with selected user from conference list\n // Use requestAnimationFrame to ensure state updates are complete before dispatching event\n requestAnimationFrame(() => {\n setTimeout(() => {\n eventDispatch('phone-island-call-start', { number: numberToCall })\n }, 1000)\n })\n}\n\nexport async function handleAttendedTransfer(number: string, dispatch: Dispatch) {\n // Send attended transfer message\n unpauseCurrentCall()\n const transferringMessageSent = await attendedTransfer(number)\n if (transferringMessageSent) {\n // Set transferring and disable pause\n dispatch.currentCall.updateCurrentCall({\n transferring: true,\n paused: false,\n })\n\n // Use requestAnimationFrame to ensure state update is complete before audio operations\n requestAnimationFrame(() => {\n dispatch.player.playRemoteAudio()\n eventDispatch('phone-island-call-transfered', {})\n })\n }\n}\n"],"names":["hangupCurrentCall","_a","store","getState","currentCall","outgoing","accepted","streamingSourceNumber","isFromStreaming","island","isWebRTC","hangup","hangupPhysical","dispatch","player","stopAudioPlayer","reset","listen","sourceId_1","getStreamingSourceId","unsubscribe","id","then","console","debug","concat","catch","error","streaming","clearSourceImages","setIsFromStreaming","resetOperatorBusy","eventDispatch","unpauseCurrentCall","unpauseWebRTC","updateCurrentCall","paused","playRemoteAudio","pausePhysical","attendedTransfer","number","conversationId","default_device","currentUser","default_device_details","exten","attendedTransferRequest","convid","to","endpointId","startConference","_b","chSource","chDest","incoming","incomingSocket","outgoingSocket","defaultDeviceId","addedUserExtension","isEmpty","callerNum","startConferenceInformations","toString","addEndpointId","ownerEndpointId","startConf","_c","sent","conferencing","e_2","endConference","conferenceId","conference","endConferenceInformation","confId","endConf","e_4","isInsideConferenceList","isConferenceList","waitingConferenceView","numberToCall","state","username","isActive","isOwnerInside","extensions","users","setConferenceActive","setConferenceStartedFrom","extension","Object","values","find","ext","extensionName","name","addPendingUser","owner","muted","extenId","joinTime","Date","now","toggleIsOwnerInside","requestAnimationFrame","setTimeout","handleAttendedTransfer","transferring","answerWebRTC","answerPhysical","resetOperatorBusyCompletely","endpointIdInConversation","blindTransferRequest","sipHost","sipURI","setOperatorBusyCalledNumber","callSipURI","callPhysical","__awaiter","conversations","keys","forEach","forceHangup","endpointType","hangupConversation","hangupPhysicalRecordingCall","physicalRecorder","setRecording","setIslandView","joinConferenceInformation","joinMyConf","e_3","isAlreadyMuted","usersList","length","nonOwnerUsers","actionFunction","unmuteUserConf","muteUserConf","_i","nonOwnerUsers_1","user","muteUnmuteUserInformation","userId","toggleUserMuted","e_6","muteWebRTC","mutePhysical","e_5","userConversationInformations","_d","parkingInformation","key","hasOwnProperty","conversation","numberParkId","idConversation","parkConversation","applicantId","setParked","pauseWebRTC","pauseRemoteAudio","updateStartAudioPlayer","src","dtmfAudios","recordingValue","updateRecordingStatus","firstExtensionNotEmpty","data","firstEntry","recording","findFirstExtesnionNotEmpty","numberToSendCall","match","listenInformations","recordingValues","toggleRecord","_e","e_1","extensionId","removeUserInformation","hangupUserConf","_this","remainingParticipants","filter","e_7","unmuteWebRTC"],"mappings":"oiBA8GgBA,IACR,IAAAC,EAAgDC,EAAKA,MAACC,WAAWC,YAA/DC,EAAQJ,EAAAI,SAAEC,EAAQL,EAAAK,SAAEC,0BACpBC,EAAoBN,EAAKA,MAACC,WAAWM,OAAMD,gBAEnD,GAAIH,GAAYC,EAAU,CAWxB,GAVII,EAAQA,WACVC,EAAAA,SAEAC,EAAAA,iBAEFV,EAAAA,MAAMW,SAASC,OAAOC,kBACtBb,EAAAA,MAAMW,SAAST,YAAYY,QAC3Bd,EAAAA,MAAMW,SAASI,OAAOD,QAG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ACF,IAAK,OACHA,EAAkB,cAClB,MACF,IAAK,OACHA,EAAkB,gBAClB,MACF,QACEA,EAAkB,GAIlB,IAAAD,EAAA,MAAkB,CAAA,EAAA,oBAElB,6BAAA,CAAA,EAAME,EAAAA,aAAaD,EAAiBD,kBAApCG,EAAA9G,oBAGA,kBADA5C,QAAQI,MAAMuJ,GACd,CAAA,EAAO,2BAId,+BAuKqB,SAAqB3G,EAAc4G,qIAClC,KAAjB5G,GAAuC,KAAhB4G,EAAvB,MAAyC,CAAA,EAAA,GAMvC,KALEC,EAAwB,CAC5B1G,OAAQH,eAAAA,EAAcT,WACtBqC,QAASgF,eAAAA,EAAarH,aAGpB,MAAqB,CAAA,EAAA,oBAEN,6BAAA,CAAA,EAAMuH,iBAAeD,WACpC,OADenL,EAA2CkE,QAGxDsC,YAAW,WAAA,OAAAa,EAAAA,UAAAgE,OAAA,OAAA,GAAA,iFAOL,OANIjD,EAAcnI,EAAAA,MAAMC,WAAWqE,qBACjC+G,EAAwB7F,OAAOC,OAAO0C,GAAa,CAAA,GAAImD,QAC3D,SAAC3C,GAAS,OAACA,EAAK5C,OAAS4C,EAAK1C,UAAYgF,CAAhC,IACV7C,OAG4B,IAA1BiD,EAA2B,CAAA,EAAA,GACvB,CAAA,EAAAjH,YAANrE,EAAAkE,2CAED,KAEH,CAAA,GAAO,IAGT,CAAA,GAAO,UAGP,kBADA5C,QAAQI,MAAM8J,GACd,CAAA,GAAO,GAIb,KAAA,EAAA,MAAA,CAAA,GAAO,SACR,iEA1YK/K,EAAQA,WACMgL,EAAAA,gBAEdxL,QAAMW,SAAST,YAAY+B,kBAAkB,CAC3C+D,OAAO,IAIXiD,EAAYA,cAAC,GAEfnH,gBAAc,4BAA6B,CAAA,EAC7C"}
|
|
1
|
+
{"version":3,"file":"call.js","sources":["../../../src/lib/phone/call.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport {\n callSipURI,\n hangup,\n answerWebRTC,\n muteWebRTC,\n unmuteWebRTC,\n pauseWebRTC,\n unpauseWebRTC,\n} from '../webrtc/messages'\nimport { Dispatch, store } from '../../store'\nimport { isWebRTC } from '../user/default_device'\nimport {\n blindTransfer as blindTransferRequest,\n attendedTransfer as attendedTransferRequest,\n hangupPhysical,\n answerPhysical,\n mutePhysical,\n pausePhysical,\n callPhysical,\n toggleRecord,\n hangupPhysicalRecordingCall,\n startConf,\n joinMyConf,\n endConf,\n muteUserConf,\n unmuteUserConf,\n hangupUserConf,\n forceHangup,\n} from '../../services/astproxy'\nimport dtmfAudios from '../../static/dtmf'\nimport { hangupConversation, parkConversation } from '../../services/astproxy'\nimport { eventDispatch } from '../../utils'\nimport { isEmpty } from '../../utils/genericFunctions/isEmpty'\nimport { getStreamingSourceId } from '../../utils/streaming/getStreamingSourceId'\nimport { unsubscribe } from '../../services/user'\n\n/**\n * Starts a call to a number\n * @param number The number string\n */\nexport function callNumber(number: string, sipHost: string) {\n const sipURI = `sip:${number}@${sipHost}`\n\n // Reset any previous operator busy state when starting a new call\n store.dispatch.island.resetOperatorBusy()\n // Save the called number for potential operator busy scenarios\n store.dispatch.island.setOperatorBusyCalledNumber(number)\n\n if (isWebRTC()) {\n callSipURI(sipURI)\n } else {\n callPhysical(number)\n }\n\n eventDispatch('phone-island-call-started', {})\n}\n\n/**\n * Answer incoming call\n */\nexport function answerIncomingCall() {\n if (isWebRTC()) {\n answerWebRTC()\n } else {\n answerPhysical()\n }\n // Reset operator busy completely when call is answered successfully\n store.dispatch.island.resetOperatorBusyCompletely()\n}\n\n/**\n * Hangup all the conversations of all the extensions of the current user\n */\nexport function hangupAllExtensions() {\n // Get current user endpoints\n const { conversations } = store.getState().currentUser\n // Hangup all the conversations of all extensions of the current user\n for (const extension in conversations) {\n const conversationsIds = Object.keys(conversations[extension])\n conversationsIds.forEach((id) => {\n hangupConversation({\n convid: id,\n endpointId: extension,\n })\n })\n }\n}\n\nexport function forceHangupConversation() {\n // Get current user endpoints\n const { conversations } = store.getState().currentUser\n // Hangup all the conversations of all extensions of the current user\n for (const extension in conversations) {\n const conversationsIds = Object.keys(conversations[extension])\n conversationsIds.forEach((id) => {\n forceHangup({\n convid: id,\n endpointId: extension,\n endpointType: 'extension',\n })\n })\n }\n}\n\n/**\n * Hangup current call\n */\nexport function hangupCurrentCall() {\n const { outgoing, accepted, streamingSourceNumber } = store.getState().currentCall\n const { isFromStreaming } = store.getState().island\n\n if (outgoing || accepted) {\n if (isWebRTC()) {\n hangup()\n } else {\n hangupPhysical()\n }\n store.dispatch.player.stopAudioPlayer()\n store.dispatch.currentCall.reset()\n store.dispatch.listen.reset()\n\n // If call was from a streaming source, unsubscribe and clear images\n if (isFromStreaming && streamingSourceNumber) {\n const sourceId = getStreamingSourceId(streamingSourceNumber)\n if (sourceId) {\n // Unsubscribe from streaming updates\n unsubscribe({ id: sourceId })\n .then(() => console.debug(`Unsubscribed from streaming source: ${sourceId}`))\n .catch((error) => console.error('Error unsubscribing from streaming source:', error))\n\n // Clear source images to free up memory\n store.dispatch.streaming.clearSourceImages()\n }\n }\n\n // Reset isFromStreaming flag\n store.dispatch.island.setIsFromStreaming(false)\n }\n // Reset operator busy state when call ends\n store.dispatch.island.resetOperatorBusy()\n // Caller close the call before the call is accepted\n eventDispatch('phone-island-call-ended', {})\n}\n\n/**\n * Hangup current physical recording\n */\nexport function hangupCurrentPhysicalRecording() {\n hangupPhysicalRecordingCall()\n store.dispatch.player.stopAudioPlayer()\n store.dispatch.physicalRecorder.reset()\n store.dispatch.physicalRecorder.setRecording(false)\n store.dispatch.island.setIslandView(null)\n store.dispatch.listen.reset()\n // Caller close the call before the call is accepted\n eventDispatch('phone-island-call-ended', {})\n}\n\n/**\n * Mute the current call\n */\nexport function muteCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const muted = muteWebRTC()\n if (muted) {\n store.dispatch.currentCall.updateCurrentCall({\n muted: true,\n })\n }\n } else {\n mutePhysical(true)\n }\n eventDispatch('phone-island-call-muted', {})\n}\n\n/**\n * Unmute the current call\n */\nexport function unmuteCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const unmuted = unmuteWebRTC()\n if (unmuted) {\n store.dispatch.currentCall.updateCurrentCall({\n muted: false,\n })\n }\n } else {\n mutePhysical(false)\n }\n eventDispatch('phone-island-call-unmuted', {})\n}\n\n/**\n * Pause the current call\n */\nexport function pauseCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const paused = pauseWebRTC()\n if (paused) {\n store.dispatch.currentCall.updateCurrentCall({\n paused: true,\n })\n // Pause remote audio\n store.dispatch.player.pauseRemoteAudio()\n }\n } else {\n pausePhysical(true)\n }\n eventDispatch('phone-island-call-held', {})\n}\n\n/**\n * Unpause the current call\n */\nexport function unpauseCurrentCall() {\n // Check the current user default device\n if (isWebRTC()) {\n const unpaused = unpauseWebRTC()\n if (unpaused) {\n store.dispatch.currentCall.updateCurrentCall({\n paused: false,\n })\n // Play remote audio\n store.dispatch.player.playRemoteAudio()\n }\n } else {\n pausePhysical(false)\n }\n eventDispatch('phone-island-call-unheld', {})\n}\n\n/**\n * Transfer the current call through a blind transfer (not in use)\n */\nexport async function blindTransferFunction(number: string, endpointIdInConversation: string) {\n // Retrieve current conversation info\n const { conversationId } = store.getState().currentCall\n // Transfer the call through blind transfer\n if (conversationId && endpointIdInConversation && number) {\n return await blindTransferRequest({\n convid: conversationId,\n to: number,\n endpointId: endpointIdInConversation,\n })\n }\n}\n\n/**\n * Transfer the current call through a attended transfer\n */\nexport async function attendedTransfer(number: string) {\n // Retrieve current conversation info\n const { conversationId } = store.getState().currentCall\n const { default_device } = store.getState().currentUser\n let default_device_details = default_device?.id || default_device?.exten\n // Transfer the call through attended transfer\n if (conversationId && default_device_details && number) {\n return await attendedTransferRequest({\n convid: conversationId,\n to: number,\n endpointId: default_device_details,\n })\n }\n}\n\n/**\n * Play the dtmf audio files\n */\nexport function playDtmfAudio(key: string) {\n if (key === '*') key = 'star'\n if (key === '#') key = 'pound'\n store.dispatch.player.updateStartAudioPlayer({ src: dtmfAudios[`dtmf_${key}`] })\n}\n\n/**\n * Park the current call\n */\nexport function parkCurrentCall() {\n const conversationId = store?.getState()?.currentCall?.conversationId\n const userConversationInformations = store?.getState()?.currentUser?.conversations\n\n let parkingInformation: any = {}\n\n if (conversationId) {\n if (userConversationInformations) {\n for (const key in userConversationInformations) {\n if (userConversationInformations.hasOwnProperty(key)) {\n const conversation = userConversationInformations[key]\n if (Object.keys(conversation).length > 0) {\n parkingInformation = {\n numberParkId: key,\n idConversation: conversationId,\n }\n }\n }\n }\n }\n\n if (Object.keys(parkingInformation).length > 0) {\n if (parkingInformation?.numberParkId) {\n // If park information are not empty park call\n parkConversation({\n applicantId: parkingInformation?.numberParkId,\n convid: conversationId,\n endpointId: parkingInformation?.numberParkId,\n })\n\n store.dispatch.currentCall.setParked(true)\n\n eventDispatch('phone-island-call-parked', {})\n }\n }\n }\n}\n\nconst findFirstExtesnionNotEmpty = (data) => {\n for (const key in data) {\n if (Object.keys(data[key]).length !== 0) {\n const firstEntry: any = Object.values(data[key])[0]\n return {\n id: firstEntry.id,\n recording: firstEntry.recording,\n }\n }\n }\n return null\n}\n\nexport async function recordCurrentCall(recordingValue: boolean) {\n store.dispatch.currentCall.updateRecordingStatus(!recordingValue)\n const userConversationInformations = store?.getState()?.currentUser?.conversations\n\n const firstExtensionNotEmpty = findFirstExtesnionNotEmpty(userConversationInformations)\n\n if (!firstExtensionNotEmpty) {\n return\n } else {\n const numberToSendCall = firstExtensionNotEmpty?.id?.match(/\\/(\\d+)-/)\n const endpointId = numberToSendCall[1]\n\n const listenInformations = {\n convid: firstExtensionNotEmpty?.id?.toString(),\n endpointId: endpointId?.toString(),\n }\n\n let recordingValues = ''\n switch (firstExtensionNotEmpty?.recording) {\n case 'false':\n recordingValues = 'start_record'\n break\n case 'true':\n recordingValues = 'mute_record'\n break\n case 'mute':\n recordingValues = 'unmute_record'\n break\n default:\n recordingValues = ''\n break\n }\n\n if (listenInformations) {\n try {\n await toggleRecord(recordingValues, listenInformations)\n } catch (e) {\n console.error(e)\n return []\n }\n }\n }\n}\n\nexport async function startConference() {\n const {\n accepted,\n chSource,\n chDest,\n incoming,\n outgoing,\n incomingSocket,\n outgoingSocket,\n conversationId,\n }: any = store?.getState()?.currentCall\n const { default_device } = store.getState().currentUser\n const defaultDeviceId = default_device?.id || default_device?.exten\n let addedUserExtension = ''\n if (accepted && (incoming || incomingSocket) && !isEmpty(chSource)) {\n addedUserExtension = chSource?.callerNum\n } else if (accepted && (outgoing || outgoingSocket) && !isEmpty(chDest)) {\n addedUserExtension = chDest?.callerNum\n }\n\n if (defaultDeviceId !== '' && conversationId !== '' && addedUserExtension !== '') {\n const startConferenceInformations = {\n convid: conversationId?.toString(),\n addEndpointId: addedUserExtension?.toString(),\n ownerEndpointId: defaultDeviceId?.toString(),\n }\n\n if (startConferenceInformations) {\n try {\n const result = await startConf(startConferenceInformations)\n if (result) {\n // Set conferencing and disable pause\n store.dispatch.currentCall.updateCurrentCall({\n conferencing: true,\n paused: false,\n })\n\n eventDispatch('phone-island-call-conferenced', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function joinConference() {\n const { default_device } = store.getState().currentUser\n const defaultDeviceId = default_device?.id || default_device?.exten\n\n if (defaultDeviceId !== '') {\n const joinConferenceInformation = {\n endpointId: defaultDeviceId?.toString(),\n }\n\n if (joinConferenceInformation) {\n try {\n const result = await joinMyConf(joinConferenceInformation)\n if (result) {\n eventDispatch('phone-island-owner-conference-enter', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function endConference() {\n const { conferenceId } = store.getState().conference\n\n if (conferenceId !== '') {\n const endConferenceInformation = {\n confId: conferenceId?.toString(),\n }\n\n if (endConferenceInformation) {\n try {\n const result = await endConf(endConferenceInformation)\n if (result) {\n eventDispatch('phone-island-owner-conference-finished', {})\n return true\n }\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport async function muteUserConference(confId, userId, isAlreadyMuted) {\n if (confId === '' || userId === '') {\n return false\n }\n\n const muteUnmuteUserInformation = {\n confId: confId?.toString(),\n userId: userId?.toString(),\n }\n\n try {\n // Check if the user is already muted\n const actionFunction = isAlreadyMuted ? unmuteUserConf : muteUserConf\n const result = await actionFunction(muteUnmuteUserInformation)\n return !!result\n } catch (e) {\n console.error(e)\n return false\n }\n}\n\nexport async function muteAllUsersConference(confId, isAlreadyMuted) {\n if (confId === '') {\n return false\n }\n\n // Get the conference users from the store\n const { usersList } = store.getState().conference\n\n if (!usersList || Object.keys(usersList).length === 0) {\n return false\n }\n\n try {\n // Iterate through all users (except the owner) and mute/unmute them\n const nonOwnerUsers = Object.values(usersList)\n\n // Determine which function to use based on isAlreadyMuted\n const actionFunction = isAlreadyMuted ? unmuteUserConf : muteUserConf\n\n // For each user, call the appropriate function directly\n for (const user of nonOwnerUsers) {\n const muteUnmuteUserInformation = {\n confId: confId?.toString(),\n userId: user.id?.toString(),\n }\n\n const result = await actionFunction(muteUnmuteUserInformation)\n\n if (result) {\n store.dispatch.conference.toggleUserMuted({\n extenId: user.extenId,\n muted: !isAlreadyMuted,\n })\n }\n }\n\n return true\n } catch (e) {\n console.error(e)\n return false\n }\n}\n\nexport async function removeUserConference(conferenceId, extensionId) {\n if (conferenceId !== '' && extensionId !== '') {\n const removeUserInformation = {\n confId: conferenceId?.toString(),\n extenId: extensionId?.toString(),\n }\n\n if (removeUserInformation) {\n try {\n const result = await hangupUserConf(removeUserInformation)\n if (result) {\n // Check if this was the last participant (excluding owner)\n setTimeout(async () => {\n const { usersList } = store.getState().conference\n const remainingParticipants = Object.values(usersList || {}).filter(\n (user) => !user.owner && user.extenId !== extensionId,\n ).length\n\n // If no more participants left, end the conference\n if (remainingParticipants === 0) {\n await endConference()\n }\n }, 500)\n\n return true\n }\n\n return false\n } catch (e) {\n console.error(e)\n return false\n }\n }\n }\n return false\n}\n\nexport const clickTransferOrConference = async (number: string, dispatch: Dispatch) => {\n if (isInsideConferenceList()) {\n const { isActive } = store.getState().conference\n\n // Put current call user inside conference mode (only for first user to add not for the second one)\n // If conference is not active, start it first, otherwise proceed directly\n if (!isActive) {\n const conferenceStarted = await startConference()\n if (!conferenceStarted) {\n return // Early return if conference failed to start\n }\n }\n\n // Proceed to waiting conference view (common path for both cases)\n waitingConferenceView(number, dispatch)\n } else {\n handleAttendedTransfer(number, dispatch)\n }\n}\n\nexport const isInsideConferenceList = () => {\n const { isConferenceList } = store.getState().island\n if (isConferenceList) {\n return true\n }\n return false\n}\n\nexport const waitingConferenceView = (numberToCall, dispatch: Dispatch) => {\n // Get all required state in one call to minimize store access\n const state = store.getState()\n const { username } = state.currentUser\n const { isActive, isOwnerInside, conferenceId } = state.conference\n const { extensions } = state.users\n\n // Show current waiting user in back view (only on first)\n if (!isActive && username) {\n dispatch.conference.setConferenceActive(true)\n dispatch.conference.setConferenceStartedFrom(username)\n }\n\n // Add pending user to track the participant being added (before socket confirms)\n const extension = extensions\n ? Object.values(extensions).find((ext: any) => ext.exten === numberToCall)\n : null\n const extensionName = extension?.name || numberToCall\n\n dispatch.conference.addPendingUser({\n id: `${conferenceId}-${numberToCall}`,\n name: extensionName,\n owner: false,\n muted: false,\n extenId: numberToCall,\n joinTime: Date.now(),\n })\n\n // If owner has already started the conference, hangup before making a new call\n if (isOwnerInside) {\n hangupCurrentCall()\n dispatch.conference.toggleIsOwnerInside(false)\n }\n\n // Start new call with selected user from conference list\n // Use requestAnimationFrame to ensure state updates are complete before dispatching event\n requestAnimationFrame(() => {\n setTimeout(() => {\n eventDispatch('phone-island-call-start', { number: numberToCall })\n }, 1000)\n })\n}\n\nexport async function handleAttendedTransfer(number: string, dispatch: Dispatch) {\n // Send attended transfer message\n unpauseCurrentCall()\n const transferringMessageSent = await attendedTransfer(number)\n if (transferringMessageSent) {\n // Set transferring and disable pause\n dispatch.currentCall.updateCurrentCall({\n transferring: true,\n paused: false,\n })\n\n // Use requestAnimationFrame to ensure state update is complete before audio operations\n requestAnimationFrame(() => {\n dispatch.player.playRemoteAudio()\n eventDispatch('phone-island-call-transfered', {})\n })\n }\n}\n"],"names":["hangupCurrentCall","_a","store","getState","currentCall","outgoing","accepted","streamingSourceNumber","isFromStreaming","island","isWebRTC","hangup","hangupPhysical","dispatch","player","stopAudioPlayer","reset","listen","sourceId_1","getStreamingSourceId","unsubscribe","id","then","console","debug","concat","catch","error","streaming","clearSourceImages","setIsFromStreaming","resetOperatorBusy","eventDispatch","unpauseCurrentCall","unpauseWebRTC","updateCurrentCall","paused","playRemoteAudio","pausePhysical","attendedTransfer","number","conversationId","default_device","currentUser","default_device_details","exten","attendedTransferRequest","convid","to","endpointId","startConference","_b","chSource","chDest","incoming","incomingSocket","outgoingSocket","defaultDeviceId","addedUserExtension","isEmpty","callerNum","startConferenceInformations","toString","addEndpointId","ownerEndpointId","startConf","_c","sent","conferencing","e_2","endConference","conferenceId","conference","endConferenceInformation","confId","endConf","e_4","isInsideConferenceList","isConferenceList","waitingConferenceView","numberToCall","state","username","isActive","isOwnerInside","extensions","users","setConferenceActive","setConferenceStartedFrom","extension","Object","values","find","ext","extensionName","name","addPendingUser","owner","muted","extenId","joinTime","Date","now","toggleIsOwnerInside","requestAnimationFrame","setTimeout","handleAttendedTransfer","transferring","answerWebRTC","answerPhysical","resetOperatorBusyCompletely","endpointIdInConversation","blindTransferRequest","sipHost","sipURI","setOperatorBusyCalledNumber","callSipURI","callPhysical","__awaiter","conversations","keys","forEach","forceHangup","endpointType","hangupConversation","hangupPhysicalRecordingCall","physicalRecorder","setRecording","setIslandView","joinConferenceInformation","joinMyConf","e_3","isAlreadyMuted","usersList","length","nonOwnerUsers","actionFunction","unmuteUserConf","muteUserConf","_i","nonOwnerUsers_1","user","muteUnmuteUserInformation","userId","toggleUserMuted","e_6","muteWebRTC","mutePhysical","e_5","userConversationInformations","_d","parkingInformation","key","hasOwnProperty","conversation","numberParkId","idConversation","parkConversation","applicantId","setParked","pauseWebRTC","pauseRemoteAudio","updateStartAudioPlayer","src","dtmfAudios","recordingValue","updateRecordingStatus","firstExtensionNotEmpty","data","firstEntry","recording","findFirstExtesnionNotEmpty","numberToSendCall","match","listenInformations","recordingValues","toggleRecord","_e","e_1","extensionId","removeUserInformation","hangupUserConf","_this","remainingParticipants","filter","e_7","unmuteWebRTC"],"mappings":"ogBA8GgBA,IACR,IAAAC,EAAgDC,EAAKA,MAACC,WAAWC,YAA/DC,EAAQJ,EAAAI,SAAEC,EAAQL,EAAAK,SAAEC,0BACpBC,EAAoBN,EAAKA,MAACC,WAAWM,OAAMD,gBAEnD,GAAIH,GAAYC,EAAU,CAWxB,GAVII,EAAQA,WACVC,EAAAA,SAEAC,EAAAA,iBAEFV,EAAAA,MAAMW,SAASC,OAAOC,kBACtBb,EAAAA,MAAMW,SAAST,YAAYY,QAC3Bd,EAAAA,MAAMW,SAASI,OAAOD,QAGlBR,GAAmBD,EAAuB,CAC5C,IAAMW,EAAWC,uBAAqBZ,GAClCW,IAEFE,cAAY,CAAEC,GAAIH,IACfI,MAAK,WAAM,OAAAC,QAAQC,MAAM,uCAAAC,OAAuCP,OAChEQ,OAAM,SAACC,GAAU,OAAAJ,QAAQI,MAAM,6CAA8CA,EAA5D,IAGpBzB,EAAAA,MAAMW,SAASe,UAAUC,oBAE5B,CAGD3B,EAAAA,MAAMW,SAASJ,OAAOqB,oBAAmB,EAC1C,CAED5B,EAAAA,MAAMW,SAASJ,OAAOsB,oBAEtBC,gBAAc,0BAA2B,CAAA,EAC3C,UA2EgBC,IAEVvB,EAAQA,WACOwB,EAAAA,kBAEfhC,QAAMW,SAAST,YAAY+B,kBAAkB,CAC3CC,QAAQ,IAGVlC,EAAAA,MAAMW,SAASC,OAAOuB,mBAGxBC,EAAaA,eAAC,GAEhBN,gBAAc,2BAA4B,CAAA,EAC5C,CAqBM,SAAgBO,EAAiBC,6HAMjC,OAJIC,EAAmBvC,EAAAA,MAAMC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AAa,CAAA,GAAImD,QAC3D,SAAC3C,GAAS,OAACA,EAAK5C,OAAS4C,EAAK1C,UAAYgF,CAAhC,IACV7C,OAG4B,IAA1BiD,EAA2B,CAAA,EAAA,GACvB,CAAA,EAAAjH,YAANrE,EAAAkE,2CAED,KAEH,CAAA,GAAO,IAGT,CAAA,GAAO,UAGP,kBADA5C,QAAQI,MAAM8J,GACd,CAAA,GAAO,GAIb,KAAA,EAAA,MAAA,CAAA,GAAO,SACR,iEA1YK/K,EAAQA,WACMgL,EAAAA,gBAEdxL,QAAMW,SAAST,YAAY+B,kBAAkB,CAC3C+D,OAAO,IAIXiD,EAAYA,cAAC,GAEfnH,gBAAc,4BAA6B,CAAA,EAC7C"}
|
package/dist/lib/player/audio.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("../../services/offhour.js"),r=require("../../services/history_call.js"),a=require("../../store/index.js"),i=require("../../services/voicemail.js");exports.getAnnouncementName=function(r){return e.__awaiter(this,void 0,void 0,(function(){var i,n;return e.__generator(this,(function(e){switch(e.label){case 0:return r?[4,t.getAllAnnouncementsInfo()]:[3,2];case 1:i=e.sent(),(null==(n=i.find((function(e){return e.id.toString()===r})))?void 0:n.description)&&a.store.dispatch.player.setAudioPlayerTrackName(n.description),e.label=2;case 2:return[2]}}))}))},exports.getRecordingName=function(t){return e.__awaiter(this,void 0,void 0,(function(){var i;return e.__generator(this,(function(e){switch(e.label){case 0:return t?[4,r.getRecordingFileName(t)]:[3,2];case 1:(i=e.sent())&&a.store.dispatch.player.setAudioPlayerTrackName(i),e.label=2;case 2:return[2]}}))}))},exports.getVoicemailName=function(t){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return t?[4,i.getVoicemailFileName(t)]:[3,2];case 1:(r=e.sent())&&a.store.dispatch.player.setAudioPlayerTrackName(r),e.label=2;case 2:return[2]}}))}))},exports.playAnnouncement=function(r){return e.__awaiter(this,void 0,void 0,(function(){var i;return e.__generator(this,(function(e){switch(e.label){case 0:return r?[4,t.getAnnouncement(r)]:[3,2];case 1:(i=e.sent())&&(a.store.dispatch.island.setIslandView("player"),a.store.dispatch.player.setAudioPlayerType("announcement"),a.store.dispatch.player.updateStartAudioPlayer({src:i})),e.label=2;case 2:return[2]}}))}))},exports.playCallRecording=function(t){return e.__awaiter(this,void 0,void 0,(function(){var i;return e.__generator(this,(function(e){switch(e.label){case 0:return t?[4,r.getCallRecording(t)]:[3,2];case 1:(i=e.sent())&&(a.store.dispatch.island.setIslandView("player"),a.store.dispatch.player.setAudioPlayerType("call_recording"),a.store.dispatch.player.updateStartAudioPlayer({src:i})),e.label=2;case 2:return[2]}}))}))},exports.playVoicemail=function(t){return e.__awaiter(this,void 0,void 0,(function(){var r;return e.__generator(this,(function(e){switch(e.label){case 0:return t?[4,i.getVoicemailBase64(t)]:[3,2];case 1:(r=e.sent())&&(a.store.dispatch.island.setIslandView("player"),a.store.dispatch.player.setAudioPlayerType("voicemail"),a.store.dispatch.player.updateStartAudioPlayer({src:r})),e.label=2;case 2:return[2]}}))}))};
|
|
2
2
|
//# sourceMappingURL=audio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.js","sources":["../../../src/lib/player/audio.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { getAnnouncement, getAllAnnouncementsInfo } from '../../services/offhour'\nimport { getCallRecording, getRecordingFileName } from '../../services/history_call'\nimport { store } from '../../store'\nimport { AnnouncementInfoTypes } from '../../types'\nimport { getVoicemailBase64, getVoicemailFileName } from '../../services/voicemail'\n\n/**\n * Given an id plays an announcement\n */\nexport async function playAnnouncement(id: string) {\n if (id) {\n const audioFile: string = await getAnnouncement(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('announcement')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id plays a call recording\n */\nexport async function playCallRecording(id: string) {\n if (id) {\n const audioFile: string = await getCallRecording(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('call_recording')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id plays a call recording\n */\nexport async function playVoicemail(id: string) {\n if (id) {\n const audioFile: string = await getVoicemailBase64(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('voicemail')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id retrieves the name of the call recording\n */\nexport async function getRecordingName(id: string) {\n if (id) {\n const fileName: string = await getRecordingFileName(id)\n if (fileName) {\n store.dispatch.player.setAudioPlayerTrackName(fileName)\n }\n }\n}\n\n/**\n * Given an id retrieves the name of the call recording\n */\nexport async function getAnnouncementName(id: string) {\n if (id) {\n const allAnnouncements: AnnouncementInfoTypes[] = await getAllAnnouncementsInfo()\n const announcement = allAnnouncements.find((announcement) => announcement.id.toString() === id)\n if (announcement?.description) {\n store.dispatch.player.setAudioPlayerTrackName(announcement.description)\n }\n }\n}\n\nexport async function getVoicemailName(id: string) {\n if (id) {\n const fileName: string = await getVoicemailFileName(id)\n\n if (fileName) {\n store.dispatch.player.setAudioPlayerTrackName(fileName)\n }\n }\n}\n"],"names":["id","getAllAnnouncementsInfo","allAnnouncements","_a","sent","announcement","find","toString","description","store","dispatch","player","setAudioPlayerTrackName","getRecordingFileName","fileName","getVoicemailFileName","getAnnouncement","audioFile","island","setIslandView","setAudioPlayerType","updateStartAudioPlayer","src","getCallRecording","getVoicemailBase64"],"mappings":"
|
|
1
|
+
{"version":3,"file":"audio.js","sources":["../../../src/lib/player/audio.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { getAnnouncement, getAllAnnouncementsInfo } from '../../services/offhour'\nimport { getCallRecording, getRecordingFileName } from '../../services/history_call'\nimport { store } from '../../store'\nimport { AnnouncementInfoTypes } from '../../types'\nimport { getVoicemailBase64, getVoicemailFileName } from '../../services/voicemail'\n\n/**\n * Given an id plays an announcement\n */\nexport async function playAnnouncement(id: string) {\n if (id) {\n const audioFile: string = await getAnnouncement(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('announcement')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id plays a call recording\n */\nexport async function playCallRecording(id: string) {\n if (id) {\n const audioFile: string = await getCallRecording(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('call_recording')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id plays a call recording\n */\nexport async function playVoicemail(id: string) {\n if (id) {\n const audioFile: string = await getVoicemailBase64(id)\n if (audioFile) {\n store.dispatch.island.setIslandView('player')\n store.dispatch.player.setAudioPlayerType('voicemail')\n store.dispatch.player.updateStartAudioPlayer({\n src: audioFile,\n })\n }\n }\n}\n\n/**\n * Given an id retrieves the name of the call recording\n */\nexport async function getRecordingName(id: string) {\n if (id) {\n const fileName: string = await getRecordingFileName(id)\n if (fileName) {\n store.dispatch.player.setAudioPlayerTrackName(fileName)\n }\n }\n}\n\n/**\n * Given an id retrieves the name of the call recording\n */\nexport async function getAnnouncementName(id: string) {\n if (id) {\n const allAnnouncements: AnnouncementInfoTypes[] = await getAllAnnouncementsInfo()\n const announcement = allAnnouncements.find((announcement) => announcement.id.toString() === id)\n if (announcement?.description) {\n store.dispatch.player.setAudioPlayerTrackName(announcement.description)\n }\n }\n}\n\nexport async function getVoicemailName(id: string) {\n if (id) {\n const fileName: string = await getVoicemailFileName(id)\n\n if (fileName) {\n store.dispatch.player.setAudioPlayerTrackName(fileName)\n }\n }\n}\n"],"names":["id","getAllAnnouncementsInfo","allAnnouncements","_a","sent","announcement","find","toString","description","store","dispatch","player","setAudioPlayerTrackName","getRecordingFileName","fileName","getVoicemailFileName","getAnnouncement","audioFile","island","setIslandView","setAudioPlayerType","updateStartAudioPlayer","src","getCallRecording","getVoicemailBase64"],"mappings":"qRAwEM,SAAoCA,2HACpC,OAAAA,EACsD,CAAA,EAAAC,EAAuBA,2BAD3E,CAAA,EAAA,UACEC,EAA4CC,EAA+BC,QAE7EC,OADEA,EAAeH,EAAiBI,MAAK,SAACD,GAAiB,OAAAA,EAAaL,GAAGO,aAAeP,CAAE,YAC1FK,EAAcG,cAChBC,EAAKA,MAACC,SAASC,OAAOC,wBAAwBP,EAAaG,8CAGhE,2BApBK,SAAiCR,yHACjC,OAAAA,EACuB,CAAA,EAAMa,uBAAqBb,IADhD,CAAA,EAAA,WACEc,EAAmBX,EAA8BC,SAErDK,EAAAA,MAAMC,SAASC,OAAOC,wBAAwBE,oCAGnD,2BAeK,SAAiCd,yHACjC,OAAAA,EACuB,CAAA,EAAMe,uBAAqBf,IADhD,CAAA,EAAA,WACEc,EAAmBX,EAA8BC,SAGrDK,EAAAA,MAAMC,SAASC,OAAOC,wBAAwBE,oCAGnD,2BA9EK,SAAiCd,yHACjC,OAAAA,EACwB,CAAA,EAAMgB,kBAAgBhB,IAD5C,CAAA,EAAA,WACEiB,EAAoBd,EAAyBC,UAEjDK,EAAAA,MAAMC,SAASQ,OAAOC,cAAc,UACpCV,EAAAA,MAAMC,SAASC,OAAOS,mBAAmB,gBACzCX,QAAMC,SAASC,OAAOU,uBAAuB,CAC3CC,IAAKL,sCAIZ,4BAKK,SAAkCjB,yHAClC,OAAAA,EACwB,CAAA,EAAMuB,mBAAiBvB,IAD7C,CAAA,EAAA,WACEiB,EAAoBd,EAA0BC,UAElDK,EAAAA,MAAMC,SAASQ,OAAOC,cAAc,UACpCV,EAAAA,MAAMC,SAASC,OAAOS,mBAAmB,kBACzCX,QAAMC,SAASC,OAAOU,uBAAuB,CAC3CC,IAAKL,sCAIZ,wBAKK,SAA8BjB,yHAC9B,OAAAA,EACwB,CAAA,EAAMwB,qBAAmBxB,IAD/C,CAAA,EAAA,WACEiB,EAAoBd,EAA4BC,UAEpDK,EAAAA,MAAMC,SAASQ,OAAOC,cAAc,UACpCV,EAAAA,MAAMC,SAASC,OAAOS,mBAAmB,aACzCX,QAAMC,SAASC,OAAOU,uBAAuB,CAC3CC,IAAKL,sCAIZ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../../utils/genericFunctions/localStorage.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("../../utils/genericFunctions/localStorage.js");require("tslib"),require("../../store/index.js");exports.loadCache=function(t,r){var c=(e.getJSONItem("caches-".concat(r))||{})[t];if(!(c&&c._expiration&&(new Date).getTime()>c._expiration))return c},exports.saveCache=function(t,r,c,i){if(c){var a=e.getJSONItem("caches-".concat(c))||{},o=r;o._expiration=i,a[t]=o,e.setJSONItem("caches-".concat(c),a)}};
|
|
2
2
|
//# sourceMappingURL=local_storage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local_storage.js","sources":["../../../src/lib/storage/local_storage.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { getJSONItem, setJSONItem } from '../../utils'\n\n/**\n * Used to save data to cache inside a local storage entry \"caches-username\"\n *\n * @param cacheName name of the cache\n * @param cacheValue a JSON object\n * @param currentUsername username currently logged in\n * @param expiration timestamp of expiration of the cache\n */\nexport const saveCache = (\n cacheName: string,\n cacheData: any,\n currentUsername: string,\n expiration: number,\n) => {\n if (!currentUsername) {\n return\n }\n const caches = getJSONItem(`caches-${currentUsername}`) || {}\n let data = cacheData\n data['_expiration'] = expiration\n caches[cacheName] = data\n setJSONItem(`caches-${currentUsername}`, caches)\n}\n\n/**\n * Used to load user caches from the local storage entry \"caches-username\"\n *\n * @param cacheName name of the cache\n * @param currentUsername username currently logged in\n */\nexport const loadCache = (cacheName: string, currentUsername: string) => {\n const caches = getJSONItem(`caches-${currentUsername}`) || {}\n const cache = caches[cacheName]\n\n if (cache && cache['_expiration'] && new Date().getTime() > cache['_expiration']) {\n // cache has expired\n return undefined\n }\n return cache\n}\n"],"names":["cacheName","currentUsername","cache","getJSONItem","concat","Date","getTime","cacheData","expiration","caches","data","setJSONItem"],"mappings":"
|
|
1
|
+
{"version":3,"file":"local_storage.js","sources":["../../../src/lib/storage/local_storage.ts"],"sourcesContent":["// Copyright (C) 2024 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { getJSONItem, setJSONItem } from '../../utils'\n\n/**\n * Used to save data to cache inside a local storage entry \"caches-username\"\n *\n * @param cacheName name of the cache\n * @param cacheValue a JSON object\n * @param currentUsername username currently logged in\n * @param expiration timestamp of expiration of the cache\n */\nexport const saveCache = (\n cacheName: string,\n cacheData: any,\n currentUsername: string,\n expiration: number,\n) => {\n if (!currentUsername) {\n return\n }\n const caches = getJSONItem(`caches-${currentUsername}`) || {}\n let data = cacheData\n data['_expiration'] = expiration\n caches[cacheName] = data\n setJSONItem(`caches-${currentUsername}`, caches)\n}\n\n/**\n * Used to load user caches from the local storage entry \"caches-username\"\n *\n * @param cacheName name of the cache\n * @param currentUsername username currently logged in\n */\nexport const loadCache = (cacheName: string, currentUsername: string) => {\n const caches = getJSONItem(`caches-${currentUsername}`) || {}\n const cache = caches[cacheName]\n\n if (cache && cache['_expiration'] && new Date().getTime() > cache['_expiration']) {\n // cache has expired\n return undefined\n }\n return cache\n}\n"],"names":["cacheName","currentUsername","cache","getJSONItem","concat","Date","getTime","cacheData","expiration","caches","data","setJSONItem"],"mappings":"sNAmCyB,SAACA,EAAmBC,GAC3C,IACMC,GADSC,EAAAA,YAAY,UAAAC,OAAUH,KAAsB,IACtCD,GAErB,KAAIE,GAASA,EAAmB,cAAK,IAAIG,MAAOC,UAAYJ,EAAmB,aAI/E,OAAOA,CACT,oBA/ByB,SACvBF,EACAO,EACAN,EACAO,GAEA,GAAKP,EAAL,CAGA,IAAMQ,EAASN,EAAAA,YAAY,UAAAC,OAAUH,KAAsB,GACvDS,EAAOH,EACXG,EAAkB,YAAIF,EACtBC,EAAOT,GAAaU,EACpBC,EAAAA,YAAY,UAAUP,OAAAH,GAAmBQ,EALxC,CAMH"}
|