@alfadocs/ui-kit 1.60.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 (369) 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-B2MB7SRS.js +1428 -0
  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-DK2pFMpf.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-DhePV1hE.js → sidebar-BS24EnYd.js} +527 -519
  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 +49 -2
  152. package/dist/agent-i18n/en.json +13 -1
  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/dashboard-grid-engine.d.ts +16 -4
  195. package/dist/components/dashboard-grid/dashboard-grid.d.ts +42 -2
  196. package/dist/components/dashboard-grid/index.d.ts +1 -1
  197. package/dist/components/dashboard-grid/index.js +1 -1
  198. package/dist/components/data-table/index.js +4 -4
  199. package/dist/components/data-table-tabs/index.js +1 -1
  200. package/dist/components/dependent-selector/index.js +1 -1
  201. package/dist/components/description-list/index.js +1 -1
  202. package/dist/components/dev-bypass-button/index.js +1 -1
  203. package/dist/components/document-preview/index.js +1 -1
  204. package/dist/components/document-scanner/index.js +1 -1
  205. package/dist/components/due-date-calculator/index.js +2 -2
  206. package/dist/components/editable-description/index.js +1 -1
  207. package/dist/components/editor-overlay/index.js +1 -1
  208. package/dist/components/entity-summary/index.js +1 -1
  209. package/dist/components/error-summary/index.js +1 -1
  210. package/dist/components/face-scheme/index.js +1 -1
  211. package/dist/components/fetal-weight/index.js +1 -1
  212. package/dist/components/field-array/index.js +1 -1
  213. package/dist/components/file-manager/index.js +1 -1
  214. package/dist/components/fiscal-code-input/index.js +1 -1
  215. package/dist/components/freemium-paywall/index.js +1 -1
  216. package/dist/components/gestational-age-calculator/index.js +1 -1
  217. package/dist/components/hcg-doubling/index.js +1 -1
  218. package/dist/components/header/index.js +1 -1
  219. package/dist/components/header-settings/index.js +1 -1
  220. package/dist/components/heatmap/index.js +1 -1
  221. package/dist/components/hover-card/index.js +1 -1
  222. package/dist/components/icon-button/index.js +1 -1
  223. package/dist/components/icon-button-group/index.js +1 -1
  224. package/dist/components/icon-picker/index.js +1 -1
  225. package/dist/components/info-tip/index.js +1 -1
  226. package/dist/components/key-value-pair/index.js +1 -1
  227. package/dist/components/locale-picker/index.js +1 -1
  228. package/dist/components/message-card/index.js +1 -1
  229. package/dist/components/message-tray/index.js +1 -1
  230. package/dist/components/multi-select/index.js +1 -1
  231. package/dist/components/note-timeline/index.js +1 -1
  232. package/dist/components/notes-panel/index.js +1 -1
  233. package/dist/components/notification-card/index.js +1 -1
  234. package/dist/components/notification-tray/index.js +1 -1
  235. package/dist/components/operator-hero/index.js +1 -1
  236. package/dist/components/optical-prescription/index.js +1 -1
  237. package/dist/components/panel-header/index.js +1 -1
  238. package/dist/components/panel-subview/index.js +1 -1
  239. package/dist/components/patient-details/index.js +1 -1
  240. package/dist/components/patient-search/index.js +1 -1
  241. package/dist/components/patient-summary-card/index.js +1 -1
  242. package/dist/components/patient-table/index.js +1 -1
  243. package/dist/components/payment-card/index.js +1 -1
  244. package/dist/components/payment-form/index.js +1 -1
  245. package/dist/components/pdf-viewer/index.js +1 -1
  246. package/dist/components/periodontal-chart/index.js +1 -1
  247. package/dist/components/periodontal-chart-card/index.js +1 -1
  248. package/dist/components/periodontal-diagnosis/index.js +1 -1
  249. package/dist/components/periodontal-risk-chart/index.js +1 -1
  250. package/dist/components/permission-matrix/index.js +1 -1
  251. package/dist/components/popover/index.js +1 -1
  252. package/dist/components/practice-profile-hero/index.js +1 -1
  253. package/dist/components/practice-results/index.js +1 -1
  254. package/dist/components/pregnancy-dating/index.js +1 -1
  255. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  256. package/dist/components/privacy-lock/index.js +1 -1
  257. package/dist/components/product-hub-tray/index.js +1 -1
  258. package/dist/components/public-header/index.js +1 -1
  259. package/dist/components/radio/index.js +1 -1
  260. package/dist/components/radio-group/index.js +2 -2
  261. package/dist/components/radiograph-panel/index.js +1 -1
  262. package/dist/components/resource-chip/index.js +1 -1
  263. package/dist/components/reviews-panel/index.js +1 -1
  264. package/dist/components/rich-text-editor/index.js +2 -2
  265. package/dist/components/sheet/index.js +1 -1
  266. package/dist/components/sidebar/index.js +1 -1
  267. package/dist/components/sidebar/sidebar.d.ts +6 -0
  268. package/dist/components/sign-document/index.js +1 -1
  269. package/dist/components/signature-status-chip/index.js +1 -1
  270. package/dist/components/slot-grid/index.js +1 -1
  271. package/dist/components/stat/index.js +1 -1
  272. package/dist/components/stat/stat.d.ts +7 -2
  273. package/dist/components/streaming-text/index.js +1 -1
  274. package/dist/components/tab-bar/index.js +1 -1
  275. package/dist/components/tag/index.js +1 -1
  276. package/dist/components/task-card/index.js +1 -1
  277. package/dist/components/task-editor/index.js +1 -1
  278. package/dist/components/task-tray/index.js +1 -1
  279. package/dist/components/tasks-panel/index.js +1 -1
  280. package/dist/components/theme-toggle/index.js +1 -1
  281. package/dist/components/toast/index.js +1 -1
  282. package/dist/components/tool-rail/index.js +1 -1
  283. package/dist/components/tool-rail/tool-rail.d.ts +7 -0
  284. package/dist/components/tooltip/index.js +1 -1
  285. package/dist/components/tooth-scheme/index.js +1 -1
  286. package/dist/components/transcript-panel/index.js +1 -1
  287. package/dist/components/treatment-receipt/index.js +1 -1
  288. package/dist/components/voice-control-panel/index.js +1 -1
  289. package/dist/components/warning-stack/index.js +1 -1
  290. package/dist/components/widget-picker/index.js +1 -1
  291. package/dist/components/workflow/index.js +1 -1
  292. package/dist/hooks/index.js +1 -1
  293. package/dist/hooks/use-edge-resize.d.ts +5 -1
  294. package/dist/i18n/locales/ar.d.ts +1 -0
  295. package/dist/i18n/locales/ar.js +1 -0
  296. package/dist/i18n/locales/de.d.ts +1 -0
  297. package/dist/i18n/locales/de.js +1 -0
  298. package/dist/i18n/locales/el.d.ts +1 -0
  299. package/dist/i18n/locales/el.js +1 -0
  300. package/dist/i18n/locales/en.d.ts +1 -0
  301. package/dist/i18n/locales/en.js +1 -0
  302. package/dist/i18n/locales/es.d.ts +1 -0
  303. package/dist/i18n/locales/es.js +1 -0
  304. package/dist/i18n/locales/fr.d.ts +1 -0
  305. package/dist/i18n/locales/fr.js +1 -0
  306. package/dist/i18n/locales/hi.d.ts +1 -0
  307. package/dist/i18n/locales/hi.js +1 -0
  308. package/dist/i18n/locales/it.d.ts +1 -0
  309. package/dist/i18n/locales/it.js +1 -0
  310. package/dist/i18n/locales/ja.d.ts +1 -0
  311. package/dist/i18n/locales/ja.js +1 -0
  312. package/dist/i18n/locales/nl.d.ts +1 -0
  313. package/dist/i18n/locales/nl.js +1 -0
  314. package/dist/i18n/locales/pl.d.ts +1 -0
  315. package/dist/i18n/locales/pl.js +1 -0
  316. package/dist/i18n/locales/pt.d.ts +1 -0
  317. package/dist/i18n/locales/pt.js +1 -0
  318. package/dist/i18n/locales/ro.d.ts +1 -0
  319. package/dist/i18n/locales/ro.js +1 -0
  320. package/dist/i18n/locales/ru.d.ts +1 -0
  321. package/dist/i18n/locales/ru.js +1 -0
  322. package/dist/i18n/locales/sq.d.ts +1 -0
  323. package/dist/i18n/locales/sq.js +1 -0
  324. package/dist/i18n/locales/sv.d.ts +1 -0
  325. package/dist/i18n/locales/sv.js +1 -0
  326. package/dist/i18n/locales/tr.d.ts +1 -0
  327. package/dist/i18n/locales/tr.js +1 -0
  328. package/dist/i18n/locales/zh.d.ts +1 -0
  329. package/dist/i18n/locales/zh.js +1 -0
  330. package/dist/index.js +778 -776
  331. package/dist/locales/ar.json +1 -0
  332. package/dist/locales/de.json +1 -0
  333. package/dist/locales/el.json +1 -0
  334. package/dist/locales/en.json +1 -0
  335. package/dist/locales/es.json +1 -0
  336. package/dist/locales/fr.json +1 -0
  337. package/dist/locales/hi.json +1 -0
  338. package/dist/locales/it.json +1 -0
  339. package/dist/locales/ja.json +1 -0
  340. package/dist/locales/nl.json +1 -0
  341. package/dist/locales/pl.json +1 -0
  342. package/dist/locales/pt.json +1 -0
  343. package/dist/locales/ro.json +1 -0
  344. package/dist/locales/ru.json +1 -0
  345. package/dist/locales/sq.json +1 -0
  346. package/dist/locales/sv.json +1 -0
  347. package/dist/locales/tr.json +1 -0
  348. package/dist/locales/zh.json +1 -0
  349. package/dist/patterns/alia-assistant/index.js +1 -1
  350. package/dist/patterns/anamnesis/index.js +1 -1
  351. package/dist/patterns/calendar/index.js +1 -1
  352. package/dist/patterns/forgot-password-form/index.js +1 -1
  353. package/dist/patterns/help-me-write-templates/index.js +1 -1
  354. package/dist/patterns/login-form/index.js +1 -1
  355. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  356. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
  357. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  358. package/dist/patterns/registration-form/index.js +1 -1
  359. package/dist/patterns/signature-request/index.js +1 -1
  360. package/dist/patterns/signed-out-frame/index.js +1 -1
  361. package/dist/tokens.css +8 -1
  362. package/package.json +1 -1
  363. package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
  364. package/dist/_chunks/chart-D7PbNO_M.js +0 -920
  365. package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
  366. package/dist/_chunks/dashboard-grid-DeNEltwI.js +0 -933
  367. package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
  368. package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
  369. package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
@@ -1,920 +0,0 @@
1
- import { jsx as y, jsxs as Y } from "react/jsx-runtime";
2
- import { useEffect as ce, forwardRef as Ue, useId as Ye, useMemo as S, useRef as j, useState as $, useImperativeHandle as je } from "react";
3
- import { c as Ve } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ze } from "react-i18next";
5
- import Xe from "react-apexcharts";
6
- import Ne from "apexcharts";
7
- import { u as Je, a as Qe, g as Be, b as et, r as tt } from "./apexcharts-theme-DNoXvgnZ.js";
8
- import { u as rt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
- import { c as at } from "./compose-refs-C0k0tdqF.js";
10
- import { u as nt } from "./registry-DvAUVLHh.js";
11
- import { I as ot } from "./icon-button-dNE6ENLn.js";
12
- import { I as st } from "./icon-button-group-Du8IvZek.js";
13
- import { c as Z } from "./createLucideIcon-DhHxpK9K.js";
14
- /**
15
- * @license lucide-react v1.22.0 - ISC
16
- *
17
- * This source code is licensed under the ISC license.
18
- * See the LICENSE file in the root directory of this source tree.
19
- */
20
- const it = [
21
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
22
- [
23
- "path",
24
- {
25
- 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",
26
- key: "q0gr47"
27
- }
28
- ]
29
- ], ct = Z("chart-area", it);
30
- /**
31
- * @license lucide-react v1.22.0 - ISC
32
- *
33
- * This source code is licensed under the ISC license.
34
- * See the LICENSE file in the root directory of this source tree.
35
- */
36
- const lt = [
37
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
38
- ["path", { d: "M18 17V9", key: "2bz60n" }],
39
- ["path", { d: "M13 17V5", key: "1frdt8" }],
40
- ["path", { d: "M8 17v-3", key: "17ska0" }]
41
- ], dt = Z("chart-column", lt);
42
- /**
43
- * @license lucide-react v1.22.0 - ISC
44
- *
45
- * This source code is licensed under the ISC license.
46
- * See the LICENSE file in the root directory of this source tree.
47
- */
48
- const pt = [
49
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
50
- ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
51
- ], ut = Z("chart-line", pt);
52
- /**
53
- * @license lucide-react v1.22.0 - ISC
54
- *
55
- * This source code is licensed under the ISC license.
56
- * See the LICENSE file in the root directory of this source tree.
57
- */
58
- const ht = [
59
- [
60
- "path",
61
- {
62
- 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",
63
- key: "pzmjnu"
64
- }
65
- ],
66
- ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
67
- ], mt = Z("chart-pie", ht);
68
- /**
69
- * @license lucide-react v1.22.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */
74
- const ft = [
75
- [
76
- "path",
77
- {
78
- 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",
79
- key: "19sr3x"
80
- }
81
- ],
82
- ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
83
- ], bt = Z("donut", ft), yt = ".apexcharts-legend, .apexcharts-toolbar";
84
- function ie(e, a, t) {
85
- !e || e.getAttribute(a) === t || (t === null ? e.removeAttribute(a) : e.setAttribute(a, t));
86
- }
87
- function gt(e, a) {
88
- ce(() => {
89
- if (!e) return;
90
- const t = () => {
91
- e.querySelectorAll(".apexcharts-canvas").forEach((u) => {
92
- Array.from(u.children).forEach((h) => {
93
- h.matches(yt) || ie(h, "aria-hidden", "true");
94
- });
95
- }), e.querySelectorAll(".apexcharts-toolbar").forEach((u) => {
96
- var f;
97
- const h = ((f = u.querySelector(".apexcharts-menu-icon")) == null ? void 0 : f.getAttribute("aria-expanded")) === "true";
98
- ie(
99
- u.querySelector(".apexcharts-menu"),
100
- "inert",
101
- h ? null : ""
102
- );
103
- }), e.querySelectorAll(
104
- '.apexcharts-legend-series[role="button"]'
105
- ).forEach((u) => {
106
- ie(u, "aria-label", null);
107
- const h = u.getAttribute("data:collapsed") === "true" ? "false" : "true";
108
- ie(u, "aria-pressed", a ? h : null);
109
- });
110
- };
111
- let s = 0;
112
- const p = (u) => {
113
- const h = u.target instanceof Element ? u.target.closest(".apexcharts-legend-series") : null, f = h == null ? void 0 : h.getAttribute("rel");
114
- f && (cancelAnimationFrame(s), s = requestAnimationFrame(() => {
115
- var l;
116
- const O = document.activeElement;
117
- O && O !== document.body || (l = e.querySelector(
118
- `.apexcharts-legend-series[rel="${CSS.escape(f)}"]`
119
- )) == null || l.focus();
120
- }));
121
- };
122
- t();
123
- const i = new MutationObserver(t);
124
- return i.observe(e, {
125
- childList: !0,
126
- subtree: !0,
127
- attributes: !0,
128
- attributeFilter: [
129
- "aria-hidden",
130
- "aria-label",
131
- "aria-pressed",
132
- "aria-expanded"
133
- ]
134
- }), e.addEventListener("click", p), () => {
135
- i.disconnect(), e.removeEventListener("click", p), cancelAnimationFrame(s);
136
- };
137
- }, [e, a]);
138
- }
139
- const vt = {
140
- id: "chart",
141
- // view_change backs the opt-in type switcher (`switchableTypes` prop):
142
- // the same chart re-presented as line / bar / area / pie / donut.
143
- capabilities: ["view_change"],
144
- state: {
145
- declaredType: {
146
- type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
147
- descriptionKey: "ui.agent.chart.state.declaredType",
148
- description: "The consumer-declared chart type — the shape `update_series` expects.",
149
- read: (e) => e.getTypeState().declaredType
150
- },
151
- effectiveType: {
152
- type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
153
- descriptionKey: "ui.agent.chart.state.effectiveType",
154
- description: "The type currently rendered — differs from declaredType after a type-switcher pick.",
155
- read: (e) => e.getTypeState().effectiveType
156
- },
157
- availableTypes: {
158
- type: "ChartType[]",
159
- descriptionKey: "ui.agent.chart.state.availableTypes",
160
- description: "Types the switcher offers. Empty when the chart has no type switcher.",
161
- read: (e) => e.getTypeState().availableTypes
162
- }
163
- },
164
- actions: {
165
- change_view: {
166
- // Switching the presentation is a write (it changes what the user
167
- // sees) but is trivially reversible by switching back.
168
- safety: "write",
169
- argsType: "type",
170
- argsSchema: {
171
- type: "object",
172
- properties: {
173
- type: {
174
- type: "string",
175
- enum: ["line", "bar", "area", "pie", "donut"],
176
- description: "The chart type to render."
177
- }
178
- },
179
- required: ["type"]
180
- },
181
- returns: "boolean (accepted)",
182
- returnsSchema: {
183
- type: "boolean",
184
- description: "True when the switch was applied; false when the chart has no type switcher or the type is not offered (check availableTypes first)."
185
- },
186
- idempotent: !0,
187
- descriptionKey: "ui.agent.chart.actions.changeView",
188
- 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.",
189
- invoke: (e, a) => e.setType(a.type)
190
- },
191
- update_series: {
192
- // Replacing the rendered series mutates what the chart displays — it
193
- // is a write, reversible by pushing the prior series back.
194
- safety: "write",
195
- argsType: "series",
196
- // `series` is `ChartSeries[]` (line/bar/area) OR `number[]`
197
- // (pie/donut/radialBar). Both shapes are accepted; the handle routes
198
- // by chart type internally.
199
- argsSchema: {
200
- type: "object",
201
- properties: {
202
- series: {
203
- oneOf: [
204
- {
205
- type: "array",
206
- description: "Categorical series for line / bar / area charts.",
207
- items: {
208
- type: "object",
209
- properties: {
210
- name: { type: "string" },
211
- data: { type: "array", items: { type: "number" } },
212
- role: {
213
- type: "string",
214
- enum: ["primary", "compare"],
215
- 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."
216
- }
217
- },
218
- required: ["name", "data"]
219
- }
220
- },
221
- {
222
- type: "array",
223
- description: "Flat values for pie / donut / radialBar charts.",
224
- items: { type: "number" }
225
- }
226
- ]
227
- }
228
- },
229
- required: ["series"]
230
- },
231
- idempotent: !0,
232
- descriptionKey: "ui.agent.chart.actions.updateSeries",
233
- 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.",
234
- invoke: (e, a) => {
235
- e.updateSeries(a.series);
236
- }
237
- },
238
- export_png: {
239
- safety: "read",
240
- returns: "string (PNG data URI)",
241
- returnsSchema: {
242
- type: "string",
243
- description: "A `data:image/png;base64,…` URI of the rendered chart."
244
- },
245
- idempotent: !0,
246
- descriptionKey: "ui.agent.chart.actions.exportPng",
247
- description: "Return a PNG data URI of the chart for export or screenshotting. Waits until series pushed with update_series are drawn.",
248
- invoke: (e) => e.dataURI()
249
- }
250
- },
251
- domHooks: {
252
- root: { attr: "data-component", value: "chart" },
253
- instanceId: {
254
- attr: "data-component-id",
255
- sourceProp: "id",
256
- description: "Sourced from the id prop."
257
- }
258
- }
259
- }, wt = Ve(
260
- "ds:relative ds:block ds:w-full apex-theme-alfadocs",
261
- {
262
- variants: {
263
- density: {
264
- compact: "ds:min-h-[var(--chart-min-height-compact)]",
265
- comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
266
- // Applied when an explicit `height` prop is given and no density was
267
- // requested: the wrapper must not exceed the caller's height (a 96px
268
- // KPI chart inside a card must not reserve 320px).
269
- none: ""
270
- }
271
- },
272
- defaultVariants: { density: "comfortable" }
273
- }
274
- ), xt = [
275
- "verticalLines",
276
- "horizontalLines",
277
- "slantedLines",
278
- "squares",
279
- "circles"
280
- ], St = ["line", "bar", "area"], At = ["pie", "donut", "radialBar"], Pe = [
281
- "line",
282
- "bar",
283
- "area",
284
- "pie",
285
- "donut"
286
- ], Tt = {
287
- line: "chart.typeSwitcher.line",
288
- bar: "chart.typeSwitcher.bar",
289
- area: "chart.typeSwitcher.area",
290
- pie: "chart.typeSwitcher.pie",
291
- donut: "chart.typeSwitcher.donut"
292
- }, Ct = {
293
- line: /* @__PURE__ */ y(ut, {}),
294
- bar: /* @__PURE__ */ y(dt, {}),
295
- area: /* @__PURE__ */ y(ct, {}),
296
- pie: /* @__PURE__ */ y(mt, {}),
297
- donut: /* @__PURE__ */ y(bt, {})
298
- }, Et = 2, qe = "0 6", kt = 5, Rt = -45, It = 640;
299
- function _t(e, a) {
300
- !e || a.length === 0 || e.querySelectorAll(
301
- ".apexcharts-bar-series > .apexcharts-series"
302
- ).forEach((t) => {
303
- const s = Number(t.getAttribute("data:realIndex"));
304
- a.includes(s) && t.querySelectorAll("path.apexcharts-bar-area").forEach(
305
- (p) => {
306
- if (typeof p.getBBox != "function") return;
307
- const i = p.getBBox();
308
- p.setAttribute(
309
- "d",
310
- `M ${i.x} ${i.y + i.height} L ${i.x} ${i.y} L ${i.x + i.width} ${i.y} L ${i.x + i.width} ${i.y + i.height}`
311
- ), p.setAttribute("stroke-dasharray", qe), p.setAttribute("stroke-linecap", "round");
312
- }
313
- );
314
- });
315
- }
316
- function Me(e) {
317
- const a = getComputedStyle(e), t = (s) => Number.parseFloat(a.getPropertyValue(s)) || 0;
318
- return t("--min-target-size") + t("--focus-ring-offset") + t("--focus-ring-width");
319
- }
320
- function Lt(e, a) {
321
- if (e === void 0) return a;
322
- if (typeof e == "number") return e;
323
- const t = Number.parseInt(e, 10);
324
- return e.trim().endsWith("%") ? a * t / 100 : t;
325
- }
326
- function ze(e, a, t, s, p, i) {
327
- if (s === p)
328
- return {
329
- effectiveSeries: e,
330
- effectiveCategories: a,
331
- effectiveLabels: t
332
- };
333
- if (!s) {
334
- const f = e.filter((l) => l.role !== "compare");
335
- return {
336
- effectiveSeries: f.map((l) => l.data.reduce((R, q) => R + q, 0)),
337
- effectiveCategories: void 0,
338
- effectiveLabels: f.map((l) => l.name)
339
- };
340
- }
341
- return {
342
- effectiveSeries: [{ name: i, data: e }],
343
- effectiveCategories: t ?? [],
344
- effectiveLabels: void 0
345
- };
346
- }
347
- function $e({
348
- themeOptions: e,
349
- toolbarBand: a,
350
- chartId: t,
351
- toolbar: s,
352
- reducedMotion: p,
353
- toolbarLocale: i,
354
- locale: u,
355
- effectiveLabels: h,
356
- formatValue: f,
357
- noDataText: O,
358
- effectiveType: l,
359
- effectiveSeries: R,
360
- effectiveCategories: q,
361
- isRtl: B,
362
- patterns: de,
363
- stacked: P,
364
- orientation: H,
365
- curve: W,
366
- colors: M,
367
- radialValueFormatter: X,
368
- narrow: J,
369
- wrapperRef: pe
370
- }) {
371
- var ee, G, D, te, _, K;
372
- const n = e, C = le(l) && Array.isArray(R) ? R.map((o) => o.role === "compare") : [], E = C.some(Boolean), I = E && l === "bar", F = I && R.some(
373
- (o) => o.role === "compare" && o.data.some((d) => d < 0)
374
- ), Q = I && H === "vertical" && !F, v = E ? et() : 0.3, c = {
375
- ...n,
376
- chart: {
377
- ...n.chart,
378
- id: t,
379
- toolbar: { show: s },
380
- zoom: { enabled: s },
381
- animations: {
382
- enabled: !p,
383
- dynamicAnimation: { enabled: !p }
384
- },
385
- locales: [i],
386
- defaultLocale: u,
387
- parentHeightOffset: 0,
388
- // Keep the keyboard-operable legend; drop Apex's data-point navigation
389
- // and live announcements (English-only, and the summary table covers them).
390
- accessibility: {
391
- enabled: !0,
392
- announcements: { enabled: !1 },
393
- keyboard: { enabled: !0, navigation: { enabled: !1 } }
394
- },
395
- // Stacking is axis-only, so a slice or radial chart never receives it.
396
- // Sent as false too: ApexCharts merges an update into its config, so
397
- // leaving it out would keep an earlier `true`.
398
- ...le(l) ? { stacked: P } : {}
399
- },
400
- // Only set `labels` when the effective type actually has them (slice
401
- // charts). Emitting `labels: undefined` crashes ApexCharts' bar
402
- // renderer — `parseDataAxisCharts` reads `labels.length` and throws
403
- // "Cannot read properties of undefined (reading 'length')", which
404
- // aborts the render and leaves a blank chart. Absent is safe; area /
405
- // line tolerate the undefined but bar does not, so never pass it.
406
- ...h ? { labels: h } : {},
407
- legend: {
408
- ...n.legend,
409
- position: "bottom",
410
- // ApexCharts legend.horizontalAlign is a physical prop mapped internally
411
- // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
412
- // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
413
- // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
414
- horizontalAlign: B ? "right" : "left",
415
- fontFamily: "inherit",
416
- // apexcharts-theme.css sizes the legend hit areas and ring room from
417
- // this 4px; pinned so an ApexCharts default change cannot break them.
418
- itemMargin: { horizontal: 5, vertical: 4 }
419
- },
420
- tooltip: {
421
- ...n.tooltip,
422
- y: {
423
- formatter: (o) => f(o)
424
- }
425
- },
426
- noData: {
427
- text: O
428
- }
429
- };
430
- if (c.title = s && a ? { ...c.title, text: "", margin: a } : { ...c.title, text: void 0, margin: kt }, M && M.length > 0 && (c.colors = M), E) {
431
- const o = c.colors ?? n.colors ?? [], d = (x) => o[x % Math.max(o.length, 1)], N = R.map((x, L) => x.role === "compare" ? -1 : L).filter((x) => x >= 0);
432
- let A = 0;
433
- c.colors = R.map((x, L) => {
434
- if (x.role !== "compare") return d(L);
435
- const m = N.length ? N[Math.min(A++, N.length - 1)] : L;
436
- return d(m);
437
- });
438
- const k = c.colors.map(
439
- (x, L) => C[L] ? tt(x) : x
440
- );
441
- c.legend = {
442
- ...c.legend,
443
- markers: {
444
- ...((ee = c.legend) == null ? void 0 : ee.markers) ?? {},
445
- fillColors: k
446
- }
447
- };
448
- }
449
- if (le(l)) {
450
- const o = l === "bar" && H === "horizontal";
451
- c.xaxis = {
452
- ...n.xaxis,
453
- categories: q ?? [],
454
- labels: {
455
- ...(G = n.xaxis) == null ? void 0 : G.labels,
456
- formatter: o ? (d) => f(Number(d)) : void 0,
457
- // A narrow chart thins crowded labels rather than turning them sideways.
458
- // Sent both ways, so a widened chart rotates; the thinning is pinned
459
- // so an ApexCharts default change cannot leave narrow labels overlapping.
460
- rotate: J ? 0 : Rt,
461
- hideOverlappingLabels: !0
462
- }
463
- }, c.yaxis = {
464
- ...n.yaxis,
465
- opposite: B,
466
- ...o ? {} : { labels: { formatter: (d) => f(d) } }
467
- }, c.stroke = {
468
- curve: W,
469
- width: l === "bar" ? E ? C.map((d) => d ? Et : 0) : 0 : 2,
470
- ...E ? {
471
- lineCap: "round",
472
- // Runtime accepts a string dash; the published types say
473
- // `number` → one documented cast. `'0 6'` + round cap ⇒ dots.
474
- dashArray: C.map(
475
- (d) => d ? qe : 0
476
- )
477
- } : {}
478
- }, c.dataLabels = { enabled: !1 };
479
- }
480
- if (l === "radialBar" && X) {
481
- const o = n.plotOptions ?? {};
482
- c.plotOptions = {
483
- ...o,
484
- radialBar: {
485
- ...o.radialBar ?? {},
486
- dataLabels: {
487
- ...((D = o.radialBar) == null ? void 0 : D.dataLabels) ?? {},
488
- value: {
489
- ...((_ = (te = o.radialBar) == null ? void 0 : te.dataLabels) == null ? void 0 : _.value) ?? {},
490
- formatter: (d) => X(Number(d))
491
- }
492
- }
493
- }
494
- };
495
- }
496
- if (l === "bar") {
497
- const o = n.plotOptions ?? {};
498
- c.plotOptions = {
499
- ...o,
500
- bar: {
501
- ...o.bar ?? {},
502
- horizontal: H === "horizontal"
503
- }
504
- };
505
- }
506
- if (de ? c.fill = {
507
- type: E ? C.map((o) => o ? "solid" : "pattern") : "pattern",
508
- opacity: E ? C.map(
509
- (o) => o ? v : l === "area" ? 0.3 : 1
510
- ) : l === "area" ? 0.3 : 1,
511
- pattern: {
512
- style: [...xt],
513
- strokeWidth: 2
514
- }
515
- } : I ? c.fill = {
516
- type: "solid",
517
- opacity: C.map((o) => o ? v : 1)
518
- } : l === "area" && (c.fill = E ? {
519
- type: "gradient",
520
- opacity: C.map((o) => o ? v : 0.3)
521
- } : {
522
- type: "gradient",
523
- opacity: 0.3
524
- }), Q) {
525
- const o = C.map((A, k) => A ? k : -1).filter((A) => A >= 0), d = () => _t(pe.current, o), N = () => typeof requestAnimationFrame == "function" ? requestAnimationFrame(d) : d();
526
- c.chart = {
527
- ...c.chart,
528
- events: {
529
- ...((K = c.chart) == null ? void 0 : K.events) ?? {},
530
- mounted: () => N(),
531
- updated: () => N(),
532
- animationEnd: () => d()
533
- }
534
- };
535
- }
536
- return Ot(c, l);
537
- }
538
- function Ot(e, a) {
539
- var s, p, i, u, h, f;
540
- if (!le(a)) return e;
541
- const t = (s = e.chart) == null ? void 0 : s.events;
542
- return {
543
- ...e,
544
- colors: e.colors,
545
- chart: {
546
- ...e.chart,
547
- events: {
548
- ...t,
549
- mounted: t == null ? void 0 : t.mounted,
550
- updated: t == null ? void 0 : t.updated,
551
- animationEnd: t == null ? void 0 : t.animationEnd
552
- }
553
- },
554
- stroke: {
555
- ...e.stroke,
556
- lineCap: ((p = e.stroke) == null ? void 0 : p.lineCap) ?? (a === "bar" ? "square" : "butt"),
557
- dashArray: ((i = e.stroke) == null ? void 0 : i.dashArray) ?? 0
558
- },
559
- legend: {
560
- ...e.legend,
561
- markers: {
562
- ...(u = e.legend) == null ? void 0 : u.markers,
563
- fillColors: (f = (h = e.legend) == null ? void 0 : h.markers) == null ? void 0 : f.fillColors
564
- }
565
- },
566
- fill: e.fill ?? { type: "solid", opacity: 0.85 }
567
- };
568
- }
569
- function V(e) {
570
- return At.includes(e);
571
- }
572
- function le(e) {
573
- return St.includes(e);
574
- }
575
- function Nt(e, a) {
576
- return V(a) ? [
577
- {
578
- name: "",
579
- data: e
580
- }
581
- ] : e;
582
- }
583
- const Bt = Ue(
584
- ({
585
- title: e,
586
- id: a,
587
- type: t,
588
- series: s,
589
- categories: p,
590
- labels: i,
591
- height: u,
592
- width: h,
593
- patterns: f = !1,
594
- stacked: O = !1,
595
- orientation: l = "vertical",
596
- curve: R = "smooth",
597
- colors: q,
598
- toolbar: B = !1,
599
- locale: de,
600
- radialValueFormatter: P,
601
- valueFormatter: H,
602
- switchableTypes: W,
603
- onTypeChange: M,
604
- density: X,
605
- className: J
606
- }, pe) => {
607
- const { t: n, i18n: C } = Ze("ui"), E = Ye(), I = S(
608
- () => `chart-${E.replace(/[^a-zA-Z0-9-_]/g, "")}`,
609
- [E]
610
- ), F = `${I}-summary`, Q = j(null), [v, c] = $(null), ee = S(
611
- () => at(Q, c),
612
- []
613
- ), G = S(() => ({ current: v }), [v]), [D, te] = $(0);
614
- Je(G), Qe(G);
615
- const _ = de ?? C.language ?? "en", [K, o] = $(() => {
616
- try {
617
- return Be();
618
- } catch {
619
- return {};
620
- }
621
- });
622
- ce(() => {
623
- if (typeof document > "u") return;
624
- let r;
625
- const b = new MutationObserver(() => {
626
- clearTimeout(r), r = setTimeout(() => {
627
- try {
628
- o(Be());
629
- } catch {
630
- }
631
- }, 50);
632
- });
633
- return b.observe(document.documentElement, {
634
- attributes: !0,
635
- attributeFilter: ["class"]
636
- }), () => {
637
- clearTimeout(r), b.disconnect();
638
- };
639
- }, []);
640
- const [d, N] = $(
641
- () => typeof document > "u" ? 0 : Me(document.documentElement)
642
- );
643
- ce(() => {
644
- if (!v || !B) return;
645
- const r = new ResizeObserver(() => b()), b = () => {
646
- const w = v.querySelector(".apexcharts-toolbar");
647
- w && r.observe(w), N(
648
- Math.max(Me(v), (w == null ? void 0 : w.offsetHeight) ?? 0)
649
- );
650
- };
651
- b();
652
- const g = new MutationObserver(b);
653
- for (let w = v.parentElement; w; w = w.parentElement)
654
- g.observe(w, { attributes: !0, attributeFilter: ["class"] });
655
- const T = new MutationObserver((w) => {
656
- w.flatMap((U) => [...U.addedNodes]).some(
657
- (U) => U instanceof Element && (U.matches(".apexcharts-toolbar") || U.querySelector(".apexcharts-toolbar"))
658
- ) && b();
659
- });
660
- return T.observe(v, { childList: !0, subtree: !0 }), () => {
661
- r.disconnect(), g.disconnect(), T.disconnect();
662
- };
663
- }, [v, B]), ce(() => {
664
- const r = v;
665
- if (!r || typeof ResizeObserver > "u") return;
666
- const b = new ResizeObserver((g) => {
667
- const T = g[0];
668
- T && te(Math.floor(T.contentRect.width));
669
- });
670
- return b.observe(r), () => b.disconnect();
671
- }, [v]);
672
- const A = S(() => {
673
- if (!W || W.length === 0) return [];
674
- const r = W.filter(
675
- (g) => Pe.includes(g)
676
- );
677
- if (!Pe.includes(t))
678
- return [];
679
- const b = r.includes(t) ? r : [t, ...r];
680
- return [...new Set(b)];
681
- }, [W, t]), k = A.length >= 2, [x, L] = $(null), m = k && x && A.includes(x) ? x : t;
682
- gt(
683
- v,
684
- m !== "pie" && m !== "donut"
685
- );
686
- const ue = V(t), he = V(m), [re, fe] = $(null), [be, He] = $(s);
687
- be !== s && (He(s), re && fe(null));
688
- const ye = re && re.base === s && be === s ? re.next : s, ge = j(s);
689
- ge.current = s;
690
- const { effectiveSeries: z, effectiveCategories: ae, effectiveLabels: ne } = S(
691
- () => ze(
692
- ye,
693
- p,
694
- i,
695
- ue,
696
- he,
697
- n("chart.table.value")
698
- ),
699
- [ye, p, i, ue, he, n]
700
- ), ve = (r) => ze(
701
- r,
702
- p,
703
- i,
704
- ue,
705
- he,
706
- n("chart.table.value")
707
- ), we = j(ve);
708
- we.current = ve;
709
- const xe = j(Promise.resolve()), me = S(
710
- () => ({
711
- async dataURI() {
712
- await xe.current;
713
- const r = Ne.getChartByID(I);
714
- return r ? (await r.dataURI()).imgURI : "";
715
- },
716
- updateSeries(r) {
717
- fe({ base: ge.current, next: r });
718
- const b = Ne.getChartByID(I);
719
- if (!b) return;
720
- const g = we.current(r), T = { ..._e.current, ...g };
721
- xe.current = b.updateOptions(
722
- { ...$e(T), series: g.effectiveSeries },
723
- !1,
724
- !0
725
- ).catch(() => {
726
- });
727
- },
728
- setType(r) {
729
- return !k || !A.includes(r) ? !1 : (L(r), !0);
730
- },
731
- getTypeState() {
732
- return {
733
- declaredType: t,
734
- effectiveType: m,
735
- availableTypes: k ? [...A] : []
736
- };
737
- }
738
- }),
739
- [I, t, m, k, A]
740
- );
741
- je(pe, () => me, [me]), nt(vt, me, a);
742
- const Se = typeof document < "u" && document.documentElement.dir === "rtl", Ae = S(
743
- () => Nt(z, m),
744
- [z, m]
745
- ), Te = S(
746
- () => new Intl.NumberFormat(_),
747
- [_]
748
- ), oe = S(
749
- () => H ?? ((r) => Te.format(r)),
750
- [H, Te]
751
- ), Ce = S(
752
- () => ({
753
- name: _,
754
- options: {
755
- toolbar: {
756
- download: n("chart.toolbar.download"),
757
- // Names the button that opens the export menu (Apex: "Menu").
758
- menu: n("chart.toolbar.download"),
759
- selection: n("chart.toolbar.selection"),
760
- selectionZoom: n("chart.toolbar.selectionZoom"),
761
- zoomIn: n("chart.toolbar.zoomIn"),
762
- zoomOut: n("chart.toolbar.zoomOut"),
763
- pan: n("chart.toolbar.pan"),
764
- reset: n("chart.toolbar.reset"),
765
- exportToSVG: n("chart.toolbar.exportToSVG"),
766
- exportToPNG: n("chart.toolbar.exportToPNG"),
767
- exportToCSV: n("chart.toolbar.exportToCSV")
768
- }
769
- }
770
- }),
771
- [_, n]
772
- ), Ee = rt(), ke = n("chart.noData"), Re = Lt(h, D), Ie = Re > 0 && Re < It, se = S(
773
- () => ({
774
- themeOptions: K,
775
- toolbarBand: d,
776
- chartId: I,
777
- toolbar: B,
778
- reducedMotion: Ee,
779
- toolbarLocale: Ce,
780
- locale: _,
781
- effectiveLabels: ne,
782
- formatValue: oe,
783
- noDataText: ke,
784
- effectiveType: m,
785
- effectiveSeries: z,
786
- effectiveCategories: ae,
787
- isRtl: Se,
788
- patterns: f,
789
- stacked: O,
790
- orientation: l,
791
- curve: R,
792
- colors: q,
793
- radialValueFormatter: P,
794
- narrow: Ie,
795
- wrapperRef: Q
796
- }),
797
- [
798
- K,
799
- d,
800
- I,
801
- B,
802
- Ee,
803
- Ce,
804
- _,
805
- ne,
806
- oe,
807
- ke,
808
- m,
809
- z,
810
- ae,
811
- Se,
812
- f,
813
- O,
814
- l,
815
- R,
816
- q,
817
- P,
818
- Ie
819
- ]
820
- ), We = S(
821
- () => $e(se),
822
- [se]
823
- ), _e = j(se);
824
- _e.current = se;
825
- const De = h ?? (D > 0 ? D : "100%"), Fe = u ?? 320, Ge = S(() => {
826
- const r = V(m) ? ne ?? [] : ae ?? [], b = Ae;
827
- return /* @__PURE__ */ y("div", { className: "ds:sr-only", children: /* @__PURE__ */ Y("table", { id: F, children: [
828
- /* @__PURE__ */ y("caption", { children: e }),
829
- /* @__PURE__ */ y("thead", { children: /* @__PURE__ */ Y("tr", { children: [
830
- /* @__PURE__ */ y("th", { scope: "col", children: n("chart.table.series") }),
831
- r.map((g, T) => /* @__PURE__ */ y("th", { scope: "col", children: g }, `${g}-${T}`))
832
- ] }) }),
833
- /* @__PURE__ */ y("tbody", { children: b.map((g, T) => /* @__PURE__ */ Y("tr", { children: [
834
- /* @__PURE__ */ y("th", { scope: "row", children: g.name || n("chart.table.value") }),
835
- g.data.map((w, Oe) => /* @__PURE__ */ y("td", { children: m === "radialBar" && P ? P(w) : oe(w) }, `${T}-${Oe}`))
836
- ] }, `${g.name}-${T}`)) })
837
- ] }) });
838
- }, [
839
- m,
840
- Ae,
841
- ne,
842
- ae,
843
- F,
844
- e,
845
- n,
846
- oe,
847
- P
848
- ]), Ke = S(() => (V(m), z), [z, m]), Le = /* @__PURE__ */ Y(
849
- "div",
850
- {
851
- ref: ee,
852
- role: "figure",
853
- "aria-label": e,
854
- "aria-describedby": F,
855
- className: wt({
856
- // Explicit height wins over the density min-height unless the
857
- // caller also asked for a density explicitly.
858
- density: X ?? (u !== void 0 ? "none" : void 0),
859
- className: k ? void 0 : J
860
- }),
861
- ...k ? {} : { "data-component": "chart", "data-component-id": a },
862
- children: [
863
- Ge,
864
- /* @__PURE__ */ y(
865
- Xe,
866
- {
867
- type: m,
868
- series: Ke,
869
- options: We,
870
- width: De,
871
- height: Fe
872
- },
873
- m
874
- )
875
- ]
876
- }
877
- );
878
- return k ? /* @__PURE__ */ Y(
879
- "div",
880
- {
881
- "data-component": "chart",
882
- "data-component-id": a,
883
- className: `ds:block ds:w-full ${J ?? ""}`.trim(),
884
- children: [
885
- /* @__PURE__ */ y("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ y(
886
- st,
887
- {
888
- role: "radiogroup",
889
- mode: "toggle-single",
890
- size: "sm",
891
- "aria-label": n("chart.typeSwitcher.label"),
892
- value: m,
893
- onValueChange: (r) => {
894
- r !== m && (L(r), M == null || M(r));
895
- },
896
- children: A.map((r) => /* @__PURE__ */ y(
897
- ot,
898
- {
899
- value: r,
900
- type: "button",
901
- icon: Ct[r],
902
- "aria-label": n(Tt[r])
903
- },
904
- r
905
- ))
906
- }
907
- ) }),
908
- Le
909
- ]
910
- }
911
- ) : Le;
912
- }
913
- );
914
- Bt.displayName = "Chart";
915
- export {
916
- Bt as C,
917
- wt as a,
918
- vt as c
919
- };
920
- //# sourceMappingURL=chart-D7PbNO_M.js.map