isometrik-plugin-chat-sdk 1.0.8 → 1.3.13

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 (253) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/attachment-preview_22.cjs.entry.js +10 -9
  3. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  4. package/dist/cjs/audio-bubble_4.cjs.entry.js +1 -1
  5. package/dist/cjs/chat-assets-e32e80c0.js +73 -0
  6. package/dist/cjs/chat-assets-e32e80c0.js.map +1 -0
  7. package/dist/cjs/chat-tile_3.cjs.entry.js +1 -1
  8. package/dist/cjs/forward-memebers.cjs.entry.js +1 -1
  9. package/dist/cjs/isometrik-webchat.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/login-page_3.cjs.entry.js +23 -13
  12. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/member-add.cjs.entry.js +1 -1
  14. package/dist/cjs/new-chat-sidebar.cjs.entry.js +1 -1
  15. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +6 -7
  16. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  17. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +12 -12
  18. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  19. package/dist/collection/components/my-component/web-chat/WebChat.js +39 -6
  20. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  21. package/dist/collection/components/my-component/web-chat/shell-render.js +4 -2
  22. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  23. package/dist/collection/components/theme-provider.js +9 -9
  24. package/dist/collection/components/theme-provider.js.map +1 -1
  25. package/dist/collection/constants/chat-assets.js +39 -123
  26. package/dist/components/ChatSidebar.js +2 -2
  27. package/dist/components/ChatSidebar.js.map +1 -1
  28. package/dist/components/WebChat.js +15 -4
  29. package/dist/components/WebChat.js.map +1 -1
  30. package/dist/components/WebChatBody.js +9 -8
  31. package/dist/components/WebChatBody.js.map +1 -1
  32. package/dist/components/chat-assets.js +34 -82
  33. package/dist/components/chat-assets.js.map +1 -1
  34. package/dist/components/theme-provider2.js +9 -9
  35. package/dist/components/theme-provider2.js.map +1 -1
  36. package/dist/esm/attachment-preview_22.entry.js +10 -9
  37. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  38. package/dist/esm/audio-bubble_4.entry.js +1 -1
  39. package/dist/esm/chat-assets-4dfb1106.js +38 -0
  40. package/dist/esm/chat-assets-4dfb1106.js.map +1 -0
  41. package/dist/esm/chat-tile_3.entry.js +1 -1
  42. package/dist/esm/forward-memebers.entry.js +1 -1
  43. package/dist/esm/isometrik-webchat.js +1 -1
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/login-page_3.entry.js +23 -13
  46. package/dist/esm/login-page_3.entry.js.map +1 -1
  47. package/dist/esm/member-add.entry.js +1 -1
  48. package/dist/esm/new-chat-sidebar.entry.js +1 -1
  49. package/dist/isometrik-webchat/isometrik-webchat.css +1 -1
  50. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  51. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  52. package/dist/isometrik-webchat/{p-188b2631.entry.js → p-0085b397.entry.js} +2 -2
  53. package/dist/isometrik-webchat/{p-ab5e1e85.entry.js → p-1ad1127f.entry.js} +2 -2
  54. package/dist/isometrik-webchat/p-6d9f8cec.entry.js +2 -0
  55. package/dist/isometrik-webchat/p-6d9f8cec.entry.js.map +1 -0
  56. package/dist/isometrik-webchat/{p-b44f0bd1.entry.js → p-6ec350aa.entry.js} +2 -2
  57. package/dist/isometrik-webchat/p-6ffeb379.entry.js +2 -0
  58. package/dist/isometrik-webchat/p-6ffeb379.entry.js.map +1 -0
  59. package/dist/isometrik-webchat/{p-e589ff24.entry.js → p-71cc96a3.entry.js} +2 -2
  60. package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js → p-b8cef5e4.entry.js} +2 -2
  61. package/dist/isometrik-webchat/p-d424871c.js +2 -0
  62. package/dist/isometrik-webchat/p-d424871c.js.map +1 -0
  63. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -1
  64. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +2 -2
  65. package/dist/types/components/theme-provider.d.ts +3 -2
  66. package/dist/types/components.d.ts +26 -8
  67. package/package.json +53 -10
  68. package/readme.md +428 -0
  69. package/dist/cjs/chat-assets-ff067e4d.js +0 -121
  70. package/dist/cjs/chat-assets-ff067e4d.js.map +0 -1
  71. package/dist/collection/assets/ExcelDocument.js +0 -2
  72. package/dist/collection/assets/IsometrikLogo.js +0 -38
  73. package/dist/collection/assets/Moon.svg +0 -1
  74. package/dist/collection/assets/New-Chat.svg +0 -5
  75. package/dist/collection/assets/NoChatPlaceholder.js +0 -16
  76. package/dist/collection/assets/NoContactsPlaceholder.js +0 -9
  77. package/dist/collection/assets/NoMessagePlaceholder.svg +0 -13
  78. package/dist/collection/assets/PdfDocument.js +0 -2
  79. package/dist/collection/assets/ProfilePlaceholder.js +0 -1
  80. package/dist/collection/assets/SelectChatPlaceholder.js +0 -13
  81. package/dist/collection/assets/Sun.svg +0 -1
  82. package/dist/collection/assets/add-user.svg +0 -6
  83. package/dist/collection/assets/attachment.svg +0 -4
  84. package/dist/collection/assets/avatar.svg +0 -1
  85. package/dist/collection/assets/block-user.svg +0 -4
  86. package/dist/collection/assets/camera-add.svg +0 -4
  87. package/dist/collection/assets/camera.svg +0 -17
  88. package/dist/collection/assets/cancel.svg +0 -12
  89. package/dist/collection/assets/chatBG.png +0 -0
  90. package/dist/collection/assets/chatdefaultbg.svg +0 -6140
  91. package/dist/collection/assets/clear-chat.svg +0 -4
  92. package/dist/collection/assets/close.svg +0 -4
  93. package/dist/collection/assets/dark-theme.svg +0 -12
  94. package/dist/collection/assets/delete.svg +0 -8
  95. package/dist/collection/assets/doc.png +0 -0
  96. package/dist/collection/assets/documents.svg +0 -15
  97. package/dist/collection/assets/doublecheck.svg +0 -1
  98. package/dist/collection/assets/download.svg +0 -4
  99. package/dist/collection/assets/drop-down.svg +0 -5
  100. package/dist/collection/assets/edit.svg +0 -4
  101. package/dist/collection/assets/equalizer.svg +0 -1
  102. package/dist/collection/assets/excel.svg +0 -2
  103. package/dist/collection/assets/forward.svg +0 -4
  104. package/dist/collection/assets/group-cast.svg +0 -1
  105. package/dist/collection/assets/group.svg +0 -13
  106. package/dist/collection/assets/imagePlaceholder.png +0 -0
  107. package/dist/collection/assets/imagePlaceholder.svg +0 -2
  108. package/dist/collection/assets/info.svg +0 -4
  109. package/dist/collection/assets/left-arrow.svg +0 -4
  110. package/dist/collection/assets/link.svg +0 -1
  111. package/dist/collection/assets/login.svg +0 -3051
  112. package/dist/collection/assets/logout.svg +0 -5
  113. package/dist/collection/assets/message-outline.svg +0 -5
  114. package/dist/collection/assets/message.svg +0 -1
  115. package/dist/collection/assets/microphone.svg +0 -2
  116. package/dist/collection/assets/new_group.svg +0 -9
  117. package/dist/collection/assets/odt-file.png +0 -0
  118. package/dist/collection/assets/onboarding.webp +0 -0
  119. package/dist/collection/assets/paper.svg +0 -5
  120. package/dist/collection/assets/pause.svg +0 -4
  121. package/dist/collection/assets/pdf.svg +0 -11
  122. package/dist/collection/assets/photos.svg +0 -4
  123. package/dist/collection/assets/play.svg +0 -19
  124. package/dist/collection/assets/profilePlaceholderImage.png +0 -0
  125. package/dist/collection/assets/reply.svg +0 -4
  126. package/dist/collection/assets/rtf.png +0 -0
  127. package/dist/collection/assets/search.svg +0 -4
  128. package/dist/collection/assets/send.svg +0 -4
  129. package/dist/collection/assets/singlecheck.svg +0 -1
  130. package/dist/collection/assets/smile.svg +0 -2
  131. package/dist/collection/assets/three-dots.svg +0 -5
  132. package/dist/collection/assets/txt.png +0 -0
  133. package/dist/collection/assets/videoPlaceholder.svg +0 -4
  134. package/dist/collection/assets/videoThumbnail.svg +0 -1
  135. package/dist/collection/components/ChatUIComponent/AudioBubble.js +0 -315
  136. package/dist/collection/components/ChatUIComponent/BlockChatList.js +0 -177
  137. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +0 -152
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js +0 -461
  139. package/dist/collection/components/ChatUIComponent/shared/attachment-preview.js +0 -230
  140. package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder.js +0 -70
  141. package/dist/collection/components/ChatUIComponent/shared/confirm-dialog.js +0 -51
  142. package/dist/collection/components/ChatUIComponent/shared/contact-info.js +0 -255
  143. package/dist/collection/components/ChatUIComponent/shared/context-menu.js +0 -112
  144. package/dist/collection/components/ChatUIComponent/shared/delete-message.js +0 -49
  145. package/dist/collection/components/ChatUIComponent/shared/document-message.js +0 -161
  146. package/dist/collection/components/ChatUIComponent/shared/forward-message.js +0 -139
  147. package/dist/collection/components/ChatUIComponent/shared/group-chat-contacts.js +0 -201
  148. package/dist/collection/components/ChatUIComponent/shared/group-info.js +0 -170
  149. package/dist/collection/components/ChatUIComponent/shared/image-message.js +0 -156
  150. package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble.js +0 -98
  151. package/dist/collection/components/ChatUIComponent/shared/link-preview.js +0 -125
  152. package/dist/collection/components/ChatUIComponent/shared/media-gallery.js +0 -152
  153. package/dist/collection/components/ChatUIComponent/shared/message-body-render.js +0 -19
  154. package/dist/collection/components/ChatUIComponent/shared/message-bubble.js +0 -189
  155. package/dist/collection/components/ChatUIComponent/shared/message-date-pill.js +0 -86
  156. package/dist/collection/components/ChatUIComponent/shared/message-info.js +0 -188
  157. package/dist/collection/components/ChatUIComponent/shared/message-search.js +0 -125
  158. package/dist/collection/components/ChatUIComponent/shared/new-chat-sidebar.js +0 -181
  159. package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble.js +0 -98
  160. package/dist/collection/components/ChatUIComponent/shared/profile-avatar.js +0 -136
  161. package/dist/collection/components/ChatUIComponent/shared/profile-info.js +0 -220
  162. package/dist/collection/components/ChatUIComponent/shared/reply-block.js +0 -162
  163. package/dist/collection/components/ChatUIComponent/shared/reply-message-container.js +0 -193
  164. package/dist/collection/components/ChatUIComponent/shared/share-popup.js +0 -69
  165. package/dist/collection/components/ChatUIComponent/shared/spinner-loader.js +0 -74
  166. package/dist/collection/components/ChatUIComponent/shared/toast-notification.js +0 -106
  167. package/dist/collection/components/ChatUIComponent/shared/video-message.js +0 -165
  168. package/dist/collection/components/my-component/my-component.e2e.js +0 -25
  169. package/dist/collection/components/my-component/my-component.spec.js +0 -34
  170. package/dist/collection/components/my-component/web-chat/web-chat-split.spec.js +0 -40
  171. package/dist/collection/lib/chat/chat.spec.js +0 -28
  172. package/dist/collection/lib/custom-ui/custom-ui.spec.js +0 -49
  173. package/dist/collection/lib/message-body-segments.spec.js +0 -21
  174. package/dist/collection/lib/message-dedup.spec.js +0 -17
  175. package/dist/collection/lib/mqtt/mqtt.spec.js +0 -39
  176. package/dist/collection/utils/utils.spec.js +0 -15
  177. package/dist/esm/chat-assets-95633770.js +0 -86
  178. package/dist/esm/chat-assets-95633770.js.map +0 -1
  179. package/dist/isometrik-webchat/assets/ExcelDocument.js +0 -2
  180. package/dist/isometrik-webchat/assets/IsometrikLogo.js +0 -38
  181. package/dist/isometrik-webchat/assets/Moon.svg +0 -1
  182. package/dist/isometrik-webchat/assets/New-Chat.svg +0 -5
  183. package/dist/isometrik-webchat/assets/NoChatPlaceholder.js +0 -16
  184. package/dist/isometrik-webchat/assets/NoContactsPlaceholder.js +0 -9
  185. package/dist/isometrik-webchat/assets/NoMessagePlaceholder.svg +0 -13
  186. package/dist/isometrik-webchat/assets/PdfDocument.js +0 -2
  187. package/dist/isometrik-webchat/assets/ProfilePlaceholder.js +0 -1
  188. package/dist/isometrik-webchat/assets/SelectChatPlaceholder.js +0 -13
  189. package/dist/isometrik-webchat/assets/Sun.svg +0 -1
  190. package/dist/isometrik-webchat/assets/add-user.svg +0 -6
  191. package/dist/isometrik-webchat/assets/attachment.svg +0 -4
  192. package/dist/isometrik-webchat/assets/avatar.svg +0 -1
  193. package/dist/isometrik-webchat/assets/block-user.svg +0 -4
  194. package/dist/isometrik-webchat/assets/camera-add.svg +0 -4
  195. package/dist/isometrik-webchat/assets/camera.svg +0 -17
  196. package/dist/isometrik-webchat/assets/cancel.svg +0 -12
  197. package/dist/isometrik-webchat/assets/chatBG.png +0 -0
  198. package/dist/isometrik-webchat/assets/chatdefaultbg.svg +0 -6140
  199. package/dist/isometrik-webchat/assets/clear-chat.svg +0 -4
  200. package/dist/isometrik-webchat/assets/close.svg +0 -4
  201. package/dist/isometrik-webchat/assets/dark-theme.svg +0 -12
  202. package/dist/isometrik-webchat/assets/delete.svg +0 -8
  203. package/dist/isometrik-webchat/assets/doc.png +0 -0
  204. package/dist/isometrik-webchat/assets/documents.svg +0 -15
  205. package/dist/isometrik-webchat/assets/doublecheck.svg +0 -1
  206. package/dist/isometrik-webchat/assets/download.svg +0 -4
  207. package/dist/isometrik-webchat/assets/drop-down.svg +0 -5
  208. package/dist/isometrik-webchat/assets/edit.svg +0 -4
  209. package/dist/isometrik-webchat/assets/equalizer.svg +0 -1
  210. package/dist/isometrik-webchat/assets/excel.svg +0 -2
  211. package/dist/isometrik-webchat/assets/forward.svg +0 -4
  212. package/dist/isometrik-webchat/assets/group-cast.svg +0 -1
  213. package/dist/isometrik-webchat/assets/group.svg +0 -13
  214. package/dist/isometrik-webchat/assets/imagePlaceholder.png +0 -0
  215. package/dist/isometrik-webchat/assets/imagePlaceholder.svg +0 -2
  216. package/dist/isometrik-webchat/assets/info.svg +0 -4
  217. package/dist/isometrik-webchat/assets/left-arrow.svg +0 -4
  218. package/dist/isometrik-webchat/assets/link.svg +0 -1
  219. package/dist/isometrik-webchat/assets/login.svg +0 -3051
  220. package/dist/isometrik-webchat/assets/logout.svg +0 -5
  221. package/dist/isometrik-webchat/assets/message-outline.svg +0 -5
  222. package/dist/isometrik-webchat/assets/message.svg +0 -1
  223. package/dist/isometrik-webchat/assets/microphone.svg +0 -2
  224. package/dist/isometrik-webchat/assets/new_group.svg +0 -9
  225. package/dist/isometrik-webchat/assets/odt-file.png +0 -0
  226. package/dist/isometrik-webchat/assets/onboarding.webp +0 -0
  227. package/dist/isometrik-webchat/assets/paper.svg +0 -5
  228. package/dist/isometrik-webchat/assets/pause.svg +0 -4
  229. package/dist/isometrik-webchat/assets/pdf.svg +0 -11
  230. package/dist/isometrik-webchat/assets/photos.svg +0 -4
  231. package/dist/isometrik-webchat/assets/play.svg +0 -19
  232. package/dist/isometrik-webchat/assets/profilePlaceholderImage.png +0 -0
  233. package/dist/isometrik-webchat/assets/reply.svg +0 -4
  234. package/dist/isometrik-webchat/assets/rtf.png +0 -0
  235. package/dist/isometrik-webchat/assets/search.svg +0 -4
  236. package/dist/isometrik-webchat/assets/send.svg +0 -4
  237. package/dist/isometrik-webchat/assets/singlecheck.svg +0 -1
  238. package/dist/isometrik-webchat/assets/smile.svg +0 -2
  239. package/dist/isometrik-webchat/assets/three-dots.svg +0 -5
  240. package/dist/isometrik-webchat/assets/txt.png +0 -0
  241. package/dist/isometrik-webchat/assets/videoPlaceholder.svg +0 -4
  242. package/dist/isometrik-webchat/assets/videoThumbnail.svg +0 -1
  243. package/dist/isometrik-webchat/p-4bad6da9.entry.js +0 -2
  244. package/dist/isometrik-webchat/p-4bad6da9.entry.js.map +0 -1
  245. package/dist/isometrik-webchat/p-8c73a5d5.entry.js +0 -2
  246. package/dist/isometrik-webchat/p-8c73a5d5.entry.js.map +0 -1
  247. package/dist/isometrik-webchat/p-d6f0838c.js +0 -2
  248. package/dist/isometrik-webchat/p-d6f0838c.js.map +0 -1
  249. /package/dist/isometrik-webchat/{p-188b2631.entry.js.map → p-0085b397.entry.js.map} +0 -0
  250. /package/dist/isometrik-webchat/{p-ab5e1e85.entry.js.map → p-1ad1127f.entry.js.map} +0 -0
  251. /package/dist/isometrik-webchat/{p-b44f0bd1.entry.js.map → p-6ec350aa.entry.js.map} +0 -0
  252. /package/dist/isometrik-webchat/{p-e589ff24.entry.js.map → p-71cc96a3.entry.js.map} +0 -0
  253. /package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js.map → p-b8cef5e4.entry.js.map} +0 -0
@@ -1,181 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Component, Prop, State, Event, h } from '@stencil/core';
8
- import { generateProfileImageByInitials } from '../../../lib/helpers';
9
- import { WEB_CONTENT } from '../../../constants/content';
10
- import { Group } from '../../../constants/chat-assets';
11
- import './spinner-loader';
12
- import './group-chat-contacts';
13
- let NewChatSidebar = class NewChatSidebar {
14
- constructor() {
15
- this.label = 'New Chat';
16
- this.nonBlockedContacts = [];
17
- this.isNoContactsFound = false;
18
- this.isPaginationMember = false;
19
- this.isLoadingMember = false;
20
- this.hasMoreMembers = false;
21
- this.showGroupChatContacts = false;
22
- this.showGroupCastContacts = false;
23
- this.searchText = '';
24
- this.onSearch = (e) => {
25
- const inputValue = e.target.value;
26
- this.searchText = inputValue;
27
- clearTimeout(this.debounceTimer);
28
- this.debounceTimer = setTimeout(() => {
29
- if (!inputValue.trim() || inputValue.length >= 3) {
30
- this.inputChanged.emit({ inputValue: inputValue.trim() ? inputValue : '' });
31
- }
32
- }, 300);
33
- };
34
- this.onScroll = (e) => {
35
- const el = e.target;
36
- if (el.scrollHeight - Math.round(el.scrollTop) <= el.clientHeight + 1 &&
37
- this.hasMoreMembers &&
38
- !this.isPaginationMember) {
39
- this.scrolledToBottom.emit();
40
- }
41
- };
42
- this.selectContact = (userId, userName) => {
43
- var _a;
44
- this.contactSelected.emit({ userId, userName });
45
- (_a = this.closeNewChatSidebar) === null || _a === void 0 ? void 0 : _a.call(this);
46
- };
47
- this.openGroup = () => {
48
- this.searchText = '';
49
- this.showGroupChatContacts = true;
50
- this.createGroupClicked.emit({ isGroup: true });
51
- };
52
- this.openGroupcast = () => {
53
- this.searchText = '';
54
- this.showGroupCastContacts = true;
55
- this.createGroupcastClicked.emit({ isGroup: true });
56
- };
57
- this.closeGroupOverlay = () => {
58
- this.closeGroupMemberList.emit({ isGroup: false });
59
- this.showGroupChatContacts = false;
60
- this.showGroupCastContacts = false;
61
- };
62
- }
63
- render() {
64
- if (this.showGroupCastContacts) {
65
- return (h("group-chat-contacts", { closeGroupChatContacts: this.closeGroupOverlay, label: "Create New Groupcast", nonBlockedContacts: this.nonBlockedContacts, isNoContactsFound: this.isNoContactsFound, isPaginationMember: this.isPaginationMember, isLoadingMember: this.isLoadingMember, hasMoreMembers: this.hasMoreMembers, isGroupCast: true, onCloseAll: () => { var _a; return (_a = this.closeNewChatSidebar) === null || _a === void 0 ? void 0 : _a.call(this); } }));
66
- }
67
- if (this.showGroupChatContacts) {
68
- return (h("group-chat-contacts", { closeGroupChatContacts: this.closeGroupOverlay, label: "Create New Group", nonBlockedContacts: this.nonBlockedContacts, isNoContactsFound: this.isNoContactsFound, isPaginationMember: this.isPaginationMember, isLoadingMember: this.isLoadingMember, hasMoreMembers: this.hasMoreMembers, onCloseAll: () => { var _a; return (_a = this.closeNewChatSidebar) === null || _a === void 0 ? void 0 : _a.call(this); } }));
69
- }
70
- return (h("div", { class: "wrap" },
71
- h("div", { class: "topbar" },
72
- h("button", { type: "button", onClick: () => { var _a; return (_a = this.closeNewChatSidebar) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" },
73
- h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "0 -960 960 960", width: "24", fill: "currentColor" },
74
- h("path", { d: "m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" }))),
75
- h("span", null, this.label)),
76
- h("div", { class: "search" },
77
- h("input", { type: "search", placeholder: WEB_CONTENT.PLACEHOLDER_CONTENT.SEARCH_FOR_NAME_OR_NUMBER, value: this.searchText, onInput: this.onSearch })),
78
- h("div", { class: "action", onClick: this.openGroup },
79
- h("img", { src: Group, alt: "" }),
80
- h("span", null, "Create New Group")),
81
- h("div", { class: "action", onClick: this.openGroupcast },
82
- h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "28", viewBox: "0 -960 960 960", width: "28", fill: "currentColor" },
83
- h("path", { d: "M720-440v-80h160v80H720Zm48 280-128-96 48-64 128 96-48 64Zm-80-480-48-64 128-96 48 64-128 96ZM200-200v-160h-40q-33 0-56.5-23.5T80-440v-80q0-33 23.5-56.5T160-600h160l200-120v480L320-360h-40v160h-80Zm240-182v-196l-98 58H160v80h182l98 58Zm120 36v-268q27 24 43.5 58.5T620-480q0 41-16.5 75.5T560-346ZM300-480Z" })),
84
- h("span", null, "Create New Groupcast")),
85
- h("div", { class: "list", onScroll: this.onScroll },
86
- this.isLoadingMember ? (h("div", { class: "loading" },
87
- h("spinner-loader", { height: "15px", width: "15px" }))) : !(this.nonBlockedContacts || []).length ? (h("div", { class: "empty" }, this.isNoContactsFound ? 'No contacts found' : 'No contacts available')) : ((this.nonBlockedContacts || []).map(contact => (h("div", { class: "row", onClick: () => this.selectContact(contact.userId, contact.userName) },
88
- h("img", { src: contact.userProfileImageUrl ||
89
- generateProfileImageByInitials(contact.userName || '?', 80, 80), alt: "" }),
90
- h("span", null, contact.userName))))),
91
- this.isPaginationMember ? (h("div", { class: "loading" },
92
- h("spinner-loader", { height: "15px", width: "15px" }))) : null)));
93
- }
94
- };
95
- __decorate([
96
- Prop()
97
- ], NewChatSidebar.prototype, "label", void 0);
98
- __decorate([
99
- Prop()
100
- ], NewChatSidebar.prototype, "closeNewChatSidebar", void 0);
101
- __decorate([
102
- Prop()
103
- ], NewChatSidebar.prototype, "nonBlockedContacts", void 0);
104
- __decorate([
105
- Prop()
106
- ], NewChatSidebar.prototype, "isNoContactsFound", void 0);
107
- __decorate([
108
- Prop()
109
- ], NewChatSidebar.prototype, "isPaginationMember", void 0);
110
- __decorate([
111
- Prop()
112
- ], NewChatSidebar.prototype, "isLoadingMember", void 0);
113
- __decorate([
114
- Prop()
115
- ], NewChatSidebar.prototype, "hasMoreMembers", void 0);
116
- __decorate([
117
- State()
118
- ], NewChatSidebar.prototype, "showGroupChatContacts", void 0);
119
- __decorate([
120
- State()
121
- ], NewChatSidebar.prototype, "showGroupCastContacts", void 0);
122
- __decorate([
123
- State()
124
- ], NewChatSidebar.prototype, "searchText", void 0);
125
- __decorate([
126
- Event({ eventName: 'new-chat-input-changed' })
127
- ], NewChatSidebar.prototype, "inputChanged", void 0);
128
- __decorate([
129
- Event({ eventName: 'new-chat-contact-selected' })
130
- ], NewChatSidebar.prototype, "contactSelected", void 0);
131
- __decorate([
132
- Event({ eventName: 'new-chat-tile-list-scrolled-to-bottom' })
133
- ], NewChatSidebar.prototype, "scrolledToBottom", void 0);
134
- __decorate([
135
- Event({ eventName: 'create-group-clicked' })
136
- ], NewChatSidebar.prototype, "createGroupClicked", void 0);
137
- __decorate([
138
- Event({ eventName: 'create-groupcast-clicked' })
139
- ], NewChatSidebar.prototype, "createGroupcastClicked", void 0);
140
- __decorate([
141
- Event({ eventName: 'close-group-member-list' })
142
- ], NewChatSidebar.prototype, "closeGroupMemberList", void 0);
143
- NewChatSidebar = __decorate([
144
- Component({
145
- tag: 'new-chat-sidebar',
146
- shadow: true,
147
- styles: `
148
- :host { display: block; height: 100%; width: 100%; }
149
- .wrap {
150
- display: flex; flex-direction: column; height: 100%;
151
- background: var(--bg-primary-color); color: var(--text-primary-color);
152
- }
153
- .topbar {
154
- display: flex; align-items: center; gap: 12px; padding: 12px;
155
- font-size: var(--title-font-size, 18px); font-weight: 500;
156
- }
157
- .topbar button { background: none; border: none; cursor: pointer; color: inherit; padding: 0; display: flex; }
158
- .search {
159
- display: flex; align-items: center; gap: 8px; margin: 8px 12px; padding: 8px 10px;
160
- border-radius: 8px; background: var(--bg-secondary-color);
161
- }
162
- .search input {
163
- flex: 1; border: none; outline: none; background: transparent;
164
- color: var(--text-primary-color); font-size: 14px;
165
- }
166
- .action {
167
- display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer;
168
- border-bottom: 1px solid var(--bg-secondary-color);
169
- }
170
- .action img { width: 28px; height: 28px; }
171
- .list { flex: 1; min-height: 0; overflow-y: auto; }
172
- .row {
173
- display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer;
174
- border-bottom: 1px solid var(--bg-secondary-color);
175
- }
176
- .row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-primary-light); }
177
- .empty, .loading { padding: 24px; text-align: center; opacity: 0.7; }
178
- `,
179
- })
180
- ], NewChatSidebar);
181
- export { NewChatSidebar };
@@ -1,98 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Component, Prop, h, Event } from '@stencil/core';
8
- import './message-bubble';
9
- import { renderMessageBody, emitTagUser } from './message-body-render';
10
- let OutgoingTextMessageBubble = class OutgoingTextMessageBubble {
11
- constructor() {
12
- this.borderRadius = '10px';
13
- this.padding = '10px';
14
- this.textContent = '';
15
- this.mentionedUsers = [];
16
- this.reactions = {};
17
- }
18
- render() {
19
- return (h("message-bubble", { isSelf: true, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px' },
20
- h("div", { style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, renderMessageBody(this.textContent, this.mentionedUsers, u => emitTagUser(this.tagUserClick, u), true))));
21
- }
22
- };
23
- __decorate([
24
- Prop()
25
- ], OutgoingTextMessageBubble.prototype, "bgColor", void 0);
26
- __decorate([
27
- Prop()
28
- ], OutgoingTextMessageBubble.prototype, "borderWidth", void 0);
29
- __decorate([
30
- Prop()
31
- ], OutgoingTextMessageBubble.prototype, "borderColor", void 0);
32
- __decorate([
33
- Prop()
34
- ], OutgoingTextMessageBubble.prototype, "borderStyle", void 0);
35
- __decorate([
36
- Prop()
37
- ], OutgoingTextMessageBubble.prototype, "borderRadius", void 0);
38
- __decorate([
39
- Prop()
40
- ], OutgoingTextMessageBubble.prototype, "padding", void 0);
41
- __decorate([
42
- Prop()
43
- ], OutgoingTextMessageBubble.prototype, "height", void 0);
44
- __decorate([
45
- Prop()
46
- ], OutgoingTextMessageBubble.prototype, "width", void 0);
47
- __decorate([
48
- Prop()
49
- ], OutgoingTextMessageBubble.prototype, "time", void 0);
50
- __decorate([
51
- Prop()
52
- ], OutgoingTextMessageBubble.prototype, "textContent", void 0);
53
- __decorate([
54
- Prop()
55
- ], OutgoingTextMessageBubble.prototype, "alignSelf", void 0);
56
- __decorate([
57
- Prop()
58
- ], OutgoingTextMessageBubble.prototype, "isRead", void 0);
59
- __decorate([
60
- Prop()
61
- ], OutgoingTextMessageBubble.prototype, "isDelivered", void 0);
62
- __decorate([
63
- Prop()
64
- ], OutgoingTextMessageBubble.prototype, "textColor", void 0);
65
- __decorate([
66
- Prop()
67
- ], OutgoingTextMessageBubble.prototype, "mentionedUsers", void 0);
68
- __decorate([
69
- Prop()
70
- ], OutgoingTextMessageBubble.prototype, "messageType", void 0);
71
- __decorate([
72
- Prop()
73
- ], OutgoingTextMessageBubble.prototype, "timeColor", void 0);
74
- __decorate([
75
- Prop()
76
- ], OutgoingTextMessageBubble.prototype, "reactions", void 0);
77
- __decorate([
78
- Prop()
79
- ], OutgoingTextMessageBubble.prototype, "messageId", void 0);
80
- __decorate([
81
- Prop()
82
- ], OutgoingTextMessageBubble.prototype, "userMetaData", void 0);
83
- __decorate([
84
- Prop()
85
- ], OutgoingTextMessageBubble.prototype, "fontFamily", void 0);
86
- __decorate([
87
- Event({ eventName: 'tagUserClick', bubbles: true, composed: true })
88
- ], OutgoingTextMessageBubble.prototype, "tagUserClick", void 0);
89
- OutgoingTextMessageBubble = __decorate([
90
- Component({
91
- tag: 'outgoing-text-message-bubble',
92
- shadow: true,
93
- styles: `
94
- :host { display: block; max-width: 80%; margin-right: 10px; }
95
- `,
96
- })
97
- ], OutgoingTextMessageBubble);
98
- export { OutgoingTextMessageBubble };
@@ -1,136 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Component, Prop, State, Watch, h } from '@stencil/core';
8
- /**
9
- * Circular avatar with safe fallback.
10
- * Broken/missing src → initials (DM) or group silhouette.
11
- */
12
- let ProfileAvatar = class ProfileAvatar {
13
- constructor() {
14
- this.src = '';
15
- this.name = '';
16
- this.alt = '';
17
- this.size = '';
18
- this.radius = '';
19
- /** When true and no usable image, show group silhouette instead of initials. */
20
- this.isGroup = false;
21
- this.failed = false;
22
- this.onError = () => {
23
- this.failed = true;
24
- };
25
- }
26
- onSrcChange() {
27
- this.failed = false;
28
- }
29
- usableSrc() {
30
- const s = (this.src || '').trim();
31
- if (!s || s === 'null' || s === 'undefined')
32
- return '';
33
- return s;
34
- }
35
- initials() {
36
- var _a;
37
- const name = (this.name || '?').trim();
38
- const parts = name.split(/\s+/).filter(Boolean);
39
- if (parts.length >= 2)
40
- return (parts[0][0] + parts[1][0]).toUpperCase();
41
- return (((_a = parts[0]) === null || _a === void 0 ? void 0 : _a[0]) || '?').toUpperCase();
42
- }
43
- groupIcon() {
44
- return (h("svg", { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" },
45
- h("path", { d: "M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zM20 19h-6v-2.5c0-2.33 4.67-3.5 7-3.5V19z" })));
46
- }
47
- render() {
48
- const src = this.usableSrc();
49
- const showImg = !!src && !this.failed;
50
- const style = {};
51
- if (this.size) {
52
- style['--avatar-size'] = this.size;
53
- }
54
- if (this.radius) {
55
- style['--avatar-radius'] = this.radius;
56
- }
57
- return (h("div", { class: "wrap", style: style, title: this.name || undefined }, showImg ? (h("img", { src: src, alt: "", onError: this.onError })) : (h("div", { class: `fallback${this.isGroup ? ' group' : ''}` }, this.isGroup ? this.groupIcon() : this.initials()))));
58
- }
59
- };
60
- __decorate([
61
- Prop()
62
- ], ProfileAvatar.prototype, "src", void 0);
63
- __decorate([
64
- Prop()
65
- ], ProfileAvatar.prototype, "name", void 0);
66
- __decorate([
67
- Prop()
68
- ], ProfileAvatar.prototype, "alt", void 0);
69
- __decorate([
70
- Prop()
71
- ], ProfileAvatar.prototype, "size", void 0);
72
- __decorate([
73
- Prop()
74
- ], ProfileAvatar.prototype, "radius", void 0);
75
- __decorate([
76
- Prop()
77
- ], ProfileAvatar.prototype, "isGroup", void 0);
78
- __decorate([
79
- State()
80
- ], ProfileAvatar.prototype, "failed", void 0);
81
- __decorate([
82
- Watch('src')
83
- ], ProfileAvatar.prototype, "onSrcChange", null);
84
- ProfileAvatar = __decorate([
85
- Component({
86
- tag: 'profile-avatar',
87
- shadow: true,
88
- styles: `
89
- :host {
90
- display: inline-flex;
91
- flex-shrink: 0;
92
- line-height: 0;
93
- }
94
- .wrap {
95
- box-sizing: border-box;
96
- width: var(--avatar-size, var(--avatar, 48px));
97
- height: var(--avatar-size, var(--avatar, 48px));
98
- border-radius: var(--avatar-radius, var(--rounded-full, 50%));
99
- overflow: hidden;
100
- background: var(--brand-soft, #e8ecfb);
101
- color: var(--brand, #4A76FD);
102
- display: flex;
103
- align-items: center;
104
- justify-content: center;
105
- font-weight: 700;
106
- font-size: calc(var(--avatar-size, 48px) * 0.36);
107
- user-select: none;
108
- }
109
- img {
110
- width: 100%;
111
- height: 100%;
112
- object-fit: cover;
113
- display: block;
114
- }
115
- .fallback {
116
- width: 100%;
117
- height: 100%;
118
- display: flex;
119
- align-items: center;
120
- justify-content: center;
121
- background: var(--brand-soft, #e8ecfb);
122
- color: var(--brand, #4A76FD);
123
- }
124
- .fallback.group {
125
- background: var(--bg-secondary, #eceff3);
126
- color: var(--text-secondary, #6b7280);
127
- }
128
- .fallback svg {
129
- width: 55%;
130
- height: 55%;
131
- display: block;
132
- }
133
- `,
134
- })
135
- ], ProfileAvatar);
136
- export { ProfileAvatar };
@@ -1,220 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Component, Prop, h } from '@stencil/core';
8
- import { generateProfileImageByInitials } from '../../../lib/helpers';
9
- let ProfileInfo = class ProfileInfo {
10
- close() {
11
- if (typeof this.closeContactInfo === 'function')
12
- this.closeContactInfo();
13
- }
14
- render() {
15
- const avatar = this.contactImage || generateProfileImageByInitials(this.contactName || '?', 96, 96);
16
- return (h("div", { class: "panel", style: {
17
- padding: this.padding,
18
- margin: this.margin,
19
- width: this.width,
20
- height: this.height,
21
- boxShadow: this.boxShadow,
22
- backgroundColor: this.backgroundColor,
23
- color: this.textColor,
24
- fontFamily: this.fontFamily,
25
- } },
26
- h("div", { class: "header" },
27
- h("strong", null, "Profile"),
28
- h("button", { class: "close-btn", type: "button", onClick: () => this.close() }, "\u2715")),
29
- h("div", { class: "hero" },
30
- h("img", { class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }),
31
- h("div", { class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'),
32
- this.contactEmail ? h("div", { class: "email" }, this.contactEmail) : null),
33
- h("div", { class: "section" },
34
- h("h4", null, "Media"),
35
- h("div", null,
36
- (this.allAttachments || []).length,
37
- " items")),
38
- h("div", { class: "actions" }, typeof this.handleChatSelect === 'function' ? (h("button", { type: "button", onClick: () => this.handleChatSelect() }, "Message")) : null)));
39
- }
40
- };
41
- __decorate([
42
- Prop()
43
- ], ProfileInfo.prototype, "padding", void 0);
44
- __decorate([
45
- Prop()
46
- ], ProfileInfo.prototype, "margin", void 0);
47
- __decorate([
48
- Prop()
49
- ], ProfileInfo.prototype, "width", void 0);
50
- __decorate([
51
- Prop()
52
- ], ProfileInfo.prototype, "boxShadow", void 0);
53
- __decorate([
54
- Prop()
55
- ], ProfileInfo.prototype, "height", void 0);
56
- __decorate([
57
- Prop()
58
- ], ProfileInfo.prototype, "borderRadius", void 0);
59
- __decorate([
60
- Prop()
61
- ], ProfileInfo.prototype, "borderWidth", void 0);
62
- __decorate([
63
- Prop()
64
- ], ProfileInfo.prototype, "borderColor", void 0);
65
- __decorate([
66
- Prop()
67
- ], ProfileInfo.prototype, "borderStyle", void 0);
68
- __decorate([
69
- Prop()
70
- ], ProfileInfo.prototype, "backgroundColor", void 0);
71
- __decorate([
72
- Prop()
73
- ], ProfileInfo.prototype, "textColor", void 0);
74
- __decorate([
75
- Prop()
76
- ], ProfileInfo.prototype, "fontSize", void 0);
77
- __decorate([
78
- Prop()
79
- ], ProfileInfo.prototype, "fontWeight", void 0);
80
- __decorate([
81
- Prop()
82
- ], ProfileInfo.prototype, "fontFamily", void 0);
83
- __decorate([
84
- Prop()
85
- ], ProfileInfo.prototype, "fontStyle", void 0);
86
- __decorate([
87
- Prop()
88
- ], ProfileInfo.prototype, "lineHeight", void 0);
89
- __decorate([
90
- Prop()
91
- ], ProfileInfo.prototype, "textAlign", void 0);
92
- __decorate([
93
- Prop()
94
- ], ProfileInfo.prototype, "contactImage", void 0);
95
- __decorate([
96
- Prop()
97
- ], ProfileInfo.prototype, "contactName", void 0);
98
- __decorate([
99
- Prop()
100
- ], ProfileInfo.prototype, "contactEmail", void 0);
101
- __decorate([
102
- Prop()
103
- ], ProfileInfo.prototype, "messageAction", void 0);
104
- __decorate([
105
- Prop()
106
- ], ProfileInfo.prototype, "groupMembers", void 0);
107
- __decorate([
108
- Prop()
109
- ], ProfileInfo.prototype, "allAttachments", void 0);
110
- __decorate([
111
- Prop()
112
- ], ProfileInfo.prototype, "isGroup", void 0);
113
- __decorate([
114
- Prop()
115
- ], ProfileInfo.prototype, "showAllMembers", void 0);
116
- __decorate([
117
- Prop()
118
- ], ProfileInfo.prototype, "isPopupOpen", void 0);
119
- __decorate([
120
- Prop()
121
- ], ProfileInfo.prototype, "showMediaList", void 0);
122
- __decorate([
123
- Prop()
124
- ], ProfileInfo.prototype, "isImageFullscreen", void 0);
125
- __decorate([
126
- Prop()
127
- ], ProfileInfo.prototype, "showConfirmationPopup", void 0);
128
- __decorate([
129
- Prop()
130
- ], ProfileInfo.prototype, "confirmationAction", void 0);
131
- __decorate([
132
- Prop()
133
- ], ProfileInfo.prototype, "conversationId", void 0);
134
- __decorate([
135
- Prop()
136
- ], ProfileInfo.prototype, "oppenentId", void 0);
137
- __decorate([
138
- Prop()
139
- ], ProfileInfo.prototype, "userMetaData", void 0);
140
- __decorate([
141
- Prop()
142
- ], ProfileInfo.prototype, "onEditTitle", void 0);
143
- __decorate([
144
- Prop()
145
- ], ProfileInfo.prototype, "handleChatSelect", void 0);
146
- __decorate([
147
- Prop()
148
- ], ProfileInfo.prototype, "onEditImage", void 0);
149
- __decorate([
150
- Prop()
151
- ], ProfileInfo.prototype, "isEditingName", void 0);
152
- __decorate([
153
- Prop()
154
- ], ProfileInfo.prototype, "openOwnProfile", void 0);
155
- __decorate([
156
- Prop()
157
- ], ProfileInfo.prototype, "editedName", void 0);
158
- __decorate([
159
- Prop()
160
- ], ProfileInfo.prototype, "eligibleMembers", void 0);
161
- __decorate([
162
- Prop()
163
- ], ProfileInfo.prototype, "isEligibleMembersPopupOpen", void 0);
164
- __decorate([
165
- Prop()
166
- ], ProfileInfo.prototype, "hasMoreEligibleMembers", void 0);
167
- __decorate([
168
- Prop()
169
- ], ProfileInfo.prototype, "isLoadingMembers", void 0);
170
- __decorate([
171
- Prop()
172
- ], ProfileInfo.prototype, "activeTab", void 0);
173
- __decorate([
174
- Prop()
175
- ], ProfileInfo.prototype, "docsAttachments", void 0);
176
- __decorate([
177
- Prop()
178
- ], ProfileInfo.prototype, "linksAttachments", void 0);
179
- __decorate([
180
- Prop()
181
- ], ProfileInfo.prototype, "allLinks", void 0);
182
- __decorate([
183
- Prop()
184
- ], ProfileInfo.prototype, "allLinksCount", void 0);
185
- __decorate([
186
- Prop()
187
- ], ProfileInfo.prototype, "isBlocked", void 0);
188
- __decorate([
189
- Prop()
190
- ], ProfileInfo.prototype, "conversationMetaData", void 0);
191
- __decorate([
192
- Prop()
193
- ], ProfileInfo.prototype, "closeContactInfo", void 0);
194
- ProfileInfo = __decorate([
195
- Component({
196
- tag: 'profile-info',
197
- shadow: true,
198
- styles: `
199
- :host { display: block; height: 100%; }
200
- .panel {
201
- display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
202
- background: var(--bg-primary-color); color: var(--text-primary-color); padding: 12px; gap: 12px;
203
- }
204
- .header { display: flex; align-items: center; gap: 10px; }
205
- .close-btn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; }
206
- .hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }
207
- .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-primary-light); }
208
- .name { font-size: 20px; font-weight: 600; }
209
- .email { font-size: 13px; opacity: 0.7; }
210
- .section { border-top: 1px solid var(--bg-secondary-color); padding-top: 12px; }
211
- .section h4 { margin: 0 0 8px; font-size: 13px; opacity: 0.75; text-transform: uppercase; }
212
- .actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
213
- .actions button {
214
- padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bg-secondary-color);
215
- background: var(--bg-secondary-color); color: inherit; cursor: pointer; text-align: left;
216
- }
217
- `,
218
- })
219
- ], ProfileInfo);
220
- export { ProfileInfo };