zignal-stencil-library 1.1.109 → 1.1.111
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/app-globals-V2Kpy_OQ.js.map +1 -1
- package/dist/cjs/autocomplete-address_43.cjs.entry.js +269 -163
- package/dist/cjs/{dayjs-Dssqvl2P.js → dayjs-Fs60i07x.js} +3 -3
- package/dist/cjs/dayjs-Fs60i07x.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/quick-message-app.cjs.entry.js +3 -3
- package/dist/cjs/zignal-stencil-library.cjs.js +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.js +4 -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/chat-app/chat-app.css +1 -1
- package/dist/collection/components/chat-header/chat-header.css +1 -1
- package/dist/collection/components/chat-input/chat-input.css +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.js +42 -25
- 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-search/dialog-search.css +1 -1
- package/dist/collection/components/internal-component/merge-user-view.js +1 -1
- package/dist/collection/components/internal-component/merge-user-view.js.map +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
- package/dist/collection/components/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu-list/menu-list.js +23 -2
- 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-content/message-content.css +1 -1
- package/dist/collection/components/message-item/message-item.css +1 -1
- package/dist/collection/components/message-item/message-item.js +4 -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/profile-history/profile-history.css +1 -1
- package/dist/collection/components/profile-history/profile-history.js +14 -22
- 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 +27 -42
- package/dist/collection/components/profile-info/profile-info.js.map +1 -1
- package/dist/collection/components/profile-info/user-info-section.js +42 -4
- package/dist/collection/components/profile-info/user-info-section.js.map +1 -1
- package/dist/collection/components/profile-media/profile-media.css +1 -1
- package/dist/collection/components/profile-media/profile-media.js +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.js +6 -6
- 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 -3
- package/dist/collection/components/quick-message-add-template/quick-message-text-content.js +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.js +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.js +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.js +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 -1
- package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.js +3 -3
- package/dist/collection/components/search-box/search-box.css +1 -1
- package/dist/collection/components/search-box/search-box.js +1 -1
- package/dist/collection/components/status-badge/status-badge.css +1 -1
- package/dist/collection/components/status-badge/status-badge.js +2 -2
- package/dist/collection/components/tag-list/tag-list.css +1 -1
- package/dist/collection/components/tag-list/tag-list.js +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 -2
- package/dist/collection/components/tag-popper/tag-popper.css +1 -1
- package/dist/collection/components/tag-popper/tag-popper.js +2 -2
- package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.js +2 -2
- package/dist/collection/components/z-avatar/z-avatar.css +1 -1
- package/dist/collection/components/z-avatar/z-avatar.js +8 -2
- 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/store/chat.js +6 -1
- package/dist/collection/store/chat.js.map +1 -1
- package/dist/collection/store/message.js +38 -6
- package/dist/collection/store/message.js.map +1 -1
- package/dist/collection/store/store.js +1 -1
- package/dist/collection/store/store.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 +47 -47
- 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-DGF1OMnC.js → p--gZqhhLL.js} +5 -5
- package/dist/components/{p-DGF1OMnC.js.map → p--gZqhhLL.js.map} +1 -1
- package/dist/components/{p-LUMkIl0L.js → p-3jt5iBgO.js} +7 -7
- package/dist/components/{p-LUMkIl0L.js.map → p-3jt5iBgO.js.map} +1 -1
- package/dist/components/{p-BAcE386V.js → p-5S7W_s42.js} +44 -12
- package/dist/components/p-5S7W_s42.js.map +1 -0
- package/dist/components/{p-7VwG3GTl.js → p-5z3Oz7nB.js} +4 -4
- package/dist/components/{p-7VwG3GTl.js.map → p-5z3Oz7nB.js.map} +1 -1
- package/dist/components/{p-Cq3trT50.js → p-8qMMsvE2.js} +6 -6
- package/dist/components/{p-Cq3trT50.js.map → p-8qMMsvE2.js.map} +1 -1
- package/dist/components/{p-Bb01kTl4.js → p-B6HiV-kQ.js} +3 -3
- package/dist/components/{p-Bb01kTl4.js.map → p-B6HiV-kQ.js.map} +1 -1
- package/dist/components/{p--O1ZEUbW.js → p-B7CuMj9y.js} +6 -6
- package/dist/components/{p--O1ZEUbW.js.map → p-B7CuMj9y.js.map} +1 -1
- package/dist/components/{p-DBulpvHu.js → p-BNblLfcs.js} +24 -32
- package/dist/components/p-BNblLfcs.js.map +1 -0
- package/dist/components/{p-BxtUL608.js → p-BOrhSlbo.js} +6 -6
- package/dist/components/p-BOrhSlbo.js.map +1 -0
- package/dist/components/{p-Cr7gI0aa.js → p-Bj6H7JrX.js} +4 -4
- package/dist/components/{p-Cr7gI0aa.js.map → p-Bj6H7JrX.js.map} +1 -1
- package/dist/components/{p-CAzwNTwH.js → p-Bo_qpOg-.js} +5 -5
- package/dist/components/{p-CAzwNTwH.js.map → p-Bo_qpOg-.js.map} +1 -1
- package/dist/components/{p-Db2KItIV.js → p-BrKDVlCP.js} +10 -4
- package/dist/components/p-BrKDVlCP.js.map +1 -0
- package/dist/components/{p-C0an_Y-_.js → p-C-YLmbpA.js} +4 -4
- package/dist/components/{p-C0an_Y-_.js.map → p-C-YLmbpA.js.map} +1 -1
- package/dist/components/{p-D3TCeN-_.js → p-C-hvo0Uo.js} +17 -15
- package/dist/components/p-C-hvo0Uo.js.map +1 -0
- package/dist/components/{p-DKZZLjoB.js → p-C0MuZqgR.js} +4 -4
- package/dist/components/{p-DKZZLjoB.js.map → p-C0MuZqgR.js.map} +1 -1
- package/dist/components/{p-Dhuf9YNy.js → p-C2YAe0Ke.js} +3 -3
- package/dist/components/{p-Dhuf9YNy.js.map → p-C2YAe0Ke.js.map} +1 -1
- package/dist/components/{p-Bfvlw-rF.js → p-C7MtMQaw.js} +3 -3
- package/dist/components/{p-Bfvlw-rF.js.map → p-C7MtMQaw.js.map} +1 -1
- package/dist/components/p-C7n7EjKD.js +61 -0
- package/dist/components/{p-V8jogkYH.js.map → p-C7n7EjKD.js.map} +1 -1
- package/dist/components/{p-BLIkH1Mo.js → p-C9OqpwzA.js} +49 -63
- package/dist/components/p-C9OqpwzA.js.map +1 -0
- package/dist/components/{p-Ca9LbW-0.js → p-CB09ePCJ.js} +7 -7
- package/dist/components/{p-Ca9LbW-0.js.map → p-CB09ePCJ.js.map} +1 -1
- package/dist/components/{p-DVnAr27s.js → p-CBGDhDhT.js} +6 -6
- package/dist/components/{p-DVnAr27s.js.map → p-CBGDhDhT.js.map} +1 -1
- package/dist/components/{p-BEYgWj6b.js → p-CDPdfHLJ.js} +3 -3
- package/dist/components/{p-BEYgWj6b.js.map → p-CDPdfHLJ.js.map} +1 -1
- package/dist/components/{p-CQYTqV0b.js → p-CH39HrFZ.js} +7 -7
- package/dist/components/{p-CQYTqV0b.js.map → p-CH39HrFZ.js.map} +1 -1
- package/dist/components/{p-a8Ave0b1.js → p-CZRPZKJ-.js} +11 -6
- package/dist/components/p-CZRPZKJ-.js.map +1 -0
- package/dist/components/{p-D5PoL4hp.js → p-CbjDD_ZV.js} +4 -4
- package/dist/components/{p-D5PoL4hp.js.map → p-CbjDD_ZV.js.map} +1 -1
- package/dist/components/{p-DeqB7qmW.js → p-CbwYwjdH.js} +3 -3
- package/dist/components/{p-DeqB7qmW.js.map → p-CbwYwjdH.js.map} +1 -1
- package/dist/components/{p-xDz70z-M.js → p-CeHDqun7.js} +5 -5
- package/dist/components/{p-xDz70z-M.js.map → p-CeHDqun7.js.map} +1 -1
- package/dist/components/{p-C6_QUEmP.js → p-CgTZtTmT.js} +25 -25
- package/dist/components/p-CgTZtTmT.js.map +1 -0
- package/dist/components/{p-lh6oIsdX.js → p-CjdpcyF4.js} +15 -15
- package/dist/components/{p-lh6oIsdX.js.map → p-CjdpcyF4.js.map} +1 -1
- package/dist/components/{p-CaKYRiqR.js → p-CtIwL686.js} +4 -4
- package/dist/components/{p-CaKYRiqR.js.map → p-CtIwL686.js.map} +1 -1
- package/dist/components/{p-fbMxRrBR.js → p-Cw5rK8nZ.js} +6 -6
- package/dist/components/{p-fbMxRrBR.js.map → p-Cw5rK8nZ.js.map} +1 -1
- package/dist/components/{p-Cl7hIV7X.js → p-Cy-sLMQG.js} +6 -6
- package/dist/components/{p-Cl7hIV7X.js.map → p-Cy-sLMQG.js.map} +1 -1
- package/dist/components/{p-Bz_ZwZP1.js → p-D-3sn9sH.js} +9 -8
- package/dist/components/p-D-3sn9sH.js.map +1 -0
- package/dist/components/{p-BVEUC5lT.js → p-D-75lLYc.js} +9 -7
- package/dist/components/p-D-75lLYc.js.map +1 -0
- package/dist/components/{p-BsAFeM-5.js → p-DCmuKByr.js} +12 -12
- package/dist/components/{p-BsAFeM-5.js.map → p-DCmuKByr.js.map} +1 -1
- package/dist/components/{p-DozNuTlX.js → p-DG0KCn3k.js} +45 -28
- package/dist/components/p-DG0KCn3k.js.map +1 -0
- package/dist/components/{p-DI7kfodM.js → p-DGC5KYEl.js} +19 -19
- package/dist/components/{p-DI7kfodM.js.map → p-DGC5KYEl.js.map} +1 -1
- package/dist/components/{p-D4jpzhhj.js → p-DHM0YbIt.js} +6 -6
- package/dist/components/{p-D4jpzhhj.js.map → p-DHM0YbIt.js.map} +1 -1
- package/dist/components/{p-C0WNBAqe.js → p-DRC94y7I.js} +5 -5
- package/dist/components/{p-C0WNBAqe.js.map → p-DRC94y7I.js.map} +1 -1
- package/dist/components/p-Dnb_md64.js +140 -0
- package/dist/components/p-Dnb_md64.js.map +1 -0
- package/dist/components/{p-Bi4p_UFq.js → p-Dv5lS2bl.js} +10 -10
- package/dist/components/{p-Bi4p_UFq.js.map → p-Dv5lS2bl.js.map} +1 -1
- package/dist/components/{p-DKrfS1S5.js → p-DwRMNFnU.js} +3 -3
- package/dist/components/{p-DKrfS1S5.js.map → p-DwRMNFnU.js.map} +1 -1
- package/dist/components/{p-DTALiLAZ.js → p-My1l3OBd.js} +4 -4
- package/dist/components/{p-DTALiLAZ.js.map → p-My1l3OBd.js.map} +1 -1
- package/dist/components/{p-Khnj_GHE.js → p-PLHiwThd.js} +3 -3
- package/dist/components/{p-Khnj_GHE.js.map → p-PLHiwThd.js.map} +1 -1
- package/dist/components/{p-BPSZx5dO.js → p-UWiH2uHw.js} +46 -3
- package/dist/components/p-UWiH2uHw.js.map +1 -0
- package/dist/components/{p-B8KaZkC1.js → p-XunATCgp.js} +13 -13
- package/dist/components/{p-B8KaZkC1.js.map → p-XunATCgp.js.map} +1 -1
- package/dist/components/{p-BvfI15a9.js → p-av8MQL9x.js} +8 -8
- package/dist/components/{p-BvfI15a9.js.map → p-av8MQL9x.js.map} +1 -1
- package/dist/components/{p-DagQghge.js → p-drInZwO0.js} +7 -7
- package/dist/components/{p-DagQghge.js.map → p-drInZwO0.js.map} +1 -1
- package/dist/components/{p-C2y4A6PK.js → p-htsjbc2A.js} +5 -5
- package/dist/components/{p-C2y4A6PK.js.map → p-htsjbc2A.js.map} +1 -1
- package/dist/components/{p-VAINz5I8.js → p-kbTcbS6Y.js} +29 -29
- package/dist/components/{p-VAINz5I8.js.map → p-kbTcbS6Y.js.map} +1 -1
- package/dist/components/{p-COEdIJkP.js → p-l6ffmvGW.js} +5 -5
- package/dist/components/{p-COEdIJkP.js.map → p-l6ffmvGW.js.map} +1 -1
- package/dist/components/{p-D1eldCje.js → p-m4eaolum.js} +4 -4
- package/dist/components/{p-D1eldCje.js.map → p-m4eaolum.js.map} +1 -1
- package/dist/components/p-mVYojO3m.js +161 -0
- package/dist/components/{p-DkAZFStQ.js.map → p-mVYojO3m.js.map} +1 -1
- package/dist/components/{p-Bfsq37ia.js → p-maYXfa3o.js} +6 -6
- package/dist/components/{p-Bfsq37ia.js.map → p-maYXfa3o.js.map} +1 -1
- package/dist/components/{p-CTSEDIyo.js → p-p3q1OJSb.js} +12 -12
- package/dist/components/{p-CTSEDIyo.js.map → p-p3q1OJSb.js.map} +1 -1
- package/dist/components/{p-BcvqaW9a.js → p-tkW40LmD.js} +9 -9
- package/dist/components/{p-BcvqaW9a.js.map → p-tkW40LmD.js.map} +1 -1
- package/dist/components/{p-LsQYRhK6.js → p-x8gJGTdZ.js} +3 -3
- package/dist/components/p-x8gJGTdZ.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 +13 -13
- package/dist/components/quick-message-button-content.js +1 -1
- package/dist/components/quick-message-file.js +1 -1
- package/dist/components/quick-message-image-content.js +1 -1
- package/dist/components/quick-message-image.js +1 -1
- package/dist/components/quick-message-menu-list-content.js +1 -1
- package/dist/components/quick-message-modal.js +1 -1
- package/dist/components/quick-message-template.js +1 -1
- package/dist/components/quick-message-text-content.js +1 -1
- package/dist/components/quick-message-video-content.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/app-globals-DQuL1Twl.js.map +1 -1
- package/dist/esm/autocomplete-address_43.entry.js +269 -163
- package/dist/esm/{dayjs-9U43dXkE.js → dayjs-CBRfzh5w.js} +4 -4
- package/dist/esm/dayjs-CBRfzh5w.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/quick-message-app.entry.js +3 -3
- package/dist/esm/zignal-stencil-library.js +1 -1
- package/dist/types/components/menu-list/menu-list.d.ts +3 -2
- package/dist/types/components/profile-history/profile-history.d.ts +1 -0
- package/dist/types/components/profile-info/profile-info.d.ts +2 -2
- package/dist/types/components/profile-info/user-info-section.d.ts +2 -0
- package/dist/types/components/z-avatar/z-avatar.d.ts +1 -1
- package/dist/types/components.d.ts +12 -2
- package/dist/types/store/store.d.ts +1 -1
- package/dist/zignal-stencil-library/{p-605cf9fb.entry.js → p-4976f186.entry.js} +2 -2
- package/dist/zignal-stencil-library/p-CZlSuaCa.js +2 -0
- package/dist/zignal-stencil-library/p-CZlSuaCa.js.map +1 -0
- package/dist/zignal-stencil-library/p-DQuL1Twl.js.map +1 -1
- package/dist/zignal-stencil-library/{p-d9b292e2.entry.js → p-c349823b.entry.js} +64 -64
- package/dist/zignal-stencil-library/p-c349823b.entry.js.map +1 -0
- package/dist/zignal-stencil-library/zignal-stencil-library.css +1 -1
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/dayjs-Dssqvl2P.js.map +0 -1
- package/dist/components/p-BAcE386V.js.map +0 -1
- package/dist/components/p-BLIkH1Mo.js.map +0 -1
- package/dist/components/p-BPSZx5dO.js.map +0 -1
- package/dist/components/p-BVEUC5lT.js.map +0 -1
- package/dist/components/p-BxtUL608.js.map +0 -1
- package/dist/components/p-Bz_ZwZP1.js.map +0 -1
- package/dist/components/p-C6_QUEmP.js.map +0 -1
- package/dist/components/p-D3TCeN-_.js.map +0 -1
- package/dist/components/p-DBulpvHu.js.map +0 -1
- package/dist/components/p-DE1veeiP.js +0 -116
- package/dist/components/p-DE1veeiP.js.map +0 -1
- package/dist/components/p-Db2KItIV.js.map +0 -1
- package/dist/components/p-DkAZFStQ.js +0 -161
- package/dist/components/p-DozNuTlX.js.map +0 -1
- package/dist/components/p-LsQYRhK6.js.map +0 -1
- package/dist/components/p-V8jogkYH.js +0 -61
- package/dist/components/p-a8Ave0b1.js.map +0 -1
- package/dist/esm/dayjs-9U43dXkE.js.map +0 -1
- package/dist/zignal-stencil-library/p-DO7BhE7i.js +0 -2
- package/dist/zignal-stencil-library/p-DO7BhE7i.js.map +0 -1
- package/dist/zignal-stencil-library/p-d9b292e2.entry.js.map +0 -1
- /package/dist/zignal-stencil-library/{p-605cf9fb.entry.js.map → p-4976f186.entry.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-BVEUC5lT.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,49mDAA49mD;;MCUn+mD,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAAC,CAAA,CAAA;;;;;;;;IACX,SAAS,GAAmB,EAAE;IAC9B,QAAQ,GAAc,YAAY;AAClC,IAAA,iBAAiB;AACjB,IAAA,QAAQ;AACR,IAAA,WAAW;IACX,OAAO,GAAqB,MAAM;IAEjC,MAAM,GAAY,KAAK;AAEvB,IAAA,aAAa;AAEd,IAAA,SAAS;AACT,IAAA,QAAQ;AAER,IAAA,OAAO;IAEf,gBAAgB,GAAA;QACd,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC3D,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,IAAI,CAAC,iBAAiB,CAAC;;IAGtE,oBAAoB,GAAA;QAClB,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC9D,MAAM,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,I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I,CAAC,QAAQ,EACvB,OAAO,EAAE,KAAK,IAAG;gBACf,KAAK,CAAC,eAAe,EAAE;gBACvB,IAAI,CAAC,UAAU,EAAE;aAClB,EACD,SAAS,EACT,IAAA,EAAA,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,EAChC,EAAE,EAAE,IAAI,CAAC,iBAAiB,EAC1B,KAAK,EAAE,IAAI,CAAC,WAAW,EACvB,CAAA,EAEF,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,EAC/B,KAAK,EAAE,CAAqB,kBAAA,EAAA,KAAK,CAAW,QAAA,EAAA,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,SAAS,CAAE,CAAA,EAAA,EAElF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAC5C,CAAA,CAAA,KAAA,EAAA,EACE,GAAG,EAAE,KAAK,EACV,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,MAAK;AACZ,gBAAA,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;AAC3B,gBAAA,IAAI,OAAO;AAAE,oBAAA,OAAO,EAAE;aACvB,EAAA,EAEA,KAAK,CACF,CACP,CAAC,CACE,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-list/menu-list.css?tag=menu-list","src/components/menu-list/menu-list.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.menu-list {\n @apply absolute left-0 mt-1 w-32 shadow-lg rounded-md z-50 text-sm\n}\n\n.menu-list-item {\n @apply px-4 py-2 hover:brightness-110 cursor-pointer\n}","import { Component, EventEmitter, Host, Event, Prop, State, h } from '@stencil/core';\nimport { computePosition, autoUpdate, offset, flip, shift, Placement } from '@floating-ui/dom';\nimport { ZIconButton } from '../internal-component/z-icon-button';\nimport { configStore } from '../../store/store';\nimport { MenuListItem } from '../../store/type';\n\n@Component({\n tag: 'menu-list',\n styleUrl: 'menu-list.css',\n})\nexport class MenuList {\n @Prop() menuItems: MenuListItem[] = [];\n @Prop() position: Placement = 'bottom-end';\n @Prop() referenceSelector: string;\n @Prop() iconName: string;\n @Prop() buttonTitle?: string;\n @Prop() variant?: 'text' | 'none' = 'text';\n\n @State() isOpen: boolean = false;\n\n @Event() menuItemClick: EventEmitter<string>;\n\n private triggerEl!: HTMLElement;\n private popperEl: HTMLDivElement;\n\n private cleanup?: () => void;\n\n componentDidLoad() {\n document.addEventListener('click', this.handleClickOutside);\n window.addEventListener('close-all-poppers', this.handleCloseOthers);\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside);\n window.removeEventListener('close-all-poppers', this.handleCloseOthers);\n this.cleanup?.();\n this.popperEl?.remove();\n }\n\n handleClickOutside = (e: MouseEvent) => {\n const path = e.composedPath();\n if (!path.includes(this.triggerEl) && !path.includes(this.popperEl)) {\n this.isOpen = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n private handleCloseOthers = (e: CustomEvent) => {\n if (e.detail !== this && this.isOpen) {\n this.isOpen = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n handleItemClick(item: string) {\n this.menuItemClick.emit(item);\n this.isOpen = false;\n }\n\n async toggleMenu() {\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n window.dispatchEvent(new CustomEvent('close-all-poppers', { detail: this }));\n\n const referenceEl = document.getElementById(this.referenceSelector);\n if (!referenceEl || !this.popperEl) return;\n\n const container = document.getElementById('chat-app');\n container.appendChild(this.popperEl);\n\n this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {\n computePosition(referenceEl, this.popperEl, {\n placement: this.position,\n middleware: [offset(4), flip(), shift()],\n }).then(({ x, y }) => {\n Object.assign(this.popperEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n zIndex: '9999',\n });\n });\n });\n } else {\n this.cleanup?.();\n this.popperEl?.remove();\n }\n }\n\n render() {\n const theme = configStore.get('theme');\n\n return (\n <Host>\n <div class=\"relative\">\n <ZIconButton\n variant={this.variant}\n iconName={this.iconName}\n onClick={event => {\n event.stopPropagation();\n this.toggleMenu();\n }}\n noPadding\n ref={el => (this.triggerEl = el)}\n id={this.referenceSelector}\n title={this.buttonTitle}\n />\n\n <div\n ref={el => (this.popperEl = el)}\n class={`menu-list z-paper-${theme} z-text-${theme} ${this.isOpen ? '' : '!hidden'}`}\n >\n {this.menuItems.map(({ label, value, onClick }) => (\n <div\n key={value}\n class=\"menu-list-item\"\n onClick={() => {\n this.handleItemClick(value);\n if (onClick) onClick();\n }}\n >\n {label}\n </div>\n ))}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-BxtUL608.js","mappings":";;;;;AAmBO,MAAM,aAAa,GAA4C,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAI;IAC3G,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;AACtC,IAAA,QACE,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,iBAAiB,EAAA,EAC1B,CAAA,CAAA,OAAA,EAAA,EACE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,EAAE,EAAE,QAAQ,CAAC,EAAE,EACf,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,KAAK,EAAE,CAAA,qCAAA,EAAwC,KAAK,CAAA,cAAA,EAAiB,KAAK,CAAA,QAAA,EAAW,KAAK,CAAE,CAAA,EAC5F,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,OAAO,EAAE,CAAC,CAAM,KAAK,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxD,SA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,IAAI,CAAC,CAAC,CAC7C,CACF,CACF,KAEN,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,YAAY,EAAA,EACrB,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,oCAAoC,EAC5C,EAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IACtE,IAAI,CAAC,IAAI,CAAC;AACP,aAAA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ;AACtC,aAAA,GAAG,CAAC,IAAI,IAAI,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC,KAElD,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,CAAuB,oBAAA,EAAA,KAAK,EAAE,EAAU,EAAA,GAAA,CAAA,CACtD,CACG,CACF,CACP,CACG,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/internal-component/z-context-input.tsx","src/components/profile-info/profile-info.css?tag=summarize-message-section","src/components/profile-info/summarize-message-section.tsx"],"sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { ZIconButton } from './z-icon-button';\n\ninterface ZContextInputItem {\n id?: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n error?: string;\n disabled?: boolean\n}\ninterface ZContextInputProps {\n keyInput: ZContextInputItem\n valueInput: ZContextInputItem\n onDelete?: () => void\n}\n\nexport const ZContextInput: FunctionalComponent<ZContextInputProps> = ({ keyInput, valueInput, onDelete }) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"z-context-input\">\n <input\n disabled={keyInput.disabled}\n id={keyInput.id}\n placeholder={keyInput.placeholder}\n class={`z-context-input-key z-border-divider-${theme} z-background-${theme} z-text-${theme}`}\n value={keyInput.value}\n onInput={(e: any) => keyInput.onChange?.(e.target.value)}\n onKeyDown={keyInput.onKeyDown}\n autoFocus={true}\n />\n <textarea\n disabled={keyInput.disabled}\n id={valueInput.id}\n placeholder={valueInput.placeholder}\n class={`z-context-input-value z-border-${theme} z-background-${theme} z-text-${theme}`}\n value={valueInput.value}\n onInput={(e: any) => valueInput.onChange?.(e.target.value)}\n rows={1}\n />\n {onDelete &&\n <div class=\"ml-0.5\">\n <ZIconButton variant='text' iconName=\"Trash2\" addClassIcon={`size-4 z-text-primary-${theme}`} onClick={onDelete} />\n </div>\n }\n </div>\n );\n};\n",":host {\n display: block;\n}\n\n.profile-info-user-wrapper {\n @apply grid grid-flow-row-dense grid-cols-3 grid-rows-1 w-full p-4 mb-2\n}\n\n.profile-info-avatar-wrapper {\n @apply col-span-1 my-auto mr-1\n}\n\n.profile-info-avatar-box {\n @apply relative w-full text-center\n}\n\n.profile-info-avatar-badge {\n @apply absolute bottom-[-2px] right-[-2px];\n}\n\n.profile-info-name-wrapper {\n @apply col-span-2 flex flex-col\n}\n\n.profile-info-box-wrapper {\n @apply flex flex-row gap-1 items-center\n}\n\n.profile-info-nickname {\n @apply font-semibold text-base\n}\n\n.profile-info-summarize-wrapper {\n @apply col-span-3 flex flex-row items-center justify-between mt-2\n}\n\n.profile-info-summarize-text {\n @apply col-span-3 mt-1\n}\n\n.profile-info-connection-wrapper {\n @apply flex items-center space-x-1\n}\n\n.profile-info-avatar {\n @apply size-4 rounded-full\n}\n\n.profile-info-content-wrapper-baseline {\n @apply col-span-2 flex flex-row gap-1 items-baseline-last\n}\n\n.profile-info-pre-line {\n @apply text-sm whitespace-pre-line\n}\n\n.profile-info-capitalize {\n @apply text-sm capitalize\n}\n\n.profile-info-tag-wrapper {\n @apply col-span-3 w-full max-h-60 overflow-y-auto\n}\n\n.profile-info-status-wrapper {\n @apply w-fit mt-2 mx-auto\n}\n\n.profile-info-status-bottom-wrapper {\n @apply w-fit mt-4 mx-auto\n}\n\n.profile-info-avatar-box {\n @apply mt-[-40px] flex justify-center\n}\n\n.profile-info {\n @apply relative h-full\n}\n\n.profile-info-compare-wrapper {\n @apply flex flex-row items-center pt-3 mt-[-16px] text-sm\n}\n\n.profile-info-compare-remark-wrapper {\n @apply px-3 pb-3\n}\n\n.profile-info-compare-remark {\n @apply text-xs whitespace-pre-line\n}\n\n.profile-info-match-user-wrapper {\n @apply flex flex-row items-center justify-between mb-3\n}\n\n.profile-info-match-user-container {\n @apply rounded-xl shadow-md w-full my-2 overflow-clip\n}\n\n.profile-info-match-user-box {\n @apply grid grid-cols-2 mb-2\n}\n\n.profile-info-match-user-action-wrapper {\n @apply flex flex-row items-center justify-around\n}\n\n.profile-info-match-user-name-wrapper {\n @apply rounded-xl my-2 mx-4 overflow-x-auto overflow-y-hidden\n}\n\n.profile-info-match-user-table {\n @apply table-auto w-full text-sm\n}\n\n.profile-info-match-user-table-header {\n @apply bg-pink-100 h-10 shadow-sm\n}\n\n.profile-info-match-user-table-label {\n @apply ml-2 mt-2 whitespace-nowrap\n}\n\n.profile-info-match-user-table-value {\n @apply ml-2 mt-2 whitespace-pre-line\n}\n\n.profile-info-match-user-suggest-wrapper {\n @apply flex flex-row items-center justify-between p-3 mt-[-16px] mb-2 text-sm text-white\n}\n\n.profile-info-match-user-suggest-button {\n @apply text-xs underline cursor-pointer\n}\n\n.profile-info-match-user-suggest-user-wrapper {\n @apply flex border-2 rounded-full overflow-hidden w-fit mx-auto p-0.5 mb-1\n}\n\n.profile-info-associated-user-wrapper {\n @apply flex flex-row gap-1 px-2 py-1 items-center border-b-[0.5px] rounded-xs\n}\n\n.profile-info-associated-user-action-wrapper {\n @apply flex flex-row items-center justify-end w-full\n}\n\n.profile-info-drawer-backdrop {\n @apply fixed inset-0 bg-black/40 !left-auto right-0 transition-opacity duration-300\n}\n\n.profile-info-drawer-wrapper {\n @apply fixed right-0 bottom-0 rounded-t-2xl shadow-lg transition-transform duration-300\n}\n\n.profile-info-drawer-content {\n @apply p-2 relative overflow-y-auto max-h-[90vh]\n}\n\n.profile-info-drawer-content-close {\n @apply absolute top-2 right-2\n}\n\n.profile-info-bill {\n @apply col-span-3 mx-auto mt-2\n}\n\n.profile-info-bill-icon {\n @apply rotate-180 size-2 fill-current\n}\n\n.profile-info-jump-chat-sign {\n @apply flex flex-row items-center justify-center gap-4\n}\n\n.profile-info-section-wrapper {\n @apply border-b-[0.5px] pt-0 min-h-20\n}\n\n.profile-info-refresh-user-button {\n @apply absolute -top-2 right-2\n}","import { Component, Prop, State, h, Event, EventEmitter } from '@stencil/core';\nimport { UserItem, TTagOrStatusItem } from '../../store/type';\nimport { ZIconButton } from '../internal-component/z-icon-button';\nimport { configStore } from '../../store/store';\nimport { ZButton } from '../internal-component/z-button';\nimport { ZContextInput } from '../internal-component/z-context-input';\n\n@Component({\n tag: 'summarize-message-section',\n styleUrl: 'profile-info.css',\n})\nexport class SummarizeMessageSection {\n @Prop() user: UserItem;\n @Prop() readOnly?: boolean = false;\n @Prop() activeTabIndex: number;\n @Prop() isEditSummarizeMessage: boolean;\n @Prop() summarizeMessageItems: {\n item: TTagOrStatusItem;\n isAdd?: boolean;\n isDelete?: boolean;\n }[] = [];\n\n @State() items: {\n item: TTagOrStatusItem;\n isAdd?: boolean;\n isDelete?: boolean;\n }[] = [];\n\n @Event() editSummarizeMessage: EventEmitter<void>;\n @Event() cancelSummarizeMessage: EventEmitter<void>;\n @Event() saveUserSummarizeMessage: EventEmitter<{\n item: TTagOrStatusItem;\n isAdd?: boolean;\n isDelete?: boolean;\n }[]>;\n\n async componentWillLoad() {\n this.items = this.summarizeMessageItems;\n }\n\n render() {\n const theme = configStore.get('theme');\n\n const renderUserContext = (item: {\n item: TTagOrStatusItem;\n isAdd?: boolean;\n isDelete?: boolean;\n },\n isEdit: boolean) => {\n return (<ZContextInput\n keyInput={{\n id: item.item.id,\n placeholder: 'ชื่อหัวข้อ',\n value: item.item.name,\n disabled: !isEdit,\n onChange: (value: string) => {\n this.items = this.items.map(i => {\n if (i.item.id === item.item.id) {\n return {\n ...i,\n item: {\n ...i.item,\n name: value\n }\n };\n }\n return i;\n });\n }\n }}\n valueInput={{\n id: item.item.id,\n placeholder: 'รายละเอียด',\n value: item.item.value,\n disabled: !isEdit,\n onChange: (value: string) => {\n this.items = this.items.map(i => {\n if (i.item.id === item.item.id) {\n return {\n ...i,\n item: {\n ...i.item,\n value: value\n }\n };\n }\n return i;\n });\n }\n }}\n onDelete={\n !isEdit\n ? undefined\n : () => this.items = this.items.filter(it => item.item.id !== it.item.id)\n }\n />)\n }\n\n return (\n <div class={`profile-info-user-wrapper border-b-[0.5px] pt-2 gap-y-1 z-border-divider-${theme}`}>\n <div class=\"col-span-3 profile-info-box-wrapper\">\n <span class={`z-text-${theme} whitespace-nowrap`}>สรุปข้อมูล</span>\n\n {!this.readOnly && this.activeTabIndex === 0 && (\n <slot>\n {this.isEditSummarizeMessage ? (\n <div class=\"profile-info-box-wrapper justify-end w-full\">\n <ZIconButton variant=\"text\" iconName=\"X\" addClassIcon=\"size-4\" onClick={() => this.cancelSummarizeMessage.emit()} />\n <ZIconButton variant=\"text\" iconName=\"Save\" addClassIcon=\"size-4\" onClick={() => this.saveUserSummarizeMessage.emit(this.items)} />\n </div>\n ) : (\n <div class=\"profile-info-box-wrapper justify-end w-full\">\n <ZIconButton variant=\"text\" iconName=\"Pencil\" addClassIcon=\"size-4\" onClick={() => this.editSummarizeMessage.emit()} />\n </div>\n )}\n </slot>\n )}\n </div>\n\n <div class={`profile-info-tag-wrapper scroll-container`}>\n {this.isEditSummarizeMessage ? (\n <div class=\"col-span-3\">\n <div class=\"mb-2\">\n <ZButton\n variant=\"outlined\"\n fullWidth\n label={`+ เพิ่มหัวข้อ`}\n onClick={() => {\n this.items = [\n ...this.items,\n {\n item: {\n id: new Date().getTime().toString(),\n name: ''\n },\n isAdd: true\n }\n ];\n }}\n />\n </div>\n\n <div class=\"mt-2\">\n <div class=\"profile-info-box-wrapper flex-wrap\">\n {this.items.length > 0 &&\n this.items\n .filter(({ isDelete }) => !isDelete)\n .sort((a, b) => a.item.sequence - b.item.sequence)\n .map((item) => renderUserContext(item, true))}\n </div>\n </div>\n </div>\n ) : (\n <div class=\"col-span-3\">\n <div class=\"profile-info-box-wrapper flex-wrap\">\n {this.user.summarize_messages && this.user.summarize_messages.length > 0 ? (\n this.user.summarize_messages\n .sort((a, b) => a.sequence - b.sequence)\n .map(item => renderUserContext({ item }, false))\n ) : (\n <span class={`text-sm z-text-gray-${theme}`}>-</span>\n )}\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-Bz_ZwZP1.js","mappings":";;;;;;AAAA,MAAM,qBAAqB,GAAG,uuoDAAuuoD;;MCWxvoD,kBAAkB,iBAAAA,kBAAA,CAAA,MAAA,kBAAA,SAAAC,CAAA,CAAA;;;;;;;;;IACrB,IAAI,GAAsB,QAAQ;AAClC,IAAA,KAAK;AACL,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,WAAW;AACX,IAAA,iBAAiB;AAEhB,IAAA,SAAS;AACT,IAAA,MAAM;IAEN,QAAQ,GAAuB,EAAE;IACjC,aAAa,GAAuB,EAAE;IACtC,UAAU,GAAG,EAAE;IACf,YAAY,GAAG,KAAK;IACpB,OAAO,GAAG,IAAI;AAEf,IAAA,SAAS;AACT,IAAA,QAAQ;AAER,IAAA,OAAO;AAEf,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;AAClC,YAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK;;AAE9B,QAAA,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE;AACrC,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;AACrB,QAAA,IAAI,CAAC,aAAa,GAAG,KAAK;AAC1B,QAAA,IAAI,CA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EAA4B,UAAU,GAAG,EAAE,GAAG,sBAAsB,CAAA,gBAAA,EAAmB,UAAU,GAAG,CAAgB,aAAA,EAAA,KAAK,CAAE,CAAA,GAAG,EAAE,CAAA,CAAE,EACzI,OAAO,EAAE,OAAO,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAA,EAE5D,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,+BAA+B,EAAC,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,EAAS,CAAA,EAC3F,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,+BAA+B,IAAE,IAAI,CAAC,IAAI,CAAO,EAC3D,UAAU,IAAI,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,CAAgC,6BAAA,EAAA,KAAK,CAAE,CAAA,EAAA,aAAU,CAAC,CAAC,MAAM,CAAC,EAAS,GAAA,CAAA,CAC5F;AAET,SAAC,CAAC,CACC,CACD,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/autocomplete-select/autocomplete-select.css?tag=autocomplete-select","src/components/autocomplete-select/autocomplete-select.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.autocomplete-select {\n @apply relative w-full flex-1\n}\n\n.autocomplete-select-input {\n @apply w-full border text-sm px-4 py-2 rounded-md ring-primary focus:outline-none focus:border-primary\n}\n\n.autocomplete-select-list {\n @apply absolute rounded-sm text-sm border w-full mt-1 z-10 max-h-60 max-w-[240px] overflow-y-auto shadow-lg\n}\n\n.autocomplete-select-item-wrapper {\n @apply px-3 py-2 hover:brightness-110 cursor-pointer\n}\n\n.autocomplete-select-item {\n @apply px-3 py-2 flex flex-row items-center\n}\n\n.autocomplete-select-item-icon {\n @apply inline-block size-3 mr-2 rounded-full\n}\n\n.autocomplete-select-item-text {\n @apply inline-flex truncate max-w-[100px]\n}\n\n\n.autocomplete-select-item-counter {\n @apply absolute right-1 top-3/4 -translate-y-1/2 text-white p-1 text-xs\n}","import { Component, Host, Prop, State, h, Event, EventEmitter } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { TTagOrStatusItem } from '../../store/type';\nimport { computePosition, autoUpdate, offset, flip, shift } from '@floating-ui/dom';\nimport { useTranslation } from '../../utils/utils';\nimport { TAG_LENGTH } from '../../utils/constant';\n\n@Component({\n tag: 'autocomplete-select',\n styleUrl: 'autocomplete-select.css',\n})\nexport class AutocompleteSelect {\n @Prop() type?: 'tag' | 'status' = 'status';\n @Prop() value?: string | string[];\n @Prop() fetchItems!: () => Promise<TTagOrStatusItem[]>;\n @Prop() createItem?: (name: string) => Promise<TTagOrStatusItem>;\n @Prop() selectedIds?: string[];\n @Prop() referenceSelector: string;\n\n @Event() selecting: EventEmitter<TTagOrStatusItem>;\n @Event() create: EventEmitter<TTagOrStatusItem>;\n\n @State() allItems: TTagOrStatusItem[] = [];\n @State() filteredItems: TTagOrStatusItem[] = [];\n @State() inputValue = '';\n @State() showDropdown = false;\n @State() loading = true;\n\n private triggerEl!: HTMLElement;\n private popperEl: HTMLUListElement;\n\n private cleanup?: () => void;\n\n async componentWillLoad() {\n if (typeof this.value === 'string') {\n this.inputValue = this.value;\n }\n const items = await this.fetchItems();\n this.allItems = items;\n this.filteredItems = items;\n this.loading = false;\n }\n\n componentDidLoad() {\n document.addEventListener('click', this.handleClickOutside);\n window.addEventListener('close-all-poppers', this.handleCloseOthers);\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside);\n window.removeEventListener('close-all-poppers', this.handleCloseOthers);\n this.cleanup?.();\n this.popperEl?.remove();\n }\n\n handleClickOutside = (e: MouseEvent) => {\n const path = e.composedPath();\n if (!path.includes(this.triggerEl) && !path.includes(this.popperEl)) {\n this.showDropdown = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n private handleCloseOthers = (e: CustomEvent) => {\n if (e.detail !== this && this.showDropdown) {\n this.showDropdown = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n onInput = (e: InputEvent) => {\n const value = (e.target as HTMLInputElement).value;\n this.inputValue = value;\n this.showDropdown = true;\n\n this.filteredItems = this.allItems.filter(i => i.name.toLowerCase().includes(value.toLowerCase()));\n };\n\n onSelectItem = (item: TTagOrStatusItem) => {\n if (this.type === 'status') {\n this.inputValue = item.name;\n } else {\n this.inputValue = '';\n }\n this.showDropdown = false;\n this.selecting.emit(item);\n };\n\n async onCreateItem() {\n const value = this.inputValue.trim();\n if (value === '') return;\n const existItem = this.allItems.find(i => i.name.toLowerCase() === value.toLowerCase());\n if (existItem) {\n this.onSelectItem(existItem);\n return;\n }\n\n const newItem = await this.createItem(value);\n this.allItems = [...this.allItems, newItem];\n this.create.emit(newItem);\n this.onSelectItem(newItem);\n }\n\n onFocus = () => {\n this.showDropdown = true;\n if (this.showDropdown) {\n window.dispatchEvent(new CustomEvent('close-all-poppers', { detail: this }));\n\n const referenceEl = this.triggerEl;\n if (!referenceEl || !this.popperEl) return;\n\n const container = document.getElementById('chat-app') || document.body;\n container.appendChild(this.popperEl);\n\n this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {\n computePosition(referenceEl, this.popperEl, {\n placement: 'bottom-start',\n middleware: [offset(4), flip(), shift()],\n }).then(({ x, y }) => {\n Object.assign(this.popperEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n zIndex: '9999',\n });\n });\n });\n } else {\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n render() {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const noMatch = this.inputValue && !this.allItems.some(i => i.name.toLowerCase() === this.inputValue.toLowerCase());\n\n return (\n <Host>\n <div id={`auto-complete-${this.referenceSelector}`} class=\"autocomplete-select\">\n <input\n class={`autocomplete-select-input z-border-${theme} z-paper-${theme} z-text-${theme}`}\n value={this.inputValue}\n onInput={this.onInput}\n onFocus={this.onFocus}\n maxLength={this.type === 'tag' ? TAG_LENGTH : undefined}\n onKeyDown={e => e.key === 'Enter' && this.showDropdown && this.onCreateItem()}\n ref={el => (this.triggerEl = el)}\n id={this.referenceSelector}\n />\n {this.type === 'tag' &&\n <div class={`autocomplete-select-item-counter z-text-gray-${theme}`}>\n ({this.inputValue.length}/{TAG_LENGTH})\n </div>\n }\n\n <ul\n ref={el => (this.popperEl = el)}\n class={`autocomplete-select-list z-paper-${theme} z-text-${theme} ${this.showDropdown ? '' : '!hidden'}`}\n >\n {noMatch && (\n <li title={this.inputValue} class=\"autocomplete-select-item-wrapper\" onClick={() => this.onCreateItem()}>\n <span class={`font-semibold z-text-primary-${theme}`}>{t('new')} : </span>\n <strong>{this.inputValue}</strong>\n <span class={`font-semibold z-text-gray-${theme}`}>{t('enter_create')}</span>\n </li>\n )}\n\n {this.filteredItems.map(item => {\n const isSelected = this.type === 'tag' ? this.selectedIds?.includes(item.id) : item.name?.toLowerCase() === this.inputValue?.toLowerCase();\n return (\n <li\n title={item.name}\n class={`autocomplete-select-item ${isSelected ? '' : 'hover:brightness-110'} cursor-pointer ${isSelected ? `z-background-${theme}` : ''}`}\n onClick={() => (isSelected ? null : this.onSelectItem(item))}\n >\n <span class=\"autocomplete-select-item-icon\" style={{ backgroundColor: item.color }}></span>\n <div class=\"autocomplete-select-item-text\">{item.name}</div>\n {isSelected && <span class={`font-semibold z-text-primary-${theme}`}> ({t('used')})</span>}\n </li>\n );\n })}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-C6_QUEmP.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,cAAc,GAAG,23hDAA23hD;;MCSr4hD,WAAW,iBAAAA,kBAAA,CAAA,MAAA,WAAA,SAAAC,CAAA,CAAA;;;;;;;IACb,MAAM,GAAG,CAAC;IAEnB,IAAI,GAAA;AACF,QAAA,MAAM,CAAC,GAAG,cAAc,EAAE;QAC1B,OAAO;AACL,YAAA;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/profile-tabs/profile-tabs.css?tag=profile-tabs","src/components/profile-tabs/profile-tabs.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.profile-tabs {\n @apply flex flex-col\n}\n\n.profile-tabs-wrapper {\n @apply w-full border-b-[0.5px]\n}\n\n.profile-tabs-list-wrapper {\n @apply flex flex-row gap-1\n}\n\n.profile-tabs-back-button-wrapper {\n @apply ml-2 my-auto\n}\n\n.profile-tabs-list {\n @apply flex space-x-8 px-4\n}\n\n.profile-tabs-item {\n @apply px-2 py-3 border-b-2 mt-auto h-[60px] cursor-pointer\n}\n\n.profile-tabs-content {\n @apply py-4 overflow-y-auto scroll-smooth h-full\n}","import { Component, Host, State, h } from '@stencil/core';\nimport { configStore, profilePanelStore, responsiveStore } from '../../store/store';\nimport { ZIconButton } from '../internal-component/z-icon-button';\nimport { useTranslation } from '../../utils/utils';\n\n@Component({\n tag: 'profile-tabs',\n styleUrl: 'profile-tabs.css',\n})\nexport class ProfileTabs {\n @State() active = 0;\n\n tabs() {\n const t = useTranslation();\n return [\n {\n label: t('info'),\n value: 'info',\n },\n {\n label: t('file_and_image'),\n value: 'media',\n },\n {\n label: t('history'),\n value: 'history',\n },\n ];\n }\n render() {\n const theme = configStore.get('theme');\n const isMobile = responsiveStore.get('isMobile');\n\n const handleBackToMessages = () => {\n profilePanelStore.reset();\n };\n\n return (\n <Host>\n <div class=\"profile-tabs z-max-height\">\n <div class={`profile-tabs-wrapper z-border-divider-${theme}`}>\n <div class=\"profile-tabs-list-wrapper\">\n {isMobile && (\n <div class=\"profile-tabs-back-button-wrapper\">\n <ZIconButton variant=\"none\" iconName=\"ChevronLeft\" onClick={handleBackToMessages} />\n </div>\n )}\n <ul role=\"tablist\" class=\"profile-tabs-list\">\n {this.tabs().map(({ label }, i) => (\n <li role=\"presentation\">\n <button\n role=\"tab\"\n data-index={i}\n onClick={() => (this.active = i)}\n class={\n 'profile-tabs-item ' +\n (this.active === i ? `z-text-primary-${theme} font-medium z-border-primary-${theme}` : `z-text-${theme} border-transparent filter hover:brightness-110`)\n }\n aria-selected={this.active === i ? 'true' : 'false'}\n >\n {label}\n </button>\n </li>\n ))}\n </ul>\n </div>\n </div>\n <div class=\"profile-tabs-content scroll-container\">\n {this.tabs().map(({ value }, i) => (\n <div id={`panel-${i}`} role=\"tabpanel\" class={this.active === i ? '' : 'hidden'}>\n {value === 'info' && <profile-info />}\n {value === 'media' && <profile-media />}\n {value === 'history' && <profile-history />}\n </div>\n ))}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-D3TCeN-_.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,cAAc,GAAG,4rqDAA4rqD;;MCetsqD,WAAW,iBAAAA,kBAAA,CAAA,MAAA,WAAA,SAAAC,CAAA,CAAA;;;;;;;;AACd,IAAA,IAAI;AAEH,IAAA,YAAY;IACZ,SAAS,GAAG,KAAK;AAEgB,IAAA,cAAc;AAExD,IAAA,qBAAqB,CAAC,QAAyB,EAAE,QAAyB,EAAE,QAAgB,EAAA;;QAE1F,IAAI,QAAQ,KAAK,MAAM;AAAE,YAAA,OAAO,IAAI;AACpC,QAAA,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ;AAAE,YAAA,OAAO,IAAI;;AAGvC,QAAA,QACE,QAAQ,CAAC,EAAE,KAAK,QAAQ,CAAC,EAAE;AAC3B,YAAA,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;AAC/B,YAAA,QAAQ,CAAC,cAAc,KAAK,QAAQ,CAAC,cAAc;AACnD,YAAA,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;AACzC,YAAA,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;AAC/B,YAAA,QAAQ,C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I,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,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,qCAAqC,EAC7C,EAAA,QAAQ,CAAC,GAAG,CAAC,MAAM,KAClB,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAE,CAAgD,6CAAA,EAAA,KAAK,EAAE,EAC9D,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,KAAK,OAAO,GAAG,iBAAiB,GAAG,uBAAuB,EAAE,EAAA,EAE1F,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,CACP,CAAC,CACE,CACP,CACQ,CACZ,CACG,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}\n\n.message-item {\n @apply flex flex-col relative w-full\n}\n\n.message-item-summarized-wrapper {\n @apply flex flex-col items-center justify-center my-2\n}\n\n.message-item-summarized-time {\n @apply text-sm mb-1\n}\n\n.message-item-summarized-text {\n @apply px-3 py-2 text-sm rounded-xl shadow-sm max-w-sm whitespace-pre-line\n}\n\n.message-item-activity-log-wrapper {\n @apply flex flex-row items-center justify-center py-2 rounded-md focus:ring-2 focus:ring-blue-300\n}\n\n.message-item-activity-log-action {\n @apply flex items-center gap-2 text-sm\n}\n\n.message-item-activity-log-text {\n @apply text-xs truncate\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 text-xs flex flex-row items-center mb-2 cursor-pointer\n}\n\n.message-item-content-message-wrapper {\n @apply flex items-center space-x-1 relative\n}\n\n.message-item-content-message-loading {\n @apply animate-spin size-5 mx-auto opacity-50\n}\n\n.message-item-content-misc {\n @apply flex flex-row items-center\n}\n\n.message-item-content-user-spacer {\n @apply w-8 mt-1 mr-2\n}\n\n.message-item-content-misc-wrapper {\n @apply flex items-center text-xs mt-0.5\n}\n\n.message-item-content-error-wrapper {\n @apply text-red-500 rounded-md flex items-center gap-1 mb-0.5\n}\n\n.message-item-content-error-text {\n @apply truncate text-sm\n}\n\n.message-item-content-reader-wrapper {\n @apply flex flex-row gap-0.5 items-center mb-2.5 justify-end\n}\n\n.message-item-content-reader-name {\n @apply size-3 rounded-full text-[8px] flex items-center justify-center\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 = (theme: 'light' | 'dark') => {\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=\"flex items-center gap-2\">\n {from && renderChip(from)}\n {this.item?.action === 'change' && <span class={`text-xs z-text-gray-${theme}`}>→</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 theme = configStore.get('theme');\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 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 {isSummarized ? (\n <div class=\"message-item-summarized-wrapper\">\n <span class={`message-item-summarized-time z-text-gray-${theme}`}>\n {this.renderTimestamp(message_at)} : {t('chat_tab.summary')}\n </span>\n <div class={`message-item-summarized-text z-paper-${theme} z-text-gray-${theme}`}>{text}</div>\n </div>\n ) : isActivityLog ? (\n <div id={`message-content-${this.item.id}`} tabIndex={-1} class=\"message-item-activity-log-wrapper\">\n <span class={`text-xs z-text-${theme}`}>{this.renderTimestamp(message_at)} : </span>\n <div class=\"message-item-activity-log-action\">\n <div class={`message-item-activity-log-text z-text-${theme}`} title={this.getActionText(t)}>\n {this.getActionText(t)}\n </div>\n {this.renderActivityChips(theme)}\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'} z-text-gray-${theme}`}\n onClick={() => handleJumpToMessage(reply_message.id)}\n >\n <Icon name=\"Reply\" addClass={`size-3 z-text-gray-${theme}`} />\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 z-text-gray-${theme}`} />}\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' : 'mb-0.5 justify-end'}`}>\n {isUser && <div class=\"message-item-content-user-spacer\" />}\n <div class={`message-item-content-misc-wrapper z-text-gray-${theme} ${isUser ? 'text-left' : 'text-right'}`}>\n {!isUser && this.item.translatedText && <Icon name=\"Languages\" addClass={`size-3 z-text-gray-${theme}`} />} \n {isUser ? '' : this.item.sender.name} \n {this.renderTimestamp(message_at)} \n </div>\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 z-text-gray-${theme}`}\n style={{ backgroundColor: theme === 'light' ? 'rgba(0,0,0,0.3)' : 'rgba(255,255,255,0.3)' }}\n >\n {reader.name[0]}\n </div>\n ))}\n </div>\n )}\n </Fragment>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-DBulpvHu.js","mappings":";;;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,umjDAAumjD;;MCepnjD,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAA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EAAA,EAAA,YAAA,CAAmB,CAC1D,CACP,EACA,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,KACxC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,6BAA6B,EAAA,EACtC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAE,CAAA,eAAA,EAAkB,KAAK,CAAE,CAAA,EAAA,EAAG,CAAC,CAAC,6BAA6B,CAAC,CAAQ,CAC7E,CACP,EACA,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,KACtC,CAAA,CAAA,IAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAI,KAAK,EAAC,yBAAyB,EAChC,EAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAChB,CAAI,CAAA,IAAA,EAAA,EAAA,KAAK,EAAC,MAAM,EAAC,EAAE,EAAE,CAAA,IAAA,EAAO,GAAG,CAAC,EAAE,CAAA,CAAE,EAAA,EACjC,GAAG,CAAC,IAAI,KAAK,iBAAiB,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAC3F,CACN,CAAC,CACC,CACN,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/profile-history/profile-history.css?tag=profile-history","src/components/profile-history/profile-history.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.profile-history {\n @apply px-4 py-2 h-full\n}\n\n.profile-history-wrapper {\n @apply text-sm mb-2\n}\n\n.profile-history-loading {\n @apply flex justify-center py-8\n}\n\n.profile-history-no-activity {\n @apply flex justify-center py-24\n}\n\n.profile-history-content {\n @apply divide-y divide-gray-200\n}\n\n.profile-history-box-wrapper {\n @apply flex items-center gap-2\n}\n\n.profile-history-box-container {\n @apply flex-1 min-w-0\n}\n\n.profile-history-action-text {\n @apply text-sm truncate\n}\n\n.profile-history-content-wrapper {\n @apply flex items-start gap-1 text-sm\n}","import { Component, Host, State, h } from '@stencil/core';\nimport { getActivityLogs } from '../../api';\nimport { configStore, profilePanelStore, selectedChatStore } from '../../store/store';\nimport { ActivityLogItem, GetActivityLogsResponse } from '../../api/type';\nimport { handleGetChatMessages, scrollToMessage } from '../../store/message';\nimport { useTranslation } from '../../utils/utils';\nimport { displayDateTime } from '../../utils/dayjs';\nimport { ZTagOrStatusItem } from '../internal-component/z-tag-or-status-item';\nimport { handleError } from '../../store/dialog';\nimport { TChatItem } from '../../store/type';\n\n@Component({\n tag: 'profile-history',\n styleUrl: 'profile-history.css',\n})\nexport class ProfileHistory {\n private disposeListener: () => void;\n\n @State() isLoading = false;\n @State() logs: GetActivityLogsResponse['activity_logs'] = [];\n\n private prevSelectedChat: TChatItem | null = null;\n\n async componentWillLoad() {\n this.disposeListener = selectedChatStore.onChange('selectedChat', async newChat => {\n if (!newChat) {\n this.logs = [];\n return;\n }\n\n if (newChat.id !== this.prevSelectedChat?.id) {\n await this.loadLogs();\n this.prevSelectedChat = newChat;\n }\n });\n\n // Initial load if a chat is already selected\n if (selectedChatStore.get('selectedChat')) {\n await this.loadLogs();\n }\n }\n\n disconnectedCallback() {\n this.disposeListener?.();\n }\n\n private async loadLogs() {\n const selectedChat = selectedChatStore.get('selectedChat');\n if (!selectedChat) return;\n try {\n this.isLoading = true;\n const { channel } = selectedChat;\n const type = selectedChat.type === 'group' ? 'group' : 'user';\n const id = selectedChat[type]?.id;\n const res = await getActivityLogs({ type, channel, id });\n this.logs = res.activity_logs || [];\n } catch (error: unknown) {\n this.logs = [];\n handleError(error, 'Failed to load Activity Logs');\n } finally {\n this.isLoading = false;\n }\n }\n\n private renderChip(item?: ActivityLogItem) {\n if (!item) return null;\n return (\n <ZTagOrStatusItem\n item={{\n id: '',\n name: item.name,\n color: item.color,\n sequence: 0,\n }}\n />\n );\n }\n\n private getTypeText(log: GetActivityLogsResponse['activity_logs'][number]) {\n return log.from?.type || log.to?.type || log.item?.type || '';\n }\n\n private getActionText(log: GetActivityLogsResponse['activity_logs'][number]) {\n const t = useTranslation();\n return `${log.sender?.name} ${(() => {\n const action = log.action;\n const type = this.getTypeText(log);\n return t(`profile_tab.activity_action`)\n .replace('{action}', t(`${action}`))\n .replace('{type}', t(`${type}`))\n .toLowerCase();\n })()}`;\n }\n\n private async handleGoToMessage(messageId: string) {\n try {\n profilePanelStore.set('isShow', false);\n const isSuccessScroll = scrollToMessage(messageId);\n if (!isSuccessScroll) {\n await handleGetChatMessages({ startMessageId: messageId });\n setTimeout(() => {\n scrollToMessage(messageId);\n }, 300);\n }\n } catch (error: unknown) {\n handleError(error, 'Failed to go to message');\n }\n }\n\n private renderActivityLog(log: GetActivityLogsResponse['activity_logs'][number]) {\n const theme = configStore.get('theme');\n const t = useTranslation();\n return (\n <div class=\"profile-history-box-wrapper\">\n <div class=\"profile-history-box-container\">\n <div class={`profile-history-action-text z-text-${theme}`} title={this.getActionText(log)}>\n {log.created_at ? `${displayDateTime(log.created_at)} : ` : ''}\n {this.getActionText(log)}\n </div>\n </div>\n <div class=\"profile-history-box-wrapper\">\n {'from' in log && log.from && this.renderChip(log.from)}\n {'action' in log && log.action === 'change' && <span class={`text-sm z-text-gray-${theme}`}>→</span>}\n {'to' in log && log.to && this.renderChip(log.to)}\n {'item' in log && log.item && this.renderChip(log.item)}\n {(() => {\n const menuItems = [\n {\n label: t('profile_tab.go_to_message'),\n value: 'go_to_message',\n onClick: () => this.handleGoToMessage(log.id),\n },\n ];\n return <menu-list menuItems={menuItems} referenceSelector={`log-${log.id}`} iconName=\"EllipsisVertical\" />;\n })()}\n </div>\n </div>\n );\n }\n\n private renderSummarizedChat(log: GetActivityLogsResponse['activity_logs'][number]) {\n const theme = configStore.get('theme');\n const t = useTranslation();\n return (\n <div class=\"profile-history-box-wrapper\">\n <div class=\"profile-history-box-container\">\n <div class=\"profile-history-content-wrapper\">\n {log.created_at ? `${displayDateTime(log.created_at)} : ` : ''}\n <div class={`profile-history-box-container z-text-${theme}`}>\n <typography-clamp text={`${t('chat_tab.summary')}\\n${log.text}`} textColor=\"z-text\" lines={3} />\n </div>\n </div>\n </div>\n <div class=\"profile-history-box-wrapper\">\n {(() => {\n const menuItems = [\n {\n label: t('profile_tab.go_to_message'),\n value: 'go_to_message',\n onClick: () => this.handleGoToMessage(log.id),\n },\n ];\n return <menu-list menuItems={menuItems} referenceSelector={`log-${log.id}`} iconName=\"EllipsisVertical\" />;\n })()}\n </div>\n </div>\n );\n }\n\n render() {\n const theme = configStore.get('theme');\n const t = useTranslation();\n\n return (\n <Host>\n <div class=\"profile-history\">\n <div class={`profile-history-wrapper z-text-gray-${theme}`}>{t('profile_tab.history_info')}</div>\n {this.isLoading && (\n <div class=\"profile-history-loading\">\n <span class={`text-sm z-text-gray-${theme}`}>Loading...</span>\n </div>\n )}\n {!this.isLoading && this.logs.length === 0 && (\n <div class=\"profile-history-no-activity\">\n <span class={`text-sm z-text-${theme}`}>{t('profile_tab.no_activity_log')}</span>\n </div>\n )}\n {!this.isLoading && this.logs.length > 0 && (\n <ul class=\"profile-history-content\">\n {this.logs.map(log => (\n <li class=\"py-2\" id={`log-${log.id}`}>\n {log.type === 'summarized_chat' ? this.renderSummarizedChat(log) : this.renderActivityLog(log)}\n </li>\n ))}\n </ul>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-D_ltSEZy.js';
|
|
2
|
-
import { b as displayDate } from './p-CWHeSqYk.js';
|
|
3
|
-
import { u as useTranslation } from './p-GPPFvEYq.js';
|
|
4
|
-
import { Z as ZIconButton } from './p-BEYgWj6b.js';
|
|
5
|
-
import { Z as ZTagOrStatusItem } from './p-CaKYRiqR.js';
|
|
6
|
-
import { Z as ZButton } from './p-Khnj_GHE.js';
|
|
7
|
-
import { I as Icon } from './p-CErcZoEr.js';
|
|
8
|
-
import { h as handleGetUserStatuses, g as getChatPicture } from './p-a8Ave0b1.js';
|
|
9
|
-
import { c as configStore, s as selectedChatStore } from './p-LsQYRhK6.js';
|
|
10
|
-
import { d as defineCustomElement$5 } from './p-Bz_ZwZP1.js';
|
|
11
|
-
import { d as defineCustomElement$4 } from './p-LUMkIl0L.js';
|
|
12
|
-
import { d as defineCustomElement$3 } from './p-Bfsq37ia.js';
|
|
13
|
-
import { d as defineCustomElement$2 } from './p-fbMxRrBR.js';
|
|
14
|
-
import { d as defineCustomElement$1 } from './p-Db2KItIV.js';
|
|
15
|
-
|
|
16
|
-
const profileInfoCss = "@layer base{*,::backdrop,:after,:before{--tw-space-y-reverse:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--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%;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.15 | 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-border-style:solid;--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-space-y-reverse:0;--tw-leading:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-duration:initial}}}@layer theme{:host,:root{--container-xl:36rem;--container-3xs:16rem;--color-yellow-300:oklch(90.5% .182 98.111);--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-md:28rem;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--color-slate-500:oklch(55.4% .046 257.417);--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--color-yellow-500:oklch(79.5% .184 86.047);--container-xs:20rem;--container-sm:24rem;--color-red-700:oklch(50.5% .213 27.518);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-blue-500:oklch(62.3% .214 259.815);--font-weight-bold:700;--animate-spin:spin 1s linear infinite;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-600:oklch(54.6% .245 262.881);--color-pink-100:oklch(94.8% .028 342.258);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--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;--font-weight-semibold:600;--radius-xs:.125rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--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-primary-dark:#b50f30;--color-secondary-dark:#fff;--color-background-dark:#23292d}}@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:-12px;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:-2px;position:absolute;right:-2px}.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{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{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{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{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:center;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{border-bottom-left-radius:var(--radius-3xl);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);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)*4);width:100%;--tw-ring-color:var(--color-primary);border-width:1px;flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{border-bottom-right-radius:var(--radius-3xl);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);width:100%;--tw-ring-color:var(--color-primary);border-width:1px;flex:2}.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}}@layer utilities{.\\!hidden{display:none!important}.hidden{display:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.shadow-md{--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)}.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,)}}.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}.z-text-light{color:var(--color-black)}.z-text-dark{color:var(--color-white)}.z-text-primary-light{color:var(--color-primary)}.z-text-primary-dark{color:var(--color-primary-dark)}.z-text-gray-light{color:var(--color-gray-500)}.z-text-gray-dark{color:var(--color-gray-300)}.z-text-background-light{color:var(--color-background)}.z-text-background-dark{color:var(--color-background-dark)}.z-border-light{border-color:var(--color-black)}.z-border-dark{border-color:var(--color-white)}.z-border-primary-light{border-color:var(--color-primary)}.z-border-primary-dark{border-color:var(--color-primary-dark)}.z-border-divider-light{border-color:var(--color-gray-400)}.z-border-divider-dark{border-color:var(--color-gray-300)}.z-search-input-background-light{background-color:var(--color-gray-200)}.z-search-input-background-dark{background-color:var(--color-gray-500)}.z-chat-input-background-light{background-color:var(--color-white)}.z-chat-input-background-dark{background-color:var(--color-gray-700)}.z-placeholder-light::placeholder{color:var(--color-gray-500)}.z-placeholder-dark::placeholder{color:var(--color-gray-200)}.z-background-primary-light{background-color:var(--color-primary)}.z-background-primary-dark{background-color:var(--color-primary-dark)}.z-background-light{background-color:var(--color-background)}.z-background-dark{background-color:var(--color-background-dark)}.z-paper-light{background-color:var(--color-gray-100)}.z-paper-dark{background-color:var(--color-gray-700)}.z-bg-gray-light{background-color:var(--color-gray-500)}.z-bg-gray-dark{background-color:var(--color-gray-300)}.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.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.relative{position:relative}.mt-auto{margin-top:auto}.mb-auto{margin-bottom:auto}.text-black{color:var(--color-black)}.container{width:100%}.cursor-pointer{cursor:pointer}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.mx-auto{margin-inline:auto}.size-18{height:calc(var(--spacing)*18);width:calc(var(--spacing)*18)}.mb-2{margin-bottom:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | 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)}.w-xl{width:var(--container-xl)}.w-xs{width:var(--container-xs)}.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)}.col-span-2{grid-column:span 2/span 2}.my-2{margin-block:calc(var(--spacing)*2)}.bg-pink-100{background-color:var(--color-pink-100)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.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-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.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)}.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-white{color:var(--color-white)}.underline{text-decoration-line:underline}.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-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.rounded-full{border-radius:3.40282e+38px}.bg-yellow-300{background-color:var(--color-yellow-300)}.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))}.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-\\[-2px\\]{right:-2px}.bottom-\\[-2px\\]{bottom:-2px}.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}.fill-current{fill:currentColor}.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))}.whitespace-nowrap{white-space:nowrap}.visible{visibility:visible}.-top-12{top:calc(var(--spacing)*-12)}.-top-24{top:calc(var(--spacing)*-24)}.mt-10{margin-top:calc(var(--spacing)*10)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.inline-block{display:inline-block}.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)}.border-transparent{border-color:#0000}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.top-1\\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.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)}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}.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}.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}.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.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.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}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}@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-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)}.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-\\[160px\\]{height:160px}.h-\\[200px\\]{height:200px}.w-\\[240px\\]{width:240px}.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.self-end{align-self:flex-end}.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-yellow-500{color:var(--color-yellow-500)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-\\[10px\\]{height:10px;width:10px}.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%}.text-green-700{color:var(--color-green-700)}.text-primary{color:var(--color-primary)}.text-red-700{color:var(--color-red-700)}.capitalize{text-transform:capitalize}.opacity-100{opacity:1}}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.15 | 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{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@layer utilities{.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{display:block}.profile-info-user-wrapper{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr));margin-bottom:calc(var(--spacing)*2);padding:calc(var(--spacing)*4);width:100%}.profile-info-avatar-wrapper{grid-column:span 1/span 1;margin-block:auto;margin-right:calc(var(--spacing)*1)}.profile-info-avatar-box{display:flex;justify-content:center;margin-top:-40px;position:relative;text-align:center;width:100%}.profile-info-avatar-badge{bottom:-2px;position:absolute;right:-2px}.profile-info-name-wrapper{display:flex;flex-direction:column;grid-column:span 2/span 2}.profile-info-box-wrapper{align-items:center;display:flex;flex-direction:row;gap:calc(var(--spacing)*1)}.profile-info-nickname{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.profile-info-summarize-wrapper{align-items:center;display:flex;flex-direction:row;grid-column:span 3/span 3;justify-content:space-between;margin-top:calc(var(--spacing)*2)}.profile-info-summarize-text{grid-column:span 3/span 3;margin-top:calc(var(--spacing)*1)}.profile-info-connection-wrapper{align-items:center;display:flex}:where(.profile-info-connection-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))}.profile-info-avatar{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.profile-info-content-wrapper-baseline{align-items:last baseline;display:flex;flex-direction:row;gap:calc(var(--spacing)*1);grid-column:span 2/span 2}.profile-info-pre-line{white-space:pre-line}.profile-info-capitalize,.profile-info-pre-line{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.profile-info-capitalize{text-transform:capitalize}.profile-info-tag-wrapper{grid-column:span 3/span 3;max-height:calc(var(--spacing)*60);overflow-y:auto;width:100%}.profile-info-status-wrapper{margin-inline:auto;margin-top:calc(var(--spacing)*2);width:fit-content}.profile-info-status-bottom-wrapper{margin-inline:auto;margin-top:calc(var(--spacing)*4);width:fit-content}.profile-info{height:100%;position:relative}.profile-info-compare-wrapper{align-items:center;display:flex;flex-direction:row;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-top:-16px;padding-top:calc(var(--spacing)*3)}.profile-info-compare-remark-wrapper{padding-inline:calc(var(--spacing)*3);padding-bottom:calc(var(--spacing)*3)}.profile-info-compare-remark{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));white-space:pre-line}.profile-info-match-user-wrapper{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:calc(var(--spacing)*3)}.profile-info-match-user-container{border-radius:var(--radius-xl);margin-block:calc(var(--spacing)*2);--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);overflow:clip;width:100%}.profile-info-match-user-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:calc(var(--spacing)*2)}.profile-info-match-user-action-wrapper{align-items:center;display:flex;flex-direction:row;justify-content:space-around}.profile-info-match-user-name-wrapper{border-radius:var(--radius-xl);margin-block:calc(var(--spacing)*2);margin-inline:calc(var(--spacing)*4);overflow:auto hidden}.profile-info-match-user-table{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));table-layout:auto;width:100%}.profile-info-match-user-table-header{background-color:var(--color-pink-100);height:calc(var(--spacing)*10);--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)}.profile-info-match-user-table-label{margin-left:calc(var(--spacing)*2);margin-top:calc(var(--spacing)*2);white-space:nowrap}.profile-info-match-user-table-value{margin-left:calc(var(--spacing)*2);margin-top:calc(var(--spacing)*2);white-space:pre-line}.profile-info-match-user-suggest-wrapper{align-items:center;color:var(--color-white);display:flex;flex-direction:row;font-size:var(--text-sm);justify-content:space-between;line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*2);margin-top:-16px;padding:calc(var(--spacing)*3)}.profile-info-match-user-suggest-button{cursor:pointer;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));text-decoration-line:underline}.profile-info-match-user-suggest-user-wrapper{border-radius:3.40282e+38px;border-style:var(--tw-border-style);border-width:2px;display:flex;margin-inline:auto;margin-bottom:calc(var(--spacing)*1);overflow:hidden;padding:calc(var(--spacing)*.5);width:fit-content}.profile-info-associated-user-wrapper{align-items:center;border-bottom-style:var(--tw-border-style);border-bottom-width:.5px;border-radius:var(--radius-xs);display:flex;flex-direction:row;gap:calc(var(--spacing)*1);padding-block:calc(var(--spacing)*1);padding-inline:calc(var(--spacing)*2)}.profile-info-associated-user-action-wrapper{align-items:center;display:flex;flex-direction:row;justify-content:flex-end;width:100%}.profile-info-drawer-backdrop{inset:calc(var(--spacing)*0);right:calc(var(--spacing)*0);transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));--tw-duration:.3s;background-color:#0006;left:auto!important;position:fixed;transition-duration:.3s}@supports (color:color-mix(in lab,red,red)){.profile-info-drawer-backdrop{background-color:color-mix(in srgb,#00040%,transparent);background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.profile-info-drawer-wrapper{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl);bottom:calc(var(--spacing)*0);right:calc(var(--spacing)*0);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px 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);transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));--tw-duration:.3s;position:fixed;transition-duration:.3s}.profile-info-drawer-content{max-height:90vh;overflow-y:auto;padding:calc(var(--spacing)*2);position:relative}.profile-info-drawer-content-close{position:absolute;right:calc(var(--spacing)*2);top:calc(var(--spacing)*2)}.profile-info-bill{grid-column:span 3/span 3;margin-inline:auto;margin-top:calc(var(--spacing)*2)}.profile-info-bill-icon{fill:currentColor;height:calc(var(--spacing)*2);rotate:180deg;width:calc(var(--spacing)*2)}.profile-info-jump-chat-sign{align-items:center;display:flex;flex-direction:row;gap:calc(var(--spacing)*4);justify-content:center}.profile-info-section-wrapper{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px;min-height:calc(var(--spacing)*20);padding-top:calc(var(--spacing)*0)}.profile-info-refresh-user-button{position:absolute;right:calc(var(--spacing)*2);top:calc(var(--spacing)*-2)}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@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){.hover\\:brightness-110: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,)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.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}.hover\\:brightness-110: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,)}}@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 UserInfoSection = /*@__PURE__*/ proxyCustomElement(class UserInfoSection extends H {
|
|
19
|
-
constructor(registerHost) {
|
|
20
|
-
super();
|
|
21
|
-
if (registerHost !== false) {
|
|
22
|
-
this.__registerHost();
|
|
23
|
-
}
|
|
24
|
-
this.openDialogEditor = createEvent(this, "openDialogEditor");
|
|
25
|
-
this.editStatus = createEvent(this, "editStatus");
|
|
26
|
-
this.closeStatus = createEvent(this, "closeStatus");
|
|
27
|
-
this.removeStatus = createEvent(this, "removeStatus");
|
|
28
|
-
this.saveUserStatus = createEvent(this, "saveUserStatus");
|
|
29
|
-
this.statusSelecting = createEvent(this, "statusSelecting");
|
|
30
|
-
this.createUserStatusRequest = createEvent(this, "createUserStatusRequest");
|
|
31
|
-
this.createBill = createEvent(this, "createBill");
|
|
32
|
-
}
|
|
33
|
-
user;
|
|
34
|
-
readOnly = false;
|
|
35
|
-
isEditStatus;
|
|
36
|
-
statusId;
|
|
37
|
-
openDialogEditor;
|
|
38
|
-
editStatus;
|
|
39
|
-
closeStatus;
|
|
40
|
-
removeStatus;
|
|
41
|
-
saveUserStatus;
|
|
42
|
-
statusSelecting;
|
|
43
|
-
createUserStatusRequest;
|
|
44
|
-
createBill;
|
|
45
|
-
showDialogBill = false;
|
|
46
|
-
render() {
|
|
47
|
-
const t = useTranslation();
|
|
48
|
-
const theme = configStore.get('theme');
|
|
49
|
-
const selectedChat = selectedChatStore.get('selectedChat');
|
|
50
|
-
const handleOpenDialogBillEditor = () => {
|
|
51
|
-
this.showDialogBill = true;
|
|
52
|
-
};
|
|
53
|
-
const handleCloseDialogBillEditor = () => {
|
|
54
|
-
this.showDialogBill = false;
|
|
55
|
-
};
|
|
56
|
-
const handleCreateDialogBillEditor = (value) => {
|
|
57
|
-
this.createBill.emit(value);
|
|
58
|
-
this.showDialogBill = false;
|
|
59
|
-
};
|
|
60
|
-
return (h("div", { key: '1dc85895267562ae63f51b7ce3c7b87531976d4a', class: `profile-info-user-wrapper profile-info-section-wrapper z-border-divider-${theme}` }, h("div", { key: '98b388646530f456a2410fee98d11ea3a657739f', class: "profile-info-avatar-wrapper" }, h("div", { key: '21dd6c4540a49fcdcd30438d903e83f1a6d538c1', class: "profile-info-avatar-box" }, h("z-avatar", { key: 'c0f250bd929ebbacbc517d70d5e7bb6ceaf6f0ee', pictureUrl: getChatPicture(selectedChat) }), selectedChat.type === 'group' &&
|
|
61
|
-
h("div", { key: '93cadff167b0dfbff6ae4dd78f75c3cb18a13050', class: "profile-info-avatar-badge" }, h("z-avatar", { key: 'd45102dae8ff080f76134ff821d3246ba90c2f3e', size: "x-small" })))), h("div", { key: 'd23a381225d5533b8a46bbf545a3230401695d2d', class: "profile-info-name-wrapper" }, h("span", { key: 'af21314b74815dcbd69b14dde7dc0b098f2aeeaf', class: `text-base z-text-${theme}` }, this.user.name), h("div", { key: '368135659fbb9e44851c4c81c1c2b425e779b772', class: "profile-info-box-wrapper" }, h("span", { key: 'ee90a92cc25471d92970e7d843a6179f98c20a98', class: `profile-info-nickname z-text-${theme}` }, this.user.nickname), !this.readOnly && (h(ZIconButton, { key: 'bfa1beace6092ca61ded42cd513b2fec2f95218e', variant: "text", iconName: "Pencil", addClassIcon: "size-4", onClick: () => this.openDialogEditor.emit({ label: 'Nickname', field: 'nickname', value: this.user.nickname }) }))), this.isEditStatus ? (h("div", { class: "profile-info-box-wrapper" }, this.user.status && this.user.status?.id === this.statusId ? (h(ZTagOrStatusItem, { item: this.user.status, onDelete: () => this.removeStatus.emit() })) : (h("autocomplete-select", { value: this.user.status?.id === this.statusId ? this.user.status?.name : '', fetchItems: handleGetUserStatuses, createItem: name => new Promise(resolve => {
|
|
62
|
-
this.createUserStatusRequest.emit({ name, callback: resolve });
|
|
63
|
-
}), onSelecting: item => this.statusSelecting.emit(item.detail.id), referenceSelector: "profile-status" })), h(ZIconButton, { variant: "text", iconName: "X", addClassIcon: "size-4", onClick: () => this.closeStatus.emit() }), h(ZIconButton, { variant: "text", iconName: "Save", addClassIcon: "size-4", onClick: () => this.saveUserStatus.emit() }))) : (h("div", { class: "profile-info-box-wrapper" }, h("span", { class: `text-sm z-text-${theme}` }, t('status'), "\u00A0:\u00A0", this.user.status ? (h("tag-or-status-item", { item: this.user.status, chatId: `profile-status-${selectedChat.id}-${this.readOnly ? 'readonly' : ''}` })) : ('-')), !this.readOnly && h(ZIconButton, { variant: "text", iconName: "Pencil", addClassIcon: "size-4", onClick: () => this.editStatus.emit() })))), this.user.summarized_message && (h("div", { key: '80acb22dbc8116719af1959625abb953f1457c4b', class: "col-span-3" }, h("div", { key: '06307b78a1233f699e528d782ac3cdc2e343ee6a', class: "profile-info-summarize-wrapper" }, h("span", { key: '0cd692d0dd825456015b1c19fa402e93406b22aa', class: `profile-info-box-wrapper z-text-${theme}` }, t('profile_tab.ai_summary'), h("svg", { key: '1deb83d54581510a1a9f2a2f041363c5cdf006c3', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { key: '37a9151fb58204c2c80d8c52db8dbcb17a717bf7', d: "M4.55306 2.724C4.85206 1.849 6.06106 1.8225 6.41556 2.6445L6.44556 2.7245L6.84906 3.9045C6.94154 4.17512 7.09097 4.42276 7.28728 4.63071C7.48359 4.83867 7.72222 5.00211 7.98706 5.11L8.09556 5.1505L9.27556 5.5535C10.1506 5.8525 10.1771 7.0615 9.35556 7.416L9.27556 7.446L8.09556 7.8495C7.82485 7.94191 7.57712 8.09131 7.36907 8.28763C7.16103 8.48394 6.99751 8.7226 6.88956 8.9875L6.84906 9.0955L6.44606 10.276C6.14706 11.151 4.93806 11.1775 4.58406 10.356L4.55306 10.276L4.15006 9.096C4.05765 8.82529 3.90825 8.57755 3.71193 8.36951C3.51562 8.16146 3.27696 7.99795 3.01206 7.89L2.90406 7.8495L1.72406 7.4465C0.848564 7.1475 0.822064 5.9385 1.64406 5.5845L1.72406 5.5535L2.90406 5.1505C3.17468 5.05803 3.42232 4.9086 3.63028 4.71229C3.83823 4.51597 4.00167 4.27735 4.10956 4.0125L4.15006 3.9045L4.55306 2.724ZM9.49956 1C9.5931 1 9.68477 1.02624 9.76414 1.07574C9.84351 1.12523 9.90741 1.196 9.94856 1.28L9.97256 1.3385L10.1476 1.8515L10.6611 2.0265C10.7548 2.05835 10.837 2.11731 10.8972 2.19591C10.9574 2.27451 10.9929 2.36921 10.9992 2.46801C11.0055 2.56681 10.9824 2.65527 10.9327 2.75089C10.883 2.83652 10.809 2.90547 10.7201 2.949L10.6611 2.973L10.1481 3.148L9.97306 3.6615C9.94116 3.75521 9.88216 3.83735 9.80353 3.8975C9.7249 3.95764 9.63018 3.9931 9.53138 3.99936C9.43259 4.00563 9.33415 3.98242 9.24856 3.93269C9.16296 3.88296 9.09405 3.80893 9.05056 3.72L9.02656 3.6615L8.85156 3.1485L8.33806 2.9735C8.24432 2.94165 8.16215 2.88269 8.10195 2.80409C8.04175 2.72549 8.00624 2.63079 7.99993 2.53199C7.99361 2.43319 8.01676 2.33473 8.06645 2.24911C8.11615 2.16348 8.19014 2.09453 8.27906 2.051L8.33806 2.027L8.85106 1.852L9.02606 1.3385C9.05978 1.23971 9.12357 1.15395 9.20848 1.09325C9.2934 1.03254 9.39518 0.999937 9.49956 1Z", fill: "#E02847" }))), h("span", { key: 'cfef46a37a3a9b43d9b1bc049a734b4acc6c404e', class: `text-xs z-text-gray-${theme}` }, t('profile_tab.last_update'), " ", displayDate(this.user.summarized_message.created_at))), h("div", { key: '39f67030877a1a074a886120a808cda6b0867843', class: "profile-info-summarize-text" }, h("typography-clamp", { key: 'f93d9d2e695070c5cf69c4c64777e8cce7b1db3c', text: this.user.summarized_message.text })))), (configStore.get('connectionList').find((connection) => connection.id === selectedChat.connection.id)?.type === 'zwiz') && (h("div", { key: '9f34e8df32b06ad2cdc2e8d9eaa6b49bd59d52cc', class: "profile-info-bill" }, h(ZButton, { key: 'a0b04cc87ee83777ae7e54cf450dc47dd5bea05e', label: "\u0E40\u0E1B\u0E34\u0E14\u0E1A\u0E34\u0E25", title: "\u0E40\u0E1B\u0E34\u0E14\u0E1A\u0E34\u0E25", startIcon: h(Icon, { name: "ShoppingCart", addClass: "size-5 fill-current" }), endIcon: h(Icon, { name: "Triangle", addClass: "profile-info-bill-icon" }), onClick: () => handleOpenDialogBillEditor() }))), this.showDialogBill && (h("div", { key: '8037c0a48a767eccf901737953f3fea5fcd968b8', class: "dialog-backdrop" }, h("dialog-bill-editor", { key: 'df4d8cf8a2b47dfc7cce218c489b0e0ccba3e31c', onCancel: handleCloseDialogBillEditor, onCreate: (event) => handleCreateDialogBillEditor(event?.detail) })))));
|
|
64
|
-
}
|
|
65
|
-
static get style() { return profileInfoCss; }
|
|
66
|
-
}, [256, "user-info-section", {
|
|
67
|
-
"user": [16],
|
|
68
|
-
"readOnly": [4, "read-only"],
|
|
69
|
-
"isEditStatus": [4, "is-edit-status"],
|
|
70
|
-
"statusId": [1, "status-id"],
|
|
71
|
-
"showDialogBill": [32]
|
|
72
|
-
}]);
|
|
73
|
-
function defineCustomElement() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["user-info-section", "autocomplete-select", "dialog-bill-editor", "tag-or-status-item", "typography-clamp", "z-avatar"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "user-info-section":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, UserInfoSection);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "autocomplete-select":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
defineCustomElement$5();
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
case "dialog-bill-editor":
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
defineCustomElement$4();
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "tag-or-status-item":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$3();
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
case "typography-clamp":
|
|
100
|
-
if (!customElements.get(tagName)) {
|
|
101
|
-
defineCustomElement$2();
|
|
102
|
-
}
|
|
103
|
-
break;
|
|
104
|
-
case "z-avatar":
|
|
105
|
-
if (!customElements.get(tagName)) {
|
|
106
|
-
defineCustomElement$1();
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
} });
|
|
110
|
-
}
|
|
111
|
-
defineCustomElement();
|
|
112
|
-
|
|
113
|
-
export { UserInfoSection as U, defineCustomElement as d };
|
|
114
|
-
//# sourceMappingURL=p-DE1veeiP.js.map
|
|
115
|
-
|
|
116
|
-
//# sourceMappingURL=p-DE1veeiP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-DE1veeiP.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,cAAc,GAAG,kr0DAAkr0D;;MCe5r0D,eAAe,iBAAAA,kBAAA,CAAA,MAAA,eAAA,SAAAC,CAAA,CAAA;;;;;;;;;;;;;;;AAClB,IAAA,IAAI;IACJ,QAAQ,GAAa,KAAK;AAC1B,IAAA,YAAY;AACZ,IAAA,QAAQ;AAEP,IAAA,gBAAgB;AAChB,IAAA,UAAU;AACV,IAAA,WAAW;AACX,IAAA,YAAY;AACZ,IAAA,cAAc;AACd,IAAA,eAAe;AACf,IAAA,uBAAuB;AACvB,IAAA,UAAU;IAEV,cAAc,GAAY,KAAK;IAExC,MAAM,GAAA;AACJ,QAAA,MAAM,CAAC,GAAG,cAAc,EAAE;QAC1B,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;QACtC,MAAM,YAAY,GAAG,iBAAiB,CAAC,GAAG,CAAC,cAAc,CAAC;QAE1D,MAAM,0BAA0B,GAAG,MAAK;AACtC,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI;AAC5B,SAAC;QAED,MAAM,2BAA2B,GAAG,MAAK;AACvC,YAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,SAAC;AAED,QAAA,MAAM,4BAA4B,GAAG,CAAC,KAAkB,KAAI;AAC1D,YAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;AAC3B,YAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,SAAC;AAED,QAAA,QACE,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,EAAC,qBAAqB,EAAA,CAAG,EACtE,OAAO,EAAE,EAAC,IAAI,EAAA,EAAC,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAC,wBAAwB,GAAG,EACnE,OAAO,EAAE,MAAM,0BAA0B,EAAE,EAC3C,CAAA,CACE,CACP,EAEA,IAAI,CAAC,cAAc,KAClB,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iBAAiB,EAAA,EAC1B,CAAoB,CAAA,oBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,QAAQ,EAAE,2BAA2B,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,4BAA4B,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,CAC3H,CACP,CACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/profile-info/profile-info.css?tag=user-info-section","src/components/profile-info/user-info-section.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.profile-info-user-wrapper {\n @apply grid grid-flow-row-dense grid-cols-3 grid-rows-1 w-full p-4 mb-2\n}\n\n.profile-info-avatar-wrapper {\n @apply col-span-1 my-auto mr-1\n}\n\n.profile-info-avatar-box {\n @apply relative w-full text-center\n}\n\n.profile-info-avatar-badge {\n @apply absolute bottom-[-2px] right-[-2px];\n}\n\n.profile-info-name-wrapper {\n @apply col-span-2 flex flex-col\n}\n\n.profile-info-box-wrapper {\n @apply flex flex-row gap-1 items-center\n}\n\n.profile-info-nickname {\n @apply font-semibold text-base\n}\n\n.profile-info-summarize-wrapper {\n @apply col-span-3 flex flex-row items-center justify-between mt-2\n}\n\n.profile-info-summarize-text {\n @apply col-span-3 mt-1\n}\n\n.profile-info-connection-wrapper {\n @apply flex items-center space-x-1\n}\n\n.profile-info-avatar {\n @apply size-4 rounded-full\n}\n\n.profile-info-content-wrapper-baseline {\n @apply col-span-2 flex flex-row gap-1 items-baseline-last\n}\n\n.profile-info-pre-line {\n @apply text-sm whitespace-pre-line\n}\n\n.profile-info-capitalize {\n @apply text-sm capitalize\n}\n\n.profile-info-tag-wrapper {\n @apply col-span-3 w-full max-h-60 overflow-y-auto\n}\n\n.profile-info-status-wrapper {\n @apply w-fit mt-2 mx-auto\n}\n\n.profile-info-status-bottom-wrapper {\n @apply w-fit mt-4 mx-auto\n}\n\n.profile-info-avatar-box {\n @apply mt-[-40px] flex justify-center\n}\n\n.profile-info {\n @apply relative h-full\n}\n\n.profile-info-compare-wrapper {\n @apply flex flex-row items-center pt-3 mt-[-16px] text-sm\n}\n\n.profile-info-compare-remark-wrapper {\n @apply px-3 pb-3\n}\n\n.profile-info-compare-remark {\n @apply text-xs whitespace-pre-line\n}\n\n.profile-info-match-user-wrapper {\n @apply flex flex-row items-center justify-between mb-3\n}\n\n.profile-info-match-user-container {\n @apply rounded-xl shadow-md w-full my-2 overflow-clip\n}\n\n.profile-info-match-user-box {\n @apply grid grid-cols-2 mb-2\n}\n\n.profile-info-match-user-action-wrapper {\n @apply flex flex-row items-center justify-around\n}\n\n.profile-info-match-user-name-wrapper {\n @apply rounded-xl my-2 mx-4 overflow-x-auto overflow-y-hidden\n}\n\n.profile-info-match-user-table {\n @apply table-auto w-full text-sm\n}\n\n.profile-info-match-user-table-header {\n @apply bg-pink-100 h-10 shadow-sm\n}\n\n.profile-info-match-user-table-label {\n @apply ml-2 mt-2 whitespace-nowrap\n}\n\n.profile-info-match-user-table-value {\n @apply ml-2 mt-2 whitespace-pre-line\n}\n\n.profile-info-match-user-suggest-wrapper {\n @apply flex flex-row items-center justify-between p-3 mt-[-16px] mb-2 text-sm text-white\n}\n\n.profile-info-match-user-suggest-button {\n @apply text-xs underline cursor-pointer\n}\n\n.profile-info-match-user-suggest-user-wrapper {\n @apply flex border-2 rounded-full overflow-hidden w-fit mx-auto p-0.5 mb-1\n}\n\n.profile-info-associated-user-wrapper {\n @apply flex flex-row gap-1 px-2 py-1 items-center border-b-[0.5px] rounded-xs\n}\n\n.profile-info-associated-user-action-wrapper {\n @apply flex flex-row items-center justify-end w-full\n}\n\n.profile-info-drawer-backdrop {\n @apply fixed inset-0 bg-black/40 !left-auto right-0 transition-opacity duration-300\n}\n\n.profile-info-drawer-wrapper {\n @apply fixed right-0 bottom-0 rounded-t-2xl shadow-lg transition-transform duration-300\n}\n\n.profile-info-drawer-content {\n @apply p-2 relative overflow-y-auto max-h-[90vh]\n}\n\n.profile-info-drawer-content-close {\n @apply absolute top-2 right-2\n}\n\n.profile-info-bill {\n @apply col-span-3 mx-auto mt-2\n}\n\n.profile-info-bill-icon {\n @apply rotate-180 size-2 fill-current\n}\n\n.profile-info-jump-chat-sign {\n @apply flex flex-row items-center justify-center gap-4\n}\n\n.profile-info-section-wrapper {\n @apply border-b-[0.5px] pt-0 min-h-20\n}\n\n.profile-info-refresh-user-button {\n @apply absolute -top-2 right-2\n}","import { Component, Prop, State, h, Event, EventEmitter } from '@stencil/core';\nimport { BillingItem, UserItem, TTagOrStatusItem } from '../../store/type';\nimport { displayDate } from '../../utils/dayjs';\nimport { useTranslation } from '../../utils/utils';\nimport { ZIconButton } from '../internal-component/z-icon-button';\nimport { ZTagOrStatusItem } from '../internal-component/z-tag-or-status-item';\nimport { ZButton } from '../internal-component/z-button';\nimport { Icon } from '../internal-component/icon';\nimport { getChatPicture, handleGetUserStatuses } from '../../store/chat';\nimport { configStore, selectedChatStore } from '../../store/store';\n\n@Component({\n tag: 'user-info-section',\n styleUrl: 'profile-info.css',\n})\nexport class UserInfoSection {\n @Prop() user: UserItem;\n @Prop() readOnly?: boolean = false;\n @Prop() isEditStatus: boolean;\n @Prop() statusId?: string;\n\n @Event() openDialogEditor: EventEmitter<{ label: string; field: string; value: string }>;\n @Event() editStatus: EventEmitter<void>;\n @Event() closeStatus: EventEmitter<void>;\n @Event() removeStatus: EventEmitter<void>;\n @Event() saveUserStatus: EventEmitter<void>;\n @Event() statusSelecting: EventEmitter<string>;\n @Event() createUserStatusRequest: EventEmitter<{ name: string; callback: (value: TTagOrStatusItem) => void }>;\n @Event() createBill: EventEmitter<BillingItem>;\n\n @State() showDialogBill: boolean = false;\n\n render() {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const selectedChat = selectedChatStore.get('selectedChat');\n\n const handleOpenDialogBillEditor = () => {\n this.showDialogBill = true;\n };\n\n const handleCloseDialogBillEditor = () => {\n this.showDialogBill = false;\n };\n\n const handleCreateDialogBillEditor = (value: BillingItem) => {\n this.createBill.emit(value);\n this.showDialogBill = false;\n };\n\n return (\n <div class={`profile-info-user-wrapper profile-info-section-wrapper z-border-divider-${theme}`}>\n <div class=\"profile-info-avatar-wrapper\">\n <div class=\"profile-info-avatar-box\">\n <z-avatar pictureUrl={getChatPicture(selectedChat)} />\n {selectedChat.type === 'group' &&\n <div class=\"profile-info-avatar-badge\">\n <z-avatar size=\"x-small\" />\n </div>\n }\n </div>\n </div>\n <div class=\"profile-info-name-wrapper\">\n <span class={`text-base z-text-${theme}`}>{this.user.name}</span>\n <div class=\"profile-info-box-wrapper\">\n <span class={`profile-info-nickname z-text-${theme}`}>{this.user.nickname}</span>\n {!this.readOnly && (\n <ZIconButton\n variant=\"text\"\n iconName=\"Pencil\"\n addClassIcon=\"size-4\"\n onClick={() => this.openDialogEditor.emit({ label: 'Nickname', field: 'nickname', value: this.user.nickname })}\n />\n )}\n </div>\n {this.isEditStatus ? (\n <div class=\"profile-info-box-wrapper\">\n {this.user.status && this.user.status?.id === this.statusId ? (\n <ZTagOrStatusItem item={this.user.status} onDelete={() => this.removeStatus.emit()} />\n ) : (\n <autocomplete-select\n value={this.user.status?.id === this.statusId ? this.user.status?.name : ''}\n fetchItems={handleGetUserStatuses}\n createItem={name => new Promise<TTagOrStatusItem>(resolve => {\n this.createUserStatusRequest.emit({ name, callback: resolve });\n })}\n onSelecting={item => this.statusSelecting.emit(item.detail.id)}\n referenceSelector=\"profile-status\"\n />\n )}\n <ZIconButton variant=\"text\" iconName=\"X\" addClassIcon=\"size-4\" onClick={() => this.closeStatus.emit()} />\n <ZIconButton variant=\"text\" iconName=\"Save\" addClassIcon=\"size-4\" onClick={() => this.saveUserStatus.emit()} />\n </div>\n ) : (\n <div class=\"profile-info-box-wrapper\">\n <span class={`text-sm z-text-${theme}`}>\n {t('status')} : \n {this.user.status ? (\n <tag-or-status-item item={this.user.status} chatId={`profile-status-${selectedChat.id}-${this.readOnly ? 'readonly' : ''}`} />\n ) : (\n '-'\n )}\n </span>\n {!this.readOnly && <ZIconButton variant=\"text\" iconName=\"Pencil\" addClassIcon=\"size-4\" onClick={() => this.editStatus.emit()} />}\n </div>\n )}\n </div>\n\n {this.user.summarized_message && (\n <div class=\"col-span-3\">\n <div class=\"profile-info-summarize-wrapper\">\n <span class={`profile-info-box-wrapper z-text-${theme}`}>\n {t('profile_tab.ai_summary')}\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path\n d=\"M4.55306 2.724C4.85206 1.849 6.06106 1.8225 6.41556 2.6445L6.44556 2.7245L6.84906 3.9045C6.94154 4.17512 7.09097 4.42276 7.28728 4.63071C7.48359 4.83867 7.72222 5.00211 7.98706 5.11L8.09556 5.1505L9.27556 5.5535C10.1506 5.8525 10.1771 7.0615 9.35556 7.416L9.27556 7.446L8.09556 7.8495C7.82485 7.94191 7.57712 8.09131 7.36907 8.28763C7.16103 8.48394 6.99751 8.7226 6.88956 8.9875L6.84906 9.0955L6.44606 10.276C6.14706 11.151 4.93806 11.1775 4.58406 10.356L4.55306 10.276L4.15006 9.096C4.05765 8.82529 3.90825 8.57755 3.71193 8.36951C3.51562 8.16146 3.27696 7.99795 3.01206 7.89L2.90406 7.8495L1.72406 7.4465C0.848564 7.1475 0.822064 5.9385 1.64406 5.5845L1.72406 5.5535L2.90406 5.1505C3.17468 5.05803 3.42232 4.9086 3.63028 4.71229C3.83823 4.51597 4.00167 4.27735 4.10956 4.0125L4.15006 3.9045L4.55306 2.724ZM9.49956 1C9.5931 1 9.68477 1.02624 9.76414 1.07574C9.84351 1.12523 9.90741 1.196 9.94856 1.28L9.97256 1.3385L10.1476 1.8515L10.6611 2.0265C10.7548 2.05835 10.837 2.11731 10.8972 2.19591C10.9574 2.27451 10.9929 2.36921 10.9992 2.46801C11.0055 2.56681 10.9824 2.65527 10.9327 2.75089C10.883 2.83652 10.809 2.90547 10.7201 2.949L10.6611 2.973L10.1481 3.148L9.97306 3.6615C9.94116 3.75521 9.88216 3.83735 9.80353 3.8975C9.7249 3.95764 9.63018 3.9931 9.53138 3.99936C9.43259 4.00563 9.33415 3.98242 9.24856 3.93269C9.16296 3.88296 9.09405 3.80893 9.05056 3.72L9.02656 3.6615L8.85156 3.1485L8.33806 2.9735C8.24432 2.94165 8.16215 2.88269 8.10195 2.80409C8.04175 2.72549 8.00624 2.63079 7.99993 2.53199C7.99361 2.43319 8.01676 2.33473 8.06645 2.24911C8.11615 2.16348 8.19014 2.09453 8.27906 2.051L8.33806 2.027L8.85106 1.852L9.02606 1.3385C9.05978 1.23971 9.12357 1.15395 9.20848 1.09325C9.2934 1.03254 9.39518 0.999937 9.49956 1Z\"\n fill=\"#E02847\"\n />\n </svg>\n </span>\n <span class={`text-xs z-text-gray-${theme}`}>\n {t('profile_tab.last_update')} {displayDate(this.user.summarized_message.created_at)}\n </span>\n </div>\n <div class=\"profile-info-summarize-text\">\n <typography-clamp text={this.user.summarized_message.text} />\n </div>\n </div>\n )}\n\n {(configStore.get('connectionList').find((connection) => connection.id === selectedChat.connection.id)?.type === 'zwiz') && (\n <div class=\"profile-info-bill\">\n <ZButton\n label=\"เปิดบิล\"\n title=\"เปิดบิล\"\n startIcon={<Icon name=\"ShoppingCart\" addClass=\"size-5 fill-current\" />}\n endIcon={<Icon name=\"Triangle\" addClass=\"profile-info-bill-icon\" />}\n onClick={() => handleOpenDialogBillEditor()}\n />\n </div>\n )}\n\n {this.showDialogBill && (\n <div class=\"dialog-backdrop\">\n <dialog-bill-editor onCancel={handleCloseDialogBillEditor} onCreate={(event) => handleCreateDialogBillEditor(event?.detail)} />\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-Db2KItIV.js","mappings":";;;;AAAA,MAAM,UAAU,GAAG,0nsDAA0nsD;;MCQhosD,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAAC,CAAA,CAAA;;;;;;;IACV,UAAU,GAAY,EAAE;IACxB,IAAI,GAAuD,QAAQ;IACnE,UAAU,GAAa,KAAK;IAE3B,QAAQ,GAAY,KAAK;IAE1B,WAAW,GAAG,MAAK;AACzB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;AACtB,KAAC;AAGD,IAAA,eAAe,CAAC,QAAgB,EAAA;QAC9B,IAAI,CAAC,QAAQ,EAAE;AACb,YAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;aACf;AACL,YAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;;;IAIzB,MAAM,GAAA;QACJ,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;QAEtC,MAAM,IAAI,GAAG,MAAK;AAChB,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;gBAC3B,OAAO;AACL,oBAAA,IAAI,EAAE,kBAAkB;AACxB,oBAAA,IAAI,EAAE,aAAa;iBACpB;;AAEH,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBACzB,OAAO;AACL,oBAAA,IAAI,EAAE,gBAAgB;AACtB,oBAAA,IAAI,EAAE,QAAQ;iBACf;;AAEH,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;gBAC1B,OAAO;AACL,oBAAA,IAAI,EAAE,iBAAiB;AACvB,oBAAA,IAAI,EAAE,QAAQ;iBACf;;AAEH,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBACzB,OAAO;AACL,oBAAA,IAAI,EAAE,gBAAgB;AACtB,oBAAA,IAAI,EAAE,SAAS;iBAChB;;AAEH,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;gBACxB,OAAO;AACL,oBAAA,IAAI,EAAE,eAAe;AACrB,oBAAA,IAAI,EAAE,SAAS;iBAChB;;AAEL,SAAC;AAED,QAAA,QACE,CAAA,CAAC,IAAI,EAAA,IAAA,EACF,IAAI,CAAC,QAAQ,IACZ,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,CAAA,QAAA,EAAW,KAAK,CAAA,CAAA,EAAI,IAAI,CAAC,UAAU,GAAG,EAAE,GAAG,cAAc,CAAA,CAAA,EAAI,IAAI,EAAE,CAAC,IAAI,CAAiB,eAAA,CAAA,EAAA,EACnG,CAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAC,YAAY,EAAC,QAAQ,EAAE,CAAG,EAAA,IAAI,EAAE,CAAC,IAAI,CAAA,QAAA,EAAW,KAAK,CAAE,CAAA,EAAA,CAAI,CAClE,KAEN,CAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAG,EAAA,IAAI,EAAE,CAAC,IAAI,CAAA,CAAA,EAAI,IAAI,CAAC,UAAU,GAAG,EAAE,GAAG,cAAc,CAAA,aAAA,CAAe,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAC,MAAM,EAAA,CAAG,CAC1L,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/z-avatar/z-avatar.css?tag=z-avatar","src/components/z-avatar/z-avatar.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.z-avatar-error {\n @apply flex items-center justify-center\n}\n\n.z-avatar-x-small {\n @apply size-4 min-w-4 min-h-4\n}\n\n.z-avatar-small {\n @apply size-8 min-w-8 min-h-8\n}\n\n.z-avatar-medium {\n @apply size-16 min-w-16 min-h-16\n}\n\n.z-avatar-large {\n @apply size-32 min-w-32 min-h-32\n}\n\n.z-avatar-full {\n @apply w-full h-full\n}","import { Component, Host, Prop, State, h, Watch } from '@stencil/core';\nimport { Icon } from '../internal-component/icon';\nimport { configStore } from '../../store/store';\n\n@Component({\n tag: 'z-avatar',\n styleUrl: 'z-avatar.css',\n})\nexport class ZAvatar {\n @Prop() pictureUrl?: string = '';\n @Prop() size?: 'x-small' | 'small' | 'medium' | 'large' | 'full' = 'medium';\n @Prop() isNotRound?: boolean = false;\n\n @State() hasError: boolean = false;\n\n private handleError = () => {\n this.hasError = true;\n };\n\n @Watch('pictureUrl')\n watchPictureUrl(newValue: string) {\n if (!newValue) {\n this.hasError = true;\n } else {\n this.hasError = false;\n }\n }\n\n render() {\n const theme = configStore.get('theme');\n\n const size = () => {\n if (this.size === 'x-small') {\n return {\n base: 'z-avatar-x-small',\n icon: 'size-[10px]',\n };\n }\n if (this.size === 'small') {\n return {\n base: 'z-avatar-small',\n icon: 'size-4',\n };\n }\n if (this.size === 'medium') {\n return {\n base: 'z-avatar-medium',\n icon: 'size-8',\n };\n }\n if (this.size === 'large') {\n return {\n base: 'z-avatar-large',\n icon: 'size-16',\n };\n }\n if (this.size === 'full') {\n return {\n base: 'z-avatar-full',\n icon: 'size-32',\n };\n }\n };\n\n return (\n <Host>\n {this.hasError ? (\n <div class={`z-paper-${theme} ${this.isNotRound ? '' : 'rounded-full'} ${size().base} z-avatar-error`}>\n <Icon name=\"UsersRound\" addClass={`${size().icon} z-text-${theme}`} />\n </div>\n ) : (\n <img key={this.pictureUrl} src={this.pictureUrl} alt=\"avatar\" class={`${size().base} ${this.isNotRound ? '' : 'rounded-full'} object-cover`} onError={this.handleError} loading=\"lazy\" />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|