@nethesis/phone-island 1.0.6-dev.4 → 1.0.6-dev.5

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.
Files changed (1413) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/AlertGuard.js +1 -1
  4. package/dist/components/AlertGuard.js.map +1 -1
  5. package/dist/components/AlertView/index.js +1 -1
  6. package/dist/components/AlertView/index.js.map +1 -1
  7. package/dist/components/AudioBars.js +1 -1
  8. package/dist/components/AudioBars.js.map +1 -1
  9. package/dist/components/AudioPlayerView/Avatar.js +1 -1
  10. package/dist/components/AudioPlayerView/Avatar.js.map +1 -1
  11. package/dist/components/AudioPlayerView/PlayerFooterActions.js +1 -1
  12. package/dist/components/AudioPlayerView/PlayerFooterActions.js.map +1 -1
  13. package/dist/components/AudioPlayerView/Progress.js +1 -1
  14. package/dist/components/AudioPlayerView/Progress.js.map +1 -1
  15. package/dist/components/AudioPlayerView/index.js +1 -1
  16. package/dist/components/AudioPlayerView/index.js.map +1 -1
  17. package/dist/components/AvatarGroup.js +1 -1
  18. package/dist/components/AvatarGroup.js.map +1 -1
  19. package/dist/components/Button.js +1 -1
  20. package/dist/components/Button.js.map +1 -1
  21. package/dist/components/CallView/Actions.js +1 -1
  22. package/dist/components/CallView/Actions.js.map +1 -1
  23. package/dist/components/CallView/Avatar.js +1 -1
  24. package/dist/components/CallView/Avatar.js.map +1 -1
  25. package/dist/components/CallView/BackCall.js +1 -1
  26. package/dist/components/CallView/BackCall.js.map +1 -1
  27. package/dist/components/CallView/DisplayName.js +1 -1
  28. package/dist/components/CallView/DisplayName.js.map +1 -1
  29. package/dist/components/CallView/Number.js +1 -1
  30. package/dist/components/CallView/Number.js.map +1 -1
  31. package/dist/components/CallView/Timer.js +1 -1
  32. package/dist/components/CallView/Timer.js.map +1 -1
  33. package/dist/components/CallView/index.js +1 -1
  34. package/dist/components/CallView/index.js.map +1 -1
  35. package/dist/components/ConferenceView/ConferenceUsersList.js +1 -1
  36. package/dist/components/ConferenceView/ConferenceUsersList.js.map +1 -1
  37. package/dist/components/ConferenceView/index.js +1 -1
  38. package/dist/components/ConferenceView/index.js.map +1 -1
  39. package/dist/components/ContactView/ContactListView.js +1 -1
  40. package/dist/components/ContactView/ContactListView.js.map +1 -1
  41. package/dist/components/ContactView/ListAvatar.js +1 -1
  42. package/dist/components/ContactView/ListAvatar.js.map +1 -1
  43. package/dist/components/ContactView/SelectContactNumberView.js +1 -1
  44. package/dist/components/ContactView/SelectContactNumberView.js.map +1 -1
  45. package/dist/components/ContactView/StatusBullet.js +1 -1
  46. package/dist/components/ContactView/StatusBullet.js.map +1 -1
  47. package/dist/components/ContactView/TransferActions.js +1 -1
  48. package/dist/components/ContactView/TransferActions.js.map +1 -1
  49. package/dist/components/CustomThemedTooltip.js +1 -1
  50. package/dist/components/CustomThemedTooltip.js.map +1 -1
  51. package/dist/components/Dropdown.js +1 -1
  52. package/dist/components/Dropdown.js.map +1 -1
  53. package/dist/components/Events.js +1 -1
  54. package/dist/components/Events.js.map +1 -1
  55. package/dist/components/GenericAvatar.js +1 -1
  56. package/dist/components/GenericAvatar.js.map +1 -1
  57. package/dist/components/Hangup.js +1 -1
  58. package/dist/components/Hangup.js.map +1 -1
  59. package/dist/components/Island.js +1 -1
  60. package/dist/components/Island.js.map +1 -1
  61. package/dist/components/IslandDrag.js +1 -1
  62. package/dist/components/IslandDrag.js.map +1 -1
  63. package/dist/components/IslandMotion.js +1 -1
  64. package/dist/components/IslandMotion.js.map +1 -1
  65. package/dist/components/KeypadView/Actions.js +1 -1
  66. package/dist/components/KeypadView/Actions.js.map +1 -1
  67. package/dist/components/KeypadView/index.js +1 -1
  68. package/dist/components/KeypadView/index.js.map +1 -1
  69. package/dist/components/OperatorBusyView/index.js +1 -1
  70. package/dist/components/OperatorBusyView/index.js.map +1 -1
  71. package/dist/components/PhysicalRecorderView/PhysicalRecordingTimer.js +1 -1
  72. package/dist/components/PhysicalRecorderView/PhysicalRecordingTimer.js.map +1 -1
  73. package/dist/components/PhysicalRecorderView/index.js +1 -1
  74. package/dist/components/PhysicalRecorderView/index.js.map +1 -1
  75. package/dist/components/RecorderView/Actions.js +1 -1
  76. package/dist/components/RecorderView/Actions.js.map +1 -1
  77. package/dist/components/RecorderView/BarsGroup.js +1 -1
  78. package/dist/components/RecorderView/BarsGroup.js.map +1 -1
  79. package/dist/components/RecorderView/Timer.js +1 -1
  80. package/dist/components/RecorderView/Timer.js.map +1 -1
  81. package/dist/components/RecorderView/index.js +1 -1
  82. package/dist/components/RecorderView/index.js.map +1 -1
  83. package/dist/components/RestAPI.js +1 -1
  84. package/dist/components/RestAPI.js.map +1 -1
  85. package/dist/components/SettingsView/AudioView.js +1 -1
  86. package/dist/components/SettingsView/AudioView.js.map +1 -1
  87. package/dist/components/SettingsView/MicrophoneView.js +1 -1
  88. package/dist/components/SettingsView/MicrophoneView.js.map +1 -1
  89. package/dist/components/SettingsView/SettingsHeader.js +1 -1
  90. package/dist/components/SettingsView/SettingsHeader.js.map +1 -1
  91. package/dist/components/SettingsView/ThemeView.js +1 -1
  92. package/dist/components/SettingsView/ThemeView.js.map +1 -1
  93. package/dist/components/SettingsView/VideoInputView.js +1 -1
  94. package/dist/components/SettingsView/VideoInputView.js.map +1 -1
  95. package/dist/components/SettingsView/index.js +1 -1
  96. package/dist/components/SettingsView/index.js.map +1 -1
  97. package/dist/components/SideView/SideView.js +1 -1
  98. package/dist/components/SideView/SideView.js.map +1 -1
  99. package/dist/components/SideView/components/SideViewButton.js +1 -1
  100. package/dist/components/SideView/components/SideViewButton.js.map +1 -1
  101. package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
  102. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  103. package/dist/components/Socket.js +1 -1
  104. package/dist/components/Socket.js.map +1 -1
  105. package/dist/components/StreamingAnswerView/index.js +1 -1
  106. package/dist/components/StreamingAnswerView/index.js.map +1 -1
  107. package/dist/components/StreamingImage/index.js +1 -1
  108. package/dist/components/StreamingImage/index.js.map +1 -1
  109. package/dist/components/SwitchDeviceView/index.js +1 -1
  110. package/dist/components/SwitchDeviceView/index.js.map +1 -1
  111. package/dist/components/SwitchInputView/DropdownContent.js +1 -1
  112. package/dist/components/SwitchInputView/DropdownContent.js.map +1 -1
  113. package/dist/components/SwitchInputView/Index.js +1 -1
  114. package/dist/components/TextScroll.js +1 -1
  115. package/dist/components/TextScroll.js.map +1 -1
  116. package/dist/components/TranscriptionView/TranscriptionView.js +1 -1
  117. package/dist/components/TranscriptionView/TranscriptionView.js.map +1 -1
  118. package/dist/components/TransferButton.js +1 -1
  119. package/dist/components/TransferButton.js.map +1 -1
  120. package/dist/components/VideoStreamingEmptyState/index.js +1 -1
  121. package/dist/components/VideoStreamingEmptyState/index.js.map +1 -1
  122. package/dist/components/VideoStreamingSkeleton/index.js +1 -1
  123. package/dist/components/VideoStreamingSkeleton/index.js.map +1 -1
  124. package/dist/components/VideoView/index.js +1 -1
  125. package/dist/components/VideoView/index.js.map +1 -1
  126. package/dist/components/ViewsTransition.js +1 -1
  127. package/dist/components/ViewsTransition.js.map +1 -1
  128. package/dist/components/WebRTC.js +1 -1
  129. package/dist/components/WebRTC.js.map +1 -1
  130. package/dist/events/CallEvents.js +1 -1
  131. package/dist/events/CallEvents.js.map +1 -1
  132. package/dist/events/PlayerEvents.js +1 -1
  133. package/dist/events/PlayerEvents.js.map +1 -1
  134. package/dist/events/RecorderEvents.js +1 -1
  135. package/dist/events/RecorderEvents.js.map +1 -1
  136. package/dist/events/SocketEvents.js +1 -1
  137. package/dist/events/SocketEvents.js.map +1 -1
  138. package/dist/lib/avatars/avatars.js +1 -1
  139. package/dist/lib/avatars/avatars.js.map +1 -1
  140. package/dist/lib/darkTheme.js +1 -1
  141. package/dist/lib/darkTheme.js.map +1 -1
  142. package/dist/lib/devices/devices.js +1 -1
  143. package/dist/lib/devices/devices.js.map +1 -1
  144. package/dist/lib/i18n.js +1 -1
  145. package/dist/lib/i18n.js.map +1 -1
  146. package/dist/lib/island/island.js +1 -1
  147. package/dist/lib/island/island.js.map +1 -1
  148. package/dist/lib/phone/audio.js +1 -1
  149. package/dist/lib/phone/audio.js.map +1 -1
  150. package/dist/lib/phone/call.js +1 -1
  151. package/dist/lib/phone/call.js.map +1 -1
  152. package/dist/lib/player/audio.js +1 -1
  153. package/dist/lib/player/audio.js.map +1 -1
  154. package/dist/lib/storage/local_storage.js +1 -1
  155. package/dist/lib/storage/local_storage.js.map +1 -1
  156. package/dist/lib/webrtc/messages.js +1 -1
  157. package/dist/lib/webrtc/messages.js.map +1 -1
  158. package/dist/models/alerts.js +1 -1
  159. package/dist/models/alerts.js.map +1 -1
  160. package/dist/models/audioBars.js +1 -1
  161. package/dist/models/audioBars.js.map +1 -1
  162. package/dist/models/avatars.js +1 -1
  163. package/dist/models/avatars.js.map +1 -1
  164. package/dist/models/conference.js +1 -1
  165. package/dist/models/conference.js.map +1 -1
  166. package/dist/models/currentCall.js +1 -1
  167. package/dist/models/currentCall.js.map +1 -1
  168. package/dist/models/currentUser.js +1 -1
  169. package/dist/models/currentUser.js.map +1 -1
  170. package/dist/models/darkTheme.js +1 -1
  171. package/dist/models/darkTheme.js.map +1 -1
  172. package/dist/models/fetchDefaults.js +1 -1
  173. package/dist/models/fetchDefaults.js.map +1 -1
  174. package/dist/models/island.js +1 -1
  175. package/dist/models/island.js.map +1 -1
  176. package/dist/models/listen.js +1 -1
  177. package/dist/models/listen.js.map +1 -1
  178. package/dist/models/mediaDevices.js +1 -1
  179. package/dist/models/mediaDevices.js.map +1 -1
  180. package/dist/models/motions.js +1 -1
  181. package/dist/models/motions.js.map +1 -1
  182. package/dist/models/paramUrl.js +1 -1
  183. package/dist/models/paramUrl.js.map +1 -1
  184. package/dist/models/physicalRecorder.js +1 -1
  185. package/dist/models/physicalRecorder.js.map +1 -1
  186. package/dist/models/player.js +1 -1
  187. package/dist/models/player.js.map +1 -1
  188. package/dist/models/queue.js +1 -1
  189. package/dist/models/queue.js.map +1 -1
  190. package/dist/models/recorder.js +1 -1
  191. package/dist/models/recorder.js.map +1 -1
  192. package/dist/models/ringtones.js +1 -1
  193. package/dist/models/ringtones.js.map +1 -1
  194. package/dist/models/screenShare.js +1 -1
  195. package/dist/models/screenShare.js.map +1 -1
  196. package/dist/models/streaming.js +1 -1
  197. package/dist/models/streaming.js.map +1 -1
  198. package/dist/models/users.js +1 -1
  199. package/dist/models/users.js.map +1 -1
  200. package/dist/models/webrtc.js +1 -1
  201. package/dist/models/webrtc.js.map +1 -1
  202. package/dist/models/websocket.js +1 -1
  203. package/dist/models/websocket.js.map +1 -1
  204. package/dist/package.json.js +1 -1
  205. package/dist/services/astproxy.js +1 -1
  206. package/dist/services/astproxy.js.map +1 -1
  207. package/dist/services/history_call.js +1 -1
  208. package/dist/services/history_call.js.map +1 -1
  209. package/dist/services/offhour.js +1 -1
  210. package/dist/services/offhour.js.map +1 -1
  211. package/dist/services/phonebook.js +1 -1
  212. package/dist/services/phonebook.js.map +1 -1
  213. package/dist/services/user.js +1 -1
  214. package/dist/services/user.js.map +1 -1
  215. package/dist/services/voicemail.js +1 -1
  216. package/dist/services/voicemail.js.map +1 -1
  217. package/dist/store/index.js +1 -1
  218. package/dist/store/index.js.map +1 -1
  219. package/dist/styles/CustomRange.styles.js +1 -1
  220. package/dist/styles/CustomRange.styles.js.map +1 -1
  221. package/dist/styles/Island.styles.js +1 -1
  222. package/dist/styles/Island.styles.js.map +1 -1
  223. package/dist/utils/genericFunctions/checkConnection.js +1 -1
  224. package/dist/utils/genericFunctions/checkConnection.js.map +1 -1
  225. package/dist/utils/streaming/streamingUtils.js +1 -1
  226. package/dist/utils/streaming/streamingUtils.js.map +1 -1
  227. package/package.json +2 -2
  228. package/dist/_virtual/EBML.js +0 -2
  229. package/dist/_virtual/EBML.js.map +0 -1
  230. package/dist/_virtual/EBMLDecoder.js +0 -2
  231. package/dist/_virtual/EBMLDecoder.js.map +0 -1
  232. package/dist/_virtual/EBMLEncoder.js +0 -2
  233. package/dist/_virtual/EBMLEncoder.js.map +0 -1
  234. package/dist/_virtual/EBMLReader.js +0 -2
  235. package/dist/_virtual/EBMLReader.js.map +0 -1
  236. package/dist/_virtual/_commonjs-dynamic-modules.js +0 -2
  237. package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  238. package/dist/_virtual/_commonjsHelpers.js +0 -2
  239. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  240. package/dist/_virtual/arrayLikeToArray.js +0 -2
  241. package/dist/_virtual/arrayLikeToArray.js.map +0 -1
  242. package/dist/_virtual/arrayWithHoles.js +0 -2
  243. package/dist/_virtual/arrayWithHoles.js.map +0 -1
  244. package/dist/_virtual/classCallCheck.js +0 -2
  245. package/dist/_virtual/classCallCheck.js.map +0 -1
  246. package/dist/_virtual/createClass.js +0 -2
  247. package/dist/_virtual/createClass.js.map +0 -1
  248. package/dist/_virtual/defineProperty.js +0 -2
  249. package/dist/_virtual/defineProperty.js.map +0 -1
  250. package/dist/_virtual/ebmlID.js +0 -2
  251. package/dist/_virtual/ebmlID.js.map +0 -1
  252. package/dist/_virtual/es5.js +0 -2
  253. package/dist/_virtual/es5.js.map +0 -1
  254. package/dist/_virtual/events.js +0 -2
  255. package/dist/_virtual/events.js.map +0 -1
  256. package/dist/_virtual/index.js +0 -2
  257. package/dist/_virtual/index.js.map +0 -1
  258. package/dist/_virtual/index10.js +0 -2
  259. package/dist/_virtual/index10.js.map +0 -1
  260. package/dist/_virtual/index11.js +0 -2
  261. package/dist/_virtual/index11.js.map +0 -1
  262. package/dist/_virtual/index2.js +0 -2
  263. package/dist/_virtual/index2.js.map +0 -1
  264. package/dist/_virtual/index3.js +0 -2
  265. package/dist/_virtual/index3.js.map +0 -1
  266. package/dist/_virtual/index4.js +0 -2
  267. package/dist/_virtual/index4.js.map +0 -1
  268. package/dist/_virtual/index5.js +0 -2
  269. package/dist/_virtual/index5.js.map +0 -1
  270. package/dist/_virtual/index6.js +0 -2
  271. package/dist/_virtual/index6.js.map +0 -1
  272. package/dist/_virtual/index7.js +0 -2
  273. package/dist/_virtual/index7.js.map +0 -1
  274. package/dist/_virtual/index8.js +0 -2
  275. package/dist/_virtual/index8.js.map +0 -1
  276. package/dist/_virtual/index9.js +0 -2
  277. package/dist/_virtual/index9.js.map +0 -1
  278. package/dist/_virtual/int64-buffer.js +0 -2
  279. package/dist/_virtual/int64-buffer.js.map +0 -1
  280. package/dist/_virtual/iterableToArrayLimit.js +0 -2
  281. package/dist/_virtual/iterableToArrayLimit.js.map +0 -1
  282. package/dist/_virtual/jsx-runtime.js +0 -2
  283. package/dist/_virtual/jsx-runtime.js.map +0 -1
  284. package/dist/_virtual/moment.js +0 -2
  285. package/dist/_virtual/moment.js.map +0 -1
  286. package/dist/_virtual/nonIterableRest.js +0 -2
  287. package/dist/_virtual/nonIterableRest.js.map +0 -1
  288. package/dist/_virtual/objectWithoutProperties.js +0 -2
  289. package/dist/_virtual/objectWithoutProperties.js.map +0 -1
  290. package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -2
  291. package/dist/_virtual/objectWithoutPropertiesLoose.js.map +0 -1
  292. package/dist/_virtual/react-is.development.js +0 -2
  293. package/dist/_virtual/react-is.development.js.map +0 -1
  294. package/dist/_virtual/react-is.development2.js +0 -2
  295. package/dist/_virtual/react-is.development2.js.map +0 -1
  296. package/dist/_virtual/react-is.development3.js +0 -2
  297. package/dist/_virtual/react-is.development3.js.map +0 -1
  298. package/dist/_virtual/react-is.development4.js +0 -2
  299. package/dist/_virtual/react-is.development4.js.map +0 -1
  300. package/dist/_virtual/react-is.production.min.js +0 -2
  301. package/dist/_virtual/react-is.production.min.js.map +0 -1
  302. package/dist/_virtual/react-is.production.min2.js +0 -2
  303. package/dist/_virtual/react-is.production.min2.js.map +0 -1
  304. package/dist/_virtual/react-is.production.min3.js +0 -2
  305. package/dist/_virtual/react-is.production.min3.js.map +0 -1
  306. package/dist/_virtual/react-is.production.min4.js +0 -2
  307. package/dist/_virtual/react-is.production.min4.js.map +0 -1
  308. package/dist/_virtual/react-jsx-runtime.development.js +0 -2
  309. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  310. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -2
  311. package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  312. package/dist/_virtual/requestMediaPermissions.js +0 -2
  313. package/dist/_virtual/requestMediaPermissions.js.map +0 -1
  314. package/dist/_virtual/sdp.js +0 -2
  315. package/dist/_virtual/sdp.js.map +0 -1
  316. package/dist/_virtual/slicedToArray.js +0 -2
  317. package/dist/_virtual/slicedToArray.js.map +0 -1
  318. package/dist/_virtual/toPrimitive.js +0 -2
  319. package/dist/_virtual/toPrimitive.js.map +0 -1
  320. package/dist/_virtual/toPropertyKey.js +0 -2
  321. package/dist/_virtual/toPropertyKey.js.map +0 -1
  322. package/dist/_virtual/tools-ebml.js +0 -2
  323. package/dist/_virtual/tools-ebml.js.map +0 -1
  324. package/dist/_virtual/tools.js +0 -2
  325. package/dist/_virtual/tools.js.map +0 -1
  326. package/dist/_virtual/typeof.js +0 -2
  327. package/dist/_virtual/typeof.js.map +0 -1
  328. package/dist/_virtual/unitless.cjs.dev.js +0 -2
  329. package/dist/_virtual/unitless.cjs.dev.js.map +0 -1
  330. package/dist/_virtual/unitless.cjs.js +0 -2
  331. package/dist/_virtual/unitless.cjs.js.map +0 -1
  332. package/dist/_virtual/unitless.cjs.prod.js +0 -2
  333. package/dist/_virtual/unitless.cjs.prod.js.map +0 -1
  334. package/dist/_virtual/unsupportedIterableToArray.js +0 -2
  335. package/dist/_virtual/unsupportedIterableToArray.js.map +0 -1
  336. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -2
  337. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  338. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -2
  339. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  340. package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -2
  341. package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +0 -1
  342. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -2
  343. package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +0 -1
  344. package/dist/_virtual/with-selector.development.js +0 -2
  345. package/dist/_virtual/with-selector.development.js.map +0 -1
  346. package/dist/_virtual/with-selector.js +0 -2
  347. package/dist/_virtual/with-selector.js.map +0 -1
  348. package/dist/_virtual/with-selector.production.js +0 -2
  349. package/dist/_virtual/with-selector.production.js.map +0 -1
  350. package/dist/_virtual/with-selector2.js +0 -2
  351. package/dist/_virtual/with-selector2.js.map +0 -1
  352. package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -2
  353. package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js.map +0 -1
  354. package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -2
  355. package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js.map +0 -1
  356. package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -2
  357. package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js.map +0 -1
  358. package/dist/node_modules/@babel/runtime/helpers/createClass.js +0 -2
  359. package/dist/node_modules/@babel/runtime/helpers/createClass.js.map +0 -1
  360. package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +0 -2
  361. package/dist/node_modules/@babel/runtime/helpers/defineProperty.js.map +0 -1
  362. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -2
  363. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
  364. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -2
  365. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +0 -1
  366. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -2
  367. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
  368. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -2
  369. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +0 -1
  370. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -2
  371. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +0 -1
  372. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
  373. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
  374. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -2
  375. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +0 -1
  376. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -2
  377. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +0 -1
  378. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -2
  379. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
  380. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -2
  381. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +0 -1
  382. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -2
  383. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +0 -1
  384. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -2
  385. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +0 -1
  386. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -2
  387. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  388. package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -2
  389. package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js.map +0 -1
  390. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
  391. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
  392. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -2
  393. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
  394. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -2
  395. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
  396. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -2
  397. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
  398. package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -2
  399. package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js.map +0 -1
  400. package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -2
  401. package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js.map +0 -1
  402. package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -2
  403. package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js.map +0 -1
  404. package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -2
  405. package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js.map +0 -1
  406. package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -2
  407. package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js.map +0 -1
  408. package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -2
  409. package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js.map +0 -1
  410. package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -2
  411. package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js.map +0 -1
  412. package/dist/node_modules/@babel/runtime/helpers/typeof.js +0 -2
  413. package/dist/node_modules/@babel/runtime/helpers/typeof.js.map +0 -1
  414. package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -2
  415. package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js.map +0 -1
  416. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -2
  417. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +0 -1
  418. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -2
  419. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
  420. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +0 -2
  421. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +0 -1
  422. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.dev.js +0 -2
  423. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.dev.js.map +0 -1
  424. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.js +0 -2
  425. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.js.map +0 -1
  426. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.prod.js +0 -2
  427. package/dist/node_modules/@emotion/unitless/dist/unitless.cjs.prod.js.map +0 -1
  428. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -2
  429. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +0 -1
  430. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -2
  431. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +0 -1
  432. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js +0 -2
  433. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js.map +0 -1
  434. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs.js +0 -2
  435. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs.js.map +0 -1
  436. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +0 -2
  437. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +0 -1
  438. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -2
  439. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +0 -1
  440. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -2
  441. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +0 -1
  442. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js +0 -2
  443. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.mjs.js.map +0 -1
  444. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +0 -2
  445. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +0 -1
  446. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +0 -2
  447. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js.map +0 -1
  448. package/dist/node_modules/@headlessui/react/dist/components/description/description.js +0 -2
  449. package/dist/node_modules/@headlessui/react/dist/components/description/description.js.map +0 -1
  450. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -2
  451. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  452. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +0 -2
  453. package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +0 -1
  454. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +0 -2
  455. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +0 -1
  456. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +0 -2
  457. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +0 -1
  458. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +0 -2
  459. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js.map +0 -1
  460. package/dist/node_modules/@headlessui/react/dist/components/mouse.js +0 -2
  461. package/dist/node_modules/@headlessui/react/dist/components/mouse.js.map +0 -1
  462. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +0 -2
  463. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js.map +0 -1
  464. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +0 -2
  465. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +0 -1
  466. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +0 -2
  467. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +0 -1
  468. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +0 -2
  469. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +0 -1
  470. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +0 -2
  471. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +0 -1
  472. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +0 -2
  473. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +0 -1
  474. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +0 -2
  475. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +0 -1
  476. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +0 -2
  477. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +0 -1
  478. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -2
  479. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  480. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -2
  481. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  482. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +0 -2
  483. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +0 -1
  484. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -2
  485. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  486. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -2
  487. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  488. package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +0 -2
  489. package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js.map +0 -1
  490. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +0 -2
  491. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +0 -1
  492. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -2
  493. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
  494. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +0 -2
  495. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js.map +0 -1
  496. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -2
  497. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  498. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -2
  499. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  500. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +0 -2
  501. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js.map +0 -1
  502. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +0 -2
  503. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js.map +0 -1
  504. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -2
  505. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  506. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -2
  507. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  508. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +0 -2
  509. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +0 -1
  510. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -2
  511. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  512. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +0 -2
  513. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +0 -1
  514. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -2
  515. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  516. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +0 -2
  517. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js.map +0 -1
  518. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +0 -2
  519. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js.map +0 -1
  520. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -2
  521. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  522. package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +0 -2
  523. package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js.map +0 -1
  524. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -2
  525. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  526. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -2
  527. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  528. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -2
  529. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  530. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -2
  531. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  532. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +0 -2
  533. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js.map +0 -1
  534. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +0 -2
  535. package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +0 -1
  536. package/dist/node_modules/@headlessui/react/dist/internal/id.js +0 -2
  537. package/dist/node_modules/@headlessui/react/dist/internal/id.js.map +0 -1
  538. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -2
  539. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  540. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +0 -2
  541. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js.map +0 -1
  542. package/dist/node_modules/@headlessui/react/dist/machine.js +0 -2
  543. package/dist/node_modules/@headlessui/react/dist/machine.js.map +0 -1
  544. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +0 -2
  545. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js.map +0 -1
  546. package/dist/node_modules/@headlessui/react/dist/react-glue.js +0 -2
  547. package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +0 -1
  548. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -2
  549. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  550. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -2
  551. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  552. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -2
  553. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  554. package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +0 -2
  555. package/dist/node_modules/@headlessui/react/dist/utils/default-map.js.map +0 -1
  556. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -2
  557. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  558. package/dist/node_modules/@headlessui/react/dist/utils/dom.js +0 -2
  559. package/dist/node_modules/@headlessui/react/dist/utils/dom.js.map +0 -1
  560. package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +0 -2
  561. package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js.map +0 -1
  562. package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -2
  563. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  564. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -2
  565. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  566. package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +0 -2
  567. package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js.map +0 -1
  568. package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -2
  569. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  570. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -2
  571. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  572. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -2
  573. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  574. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -2
  575. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  576. package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -2
  577. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  578. package/dist/node_modules/@headlessui/react/dist/utils/store.js +0 -2
  579. package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +0 -1
  580. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +0 -2
  581. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +0 -1
  582. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +0 -2
  583. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +0 -1
  584. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +0 -2
  585. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +0 -1
  586. package/dist/node_modules/@react-aria/interactions/dist/context.mjs.js +0 -2
  587. package/dist/node_modules/@react-aria/interactions/dist/context.mjs.js.map +0 -1
  588. package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs.js +0 -2
  589. package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs.js.map +0 -1
  590. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs.js +0 -2
  591. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs.js.map +0 -1
  592. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs.js +0 -2
  593. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs.js.map +0 -1
  594. package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs.js +0 -2
  595. package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs.js.map +0 -1
  596. package/dist/node_modules/@react-aria/interactions/dist/utils.mjs.js +0 -2
  597. package/dist/node_modules/@react-aria/interactions/dist/utils.mjs.js.map +0 -1
  598. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +0 -2
  599. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +0 -1
  600. package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs.js +0 -2
  601. package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs.js.map +0 -1
  602. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs.js +0 -2
  603. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs.js.map +0 -1
  604. package/dist/node_modules/@react-aria/utils/dist/platform.mjs.js +0 -2
  605. package/dist/node_modules/@react-aria/utils/dist/platform.mjs.js.map +0 -1
  606. package/dist/node_modules/@react-aria/utils/dist/runAfterTransition.mjs.js +0 -2
  607. package/dist/node_modules/@react-aria/utils/dist/runAfterTransition.mjs.js.map +0 -1
  608. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +0 -2
  609. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +0 -1
  610. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +0 -2
  611. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +0 -1
  612. package/dist/node_modules/@react-aria/utils/dist/useId.mjs.js +0 -2
  613. package/dist/node_modules/@react-aria/utils/dist/useId.mjs.js.map +0 -1
  614. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs.js +0 -2
  615. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs.js.map +0 -1
  616. package/dist/node_modules/@react-stately/flags/dist/import.mjs.js +0 -2
  617. package/dist/node_modules/@react-stately/flags/dist/import.mjs.js.map +0 -1
  618. package/dist/node_modules/@rematch/core/dist/core.esm.js +0 -2
  619. package/dist/node_modules/@rematch/core/dist/core.esm.js.map +0 -1
  620. package/dist/node_modules/@rematch/immer/dist/immer.esm.js +0 -2
  621. package/dist/node_modules/@rematch/immer/dist/immer.esm.js.map +0 -1
  622. package/dist/node_modules/@rematch/select/dist/select.esm.js +0 -2
  623. package/dist/node_modules/@rematch/select/dist/select.esm.js.map +0 -1
  624. package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.js +0 -2
  625. package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.js.map +0 -1
  626. package/dist/node_modules/bowser/es5.js +0 -2
  627. package/dist/node_modules/bowser/es5.js.map +0 -1
  628. package/dist/node_modules/classnames/index.js +0 -7
  629. package/dist/node_modules/classnames/index.js.map +0 -1
  630. package/dist/node_modules/ebml-block/index.js +0 -2
  631. package/dist/node_modules/ebml-block/index.js.map +0 -1
  632. package/dist/node_modules/ebml-block/lib/buffer-reader.js +0 -2
  633. package/dist/node_modules/ebml-block/lib/buffer-reader.js.map +0 -1
  634. package/dist/node_modules/ebml-block/lib/vint.js +0 -2
  635. package/dist/node_modules/ebml-block/lib/vint.js.map +0 -1
  636. package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js +0 -2
  637. package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js.map +0 -1
  638. package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js +0 -2
  639. package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js.map +0 -1
  640. package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js +0 -2
  641. package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js.map +0 -1
  642. package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js +0 -2
  643. package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js.map +0 -1
  644. package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js +0 -2
  645. package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js.map +0 -1
  646. package/dist/node_modules/engine.io-client/build/esm/socket.js +0 -2
  647. package/dist/node_modules/engine.io-client/build/esm/socket.js.map +0 -1
  648. package/dist/node_modules/engine.io-client/build/esm/transport.js +0 -2
  649. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +0 -1
  650. package/dist/node_modules/engine.io-client/build/esm/transports/index.js +0 -2
  651. package/dist/node_modules/engine.io-client/build/esm/transports/index.js.map +0 -1
  652. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +0 -2
  653. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +0 -1
  654. package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js +0 -2
  655. package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js.map +0 -1
  656. package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js +0 -2
  657. package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js.map +0 -1
  658. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +0 -2
  659. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +0 -1
  660. package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js +0 -2
  661. package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js.map +0 -1
  662. package/dist/node_modules/engine.io-client/build/esm/util.js +0 -2
  663. package/dist/node_modules/engine.io-client/build/esm/util.js.map +0 -1
  664. package/dist/node_modules/engine.io-parser/build/esm/commons.js +0 -2
  665. package/dist/node_modules/engine.io-parser/build/esm/commons.js.map +0 -1
  666. package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +0 -2
  667. package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js.map +0 -1
  668. package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +0 -2
  669. package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js.map +0 -1
  670. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +0 -2
  671. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +0 -1
  672. package/dist/node_modules/engine.io-parser/build/esm/index.js +0 -2
  673. package/dist/node_modules/engine.io-parser/build/esm/index.js.map +0 -1
  674. package/dist/node_modules/events/events.js +0 -2
  675. package/dist/node_modules/events/events.js.map +0 -1
  676. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js +0 -2
  677. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js.map +0 -1
  678. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +0 -2
  679. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +0 -1
  680. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js +0 -2
  681. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js.map +0 -1
  682. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js +0 -2
  683. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js.map +0 -1
  684. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +0 -2
  685. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +0 -1
  686. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +0 -2
  687. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +0 -1
  688. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +0 -2
  689. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +0 -1
  690. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js +0 -2
  691. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +0 -1
  692. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js +0 -2
  693. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js.map +0 -1
  694. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js +0 -2
  695. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +0 -1
  696. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +0 -2
  697. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +0 -1
  698. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js +0 -2
  699. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js.map +0 -1
  700. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js +0 -2
  701. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js.map +0 -1
  702. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +0 -2
  703. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +0 -1
  704. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +0 -2
  705. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +0 -1
  706. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +0 -2
  707. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +0 -1
  708. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +0 -2
  709. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +0 -1
  710. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +0 -2
  711. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +0 -1
  712. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js +0 -2
  713. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +0 -1
  714. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js +0 -2
  715. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +0 -1
  716. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js +0 -2
  717. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +0 -1
  718. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js +0 -2
  719. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +0 -1
  720. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js +0 -2
  721. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js.map +0 -1
  722. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js +0 -2
  723. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js.map +0 -1
  724. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js +0 -2
  725. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js.map +0 -1
  726. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js +0 -2
  727. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js.map +0 -1
  728. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js +0 -2
  729. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +0 -1
  730. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js +0 -2
  731. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +0 -1
  732. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +0 -2
  733. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +0 -1
  734. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js +0 -2
  735. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +0 -1
  736. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +0 -2
  737. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +0 -1
  738. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +0 -2
  739. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +0 -1
  740. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js +0 -2
  741. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +0 -1
  742. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +0 -2
  743. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +0 -1
  744. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js +0 -2
  745. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js.map +0 -1
  746. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +0 -2
  747. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +0 -1
  748. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +0 -2
  749. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +0 -1
  750. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +0 -2
  751. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +0 -1
  752. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +0 -2
  753. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +0 -1
  754. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js +0 -2
  755. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js.map +0 -1
  756. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +0 -2
  757. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +0 -1
  758. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js +0 -2
  759. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js.map +0 -1
  760. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js +0 -2
  761. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js.map +0 -1
  762. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js +0 -2
  763. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js.map +0 -1
  764. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js +0 -2
  765. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js.map +0 -1
  766. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js +0 -2
  767. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js.map +0 -1
  768. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +0 -2
  769. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +0 -1
  770. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js +0 -2
  771. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js.map +0 -1
  772. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js +0 -2
  773. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js.map +0 -1
  774. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +0 -2
  775. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +0 -1
  776. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +0 -2
  777. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +0 -1
  778. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +0 -2
  779. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +0 -1
  780. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +0 -2
  781. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +0 -1
  782. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js +0 -2
  783. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +0 -1
  784. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js +0 -2
  785. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js.map +0 -1
  786. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +0 -2
  787. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +0 -1
  788. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +0 -2
  789. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +0 -1
  790. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +0 -2
  791. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +0 -1
  792. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js +0 -2
  793. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js.map +0 -1
  794. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +0 -2
  795. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +0 -1
  796. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js +0 -2
  797. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js.map +0 -1
  798. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +0 -2
  799. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +0 -1
  800. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +0 -2
  801. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +0 -1
  802. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +0 -2
  803. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +0 -1
  804. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js +0 -2
  805. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js.map +0 -1
  806. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js +0 -2
  807. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js.map +0 -1
  808. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js +0 -2
  809. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +0 -1
  810. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js +0 -2
  811. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +0 -1
  812. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +0 -2
  813. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +0 -1
  814. package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js +0 -2
  815. package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js.map +0 -1
  816. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js +0 -2
  817. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js.map +0 -1
  818. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js +0 -2
  819. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js.map +0 -1
  820. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +0 -2
  821. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +0 -1
  822. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js +0 -2
  823. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js.map +0 -1
  824. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js +0 -2
  825. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js.map +0 -1
  826. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js +0 -2
  827. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js.map +0 -1
  828. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js +0 -2
  829. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +0 -1
  830. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js +0 -2
  831. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js.map +0 -1
  832. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +0 -2
  833. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +0 -1
  834. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +0 -2
  835. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +0 -1
  836. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +0 -2
  837. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +0 -1
  838. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js +0 -2
  839. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js.map +0 -1
  840. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js +0 -2
  841. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js.map +0 -1
  842. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +0 -2
  843. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +0 -1
  844. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js +0 -2
  845. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js.map +0 -1
  846. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +0 -2
  847. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +0 -1
  848. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js +0 -2
  849. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +0 -1
  850. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +0 -2
  851. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +0 -1
  852. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js +0 -2
  853. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js.map +0 -1
  854. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js +0 -2
  855. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js.map +0 -1
  856. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +0 -2
  857. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +0 -1
  858. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js +0 -2
  859. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js.map +0 -1
  860. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +0 -2
  861. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +0 -1
  862. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js +0 -2
  863. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js.map +0 -1
  864. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js +0 -2
  865. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js.map +0 -1
  866. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js +0 -2
  867. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js.map +0 -1
  868. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +0 -2
  869. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +0 -1
  870. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js +0 -2
  871. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +0 -1
  872. package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js +0 -2
  873. package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js.map +0 -1
  874. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js +0 -2
  875. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js.map +0 -1
  876. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js +0 -2
  877. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js.map +0 -1
  878. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js +0 -2
  879. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js.map +0 -1
  880. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +0 -2
  881. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +0 -1
  882. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +0 -2
  883. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +0 -1
  884. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js +0 -2
  885. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +0 -1
  886. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js +0 -2
  887. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js.map +0 -1
  888. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js +0 -2
  889. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +0 -1
  890. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +0 -2
  891. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +0 -1
  892. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js +0 -2
  893. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js.map +0 -1
  894. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js +0 -2
  895. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +0 -1
  896. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +0 -2
  897. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +0 -1
  898. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js +0 -2
  899. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js.map +0 -1
  900. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js +0 -2
  901. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js.map +0 -1
  902. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js +0 -2
  903. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
  904. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js +0 -2
  905. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js.map +0 -1
  906. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js +0 -2
  907. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js.map +0 -1
  908. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js +0 -2
  909. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js.map +0 -1
  910. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js +0 -2
  911. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +0 -1
  912. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js +0 -2
  913. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js.map +0 -1
  914. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js +0 -2
  915. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js.map +0 -1
  916. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js +0 -2
  917. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js.map +0 -1
  918. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +0 -2
  919. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +0 -1
  920. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js +0 -2
  921. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +0 -1
  922. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +0 -2
  923. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +0 -1
  924. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js +0 -2
  925. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js.map +0 -1
  926. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js +0 -2
  927. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js.map +0 -1
  928. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js +0 -2
  929. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js.map +0 -1
  930. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js +0 -2
  931. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js.map +0 -1
  932. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js +0 -2
  933. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js.map +0 -1
  934. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js +0 -2
  935. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js.map +0 -1
  936. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js +0 -2
  937. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js.map +0 -1
  938. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js +0 -2
  939. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js.map +0 -1
  940. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js +0 -2
  941. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js.map +0 -1
  942. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js +0 -2
  943. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js.map +0 -1
  944. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js +0 -2
  945. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js.map +0 -1
  946. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -2
  947. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
  948. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -10
  949. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  950. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  951. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  952. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -2
  953. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +0 -1
  954. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.js +0 -2
  955. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.js.map +0 -1
  956. package/dist/node_modules/i18next/dist/esm/i18next.js +0 -2
  957. package/dist/node_modules/i18next/dist/esm/i18next.js.map +0 -1
  958. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js +0 -2
  959. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js.map +0 -1
  960. package/dist/node_modules/immer/dist/immer.esm.mjs.js +0 -2
  961. package/dist/node_modules/immer/dist/immer.esm.mjs.js.map +0 -1
  962. package/dist/node_modules/int64-buffer/int64-buffer.js +0 -2
  963. package/dist/node_modules/int64-buffer/int64-buffer.js.map +0 -1
  964. package/dist/node_modules/js-base64/base64.mjs.js +0 -2
  965. package/dist/node_modules/js-base64/base64.mjs.js.map +0 -1
  966. package/dist/node_modules/lodash/_Symbol.js +0 -2
  967. package/dist/node_modules/lodash/_Symbol.js.map +0 -1
  968. package/dist/node_modules/lodash/_baseGetTag.js +0 -2
  969. package/dist/node_modules/lodash/_baseGetTag.js.map +0 -1
  970. package/dist/node_modules/lodash/_baseTrim.js +0 -2
  971. package/dist/node_modules/lodash/_baseTrim.js.map +0 -1
  972. package/dist/node_modules/lodash/_freeGlobal.js +0 -2
  973. package/dist/node_modules/lodash/_freeGlobal.js.map +0 -1
  974. package/dist/node_modules/lodash/_getRawTag.js +0 -2
  975. package/dist/node_modules/lodash/_getRawTag.js.map +0 -1
  976. package/dist/node_modules/lodash/_objectToString.js +0 -2
  977. package/dist/node_modules/lodash/_objectToString.js.map +0 -1
  978. package/dist/node_modules/lodash/_root.js +0 -2
  979. package/dist/node_modules/lodash/_root.js.map +0 -1
  980. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -2
  981. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  982. package/dist/node_modules/lodash/debounce.js +0 -2
  983. package/dist/node_modules/lodash/debounce.js.map +0 -1
  984. package/dist/node_modules/lodash/isObject.js +0 -2
  985. package/dist/node_modules/lodash/isObject.js.map +0 -1
  986. package/dist/node_modules/lodash/isObjectLike.js +0 -2
  987. package/dist/node_modules/lodash/isObjectLike.js.map +0 -1
  988. package/dist/node_modules/lodash/isSymbol.js +0 -2
  989. package/dist/node_modules/lodash/isSymbol.js.map +0 -1
  990. package/dist/node_modules/lodash/now.js +0 -2
  991. package/dist/node_modules/lodash/now.js.map +0 -1
  992. package/dist/node_modules/lodash/toNumber.js +0 -2
  993. package/dist/node_modules/lodash/toNumber.js.map +0 -1
  994. package/dist/node_modules/mic-check/lib/index.js +0 -2
  995. package/dist/node_modules/mic-check/lib/index.js.map +0 -1
  996. package/dist/node_modules/mic-check/lib/requestMediaPermissions.js +0 -2
  997. package/dist/node_modules/mic-check/lib/requestMediaPermissions.js.map +0 -1
  998. package/dist/node_modules/moment/moment.js +0 -4
  999. package/dist/node_modules/moment/moment.js.map +0 -1
  1000. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +0 -2
  1001. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +0 -1
  1002. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +0 -2
  1003. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +0 -1
  1004. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +0 -2
  1005. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +0 -1
  1006. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +0 -2
  1007. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +0 -1
  1008. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +0 -2
  1009. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +0 -1
  1010. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +0 -2
  1011. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +0 -1
  1012. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +0 -2
  1013. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +0 -1
  1014. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js +0 -2
  1015. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js.map +0 -1
  1016. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +0 -2
  1017. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +0 -1
  1018. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +0 -2
  1019. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +0 -1
  1020. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js +0 -2
  1021. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +0 -1
  1022. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +0 -2
  1023. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +0 -1
  1024. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js +0 -2
  1025. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js.map +0 -1
  1026. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +0 -2
  1027. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +0 -1
  1028. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +0 -2
  1029. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +0 -1
  1030. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +0 -2
  1031. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +0 -1
  1032. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +0 -2
  1033. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +0 -1
  1034. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js +0 -2
  1035. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js.map +0 -1
  1036. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js +0 -2
  1037. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js.map +0 -1
  1038. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js +0 -2
  1039. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js.map +0 -1
  1040. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js +0 -2
  1041. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js.map +0 -1
  1042. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js +0 -2
  1043. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js.map +0 -1
  1044. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js +0 -2
  1045. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +0 -1
  1046. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +0 -2
  1047. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +0 -1
  1048. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +0 -2
  1049. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +0 -1
  1050. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +0 -2
  1051. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +0 -1
  1052. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +0 -2
  1053. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +0 -1
  1054. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js +0 -2
  1055. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js.map +0 -1
  1056. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js +0 -2
  1057. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js.map +0 -1
  1058. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js +0 -2
  1059. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js.map +0 -1
  1060. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js +0 -2
  1061. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js.map +0 -1
  1062. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +0 -2
  1063. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +0 -1
  1064. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js +0 -2
  1065. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js.map +0 -1
  1066. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js +0 -2
  1067. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js.map +0 -1
  1068. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +0 -2
  1069. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +0 -1
  1070. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +0 -2
  1071. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +0 -1
  1072. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +0 -2
  1073. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +0 -1
  1074. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +0 -2
  1075. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +0 -1
  1076. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js +0 -2
  1077. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js.map +0 -1
  1078. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +0 -2
  1079. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +0 -1
  1080. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js +0 -2
  1081. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +0 -1
  1082. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js +0 -2
  1083. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js.map +0 -1
  1084. package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js +0 -2
  1085. package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js.map +0 -1
  1086. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +0 -2
  1087. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +0 -1
  1088. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js +0 -2
  1089. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +0 -1
  1090. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js +0 -2
  1091. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js.map +0 -1
  1092. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js +0 -2
  1093. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js.map +0 -1
  1094. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +0 -2
  1095. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +0 -1
  1096. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +0 -2
  1097. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +0 -1
  1098. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js +0 -2
  1099. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js.map +0 -1
  1100. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js +0 -2
  1101. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +0 -1
  1102. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js +0 -2
  1103. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js.map +0 -1
  1104. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js +0 -2
  1105. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js.map +0 -1
  1106. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js +0 -2
  1107. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js.map +0 -1
  1108. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js +0 -2
  1109. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +0 -1
  1110. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js +0 -2
  1111. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js.map +0 -1
  1112. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +0 -2
  1113. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +0 -1
  1114. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js +0 -2
  1115. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js.map +0 -1
  1116. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js +0 -2
  1117. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js.map +0 -1
  1118. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +0 -2
  1119. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +0 -1
  1120. package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js +0 -2
  1121. package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js.map +0 -1
  1122. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +0 -2
  1123. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +0 -1
  1124. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +0 -2
  1125. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +0 -1
  1126. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js +0 -2
  1127. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js.map +0 -1
  1128. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js +0 -2
  1129. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js.map +0 -1
  1130. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js +0 -2
  1131. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +0 -1
  1132. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js +0 -2
  1133. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js.map +0 -1
  1134. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js +0 -2
  1135. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js.map +0 -1
  1136. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +0 -2
  1137. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +0 -1
  1138. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js +0 -2
  1139. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js.map +0 -1
  1140. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js +0 -2
  1141. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js.map +0 -1
  1142. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js +0 -2
  1143. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js.map +0 -1
  1144. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js +0 -2
  1145. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js.map +0 -1
  1146. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +0 -2
  1147. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +0 -1
  1148. package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js +0 -2
  1149. package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js.map +0 -1
  1150. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js +0 -2
  1151. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js.map +0 -1
  1152. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +0 -2
  1153. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +0 -1
  1154. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +0 -2
  1155. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +0 -1
  1156. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js +0 -2
  1157. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js.map +0 -1
  1158. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +0 -2
  1159. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +0 -1
  1160. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js +0 -2
  1161. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js.map +0 -1
  1162. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js +0 -2
  1163. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js.map +0 -1
  1164. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +0 -2
  1165. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +0 -1
  1166. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js +0 -2
  1167. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js.map +0 -1
  1168. package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js +0 -2
  1169. package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js.map +0 -1
  1170. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js +0 -2
  1171. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js.map +0 -1
  1172. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js +0 -2
  1173. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js.map +0 -1
  1174. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js +0 -2
  1175. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js.map +0 -1
  1176. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js +0 -2
  1177. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js.map +0 -1
  1178. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js +0 -2
  1179. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js.map +0 -1
  1180. package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js +0 -2
  1181. package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js.map +0 -1
  1182. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js +0 -2
  1183. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js.map +0 -1
  1184. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js +0 -2
  1185. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js.map +0 -1
  1186. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js +0 -2
  1187. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +0 -1
  1188. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js +0 -2
  1189. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js.map +0 -1
  1190. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js +0 -2
  1191. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js.map +0 -1
  1192. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js +0 -2
  1193. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js.map +0 -1
  1194. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js +0 -2
  1195. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js.map +0 -1
  1196. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js +0 -2
  1197. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js.map +0 -1
  1198. package/dist/node_modules/motion-utils/dist/es/array.mjs.js +0 -2
  1199. package/dist/node_modules/motion-utils/dist/es/array.mjs.js.map +0 -1
  1200. package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js +0 -2
  1201. package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js.map +0 -1
  1202. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js +0 -2
  1203. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js.map +0 -1
  1204. package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js +0 -2
  1205. package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js.map +0 -1
  1206. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js +0 -2
  1207. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +0 -1
  1208. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js +0 -2
  1209. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +0 -1
  1210. package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js +0 -2
  1211. package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js.map +0 -1
  1212. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js +0 -2
  1213. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js.map +0 -1
  1214. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js +0 -2
  1215. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js.map +0 -1
  1216. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js +0 -2
  1217. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js.map +0 -1
  1218. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js +0 -2
  1219. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js.map +0 -1
  1220. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js +0 -2
  1221. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js.map +0 -1
  1222. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +0 -2
  1223. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +0 -1
  1224. package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js +0 -2
  1225. package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js.map +0 -1
  1226. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js +0 -2
  1227. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js.map +0 -1
  1228. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js +0 -2
  1229. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js.map +0 -1
  1230. package/dist/node_modules/motion-utils/dist/es/memo.mjs.js +0 -2
  1231. package/dist/node_modules/motion-utils/dist/es/memo.mjs.js.map +0 -1
  1232. package/dist/node_modules/motion-utils/dist/es/noop.mjs.js +0 -2
  1233. package/dist/node_modules/motion-utils/dist/es/noop.mjs.js.map +0 -1
  1234. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +0 -2
  1235. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +0 -1
  1236. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js +0 -2
  1237. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js.map +0 -1
  1238. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js +0 -2
  1239. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +0 -1
  1240. package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js +0 -2
  1241. package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js.map +0 -1
  1242. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js +0 -2
  1243. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js.map +0 -1
  1244. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js +0 -2
  1245. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js.map +0 -1
  1246. package/dist/node_modules/object-assign/index.js +0 -8
  1247. package/dist/node_modules/object-assign/index.js.map +0 -1
  1248. package/dist/node_modules/prop-types/checkPropTypes.js +0 -2
  1249. package/dist/node_modules/prop-types/checkPropTypes.js.map +0 -1
  1250. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
  1251. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  1252. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -2
  1253. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  1254. package/dist/node_modules/prop-types/index.js +0 -2
  1255. package/dist/node_modules/prop-types/index.js.map +0 -1
  1256. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
  1257. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  1258. package/dist/node_modules/prop-types/lib/has.js +0 -2
  1259. package/dist/node_modules/prop-types/lib/has.js.map +0 -1
  1260. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -10
  1261. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  1262. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  1263. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  1264. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -2
  1265. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  1266. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -11
  1267. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  1268. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
  1269. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  1270. package/dist/node_modules/react/jsx-runtime.js +0 -2
  1271. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  1272. package/dist/node_modules/react-i18next/dist/es/context.js +0 -2
  1273. package/dist/node_modules/react-i18next/dist/es/context.js.map +0 -1
  1274. package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -2
  1275. package/dist/node_modules/react-i18next/dist/es/defaults.js.map +0 -1
  1276. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -2
  1277. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js.map +0 -1
  1278. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -2
  1279. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js.map +0 -1
  1280. package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -2
  1281. package/dist/node_modules/react-i18next/dist/es/unescape.js.map +0 -1
  1282. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -2
  1283. package/dist/node_modules/react-i18next/dist/es/useTranslation.js.map +0 -1
  1284. package/dist/node_modules/react-i18next/dist/es/utils.js +0 -2
  1285. package/dist/node_modules/react-i18next/dist/es/utils.js.map +0 -1
  1286. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -10
  1287. package/dist/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  1288. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  1289. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  1290. package/dist/node_modules/react-is/index.js +0 -2
  1291. package/dist/node_modules/react-is/index.js.map +0 -1
  1292. package/dist/node_modules/react-moment/dist/index.js +0 -12
  1293. package/dist/node_modules/react-moment/dist/index.js.map +0 -1
  1294. package/dist/node_modules/react-redux/es/components/Context.js +0 -2
  1295. package/dist/node_modules/react-redux/es/components/Context.js.map +0 -1
  1296. package/dist/node_modules/react-redux/es/components/Provider.js +0 -2
  1297. package/dist/node_modules/react-redux/es/components/Provider.js.map +0 -1
  1298. package/dist/node_modules/react-redux/es/hooks/useDispatch.js +0 -2
  1299. package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +0 -1
  1300. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js +0 -2
  1301. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js.map +0 -1
  1302. package/dist/node_modules/react-redux/es/hooks/useSelector.js +0 -2
  1303. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +0 -1
  1304. package/dist/node_modules/react-redux/es/hooks/useStore.js +0 -2
  1305. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +0 -1
  1306. package/dist/node_modules/react-redux/es/index.js +0 -2
  1307. package/dist/node_modules/react-redux/es/index.js.map +0 -1
  1308. package/dist/node_modules/react-redux/es/utils/Subscription.js +0 -2
  1309. package/dist/node_modules/react-redux/es/utils/Subscription.js.map +0 -1
  1310. package/dist/node_modules/react-redux/es/utils/batch.js +0 -2
  1311. package/dist/node_modules/react-redux/es/utils/batch.js.map +0 -1
  1312. package/dist/node_modules/react-redux/es/utils/shallowEqual.js +0 -2
  1313. package/dist/node_modules/react-redux/es/utils/shallowEqual.js.map +0 -1
  1314. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js +0 -2
  1315. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js.map +0 -1
  1316. package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js +0 -2
  1317. package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js.map +0 -1
  1318. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js +0 -11
  1319. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  1320. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js +0 -11
  1321. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  1322. package/dist/node_modules/react-redux/node_modules/react-is/index.js +0 -2
  1323. package/dist/node_modules/react-redux/node_modules/react-is/index.js.map +0 -1
  1324. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +0 -8
  1325. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +0 -1
  1326. package/dist/node_modules/redux/es/redux.js +0 -2
  1327. package/dist/node_modules/redux/es/redux.js.map +0 -1
  1328. package/dist/node_modules/reselect/es/defaultMemoize.js +0 -2
  1329. package/dist/node_modules/reselect/es/defaultMemoize.js.map +0 -1
  1330. package/dist/node_modules/reselect/es/index.js +0 -2
  1331. package/dist/node_modules/reselect/es/index.js.map +0 -1
  1332. package/dist/node_modules/sdp/sdp.js +0 -2
  1333. package/dist/node_modules/sdp/sdp.js.map +0 -1
  1334. package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.js +0 -2
  1335. package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.js.map +0 -1
  1336. package/dist/node_modules/socket.io-client/build/esm/index.js +0 -2
  1337. package/dist/node_modules/socket.io-client/build/esm/index.js.map +0 -1
  1338. package/dist/node_modules/socket.io-client/build/esm/manager.js +0 -2
  1339. package/dist/node_modules/socket.io-client/build/esm/manager.js.map +0 -1
  1340. package/dist/node_modules/socket.io-client/build/esm/on.js +0 -2
  1341. package/dist/node_modules/socket.io-client/build/esm/on.js.map +0 -1
  1342. package/dist/node_modules/socket.io-client/build/esm/socket.js +0 -2
  1343. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +0 -1
  1344. package/dist/node_modules/socket.io-client/build/esm/url.js +0 -2
  1345. package/dist/node_modules/socket.io-client/build/esm/url.js.map +0 -1
  1346. package/dist/node_modules/socket.io-parser/build/esm/binary.js +0 -2
  1347. package/dist/node_modules/socket.io-parser/build/esm/binary.js.map +0 -1
  1348. package/dist/node_modules/socket.io-parser/build/esm/index.js +0 -2
  1349. package/dist/node_modules/socket.io-parser/build/esm/index.js.map +0 -1
  1350. package/dist/node_modules/socket.io-parser/build/esm/is-binary.js +0 -2
  1351. package/dist/node_modules/socket.io-parser/build/esm/is-binary.js.map +0 -1
  1352. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -2
  1353. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js.map +0 -1
  1354. package/dist/node_modules/tslib/tslib.es6.js +0 -2
  1355. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
  1356. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -11
  1357. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  1358. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -11
  1359. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  1360. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -11
  1361. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  1362. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -11
  1363. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  1364. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -11
  1365. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +0 -1
  1366. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -11
  1367. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +0 -1
  1368. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -2
  1369. package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  1370. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -2
  1371. package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  1372. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -2
  1373. package/dist/node_modules/use-sync-external-store/with-selector.js.map +0 -1
  1374. package/dist/node_modules/void-elements/index.js +0 -2
  1375. package/dist/node_modules/void-elements/index.js.map +0 -1
  1376. package/dist/node_modules/webm-duration-fix/lib/ebml/EBML.js +0 -2
  1377. package/dist/node_modules/webm-duration-fix/lib/ebml/EBML.js.map +0 -1
  1378. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLDecoder.js +0 -2
  1379. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLDecoder.js.map +0 -1
  1380. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLEncoder.js +0 -2
  1381. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLEncoder.js.map +0 -1
  1382. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLReader.js +0 -2
  1383. package/dist/node_modules/webm-duration-fix/lib/ebml/EBMLReader.js.map +0 -1
  1384. package/dist/node_modules/webm-duration-fix/lib/ebml/ebmlID.js +0 -2
  1385. package/dist/node_modules/webm-duration-fix/lib/ebml/ebmlID.js.map +0 -1
  1386. package/dist/node_modules/webm-duration-fix/lib/ebml/index.js +0 -2
  1387. package/dist/node_modules/webm-duration-fix/lib/ebml/index.js.map +0 -1
  1388. package/dist/node_modules/webm-duration-fix/lib/ebml/tools-ebml.js +0 -2
  1389. package/dist/node_modules/webm-duration-fix/lib/ebml/tools-ebml.js.map +0 -1
  1390. package/dist/node_modules/webm-duration-fix/lib/ebml/tools.js +0 -2
  1391. package/dist/node_modules/webm-duration-fix/lib/ebml/tools.js.map +0 -1
  1392. package/dist/node_modules/webm-duration-fix/lib/index.js +0 -2
  1393. package/dist/node_modules/webm-duration-fix/lib/index.js.map +0 -1
  1394. package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js +0 -2
  1395. package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js.map +0 -1
  1396. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +0 -2
  1397. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +0 -1
  1398. package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js +0 -2
  1399. package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js.map +0 -1
  1400. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js +0 -2
  1401. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js.map +0 -1
  1402. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js +0 -2
  1403. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js.map +0 -1
  1404. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js +0 -2
  1405. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js.map +0 -1
  1406. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js +0 -2
  1407. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js.map +0 -1
  1408. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js +0 -2
  1409. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js.map +0 -1
  1410. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +0 -2
  1411. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +0 -1
  1412. package/dist/node_modules/webrtc-adapter/src/js/utils.js +0 -2
  1413. 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("../node_modules/tslib/tslib.es6.js"),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})};
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":"4NAiBA,IACIA,EAA+C,CAAA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d,gBAAc,iCAAkCG,EAClD,+BA/BM,SAA+BF,SAC7BE,IAAIC,EAAA,CAAA,GACPH,EAAMgB,aAAaZ,UAAW,CAC7BY,aAAchB,EAAMgB,aAAaV,WAGrCP,gBAAc,6BAA8BG,EAC9C,gCAyHM,SAAgCF,IAE/BA,eAAAA,EAAOiB,UAKZxB,EAAoBO,EAAMiB,SAAWjB,EAEhCN,IACHA,EAA6BwB,WAC3BvB,EA/JmC,OAuJrCI,gBAAc,8BAA+B,CAAA,EAYjD,oCAlEM,SAAoCC,SAClCE,IAAIC,EAAA,CAAA,GACPH,EAAMmB,QAASnB,KAGlBD,gBAAc,mCAAoCG,EACpD,8BAnBM,SAA8BF,SAC5BE,IAAIC,EAAA,CAAA,GACPH,EAAMoB,OAAQpB,KAGjBD,gBAAc,4BAA6BG,EAC7C,0CAkDEH,gBAAc,+BAAgC,CAAA,EAChD,0BA6BgB,SAAgBsB,EAAaC,GAE3C,IAAIC,EAAgB,CAClBF,IAAKA,EACLC,QAASA,GAEXvB,EAAAA,cAAc,+BAAgC,CAAEwB,cAAaA,GAC/D"}
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,cAAc,sCAAuC,CAAEgB,GAAID,GAC7D,6BAzJM,SAA6Bd,SAC3BE,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,SAIjBd,gBAAc,iCAAkCG,EAClD,+BA/BM,SAA+BF,SAC7BE,IAAIC,EAAA,CAAA,GACPH,EAAMgB,aAAaZ,UAAW,CAC7BY,aAAchB,EAAMgB,aAAaV,WAGrCP,gBAAc,6BAA8BG,EAC9C,gCAyHM,SAAgCF,IAE/BA,eAAAA,EAAOiB,UAKZxB,EAAoBO,EAAMiB,SAAWjB,EAEhCN,IACHA,EAA6BwB,WAC3BvB,EA/JmC,OAuJrCI,gBAAc,8BAA+B,CAAA,EAYjD,oCAlEM,SAAoCC,SAClCE,IAAIC,EAAA,CAAA,GACPH,EAAMmB,QAASnB,KAGlBD,gBAAc,mCAAoCG,EACpD,8BAnBM,SAA8BF,SAC5BE,IAAIC,EAAA,CAAA,GACPH,EAAMoB,OAAQpB,KAGjBD,gBAAc,4BAA6BG,EAC7C,0CAkDEH,gBAAc,+BAAgC,CAAA,EAChD,0BA6BgB,SAAgBsB,EAAaC,GAE3C,IAAIC,EAAgB,CAClBF,IAAKA,EACLC,QAASA,GAEXvB,EAAAA,cAAc,+BAAgC,CAAEwB,cAAaA,GAC/D"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),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,o,u;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:(o=e.sent())&&Object.values(o).length>0&&(u=(new Date).getTime()+s,r.saveCache("operatorsAvatars",o,n,u),t.store.dispatch.avatars.updateAvatars(o)),e.label=3;case 3:return[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))};
1
+ "use strict";Object.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":"0OAQaA,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"}
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"}
@@ -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("../node_modules/tslib/tslib.es6.js");var s=require("../store/index.js"),r=function(){document.documentElement.classList.add("pi-dark")},i=function(){document.documentElement.classList.remove("pi-dark")},c=function(){var e=t.getJSONItem("phone-island-theme-selected")||{},c="system";"dark"===e.themeSelected?(c="dark",r()):"light"===e.themeSelected?(c="light",i()):window.matchMedia("(prefers-color-scheme: dark)").matches?r():i(),s.store.dispatch.darkTheme.update(c)};exports.checkDarkTheme=c,exports.setTheme=function(s){t.setJSONItem("phone-island-theme-selected",{themeSelected:s}),c(),e.eventDispatch("phone-island-theme-changed",{})};
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":"yRAMMA,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
+ {"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}),require("../../node_modules/mic-check/lib/index.js");var e=require("../webrtc/janus.js"),i=require("../../store/index.js"),r=require("../user/default_device.js");require("react");var t=require("../../utils/genericFunctions/localStorage.js");require("../../node_modules/tslib/tslib.es6.js");var n=require("../../_virtual/index8.js"),o=e.default;exports.checkMediaPermissions=function(){if(r.isPhysical())return i.store.dispatch.alerts.removeAlert("browser_permissions"),i.store.dispatch.alerts.removeAlert("user_permissions"),i.store.dispatch.alerts.removeAlert("busy_camera"),void i.store.dispatch.alerts.removeAlert("unknown_media_permissions");n.__exports.requestMediaPermissions({audio:!0}).then((function(){})).catch((function(e){var r,t,s=e.type,d=null!==(t=((r={})[n.__exports.MediaPermissionsErrorType.SystemPermissionDenied]={alert:"browser_permissions",message:"WebRTC: browser does not have permission to access camera or microphone"},r[n.__exports.MediaPermissionsErrorType.UserPermissionDenied]={alert:"user_permissions",message:"WebRTC: user didn't allow app to access camera or microphone"},r)[s])&&void 0!==t?t:{alert:"unknown_media_permissions",message:"WebRTC: can't access audio or camera on this device. unknown error"};i.store.dispatch.alerts.setAlert(d.alert),o.error&&o.error(d.message)}))},exports.checkWebCamPermission=function(){return new Promise((function(e){n.__exports.requestMediaPermissions({video:!0}).then((function(){e(!0)})).catch((function(i){console.error("Error requesting webcam permission:",i),e(!1)}))}))},exports.getCurrentAudioInputDeviceId=function(){var e=t.getJSONItem("phone-island-audio-input-device").deviceId||null,r=i.store.select.mediaDevices.audioInputDevices(i.store.getState());if(r.find((function(i){return i.deviceId===e})))return e;var n=r.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||r[0],o=n?n.deviceId:"default";return null!==e&&o!==e&&(console.warn("Audio input device ".concat(e," no longer available, falling back to default device")),t.setJSONItem("phone-island-audio-input-device",{deviceId:o})),o},exports.getCurrentAudioOutputDeviceId=function(){var e=t.getJSONItem("phone-island-audio-output-device").deviceId||null,r=i.store.select.mediaDevices.audioOutputDevices(i.store.getState());if(r.find((function(i){return i.deviceId===e})))return e;var n=r.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||r[0],o=n?n.deviceId:"default";return null!==e&&o!==e&&(console.warn("Audio output device ".concat(e," no longer available, falling back to default device")),t.setJSONItem("phone-island-audio-output-device",{deviceId:o})),o},exports.getCurrentVideoInputDeviceId=function(){var e=t.getJSONItem("phone-island-video-input-device").deviceId||null,r=i.store.select.mediaDevices.videoInputDevices(i.store.getState());if(r.find((function(i){return i.deviceId===e})))return e;var n=r.find((function(e){return"default"===e.deviceId||""===e.deviceId}))||r[0],o=n?n.deviceId:"default";return null!==e&&o!==e&&(console.warn("Video input device ".concat(e," no longer available, falling back to default device")),t.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()}))};
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,GAFoBH,EAAkBI,MAAK,SAACC,GAAW,OAAAA,EAAON,WAAaF,CAApB,IAGrD,OAAOA,EAGP,IAAMS,EAAgBN,E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mC,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"],"mappings":"wSAeA,IAAMA,EAAoBC,EAAAA,sCAoEW,WAEnC,GAAIC,EAAUA,aAKZ,OAJAC,EAAAA,MAAMC,SAASC,OAAOC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AOlD,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("../node_modules/i18next/dist/esm/i18next.js");require("../node_modules/@babel/runtime/helpers/defineProperty.js"),require("../node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),require("react"),require("../node_modules/@babel/runtime/helpers/typeof.js"),require("../node_modules/html-parse-stringify/dist/html-parse-stringify.js"),require("../node_modules/react-i18next/dist/es/context.js"),require("../node_modules/@babel/runtime/helpers/slicedToArray.js");var t=require("../node_modules/react-i18next/dist/es/initReactI18next.js"),r=require("../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"),s=require("../public/locales/en/translation.json.js"),n=require("../public/locales/it/translation.json.js"),i=!1;e.default.createInstance(),exports.initI18n=function(){if(i)return Promise.resolve();var o={resources:{en:{translations:s.default},it:{translations:n.default}},fallbackLng:"en",ns:["translations"],defaultNS:"translations",interpolation:{escapeValue:!1},detection:{order:["navigator"]},react:{useSuspense:!1},supportedLngs:["en","it"]};return i=!0,e.default.use(r.default).use(t.initReactI18next).init(o)};
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
@@ -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":"20BAMIA,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
+ {"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("../../node_modules/tslib/tslib.es6.js"),exports.backToPreviousView=function(){var s=e.store.getState().island,i=s.view,r=s.previousView;t.eventDispatch("phone-island-call-".concat(i,"-closed"),{}),e.store.dispatch.island.setIslandView("".concat(r||"call"))},exports.xPosition=function(e,t,s){var i=s.offsetWidth/2-t.offsetWidth/2;return e>0&&e>i?i:e<0&&e<-i?-i:e},exports.yPosition=function(e,t,s){var i=s.offsetHeight/2-t.offsetHeight/2;return e>0&&e>i?i:e<0&&e<-i?-i:e};
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":"iRAsCQ,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"}
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"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),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)}}))]}))}))};
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":"6LAQM,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"}
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"}
@@ -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,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,MAA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,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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B,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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),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]}}))}))};
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":"qTAwEM,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
+ {"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,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:!0}),require("react");var e=require("../../utils/genericFunctions/localStorage.js");require("../../node_modules/tslib/tslib.es6.js"),require("../../store/index.js");exports.loadCache=function(t,r){var i=(e.getJSONItem("caches-".concat(r))||{})[t];if(!(i&&i._expiration&&(new Date).getTime()>i._expiration))return i},exports.saveCache=function(t,r,i,c){if(i){var a=e.getJSONItem("caches-".concat(i))||{},s=r;s._expiration=c,a[t]=s,e.setJSONItem("caches-".concat(i),a)}};
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":"sPAmCyB,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"}
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"}