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