@alfadocs/ui-kit 1.61.0 → 1.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CZWGQFKV.js → actions-cell-renderer-BXCpK2_0.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DauvvKX6.js → agenda-card-DR9gDdKp.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DU7O5Z7R.js → agenda-tray-DGB1Zup-.js} +3 -3
  4. package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js → ai-credits-notice-pK9BOmEz.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-BJHutKLE.js → ai-permission-notice-DpRmZ9Q3.js} +4 -4
  6. package/dist/_chunks/{ai-prompt-input-Dzos37rf.js → ai-prompt-input-DSGSe4LH.js} +2 -2
  7. package/dist/_chunks/{alert-BhCstf2h.js → alert-DdDpOi-P.js} +2 -2
  8. package/dist/_chunks/{alia-sidebar-CU3mVL9J.js → alia-sidebar-qe0quZkB.js} +6 -6
  9. package/dist/_chunks/{anamnesis-card-VjJOUl-t.js → anamnesis-card-CsUBOG32.js} +3 -3
  10. package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js → anamnesis-summary-card-CMzBLTiN.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js → anamnesis-summary-rows-DFWws7mM.js} +11 -11
  12. package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js → antenatal-schedule-timeline-DuaAQj1m.js} +2 -2
  13. package/dist/_chunks/app-frame-DUPEwu4E.js +179 -0
  14. package/dist/_chunks/app-frame-context-CPszhDDb.js +10 -0
  15. package/dist/_chunks/{appointment-card-BXQUZlAJ.js → appointment-card-CL32sux-.js} +3 -3
  16. package/dist/_chunks/{appointment-peek-BvzXHYiD.js → appointment-peek-B5mcDcXt.js} +3 -3
  17. package/dist/_chunks/{appointment-timeline-r-q97cec.js → appointment-timeline-DaHKV81s.js} +4 -4
  18. package/dist/_chunks/{appointment-tray-DF_R9ldY.js → appointment-tray-qtpJt8e0.js} +3 -3
  19. package/dist/_chunks/{audio-recorder-Cssm6jVh.js → audio-recorder-DR-u1qbl.js} +3 -3
  20. package/dist/_chunks/{auth-form-parts-CravOf0L.js → auth-form-parts-Cmb41LSQ.js} +2 -2
  21. package/dist/_chunks/{badge-hnBt8o7n.js → badge-BUk4RjTS.js} +2 -2
  22. package/dist/_chunks/{balance-badge-cell-DMG06b2C.js → balance-badge-cell-F7p_ZKEg.js} +5 -5
  23. package/dist/_chunks/{bishop-score-DxfkcxiV.js → bishop-score-CaNTrikJ.js} +2 -2
  24. package/dist/_chunks/{bmi-calculator-B4kgPqt5.js → bmi-calculator-DjmQ04Ch.js} +4 -4
  25. package/dist/_chunks/{booking-CXaqmdF7.js → booking-CGhOtxad.js} +8 -8
  26. package/dist/_chunks/{button-group-Cfpyu6pc.js → button-group-DCOJhvm3.js} +3 -3
  27. package/dist/_chunks/{calendar-DNTVaK6b.js → calendar-DCr65Kt1.js} +3 -3
  28. package/dist/_chunks/{calendar-workspace-UL5xcpWa.js → calendar-workspace-Dvfl9Vf6.js} +29 -29
  29. package/dist/_chunks/{care-plan-card-DFQbU_Gd.js → care-plan-card-BU3p5cLr.js} +3 -3
  30. package/dist/_chunks/{care-plan-entry-card-bj784KRk.js → care-plan-entry-card-DPJcP34v.js} +4 -4
  31. package/dist/_chunks/{care-plan-header-DDhyAfVK.js → care-plan-header-CgFjQLBd.js} +3 -3
  32. package/dist/_chunks/{carousel.agent-Csn24G1k.js → carousel.agent-BaRsN-8H.js} +2 -2
  33. package/dist/_chunks/chart-DgYHN8Xq.js +991 -0
  34. package/dist/_chunks/{chat-input-Ck34Pnmp.js → chat-input-HtTbUUD6.js} +2 -2
  35. package/dist/_chunks/{chat-message-DU0X3Xnl.js → chat-message-fRLZ95O5.js} +2 -2
  36. package/dist/_chunks/{checkbox--ndmyokr.js → checkbox-BjDv-r3o.js} +2 -2
  37. package/dist/_chunks/{checkbox-group-B0oZHNT3.js → checkbox-group-Cw2H5qaq.js} +2 -2
  38. package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js → clinical-note-card-BgURrgL5.js} +3 -3
  39. package/dist/_chunks/{code-block-DiC4bg-o.js → code-block-vwEv1jEa.js} +2 -2
  40. package/dist/_chunks/{connection-status-BAnuwayz.js → connection-status--wYsgreh.js} +3 -3
  41. package/dist/_chunks/{contact-profile-card-JTRbnbxy.js → contact-profile-card-VTCAmQqj.js} +3 -3
  42. package/dist/_chunks/control-room-rail-DUerqHeo.js +416 -0
  43. package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js → cycle-calculator-D-rwX9Pj.js} +2 -2
  44. package/dist/_chunks/{dashboard-grid-DRnhIlT-.js → dashboard-grid-B2MB7SRS.js} +627 -603
  45. package/dist/_chunks/{data-table-DAPkhyXO.js → data-table-m7GbLJZy.js} +6 -6
  46. package/dist/_chunks/{data-table-tabs-2t0cdk0h.js → data-table-tabs-BfrnefV5.js} +3 -3
  47. package/dist/_chunks/{dependent-selector-DgaAQc-c.js → dependent-selector-DBr1AhLg.js} +3 -3
  48. package/dist/_chunks/{description-list-CFEw__MT.js → description-list-Q8640NHu.js} +2 -2
  49. package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js → dev-bypass-button--CPzzRSj.js} +2 -2
  50. package/dist/_chunks/{document-preview-DYX669jE.js → document-preview-B1dQm292.js} +4 -4
  51. package/dist/_chunks/{document-scanner-C41n4pNq.js → document-scanner-CVPVLK7z.js} +2 -2
  52. package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js → due-date-calculator-DTfxFJCM.js} +5 -5
  53. package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js → editable-currency-cell-renderer-1ijmzNWh.js} +4 -4
  54. package/dist/_chunks/{editable-description-D9FsTi8e.js → editable-description-ChGNdYY8.js} +2 -2
  55. package/dist/_chunks/{editor-overlay-BYkcaLCj.js → editor-overlay-CpVO1-Kk.js} +2 -2
  56. package/dist/_chunks/{entity-summary-oD_63dlz.js → entity-summary-DXIr5_x2.js} +4 -4
  57. package/dist/_chunks/{error-summary-BhM8FEkl.js → error-summary-DrUfuKu1.js} +2 -2
  58. package/dist/_chunks/{face-scheme-C-5V3MsY.js → face-scheme-DAD-mXzM.js} +4 -4
  59. package/dist/_chunks/{fetal-weight-CHv2winC.js → fetal-weight-DycD_Vqr.js} +2 -2
  60. package/dist/_chunks/{field-array-dSkD_ePA.js → field-array-BJYc1xSu.js} +2 -2
  61. package/dist/_chunks/{file-manager-C8bdHsYy.js → file-manager-G0t8MWbE.js} +6 -6
  62. package/dist/_chunks/{fiscal-code-input-BSWwda0C.js → fiscal-code-input-DwHb2nVW.js} +2 -2
  63. package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js → forgot-password-form-CgZkEvZy.js} +4 -4
  64. package/dist/_chunks/{freemium-paywall-DjjVPC-5.js → freemium-paywall-r-z48YaT.js} +2 -2
  65. package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js → gestational-age-calculator-BnCAL5a-.js} +5 -5
  66. package/dist/_chunks/{hcg-doubling-CnrY2OVu.js → hcg-doubling-DVDiqFyp.js} +2 -2
  67. package/dist/_chunks/{header-BVHAt7Fi.js → header-_TppWBpK.js} +2 -2
  68. package/dist/_chunks/{header-settings-C200bKyp.js → header-settings-BSH9Gk0J.js} +3 -3
  69. package/dist/_chunks/{heatmap-CRMr7VWC.js → heatmap-Bb0-M88T.js} +4 -4
  70. package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js → help-me-write-templates-DFmqnsAa.js} +4 -4
  71. package/dist/_chunks/{hover-card-DbTmj-ea.js → hover-card-CTNhQXWS.js} +2 -2
  72. package/dist/_chunks/{icon-button-dNE6ENLn.js → icon-button-C_1TgRiK.js} +2 -2
  73. package/dist/_chunks/{icon-button-group-Du8IvZek.js → icon-button-group-NIHji7_y.js} +2 -2
  74. package/dist/_chunks/{icon-picker-D5NdDbCL.js → icon-picker-Dq4O32K8.js} +2 -2
  75. package/dist/_chunks/{info-tip-DObdz3w3.js → info-tip-cYszyg6h.js} +2 -2
  76. package/dist/_chunks/{key-value-pair-BNYHAZwD.js → key-value-pair-BscGwZsJ.js} +2 -2
  77. package/dist/_chunks/{kit-extensions-DI2nHVNw.js → kit-extensions-RnddkrXn.js} +6 -6
  78. package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js → link-cell-renderer-dtEYlxi2.js} +6 -6
  79. package/dist/_chunks/{locale-picker-Bu4YE5b2.js → locale-picker-CeveTnDK.js} +3 -3
  80. package/dist/_chunks/{login-dev-card-DwWWHclZ.js → login-dev-card-PnADNcI9.js} +3 -3
  81. package/dist/_chunks/{marketplace-app-shell-p6hPgVwy.js → marketplace-app-shell-C-2e4eCD.js} +139 -136
  82. package/dist/_chunks/{message-card-CvZlo3Fn.js → message-card-A3mJNqfy.js} +2 -2
  83. package/dist/_chunks/{message-tray-DrS_LOed.js → message-tray-Ft6vSr71.js} +3 -3
  84. package/dist/_chunks/{multi-select-BT23EnSA.js → multi-select-CMaAQQgb.js} +2 -2
  85. package/dist/_chunks/{note-attachment-Bt2cddsZ.js → note-attachment-DoVWvjWR.js} +2 -2
  86. package/dist/_chunks/{note-timeline-CX9nAgAR.js → note-timeline-B7l3t5DZ.js} +2 -2
  87. package/dist/_chunks/{notes-panel-6TElt7jQ.js → notes-panel-CTmvrqQn.js} +7 -7
  88. package/dist/_chunks/{notification-card-Qrs52HIA.js → notification-card-c2oX8j3F.js} +2 -2
  89. package/dist/_chunks/{notification-tray-DRm1z97G.js → notification-tray-BR3seWA7.js} +3 -3
  90. package/dist/_chunks/{operator-hero-C_Khr5IU.js → operator-hero-3_RG4Dkj.js} +2 -2
  91. package/dist/_chunks/{optical-prescription-DLIAhJ6f.js → optical-prescription-CxfMsbxi.js} +2 -2
  92. package/dist/_chunks/{panel-header-D_mTdhUp.js → panel-header-BJkaUwnl.js} +2 -2
  93. package/dist/_chunks/{panel-subview-CjZgdWwO.js → panel-subview-yP4qIbKS.js} +3 -3
  94. package/dist/_chunks/{patient-details-BjqKBY2x.js → patient-details-BNDS69Zx.js} +4 -4
  95. package/dist/_chunks/{patient-field-row-BiI0BPPK.js → patient-field-row-BLBi-PjO.js} +7 -7
  96. package/dist/_chunks/{patient-search-B5R7FyFO.js → patient-search-DOnDUVsl.js} +2 -2
  97. package/dist/_chunks/{patient-summary-card-BOgnWKRV.js → patient-summary-card-T9umuZJF.js} +8 -8
  98. package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js → payment-automation-upsell-C8MEu0t6.js} +4 -4
  99. package/dist/_chunks/{payment-form-v6zZuV1_.js → payment-form-i90DUuNK.js} +2 -2
  100. package/dist/_chunks/{payment-request-card-E3G4aVt6.js → payment-request-card-BmzNMY2a.js} +4 -4
  101. package/dist/_chunks/{pdf-viewer-CNQxa4tv.js → pdf-viewer-DJ9VN7cu.js} +2 -2
  102. package/dist/_chunks/{periodontal-chart-BZ1d6S36.js → periodontal-chart-DCcOEYC6.js} +2 -2
  103. package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js → periodontal-chart-card-CxdjXFb3.js} +3 -3
  104. package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js → periodontal-diagnosis-B9YmmVmM.js} +5 -5
  105. package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js → periodontal-risk-chart-CPy7CNFe.js} +2 -2
  106. package/dist/_chunks/{permission-matrix-DuTkUHxe.js → permission-matrix-BoQjENGV.js} +3 -3
  107. package/dist/_chunks/{popover-DQr_tljb.js → popover-4ZVtH_At.js} +2 -2
  108. package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js → practice-profile-hero-Dfc0F60y.js} +2 -2
  109. package/dist/_chunks/{practice-results-Cktx7KaC.js → practice-results-B8L9ZmtR.js} +4 -4
  110. package/dist/_chunks/{pregnancy-dating-26fcvhAx.js → pregnancy-dating-D2XTELiw.js} +5 -5
  111. package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js → pregnancy-weight-gain-BVvyL-j1.js} +4 -4
  112. package/dist/_chunks/{privacy-lock-BpVgSgMb.js → privacy-lock-CEYJ8ehu.js} +2 -2
  113. package/dist/_chunks/{privacy-mask-BfMC57ST.js → privacy-mask-Ch7743uk.js} +2 -2
  114. package/dist/_chunks/{product-hub-panel-CH4B49ij.js → product-hub-panel-D-UELdo0.js} +2 -2
  115. package/dist/_chunks/{public-header.agent-BHTDKMsw.js → public-header.agent-DXRA7ebK.js} +3 -3
  116. package/dist/_chunks/{radio-BBbMdbE_.js → radio-BZQs6_36.js} +2 -2
  117. package/dist/_chunks/{radio-group-DicxWJXP.js → radio-group-ChIKyeSJ.js} +3 -3
  118. package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js → radiograph-panel.agent-DDNUo4Ul.js} +4 -4
  119. package/dist/_chunks/{registration-form-B8IeB9kd.js → registration-form-BQyT_kBX.js} +5 -5
  120. package/dist/_chunks/{resource-chip-DQeCJzJf.js → resource-chip-DB5jDwUO.js} +2 -2
  121. package/dist/_chunks/{reviews-panel-CHzDqerd.js → reviews-panel-AvsVgtJu.js} +3 -3
  122. package/dist/_chunks/{rich-text-editor-BRuTo2hm.js → rich-text-editor-M2gT_E7f.js} +9 -9
  123. package/dist/_chunks/{sheet-CqvPYNLn.js → sheet-D2PfJl8n.js} +2 -2
  124. package/dist/_chunks/{sidebar-C9Zof0z1.js → sidebar-BS24EnYd.js} +2 -2
  125. package/dist/_chunks/{sign-document-D4iHS_Ug.js → sign-document-CY7xTXbm.js} +2 -2
  126. package/dist/_chunks/{signature-request-BH7yKI01.js → signature-request-BMCHy2ZO.js} +5 -5
  127. package/dist/_chunks/{signature-status-chip-DP3qRijv.js → signature-status-chip-pIoQjvH8.js} +3 -3
  128. package/dist/_chunks/{signed-out-frame-eaOWHpDr.js → signed-out-frame-D5DzqATh.js} +3 -3
  129. package/dist/_chunks/{slot-grid-DELa2Nwz.js → slot-grid-dj5f6R2w.js} +2 -2
  130. package/dist/_chunks/{stat-DmjGfXND.js → stat-D2PNJujA.js} +2 -2
  131. package/dist/_chunks/{streaming-text-bPDoG7Y3.js → streaming-text-zFViGexf.js} +2 -2
  132. package/dist/_chunks/{tab-bar-5GppbMGc.js → tab-bar-BEODTG6k.js} +2 -2
  133. package/dist/_chunks/{tag-CS5cXpfx.js → tag-DOZGz0fT.js} +2 -2
  134. package/dist/_chunks/{task-card-zaTU1rQa.js → task-card-BS7Uqevr.js} +2 -2
  135. package/dist/_chunks/{task-editor-CgGcg-2c.js → task-editor-DoiOzNiC.js} +9 -9
  136. package/dist/_chunks/{task-tray-DGMwogWu.js → task-tray-eQU4KJcA.js} +3 -3
  137. package/dist/_chunks/{tasks-panel-xGtiEdcj.js → tasks-panel-8nLwBw6P.js} +7 -7
  138. package/dist/_chunks/{theme-toggle-_cfYEK73.js → theme-toggle-Ctb77x6O.js} +3 -3
  139. package/dist/_chunks/{toast-CNUydTgT.js → toast-6T519aLz.js} +2 -2
  140. package/dist/_chunks/tool-rail-C-03rH2I.js +973 -0
  141. package/dist/_chunks/tooltip-uEBdD1-5.js +178 -0
  142. package/dist/_chunks/{tooth-scheme-05DsRMA5.js → tooth-scheme-Dkh4JwzT.js} +2 -2
  143. package/dist/_chunks/{transcript-panel-CjsiDB1K.js → transcript-panel-XudW5l6l.js} +2 -2
  144. package/dist/_chunks/{treatment-receipt-BSVOfStA.js → treatment-receipt-BdJ36vNP.js} +3 -3
  145. package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js → use-appointment-details-read-Gu0ehyxj.js} +16 -16
  146. package/dist/_chunks/use-edge-resize-CBtem0j2.js +171 -0
  147. package/dist/_chunks/{voice-control-panel-DyKEaFxt.js → voice-control-panel-C0BfY23Y.js} +4 -4
  148. package/dist/_chunks/{warning-stack-CAL9xVo1.js → warning-stack-HYWAytZV.js} +3 -3
  149. package/dist/_chunks/{widget-picker-CkhoG4Rj.js → widget-picker-DlNPGcnu.js} +2 -2
  150. package/dist/_chunks/{workflow-map-BUYG1oXU.js → workflow-map-C2B2qIr1.js} +5 -5
  151. package/dist/agent-catalog.json +13 -1
  152. package/dist/agent-i18n/en.json +10 -0
  153. package/dist/components/_shared/use-apex-legend-scroll.d.ts +7 -0
  154. package/dist/components/agenda-card/index.js +1 -1
  155. package/dist/components/agenda-tray/index.js +1 -1
  156. package/dist/components/ai-credits-notice/index.js +1 -1
  157. package/dist/components/ai-permission-notice/index.js +1 -1
  158. package/dist/components/ai-prompt-input/index.js +1 -1
  159. package/dist/components/alert/index.js +1 -1
  160. package/dist/components/anamnesis-card/index.js +1 -1
  161. package/dist/components/anamnesis-summary-card/index.js +1 -1
  162. package/dist/components/app-frame/app-frame-context.d.ts +19 -0
  163. package/dist/components/app-frame/app-frame.d.ts +3 -0
  164. package/dist/components/app-frame/index.d.ts +2 -0
  165. package/dist/components/app-frame/index.js +4 -2
  166. package/dist/components/appointment-card/index.js +2 -2
  167. package/dist/components/appointment-details-panel/index.js +1 -1
  168. package/dist/components/appointment-peek/index.js +1 -1
  169. package/dist/components/appointment-timeline/index.js +1 -1
  170. package/dist/components/audio-recorder/index.js +1 -1
  171. package/dist/components/badge/index.js +1 -1
  172. package/dist/components/bishop-score/index.js +1 -1
  173. package/dist/components/bmi-calculator/index.js +1 -1
  174. package/dist/components/booking/index.js +1 -1
  175. package/dist/components/button/index.js +1 -1
  176. package/dist/components/button-group/index.js +1 -1
  177. package/dist/components/calendar/index.js +1 -1
  178. package/dist/components/care-plan-card/index.js +1 -1
  179. package/dist/components/care-plan-entry-card/index.js +1 -1
  180. package/dist/components/care-plan-header/index.js +1 -1
  181. package/dist/components/carousel/index.js +1 -1
  182. package/dist/components/chart/chart.d.ts +3 -1
  183. package/dist/components/chart/index.js +1 -1
  184. package/dist/components/chat-input/index.js +1 -1
  185. package/dist/components/chat-message/index.js +1 -1
  186. package/dist/components/checkbox/index.js +1 -1
  187. package/dist/components/checkbox-group/index.js +1 -1
  188. package/dist/components/clinical-note-card/index.js +1 -1
  189. package/dist/components/connection-status/index.js +1 -1
  190. package/dist/components/contact-profile-card/index.js +1 -1
  191. package/dist/components/control-room-rail/control-room-context.d.ts +10 -4
  192. package/dist/components/control-room-rail/index.js +1 -1
  193. package/dist/components/cycle-calculator/index.js +1 -1
  194. package/dist/components/dashboard-grid/index.js +1 -1
  195. package/dist/components/data-table/index.js +4 -4
  196. package/dist/components/data-table-tabs/index.js +1 -1
  197. package/dist/components/dependent-selector/index.js +1 -1
  198. package/dist/components/description-list/index.js +1 -1
  199. package/dist/components/dev-bypass-button/index.js +1 -1
  200. package/dist/components/document-preview/index.js +1 -1
  201. package/dist/components/document-scanner/index.js +1 -1
  202. package/dist/components/due-date-calculator/index.js +2 -2
  203. package/dist/components/editable-description/index.js +1 -1
  204. package/dist/components/editor-overlay/index.js +1 -1
  205. package/dist/components/entity-summary/index.js +1 -1
  206. package/dist/components/error-summary/index.js +1 -1
  207. package/dist/components/face-scheme/index.js +1 -1
  208. package/dist/components/fetal-weight/index.js +1 -1
  209. package/dist/components/field-array/index.js +1 -1
  210. package/dist/components/file-manager/index.js +1 -1
  211. package/dist/components/fiscal-code-input/index.js +1 -1
  212. package/dist/components/freemium-paywall/index.js +1 -1
  213. package/dist/components/gestational-age-calculator/index.js +1 -1
  214. package/dist/components/hcg-doubling/index.js +1 -1
  215. package/dist/components/header/index.js +1 -1
  216. package/dist/components/header-settings/index.js +1 -1
  217. package/dist/components/heatmap/index.js +1 -1
  218. package/dist/components/hover-card/index.js +1 -1
  219. package/dist/components/icon-button/index.js +1 -1
  220. package/dist/components/icon-button-group/index.js +1 -1
  221. package/dist/components/icon-picker/index.js +1 -1
  222. package/dist/components/info-tip/index.js +1 -1
  223. package/dist/components/key-value-pair/index.js +1 -1
  224. package/dist/components/locale-picker/index.js +1 -1
  225. package/dist/components/message-card/index.js +1 -1
  226. package/dist/components/message-tray/index.js +1 -1
  227. package/dist/components/multi-select/index.js +1 -1
  228. package/dist/components/note-timeline/index.js +1 -1
  229. package/dist/components/notes-panel/index.js +1 -1
  230. package/dist/components/notification-card/index.js +1 -1
  231. package/dist/components/notification-tray/index.js +1 -1
  232. package/dist/components/operator-hero/index.js +1 -1
  233. package/dist/components/optical-prescription/index.js +1 -1
  234. package/dist/components/panel-header/index.js +1 -1
  235. package/dist/components/panel-subview/index.js +1 -1
  236. package/dist/components/patient-details/index.js +1 -1
  237. package/dist/components/patient-search/index.js +1 -1
  238. package/dist/components/patient-summary-card/index.js +1 -1
  239. package/dist/components/patient-table/index.js +1 -1
  240. package/dist/components/payment-card/index.js +1 -1
  241. package/dist/components/payment-form/index.js +1 -1
  242. package/dist/components/pdf-viewer/index.js +1 -1
  243. package/dist/components/periodontal-chart/index.js +1 -1
  244. package/dist/components/periodontal-chart-card/index.js +1 -1
  245. package/dist/components/periodontal-diagnosis/index.js +1 -1
  246. package/dist/components/periodontal-risk-chart/index.js +1 -1
  247. package/dist/components/permission-matrix/index.js +1 -1
  248. package/dist/components/popover/index.js +1 -1
  249. package/dist/components/practice-profile-hero/index.js +1 -1
  250. package/dist/components/practice-results/index.js +1 -1
  251. package/dist/components/pregnancy-dating/index.js +1 -1
  252. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  253. package/dist/components/privacy-lock/index.js +1 -1
  254. package/dist/components/product-hub-tray/index.js +1 -1
  255. package/dist/components/public-header/index.js +1 -1
  256. package/dist/components/radio/index.js +1 -1
  257. package/dist/components/radio-group/index.js +2 -2
  258. package/dist/components/radiograph-panel/index.js +1 -1
  259. package/dist/components/resource-chip/index.js +1 -1
  260. package/dist/components/reviews-panel/index.js +1 -1
  261. package/dist/components/rich-text-editor/index.js +2 -2
  262. package/dist/components/sheet/index.js +1 -1
  263. package/dist/components/sidebar/index.js +1 -1
  264. package/dist/components/sign-document/index.js +1 -1
  265. package/dist/components/signature-status-chip/index.js +1 -1
  266. package/dist/components/slot-grid/index.js +1 -1
  267. package/dist/components/stat/index.js +1 -1
  268. package/dist/components/stat/stat.d.ts +7 -2
  269. package/dist/components/streaming-text/index.js +1 -1
  270. package/dist/components/tab-bar/index.js +1 -1
  271. package/dist/components/tag/index.js +1 -1
  272. package/dist/components/task-card/index.js +1 -1
  273. package/dist/components/task-editor/index.js +1 -1
  274. package/dist/components/task-tray/index.js +1 -1
  275. package/dist/components/tasks-panel/index.js +1 -1
  276. package/dist/components/theme-toggle/index.js +1 -1
  277. package/dist/components/toast/index.js +1 -1
  278. package/dist/components/tool-rail/index.js +1 -1
  279. package/dist/components/tool-rail/tool-rail.d.ts +7 -0
  280. package/dist/components/tooltip/index.js +1 -1
  281. package/dist/components/tooth-scheme/index.js +1 -1
  282. package/dist/components/transcript-panel/index.js +1 -1
  283. package/dist/components/treatment-receipt/index.js +1 -1
  284. package/dist/components/voice-control-panel/index.js +1 -1
  285. package/dist/components/warning-stack/index.js +1 -1
  286. package/dist/components/widget-picker/index.js +1 -1
  287. package/dist/components/workflow/index.js +1 -1
  288. package/dist/hooks/index.js +1 -1
  289. package/dist/hooks/use-edge-resize.d.ts +5 -1
  290. package/dist/index.js +778 -776
  291. package/dist/patterns/alia-assistant/index.js +1 -1
  292. package/dist/patterns/anamnesis/index.js +1 -1
  293. package/dist/patterns/calendar/index.js +1 -1
  294. package/dist/patterns/forgot-password-form/index.js +1 -1
  295. package/dist/patterns/help-me-write-templates/index.js +1 -1
  296. package/dist/patterns/login-form/index.js +1 -1
  297. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  298. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
  299. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  300. package/dist/patterns/registration-form/index.js +1 -1
  301. package/dist/patterns/signature-request/index.js +1 -1
  302. package/dist/patterns/signed-out-frame/index.js +1 -1
  303. package/dist/tokens.css +8 -1
  304. package/package.json +1 -1
  305. package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
  306. package/dist/_chunks/chart-D7PbNO_M.js +0 -920
  307. package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
  308. package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
  309. package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
  310. package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
@@ -0,0 +1,991 @@
1
+ import { jsx as v, jsxs as Y } from "react/jsx-runtime";
2
+ import { useEffect as X, forwardRef as tt, useId as rt, useMemo as w, useRef as G, useState as B, useImperativeHandle as at } from "react";
3
+ import { c as ge } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as nt } from "react-i18next";
5
+ import st from "react-apexcharts";
6
+ import De from "apexcharts";
7
+ import { u as ot, a as it, g as Ge, b as ct, r as lt } from "./apexcharts-theme-DNoXvgnZ.js";
8
+ import { u as dt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
+ import { u as ut } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
10
+ import { c as pt } from "./compose-refs-C0k0tdqF.js";
11
+ import { u as ht } from "./registry-DvAUVLHh.js";
12
+ import { I as mt } from "./icon-button-C_1TgRiK.js";
13
+ import { I as ft } from "./icon-button-group-NIHji7_y.js";
14
+ import { c as J } from "./createLucideIcon-DhHxpK9K.js";
15
+ /**
16
+ * @license lucide-react v1.22.0 - ISC
17
+ *
18
+ * This source code is licensed under the ISC license.
19
+ * See the LICENSE file in the root directory of this source tree.
20
+ */
21
+ const bt = [
22
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
23
+ [
24
+ "path",
25
+ {
26
+ d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
27
+ key: "q0gr47"
28
+ }
29
+ ]
30
+ ], yt = J("chart-area", bt);
31
+ /**
32
+ * @license lucide-react v1.22.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
37
+ const vt = [
38
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
39
+ ["path", { d: "M18 17V9", key: "2bz60n" }],
40
+ ["path", { d: "M13 17V5", key: "1frdt8" }],
41
+ ["path", { d: "M8 17v-3", key: "17ska0" }]
42
+ ], gt = J("chart-column", vt);
43
+ /**
44
+ * @license lucide-react v1.22.0 - ISC
45
+ *
46
+ * This source code is licensed under the ISC license.
47
+ * See the LICENSE file in the root directory of this source tree.
48
+ */
49
+ const xt = [
50
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
51
+ ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
52
+ ], St = J("chart-line", xt);
53
+ /**
54
+ * @license lucide-react v1.22.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */
59
+ const wt = [
60
+ [
61
+ "path",
62
+ {
63
+ d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
64
+ key: "pzmjnu"
65
+ }
66
+ ],
67
+ ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
68
+ ], At = J("chart-pie", wt);
69
+ /**
70
+ * @license lucide-react v1.22.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */
75
+ const Tt = [
76
+ [
77
+ "path",
78
+ {
79
+ d: "M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3",
80
+ key: "19sr3x"
81
+ }
82
+ ],
83
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
84
+ ], Et = J("donut", Tt), Ct = ".apexcharts-legend, .apexcharts-toolbar";
85
+ function de(e, r, t) {
86
+ !e || e.getAttribute(r) === t || (t === null ? e.removeAttribute(r) : e.setAttribute(r, t));
87
+ }
88
+ function Lt(e, r) {
89
+ X(() => {
90
+ if (!e) return;
91
+ const t = () => {
92
+ e.querySelectorAll(".apexcharts-canvas").forEach((d) => {
93
+ Array.from(d.children).forEach((h) => {
94
+ h.matches(Ct) || de(h, "aria-hidden", "true");
95
+ });
96
+ }), e.querySelectorAll(".apexcharts-toolbar").forEach((d) => {
97
+ var s;
98
+ const h = ((s = d.querySelector(".apexcharts-menu-icon")) == null ? void 0 : s.getAttribute("aria-expanded")) === "true";
99
+ de(
100
+ d.querySelector(".apexcharts-menu"),
101
+ "inert",
102
+ h ? null : ""
103
+ );
104
+ }), e.querySelectorAll(
105
+ '.apexcharts-legend-series[role="button"]'
106
+ ).forEach((d) => {
107
+ de(d, "aria-label", null);
108
+ const h = d.getAttribute("data:collapsed") === "true" ? "false" : "true";
109
+ de(d, "aria-pressed", r ? h : null);
110
+ });
111
+ };
112
+ let i = 0;
113
+ const p = (d) => {
114
+ const h = d.target instanceof Element ? d.target.closest(".apexcharts-legend-series") : null, s = h == null ? void 0 : h.getAttribute("rel");
115
+ s && (cancelAnimationFrame(i), i = requestAnimationFrame(() => {
116
+ var l;
117
+ const g = document.activeElement;
118
+ g && g !== document.body || (l = e.querySelector(
119
+ `.apexcharts-legend-series[rel="${CSS.escape(s)}"]`
120
+ )) == null || l.focus();
121
+ }));
122
+ };
123
+ t();
124
+ const c = new MutationObserver(t);
125
+ return c.observe(e, {
126
+ childList: !0,
127
+ subtree: !0,
128
+ attributes: !0,
129
+ attributeFilter: [
130
+ "aria-hidden",
131
+ "aria-label",
132
+ "aria-pressed",
133
+ "aria-expanded"
134
+ ]
135
+ }), e.addEventListener("click", p), () => {
136
+ c.disconnect(), e.removeEventListener("click", p), cancelAnimationFrame(i);
137
+ };
138
+ }, [e, r]);
139
+ }
140
+ function ue(e, r, t) {
141
+ t && e.getAttribute(r) !== "true" ? e.setAttribute(r, "true") : !t && e.hasAttribute(r) && e.removeAttribute(r);
142
+ }
143
+ function It(e, r) {
144
+ X(() => {
145
+ if (!e || !r) return;
146
+ let t = null;
147
+ const i = () => {
148
+ if (!t) return;
149
+ const s = Math.abs(t.scrollLeft), g = t.scrollWidth - t.clientWidth;
150
+ ue(t, "data-fade-start", s > 1), ue(t, "data-fade-end", g - s > 1);
151
+ }, p = () => {
152
+ const s = e.querySelector(".apexcharts-legend");
153
+ s !== t && (t == null || t.removeEventListener("scroll", i), t = s, t == null || t.addEventListener("scroll", i, { passive: !0 })), i();
154
+ }, c = (s) => {
155
+ const { target: g } = s;
156
+ !t || !(g instanceof HTMLElement) || !t.contains(g) || !g.matches(":focus-visible") || g.scrollIntoView({ block: "nearest", inline: "nearest" });
157
+ }, d = (s) => s instanceof Element && (s.closest(".apexcharts-legend") !== null || s.querySelector(".apexcharts-legend") !== null), h = new MutationObserver((s) => {
158
+ s.some(
159
+ (l) => [l.target, ...l.addedNodes, ...l.removedNodes].some(
160
+ d
161
+ )
162
+ ) && p();
163
+ });
164
+ return p(), h.observe(e, { childList: !0, subtree: !0 }), e.addEventListener("focusin", c), () => {
165
+ h.disconnect(), e.removeEventListener("focusin", c), t && (t.removeEventListener("scroll", i), ue(t, "data-fade-start", !1), ue(t, "data-fade-end", !1));
166
+ };
167
+ }, [e, r]);
168
+ }
169
+ const Rt = {
170
+ id: "chart",
171
+ // view_change backs the opt-in type switcher (`switchableTypes` prop):
172
+ // the same chart re-presented as line / bar / area / pie / donut.
173
+ capabilities: ["view_change"],
174
+ state: {
175
+ declaredType: {
176
+ type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
177
+ descriptionKey: "ui.agent.chart.state.declaredType",
178
+ description: "The consumer-declared chart type — the shape `update_series` expects.",
179
+ read: (e) => e.getTypeState().declaredType
180
+ },
181
+ effectiveType: {
182
+ type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
183
+ descriptionKey: "ui.agent.chart.state.effectiveType",
184
+ description: "The type currently rendered — differs from declaredType after a type-switcher pick.",
185
+ read: (e) => e.getTypeState().effectiveType
186
+ },
187
+ availableTypes: {
188
+ type: "ChartType[]",
189
+ descriptionKey: "ui.agent.chart.state.availableTypes",
190
+ description: "Types the switcher offers. Empty when the chart has no type switcher.",
191
+ read: (e) => e.getTypeState().availableTypes
192
+ }
193
+ },
194
+ actions: {
195
+ change_view: {
196
+ // Switching the presentation is a write (it changes what the user
197
+ // sees) but is trivially reversible by switching back.
198
+ safety: "write",
199
+ argsType: "type",
200
+ argsSchema: {
201
+ type: "object",
202
+ properties: {
203
+ type: {
204
+ type: "string",
205
+ enum: ["line", "bar", "area", "pie", "donut"],
206
+ description: "The chart type to render."
207
+ }
208
+ },
209
+ required: ["type"]
210
+ },
211
+ returns: "boolean (accepted)",
212
+ returnsSchema: {
213
+ type: "boolean",
214
+ description: "True when the switch was applied; false when the chart has no type switcher or the type is not offered (check availableTypes first)."
215
+ },
216
+ idempotent: !0,
217
+ descriptionKey: "ui.agent.chart.actions.changeView",
218
+ description: "Switch the rendered chart type via the type switcher. No-op (returns false) when the chart has no switcher or the type is not offered.",
219
+ invoke: (e, r) => e.setType(r.type)
220
+ },
221
+ update_series: {
222
+ // Replacing the rendered series mutates what the chart displays — it
223
+ // is a write, reversible by pushing the prior series back.
224
+ safety: "write",
225
+ argsType: "series",
226
+ // `series` is `ChartSeries[]` (line/bar/area) OR `number[]`
227
+ // (pie/donut/radialBar). Both shapes are accepted; the handle routes
228
+ // by chart type internally.
229
+ argsSchema: {
230
+ type: "object",
231
+ properties: {
232
+ series: {
233
+ oneOf: [
234
+ {
235
+ type: "array",
236
+ description: "Categorical series for line / bar / area charts.",
237
+ items: {
238
+ type: "object",
239
+ properties: {
240
+ name: { type: "string" },
241
+ data: { type: "array", items: { type: "number" } },
242
+ role: {
243
+ type: "string",
244
+ enum: ["primary", "compare"],
245
+ description: "Optional. 'compare' renders this series as a secondary, colour-blind-safe overlay (e.g. the previous period) — a dotted stroke in its paired primary's colour for line/area, a tinted bar with a dotted outline for bar. Omit for a normal primary series."
246
+ }
247
+ },
248
+ required: ["name", "data"]
249
+ }
250
+ },
251
+ {
252
+ type: "array",
253
+ description: "Flat values for pie / donut / radialBar charts.",
254
+ items: { type: "number" }
255
+ }
256
+ ]
257
+ }
258
+ },
259
+ required: ["series"]
260
+ },
261
+ idempotent: !0,
262
+ descriptionKey: "ui.agent.chart.actions.updateSeries",
263
+ description: "Replace the chart series without remounting. Pass the DECLARED type’s shape (see declaredType state); when the user has switched the view cross-shape the values are converted to the rendered shape. The data and its summary table persist across type switches, resizes and theme changes until the host passes a new series prop.",
264
+ invoke: (e, r) => {
265
+ e.updateSeries(r.series);
266
+ }
267
+ },
268
+ export_png: {
269
+ safety: "read",
270
+ returns: "string (PNG data URI)",
271
+ returnsSchema: {
272
+ type: "string",
273
+ description: "A `data:image/png;base64,…` URI of the rendered chart."
274
+ },
275
+ idempotent: !0,
276
+ descriptionKey: "ui.agent.chart.actions.exportPng",
277
+ description: "Return a PNG data URI of the chart for export or screenshotting. Waits until series pushed with update_series are drawn.",
278
+ invoke: (e) => e.dataURI()
279
+ }
280
+ },
281
+ domHooks: {
282
+ root: { attr: "data-component", value: "chart" },
283
+ instanceId: {
284
+ attr: "data-component-id",
285
+ sourceProp: "id",
286
+ description: "Sourced from the id prop."
287
+ }
288
+ }
289
+ }, kt = ge(
290
+ "ds:relative ds:block ds:w-full apex-theme-alfadocs",
291
+ {
292
+ variants: {
293
+ density: {
294
+ compact: "ds:min-h-[var(--chart-min-height-compact)]",
295
+ comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
296
+ // Applied when an explicit `height` prop is given and no density was
297
+ // requested: the wrapper must not exceed the caller's height (a 96px
298
+ // KPI chart inside a card must not reserve 320px).
299
+ none: ""
300
+ }
301
+ },
302
+ defaultVariants: { density: "comfortable" }
303
+ }
304
+ ), _t = ge("", {
305
+ variants: {
306
+ fill: {
307
+ none: "",
308
+ // The figure is the root: it takes the share itself, and as a flex item
309
+ // may still shrink below what it last drew.
310
+ root: "ds:h-[var(--chart-fill-size)] ds:min-h-0",
311
+ // Below the switcher row: the rest, whatever ApexCharts draws inside.
312
+ rest: "ds:min-h-0 ds:flex-1"
313
+ }
314
+ },
315
+ defaultVariants: { fill: "none" }
316
+ }), Ot = ge("ds:w-full", {
317
+ variants: {
318
+ fill: {
319
+ false: "ds:block",
320
+ true: "ds:flex ds:flex-col ds:h-[var(--chart-fill-size)] ds:min-h-0"
321
+ }
322
+ },
323
+ defaultVariants: { fill: !1 }
324
+ }), Nt = [
325
+ "verticalLines",
326
+ "horizontalLines",
327
+ "slantedLines",
328
+ "squares",
329
+ "circles"
330
+ ], Mt = ["line", "bar", "area"], Bt = ["pie", "donut", "radialBar"], Ve = [
331
+ "line",
332
+ "bar",
333
+ "area",
334
+ "pie",
335
+ "donut"
336
+ ], Ht = {
337
+ line: "chart.typeSwitcher.line",
338
+ bar: "chart.typeSwitcher.bar",
339
+ area: "chart.typeSwitcher.area",
340
+ pie: "chart.typeSwitcher.pie",
341
+ donut: "chart.typeSwitcher.donut"
342
+ }, zt = {
343
+ line: /* @__PURE__ */ v(St, {}),
344
+ bar: /* @__PURE__ */ v(gt, {}),
345
+ area: /* @__PURE__ */ v(yt, {}),
346
+ pie: /* @__PURE__ */ v(At, {}),
347
+ donut: /* @__PURE__ */ v(Et, {})
348
+ }, Pt = 2, Ye = "0 6", qt = 5, $t = -45, Wt = 640, Ft = 300, Dt = 160;
349
+ function Gt(e, r) {
350
+ !e || r.length === 0 || e.querySelectorAll(
351
+ ".apexcharts-bar-series > .apexcharts-series"
352
+ ).forEach((t) => {
353
+ const i = Number(t.getAttribute("data:realIndex"));
354
+ r.includes(i) && t.querySelectorAll("path.apexcharts-bar-area").forEach(
355
+ (p) => {
356
+ if (typeof p.getBBox != "function") return;
357
+ const c = p.getBBox();
358
+ p.setAttribute(
359
+ "d",
360
+ `M ${c.x} ${c.y + c.height} L ${c.x} ${c.y} L ${c.x + c.width} ${c.y} L ${c.x + c.width} ${c.y + c.height}`
361
+ ), p.setAttribute("stroke-dasharray", Ye), p.setAttribute("stroke-linecap", "round");
362
+ }
363
+ );
364
+ });
365
+ }
366
+ function Ke(e) {
367
+ const r = getComputedStyle(e), t = (i) => Number.parseFloat(r.getPropertyValue(i)) || 0;
368
+ return t("--min-target-size") + t("--focus-ring-offset") + t("--focus-ring-width");
369
+ }
370
+ function Vt(e, r) {
371
+ if (e === void 0) return r;
372
+ if (typeof e == "number") return e;
373
+ const t = Number.parseInt(e, 10);
374
+ return e.trim().endsWith("%") ? r * t / 100 : t;
375
+ }
376
+ function Kt(e) {
377
+ return typeof e == "number" ? e : e.trim().endsWith("%") ? Number.NaN : Number.parseInt(e, 10);
378
+ }
379
+ function je(e, r, t, i, p, c) {
380
+ if (i === p)
381
+ return {
382
+ effectiveSeries: e,
383
+ effectiveCategories: r,
384
+ effectiveLabels: t
385
+ };
386
+ if (!i) {
387
+ const s = e.filter((l) => l.role !== "compare");
388
+ return {
389
+ effectiveSeries: s.map((l) => l.data.reduce((R, $) => R + $, 0)),
390
+ effectiveCategories: void 0,
391
+ effectiveLabels: s.map((l) => l.name)
392
+ };
393
+ }
394
+ return {
395
+ effectiveSeries: [{ name: c, data: e }],
396
+ effectiveCategories: t ?? [],
397
+ effectiveLabels: void 0
398
+ };
399
+ }
400
+ function Ue({
401
+ themeOptions: e,
402
+ toolbarBand: r,
403
+ chartId: t,
404
+ toolbar: i,
405
+ reducedMotion: p,
406
+ toolbarLocale: c,
407
+ locale: d,
408
+ effectiveLabels: h,
409
+ formatValue: s,
410
+ noDataText: g,
411
+ effectiveType: l,
412
+ effectiveSeries: R,
413
+ effectiveCategories: $,
414
+ isRtl: H,
415
+ patterns: he,
416
+ stacked: z,
417
+ orientation: W,
418
+ curve: F,
419
+ colors: P,
420
+ radialValueFormatter: Q,
421
+ narrow: ee,
422
+ wrapperRef: me
423
+ }) {
424
+ var re, K, D, ae, C, ne;
425
+ const o = e, L = pe(l) && Array.isArray(R) ? R.map((n) => n.role === "compare") : [], I = L.some(Boolean), k = I && l === "bar", V = k && R.some(
426
+ (n) => n.role === "compare" && n.data.some((m) => m < 0)
427
+ ), te = k && W === "vertical" && !V, f = I ? ct() : 0.3, u = {
428
+ ...o,
429
+ chart: {
430
+ ...o.chart,
431
+ id: t,
432
+ toolbar: { show: i },
433
+ zoom: { enabled: i },
434
+ animations: {
435
+ enabled: !p,
436
+ dynamicAnimation: { enabled: !p }
437
+ },
438
+ locales: [c],
439
+ defaultLocale: d,
440
+ parentHeightOffset: 0,
441
+ // Keep the keyboard-operable legend; drop Apex's data-point navigation
442
+ // and live announcements (English-only, and the summary table covers them).
443
+ accessibility: {
444
+ enabled: !0,
445
+ announcements: { enabled: !1 },
446
+ keyboard: { enabled: !0, navigation: { enabled: !1 } }
447
+ },
448
+ // Stacking is axis-only, so a slice or radial chart never receives it.
449
+ // Sent as false too: ApexCharts merges an update into its config, so
450
+ // leaving it out would keep an earlier `true`.
451
+ ...pe(l) ? { stacked: z } : {}
452
+ },
453
+ // Only set `labels` when the effective type actually has them (slice
454
+ // charts). Emitting `labels: undefined` crashes ApexCharts' bar
455
+ // renderer — `parseDataAxisCharts` reads `labels.length` and throws
456
+ // "Cannot read properties of undefined (reading 'length')", which
457
+ // aborts the render and leaves a blank chart. Absent is safe; area /
458
+ // line tolerate the undefined but bar does not, so never pass it.
459
+ ...h ? { labels: h } : {},
460
+ legend: {
461
+ ...o.legend,
462
+ position: "bottom",
463
+ // ApexCharts legend.horizontalAlign is a physical prop mapped internally
464
+ // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
465
+ // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
466
+ // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
467
+ horizontalAlign: H ? "right" : "left",
468
+ fontFamily: "inherit",
469
+ // apexcharts-theme.css sizes the legend hit areas and ring room from
470
+ // this 4px; pinned so an ApexCharts default change cannot break them.
471
+ itemMargin: { horizontal: 5, vertical: 4 }
472
+ },
473
+ tooltip: {
474
+ ...o.tooltip,
475
+ y: {
476
+ formatter: (n) => s(n)
477
+ }
478
+ },
479
+ noData: {
480
+ text: g
481
+ }
482
+ };
483
+ if (u.title = i && r ? { ...u.title, text: "", margin: r } : { ...u.title, text: void 0, margin: qt }, P && P.length > 0 && (u.colors = P), I) {
484
+ const n = u.colors ?? o.colors ?? [], m = (T) => n[T % Math.max(n.length, 1)], A = R.map((T, N) => T.role === "compare" ? -1 : N).filter((T) => T >= 0);
485
+ let O = 0;
486
+ u.colors = R.map((T, N) => {
487
+ if (T.role !== "compare") return m(N);
488
+ const M = A.length ? A[Math.min(O++, A.length - 1)] : N;
489
+ return m(M);
490
+ });
491
+ const j = u.colors.map(
492
+ (T, N) => L[N] ? lt(T) : T
493
+ );
494
+ u.legend = {
495
+ ...u.legend,
496
+ markers: {
497
+ ...((re = u.legend) == null ? void 0 : re.markers) ?? {},
498
+ fillColors: j
499
+ }
500
+ };
501
+ }
502
+ if (pe(l)) {
503
+ const n = l === "bar" && W === "horizontal";
504
+ u.xaxis = {
505
+ ...o.xaxis,
506
+ categories: $ ?? [],
507
+ labels: {
508
+ ...(K = o.xaxis) == null ? void 0 : K.labels,
509
+ formatter: n ? (m) => s(Number(m)) : void 0,
510
+ // A narrow chart thins crowded labels rather than turning them sideways.
511
+ // Sent both ways, so a widened chart rotates; the thinning is pinned
512
+ // so an ApexCharts default change cannot leave narrow labels overlapping.
513
+ rotate: ee ? 0 : $t,
514
+ hideOverlappingLabels: !0
515
+ }
516
+ }, u.yaxis = {
517
+ ...o.yaxis,
518
+ opposite: H,
519
+ ...n ? {} : { labels: { formatter: (m) => s(m) } }
520
+ }, u.stroke = {
521
+ curve: F,
522
+ width: l === "bar" ? I ? L.map((m) => m ? Pt : 0) : 0 : 2,
523
+ ...I ? {
524
+ lineCap: "round",
525
+ // Runtime accepts a string dash; the published types say
526
+ // `number` → one documented cast. `'0 6'` + round cap ⇒ dots.
527
+ dashArray: L.map(
528
+ (m) => m ? Ye : 0
529
+ )
530
+ } : {}
531
+ }, u.dataLabels = { enabled: !1 };
532
+ }
533
+ if (l === "radialBar" && Q) {
534
+ const n = o.plotOptions ?? {};
535
+ u.plotOptions = {
536
+ ...n,
537
+ radialBar: {
538
+ ...n.radialBar ?? {},
539
+ dataLabels: {
540
+ ...((D = n.radialBar) == null ? void 0 : D.dataLabels) ?? {},
541
+ value: {
542
+ ...((C = (ae = n.radialBar) == null ? void 0 : ae.dataLabels) == null ? void 0 : C.value) ?? {},
543
+ formatter: (m) => Q(Number(m))
544
+ }
545
+ }
546
+ }
547
+ };
548
+ }
549
+ if (l === "bar") {
550
+ const n = o.plotOptions ?? {};
551
+ u.plotOptions = {
552
+ ...n,
553
+ bar: {
554
+ ...n.bar ?? {},
555
+ horizontal: W === "horizontal"
556
+ }
557
+ };
558
+ }
559
+ if (he ? u.fill = {
560
+ type: I ? L.map((n) => n ? "solid" : "pattern") : "pattern",
561
+ opacity: I ? L.map(
562
+ (n) => n ? f : l === "area" ? 0.3 : 1
563
+ ) : l === "area" ? 0.3 : 1,
564
+ pattern: {
565
+ style: [...Nt],
566
+ strokeWidth: 2
567
+ }
568
+ } : k ? u.fill = {
569
+ type: "solid",
570
+ opacity: L.map((n) => n ? f : 1)
571
+ } : l === "area" && (u.fill = I ? {
572
+ type: "gradient",
573
+ opacity: L.map((n) => n ? f : 0.3)
574
+ } : {
575
+ type: "gradient",
576
+ opacity: 0.3
577
+ }), te) {
578
+ const n = L.map((O, j) => O ? j : -1).filter((O) => O >= 0), m = () => Gt(me.current, n), A = () => typeof requestAnimationFrame == "function" ? requestAnimationFrame(m) : m();
579
+ u.chart = {
580
+ ...u.chart,
581
+ events: {
582
+ ...((ne = u.chart) == null ? void 0 : ne.events) ?? {},
583
+ mounted: () => A(),
584
+ updated: () => A(),
585
+ animationEnd: () => m()
586
+ }
587
+ };
588
+ }
589
+ return jt(u, l);
590
+ }
591
+ function jt(e, r) {
592
+ var i, p, c, d, h, s;
593
+ if (!pe(r)) return e;
594
+ const t = (i = e.chart) == null ? void 0 : i.events;
595
+ return {
596
+ ...e,
597
+ colors: e.colors,
598
+ chart: {
599
+ ...e.chart,
600
+ events: {
601
+ ...t,
602
+ mounted: t == null ? void 0 : t.mounted,
603
+ updated: t == null ? void 0 : t.updated,
604
+ animationEnd: t == null ? void 0 : t.animationEnd
605
+ }
606
+ },
607
+ stroke: {
608
+ ...e.stroke,
609
+ lineCap: ((p = e.stroke) == null ? void 0 : p.lineCap) ?? (r === "bar" ? "square" : "butt"),
610
+ dashArray: ((c = e.stroke) == null ? void 0 : c.dashArray) ?? 0
611
+ },
612
+ legend: {
613
+ ...e.legend,
614
+ markers: {
615
+ ...(d = e.legend) == null ? void 0 : d.markers,
616
+ fillColors: (s = (h = e.legend) == null ? void 0 : h.markers) == null ? void 0 : s.fillColors
617
+ }
618
+ },
619
+ fill: e.fill ?? { type: "solid", opacity: 0.85 }
620
+ };
621
+ }
622
+ function Z(e) {
623
+ return Bt.includes(e);
624
+ }
625
+ function pe(e) {
626
+ return Mt.includes(e);
627
+ }
628
+ function Ut(e, r) {
629
+ return Z(r) ? [
630
+ {
631
+ name: "",
632
+ data: e
633
+ }
634
+ ] : e;
635
+ }
636
+ const Yt = tt(
637
+ ({
638
+ title: e,
639
+ id: r,
640
+ type: t,
641
+ series: i,
642
+ categories: p,
643
+ labels: c,
644
+ height: d,
645
+ width: h,
646
+ patterns: s = !1,
647
+ stacked: g = !1,
648
+ orientation: l = "vertical",
649
+ curve: R = "smooth",
650
+ colors: $,
651
+ toolbar: H = !1,
652
+ locale: he,
653
+ radialValueFormatter: z,
654
+ valueFormatter: W,
655
+ switchableTypes: F,
656
+ onTypeChange: P,
657
+ density: Q,
658
+ className: ee
659
+ }, me) => {
660
+ const { t: o, i18n: L } = nt("ui"), I = rt(), k = w(
661
+ () => `chart-${I.replace(/[^a-zA-Z0-9-_]/g, "")}`,
662
+ [I]
663
+ ), V = `${k}-summary`, te = G(null), [f, u] = B(null), re = w(
664
+ () => pt(te, u),
665
+ []
666
+ ), K = w(() => ({ current: f }), [f]), [D, ae] = B(0), C = typeof d == "string" && d.trim().endsWith("%") ? d.trim() : void 0, [ne, n] = B(0), m = G(!1);
667
+ m.current = C !== void 0, ut(() => {
668
+ C && f && n(Math.floor(f.clientHeight));
669
+ }, [C, f]), ot(K), it(K);
670
+ const A = he ?? L.language ?? "en", [O, j] = B(() => {
671
+ try {
672
+ return Ge();
673
+ } catch {
674
+ return {};
675
+ }
676
+ });
677
+ X(() => {
678
+ if (typeof document > "u") return;
679
+ let a;
680
+ const y = new MutationObserver(() => {
681
+ clearTimeout(a), a = setTimeout(() => {
682
+ try {
683
+ j(Ge());
684
+ } catch {
685
+ }
686
+ }, 50);
687
+ });
688
+ return y.observe(document.documentElement, {
689
+ attributes: !0,
690
+ attributeFilter: ["class"]
691
+ }), () => {
692
+ clearTimeout(a), y.disconnect();
693
+ };
694
+ }, []);
695
+ const [T, N] = B(
696
+ () => typeof document > "u" ? 0 : Ke(document.documentElement)
697
+ );
698
+ X(() => {
699
+ if (!f || !H) return;
700
+ const a = new ResizeObserver(() => y()), y = () => {
701
+ const S = f.querySelector(".apexcharts-toolbar");
702
+ S && a.observe(S), N(
703
+ Math.max(Ke(f), (S == null ? void 0 : S.offsetHeight) ?? 0)
704
+ );
705
+ };
706
+ y();
707
+ const x = new MutationObserver(y);
708
+ for (let S = f.parentElement; S; S = S.parentElement)
709
+ x.observe(S, { attributes: !0, attributeFilter: ["class"] });
710
+ const E = new MutationObserver((S) => {
711
+ S.flatMap((U) => [...U.addedNodes]).some(
712
+ (U) => U instanceof Element && (U.matches(".apexcharts-toolbar") || U.querySelector(".apexcharts-toolbar"))
713
+ ) && y();
714
+ });
715
+ return E.observe(f, { childList: !0, subtree: !0 }), () => {
716
+ a.disconnect(), x.disconnect(), E.disconnect();
717
+ };
718
+ }, [f, H]), X(() => {
719
+ const a = f;
720
+ if (!a || typeof ResizeObserver > "u") return;
721
+ const y = new ResizeObserver((x) => {
722
+ const E = x[0];
723
+ E && (ae(Math.floor(E.contentRect.width)), m.current && n(Math.floor(E.contentRect.height)));
724
+ });
725
+ return y.observe(a), () => y.disconnect();
726
+ }, [f]);
727
+ const M = w(() => {
728
+ if (!F || F.length === 0) return [];
729
+ const a = F.filter(
730
+ (x) => Ve.includes(x)
731
+ );
732
+ if (!Ve.includes(t))
733
+ return [];
734
+ const y = a.includes(t) ? a : [t, ...a];
735
+ return [...new Set(y)];
736
+ }, [F, t]), _ = M.length >= 2, [fe, xe] = B(null), b = _ && fe && M.includes(fe) ? fe : t;
737
+ Lt(
738
+ f,
739
+ b !== "pie" && b !== "donut"
740
+ );
741
+ const be = Z(t), ye = Z(b), [se, Se] = B(null), [we, Ze] = B(i);
742
+ we !== i && (Ze(i), se && Se(null));
743
+ const Ae = se && se.base === i && we === i ? se.next : i, Te = G(i);
744
+ Te.current = i;
745
+ const { effectiveSeries: q, effectiveCategories: oe, effectiveLabels: ie } = w(
746
+ () => je(
747
+ Ae,
748
+ p,
749
+ c,
750
+ be,
751
+ ye,
752
+ o("chart.table.value")
753
+ ),
754
+ [Ae, p, c, be, ye, o]
755
+ ), Ee = (a) => je(
756
+ a,
757
+ p,
758
+ c,
759
+ be,
760
+ ye,
761
+ o("chart.table.value")
762
+ ), Ce = G(Ee);
763
+ Ce.current = Ee;
764
+ const Le = G(Promise.resolve()), ve = w(
765
+ () => ({
766
+ async dataURI() {
767
+ await Le.current;
768
+ const a = De.getChartByID(k);
769
+ return a ? (await a.dataURI()).imgURI : "";
770
+ },
771
+ updateSeries(a) {
772
+ Se({ base: Te.current, next: a });
773
+ const y = De.getChartByID(k);
774
+ if (!y) return;
775
+ const x = Ce.current(a), E = { ...He.current, ...x };
776
+ Le.current = y.updateOptions(
777
+ { ...Ue(E), series: x.effectiveSeries },
778
+ !1,
779
+ !0
780
+ ).catch(() => {
781
+ });
782
+ },
783
+ setType(a) {
784
+ return !_ || !M.includes(a) ? !1 : (xe(a), !0);
785
+ },
786
+ getTypeState() {
787
+ return {
788
+ declaredType: t,
789
+ effectiveType: b,
790
+ availableTypes: _ ? [...M] : []
791
+ };
792
+ }
793
+ }),
794
+ [k, t, b, _, M]
795
+ );
796
+ at(me, () => ve, [ve]), ht(Rt, ve, r);
797
+ const Ie = typeof document < "u" && document.documentElement.dir === "rtl", Re = w(
798
+ () => Ut(q, b),
799
+ [q, b]
800
+ ), ke = w(
801
+ () => new Intl.NumberFormat(A),
802
+ [A]
803
+ ), ce = w(
804
+ () => W ?? ((a) => ke.format(a)),
805
+ [W, ke]
806
+ ), _e = w(
807
+ () => ({
808
+ name: A,
809
+ options: {
810
+ toolbar: {
811
+ download: o("chart.toolbar.download"),
812
+ // Names the button that opens the export menu (Apex: "Menu").
813
+ menu: o("chart.toolbar.download"),
814
+ selection: o("chart.toolbar.selection"),
815
+ selectionZoom: o("chart.toolbar.selectionZoom"),
816
+ zoomIn: o("chart.toolbar.zoomIn"),
817
+ zoomOut: o("chart.toolbar.zoomOut"),
818
+ pan: o("chart.toolbar.pan"),
819
+ reset: o("chart.toolbar.reset"),
820
+ exportToSVG: o("chart.toolbar.exportToSVG"),
821
+ exportToPNG: o("chart.toolbar.exportToPNG"),
822
+ exportToCSV: o("chart.toolbar.exportToCSV")
823
+ }
824
+ }
825
+ }),
826
+ [A, o]
827
+ ), Oe = dt(), Ne = o("chart.noData"), Me = Vt(h, D), Be = Me > 0 && Me < Wt, le = w(
828
+ () => ({
829
+ themeOptions: O,
830
+ toolbarBand: T,
831
+ chartId: k,
832
+ toolbar: H,
833
+ reducedMotion: Oe,
834
+ toolbarLocale: _e,
835
+ locale: A,
836
+ effectiveLabels: ie,
837
+ formatValue: ce,
838
+ noDataText: Ne,
839
+ effectiveType: b,
840
+ effectiveSeries: q,
841
+ effectiveCategories: oe,
842
+ isRtl: Ie,
843
+ patterns: s,
844
+ stacked: g,
845
+ orientation: l,
846
+ curve: R,
847
+ colors: $,
848
+ radialValueFormatter: z,
849
+ narrow: Be,
850
+ wrapperRef: te
851
+ }),
852
+ [
853
+ O,
854
+ T,
855
+ k,
856
+ H,
857
+ Oe,
858
+ _e,
859
+ A,
860
+ ie,
861
+ ce,
862
+ Ne,
863
+ b,
864
+ q,
865
+ oe,
866
+ Ie,
867
+ s,
868
+ g,
869
+ l,
870
+ R,
871
+ $,
872
+ z,
873
+ Be
874
+ ]
875
+ ), Xe = w(
876
+ () => Ue(le),
877
+ [le]
878
+ ), He = G(le);
879
+ He.current = le;
880
+ const Je = h ?? (D > 0 ? D : "100%"), ze = C ? Math.max(ne, Dt) : d ?? 320, Pe = Kt(ze), qe = Pe > 0 && Pe < Ft;
881
+ It(f, qe);
882
+ const Qe = w(() => {
883
+ const a = Z(b) ? ie ?? [] : oe ?? [], y = Re;
884
+ return /* @__PURE__ */ v("div", { className: "ds:sr-only", children: /* @__PURE__ */ Y("table", { id: V, children: [
885
+ /* @__PURE__ */ v("caption", { children: e }),
886
+ /* @__PURE__ */ v("thead", { children: /* @__PURE__ */ Y("tr", { children: [
887
+ /* @__PURE__ */ v("th", { scope: "col", children: o("chart.table.series") }),
888
+ a.map((x, E) => /* @__PURE__ */ v("th", { scope: "col", children: x }, `${x}-${E}`))
889
+ ] }) }),
890
+ /* @__PURE__ */ v("tbody", { children: y.map((x, E) => /* @__PURE__ */ Y("tr", { children: [
891
+ /* @__PURE__ */ v("th", { scope: "row", children: x.name || o("chart.table.value") }),
892
+ x.data.map((S, Fe) => /* @__PURE__ */ v("td", { children: b === "radialBar" && z ? z(S) : ce(S) }, `${E}-${Fe}`))
893
+ ] }, `${x.name}-${E}`)) })
894
+ ] }) });
895
+ }, [
896
+ b,
897
+ Re,
898
+ ie,
899
+ oe,
900
+ V,
901
+ e,
902
+ o,
903
+ ce,
904
+ z
905
+ ]), et = w(() => (Z(b), q), [q, b]), $e = C ? {
906
+ "--chart-fill-size": C
907
+ } : void 0, We = /* @__PURE__ */ Y(
908
+ "div",
909
+ {
910
+ ref: re,
911
+ role: "figure",
912
+ "aria-label": e,
913
+ "aria-describedby": V,
914
+ "data-legend-layout": qe ? "row" : void 0,
915
+ className: kt({
916
+ // Explicit height wins over the density min-height unless the
917
+ // caller also asked for a density explicitly.
918
+ // A `%` height takes its height from the parent, never a density.
919
+ density: C ? "none" : Q ?? (d !== void 0 ? "none" : void 0),
920
+ className: [
921
+ _t({
922
+ fill: C ? _ ? "rest" : "root" : "none"
923
+ }),
924
+ _ ? void 0 : ee
925
+ ].filter(Boolean).join(" ")
926
+ }),
927
+ style: _ ? void 0 : $e,
928
+ ..._ ? {} : { "data-component": "chart", "data-component-id": r },
929
+ children: [
930
+ Qe,
931
+ /* @__PURE__ */ v(
932
+ st,
933
+ {
934
+ type: b,
935
+ series: et,
936
+ options: Xe,
937
+ width: Je,
938
+ height: ze
939
+ },
940
+ b
941
+ )
942
+ ]
943
+ }
944
+ );
945
+ return _ ? /* @__PURE__ */ Y(
946
+ "div",
947
+ {
948
+ "data-component": "chart",
949
+ "data-component-id": r,
950
+ className: Ot({
951
+ fill: C !== void 0,
952
+ className: ee
953
+ }),
954
+ style: $e,
955
+ children: [
956
+ /* @__PURE__ */ v("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ v(
957
+ ft,
958
+ {
959
+ role: "radiogroup",
960
+ mode: "toggle-single",
961
+ size: "sm",
962
+ "aria-label": o("chart.typeSwitcher.label"),
963
+ value: b,
964
+ onValueChange: (a) => {
965
+ a !== b && (xe(a), P == null || P(a));
966
+ },
967
+ children: M.map((a) => /* @__PURE__ */ v(
968
+ mt,
969
+ {
970
+ value: a,
971
+ type: "button",
972
+ icon: zt[a],
973
+ "aria-label": o(Ht[a])
974
+ },
975
+ a
976
+ ))
977
+ }
978
+ ) }),
979
+ We
980
+ ]
981
+ }
982
+ ) : We;
983
+ }
984
+ );
985
+ Yt.displayName = "Chart";
986
+ export {
987
+ Yt as C,
988
+ kt as a,
989
+ Rt as c
990
+ };
991
+ //# sourceMappingURL=chart-DgYHN8Xq.js.map