isometrik-plugin-chat-sdk 1.0.0

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 (507) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/BlockChatList-720a703e.js +423 -0
  3. package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
  4. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
  5. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
  6. package/dist/cjs/Image-67c52acd.js +135 -0
  7. package/dist/cjs/Image-67c52acd.js.map +1 -0
  8. package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
  9. package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
  10. package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
  11. package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
  12. package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
  13. package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
  14. package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
  15. package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
  16. package/dist/cjs/Text-fedf6eab.js +60 -0
  17. package/dist/cjs/Text-fedf6eab.js.map +1 -0
  18. package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
  19. package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
  20. package/dist/cjs/WebChat-403e7ab1.js +2884 -0
  21. package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  23. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  24. package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
  25. package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
  26. package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
  27. package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
  28. package/dist/cjs/chat-app.cjs.entry.js +55 -0
  29. package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
  30. package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
  31. package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
  32. package/dist/cjs/chat-creds-f4cbf400.js +38 -0
  33. package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
  34. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
  35. package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
  36. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
  37. package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
  38. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
  39. package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
  40. package/dist/cjs/content-eca5336c.js +81 -0
  41. package/dist/cjs/content-eca5336c.js.map +1 -0
  42. package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
  43. package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
  44. package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
  45. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
  46. package/dist/cjs/group-members-a60fb1cb.js +41 -0
  47. package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
  48. package/dist/cjs/groupcast-49dae5ab.js +202 -0
  49. package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
  50. package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
  51. package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
  52. package/dist/cjs/index-9afe62b6.js +3129 -0
  53. package/dist/cjs/index-9afe62b6.js.map +1 -0
  54. package/dist/cjs/index.cjs.js +148 -0
  55. package/dist/cjs/index.cjs.js.map +1 -0
  56. package/dist/cjs/isometrik-webchat.cjs.js +54 -0
  57. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
  58. package/dist/cjs/loader.cjs.js +17 -0
  59. package/dist/cjs/loader.cjs.js.map +1 -0
  60. package/dist/cjs/login-page.cjs.entry.js +85 -0
  61. package/dist/cjs/login-page.cjs.entry.js.map +1 -0
  62. package/dist/cjs/member-add.cjs.entry.js +122 -0
  63. package/dist/cjs/member-add.cjs.entry.js.map +1 -0
  64. package/dist/cjs/message-reaction-976f6261.js +24 -0
  65. package/dist/cjs/message-reaction-976f6261.js.map +1 -0
  66. package/dist/cjs/my-component.cjs.entry.js +29 -0
  67. package/dist/cjs/my-component.cjs.entry.js.map +1 -0
  68. package/dist/cjs/reaction-container.cjs.entry.js +52 -0
  69. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
  70. package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
  71. package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
  72. package/dist/cjs/signup-page.cjs.entry.js +143 -0
  73. package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
  74. package/dist/cjs/taguser-aca04ed9.js +512 -0
  75. package/dist/cjs/taguser-aca04ed9.js.map +1 -0
  76. package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
  77. package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
  78. package/dist/cjs/toast-helper-defae4a5.js +84 -0
  79. package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
  80. package/dist/cjs/utils-bcad3386.js +9 -0
  81. package/dist/cjs/utils-bcad3386.js.map +1 -0
  82. package/dist/collection/api/conversations.js +12 -0
  83. package/dist/collection/api/group-members.js +36 -0
  84. package/dist/collection/api/groupcast.js +183 -0
  85. package/dist/collection/api/membership-control.js +13 -0
  86. package/dist/collection/api/message-reaction.js +16 -0
  87. package/dist/collection/api/social-accounts.js +282 -0
  88. package/dist/collection/app-root.js +51 -0
  89. package/dist/collection/app-root.js.map +1 -0
  90. package/dist/collection/assets/images/avatar.svg +1 -0
  91. package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
  92. package/dist/collection/assets/images/equalizer.svg +1 -0
  93. package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
  94. package/dist/collection/assets/images/link.svg +1 -0
  95. package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
  96. package/dist/collection/assets/images/videoThumbnail.svg +1 -0
  97. package/dist/collection/assets/svg/ExcelDocument.js +2 -0
  98. package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
  99. package/dist/collection/assets/svg/Moon.svg +1 -0
  100. package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
  101. package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
  102. package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
  103. package/dist/collection/assets/svg/PdfDocument.js +2 -0
  104. package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
  105. package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
  106. package/dist/collection/assets/svg/Sun.svg +1 -0
  107. package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
  108. package/dist/collection/assets/svg/broadcst-default.svg +4 -0
  109. package/dist/collection/assets/svg/close.svg +1 -0
  110. package/dist/collection/assets/svg/group.svg +7 -0
  111. package/dist/collection/assets/svg/login.svg +3051 -0
  112. package/dist/collection/assets/svg/message-add.svg +5 -0
  113. package/dist/collection/assets/svg/message-bold.svg +3 -0
  114. package/dist/collection/assets/svg/message-outline.svg +5 -0
  115. package/dist/collection/collection-manifest.json +32 -0
  116. package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
  117. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
  118. package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
  119. package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
  120. package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
  121. package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
  122. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
  123. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
  124. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
  125. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
  126. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
  127. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
  128. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
  129. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
  130. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
  131. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
  132. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
  133. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
  134. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
  135. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
  136. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
  137. package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
  139. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
  140. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
  141. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
  142. package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
  143. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
  144. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
  145. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
  146. package/dist/collection/components/Login.js +118 -0
  147. package/dist/collection/components/Login.js.map +1 -0
  148. package/dist/collection/components/Signup.js +177 -0
  149. package/dist/collection/components/Signup.js.map +1 -0
  150. package/dist/collection/components/chat-main.js +131 -0
  151. package/dist/collection/components/chat-main.js.map +1 -0
  152. package/dist/collection/components/my-component/my-component.css +3 -0
  153. package/dist/collection/components/my-component/my-component.js +83 -0
  154. package/dist/collection/components/my-component/my-component.js.map +1 -0
  155. package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
  156. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
  157. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
  158. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
  159. package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
  160. package/dist/collection/components/theme-provider.js +182 -0
  161. package/dist/collection/components/theme-provider.js.map +1 -0
  162. package/dist/collection/constants/chat-assets.js +12 -0
  163. package/dist/collection/constants/chat-creds.js +31 -0
  164. package/dist/collection/constants/content.js +75 -0
  165. package/dist/collection/constants/urls.js +1 -0
  166. package/dist/collection/index.js +135 -0
  167. package/dist/collection/index.js.map +1 -0
  168. package/dist/collection/lib/helpers.js +205 -0
  169. package/dist/collection/lib/taguser.js +123 -0
  170. package/dist/collection/store/conversation.js +25 -0
  171. package/dist/collection/store/conversation.js.map +1 -0
  172. package/dist/collection/store/group-members.js +24 -0
  173. package/dist/collection/store/group-members.js.map +1 -0
  174. package/dist/collection/store/unread-count.js +18 -0
  175. package/dist/collection/store/unread-count.js.map +1 -0
  176. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
  177. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
  178. package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
  179. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
  180. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
  181. package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
  182. package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
  183. package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
  184. package/dist/collection/stories/Components/Body/Body.js +48 -0
  185. package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
  186. package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
  187. package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
  188. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
  189. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
  190. package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
  191. package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
  192. package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
  193. package/dist/collection/stories/Components/Chip/Chip.js +111 -0
  194. package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
  195. package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
  196. package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
  197. package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
  198. package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
  199. package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
  200. package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
  201. package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
  202. package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
  203. package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
  204. package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
  205. package/dist/collection/stories/Components/Footer/Footer.js +4 -0
  206. package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
  207. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
  208. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
  209. package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
  210. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
  211. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
  212. package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
  213. package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
  214. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
  215. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
  216. package/dist/collection/stories/Components/Head/Head.js +672 -0
  217. package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
  218. package/dist/collection/stories/Components/Icon/Icon.js +115 -0
  219. package/dist/collection/stories/Components/Image/Image.js +41 -0
  220. package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
  221. package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
  222. package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
  223. package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
  224. package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
  225. package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
  226. package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
  227. package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
  228. package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
  229. package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
  230. package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
  231. package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
  232. package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
  233. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
  234. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
  235. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
  236. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
  237. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
  238. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
  239. package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
  240. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
  241. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
  242. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
  243. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
  244. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
  245. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
  246. package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
  247. package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
  248. package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
  249. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
  250. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
  251. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
  252. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
  253. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
  254. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
  255. package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
  256. package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
  257. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
  258. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
  259. package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
  260. package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
  261. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
  262. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
  263. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
  264. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
  265. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
  266. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
  267. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
  268. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
  269. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
  270. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
  271. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
  272. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
  273. package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
  274. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
  275. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
  276. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
  277. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
  278. package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
  279. package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
  280. package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
  281. package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
  282. package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
  283. package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
  284. package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
  285. package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
  286. package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
  287. package/dist/collection/stories/Components/Text/Text.js +57 -0
  288. package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
  289. package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
  290. package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
  291. package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
  292. package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
  293. package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
  294. package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
  295. package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
  296. package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
  297. package/dist/collection/stories/Components/final/final.js +86 -0
  298. package/dist/collection/stories/Components/final/final.stories.js +30 -0
  299. package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
  300. package/dist/collection/types/ConversationDetailsTypes.js +2 -0
  301. package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
  302. package/dist/collection/utils/chatSdk.js +14 -0
  303. package/dist/collection/utils/getFomattedDate.js +34 -0
  304. package/dist/collection/utils/getFomattedDate.js.map +1 -0
  305. package/dist/collection/utils/unixTimeConverter.js +28 -0
  306. package/dist/collection/utils/utils.js +4 -0
  307. package/dist/collection/utils/utils.js.map +1 -0
  308. package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
  309. package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
  310. package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
  311. package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
  312. package/dist/esm/Image-bb9efda3.js +121 -0
  313. package/dist/esm/Image-bb9efda3.js.map +1 -0
  314. package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
  315. package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
  316. package/dist/esm/IsometrikLogo-14db76af.js +42 -0
  317. package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
  318. package/dist/esm/MessageSearch-4101a627.js +5875 -0
  319. package/dist/esm/MessageSearch-4101a627.js.map +1 -0
  320. package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
  321. package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
  322. package/dist/esm/Text-3b0b3898.js +58 -0
  323. package/dist/esm/Text-3b0b3898.js.map +1 -0
  324. package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
  325. package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
  326. package/dist/esm/WebChat-5448d615.js +2882 -0
  327. package/dist/esm/WebChat-5448d615.js.map +1 -0
  328. package/dist/esm/app-globals-0f993ce5.js +5 -0
  329. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  330. package/dist/esm/audio-bubble_8.entry.js +21001 -0
  331. package/dist/esm/audio-bubble_8.entry.js.map +1 -0
  332. package/dist/esm/block-chat-list.entry.js +8 -0
  333. package/dist/esm/block-chat-list.entry.js.map +1 -0
  334. package/dist/esm/chat-app.entry.js +51 -0
  335. package/dist/esm/chat-app.entry.js.map +1 -0
  336. package/dist/esm/chat-assets-bd8778d5.js +6 -0
  337. package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
  338. package/dist/esm/chat-creds-ff086f05.js +35 -0
  339. package/dist/esm/chat-creds-ff086f05.js.map +1 -0
  340. package/dist/esm/chat-document-message-bubble.entry.js +20 -0
  341. package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
  342. package/dist/esm/chat-image-message-bubble.entry.js +22 -0
  343. package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
  344. package/dist/esm/chat-video-message-bubble.entry.js +20 -0
  345. package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
  346. package/dist/esm/content-5aea5e39.js +79 -0
  347. package/dist/esm/content-5aea5e39.js.map +1 -0
  348. package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
  349. package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
  350. package/dist/esm/forward-memebers.entry.js +124 -0
  351. package/dist/esm/forward-memebers.entry.js.map +1 -0
  352. package/dist/esm/group-members-bb3c8db7.js +37 -0
  353. package/dist/esm/group-members-bb3c8db7.js.map +1 -0
  354. package/dist/esm/groupcast-d1c54a27.js +187 -0
  355. package/dist/esm/groupcast-d1c54a27.js.map +1 -0
  356. package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
  357. package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
  358. package/dist/esm/index-fddf30b7.js +3093 -0
  359. package/dist/esm/index-fddf30b7.js.map +1 -0
  360. package/dist/esm/index.js +139 -0
  361. package/dist/esm/index.js.map +1 -0
  362. package/dist/esm/isometrik-webchat.js +49 -0
  363. package/dist/esm/isometrik-webchat.js.map +1 -0
  364. package/dist/esm/loader.js +13 -0
  365. package/dist/esm/loader.js.map +1 -0
  366. package/dist/esm/login-page.entry.js +81 -0
  367. package/dist/esm/login-page.entry.js.map +1 -0
  368. package/dist/esm/member-add.entry.js +118 -0
  369. package/dist/esm/member-add.entry.js.map +1 -0
  370. package/dist/esm/message-reaction-ad47ea1a.js +20 -0
  371. package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
  372. package/dist/esm/my-component.entry.js +25 -0
  373. package/dist/esm/my-component.entry.js.map +1 -0
  374. package/dist/esm/reaction-container.entry.js +48 -0
  375. package/dist/esm/reaction-container.entry.js.map +1 -0
  376. package/dist/esm/shadow-css-7ad5caf8.js +334 -0
  377. package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
  378. package/dist/esm/signup-page.entry.js +139 -0
  379. package/dist/esm/signup-page.entry.js.map +1 -0
  380. package/dist/esm/taguser-e9032d65.js +510 -0
  381. package/dist/esm/taguser-e9032d65.js.map +1 -0
  382. package/dist/esm/theme-provider_2.entry.js +108 -0
  383. package/dist/esm/theme-provider_2.entry.js.map +1 -0
  384. package/dist/esm/toast-helper-840fd8dc.js +82 -0
  385. package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
  386. package/dist/esm/utils-11fcde98.js +7 -0
  387. package/dist/esm/utils-11fcde98.js.map +1 -0
  388. package/dist/index.cjs.js +1 -0
  389. package/dist/index.js +1 -0
  390. package/dist/isometrik-webchat/index.esm.js +2 -0
  391. package/dist/isometrik-webchat/index.esm.js.map +1 -0
  392. package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
  395. package/dist/isometrik-webchat/p-12774661.js +2 -0
  396. package/dist/isometrik-webchat/p-12774661.js.map +1 -0
  397. package/dist/isometrik-webchat/p-12e56271.js +549 -0
  398. package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
  399. package/dist/isometrik-webchat/p-1415e589.js +2 -0
  400. package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
  401. package/dist/isometrik-webchat/p-18f8d210.js +13 -0
  402. package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
  403. package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
  404. package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
  405. package/dist/isometrik-webchat/p-229095d4.js +2 -0
  406. package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
  407. package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/p-3004a123.js +2 -0
  410. package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
  411. package/dist/isometrik-webchat/p-3044698a.js +2 -0
  412. package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
  413. package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
  414. package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
  415. package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
  416. package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
  417. package/dist/isometrik-webchat/p-48e1d174.js +45 -0
  418. package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
  419. package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
  421. package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
  422. package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
  423. package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
  424. package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
  425. package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
  426. package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
  427. package/dist/isometrik-webchat/p-8490e13d.js +192 -0
  428. package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
  429. package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
  430. package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
  431. package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
  432. package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
  433. package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
  434. package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
  435. package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
  436. package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
  437. package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
  439. package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
  440. package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
  441. package/dist/isometrik-webchat/p-b07dd267.js +2 -0
  442. package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
  443. package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
  444. package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
  445. package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
  446. package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
  447. package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
  448. package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
  449. package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
  450. package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
  451. package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
  452. package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
  453. package/dist/isometrik-webchat/p-de8a8642.js +197 -0
  454. package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
  455. package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
  456. package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
  457. package/dist/isometrik-webchat/p-e1255160.js +2 -0
  458. package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
  459. package/dist/isometrik-webchat/p-e3731295.js +274 -0
  460. package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
  461. package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
  462. package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
  463. package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
  464. package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
  465. package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
  466. package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
  467. package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
  468. package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
  469. package/dist/loader/cdn.js +1 -0
  470. package/dist/loader/index.cjs.js +1 -0
  471. package/dist/loader/index.d.ts +24 -0
  472. package/dist/loader/index.es2017.js +1 -0
  473. package/dist/loader/index.js +2 -0
  474. package/dist/loader/package.json +11 -0
  475. package/dist/types/app-root.d.ts +0 -0
  476. package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
  477. package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
  478. package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
  479. package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
  480. package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
  481. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
  482. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
  483. package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
  484. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
  485. package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
  486. package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
  487. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
  488. package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
  489. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
  490. package/dist/types/components/Login.d.ts +13 -0
  491. package/dist/types/components/Signup.d.ts +17 -0
  492. package/dist/types/components/chat-main.d.ts +15 -0
  493. package/dist/types/components/my-component/my-component.d.ts +16 -0
  494. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
  495. package/dist/types/components/theme-provider.d.ts +44 -0
  496. package/dist/types/components.d.ts +838 -0
  497. package/dist/types/index.d.ts +37 -0
  498. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  499. package/dist/types/store/conversation.d.ts +17 -0
  500. package/dist/types/store/group-members.d.ts +18 -0
  501. package/dist/types/store/unread-count.d.ts +10 -0
  502. package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
  503. package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
  504. package/dist/types/utils/getFomattedDate.d.ts +1 -0
  505. package/dist/types/utils/utils.d.ts +1 -0
  506. package/package.json +89 -0
  507. package/readme.md +569 -0
@@ -0,0 +1,274 @@
1
+ import{h as t,i as e,k as i}from"./p-48e1d174.js";import{p as s}from"./p-de8a8642.js";import"./p-8490e13d.js";import"./p-f1f5d5bd.js";class o extends t{static properties={bgColor:{type:String},borderWidth:{type:String},borderColor:{type:String},borderStyle:{type:String},borderRadius:{type:String},padding:{type:String},videoSrc:{type:String},videoType:{type:String},time:{type:String},height:{type:String},width:{type:String},playing:{type:Boolean},isRead:{type:Boolean},isSelf:{type:Boolean},isDelivered:{type:String},textColor:{type:String},message:{type:String},mentionedUsers:{type:Array},messageId:{type:String},reactions:{type:Object},showConfirmationPopup:{type:Boolean},selectedEmojiToRemove:{type:Object},showAllReactionsPopup:{type:Boolean},showReactionButton:{type:Boolean},showEmojiReactions:{type:Boolean},userMetaData:{type:Object},messageType:{type:Number},timeColor:{type:String},showReactionOnHover:{type:Boolean}};constructor(){super();this.playing=false;this.isPopupOpen=false;this.mentionedUsers=[];this.showReactionButton=false;this.showEmojiReactions=false;this.reactions={};this.showAllReactionsPopup=false;this.showReactionOnHover=false}static styles=e`
2
+ reaction-container {
3
+ display: block;
4
+ min-height: 150px;
5
+ max-height: fit-content;
6
+ min-width: 300px;
7
+ max-width: 400px;
8
+ position: absolute;
9
+ z-index: 100;
10
+ }
11
+ .video-message-container {
12
+ width: fit-content;
13
+ position: relative;
14
+ }
15
+
16
+ .time-stamp-container {
17
+ position: absolute;
18
+ bottom: 3px;
19
+ right: 10px;
20
+ font-size: 12px;
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 3px;
24
+ margin-bottom: 10px;
25
+ }
26
+
27
+ .controls {
28
+ display: flex;
29
+ justify-content: start;
30
+ gap: 10px;
31
+ }
32
+
33
+ .controls button {
34
+ padding: 5px 10px;
35
+ border: none;
36
+ cursor: pointer;
37
+ background: transparent;
38
+ border-radius: 5px;
39
+ }
40
+
41
+ .video_play {
42
+ position: absolute;
43
+ top: 50%;
44
+ left: 50%;
45
+ transform: translate(-50%, -50%);
46
+ }
47
+
48
+ .video_pause {
49
+ position: absolute;
50
+ top: 50%;
51
+ left: 50%;
52
+ transform: translate(-50%, -50%);
53
+ }
54
+
55
+ .video_fullscreen {
56
+ position: absolute;
57
+ right: 10px;
58
+ bottom: 25px;
59
+ }
60
+ .actions {
61
+ position: absolute;
62
+ left: -15px;
63
+ cursor: pointer;
64
+ top: 5px;
65
+ }
66
+
67
+ .popup {
68
+ position: absolute;
69
+ top: 0px;
70
+ left: -100px;
71
+ background-color: white;
72
+ border: 1px solid #eef1fa;
73
+ border-radius: 5px;
74
+ padding: 10px;
75
+ box-shadow: 0 2px 10px #eef1fa;
76
+ z-index: 10;
77
+ display: flex;
78
+ flex-items: column;
79
+ align-items: center;
80
+ justify-content: center;
81
+ }
82
+
83
+ .popup div {
84
+ cursor: pointer;
85
+ }
86
+
87
+ .emoji-slider {
88
+ position: absolute;
89
+ }
90
+
91
+ emoji-reactions {
92
+ position: absolute;
93
+ top: 15px;
94
+ z-index: 99;
95
+ left: 0;
96
+ }
97
+
98
+ .reaction-button {
99
+ position: absolute;
100
+ top: 50%;
101
+ right: -25px;
102
+ transform: translateY(-50%);
103
+ cursor: pointer;
104
+ z-index: 100;
105
+ }
106
+
107
+ .remaining-count {
108
+ background-color: var(--bg-primary-light);
109
+ font-size: 14px;
110
+ display: flex;
111
+ justify-content: center;
112
+ color: var(--text-primary-color);
113
+ width: 25px;
114
+ cursor: pointer;
115
+ }
116
+
117
+ .reactions-display {
118
+ position: absolute;
119
+ bottom: -10px;
120
+ right: 10px;
121
+ display: grid;
122
+ grid-template-columns: repeat(3, auto);
123
+ gap: 0;
124
+ margin-top: 4px;
125
+ background-color: transparent;
126
+ }
127
+
128
+ .reaction-item {
129
+ display: flex;
130
+ align-items: center;
131
+ gap: 2px;
132
+ border-radius: 12px;
133
+ font-size: 20px;
134
+ cursor: pointer;
135
+ background: var(--bg-secondary-color);
136
+ }
137
+ `;openPopup(){this.isPopupOpen=!this.isPopupOpen}playVideo(){const t=this.shadowRoot.querySelector("video");t.play();this.playing=true;const e=this.shadowRoot.querySelector(".video-message-container");e.addEventListener("mouseenter",(()=>{if(this.playing){this.showPauseButton()}}));e.addEventListener("mouseleave",(()=>{this.hidePauseButton()}))}pauseVideo(){const t=this.shadowRoot.querySelector("video");t.pause();this.playing=false;this.hidePauseButton()}showPauseButton(){const t=this.shadowRoot.querySelector(".video_pause");t.style.display="block"}hidePauseButton(){const t=this.shadowRoot.querySelector(".video_pause");t.style.display="none"}togglePlayPause(){if(this.playing){this.pauseVideo()}else{this.playVideo()}}handleMentionClick=t=>{this.dispatchEvent(new CustomEvent("tagUserClick",{detail:{userId:t?.userId,userName:t?.userName},bubbles:true,composed:true}))};fullscreenVideo(){const t=this.shadowRoot.querySelector("video");if(t.requestFullscreen){t.requestFullscreen()}}handleMouseEnter(){if(this.showReactionOnHover){this.showReactionButton=true}}handleReactionRemove(t){this.showEmojiReactions=false;this.showConfirmationPopup=true;this.selectedEmojiToRemove=t;setTimeout((()=>{document.addEventListener("click",this.handleOutsideClick)}),100)}handleMouseLeave(t){const e=this.renderRoot.querySelector(".message-container");const i=this.renderRoot.querySelector("emoji-reactions");const s=this.renderRoot.querySelector(".reaction-button");const o=this.showEmojiReactions;const r=e?.contains(t.relatedTarget);const n=i&&i?.contains(t.relatedTarget);const a=s&&s?.contains(t.relatedTarget);if(!r&&!n&&!a){this.showReactionButton=false;if(!o){this.showEmojiReactions=false}}}handleOutsideClick=t=>{const e=this.renderRoot.querySelector("emoji-reactions");const i=this.renderRoot.querySelector(".message-container");const s=this.renderRoot.querySelector("reaction-container");const o=t.composedPath();if(this.showEmojiReactions&&!o.includes(e)&&!o.includes(i)||this.showConfirmationPopup&&!o.includes(s)&&!o.includes(i)){this.showEmojiReactions=false;this.showConfirmationPopup=false;document.removeEventListener("click",this.handleOutsideClick)}};toggleEmojiReactions(){this.showConfirmationPopup=false;this.showEmojiReactions=!this.showEmojiReactions;if(this.showEmojiReactions){setTimeout((()=>{document.addEventListener("click",this.handleOutsideClick)}),100)}}handleEmojiClick(t){const e=this.userMetaData?.userId;const i=this.reactions[t.id]||[];const s=i.includes(e);let o=null;for(const[t,i]of Object.entries(this.reactions)){if(i.includes(e)){o=t;break}}if(o&&o!==t.id){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:o},bubbles:true,composed:true}))}if(s){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:t.id},bubbles:true,composed:true}))}else{this.dispatchEvent(new CustomEvent("reaction-added",{detail:{messageId:this.messageId,emojiId:t.id},bubbles:true,composed:true}))}this.showEmojiReactions=false;document.removeEventListener("click",this.handleOutsideClick)}handleConfirmRemove(){if(this.selectedEmojiToRemove){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:this.selectedEmojiToRemove.emojiId},bubbles:true,composed:true}))}this.closeConfirmationPopup()}closeConfirmationPopup(){this.showConfirmationPopup=false;this.selectedEmojiToRemove=null}render(){const t=document.createElement("emoji-reactions").emojis;const e=Object.keys(this.reactions).map((e=>{const i=t.find((t=>t.id===e));return{emojiId:e,messageId:this.reactions[e],src:i?.src}})).filter((t=>Array.isArray(t.messageId)&&t.messageId.length>0));const o=e.slice(0,2);const r=e.length>2?e.length-2:0;return i`
138
+ <div
139
+ @mouseover="${()=>this.handleMouseEnter()}"
140
+ @mouseout="${t=>this.handleMouseLeave(t)}"
141
+ class="video-message-container"
142
+ style="padding:${this.padding};
143
+ border-width: ${this.borderWidth};
144
+ border-color: ${this.borderColor};
145
+ border-style:${this.borderStyle};
146
+ border-radius:${this.borderRadius||"var(--radius-bubble)"};
147
+ background-color: ${this.bgColor||(this.isSelf?"var(--bg-outgoing-message)":"var(--bg-incoming-message)")}
148
+ "
149
+ >
150
+ ${this.messageType===1?i`
151
+ <forward-ui></forward-ui>
152
+ `:null}
153
+ ${!this.isSelf&&this.showReactionButton?i`
154
+ <div class="reaction-button" @click="${()=>this.toggleEmojiReactions()}" ">
155
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)">
156
+ <path d="M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z"/>
157
+ </svg>
158
+ </div>
159
+ `:""}
160
+
161
+ ${this.showConfirmationPopup?i` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${e}></reaction-container> `:""}
162
+ ${this.showEmojiReactions?i`
163
+ <emoji-reactions .isOpen="${this.showEmojiReactions}" .onEmojiSelect="${t=>this.handleEmojiClick(t)}" .selectedEmojis="${this.reactions}"></emoji-reactions>
164
+ `:""}
165
+
166
+ <div class="reactions-display">
167
+ ${o?.map((t=>i`
168
+ <span class="reaction-item" @click="${()=>this.handleReactionRemove(t)}"> ${t.src?i`<span>${t.src}</span>`:""} </span>
169
+ `))}
170
+ ${r>0?i`
171
+ <span @click="${()=>this.handleReactionRemove(o[0])}" class="reaction-item remaining-count"> +${r} </span>
172
+
173
+ `:""}
174
+ </div>
175
+
176
+ <div >
177
+ <div class="time-stamp-container">
178
+ <timestamp-element .time="${this.time||(new Date).toISOString()}" .color="${this.timeColor}"></timestamp-element>
179
+ ${this.isSelf?this.isRead==true?i`<blue-read-mark></blue-read-mark>`:this.isDelivered=="true"?i`<double-mark></double-mark>`:this.isDelivered=="pending"?i`<clock-mark></clock-mark>`:i`<single-mark></single-mark>`:null}
180
+ </div>
181
+ <video
182
+ style="height: ${this.height||"150px"};
183
+ width:${this.width||"150px"};
184
+ object-fit: cover;
185
+ overflow: hidden;
186
+ border-radius:${this.borderRadius};
187
+ "
188
+ @click="${this.togglePlayPause}"
189
+ >
190
+ <source src=${this.videoSrc} type=${this.videoType||"video/mp4"} />
191
+ </video>
192
+
193
+ <div class="controls">
194
+ ${this.message&&!this.message.includes("AttachmentMessage:")?i`
195
+ <span style="font-size: 14px; color: ${this.textColor}">
196
+ ${s(this.message,this.mentionedUsers,this.handleMentionClick,this.isSelf)}
197
+ </span>
198
+ `:null}
199
+ <button class="video_play" style="display: ${this.playing?"none":"block"};" @click="${this.playVideo}">
200
+ <svg
201
+ height="50px"
202
+ width="50px"
203
+ version="1.1"
204
+ id="_x32_"
205
+ xmlns="http://www.w3.org/2000/svg"
206
+ xmlns:xlink="http://www.w3.org/1999/xlink"
207
+ viewBox="-51.2 -51.2 614.40 614.40"
208
+ xml:space="preserve"
209
+ fill="#000000"
210
+ >
211
+ <g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(64,64), scale(0.75)">
212
+ <rect x="-51.2" y="-51.2" width="614.40" height="614.40" rx="307.2" fill="" strokewidth="0"></rect>
213
+ </g>
214
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
215
+ <g id="SVGRepo_iconCarrier">
216
+ <style type="text/css">
217
+ .st0 {
218
+ fill: #eff1fa;
219
+ }
220
+ </style>
221
+ <g>
222
+ <path
223
+ class="st0"
224
+ d="M256,0C114.625,0,0,114.625,0,256c0,141.374,114.625,256,256,256c141.374,0,256-114.626,256-256 C512,114.625,397.374,0,256,0z M351.062,258.898l-144,85.945c-1.031,0.626-2.344,0.657-3.406,0.031 c-1.031-0.594-1.687-1.702-1.687-2.937v-85.946v-85.946c0-1.218,0.656-2.343,1.687-2.938c1.062-0.609,2.375-0.578,3.406,0.031 l144,85.962c1.031,0.586,1.641,1.718,1.641,2.89C352.703,257.187,352.094,258.297,351.062,258.898z"
225
+ ></path>
226
+ </g>
227
+ </g>
228
+ </svg>
229
+ </button>
230
+ <button class="video_pause" style="display: ${this.playing?"block":"none"};" @click="${this.pauseVideo}">
231
+ <svg width="60px" height="60px" viewBox="-2.4 -2.4 28.80 28.80" fill="none" xmlns="http://www.w3.org/2000/svg">
232
+ <g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(3.959999999999999,3.959999999999999), scale(0.67)">
233
+ <rect x="-2.4" y="-2.4" width="28.80" height="28.80" rx="14.4" fill="#000" strokewidth="0"></rect>
234
+ </g>
235
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
236
+ <g id="SVGRepo_iconCarrier">
237
+ <path
238
+ fill-rule="evenodd"
239
+ clip-rule="evenodd"
240
+ d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM8.07612 8.61732C8 8.80109 8 9.03406 8 9.5V14.5C8 14.9659 8 15.1989 8.07612 15.3827C8.17761 15.6277 8.37229 15.8224 8.61732 15.9239C8.80109 16 9.03406 16 9.5 16C9.96594 16 10.1989 16 10.3827 15.9239C10.6277 15.8224 10.8224 15.6277 10.9239 15.3827C11 15.1989 11 14.9659 11 14.5V9.5C11 9.03406 11 8.80109 10.9239 8.61732C10.8224 8.37229 10.6277 8.17761 10.3827 8.07612C10.1989 8 9.96594 8 9.5 8C9.03406 8 8.80109 8 8.61732 8.07612C8.37229 8.17761 8.17761 8.37229 8.07612 8.61732ZM13.0761 8.61732C13 8.80109 13 9.03406 13 9.5V14.5C13 14.9659 13 15.1989 13.0761 15.3827C13.1776 15.6277 13.3723 15.8224 13.6173 15.9239C13.8011 16 14.0341 16 14.5 16C14.9659 16 15.1989 16 15.3827 15.9239C15.6277 15.8224 15.8224 15.6277 15.9239 15.3827C16 15.1989 16 14.9659 16 14.5V9.5C16 9.03406 16 8.80109 15.9239 8.61732C15.8224 8.37229 15.6277 8.17761 15.3827 8.07612C15.1989 8 14.9659 8 14.5 8C14.0341 8 13.8011 8 13.6173 8.07612C13.3723 8.17761 13.1776 8.37229 13.0761 8.61732Z"
241
+ fill="#EFF1FA"
242
+ ></path>
243
+ </g>
244
+ </svg>
245
+ </button>
246
+ <button class="video_fullscreen" @click="${this.fullscreenVideo}">
247
+ <svg width="16px" height="16px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
248
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
249
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
250
+ <g id="SVGRepo_iconCarrier">
251
+ <path
252
+ d="M23 4C23 2.34315 21.6569 1 20 1H16C15.4477 1 15 1.44772 15 2C15 2.55228 15.4477 3 16 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 21.4477 9 22 9C22.5523 9 23 8.55228 23 8V4Z"
253
+ fill="#fff"
254
+ ></path>
255
+ <path
256
+ d="M23 16C23 15.4477 22.5523 15 22 15C21.4477 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H16C15.4477 21 15 21.4477 15 22C15 22.5523 15.4477 23 16 23H20C21.6569 23 23 21.6569 23 20V16Z"
257
+ fill="#fff"
258
+ ></path>
259
+ <path
260
+ d="M4 21H8C8.55228 21 9 21.4477 9 22C9 22.5523 8.55228 23 8 23H4C2.34315 23 1 21.6569 1 20V16C1 15.4477 1.44772 15 2 15C2.55228 15 3 15.4477 3 16V20C3 20.5523 3.44772 21 4 21Z"
261
+ fill="#fff"
262
+ ></path>
263
+ <path
264
+ d="M1 8C1 8.55228 1.44772 9 2 9C2.55228 9 3 8.55228 3 8L3 4C3 3.44772 3.44772 3 4 3H8C8.55228 3 9 2.55228 9 2C9 1.44772 8.55228 1 8 1H4C2.34315 1 1 2.34315 1 4V8Z"
265
+ fill="#fff"
266
+ ></path>
267
+ </g>
268
+ </svg>
269
+ </button>
270
+ </div>
271
+ </div>
272
+ </div>
273
+ `}}customElements.define("video-message",o);
274
+ //# sourceMappingURL=p-e3731295.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VideoMessageBubble","LitElement","static","bgColor","type","String","borderWidth","borderColor","borderStyle","borderRadius","padding","videoSrc","videoType","time","height","width","playing","Boolean","isRead","isSelf","isDelivered","textColor","message","mentionedUsers","Array","messageId","reactions","Object","showConfirmationPopup","selectedEmojiToRemove","showAllReactionsPopup","showReactionButton","showEmojiReactions","userMetaData","messageType","Number","timeColor","showReactionOnHover","constructor","super","this","isPopupOpen","css","openPopup","playVideo","video","shadowRoot","querySelector","play","container","addEventListener","showPauseButton","hidePauseButton","pauseVideo","pause","pauseButton","style","display","togglePlayPause","handleMentionClick","user","dispatchEvent","CustomEvent","detail","userId","userName","bubbles","composed","fullscreenVideo","requestFullscreen","handleMouseEnter","handleReactionRemove","reaction","setTimeout","document","handleOutsideClick","handleMouseLeave","e","messageContainer","renderRoot","emojiReactions","reactionButton","isEmojiSliderOpen","isMovingToMessage","contains","relatedTarget","isMovingToEmoji","isMovingToReactionButton","reactionContainer","path","composedPath","includes","removeEventListener","toggleEmojiReactions","handleEmojiClick","emoji","currentUserId","usersForEmoji","id","hasReaction","existingReactionEmojiId","emojiId","userIds","entries","handleConfirmRemove","closeConfirmationPopup","render","emojiList","createElement","emojis","allReactions","keys","map","matchingEmoji","find","src","filter","isArray","length","visibleReactions","slice","remainingCount","html","Date","toISOString","processTextWithMentions","customElements","define"],"sources":["src/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js"],"sourcesContent":["import { LitElement } from 'lit';\nimport { html, css } from 'lit';\nimport '../../Time/Timestamp';\nimport '../../ReadMark/SingleMark/SingleMark.js';\nimport '../../ReadMark/BlueReadMark/BlueReadMark.js';\nimport '../../ReadMark/DoubleMark/DoubleMark.js';\nimport '../../ReadMark/ClockMark/ClockMark.js';\nimport { parseMessageWithLink } from '../../../../lib/helpers.js';\nimport { processTextWithMentions } from '../../../../lib/taguser.js';\nimport '../../EmojiReactions/EmojiReactions.js';\nimport '../../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';\nimport '../../../../components/ChatUIComponent/ReactionContainer.tsx';\nimport'../../ForwardMessage/ForwardUi.js'\nclass VideoMessageBubble extends LitElement {\n static properties = {\n bgColor: { type: String },\n borderWidth: { type: String },\n borderColor: { type: String },\n borderStyle: { type: String },\n borderRadius: { type: String },\n padding: { type: String },\n videoSrc: { type: String },\n videoType: { type: String },\n time: { type: String },\n height: { type: String },\n width: { type: String },\n playing: { type: Boolean },\n isRead: { type: Boolean },\n isSelf: { type: Boolean },\n isDelivered: { type: String },\n textColor: { type: String },\n message: { type: String },\n mentionedUsers: { type: Array },\n messageId: { type: String },\n reactions: { type: Object },\n showConfirmationPopup: { type: Boolean },\n selectedEmojiToRemove: { type: Object },\n showAllReactionsPopup: {type: Boolean},\n showReactionButton: {type: Boolean},\n showEmojiReactions: {type: Boolean},\n userMetaData: {type: Object},\n messageType: { type: Number },\n timeColor: { type: String },\n showReactionOnHover: { type: Boolean },\n };\n\n constructor() {\n super();\n this.playing = false;\n this.isPopupOpen = false;\n this.mentionedUsers = [];\n this.showReactionButton = false;\n this.showEmojiReactions = false;\n this.reactions = {};\n this.showAllReactionsPopup = false;\n this.showReactionOnHover = false;\n }\n\n static styles = css`\n reaction-container {\n display: block;\n min-height: 150px;\n max-height: fit-content;\n min-width: 300px;\n max-width: 400px;\n position: absolute;\n z-index: 100;\n }\n .video-message-container {\n width: fit-content;\n position: relative;\n }\n\n .time-stamp-container {\n position: absolute;\n bottom: 3px;\n right: 10px;\n font-size: 12px;\n display: flex;\n align-items: center;\n gap: 3px;\n margin-bottom: 10px;\n }\n\n .controls {\n display: flex;\n justify-content: start;\n gap: 10px;\n }\n\n .controls button {\n padding: 5px 10px;\n border: none;\n cursor: pointer;\n background: transparent;\n border-radius: 5px;\n }\n\n .video_play {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n .video_pause {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n .video_fullscreen {\n position: absolute;\n right: 10px;\n bottom: 25px;\n }\n .actions {\n position: absolute;\n left: -15px;\n cursor: pointer;\n top: 5px;\n }\n\n .popup {\n position: absolute;\n top: 0px;\n left: -100px;\n background-color: white;\n border: 1px solid #eef1fa;\n border-radius: 5px;\n padding: 10px;\n box-shadow: 0 2px 10px #eef1fa;\n z-index: 10;\n display: flex;\n flex-items: column;\n align-items: center;\n justify-content: center;\n }\n\n .popup div {\n cursor: pointer;\n }\n\n .emoji-slider {\n position: absolute;\n }\n\n emoji-reactions {\n position: absolute;\n top: 15px;\n z-index: 99;\n left: 0;\n }\n\n .reaction-button {\n position: absolute;\n top: 50%;\n right: -25px;\n transform: translateY(-50%);\n cursor: pointer;\n z-index: 100;\n }\n\n .remaining-count {\n background-color: var(--bg-primary-light);\n font-size: 14px;\n display: flex;\n justify-content: center;\n color: var(--text-primary-color);\n width: 25px;\n cursor: pointer;\n }\n\n .reactions-display {\n position: absolute;\n bottom: -10px;\n right: 10px;\n display: grid;\n grid-template-columns: repeat(3, auto);\n gap: 0;\n margin-top: 4px;\n background-color: transparent;\n }\n\n .reaction-item {\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 12px;\n font-size: 20px;\n cursor: pointer;\n background: var(--bg-secondary-color);\n }\n `;\n openPopup() {\n this.isPopupOpen = !this.isPopupOpen;\n }\n playVideo() {\n const video = this.shadowRoot.querySelector('video');\n video.play();\n this.playing = true;\n\n const container = this.shadowRoot.querySelector('.video-message-container');\n container.addEventListener('mouseenter', () => {\n if (this.playing) {\n this.showPauseButton();\n }\n });\n container.addEventListener('mouseleave', () => {\n this.hidePauseButton();\n });\n }\n\n pauseVideo() {\n const video = this.shadowRoot.querySelector('video');\n video.pause();\n this.playing = false;\n this.hidePauseButton();\n }\n\n showPauseButton() {\n const pauseButton = this.shadowRoot.querySelector('.video_pause');\n pauseButton.style.display = 'block';\n }\n\n hidePauseButton() {\n const pauseButton = this.shadowRoot.querySelector('.video_pause');\n pauseButton.style.display = 'none';\n }\n\n togglePlayPause() {\n if (this.playing) {\n this.pauseVideo();\n } else {\n this.playVideo();\n }\n }\n handleMentionClick = (user) => {\n this.dispatchEvent(\n new CustomEvent('tagUserClick', {\n detail: { userId: user?.userId, userName: user?.userName },\n bubbles: true,\n composed: true,\n })\n );\n };\n\n fullscreenVideo() {\n const video = this.shadowRoot.querySelector('video');\n if (video.requestFullscreen) {\n video.requestFullscreen();\n }\n }\n\n handleMouseEnter() {\n if(this.showReactionOnHover) {\n this.showReactionButton = true;\n }\n }\n\n\n handleReactionRemove(reaction) {\n this.showEmojiReactions = false;\n\n this.showConfirmationPopup = true;\n this.selectedEmojiToRemove = reaction;\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick)\n }, 100)\n }\n handleMouseLeave(e) {\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const reactionButton = this.renderRoot.querySelector('.reaction-button');\n\n const isEmojiSliderOpen = this.showEmojiReactions;\n\n const isMovingToMessage = messageContainer?.contains(e.relatedTarget);\n const isMovingToEmoji = emojiReactions && emojiReactions?.contains(e.relatedTarget);\n const isMovingToReactionButton = reactionButton && reactionButton?.contains(e.relatedTarget);\n\n if (!isMovingToMessage && !isMovingToEmoji && !isMovingToReactionButton) {\n this.showReactionButton = false;\n \n if (!isEmojiSliderOpen) {\n this.showEmojiReactions = false;\n }\n }\n }\n\n handleOutsideClick = (e) => {\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const reactionContainer = this.renderRoot.querySelector('reaction-container');\n \n const path = e.composedPath();\n \n if ((this.showEmojiReactions &&\n !path.includes(emojiReactions) &&\n !path.includes(messageContainer)) ||\n (this.showConfirmationPopup &&\n !path.includes(reactionContainer) &&\n !path.includes(messageContainer))\n ) {\n this.showEmojiReactions = false;\n this.showConfirmationPopup = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n }\n toggleEmojiReactions() {\n this.showConfirmationPopup = false;\n\n this.showEmojiReactions = !this.showEmojiReactions;\n \n if (this.showEmojiReactions) {\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick);\n }, 100);\n }\n }\n handleEmojiClick(emoji) {\n const currentUserId = this.userMetaData?.userId;\n const usersForEmoji = this.reactions[emoji.id] || [];\n const hasReaction = usersForEmoji.includes(currentUserId);\n \n let existingReactionEmojiId = null;\n \n for (const [emojiId, userIds] of Object.entries(this.reactions)) {\n if (userIds.includes(currentUserId)) {\n existingReactionEmojiId = emojiId;\n break;\n }\n }\n \n if (existingReactionEmojiId && existingReactionEmojiId !== emoji.id) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: existingReactionEmojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n if (hasReaction) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n } else {\n this.dispatchEvent(\n new CustomEvent('reaction-added', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n this.showEmojiReactions = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n handleConfirmRemove() {\n if (this.selectedEmojiToRemove) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: this.selectedEmojiToRemove.emojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n this.closeConfirmationPopup();\n }\n\n closeConfirmationPopup() {\n this.showConfirmationPopup = false;\n this.selectedEmojiToRemove = null;\n }\n\n render() {\n\n const emojiList = document.createElement('emoji-reactions').emojis;\n const allReactions = Object.keys(this.reactions)\n .map(reaction => {\n const matchingEmoji = emojiList.find(emoji => emoji.id === reaction);\n return {\n emojiId: reaction,\n messageId: this.reactions[reaction],\n src: matchingEmoji?.src,\n };\n })\n .filter(reaction => Array.isArray(reaction.messageId) && reaction.messageId.length > 0); \n \n const visibleReactions = allReactions.slice(0, 2);\n const remainingCount = allReactions.length > 2 ? allReactions.length - 2 : 0;\n return html`\n <div\n @mouseover=\"${() => this.handleMouseEnter()}\"\n @mouseout=\"${e => this.handleMouseLeave(e)}\"\n class=\"video-message-container\"\n style=\"padding:${this.padding}; \n border-width: ${this.borderWidth};\n border-color: ${this.borderColor};\n border-style:${this.borderStyle};\n border-radius:${this.borderRadius || 'var(--radius-bubble)'};\n background-color: ${this.bgColor || (this.isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)')}\n \"\n >\n ${this.messageType === 1\n ? html`\n <forward-ui></forward-ui>\n `\n : null}\n ${!this.isSelf && this.showReactionButton\n ? html`\n <div class=\"reaction-button\" @click=\"${() => this.toggleEmojiReactions()}\" \">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"var(--text-primary-color)\">\n <path d=\"M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z\"/>\n </svg>\n </div>\n `\n : ''}\n\n ${this.showConfirmationPopup\n ? html` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${allReactions}></reaction-container> `\n : ''}\n ${this.showEmojiReactions\n ? html`\n <emoji-reactions .isOpen=\"${this.showEmojiReactions}\" .onEmojiSelect=\"${emoji => this.handleEmojiClick(emoji)}\" .selectedEmojis=\"${this.reactions}\"></emoji-reactions>\n `\n : ''}\n\n <div class=\"reactions-display\">\n ${visibleReactions?.map(\n reaction => html`\n <span class=\"reaction-item\" @click=\"${() => this.handleReactionRemove(reaction)}\"> ${reaction.src ? html`<span>${reaction.src}</span>` : ''} </span>\n `,\n )}\n ${remainingCount > 0\n ? html`\n <span @click=\"${() => this.handleReactionRemove(visibleReactions[0])}\" class=\"reaction-item remaining-count\"> +${remainingCount} </span>\n \n `\n : ''}\n </div>\n\n <div >\n <div class=\"time-stamp-container\">\n <timestamp-element .time=\"${this.time || new Date().toISOString()}\" .color=\"${this.timeColor}\"></timestamp-element>\n ${this.isSelf\n ? this.isRead == true\n ? html`<blue-read-mark></blue-read-mark>`\n : this.isDelivered == 'true'\n ? html`<double-mark></double-mark>`\n : this.isDelivered == 'pending'\n ? html`<clock-mark></clock-mark>`\n : html`<single-mark></single-mark>`\n : null}\n </div>\n <video\n style=\"height: ${this.height || '150px'}; \n width:${this.width || '150px'};\n object-fit: cover; \n overflow: hidden;\n border-radius:${this.borderRadius};\n \"\n @click=\"${this.togglePlayPause}\"\n >\n <source src=${this.videoSrc} type=${this.videoType || 'video/mp4'} />\n </video>\n\n <div class=\"controls\">\n ${this.message && !this.message.includes('AttachmentMessage:')\n ? html`\n <span style=\"font-size: 14px; color: ${this.textColor}\">\n ${processTextWithMentions(this.message, this.mentionedUsers, this.handleMentionClick, this.isSelf)}\n </span>\n `\n : null}\n <button class=\"video_play\" style=\"display: ${this.playing ? 'none' : 'block'};\" @click=\"${this.playVideo}\">\n <svg\n height=\"50px\"\n width=\"50px\"\n version=\"1.1\"\n id=\"_x32_\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"-51.2 -51.2 614.40 614.40\"\n xml:space=\"preserve\"\n fill=\"#000000\"\n >\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(64,64), scale(0.75)\">\n <rect x=\"-51.2\" y=\"-51.2\" width=\"614.40\" height=\"614.40\" rx=\"307.2\" fill=\"\" strokewidth=\"0\"></rect>\n </g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <style type=\"text/css\">\n .st0 {\n fill: #eff1fa;\n }\n </style>\n <g>\n <path\n class=\"st0\"\n d=\"M256,0C114.625,0,0,114.625,0,256c0,141.374,114.625,256,256,256c141.374,0,256-114.626,256-256 C512,114.625,397.374,0,256,0z M351.062,258.898l-144,85.945c-1.031,0.626-2.344,0.657-3.406,0.031 c-1.031-0.594-1.687-1.702-1.687-2.937v-85.946v-85.946c0-1.218,0.656-2.343,1.687-2.938c1.062-0.609,2.375-0.578,3.406,0.031 l144,85.962c1.031,0.586,1.641,1.718,1.641,2.89C352.703,257.187,352.094,258.297,351.062,258.898z\"\n ></path>\n </g>\n </g>\n </svg>\n </button>\n <button class=\"video_pause\" style=\"display: ${this.playing ? 'block' : 'none'};\" @click=\"${this.pauseVideo}\">\n <svg width=\"60px\" height=\"60px\" viewBox=\"-2.4 -2.4 28.80 28.80\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(3.959999999999999,3.959999999999999), scale(0.67)\">\n <rect x=\"-2.4\" y=\"-2.4\" width=\"28.80\" height=\"28.80\" rx=\"14.4\" fill=\"#000\" strokewidth=\"0\"></rect>\n </g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM8.07612 8.61732C8 8.80109 8 9.03406 8 9.5V14.5C8 14.9659 8 15.1989 8.07612 15.3827C8.17761 15.6277 8.37229 15.8224 8.61732 15.9239C8.80109 16 9.03406 16 9.5 16C9.96594 16 10.1989 16 10.3827 15.9239C10.6277 15.8224 10.8224 15.6277 10.9239 15.3827C11 15.1989 11 14.9659 11 14.5V9.5C11 9.03406 11 8.80109 10.9239 8.61732C10.8224 8.37229 10.6277 8.17761 10.3827 8.07612C10.1989 8 9.96594 8 9.5 8C9.03406 8 8.80109 8 8.61732 8.07612C8.37229 8.17761 8.17761 8.37229 8.07612 8.61732ZM13.0761 8.61732C13 8.80109 13 9.03406 13 9.5V14.5C13 14.9659 13 15.1989 13.0761 15.3827C13.1776 15.6277 13.3723 15.8224 13.6173 15.9239C13.8011 16 14.0341 16 14.5 16C14.9659 16 15.1989 16 15.3827 15.9239C15.6277 15.8224 15.8224 15.6277 15.9239 15.3827C16 15.1989 16 14.9659 16 14.5V9.5C16 9.03406 16 8.80109 15.9239 8.61732C15.8224 8.37229 15.6277 8.17761 15.3827 8.07612C15.1989 8 14.9659 8 14.5 8C14.0341 8 13.8011 8 13.6173 8.07612C13.3723 8.17761 13.1776 8.37229 13.0761 8.61732Z\"\n fill=\"#EFF1FA\"\n ></path>\n </g>\n </svg>\n </button>\n <button class=\"video_fullscreen\" @click=\"${this.fullscreenVideo}\">\n <svg width=\"16px\" height=\"16px\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path\n d=\"M23 4C23 2.34315 21.6569 1 20 1H16C15.4477 1 15 1.44772 15 2C15 2.55228 15.4477 3 16 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 21.4477 9 22 9C22.5523 9 23 8.55228 23 8V4Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M23 16C23 15.4477 22.5523 15 22 15C21.4477 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H16C15.4477 21 15 21.4477 15 22C15 22.5523 15.4477 23 16 23H20C21.6569 23 23 21.6569 23 20V16Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M4 21H8C8.55228 21 9 21.4477 9 22C9 22.5523 8.55228 23 8 23H4C2.34315 23 1 21.6569 1 20V16C1 15.4477 1.44772 15 2 15C2.55228 15 3 15.4477 3 16V20C3 20.5523 3.44772 21 4 21Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M1 8C1 8.55228 1.44772 9 2 9C2.55228 9 3 8.55228 3 8L3 4C3 3.44772 3.44772 3 4 3H8C8.55228 3 9 2.55228 9 2C9 1.44772 8.55228 1 8 1H4C2.34315 1 1 2.34315 1 4V8Z\"\n fill=\"#fff\"\n ></path>\n </g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ncustomElements.define('video-message', VideoMessageBubble);\nexport { VideoMessageBubble };\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export{B as block_chat_list}from"./p-4d2aca06.js";import"./p-f1f5d5bd.js";import"./p-48e1d174.js";import"./p-40517d7f.js";import"./p-610bfd8a.js";import"./p-674e4bb0.js";
2
+ //# sourceMappingURL=p-e4efea64.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,h as s}from"./p-f1f5d5bd.js";import{M as o}from"./p-48e1d174.js";import{a as t}from"./p-40517d7f.js";import"./p-610bfd8a.js";import"./p-674e4bb0.js";const l=class{constructor(s){i(this,s);this.getForwardMessageMemberList=async(i,s)=>{var t,l;if(s===0){this.isLoading=true;this.nonBlockedContacts=[]}if(s>=20){this.paginationLoading=true}this.hasMore=true;try{if(i!==undefined&&s===undefined){this.nonBlockedContacts=[];this.skip=0}const d={sort:1,limit:20,skip:s||this.skip,context:"new_chat"};if(i===null||i===void 0?void 0:i.trim()){d.searchTag=i}const n=await o.getInstance().user.getUserNonblock(d);if(!(n===null||n===void 0?void 0:n.users)||n.users.length===0){this.isNoContactsFound=(i===null||i===void 0?void 0:i.trim())?true:false}else{this.isNoContactsFound=false;const i=(t=n===null||n===void 0?void 0:n.users)===null||t===void 0?void 0:t.filter((i=>!this.nonBlockedContacts.some((s=>s.userId===i.userId))));this.nonBlockedContacts=[...this.nonBlockedContacts,...i];this.skip+=n.users.length}if(((l=n===null||n===void 0?void 0:n.users)===null||l===void 0?void 0:l.length)<d.limit){this.hasMore=false}}catch(s){if((s===null||s===void 0?void 0:s.status)===404||(s===null||s===void 0?void 0:s.statusCode)===404){this.hasMore=false}if(((s===null||s===void 0?void 0:s.status)===404||(s===null||s===void 0?void 0:s.statusCode)===404)&&i!=null){this.nonBlockedContacts=[]}}finally{this.isLoading=false;this.paginationLoading=false}};this.postMessageForward=async(i,s,l,d,n)=>{try{const t={messageType:1,showInConversation:true,encrypted:false,body:i,attachments:d,deviceId:this.dialogData.deviceId,customType:n};if((s===null||s===void 0?void 0:s.length)>0){t.userIds=s}if((l===null||l===void 0?void 0:l.length)>0){t.conversationIds=l}await o.getInstance().message.postMessagesForward(t)}catch(i){console.error("Error forwarding the message",i)}finally{t.closeDialog("forward-memebers")}};this.nonBlockedContacts=[];this.skip=0;this.isNoContactsFound=false;this.hasMore=false;this.isLoading=false;this.paginationLoading=false;this.dialogData={}}async componentDidLoad(){await this.getForwardMessageMemberList(null,0)}async sendMessageHandler(i,s){var o,t,l,d,n,e;const a=[];const v=[];i===null||i===void 0?void 0:i.forEach((i=>{const{userId:s,contactConversationId:o}=i;if(s)a.push(s);if(o)v.push(o)}));if(s===null||s===void 0?void 0:s.message){const i=typeof((o=s===null||s===void 0?void 0:s.message)===null||o===void 0?void 0:o.body)==="string"?(t=s.message)===null||t===void 0?void 0:t.body:(d=(l=s.message)===null||l===void 0?void 0:l.body)===null||d===void 0?void 0:d.messageBody;if((a===null||a===void 0?void 0:a.length)>0||(v===null||v===void 0?void 0:v.length)>0){await this.postMessageForward(i,(a===null||a===void 0?void 0:a.length)>0?a:null,(v===null||v===void 0?void 0:v.length)>0?v:null,(n=s.message)===null||n===void 0?void 0:n.attachments,(e=s.message)===null||e===void 0?void 0:e.customType)}}}render(){return s("searchable-list",{key:"0d67026c7cf1ec2c3ac3c6ff1490eedf14fa8c7a",fontSize:"16px",label:"Forward message to",conversationList:this.dialogData.conversationList,contactList:this.nonBlockedContacts,getForwardMessageMemberList:this.getForwardMessageMemberList,isLoading:this.isLoading,hasMore:this.hasMore,skip:this.skip,paginationLoading:this.paginationLoading,onSend:i=>this.sendMessageHandler(i,this.dialogData)})}};export{l as forward_memebers};
2
+ //# sourceMappingURL=p-ef6e482a.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MemberAdd","this","getForwardMessageMemberList","async","searchTag","skip","isLoading","nonBlockedContacts","paginationLoading","hasMore","undefined","paramsForNonBlockedContacts","sort","limit","context","trim","res","ChatSDK","getInstance","user","getUserNonblock","users","length","isNoContactsFound","uniqueContacts","_a","filter","newContact","some","existingContact","userId","_b","error","status","statusCode","postMessageForward","messageBody","userIds","conversationIds","attachments","customType","requestBody","messageType","showInConversation","encrypted","body","deviceId","dialogData","message","postMessagesForward","console","drawerDialogService","closeDialog","componentDidLoad","sendMessageHandler","selectedContacts","allUserIds","allConversationIds","forEach","contact","contactConversationId","push","parsedMessageBody","_d","_c","_e","_f","render","h","key","fontSize","label","conversationList","contactList","onSend"],"sources":["src/components/ChatUIComponent/ForwardMessageList.tsx"],"sourcesContent":["import { Component, h, State, Prop } from '@stencil/core';\nimport ChatSDK from 'test-iso-chat-sdk';\nimport '../../stories/Components/SearchableList/SearchableList.js'\nimport {drawerDialogService} from '../../stories/Components/Dialog-Drawer/dialog-drawer.js'\n\n@Component({\n tag: 'forward-memebers',\n styleUrl: '',\n shadow: true,\n})\nexport class MemberAdd {\n @State() nonBlockedContacts: any[] = [];\n @State() skip: number = 0;\n @State() isNoContactsFound: boolean = false;\n @State() hasMore: any = false;\n @State() isLoading: boolean = false;\n @State() paginationLoading: boolean = false;\n @Prop() dialogData: any ={};\n \n async componentDidLoad() {\n await this.getForwardMessageMemberList(null,0); \n }\n getForwardMessageMemberList = async (searchTag?: string, skip?: number) => {\n if (skip === 0) {\n this.isLoading = true;\n this.nonBlockedContacts = [];\n }\n\n if (skip >= 20) {\n this.paginationLoading = true;\n } \n this.hasMore = true;\n try {\n if (searchTag !== undefined && skip === undefined) {\n this.nonBlockedContacts = [];\n this.skip = 0;\n }\n\n const paramsForNonBlockedContacts = {\n sort: 1,\n limit: 20,\n skip: skip || this.skip,\n context: 'new_chat',\n };\n\n if (searchTag?.trim()) {\n // @ts-ignore\n paramsForNonBlockedContacts.searchTag = searchTag;\n }\n\n const res = await ChatSDK.getInstance().user.getUserNonblock(paramsForNonBlockedContacts);\n\n if (!res?.users || res.users.length === 0) {\n this.isNoContactsFound = searchTag?.trim() ? true : false; // Only show no results if there was a search\n } else {\n this.isNoContactsFound = false;\n const uniqueContacts = res?.users?.filter(newContact => !this.nonBlockedContacts.some(existingContact => existingContact.userId === newContact.userId));\n this.nonBlockedContacts = [...this.nonBlockedContacts, ...uniqueContacts];\n this.skip += res.users.length;\n }\n if (res?.users?.length < paramsForNonBlockedContacts.limit) {\n this.hasMore = false;\n }\n } catch (error) {\n if (error?.status === 404 || error?.statusCode === 404) {\n this.hasMore = false;\n }\n if ((error?.status === 404 || error?.statusCode === 404) && searchTag != null) {\n this.nonBlockedContacts = [];\n }\n } finally {\n this.isLoading = false;\n this.paginationLoading = false;\n }\n }\n\n postMessageForward = async (messageBody: any, userIds?: string[], conversationIds?: string[], attachments?: any, customType?:string) => {\n try {\n const requestBody: any = {\n messageType: 1,\n showInConversation: true,\n encrypted: false,\n body: messageBody,\n attachments: attachments,\n deviceId: this.dialogData.deviceId,\n customType:customType\n };\n\n if (userIds?.length > 0) {\n requestBody.userIds = userIds;\n }\n\n if (conversationIds?.length > 0) {\n requestBody.conversationIds = conversationIds;\n }\n\n await ChatSDK.getInstance().message.postMessagesForward(requestBody);\n } catch (error) {\n console.error('Error forwarding the message', error);\n }finally{\n drawerDialogService.closeDialog('forward-memebers')\n }\n };\n async sendMessageHandler(selectedContacts:any,dialogData:any) {\n const allUserIds: string[] = [];\n const allConversationIds: string[] = [];\n\n selectedContacts?.forEach(contact => {\n const { userId, contactConversationId } = contact;\n\n if (userId) allUserIds.push(userId);\n if (contactConversationId) allConversationIds.push(contactConversationId);\n });\n if (dialogData?.message) {\n const parsedMessageBody = typeof dialogData?.message?.body === 'string' ? dialogData.message?.body : dialogData.message?.body?.messageBody;\n if (allUserIds?.length > 0 || allConversationIds?.length > 0) {\n await this.postMessageForward(\n parsedMessageBody,\n allUserIds?.length > 0 ? allUserIds : null,\n allConversationIds?.length > 0 ? allConversationIds : null,\n dialogData.message?.attachments,\n dialogData.message?.customType\n );\n }\n\n }\n }\n render() {\n return (\n <searchable-list\n fontSize=\"16px\"\n label=\"Forward message to\"\n conversationList={this.dialogData.conversationList}\n contactList={this.nonBlockedContacts}\n getForwardMessageMemberList={this.getForwardMessageMemberList}\n isLoading={this.isLoading}\n hasMore={this.hasMore}\n skip={this.skip}\n paginationLoading={this.paginationLoading}\n onSend={(selectedContacts)=>this.sendMessageHandler(selectedContacts,this.dialogData)}\n ></searchable-list>\n )}\n}"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ const e="isometrik-webchat";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};const n={};var s=Object.defineProperty;var i=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:true})};var r={isDev:t.isDev?true:false,isBrowser:true,isServer:false,isTesting:t.isTesting?true:false};var o=t.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap;var l=e=>o.get(e);var f=(e,t)=>o.set(t.t=e,t);var a=(e,n)=>{const s={i:0,$hostElement$:e,o:n,l:new Map};if(t.isDev){s.u=0}if(t.method&&t.lazyLoad){s.v=new Promise((e=>s.p=e))}if(t.asyncLoading){s.m=new Promise((e=>s.$=e));e["s-p"]=[];e["s-rc"]=[]}return o.set(e,s)};var c=(e,t)=>t in e;var u;var d=(e,t)=>(u||console.error)(e,t);var v=t.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var h=(...e)=>console.error(...v,...e);var p=(...e)=>console.warn(...v,...e);var m=(...e)=>console.info(...v,...e);var $=e=>u=e;var y=new Map;var b=(e,n,s)=>{const i=e.S.replace(/-/g,"_");const r=e.C;if(t.isDev&&typeof r!=="string"){h(`Trying to lazily load component <${e.S}> with style mode "${n.k}", but it does not exist.`);return void 0}else if(!r){return void 0}const o=!t.hotModuleReplacement?y.get(r):false;if(o){return o[i]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${t.hotModuleReplacement&&s?"?s-hmr="+s:""}`).then((e=>{if(!t.hotModuleReplacement){y.set(r,e)}return e[i]}),d)};var g=new Map;var w=[];var S="r";var C="o";var k="s";var x="t";var E="s-id";var j="sty-id";var O="c-id";var R="{visibility:hidden}.hydrated{visibility:inherit}";var T="_stencilDocData";var L={hostIds:0,rootLevelIds:0,staticComponents:new Set};var D="slot-fb{display:contents}slot-fb[hidden]{display:none}";var M="http://www.w3.org/1999/xlink";var A=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var N=typeof window!=="undefined"?window:{};var I=N.document||{head:{}};var P=N.HTMLElement||class{};var H={i:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};var U=e=>{Object.assign(H,e)};var F=t.shadowDom;var W=(()=>{let e=false;try{I.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var _=e=>Promise.resolve(e);var z=t.constructableCSS?(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})():false;var V=0;var B=false;var X=[];var J=[];var Q=[];var q=(e,t)=>n=>{e.push(n);if(!B){B=true;if(t&&H.i&4){Z(K)}else{H.raf(K)}}};var Y=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){d(e)}}e.length=0};var G=(e,t)=>{let n=0;let s=0;while(n<e.length&&(s=performance.now())<t){try{e[n++](s)}catch(e){d(e)}}if(n===e.length){e.length=0}else if(n!==0){e.splice(0,n)}};var K=()=>{if(t.asyncQueue){V++}Y(X);if(t.asyncQueue){const e=(H.i&6)===2?performance.now()+14*Math.ceil(V*(1/10)):Infinity;G(J,e);G(Q,e);if(J.length>0){Q.push(...J);J.length=0}if(B=X.length+J.length+Q.length>0){H.raf(K)}else{V=0}}else{Y(J);if(B=X.length>0){H.raf(K)}}};var Z=e=>_().then(e);var ee=q(X,false);var te=q(J,true);var ne=e=>{const t=new URL(e,H.j);return t.origin!==N.location.origin?t.href:t.pathname};var se=e=>H.j=e;var ie={};var re="http://www.w3.org/2000/svg";var oe="http://www.w3.org/1999/xhtml";var le=e=>e!=null;var fe=e=>{e=typeof e;return e==="object"||e==="function"};function ae(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var ce={};i(ce,{err:()=>de,map:()=>ve,ok:()=>ue,unwrap:()=>he,unwrapErr:()=>pe});var ue=e=>({isOk:true,isErr:false,value:e});var de=e=>({isOk:false,isErr:true,value:e});function ve(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>ue(e)))}else{return ue(n)}}if(e.isErr){const t=e.value;return de(t)}throw"should never get here"}var he=e=>{if(e.isOk){return e.value}else{throw e.value}};var pe=e=>{if(e.isErr){return e.value}else{throw e.value}};var me=0;var $e=(e,n="")=>{if(t.profile&&performance.mark){const t=`st:${e}:${n}:${me++}`;performance.mark(t);return()=>performance.measure(`[Stencil] ${e}() <${n}>`,t)}else{return()=>{}}};var ye=(e,n)=>{if(t.profile&&performance.mark){if(performance.getEntriesByName(e,"mark").length===0){performance.mark(e)}return()=>{if(performance.getEntriesByName(n,"measure").length===0){performance.measure(n,e)}}}else{return()=>{}}};var be=e=>{const t=l(e);if(!t){return void 0}const n=t.i;const s=t.$hostElement$;return{renderCount:t.u,flags:{hasRendered:!!(n&2),hasConnected:!!(n&1),isWaitingForChildren:!!(n&4),isConstructingInstance:!!(n&8),isQueuedForUpdate:!!(n&16),hasInitializedComponent:!!(n&32),hasLoadedComponent:!!(n&64),isWatchReady:!!(n&128),isListenReady:!!(n&256),needsRerender:!!(n&512)},instanceValues:t.l,ancestorComponent:t.O,hostElement:s,lazyInstance:t.t,vnode:t.R,modeName:t.k,onReadyPromise:t.m,onReadyResolve:t.$,onInstancePromise:t.v,onInstanceResolve:t.p,onRenderResolve:t.T,queuedListeners:t.L,rmListeners:t.D,["s-id"]:s["s-id"],["s-cr"]:s["s-cr"],["s-lr"]:s["s-lr"],["s-p"]:s["s-p"],["s-rc"]:s["s-rc"],["s-sc"]:s["s-sc"]}};var ge=()=>{if(t.devTools){const e=N.stencil=N.stencil||{};const t=e.inspect;e.inspect=e=>{let n=be(e);if(!n&&typeof t==="function"){n=t(e)}return n}}};var we=(e,n,...s)=>{let i=null;let r=null;let o=null;let l=false;let f=false;const a=[];const c=n=>{for(let s=0;s<n.length;s++){i=n[s];if(Array.isArray(i)){c(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!fe(i)){i=String(i)}else if(t.isDev&&typeof e!=="function"&&i.i===void 0){h(`vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.`)}if(l&&f){a[a.length-1].M+=i}else{a.push(l?Se(null,i):i)}f=l}}};c(s);if(n){if(t.isDev&&e==="input"){Oe(n)}if(t.vdomKey&&n.key){r=n.key}if(t.slotRelocation&&n.name){o=n.name}if(t.vdomClass){const e=n.className||n.class;if(e){n.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(t.isDev&&a.some(ke)){h(`The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.`)}if(t.vdomFunctional&&typeof e==="function"){return e(n===null?{}:n,a,xe)}const u=Se(e,null);u.A=n;if(a.length>0){u.N=a}if(t.vdomKey){u.I=r}if(t.slotRelocation){u.P=o}return u};var Se=(e,n)=>{const s={i:0,U:e,M:n,F:null,N:null};if(t.vdomAttribute){s.A=null}if(t.vdomKey){s.I=null}if(t.slotRelocation){s.P=null}return s};var Ce={};var ke=e=>e&&e.U===Ce;var xe={forEach:(e,t)=>e.map(Ee).forEach(t),map:(e,t)=>e.map(Ee).map(t).map(je)};var Ee=e=>({vattrs:e.A,vchildren:e.N,vkey:e.I,vname:e.P,vtag:e.U,vtext:e.M});var je=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return we(e.vtag,t,...e.vchildren||[])}const t=Se(e.vtag,e.vtext);t.A=e.vattrs;t.N=e.vchildren;t.I=e.vkey;t.P=e.vname;return t};var Oe=e=>{const t=Object.keys(e);const n=t.indexOf("value");if(n===-1){return}const s=t.indexOf("type");const i=t.indexOf("min");const r=t.indexOf("max");const o=t.indexOf("step");if(n<s||n<i||n<r||n<o){p(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`)}};var Re=(e,n,s,i)=>{const r=$e("hydrateClient",n);const o=e.shadowRoot;const l=[];const f=[];const a=t.shadowDom&&o?[]:null;const c=i.R=Se(n,null);if(!H.W){Le(I.body,H.W=new Map)}e[E]=s;e.removeAttribute(E);Te(c,l,f,a,e,e,s);l.map((e=>{const t=e._+"."+e.V;const s=H.W.get(t);const i=e.F;if(s&&F&&s["s-en"]===""){s.parentNode.insertBefore(i,s.nextSibling)}if(!o){i["s-hn"]=n;if(s){i["s-ol"]=s;i["s-ol"]["s-nr"]=i}}H.W.delete(t)}));if(t.shadowDom&&o){a.map((e=>{if(e){o.appendChild(e)}}))}r()};var Te=(e,n,s,i,r,o,l)=>{let f;let a;let c;let u;if(o.nodeType===1){f=o.getAttribute(O);if(f){a=f.split(".");if(a[0]===l||a[0]==="0"){c={i:0,_:a[0],V:a[1],B:a[2],X:a[3],U:o.tagName.toLowerCase(),F:o,A:null,N:null,I:null,P:null,M:null};n.push(c);o.removeAttribute(O);if(!e.N){e.N=[]}e.N[c.X]=c;e=c;if(i&&c.B==="0"){i[c.X]=c.F}}}if(o.shadowRoot){for(u=o.shadowRoot.childNodes.length-1;u>=0;u--){Te(e,n,s,i,r,o.shadowRoot.childNodes[u],l)}}for(u=o.childNodes.length-1;u>=0;u--){Te(e,n,s,i,r,o.childNodes[u],l)}}else if(o.nodeType===8){a=o.nodeValue.split(".");if(a[1]===l||a[1]==="0"){f=a[0];c={i:0,_:a[1],V:a[2],B:a[3],X:a[4],F:o,A:null,N:null,I:null,P:null,U:null,M:null};if(f===x){c.F=o.nextSibling;if(c.F&&c.F.nodeType===3){c.M=c.F.textContent;n.push(c);o.remove();if(!e.N){e.N=[]}e.N[c.X]=c;if(i&&c.B==="0"){i[c.X]=c.F}}}else if(c._===l){if(f===k){c.U="slot";if(a[5]){o["s-sn"]=c.P=a[5]}else{o["s-sn"]=""}o["s-sr"]=true;if(t.shadowDom&&i){c.F=I.createElement(c.U);if(c.P){c.F.setAttribute("name",c.P)}o.parentNode.insertBefore(c.F,o);o.remove();if(c.B==="0"){i[c.X]=c.F}}s.push(c);if(!e.N){e.N=[]}e.N[c.X]=c}else if(f===S){if(t.shadowDom&&i){o.remove()}else if(t.slotRelocation){r["s-cr"]=o;o["s-cn"]=true}}}}}else if(e&&e.U==="style"){const t=Se(null,o.textContent);t.F=o;t.X="0";e.N=[t]}};var Le=(e,t)=>{if(e.nodeType===1){let n=0;if(e.shadowRoot){for(;n<e.shadowRoot.childNodes.length;n++){Le(e.shadowRoot.childNodes[n],t)}}for(n=0;n<e.childNodes.length;n++){Le(e.childNodes[n],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===C){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var De=e=>w.map((t=>t(e))).find((e=>!!e));var Me=e=>w.push(e);var Ae=e=>l(e).k;var Ne=(e,n)=>{if(e!=null&&!fe(e)){if(t.propBoolean&&n&4){return e==="false"?false:e===""||!!e}if(t.propNumber&&n&2){return parseFloat(e)}if(t.propString&&n&1){return String(e)}return e}return e};var Ie=e=>t.lazyLoad?l(e).$hostElement$:e;var Pe=(e,n,s)=>{const i=Ie(e);return{emit:e=>{if(t.isDev&&!i.isConnected){p(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`)}return He(i,n,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:e})}}};var He=(e,t,n)=>{const s=H.ce(t,n);e.dispatchEvent(s);return s};var Ue=new WeakMap;var Fe=(e,t,n)=>{let s=g.get(e);if(z&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=t}else{s.replaceSync(t)}}else{s=t}g.set(e,s)};var We=(e,n,s)=>{var i;const r=ze(n,s);const o=g.get(r);if(!t.attachStyles){return r}e=e.nodeType===11?e:I;if(o){if(typeof o==="string"){e=e.head||e;let s=Ue.get(e);let l;if(!s){Ue.set(e,s=new Set)}if(!s.has(r)){if(t.hydrateClientSide&&e.host&&(l=e.querySelector(`[${j}="${r}"]`))){l.innerHTML=o}else{l=I.createElement("style");l.innerHTML=o;const s=(i=H.J)!=null?i:ae(I);if(s!=null){l.setAttribute("nonce",s)}if((t.hydrateServerSide||t.hotModuleReplacement)&&n.i&2){l.setAttribute(j,r)}if(!(n.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,n)}else if("host"in e){const t=e.querySelector("style");if(t){t.innerHTML=o+t.innerHTML}else{e.prepend(l)}}else{e.append(l)}}if(n.i&1&&e.nodeName!=="HEAD"){e.insertBefore(l,null)}}if(n.i&4){l.innerHTML+=D}if(s){s.add(r)}}}else if(t.constructableCSS&&!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return r};var _e=e=>{const n=e.o;const s=e.$hostElement$;const i=n.i;const r=$e("attachStyles",n.S);const o=We(t.shadowDom&&F&&s.shadowRoot?s.shadowRoot:s.getRootNode(),n,e.k);if((t.shadowDom||t.scoped)&&t.cssAnnotations&&i&10&&i&2){s["s-sc"]=o;s.classList.add(o+"-h");if(t.scoped&&i&2){s.classList.add(o+"-s")}}r()};var ze=(e,n)=>"sc-"+(t.mode&&n&&e.i&32?e.S+"-"+n:e.S);var Ve=(e,n,s,i,r,o)=>{if(s!==i){let l=c(e,n);let f=n.toLowerCase();if(t.vdomClass&&n==="class"){const t=e.classList;const n=Xe(s);const r=Xe(i);t.remove(...n.filter((e=>e&&!r.includes(e))));t.add(...r.filter((e=>e&&!n.includes(e))))}else if(t.vdomStyle&&n==="style"){if(t.updatable){for(const n in s){if(!i||i[n]==null){if(!t.hydrateServerSide&&n.includes("-")){e.style.removeProperty(n)}else{e.style[n]=""}}}}for(const n in i){if(!s||i[n]!==s[n]){if(!t.hydrateServerSide&&n.includes("-")){e.style.setProperty(n,i[n])}else{e.style[n]=i[n]}}}}else if(t.vdomKey&&n==="key");else if(t.vdomRef&&n==="ref"){if(i){i(e)}}else if(t.vdomListener&&(t.lazyLoad?!l:!e.__lookupSetter__(n))&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(c(N,f)){n=f.slice(2)}else{n=f[2]+n.slice(3)}if(s||i){const t=n.endsWith(Je);n=n.replace(Qe,"");if(s){H.rel(e,n,s,t)}if(i){H.ael(e,n,i,t)}}}else if(t.vdomPropOrAttr){const a=fe(i);if((l||a&&i!==null)&&!r){try{if(!e.tagName.includes("-")){const t=i==null?"":i;if(n==="list"){l=false}else if(s==null||e[n]!=t){if(typeof e.__lookupSetter__(n)==="function"){e[n]=t}else{e.setAttribute(n,t)}}}else{e[n]=i}}catch(e){}}let c=false;if(t.vdomXlink){if(f!==(f=f.replace(/^xlink\:?/,""))){n=f;c=true}}if(i==null||i===false){if(i!==false||e.getAttribute(n)===""){if(t.vdomXlink&&c){e.removeAttributeNS(M,n)}else{e.removeAttribute(n)}}}else if((!l||o&4||r)&&!a){i=i===true?"":i;if(t.vdomXlink&&c){e.setAttributeNS(M,n,i)}else{e.setAttribute(n,i)}}}}};var Be=/\s/;var Xe=e=>!e?[]:e.split(Be);var Je="Capture";var Qe=new RegExp(Je+"$");var qe=(e,n,s)=>{const i=n.F.nodeType===11&&n.F.host?n.F.host:n.F;const r=e&&e.A||ie;const o=n.A||ie;if(t.updatable){for(const e of Ye(Object.keys(r))){if(!(e in o)){Ve(i,e,r[e],void 0,s,n.i)}}}for(const e of Ye(Object.keys(o))){Ve(i,e,r[e],o[e],s,n.i)}};function Ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Ge;var Ke;var Ze;var et=false;var tt=false;var nt=false;var st=false;var it=(e,n,s,i)=>{var r;const o=n.N[s];let l=0;let f;let a;let c;if(t.slotRelocation&&!et){nt=true;if(o.U==="slot"){if(Ge){i.classList.add(Ge+"-s")}o.i|=o.N?2:1}}if(t.isDev&&o.F){h(`The JSX ${o.M!==null?`"${o.M}" text`:`"${o.U}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`)}if(t.vdomText&&o.M!==null){f=o.F=I.createTextNode(o.M)}else if(t.slotRelocation&&o.i&1){f=o.F=t.isDebug||t.hydrateServerSide?Ct(o):I.createTextNode("")}else{if(t.svg&&!st){st=o.U==="svg"}f=o.F=t.svg?I.createElementNS(st?re:oe,!et&&t.slotRelocation&&o.i&2?"slot-fb":o.U):I.createElement(!et&&t.slotRelocation&&o.i&2?"slot-fb":o.U);if(t.svg&&st&&o.U==="foreignObject"){st=false}if(t.vdomAttribute){qe(null,o,st)}const n=f.getRootNode();const s=!n.querySelector("body");if(!s&&t.scoped&&le(Ge)&&f["s-si"]!==Ge){f.classList.add(f["s-si"]=Ge)}if(t.scoped){wt(f,i)}if(o.N){for(l=0;l<o.N.length;++l){a=it(e,o,l,f);if(a){f.appendChild(a)}}}if(t.svg){if(o.U==="svg"){st=false}else if(f.tagName==="foreignObject"){st=true}}}f["s-hn"]=Ze;if(t.slotRelocation){if(o.i&(2|1)){f["s-sr"]=true;f["s-cr"]=Ke;f["s-sn"]=o.P||"";f["s-rf"]=(r=o.A)==null?void 0:r.ref;c=e&&e.N&&e.N[s];if(c&&c.U===o.U&&e.F){if(t.experimentalSlotFixes){rt(e.F)}else{ot(e.F,false)}}}}return f};var rt=e=>{H.i|=1;const t=e.closest(Ze.toLowerCase());if(t!=null){const n=Array.from(t.childNodes).find((e=>e["s-cr"]));const s=Array.from(e.childNodes);for(const e of n?s.reverse():s){if(e["s-sh"]!=null){bt(t,e,n!=null?n:null);e["s-sh"]=void 0;nt=true}}}H.i&=~1};var ot=(e,n)=>{H.i|=1;const s=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===Ze){s.push(t)}}}for(let e=s.length-1;e>=0;e--){const t=s[e];if(t["s-hn"]!==Ze&&t["s-ol"]){bt(dt(t),t,ut(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;nt=true}if(n){ot(t,n)}}H.i&=~1};var lt=(e,n,s,i,r,o)=>{let l=t.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;let f;if(t.shadowDom&&l.shadowRoot&&l.tagName===Ze){l=l.shadowRoot}for(;r<=o;++r){if(i[r]){f=it(null,s,r,e);if(f){i[r].F=f;bt(l,f,t.slotRelocation?ut(n):n)}}}};var ft=(e,n,s)=>{for(let i=n;i<=s;++i){const n=e[i];if(n){const e=n.F;yt(n);if(e){if(t.slotRelocation){tt=true;if(e["s-ol"]){e["s-ol"].remove()}else{ot(e,true)}}e.remove()}}}};var at=(e,n,s,i,r=false)=>{let o=0;let l=0;let f=0;let a=0;let c=n.length-1;let u=n[0];let d=n[c];let v=i.length-1;let h=i[0];let p=i[v];let m;let $;while(o<=c&&l<=v){if(u==null){u=n[++o]}else if(d==null){d=n[--c]}else if(h==null){h=i[++l]}else if(p==null){p=i[--v]}else if(ct(u,h,r)){vt(u,h,r);u=n[++o];h=i[++l]}else if(ct(d,p,r)){vt(d,p,r);d=n[--c];p=i[--v]}else if(ct(u,p,r)){if(t.slotRelocation&&(u.U==="slot"||p.U==="slot")){ot(u.F.parentNode,false)}vt(u,p,r);bt(e,u.F,d.F.nextSibling);u=n[++o];p=i[--v]}else if(ct(d,h,r)){if(t.slotRelocation&&(u.U==="slot"||p.U==="slot")){ot(d.F.parentNode,false)}vt(d,h,r);bt(e,d.F,u.F);d=n[--c];h=i[++l]}else{f=-1;if(t.vdomKey){for(a=o;a<=c;++a){if(n[a]&&n[a].I!==null&&n[a].I===h.I){f=a;break}}}if(t.vdomKey&&f>=0){$=n[f];if($.U!==h.U){m=it(n&&n[l],s,f,e)}else{vt($,h,r);n[f]=void 0;m=$.F}h=i[++l]}else{m=it(n&&n[l],s,l,e);h=i[++l]}if(m){if(t.slotRelocation){bt(dt(u.F),m,ut(u.F))}else{bt(u.F.parentNode,m,u.F)}}}}if(o>c){lt(e,i[v+1]==null?null:i[v+1].F,s,i,l,v)}else if(t.updatable&&l>v){ft(n,o,c)}};var ct=(e,n,s=false)=>{if(e.U===n.U){if(t.slotRelocation&&e.U==="slot"){if("V"in e&&s&&e.F.nodeType!==8){return false}return e.P===n.P}if(t.vdomKey&&!s){return e.I===n.I}return true}return false};var ut=e=>e&&e["s-ol"]||e;var dt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var vt=(e,n,s=false)=>{const i=n.F=e.F;const r=e.N;const o=n.N;const l=n.U;const f=n.M;let a;if(!t.vdomText||f===null){if(t.svg){st=l==="svg"?true:l==="foreignObject"?false:st}if(t.vdomAttribute||t.reflect){if(t.slot&&l==="slot"&&!et){if(t.experimentalSlotFixes&&e.P!==n.P){n.F["s-sn"]=n.P||"";rt(n.F.parentElement)}}else{qe(e,n,st)}}if(t.updatable&&r!==null&&o!==null){at(i,r,n,o,s)}else if(o!==null){if(t.updatable&&t.vdomText&&e.M!==null){i.textContent=""}lt(i,null,n,o,0,o.length-1)}else if(!s&&t.updatable&&r!==null){ft(r,0,r.length-1)}if(t.svg&&st&&l==="svg"){st=false}}else if(t.vdomText&&t.slotRelocation&&(a=i["s-cr"])){a.parentNode.textContent=f}else if(t.vdomText&&e.M!==f){i.data=f}};var ht=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const s of t){if(s!==e){if(s["s-hn"]!==e["s-hn"]||n!==""){if(s.nodeType===1&&(n===s.getAttribute("slot")||n===s["s-sn"])||s.nodeType===3&&n===s["s-sn"]){e.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){e.hidden=true;break}}}}}ht(e)}}};var pt=[];var mt=e=>{let n;let s;let i;for(const r of e.childNodes){if(r["s-sr"]&&(n=r["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;const e=r["s-sn"];for(i=s.length-1;i>=0;i--){n=s[i];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==r["s-hn"]&&(!t.experimentalSlotFixes||!n["s-sh"]||n["s-sh"]!==r["s-hn"])){if($t(n,e)){let t=pt.find((e=>e.q===n));tt=true;n["s-sn"]=n["s-sn"]||e;if(t){t.q["s-sh"]=r["s-hn"];t.Y=r}else{n["s-sh"]=r["s-hn"];pt.push({Y:r,q:n})}if(n["s-sr"]){pt.map((e=>{if($t(e.q,n["s-sn"])){t=pt.find((e=>e.q===n));if(t&&!e.Y){e.Y=t.Y}}}))}}else if(!pt.some((e=>e.q===n))){pt.push({q:n})}}}}if(r.nodeType===1){mt(r)}}};var $t=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var yt=e=>{if(t.vdomRef){e.A&&e.A.ref&&e.A.ref(null);e.N&&e.N.map(yt)}};var bt=(e,n,s)=>{const i=e==null?void 0:e.insertBefore(n,s);if(t.scoped){wt(n,e)}return i};var gt=e=>{const t=[];if(e){t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...gt(e.parentElement))}return t};var wt=(e,t,n=false)=>{var s;if(e&&t&&e.nodeType===1){const i=new Set(gt(t).filter(Boolean));if(i.size){(s=e.classList)==null?void 0:s.add(...e["s-scs"]=[...i]);if(e["s-ol"]||n){for(const t of Array.from(e.childNodes)){wt(t,e,true)}}}}};var St=(e,n,s=false)=>{var i,r,o,l,f;const a=e.$hostElement$;const c=e.o;const u=e.R||Se(null,null);const d=ke(n)?n:we(null,null,n);Ze=a.tagName;if(t.isDev&&Array.isArray(n)&&n.some(ke)){throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${Ze.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `)}if(t.reflect&&c.G){d.A=d.A||{};c.G.map((([e,t])=>d.A[t]=a[e]))}if(s&&d.A){for(const e of Object.keys(d.A)){if(a.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){d.A[e]=a[e]}}}d.U=null;d.i|=4;e.R=d;d.F=u.F=t.shadowDom?a.shadowRoot||a:a;if(t.scoped||t.shadowDom){Ge=a["s-sc"]}et=F&&(c.i&1)!==0;if(t.slotRelocation){Ke=a["s-cr"];tt=false}vt(u,d,s);if(t.slotRelocation){H.i|=1;if(nt){mt(d.F);for(const e of pt){const n=e.q;if(!n["s-ol"]){const e=t.isDebug||t.hydrateServerSide?kt(n):I.createTextNode("");e["s-nr"]=n;bt(n.parentNode,n["s-ol"]=e,n)}}for(const e of pt){const n=e.q;const f=e.Y;if(f){const e=f.parentNode;let s=f.nextSibling;if(!t.experimentalSlotFixes||s&&s.nodeType===1){let t=(i=n["s-ol"])==null?void 0:i.previousSibling;while(t){let i=(r=t["s-nr"])!=null?r:null;if(i&&i["s-sn"]===n["s-sn"]&&e===i.parentNode){i=i.nextSibling;while(i===n||(i==null?void 0:i["s-sr"])){i=i==null?void 0:i.nextSibling}if(!i||!i["s-nr"]){s=i;break}}t=t.previousSibling}}if(!s&&e!==n.parentNode||n.nextSibling!==s){if(n!==s){if(!t.experimentalSlotFixes&&!n["s-hn"]&&n["s-ol"]){n["s-hn"]=n["s-ol"].parentNode.nodeName}bt(e,n,s);if(n.nodeType===1){n.hidden=(o=n["s-ih"])!=null?o:false}}}n&&typeof f["s-rf"]==="function"&&f["s-rf"](n)}else{if(n.nodeType===1){if(s){n["s-ih"]=(l=n.hidden)!=null?l:false}n.hidden=true}}}}if(tt){ht(d.F)}H.i&=~1;pt.length=0}if(t.experimentalScopedSlotChanges&&c.i&2){for(const e of d.F.childNodes){if(e["s-hn"]!==Ze&&!e["s-sh"]){if(s&&e["s-ih"]==null){e["s-ih"]=(f=e.hidden)!=null?f:false}e.hidden=true}}}Ke=void 0};var Ct=e=>I.createComment(`<slot${e.P?' name="'+e.P+'"':""}> (host=${Ze.toLowerCase()})`);var kt=e=>I.createComment(`org-location for `+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`));var xt=(e,n)=>{if(t.asyncLoading&&n&&!e.T&&n["s-p"]){n["s-p"].push(new Promise((t=>e.T=t)))}};var Et=(e,n)=>{if(t.taskQueue&&t.updatable){e.i|=16}if(t.asyncLoading&&e.i&4){e.i|=512;return}xt(e,e.O);const s=()=>jt(e,n);return t.taskQueue?te(s):s()};var jt=(e,n)=>{const s=e.$hostElement$;const i=$e("scheduleUpdate",e.o.S);const r=t.lazyLoad?e.t:s;if(!r){throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let o;if(n){if(t.lazyLoad&&t.hostListener){e.i|=256;if(e.L){e.L.map((([e,t])=>Pt(r,e,t)));e.L=void 0}}Ht(s,"componentWillLoad");if(t.cmpWillLoad){o=Pt(r,"componentWillLoad")}}else{Ht(s,"componentWillUpdate");if(t.cmpWillUpdate){o=Pt(r,"componentWillUpdate")}}Ht(s,"componentWillRender");if(t.cmpWillRender){o=Ot(o,(()=>Pt(r,"componentWillRender")))}i();return Ot(o,(()=>Tt(e,r,n)))};var Ot=(e,t)=>Rt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Rt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Tt=async(e,n,s)=>{var i;const r=e.$hostElement$;const o=$e("update",e.o.S);const l=r["s-rc"];if(t.style&&s){_e(e)}const f=$e("render",e.o.S);if(t.isDev){e.i|=1024}if(t.hydrateServerSide){await Dt(e,n,r,s)}else{Dt(e,n,r,s)}if(t.isDev){e.u=e.u===void 0?1:e.u+1;e.i&=~1024}if(t.hydrateServerSide){try{Ft(r);if(s){if(e.o.i&1){r["s-en"]=""}else if(e.o.i&2){r["s-en"]="c"}}}catch(e){d(e,r)}}if(t.asyncLoading&&l){l.map((e=>e()));r["s-rc"]=void 0}f();o();if(t.asyncLoading){const t=(i=r["s-p"])!=null?i:[];const n=()=>At(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.i|=4;t.length=0}}else{At(e)}};var Lt=null;var Dt=(e,n,s,i)=>{const r=t.allRenderFn?true:false;const o=t.lazyLoad?true:false;const l=t.taskQueue?true:false;const f=t.updatable?true:false;try{Lt=n;n=r?n.render():n.render&&n.render();if(f&&l){e.i&=~16}if(f||o){e.i|=2}if(t.hasRenderFn||t.reflect){if(t.vdomRender||t.reflect){if(t.hydrateServerSide){return Promise.resolve(n).then((t=>St(e,t,i)))}else{St(e,n,i)}}else{const t=s.shadowRoot;if(e.o.i&1){t.textContent=n}else{s.textContent=n}}}}catch(t){d(t,e.$hostElement$)}Lt=null;return null};var Mt=()=>Lt;var At=e=>{const n=e.o.S;const s=e.$hostElement$;const i=$e("postUpdate",n);const r=t.lazyLoad?e.t:s;const o=e.O;if(t.cmpDidRender){if(t.isDev){e.i|=1024}Pt(r,"componentDidRender");if(t.isDev){e.i&=~1024}}Ht(s,"componentDidRender");if(!(e.i&64)){e.i|=64;if(t.asyncLoading&&t.cssAnnotations){Ut(s)}if(t.cmpDidLoad){if(t.isDev){e.i|=2048}Pt(r,"componentDidLoad");if(t.isDev){e.i&=~2048}}Ht(s,"componentDidLoad");i();if(t.asyncLoading){e.$(s);if(!o){It(n)}}}else{if(t.cmpDidUpdate){if(t.isDev){e.i|=1024}Pt(r,"componentDidUpdate");if(t.isDev){e.i&=~1024}}Ht(s,"componentDidUpdate");i()}if(t.method&&t.lazyLoad){e.p(s)}if(t.asyncLoading){if(e.T){e.T();e.T=void 0}if(e.i&512){Z((()=>Et(e,false)))}e.i&=~(4|512)}};var Nt=e=>{if(t.updatable&&(r.isBrowser||r.isTesting)){const t=l(e);const n=t.$hostElement$.isConnected;if(n&&(t.i&(2|16))===2){Et(t,false)}return n}return false};var It=n=>{if(t.cssAnnotations){Ut(I.documentElement)}if(t.asyncQueue){H.i|=2}Z((()=>He(N,"appload",{detail:{namespace:e}})));if(t.profile&&performance.measure){performance.measure(`[Stencil] ${e} initial load (by ${n})`,"st:app:start")}};var Pt=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){d(e)}}return void 0};var Ht=(n,s)=>{if(t.lifecycleDOMEvents){He(n,"stencil_"+s,{bubbles:true,composed:true,detail:{namespace:e}})}};var Ut=e=>{var n,s;return t.hydratedClass?e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated"):t.hydratedAttribute?e.setAttribute((s=t.hydratedSelectorName)!=null?s:"hydrated",""):void 0};var Ft=e=>{const t=e.children;if(t!=null){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(typeof n.connectedCallback==="function"){n.connectedCallback()}Ft(n)}}};var Wt=(e,t)=>l(e).l.get(t);var _t=(e,n,s,i)=>{const r=l(e);if(t.lazyLoad&&!r){throw new Error(`Couldn't find host element for "${i.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const o=t.lazyLoad?r.$hostElement$:e;const f=r.l.get(n);const a=r.i;const c=t.lazyLoad?r.t:o;s=Ne(s,i.K[n][0]);const u=Number.isNaN(f)&&Number.isNaN(s);const v=s!==f&&!u;if((!t.lazyLoad||!(a&8)||f===void 0)&&v){r.l.set(n,s);if(t.isDev){if(r.i&1024){p(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",s,"\nOld value",f)}else if(r.i&2048){p(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",s,"\nOld value",f)}}if(!t.lazyLoad||c){if(t.watchCallback&&i.Z&&a&128){const e=i.Z[n];if(e){e.map((e=>{try{c[e](s,f,n)}catch(e){d(e,o)}}))}}if(t.updatable&&(a&(2|16))===2){if(t.cmpShouldUpdate&&c.componentShouldUpdate){if(c.componentShouldUpdate(s,f,n)===false){return}}Et(r,false)}}}};var zt=(e,n,s)=>{var i,r;const o=e.prototype;if(t.formAssociated&&n.i&64&&s&1){A.forEach((e=>Object.defineProperty(o,e,{value(...n){const s=l(this);const i=t.lazyLoad?s.$hostElement$:this;const r=t.lazyLoad?s.t:i;if(!r){s.m.then((t=>{const s=t[e];typeof s==="function"&&s.call(t,...n)}))}else{const t=r[e];typeof t==="function"&&t.call(r,...n)}}})))}if(t.member&&n.K||t.watchCallback&&(n.Z||e.watchers)){if(t.watchCallback&&e.watchers&&!n.Z){n.Z=e.watchers}const f=Object.entries((i=n.K)!=null?i:{});f.map((([e,[i]])=>{if((t.prop||t.state)&&(i&31||(!t.lazyLoad||s&2)&&i&32)){Object.defineProperty(o,e,{get(){return Wt(this,e)},set(r){if(t.isDev){const t=l(this);if((s&1)===0&&(t&&t.i&8)===0&&(i&31)!==0&&(i&1024)===0){p(`@Prop() "${e}" on <${n.S}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}}_t(this,e,r,n)},configurable:true,enumerable:true})}else if(t.lazyLoad&&t.method&&s&1&&i&64){Object.defineProperty(o,e,{value(...t){var n;const s=l(this);return(n=s==null?void 0:s.v)==null?void 0:n.then((()=>{var n;return(n=s.t)==null?void 0:n[e](...t)}))}})}}));if(t.observeAttribute&&(!t.lazyLoad||s&1)){const s=new Map;o.attributeChangedCallback=function(e,i,r){H.jmp((()=>{var f;const a=s.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const s=l(this);const o=s==null?void 0:s.i;if(o&&!(o&8)&&o&128&&r!==i){const o=t.lazyLoad?s.$hostElement$:this;const l=t.lazyLoad?s.t:o;const a=(f=n.Z)==null?void 0:f[e];a==null?void 0:a.forEach((t=>{if(l[t]!=null){l[t].call(l,r,i,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=n.Z)!=null?r:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,i])=>{var r;const o=i[1]||e;s.set(o,e);if(t.reflect&&i[0]&512){(r=n.G)==null?void 0:r.push([e,o])}return o}))]))}}return e};var Vt=async(e,n,s,i)=>{let r;if((n.i&32)===0){n.i|=32;const o=s.C;if((t.lazyLoad||t.hydrateClientSide)&&o){const e=b(s,n,i);if(e&&"then"in e){const t=ye(`st:load:${s.S}:${n.k}`,`[Stencil] Load module for <${s.S}>`);r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${s.S}#${n.k}" was not found`)}if(t.member&&!r.isProxied){if(t.watchCallback){s.Z=r.watchers}zt(r,s,2);r.isProxied=true}const o=$e("createInstance",s.S);if(t.member){n.i|=8}try{new r(n)}catch(e){d(e)}if(t.member){n.i&=~8}if(t.watchCallback){n.i|=128}o();Bt(n.t)}else{r=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.i|=128))}if(t.style&&r&&r.style){let i;if(typeof r.style==="string"){i=r.style}else if(t.mode&&typeof r.style!=="string"){n.k=De(e);if(n.k){i=r.style[n.k]}if(t.hydrateServerSide&&n.k){e.setAttribute("s-mode",n.k)}}const o=ze(s,n.k);if(!g.has(o)){const e=$e("registerStyles",s.S);if(!t.hydrateServerSide&&t.shadowDom&&t.shadowDomShim&&s.i&8){i=await import("./p-18f8d210.js").then((e=>e.scopeCss(i,o)))}Fe(o,i,!!(s.i&1));e()}}}const o=n.O;const l=()=>Et(n,true);if(t.asyncLoading&&o&&o["s-rc"]){o["s-rc"].push(l)}else{l()}};var Bt=e=>{if(t.lazyLoad&&t.connectedCallback){Pt(e,"connectedCallback")}};var Xt=e=>{if((H.i&1)===0){const n=l(e);const s=n.o;const i=$e("connectedCallback",s.S);if(t.hostListenerTargetParent){yn(e,n,s.ee,true)}if(!(n.i&1)){n.i|=1;let i;if(t.hydrateClientSide){i=e.getAttribute(E);if(i){if(t.shadowDom&&F&&s.i&1){const n=t.mode?We(e.shadowRoot,s,e.getAttribute("s-mode")):We(e.shadowRoot,s);e.classList.remove(n+"-h",n+"-s")}Re(e,s.S,i,n)}}if(t.slotRelocation&&!i){if(t.hydrateServerSide||(t.slot||t.shadowDom)&&s.i&(4|8)){Jt(e)}}if(t.asyncLoading){let s=e;while(s=s.parentNode||s.host){if(t.hydrateClientSide&&s.nodeType===1&&s.hasAttribute("s-id")&&s["s-p"]||s["s-p"]){xt(n,n.O=s);break}}}if(t.prop&&!t.hydrateServerSide&&s.K){Object.entries(s.K).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}if(t.initializeNextTick){Z((()=>Vt(e,n,s)))}else{Vt(e,n,s)}}else{yn(e,n,s.ee,false);if(n==null?void 0:n.t){Bt(n.t)}else if(n==null?void 0:n.m){n.m.then((()=>Bt(n.t)))}}i()}};var Jt=e=>{const n=e["s-cr"]=I.createComment(t.isDebug?`content-ref (host=${e.localName})`:"");n["s-cn"]=true;bt(e,n,e.firstChild)};var Qt=e=>{if(t.lazyLoad&&t.disconnectedCallback){Pt(e,"disconnectedCallback")}if(t.cmpDidUnload){Pt(e,"componentDidUnload")}};var qt=async e=>{if((H.i&1)===0){const n=l(e);if(t.hostListener){if(n.D){n.D.map((e=>e()));n.D=void 0}}if(!t.lazyLoad){Qt(e)}else if(n==null?void 0:n.t){Qt(n.t)}else if(n==null?void 0:n.m){n.m.then((()=>Qt(n.t)))}}};var Yt=(e,t)=>{Gt(e);Kt(e);tn(e);en(e);rn(e);nn(e);sn(e);on(e);ln(e,t);Zt(e)};var Gt=e=>{const n=e.cloneNode;e.cloneNode=function(e){const s=this;const i=t.shadowDom?s.shadowRoot&&F:false;const r=n.call(s,i?e:false);if(t.slot&&!i&&e){let e=0;let n,i;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];for(;e<s.childNodes.length;e++){n=s.childNodes[e]["s-nr"];i=o.every((t=>!s.childNodes[e][t]));if(n){if(t.appendChildSlotFix&&r.__appendChild){r.__appendChild(n.cloneNode(true))}else{r.appendChild(n.cloneNode(true))}}if(i){r.appendChild(s.childNodes[e].cloneNode(true))}}}return r}};var Kt=e=>{e.__appendChild=e.appendChild;e.appendChild=function(e){const t=e["s-sn"]=an(e);const n=cn(this.childNodes,t,this.tagName);if(n){const s=document.createTextNode("");s["s-nr"]=e;n["s-cr"].parentNode.__appendChild(s);e["s-ol"]=s;e["s-sh"]=n["s-hn"];const i=un(n,t);const r=i[i.length-1];const o=bt(r.parentNode,e,r.nextSibling);ht(this);return o}return this.__appendChild(e)}};var Zt=e=>{e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){const t=cn(this.childNodes,e["s-sn"],this.tagName);if(t){const n=un(t,e["s-sn"]);const s=n.find((t=>t===e));if(s){s.remove();ht(this);return}}}return this.__removeChild(e)}};var en=e=>{const t=e.prepend;e.prepend=function(...e){e.forEach((e=>{if(typeof e==="string"){e=this.ownerDocument.createTextNode(e)}const n=e["s-sn"]=an(e);const s=cn(this.childNodes,n,this.tagName);if(s){const t=document.createTextNode("");t["s-nr"]=e;s["s-cr"].parentNode.__appendChild(t);e["s-ol"]=t;e["s-sh"]=s["s-hn"];const i=un(s,n);const r=i[0];return bt(r.parentNode,e,r.nextSibling)}if(e.nodeType===1&&!!e.getAttribute("slot")){e.hidden=true}return t.call(this,e)}))}};var tn=e=>{e.append=function(...e){e.forEach((e=>{if(typeof e==="string"){e=this.ownerDocument.createTextNode(e)}this.appendChild(e)}))}};var nn=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}const s=this.ownerDocument.createElement("_");let i;s.innerHTML=n;if(e==="afterbegin"){while(i=s.firstChild){this.prepend(i)}}else if(e==="beforeend"){while(i=s.firstChild){this.append(i)}}}};var sn=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var rn=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,n)}if(e==="afterbegin"){this.prepend(n);return n}else if(e==="beforeend"){this.append(n);return n}return n}};var on=e=>{const n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",n);if(t.experimentalScopedSlotChanges){Object.defineProperty(e,"textContent",{get(){const e=fn(this.childNodes);const t=e.map((e=>{var t,n;const s=[];let i=e.nextSibling;while(i&&i["s-sn"]===e["s-sn"]){if(i.nodeType===3||i.nodeType===1){s.push((n=(t=i.textContent)==null?void 0:t.trim())!=null?n:"")}i=i.nextSibling}return s.filter((e=>e!=="")).join(" ")})).filter((e=>e!=="")).join(" ");return" "+t+" "},set(e){const t=fn(this.childNodes);t.forEach((t=>{let n=t.nextSibling;while(n&&n["s-sn"]===t["s-sn"]){const e=n;n=n.nextSibling;e.remove()}if(t["s-sn"]===""){const n=this.ownerDocument.createTextNode(e);n["s-sn"]="";bt(t.parentElement,n,t.nextSibling)}else{t.remove()}}))}})}else{Object.defineProperty(e,"textContent",{get(){var e;const t=cn(this.childNodes,"",this.tagName);if(((e=t==null?void 0:t.nextSibling)==null?void 0:e.nodeType)===3){return t.nextSibling.textContent}else if(t){return t.textContent}else{return this.__textContent}},set(e){var t;const n=cn(this.childNodes,"",this.tagName);if(((t=n==null?void 0:n.nextSibling)==null?void 0:t.nodeType)===3){n.nextSibling.textContent=e}else if(n){n.textContent=e}else{this.__textContent=e;const t=this["s-cr"];if(t){bt(this,t,this.firstChild)}}}})}};var ln=(e,t)=>{class n extends Array{item(e){return this[e]}}if(t.i&8){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map((e=>e.nodeType===1))}});Object.defineProperty(e,"childElementCount",{get(){return e.children.length}});Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if((H.i&1)===0&&l(this).i&2){const t=new n;for(let n=0;n<e.length;n++){const s=e[n]["s-nr"];if(s){t.push(s)}}return t}return n.from(e)}})}};var fn=e=>{const t=[];for(const n of Array.from(e)){if(n["s-sr"]){t.push(n)}t.push(...fn(n.childNodes))}return t};var an=e=>e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||"";var cn=(e,t,n)=>{let s=0;let i;for(;s<e.length;s++){i=e[s];if(i["s-sr"]&&i["s-sn"]===t&&i["s-hn"]===n){return i}i=cn(i.childNodes,t,n);if(i){return i}}return null};var un=(e,t)=>{const n=[e];while((e=e.nextSibling)&&e["s-sn"]===t){n.push(e)}return n};var dn=(e,t)=>{customElements.define(t[1],vn(e,t))};var vn=(e,n)=>{const s={i:n[0],S:n[1]};if(t.member){s.K=n[2]}if(t.hostListener){s.ee=n[3]}if(t.watchCallback){s.Z=e.Z}if(t.reflect){s.G=[]}if(t.shadowDom&&!F&&s.i&1){s.i|=8}if(t.experimentalSlotFixes){if(t.scoped&&s.i&2){Yt(e.prototype,s)}}else{if(t.slotChildNodesFix){ln(e.prototype,s)}if(t.cloneNodeFix){Gt(e.prototype)}if(t.appendChildSlotFix){Kt(e.prototype)}if(t.scopedSlotTextContentFix&&s.i&2){on(e.prototype)}}const i=e.prototype.connectedCallback;const r=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost(){a(this,s)},connectedCallback(){const e=l(this);yn(this,e,s.ee,false);Xt(this);if(t.connectedCallback&&i){i.call(this)}},disconnectedCallback(){qt(this);if(t.disconnectedCallback&&r){r.call(this)}},__attachShadow(){if(F){if(!this.shadowRoot){if(t.shadowDelegatesFocus){this.attachShadow({mode:"open",delegatesFocus:!!(s.i&16)})}else{this.attachShadow({mode:"open"})}}else{if(this.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${s.S}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}else{this.shadowRoot=this}}});e.is=s.S;return zt(e,s,1|2)};var hn=e=>{if(t.style&&t.mode&&!t.lazyLoad){const t=De(e);const n=l(e);if(n.k!==t){const s=n.o;const i=e["s-sc"];const r=ze(s,t);const o=e.constructor.style[t];const l=s.i;if(o){if(!g.has(r)){Fe(r,o,!!(l&1))}n.k=t;e.classList.remove(i+"-h",i+"-s");_e(n);Nt(e)}}}};var pn=(e,t,n)=>{const s=l(e);s.i=1;Vt(e,s,t,n)};var mn=(e,n={})=>{var s;if(t.profile&&performance.mark){performance.mark("st:app:start")}ge();const i=$e("bootstrapLazy");const r=[];const o=n.exclude||[];const f=N.customElements;const c=I.head;const u=c.querySelector("meta[charset]");const d=I.createElement("style");const v=[];let h;let p=true;Object.assign(H,n);H.j=new URL(n.resourcesUrl||"./",I.baseURI).href;if(t.asyncQueue){if(n.syncQueue){H.i|=4}}if(t.hydrateClientSide){H.i|=2}let m=false;e.map((e=>{e[1].map((s=>{var i;const c={i:s[0],S:s[1],K:s[2],ee:s[3]};if(c.i&4){m=true}if(t.member){c.K=s[2]}if(t.hostListener){c.ee=s[3]}if(t.reflect){c.G=[]}if(t.watchCallback){c.Z=(i=s[4])!=null?i:{}}if(t.shadowDom&&!F&&c.i&1){c.i|=8}const u=t.transformTagName&&n.transformTagName?n.transformTagName(c.S):c.S;const d=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;a(e,c);if(t.shadowDom&&c.i&1){if(F){if(!e.shadowRoot){if(t.shadowDelegatesFocus){e.attachShadow({mode:"open",delegatesFocus:!!(c.i&16)})}else{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}else if(!t.hydrateServerSide&&!("shadowRoot"in e)){e.shadowRoot=e}}}connectedCallback(){const e=l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;yn(this,e,c.ee,false)}if(h){clearTimeout(h);h=null}if(p){v.push(this)}else{H.jmp((()=>Xt(this)))}}disconnectedCallback(){H.jmp((()=>qt(this)))}componentOnReady(){return l(this).m}};if(t.experimentalSlotFixes){if(t.scoped&&c.i&2){Yt(d.prototype,c)}}else{if(t.slotChildNodesFix){ln(d.prototype,c)}if(t.cloneNodeFix){Gt(d.prototype)}if(t.appendChildSlotFix){Kt(d.prototype)}if(t.scopedSlotTextContentFix&&c.i&2){on(d.prototype)}}if(t.formAssociated&&c.i&64){d.formAssociated=true}if(t.hotModuleReplacement){d.prototype["s-hmr"]=function(e){pn(this,c,e)}}c.C=e[0];if(!o.includes(u)&&!f.get(u)){r.push(u);f.define(u,zt(d,c,1))}}))}));if(r.length>0){if(m){d.textContent+=D}if(t.invisiblePrehydration&&(t.hydratedClass||t.hydratedAttribute)){d.textContent+=r.sort()+R}if(d.innerHTML.length){d.setAttribute("data-styles","");const e=(s=H.J)!=null?s:ae(I);if(e!=null){d.setAttribute("nonce",e)}c.insertBefore(d,u?u.nextSibling:c.firstChild)}}p=false;if(v.length){v.map((e=>e.connectedCallback()))}else{if(t.profile){H.jmp((()=>h=setTimeout(It,30,"timeout")))}else{H.jmp((()=>h=setTimeout(It,30)))}}i()};var $n=(e,t)=>t;var yn=(e,n,s,i)=>{if(t.hostListener&&s){if(t.hostListenerTargetParent){if(i){s=s.filter((([e])=>e&32))}else{s=s.filter((([e])=>!(e&32)))}}s.map((([s,i,r])=>{const o=t.hostListenerTarget?gn(e,s):e;const l=bn(n,r);const f=wn(s);H.ael(o,i,l,f);(n.D=n.D||[]).push((()=>H.rel(o,i,l,f)))}))}};var bn=(e,n)=>s=>{var i;try{if(t.lazyLoad){if(e.i&256){(i=e.t)==null?void 0:i[n](s)}else{(e.L=e.L||[]).push([n,s])}}else{e.$hostElement$[n](s)}}catch(e){d(e)}};var gn=(e,n)=>{if(t.hostListenerTargetDocument&&n&4)return I;if(t.hostListenerTargetWindow&&n&8)return N;if(t.hostListenerTargetBody&&n&16)return I.body;if(t.hostListenerTargetParent&&n&32&&e.parentElement)return e.parentElement;return e};var wn=e=>W?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Sn=e=>H.J=e;var Cn=e=>Object.assign(H,e);var kn=(e,t)=>{if(e!=null){const n=T in e?e[T]:{...L};n.staticComponents=new Set(t);const s=[];xn(e,e.body,n,s);s.forEach((t=>{var s;if(t!=null&&t["s-nr"]){const i=t["s-nr"];let r=i["s-host-id"];let o=i["s-node-id"];let l=`${r}.${o}`;if(r==null){r=0;n.rootLevelIds++;o=n.rootLevelIds;l=`${r}.${o}`;if(i.nodeType===1){i.setAttribute(O,l)}else if(i.nodeType===3){if(r===0){const e=(s=i.nodeValue)==null?void 0:s.trim();if(e===""){t.remove();return}}const n=e.createComment(l);n.nodeValue=`${x}.${l}`;bt(i.parentNode,n,i)}}let f=`${C}.${l}`;const a=t.parentElement;if(a){if(a["s-en"]===""){f+=`.`}else if(a["s-en"]==="c"){f+=`.c`}}t.nodeValue=f}}))}};var xn=(e,t,n,s)=>{var i;if(t==null){return}if(t["s-nr"]!=null){s.push(t)}if(t.nodeType===1){const r=[...Array.from(t.childNodes),...Array.from(((i=t.shadowRoot)==null?void 0:i.childNodes)||[])];r.forEach((t=>{const i=l(t);if(i!=null&&!n.staticComponents.has(t.nodeName.toLowerCase())){const s={nodeIds:0};En(e,t,i.R,n,s)}xn(e,t,n,s)}))}};var En=(e,t,n,s,i)=>{if(n!=null){const r=++s.hostIds;t.setAttribute(E,r);if(t["s-cr"]!=null){t["s-cr"].nodeValue=`${S}.${r}`}if(n.N!=null){const t=0;n.N.forEach(((n,s)=>{jn(e,n,i,r,t,s)}))}if(t&&n&&n.F&&!t.hasAttribute(O)){const e=t.parentElement;if(e&&e.childNodes){const s=Array.from(e.childNodes);const i=s.find((e=>e.nodeType===8&&e["s-sr"]));if(i){const e=s.indexOf(t)-1;n.F.setAttribute(O,`${i["s-host-id"]}.${i["s-node-id"]}.0.${e}`)}}}}};var jn=(e,t,n,s,i,r)=>{const o=t.F;if(o==null){return}const l=n.nodeIds++;const f=`${s}.${l}.${i}.${r}`;o["s-host-id"]=s;o["s-node-id"]=l;if(o.nodeType===1){o.setAttribute(O,f)}else if(o.nodeType===3){const t=o.parentNode;const n=t==null?void 0:t.nodeName;if(n!=="STYLE"&&n!=="SCRIPT"){const n=`${x}.${f}`;const s=e.createComment(n);bt(t,s,o)}}else if(o.nodeType===8){if(o["s-sr"]){const e=o["s-sn"]||"";const t=`${k}.${f}.${e}`;o.nodeValue=t}}if(t.N!=null){const r=i+1;t.N.forEach(((t,i)=>{jn(e,t,n,s,r,i)}))}};const On=Object.freeze({__proto__:null,BUILD:t,Build:r,Env:n,Fragment:$n,H:P,HTMLElement:P,Host:Ce,NAMESPACE:e,STENCIL_DEV_MODE:v,addHostEventListeners:yn,bootstrapLazy:mn,cmpModules:y,connectedCallback:Xt,consoleDevError:h,consoleDevInfo:m,consoleDevWarn:p,consoleError:d,createEvent:Pe,defineCustomElement:dn,disconnectedCallback:qt,doc:I,forceModeUpdate:hn,forceUpdate:Nt,getAssetPath:ne,getElement:Ie,getHostRef:l,getMode:Ae,getRenderingRef:Mt,getValue:Wt,h:we,insertVdomAnnotations:kn,isMemberInElement:c,loadModule:b,modeResolutionChain:w,nextTick:Z,parsePropertyValue:Ne,plt:H,postUpdateComponent:At,promiseResolve:_,proxyComponent:zt,proxyCustomElement:vn,readTask:ee,registerHost:a,registerInstance:f,renderVdom:St,setAssetPath:se,setErrorHandler:$,setMode:Me,setNonce:Sn,setPlatformHelpers:U,setPlatformOptions:Cn,setValue:_t,styles:g,supportsConstructableStylesheets:z,supportsListenerOptions:W,supportsShadow:F,win:N,writeTask:te});export{t as B,$n as F,P as H,e as N,On as S,Pe as a,mn as b,m as c,I as d,ne as e,Ie as g,we as h,_ as p,f as r,Sn as s};
3
+ //# sourceMappingURL=p-f1f5d5bd.js.map