@softistx/material 3.248.0 → 3.250.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 (228) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +8 -4
  3. package/dist/adopt-styles-C3MfGnxE.js +20 -0
  4. package/dist/{async-slice-C5HfFq1M.js → async-slice-DdEr7vFx.js} +1 -1
  5. package/dist/{audio-player-2kKst8lH.js → audio-player-DMYszRGT.js} +3 -3
  6. package/dist/{audio-player-viewer-D9DsYBcy.js → audio-player-viewer-z13yCjo4.js} +2 -2
  7. package/dist/{autocomplete-JuRCjl48.js → autocomplete-Bgf_AJ6U.js} +11 -11
  8. package/dist/{avatar-CvvdaBu4.js → avatar-WvTropuJ.js} +1 -1
  9. package/dist/blank-placeholder-DZIFJ0DG.js +17 -0
  10. package/dist/{breadcrumb-DacRqg91.js → breadcrumb-DYa6pVsq.js} +5 -5
  11. package/dist/{button-CpUMPIdk.js → button-RsWgka2v.js} +1 -1
  12. package/dist/{calculator-BYgFgWHL.js → calculator-DPHCuAZy.js} +11 -11
  13. package/dist/calculator-field.js +6 -6
  14. package/dist/{calculator-segment-DCHWZy6b.js → calculator-segment-Ckn9Fua9.js} +1 -1
  15. package/dist/calculator.js +1 -1
  16. package/dist/canvas-BShNj4yp.js +144 -0
  17. package/dist/capture-outputs-qcYUPW6K.js +174 -0
  18. package/dist/capture-toolbar.css +2 -0
  19. package/dist/capture-toolbar.js +858 -0
  20. package/dist/capture.js +53 -139
  21. package/dist/charts.js +3 -3
  22. package/dist/{chip-CjJPmAYO.js → chip-tyDM0lpO.js} +2 -2
  23. package/dist/{code-editor-nNcxtslA.js → code-editor-gHHXEwF-.js} +6 -6
  24. package/dist/code-editor.js +6 -6
  25. package/dist/{code-file-viewer-CcESl49v.js → code-file-viewer-CYQcskvt.js} +4 -4
  26. package/dist/{code-language-items-CW8_Si05.js → code-language-items-DDFuDf_E.js} +2 -2
  27. package/dist/{components-BdMaUeOm.js → components-DUvKQIBi.js} +16714 -20832
  28. package/dist/components.js +83 -79
  29. package/dist/{confirm-dialog-B2eonW2X.js → confirm-dialog-IHvPA3O2.js} +4 -4
  30. package/dist/{conversion-variant-DZm_xgUK.js → conversion-variant-MWTjnFnG.js} +5 -5
  31. package/dist/{currency-field-UIkYAlvP.js → currency-field-Bd9od1Ee.js} +5 -5
  32. package/dist/{detail-panel-header-CL2_tUG0.js → detail-panel-header-D2a63Sk3.js} +1 -1
  33. package/dist/{details-content-CPzj3vUr.js → details-content-CnN_ukTA.js} +6 -6
  34. package/dist/{details-header-band-D-CyB_Xx.js → details-header-band-wcgmC7qC.js} +5 -5
  35. package/dist/{details-host-BvYgFIWx.js → details-host-DKEaGH4P.js} +1 -1
  36. package/dist/{details-sheet-D4PTV_jR.js → details-sheet-CtNM4oDU.js} +2 -2
  37. package/dist/{details-shell-D4XoPRBu.js → details-shell-DZ80h6mN.js} +1 -1
  38. package/dist/{dialog-CleLsHkZ.js → dialog-DwUxG2-o.js} +1 -1
  39. package/dist/{dialog-app-bar-CLC990e6.js → dialog-app-bar-BsJ4UwKb.js} +2 -2
  40. package/dist/dist-Cb17ixQs.js +16 -0
  41. package/dist/dist-CyqFzDZ6.js +11 -0
  42. package/dist/dnd.js +1 -1
  43. package/dist/draw.js +1 -1
  44. package/dist/{drop-overlay-BTkVfscF.js → drop-overlay-B26hx0-T.js} +2 -2
  45. package/dist/{dropdown-menu-BoJC2DEH.js → dropdown-menu-D-PRbHaP.js} +1 -1
  46. package/dist/{editable-section-CTRGfbLJ.js → editable-section-DPmF1flG.js} +3 -3
  47. package/dist/editor.js +14 -14
  48. package/dist/embed-chunks/{avatar-GlGqPU7B.js → avatar-CSDtFCum.js} +1 -1
  49. package/dist/embed-chunks/{dist-BrYZYfsJ.js → dist-BVPJSDov.js} +2 -2
  50. package/dist/embed-chunks/{emoji-picker-BSYBi_C8.js → emoji-picker-CrIXB9pF.js} +23 -23
  51. package/dist/embed-chunks/{mention-list-NW43QcRq.js → mention-list-9hwOYNND.js} +3 -3
  52. package/dist/embed-chunks/{nxgt-theme-provider-B1aeqDja.js → nxgt-theme-provider-Cjl7Eb8v.js} +703 -592
  53. package/dist/embed-chunks/switch-control-BrwJRN_V.js +207 -0
  54. package/dist/embed-chunks/{tabs-root-CY-uLp1C.js → tabs-root-BvPc1aaV.js} +6 -6
  55. package/dist/embed-chunks/{use-shape-morph-NrJQMv7i.js → use-shape-morph-D1MOoQ4T.js} +110 -2
  56. package/dist/embed-chunks/{useLatest-B57qw3XH.js → useLatest-CbcU5ozz.js} +323 -323
  57. package/dist/embed.css +2 -2
  58. package/dist/embed.js +1280 -741
  59. package/dist/{emoji-picker-DZbTd3Fr.js → emoji-picker-DabgsEVQ.js} +7 -7
  60. package/dist/{empty-state-DBSJDLKL.js → empty-state-BylD7RYH.js} +1 -1
  61. package/dist/{error-state-kauz4If4.js → error-state-BTe_NzTC.js} +2 -2
  62. package/dist/fab-DUnGwNE7.js +41 -0
  63. package/dist/fab-dock-By2pLVh7.js +49 -0
  64. package/dist/{feature-popup-CcXMGFES.js → feature-popup-CW7VS2fx.js} +1 -1
  65. package/dist/{blank-placeholder-DeDn5Xor.js → field-box-BXN-uyrv.js} +1 -16
  66. package/dist/{field-group-BpV74Ttu.js → field-group-B2Ozd5Jn.js} +1 -1
  67. package/dist/{file-dialogs-CbdvmY__.js → file-dialogs-CgEXaCev.js} +7 -7
  68. package/dist/{file-manager-shell-DLaJ5Z_L.js → file-manager-shell-Tqduf5lh.js} +21 -21
  69. package/dist/{file-preview-host-RhZvGGqC.js → file-preview-host-CM4pV3ZD.js} +2367 -2384
  70. package/dist/{file-viewer-body-DM3RkXGn.js → file-viewer-body-DrWFmnp4.js} +3 -3
  71. package/dist/{file-viewer-dialog-impl-ei5EYj8k.js → file-viewer-dialog-impl-DZpuZZ7x.js} +2 -2
  72. package/dist/files-drop.js +1 -1
  73. package/dist/files-picker.js +8 -8
  74. package/dist/files.js +3 -3
  75. package/dist/{financial-variant-BNdOqzA5.js → financial-variant-ljdP0JL4.js} +5 -5
  76. package/dist/{flow-diagram-BBB6r8--.js → flow-diagram-DwUnyl0u.js} +1 -1
  77. package/dist/{gallery-CIIJHpmj.js → gallery-DfN2KE4Y.js} +11 -11
  78. package/dist/{gallery-file-viewer-DkshswFr.js → gallery-file-viewer-BfFWfLIF.js} +3 -3
  79. package/dist/{gl-markers-abqcNuYT.js → gl-markers-CBNFeWIk.js} +3 -3
  80. package/dist/{hooks-D6lOSXA5.js → hooks-DiAhgchz.js} +3 -3
  81. package/dist/hooks.js +3 -3
  82. package/dist/i18n.js +3 -3
  83. package/dist/{icon-button-GKYj7uC4.js → icon-button-D-gi4Plg.js} +1 -1
  84. package/dist/image-editor-mmhbsqs-.js +4423 -0
  85. package/dist/image-editor.css +1 -1
  86. package/dist/image-editor.js +1157 -996
  87. package/dist/image-markup-editor-D-QkZWKf.js +24 -0
  88. package/dist/input-CWf3Apid.js +18 -0
  89. package/dist/input-box-moFuoMt0.js +15 -0
  90. package/dist/{input-group-CKO68Pyi.js → input-group-Bb8sAFRF.js} +3 -2
  91. package/dist/{item-details-l_-rk3Hj.js → item-details-BWdHMfsS.js} +7 -7
  92. package/dist/keypad.js +2 -2
  93. package/dist/lib/capture/engine/canvas.d.ts +17 -0
  94. package/dist/lib/capture/engine/capture.d.ts +19 -0
  95. package/dist/lib/capture/engine/filters.d.ts +27 -0
  96. package/dist/lib/capture/engine/rect.d.ts +26 -0
  97. package/dist/lib/capture/engine/types.d.ts +66 -0
  98. package/dist/lib/capture/index.d.ts +16 -0
  99. package/dist/lib/capture/modes/capture-mode.d.ts +24 -0
  100. package/dist/lib/capture/modes/countdown.d.ts +16 -0
  101. package/dist/lib/capture/modes/full-page.d.ts +14 -0
  102. package/dist/lib/capture/modes/pick-element.d.ts +22 -0
  103. package/dist/lib/capture/modes/scroller.d.ts +13 -0
  104. package/dist/lib/capture/modes/visible.d.ts +3 -0
  105. package/dist/lib/capture-toolbar/index.d.ts +25 -0
  106. package/dist/lib/capture-toolbar/lazy-capture-outputs.d.ts +2 -0
  107. package/dist/lib/capture-toolbar/outputs-encode.d.ts +25 -0
  108. package/dist/lib/capture-toolbar/outputs.d.ts +38 -0
  109. package/dist/lib/capture-toolbar/partials/capture-editor.d.ts +11 -0
  110. package/dist/lib/capture-toolbar/partials/capture-outputs.d.ts +16 -0
  111. package/dist/lib/capture-toolbar/region-overlay.d.ts +15 -0
  112. package/dist/lib/capture-toolbar/screen-capture-toolbar.d.ts +31 -0
  113. package/dist/lib/capture-toolbar/types.d.ts +117 -0
  114. package/dist/lib/capture-toolbar/use-screen-capture.d.ts +16 -0
  115. package/dist/lib/components/ui/layout/account-frame/account-frame.d.ts +2 -2
  116. package/dist/lib/components/ui/media/attachment-list/attachment-list.d.ts +2 -2
  117. package/dist/lib/components/ui/media/image-editor/image-markup-editor.d.ts +11 -3
  118. package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +7 -0
  119. package/dist/lib/components/ui/media/image-editor/types-session.d.ts +1 -1
  120. package/dist/lib/components/ui/media/image-editor/types.d.ts +8 -0
  121. package/dist/lib/embed/index.d.ts +6 -1
  122. package/dist/lib/i18n/resources/resources.d.ts +108 -0
  123. package/dist/lib/i18n/translator.d.ts +1 -1
  124. package/dist/lib/image-editor/index.d.ts +1 -1
  125. package/dist/lib.js +38 -56
  126. package/dist/{list-sheet-D22J9I-K.js → list-sheet-CejfrKJr.js} +1 -1
  127. package/dist/{loading-indicator-sDzxZg8f.js → loading-indicator-BBjOF25N.js} +1 -1
  128. package/dist/main.js +103 -98
  129. package/dist/{map-draw-DfbfT0eJ.js → map-draw-DyRy9SSV.js} +2 -2
  130. package/dist/map-draw.js +5 -5
  131. package/dist/map-static.js +1 -1
  132. package/dist/{map-view-DAx2zvV-.js → map-view-YfuYD3zS.js} +9 -9
  133. package/dist/map-zone-events.js +1 -1
  134. package/dist/map-zone-field.js +7 -7
  135. package/dist/map.js +10 -10
  136. package/dist/{marker-button-D7hEvEZD.js → marker-button-CXBaToHp.js} +1 -1
  137. package/dist/{marker-count-image-CWS3G-k8.js → marker-count-image-DHuzSev9.js} +1 -1
  138. package/dist/material.css +1 -1
  139. package/dist/{measure-manual-Bfvu8B_R.js → measure-manual-CcESmV1d.js} +3 -3
  140. package/dist/{measurement-B-OeWv7j.js → measurement-D2or6yM_.js} +1 -1
  141. package/dist/{media-player-DGXmWK7W.js → media-player-qW9RXFuO.js} +451 -567
  142. package/dist/{media-player-viewer-C3vXYcd8.js → media-player-viewer-DozPiF6T.js} +2 -2
  143. package/dist/{media-surface-BySonDjv.js → media-surface-BJsdNynm.js} +6 -6
  144. package/dist/{mention-list-BpoZHwO6.js → mention-list-z1wnlJgs.js} +2 -2
  145. package/dist/{native-select-Dg4bc7aC.js → native-select-BnDOVnER.js} +1 -1
  146. package/dist/{nxgt-theme-Ob-uFqU_.js → nxgt-theme-EYZ5aFHi.js} +6 -15
  147. package/dist/nxgt-theme-provider-BPXd3h82.js +40 -0
  148. package/dist/outputs-DF-aVqUO.js +81 -0
  149. package/dist/passkey.js +1 -1
  150. package/dist/{pdf-form-filler-DgH52W2Q.js → pdf-form-filler-Ct4eexhZ.js} +34 -34
  151. package/dist/pdf-form.js +2 -2
  152. package/dist/{pdf-reader-Bilz5foK.js → pdf-reader-khpMMEjU.js} +16 -16
  153. package/dist/{pdf-reader-viewer-DwQP2IpV.js → pdf-reader-viewer-B3_TdFOn.js} +2 -2
  154. package/dist/pdf-reader.js +2 -2
  155. package/dist/{percent-field-Ldc7K2wC.js → percent-field-Bu-PmCNR.js} +2 -2
  156. package/dist/{picker-surface-DZQbBgvA.js → picker-surface-THexE1OU.js} +3 -3
  157. package/dist/{popover-DwsaHFrK.js → popover-osl5duoA.js} +1 -1
  158. package/dist/portal-container-provider-fZFUk-ZB.js +11 -0
  159. package/dist/{pos-types-CKDG7pZA.js → pos-types-BPPae99i.js} +1 -1
  160. package/dist/{pos-variant-9nhz-ZzW.js → pos-variant-D6bDUqwV.js} +4 -4
  161. package/dist/print.js +1 -1
  162. package/dist/{programmer-variant-BzwfeMGC.js → programmer-variant-CDlFE24o.js} +2 -2
  163. package/dist/{progress-BBfp7sMi.js → progress-DjHnanxA.js} +2 -2
  164. package/dist/{progress-linear-BOJbHnzd.js → progress-linear-CTJ_U6kY.js} +1 -1
  165. package/dist/{public-I8nb8pCC.js → public-u9u2Osmx.js} +6 -6
  166. package/dist/{rendition-stage-A1nHXYrA.js → rendition-stage-BXjQpfKK.js} +2 -2
  167. package/dist/{rich-code-block-BJERY3N3.js → rich-code-block-DWSzyQRw.js} +5 -5
  168. package/dist/{scientific-variant-st2NBm1K.js → scientific-variant-DCgApH87.js} +2 -2
  169. package/dist/{scroll-area-B3XstZU2.js → scroll-area-BxKiT4Dn.js} +155 -164
  170. package/dist/{search-field-D3AOJr7s.js → search-field-Cgqa2bQf.js} +2 -2
  171. package/dist/{select-DhfzCkun.js → select-BGhRlBh4.js} +166 -179
  172. package/dist/{sheet-B8cO1T5K.js → sheet-BvNVroog.js} +1 -1
  173. package/dist/{signature-dialog-BNLMPgao.js → signature-dialog-x--_QWRB.js} +5 -5
  174. package/dist/signature.js +1 -1
  175. package/dist/{site-footer-cta-Cx7zsvkq.js → site-footer-cta-B3Kfqpep.js} +4 -4
  176. package/dist/{site-footer-link-Di8IMIw0.js → site-footer-link-SFHrO4ld.js} +1 -1
  177. package/dist/{size-slot-D1cKqb09.js → size-slot-Cb-W2Zm4.js} +1 -1
  178. package/dist/{sortable-provider-DrLnoygf.js → sortable-provider-KRScvvYx.js} +2 -2
  179. package/dist/{spinner-BpH9tE8R.js → spinner-DpB6XvJJ.js} +1 -1
  180. package/dist/switch-c_6OtXzW.js +125 -0
  181. package/dist/{tabs-root-BUnIfDah.js → tabs-root-C2n3K_Yv.js} +1 -1
  182. package/dist/{tags-form-BwqR4UVj.js → tags-form-BKB9fP03.js} +5 -5
  183. package/dist/{text-field-CFCHo07X.js → text-field-Dl7xTxZe.js} +2 -2
  184. package/dist/{textarea-B_iMDYgM.js → textarea-C3BGZELU.js} +1 -1
  185. package/dist/{textarea-field-DIOGxyUd.js → textarea-field-mqWhhbis.js} +2 -2
  186. package/dist/theme-picker.js +5 -4
  187. package/dist/{theme-toggle-CsBe64lm.js → theme-toggle-K-n5eq0T.js} +3 -3
  188. package/dist/theme-value-CD2nDrj_.js +12 -0
  189. package/dist/themes.js +15 -48
  190. package/dist/{toasts-McZnLRHP.js → toasts-DFLecXh0.js} +5 -5
  191. package/dist/{toggle-group-DKN1XLBS.js → toggle-group-DMDjNJWx.js} +1 -1
  192. package/dist/{toolbar-group-BmzGP_JO.js → toolbar-group-bttMdvg4.js} +1 -1
  193. package/dist/{toolbar-item-slot-BnqQLkVd.js → toolbar-item-slot-CBn3YjeE.js} +1 -1
  194. package/dist/{toolbar-items-C9uasXZ2.js → toolbar-items-zL5TYLf2.js} +4 -4
  195. package/dist/{toolbar-keep-focus-Vc5V-dX2.js → toolbar-keep-focus-C6bnzvpE.js} +2 -2
  196. package/dist/{tracked-layer-CjCXB_O6.js → tracked-layer-CYdLWRK-.js} +4 -4
  197. package/dist/{translate-material-C-qVvGLn.js → translate-material-DZNgWjYu.js} +1 -1
  198. package/dist/{translator-BrzI307E.js → translator-CrIFDzAz.js} +110 -2
  199. package/dist/{tree-DOAs456A.js → tree-CFXDccIe.js} +1 -1
  200. package/dist/{upload-host-ZpSSql8v.js → upload-host-DDktVohu.js} +9 -8
  201. package/dist/{use-calculator-keyboard-Ss25SRoM.js → use-calculator-keyboard-BWkYuIw5.js} +1 -1
  202. package/dist/{use-chat-composer-DopDN-zP.js → use-chat-composer-C1Qlnw2i.js} +20 -20
  203. package/dist/{use-file-meta-DyJX0JVs.js → use-file-meta-DcfQCh52.js} +1 -1
  204. package/dist/{use-heading-spy-CA2IAqMe.js → use-heading-spy-B9xEMHbZ.js} +2 -2
  205. package/dist/use-image-preview-BNq_RQm5.js +20 -0
  206. package/dist/{use-item-entries-CYbS5otl.js → use-item-entries-BKQHcWFx.js} +1 -1
  207. package/dist/{use-material-translation-eYySryw3.js → use-material-translation-ZEUtduro.js} +1 -1
  208. package/dist/{use-media-viewer-DoNdrzhN.js → use-media-viewer-DViJNx75.js} +1 -1
  209. package/dist/{use-text-preview-BQE4U9cT.js → use-text-preview-Ci97JKKo.js} +2 -2
  210. package/dist/{use-unsaved-guard-CSfDvdxd.js → use-unsaved-guard-CWlHEvjN.js} +2 -2
  211. package/dist/{viewer-CXF1dAv0.js → viewer-DDPJOxBt.js} +5 -5
  212. package/dist/{viewer-stage-class-CpyA8o-M.js → viewer-stage-class-DJ1uod4l.js} +4 -4
  213. package/dist/{viewer-states-BXyCdNhE.js → viewer-states-DkaPBkK4.js} +3 -3
  214. package/dist/{virtual-layer-rows-DHy8vAup.js → virtual-layer-rows-DKejQ_Jd.js} +1 -1
  215. package/dist/visible-B-IFZ4Nv.js +475 -0
  216. package/docs/components/media-and-files.md +1 -1
  217. package/docs/components/navigation-and-layout.md +2 -2
  218. package/docs/guides/capture.md +248 -0
  219. package/docs/guides/csp.md +1 -1
  220. package/docs/guides/embed.md +94 -2
  221. package/docs/roadmap.md +2 -1
  222. package/docs/troubleshooting.md +56 -0
  223. package/package.json +18 -1
  224. package/dist/embed-chunks/bubble-input-yXAeW84_.js +0 -29
  225. package/dist/embed-chunks/switch-control-ChcowM3u.js +0 -181
  226. package/dist/fab-dock-DqwbI-5n.js +0 -86
  227. package/dist/input-BaBE_MR_.js +0 -27
  228. /package/dist/{dist-B1qFabLJ.js → dist-B1qFabLJ2.js} +0 -0
package/dist/embed.js CHANGED
@@ -1,33 +1,112 @@
1
- import { a as e, b as t, c as n, d as r, f as i, i as a, l as o, m as s, n as c, p as l, s as u, u as d } from "./embed-chunks/use-shape-morph-NrJQMv7i.js";
2
- import { C as f, U as p, V as m, b as h, c as g, l as _, p as v, s as y, t as b, u as x, x as S } from "./embed-chunks/useLatest-B57qw3XH.js";
3
- import { C, S as w, T, _ as E, b as D, c as O, d as ee, f as te, g as ne, h as re, i as ie, m as ae, n as oe, p as se, r as ce, s as le, t as ue, v as de, x as fe, y as pe } from "./embed-chunks/nxgt-theme-provider-B1aeqDja.js";
4
- import { a as me, i as he, n as ge, o as _e, r as ve, s as k, t as ye } from "./embed-chunks/avatar-GlGqPU7B.js";
5
- import { c as be, d as xe, f as Se, g as Ce, h as we, i as Te, l as Ee, m as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./embed-chunks/tabs-root-CY-uLp1C.js";
1
+ import { a as e, b as t, c as n, d as r, f as i, i as a, l as o, m as s, n as c, p as l, s as u, u as d } from "./embed-chunks/use-shape-morph-D1MOoQ4T.js";
2
+ import { C as f, U as p, V as m, a as h, b as g, d as _, n as v, o as y, p as b, r as x, t as S, u as C, x as w } from "./embed-chunks/useLatest-CbcU5ozz.js";
3
+ import { A as T, B as E, C as D, D as O, E as ee, F as te, I as ne, L as re, M as ie, N as ae, P as oe, R as se, S as ce, T as le, _ as ue, b as de, c as fe, d as pe, f as me, g as he, h as ge, i as _e, j as ve, m as ye, n as be, p as xe, r as Se, s as Ce, t as we, v as Te, w as Ee, x as De, y as Oe, z as ke } from "./embed-chunks/nxgt-theme-provider-Cjl7Eb8v.js";
4
+ import { a as Ae, i as je, n as Me, o as Ne, r as Pe, s as k, t as Fe } from "./embed-chunks/avatar-CSDtFCum.js";
5
+ import { c as Ie, d as Le, f as Re, g as ze, h as Be, i as Ve, l as He, m as Ue, n as We, o as Ge, r as Ke, s as qe, t as Je, u as Ye } from "./embed-chunks/tabs-root-BvPc1aaV.js";
6
+ import { n as Xe } from "./embed-chunks/switch-control-BrwJRN_V.js";
6
7
  import { n as A } from "./embed-chunks/is-production-Cx8oURag.js";
7
- import { a as Pe, i as Fe, l as Ie, n as Le, o as Re, r as ze, s as Be, t as Ve } from "./embed-chunks/state-scenes-BxFf1hTb.js";
8
- import { t as He } from "./embed-chunks/bubble-input-yXAeW84_.js";
8
+ import { a as Ze, i as Qe, l as $e, n as et, o as tt, r as nt, s as rt, t as it } from "./embed-chunks/state-scenes-BxFf1hTb.js";
9
9
  import * as j from "react";
10
- import M, { Children as Ue, Suspense as We, cloneElement as Ge, createContext as Ke, isValidElement as N, lazy as qe, useCallback as Je, useContext as Ye, useEffect as P, useId as F, useMemo as Xe, useReducer as Ze, useRef as I, useState as L } from "react";
10
+ import M, { Children as at, Suspense as ot, cloneElement as st, createContext as ct, isValidElement as N, lazy as lt, useCallback as ut, useContext as dt, useEffect as P, useId as F, useInsertionEffect as ft, useMemo as pt, useReducer as mt, useRef as I, useState as L, useSyncExternalStore as ht } from "react";
11
11
  import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
12
- import { AlertCircle as Qe, ArrowDown as $e, ArrowUp as et, Check as tt, CheckCheck as nt, CircleAlert as rt, CircleCheck as it, Clock3 as at, Construction as ot, Copy as st, Ellipsis as ct, File as lt, FileBraces as ut, FileImage as dt, FileMusic as ft, FileQuestion as pt, FileSpreadsheet as mt, FileText as ht, FileVideoCamera as gt, Info as _t, Mail as vt, MessageSquare as yt, PackageOpen as bt, Paperclip as xt, Reply as St, Search as Ct, Send as wt, ShieldAlert as Tt, SmilePlus as Et, Sparkles as Dt, Square as Ot, Trash2 as kt, TriangleAlert as At, WifiOff as jt, X as V } from "lucide-react";
13
- import { STATE_ACCENT as Mt, STATE_ICON as Nt, stateCopy as Pt } from "@softistx/material-core/states";
14
- import { describedBy as Ft } from "@softistx/material-core/described-by";
15
- import { fileKind as It } from "@softistx/material-core/file-preview";
16
- import { formatFileSize as Lt } from "@softistx/material-core/format-file-size";
17
- import { blockedReason as Rt, entryIndex as zt, nextChoice as Bt, rovingIndex as Vt } from "@softistx/material-core/choice-group";
18
- import { createAsyncSearch as Ht } from "@softistx/material-core/async-search";
19
- import { dayBucket as Ut, daysAgo as Wt, isValidTimeZone as Gt, localIsoDay as Kt, toDate as qt } from "@softistx/material-core/day-math";
20
- //#region ../../node_modules/@radix-ui/react-checkbox/dist/index.mjs
21
- var Jt = Object.defineProperty, H = (e, t) => Jt(e, "name", {
12
+ import { claimCspNonce as gt, getCspNonce as _t } from "@softistx/material-core/csp-nonce";
13
+ import { AlertCircle as vt, ArrowDown as yt, ArrowUp as bt, Check as xt, CheckCheck as St, CircleAlert as Ct, CircleCheck as wt, Clock3 as Tt, Construction as Et, Copy as Dt, Ellipsis as Ot, File as kt, FileBraces as At, FileImage as jt, FileMusic as Mt, FileQuestion as Nt, FileSpreadsheet as Pt, FileText as Ft, FileVideoCamera as It, Info as Lt, Mail as Rt, MessageSquare as zt, PackageOpen as Bt, Paperclip as Vt, Reply as Ht, Search as Ut, Send as Wt, ShieldAlert as Gt, SmilePlus as Kt, Sparkles as qt, Square as Jt, Trash2 as Yt, TriangleAlert as Xt, WifiOff as Zt, X as V } from "lucide-react";
14
+ import { STATE_ACCENT as Qt, STATE_ICON as $t, stateCopy as en } from "@softistx/material-core/states";
15
+ import { describedBy as tn } from "@softistx/material-core/described-by";
16
+ import { fileKind as nn } from "@softistx/material-core/file-preview";
17
+ import { formatFileSize as rn } from "@softistx/material-core/format-file-size";
18
+ import { blockedReason as an, entryIndex as on, nextChoice as sn, rovingIndex as cn } from "@softistx/material-core/choice-group";
19
+ import { createAsyncSearch as ln } from "@softistx/material-core/async-search";
20
+ import { dayBucket as un, daysAgo as dn, isValidTimeZone as fn, localIsoDay as pn, toDate as mn } from "@softistx/material-core/day-math";
21
+ //#region ../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
22
+ var hn = Object.defineProperty, H = (e, t) => hn(e, "name", {
22
23
  value: t,
23
24
  configurable: !0
24
- }), Yt = "Checkbox", [Xt, Zt] = l(Yt), [Qt, $t] = Xt(Yt);
25
- function en(e) {
25
+ }), [gn, _n] = l("AlertDialog", [E]), U = E(), vn = /* @__PURE__ */ H((e) => {
26
+ let { __scopeAlertDialog: t, ...n } = e;
27
+ return /* @__PURE__ */ z(ie, {
28
+ ...U(t),
29
+ ...n,
30
+ modal: !0
31
+ });
32
+ }, "AlertDialog");
33
+ j.forwardRef(/* @__PURE__ */ H(function(e, t) {
34
+ let { __scopeAlertDialog: n, ...r } = e;
35
+ return /* @__PURE__ */ z(ke, {
36
+ ...U(n),
37
+ ...r,
38
+ ref: t
39
+ });
40
+ }, "AlertDialogTrigger"));
41
+ var yn = /* @__PURE__ */ H((e) => {
42
+ let { __scopeAlertDialog: t, ...n } = e;
43
+ return /* @__PURE__ */ z(re, {
44
+ ...U(t),
45
+ ...n
46
+ });
47
+ }, "AlertDialogPortal"), bn = j.forwardRef(/* @__PURE__ */ H(function(e, t) {
48
+ let { __scopeAlertDialog: n, ...r } = e;
49
+ return /* @__PURE__ */ z(ne, {
50
+ ...U(n),
51
+ ...r,
52
+ ref: t
53
+ });
54
+ }, "AlertDialogOverlay")), [xn, Sn] = gn("AlertDialogContent"), Cn = j.forwardRef(/* @__PURE__ */ H(function(e, n) {
55
+ let { __scopeAlertDialog: r, children: a, ...o } = e, s = U(r), c = t(n, j.useRef(null)), l = j.useRef(null);
56
+ return /* @__PURE__ */ z(xn, {
57
+ scope: r,
58
+ cancelRef: l,
59
+ children: /* @__PURE__ */ z(oe, {
60
+ role: "alertdialog",
61
+ ...s,
62
+ ...o,
63
+ ref: c,
64
+ onOpenAutoFocus: i(o.onOpenAutoFocus, (e) => {
65
+ e.preventDefault(), l.current?.focus({ preventScroll: !0 });
66
+ }),
67
+ onPointerDownOutside: (e) => e.preventDefault(),
68
+ onInteractOutside: (e) => e.preventDefault(),
69
+ children: a
70
+ })
71
+ });
72
+ }, "AlertDialogContent")), wn = j.forwardRef(/* @__PURE__ */ H(function(e, t) {
73
+ let { __scopeAlertDialog: n, ...r } = e;
74
+ return /* @__PURE__ */ z(se, {
75
+ ...U(n),
76
+ ...r,
77
+ ref: t
78
+ });
79
+ }, "AlertDialogTitle")), Tn = j.forwardRef(/* @__PURE__ */ H(function(e, t) {
80
+ let { __scopeAlertDialog: n, ...r } = e;
81
+ return /* @__PURE__ */ z(te, {
82
+ ...U(n),
83
+ ...r,
84
+ ref: t
85
+ });
86
+ }, "AlertDialogDescription")), En = j.forwardRef(/* @__PURE__ */ H(function(e, t) {
87
+ let { __scopeAlertDialog: n, ...r } = e;
88
+ return /* @__PURE__ */ z(ae, {
89
+ ...U(n),
90
+ ...r,
91
+ ref: t
92
+ });
93
+ }, "AlertDialogAction")), Dn = "AlertDialogCancel", On = j.forwardRef(/* @__PURE__ */ H(function(e, n) {
94
+ let { __scopeAlertDialog: r, ...i } = e, { cancelRef: a } = Sn(Dn, r), o = U(r), s = t(n, a);
95
+ return /* @__PURE__ */ z(ae, {
96
+ ...o,
97
+ ...i,
98
+ ref: s
99
+ });
100
+ }, "AlertDialogCancel")), kn = vn, An = yn, jn = bn, Mn = Cn, Nn = En, Pn = On, Fn = wn, In = Tn, Ln = Object.defineProperty, W = (e, t) => Ln(e, "name", {
101
+ value: t,
102
+ configurable: !0
103
+ }), Rn = "Checkbox", [zn, Bn] = l(Rn), [Vn, Hn] = zn(Rn);
104
+ function Un(e) {
26
105
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: f } = e, [p, m] = d({
27
106
  prop: n,
28
107
  defaultProp: i ?? !1,
29
108
  onChange: c,
30
- caller: Yt
109
+ caller: Rn
31
110
  }), [h, g] = j.useState(null), [_, v] = j.useState(null), y = j.useRef(!1), [b, x] = j.useReducer((e) => e + 1, 0), S = !h || !!o || !!h.closest("form"), C = {
32
111
  checked: p,
33
112
  disabled: a,
@@ -41,32 +120,32 @@ function en(e) {
41
120
  userInteractionCount: b,
42
121
  onUserInteraction: x,
43
122
  required: l,
44
- defaultChecked: !U(i) && i,
123
+ defaultChecked: !G(i) && i,
45
124
  isFormControl: S,
46
125
  bubbleInput: _,
47
126
  setBubbleInput: v
48
127
  };
49
- return /* @__PURE__ */ z(Qt, {
128
+ return /* @__PURE__ */ z(Vn, {
50
129
  scope: t,
51
130
  ...C,
52
- children: on(f) ? f(C) : r
131
+ children: Jn(f) ? f(C) : r
53
132
  });
54
133
  }
55
- H(en, "CheckboxProvider");
56
- var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(function({ __scopeCheckbox: e, onKeyDown: n, onClick: r, ...a }, o) {
57
- let { control: c, value: l, disabled: u, checked: d, required: f, setControl: p, setChecked: m, hasConsumerStoppedPropagationRef: h, onUserInteraction: g, isFormControl: _, bubbleInput: v } = $t(tn, e), y = t(o, p), b = j.useRef(d);
134
+ W(Un, "CheckboxProvider");
135
+ var Wn = "CheckboxTrigger", Gn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function({ __scopeCheckbox: e, onKeyDown: n, onClick: r, ...a }, o) {
136
+ let { control: c, value: l, disabled: u, checked: d, required: f, setControl: p, setChecked: m, hasConsumerStoppedPropagationRef: h, onUserInteraction: g, isFormControl: _, bubbleInput: v } = Hn(Wn, e), y = t(o, p), b = j.useRef(d);
58
137
  return j.useEffect(() => {
59
138
  let e = c?.form;
60
139
  if (e) {
61
- let t = /* @__PURE__ */ H(() => m(b.current), "reset");
140
+ let t = /* @__PURE__ */ W(() => m(b.current), "reset");
62
141
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
63
142
  }
64
143
  }, [c, m]), /* @__PURE__ */ z(s.button, {
65
144
  type: "button",
66
145
  role: "checkbox",
67
- "aria-checked": U(d) ? "mixed" : d,
146
+ "aria-checked": G(d) ? "mixed" : d,
68
147
  "aria-required": f,
69
- "data-state": sn(d),
148
+ "data-state": Yn(d),
70
149
  "data-disabled": u ? "" : void 0,
71
150
  disabled: u,
72
151
  value: l,
@@ -76,11 +155,11 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
76
155
  e.key === "Enter" && e.preventDefault();
77
156
  }),
78
157
  onClick: i(r, (e) => {
79
- g(), m((e) => U(e) ? !0 : !e), v && _ && (h.current = e.isPropagationStopped(), h.current || e.stopPropagation());
158
+ g(), m((e) => G(e) ? !0 : !e), v && _ && (h.current = e.isPropagationStopped(), h.current || e.stopPropagation());
80
159
  })
81
160
  });
82
- }, "CheckboxTrigger")), rn = "CheckboxBubbleInput", an = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(function({ __scopeCheckbox: e, onClick: r, ...a }, o) {
83
- let { control: c, hasConsumerStoppedPropagationRef: l, userInteractionCount: u, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: _, bubbleInput: v, setBubbleInput: y } = $t(rn, e), b = t(o, y), x = n(c), S = j.useRef(!1), C = j.useRef(d), w = j.useRef(u);
161
+ }, "CheckboxTrigger")), Kn = "CheckboxBubbleInput", qn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function({ __scopeCheckbox: e, onClick: r, ...a }, o) {
162
+ let { control: c, hasConsumerStoppedPropagationRef: l, userInteractionCount: u, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: _, bubbleInput: v, setBubbleInput: y } = Hn(Kn, e), b = t(o, y), x = n(c), S = j.useRef(!1), C = j.useRef(d), w = j.useRef(u);
84
163
  j.useEffect(() => {
85
164
  let e = v;
86
165
  if (!e) return;
@@ -92,7 +171,7 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
92
171
  if (i && n) {
93
172
  S.current = !r;
94
173
  let t = new Event("click", { bubbles: a });
95
- e.indeterminate = U(d), n.call(e, !U(d) && d), e.dispatchEvent(t), S.current = !1;
174
+ e.indeterminate = G(d), n.call(e, !G(d) && d), e.dispatchEvent(t), S.current = !1;
96
175
  }
97
176
  }, [
98
177
  v,
@@ -100,7 +179,7 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
100
179
  l,
101
180
  u
102
181
  ]);
103
- let T = j.useRef(!U(d) && d);
182
+ let T = j.useRef(!G(d) && d);
104
183
  return /* @__PURE__ */ z(s.input, {
105
184
  type: "checkbox",
106
185
  "aria-hidden": !0,
@@ -127,31 +206,31 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
127
206
  }
128
207
  });
129
208
  }, "CheckboxBubbleInput"));
130
- function on(e) {
209
+ function Jn(e) {
131
210
  return typeof e == "function";
132
211
  }
133
- H(on, "isFunction");
134
- function U(e) {
212
+ W(Jn, "isFunction");
213
+ function G(e) {
135
214
  return e === "indeterminate";
136
215
  }
137
- H(U, "isIndeterminate");
138
- function sn(e) {
139
- return U(e) ? "indeterminate" : e ? "checked" : "unchecked";
216
+ W(G, "isIndeterminate");
217
+ function Yn(e) {
218
+ return G(e) ? "indeterminate" : e ? "checked" : "unchecked";
140
219
  }
141
- H(sn, "getState");
220
+ W(Yn, "getState");
142
221
  //#endregion
143
222
  //#region ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
144
- var cn = Object.defineProperty, W = (e, t) => cn(e, "name", {
223
+ var Xn = Object.defineProperty, K = (e, t) => Xn(e, "name", {
145
224
  value: t,
146
225
  configurable: !0
147
226
  });
148
- function ln(e, t) {
227
+ function Zn(e, t) {
149
228
  return j.useReducer((e, n) => t[e][n] ?? e, e);
150
229
  }
151
- W(ln, "useStateMachine");
152
- var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
230
+ K(Zn, "useStateMachine");
231
+ var Qn = "ScrollArea", [$n, er] = l(Qn), [tr, q] = $n(Qn), nr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
153
232
  let { __scopeScrollArea: r, type: i = "hover", dir: a, scrollHideDelay: o = 600, ...c } = e, [l, u] = j.useState(null), [d, f] = j.useState(null), [p, h] = j.useState(null), [g, _] = j.useState(null), [v, y] = j.useState(null), [b, x] = j.useState(0), [S, C] = j.useState(0), [w, T] = j.useState(!1), [E, D] = j.useState(!1), O = t(n, u), ee = m(a);
154
- return /* @__PURE__ */ z(pn, {
233
+ return /* @__PURE__ */ z(tr, {
155
234
  scope: r,
156
235
  type: i,
157
236
  dir: ee,
@@ -183,9 +262,9 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
183
262
  }
184
263
  })
185
264
  });
186
- }, "ScrollArea")), hn = "ScrollAreaViewport", gn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
187
- let { __scopeScrollArea: r, children: i, nonce: a, ...o } = e, c = G(hn, r), l = t(n, j.useRef(null), c.onViewportChange);
188
- return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(_n, { nonce: a }), /* @__PURE__ */ z(s.div, {
265
+ }, "ScrollArea")), rr = "ScrollAreaViewport", ir = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
266
+ let { __scopeScrollArea: r, children: i, nonce: a, ...o } = e, c = q(rr, r), l = t(n, j.useRef(null), c.onViewportChange);
267
+ return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(ar, { nonce: a }), /* @__PURE__ */ z(s.div, {
189
268
  "data-radix-scroll-area-viewport": "",
190
269
  ...o,
191
270
  ref: l,
@@ -203,44 +282,44 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
203
282
  children: i
204
283
  })
205
284
  })] });
206
- }, "ScrollAreaViewport")), _n = /* @__PURE__ */ j.memo(/* @__PURE__ */ W(function({ nonce: e }) {
285
+ }, "ScrollAreaViewport")), ar = /* @__PURE__ */ j.memo(/* @__PURE__ */ K(function({ nonce: e }) {
207
286
  return /* @__PURE__ */ z("style", {
208
287
  dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
209
288
  nonce: e
210
289
  });
211
- }, "ScrollAreaViewportStyle"), (e, t) => e.nonce === t.nonce), K = "ScrollAreaScrollbar", vn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
212
- let { forceMount: n, ...r } = e, i = G(K, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
290
+ }, "ScrollAreaViewportStyle"), (e, t) => e.nonce === t.nonce), J = "ScrollAreaScrollbar", or = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
291
+ let { forceMount: n, ...r } = e, i = q(J, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
213
292
  return j.useEffect(() => (s ? a(!0) : o(!0), () => {
214
293
  s ? a(!1) : o(!1);
215
294
  }), [
216
295
  s,
217
296
  a,
218
297
  o
219
- ]), i.type === "hover" ? /* @__PURE__ */ z(yn, {
298
+ ]), i.type === "hover" ? /* @__PURE__ */ z(sr, {
220
299
  ...r,
221
300
  ref: t,
222
301
  forceMount: n
223
- }) : i.type === "scroll" ? /* @__PURE__ */ z(bn, {
302
+ }) : i.type === "scroll" ? /* @__PURE__ */ z(cr, {
224
303
  ...r,
225
304
  ref: t,
226
305
  forceMount: n
227
- }) : i.type === "auto" ? /* @__PURE__ */ z(xn, {
306
+ }) : i.type === "auto" ? /* @__PURE__ */ z(lr, {
228
307
  ...r,
229
308
  ref: t,
230
309
  forceMount: n
231
- }) : i.type === "always" ? /* @__PURE__ */ z(Sn, {
310
+ }) : i.type === "always" ? /* @__PURE__ */ z(ur, {
232
311
  ...r,
233
312
  ref: t,
234
313
  "data-state": "visible"
235
314
  }) : null;
236
- }, "ScrollAreaScrollbar")), yn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
237
- let { forceMount: n, ...r } = e, i = G(K, e.__scopeScrollArea), [a, o] = j.useState(!1);
315
+ }, "ScrollAreaScrollbar")), sr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
316
+ let { forceMount: n, ...r } = e, i = q(J, e.__scopeScrollArea), [a, o] = j.useState(!1);
238
317
  return j.useEffect(() => {
239
318
  let e = i.scrollArea, t = 0;
240
319
  if (e) {
241
- let n = /* @__PURE__ */ W(() => {
320
+ let n = /* @__PURE__ */ K(() => {
242
321
  window.clearTimeout(t), o(!0);
243
- }, "handlePointerEnter"), r = /* @__PURE__ */ W(() => {
322
+ }, "handlePointerEnter"), r = /* @__PURE__ */ K(() => {
244
323
  t = window.setTimeout(() => o(!1), i.scrollHideDelay);
245
324
  }, "handlePointerLeave");
246
325
  return e.addEventListener("pointerenter", n), e.addEventListener("pointerleave", r), () => {
@@ -249,14 +328,14 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
249
328
  }
250
329
  }, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ z(p, {
251
330
  present: n || a,
252
- children: /* @__PURE__ */ z(xn, {
331
+ children: /* @__PURE__ */ z(lr, {
253
332
  "data-state": a ? "visible" : "hidden",
254
333
  ...r,
255
334
  ref: t
256
335
  })
257
336
  });
258
- }, "ScrollAreaScrollbarHover")), bn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
259
- let { forceMount: n, ...r } = e, a = G(K, e.__scopeScrollArea), o = e.orientation === "horizontal", s = Y(() => l("SCROLL_END"), 100), [c, l] = ln("hidden", {
337
+ }, "ScrollAreaScrollbarHover")), cr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
338
+ let { forceMount: n, ...r } = e, a = q(J, e.__scopeScrollArea), o = e.orientation === "horizontal", s = Or(() => l("SCROLL_END"), 100), [c, l] = Zn("hidden", {
260
339
  hidden: { SCROLL: "scrolling" },
261
340
  scrolling: {
262
341
  SCROLL_END: "idle",
@@ -284,7 +363,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
284
363
  ]), j.useEffect(() => {
285
364
  let e = a.viewport, t = o ? "scrollLeft" : "scrollTop";
286
365
  if (e) {
287
- let n = e[t], r = /* @__PURE__ */ W(() => {
366
+ let n = e[t], r = /* @__PURE__ */ K(() => {
288
367
  let r = e[t];
289
368
  n !== r && (l("SCROLL"), s()), n = r;
290
369
  }, "handleScroll");
@@ -297,7 +376,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
297
376
  s
298
377
  ]), /* @__PURE__ */ z(p, {
299
378
  present: n || c !== "hidden",
300
- children: /* @__PURE__ */ z(Sn, {
379
+ children: /* @__PURE__ */ z(ur, {
301
380
  "data-state": c === "hidden" ? "hidden" : "visible",
302
381
  ...r,
303
382
  ref: t,
@@ -305,23 +384,23 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
305
384
  onPointerLeave: i(e.onPointerLeave, () => l("POINTER_LEAVE"))
306
385
  })
307
386
  });
308
- }, "ScrollAreaScrollbarScroll")), xn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
309
- let n = G(K, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = j.useState(!1), s = e.orientation === "horizontal", c = Y(() => {
387
+ }, "ScrollAreaScrollbarScroll")), lr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
388
+ let n = q(J, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = j.useState(!1), s = e.orientation === "horizontal", c = Or(() => {
310
389
  if (n.viewport) {
311
390
  let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
312
391
  o(s ? e : t);
313
392
  }
314
393
  }, 10);
315
- return X(n.viewport, c), X(n.content, c), /* @__PURE__ */ z(p, {
394
+ return Z(n.viewport, c), Z(n.content, c), /* @__PURE__ */ z(p, {
316
395
  present: r || a,
317
- children: /* @__PURE__ */ z(Sn, {
396
+ children: /* @__PURE__ */ z(ur, {
318
397
  "data-state": a ? "visible" : "hidden",
319
398
  ...i,
320
399
  ref: t
321
400
  })
322
401
  });
323
- }, "ScrollAreaScrollbarAuto")), Sn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
324
- let { orientation: n = "vertical", ...r } = e, i = G(K, e.__scopeScrollArea), a = j.useRef(null), o = j.useRef(0), [s, c] = j.useState({
402
+ }, "ScrollAreaScrollbarAuto")), ur = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
403
+ let { orientation: n = "vertical", ...r } = e, i = q(J, e.__scopeScrollArea), a = j.useRef(null), o = j.useRef(0), [s, c] = j.useState({
325
404
  content: 0,
326
405
  viewport: 0,
327
406
  scrollbar: {
@@ -329,24 +408,24 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
329
408
  paddingStart: 0,
330
409
  paddingEnd: 0
331
410
  }
332
- }), l = Pn(s.viewport, s.content), u = {
411
+ }), l = Sr(s.viewport, s.content), u = {
333
412
  ...r,
334
413
  sizes: s,
335
414
  onSizesChange: c,
336
415
  hasThumb: l > 0 && l < 1,
337
- onThumbChange: /* @__PURE__ */ W((e) => a.current = e, "onThumbChange"),
338
- onThumbPointerUp: /* @__PURE__ */ W(() => o.current = 0, "onThumbPointerUp"),
339
- onThumbPointerDown: /* @__PURE__ */ W((e) => o.current = e, "onThumbPointerDown")
416
+ onThumbChange: /* @__PURE__ */ K((e) => a.current = e, "onThumbChange"),
417
+ onThumbPointerUp: /* @__PURE__ */ K(() => o.current = 0, "onThumbPointerUp"),
418
+ onThumbPointerDown: /* @__PURE__ */ K((e) => o.current = e, "onThumbPointerDown")
340
419
  };
341
420
  function d(e, t) {
342
- return Fn(e, o.current, s, t);
421
+ return Cr(e, o.current, s, t);
343
422
  }
344
- return W(d, "getScrollPosition"), n === "horizontal" ? /* @__PURE__ */ z(Cn, {
423
+ return K(d, "getScrollPosition"), n === "horizontal" ? /* @__PURE__ */ z(dr, {
345
424
  ...u,
346
425
  ref: t,
347
426
  onThumbPositionChange: () => {
348
427
  if (i.viewport && a.current) {
349
- let e = i.viewport.scrollLeft, t = In(e, s, i.dir);
428
+ let e = i.viewport.scrollLeft, t = wr(e, s, i.dir);
350
429
  a.current.style.transform = `translate3d(${t}px, 0, 0)`;
351
430
  }
352
431
  },
@@ -356,12 +435,12 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
356
435
  onDragScroll: (e) => {
357
436
  i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
358
437
  }
359
- }) : n === "vertical" ? /* @__PURE__ */ z(wn, {
438
+ }) : n === "vertical" ? /* @__PURE__ */ z(fr, {
360
439
  ...u,
361
440
  ref: t,
362
441
  onThumbPositionChange: () => {
363
442
  if (i.viewport && a.current) {
364
- let e = i.viewport.scrollTop, t = In(e, s);
443
+ let e = i.viewport.scrollTop, t = wr(e, s);
365
444
  a.current.style.transform = `translate3d(0, ${t}px, 0)`;
366
445
  }
367
446
  },
@@ -372,11 +451,11 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
372
451
  i.viewport && (i.viewport.scrollTop = d(e));
373
452
  }
374
453
  }) : null;
375
- }, "ScrollAreaScrollbarVisible")), Cn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
376
- let { sizes: r, onSizesChange: i, ...a } = e, o = G(K, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarXChange);
454
+ }, "ScrollAreaScrollbarVisible")), dr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
455
+ let { sizes: r, onSizesChange: i, ...a } = e, o = q(J, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarXChange);
377
456
  return j.useEffect(() => {
378
457
  l.current && c(getComputedStyle(l.current));
379
- }, [l]), /* @__PURE__ */ z(Dn, {
458
+ }, [l]), /* @__PURE__ */ z(hr, {
380
459
  "data-orientation": "horizontal",
381
460
  ...a,
382
461
  ref: u,
@@ -385,7 +464,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
385
464
  bottom: 0,
386
465
  left: o.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
387
466
  right: o.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
388
- "--radix-scroll-area-thumb-width": J(r) + "px",
467
+ "--radix-scroll-area-thumb-width": X(r) + "px",
389
468
  ...e.style
390
469
  },
391
470
  onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
@@ -393,7 +472,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
393
472
  onWheelScroll: (t, n) => {
394
473
  if (o.viewport) {
395
474
  let r = o.viewport.scrollLeft + t.deltaX;
396
- e.onWheelScroll(r), Rn(r, n) && t.preventDefault();
475
+ e.onWheelScroll(r), Er(r, n) && t.preventDefault();
397
476
  }
398
477
  },
399
478
  onResize: () => {
@@ -402,17 +481,17 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
402
481
  viewport: o.viewport.offsetWidth,
403
482
  scrollbar: {
404
483
  size: l.current.clientWidth,
405
- paddingStart: q(s.paddingLeft),
406
- paddingEnd: q(s.paddingRight)
484
+ paddingStart: Y(s.paddingLeft),
485
+ paddingEnd: Y(s.paddingRight)
407
486
  }
408
487
  });
409
488
  }
410
489
  });
411
- }, "ScrollAreaScrollbarX")), wn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
412
- let { sizes: r, onSizesChange: i, ...a } = e, o = G(K, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarYChange);
490
+ }, "ScrollAreaScrollbarX")), fr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
491
+ let { sizes: r, onSizesChange: i, ...a } = e, o = q(J, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarYChange);
413
492
  return j.useEffect(() => {
414
493
  l.current && c(getComputedStyle(l.current));
415
- }, [l]), /* @__PURE__ */ z(Dn, {
494
+ }, [l]), /* @__PURE__ */ z(hr, {
416
495
  "data-orientation": "vertical",
417
496
  ...a,
418
497
  ref: u,
@@ -422,7 +501,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
422
501
  right: o.dir === "ltr" ? 0 : void 0,
423
502
  left: o.dir === "rtl" ? 0 : void 0,
424
503
  bottom: "var(--radix-scroll-area-corner-height)",
425
- "--radix-scroll-area-thumb-height": J(r) + "px",
504
+ "--radix-scroll-area-thumb-height": X(r) + "px",
426
505
  ...e.style
427
506
  },
428
507
  onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
@@ -430,7 +509,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
430
509
  onWheelScroll: (t, n) => {
431
510
  if (o.viewport) {
432
511
  let r = o.viewport.scrollTop + t.deltaY;
433
- e.onWheelScroll(r), Rn(r, n) && t.preventDefault();
512
+ e.onWheelScroll(r), Er(r, n) && t.preventDefault();
434
513
  }
435
514
  },
436
515
  onResize: () => {
@@ -439,14 +518,14 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
439
518
  viewport: o.viewport.offsetHeight,
440
519
  scrollbar: {
441
520
  size: l.current.clientHeight,
442
- paddingStart: q(s.paddingTop),
443
- paddingEnd: q(s.paddingBottom)
521
+ paddingStart: Y(s.paddingTop),
522
+ paddingEnd: Y(s.paddingBottom)
444
523
  }
445
524
  });
446
525
  }
447
526
  });
448
- }, "ScrollAreaScrollbarY")), [Tn, En] = dn(K), Dn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
449
- let { __scopeScrollArea: r, sizes: a, hasThumb: c, onThumbChange: l, onThumbPointerUp: u, onThumbPointerDown: d, onThumbPositionChange: f, onDragScroll: p, onWheelScroll: m, onResize: h, ...g } = e, _ = G(K, r), [v, y] = j.useState(null), b = t(n, y), x = j.useRef(null), S = j.useRef(""), C = _.viewport, w = a.content - a.viewport, T = o(m), E = o(f), D = Y(h, 10);
527
+ }, "ScrollAreaScrollbarY")), [pr, mr] = $n(J), hr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
528
+ let { __scopeScrollArea: r, sizes: a, hasThumb: c, onThumbChange: l, onThumbPointerUp: u, onThumbPointerDown: d, onThumbPositionChange: f, onDragScroll: p, onWheelScroll: m, onResize: h, ...g } = e, _ = q(J, r), [v, y] = j.useState(null), b = t(n, y), x = j.useRef(null), S = j.useRef(""), C = _.viewport, w = a.content - a.viewport, T = o(m), E = o(f), D = Or(h, 10);
450
529
  function O(e) {
451
530
  if (x.current) {
452
531
  let t = e.clientX - x.current.left, n = e.clientY - x.current.top;
@@ -456,8 +535,8 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
456
535
  });
457
536
  }
458
537
  }
459
- return W(O, "handleDragScroll"), j.useEffect(() => {
460
- let e = /* @__PURE__ */ W((e) => {
538
+ return K(O, "handleDragScroll"), j.useEffect(() => {
539
+ let e = /* @__PURE__ */ K((e) => {
461
540
  let t = e.target;
462
541
  v?.contains(t) && T(e, w);
463
542
  }, "handleWheel");
@@ -467,7 +546,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
467
546
  v,
468
547
  w,
469
548
  T
470
- ]), j.useEffect(E, [a, E]), X(v, D), X(_.content, D), /* @__PURE__ */ z(Tn, {
549
+ ]), j.useEffect(E, [a, E]), Z(v, D), Z(_.content, D), /* @__PURE__ */ z(pr, {
471
550
  scope: r,
472
551
  scrollbar: v,
473
552
  hasThumb: c,
@@ -492,25 +571,25 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
492
571
  })
493
572
  })
494
573
  });
495
- }, "ScrollAreaScrollbarImpl")), On = "ScrollAreaThumb", kn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
496
- let { forceMount: n, ...r } = e, i = En(On, e.__scopeScrollArea);
574
+ }, "ScrollAreaScrollbarImpl")), gr = "ScrollAreaThumb", _r = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
575
+ let { forceMount: n, ...r } = e, i = mr(gr, e.__scopeScrollArea);
497
576
  return /* @__PURE__ */ z(p, {
498
577
  present: n || i.hasThumb,
499
- children: /* @__PURE__ */ z(An, {
578
+ children: /* @__PURE__ */ z(vr, {
500
579
  ref: t,
501
580
  ...r
502
581
  })
503
582
  });
504
- }, "ScrollAreaThumb")), An = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
505
- let { __scopeScrollArea: r, style: a, ...o } = e, c = G(On, r), l = En(On, r), { onThumbPositionChange: u } = l, d = t(n, l.onThumbChange), f = j.useRef(void 0), p = Y(() => {
583
+ }, "ScrollAreaThumb")), vr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, n) {
584
+ let { __scopeScrollArea: r, style: a, ...o } = e, c = q(gr, r), l = mr(gr, r), { onThumbPositionChange: u } = l, d = t(n, l.onThumbChange), f = j.useRef(void 0), p = Or(() => {
506
585
  f.current &&= (f.current(), void 0);
507
586
  }, 100);
508
587
  return j.useEffect(() => {
509
588
  let e = c.viewport;
510
589
  if (e) {
511
- let t = /* @__PURE__ */ W(() => {
590
+ let t = /* @__PURE__ */ K(() => {
512
591
  if (p(), !f.current) {
513
- let t = zn(e, u);
592
+ let t = Dr(e, u);
514
593
  f.current = t, u();
515
594
  }
516
595
  }, "handleScroll");
@@ -538,18 +617,18 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
538
617
  }),
539
618
  onPointerUp: i(e.onPointerUp, l.onThumbPointerUp)
540
619
  });
541
- }, "ScrollAreaThumbImpl")), jn = "ScrollAreaCorner", Mn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
542
- let n = G(jn, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
543
- return n.type !== "scroll" && r ? /* @__PURE__ */ z(Nn, {
620
+ }, "ScrollAreaThumbImpl")), yr = "ScrollAreaCorner", br = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
621
+ let n = q(yr, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
622
+ return n.type !== "scroll" && r ? /* @__PURE__ */ z(xr, {
544
623
  ...e,
545
624
  ref: t
546
625
  }) : null;
547
- }, "ScrollAreaCorner")), Nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
548
- let { __scopeScrollArea: n, ...r } = e, i = G(jn, n), [a, o] = j.useState(0), [c, l] = j.useState(0), u = !!(a && c), { onCornerWidthChange: d, onCornerHeightChange: f } = i;
549
- return X(i.scrollbarX, () => {
626
+ }, "ScrollAreaCorner")), xr = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ K(function(e, t) {
627
+ let { __scopeScrollArea: n, ...r } = e, i = q(yr, n), [a, o] = j.useState(0), [c, l] = j.useState(0), u = !!(a && c), { onCornerWidthChange: d, onCornerHeightChange: f } = i;
628
+ return Z(i.scrollbarX, () => {
550
629
  let e = i.scrollbarX?.offsetHeight || 0;
551
630
  i.onCornerHeightChange(e), l(e);
552
- }), X(i.scrollbarY, () => {
631
+ }), Z(i.scrollbarY, () => {
553
632
  let e = i.scrollbarY?.offsetWidth || 0;
554
633
  i.onCornerWidthChange(e), o(e);
555
634
  }), j.useEffect(() => () => {
@@ -568,48 +647,48 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
568
647
  }
569
648
  }) : null;
570
649
  }, "ScrollAreaCornerImpl"));
571
- function q(e) {
650
+ function Y(e) {
572
651
  return e ? parseInt(e, 10) : 0;
573
652
  }
574
- W(q, "toInt");
575
- function Pn(e, t) {
653
+ K(Y, "toInt");
654
+ function Sr(e, t) {
576
655
  let n = e / t;
577
656
  return isNaN(n) ? 0 : n;
578
657
  }
579
- W(Pn, "getThumbRatio");
580
- function J(e) {
581
- let t = Pn(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
658
+ K(Sr, "getThumbRatio");
659
+ function X(e) {
660
+ let t = Sr(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
582
661
  return Math.max(r, 18);
583
662
  }
584
- W(J, "getThumbSize");
585
- function Fn(e, t, n, r = "ltr") {
586
- let i = J(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
587
- return Ln([c, l], d)(e);
663
+ K(X, "getThumbSize");
664
+ function Cr(e, t, n, r = "ltr") {
665
+ let i = X(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
666
+ return Tr([c, l], d)(e);
588
667
  }
589
- W(Fn, "getScrollPositionFromPointer");
590
- function In(e, t, n = "ltr") {
591
- let r = J(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = T(e, n === "ltr" ? [0, o] : [o * -1, 0]);
592
- return Ln([0, o], [0, s])(c);
668
+ K(Cr, "getScrollPositionFromPointer");
669
+ function wr(e, t, n = "ltr") {
670
+ let r = X(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = ve(e, n === "ltr" ? [0, o] : [o * -1, 0]);
671
+ return Tr([0, o], [0, s])(c);
593
672
  }
594
- W(In, "getThumbOffsetFromScroll");
595
- function Ln(e, t) {
673
+ K(wr, "getThumbOffsetFromScroll");
674
+ function Tr(e, t) {
596
675
  return (n) => {
597
676
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
598
677
  let r = (t[1] - t[0]) / (e[1] - e[0]);
599
678
  return t[0] + r * (n - e[0]);
600
679
  };
601
680
  }
602
- W(Ln, "linearScale");
603
- function Rn(e, t) {
681
+ K(Tr, "linearScale");
682
+ function Er(e, t) {
604
683
  return e > 0 && e < t;
605
684
  }
606
- W(Rn, "isScrollingWithinScrollbarBounds");
607
- var zn = /* @__PURE__ */ W((e, t = () => {}) => {
685
+ K(Er, "isScrollingWithinScrollbarBounds");
686
+ var Dr = /* @__PURE__ */ K((e, t = () => {}) => {
608
687
  let n = {
609
688
  left: e.scrollLeft,
610
689
  top: e.scrollTop
611
690
  }, r = 0;
612
- return (/* @__PURE__ */ W((function i() {
691
+ return (/* @__PURE__ */ K((function i() {
613
692
  let a = {
614
693
  left: e.scrollLeft,
615
694
  top: e.scrollTop
@@ -617,14 +696,14 @@ var zn = /* @__PURE__ */ W((e, t = () => {}) => {
617
696
  (o || s) && t(), n = a, r = window.requestAnimationFrame(i);
618
697
  }), "loop"))(), () => window.cancelAnimationFrame(r);
619
698
  }, "addUnlinkedScrollListener");
620
- function Y(e, t) {
699
+ function Or(e, t) {
621
700
  let n = o(e), r = j.useRef(0);
622
701
  return j.useEffect(() => () => window.clearTimeout(r.current), []), j.useCallback(() => {
623
702
  window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
624
703
  }, [n, t]);
625
704
  }
626
- W(Y, "useDebounceCallback");
627
- function X(e, t) {
705
+ K(Or, "useDebounceCallback");
706
+ function Z(e, t) {
628
707
  let n = o(t);
629
708
  r(() => {
630
709
  let t = 0;
@@ -638,11 +717,11 @@ function X(e, t) {
638
717
  }
639
718
  }, [e, n]);
640
719
  }
641
- W(X, "useResizeObserver");
642
- var Bn = mn, Vn = gn, Hn = Mn;
720
+ K(Z, "useResizeObserver");
721
+ var kr = nr, Ar = ir, jr = br;
643
722
  //#endregion
644
723
  //#region lib/components/ui/feedback/notification-row/partials/notification-row-dot.tsx
645
- function Un({ unread: e }) {
724
+ function Mr({ unread: e }) {
646
725
  let { t } = a();
647
726
  return e ? /* @__PURE__ */ z("span", {
648
727
  "data-slot": "notification-row-dot",
@@ -659,7 +738,7 @@ function Un({ unread: e }) {
659
738
  }
660
739
  //#endregion
661
740
  //#region lib/components/ui/collections/list-row/list-row.tsx
662
- function Wn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, className: a, ...o }) {
741
+ function Nr({ title: e, meta: t, badge: n, unread: r = !1, selected: i, className: a, ...o }) {
663
742
  return /* @__PURE__ */ B("div", {
664
743
  "data-slot": "list-row",
665
744
  "data-unread": r || void 0,
@@ -667,7 +746,7 @@ function Wn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, classNam
667
746
  className: A("flex min-h-14 w-full min-w-0 items-center gap-3 rounded-(--nxgt-item-radius) border border-transparent bg-card px-3 py-2 text-left text-sm", "transition-colors duration-150 hover:bg-muted", i && "border-primary/35 bg-primary/10", a),
668
747
  ...o,
669
748
  children: [
670
- /* @__PURE__ */ z(Un, { unread: r }),
749
+ /* @__PURE__ */ z(Mr, { unread: r }),
671
750
  /* @__PURE__ */ B("span", {
672
751
  className: "flex min-w-0 flex-1 flex-col",
673
752
  children: [/* @__PURE__ */ z("span", {
@@ -688,15 +767,15 @@ function Wn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, classNam
688
767
  }
689
768
  //#endregion
690
769
  //#region lib/components/ui/feedback/alert/alert-tone-icon.tsx
691
- var Gn = {
692
- primary: /* @__PURE__ */ z(_t, {}),
693
- secondary: /* @__PURE__ */ z(_t, {}),
694
- foreground: /* @__PURE__ */ z(_t, {}),
695
- info: /* @__PURE__ */ z(_t, {}),
696
- success: /* @__PURE__ */ z(it, {}),
697
- warning: /* @__PURE__ */ z(At, {}),
698
- error: /* @__PURE__ */ z(rt, {})
699
- }, Kn = u(`transition-all rounded border border-card-edge ${w} p-4 gap-2 text-card-foreground [&_[data-slot=alert-icon]_svg]:mt-1 [&_[data-slot=alert-icon]_svg:not([class*='size-'])]:size-4`, {
770
+ var Pr = {
771
+ primary: /* @__PURE__ */ z(Lt, {}),
772
+ secondary: /* @__PURE__ */ z(Lt, {}),
773
+ foreground: /* @__PURE__ */ z(Lt, {}),
774
+ info: /* @__PURE__ */ z(Lt, {}),
775
+ success: /* @__PURE__ */ z(wt, {}),
776
+ warning: /* @__PURE__ */ z(Xt, {}),
777
+ error: /* @__PURE__ */ z(Ct, {})
778
+ }, Fr = u(`transition-all rounded border border-card-edge ${ee} p-4 gap-2 text-card-foreground [&_[data-slot=alert-icon]_svg]:mt-1 [&_[data-slot=alert-icon]_svg:not([class*='size-'])]:size-4`, {
700
779
  variants: { variant: {
701
780
  primary: "before:bg-primary-indicator bg-[color-mix(in_oklab,var(--color-primary)_8%,var(--color-card))] dark:bg-[color-mix(in_oklab,var(--color-primary)_14%,var(--color-card))] [&_[data-slot=alert-icon]_svg]:text-primary-text shadow-primary/50",
702
781
  secondary: "before:bg-secondary bg-[color-mix(in_oklab,var(--color-secondary)_8%,var(--color-card))] dark:bg-[color-mix(in_oklab,var(--color-secondary)_14%,var(--color-card))] [&_[data-slot=alert-icon]_svg]:text-secondary shadow-secondary/50",
@@ -707,14 +786,14 @@ var Gn = {
707
786
  foreground: "before:bg-foreground bg-muted [&_[data-slot=alert-icon]_svg]:text-foreground shadow-foreground/50"
708
787
  } },
709
788
  defaultVariants: { variant: "primary" }
710
- }), qn = "flex min-w-0 flex-1 flex-col gap-1 break-words whitespace-normal";
789
+ }), Ir = "flex min-w-0 flex-1 flex-col gap-1 break-words whitespace-normal";
711
790
  //#endregion
712
791
  //#region lib/components/ui/feedback/alert/alert.tsx
713
- function Jn({ description: e, actions: t, children: n, icon: r, title: i, className: a, variant: o, ...s }) {
714
- let l = r === void 0 ? Gn[o ?? "primary"] : r;
792
+ function Lr({ description: e, actions: t, children: n, icon: r, title: i, className: a, variant: o, ...s }) {
793
+ let l = r === void 0 ? Pr[o ?? "primary"] : r;
715
794
  return /* @__PURE__ */ B("div", {
716
795
  "data-slot": "alert",
717
- className: A("flex", Kn({
796
+ className: A("flex", Fr({
718
797
  variant: o,
719
798
  className: a
720
799
  })),
@@ -724,7 +803,7 @@ function Jn({ description: e, actions: t, children: n, icon: r, title: i, classN
724
803
  className: "shrink-0",
725
804
  children: l
726
805
  }), /* @__PURE__ */ B("div", {
727
- className: qn,
806
+ className: Ir,
728
807
  children: [
729
808
  k(i) && /* @__PURE__ */ z(c, {
730
809
  "data-slot": "alert-title",
@@ -752,8 +831,460 @@ function Jn({ description: e, actions: t, children: n, icon: r, title: i, classN
752
831
  });
753
832
  }
754
833
  //#endregion
834
+ //#region lib/hooks/use-latched.ts
835
+ function Rr(e, t) {
836
+ let n = I(t);
837
+ return e && (n.current = t), e ? t : n.current;
838
+ }
839
+ //#endregion
840
+ //#region lib/components/ui/feedback/alert-dialog/alert-dialog-actions.tsx
841
+ function zr({ className: e, ...t }) {
842
+ return /* @__PURE__ */ z(Nn, {
843
+ className: A(T({
844
+ variant: t.variant,
845
+ color: t.color
846
+ }), e),
847
+ ...t
848
+ });
849
+ }
850
+ function Br({ className: e, ...t }) {
851
+ return /* @__PURE__ */ z(Pn, {
852
+ "data-slot": "button",
853
+ "data-color": t.color,
854
+ "data-variant": t.variant ?? "tonal",
855
+ className: A(T({
856
+ variant: t.variant ?? "tonal",
857
+ color: t.color
858
+ }), e),
859
+ ...t
860
+ });
861
+ }
862
+ //#endregion
863
+ //#region lib/components/ui/feedback/alert-dialog/alert-dialog.tsx
864
+ function Vr({ ...e }) {
865
+ return /* @__PURE__ */ z(kn, {
866
+ "data-slot": "alert-dialog",
867
+ ...e
868
+ });
869
+ }
870
+ function Hr({ container: e, ...t }) {
871
+ return /* @__PURE__ */ z(An, {
872
+ "data-slot": "alert-dialog-portal",
873
+ container: f(e),
874
+ ...t
875
+ });
876
+ }
877
+ function Ur({ className: e, ...t }) {
878
+ return /* @__PURE__ */ z(jn, {
879
+ "data-slot": "alert-dialog-overlay",
880
+ className: A("nxgt-scrim fixed inset-0 z-50", e),
881
+ ...t
882
+ });
883
+ }
884
+ function Wr({ className: e, onOpenAutoFocus: t, onCloseAutoFocus: n, onEscapeKeyDown: r, ref: i, ...a }) {
885
+ let o = Ee({
886
+ onOpenAutoFocus: t,
887
+ onCloseAutoFocus: n
888
+ }, { focusFallback: !0 }), s = le({
889
+ ref: i,
890
+ onEscapeKeyDown: r,
891
+ ...a
892
+ }, !0);
893
+ return /* @__PURE__ */ z(_, { children: /* @__PURE__ */ z(C, {
894
+ value: !0,
895
+ children: /* @__PURE__ */ B(Hr, { children: [/* @__PURE__ */ z(Ur, { ref: s.overlayRef }), /* @__PURE__ */ z(Mn, {
896
+ ref: s.ref,
897
+ "data-slot": "alert-dialog-content",
898
+ className: A("nxgt-dialog @container/dialog fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 p-6 sm:max-w-lg max-h-[calc(100dvh-2rem)] supports-[not(height:100dvh)]:max-h-[calc(100vh-2rem)] overflow-y-auto", e),
899
+ onOpenAutoFocus: o.onOpenAutoFocus,
900
+ onCloseAutoFocus: o.onCloseAutoFocus,
901
+ onEscapeKeyDown: s.onEscapeKeyDown,
902
+ ...a,
903
+ onFocusOutside: s.outside.onFocusOutside
904
+ })] })
905
+ }) });
906
+ }
907
+ function Gr({ className: e, ...t }) {
908
+ return /* @__PURE__ */ z("div", {
909
+ "data-slot": "alert-dialog-header",
910
+ className: A("flex flex-col gap-2 text-left", e),
911
+ ...t
912
+ });
913
+ }
914
+ function Kr({ className: e, ...t }) {
915
+ return /* @__PURE__ */ z("div", {
916
+ "data-slot": "alert-dialog-footer",
917
+ className: A("flex flex-row flex-wrap justify-end gap-2 pt-2 @max-sm/dialog:*:min-h-11 @max-sm/dialog:*:flex-1", e),
918
+ ...t
919
+ });
920
+ }
921
+ function qr({ className: e, ...t }) {
922
+ return /* @__PURE__ */ z(Fn, {
923
+ "data-slot": "alert-dialog-title",
924
+ className: A("text-2xl/8 font-medium tracking-tight text-foreground", e),
925
+ ...t
926
+ });
927
+ }
928
+ function Jr({ className: e, ...t }) {
929
+ return /* @__PURE__ */ z(In, {
930
+ "data-slot": "alert-dialog-description",
931
+ className: A("text-muted-foreground text-sm/6", e),
932
+ ...t
933
+ });
934
+ }
935
+ //#endregion
936
+ //#region lib/components/ui/feedback/confirm-dialog/action-refusal.ts
937
+ var Yr = class extends Error {
938
+ action;
939
+ details;
940
+ constructor(e, t) {
941
+ super(e), this.name = "ActionRefusal", this.action = t.action, this.details = t.details;
942
+ }
943
+ };
944
+ function Xr(e) {
945
+ return e instanceof Yr || e instanceof Error && e.name === "ActionRefusal" && typeof e.action?.label == "string";
946
+ }
947
+ //#endregion
948
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-refusal.tsx
949
+ var Zr = "font-medium text-inherit underline underline-offset-2";
950
+ function Qr({ action: e, close: t }) {
951
+ return e.href && !e.onAction ? /* @__PURE__ */ z("a", {
952
+ className: Zr,
953
+ href: e.href,
954
+ onClick: t,
955
+ children: e.label
956
+ }) : /* @__PURE__ */ z("button", {
957
+ type: "button",
958
+ className: Zr,
959
+ onClick: () => {
960
+ e.onAction?.(), t();
961
+ },
962
+ children: e.label
963
+ });
964
+ }
965
+ function $r({ message: e, cause: t, close: n }) {
966
+ return Xr(t) ? /* @__PURE__ */ B("div", {
967
+ className: "flex flex-col gap-1",
968
+ children: [
969
+ /* @__PURE__ */ z("span", { children: e }),
970
+ t.details != null && /* @__PURE__ */ z("span", {
971
+ className: "text-muted-foreground",
972
+ children: t.details
973
+ }),
974
+ /* @__PURE__ */ z("span", { children: /* @__PURE__ */ z(Qr, {
975
+ action: t.action,
976
+ close: n
977
+ }) })
978
+ ]
979
+ }) : /* @__PURE__ */ z(R, { children: e });
980
+ }
981
+ //#endregion
982
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-alert.tsx
983
+ function ei({ message: e, cause: t, close: n, refusal: r }) {
984
+ return /* @__PURE__ */ z("div", {
985
+ role: "alert",
986
+ className: "text-sm text-error-text",
987
+ children: r ? r({
988
+ message: e,
989
+ cause: t,
990
+ close: n
991
+ }) : /* @__PURE__ */ z($r, {
992
+ message: e,
993
+ cause: t,
994
+ close: n
995
+ })
996
+ });
997
+ }
998
+ //#endregion
999
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-description.tsx
1000
+ function ti({ children: e, details: t }) {
1001
+ return typeof e == "string" && t == null ? /* @__PURE__ */ z(Jr, { children: e }) : /* @__PURE__ */ z(Jr, {
1002
+ asChild: !0,
1003
+ children: /* @__PURE__ */ z("div", {
1004
+ className: "space-y-2",
1005
+ children: t == null ? e : /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("div", { children: e }), /* @__PURE__ */ z("div", { children: t })] })
1006
+ })
1007
+ });
1008
+ }
1009
+ //#endregion
1010
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.ts
1011
+ function ni({ busy: e, confirmDisabled: t, lockOnRefusal: n, error: r, cause: i }) {
1012
+ let a = !!r && (typeof n == "function" ? n(i) : !!n);
1013
+ return e || !!t || a;
1014
+ }
1015
+ function ri(e, t, n = "exact") {
1016
+ if (t === "") return !0;
1017
+ if (n === "exact") return e === t;
1018
+ let r = e.trim(), i = t.trim();
1019
+ return n === "trim" ? r === i : r.toLowerCase() === i.toLowerCase();
1020
+ }
1021
+ function ii(e) {
1022
+ return e.tone ?? (e.variant === "destructive" ? "danger" : "default");
1023
+ }
1024
+ var ai = {
1025
+ default: "primary",
1026
+ warning: "warning",
1027
+ danger: "error"
1028
+ }, oi = D;
1029
+ function si({ className: e, type: t = "text", ...n }) {
1030
+ return /* @__PURE__ */ z("input", {
1031
+ type: t,
1032
+ "data-slot": "input",
1033
+ className: A(oi, e),
1034
+ "data-pw": n.name ?? "input",
1035
+ ...n,
1036
+ placeholder: Ye(n.placeholder, t)
1037
+ });
1038
+ }
1039
+ //#endregion
1040
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-phrase.tsx
1041
+ function ci({ phrase: e, value: t, onValueChange: n, onEnter: r, disabled: i, inputRef: o }) {
1042
+ let { t: s } = a(), c = F(), l = `${c}-phrase`;
1043
+ return /* @__PURE__ */ B("div", {
1044
+ className: "grid gap-2",
1045
+ "data-slot": "confirm-phrase",
1046
+ children: [
1047
+ /* @__PURE__ */ z(h, {
1048
+ htmlFor: c,
1049
+ children: s("material.confirm-dialog.type-phrase-label", "Type the phrase below to confirm")
1050
+ }),
1051
+ /* @__PURE__ */ z("code", {
1052
+ id: l,
1053
+ "data-slot": "confirm-phrase-value",
1054
+ className: "block rounded bg-muted px-2 py-1 font-mono text-sm break-all select-all",
1055
+ children: e
1056
+ }),
1057
+ /* @__PURE__ */ z(si, {
1058
+ id: c,
1059
+ "aria-describedby": l,
1060
+ ref: o,
1061
+ value: t,
1062
+ disabled: i,
1063
+ autoComplete: "off",
1064
+ autoCapitalize: "off",
1065
+ autoCorrect: "off",
1066
+ spellCheck: !1,
1067
+ onChange: (e) => n(e.target.value),
1068
+ onKeyDown: (e) => {
1069
+ e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), r());
1070
+ }
1071
+ })
1072
+ ]
1073
+ });
1074
+ }
1075
+ function li(e, t, n) {
1076
+ let r = I(null), [i, a] = L("");
1077
+ return P(() => {
1078
+ e || a("");
1079
+ }, [e]), {
1080
+ ref: r,
1081
+ typed: i,
1082
+ setTyped: a,
1083
+ missing: !!t && !ri(i, t ?? "", n)
1084
+ };
1085
+ }
1086
+ //#endregion
1087
+ //#region lib/components/ui/primitives/textarea/textarea.tsx
1088
+ function ui({ className: e, ...t }) {
1089
+ return /* @__PURE__ */ z("textarea", {
1090
+ "data-slot": "textarea",
1091
+ "data-pw": t.name ?? "textarea",
1092
+ className: A(y, "placeholder:text-muted-foreground flex resize-none outline-none", "field-sizing-content min-h-16 w-full min-w-[min(280px,100%)] px-3 py-2 text-base md:text-sm", e),
1093
+ ...t,
1094
+ placeholder: t.placeholder || " "
1095
+ });
1096
+ }
1097
+ //#endregion
1098
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-reason.tsx
1099
+ function di({ reason: e, state: t, disabled: n }) {
1100
+ let { typed: r, setTyped: i, ref: o } = t, { t: s } = a(), c = F(), l = `${c}-note`, { maxLength: u } = e, d = !!e.helperText || u != null;
1101
+ return /* @__PURE__ */ B("div", {
1102
+ className: "grid gap-2",
1103
+ "data-slot": "confirm-reason",
1104
+ children: [
1105
+ /* @__PURE__ */ z(h, {
1106
+ htmlFor: c,
1107
+ withAsterisk: !0,
1108
+ children: e.label ?? s("material.confirm-dialog.reason", "Reason")
1109
+ }),
1110
+ /* @__PURE__ */ z(ui, {
1111
+ id: c,
1112
+ ref: o,
1113
+ value: r,
1114
+ required: !0,
1115
+ "aria-required": "true",
1116
+ rows: e.rows ?? 3,
1117
+ maxLength: u,
1118
+ placeholder: e.placeholder,
1119
+ disabled: n,
1120
+ "aria-describedby": d ? l : void 0,
1121
+ onChange: (e) => i(e.target.value)
1122
+ }),
1123
+ d && /* @__PURE__ */ B("p", {
1124
+ id: l,
1125
+ className: "text-muted-foreground flex justify-between gap-3 text-xs",
1126
+ children: [/* @__PURE__ */ z("span", { children: e.helperText }), u != null && /* @__PURE__ */ z("span", {
1127
+ className: "ms-auto shrink-0 whitespace-nowrap tabular-nums",
1128
+ children: s("material.confirm-dialog.reason-count", "{count} / {max}", {
1129
+ count: r.length,
1130
+ max: u
1131
+ })
1132
+ })]
1133
+ })
1134
+ ]
1135
+ });
1136
+ }
1137
+ function fi(e, t) {
1138
+ let n = I(null), [r, i] = L("");
1139
+ P(() => {
1140
+ e || i("");
1141
+ }, [e]);
1142
+ let a = r.trim();
1143
+ return {
1144
+ ref: n,
1145
+ typed: r,
1146
+ setTyped: i,
1147
+ value: a,
1148
+ missing: t && a === ""
1149
+ };
1150
+ }
1151
+ //#endregion
1152
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-fields.tsx
1153
+ function pi({ phrase: e, typedPhrase: t, reason: n, typedReason: r, disabled: i, onEnter: a }) {
1154
+ return /* @__PURE__ */ B(R, { children: [e && /* @__PURE__ */ z(ci, {
1155
+ phrase: e,
1156
+ value: t.typed,
1157
+ onValueChange: t.setTyped,
1158
+ onEnter: a,
1159
+ disabled: i,
1160
+ inputRef: t.ref
1161
+ }), n && /* @__PURE__ */ z(di, {
1162
+ reason: n,
1163
+ state: r,
1164
+ disabled: i
1165
+ })] });
1166
+ }
1167
+ //#endregion
1168
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-footer.tsx
1169
+ function mi({ tone: e, busy: t, disabled: n, cancelLabel: r, confirmLabel: i, cancelVariant: o, onConfirm: s }) {
1170
+ let { t: c } = a();
1171
+ return /* @__PURE__ */ B(Kr, { children: [/* @__PURE__ */ z(Br, {
1172
+ disabled: t,
1173
+ variant: o,
1174
+ children: r ?? c("material.confirm-dialog.cancel", "Cancel")
1175
+ }), /* @__PURE__ */ z(zr, {
1176
+ onClick: s,
1177
+ color: ai[e],
1178
+ "data-tone": e,
1179
+ disabled: n,
1180
+ children: t ? c("material.confirm-dialog.processing", "Processing...") : i ?? c("material.confirm-dialog.confirm", "Confirm")
1181
+ })] });
1182
+ }
1183
+ //#endregion
1184
+ //#region lib/components/ui/feedback/confirm-dialog/use-confirm-action.ts
1185
+ function hi({ open: e, onOpenChange: t, onConfirm: n, reason: r = "" }) {
1186
+ let { t: i } = a(), [o, s] = L(!1), [c, l] = L(null), [u, d] = L(null);
1187
+ return P(() => {
1188
+ e || (l(null), d(null));
1189
+ }, [e]), {
1190
+ pending: o,
1191
+ error: c,
1192
+ cause: u,
1193
+ handleOpenChange: (e) => {
1194
+ e && (l(null), d(null)), t(e);
1195
+ },
1196
+ handleConfirm: async (e) => {
1197
+ e.preventDefault(), l(null), d(null), s(!0);
1198
+ try {
1199
+ await n(r), t(!1);
1200
+ } catch (e) {
1201
+ d(e), l(e instanceof Error && e.message ? e.message : i("material.confirm-dialog.failed", "The action failed."));
1202
+ } finally {
1203
+ s(!1);
1204
+ }
1205
+ }
1206
+ };
1207
+ }
1208
+ function gi(e) {
1209
+ let t = I(null);
1210
+ return P(() => {
1211
+ let n = t.current;
1212
+ if (!e || !n) return;
1213
+ let r = document.activeElement;
1214
+ (r === document.body || n.contains(r)) && n.focus();
1215
+ }, [e]), t;
1216
+ }
1217
+ function _i(e, t) {
1218
+ t && (e.preventDefault(), t.focus());
1219
+ }
1220
+ //#endregion
1221
+ //#region lib/components/ui/feedback/confirm-dialog/confirm-dialog.tsx
1222
+ function vi(e) {
1223
+ let { open: t, onOpenChange: n, onConfirm: r, loading: i = !1 } = e, a = Rr(t, {
1224
+ title: e.title,
1225
+ description: e.description,
1226
+ details: e.details,
1227
+ confirmLabel: e.confirmLabel,
1228
+ cancelLabel: e.cancelLabel,
1229
+ tone: ii(e),
1230
+ confirmPhrase: e.confirmPhrase,
1231
+ reason: e.reason
1232
+ }), o = fi(t, !!a.reason), { pending: s, error: c, cause: l, handleOpenChange: u, handleConfirm: d } = hi({
1233
+ open: t,
1234
+ onOpenChange: n,
1235
+ onConfirm: r,
1236
+ reason: o.value
1237
+ }), f = i || s, p = gi(s), m = li(t, a.confirmPhrase, e.confirmPhraseMatch ?? "exact"), h = ni({
1238
+ busy: f,
1239
+ confirmDisabled: e.confirmDisabled || m.missing || o.missing,
1240
+ lockOnRefusal: e.lockOnRefusal,
1241
+ error: c,
1242
+ cause: l
1243
+ });
1244
+ return /* @__PURE__ */ z(Vr, {
1245
+ open: t,
1246
+ onOpenChange: u,
1247
+ children: /* @__PURE__ */ B(Wr, {
1248
+ ref: p,
1249
+ onOpenAutoFocus: (e) => _i(e, m.ref.current ?? o.ref.current),
1250
+ onCloseAutoFocus: e.onCloseAutoFocus,
1251
+ children: [
1252
+ /* @__PURE__ */ B(Gr, { children: [/* @__PURE__ */ z(qr, { children: a.title }), /* @__PURE__ */ z(ti, {
1253
+ details: a.details,
1254
+ children: a.description
1255
+ })] }),
1256
+ /* @__PURE__ */ z(pi, {
1257
+ phrase: a.confirmPhrase,
1258
+ typedPhrase: m,
1259
+ reason: a.reason,
1260
+ typedReason: o,
1261
+ disabled: f,
1262
+ onEnter: () => {
1263
+ h || d({ preventDefault() {} });
1264
+ }
1265
+ }),
1266
+ c && /* @__PURE__ */ z(ei, {
1267
+ message: c,
1268
+ cause: l,
1269
+ close: () => n(!1),
1270
+ refusal: e.refusal
1271
+ }),
1272
+ /* @__PURE__ */ z(mi, {
1273
+ tone: a.tone,
1274
+ busy: f,
1275
+ disabled: h,
1276
+ cancelLabel: a.cancelLabel,
1277
+ confirmLabel: a.confirmLabel,
1278
+ cancelVariant: e.cancelVariant,
1279
+ onConfirm: d
1280
+ })
1281
+ ]
1282
+ })
1283
+ });
1284
+ }
1285
+ //#endregion
755
1286
  //#region lib/hooks/use-focus-on-mount.ts
756
- function Yn(e = !0) {
1287
+ function yi(e = !0) {
757
1288
  let t = I(null);
758
1289
  return P(() => {
759
1290
  e && t.current?.focus();
@@ -761,7 +1292,7 @@ function Yn(e = !0) {
761
1292
  }
762
1293
  //#endregion
763
1294
  //#region lib/components/ui/feedback/state-frame/state-frame-text.tsx
764
- function Xn({ title: e, description: t, headingLevel: n, titleRef: r, inline: i, compact: a }) {
1295
+ function bi({ title: e, description: t, headingLevel: n, titleRef: r, inline: i, compact: a }) {
765
1296
  return e == null && t == null ? null : /* @__PURE__ */ B("div", {
766
1297
  className: A("flex flex-col", i ? "min-w-0 flex-1 gap-0.5" : "max-w-sm gap-2"),
767
1298
  children: [e != null && /* @__PURE__ */ z(c, {
@@ -780,22 +1311,22 @@ function Xn({ title: e, description: t, headingLevel: n, titleRef: r, inline: i,
780
1311
  }
781
1312
  //#endregion
782
1313
  //#region lib/components/ui/feedback/state-frame/state-icon.tsx
783
- var Zn = {
784
- "package-open": bt,
785
- search: Ct,
786
- "file-question": pt,
787
- "shield-alert": Tt,
788
- "alert-circle": Qe,
789
- "wifi-off": jt,
790
- construction: ot
1314
+ var xi = {
1315
+ "package-open": Bt,
1316
+ search: Ut,
1317
+ "file-question": Nt,
1318
+ "shield-alert": Gt,
1319
+ "alert-circle": vt,
1320
+ "wifi-off": Zt,
1321
+ construction: Et
791
1322
  };
792
- function Qn({ kind: e }) {
793
- let t = Zn[Nt[e]];
1323
+ function Si({ kind: e }) {
1324
+ let t = xi[$t[e]];
794
1325
  return /* @__PURE__ */ z(t, { "aria-hidden": "true" });
795
1326
  }
796
1327
  //#endregion
797
1328
  //#region lib/components/ui/feedback/state-frame/state-scene-illustration.tsx
798
- function $n({ scene: e, size: t, loading: n }) {
1329
+ function Ci({ scene: e, size: t, loading: n }) {
799
1330
  return /* @__PURE__ */ z("div", {
800
1331
  "data-slot": "illustration",
801
1332
  "data-scene": e,
@@ -803,27 +1334,27 @@ function $n({ scene: e, size: t, loading: n }) {
803
1334
  "data-fallback": n ? void 0 : "",
804
1335
  "data-loading": n ? "" : void 0,
805
1336
  "aria-hidden": "true",
806
- children: /* @__PURE__ */ z(Pe, {
807
- kind: Ve[e] ?? "empty",
1337
+ children: /* @__PURE__ */ z(Ze, {
1338
+ kind: it[e] ?? "empty",
808
1339
  className: "h-full w-full"
809
1340
  })
810
1341
  });
811
1342
  }
812
- var er = Fe("illustration", async () => {
1343
+ var wi = Qe("illustration", async () => {
813
1344
  let { Illustration: e } = await import("./embed-chunks/illustration-ByW4pxRC.js");
814
1345
  return ({ scene: t, size: n }) => /* @__PURE__ */ z(e, {
815
1346
  scene: t,
816
1347
  size: n
817
1348
  });
818
- }, $n);
819
- function tr({ scene: e, size: t }) {
820
- return /* @__PURE__ */ z(We, {
821
- fallback: /* @__PURE__ */ z($n, {
1349
+ }, Ci);
1350
+ function Ti({ scene: e, size: t }) {
1351
+ return /* @__PURE__ */ z(ot, {
1352
+ fallback: /* @__PURE__ */ z(Ci, {
822
1353
  scene: e,
823
1354
  size: t,
824
1355
  loading: !0
825
1356
  }),
826
- children: /* @__PURE__ */ z(er, {
1357
+ children: /* @__PURE__ */ z(wi, {
827
1358
  scene: e,
828
1359
  size: t
829
1360
  })
@@ -831,16 +1362,16 @@ function tr({ scene: e, size: t }) {
831
1362
  }
832
1363
  //#endregion
833
1364
  //#region lib/components/ui/feedback/state-frame/use-state-media.tsx
834
- function nr({ kind: e, size: t, illustration: n, icon: r }) {
835
- let i = t === "inline", a = t === "compact" || i, o = A("flex shrink-0 items-center justify-center rounded", Re[Mt[e]], i ? "size-8 rounded-full [&_svg]:size-4" : a ? "size-10 [&_svg]:size-5" : "size-16 [&_svg]:size-7"), s = Ie(), c = n === !0 || ze(n, s?.sets) ? ze(n, s?.sets) ? n : Le[e] : null, l = n == null && r == null && t === "default" ? Be(s, Le[e]) : void 0, u = i ? null : c ?? (l ? Le[e] : null), d = null;
836
- return d = n === !1 ? null : u ? /* @__PURE__ */ z(tr, {
1365
+ function Ei({ kind: e, size: t, illustration: n, icon: r }) {
1366
+ let i = t === "inline", a = t === "compact" || i, o = A("flex shrink-0 items-center justify-center rounded", tt[Qt[e]], i ? "size-8 rounded-full [&_svg]:size-4" : a ? "size-10 [&_svg]:size-5" : "size-16 [&_svg]:size-7"), s = $e(), c = n === !0 || nt(n, s?.sets) ? nt(n, s?.sets) ? n : et[e] : null, l = n == null && r == null && t === "default" ? rt(s, et[e]) : void 0, u = i ? null : c ?? (l ? et[e] : null), d = null;
1367
+ return d = n === !1 ? null : u ? /* @__PURE__ */ z(Ti, {
837
1368
  scene: u,
838
1369
  size: a ? "sm" : "md"
839
- }) : n != null && n !== !0 && !ze(n, s?.sets) ? n : r == null ? a ? /* @__PURE__ */ z("div", {
1370
+ }) : n != null && n !== !0 && !nt(n, s?.sets) ? n : r == null ? a ? /* @__PURE__ */ z("div", {
840
1371
  "data-slot": "state-icon-well",
841
1372
  className: o,
842
- children: /* @__PURE__ */ z(Qn, { kind: e })
843
- }) : /* @__PURE__ */ z(Pe, { kind: e }) : /* @__PURE__ */ z("div", {
1373
+ children: /* @__PURE__ */ z(Si, { kind: e })
1374
+ }) : /* @__PURE__ */ z(Ze, { kind: e }) : /* @__PURE__ */ z("div", {
844
1375
  "data-slot": "state-icon-well",
845
1376
  className: o,
846
1377
  children: r
@@ -848,8 +1379,8 @@ function nr({ kind: e, size: t, illustration: n, icon: r }) {
848
1379
  }
849
1380
  //#endregion
850
1381
  //#region lib/components/ui/feedback/state-frame/state-frame.tsx
851
- function rr({ kind: e, size: t = "default", illustration: n, icon: r, title: i, headingLevel: a, focusTitle: o = !1, description: s, actions: c, className: l, children: u, ...d }) {
852
- let f = t === "inline", p = t === "compact" || f, m = Yn(o), h = nr({
1382
+ function Di({ kind: e, size: t = "default", illustration: n, icon: r, title: i, headingLevel: a, focusTitle: o = !1, description: s, actions: c, className: l, children: u, ...d }) {
1383
+ let f = t === "inline", p = t === "compact" || f, m = yi(o), h = Ei({
853
1384
  kind: e,
854
1385
  size: t,
855
1386
  illustration: n,
@@ -862,7 +1393,7 @@ function rr({ kind: e, size: t = "default", illustration: n, icon: r, title: i,
862
1393
  ...d,
863
1394
  children: [
864
1395
  h,
865
- /* @__PURE__ */ z(Xn, {
1396
+ /* @__PURE__ */ z(bi, {
866
1397
  title: i,
867
1398
  description: s,
868
1399
  headingLevel: a,
@@ -880,9 +1411,9 @@ function rr({ kind: e, size: t = "default", illustration: n, icon: r, title: i,
880
1411
  }
881
1412
  //#endregion
882
1413
  //#region lib/components/ui/feedback/empty-state/empty-state.tsx
883
- function ir({ kind: e = "empty", size: t = "default", illustration: n, icon: r, title: i, description: o, action: s, ...c }) {
884
- let l = Pt(e, "empty-state"), { t: u } = a(), d = o ?? (i == null ? u(l.descriptionKey, l.description) : void 0);
885
- return /* @__PURE__ */ z(rr, {
1414
+ function Oi({ kind: e = "empty", size: t = "default", illustration: n, icon: r, title: i, description: o, action: s, ...c }) {
1415
+ let l = en(e, "empty-state"), { t: u } = a(), d = o ?? (i == null ? u(l.descriptionKey, l.description) : void 0);
1416
+ return /* @__PURE__ */ z(Di, {
886
1417
  "data-slot": "empty-state",
887
1418
  "data-variant": e,
888
1419
  kind: e,
@@ -897,7 +1428,7 @@ function ir({ kind: e = "empty", size: t = "default", illustration: n, icon: r,
897
1428
  }
898
1429
  //#endregion
899
1430
  //#region lib/components/ui/feedback/skeleton/skeleton-text.tsx
900
- function ar({ lines: e = 3, labelled: t = !0, className: n, ...r }) {
1431
+ function ki({ lines: e = 3, labelled: t = !0, className: n, ...r }) {
901
1432
  let { t: i } = a(), o = Math.max(1, e);
902
1433
  return /* @__PURE__ */ B("div", {
903
1434
  "data-slot": "skeleton-text",
@@ -908,29 +1439,16 @@ function ar({ lines: e = 3, labelled: t = !0, className: n, ...r }) {
908
1439
  children: [t && /* @__PURE__ */ z("span", {
909
1440
  className: "sr-only",
910
1441
  children: i("material.skeleton.loading", "Loading")
911
- }), Array.from({ length: o }, (e, t) => /* @__PURE__ */ z(_e, { className: A("h-3 w-full", t === o - 1 && o > 1 && "w-3/4") }, t))]
912
- });
913
- }
914
- //#endregion
915
- //#region lib/components/ui/primitives/input/input.tsx
916
- var or = D;
917
- function sr({ className: e, type: t = "text", ...n }) {
918
- return /* @__PURE__ */ z("input", {
919
- type: t,
920
- "data-slot": "input",
921
- className: A(or, e),
922
- "data-pw": n.name ?? "input",
923
- ...n,
924
- placeholder: Ne(n.placeholder, t)
1442
+ }), Array.from({ length: o }, (e, t) => /* @__PURE__ */ z(Ne, { className: A("h-3 w-full", t === o - 1 && o > 1 && "w-3/4") }, t))]
925
1443
  });
926
1444
  }
927
1445
  //#endregion
928
1446
  //#region lib/components/ui/fields/text-field/text-field-label.tsx
929
- function cr({ children: e, action: t, required: n, htmlFor: r }) {
1447
+ function Ai({ children: e, action: t, required: n, htmlFor: r }) {
930
1448
  return t ? /* @__PURE__ */ B("div", {
931
1449
  "data-slot": "field-label-row",
932
1450
  className: "flex items-baseline justify-between gap-2",
933
- children: [/* @__PURE__ */ z(y, {
1451
+ children: [/* @__PURE__ */ z(h, {
934
1452
  withAsterisk: n,
935
1453
  htmlFor: r,
936
1454
  className: "min-w-0",
@@ -940,7 +1458,7 @@ function cr({ children: e, action: t, required: n, htmlFor: r }) {
940
1458
  className: "shrink-0",
941
1459
  children: t
942
1460
  })]
943
- }) : /* @__PURE__ */ z(y, {
1461
+ }) : /* @__PURE__ */ z(h, {
944
1462
  withAsterisk: n,
945
1463
  htmlFor: r,
946
1464
  children: e
@@ -948,42 +1466,42 @@ function cr({ children: e, action: t, required: n, htmlFor: r }) {
948
1466
  }
949
1467
  //#endregion
950
1468
  //#region lib/lib/compose-refs.ts
951
- function lr(...e) {
1469
+ function ji(...e) {
952
1470
  return (t) => {
953
1471
  for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
954
1472
  };
955
1473
  }
956
1474
  //#endregion
957
1475
  //#region lib/components/ui/fields/text-field/text-field-units.tsx
958
- function ur(e, t, n) {
1476
+ function Mi(e, t, n) {
959
1477
  return e === "password" && t ? "•".repeat(t.length) : t || n || " ";
960
1478
  }
961
- var dr = "button, a, input, select, textarea, label, [role=button], [role=menuitem]";
962
- function fr(e, t) {
963
- e.defaultPrevented || e.target.closest(dr) || t?.focus();
1479
+ var Ni = "button, a, input, select, textarea, label, [role=button], [role=menuitem]";
1480
+ function Pi(e, t) {
1481
+ e.defaultPrevented || e.target.closest(Ni) || t?.focus();
964
1482
  }
965
- function pr({ align: e, node: t }) {
966
- return t ? /* @__PURE__ */ z(be, {
1483
+ function Fi({ align: e, node: t }) {
1484
+ return t ? /* @__PURE__ */ z(Ie, {
967
1485
  align: e,
968
1486
  "data-slot": e === "inline-start" ? "text-field-leading" : "text-field-trailing",
969
1487
  className: A("flex-none py-1 text-base md:text-sm font-normal whitespace-nowrap tabular-nums", N(t) && "[&>*]:size-8 pointer-coarse:[&>*]:size-11"),
970
1488
  children: t
971
1489
  }) : null;
972
1490
  }
973
- function mr({ leading: e, trailing: t, ref: n, ...r }) {
974
- let i = r.value !== void 0, [a, o] = L(null), s = I(null), c = Xe(() => lr(s, n), [n]);
1491
+ function Ii({ leading: e, trailing: t, ref: n, ...r }) {
1492
+ let i = r.value !== void 0, [a, o] = L(null), s = I(null), c = pt(() => ji(s, n), [n]);
975
1493
  P(() => {
976
1494
  let e = s.current?.form;
977
1495
  if (!e || i) return;
978
1496
  let t = () => o(null);
979
1497
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
980
1498
  }, [i]);
981
- let l = i ? String(r.value ?? "") : a ?? String(r.defaultValue ?? ""), u = ur(r.type, l, r.placeholder);
982
- return /* @__PURE__ */ B(je, {
1499
+ let l = i ? String(r.value ?? "") : a ?? String(r.defaultValue ?? ""), u = Mi(r.type, l, r.placeholder);
1500
+ return /* @__PURE__ */ B(qe, {
983
1501
  className: "gap-1",
984
- onClick: (e) => fr(e, s.current),
1502
+ onClick: (e) => Pi(e, s.current),
985
1503
  children: [
986
- /* @__PURE__ */ z(pr, {
1504
+ /* @__PURE__ */ z(Fi, {
987
1505
  align: "inline-start",
988
1506
  node: e
989
1507
  }),
@@ -991,7 +1509,7 @@ function mr({ leading: e, trailing: t, ref: n, ...r }) {
991
1509
  "data-slot": "text-field-value",
992
1510
  "data-value": u,
993
1511
  className: A("inline-grid h-full max-w-full min-w-4 items-center text-base md:text-sm", "after:invisible after:col-start-1 after:row-start-1 after:whitespace-pre after:content-[attr(data-value)]", t ? "flex-none shrink" : "flex-1", e ? "pointer-coarse:min-w-11" : "ps-3 pointer-coarse:min-w-14", !t && "pe-3"),
994
- children: /* @__PURE__ */ z(Ee, {
1512
+ children: /* @__PURE__ */ z(He, {
995
1513
  ...r,
996
1514
  ref: c,
997
1515
  className: "col-start-1 row-start-1 w-0 min-w-full px-0 md:pb-1.5 [font:inherit] [font-variant-numeric:inherit] [letter-spacing:inherit]",
@@ -1000,7 +1518,7 @@ function mr({ leading: e, trailing: t, ref: n, ...r }) {
1000
1518
  }
1001
1519
  })
1002
1520
  }),
1003
- /* @__PURE__ */ z(pr, {
1521
+ /* @__PURE__ */ z(Fi, {
1004
1522
  align: "inline-end",
1005
1523
  node: t
1006
1524
  })
@@ -1009,13 +1527,13 @@ function mr({ leading: e, trailing: t, ref: n, ...r }) {
1009
1527
  }
1010
1528
  //#endregion
1011
1529
  //#region lib/components/ui/fields/text-field/text-field.tsx
1012
- function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, leading: a, trailing: o, ...s }) {
1013
- let c = fe(), l = F(), u = F(), d = Ft(s["aria-describedby"], !!t && u), f = !!a && !N(a), p = !!o && !N(o), m = {
1530
+ function Li({ error: e, helperText: t, label: n, labelAction: r, className: i, leading: a, trailing: o, ...s }) {
1531
+ let c = ce(), l = F(), u = F(), d = tn(s["aria-describedby"], !!t && u), f = !!a && !N(a), p = !!o && !N(o), m = {
1014
1532
  "aria-invalid": e,
1015
1533
  ...s,
1016
1534
  id: s.id ?? l,
1017
1535
  "aria-describedby": d
1018
- }, h = f || p ? /* @__PURE__ */ z(mr, {
1536
+ }, h = f || p ? /* @__PURE__ */ z(Ii, {
1019
1537
  ...m,
1020
1538
  leading: a,
1021
1539
  trailing: o
@@ -1026,7 +1544,7 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
1026
1544
  }),
1027
1545
  children: [
1028
1546
  a,
1029
- /* @__PURE__ */ z(sr, { ...m }),
1547
+ /* @__PURE__ */ z(si, { ...m }),
1030
1548
  o
1031
1549
  ]
1032
1550
  });
@@ -1034,14 +1552,14 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
1034
1552
  ref: c,
1035
1553
  "data-slot": "text-field",
1036
1554
  className: A("grid w-full content-start gap-1.5", i),
1037
- children: [/* @__PURE__ */ z(cr, {
1555
+ children: [/* @__PURE__ */ z(Ai, {
1038
1556
  required: s.required,
1039
1557
  htmlFor: s.id ?? l,
1040
1558
  action: r,
1041
1559
  children: n
1042
1560
  }), /* @__PURE__ */ B("div", {
1043
1561
  className: "flex flex-col gap-0.5",
1044
- children: [h, t ? /* @__PURE__ */ z(_, {
1562
+ children: [h, t ? /* @__PURE__ */ z(v, {
1045
1563
  id: u,
1046
1564
  error: e,
1047
1565
  children: t
@@ -1051,20 +1569,20 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
1051
1569
  }
1052
1570
  //#endregion
1053
1571
  //#region lib/components/ui/fields/email-field/is-email.ts
1054
- var gr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
1055
- function _r(e) {
1572
+ var Ri = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
1573
+ function zi(e) {
1056
1574
  let t = e.trim();
1057
- return !t || t.length > 254 ? !1 : gr.test(t);
1575
+ return !t || t.length > 254 ? !1 : Ri.test(t);
1058
1576
  }
1059
1577
  //#endregion
1060
1578
  //#region lib/components/ui/fields/email-field/email-field.tsx
1061
- function vr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helperText: o, autoComplete: s = "email", disabled: c, ...l }) {
1062
- let { t: u } = a(), d = e !== void 0, [f, p] = L(t == null ? "" : String(t)), [m, h] = L(!1), g = String((d ? e : f) ?? ""), _ = _r(g), v = g.trim() !== "" && !_, y = !!i || m && v, b = m && v && !i ? u("material.email-field.invalid", "Enter a valid email") : o, S = u("material.email-field.mailto", "Send email"), C = (e) => {
1579
+ function Bi({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helperText: o, autoComplete: s = "email", disabled: c, ...l }) {
1580
+ let { t: u } = a(), d = e !== void 0, [f, p] = L(t == null ? "" : String(t)), [m, h] = L(!1), g = String((d ? e : f) ?? ""), _ = zi(g), v = g.trim() !== "" && !_, y = !!i || m && v, b = m && v && !i ? u("material.email-field.invalid", "Enter a valid email") : o, S = u("material.email-field.mailto", "Send email"), C = (e) => {
1063
1581
  d || p(e.target.value), n?.(e);
1064
1582
  }, w = (e) => {
1065
1583
  h(!0), r?.(e);
1066
1584
  };
1067
- return /* @__PURE__ */ z(hr, {
1585
+ return /* @__PURE__ */ z(Li, {
1068
1586
  ...l,
1069
1587
  type: "email",
1070
1588
  inputMode: "email",
@@ -1079,7 +1597,7 @@ function vr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helpe
1079
1597
  onBlur: w,
1080
1598
  leading: /* @__PURE__ */ z("span", {
1081
1599
  className: "flex size-8 items-center justify-center",
1082
- children: /* @__PURE__ */ z(vt, {
1600
+ children: /* @__PURE__ */ z(Rt, {
1083
1601
  className: "size-4",
1084
1602
  "aria-hidden": !0
1085
1603
  })
@@ -1093,77 +1611,77 @@ function vr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helpe
1093
1611
  onClick: () => {
1094
1612
  window.location.assign(`mailto:${g.trim()}`);
1095
1613
  },
1096
- children: /* @__PURE__ */ z(wt, {})
1614
+ children: /* @__PURE__ */ z(Wt, {})
1097
1615
  }) : void 0
1098
1616
  });
1099
1617
  }
1100
1618
  //#endregion
1101
1619
  //#region ../../node_modules/react-hook-form/dist/index.esm.mjs
1102
- var yr = (e) => e.type === "checkbox", br = (e) => e.type === "file", Z = (e) => e instanceof Date, xr = (e) => e == null, Sr = (e) => typeof e == "object", Q = (e) => !xr(e) && !Array.isArray(e) && Sr(e) && !Z(e), Cr = (e) => Q(e) && e.target ? yr(e.target) ? e.target.checked : br(e.target) ? e.target.files : e.target.value : e, wr = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), Tr = (e) => {
1620
+ var Vi = (e) => e.type === "checkbox", Hi = (e) => e.type === "file", Ui = (e) => e instanceof Date, Wi = (e) => e == null, Gi = (e) => typeof e == "object", Q = (e) => !Wi(e) && !Array.isArray(e) && Gi(e) && !Ui(e), Ki = (e) => Q(e) && e.target ? Vi(e.target) ? e.target.checked : Hi(e.target) ? e.target.files : e.target.value : e, qi = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), Ji = (e) => {
1103
1621
  let t = e.constructor && e.constructor.prototype;
1104
1622
  return Q(t) && t.hasOwnProperty("isPrototypeOf");
1105
- }, Er = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
1106
- function Dr(e) {
1623
+ }, Yi = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
1624
+ function Xi(e) {
1107
1625
  if (e instanceof Date) return new Date(e);
1108
1626
  let t = typeof FileList < "u" && e instanceof FileList;
1109
- if (Er && (e instanceof Blob || t)) return e;
1627
+ if (Yi && (e instanceof Blob || t)) return e;
1110
1628
  let n = Array.isArray(e);
1111
- if (!n && !(Q(e) && Tr(e))) return e;
1629
+ if (!n && !(Q(e) && Ji(e))) return e;
1112
1630
  let r = n ? [] : Object.create(Object.getPrototypeOf(e));
1113
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = Dr(e[t]));
1631
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = Xi(e[t]));
1114
1632
  return r;
1115
1633
  }
1116
- var Or = {
1634
+ var Zi = {
1117
1635
  BLUR: "blur",
1118
1636
  FOCUS_OUT: "focusout",
1119
1637
  CHANGE: "change",
1120
1638
  SUBMIT: "submit",
1121
1639
  TRIGGER: "trigger",
1122
1640
  VALID: "valid"
1123
- }, kr = {
1641
+ }, Qi = {
1124
1642
  onBlur: "onBlur",
1125
1643
  onChange: "onChange",
1126
1644
  onSubmit: "onSubmit",
1127
1645
  onTouched: "onTouched",
1128
1646
  all: "all"
1129
- }, Ar = [
1647
+ }, $i = [
1130
1648
  "__proto__",
1131
1649
  "constructor",
1132
1650
  "prototype"
1133
- ], jr = /^\w*$/, Mr = (e) => jr.test(e), Nr = (e) => e === void 0, Pr = /[.[\]'"]/, Fr = (e) => e.split(Pr).filter(Boolean), $ = (e, t, n) => {
1651
+ ], ea = /^\w*$/, ta = (e) => ea.test(e), na = (e) => e === void 0, ra = /[.[\]'"]/, ia = (e) => e.split(ra).filter(Boolean), $ = (e, t, n) => {
1134
1652
  if (!t || !Q(e)) return n;
1135
- let r = Mr(t) ? [t] : Fr(t);
1136
- if (r.some((e) => Ar.includes(e))) return n;
1137
- let i = r.reduce((e, t) => xr(e) ? void 0 : e[t], e);
1138
- return Nr(i) || i === e ? Nr(e[t]) ? n : e[t] : i;
1139
- }, Ir = (e) => typeof e == "boolean", Lr = (e) => typeof e == "function", Rr = (e, t, n) => {
1140
- let r = -1, i = Mr(t) ? [t] : Fr(t), a = i.length, o = a - 1;
1653
+ let r = ta(t) ? [t] : ia(t);
1654
+ if (r.some((e) => $i.includes(e))) return n;
1655
+ let i = r.reduce((e, t) => Wi(e) ? void 0 : e[t], e);
1656
+ return na(i) || i === e ? na(e[t]) ? n : e[t] : i;
1657
+ }, aa = (e) => typeof e == "boolean", oa = (e) => typeof e == "function", sa = (e, t, n) => {
1658
+ let r = -1, i = ta(t) ? [t] : ia(t), a = i.length, o = a - 1;
1141
1659
  for (; ++r < a;) {
1142
1660
  let t = i[r], a = n;
1143
1661
  if (r !== o) {
1144
1662
  let n = e[t];
1145
1663
  a = Q(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
1146
1664
  }
1147
- if (Ar.includes(t)) return;
1665
+ if ($i.includes(t)) return;
1148
1666
  e[t] = a, e = e[t];
1149
1667
  }
1150
- }, zr = M.createContext(null);
1151
- zr.displayName = "HookFormControlContext";
1152
- var Br = () => M.useContext(zr), Vr = (e, t, n, r = !0) => {
1668
+ }, ca = M.createContext(null);
1669
+ ca.displayName = "HookFormControlContext";
1670
+ var la = () => M.useContext(ca), ua = (e, t, n, r = !0) => {
1153
1671
  let i = {};
1154
1672
  for (let a in e) Object.defineProperty(i, a, { get: () => {
1155
1673
  let i = a;
1156
- return t._proxyFormState[i] !== kr.all && (t._proxyFormState[i] = !r || kr.all), n && (n[i] = !0), e[i];
1674
+ return t._proxyFormState[i] !== Qi.all && (t._proxyFormState[i] = !r || Qi.all), n && (n[i] = !0), e[i];
1157
1675
  } });
1158
1676
  return i;
1159
- }, Hr = Er ? M.useLayoutEffect : M.useEffect, Ur = (e) => xr(e) || !Sr(e), Wr = (e, t) => t.length === 0 && !Array.isArray(e) && !Tr(e);
1160
- function Gr(e, t, n = /* @__PURE__ */ new WeakMap()) {
1677
+ }, da = Yi ? M.useLayoutEffect : M.useEffect, fa = (e) => Wi(e) || !Gi(e), pa = (e, t) => t.length === 0 && !Array.isArray(e) && !Ji(e);
1678
+ function ma(e, t, n = /* @__PURE__ */ new WeakMap()) {
1161
1679
  if (e === t) return !0;
1162
- if (Ur(e) || Ur(t)) return Object.is(e, t);
1163
- if (Z(e) && Z(t)) return Object.is(e.getTime(), t.getTime());
1680
+ if (fa(e) || fa(t)) return Object.is(e, t);
1681
+ if (Ui(e) && Ui(t)) return Object.is(e.getTime(), t.getTime());
1164
1682
  let r = Object.keys(e), i = Object.keys(t);
1165
1683
  if (r.length !== i.length) return !1;
1166
- if (Wr(e, r) || Wr(t, i)) return Object.is(e, t);
1684
+ if (pa(e, r) || pa(t, i)) return Object.is(e, t);
1167
1685
  if (!r.length && Array.isArray(e) !== Array.isArray(t)) return !1;
1168
1686
  let a = n.get(e);
1169
1687
  if (a && a.has(t)) return !0;
@@ -1177,28 +1695,28 @@ function Gr(e, t, n = /* @__PURE__ */ new WeakMap()) {
1177
1695
  if (!(i in t)) return !1;
1178
1696
  if (i !== "ref") {
1179
1697
  let e = t[i];
1180
- if (Z(r) && Z(e) || (Q(r) || Array.isArray(r)) && (Q(e) || Array.isArray(e)) ? !Gr(r, e, n) : !Object.is(r, e)) return !1;
1698
+ if (Ui(r) && Ui(e) || (Q(r) || Array.isArray(r)) && (Q(e) || Array.isArray(e)) ? !ma(r, e, n) : !Object.is(r, e)) return !1;
1181
1699
  }
1182
1700
  }
1183
1701
  return !0;
1184
1702
  }
1185
- function Kr() {
1703
+ function ha() {
1186
1704
  let e = M.useRef(!1), t = M.useRef(void 0);
1187
1705
  return {
1188
1706
  resyncIfNeeded: M.useCallback((n, r, i) => {
1189
1707
  if (n && e.current) {
1190
1708
  let e = r();
1191
- Gr(t.current, e) || i(e);
1709
+ ma(t.current, e) || i(e);
1192
1710
  }
1193
1711
  e.current = !0;
1194
1712
  }, []),
1195
1713
  snapshot: M.useCallback((e, n) => {
1196
- e && (t.current = Dr(n()));
1714
+ e && (t.current = Xi(n()));
1197
1715
  }, [])
1198
1716
  };
1199
1717
  }
1200
- function qr(e) {
1201
- let t = Br(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = M.useState(() => ({
1718
+ function ga(e) {
1719
+ let t = la(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = M.useState(() => ({
1202
1720
  ...n._formState,
1203
1721
  defaultValues: n._defaultValues
1204
1722
  })), c = M.useRef({
@@ -1210,8 +1728,8 @@ function qr(e) {
1210
1728
  isValidating: !1,
1211
1729
  isValid: !1,
1212
1730
  errors: !1
1213
- }), { resyncIfNeeded: l, snapshot: u } = Kr();
1214
- return Hr(() => {
1731
+ }), { resyncIfNeeded: l, snapshot: u } = ha();
1732
+ return da(() => {
1215
1733
  let e = () => ({
1216
1734
  ...n._formState,
1217
1735
  defaultValues: n._defaultValues
@@ -1240,17 +1758,17 @@ function qr(e) {
1240
1758
  u
1241
1759
  ]), M.useEffect(() => {
1242
1760
  c.current.isValid && n._setValid(!0);
1243
- }, [n]), M.useMemo(() => Vr(o, n, c.current, !1), [o, n]);
1761
+ }, [n]), M.useMemo(() => ua(o, n, c.current, !1), [o, n]);
1244
1762
  }
1245
- var Jr = (e) => typeof e == "string", Yr = (e, t, n, r, i) => Jr(e) ? (r && t.watch.add(e), $(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), $(n, e))) : (r && (t.watchAll = !0), n);
1246
- function Xr(e) {
1247
- let t = Br(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = M.useRef(i), l = M.useRef(s), u = M.useRef(void 0), d = M.useRef(n), f = M.useRef(r);
1763
+ var _a = (e) => typeof e == "string", va = (e, t, n, r, i) => _a(e) ? (r && t.watch.add(e), $(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), $(n, e))) : (r && (t.watchAll = !0), n);
1764
+ function ya(e) {
1765
+ let t = la(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = M.useRef(i), l = M.useRef(s), u = M.useRef(void 0), d = M.useRef(n), f = M.useRef(r);
1248
1766
  l.current = s;
1249
1767
  let [p, m] = M.useState(() => {
1250
1768
  let e = n._getWatch(r, c.current);
1251
1769
  return l.current ? l.current(e) : e;
1252
1770
  }), h = M.useCallback((e) => {
1253
- let t = Yr(r, n._names, e || n._formValues, !1, c.current);
1771
+ let t = va(r, n._names, e || n._formValues, !1, c.current);
1254
1772
  return l.current ? l.current(t) : t;
1255
1773
  }, [
1256
1774
  n._formValues,
@@ -1258,10 +1776,10 @@ function Xr(e) {
1258
1776
  r
1259
1777
  ]), g = M.useCallback((e) => {
1260
1778
  if (!a) {
1261
- let t = Yr(r, n._names, e || n._formValues, !1, c.current);
1779
+ let t = va(r, n._names, e || n._formValues, !1, c.current);
1262
1780
  if (l.current) {
1263
1781
  let e = l.current(t);
1264
- Gr(e, u.current) || (m(e), u.current = e);
1782
+ ma(e, u.current) || (m(e), u.current = e);
1265
1783
  } else m(t);
1266
1784
  }
1267
1785
  }, [
@@ -1269,11 +1787,11 @@ function Xr(e) {
1269
1787
  n._names,
1270
1788
  a,
1271
1789
  r
1272
- ]), { resyncIfNeeded: _, snapshot: v } = Kr(), y = M.useRef(g);
1790
+ ]), { resyncIfNeeded: _, snapshot: v } = ha(), y = M.useRef(g);
1273
1791
  y.current = g;
1274
1792
  let b = M.useRef(h);
1275
- b.current = h, Hr(() => {
1276
- d.current !== n || !Gr(f.current, r) ? (d.current = n, f.current = r, y.current()) : _(!a, () => b.current(), (e) => {
1793
+ b.current = h, da(() => {
1794
+ d.current !== n || !ma(f.current, r) ? (d.current = n, f.current = r, y.current()) : _(!a, () => b.current(), (e) => {
1277
1795
  m(e), u.current = e;
1278
1796
  });
1279
1797
  let e = n._subscribe({
@@ -1297,7 +1815,7 @@ function Xr(e) {
1297
1815
  ]), M.useEffect(() => n._removeUnmounted());
1298
1816
  let x = d.current !== n, S = f.current, C = M.useMemo(() => {
1299
1817
  if (a) return null;
1300
- let e = !x && !Gr(S, r);
1818
+ let e = !x && !ma(S, r);
1301
1819
  return x || e ? h() : null;
1302
1820
  }, [
1303
1821
  a,
@@ -1308,8 +1826,8 @@ function Xr(e) {
1308
1826
  ]);
1309
1827
  return C === null ? p : C;
1310
1828
  }
1311
- function Zr(e) {
1312
- let t = Br(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = wr(i._names.array, n), l = Xr({
1829
+ function ba(e) {
1830
+ let t = la(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = qi(i._names.array, n), l = ya({
1313
1831
  control: i,
1314
1832
  name: n,
1315
1833
  defaultValue: M.useMemo(() => $(i._formValues, n, $(i._defaultValues, n, o)), [
@@ -1318,14 +1836,14 @@ function Zr(e) {
1318
1836
  o
1319
1837
  ]),
1320
1838
  exact: s
1321
- }), u = qr({
1839
+ }), u = ga({
1322
1840
  control: i,
1323
1841
  name: n,
1324
1842
  exact: s
1325
1843
  }), d = M.useRef(e), f = M.useRef(null), p = M.useRef(i.register(n, {
1326
1844
  ...e.rules,
1327
1845
  value: l,
1328
- ...Ir(e.disabled) ? { disabled: e.disabled } : {}
1846
+ ...aa(e.disabled) ? { disabled: e.disabled } : {}
1329
1847
  }));
1330
1848
  d.current = e;
1331
1849
  let m = M.useMemo(() => Object.defineProperties({}, {
@@ -1350,36 +1868,36 @@ function Zr(e) {
1350
1868
  get: () => $(u.errors, n)
1351
1869
  }
1352
1870
  }), [u, n]), h = M.useCallback((e) => {
1353
- let t = Cr(e);
1871
+ let t = Ki(e);
1354
1872
  return $(i._fields, n) || (p.current = i.register(n, {
1355
1873
  ...d.current.rules,
1356
1874
  value: t
1357
1875
  })), p.current.onChange({
1358
1876
  target: {
1359
- value: Cr(e),
1877
+ value: Ki(e),
1360
1878
  name: n
1361
1879
  },
1362
- type: Or.CHANGE
1880
+ type: Zi.CHANGE
1363
1881
  });
1364
1882
  }, [n, i]), g = M.useCallback(() => p.current.onBlur({
1365
1883
  target: {
1366
1884
  value: $(i._formValues, n),
1367
1885
  name: n
1368
1886
  },
1369
- type: Or.BLUR
1887
+ type: Zi.BLUR
1370
1888
  }), [n, i._formValues]), _ = M.useCallback((e) => {
1371
1889
  e && (f.current = {
1372
- focus: () => Lr(e.focus) && e.focus(),
1373
- select: () => Lr(e.select) && e.select(),
1374
- setCustomValidity: (t) => Lr(e.setCustomValidity) && e.setCustomValidity(t),
1375
- reportValidity: () => Lr(e.reportValidity) && e.reportValidity()
1890
+ focus: () => oa(e.focus) && e.focus(),
1891
+ select: () => oa(e.select) && e.select(),
1892
+ setCustomValidity: (t) => oa(e.setCustomValidity) && e.setCustomValidity(t),
1893
+ reportValidity: () => oa(e.reportValidity) && e.reportValidity()
1376
1894
  });
1377
1895
  let t = $(i._fields, n);
1378
1896
  t && t._f && e && (t._f.ref = f.current);
1379
1897
  }, [i._fields, n]), v = M.useMemo(() => ({
1380
1898
  name: n,
1381
1899
  value: l,
1382
- ...Ir(r) || u.disabled ? { disabled: u.disabled || r } : {},
1900
+ ...aa(r) || u.disabled ? { disabled: u.disabled || r } : {},
1383
1901
  onChange: h,
1384
1902
  onBlur: g,
1385
1903
  ref: _
@@ -1396,15 +1914,15 @@ function Zr(e) {
1396
1914
  let e = i._options.shouldUnregister || a;
1397
1915
  p.current = i.register(n, {
1398
1916
  ...d.current.rules,
1399
- ...Ir(d.current.disabled) ? { disabled: d.current.disabled } : {}
1917
+ ...aa(d.current.disabled) ? { disabled: d.current.disabled } : {}
1400
1918
  });
1401
1919
  let t = (e, t) => {
1402
1920
  let n = $(i._fields, e);
1403
1921
  n && n._f && (n._f.mount = t);
1404
1922
  };
1405
1923
  if (t(n, !0), e) {
1406
- let e = Dr($(a ? i._defaultValues : i._options.values || i._defaultValues, n, $(i._options.defaultValues, n, d.current.defaultValue)));
1407
- Rr(i._defaultValues, n, e), Nr($(i._formValues, n)) && Rr(i._formValues, n, e);
1924
+ let e = Xi($(a ? i._defaultValues : i._options.values || i._defaultValues, n, $(i._options.defaultValues, n, d.current.defaultValue)));
1925
+ sa(i._defaultValues, n, e), na($(i._formValues, n)) && sa(i._formValues, n, e);
1408
1926
  }
1409
1927
  if (!c && i.register(n), f.current) {
1410
1928
  let e = $(i._fields, n);
@@ -1437,15 +1955,15 @@ function Zr(e) {
1437
1955
  m
1438
1956
  ]);
1439
1957
  }
1440
- var Qr = (e) => e.render(Zr(e)), $r = M.createContext(null);
1441
- $r.displayName = "HookFormContext", kr.onSubmit, kr.onChange;
1958
+ var xa = (e) => e.render(ba(e)), Sa = M.createContext(null);
1959
+ Sa.displayName = "HookFormContext", Qi.onSubmit, Qi.onChange;
1442
1960
  //#endregion
1443
1961
  //#region lib/components/ui/fields/email-field/email-form-field.tsx
1444
- function ei({ control: e, name: t, ...n }) {
1445
- return /* @__PURE__ */ z(Qr, {
1962
+ function Ca({ control: e, name: t, ...n }) {
1963
+ return /* @__PURE__ */ z(xa, {
1446
1964
  control: e,
1447
1965
  name: t,
1448
- render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(vr, {
1966
+ render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(Bi, {
1449
1967
  ...n,
1450
1968
  ref: e.ref,
1451
1969
  name: e.name,
@@ -1459,18 +1977,38 @@ function ei({ control: e, name: t, ...n }) {
1459
1977
  });
1460
1978
  }
1461
1979
  //#endregion
1980
+ //#region lib/components/ui/fields/switch/switch-form-field.tsx
1981
+ function wa({ control: e, name: t, ...n }) {
1982
+ return /* @__PURE__ */ z(xa, {
1983
+ control: e,
1984
+ name: t,
1985
+ render: ({ field: e, fieldState: r }) => /* @__PURE__ */ z(de, {
1986
+ ...n,
1987
+ ref: e.ref,
1988
+ name: t,
1989
+ "aria-invalid": r.invalid,
1990
+ checked: !!e.value,
1991
+ disabled: n.disabled || e.disabled,
1992
+ onBlur: e.onBlur,
1993
+ onCheckedChange: e.onChange,
1994
+ error: r.invalid,
1995
+ helperText: r.error?.message ?? n.helperText
1996
+ })
1997
+ });
1998
+ }
1999
+ //#endregion
1462
2000
  //#region lib/components/ui/fields/text-field/text-form-field.tsx
1463
- function ti({ control: e, name: t, ...n }) {
2001
+ function Ta({ control: e, name: t, ...n }) {
1464
2002
  let r = (e) => (t) => {
1465
2003
  if (n.type === "number") {
1466
2004
  let n = parseFloat(t.target.value ?? "");
1467
2005
  e.onChange(Number.isNaN(n) ? null : n);
1468
2006
  } else e.onChange(t);
1469
2007
  };
1470
- return /* @__PURE__ */ z(Qr, {
2008
+ return /* @__PURE__ */ z(xa, {
1471
2009
  control: e,
1472
2010
  name: t,
1473
- render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(hr, {
2011
+ render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(Li, {
1474
2012
  ...n,
1475
2013
  ref: e.ref,
1476
2014
  "aria-invalid": t.invalid,
@@ -1485,25 +2023,14 @@ function ti({ control: e, name: t, ...n }) {
1485
2023
  });
1486
2024
  }
1487
2025
  //#endregion
1488
- //#region lib/components/ui/primitives/textarea/textarea.tsx
1489
- function ni({ className: e, ...t }) {
1490
- return /* @__PURE__ */ z("textarea", {
1491
- "data-slot": "textarea",
1492
- "data-pw": t.name ?? "textarea",
1493
- className: A(g, "placeholder:text-muted-foreground flex resize-none outline-none", "field-sizing-content min-h-16 w-full min-w-[min(280px,100%)] px-3 py-2 text-base md:text-sm", e),
1494
- ...t,
1495
- placeholder: t.placeholder || " "
1496
- });
1497
- }
1498
- //#endregion
1499
2026
  //#region lib/components/ui/fields/textarea-field/textarea-footer.tsx
1500
- function ri({ helperText: e, helperId: t, countId: n, error: r, countVisible: i, length: o, maxLength: s, overLimit: c }) {
2027
+ function Ea({ helperText: e, helperId: t, countId: n, error: r, countVisible: i, length: o, maxLength: s, overLimit: c }) {
1501
2028
  let { t: l } = a();
1502
2029
  if (!e && !i) return null;
1503
2030
  let u = s != null && o >= s * .9;
1504
2031
  return /* @__PURE__ */ B("div", {
1505
2032
  className: A("flex items-start gap-2", e ? "justify-between" : "justify-end"),
1506
- children: [e && /* @__PURE__ */ z(_, {
2033
+ children: [e && /* @__PURE__ */ z(v, {
1507
2034
  id: t,
1508
2035
  error: r,
1509
2036
  className: "min-w-0 flex-1 basis-0",
@@ -1517,16 +2044,16 @@ function ri({ helperText: e, helperId: t, countId: n, error: r, countVisible: i,
1517
2044
  children: [s == null ? String(o) : l("material.textarea-field.count", `${o}/${s}`, {
1518
2045
  count: o,
1519
2046
  max: s
1520
- }), c && s != null && /* @__PURE__ */ z(ii, { excess: o - s })]
2047
+ }), c && s != null && /* @__PURE__ */ z(Da, { excess: o - s })]
1521
2048
  })]
1522
2049
  });
1523
2050
  }
1524
- function ii({ excess: e }) {
2051
+ function Da({ excess: e }) {
1525
2052
  let { t } = a();
1526
2053
  return /* @__PURE__ */ B("span", {
1527
2054
  "data-slot": "textarea-excess",
1528
2055
  className: "inline-flex items-center gap-1",
1529
- children: [/* @__PURE__ */ z(rt, {
2056
+ children: [/* @__PURE__ */ z(Ct, {
1530
2057
  "aria-hidden": "true",
1531
2058
  className: "size-3.5"
1532
2059
  }), t("material.textarea-field.excess", `${e} over`, { count: e })]
@@ -1534,7 +2061,7 @@ function ii({ excess: e }) {
1534
2061
  }
1535
2062
  //#endregion
1536
2063
  //#region lib/components/ui/fields/textarea-field/textarea-rows.ts
1537
- var ai = {
2064
+ var Oa = {
1538
2065
  1: "min-h-[calc(1lh+1rem)]",
1539
2066
  2: "min-h-[calc(2lh+1rem)]",
1540
2067
  3: "min-h-[calc(3lh+1rem)]",
@@ -1543,7 +2070,7 @@ var ai = {
1543
2070
  6: "min-h-[calc(6lh+1rem)]",
1544
2071
  8: "min-h-[calc(8lh+1rem)]",
1545
2072
  10: "min-h-[calc(10lh+1rem)]"
1546
- }, oi = {
2073
+ }, ka = {
1547
2074
  1: "max-h-[calc(1lh+1rem)]",
1548
2075
  2: "max-h-[calc(2lh+1rem)]",
1549
2076
  3: "max-h-[calc(3lh+1rem)]",
@@ -1555,16 +2082,16 @@ var ai = {
1555
2082
  12: "max-h-[calc(12lh+1rem)]",
1556
2083
  16: "max-h-[calc(16lh+1rem)]"
1557
2084
  };
1558
- function si(e, t) {
2085
+ function Aa(e, t) {
1559
2086
  let n = Object.keys(e).map(Number);
1560
2087
  return e[n.filter((e) => e <= t).pop() ?? n[0] ?? 1];
1561
2088
  }
1562
- function ci(e, t) {
1563
- return [e != null && si(ai, e), t != null && si(oi, t)];
2089
+ function ja(e, t) {
2090
+ return [e != null && Aa(Oa, e), t != null && Aa(ka, t)];
1564
2091
  }
1565
- function li(e, t) {
2092
+ function Ma(e, t) {
1566
2093
  let n = I({});
1567
- return Je((r) => {
2094
+ return ut((r) => {
1568
2095
  if (!r) return;
1569
2096
  let i = n.current;
1570
2097
  e == null ? i.min != null && (r.style.minHeight = "") : r.style.minHeight = `calc(${e}lh + 1rem)`, t == null ? i.max != null && (r.style.maxHeight = "") : r.style.maxHeight = `calc(${t}lh + 1rem)`, n.current = {
@@ -1573,13 +2100,13 @@ function li(e, t) {
1573
2100
  };
1574
2101
  }, [e, t]);
1575
2102
  }
1576
- function ui(e, t, n) {
1577
- let r = li(t, n);
1578
- return Xe(() => lr(e, r), [e, r]);
2103
+ function Na(e, t, n) {
2104
+ let r = Ma(t, n);
2105
+ return pt(() => ji(e, r), [e, r]);
1579
2106
  }
1580
2107
  //#endregion
1581
2108
  //#region lib/components/ui/fields/textarea-field/textarea-field.tsx
1582
- function di(e, t, n) {
2109
+ function Pa(e, t, n) {
1583
2110
  let r = e !== void 0, [i, a] = L(t == null ? "" : String(t));
1584
2111
  return {
1585
2112
  text: String((r ? e : i) ?? ""),
@@ -1588,34 +2115,34 @@ function di(e, t, n) {
1588
2115
  }
1589
2116
  };
1590
2117
  }
1591
- function fi({ error: e, helperText: t, label: n, className: r, placeholder: i, minRows: a, maxRows: o, showCount: s, monospace: c, maxLength: l, limit: u, count: d, value: f, defaultValue: p, onChange: m, ...h }) {
1592
- let g = fe(), _ = F(), v = F(), b = F(), x = Ft(h["aria-describedby"], !!t && v), { text: S, handleChange: C } = di(f, p, m), w = ui(h.ref, a, o), T = u ?? l, E = d ? d(S) : S.length, D = s ?? T != null, O = T != null && E > T;
2118
+ function Fa({ error: e, helperText: t, label: n, className: r, placeholder: i, minRows: a, maxRows: o, showCount: s, monospace: c, maxLength: l, limit: u, count: d, value: f, defaultValue: p, onChange: m, ...g }) {
2119
+ let _ = ce(), v = F(), y = F(), b = F(), x = tn(g["aria-describedby"], !!t && y), { text: S, handleChange: C } = Pa(f, p, m), w = Na(g.ref, a, o), T = u ?? l, E = d ? d(S) : S.length, D = s ?? T != null, O = T != null && E > T;
1593
2120
  return /* @__PURE__ */ B("div", {
1594
- ref: g,
2121
+ ref: _,
1595
2122
  "data-slot": "textarea-field",
1596
2123
  className: A("grid w-full content-start gap-1.5", r),
1597
2124
  children: [
1598
- n && /* @__PURE__ */ z(y, {
1599
- withAsterisk: h.required,
1600
- htmlFor: h.id ?? _,
2125
+ n && /* @__PURE__ */ z(h, {
2126
+ withAsterisk: g.required,
2127
+ htmlFor: g.id ?? v,
1601
2128
  children: n
1602
2129
  }),
1603
- /* @__PURE__ */ z(ni, {
1604
- ...h,
2130
+ /* @__PURE__ */ z(ui, {
2131
+ ...g,
1605
2132
  ref: w,
1606
2133
  placeholder: i,
1607
- id: h.id ?? _,
2134
+ id: g.id ?? v,
1608
2135
  maxLength: l,
1609
2136
  value: f,
1610
2137
  defaultValue: p,
1611
2138
  onChange: C,
1612
2139
  "aria-invalid": e || O || void 0,
1613
- "aria-describedby": Ft(x, D && b),
1614
- className: A(a != null && "min-h-0", o != null && "overflow-y-auto", ci(a, o), c && "font-mono")
2140
+ "aria-describedby": tn(x, D && b),
2141
+ className: A(a != null && "min-h-0", o != null && "overflow-y-auto", ja(a, o), c && "font-mono")
1615
2142
  }),
1616
- /* @__PURE__ */ z(ri, {
2143
+ /* @__PURE__ */ z(Ea, {
1617
2144
  helperText: t,
1618
- helperId: v,
2145
+ helperId: y,
1619
2146
  countId: b,
1620
2147
  error: e,
1621
2148
  countVisible: D,
@@ -1628,11 +2155,11 @@ function fi({ error: e, helperText: t, label: n, className: r, placeholder: i, m
1628
2155
  }
1629
2156
  //#endregion
1630
2157
  //#region lib/components/ui/fields/textarea-field/textarea-form-field.tsx
1631
- function pi({ control: e, name: t, ...n }) {
1632
- return /* @__PURE__ */ z(Qr, {
2158
+ function Ia({ control: e, name: t, ...n }) {
2159
+ return /* @__PURE__ */ z(xa, {
1633
2160
  control: e,
1634
2161
  name: t,
1635
- render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(fi, {
2162
+ render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(Fa, {
1636
2163
  ...n,
1637
2164
  ref: e.ref,
1638
2165
  "aria-invalid": t.invalid,
@@ -1648,12 +2175,12 @@ function pi({ control: e, name: t, ...n }) {
1648
2175
  }
1649
2176
  //#endregion
1650
2177
  //#region lib/files-drop/drop-messages.ts
1651
- function mi() {
2178
+ function La() {
1652
2179
  let { t: e } = a();
1653
- return Je((t) => {
2180
+ return ut((t) => {
1654
2181
  switch (t.code) {
1655
2182
  case "type": return e("material.upload.invalid-type", "File type not accepted");
1656
- case "size": return e("material.upload.too-large", "File exceeds maximum size of {size}", { size: Lt(t.maxSize) });
2183
+ case "size": return e("material.upload.too-large", "File exceeds maximum size of {size}", { size: rn(t.maxSize) });
1657
2184
  case "count": return e("material.upload.max-files", "{count, plural, one {Maximum of # file reached} other {Maximum of # files reached}}", { count: t.maxFiles });
1658
2185
  default: return e("material.drop-overlay.empty", "File is empty");
1659
2186
  }
@@ -1661,7 +2188,7 @@ function mi() {
1661
2188
  }
1662
2189
  //#endregion
1663
2190
  //#region lib/components/ui/media/attachment-list/use-canvas-thumbnail.ts
1664
- function hi(e, t, n) {
2191
+ function Ra(e, t, n) {
1665
2192
  let [r, i] = L(!1);
1666
2193
  return P(() => {
1667
2194
  if (i(!1), !t?.type.startsWith("image/") || typeof createImageBitmap != "function") return;
@@ -1682,19 +2209,19 @@ function hi(e, t, n) {
1682
2209
  }
1683
2210
  //#endregion
1684
2211
  //#region lib/components/ui/media/attachment-list/attachment-list.tsx
1685
- var gi = {
1686
- image: dt,
1687
- pdf: ht,
1688
- video: gt,
1689
- audio: ft,
1690
- text: ht,
1691
- json: ut,
1692
- csv: mt,
1693
- markdown: ht,
1694
- other: lt
2212
+ var za = {
2213
+ image: jt,
2214
+ pdf: Ft,
2215
+ video: It,
2216
+ audio: Mt,
2217
+ text: Ft,
2218
+ json: At,
2219
+ csv: Pt,
2220
+ markdown: Ft,
2221
+ other: kt
1695
2222
  };
1696
- function _i({ item: e, size: t }) {
1697
- let n = I(null), r = hi(n, e.file instanceof Blob ? e.file : void 0, t * 2), i = gi[It({
2223
+ function Ba({ item: e, size: t }) {
2224
+ let n = I(null), r = Ra(n, e.file instanceof Blob ? e.file : void 0, t * 2), i = za[nn({
1698
2225
  type: e.file.type,
1699
2226
  name: e.file.name
1700
2227
  })];
@@ -1715,14 +2242,14 @@ function _i({ item: e, size: t }) {
1715
2242
  })]
1716
2243
  });
1717
2244
  }
1718
- function vi({ item: e, size: t, onRemove: n }) {
1719
- let { t: r } = a(), i = mi(), o = e.refusal !== void 0, s = typeof e.refusal == "string" ? e.refusal : e.refusal && i(e.refusal), c = e.progress !== void 0 && !o;
2245
+ function Va({ item: e, size: t, onRemove: n }) {
2246
+ let { t: r } = a(), i = La(), o = e.refusal !== void 0, s = typeof e.refusal == "string" ? e.refusal : e.refusal && i(e.refusal), c = e.progress !== void 0 && !o;
1720
2247
  return /* @__PURE__ */ B("li", {
1721
2248
  "data-slot": "attachment",
1722
2249
  "data-refused": o ? "" : void 0,
1723
2250
  className: A("flex min-w-0 items-center gap-3 rounded-lg border bg-card p-2 text-card-foreground", o ? "border-error" : "border-border"),
1724
2251
  children: [
1725
- /* @__PURE__ */ z(_i, {
2252
+ /* @__PURE__ */ z(Ba, {
1726
2253
  item: e,
1727
2254
  size: t
1728
2255
  }),
@@ -1733,10 +2260,10 @@ function vi({ item: e, size: t, onRemove: n }) {
1733
2260
  className: "truncate text-body-md font-medium",
1734
2261
  children: e.file.name
1735
2262
  }),
1736
- /* @__PURE__ */ z("span", {
2263
+ typeof e.file.size == "number" && Number.isFinite(e.file.size) ? /* @__PURE__ */ z("span", {
1737
2264
  className: "text-body-sm text-muted-foreground",
1738
- children: Lt(e.file.size)
1739
- }),
2265
+ children: rn(e.file.size)
2266
+ }) : null,
1740
2267
  c ? /* @__PURE__ */ z("progress", {
1741
2268
  max: 100,
1742
2269
  value: Math.min(100, Math.max(0, e.progress ?? 0)),
@@ -1746,7 +2273,7 @@ function vi({ item: e, size: t, onRemove: n }) {
1746
2273
  s ? /* @__PURE__ */ B("span", {
1747
2274
  role: "alert",
1748
2275
  className: "flex items-center gap-1 text-body-sm text-error-text",
1749
- children: [/* @__PURE__ */ z(rt, {
2276
+ children: [/* @__PURE__ */ z(Ct, {
1750
2277
  "aria-hidden": !0,
1751
2278
  className: "size-3.5 shrink-0"
1752
2279
  }), s]
@@ -1764,24 +2291,24 @@ function vi({ item: e, size: t, onRemove: n }) {
1764
2291
  ]
1765
2292
  }, e.id);
1766
2293
  }
1767
- function yi({ items: e, onRemove: t, thumbnailSize: n = 40, className: r, ...i }) {
2294
+ function Ha({ items: e, onRemove: t, thumbnailSize: n = 40, className: r, ...i }) {
1768
2295
  let { t: o } = a();
1769
2296
  return /* @__PURE__ */ z("ul", {
1770
2297
  "data-slot": "attachment-list",
1771
2298
  "aria-label": o("material.attachments.label", "Attachments"),
1772
2299
  className: A("m-0 flex list-none flex-col gap-2 p-0", r),
1773
2300
  ...i,
1774
- children: e.map((e) => /* @__PURE__ */ z(vi, {
2301
+ children: e.map((e) => /* @__PURE__ */ z(Va, {
1775
2302
  item: e,
1776
2303
  size: n,
1777
2304
  onRemove: t
1778
2305
  }, e.id))
1779
2306
  });
1780
2307
  }
1781
- yi.displayName = "AttachmentList";
2308
+ Ha.displayName = "AttachmentList";
1782
2309
  //#endregion
1783
2310
  //#region lib/components/ui/overlays/dialog/dialog-aside.tsx
1784
- function bi({ className: e, ...t }) {
2311
+ function Ua({ className: e, ...t }) {
1785
2312
  return /* @__PURE__ */ z("aside", {
1786
2313
  "data-slot": "dialog-aside",
1787
2314
  className: A("min-h-0 overflow-y-auto overscroll-contain rounded-2xl bg-muted p-4", e),
@@ -1790,13 +2317,13 @@ function bi({ className: e, ...t }) {
1790
2317
  }
1791
2318
  //#endregion
1792
2319
  //#region lib/components/ui/overlays/dialog/dialog-body-overflow.ts
1793
- function xi(e) {
2320
+ function Wa(e) {
1794
2321
  let t = e.scrollHeight > e.clientHeight + 1;
1795
2322
  e.toggleAttribute("data-overflow-start", t && e.scrollTop > 0), e.toggleAttribute("data-overflow-end", t && e.scrollTop + e.clientHeight < e.scrollHeight - 1);
1796
2323
  }
1797
- function Si(e) {
1798
- if (xi(e), typeof ResizeObserver > "u") return () => void 0;
1799
- let t = () => xi(e), n = new ResizeObserver(t), r = () => {
2324
+ function Ga(e) {
2325
+ if (Wa(e), typeof ResizeObserver > "u") return () => void 0;
2326
+ let t = () => Wa(e), n = new ResizeObserver(t), r = () => {
1800
2327
  n.disconnect(), n.observe(e);
1801
2328
  for (let t of Array.from(e.children)) n.observe(t);
1802
2329
  t();
@@ -1809,13 +2336,13 @@ function Si(e) {
1809
2336
  }
1810
2337
  //#endregion
1811
2338
  //#region lib/components/ui/overlays/dialog/dialog-body.tsx
1812
- function Ci({ className: e, children: t, onScroll: n, ref: r, ...i }) {
1813
- let a = I(null), o = Je(() => {
1814
- a.current && xi(a.current);
2339
+ function Ka({ className: e, children: t, onScroll: n, ref: r, ...i }) {
2340
+ let a = I(null), o = ut(() => {
2341
+ a.current && Wa(a.current);
1815
2342
  }, []);
1816
2343
  return P(() => {
1817
2344
  let e = a.current;
1818
- return e ? Si(e) : void 0;
2345
+ return e ? Ga(e) : void 0;
1819
2346
  }, []), /* @__PURE__ */ z("div", {
1820
2347
  ref: (e) => {
1821
2348
  a.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
@@ -1831,13 +2358,32 @@ function Ci({ className: e, children: t, onScroll: n, ref: r, ...i }) {
1831
2358
  });
1832
2359
  }
1833
2360
  //#endregion
2361
+ //#region lib/hooks/use-csp-nonce.ts
2362
+ var qa = ct(void 0), Ja = ct(0);
2363
+ function Ya() {
2364
+ return dt(qa);
2365
+ }
2366
+ //#endregion
2367
+ //#region lib/components/ui/primitives/nonce-provider/nonce-provider.tsx
2368
+ var Xa = () => () => {}, Za = () => void 0;
2369
+ function Qa({ nonce: e, children: t }) {
2370
+ let n = dt(qa), r = ht(Xa, _t, Za), i = e || n || r || void 0, a = dt(Ja);
2371
+ return ft(() => gt(i, a), [i, a]), /* @__PURE__ */ z(qa.Provider, {
2372
+ value: i,
2373
+ children: /* @__PURE__ */ z(Ja.Provider, {
2374
+ value: a + 1,
2375
+ children: t
2376
+ })
2377
+ });
2378
+ }
2379
+ //#endregion
1834
2380
  //#region lib/components/ui/primitives/tabs/partials/tabs-trigger-icon-node.tsx
1835
- function wi({ icon: e }) {
2381
+ function $a({ icon: e }) {
1836
2382
  return /* @__PURE__ */ z("span", {
1837
2383
  "data-slot": "tabs-trigger-icon",
1838
2384
  "aria-hidden": "true",
1839
- className: ke,
1840
- children: /* @__PURE__ */ z(h.Provider, {
2385
+ className: Ge,
2386
+ children: /* @__PURE__ */ z(g.Provider, {
1841
2387
  value: !0,
1842
2388
  children: e
1843
2389
  })
@@ -1845,44 +2391,44 @@ function wi({ icon: e }) {
1845
2391
  }
1846
2392
  //#endregion
1847
2393
  //#region lib/components/ui/primitives/tabs/tabs-embed.tsx
1848
- function Ti(e) {
1849
- return /* @__PURE__ */ z(Te, {
1850
- IconPart: wi,
2394
+ function eo(e) {
2395
+ return /* @__PURE__ */ z(Ve, {
2396
+ IconPart: $a,
1851
2397
  ...e
1852
2398
  });
1853
2399
  }
1854
2400
  //#endregion
1855
2401
  //#region lib/components/ui/selection/checkbox/checkbox.tsx
1856
- function Ei({ label: e, helperText: t, className: n, ...r }) {
2402
+ function to({ label: e, helperText: t, className: n, ...r }) {
1857
2403
  let i = F(), a = F(), o = r["aria-invalid"] === !0 || r["aria-invalid"] === "true", s = [r["aria-describedby"], t ? a : void 0].filter(Boolean).join(" ") || void 0;
1858
2404
  return e || t ? /* @__PURE__ */ B("div", {
1859
2405
  "data-slot": "checkbox-field",
1860
2406
  className: A("flex gap-1.5 w-full min-w-[min(280px,100%)] pointer-coarse:py-3", n),
1861
- children: [/* @__PURE__ */ z(Di, {
2407
+ children: [/* @__PURE__ */ z(no, {
1862
2408
  ...r,
1863
2409
  "aria-describedby": s,
1864
2410
  id: r.id ?? i
1865
2411
  }), /* @__PURE__ */ B("div", {
1866
2412
  className: "flex flex-col gap-0.5",
1867
- children: [/* @__PURE__ */ z(y, {
2413
+ children: [/* @__PURE__ */ z(h, {
1868
2414
  htmlFor: r.id ?? i,
1869
2415
  className: "mt-0 ps-0.5 pointer-coarse:min-w-11 pointer-coarse:py-3 pointer-coarse:-my-[15px] peer-data-readonly:cursor-default",
1870
2416
  children: e
1871
- }), t && /* @__PURE__ */ z(_, {
2417
+ }), t && /* @__PURE__ */ z(v, {
1872
2418
  id: a,
1873
2419
  error: o,
1874
2420
  children: t
1875
2421
  })]
1876
2422
  })]
1877
- }) : /* @__PURE__ */ z(Di, {
2423
+ }) : /* @__PURE__ */ z(no, {
1878
2424
  "data-slot": "checkbox-field",
1879
2425
  className: n,
1880
2426
  ...r,
1881
2427
  id: r.id ?? i
1882
2428
  });
1883
2429
  }
1884
- function Di({ className: e, checked: t, defaultChecked: n, required: r, onCheckedChange: i, name: a, form: o, disabled: s, value: c, readOnly: l, ...u }) {
1885
- let d = /* @__PURE__ */ z(nn, {
2430
+ function no({ className: e, checked: t, defaultChecked: n, required: r, onCheckedChange: i, name: a, form: o, disabled: s, value: c, readOnly: l, ...u }) {
2431
+ let d = /* @__PURE__ */ z(Gn, {
1886
2432
  "data-slot": "checkbox",
1887
2433
  ...a === void 0 ? {} : { name: a },
1888
2434
  "aria-readonly": l || void 0,
@@ -1909,7 +2455,7 @@ function Di({ className: e, checked: t, defaultChecked: n, required: r, onChecke
1909
2455
  })
1910
2456
  })
1911
2457
  });
1912
- return /* @__PURE__ */ z(en, {
2458
+ return /* @__PURE__ */ z(Un, {
1913
2459
  checked: l ? t ?? n ?? !1 : t,
1914
2460
  defaultChecked: l ? void 0 : n,
1915
2461
  required: r,
@@ -1918,16 +2464,16 @@ function Di({ className: e, checked: t, defaultChecked: n, required: r, onChecke
1918
2464
  form: o,
1919
2465
  disabled: s,
1920
2466
  value: c,
1921
- ...He(d, /* @__PURE__ */ z(an, {}))
2467
+ ...Xe(d, /* @__PURE__ */ z(qn, {}))
1922
2468
  });
1923
2469
  }
1924
2470
  //#endregion
1925
2471
  //#region lib/components/ui/selection/checkbox/checkbox-form-field.tsx
1926
- function Oi({ control: e, name: t, ...n }) {
1927
- return /* @__PURE__ */ z(Qr, {
2472
+ function ro({ control: e, name: t, ...n }) {
2473
+ return /* @__PURE__ */ z(xa, {
1928
2474
  control: e,
1929
2475
  name: t,
1930
- render: ({ field: e, fieldState: r }) => /* @__PURE__ */ z(Ei, {
2476
+ render: ({ field: e, fieldState: r }) => /* @__PURE__ */ z(to, {
1931
2477
  ...n,
1932
2478
  ref: e.ref,
1933
2479
  name: t,
@@ -1944,14 +2490,14 @@ function Oi({ control: e, name: t, ...n }) {
1944
2490
  }
1945
2491
  //#endregion
1946
2492
  //#region lib/components/ui/display/chip/partials/use-reveal-selected.ts
1947
- var ki = "[aria-checked=\"true\"], [aria-pressed=\"true\"], [data-selected]";
1948
- function Ai(e, t, n, r) {
2493
+ var io = "[aria-checked=\"true\"], [aria-pressed=\"true\"], [data-selected]";
2494
+ function ao(e, t, n, r) {
1949
2495
  let i = n ? 48 : 2, a = r ? 48 : 2;
1950
2496
  return t.left - i < e.left ? t.left - i - e.left : t.right + a > e.right ? t.right + a - e.right : 0;
1951
2497
  }
1952
- function ji(e, t, n) {
2498
+ function oo(e, t, n) {
1953
2499
  if (e.scrollWidth - e.clientWidth <= 1) return;
1954
- let r = getComputedStyle(e).direction === "rtl", i = r ? t.nextElementSibling : t.previousElementSibling, a = r ? t.previousElementSibling : t.nextElementSibling, o = Ai(e.getBoundingClientRect(), t.getBoundingClientRect(), i !== null, a !== null);
2500
+ let r = getComputedStyle(e).direction === "rtl", i = r ? t.nextElementSibling : t.previousElementSibling, a = r ? t.previousElementSibling : t.nextElementSibling, o = ao(e.getBoundingClientRect(), t.getBoundingClientRect(), i !== null, a !== null);
1955
2501
  if (o === 0) return;
1956
2502
  let s = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1957
2503
  e.scrollTo({
@@ -1959,20 +2505,20 @@ function ji(e, t, n) {
1959
2505
  behavior: n && !s ? "smooth" : "auto"
1960
2506
  });
1961
2507
  }
1962
- function Mi(e, t) {
2508
+ function so(e, t) {
1963
2509
  P(() => {
1964
2510
  let n = e.current;
1965
2511
  if (!t || !n) return;
1966
2512
  let r = () => {
1967
- let e = n.querySelectorAll(ki), t = e[e.length - 1];
1968
- t && ji(n, t, !1);
2513
+ let e = n.querySelectorAll(io), t = e[e.length - 1];
2514
+ t && oo(n, t, !1);
1969
2515
  };
1970
2516
  r();
1971
2517
  let i = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(r);
1972
2518
  i?.observe(n);
1973
2519
  let a = typeof MutationObserver > "u" ? void 0 : new MutationObserver((e) => {
1974
2520
  let t = e.map((e) => e.target).filter((e) => e instanceof HTMLElement && e.matches("[aria-checked=\"true\"], [aria-pressed=\"true\"], [data-selected]")), r = t[t.length - 1];
1975
- r && ji(n, r, !0);
2521
+ r && oo(n, r, !0);
1976
2522
  });
1977
2523
  return a?.observe(n, {
1978
2524
  subtree: !0,
@@ -1989,14 +2535,14 @@ function Mi(e, t) {
1989
2535
  }
1990
2536
  //#endregion
1991
2537
  //#region lib/components/ui/display/chip/partials/use-chip-rail.ts
1992
- var Ni = [
2538
+ var co = [
1993
2539
  "-mx-0.5 -my-1 min-w-0 flex-nowrap overflow-x-auto overscroll-x-contain px-0.5 py-1 scroll-px-4 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>*]:shrink-0",
1994
2540
  "ltr:data-[fade=start]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
1995
2541
  "ltr:data-[fade=end]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
1996
2542
  "rtl:data-[fade=start]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
1997
2543
  "rtl:data-[fade=end]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
1998
2544
  "data-[fade=both]:[mask-image:linear-gradient(to_right,transparent,#000_2rem,#000_calc(100%-2rem),transparent)]"
1999
- ].join(" "), Pi = [
2545
+ ].join(" "), lo = [
2000
2546
  "max-sm:-mx-0.5 max-sm:-my-1 max-sm:min-w-0 max-sm:flex-nowrap max-sm:overflow-x-auto max-sm:overscroll-x-contain max-sm:px-0.5 max-sm:py-1 max-sm:scroll-px-4 max-sm:snap-x max-sm:snap-proximity max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden max-sm:[&>*]:shrink-0 max-sm:[&>*]:snap-start",
2001
2547
  "max-sm:ltr:data-[fade=start]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
2002
2548
  "max-sm:ltr:data-[fade=end]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
@@ -2004,7 +2550,7 @@ var Ni = [
2004
2550
  "max-sm:rtl:data-[fade=end]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
2005
2551
  "max-sm:data-[fade=both]:[mask-image:linear-gradient(to_right,transparent,#000_2rem,#000_calc(100%-2rem),transparent)]"
2006
2552
  ].join(" ");
2007
- function Fi(e, t = !1) {
2553
+ function uo(e, t = !1) {
2008
2554
  let n = I(null), [r, i] = L();
2009
2555
  return P(() => {
2010
2556
  let t = n.current;
@@ -2025,13 +2571,13 @@ function Fi(e, t = !1) {
2025
2571
  return o?.observe(t), () => {
2026
2572
  t.removeEventListener("scroll", r), t.removeEventListener("wheel", a), o?.disconnect();
2027
2573
  };
2028
- }, [e]), Mi(n, e), e ? {
2574
+ }, [e]), so(n, e), e ? {
2029
2575
  ref: n,
2030
2576
  props: {
2031
2577
  "data-overflow": t ? "scroll-phone" : "scroll",
2032
2578
  "data-fade": r
2033
2579
  },
2034
- className: t ? Pi : Ni
2580
+ className: t ? lo : co
2035
2581
  } : {
2036
2582
  ref: void 0,
2037
2583
  props: void 0,
@@ -2040,7 +2586,7 @@ function Fi(e, t = !1) {
2040
2586
  }
2041
2587
  //#endregion
2042
2588
  //#region lib/components/ui/primitives/label/field-group.tsx
2043
- function Ii({ id: e }) {
2589
+ function fo({ id: e }) {
2044
2590
  let { t } = a();
2045
2591
  return /* @__PURE__ */ z("span", {
2046
2592
  id: e,
@@ -2048,7 +2594,7 @@ function Ii({ id: e }) {
2048
2594
  children: t("material.zod.default", "This value is not valid.")
2049
2595
  });
2050
2596
  }
2051
- function Li({ id: e }) {
2597
+ function po({ id: e }) {
2052
2598
  let { t } = a();
2053
2599
  return /* @__PURE__ */ z("span", {
2054
2600
  id: e,
@@ -2056,7 +2602,7 @@ function Li({ id: e }) {
2056
2602
  children: t("material.zod.required", "This field is required.")
2057
2603
  });
2058
2604
  }
2059
- function Ri({ label: e, labelId: t, describedBy: n = [] }, r) {
2605
+ function mo({ label: e, labelId: t, describedBy: n = [] }, r) {
2060
2606
  let i = !!(r["aria-label"] || r["aria-labelledby"]);
2061
2607
  return {
2062
2608
  "aria-labelledby": r["aria-labelledby"] || (e && !i ? t : void 0),
@@ -2065,33 +2611,33 @@ function Ri({ label: e, labelId: t, describedBy: n = [] }, r) {
2065
2611
  }
2066
2612
  //#endregion
2067
2613
  //#region lib/components/ui/selection/choice-group/choice-group-header.tsx
2068
- var zi = (e) => ({
2614
+ var ho = (e) => ({
2069
2615
  labelId: `${e}-label`,
2070
2616
  helperId: `${e}-helper`,
2071
2617
  invalidId: `${e}-invalid`,
2072
2618
  requiredId: `${e}-required`
2073
2619
  });
2074
- function Bi({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a, multiple: o, hideLabel: s }) {
2620
+ function go({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a, multiple: o, hideLabel: s }) {
2075
2621
  return /* @__PURE__ */ B(R, { children: [
2076
- t && /* @__PURE__ */ z(y, {
2622
+ t && /* @__PURE__ */ z(h, {
2077
2623
  id: e.labelId,
2078
2624
  withAsterisk: a,
2079
2625
  className: s ? "sr-only" : void 0,
2080
2626
  children: t
2081
2627
  }),
2082
- o && a && /* @__PURE__ */ z(Li, { id: e.requiredId }),
2083
- n && /* @__PURE__ */ z(_, {
2628
+ o && a && /* @__PURE__ */ z(po, { id: e.requiredId }),
2629
+ n && /* @__PURE__ */ z(v, {
2084
2630
  id: e.helperId,
2085
2631
  error: r,
2086
2632
  children: n
2087
2633
  }),
2088
- i && !n && /* @__PURE__ */ z(Ii, { id: e.invalidId })
2634
+ i && !n && /* @__PURE__ */ z(fo, { id: e.invalidId })
2089
2635
  ] });
2090
2636
  }
2091
2637
  //#endregion
2092
2638
  //#region lib/components/ui/selection/choice-group/choice-group-root.tsx
2093
- function Vi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentClassName: a, inlineReasons: o, reasonsBelow: s, contentRef: c, contentProps: l, children: u, ref: d, ...f }) {
2094
- let p = fe(), { rootProps: m } = e;
2639
+ function _o({ group: e, name: t, slot: n, hideLabel: r, className: i, contentClassName: a, inlineReasons: o, reasonsBelow: s, contentRef: c, contentProps: l, children: u, ref: d, ...f }) {
2640
+ let p = ce(), { rootProps: m } = e;
2095
2641
  return /* @__PURE__ */ B("div", {
2096
2642
  "data-slot": n,
2097
2643
  "data-pw": t ?? n,
@@ -2100,7 +2646,7 @@ function Vi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentCla
2100
2646
  ...m,
2101
2647
  ref: p,
2102
2648
  children: [
2103
- /* @__PURE__ */ z(Bi, {
2649
+ /* @__PURE__ */ z(go, {
2104
2650
  ids: e.ids,
2105
2651
  label: e.label,
2106
2652
  helperText: e.helperText,
@@ -2135,7 +2681,7 @@ function Vi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentCla
2135
2681
  }
2136
2682
  //#endregion
2137
2683
  //#region lib/components/ui/selection/choice-group/choice-selection.ts
2138
- function Hi(e) {
2684
+ function vo(e) {
2139
2685
  return e.type === "multiple" ? {
2140
2686
  type: "multiple",
2141
2687
  value: e.value,
@@ -2149,12 +2695,12 @@ function Hi(e) {
2149
2695
  }
2150
2696
  //#endregion
2151
2697
  //#region lib/components/ui/selection/choice-group/choice-group-props.ts
2152
- function Ui({ groupId: e, ids: t, multiple: n, orientation: r, label: i, help: a, invalid: o, required: s, aria: c, onKeyDown: l }) {
2698
+ function yo({ groupId: e, ids: t, multiple: n, orientation: r, label: i, help: a, invalid: o, required: s, aria: c, onKeyDown: l }) {
2153
2699
  return {
2154
2700
  role: n ? "group" : "radiogroup",
2155
2701
  id: e,
2156
2702
  "aria-orientation": n ? void 0 : r,
2157
- ...Ri({
2703
+ ...mo({
2158
2704
  label: i,
2159
2705
  labelId: t.labelId,
2160
2706
  describedBy: [
@@ -2168,7 +2714,7 @@ function Ui({ groupId: e, ids: t, multiple: n, orientation: r, label: i, help: a
2168
2714
  onKeyDown: l
2169
2715
  };
2170
2716
  }
2171
- function Wi({ multiple: e, checked: t, reason: n, isEntry: r, disabled: i, onClick: a, ref: o }) {
2717
+ function bo({ multiple: e, checked: t, reason: n, isEntry: r, disabled: i, onClick: a, ref: o }) {
2172
2718
  return {
2173
2719
  role: e ? "checkbox" : "radio",
2174
2720
  "aria-checked": t,
@@ -2183,12 +2729,12 @@ function Wi({ multiple: e, checked: t, reason: n, isEntry: r, disabled: i, onCli
2183
2729
  }
2184
2730
  //#endregion
2185
2731
  //#region lib/components/ui/primitives/direction/direction-of.ts
2186
- function Gi(e) {
2732
+ function xo(e) {
2187
2733
  return e && getComputedStyle(e).direction === "rtl" ? "rtl" : "ltr";
2188
2734
  }
2189
2735
  //#endregion
2190
2736
  //#region lib/components/ui/selection/choice-group/choice-key-target.ts
2191
- var Ki = /* @__PURE__ */ new Set([
2737
+ var So = /* @__PURE__ */ new Set([
2192
2738
  "ArrowUp",
2193
2739
  "ArrowDown",
2194
2740
  "ArrowLeft",
@@ -2196,7 +2742,7 @@ var Ki = /* @__PURE__ */ new Set([
2196
2742
  "Home",
2197
2743
  "End"
2198
2744
  ]);
2199
- function qi(e, t, n) {
2745
+ function Co(e, t, n) {
2200
2746
  let r = n[t]?.getBoundingClientRect();
2201
2747
  if (!r) return null;
2202
2748
  let i = r.left + r.width / 2, a = r.top + r.height / 2, o = e === "ArrowDown", s = n.flatMap((e, n) => {
@@ -2213,37 +2759,37 @@ function qi(e, t, n) {
2213
2759
  let c = Math.min(...s.map((e) => e.dy));
2214
2760
  return s.filter((e) => e.dy - c < r.height / 2).sort((e, t) => e.dx - t.dx)[0].index;
2215
2761
  }
2216
- function Ji(e, t, n, r, i) {
2762
+ function wo(e, t, n, r, i) {
2217
2763
  if (e.altKey || e.ctrlKey || e.metaKey) return null;
2218
2764
  if (e.key === "Enter") return e.preventDefault(), null;
2219
- if (!Ki.has(e.key) || r) return null;
2765
+ if (!So.has(e.key) || r) return null;
2220
2766
  let a = t.indexOf(e.target);
2221
2767
  if (a === -1) return null;
2222
- let o = e.key === "ArrowUp" || e.key === "ArrowDown", s = (i && o ? qi(e.key, a, t) : null) ?? Vt(e.key, a, n.map(() => ({ enabled: !0 })), { rtl: Gi(e.currentTarget) === "rtl" });
2768
+ let o = e.key === "ArrowUp" || e.key === "ArrowDown", s = (i && o ? Co(e.key, a, t) : null) ?? cn(e.key, a, n.map(() => ({ enabled: !0 })), { rtl: xo(e.currentTarget) === "rtl" });
2223
2769
  return e.preventDefault(), s === null ? null : (t[s]?.focus(), s);
2224
2770
  }
2225
2771
  //#endregion
2226
2772
  //#region lib/components/ui/selection/choice-group/choice-press.ts
2227
- function Yi(e, t) {
2773
+ function To(e, t) {
2228
2774
  let { options: n, selection: r, disabled: i, max: a } = e, o = n[t], s = r.type === "multiple" ? a : void 0;
2229
- if (!o || i || Rt(o, r.value, s)) return;
2775
+ if (!o || i || an(o, r.value, s)) return;
2230
2776
  if (r.type === "multiple") {
2231
- let e = Bt("multiple", r.value, o.value, { max: a });
2777
+ let e = sn("multiple", r.value, o.value, { max: a });
2232
2778
  e !== "blocked" && r.onValueChange?.(e);
2233
2779
  return;
2234
2780
  }
2235
- let c = Bt("single", r.value, o.value, { deselectable: r.deselectable });
2781
+ let c = sn("single", r.value, o.value, { deselectable: r.deselectable });
2236
2782
  c !== r.value && r.onValueChange?.(c);
2237
2783
  }
2238
- function Xi(e, t, n) {
2239
- let r = Ji(t, n, e.options, e.disabled, e.grid);
2240
- r !== null && e.selection.type !== "multiple" && Yi(e, r);
2784
+ function Eo(e, t, n) {
2785
+ let r = wo(t, n, e.options, e.disabled, e.grid);
2786
+ r !== null && e.selection.type !== "multiple" && To(e, r);
2241
2787
  }
2242
2788
  //#endregion
2243
2789
  //#region lib/components/ui/selection/choice-group/choice-texts.ts
2244
- function Zi({ t: e, groupId: t, options: n, value: r, multiple: i, max: a, min: o, hasHelper: s }) {
2790
+ function Do({ t: e, groupId: t, options: n, value: r, multiple: i, max: a, min: o, hasHelper: s }) {
2245
2791
  let c = n.map((n, i) => {
2246
- let o = Rt(n, r, a), s;
2792
+ let o = an(n, r, a), s;
2247
2793
  return o === "max" ? s = e("material.choice-group.max-reached", "{max, plural, one {Up to # choice} other {Up to # choices}}", { max: a ?? 0 }) : n.disabled && (s = n.disabledReason), {
2248
2794
  id: `${t}-reason-${i}`,
2249
2795
  text: s,
@@ -2261,12 +2807,12 @@ function Zi({ t: e, groupId: t, options: n, value: r, multiple: i, max: a, min:
2261
2807
  }
2262
2808
  //#endregion
2263
2809
  //#region lib/components/ui/selection/choice-group/use-choice-item-refs.ts
2264
- function Qi(e, t) {
2810
+ function Oo(e, t) {
2265
2811
  typeof e == "function" ? e(t) : e && (e.current = t);
2266
2812
  }
2267
- function $i({ ref: e, entry: t, count: n }) {
2813
+ function ko({ ref: e, entry: t, count: n }) {
2268
2814
  let r = I([]), i = I([]);
2269
- return P(() => (r.current.length = n, Qi(e, r.current[t] ?? null), () => Qi(e, null)), [
2815
+ return P(() => (r.current.length = n, Oo(e, r.current[t] ?? null), () => Oo(e, null)), [
2270
2816
  t,
2271
2817
  e,
2272
2818
  n
@@ -2279,8 +2825,8 @@ function $i({ ref: e, entry: t, count: n }) {
2279
2825
  }
2280
2826
  //#endregion
2281
2827
  //#region lib/components/ui/selection/choice-group/use-choice-group.ts
2282
- function ea(e) {
2283
- let { options: t, selection: n, label: r, helperText: i, error: o, disabled: s, ref: c } = e, { t: l } = a(), u = F(), d = e.id ?? u, f = zi(d), p = n.type === "multiple", m = n.value, h = p ? e.max : void 0, g = e.aria ?? {}, _ = Array.isArray(m) ? m : m === null ? [] : [m], v = !!(o || g["aria-invalid"] && g["aria-invalid"] !== "false"), y = Zi({
2828
+ function Ao(e) {
2829
+ let { options: t, selection: n, label: r, helperText: i, error: o, disabled: s, ref: c } = e, { t: l } = a(), u = F(), d = e.id ?? u, f = ho(d), p = n.type === "multiple", m = n.value, h = p ? e.max : void 0, g = e.aria ?? {}, _ = Array.isArray(m) ? m : m === null ? [] : [m], v = !!(o || g["aria-invalid"] && g["aria-invalid"] !== "false"), y = Do({
2284
2830
  t: l,
2285
2831
  groupId: d,
2286
2832
  options: t,
@@ -2289,13 +2835,13 @@ function ea(e) {
2289
2835
  max: h,
2290
2836
  min: e.min,
2291
2837
  hasHelper: !!i
2292
- }), b = i || y.hint, x = s ? -1 : zt(t, m), S = {
2838
+ }), b = i || y.hint, x = s ? -1 : on(t, m), S = {
2293
2839
  options: t,
2294
2840
  selection: n,
2295
2841
  disabled: s,
2296
2842
  max: e.max,
2297
2843
  grid: e.grid
2298
- }, C = t.length, { items: w, itemRef: T } = $i({
2844
+ }, C = t.length, { items: w, itemRef: T } = ko({
2299
2845
  ref: c,
2300
2846
  entry: x,
2301
2847
  count: C
@@ -2316,7 +2862,7 @@ function ea(e) {
2316
2862
  text: e.text,
2317
2863
  why: e.why
2318
2864
  }] : []),
2319
- rootProps: Ui({
2865
+ rootProps: yo({
2320
2866
  groupId: d,
2321
2867
  ids: f,
2322
2868
  multiple: p,
@@ -2326,28 +2872,28 @@ function ea(e) {
2326
2872
  invalid: v,
2327
2873
  required: e.required,
2328
2874
  aria: g,
2329
- onKeyDown: (e) => Xi(S, e, w.current)
2875
+ onKeyDown: (e) => Eo(S, e, w.current)
2330
2876
  }),
2331
- itemProps: (e, t) => Wi({
2877
+ itemProps: (e, t) => bo({
2332
2878
  multiple: p,
2333
2879
  checked: _.includes(e.value),
2334
2880
  reason: y.reasons[t],
2335
2881
  isEntry: t === x,
2336
2882
  disabled: s,
2337
- onClick: () => Yi(S, t),
2883
+ onClick: () => To(S, t),
2338
2884
  ref: T(t)
2339
2885
  })
2340
2886
  };
2341
2887
  }
2342
2888
  //#endregion
2343
2889
  //#region lib/components/ui/selection/choice-group/use-choice-group-field.ts
2344
- function ta(e, t, n = {}) {
2345
- let r = Hi(e), { type: i, value: a, onValueChange: o, label: s, helperText: c, error: l, required: u, disabled: d, name: f, max: p, min: m, orientation: h, ref: g, ..._ } = e, { deselectable: v, ...y } = {
2890
+ function jo(e, t, n = {}) {
2891
+ let r = vo(e), { type: i, value: a, onValueChange: o, label: s, helperText: c, error: l, required: u, disabled: d, name: f, max: p, min: m, orientation: h, ref: g, ..._ } = e, { deselectable: v, ...y } = {
2346
2892
  deselectable: void 0,
2347
2893
  ..._
2348
2894
  };
2349
2895
  return {
2350
- group: ea({
2896
+ group: Ao({
2351
2897
  options: t,
2352
2898
  selection: r,
2353
2899
  grid: n.grid,
@@ -2370,7 +2916,7 @@ function ta(e, t, n = {}) {
2370
2916
  }
2371
2917
  //#endregion
2372
2918
  //#region lib/components/ui/selection/chip-group-field/chip-group-columns.ts
2373
- var na = [
2919
+ var Mo = [
2374
2920
  "grid-cols-1",
2375
2921
  "grid-cols-2",
2376
2922
  "grid-cols-3",
@@ -2383,7 +2929,7 @@ var na = [
2383
2929
  "grid-cols-10",
2384
2930
  "grid-cols-11",
2385
2931
  "grid-cols-12"
2386
- ], ra = [
2932
+ ], No = [
2387
2933
  "sm:grid-cols-1",
2388
2934
  "sm:grid-cols-2",
2389
2935
  "sm:grid-cols-3",
@@ -2396,7 +2942,7 @@ var na = [
2396
2942
  "sm:grid-cols-10",
2397
2943
  "sm:grid-cols-11",
2398
2944
  "sm:grid-cols-12"
2399
- ], ia = [
2945
+ ], Po = [
2400
2946
  "md:grid-cols-1",
2401
2947
  "md:grid-cols-2",
2402
2948
  "md:grid-cols-3",
@@ -2409,7 +2955,7 @@ var na = [
2409
2955
  "md:grid-cols-10",
2410
2956
  "md:grid-cols-11",
2411
2957
  "md:grid-cols-12"
2412
- ], aa = [
2958
+ ], Fo = [
2413
2959
  "lg:grid-cols-1",
2414
2960
  "lg:grid-cols-2",
2415
2961
  "lg:grid-cols-3",
@@ -2422,26 +2968,26 @@ var na = [
2422
2968
  "lg:grid-cols-10",
2423
2969
  "lg:grid-cols-11",
2424
2970
  "lg:grid-cols-12"
2425
- ], oa = (e, t) => t === void 0 || !Number.isFinite(t) ? void 0 : e[Math.min(12, Math.max(1, Math.trunc(t))) - 1];
2426
- function sa(e) {
2971
+ ], Io = (e, t) => t === void 0 || !Number.isFinite(t) ? void 0 : e[Math.min(12, Math.max(1, Math.trunc(t))) - 1];
2972
+ function Lo(e) {
2427
2973
  let t = typeof e == "number" ? { base: e } : e;
2428
2974
  return [
2429
- oa(na, t.base ?? 1),
2430
- oa(ra, t.sm),
2431
- oa(ia, t.md),
2432
- oa(aa, t.lg)
2975
+ Io(Mo, t.base ?? 1),
2976
+ Io(No, t.sm),
2977
+ Io(Po, t.md),
2978
+ Io(Fo, t.lg)
2433
2979
  ].filter(Boolean).join(" ");
2434
2980
  }
2435
2981
  //#endregion
2436
2982
  //#region lib/components/ui/display/chip/chip.variants.ts
2437
- function ca(e) {
2983
+ function Ro(e) {
2438
2984
  return e === "tag" ? "tag" : e === "tonal" || e === "filled" || e === "ghost" ? "soft" : "hairline";
2439
2985
  }
2440
- function la(e) {
2986
+ function zo(e) {
2441
2987
  return !e || e === "default" ? "neutral" : e;
2442
2988
  }
2443
- function ua({ variant: e, size: t, color: n, selected: r }) {
2444
- let i = ca(e), a = la(n);
2989
+ function Bo({ variant: e, size: t, color: n, selected: r }) {
2990
+ let i = Ro(e), a = zo(n);
2445
2991
  return {
2446
2992
  look: i,
2447
2993
  tone: a,
@@ -2458,22 +3004,22 @@ function ua({ variant: e, size: t, color: n, selected: r }) {
2458
3004
  }
2459
3005
  //#endregion
2460
3006
  //#region lib/components/ui/display/chip/partials/chip-body.tsx
2461
- function da(e) {
2462
- return N(e) ? Ge(e, { className: A("size-(--chip-avatar)", e.props.className) }) : e;
3007
+ function Vo(e) {
3008
+ return N(e) ? st(e, { className: A("size-(--chip-avatar)", e.props.className) }) : e;
2463
3009
  }
2464
- function fa({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a }) {
3010
+ function Ho({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a }) {
2465
3011
  let o = null;
2466
3012
  return e ? o = /* @__PURE__ */ z("span", {
2467
3013
  "data-slot": "chip-avatar",
2468
3014
  "aria-hidden": n ? "true" : void 0,
2469
- children: da(e)
3015
+ children: Vo(e)
2470
3016
  }) : t ? o = /* @__PURE__ */ z("span", {
2471
3017
  "data-slot": "chip-lead",
2472
3018
  children: t
2473
3019
  }) : i ? o = /* @__PURE__ */ z("span", {
2474
3020
  "data-slot": "chip-check",
2475
3021
  "aria-hidden": "true",
2476
- children: /* @__PURE__ */ z(tt, { strokeWidth: 2.75 })
3022
+ children: /* @__PURE__ */ z(xt, { strokeWidth: 2.75 })
2477
3023
  }) : a && (o = /* @__PURE__ */ z("span", {
2478
3024
  "data-slot": "chip-dot",
2479
3025
  "aria-hidden": "true"
@@ -2491,14 +3037,14 @@ function fa({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a })
2491
3037
  }
2492
3038
  //#endregion
2493
3039
  //#region lib/lib/react-node-text.ts
2494
- function pa(e) {
2495
- return e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(pa).join("") : N(e) ? pa(e.props.children) : "";
3040
+ function Uo(e) {
3041
+ return e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(Uo).join("") : N(e) ? Uo(e.props.children) : "";
2496
3042
  }
2497
3043
  //#endregion
2498
3044
  //#region lib/components/ui/display/chip/partials/chip-dismiss-button.tsx
2499
- function ma({ label: e, dismissLabel: t, disabled: n, onDismiss: r }) {
2500
- let { t: i } = a(), o = pa(e).replace(/\s+/g, " ").trim(), s = i("material.chip.dismiss", "Remove");
2501
- return /* @__PURE__ */ z(S, {
3045
+ function Wo({ label: e, dismissLabel: t, disabled: n, onDismiss: r }) {
3046
+ let { t: i } = a(), o = Uo(e).replace(/\s+/g, " ").trim(), s = i("material.chip.dismiss", "Remove");
3047
+ return /* @__PURE__ */ z(w, {
2502
3048
  content: s,
2503
3049
  children: /* @__PURE__ */ z("button", {
2504
3050
  type: "button",
@@ -2517,14 +3063,14 @@ function ma({ label: e, dismissLabel: t, disabled: n, onDismiss: r }) {
2517
3063
  }
2518
3064
  //#endregion
2519
3065
  //#region lib/components/ui/display/chip/partials/chip-dismissible.tsx
2520
- function ha({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disabled: a, tooltip: o, className: s, bodyProps: c, ref: l }) {
3066
+ function Go({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disabled: a, tooltip: o, className: s, bodyProps: c, ref: l }) {
2521
3067
  let u = c.onClick ? /* @__PURE__ */ z("button", {
2522
3068
  type: "button",
2523
3069
  disabled: a,
2524
3070
  ...c,
2525
3071
  "data-slot": "chip-body",
2526
3072
  ref: l,
2527
- children: /* @__PURE__ */ z(h, {
3073
+ children: /* @__PURE__ */ z(g, {
2528
3074
  value: !0,
2529
3075
  children: t
2530
3076
  })
@@ -2540,10 +3086,10 @@ function ha({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disab
2540
3086
  "data-dismissible": "",
2541
3087
  "data-disabled": a ? "" : void 0,
2542
3088
  className: A("nxgt-chip", s),
2543
- children: [o ? /* @__PURE__ */ z(S, {
3089
+ children: [o ? /* @__PURE__ */ z(w, {
2544
3090
  content: o,
2545
3091
  children: u
2546
- }) : u, /* @__PURE__ */ z(ma, {
3092
+ }) : u, /* @__PURE__ */ z(Wo, {
2547
3093
  label: n,
2548
3094
  dismissLabel: r,
2549
3095
  disabled: a,
@@ -2553,7 +3099,7 @@ function ha({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disab
2553
3099
  }
2554
3100
  //#endregion
2555
3101
  //#region lib/components/ui/display/chip/partials/chip-plain.tsx
2556
- function ga({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootProps: a, ref: o }) {
3102
+ function Ko({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootProps: a, ref: o }) {
2557
3103
  let s = a.onClick ? /* @__PURE__ */ z("button", {
2558
3104
  type: "button",
2559
3105
  ...e,
@@ -2561,7 +3107,7 @@ function ga({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootPro
2561
3107
  ...a,
2562
3108
  ref: o,
2563
3109
  className: A("nxgt-chip", i),
2564
- children: /* @__PURE__ */ z(h, {
3110
+ children: /* @__PURE__ */ z(g, {
2565
3111
  value: !0,
2566
3112
  children: t
2567
3113
  })
@@ -2575,24 +3121,24 @@ function ga({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootPro
2575
3121
  className: A("nxgt-chip", i),
2576
3122
  children: t
2577
3123
  });
2578
- return r ? /* @__PURE__ */ z(S, {
3124
+ return r ? /* @__PURE__ */ z(w, {
2579
3125
  content: r,
2580
3126
  children: s
2581
3127
  }) : s;
2582
3128
  }
2583
3129
  //#endregion
2584
3130
  //#region lib/components/ui/display/chip/chip.tsx
2585
- function _a(e) {
3131
+ function qo(e) {
2586
3132
  let { loading: t, lockOnClick: n, spinnerVariant: r, wrap: i, asChild: a, ...o } = e;
2587
3133
  return o;
2588
3134
  }
2589
- function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active: a, variant: o = "outlined", onDismiss: s, dismissLabel: c, size: l = "default", color: u, tooltip: d, ref: f, disabled: p, ...m }) {
2590
- let h = _a(m), g = h["aria-pressed"] === !0 || h["aria-pressed"] === "true" || h["aria-checked"] === !0 || h["aria-checked"] === "true", _ = ua({
3135
+ function Jo({ label: e, leading: t, trailing: n, avatar: r, className: i, active: a, variant: o = "outlined", onDismiss: s, dismissLabel: c, size: l = "default", color: u, tooltip: d, ref: f, disabled: p, ...m }) {
3136
+ let h = qo(m), g = h["aria-pressed"] === !0 || h["aria-pressed"] === "true" || h["aria-checked"] === !0 || h["aria-checked"] === "true", _ = Bo({
2591
3137
  variant: o,
2592
3138
  size: l,
2593
3139
  color: u,
2594
3140
  selected: a || g
2595
- }), v = _.attributes, y = /* @__PURE__ */ z(fa, {
3141
+ }), v = _.attributes, y = /* @__PURE__ */ z(Ho, {
2596
3142
  avatar: r,
2597
3143
  leading: t,
2598
3144
  label: e,
@@ -2600,7 +3146,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
2600
3146
  check: g,
2601
3147
  dot: _.look === "tag" && _.tone !== "neutral"
2602
3148
  });
2603
- return s ? /* @__PURE__ */ z(ha, {
3149
+ return s ? /* @__PURE__ */ z(Go, {
2604
3150
  shared: v,
2605
3151
  body: y,
2606
3152
  label: e,
@@ -2611,7 +3157,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
2611
3157
  className: i,
2612
3158
  bodyProps: h,
2613
3159
  ref: f
2614
- }) : /* @__PURE__ */ z(ga, {
3160
+ }) : /* @__PURE__ */ z(Ko, {
2615
3161
  shared: v,
2616
3162
  body: y,
2617
3163
  disabled: p,
@@ -2623,7 +3169,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
2623
3169
  }
2624
3170
  //#endregion
2625
3171
  //#region lib/components/ui/selection/option-count/option-count.tsx
2626
- function ya({ count: e, inChip: t = !1 }) {
3172
+ function Yo({ count: e, inChip: t = !1 }) {
2627
3173
  let { t: n } = a();
2628
3174
  return e === void 0 ? null : /* @__PURE__ */ B(R, { children: [
2629
3175
  " ",
@@ -2640,24 +3186,24 @@ function ya({ count: e, inChip: t = !1 }) {
2640
3186
  }
2641
3187
  //#endregion
2642
3188
  //#region lib/components/ui/selection/chip-group-field/partials/chip-group-option.tsx
2643
- function ba() {
3189
+ function Xo() {
2644
3190
  return /* @__PURE__ */ z("svg", {
2645
3191
  "aria-hidden": "true",
2646
3192
  focusable: "false",
2647
3193
  "data-room": ""
2648
3194
  });
2649
3195
  }
2650
- function xa({ group: e, option: t, index: n, size: r, dataPw: i, name: a, columns: o, showReason: s }) {
3196
+ function Zo({ group: e, option: t, index: n, size: r, dataPw: i, name: a, columns: o, showReason: s }) {
2651
3197
  let { ref: c, "aria-describedby": l, ...u } = e.itemProps(t, n), d = u["aria-checked"], f = e.reasons.find((e) => e.id === l)?.text, p = t.description ? `${e.groupId}-description-${n}` : void 0, m = s && f && e.reasons.find((e) => e.id === l)?.why === "disabled" ? f : void 0, h = [l, p].filter(Boolean).join(" ");
2652
- return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(va, {
3198
+ return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Jo, {
2653
3199
  ...u,
2654
3200
  ref: c,
2655
3201
  variant: "tonal",
2656
3202
  size: r,
2657
3203
  color: t.tone,
2658
3204
  label: t.label,
2659
- leading: d ? void 0 : t.icon ?? /* @__PURE__ */ z(ba, {}),
2660
- trailing: /* @__PURE__ */ z(ya, {
3205
+ leading: d ? void 0 : t.icon ?? /* @__PURE__ */ z(Xo, {}),
3206
+ trailing: /* @__PURE__ */ z(Yo, {
2661
3207
  count: t.count,
2662
3208
  inChip: !0
2663
3209
  }),
@@ -2675,7 +3221,7 @@ function xa({ group: e, option: t, index: n, size: r, dataPw: i, name: a, column
2675
3221
  }
2676
3222
  //#endregion
2677
3223
  //#region lib/components/ui/selection/chip-group-field/partials/chip-group-reasons.tsx
2678
- function Sa({ reasons: e }) {
3224
+ function Qo({ reasons: e }) {
2679
3225
  return e.length === 0 ? null : /* @__PURE__ */ z("div", {
2680
3226
  "data-slot": "chip-group-reasons",
2681
3227
  className: "grid gap-0.5 px-1 text-xs text-muted-foreground",
@@ -2698,7 +3244,7 @@ function Sa({ reasons: e }) {
2698
3244
  }
2699
3245
  //#endregion
2700
3246
  //#region lib/components/ui/selection/chip-group-field/partials/chip-group-sections.tsx
2701
- function Ca({ groupId: e, sections: t, gridClasses: n, renderChip: r }) {
3247
+ function $o({ groupId: e, sections: t, gridClasses: n, renderChip: r }) {
2702
3248
  let i = 0;
2703
3249
  return t.map((t, a) => {
2704
3250
  let o = i;
@@ -2723,8 +3269,8 @@ function Ca({ groupId: e, sections: t, gridClasses: n, renderChip: r }) {
2723
3269
  }
2724
3270
  //#endregion
2725
3271
  //#region lib/components/ui/selection/chip-group-field/chip-group-field.tsx
2726
- function wa(e) {
2727
- let { options: t, groups: n, size: r, columns: i, overflow: a = "wrap", showDisabledReason: o = !0, hideLabel: s, ...c } = e, l = n ? n.flatMap((e) => e.options) : t ?? [], { group: u, name: d, dom: f } = ta(c, l, { grid: i !== void 0 || n !== void 0 }), p = Fi(a !== "wrap" && i === void 0 && !n, a === "scroll-phone"), m = i === void 0 ? void 0 : sa(i), h = (e, t) => /* @__PURE__ */ z(xa, {
3272
+ function es(e) {
3273
+ let { options: t, groups: n, size: r, columns: i, overflow: a = "wrap", showDisabledReason: o = !0, hideLabel: s, ...c } = e, l = n ? n.flatMap((e) => e.options) : t ?? [], { group: u, name: d, dom: f } = jo(c, l, { grid: i !== void 0 || n !== void 0 }), p = uo(a !== "wrap" && i === void 0 && !n, a === "scroll-phone"), m = i === void 0 ? void 0 : Lo(i), h = (e, t) => /* @__PURE__ */ z(Zo, {
2728
3274
  group: u,
2729
3275
  option: e,
2730
3276
  index: t,
@@ -2740,18 +3286,18 @@ function wa(e) {
2740
3286
  label: e.label
2741
3287
  }] : [];
2742
3288
  }) : [];
2743
- return /* @__PURE__ */ z(Vi, {
3289
+ return /* @__PURE__ */ z(_o, {
2744
3290
  ...f,
2745
3291
  group: u,
2746
3292
  name: d,
2747
3293
  slot: "chip-group-field",
2748
3294
  hideLabel: s,
2749
3295
  inlineReasons: o,
2750
- reasonsBelow: /* @__PURE__ */ z(Sa, { reasons: g }),
3296
+ reasonsBelow: /* @__PURE__ */ z(Qo, { reasons: g }),
2751
3297
  contentRef: p.ref,
2752
3298
  contentProps: p.props,
2753
3299
  contentClassName: A(p.className, n && "mt-1 flex-col flex-nowrap gap-4", !n && m && `grid ${m}`),
2754
- children: n ? /* @__PURE__ */ z(Ca, {
3300
+ children: n ? /* @__PURE__ */ z($o, {
2755
3301
  groupId: u.groupId,
2756
3302
  sections: n,
2757
3303
  gridClasses: m,
@@ -2761,9 +3307,9 @@ function wa(e) {
2761
3307
  }
2762
3308
  //#endregion
2763
3309
  //#region lib/components/ui/widgets/chat/partials/chat-composer-attachment-chip.tsx
2764
- var Ta = 36;
2765
- function Ea({ file: e, onRemove: t, className: n }) {
2766
- let { t: r } = a(), i = I(null), o = hi(i, e, Ta * 2), s = r("material.chat.remove-attachment", "Remove attachment");
3310
+ var ts = 36;
3311
+ function ns({ file: e, onRemove: t, className: n }) {
3312
+ let { t: r } = a(), i = I(null), o = Ra(i, e, ts * 2), s = r("material.chat.remove-attachment", "Remove attachment");
2767
3313
  return /* @__PURE__ */ B("div", {
2768
3314
  "data-slot": "chat-composer-attachment-chip",
2769
3315
  className: A("group/chip inline-flex min-w-0 max-w-full animate-in items-center gap-2.5 rounded-(--nxgt-shape-corner-md) border border-border/70 bg-background py-1.5 ps-1.5 pe-1 text-xs shadow-xs fade-in zoom-in-95 duration-(--nxgt-motion-effects-default-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none @md:max-w-64", n),
@@ -2775,7 +3321,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
2775
3321
  }),
2776
3322
  !o && /* @__PURE__ */ z("span", {
2777
3323
  className: "flex size-9 shrink-0 items-center justify-center rounded-(--nxgt-shape-corner-sm) bg-primary/10 text-primary-text",
2778
- children: /* @__PURE__ */ z(ht, { className: "size-4" })
3324
+ children: /* @__PURE__ */ z(Ft, { className: "size-4" })
2779
3325
  }),
2780
3326
  /* @__PURE__ */ B("span", {
2781
3327
  className: "flex min-w-0 flex-col",
@@ -2784,7 +3330,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
2784
3330
  children: e.name
2785
3331
  }), /* @__PURE__ */ z("span", {
2786
3332
  className: "text-[0.6875rem] text-muted-foreground tabular-nums",
2787
- children: Lt(e.size)
3333
+ children: rn(e.size)
2788
3334
  })]
2789
3335
  }),
2790
3336
  t && /* @__PURE__ */ z(x, {
@@ -2801,7 +3347,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
2801
3347
  }
2802
3348
  //#endregion
2803
3349
  //#region lib/components/ui/widgets/chat/partials/chat-composer-attachments.tsx
2804
- function Da({ isDisabled: e, canAttachMore: t, accept: n, maxFiles: r, attachLabel: i, fileInputRef: a, onAttachmentsChange: o, handleFiles: s, actions: c }) {
3350
+ function rs({ isDisabled: e, canAttachMore: t, accept: n, maxFiles: r, attachLabel: i, fileInputRef: a, onAttachmentsChange: o, handleFiles: s, actions: c }) {
2805
3351
  return !o && !c ? null : /* @__PURE__ */ B("div", {
2806
3352
  "data-slot": "chat-composer-tools",
2807
3353
  className: "flex items-end gap-1 pb-0.5",
@@ -2823,15 +3369,15 @@ function Da({ isDisabled: e, canAttachMore: t, accept: n, maxFiles: r, attachLab
2823
3369
  disabled: e || !t,
2824
3370
  onClick: () => a.current?.click(),
2825
3371
  className: "shrink-0",
2826
- children: /* @__PURE__ */ z(xt, {})
3372
+ children: /* @__PURE__ */ z(Vt, {})
2827
3373
  })] }), c]
2828
3374
  });
2829
3375
  }
2830
- function Oa({ attachments: e, isDisabled: t, onAttachmentsChange: n, className: r }) {
3376
+ function is({ attachments: e, isDisabled: t, onAttachmentsChange: n, className: r }) {
2831
3377
  return e.length === 0 ? null : /* @__PURE__ */ z("div", {
2832
3378
  "data-slot": "chat-composer-attachments",
2833
3379
  className: A("flex flex-wrap gap-2", r),
2834
- children: e.map((r, i) => /* @__PURE__ */ z(Ea, {
3380
+ children: e.map((r, i) => /* @__PURE__ */ z(ns, {
2835
3381
  file: r,
2836
3382
  onRemove: t ? void 0 : () => n?.(e.filter((e, t) => t !== i))
2837
3383
  }, `${r.name}-${r.size}-${i}`))
@@ -2839,7 +3385,7 @@ function Oa({ attachments: e, isDisabled: t, onAttachmentsChange: n, className:
2839
3385
  }
2840
3386
  //#endregion
2841
3387
  //#region lib/components/ui/widgets/chat/partials/chat-composer-disabled-reason.tsx
2842
- function ka({ id: e, children: t }) {
3388
+ function as({ id: e, children: t }) {
2843
3389
  return e ? /* @__PURE__ */ z("p", {
2844
3390
  id: e,
2845
3391
  "data-slot": "chat-composer-disabled-reason",
@@ -2849,7 +3395,7 @@ function ka({ id: e, children: t }) {
2849
3395
  }
2850
3396
  //#endregion
2851
3397
  //#region lib/components/ui/widgets/chat/partials/chat-composer-send.tsx
2852
- function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i, shape: a = "round" }) {
3398
+ function os({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i, shape: a = "round" }) {
2853
3399
  if (i) return /* @__PURE__ */ z(x, {
2854
3400
  "data-slot": "chat-composer-stop",
2855
3401
  "data-send-shape": a === "squircle" ? a : void 0,
@@ -2859,7 +3405,7 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
2859
3405
  "aria-label": t,
2860
3406
  onClick: i,
2861
3407
  className: "size-9 shrink-0 animate-in zoom-in-75 duration-(--nxgt-motion-effects-default-duration) ease-effects-default motion-reduce:animate-none",
2862
- children: /* @__PURE__ */ z(Ot, { className: "size-3.5 fill-current" })
3408
+ children: /* @__PURE__ */ z(Jt, { className: "size-3.5 fill-current" })
2863
3409
  });
2864
3410
  let o = !n && !r;
2865
3411
  return /* @__PURE__ */ z(x, {
@@ -2873,7 +3419,7 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
2873
3419
  disabled: !o,
2874
3420
  "aria-label": e,
2875
3421
  className: A("size-9 shrink-0 [transition:scale_var(--nxgt-motion-spatial-fast-duration)_var(--nxgt-motion-spatial-fast),opacity_var(--nxgt-motion-effects-default-duration)_var(--nxgt-motion-effects-default),background-color_var(--nxgt-motion-effects-default-duration)_var(--nxgt-motion-effects-default)]", o ? "scale-100" : "scale-90 disabled:opacity-35"),
2876
- children: /* @__PURE__ */ z(et, {
3422
+ children: /* @__PURE__ */ z(bt, {
2877
3423
  className: "size-4.5",
2878
3424
  strokeWidth: 2.5
2879
3425
  })
@@ -2881,8 +3427,8 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
2881
3427
  }
2882
3428
  //#endregion
2883
3429
  //#region lib/components/ui/widgets/chat/partials/preloaded-lazy.tsx
2884
- function ja(e) {
2885
- let t, n, r = () => (n ??= e().then((e) => (t = e, { default: e })), n), i = qe(r);
3430
+ function ss(e) {
3431
+ let t, n, r = () => (n ??= e().then((e) => (t = e, { default: e })), n), i = lt(r);
2886
3432
  function a(e) {
2887
3433
  return z(t || i, { ...e });
2888
3434
  }
@@ -2890,12 +3436,12 @@ function ja(e) {
2890
3436
  }
2891
3437
  //#endregion
2892
3438
  //#region lib/components/ui/widgets/chat/partials/chat-composer-input.tsx
2893
- var Ma = ja(() => import("./embed-chunks/emoji-picker-BSYBi_C8.js").then((e) => e.EmojiPicker));
2894
- function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKeyDown: i, placeholder: a, messageLabel: o, sendLabel: s, stopLabel: c = "Stop", attachLabel: l, isDisabled: u, describedBy: d, isEmpty: f, canAttachMore: p, handleFiles: m, onAttachmentsChange: h, accept: g, maxFiles: _, maxLength: v, actions: y, emojis: b, onStop: x }) {
3439
+ var cs = ss(() => import("./embed-chunks/emoji-picker-CrIXB9pF.js").then((e) => e.EmojiPicker));
3440
+ function ls({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKeyDown: i, placeholder: a, messageLabel: o, sendLabel: s, stopLabel: c = "Stop", attachLabel: l, isDisabled: u, describedBy: d, isEmpty: f, canAttachMore: p, handleFiles: m, onAttachmentsChange: h, accept: g, maxFiles: _, maxLength: v, actions: y, emojis: b, onStop: x }) {
2895
3441
  return /* @__PURE__ */ B("div", {
2896
3442
  className: "flex items-end gap-1 p-1.5",
2897
3443
  children: [
2898
- /* @__PURE__ */ z(Da, {
3444
+ /* @__PURE__ */ z(rs, {
2899
3445
  isDisabled: u,
2900
3446
  canAttachMore: p,
2901
3447
  accept: g,
@@ -2904,9 +3450,9 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
2904
3450
  fileInputRef: r,
2905
3451
  onAttachmentsChange: h,
2906
3452
  handleFiles: m,
2907
- actions: /* @__PURE__ */ B(R, { children: [b && b.length > 0 && /* @__PURE__ */ z(We, {
3453
+ actions: /* @__PURE__ */ B(R, { children: [b && b.length > 0 && /* @__PURE__ */ z(ot, {
2908
3454
  fallback: null,
2909
- children: /* @__PURE__ */ z(Ma, {
3455
+ children: /* @__PURE__ */ z(cs, {
2910
3456
  emojis: b,
2911
3457
  onSelect: (n) => {
2912
3458
  n.emoji && t?.(`${e}${n.emoji}`);
@@ -2914,7 +3460,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
2914
3460
  })
2915
3461
  }), y] })
2916
3462
  }),
2917
- /* @__PURE__ */ z(ni, {
3463
+ /* @__PURE__ */ z(ui, {
2918
3464
  ref: n,
2919
3465
  value: e,
2920
3466
  onChange: (e) => t?.(e.target.value),
@@ -2928,7 +3474,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
2928
3474
  "aria-label": o,
2929
3475
  "aria-describedby": d
2930
3476
  }),
2931
- /* @__PURE__ */ z(Aa, {
3477
+ /* @__PURE__ */ z(os, {
2932
3478
  sendLabel: s,
2933
3479
  stopLabel: c,
2934
3480
  isDisabled: u,
@@ -2940,8 +3486,8 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
2940
3486
  }
2941
3487
  //#endregion
2942
3488
  //#region lib/components/ui/widgets/mentions/mention-search-view.ts
2943
- function Pa(e, t, n) {
2944
- let r = ve(e ?? [], n);
3489
+ function us(e, t, n) {
3490
+ let r = Pe(e ?? [], n);
2945
3491
  return t ? t.status === "error" ? {
2946
3492
  items: r,
2947
3493
  loading: !1,
@@ -2962,16 +3508,16 @@ function Pa(e, t, n) {
2962
3508
  }
2963
3509
  //#endregion
2964
3510
  //#region lib/components/ui/widgets/chat/partials/floating-mentions.tsx
2965
- var Fa = "max-h-(--radix-popover-content-available-height) overflow-y-auto shadow-md";
2966
- function Ia({ textareaRef: e, children: t }) {
3511
+ var ds = "max-h-(--radix-popover-content-available-height) overflow-y-auto shadow-md";
3512
+ function fs({ textareaRef: e, children: t }) {
2967
3513
  let n = I(null);
2968
3514
  n.current = e.current?.closest("[data-slot=\"chat-composer\"]") ?? e.current;
2969
3515
  let r = f();
2970
- return /* @__PURE__ */ B(Ce, {
3516
+ return /* @__PURE__ */ B(ze, {
2971
3517
  open: !0,
2972
- children: [/* @__PURE__ */ z(Se, { virtualRef: n }), /* @__PURE__ */ z(we, {
3518
+ children: [/* @__PURE__ */ z(Re, { virtualRef: n }), /* @__PURE__ */ z(Be, {
2973
3519
  container: r,
2974
- children: /* @__PURE__ */ z(De, {
3520
+ children: /* @__PURE__ */ z(Ue, {
2975
3521
  "data-slot": "mention-popover",
2976
3522
  side: "top",
2977
3523
  align: "start",
@@ -2988,7 +3534,7 @@ function Ia({ textareaRef: e, children: t }) {
2988
3534
  }
2989
3535
  //#endregion
2990
3536
  //#region lib/components/ui/widgets/chat/use-chat-caret-move.ts
2991
- var La = /* @__PURE__ */ new Set([
3537
+ var ps = /* @__PURE__ */ new Set([
2992
3538
  "ArrowLeft",
2993
3539
  "ArrowRight",
2994
3540
  "ArrowUp",
@@ -2998,13 +3544,13 @@ var La = /* @__PURE__ */ new Set([
2998
3544
  "PageUp",
2999
3545
  "PageDown"
3000
3546
  ]);
3001
- function Ra(e) {
3002
- let [, t] = Ze((e) => e + 1, 0);
3547
+ function ms(e) {
3548
+ let [, t] = mt((e) => e + 1, 0);
3003
3549
  P(() => {
3004
3550
  let n = e.current;
3005
3551
  if (!n) return;
3006
3552
  let r = (e) => {
3007
- !e.isComposing && La.has(e.key) && t();
3553
+ !e.isComposing && ps.has(e.key) && t();
3008
3554
  }, i = n.ownerDocument, a = () => {
3009
3555
  i.activeElement === n && t();
3010
3556
  };
@@ -3015,13 +3561,13 @@ function Ra(e) {
3015
3561
  }
3016
3562
  //#endregion
3017
3563
  //#region lib/components/ui/widgets/mentions/mention-keys.ts
3018
- function za(e, t, n) {
3564
+ function hs(e, t, n) {
3019
3565
  if (e.isComposing || e.keyCode === 229 || e.altKey || e.ctrlKey || e.metaKey) return null;
3020
3566
  if (e.key === "Escape") return e.shiftKey ? null : { type: "close" };
3021
3567
  if (n === 0 || e.shiftKey) return null;
3022
3568
  if (e.key === "Enter" || e.key === "Tab") return { type: "pick" };
3023
3569
  if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return null;
3024
- let r = Array.from({ length: n }, () => ({ enabled: !0 })), i = Vt(e.key, t, r, {});
3570
+ let r = Array.from({ length: n }, () => ({ enabled: !0 })), i = cn(e.key, t, r, {});
3025
3571
  return i === null ? null : {
3026
3572
  type: "move",
3027
3573
  index: i
@@ -3029,7 +3575,7 @@ function za(e, t, n) {
3029
3575
  }
3030
3576
  //#endregion
3031
3577
  //#region lib/components/ui/widgets/chat/use-chat-mention-keys.ts
3032
- function Ba({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count: a, onAction: o }) {
3578
+ function gs({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count: a, onAction: o }) {
3033
3579
  let s = I({
3034
3580
  active: i,
3035
3581
  count: a,
@@ -3068,7 +3614,7 @@ function Ba({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count:
3068
3614
  let n = e.current;
3069
3615
  if (!n || !t) return;
3070
3616
  let r = (e) => {
3071
- let t = s.current, n = za(e, t.active, t.count);
3617
+ let t = s.current, n = hs(e, t.active, t.count);
3072
3618
  n && (e.preventDefault(), e.stopPropagation(), t.onAction(n));
3073
3619
  };
3074
3620
  return n.addEventListener("keydown", r), () => n.removeEventListener("keydown", r);
@@ -3076,13 +3622,13 @@ function Ba({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count:
3076
3622
  }
3077
3623
  //#endregion
3078
3624
  //#region lib/hooks/use-async-search.ts
3079
- var Va = {
3625
+ var _s = {
3080
3626
  status: "idle",
3081
3627
  query: "",
3082
3628
  results: []
3083
3629
  };
3084
- function Ha(e, t, n) {
3085
- let r = b(e), [i, a] = L(Va), [o] = L(() => Ht({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
3630
+ function vs(e, t, n) {
3631
+ let r = S(e), [i, a] = L(_s), [o] = L(() => ln({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
3086
3632
  a(e), e.status === "error" && r.current.onSearchError?.(e.error);
3087
3633
  })), s = !!e.onSearch;
3088
3634
  return P(() => {
@@ -3101,8 +3647,8 @@ function Ha(e, t, n) {
3101
3647
  }
3102
3648
  //#endregion
3103
3649
  //#region lib/components/ui/widgets/chat/use-chat-mention-search.ts
3104
- function Ua(e, t) {
3105
- return Ha({
3650
+ function ys(e, t) {
3651
+ return vs({
3106
3652
  onSearch: e?.query,
3107
3653
  onSearchError: e?.onError,
3108
3654
  debounceMs: e?.debounceMs,
@@ -3111,32 +3657,32 @@ function Ua(e, t) {
3111
3657
  }
3112
3658
  //#endregion
3113
3659
  //#region lib/components/ui/widgets/chat/chat-composer-mentions.tsx
3114
- var Wa = ja(() => import("./embed-chunks/mention-list-NW43QcRq.js").then((e) => e.MentionList));
3115
- function Ga({ value: e, textareaRef: t, mentions: n, search: r, onValueChange: i }) {
3660
+ var bs = ss(() => import("./embed-chunks/mention-list-9hwOYNND.js").then((e) => e.MentionList));
3661
+ function xs({ value: e, textareaRef: t, mentions: n, search: r, onValueChange: i }) {
3116
3662
  let [a, o] = L(!0), [s, c] = L({
3117
3663
  query: null,
3118
3664
  index: 0
3119
3665
  }), l = F();
3120
- Ra(t);
3121
- let u = t.current?.selectionStart ?? e.length, d = me(e, u), f = d !== null && a, p = Ua(r, f ? d : null);
3666
+ ms(t);
3667
+ let u = t.current?.selectionStart ?? e.length, d = Ae(e, u), f = d !== null && a, p = ys(r, f ? d : null);
3122
3668
  P(() => {
3123
3669
  d === null && o(!0), c({
3124
3670
  query: d,
3125
3671
  index: 0
3126
3672
  });
3127
3673
  }, [d]);
3128
- let m = s.query === d ? s.index : 0, h = Pa(n, p, d ?? ""), g = h.items.length, _ = Math.min(m, Math.max(g - 1, 0)), v = (n) => {
3674
+ let m = s.query === d ? s.index : 0, h = us(n, p, d ?? ""), g = h.items.length, _ = Math.min(m, Math.max(g - 1, 0)), v = (n) => {
3129
3675
  o(!1);
3130
- let r = ge(e, u, n);
3676
+ let r = Me(e, u, n);
3131
3677
  i?.(r.value), requestAnimationFrame(() => {
3132
3678
  t.current?.setSelectionRange(r.caret, r.caret), t.current?.focus();
3133
3679
  });
3134
3680
  };
3135
- if (Ba({
3681
+ if (gs({
3136
3682
  textareaRef: t,
3137
3683
  open: f,
3138
3684
  listId: l,
3139
- activeId: g > 0 ? he(l, _) : null,
3685
+ activeId: g > 0 ? je(l, _) : null,
3140
3686
  active: _,
3141
3687
  count: g,
3142
3688
  onAction: (e) => {
@@ -3146,26 +3692,26 @@ function Ga({ value: e, textareaRef: t, mentions: n, search: r, onValueChange: i
3146
3692
  }) : e.type === "close" ? o(!1) : h.items[_] && v(h.items[_]);
3147
3693
  }
3148
3694
  }), !f) return null;
3149
- let y = /* @__PURE__ */ z(We, {
3695
+ let y = /* @__PURE__ */ z(ot, {
3150
3696
  fallback: null,
3151
- children: /* @__PURE__ */ z(Wa, {
3697
+ children: /* @__PURE__ */ z(bs, {
3152
3698
  id: l,
3153
3699
  items: h.items,
3154
3700
  selectedIndex: _,
3155
3701
  loading: h.loading,
3156
3702
  failed: h.failed,
3157
- className: r ? Fa : void 0,
3703
+ className: r ? ds : void 0,
3158
3704
  onSelect: v
3159
3705
  })
3160
3706
  });
3161
- return r ? /* @__PURE__ */ z(Ia, {
3707
+ return r ? /* @__PURE__ */ z(fs, {
3162
3708
  textareaRef: t,
3163
3709
  children: y
3164
3710
  }) : y;
3165
3711
  }
3166
3712
  //#endregion
3167
3713
  //#region lib/components/ui/widgets/chat/partials/chat-composer-suggestions.tsx
3168
- function Ka({ suggestions: e, onSelect: t, disabled: n }) {
3714
+ function Ss({ suggestions: e, onSelect: t, disabled: n }) {
3169
3715
  let { t: r } = a();
3170
3716
  return e.length === 0 ? null : /* @__PURE__ */ z("div", {
3171
3717
  "data-slot": "chat-composer-suggestions",
@@ -3177,7 +3723,7 @@ function Ka({ suggestions: e, onSelect: t, disabled: n }) {
3177
3723
  disabled: n,
3178
3724
  onClick: () => t(e),
3179
3725
  className: A("inline-flex shrink-0 cursor-pointer snap-start items-center gap-1.5 whitespace-nowrap rounded-(--nxgt-shape-corner-full)", "border border-primary/30 bg-primary/5 px-3 py-1.5 font-medium text-primary-text text-xs", "outline-none transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast hover:border-primary/60 hover:bg-primary/10", "focus-visible:ring-[3px] focus-visible:ring-ring/50 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50", "animate-in fade-in slide-in-from-bottom-1 fill-mode-backwards duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", r === 1 && "delay-75", r === 2 && "delay-150", r > 2 && "delay-200"),
3180
- children: [r === 0 && /* @__PURE__ */ z(Dt, {
3726
+ children: [r === 0 && /* @__PURE__ */ z(qt, {
3181
3727
  "aria-hidden": "true",
3182
3728
  className: "size-3.5"
3183
3729
  }), e]
@@ -3186,9 +3732,9 @@ function Ka({ suggestions: e, onSelect: t, disabled: n }) {
3186
3732
  }
3187
3733
  //#endregion
3188
3734
  //#region lib/components/ui/widgets/chat/partials/chat-composer-notices.tsx
3189
- function qa({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestions: i, onSuggestionSelect: a, mentions: o, mentionSearch: s }) {
3735
+ function Cs({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestions: i, onSuggestionSelect: a, mentions: o, mentionSearch: s }) {
3190
3736
  return /* @__PURE__ */ B(R, { children: [
3191
- i && i.length > 0 && /* @__PURE__ */ z(Ka, {
3737
+ i && i.length > 0 && /* @__PURE__ */ z(Ss, {
3192
3738
  suggestions: i,
3193
3739
  disabled: e.isDisabled,
3194
3740
  onSelect: a ?? ((e) => r?.(e, []))
@@ -3198,7 +3744,7 @@ function qa({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestio
3198
3744
  className: "px-1 text-error-text text-xs",
3199
3745
  children: e.errorMessage
3200
3746
  }),
3201
- (o && o.length > 0 || s) && /* @__PURE__ */ z(Ga, {
3747
+ (o && o.length > 0 || s) && /* @__PURE__ */ z(xs, {
3202
3748
  value: t,
3203
3749
  textareaRef: e.textareaRef,
3204
3750
  mentions: o,
@@ -3209,8 +3755,8 @@ function qa({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestio
3209
3755
  }
3210
3756
  //#endregion
3211
3757
  //#region lib/components/ui/widgets/chat/chat-reply-quote.tsx
3212
- function Ja({ author: e, content: t, onClick: n, tone: r = "default", className: i, ...o }) {
3213
- let { t: s } = a(), c = A(w, "flex w-full min-w-0 flex-col gap-0.5 rounded-(--nxgt-shape-corner-sm) ps-3 pe-2.5 py-1.5 text-start text-xs", r === "inverted" ? "before:bg-primary-foreground/70 bg-primary-foreground/15 text-primary-foreground" : "before:bg-primary-indicator bg-primary/8 text-foreground", n && "cursor-pointer outline-none transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast hover:bg-primary/15 focus-visible:ring-[3px] focus-visible:ring-ring/50 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-[Highlight]", i), l = /* @__PURE__ */ B(R, { children: [e != null && /* @__PURE__ */ z("span", {
3758
+ function ws({ author: e, content: t, onClick: n, tone: r = "default", className: i, ...o }) {
3759
+ let { t: s } = a(), c = A(ee, "flex w-full min-w-0 flex-col gap-0.5 rounded-(--nxgt-shape-corner-sm) ps-3 pe-2.5 py-1.5 text-start text-xs", r === "inverted" ? "before:bg-primary-foreground/70 bg-primary-foreground/15 text-primary-foreground" : "before:bg-primary-indicator bg-primary/8 text-foreground", n && "cursor-pointer outline-none transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast hover:bg-primary/15 focus-visible:ring-[3px] focus-visible:ring-ring/50 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-[Highlight]", i), l = /* @__PURE__ */ B(R, { children: [e != null && /* @__PURE__ */ z("span", {
3214
3760
  className: A("truncate font-semibold", r === "inverted" ? "" : "text-primary-text"),
3215
3761
  children: e
3216
3762
  }), /* @__PURE__ */ z("span", {
@@ -3233,17 +3779,17 @@ function Ja({ author: e, content: t, onClick: n, tone: r = "default", className:
3233
3779
  }
3234
3780
  //#endregion
3235
3781
  //#region lib/components/ui/widgets/chat/partials/chat-composer-reply.tsx
3236
- function Ya({ replyTo: e, onCancel: t }) {
3782
+ function Ts({ replyTo: e, onCancel: t }) {
3237
3783
  let { t: n } = a(), r = n("material.chat.composer.cancel-reply", "Cancel reply");
3238
3784
  return /* @__PURE__ */ B("div", {
3239
3785
  "data-slot": "chat-composer-reply",
3240
3786
  className: "flex animate-in items-center gap-2 px-2 pt-2 fade-in slide-in-from-bottom-1 duration-(--nxgt-motion-effects-default-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none",
3241
3787
  children: [
3242
- /* @__PURE__ */ z(St, {
3788
+ /* @__PURE__ */ z(Ht, {
3243
3789
  "aria-hidden": "true",
3244
3790
  className: "size-4 shrink-0 text-primary-text"
3245
3791
  }),
3246
- /* @__PURE__ */ z(Ja, {
3792
+ /* @__PURE__ */ z(ws, {
3247
3793
  author: e.author == null ? void 0 : /* @__PURE__ */ B(R, { children: [
3248
3794
  /* @__PURE__ */ z("span", {
3249
3795
  className: "font-normal text-muted-foreground",
@@ -3270,10 +3816,10 @@ function Ya({ replyTo: e, onCancel: t }) {
3270
3816
  }
3271
3817
  //#endregion
3272
3818
  //#region lib/components/ui/widgets/chat/partials/chat-composer-surface.tsx
3273
- function Xa({ composer: e, floating: t, disabledReason: n, ...r }) {
3819
+ function Es({ composer: e, floating: t, disabledReason: n, ...r }) {
3274
3820
  let { isDisabled: i, labels: a } = e, { value: o = "", attachments: s = [], isLoading: c = !1 } = r, l = F(), u = n ? l : void 0;
3275
3821
  return /* @__PURE__ */ B(R, { children: [
3276
- /* @__PURE__ */ z(qa, {
3822
+ /* @__PURE__ */ z(Cs, {
3277
3823
  composer: e,
3278
3824
  value: o,
3279
3825
  onValueChange: r.onValueChange,
@@ -3287,17 +3833,17 @@ function Xa({ composer: e, floating: t, disabledReason: n, ...r }) {
3287
3833
  "data-slot": "chat-composer-surface",
3288
3834
  className: A("flex flex-col rounded-(--nxgt-shape-corner-lg-plus) border border-border transition-[border-color,box-shadow] duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast", "focus-within:border-primary/60 dark:focus-within:border-primary-indicator focus-within:ring-[3px] focus-within:ring-primary/15 forced-colors:focus-within:outline-2 forced-colors:focus-within:outline-solid forced-colors:focus-within:outline-[Highlight]", t ? "bg-background shadow-lg" : "bg-card-muted-40", i && "opacity-70"),
3289
3835
  children: [
3290
- r.replyTo && /* @__PURE__ */ z(Ya, {
3836
+ r.replyTo && /* @__PURE__ */ z(Ts, {
3291
3837
  replyTo: r.replyTo,
3292
3838
  onCancel: r.onCancelReply
3293
3839
  }),
3294
- /* @__PURE__ */ z(Oa, {
3840
+ /* @__PURE__ */ z(is, {
3295
3841
  attachments: s,
3296
3842
  isDisabled: i,
3297
3843
  onAttachmentsChange: r.onAttachmentsChange,
3298
3844
  className: "px-2.5 pt-2.5"
3299
3845
  }),
3300
- /* @__PURE__ */ z(Na, {
3846
+ /* @__PURE__ */ z(ls, {
3301
3847
  value: o,
3302
3848
  onValueChange: r.onValueChange,
3303
3849
  textareaRef: e.textareaRef,
@@ -3323,20 +3869,20 @@ function Xa({ composer: e, floating: t, disabledReason: n, ...r }) {
3323
3869
  })
3324
3870
  ]
3325
3871
  }),
3326
- /* @__PURE__ */ z(ka, {
3872
+ /* @__PURE__ */ z(as, {
3327
3873
  id: u,
3328
3874
  children: n
3329
3875
  }),
3330
- r.maxLength != null && /* @__PURE__ */ z(Qa, {
3876
+ r.maxLength != null && /* @__PURE__ */ z(Os, {
3331
3877
  length: o.length,
3332
3878
  maxLength: r.maxLength
3333
3879
  })
3334
3880
  ] });
3335
3881
  }
3336
- function Za(e) {
3882
+ function Ds(e) {
3337
3883
  return A("@container relative flex shrink-0 flex-col gap-2 px-3 pt-2 pb-3 @md:px-4", e ? "bg-transparent" : "border-border/70 border-t bg-background");
3338
3884
  }
3339
- function Qa({ length: e, maxLength: t }) {
3885
+ function Os({ length: e, maxLength: t }) {
3340
3886
  return /* @__PURE__ */ B("span", {
3341
3887
  className: A("-mt-1 self-end px-2 text-[0.6875rem] tabular-nums", e >= t ? "text-error-text" : "text-muted-foreground"),
3342
3888
  children: [
@@ -3348,19 +3894,19 @@ function Qa({ length: e, maxLength: t }) {
3348
3894
  }
3349
3895
  //#endregion
3350
3896
  //#region lib/components/ui/media/upload/network-upload-field/network-upload-field.utils.ts
3351
- function $a(e, t) {
3897
+ function ks(e, t) {
3352
3898
  let n = t.split(",").map((e) => e.trim()).filter(Boolean);
3353
3899
  return n.length === 0 || n.some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t.toLowerCase()) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type === t);
3354
3900
  }
3355
- function eo(e, t) {
3356
- return t.accept && !$a(e, t.accept) ? "accept" : t.maxSize !== void 0 && e.size > t.maxSize ? "max-size" : t.maxFiles !== void 0 && t.currentCount !== void 0 && t.currentCount >= t.maxFiles ? "max-files" : null;
3901
+ function As(e, t) {
3902
+ return t.accept && !ks(e, t.accept) ? "accept" : t.maxSize !== void 0 && e.size > t.maxSize ? "max-size" : t.maxFiles !== void 0 && t.currentCount !== void 0 && t.currentCount >= t.maxFiles ? "max-files" : null;
3357
3903
  }
3358
3904
  //#endregion
3359
3905
  //#region lib/components/ui/widgets/chat/use-chat-composer-attachments.ts
3360
- function to(e, t, n) {
3906
+ function js(e, t, n) {
3361
3907
  let r = [...t], i = null;
3362
3908
  for (let t of e) {
3363
- let e = eo(t, {
3909
+ let e = As(t, {
3364
3910
  accept: n.accept,
3365
3911
  maxFiles: n.maxFiles,
3366
3912
  currentCount: r.length
@@ -3376,11 +3922,11 @@ function to(e, t, n) {
3376
3922
  error: i
3377
3923
  };
3378
3924
  }
3379
- function no({ attachments: e, accept: t, maxFiles: n, disabled: r = !1, isLoading: i = !1, onAttachmentsChange: o }) {
3925
+ function Ms({ attachments: e, accept: t, maxFiles: n, disabled: r = !1, isLoading: i = !1, onAttachmentsChange: o }) {
3380
3926
  let { t: s } = a(), [c, l] = L(null), u = r || i, d = n == null || e.length < n;
3381
3927
  function f(r) {
3382
3928
  if (!r.length || u) return;
3383
- let { files: i, error: a } = to(r, e, {
3929
+ let { files: i, error: a } = js(r, e, {
3384
3930
  accept: t,
3385
3931
  maxFiles: n
3386
3932
  });
@@ -3396,17 +3942,17 @@ function no({ attachments: e, accept: t, maxFiles: n, disabled: r = !1, isLoadin
3396
3942
  }
3397
3943
  //#endregion
3398
3944
  //#region lib/components/ui/widgets/chat/use-chat-composer.ts
3399
- function ro(e, t) {
3945
+ function Ns(e, t) {
3400
3946
  return e.key !== "Enter" || e.nativeEvent.isComposing ? !1 : t ? !e.shiftKey : e.ctrlKey || e.metaKey;
3401
3947
  }
3402
- function io({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, sendLabel: o, stopLabel: s, attachments: c, onAttachmentsChange: l, accept: u, maxFiles: d, attachmentLabel: f, sendOnEnter: p = !0 }) {
3948
+ function Ps({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, sendLabel: o, stopLabel: s, attachments: c, onAttachmentsChange: l, accept: u, maxFiles: d, attachmentLabel: f, sendOnEnter: p = !0 }) {
3403
3949
  let { t: m } = a(), h = I(null), g = I(null), _ = {
3404
3950
  attach: f ?? m("material.chat.attach", "Add attachment"),
3405
3951
  placeholder: n ?? m("material.chat.placeholder", "Type a message…"),
3406
3952
  send: o ?? m("material.chat.send", "Send"),
3407
3953
  stop: s ?? m("material.chat.composer.stop", "Stop generating"),
3408
3954
  message: m("material.chat.message", "Message")
3409
- }, { errorMessage: v, canAttachMore: y, hasAttachments: b, handleFiles: x, isDisabled: S } = no({
3955
+ }, { errorMessage: v, canAttachMore: y, hasAttachments: b, handleFiles: x, isDisabled: S } = Ms({
3410
3956
  attachments: c,
3411
3957
  accept: u,
3412
3958
  maxFiles: d,
@@ -3428,7 +3974,7 @@ function io({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, se
3428
3974
  isDisabled: S,
3429
3975
  isEmpty: C,
3430
3976
  handleKeyDown(e) {
3431
- ro(e, p) && (e.preventDefault(), w());
3977
+ Ns(e, p) && (e.preventDefault(), w());
3432
3978
  },
3433
3979
  formProps: {
3434
3980
  onSubmit(e) {
@@ -3445,8 +3991,8 @@ function io({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, se
3445
3991
  }
3446
3992
  //#endregion
3447
3993
  //#region lib/components/ui/widgets/chat/chat-composer.tsx
3448
- function ao({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabled: i = !1, disabledReason: a, isLoading: o = !1, sendLabel: s, maxLength: c, attachments: l = [], onAttachmentsChange: u, accept: d, maxFiles: f, attachmentLabel: p, actions: m, emojis: h, mentions: g, mentionSearch: _, variant: v = "bar", suggestions: y, onSuggestionSelect: b, replyTo: x, onCancelReply: S, onStop: C, stopLabel: w, sendOnEnter: T = !0, className: E, ...D }) {
3449
- let O = io({
3994
+ function Fs({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabled: i = !1, disabledReason: a, isLoading: o = !1, sendLabel: s, maxLength: c, attachments: l = [], onAttachmentsChange: u, accept: d, maxFiles: f, attachmentLabel: p, actions: m, emojis: h, mentions: g, mentionSearch: _, variant: v = "bar", suggestions: y, onSuggestionSelect: b, replyTo: x, onCancelReply: S, onStop: C, stopLabel: w, sendOnEnter: T = !0, className: E, ...D }) {
3995
+ let O = Ps({
3450
3996
  value: e,
3451
3997
  onSend: n,
3452
3998
  placeholder: r,
@@ -3465,9 +4011,9 @@ function ao({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
3465
4011
  "data-slot": "chat-composer",
3466
4012
  "data-variant": v,
3467
4013
  ...O.formProps,
3468
- className: A(Za(v === "floating"), E),
4014
+ className: A(Ds(v === "floating"), E),
3469
4015
  ...D,
3470
- children: /* @__PURE__ */ z(Xa, {
4016
+ children: /* @__PURE__ */ z(Es, {
3471
4017
  composer: O,
3472
4018
  floating: v === "floating",
3473
4019
  value: e,
@@ -3494,12 +4040,12 @@ function ao({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
3494
4040
  }
3495
4041
  //#endregion
3496
4042
  //#region lib/components/ui/widgets/chat/chat-layout-context.ts
3497
- var oo = Ke({
4043
+ var Is = ct({
3498
4044
  layout: "bubbles",
3499
4045
  density: "comfortable"
3500
4046
  });
3501
- function so(e) {
3502
- let t = Ye(oo);
4047
+ function Ls(e) {
4048
+ let t = dt(Is);
3503
4049
  return {
3504
4050
  layout: e.layout ?? t.layout,
3505
4051
  density: e.density ?? t.density
@@ -3507,7 +4053,7 @@ function so(e) {
3507
4053
  }
3508
4054
  //#endregion
3509
4055
  //#region lib/components/ui/widgets/chat/chat-message.variants.ts
3510
- var co = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
4056
+ var Rs = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
3511
4057
  variants: {
3512
4058
  variant: {
3513
4059
  user: "ms-auto bg-primary text-primary-foreground shadow-sm",
@@ -3573,7 +4119,7 @@ var co = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
3573
4119
  layout: "bubbles",
3574
4120
  density: "comfortable"
3575
4121
  }
3576
- }), lo = {
4122
+ }), zs = {
3577
4123
  end: {
3578
4124
  single: "rounded-ee-md",
3579
4125
  first: "rounded-ee-md",
@@ -3587,10 +4133,10 @@ var co = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
3587
4133
  last: "rounded-ss-md rounded-es-md"
3588
4134
  }
3589
4135
  };
3590
- function uo(e, t, n) {
3591
- return t === "bubbles" ? e === "user" ? lo.end[n] : e === "assistant" ? lo.start[n] : "" : "";
4136
+ function Bs(e, t, n) {
4137
+ return t === "bubbles" ? e === "user" ? zs.end[n] : e === "assistant" ? zs.start[n] : "" : "";
3592
4138
  }
3593
- var fo = u("group/message flex w-full animate-in fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", {
4139
+ var Vs = u("group/message flex w-full animate-in fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", {
3594
4140
  variants: {
3595
4141
  variant: {
3596
4142
  user: "",
@@ -3639,22 +4185,22 @@ var fo = u("group/message flex w-full animate-in fade-in slide-in-from-bottom-2
3639
4185
  density: "comfortable"
3640
4186
  }
3641
4187
  });
3642
- function po(e, t) {
4188
+ function Hs(e, t) {
3643
4189
  return e !== "middle" && e !== "last" ? "" : t === "compact" ? "-mt-1.5" : "-mt-3";
3644
4190
  }
3645
- function mo(e, t) {
4191
+ function Us(e, t) {
3646
4192
  return t === "flat" ? e === "compact" ? "size-7" : "size-9" : e === "compact" ? "size-6" : "size-8";
3647
4193
  }
3648
4194
  //#endregion
3649
4195
  //#region lib/components/ui/widgets/chat/chat-copy-text.ts
3650
- function ho(e, t) {
4196
+ function Ws(e, t) {
3651
4197
  if (t) return t;
3652
4198
  if (typeof e == "string") return e;
3653
4199
  if (N(e) && typeof e.props.content == "string") return e.props.content;
3654
4200
  }
3655
4201
  //#endregion
3656
4202
  //#region lib/components/ui/widgets/chat/chat-message.view.ts
3657
- var go = [
4203
+ var Gs = [
3658
4204
  "variant",
3659
4205
  "avatar",
3660
4206
  "avatarFallback",
@@ -3681,10 +4227,10 @@ var go = [
3681
4227
  "onReactionToggle",
3682
4228
  "menuItems"
3683
4229
  ];
3684
- function _o(e) {
4230
+ function Ks(e) {
3685
4231
  let t = {}, n = {};
3686
4232
  for (let [r, i] of Object.entries(e)) {
3687
- let e = go.includes(r);
4233
+ let e = Gs.includes(r);
3688
4234
  (e ? t : n)[r] = i;
3689
4235
  }
3690
4236
  return {
@@ -3692,7 +4238,7 @@ function _o(e) {
3692
4238
  dom: n
3693
4239
  };
3694
4240
  }
3695
- function vo(e, { layout: t, density: n }) {
4241
+ function qs(e, { layout: t, density: n }) {
3696
4242
  let { variant: r = "assistant", groupPosition: i = "single", status: a = "sent", isLoading: o = !1, copyable: s = !0, edited: c = !1 } = e, l = t === "flat", u = r === "user", d = i === "single" || i === "first", f = i === "single" || i === "last", p = a === "failed", m = !l && (f || p) ? e.timestamp : void 0;
3697
4243
  return {
3698
4244
  variant: r,
@@ -3710,17 +4256,17 @@ function vo(e, { layout: t, density: n }) {
3710
4256
  edited: c,
3711
4257
  alignEnd: u && !l,
3712
4258
  hasAvatar: r === "assistant" || r === "tool" || l && u,
3713
- copyText: s && !o && a !== "sending" ? ho(e.children, e.copyText) : void 0,
4259
+ copyText: s && !o && a !== "sending" ? Ws(e.children, e.copyText) : void 0,
3714
4260
  hasMeta: !!m || p || c || u && a !== "sent"
3715
4261
  };
3716
4262
  }
3717
4263
  //#endregion
3718
4264
  //#region lib/components/ui/widgets/chat/partials/chat-message-aside.tsx
3719
- function yo({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: i, hoverTime: a, className: o }) {
4265
+ function Js({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: i, hoverTime: a, className: o }) {
3720
4266
  return /* @__PURE__ */ B("div", {
3721
4267
  "data-slot": "chat-message-aside",
3722
4268
  className: A("flex shrink-0 justify-center", i, o),
3723
- children: [e && (t ?? /* @__PURE__ */ z(ye, {
4269
+ children: [e && (t ?? /* @__PURE__ */ z(Fe, {
3724
4270
  src: n,
3725
4271
  fallback: r ?? "?",
3726
4272
  className: A(i, "text-xs")
@@ -3732,24 +4278,24 @@ function yo({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: i
3732
4278
  }
3733
4279
  //#endregion
3734
4280
  //#region lib/components/ui/widgets/chat/chat-message-meta.tsx
3735
- function bo({ status: e }) {
4281
+ function Ys({ status: e }) {
3736
4282
  let { t } = a();
3737
- return e === "sending" ? /* @__PURE__ */ z(at, {
4283
+ return e === "sending" ? /* @__PURE__ */ z(Tt, {
3738
4284
  role: "img",
3739
4285
  "aria-label": t("material.chat.status.sending", "Sending"),
3740
4286
  className: "size-3"
3741
- }) : e === "delivered" ? /* @__PURE__ */ z(nt, {
4287
+ }) : e === "delivered" ? /* @__PURE__ */ z(St, {
3742
4288
  role: "img",
3743
4289
  "aria-label": t("material.chat.status.delivered", "Delivered"),
3744
4290
  className: "size-3.5"
3745
- }) : e === "read" ? /* @__PURE__ */ z(nt, {
4291
+ }) : e === "read" ? /* @__PURE__ */ z(St, {
3746
4292
  role: "img",
3747
4293
  "aria-label": t("material.chat.status.read", "Read"),
3748
4294
  className: "size-3.5 text-primary-text"
3749
4295
  }) : null;
3750
4296
  }
3751
- function xo({ alignEnd: e, timestamp: t, failed: n, onRetry: r, status: i = "sent", showStatus: o = !1, edited: s = !1, className: c }) {
3752
- let { t: l } = a(), u = l("material.chat.send-failed", "Couldn't send"), d = l("material.chat.retry", "Retry"), f = o && !n && i !== "sent" ? /* @__PURE__ */ z(bo, { status: i }) : null;
4297
+ function Xs({ alignEnd: e, timestamp: t, failed: n, onRetry: r, status: i = "sent", showStatus: o = !1, edited: s = !1, className: c }) {
4298
+ let { t: l } = a(), u = l("material.chat.send-failed", "Couldn't send"), d = l("material.chat.retry", "Retry"), f = o && !n && i !== "sent" ? /* @__PURE__ */ z(Ys, { status: i }) : null;
3753
4299
  return !k(t) && !n && !f && !s ? null : /* @__PURE__ */ B("div", {
3754
4300
  "data-slot": "chat-message-meta",
3755
4301
  className: A("flex items-center gap-1 px-1 text-[0.6875rem] text-muted-foreground leading-4 tabular-nums", e && "flex-row-reverse", c),
@@ -3778,36 +4324,36 @@ function xo({ alignEnd: e, timestamp: t, failed: n, onRetry: r, status: i = "sen
3778
4324
  }
3779
4325
  //#endregion
3780
4326
  //#region lib/components/ui/widgets/chat/chat-reaction-group.tsx
3781
- var So = [
4327
+ var Zs = [
3782
4328
  "👍",
3783
4329
  "❤️",
3784
4330
  "😂",
3785
4331
  "🎉",
3786
4332
  "👀"
3787
4333
  ];
3788
- function Co({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions: r = So, addLabel: i, className: o, ...s }) {
4334
+ function Qs({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions: r = Zs, addLabel: i, className: o, ...s }) {
3789
4335
  let { t: c } = a(), l = i ?? c("material.chat.add-reaction", "Add reaction");
3790
4336
  return /* @__PURE__ */ B("div", {
3791
4337
  "data-slot": "chat-reaction-group",
3792
4338
  className: A("flex flex-wrap items-center gap-1", o),
3793
4339
  ...s,
3794
- children: [e.map((e) => /* @__PURE__ */ z(va, {
4340
+ children: [e.map((e) => /* @__PURE__ */ z(Jo, {
3795
4341
  label: `${e.emoji}${e.count ? ` ${e.count}` : ""}`,
3796
4342
  active: e.active,
3797
4343
  size: "sm",
3798
4344
  onClick: () => t?.(e.emoji)
3799
- }, e.emoji)), n && r.length > 0 && /* @__PURE__ */ B(ce, { children: [/* @__PURE__ */ z(le, {
4345
+ }, e.emoji)), n && r.length > 0 && /* @__PURE__ */ B(Se, { children: [/* @__PURE__ */ z(Ce, {
3800
4346
  asChild: !0,
3801
4347
  children: /* @__PURE__ */ z(x, {
3802
4348
  variant: "ghost",
3803
4349
  color: "default",
3804
4350
  "aria-label": l,
3805
4351
  className: "size-7",
3806
- children: /* @__PURE__ */ z(Et, { className: "size-4" })
4352
+ children: /* @__PURE__ */ z(Kt, { className: "size-4" })
3807
4353
  })
3808
- }), /* @__PURE__ */ z(ie, {
4354
+ }), /* @__PURE__ */ z(_e, {
3809
4355
  align: "start",
3810
- children: r.map((e) => /* @__PURE__ */ z(O, {
4356
+ children: r.map((e) => /* @__PURE__ */ z(fe, {
3811
4357
  onClick: () => n(e),
3812
4358
  children: /* @__PURE__ */ z("span", {
3813
4359
  className: "text-base",
@@ -3819,14 +4365,14 @@ function Co({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions:
3819
4365
  }
3820
4366
  //#endregion
3821
4367
  //#region lib/components/ui/actions/copy-button/copy-to-clipboard.ts
3822
- async function wo(e) {
4368
+ async function $s(e) {
3823
4369
  if (!navigator.clipboard?.writeText) throw Error("Clipboard is not available");
3824
4370
  await navigator.clipboard.writeText(e);
3825
4371
  }
3826
4372
  //#endregion
3827
4373
  //#region lib/components/ui/actions/copy-button/use-copy-status.ts
3828
- var To = 1500;
3829
- function Eo(e = To) {
4374
+ var ec = 1500;
4375
+ function tc(e = ec) {
3830
4376
  let [t, n] = L("idle"), r = I(void 0), i = I(!1);
3831
4377
  P(() => (i.current = !1, () => {
3832
4378
  i.current = !0, clearTimeout(r.current);
@@ -3835,7 +4381,7 @@ function Eo(e = To) {
3835
4381
  if (!t) return;
3836
4382
  let a = "copied";
3837
4383
  try {
3838
- await wo(t);
4384
+ await $s(t);
3839
4385
  } catch {
3840
4386
  a = "failed";
3841
4387
  }
@@ -3848,8 +4394,8 @@ function Eo(e = To) {
3848
4394
  }
3849
4395
  //#endregion
3850
4396
  //#region lib/components/ui/actions/copy-button/copy-button.tsx
3851
- function Do({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCopyResult: o, variant: s = "ghost", color: c = "default", ...l }) {
3852
- let { t: u } = a(), { status: d, copy: f } = Eo(), p = t ?? u("material.copy.copy", "Copy"), m = n ?? u("material.copy.copied", "Copied"), h = r ?? u("material.copy.failed", "Copy failed"), g = d === "copied" ? m : d === "failed" ? h : "";
4397
+ function nc({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCopyResult: o, variant: s = "ghost", color: c = "default", ...l }) {
4398
+ let { t: u } = a(), { status: d, copy: f } = tc(), p = t ?? u("material.copy.copy", "Copy"), m = n ?? u("material.copy.copied", "Copied"), h = r ?? u("material.copy.failed", "Copy failed"), g = d === "copied" ? m : d === "failed" ? h : "";
3853
4399
  async function _() {
3854
4400
  let t = await f(typeof e == "function" ? e() : e);
3855
4401
  t && o?.(t);
@@ -3861,7 +4407,7 @@ function Do({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCop
3861
4407
  "aria-label": p,
3862
4408
  tooltip: g || p,
3863
4409
  onClick: _,
3864
- children: d === "copied" ? /* @__PURE__ */ z(tt, {}) : d === "failed" ? /* @__PURE__ */ z(V, {}) : i ?? /* @__PURE__ */ z(st, {})
4410
+ children: d === "copied" ? /* @__PURE__ */ z(xt, {}) : d === "failed" ? /* @__PURE__ */ z(V, {}) : i ?? /* @__PURE__ */ z(Dt, {})
3865
4411
  }), /* @__PURE__ */ z("span", {
3866
4412
  role: "status",
3867
4413
  "aria-live": "polite",
@@ -3872,51 +4418,51 @@ function Do({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCop
3872
4418
  }
3873
4419
  //#endregion
3874
4420
  //#region lib/components/ui/widgets/chat/partials/chat-message-action-menus.tsx
3875
- var Oo = "size-7 [&_svg]:size-3.5";
3876
- function ko({ side: e, emojis: t, onReact: n }) {
4421
+ var rc = "size-7 [&_svg]:size-3.5";
4422
+ function ic({ side: e, emojis: t, onReact: n }) {
3877
4423
  let { t: r } = a();
3878
- return /* @__PURE__ */ B(ce, { children: [/* @__PURE__ */ z(le, {
4424
+ return /* @__PURE__ */ B(Se, { children: [/* @__PURE__ */ z(Ce, {
3879
4425
  asChild: !0,
3880
4426
  children: /* @__PURE__ */ z(x, {
3881
4427
  variant: "ghost",
3882
4428
  color: "default",
3883
4429
  "aria-label": r("material.chat.actions.react", "React"),
3884
- className: Oo,
3885
- children: /* @__PURE__ */ z(Et, {})
4430
+ className: rc,
4431
+ children: /* @__PURE__ */ z(Kt, {})
3886
4432
  })
3887
- }), /* @__PURE__ */ z(ie, {
4433
+ }), /* @__PURE__ */ z(_e, {
3888
4434
  align: e === "end" ? "end" : "start",
3889
4435
  className: "flex min-w-0 gap-0.5 rounded-(--nxgt-shape-corner-full) p-1",
3890
- children: t.map((e) => /* @__PURE__ */ z(O, {
4436
+ children: t.map((e) => /* @__PURE__ */ z(fe, {
3891
4437
  onClick: () => n(e),
3892
4438
  className: "rounded-(--nxgt-shape-corner-full) px-1.5 text-lg",
3893
4439
  children: e
3894
4440
  }, e))
3895
4441
  })] });
3896
4442
  }
3897
- function Ao({ side: e, onDelete: t, children: n }) {
4443
+ function ac({ side: e, onDelete: t, children: n }) {
3898
4444
  let { t: r } = a();
3899
- return /* @__PURE__ */ B(ce, { children: [/* @__PURE__ */ z(le, {
4445
+ return /* @__PURE__ */ B(Se, { children: [/* @__PURE__ */ z(Ce, {
3900
4446
  asChild: !0,
3901
4447
  children: /* @__PURE__ */ z(x, {
3902
4448
  variant: "ghost",
3903
4449
  color: "default",
3904
4450
  "aria-label": r("material.chat.actions.more", "More actions"),
3905
- className: Oo,
3906
- children: /* @__PURE__ */ z(ct, {})
4451
+ className: rc,
4452
+ children: /* @__PURE__ */ z(Ot, {})
3907
4453
  })
3908
- }), /* @__PURE__ */ B(ie, {
4454
+ }), /* @__PURE__ */ B(_e, {
3909
4455
  align: e === "end" ? "end" : "start",
3910
- children: [n, t && /* @__PURE__ */ B(O, {
4456
+ children: [n, t && /* @__PURE__ */ B(fe, {
3911
4457
  variant: "error",
3912
4458
  onClick: t,
3913
- children: [/* @__PURE__ */ z(kt, {}), r("material.chat.actions.delete", "Delete")]
4459
+ children: [/* @__PURE__ */ z(Yt, {}), r("material.chat.actions.delete", "Delete")]
3914
4460
  })]
3915
4461
  })] });
3916
4462
  }
3917
4463
  //#endregion
3918
4464
  //#region lib/components/ui/widgets/chat/partials/chat-message-actions.tsx
3919
- function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactionSuggestions: o, menuItems: s }) {
4465
+ function oc({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactionSuggestions: o, menuItems: s }) {
3920
4466
  let { t: c } = a(), l = !!(r || s), u = !!(i && o.length > 0);
3921
4467
  if (!t && !n && !l && !u) return null;
3922
4468
  let d = c("material.chat.actions.reply", "Reply");
@@ -3926,7 +4472,7 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
3926
4472
  "aria-label": c("material.chat.actions.label", "Message actions"),
3927
4473
  className: A("absolute -top-4 z-10 flex items-center gap-0.5 rounded-(--nxgt-shape-corner-full) border border-border/70 bg-popover p-0.5 text-popover-foreground shadow-md", "pointer-events-none scale-95 opacity-0 [transition:opacity_var(--nxgt-motion-effects-fast-duration)_var(--nxgt-motion-effects-fast),scale_var(--nxgt-motion-spatial-fast-duration)_var(--nxgt-motion-spatial-fast)] motion-reduce:scale-none", "group-hover/message:pointer-events-auto group-hover/message:scale-100 group-hover/message:opacity-100", "group-focus-within/message:pointer-events-auto group-focus-within/message:scale-100 group-focus-within/message:opacity-100", "has-[[data-state=open]]:pointer-events-auto has-[[data-state=open]]:scale-100 has-[[data-state=open]]:opacity-100", e === "end" && "start-2 @lg:start-auto @lg:top-1 @lg:end-[calc(100%+0.5rem)]", e === "start" && "end-2 @lg:end-auto @lg:top-1 @lg:start-[calc(100%+0.5rem)]", e === "row" && "end-2"),
3928
4474
  children: [
3929
- u && i && /* @__PURE__ */ z(ko, {
4475
+ u && i && /* @__PURE__ */ z(ic, {
3930
4476
  side: e,
3931
4477
  emojis: o,
3932
4478
  onReact: i
@@ -3938,14 +4484,14 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
3938
4484
  "aria-label": d,
3939
4485
  onClick: n,
3940
4486
  className: "size-7 [&_svg]:size-3.5",
3941
- children: /* @__PURE__ */ z(St, {})
4487
+ children: /* @__PURE__ */ z(Ht, {})
3942
4488
  }),
3943
- t && /* @__PURE__ */ z(Do, {
4489
+ t && /* @__PURE__ */ z(nc, {
3944
4490
  value: t,
3945
4491
  label: c("material.chat.copy", "Copy message"),
3946
4492
  className: "size-7 [&_svg]:size-3.5"
3947
4493
  }),
3948
- l && /* @__PURE__ */ z(Ao, {
4494
+ l && /* @__PURE__ */ z(ac, {
3949
4495
  side: e,
3950
4496
  onDelete: r,
3951
4497
  children: s
@@ -3955,28 +4501,28 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
3955
4501
  }
3956
4502
  //#endregion
3957
4503
  //#region lib/components/ui/widgets/chat/partials/chat-message-bubble.tsx
3958
- function Mo({ variant: e, layout: t, density: n, position: r, isLoading: i, isStreaming: a, status: o, replyTo: s, actions: c, children: l }) {
3959
- let u = A(co({
4504
+ function sc({ variant: e, layout: t, density: n, position: r, isLoading: i, isStreaming: a, status: o, replyTo: s, actions: c, children: l }) {
4505
+ let u = A(Rs({
3960
4506
  variant: e,
3961
4507
  layout: t,
3962
4508
  density: n
3963
- }), uo(e, t, r));
4509
+ }), Bs(e, t, r));
3964
4510
  if (i) return /* @__PURE__ */ z("div", {
3965
4511
  className: A(u, "flex items-center gap-1"),
3966
- children: /* @__PURE__ */ z(_e, { className: "h-3 w-24" })
4512
+ children: /* @__PURE__ */ z(Ne, { className: "h-3 w-24" })
3967
4513
  });
3968
4514
  let d = e === "user" && t === "bubbles";
3969
4515
  return /* @__PURE__ */ B("div", {
3970
4516
  "data-slot": "chat-message-bubble-wrap",
3971
4517
  tabIndex: -1,
3972
4518
  className: A("group/bubble relative max-w-full outline-none", t === "flat" && "w-full", o === "sending" && "opacity-70"),
3973
- children: [/* @__PURE__ */ z(jo, {
4519
+ children: [/* @__PURE__ */ z(oc, {
3974
4520
  side: t === "flat" ? "row" : e === "user" ? "end" : "start",
3975
4521
  ...c
3976
4522
  }), /* @__PURE__ */ B("div", {
3977
4523
  "data-slot": "chat-message-bubble",
3978
4524
  className: A(u, o === "failed" && "ring-2 ring-error/70", s && t === "bubbles" && "flex flex-col gap-1.5"),
3979
- children: [s && /* @__PURE__ */ z(Ja, {
4525
+ children: [s && /* @__PURE__ */ z(ws, {
3980
4526
  ...s,
3981
4527
  tone: d ? "inverted" : "default",
3982
4528
  className: A(t === "bubbles" ? "-mx-1 mt-0.5 w-auto" : "max-w-md")
@@ -3992,7 +4538,7 @@ function Mo({ variant: e, layout: t, density: n, position: r, isLoading: i, isSt
3992
4538
  }
3993
4539
  //#endregion
3994
4540
  //#region lib/components/ui/widgets/chat/partials/chat-message-heading.tsx
3995
- function No({ author: e, timestamp: t }) {
4541
+ function cc({ author: e, timestamp: t }) {
3996
4542
  return e == null && t == null ? null : /* @__PURE__ */ B("div", {
3997
4543
  "data-slot": "chat-message-heading",
3998
4544
  className: "flex min-w-0 items-baseline gap-2 px-1 text-xs",
@@ -4007,7 +4553,7 @@ function No({ author: e, timestamp: t }) {
4007
4553
  }
4008
4554
  //#endregion
4009
4555
  //#region lib/components/ui/widgets/chat/partials/chat-message-body.tsx
4010
- var Po = [
4556
+ var lc = [
4011
4557
  "👍",
4012
4558
  "❤️",
4013
4559
  "😂",
@@ -4015,12 +4561,12 @@ var Po = [
4015
4561
  "😮",
4016
4562
  "🙏"
4017
4563
  ];
4018
- function Fo({ content: e, view: t }) {
4564
+ function uc({ content: e, view: t }) {
4019
4565
  let { variant: n, alignEnd: r, flat: i, lead: a, isUser: o } = t;
4020
4566
  return /* @__PURE__ */ B("div", {
4021
4567
  className: A("flex min-w-0 flex-col gap-1", i ? "flex-1" : "max-w-[85%] @md:max-w-[75%]", r && "items-end", n === "system" && "w-full max-w-full items-center"),
4022
4568
  children: [
4023
- /* @__PURE__ */ z(No, {
4569
+ /* @__PURE__ */ z(cc, {
4024
4570
  author: a && (!o || i) ? e.author : void 0,
4025
4571
  timestamp: i && a ? e.timestamp : void 0
4026
4572
  }),
@@ -4029,7 +4575,7 @@ function Fo({ content: e, view: t }) {
4029
4575
  className: "mb-0.5 self-start rounded-full bg-secondary px-2 py-0.5 text-[10px] font-medium text-secondary-foreground",
4030
4576
  children: e.toolName
4031
4577
  }),
4032
- /* @__PURE__ */ z(Mo, {
4578
+ /* @__PURE__ */ z(sc, {
4033
4579
  variant: n,
4034
4580
  layout: t.layout,
4035
4581
  density: t.density,
@@ -4043,17 +4589,17 @@ function Fo({ content: e, view: t }) {
4043
4589
  onReply: e.onReply,
4044
4590
  onDelete: e.onDelete,
4045
4591
  onReact: e.onReact,
4046
- reactionSuggestions: e.reactionSuggestions ?? Po,
4592
+ reactionSuggestions: e.reactionSuggestions ?? lc,
4047
4593
  menuItems: e.menuItems
4048
4594
  },
4049
4595
  children: e.children
4050
4596
  }),
4051
- e.reactions && e.reactions.length > 0 && /* @__PURE__ */ z(Co, {
4597
+ e.reactions && e.reactions.length > 0 && /* @__PURE__ */ z(Qs, {
4052
4598
  reactions: e.reactions,
4053
4599
  onReactionToggle: e.onReactionToggle,
4054
4600
  className: A("px-1", r && "justify-end")
4055
4601
  }),
4056
- /* @__PURE__ */ z(xo, {
4602
+ /* @__PURE__ */ z(Xs, {
4057
4603
  alignEnd: r,
4058
4604
  timestamp: t.metaTime,
4059
4605
  failed: t.failed,
@@ -4072,8 +4618,8 @@ function Fo({ content: e, view: t }) {
4072
4618
  }
4073
4619
  //#endregion
4074
4620
  //#region lib/components/ui/widgets/chat/chat-message.tsx
4075
- function Io({ layout: e, density: t, className: n, text: r, ...i }) {
4076
- let { content: a, dom: o } = _o(r === void 0 ? i : {
4621
+ function dc({ layout: e, density: t, className: n, text: r, ...i }) {
4622
+ let { content: a, dom: o } = Ks(r === void 0 ? i : {
4077
4623
  ...i,
4078
4624
  copyText: i.copyText ?? r,
4079
4625
  children: /* @__PURE__ */ z("span", {
@@ -4081,10 +4627,10 @@ function Io({ layout: e, density: t, className: n, text: r, ...i }) {
4081
4627
  className: "whitespace-pre-wrap [overflow-wrap:anywhere]",
4082
4628
  children: r
4083
4629
  })
4084
- }), { layout: s, density: c } = so({
4630
+ }), { layout: s, density: c } = Ls({
4085
4631
  layout: e,
4086
4632
  density: t
4087
- }), l = vo(a, {
4633
+ }), l = qs(a, {
4088
4634
  layout: s,
4089
4635
  density: c
4090
4636
  }), { variant: u, groupPosition: d, flat: f, lead: p, tail: m } = l;
@@ -4093,61 +4639,54 @@ function Io({ layout: e, density: t, className: n, text: r, ...i }) {
4093
4639
  "data-variant": u,
4094
4640
  "data-layout": s,
4095
4641
  "data-group": d,
4096
- className: A(fo({
4642
+ className: A(Vs({
4097
4643
  variant: u,
4098
4644
  layout: s,
4099
4645
  density: c
4100
- }), po(d, c), n),
4646
+ }), Hs(d, c), n),
4101
4647
  ...o,
4102
- children: [l.hasAvatar && /* @__PURE__ */ z(yo, {
4648
+ children: [l.hasAvatar && /* @__PURE__ */ z(Js, {
4103
4649
  showAvatar: f ? p : m,
4104
4650
  avatar: a.avatar,
4105
4651
  avatarSrc: a.avatarSrc,
4106
4652
  avatarFallback: a.avatarFallback,
4107
- size: mo(c, s),
4653
+ size: Us(c, s),
4108
4654
  className: A(!f && l.hasMeta && "mb-5"),
4109
4655
  hoverTime: f && !p ? a.timestamp : void 0
4110
- }), /* @__PURE__ */ z(Fo, {
4656
+ }), /* @__PURE__ */ z(uc, {
4111
4657
  content: a,
4112
4658
  view: l
4113
4659
  })]
4114
4660
  });
4115
4661
  }
4116
4662
  //#endregion
4117
- //#region lib/hooks/use-csp-nonce.ts
4118
- var Lo = Ke(void 0);
4119
- Ke(0);
4120
- function Ro() {
4121
- return Ye(Lo);
4122
- }
4123
- //#endregion
4124
4663
  //#region lib/components/ui/primitives/scroll-area/scroll-area.tsx
4125
- function zo({ className: e, children: t, viewportProps: n, ...r }) {
4126
- let i = Ro();
4127
- return /* @__PURE__ */ B(Bn, {
4664
+ function fc({ className: e, children: t, viewportProps: n, ...r }) {
4665
+ let i = Ya();
4666
+ return /* @__PURE__ */ B(kr, {
4128
4667
  "data-slot": "scroll-area",
4129
4668
  className: A("relative", e),
4130
4669
  ...r,
4131
4670
  children: [
4132
- /* @__PURE__ */ z(Vn, {
4671
+ /* @__PURE__ */ z(Ar, {
4133
4672
  ...n,
4134
4673
  "data-slot": "scroll-area-viewport",
4135
4674
  nonce: i,
4136
4675
  className: A("focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", n?.className),
4137
4676
  children: t
4138
4677
  }),
4139
- /* @__PURE__ */ z(Bo, {}),
4140
- /* @__PURE__ */ z(Hn, {})
4678
+ /* @__PURE__ */ z(pc, {}),
4679
+ /* @__PURE__ */ z(jr, {})
4141
4680
  ]
4142
4681
  });
4143
4682
  }
4144
- function Bo({ className: e, orientation: t = "vertical", ...n }) {
4145
- return /* @__PURE__ */ z(vn, {
4683
+ function pc({ className: e, orientation: t = "vertical", ...n }) {
4684
+ return /* @__PURE__ */ z(or, {
4146
4685
  "data-slot": "scroll-area-scrollbar",
4147
4686
  orientation: t,
4148
4687
  className: A("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-2.5 border-l border-l-transparent", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e),
4149
4688
  ...n,
4150
- children: /* @__PURE__ */ z(kn, {
4689
+ children: /* @__PURE__ */ z(_r, {
4151
4690
  "data-slot": "scroll-area-thumb",
4152
4691
  className: "bg-border relative flex-1 rounded-full"
4153
4692
  })
@@ -4155,22 +4694,22 @@ function Bo({ className: e, orientation: t = "vertical", ...n }) {
4155
4694
  }
4156
4695
  //#endregion
4157
4696
  //#region lib/components/ui/widgets/chat/partials/chat-empty-thread.tsx
4158
- function Vo() {
4697
+ function mc() {
4159
4698
  let { t: e } = a();
4160
- return /* @__PURE__ */ z(ir, {
4699
+ return /* @__PURE__ */ z(Oi, {
4161
4700
  kind: "empty",
4162
4701
  size: "compact",
4163
- icon: /* @__PURE__ */ z(yt, {}),
4702
+ icon: /* @__PURE__ */ z(zt, {}),
4164
4703
  title: e("material.chat.empty", "No messages yet"),
4165
4704
  description: e("material.chat.empty-description", "Send a message to start the conversation.")
4166
4705
  });
4167
4706
  }
4168
4707
  //#endregion
4169
4708
  //#region lib/components/ui/actions/scroll-to-latest-button/scroll-to-latest-button.tsx
4170
- function Ho({ visible: e = !0, count: t = 0, label: n, direction: r = "down", className: i, type: o = "button", ...s }) {
4709
+ function hc({ visible: e = !0, count: t = 0, label: n, direction: r = "down", className: i, type: o = "button", ...s }) {
4171
4710
  let { t: c } = a();
4172
4711
  if (!e) return null;
4173
- let l = n ?? c("material.scroll-to-latest.label", "Scroll to latest"), u = r === "up" ? et : $e, d = t > 0, f = c("material.scroll-to-latest.new", "{count, plural, one {# new message} other {# new messages}}", { count: t });
4712
+ let l = n ?? c("material.scroll-to-latest.label", "Scroll to latest"), u = r === "up" ? bt : yt, d = t > 0, f = c("material.scroll-to-latest.new", "{count, plural, one {# new message} other {# new messages}}", { count: t });
4174
4713
  return /* @__PURE__ */ B("button", {
4175
4714
  type: o,
4176
4715
  "data-slot": "scroll-to-latest-button",
@@ -4193,11 +4732,11 @@ function Ho({ visible: e = !0, count: t = 0, label: n, direction: r = "down", cl
4193
4732
  }
4194
4733
  //#endregion
4195
4734
  //#region lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.tsx
4196
- function Uo({ visible: e, count: t, label: n, onClick: r }) {
4735
+ function gc({ visible: e, count: t, label: n, onClick: r }) {
4197
4736
  let { t: i } = a();
4198
4737
  return /* @__PURE__ */ z("div", {
4199
4738
  className: "pointer-events-none absolute inset-x-0 bottom-3 flex justify-center",
4200
- children: /* @__PURE__ */ z(Ho, {
4739
+ children: /* @__PURE__ */ z(hc, {
4201
4740
  visible: e,
4202
4741
  count: t,
4203
4742
  label: n ?? i("material.chat.scroll-to-latest", "Scroll to latest"),
@@ -4208,7 +4747,7 @@ function Uo({ visible: e, count: t, label: n, onClick: r }) {
4208
4747
  }
4209
4748
  //#endregion
4210
4749
  //#region lib/components/ui/feedback/typing-indicator/typing-indicator.tsx
4211
- var Wo = u("nxgt-typing inline-flex w-max items-center text-muted-foreground", {
4750
+ var _c = u("nxgt-typing inline-flex w-max items-center text-muted-foreground", {
4212
4751
  variants: {
4213
4752
  variant: {
4214
4753
  dots: "px-1 py-1",
@@ -4224,14 +4763,14 @@ var Wo = u("nxgt-typing inline-flex w-max items-center text-muted-foreground", {
4224
4763
  size: "md"
4225
4764
  }
4226
4765
  });
4227
- function Go({ label: e, variant: t, size: n, className: r, ...i }) {
4766
+ function vc({ label: e, variant: t, size: n, className: r, ...i }) {
4228
4767
  let { t: o } = a(), s = e ?? o("material.typing-indicator.label", "Typing");
4229
4768
  return /* @__PURE__ */ z("div", {
4230
4769
  "data-slot": "typing-indicator",
4231
4770
  "data-variant": t ?? "dots",
4232
4771
  role: "status",
4233
4772
  "aria-label": s,
4234
- className: A(Wo({
4773
+ className: A(_c({
4235
4774
  variant: t,
4236
4775
  size: n
4237
4776
  }), r),
@@ -4248,9 +4787,9 @@ function Go({ label: e, variant: t, size: n, className: r, ...i }) {
4248
4787
  }
4249
4788
  //#endregion
4250
4789
  //#region lib/components/ui/widgets/chat/chat-typing-indicator.tsx
4251
- function Ko({ label: e, ...t }) {
4790
+ function yc({ label: e, ...t }) {
4252
4791
  let { t: n } = a();
4253
- return /* @__PURE__ */ z(Go, {
4792
+ return /* @__PURE__ */ z(vc, {
4254
4793
  "data-slot": "chat-typing-indicator",
4255
4794
  label: e ?? n("material.chat.typing", "Typing"),
4256
4795
  ...t
@@ -4258,13 +4797,13 @@ function Ko({ label: e, ...t }) {
4258
4797
  }
4259
4798
  //#endregion
4260
4799
  //#region lib/components/ui/widgets/chat/partials/chat-typing-row.tsx
4261
- function qo({ density: e, layout: t, avatar: n, label: r }) {
4800
+ function bc({ density: e, layout: t, avatar: n, label: r }) {
4262
4801
  return /* @__PURE__ */ B("div", {
4263
4802
  className: "flex animate-in items-end gap-2 fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none",
4264
4803
  children: [/* @__PURE__ */ z("div", {
4265
- className: A("shrink-0", mo(e, t)),
4804
+ className: A("shrink-0", Us(e, t)),
4266
4805
  children: n
4267
- }), /* @__PURE__ */ z(Ko, {
4806
+ }), /* @__PURE__ */ z(yc, {
4268
4807
  variant: "bubble",
4269
4808
  label: r
4270
4809
  })]
@@ -4272,32 +4811,32 @@ function qo({ density: e, layout: t, avatar: n, label: r }) {
4272
4811
  }
4273
4812
  //#endregion
4274
4813
  //#region lib/components/ui/widgets/chat/chat-unseen.ts
4275
- function Jo(e, t, n, r) {
4814
+ function xc(e, t, n, r) {
4276
4815
  if (r) return 0;
4277
4816
  let i = n - t;
4278
4817
  return i > 0 ? e + i : e;
4279
4818
  }
4280
4819
  //#endregion
4281
4820
  //#region lib/components/ui/widgets/chat/use-chat-scroll.ts
4282
- function Yo(e) {
4821
+ function Sc(e) {
4283
4822
  return e?.querySelector("[data-slot=\"scroll-area-viewport\"]");
4284
4823
  }
4285
- function Xo(e) {
4824
+ function Cc(e) {
4286
4825
  return e.scrollHeight - e.scrollTop - e.clientHeight;
4287
4826
  }
4288
- function Zo(e, t) {
4289
- let n = I(null), r = I(null), i = I(!0), a = I(e), [o, s] = L(!0), [c, l] = L(0), u = Je((e = "auto") => {
4290
- let t = Yo(n.current);
4827
+ function wc(e, t) {
4828
+ let n = I(null), r = I(null), i = I(!0), a = I(e), [o, s] = L(!0), [c, l] = L(0), u = ut((e = "auto") => {
4829
+ let t = Sc(n.current);
4291
4830
  t && t.scrollTo({
4292
4831
  top: t.scrollHeight,
4293
4832
  behavior: e
4294
4833
  });
4295
4834
  }, []);
4296
4835
  return P(() => {
4297
- let e = Yo(n.current);
4836
+ let e = Sc(n.current);
4298
4837
  if (!e) return;
4299
4838
  let r = () => {
4300
- let n = Xo(e) <= t;
4839
+ let n = Cc(e) <= t;
4301
4840
  i.current = n, s(n), n && l(0);
4302
4841
  };
4303
4842
  return i.current && (e.scrollTop = e.scrollHeight), r(), e.addEventListener("scroll", r, { passive: !0 }), () => e.removeEventListener("scroll", r);
@@ -4310,7 +4849,7 @@ function Zo(e, t) {
4310
4849
  return t.observe(e), () => t.disconnect();
4311
4850
  }, [u]), P(() => {
4312
4851
  let t = i.current;
4313
- l((n) => Jo(n, a.current, e, t)), a.current = e, t && u();
4852
+ l((n) => xc(n, a.current, e, t)), a.current = e, t && u();
4314
4853
  }, [e, u]), {
4315
4854
  rootRef: n,
4316
4855
  contentRef: r,
@@ -4323,17 +4862,17 @@ function Zo(e, t) {
4323
4862
  }
4324
4863
  //#endregion
4325
4864
  //#region lib/components/ui/widgets/chat/chat-message-list.tsx
4326
- function Qo({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r, scrollToBottomLabel: i, showScrollToBottom: o = !0, bottomThreshold: s = 96, layout: c = "bubbles", density: l = "comfortable", itemCount: u, children: d, className: f, viewportProps: p, ...m }) {
4327
- let { t: h } = a(), g = u ?? Ue.count(d), _ = Zo(g + +!!e, s), v = Xe(() => ({
4865
+ function Tc({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r, scrollToBottomLabel: i, showScrollToBottom: o = !0, bottomThreshold: s = 96, layout: c = "bubbles", density: l = "comfortable", itemCount: u, children: d, className: f, viewportProps: p, ...m }) {
4866
+ let { t: h } = a(), g = u ?? at.count(d), _ = wc(g + +!!e, s), v = pt(() => ({
4328
4867
  layout: c,
4329
4868
  density: l
4330
4869
  }), [c, l]);
4331
- return /* @__PURE__ */ z(oo.Provider, {
4870
+ return /* @__PURE__ */ z(Is.Provider, {
4332
4871
  value: v,
4333
4872
  children: /* @__PURE__ */ B("div", {
4334
4873
  ref: _.rootRef,
4335
4874
  className: "relative h-full min-h-0 flex-1",
4336
- children: [/* @__PURE__ */ z(zo, {
4875
+ children: [/* @__PURE__ */ z(fc, {
4337
4876
  "data-slot": "chat-message-list",
4338
4877
  "data-layout": c,
4339
4878
  "data-density": l,
@@ -4349,14 +4888,14 @@ function Qo({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r,
4349
4888
  role: "log",
4350
4889
  "aria-label": h("material.chat.thread.log", "Messages"),
4351
4890
  className: A("mx-auto flex w-full min-w-0 flex-col", l === "compact" ? "gap-2.5 p-3" : "gap-4 p-4 @lg:px-6"),
4352
- children: [g === 0 ? r ?? /* @__PURE__ */ z(Vo, {}) : d, e && /* @__PURE__ */ z(qo, {
4891
+ children: [g === 0 ? r ?? /* @__PURE__ */ z(mc, {}) : d, e && /* @__PURE__ */ z(bc, {
4353
4892
  density: l,
4354
4893
  layout: c,
4355
4894
  avatar: n,
4356
4895
  label: t
4357
4896
  })]
4358
4897
  })
4359
- }), o && /* @__PURE__ */ z(Uo, {
4898
+ }), o && /* @__PURE__ */ z(gc, {
4360
4899
  visible: !_.atBottom,
4361
4900
  count: _.unseen,
4362
4901
  label: i,
@@ -4367,17 +4906,17 @@ function Qo({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r,
4367
4906
  }
4368
4907
  //#endregion
4369
4908
  //#region lib/components/ui/display/day-separator/day-label.ts
4370
- function $o(e, { now: t = /* @__PURE__ */ new Date(), locale: n, today: r, yesterday: i, timeZone: a }) {
4371
- let o = a && Gt(a) ? a : void 0, s = qt(e);
4909
+ function Ec(e, { now: t = /* @__PURE__ */ new Date(), locale: n, today: r, yesterday: i, timeZone: a }) {
4910
+ let o = a && fn(a) ? a : void 0, s = mn(e);
4372
4911
  if (Number.isNaN(s.getTime())) return "";
4373
- let c = Ut(Wt(s, t, o));
4912
+ let c = un(dn(s, t, o));
4374
4913
  if (c === "today") return r;
4375
4914
  if (c === "yesterday") return i;
4376
4915
  if (c === "week") return new Intl.DateTimeFormat(n, {
4377
4916
  weekday: "long",
4378
4917
  timeZone: o
4379
4918
  }).format(s);
4380
- let l = (e) => Number(Kt(e, o).slice(0, 4)), u = l(qt(t)) === l(s);
4919
+ let l = (e) => Number(pn(e, o).slice(0, 4)), u = l(mn(t)) === l(s);
4381
4920
  return new Intl.DateTimeFormat(n, {
4382
4921
  weekday: u ? "short" : void 0,
4383
4922
  day: "numeric",
@@ -4388,7 +4927,7 @@ function $o(e, { now: t = /* @__PURE__ */ new Date(), locale: n, today: r, yeste
4388
4927
  }
4389
4928
  //#endregion
4390
4929
  //#region lib/components/ui/display/day-separator/day-separator.tsx
4391
- var es = u("flex w-full items-center gap-3 py-2 text-xs text-muted-foreground", {
4930
+ var Dc = u("flex w-full items-center gap-3 py-2 text-xs text-muted-foreground", {
4392
4931
  variants: {
4393
4932
  variant: {
4394
4933
  pill: "",
@@ -4404,11 +4943,11 @@ var es = u("flex w-full items-center gap-3 py-2 text-xs text-muted-foreground",
4404
4943
  sticky: !1
4405
4944
  }
4406
4945
  });
4407
- function ts({ date: e, label: t, now: n, locale: r, timeZone: i }) {
4946
+ function Oc({ date: e, label: t, now: n, locale: r, timeZone: i }) {
4408
4947
  let { t: o, language: s } = a();
4409
4948
  if (t != null) return /* @__PURE__ */ z(R, { children: t });
4410
4949
  if (e == null) return null;
4411
- let c = $o(e, {
4950
+ let c = Ec(e, {
4412
4951
  now: n,
4413
4952
  timeZone: i,
4414
4953
  locale: r ?? s ?? "en",
@@ -4416,16 +4955,16 @@ function ts({ date: e, label: t, now: n, locale: r, timeZone: i }) {
4416
4955
  yesterday: o("material.day-separator.yesterday", "Yesterday")
4417
4956
  });
4418
4957
  return /* @__PURE__ */ z("time", {
4419
- dateTime: Kt(e, i),
4958
+ dateTime: pn(e, i),
4420
4959
  children: c
4421
4960
  });
4422
4961
  }
4423
- function ns({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, variant: o, sticky: s, as: c = "div", className: l, ...u }) {
4962
+ function kc({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, variant: o, sticky: s, as: c = "div", className: l, ...u }) {
4424
4963
  let d = (o ?? "pill") === "pill";
4425
4964
  return /* @__PURE__ */ B(c, {
4426
4965
  "data-slot": "day-separator",
4427
4966
  "data-variant": o ?? "pill",
4428
- className: A(es({
4967
+ className: A(Dc({
4429
4968
  variant: o,
4430
4969
  sticky: s
4431
4970
  }), c !== "div" && "m-0 font-normal", l),
@@ -4437,7 +4976,7 @@ function ns({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, varia
4437
4976
  }),
4438
4977
  /* @__PURE__ */ B("span", {
4439
4978
  className: A("inline-flex shrink-0 items-center gap-1.5 font-medium", d && "rounded-(--nxgt-shape-corner-full) border border-border/60 bg-(--nxgt-sticky-surface,var(--ground,var(--background))) px-3 py-1 shadow-xs", !d && s && "rounded-(--nxgt-shape-corner-full) bg-(--nxgt-sticky-surface,var(--ground,var(--background))) px-2 py-0.5"),
4440
- children: [/* @__PURE__ */ z(ts, {
4979
+ children: [/* @__PURE__ */ z(Oc, {
4441
4980
  date: e,
4442
4981
  label: t,
4443
4982
  now: r,
@@ -4457,8 +4996,8 @@ function ns({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, varia
4457
4996
  }
4458
4997
  //#endregion
4459
4998
  //#region lib/components/ui/widgets/chat/chat-message-separator.tsx
4460
- function rs({ sticky: e = !1, ...t }) {
4461
- return /* @__PURE__ */ z(ns, {
4999
+ function Ac({ sticky: e = !1, ...t }) {
5000
+ return /* @__PURE__ */ z(kc, {
4462
5001
  "data-slot": "chat-message-separator",
4463
5002
  sticky: e,
4464
5003
  ...t
@@ -4466,7 +5005,7 @@ function rs({ sticky: e = !1, ...t }) {
4466
5005
  }
4467
5006
  //#endregion
4468
5007
  //#region lib/components/ui/widgets/chat/chat-thread.tsx
4469
- function is({ header: e, footer: t, composerProps: n, messageListProps: r, layout: i, density: a, surface: o = "plain", children: s, className: c, ...l }) {
5008
+ function jc({ header: e, footer: t, composerProps: n, messageListProps: r, layout: i, density: a, surface: o = "plain", children: s, className: c, ...l }) {
4470
5009
  return /* @__PURE__ */ B("div", {
4471
5010
  "data-slot": "chat-thread",
4472
5011
  "data-surface": o,
@@ -4478,13 +5017,13 @@ function is({ header: e, footer: t, composerProps: n, messageListProps: r, layou
4478
5017
  className: "z-10 shrink-0 border-border/70 border-b bg-background",
4479
5018
  children: e
4480
5019
  }),
4481
- /* @__PURE__ */ z(Qo, {
5020
+ /* @__PURE__ */ z(Tc, {
4482
5021
  layout: i,
4483
5022
  density: a,
4484
5023
  ...r,
4485
5024
  children: s
4486
5025
  }),
4487
- n && /* @__PURE__ */ z(ao, { ...n }),
5026
+ n && /* @__PURE__ */ z(Fs, { ...n }),
4488
5027
  t && /* @__PURE__ */ z("div", {
4489
5028
  "data-slot": "chat-thread-footer",
4490
5029
  className: "shrink-0",
@@ -4494,4 +5033,4 @@ function is({ header: e, footer: t, composerProps: n, messageListProps: r, layou
4494
5033
  });
4495
5034
  }
4496
5035
  //#endregion
4497
- export { Jn as Alert, yi as AttachmentList, xe as Badge, C as Button, ao as ChatComposer, Io as ChatMessage, Qo as ChatMessageList, rs as ChatMessageSeparator, is as ChatThread, Ei as Checkbox, Oi as CheckboxFormField, wa as ChipGroupField, te as Dialog, bi as DialogAside, Ci as DialogBody, se as DialogClose, ae as DialogContent, ne as DialogDescription, E as DialogFooter, de as DialogHeader, pe as DialogTitle, re as DialogTrigger, vr as EmailField, ei as EmailFormField, ir as EmptyState, e as I18nProvider, sr as Input, Wn as ListRow, ue as NxgtThemeProvider, ee as PortalContainerProvider, _e as Skeleton, ar as SkeletonText, v as Spinner, Me as Tabs, Ae as TabsContent, Oe as TabsList, Ti as TabsTrigger, hr as TextField, ti as TextFormField, ni as Textarea, fi as TextareaField, pi as TextareaFormField, oe as adoptStyles };
5036
+ export { Lr as Alert, Ha as AttachmentList, Le as Badge, O as Button, Fs as ChatComposer, dc as ChatMessage, Tc as ChatMessageList, Ac as ChatMessageSeparator, jc as ChatThread, to as Checkbox, ro as CheckboxFormField, es as ChipGroupField, vi as ConfirmDialog, me as Dialog, Ua as DialogAside, Ka as DialogBody, xe as DialogClose, ye as DialogContent, he as DialogDescription, ue as DialogFooter, Te as DialogHeader, Oe as DialogTitle, ge as DialogTrigger, Bi as EmailField, Ca as EmailFormField, Oi as EmptyState, e as I18nProvider, si as Input, Nr as ListRow, Qa as NonceProvider, we as NxgtThemeProvider, pe as PortalContainerProvider, Ne as Skeleton, ki as SkeletonText, b as Spinner, De as SwitchField, wa as SwitchFormField, Je as Tabs, Ke as TabsContent, We as TabsList, eo as TabsTrigger, Li as TextField, Ta as TextFormField, ui as Textarea, Fa as TextareaField, Ia as TextareaFormField, be as adoptStyles };