zignal-stencil-library 1.1.113 → 1.1.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/cjs/autocomplete-address_43.cjs.entry.js +165 -96
  2. package/dist/cjs/quick-message-app.cjs.entry.js +1 -1
  3. package/dist/cjs/quick-message-app.entry.cjs.js.map +1 -1
  4. package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
  5. package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
  6. package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
  7. package/dist/collection/components/channel-box/channel-box.css +1 -1
  8. package/dist/collection/components/chat-app/chat-app.css +1 -1
  9. package/dist/collection/components/chat-header/chat-header.css +1 -1
  10. package/dist/collection/components/chat-input/chat-input.css +1 -1
  11. package/dist/collection/components/chat-input/chat-input.js +1 -1
  12. package/dist/collection/components/chat-input/chat-input.js.map +1 -1
  13. package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
  14. package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
  15. package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
  16. package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
  17. package/dist/collection/components/dialog-search/dialog-search.css +1 -1
  18. package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
  19. package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
  20. package/dist/collection/components/menu-list/menu-list.css +1 -1
  21. package/dist/collection/components/message-box/message-box.css +1 -1
  22. package/dist/collection/components/message-content/message-content.css +1 -1
  23. package/dist/collection/components/message-item/message-item.css +1 -1
  24. package/dist/collection/components/message-media/message-media.css +1 -1
  25. package/dist/collection/components/profile-history/profile-history.css +1 -1
  26. package/dist/collection/components/profile-info/profile-info.css +1 -1
  27. package/dist/collection/components/profile-media/profile-media.css +1 -1
  28. package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
  29. package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
  30. package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
  31. package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
  32. package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
  33. package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
  34. package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
  35. package/dist/collection/components/search-box/search-box.css +1 -1
  36. package/dist/collection/components/status-badge/status-badge.css +1 -1
  37. package/dist/collection/components/tag-list/tag-list.css +1 -1
  38. package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
  39. package/dist/collection/components/tag-popper/tag-popper.css +1 -1
  40. package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
  41. package/dist/collection/components/z-avatar/z-avatar.css +1 -1
  42. package/dist/collection/components/z-dialog/z-dialog.css +1 -1
  43. package/dist/components/autocomplete-address.js +1 -1
  44. package/dist/components/autocomplete-multiple-select.js +1 -1
  45. package/dist/components/autocomplete-select.js +1 -1
  46. package/dist/components/channel-box.js +1 -1
  47. package/dist/components/chat-app.js +40 -40
  48. package/dist/components/chat-app.js.map +1 -1
  49. package/dist/components/chat-header.js +1 -1
  50. package/dist/components/chat-input.js +1 -1
  51. package/dist/components/checkbox-list.js +1 -1
  52. package/dist/components/dialog-bill-editor.js +1 -1
  53. package/dist/components/dialog-editor.js +1 -1
  54. package/dist/components/dialog-preview-media.js +1 -1
  55. package/dist/components/dialog-search.js +1 -1
  56. package/dist/components/menu-chat-channel.js +1 -1
  57. package/dist/components/menu-chat-type.js +1 -1
  58. package/dist/components/menu-list.js +1 -1
  59. package/dist/components/message-box.js +1 -1
  60. package/dist/components/message-content.js +1 -1
  61. package/dist/components/message-item.js +1 -1
  62. package/dist/components/message-media.js +1 -1
  63. package/dist/components/{p-CvyJbTb9.js → p--m50OaqR.js} +11 -11
  64. package/dist/components/{p-CvyJbTb9.js.map → p--m50OaqR.js.map} +1 -1
  65. package/dist/components/{p-nEOSV6qt.js → p-3t2ULKvn.js} +5 -5
  66. package/dist/components/{p-nEOSV6qt.js.map → p-3t2ULKvn.js.map} +1 -1
  67. package/dist/components/{p-DRC94y7I.js → p-5QPDcqLV.js} +4 -4
  68. package/dist/components/{p-DRC94y7I.js.map → p-5QPDcqLV.js.map} +1 -1
  69. package/dist/components/{p-LQISNowV.js → p-B-DQMSNH.js} +3 -3
  70. package/dist/components/{p-LQISNowV.js.map → p-B-DQMSNH.js.map} +1 -1
  71. package/dist/components/{p-Ci1wlgXw.js → p-B2u057C4.js} +3 -3
  72. package/dist/components/{p-Ci1wlgXw.js.map → p-B2u057C4.js.map} +1 -1
  73. package/dist/components/{p-BVLGLAQM.js → p-BBzb0UrZ.js} +13 -13
  74. package/dist/components/{p-BVLGLAQM.js.map → p-BBzb0UrZ.js.map} +1 -1
  75. package/dist/components/{p-DW8sC5rc.js → p-BLI0eD_8.js} +3 -3
  76. package/dist/components/{p-DW8sC5rc.js.map → p-BLI0eD_8.js.map} +1 -1
  77. package/dist/components/{p-3XaRlwMZ.js → p-BNiehTz-.js} +8 -8
  78. package/dist/components/{p-3XaRlwMZ.js.map → p-BNiehTz-.js.map} +1 -1
  79. package/dist/components/{p-Dz4G6Q1l.js → p-BQmnx9-0.js} +3 -3
  80. package/dist/components/{p-Dz4G6Q1l.js.map → p-BQmnx9-0.js.map} +1 -1
  81. package/dist/components/{p-CrvmYhih.js → p-Bbm_pPzb.js} +4 -4
  82. package/dist/components/{p-CrvmYhih.js.map → p-Bbm_pPzb.js.map} +1 -1
  83. package/dist/components/p-BnxxvUCy.js +132 -0
  84. package/dist/components/{p-DuPV1DzK.js.map → p-BnxxvUCy.js.map} +1 -1
  85. package/dist/components/{p-CB09ePCJ.js → p-BqirszEW.js} +4 -4
  86. package/dist/components/{p-CB09ePCJ.js.map → p-BqirszEW.js.map} +1 -1
  87. package/dist/components/{p-l6ffmvGW.js → p-BssEwLaN.js} +3 -3
  88. package/dist/components/{p-l6ffmvGW.js.map → p-BssEwLaN.js.map} +1 -1
  89. package/dist/components/{p-DrW4vKrV.js → p-BypBSjsX.js} +5 -5
  90. package/dist/components/{p-DrW4vKrV.js.map → p-BypBSjsX.js.map} +1 -1
  91. package/dist/components/{p-Be5X3t5w.js → p-CI0T9mG3.js} +3 -3
  92. package/dist/components/{p-Be5X3t5w.js.map → p-CI0T9mG3.js.map} +1 -1
  93. package/dist/components/{p-5S7W_s42.js → p-CYj5eGUx.js} +4 -4
  94. package/dist/components/{p-5S7W_s42.js.map → p-CYj5eGUx.js.map} +1 -1
  95. package/dist/components/{p-DuPV1DzK.js → p-CcNDN7nL.js} +37 -108
  96. package/dist/components/{p-ZXZKAhiz.js.map → p-CcNDN7nL.js.map} +1 -1
  97. package/dist/components/{p-yhRJRzUn.js → p-CeCnJD_t.js} +3 -3
  98. package/dist/components/{p-yhRJRzUn.js.map → p-CeCnJD_t.js.map} +1 -1
  99. package/dist/components/{p-DkVyQai5.js → p-Ch0k98MI.js} +8 -8
  100. package/dist/components/{p-DkVyQai5.js.map → p-Ch0k98MI.js.map} +1 -1
  101. package/dist/components/{p-sBGx8qre.js → p-Cr_TwfMc.js} +3 -3
  102. package/dist/components/{p-sBGx8qre.js.map → p-Cr_TwfMc.js.map} +1 -1
  103. package/dist/components/{p-CJAs00I8.js → p-CsRXWqtl.js} +7 -7
  104. package/dist/components/{p-CJAs00I8.js.map → p-CsRXWqtl.js.map} +1 -1
  105. package/dist/components/{p-BHr52dZJ.js → p-DEGiGqSE.js} +5 -5
  106. package/dist/components/{p-BHr52dZJ.js.map → p-DEGiGqSE.js.map} +1 -1
  107. package/dist/components/{p-CZRPZKJ-.js → p-DFGwDaxI.js} +4 -4
  108. package/dist/components/{p-CZRPZKJ-.js.map → p-DFGwDaxI.js.map} +1 -1
  109. package/dist/components/{p-BzogxNIa.js → p-DIaQ5vRT.js} +3 -3
  110. package/dist/components/{p-BzogxNIa.js.map → p-DIaQ5vRT.js.map} +1 -1
  111. package/dist/components/{p-ufmeP0E5.js → p-DQ8HPG_K.js} +11 -11
  112. package/dist/components/{p-ufmeP0E5.js.map → p-DQ8HPG_K.js.map} +1 -1
  113. package/dist/components/{p-D5h0nLE5.js → p-DTU4M_6s.js} +8 -8
  114. package/dist/components/{p-D5h0nLE5.js.map → p-DTU4M_6s.js.map} +1 -1
  115. package/dist/components/{p-CcPJkDzX.js → p-DTxusuTj.js} +3 -3
  116. package/dist/components/{p-CcPJkDzX.js.map → p-DTxusuTj.js.map} +1 -1
  117. package/dist/components/{p-Dx0yXDO_.js → p-DUEwD6QB.js} +6 -6
  118. package/dist/components/{p-Dx0yXDO_.js.map → p-DUEwD6QB.js.map} +1 -1
  119. package/dist/components/{p-Bt12179Z.js → p-DXJv_Q_2.js} +4 -4
  120. package/dist/components/{p-Bt12179Z.js.map → p-DXJv_Q_2.js.map} +1 -1
  121. package/dist/components/{p-Dvfar-8p.js → p-DYCfNJWj.js} +5 -5
  122. package/dist/components/{p-Dvfar-8p.js.map → p-DYCfNJWj.js.map} +1 -1
  123. package/dist/components/{p-B19Afqpk.js → p-DaCqDkRK.js} +17 -17
  124. package/dist/components/{p-B19Afqpk.js.map → p-DaCqDkRK.js.map} +1 -1
  125. package/dist/components/{p-F1r0ydKy.js → p-DaIrHgbG.js} +17 -17
  126. package/dist/components/{p-F1r0ydKy.js.map → p-DaIrHgbG.js.map} +1 -1
  127. package/dist/components/{p-EGKFhNRS.js → p-DaxSdUIk.js} +3 -3
  128. package/dist/components/{p-EGKFhNRS.js.map → p-DaxSdUIk.js.map} +1 -1
  129. package/dist/components/{p-DN1ugCly.js → p-DkisMbeq.js} +3 -3
  130. package/dist/components/{p-DN1ugCly.js.map → p-DkisMbeq.js.map} +1 -1
  131. package/dist/components/{p-Baq4FLMS.js → p-DmwNXkXf.js} +3 -3
  132. package/dist/components/{p-Baq4FLMS.js.map → p-DmwNXkXf.js.map} +1 -1
  133. package/dist/components/{p-CS4KatwS.js → p-DoZmi5ih.js} +3 -3
  134. package/dist/components/{p-CS4KatwS.js.map → p-DoZmi5ih.js.map} +1 -1
  135. package/dist/components/{p-ChfkflWC.js → p-Donkg0LL.js} +3 -3
  136. package/dist/components/{p-ChfkflWC.js.map → p-Donkg0LL.js.map} +1 -1
  137. package/dist/components/{p-BuZJtX19.js → p-Dp3EHSUO.js} +3 -3
  138. package/dist/components/{p-BuZJtX19.js.map → p-Dp3EHSUO.js.map} +1 -1
  139. package/dist/components/{p-BsV8XOdl.js → p-DpdkqWPQ.js} +20 -20
  140. package/dist/components/{p-BsV8XOdl.js.map → p-DpdkqWPQ.js.map} +1 -1
  141. package/dist/components/{p-B2ay8yxa.js → p-DyatyKQQ.js} +3 -3
  142. package/dist/components/{p-B2ay8yxa.js.map → p-DyatyKQQ.js.map} +1 -1
  143. package/dist/components/{p-jGwKbBta.js → p-Fr7xN81m.js} +9 -9
  144. package/dist/components/{p-jGwKbBta.js.map → p-Fr7xN81m.js.map} +1 -1
  145. package/dist/components/{p-C2YAe0Ke.js → p-Heeo8D4P.js} +128 -59
  146. package/dist/components/p-Heeo8D4P.js.map +1 -0
  147. package/dist/components/{p-C_rJguGq.js → p-aEvNkqAt.js} +5 -5
  148. package/dist/components/{p-C_rJguGq.js.map → p-aEvNkqAt.js.map} +1 -1
  149. package/dist/components/profile-history.js +1 -1
  150. package/dist/components/profile-info.js +1 -1
  151. package/dist/components/profile-media.js +1 -1
  152. package/dist/components/profile-tabs.js +1 -1
  153. package/dist/components/quick-message-add-template.js +1 -1
  154. package/dist/components/quick-message-app.js +6 -6
  155. package/dist/components/quick-message-app.js.map +1 -1
  156. package/dist/components/quick-message-file.js +1 -1
  157. package/dist/components/quick-message-image.js +1 -1
  158. package/dist/components/quick-message-modal.js +1 -1
  159. package/dist/components/quick-message-template.js +1 -1
  160. package/dist/components/search-box.js +1 -1
  161. package/dist/components/status-badge.js +1 -1
  162. package/dist/components/summarize-message-section.js +1 -1
  163. package/dist/components/tag-list.js +1 -1
  164. package/dist/components/tag-or-status-item.js +1 -1
  165. package/dist/components/tag-popper.js +1 -1
  166. package/dist/components/typography-clamp.js +1 -1
  167. package/dist/components/user-info-section.js +1 -1
  168. package/dist/components/z-avatar.js +1 -1
  169. package/dist/components/z-dialog.js +1 -1
  170. package/dist/esm/autocomplete-address_43.entry.js +165 -96
  171. package/dist/esm/quick-message-app.entry.js +1 -1
  172. package/dist/esm/quick-message-app.entry.js.map +1 -1
  173. package/dist/zignal-stencil-library/p-1a660578.entry.js +2 -0
  174. package/dist/zignal-stencil-library/{p-cdcb0c65.entry.js.map → p-1a660578.entry.js.map} +1 -1
  175. package/dist/zignal-stencil-library/{p-3cea211f.entry.js → p-548e9d88.entry.js} +168 -168
  176. package/dist/zignal-stencil-library/p-548e9d88.entry.js.map +1 -0
  177. package/dist/zignal-stencil-library/quick-message-app.entry.esm.js.map +1 -1
  178. package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
  179. package/package.json +3 -3
  180. package/dist/components/p-C2YAe0Ke.js.map +0 -1
  181. package/dist/components/p-ZXZKAhiz.js +0 -61
  182. package/dist/zignal-stencil-library/p-3cea211f.entry.js.map +0 -1
  183. package/dist/zignal-stencil-library/p-cdcb0c65.entry.js +0 -2
@@ -1 +1 @@
1
- {"file":"p-Dx0yXDO_.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,owrDAAowrD;;MCcvxrD,6BAA6B,iBAAAA,kBAAA,CAAA,MAAA,6BAAA,SAAAC,CAAA,CAAA;;;;;;;;;AAChC,IAAA,WAAW;AACX,IAAA,KAAK;IACL,QAAQ,GAAY,KAAK;IAEhB,cAAc,GAAG,EAAE;IACnB,SAAS,GAAgC,EAAE;IAC3C,qBAAqB,GAAG,KAAK;AAC7B,IAAA,eAAe;IACf,UAAU,GAA0B,QAAQ;IAC5C,SAAS,GAAG,KAAK;IACjB,aAAa,GAAG,KAAK;IACrB,gBAAgB,GAAG,KAAK;AACxB,IAAA,kBAAkB;AAClB,IAAA,qBAAqB;IACrB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-template.css?tag=quick-message-template","src/components/quick-message-template/quick-message-template.tsx"],"sourcesContent":[".quick-message-template__card {\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);\n}\n\n.quick-message-template__button-action {\n color: var(--quick-modal-primary);\n}\n\n.quick-message-template__toggle {\n border: 1px solid rgba(148, 163, 184, 0.4);\n}\n\n.quick-message-template__dialog-overlay {\n position: absolute;\n inset: 0;\n background: rgba(15, 23, 42, 0.35);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 70;\n padding: 16px;\n}\n\n.quick-message-template__dialog {\n width: min(440px, 100%);\n border-radius: 16px;\n box-shadow: 0 20px 45px rgba(17, 24, 39, 0.22);\n border: 1px solid rgba(148, 163, 184, 0.25);\n display: flex;\n flex-direction: column;\n max-height: min(440px, 100%);\n}\n\n.quick-message-template__dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 18px 20px 12px;\n border-bottom: 1px solid rgba(148, 163, 184, 0.28);\n}\n\n.quick-message-template__dialog-header h3 {\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n}\n\n.quick-message-template__dialog-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 9999px;\n border: none;\n background: transparent;\n cursor: pointer;\n}\n\n.quick-message-template__dialog-body {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: 16px 20px;\n overflow-y: auto;\n}\n\n.quick-message-template__input,\n.quick-message-template__textarea {\n border-radius: 12px;\n border-width: 1px;\n padding: 10px 14px;\n font-size: 14px;\n resize: none;\n}\n\n.quick-message-template__textarea {\n min-height: 100px;\n}\n\n.quick-message-template__dialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 16px 20px 20px;\n border-top: 1px solid rgba(148, 163, 184, 0.18);\n}\n\n.quick-message-template__dialog-button {\n border-radius: 9999px;\n font-weight: 600;\n font-size: 13px;\n padding: 10px 18px;\n border: none;\n cursor: pointer;\n}\n\n.quick-message-template__dialog-button--ghost {\n background: transparent;\n color: rgba(100, 116, 139, 1);\n}\n\n.quick-message-template__dialog-button--primary {\n background: var(--quick-modal-primary);\n color: #fff;\n box-shadow: 0 10px 25px var(--quick-modal-primary-shadow);\n}\n\n.quick-message-template__dialog-button--primary:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n box-shadow: none;\n}\n","import { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport dayjs from 'dayjs';\nimport { createQuickMessageTemplate, deleteQuickMessageTemplate, getQuickMessageTemplates, updateQuickMessageTemplate } from '../../api/quick-message';\nimport { QuickMessageTemplate as QuickMessageTemplateModel, QuickMessageTemplateContent } from '../../store/type';\nimport { configStore } from '../../store/store';\nimport { useTranslation } from '../../utils/utils';\nimport { Icon } from '../internal-component/icon';\nimport type { TemplateSelectionMode } from '../quick-message-modal/template-selection';\nimport { DIALOG_TYPE, openDialog, handleError as showErrorDialog } from '../../store/dialog';\n\n@Component({\n tag: 'quick-message-template',\n styleUrl: 'quick-message-template.css',\n})\nexport class QuickMessageTemplateComponent {\n @Prop() handleClose?: () => void;\n @Prop() value?: string | QuickMessageTemplateModel[];\n @Prop() isMaster: boolean = false;\n\n @State() private searchTemplate = '';\n @State() private templates: QuickMessageTemplateModel[] = [];\n @State() private showAddTemplateDialog = false;\n @State() private editingTemplate?: QuickMessageTemplateModel;\n @State() private dialogMode: TemplateSelectionMode = 'create';\n @State() private isLoading = false;\n @State() private isLoadingMore = false;\n @State() private isSavingTemplate = false;\n @State() private deletingTemplateId?: string;\n @State() private templatePendingDelete?: QuickMessageTemplateModel;\n @State() private totalTemplates = 0;\n @State() private totalPages = 0;\n\n private page = 1;\n private readonly pageSize = 10;\n private readonly loadMoreThreshold = 160;\n private currentSearch = '';\n private scrollContainer?: HTMLDivElement;\n\n @Event({ bubbles: true, composed: true }) templatesChange!: EventEmitter<QuickMessageTemplateModel[]>;\n @Event({ bubbles: true, composed: true }) sendTemplate!: EventEmitter<QuickMessageTemplateModel>;\n\n componentWillLoad() {\n this.syncTemplatesFromProp(this.value);\n }\n\n async componentDidLoad() {\n await this.fetchTemplates({ reset: true });\n }\n\n componentDidRender() {\n this.autoLoadMoreIfNeeded();\n }\n\n @Watch('value')\n protected handleValueChange(newValue?: string | QuickMessageTemplateModel[]) {\n this.syncTemplatesFromProp(newValue);\n }\n\n private syncTemplatesFromProp(value?: string | QuickMessageTemplateModel[]) {\n if (value === undefined || value === null) {\n this.setTemplates([], false);\n return;\n }\n\n const parsed = this.parseTemplateValue(value);\n this.setTemplates(parsed, false);\n }\n\n private mergeWithExistingState(fetched: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (this.templates.length === 0) {\n return fetched;\n }\n\n const expandedMap = new Map(this.templates.map(template => [template.id, template.isExpanded ?? false]));\n\n return fetched.map(template => ({\n ...template,\n isExpanded: expandedMap.get(template.id) ?? template.isExpanded ?? false,\n }));\n }\n\n private appendTemplates(fetched: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (fetched.length === 0) {\n return [...this.templates];\n }\n\n const next = [...this.templates];\n const indexMap = new Map(next.map((template, index) => [template.id, index]));\n\n fetched.forEach(template => {\n const existingIndex = indexMap.get(template.id);\n if (existingIndex !== undefined) {\n next[existingIndex] = {\n ...template,\n isExpanded: next[existingIndex].isExpanded ?? false,\n };\n return;\n }\n\n next.push({ ...template, isExpanded: template.isExpanded ?? false });\n indexMap.set(template.id, next.length - 1);\n });\n\n return next;\n }\n\n private async fetchTemplates({ search, reset = true }: { search?: string; reset?: boolean } = {}) {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n\n if (!businessId || !shopId) {\n return;\n }\n\n if (reset ? this.isLoading : this.isLoadingMore) {\n return;\n }\n\n const normalizedSearch = search !== undefined ? search : this.currentSearch;\n const trimmedSearch = normalizedSearch?.trim() ?? '';\n const nextPage = reset ? 1 : this.page + 1;\n\n if (search !== undefined) {\n this.searchTemplate = normalizedSearch ?? '';\n }\n\n if (reset) {\n this.isLoading = true;\n } else {\n this.isLoadingMore = true;\n }\n\n try {\n const response = await getQuickMessageTemplates({\n search: trimmedSearch ? trimmedSearch : undefined,\n page: nextPage,\n limit: this.pageSize,\n });\n\n const normalized = this.cloneTemplates(response.templates || []);\n const nextTemplates = reset ? this.mergeWithExistingState(normalized) : this.appendTemplates(normalized);\n\n this.page = response.page > 0 ? response.page : nextPage;\n const resolvedTotalPages = response.total_pages > 0 ? response.total_pages : nextTemplates.length > 0 ? 1 : 0;\n this.totalPages = resolvedTotalPages;\n this.totalTemplates = response.total;\n this.currentSearch = trimmedSearch;\n\n this.setTemplates(nextTemplates);\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to fetch templates');\n } finally {\n if (reset) {\n this.isLoading = false;\n } else {\n this.isLoadingMore = false;\n }\n }\n }\n\n private async loadMoreTemplates() {\n if (this.isLoading || this.isLoadingMore) {\n return;\n }\n\n if (this.totalTemplates > 0 && this.templates.length >= this.totalTemplates) {\n return;\n }\n\n if (this.totalPages === 0 || this.page >= this.totalPages) {\n return;\n }\n\n await this.fetchTemplates({ reset: false });\n }\n\n private handleScroll(event: Event) {\n const target = event.target as HTMLElement | null;\n if (!target) {\n return;\n }\n\n this.triggerLoadMoreIfNeeded(target);\n }\n\n private async handleSearchSubmit(event?: Event) {\n event?.preventDefault();\n await this.fetchTemplates({ search: this.searchTemplate, reset: true });\n }\n\n private handleSearchInput(event: Event) {\n const value = (event.target as HTMLInputElement).value;\n this.searchTemplate = value;\n\n if (!value.trim() && this.currentSearch && !this.isLoading && !this.isLoadingMore) {\n void this.fetchTemplates({ search: '', reset: true });\n }\n }\n\n private clearSearch() {\n if (!this.searchTemplate && !this.currentSearch) {\n return;\n }\n\n this.searchTemplate = '';\n\n if (!this.isLoading && !this.isLoadingMore) {\n void this.fetchTemplates({ search: '', reset: true });\n }\n }\n\n private parseTemplateValue(value: string | QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (typeof value === 'string') {\n try {\n const deserialized = JSON.parse(value) as QuickMessageTemplateModel[];\n return this.cloneTemplates(deserialized);\n } catch (error: unknown) {\n console.warn('[quick-message-template] Failed to parse templates value', error);\n return [];\n }\n }\n\n return this.cloneTemplates(value);\n }\n\n private cloneTemplates(templates: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n return (templates || []).map(template => {\n const rawContents = template.contents || [];\n\n const normalizedContents = rawContents.map(content => {\n const rawMenuList = content.menu_list || [];\n const menuList = rawMenuList.map(menu => ({\n ...menu,\n buttons: (menu.buttons || []).map(button => ({ ...button })),\n }));\n\n return {\n ...content,\n buttons: (content.buttons || []).map(button => ({ ...button })),\n menu_list: menuList,\n };\n });\n\n return {\n ...template,\n contents: normalizedContents,\n };\n });\n }\n\n private setTemplates(next: QuickMessageTemplateModel[], shouldEmit = true) {\n this.templates = next;\n if (shouldEmit) {\n const payload = this.cloneTemplates(next);\n this.templatesChange.emit(payload);\n }\n }\n\n private canAttemptLoadMore(): boolean {\n if (this.isLoading || this.isLoadingMore) {\n return false;\n }\n\n if (this.totalTemplates > 0 && this.templates.length >= this.totalTemplates) {\n return false;\n }\n\n if (this.totalPages === 0 || this.page >= this.totalPages) {\n return false;\n }\n\n return true;\n }\n\n private triggerLoadMoreIfNeeded(container: HTMLElement) {\n if (!this.canAttemptLoadMore()) {\n return;\n }\n\n const remaining = container.scrollHeight - container.scrollTop - container.clientHeight;\n if (remaining < this.loadMoreThreshold) {\n void this.loadMoreTemplates();\n }\n }\n\n private autoLoadMoreIfNeeded() {\n if (!this.scrollContainer) {\n return;\n }\n\n this.triggerLoadMoreIfNeeded(this.scrollContainer);\n }\n\n private toggleTemplateExpansion(id: string) {\n this.setTemplates(this.templates.map(template => (template.id === id ? { ...template, isExpanded: !template.isExpanded } : template)));\n }\n\n private filterTemplates(): QuickMessageTemplateModel[] {\n const search = this.currentSearch.trim().toLowerCase();\n if (!search) return this.templates;\n return this.templates.filter(template => template.title.toLowerCase().includes(search));\n }\n\n private handleTemplateAction(template: QuickMessageTemplateModel, mode: TemplateSelectionMode) {\n if (mode === 'create' || mode === 'edit' || mode === 'edit-send') {\n this.openTemplateDialog(template, mode);\n return;\n }\n if (mode === 'send') {\n const clonedTemplate: QuickMessageTemplateModel = {\n ...template,\n contents: (template.contents || []).map(content => ({\n ...content,\n buttons: [...(content.buttons || [])],\n menu_list: (content.menu_list || []).map(menu => ({\n ...menu,\n buttons: [...(menu.buttons || [])],\n })),\n })),\n };\n\n const processedTemplate = this.processTemplate(clonedTemplate);\n\n this.closeTemplateDialog();\n this.handleClose?.();\n this.sendTemplate.emit(processedTemplate);\n }\n }\n\n private renderTemplateContent(content: QuickMessageTemplateContent, theme: string) {\n switch (content.type) {\n case 'text':\n return (\n <div class=\"flex flex-col gap-2\">\n <p class={`z-text-${theme} whitespace-pre-line text-sm leading-relaxed`}>{content.text}</p>\n </div>\n );\n case 'button':\n return (\n <div class=\"flex flex-col gap-2\">\n <p class={`z-text-${theme} whitespace-pre-line text-sm leading-relaxed`}>{content.text}</p>\n <div class=\"flex flex-col gap-1.5\">\n {content.buttons.length > 0 && (\n <div class=\"flex flex-col gap-2\">\n {content.buttons.map(button => (\n <div\n class={`flex w-full flex-col items-center gap-1 rounded-xl px-3 py-2 text-sm font-medium text-white shadow-sm z-background-primary-${theme} truncate`}\n key={button.id}\n >\n <span class=\"w-full text-center leading-tight truncate\">{button.text || '-'}</span>\n <span class=\"w-full text-center text-xs leading-none opacity-80 truncate\">{button.action_type === 'text' ? '-' : button.action || '-'}</span>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n );\n case 'image':\n return <div class=\"flex flex-wrap gap-3\">{content.file_url && this.renderImageMedia(content.file_url, theme)}</div>;\n case 'menu_list':\n return (\n <div class=\"flex gap-3 overflow-x-auto pb-1\">\n {content.menu_list.map(menu => (\n <div class={`flex w-[240px] shrink-0 flex-col overflow-hidden rounded-[18px] border-[1.5px] shadow-sm z-border-primary-${theme} z-background-${theme}`} key={menu.id}>\n <div class={`relative h-[160px] border-b-[1.5px] z-border-primary-${theme} overflow-hidden`}>\n {menu.file_url ? (\n <img src={menu.file_url} alt={menu.title} class=\"h-full w-full object-cover\" loading=\"lazy\" />\n ) : (\n <div class={`flex h-full w-full items-center justify-center z-background-${theme} z-text-gray-${theme} opacity-60`}>\n <Icon name=\"Image\" addClass=\"size-10\" />\n </div>\n )}\n </div>\n\n <div class=\"flex flex-col gap-2 px-4 py-4\">\n {menu.title && <div class=\"text-sm font-semibold leading-snug\">{menu.title}</div>}\n {menu.description && <div class={`text-xs leading-snug z-text-gray-${theme}`}>{menu.description}</div>}\n\n {menu.buttons.length > 0 && (\n <div class=\"flex flex-col gap-2\">\n {menu.buttons.map(button => (\n <div\n class={`flex w-full flex-col items-center gap-1 rounded-xl px-3 py-2 text-sm font-medium text-white shadow-sm z-background-primary-${theme}`}\n key={button.id}\n >\n <span class=\"w-full text-center leading-tight truncate\">{button.text || '-'}</span>\n <span class=\"w-full text-center text-xs leading-none opacity-80 truncate\">{button.action_type === 'text' ? '-' : button.action || '-'}</span>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n );\n case 'video':\n return (\n <video src={content.file_url} class=\"h-[220px] object-cover rounded-xl\" controls>\n <track kind=\"captions\" src=\"\" label=\"English\" />\n </video>\n );\n default:\n return null;\n }\n }\n\n private renderImageMedia(fileUrl: string, theme: string) {\n return <img src={fileUrl} alt=\"\" class={`h-[200px] w-[200px] rounded-xl border object-cover z-border-${theme}`} loading=\"lazy\" />;\n }\n\n private closeTemplateDialog() {\n this.showAddTemplateDialog = false;\n this.editingTemplate = undefined;\n this.dialogMode = 'edit';\n this.isSavingTemplate = false;\n }\n\n private openTemplateDialog(template?: QuickMessageTemplateModel, mode: TemplateSelectionMode = 'edit') {\n this.editingTemplate = template ? { ...template } : undefined;\n this.dialogMode = mode;\n this.showAddTemplateDialog = true;\n this.isSavingTemplate = false;\n }\n\n private processTemplate(template: QuickMessageTemplateModel) {\n // remove empty menuList\n template.contents = template.contents.map(content => {\n if (content.type === 'menu_list') {\n content.menu_list = content.menu_list.filter(menu => menu.buttons.length > 0 || menu.file_url || menu.title || menu.description);\n }\n return content;\n });\n\n // remove empty content\n template.contents = template.contents.filter(content => content.text || content.buttons.length > 0 || content.file_url || content.menu_list.length > 0);\n\n return template;\n }\n\n private upsertTemplate(template: QuickMessageTemplateModel, { closeDialog = true }: { closeDialog?: boolean } = {}) {\n const withMeta: QuickMessageTemplateModel = {\n ...template,\n isExpanded: this.editingTemplate?.id === template.id ? this.editingTemplate.isExpanded : true,\n };\n\n const exists = this.templates.some(item => item.id === withMeta.id);\n const nextTemplates = exists ? this.templates.map(item => (item.id === withMeta.id ? withMeta : item)) : [...this.templates, withMeta];\n\n this.setTemplates(nextTemplates);\n\n if (closeDialog) {\n this.closeTemplateDialog();\n }\n }\n\n private async handleTemplateSave(template: QuickMessageTemplateModel) {\n if (this.isSavingTemplate) {\n return;\n }\n\n const cloned = this.cloneTemplates([template]);\n const workingTemplate = cloned[0];\n if (!workingTemplate) {\n return;\n }\n\n const processedTemplate = this.processTemplate(workingTemplate);\n const isNewTemplate = !processedTemplate.id || processedTemplate.id.startsWith('template-');\n\n if (!isNewTemplate) {\n try {\n this.isSavingTemplate = true;\n const updated = await updateQuickMessageTemplate(processedTemplate);\n const [normalized] = this.cloneTemplates([updated]);\n this.upsertTemplate(normalized);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to update template');\n } finally {\n this.isSavingTemplate = false;\n }\n return;\n }\n\n try {\n this.isSavingTemplate = true;\n const created = await createQuickMessageTemplate(processedTemplate);\n const [normalized] = this.cloneTemplates([created]);\n this.upsertTemplate(normalized);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to create template');\n } finally {\n this.isSavingTemplate = false;\n }\n }\n\n private requestDeleteTemplate(template: QuickMessageTemplateModel) {\n if (!template?.id || this.deletingTemplateId) {\n return;\n }\n\n this.templatePendingDelete = template;\n const t = useTranslation();\n const title = t('quick_message.delete_template_title');\n\n openDialog({\n open: true,\n type: DIALOG_TYPE.WARNING,\n title,\n buttonName: t('confirm'),\n cancelButtonName: t('cancel'),\n onSubmitDialog: () => {\n this.confirmDeleteTemplate();\n },\n onCloseDialog: () => {\n this.templatePendingDelete = undefined;\n },\n });\n }\n\n private async confirmDeleteTemplate() {\n const template = this.templatePendingDelete;\n if (!template?.id || this.deletingTemplateId) {\n this.templatePendingDelete = undefined;\n return;\n }\n\n this.deletingTemplateId = template.id;\n this.templatePendingDelete = undefined;\n\n try {\n await deleteQuickMessageTemplate(template.id);\n const remaining = this.templates.filter(item => item.id !== template.id);\n this.setTemplates(remaining);\n this.totalTemplates = Math.max(0, this.totalTemplates - 1);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to delete template');\n } finally {\n this.deletingTemplateId = undefined;\n }\n }\n\n render() {\n const theme = configStore.get('theme');\n const t = useTranslation();\n const filteredTemplates = this.filterTemplates();\n const showBottomSpinner = (this.isLoading && filteredTemplates.length > 0) || this.isLoadingMore;\n\n return (\n <Host class=\"relative flex min-h-0 flex-1 flex-col gap-2\">\n <form class=\"relative w-full\" onSubmit={event => this.handleSearchSubmit(event)}>\n <input\n type=\"text\"\n class={`w-full border z-border-divider-${theme} text-sm px-4 py-2 rounded-lg ring-primary focus:outline-none focus:border-primary z-background-${theme} z-text-${theme}`}\n placeholder={t('quick_message.search_template')}\n value={this.searchTemplate}\n onInput={event => this.handleSearchInput(event)}\n autoComplete=\"off\"\n />\n {this.searchTemplate && (\n <button type=\"button\" class=\"absolute inset-y-0 right-3 flex items-center text-xs opacity-70 transition-opacity hover:opacity-100\" onClick={() => this.clearSearch()}>\n <Icon name=\"X\" addClass=\"size-4\" />\n </button>\n )}\n </form>\n\n <div class=\"flex items-center gap-2\">\n <div class={`inline-flex items-center rounded-full px-4 py-1 text-[10px] font-semibold text-white z-background-primary-${theme}`}>ZIGNAL</div>\n <div class={`inline-flex items-center rounded-full px-4 py-1 text-[10px] font-semibold z-text-primary-${theme} border z-border-primary-${theme}`}>ZWIZ.AI</div>\n </div>\n\n <div\n class=\"flex flex-1 flex-col gap-3 overflow-y-auto\"\n ref={el => {\n this.scrollContainer = el ? (el as HTMLDivElement) : undefined;\n }}\n onScroll={event => this.handleScroll(event)}\n >\n <button\n class={`inline-flex items-center justify-center gap-2 rounded-xl border-[1.5px] border-dashed px-4 py-2 z-text-primary-${theme} cursor-pointer`}\n type=\"button\"\n onClick={() => this.openTemplateDialog(undefined, 'create')}\n >\n <Icon name=\"Plus\" addClass=\"size-4\" />\n <span class=\"text-sm\">{t('quick_message.add_template')}</span>\n </button>\n\n {this.isLoading && filteredTemplates.length === 0 ? (\n <div class=\"flex flex-1 items-center justify-center py-10 text-sm text-slate-500\">\n <Icon name=\"Loader2\" addClass=\"size-6 animate-spin\" />\n </div>\n ) : (\n <div class=\"flex flex-col gap-3\">\n {filteredTemplates.length === 0 && <div class=\"py-10 text-center text-sm text-slate-500\">{t('quick_message.template_empty')}</div>}\n\n {filteredTemplates.map(template => {\n const lastUpdatedAt = template.last_updated_at || template.created_at || new Date();\n const formattedDate = dayjs(lastUpdatedAt).tz().format('DD/MM/YYYY HH:mm');\n const rawLastUpdatedBy = template.last_updated_by ?? template.created_by ?? '';\n const displayUpdatedBy = typeof rawLastUpdatedBy === 'string' && rawLastUpdatedBy.trim().length > 0 ? rawLastUpdatedBy : '-';\n\n return (\n <div\n class={`quick-message-template__card z-border-primary-${theme} rounded-2xl border-[1.5px] px-4 py-4 shadow-[0_8px_24px_rgba(15,23,42,0.08)]`}\n key={template.id}\n >\n <div class=\"flex flex-col sm:flex-row items-start gap-3 sm:min-w-0\">\n <div class=\"flex-1 flex flex-col gap-1.5 w-full overflow-hidden\">\n <div class=\"text-base font-semibold truncate\" title={template.title}>\n {template.title}\n </div>\n <div class={`text-[11px] z-text-gray-${theme}`}>{t('quick_message.updated_at').replace('{date}', formattedDate).replace('{by}', displayUpdatedBy)}</div>\n </div>\n <div class=\"flex gap-4 flex-row items-center self-end\">\n {this.isMaster && <button type=\"button\" onClick={() => this.handleTemplateAction(template, 'edit')} aria-label={t('edit')}>\n <Icon name=\"Pencil\" addClass={`size-4 cursor-pointer z-text-primary-${theme}`} />\n </button>}\n {this.isMaster && <button\n type=\"button\"\n aria-label={t('delete')}\n onClick={() => this.requestDeleteTemplate(template)}\n disabled={Boolean(this.deletingTemplateId)}\n class={`${this.deletingTemplateId ? 'opacity-60 cursor-not-allowed' : 'cursor-pointer'}`}\n >\n {this.deletingTemplateId === template.id ? (\n <Icon name=\"Loader2\" addClass={`size-4 animate-spin z-text-primary-${theme}`} />\n ) : (\n <Icon name=\"Trash2\" addClass={`size-4 z-text-primary-${theme}`} />\n )}\n </button>}\n {!this.isMaster && (\n <button\n type=\"button\"\n class={`inline-flex items-center justify-center rounded-full border px-4 py-2 text-xs font-semibold cursor-pointer z-border-primary-${theme} z-text-primary-${theme}`}\n onClick={() => this.handleTemplateAction(template, 'edit-send')}\n >\n {t('quick_message.edit_before_send')}\n </button>\n )}\n {!this.isMaster && (\n <button\n type=\"button\"\n class={`inline-flex items-center justify-center rounded-full px-4 py-2 text-xs font-semibold text-white cursor-pointer z-background-primary-${theme}`}\n onClick={() => this.handleTemplateAction(template, 'send')}\n >\n {t('quick_message.send_now')}\n </button>\n )}\n <button\n type=\"button\"\n class=\"quick-message-template__toggle inline-flex h-9 w-9 items-center justify-center rounded-full cursor-pointer\"\n onClick={() => this.toggleTemplateExpansion(template.id)}\n >\n <Icon name={template.isExpanded ? 'ChevronUp' : 'ChevronDown'} />\n </button>\n </div>\n </div>\n {template.isExpanded && (\n <div class=\"mt-4 flex flex-col gap-2\">\n {template.contents.map(content => (\n <div key={content.id} class={`border z-border-${theme} rounded-xl p-4`}>\n {this.renderTemplateContent(content, theme)}\n </div>\n ))}\n </div>\n )}\n </div>\n );\n })}\n </div>\n )}\n {showBottomSpinner && (\n <div class=\"flex justify-center py-4 text-sm text-slate-500\">\n <Icon name=\"Loader2\" addClass=\"size-5 animate-spin\" />\n </div>\n )}\n </div>\n\n {this.showAddTemplateDialog && (\n <quick-message-add-template\n handleClose={() => this.closeTemplateDialog()}\n handleSave={template => this.handleTemplateSave(template)}\n handleSend={template => this.handleTemplateAction(template, 'send')}\n initialTemplate={this.editingTemplate}\n mode={this.dialogMode}\n isSaving={this.isSavingTemplate}\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-DUEwD6QB.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,k4pDAAk4pD;;MCcr5pD,6BAA6B,iBAAAA,kBAAA,CAAA,MAAA,6BAAA,SAAAC,CAAA,CAAA;;;;;;;;;AAChC,IAAA,WAAW;AACX,IAAA,KAAK;IACL,QAAQ,GAAY,KAAK;IAEhB,cAAc,GAAG,EAAE;IACnB,SAAS,GAAgC,EAAE;IAC3C,qBAAqB,GAAG,KAAK;AAC7B,IAAA,eAAe;IACf,UAAU,GAA0B,QAAQ;IAC5C,SAAS,GAAG,KAAK;IACjB,aAAa,GAAG,KAAK;IACrB,gBAAgB,GAAG,KAAK;AACxB,IAAA,kBAAkB;AAClB,IAAA,qBAAqB;IACrB,cAAc,GAAG,CAAC;IAClB,UAAU,GAAG,CAAC;IAEvB,IAAI,GAAG,CAAC;IACC,QAAQ,GAAG,EAAE;IACb,iBAAiB,GAAG,GAAG;IAChC,aAAa,GAAG,EAAE;AAClB,IAAA,eAAe;AAEmB,IAAA,eAAe;AACf,IAAA,YAAY;IAEtD,iBAAiB,GAAA;AACf,QAAA,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;;AAGxC,IAAA,MAAM,gBAAgB,GAAA;QACpB,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;IAG5C,kBAAkB,GAAA;QAChB,IAAI,CAAC,oBAAoB,EAAE;;AAInB,IAAA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KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iDAAiD,EAAA,EAC1D,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAC,qBAAqB,EAAA,CAAG,CAClD,CACP,CACG,EAEL,IAAI,CAAC,qBAAqB,KACzB,CACE,CAAA,4BAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,WAAW,EAAE,MAAM,IAAI,CAAC,mBAAmB,EAAE,EAC7C,UAAU,EAAE,QAAQ,IAAI,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EACzD,UAAU,EAAE,QAAQ,IAAI,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,EACnE,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,IAAI,EAAE,IAAI,CAAC,UAAU,EACrB,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAA,CAC/B,CACH,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement","showErrorDialog"],"sources":["src/components/quick-message-template/quick-message-template.css?tag=quick-message-template","src/components/quick-message-template/quick-message-template.tsx"],"sourcesContent":[".quick-message-template__card {\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);\n}\n\n.quick-message-template__button-action {\n color: var(--quick-modal-primary);\n}\n\n.quick-message-template__toggle {\n border: 1px solid rgba(148, 163, 184, 0.4);\n}\n\n.quick-message-template__dialog-overlay {\n position: absolute;\n inset: 0;\n background: rgba(15, 23, 42, 0.35);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 70;\n padding: 16px;\n}\n\n.quick-message-template__dialog {\n width: min(440px, 100%);\n border-radius: 16px;\n box-shadow: 0 20px 45px rgba(17, 24, 39, 0.22);\n border: 1px solid rgba(148, 163, 184, 0.25);\n display: flex;\n flex-direction: column;\n max-height: min(440px, 100%);\n}\n\n.quick-message-template__dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 18px 20px 12px;\n border-bottom: 1px solid rgba(148, 163, 184, 0.28);\n}\n\n.quick-message-template__dialog-header h3 {\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n}\n\n.quick-message-template__dialog-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 9999px;\n border: none;\n background: transparent;\n cursor: pointer;\n}\n\n.quick-message-template__dialog-body {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: 16px 20px;\n overflow-y: auto;\n}\n\n.quick-message-template__input,\n.quick-message-template__textarea {\n border-radius: 12px;\n border-width: 1px;\n padding: 10px 14px;\n font-size: 14px;\n resize: none;\n}\n\n.quick-message-template__textarea {\n min-height: 100px;\n}\n\n.quick-message-template__dialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 16px 20px 20px;\n border-top: 1px solid rgba(148, 163, 184, 0.18);\n}\n\n.quick-message-template__dialog-button {\n border-radius: 9999px;\n font-weight: 600;\n font-size: 13px;\n padding: 10px 18px;\n border: none;\n cursor: pointer;\n}\n\n.quick-message-template__dialog-button--ghost {\n background: transparent;\n color: rgba(100, 116, 139, 1);\n}\n\n.quick-message-template__dialog-button--primary {\n background: var(--quick-modal-primary);\n color: #fff;\n box-shadow: 0 10px 25px var(--quick-modal-primary-shadow);\n}\n\n.quick-message-template__dialog-button--primary:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n box-shadow: none;\n}\n","import { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport dayjs from 'dayjs';\nimport { createQuickMessageTemplate, deleteQuickMessageTemplate, getQuickMessageTemplates, updateQuickMessageTemplate } from '../../api/quick-message';\nimport { QuickMessageTemplate as QuickMessageTemplateModel, QuickMessageTemplateContent } from '../../store/type';\nimport { configStore } from '../../store/store';\nimport { useTranslation } from '../../utils/utils';\nimport { Icon } from '../internal-component/icon';\nimport type { TemplateSelectionMode } from '../quick-message-modal/template-selection';\nimport { DIALOG_TYPE, openDialog, handleError as showErrorDialog } from '../../store/dialog';\n\n@Component({\n tag: 'quick-message-template',\n styleUrl: 'quick-message-template.css',\n})\nexport class QuickMessageTemplateComponent {\n @Prop() handleClose?: () => void;\n @Prop() value?: string | QuickMessageTemplateModel[];\n @Prop() isMaster: boolean = false;\n\n @State() private searchTemplate = '';\n @State() private templates: QuickMessageTemplateModel[] = [];\n @State() private showAddTemplateDialog = false;\n @State() private editingTemplate?: QuickMessageTemplateModel;\n @State() private dialogMode: TemplateSelectionMode = 'create';\n @State() private isLoading = false;\n @State() private isLoadingMore = false;\n @State() private isSavingTemplate = false;\n @State() private deletingTemplateId?: string;\n @State() private templatePendingDelete?: QuickMessageTemplateModel;\n @State() private totalTemplates = 0;\n @State() private totalPages = 0;\n\n private page = 1;\n private readonly pageSize = 10;\n private readonly loadMoreThreshold = 160;\n private currentSearch = '';\n private scrollContainer?: HTMLDivElement;\n\n @Event({ bubbles: true, composed: true }) templatesChange!: EventEmitter<QuickMessageTemplateModel[]>;\n @Event({ bubbles: true, composed: true }) sendTemplate!: EventEmitter<QuickMessageTemplateModel>;\n\n componentWillLoad() {\n this.syncTemplatesFromProp(this.value);\n }\n\n async componentDidLoad() {\n await this.fetchTemplates({ reset: true });\n }\n\n componentDidRender() {\n this.autoLoadMoreIfNeeded();\n }\n\n @Watch('value')\n protected handleValueChange(newValue?: string | QuickMessageTemplateModel[]) {\n this.syncTemplatesFromProp(newValue);\n }\n\n private syncTemplatesFromProp(value?: string | QuickMessageTemplateModel[]) {\n if (value === undefined || value === null) {\n this.setTemplates([], false);\n return;\n }\n\n const parsed = this.parseTemplateValue(value);\n this.setTemplates(parsed, false);\n }\n\n private mergeWithExistingState(fetched: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (this.templates.length === 0) {\n return fetched;\n }\n\n const expandedMap = new Map(this.templates.map(template => [template.id, template.isExpanded ?? false]));\n\n return fetched.map(template => ({\n ...template,\n isExpanded: expandedMap.get(template.id) ?? template.isExpanded ?? false,\n }));\n }\n\n private appendTemplates(fetched: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (fetched.length === 0) {\n return [...this.templates];\n }\n\n const next = [...this.templates];\n const indexMap = new Map(next.map((template, index) => [template.id, index]));\n\n fetched.forEach(template => {\n const existingIndex = indexMap.get(template.id);\n if (existingIndex !== undefined) {\n next[existingIndex] = {\n ...template,\n isExpanded: next[existingIndex].isExpanded ?? false,\n };\n return;\n }\n\n next.push({ ...template, isExpanded: template.isExpanded ?? false });\n indexMap.set(template.id, next.length - 1);\n });\n\n return next;\n }\n\n private async fetchTemplates({ search, reset = true }: { search?: string; reset?: boolean } = {}) {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n\n if (!businessId || !shopId) {\n return;\n }\n\n if (reset ? this.isLoading : this.isLoadingMore) {\n return;\n }\n\n const normalizedSearch = search !== undefined ? search : this.currentSearch;\n const trimmedSearch = normalizedSearch?.trim() ?? '';\n const nextPage = reset ? 1 : this.page + 1;\n\n if (search !== undefined) {\n this.searchTemplate = normalizedSearch ?? '';\n }\n\n if (reset) {\n this.isLoading = true;\n } else {\n this.isLoadingMore = true;\n }\n\n try {\n const response = await getQuickMessageTemplates({\n search: trimmedSearch ? trimmedSearch : undefined,\n page: nextPage,\n limit: this.pageSize,\n });\n\n const normalized = this.cloneTemplates(response.templates || []);\n const nextTemplates = reset ? this.mergeWithExistingState(normalized) : this.appendTemplates(normalized);\n\n this.page = response.page > 0 ? response.page : nextPage;\n const resolvedTotalPages = response.total_pages > 0 ? response.total_pages : nextTemplates.length > 0 ? 1 : 0;\n this.totalPages = resolvedTotalPages;\n this.totalTemplates = response.total;\n this.currentSearch = trimmedSearch;\n\n this.setTemplates(nextTemplates);\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to fetch templates');\n } finally {\n if (reset) {\n this.isLoading = false;\n } else {\n this.isLoadingMore = false;\n }\n }\n }\n\n private async loadMoreTemplates() {\n if (this.isLoading || this.isLoadingMore) {\n return;\n }\n\n if (this.totalTemplates > 0 && this.templates.length >= this.totalTemplates) {\n return;\n }\n\n if (this.totalPages === 0 || this.page >= this.totalPages) {\n return;\n }\n\n await this.fetchTemplates({ reset: false });\n }\n\n private handleScroll(event: Event) {\n const target = event.target as HTMLElement | null;\n if (!target) {\n return;\n }\n\n this.triggerLoadMoreIfNeeded(target);\n }\n\n private async handleSearchSubmit(event?: Event) {\n event?.preventDefault();\n await this.fetchTemplates({ search: this.searchTemplate, reset: true });\n }\n\n private handleSearchInput(event: Event) {\n const value = (event.target as HTMLInputElement).value;\n this.searchTemplate = value;\n\n if (!value.trim() && this.currentSearch && !this.isLoading && !this.isLoadingMore) {\n void this.fetchTemplates({ search: '', reset: true });\n }\n }\n\n private clearSearch() {\n if (!this.searchTemplate && !this.currentSearch) {\n return;\n }\n\n this.searchTemplate = '';\n\n if (!this.isLoading && !this.isLoadingMore) {\n void this.fetchTemplates({ search: '', reset: true });\n }\n }\n\n private parseTemplateValue(value: string | QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n if (typeof value === 'string') {\n try {\n const deserialized = JSON.parse(value) as QuickMessageTemplateModel[];\n return this.cloneTemplates(deserialized);\n } catch (error: unknown) {\n console.warn('[quick-message-template] Failed to parse templates value', error);\n return [];\n }\n }\n\n return this.cloneTemplates(value);\n }\n\n private cloneTemplates(templates: QuickMessageTemplateModel[]): QuickMessageTemplateModel[] {\n return (templates || []).map(template => {\n const rawContents = template.contents || [];\n\n const normalizedContents = rawContents.map(content => {\n const rawMenuList = content.menu_list || [];\n const menuList = rawMenuList.map(menu => ({\n ...menu,\n buttons: (menu.buttons || []).map(button => ({ ...button })),\n }));\n\n return {\n ...content,\n buttons: (content.buttons || []).map(button => ({ ...button })),\n menu_list: menuList,\n };\n });\n\n return {\n ...template,\n contents: normalizedContents,\n };\n });\n }\n\n private setTemplates(next: QuickMessageTemplateModel[], shouldEmit = true) {\n this.templates = next;\n if (shouldEmit) {\n const payload = this.cloneTemplates(next);\n this.templatesChange.emit(payload);\n }\n }\n\n private canAttemptLoadMore(): boolean {\n if (this.isLoading || this.isLoadingMore) {\n return false;\n }\n\n if (this.totalTemplates > 0 && this.templates.length >= this.totalTemplates) {\n return false;\n }\n\n if (this.totalPages === 0 || this.page >= this.totalPages) {\n return false;\n }\n\n return true;\n }\n\n private triggerLoadMoreIfNeeded(container: HTMLElement) {\n if (!this.canAttemptLoadMore()) {\n return;\n }\n\n const remaining = container.scrollHeight - container.scrollTop - container.clientHeight;\n if (remaining < this.loadMoreThreshold) {\n void this.loadMoreTemplates();\n }\n }\n\n private autoLoadMoreIfNeeded() {\n if (!this.scrollContainer) {\n return;\n }\n\n this.triggerLoadMoreIfNeeded(this.scrollContainer);\n }\n\n private toggleTemplateExpansion(id: string) {\n this.setTemplates(this.templates.map(template => (template.id === id ? { ...template, isExpanded: !template.isExpanded } : template)));\n }\n\n private filterTemplates(): QuickMessageTemplateModel[] {\n const search = this.currentSearch.trim().toLowerCase();\n if (!search) return this.templates;\n return this.templates.filter(template => template.title.toLowerCase().includes(search));\n }\n\n private handleTemplateAction(template: QuickMessageTemplateModel, mode: TemplateSelectionMode) {\n if (mode === 'create' || mode === 'edit' || mode === 'edit-send') {\n this.openTemplateDialog(template, mode);\n return;\n }\n if (mode === 'send') {\n const clonedTemplate: QuickMessageTemplateModel = {\n ...template,\n contents: (template.contents || []).map(content => ({\n ...content,\n buttons: [...(content.buttons || [])],\n menu_list: (content.menu_list || []).map(menu => ({\n ...menu,\n buttons: [...(menu.buttons || [])],\n })),\n })),\n };\n\n const processedTemplate = this.processTemplate(clonedTemplate);\n\n this.closeTemplateDialog();\n this.handleClose?.();\n this.sendTemplate.emit(processedTemplate);\n }\n }\n\n private renderTemplateContent(content: QuickMessageTemplateContent, theme: string) {\n switch (content.type) {\n case 'text':\n return (\n <div class=\"flex flex-col gap-2\">\n <p class={`z-text-${theme} whitespace-pre-line text-sm leading-relaxed`}>{content.text}</p>\n </div>\n );\n case 'button':\n return (\n <div class=\"flex flex-col gap-2\">\n <p class={`z-text-${theme} whitespace-pre-line text-sm leading-relaxed`}>{content.text}</p>\n <div class=\"flex flex-col gap-1.5\">\n {content.buttons.length > 0 && (\n <div class=\"flex flex-col gap-2\">\n {content.buttons.map(button => (\n <div\n class={`flex w-full flex-col items-center gap-1 rounded-xl px-3 py-2 text-sm font-medium text-white shadow-sm z-background-primary-${theme} truncate`}\n key={button.id}\n >\n <span class=\"w-full text-center leading-tight truncate\">{button.text || '-'}</span>\n <span class=\"w-full text-center text-xs leading-none opacity-80 truncate\">{button.action_type === 'text' ? '-' : button.action || '-'}</span>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n );\n case 'image':\n return <div class=\"flex flex-wrap gap-3\">{content.file_url && this.renderImageMedia(content.file_url, theme)}</div>;\n case 'menu_list':\n return (\n <div class=\"flex gap-3 overflow-x-auto pb-1\">\n {content.menu_list.map(menu => (\n <div class={`flex w-[240px] shrink-0 flex-col overflow-hidden rounded-[18px] border-[1.5px] shadow-sm z-border-primary-${theme} z-background-${theme}`} key={menu.id}>\n <div class={`relative h-[160px] border-b-[1.5px] z-border-primary-${theme} overflow-hidden`}>\n {menu.file_url ? (\n <img src={menu.file_url} alt={menu.title} class=\"h-full w-full object-cover\" loading=\"lazy\" />\n ) : (\n <div class={`flex h-full w-full items-center justify-center z-background-${theme} z-text-gray-${theme} opacity-60`}>\n <Icon name=\"Image\" addClass=\"size-10\" />\n </div>\n )}\n </div>\n\n <div class=\"flex flex-col gap-2 px-4 py-4\">\n {menu.title && <div class=\"text-sm font-semibold leading-snug\">{menu.title}</div>}\n {menu.description && <div class={`text-xs leading-snug z-text-gray-${theme}`}>{menu.description}</div>}\n\n {menu.buttons.length > 0 && (\n <div class=\"flex flex-col gap-2\">\n {menu.buttons.map(button => (\n <div\n class={`flex w-full flex-col items-center gap-1 rounded-xl px-3 py-2 text-sm font-medium text-white shadow-sm z-background-primary-${theme}`}\n key={button.id}\n >\n <span class=\"w-full text-center leading-tight truncate\">{button.text || '-'}</span>\n <span class=\"w-full text-center text-xs leading-none opacity-80 truncate\">{button.action_type === 'text' ? '-' : button.action || '-'}</span>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n );\n case 'video':\n return (\n <video src={content.file_url} class=\"h-[220px] object-cover rounded-xl\" controls>\n <track kind=\"captions\" src=\"\" label=\"English\" />\n </video>\n );\n default:\n return null;\n }\n }\n\n private renderImageMedia(fileUrl: string, theme: string) {\n return <img src={fileUrl} alt=\"\" class={`h-[200px] w-[200px] rounded-xl border object-cover z-border-${theme}`} loading=\"lazy\" />;\n }\n\n private closeTemplateDialog() {\n this.showAddTemplateDialog = false;\n this.editingTemplate = undefined;\n this.dialogMode = 'edit';\n this.isSavingTemplate = false;\n }\n\n private openTemplateDialog(template?: QuickMessageTemplateModel, mode: TemplateSelectionMode = 'edit') {\n this.editingTemplate = template ? { ...template } : undefined;\n this.dialogMode = mode;\n this.showAddTemplateDialog = true;\n this.isSavingTemplate = false;\n }\n\n private processTemplate(template: QuickMessageTemplateModel) {\n // remove empty menuList\n template.contents = template.contents.map(content => {\n if (content.type === 'menu_list') {\n content.menu_list = content.menu_list.filter(menu => menu.buttons.length > 0 || menu.file_url || menu.title || menu.description);\n }\n return content;\n });\n\n // remove empty content\n template.contents = template.contents.filter(content => content.text || content.buttons.length > 0 || content.file_url || content.menu_list.length > 0);\n\n return template;\n }\n\n private upsertTemplate(template: QuickMessageTemplateModel, { closeDialog = true }: { closeDialog?: boolean } = {}) {\n const withMeta: QuickMessageTemplateModel = {\n ...template,\n isExpanded: this.editingTemplate?.id === template.id ? this.editingTemplate.isExpanded : true,\n };\n\n const exists = this.templates.some(item => item.id === withMeta.id);\n const nextTemplates = exists ? this.templates.map(item => (item.id === withMeta.id ? withMeta : item)) : [...this.templates, withMeta];\n\n this.setTemplates(nextTemplates);\n\n if (closeDialog) {\n this.closeTemplateDialog();\n }\n }\n\n private async handleTemplateSave(template: QuickMessageTemplateModel) {\n if (this.isSavingTemplate) {\n return;\n }\n\n const cloned = this.cloneTemplates([template]);\n const workingTemplate = cloned[0];\n if (!workingTemplate) {\n return;\n }\n\n const processedTemplate = this.processTemplate(workingTemplate);\n const isNewTemplate = !processedTemplate.id || processedTemplate.id.startsWith('template-');\n\n if (!isNewTemplate) {\n try {\n this.isSavingTemplate = true;\n const updated = await updateQuickMessageTemplate(processedTemplate);\n const [normalized] = this.cloneTemplates([updated]);\n this.upsertTemplate(normalized);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to update template');\n } finally {\n this.isSavingTemplate = false;\n }\n return;\n }\n\n try {\n this.isSavingTemplate = true;\n const created = await createQuickMessageTemplate(processedTemplate);\n const [normalized] = this.cloneTemplates([created]);\n this.upsertTemplate(normalized);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to create template');\n } finally {\n this.isSavingTemplate = false;\n }\n }\n\n private requestDeleteTemplate(template: QuickMessageTemplateModel) {\n if (!template?.id || this.deletingTemplateId) {\n return;\n }\n\n this.templatePendingDelete = template;\n const t = useTranslation();\n const title = t('quick_message.delete_template_title');\n\n openDialog({\n open: true,\n type: DIALOG_TYPE.WARNING,\n title,\n buttonName: t('confirm'),\n cancelButtonName: t('cancel'),\n onSubmitDialog: () => {\n this.confirmDeleteTemplate();\n },\n onCloseDialog: () => {\n this.templatePendingDelete = undefined;\n },\n });\n }\n\n private async confirmDeleteTemplate() {\n const template = this.templatePendingDelete;\n if (!template?.id || this.deletingTemplateId) {\n this.templatePendingDelete = undefined;\n return;\n }\n\n this.deletingTemplateId = template.id;\n this.templatePendingDelete = undefined;\n\n try {\n await deleteQuickMessageTemplate(template.id);\n const remaining = this.templates.filter(item => item.id !== template.id);\n this.setTemplates(remaining);\n this.totalTemplates = Math.max(0, this.totalTemplates - 1);\n void this.fetchTemplates({ reset: true });\n } catch (error: unknown) {\n showErrorDialog(error, '[quick-message-template] Failed to delete template');\n } finally {\n this.deletingTemplateId = undefined;\n }\n }\n\n render() {\n const theme = configStore.get('theme');\n const t = useTranslation();\n const filteredTemplates = this.filterTemplates();\n const showBottomSpinner = (this.isLoading && filteredTemplates.length > 0) || this.isLoadingMore;\n\n return (\n <Host class=\"relative flex min-h-0 flex-1 flex-col gap-2\">\n <form class=\"relative w-full\" onSubmit={event => this.handleSearchSubmit(event)}>\n <input\n type=\"text\"\n class={`w-full border z-border-divider-${theme} text-sm px-4 py-2 rounded-lg ring-primary focus:outline-none focus:border-primary z-background-${theme} z-text-${theme}`}\n placeholder={t('quick_message.search_template')}\n value={this.searchTemplate}\n onInput={event => this.handleSearchInput(event)}\n autoComplete=\"off\"\n />\n {this.searchTemplate && (\n <button type=\"button\" class=\"absolute inset-y-0 right-3 flex items-center text-xs opacity-70 transition-opacity hover:opacity-100\" onClick={() => this.clearSearch()}>\n <Icon name=\"X\" addClass=\"size-4\" />\n </button>\n )}\n </form>\n\n <div class=\"flex items-center gap-2\">\n <div class={`inline-flex items-center rounded-full px-4 py-1 text-[10px] font-semibold text-white z-background-primary-${theme}`}>ZIGNAL</div>\n <div class={`inline-flex items-center rounded-full px-4 py-1 text-[10px] font-semibold z-text-primary-${theme} border z-border-primary-${theme}`}>ZWIZ.AI</div>\n </div>\n\n <div\n class=\"flex flex-1 flex-col gap-3 overflow-y-auto\"\n ref={el => {\n this.scrollContainer = el ? (el as HTMLDivElement) : undefined;\n }}\n onScroll={event => this.handleScroll(event)}\n >\n <button\n class={`inline-flex items-center justify-center gap-2 rounded-xl border-[1.5px] border-dashed px-4 py-2 z-text-primary-${theme} cursor-pointer`}\n type=\"button\"\n onClick={() => this.openTemplateDialog(undefined, 'create')}\n >\n <Icon name=\"Plus\" addClass=\"size-4\" />\n <span class=\"text-sm\">{t('quick_message.add_template')}</span>\n </button>\n\n {this.isLoading && filteredTemplates.length === 0 ? (\n <div class=\"flex flex-1 items-center justify-center py-10 text-sm text-slate-500\">\n <Icon name=\"Loader2\" addClass=\"size-6 animate-spin\" />\n </div>\n ) : (\n <div class=\"flex flex-col gap-3\">\n {filteredTemplates.length === 0 && <div class=\"py-10 text-center text-sm text-slate-500\">{t('quick_message.template_empty')}</div>}\n\n {filteredTemplates.map(template => {\n const lastUpdatedAt = template.last_updated_at || template.created_at || new Date();\n const formattedDate = dayjs(lastUpdatedAt).tz().format('DD/MM/YYYY HH:mm');\n const rawLastUpdatedBy = template.last_updated_by ?? template.created_by ?? '';\n const displayUpdatedBy = typeof rawLastUpdatedBy === 'string' && rawLastUpdatedBy.trim().length > 0 ? rawLastUpdatedBy : '-';\n\n return (\n <div\n class={`quick-message-template__card z-border-primary-${theme} rounded-2xl border-[1.5px] px-4 py-4 shadow-[0_8px_24px_rgba(15,23,42,0.08)]`}\n key={template.id}\n >\n <div class=\"flex flex-col sm:flex-row items-start gap-3 sm:min-w-0\">\n <div class=\"flex-1 flex flex-col gap-1.5 w-full overflow-hidden\">\n <div class=\"text-base font-semibold truncate\" title={template.title}>\n {template.title}\n </div>\n <div class={`text-[11px] z-text-gray-${theme}`}>{t('quick_message.updated_at').replace('{date}', formattedDate).replace('{by}', displayUpdatedBy)}</div>\n </div>\n <div class=\"flex gap-4 flex-row items-center self-end\">\n {this.isMaster && <button type=\"button\" onClick={() => this.handleTemplateAction(template, 'edit')} aria-label={t('edit')}>\n <Icon name=\"Pencil\" addClass={`size-4 cursor-pointer z-text-primary-${theme}`} />\n </button>}\n {this.isMaster && <button\n type=\"button\"\n aria-label={t('delete')}\n onClick={() => this.requestDeleteTemplate(template)}\n disabled={Boolean(this.deletingTemplateId)}\n class={`${this.deletingTemplateId ? 'opacity-60 cursor-not-allowed' : 'cursor-pointer'}`}\n >\n {this.deletingTemplateId === template.id ? (\n <Icon name=\"Loader2\" addClass={`size-4 animate-spin z-text-primary-${theme}`} />\n ) : (\n <Icon name=\"Trash2\" addClass={`size-4 z-text-primary-${theme}`} />\n )}\n </button>}\n {!this.isMaster && (\n <button\n type=\"button\"\n class={`inline-flex items-center justify-center rounded-full border px-4 py-2 text-xs font-semibold cursor-pointer z-border-primary-${theme} z-text-primary-${theme}`}\n onClick={() => this.handleTemplateAction(template, 'edit-send')}\n >\n {t('quick_message.edit_before_send')}\n </button>\n )}\n {!this.isMaster && (\n <button\n type=\"button\"\n class={`inline-flex items-center justify-center rounded-full px-4 py-2 text-xs font-semibold text-white cursor-pointer z-background-primary-${theme}`}\n onClick={() => this.handleTemplateAction(template, 'send')}\n >\n {t('quick_message.send_now')}\n </button>\n )}\n <button\n type=\"button\"\n class=\"quick-message-template__toggle inline-flex h-9 w-9 items-center justify-center rounded-full cursor-pointer\"\n onClick={() => this.toggleTemplateExpansion(template.id)}\n >\n <Icon name={template.isExpanded ? 'ChevronUp' : 'ChevronDown'} />\n </button>\n </div>\n </div>\n {template.isExpanded && (\n <div class=\"mt-4 flex flex-col gap-2\">\n {template.contents.map(content => (\n <div key={content.id} class={`border z-border-${theme} rounded-xl p-4`}>\n {this.renderTemplateContent(content, theme)}\n </div>\n ))}\n </div>\n )}\n </div>\n );\n })}\n </div>\n )}\n {showBottomSpinner && (\n <div class=\"flex justify-center py-4 text-sm text-slate-500\">\n <Icon name=\"Loader2\" addClass=\"size-5 animate-spin\" />\n </div>\n )}\n </div>\n\n {this.showAddTemplateDialog && (\n <quick-message-add-template\n handleClose={() => this.closeTemplateDialog()}\n handleSave={template => this.handleTemplateSave(template)}\n handleSend={template => this.handleTemplateAction(template, 'send')}\n initialTemplate={this.editingTemplate}\n mode={this.dialogMode}\n isSaving={this.isSavingTemplate}\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -4,9 +4,9 @@ import { Z as ZButton } from './p-PLHiwThd.js';
4
4
  import { I as Icon } from './p-CErcZoEr.js';
5
5
  import { f as filterChatsStore, c as configStore } from './p-x8gJGTdZ.js';
6
6
  import { u as useTranslation } from './p-GPPFvEYq.js';
7
- import { d as defineCustomElement$1 } from './p-Baq4FLMS.js';
7
+ import { d as defineCustomElement$1 } from './p-DmwNXkXf.js';
8
8
 
9
- const menuChatChannelCss = "@layer base{*,::backdrop,:after,:before{--tw-space-y-reverse:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-space-y-reverse:0;--tw-leading:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:host,:root{--container-3xs:16rem;--container-xl:36rem;--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);--color-pink-100:oklch(94.8% .028 342.258);--font-weight-semibold:600;--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-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;--radius-md:.375rem;--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}.hidden\\!{display:none!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.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.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.relative{position:relative}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.rotate-45{rotate:45deg}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.container{width:100%}.cursor-pointer{cursor:pointer}.mb-2{margin-bottom:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.mx-auto{margin-inline:auto}.size-18{height:calc(var(--spacing)*18);width:calc(var(--spacing)*18)}.mt-auto{margin-top:auto}.mb-auto{margin-bottom:auto}.text-black{color:var(--color-black)}.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)}.col-span-2{grid-column:span 2/span 2}.my-2{margin-block:calc(var(--spacing)*2)}.\\!hidden{display:none!important}.bg-pink-100{background-color:var(--color-pink-100)}.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)}.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}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.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)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e+38px}.bg-yellow-300{background-color:var(--color-yellow-300)}.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-0\\.5{right:calc(var(--spacing)*-.5)}.-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}.col-span-3{grid-column:span 3/span 3}.mt-2{margin-top:calc(var(--spacing)*2)}.w-full{width:100%}.flex-wrap{flex-wrap:wrap}.gap-y-1{row-gap:calc(var(--spacing)*1)}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.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))}.truncate,.whitespace-nowrap{white-space:nowrap}.truncate{overflow:hidden;text-overflow:ellipsis}.border-transparent{border-color:#0000}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.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}.inline-flex{display:inline-flex}.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-9{height:calc(var(--spacing)*9)}.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-9{width:calc(var(--spacing)*9)}.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-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.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}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.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}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-\\[1\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.5px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-red-500{border-color:var(--color-red-500)}.bg-slate-900\\/40{background-color:#0f172b66}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{@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-3{padding-block:calc(var(--spacing)*3)}.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-center{text-align:center}.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)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.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)}.ring-primary{--tw-ring-color:var(--color-primary)}.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)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.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}.h-10{height:calc(var(--spacing)*10)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-10{width:calc(var(--spacing)*10)}.min-w-0{min-width:calc(var(--spacing)*0)}.-translate-y-1\\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.overflow-y-auto{overflow-y:auto}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.pr-9{padding-right:calc(var(--spacing)*9)}.break-words{overflow-wrap:break-word}.text-gray-400{color:var(--color-gray-400)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.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}.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)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.text-yellow-500{color:var(--color-yellow-500)}.col-span-1{grid-column:span 1/span 1}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.w-1\\/2{width:50%}.max-w-32{max-width:calc(var(--spacing)*32)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)}.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%}.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.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@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{.truncate,.whitespace-nowrap{white-space:nowrap}.focus\\:ring-0:focus,.focus\\:ring-2:focus,.shadow,.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}:host{display:block}.menu-chat-channel-icon{fill:currentColor;height:calc(var(--spacing)*2);rotate:180deg;width:calc(var(--spacing)*2)}.menu-chat-channel-wrapper{font-size:var(--text-sm);left:calc(var(--spacing)*0);line-height:var(--tw-leading,var(--text-sm--line-height));margin-top:calc(var(--spacing)*1);max-width:calc(var(--spacing)*64);min-width:calc(var(--spacing)*32);overflow:clip;position:absolute;z-index:50}.menu-chat-channel-item-wrapper,.menu-chat-channel-wrapper{border-radius:var(--radius-md);--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)}.menu-chat-channel-item-wrapper{padding:calc(var(--spacing)*4)}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.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,)}.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\\:text-gray-600:hover{color:var(--color-gray-600)}.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}}";
9
+ const menuChatChannelCss = "@layer base{*,::backdrop,:after,:before{--tw-space-y-reverse:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-space-y-reverse:0;--tw-leading:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:host,:root{--container-xl:36rem;--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);--color-pink-100:oklch(94.8% .028 342.258);--font-weight-semibold:600;--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-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;--radius-md:.375rem;--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}.hidden\\!{display:none!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.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.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.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)}.mb-2{margin-bottom:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.col-span-2{grid-column:span 2/span 2}.my-2{margin-block:calc(var(--spacing)*2)}.relative{position:relative}.container{width:100%}.\\!hidden{display:none!important}.bg-pink-100{background-color:var(--color-pink-100)}.text-black{color:var(--color-black)}.visible{visibility:visible}.-top-12{top:calc(var(--spacing)*-12)}.-top-24{top:calc(var(--spacing)*-24)}.mx-auto{margin-inline:auto}.mt-10{margin-top:calc(var(--spacing)*10)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.inline-block{display:inline-block}.size-18{height:calc(var(--spacing)*18);width:calc(var(--spacing)*18)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.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)}.cursor-pointer{cursor:pointer}.resize{resize:both}.rounded-br-\\[0\\]{border-bottom-right-radius:0}.rounded-bl-\\[0\\]{border-bottom-left-radius:0}.bg-black{background-color:var(--color-black)}.bg-white{background-color:var(--color-white)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-2{padding-block:calc(var(--spacing)*2)}.text-white{color:var(--color-white)}.underline{text-decoration-line:underline}.w-full{width:100%}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.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)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e+38px}.bg-yellow-300{background-color:var(--color-yellow-300)}.text-left{text-align:left}.text-right{text-align:right}.size-42{height:calc(var(--spacing)*42);width:calc(var(--spacing)*42)}.h-20{height:calc(var(--spacing)*20)}.w-42{width:calc(var(--spacing)*42)}.-right-0\\.5{right:calc(var(--spacing)*-.5)}.-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}.col-span-3{grid-column:span 3/span 3}.mt-2{margin-top:calc(var(--spacing)*2)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.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}.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)}.col-span-full{grid-column:1/-1}.mt-auto{margin-top:auto}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.grid{display:grid}.inline-flex{display:inline-flex}.h-9{height:calc(var(--spacing)*9)}.h-16{height:calc(var(--spacing)*16)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-9{width:calc(var(--spacing)*9)}.w-16{width:calc(var(--spacing)*16)}.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)}.auto-rows-auto{grid-auto-rows:auto}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.content-start{align-content:flex-start}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.object-cover{object-fit:cover}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.pr-9{padding-right:calc(var(--spacing)*9)}.text-center{text-align:center}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.text-gray-400{color:var(--color-gray-400)}.ring-primary{--tw-ring-color:var(--color-primary)}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.h-10{height:calc(var(--spacing)*10)}.w-10{width:calc(var(--spacing)*10)}.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}.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}.items-end{align-items:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[18px\\]{border-radius:18px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-\\[1\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.5px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-red-500{border-color:var(--color-red-500)}.bg-slate-900\\/40{background-color:#0f172b66}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/60{background-color:color-mix(in oklab,var(--color-slate-900)60%,transparent)}}.bg-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)}}.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)}.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}.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)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.text-green-500{color:var(--color-green-500)}.text-yellow-500{color:var(--color-yellow-500)}.col-span-1{grid-column:span 1/span 1}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.w-1\\/2{width:50%}.max-w-32{max-width:calc(var(--spacing)*32)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)}.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%}.text-blue-500{color:var(--color-blue-500)}.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.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@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}.menu-chat-channel-icon{fill:currentColor;height:calc(var(--spacing)*2);rotate:180deg;width:calc(var(--spacing)*2)}.menu-chat-channel-wrapper{font-size:var(--text-sm);left:calc(var(--spacing)*0);line-height:var(--tw-leading,var(--text-sm--line-height));margin-top:calc(var(--spacing)*1);max-width:calc(var(--spacing)*64);min-width:calc(var(--spacing)*32);overflow:clip;position:absolute;z-index:50}.menu-chat-channel-item-wrapper,.menu-chat-channel-wrapper{border-radius:var(--radius-md);--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)}.menu-chat-channel-item-wrapper{padding:calc(var(--spacing)*4)}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.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}}";
10
10
 
11
11
  const MenuChatChannel = /*@__PURE__*/ proxyCustomElement(class MenuChatChannel extends H {
12
12
  constructor(registerHost) {
@@ -121,6 +121,6 @@ function defineCustomElement() {
121
121
  defineCustomElement();
122
122
 
123
123
  export { MenuChatChannel as M, defineCustomElement as d };
124
- //# sourceMappingURL=p-Bt12179Z.js.map
124
+ //# sourceMappingURL=p-DXJv_Q_2.js.map
125
125
 
126
- //# sourceMappingURL=p-Bt12179Z.js.map
126
+ //# sourceMappingURL=p-DXJv_Q_2.js.map
@@ -1 +1 @@
1
- {"file":"p-Bt12179Z.js","mappings":";;;;;;;;AAAA,MAAM,kBAAkB,GAAG,4yhDAA4yhD;;MCW1zhD,eAAe,iBAAAA,kBAAA,CAAA,MAAA,eAAA,SAAAC,CAAA,CAAA;;;;;;;AAClB,IAAA,iBAAiB;IAEhB,MAAM,GAAY,KAAK;AACvB,IAAA,QAAQ,GAAgB,IAAI,GAAG,EAAE;AAElC,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,IAAI,CAAC,iBAAiB,CAAC;AACvE,QAAA,IAAI,CAAC,OAAO,IAAI;AAChB,QAAA,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE;;AAGzB,IAAA,kBAAkB,GAAG,CAAC,CAAa,KAAI;AACrC,QAAA,MAAM,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE;QAC7B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,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,CAAC,CAAC,EACH,UAAU,EAAE,KAAK,IAAI,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAA,CACjE,CACE,CACF,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-chat-channel/menu-chat-channel.css?tag=menu-chat-channel","src/components/menu-chat-channel/menu-chat-channel.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.menu-chat-channel-icon {\n @apply rotate-180 size-2 fill-current\n}\n\n.menu-chat-channel-wrapper {\n @apply absolute left-0 mt-1 min-w-32 max-w-64 shadow-lg rounded-md overflow-clip z-50 text-sm\n}\n\n.menu-chat-channel-item-wrapper {\n @apply p-4 shadow-lg rounded-md\n}","import { Component, Host, Prop, State, h } from '@stencil/core';\nimport { computePosition, autoUpdate, flip, shift } from '@floating-ui/dom';\nimport { ZButton } from '../internal-component/z-button';\nimport { Icon } from '../internal-component/icon';\nimport { configStore, filterChatsStore } from '../../store/store';\nimport { useTranslation } from '../../utils/utils';\n\n@Component({\n tag: 'menu-chat-channel',\n styleUrl: 'menu-chat-channel.css',\n})\nexport class MenuChatChannel {\n @Prop() referenceSelector: string;\n\n @State() isOpen: boolean = false;\n @State() selected: Set<string> = new Set();\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 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-panel');\n container.appendChild(this.popperEl);\n\n this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {\n computePosition(referenceEl, this.popperEl, {\n placement: 'bottom-start',\n middleware: [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 private handleSetFilterConnection = (selectedArray: string[]) => {\n filterChatsStore.set('filterChat', {\n ...filterChatsStore.get('filterChat'),\n connectionIds: selectedArray,\n });\n };\n\n render() {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const filterChat = filterChatsStore.get('filterChat');\n const filterCount = filterChat?.connectionIds?.length || 0;\n const label = `${t('channel')} ${filterCount > 0 ? `(${filterCount > 9 ? '9+' : filterCount})` : ''}`;\n\n return (\n <Host>\n <div class=\"relative\">\n <ZButton\n size=\"small\"\n fullWidth\n variant={filterCount > 0 ? 'primary' : 'outlined'}\n startIcon={<Icon name={'Globe'} />}\n endIcon={<Icon name={'Triangle'} addClass=\"menu-chat-channel-icon\" />}\n label={label}\n title={label}\n onClick={event => {\n event.stopPropagation();\n this.toggleMenu();\n }}\n ref={el => (this.triggerEl = el)}\n id={this.referenceSelector}\n />\n <div\n ref={el => (this.popperEl = el)}\n class={`menu-chat-channel-wrapper z-paper-${theme} z-text-${theme} ${this.isOpen ? '' : '!hidden'}`}\n >\n <div class=\"menu-chat-channel-item-wrapper\">\n <checkbox-list\n selected={this.selected}\n itemList={configStore.get('connectionList').map(connection => ({\n iconName: connection.type,\n label: connection.name,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Element"],"sources":["src/components/menu-chat-channel/menu-chat-channel.css?tag=menu-chat-channel","src/components/menu-chat-channel/menu-chat-channel.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.menu-chat-channel-icon {\n @apply rotate-180 size-2 fill-current\n}\n\n.menu-chat-channel-wrapper {\n @apply absolute left-0 mt-1 min-w-32 max-w-64 shadow-lg rounded-md overflow-clip z-50 text-sm\n}\n\n.menu-chat-channel-item-wrapper {\n @apply p-4 shadow-lg rounded-md\n}","import { Component, Host, Prop, State, h } from '@stencil/core';\nimport { computePosition, autoUpdate, flip, shift } from '@floating-ui/dom';\nimport { ZButton } from '../internal-component/z-button';\nimport { Icon } from '../internal-component/icon';\nimport { configStore, filterChatsStore } from '../../store/store';\nimport { useTranslation } from '../../utils/utils';\n\n@Component({\n tag: 'menu-chat-channel',\n styleUrl: 'menu-chat-channel.css',\n})\nexport class MenuChatChannel {\n @Prop() referenceSelector: string;\n\n @State() isOpen: boolean = false;\n @State() selected: Set<string> = new Set();\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 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-panel');\n container.appendChild(this.popperEl);\n\n this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {\n computePosition(referenceEl, this.popperEl, {\n placement: 'bottom-start',\n middleware: [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 private handleSetFilterConnection = (selectedArray: string[]) => {\n filterChatsStore.set('filterChat', {\n ...filterChatsStore.get('filterChat'),\n connectionIds: selectedArray,\n });\n };\n\n render() {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const filterChat = filterChatsStore.get('filterChat');\n const filterCount = filterChat?.connectionIds?.length || 0;\n const label = `${t('channel')} ${filterCount > 0 ? `(${filterCount > 9 ? '9+' : filterCount})` : ''}`;\n\n return (\n <Host>\n <div class=\"relative\">\n <ZButton\n size=\"small\"\n fullWidth\n variant={filterCount > 0 ? 'primary' : 'outlined'}\n startIcon={<Icon name={'Globe'} />}\n endIcon={<Icon name={'Triangle'} addClass=\"menu-chat-channel-icon\" />}\n label={label}\n title={label}\n onClick={event => {\n event.stopPropagation();\n this.toggleMenu();\n }}\n ref={el => (this.triggerEl = el)}\n id={this.referenceSelector}\n />\n <div\n ref={el => (this.popperEl = el)}\n class={`menu-chat-channel-wrapper z-paper-${theme} z-text-${theme} ${this.isOpen ? '' : '!hidden'}`}\n >\n <div class=\"menu-chat-channel-item-wrapper\">\n <checkbox-list\n selected={this.selected}\n itemList={configStore.get('connectionList').map(connection => ({\n iconName: connection.type,\n label: connection.name,\n value: connection.id,\n }))}\n onCheckbox={event => this.handleSetFilterConnection(event.detail)}\n />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}