@mieweb/ui 0.9.0 → 0.10.0-dev.1

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 (347) hide show
  1. package/MIGRATION.md +112 -0
  2. package/agent/mieweb-ui.instructions.md +2 -1
  3. package/dist/{Animated-Cs-naa2g.d.cts → Animated-XmH6k8pZ.d.cts} +16 -3
  4. package/dist/{Animated-Cs-naa2g.d.ts → Animated-XmH6k8pZ.d.ts} +16 -3
  5. package/dist/{CsvBlock-QXXZ7ZUM.cjs → CsvBlock-CVYA3HYS.cjs} +3 -2
  6. package/dist/{CsvBlock-QXXZ7ZUM.cjs.map → CsvBlock-CVYA3HYS.cjs.map} +1 -1
  7. package/dist/{CsvBlock-D7Z6ZCRP.js → CsvBlock-SM4NKSHA.js} +3 -2
  8. package/dist/{CsvBlock-D7Z6ZCRP.js.map → CsvBlock-SM4NKSHA.js.map} +1 -1
  9. package/dist/{HtmlPreviewBlock-F5VDM2EN.js → HtmlPreviewBlock-FAMF4W24.js} +3 -2
  10. package/dist/{HtmlPreviewBlock-F5VDM2EN.js.map → HtmlPreviewBlock-FAMF4W24.js.map} +1 -1
  11. package/dist/{HtmlPreviewBlock-AADG7MVB.cjs → HtmlPreviewBlock-JF454L2L.cjs} +3 -2
  12. package/dist/{HtmlPreviewBlock-AADG7MVB.cjs.map → HtmlPreviewBlock-JF454L2L.cjs.map} +1 -1
  13. package/dist/{MermaidBlock-6PLITRBZ.js → MermaidBlock-7V5G4K5A.js} +3 -2
  14. package/dist/{MermaidBlock-6PLITRBZ.js.map → MermaidBlock-7V5G4K5A.js.map} +1 -1
  15. package/dist/{MermaidBlock-TQ2O5CLV.cjs → MermaidBlock-FR5SQX4Q.cjs} +3 -2
  16. package/dist/{MermaidBlock-TQ2O5CLV.cjs.map → MermaidBlock-FR5SQX4Q.cjs.map} +1 -1
  17. package/dist/{SurveyBlock-W5PSQ62F.js → SurveyBlock-6K2POV7S.js} +3 -2
  18. package/dist/{SurveyBlock-W5PSQ62F.js.map → SurveyBlock-6K2POV7S.js.map} +1 -1
  19. package/dist/{SurveyBlock-OYL3VNU5.cjs → SurveyBlock-MCJVWR7H.cjs} +3 -2
  20. package/dist/{SurveyBlock-OYL3VNU5.cjs.map → SurveyBlock-MCJVWR7H.cjs.map} +1 -1
  21. package/dist/ag-grid.cjs +1 -0
  22. package/dist/ag-grid.cjs.map +1 -1
  23. package/dist/ag-grid.js +1 -0
  24. package/dist/ag-grid.js.map +1 -1
  25. package/dist/brands/bluehive.cjs +1 -0
  26. package/dist/brands/bluehive.js +1 -0
  27. package/dist/brands/ccme.cjs +1 -0
  28. package/dist/brands/ccme.js +1 -0
  29. package/dist/brands/index.cjs +3 -2
  30. package/dist/brands/index.js +2 -1
  31. package/dist/brands/ozwell.cjs +1 -0
  32. package/dist/brands/ozwell.js +1 -0
  33. package/dist/brands/types.cjs +1 -0
  34. package/dist/brands/types.js +1 -0
  35. package/dist/{chunk-XUVEF2RQ.js → chunk-24SEAAOH.js} +2 -2
  36. package/dist/{chunk-XUVEF2RQ.js.map → chunk-24SEAAOH.js.map} +1 -1
  37. package/dist/{chunk-IUDY6S7I.cjs → chunk-37UZHCLM.cjs} +35 -14
  38. package/dist/chunk-37UZHCLM.cjs.map +1 -0
  39. package/dist/{chunk-ODYQYLO2.js → chunk-7KWNY3HG.js} +9 -5
  40. package/dist/chunk-7KWNY3HG.js.map +1 -0
  41. package/dist/{chunk-L52N6BEN.cjs → chunk-AUOTJQGO.cjs} +7 -7
  42. package/dist/{chunk-L52N6BEN.cjs.map → chunk-AUOTJQGO.cjs.map} +1 -1
  43. package/dist/{chunk-O7XHHTTP.cjs → chunk-AZP3DDBT.cjs} +6 -6
  44. package/dist/{chunk-O7XHHTTP.cjs.map → chunk-AZP3DDBT.cjs.map} +1 -1
  45. package/dist/chunk-C6CTTLH2.js +44645 -0
  46. package/dist/chunk-C6CTTLH2.js.map +1 -0
  47. package/dist/{chunk-6XDPJWSC.cjs → chunk-E3KC2XLN.cjs} +34 -30
  48. package/dist/chunk-E3KC2XLN.cjs.map +1 -0
  49. package/dist/chunk-EUAMEVVI.cjs +41 -0
  50. package/dist/chunk-EUAMEVVI.cjs.map +1 -0
  51. package/dist/{chunk-DFYMIRMW.js → chunk-IGNWT6RP.js} +7 -2
  52. package/dist/chunk-IGNWT6RP.js.map +1 -0
  53. package/dist/{chunk-XEEVDZDK.cjs → chunk-IGSIWNX3.cjs} +7 -2
  54. package/dist/chunk-IGSIWNX3.cjs.map +1 -0
  55. package/dist/chunk-IIFQ6BSJ.js +1888 -0
  56. package/dist/chunk-IIFQ6BSJ.js.map +1 -0
  57. package/dist/{chunk-FUFBRKOG.cjs → chunk-KLJGJJHN.cjs} +24 -24
  58. package/dist/{chunk-FUFBRKOG.cjs.map → chunk-KLJGJJHN.cjs.map} +1 -1
  59. package/dist/chunk-LECJMLNE.js +15 -0
  60. package/dist/{chunk-CYMZ2QS5.js.map → chunk-LECJMLNE.js.map} +1 -1
  61. package/dist/{chunk-BJKAVWED.js → chunk-MBWF36DJ.js} +35 -14
  62. package/dist/chunk-MBWF36DJ.js.map +1 -0
  63. package/dist/chunk-NV2CWBI2.cjs +290 -0
  64. package/dist/chunk-NV2CWBI2.cjs.map +1 -0
  65. package/dist/{chunk-FQBTGS3E.cjs → chunk-OFUKTVBN.cjs} +363 -285
  66. package/dist/chunk-OFUKTVBN.cjs.map +1 -0
  67. package/dist/{chunk-7KN6J7XV.cjs → chunk-OMAACCFW.cjs} +7 -7
  68. package/dist/{chunk-7KN6J7XV.cjs.map → chunk-OMAACCFW.cjs.map} +1 -1
  69. package/dist/chunk-OYQ7GYAA.cjs +1921 -0
  70. package/dist/chunk-OYQ7GYAA.cjs.map +1 -0
  71. package/dist/{chunk-YJP6DUFO.cjs → chunk-PKD3JLS2.cjs} +6 -6
  72. package/dist/{chunk-YJP6DUFO.cjs.map → chunk-PKD3JLS2.cjs.map} +1 -1
  73. package/dist/chunk-PN2PIE2L.cjs +44670 -0
  74. package/dist/chunk-PN2PIE2L.cjs.map +1 -0
  75. package/dist/chunk-PX6F3LHL.js +37 -0
  76. package/dist/chunk-PX6F3LHL.js.map +1 -0
  77. package/dist/{chunk-CXDMZT45.cjs → chunk-PY7XAG4D.cjs} +27 -4
  78. package/dist/chunk-PY7XAG4D.cjs.map +1 -0
  79. package/dist/{chunk-5H7SAEQO.js → chunk-QKFJDQEK.js} +3 -3
  80. package/dist/{chunk-5H7SAEQO.js.map → chunk-QKFJDQEK.js.map} +1 -1
  81. package/dist/{chunk-XJTFZLWH.cjs → chunk-QO6PRHDX.cjs} +2 -2
  82. package/dist/{chunk-XJTFZLWH.cjs.map → chunk-QO6PRHDX.cjs.map} +1 -1
  83. package/dist/{chunk-ONNY7UO4.js → chunk-QSVQABXD.js} +4 -4
  84. package/dist/{chunk-ONNY7UO4.js.map → chunk-QSVQABXD.js.map} +1 -1
  85. package/dist/{chunk-OHDIJOGG.js → chunk-RD3JDFYJ.js} +3 -3
  86. package/dist/{chunk-OHDIJOGG.js.map → chunk-RD3JDFYJ.js.map} +1 -1
  87. package/dist/{chunk-4SM3I7WE.cjs → chunk-RXPEZXAB.cjs} +67 -38
  88. package/dist/chunk-RXPEZXAB.cjs.map +1 -0
  89. package/dist/{chunk-VTR2KGLY.cjs → chunk-S3BCHPXT.cjs} +9 -9
  90. package/dist/{chunk-VTR2KGLY.cjs.map → chunk-S3BCHPXT.cjs.map} +1 -1
  91. package/dist/{chunk-KU3XRHWA.js → chunk-TZX76ZNZ.js} +67 -38
  92. package/dist/chunk-TZX76ZNZ.js.map +1 -0
  93. package/dist/chunk-VNAREBLV.cjs +17 -0
  94. package/dist/{chunk-SNEQXSC5.cjs.map → chunk-VNAREBLV.cjs.map} +1 -1
  95. package/dist/{chunk-MXQ7J4BB.js → chunk-VSVGMMNO.js} +361 -284
  96. package/dist/chunk-VSVGMMNO.js.map +1 -0
  97. package/dist/{chunk-Q7G56ZIO.js → chunk-WUBMDOTG.js} +3 -3
  98. package/dist/{chunk-Q7G56ZIO.js.map → chunk-WUBMDOTG.js.map} +1 -1
  99. package/dist/{chunk-DGRXAIWK.js → chunk-X5YM3KXY.js} +27 -4
  100. package/dist/chunk-X5YM3KXY.js.map +1 -0
  101. package/dist/chunk-XCP454Q6.js +263 -0
  102. package/dist/chunk-XCP454Q6.js.map +1 -0
  103. package/dist/{chunk-I3DQXUSC.js → chunk-Y6DFMDMH.js} +3 -3
  104. package/dist/{chunk-I3DQXUSC.js.map → chunk-Y6DFMDMH.js.map} +1 -1
  105. package/dist/{chunk-D25WH7MH.js → chunk-ZX2XRFE5.js} +6 -6
  106. package/dist/{chunk-D25WH7MH.js.map → chunk-ZX2XRFE5.js.map} +1 -1
  107. package/dist/{collabKit-Q4A36LDA.cjs → collabKit-GCRHP25F.cjs} +3 -3
  108. package/dist/{collabKit-Q4A36LDA.cjs.map → collabKit-GCRHP25F.cjs.map} +1 -1
  109. package/dist/{collabKit-A643VH2I.js → collabKit-SJPDPXU4.js} +3 -3
  110. package/dist/{collabKit-A643VH2I.js.map → collabKit-SJPDPXU4.js.map} +1 -1
  111. package/dist/components/Accordion/index.cjs +1 -0
  112. package/dist/components/Accordion/index.js +1 -0
  113. package/dist/components/Alert/index.cjs +1 -0
  114. package/dist/components/Alert/index.js +1 -0
  115. package/dist/components/AlertDialog/index.cjs +5 -4
  116. package/dist/components/AlertDialog/index.js +4 -3
  117. package/dist/components/AudioPlayer/index.cjs +1 -0
  118. package/dist/components/AudioPlayer/index.js +1 -0
  119. package/dist/components/AudioRecorder/index.cjs +1 -0
  120. package/dist/components/AudioRecorder/index.js +1 -0
  121. package/dist/components/Autocomplete/index.cjs +1 -0
  122. package/dist/components/Autocomplete/index.js +1 -0
  123. package/dist/components/Avatar/index.cjs +1 -0
  124. package/dist/components/Avatar/index.js +1 -0
  125. package/dist/components/Badge/index.cjs +1 -0
  126. package/dist/components/Badge/index.js +1 -0
  127. package/dist/components/Breadcrumb/index.cjs +1 -0
  128. package/dist/components/Breadcrumb/index.js +1 -0
  129. package/dist/components/Button/index.cjs +1 -0
  130. package/dist/components/Button/index.js +1 -0
  131. package/dist/components/Card/index.cjs +1 -0
  132. package/dist/components/Card/index.js +1 -0
  133. package/dist/components/Checkbox/index.cjs +1 -0
  134. package/dist/components/Checkbox/index.js +1 -0
  135. package/dist/components/ClampedText/index.cjs +1 -0
  136. package/dist/components/ClampedText/index.js +1 -0
  137. package/dist/components/CollabStatus/index.cjs +1 -0
  138. package/dist/components/CollabStatus/index.js +1 -0
  139. package/dist/components/Collapsible/index.cjs +7 -4
  140. package/dist/components/Collapsible/index.js +4 -1
  141. package/dist/components/CopyButton/index.cjs +1 -0
  142. package/dist/components/CopyButton/index.js +1 -0
  143. package/dist/components/CountryCodeDropdown/index.cjs +1 -0
  144. package/dist/components/CountryCodeDropdown/index.js +1 -0
  145. package/dist/components/CustomizableDashboard/index.cjs +1 -0
  146. package/dist/components/CustomizableDashboard/index.js +1 -0
  147. package/dist/components/DateInput/index.cjs +1 -0
  148. package/dist/components/DateInput/index.js +1 -0
  149. package/dist/components/Dropdown/index.cjs +10 -8
  150. package/dist/components/Dropdown/index.js +3 -1
  151. package/dist/components/FilterSummaryBar/index.cjs +1 -0
  152. package/dist/components/FilterSummaryBar/index.js +1 -0
  153. package/dist/components/FloatingWindow/index.cjs +1 -0
  154. package/dist/components/FloatingWindow/index.js +1 -0
  155. package/dist/components/FreshnessBadge/index.cjs +1 -0
  156. package/dist/components/FreshnessBadge/index.js +1 -0
  157. package/dist/components/GlossaryTooltip/index.cjs +1 -0
  158. package/dist/components/GlossaryTooltip/index.js +1 -0
  159. package/dist/components/Input/index.cjs +1 -0
  160. package/dist/components/Input/index.js +1 -0
  161. package/dist/components/KeyboardShortcutsOverlay/index.cjs +6 -5
  162. package/dist/components/KeyboardShortcutsOverlay/index.js +4 -3
  163. package/dist/components/Label/index.cjs +1 -0
  164. package/dist/components/Label/index.js +1 -0
  165. package/dist/components/Markdown/index.cjs +6 -5
  166. package/dist/components/Markdown/index.js +2 -1
  167. package/dist/components/MediaEditor/index.cjs +10 -9
  168. package/dist/components/MediaEditor/index.js +5 -4
  169. package/dist/components/MediaPlayer/index.cjs +1 -0
  170. package/dist/components/MediaPlayer/index.js +1 -0
  171. package/dist/components/Modal/index.cjs +11 -10
  172. package/dist/components/Modal/index.js +3 -2
  173. package/dist/components/Pagination/index.cjs +1 -0
  174. package/dist/components/Pagination/index.js +1 -0
  175. package/dist/components/PhoneInput/index.cjs +1 -0
  176. package/dist/components/PhoneInput/index.js +1 -0
  177. package/dist/components/Progress/index.cjs +1 -0
  178. package/dist/components/Progress/index.js +1 -0
  179. package/dist/components/Q/index.cjs +1 -0
  180. package/dist/components/Q/index.js +1 -0
  181. package/dist/components/QuickAction/index.cjs +1 -0
  182. package/dist/components/QuickAction/index.js +1 -0
  183. package/dist/components/Radio/index.cjs +1 -0
  184. package/dist/components/Radio/index.js +1 -0
  185. package/dist/components/ReadingProgressBar/index.cjs +1 -0
  186. package/dist/components/ReadingProgressBar/index.js +1 -0
  187. package/dist/components/RecordButton/index.cjs +1 -0
  188. package/dist/components/RecordButton/index.js +1 -0
  189. package/dist/components/RichTextEditor/index.cjs +7 -5
  190. package/dist/components/RichTextEditor/index.js +4 -2
  191. package/dist/components/SchedulePicker/index.cjs +1 -0
  192. package/dist/components/SchedulePicker/index.js +1 -0
  193. package/dist/components/ScrollArea/index.cjs +1 -0
  194. package/dist/components/ScrollArea/index.js +1 -0
  195. package/dist/components/SectionSpyNav/index.cjs +1 -0
  196. package/dist/components/SectionSpyNav/index.js +1 -0
  197. package/dist/components/Select/index.cjs +4 -3
  198. package/dist/components/Select/index.js +2 -1
  199. package/dist/components/Separator/index.cjs +1 -0
  200. package/dist/components/Separator/index.js +1 -0
  201. package/dist/components/Sheet/index.cjs +1 -0
  202. package/dist/components/Sheet/index.js +1 -0
  203. package/dist/components/Skeleton/index.cjs +1 -0
  204. package/dist/components/Skeleton/index.js +1 -0
  205. package/dist/components/Slider/index.cjs +1 -0
  206. package/dist/components/Slider/index.js +1 -0
  207. package/dist/components/SourceTip/index.cjs +1 -0
  208. package/dist/components/SourceTip/index.js +1 -0
  209. package/dist/components/Sparkline/index.cjs +1 -0
  210. package/dist/components/Sparkline/index.js +1 -0
  211. package/dist/components/Spinner/index.cjs +1 -0
  212. package/dist/components/Spinner/index.js +1 -0
  213. package/dist/components/SuperChat/index.cjs +41 -17
  214. package/dist/components/SuperChat/index.cjs.map +1 -1
  215. package/dist/components/SuperChat/index.d.cts +20 -7
  216. package/dist/components/SuperChat/index.d.ts +20 -7
  217. package/dist/components/SuperChat/index.js +36 -12
  218. package/dist/components/SuperChat/index.js.map +1 -1
  219. package/dist/components/SuperChat/plugins/index.cjs +12 -4
  220. package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
  221. package/dist/components/SuperChat/plugins/index.d.cts +3 -3
  222. package/dist/components/SuperChat/plugins/index.d.ts +3 -3
  223. package/dist/components/SuperChat/plugins/index.js +11 -3
  224. package/dist/components/SuperChat/plugins/index.js.map +1 -1
  225. package/dist/components/Switch/index.cjs +1 -0
  226. package/dist/components/Switch/index.js +1 -0
  227. package/dist/components/Table/index.cjs +1 -0
  228. package/dist/components/Table/index.js +1 -0
  229. package/dist/components/Tabs/index.cjs +1 -0
  230. package/dist/components/Tabs/index.js +1 -0
  231. package/dist/components/Text/index.cjs +1 -0
  232. package/dist/components/Text/index.js +1 -0
  233. package/dist/components/Textarea/index.cjs +1 -0
  234. package/dist/components/Textarea/index.js +1 -0
  235. package/dist/components/ThemeProvider/index.cjs +1 -0
  236. package/dist/components/ThemeProvider/index.js +1 -0
  237. package/dist/components/Toggle/index.cjs +1 -0
  238. package/dist/components/Toggle/index.js +1 -0
  239. package/dist/components/Tooltip/index.cjs +1 -0
  240. package/dist/components/Tooltip/index.js +1 -0
  241. package/dist/components/TranscriptView/index.cjs +1 -0
  242. package/dist/components/TranscriptView/index.js +1 -0
  243. package/dist/components/VisuallyHidden/index.cjs +1 -0
  244. package/dist/components/VisuallyHidden/index.js +1 -0
  245. package/dist/datavis.cjs +13 -8
  246. package/dist/datavis.cjs.map +1 -1
  247. package/dist/datavis.d.cts +647 -22
  248. package/dist/datavis.d.ts +647 -22
  249. package/dist/datavis.js +6 -5
  250. package/dist/datavis.js.map +1 -1
  251. package/dist/{default-BTEIFIZJ.cjs → default-CCMUBXP6.cjs} +3 -2
  252. package/dist/{default-BTEIFIZJ.cjs.map → default-CCMUBXP6.cjs.map} +1 -1
  253. package/dist/default-N2LW7ZFU.js +4 -0
  254. package/dist/{default-ORBRVZRZ.js.map → default-N2LW7ZFU.js.map} +1 -1
  255. package/dist/{enterprise-health-UDI25OCV.cjs → enterprise-health-75VYWAVG.cjs} +3 -2
  256. package/dist/{enterprise-health-UDI25OCV.cjs.map → enterprise-health-75VYWAVG.cjs.map} +1 -1
  257. package/dist/enterprise-health-CWLUB77O.js +4 -0
  258. package/dist/{enterprise-health-ORQQOLM3.js.map → enterprise-health-CWLUB77O.js.map} +1 -1
  259. package/dist/esheet.cjs +8 -7
  260. package/dist/esheet.cjs.map +1 -1
  261. package/dist/esheet.js +5 -4
  262. package/dist/esheet.js.map +1 -1
  263. package/dist/{hey-buddy-CLUVAY2X.cjs → hey-buddy-INNUFFJJ.cjs} +3 -2
  264. package/dist/hey-buddy-INNUFFJJ.cjs.map +1 -0
  265. package/dist/{hey-buddy-NMSWZ4TN.js → hey-buddy-V6FC5UKB.js} +3 -2
  266. package/dist/hey-buddy-V6FC5UKB.js.map +1 -0
  267. package/dist/hooks/index.cjs +14 -13
  268. package/dist/hooks/index.js +2 -1
  269. package/dist/index.cjs +753 -1703
  270. package/dist/index.cjs.map +1 -1
  271. package/dist/index.d.cts +347 -347
  272. package/dist/index.d.ts +347 -347
  273. package/dist/index.js +465 -1410
  274. package/dist/index.js.map +1 -1
  275. package/dist/kerebron.cjs +2 -1
  276. package/dist/kerebron.cjs.map +1 -1
  277. package/dist/kerebron.js +2 -1
  278. package/dist/kerebron.js.map +1 -1
  279. package/dist/{mieweb-6JCRWKSO.cjs → mieweb-72YOL44I.cjs} +3 -2
  280. package/dist/{mieweb-6JCRWKSO.cjs.map → mieweb-72YOL44I.cjs.map} +1 -1
  281. package/dist/mieweb-EZDLSSA6.js +4 -0
  282. package/dist/{mieweb-GIKY6EMN.js.map → mieweb-EZDLSSA6.js.map} +1 -1
  283. package/dist/motion.cjs +8 -7
  284. package/dist/motion.cjs.map +1 -1
  285. package/dist/motion.d.cts +1 -1
  286. package/dist/motion.d.ts +1 -1
  287. package/dist/motion.js +3 -2
  288. package/dist/motion.js.map +1 -1
  289. package/dist/{nitroTableGrid-SIMT7635.js → nitroTableGrid-LVYKKCGF.js} +5 -4
  290. package/dist/nitroTableGrid-LVYKKCGF.js.map +1 -0
  291. package/dist/{nitroTableGrid-3J2GY6CK.cjs → nitroTableGrid-SQADULEY.cjs} +5 -4
  292. package/dist/nitroTableGrid-SQADULEY.cjs.map +1 -0
  293. package/dist/q.cjs +1 -0
  294. package/dist/q.js +1 -0
  295. package/dist/styles.css +1 -1
  296. package/dist/tailwind-preset.cjs +5 -4
  297. package/dist/tailwind-preset.js +2 -1
  298. package/dist/{types-DZDroUW8.d.cts → types-B97JNRNQ.d.cts} +1 -1
  299. package/dist/{types-B2RLmdVd.d.ts → types-CnPEwzlp.d.cts} +6 -2
  300. package/dist/{types-B2RLmdVd.d.cts → types-CnPEwzlp.d.ts} +6 -2
  301. package/dist/{types-9vK_YdEb.d.ts → types-gZXrfLj6.d.ts} +1 -1
  302. package/dist/utils/index.cjs +1 -0
  303. package/dist/utils/index.js +1 -0
  304. package/dist/{waggleline-I7QWD3YX.cjs → waggleline-5CBT4MNN.cjs} +3 -2
  305. package/dist/{waggleline-I7QWD3YX.cjs.map → waggleline-5CBT4MNN.cjs.map} +1 -1
  306. package/dist/waggleline-JMPCNV3J.js +4 -0
  307. package/dist/{waggleline-2MLRNVCV.js.map → waggleline-JMPCNV3J.js.map} +1 -1
  308. package/dist/webchart-2CVQ2TT3.js +4 -0
  309. package/dist/{webchart-72YMJ45P.js.map → webchart-2CVQ2TT3.js.map} +1 -1
  310. package/dist/{webchart-37OYZ42V.cjs → webchart-AXXOQHU6.cjs} +3 -2
  311. package/dist/{webchart-37OYZ42V.cjs.map → webchart-AXXOQHU6.cjs.map} +1 -1
  312. package/package.json +9 -14
  313. package/dist/chunk-4SM3I7WE.cjs.map +0 -1
  314. package/dist/chunk-5BVFVXHN.cjs +0 -1244
  315. package/dist/chunk-5BVFVXHN.cjs.map +0 -1
  316. package/dist/chunk-6XDPJWSC.cjs.map +0 -1
  317. package/dist/chunk-BJKAVWED.js.map +0 -1
  318. package/dist/chunk-BN75TLUN.cjs +0 -163
  319. package/dist/chunk-BN75TLUN.cjs.map +0 -1
  320. package/dist/chunk-CXDMZT45.cjs.map +0 -1
  321. package/dist/chunk-CYMZ2QS5.js +0 -15
  322. package/dist/chunk-DFYMIRMW.js.map +0 -1
  323. package/dist/chunk-DGRXAIWK.js.map +0 -1
  324. package/dist/chunk-FQBTGS3E.cjs.map +0 -1
  325. package/dist/chunk-IUDY6S7I.cjs.map +0 -1
  326. package/dist/chunk-KU3XRHWA.js.map +0 -1
  327. package/dist/chunk-MXQ7J4BB.js.map +0 -1
  328. package/dist/chunk-O6GJ4IYS.js +0 -1210
  329. package/dist/chunk-O6GJ4IYS.js.map +0 -1
  330. package/dist/chunk-ODYQYLO2.js.map +0 -1
  331. package/dist/chunk-SNEQXSC5.cjs +0 -17
  332. package/dist/chunk-VJOVJTFP.cjs +0 -370
  333. package/dist/chunk-VJOVJTFP.cjs.map +0 -1
  334. package/dist/chunk-WYMO3IIK.js +0 -136
  335. package/dist/chunk-WYMO3IIK.js.map +0 -1
  336. package/dist/chunk-XEEVDZDK.cjs.map +0 -1
  337. package/dist/chunk-YBLIDESO.js +0 -365
  338. package/dist/chunk-YBLIDESO.js.map +0 -1
  339. package/dist/default-ORBRVZRZ.js +0 -3
  340. package/dist/enterprise-health-ORQQOLM3.js +0 -3
  341. package/dist/hey-buddy-CLUVAY2X.cjs.map +0 -1
  342. package/dist/hey-buddy-NMSWZ4TN.js.map +0 -1
  343. package/dist/mieweb-GIKY6EMN.js +0 -3
  344. package/dist/nitroTableGrid-3J2GY6CK.cjs.map +0 -1
  345. package/dist/nitroTableGrid-SIMT7635.js.map +0 -1
  346. package/dist/waggleline-2MLRNVCV.js +0 -3
  347. package/dist/webchart-72YMJ45P.js +0 -3
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkZJCPW6MS_cjs = require('./chunk-ZJCPW6MS.cjs');
4
- var chunkSNEQXSC5_cjs = require('./chunk-SNEQXSC5.cjs');
4
+ var chunkVNAREBLV_cjs = require('./chunk-VNAREBLV.cjs');
5
5
  var chunkU7VQUOLS_cjs = require('./chunk-U7VQUOLS.cjs');
6
6
  var chunkX7S76WB7_cjs = require('./chunk-X7S76WB7.cjs');
7
7
  var chunkP52GA3GJ_cjs = require('./chunk-P52GA3GJ.cjs');
@@ -23,10 +23,10 @@ var chunkXTHMC76F_cjs = require('./chunk-XTHMC76F.cjs');
23
23
  var chunk7RV6CAP6_cjs = require('./chunk-7RV6CAP6.cjs');
24
24
  var chunkXXVUHLQN_cjs = require('./chunk-XXVUHLQN.cjs');
25
25
  var chunkWIAQQNFU_cjs = require('./chunk-WIAQQNFU.cjs');
26
- var chunkFQBTGS3E_cjs = require('./chunk-FQBTGS3E.cjs');
27
- var chunk5BVFVXHN_cjs = require('./chunk-5BVFVXHN.cjs');
26
+ var chunkOFUKTVBN_cjs = require('./chunk-OFUKTVBN.cjs');
27
+ var chunkOYQ7GYAA_cjs = require('./chunk-OYQ7GYAA.cjs');
28
28
  var chunkJTSKPDPH_cjs = require('./chunk-JTSKPDPH.cjs');
29
- var chunk7KN6J7XV_cjs = require('./chunk-7KN6J7XV.cjs');
29
+ var chunkOMAACCFW_cjs = require('./chunk-OMAACCFW.cjs');
30
30
  var chunk3SZQRMHM_cjs = require('./chunk-3SZQRMHM.cjs');
31
31
  var chunkOZOSWBSI_cjs = require('./chunk-OZOSWBSI.cjs');
32
32
  var chunk3LHICE4I_cjs = require('./chunk-3LHICE4I.cjs');
@@ -38,24 +38,24 @@ var chunkXWZEECEX_cjs = require('./chunk-XWZEECEX.cjs');
38
38
  var chunk5MXO6PEV_cjs = require('./chunk-5MXO6PEV.cjs');
39
39
  var chunk3TXOFAXP_cjs = require('./chunk-3TXOFAXP.cjs');
40
40
  var chunkH4AVMUOC_cjs = require('./chunk-H4AVMUOC.cjs');
41
- var chunkVTR2KGLY_cjs = require('./chunk-VTR2KGLY.cjs');
42
- var chunkO7XHHTTP_cjs = require('./chunk-O7XHHTTP.cjs');
41
+ var chunkS3BCHPXT_cjs = require('./chunk-S3BCHPXT.cjs');
42
+ var chunkAZP3DDBT_cjs = require('./chunk-AZP3DDBT.cjs');
43
43
  var chunkAHINB2TP_cjs = require('./chunk-AHINB2TP.cjs');
44
44
  var chunkIB54SKWB_cjs = require('./chunk-IB54SKWB.cjs');
45
45
  var chunkRSCA5AZW_cjs = require('./chunk-RSCA5AZW.cjs');
46
46
  var chunk5Z6UPVGC_cjs = require('./chunk-5Z6UPVGC.cjs');
47
47
  var chunk6QKMMKRY_cjs = require('./chunk-6QKMMKRY.cjs');
48
- var chunkFUFBRKOG_cjs = require('./chunk-FUFBRKOG.cjs');
48
+ var chunkKLJGJJHN_cjs = require('./chunk-KLJGJJHN.cjs');
49
49
  var chunkMYAU2ZUC_cjs = require('./chunk-MYAU2ZUC.cjs');
50
50
  require('./chunk-GLXTVCHN.cjs');
51
51
  var chunkIFDC4TXM_cjs = require('./chunk-IFDC4TXM.cjs');
52
- var chunkIUDY6S7I_cjs = require('./chunk-IUDY6S7I.cjs');
52
+ var chunk37UZHCLM_cjs = require('./chunk-37UZHCLM.cjs');
53
53
  var chunkNGSDBWKA_cjs = require('./chunk-NGSDBWKA.cjs');
54
54
  var chunkX5QRRMGB_cjs = require('./chunk-X5QRRMGB.cjs');
55
55
  var chunkQKAYRHWP_cjs = require('./chunk-QKAYRHWP.cjs');
56
56
  var chunkPLMXN23Q_cjs = require('./chunk-PLMXN23Q.cjs');
57
57
  var chunkC3DUS2VE_cjs = require('./chunk-C3DUS2VE.cjs');
58
- var chunk4SM3I7WE_cjs = require('./chunk-4SM3I7WE.cjs');
58
+ var chunkRXPEZXAB_cjs = require('./chunk-RXPEZXAB.cjs');
59
59
  var chunkZO4L6C2Y_cjs = require('./chunk-ZO4L6C2Y.cjs');
60
60
  var chunkBZAGP5W6_cjs = require('./chunk-BZAGP5W6.cjs');
61
61
  var chunkJEIW7BSV_cjs = require('./chunk-JEIW7BSV.cjs');
@@ -68,32 +68,32 @@ var chunkX4LBUPJO_cjs = require('./chunk-X4LBUPJO.cjs');
68
68
  require('./chunk-AT732HC6.cjs');
69
69
  var chunkC7RVKV25_cjs = require('./chunk-C7RVKV25.cjs');
70
70
  var chunkL7YQBSEL_cjs = require('./chunk-L7YQBSEL.cjs');
71
- var chunkCXDMZT45_cjs = require('./chunk-CXDMZT45.cjs');
71
+ var chunkPY7XAG4D_cjs = require('./chunk-PY7XAG4D.cjs');
72
72
  var chunkVROIMIHB_cjs = require('./chunk-VROIMIHB.cjs');
73
73
  var chunkNYJIXR4Y_cjs = require('./chunk-NYJIXR4Y.cjs');
74
- var chunkYJP6DUFO_cjs = require('./chunk-YJP6DUFO.cjs');
74
+ var chunkPKD3JLS2_cjs = require('./chunk-PKD3JLS2.cjs');
75
75
  var chunkPJ6CC53R_cjs = require('./chunk-PJ6CC53R.cjs');
76
76
  var chunkW4Q4UEXA_cjs = require('./chunk-W4Q4UEXA.cjs');
77
77
  var chunkOCV33S5Q_cjs = require('./chunk-OCV33S5Q.cjs');
78
78
  var chunkRI56YPED_cjs = require('./chunk-RI56YPED.cjs');
79
- var chunk6XDPJWSC_cjs = require('./chunk-6XDPJWSC.cjs');
79
+ var chunkE3KC2XLN_cjs = require('./chunk-E3KC2XLN.cjs');
80
80
  var chunkBSDBI6H7_cjs = require('./chunk-BSDBI6H7.cjs');
81
81
  var chunkBVMABVC4_cjs = require('./chunk-BVMABVC4.cjs');
82
82
  var chunkG7EQ3JPX_cjs = require('./chunk-G7EQ3JPX.cjs');
83
83
  var chunkAIJAFPGJ_cjs = require('./chunk-AIJAFPGJ.cjs');
84
- var chunkXEEVDZDK_cjs = require('./chunk-XEEVDZDK.cjs');
84
+ var chunkIGSIWNX3_cjs = require('./chunk-IGSIWNX3.cjs');
85
85
  var chunkSRA2L3SQ_cjs = require('./chunk-SRA2L3SQ.cjs');
86
86
  var chunkMJWFNV3L_cjs = require('./chunk-MJWFNV3L.cjs');
87
87
  var chunkCW75IKA6_cjs = require('./chunk-CW75IKA6.cjs');
88
- var chunkL52N6BEN_cjs = require('./chunk-L52N6BEN.cjs');
88
+ var chunkAUOTJQGO_cjs = require('./chunk-AUOTJQGO.cjs');
89
89
  require('./chunk-I44YNYI6.cjs');
90
90
  var chunkZ5S5JEJD_cjs = require('./chunk-Z5S5JEJD.cjs');
91
91
  var chunkL7L5S2HO_cjs = require('./chunk-L7L5S2HO.cjs');
92
92
  var chunkYVL3XATO_cjs = require('./chunk-YVL3XATO.cjs');
93
93
  var chunkIINZWUGK_cjs = require('./chunk-IINZWUGK.cjs');
94
- var chunkBN75TLUN_cjs = require('./chunk-BN75TLUN.cjs');
94
+ var chunkNV2CWBI2_cjs = require('./chunk-NV2CWBI2.cjs');
95
95
  var chunkS5RVSXDV_cjs = require('./chunk-S5RVSXDV.cjs');
96
- var chunkXJTFZLWH_cjs = require('./chunk-XJTFZLWH.cjs');
96
+ var chunkQO6PRHDX_cjs = require('./chunk-QO6PRHDX.cjs');
97
97
  var chunk2O7D6F67_cjs = require('./chunk-2O7D6F67.cjs');
98
98
  var chunk7IKLGH3Z_cjs = require('./chunk-7IKLGH3Z.cjs');
99
99
  var chunkNPKPCYAT_cjs = require('./chunk-NPKPCYAT.cjs');
@@ -107,6 +107,7 @@ var chunkSCV7C55E_cjs = require('./chunk-SCV7C55E.cjs');
107
107
  var chunkFSGEDDF2_cjs = require('./chunk-FSGEDDF2.cjs');
108
108
  var chunkAOHJILLU_cjs = require('./chunk-AOHJILLU.cjs');
109
109
  var chunkNMBYU7D7_cjs = require('./chunk-NMBYU7D7.cjs');
110
+ require('./chunk-EUAMEVVI.cjs');
110
111
  var React13 = require('react');
111
112
  var jsxRuntime = require('react/jsx-runtime');
112
113
  var classVarianceAuthority = require('class-variance-authority');
@@ -235,10 +236,10 @@ function AddContactModal({
235
236
  }
236
237
  };
237
238
  const isEditing = !!contact?.id;
238
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, children: [
239
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: isEditing ? "Edit Contact" : title }) }),
239
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, children: [
240
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: isEditing ? "Edit Contact" : title }) }),
240
241
  /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
241
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: chunkS5RVSXDV_cjs.cn("space-y-4", className), children: [
242
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: chunkS5RVSXDV_cjs.cn("space-y-4", className), children: [
242
243
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [
243
244
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
244
245
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -298,7 +299,7 @@ function AddContactModal({
298
299
  }
299
300
  ),
300
301
  /* @__PURE__ */ jsxRuntime.jsx(
301
- chunkXEEVDZDK_cjs.Select,
302
+ chunkIGSIWNX3_cjs.Select,
302
303
  {
303
304
  id: "contact-sex",
304
305
  options: SEX_OPTIONS,
@@ -500,7 +501,7 @@ function AddContactModal({
500
501
  (!formData.customFields || formData.customFields.length === 0) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: 'No custom fields added. Click "Add Field" to add custom information.' })
501
502
  ] })
502
503
  ] }),
503
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
504
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
504
505
  /* @__PURE__ */ jsxRuntime.jsx(
505
506
  chunkIINZWUGK_cjs.Button,
506
507
  {
@@ -1412,7 +1413,7 @@ function AIEmptyState({
1412
1413
  /* @__PURE__ */ jsxRuntime.jsx(SuggestedActions, { actions: suggestions, onSelect: onSuggestionSelect })
1413
1414
  ] }) : void 0;
1414
1415
  return /* @__PURE__ */ jsxRuntime.jsx(
1415
- chunkFQBTGS3E_cjs.EmptyState,
1416
+ chunkOFUKTVBN_cjs.EmptyState,
1416
1417
  {
1417
1418
  title,
1418
1419
  description,
@@ -1443,6 +1444,7 @@ var chatVariants = classVarianceAuthority.cva("flex flex-col", {
1443
1444
  size: "full"
1444
1445
  }
1445
1446
  });
1447
+ var normalizeLegacySlot = (node) => node || void 0;
1446
1448
  function AIChat({
1447
1449
  session,
1448
1450
  messages: messagesProp,
@@ -1472,6 +1474,9 @@ function AIChat({
1472
1474
  renderMessageFooter
1473
1475
  }) {
1474
1476
  const messagesContainerRef = React13__namespace.useRef(null);
1477
+ React13__namespace.useEffect(() => {
1478
+ chunkOYQ7GYAA_cjs.notifyComposerMigrationOnce("AIChat");
1479
+ }, []);
1475
1480
  const messages = React13__namespace.useMemo(
1476
1481
  () => session?.messages || messagesProp || [],
1477
1482
  [session?.messages, messagesProp]
@@ -1481,11 +1486,64 @@ function AIChat({
1481
1486
  const container = messagesContainerRef.current;
1482
1487
  if (container) container.scrollTop = container.scrollHeight;
1483
1488
  }, [messages]);
1484
- const handleSend = async (message) => {
1485
- if (message.content.trim() && onSendMessage) {
1486
- onSendMessage(message.content.trim());
1489
+ const {
1490
+ showAttachmentPicker,
1491
+ inputTrailing,
1492
+ onTypingStart,
1493
+ onTypingStop,
1494
+ value: hostValue,
1495
+ onValueChange: hostOnValueChange,
1496
+ onSend: hostOnSend,
1497
+ micSlot: hostMicSlot,
1498
+ ...composerRest
1499
+ } = composerProps ?? {};
1500
+ delete composerRest.showCameraButton;
1501
+ delete composerRest.variant;
1502
+ const hasInputTrailing = !!composerProps && "inputTrailing" in composerProps;
1503
+ const legacyAttachments = !!composerProps && "showAttachmentPicker" in composerProps ? showAttachmentPicker ?? true : false;
1504
+ const [draft, setDraft] = React13__namespace.useState("");
1505
+ const draftEpochRef = React13__namespace.useRef(0);
1506
+ const composerValue = hostValue ?? draft;
1507
+ const isHostControlled = hostValue !== void 0;
1508
+ const handleComposerValueChange = React13__namespace.useCallback(
1509
+ (value) => {
1510
+ draftEpochRef.current += 1;
1511
+ setDraft(value);
1512
+ if (isHostControlled) hostOnValueChange?.(value);
1513
+ },
1514
+ [isHostControlled, hostOnValueChange]
1515
+ );
1516
+ const { stopTyping } = chunkOFUKTVBN_cjs.useTypingEmulation({
1517
+ value: composerValue,
1518
+ onTypingStart,
1519
+ onTypingStop
1520
+ });
1521
+ const sendWithRestore = async (message, send) => {
1522
+ stopTyping();
1523
+ const epoch = draftEpochRef.current;
1524
+ try {
1525
+ await Promise.resolve(send(message));
1526
+ } catch (error) {
1527
+ if (draftEpochRef.current === epoch) {
1528
+ setDraft(message.content);
1529
+ if (isHostControlled) hostOnValueChange?.(message.content);
1530
+ }
1531
+ throw error;
1487
1532
  }
1488
1533
  };
1534
+ const handleSend = async (message) => {
1535
+ if (!onSendMessage) return;
1536
+ const content = message.content.trim();
1537
+ const attachments = message.attachments?.length ? message.attachments : void 0;
1538
+ if (!content && !attachments) return;
1539
+ await sendWithRestore(
1540
+ message,
1541
+ () => (
1542
+ // Keep the exact legacy call shape for text-only sends.
1543
+ attachments ? onSendMessage(content, attachments) : onSendMessage(content)
1544
+ )
1545
+ );
1546
+ };
1489
1547
  const handleSuggestionSelect = (action) => {
1490
1548
  if (onSuggestedAction) {
1491
1549
  onSuggestedAction(action);
@@ -1604,18 +1662,14 @@ function AIChat({
1604
1662
  onSelect: handleSuggestionSelect
1605
1663
  }
1606
1664
  ) }),
1607
- /* @__PURE__ */ jsxRuntime.jsx(
1608
- chunk5BVFVXHN_cjs.MessageComposer,
1665
+ /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "ai-chat-composer", className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsx(
1666
+ chunkOYQ7GYAA_cjs.ChatComposer,
1609
1667
  {
1610
- onSend: handleSend,
1668
+ onSend: hostOnSend ? (message) => sendWithRestore(message, hostOnSend) : handleSend,
1611
1669
  placeholder: inputPlaceholder,
1612
1670
  disabled: isGenerating,
1613
1671
  isSending: isGenerating,
1614
- showAttachmentPicker: false,
1615
- showCameraButton: false,
1616
- showCharacterCount: false,
1617
- variant: "minimal",
1618
- inputTrailing: talkToText ? /* @__PURE__ */ jsxRuntime.jsx(
1672
+ micSlot: hostMicSlot !== void 0 ? hostMicSlot : hasInputTrailing ? normalizeLegacySlot(inputTrailing) : talkToText ? /* @__PURE__ */ jsxRuntime.jsx(
1619
1673
  chunkJTSKPDPH_cjs.RecordButton,
1620
1674
  {
1621
1675
  variant: "ghost",
@@ -1627,9 +1681,16 @@ function AIChat({
1627
1681
  onRecordingComplete
1628
1682
  }
1629
1683
  ) : void 0,
1630
- ...composerProps
1684
+ ...composerRest,
1685
+ allowAttachments: composerRest.allowAttachments ?? legacyAttachments,
1686
+ maxLength: composerRest.maxLength ?? 1600,
1687
+ inputLabel: composerRest.inputLabel ?? "Message",
1688
+ acceptedFileTypes: composerRest.acceptedFileTypes ?? (legacyAttachments ? chunkOYQ7GYAA_cjs.DEFAULT_ACCEPTED_FILE_TYPES : void 0),
1689
+ maxFileSize: composerRest.maxFileSize ?? (legacyAttachments ? chunkOYQ7GYAA_cjs.DEFAULT_MAX_FILE_SIZE : void 0),
1690
+ value: composerValue,
1691
+ onValueChange: handleComposerValueChange
1631
1692
  }
1632
- )
1693
+ ) })
1633
1694
  ]
1634
1695
  }
1635
1696
  )
@@ -1888,7 +1949,6 @@ function Toast({
1888
1949
  className: chunkS5RVSXDV_cjs.cn(
1889
1950
  "flex items-start gap-3 rounded-lg border p-4 shadow-lg",
1890
1951
  "max-w-[420px] min-w-[300px]",
1891
- "animate-slide-in-right rtl:animate-slide-in-left",
1892
1952
  styles.container
1893
1953
  ),
1894
1954
  children: [
@@ -1933,17 +1993,27 @@ var positionStyles = {
1933
1993
  "bottom-left": "bottom-4 start-4 items-start",
1934
1994
  "bottom-right": "bottom-4 end-4 items-end"
1935
1995
  };
1996
+ function toastEdge(position, isRtl) {
1997
+ if (position === "top-center") return "top";
1998
+ if (position === "bottom-center") return "bottom";
1999
+ const isStart = position.endsWith("-start") || position.endsWith("-left");
2000
+ return isStart === isRtl ? "right" : "left";
2001
+ }
2002
+ var TOAST_FALLBACK_ANIMATION = "animate-slide-in-right rtl:animate-slide-in-left";
1936
2003
  function ToastContainer({
1937
2004
  toasts,
1938
2005
  position,
1939
2006
  onDismiss
1940
2007
  }) {
1941
2008
  const context = useOptionalToast();
2009
+ const containerRef = React13__namespace.default.useRef(null);
2010
+ const isRtl = chunkQO6PRHDX_cjs.useDirection(containerRef) === "rtl";
1942
2011
  const resolvedPosition = position ?? context?.position ?? "bottom-end";
1943
- if (toasts.length === 0) return null;
2012
+ const edge = toastEdge(resolvedPosition, isRtl);
1944
2013
  return /* @__PURE__ */ jsxRuntime.jsx(
1945
2014
  "div",
1946
2015
  {
2016
+ ref: containerRef,
1947
2017
  "data-slot": "toast-container",
1948
2018
  className: chunkS5RVSXDV_cjs.cn(
1949
2019
  "pointer-events-none fixed z-50 flex flex-col gap-2",
@@ -1951,533 +2021,21 @@ function ToastContainer({
1951
2021
  ),
1952
2022
  "aria-live": "polite",
1953
2023
  "aria-atomic": "true",
1954
- children: toasts.map((toast) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsxRuntime.jsx(Toast, { ...toast, onClose: () => onDismiss(toast.id) }) }, toast.id))
2024
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkNV2CWBI2_cjs.AnimatedPresence, { children: toasts.map((toast) => /* @__PURE__ */ jsxRuntime.jsx(
2025
+ chunkNV2CWBI2_cjs.Animated,
2026
+ {
2027
+ preset: "toast",
2028
+ mode: "presence",
2029
+ custom: edge,
2030
+ className: "pointer-events-auto",
2031
+ fallbackClassName: TOAST_FALLBACK_ANIMATION,
2032
+ children: /* @__PURE__ */ jsxRuntime.jsx(Toast, { ...toast, onClose: () => onDismiss(toast.id) })
2033
+ },
2034
+ toast.id
2035
+ )) })
1955
2036
  }
1956
2037
  );
1957
2038
  }
1958
- var MENU_OFFSET_PX = 6;
1959
- var MENU_MAX_HEIGHT_PX = 320;
1960
- function optionKey(option) {
1961
- return `${option.provider}\0${option.model}`;
1962
- }
1963
- function renderedOptionKey(option, index) {
1964
- return `${option.id ?? optionKey(option)}\0${index}`;
1965
- }
1966
- function groupByProvider(models) {
1967
- const groups = /* @__PURE__ */ new Map();
1968
- for (const model of models) {
1969
- const group = groups.get(model.provider);
1970
- if (group) {
1971
- group.push(model);
1972
- } else {
1973
- groups.set(model.provider, [model]);
1974
- }
1975
- }
1976
- return Array.from(groups, ([provider, options]) => ({ provider, options }));
1977
- }
1978
- function getProviderLabel(models, provider) {
1979
- return models.find((model) => model.provider === provider && model.providerLabel)?.providerLabel ?? provider;
1980
- }
1981
- function ComposerModelSelector({
1982
- models,
1983
- value,
1984
- providerFilter,
1985
- onProviderFilterChange,
1986
- onChange,
1987
- disabled = false,
1988
- variant = "default",
1989
- className,
1990
- boundaryRef,
1991
- placeholder = "Model",
1992
- anyLabel = "Any",
1993
- emptyLabel = "No models",
1994
- ariaLabel = "Model",
1995
- effortOptions,
1996
- effort = null,
1997
- defaultEffort,
1998
- onEffortChange,
1999
- effortLabel = "Effort",
2000
- effortHint,
2001
- defaultBadgeLabel = "Default",
2002
- backLabel = "Back"
2003
- }) {
2004
- const [open, setOpen] = React13__namespace.useState(false);
2005
- const [view, setView] = React13__namespace.useState("models");
2006
- const [effortHighlight, setEffortHighlight] = React13__namespace.useState(0);
2007
- const [internalProviderFilter, setInternalProviderFilter] = React13__namespace.useState(null);
2008
- const [highlightedIndex, setHighlightedIndex] = React13__namespace.useState(0);
2009
- const listRef = React13__namespace.useRef(null);
2010
- const effortListRef = React13__namespace.useRef(null);
2011
- const menuId = React13__namespace.useId();
2012
- const {
2013
- anchorRef: triggerRef,
2014
- floatingRef: menuRef,
2015
- style: menuStyle
2016
- } = chunkAOHJILLU_cjs.useAnchoredPosition({
2017
- open,
2018
- placement: "top-start",
2019
- offset: MENU_OFFSET_PX,
2020
- matchMinWidth: true,
2021
- maxHeight: MENU_MAX_HEIGHT_PX,
2022
- allowFlip: false,
2023
- boundaryRef
2024
- });
2025
- const activeProviderFilter = providerFilter === void 0 ? internalProviderFilter : providerFilter;
2026
- const selectedKey = value ? optionKey(value) : null;
2027
- const selectedOption = models.find(
2028
- (model) => optionKey(model) === selectedKey
2029
- );
2030
- const providers = React13__namespace.useMemo(
2031
- () => Array.from(new Set(models.map((model) => model.provider))),
2032
- [models]
2033
- );
2034
- const providerLabels = React13__namespace.useMemo(
2035
- () => new Map(
2036
- providers.map((provider) => [
2037
- provider,
2038
- getProviderLabel(models, provider)
2039
- ])
2040
- ),
2041
- [models, providers]
2042
- );
2043
- const filteredModels = React13__namespace.useMemo(
2044
- () => activeProviderFilter === null ? models : models.filter((model) => model.provider === activeProviderFilter),
2045
- [activeProviderFilter, models]
2046
- );
2047
- const groupedModels = React13__namespace.useMemo(
2048
- () => groupByProvider(filteredModels),
2049
- [filteredModels]
2050
- );
2051
- const groupedRenderedModels = React13__namespace.useMemo(() => {
2052
- let index = 0;
2053
- return groupedModels.map((group) => ({
2054
- provider: group.provider,
2055
- options: group.options.map((option) => {
2056
- const rendered = {
2057
- option,
2058
- index,
2059
- key: renderedOptionKey(option, index)
2060
- };
2061
- index += 1;
2062
- return rendered;
2063
- })
2064
- }));
2065
- }, [groupedModels]);
2066
- const renderedModels = React13__namespace.useMemo(
2067
- () => groupedRenderedModels.flatMap((group) => group.options),
2068
- [groupedRenderedModels]
2069
- );
2070
- const getOptionId = React13__namespace.useCallback(
2071
- (index) => `${menuId}-option-${index}`,
2072
- [menuId]
2073
- );
2074
- const getEffortOptionId = React13__namespace.useCallback(
2075
- (index) => `${menuId}-effort-option-${index}`,
2076
- [menuId]
2077
- );
2078
- const activeOptionId = open && renderedModels[highlightedIndex] ? getOptionId(highlightedIndex) : void 0;
2079
- const selectedRenderedIndex = React13__namespace.useMemo(
2080
- () => selectedKey ? renderedModels.findIndex(
2081
- (renderedModel) => optionKey(renderedModel.option) === selectedKey
2082
- ) : -1,
2083
- [renderedModels, selectedKey]
2084
- );
2085
- const setProvider = React13__namespace.useCallback(
2086
- (provider) => {
2087
- if (providerFilter === void 0) {
2088
- setInternalProviderFilter(provider);
2089
- }
2090
- onProviderFilterChange?.(provider);
2091
- },
2092
- [onProviderFilterChange, providerFilter]
2093
- );
2094
- const close = React13__namespace.useCallback(
2095
- (restoreFocus = true) => {
2096
- setOpen(false);
2097
- if (restoreFocus) {
2098
- triggerRef.current?.focus({ preventScroll: true });
2099
- }
2100
- },
2101
- [triggerRef]
2102
- );
2103
- const selectModel = React13__namespace.useCallback(
2104
- (model) => {
2105
- onChange({ provider: model.provider, model: model.model });
2106
- close();
2107
- },
2108
- [close, onChange]
2109
- );
2110
- const efforts = React13__namespace.useMemo(() => effortOptions ?? [], [effortOptions]);
2111
- const activeEffortOptionId = open && efforts[effortHighlight] ? getEffortOptionId(effortHighlight) : void 0;
2112
- const selectedEffortOption = efforts.find(
2113
- (option) => option.value === effort
2114
- );
2115
- const selectEffort = React13__namespace.useCallback(
2116
- (value2) => {
2117
- onEffortChange?.(value2);
2118
- close();
2119
- },
2120
- [close, onEffortChange]
2121
- );
2122
- const handleEffortKeyDown = (event) => {
2123
- if (efforts.length === 0) return;
2124
- if (event.key === "ArrowDown") {
2125
- event.preventDefault();
2126
- setEffortHighlight((current) => (current + 1) % efforts.length);
2127
- }
2128
- if (event.key === "ArrowUp") {
2129
- event.preventDefault();
2130
- setEffortHighlight(
2131
- (current) => (current - 1 + efforts.length) % efforts.length
2132
- );
2133
- }
2134
- if (event.key === "Home") {
2135
- event.preventDefault();
2136
- setEffortHighlight(0);
2137
- }
2138
- if (event.key === "End") {
2139
- event.preventDefault();
2140
- setEffortHighlight(efforts.length - 1);
2141
- }
2142
- if (event.key === "ArrowLeft" || event.key === "Backspace") {
2143
- event.preventDefault();
2144
- setView("models");
2145
- }
2146
- if (event.key === "Enter" || event.key === " ") {
2147
- event.preventDefault();
2148
- const highlighted = efforts[effortHighlight];
2149
- if (highlighted) selectEffort(highlighted.value);
2150
- }
2151
- };
2152
- const outsideRefs = React13__namespace.useMemo(
2153
- () => [triggerRef, menuRef],
2154
- [triggerRef, menuRef]
2155
- );
2156
- chunkFSGEDDF2_cjs.useClickOutside(outsideRefs, () => close(false), open);
2157
- chunkFHY3K6PL_cjs.useEscapeKey(close, open);
2158
- React13__namespace.useEffect(() => {
2159
- if (!open) return;
2160
- setHighlightedIndex(selectedRenderedIndex >= 0 ? selectedRenderedIndex : 0);
2161
- }, [activeProviderFilter, open, selectedRenderedIndex]);
2162
- React13__namespace.useEffect(() => {
2163
- if (!open) return;
2164
- setView("models");
2165
- }, [open]);
2166
- React13__namespace.useEffect(() => {
2167
- if (!open) return;
2168
- const current = efforts.findIndex((option) => option.value === effort);
2169
- setEffortHighlight(current >= 0 ? current : 0);
2170
- }, [effort, efforts, open]);
2171
- React13__namespace.useEffect(() => {
2172
- if (!open) return;
2173
- setHighlightedIndex(
2174
- (current) => Math.min(current, Math.max(renderedModels.length - 1, 0))
2175
- );
2176
- }, [open, renderedModels.length]);
2177
- React13__namespace.useEffect(() => {
2178
- if (!open) return;
2179
- requestAnimationFrame(() => {
2180
- const target = view === "effort" ? effortListRef.current : listRef.current;
2181
- target?.focus({ preventScroll: true });
2182
- });
2183
- }, [open, view]);
2184
- const handleTriggerKeyDown = (event) => {
2185
- if (event.key === "ArrowDown" || event.key === "ArrowUp") {
2186
- event.preventDefault();
2187
- setOpen(true);
2188
- }
2189
- };
2190
- const handleMenuKeyDown = (event) => {
2191
- if (renderedModels.length === 0) return;
2192
- if (event.key === "ArrowDown") {
2193
- event.preventDefault();
2194
- setHighlightedIndex((current) => (current + 1) % renderedModels.length);
2195
- }
2196
- if (event.key === "ArrowUp") {
2197
- event.preventDefault();
2198
- setHighlightedIndex(
2199
- (current) => (current - 1 + renderedModels.length) % renderedModels.length
2200
- );
2201
- }
2202
- if (event.key === "Home") {
2203
- event.preventDefault();
2204
- setHighlightedIndex(0);
2205
- }
2206
- if (event.key === "End") {
2207
- event.preventDefault();
2208
- setHighlightedIndex(renderedModels.length - 1);
2209
- }
2210
- if (event.key === "Enter" || event.key === " ") {
2211
- event.preventDefault();
2212
- const highlightedModel = renderedModels[highlightedIndex]?.option;
2213
- if (highlightedModel) {
2214
- selectModel(highlightedModel);
2215
- }
2216
- }
2217
- };
2218
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2219
- /* @__PURE__ */ jsxRuntime.jsxs(
2220
- "button",
2221
- {
2222
- ref: triggerRef,
2223
- type: "button",
2224
- disabled,
2225
- "aria-haspopup": "listbox",
2226
- "aria-expanded": open,
2227
- "aria-controls": open ? menuId : void 0,
2228
- onClick: () => setOpen((current) => !current),
2229
- onKeyDown: handleTriggerKeyDown,
2230
- "data-slot": "composer-model-selector-trigger",
2231
- className: chunkS5RVSXDV_cjs.cn(
2232
- variant === "ghost" ? [
2233
- "inline-flex max-w-full min-w-0 items-center gap-1 rounded-md px-2 py-1 text-xs",
2234
- "text-neutral-600 dark:text-neutral-400",
2235
- "transition-colors duration-150",
2236
- "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-700 dark:hover:text-white",
2237
- "focus-visible:ring-primary-500 focus-visible:ring-2 focus-visible:outline-none",
2238
- "disabled:pointer-events-none disabled:opacity-40"
2239
- ] : [
2240
- "inline-flex h-8 max-w-full items-center gap-1.5 rounded-full border px-2.5 text-sm font-medium",
2241
- "border-border bg-background text-foreground shadow-sm",
2242
- "hover:bg-muted/50",
2243
- "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
2244
- "disabled:cursor-not-allowed disabled:opacity-50"
2245
- ],
2246
- className
2247
- ),
2248
- children: [
2249
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: selectedOption?.label ?? selectedOption?.model ?? placeholder }),
2250
- selectedEffortOption && /* @__PURE__ */ jsxRuntime.jsx(
2251
- "span",
2252
- {
2253
- "data-slot": "composer-model-selector-trigger-effort",
2254
- className: "text-muted-foreground min-w-0 truncate font-normal",
2255
- children: selectedEffortOption.label
2256
- }
2257
- ),
2258
- /* @__PURE__ */ jsxRuntime.jsx(
2259
- lucideReact.ChevronUp,
2260
- {
2261
- "aria-hidden": "true",
2262
- className: chunkS5RVSXDV_cjs.cn(
2263
- "shrink-0",
2264
- variant === "ghost" ? "h-3 w-3" : "h-3.5 w-3.5"
2265
- )
2266
- }
2267
- )
2268
- ]
2269
- }
2270
- ),
2271
- open && ReactDOM.createPortal(
2272
- /* @__PURE__ */ jsxRuntime.jsxs(
2273
- "div",
2274
- {
2275
- ref: menuRef,
2276
- style: menuStyle,
2277
- "data-slot": "composer-model-selector-menu",
2278
- className: chunkS5RVSXDV_cjs.cn(
2279
- "border-border bg-card text-card-foreground flex w-80 max-w-full flex-col rounded-lg border shadow-lg",
2280
- "animate-in fade-in overflow-hidden duration-100"
2281
- ),
2282
- children: [
2283
- view === "models" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2284
- /* @__PURE__ */ jsxRuntime.jsx(
2285
- "div",
2286
- {
2287
- "data-slot": "composer-model-selector-provider-filter",
2288
- className: "border-border flex min-h-9 items-center gap-1 overflow-x-auto overflow-y-hidden border-b p-2",
2289
- children: [null, ...providers].map((provider) => {
2290
- const selected = activeProviderFilter === provider;
2291
- return /* @__PURE__ */ jsxRuntime.jsx(
2292
- "button",
2293
- {
2294
- type: "button",
2295
- "aria-pressed": selected,
2296
- onMouseDown: (event) => event.preventDefault(),
2297
- onClick: () => setProvider(provider),
2298
- className: chunkS5RVSXDV_cjs.cn(
2299
- "inline-flex h-6 shrink-0 items-center justify-center rounded-full px-2.5 text-xs font-medium whitespace-nowrap transition-colors",
2300
- "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
2301
- selected ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground"
2302
- ),
2303
- children: provider === null ? anyLabel : providerLabels.get(provider) ?? provider
2304
- },
2305
- provider ?? "all-providers"
2306
- );
2307
- })
2308
- }
2309
- ),
2310
- /* @__PURE__ */ jsxRuntime.jsx(
2311
- "div",
2312
- {
2313
- ref: listRef,
2314
- id: menuId,
2315
- role: "listbox",
2316
- "aria-label": ariaLabel,
2317
- "aria-activedescendant": activeOptionId,
2318
- tabIndex: -1,
2319
- onKeyDown: handleMenuKeyDown,
2320
- className: "min-h-0 flex-1 overflow-y-auto p-1",
2321
- children: groupedModels.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground px-3 py-4 text-center text-sm", children: emptyLabel }) : groupedRenderedModels.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
2322
- "div",
2323
- {
2324
- role: "group",
2325
- "aria-label": providerLabels.get(group.provider) ?? group.provider,
2326
- children: [
2327
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground px-3 py-1.5 text-xs font-semibold uppercase", children: providerLabels.get(group.provider) ?? group.provider }),
2328
- group.options.map((renderedModel) => {
2329
- const { index, key, option: model } = renderedModel;
2330
- const selected = optionKey(model) === selectedKey;
2331
- const highlighted = index === highlightedIndex;
2332
- return /* @__PURE__ */ jsxRuntime.jsxs(
2333
- "button",
2334
- {
2335
- id: getOptionId(index),
2336
- type: "button",
2337
- role: "option",
2338
- "aria-selected": selected,
2339
- onMouseDown: (event) => event.preventDefault(),
2340
- onClick: () => selectModel(model),
2341
- onMouseEnter: () => setHighlightedIndex(index),
2342
- className: chunkS5RVSXDV_cjs.cn(
2343
- "flex w-full items-center gap-2 rounded-md px-3 py-2 text-start text-sm",
2344
- "focus-visible:ring-ring transition-colors focus-visible:ring-2 focus-visible:outline-none",
2345
- highlighted && "bg-muted",
2346
- selected && "bg-primary/10 text-primary"
2347
- ),
2348
- children: [
2349
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: model.label ?? model.model }),
2350
- selected && /* @__PURE__ */ jsxRuntime.jsx(
2351
- lucideReact.Check,
2352
- {
2353
- "aria-hidden": "true",
2354
- className: "text-primary h-4 w-4 shrink-0"
2355
- }
2356
- )
2357
- ]
2358
- },
2359
- key
2360
- );
2361
- })
2362
- ]
2363
- },
2364
- group.provider
2365
- ))
2366
- }
2367
- ),
2368
- efforts.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-border border-t p-1", children: /* @__PURE__ */ jsxRuntime.jsxs(
2369
- "button",
2370
- {
2371
- type: "button",
2372
- "data-slot": "composer-model-selector-effort-row",
2373
- "aria-haspopup": "listbox",
2374
- onMouseDown: (event) => event.preventDefault(),
2375
- onClick: () => setView("effort"),
2376
- className: chunkS5RVSXDV_cjs.cn(
2377
- "flex w-full items-center gap-2 rounded-md px-3 py-2 text-start text-sm",
2378
- "hover:bg-muted transition-colors",
2379
- "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none"
2380
- ),
2381
- children: [
2382
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: effortLabel }),
2383
- selectedEffortOption && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground min-w-0 truncate", children: selectedEffortOption.label }),
2384
- /* @__PURE__ */ jsxRuntime.jsx(
2385
- lucideReact.ChevronRight,
2386
- {
2387
- "aria-hidden": "true",
2388
- className: "text-muted-foreground h-4 w-4 shrink-0 rtl:-scale-x-100"
2389
- }
2390
- )
2391
- ]
2392
- }
2393
- ) })
2394
- ] }),
2395
- view === "effort" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2396
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-border flex items-center gap-1 border-b p-2", children: /* @__PURE__ */ jsxRuntime.jsxs(
2397
- "button",
2398
- {
2399
- type: "button",
2400
- "data-slot": "composer-model-selector-effort-back",
2401
- "aria-label": backLabel,
2402
- onMouseDown: (event) => event.preventDefault(),
2403
- onClick: () => setView("models"),
2404
- className: chunkS5RVSXDV_cjs.cn(
2405
- "inline-flex h-6 shrink-0 items-center gap-1 rounded-full px-2 text-xs font-medium",
2406
- "text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",
2407
- "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none"
2408
- ),
2409
- children: [
2410
- /* @__PURE__ */ jsxRuntime.jsx(
2411
- lucideReact.ChevronLeft,
2412
- {
2413
- "aria-hidden": "true",
2414
- className: "h-3.5 w-3.5 rtl:-scale-x-100"
2415
- }
2416
- ),
2417
- effortLabel
2418
- ]
2419
- }
2420
- ) }),
2421
- effortHint && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground px-3 pt-2 text-xs", children: effortHint }),
2422
- /* @__PURE__ */ jsxRuntime.jsx(
2423
- "div",
2424
- {
2425
- ref: effortListRef,
2426
- id: menuId,
2427
- role: "listbox",
2428
- "aria-label": effortLabel,
2429
- "aria-activedescendant": activeEffortOptionId,
2430
- tabIndex: -1,
2431
- onKeyDown: handleEffortKeyDown,
2432
- className: "min-h-0 flex-1 overflow-y-auto p-1",
2433
- children: efforts.map((option, index) => {
2434
- const selected = option.value === effort;
2435
- const highlighted = index === effortHighlight;
2436
- return /* @__PURE__ */ jsxRuntime.jsxs(
2437
- "button",
2438
- {
2439
- id: getEffortOptionId(index),
2440
- type: "button",
2441
- role: "option",
2442
- "aria-selected": selected,
2443
- onMouseDown: (event) => event.preventDefault(),
2444
- onClick: () => selectEffort(option.value),
2445
- onMouseEnter: () => setEffortHighlight(index),
2446
- className: chunkS5RVSXDV_cjs.cn(
2447
- "flex w-full items-center gap-2 rounded-md px-3 py-2 text-start text-sm",
2448
- "focus-visible:ring-ring transition-colors focus-visible:ring-2 focus-visible:outline-none",
2449
- highlighted && "bg-muted",
2450
- selected && "bg-primary/10 text-primary"
2451
- ),
2452
- children: [
2453
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
2454
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate", children: option.label }),
2455
- option.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground block truncate text-xs", children: option.description })
2456
- ] }),
2457
- option.value === defaultEffort && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted text-muted-foreground shrink-0 rounded px-1.5 py-0.5 text-xs", children: defaultBadgeLabel }),
2458
- selected && /* @__PURE__ */ jsxRuntime.jsx(
2459
- lucideReact.Check,
2460
- {
2461
- "aria-hidden": "true",
2462
- className: "text-primary h-4 w-4 shrink-0"
2463
- }
2464
- )
2465
- ]
2466
- },
2467
- option.value
2468
- );
2469
- })
2470
- }
2471
- )
2472
- ] })
2473
- ]
2474
- }
2475
- ),
2476
- document.body
2477
- )
2478
- ] });
2479
- }
2480
- ComposerModelSelector.displayName = "ComposerModelSelector";
2481
2039
  var THINKING_OPTIONS = [
2482
2040
  {
2483
2041
  value: "never",
@@ -2598,20 +2156,17 @@ function OzwellChat({
2598
2156
  });
2599
2157
  setMessagesMenuOpen(false);
2600
2158
  };
2601
- const modelSelector = showModelSelector && models ? /* @__PURE__ */ jsxRuntime.jsx(
2602
- ComposerModelSelector,
2603
- {
2604
- models: models.options,
2605
- value: models.value,
2606
- onChange: models.onChange,
2607
- ...models.providerFilter !== void 0 ? {
2608
- providerFilter: models.providerFilter,
2609
- onProviderFilterChange: models.onProviderFilterChange
2610
- } : { onProviderFilterChange: models.onProviderFilterChange },
2611
- boundaryRef: shellRef,
2612
- className: "border-border bg-card text-foreground max-w-[min(142px,38vw)] shadow-sm"
2613
- }
2614
- ) : void 0;
2159
+ const modelSelectorProps = showModelSelector && models ? {
2160
+ models: models.options,
2161
+ value: models.value,
2162
+ onChange: models.onChange,
2163
+ ...models.providerFilter !== void 0 ? {
2164
+ providerFilter: models.providerFilter,
2165
+ onProviderFilterChange: models.onProviderFilterChange
2166
+ } : { onProviderFilterChange: models.onProviderFilterChange },
2167
+ boundaryRef: shellRef,
2168
+ className: "max-w-[min(160px,44vw)]"
2169
+ } : void 0;
2615
2170
  const startQueuedMessageEdit = () => {
2616
2171
  setQueuedMessageDraft(queuedMessage ?? "");
2617
2172
  setIsEditingQueuedMessage(true);
@@ -2712,7 +2267,7 @@ function OzwellChat({
2712
2267
  children: [
2713
2268
  (thinking?.enabled || showMessagesNav) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-border bg-card text-foreground flex items-center justify-between gap-2 border-b px-2.5 py-[7px] text-xs font-semibold", children: [
2714
2269
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 items-center gap-1.5", children: thinking?.enabled && /* @__PURE__ */ jsxRuntime.jsx(
2715
- chunk4SM3I7WE_cjs.Dropdown,
2270
+ chunkRXPEZXAB_cjs.Dropdown,
2716
2271
  {
2717
2272
  open: thinkingMenuOpen,
2718
2273
  onOpenChange: setThinkingMenuOpen,
@@ -2733,8 +2288,8 @@ function OzwellChat({
2733
2288
  ]
2734
2289
  }
2735
2290
  ),
2736
- children: /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownContent, { className: "p-1.5", children: THINKING_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
2737
- chunk4SM3I7WE_cjs.DropdownItem,
2291
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownContent, { className: "p-1.5", children: THINKING_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
2292
+ chunkRXPEZXAB_cjs.DropdownItem,
2738
2293
  {
2739
2294
  searchText: `${option.label} ${option.description}`,
2740
2295
  onClick: () => {
@@ -2774,7 +2329,7 @@ function OzwellChat({
2774
2329
  }
2775
2330
  ) }),
2776
2331
  showMessagesNav && /* @__PURE__ */ jsxRuntime.jsx(
2777
- chunk4SM3I7WE_cjs.Dropdown,
2332
+ chunkRXPEZXAB_cjs.Dropdown,
2778
2333
  {
2779
2334
  open: messagesMenuOpen,
2780
2335
  onOpenChange: setMessagesMenuOpen,
@@ -2794,8 +2349,8 @@ function OzwellChat({
2794
2349
  children: "Messages"
2795
2350
  }
2796
2351
  ),
2797
- children: /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownContent, { className: "max-h-60 overflow-y-auto p-1.5", children: userMessageItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
2798
- chunk4SM3I7WE_cjs.DropdownItem,
2352
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownContent, { className: "max-h-60 overflow-y-auto p-1.5", children: userMessageItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
2353
+ chunkRXPEZXAB_cjs.DropdownItem,
2799
2354
  {
2800
2355
  searchText: item.text,
2801
2356
  onClick: () => scrollToMessage(item.chatIndex),
@@ -2825,7 +2380,6 @@ function OzwellChat({
2825
2380
  {
2826
2381
  messages: chatMessages,
2827
2382
  isGenerating,
2828
- className: showModelSelector ? '[&_[data-slot="composer-input"]]:pe-[min(160px,44vw)]' : void 0,
2829
2383
  showHeader: false,
2830
2384
  height: "100%",
2831
2385
  variant: "embedded",
@@ -2835,9 +2389,9 @@ function OzwellChat({
2835
2389
  renderTextContent: renderMessageTextContent,
2836
2390
  renderMessageFooter: renderQueuedMessageFooter,
2837
2391
  composerProps: {
2838
- inputTrailing: modelSelector,
2839
2392
  disabled: false,
2840
- isSending: false
2393
+ isSending: false,
2394
+ ...modelSelectorProps ? { showModelSelector: true, modelSelectorProps } : {}
2841
2395
  }
2842
2396
  }
2843
2397
  ),
@@ -3309,7 +2863,7 @@ function OzwellSettingsMenu({
3309
2863
  fn?.();
3310
2864
  };
3311
2865
  return /* @__PURE__ */ jsxRuntime.jsxs(
3312
- chunk4SM3I7WE_cjs.Dropdown,
2866
+ chunkRXPEZXAB_cjs.Dropdown,
3313
2867
  {
3314
2868
  trigger,
3315
2869
  open,
@@ -3326,8 +2880,8 @@ function OzwellSettingsMenu({
3326
2880
  onScroll: updateHasMore,
3327
2881
  className: "max-h-[392px] overflow-x-hidden overflow-y-auto",
3328
2882
  children: [
3329
- /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownHeader, { title: "\u2699 Ozwell settings" }),
3330
- onManageVoices && /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownItem, { onClick: act(onManageVoices), children: /* @__PURE__ */ jsxRuntime.jsx(
2883
+ /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownHeader, { title: "\u2699 Ozwell settings" }),
2884
+ onManageVoices && /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownItem, { onClick: act(onManageVoices), children: /* @__PURE__ */ jsxRuntime.jsx(
3331
2885
  ItemLabel,
3332
2886
  {
3333
2887
  label: "Your voice",
@@ -3536,7 +3090,7 @@ function useWakeWord(opts = {}) {
3536
3090
  try {
3537
3091
  await ensureOrt();
3538
3092
  if (cancelled) return;
3539
- const { HeyBuddy } = await import('./hey-buddy-CLUVAY2X.cjs');
3093
+ const { HeyBuddy } = await import('./hey-buddy-INNUFFJJ.cjs');
3540
3094
  if (cancelled) return;
3541
3095
  const ASSET = resolveAssetBase(assetBase);
3542
3096
  const hb = new HeyBuddy({
@@ -6146,7 +5700,7 @@ function VoiceManager({ logoSrc }) {
6146
5700
  ] }),
6147
5701
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-[26px] text-[12.5px]", children: "Voiceprints stay on your device \u2014 they\u2019re never uploaded." }),
6148
5702
  confirm && /* @__PURE__ */ jsxRuntime.jsx(
6149
- chunkYJP6DUFO_cjs.AlertDialog,
5703
+ chunkPKD3JLS2_cjs.AlertDialog,
6150
5704
  {
6151
5705
  open: true,
6152
5706
  onOpenChange: (o) => {
@@ -6224,9 +5778,9 @@ function HandsFreeChat({
6224
5778
  // Controlled input (value/onValueChange) comes from the hook — it fills the box with the live
6225
5779
  // caption while dictating, else the typed text. We only add the mic button here.
6226
5780
  ...oz.chatProps.composerProps,
6227
- // The composer's OWN mic button, driven by our shared stream (controlled mode disables its
5781
+ // The composer's OWN mic slot, driven by our shared stream (controlled mode disables its
6228
5782
  // internal recorder). So the built-in mic and "hey ozwell" both do the same thing — one mic.
6229
- inputTrailing: /* @__PURE__ */ jsxRuntime.jsx(
5783
+ micSlot: /* @__PURE__ */ jsxRuntime.jsx(
6230
5784
  "span",
6231
5785
  {
6232
5786
  onClickCapture: () => {
@@ -6251,12 +5805,12 @@ function HandsFreeChat({
6251
5805
  }
6252
5806
  )
6253
5807
  ] }),
6254
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open: voicesOpen, onOpenChange: setVoicesOpen, size: "lg", children: [
6255
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
6256
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Your voice" }),
6257
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
5808
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open: voicesOpen, onOpenChange: setVoicesOpen, size: "lg", children: [
5809
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
5810
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Your voice" }),
5811
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
6258
5812
  ] }),
6259
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsx(VoiceManager, { logoSrc }) })
5813
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsx(VoiceManager, { logoSrc }) })
6260
5814
  ] })
6261
5815
  ] });
6262
5816
  }
@@ -7356,12 +6910,12 @@ function AIReconciliationPanel({
7356
6910
  'AIReconciliationPanel: `onOpenChange` is required when `variant="modal"`.'
7357
6911
  );
7358
6912
  }
7359
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open: Boolean(open), onOpenChange, size: "2xl", children: [
7360
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
7361
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: title }),
7362
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
6913
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open: Boolean(open), onOpenChange, size: "2xl", children: [
6914
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
6915
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: title }),
6916
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
7363
6917
  ] }),
7364
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { className: "px-0 py-0", children: /* @__PURE__ */ jsxRuntime.jsxs(
6918
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { className: "px-0 py-0", children: /* @__PURE__ */ jsxRuntime.jsxs(
7365
6919
  "div",
7366
6920
  {
7367
6921
  ref: containerRef,
@@ -7382,7 +6936,7 @@ function AIReconciliationPanel({
7382
6936
  ]
7383
6937
  }
7384
6938
  ) }),
7385
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalFooter, { children: effective.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { onClick: () => onOpenChange(false), children: "Close" }) : footerButtons })
6939
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalFooter, { children: effective.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { onClick: () => onOpenChange(false), children: "Close" }) : footerButtons })
7386
6940
  ] });
7387
6941
  }
7388
6942
  if (effective.length === 0) return null;
@@ -8008,8 +7562,8 @@ function ConcernRow({
8008
7562
  ]
8009
7563
  }
8010
7564
  ),
8011
- !readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunk6XDPJWSC_cjs.RowActionToolbar, { label: `Actions for ${current.text}`, align: "top", children: visibleActions.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
8012
- chunk6XDPJWSC_cjs.RowIconButton,
7565
+ !readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkE3KC2XLN_cjs.RowActionToolbar, { label: `Actions for ${current.text}`, align: "top", children: visibleActions.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
7566
+ chunkE3KC2XLN_cjs.RowIconButton,
8013
7567
  {
8014
7568
  label: ACTION_META[action].label,
8015
7569
  icon: ACTION_META[action].icon,
@@ -8378,11 +7932,11 @@ function OrderRow({
8378
7932
  "aria-label": `Edit order ${order.display}`,
8379
7933
  className: "flex flex-1 flex-wrap items-center gap-1.5",
8380
7934
  children: [
8381
- /* @__PURE__ */ jsxRuntime.jsx(
8382
- "input",
7935
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
7936
+ chunkZ5S5JEJD_cjs.Input,
8383
7937
  {
8384
- type: "text",
8385
7938
  autoFocus: true,
7939
+ size: "sm",
8386
7940
  value: editing.display,
8387
7941
  onChange: (e) => setEditing(
8388
7942
  (prev) => prev ? { ...prev, display: e.target.value } : prev
@@ -8392,17 +7946,13 @@ function OrderRow({
8392
7946
  else if (e.key === "Escape") setEditing(null);
8393
7947
  },
8394
7948
  "aria-label": "Order description",
8395
- className: chunkS5RVSXDV_cjs.cn(
8396
- "border-border bg-background text-foreground",
8397
- "h-7 min-w-40 flex-1 rounded-md border px-2 text-sm",
8398
- "focus:ring-ring focus:ring-2 focus:outline-none"
8399
- )
7949
+ className: "h-7"
8400
7950
  }
8401
- ),
8402
- /* @__PURE__ */ jsxRuntime.jsx(
8403
- "input",
7951
+ ) }),
7952
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-40", children: /* @__PURE__ */ jsxRuntime.jsx(
7953
+ chunkZ5S5JEJD_cjs.Input,
8404
7954
  {
8405
- type: "text",
7955
+ size: "sm",
8406
7956
  value: editing.detail,
8407
7957
  onChange: (e) => setEditing(
8408
7958
  (prev) => prev ? { ...prev, detail: e.target.value } : prev
@@ -8413,13 +7963,9 @@ function OrderRow({
8413
7963
  },
8414
7964
  placeholder: "detail (sig, timing\u2026)",
8415
7965
  "aria-label": "Order detail",
8416
- className: chunkS5RVSXDV_cjs.cn(
8417
- "border-border bg-background text-foreground placeholder:text-muted-foreground",
8418
- "h-7 w-40 rounded-md border px-2 text-xs",
8419
- "focus:ring-ring focus:ring-2 focus:outline-none"
8420
- )
7966
+ className: "h-7 text-xs"
8421
7967
  }
8422
- ),
7968
+ ) }),
8423
7969
  /* @__PURE__ */ jsxRuntime.jsx(
8424
7970
  chunkIINZWUGK_cjs.Button,
8425
7971
  {
@@ -8446,13 +7992,13 @@ function OrderRow({
8446
7992
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8447
7993
  /* @__PURE__ */ jsxRuntime.jsx(OrderContent, { order }),
8448
7994
  interactive && /* @__PURE__ */ jsxRuntime.jsxs(
8449
- chunk6XDPJWSC_cjs.RowActionToolbar,
7995
+ chunkE3KC2XLN_cjs.RowActionToolbar,
8450
7996
  {
8451
7997
  label: `Actions for ${order.display}`,
8452
7998
  group: "order",
8453
7999
  children: [
8454
8000
  canEdit && /* @__PURE__ */ jsxRuntime.jsx(
8455
- chunk6XDPJWSC_cjs.RowIconButton,
8001
+ chunkE3KC2XLN_cjs.RowIconButton,
8456
8002
  {
8457
8003
  label: "Edit",
8458
8004
  icon: chunkL7L5S2HO_cjs.Pencil,
@@ -8463,7 +8009,7 @@ function OrderRow({
8463
8009
  (controls?.moveWithin || controls?.moveToProblem && controls.targets.some(
8464
8010
  (t) => t.concernId !== order.concernId
8465
8011
  )) && /* @__PURE__ */ jsxRuntime.jsxs(
8466
- chunk4SM3I7WE_cjs.Dropdown,
8012
+ chunkRXPEZXAB_cjs.Dropdown,
8467
8013
  {
8468
8014
  open: menuOpen,
8469
8015
  onOpenChange: setMenuOpen,
@@ -8481,7 +8027,7 @@ function OrderRow({
8481
8027
  children: [
8482
8028
  controls?.moveWithin && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8483
8029
  /* @__PURE__ */ jsxRuntime.jsx(
8484
- chunk4SM3I7WE_cjs.DropdownItem,
8030
+ chunkRXPEZXAB_cjs.DropdownItem,
8485
8031
  {
8486
8032
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.ChevronUp, { size: 14 }),
8487
8033
  onClick: pick(() => controls.moveWithin?.(order, -1)),
@@ -8489,7 +8035,7 @@ function OrderRow({
8489
8035
  }
8490
8036
  ),
8491
8037
  /* @__PURE__ */ jsxRuntime.jsx(
8492
- chunk4SM3I7WE_cjs.DropdownItem,
8038
+ chunkRXPEZXAB_cjs.DropdownItem,
8493
8039
  {
8494
8040
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.ChevronDown, { size: 14 }),
8495
8041
  onClick: pick(() => controls.moveWithin?.(order, 1)),
@@ -8500,9 +8046,9 @@ function OrderRow({
8500
8046
  controls?.moveToProblem && controls.targets.some(
8501
8047
  (t) => t.concernId !== order.concernId
8502
8048
  ) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8503
- controls.moveWithin && /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownSeparator, {}),
8049
+ controls.moveWithin && /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownSeparator, {}),
8504
8050
  controls.targets.filter((t) => t.concernId !== order.concernId).map((t) => /* @__PURE__ */ jsxRuntime.jsxs(
8505
- chunk4SM3I7WE_cjs.DropdownItem,
8051
+ chunkRXPEZXAB_cjs.DropdownItem,
8506
8052
  {
8507
8053
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Link, { size: 14 }),
8508
8054
  onClick: pick(
@@ -8520,7 +8066,7 @@ function OrderRow({
8520
8066
  }
8521
8067
  ),
8522
8068
  controls?.remove && /* @__PURE__ */ jsxRuntime.jsx(
8523
- chunk6XDPJWSC_cjs.RowIconButton,
8069
+ chunkE3KC2XLN_cjs.RowIconButton,
8524
8070
  {
8525
8071
  label: "Remove",
8526
8072
  icon: chunkL7L5S2HO_cjs.Trash2,
@@ -8538,6 +8084,7 @@ function OrderRow({
8538
8084
  );
8539
8085
  }
8540
8086
  function AddOrderForm({
8087
+ id,
8541
8088
  problemText,
8542
8089
  onSubmit,
8543
8090
  onCancel,
@@ -8572,6 +8119,7 @@ function AddOrderForm({
8572
8119
  return /* @__PURE__ */ jsxRuntime.jsxs(
8573
8120
  "div",
8574
8121
  {
8122
+ id,
8575
8123
  role: "form",
8576
8124
  "aria-label": `Add order for ${problemText}`,
8577
8125
  className: "border-border bg-muted/40 ms-2.5 mt-1.5 flex flex-wrap items-center gap-1.5 rounded-md border border-dashed p-2",
@@ -8610,12 +8158,11 @@ function AddOrderForm({
8610
8158
  });
8611
8159
  }
8612
8160
  }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8613
- /* @__PURE__ */ jsxRuntime.jsx(
8614
- "input",
8161
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-48 flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
8162
+ chunkZ5S5JEJD_cjs.Input,
8615
8163
  {
8616
8164
  ref: inputRef,
8617
- type: "text",
8618
- "data-slot": "input",
8165
+ size: "sm",
8619
8166
  value: display,
8620
8167
  onChange: (e) => setDisplay(e.target.value),
8621
8168
  onKeyDown: (e) => {
@@ -8623,14 +8170,9 @@ function AddOrderForm({
8623
8170
  else if (e.key === "Escape") onCancel();
8624
8171
  },
8625
8172
  placeholder: "e.g. lisinopril 10 mg tablet \u2014 1 po daily",
8626
- "aria-label": "Order description",
8627
- className: chunkS5RVSXDV_cjs.cn(
8628
- "border-border bg-background text-foreground placeholder:text-muted-foreground",
8629
- "h-8 min-w-48 flex-1 rounded-md border px-2.5 text-sm",
8630
- "focus:ring-ring focus:ring-2 focus:outline-none"
8631
- )
8173
+ "aria-label": "Order description"
8632
8174
  }
8633
- ),
8175
+ ) }),
8634
8176
  /* @__PURE__ */ jsxRuntime.jsx(
8635
8177
  chunkIINZWUGK_cjs.Button,
8636
8178
  {
@@ -8667,6 +8209,7 @@ var Assessment = React13__namespace.forwardRef(
8667
8209
  showPlan = true,
8668
8210
  onShowPlanChange,
8669
8211
  onAction,
8212
+ onRemoveAssessment,
8670
8213
  onAddOrder,
8671
8214
  onAddAssessment,
8672
8215
  onLinkOrder,
@@ -8683,6 +8226,7 @@ var Assessment = React13__namespace.forwardRef(
8683
8226
  "data-testid": dataTestId,
8684
8227
  ...props
8685
8228
  }, ref) => {
8229
+ const instanceId = React13__namespace.useId();
8686
8230
  const [addingFor, setAddingFor] = React13__namespace.useState(null);
8687
8231
  const [addMode, setAddMode] = React13__namespace.useState(
8688
8232
  defaultAddMode
@@ -8691,7 +8235,7 @@ var Assessment = React13__namespace.forwardRef(
8691
8235
  null
8692
8236
  );
8693
8237
  const [announcement, setAnnouncement] = chunkYVPC65ZJ_cjs.useLiveAnnouncement();
8694
- const ambientCodeLookup = chunk6XDPJWSC_cjs.useCodeLookupConfig();
8238
+ const ambientCodeLookup = chunkE3KC2XLN_cjs.useCodeLookupConfig();
8695
8239
  const effectiveRenderOrderSearch = renderOrderSearch === false ? void 0 : renderOrderSearch ?? (ambientCodeLookup ? contextOrderSearch(ambientCodeLookup) : void 0);
8696
8240
  const concernById = React13__namespace.useMemo(
8697
8241
  () => new Map(concerns.map((c) => [c.concernId, c])),
@@ -8883,18 +8427,15 @@ var Assessment = React13__namespace.forwardRef(
8883
8427
  children: [
8884
8428
  title !== null && /* @__PURE__ */ jsxRuntime.jsxs(chunkMJWFNV3L_cjs.CardHeader, { className: "border-border bg-muted/50 flex flex-row items-center justify-between border-b px-4 py-3", children: [
8885
8429
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-sm font-semibold tracking-wide uppercase", children: title }),
8886
- onShowPlanChange && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "text-muted-foreground flex items-center gap-1.5 text-xs font-medium", children: [
8887
- /* @__PURE__ */ jsxRuntime.jsx(
8888
- "input",
8889
- {
8890
- type: "checkbox",
8891
- checked: showPlan,
8892
- onChange: (e) => onShowPlanChange(e.target.checked),
8893
- className: "accent-primary-600 h-3.5 w-3.5"
8894
- }
8895
- ),
8896
- "Show plan"
8897
- ] })
8430
+ onShowPlanChange && /* @__PURE__ */ jsxRuntime.jsx(
8431
+ chunk7AECNMYV_cjs.Checkbox,
8432
+ {
8433
+ size: "sm",
8434
+ checked: showPlan,
8435
+ onChange: (e) => onShowPlanChange(e.target.checked),
8436
+ label: "Show plan"
8437
+ }
8438
+ )
8898
8439
  ] }),
8899
8440
  /* @__PURE__ */ jsxRuntime.jsxs(chunkMJWFNV3L_cjs.CardContent, { className: "space-y-4 px-4 py-4", children: [
8900
8441
  items.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: "No problems assessed this visit." }),
@@ -8906,6 +8447,7 @@ var Assessment = React13__namespace.forwardRef(
8906
8447
  );
8907
8448
  const bp = blockProps(item.concernId);
8908
8449
  const formOpen = addingFor === item.concernId;
8450
+ const addOrderFormId = `${instanceId}-add-order-${item.concernId}`;
8909
8451
  return /* @__PURE__ */ jsxRuntime.jsxs(
8910
8452
  "li",
8911
8453
  {
@@ -8946,36 +8488,62 @@ var Assessment = React13__namespace.forwardRef(
8946
8488
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground font-medium", children: assertion.text }),
8947
8489
  assertion.verificationStatus !== "confirmed" && /* @__PURE__ */ jsxRuntime.jsx(chunkYVL3XATO_cjs.Badge, { variant: "warning", size: "sm", children: assertion.verificationStatus }),
8948
8490
  /* @__PURE__ */ jsxRuntime.jsx(CodingChips, { coding: assertion.coding }),
8949
- !readOnly && /* @__PURE__ */ jsxRuntime.jsx(
8950
- chunk6XDPJWSC_cjs.RowActionToolbar,
8491
+ !readOnly && (onAction || onAddOrder || onRemoveAssessment) && /* @__PURE__ */ jsxRuntime.jsxs(
8492
+ chunkE3KC2XLN_cjs.RowActionToolbar,
8951
8493
  {
8952
8494
  label: `Actions for ${assertion.text}`,
8953
8495
  align: "top",
8954
- children: Object.keys(ACTION_META2).map(
8955
- (action) => {
8956
- const meta = ACTION_META2[action];
8957
- if (action === "add-order" && !onAddOrder && !onAction)
8958
- return null;
8959
- return /* @__PURE__ */ jsxRuntime.jsx(
8960
- chunk6XDPJWSC_cjs.RowIconButton,
8961
- {
8962
- label: meta.label,
8963
- icon: meta.icon,
8964
- size: "sm",
8965
- onClick: () => {
8966
- if (action === "add-order" && onAddOrder) {
8967
- setAddingFor(
8968
- (prev) => prev === item.concernId ? null : item.concernId
8969
- );
8970
- } else {
8971
- onAction?.(item, action);
8496
+ className: chunkS5RVSXDV_cjs.cn(
8497
+ "pointer-fine:group-has-[[data-order-id]:hover]:pointer-events-none",
8498
+ "pointer-fine:group-has-[[data-order-id]:hover]:opacity-0",
8499
+ "pointer-fine:group-has-[[data-order-id]:focus-within]:pointer-events-none",
8500
+ "pointer-fine:group-has-[[data-order-id]:focus-within]:opacity-0"
8501
+ ),
8502
+ children: [
8503
+ Object.keys(ACTION_META2).map(
8504
+ (action) => {
8505
+ const meta = ACTION_META2[action];
8506
+ if (action !== "add-order" && !onAction)
8507
+ return null;
8508
+ if (action === "add-order" && !onAddOrder && !onAction)
8509
+ return null;
8510
+ return /* @__PURE__ */ jsxRuntime.jsx(
8511
+ chunkE3KC2XLN_cjs.RowIconButton,
8512
+ {
8513
+ label: meta.label,
8514
+ icon: meta.icon,
8515
+ size: "sm",
8516
+ expanded: action === "add-order" && onAddOrder ? addingFor === item.concernId : void 0,
8517
+ controls: action === "add-order" && onAddOrder ? addOrderFormId : void 0,
8518
+ onClick: () => {
8519
+ if (action === "add-order" && onAddOrder) {
8520
+ setAddingFor(
8521
+ (prev) => prev === item.concernId ? null : item.concernId
8522
+ );
8523
+ } else {
8524
+ onAction?.(item, action);
8525
+ }
8972
8526
  }
8973
- }
8974
- },
8975
- action
8976
- );
8977
- }
8978
- )
8527
+ },
8528
+ action
8529
+ );
8530
+ }
8531
+ ),
8532
+ onRemoveAssessment && /* @__PURE__ */ jsxRuntime.jsx(
8533
+ chunkE3KC2XLN_cjs.RowIconButton,
8534
+ {
8535
+ label: `Remove ${assertion.text} from assessment`,
8536
+ icon: chunkL7L5S2HO_cjs.Trash2,
8537
+ size: "sm",
8538
+ onClick: () => {
8539
+ onRemoveAssessment(item);
8540
+ setAnnouncement(
8541
+ `${assertion.text} removed from assessment`
8542
+ );
8543
+ }
8544
+ }
8545
+ )
8546
+ ]
8979
8547
  }
8980
8548
  )
8981
8549
  ]
@@ -9001,8 +8569,15 @@ var Assessment = React13__namespace.forwardRef(
9001
8569
  !readOnly && onAddOrder && addingFor === item.concernId && /* @__PURE__ */ jsxRuntime.jsx(
9002
8570
  AddOrderForm,
9003
8571
  {
8572
+ id: addOrderFormId,
9004
8573
  problemText: assertion.text,
9005
- onSubmit: (order) => onAddOrder(item, order),
8574
+ onSubmit: (order) => {
8575
+ onAddOrder(item, order);
8576
+ setAnnouncement(
8577
+ `${order.display} added to ${assertion.text}`
8578
+ );
8579
+ setAddingFor(null);
8580
+ },
9006
8581
  onCancel: () => setAddingFor(null),
9007
8582
  renderSearch: effectiveRenderOrderSearch
9008
8583
  }
@@ -11714,7 +11289,7 @@ function BusinessHoursDaysEditor({
11714
11289
  ),
11715
11290
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
11716
11291
  hours.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
11717
- chunk4SM3I7WE_cjs.Dropdown,
11292
+ chunkRXPEZXAB_cjs.Dropdown,
11718
11293
  {
11719
11294
  placement: "bottom-end",
11720
11295
  trigger: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -11733,7 +11308,7 @@ function BusinessHoursDaysEditor({
11733
11308
  ),
11734
11309
  children: [
11735
11310
  /* @__PURE__ */ jsxRuntime.jsx(
11736
- chunk4SM3I7WE_cjs.DropdownItem,
11311
+ chunkRXPEZXAB_cjs.DropdownItem,
11737
11312
  {
11738
11313
  onClick: () => handleCopyToAll(dayIndex),
11739
11314
  disabled,
@@ -11741,7 +11316,7 @@ function BusinessHoursDaysEditor({
11741
11316
  }
11742
11317
  ),
11743
11318
  /* @__PURE__ */ jsxRuntime.jsx(
11744
- chunk4SM3I7WE_cjs.DropdownItem,
11319
+ chunkRXPEZXAB_cjs.DropdownItem,
11745
11320
  {
11746
11321
  onClick: () => handleCopyToWeekdays(dayIndex),
11747
11322
  disabled,
@@ -12478,599 +12053,6 @@ var CaseManagementHeader = React13__namespace.forwardRef(
12478
12053
  }
12479
12054
  );
12480
12055
  CaseManagementHeader.displayName = "CaseManagementHeader";
12481
- var iconButtonClasses = chunkS5RVSXDV_cjs.cn(
12482
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-lg",
12483
- "text-neutral-500 dark:text-neutral-400",
12484
- "transition-colors duration-150",
12485
- "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-700 dark:hover:text-white",
12486
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
12487
- "disabled:pointer-events-none disabled:opacity-40"
12488
- );
12489
- var selectorTriggerClasses = chunkS5RVSXDV_cjs.cn(
12490
- "flex min-w-0 items-center gap-1 rounded-md px-2 py-1 text-xs",
12491
- "text-neutral-600 dark:text-neutral-400",
12492
- "transition-colors duration-150",
12493
- "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-700 dark:hover:text-white",
12494
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
12495
- "disabled:pointer-events-none disabled:opacity-40"
12496
- );
12497
- var MAX_INPUT_HEIGHT = 160;
12498
- var ChatComposer = React13__namespace.forwardRef(function ChatComposer2({
12499
- onSend,
12500
- value: controlledValue,
12501
- onValueChange,
12502
- placeholder = "Type a message\u2026",
12503
- disabled = false,
12504
- isSending = false,
12505
- autoFocus = false,
12506
- maxLength,
12507
- showCharacterCount = false,
12508
- canSendWhenEmpty = false,
12509
- maxHeight = MAX_INPUT_HEIGHT,
12510
- textareaProps,
12511
- addMenuItems,
12512
- allowAttachments = true,
12513
- acceptedFileTypes,
12514
- maxFileSize,
12515
- maxAttachments = 10,
12516
- mentionOptions,
12517
- showMic = false,
12518
- onMicClick,
12519
- micSlot,
12520
- micBehavior = "always",
12521
- isStreaming = false,
12522
- onStop,
12523
- showAgentSelector = false,
12524
- agents = [],
12525
- selectedAgent = null,
12526
- onAgentChange,
12527
- showModelSelector = false,
12528
- modelSelectorProps,
12529
- readOnly = false,
12530
- readOnlyMessage = "You have read-only access and cannot send messages.",
12531
- onError,
12532
- attachmentLimitLabel,
12533
- sendFailedLabel = "Failed to send message",
12534
- sendingLabel = "Sending message\u2026",
12535
- inputLabel = "Message input",
12536
- addMenuLabel = "Add to message",
12537
- attachFilesLabel = "Attach files",
12538
- micLabel = "Start voice input",
12539
- sendLabel = "Send message",
12540
- stopLabel = "Stop generating",
12541
- agentSelectorLabel = "Select agent",
12542
- mentionListLabel = "Mention",
12543
- dropFilesLabel = "Drop files here",
12544
- className
12545
- }, ref) {
12546
- const [internalValue, setInternalValue] = React13__namespace.useState("");
12547
- const isControlled = controlledValue !== void 0;
12548
- const value = isControlled ? controlledValue : internalValue;
12549
- const [attachments, setAttachments] = React13__namespace.useState([]);
12550
- const attachmentsRef = React13__namespace.useRef(attachments);
12551
- attachmentsRef.current = attachments;
12552
- const textareaRef = React13__namespace.useRef(null);
12553
- const fileInputRef = React13__namespace.useRef(null);
12554
- const [addMenuOpen, setAddMenuOpen] = React13__namespace.useState(false);
12555
- const [agentMenuOpen, setAgentMenuOpen] = React13__namespace.useState(false);
12556
- const hasText = value.trim().length > 0;
12557
- const hasContent = hasText || attachments.length > 0;
12558
- const isOverLimit = maxLength !== void 0 && value.length > maxLength;
12559
- const canSend = (hasContent || canSendWhenEmpty) && onSend !== void 0 && !disabled && !isSending && !isStreaming && !isOverLimit;
12560
- const setValue = React13__namespace.useCallback(
12561
- (next) => {
12562
- if (!isControlled) setInternalValue(next);
12563
- onValueChange?.(next);
12564
- },
12565
- [isControlled, onValueChange]
12566
- );
12567
- const mention = chunk5BVFVXHN_cjs.useMentionAutocomplete({
12568
- options: mentionOptions,
12569
- value,
12570
- setValue,
12571
- textareaRef
12572
- });
12573
- const resizeTextarea = React13__namespace.useCallback(() => {
12574
- const textarea = textareaRef.current;
12575
- if (!textarea) return;
12576
- textarea.style.height = "auto";
12577
- if (textarea.scrollHeight === 0) return;
12578
- textarea.style.height = `${textarea.scrollHeight}px`;
12579
- }, []);
12580
- React13__namespace.useLayoutEffect(resizeTextarea, [resizeTextarea, value]);
12581
- React13__namespace.useEffect(() => {
12582
- const textarea = textareaRef.current;
12583
- if (!textarea || typeof ResizeObserver === "undefined") return;
12584
- let frame = 0;
12585
- const observer = new ResizeObserver(() => {
12586
- cancelAnimationFrame(frame);
12587
- frame = requestAnimationFrame(resizeTextarea);
12588
- });
12589
- observer.observe(textarea);
12590
- return () => {
12591
- cancelAnimationFrame(frame);
12592
- observer.disconnect();
12593
- };
12594
- }, [resizeTextarea]);
12595
- const addFiles = React13__namespace.useCallback(
12596
- (files) => {
12597
- if (!allowAttachments || files.length === 0) return;
12598
- const limitMessage = attachmentLimitLabel ?? `Attachment limit reached (max ${maxAttachments})`;
12599
- const room = maxAttachments - attachmentsRef.current.length;
12600
- if (files.length > room) {
12601
- onError?.(limitMessage, { reason: "attachment-limit" });
12602
- if (room <= 0) return;
12603
- }
12604
- const staged = [];
12605
- for (const file of files.slice(0, Math.max(room, 0))) {
12606
- const typeCheck = chunk5BVFVXHN_cjs.validateFile(file, acceptedFileTypes, void 0);
12607
- if (!typeCheck.valid) {
12608
- onError?.(`${file.name}: ${typeCheck.error}`, {
12609
- reason: "file-type",
12610
- file
12611
- });
12612
- continue;
12613
- }
12614
- const sizeCheck = chunk5BVFVXHN_cjs.validateFile(file, void 0, maxFileSize);
12615
- if (!sizeCheck.valid) {
12616
- onError?.(`${file.name}: ${sizeCheck.error}`, {
12617
- reason: "file-size",
12618
- file
12619
- });
12620
- continue;
12621
- }
12622
- const type = chunk5BVFVXHN_cjs.getFileType(file.type);
12623
- staged.push({
12624
- id: chunk5BVFVXHN_cjs.generateAttachmentId(),
12625
- file,
12626
- type,
12627
- previewUrl: type === "image" || type === "video" ? URL.createObjectURL(file) : void 0
12628
- });
12629
- }
12630
- if (staged.length > 0) {
12631
- attachmentsRef.current = [...attachmentsRef.current, ...staged];
12632
- setAttachments((current) => [...current, ...staged]);
12633
- }
12634
- },
12635
- [
12636
- allowAttachments,
12637
- maxAttachments,
12638
- acceptedFileTypes,
12639
- maxFileSize,
12640
- onError,
12641
- attachmentLimitLabel
12642
- ]
12643
- );
12644
- const removeAttachment = React13__namespace.useCallback((id) => {
12645
- const target = attachmentsRef.current.find(
12646
- (attachment) => attachment.id === id
12647
- );
12648
- if (target?.previewUrl) URL.revokeObjectURL(target.previewUrl);
12649
- attachmentsRef.current = attachmentsRef.current.filter(
12650
- (attachment) => attachment.id !== id
12651
- );
12652
- setAttachments(
12653
- (current) => current.filter((attachment) => attachment.id !== id)
12654
- );
12655
- }, []);
12656
- React13__namespace.useEffect(() => {
12657
- return () => {
12658
- for (const attachment of attachmentsRef.current) {
12659
- if (attachment.previewUrl) URL.revokeObjectURL(attachment.previewUrl);
12660
- }
12661
- };
12662
- }, []);
12663
- const handleFileInputChange = (event) => {
12664
- const files = Array.from(event.target.files ?? []);
12665
- addFiles(files);
12666
- event.target.value = "";
12667
- };
12668
- const handlePaste = (event) => {
12669
- if (!allowAttachments) return;
12670
- const files = Array.from(event.clipboardData.files);
12671
- if (files.length > 0) {
12672
- event.preventDefault();
12673
- addFiles(files);
12674
- }
12675
- };
12676
- React13__namespace.useImperativeHandle(
12677
- ref,
12678
- () => ({
12679
- addFiles,
12680
- focus: () => textareaRef.current?.focus(),
12681
- getTextarea: () => textareaRef.current
12682
- }),
12683
- [addFiles]
12684
- );
12685
- const handleSend = () => {
12686
- if (!canSend || !onSend) return;
12687
- const message = {
12688
- content: value.trim(),
12689
- attachments: attachments.map((attachment) => attachment.file)
12690
- };
12691
- for (const attachment of attachments) {
12692
- if (attachment.previewUrl) URL.revokeObjectURL(attachment.previewUrl);
12693
- }
12694
- attachmentsRef.current = [];
12695
- setAttachments([]);
12696
- setValue("");
12697
- try {
12698
- Promise.resolve(onSend(message)).catch(() => {
12699
- onError?.(sendFailedLabel, { reason: "send-failed" });
12700
- });
12701
- } catch {
12702
- onError?.(sendFailedLabel, { reason: "send-failed" });
12703
- }
12704
- textareaRef.current?.focus();
12705
- };
12706
- const handleKeyDown = (event) => {
12707
- if (mention.handleKeyDown(event)) return;
12708
- if (event.key === "Enter" && !event.shiftKey) {
12709
- event.preventDefault();
12710
- handleSend();
12711
- }
12712
- };
12713
- if (readOnly) {
12714
- return /* @__PURE__ */ jsxRuntime.jsxs(
12715
- "div",
12716
- {
12717
- "data-slot": "chat-composer",
12718
- role: "status",
12719
- className: chunkS5RVSXDV_cjs.cn(
12720
- "flex items-center gap-2 rounded-xl border px-4 py-3 text-sm",
12721
- "border-amber-300 bg-amber-50 text-amber-900",
12722
- "dark:border-amber-700 dark:bg-amber-950 dark:text-amber-200",
12723
- className
12724
- ),
12725
- children: [
12726
- /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.AlertTriangle, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
12727
- /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "chat-composer-readonly", children: readOnlyMessage })
12728
- ]
12729
- }
12730
- );
12731
- }
12732
- const showAddMenu = allowAttachments || addMenuItems && addMenuItems.length > 0;
12733
- const micVisible = (showMic || onMicClick !== void 0 || micSlot !== void 0) && (micBehavior === "always" || !hasContent);
12734
- const showSelectorRow = showAgentSelector || showModelSelector;
12735
- const selectedAgentOption = agents.find((agent) => agent.id === selectedAgent) ?? null;
12736
- const cells = {
12737
- input: "col-span-3 col-start-1 row-start-1 px-1 pt-1 md:col-span-1 md:col-start-2 md:self-end md:px-0 md:py-1.5",
12738
- textarea: "px-2 pt-2 pb-1 md:py-1.5",
12739
- add: "col-start-1 row-start-2 pb-2 ps-2 md:row-start-1 md:self-end md:p-1.5 md:pe-0.5",
12740
- actions: "col-start-3 row-start-2 flex items-center gap-1 pb-2 pe-2 md:row-start-1 md:self-end md:gap-0.5 md:p-1.5 md:ps-0.5"
12741
- };
12742
- const composerCard = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12743
- attachments.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
12744
- "div",
12745
- {
12746
- "data-slot": "chat-composer-attachments",
12747
- className: "flex flex-wrap gap-2 px-3 pt-3",
12748
- children: attachments.map((attachment) => /* @__PURE__ */ jsxRuntime.jsx(
12749
- chunk5BVFVXHN_cjs.AttachmentPreviewItem,
12750
- {
12751
- attachment: { ...attachment, state: "pending" },
12752
- onRemove: () => removeAttachment(attachment.id),
12753
- disabled
12754
- },
12755
- attachment.id
12756
- ))
12757
- }
12758
- ),
12759
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[auto_minmax(0,1fr)_auto]", children: [
12760
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cells.input, ref: mention.anchorRef, children: [
12761
- /* @__PURE__ */ jsxRuntime.jsx(
12762
- chunk5BVFVXHN_cjs.MentionMenu,
12763
- {
12764
- mention,
12765
- label: mentionListLabel,
12766
- dataSlot: "chat-composer-mention-list"
12767
- }
12768
- ),
12769
- /* @__PURE__ */ jsxRuntime.jsx(
12770
- "textarea",
12771
- {
12772
- ...textareaProps,
12773
- ref: textareaRef,
12774
- "data-slot": "chat-composer-input",
12775
- value,
12776
- onChange: (event) => {
12777
- textareaProps?.onChange?.(event);
12778
- setValue(event.target.value);
12779
- mention.sync(
12780
- event.target.value,
12781
- event.target.selectionStart ?? event.target.value.length
12782
- );
12783
- },
12784
- onKeyDown: (event) => {
12785
- textareaProps?.onKeyDown?.(event);
12786
- if (event.defaultPrevented) return;
12787
- handleKeyDown(event);
12788
- },
12789
- onClick: (event) => {
12790
- textareaProps?.onClick?.(event);
12791
- if (event.defaultPrevented) return;
12792
- const el = event.currentTarget;
12793
- mention.sync(el.value, el.selectionStart ?? el.value.length);
12794
- },
12795
- onPaste: (event) => {
12796
- textareaProps?.onPaste?.(event);
12797
- if (event.defaultPrevented) return;
12798
- handlePaste(event);
12799
- },
12800
- placeholder,
12801
- disabled,
12802
- autoFocus,
12803
- rows: 1,
12804
- "aria-label": inputLabel,
12805
- ...mention.inputProps,
12806
- style: {
12807
- ...textareaProps?.style,
12808
- maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
12809
- },
12810
- className: chunkS5RVSXDV_cjs.cn(
12811
- "block w-full resize-none bg-transparent",
12812
- "rounded-lg text-sm",
12813
- cells.textarea,
12814
- "text-neutral-900 placeholder:text-neutral-400 dark:text-white dark:placeholder:text-neutral-500",
12815
- // Ring the input itself on focus rather than the whole shell.
12816
- "focus:ring-primary-500 focus:ring-1 focus:outline-none",
12817
- "disabled:cursor-not-allowed",
12818
- textareaProps?.className
12819
- )
12820
- }
12821
- )
12822
- ] }),
12823
- showAddMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cells.add, children: /* @__PURE__ */ jsxRuntime.jsxs(
12824
- chunk4SM3I7WE_cjs.Dropdown,
12825
- {
12826
- placement: "top-start",
12827
- open: addMenuOpen,
12828
- onOpenChange: setAddMenuOpen,
12829
- trigger: /* @__PURE__ */ jsxRuntime.jsx(
12830
- "button",
12831
- {
12832
- type: "button",
12833
- "data-slot": "chat-composer-add-button",
12834
- "aria-label": addMenuLabel,
12835
- disabled,
12836
- className: iconButtonClasses,
12837
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Plus, { className: "h-4 w-4", "aria-hidden": "true" })
12838
- }
12839
- ),
12840
- children: [
12841
- allowAttachments && /* @__PURE__ */ jsxRuntime.jsx(
12842
- chunk4SM3I7WE_cjs.DropdownItem,
12843
- {
12844
- icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Paperclip, { className: "h-4 w-4", "aria-hidden": "true" }),
12845
- onClick: () => {
12846
- setAddMenuOpen(false);
12847
- fileInputRef.current?.click();
12848
- },
12849
- children: attachFilesLabel
12850
- }
12851
- ),
12852
- allowAttachments && addMenuItems && addMenuItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownSeparator, {}),
12853
- addMenuItems?.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
12854
- chunk4SM3I7WE_cjs.DropdownItem,
12855
- {
12856
- icon: item.icon,
12857
- disabled: item.disabled,
12858
- variant: item.variant,
12859
- checked: item.checked,
12860
- onClick: () => {
12861
- setAddMenuOpen(false);
12862
- item.onSelect?.();
12863
- },
12864
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: item.label })
12865
- },
12866
- item.id
12867
- ))
12868
- ]
12869
- }
12870
- ) }),
12871
- allowAttachments && /* @__PURE__ */ jsxRuntime.jsx(
12872
- "input",
12873
- {
12874
- ref: fileInputRef,
12875
- type: "file",
12876
- multiple: true,
12877
- accept: acceptedFileTypes?.join(","),
12878
- onChange: handleFileInputChange,
12879
- className: "hidden",
12880
- "aria-hidden": "true",
12881
- tabIndex: -1
12882
- }
12883
- ),
12884
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cells.actions, children: [
12885
- showCharacterCount && maxLength !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
12886
- "span",
12887
- {
12888
- "data-slot": "chat-composer-char-count",
12889
- "aria-live": "polite",
12890
- className: chunkS5RVSXDV_cjs.cn(
12891
- "pe-1 text-xs tabular-nums",
12892
- isOverLimit ? "font-medium text-red-700 dark:text-red-400" : "text-neutral-500 dark:text-neutral-400"
12893
- ),
12894
- children: [
12895
- value.length,
12896
- "/",
12897
- maxLength
12898
- ]
12899
- }
12900
- ),
12901
- micVisible && (micSlot != null ? (
12902
- // Normalize slot content (e.g. a RecordButton) to the 32px
12903
- // control row: taller content overflow-centers instead of
12904
- // inflating the pill and pushing the other cells apart. A div
12905
- // so block-level slot content stays valid HTML.
12906
- /* @__PURE__ */ jsxRuntime.jsx(
12907
- "div",
12908
- {
12909
- "data-slot": "chat-composer-mic-slot",
12910
- className: "flex h-8 shrink-0 items-center",
12911
- children: micSlot
12912
- }
12913
- )
12914
- ) : /* @__PURE__ */ jsxRuntime.jsx(
12915
- "button",
12916
- {
12917
- type: "button",
12918
- "data-slot": "chat-composer-mic-button",
12919
- "aria-label": micLabel,
12920
- disabled,
12921
- onClick: onMicClick,
12922
- className: iconButtonClasses,
12923
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Mic, { className: "h-4 w-4", "aria-hidden": "true" })
12924
- }
12925
- )),
12926
- isStreaming && onStop ? /* @__PURE__ */ jsxRuntime.jsx(
12927
- "button",
12928
- {
12929
- type: "button",
12930
- "data-slot": "chat-composer-stop-button",
12931
- "aria-label": stopLabel,
12932
- disabled,
12933
- onClick: onStop,
12934
- className: chunkS5RVSXDV_cjs.cn(
12935
- iconButtonClasses,
12936
- "text-neutral-700 dark:text-neutral-200"
12937
- ),
12938
- children: /* @__PURE__ */ jsxRuntime.jsx(
12939
- chunkL7L5S2HO_cjs.Square,
12940
- {
12941
- className: "h-3.5 w-3.5 fill-current",
12942
- "aria-hidden": "true"
12943
- }
12944
- )
12945
- }
12946
- ) : /* @__PURE__ */ jsxRuntime.jsx(
12947
- "button",
12948
- {
12949
- type: "button",
12950
- "data-slot": "chat-composer-send-button",
12951
- "aria-label": isSending ? sendingLabel : sendLabel,
12952
- "aria-busy": isSending || void 0,
12953
- disabled: !canSend,
12954
- onClick: handleSend,
12955
- className: chunkS5RVSXDV_cjs.cn(
12956
- iconButtonClasses,
12957
- canSend && "bg-primary-800 hover:bg-primary-700 dark:bg-primary-600 dark:hover:bg-primary-500 text-white hover:text-white dark:hover:text-white"
12958
- ),
12959
- children: isSending ? /* @__PURE__ */ jsxRuntime.jsx(
12960
- chunkL7L5S2HO_cjs.Loader2,
12961
- {
12962
- className: "h-4 w-4 animate-spin",
12963
- "aria-hidden": "true"
12964
- }
12965
- ) : /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.ArrowUp, { className: "h-4 w-4", "aria-hidden": "true" })
12966
- }
12967
- )
12968
- ] })
12969
- ] })
12970
- ] });
12971
- const selectorsRow = showSelectorRow && /* @__PURE__ */ jsxRuntime.jsxs(
12972
- "div",
12973
- {
12974
- "data-slot": "chat-composer-selectors",
12975
- className: "flex items-center justify-between gap-2 px-2 pt-1",
12976
- children: [
12977
- showAgentSelector ? /* @__PURE__ */ jsxRuntime.jsx(
12978
- chunk4SM3I7WE_cjs.Dropdown,
12979
- {
12980
- placement: "top-start",
12981
- open: agentMenuOpen,
12982
- onOpenChange: setAgentMenuOpen,
12983
- trigger: /* @__PURE__ */ jsxRuntime.jsxs(
12984
- "button",
12985
- {
12986
- type: "button",
12987
- "data-slot": "chat-composer-agent-trigger",
12988
- "aria-label": selectedAgentOption ? `${agentSelectorLabel}: ${selectedAgentOption.label}` : agentSelectorLabel,
12989
- disabled,
12990
- className: selectorTriggerClasses,
12991
- children: [
12992
- selectedAgentOption?.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Bot, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
12993
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: selectedAgentOption?.label ?? agentSelectorLabel }),
12994
- /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.ChevronUp, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" })
12995
- ]
12996
- }
12997
- ),
12998
- children: agents.map((agent) => /* @__PURE__ */ jsxRuntime.jsx(
12999
- chunk4SM3I7WE_cjs.DropdownItem,
13000
- {
13001
- icon: agent.icon,
13002
- role: "menuitemradio",
13003
- "aria-checked": agent.id === selectedAgent,
13004
- onClick: () => {
13005
- setAgentMenuOpen(false);
13006
- onAgentChange?.(agent.id);
13007
- },
13008
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex w-full items-center justify-between gap-2", children: [
13009
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0", children: [
13010
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate", children: agent.label }),
13011
- agent.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-neutral-500 dark:text-neutral-400", children: agent.description })
13012
- ] }),
13013
- agent.id === selectedAgent && /* @__PURE__ */ jsxRuntime.jsx(
13014
- chunkL7L5S2HO_cjs.Check,
13015
- {
13016
- className: "text-primary-600 dark:text-primary-400 h-4 w-4 shrink-0",
13017
- "aria-hidden": "true"
13018
- }
13019
- )
13020
- ] })
13021
- },
13022
- agent.id
13023
- ))
13024
- }
13025
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true" }),
13026
- showModelSelector && modelSelectorProps && /* @__PURE__ */ jsxRuntime.jsx(
13027
- ComposerModelSelector,
13028
- {
13029
- variant: "ghost",
13030
- ...modelSelectorProps,
13031
- disabled: disabled || modelSelectorProps.disabled
13032
- }
13033
- )
13034
- ]
13035
- }
13036
- );
13037
- const card = /* @__PURE__ */ jsxRuntime.jsx(
13038
- "div",
13039
- {
13040
- "data-slot": "chat-composer-card",
13041
- className: chunkS5RVSXDV_cjs.cn(
13042
- "rounded-2xl border border-neutral-200 bg-white shadow-sm",
13043
- "dark:border-[#2e2e30] dark:bg-[#1c1c1e]"
13044
- ),
13045
- children: composerCard
13046
- }
13047
- );
13048
- return /* @__PURE__ */ jsxRuntime.jsxs(
13049
- "div",
13050
- {
13051
- "data-slot": "chat-composer",
13052
- className: chunkS5RVSXDV_cjs.cn(
13053
- "flex w-full flex-col",
13054
- disabled && "opacity-60",
13055
- className
13056
- ),
13057
- children: [
13058
- allowAttachments ? /* @__PURE__ */ jsxRuntime.jsx(
13059
- chunk5BVFVXHN_cjs.DragDropZone,
13060
- {
13061
- onFilesDropped: addFiles,
13062
- maxFiles: Number.MAX_SAFE_INTEGER,
13063
- disabled,
13064
- overlayLabel: dropFilesLabel,
13065
- children: card
13066
- }
13067
- ) : card,
13068
- selectorsRow
13069
- ]
13070
- }
13071
- );
13072
- });
13073
- ChatComposer.displayName = "ChatComposer";
13074
12056
  var MODE_META = {
13075
12057
  add: { title: "Add problem", changeType: void 0 },
13076
12058
  observe: { title: "Progress observation", changeType: void 0 },
@@ -13093,13 +12075,24 @@ var RELATIONSHIP_OPTIONS = [
13093
12075
  ];
13094
12076
  var SEVERITIES = ["mild", "moderate", "severe"];
13095
12077
  var CONFIDENCES = ["low", "medium", "high"];
13096
- function systemForCodetype(codetype) {
12078
+ function normalizeConditionCodingSystem(codetype) {
13097
12079
  const ct = codetype.toUpperCase().replace(/[^A-Z0-9]/g, "");
13098
12080
  if (ct === "ICD10" || ct === "ICD10CM") return "ICD-10-CM";
13099
12081
  if (ct === "ICD11") return "ICD-11";
13100
- if (ct === "SNOMED" || ct === "SNOMEDCT") return "SNOMED";
12082
+ if (ct === "SNOMED" || ct === "SNOMEDCT" || ct === "SNOMEDUS") {
12083
+ return "SNOMED";
12084
+ }
13101
12085
  return codetype;
13102
12086
  }
12087
+ function withSinglePrimary(coding) {
12088
+ if (coding.length === 0) return coding;
12089
+ const primaryIndex = coding.findIndex((entry) => entry.primary);
12090
+ const selectedIndex = primaryIndex >= 0 ? primaryIndex : 0;
12091
+ return coding.map((entry, index) => ({
12092
+ ...entry,
12093
+ primary: index === selectedIndex
12094
+ }));
12095
+ }
13103
12096
  function contextConditionCodeSearch(ctx) {
13104
12097
  const ContextConditionCodeSearch = ({
13105
12098
  placeholder,
@@ -13153,7 +12146,7 @@ function FieldFlag({
13153
12146
  ),
13154
12147
  className: chunkS5RVSXDV_cjs.cn(
13155
12148
  "rounded-full border px-2 py-0.5 text-[11px] font-medium transition-colors",
13156
- unknown ? "border-amber-400 bg-amber-100 text-amber-900 dark:border-amber-600 dark:bg-amber-950 dark:text-amber-200" : "border-border text-muted-foreground hover:text-foreground"
12149
+ unknown ? "border-warning/50 bg-warning/10 text-warning-800 dark:text-warning-200" : "border-border text-muted-foreground hover:text-foreground"
13157
12150
  ),
13158
12151
  children: "Unknown"
13159
12152
  }
@@ -13209,7 +12202,7 @@ function ConditionEditor({
13209
12202
  "data-testid": dataTestId
13210
12203
  }) {
13211
12204
  const prior = concern ? currentAssertion(concern) : void 0;
13212
- const ambientCodeLookup = chunk6XDPJWSC_cjs.useCodeLookupConfig();
12205
+ const ambientCodeLookup = chunkE3KC2XLN_cjs.useCodeLookupConfig();
13213
12206
  const effectiveRenderCodeSearch = renderCodeSearch === false ? void 0 : renderCodeSearch ?? (ambientCodeLookup ? contextConditionCodeSearch(ambientCodeLookup) : void 0);
13214
12207
  const [text, setText] = React13__namespace.useState("");
13215
12208
  const [coding, setCoding] = React13__namespace.useState([]);
@@ -13226,13 +12219,14 @@ function ConditionEditor({
13226
12219
  React13__namespace.useEffect(() => {
13227
12220
  if (!open) return;
13228
12221
  setText(prior?.text ?? "");
13229
- setCoding(prior?.coding ?? []);
12222
+ setCoding(withSinglePrimary(prior?.coding ?? []));
13230
12223
  setVerification(
13231
12224
  mode === "add" ? "unconfirmed" : prior?.verificationStatus ?? "confirmed"
13232
12225
  );
13233
12226
  setSeverity(prior?.severity);
13234
- setOnsetDate(prior?.onset?.date ?? "");
13235
- setOnsetFuzzy(prior?.onset?.fuzzy ?? "");
12227
+ const priorOnsetDate = prior?.onset?.date;
12228
+ setOnsetDate(priorOnsetDate ? chunkCW75IKA6_cjs.dateToDisplayFormat(priorOnsetDate) : "");
12229
+ setOnsetFuzzy(priorOnsetDate ? "" : prior?.onset?.fuzzy ?? "");
13236
12230
  setNote("");
13237
12231
  setProgression(false);
13238
12232
  setFields(prior?.uncertainty?.fields ?? {});
@@ -13248,18 +12242,14 @@ function ConditionEditor({
13248
12242
  });
13249
12243
  const updateCoding = (i, patch) => setCoding((prev) => prev.map((c, j) => j === i ? { ...c, ...patch } : c));
13250
12244
  const codingUnknown = fields.coding?.known === false;
12245
+ const hasInvalidOnsetDate = fields.onset?.known !== false && Boolean(onsetDate) && !chunkCW75IKA6_cjs.isValidDate(onsetDate);
13251
12246
  const handleCodePick = (pick) => {
13252
- const system = systemForCodetype(pick.codetype);
12247
+ const system = normalizeConditionCodingSystem(pick.codetype);
13253
12248
  setCoding(
13254
- (prev) => prev.some((c) => c.system === system && c.code === pick.fullcode) ? prev : [
12249
+ (prev) => prev.some((c) => c.system === system && c.code === pick.fullcode) ? prev : withSinglePrimary([
13255
12250
  ...prev,
13256
- {
13257
- system,
13258
- code: pick.fullcode,
13259
- display: pick.label,
13260
- primary: prev.length === 0
13261
- }
13262
- ]
12251
+ { system, code: pick.fullcode, display: pick.label }
12252
+ ])
13263
12253
  );
13264
12254
  setText((prev) => prev || pick.label);
13265
12255
  setFields((prev) => {
@@ -13282,7 +12272,7 @@ function ConditionEditor({
13282
12272
  onOpenChange(false);
13283
12273
  return;
13284
12274
  }
13285
- if (!text.trim()) return;
12275
+ if (!text.trim() || hasInvalidOnsetDate) return;
13286
12276
  if (observation.trim()) onAddObservation?.(observation.trim());
13287
12277
  const uncertainty = Object.keys(fields).length > 0 ? { fields } : void 0;
13288
12278
  onSave?.({
@@ -13291,41 +12281,46 @@ function ConditionEditor({
13291
12281
  // checks downstream. A field marked explicitly unknown must not carry a
13292
12282
  // value (e.g. one seeded from the prior assertion): value + "unknown"
13293
12283
  // would be contradictory, so unknown wins and the value is dropped.
13294
- coding: fields.coding?.known === false ? [] : coding.filter((c) => c.code.trim()).map((c) => ({
13295
- ...c,
13296
- code: c.code.trim(),
13297
- display: c.display?.trim() || void 0,
13298
- mappedFrom: c.mappedFrom?.trim() || void 0
13299
- })),
12284
+ coding: fields.coding?.known === false ? [] : withSinglePrimary(
12285
+ coding.filter((c) => c.code.trim()).map((c) => ({
12286
+ ...c,
12287
+ code: c.code.trim(),
12288
+ display: c.display?.trim() || void 0,
12289
+ mappedFrom: c.mappedFrom?.trim() || void 0
12290
+ }))
12291
+ ),
13300
12292
  verificationStatus: verification,
13301
12293
  changeType: mode === "refine" ? progression ? "progression" : "refinement" : MODE_META[mode].changeType,
13302
12294
  supersedes: prior?.id,
13303
12295
  severity: fields.severity?.known === false ? void 0 : severity,
13304
- onset: fields.onset?.known === false ? void 0 : onsetDate || onsetFuzzy ? { date: onsetDate || void 0, fuzzy: onsetFuzzy || void 0 } : void 0,
12296
+ onset: fields.onset?.known === false ? void 0 : onsetDate || onsetFuzzy ? {
12297
+ date: onsetDate ? chunkCW75IKA6_cjs.displayFormatToDateString(onsetDate) : void 0,
12298
+ fuzzy: onsetFuzzy || void 0
12299
+ } : void 0,
13305
12300
  uncertainty,
13306
12301
  note: note.trim() || void 0
13307
12302
  });
13308
12303
  onOpenChange(false);
13309
12304
  };
13310
- const saveDisabled = mode === "relate" ? !relTarget : mode === "observe" ? !observation.trim() : !text.trim();
12305
+ const saveDisabled = mode === "relate" ? !relTarget : mode === "observe" ? !observation.trim() : !text.trim() || hasInvalidOnsetDate;
13311
12306
  return /* @__PURE__ */ jsxRuntime.jsxs(
13312
- chunkL52N6BEN_cjs.Modal,
12307
+ chunkAUOTJQGO_cjs.Modal,
13313
12308
  {
13314
12309
  open,
13315
12310
  onOpenChange,
13316
- size: "lg",
12311
+ size: "2xl",
13317
12312
  className,
13318
12313
  children: [
13319
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
12314
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
13320
12315
  MODE_META[mode].title,
13321
12316
  prior ? ` \u2014 ${prior.text}` : ""
13322
12317
  ] }) }),
13323
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { "data-testid": dataTestId, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
12318
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { "data-testid": dataTestId, className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
13324
12319
  mode === "revise" && /* @__PURE__ */ jsxRuntime.jsxs(
13325
12320
  "div",
13326
12321
  {
13327
12322
  role: "alert",
13328
- className: "flex items-start gap-2 rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:border-amber-700 dark:bg-amber-950 dark:text-amber-200",
12323
+ className: "border-warning/30 bg-warning/10 text-warning-800 dark:text-warning-200 flex items-start gap-2 rounded-md border px-3 py-2 text-sm",
13329
12324
  children: [
13330
12325
  /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.AlertTriangle, { size: 16 }),
13331
12326
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
@@ -13341,7 +12336,7 @@ function ConditionEditor({
13341
12336
  ),
13342
12337
  mode === "relate" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13343
12338
  /* @__PURE__ */ jsxRuntime.jsx(
13344
- chunkXEEVDZDK_cjs.Select,
12339
+ chunkIGSIWNX3_cjs.Select,
13345
12340
  {
13346
12341
  label: "Relationship",
13347
12342
  options: RELATIONSHIP_OPTIONS,
@@ -13350,7 +12345,7 @@ function ConditionEditor({
13350
12345
  }
13351
12346
  ),
13352
12347
  /* @__PURE__ */ jsxRuntime.jsx(
13353
- chunkXEEVDZDK_cjs.Select,
12348
+ chunkIGSIWNX3_cjs.Select,
13354
12349
  {
13355
12350
  label: "Related problem",
13356
12351
  placeholder: "Select a problem\u2026",
@@ -13398,21 +12393,19 @@ function ConditionEditor({
13398
12393
  placeholder: "e.g. Type 1 diabetes mellitus with neuropathy"
13399
12394
  }
13400
12395
  ),
13401
- mode === "refine" && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex items-center gap-2 text-sm", children: [
13402
- /* @__PURE__ */ jsxRuntime.jsx(
13403
- "input",
13404
- {
13405
- type: "checkbox",
13406
- checked: progression,
13407
- onChange: (e) => setProgression(e.target.checked),
13408
- className: "accent-primary-600 h-4 w-4"
13409
- }
13410
- ),
13411
- "Disease progressed (e.g. new complication) rather than a more specific diagnosis"
13412
- ] }),
13413
- /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "space-y-2", children: [
13414
- /* @__PURE__ */ jsxRuntime.jsxs("legend", { className: "flex w-full items-center justify-between text-sm font-medium", children: [
13415
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2", children: [
12396
+ mode === "refine" && /* @__PURE__ */ jsxRuntime.jsx(
12397
+ chunk7AECNMYV_cjs.Checkbox,
12398
+ {
12399
+ size: "sm",
12400
+ checked: progression,
12401
+ onChange: (e) => setProgression(e.target.checked),
12402
+ label: "Disease progressed (e.g. new complication) rather than a more specific diagnosis"
12403
+ }
12404
+ ),
12405
+ /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "space-y-3", children: [
12406
+ /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "sr-only", children: "Coding" }),
12407
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
12408
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-wrap items-center gap-2 text-sm font-medium", children: [
13416
12409
  "Coding",
13417
12410
  /* @__PURE__ */ jsxRuntime.jsx(
13418
12411
  FieldFlag,
@@ -13439,85 +12432,139 @@ function ConditionEditor({
13439
12432
  }
13440
12433
  ]),
13441
12434
  leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Plus, { size: 12 }),
13442
- className: "h-7 text-xs",
12435
+ className: "h-8 shrink-0 text-xs",
13443
12436
  children: "Add code"
13444
12437
  }
13445
12438
  )
13446
12439
  ] }),
13447
- effectiveRenderCodeSearch && !(mode === "add" && !text.trim()) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-md", children: effectiveRenderCodeSearch({
12440
+ effectiveRenderCodeSearch && !(mode === "add" && !text.trim()) && /* @__PURE__ */ jsxRuntime.jsx("div", { children: effectiveRenderCodeSearch({
13448
12441
  placeholder: "Search codes \u2014 ICD-10-CM / SNOMED\u2026",
13449
12442
  onPick: handleCodePick,
13450
12443
  onFreeText: (t) => setText((prev) => prev || t)
13451
12444
  }) }),
13452
12445
  coding.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs", children: "Optional \u2014 a name-only problem is valid. Codes can be added any time." }),
13453
- coding.map((c, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
13454
- /* @__PURE__ */ jsxRuntime.jsx(
13455
- chunkXEEVDZDK_cjs.Select,
13456
- {
13457
- "aria-label": `Coding system ${i + 1}`,
13458
- options: CODING_SYSTEMS.map((s) => ({
13459
- value: s,
13460
- label: s
13461
- })),
13462
- value: c.system,
13463
- onValueChange: (v) => updateCoding(i, { system: v }),
13464
- disabled: codingUnknown,
13465
- className: "w-32"
13466
- }
13467
- ),
13468
- /* @__PURE__ */ jsxRuntime.jsx(
13469
- chunkZ5S5JEJD_cjs.Input,
13470
- {
13471
- "aria-label": `Code ${i + 1}`,
13472
- value: c.code,
13473
- onChange: (e) => updateCoding(i, { code: e.target.value }),
13474
- placeholder: "Code",
13475
- disabled: codingUnknown,
13476
- className: "w-28 font-mono"
13477
- }
13478
- ),
13479
- /* @__PURE__ */ jsxRuntime.jsx(
13480
- chunkZ5S5JEJD_cjs.Input,
13481
- {
13482
- "aria-label": `Display ${i + 1}`,
13483
- value: c.display ?? "",
13484
- onChange: (e) => updateCoding(i, { display: e.target.value }),
13485
- placeholder: "Display",
13486
- disabled: codingUnknown,
13487
- className: "min-w-32 flex-1"
13488
- }
13489
- ),
13490
- /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex items-center gap-1 text-xs", children: [
13491
- /* @__PURE__ */ jsxRuntime.jsx(
13492
- "input",
13493
- {
13494
- type: "radio",
13495
- name: "primary-coding",
13496
- checked: Boolean(c.primary),
13497
- disabled: codingUnknown,
13498
- onChange: () => setCoding(
13499
- (prev) => prev.map((cc, j) => ({ ...cc, primary: j === i }))
13500
- ),
13501
- className: "accent-primary-600"
13502
- }
12446
+ coding.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
12447
+ "div",
12448
+ {
12449
+ "aria-hidden": "true",
12450
+ "data-slot": "condition-coding-header",
12451
+ className: "text-muted-foreground hidden grid-cols-[minmax(8rem,1.1fr)_minmax(7rem,0.9fr)_minmax(10rem,1.5fr)_5.5rem_2.5rem] items-center gap-2 px-1 text-xs font-medium sm:!grid",
12452
+ children: [
12453
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "System" }),
12454
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Code" }),
12455
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Display" }),
12456
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-center", children: "Primary code" }),
12457
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Actions" })
12458
+ ]
12459
+ }
12460
+ ),
12461
+ coding.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
12462
+ chunkG7EQ3JPX_cjs.RadioGroup,
12463
+ {
12464
+ name: "primary-coding",
12465
+ label: "Primary display code",
12466
+ value: String(
12467
+ Math.max(
12468
+ 0,
12469
+ coding.findIndex((entry) => entry.primary)
12470
+ )
13503
12471
  ),
13504
- "primary"
13505
- ] }),
13506
- /* @__PURE__ */ jsxRuntime.jsx(
13507
- chunkIINZWUGK_cjs.Button,
13508
- {
13509
- variant: "ghost",
13510
- size: "icon",
13511
- "aria-label": `Remove code ${i + 1}`,
13512
- onClick: () => setCoding((prev) => prev.filter((_, j) => j !== i)),
13513
- className: "h-7 w-7",
13514
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Trash2, { size: 14 })
13515
- }
13516
- )
13517
- ] }, i))
12472
+ onValueChange: (value) => {
12473
+ const selectedIndex = Number(value);
12474
+ setCoding(
12475
+ (prev) => prev.map((entry, index) => ({
12476
+ ...entry,
12477
+ primary: index === selectedIndex
12478
+ }))
12479
+ );
12480
+ },
12481
+ size: "sm",
12482
+ className: "gap-2 [&_[data-slot=radio-group-items]]:gap-2 sm:[&_[data-slot=radio-group-legend]]:sr-only",
12483
+ children: coding.map((c, i) => /* @__PURE__ */ jsxRuntime.jsxs(
12484
+ "div",
12485
+ {
12486
+ "data-slot": "condition-coding-row",
12487
+ className: "border-border/70 grid grid-cols-1 gap-2 rounded-md border p-2 sm:grid-cols-[minmax(8rem,1.1fr)_minmax(7rem,0.9fr)_minmax(10rem,1.5fr)_5.5rem_2.5rem] sm:items-center sm:border-0 sm:p-0",
12488
+ children: [
12489
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
12490
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs sm:hidden", children: "System" }),
12491
+ /* @__PURE__ */ jsxRuntime.jsx(
12492
+ chunkIGSIWNX3_cjs.Select,
12493
+ {
12494
+ "aria-label": `Coding system ${i + 1}`,
12495
+ options: CODING_SYSTEMS.map((s) => ({
12496
+ value: s,
12497
+ label: s
12498
+ })),
12499
+ value: c.system,
12500
+ onValueChange: (v) => updateCoding(i, { system: v }),
12501
+ disabled: codingUnknown
12502
+ }
12503
+ )
12504
+ ] }),
12505
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
12506
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs sm:hidden", children: "Code" }),
12507
+ /* @__PURE__ */ jsxRuntime.jsx(
12508
+ chunkZ5S5JEJD_cjs.Input,
12509
+ {
12510
+ "aria-label": `Code ${i + 1}`,
12511
+ value: c.code,
12512
+ onChange: (e) => updateCoding(i, { code: e.target.value }),
12513
+ placeholder: "Code",
12514
+ disabled: codingUnknown,
12515
+ className: "font-mono"
12516
+ }
12517
+ )
12518
+ ] }),
12519
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
12520
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs sm:hidden", children: "Display" }),
12521
+ /* @__PURE__ */ jsxRuntime.jsx(
12522
+ chunkZ5S5JEJD_cjs.Input,
12523
+ {
12524
+ "aria-label": `Display ${i + 1}`,
12525
+ value: c.display ?? "",
12526
+ onChange: (e) => updateCoding(i, { display: e.target.value }),
12527
+ placeholder: "Display",
12528
+ disabled: codingUnknown
12529
+ }
12530
+ )
12531
+ ] }),
12532
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-10 items-center gap-1.5 text-xs sm:justify-center", children: [
12533
+ /* @__PURE__ */ jsxRuntime.jsx(
12534
+ chunkG7EQ3JPX_cjs.Radio,
12535
+ {
12536
+ value: String(i),
12537
+ "aria-label": `Primary code: ${c.system} ${c.code || `row ${i + 1}`}`,
12538
+ disabled: codingUnknown
12539
+ }
12540
+ ),
12541
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sm:sr-only", children: "Primary code" })
12542
+ ] }),
12543
+ /* @__PURE__ */ jsxRuntime.jsx(
12544
+ chunkIINZWUGK_cjs.Button,
12545
+ {
12546
+ variant: "ghost",
12547
+ size: "icon",
12548
+ "aria-label": `Remove code ${i + 1}`,
12549
+ disabled: codingUnknown,
12550
+ onClick: () => setCoding(
12551
+ (prev) => withSinglePrimary(
12552
+ prev.filter((_, index) => index !== i)
12553
+ )
12554
+ ),
12555
+ className: "h-10 w-10 justify-self-start sm:justify-self-center",
12556
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Trash2, { size: 14 })
12557
+ }
12558
+ )
12559
+ ]
12560
+ },
12561
+ i
12562
+ ))
12563
+ }
12564
+ )
13518
12565
  ] }),
13519
12566
  /* @__PURE__ */ jsxRuntime.jsx(
13520
- chunkXEEVDZDK_cjs.Select,
12567
+ chunkIGSIWNX3_cjs.Select,
13521
12568
  {
13522
12569
  label: "Verification status",
13523
12570
  options: VERIFICATION_OPTIONS,
@@ -13525,9 +12572,39 @@ function ConditionEditor({
13525
12572
  onValueChange: (v) => setVerification(v)
13526
12573
  }
13527
12574
  ),
13528
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
13529
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2 text-sm font-medium", children: [
13530
- "Severity",
12575
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-end gap-x-4 gap-y-2", children: [
12576
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
12577
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-sm font-medium", children: "Severity" }),
12578
+ /* @__PURE__ */ jsxRuntime.jsx(
12579
+ "div",
12580
+ {
12581
+ role: "group",
12582
+ "aria-label": "Severity",
12583
+ className: "border-border inline-flex items-center overflow-hidden rounded-md border",
12584
+ children: SEVERITIES.map((s) => {
12585
+ const active = severity === s;
12586
+ return /* @__PURE__ */ jsxRuntime.jsx(
12587
+ "button",
12588
+ {
12589
+ type: "button",
12590
+ "aria-pressed": active,
12591
+ disabled: fields.severity?.known === false,
12592
+ onClick: () => setSeverity(active ? void 0 : s),
12593
+ className: chunkS5RVSXDV_cjs.cn(
12594
+ "border-border border-s px-2.5 py-1 text-xs font-medium capitalize transition-colors first:border-s-0",
12595
+ "disabled:opacity-40",
12596
+ active ? "bg-primary-600 text-white" : "bg-background text-muted-foreground hover:text-foreground"
12597
+ ),
12598
+ children: s
12599
+ },
12600
+ s
12601
+ );
12602
+ })
12603
+ }
12604
+ )
12605
+ ] }),
12606
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
12607
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-sm font-medium", children: "Certainty" }),
13531
12608
  /* @__PURE__ */ jsxRuntime.jsx(
13532
12609
  FieldFlag,
13533
12610
  {
@@ -13537,34 +12614,7 @@ function ConditionEditor({
13537
12614
  hasValue: Boolean(severity)
13538
12615
  }
13539
12616
  )
13540
- ] }),
13541
- /* @__PURE__ */ jsxRuntime.jsx(
13542
- "div",
13543
- {
13544
- role: "group",
13545
- "aria-label": "Severity",
13546
- className: "border-border inline-flex items-center overflow-hidden rounded-md border",
13547
- children: SEVERITIES.map((s) => {
13548
- const active = severity === s;
13549
- return /* @__PURE__ */ jsxRuntime.jsx(
13550
- "button",
13551
- {
13552
- type: "button",
13553
- "aria-pressed": active,
13554
- disabled: fields.severity?.known === false,
13555
- onClick: () => setSeverity(active ? void 0 : s),
13556
- className: chunkS5RVSXDV_cjs.cn(
13557
- "border-border border-s px-2.5 py-1 text-xs font-medium capitalize transition-colors first:border-s-0",
13558
- "disabled:opacity-40",
13559
- active ? "bg-primary-600 text-white" : "bg-background text-muted-foreground hover:text-foreground"
13560
- ),
13561
- children: s
13562
- },
13563
- s
13564
- );
13565
- })
13566
- }
13567
- )
12617
+ ] })
13568
12618
  ] }),
13569
12619
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
13570
12620
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2 text-sm font-medium", children: [
@@ -13579,28 +12629,33 @@ function ConditionEditor({
13579
12629
  }
13580
12630
  )
13581
12631
  ] }),
13582
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
12632
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 items-end gap-2 sm:grid-cols-[minmax(10rem,0.8fr)_auto_minmax(14rem,1.2fr)]", children: [
13583
12633
  /* @__PURE__ */ jsxRuntime.jsx(
13584
- chunkZ5S5JEJD_cjs.Input,
12634
+ chunkSRA2L3SQ_cjs.DateInput,
13585
12635
  {
13586
- type: "date",
13587
12636
  "aria-label": "Onset date (exact)",
13588
12637
  value: onsetDate,
13589
- onChange: (e) => setOnsetDate(e.target.value),
12638
+ onChange: (value) => {
12639
+ setOnsetDate(value);
12640
+ if (value) setOnsetFuzzy("");
12641
+ },
13590
12642
  disabled: fields.onset?.known === false,
13591
- className: "w-40"
12643
+ validateOnBlur: true,
12644
+ width: "full"
13592
12645
  }
13593
12646
  ),
13594
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: "or" }),
12647
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground pb-3 text-center text-xs", children: "or" }),
13595
12648
  /* @__PURE__ */ jsxRuntime.jsx(
13596
12649
  chunkZ5S5JEJD_cjs.Input,
13597
12650
  {
13598
12651
  "aria-label": "Onset (fuzzy)",
13599
12652
  value: onsetFuzzy,
13600
- onChange: (e) => setOnsetFuzzy(e.target.value),
12653
+ onChange: (e) => {
12654
+ setOnsetFuzzy(e.target.value);
12655
+ if (e.target.value) setOnsetDate("");
12656
+ },
13601
12657
  disabled: fields.onset?.known === false,
13602
- placeholder: 'Fuzzy \u2014 "since her twenties", "~3 months ago"',
13603
- className: "min-w-48 flex-1"
12658
+ placeholder: 'Fuzzy \u2014 "since her twenties", "~3 months ago"'
13604
12659
  }
13605
12660
  )
13606
12661
  ] })
@@ -13621,13 +12676,13 @@ function ConditionEditor({
13621
12676
  "Uncertainty recorded:",
13622
12677
  " ",
13623
12678
  Object.entries(fields).map(
13624
- ([k, f]) => f?.known === false ? `${k} unknown` : `${k} ${f?.confidence ?? "soft"}`
12679
+ ([k, f]) => f?.known === false ? `${k} unknown` : `${f?.confidence ?? "unspecified"} confidence in ${k}`
13625
12680
  ).join(", ")
13626
12681
  ] })
13627
12682
  ] })
13628
12683
  ] })
13629
12684
  ] }) }),
13630
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
12685
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
13631
12686
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: () => onOpenChange(false), children: "Cancel" }),
13632
12687
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { onClick: handleSave, disabled: saveDisabled, children: mode === "relate" ? "Relate" : mode === "observe" ? "Add observation" : "Save" }),
13633
12688
  mode !== "relate" && mode !== "observe" && !text.trim() && /* @__PURE__ */ jsxRuntime.jsx(chunkYVL3XATO_cjs.Badge, { variant: "outline", size: "sm", className: "text-muted-foreground", children: "name required" })
@@ -14166,13 +13221,13 @@ function CheckrIntegration({
14166
13221
  ]
14167
13222
  }
14168
13223
  ),
14169
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open: showInviteModal, onOpenChange: setShowInviteModal, size: "md", children: [
14170
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
14171
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: inviteCandidate }),
14172
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
13224
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open: showInviteModal, onOpenChange: setShowInviteModal, size: "md", children: [
13225
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
13226
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: inviteCandidate }),
13227
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
14173
13228
  ] }),
14174
13229
  /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleInviteSubmit, children: [
14175
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
13230
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
14176
13231
  /* @__PURE__ */ jsxRuntime.jsx(
14177
13232
  chunkZ5S5JEJD_cjs.Input,
14178
13233
  {
@@ -14202,7 +13257,7 @@ function CheckrIntegration({
14202
13257
  }
14203
13258
  ),
14204
13259
  /* @__PURE__ */ jsxRuntime.jsx(
14205
- chunkXEEVDZDK_cjs.Select,
13260
+ chunkIGSIWNX3_cjs.Select,
14206
13261
  {
14207
13262
  label: packageLabel,
14208
13263
  options: packageOptions,
@@ -14211,7 +13266,7 @@ function CheckrIntegration({
14211
13266
  }
14212
13267
  )
14213
13268
  ] }) }),
14214
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
13269
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
14215
13270
  /* @__PURE__ */ jsxRuntime.jsx(
14216
13271
  chunkIINZWUGK_cjs.Button,
14217
13272
  {
@@ -14261,7 +13316,7 @@ function CommandPaletteProvider({
14261
13316
  open();
14262
13317
  }
14263
13318
  }, [isOpen, open, close]);
14264
- chunkXJTFZLWH_cjs.useCommandK(toggle, enableShortcut);
13319
+ chunkQO6PRHDX_cjs.useCommandK(toggle, enableShortcut);
14265
13320
  React13__namespace.default.useEffect(() => {
14266
13321
  if (!customEventName) return;
14267
13322
  const handler = () => open();
@@ -15791,7 +14846,7 @@ var CountBadge = React13__namespace.forwardRef(
15791
14846
  }
15792
14847
  ),
15793
14848
  /* @__PURE__ */ jsxRuntime.jsxs(
15794
- chunkL52N6BEN_cjs.Modal,
14849
+ chunkAUOTJQGO_cjs.Modal,
15795
14850
  {
15796
14851
  open: !!deleteTarget,
15797
14852
  onOpenChange: (isOpen) => {
@@ -15799,20 +14854,20 @@ var CountBadge = React13__namespace.forwardRef(
15799
14854
  },
15800
14855
  size: "sm",
15801
14856
  children: [
15802
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
15803
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
14857
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
14858
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
15804
14859
  "Delete ",
15805
14860
  entityLabel
15806
14861
  ] }),
15807
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
14862
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
15808
14863
  ] }),
15809
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
14864
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
15810
14865
  "Are you sure you want to delete",
15811
14866
  " ",
15812
14867
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground font-medium", children: deleteTarget?.label }),
15813
14868
  "? This action cannot be undone."
15814
14869
  ] }) }),
15815
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
14870
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
15816
14871
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: () => setDeleteTarget(null), children: "Cancel" }),
15817
14872
  /* @__PURE__ */ jsxRuntime.jsx(
15818
14873
  chunkIINZWUGK_cjs.Button,
@@ -15832,7 +14887,7 @@ var CountBadge = React13__namespace.forwardRef(
15832
14887
  }
15833
14888
  ),
15834
14889
  /* @__PURE__ */ jsxRuntime.jsxs(
15835
- chunkL52N6BEN_cjs.Modal,
14890
+ chunkAUOTJQGO_cjs.Modal,
15836
14891
  {
15837
14892
  open: !!editTarget,
15838
14893
  onOpenChange: (isOpen) => {
@@ -15843,15 +14898,15 @@ var CountBadge = React13__namespace.forwardRef(
15843
14898
  },
15844
14899
  size: "md",
15845
14900
  children: [
15846
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
15847
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
14901
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
14902
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
15848
14903
  label,
15849
14904
  ": ",
15850
14905
  editTarget?.label
15851
14906
  ] }),
15852
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
14907
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
15853
14908
  ] }),
15854
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
14909
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
15855
14910
  /* @__PURE__ */ jsxRuntime.jsx(
15856
14911
  chunkZ5S5JEJD_cjs.Input,
15857
14912
  {
@@ -15963,7 +15018,7 @@ var CountBadge = React13__namespace.forwardRef(
15963
15018
  )
15964
15019
  ] })
15965
15020
  ] }) }),
15966
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
15021
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
15967
15022
  /* @__PURE__ */ jsxRuntime.jsx(
15968
15023
  chunkIINZWUGK_cjs.Button,
15969
15024
  {
@@ -15993,7 +15048,7 @@ var CountBadge = React13__namespace.forwardRef(
15993
15048
  }
15994
15049
  ),
15995
15050
  /* @__PURE__ */ jsxRuntime.jsxs(
15996
- chunkL52N6BEN_cjs.Modal,
15051
+ chunkAUOTJQGO_cjs.Modal,
15997
15052
  {
15998
15053
  open: !!viewTarget,
15999
15054
  onOpenChange: (isOpen) => {
@@ -16001,15 +15056,15 @@ var CountBadge = React13__namespace.forwardRef(
16001
15056
  },
16002
15057
  size: "md",
16003
15058
  children: [
16004
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
16005
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
15059
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
15060
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
16006
15061
  label,
16007
15062
  ": ",
16008
15063
  viewTarget?.label
16009
15064
  ] }),
16010
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
15065
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
16011
15066
  ] }),
16012
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { children: [
15067
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { children: [
16013
15068
  /* @__PURE__ */ jsxRuntime.jsx(ViewModalActions, { viewTarget }),
16014
15069
  /* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "space-y-3 text-sm", children: [
16015
15070
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
@@ -16089,7 +15144,7 @@ var CountBadge = React13__namespace.forwardRef(
16089
15144
  ] })
16090
15145
  ] })
16091
15146
  ] }),
16092
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
15147
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
16093
15148
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: () => setViewTarget(null), children: "Close" }),
16094
15149
  onEdit && /* @__PURE__ */ jsxRuntime.jsx(
16095
15150
  chunkIINZWUGK_cjs.Button,
@@ -16647,7 +15702,7 @@ function CSVColumnCard({
16647
15702
  hasError && !column.ignored && "ring-warning-700/50 dark:ring-warning-400/50 ring-2"
16648
15703
  ),
16649
15704
  children: /* @__PURE__ */ jsxRuntime.jsx(
16650
- chunkXEEVDZDK_cjs.Select,
15705
+ chunkIGSIWNX3_cjs.Select,
16651
15706
  {
16652
15707
  id: formatHtmlId(column.name),
16653
15708
  label: `Map ${column.name} to field`,
@@ -16676,7 +15731,7 @@ function CSVColumnCard({
16676
15731
  }
16677
15732
  ),
16678
15733
  /* @__PURE__ */ jsxRuntime.jsx(
16679
- chunkXEEVDZDK_cjs.Select,
15734
+ chunkIGSIWNX3_cjs.Select,
16680
15735
  {
16681
15736
  id: formatHtmlId(column.name, column.mappedTo),
16682
15737
  label: `${column.name} sub-field`,
@@ -18027,7 +17082,7 @@ function DateRangeFilter({
18027
17082
  onChange(range, presetKey);
18028
17083
  };
18029
17084
  return /* @__PURE__ */ jsxRuntime.jsx(
18030
- chunk4SM3I7WE_cjs.Dropdown,
17085
+ chunkRXPEZXAB_cjs.Dropdown,
18031
17086
  {
18032
17087
  trigger: /* @__PURE__ */ jsxRuntime.jsxs(chunkIINZWUGK_cjs.Button, { variant, size: "md", className, children: [
18033
17088
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "me-2 h-4 w-4" }),
@@ -18037,7 +17092,7 @@ function DateRangeFilter({
18037
17092
  className: "w-56",
18038
17093
  "data-slot": "date-range-filter",
18039
17094
  children: finalPresets.map((preset) => /* @__PURE__ */ jsxRuntime.jsx(
18040
- chunk4SM3I7WE_cjs.DropdownItem,
17095
+ chunkRXPEZXAB_cjs.DropdownItem,
18041
17096
  {
18042
17097
  onClick: () => handlePresetSelect(preset.key),
18043
17098
  className: chunkS5RVSXDV_cjs.cn(
@@ -19166,19 +18221,19 @@ function WebcamModal({
19166
18221
  ] });
19167
18222
  };
19168
18223
  return /* @__PURE__ */ jsxRuntime.jsxs(
19169
- chunkL52N6BEN_cjs.Modal,
18224
+ chunkAUOTJQGO_cjs.Modal,
19170
18225
  {
19171
18226
  open,
19172
18227
  onOpenChange: handleClose,
19173
18228
  size: "lg",
19174
18229
  "aria-label": "Webcam capture",
19175
18230
  children: [
19176
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
19177
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Take a Photo" }),
19178
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
18231
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
18232
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Take a Photo" }),
18233
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
19179
18234
  ] }),
19180
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: renderContent() }),
19181
- permission !== "denied" && permission !== "unavailable" && !capturedFile && /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: handleClose, children: "Cancel" }) })
18235
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: renderContent() }),
18236
+ permission !== "denied" && permission !== "unavailable" && !capturedFile && /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: handleClose, children: "Cancel" }) })
19182
18237
  ]
19183
18238
  }
19184
18239
  );
@@ -19186,7 +18241,7 @@ function WebcamModal({
19186
18241
  WebcamModal.displayName = "WebcamModal";
19187
18242
 
19188
18243
  // src/components/DocumentScanner/types.ts
19189
- var DEFAULT_ACCEPTED_FILE_TYPES = [
18244
+ var DEFAULT_ACCEPTED_FILE_TYPES2 = [
19190
18245
  "image/jpeg",
19191
18246
  "image/jpg",
19192
18247
  "image/png",
@@ -19222,7 +18277,7 @@ function createPreviewUrl(file) {
19222
18277
  return URL.createObjectURL(file);
19223
18278
  }
19224
18279
  function useFileUpload({
19225
- acceptedFileTypes = [...DEFAULT_ACCEPTED_FILE_TYPES],
18280
+ acceptedFileTypes = [...DEFAULT_ACCEPTED_FILE_TYPES2],
19226
18281
  maxFileSizeMb = DEFAULT_MAX_FILE_SIZE_MB,
19227
18282
  multiple = false,
19228
18283
  onValidationError
@@ -19305,7 +18360,7 @@ function DocumentScanner({
19305
18360
  onScan,
19306
18361
  onResult,
19307
18362
  multiple = false,
19308
- acceptedFileTypes = [...DEFAULT_ACCEPTED_FILE_TYPES],
18363
+ acceptedFileTypes = [...DEFAULT_ACCEPTED_FILE_TYPES2],
19309
18364
  maxFileSizeMb = DEFAULT_MAX_FILE_SIZE_MB,
19310
18365
  disabled = false,
19311
18366
  enableWebcam = true,
@@ -19320,7 +18375,7 @@ function DocumentScanner({
19320
18375
  const [error, setError] = React13__namespace.useState(null);
19321
18376
  const [isWebcamOpen, setIsWebcamOpen] = React13__namespace.useState(false);
19322
18377
  const [validationErrors, setValidationErrors] = React13__namespace.useState([]);
19323
- const isMobile = chunkXJTFZLWH_cjs.useIsMobile();
18378
+ const isMobile = chunkQO6PRHDX_cjs.useIsMobile();
19324
18379
  const cameraInputRef = React13__namespace.useRef(null);
19325
18380
  const {
19326
18381
  files,
@@ -20202,7 +19257,7 @@ function ClaimProviderForm({
20202
19257
  }
20203
19258
  ),
20204
19259
  /* @__PURE__ */ jsxRuntime.jsx(
20205
- chunkXEEVDZDK_cjs.Select,
19260
+ chunkIGSIWNX3_cjs.Select,
20206
19261
  {
20207
19262
  label: "Role at this Organization",
20208
19263
  value: formData.role,
@@ -20232,7 +19287,7 @@ function ClaimProviderForm({
20232
19287
  "data-slot": "claim-form-section",
20233
19288
  className: "space-y-4 border-t border-gray-200 pt-4 dark:border-gray-700",
20234
19289
  children: /* @__PURE__ */ jsxRuntime.jsx(
20235
- chunkXEEVDZDK_cjs.Select,
19290
+ chunkIGSIWNX3_cjs.Select,
20236
19291
  {
20237
19292
  label: "Preferred Language",
20238
19293
  value: formData.preferredLanguage || "en",
@@ -20435,14 +19490,14 @@ function CreateInvoiceModal({
20435
19490
  value: emp.id,
20436
19491
  label: emp.name
20437
19492
  }));
20438
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { "data-slot": "invoice-modal", onSubmit: handleSubmit, children: [
20439
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(
19493
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { "data-slot": "invoice-modal", onSubmit: handleSubmit, children: [
19494
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(
20440
19495
  "div",
20441
19496
  {
20442
19497
  "data-slot": "invoice-modal-header",
20443
19498
  className: "flex items-center gap-3",
20444
19499
  children: [
20445
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Create Invoice" }),
19500
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Create Invoice" }),
20446
19501
  /* @__PURE__ */ jsxRuntime.jsxs(chunkYVL3XATO_cjs.Badge, { variant: "secondary", children: [
20447
19502
  "Step ",
20448
19503
  step,
@@ -20451,7 +19506,7 @@ function CreateInvoiceModal({
20451
19506
  ]
20452
19507
  }
20453
19508
  ) }),
20454
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
19509
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
20455
19510
  errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
20456
19511
  "div",
20457
19512
  {
@@ -20477,7 +19532,7 @@ function CreateInvoiceModal({
20477
19532
  }
20478
19533
  ),
20479
19534
  /* @__PURE__ */ jsxRuntime.jsx(
20480
- chunkXEEVDZDK_cjs.Select,
19535
+ chunkIGSIWNX3_cjs.Select,
20481
19536
  {
20482
19537
  label: "Employer",
20483
19538
  options: employerOptions,
@@ -20712,7 +19767,7 @@ function CreateInvoiceModal({
20712
19767
  )
20713
19768
  ] })
20714
19769
  ] }),
20715
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsxs(
19770
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsxs(
20716
19771
  "div",
20717
19772
  {
20718
19773
  "data-slot": "invoice-modal-footer",
@@ -20841,9 +19896,9 @@ function CreateReferralModal({
20841
19896
  });
20842
19897
  };
20843
19898
  const isValid = employee && selectedServices.size > 0;
20844
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { "data-slot": "referral-modal", onSubmit: handleSubmit, children: [
20845
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Create Referral" }) }),
20846
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
19899
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { "data-slot": "referral-modal", onSubmit: handleSubmit, children: [
19900
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Create Referral" }) }),
19901
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
20847
19902
  errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
20848
19903
  "div",
20849
19904
  {
@@ -21056,7 +20111,7 @@ function CreateReferralModal({
21056
20111
  }
21057
20112
  )
21058
20113
  ] }),
21059
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
20114
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
21060
20115
  /* @__PURE__ */ jsxRuntime.jsx(
21061
20116
  chunkIINZWUGK_cjs.Button,
21062
20117
  {
@@ -21131,9 +20186,9 @@ function EditUserRoleModal({
21131
20186
  if (!user || !selectedRoleId || !onSave) return;
21132
20187
  onSave({ userId: user.id, roleId: selectedRoleId });
21133
20188
  };
21134
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "md", children: [
21135
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Edit User Role" }) }),
21136
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
20189
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "md", children: [
20190
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Edit User Role" }) }),
20191
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
21137
20192
  user && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted rounded-lg p-3", children: [
21138
20193
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-medium", children: user.name }),
21139
20194
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground/70 text-sm", children: user.email })
@@ -21168,7 +20223,7 @@ function EditUserRoleModal({
21168
20223
  )
21169
20224
  ] }) }),
21170
20225
  /* @__PURE__ */ jsxRuntime.jsx(
21171
- chunkXEEVDZDK_cjs.Select,
20226
+ chunkIGSIWNX3_cjs.Select,
21172
20227
  {
21173
20228
  label: "Role",
21174
20229
  value: selectedRoleId,
@@ -21193,7 +20248,7 @@ function EditUserRoleModal({
21193
20248
  )) })
21194
20249
  ] })
21195
20250
  ] }),
21196
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
20251
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
21197
20252
  /* @__PURE__ */ jsxRuntime.jsx(
21198
20253
  chunkIINZWUGK_cjs.Button,
21199
20254
  {
@@ -21435,7 +20490,7 @@ function EmployeeForm({
21435
20490
  }
21436
20491
  ),
21437
20492
  /* @__PURE__ */ jsxRuntime.jsx(
21438
- chunkXEEVDZDK_cjs.Select,
20493
+ chunkIGSIWNX3_cjs.Select,
21439
20494
  {
21440
20495
  label: selectDepartments,
21441
20496
  value: selectedDepartments[0] ?? "",
@@ -21550,7 +20605,7 @@ function EmployeeForm({
21550
20605
  }
21551
20606
  ) }),
21552
20607
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-32", children: /* @__PURE__ */ jsxRuntime.jsx(
21553
- chunkXEEVDZDK_cjs.Select,
20608
+ chunkIGSIWNX3_cjs.Select,
21554
20609
  {
21555
20610
  label: index === 0 ? "Type" : void 0,
21556
20611
  "aria-label": index > 0 ? "Phone type" : void 0,
@@ -22947,12 +22002,12 @@ function EmployerServiceModal({
22947
22002
  if (!onSave) return;
22948
22003
  onSave(config);
22949
22004
  };
22950
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
22951
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
22005
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
22006
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
22952
22007
  "Configure Service for ",
22953
22008
  employer?.name || "Employer"
22954
22009
  ] }) }),
22955
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", "data-slot": "employer-service-body", children: [
22010
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", "data-slot": "employer-service-body", children: [
22956
22011
  errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
22957
22012
  "div",
22958
22013
  {
@@ -23205,7 +22260,7 @@ function EmployerServiceModal({
23205
22260
  )
23206
22261
  ] })
23207
22262
  ] }),
23208
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
22263
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
23209
22264
  /* @__PURE__ */ jsxRuntime.jsx(
23210
22265
  chunkIINZWUGK_cjs.Button,
23211
22266
  {
@@ -25286,7 +24341,7 @@ function InventoryManager({
25286
24341
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: "No inventory changes recorded yet." })
25287
24342
  ] }),
25288
24343
  /* @__PURE__ */ jsxRuntime.jsxs(
25289
- chunkL52N6BEN_cjs.Modal,
24344
+ chunkAUOTJQGO_cjs.Modal,
25290
24345
  {
25291
24346
  open: showUpdateModal,
25292
24347
  onOpenChange: (open) => {
@@ -25296,8 +24351,8 @@ function InventoryManager({
25296
24351
  },
25297
24352
  size: "lg",
25298
24353
  children: [
25299
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Inventory Manager" }) }),
25300
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
24354
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Inventory Manager" }) }),
24355
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
25301
24356
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-lg font-semibold", children: serviceName }) }),
25302
24357
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-muted-foreground mb-2 text-sm font-medium", children: "Update Inventory" }) }),
25303
24358
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-0", children: [
@@ -25412,7 +24467,7 @@ function InventoryManager({
25412
24467
  ] })
25413
24468
  ] })
25414
24469
  ] }),
25415
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
24470
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
25416
24471
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "outline", onClick: onUpdateModalClose, children: "Cancel" }),
25417
24472
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { onClick: handleSubmit, disabled: !updateAmount || isLoading, children: isLoading ? "Saving..." : "Save" })
25418
24473
  ] })
@@ -25459,9 +24514,9 @@ function InviteUserModal({
25459
24514
  });
25460
24515
  };
25461
24516
  const isValid = email && roleId;
25462
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
25463
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Invite User" }) }),
25464
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", "data-slot": "invite-user-body", children: [
24517
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
24518
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Invite User" }) }),
24519
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", "data-slot": "invite-user-body", children: [
25465
24520
  entityDisplayName && /* @__PURE__ */ jsxRuntime.jsx(
25466
24521
  "div",
25467
24522
  {
@@ -25574,7 +24629,7 @@ function InviteUserModal({
25574
24629
  }
25575
24630
  ),
25576
24631
  /* @__PURE__ */ jsxRuntime.jsx(
25577
- chunkXEEVDZDK_cjs.Select,
24632
+ chunkIGSIWNX3_cjs.Select,
25578
24633
  {
25579
24634
  label: "Role",
25580
24635
  value: roleId,
@@ -25619,7 +24674,7 @@ function InviteUserModal({
25619
24674
  }
25620
24675
  )
25621
24676
  ] }),
25622
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
24677
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
25623
24678
  /* @__PURE__ */ jsxRuntime.jsx(
25624
24679
  chunkIINZWUGK_cjs.Button,
25625
24680
  {
@@ -29034,7 +28089,7 @@ var defaultOrderTabs = [
29034
28089
  { id: "rejected", label: "Rejected", statuses: ["rejected", "cancelled"] }
29035
28090
  ];
29036
28091
  function orderToMedication(order) {
29037
- const sig = order.detail ? chunk6XDPJWSC_cjs.parseSig(order.detail) : void 0;
28092
+ const sig = order.detail ? chunkE3KC2XLN_cjs.parseSig(order.detail) : void 0;
29038
28093
  return {
29039
28094
  id: order.orderId,
29040
28095
  name: order.display,
@@ -29042,7 +28097,7 @@ function orderToMedication(order) {
29042
28097
  status: "unreconciled",
29043
28098
  indication: order.indication,
29044
28099
  pharmacyNotes: order.notes,
29045
- ...chunk6XDPJWSC_cjs.labelToMedicationFields(order.display),
28100
+ ...chunkE3KC2XLN_cjs.labelToMedicationFields(order.display),
29046
28101
  ...sig && {
29047
28102
  route: sig.route,
29048
28103
  frequency: sig.frequency,
@@ -29113,7 +28168,7 @@ function BaseOrderEditor({
29113
28168
  onSave
29114
28169
  }) {
29115
28170
  const config = TYPE_CONFIG[type];
29116
- const ambientCodeLookup = chunk6XDPJWSC_cjs.useCodeLookupConfig();
28171
+ const ambientCodeLookup = chunkE3KC2XLN_cjs.useCodeLookupConfig();
29117
28172
  const effectiveCodeLookup = codeLookup === false ? void 0 : codeLookup ?? ambientCodeLookup ?? void 0;
29118
28173
  const [draft, setDraft] = React13__namespace.useState(
29119
28174
  () => order ?? {
@@ -29130,12 +28185,12 @@ function BaseOrderEditor({
29130
28185
  const patch = (p) => setDraft((prev) => ({ ...prev, ...p }));
29131
28186
  const canSave = draft.display.trim().length > 0;
29132
28187
  if (!open) return null;
29133
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open: true, onOpenChange: (o) => !o && onClose(), size: "lg", children: [
29134
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
29135
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: order ? `Correct ${config.noun}` : `Add ${config.noun}` }),
29136
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
28188
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open: true, onOpenChange: (o) => !o && onClose(), size: "lg", children: [
28189
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
28190
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: order ? `Correct ${config.noun}` : `Add ${config.noun}` }),
28191
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
29137
28192
  ] }),
29138
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: bodyRef, className: "contents", children: [
28193
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: bodyRef, className: "contents", children: [
29139
28194
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-3", "aria-label": "Order", children: [
29140
28195
  effectiveCodeLookup ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
29141
28196
  /* @__PURE__ */ jsxRuntime.jsx(chunkAIJAFPGJ_cjs.Label, { htmlFor: "ord-search", children: "Order" }),
@@ -29268,7 +28323,7 @@ function BaseOrderEditor({
29268
28323
  ] })
29269
28324
  ] })
29270
28325
  ] }) }),
29271
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
28326
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
29272
28327
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
29273
28328
  /* @__PURE__ */ jsxRuntime.jsx(
29274
28329
  chunkIINZWUGK_cjs.Button,
@@ -29312,7 +28367,7 @@ function OrderEditor({
29312
28367
  display: ""
29313
28368
  };
29314
28369
  return /* @__PURE__ */ jsxRuntime.jsx(
29315
- chunk6XDPJWSC_cjs.MedicationEditor,
28370
+ chunkE3KC2XLN_cjs.MedicationEditor,
29316
28371
  {
29317
28372
  open,
29318
28373
  medication: order ? orderToMedication(order) : void 0,
@@ -30294,7 +29349,7 @@ var PatientHeader = React13__namespace.forwardRef(
30294
29349
  (flag) => flag.charAt(0).toUpperCase() + flag.slice(1).toLowerCase()
30295
29350
  ).join(" \xB7 ") }),
30296
29351
  /* @__PURE__ */ jsxRuntime.jsxs(
30297
- chunkL52N6BEN_cjs.Modal,
29352
+ chunkAUOTJQGO_cjs.Modal,
30298
29353
  {
30299
29354
  open: contactModalOpen,
30300
29355
  onOpenChange: (isOpen) => {
@@ -30302,11 +29357,11 @@ var PatientHeader = React13__namespace.forwardRef(
30302
29357
  },
30303
29358
  size: "sm",
30304
29359
  children: [
30305
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
30306
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Contact Information" }),
30307
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
29360
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
29361
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Contact Information" }),
29362
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
30308
29363
  ] }),
30309
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
29364
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
30310
29365
  patient.email && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
30311
29366
  /* @__PURE__ */ jsxRuntime.jsx(
30312
29367
  chunkL7L5S2HO_cjs.Mail,
@@ -30335,7 +29390,7 @@ var PatientHeader = React13__namespace.forwardRef(
30335
29390
  ] }),
30336
29391
  !patient.email && !patient.phone && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: "No contact information available." })
30337
29392
  ] }) }),
30338
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
29393
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
30339
29394
  chunkIINZWUGK_cjs.Button,
30340
29395
  {
30341
29396
  variant: "secondary",
@@ -30347,7 +29402,7 @@ var PatientHeader = React13__namespace.forwardRef(
30347
29402
  }
30348
29403
  ),
30349
29404
  /* @__PURE__ */ jsxRuntime.jsxs(
30350
- chunkL52N6BEN_cjs.Modal,
29405
+ chunkAUOTJQGO_cjs.Modal,
30351
29406
  {
30352
29407
  open: !!addModalType,
30353
29408
  onOpenChange: (isOpen) => {
@@ -30358,14 +29413,14 @@ var PatientHeader = React13__namespace.forwardRef(
30358
29413
  },
30359
29414
  size: "md",
30360
29415
  children: [
30361
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
30362
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalTitle, { children: [
29416
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
29417
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalTitle, { children: [
30363
29418
  "Add ",
30364
29419
  addEntityLabel
30365
29420
  ] }),
30366
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
29421
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
30367
29422
  ] }),
30368
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
29423
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
30369
29424
  /* @__PURE__ */ jsxRuntime.jsx(
30370
29425
  chunkZ5S5JEJD_cjs.Input,
30371
29426
  {
@@ -30478,7 +29533,7 @@ var PatientHeader = React13__namespace.forwardRef(
30478
29533
  )
30479
29534
  ] })
30480
29535
  ] }) }),
30481
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
29536
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
30482
29537
  /* @__PURE__ */ jsxRuntime.jsx(
30483
29538
  chunkIINZWUGK_cjs.Button,
30484
29539
  {
@@ -30511,7 +29566,7 @@ var PatientHeader = React13__namespace.forwardRef(
30511
29566
  }
30512
29567
  ),
30513
29568
  /* @__PURE__ */ jsxRuntime.jsxs(
30514
- chunkL52N6BEN_cjs.Modal,
29569
+ chunkAUOTJQGO_cjs.Modal,
30515
29570
  {
30516
29571
  open: editPatientOpen,
30517
29572
  onOpenChange: (isOpen) => {
@@ -30522,11 +29577,11 @@ var PatientHeader = React13__namespace.forwardRef(
30522
29577
  },
30523
29578
  size: "2xl",
30524
29579
  children: [
30525
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
30526
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Edit Patient" }),
30527
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
29580
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
29581
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Edit Patient" }),
29582
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
30528
29583
  ] }),
30529
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
29584
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
30530
29585
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-4", children: [
30531
29586
  /* @__PURE__ */ jsxRuntime.jsx(
30532
29587
  chunkZ5S5JEJD_cjs.Input,
@@ -30707,7 +29762,7 @@ var PatientHeader = React13__namespace.forwardRef(
30707
29762
  }
30708
29763
  )
30709
29764
  ] }) }),
30710
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
29765
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
30711
29766
  /* @__PURE__ */ jsxRuntime.jsx(
30712
29767
  chunkIINZWUGK_cjs.Button,
30713
29768
  {
@@ -31968,7 +31023,7 @@ function RelevanceControl({
31968
31023
  {
31969
31024
  role: "toolbar",
31970
31025
  "aria-label": `Relevance for ${labelPrefix}`,
31971
- onKeyDown: chunk6XDPJWSC_cjs.toolbarKeyNav,
31026
+ onKeyDown: chunkE3KC2XLN_cjs.toolbarKeyNav,
31972
31027
  className: "border-border flex shrink-0 items-center overflow-hidden rounded-md border",
31973
31028
  children: RELEVANCE_ORDER.map((relevance) => {
31974
31029
  const active = value === relevance;
@@ -36390,7 +35445,7 @@ function RowActionsMenu({
36390
35445
  const showRemove = onRemove && !isCurrentUser;
36391
35446
  const needsSeparator = (showResend || onEditRole) && showRemove;
36392
35447
  return /* @__PURE__ */ jsxRuntime.jsxs(
36393
- chunk4SM3I7WE_cjs.Dropdown,
35448
+ chunkRXPEZXAB_cjs.Dropdown,
36394
35449
  {
36395
35450
  trigger: /* @__PURE__ */ jsxRuntime.jsx(
36396
35451
  chunkIINZWUGK_cjs.Button,
@@ -36406,7 +35461,7 @@ function RowActionsMenu({
36406
35461
  placement: "bottom-end",
36407
35462
  children: [
36408
35463
  showResend && /* @__PURE__ */ jsxRuntime.jsx(
36409
- chunk4SM3I7WE_cjs.DropdownItem,
35464
+ chunkRXPEZXAB_cjs.DropdownItem,
36410
35465
  {
36411
35466
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Send, { size: 14 }),
36412
35467
  onClick: () => onResendInvite?.(user),
@@ -36414,16 +35469,16 @@ function RowActionsMenu({
36414
35469
  }
36415
35470
  ),
36416
35471
  onEditRole && /* @__PURE__ */ jsxRuntime.jsx(
36417
- chunk4SM3I7WE_cjs.DropdownItem,
35472
+ chunkRXPEZXAB_cjs.DropdownItem,
36418
35473
  {
36419
35474
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Pencil, { size: 14 }),
36420
35475
  onClick: () => onEditRole(user),
36421
35476
  children: "Edit Role"
36422
35477
  }
36423
35478
  ),
36424
- needsSeparator && /* @__PURE__ */ jsxRuntime.jsx(chunk4SM3I7WE_cjs.DropdownSeparator, {}),
35479
+ needsSeparator && /* @__PURE__ */ jsxRuntime.jsx(chunkRXPEZXAB_cjs.DropdownSeparator, {}),
36425
35480
  showRemove && /* @__PURE__ */ jsxRuntime.jsx(
36426
- chunk4SM3I7WE_cjs.DropdownItem,
35481
+ chunkRXPEZXAB_cjs.DropdownItem,
36427
35482
  {
36428
35483
  variant: "danger",
36429
35484
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.Trash2, { size: 14 }),
@@ -37177,9 +36232,9 @@ function RejectionModal({
37177
36232
  details: details.trim() || void 0
37178
36233
  });
37179
36234
  };
37180
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "md", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
37181
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: title }) }),
37182
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
36235
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "md", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
36236
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: title }) }),
36237
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
37183
36238
  (description || itemDescription) && /* @__PURE__ */ jsxRuntime.jsxs(
37184
36239
  "div",
37185
36240
  {
@@ -37268,7 +36323,7 @@ function RejectionModal({
37268
36323
  needsDetails && !details.trim() && selectedReasonId && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive mt-1 text-xs", children: "Please provide additional details for this rejection reason." })
37269
36324
  ] })
37270
36325
  ] }),
37271
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
36326
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
37272
36327
  /* @__PURE__ */ jsxRuntime.jsx(
37273
36328
  chunkIINZWUGK_cjs.Button,
37274
36329
  {
@@ -37446,7 +36501,7 @@ function ReportDashboard({
37446
36501
  ] }),
37447
36502
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
37448
36503
  /* @__PURE__ */ jsxRuntime.jsx(
37449
- chunkXEEVDZDK_cjs.Select,
36504
+ chunkIGSIWNX3_cjs.Select,
37450
36505
  {
37451
36506
  "aria-label": "Date range",
37452
36507
  options: Array.isArray(dateRangeOptions) && dateRangeOptions.every(
@@ -37992,9 +37047,9 @@ function ResultsEntryModal({
37992
37047
  const handleSubmitClick = () => {
37993
37048
  formRef.current?.submit();
37994
37049
  };
37995
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "2xl", children: [
37996
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: serviceName }) }),
37997
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { children: [
37050
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "2xl", children: [
37051
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: serviceName }) }),
37052
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { children: [
37998
37053
  employeeName && /* @__PURE__ */ jsxRuntime.jsx(
37999
37054
  "div",
38000
37055
  {
@@ -38026,7 +37081,7 @@ function ResultsEntryModal({
38026
37081
  }
38027
37082
  )
38028
37083
  ] }),
38029
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
37084
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
38030
37085
  /* @__PURE__ */ jsxRuntime.jsx(
38031
37086
  chunkIINZWUGK_cjs.Button,
38032
37087
  {
@@ -39796,7 +38851,7 @@ function ServiceGeneralSettings({
39796
38851
  }
39797
38852
  ),
39798
38853
  categories.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
39799
- chunkXEEVDZDK_cjs.Select,
38854
+ chunkIGSIWNX3_cjs.Select,
39800
38855
  {
39801
38856
  label: "Category",
39802
38857
  value: categoryId || "",
@@ -40718,13 +39773,13 @@ function ServicePricingManager({
40718
39773
  ] }) })
40719
39774
  ] }) }),
40720
39775
  /* @__PURE__ */ jsxRuntime.jsxs(
40721
- chunkL52N6BEN_cjs.Modal,
39776
+ chunkAUOTJQGO_cjs.Modal,
40722
39777
  {
40723
39778
  open: !!editingService,
40724
39779
  onOpenChange: () => setEditingService(null),
40725
39780
  children: [
40726
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Edit Service Price" }) }),
40727
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
39781
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Edit Service Price" }) }),
39782
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
40728
39783
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-gray-900 dark:text-white", children: editingService?.serviceName }),
40729
39784
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
40730
39785
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -40770,16 +39825,16 @@ function ServicePricingManager({
40770
39825
  )
40771
39826
  ] })
40772
39827
  ] }),
40773
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
39828
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
40774
39829
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "ghost", onClick: () => setEditingService(null), children: "Cancel" }),
40775
39830
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { onClick: handleSaveEdit, disabled: isSaving, children: isSaving ? "Saving..." : "Save Changes" })
40776
39831
  ] })
40777
39832
  ]
40778
39833
  }
40779
39834
  ),
40780
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.Modal, { open: showBulkModal, onOpenChange: setShowBulkModal, children: [
40781
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: "Bulk Price Adjustment" }) }),
40782
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "space-y-4", children: [
39835
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.Modal, { open: showBulkModal, onOpenChange: setShowBulkModal, children: [
39836
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: "Bulk Price Adjustment" }) }),
39837
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "space-y-4", children: [
40783
39838
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground text-sm", children: [
40784
39839
  "Apply adjustment to ",
40785
39840
  filteredServices.length,
@@ -40820,7 +39875,7 @@ function ServicePricingManager({
40820
39875
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-1 text-xs", children: "Use negative values to decrease prices" })
40821
39876
  ] })
40822
39877
  ] }),
40823
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
39878
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
40824
39879
  /* @__PURE__ */ jsxRuntime.jsx(chunkIINZWUGK_cjs.Button, { variant: "ghost", onClick: () => setShowBulkModal(false), children: "Cancel" }),
40825
39880
  /* @__PURE__ */ jsxRuntime.jsx(
40826
39881
  chunkIINZWUGK_cjs.Button,
@@ -40951,7 +40006,7 @@ function ServiceShippingSettings({
40951
40006
  "data-slot": "shipping-settings-content",
40952
40007
  children: [
40953
40008
  shippingMethods.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
40954
- chunkXEEVDZDK_cjs.Select,
40009
+ chunkIGSIWNX3_cjs.Select,
40955
40010
  {
40956
40011
  label: "Shipping Method",
40957
40012
  value: selectedMethodId || "",
@@ -41033,7 +40088,7 @@ function ServiceShippingSettings({
41033
40088
  }
41034
40089
  ) }),
41035
40090
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-1", children: /* @__PURE__ */ jsxRuntime.jsx(
41036
- chunkXEEVDZDK_cjs.Select,
40091
+ chunkIGSIWNX3_cjs.Select,
41037
40092
  {
41038
40093
  label: "State",
41039
40094
  value: address.state,
@@ -41149,9 +40204,9 @@ function SetupServiceModal({
41149
40204
  onSave(formData);
41150
40205
  };
41151
40206
  const isValid = formData.name.trim() && formData.price >= 0;
41152
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
41153
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: title }) }),
41154
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalBody, { className: "min-w-[320px] space-y-4", children: [
40207
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
40208
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: title }) }),
40209
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalBody, { className: "min-w-[320px] space-y-4", children: [
41155
40210
  errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
41156
40211
  "div",
41157
40212
  {
@@ -41161,7 +40216,7 @@ function SetupServiceModal({
41161
40216
  }
41162
40217
  ),
41163
40218
  showServicePicker && availableServices.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
41164
- chunkXEEVDZDK_cjs.Select,
40219
+ chunkIGSIWNX3_cjs.Select,
41165
40220
  {
41166
40221
  label: "Select Service",
41167
40222
  value: formData.serviceId || "",
@@ -41209,7 +40264,7 @@ function SetupServiceModal({
41209
40264
  )
41210
40265
  ] }),
41211
40266
  categories.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
41212
- chunkXEEVDZDK_cjs.Select,
40267
+ chunkIGSIWNX3_cjs.Select,
41213
40268
  {
41214
40269
  label: "Category",
41215
40270
  value: formData.categoryId || "",
@@ -41350,7 +40405,7 @@ function SetupServiceModal({
41350
40405
  )
41351
40406
  ] })
41352
40407
  ] }),
41353
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalFooter, { children: [
40408
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalFooter, { children: [
41354
40409
  /* @__PURE__ */ jsxRuntime.jsx(
41355
40410
  chunkIINZWUGK_cjs.Button,
41356
40411
  {
@@ -41406,7 +40461,7 @@ function SidebarProvider({
41406
40461
  defaultExpandedGroup = null,
41407
40462
  mobileBreakpoint = "(max-width: 1023px)"
41408
40463
  }) {
41409
- const isMobileViewport = chunkXJTFZLWH_cjs.useMediaQuery(mobileBreakpoint);
40464
+ const isMobileViewport = chunkQO6PRHDX_cjs.useMediaQuery(mobileBreakpoint);
41410
40465
  const [isCollapsed, setIsCollapsed] = React13.useState(() => {
41411
40466
  if (typeof window !== "undefined" && persistCollapsed) {
41412
40467
  const stored = localStorage.getItem(storageKey);
@@ -41587,11 +40642,11 @@ function Sidebar({
41587
40642
  }) {
41588
40643
  const { isCollapsed, isMobileOpen, closeMobile, isMobileViewport } = useSidebar();
41589
40644
  const navRef = React13.useRef(null);
41590
- const isRtl = chunkXJTFZLWH_cjs.useDirection(navRef) === "rtl";
40645
+ const isRtl = chunkQO6PRHDX_cjs.useDirection(navRef) === "rtl";
41591
40646
  const width = isMobileViewport ? expandedWidth : isCollapsed ? collapsedWidth : expandedWidth;
41592
40647
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
41593
- isMobileViewport && /* @__PURE__ */ jsxRuntime.jsx(chunkBN75TLUN_cjs.AnimatedPresence, { children: isMobileOpen && /* @__PURE__ */ jsxRuntime.jsx(
41594
- chunkBN75TLUN_cjs.Animated,
40648
+ isMobileViewport && /* @__PURE__ */ jsxRuntime.jsx(chunkNV2CWBI2_cjs.AnimatedPresence, { children: isMobileOpen && /* @__PURE__ */ jsxRuntime.jsx(
40649
+ chunkNV2CWBI2_cjs.Animated,
41595
40650
  {
41596
40651
  preset: "overlay",
41597
40652
  mode: "presence",
@@ -41603,7 +40658,7 @@ function Sidebar({
41603
40658
  "sidebar-backdrop"
41604
40659
  ) }),
41605
40660
  /* @__PURE__ */ jsxRuntime.jsx(
41606
- chunkBN75TLUN_cjs.Animated,
40661
+ chunkNV2CWBI2_cjs.Animated,
41607
40662
  {
41608
40663
  ref: navRef,
41609
40664
  as: "nav",
@@ -41763,9 +40818,9 @@ function SidebarNavGroup({
41763
40818
  children: icon
41764
40819
  }
41765
40820
  ),
41766
- /* @__PURE__ */ jsxRuntime.jsxs(chunkBN75TLUN_cjs.AnimatedPresence, { initial: false, children: [
40821
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkNV2CWBI2_cjs.AnimatedPresence, { initial: false, children: [
41767
40822
  !showCollapsed && /* @__PURE__ */ jsxRuntime.jsx(
41768
- chunkBN75TLUN_cjs.Animated,
40823
+ chunkNV2CWBI2_cjs.Animated,
41769
40824
  {
41770
40825
  as: "span",
41771
40826
  preset: "sidebarLabel",
@@ -41776,7 +40831,7 @@ function SidebarNavGroup({
41776
40831
  "label"
41777
40832
  ),
41778
40833
  !showCollapsed && /* @__PURE__ */ jsxRuntime.jsx(
41779
- chunkBN75TLUN_cjs.Animated,
40834
+ chunkNV2CWBI2_cjs.Animated,
41780
40835
  {
41781
40836
  as: "span",
41782
40837
  preset: "sidebarLabel",
@@ -41837,9 +40892,9 @@ function SidebarNavItem({
41837
40892
  children: icon
41838
40893
  }
41839
40894
  ),
41840
- /* @__PURE__ */ jsxRuntime.jsxs(chunkBN75TLUN_cjs.AnimatedPresence, { initial: false, children: [
40895
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkNV2CWBI2_cjs.AnimatedPresence, { initial: false, children: [
41841
40896
  !showCollapsed && /* @__PURE__ */ jsxRuntime.jsx(
41842
- chunkBN75TLUN_cjs.Animated,
40897
+ chunkNV2CWBI2_cjs.Animated,
41843
40898
  {
41844
40899
  as: "span",
41845
40900
  preset: "sidebarLabel",
@@ -41850,7 +40905,7 @@ function SidebarNavItem({
41850
40905
  "label"
41851
40906
  ),
41852
40907
  !showCollapsed && badge && /* @__PURE__ */ jsxRuntime.jsx(
41853
- chunkBN75TLUN_cjs.Animated,
40908
+ chunkNV2CWBI2_cjs.Animated,
41854
40909
  {
41855
40910
  as: "span",
41856
40911
  preset: "sidebarLabel",
@@ -44813,7 +43868,7 @@ function WebChartReportViewer({
44813
43868
  }
44814
43869
  ),
44815
43870
  /* @__PURE__ */ jsxRuntime.jsxs(
44816
- chunkL52N6BEN_cjs.Modal,
43871
+ chunkAUOTJQGO_cjs.Modal,
44817
43872
  {
44818
43873
  open: modalOpen,
44819
43874
  onOpenChange: (open) => {
@@ -44823,19 +43878,19 @@ function WebChartReportViewer({
44823
43878
  },
44824
43879
  size: "4xl",
44825
43880
  children: [
44826
- /* @__PURE__ */ jsxRuntime.jsxs(chunkL52N6BEN_cjs.ModalHeader, { children: [
43881
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkAUOTJQGO_cjs.ModalHeader, { children: [
44827
43882
  /* @__PURE__ */ jsxRuntime.jsxs(
44828
43883
  "div",
44829
43884
  {
44830
43885
  "data-slot": "report-modal-header",
44831
43886
  className: "flex items-center gap-3",
44832
43887
  children: [
44833
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalTitle, { children: currentReport?.name || "Report Results" }),
43888
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalTitle, { children: currentReport?.name || "Report Results" }),
44834
43889
  reportResult?.error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "h-5 w-5 text-yellow-500" }) : reportResult?.success ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5 text-green-500" }) : null
44835
43890
  ]
44836
43891
  }
44837
43892
  ),
44838
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalClose, {})
43893
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalClose, {})
44839
43894
  ] }),
44840
43895
  /* @__PURE__ */ jsxRuntime.jsxs(
44841
43896
  "div",
@@ -44886,7 +43941,7 @@ function WebChartReportViewer({
44886
43941
  ]
44887
43942
  }
44888
43943
  ),
44889
- /* @__PURE__ */ jsxRuntime.jsx(chunkL52N6BEN_cjs.ModalBody, { className: "max-h-[60vh] overflow-auto", children: loadingReport ? /* @__PURE__ */ jsxRuntime.jsxs(
43944
+ /* @__PURE__ */ jsxRuntime.jsx(chunkAUOTJQGO_cjs.ModalBody, { className: "max-h-[60vh] overflow-auto", children: loadingReport ? /* @__PURE__ */ jsxRuntime.jsxs(
44890
43945
  "div",
44891
43946
  {
44892
43947
  "data-slot": "report-loading",
@@ -44997,7 +44052,7 @@ function ReportTimeRange({
44997
44052
  className: chunkS5RVSXDV_cjs.cn("flex flex-wrap items-center gap-3", className),
44998
44053
  children: [
44999
44054
  /* @__PURE__ */ jsxRuntime.jsx(
45000
- chunkXEEVDZDK_cjs.Select,
44055
+ chunkIGSIWNX3_cjs.Select,
45001
44056
  {
45002
44057
  "aria-label": "Time range",
45003
44058
  value: preset,
@@ -45295,7 +44350,7 @@ Object.defineProperty(exports, "VisuallyHidden", {
45295
44350
  });
45296
44351
  Object.defineProperty(exports, "brands", {
45297
44352
  enumerable: true,
45298
- get: function () { return chunkSNEQXSC5_cjs.brands; }
44353
+ get: function () { return chunkVNAREBLV_cjs.brands; }
45299
44354
  });
45300
44355
  Object.defineProperty(exports, "webchartBrand", {
45301
44356
  enumerable: true,
@@ -45559,163 +44614,159 @@ Object.defineProperty(exports, "getToolIcon", {
45559
44614
  });
45560
44615
  Object.defineProperty(exports, "AttachmentPreview", {
45561
44616
  enumerable: true,
45562
- get: function () { return chunkFQBTGS3E_cjs.AttachmentPreview; }
44617
+ get: function () { return chunkOFUKTVBN_cjs.AttachmentPreview; }
45563
44618
  });
45564
44619
  Object.defineProperty(exports, "ConversationHeader", {
45565
44620
  enumerable: true,
45566
- get: function () { return chunkFQBTGS3E_cjs.ConversationHeader; }
44621
+ get: function () { return chunkOFUKTVBN_cjs.ConversationHeader; }
45567
44622
  });
45568
44623
  Object.defineProperty(exports, "ConversationListItem", {
45569
44624
  enumerable: true,
45570
- get: function () { return chunkFQBTGS3E_cjs.ConversationListItem; }
44625
+ get: function () { return chunkOFUKTVBN_cjs.ConversationListItem; }
45571
44626
  });
45572
44627
  Object.defineProperty(exports, "ConversationListSkeleton", {
45573
44628
  enumerable: true,
45574
- get: function () { return chunkFQBTGS3E_cjs.ConversationListSkeleton; }
44629
+ get: function () { return chunkOFUKTVBN_cjs.ConversationListSkeleton; }
45575
44630
  });
45576
44631
  Object.defineProperty(exports, "DateSeparator", {
45577
44632
  enumerable: true,
45578
- get: function () { return chunkFQBTGS3E_cjs.DateSeparator; }
44633
+ get: function () { return chunkOFUKTVBN_cjs.DateSeparator; }
45579
44634
  });
45580
44635
  Object.defineProperty(exports, "EmptyState", {
45581
44636
  enumerable: true,
45582
- get: function () { return chunkFQBTGS3E_cjs.EmptyState; }
44637
+ get: function () { return chunkOFUKTVBN_cjs.EmptyState; }
45583
44638
  });
45584
44639
  Object.defineProperty(exports, "LightboxModal", {
45585
44640
  enumerable: true,
45586
- get: function () { return chunkFQBTGS3E_cjs.LightboxModal; }
44641
+ get: function () { return chunkOFUKTVBN_cjs.LightboxModal; }
45587
44642
  });
45588
44643
  Object.defineProperty(exports, "LoadMoreButton", {
45589
44644
  enumerable: true,
45590
- get: function () { return chunkFQBTGS3E_cjs.LoadMoreButton; }
44645
+ get: function () { return chunkOFUKTVBN_cjs.LoadMoreButton; }
45591
44646
  });
45592
44647
  Object.defineProperty(exports, "MessageBubble", {
45593
44648
  enumerable: true,
45594
- get: function () { return chunkFQBTGS3E_cjs.MessageBubble; }
44649
+ get: function () { return chunkOFUKTVBN_cjs.MessageBubble; }
45595
44650
  });
45596
44651
  Object.defineProperty(exports, "MessageList", {
45597
44652
  enumerable: true,
45598
- get: function () { return chunkFQBTGS3E_cjs.MessageList; }
44653
+ get: function () { return chunkOFUKTVBN_cjs.MessageList; }
45599
44654
  });
45600
44655
  Object.defineProperty(exports, "MessageStatusIcon", {
45601
44656
  enumerable: true,
45602
- get: function () { return chunkFQBTGS3E_cjs.MessageStatusIcon; }
44657
+ get: function () { return chunkOFUKTVBN_cjs.MessageStatusIcon; }
45603
44658
  });
45604
44659
  Object.defineProperty(exports, "MessageThread", {
45605
44660
  enumerable: true,
45606
- get: function () { return chunkFQBTGS3E_cjs.MessageThread; }
44661
+ get: function () { return chunkOFUKTVBN_cjs.MessageThread; }
45607
44662
  });
45608
44663
  Object.defineProperty(exports, "MessagingSplitView", {
45609
44664
  enumerable: true,
45610
- get: function () { return chunkFQBTGS3E_cjs.MessagingSplitView; }
44665
+ get: function () { return chunkOFUKTVBN_cjs.MessagingSplitView; }
45611
44666
  });
45612
44667
  Object.defineProperty(exports, "ReadReceiptIndicator", {
45613
44668
  enumerable: true,
45614
- get: function () { return chunkFQBTGS3E_cjs.ReadReceiptIndicator; }
44669
+ get: function () { return chunkOFUKTVBN_cjs.ReadReceiptIndicator; }
45615
44670
  });
45616
44671
  Object.defineProperty(exports, "SkeletonMessage", {
45617
44672
  enumerable: true,
45618
- get: function () { return chunkFQBTGS3E_cjs.SkeletonMessage; }
44673
+ get: function () { return chunkOFUKTVBN_cjs.SkeletonMessage; }
45619
44674
  });
45620
44675
  Object.defineProperty(exports, "TypingIndicator", {
45621
44676
  enumerable: true,
45622
- get: function () { return chunkFQBTGS3E_cjs.TypingIndicator; }
44677
+ get: function () { return chunkOFUKTVBN_cjs.TypingIndicator; }
45623
44678
  });
45624
44679
  Object.defineProperty(exports, "bubbleVariants", {
45625
44680
  enumerable: true,
45626
- get: function () { return chunkFQBTGS3E_cjs.bubbleVariants; }
44681
+ get: function () { return chunkOFUKTVBN_cjs.bubbleVariants; }
45627
44682
  });
45628
44683
  Object.defineProperty(exports, "formatDateLabel", {
45629
44684
  enumerable: true,
45630
- get: function () { return chunkFQBTGS3E_cjs.formatDateLabel; }
44685
+ get: function () { return chunkOFUKTVBN_cjs.formatDateLabel; }
45631
44686
  });
45632
44687
  Object.defineProperty(exports, "formatFileSize", {
45633
44688
  enumerable: true,
45634
- get: function () { return chunkFQBTGS3E_cjs.formatFileSize; }
44689
+ get: function () { return chunkOFUKTVBN_cjs.formatFileSize; }
45635
44690
  });
45636
44691
  Object.defineProperty(exports, "formatLastSeen", {
45637
44692
  enumerable: true,
45638
- get: function () { return chunkFQBTGS3E_cjs.formatLastSeen; }
44693
+ get: function () { return chunkOFUKTVBN_cjs.formatLastSeen; }
45639
44694
  });
45640
44695
  Object.defineProperty(exports, "getConversationSubtitle", {
45641
44696
  enumerable: true,
45642
- get: function () { return chunkFQBTGS3E_cjs.getConversationSubtitle; }
44697
+ get: function () { return chunkOFUKTVBN_cjs.getConversationSubtitle; }
45643
44698
  });
45644
44699
  Object.defineProperty(exports, "getConversationTitle", {
45645
44700
  enumerable: true,
45646
- get: function () { return chunkFQBTGS3E_cjs.getConversationTitle; }
44701
+ get: function () { return chunkOFUKTVBN_cjs.getConversationTitle; }
45647
44702
  });
45648
44703
  Object.defineProperty(exports, "groupMessagesByDate", {
45649
44704
  enumerable: true,
45650
- get: function () { return chunkFQBTGS3E_cjs.groupMessagesByDate; }
44705
+ get: function () { return chunkOFUKTVBN_cjs.groupMessagesByDate; }
45651
44706
  });
45652
44707
  Object.defineProperty(exports, "headerVariants", {
45653
44708
  enumerable: true,
45654
- get: function () { return chunkFQBTGS3E_cjs.headerVariants; }
44709
+ get: function () { return chunkOFUKTVBN_cjs.headerVariants; }
45655
44710
  });
45656
44711
  Object.defineProperty(exports, "isSameSenderGroup", {
45657
44712
  enumerable: true,
45658
- get: function () { return chunkFQBTGS3E_cjs.isSameSenderGroup; }
44713
+ get: function () { return chunkOFUKTVBN_cjs.isSameSenderGroup; }
45659
44714
  });
45660
44715
  Object.defineProperty(exports, "useMessageScroll", {
45661
44716
  enumerable: true,
45662
- get: function () { return chunkFQBTGS3E_cjs.useMessageScroll; }
44717
+ get: function () { return chunkOFUKTVBN_cjs.useMessageScroll; }
45663
44718
  });
45664
44719
  Object.defineProperty(exports, "useMessages", {
45665
44720
  enumerable: true,
45666
- get: function () { return chunkFQBTGS3E_cjs.useMessages; }
44721
+ get: function () { return chunkOFUKTVBN_cjs.useMessages; }
45667
44722
  });
45668
44723
  Object.defineProperty(exports, "useReadReceipts", {
45669
44724
  enumerable: true,
45670
- get: function () { return chunkFQBTGS3E_cjs.useReadReceipts; }
44725
+ get: function () { return chunkOFUKTVBN_cjs.useReadReceipts; }
44726
+ });
44727
+ Object.defineProperty(exports, "useTypingEmulation", {
44728
+ enumerable: true,
44729
+ get: function () { return chunkOFUKTVBN_cjs.useTypingEmulation; }
45671
44730
  });
45672
44731
  Object.defineProperty(exports, "useTypingIndicator", {
45673
44732
  enumerable: true,
45674
- get: function () { return chunkFQBTGS3E_cjs.useTypingIndicator; }
44733
+ get: function () { return chunkOFUKTVBN_cjs.useTypingIndicator; }
45675
44734
  });
45676
44735
  Object.defineProperty(exports, "AttachmentPicker", {
45677
44736
  enumerable: true,
45678
- get: function () { return chunk5BVFVXHN_cjs.AttachmentPicker; }
44737
+ get: function () { return chunkOYQ7GYAA_cjs.AttachmentPicker; }
45679
44738
  });
45680
44739
  Object.defineProperty(exports, "AttachmentPreviewItem", {
45681
44740
  enumerable: true,
45682
- get: function () { return chunk5BVFVXHN_cjs.AttachmentPreviewItem; }
44741
+ get: function () { return chunkOYQ7GYAA_cjs.AttachmentPreviewItem; }
45683
44742
  });
45684
44743
  Object.defineProperty(exports, "CameraButton", {
45685
44744
  enumerable: true,
45686
- get: function () { return chunk5BVFVXHN_cjs.CameraButton; }
44745
+ get: function () { return chunkOYQ7GYAA_cjs.CameraButton; }
45687
44746
  });
45688
- Object.defineProperty(exports, "CharacterCounter", {
44747
+ Object.defineProperty(exports, "ChatComposer", {
45689
44748
  enumerable: true,
45690
- get: function () { return chunk5BVFVXHN_cjs.CharacterCounter; }
44749
+ get: function () { return chunkOYQ7GYAA_cjs.ChatComposer; }
45691
44750
  });
45692
- Object.defineProperty(exports, "DragDropZone", {
45693
- enumerable: true,
45694
- get: function () { return chunk5BVFVXHN_cjs.DragDropZone; }
45695
- });
45696
- Object.defineProperty(exports, "MessageComposer", {
44751
+ Object.defineProperty(exports, "ComposerModelSelector", {
45697
44752
  enumerable: true,
45698
- get: function () { return chunk5BVFVXHN_cjs.MessageComposer; }
44753
+ get: function () { return chunkOYQ7GYAA_cjs.ComposerModelSelector; }
45699
44754
  });
45700
- Object.defineProperty(exports, "SendButton", {
44755
+ Object.defineProperty(exports, "DragDropZone", {
45701
44756
  enumerable: true,
45702
- get: function () { return chunk5BVFVXHN_cjs.SendButton; }
44757
+ get: function () { return chunkOYQ7GYAA_cjs.DragDropZone; }
45703
44758
  });
45704
44759
  Object.defineProperty(exports, "generateAttachmentId", {
45705
44760
  enumerable: true,
45706
- get: function () { return chunk5BVFVXHN_cjs.generateAttachmentId; }
44761
+ get: function () { return chunkOYQ7GYAA_cjs.generateAttachmentId; }
45707
44762
  });
45708
44763
  Object.defineProperty(exports, "getFileType", {
45709
44764
  enumerable: true,
45710
- get: function () { return chunk5BVFVXHN_cjs.getFileType; }
45711
- });
45712
- Object.defineProperty(exports, "sendButtonVariants", {
45713
- enumerable: true,
45714
- get: function () { return chunk5BVFVXHN_cjs.sendButtonVariants; }
44765
+ get: function () { return chunkOYQ7GYAA_cjs.getFileType; }
45715
44766
  });
45716
44767
  Object.defineProperty(exports, "validateFile", {
45717
44768
  enumerable: true,
45718
- get: function () { return chunk5BVFVXHN_cjs.validateFile; }
44769
+ get: function () { return chunkOYQ7GYAA_cjs.validateFile; }
45719
44770
  });
45720
44771
  Object.defineProperty(exports, "RecordButton", {
45721
44772
  enumerable: true,
@@ -45731,15 +44782,15 @@ Object.defineProperty(exports, "recordButtonVariants", {
45731
44782
  });
45732
44783
  Object.defineProperty(exports, "RichTextEditor", {
45733
44784
  enumerable: true,
45734
- get: function () { return chunk7KN6J7XV_cjs.RichTextEditor; }
44785
+ get: function () { return chunkOMAACCFW_cjs.RichTextEditor; }
45735
44786
  });
45736
44787
  Object.defineProperty(exports, "convertAngleBracketsToMustache", {
45737
44788
  enumerable: true,
45738
- get: function () { return chunk7KN6J7XV_cjs.convertAngleBracketsToMustache; }
44789
+ get: function () { return chunkOMAACCFW_cjs.convertAngleBracketsToMustache; }
45739
44790
  });
45740
44791
  Object.defineProperty(exports, "processDictation", {
45741
44792
  enumerable: true,
45742
- get: function () { return chunk7KN6J7XV_cjs.processDictation; }
44793
+ get: function () { return chunkOMAACCFW_cjs.processDictation; }
45743
44794
  });
45744
44795
  Object.defineProperty(exports, "DateButton", {
45745
44796
  enumerable: true,
@@ -45883,27 +44934,27 @@ Object.defineProperty(exports, "GlossaryTooltip", {
45883
44934
  });
45884
44935
  Object.defineProperty(exports, "Kbd", {
45885
44936
  enumerable: true,
45886
- get: function () { return chunkVTR2KGLY_cjs.Kbd; }
44937
+ get: function () { return chunkS3BCHPXT_cjs.Kbd; }
45887
44938
  });
45888
44939
  Object.defineProperty(exports, "KeyboardShortcutsOverlay", {
45889
44940
  enumerable: true,
45890
- get: function () { return chunkVTR2KGLY_cjs.KeyboardShortcutsOverlay; }
44941
+ get: function () { return chunkS3BCHPXT_cjs.KeyboardShortcutsOverlay; }
45891
44942
  });
45892
44943
  Object.defineProperty(exports, "CodeBlock", {
45893
44944
  enumerable: true,
45894
- get: function () { return chunkO7XHHTTP_cjs.CodeBlock; }
44945
+ get: function () { return chunkAZP3DDBT_cjs.CodeBlock; }
45895
44946
  });
45896
44947
  Object.defineProperty(exports, "MarkdownRenderer", {
45897
44948
  enumerable: true,
45898
- get: function () { return chunkO7XHHTTP_cjs.MarkdownRenderer; }
44949
+ get: function () { return chunkAZP3DDBT_cjs.MarkdownRenderer; }
45899
44950
  });
45900
44951
  Object.defineProperty(exports, "highlightCode", {
45901
44952
  enumerable: true,
45902
- get: function () { return chunkO7XHHTTP_cjs.highlightCode; }
44953
+ get: function () { return chunkAZP3DDBT_cjs.highlightCode; }
45903
44954
  });
45904
44955
  Object.defineProperty(exports, "useMarkdown", {
45905
44956
  enumerable: true,
45906
- get: function () { return chunkO7XHHTTP_cjs.useMarkdown; }
44957
+ get: function () { return chunkAZP3DDBT_cjs.useMarkdown; }
45907
44958
  });
45908
44959
  Object.defineProperty(exports, "CsvBlock", {
45909
44960
  enumerable: true,
@@ -45927,23 +44978,23 @@ Object.defineProperty(exports, "FenceBlock", {
45927
44978
  });
45928
44979
  Object.defineProperty(exports, "FillerWordsModal", {
45929
44980
  enumerable: true,
45930
- get: function () { return chunkFUFBRKOG_cjs.FillerWordsModal; }
44981
+ get: function () { return chunkKLJGJJHN_cjs.FillerWordsModal; }
45931
44982
  });
45932
44983
  Object.defineProperty(exports, "MediaEditor", {
45933
44984
  enumerable: true,
45934
- get: function () { return chunkFUFBRKOG_cjs.MediaEditor; }
44985
+ get: function () { return chunkKLJGJJHN_cjs.MediaEditor; }
45935
44986
  });
45936
44987
  Object.defineProperty(exports, "SilenceSettingsModal", {
45937
44988
  enumerable: true,
45938
- get: function () { return chunkFUFBRKOG_cjs.SilenceSettingsModal; }
44989
+ get: function () { return chunkKLJGJJHN_cjs.SilenceSettingsModal; }
45939
44990
  });
45940
44991
  Object.defineProperty(exports, "SpeedMarkerMenu", {
45941
44992
  enumerable: true,
45942
- get: function () { return chunkFUFBRKOG_cjs.SpeedMarkerMenu; }
44993
+ get: function () { return chunkKLJGJJHN_cjs.SpeedMarkerMenu; }
45943
44994
  });
45944
44995
  Object.defineProperty(exports, "WordEditorModal", {
45945
44996
  enumerable: true,
45946
- get: function () { return chunkFUFBRKOG_cjs.WordEditorModal; }
44997
+ get: function () { return chunkKLJGJJHN_cjs.WordEditorModal; }
45947
44998
  });
45948
44999
  Object.defineProperty(exports, "Slider", {
45949
45000
  enumerable: true,
@@ -45975,15 +45026,15 @@ Object.defineProperty(exports, "mediaPlayerVariants", {
45975
45026
  });
45976
45027
  Object.defineProperty(exports, "Collapsible", {
45977
45028
  enumerable: true,
45978
- get: function () { return chunkIUDY6S7I_cjs.Collapsible; }
45029
+ get: function () { return chunk37UZHCLM_cjs.Collapsible; }
45979
45030
  });
45980
45031
  Object.defineProperty(exports, "CollapsibleContent", {
45981
45032
  enumerable: true,
45982
- get: function () { return chunkIUDY6S7I_cjs.CollapsibleContent; }
45033
+ get: function () { return chunk37UZHCLM_cjs.CollapsibleContent; }
45983
45034
  });
45984
45035
  Object.defineProperty(exports, "CollapsibleTrigger", {
45985
45036
  enumerable: true,
45986
- get: function () { return chunkIUDY6S7I_cjs.CollapsibleTrigger; }
45037
+ get: function () { return chunk37UZHCLM_cjs.CollapsibleTrigger; }
45987
45038
  });
45988
45039
  Object.defineProperty(exports, "CopyButton", {
45989
45040
  enumerable: true,
@@ -46079,31 +45130,31 @@ Object.defineProperty(exports, "sheetOverlayVariants", {
46079
45130
  });
46080
45131
  Object.defineProperty(exports, "Dropdown", {
46081
45132
  enumerable: true,
46082
- get: function () { return chunk4SM3I7WE_cjs.Dropdown; }
45133
+ get: function () { return chunkRXPEZXAB_cjs.Dropdown; }
46083
45134
  });
46084
45135
  Object.defineProperty(exports, "DropdownContent", {
46085
45136
  enumerable: true,
46086
- get: function () { return chunk4SM3I7WE_cjs.DropdownContent; }
45137
+ get: function () { return chunkRXPEZXAB_cjs.DropdownContent; }
46087
45138
  });
46088
45139
  Object.defineProperty(exports, "DropdownHeader", {
46089
45140
  enumerable: true,
46090
- get: function () { return chunk4SM3I7WE_cjs.DropdownHeader; }
45141
+ get: function () { return chunkRXPEZXAB_cjs.DropdownHeader; }
46091
45142
  });
46092
45143
  Object.defineProperty(exports, "DropdownItem", {
46093
45144
  enumerable: true,
46094
- get: function () { return chunk4SM3I7WE_cjs.DropdownItem; }
45145
+ get: function () { return chunkRXPEZXAB_cjs.DropdownItem; }
46095
45146
  });
46096
45147
  Object.defineProperty(exports, "DropdownLabel", {
46097
45148
  enumerable: true,
46098
- get: function () { return chunk4SM3I7WE_cjs.DropdownLabel; }
45149
+ get: function () { return chunkRXPEZXAB_cjs.DropdownLabel; }
46099
45150
  });
46100
45151
  Object.defineProperty(exports, "DropdownSeparator", {
46101
45152
  enumerable: true,
46102
- get: function () { return chunk4SM3I7WE_cjs.DropdownSeparator; }
45153
+ get: function () { return chunkRXPEZXAB_cjs.DropdownSeparator; }
46103
45154
  });
46104
45155
  Object.defineProperty(exports, "DropdownSubmenu", {
46105
45156
  enumerable: true,
46106
- get: function () { return chunk4SM3I7WE_cjs.DropdownSubmenu; }
45157
+ get: function () { return chunkRXPEZXAB_cjs.DropdownSubmenu; }
46107
45158
  });
46108
45159
  Object.defineProperty(exports, "FilterSummaryBar", {
46109
45160
  enumerable: true,
@@ -46195,11 +45246,11 @@ Object.defineProperty(exports, "unformatPhoneNumber", {
46195
45246
  });
46196
45247
  Object.defineProperty(exports, "miewebUIPreset", {
46197
45248
  enumerable: true,
46198
- get: function () { return chunkCXDMZT45_cjs.miewebUIPreset; }
45249
+ get: function () { return chunkPY7XAG4D_cjs.miewebUIPreset; }
46199
45250
  });
46200
45251
  Object.defineProperty(exports, "miewebUISafelist", {
46201
45252
  enumerable: true,
46202
- get: function () { return chunkCXDMZT45_cjs.miewebUISafelist; }
45253
+ get: function () { return chunkPY7XAG4D_cjs.miewebUISafelist; }
46203
45254
  });
46204
45255
  Object.defineProperty(exports, "Accordion", {
46205
45256
  enumerable: true,
@@ -46223,7 +45274,7 @@ Object.defineProperty(exports, "alertVariants", {
46223
45274
  });
46224
45275
  Object.defineProperty(exports, "AlertDialog", {
46225
45276
  enumerable: true,
46226
- get: function () { return chunkYJP6DUFO_cjs.AlertDialog; }
45277
+ get: function () { return chunkPKD3JLS2_cjs.AlertDialog; }
46227
45278
  });
46228
45279
  Object.defineProperty(exports, "AudioPlayer", {
46229
45280
  enumerable: true,
@@ -46295,67 +45346,67 @@ Object.defineProperty(exports, "isApplicable", {
46295
45346
  });
46296
45347
  Object.defineProperty(exports, "ALLERGY_TYPE_LABELS", {
46297
45348
  enumerable: true,
46298
- get: function () { return chunk6XDPJWSC_cjs.ALLERGY_TYPE_LABELS; }
45349
+ get: function () { return chunkE3KC2XLN_cjs.ALLERGY_TYPE_LABELS; }
46299
45350
  });
46300
45351
  Object.defineProperty(exports, "AllergyList", {
46301
45352
  enumerable: true,
46302
- get: function () { return chunk6XDPJWSC_cjs.AllergyList; }
45353
+ get: function () { return chunkE3KC2XLN_cjs.AllergyList; }
46303
45354
  });
46304
45355
  Object.defineProperty(exports, "AllergyManager", {
46305
45356
  enumerable: true,
46306
- get: function () { return chunk6XDPJWSC_cjs.AllergyManager; }
45357
+ get: function () { return chunkE3KC2XLN_cjs.AllergyManager; }
46307
45358
  });
46308
45359
  Object.defineProperty(exports, "CodeLookupProvider", {
46309
45360
  enumerable: true,
46310
- get: function () { return chunk6XDPJWSC_cjs.CodeLookupProvider; }
45361
+ get: function () { return chunkE3KC2XLN_cjs.CodeLookupProvider; }
46311
45362
  });
46312
45363
  Object.defineProperty(exports, "MEDICATION_STATUS_LABELS", {
46313
45364
  enumerable: true,
46314
- get: function () { return chunk6XDPJWSC_cjs.MEDICATION_STATUS_LABELS; }
45365
+ get: function () { return chunkE3KC2XLN_cjs.MEDICATION_STATUS_LABELS; }
46315
45366
  });
46316
45367
  Object.defineProperty(exports, "MedicationEditor", {
46317
45368
  enumerable: true,
46318
- get: function () { return chunk6XDPJWSC_cjs.MedicationEditor; }
45369
+ get: function () { return chunkE3KC2XLN_cjs.MedicationEditor; }
46319
45370
  });
46320
45371
  Object.defineProperty(exports, "MedicationList", {
46321
45372
  enumerable: true,
46322
- get: function () { return chunk6XDPJWSC_cjs.MedicationList; }
45373
+ get: function () { return chunkE3KC2XLN_cjs.MedicationList; }
46323
45374
  });
46324
45375
  Object.defineProperty(exports, "MedicationReconciliation", {
46325
45376
  enumerable: true,
46326
- get: function () { return chunk6XDPJWSC_cjs.MedicationReconciliation; }
45377
+ get: function () { return chunkE3KC2XLN_cjs.MedicationReconciliation; }
46327
45378
  });
46328
45379
  Object.defineProperty(exports, "RowActionToolbar", {
46329
45380
  enumerable: true,
46330
- get: function () { return chunk6XDPJWSC_cjs.RowActionToolbar; }
45381
+ get: function () { return chunkE3KC2XLN_cjs.RowActionToolbar; }
46331
45382
  });
46332
45383
  Object.defineProperty(exports, "RowIconButton", {
46333
45384
  enumerable: true,
46334
- get: function () { return chunk6XDPJWSC_cjs.RowIconButton; }
45385
+ get: function () { return chunkE3KC2XLN_cjs.RowIconButton; }
46335
45386
  });
46336
45387
  Object.defineProperty(exports, "labelToMedicationFields", {
46337
45388
  enumerable: true,
46338
- get: function () { return chunk6XDPJWSC_cjs.labelToMedicationFields; }
45389
+ get: function () { return chunkE3KC2XLN_cjs.labelToMedicationFields; }
46339
45390
  });
46340
45391
  Object.defineProperty(exports, "lookupToMedicationFields", {
46341
45392
  enumerable: true,
46342
- get: function () { return chunk6XDPJWSC_cjs.lookupToMedicationFields; }
45393
+ get: function () { return chunkE3KC2XLN_cjs.lookupToMedicationFields; }
46343
45394
  });
46344
45395
  Object.defineProperty(exports, "parseMedicationLabel", {
46345
45396
  enumerable: true,
46346
- get: function () { return chunk6XDPJWSC_cjs.parseMedicationLabel; }
45397
+ get: function () { return chunkE3KC2XLN_cjs.parseMedicationLabel; }
46347
45398
  });
46348
45399
  Object.defineProperty(exports, "parseSig", {
46349
45400
  enumerable: true,
46350
- get: function () { return chunk6XDPJWSC_cjs.parseSig; }
45401
+ get: function () { return chunkE3KC2XLN_cjs.parseSig; }
46351
45402
  });
46352
45403
  Object.defineProperty(exports, "toolbarKeyNav", {
46353
45404
  enumerable: true,
46354
- get: function () { return chunk6XDPJWSC_cjs.toolbarKeyNav; }
45405
+ get: function () { return chunkE3KC2XLN_cjs.toolbarKeyNav; }
46355
45406
  });
46356
45407
  Object.defineProperty(exports, "useCodeLookupConfig", {
46357
45408
  enumerable: true,
46358
- get: function () { return chunk6XDPJWSC_cjs.useCodeLookupConfig; }
45409
+ get: function () { return chunkE3KC2XLN_cjs.useCodeLookupConfig; }
46359
45410
  });
46360
45411
  Object.defineProperty(exports, "Textarea", {
46361
45412
  enumerable: true,
@@ -46391,11 +45442,11 @@ Object.defineProperty(exports, "labelVariants", {
46391
45442
  });
46392
45443
  Object.defineProperty(exports, "Select", {
46393
45444
  enumerable: true,
46394
- get: function () { return chunkXEEVDZDK_cjs.Select; }
45445
+ get: function () { return chunkIGSIWNX3_cjs.Select; }
46395
45446
  });
46396
45447
  Object.defineProperty(exports, "selectTriggerVariants", {
46397
45448
  enumerable: true,
46398
- get: function () { return chunkXEEVDZDK_cjs.selectTriggerVariants; }
45449
+ get: function () { return chunkIGSIWNX3_cjs.selectTriggerVariants; }
46399
45450
  });
46400
45451
  Object.defineProperty(exports, "DateInput", {
46401
45452
  enumerable: true,
@@ -46499,35 +45550,35 @@ Object.defineProperty(exports, "parseDateValue", {
46499
45550
  });
46500
45551
  Object.defineProperty(exports, "Modal", {
46501
45552
  enumerable: true,
46502
- get: function () { return chunkL52N6BEN_cjs.Modal; }
45553
+ get: function () { return chunkAUOTJQGO_cjs.Modal; }
46503
45554
  });
46504
45555
  Object.defineProperty(exports, "ModalBody", {
46505
45556
  enumerable: true,
46506
- get: function () { return chunkL52N6BEN_cjs.ModalBody; }
45557
+ get: function () { return chunkAUOTJQGO_cjs.ModalBody; }
46507
45558
  });
46508
45559
  Object.defineProperty(exports, "ModalClose", {
46509
45560
  enumerable: true,
46510
- get: function () { return chunkL52N6BEN_cjs.ModalClose; }
45561
+ get: function () { return chunkAUOTJQGO_cjs.ModalClose; }
46511
45562
  });
46512
45563
  Object.defineProperty(exports, "ModalFooter", {
46513
45564
  enumerable: true,
46514
- get: function () { return chunkL52N6BEN_cjs.ModalFooter; }
45565
+ get: function () { return chunkAUOTJQGO_cjs.ModalFooter; }
46515
45566
  });
46516
45567
  Object.defineProperty(exports, "ModalHeader", {
46517
45568
  enumerable: true,
46518
- get: function () { return chunkL52N6BEN_cjs.ModalHeader; }
45569
+ get: function () { return chunkAUOTJQGO_cjs.ModalHeader; }
46519
45570
  });
46520
45571
  Object.defineProperty(exports, "ModalTitle", {
46521
45572
  enumerable: true,
46522
- get: function () { return chunkL52N6BEN_cjs.ModalTitle; }
45573
+ get: function () { return chunkAUOTJQGO_cjs.ModalTitle; }
46523
45574
  });
46524
45575
  Object.defineProperty(exports, "modalContentVariants", {
46525
45576
  enumerable: true,
46526
- get: function () { return chunkL52N6BEN_cjs.modalContentVariants; }
45577
+ get: function () { return chunkAUOTJQGO_cjs.modalContentVariants; }
46527
45578
  });
46528
45579
  Object.defineProperty(exports, "modalOverlayVariants", {
46529
45580
  enumerable: true,
46530
- get: function () { return chunkL52N6BEN_cjs.modalOverlayVariants; }
45581
+ get: function () { return chunkAUOTJQGO_cjs.modalOverlayVariants; }
46531
45582
  });
46532
45583
  Object.defineProperty(exports, "Input", {
46533
45584
  enumerable: true,
@@ -47307,19 +46358,19 @@ Object.defineProperty(exports, "buttonVariants", {
47307
46358
  });
47308
46359
  Object.defineProperty(exports, "Animated", {
47309
46360
  enumerable: true,
47310
- get: function () { return chunkBN75TLUN_cjs.Animated; }
46361
+ get: function () { return chunkNV2CWBI2_cjs.Animated; }
47311
46362
  });
47312
46363
  Object.defineProperty(exports, "AnimatedPresence", {
47313
46364
  enumerable: true,
47314
- get: function () { return chunkBN75TLUN_cjs.AnimatedPresence; }
46365
+ get: function () { return chunkNV2CWBI2_cjs.AnimatedPresence; }
47315
46366
  });
47316
46367
  Object.defineProperty(exports, "motionPresets", {
47317
46368
  enumerable: true,
47318
- get: function () { return chunkBN75TLUN_cjs.motionPresets; }
46369
+ get: function () { return chunkNV2CWBI2_cjs.motionPresets; }
47319
46370
  });
47320
46371
  Object.defineProperty(exports, "useMotionRuntime", {
47321
46372
  enumerable: true,
47322
- get: function () { return chunkBN75TLUN_cjs.useMotionRuntime; }
46373
+ get: function () { return chunkNV2CWBI2_cjs.useMotionRuntime; }
47323
46374
  });
47324
46375
  Object.defineProperty(exports, "cn", {
47325
46376
  enumerable: true,
@@ -47331,51 +46382,51 @@ Object.defineProperty(exports, "miewebUITwMergeConflicts", {
47331
46382
  });
47332
46383
  Object.defineProperty(exports, "RTL_LOCALES", {
47333
46384
  enumerable: true,
47334
- get: function () { return chunkXJTFZLWH_cjs.RTL_LOCALES; }
46385
+ get: function () { return chunkQO6PRHDX_cjs.RTL_LOCALES; }
47335
46386
  });
47336
46387
  Object.defineProperty(exports, "isRtlLocale", {
47337
46388
  enumerable: true,
47338
- get: function () { return chunkXJTFZLWH_cjs.isRtlLocale; }
46389
+ get: function () { return chunkQO6PRHDX_cjs.isRtlLocale; }
47339
46390
  });
47340
46391
  Object.defineProperty(exports, "useCommandK", {
47341
46392
  enumerable: true,
47342
- get: function () { return chunkXJTFZLWH_cjs.useCommandK; }
46393
+ get: function () { return chunkQO6PRHDX_cjs.useCommandK; }
47343
46394
  });
47344
46395
  Object.defineProperty(exports, "useDirection", {
47345
46396
  enumerable: true,
47346
- get: function () { return chunkXJTFZLWH_cjs.useDirection; }
46397
+ get: function () { return chunkQO6PRHDX_cjs.useDirection; }
47347
46398
  });
47348
46399
  Object.defineProperty(exports, "useIsDesktop", {
47349
46400
  enumerable: true,
47350
- get: function () { return chunkXJTFZLWH_cjs.useIsDesktop; }
46401
+ get: function () { return chunkQO6PRHDX_cjs.useIsDesktop; }
47351
46402
  });
47352
46403
  Object.defineProperty(exports, "useIsLargeDesktop", {
47353
46404
  enumerable: true,
47354
- get: function () { return chunkXJTFZLWH_cjs.useIsLargeDesktop; }
46405
+ get: function () { return chunkQO6PRHDX_cjs.useIsLargeDesktop; }
47355
46406
  });
47356
46407
  Object.defineProperty(exports, "useIsMobile", {
47357
46408
  enumerable: true,
47358
- get: function () { return chunkXJTFZLWH_cjs.useIsMobile; }
46409
+ get: function () { return chunkQO6PRHDX_cjs.useIsMobile; }
47359
46410
  });
47360
46411
  Object.defineProperty(exports, "useIsMobileOrTablet", {
47361
46412
  enumerable: true,
47362
- get: function () { return chunkXJTFZLWH_cjs.useIsMobileOrTablet; }
46413
+ get: function () { return chunkQO6PRHDX_cjs.useIsMobileOrTablet; }
47363
46414
  });
47364
46415
  Object.defineProperty(exports, "useIsSmallTablet", {
47365
46416
  enumerable: true,
47366
- get: function () { return chunkXJTFZLWH_cjs.useIsSmallTablet; }
46417
+ get: function () { return chunkQO6PRHDX_cjs.useIsSmallTablet; }
47367
46418
  });
47368
46419
  Object.defineProperty(exports, "useIsTablet", {
47369
46420
  enumerable: true,
47370
- get: function () { return chunkXJTFZLWH_cjs.useIsTablet; }
46421
+ get: function () { return chunkQO6PRHDX_cjs.useIsTablet; }
47371
46422
  });
47372
46423
  Object.defineProperty(exports, "useKeyboardShortcut", {
47373
46424
  enumerable: true,
47374
- get: function () { return chunkXJTFZLWH_cjs.useKeyboardShortcut; }
46425
+ get: function () { return chunkQO6PRHDX_cjs.useKeyboardShortcut; }
47375
46426
  });
47376
46427
  Object.defineProperty(exports, "useMediaQuery", {
47377
46428
  enumerable: true,
47378
- get: function () { return chunkXJTFZLWH_cjs.useMediaQuery; }
46429
+ get: function () { return chunkQO6PRHDX_cjs.useMediaQuery; }
47379
46430
  });
47380
46431
  Object.defineProperty(exports, "useTheme", {
47381
46432
  enumerable: true,
@@ -47514,7 +46565,6 @@ exports.CSVFileUpload = CSVFileUpload;
47514
46565
  exports.CardSkeleton = CardSkeleton;
47515
46566
  exports.CaseContextBar = CaseContextBar;
47516
46567
  exports.CaseManagementHeader = CaseManagementHeader;
47517
- exports.ChatComposer = ChatComposer;
47518
46568
  exports.CheckrIntegration = CheckrIntegration;
47519
46569
  exports.ClaimListingButton = ClaimListingButton;
47520
46570
  exports.ClaimProviderForm = ClaimProviderForm;
@@ -47527,7 +46577,6 @@ exports.CompactFilterBar = CompactFilterBar;
47527
46577
  exports.CompactHeader = CompactHeader;
47528
46578
  exports.CompactHours = CompactHours;
47529
46579
  exports.CompactProviderHeader = CompactProviderHeader;
47530
- exports.ComposerModelSelector = ComposerModelSelector;
47531
46580
  exports.ConditionEditor = ConditionEditor;
47532
46581
  exports.ConnectionStatusBadge = ConnectionStatusBadge;
47533
46582
  exports.ConnectionStatusBar = ConnectionStatusBar;
@@ -47774,6 +46823,7 @@ exports.labelClusters = labelClusters;
47774
46823
  exports.loadWhatPrints = loadWhatPrints;
47775
46824
  exports.medicationToOrder = medicationToOrder;
47776
46825
  exports.mergeTurns = mergeTurns;
46826
+ exports.normalizeConditionCodingSystem = normalizeConditionCodingSystem;
47777
46827
  exports.openRollingRecorder = openRollingRecorder;
47778
46828
  exports.orderToMedication = orderToMedication;
47779
46829
  exports.orderTypeForCodetype = orderTypeForCodetype;