@cometchat/chat-uikit-react-native 4.3.6 → 4.3.8

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 (1615) hide show
  1. package/lib/AI/AIAssistBot/AIAssistBotDecorator.d.ts +23 -0
  2. package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +127 -0
  3. package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -0
  4. package/lib/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
  5. package/lib/AI/AIAssistBot/AIAssistBotExtension.js +17 -0
  6. package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -0
  7. package/lib/AI/AIAssistBot/AIAssistBotStyle.d.ts +27 -0
  8. package/lib/AI/AIAssistBot/AIAssistBotStyle.js +38 -0
  9. package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -0
  10. package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +12 -0
  11. package/lib/AI/AIAssistBot/AIAssistBotView.js +188 -0
  12. package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -0
  13. package/lib/AI/AIAssistBot/configuration.d.ts +18 -0
  14. package/lib/AI/AIAssistBot/configuration.js +19 -0
  15. package/lib/AI/AIAssistBot/configuration.js.map +1 -0
  16. package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
  17. package/lib/AI/AIAssistBot/resources/index.d.ts +2 -0
  18. package/lib/AI/AIAssistBot/resources/index.js +3 -0
  19. package/lib/AI/AIAssistBot/resources/index.js.map +1 -0
  20. package/lib/AI/AIBaseConfiguration.js +14 -0
  21. package/lib/AI/AIBaseConfiguration.js.map +1 -0
  22. package/lib/AI/AIBaseStyle.d.ts +24 -0
  23. package/lib/AI/AIBaseStyle.js +31 -0
  24. package/lib/AI/AIBaseStyle.js.map +1 -0
  25. package/lib/AI/AIConversationStarter/AIConversationStarter.d.ts +8 -0
  26. package/lib/AI/AIConversationStarter/AIConversationStarter.js +17 -0
  27. package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -0
  28. package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +187 -0
  29. package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -0
  30. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +9 -0
  31. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +13 -0
  32. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -0
  33. package/lib/AI/AIConversationStarter/configuration.d.ts +7 -0
  34. package/lib/AI/AIConversationStarter/configuration.js +10 -0
  35. package/lib/AI/AIConversationStarter/configuration.js.map +1 -0
  36. package/lib/AI/AIConversationStarter/style.d.ts +19 -0
  37. package/lib/AI/AIConversationStarter/style.js +62 -0
  38. package/lib/AI/AIConversationStarter/style.js.map +1 -0
  39. package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +25 -0
  40. package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +149 -0
  41. package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -0
  42. package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
  43. package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +17 -0
  44. package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -0
  45. package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.d.ts +15 -0
  46. package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +18 -0
  47. package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -0
  48. package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +14 -0
  49. package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +134 -0
  50. package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -0
  51. package/lib/AI/AIConversationSummary/configuration.d.ts +9 -0
  52. package/lib/AI/AIConversationSummary/configuration.js +13 -0
  53. package/lib/AI/AIConversationSummary/configuration.js.map +1 -0
  54. package/lib/AI/AIConversationSummary/resources/close.png +0 -0
  55. package/lib/AI/AIConversationSummary/resources/index.d.ts +2 -0
  56. package/lib/AI/AIConversationSummary/resources/index.js +3 -0
  57. package/lib/AI/AIConversationSummary/resources/index.js.map +1 -0
  58. package/lib/AI/AIExtensionDataSource.d.ts +6 -0
  59. package/lib/AI/AIExtensionDataSource.js +11 -0
  60. package/lib/AI/AIExtensionDataSource.js.map +1 -0
  61. package/lib/AI/AIOptionsStyle.d.ts +10 -0
  62. package/lib/AI/AIOptionsStyle.js +14 -0
  63. package/lib/AI/AIOptionsStyle.js.map +1 -0
  64. package/lib/AI/AISmartReplies/AISmartReplies.d.ts +8 -0
  65. package/lib/AI/AISmartReplies/AISmartReplies.js +17 -0
  66. package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -0
  67. package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +239 -0
  68. package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -0
  69. package/lib/AI/AISmartReplies/AISmartRepliesStyle.d.ts +12 -0
  70. package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +15 -0
  71. package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -0
  72. package/lib/AI/AISmartReplies/configuration.d.ts +7 -0
  73. package/lib/AI/AISmartReplies/configuration.js +10 -0
  74. package/lib/AI/AISmartReplies/configuration.js.map +1 -0
  75. package/lib/AI/CardView.d.ts +18 -0
  76. package/lib/AI/CardView.js +45 -0
  77. package/lib/AI/CardView.js.map +1 -0
  78. package/lib/AI/CardViewStyle.d.ts +29 -0
  79. package/lib/AI/CardViewStyle.js +36 -0
  80. package/lib/AI/CardViewStyle.js.map +1 -0
  81. package/lib/AI/resources/ai-empty.png +0 -0
  82. package/lib/AI/resources/ai-error.png +0 -0
  83. package/lib/AI/resources/index.d.ts +4 -0
  84. package/lib/AI/resources/index.js +5 -0
  85. package/lib/AI/resources/index.js.map +1 -0
  86. package/lib/AI/resources/spineer.png +0 -0
  87. package/lib/AI/style.d.ts +51 -0
  88. package/lib/AI/style.js +139 -0
  89. package/lib/AI/style.js.map +1 -0
  90. package/lib/AI/utils.d.ts +38 -0
  91. package/lib/AI/utils.js +28 -0
  92. package/lib/AI/utils.js.map +1 -0
  93. package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
  94. package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +1 -2
  95. package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
  96. package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +1 -2
  97. package/lib/CometChatBannedMembers/CometChatBannedMembers.js +1 -1
  98. package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
  99. package/lib/CometChatBannedMembers/resources/clear.png +0 -0
  100. package/lib/CometChatContacts/CometChatContacts.d.ts +1 -2
  101. package/lib/CometChatContacts/CometChatContacts.js +10 -7
  102. package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
  103. package/lib/CometChatContacts/Header.js.map +1 -1
  104. package/lib/CometChatContacts/styles.d.ts +1 -100
  105. package/lib/CometChatConversations/CometChatConversations.js +208 -114
  106. package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
  107. package/lib/CometChatConversations/ConversationsConfiguration.js +12 -1
  108. package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
  109. package/lib/CometChatConversations/resources/back.png +0 -0
  110. package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
  111. package/lib/CometChatConversations/resources/close.png +0 -0
  112. package/lib/CometChatConversations/resources/delete.png +0 -0
  113. package/lib/CometChatConversations/resources/error.png +0 -0
  114. package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
  115. package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
  116. package/lib/CometChatConversations/resources/new.png +0 -0
  117. package/lib/CometChatConversations/resources/password.png +0 -0
  118. package/lib/CometChatConversations/resources/private.png +0 -0
  119. package/lib/CometChatConversations/resources/rightTick.png +0 -0
  120. package/lib/CometChatConversations/resources/sending.png +0 -0
  121. package/lib/CometChatConversations/resources/spineer.png +0 -0
  122. package/lib/CometChatConversations/style.d.ts +1 -61
  123. package/lib/CometChatConversations/style.js +5 -1
  124. package/lib/CometChatConversations/style.js.map +1 -1
  125. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +1 -2
  126. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +2 -2
  127. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
  128. package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
  129. package/lib/CometChatConversationsWithMessages/styles.d.ts +1 -12
  130. package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +1 -2
  131. package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
  132. package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
  133. package/lib/CometChatCreateGroup/Header.d.ts +1 -2
  134. package/lib/CometChatCreateGroup/resources/close.png +0 -0
  135. package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
  136. package/lib/CometChatCreateGroup/resources/warning.png +0 -0
  137. package/lib/CometChatCreateGroup/style.d.ts +1 -46
  138. package/lib/CometChatDetails/CometChatDetails.js +11 -8
  139. package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
  140. package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
  141. package/lib/CometChatDetails/Header.d.ts +1 -2
  142. package/lib/CometChatDetails/listners.d.ts +4 -4
  143. package/lib/CometChatDetails/resources/Back.png +0 -0
  144. package/lib/CometChatDetails/resources/close.png +0 -0
  145. package/lib/CometChatDetails/resources/password.png +0 -0
  146. package/lib/CometChatDetails/resources/private.png +0 -0
  147. package/lib/CometChatDetails/resources/right-arrow.png +0 -0
  148. package/lib/CometChatDetails/styles.d.ts +1 -28
  149. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +18 -5
  150. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  151. package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
  152. package/lib/CometChatGroupMembers/resources/check.png +0 -0
  153. package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
  154. package/lib/CometChatGroupMembers/resources/index.d.ts +2 -1
  155. package/lib/CometChatGroupMembers/resources/index.js +2 -1
  156. package/lib/CometChatGroupMembers/resources/index.js.map +1 -1
  157. package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
  158. package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
  159. package/lib/CometChatGroupMembers/style.d.ts +1 -31
  160. package/lib/CometChatGroups/CometChatGroups.js +20 -8
  161. package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
  162. package/lib/CometChatGroups/resources/back.png +0 -0
  163. package/lib/CometChatGroups/resources/check.png +0 -0
  164. package/lib/CometChatGroups/resources/close.png +0 -0
  165. package/lib/CometChatGroups/resources/create.png +0 -0
  166. package/lib/CometChatGroups/resources/index.d.ts +2 -1
  167. package/lib/CometChatGroups/resources/index.js +2 -1
  168. package/lib/CometChatGroups/resources/index.js.map +1 -1
  169. package/lib/CometChatGroups/resources/more.png +0 -0
  170. package/lib/CometChatGroups/resources/password.png +0 -0
  171. package/lib/CometChatGroups/resources/private.png +0 -0
  172. package/lib/CometChatGroups/resources/rightTick.png +0 -0
  173. package/lib/CometChatGroups/resources/search.png +0 -0
  174. package/lib/CometChatGroups/resources/spineer.png +0 -0
  175. package/lib/CometChatGroups/style.d.ts +1 -16
  176. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +1 -2
  177. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
  178. package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
  179. package/lib/CometChatGroupsWithMessages/styles.d.ts +1 -12
  180. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +1 -2
  181. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
  182. package/lib/CometChatJoinProtectedGroup/Header.d.ts +1 -2
  183. package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
  184. package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
  185. package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
  186. package/lib/CometChatJoinProtectedGroup/style.d.ts +1 -11
  187. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +534 -52
  188. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  189. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +12 -0
  190. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
  191. package/lib/CometChatMessageComposer/resources/Info.png +0 -0
  192. package/lib/CometChatMessageComposer/resources/ai.png +0 -0
  193. package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
  194. package/lib/CometChatMessageComposer/resources/close.png +0 -0
  195. package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
  196. package/lib/CometChatMessageComposer/resources/heart.png +0 -0
  197. package/lib/CometChatMessageComposer/resources/image.png +0 -0
  198. package/lib/CometChatMessageComposer/resources/index.d.ts +2 -0
  199. package/lib/CometChatMessageComposer/resources/index.js +4 -0
  200. package/lib/CometChatMessageComposer/resources/index.js.map +1 -1
  201. package/lib/CometChatMessageComposer/resources/microphone.png +0 -0
  202. package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
  203. package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
  204. package/lib/CometChatMessageComposer/styles.d.ts +1 -28
  205. package/lib/CometChatMessageComposer/styles.js +1 -3
  206. package/lib/CometChatMessageComposer/styles.js.map +1 -1
  207. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +8 -2
  208. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  209. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
  210. package/lib/CometChatMessageHeader/listners.d.ts +4 -4
  211. package/lib/CometChatMessageHeader/listners.js +4 -5
  212. package/lib/CometChatMessageHeader/listners.js.map +1 -1
  213. package/lib/CometChatMessageHeader/resources/Back.png +0 -0
  214. package/lib/CometChatMessageHeader/resources/password.png +0 -0
  215. package/lib/CometChatMessageHeader/resources/private.png +0 -0
  216. package/lib/CometChatMessageHeader/styles.d.ts +1 -16
  217. package/lib/CometChatMessageInformation/CometChatMessageInformation.js +32 -18
  218. package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
  219. package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
  220. package/lib/CometChatMessageInformation/styles.d.ts +1 -23
  221. package/lib/CometChatMessageList/CometChatMessageList.js +782 -266
  222. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  223. package/lib/CometChatMessageList/MessageListConfiguration.js +30 -0
  224. package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
  225. package/lib/CometChatMessageList/resources/back.png +0 -0
  226. package/lib/CometChatMessageList/resources/close.png +0 -0
  227. package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
  228. package/lib/CometChatMessageList/resources/index.d.ts +3 -1
  229. package/lib/CometChatMessageList/resources/index.js +3 -1
  230. package/lib/CometChatMessageList/resources/index.js.map +1 -1
  231. package/lib/CometChatMessageList/resources/leftarrowcurve.png +0 -0
  232. package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
  233. package/lib/CometChatMessageList/resources/rightarrowcurve.png +0 -0
  234. package/lib/CometChatMessageList/resources/spineer.png +0 -0
  235. package/lib/CometChatMessageList/style.d.ts +1 -52
  236. package/lib/CometChatMessages/CometChatMessages.js +31 -19
  237. package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
  238. package/lib/CometChatMessages/MessagesConfiguration.js +1 -1
  239. package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
  240. package/lib/CometChatMessages/resources/info.png +0 -0
  241. package/lib/CometChatMessages/style.d.ts +1 -21
  242. package/lib/CometChatTabs/CometChatTabs.d.ts +1 -2
  243. package/lib/CometChatTabs/CometChatTabs.js +1 -1
  244. package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
  245. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +54 -20
  246. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
  247. package/lib/CometChatThreadedMessages/Header.d.ts +1 -2
  248. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +15 -0
  249. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
  250. package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
  251. package/lib/CometChatThreadedMessages/resources/close.png +0 -0
  252. package/lib/CometChatThreadedMessages/resources/more.png +0 -0
  253. package/lib/CometChatThreadedMessages/resources/password.png +0 -0
  254. package/lib/CometChatThreadedMessages/resources/private.png +0 -0
  255. package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
  256. package/lib/CometChatThreadedMessages/style.d.ts +1 -28
  257. package/lib/CometChatThreadedMessages/style.js +3 -1
  258. package/lib/CometChatThreadedMessages/style.js.map +1 -1
  259. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +1 -2
  260. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
  261. package/lib/CometChatUsers/CometChatUsers.js +1 -1
  262. package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
  263. package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
  264. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +1 -2
  265. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
  266. package/lib/CometChatUsersWithMessages/styles.d.ts +1 -12
  267. package/lib/calls/CallEvents.d.ts +1 -0
  268. package/lib/calls/CallEvents.js +1 -0
  269. package/lib/calls/CallEvents.js.map +1 -1
  270. package/lib/calls/CallUtils.d.ts +3 -0
  271. package/lib/calls/CallUtils.js +106 -50
  272. package/lib/calls/CallUtils.js.map +1 -1
  273. package/lib/calls/CallingDetailsUtils.d.ts +4 -4
  274. package/lib/calls/CallingDetailsUtils.js +79 -11
  275. package/lib/calls/CallingDetailsUtils.js.map +1 -1
  276. package/lib/calls/CallingExtentionDecorator.d.ts +6 -5
  277. package/lib/calls/CallingExtentionDecorator.js +41 -28
  278. package/lib/calls/CallingExtentionDecorator.js.map +1 -1
  279. package/lib/calls/CallingPackage.js +13 -2
  280. package/lib/calls/CallingPackage.js.map +1 -1
  281. package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +1 -2
  282. package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
  283. package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
  284. package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
  285. package/lib/calls/CometChatCallBubble/styles.d.ts +1 -20
  286. package/lib/calls/CometChatCallBubble/styles.js +2 -1
  287. package/lib/calls/CometChatCallBubble/styles.js.map +1 -1
  288. package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +1 -2
  289. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +13 -4
  290. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
  291. package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
  292. package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
  293. package/lib/calls/CometChatCallButtons/style.d.ts +1 -12
  294. package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +58 -0
  295. package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -0
  296. package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.d.ts +12 -0
  297. package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +19 -0
  298. package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -0
  299. package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +180 -0
  300. package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -0
  301. package/lib/calls/CometChatCallLogDetails/index.d.ts +4 -0
  302. package/lib/calls/CometChatCallLogDetails/index.js +5 -0
  303. package/lib/calls/CometChatCallLogDetails/index.js.map +1 -0
  304. package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
  305. package/lib/calls/CometChatCallLogDetails/resources/index.d.ts +2 -0
  306. package/lib/calls/CometChatCallLogDetails/resources/index.js +3 -0
  307. package/lib/calls/CometChatCallLogDetails/resources/index.js.map +1 -0
  308. package/lib/calls/CometChatCallLogDetails/style.d.ts +1 -0
  309. package/lib/calls/CometChatCallLogDetails/style.js +15 -0
  310. package/lib/calls/CometChatCallLogDetails/style.js.map +1 -0
  311. package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +33 -0
  312. package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -0
  313. package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.d.ts +40 -0
  314. package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +25 -0
  315. package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -0
  316. package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +183 -0
  317. package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -0
  318. package/lib/calls/CometChatCallLogHistory/index.d.ts +4 -0
  319. package/lib/calls/CometChatCallLogHistory/index.js +5 -0
  320. package/lib/calls/CometChatCallLogHistory/index.js.map +1 -0
  321. package/lib/calls/CometChatCallLogHistory/resources/Back.png +0 -0
  322. package/lib/calls/CometChatCallLogHistory/resources/Call.png +0 -0
  323. package/lib/calls/CometChatCallLogHistory/resources/Info.png +0 -0
  324. package/lib/calls/CometChatCallLogHistory/resources/Selection.png +0 -0
  325. package/lib/calls/CometChatCallLogHistory/resources/Spineer.png +0 -0
  326. package/lib/calls/CometChatCallLogHistory/resources/Video.png +0 -0
  327. package/lib/calls/CometChatCallLogHistory/resources/check.png +0 -0
  328. package/lib/calls/CometChatCallLogHistory/resources/incomingcall.png +0 -0
  329. package/lib/calls/CometChatCallLogHistory/resources/incomingvideo.png +0 -0
  330. package/lib/calls/CometChatCallLogHistory/resources/index.d.ts +14 -0
  331. package/lib/calls/CometChatCallLogHistory/resources/index.js +15 -0
  332. package/lib/calls/CometChatCallLogHistory/resources/index.js.map +1 -0
  333. package/lib/calls/CometChatCallLogHistory/resources/missedcall.png +0 -0
  334. package/lib/calls/CometChatCallLogHistory/resources/missedvideo.png +0 -0
  335. package/lib/calls/CometChatCallLogHistory/resources/outgoingcall.png +0 -0
  336. package/lib/calls/CometChatCallLogHistory/resources/outgoingvideo.png +0 -0
  337. package/lib/calls/CometChatCallLogHistory/style.d.ts +1 -0
  338. package/lib/calls/CometChatCallLogHistory/style.js +24 -0
  339. package/lib/calls/CometChatCallLogHistory/style.js.map +1 -0
  340. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +32 -0
  341. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -0
  342. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.d.ts +24 -0
  343. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +31 -0
  344. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -0
  345. package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +96 -0
  346. package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -0
  347. package/lib/calls/CometChatCallLogParticipants/index.d.ts +4 -0
  348. package/lib/calls/CometChatCallLogParticipants/index.js +5 -0
  349. package/lib/calls/CometChatCallLogParticipants/index.js.map +1 -0
  350. package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
  351. package/lib/calls/CometChatCallLogParticipants/resources/index.d.ts +2 -0
  352. package/lib/calls/CometChatCallLogParticipants/resources/index.js +3 -0
  353. package/lib/calls/CometChatCallLogParticipants/resources/index.js.map +1 -0
  354. package/lib/calls/CometChatCallLogParticipants/style.d.ts +1 -0
  355. package/lib/calls/CometChatCallLogParticipants/style.js +24 -0
  356. package/lib/calls/CometChatCallLogParticipants/style.js.map +1 -0
  357. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +33 -0
  358. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -0
  359. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.d.ts +26 -0
  360. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +33 -0
  361. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -0
  362. package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +133 -0
  363. package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -0
  364. package/lib/calls/CometChatCallLogRecordings/index.d.ts +4 -0
  365. package/lib/calls/CometChatCallLogRecordings/index.js +5 -0
  366. package/lib/calls/CometChatCallLogRecordings/index.js.map +1 -0
  367. package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
  368. package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
  369. package/lib/calls/CometChatCallLogRecordings/resources/index.d.ts +3 -0
  370. package/lib/calls/CometChatCallLogRecordings/resources/index.js +4 -0
  371. package/lib/calls/CometChatCallLogRecordings/resources/index.js.map +1 -0
  372. package/lib/calls/CometChatCallLogRecordings/style.d.ts +1 -0
  373. package/lib/calls/CometChatCallLogRecordings/style.js +24 -0
  374. package/lib/calls/CometChatCallLogRecordings/style.js.map +1 -0
  375. package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +44 -0
  376. package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -0
  377. package/lib/calls/CometChatCallLogs/CallLogsStyle.d.ts +42 -0
  378. package/lib/calls/CometChatCallLogs/CallLogsStyle.js +49 -0
  379. package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -0
  380. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +288 -0
  381. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -0
  382. package/lib/calls/CometChatCallLogs/index.d.ts +4 -0
  383. package/lib/calls/CometChatCallLogs/index.js +5 -0
  384. package/lib/calls/CometChatCallLogs/index.js.map +1 -0
  385. package/lib/calls/CometChatCallLogs/resources/Back.png +0 -0
  386. package/lib/calls/CometChatCallLogs/resources/Info.png +0 -0
  387. package/lib/calls/CometChatCallLogs/resources/Selection.png +0 -0
  388. package/lib/calls/CometChatCallLogs/resources/Spinner.png +0 -0
  389. package/lib/calls/CometChatCallLogs/resources/check.png +0 -0
  390. package/lib/calls/CometChatCallLogs/resources/incomingcall.png +0 -0
  391. package/lib/calls/CometChatCallLogs/resources/incomingvideo.png +0 -0
  392. package/lib/calls/CometChatCallLogs/resources/index.d.ts +12 -0
  393. package/lib/calls/CometChatCallLogs/resources/index.js +13 -0
  394. package/lib/calls/CometChatCallLogs/resources/index.js.map +1 -0
  395. package/lib/calls/CometChatCallLogs/resources/missedcall.png +0 -0
  396. package/lib/calls/CometChatCallLogs/resources/missedvideo.png +0 -0
  397. package/lib/calls/CometChatCallLogs/resources/outgoingcall.png +0 -0
  398. package/lib/calls/CometChatCallLogs/resources/outgoingvideo.png +0 -0
  399. package/lib/calls/CometChatCallLogs/style.d.ts +1 -0
  400. package/lib/calls/CometChatCallLogs/style.js +24 -0
  401. package/lib/calls/CometChatCallLogs/style.js.map +1 -0
  402. package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.d.ts +8 -0
  403. package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js +2 -0
  404. package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js.map +1 -0
  405. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +11 -0
  406. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +23 -0
  407. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -0
  408. package/lib/calls/CometChatCallLogsWithDetails/index.d.ts +3 -0
  409. package/lib/calls/CometChatCallLogsWithDetails/index.js +3 -0
  410. package/lib/calls/CometChatCallLogsWithDetails/index.js.map +1 -0
  411. package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +1 -0
  412. package/lib/calls/CometChatCallLogsWithDetails/style.js +10 -0
  413. package/lib/calls/CometChatCallLogsWithDetails/style.js.map +1 -0
  414. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +14 -11
  415. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
  416. package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
  417. package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
  418. package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
  419. package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
  420. package/lib/calls/CometChatIncomingCall/styles.d.ts +1 -9
  421. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +1 -2
  422. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
  423. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -2
  424. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +21 -12
  425. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
  426. package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
  427. package/lib/calls/index.d.ts +7 -1
  428. package/lib/calls/index.js +7 -1
  429. package/lib/calls/index.js.map +1 -1
  430. package/lib/calls/resources/Call.png +0 -0
  431. package/lib/calls/resources/Video.png +0 -0
  432. package/lib/calls/resources/index.d.ts +2 -1
  433. package/lib/calls/resources/index.js +2 -1
  434. package/lib/calls/resources/index.js.map +1 -1
  435. package/lib/calls/resources/nextarrow.png +0 -0
  436. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +1 -2
  437. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
  438. package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
  439. package/lib/extensions/CollaborativeBubble/styles.d.ts +1 -33
  440. package/lib/extensions/CollaborativeBubble/styles.js +2 -0
  441. package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
  442. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
  443. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +3 -4
  444. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +2 -2
  445. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
  446. package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
  447. package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
  448. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
  449. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -4
  450. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +2 -2
  451. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
  452. package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
  453. package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
  454. package/lib/extensions/ExtensionConstants.js +1 -1
  455. package/lib/extensions/ExtensionConstants.js.map +1 -1
  456. package/lib/extensions/ExtensionModerator.js.map +1 -1
  457. package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
  458. package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
  459. package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +1 -2
  460. package/lib/extensions/ImageModeration/ImageModerationFilter.js +4 -4
  461. package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
  462. package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
  463. package/lib/extensions/LinkPreview/LinkPreviewBubble.js +33 -6
  464. package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
  465. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +3 -3
  466. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
  467. package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
  468. package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +3 -2
  469. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +27 -6
  470. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
  471. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +66 -5
  472. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
  473. package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
  474. package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
  475. package/lib/extensions/Polls/Header.d.ts +1 -2
  476. package/lib/extensions/Polls/Polls.d.ts +1 -2
  477. package/lib/extensions/Polls/Polls.js +109 -78
  478. package/lib/extensions/Polls/Polls.js.map +1 -1
  479. package/lib/extensions/Polls/PollsBubble.d.ts +1 -2
  480. package/lib/extensions/Polls/PollsBubble.js +43 -16
  481. package/lib/extensions/Polls/PollsBubble.js.map +1 -1
  482. package/lib/extensions/Polls/PollsDecorator.d.ts +3 -4
  483. package/lib/extensions/Polls/PollsDecorator.js +2 -2
  484. package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
  485. package/lib/extensions/Polls/PollsExtension.js.map +1 -1
  486. package/lib/extensions/Polls/resources/close.png +0 -0
  487. package/lib/extensions/Polls/resources/document.png +0 -0
  488. package/lib/extensions/Polls/resources/kickIcon.png +0 -0
  489. package/lib/extensions/Polls/resources/rightTick.png +0 -0
  490. package/lib/extensions/Polls/resources/warning.png +0 -0
  491. package/lib/extensions/Polls/style.d.ts +1 -45
  492. package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +0 -1
  493. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +16 -8
  494. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
  495. package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
  496. package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +1 -2
  497. package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
  498. package/lib/extensions/SmartReplies/resources/close.png +0 -0
  499. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +1 -2
  500. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +6 -1
  501. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
  502. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
  503. package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +1 -55
  504. package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +3 -3
  505. package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +1 -1
  506. package/lib/extensions/Stickers/StickersBubble.d.ts +1 -2
  507. package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -5
  508. package/lib/extensions/Stickers/StickersExtensionDecorator.js +19 -8
  509. package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
  510. package/lib/extensions/Stickers/resources/Stickers.png +0 -0
  511. package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
  512. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +2 -3
  513. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +2 -2
  514. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
  515. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +5 -3
  516. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
  517. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
  518. package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
  519. package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -0
  520. package/lib/extensions/ThumbnailGeneration/resources/index.js +3 -0
  521. package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -0
  522. package/lib/extensions/index.d.ts +1 -2
  523. package/lib/extensions/index.js +1 -2
  524. package/lib/extensions/index.js.map +1 -1
  525. package/lib/index.d.ts +24 -4
  526. package/lib/index.js +37 -7
  527. package/lib/index.js.map +1 -1
  528. package/lib/shared/CometChatContext.d.ts +2 -4
  529. package/lib/shared/CometChatContext.js +4 -1
  530. package/lib/shared/CometChatContext.js.map +1 -1
  531. package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +39 -3
  532. package/lib/shared/CometChatUiKit/CometChatUIKit.js +295 -57
  533. package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
  534. package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +5 -1
  535. package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -1
  536. package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
  537. package/lib/shared/CometChatUiKit/index.d.ts +1 -1
  538. package/lib/shared/CometChatUiKit/index.js +1 -1
  539. package/lib/shared/CometChatUiKit/index.js.map +1 -1
  540. package/lib/shared/assets/images/Back.png +0 -0
  541. package/lib/shared/assets/images/BackArrow.png +0 -0
  542. package/lib/shared/assets/images/blue-double-tick-icon.png +0 -0
  543. package/lib/shared/assets/images/calendar.png +0 -0
  544. package/lib/shared/assets/images/checkmark.png +0 -0
  545. package/lib/shared/assets/images/clock-alert.png +0 -0
  546. package/lib/shared/assets/images/clock.png +0 -0
  547. package/lib/shared/assets/images/earth.png +0 -0
  548. package/lib/shared/assets/images/empty-slot.png +0 -0
  549. package/lib/shared/assets/images/error.png +0 -0
  550. package/lib/shared/assets/images/forwardArrow.png +0 -0
  551. package/lib/shared/assets/images/grey-double-tick-icon.png +0 -0
  552. package/lib/shared/assets/images/grey-tick-icon.png +0 -0
  553. package/lib/shared/assets/images/index.d.ts +6 -0
  554. package/lib/shared/assets/images/index.js +12 -0
  555. package/lib/shared/assets/images/index.js.map +1 -1
  556. package/lib/shared/assets/images/sending.png +0 -0
  557. package/lib/shared/base/vars.d.ts +8 -0
  558. package/lib/shared/base/vars.js +7 -0
  559. package/lib/shared/base/vars.js.map +1 -0
  560. package/lib/shared/constants/UIKitConstants.d.ts +82 -44
  561. package/lib/shared/constants/UIKitConstants.js +38 -1
  562. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  563. package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
  564. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +63 -0
  565. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
  566. package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +50 -3
  567. package/lib/shared/events/CometChatUIEventHandler/Listener.js +69 -3
  568. package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
  569. package/lib/shared/events/CometChatUIEvents.d.ts +3 -1
  570. package/lib/shared/events/CometChatUIEvents.js +3 -0
  571. package/lib/shared/events/CometChatUIEvents.js.map +1 -1
  572. package/lib/shared/events/ListenerInitializer.d.ts +6 -0
  573. package/lib/shared/events/ListenerInitializer.js +73 -0
  574. package/lib/shared/events/ListenerInitializer.js.map +1 -0
  575. package/lib/shared/events/messages.d.ts +18 -1
  576. package/lib/shared/events/messages.js +17 -0
  577. package/lib/shared/events/messages.js.map +1 -1
  578. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +323 -0
  579. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -0
  580. package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.d.ts +12 -0
  581. package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +14 -0
  582. package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -0
  583. package/lib/shared/formatters/CometChatMentionsFormatter/index.d.ts +3 -0
  584. package/lib/shared/formatters/CometChatMentionsFormatter/index.js +4 -0
  585. package/lib/shared/formatters/CometChatMentionsFormatter/index.js.map +1 -0
  586. package/lib/shared/formatters/CometChatTextFormatter.js +218 -0
  587. package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -0
  588. package/lib/shared/formatters/CometChatUrlsFormatter/index.js +129 -0
  589. package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -0
  590. package/lib/shared/formatters/index.d.ts +5 -0
  591. package/lib/shared/formatters/index.js +6 -0
  592. package/lib/shared/formatters/index.js.map +1 -0
  593. package/lib/shared/framework/ChatConfigurator.js.map +1 -1
  594. package/lib/shared/framework/DataSourceDecorator.d.ts +29 -7
  595. package/lib/shared/framework/DataSourceDecorator.js +61 -10
  596. package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
  597. package/lib/shared/framework/MessageDataSource.js +295 -65
  598. package/lib/shared/framework/MessageDataSource.js.map +1 -1
  599. package/lib/shared/framework/resources/audio-file.png +0 -0
  600. package/lib/shared/framework/resources/circle_add.png +0 -0
  601. package/lib/shared/framework/resources/copy.png +0 -0
  602. package/lib/shared/framework/resources/delete.png +0 -0
  603. package/lib/shared/framework/resources/edit.png +0 -0
  604. package/lib/shared/framework/resources/emoji.png +0 -0
  605. package/lib/shared/framework/resources/file_upload.png +0 -0
  606. package/lib/shared/framework/resources/forward.png +0 -0
  607. package/lib/shared/framework/resources/heart.png +0 -0
  608. package/lib/shared/framework/resources/image.png +0 -0
  609. package/lib/shared/framework/resources/info.png +0 -0
  610. package/lib/shared/framework/resources/location.png +0 -0
  611. package/lib/shared/framework/resources/messageInPrivate.png +0 -0
  612. package/lib/shared/framework/resources/microphone.png +0 -0
  613. package/lib/shared/framework/resources/pause.png +0 -0
  614. package/lib/shared/framework/resources/play.png +0 -0
  615. package/lib/shared/framework/resources/reply.png +0 -0
  616. package/lib/shared/framework/resources/send_message.png +0 -0
  617. package/lib/shared/framework/resources/share.png +0 -0
  618. package/lib/shared/framework/resources/stop_player.png +0 -0
  619. package/lib/shared/framework/resources/thread.png +0 -0
  620. package/lib/shared/framework/resources/video_upload.png +0 -0
  621. package/lib/shared/helper/SwipeRow.d.ts +61 -64
  622. package/lib/shared/helper/SwipeRow.js.map +1 -1
  623. package/lib/shared/helper/Toast.d.ts +1 -2
  624. package/lib/shared/helper/functions.js.map +1 -1
  625. package/lib/shared/helper/helperFunctions.js.map +1 -1
  626. package/lib/shared/helper/useKeyboard.d.ts +2 -1
  627. package/lib/shared/helper/useKeyboard.js +19 -4
  628. package/lib/shared/helper/useKeyboard.js.map +1 -1
  629. package/lib/shared/index.d.ts +4 -3
  630. package/lib/shared/index.js +5 -4
  631. package/lib/shared/index.js.map +1 -1
  632. package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.d.ts +23 -0
  633. package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +107 -0
  634. package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -0
  635. package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.d.ts +9 -0
  636. package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +43 -0
  637. package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -0
  638. package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.d.ts +9 -0
  639. package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +57 -0
  640. package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -0
  641. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +2 -0
  642. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +14 -0
  643. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -0
  644. package/lib/shared/libs/CometChatCalendar/Calendars/index.d.ts +3 -0
  645. package/lib/shared/libs/CometChatCalendar/Calendars/index.js +4 -0
  646. package/lib/shared/libs/CometChatCalendar/Calendars/index.js.map +1 -0
  647. package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +7 -0
  648. package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +21 -0
  649. package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -0
  650. package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.d.ts +1 -0
  651. package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js +90 -0
  652. package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js.map +1 -0
  653. package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +14 -0
  654. package/lib/shared/libs/CometChatCalendar/Components/Day.js +45 -0
  655. package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -0
  656. package/lib/shared/libs/CometChatCalendar/Components/Day.test.d.ts +1 -0
  657. package/lib/shared/libs/CometChatCalendar/Components/Day.test.js +339 -0
  658. package/lib/shared/libs/CometChatCalendar/Components/Day.test.js.map +1 -0
  659. package/lib/shared/libs/CometChatCalendar/Components/Days.d.ts +16 -0
  660. package/lib/shared/libs/CometChatCalendar/Components/Days.js +41 -0
  661. package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -0
  662. package/lib/shared/libs/CometChatCalendar/Components/Days.test.d.ts +1 -0
  663. package/lib/shared/libs/CometChatCalendar/Components/Days.test.js +167 -0
  664. package/lib/shared/libs/CometChatCalendar/Components/Days.test.js.map +1 -0
  665. package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +10 -0
  666. package/lib/shared/libs/CometChatCalendar/Components/Month.js +23 -0
  667. package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -0
  668. package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +1 -0
  669. package/lib/shared/libs/CometChatCalendar/Components/Month.test.js +131 -0
  670. package/lib/shared/libs/CometChatCalendar/Components/Month.test.js.map +1 -0
  671. package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +14 -0
  672. package/lib/shared/libs/CometChatCalendar/Components/Months.js +29 -0
  673. package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -0
  674. package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +52 -0
  675. package/lib/shared/libs/CometChatCalendar/Components/Months.test.js +204 -0
  676. package/lib/shared/libs/CometChatCalendar/Components/Months.test.js.map +1 -0
  677. package/lib/shared/libs/CometChatCalendar/Components/Title.d.ts +12 -0
  678. package/lib/shared/libs/CometChatCalendar/Components/Title.js +20 -0
  679. package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -0
  680. package/lib/shared/libs/CometChatCalendar/Components/Title.test.d.ts +1 -0
  681. package/lib/shared/libs/CometChatCalendar/Components/Title.test.js +84 -0
  682. package/lib/shared/libs/CometChatCalendar/Components/Title.test.js.map +1 -0
  683. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +5 -0
  684. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +13 -0
  685. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -0
  686. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.d.ts +1 -0
  687. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js +56 -0
  688. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js.map +1 -0
  689. package/lib/shared/libs/CometChatCalendar/Components/index.d.ts +7 -0
  690. package/lib/shared/libs/CometChatCalendar/Components/index.js +8 -0
  691. package/lib/shared/libs/CometChatCalendar/Components/index.js.map +1 -0
  692. package/lib/shared/libs/CometChatCalendar/Constants/View.d.ts +4 -0
  693. package/lib/shared/libs/CometChatCalendar/Constants/View.js +6 -0
  694. package/lib/shared/libs/CometChatCalendar/Constants/View.js.map +1 -0
  695. package/lib/shared/libs/CometChatCalendar/Constants/index.d.ts +1 -0
  696. package/lib/shared/libs/CometChatCalendar/Constants/index.js +2 -0
  697. package/lib/shared/libs/CometChatCalendar/Constants/index.js.map +1 -0
  698. package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -0
  699. package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js +5 -0
  700. package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js.map +1 -0
  701. package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +2 -0
  702. package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js +5 -0
  703. package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js.map +1 -0
  704. package/lib/shared/libs/CometChatCalendar/Contexts/index.d.ts +2 -0
  705. package/lib/shared/libs/CometChatCalendar/Contexts/index.js +3 -0
  706. package/lib/shared/libs/CometChatCalendar/Contexts/index.js.map +1 -0
  707. package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.d.ts +1 -0
  708. package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js +2 -0
  709. package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js.map +1 -0
  710. package/lib/shared/libs/CometChatCalendar/Entities/Calendar.d.ts +19 -0
  711. package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js +2 -0
  712. package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js.map +1 -0
  713. package/lib/shared/libs/CometChatCalendar/Entities/Components.js +2 -0
  714. package/lib/shared/libs/CometChatCalendar/Entities/Components.js.map +1 -0
  715. package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.d.ts +4 -0
  716. package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js +2 -0
  717. package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js.map +1 -0
  718. package/lib/shared/libs/CometChatCalendar/Entities/Locale.d.ts +8 -0
  719. package/lib/shared/libs/CometChatCalendar/Entities/Locale.js +2 -0
  720. package/lib/shared/libs/CometChatCalendar/Entities/Locale.js.map +1 -0
  721. package/lib/shared/libs/CometChatCalendar/Entities/Theme.d.ts +37 -0
  722. package/lib/shared/libs/CometChatCalendar/Entities/Theme.js +2 -0
  723. package/lib/shared/libs/CometChatCalendar/Entities/Theme.js.map +1 -0
  724. package/lib/shared/libs/CometChatCalendar/Entities/index.d.ts +6 -0
  725. package/lib/shared/libs/CometChatCalendar/Entities/index.js +7 -0
  726. package/lib/shared/libs/CometChatCalendar/Entities/index.js.map +1 -0
  727. package/lib/shared/libs/CometChatCalendar/Hooks/index.d.ts +1 -0
  728. package/lib/shared/libs/CometChatCalendar/Hooks/index.js +2 -0
  729. package/lib/shared/libs/CometChatCalendar/Hooks/index.js.map +1 -0
  730. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +2 -0
  731. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +54 -0
  732. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -0
  733. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.d.ts +1 -0
  734. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js +35 -0
  735. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js.map +1 -0
  736. package/lib/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
  737. package/lib/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
  738. package/lib/shared/libs/CometChatCalendar/Icons/index.d.ts +8 -0
  739. package/lib/shared/libs/CometChatCalendar/Icons/index.js +8 -0
  740. package/lib/shared/libs/CometChatCalendar/Icons/index.js.map +1 -0
  741. package/lib/shared/libs/CometChatCalendar/Locales/index.d.ts +2 -0
  742. package/lib/shared/libs/CometChatCalendar/Locales/index.js +4 -0
  743. package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -0
  744. package/lib/shared/libs/CometChatCalendar/Themes/Colors.d.ts +13 -0
  745. package/lib/shared/libs/CometChatCalendar/Themes/Colors.js +21 -0
  746. package/lib/shared/libs/CometChatCalendar/Themes/Colors.js.map +1 -0
  747. package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.d.ts +3 -0
  748. package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +75 -0
  749. package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -0
  750. package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.d.ts +3 -0
  751. package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +157 -0
  752. package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -0
  753. package/lib/shared/libs/CometChatCalendar/Themes/index.d.ts +3 -0
  754. package/lib/shared/libs/CometChatCalendar/Themes/index.js +4 -0
  755. package/lib/shared/libs/CometChatCalendar/Themes/index.js.map +1 -0
  756. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.d.ts +2 -0
  757. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js +11 -0
  758. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js.map +1 -0
  759. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.d.ts +1 -0
  760. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js +48 -0
  761. package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js.map +1 -0
  762. package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.d.ts +2 -0
  763. package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js +11 -0
  764. package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js.map +1 -0
  765. package/lib/shared/libs/CometChatCalendar/Utils/clamp.d.ts +2 -0
  766. package/lib/shared/libs/CometChatCalendar/Utils/clamp.js +5 -0
  767. package/lib/shared/libs/CometChatCalendar/Utils/clamp.js.map +1 -0
  768. package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.d.ts +1 -0
  769. package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js +34 -0
  770. package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js.map +1 -0
  771. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -0
  772. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js +16 -0
  773. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -0
  774. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.d.ts +1 -0
  775. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js +18 -0
  776. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js.map +1 -0
  777. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.d.ts +6 -0
  778. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js +19 -0
  779. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -0
  780. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.d.ts +1 -0
  781. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js +41 -0
  782. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js.map +1 -0
  783. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.d.ts +11 -0
  784. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +17 -0
  785. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -0
  786. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.d.ts +1 -0
  787. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js +58 -0
  788. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js.map +1 -0
  789. package/lib/shared/libs/CometChatCalendar/Utils/index.d.ts +6 -0
  790. package/lib/shared/libs/CometChatCalendar/Utils/index.js +7 -0
  791. package/lib/shared/libs/CometChatCalendar/Utils/index.js.map +1 -0
  792. package/lib/shared/libs/CometChatCalendar/index.d.ts +5 -0
  793. package/lib/shared/libs/CometChatCalendar/index.js +6 -0
  794. package/lib/shared/libs/CometChatCalendar/index.js.map +1 -0
  795. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +227 -0
  796. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +747 -0
  797. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -0
  798. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +79 -0
  799. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +161 -0
  800. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -0
  801. package/lib/shared/libs/ImageZoom/helper.d.ts +8 -0
  802. package/lib/shared/libs/ImageZoom/helper.js +90 -0
  803. package/lib/shared/libs/ImageZoom/helper.js.map +1 -0
  804. package/lib/shared/libs/ImageZoom/index.d.ts +4 -0
  805. package/lib/shared/libs/ImageZoom/index.js +4 -0
  806. package/lib/shared/libs/ImageZoom/index.js.map +1 -0
  807. package/lib/shared/libs/ImageZoom/types/index.d.ts +91 -0
  808. package/lib/shared/libs/ImageZoom/types/index.js +8 -0
  809. package/lib/shared/libs/ImageZoom/types/index.js.map +1 -0
  810. package/lib/shared/libs/VideoPlayer/DRMType.d.ts +7 -0
  811. package/lib/shared/libs/VideoPlayer/DRMType.js +7 -0
  812. package/lib/shared/libs/VideoPlayer/DRMType.js.map +1 -0
  813. package/lib/shared/libs/VideoPlayer/FilterType.d.ts +19 -0
  814. package/lib/shared/libs/VideoPlayer/FilterType.js +19 -0
  815. package/lib/shared/libs/VideoPlayer/FilterType.js.map +1 -0
  816. package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +6 -0
  817. package/lib/shared/libs/VideoPlayer/TextTrackType.js +6 -0
  818. package/lib/shared/libs/VideoPlayer/TextTrackType.js.map +1 -0
  819. package/lib/shared/libs/VideoPlayer/Video.d.ts +48 -0
  820. package/lib/shared/libs/VideoPlayer/Video.js +437 -0
  821. package/lib/shared/libs/VideoPlayer/Video.js.map +1 -0
  822. package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +6 -0
  823. package/lib/shared/libs/VideoPlayer/VideoResizeMode.js +6 -0
  824. package/lib/shared/libs/VideoPlayer/VideoResizeMode.js.map +1 -0
  825. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +10 -0
  826. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +16 -0
  827. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -0
  828. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +6 -0
  829. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +10 -0
  830. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -0
  831. package/lib/shared/libs/VideoPlayerControls/OSSupport/index.d.ts +1 -0
  832. package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js +2 -0
  833. package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js.map +1 -0
  834. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -0
  835. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +313 -0
  836. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -0
  837. package/lib/shared/libs/VideoPlayerControls/assets/img/back.png +0 -0
  838. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette.png +0 -0
  839. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@2x.png +0 -0
  840. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@3x.png +0 -0
  841. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon.png +0 -0
  842. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@2x.png +0 -0
  843. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@3x.png +0 -0
  844. package/lib/shared/libs/VideoPlayerControls/assets/img/expand.png +0 -0
  845. package/lib/shared/libs/VideoPlayerControls/assets/img/expand@2x.png +0 -0
  846. package/lib/shared/libs/VideoPlayerControls/assets/img/expand@3x.png +0 -0
  847. package/lib/shared/libs/VideoPlayerControls/assets/img/forward.png +0 -0
  848. package/lib/shared/libs/VideoPlayerControls/assets/img/forward@2x.png +0 -0
  849. package/lib/shared/libs/VideoPlayerControls/assets/img/forward@3x.png +0 -0
  850. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon.png +0 -0
  851. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@2x.png +0 -0
  852. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@3x.png +0 -0
  853. package/lib/shared/libs/VideoPlayerControls/assets/img/pause.png +0 -0
  854. package/lib/shared/libs/VideoPlayerControls/assets/img/pause@2x.png +0 -0
  855. package/lib/shared/libs/VideoPlayerControls/assets/img/pause@3x.png +0 -0
  856. package/lib/shared/libs/VideoPlayerControls/assets/img/play.png +0 -0
  857. package/lib/shared/libs/VideoPlayerControls/assets/img/play@2x.png +0 -0
  858. package/lib/shared/libs/VideoPlayerControls/assets/img/play@3x.png +0 -0
  859. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind.png +0 -0
  860. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@2x.png +0 -0
  861. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@3x.png +0 -0
  862. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink.png +0 -0
  863. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@2x.png +0 -0
  864. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@3x.png +0 -0
  865. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette.png +0 -0
  866. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@2x.png +0 -0
  867. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@3x.png +0 -0
  868. package/lib/shared/libs/VideoPlayerControls/assets/img/volume.png +0 -0
  869. package/lib/shared/libs/VideoPlayerControls/assets/img/volume@2x.png +0 -0
  870. package/lib/shared/libs/VideoPlayerControls/assets/img/volume@3x.png +0 -0
  871. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.d.ts +10 -0
  872. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +9 -0
  873. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -0
  874. package/lib/shared/libs/VideoPlayerControls/components/Back/index.d.ts +1 -0
  875. package/lib/shared/libs/VideoPlayerControls/components/Back/index.js +2 -0
  876. package/lib/shared/libs/VideoPlayerControls/components/Back/index.js.map +1 -0
  877. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +28 -0
  878. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +54 -0
  879. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -0
  880. package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +12 -0
  881. package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -0
  882. package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -0
  883. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +5 -0
  884. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +13 -0
  885. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -0
  886. package/lib/shared/libs/VideoPlayerControls/components/Error/index.d.ts +1 -0
  887. package/lib/shared/libs/VideoPlayerControls/components/Error/index.js +2 -0
  888. package/lib/shared/libs/VideoPlayerControls/components/Error/index.js.map +1 -0
  889. package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +1 -0
  890. package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js +21 -0
  891. package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js.map +1 -0
  892. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +8 -0
  893. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +17 -0
  894. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -0
  895. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +5 -0
  896. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +9 -0
  897. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -0
  898. package/lib/shared/libs/VideoPlayerControls/components/Loader/index.d.ts +1 -0
  899. package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js +2 -0
  900. package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js.map +1 -0
  901. package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +1 -0
  902. package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js +16 -0
  903. package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js.map +1 -0
  904. package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +1 -0
  905. package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +7 -0
  906. package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -0
  907. package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +4 -0
  908. package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +17 -0
  909. package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -0
  910. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +20 -0
  911. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +43 -0
  912. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -0
  913. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.d.ts +1 -0
  914. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js +2 -0
  915. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js.map +1 -0
  916. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +1 -0
  917. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js +21 -0
  918. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js.map +1 -0
  919. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +11 -0
  920. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +20 -0
  921. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -0
  922. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.d.ts +1 -0
  923. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js +2 -0
  924. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js.map +1 -0
  925. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +1 -0
  926. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js +37 -0
  927. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js.map +1 -0
  928. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +9 -0
  929. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +10 -0
  930. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -0
  931. package/lib/shared/libs/VideoPlayerControls/components/Timer/index.d.ts +1 -0
  932. package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js +2 -0
  933. package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js.map +1 -0
  934. package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +1 -0
  935. package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js +12 -0
  936. package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js.map +1 -0
  937. package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +5 -0
  938. package/lib/shared/libs/VideoPlayerControls/components/Title.js +26 -0
  939. package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -0
  940. package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +1 -0
  941. package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +39 -0
  942. package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -0
  943. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +11 -0
  944. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +13 -0
  945. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -0
  946. package/lib/shared/libs/VideoPlayerControls/components/Volume/index.d.ts +1 -0
  947. package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js +2 -0
  948. package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js.map +1 -0
  949. package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +1 -0
  950. package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js +31 -0
  951. package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js.map +1 -0
  952. package/lib/shared/libs/VideoPlayerControls/components/index.d.ts +14 -0
  953. package/lib/shared/libs/VideoPlayerControls/components/index.js +15 -0
  954. package/lib/shared/libs/VideoPlayerControls/components/index.js.map +1 -0
  955. package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +1 -0
  956. package/lib/shared/libs/VideoPlayerControls/components/styles.js +30 -0
  957. package/lib/shared/libs/VideoPlayerControls/components/styles.js.map +1 -0
  958. package/lib/shared/libs/VideoPlayerControls/hooks/index.d.ts +3 -0
  959. package/lib/shared/libs/VideoPlayerControls/hooks/index.js +4 -0
  960. package/lib/shared/libs/VideoPlayerControls/hooks/index.js.map +1 -0
  961. package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.d.ts +2 -0
  962. package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js +61 -0
  963. package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js.map +1 -0
  964. package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +17 -0
  965. package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js +43 -0
  966. package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js.map +1 -0
  967. package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +24 -0
  968. package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js +55 -0
  969. package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js.map +1 -0
  970. package/lib/shared/libs/VideoPlayerControls/index.d.ts +3 -0
  971. package/lib/shared/libs/VideoPlayerControls/index.js +4 -0
  972. package/lib/shared/libs/VideoPlayerControls/index.js.map +1 -0
  973. package/lib/shared/libs/VideoPlayerControls/styles.d.ts +3 -0
  974. package/lib/shared/libs/VideoPlayerControls/styles.js +19 -0
  975. package/lib/shared/libs/VideoPlayerControls/styles.js.map +1 -0
  976. package/lib/shared/libs/VideoPlayerControls/types.d.ts +248 -0
  977. package/lib/shared/libs/VideoPlayerControls/types.js +2 -0
  978. package/lib/shared/libs/VideoPlayerControls/types.js.map +1 -0
  979. package/lib/shared/libs/VideoPlayerControls/utils.d.ts +10 -0
  980. package/lib/shared/libs/VideoPlayerControls/utils.js +46 -0
  981. package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -0
  982. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +1 -0
  983. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +64 -0
  984. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -0
  985. package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -0
  986. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +82 -0
  987. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +239 -0
  988. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -0
  989. package/lib/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
  990. package/lib/shared/libs/datePickerModal/DateTimePickerModal.js.map +1 -0
  991. package/lib/shared/libs/datePickerModal/Modal.d.ts +30 -0
  992. package/lib/shared/libs/datePickerModal/Modal.js +134 -0
  993. package/lib/shared/libs/datePickerModal/Modal.js.map +1 -0
  994. package/lib/shared/libs/datePickerModal/index.d.ts +3 -0
  995. package/lib/shared/libs/datePickerModal/index.js +4 -0
  996. package/lib/shared/libs/datePickerModal/index.js.map +1 -0
  997. package/lib/shared/libs/datePickerModal/utils.d.ts +1 -0
  998. package/lib/shared/libs/datePickerModal/utils.js +22 -0
  999. package/lib/shared/libs/datePickerModal/utils.js.map +1 -0
  1000. package/lib/shared/libs/luxon/src/datetime.d.ts +1181 -0
  1001. package/lib/shared/libs/luxon/src/datetime.js +2095 -0
  1002. package/lib/shared/libs/luxon/src/datetime.js.map +1 -0
  1003. package/lib/shared/libs/luxon/src/duration.d.ts +637 -0
  1004. package/lib/shared/libs/luxon/src/duration.js +905 -0
  1005. package/lib/shared/libs/luxon/src/duration.js.map +1 -0
  1006. package/lib/shared/libs/luxon/src/errors.d.ts +46 -0
  1007. package/lib/shared/libs/luxon/src/errors.js +57 -0
  1008. package/lib/shared/libs/luxon/src/errors.js.map +1 -0
  1009. package/lib/shared/libs/luxon/src/impl/conversions.d.ts +24 -0
  1010. package/lib/shared/libs/luxon/src/impl/conversions.js +163 -0
  1011. package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -0
  1012. package/lib/shared/libs/luxon/src/impl/diff.d.ts +2 -0
  1013. package/lib/shared/libs/luxon/src/impl/diff.js +80 -0
  1014. package/lib/shared/libs/luxon/src/impl/diff.js.map +1 -0
  1015. package/lib/shared/libs/luxon/src/impl/digits.d.ts +4 -0
  1016. package/lib/shared/libs/luxon/src/impl/digits.js +73 -0
  1017. package/lib/shared/libs/luxon/src/impl/digits.js.map +1 -0
  1018. package/lib/shared/libs/luxon/src/impl/english.d.ts +22 -0
  1019. package/lib/shared/libs/luxon/src/impl/english.js +204 -0
  1020. package/lib/shared/libs/luxon/src/impl/english.js.map +1 -0
  1021. package/lib/shared/libs/luxon/src/impl/formats.d.ts +154 -0
  1022. package/lib/shared/libs/luxon/src/impl/formats.js +152 -0
  1023. package/lib/shared/libs/luxon/src/impl/formats.js.map +1 -0
  1024. package/lib/shared/libs/luxon/src/impl/formatter.d.ts +24 -0
  1025. package/lib/shared/libs/luxon/src/impl/formatter.js +367 -0
  1026. package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -0
  1027. package/lib/shared/libs/luxon/src/impl/invalid.d.ts +6 -0
  1028. package/lib/shared/libs/luxon/src/impl/invalid.js +15 -0
  1029. package/lib/shared/libs/luxon/src/impl/invalid.js.map +1 -0
  1030. package/lib/shared/libs/luxon/src/impl/locale.d.ts +86 -0
  1031. package/lib/shared/libs/luxon/src/impl/locale.js +460 -0
  1032. package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -0
  1033. package/lib/shared/libs/luxon/src/impl/regexParser.d.ts +6 -0
  1034. package/lib/shared/libs/luxon/src/impl/regexParser.js +212 -0
  1035. package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -0
  1036. package/lib/shared/libs/luxon/src/impl/tokenParser.d.ts +27 -0
  1037. package/lib/shared/libs/luxon/src/impl/tokenParser.js +413 -0
  1038. package/lib/shared/libs/luxon/src/impl/tokenParser.js.map +1 -0
  1039. package/lib/shared/libs/luxon/src/impl/util.d.ts +38 -0
  1040. package/lib/shared/libs/luxon/src/impl/util.js +257 -0
  1041. package/lib/shared/libs/luxon/src/impl/util.js.map +1 -0
  1042. package/lib/shared/libs/luxon/src/impl/zoneUtil.d.ts +1 -0
  1043. package/lib/shared/libs/luxon/src/impl/zoneUtil.js +41 -0
  1044. package/lib/shared/libs/luxon/src/impl/zoneUtil.js.map +1 -0
  1045. package/lib/shared/libs/luxon/src/info.d.ts +178 -0
  1046. package/lib/shared/libs/luxon/src/info.js +182 -0
  1047. package/lib/shared/libs/luxon/src/info.js.map +1 -0
  1048. package/lib/shared/libs/luxon/src/interval.d.ts +328 -0
  1049. package/lib/shared/libs/luxon/src/interval.js +606 -0
  1050. package/lib/shared/libs/luxon/src/interval.js.map +1 -0
  1051. package/lib/shared/libs/luxon/src/luxon.d.ts +12 -0
  1052. package/lib/shared/libs/luxon/src/luxon.js +13 -0
  1053. package/lib/shared/libs/luxon/src/luxon.js.map +1 -0
  1054. package/lib/shared/libs/luxon/src/settings.d.ts +115 -0
  1055. package/lib/shared/libs/luxon/src/settings.js +149 -0
  1056. package/lib/shared/libs/luxon/src/settings.js.map +1 -0
  1057. package/lib/shared/libs/luxon/src/zone.d.ts +66 -0
  1058. package/lib/shared/libs/luxon/src/zone.js +83 -0
  1059. package/lib/shared/libs/luxon/src/zone.js.map +1 -0
  1060. package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +53 -0
  1061. package/lib/shared/libs/luxon/src/zones/IANAZone.js +167 -0
  1062. package/lib/shared/libs/luxon/src/zones/IANAZone.js.map +1 -0
  1063. package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.d.ts +38 -0
  1064. package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js +90 -0
  1065. package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js.map +1 -0
  1066. package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +20 -0
  1067. package/lib/shared/libs/luxon/src/zones/invalidZone.js +45 -0
  1068. package/lib/shared/libs/luxon/src/zones/invalidZone.js.map +1 -0
  1069. package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +23 -0
  1070. package/lib/shared/libs/luxon/src/zones/systemZone.js +52 -0
  1071. package/lib/shared/libs/luxon/src/zones/systemZone.js.map +1 -0
  1072. package/lib/shared/modals/CometChatCallLogDetailsOptions.js +2 -0
  1073. package/lib/shared/modals/CometChatCallLogDetailsOptions.js.map +1 -0
  1074. package/lib/shared/modals/CometChatCallLogDetailsTemplate.d.ts +15 -0
  1075. package/lib/shared/modals/CometChatCallLogDetailsTemplate.js +2 -0
  1076. package/lib/shared/modals/CometChatCallLogDetailsTemplate.js.map +1 -0
  1077. package/lib/shared/modals/CometChatMessageTemplate.js +52 -1
  1078. package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
  1079. package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.d.ts +73 -0
  1080. package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +104 -0
  1081. package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -0
  1082. package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.d.ts +12 -0
  1083. package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js +18 -0
  1084. package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js.map +1 -0
  1085. package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.d.ts +21 -0
  1086. package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +30 -0
  1087. package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -0
  1088. package/lib/shared/modals/InteractiveData/InteractiveActions/index.d.ts +3 -0
  1089. package/lib/shared/modals/InteractiveData/InteractiveActions/index.js +4 -0
  1090. package/lib/shared/modals/InteractiveData/InteractiveActions/index.js.map +1 -0
  1091. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.d.ts +41 -0
  1092. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +61 -0
  1093. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -0
  1094. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.d.ts +55 -0
  1095. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +80 -0
  1096. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -0
  1097. package/lib/shared/modals/InteractiveData/InteractiveData/index.d.ts +2 -0
  1098. package/lib/shared/modals/InteractiveData/InteractiveData/index.js +3 -0
  1099. package/lib/shared/modals/InteractiveData/InteractiveData/index.js.map +1 -0
  1100. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.d.ts +40 -0
  1101. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +89 -0
  1102. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -0
  1103. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.d.ts +18 -0
  1104. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +43 -0
  1105. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -0
  1106. package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.d.ts +38 -0
  1107. package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +55 -0
  1108. package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -0
  1109. package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.d.ts +40 -0
  1110. package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +69 -0
  1111. package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -0
  1112. package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.d.ts +52 -0
  1113. package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +88 -0
  1114. package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -0
  1115. package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.d.ts +46 -0
  1116. package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +75 -0
  1117. package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -0
  1118. package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.d.ts +20 -0
  1119. package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +29 -0
  1120. package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -0
  1121. package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.d.ts +26 -0
  1122. package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +36 -0
  1123. package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -0
  1124. package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.d.ts +40 -0
  1125. package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +69 -0
  1126. package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -0
  1127. package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.d.ts +40 -0
  1128. package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +69 -0
  1129. package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -0
  1130. package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.d.ts +59 -0
  1131. package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +91 -0
  1132. package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -0
  1133. package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +10 -0
  1134. package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +11 -0
  1135. package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -0
  1136. package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.d.ts +22 -0
  1137. package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +36 -0
  1138. package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -0
  1139. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.d.ts +25 -0
  1140. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +61 -0
  1141. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -0
  1142. package/lib/shared/modals/InteractiveData/InteractiveEntities/index.d.ts +2 -0
  1143. package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js +3 -0
  1144. package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js.map +1 -0
  1145. package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.d.ts +70 -0
  1146. package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +118 -0
  1147. package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -0
  1148. package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.d.ts +20 -0
  1149. package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +29 -0
  1150. package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -0
  1151. package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.d.ts +68 -0
  1152. package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +125 -0
  1153. package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -0
  1154. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +63 -0
  1155. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +106 -0
  1156. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -0
  1157. package/lib/shared/modals/InteractiveData/InteractiveMessage/index.d.ts +4 -0
  1158. package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js +5 -0
  1159. package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js.map +1 -0
  1160. package/lib/shared/modals/InteractiveData/index.d.ts +4 -0
  1161. package/lib/shared/modals/InteractiveData/index.js +6 -0
  1162. package/lib/shared/modals/InteractiveData/index.js.map +1 -0
  1163. package/lib/shared/modals/index.d.ts +4 -1
  1164. package/lib/shared/modals/index.js +2 -1
  1165. package/lib/shared/modals/index.js.map +1 -1
  1166. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +1229 -335
  1167. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +2 -0
  1168. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
  1169. package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +163 -119
  1170. package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +159 -114
  1171. package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +52 -8
  1172. package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +154 -109
  1173. package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +152 -107
  1174. package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +172 -128
  1175. package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +315 -0
  1176. package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +226 -181
  1177. package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +138 -93
  1178. package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +138 -93
  1179. package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +180 -135
  1180. package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +194 -149
  1181. package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +173 -128
  1182. package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +187 -142
  1183. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +2 -2
  1184. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
  1185. package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
  1186. package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
  1187. package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
  1188. package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
  1189. package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
  1190. package/lib/shared/resources/CometChatSoundManager/sound.d.ts +1 -1
  1191. package/lib/shared/resources/CometChatSoundManager/sound.js +35 -35
  1192. package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
  1193. package/lib/shared/resources/CometChatTheme/Palette.d.ts +43 -17
  1194. package/lib/shared/resources/CometChatTheme/Palette.js +108 -38
  1195. package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
  1196. package/lib/shared/resources/CometChatTheme/Typography.d.ts +23 -1
  1197. package/lib/shared/resources/CometChatTheme/Typography.js +100 -0
  1198. package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
  1199. package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +1 -2
  1200. package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
  1201. package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
  1202. package/lib/shared/utils/CometChatLiveReactions/style.d.ts +1 -5
  1203. package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -1
  1204. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +6 -8
  1205. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
  1206. package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
  1207. package/lib/shared/utils/CometChatMessagePreview/style.d.ts +1 -9
  1208. package/lib/shared/utils/CommonUtils.d.ts +6 -0
  1209. package/lib/shared/utils/CommonUtils.js +70 -0
  1210. package/lib/shared/utils/CommonUtils.js.map +1 -0
  1211. package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +0 -1
  1212. package/lib/shared/utils/DetailsUtils/DetailsUtils.js +1 -1
  1213. package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
  1214. package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
  1215. package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
  1216. package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
  1217. package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
  1218. package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
  1219. package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
  1220. package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
  1221. package/lib/shared/utils/InteractiveMessageUtils.d.ts +8 -0
  1222. package/lib/shared/utils/InteractiveMessageUtils.js +48 -0
  1223. package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -0
  1224. package/lib/shared/utils/MessageUtils.d.ts +1 -2
  1225. package/lib/shared/utils/MessageUtils.js.map +1 -1
  1226. package/lib/shared/utils/NetworkUtils.d.ts +9 -0
  1227. package/lib/shared/utils/NetworkUtils.js +28 -0
  1228. package/lib/shared/utils/NetworkUtils.js.map +1 -0
  1229. package/lib/shared/utils/PermissionUtil.d.ts +27 -0
  1230. package/lib/shared/utils/PermissionUtil.js +122 -0
  1231. package/lib/shared/utils/PermissionUtil.js.map +1 -0
  1232. package/lib/shared/utils/SchedulerUtils.d.ts +17 -0
  1233. package/lib/shared/utils/SchedulerUtils.js +142 -0
  1234. package/lib/shared/utils/SchedulerUtils.js.map +1 -0
  1235. package/lib/shared/utils/conversationUtils.js +14 -1
  1236. package/lib/shared/utils/conversationUtils.js.map +1 -1
  1237. package/lib/shared/utils/icsToJson.d.ts +2 -0
  1238. package/lib/shared/utils/icsToJson.js +108 -0
  1239. package/lib/shared/utils/icsToJson.js.map +1 -0
  1240. package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +16 -0
  1241. package/lib/shared/views/CometChatAICard/CometChatAICard.js +40 -0
  1242. package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -0
  1243. package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
  1244. package/lib/shared/views/CometChatAICard/resources/index.d.ts +3 -0
  1245. package/lib/shared/views/CometChatAICard/resources/index.js +4 -0
  1246. package/lib/shared/views/CometChatAICard/resources/index.js.map +1 -0
  1247. package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
  1248. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
  1249. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +4 -1
  1250. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
  1251. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +2 -2
  1252. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +33 -29
  1253. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
  1254. package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
  1255. package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
  1256. package/lib/shared/views/CometChatActionSheet/style.d.ts +1 -44
  1257. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +1 -2
  1258. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +21 -3
  1259. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
  1260. package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
  1261. package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
  1262. package/lib/shared/views/CometChatAudioBubble/style.d.ts +1 -26
  1263. package/lib/shared/views/CometChatAudioBubble/style.js +4 -2
  1264. package/lib/shared/views/CometChatAudioBubble/style.js.map +1 -1
  1265. package/lib/shared/views/CometChatAvatar/AvatarStyle.js +1 -1
  1266. package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
  1267. package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +1 -2
  1268. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +5 -1
  1269. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
  1270. package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
  1271. package/lib/shared/views/CometChatAvatar/styles.d.ts +1 -21
  1272. package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +1 -2
  1273. package/lib/shared/views/CometChatBadge/styles.d.ts +1 -13
  1274. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +4 -2
  1275. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +21 -15
  1276. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
  1277. package/lib/shared/views/CometChatBottomSheet/style.d.ts +1 -50
  1278. package/lib/shared/views/CometChatBottomSheet/style.js +0 -2
  1279. package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -1
  1280. package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -2
  1281. package/lib/shared/views/CometChatButton/CometChatButton.js +25 -17
  1282. package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
  1283. package/lib/shared/views/CometChatButton/style.d.ts +1 -6
  1284. package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
  1285. package/lib/shared/views/CometChatCard/style.d.ts +1 -11
  1286. package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.d.ts +20 -0
  1287. package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +24 -0
  1288. package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -0
  1289. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +8 -0
  1290. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +120 -0
  1291. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -0
  1292. package/lib/shared/views/CometChatCardBubble/index.d.ts +1 -0
  1293. package/lib/shared/views/CometChatCardBubble/index.js +2 -0
  1294. package/lib/shared/views/CometChatCardBubble/index.js.map +1 -0
  1295. package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.d.ts +22 -0
  1296. package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +22 -0
  1297. package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -0
  1298. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +11 -0
  1299. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +47 -0
  1300. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -0
  1301. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +1 -2
  1302. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
  1303. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
  1304. package/lib/shared/views/CometChatConfirmDialog/style.d.ts +1 -61
  1305. package/lib/shared/views/CometChatDate/CometChatDate.d.ts +5 -2
  1306. package/lib/shared/views/CometChatDate/CometChatDate.js +5 -6
  1307. package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
  1308. package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +3 -1
  1309. package/lib/shared/views/CometChatDate/DateConfiguration.js +3 -1
  1310. package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
  1311. package/lib/shared/views/CometChatDate/style.d.ts +1 -5
  1312. package/lib/shared/views/CometChatDate/style.js +1 -1
  1313. package/lib/shared/views/CometChatDate/style.js.map +1 -1
  1314. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +13 -0
  1315. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +125 -0
  1316. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -0
  1317. package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +7 -0
  1318. package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js +13 -0
  1319. package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js.map +1 -0
  1320. package/lib/shared/views/CometChatDateTimePicker/index.d.ts +2 -0
  1321. package/lib/shared/views/CometChatDateTimePicker/index.js +2 -0
  1322. package/lib/shared/views/CometChatDateTimePicker/index.js.map +1 -0
  1323. package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +13 -0
  1324. package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +85 -0
  1325. package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -0
  1326. package/lib/shared/views/CometChatDropDown/DropDownStyle.d.ts +20 -0
  1327. package/lib/shared/views/CometChatDropDown/DropDownStyle.js +20 -0
  1328. package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -0
  1329. package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
  1330. package/lib/shared/views/CometChatDropDown/resources/index.d.ts +3 -0
  1331. package/lib/shared/views/CometChatDropDown/resources/index.js +3 -0
  1332. package/lib/shared/views/CometChatDropDown/resources/index.js.map +1 -0
  1333. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +4 -13
  1334. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +21 -22
  1335. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
  1336. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +3 -4
  1337. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +3 -3
  1338. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
  1339. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +11 -11
  1340. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -1
  1341. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
  1342. package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
  1343. package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
  1344. package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
  1345. package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
  1346. package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
  1347. package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
  1348. package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
  1349. package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
  1350. package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +1 -44
  1351. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +1 -2
  1352. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +51 -4
  1353. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
  1354. package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
  1355. package/lib/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
  1356. package/lib/shared/views/CometChatFileBubble/style.d.ts +1 -42
  1357. package/lib/shared/views/CometChatFileBubble/style.js +4 -2
  1358. package/lib/shared/views/CometChatFileBubble/style.js.map +1 -1
  1359. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +8 -0
  1360. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +372 -0
  1361. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -0
  1362. package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.d.ts +47 -0
  1363. package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +45 -0
  1364. package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -0
  1365. package/lib/shared/views/CometChatFormBubble/index.d.ts +1 -0
  1366. package/lib/shared/views/CometChatFormBubble/index.js +2 -0
  1367. package/lib/shared/views/CometChatFormBubble/index.js.map +1 -0
  1368. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +6 -2
  1369. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +66 -11
  1370. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
  1371. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +10 -1
  1372. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +4 -2
  1373. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
  1374. package/lib/shared/views/CometChatImageBubble/assets/index.d.ts +3 -0
  1375. package/lib/shared/views/CometChatImageBubble/assets/index.js +5 -0
  1376. package/lib/shared/views/CometChatImageBubble/assets/index.js.map +1 -0
  1377. package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
  1378. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +5 -0
  1379. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +72 -0
  1380. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -0
  1381. package/lib/shared/views/CometChatImageViewerModal/index.d.ts +1 -0
  1382. package/lib/shared/views/CometChatImageViewerModal/index.js +2 -0
  1383. package/lib/shared/views/CometChatImageViewerModal/index.js.map +1 -0
  1384. package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
  1385. package/lib/shared/views/CometChatImageViewerModal/resources/index.d.ts +3 -0
  1386. package/lib/shared/views/CometChatImageViewerModal/resources/index.js +5 -0
  1387. package/lib/shared/views/CometChatImageViewerModal/resources/index.js.map +1 -0
  1388. package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +7 -0
  1389. package/lib/shared/views/CometChatLabel/CometChatLabel.js +15 -0
  1390. package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -0
  1391. package/lib/shared/views/CometChatLabel/LabelStyle.d.ts +10 -0
  1392. package/lib/shared/views/CometChatLabel/LabelStyle.js +10 -0
  1393. package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -0
  1394. package/lib/shared/views/CometChatList/CometChatList.js +18 -3
  1395. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  1396. package/lib/shared/views/CometChatList/Header.d.ts +1 -2
  1397. package/lib/shared/views/CometChatList/Header.js.map +1 -1
  1398. package/lib/shared/views/CometChatList/resources/Back.png +0 -0
  1399. package/lib/shared/views/CometChatList/resources/Search.png +0 -0
  1400. package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
  1401. package/lib/shared/views/CometChatList/resources/check.png +0 -0
  1402. package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
  1403. package/lib/shared/views/CometChatList/styles.d.ts +1 -98
  1404. package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +5 -1
  1405. package/lib/shared/views/CometChatListItem/CometChatListItem.js +32 -12
  1406. package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
  1407. package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +1 -1
  1408. package/lib/shared/views/CometChatListItem/style.d.ts +1 -61
  1409. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +1 -2
  1410. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +36 -5
  1411. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
  1412. package/lib/shared/views/CometChatMediaRecorder/style.d.ts +1 -27
  1413. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +7 -5
  1414. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
  1415. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
  1416. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +5 -4
  1417. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
  1418. package/lib/shared/views/CometChatMessageInput/styles.d.ts +1 -7
  1419. package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +9 -0
  1420. package/lib/shared/views/CometChatPanel/CometChatPanel.js +34 -0
  1421. package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -0
  1422. package/lib/shared/views/CometChatPanel/PanelStyle.d.ts +16 -0
  1423. package/lib/shared/views/CometChatPanel/PanelStyle.js +23 -0
  1424. package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -0
  1425. package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
  1426. package/lib/shared/views/CometChatPanel/resources/index.d.ts +2 -0
  1427. package/lib/shared/views/CometChatPanel/resources/index.js +3 -0
  1428. package/lib/shared/views/CometChatPanel/resources/index.js.map +1 -0
  1429. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +10 -0
  1430. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +48 -0
  1431. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -0
  1432. package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.d.ts +6 -0
  1433. package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js +9 -0
  1434. package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js.map +1 -0
  1435. package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.d.ts +12 -0
  1436. package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +19 -0
  1437. package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -0
  1438. package/lib/shared/views/CometChatQuickReactions/index.d.ts +4 -0
  1439. package/lib/shared/views/CometChatQuickReactions/index.js +5 -0
  1440. package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -0
  1441. package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
  1442. package/lib/shared/views/CometChatQuickReactions/resources/index.d.ts +3 -0
  1443. package/lib/shared/views/CometChatQuickReactions/resources/index.js +3 -0
  1444. package/lib/shared/views/CometChatQuickReactions/resources/index.js.map +1 -0
  1445. package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +10 -0
  1446. package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +40 -0
  1447. package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -0
  1448. package/lib/shared/views/CometChatQuickView/QuickViewStyle.d.ts +22 -0
  1449. package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +28 -0
  1450. package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -0
  1451. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +11 -0
  1452. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +36 -0
  1453. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -0
  1454. package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.d.ts +19 -0
  1455. package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +19 -0
  1456. package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -0
  1457. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +242 -0
  1458. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -0
  1459. package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.d.ts +6 -0
  1460. package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js +9 -0
  1461. package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js.map +1 -0
  1462. package/lib/shared/views/CometChatReactionList/ReactionListStyle.d.ts +28 -0
  1463. package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +35 -0
  1464. package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -0
  1465. package/lib/shared/views/CometChatReactionList/index.d.ts +4 -0
  1466. package/lib/shared/views/CometChatReactionList/index.js +5 -0
  1467. package/lib/shared/views/CometChatReactionList/index.js.map +1 -0
  1468. package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
  1469. package/lib/shared/views/CometChatReactionList/resources/index.d.ts +2 -0
  1470. package/lib/shared/views/CometChatReactionList/resources/index.js +3 -0
  1471. package/lib/shared/views/CometChatReactionList/resources/index.js.map +1 -0
  1472. package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +18 -0
  1473. package/lib/shared/views/CometChatReactions/CometChatReactions.js +119 -0
  1474. package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -0
  1475. package/lib/shared/views/CometChatReactions/ReactionsConfiguration.d.ts +6 -0
  1476. package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js +9 -0
  1477. package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js.map +1 -0
  1478. package/lib/shared/views/CometChatReactions/ReactionsStyle.d.ts +16 -0
  1479. package/lib/shared/views/CometChatReactions/ReactionsStyle.js +23 -0
  1480. package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -0
  1481. package/lib/shared/views/CometChatReactions/index.d.ts +4 -0
  1482. package/lib/shared/views/CometChatReactions/index.js +5 -0
  1483. package/lib/shared/views/CometChatReactions/index.js.map +1 -0
  1484. package/lib/shared/views/CometChatReactions/style.d.ts +1 -0
  1485. package/lib/shared/views/CometChatReactions/style.js +42 -0
  1486. package/lib/shared/views/CometChatReactions/style.js.map +1 -0
  1487. package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +6 -2
  1488. package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +12 -3
  1489. package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
  1490. package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +11 -1
  1491. package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +3 -1
  1492. package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
  1493. package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
  1494. package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
  1495. package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
  1496. package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
  1497. package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
  1498. package/lib/shared/views/CometChatReceipt/style.d.ts +1 -7
  1499. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +8 -0
  1500. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +1130 -0
  1501. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -0
  1502. package/lib/shared/views/CometChatSchedulerBubble/index.d.ts +2 -0
  1503. package/lib/shared/views/CometChatSchedulerBubble/index.js +2 -0
  1504. package/lib/shared/views/CometChatSchedulerBubble/index.js.map +1 -0
  1505. package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +24 -0
  1506. package/lib/shared/views/CometChatSchedulerBubble/styles.js +67 -0
  1507. package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -0
  1508. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +11 -0
  1509. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +35 -0
  1510. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -0
  1511. package/lib/shared/views/CometChatSingleSelect/SingleStyle.d.ts +18 -0
  1512. package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +18 -0
  1513. package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -0
  1514. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +1 -2
  1515. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
  1516. package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +1 -12
  1517. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +16 -0
  1518. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +27 -0
  1519. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -0
  1520. package/lib/shared/views/CometChatSuggestionList/SuggestionItem.d.ts +43 -0
  1521. package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +46 -0
  1522. package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -0
  1523. package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.d.ts +19 -0
  1524. package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +16 -0
  1525. package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -0
  1526. package/lib/shared/views/CometChatSuggestionList/index.d.ts +4 -0
  1527. package/lib/shared/views/CometChatSuggestionList/index.js +5 -0
  1528. package/lib/shared/views/CometChatSuggestionList/index.js.map +1 -0
  1529. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +3 -6
  1530. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +18 -29
  1531. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
  1532. package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +1 -11
  1533. package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -5
  1534. package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
  1535. package/lib/shared/views/CometChatTextBubble/index.d.ts +2 -2
  1536. package/lib/shared/views/CometChatTextBubble/index.js +2 -2
  1537. package/lib/shared/views/CometChatTextBubble/index.js.map +1 -1
  1538. package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +11 -0
  1539. package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +37 -0
  1540. package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -0
  1541. package/lib/shared/views/CometChatTextInput/TextInputStyle.d.ts +13 -0
  1542. package/lib/shared/views/CometChatTextInput/TextInputStyle.js +13 -0
  1543. package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -0
  1544. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +11 -0
  1545. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +69 -0
  1546. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -0
  1547. package/lib/shared/views/CometChatTimeSlotSelector/index.d.ts +2 -0
  1548. package/lib/shared/views/CometChatTimeSlotSelector/index.js +2 -0
  1549. package/lib/shared/views/CometChatTimeSlotSelector/index.js.map +1 -0
  1550. package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +11 -0
  1551. package/lib/shared/views/CometChatTimeSlotSelector/styles.js +20 -0
  1552. package/lib/shared/views/CometChatTimeSlotSelector/styles.js.map +1 -0
  1553. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +18 -2
  1554. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +42 -13
  1555. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  1556. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +41 -1
  1557. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +26 -1
  1558. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
  1559. package/lib/shared/views/CometChatVideoBubble/resources/default_image.png +0 -0
  1560. package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +2 -1
  1561. package/lib/shared/views/CometChatVideoBubble/resources/index.js +2 -1
  1562. package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -1
  1563. package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
  1564. package/lib/shared/views/CometChatVideoBubble/style.d.ts +1 -7
  1565. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +18 -0
  1566. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +64 -0
  1567. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -0
  1568. package/lib/shared/views/CometChatVideoPlayer/index.d.ts +1 -0
  1569. package/lib/shared/views/CometChatVideoPlayer/index.js +2 -0
  1570. package/lib/shared/views/CometChatVideoPlayer/index.js.map +1 -0
  1571. package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
  1572. package/lib/shared/views/SwipeRow/style.d.ts +1 -28
  1573. package/lib/shared/views/index.d.ts +10 -2
  1574. package/lib/shared/views/index.js +11 -3
  1575. package/lib/shared/views/index.js.map +1 -1
  1576. package/package.json +1 -1
  1577. package/src/AI/AIAssistBot/AIAssistBotView.tsx +2 -1
  1578. package/src/CometChatDetails/CometChatDetails.tsx +12 -12
  1579. package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +11 -3
  1580. package/src/CometChatGroups/CometChatGroups.tsx +23 -19
  1581. package/src/CometChatGroups/resources/check.png +0 -0
  1582. package/src/CometChatGroups/resources/index.ts +3 -1
  1583. package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +24 -9
  1584. package/src/CometChatMessageList/CometChatMessageList.tsx +25 -24
  1585. package/src/CometChatMessageList/MessageListConfiguration.ts +3 -7
  1586. package/src/CometChatMessages/CometChatMessages.tsx +1 -1
  1587. package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +53 -28
  1588. package/src/CometChatThreadedMessages/ThreadedMessagesConfiguration.ts +15 -0
  1589. package/src/calls/CallUtils.ts +4 -2
  1590. package/src/calls/CallingExtentionDecorator.tsx +2 -1
  1591. package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +7 -3
  1592. package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +2 -1
  1593. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +2 -1
  1594. package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +1 -1
  1595. package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -2
  1596. package/src/extensions/Polls/Polls.tsx +93 -115
  1597. package/src/extensions/Polls/PollsDecorator.tsx +1 -2
  1598. package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
  1599. package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +1 -1
  1600. package/src/index.ts +10 -0
  1601. package/src/shared/base/Types.ts +13 -1
  1602. package/src/shared/base/index.ts +11 -1
  1603. package/src/shared/constants/UIKitConstants.ts +0 -10
  1604. package/src/shared/framework/DataSource.ts +11 -11
  1605. package/src/shared/framework/DataSourceDecorator.tsx +1 -1
  1606. package/src/shared/framework/MessageDataSource.tsx +29 -28
  1607. package/src/shared/index.ts +10 -0
  1608. package/src/shared/modals/CometChatMessageTemplate.ts +7 -7
  1609. package/src/shared/resources/CometChatTheme/Palette.ts +0 -15
  1610. package/src/shared/utils/MessageUtils.tsx +2 -1
  1611. package/src/shared/views/CometChatList/CometChatList.tsx +1 -1
  1612. package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
  1613. package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
  1614. package/ios/VideoCaching/RCTVideoCache.h +0 -38
  1615. package/ios/VideoCaching/RCTVideoCache.m +0 -174
@@ -0,0 +1,2095 @@
1
+ import Duration from "./duration.js";
2
+ import Interval from "./interval.js";
3
+ import Settings from "./settings.js";
4
+ import Info from "./info.js";
5
+ import Formatter from "./impl/formatter.js";
6
+ import FixedOffsetZone from "./zones/fixedOffsetZone.js";
7
+ import Locale from "./impl/locale.js";
8
+ import { isUndefined, maybeArray, isDate, isNumber, bestBy, daysInMonth, daysInYear, isLeapYear, weeksInWeekYear, normalizeObject, roundTo, objToLocalTS, padStart, } from "./impl/util.js";
9
+ import { normalizeZone } from "./impl/zoneUtil.js";
10
+ import diff from "./impl/diff.js";
11
+ import { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from "./impl/regexParser.js";
12
+ import { parseFromTokens, explainFromTokens, formatOptsToTokens, expandMacroTokens, } from "./impl/tokenParser.js";
13
+ import { gregorianToWeek, weekToGregorian, gregorianToOrdinal, ordinalToGregorian, hasInvalidGregorianData, hasInvalidWeekData, hasInvalidOrdinalData, hasInvalidTimeData, usesLocalWeekValues, isoWeekdayToLocal, } from "./impl/conversions.js";
14
+ import * as Formats from "./impl/formats.js";
15
+ import { InvalidArgumentError, ConflictingSpecificationError, InvalidUnitError, InvalidDateTimeError, } from "./errors.js";
16
+ import Invalid from "./impl/invalid.js";
17
+ const INVALID = "Invalid DateTime";
18
+ const MAX_DATE = 8.64e15;
19
+ function unsupportedZone(zone) {
20
+ return new Invalid("unsupported zone", `the zone "${zone.name}" is not supported`);
21
+ }
22
+ // we cache week data on the DT object and this intermediates the cache
23
+ /**
24
+ * @param {DateTime} dt
25
+ */
26
+ function possiblyCachedWeekData(dt) {
27
+ if (dt.weekData === null) {
28
+ dt.weekData = gregorianToWeek(dt.c);
29
+ }
30
+ return dt.weekData;
31
+ }
32
+ /**
33
+ * @param {DateTime} dt
34
+ */
35
+ function possiblyCachedLocalWeekData(dt) {
36
+ if (dt.localWeekData === null) {
37
+ dt.localWeekData = gregorianToWeek(dt.c, dt.loc.getMinDaysInFirstWeek(), dt.loc.getStartOfWeek());
38
+ }
39
+ return dt.localWeekData;
40
+ }
41
+ // clone really means, "make a new object with these modifications". all "setters" really use this
42
+ // to create a new object while only changing some of the properties
43
+ function clone(inst, alts) {
44
+ const current = {
45
+ ts: inst.ts,
46
+ zone: inst.zone,
47
+ c: inst.c,
48
+ o: inst.o,
49
+ loc: inst.loc,
50
+ invalid: inst.invalid,
51
+ };
52
+ return new DateTime({ ...current, ...alts, old: current });
53
+ }
54
+ // find the right offset a given local time. The o input is our guess, which determines which
55
+ // offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)
56
+ function fixOffset(localTS, o, tz) {
57
+ // Our UTC time is just a guess because our offset is just a guess
58
+ let utcGuess = localTS - o * 60 * 1000;
59
+ // Test whether the zone matches the offset for this ts
60
+ const o2 = tz.offset(utcGuess);
61
+ // If so, offset didn't change and we're done
62
+ if (o === o2) {
63
+ return [utcGuess, o];
64
+ }
65
+ // If not, change the ts by the difference in the offset
66
+ utcGuess -= (o2 - o) * 60 * 1000;
67
+ // If that gives us the local time we want, we're done
68
+ const o3 = tz.offset(utcGuess);
69
+ if (o2 === o3) {
70
+ return [utcGuess, o2];
71
+ }
72
+ // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time
73
+ return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];
74
+ }
75
+ // convert an epoch timestamp into a calendar object with the given offset
76
+ function tsToObj(ts, offset) {
77
+ ts += offset * 60 * 1000;
78
+ const d = new Date(ts);
79
+ return {
80
+ year: d.getUTCFullYear(),
81
+ month: d.getUTCMonth() + 1,
82
+ day: d.getUTCDate(),
83
+ hour: d.getUTCHours(),
84
+ minute: d.getUTCMinutes(),
85
+ second: d.getUTCSeconds(),
86
+ millisecond: d.getUTCMilliseconds(),
87
+ };
88
+ }
89
+ // convert a calendar object to a epoch timestamp
90
+ function objToTS(obj, offset, zone) {
91
+ return fixOffset(objToLocalTS(obj), offset, zone);
92
+ }
93
+ // create a new DT instance by adding a duration, adjusting for DSTs
94
+ function adjustTime(inst, dur) {
95
+ const oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = {
96
+ ...inst.c,
97
+ year,
98
+ month,
99
+ day: Math.min(inst.c.day, daysInMonth(year, month)) +
100
+ Math.trunc(dur.days) +
101
+ Math.trunc(dur.weeks) * 7,
102
+ }, millisToAdd = Duration.fromObject({
103
+ years: dur.years - Math.trunc(dur.years),
104
+ quarters: dur.quarters - Math.trunc(dur.quarters),
105
+ months: dur.months - Math.trunc(dur.months),
106
+ weeks: dur.weeks - Math.trunc(dur.weeks),
107
+ days: dur.days - Math.trunc(dur.days),
108
+ hours: dur.hours,
109
+ minutes: dur.minutes,
110
+ seconds: dur.seconds,
111
+ milliseconds: dur.milliseconds,
112
+ }).as("milliseconds"), localTS = objToLocalTS(c);
113
+ let [ts, o] = fixOffset(localTS, oPre, inst.zone);
114
+ if (millisToAdd !== 0) {
115
+ ts += millisToAdd;
116
+ // that could have changed the offset by going over a DST, but we want to keep the ts the same
117
+ o = inst.zone.offset(ts);
118
+ }
119
+ return { ts, o };
120
+ }
121
+ // helper useful in turning the results of parsing into real dates
122
+ // by handling the zone options
123
+ function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
124
+ const { setZone, zone } = opts;
125
+ if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {
126
+ const interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, {
127
+ ...opts,
128
+ zone: interpretationZone,
129
+ specificOffset,
130
+ });
131
+ return setZone ? inst : inst.setZone(zone);
132
+ }
133
+ else {
134
+ return DateTime.invalid(new Invalid("unparsable", `the input "${text}" can't be parsed as ${format}`));
135
+ }
136
+ }
137
+ // if you want to output a technical format (e.g. RFC 2822), this helper
138
+ // helps handle the details
139
+ function toTechFormat(dt, format, allowZ = true) {
140
+ return dt.isValid
141
+ ? Formatter.create(Locale.create("en-US"), {
142
+ allowZ,
143
+ forceSimple: true,
144
+ }).formatDateTimeFromString(dt, format)
145
+ : null;
146
+ }
147
+ function toISODate(o, extended) {
148
+ const longFormat = o.c.year > 9999 || o.c.year < 0;
149
+ let c = "";
150
+ if (longFormat && o.c.year >= 0)
151
+ c += "+";
152
+ c += padStart(o.c.year, longFormat ? 6 : 4);
153
+ if (extended) {
154
+ c += "-";
155
+ c += padStart(o.c.month);
156
+ c += "-";
157
+ c += padStart(o.c.day);
158
+ }
159
+ else {
160
+ c += padStart(o.c.month);
161
+ c += padStart(o.c.day);
162
+ }
163
+ return c;
164
+ }
165
+ function toISOTime(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) {
166
+ let c = padStart(o.c.hour);
167
+ if (extended) {
168
+ c += ":";
169
+ c += padStart(o.c.minute);
170
+ if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {
171
+ c += ":";
172
+ }
173
+ }
174
+ else {
175
+ c += padStart(o.c.minute);
176
+ }
177
+ if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {
178
+ c += padStart(o.c.second);
179
+ if (o.c.millisecond !== 0 || !suppressMilliseconds) {
180
+ c += ".";
181
+ c += padStart(o.c.millisecond, 3);
182
+ }
183
+ }
184
+ if (includeOffset) {
185
+ if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {
186
+ c += "Z";
187
+ }
188
+ else if (o.o < 0) {
189
+ c += "-";
190
+ c += padStart(Math.trunc(-o.o / 60));
191
+ c += ":";
192
+ c += padStart(Math.trunc(-o.o % 60));
193
+ }
194
+ else {
195
+ c += "+";
196
+ c += padStart(Math.trunc(o.o / 60));
197
+ c += ":";
198
+ c += padStart(Math.trunc(o.o % 60));
199
+ }
200
+ }
201
+ if (extendedZone) {
202
+ c += "[" + o.zone.ianaName + "]";
203
+ }
204
+ return c;
205
+ }
206
+ // defaults for unspecified units in the supported calendars
207
+ const defaultUnitValues = {
208
+ month: 1,
209
+ day: 1,
210
+ hour: 0,
211
+ minute: 0,
212
+ second: 0,
213
+ millisecond: 0,
214
+ }, defaultWeekUnitValues = {
215
+ weekNumber: 1,
216
+ weekday: 1,
217
+ hour: 0,
218
+ minute: 0,
219
+ second: 0,
220
+ millisecond: 0,
221
+ }, defaultOrdinalUnitValues = {
222
+ ordinal: 1,
223
+ hour: 0,
224
+ minute: 0,
225
+ second: 0,
226
+ millisecond: 0,
227
+ };
228
+ // Units in the supported calendars, sorted by bigness
229
+ const orderedUnits = ["year", "month", "day", "hour", "minute", "second", "millisecond"], orderedWeekUnits = [
230
+ "weekYear",
231
+ "weekNumber",
232
+ "weekday",
233
+ "hour",
234
+ "minute",
235
+ "second",
236
+ "millisecond",
237
+ ], orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
238
+ // standardize case and plurality in units
239
+ function normalizeUnit(unit) {
240
+ const normalized = {
241
+ year: "year",
242
+ years: "year",
243
+ month: "month",
244
+ months: "month",
245
+ day: "day",
246
+ days: "day",
247
+ hour: "hour",
248
+ hours: "hour",
249
+ minute: "minute",
250
+ minutes: "minute",
251
+ quarter: "quarter",
252
+ quarters: "quarter",
253
+ second: "second",
254
+ seconds: "second",
255
+ millisecond: "millisecond",
256
+ milliseconds: "millisecond",
257
+ weekday: "weekday",
258
+ weekdays: "weekday",
259
+ weeknumber: "weekNumber",
260
+ weeksnumber: "weekNumber",
261
+ weeknumbers: "weekNumber",
262
+ weekyear: "weekYear",
263
+ weekyears: "weekYear",
264
+ ordinal: "ordinal",
265
+ }[unit.toLowerCase()];
266
+ if (!normalized)
267
+ throw new InvalidUnitError(unit);
268
+ return normalized;
269
+ }
270
+ function normalizeUnitWithLocalWeeks(unit) {
271
+ switch (unit.toLowerCase()) {
272
+ case "localweekday":
273
+ case "localweekdays":
274
+ return "localWeekday";
275
+ case "localweeknumber":
276
+ case "localweeknumbers":
277
+ return "localWeekNumber";
278
+ case "localweekyear":
279
+ case "localweekyears":
280
+ return "localWeekYear";
281
+ default:
282
+ return normalizeUnit(unit);
283
+ }
284
+ }
285
+ // this is a dumbed down version of fromObject() that runs about 60% faster
286
+ // but doesn't do any validation, makes a bunch of assumptions about what units
287
+ // are present, and so on.
288
+ function quickDT(obj, opts) {
289
+ const zone = normalizeZone(opts.zone, Settings.defaultZone), loc = Locale.fromObject(opts), tsNow = Settings.now();
290
+ let ts, o;
291
+ // assume we have the higher-order units
292
+ if (!isUndefined(obj.year)) {
293
+ for (const u of orderedUnits) {
294
+ if (isUndefined(obj[u])) {
295
+ obj[u] = defaultUnitValues[u];
296
+ }
297
+ }
298
+ const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);
299
+ if (invalid) {
300
+ return DateTime.invalid(invalid);
301
+ }
302
+ const offsetProvis = zone.offset(tsNow);
303
+ [ts, o] = objToTS(obj, offsetProvis, zone);
304
+ }
305
+ else {
306
+ ts = tsNow;
307
+ }
308
+ return new DateTime({ ts, zone, loc, o });
309
+ }
310
+ function diffRelative(start, end, opts) {
311
+ const round = isUndefined(opts.round) ? true : opts.round, format = (c, unit) => {
312
+ c = roundTo(c, round || opts.calendary ? 0 : 2, true);
313
+ const formatter = end.loc.clone(opts).relFormatter(opts);
314
+ return formatter.format(c, unit);
315
+ }, differ = (unit) => {
316
+ if (opts.calendary) {
317
+ if (!end.hasSame(start, unit)) {
318
+ return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);
319
+ }
320
+ else
321
+ return 0;
322
+ }
323
+ else {
324
+ return end.diff(start, unit).get(unit);
325
+ }
326
+ };
327
+ if (opts.unit) {
328
+ return format(differ(opts.unit), opts.unit);
329
+ }
330
+ for (const unit of opts.units) {
331
+ const count = differ(unit);
332
+ if (Math.abs(count) >= 1) {
333
+ return format(count, unit);
334
+ }
335
+ }
336
+ return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);
337
+ }
338
+ function lastOpts(argList) {
339
+ let opts = {}, args;
340
+ if (argList.length > 0 && typeof argList[argList.length - 1] === "object") {
341
+ opts = argList[argList.length - 1];
342
+ args = Array.from(argList).slice(0, argList.length - 1);
343
+ }
344
+ else {
345
+ args = Array.from(argList);
346
+ }
347
+ return [opts, args];
348
+ }
349
+ /**
350
+ * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.
351
+ *
352
+ * A DateTime comprises of:
353
+ * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.
354
+ * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).
355
+ * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.
356
+ *
357
+ * Here is a brief overview of the most commonly used functionality it provides:
358
+ *
359
+ * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.
360
+ * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},
361
+ * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.
362
+ * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.
363
+ * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.
364
+ * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.
365
+ * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.
366
+ *
367
+ * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.
368
+ */
369
+ export default class DateTime {
370
+ /**
371
+ * @access private
372
+ */
373
+ constructor(config) {
374
+ const zone = config.zone || Settings.defaultZone;
375
+ let invalid = config.invalid ||
376
+ (Number.isNaN(config.ts) ? new Invalid("invalid input") : null) ||
377
+ (!zone.isValid ? unsupportedZone(zone) : null);
378
+ /**
379
+ * @access private
380
+ */
381
+ this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;
382
+ let c = null, o = null;
383
+ if (!invalid) {
384
+ const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
385
+ if (unchanged) {
386
+ [c, o] = [config.old.c, config.old.o];
387
+ }
388
+ else {
389
+ const ot = zone.offset(this.ts);
390
+ c = tsToObj(this.ts, ot);
391
+ invalid = Number.isNaN(c.year) ? new Invalid("invalid input") : null;
392
+ c = invalid ? null : c;
393
+ o = invalid ? null : ot;
394
+ }
395
+ }
396
+ /**
397
+ * @access private
398
+ */
399
+ this._zone = zone;
400
+ /**
401
+ * @access private
402
+ */
403
+ this.loc = config.loc || Locale.create();
404
+ /**
405
+ * @access private
406
+ */
407
+ this.invalid = invalid;
408
+ /**
409
+ * @access private
410
+ */
411
+ this.weekData = null;
412
+ /**
413
+ * @access private
414
+ */
415
+ this.localWeekData = null;
416
+ /**
417
+ * @access private
418
+ */
419
+ this.c = c;
420
+ /**
421
+ * @access private
422
+ */
423
+ this.o = o;
424
+ /**
425
+ * @access private
426
+ */
427
+ this.isLuxonDateTime = true;
428
+ }
429
+ // CONSTRUCT
430
+ /**
431
+ * Create a DateTime for the current instant, in the system's time zone.
432
+ *
433
+ * Use Settings to override these default values if needed.
434
+ * @example DateTime.now().toISO() //~> now in the ISO format
435
+ * @return {DateTime}
436
+ */
437
+ static now() {
438
+ return new DateTime({});
439
+ }
440
+ /**
441
+ * Create a local DateTime
442
+ * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
443
+ * @param {number} [month=1] - The month, 1-indexed
444
+ * @param {number} [day=1] - The day of the month, 1-indexed
445
+ * @param {number} [hour=0] - The hour of the day, in 24-hour time
446
+ * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
447
+ * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
448
+ * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
449
+ * @example DateTime.local() //~> now
450
+ * @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
451
+ * @example DateTime.local(2017) //~> 2017-01-01T00:00:00
452
+ * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
453
+ * @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
454
+ * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
455
+ * @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
456
+ * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
457
+ * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
458
+ * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
459
+ * @return {DateTime}
460
+ */
461
+ static local() {
462
+ const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args;
463
+ return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);
464
+ }
465
+ /**
466
+ * Create a DateTime in UTC
467
+ * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
468
+ * @param {number} [month=1] - The month, 1-indexed
469
+ * @param {number} [day=1] - The day of the month
470
+ * @param {number} [hour=0] - The hour of the day, in 24-hour time
471
+ * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
472
+ * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
473
+ * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
474
+ * @param {Object} options - configuration options for the DateTime
475
+ * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
476
+ * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
477
+ * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
478
+ * @example DateTime.utc() //~> now
479
+ * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
480
+ * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
481
+ * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
482
+ * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
483
+ * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
484
+ * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
485
+ * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
486
+ * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
487
+ * @return {DateTime}
488
+ */
489
+ static utc() {
490
+ const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args;
491
+ opts.zone = FixedOffsetZone.utcInstance;
492
+ return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);
493
+ }
494
+ /**
495
+ * Create a DateTime from a JavaScript Date object. Uses the default zone.
496
+ * @param {Date} date - a JavaScript Date object
497
+ * @param {Object} options - configuration options for the DateTime
498
+ * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
499
+ * @return {DateTime}
500
+ */
501
+ static fromJSDate(date, options = {}) {
502
+ const ts = isDate(date) ? date.valueOf() : NaN;
503
+ if (Number.isNaN(ts)) {
504
+ return DateTime.invalid("invalid input");
505
+ }
506
+ const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);
507
+ if (!zoneToUse.isValid) {
508
+ return DateTime.invalid(unsupportedZone(zoneToUse));
509
+ }
510
+ return new DateTime({
511
+ ts: ts,
512
+ zone: zoneToUse,
513
+ loc: Locale.fromObject(options),
514
+ });
515
+ }
516
+ /**
517
+ * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
518
+ * @param {number} milliseconds - a number of milliseconds since 1970 UTC
519
+ * @param {Object} options - configuration options for the DateTime
520
+ * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
521
+ * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
522
+ * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
523
+ * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
524
+ * @return {DateTime}
525
+ */
526
+ static fromMillis(milliseconds, options = {}) {
527
+ if (!isNumber(milliseconds)) {
528
+ throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`);
529
+ }
530
+ else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {
531
+ // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start
532
+ return DateTime.invalid("Timestamp out of range");
533
+ }
534
+ else {
535
+ return new DateTime({
536
+ ts: milliseconds,
537
+ zone: normalizeZone(options.zone, Settings.defaultZone),
538
+ loc: Locale.fromObject(options),
539
+ });
540
+ }
541
+ }
542
+ /**
543
+ * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
544
+ * @param {number} seconds - a number of seconds since 1970 UTC
545
+ * @param {Object} options - configuration options for the DateTime
546
+ * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
547
+ * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
548
+ * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
549
+ * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
550
+ * @return {DateTime}
551
+ */
552
+ static fromSeconds(seconds, options = {}) {
553
+ if (!isNumber(seconds)) {
554
+ throw new InvalidArgumentError("fromSeconds requires a numerical input");
555
+ }
556
+ else {
557
+ return new DateTime({
558
+ ts: seconds * 1000,
559
+ zone: normalizeZone(options.zone, Settings.defaultZone),
560
+ loc: Locale.fromObject(options),
561
+ });
562
+ }
563
+ }
564
+ /**
565
+ * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
566
+ * @param {Object} obj - the object to create the DateTime from
567
+ * @param {number} obj.year - a year, such as 1987
568
+ * @param {number} obj.month - a month, 1-12
569
+ * @param {number} obj.day - a day of the month, 1-31, depending on the month
570
+ * @param {number} obj.ordinal - day of the year, 1-365 or 366
571
+ * @param {number} obj.weekYear - an ISO week year
572
+ * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
573
+ * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
574
+ * @param {number} obj.localWeekYear - a week year, according to the locale
575
+ * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale
576
+ * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale
577
+ * @param {number} obj.hour - hour of the day, 0-23
578
+ * @param {number} obj.minute - minute of the hour, 0-59
579
+ * @param {number} obj.second - second of the minute, 0-59
580
+ * @param {number} obj.millisecond - millisecond of the second, 0-999
581
+ * @param {Object} opts - options for creating this DateTime
582
+ * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
583
+ * @param {string} [opts.locale='system\'s locale'] - a locale to set on the resulting DateTime instance
584
+ * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
585
+ * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
586
+ * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
587
+ * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
588
+ * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
589
+ * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
590
+ * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
591
+ * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
592
+ * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
593
+ * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: "en-US" }).toISODate() //=> '2021-12-26'
594
+ * @return {DateTime}
595
+ */
596
+ static fromObject(obj, opts = {}) {
597
+ obj = obj || {};
598
+ const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);
599
+ if (!zoneToUse.isValid) {
600
+ return DateTime.invalid(unsupportedZone(zoneToUse));
601
+ }
602
+ const loc = Locale.fromObject(opts);
603
+ const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);
604
+ const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);
605
+ const tsNow = Settings.now(), offsetProvis = !isUndefined(opts.specificOffset)
606
+ ? opts.specificOffset
607
+ : zoneToUse.offset(tsNow), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber;
608
+ // cases:
609
+ // just a weekday -> this week's instance of that weekday, no worries
610
+ // (gregorian data or ordinal) + (weekYear or weekNumber) -> error
611
+ // (gregorian month or day) + ordinal -> error
612
+ // otherwise just use weeks or ordinals or gregorian, depending on what's specified
613
+ if ((containsGregor || containsOrdinal) && definiteWeekDef) {
614
+ throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
615
+ }
616
+ if (containsGregorMD && containsOrdinal) {
617
+ throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
618
+ }
619
+ const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);
620
+ // configure ourselves to deal with gregorian dates or week stuff
621
+ let units, defaultValues, objNow = tsToObj(tsNow, offsetProvis);
622
+ if (useWeekData) {
623
+ units = orderedWeekUnits;
624
+ defaultValues = defaultWeekUnitValues;
625
+ objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);
626
+ }
627
+ else if (containsOrdinal) {
628
+ units = orderedOrdinalUnits;
629
+ defaultValues = defaultOrdinalUnitValues;
630
+ objNow = gregorianToOrdinal(objNow);
631
+ }
632
+ else {
633
+ units = orderedUnits;
634
+ defaultValues = defaultUnitValues;
635
+ }
636
+ // set default values for missing stuff
637
+ let foundFirst = false;
638
+ for (const u of units) {
639
+ const v = normalized[u];
640
+ if (!isUndefined(v)) {
641
+ foundFirst = true;
642
+ }
643
+ else if (foundFirst) {
644
+ normalized[u] = defaultValues[u];
645
+ }
646
+ else {
647
+ normalized[u] = objNow[u];
648
+ }
649
+ }
650
+ // make sure the values we have are in range
651
+ const higherOrderInvalid = useWeekData
652
+ ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)
653
+ : containsOrdinal
654
+ ? hasInvalidOrdinalData(normalized)
655
+ : hasInvalidGregorianData(normalized), invalid = higherOrderInvalid || hasInvalidTimeData(normalized);
656
+ if (invalid) {
657
+ return DateTime.invalid(invalid);
658
+ }
659
+ // compute the actual time
660
+ const gregorian = useWeekData
661
+ ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)
662
+ : containsOrdinal
663
+ ? ordinalToGregorian(normalized)
664
+ : normalized, [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse), inst = new DateTime({
665
+ ts: tsFinal,
666
+ zone: zoneToUse,
667
+ o: offsetFinal,
668
+ loc,
669
+ });
670
+ // gregorian data + weekday serves only to validate
671
+ if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {
672
+ return DateTime.invalid("mismatched weekday", `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`);
673
+ }
674
+ return inst;
675
+ }
676
+ /**
677
+ * Create a DateTime from an ISO 8601 string
678
+ * @param {string} text - the ISO string
679
+ * @param {Object} opts - options to affect the creation
680
+ * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone
681
+ * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
682
+ * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
683
+ * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
684
+ * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
685
+ * @example DateTime.fromISO('2016-05-25T09:08:34.123')
686
+ * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
687
+ * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
688
+ * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
689
+ * @example DateTime.fromISO('2016-W05-4')
690
+ * @return {DateTime}
691
+ */
692
+ static fromISO(text, opts = {}) {
693
+ const [vals, parsedZone] = parseISODate(text);
694
+ return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text);
695
+ }
696
+ /**
697
+ * Create a DateTime from an RFC 2822 string
698
+ * @param {string} text - the RFC 2822 string
699
+ * @param {Object} opts - options to affect the creation
700
+ * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
701
+ * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
702
+ * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
703
+ * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
704
+ * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
705
+ * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
706
+ * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
707
+ * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
708
+ * @return {DateTime}
709
+ */
710
+ static fromRFC2822(text, opts = {}) {
711
+ const [vals, parsedZone] = parseRFC2822Date(text);
712
+ return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text);
713
+ }
714
+ /**
715
+ * Create a DateTime from an HTTP header date
716
+ * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
717
+ * @param {string} text - the HTTP header date
718
+ * @param {Object} opts - options to affect the creation
719
+ * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
720
+ * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.
721
+ * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
722
+ * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
723
+ * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
724
+ * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
725
+ * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
726
+ * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
727
+ * @return {DateTime}
728
+ */
729
+ static fromHTTP(text, opts = {}) {
730
+ const [vals, parsedZone] = parseHTTPDate(text);
731
+ return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts);
732
+ }
733
+ /**
734
+ * Create a DateTime from an input string and format string.
735
+ * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).
736
+ * @param {string} text - the string to parse
737
+ * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
738
+ * @param {Object} opts - options to affect the creation
739
+ * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
740
+ * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
741
+ * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
742
+ * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
743
+ * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
744
+ * @return {DateTime}
745
+ */
746
+ static fromFormat(text, fmt, opts = {}) {
747
+ if (isUndefined(text) || isUndefined(fmt)) {
748
+ throw new InvalidArgumentError("fromFormat requires an input string and a format");
749
+ }
750
+ const { locale = null, numberingSystem = null } = opts, localeToUse = Locale.fromOpts({
751
+ locale,
752
+ numberingSystem,
753
+ defaultToEN: true,
754
+ }), [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);
755
+ if (invalid) {
756
+ return DateTime.invalid(invalid);
757
+ }
758
+ else {
759
+ return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);
760
+ }
761
+ }
762
+ /**
763
+ * @deprecated use fromFormat instead
764
+ */
765
+ static fromString(text, fmt, opts = {}) {
766
+ return DateTime.fromFormat(text, fmt, opts);
767
+ }
768
+ /**
769
+ * Create a DateTime from a SQL date, time, or datetime
770
+ * Defaults to en-US if no locale has been specified, regardless of the system's locale
771
+ * @param {string} text - the string to parse
772
+ * @param {Object} opts - options to affect the creation
773
+ * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
774
+ * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
775
+ * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
776
+ * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
777
+ * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
778
+ * @example DateTime.fromSQL('2017-05-15')
779
+ * @example DateTime.fromSQL('2017-05-15 09:12:34')
780
+ * @example DateTime.fromSQL('2017-05-15 09:12:34.342')
781
+ * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
782
+ * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
783
+ * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
784
+ * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
785
+ * @example DateTime.fromSQL('09:12:34.342')
786
+ * @return {DateTime}
787
+ */
788
+ static fromSQL(text, opts = {}) {
789
+ const [vals, parsedZone] = parseSQL(text);
790
+ return parseDataToDateTime(vals, parsedZone, opts, "SQL", text);
791
+ }
792
+ /**
793
+ * Create an invalid DateTime.
794
+ * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.
795
+ * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
796
+ * @return {DateTime}
797
+ */
798
+ static invalid(reason, explanation = null) {
799
+ if (!reason) {
800
+ throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
801
+ }
802
+ const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
803
+ if (Settings.throwOnInvalid) {
804
+ throw new InvalidDateTimeError(invalid);
805
+ }
806
+ else {
807
+ return new DateTime({ invalid });
808
+ }
809
+ }
810
+ /**
811
+ * Check if an object is an instance of DateTime. Works across context boundaries
812
+ * @param {object} o
813
+ * @return {boolean}
814
+ */
815
+ static isDateTime(o) {
816
+ return (o && o.isLuxonDateTime) || false;
817
+ }
818
+ /**
819
+ * Produce the format string for a set of options
820
+ * @param formatOpts
821
+ * @param localeOpts
822
+ * @returns {string}
823
+ */
824
+ static parseFormatForOpts(formatOpts, localeOpts = {}) {
825
+ const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));
826
+ return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join("");
827
+ }
828
+ /**
829
+ * Produce the the fully expanded format token for the locale
830
+ * Does NOT quote characters, so quoted tokens will not round trip correctly
831
+ * @param fmt
832
+ * @param localeOpts
833
+ * @returns {string}
834
+ */
835
+ static expandFormat(fmt, localeOpts = {}) {
836
+ const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));
837
+ return expanded.map((t) => t.val).join("");
838
+ }
839
+ // INFO
840
+ /**
841
+ * Get the value of unit.
842
+ * @param {string} unit - a unit such as 'minute' or 'day'
843
+ * @example DateTime.local(2017, 7, 4).get('month'); //=> 7
844
+ * @example DateTime.local(2017, 7, 4).get('day'); //=> 4
845
+ * @return {number}
846
+ */
847
+ get(unit) {
848
+ return this[unit];
849
+ }
850
+ /**
851
+ * Returns whether the DateTime is valid. Invalid DateTimes occur when:
852
+ * * The DateTime was created from invalid calendar information, such as the 13th month or February 30
853
+ * * The DateTime was created by an operation on another invalid date
854
+ * @type {boolean}
855
+ */
856
+ get isValid() {
857
+ return this.invalid === null;
858
+ }
859
+ /**
860
+ * Returns an error code if this DateTime is invalid, or null if the DateTime is valid
861
+ * @type {string}
862
+ */
863
+ get invalidReason() {
864
+ return this.invalid ? this.invalid.reason : null;
865
+ }
866
+ /**
867
+ * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid
868
+ * @type {string}
869
+ */
870
+ get invalidExplanation() {
871
+ return this.invalid ? this.invalid.explanation : null;
872
+ }
873
+ /**
874
+ * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime
875
+ *
876
+ * @type {string}
877
+ */
878
+ get locale() {
879
+ return this.isValid ? this.loc.locale : null;
880
+ }
881
+ /**
882
+ * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
883
+ *
884
+ * @type {string}
885
+ */
886
+ get numberingSystem() {
887
+ return this.isValid ? this.loc.numberingSystem : null;
888
+ }
889
+ /**
890
+ * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
891
+ *
892
+ * @type {string}
893
+ */
894
+ get outputCalendar() {
895
+ return this.isValid ? this.loc.outputCalendar : null;
896
+ }
897
+ /**
898
+ * Get the time zone associated with this DateTime.
899
+ * @type {Zone}
900
+ */
901
+ get zone() {
902
+ return this._zone;
903
+ }
904
+ /**
905
+ * Get the name of the time zone.
906
+ * @type {string}
907
+ */
908
+ get zoneName() {
909
+ return this.isValid ? this.zone.name : null;
910
+ }
911
+ /**
912
+ * Get the year
913
+ * @example DateTime.local(2017, 5, 25).year //=> 2017
914
+ * @type {number}
915
+ */
916
+ get year() {
917
+ return this.isValid ? this.c.year : NaN;
918
+ }
919
+ /**
920
+ * Get the quarter
921
+ * @example DateTime.local(2017, 5, 25).quarter //=> 2
922
+ * @type {number}
923
+ */
924
+ get quarter() {
925
+ return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
926
+ }
927
+ /**
928
+ * Get the month (1-12).
929
+ * @example DateTime.local(2017, 5, 25).month //=> 5
930
+ * @type {number}
931
+ */
932
+ get month() {
933
+ return this.isValid ? this.c.month : NaN;
934
+ }
935
+ /**
936
+ * Get the day of the month (1-30ish).
937
+ * @example DateTime.local(2017, 5, 25).day //=> 25
938
+ * @type {number}
939
+ */
940
+ get day() {
941
+ return this.isValid ? this.c.day : NaN;
942
+ }
943
+ /**
944
+ * Get the hour of the day (0-23).
945
+ * @example DateTime.local(2017, 5, 25, 9).hour //=> 9
946
+ * @type {number}
947
+ */
948
+ get hour() {
949
+ return this.isValid ? this.c.hour : NaN;
950
+ }
951
+ /**
952
+ * Get the minute of the hour (0-59).
953
+ * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
954
+ * @type {number}
955
+ */
956
+ get minute() {
957
+ return this.isValid ? this.c.minute : NaN;
958
+ }
959
+ /**
960
+ * Get the second of the minute (0-59).
961
+ * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
962
+ * @type {number}
963
+ */
964
+ get second() {
965
+ return this.isValid ? this.c.second : NaN;
966
+ }
967
+ /**
968
+ * Get the millisecond of the second (0-999).
969
+ * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
970
+ * @type {number}
971
+ */
972
+ get millisecond() {
973
+ return this.isValid ? this.c.millisecond : NaN;
974
+ }
975
+ /**
976
+ * Get the week year
977
+ * @see https://en.wikipedia.org/wiki/ISO_week_date
978
+ * @example DateTime.local(2014, 12, 31).weekYear //=> 2015
979
+ * @type {number}
980
+ */
981
+ get weekYear() {
982
+ return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;
983
+ }
984
+ /**
985
+ * Get the week number of the week year (1-52ish).
986
+ * @see https://en.wikipedia.org/wiki/ISO_week_date
987
+ * @example DateTime.local(2017, 5, 25).weekNumber //=> 21
988
+ * @type {number}
989
+ */
990
+ get weekNumber() {
991
+ return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;
992
+ }
993
+ /**
994
+ * Get the day of the week.
995
+ * 1 is Monday and 7 is Sunday
996
+ * @see https://en.wikipedia.org/wiki/ISO_week_date
997
+ * @example DateTime.local(2014, 11, 31).weekday //=> 4
998
+ * @type {number}
999
+ */
1000
+ get weekday() {
1001
+ return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;
1002
+ }
1003
+ /**
1004
+ * Returns true if this date is on a weekend according to the locale, false otherwise
1005
+ * @returns {boolean}
1006
+ */
1007
+ get isWeekend() {
1008
+ return this.isValid && this.loc.getWeekendDays().includes(this.weekday);
1009
+ }
1010
+ /**
1011
+ * Get the day of the week according to the locale.
1012
+ * 1 is the first day of the week and 7 is the last day of the week.
1013
+ * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,
1014
+ * @returns {number}
1015
+ */
1016
+ get localWeekday() {
1017
+ return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;
1018
+ }
1019
+ /**
1020
+ * Get the week number of the week year according to the locale. Different locales assign week numbers differently,
1021
+ * because the week can start on different days of the week (see localWeekday) and because a different number of days
1022
+ * is required for a week to count as the first week of a year.
1023
+ * @returns {number}
1024
+ */
1025
+ get localWeekNumber() {
1026
+ return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;
1027
+ }
1028
+ /**
1029
+ * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
1030
+ * differently, see localWeekNumber.
1031
+ * @returns {number}
1032
+ */
1033
+ get localWeekYear() {
1034
+ return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;
1035
+ }
1036
+ /**
1037
+ * Get the ordinal (meaning the day of the year)
1038
+ * @example DateTime.local(2017, 5, 25).ordinal //=> 145
1039
+ * @type {number|DateTime}
1040
+ */
1041
+ get ordinal() {
1042
+ return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;
1043
+ }
1044
+ /**
1045
+ * Get the human readable short month name, such as 'Oct'.
1046
+ * Defaults to the system's locale if no locale has been specified
1047
+ * @example DateTime.local(2017, 10, 30).monthShort //=> Oct
1048
+ * @type {string}
1049
+ */
1050
+ get monthShort() {
1051
+ return this.isValid ? Info.months("short", { locObj: this.loc })[this.month - 1] : null;
1052
+ }
1053
+ /**
1054
+ * Get the human readable long month name, such as 'October'.
1055
+ * Defaults to the system's locale if no locale has been specified
1056
+ * @example DateTime.local(2017, 10, 30).monthLong //=> October
1057
+ * @type {string}
1058
+ */
1059
+ get monthLong() {
1060
+ return this.isValid ? Info.months("long", { locObj: this.loc })[this.month - 1] : null;
1061
+ }
1062
+ /**
1063
+ * Get the human readable short weekday, such as 'Mon'.
1064
+ * Defaults to the system's locale if no locale has been specified
1065
+ * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
1066
+ * @type {string}
1067
+ */
1068
+ get weekdayShort() {
1069
+ return this.isValid ? Info.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
1070
+ }
1071
+ /**
1072
+ * Get the human readable long weekday, such as 'Monday'.
1073
+ * Defaults to the system's locale if no locale has been specified
1074
+ * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
1075
+ * @type {string}
1076
+ */
1077
+ get weekdayLong() {
1078
+ return this.isValid ? Info.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
1079
+ }
1080
+ /**
1081
+ * Get the UTC offset of this DateTime in minutes
1082
+ * @example DateTime.now().offset //=> -240
1083
+ * @example DateTime.utc().offset //=> 0
1084
+ * @type {number}
1085
+ */
1086
+ get offset() {
1087
+ return this.isValid ? +this.o : NaN;
1088
+ }
1089
+ /**
1090
+ * Get the short human name for the zone's current offset, for example "EST" or "EDT".
1091
+ * Defaults to the system's locale if no locale has been specified
1092
+ * @type {string}
1093
+ */
1094
+ get offsetNameShort() {
1095
+ if (this.isValid) {
1096
+ return this.zone.offsetName(this.ts, {
1097
+ format: "short",
1098
+ locale: this.locale,
1099
+ });
1100
+ }
1101
+ else {
1102
+ return null;
1103
+ }
1104
+ }
1105
+ /**
1106
+ * Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
1107
+ * Defaults to the system's locale if no locale has been specified
1108
+ * @type {string}
1109
+ */
1110
+ get offsetNameLong() {
1111
+ if (this.isValid) {
1112
+ return this.zone.offsetName(this.ts, {
1113
+ format: "long",
1114
+ locale: this.locale,
1115
+ });
1116
+ }
1117
+ else {
1118
+ return null;
1119
+ }
1120
+ }
1121
+ /**
1122
+ * Get whether this zone's offset ever changes, as in a DST.
1123
+ * @type {boolean}
1124
+ */
1125
+ get isOffsetFixed() {
1126
+ return this.isValid ? this.zone.isUniversal : null;
1127
+ }
1128
+ /**
1129
+ * Get whether the DateTime is in a DST.
1130
+ * @type {boolean}
1131
+ */
1132
+ get isInDST() {
1133
+ if (this.isOffsetFixed) {
1134
+ return false;
1135
+ }
1136
+ else {
1137
+ return (this.offset > this.set({ month: 1, day: 1 }).offset ||
1138
+ this.offset > this.set({ month: 5 }).offset);
1139
+ }
1140
+ }
1141
+ /**
1142
+ * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC
1143
+ * in this DateTime's zone. During DST changes local time can be ambiguous, for example
1144
+ * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.
1145
+ * This method will return both possible DateTimes if this DateTime's local time is ambiguous.
1146
+ * @returns {DateTime[]}
1147
+ */
1148
+ getPossibleOffsets() {
1149
+ if (!this.isValid || this.isOffsetFixed) {
1150
+ return [this];
1151
+ }
1152
+ const dayMs = 86400000;
1153
+ const minuteMs = 60000;
1154
+ const localTS = objToLocalTS(this.c);
1155
+ const oEarlier = this.zone.offset(localTS - dayMs);
1156
+ const oLater = this.zone.offset(localTS + dayMs);
1157
+ const o1 = this.zone.offset(localTS - oEarlier * minuteMs);
1158
+ const o2 = this.zone.offset(localTS - oLater * minuteMs);
1159
+ if (o1 === o2) {
1160
+ return [this];
1161
+ }
1162
+ const ts1 = localTS - o1 * minuteMs;
1163
+ const ts2 = localTS - o2 * minuteMs;
1164
+ const c1 = tsToObj(ts1, o1);
1165
+ const c2 = tsToObj(ts2, o2);
1166
+ if (c1.hour === c2.hour &&
1167
+ c1.minute === c2.minute &&
1168
+ c1.second === c2.second &&
1169
+ c1.millisecond === c2.millisecond) {
1170
+ return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];
1171
+ }
1172
+ return [this];
1173
+ }
1174
+ /**
1175
+ * Returns true if this DateTime is in a leap year, false otherwise
1176
+ * @example DateTime.local(2016).isInLeapYear //=> true
1177
+ * @example DateTime.local(2013).isInLeapYear //=> false
1178
+ * @type {boolean}
1179
+ */
1180
+ get isInLeapYear() {
1181
+ return isLeapYear(this.year);
1182
+ }
1183
+ /**
1184
+ * Returns the number of days in this DateTime's month
1185
+ * @example DateTime.local(2016, 2).daysInMonth //=> 29
1186
+ * @example DateTime.local(2016, 3).daysInMonth //=> 31
1187
+ * @type {number}
1188
+ */
1189
+ get daysInMonth() {
1190
+ return daysInMonth(this.year, this.month);
1191
+ }
1192
+ /**
1193
+ * Returns the number of days in this DateTime's year
1194
+ * @example DateTime.local(2016).daysInYear //=> 366
1195
+ * @example DateTime.local(2013).daysInYear //=> 365
1196
+ * @type {number}
1197
+ */
1198
+ get daysInYear() {
1199
+ return this.isValid ? daysInYear(this.year) : NaN;
1200
+ }
1201
+ /**
1202
+ * Returns the number of weeks in this DateTime's year
1203
+ * @see https://en.wikipedia.org/wiki/ISO_week_date
1204
+ * @example DateTime.local(2004).weeksInWeekYear //=> 53
1205
+ * @example DateTime.local(2013).weeksInWeekYear //=> 52
1206
+ * @type {number}
1207
+ */
1208
+ get weeksInWeekYear() {
1209
+ return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;
1210
+ }
1211
+ /**
1212
+ * Returns the number of weeks in this DateTime's local week year
1213
+ * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52
1214
+ * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53
1215
+ * @type {number}
1216
+ */
1217
+ get weeksInLocalWeekYear() {
1218
+ return this.isValid
1219
+ ? weeksInWeekYear(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek())
1220
+ : NaN;
1221
+ }
1222
+ /**
1223
+ * Returns the resolved Intl options for this DateTime.
1224
+ * This is useful in understanding the behavior of formatting methods
1225
+ * @param {Object} opts - the same options as toLocaleString
1226
+ * @return {Object}
1227
+ */
1228
+ resolvedLocaleOptions(opts = {}) {
1229
+ const { locale, numberingSystem, calendar } = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this);
1230
+ return { locale, numberingSystem, outputCalendar: calendar };
1231
+ }
1232
+ // TRANSFORM
1233
+ /**
1234
+ * "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
1235
+ *
1236
+ * Equivalent to {@link DateTime#setZone}('utc')
1237
+ * @param {number} [offset=0] - optionally, an offset from UTC in minutes
1238
+ * @param {Object} [opts={}] - options to pass to `setZone()`
1239
+ * @return {DateTime}
1240
+ */
1241
+ toUTC(offset = 0, opts = {}) {
1242
+ return this.setZone(FixedOffsetZone.instance(offset), opts);
1243
+ }
1244
+ /**
1245
+ * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
1246
+ *
1247
+ * Equivalent to `setZone('local')`
1248
+ * @return {DateTime}
1249
+ */
1250
+ toLocal() {
1251
+ return this.setZone(Settings.defaultZone);
1252
+ }
1253
+ /**
1254
+ * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
1255
+ *
1256
+ * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.
1257
+ * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.
1258
+ * @param {Object} opts - options
1259
+ * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
1260
+ * @return {DateTime}
1261
+ */
1262
+ setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {
1263
+ zone = normalizeZone(zone, Settings.defaultZone);
1264
+ if (zone.equals(this.zone)) {
1265
+ return this;
1266
+ }
1267
+ else if (!zone.isValid) {
1268
+ return DateTime.invalid(unsupportedZone(zone));
1269
+ }
1270
+ else {
1271
+ let newTS = this.ts;
1272
+ if (keepLocalTime || keepCalendarTime) {
1273
+ const offsetGuess = zone.offset(this.ts);
1274
+ const asObj = this.toObject();
1275
+ [newTS] = objToTS(asObj, offsetGuess, zone);
1276
+ }
1277
+ return clone(this, { ts: newTS, zone });
1278
+ }
1279
+ }
1280
+ /**
1281
+ * "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
1282
+ * @param {Object} properties - the properties to set
1283
+ * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
1284
+ * @return {DateTime}
1285
+ */
1286
+ reconfigure({ locale, numberingSystem, outputCalendar } = {}) {
1287
+ const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });
1288
+ return clone(this, { loc });
1289
+ }
1290
+ /**
1291
+ * "Set" the locale. Returns a newly-constructed DateTime.
1292
+ * Just a convenient alias for reconfigure({ locale })
1293
+ * @example DateTime.local(2017, 5, 25).setLocale('en-GB')
1294
+ * @return {DateTime}
1295
+ */
1296
+ setLocale(locale) {
1297
+ return this.reconfigure({ locale });
1298
+ }
1299
+ /**
1300
+ * "Set" the values of specified units. Returns a newly-constructed DateTime.
1301
+ * You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.
1302
+ *
1303
+ * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.
1304
+ * They cannot be mixed with ISO-week units like `weekday`.
1305
+ * @param {Object} values - a mapping of units to numbers
1306
+ * @example dt.set({ year: 2017 })
1307
+ * @example dt.set({ hour: 8, minute: 30 })
1308
+ * @example dt.set({ weekday: 5 })
1309
+ * @example dt.set({ year: 2005, ordinal: 234 })
1310
+ * @return {DateTime}
1311
+ */
1312
+ set(values) {
1313
+ if (!this.isValid)
1314
+ return this;
1315
+ const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);
1316
+ const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);
1317
+ const settingWeekStuff = !isUndefined(normalized.weekYear) ||
1318
+ !isUndefined(normalized.weekNumber) ||
1319
+ !isUndefined(normalized.weekday), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber;
1320
+ if ((containsGregor || containsOrdinal) && definiteWeekDef) {
1321
+ throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
1322
+ }
1323
+ if (containsGregorMD && containsOrdinal) {
1324
+ throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
1325
+ }
1326
+ let mixed;
1327
+ if (settingWeekStuff) {
1328
+ mixed = weekToGregorian({ ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized }, minDaysInFirstWeek, startOfWeek);
1329
+ }
1330
+ else if (!isUndefined(normalized.ordinal)) {
1331
+ mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });
1332
+ }
1333
+ else {
1334
+ mixed = { ...this.toObject(), ...normalized };
1335
+ // if we didn't set the day but we ended up on an overflow date,
1336
+ // use the last day of the right month
1337
+ if (isUndefined(normalized.day)) {
1338
+ mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);
1339
+ }
1340
+ }
1341
+ const [ts, o] = objToTS(mixed, this.o, this.zone);
1342
+ return clone(this, { ts, o });
1343
+ }
1344
+ /**
1345
+ * Add a period of time to this DateTime and return the resulting DateTime
1346
+ *
1347
+ * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.
1348
+ * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
1349
+ * @example DateTime.now().plus(123) //~> in 123 milliseconds
1350
+ * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
1351
+ * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
1352
+ * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
1353
+ * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
1354
+ * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
1355
+ * @return {DateTime}
1356
+ */
1357
+ plus(duration) {
1358
+ if (!this.isValid)
1359
+ return this;
1360
+ const dur = Duration.fromDurationLike(duration);
1361
+ return clone(this, adjustTime(this, dur));
1362
+ }
1363
+ /**
1364
+ * Subtract a period of time to this DateTime and return the resulting DateTime
1365
+ * See {@link DateTime#plus}
1366
+ * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
1367
+ @return {DateTime}
1368
+ */
1369
+ minus(duration) {
1370
+ if (!this.isValid)
1371
+ return this;
1372
+ const dur = Duration.fromDurationLike(duration).negate();
1373
+ return clone(this, adjustTime(this, dur));
1374
+ }
1375
+ /**
1376
+ * "Set" this DateTime to the beginning of a unit of time.
1377
+ * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
1378
+ * @param {Object} opts - options
1379
+ * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
1380
+ * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
1381
+ * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
1382
+ * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
1383
+ * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
1384
+ * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
1385
+ * @return {DateTime}
1386
+ */
1387
+ startOf(unit, { useLocaleWeeks = false } = {}) {
1388
+ if (!this.isValid)
1389
+ return this;
1390
+ const o = {}, normalizedUnit = Duration.normalizeUnit(unit);
1391
+ switch (normalizedUnit) {
1392
+ case "years":
1393
+ o.month = 1;
1394
+ // falls through
1395
+ case "quarters":
1396
+ case "months":
1397
+ o.day = 1;
1398
+ // falls through
1399
+ case "weeks":
1400
+ case "days":
1401
+ o.hour = 0;
1402
+ // falls through
1403
+ case "hours":
1404
+ o.minute = 0;
1405
+ // falls through
1406
+ case "minutes":
1407
+ o.second = 0;
1408
+ // falls through
1409
+ case "seconds":
1410
+ o.millisecond = 0;
1411
+ break;
1412
+ case "milliseconds":
1413
+ break;
1414
+ // no default, invalid units throw in normalizeUnit()
1415
+ }
1416
+ if (normalizedUnit === "weeks") {
1417
+ if (useLocaleWeeks) {
1418
+ const startOfWeek = this.loc.getStartOfWeek();
1419
+ const { weekday } = this;
1420
+ if (weekday < startOfWeek) {
1421
+ o.weekNumber = this.weekNumber - 1;
1422
+ }
1423
+ o.weekday = startOfWeek;
1424
+ }
1425
+ else {
1426
+ o.weekday = 1;
1427
+ }
1428
+ }
1429
+ if (normalizedUnit === "quarters") {
1430
+ const q = Math.ceil(this.month / 3);
1431
+ o.month = (q - 1) * 3 + 1;
1432
+ }
1433
+ return this.set(o);
1434
+ }
1435
+ /**
1436
+ * "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
1437
+ * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
1438
+ * @param {Object} opts - options
1439
+ * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
1440
+ * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
1441
+ * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
1442
+ * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
1443
+ * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
1444
+ * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
1445
+ * @return {DateTime}
1446
+ */
1447
+ endOf(unit, opts) {
1448
+ return this.isValid
1449
+ ? this.plus({ [unit]: 1 })
1450
+ .startOf(unit, opts)
1451
+ .minus(1)
1452
+ : this;
1453
+ }
1454
+ // OUTPUT
1455
+ /**
1456
+ * Returns a string representation of this DateTime formatted according to the specified format string.
1457
+ * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
1458
+ * Defaults to en-US if no locale has been specified, regardless of the system's locale.
1459
+ * @param {string} fmt - the format string
1460
+ * @param {Object} opts - opts to override the configuration options on this DateTime
1461
+ * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
1462
+ * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
1463
+ * @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
1464
+ * @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
1465
+ * @return {string}
1466
+ */
1467
+ toFormat(fmt, opts = {}) {
1468
+ return this.isValid
1469
+ ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)
1470
+ : INVALID;
1471
+ }
1472
+ /**
1473
+ * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
1474
+ * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
1475
+ * of the DateTime in the assigned locale.
1476
+ * Defaults to the system's locale if no locale has been specified
1477
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
1478
+ * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options
1479
+ * @param {Object} opts - opts to override the configuration options on this DateTime
1480
+ * @example DateTime.now().toLocaleString(); //=> 4/20/2017
1481
+ * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
1482
+ * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
1483
+ * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'
1484
+ * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
1485
+ * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
1486
+ * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
1487
+ * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
1488
+ * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
1489
+ * @return {string}
1490
+ */
1491
+ toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {
1492
+ return this.isValid
1493
+ ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)
1494
+ : INVALID;
1495
+ }
1496
+ /**
1497
+ * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
1498
+ * Defaults to the system's locale if no locale has been specified
1499
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
1500
+ * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
1501
+ * @example DateTime.now().toLocaleParts(); //=> [
1502
+ * //=> { type: 'day', value: '25' },
1503
+ * //=> { type: 'literal', value: '/' },
1504
+ * //=> { type: 'month', value: '05' },
1505
+ * //=> { type: 'literal', value: '/' },
1506
+ * //=> { type: 'year', value: '1982' }
1507
+ * //=> ]
1508
+ */
1509
+ toLocaleParts(opts = {}) {
1510
+ return this.isValid
1511
+ ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)
1512
+ : [];
1513
+ }
1514
+ /**
1515
+ * Returns an ISO 8601-compliant string representation of this DateTime
1516
+ * @param {Object} opts - options
1517
+ * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
1518
+ * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
1519
+ * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1520
+ * @param {boolean} [opts.extendedZone=false] - add the time zone format extension
1521
+ * @param {string} [opts.format='extended'] - choose between the basic and extended format
1522
+ * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
1523
+ * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
1524
+ * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
1525
+ * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
1526
+ * @return {string}
1527
+ */
1528
+ toISO({ format = "extended", suppressSeconds = false, suppressMilliseconds = false, includeOffset = true, extendedZone = false, } = {}) {
1529
+ if (!this.isValid) {
1530
+ return null;
1531
+ }
1532
+ const ext = format === "extended";
1533
+ let c = toISODate(this, ext);
1534
+ c += "T";
1535
+ c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);
1536
+ return c;
1537
+ }
1538
+ /**
1539
+ * Returns an ISO 8601-compliant string representation of this DateTime's date component
1540
+ * @param {Object} opts - options
1541
+ * @param {string} [opts.format='extended'] - choose between the basic and extended format
1542
+ * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
1543
+ * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
1544
+ * @return {string}
1545
+ */
1546
+ toISODate({ format = "extended" } = {}) {
1547
+ if (!this.isValid) {
1548
+ return null;
1549
+ }
1550
+ return toISODate(this, format === "extended");
1551
+ }
1552
+ /**
1553
+ * Returns an ISO 8601-compliant string representation of this DateTime's week date
1554
+ * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
1555
+ * @return {string}
1556
+ */
1557
+ toISOWeekDate() {
1558
+ return toTechFormat(this, "kkkk-'W'WW-c");
1559
+ }
1560
+ /**
1561
+ * Returns an ISO 8601-compliant string representation of this DateTime's time component
1562
+ * @param {Object} opts - options
1563
+ * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
1564
+ * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
1565
+ * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1566
+ * @param {boolean} [opts.extendedZone=true] - add the time zone format extension
1567
+ * @param {boolean} [opts.includePrefix=false] - include the `T` prefix
1568
+ * @param {string} [opts.format='extended'] - choose between the basic and extended format
1569
+ * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
1570
+ * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
1571
+ * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
1572
+ * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
1573
+ * @return {string}
1574
+ */
1575
+ toISOTime({ suppressMilliseconds = false, suppressSeconds = false, includeOffset = true, includePrefix = false, extendedZone = false, format = "extended", } = {}) {
1576
+ if (!this.isValid) {
1577
+ return null;
1578
+ }
1579
+ let c = includePrefix ? "T" : "";
1580
+ return (c +
1581
+ toISOTime(this, format === "extended", suppressSeconds, suppressMilliseconds, includeOffset, extendedZone));
1582
+ }
1583
+ /**
1584
+ * Returns an RFC 2822-compatible string representation of this DateTime
1585
+ * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
1586
+ * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
1587
+ * @return {string}
1588
+ */
1589
+ toRFC2822() {
1590
+ return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false);
1591
+ }
1592
+ /**
1593
+ * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
1594
+ * Specifically, the string conforms to RFC 1123.
1595
+ * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
1596
+ * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
1597
+ * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'
1598
+ * @return {string}
1599
+ */
1600
+ toHTTP() {
1601
+ return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
1602
+ }
1603
+ /**
1604
+ * Returns a string representation of this DateTime appropriate for use in SQL Date
1605
+ * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
1606
+ * @return {string}
1607
+ */
1608
+ toSQLDate() {
1609
+ if (!this.isValid) {
1610
+ return null;
1611
+ }
1612
+ return toISODate(this, true);
1613
+ }
1614
+ /**
1615
+ * Returns a string representation of this DateTime appropriate for use in SQL Time
1616
+ * @param {Object} opts - options
1617
+ * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
1618
+ * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1619
+ * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
1620
+ * @example DateTime.utc().toSQL() //=> '05:15:16.345'
1621
+ * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
1622
+ * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
1623
+ * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
1624
+ * @return {string}
1625
+ */
1626
+ toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {
1627
+ let fmt = "HH:mm:ss.SSS";
1628
+ if (includeZone || includeOffset) {
1629
+ if (includeOffsetSpace) {
1630
+ fmt += " ";
1631
+ }
1632
+ if (includeZone) {
1633
+ fmt += "z";
1634
+ }
1635
+ else if (includeOffset) {
1636
+ fmt += "ZZ";
1637
+ }
1638
+ }
1639
+ return toTechFormat(this, fmt, true);
1640
+ }
1641
+ /**
1642
+ * Returns a string representation of this DateTime appropriate for use in SQL DateTime
1643
+ * @param {Object} opts - options
1644
+ * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
1645
+ * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1646
+ * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
1647
+ * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
1648
+ * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
1649
+ * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
1650
+ * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
1651
+ * @return {string}
1652
+ */
1653
+ toSQL(opts = {}) {
1654
+ if (!this.isValid) {
1655
+ return null;
1656
+ }
1657
+ return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;
1658
+ }
1659
+ /**
1660
+ * Returns a string representation of this DateTime appropriate for debugging
1661
+ * @return {string}
1662
+ */
1663
+ toString() {
1664
+ return this.isValid ? this.toISO() : INVALID;
1665
+ }
1666
+ /**
1667
+ * Returns a string representation of this DateTime appropriate for the REPL.
1668
+ * @return {string}
1669
+ */
1670
+ [Symbol.for("nodejs.util.inspect.custom")]() {
1671
+ if (this.isValid) {
1672
+ return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;
1673
+ }
1674
+ else {
1675
+ return `DateTime { Invalid, reason: ${this.invalidReason} }`;
1676
+ }
1677
+ }
1678
+ /**
1679
+ * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
1680
+ * @return {number}
1681
+ */
1682
+ valueOf() {
1683
+ return this.toMillis();
1684
+ }
1685
+ /**
1686
+ * Returns the epoch milliseconds of this DateTime.
1687
+ * @return {number}
1688
+ */
1689
+ toMillis() {
1690
+ return this.isValid ? this.ts : NaN;
1691
+ }
1692
+ /**
1693
+ * Returns the epoch seconds of this DateTime.
1694
+ * @return {number}
1695
+ */
1696
+ toSeconds() {
1697
+ return this.isValid ? this.ts / 1000 : NaN;
1698
+ }
1699
+ /**
1700
+ * Returns the epoch seconds (as a whole number) of this DateTime.
1701
+ * @return {number}
1702
+ */
1703
+ toUnixInteger() {
1704
+ return this.isValid ? Math.floor(this.ts / 1000) : NaN;
1705
+ }
1706
+ /**
1707
+ * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
1708
+ * @return {string}
1709
+ */
1710
+ toJSON() {
1711
+ return this.toISO();
1712
+ }
1713
+ /**
1714
+ * Returns a BSON serializable equivalent to this DateTime.
1715
+ * @return {Date}
1716
+ */
1717
+ toBSON() {
1718
+ return this.toJSDate();
1719
+ }
1720
+ /**
1721
+ * Returns a JavaScript object with this DateTime's year, month, day, and so on.
1722
+ * @param opts - options for generating the object
1723
+ * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
1724
+ * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
1725
+ * @return {Object}
1726
+ */
1727
+ toObject(opts = {}) {
1728
+ if (!this.isValid)
1729
+ return {};
1730
+ const base = { ...this.c };
1731
+ if (opts.includeConfig) {
1732
+ base.outputCalendar = this.outputCalendar;
1733
+ base.numberingSystem = this.loc.numberingSystem;
1734
+ base.locale = this.loc.locale;
1735
+ }
1736
+ return base;
1737
+ }
1738
+ /**
1739
+ * Returns a JavaScript Date equivalent to this DateTime.
1740
+ * @return {Date}
1741
+ */
1742
+ toJSDate() {
1743
+ return new Date(this.isValid ? this.ts : NaN);
1744
+ }
1745
+ // COMPARE
1746
+ /**
1747
+ * Return the difference between two DateTimes as a Duration.
1748
+ * @param {DateTime} otherDateTime - the DateTime to compare this one to
1749
+ * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
1750
+ * @param {Object} opts - options that affect the creation of the Duration
1751
+ * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
1752
+ * @example
1753
+ * var i1 = DateTime.fromISO('1982-05-25T09:45'),
1754
+ * i2 = DateTime.fromISO('1983-10-14T10:30');
1755
+ * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }
1756
+ * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }
1757
+ * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
1758
+ * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
1759
+ * @return {Duration}
1760
+ */
1761
+ diff(otherDateTime, unit = "milliseconds", opts = {}) {
1762
+ if (!this.isValid || !otherDateTime.isValid) {
1763
+ return Duration.invalid("created by diffing an invalid DateTime");
1764
+ }
1765
+ const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };
1766
+ const units = maybeArray(unit).map(Duration.normalizeUnit), otherIsLater = otherDateTime.valueOf() > this.valueOf(), earlier = otherIsLater ? this : otherDateTime, later = otherIsLater ? otherDateTime : this, diffed = diff(earlier, later, units, durOpts);
1767
+ return otherIsLater ? diffed.negate() : diffed;
1768
+ }
1769
+ /**
1770
+ * Return the difference between this DateTime and right now.
1771
+ * See {@link DateTime#diff}
1772
+ * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
1773
+ * @param {Object} opts - options that affect the creation of the Duration
1774
+ * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
1775
+ * @return {Duration}
1776
+ */
1777
+ diffNow(unit = "milliseconds", opts = {}) {
1778
+ return this.diff(DateTime.now(), unit, opts);
1779
+ }
1780
+ /**
1781
+ * Return an Interval spanning between this DateTime and another DateTime
1782
+ * @param {DateTime} otherDateTime - the other end point of the Interval
1783
+ * @return {Interval}
1784
+ */
1785
+ until(otherDateTime) {
1786
+ return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;
1787
+ }
1788
+ /**
1789
+ * Return whether this DateTime is in the same unit of time as another DateTime.
1790
+ * Higher-order units must also be identical for this function to return `true`.
1791
+ * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.
1792
+ * @param {DateTime} otherDateTime - the other DateTime
1793
+ * @param {string} unit - the unit of time to check sameness on
1794
+ * @param {Object} opts - options
1795
+ * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used
1796
+ * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
1797
+ * @return {boolean}
1798
+ */
1799
+ hasSame(otherDateTime, unit, opts) {
1800
+ if (!this.isValid)
1801
+ return false;
1802
+ const inputMs = otherDateTime.valueOf();
1803
+ const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });
1804
+ return (adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts));
1805
+ }
1806
+ /**
1807
+ * Equality check
1808
+ * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.
1809
+ * To compare just the millisecond values, use `+dt1 === +dt2`.
1810
+ * @param {DateTime} other - the other DateTime
1811
+ * @return {boolean}
1812
+ */
1813
+ equals(other) {
1814
+ return (this.isValid &&
1815
+ other.isValid &&
1816
+ this.valueOf() === other.valueOf() &&
1817
+ this.zone.equals(other.zone) &&
1818
+ this.loc.equals(other.loc));
1819
+ }
1820
+ /**
1821
+ * Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
1822
+ * platform supports Intl.RelativeTimeFormat. Rounds down by default.
1823
+ * @param {Object} options - options that affect the output
1824
+ * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
1825
+ * @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
1826
+ * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
1827
+ * @param {boolean} [options.round=true] - whether to round the numbers in the output.
1828
+ * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
1829
+ * @param {string} options.locale - override the locale of this DateTime
1830
+ * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
1831
+ * @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
1832
+ * @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
1833
+ * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
1834
+ * @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
1835
+ * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
1836
+ * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
1837
+ */
1838
+ toRelative(options = {}) {
1839
+ if (!this.isValid)
1840
+ return null;
1841
+ const base = options.base || DateTime.fromObject({}, { zone: this.zone }), padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;
1842
+ let units = ["years", "months", "days", "hours", "minutes", "seconds"];
1843
+ let unit = options.unit;
1844
+ if (Array.isArray(options.unit)) {
1845
+ units = options.unit;
1846
+ unit = undefined;
1847
+ }
1848
+ return diffRelative(base, this.plus(padding), {
1849
+ ...options,
1850
+ numeric: "always",
1851
+ units,
1852
+ unit,
1853
+ });
1854
+ }
1855
+ /**
1856
+ * Returns a string representation of this date relative to today, such as "yesterday" or "next month".
1857
+ * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
1858
+ * @param {Object} options - options that affect the output
1859
+ * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
1860
+ * @param {string} options.locale - override the locale of this DateTime
1861
+ * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
1862
+ * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
1863
+ * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
1864
+ * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
1865
+ * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
1866
+ * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
1867
+ */
1868
+ toRelativeCalendar(options = {}) {
1869
+ if (!this.isValid)
1870
+ return null;
1871
+ return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {
1872
+ ...options,
1873
+ numeric: "auto",
1874
+ units: ["years", "months", "days"],
1875
+ calendary: true,
1876
+ });
1877
+ }
1878
+ /**
1879
+ * Return the min of several date times
1880
+ * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
1881
+ * @return {DateTime} the min DateTime, or undefined if called with no argument
1882
+ */
1883
+ static min(...dateTimes) {
1884
+ if (!dateTimes.every(DateTime.isDateTime)) {
1885
+ throw new InvalidArgumentError("min requires all arguments be DateTimes");
1886
+ }
1887
+ return bestBy(dateTimes, (i) => i.valueOf(), Math.min);
1888
+ }
1889
+ /**
1890
+ * Return the max of several date times
1891
+ * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
1892
+ * @return {DateTime} the max DateTime, or undefined if called with no argument
1893
+ */
1894
+ static max(...dateTimes) {
1895
+ if (!dateTimes.every(DateTime.isDateTime)) {
1896
+ throw new InvalidArgumentError("max requires all arguments be DateTimes");
1897
+ }
1898
+ return bestBy(dateTimes, (i) => i.valueOf(), Math.max);
1899
+ }
1900
+ // MISC
1901
+ /**
1902
+ * Explain how a string would be parsed by fromFormat()
1903
+ * @param {string} text - the string to parse
1904
+ * @param {string} fmt - the format the string is expected to be in (see description)
1905
+ * @param {Object} options - options taken by fromFormat()
1906
+ * @return {Object}
1907
+ */
1908
+ static fromFormatExplain(text, fmt, options = {}) {
1909
+ const { locale = null, numberingSystem = null } = options, localeToUse = Locale.fromOpts({
1910
+ locale,
1911
+ numberingSystem,
1912
+ defaultToEN: true,
1913
+ });
1914
+ return explainFromTokens(localeToUse, text, fmt);
1915
+ }
1916
+ /**
1917
+ * @deprecated use fromFormatExplain instead
1918
+ */
1919
+ static fromStringExplain(text, fmt, options = {}) {
1920
+ return DateTime.fromFormatExplain(text, fmt, options);
1921
+ }
1922
+ // FORMAT PRESETS
1923
+ /**
1924
+ * {@link DateTime#toLocaleString} format like 10/14/1983
1925
+ * @type {Object}
1926
+ */
1927
+ static get DATE_SHORT() {
1928
+ return Formats.DATE_SHORT;
1929
+ }
1930
+ /**
1931
+ * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
1932
+ * @type {Object}
1933
+ */
1934
+ static get DATE_MED() {
1935
+ return Formats.DATE_MED;
1936
+ }
1937
+ /**
1938
+ * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
1939
+ * @type {Object}
1940
+ */
1941
+ static get DATE_MED_WITH_WEEKDAY() {
1942
+ return Formats.DATE_MED_WITH_WEEKDAY;
1943
+ }
1944
+ /**
1945
+ * {@link DateTime#toLocaleString} format like 'October 14, 1983'
1946
+ * @type {Object}
1947
+ */
1948
+ static get DATE_FULL() {
1949
+ return Formats.DATE_FULL;
1950
+ }
1951
+ /**
1952
+ * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
1953
+ * @type {Object}
1954
+ */
1955
+ static get DATE_HUGE() {
1956
+ return Formats.DATE_HUGE;
1957
+ }
1958
+ /**
1959
+ * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
1960
+ * @type {Object}
1961
+ */
1962
+ static get TIME_SIMPLE() {
1963
+ return Formats.TIME_SIMPLE;
1964
+ }
1965
+ /**
1966
+ * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
1967
+ * @type {Object}
1968
+ */
1969
+ static get TIME_WITH_SECONDS() {
1970
+ return Formats.TIME_WITH_SECONDS;
1971
+ }
1972
+ /**
1973
+ * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
1974
+ * @type {Object}
1975
+ */
1976
+ static get TIME_WITH_SHORT_OFFSET() {
1977
+ return Formats.TIME_WITH_SHORT_OFFSET;
1978
+ }
1979
+ /**
1980
+ * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
1981
+ * @type {Object}
1982
+ */
1983
+ static get TIME_WITH_LONG_OFFSET() {
1984
+ return Formats.TIME_WITH_LONG_OFFSET;
1985
+ }
1986
+ /**
1987
+ * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
1988
+ * @type {Object}
1989
+ */
1990
+ static get TIME_24_SIMPLE() {
1991
+ return Formats.TIME_24_SIMPLE;
1992
+ }
1993
+ /**
1994
+ * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
1995
+ * @type {Object}
1996
+ */
1997
+ static get TIME_24_WITH_SECONDS() {
1998
+ return Formats.TIME_24_WITH_SECONDS;
1999
+ }
2000
+ /**
2001
+ * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
2002
+ * @type {Object}
2003
+ */
2004
+ static get TIME_24_WITH_SHORT_OFFSET() {
2005
+ return Formats.TIME_24_WITH_SHORT_OFFSET;
2006
+ }
2007
+ /**
2008
+ * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
2009
+ * @type {Object}
2010
+ */
2011
+ static get TIME_24_WITH_LONG_OFFSET() {
2012
+ return Formats.TIME_24_WITH_LONG_OFFSET;
2013
+ }
2014
+ /**
2015
+ * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
2016
+ * @type {Object}
2017
+ */
2018
+ static get DATETIME_SHORT() {
2019
+ return Formats.DATETIME_SHORT;
2020
+ }
2021
+ /**
2022
+ * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
2023
+ * @type {Object}
2024
+ */
2025
+ static get DATETIME_SHORT_WITH_SECONDS() {
2026
+ return Formats.DATETIME_SHORT_WITH_SECONDS;
2027
+ }
2028
+ /**
2029
+ * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
2030
+ * @type {Object}
2031
+ */
2032
+ static get DATETIME_MED() {
2033
+ return Formats.DATETIME_MED;
2034
+ }
2035
+ /**
2036
+ * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
2037
+ * @type {Object}
2038
+ */
2039
+ static get DATETIME_MED_WITH_SECONDS() {
2040
+ return Formats.DATETIME_MED_WITH_SECONDS;
2041
+ }
2042
+ /**
2043
+ * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
2044
+ * @type {Object}
2045
+ */
2046
+ static get DATETIME_MED_WITH_WEEKDAY() {
2047
+ return Formats.DATETIME_MED_WITH_WEEKDAY;
2048
+ }
2049
+ /**
2050
+ * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
2051
+ * @type {Object}
2052
+ */
2053
+ static get DATETIME_FULL() {
2054
+ return Formats.DATETIME_FULL;
2055
+ }
2056
+ /**
2057
+ * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
2058
+ * @type {Object}
2059
+ */
2060
+ static get DATETIME_FULL_WITH_SECONDS() {
2061
+ return Formats.DATETIME_FULL_WITH_SECONDS;
2062
+ }
2063
+ /**
2064
+ * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
2065
+ * @type {Object}
2066
+ */
2067
+ static get DATETIME_HUGE() {
2068
+ return Formats.DATETIME_HUGE;
2069
+ }
2070
+ /**
2071
+ * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
2072
+ * @type {Object}
2073
+ */
2074
+ static get DATETIME_HUGE_WITH_SECONDS() {
2075
+ return Formats.DATETIME_HUGE_WITH_SECONDS;
2076
+ }
2077
+ }
2078
+ /**
2079
+ * @private
2080
+ */
2081
+ export function friendlyDateTime(dateTimeish) {
2082
+ if (DateTime.isDateTime(dateTimeish)) {
2083
+ return dateTimeish;
2084
+ }
2085
+ else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {
2086
+ return DateTime.fromJSDate(dateTimeish);
2087
+ }
2088
+ else if (dateTimeish && typeof dateTimeish === "object") {
2089
+ return DateTime.fromObject(dateTimeish);
2090
+ }
2091
+ else {
2092
+ throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`);
2093
+ }
2094
+ }
2095
+ //# sourceMappingURL=datetime.js.map