zignal-stencil-library 1.0.0

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 (294) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  4. package/dist/cjs/autocomplete-select_18.cjs.entry.js +41433 -0
  5. package/dist/cjs/autocomplete-select_18.cjs.entry.js.map +1 -0
  6. package/dist/cjs/index-C4CtrJXU.js +2199 -0
  7. package/dist/cjs/index-C4CtrJXU.js.map +1 -0
  8. package/dist/cjs/index-tRPYdc8n.js +1927 -0
  9. package/dist/cjs/index-tRPYdc8n.js.map +1 -0
  10. package/dist/cjs/index.cjs.js +7 -0
  11. package/dist/cjs/index.cjs.js.map +1 -0
  12. package/dist/cjs/loader.cjs.js +16 -0
  13. package/dist/cjs/loader.cjs.js.map +1 -0
  14. package/dist/cjs/zignal-stencil-library.cjs.js +28 -0
  15. package/dist/cjs/zignal-stencil-library.cjs.js.map +1 -0
  16. package/dist/collection/api/index.js +132 -0
  17. package/dist/collection/api/index.js.map +1 -0
  18. package/dist/collection/collection-manifest.json +29 -0
  19. package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -0
  20. package/dist/collection/components/autocomplete-select/autocomplete-select.js +230 -0
  21. package/dist/collection/components/autocomplete-select/autocomplete-select.js.map +1 -0
  22. package/dist/collection/components/channel-box/channel-box.css +1 -0
  23. package/dist/collection/components/channel-box/channel-box.js +93 -0
  24. package/dist/collection/components/channel-box/channel-box.js.map +1 -0
  25. package/dist/collection/components/chat-app/chat-app.css +1 -0
  26. package/dist/collection/components/chat-app/chat-app.js +227 -0
  27. package/dist/collection/components/chat-app/chat-app.js.map +1 -0
  28. package/dist/collection/components/chat-header/chat-header.css +1 -0
  29. package/dist/collection/components/chat-header/chat-header.js +45 -0
  30. package/dist/collection/components/chat-header/chat-header.js.map +1 -0
  31. package/dist/collection/components/chat-input/chat-input.css +1 -0
  32. package/dist/collection/components/chat-input/chat-input.js +118 -0
  33. package/dist/collection/components/chat-input/chat-input.js.map +1 -0
  34. package/dist/collection/components/dialog-editor/dialog-editor.css +1 -0
  35. package/dist/collection/components/dialog-editor/dialog-editor.js +176 -0
  36. package/dist/collection/components/dialog-editor/dialog-editor.js.map +1 -0
  37. package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -0
  38. package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +96 -0
  39. package/dist/collection/components/dialog-preview-media/dialog-preview-media.js.map +1 -0
  40. package/dist/collection/components/dialog-search/dialog-search.css +1 -0
  41. package/dist/collection/components/dialog-search/dialog-search.js +105 -0
  42. package/dist/collection/components/dialog-search/dialog-search.js.map +1 -0
  43. package/dist/collection/components/internal-component/chat-item.js +28 -0
  44. package/dist/collection/components/internal-component/chat-item.js.map +1 -0
  45. package/dist/collection/components/internal-component/icon.js +9 -0
  46. package/dist/collection/components/internal-component/icon.js.map +1 -0
  47. package/dist/collection/components/internal-component/tag-or-status-item.js +9 -0
  48. package/dist/collection/components/internal-component/tag-or-status-item.js.map +1 -0
  49. package/dist/collection/components/internal-component/z-button.js +24 -0
  50. package/dist/collection/components/internal-component/z-button.js.map +1 -0
  51. package/dist/collection/components/internal-component/z-icon-button.js +23 -0
  52. package/dist/collection/components/internal-component/z-icon-button.js.map +1 -0
  53. package/dist/collection/components/internal-component/z-input-area.js +8 -0
  54. package/dist/collection/components/internal-component/z-input-area.js.map +1 -0
  55. package/dist/collection/components/internal-component/z-input.js +8 -0
  56. package/dist/collection/components/internal-component/z-input.js.map +1 -0
  57. package/dist/collection/components/internal-component/z-select-input.js +9 -0
  58. package/dist/collection/components/internal-component/z-select-input.js.map +1 -0
  59. package/dist/collection/components/menu-list/menu-list.css +1 -0
  60. package/dist/collection/components/menu-list/menu-list.js +168 -0
  61. package/dist/collection/components/menu-list/menu-list.js.map +1 -0
  62. package/dist/collection/components/message-box/message-box.css +1 -0
  63. package/dist/collection/components/message-box/message-box.js +179 -0
  64. package/dist/collection/components/message-box/message-box.js.map +1 -0
  65. package/dist/collection/components/message-content/message-content.css +1 -0
  66. package/dist/collection/components/message-content/message-content.js +98 -0
  67. package/dist/collection/components/message-content/message-content.js.map +1 -0
  68. package/dist/collection/components/message-item/message-item.css +1 -0
  69. package/dist/collection/components/message-item/message-item.js +115 -0
  70. package/dist/collection/components/message-item/message-item.js.map +1 -0
  71. package/dist/collection/components/profile-history/profile-history.css +1 -0
  72. package/dist/collection/components/profile-history/profile-history.js +18 -0
  73. package/dist/collection/components/profile-history/profile-history.js.map +1 -0
  74. package/dist/collection/components/profile-info/profile-info.css +1 -0
  75. package/dist/collection/components/profile-info/profile-info.js +255 -0
  76. package/dist/collection/components/profile-info/profile-info.js.map +1 -0
  77. package/dist/collection/components/profile-media/profile-media.css +1 -0
  78. package/dist/collection/components/profile-media/profile-media.js +18 -0
  79. package/dist/collection/components/profile-media/profile-media.js.map +1 -0
  80. package/dist/collection/components/profile-tabs/profile-tabs.css +1 -0
  81. package/dist/collection/components/profile-tabs/profile-tabs.js +43 -0
  82. package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -0
  83. package/dist/collection/components/search-box/search-box.css +1 -0
  84. package/dist/collection/components/search-box/search-box.js +71 -0
  85. package/dist/collection/components/search-box/search-box.js.map +1 -0
  86. package/dist/collection/components/tag-popper/tag-popper.css +1 -0
  87. package/dist/collection/components/tag-popper/tag-popper.js +124 -0
  88. package/dist/collection/components/tag-popper/tag-popper.js.map +1 -0
  89. package/dist/collection/global/i18n.js +13 -0
  90. package/dist/collection/global/i18n.js.map +1 -0
  91. package/dist/collection/index.js +11 -0
  92. package/dist/collection/index.js.map +1 -0
  93. package/dist/collection/postcss/property-to-variable.js +54 -0
  94. package/dist/collection/store/store.js +25 -0
  95. package/dist/collection/store/store.js.map +1 -0
  96. package/dist/collection/utils/axios.js +11 -0
  97. package/dist/collection/utils/axios.js.map +1 -0
  98. package/dist/collection/utils/constant.js +5 -0
  99. package/dist/collection/utils/constant.js.map +1 -0
  100. package/dist/collection/utils/dayjs.js +175 -0
  101. package/dist/collection/utils/dayjs.js.map +1 -0
  102. package/dist/collection/utils/socket.js +59 -0
  103. package/dist/collection/utils/socket.js.map +1 -0
  104. package/dist/collection/utils/utils.js +8 -0
  105. package/dist/collection/utils/utils.js.map +1 -0
  106. package/dist/components/autocomplete-select.d.ts +11 -0
  107. package/dist/components/autocomplete-select.js +9 -0
  108. package/dist/components/autocomplete-select.js.map +1 -0
  109. package/dist/components/channel-box.d.ts +11 -0
  110. package/dist/components/channel-box.js +9 -0
  111. package/dist/components/channel-box.js.map +1 -0
  112. package/dist/components/chat-app.d.ts +11 -0
  113. package/dist/components/chat-app.js +226 -0
  114. package/dist/components/chat-app.js.map +1 -0
  115. package/dist/components/chat-header.d.ts +11 -0
  116. package/dist/components/chat-header.js +9 -0
  117. package/dist/components/chat-header.js.map +1 -0
  118. package/dist/components/chat-input.d.ts +11 -0
  119. package/dist/components/chat-input.js +9 -0
  120. package/dist/components/chat-input.js.map +1 -0
  121. package/dist/components/dialog-editor.d.ts +11 -0
  122. package/dist/components/dialog-editor.js +9 -0
  123. package/dist/components/dialog-editor.js.map +1 -0
  124. package/dist/components/dialog-preview-media.d.ts +11 -0
  125. package/dist/components/dialog-preview-media.js +9 -0
  126. package/dist/components/dialog-preview-media.js.map +1 -0
  127. package/dist/components/dialog-search.d.ts +11 -0
  128. package/dist/components/dialog-search.js +9 -0
  129. package/dist/components/dialog-search.js.map +1 -0
  130. package/dist/components/index.d.ts +33 -0
  131. package/dist/components/index.js +2199 -0
  132. package/dist/components/index.js.map +1 -0
  133. package/dist/components/menu-list.d.ts +11 -0
  134. package/dist/components/menu-list.js +9 -0
  135. package/dist/components/menu-list.js.map +1 -0
  136. package/dist/components/message-box.d.ts +11 -0
  137. package/dist/components/message-box.js +9 -0
  138. package/dist/components/message-box.js.map +1 -0
  139. package/dist/components/message-content.d.ts +11 -0
  140. package/dist/components/message-content.js +9 -0
  141. package/dist/components/message-content.js.map +1 -0
  142. package/dist/components/message-item.d.ts +11 -0
  143. package/dist/components/message-item.js +9 -0
  144. package/dist/components/message-item.js.map +1 -0
  145. package/dist/components/p-6xqe-pLQ.js +1509 -0
  146. package/dist/components/p-6xqe-pLQ.js.map +1 -0
  147. package/dist/components/p-B8jcXcXq.js +10 -0
  148. package/dist/components/p-B8jcXcXq.js.map +1 -0
  149. package/dist/components/p-BAxNTWPI.js +32 -0
  150. package/dist/components/p-BAxNTWPI.js.map +1 -0
  151. package/dist/components/p-BZ4TvILZ.js +24 -0
  152. package/dist/components/p-BZ4TvILZ.js.map +1 -0
  153. package/dist/components/p-BZ_KFdA7.js +99 -0
  154. package/dist/components/p-BZ_KFdA7.js.map +1 -0
  155. package/dist/components/p-BaEi6GXz.js +27448 -0
  156. package/dist/components/p-BaEi6GXz.js.map +1 -0
  157. package/dist/components/p-BcC6bTqM.js +104 -0
  158. package/dist/components/p-BcC6bTqM.js.map +1 -0
  159. package/dist/components/p-Beycm8NN.js +3027 -0
  160. package/dist/components/p-Beycm8NN.js.map +1 -0
  161. package/dist/components/p-Bf89k6bd.js +3932 -0
  162. package/dist/components/p-Bf89k6bd.js.map +1 -0
  163. package/dist/components/p-BtkLsQfZ.js +17 -0
  164. package/dist/components/p-BtkLsQfZ.js.map +1 -0
  165. package/dist/components/p-C9EokLnL.js +102 -0
  166. package/dist/components/p-C9EokLnL.js.map +1 -0
  167. package/dist/components/p-CHaS9akB.js +33 -0
  168. package/dist/components/p-CHaS9akB.js.map +1 -0
  169. package/dist/components/p-CQZRPVaY.js +1715 -0
  170. package/dist/components/p-CQZRPVaY.js.map +1 -0
  171. package/dist/components/p-CS8eN-II.js +60 -0
  172. package/dist/components/p-CS8eN-II.js.map +1 -0
  173. package/dist/components/p-CUmphmPD.js +48 -0
  174. package/dist/components/p-CUmphmPD.js.map +1 -0
  175. package/dist/components/p-ChdOg2lI.js +90 -0
  176. package/dist/components/p-ChdOg2lI.js.map +1 -0
  177. package/dist/components/p-CkqA8kPB.js +210 -0
  178. package/dist/components/p-CkqA8kPB.js.map +1 -0
  179. package/dist/components/p-CmWIRJ5t.js +91 -0
  180. package/dist/components/p-CmWIRJ5t.js.map +1 -0
  181. package/dist/components/p-CzESq-LE.js +88 -0
  182. package/dist/components/p-CzESq-LE.js.map +1 -0
  183. package/dist/components/p-DD3M-jE2.js +87 -0
  184. package/dist/components/p-DD3M-jE2.js.map +1 -0
  185. package/dist/components/p-DFjLV5Vy.js +71 -0
  186. package/dist/components/p-DFjLV5Vy.js.map +1 -0
  187. package/dist/components/p-DYI8iHdE.js +279 -0
  188. package/dist/components/p-DYI8iHdE.js.map +1 -0
  189. package/dist/components/p-DfRY75vS.js +16 -0
  190. package/dist/components/p-DfRY75vS.js.map +1 -0
  191. package/dist/components/p-DspEZ2pG.js +85 -0
  192. package/dist/components/p-DspEZ2pG.js.map +1 -0
  193. package/dist/components/p-LCZ_Vyoy.js +4084 -0
  194. package/dist/components/p-LCZ_Vyoy.js.map +1 -0
  195. package/dist/components/p-N-wb2wDd.js +236 -0
  196. package/dist/components/p-N-wb2wDd.js.map +1 -0
  197. package/dist/components/p-Urxy5c9-.js +154 -0
  198. package/dist/components/p-Urxy5c9-.js.map +1 -0
  199. package/dist/components/p-nz95LAGz.js +33 -0
  200. package/dist/components/p-nz95LAGz.js.map +1 -0
  201. package/dist/components/profile-history.d.ts +11 -0
  202. package/dist/components/profile-history.js +9 -0
  203. package/dist/components/profile-history.js.map +1 -0
  204. package/dist/components/profile-info.d.ts +11 -0
  205. package/dist/components/profile-info.js +9 -0
  206. package/dist/components/profile-info.js.map +1 -0
  207. package/dist/components/profile-media.d.ts +11 -0
  208. package/dist/components/profile-media.js +9 -0
  209. package/dist/components/profile-media.js.map +1 -0
  210. package/dist/components/profile-tabs.d.ts +11 -0
  211. package/dist/components/profile-tabs.js +9 -0
  212. package/dist/components/profile-tabs.js.map +1 -0
  213. package/dist/components/search-box.d.ts +11 -0
  214. package/dist/components/search-box.js +9 -0
  215. package/dist/components/search-box.js.map +1 -0
  216. package/dist/components/tag-popper.d.ts +11 -0
  217. package/dist/components/tag-popper.js +9 -0
  218. package/dist/components/tag-popper.js.map +1 -0
  219. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  220. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  221. package/dist/esm/autocomplete-select.channel-box.chat-app.chat-header.chat-input.dialog-editor.dialog-preview-media.dialog-search.menu-list.message-box.message-content.message-item.profile-history.profile-info.profile-media.profile-tabs.search-box.tag-popper.entry.js.map +1 -0
  222. package/dist/esm/autocomplete-select_18.entry.js +41414 -0
  223. package/dist/esm/autocomplete-select_18.entry.js.map +1 -0
  224. package/dist/esm/index-C0ey1F02.js +1917 -0
  225. package/dist/esm/index-C0ey1F02.js.map +1 -0
  226. package/dist/esm/index-DasOEma2.js +2197 -0
  227. package/dist/esm/index-DasOEma2.js.map +1 -0
  228. package/dist/esm/index.js +4 -0
  229. package/dist/esm/index.js.map +1 -0
  230. package/dist/esm/loader.js +14 -0
  231. package/dist/esm/loader.js.map +1 -0
  232. package/dist/esm/zignal-stencil-library.js +24 -0
  233. package/dist/esm/zignal-stencil-library.js.map +1 -0
  234. package/dist/index.cjs.js +1 -0
  235. package/dist/index.js +1 -0
  236. package/dist/types/api/index.d.ts +12 -0
  237. package/dist/types/api/index.type.d.ts +98 -0
  238. package/dist/types/components/autocomplete-select/autocomplete-select.d.ts +19 -0
  239. package/dist/types/components/channel-box/channel-box.d.ts +11 -0
  240. package/dist/types/components/chat-app/chat-app.d.ts +25 -0
  241. package/dist/types/components/chat-header/chat-header.d.ts +3 -0
  242. package/dist/types/components/chat-input/chat-input.d.ts +9 -0
  243. package/dist/types/components/dialog-editor/dialog-editor.d.ts +16 -0
  244. package/dist/types/components/dialog-preview-media/dialog-preview-media.d.ts +8 -0
  245. package/dist/types/components/dialog-search/dialog-search.d.ts +18 -0
  246. package/dist/types/components/internal-component/chat-item.d.ts +6 -0
  247. package/dist/types/components/internal-component/icon.d.ts +7 -0
  248. package/dist/types/components/internal-component/tag-or-status-item.d.ts +7 -0
  249. package/dist/types/components/internal-component/z-button.d.ts +15 -0
  250. package/dist/types/components/internal-component/z-icon-button.d.ts +13 -0
  251. package/dist/types/components/internal-component/z-input-area.d.ts +13 -0
  252. package/dist/types/components/internal-component/z-input.d.ts +13 -0
  253. package/dist/types/components/internal-component/z-select-input.d.ts +13 -0
  254. package/dist/types/components/menu-list/menu-list.d.ts +17 -0
  255. package/dist/types/components/message-box/message-box.d.ts +19 -0
  256. package/dist/types/components/message-content/message-content.d.ts +8 -0
  257. package/dist/types/components/message-item/message-item.d.ts +9 -0
  258. package/dist/types/components/profile-history/profile-history.d.ts +3 -0
  259. package/dist/types/components/profile-info/profile-info.d.ts +29 -0
  260. package/dist/types/components/profile-media/profile-media.d.ts +3 -0
  261. package/dist/types/components/profile-tabs/profile-tabs.d.ts +8 -0
  262. package/dist/types/components/search-box/search-box.d.ts +10 -0
  263. package/dist/types/components/tag-popper/tag-popper.d.ts +13 -0
  264. package/dist/types/components.d.ts +498 -0
  265. package/dist/types/global/i18n.d.ts +2 -0
  266. package/dist/types/index.d.ts +11 -0
  267. package/dist/types/stencil-public-runtime.d.ts +1709 -0
  268. package/dist/types/store/store.d.ts +16 -0
  269. package/dist/types/store/store.type.d.ts +132 -0
  270. package/dist/types/utils/axios.d.ts +1 -0
  271. package/dist/types/utils/constant.d.ts +1 -0
  272. package/dist/types/utils/dayjs.d.ts +31 -0
  273. package/dist/types/utils/socket.d.ts +6 -0
  274. package/dist/types/utils/utils.d.ts +2 -0
  275. package/dist/zignal-stencil-library/index.esm.js +2 -0
  276. package/dist/zignal-stencil-library/index.esm.js.map +1 -0
  277. package/dist/zignal-stencil-library/loader.esm.js.map +1 -0
  278. package/dist/zignal-stencil-library/p-C0ey1F02.js +3 -0
  279. package/dist/zignal-stencil-library/p-C0ey1F02.js.map +1 -0
  280. package/dist/zignal-stencil-library/p-DQuL1Twl.js +2 -0
  281. package/dist/zignal-stencil-library/p-DQuL1Twl.js.map +1 -0
  282. package/dist/zignal-stencil-library/p-DasOEma2.js +2 -0
  283. package/dist/zignal-stencil-library/p-DasOEma2.js.map +1 -0
  284. package/dist/zignal-stencil-library/p-ee2ebe92.entry.js +9777 -0
  285. package/dist/zignal-stencil-library/p-ee2ebe92.entry.js.map +1 -0
  286. package/dist/zignal-stencil-library/zignal-stencil-library.css +1 -0
  287. package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +2 -0
  288. package/dist/zignal-stencil-library/zignal-stencil-library.esm.js.map +1 -0
  289. package/loader/cdn.js +1 -0
  290. package/loader/index.cjs.js +1 -0
  291. package/loader/index.d.ts +24 -0
  292. package/loader/index.es2017.js +1 -0
  293. package/loader/index.js +2 -0
  294. package/package.json +73 -0
@@ -0,0 +1,104 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './p-CQZRPVaY.js';
2
+ import { Z as ZIconButton } from './p-BaEi6GXz.js';
3
+ import { c as configStore, s as selectedChatStore, b as selectedMessageToReplyStore } from './p-N-wb2wDd.js';
4
+ import { s as sendMessage } from './p-Bf89k6bd.js';
5
+
6
+ const chatInputCss = "@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-drop-shadow-alpha:100%;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-space-y-reverse:0}}}@layer theme{:host,:root{--container-lg:32rem;--font-weight-bold:700;--container-xl:36rem;--radius-md:.375rem;--color-red-500:oklch(63.7% .237 25.331);--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-600:oklch(44.6% .03 256.802);--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-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-yellow-300:oklch(90.5% .182 98.111);--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-pink-100:oklch(94.8% .028 342.258);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--default-font-family:\"Kanit\",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-primary-dark:#b50f30;--color-secondary-dark:#fff;--color-background-dark:#23292d}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;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}:-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;@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-1{top:calc(var(--spacing)*1)}.right-1{right:calc(var(--spacing)*1)}.z-\\[99\\]{z-index:99}.flex{display:flex}.w-full{width:100%}.min-w-\\[280px\\]{min-width:280px}.flex-1{flex:1}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.text-\\[10px\\]{font-size:10px}.text-\\[gray\\]{color:gray}.opacity-10{opacity:.1}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.scroll-container::-webkit-scrollbar{background:0 0;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0000001a}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.z-text-light{color:var(--color-black)}.z-text-dark{color:var(--color-white)}.z-text-primary-light{color:var(--color-primary)}.z-text-primary-dark{color:var(--color-primary-dark)}.z-text-gray-light{color:var(--color-gray-500)}.z-text-gray-dark{color:var(--color-gray-300)}.z-border-light{border-color:var(--color-black)}.z-border-dark{border-color:var(--color-white)}.z-border-primary-light{border-color:var(--color-primary)}.z-border-primary-dark{border-color:var(--color-primary-dark)}.z-border-divider-light{border-color:var(--color-gray-400)}.z-border-divider-dark{border-color:var(--color-gray-300)}.z-search-input-background-light{background-color:var(--color-gray-200)}.z-search-input-background-dark{background-color:var(--color-gray-500)}.z-chat-input-background-light{background-color:var(--color-white)}.z-chat-input-background-dark{background-color:var(--color-gray-700)}.z-placeholder-light::placeholder{color:var(--color-gray-500)}.z-placeholder-dark::placeholder{color:var(--color-gray-200)}.z-background-light{background-color:var(--color-background)}.z-background-dark{background-color:var(--color-background-dark)}.z-paper-light{background-color:var(--color-gray-100)}.z-paper-dark{background-color:var(--color-gray-700)}.z-width-100{width:100%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{.my-auto{margin-block:auto}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.h-4{height:calc(var(--spacing)*4)}.h-\\[60px\\]{height:60px}.w-4{width:calc(var(--spacing)*4)}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}:where(.space-x-1>: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))}.rounded-full{border-radius:3.40282e+38px}.object-cover{object-fit:cover}.px-2{padding-inline:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-auto{margin-bottom:auto}.ml-2{margin-left:calc(var(--spacing)*2)}.border-none{--tw-border-style:none;border-style:none}.bg-pink-100{background-color:var(--color-pink-100)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.shadow-inner{--tw-shadow:inset 0 2px 4px 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)}.ring-primary{--tw-ring-color:var(--color-primary)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.max-h-\\[80vh\\]{max-height:80vh}.w-xl{width:var(--container-xl)}.gap-2{gap:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@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))}.overflow-auto{overflow:auto}.rounded-lg{border-radius:var(--radius-lg)}.p-6{padding:calc(var(--spacing)*6)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.top-0\\.5{top:calc(var(--spacing)*.5)}.right-0\\.5{right:calc(var(--spacing)*.5)}.m-auto{margin:auto}.w-lg{width:var(--container-lg)}.justify-center{justify-content:center}.object-contain{object-fit:contain}.pt-8{padding-top:calc(var(--spacing)*8)}.mx-auto{margin-inline:auto}.mb-10{margin-bottom:calc(var(--spacing)*10)}.grid{display:grid}.h-18{height:calc(var(--spacing)*18)}.w-18{width:calc(var(--spacing)*18)}.place-content-center{place-content:center}.p-4{padding:calc(var(--spacing)*4)}.text-center{text-align:center}.text-gray-400{color:var(--color-gray-400)}.text-primary{color:var(--color-primary)}.right-0{right:calc(var(--spacing)*0)}.bottom-\\[40px\\]{bottom:40px}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.mt-2{margin-top:calc(var(--spacing)*2)}.w-32{width:calc(var(--spacing)*32)}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.fixed{position:fixed}.inset-0{inset:calc(var(--spacing)*0)}.size-42{height:calc(var(--spacing)*42);width:calc(var(--spacing)*42)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-\\[0\\]{border-bottom-right-radius:0}.rounded-bl-\\[0\\]{border-bottom-left-radius:0}.bg-black\\/40{background-color:#0006}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in srgb,#00040%,transparent);background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-primary{background-color:var(--color-primary)}.p-2{padding:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.text-white{color:var(--color-white)}.shadow-sm{--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)}.right-full{right:100%}.-bottom-2{bottom:calc(var(--spacing)*-2)}.left-full{left:100%}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-\\[-0\\.75rem\\]{margin-bottom:-.75rem}.h-6{height:calc(var(--spacing)*6)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.bg-yellow-300{background-color:var(--color-yellow-300)}.text-left{text-align:left}.text-right{text-align:right}.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}.mr-1{margin-right:calc(var(--spacing)*1)}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.min-h-20{min-height:calc(var(--spacing)*20)}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-baseline-last{align-items:last baseline}.gap-y-1{row-gap:calc(var(--spacing)*1)}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.pt-0{padding-top:calc(var(--spacing)*0)}.whitespace-pre-line{white-space:pre-line}.capitalize{text-transform:capitalize}.top-1\\/2{top:50%}.right-1\\.25{right:calc(var(--spacing)*1.25)}.max-w-xl{max-width:var(--container-xl)}.-translate-y-1\\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.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)}.mt-auto{margin-top:auto}.hidden{display:none}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{} /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*8*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*8*var(--tw-space-x-reverse))}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-transparent{border-color:#0000}.py-4{padding-block:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.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,)}.w-52{width:calc(var(--spacing)*52)}.top-0{top:calc(var(--spacing)*0)}.col-span-4{grid-column:span 4/span 4}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.mr-0{margin-right:calc(var(--spacing)*0)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.h-0{height:calc(var(--spacing)*0)}.h-5{height:calc(var(--spacing)*5)}.w-0{width:calc(var(--spacing)*0)}.w-5{width:calc(var(--spacing)*5)}.cursor-not-allowed{cursor:not-allowed}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.items-start{align-items:flex-start}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-4>: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))}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-\\[14px\\]{border-top-style:var(--tw-border-style);border-top-width:14px}.border-l-\\[14px\\]{border-left-style:var(--tw-border-style);border-left-width:14px}.border-primary{border-color:var(--color-primary)}.border-t-red-500{border-top-color:var(--color-red-500)}.border-l-transparent{border-left-color:#0000}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.text-nowrap{text-wrap:nowrap}.text-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.opacity-50{opacity:.5}.transition{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,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.focus\\:border-primary:focus{border-color:var(--color-primary)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}@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-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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-y-reverse{syntax:\"*\";inherits:false;initial-value:0}:host{display:block}@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}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.hover\\:opacity-100:hover{opacity:1}.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,)}}@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)}}";
7
+
8
+ const ChatInput = /*@__PURE__*/ proxyCustomElement(class ChatInput extends H {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.send = createEvent(this, "send");
13
+ }
14
+ value = '';
15
+ send;
16
+ inputEl;
17
+ onFocusRequested() {
18
+ this.inputEl?.focus();
19
+ }
20
+ handleInput = (e) => {
21
+ const target = e.target;
22
+ this.value = target.value;
23
+ };
24
+ render() {
25
+ const theme = configStore.get('theme');
26
+ const selectedChat = selectedChatStore.get('selectedChat');
27
+ const replyMessage = selectedMessageToReplyStore.get('selectedMessageToReply');
28
+ const handleSend = async () => {
29
+ if (this.value.trim() !== '') {
30
+ this.send.emit(this.value.trim());
31
+ try {
32
+ // const { messages } =
33
+ await sendMessage({
34
+ sessionId: selectedChat.id,
35
+ messages: [{
36
+ type: 'text',
37
+ text: this.value.trim(),
38
+ replyMessageId: replyMessage === null ? undefined : replyMessage.id
39
+ }]
40
+ });
41
+ //Get new message from socket
42
+ // messagesStore.set('messages', [
43
+ // ...messagesStore.get('messages'),
44
+ // ...messages.map(({
45
+ // id,
46
+ // senderType,
47
+ // senderId,
48
+ // type,
49
+ // text,
50
+ // replyMessage,
51
+ // createdAt,
52
+ // updatedAt
53
+ // }) => ({
54
+ // id,
55
+ // senderType,
56
+ // senderId,
57
+ // type,
58
+ // text,
59
+ // replyMessage,
60
+ // readers: [],
61
+ // createdAt,
62
+ // updatedAt
63
+ // }))
64
+ // ]);
65
+ this.value = '';
66
+ selectedMessageToReplyStore.reset();
67
+ }
68
+ catch (error) {
69
+ console.error('Failed to send Message', error);
70
+ }
71
+ }
72
+ };
73
+ const handleRemoveReply = () => {
74
+ selectedMessageToReplyStore.reset();
75
+ };
76
+ return (h(Host, { key: 'b57de40602a48d71d61f2697625e19e4646cf562' }, h("slot", { key: 'd67c7e84783dbbeaa4506bbb15fe1ee002048fa4' }, h("div", { key: '09c6db581032e2d69cbaaff7ca0da39b05561ba4', class: "w-full bg-pink-100 px-2 py-3 shadow-inner" }, replyMessage !== null &&
77
+ h("div", { key: '593580318e6381d8cb0f77c1f0d172eb00b12d2f', class: "flex items-center justify-between space-x-1 mb-2 ml-2" }, h("div", { key: '058acdb89f2ba2bf31891141898917b7346ab5ed', class: "text-black" }, "Replying to ", replyMessage.senderType === 'admin' ? 'your self' : selectedChat.user.name, h("div", { key: '1d8703dda184a0d6aba599395b18b6ff66e65cdf', class: "text-xs text-gray-500" }, replyMessage.text)), h("div", { key: '1c983a9bdc13c7a8385024518fe3273959b7c995', class: "mb-auto" }, h(ZIconButton, { key: '9b2f15ab4490620306c97873e2e243db0008ebb2', variant: 'text', iconName: "X", onClick: handleRemoveReply }))), h("div", { key: '936453a481c8362a1fd81ed06415e33dcfd6fc78', class: "flex items-center space-x-1" }, h(ZIconButton, { key: '401fddc9377d6954b0147eace9a2831d61d28090', variant: 'text', iconName: "Paperclip" }), h(ZIconButton, { key: 'f8e8d56aef670edcca3f991d5a6241b33cfd7e1d', variant: 'text', iconName: "Camera" }), h(ZIconButton, { key: 'd8388db413cafac1776bbca5d37b260c36e6e5a5', variant: 'text', iconName: "Folder" }), h("input", { key: '0ede3f3c5307b2e1475c153ff055ffe6303ea9b1', autoFocus: true, id: "message-input", ref: el => this.inputEl = el, class: `flex-1 px-4 py-2 rounded-full border-none focus:outline-none text-sm ring-primary z-chat-input-background-${theme} z-placeholder-${theme} z-text-${theme}`, placeholder: "Message", value: this.value, onInput: this.handleInput, onKeyDown: (e) => {
78
+ if (e.key === 'Enter')
79
+ handleSend();
80
+ } }), h(ZIconButton, { key: 'f5eb11389a8e16501c9f6d31dc591239540c102f', variant: 'text', iconName: "Send", onClick: handleSend }))))));
81
+ }
82
+ static get style() { return chatInputCss; }
83
+ }, [260, "chat-input", {
84
+ "value": [32]
85
+ }, [[16, "focusRequested", "onFocusRequested"]]]);
86
+ function defineCustomElement() {
87
+ if (typeof customElements === "undefined") {
88
+ return;
89
+ }
90
+ const components = ["chat-input"];
91
+ components.forEach(tagName => { switch (tagName) {
92
+ case "chat-input":
93
+ if (!customElements.get(tagName)) {
94
+ customElements.define(tagName, ChatInput);
95
+ }
96
+ break;
97
+ } });
98
+ }
99
+ defineCustomElement();
100
+
101
+ export { ChatInput as C, defineCustomElement as d };
102
+ //# sourceMappingURL=p-BcC6bTqM.js.map
103
+
104
+ //# sourceMappingURL=p-BcC6bTqM.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-BcC6bTqM.js","mappings":"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","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/chat-input/chat-input.css?tag=chat-input","src/components/chat-input/chat-input.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, State, Event, h, EventEmitter, Listen } from '@stencil/core';\nimport { ZIconButton } from '../internal-component/z-icon-button';\nimport { configStore, selectedChatStore, selectedMessageToReplyStore } from '../../store/store';\nimport { sendMessage } from '../../api';\n\n@Component({\n tag: 'chat-input',\n styleUrl: 'chat-input.css',\n})\nexport class ChatInput {\n @State() value: string = '';\n\n @Event() send: EventEmitter<string>;\n\n private inputEl?: HTMLInputElement;\n\n @Listen('focusRequested', { target: 'body' })\n\n onFocusRequested() {\n this.inputEl?.focus();\n }\n\n handleInput = (e: Event) => {\n const target = e.target as HTMLInputElement;\n this.value = target.value;\n };\n\n render() {\n const theme = configStore.get('theme');\n const selectedChat = selectedChatStore.get('selectedChat');\n const replyMessage = selectedMessageToReplyStore.get('selectedMessageToReply');\n\n const handleSend = async () => {\n if (this.value.trim() !== '') {\n this.send.emit(this.value.trim());\n\n try {\n // const { messages } =\n await sendMessage({\n sessionId: selectedChat.id,\n messages: [{\n type: 'text',\n text: this.value.trim(),\n replyMessageId: replyMessage === null ? undefined : replyMessage.id\n }]\n });\n\n //Get new message from socket\n // messagesStore.set('messages', [\n // ...messagesStore.get('messages'),\n // ...messages.map(({\n // id,\n // senderType,\n // senderId,\n // type,\n // text,\n // replyMessage,\n // createdAt,\n // updatedAt\n // }) => ({\n // id,\n // senderType,\n // senderId,\n // type,\n // text,\n // replyMessage,\n // readers: [],\n // createdAt,\n // updatedAt\n // }))\n // ]);\n\n this.value = '';\n selectedMessageToReplyStore.reset();\n } catch (error) {\n console.error('Failed to send Message', error);\n }\n }\n };\n\n const handleRemoveReply = () => {\n selectedMessageToReplyStore.reset();\n }\n\n return (\n <Host>\n <slot>\n <div class=\"w-full bg-pink-100 px-2 py-3 shadow-inner\">\n {replyMessage !== null &&\n <div class=\"flex items-center justify-between space-x-1 mb-2 ml-2\">\n <div class=\"text-black\">\n Replying to {replyMessage.senderType === 'admin' ? 'your self' : selectedChat.user.name}\n <div class=\"text-xs text-gray-500\">{replyMessage.text}</div>\n </div>\n <div class=\"mb-auto\">\n <ZIconButton variant='text' iconName=\"X\" onClick={handleRemoveReply} />\n </div>\n </div>\n }\n <div class=\"flex items-center space-x-1\">\n <ZIconButton variant='text' iconName=\"Paperclip\" />\n <ZIconButton variant='text' iconName=\"Camera\" />\n <ZIconButton variant='text' iconName=\"Folder\" />\n <input\n autoFocus\n id=\"message-input\"\n ref={el => this.inputEl = el}\n class={`flex-1 px-4 py-2 rounded-full border-none focus:outline-none text-sm ring-primary z-chat-input-background-${theme} z-placeholder-${theme} z-text-${theme}`}\n placeholder=\"Message\"\n value={this.value}\n onInput={this.handleInput}\n onKeyDown={(e) => {\n if (e.key === 'Enter') handleSend();\n }}\n />\n <ZIconButton variant='text' iconName=\"Send\" onClick={handleSend} />\n </div>\n </div>\n </slot>\n </Host>\n );\n }\n}\n"],"version":3}