zignal-stencil-library 1.1.121 → 1.1.123

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 (391) hide show
  1. package/dist/cjs/autocomplete-address_43.cjs.entry.js +203 -197
  2. package/dist/cjs/quick-message-app.cjs.entry.js +2 -2
  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-address/autocomplete-address.js +4 -4
  6. package/dist/collection/components/autocomplete-address/autocomplete-address.js.map +1 -1
  7. package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
  8. package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js +2 -2
  9. package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js.map +1 -1
  10. package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
  11. package/dist/collection/components/autocomplete-select/autocomplete-select.js +4 -4
  12. package/dist/collection/components/autocomplete-select/autocomplete-select.js.map +1 -1
  13. package/dist/collection/components/channel-box/channel-box.css +1 -1
  14. package/dist/collection/components/channel-box/channel-box.js +1 -1
  15. package/dist/collection/components/channel-box/channel-box.js.map +1 -1
  16. package/dist/collection/components/chat-app/chat-app.css +1 -1
  17. package/dist/collection/components/chat-app/chat-app.js +1 -1
  18. package/dist/collection/components/chat-app/chat-app.js.map +1 -1
  19. package/dist/collection/components/chat-header/chat-header.css +1 -1
  20. package/dist/collection/components/chat-header/chat-header.js +5 -5
  21. package/dist/collection/components/chat-header/chat-header.js.map +1 -1
  22. package/dist/collection/components/chat-input/chat-input.css +1 -1
  23. package/dist/collection/components/chat-input/chat-input.js +2 -2
  24. package/dist/collection/components/chat-input/chat-input.js.map +1 -1
  25. package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
  26. package/dist/collection/components/checkbox-list/checkbox-list.js +1 -1
  27. package/dist/collection/components/checkbox-list/checkbox-list.js.map +1 -1
  28. package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
  29. package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js +3 -3
  30. package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js.map +1 -1
  31. package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
  32. package/dist/collection/components/dialog-editor/dialog-editor.js +1 -1
  33. package/dist/collection/components/dialog-editor/dialog-editor.js.map +1 -1
  34. package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
  35. package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +1 -1
  36. package/dist/collection/components/dialog-preview-media/dialog-preview-media.js.map +1 -1
  37. package/dist/collection/components/dialog-search/dialog-search.css +1 -1
  38. package/dist/collection/components/dialog-search/dialog-search.js +2 -2
  39. package/dist/collection/components/dialog-search/dialog-search.js.map +1 -1
  40. package/dist/collection/components/internal-component/about-section.js +2 -2
  41. package/dist/collection/components/internal-component/about-section.js.map +1 -1
  42. package/dist/collection/components/internal-component/associated-users-section.js +3 -5
  43. package/dist/collection/components/internal-component/associated-users-section.js.map +1 -1
  44. package/dist/collection/components/internal-component/chat-item.js +2 -4
  45. package/dist/collection/components/internal-component/chat-item.js.map +1 -1
  46. package/dist/collection/components/internal-component/context-section.js +2 -2
  47. package/dist/collection/components/internal-component/context-section.js.map +1 -1
  48. package/dist/collection/components/internal-component/merge-user-view.js +4 -4
  49. package/dist/collection/components/internal-component/merge-user-view.js.map +1 -1
  50. package/dist/collection/components/internal-component/tag-section.js +2 -2
  51. package/dist/collection/components/internal-component/tag-section.js.map +1 -1
  52. package/dist/collection/components/internal-component/z-button.js +1 -3
  53. package/dist/collection/components/internal-component/z-button.js.map +1 -1
  54. package/dist/collection/components/internal-component/z-context-input.js +2 -2
  55. package/dist/collection/components/internal-component/z-context-input.js.map +1 -1
  56. package/dist/collection/components/internal-component/z-icon-button.js +1 -3
  57. package/dist/collection/components/internal-component/z-icon-button.js.map +1 -1
  58. package/dist/collection/components/internal-component/z-input-area.js +1 -1
  59. package/dist/collection/components/internal-component/z-input-area.js.map +1 -1
  60. package/dist/collection/components/internal-component/z-input.js +1 -1
  61. package/dist/collection/components/internal-component/z-input.js.map +1 -1
  62. package/dist/collection/components/internal-component/z-select-input.js +1 -1
  63. package/dist/collection/components/internal-component/z-select-input.js.map +1 -1
  64. package/dist/collection/components/internal-component/z-tag-or-status-item.js +1 -1
  65. package/dist/collection/components/internal-component/z-tag-or-status-item.js.map +1 -1
  66. package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
  67. package/dist/collection/components/menu-chat-channel/menu-chat-channel.js +2 -2
  68. package/dist/collection/components/menu-chat-channel/menu-chat-channel.js.map +1 -1
  69. package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
  70. package/dist/collection/components/menu-chat-type/menu-chat-type.js +2 -2
  71. package/dist/collection/components/menu-chat-type/menu-chat-type.js.map +1 -1
  72. package/dist/collection/components/menu-list/menu-list.css +1 -1
  73. package/dist/collection/components/menu-list/menu-list.js +2 -2
  74. package/dist/collection/components/menu-list/menu-list.js.map +1 -1
  75. package/dist/collection/components/message-box/message-box.css +1 -1
  76. package/dist/collection/components/message-box/message-box.js +3 -3
  77. package/dist/collection/components/message-box/message-box.js.map +1 -1
  78. package/dist/collection/components/message-content/message-content.css +1 -1
  79. package/dist/collection/components/message-content/message-content.js +2 -2
  80. package/dist/collection/components/message-content/message-content.js.map +1 -1
  81. package/dist/collection/components/message-item/message-item.css +1 -1
  82. package/dist/collection/components/message-item/message-item.js +3 -3
  83. package/dist/collection/components/message-item/message-item.js.map +1 -1
  84. package/dist/collection/components/message-media/message-media.css +1 -1
  85. package/dist/collection/components/message-media/message-media.js +4 -4
  86. package/dist/collection/components/message-media/message-media.js.map +1 -1
  87. package/dist/collection/components/profile-history/profile-history.css +1 -1
  88. package/dist/collection/components/profile-history/profile-history.js +3 -5
  89. package/dist/collection/components/profile-history/profile-history.js.map +1 -1
  90. package/dist/collection/components/profile-info/profile-info.css +1 -1
  91. package/dist/collection/components/profile-info/profile-info.js +34 -12
  92. package/dist/collection/components/profile-info/profile-info.js.map +1 -1
  93. package/dist/collection/components/profile-info/summarize-message-section.js +2 -2
  94. package/dist/collection/components/profile-info/summarize-message-section.js.map +1 -1
  95. package/dist/collection/components/profile-info/user-info-section.js +2 -2
  96. package/dist/collection/components/profile-info/user-info-section.js.map +1 -1
  97. package/dist/collection/components/profile-media/profile-media.css +1 -1
  98. package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
  99. package/dist/collection/components/profile-tabs/profile-tabs.js +2 -2
  100. package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -1
  101. package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
  102. package/dist/collection/components/quick-message-add-template/quick-message-add-template.js +4 -4
  103. package/dist/collection/components/quick-message-add-template/quick-message-add-template.js.map +1 -1
  104. package/dist/collection/components/quick-message-add-template/quick-message-button-content.js +1 -1
  105. package/dist/collection/components/quick-message-add-template/quick-message-button-content.js.map +1 -1
  106. package/dist/collection/components/quick-message-add-template/quick-message-image-content.js +4 -4
  107. package/dist/collection/components/quick-message-add-template/quick-message-image-content.js.map +1 -1
  108. package/dist/collection/components/quick-message-add-template/quick-message-menu-list-content.js +2 -6
  109. package/dist/collection/components/quick-message-add-template/quick-message-menu-list-content.js.map +1 -1
  110. package/dist/collection/components/quick-message-add-template/quick-message-template-button-dialog.js +2 -2
  111. package/dist/collection/components/quick-message-add-template/quick-message-template-button-dialog.js.map +1 -1
  112. package/dist/collection/components/quick-message-add-template/quick-message-template-button-list.js +5 -5
  113. package/dist/collection/components/quick-message-add-template/quick-message-template-button-list.js.map +1 -1
  114. package/dist/collection/components/quick-message-add-template/quick-message-text-content.js +1 -1
  115. package/dist/collection/components/quick-message-add-template/quick-message-text-content.js.map +1 -1
  116. package/dist/collection/components/quick-message-add-template/quick-message-video-content.js +3 -5
  117. package/dist/collection/components/quick-message-add-template/quick-message-video-content.js.map +1 -1
  118. package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
  119. package/dist/collection/components/quick-message-app/quick-message-app.js +1 -1
  120. package/dist/collection/components/quick-message-app/quick-message-app.js.map +1 -1
  121. package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
  122. package/dist/collection/components/quick-message-file/quick-message-file.js +2 -2
  123. package/dist/collection/components/quick-message-file/quick-message-file.js.map +1 -1
  124. package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
  125. package/dist/collection/components/quick-message-image/quick-message-image.js +3 -3
  126. package/dist/collection/components/quick-message-image/quick-message-image.js.map +1 -1
  127. package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
  128. package/dist/collection/components/quick-message-modal/quick-message-modal.js +1 -1
  129. package/dist/collection/components/quick-message-modal/quick-message-modal.js.map +1 -1
  130. package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
  131. package/dist/collection/components/quick-message-template/quick-message-template.js +12 -13
  132. package/dist/collection/components/quick-message-template/quick-message-template.js.map +1 -1
  133. package/dist/collection/components/search-box/search-box.css +1 -1
  134. package/dist/collection/components/search-box/search-box.js +1 -1
  135. package/dist/collection/components/search-box/search-box.js.map +1 -1
  136. package/dist/collection/components/status-badge/status-badge.css +1 -1
  137. package/dist/collection/components/status-badge/status-badge.js +3 -4
  138. package/dist/collection/components/status-badge/status-badge.js.map +1 -1
  139. package/dist/collection/components/tag-list/tag-list.css +1 -1
  140. package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
  141. package/dist/collection/components/tag-or-status-item/tag-or-status-item.js +2 -2
  142. package/dist/collection/components/tag-or-status-item/tag-or-status-item.js.map +1 -1
  143. package/dist/collection/components/tag-popper/tag-popper.css +1 -1
  144. package/dist/collection/components/tag-popper/tag-popper.js +2 -2
  145. package/dist/collection/components/tag-popper/tag-popper.js.map +1 -1
  146. package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
  147. package/dist/collection/components/typography-clamp/typography-clamp.js +4 -4
  148. package/dist/collection/components/typography-clamp/typography-clamp.js.map +1 -1
  149. package/dist/collection/components/z-avatar/z-avatar.css +1 -1
  150. package/dist/collection/components/z-avatar/z-avatar.js +1 -1
  151. package/dist/collection/components/z-avatar/z-avatar.js.map +1 -1
  152. package/dist/collection/components/z-dialog/z-dialog.css +1 -1
  153. package/dist/collection/components/z-dialog/z-dialog.js +2 -2
  154. package/dist/collection/components/z-dialog/z-dialog.js.map +1 -1
  155. package/dist/components/autocomplete-address.js +1 -1
  156. package/dist/components/autocomplete-multiple-select.js +1 -1
  157. package/dist/components/autocomplete-select.js +1 -1
  158. package/dist/components/channel-box.js +1 -1
  159. package/dist/components/chat-app.js +44 -44
  160. package/dist/components/chat-app.js.map +1 -1
  161. package/dist/components/chat-header.js +1 -1
  162. package/dist/components/chat-input.js +1 -1
  163. package/dist/components/checkbox-list.js +1 -1
  164. package/dist/components/dialog-bill-editor.js +1 -1
  165. package/dist/components/dialog-editor.js +1 -1
  166. package/dist/components/dialog-preview-media.js +1 -1
  167. package/dist/components/dialog-search.js +1 -1
  168. package/dist/components/menu-chat-channel.js +1 -1
  169. package/dist/components/menu-chat-type.js +1 -1
  170. package/dist/components/menu-list.js +1 -1
  171. package/dist/components/message-box.js +1 -1
  172. package/dist/components/message-content.js +1 -1
  173. package/dist/components/message-item.js +1 -1
  174. package/dist/components/message-media.js +1 -1
  175. package/dist/components/p--Enuw3tX.js +184 -0
  176. package/dist/components/p--Enuw3tX.js.map +1 -0
  177. package/dist/components/p-3dJZPnz_.js +160 -0
  178. package/dist/components/{p-D04d-ugd.js.map → p-3dJZPnz_.js.map} +1 -1
  179. package/dist/components/p-5Z2tT32a.js +35 -0
  180. package/dist/components/{p-CArvTJoW.js.map → p-5Z2tT32a.js.map} +1 -1
  181. package/dist/components/p-A4RRdnMc.js +124 -0
  182. package/dist/components/p-A4RRdnMc.js.map +1 -0
  183. package/dist/components/p-B0gC55gW.js +704 -0
  184. package/dist/components/p-B0gC55gW.js.map +1 -0
  185. package/dist/components/p-B2qgQSsK.js +235 -0
  186. package/dist/components/p-B2qgQSsK.js.map +1 -0
  187. package/dist/components/p-BKZzQD7H.js +219 -0
  188. package/dist/components/p-BKZzQD7H.js.map +1 -0
  189. package/dist/components/{p-Dr67NIsD.js → p-BPVt9weM.js} +4 -4
  190. package/dist/components/p-BPVt9weM.js.map +1 -0
  191. package/dist/components/p-BWuZegR4.js +78 -0
  192. package/dist/components/p-BWuZegR4.js.map +1 -0
  193. package/dist/components/p-BYEXI48l.js +107 -0
  194. package/dist/components/p-BYEXI48l.js.map +1 -0
  195. package/dist/components/p-BZPzVYGj.js +159 -0
  196. package/dist/components/p-BZPzVYGj.js.map +1 -0
  197. package/dist/components/p-Ba5c5p9B.js +178 -0
  198. package/dist/components/p-Ba5c5p9B.js.map +1 -0
  199. package/dist/components/{p-Cln26Qch.js → p-BjytUY9X.js} +3 -5
  200. package/dist/components/p-BjytUY9X.js.map +1 -0
  201. package/dist/components/{p-HCd8IVUw.js → p-C0tV1VyH.js} +6 -6
  202. package/dist/components/p-C0tV1VyH.js.map +1 -0
  203. package/dist/components/p-C5cSGGuF.js +603 -0
  204. package/dist/components/p-C5cSGGuF.js.map +1 -0
  205. package/dist/components/p-CNw9ADrc.js +55 -0
  206. package/dist/components/p-CNw9ADrc.js.map +1 -0
  207. package/dist/components/p-CQukWN74.js +12 -0
  208. package/dist/components/p-CQukWN74.js.map +1 -0
  209. package/dist/components/p-CaGiRTud.js +61 -0
  210. package/dist/components/p-CaGiRTud.js.map +1 -0
  211. package/dist/components/p-ChRpdGJd.js +518 -0
  212. package/dist/components/p-ChRpdGJd.js.map +1 -0
  213. package/dist/components/{p-8qEzh9SS.js → p-CiVfPqKY.js} +3 -3
  214. package/dist/components/p-CiVfPqKY.js.map +1 -0
  215. package/dist/components/p-CkHuolGz.js +81 -0
  216. package/dist/components/p-CkHuolGz.js.map +1 -0
  217. package/dist/components/p-CkeWlJKM.js +104 -0
  218. package/dist/components/p-CkeWlJKM.js.map +1 -0
  219. package/dist/components/p-D0Pdlqhf.js +126 -0
  220. package/dist/components/p-D0Pdlqhf.js.map +1 -0
  221. package/dist/components/p-D0zFdGok.js +315 -0
  222. package/dist/components/p-D0zFdGok.js.map +1 -0
  223. package/dist/components/p-D42kjaaj.js +518 -0
  224. package/dist/components/p-D42kjaaj.js.map +1 -0
  225. package/dist/components/p-D4EbodEB.js +557 -0
  226. package/dist/components/p-D4EbodEB.js.map +1 -0
  227. package/dist/components/p-DAJhf69u.js +566 -0
  228. package/dist/components/p-DAJhf69u.js.map +1 -0
  229. package/dist/components/p-DAwM7jGt.js +140 -0
  230. package/dist/components/p-DAwM7jGt.js.map +1 -0
  231. package/dist/components/p-DJPhPlLw.js +101 -0
  232. package/dist/components/p-DJPhPlLw.js.map +1 -0
  233. package/dist/components/p-DLnTQGP9.js +188 -0
  234. package/dist/components/p-DLnTQGP9.js.map +1 -0
  235. package/dist/components/p-DTChk4QP.js +124 -0
  236. package/dist/components/p-DTChk4QP.js.map +1 -0
  237. package/dist/components/p-DVMzvGj6.js +144 -0
  238. package/dist/components/p-DVMzvGj6.js.map +1 -0
  239. package/dist/components/p-DWwas6dc.js +137 -0
  240. package/dist/components/p-DWwas6dc.js.map +1 -0
  241. package/dist/components/p-DYEy-cA-.js +132 -0
  242. package/dist/components/{p-VGL-Lt1l.js.map → p-DYEy-cA-.js.map} +1 -1
  243. package/dist/components/p-DYdHwebk.js +159 -0
  244. package/dist/components/p-DYdHwebk.js.map +1 -0
  245. package/dist/components/p-DhuDkLvY.js +58 -0
  246. package/dist/components/p-DhuDkLvY.js.map +1 -0
  247. package/dist/components/p-DiSPdOEp.js +113 -0
  248. package/dist/components/p-DiSPdOEp.js.map +1 -0
  249. package/dist/components/{p-CXREPMwB.js → p-DrKmW41y.js} +3 -5
  250. package/dist/components/p-DrKmW41y.js.map +1 -0
  251. package/dist/components/{p-BN5kaJQg.js → p-FhAWwRc3.js} +6 -8
  252. package/dist/components/p-FhAWwRc3.js.map +1 -0
  253. package/dist/components/p-IOxlICcT.js +163 -0
  254. package/dist/components/p-IOxlICcT.js.map +1 -0
  255. package/dist/components/{p-C_aWPgsl.js → p-WA5K_3rK.js} +5 -9
  256. package/dist/components/p-WA5K_3rK.js.map +1 -0
  257. package/dist/components/p-fZrBBdjT.js +20 -0
  258. package/dist/components/p-fZrBBdjT.js.map +1 -0
  259. package/dist/components/{p-DtaKGAKx.js → p-jTRkxsbR.js} +28 -28
  260. package/dist/components/{p-DtaKGAKx.js.map → p-jTRkxsbR.js.map} +1 -1
  261. package/dist/components/p-occgvucg.js +227 -0
  262. package/dist/components/p-occgvucg.js.map +1 -0
  263. package/dist/components/p-sG0jTurp.js +111 -0
  264. package/dist/components/p-sG0jTurp.js.map +1 -0
  265. package/dist/components/p-viwZL2Z8.js +142 -0
  266. package/dist/components/p-viwZL2Z8.js.map +1 -0
  267. package/dist/components/p-wkyeeZK2.js +112 -0
  268. package/dist/components/p-wkyeeZK2.js.map +1 -0
  269. package/dist/components/profile-history.js +1 -1
  270. package/dist/components/profile-info.js +1 -1
  271. package/dist/components/profile-media.js +1 -1
  272. package/dist/components/profile-tabs.js +1 -1
  273. package/dist/components/quick-message-add-template.js +1 -1
  274. package/dist/components/quick-message-app.js +12 -12
  275. package/dist/components/quick-message-app.js.map +1 -1
  276. package/dist/components/quick-message-button-content.js +1 -1
  277. package/dist/components/quick-message-file.js +1 -1
  278. package/dist/components/quick-message-image-content.js +1 -1
  279. package/dist/components/quick-message-image.js +1 -1
  280. package/dist/components/quick-message-menu-list-content.js +1 -1
  281. package/dist/components/quick-message-modal.js +1 -1
  282. package/dist/components/quick-message-template.js +1 -1
  283. package/dist/components/quick-message-text-content.js +1 -1
  284. package/dist/components/quick-message-video-content.js +1 -1
  285. package/dist/components/search-box.js +1 -1
  286. package/dist/components/status-badge.js +1 -1
  287. package/dist/components/summarize-message-section.js +1 -1
  288. package/dist/components/tag-list.js +1 -1
  289. package/dist/components/tag-or-status-item.js +1 -1
  290. package/dist/components/tag-popper.js +1 -1
  291. package/dist/components/typography-clamp.js +1 -1
  292. package/dist/components/user-info-section.js +1 -1
  293. package/dist/components/z-avatar.js +1 -1
  294. package/dist/components/z-dialog.js +1 -1
  295. package/dist/esm/autocomplete-address_43.entry.js +204 -198
  296. package/dist/esm/quick-message-app.entry.js +2 -2
  297. package/dist/esm/quick-message-app.entry.js.map +1 -1
  298. package/dist/types/components/quick-message-add-template/quick-message-template-button-dialog.d.ts +0 -1
  299. package/dist/types/components/quick-message-add-template/quick-message-template-button-list.d.ts +0 -1
  300. package/dist/types/components.d.ts +2 -2
  301. package/dist/zignal-stencil-library/{p-6e8b1e6b.entry.js → p-9c787a6f.entry.js} +284 -284
  302. package/dist/zignal-stencil-library/p-9c787a6f.entry.js.map +1 -0
  303. package/dist/zignal-stencil-library/p-f0f7f13a.entry.js +2 -0
  304. package/dist/zignal-stencil-library/{p-bf2b0918.entry.js.map → p-f0f7f13a.entry.js.map} +1 -1
  305. package/dist/zignal-stencil-library/quick-message-app.entry.esm.js.map +1 -1
  306. package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
  307. package/package.json +1 -1
  308. package/dist/components/p-1nKZsYJV.js +0 -184
  309. package/dist/components/p-1nKZsYJV.js.map +0 -1
  310. package/dist/components/p-4ednqCu1.js +0 -566
  311. package/dist/components/p-4ednqCu1.js.map +0 -1
  312. package/dist/components/p-8qEzh9SS.js.map +0 -1
  313. package/dist/components/p-B3vYYgfy.js +0 -142
  314. package/dist/components/p-B3vYYgfy.js.map +0 -1
  315. package/dist/components/p-B6Oqalkt.js +0 -161
  316. package/dist/components/p-B6Oqalkt.js.map +0 -1
  317. package/dist/components/p-BIsOKyPf.js +0 -20
  318. package/dist/components/p-BIsOKyPf.js.map +0 -1
  319. package/dist/components/p-BN5kaJQg.js.map +0 -1
  320. package/dist/components/p-BOcFErqH.js +0 -603
  321. package/dist/components/p-BOcFErqH.js.map +0 -1
  322. package/dist/components/p-BR0qHxMx.js +0 -219
  323. package/dist/components/p-BR0qHxMx.js.map +0 -1
  324. package/dist/components/p-Bgn09v-w.js +0 -124
  325. package/dist/components/p-Bgn09v-w.js.map +0 -1
  326. package/dist/components/p-BksE5hg7.js +0 -235
  327. package/dist/components/p-BksE5hg7.js.map +0 -1
  328. package/dist/components/p-BoydN4os.js +0 -112
  329. package/dist/components/p-BoydN4os.js.map +0 -1
  330. package/dist/components/p-BzI2D97S.js +0 -519
  331. package/dist/components/p-BzI2D97S.js.map +0 -1
  332. package/dist/components/p-CArvTJoW.js +0 -35
  333. package/dist/components/p-CCNzvfR_.js +0 -159
  334. package/dist/components/p-CCNzvfR_.js.map +0 -1
  335. package/dist/components/p-CNiD6fCD.js +0 -61
  336. package/dist/components/p-CNiD6fCD.js.map +0 -1
  337. package/dist/components/p-CQVxpQMS.js +0 -144
  338. package/dist/components/p-CQVxpQMS.js.map +0 -1
  339. package/dist/components/p-CXREPMwB.js.map +0 -1
  340. package/dist/components/p-C_-YDF9v.js +0 -684
  341. package/dist/components/p-C_-YDF9v.js.map +0 -1
  342. package/dist/components/p-C_aWPgsl.js.map +0 -1
  343. package/dist/components/p-CbGFIm5U.js +0 -111
  344. package/dist/components/p-CbGFIm5U.js.map +0 -1
  345. package/dist/components/p-CgauTkVI.js +0 -190
  346. package/dist/components/p-CgauTkVI.js.map +0 -1
  347. package/dist/components/p-Cln26Qch.js.map +0 -1
  348. package/dist/components/p-Csghi5Jh.js +0 -79
  349. package/dist/components/p-Csghi5Jh.js.map +0 -1
  350. package/dist/components/p-CyqxQQZN.js +0 -140
  351. package/dist/components/p-CyqxQQZN.js.map +0 -1
  352. package/dist/components/p-D04d-ugd.js +0 -160
  353. package/dist/components/p-D0p9pya8.js +0 -137
  354. package/dist/components/p-D0p9pya8.js.map +0 -1
  355. package/dist/components/p-D2VXWXdE.js +0 -101
  356. package/dist/components/p-D2VXWXdE.js.map +0 -1
  357. package/dist/components/p-D7CoDfLl.js +0 -557
  358. package/dist/components/p-D7CoDfLl.js.map +0 -1
  359. package/dist/components/p-D9jyxDSc.js +0 -113
  360. package/dist/components/p-D9jyxDSc.js.map +0 -1
  361. package/dist/components/p-DGIY0GDJ.js +0 -178
  362. package/dist/components/p-DGIY0GDJ.js.map +0 -1
  363. package/dist/components/p-DGgn1vds.js +0 -12
  364. package/dist/components/p-DGgn1vds.js.map +0 -1
  365. package/dist/components/p-DW2oCYil.js +0 -58
  366. package/dist/components/p-DW2oCYil.js.map +0 -1
  367. package/dist/components/p-D_IHjZ-q.js +0 -163
  368. package/dist/components/p-D_IHjZ-q.js.map +0 -1
  369. package/dist/components/p-DqJdsfJb.js +0 -518
  370. package/dist/components/p-DqJdsfJb.js.map +0 -1
  371. package/dist/components/p-Dr67NIsD.js.map +0 -1
  372. package/dist/components/p-HCd8IVUw.js.map +0 -1
  373. package/dist/components/p-I30--9yD.js +0 -124
  374. package/dist/components/p-I30--9yD.js.map +0 -1
  375. package/dist/components/p-Qu1JlZOI.js +0 -81
  376. package/dist/components/p-Qu1JlZOI.js.map +0 -1
  377. package/dist/components/p-VGL-Lt1l.js +0 -132
  378. package/dist/components/p-Xe33--ik.js +0 -55
  379. package/dist/components/p-Xe33--ik.js.map +0 -1
  380. package/dist/components/p-fhCpNNOm.js +0 -126
  381. package/dist/components/p-fhCpNNOm.js.map +0 -1
  382. package/dist/components/p-jorn7g2f.js +0 -107
  383. package/dist/components/p-jorn7g2f.js.map +0 -1
  384. package/dist/components/p-mDwRdOtm.js +0 -315
  385. package/dist/components/p-mDwRdOtm.js.map +0 -1
  386. package/dist/components/p-sJKH7vtI.js +0 -104
  387. package/dist/components/p-sJKH7vtI.js.map +0 -1
  388. package/dist/components/p-yzEW8ucQ.js +0 -227
  389. package/dist/components/p-yzEW8ucQ.js.map +0 -1
  390. package/dist/zignal-stencil-library/p-6e8b1e6b.entry.js.map +0 -1
  391. package/dist/zignal-stencil-library/p-bf2b0918.entry.js +0 -2
@@ -0,0 +1,178 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './p-DRz4sc4i.js';
2
+ import { c as configStore } from './p-C-yg0vtE.js';
3
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './p-CeBIrPPx.js';
4
+ import { u as useTranslation } from './p-GPPFvEYq.js';
5
+ import { T as TAG_LENGTH } from './p--ICGr4Tz.js';
6
+ import { I as Icon } from './p-BhidTUJs.js';
7
+
8
+ const autocompleteSelectCss = "@layer base{*,::backdrop,:after,:before{--tw-space-y-reverse:0;--tw-drop-shadow-alpha:100%;--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-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;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-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-space-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-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-gray-400:oklch(70.7% .022 261.325);--color-slate-500:oklch(55.4% .046 257.417);--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--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-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-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--font-weight-semibold:600;--radius-sm:.25rem;--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-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{.dialog-backdrop{align-items:center;background-color:#0006;display:flex;inset:calc(var(--spacing)*0);justify-content:center;position:fixed;z-index:50}@supports (color:color-mix(in lab,red,red)){.dialog-backdrop{background-color:color-mix(in oklab,var(--color-black)40%,transparent);background-color:color-mix(in srgb,#00040%,transparent)}}.chat-item{border-radius:var(--radius-xl);cursor:pointer;margin-block:calc(var(--spacing)*1);margin-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);align-items:flex-start;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;position:relative}:where(.chat-item>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-pin{position:absolute;right:calc(var(--spacing)*-3);top:calc(var(--spacing)*1)}.chat-item .chat-item-pin-icon{fill:currentColor;height:calc(var(--spacing)*3);rotate:45deg;width:calc(var(--spacing)*3)}.chat-item .chat-item-content-container{display:flex;flex-direction:row;width:100%}:where(.chat-item .chat-item-content-container>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-avatar-wrapper{align-self:center;flex-shrink:0;position:relative}.chat-item .chat-item-avatar-badge{bottom:calc(var(--spacing)*-.5);position:absolute;right:calc(var(--spacing)*-.5)}.chat-item .chat-item-content-wrapper{min-height:calc(var(--spacing)*18);width:100%}.chat-item .chat-item-content-main{align-items:center;display:flex}:where(.chat-item .chat-item-content-main>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.chat-item .chat-item-content-main-image{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.chat-item .chat-item-content-main-name{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-main-time{color:var(--color-gray-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-secondary{align-items:flex-start;display:flex;flex-direction:row;width:100%}.chat-item .chat-item-content-secondary-nickname{font-size:var(--text-base);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-base--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message{color:var(--color-gray-600);font-size:var(--text-sm);-webkit-line-clamp:1;line-height:var(--tw-leading,var(--text-sm--line-height));-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-unread{background-color:var(--color-primary);border-radius:3.40282e+38px;color:var(--color-white);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-unread-mark{display:inline-block;height:calc(var(--spacing)*2.5);width:calc(var(--spacing)*2.5)}.chat-item .chat-item-content-unread-count{padding-block:calc(var(--spacing)*.5);padding-inline:calc(var(--spacing)*2)}.z-icon-button{cursor:pointer;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-icon-button:focus{--tw-outline-style:none;outline-style:none}.z-icon-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-icon-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-icon-button-disabled{cursor:not-allowed;opacity:.5}.z-button{cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button:focus{--tw-outline-style:none;outline-style:none}.z-button-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px;color:var(--color-primary)}.z-button-disabled{cursor:not-allowed;opacity:.5}.z-button-text{margin-inline:calc(var(--spacing)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.z-input-area-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input-area-input,.z-input-area-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{background-color:var(--color-paper);border-color:var(--color-surface);border-radius:var(--radius-lg);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input-area-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-area-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-input-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{background-color:var(--color-background);border-color:var(--color-divider);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-radius:3.40282e+38px;border-width:1px;width:100%}.z-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-select-input-label{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-tag-or-status-item{align-items:center;border-radius:var(--radius-2xl);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*3);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:inline-flex}.z-tag-or-status-item .z-tag-or-status-item-name{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));max-width:calc(var(--spacing)*20)}.z-tag-or-status-item .z-tag-or-status-item-icon{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-context-input{align-items:stretch;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{background-color:var(--color-background);border-bottom-left-radius:var(--radius-3xl);border-color:var(--color-divider);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{background-color:var(--color-background);border-bottom-right-radius:var(--radius-3xl);border-color:var(--color-primary);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-value:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-text-with-link{color:var(--color-blue-600);text-decoration-line:underline}.z-button-group{display:inline-flex}.z-button-group-tab{border-radius:var(--radius-md);display:flex;gap:calc(var(--spacing)*1);padding:calc(var(--spacing)*.5)!important}.z-button-group-item{border-style:var(--tw-border-style);cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-width:1px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button-group-item:focus{--tw-outline-style:none;outline-style:none}.z-button-group-item-tab{align-items:center;border-radius:var(--radius-sm);border-style:var(--tw-border-style)!important;border-width:0!important;display:flex;flex:1;flex-direction:column;gap:calc(var(--spacing)*2);justify-content:center;padding:calc(var(--spacing)*1)!important}.z-button-group-item-tab-selected{background-color:var(--color-white);--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-selected,.z-button-group-item-tab-unselected{border-style:var(--tw-border-style)!important;border-width:0!important}.z-button-group-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-group-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-group-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-group-item-first{border-bottom-left-radius:3.40282e+38px;border-top-left-radius:3.40282e+38px}.z-button-group-item-last{border-bottom-right-radius:3.40282e+38px;border-top-right-radius:3.40282e+38px}.z-button-group-item-middle{border-radius:0}.z-button-group-item-primary-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-primary-unselected{background-color:var(--color-white);border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-outlined-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-outlined-unselected{background-color:#0000;border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-disabled{cursor:not-allowed;opacity:.5}.z-button-group-item:not(:first-child){margin-left:-1px}}@layer utilities{.container{width:100%}.hidden\\!{display:none!important}.cursor-pointer{cursor:pointer}.border-primary{border-color:var(--color-primary)}.bg-background{background-color:var(--color-background)}.bg-paper{background-color:var(--color-paper)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-primary{color:var(--color-primary)}.text-surface{color:var(--color-surface)}.text-theme-gray{color:var(--color-theme-gray)}}[data-theme=light]{--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280}[data-theme=dark]{--color-primary:#b50f30;--color-secondary:#fff;--color-background:#23292d;--color-surface:#fff;--color-paper:#374151;--color-divider:#4b5563;--color-theme-gray:#d1d5db}.scroll-container::-webkit-scrollbar{background:#0000001a;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0003}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.bg-time-badge{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-time-badge{background-color:color-mix(in srgb,var(--color-surface)30%,transparent);background-color:color-mix(in srgb,#00030%,transparent)}}.placeholder-surface::placeholder{color:var(--color-text-gray)}.z-width-100{width:100%}.z-width-90{width:90%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}.z-animate-width{transition-duration:.5s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.z-animate-grid-template-cols{transition:grid-template-rows .5s}[type=checkbox]{background-color:var(--color-gray-300);border-color:var(--color-gray-300);border-radius:4px;cursor:pointer}[type=checkbox]:checked,[type=checkbox]:indeterminate{background-color:var(--color-primary);border-color:var(--color-primary);border-radius:4px;cursor:pointer}[type=checkbox]:focus{offset:0;outline-offset:0;--tw-ring-color:var(--color-primary);outline:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.grid-cols-1{grid-template-columns:1fr}.grid-cols-1_3{grid-template-columns:1fr 3fr}.grid-cols-1_2_1{grid-template-columns:1fr 2fr 1fr}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.relative{position:relative}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-auto{margin-top:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-auto{margin-left:auto}.flex{display:flex}.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-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-32{height:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.w-1\\/2{width:50%}.w-9{width:calc(var(--spacing)*9)}.w-full{width:100%}.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%}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-y-1{row-gap:calc(var(--spacing)*1)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:3.40282e+38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-divider{border-color:var(--color-divider)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-secondary{background-color:var(--color-secondary)}.pt-2{padding-top:calc(var(--spacing)*2)}.text-right{text-align:right}.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)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.opacity-0{opacity:0}.opacity-100{opacity:1}}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.hidden{display:none}.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,)}.rotate-45{rotate:45deg}.w-xl{width:var(--container-xl)}.w-xs{width:var(--container-xs)}.m-auto{margin:auto}}/*! 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{: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))}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.my-2{margin-block:calc(var(--spacing)*2)}.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}.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)}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.bg-yellow-300{background-color:var(--color-yellow-300)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-left{text-align:left}.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)}.border-transparent{border-color:#0000}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.-right-0\\.5{right:calc(var(--spacing)*-.5)}.-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.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)}.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-\\[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}.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}.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-0{border-style:var(--tw-border-style);border-width:0}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-\\[1\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.5px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-current{border-color:currentColor}.border-red-500{border-color:var(--color-red-500)}.bg-slate-900\\/40{background-color:#0f172b66}}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! 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{}/*! 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{@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/60{background-color:color-mix(in oklab,var(--color-slate-900)60%,transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in srgb,#fff90%,transparent);background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-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)}.text-red-500{color:var(--color-red-500)}.text-slate-700{color:var(--color-slate-700)}.placeholder-surface::placeholder{color:var(--color-surface)}.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}.top-1\\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.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}.bg-primary{background-color:var(--color-primary)}.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-40{height:calc(var(--spacing)*40)}.h-\\[200px\\]{height:200px}.w-60{width:calc(var(--spacing)*60)}.shrink-0{flex-shrink:0}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.self-end{align-self:flex-end}.border-surface{border-color:var(--color-surface)}.py-1{padding-block:calc(var(--spacing)*1)}.py-10{padding-block:calc(var(--spacing)*10)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.text-slate-500{color:var(--color-slate-500)}.opacity-70{opacity:.7}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#0f172a14)}.shadow-\\[0_8px_24px_rgba\\(15\\,23\\,42\\,0\\.08\\)\\],.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.text-yellow-500{color:var(--color-yellow-500)}}/*! 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{}/*! 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{}/*! 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{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components{.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-input,.z-input-area-input,.z-input-area-label,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-button-group-item-tab,.z-button-group-item-tab-selected{border-style:var(--tw-border-style)!important;border-width:0!important}}@layer utilities{.translate-y-0,.translate-y-full{translate:var(--tw-translate-x)var(--tw-translate-y)}.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)}}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}:host{display:block}.autocomplete-select{flex:1;position:relative;width:100%}.autocomplete-select-input{border-radius:var(--radius-md);border-style:var(--tw-border-style);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);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.autocomplete-select-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.autocomplete-select-list{border-radius:var(--radius-sm);border-style:var(--tw-border-style);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-top:calc(var(--spacing)*1);max-height:calc(var(--spacing)*60);z-index:10;--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);border-width:1px;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:240px;overflow-y:auto;position:absolute;width:100%}.autocomplete-select-item-wrapper{cursor:pointer}.autocomplete-select-item,.autocomplete-select-item-wrapper{padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.autocomplete-select-item{align-items:center;display:flex;flex-direction:row}.autocomplete-select-item-icon{border-radius:3.40282e+38px;display:inline-block;height:calc(var(--spacing)*3);margin-right:calc(var(--spacing)*2);width:calc(var(--spacing)*3)}.autocomplete-select-item-text{display:inline-flex;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.autocomplete-select-item-counter{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding:calc(var(--spacing)*1);right:calc(var(--spacing)*1);top:75%}.autocomplete-select-item-counter,.autocomplete-select-item-input-icon{--tw-translate-y:-50%;color:var(--color-white);position:absolute;translate:var(--tw-translate-x)var(--tw-translate-y)}.autocomplete-select-item-input-icon{border-radius:3.40282e+38px;cursor:pointer;padding:calc(var(--spacing)*1.5);right:calc(var(--spacing)*1.25);top:50%}@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}@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-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-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-tab:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-unselected:hover{background-color:var(--color-white)}.z-button-group-item-primary-unselected:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-outlined-unselected:hover{background-color:#e028481a}@supports (color:color-mix(in lab,red,red)){.z-button-group-item-outlined-unselected:hover{background-color:color-mix(in oklab,var(--color-primary)10%,transparent);background-color:color-mix(in srgb,#e0284810%,transparent)}}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-background:hover{background-color:var(--color-background)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:opacity-100:hover{opacity:1}.autocomplete-select-item-wrapper: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 (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 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 not all and (min-width:40rem){.max-sm\\:hidden{display:none}}";
9
+
10
+ const AutocompleteSelect = /*@__PURE__*/ proxyCustomElement(class AutocompleteSelect extends H {
11
+ constructor(registerHost) {
12
+ super();
13
+ if (registerHost !== false) {
14
+ this.__registerHost();
15
+ }
16
+ this.selecting = createEvent(this, "selecting");
17
+ this.create = createEvent(this, "create");
18
+ this.clear = createEvent(this, "clear");
19
+ }
20
+ type = 'status';
21
+ value;
22
+ fetchItems;
23
+ createItem;
24
+ selectedIds;
25
+ referenceSelector;
26
+ showClearButton = false;
27
+ selecting;
28
+ create;
29
+ clear;
30
+ allItems = [];
31
+ filteredItems = [];
32
+ inputValue = '';
33
+ showDropdown = false;
34
+ loading = true;
35
+ triggerEl;
36
+ popperEl;
37
+ cleanup;
38
+ async componentWillLoad() {
39
+ if (typeof this.value === 'string') {
40
+ this.inputValue = this.value;
41
+ }
42
+ const items = await this.fetchItems();
43
+ this.allItems = items;
44
+ this.filteredItems = items;
45
+ this.loading = false;
46
+ }
47
+ componentDidLoad() {
48
+ document.addEventListener('click', this.handleClickOutside);
49
+ window.addEventListener('close-all-poppers', this.handleCloseOthers);
50
+ }
51
+ disconnectedCallback() {
52
+ document.removeEventListener('click', this.handleClickOutside);
53
+ window.removeEventListener('close-all-poppers', this.handleCloseOthers);
54
+ this.cleanup?.();
55
+ this.popperEl?.remove();
56
+ }
57
+ handleClickOutside = (e) => {
58
+ const path = e.composedPath();
59
+ if (!path.includes(this.triggerEl) && !path.includes(this.popperEl)) {
60
+ this.showDropdown = false;
61
+ this.cleanup?.();
62
+ this.popperEl?.remove();
63
+ }
64
+ };
65
+ handleCloseOthers = (e) => {
66
+ if (e.detail !== this && this.showDropdown) {
67
+ this.showDropdown = false;
68
+ this.cleanup?.();
69
+ this.popperEl?.remove();
70
+ }
71
+ };
72
+ onInput = (e) => {
73
+ const value = e.target.value;
74
+ this.inputValue = value;
75
+ this.showDropdown = true;
76
+ this.filteredItems = this.allItems.filter(i => i.name.toLowerCase().includes(value.toLowerCase()));
77
+ };
78
+ onSelectItem = (item) => {
79
+ if (this.type === 'status') {
80
+ this.inputValue = item.name;
81
+ }
82
+ else {
83
+ this.inputValue = item.name;
84
+ }
85
+ this.showDropdown = false;
86
+ this.selecting.emit(item);
87
+ };
88
+ async onCreateItem() {
89
+ const value = this.inputValue.trim();
90
+ if (value === '')
91
+ return;
92
+ const existItem = this.allItems.find(i => i.name.toLowerCase() === value.toLowerCase());
93
+ if (existItem) {
94
+ this.onSelectItem(existItem);
95
+ return;
96
+ }
97
+ const newItem = await this.createItem(value);
98
+ const items = await this.fetchItems();
99
+ this.allItems = items;
100
+ this.create.emit(newItem);
101
+ this.onSelectItem(newItem);
102
+ }
103
+ onClearItem() {
104
+ this.clear.emit();
105
+ this.onSelectItem({ id: '', name: '' });
106
+ }
107
+ onFocus = () => {
108
+ this.showDropdown = true;
109
+ if (this.showDropdown) {
110
+ window.dispatchEvent(new CustomEvent('close-all-poppers', { detail: this }));
111
+ const referenceEl = this.triggerEl;
112
+ if (!referenceEl || !this.popperEl)
113
+ return;
114
+ const container = document.getElementById('chat-app') || document.body;
115
+ container.appendChild(this.popperEl);
116
+ this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {
117
+ computePosition(referenceEl, this.popperEl, {
118
+ placement: 'bottom-start',
119
+ middleware: [offset(4), flip(), shift()],
120
+ }).then(({ x, y }) => {
121
+ Object.assign(this.popperEl.style, {
122
+ left: `${x}px`,
123
+ top: `${y}px`,
124
+ zIndex: '9999',
125
+ });
126
+ });
127
+ });
128
+ }
129
+ else {
130
+ this.cleanup?.();
131
+ this.popperEl?.remove();
132
+ }
133
+ };
134
+ render() {
135
+ const t = useTranslation();
136
+ const theme = configStore.get('theme');
137
+ const noMatch = this.inputValue && !this.allItems.some(i => i.name.toLowerCase() === this.inputValue.toLowerCase());
138
+ return (h(Host, { key: '80a0e3a8c5b60d22700a6728ec27a52a41d0807f', "data-theme": theme }, h("div", { key: '74ce005edf7c62bd734b76d0d5717e49d4998e25', id: `auto-complete-${this.referenceSelector}`, class: "autocomplete-select" }, h("input", { key: '7fbfc690d296699bc3c368847c38396117e1d7c7', class: "autocomplete-select-input border-primary bg-paper text-surface", value: this.inputValue, onInput: this.onInput, onFocus: this.onFocus, maxLength: this.type === 'tag' ? TAG_LENGTH : undefined, onKeyDown: e => e.key === 'Enter' && this.showDropdown && this.onCreateItem(), ref: el => (this.triggerEl = el), id: this.referenceSelector }), this.type === 'tag' &&
139
+ h("div", { key: 'f906487a5bbbacf5febeaca1928c31e9bd6562ba', class: "autocomplete-select-item-counter text-theme-gray" }, "(", this.inputValue.length, "/", TAG_LENGTH, ")"), this.showClearButton && this.inputValue &&
140
+ h("div", { key: '26200d8631959d0ca91ccacb5c36d88a6b11b29e', class: `autocomplete-select-item-input-icon z-background-primary-${theme}`, onClick: () => this.onClearItem() }, h(Icon, { key: '59c05c101fe3a319870fd42f9a50ddb6690a3f4f', name: "X" })), h("ul", { key: 'c82550314fe99329e08ce6cb3c91c42181999caa', ref: el => (this.popperEl = el), class: `autocomplete-select-list bg-paper text-primary ${(this.showDropdown && (this.filteredItems.length > 0 || this.inputValue)) ? '' : 'hidden!'}` }, noMatch && (h("li", { key: 'e1b978c9919f334904625881586075e1080424e3', title: this.inputValue, class: "autocomplete-select-item-wrapper", onClick: () => this.onCreateItem() }, h("span", { key: '6d9ceda3aa23a6928401d1bf9369b9a8d622b5f4', class: "font-semibold text-primary" }, t('new'), "\u00A0:\u00A0"), "\u00A0", h("strong", { key: 'a6346c09d36214dd628e57b40f9d7c527ab9035b' }, this.inputValue), "\u00A0", h("span", { key: 'edd485c630417410ac911056b6950ee8e74ed1f1', class: "font-semibold text-theme-gray" }, t('enter_create')))), this.filteredItems.map(item => {
141
+ const isSelected = this.type === 'tag' ? this.selectedIds?.includes(item?.id) : item.name?.toLowerCase() === this.inputValue?.toLowerCase();
142
+ return (h("li", { title: item.name, class: `autocomplete-select-item ${isSelected ? '' : 'hover:brightness-110'} cursor-pointer ${isSelected ? `bg-background` : ''}`, onClick: () => (isSelected ? null : this.onSelectItem(item)) }, h("span", { class: "autocomplete-select-item-icon", style: { backgroundColor: item.color } }), h("div", { class: "autocomplete-select-item-text" }, item.name), isSelected && h("span", { class: "font-semibold text-primary" }, "\u00A0(", t('used'), ")")));
143
+ })))));
144
+ }
145
+ static get style() { return autocompleteSelectCss; }
146
+ }, [256, "autocomplete-select", {
147
+ "type": [1],
148
+ "value": [1],
149
+ "fetchItems": [16],
150
+ "createItem": [16],
151
+ "selectedIds": [16],
152
+ "referenceSelector": [1, "reference-selector"],
153
+ "showClearButton": [4, "show-clear-button"],
154
+ "allItems": [32],
155
+ "filteredItems": [32],
156
+ "inputValue": [32],
157
+ "showDropdown": [32],
158
+ "loading": [32]
159
+ }]);
160
+ function defineCustomElement() {
161
+ if (typeof customElements === "undefined") {
162
+ return;
163
+ }
164
+ const components = ["autocomplete-select"];
165
+ components.forEach(tagName => { switch (tagName) {
166
+ case "autocomplete-select":
167
+ if (!customElements.get(tagName)) {
168
+ customElements.define(tagName, AutocompleteSelect);
169
+ }
170
+ break;
171
+ } });
172
+ }
173
+ defineCustomElement();
174
+
175
+ export { AutocompleteSelect as A, defineCustomElement as d };
176
+ //# sourceMappingURL=p-Ba5c5p9B.js.map
177
+
178
+ //# sourceMappingURL=p-Ba5c5p9B.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-Ba5c5p9B.js","mappings":";;;;;;;AAAA,MAAM,qBAAqB,GAAG,i2xDAAi2xD;;MCYl3xD,kBAAkB,iBAAAA,kBAAA,CAAA,MAAA,kBAAA,SAAAC,CAAA,CAAA;;;;;;;;;;IACrB,IAAI,GAAsB,QAAQ;AAClC,IAAA,KAAK;AACL,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,WAAW;AACX,IAAA,iBAAiB;IACjB,eAAe,GAAa,KAAK;AAEhC,IAAA,SAAS;AACT,IAAA,MAAM;AACN,IAAA,KAAK;IAEL,QAAQ,GAAe,EAAE;IACzB,aAAa,GAAe,EAAE;IAC9B,UAAU,GAAG,EAAE;IACf,YAAY,GAAG,KAAK;IACpB,OAAO,GAAG,IAAI;A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IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,4BAA4B,EAAA,aAAS,CAAC,CAAC,MAAM,CAAC,EAAS,GAAA,CAAA,CAC/E;AAET,SAAC,CAAC,CACC,CACD,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/autocomplete-select/autocomplete-select.css?tag=autocomplete-select","src/components/autocomplete-select/autocomplete-select.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.autocomplete-select {\n @apply relative w-full flex-1\n}\n\n.autocomplete-select-input {\n @apply w-full border text-sm px-4 py-2 rounded-md ring-primary focus:outline-none focus:border-primary\n}\n\n.autocomplete-select-list {\n @apply absolute rounded-sm text-sm border w-full mt-1 z-10 max-h-60 max-w-[240px] overflow-y-auto shadow-lg\n}\n\n.autocomplete-select-item-wrapper {\n @apply px-3 py-2 hover:brightness-110 cursor-pointer\n}\n\n.autocomplete-select-item {\n @apply px-3 py-2 flex flex-row items-center\n}\n\n.autocomplete-select-item-icon {\n @apply inline-block size-3 mr-2 rounded-full\n}\n\n.autocomplete-select-item-text {\n @apply inline-flex truncate max-w-[100px]\n}\n\n.autocomplete-select-item-counter {\n @apply absolute right-1 top-3/4 -translate-y-1/2 text-white p-1 text-xs\n}\n\n.autocomplete-select-item-input-icon {\n @apply absolute right-1.25 top-1/2 -translate-y-1/2 text-white p-1.5 rounded-full cursor-pointer\n}\n","import { Component, Host, Prop, State, h, Event, EventEmitter } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { ItemType } from '../../store/type';\nimport { computePosition, autoUpdate, offset, flip, shift } from '@floating-ui/dom';\nimport { useTranslation } from '../../utils/utils';\nimport { TAG_LENGTH } from '../../utils/constant';\nimport { Icon } from '../internal-component/icon';\n\n@Component({\n tag: 'autocomplete-select',\n styleUrl: 'autocomplete-select.css',\n})\nexport class AutocompleteSelect {\n @Prop() type?: 'tag' | 'status' = 'status';\n @Prop() value?: string | string[];\n @Prop() fetchItems!: () => Promise<ItemType[]>;\n @Prop() createItem?: (name: string) => Promise<ItemType>;\n @Prop() selectedIds?: string[];\n @Prop() referenceSelector: string;\n @Prop() showClearButton?: boolean = false;\n\n @Event() selecting: EventEmitter<ItemType>;\n @Event() create: EventEmitter<ItemType>;\n @Event() clear: EventEmitter<void>;\n\n @State() allItems: ItemType[] = [];\n @State() filteredItems: ItemType[] = [];\n @State() inputValue = '';\n @State() showDropdown = false;\n @State() loading = true;\n\n private triggerEl!: HTMLElement;\n private popperEl: HTMLUListElement;\n\n private cleanup?: () => void;\n\n async componentWillLoad() {\n if (typeof this.value === 'string') {\n this.inputValue = this.value;\n }\n const items = await this.fetchItems();\n this.allItems = items;\n this.filteredItems = items;\n this.loading = false;\n }\n\n componentDidLoad() {\n document.addEventListener('click', this.handleClickOutside);\n window.addEventListener('close-all-poppers', this.handleCloseOthers);\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside);\n window.removeEventListener('close-all-poppers', this.handleCloseOthers);\n this.cleanup?.();\n this.popperEl?.remove();\n }\n\n handleClickOutside = (e: MouseEvent) => {\n const path = e.composedPath();\n if (!path.includes(this.triggerEl) && !path.includes(this.popperEl)) {\n this.showDropdown = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n private handleCloseOthers = (e: CustomEvent) => {\n if (e.detail !== this && this.showDropdown) {\n this.showDropdown = false;\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n onInput = (e: InputEvent) => {\n const value = (e.target as HTMLInputElement).value;\n this.inputValue = value;\n this.showDropdown = true;\n\n this.filteredItems = this.allItems.filter(i => i.name.toLowerCase().includes(value.toLowerCase()));\n };\n\n onSelectItem = (item: ItemType) => {\n if (this.type === 'status') {\n this.inputValue = item.name;\n } else {\n this.inputValue = item.name;\n }\n this.showDropdown = false;\n this.selecting.emit(item);\n };\n\n async onCreateItem() {\n const value = this.inputValue.trim();\n if (value === '') return;\n const existItem = this.allItems.find(i => i.name.toLowerCase() === value.toLowerCase());\n if (existItem) {\n this.onSelectItem(existItem);\n return;\n }\n\n const newItem = await this.createItem(value);\n const items = await this.fetchItems();\n this.allItems = items;\n this.create.emit(newItem);\n this.onSelectItem(newItem);\n }\n\n onClearItem() {\n this.clear.emit();\n this.onSelectItem({ id: '', name: '' });\n }\n\n onFocus = () => {\n this.showDropdown = true;\n if (this.showDropdown) {\n window.dispatchEvent(new CustomEvent('close-all-poppers', { detail: this }));\n\n const referenceEl = this.triggerEl;\n if (!referenceEl || !this.popperEl) return;\n\n const container = document.getElementById('chat-app') || document.body;\n container.appendChild(this.popperEl);\n\n this.cleanup = autoUpdate(referenceEl, this.popperEl, () => {\n computePosition(referenceEl, this.popperEl, {\n placement: 'bottom-start',\n middleware: [offset(4), flip(), shift()],\n }).then(({ x, y }) => {\n Object.assign(this.popperEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n zIndex: '9999',\n });\n });\n });\n } else {\n this.cleanup?.();\n this.popperEl?.remove();\n }\n };\n\n render() {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const noMatch = this.inputValue && !this.allItems.some(i => i.name.toLowerCase() === this.inputValue.toLowerCase());\n\n return (\n <Host data-theme={theme}>\n <div id={`auto-complete-${this.referenceSelector}`} class=\"autocomplete-select\">\n <input\n class=\"autocomplete-select-input border-primary bg-paper text-surface\"\n value={this.inputValue}\n onInput={this.onInput}\n onFocus={this.onFocus}\n maxLength={this.type === 'tag' ? TAG_LENGTH : undefined}\n onKeyDown={e => e.key === 'Enter' && this.showDropdown && this.onCreateItem()}\n ref={el => (this.triggerEl = el)}\n id={this.referenceSelector}\n />\n {this.type === 'tag' &&\n <div class=\"autocomplete-select-item-counter text-theme-gray\">\n ({this.inputValue.length}/{TAG_LENGTH})\n </div>\n }\n {this.showClearButton && this.inputValue &&\n <div class={`autocomplete-select-item-input-icon z-background-primary-${theme}`} onClick={() => this.onClearItem()}>\n <Icon name=\"X\" />\n </div>\n }\n <ul\n ref={el => (this.popperEl = el)}\n class={`autocomplete-select-list bg-paper text-primary ${(this.showDropdown && (this.filteredItems.length > 0 || this.inputValue)) ? '' : 'hidden!'}`}\n >\n {noMatch && (\n <li title={this.inputValue} class=\"autocomplete-select-item-wrapper\" onClick={() => this.onCreateItem()}>\n <span class=\"font-semibold text-primary\">{t('new')}&nbsp;:&nbsp;</span>\n &nbsp;<strong>{this.inputValue}</strong>\n &nbsp;<span class=\"font-semibold text-theme-gray\">{t('enter_create')}</span>\n </li>\n )}\n\n {this.filteredItems.map(item => {\n const isSelected = this.type === 'tag' ? this.selectedIds?.includes(item?.id) : item.name?.toLowerCase() === this.inputValue?.toLowerCase();\n return (\n <li\n title={item.name}\n class={`autocomplete-select-item ${isSelected ? '' : 'hover:brightness-110'} cursor-pointer ${isSelected ? `bg-background` : ''}`}\n onClick={() => (isSelected ? null : this.onSelectItem(item))}\n >\n <span class=\"autocomplete-select-item-icon\" style={{ backgroundColor: item.color }}></span>\n <div class=\"autocomplete-select-item-text\">{item.name}</div>\n {isSelected && <span class=\"font-semibold text-primary\">&nbsp;({t('used')})</span>}\n </li>\n );\n })}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,6 @@
1
1
  import { h } from './p-DRz4sc4i.js';
2
- import { c as configStore } from './p-C-yg0vtE.js';
3
2
 
4
3
  const ZButton = ({ id, variant = 'primary', textVariant = 'primary', disabled = false, onClick, fullWidth, maxWidth, label, startIcon, endIcon, size = 'medium', ref, title, }) => {
5
- const theme = configStore.get('theme');
6
4
  let styleSize = 'z-button-medium';
7
5
  if (size === 'small') {
8
6
  styleSize = 'z-button-small';
@@ -13,13 +11,13 @@ const ZButton = ({ id, variant = 'primary', textVariant = 'primary', disabled =
13
11
  const base = `z-button ${styleSize} ${fullWidth ? 'w-full' : maxWidth ? maxWidth : ''}`;
14
12
  const primary = 'z-button-primary';
15
13
  const outlined = 'z-button-outlined';
16
- const text = `${textVariant === 'primary' ? 'text-primary' : `z-text-${theme}`} hover:brightness-110`;
14
+ const text = `${textVariant === 'primary' ? 'text-primary' : 'text-surface'} hover:brightness-110`;
17
15
  const disabledStyle = 'z-button-disabled';
18
16
  const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : text, disabled ? disabledStyle : ''].join(' ');
19
17
  return (h("button", { id: id, title: title, ref: ref, class: classList, disabled: disabled, onClick: e => !disabled && onClick?.(e) }, startIcon, h("span", { class: "z-button-text", id: id }, label), endIcon));
20
18
  };
21
19
 
22
20
  export { ZButton as Z };
23
- //# sourceMappingURL=p-Cln26Qch.js.map
21
+ //# sourceMappingURL=p-BjytUY9X.js.map
24
22
 
25
- //# sourceMappingURL=p-Cln26Qch.js.map
23
+ //# sourceMappingURL=p-BjytUY9X.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-BjytUY9X.js","mappings":";;AAkBa,MAAA,OAAO,GAAsC,CAAC,EACzD,EAAE,EACF,OAAO,GAAG,SAAS,EACnB,WAAW,GAAG,SAAS,EACvB,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,GAAG,EACH,KAAK,GACN,KAAI;IACH,IAAI,SAAS,GAAG,iBAAiB;AACjC,IAAA,IAAI,IAAI,KAAK,OAAO,EAAE;QACpB,SAAS,GAAG,gBAAgB;;AAE9B,IAAA,IAAI,IAAI,KAAK,OAAO,EAAE;QACpB,SAAS,GAAG,gBAAgB;;IAG9B,MAAM,IAAI,GAAG,CAAY,SAAA,EAAA,SAAS,IAAI,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,EAAE,CAAA,CAAE;IACvF,MAAM,OAAO,GAAG,kBAAkB;IAClC,MAAM,QAAQ,GAAG,mBAAmB;AACpC,IAAA,MAAM,IAAI,GAAG,CAAG,EAAA,WAAW,KAAK,SAAS,GAAG,cAAc,GAAG,cAAc,uBAAuB;IAClG,MAAM,aAAa,GAAG,mBAAmB;AAEzC,IAAA,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,KAAK,UAAU,GAAG,QAAQ,GAAG,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAE7I,IAAA,QACE,CAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,OAAO,GAAG,CAAC,CAAC,EAAA,EAClH,SAAS,EACV,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,EAAE,EAC/B,EAAA,KAAK,CACD,EACN,OAAO,CACD;AAEb;;;;","names":[],"sources":["src/components/internal-component/z-button.tsx"],"sourcesContent":["import { FunctionalComponent, h, JSX } from '@stencil/core';\n\ninterface ZButtonProps {\n id?: string;\n variant?: 'primary' | 'outlined' | 'text';\n textVariant?: 'primary' | 'text';\n disabled?: boolean;\n onClick?: (e: MouseEvent) => void;\n fullWidth?: boolean;\n maxWidth?: string;\n label?: JSX.Element;\n startIcon?: JSX.Element;\n endIcon?: JSX.Element;\n size?: 'small' | 'medium' | 'large';\n ref?: (elm?: HTMLButtonElement) => void;\n title?: string;\n}\n\nexport const ZButton: FunctionalComponent<ZButtonProps> = ({\n id,\n variant = 'primary',\n textVariant = 'primary',\n disabled = false,\n onClick,\n fullWidth,\n maxWidth,\n label,\n startIcon,\n endIcon,\n size = 'medium',\n ref,\n title,\n}) => {\n let styleSize = 'z-button-medium';\n if (size === 'small') {\n styleSize = 'z-button-small';\n }\n if (size === 'large') {\n styleSize = 'z-button-large';\n }\n\n const base = `z-button ${styleSize} ${fullWidth ? 'w-full' : maxWidth ? maxWidth : ''}`;\n const primary = 'z-button-primary';\n const outlined = 'z-button-outlined';\n const text = `${textVariant === 'primary' ? 'text-primary' : 'text-surface'} hover:brightness-110`;\n const disabledStyle = 'z-button-disabled';\n\n const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : text, disabled ? disabledStyle : ''].join(' ');\n\n return (\n <button id={id} title={title} ref={ref} class={classList} disabled={disabled} onClick={e => !disabled && onClick?.(e)}>\n {startIcon}\n <span class=\"z-button-text\" id={id}>\n {label}\n </span>\n {endIcon}\n </button>\n );\n};\n"],"version":3}
@@ -57,10 +57,10 @@ const QuickMessageImageContentComponent = /*@__PURE__*/ proxyCustomElement(class
57
57
  const theme = configStore.get('theme');
58
58
  const t = useTranslation();
59
59
  const preview = this.content.file_url;
60
- const borderClass = `z-border-primary-${theme}`;
61
- const primaryTextClass = `z-text-primary-${theme}`;
62
- const grayTextClass = `z-text-gray-${theme}`;
63
- return (h("div", { class: "flex justify-end" }, h("div", { class: "max-w-xs h-[220px] aspect-square" }, h("input", { type: "file", accept: "image/*", class: "hidden", ref: el => (this.fileInput = el), onChange: this.handleFileChange }), preview ? (h("div", { class: `group h-[220px] relative w-full overflow-hidden rounded-[18px] border-[1.5px] z-background-${theme} shadow-sm ${borderClass}` }, h("img", { src: preview, alt: "preview-message-image", class: "h-[220px] w-full object-cover", loading: "lazy" }), h("div", { class: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-slate-900/60 opacity-0 transition-opacity group-hover:opacity-100" }, h("button", { type: "button", class: `inline-flex items-center gap-2 rounded-full z-background-${theme} px-4 py-2 text-xs font-semibold text-slate-700 shadow cursor-pointer`, onClick: this.handleSelectClick }, h(Icon, { name: "Image", addClass: `size-4 z-text-${theme}` }), h("span", { class: `z-text-${theme}` }, t('quick_message.change_image'))), h("button", { type: "button", class: `inline-flex items-center gap-2 rounded-full z-background-${theme} px-4 py-2 text-xs font-semibold text-red-500 shadow cursor-pointer`, onClick: this.handleRemoveImage }, h(Icon, { name: "Trash2", addClass: "size-4" }), h("span", { class: "text-red-500" }, t('remove')))))) : (h("button", { type: "button", class: `flex w-full flex-col items-center justify-center gap-2 rounded-[18px] border-[1.5px] border-current z-background-${theme} px-8 py-12 text-center shadow-sm transition-colors hover:z-background-${theme} ${borderClass} cursor-pointer`, onClick: this.handleSelectClick }, h(Icon, { name: "Image", addClass: `size-12 ${primaryTextClass}` }), h("span", { class: `text-base font-semibold leading-tight ${primaryTextClass}` }, "+ ", t('quick_message.add_image')), h("span", { class: `text-[13px] font-medium ${grayTextClass}` }, t('quick_message.image_size_hint')))), this.errorMessage && h("p", { class: "mt-2 text-xs text-red-500" }, this.errorMessage))));
60
+ const borderClass = `border-primary`;
61
+ const primaryTextClass = `text-primary`;
62
+ const grayTextClass = `text-theme-gray`;
63
+ return (h("div", { class: "flex justify-end", "data-theme": theme }, h("div", { class: "max-w-xs h-[220px] aspect-square" }, h("input", { type: "file", accept: "image/*", class: "hidden", ref: el => (this.fileInput = el), onChange: this.handleFileChange }), preview ? (h("div", { class: `group h-[220px] relative w-full overflow-hidden rounded-[18px] border-[1.5px] bg-background shadow-sm ${borderClass}` }, h("img", { src: preview, alt: "preview-message-image", class: "h-[220px] w-full object-cover", loading: "lazy" }), h("div", { class: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-slate-900/60 opacity-0 transition-opacity group-hover:opacity-100" }, h("button", { type: "button", class: `inline-flex items-center gap-2 rounded-full bg-background px-4 py-2 text-xs font-semibold text-slate-700 shadow cursor-pointer`, onClick: this.handleSelectClick }, h(Icon, { name: "Image", addClass: `size-4 text-surface` }), h("span", { class: `text-surface` }, t('quick_message.change_image'))), h("button", { type: "button", class: `inline-flex items-center gap-2 rounded-full bg-background px-4 py-2 text-xs font-semibold text-red-500 shadow cursor-pointer`, onClick: this.handleRemoveImage }, h(Icon, { name: "Trash2", addClass: "size-4" }), h("span", { class: "text-red-500" }, t('remove')))))) : (h("button", { type: "button", class: `flex w-full flex-col items-center justify-center gap-2 rounded-[18px] border-[1.5px] border-current bg-background px-8 py-12 text-center shadow-sm transition-colors hover:bg-background ${borderClass} cursor-pointer`, onClick: this.handleSelectClick }, h(Icon, { name: "Image", addClass: `size-12 ${primaryTextClass}` }), h("span", { class: `text-base font-semibold leading-tight ${primaryTextClass}` }, "+ ", t('quick_message.add_image')), h("span", { class: `text-[13px] font-medium ${grayTextClass}` }, t('quick_message.image_size_hint')))), this.errorMessage && h("p", { class: "mt-2 text-xs text-red-500" }, this.errorMessage))));
64
64
  }
65
65
  }, [256, "quick-message-image-content", {
66
66
  "content": [16],
@@ -83,6 +83,6 @@ function defineCustomElement() {
83
83
  defineCustomElement();
84
84
 
85
85
  export { QuickMessageImageContentComponent as Q, defineCustomElement as d };
86
- //# sourceMappingURL=p-HCd8IVUw.js.map
86
+ //# sourceMappingURL=p-C0tV1VyH.js.map
87
87
 
88
- //# sourceMappingURL=p-HCd8IVUw.js.map
88
+ //# sourceMappingURL=p-C0tV1VyH.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-C0tV1VyH.js","mappings":";;;;;MASa,iCAAiC,iBAAAA,kBAAA,CAAA,MAAA,iCAAA,SAAAC,CAAA,CAAA;;;;;;;;AACpC,IAAA,OAAO;IACP,WAAW,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAEG,IAAA,aAAa;AAEtC,IAAA,YAAY;AAErB,IAAA,SAAS;AAET,IAAA,WAAW,CAAC,MAA4C,EAAA;AAC9D,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB;;QAGF,MAAM,WAAW,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,EAAE;AAClD,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;;IAGrB,iBAAiB,GAAG,MAAK;AACxC,QAAA,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;AACzB,KAAC;AAEgB,IAAA,gBAAgB,GAAG,CAAC,KAAY,KAAI;AACnD,QAAA,MAAM,K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EAAM,KAAK,EAAC,cAAc,EAAA,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAQ,CACxC,CACL,CACF,KAEN,CAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,4LAA4L,WAAW,CAAA,eAAA,CAAiB,EAC/N,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAA,EAE/B,CAAC,CAAA,IAAI,EAAC,EAAA,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,CAAW,QAAA,EAAA,gBAAgB,CAAE,CAAA,EAAI,CAAA,EAC9D,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,CAAA,sCAAA,EAAyC,gBAAgB,CAAE,CAAA,EAAA,QAAK,CAAC,CAAC,yBAAyB,CAAC,CAAQ,EACjH,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,CAA2B,wBAAA,EAAA,aAAa,EAAE,EAAA,EAAG,CAAC,CAAC,+BAA+B,CAAC,CAAQ,CAC7F,CACV,EAEA,IAAI,CAAC,YAAY,IAAI,CAAA,CAAA,GAAA,EAAA,EAAG,KAAK,EAAC,2BAA2B,EAAE,EAAA,IAAI,CAAC,YAAY,CAAK,CAC9E,CACF;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/quick-message-add-template/quick-message-image-content.tsx"],"sourcesContent":["import { Component, Event, EventEmitter, Prop, State, h } from '@stencil/core';\nimport { QuickMessageTemplateContent } from '../../store/type';\nimport { configStore } from '../../store/store';\nimport { useTranslation } from '../../utils/utils';\nimport { Icon } from '../internal-component/icon';\n\n@Component({\n tag: 'quick-message-image-content',\n})\nexport class QuickMessageImageContentComponent {\n @Prop() content: QuickMessageTemplateContent;\n @Prop() maxFileSize = 10 * 1024 * 1024; // 10MB\n\n @Event({ bubbles: true, composed: true }) contentChange!: EventEmitter<QuickMessageTemplateContent>;\n\n @State() private errorMessage?: string;\n\n private fileInput?: HTMLInputElement;\n\n private emitContent(update: Partial<QuickMessageTemplateContent>) {\n if (!this.content) {\n return;\n }\n\n const nextContent = { ...this.content, ...update };\n this.contentChange.emit(nextContent);\n }\n\n private readonly handleSelectClick = () => {\n this.fileInput?.click();\n };\n\n private readonly handleFileChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n const file = input.files?.[0];\n if (!file) {\n return;\n }\n\n if (file.size > this.maxFileSize) {\n this.errorMessage = useTranslation()('quick_message.image_too_large');\n input.value = '';\n return;\n }\n\n const reader = new FileReader();\n reader.onload = () => {\n const url = reader.result as string;\n this.emitContent({ file_url: url });\n this.errorMessage = undefined;\n input.value = '';\n };\n reader.readAsDataURL(file);\n };\n\n private readonly handleRemoveImage = () => {\n this.emitContent({ file_url: '' });\n this.errorMessage = undefined;\n };\n\n render() {\n if (!this.content) {\n return null;\n }\n\n const theme = configStore.get('theme');\n const t = useTranslation();\n const preview = this.content.file_url;\n\n const borderClass = `border-primary`;\n const primaryTextClass = `text-primary`;\n const grayTextClass = `text-theme-gray`;\n\n return (\n <div class=\"flex justify-end\" data-theme={theme}>\n <div class=\"max-w-xs h-[220px] aspect-square\">\n <input type=\"file\" accept=\"image/*\" class=\"hidden\" ref={el => (this.fileInput = el as HTMLInputElement)} onChange={this.handleFileChange} />\n\n {preview ? (\n <div class={`group h-[220px] relative w-full overflow-hidden rounded-[18px] border-[1.5px] bg-background shadow-sm ${borderClass}`}>\n <img src={preview} alt=\"preview-message-image\" class=\"h-[220px] w-full object-cover\" loading=\"lazy\" />\n <div class=\"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-slate-900/60 opacity-0 transition-opacity group-hover:opacity-100\">\n <button\n type=\"button\"\n class={`inline-flex items-center gap-2 rounded-full bg-background px-4 py-2 text-xs font-semibold text-slate-700 shadow cursor-pointer`}\n onClick={this.handleSelectClick}\n >\n <Icon name=\"Image\" addClass={`size-4 text-surface`} />\n <span class={`text-surface`}>{t('quick_message.change_image')}</span>\n </button>\n <button\n type=\"button\"\n class={`inline-flex items-center gap-2 rounded-full bg-background px-4 py-2 text-xs font-semibold text-red-500 shadow cursor-pointer`}\n onClick={this.handleRemoveImage}\n >\n <Icon name=\"Trash2\" addClass=\"size-4\" />\n <span class=\"text-red-500\">{t('remove')}</span>\n </button>\n </div>\n </div>\n ) : (\n <button\n type=\"button\"\n class={`flex w-full flex-col items-center justify-center gap-2 rounded-[18px] border-[1.5px] border-current bg-background px-8 py-12 text-center shadow-sm transition-colors hover:bg-background ${borderClass} cursor-pointer`}\n onClick={this.handleSelectClick}\n >\n <Icon name=\"Image\" addClass={`size-12 ${primaryTextClass}`} />\n <span class={`text-base font-semibold leading-tight ${primaryTextClass}`}>+ {t('quick_message.add_image')}</span>\n <span class={`text-[13px] font-medium ${grayTextClass}`}>{t('quick_message.image_size_hint')}</span>\n </button>\n )}\n\n {this.errorMessage && <p class=\"mt-2 text-xs text-red-500\">{this.errorMessage}</p>}\n </div>\n </div>\n );\n }\n}\n"],"version":3}