zignal-stencil-library 1.1.123 → 1.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/autocomplete-address_43.cjs.entry.js +89 -121
- package/dist/cjs/quick-message-app.cjs.entry.js +1 -1
- package/dist/cjs/quick-message-app.entry.cjs.js.map +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.js +2 -3
- package/dist/collection/components/autocomplete-address/autocomplete-address.js.map +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js +1 -3
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js.map +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.js +3 -3
- package/dist/collection/components/autocomplete-select/autocomplete-select.js.map +1 -1
- package/dist/collection/components/channel-box/channel-box.css +1 -1
- package/dist/collection/components/channel-box/channel-box.js +2 -3
- package/dist/collection/components/channel-box/channel-box.js.map +1 -1
- package/dist/collection/components/chat-app/chat-app.css +1 -1
- package/dist/collection/components/chat-header/chat-header.css +1 -1
- package/dist/collection/components/chat-header/chat-header.js +2 -3
- package/dist/collection/components/chat-header/chat-header.js.map +1 -1
- package/dist/collection/components/chat-input/chat-input.css +1 -1
- package/dist/collection/components/chat-input/chat-input.js +1 -2
- package/dist/collection/components/chat-input/chat-input.js.map +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.js +1 -3
- package/dist/collection/components/checkbox-list/checkbox-list.js.map +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js +4 -5
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js.map +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.js +2 -3
- package/dist/collection/components/dialog-editor/dialog-editor.js.map +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +2 -3
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js.map +1 -1
- package/dist/collection/components/dialog-search/dialog-search.css +1 -1
- package/dist/collection/components/dialog-search/dialog-search.js +2 -3
- package/dist/collection/components/dialog-search/dialog-search.js.map +1 -1
- package/dist/collection/components/internal-component/z-button-group.js +1 -5
- package/dist/collection/components/internal-component/z-button-group.js.map +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.js +2 -3
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.js.map +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.js +3 -4
- package/dist/collection/components/menu-chat-type/menu-chat-type.js.map +1 -1
- package/dist/collection/components/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu-list/menu-list.js +2 -4
- package/dist/collection/components/menu-list/menu-list.js.map +1 -1
- package/dist/collection/components/message-box/message-box.css +1 -1
- package/dist/collection/components/message-box/message-box.js +1 -2
- package/dist/collection/components/message-box/message-box.js.map +1 -1
- package/dist/collection/components/message-content/message-content.css +1 -1
- package/dist/collection/components/message-content/message-content.js +6 -8
- package/dist/collection/components/message-content/message-content.js.map +1 -1
- package/dist/collection/components/message-item/message-item.css +1 -1
- package/dist/collection/components/message-item/message-item.js +1 -2
- package/dist/collection/components/message-item/message-item.js.map +1 -1
- package/dist/collection/components/message-media/message-media.css +1 -1
- package/dist/collection/components/message-media/message-media.js +3 -4
- package/dist/collection/components/message-media/message-media.js.map +1 -1
- package/dist/collection/components/profile-history/profile-history.css +1 -1
- package/dist/collection/components/profile-history/profile-history.js +2 -3
- package/dist/collection/components/profile-history/profile-history.js.map +1 -1
- package/dist/collection/components/profile-info/profile-info.css +1 -1
- package/dist/collection/components/profile-info/profile-info.js +1 -1
- package/dist/collection/components/profile-info/profile-info.js.map +1 -1
- package/dist/collection/components/profile-media/profile-media.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.js +3 -4
- package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.js +3 -5
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.js.map +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.js +1 -3
- package/dist/collection/components/quick-message-modal/quick-message-modal.js.map +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
- package/dist/collection/components/search-box/search-box.css +1 -1
- package/dist/collection/components/search-box/search-box.js +2 -3
- package/dist/collection/components/search-box/search-box.js.map +1 -1
- package/dist/collection/components/status-badge/status-badge.css +1 -1
- package/dist/collection/components/status-badge/status-badge.js +2 -3
- package/dist/collection/components/status-badge/status-badge.js.map +1 -1
- package/dist/collection/components/tag-list/tag-list.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.js +2 -4
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.js.map +1 -1
- package/dist/collection/components/tag-popper/tag-popper.css +1 -1
- package/dist/collection/components/tag-popper/tag-popper.js +2 -4
- package/dist/collection/components/tag-popper/tag-popper.js.map +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.js +2 -4
- package/dist/collection/components/typography-clamp/typography-clamp.js.map +1 -1
- package/dist/collection/components/z-avatar/z-avatar.css +1 -1
- package/dist/collection/components/z-avatar/z-avatar.js +1 -3
- package/dist/collection/components/z-avatar/z-avatar.js.map +1 -1
- package/dist/collection/components/z-dialog/z-dialog.css +1 -1
- package/dist/collection/components/z-dialog/z-dialog.js +2 -3
- package/dist/collection/components/z-dialog/z-dialog.js.map +1 -1
- package/dist/components/autocomplete-address.js +1 -1
- package/dist/components/autocomplete-multiple-select.js +1 -1
- package/dist/components/autocomplete-select.js +1 -1
- package/dist/components/channel-box.js +1 -1
- package/dist/components/chat-app.js +38 -38
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-header.js +1 -1
- package/dist/components/chat-input.js +1 -1
- package/dist/components/checkbox-list.js +1 -1
- package/dist/components/dialog-bill-editor.js +1 -1
- package/dist/components/dialog-editor.js +1 -1
- package/dist/components/dialog-preview-media.js +1 -1
- package/dist/components/dialog-search.js +1 -1
- package/dist/components/menu-chat-channel.js +1 -1
- package/dist/components/menu-chat-type.js +1 -1
- package/dist/components/menu-list.js +1 -1
- package/dist/components/message-box.js +1 -1
- package/dist/components/message-content.js +1 -1
- package/dist/components/message-item.js +1 -1
- package/dist/components/message-media.js +1 -1
- package/dist/components/p--6-gPFhh.js +517 -0
- package/dist/components/p--6-gPFhh.js.map +1 -0
- package/dist/components/p-58gnM05C.js +60 -0
- package/dist/components/p-58gnM05C.js.map +1 -0
- package/dist/components/p-9vQxFtwB.js +124 -0
- package/dist/components/{p-A4RRdnMc.js.map → p-9vQxFtwB.js.map} +1 -1
- package/dist/components/p-B2hzHJmn.js +161 -0
- package/dist/components/p-B2hzHJmn.js.map +1 -0
- package/dist/components/p-B52CXl3S.js +566 -0
- package/dist/components/{p-DAJhf69u.js.map → p-B52CXl3S.js.map} +1 -1
- package/dist/components/p-B6K7wNBI.js +136 -0
- package/dist/components/p-B6K7wNBI.js.map +1 -0
- package/dist/components/p-BINMnTok.js +122 -0
- package/dist/components/p-BINMnTok.js.map +1 -0
- package/dist/components/p-Bhl0cJtt.js +704 -0
- package/dist/components/p-Bhl0cJtt.js.map +1 -0
- package/dist/components/p-C-RfY4ml.js +183 -0
- package/dist/components/p-C-RfY4ml.js.map +1 -0
- package/dist/components/p-C0Ox-t8m.js +110 -0
- package/dist/components/p-C0Ox-t8m.js.map +1 -0
- package/dist/components/p-C2wiyO0Z.js +187 -0
- package/dist/components/p-C2wiyO0Z.js.map +1 -0
- package/dist/components/p-C86RTgEO.js +99 -0
- package/dist/components/p-C86RTgEO.js.map +1 -0
- package/dist/components/p-CR0ul3pv.js +111 -0
- package/dist/components/p-CR0ul3pv.js.map +1 -0
- package/dist/components/p-CWouP-QX.js +103 -0
- package/dist/components/p-CWouP-QX.js.map +1 -0
- package/dist/components/p-CXSSgeU-.js +110 -0
- package/dist/components/p-CXSSgeU-.js.map +1 -0
- package/dist/components/p-C_4sxFCg.js +178 -0
- package/dist/components/p-C_4sxFCg.js.map +1 -0
- package/dist/components/p-Cb7Kl7m9.js +226 -0
- package/dist/components/p-Cb7Kl7m9.js.map +1 -0
- package/dist/components/p-CmPioEUc.js +158 -0
- package/dist/components/p-CmPioEUc.js.map +1 -0
- package/dist/components/p-CokIqGkd.js +602 -0
- package/dist/components/p-CokIqGkd.js.map +1 -0
- package/dist/components/p-Cqxf38L8.js +557 -0
- package/dist/components/{p-D4EbodEB.js.map → p-Cqxf38L8.js.map} +1 -1
- package/dist/components/p-CyDVTDYz.js +143 -0
- package/dist/components/p-CyDVTDYz.js.map +1 -0
- package/dist/components/p-D3e5zXbz.js +518 -0
- package/dist/components/{p-ChRpdGJd.js.map → p-D3e5zXbz.js.map} +1 -1
- package/dist/components/p-D7lsBPaE.js +54 -0
- package/dist/components/p-D7lsBPaE.js.map +1 -0
- package/dist/components/{p-jTRkxsbR.js → p-D7p1C-GV.js} +19 -20
- package/dist/components/p-D7p1C-GV.js.map +1 -0
- package/dist/components/p-DAZ1-wLt.js +125 -0
- package/dist/components/p-DAZ1-wLt.js.map +1 -0
- package/dist/components/p-DNlraJ-P.js +141 -0
- package/dist/components/p-DNlraJ-P.js.map +1 -0
- package/dist/components/p-DfG-ebYj.js +132 -0
- package/dist/components/{p-DYEy-cA-.js.map → p-DfG-ebYj.js.map} +1 -1
- package/dist/components/p-DoH02Q2B.js +234 -0
- package/dist/components/p-DoH02Q2B.js.map +1 -0
- package/dist/components/p-DoW6kVb9.js +311 -0
- package/dist/components/p-DoW6kVb9.js.map +1 -0
- package/dist/components/p-L6_EMhji.js +35 -0
- package/dist/components/{p-5Z2tT32a.js.map → p-L6_EMhji.js.map} +1 -1
- package/dist/components/p-_EaCdLgo.js +105 -0
- package/dist/components/p-_EaCdLgo.js.map +1 -0
- package/dist/components/p-_OziKbNH.js +217 -0
- package/dist/components/p-_OziKbNH.js.map +1 -0
- package/dist/components/p-cH7iCq8E.js +158 -0
- package/dist/components/p-cH7iCq8E.js.map +1 -0
- package/dist/components/p-kiTovzcq.js +79 -0
- package/dist/components/p-kiTovzcq.js.map +1 -0
- package/dist/components/p-r45UkrnT.js +159 -0
- package/dist/components/{p-BZPzVYGj.js.map → p-r45UkrnT.js.map} +1 -1
- package/dist/components/p-sNMkGZNs.js +77 -0
- package/dist/components/p-sNMkGZNs.js.map +1 -0
- package/dist/components/p-xhP2H16s.js +138 -0
- package/dist/components/p-xhP2H16s.js.map +1 -0
- package/dist/components/profile-history.js +1 -1
- package/dist/components/profile-info.js +1 -1
- package/dist/components/profile-media.js +1 -1
- package/dist/components/profile-tabs.js +1 -1
- package/dist/components/quick-message-add-template.js +1 -1
- package/dist/components/quick-message-app.js +6 -6
- package/dist/components/quick-message-app.js.map +1 -1
- package/dist/components/quick-message-file.js +1 -1
- package/dist/components/quick-message-image.js +1 -1
- package/dist/components/quick-message-modal.js +1 -1
- package/dist/components/quick-message-template.js +1 -1
- package/dist/components/search-box.js +1 -1
- package/dist/components/status-badge.js +1 -1
- package/dist/components/summarize-message-section.js +1 -1
- package/dist/components/tag-list.js +1 -1
- package/dist/components/tag-or-status-item.js +1 -1
- package/dist/components/tag-popper.js +1 -1
- package/dist/components/typography-clamp.js +1 -1
- package/dist/components/user-info-section.js +1 -1
- package/dist/components/z-avatar.js +1 -1
- package/dist/components/z-dialog.js +1 -1
- package/dist/esm/autocomplete-address_43.entry.js +90 -122
- package/dist/esm/quick-message-app.entry.js +1 -1
- package/dist/esm/quick-message-app.entry.js.map +1 -1
- package/dist/zignal-stencil-library/p-962f628d.entry.js +2 -0
- package/dist/zignal-stencil-library/{p-f0f7f13a.entry.js.map → p-962f628d.entry.js.map} +1 -1
- package/dist/zignal-stencil-library/{p-9c787a6f.entry.js → p-b76b5b18.entry.js} +4 -4
- package/dist/zignal-stencil-library/p-b76b5b18.entry.js.map +1 -0
- package/dist/zignal-stencil-library/quick-message-app.entry.esm.js.map +1 -1
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p--Enuw3tX.js +0 -184
- package/dist/components/p--Enuw3tX.js.map +0 -1
- package/dist/components/p-3dJZPnz_.js +0 -160
- package/dist/components/p-3dJZPnz_.js.map +0 -1
- package/dist/components/p-5Z2tT32a.js +0 -35
- package/dist/components/p-A4RRdnMc.js +0 -124
- package/dist/components/p-B0gC55gW.js +0 -704
- package/dist/components/p-B0gC55gW.js.map +0 -1
- package/dist/components/p-B2qgQSsK.js +0 -235
- package/dist/components/p-B2qgQSsK.js.map +0 -1
- package/dist/components/p-BKZzQD7H.js +0 -219
- package/dist/components/p-BKZzQD7H.js.map +0 -1
- package/dist/components/p-BWuZegR4.js +0 -78
- package/dist/components/p-BWuZegR4.js.map +0 -1
- package/dist/components/p-BYEXI48l.js +0 -107
- package/dist/components/p-BYEXI48l.js.map +0 -1
- package/dist/components/p-BZPzVYGj.js +0 -159
- package/dist/components/p-Ba5c5p9B.js +0 -178
- package/dist/components/p-Ba5c5p9B.js.map +0 -1
- package/dist/components/p-C5cSGGuF.js +0 -603
- package/dist/components/p-C5cSGGuF.js.map +0 -1
- package/dist/components/p-CNw9ADrc.js +0 -55
- package/dist/components/p-CNw9ADrc.js.map +0 -1
- package/dist/components/p-CaGiRTud.js +0 -61
- package/dist/components/p-CaGiRTud.js.map +0 -1
- package/dist/components/p-ChRpdGJd.js +0 -518
- package/dist/components/p-CkHuolGz.js +0 -81
- package/dist/components/p-CkHuolGz.js.map +0 -1
- package/dist/components/p-CkeWlJKM.js +0 -104
- package/dist/components/p-CkeWlJKM.js.map +0 -1
- package/dist/components/p-D0Pdlqhf.js +0 -126
- package/dist/components/p-D0Pdlqhf.js.map +0 -1
- package/dist/components/p-D0zFdGok.js +0 -315
- package/dist/components/p-D0zFdGok.js.map +0 -1
- package/dist/components/p-D42kjaaj.js +0 -518
- package/dist/components/p-D42kjaaj.js.map +0 -1
- package/dist/components/p-D4EbodEB.js +0 -557
- package/dist/components/p-DAJhf69u.js +0 -566
- package/dist/components/p-DAwM7jGt.js +0 -140
- package/dist/components/p-DAwM7jGt.js.map +0 -1
- package/dist/components/p-DJPhPlLw.js +0 -101
- package/dist/components/p-DJPhPlLw.js.map +0 -1
- package/dist/components/p-DLnTQGP9.js +0 -188
- package/dist/components/p-DLnTQGP9.js.map +0 -1
- package/dist/components/p-DTChk4QP.js +0 -124
- package/dist/components/p-DTChk4QP.js.map +0 -1
- package/dist/components/p-DVMzvGj6.js +0 -144
- package/dist/components/p-DVMzvGj6.js.map +0 -1
- package/dist/components/p-DWwas6dc.js +0 -137
- package/dist/components/p-DWwas6dc.js.map +0 -1
- package/dist/components/p-DYEy-cA-.js +0 -132
- package/dist/components/p-DYdHwebk.js +0 -159
- package/dist/components/p-DYdHwebk.js.map +0 -1
- package/dist/components/p-DiSPdOEp.js +0 -113
- package/dist/components/p-DiSPdOEp.js.map +0 -1
- package/dist/components/p-IOxlICcT.js +0 -163
- package/dist/components/p-IOxlICcT.js.map +0 -1
- package/dist/components/p-jTRkxsbR.js.map +0 -1
- package/dist/components/p-occgvucg.js +0 -227
- package/dist/components/p-occgvucg.js.map +0 -1
- package/dist/components/p-sG0jTurp.js +0 -111
- package/dist/components/p-sG0jTurp.js.map +0 -1
- package/dist/components/p-viwZL2Z8.js +0 -142
- package/dist/components/p-viwZL2Z8.js.map +0 -1
- package/dist/components/p-wkyeeZK2.js +0 -112
- package/dist/components/p-wkyeeZK2.js.map +0 -1
- package/dist/zignal-stencil-library/p-9c787a6f.entry.js.map +0 -1
- package/dist/zignal-stencil-library/p-f0f7f13a.entry.js +0 -2
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, a as Host } from './p-DRz4sc4i.js';
|
|
2
|
+
import { c as configStore, s as selectedChatStore, m as messagesStore, r as responsiveStore, d as selectedMessageToReplyStore, p as profilePanelStore } from './p-C-yg0vtE.js';
|
|
3
|
+
import { g as getTranslation, s as serviceUpdateMessageItems, d as getMessagePicture, e as scrollToMessage, h as handleGetChatMessages } from './p-hhz0UGz2.js';
|
|
4
|
+
import { d as displayTime, a as displayDateTime, i as isToday } from './p-CWHeSqYk.js';
|
|
5
|
+
import { I as Icon } from './p-BhidTUJs.js';
|
|
6
|
+
import { Z as ZTagOrStatusItem } from './p-fZrBBdjT.js';
|
|
7
|
+
import { u as useTranslation } from './p-GPPFvEYq.js';
|
|
8
|
+
import { h as handleError } from './p-DS28c-yX.js';
|
|
9
|
+
import { g as getChatName } from './p-svoisvoB.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './p-D7lsBPaE.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './p-BINMnTok.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './p-CmPioEUc.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './p-B6K7wNBI.js';
|
|
14
|
+
import { d as defineCustomElement$1 } from './p-C86RTgEO.js';
|
|
15
|
+
|
|
16
|
+
const messageItemCss = "@layer base{*,::backdrop,:after,:before{--tw-space-y-reverse:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-space-y-reverse:0;--tw-leading:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:host,:root{--container-xl:36rem;--color-yellow-500:oklch(79.5% .184 86.047);--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--container-xs:20rem;--container-md:28rem;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--color-gray-400:oklch(70.7% .022 261.325);--color-slate-500:oklch(55.4% .046 257.417);--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--container-3xs:16rem;--color-red-700:oklch(50.5% .213 27.518);--color-green-700:oklch(52.7% .154 150.069);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-100:oklch(94.8% .028 342.258);--font-weight-semibold:600;--font-weight-bold:700;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-yellow-300:oklch(90.5% .182 98.111);--color-green-500:oklch(72.3% .219 149.579);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:\"Kanit\",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{.dialog-backdrop{align-items:center;background-color:#0006;display:flex;inset:calc(var(--spacing)*0);justify-content:center;position:fixed;z-index:50}@supports (color:color-mix(in lab,red,red)){.dialog-backdrop{background-color:color-mix(in oklab,var(--color-black)40%,transparent);background-color:color-mix(in srgb,#00040%,transparent)}}.chat-item{border-radius:var(--radius-xl);cursor:pointer;margin-block:calc(var(--spacing)*1);margin-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);align-items:flex-start;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;position:relative}:where(.chat-item>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-pin{position:absolute;right:calc(var(--spacing)*-3);top:calc(var(--spacing)*1)}.chat-item .chat-item-pin-icon{fill:currentColor;height:calc(var(--spacing)*3);rotate:45deg;width:calc(var(--spacing)*3)}.chat-item .chat-item-content-container{display:flex;flex-direction:row;width:100%}:where(.chat-item .chat-item-content-container>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-avatar-wrapper{align-self:center;flex-shrink:0;position:relative}.chat-item .chat-item-avatar-badge{bottom:calc(var(--spacing)*-.5);position:absolute;right:calc(var(--spacing)*-.5)}.chat-item .chat-item-content-wrapper{min-height:calc(var(--spacing)*18);width:100%}.chat-item .chat-item-content-main{align-items:center;display:flex}:where(.chat-item .chat-item-content-main>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.chat-item .chat-item-content-main-image{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.chat-item .chat-item-content-main-name{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-main-time{color:var(--color-gray-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-secondary{align-items:flex-start;display:flex;flex-direction:row;width:100%}.chat-item .chat-item-content-secondary-nickname{font-size:var(--text-base);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-base--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message{color:var(--color-gray-600);font-size:var(--text-sm);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-sm--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-unread{background-color:var(--color-primary);border-radius:3.40282e+38px;color:var(--color-white);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-unread-mark{display:inline-block;height:calc(var(--spacing)*2.5);width:calc(var(--spacing)*2.5)}.chat-item .chat-item-content-unread-count{padding-block:calc(var(--spacing)*.5);padding-inline:calc(var(--spacing)*2)}.z-icon-button{cursor:pointer;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-icon-button:focus{--tw-outline-style:none;outline-style:none}.z-icon-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-icon-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-icon-button-disabled{cursor:not-allowed;opacity:.5}.z-button{cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button:focus{--tw-outline-style:none;outline-style:none}.z-button-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px;color:var(--color-primary)}.z-button-disabled{cursor:not-allowed;opacity:.5}.z-button-text{margin-inline:calc(var(--spacing)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.z-input-area-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input-area-input,.z-input-area-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{background-color:var(--color-paper);border-color:var(--color-surface);border-radius:var(--radius-lg);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input-area-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-area-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-input-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{background-color:var(--color-background);border-color:var(--color-divider);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-radius:3.40282e+38px;border-width:1px;width:100%}.z-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-select-input-label{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-tag-or-status-item{align-items:center;border-radius:var(--radius-2xl);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*3);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:inline-flex}.z-tag-or-status-item .z-tag-or-status-item-name{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));max-width:calc(var(--spacing)*20)}.z-tag-or-status-item .z-tag-or-status-item-icon{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-context-input{align-items:stretch;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{background-color:var(--color-background);border-bottom-left-radius:var(--radius-3xl);border-color:var(--color-divider);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{background-color:var(--color-background);border-bottom-right-radius:var(--radius-3xl);border-color:var(--color-primary);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-value:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-text-with-link{color:var(--color-blue-600);text-decoration-line:underline}.z-button-group{display:inline-flex}.z-button-group-tab{border-radius:var(--radius-md);display:flex;gap:calc(var(--spacing)*1);padding:calc(var(--spacing)*.5)!important}.z-button-group-tab-overlay{background-color:var(--color-overlay)}.z-button-group-item{border-style:var(--tw-border-style);cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-width:1px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button-group-item:focus{--tw-outline-style:none;outline-style:none}.z-button-group-item-tab{align-items:center;border-radius:var(--radius-sm);border-style:var(--tw-border-style)!important;border-width:0!important;display:flex;flex:1;flex-direction:column;gap:calc(var(--spacing)*2);justify-content:center;padding:calc(var(--spacing)*1)!important}.z-button-group-item-tab-selected{background-color:var(--color-white);--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-selected,.z-button-group-item-tab-unselected{border-style:var(--tw-border-style)!important;border-width:0!important}.z-button-group-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-group-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-group-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-group-item-first{border-bottom-left-radius:3.40282e+38px;border-top-left-radius:3.40282e+38px}.z-button-group-item-last{border-bottom-right-radius:3.40282e+38px;border-top-right-radius:3.40282e+38px}.z-button-group-item-middle{border-radius:0}.z-button-group-item-primary-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-primary-unselected{background-color:var(--color-white);border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-outlined-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-outlined-unselected{background-color:#0000;border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-disabled{cursor:not-allowed;opacity:.5}.z-button-group-item:not(:first-child){margin-left:-1px}}@layer utilities{.hidden{display:none}.hidden\\!{display:none!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.bg-background{background-color:var(--color-background)}.bg-paper{background-color:var(--color-paper)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}[data-theme=light]{--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d}[data-theme=dark]{--color-primary:#b50f30;--color-secondary:#fff;--color-background:#23292d;--color-surface:#fff;--color-paper:#374151;--color-divider:#4b5563;--color-theme-gray:#d1d5db;--color-overlay:#ffffff4d}.scroll-container::-webkit-scrollbar{background:#0000001a;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0003}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.bg-time-badge{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-time-badge{background-color:color-mix(in srgb,var(--color-surface)30%,transparent);background-color:color-mix(in srgb,#00030%,transparent)}}.placeholder-surface::placeholder{color:var(--color-text-gray)}.z-width-100{width:100%}.z-width-90{width:90%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}.z-animate-width{transition-duration:.5s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.z-animate-grid-template-cols{transition:grid-template-rows .5s}[type=checkbox]{background-color:var(--color-gray-300);border-color:var(--color-gray-300);border-radius:4px;cursor:pointer}[type=checkbox]:checked,[type=checkbox]:indeterminate{background-color:var(--color-primary);border-color:var(--color-primary);border-radius:4px;cursor:pointer}[type=checkbox]:focus{offset:0;outline-offset:0;--tw-ring-color:var(--color-primary);outline:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.grid-cols-1{grid-template-columns:1fr}.grid-cols-1_3{grid-template-columns:1fr 3fr}.grid-cols-1_2_1{grid-template-columns:1fr 2fr 1fr}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.relative{position:relative}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.rotate-45{rotate:45deg}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.text-primary{color:var(--color-primary)}.text-surface{color:var(--color-surface)}.text-theme-gray{color:var(--color-theme-gray)}.col-span-2{grid-column:span 2/span 2}.my-2{margin-block:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.w-xl{width:var(--container-xl)}.w-xs{width:var(--container-xs)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.m-auto{margin:auto}.size-32{height:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.container{width:100%}.visible{visibility:visible}.-top-12{top:calc(var(--spacing)*-12)}.-top-24{top:calc(var(--spacing)*-24)}.mx-auto{margin-inline:auto}.mt-10{margin-top:calc(var(--spacing)*10)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.inline-block{display:inline-block}.size-18{height:calc(var(--spacing)*18);width:calc(var(--spacing)*18)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.absolute{position:absolute}.right-full{right:100%}.-bottom-2{bottom:calc(var(--spacing)*-2)}.left-full{left:100%}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing)*2.5)}.ml-2{margin-left:calc(var(--spacing)*2)}.flex{display:flex}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e+38px}.bg-yellow-300{background-color:var(--color-yellow-300)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-left{text-align:left}.text-right{text-align:right}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.mt-1{margin-top:calc(var(--spacing)*1)}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.max-w-3xs{max-width:var(--container-3xs)}.max-w-sm{max-width:var(--container-sm)}.cursor-pointer{cursor:pointer}.resize{resize:both}.rounded-br-\\[0\\]{border-bottom-right-radius:0}.rounded-bl-\\[0\\]{border-bottom-left-radius:0}.bg-black{background-color:var(--color-black)}.bg-white{background-color:var(--color-white)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-2{padding-block:calc(var(--spacing)*2)}.text-black{color:var(--color-black)}.text-white{color:var(--color-white)}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.size-42{height:calc(var(--spacing)*42);width:calc(var(--spacing)*42)}.h-20{height:calc(var(--spacing)*20)}.w-42{width:calc(var(--spacing)*42)}.-right-0\\.5{right:calc(var(--spacing)*-.5)}.-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}.col-span-3{grid-column:span 3/span 3}.mt-2{margin-top:calc(var(--spacing)*2)}.w-full{width:100%}.flex-wrap{flex-wrap:wrap}.gap-y-1{row-gap:calc(var(--spacing)*1)}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-divider{border-color:var(--color-divider)}.border-primary{border-color:var(--color-primary)}.pt-2{padding-top:calc(var(--spacing)*2)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.truncate,.whitespace-nowrap{white-space:nowrap}.truncate{overflow:hidden;text-overflow:ellipsis}.top-1\\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.mt-auto{margin-top:auto}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.inline-flex{display:inline-flex}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.-translate-y-1\\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-spin{animation:var(--animate-spin)}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.bg-primary{background-color:var(--color-primary)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.pr-9{padding-right:calc(var(--spacing)*9)}.text-center{text-align:center}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.text-gray-400{color:var(--color-gray-400)}.ring-primary{--tw-ring-color:var(--color-primary)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.border-transparent{border-color:#0000}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.inset-0{inset:calc(var(--spacing)*0)}.top-3{top:calc(var(--spacing)*3)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-3{bottom:calc(var(--spacing)*3)}.left-3{left:calc(var(--spacing)*3)}.z-10{z-index:10}.z-80{z-index:80}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.contents{display:contents}.grid{display:grid}.aspect-square{aspect-ratio:1}.size-12{height:calc(var(--spacing)*12);width:calc(var(--spacing)*12)}.size-14{height:calc(var(--spacing)*14);width:calc(var(--spacing)*14)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-\\[180px\\]{height:180px}.h-\\[220px\\]{height:220px}.h-\\[280px\\]{height:280px}.h-full{height:100%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-\\[200px\\]{width:200px}.w-\\[250px\\]{width:250px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.flex-shrink-0,.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[18px\\]{border-radius:18px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-\\[1\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.5px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-red-500{border-color:var(--color-red-500)}.bg-slate-900\\/40{background-color:#0f172b66}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/60{background-color:color-mix(in oklab,var(--color-slate-900)60%,transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in srgb,#fff90%,transparent);background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-12{padding-block:calc(var(--spacing)*12)}.pr-16{padding-right:calc(var(--spacing)*16)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-\\[13px\\]{font-size:13px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.text-red-500{color:var(--color-red-500)}.text-slate-700{color:var(--color-slate-700)}.placeholder-surface::placeholder{color:var(--color-surface)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow,.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-all,.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-opacity{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.focus\\:border-red-500:focus{border-color:var(--color-red-500)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\\:ring-red-200:focus{--tw-ring-color:var(--color-red-200)}.focus\\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.col-span-full{grid-column:1/-1}.h-16{height:calc(var(--spacing)*16)}.w-16{width:calc(var(--spacing)*16)}.auto-rows-auto{grid-auto-rows:auto}.content-start{align-content:flex-start}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.size-10{height:calc(var(--spacing)*10);width:calc(var(--spacing)*10)}.h-40{height:calc(var(--spacing)*40)}.h-\\[200px\\]{height:200px}.w-60{width:calc(var(--spacing)*60)}.shrink-0{flex-shrink:0}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.self-end{align-self:flex-end}.border-surface{border-color:var(--color-surface)}.py-1{padding-block:calc(var(--spacing)*1)}.py-10{padding-block:calc(var(--spacing)*10)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.whitespace-pre-line{white-space:pre-line}.text-slate-500{color:var(--color-slate-500)}.opacity-70{opacity:.7}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#0f172a14)}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.text-background{color:var(--color-background)}.bg-pink-100{background-color:var(--color-pink-100)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.text-yellow-500{color:var(--color-yellow-500)}.col-span-1{grid-column:span 1/span 1}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.w-1\\/2{width:50%}.max-w-32{max-width:calc(var(--spacing)*32)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)}.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%}.bg-secondary{background-color:var(--color-secondary)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-green-700{color:var(--color-green-700)}.text-red-700{color:var(--color-red-700)}.capitalize{text-transform:capitalize}.opacity-100{opacity:1}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components{.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-input,.z-input-area-input,.z-input-area-label,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-button-group-item-tab,.z-button-group-item-tab-selected{border-style:var(--tw-border-style)!important;border-width:0!important}}@layer utilities{.truncate,.whitespace-nowrap{white-space:nowrap}.focus\\:ring-0:focus,.focus\\:ring-2:focus,.shadow,.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}:host{contain:content;display:block}.message-item{display:flex;flex-direction:column;position:relative;width:100%}.message-item-summarized-wrapper{align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block:calc(var(--spacing)*2)}.message-item-summarized-time{margin-bottom:calc(var(--spacing)*1)}.message-item-summarized-text,.message-item-summarized-time{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.message-item-summarized-text{border-radius:var(--radius-xl);max-width:var(--container-sm);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3);white-space:pre-line;--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.message-item-user-event-wrapper{align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block:calc(var(--spacing)*2)}.message-item-user-event-time{margin-bottom:calc(var(--spacing)*1)}.message-item-user-event-text,.message-item-user-event-time{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.message-item-user-event-text{border-radius:var(--radius-xl);max-width:var(--container-sm);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3);text-align:center;white-space:pre-line;--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.message-item-user-event-icon{color:var(--color-green-500);display:inline-block;height:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*1);margin-right:calc(var(--spacing)*1);width:calc(var(--spacing)*3)}.message-item-activity-log-wrapper{align-items:center;border-radius:var(--radius-md);display:flex;flex-direction:row;justify-content:center;padding-block:calc(var(--spacing)*2)}.message-item-activity-log-wrapper:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-300)}.message-item-activity-log-timestamp{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));white-space:nowrap}.message-item-activity-log-action{align-items:center;display:flex;font-size:var(--text-sm);gap:calc(var(--spacing)*2);justify-content:center;line-height:var(--tw-leading,var(--text-sm--line-height));width:100%}.message-item-activity-log-text{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-item-activity-log-chip{align-items:center;display:flex;gap:calc(var(--spacing)*2)}.message-item-content-wrapper{align-items:center;display:flex;flex-direction:row}.message-item-content-avatar-wrapper{cursor:pointer;margin-block:auto;margin-right:calc(var(--spacing)*2)}.message-item-content-reply-wrapper{display:flex;flex-direction:column}.message-item-content-reply-jump-to-message{align-items:center;cursor:pointer;display:flex;flex-direction:row;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-bottom:calc(var(--spacing)*2)}.message-item-content-message-wrapper{align-items:center;display:flex;position:relative}:where(.message-item-content-message-wrapper>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.message-item-content-message-loading{animation:var(--animate-spin);height:calc(var(--spacing)*5);margin-inline:auto;opacity:.5;width:calc(var(--spacing)*5)}.message-item-content-misc{align-items:center;display:flex;flex-direction:row;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*.5)}.message-item-content-user-spacer{margin-right:calc(var(--spacing)*2);margin-top:calc(var(--spacing)*1);width:calc(var(--spacing)*8)}.message-item-content-error-wrapper{align-items:center;border-radius:var(--radius-md);color:var(--color-red-500);display:flex;gap:calc(var(--spacing)*1);margin-bottom:calc(var(--spacing)*.5)}.message-item-content-error-text{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-item-content-reader-wrapper{align-items:center;display:flex;flex-direction:row;gap:calc(var(--spacing)*.5);justify-content:flex-end;margin-bottom:calc(var(--spacing)*2.5)}.message-item-content-reader-name{align-items:center;border-radius:3.40282e+38px;color:var(--color-theme-gray);display:flex;font-size:8px;height:calc(var(--spacing)*3);justify-content:center;width:calc(var(--spacing)*3)}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-tab:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-unselected:hover{background-color:var(--color-white)}.z-button-group-item-primary-unselected:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-outlined-unselected:hover{background-color:#e028481a}@supports (color:color-mix(in lab,red,red)){.z-button-group-item-outlined-unselected:hover{background-color:color-mix(in oklab,var(--color-primary)10%,transparent);background-color:color-mix(in srgb,#e0284810%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-background:hover{background-color:var(--color-background)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:opacity-100:hover{opacity:1}.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}@media (min-width:40rem){.container{max-width:40rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:min-w-0{min-width:calc(var(--spacing)*0)}.sm\\:flex-row{flex-direction:row}}@media (min-width:48rem){.container{max-width:48rem}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:64rem){.container{max-width:64rem}.lg\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}}";
|
|
17
|
+
|
|
18
|
+
const MessageItem = /*@__PURE__*/ proxyCustomElement(class MessageItem extends H {
|
|
19
|
+
constructor(registerHost) {
|
|
20
|
+
super();
|
|
21
|
+
if (registerHost !== false) {
|
|
22
|
+
this.__registerHost();
|
|
23
|
+
}
|
|
24
|
+
this.focusRequested = createEvent(this, "focusRequested");
|
|
25
|
+
}
|
|
26
|
+
item;
|
|
27
|
+
replyMessage;
|
|
28
|
+
isLoading = false;
|
|
29
|
+
focusRequested;
|
|
30
|
+
componentShouldUpdate(newValue, oldValue, propName) {
|
|
31
|
+
// Only check the item prop
|
|
32
|
+
if (propName !== 'item')
|
|
33
|
+
return true;
|
|
34
|
+
if (!newValue || !oldValue)
|
|
35
|
+
return true;
|
|
36
|
+
// Only update if key properties changed
|
|
37
|
+
return (newValue.id !== oldValue.id ||
|
|
38
|
+
newValue.text !== oldValue.text ||
|
|
39
|
+
newValue.translatedText !== oldValue.translatedText ||
|
|
40
|
+
newValue.isSending !== oldValue.isSending ||
|
|
41
|
+
newValue.type !== oldValue.type ||
|
|
42
|
+
newValue.error_data !== oldValue.error_data ||
|
|
43
|
+
newValue.menu_list !== oldValue.menu_list ||
|
|
44
|
+
newValue.buttons !== oldValue.buttons);
|
|
45
|
+
}
|
|
46
|
+
async componentWillLoad() {
|
|
47
|
+
const { text, translatedText } = this.item;
|
|
48
|
+
const translationSettings = configStore.get('translationSettings');
|
|
49
|
+
if (text && translationSettings.is_auto) {
|
|
50
|
+
if (!translatedText) {
|
|
51
|
+
this.handleTranslateMessages(this.item.id);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
handleTranslateMessages = async (messageId) => {
|
|
56
|
+
try {
|
|
57
|
+
this.isLoading = true;
|
|
58
|
+
const translatedResponse = await getTranslation({
|
|
59
|
+
chat_id: selectedChatStore.get('selectedChat')?.id,
|
|
60
|
+
message_ids: [messageId],
|
|
61
|
+
});
|
|
62
|
+
const messages = messagesStore.get('messages');
|
|
63
|
+
const idx = messages.findIndex(message => message.id === messageId);
|
|
64
|
+
if (idx !== -1) {
|
|
65
|
+
const translatedText = translatedResponse.find(message => message.message_id === messageId);
|
|
66
|
+
if (translatedText) {
|
|
67
|
+
const updatedMessages = [
|
|
68
|
+
{
|
|
69
|
+
...messages[idx],
|
|
70
|
+
translatedText: translatedText.translated_text,
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
serviceUpdateMessageItems({ updateMessages: updatedMessages });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
handleError(error, 'Failed to translate chat message');
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
this.isLoading = false;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
renderTimestamp = (date) => h("span", null, isToday(date) ? displayTime(date) : displayDateTime(date));
|
|
85
|
+
renderActivityChips = () => {
|
|
86
|
+
const from = this.item?.from;
|
|
87
|
+
const to = this.item?.to;
|
|
88
|
+
const item = this.item?.item;
|
|
89
|
+
const renderChip = (chip) => chip && h(ZTagOrStatusItem, { item: { id: '', name: chip.name, color: chip.color, sequence: 0 } });
|
|
90
|
+
return (h("div", { class: "message-item-activity-log-chip" }, from && renderChip(from), this.item?.action === 'change' && h("span", { class: "text-xs text-theme-gray" }, "\u2192"), to && renderChip(to), item && renderChip(item)));
|
|
91
|
+
};
|
|
92
|
+
getActionText = (t) => {
|
|
93
|
+
if (!this.item)
|
|
94
|
+
return '';
|
|
95
|
+
const { action, sender } = this.item;
|
|
96
|
+
const type = this.item.from?.type || this.item.to?.type || this.item.item?.type || '';
|
|
97
|
+
const base = t('profile_tab.activity_action')
|
|
98
|
+
.replace('{action}', t(`${action}`))
|
|
99
|
+
.replace('{type}', t(`${type}`))
|
|
100
|
+
.toLowerCase();
|
|
101
|
+
return `${sender?.name} ${base}`;
|
|
102
|
+
};
|
|
103
|
+
render() {
|
|
104
|
+
const t = useTranslation();
|
|
105
|
+
const { sender, message_at, reply_message, text } = this.item;
|
|
106
|
+
const numberFormatter = Intl.NumberFormat();
|
|
107
|
+
const isMobile = responsiveStore.get('isMobile');
|
|
108
|
+
const translationSettings = configStore.get('translationSettings');
|
|
109
|
+
const selectedChat = selectedChatStore.get('selectedChat');
|
|
110
|
+
const readsMap = messagesStore.get('readsMap');
|
|
111
|
+
const isUser = sender.type === 'user';
|
|
112
|
+
const isDisabledReply = selectedChat?.channel === 'instagram';
|
|
113
|
+
const isSummarized = this.item.type === 'summarized_chat';
|
|
114
|
+
const isActivityLog = this.item.type === 'activity_log';
|
|
115
|
+
const isUserEvent = this.item.type === 'zwiz_user_event';
|
|
116
|
+
const isDisplayTranslate = selectedChat?.language !== null &&
|
|
117
|
+
selectedChat?.language !== translationSettings.target_language &&
|
|
118
|
+
!translationSettings.exclude_languages.includes(selectedChat?.language) &&
|
|
119
|
+
(this.item?.text?.length || 0) > 0 &&
|
|
120
|
+
!translationSettings.is_auto;
|
|
121
|
+
const menuItems = [
|
|
122
|
+
...(isDisabledReply
|
|
123
|
+
? []
|
|
124
|
+
: [
|
|
125
|
+
{
|
|
126
|
+
label: t('chat_tab.reply'),
|
|
127
|
+
value: 'reply',
|
|
128
|
+
onClick: () => {
|
|
129
|
+
selectedMessageToReplyStore.set('selectedMessageToReply', this.item);
|
|
130
|
+
this.focusRequested.emit();
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
]),
|
|
134
|
+
...(isDisplayTranslate
|
|
135
|
+
? [
|
|
136
|
+
{
|
|
137
|
+
label: t('translate'),
|
|
138
|
+
value: 'translate',
|
|
139
|
+
onClick: () => this.handleTranslateMessages(this.item.id),
|
|
140
|
+
},
|
|
141
|
+
]
|
|
142
|
+
: []),
|
|
143
|
+
];
|
|
144
|
+
const _readers = readsMap[this.item.id] || [];
|
|
145
|
+
const handleShowProfile = () => {
|
|
146
|
+
if (isMobile) {
|
|
147
|
+
profilePanelStore.set('isShow', true);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const handleJumpToMessage = async (messageId) => {
|
|
151
|
+
try {
|
|
152
|
+
const isSuccessScroll = scrollToMessage(messageId);
|
|
153
|
+
if (!isSuccessScroll) {
|
|
154
|
+
this.isLoading = true;
|
|
155
|
+
await handleGetChatMessages({ startMessageId: messageId });
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
const isSuccessScroll = scrollToMessage(messageId);
|
|
158
|
+
if (isSuccessScroll) {
|
|
159
|
+
setTimeout(() => {
|
|
160
|
+
messagesStore.set('jumpMessageId', undefined);
|
|
161
|
+
}, 300);
|
|
162
|
+
}
|
|
163
|
+
}, 500);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
handleError(error, 'Failed to load Chat Messages');
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
this.isLoading = false;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
return (h(Host, { key: '9609e91c65c9b46ddfd97ba7c79d8ecfc5995fc1' }, h("div", { key: 'a2188c72a01a250d1bc32af8c4d3522cf9186524', id: `message-${this.item.id}`, class: "message-item" }, isSummarized ? (h("div", { class: "message-item-summarized-wrapper" }, h("span", { class: "message-item-summarized-time text-theme-gray" }, this.renderTimestamp(message_at), "\u00A0:\u00A0", t('chat_tab.summary')), h("div", { class: "message-item-summarized-text bg-paper text-theme-gray" }, text))) : isUserEvent ? (h("div", { class: "message-item-user-event-wrapper" }, h("span", { class: "message-item-user-event-time text-theme-gray" }, this.renderTimestamp(message_at)), h("div", { class: "message-item-user-event-text bg-paper text-theme-gray" }, h(Icon, { name: "CircleCheck", addClass: "message-item-user-event-icon" }), "\u0E2A\u0E48\u0E07\u00A0", this.item.event_name, "\u00A0Event\u00A0\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08!", this.item.value && h(Fragment, null, h("br", null), "\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19\u00A0", numberFormatter.format(this.item.value || 0))))) : isActivityLog ? (h("div", { id: `message-content-${this.item.id}`, tabIndex: -1, class: "message-item-activity-log-wrapper" }, h("div", { class: `message-item-activity-log-action ${(isMobile && this.item?.from) ? 'flex-col' : 'flex-row'}` }, h("span", { class: "message-item-activity-log-timestamp text-surface" }, this.renderTimestamp(message_at), "\u00A0:\u00A0"), h("div", { class: "message-item-activity-log-text text-surface", title: this.getActionText(t) }, this.getActionText(t)), this.renderActivityChips()))) : (h(Fragment, null, h("div", { class: `message-item-content-wrapper ${isUser ? 'justify-start' : 'justify-end'}` }, isUser && getMessagePicture(sender, selectedChat) && (h("div", { class: "message-item-content-avatar-wrapper", onClick: handleShowProfile }, h("z-avatar", { pictureUrl: getMessagePicture(sender, selectedChat), size: "small" }))), h("div", { class: "message-item-content-reply-wrapper" }, reply_message && (h("div", { class: `message-item-content-reply-jump-to-message ${isUser ? 'justify-start' : 'justify-end'} text-theme-gray`, onClick: () => handleJumpToMessage(reply_message.id) }, h(Icon, { name: "Reply", addClass: "size-3 text-theme-gray" }), "\u00A0", sender.type === 'admin' ? t('you') : getChatName(selectedChat), "\u00A0", t('chat_tab.replied_to'), "\u00A0", reply_message.sender.type === 'admin' ? (sender.type === 'admin' ? t('chat_tab.yourself') : t('you')) : getChatName(selectedChat))), h("div", { class: `message-item-content-message-wrapper ${isUser ? 'justify-start' : 'justify-end'}` }, !isUser && this.item.isSending && h(Icon, { name: "LoaderCircle", addClass: "message-item-content-message-loading text-theme-gray" }), !isUser && menuItems.length > 0 && h("menu-list", { menuItems: menuItems, referenceSelector: `menu-${this.item.id}`, iconName: "EllipsisVertical" }), h("message-content", { item: this.item, onJumpChat: () => handleJumpToMessage(reply_message.id) }), isUser && menuItems.length > 0 && (h("menu-list", { menuItems: menuItems, position: "bottom-start", referenceSelector: `menu-${this.item.id}`, iconName: "EllipsisVertical" }))))), h("div", { class: `message-item-content-misc ${isUser ? 'mb-2.5 justify-start pl-10' : 'mb-0.5 justify-end'} text-theme-gray ${isUser ? 'text-left' : 'text-right'}` }, !isUser && this.item.translatedText && h(Icon, { name: "Languages", addClass: "size-3 text-theme-gray" }), "\u00A0", isUser ? '' : this.item.sender.name, "\u00A0", this.renderTimestamp(message_at), "\u00A0"), this.item.error_data && (h("div", { class: `message-item-content-error-wrapper ${isUser ? 'justify-start' : 'justify-end'}` }, h(Icon, { name: "CircleX", addClass: "size-3" }), h("span", { class: "message-item-content-error-text", title: this.item.error_data.error?.message }, this.item.error_data.error?.message))), _readers.length > 0 && (h("div", { class: "message-item-content-reader-wrapper" }, _readers.map(reader => (h("div", { title: reader.name, class: "message-item-content-reader-name text-theme-gray bg-time-badge" }, reader.picture_url
|
|
174
|
+
? h("z-avatar", { pictureUrl: reader.picture_url, size: "2x-small" })
|
|
175
|
+
: reader.name[0]))))))))));
|
|
176
|
+
}
|
|
177
|
+
static get style() { return messageItemCss; }
|
|
178
|
+
}, [256, "message-item", {
|
|
179
|
+
"item": [16],
|
|
180
|
+
"replyMessage": [32],
|
|
181
|
+
"isLoading": [32]
|
|
182
|
+
}]);
|
|
183
|
+
function defineCustomElement() {
|
|
184
|
+
if (typeof customElements === "undefined") {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const components = ["message-item", "dialog-preview-media", "menu-list", "message-content", "message-media", "z-avatar"];
|
|
188
|
+
components.forEach(tagName => { switch (tagName) {
|
|
189
|
+
case "message-item":
|
|
190
|
+
if (!customElements.get(tagName)) {
|
|
191
|
+
customElements.define(tagName, MessageItem);
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
case "dialog-preview-media":
|
|
195
|
+
if (!customElements.get(tagName)) {
|
|
196
|
+
defineCustomElement$5();
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
case "menu-list":
|
|
200
|
+
if (!customElements.get(tagName)) {
|
|
201
|
+
defineCustomElement$4();
|
|
202
|
+
}
|
|
203
|
+
break;
|
|
204
|
+
case "message-content":
|
|
205
|
+
if (!customElements.get(tagName)) {
|
|
206
|
+
defineCustomElement$3();
|
|
207
|
+
}
|
|
208
|
+
break;
|
|
209
|
+
case "message-media":
|
|
210
|
+
if (!customElements.get(tagName)) {
|
|
211
|
+
defineCustomElement$2();
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
214
|
+
case "z-avatar":
|
|
215
|
+
if (!customElements.get(tagName)) {
|
|
216
|
+
defineCustomElement$1();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,EAAC,QAAQ,EAAG,CAAA,EACzC,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,iCAAiC,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EACrF,EAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAC/B,CACH,CACP,EAEA,QAAQ,CAAC,MAAM,GAAG,CAAC,KAClB,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,qCAAqC,EAAA,EAC7C,QAAQ,CAAC,GAAG,CAAC,MAAM,KAClB,CACE,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAC,gEAAgE,EAErE,EAAA,MAAM,CAAC;AACN,cAAE,CAAU,CAAA,UAAA,EAAA,EAAA,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,IAAI,EAAC,UAAU,EAAG;AAC9D,cAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAEd,CACP,CAAC,CACE,CACP,CACQ,CACZ,CACC,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/message-item/message-item.css?tag=message-item","src/components/message-item/message-item.tsx"],"sourcesContent":[":host {\n display: block;\n contain: content; /* Isolates layout, style, and paint for better performance */\n}\n\n.message-item {\n @apply relative flex w-full flex-col;\n}\n\n.message-item-summarized-wrapper {\n @apply my-2 flex flex-col items-center justify-center;\n}\n\n.message-item-summarized-time {\n @apply mb-1 text-sm;\n}\n\n.message-item-summarized-text {\n @apply max-w-sm rounded-xl px-3 py-2 text-sm whitespace-pre-line shadow-sm;\n}\n\n.message-item-user-event-wrapper {\n @apply my-2 flex flex-col items-center justify-center;\n}\n\n.message-item-user-event-time {\n @apply mb-1 text-sm;\n}\n\n.message-item-user-event-text {\n @apply max-w-sm rounded-xl px-3 py-2 text-center text-sm whitespace-pre-line shadow-sm;\n}\n\n.message-item-user-event-icon {\n @apply mr-1 mb-1 inline-block size-3 text-green-500;\n}\n\n.message-item-activity-log-wrapper {\n @apply flex flex-row items-center justify-center rounded-md py-2 focus:ring-2 focus:ring-blue-300;\n}\n\n.message-item-activity-log-timestamp {\n @apply text-xs whitespace-nowrap;\n}\n\n.message-item-activity-log-action {\n @apply flex w-full items-center justify-center gap-2 text-sm;\n}\n\n.message-item-activity-log-text {\n @apply truncate text-xs;\n}\n\n.message-item-activity-log-chip {\n @apply flex items-center gap-2;\n}\n\n.message-item-content-wrapper {\n @apply flex flex-row items-center;\n}\n\n.message-item-content-avatar-wrapper {\n @apply my-auto mr-2 cursor-pointer;\n}\n\n.message-item-content-reply-wrapper {\n @apply flex flex-col;\n}\n\n.message-item-content-reply-jump-to-message {\n @apply mb-2 flex cursor-pointer flex-row items-center text-xs;\n}\n\n.message-item-content-message-wrapper {\n @apply relative flex items-center space-x-1;\n}\n\n.message-item-content-message-loading {\n @apply mx-auto size-5 animate-spin opacity-50;\n}\n\n.message-item-content-misc {\n @apply mt-0.5 flex flex-row items-center text-xs;\n}\n\n.message-item-content-user-spacer {\n @apply mt-1 mr-2 w-8;\n}\n\n.message-item-content-error-wrapper {\n @apply mb-0.5 flex items-center gap-1 rounded-md text-red-500;\n}\n\n.message-item-content-error-text {\n @apply truncate text-sm;\n}\n\n.message-item-content-reader-wrapper {\n @apply mb-2.5 flex flex-row items-center justify-end gap-0.5;\n}\n\n.message-item-content-reader-name {\n @apply text-theme-gray flex size-3 items-center justify-center rounded-full text-[8px];\n}\n","import { Component, Host, Prop, State, Event, h, EventEmitter, Fragment } from '@stencil/core';\nimport { configStore, messagesStore, profilePanelStore, responsiveStore, selectedChatStore, selectedMessageToReplyStore } from '../../store/store';\nimport { ChatMessageItem, ChatMessageReader } from '../../store/type';\nimport { getMessagePicture, getTranslation, handleGetChatMessages, scrollToMessage, serviceUpdateMessageItems } from '../../store/message';\nimport { displayDateTime, displayTime, isToday } from '../../utils/dayjs';\nimport { Icon } from '../internal-component/icon';\nimport { ZTagOrStatusItem } from '../internal-component/z-tag-or-status-item';\nimport { useTranslation } from '../../utils/utils';\nimport { handleError } from '../../store/dialog';\nimport { getChatName } from '../../store/chat';\n\n@Component({\n tag: 'message-item',\n styleUrl: 'message-item.css',\n})\nexport class MessageItem {\n @Prop() item?: ChatMessageItem;\n\n @State() replyMessage?: ChatMessageItem;\n @State() isLoading = false;\n\n @Event({ bubbles: true, composed: true }) focusRequested!: EventEmitter;\n\n componentShouldUpdate(newValue: ChatMessageItem, oldValue: ChatMessageItem, propName: string) {\n // Only check the item prop\n if (propName !== 'item') return true;\n if (!newValue || !oldValue) return true;\n\n // Only update if key properties changed\n return (\n newValue.id !== oldValue.id ||\n newValue.text !== oldValue.text ||\n newValue.translatedText !== oldValue.translatedText ||\n newValue.isSending !== oldValue.isSending ||\n newValue.type !== oldValue.type ||\n newValue.error_data !== oldValue.error_data ||\n newValue.menu_list !== oldValue.menu_list ||\n newValue.buttons !== oldValue.buttons\n );\n }\n\n async componentWillLoad() {\n const { text, translatedText } = this.item;\n const translationSettings = configStore.get('translationSettings');\n\n if (text && translationSettings.is_auto) {\n if (!translatedText) {\n this.handleTranslateMessages(this.item.id);\n }\n }\n }\n\n private handleTranslateMessages = async (messageId: string) => {\n try {\n this.isLoading = true;\n const translatedResponse = await getTranslation({\n chat_id: selectedChatStore.get('selectedChat')?.id,\n message_ids: [messageId],\n });\n\n const messages = messagesStore.get('messages');\n const idx = messages.findIndex(message => message.id === messageId);\n\n if (idx !== -1) {\n const translatedText = translatedResponse.find(message => message.message_id === messageId);\n if (translatedText) {\n const updatedMessages = [\n {\n ...messages[idx],\n translatedText: translatedText.translated_text,\n },\n ];\n\n serviceUpdateMessageItems({ updateMessages: updatedMessages });\n }\n }\n } catch (error: unknown) {\n handleError(error, 'Failed to translate chat message');\n } finally {\n this.isLoading = false;\n }\n };\n\n private readonly renderTimestamp = (date: Date) => <span>{isToday(date) ? displayTime(date) : displayDateTime(date)}</span>;\n\n private readonly renderActivityChips = () => {\n const from = this.item?.from;\n const to = this.item?.to;\n const item = this.item?.item;\n const renderChip = (chip?: { name: string; color: string }) => chip && <ZTagOrStatusItem item={{ id: '', name: chip.name, color: chip.color, sequence: 0 }} />;\n\n return (\n <div class=\"message-item-activity-log-chip\">\n {from && renderChip(from)}\n {this.item?.action === 'change' && <span class=\"text-xs text-theme-gray\">→</span>}\n {to && renderChip(to)}\n {item && renderChip(item)}\n </div>\n );\n };\n\n private readonly getActionText = (t: ReturnType<typeof useTranslation>) => {\n if (!this.item) return '';\n const { action, sender } = this.item;\n const type = this.item.from?.type || this.item.to?.type || this.item.item?.type || '';\n const base = t('profile_tab.activity_action')\n .replace('{action}', t(`${action}`))\n .replace('{type}', t(`${type}`))\n .toLowerCase();\n return `${sender?.name} ${base}`;\n };\n\n render() {\n const t = useTranslation();\n const { sender, message_at, reply_message, text } = this.item;\n const numberFormatter = Intl.NumberFormat()\n const isMobile = responsiveStore.get('isMobile');\n const translationSettings = configStore.get('translationSettings');\n const selectedChat = selectedChatStore.get('selectedChat');\n const readsMap = messagesStore.get('readsMap');\n const isUser = sender.type === 'user';\n const isDisabledReply = selectedChat?.channel === 'instagram';\n const isSummarized = this.item.type === 'summarized_chat';\n const isActivityLog = this.item.type === 'activity_log';\n const isUserEvent = this.item.type === 'zwiz_user_event';\n const isDisplayTranslate =\n selectedChat?.language !== null &&\n selectedChat?.language !== translationSettings.target_language &&\n !translationSettings.exclude_languages.includes(selectedChat?.language) &&\n (this.item?.text?.length || 0) > 0 &&\n !translationSettings.is_auto;\n\n const menuItems = [\n ...(isDisabledReply\n ? []\n : [\n {\n label: t('chat_tab.reply'),\n value: 'reply',\n onClick: () => {\n selectedMessageToReplyStore.set('selectedMessageToReply', this.item);\n this.focusRequested.emit();\n },\n },\n ]),\n ...(isDisplayTranslate\n ? [\n {\n label: t('translate'),\n value: 'translate',\n onClick: () => this.handleTranslateMessages(this.item.id),\n },\n ]\n : []),\n ];\n const _readers: ChatMessageReader[] = readsMap[this.item.id] || [];\n\n const handleShowProfile = () => {\n if (isMobile) {\n profilePanelStore.set('isShow', true);\n }\n };\n\n const handleJumpToMessage = async (messageId: string) => {\n try {\n const isSuccessScroll = scrollToMessage(messageId);\n if (!isSuccessScroll) {\n this.isLoading = true;\n await handleGetChatMessages({ startMessageId: messageId });\n\n setTimeout(() => {\n const isSuccessScroll = scrollToMessage(messageId);\n if (isSuccessScroll) {\n setTimeout(() => {\n messagesStore.set('jumpMessageId', undefined);\n }, 300);\n }\n }, 500);\n }\n } catch (error) {\n handleError(error, 'Failed to load Chat Messages');\n } finally {\n this.isLoading = false;\n }\n };\n\n return (\n <Host>\n <div id={`message-${this.item.id}`} class=\"message-item\">\n {\n isSummarized ? (\n <div class=\"message-item-summarized-wrapper\">\n <span class=\"message-item-summarized-time text-theme-gray\">\n {this.renderTimestamp(message_at)} : {t('chat_tab.summary')}\n </span>\n <div class=\"message-item-summarized-text bg-paper text-theme-gray\">{text}</div>\n </div>\n ) : isUserEvent ? (\n <div class=\"message-item-user-event-wrapper\">\n <span class=\"message-item-user-event-time text-theme-gray\">\n {this.renderTimestamp(message_at)}\n </span>\n <div class=\"message-item-user-event-text bg-paper text-theme-gray\">\n <Icon name=\"CircleCheck\" addClass=\"message-item-user-event-icon\" />\n ส่ง {this.item.event_name} Event สำเร็จ!\n {this.item.value && <Fragment><br />ยอดเงิน {numberFormatter.format(this.item.value as number || 0)}</Fragment>}\n </div>\n </div>\n ) : isActivityLog ? (\n <div id={`message-content-${this.item.id}`} tabIndex={-1} class=\"message-item-activity-log-wrapper\">\n <div class={`message-item-activity-log-action ${(isMobile && this.item?.from) ? 'flex-col' : 'flex-row'}`}>\n <span class=\"message-item-activity-log-timestamp text-surface\">{this.renderTimestamp(message_at)} : </span>\n <div class=\"message-item-activity-log-text text-surface\" title={this.getActionText(t)}>\n {this.getActionText(t)}\n </div>\n {this.renderActivityChips()}\n </div>\n </div>\n ) : (\n <Fragment>\n {/* Content */}\n <div class={`message-item-content-wrapper ${isUser ? 'justify-start' : 'justify-end'}`}>\n {isUser && getMessagePicture(sender, selectedChat) && (\n <div class=\"message-item-content-avatar-wrapper\" onClick={handleShowProfile}>\n {/* Avatar */}\n <z-avatar pictureUrl={getMessagePicture(sender, selectedChat)} size=\"small\" />\n </div>\n )}\n\n <div class=\"message-item-content-reply-wrapper\">\n {/* Reply */}\n {reply_message && (\n <div\n class={`message-item-content-reply-jump-to-message ${isUser ? 'justify-start' : 'justify-end'} text-theme-gray`}\n onClick={() => handleJumpToMessage(reply_message.id)}\n >\n <Icon name=\"Reply\" addClass=\"size-3 text-theme-gray\" />\n \n {sender.type === 'admin' ? t('you') : getChatName(selectedChat)} \n {t('chat_tab.replied_to')} \n {reply_message.sender.type === 'admin' ? (sender.type === 'admin' ? t('chat_tab.yourself') : t('you')) : getChatName(selectedChat)}\n </div>\n )}\n\n <div class={`message-item-content-message-wrapper ${isUser ? 'justify-start' : 'justify-end'}`}>\n {/* Loader sending message */}\n {!isUser && this.item.isSending && <Icon name=\"LoaderCircle\" addClass=\"message-item-content-message-loading text-theme-gray\" />}\n\n {!isUser && menuItems.length > 0 && <menu-list menuItems={menuItems} referenceSelector={`menu-${this.item.id}`} iconName=\"EllipsisVertical\" />}\n\n {/* Message */}\n <message-content item={this.item} onJumpChat={() => handleJumpToMessage(reply_message.id)} />\n\n {isUser && menuItems.length > 0 && (\n <menu-list menuItems={menuItems} position=\"bottom-start\" referenceSelector={`menu-${this.item.id}`} iconName=\"EllipsisVertical\" />\n )}\n </div>\n\n {/* {badge && (\n <div\n class={`absolute -bottom-2 ${isUser ? 'left-full ml-2' : 'right-full mr-2'} size-6 rounded-full bg-yellow-300 text-xs flex items-center justify-center`}\n >\n {badge}\n </div>\n )} */}\n </div>\n </div>\n\n <div class={`message-item-content-misc ${isUser ? 'mb-2.5 justify-start pl-10' : 'mb-0.5 justify-end'} text-theme-gray ${isUser ? 'text-left' : 'text-right'}`}>\n {!isUser && this.item.translatedText && <Icon name=\"Languages\" addClass=\"size-3 text-theme-gray\" />} \n {isUser ? '' : this.item.sender.name} \n {this.renderTimestamp(message_at)} \n </div>\n\n {this.item.error_data && (\n <div class={`message-item-content-error-wrapper ${isUser ? 'justify-start' : 'justify-end'}`}>\n <Icon name=\"CircleX\" addClass=\"size-3\" />\n <span class=\"message-item-content-error-text\" title={this.item.error_data.error?.message}>\n {this.item.error_data.error?.message}\n </span>\n </div>\n )}\n\n {_readers.length > 0 && (\n <div class=\"message-item-content-reader-wrapper\">\n {_readers.map(reader => (\n <div\n title={reader.name}\n class=\"message-item-content-reader-name text-theme-gray bg-time-badge\"\n >\n {reader.picture_url\n ? <z-avatar pictureUrl={reader.picture_url} size=\"2x-small\" />\n : reader.name[0]\n }\n </div>\n ))}\n </div>\n )}\n </Fragment>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|