@alfadocs/ui-kit 1.55.0 → 1.57.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.
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.js → anamnesis-summary-rows-CCQ62mMN.js} +5 -5
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
- package/dist/_chunks/{booking-uZO10TLK.js → booking-81WnKDsH.js} +4 -4
- package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
- package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-D5-k_9zE.js} +15 -15
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-BeMYMiI7.js → care-plan-header-BMwZIgHJ.js} +3 -3
- package/dist/_chunks/chart-DQ5GxqgT.js +906 -0
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-C5DbP_X3.js → contact-profile-card-CMyBYgRR.js} +3 -3
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
- package/dist/_chunks/{data-table-C6T31E33.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-BOvHwWO5.js → date-range-picker-CFk-5O3R.js} +188 -177
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
- package/dist/_chunks/{dialog-D52AI4nF.js → dialog-Dn-iQ0Jp.js} +86 -69
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-DXDJbUzo.js → due-date-calculator-D_qFUiHp.js} +3 -3
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{file-manager-dIJQUZvq.js → file-manager-CFsL1KVt.js} +4 -4
- package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
- package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-CZi43xKG.js} +3 -3
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-BARGZZt2.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
- package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-DYVxWcqv.js} +5 -5
- package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-I8ntrrUW.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-summary-card-3dspc2tR.js → patient-summary-card-opdyfeW2.js} +10 -6
- package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
- package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-DAniJNLX.js} +3 -3
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
- package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-BFzv9g1N.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-BWusjxY8.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
- package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{rich-text-editor-Blp4smUr.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-8qsiMoUI.js} +95 -79
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-rgMsgo-C.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
- package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
- package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-NkcopDna.js} +4 -4
- package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{widget-picker-D8RiWrJd.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
- package/dist/agent-catalog.json +28 -11
- package/dist/agent-i18n/en.json +8 -7
- package/dist/components/_shared/non-modal-tab-exit.d.ts +19 -0
- package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
- package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +15 -10
- package/dist/components/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/position-grid/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +9 -0
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-legacy.css +13 -2
- package/dist/i18n/locales/ar.d.ts +17 -2
- package/dist/i18n/locales/ar.js +20 -5
- package/dist/i18n/locales/de.d.ts +17 -2
- package/dist/i18n/locales/de.js +20 -5
- package/dist/i18n/locales/el.d.ts +17 -2
- package/dist/i18n/locales/el.js +20 -5
- package/dist/i18n/locales/en.d.ts +17 -2
- package/dist/i18n/locales/en.js +20 -5
- package/dist/i18n/locales/es.d.ts +17 -2
- package/dist/i18n/locales/es.js +20 -5
- package/dist/i18n/locales/fr.d.ts +17 -2
- package/dist/i18n/locales/fr.js +20 -5
- package/dist/i18n/locales/hi.d.ts +17 -2
- package/dist/i18n/locales/hi.js +20 -5
- package/dist/i18n/locales/it.d.ts +17 -2
- package/dist/i18n/locales/it.js +20 -5
- package/dist/i18n/locales/ja.d.ts +17 -2
- package/dist/i18n/locales/ja.js +20 -5
- package/dist/i18n/locales/nl.d.ts +17 -2
- package/dist/i18n/locales/nl.js +20 -5
- package/dist/i18n/locales/pl.d.ts +17 -2
- package/dist/i18n/locales/pl.js +20 -5
- package/dist/i18n/locales/pt.d.ts +17 -2
- package/dist/i18n/locales/pt.js +20 -5
- package/dist/i18n/locales/ro.d.ts +17 -2
- package/dist/i18n/locales/ro.js +20 -5
- package/dist/i18n/locales/ru.d.ts +17 -2
- package/dist/i18n/locales/ru.js +20 -5
- package/dist/i18n/locales/sq.d.ts +17 -2
- package/dist/i18n/locales/sq.js +20 -5
- package/dist/i18n/locales/sv.d.ts +17 -2
- package/dist/i18n/locales/sv.js +20 -5
- package/dist/i18n/locales/tr.d.ts +17 -2
- package/dist/i18n/locales/tr.js +20 -5
- package/dist/i18n/locales/zh.d.ts +17 -2
- package/dist/i18n/locales/zh.js +20 -5
- package/dist/index.js +207 -206
- package/dist/locales/ar.json +20 -5
- package/dist/locales/de.json +20 -5
- package/dist/locales/el.json +20 -5
- package/dist/locales/en.json +20 -5
- package/dist/locales/es.json +20 -5
- package/dist/locales/fr.json +20 -5
- package/dist/locales/hi.json +20 -5
- package/dist/locales/it.json +20 -5
- package/dist/locales/ja.json +20 -5
- package/dist/locales/nl.json +20 -5
- package/dist/locales/pl.json +20 -5
- package/dist/locales/pt.json +20 -5
- package/dist/locales/ro.json +20 -5
- package/dist/locales/ru.json +20 -5
- package/dist/locales/sq.json +20 -5
- package/dist/locales/sv.json +20 -5
- package/dist/locales/tr.json +20 -5
- package/dist/locales/zh.json +20 -5
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +13 -2
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DS0b54Mv.js +0 -1183
- package/dist/_chunks/chart-C2RBJERE.js +0 -705
- package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
import { jsxs as Y, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as le, forwardRef as Ge, useId as Ke, useMemo as x, useRef as j, useState as z, useImperativeHandle as Ue } from "react";
|
|
3
|
+
import { c as Ye } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as je } from "react-i18next";
|
|
5
|
+
import Ve from "react-apexcharts";
|
|
6
|
+
import Oe from "apexcharts";
|
|
7
|
+
import { u as Ze, a as Xe, g as _e, b as Je, r as Qe } from "./apexcharts-theme-DNoXvgnZ.js";
|
|
8
|
+
import { u as et } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
9
|
+
import { c as tt } from "./compose-refs-C0k0tdqF.js";
|
|
10
|
+
import { u as rt } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { I as at } from "./icon-button-COX76Jdj.js";
|
|
12
|
+
import { I as nt } from "./icon-button-group-C5hhI-R5.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 ot = [
|
|
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
|
+
], st = Z("chart-area", ot);
|
|
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 it = [
|
|
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
|
+
], ct = Z("chart-column", it);
|
|
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 lt = [
|
|
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
|
+
], dt = Z("chart-line", lt);
|
|
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 pt = [
|
|
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
|
+
], ut = Z("chart-pie", pt);
|
|
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 ht = [
|
|
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
|
+
], mt = Z("donut", ht), ft = ".apexcharts-legend, .apexcharts-toolbar";
|
|
84
|
+
function ce(e, s, t) {
|
|
85
|
+
!e || e.getAttribute(s) === t || (t === null ? e.removeAttribute(s) : e.setAttribute(s, t));
|
|
86
|
+
}
|
|
87
|
+
function bt(e, s) {
|
|
88
|
+
le(() => {
|
|
89
|
+
if (!e) return;
|
|
90
|
+
const t = () => {
|
|
91
|
+
e.querySelectorAll(".apexcharts-canvas").forEach((p) => {
|
|
92
|
+
Array.from(p.children).forEach((h) => {
|
|
93
|
+
h.matches(ft) || ce(h, "aria-hidden", "true");
|
|
94
|
+
});
|
|
95
|
+
}), e.querySelectorAll(".apexcharts-toolbar").forEach((p) => {
|
|
96
|
+
var m;
|
|
97
|
+
const h = ((m = p.querySelector(".apexcharts-menu-icon")) == null ? void 0 : m.getAttribute("aria-expanded")) === "true";
|
|
98
|
+
ce(
|
|
99
|
+
p.querySelector(".apexcharts-menu"),
|
|
100
|
+
"inert",
|
|
101
|
+
h ? null : ""
|
|
102
|
+
);
|
|
103
|
+
}), e.querySelectorAll(
|
|
104
|
+
'.apexcharts-legend-series[role="button"]'
|
|
105
|
+
).forEach((p) => {
|
|
106
|
+
ce(p, "aria-label", null);
|
|
107
|
+
const h = p.getAttribute("data:collapsed") === "true" ? "false" : "true";
|
|
108
|
+
ce(p, "aria-pressed", s ? h : null);
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
let i = 0;
|
|
112
|
+
const d = (p) => {
|
|
113
|
+
const h = p.target instanceof Element ? p.target.closest(".apexcharts-legend-series") : null, m = h == null ? void 0 : h.getAttribute("rel");
|
|
114
|
+
m && (cancelAnimationFrame(i), i = requestAnimationFrame(() => {
|
|
115
|
+
var l;
|
|
116
|
+
const L = document.activeElement;
|
|
117
|
+
L && L !== document.body || (l = e.querySelector(
|
|
118
|
+
`.apexcharts-legend-series[rel="${CSS.escape(m)}"]`
|
|
119
|
+
)) == null || l.focus();
|
|
120
|
+
}));
|
|
121
|
+
};
|
|
122
|
+
t();
|
|
123
|
+
const c = new MutationObserver(t);
|
|
124
|
+
return c.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", d), () => {
|
|
135
|
+
c.disconnect(), e.removeEventListener("click", d), cancelAnimationFrame(i);
|
|
136
|
+
};
|
|
137
|
+
}, [e, s]);
|
|
138
|
+
}
|
|
139
|
+
const yt = {
|
|
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, s) => e.setType(s.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, s) => {
|
|
235
|
+
e.updateSeries(s.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
|
+
}, gt = Ye(
|
|
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
|
+
), vt = [
|
|
275
|
+
"verticalLines",
|
|
276
|
+
"horizontalLines",
|
|
277
|
+
"slantedLines",
|
|
278
|
+
"squares",
|
|
279
|
+
"circles"
|
|
280
|
+
], wt = ["line", "bar", "area"], xt = ["pie", "donut", "radialBar"], Ne = [
|
|
281
|
+
"line",
|
|
282
|
+
"bar",
|
|
283
|
+
"area",
|
|
284
|
+
"pie",
|
|
285
|
+
"donut"
|
|
286
|
+
], St = {
|
|
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
|
+
}, At = {
|
|
293
|
+
line: /* @__PURE__ */ v(dt, {}),
|
|
294
|
+
bar: /* @__PURE__ */ v(ct, {}),
|
|
295
|
+
area: /* @__PURE__ */ v(st, {}),
|
|
296
|
+
pie: /* @__PURE__ */ v(ut, {}),
|
|
297
|
+
donut: /* @__PURE__ */ v(mt, {})
|
|
298
|
+
}, Tt = 2, ze = "0 6", Ct = 5;
|
|
299
|
+
function Et(e, s) {
|
|
300
|
+
!e || s.length === 0 || e.querySelectorAll(
|
|
301
|
+
".apexcharts-bar-series > .apexcharts-series"
|
|
302
|
+
).forEach((t) => {
|
|
303
|
+
const i = Number(t.getAttribute("data:realIndex"));
|
|
304
|
+
s.includes(i) && t.querySelectorAll("path.apexcharts-bar-area").forEach(
|
|
305
|
+
(d) => {
|
|
306
|
+
if (typeof d.getBBox != "function") return;
|
|
307
|
+
const c = d.getBBox();
|
|
308
|
+
d.setAttribute(
|
|
309
|
+
"d",
|
|
310
|
+
`M ${c.x} ${c.y + c.height} L ${c.x} ${c.y} L ${c.x + c.width} ${c.y} L ${c.x + c.width} ${c.y + c.height}`
|
|
311
|
+
), d.setAttribute("stroke-dasharray", ze), d.setAttribute("stroke-linecap", "round");
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
function Be(e) {
|
|
317
|
+
const s = getComputedStyle(e), t = (i) => Number.parseFloat(s.getPropertyValue(i)) || 0;
|
|
318
|
+
return t("--min-target-size") + t("--focus-ring-offset") + t("--focus-ring-width");
|
|
319
|
+
}
|
|
320
|
+
function Me(e, s, t, i, d, c) {
|
|
321
|
+
if (i === d)
|
|
322
|
+
return {
|
|
323
|
+
effectiveSeries: e,
|
|
324
|
+
effectiveCategories: s,
|
|
325
|
+
effectiveLabels: t
|
|
326
|
+
};
|
|
327
|
+
if (!i) {
|
|
328
|
+
const m = e.filter((l) => l.role !== "compare");
|
|
329
|
+
return {
|
|
330
|
+
effectiveSeries: m.map((l) => l.data.reduce((T, $) => T + $, 0)),
|
|
331
|
+
effectiveCategories: void 0,
|
|
332
|
+
effectiveLabels: m.map((l) => l.name)
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
return {
|
|
336
|
+
effectiveSeries: [{ name: c, data: e }],
|
|
337
|
+
effectiveCategories: t ?? [],
|
|
338
|
+
effectiveLabels: void 0
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function Pe({
|
|
342
|
+
themeOptions: e,
|
|
343
|
+
toolbarBand: s,
|
|
344
|
+
chartId: t,
|
|
345
|
+
toolbar: i,
|
|
346
|
+
reducedMotion: d,
|
|
347
|
+
toolbarLocale: c,
|
|
348
|
+
locale: p,
|
|
349
|
+
effectiveLabels: h,
|
|
350
|
+
formatValue: m,
|
|
351
|
+
noDataText: L,
|
|
352
|
+
effectiveType: l,
|
|
353
|
+
effectiveSeries: T,
|
|
354
|
+
effectiveCategories: $,
|
|
355
|
+
isRtl: _,
|
|
356
|
+
patterns: pe,
|
|
357
|
+
stacked: N,
|
|
358
|
+
orientation: q,
|
|
359
|
+
curve: H,
|
|
360
|
+
colors: B,
|
|
361
|
+
radialValueFormatter: X,
|
|
362
|
+
wrapperRef: J
|
|
363
|
+
}) {
|
|
364
|
+
var Q, ee, G, K, te, I;
|
|
365
|
+
const S = e, o = de(l) && Array.isArray(T) ? T.map((n) => n.role === "compare") : [], C = o.some(Boolean), F = C && l === "bar", O = F && T.some(
|
|
366
|
+
(n) => n.role === "compare" && n.data.some((u) => u < 0)
|
|
367
|
+
), W = F && q === "vertical" && !O, D = C ? Je() : 0.3, a = {
|
|
368
|
+
...S,
|
|
369
|
+
chart: {
|
|
370
|
+
...S.chart,
|
|
371
|
+
id: t,
|
|
372
|
+
toolbar: { show: i },
|
|
373
|
+
zoom: { enabled: i },
|
|
374
|
+
animations: {
|
|
375
|
+
enabled: !d,
|
|
376
|
+
dynamicAnimation: { enabled: !d }
|
|
377
|
+
},
|
|
378
|
+
locales: [c],
|
|
379
|
+
defaultLocale: p,
|
|
380
|
+
parentHeightOffset: 0,
|
|
381
|
+
// Keep the keyboard-operable legend; drop Apex's data-point navigation
|
|
382
|
+
// and live announcements (English-only, and the summary table covers them).
|
|
383
|
+
accessibility: {
|
|
384
|
+
enabled: !0,
|
|
385
|
+
announcements: { enabled: !1 },
|
|
386
|
+
keyboard: { enabled: !0, navigation: { enabled: !1 } }
|
|
387
|
+
},
|
|
388
|
+
// Stacking is axis-only, so a slice or radial chart never receives it.
|
|
389
|
+
// Sent as false too: ApexCharts merges an update into its config, so
|
|
390
|
+
// leaving it out would keep an earlier `true`.
|
|
391
|
+
...de(l) ? { stacked: N } : {}
|
|
392
|
+
},
|
|
393
|
+
// Only set `labels` when the effective type actually has them (slice
|
|
394
|
+
// charts). Emitting `labels: undefined` crashes ApexCharts' bar
|
|
395
|
+
// renderer — `parseDataAxisCharts` reads `labels.length` and throws
|
|
396
|
+
// "Cannot read properties of undefined (reading 'length')", which
|
|
397
|
+
// aborts the render and leaves a blank chart. Absent is safe; area /
|
|
398
|
+
// line tolerate the undefined but bar does not, so never pass it.
|
|
399
|
+
...h ? { labels: h } : {},
|
|
400
|
+
legend: {
|
|
401
|
+
...S.legend,
|
|
402
|
+
position: "bottom",
|
|
403
|
+
// ApexCharts legend.horizontalAlign is a physical prop mapped internally
|
|
404
|
+
// to the chart's own text flow. For RTL we flip via `yaxis.opposite`
|
|
405
|
+
// and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
|
|
406
|
+
// to the inline-start by asking for 'left' on LTR and 'right' on RTL.
|
|
407
|
+
horizontalAlign: _ ? "right" : "left",
|
|
408
|
+
fontFamily: "inherit",
|
|
409
|
+
// apexcharts-theme.css sizes the legend hit areas and ring room from
|
|
410
|
+
// this 4px; pinned so an ApexCharts default change cannot break them.
|
|
411
|
+
itemMargin: { horizontal: 5, vertical: 4 }
|
|
412
|
+
},
|
|
413
|
+
tooltip: {
|
|
414
|
+
...S.tooltip,
|
|
415
|
+
y: {
|
|
416
|
+
formatter: (n) => m(n)
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
noData: {
|
|
420
|
+
text: L
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
if (a.title = i && s ? { ...a.title, text: "", margin: s } : { ...a.title, text: void 0, margin: Ct }, B && B.length > 0 && (a.colors = B), C) {
|
|
424
|
+
const n = a.colors ?? S.colors ?? [], u = (f) => n[f % Math.max(n.length, 1)], R = T.map((f, k) => f.role === "compare" ? -1 : k).filter((f) => f >= 0);
|
|
425
|
+
let M = 0;
|
|
426
|
+
a.colors = T.map((f, k) => {
|
|
427
|
+
if (f.role !== "compare") return u(k);
|
|
428
|
+
const re = R.length ? R[Math.min(M++, R.length - 1)] : k;
|
|
429
|
+
return u(re);
|
|
430
|
+
});
|
|
431
|
+
const E = a.colors.map(
|
|
432
|
+
(f, k) => o[k] ? Qe(f) : f
|
|
433
|
+
);
|
|
434
|
+
a.legend = {
|
|
435
|
+
...a.legend,
|
|
436
|
+
markers: {
|
|
437
|
+
...((Q = a.legend) == null ? void 0 : Q.markers) ?? {},
|
|
438
|
+
fillColors: E
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
if (de(l)) {
|
|
443
|
+
const n = l === "bar" && q === "horizontal";
|
|
444
|
+
a.xaxis = {
|
|
445
|
+
...S.xaxis,
|
|
446
|
+
categories: $ ?? [],
|
|
447
|
+
labels: {
|
|
448
|
+
...(ee = S.xaxis) == null ? void 0 : ee.labels,
|
|
449
|
+
formatter: n ? (u) => m(Number(u)) : void 0
|
|
450
|
+
}
|
|
451
|
+
}, a.yaxis = {
|
|
452
|
+
...S.yaxis,
|
|
453
|
+
opposite: _,
|
|
454
|
+
...n ? {} : { labels: { formatter: (u) => m(u) } }
|
|
455
|
+
}, a.stroke = {
|
|
456
|
+
curve: H,
|
|
457
|
+
width: l === "bar" ? C ? o.map((u) => u ? Tt : 0) : 0 : 2,
|
|
458
|
+
...C ? {
|
|
459
|
+
lineCap: "round",
|
|
460
|
+
// Runtime accepts a string dash; the published types say
|
|
461
|
+
// `number` → one documented cast. `'0 6'` + round cap ⇒ dots.
|
|
462
|
+
dashArray: o.map(
|
|
463
|
+
(u) => u ? ze : 0
|
|
464
|
+
)
|
|
465
|
+
} : {}
|
|
466
|
+
}, a.dataLabels = { enabled: !1 };
|
|
467
|
+
}
|
|
468
|
+
if (l === "radialBar" && X) {
|
|
469
|
+
const n = S.plotOptions ?? {};
|
|
470
|
+
a.plotOptions = {
|
|
471
|
+
...n,
|
|
472
|
+
radialBar: {
|
|
473
|
+
...n.radialBar ?? {},
|
|
474
|
+
dataLabels: {
|
|
475
|
+
...((G = n.radialBar) == null ? void 0 : G.dataLabels) ?? {},
|
|
476
|
+
value: {
|
|
477
|
+
...((te = (K = n.radialBar) == null ? void 0 : K.dataLabels) == null ? void 0 : te.value) ?? {},
|
|
478
|
+
formatter: (u) => X(Number(u))
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
if (l === "bar") {
|
|
485
|
+
const n = S.plotOptions ?? {};
|
|
486
|
+
a.plotOptions = {
|
|
487
|
+
...n,
|
|
488
|
+
bar: {
|
|
489
|
+
...n.bar ?? {},
|
|
490
|
+
horizontal: q === "horizontal"
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
if (pe ? a.fill = {
|
|
495
|
+
type: C ? o.map((n) => n ? "solid" : "pattern") : "pattern",
|
|
496
|
+
opacity: C ? o.map(
|
|
497
|
+
(n) => n ? D : l === "area" ? 0.3 : 1
|
|
498
|
+
) : l === "area" ? 0.3 : 1,
|
|
499
|
+
pattern: {
|
|
500
|
+
style: [...vt],
|
|
501
|
+
strokeWidth: 2
|
|
502
|
+
}
|
|
503
|
+
} : F ? a.fill = {
|
|
504
|
+
type: "solid",
|
|
505
|
+
opacity: o.map((n) => n ? D : 1)
|
|
506
|
+
} : l === "area" && (a.fill = C ? {
|
|
507
|
+
type: "gradient",
|
|
508
|
+
opacity: o.map((n) => n ? D : 0.3)
|
|
509
|
+
} : {
|
|
510
|
+
type: "gradient",
|
|
511
|
+
opacity: 0.3
|
|
512
|
+
}), W) {
|
|
513
|
+
const n = o.map((M, E) => M ? E : -1).filter((M) => M >= 0), u = () => Et(J.current, n), R = () => typeof requestAnimationFrame == "function" ? requestAnimationFrame(u) : u();
|
|
514
|
+
a.chart = {
|
|
515
|
+
...a.chart,
|
|
516
|
+
events: {
|
|
517
|
+
...((I = a.chart) == null ? void 0 : I.events) ?? {},
|
|
518
|
+
mounted: () => R(),
|
|
519
|
+
updated: () => R(),
|
|
520
|
+
animationEnd: () => u()
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
return kt(a, l);
|
|
525
|
+
}
|
|
526
|
+
function kt(e, s) {
|
|
527
|
+
var i, d, c, p, h, m;
|
|
528
|
+
if (!de(s)) return e;
|
|
529
|
+
const t = (i = e.chart) == null ? void 0 : i.events;
|
|
530
|
+
return {
|
|
531
|
+
...e,
|
|
532
|
+
colors: e.colors,
|
|
533
|
+
chart: {
|
|
534
|
+
...e.chart,
|
|
535
|
+
events: {
|
|
536
|
+
...t,
|
|
537
|
+
mounted: t == null ? void 0 : t.mounted,
|
|
538
|
+
updated: t == null ? void 0 : t.updated,
|
|
539
|
+
animationEnd: t == null ? void 0 : t.animationEnd
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
stroke: {
|
|
543
|
+
...e.stroke,
|
|
544
|
+
lineCap: ((d = e.stroke) == null ? void 0 : d.lineCap) ?? (s === "bar" ? "square" : "butt"),
|
|
545
|
+
dashArray: ((c = e.stroke) == null ? void 0 : c.dashArray) ?? 0
|
|
546
|
+
},
|
|
547
|
+
legend: {
|
|
548
|
+
...e.legend,
|
|
549
|
+
markers: {
|
|
550
|
+
...(p = e.legend) == null ? void 0 : p.markers,
|
|
551
|
+
fillColors: (m = (h = e.legend) == null ? void 0 : h.markers) == null ? void 0 : m.fillColors
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
fill: e.fill ?? { type: "solid", opacity: 0.85 }
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
function V(e) {
|
|
558
|
+
return xt.includes(e);
|
|
559
|
+
}
|
|
560
|
+
function de(e) {
|
|
561
|
+
return wt.includes(e);
|
|
562
|
+
}
|
|
563
|
+
function It(e, s) {
|
|
564
|
+
return V(s) ? [
|
|
565
|
+
{
|
|
566
|
+
name: "",
|
|
567
|
+
data: e
|
|
568
|
+
}
|
|
569
|
+
] : e;
|
|
570
|
+
}
|
|
571
|
+
const Rt = Ge(
|
|
572
|
+
({
|
|
573
|
+
title: e,
|
|
574
|
+
id: s,
|
|
575
|
+
type: t,
|
|
576
|
+
series: i,
|
|
577
|
+
categories: d,
|
|
578
|
+
labels: c,
|
|
579
|
+
height: p,
|
|
580
|
+
width: h,
|
|
581
|
+
patterns: m = !1,
|
|
582
|
+
stacked: L = !1,
|
|
583
|
+
orientation: l = "vertical",
|
|
584
|
+
curve: T = "smooth",
|
|
585
|
+
colors: $,
|
|
586
|
+
toolbar: _ = !1,
|
|
587
|
+
locale: pe,
|
|
588
|
+
radialValueFormatter: N,
|
|
589
|
+
valueFormatter: q,
|
|
590
|
+
switchableTypes: H,
|
|
591
|
+
onTypeChange: B,
|
|
592
|
+
density: X,
|
|
593
|
+
className: J
|
|
594
|
+
}, S) => {
|
|
595
|
+
const { t: o, i18n: C } = je("ui"), F = Ke(), O = x(
|
|
596
|
+
() => `chart-${F.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
597
|
+
[F]
|
|
598
|
+
), W = `${O}-summary`, D = j(null), [a, Q] = z(null), ee = x(
|
|
599
|
+
() => tt(D, Q),
|
|
600
|
+
[]
|
|
601
|
+
), G = x(() => ({ current: a }), [a]), [K, te] = z(0);
|
|
602
|
+
Ze(G), Xe(G);
|
|
603
|
+
const I = pe ?? C.language ?? "en", [n, u] = z(() => {
|
|
604
|
+
try {
|
|
605
|
+
return _e();
|
|
606
|
+
} catch {
|
|
607
|
+
return {};
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
le(() => {
|
|
611
|
+
if (typeof document > "u") return;
|
|
612
|
+
let r;
|
|
613
|
+
const y = new MutationObserver(() => {
|
|
614
|
+
clearTimeout(r), r = setTimeout(() => {
|
|
615
|
+
try {
|
|
616
|
+
u(_e());
|
|
617
|
+
} catch {
|
|
618
|
+
}
|
|
619
|
+
}, 50);
|
|
620
|
+
});
|
|
621
|
+
return y.observe(document.documentElement, {
|
|
622
|
+
attributes: !0,
|
|
623
|
+
attributeFilter: ["class"]
|
|
624
|
+
}), () => {
|
|
625
|
+
clearTimeout(r), y.disconnect();
|
|
626
|
+
};
|
|
627
|
+
}, []);
|
|
628
|
+
const [R, M] = z(
|
|
629
|
+
() => typeof document > "u" ? 0 : Be(document.documentElement)
|
|
630
|
+
);
|
|
631
|
+
le(() => {
|
|
632
|
+
if (!a || !_) return;
|
|
633
|
+
const r = new ResizeObserver(() => y()), y = () => {
|
|
634
|
+
const w = a.querySelector(".apexcharts-toolbar");
|
|
635
|
+
w && r.observe(w), M(
|
|
636
|
+
Math.max(Be(a), (w == null ? void 0 : w.offsetHeight) ?? 0)
|
|
637
|
+
);
|
|
638
|
+
};
|
|
639
|
+
y();
|
|
640
|
+
const g = new MutationObserver(y);
|
|
641
|
+
for (let w = a.parentElement; w; w = w.parentElement)
|
|
642
|
+
g.observe(w, { attributes: !0, attributeFilter: ["class"] });
|
|
643
|
+
const A = new MutationObserver((w) => {
|
|
644
|
+
w.flatMap((U) => [...U.addedNodes]).some(
|
|
645
|
+
(U) => U instanceof Element && (U.matches(".apexcharts-toolbar") || U.querySelector(".apexcharts-toolbar"))
|
|
646
|
+
) && y();
|
|
647
|
+
});
|
|
648
|
+
return A.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
649
|
+
r.disconnect(), g.disconnect(), A.disconnect();
|
|
650
|
+
};
|
|
651
|
+
}, [a, _]), le(() => {
|
|
652
|
+
const r = a;
|
|
653
|
+
if (!r || typeof ResizeObserver > "u") return;
|
|
654
|
+
const y = new ResizeObserver((g) => {
|
|
655
|
+
const A = g[0];
|
|
656
|
+
A && te(Math.floor(A.contentRect.width));
|
|
657
|
+
});
|
|
658
|
+
return y.observe(r), () => y.disconnect();
|
|
659
|
+
}, [a]);
|
|
660
|
+
const E = x(() => {
|
|
661
|
+
if (!H || H.length === 0) return [];
|
|
662
|
+
const r = H.filter(
|
|
663
|
+
(g) => Ne.includes(g)
|
|
664
|
+
);
|
|
665
|
+
if (!Ne.includes(t))
|
|
666
|
+
return [];
|
|
667
|
+
const y = r.includes(t) ? r : [t, ...r];
|
|
668
|
+
return [...new Set(y)];
|
|
669
|
+
}, [H, t]), f = E.length >= 2, [k, re] = z(null), b = f && k && E.includes(k) ? k : t;
|
|
670
|
+
bt(
|
|
671
|
+
a,
|
|
672
|
+
b !== "pie" && b !== "donut"
|
|
673
|
+
);
|
|
674
|
+
const ue = V(t), he = V(b), [ae, fe] = z(null), [be, $e] = z(i);
|
|
675
|
+
be !== i && ($e(i), ae && fe(null));
|
|
676
|
+
const ye = ae && ae.base === i && be === i ? ae.next : i, ge = j(i);
|
|
677
|
+
ge.current = i;
|
|
678
|
+
const { effectiveSeries: P, effectiveCategories: ne, effectiveLabels: oe } = x(
|
|
679
|
+
() => Me(
|
|
680
|
+
ye,
|
|
681
|
+
d,
|
|
682
|
+
c,
|
|
683
|
+
ue,
|
|
684
|
+
he,
|
|
685
|
+
o("chart.table.value")
|
|
686
|
+
),
|
|
687
|
+
[ye, d, c, ue, he, o]
|
|
688
|
+
), ve = (r) => Me(
|
|
689
|
+
r,
|
|
690
|
+
d,
|
|
691
|
+
c,
|
|
692
|
+
ue,
|
|
693
|
+
he,
|
|
694
|
+
o("chart.table.value")
|
|
695
|
+
), we = j(ve);
|
|
696
|
+
we.current = ve;
|
|
697
|
+
const xe = j(Promise.resolve()), me = x(
|
|
698
|
+
() => ({
|
|
699
|
+
async dataURI() {
|
|
700
|
+
await xe.current;
|
|
701
|
+
const r = Oe.getChartByID(O);
|
|
702
|
+
return r ? (await r.dataURI()).imgURI : "";
|
|
703
|
+
},
|
|
704
|
+
updateSeries(r) {
|
|
705
|
+
fe({ base: ge.current, next: r });
|
|
706
|
+
const y = Oe.getChartByID(O);
|
|
707
|
+
if (!y) return;
|
|
708
|
+
const g = we.current(r), A = { ...Ie.current, ...g };
|
|
709
|
+
xe.current = y.updateOptions(
|
|
710
|
+
{ ...Pe(A), series: g.effectiveSeries },
|
|
711
|
+
!1,
|
|
712
|
+
!0
|
|
713
|
+
).catch(() => {
|
|
714
|
+
});
|
|
715
|
+
},
|
|
716
|
+
setType(r) {
|
|
717
|
+
return !f || !E.includes(r) ? !1 : (re(r), !0);
|
|
718
|
+
},
|
|
719
|
+
getTypeState() {
|
|
720
|
+
return {
|
|
721
|
+
declaredType: t,
|
|
722
|
+
effectiveType: b,
|
|
723
|
+
availableTypes: f ? [...E] : []
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
}),
|
|
727
|
+
[O, t, b, f, E]
|
|
728
|
+
);
|
|
729
|
+
Ue(S, () => me, [me]), rt(yt, me, s);
|
|
730
|
+
const Se = typeof document < "u" && document.documentElement.dir === "rtl", Ae = x(
|
|
731
|
+
() => It(P, b),
|
|
732
|
+
[P, b]
|
|
733
|
+
), Te = x(
|
|
734
|
+
() => new Intl.NumberFormat(I),
|
|
735
|
+
[I]
|
|
736
|
+
), se = x(
|
|
737
|
+
() => q ?? ((r) => Te.format(r)),
|
|
738
|
+
[q, Te]
|
|
739
|
+
), Ce = x(
|
|
740
|
+
() => ({
|
|
741
|
+
name: I,
|
|
742
|
+
options: {
|
|
743
|
+
toolbar: {
|
|
744
|
+
download: o("chart.toolbar.download"),
|
|
745
|
+
// Names the button that opens the export menu (Apex: "Menu").
|
|
746
|
+
menu: o("chart.toolbar.download"),
|
|
747
|
+
selection: o("chart.toolbar.selection"),
|
|
748
|
+
selectionZoom: o("chart.toolbar.selectionZoom"),
|
|
749
|
+
zoomIn: o("chart.toolbar.zoomIn"),
|
|
750
|
+
zoomOut: o("chart.toolbar.zoomOut"),
|
|
751
|
+
pan: o("chart.toolbar.pan"),
|
|
752
|
+
reset: o("chart.toolbar.reset"),
|
|
753
|
+
exportToSVG: o("chart.toolbar.exportToSVG"),
|
|
754
|
+
exportToPNG: o("chart.toolbar.exportToPNG"),
|
|
755
|
+
exportToCSV: o("chart.toolbar.exportToCSV")
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}),
|
|
759
|
+
[I, o]
|
|
760
|
+
), Ee = et(), ke = o("chart.noData"), ie = x(
|
|
761
|
+
() => ({
|
|
762
|
+
themeOptions: n,
|
|
763
|
+
toolbarBand: R,
|
|
764
|
+
chartId: O,
|
|
765
|
+
toolbar: _,
|
|
766
|
+
reducedMotion: Ee,
|
|
767
|
+
toolbarLocale: Ce,
|
|
768
|
+
locale: I,
|
|
769
|
+
effectiveLabels: oe,
|
|
770
|
+
formatValue: se,
|
|
771
|
+
noDataText: ke,
|
|
772
|
+
effectiveType: b,
|
|
773
|
+
effectiveSeries: P,
|
|
774
|
+
effectiveCategories: ne,
|
|
775
|
+
isRtl: Se,
|
|
776
|
+
patterns: m,
|
|
777
|
+
stacked: L,
|
|
778
|
+
orientation: l,
|
|
779
|
+
curve: T,
|
|
780
|
+
colors: $,
|
|
781
|
+
radialValueFormatter: N,
|
|
782
|
+
wrapperRef: D
|
|
783
|
+
}),
|
|
784
|
+
[
|
|
785
|
+
n,
|
|
786
|
+
R,
|
|
787
|
+
O,
|
|
788
|
+
_,
|
|
789
|
+
Ee,
|
|
790
|
+
Ce,
|
|
791
|
+
I,
|
|
792
|
+
oe,
|
|
793
|
+
se,
|
|
794
|
+
ke,
|
|
795
|
+
b,
|
|
796
|
+
P,
|
|
797
|
+
ne,
|
|
798
|
+
Se,
|
|
799
|
+
m,
|
|
800
|
+
L,
|
|
801
|
+
l,
|
|
802
|
+
T,
|
|
803
|
+
$,
|
|
804
|
+
N
|
|
805
|
+
]
|
|
806
|
+
), qe = x(
|
|
807
|
+
() => Pe(ie),
|
|
808
|
+
[ie]
|
|
809
|
+
), Ie = j(ie);
|
|
810
|
+
Ie.current = ie;
|
|
811
|
+
const He = h ?? (K > 0 ? K : "100%"), Fe = p ?? 320, De = x(() => {
|
|
812
|
+
const r = V(b) ? oe ?? [] : ne ?? [], y = Ae;
|
|
813
|
+
return /* @__PURE__ */ Y("table", { id: W, className: "ds:sr-only", children: [
|
|
814
|
+
/* @__PURE__ */ v("caption", { children: e }),
|
|
815
|
+
/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ Y("tr", { children: [
|
|
816
|
+
/* @__PURE__ */ v("th", { scope: "col", children: o("chart.table.series") }),
|
|
817
|
+
r.map((g, A) => /* @__PURE__ */ v("th", { scope: "col", children: g }, `${g}-${A}`))
|
|
818
|
+
] }) }),
|
|
819
|
+
/* @__PURE__ */ v("tbody", { children: y.map((g, A) => /* @__PURE__ */ Y("tr", { children: [
|
|
820
|
+
/* @__PURE__ */ v("th", { scope: "row", children: g.name || o("chart.table.value") }),
|
|
821
|
+
g.data.map((w, Le) => /* @__PURE__ */ v("td", { children: b === "radialBar" && N ? N(w) : se(w) }, `${A}-${Le}`))
|
|
822
|
+
] }, `${g.name}-${A}`)) })
|
|
823
|
+
] });
|
|
824
|
+
}, [
|
|
825
|
+
b,
|
|
826
|
+
Ae,
|
|
827
|
+
oe,
|
|
828
|
+
ne,
|
|
829
|
+
W,
|
|
830
|
+
e,
|
|
831
|
+
o,
|
|
832
|
+
se,
|
|
833
|
+
N
|
|
834
|
+
]), We = x(() => (V(b), P), [P, b]), Re = /* @__PURE__ */ Y(
|
|
835
|
+
"div",
|
|
836
|
+
{
|
|
837
|
+
ref: ee,
|
|
838
|
+
role: "figure",
|
|
839
|
+
"aria-label": e,
|
|
840
|
+
"aria-describedby": W,
|
|
841
|
+
className: gt({
|
|
842
|
+
// Explicit height wins over the density min-height unless the
|
|
843
|
+
// caller also asked for a density explicitly.
|
|
844
|
+
density: X ?? (p !== void 0 ? "none" : void 0),
|
|
845
|
+
className: f ? void 0 : J
|
|
846
|
+
}),
|
|
847
|
+
...f ? {} : { "data-component": "chart", "data-component-id": s },
|
|
848
|
+
children: [
|
|
849
|
+
De,
|
|
850
|
+
/* @__PURE__ */ v(
|
|
851
|
+
Ve,
|
|
852
|
+
{
|
|
853
|
+
type: b,
|
|
854
|
+
series: We,
|
|
855
|
+
options: qe,
|
|
856
|
+
width: He,
|
|
857
|
+
height: Fe
|
|
858
|
+
},
|
|
859
|
+
b
|
|
860
|
+
)
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
);
|
|
864
|
+
return f ? /* @__PURE__ */ Y(
|
|
865
|
+
"div",
|
|
866
|
+
{
|
|
867
|
+
"data-component": "chart",
|
|
868
|
+
"data-component-id": s,
|
|
869
|
+
className: `ds:block ds:w-full ${J ?? ""}`.trim(),
|
|
870
|
+
children: [
|
|
871
|
+
/* @__PURE__ */ v("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ v(
|
|
872
|
+
nt,
|
|
873
|
+
{
|
|
874
|
+
role: "radiogroup",
|
|
875
|
+
mode: "toggle-single",
|
|
876
|
+
size: "sm",
|
|
877
|
+
"aria-label": o("chart.typeSwitcher.label"),
|
|
878
|
+
value: b,
|
|
879
|
+
onValueChange: (r) => {
|
|
880
|
+
r !== b && (re(r), B == null || B(r));
|
|
881
|
+
},
|
|
882
|
+
children: E.map((r) => /* @__PURE__ */ v(
|
|
883
|
+
at,
|
|
884
|
+
{
|
|
885
|
+
value: r,
|
|
886
|
+
type: "button",
|
|
887
|
+
icon: At[r],
|
|
888
|
+
"aria-label": o(St[r])
|
|
889
|
+
},
|
|
890
|
+
r
|
|
891
|
+
))
|
|
892
|
+
}
|
|
893
|
+
) }),
|
|
894
|
+
Re
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
) : Re;
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
Rt.displayName = "Chart";
|
|
901
|
+
export {
|
|
902
|
+
Rt as C,
|
|
903
|
+
gt as a,
|
|
904
|
+
yt as c
|
|
905
|
+
};
|
|
906
|
+
//# sourceMappingURL=chart-DQ5GxqgT.js.map
|