@progress/kendo-react-chart-wizard 8.2.0-develop.38

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.
@@ -0,0 +1,946 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import * as e from "react";
10
+ import { Window as In } from "@progress/kendo-react-dialogs";
11
+ import { Chart as Nn, ChartTitle as wn, ChartSubtitle as Pn, ChartArea as Vn, ChartCategoryAxis as Bn, ChartCategoryAxisItem as Mn, ChartValueAxis as Rn, ChartValueAxisItem as Dn, ChartSeries as Kn, ChartSeriesItem as On, ChartXAxis as Xn, ChartXAxisItem as Gn, ChartYAxis as Hn, ChartYAxisItem as Yn, ChartLegend as jn } from "@progress/kendo-react-charts";
12
+ import { Splitter as Un, TabStrip as qn, TabStripTab as Y, ExpansionPanel as S, ExpansionPanelContent as v } from "@progress/kendo-react-layout";
13
+ import { DropDownButton as Jn } from "@progress/kendo-react-buttons";
14
+ import { exportIcon as Qn, filePdfIcon as Zn, fileIcon as _n, fileImageIcon as $n, chartBarClusteredIcon as er, chartBarStackedIcon as tr, chartBarStacked100Icon as ar, chartPieIcon as lr, chartColumnClusteredIcon as nr, chartColumnStackedIcon as rr, chartColumnStacked100Icon as or, chartLineIcon as ir, chartLineStackedIcon as cr, chartLineStacked100Icon as sr, chartScatterIcon as dr } from "@progress/kendo-svg-icons";
15
+ import { Reveal as L } from "@progress/kendo-react-animation";
16
+ import { DropDownList as B, ComboBox as E } from "@progress/kendo-react-dropdowns";
17
+ import { SeriesGrid as gr } from "./SeriesGrid.mjs";
18
+ import { NumericTextBox as M, ColorPicker as N, Input as j, Checkbox as Ze, Switch as ur } from "@progress/kendo-react-inputs";
19
+ import { Label as Ja } from "@progress/kendo-react-labels";
20
+ import { createInitialState as mr, mergeStates as z, createState as y, updateState as s, ActionTypes as c, isCategorical as _e, fontNames as A, parseFont as k, fontSizes as p } from "./chart-wizard-state.mjs";
21
+ import { classNames as hr, SvgIcon as xr } from "@progress/kendo-react-common";
22
+ import { FormElement as P, FieldWrapper as Cr } from "@progress/kendo-react-form";
23
+ import { useLocalization as br } from "@progress/kendo-react-intl";
24
+ import { chartWizardFormatTitleChartTitle as $e, messages as n, chartWizardFormatTitleChartSubtitle as et, chartWizardFormatLegendPositionTop as tt, chartWizardFormatLegendPositionBottom as at, chartWizardFormatLegendPositionLeft as lt, chartWizardFormatLegendPositionRight as nt, chartWizardFormatSeriesAllSeries as rt, chartWizardFormatValueAxisLabelsFormatText as ot, chartWizardFormatValueAxisLabelsFormatNumber as it, chartWizardFormatValueAxisLabelsFormatCurrency as ct, chartWizardFormatValueAxisLabelsFormatPercent as st, chartWizardWindowTitle as dt, chartWizardExportButton as gt, chartWizardExportPDFButton as ut, chartWizardExportSVGButton as mt, chartWizardExportPNGButton as ht, chartWizardTabChart as xt, chartWizardChartBarChart as Ct, chartWizardChartBarChartBar as bt, chartWizardChartBarChartStackedBar as St, chartWizardChartBarChart100StackedBar as vt, chartWizardChartPieChart as Lt, chartWizardChartPieChartPie as Et, chartWizardChartColumnChart as At, chartWizardChartColumnChartColumn as kt, chartWizardChartColumnChartStackedColumn as pt, chartWizardChartColumnChart100StackedColumn as Ft, chartWizardChartLineChart as ft, chartWizardChartLineChartLine as zt, chartWizardChartLineChartStackedLine as yt, chartWizardChartLineChart100StackedLine as Tt, chartWizardChartScatterChart as Wt, chartWizardChartScatterChartScatter as It, chartWizardTabData as Nt, chartWizardDataConfiguration as wt, chartWizardDataConfigurationXAxis as Pt, chartWizardDataConfigurationCategoryAxis as Vt, chartWizardDataConfigurationSeries as Bt, chartWizardDataConfigurationValueAxis as Mt, chartWizardTabFormat as Rt, chartWizardFormatChartArea as Dt, chartWizardFormatChartAreaMargins as Kt, chartWizardFormatChartAreaMarginsLeft as Ot, chartWizardFormatChartAreaMarginsAuto as w, chartWizardFormatChartAreaMarginsRight as Xt, chartWizardFormatChartAreaMarginsTop as Gt, chartWizardFormatChartAreaMarginsBottom as Ht, chartWizardFormatChartAreaBackground as Yt, chartWizardFormatChartAreaBackgroundColor as jt, chartWizardFormatTitle as Ut, chartWizardFormatTitleApplyTo as qt, chartWizardFormatTitleLabel as Jt, chartWizardFormatTitleFont as Qt, chartWizardFormatTitleFontPlaceholder as Zt, chartWizardFormatTitleSize as _t, chartWizardFormatTitleSizePlaceholder as $t, chartWizardFormatTitleColor as ea, chartWizardFormatSeries as ta, chartWizardFormatSeriesApplyTo as aa, chartWizardFormatSeriesColor as la, chartWizardFormatSeriesShowLabels as na, chartWizardFormatLegend as ra, chartWizardFormatLegendShowLegend as oa, chartWizardFormatLegendFont as ia, chartWizardFormatLegendFontPlaceholder as ca, chartWizardFormatLegendSize as sa, chartWizardFormatLegendSizePlaceholder as da, chartWizardFormatLegendColor as ga, chartWizardFormatLegendPosition as ua, chartWizardFormatXAxis as ma, chartWizardFormatCategoryAxis as ha, chartWizardFormatCategoryAxisTitle as xa, chartWizardFormatCategoryAxisTitlePlaceholder as Ca, chartWizardFormatCategoryAxisTitleFont as ba, chartWizardFormatCategoryAxisTitleFontPlaceholder as Sa, chartWizardFormatCategoryAxisTitleSize as va, chartWizardFormatCategoryAxisTitleSizePlaceholder as La, chartWizardFormatCategoryAxisTitleColor as Ea, chartWizardFormatCategoryAxisLabels as Aa, chartWizardFormatCategoryAxisLabelsFont as ka, chartWizardFormatCategoryAxisLabelsFontPlaceholder as pa, chartWizardFormatCategoryAxisLabelsSize as Fa, chartWizardFormatCategoryAxisLabelsSizePlaceholder as fa, chartWizardFormatCategoryAxisLabelsColor as za, chartWizardFormatCategoryAxisLabelsRotation as ya, chartWizardFormatCategoryAxisLabelsRotationAuto as Ta, chartWizardFormatCategoryAxisLabelsReverseOrder as Wa, chartWizardFormatYAxis as Ia, chartWizardFormatValueAxis as Na, chartWizardFormatValueAxisTitle as wa, chartWizardFormatValueAxisTitlePlaceholder as Pa, chartWizardFormatValueAxisTitleFont as Va, chartWizardFormatValueAxisTitleFontPlaceholder as Ba, chartWizardFormatValueAxisTitleSize as Ma, chartWizardFormatValueAxisTitleSizePlaceholder as Ra, chartWizardFormatValueAxisTitleColor as Da, chartWizardFormatValueAxisLabels as Ka, chartWizardFormatValueAxisLabelsFormat as Oa, chartWizardFormatValueAxisLabelsFont as Xa, chartWizardFormatValueAxisLabelsFontPlaceholder as Ga, chartWizardFormatValueAxisLabelsSize as Ha, chartWizardFormatValueAxisLabelsSizePlaceholder as Ya, chartWizardFormatValueAxisLabelsColor as ja, chartWizardFormatValueAxisLabelsRotation as Ua, chartWizardFormatValueAxisLabelsRotationAuto as qa } from "./messages.mjs";
25
+ import { ExportEvent as Sr, resolveExportOptions as vr, handlePDFExport as Lr, handleSVGExport as Er, handleImageExport as Ar } from "./export.mjs";
26
+ const I = (o) => /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, o.legend && /* @__PURE__ */ e.createElement("legend", { className: "k-form-legend" }, o.legend), o.children), g = (o) => /* @__PURE__ */ e.createElement(Cr, { className: o.className }, o.labelText && o.editorId && /* @__PURE__ */ e.createElement(Ja, { className: "k-form-label", editorId: o.editorId }, o.labelText), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, o.children)), u = { value: null, text: "" }, V = (o, l) => l.dataItem.style ? e.cloneElement(o, o.props, /* @__PURE__ */ e.createElement("span", { style: l.dataItem.style }, o.props.children)) : o, T = (o) => /* @__PURE__ */ e.createElement("div", { className: hr("k-icon-text-wrapper", { "k-selected": o.selected }), onClick: o.onClick }, /* @__PURE__ */ e.createElement("div", { className: "k-icon-background-area", tabIndex: 0 }, /* @__PURE__ */ e.createElement(xr, { icon: o.icon, size: "xlarge", className: "k-svg-i-chart-bar-clustered" })), o.children), h = {
27
+ fillMode: "outline",
28
+ popupSettings: {
29
+ animate: !1
30
+ }
31
+ }, U = { type: "normal" }, q = { type: "100%" }, Dr = (o) => {
32
+ var de, ge, ue, me, he, xe, Ce, be, Se, ve, Le, Ee, Ae, ke, pe, Fe, fe, ze, ye, Te, We, Ie, Ne, we, Pe, Ve, Be, Me, Re, De, Ke, Oe, Xe, Ge, He, Ye, je, Ue, qe, Je, Qe;
33
+ const l = br(), F = [
34
+ { value: "chartTitle", text: l.toLanguageString($e, n[$e]) },
35
+ { value: "chartSubtitle", text: l.toLanguageString(et, n[et]) }
36
+ ], J = [
37
+ { value: "top", text: l.toLanguageString(tt, n[tt]) },
38
+ { value: "bottom", text: l.toLanguageString(at, n[at]) },
39
+ { value: "left", text: l.toLanguageString(lt, n[lt]) },
40
+ { value: "right", text: l.toLanguageString(nt, n[nt]) }
41
+ ], K = {
42
+ name: l.toLanguageString(rt, n[rt])
43
+ }, Q = {
44
+ text: l.toLanguageString(ot, n[ot]),
45
+ value: ""
46
+ }, Z = [
47
+ { value: "n0", text: l.toLanguageString(it, n[it]) },
48
+ { value: "c0", text: l.toLanguageString(ct, n[ct]) },
49
+ { value: "p0", text: l.toLanguageString(st, n[st]) }
50
+ ], O = e.useRef(null), Qa = e.useCallback((t) => {
51
+ var r;
52
+ if (O.current) {
53
+ const d = new Sr(O.current, vr(o.exportOptions));
54
+ (r = o.onExport) == null || r.call(o, d), d.isDefaultPrevented() || t.item.exportHandler.call(void 0, d);
55
+ }
56
+ }, [o.exportOptions]), [Za, _a] = e.useState({ width: 700, height: 550 }), [$a, el] = e.useState("DEFAULT"), tl = e.useCallback((t) => {
57
+ _a({ width: t.width, height: t.height });
58
+ }, []), al = e.useCallback((t) => {
59
+ el(t.state);
60
+ }, []), [ll, nl] = e.useState([{ collapsible: !1 }, { size: "300px", collapsible: !1 }]), rl = e.useCallback((t) => {
61
+ nl(t.newState);
62
+ }, []), [_, ol] = e.useState(!0), il = e.useCallback((t) => {
63
+ ol(!t.expanded);
64
+ }, []), [$, cl] = e.useState(!0), sl = e.useCallback((t) => {
65
+ cl(!t.expanded);
66
+ }, []), [ee, dl] = e.useState(!0), gl = e.useCallback((t) => {
67
+ dl(!t.expanded);
68
+ }, []), [te, ul] = e.useState(!0), ml = e.useCallback((t) => {
69
+ ul(!t.expanded);
70
+ }, []), [ae, hl] = e.useState(!0), xl = e.useCallback((t) => {
71
+ hl(!t.expanded);
72
+ }, []), [le, Cl] = e.useState(!0), bl = e.useCallback((t) => {
73
+ Cl(!t.expanded);
74
+ }, []), [ne, Sl] = e.useState(!0), vl = e.useCallback((t) => {
75
+ Sl(!t.expanded);
76
+ }, []), [re, Ll] = e.useState(!0), El = e.useCallback((t) => {
77
+ Ll(!t.expanded);
78
+ }, []), [oe, Al] = e.useState(!0), kl = e.useCallback((t) => {
79
+ Al(!t.expanded);
80
+ }, []), [ie, pl] = e.useState(!0), Fl = e.useCallback((t) => {
81
+ pl(!t.expanded);
82
+ }, []), [ce, fl] = e.useState(!0), zl = e.useCallback((t) => {
83
+ fl(!t.expanded);
84
+ }, []), [se, yl] = e.useState(!0), Tl = e.useCallback((t) => {
85
+ yl(!t.expanded);
86
+ }, []), [Wl, Il] = e.useState(0), Nl = e.useCallback((t) => {
87
+ Il(t.selected);
88
+ }, []), [a, i] = e.useState(mr(o.data, "bar", o.defaultState)), [C, b] = e.useState(""), wl = e.useCallback((t) => {
89
+ const r = t.target.value.name;
90
+ b(r === K.name ? "" : r);
91
+ }, []), Pl = e.useCallback(() => {
92
+ i(z(a, y(o.data, "bar"))), b("");
93
+ }, [a, o.data]), Vl = e.useCallback(() => {
94
+ const t = z(a, y(o.data, "bar"));
95
+ i(s(t, c.stacked, U)), b("");
96
+ }, [a, o.data]), Bl = e.useCallback(() => {
97
+ const t = z(a, y(o.data, "bar"));
98
+ i(s(t, c.stacked, q)), b("");
99
+ }, [a, o.data]), Ml = e.useCallback(() => {
100
+ i(z(a, y(o.data, "column"))), b("");
101
+ }, [a, o.data]), Rl = e.useCallback(() => {
102
+ const t = z(a, y(o.data, "column"));
103
+ i(s(t, c.stacked, U)), b("");
104
+ }, [a, o.data]), Dl = e.useCallback(() => {
105
+ const t = z(a, y(o.data, "column"));
106
+ i(s(t, c.stacked, q)), b("");
107
+ }, [a, o.data]), Kl = e.useCallback(() => {
108
+ i(z(a, y(o.data, "line"))), b("");
109
+ }, [a, o.data]), Ol = e.useCallback(() => {
110
+ const t = z(a, y(o.data, "line"));
111
+ i(s(t, c.stacked, U)), b("");
112
+ }, [a, o.data]), Xl = e.useCallback(() => {
113
+ const t = z(a, y(o.data, "line"));
114
+ i(s(t, c.stacked, q)), b("");
115
+ }, [a, o.data]), Gl = e.useCallback(() => {
116
+ i(z(a, y(o.data, "pie"))), b("");
117
+ }, [a, o.data]), Hl = e.useCallback(() => {
118
+ i(z(a, y(o.data, "scatter"))), b("");
119
+ }, [a, o.data]), Yl = e.useCallback((t) => {
120
+ i(s(a, c.categoryAxisX, t.target.value));
121
+ }, [a]), jl = e.useCallback((t) => {
122
+ i(s(a, c.seriesChange, t));
123
+ }, [a]), Ul = e.useCallback((t) => {
124
+ i(s(a, c.valueAxisY, t.target.value));
125
+ }, [a]), ql = e.useCallback((t) => {
126
+ i(s(a, c.areaMarginLeft, t.target.value));
127
+ }, [a]), Jl = e.useCallback((t) => {
128
+ i(s(a, c.areaMarginRight, t.target.value));
129
+ }, [a]), Ql = e.useCallback((t) => {
130
+ i(s(a, c.areaMarginTop, t.target.value));
131
+ }, [a]), Zl = e.useCallback((t) => {
132
+ i(s(a, c.areaMarginBottom, t.target.value));
133
+ }, [a]), W = a.area.margin, _l = e.useCallback((t) => {
134
+ i(s(a, c.areaBackground, t.value));
135
+ }, [a]), [f, $l] = e.useState(F[0]), en = e.useCallback((t) => {
136
+ $l(t.target.value);
137
+ }, []), tn = e.useCallback((t) => {
138
+ const r = f.value === F[0].value ? c.titleText : c.subtitleText;
139
+ i(s(a, r, t.target.value));
140
+ }, [a, f]), an = e.useCallback((t) => {
141
+ const r = f.value === F[0].value ? c.titleFontName : c.subtitleFontName, d = t.target.value || u;
142
+ i(s(a, r, d.value));
143
+ }, [a, f]), ln = e.useCallback((t) => {
144
+ const r = f.value === F[0].value ? c.titleFontSize : c.subtitleFontSize, d = t.target.value || u;
145
+ i(s(a, r, d.value));
146
+ }, [a, f]), nn = e.useCallback((t) => {
147
+ const r = f.value === F[0].value ? c.titleColor : c.subtitleColor;
148
+ i(s(a, r, t.value));
149
+ }, [a, f]), D = (f.value === F[0].value ? a.title : a.subtitle) || { text: "", font: "", color: "" }, rn = e.useCallback((t) => {
150
+ C && i(s(a, c.seriesColor, { seriesName: C, color: t.value }));
151
+ }, [a, C]), on = e.useCallback((t) => {
152
+ i(s(a, c.seriesLabel, { seriesName: C, all: !C, visible: t.value }));
153
+ }, [a, C]), cn = e.useCallback((t) => {
154
+ i(s(a, c.legendVisible, t.value));
155
+ }, [a]), sn = e.useCallback((t) => {
156
+ const r = t.target.value || u;
157
+ i(s(a, c.legendFontSize, r.value));
158
+ }, [a]), dn = e.useCallback((t) => {
159
+ const r = t.target.value || u;
160
+ i(s(a, c.legendFontName, r.value));
161
+ }, [a]), gn = e.useCallback((t) => {
162
+ i(s(a, c.legendColor, t.value));
163
+ }, [a]), un = e.useCallback((t) => {
164
+ const r = t.target.value;
165
+ i(s(a, c.legendPosition, r.value));
166
+ }, [a]), mn = e.useCallback((t) => {
167
+ i(s(a, c.categoryAxisTitleText, t.target.value));
168
+ }, [a]), hn = e.useCallback((t) => {
169
+ const r = t.target.value || u;
170
+ i(s(a, c.categoryAxisTitleFontSize, r.value));
171
+ }, [a]), xn = e.useCallback((t) => {
172
+ const r = t.target.value || u;
173
+ i(s(a, c.categoryAxisTitleFontName, r.value));
174
+ }, [a]), Cn = e.useCallback((t) => {
175
+ i(s(a, c.categoryAxisTitleColor, t.value));
176
+ }, [a]), bn = e.useCallback((t) => {
177
+ const r = t.target.value || u;
178
+ i(s(a, c.categoryAxisLabelsFontSize, r.value));
179
+ }, [a]), Sn = e.useCallback((t) => {
180
+ const r = t.target.value || u;
181
+ i(s(a, c.categoryAxisLabelsFontName, r.value));
182
+ }, [a]), vn = e.useCallback((t) => {
183
+ i(s(a, c.categoryAxisLabelsColor, t.value));
184
+ }, [a]), Ln = e.useCallback((t) => {
185
+ i(s(a, c.categoryAxisLabelsRotation, t.target.value));
186
+ }, [a]), En = e.useCallback((t) => {
187
+ i(s(a, c.categoryAxisReverseOrder, t.value));
188
+ }, [a]), An = e.useCallback((t) => {
189
+ i(s(a, c.valueAxisTitleText, t.target.value));
190
+ }, [a]), kn = e.useCallback((t) => {
191
+ const r = t.target.value || u;
192
+ i(s(a, c.valueAxisTitleFontSize, r.value));
193
+ }, [a]), pn = e.useCallback((t) => {
194
+ const r = t.target.value || u;
195
+ i(s(a, c.valueAxisTitleFontName, r.value));
196
+ }, [a]), Fn = e.useCallback((t) => {
197
+ i(s(a, c.valueAxisTitleColor, t.value));
198
+ }, [a]), fn = e.useCallback((t) => {
199
+ const r = t.target.value || u;
200
+ i(s(a, c.valueAxisLabelsFontSize, r.value));
201
+ }, [a]), zn = e.useCallback((t) => {
202
+ const r = t.target.value || u;
203
+ i(s(a, c.valueAxisLabelsFontName, r.value));
204
+ }, [a]), yn = e.useCallback((t) => {
205
+ i(s(a, c.valueAxisLabelsColor, t.value));
206
+ }, [a]), Tn = e.useCallback((t) => {
207
+ i(s(a, c.valueAxisLabelsRotation, t.target.value));
208
+ }, [a]), Wn = e.useCallback((t) => {
209
+ const r = t.target.value;
210
+ i(s(a, c.valueAxisLabelsFormat, r.value));
211
+ }, [a]), m = a.seriesType, R = typeof ((de = a.series[0]) == null ? void 0 : de.stack) == "object" ? (ge = a.series[0]) == null ? void 0 : ge.stack : !1, X = R === !1, G = R && R.type === "normal", H = R && R.type === "100%";
212
+ return /* @__PURE__ */ e.createElement(
213
+ In,
214
+ {
215
+ title: l.toLanguageString(dt, n[dt]),
216
+ className: "k-chart-wizard",
217
+ modal: !0,
218
+ resizable: !0,
219
+ minimizeButton: () => null,
220
+ onClose: o.onClose,
221
+ onResize: tl,
222
+ stage: $a,
223
+ onStageChange: al,
224
+ ...Za
225
+ },
226
+ /* @__PURE__ */ e.createElement(
227
+ Un,
228
+ {
229
+ panes: ll,
230
+ onChange: rl,
231
+ className: "k-chart-wizard-splitter"
232
+ },
233
+ /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-preview-pane k-pane" }, /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-header" }, /* @__PURE__ */ e.createElement(
234
+ Jn,
235
+ {
236
+ text: l.toLanguageString(gt, n[gt]),
237
+ fillMode: "flat",
238
+ svgIcon: Qn,
239
+ onItemClick: Qa,
240
+ items: [
241
+ { svgIcon: Zn, exportHandler: Lr, text: l.toLanguageString(ut, n[ut]) },
242
+ { svgIcon: _n, exportHandler: Er, text: l.toLanguageString(mt, n[mt]) },
243
+ { svgIcon: $n, exportHandler: Ar, text: l.toLanguageString(ht, n[ht]) }
244
+ ]
245
+ }
246
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-content", style: { height: "calc(100% - 50px)" } }, /* @__PURE__ */ e.createElement(
247
+ Nn,
248
+ {
249
+ style: { width: "100%", height: "100%" },
250
+ transitions: !1,
251
+ ref: O
252
+ },
253
+ /* @__PURE__ */ e.createElement(
254
+ wn,
255
+ {
256
+ text: (ue = a.title) == null ? void 0 : ue.text,
257
+ font: (me = a.title) == null ? void 0 : me.font,
258
+ color: ((he = a.title) == null ? void 0 : he.color) || "#000"
259
+ }
260
+ ),
261
+ /* @__PURE__ */ e.createElement(
262
+ Pn,
263
+ {
264
+ text: (xe = a.subtitle) == null ? void 0 : xe.text,
265
+ font: (Ce = a.subtitle) == null ? void 0 : Ce.font,
266
+ color: ((be = a.subtitle) == null ? void 0 : be.color) || "#000"
267
+ }
268
+ ),
269
+ /* @__PURE__ */ e.createElement(Vn, { background: (Se = a.area) == null ? void 0 : Se.background, margin: W }),
270
+ a.categoryAxis && /* @__PURE__ */ e.createElement(Bn, null, a.categoryAxis.map((t, r) => /* @__PURE__ */ e.createElement(
271
+ Mn,
272
+ {
273
+ key: r,
274
+ categories: t.categories,
275
+ title: t.title && {
276
+ text: t.title.text,
277
+ font: t.title.font,
278
+ color: t.title.color
279
+ },
280
+ labels: t.labels && {
281
+ font: t.labels.font,
282
+ color: t.labels.color,
283
+ rotation: t.labels.rotation
284
+ },
285
+ reverse: t.reverse
286
+ }
287
+ ))),
288
+ a.valueAxis && /* @__PURE__ */ e.createElement(Rn, null, a.valueAxis.map((t, r) => /* @__PURE__ */ e.createElement(
289
+ Dn,
290
+ {
291
+ key: r,
292
+ title: t.title && {
293
+ text: t.title.text,
294
+ font: t.title.font,
295
+ color: t.title.color
296
+ },
297
+ labels: t.labels && {
298
+ format: t.labels.format,
299
+ font: t.labels.font,
300
+ color: t.labels.color,
301
+ rotation: t.labels.rotation
302
+ }
303
+ }
304
+ ))),
305
+ /* @__PURE__ */ e.createElement(Kn, null, a.series.map((t, r) => /* @__PURE__ */ e.createElement(
306
+ On,
307
+ {
308
+ key: String(t.name) + r,
309
+ ...t
310
+ }
311
+ ))),
312
+ /* @__PURE__ */ e.createElement(Xn, null, a.categoryAxis.map((t, r) => /* @__PURE__ */ e.createElement(
313
+ Gn,
314
+ {
315
+ key: r,
316
+ categories: t.categories,
317
+ title: t.title && {
318
+ text: t.title.text,
319
+ font: t.title.font,
320
+ color: t.title.color
321
+ },
322
+ labels: t.labels && {
323
+ font: t.labels.font,
324
+ color: t.labels.color,
325
+ format: t.labels.format,
326
+ rotation: t.labels.rotation
327
+ }
328
+ }
329
+ ))),
330
+ /* @__PURE__ */ e.createElement(Hn, null, a.valueAxis.map((t, r) => /* @__PURE__ */ e.createElement(
331
+ Yn,
332
+ {
333
+ key: r,
334
+ title: t.title && {
335
+ text: t.title.text,
336
+ font: t.title.font,
337
+ color: t.title.color
338
+ },
339
+ labels: t.labels && {
340
+ format: t.labels.format,
341
+ font: t.labels.font,
342
+ color: t.labels.color,
343
+ rotation: t.labels.rotation
344
+ }
345
+ }
346
+ ))),
347
+ /* @__PURE__ */ e.createElement(
348
+ jn,
349
+ {
350
+ visible: (ve = a.legend) == null ? void 0 : ve.visible,
351
+ position: (Le = a.legend) == null ? void 0 : Le.position,
352
+ labels: {
353
+ color: ((Ae = (Ee = a.legend) == null ? void 0 : Ee.labels) == null ? void 0 : Ae.color) || void 0,
354
+ font: ((pe = (ke = a.legend) == null ? void 0 : ke.labels) == null ? void 0 : pe.font) || void 0
355
+ }
356
+ }
357
+ )
358
+ ))),
359
+ /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-property-pane k-pane k-pane-static" }, /* @__PURE__ */ e.createElement(qn, { selected: Wl, onSelect: Nl, animation: !1 }, /* @__PURE__ */ e.createElement(Y, { title: l.toLanguageString(xt, n[xt]) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
360
+ S,
361
+ {
362
+ style: { maxWidth: "576px" },
363
+ title: l.toLanguageString(Ct, n[Ct]),
364
+ expanded: _,
365
+ tabIndex: 0,
366
+ onAction: il
367
+ },
368
+ /* @__PURE__ */ e.createElement(L, null, _ && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper" }, /* @__PURE__ */ e.createElement(T, { selected: m === "bar" && X, onClick: Pl, icon: er }, l.toLanguageString(bt, n[bt])), /* @__PURE__ */ e.createElement(T, { selected: m === "bar" && G, onClick: Vl, icon: tr }, l.toLanguageString(St, n[St])), /* @__PURE__ */ e.createElement(T, { selected: m === "bar" && H, onClick: Bl, icon: ar }, l.toLanguageString(vt, n[vt])))))
369
+ ), /* @__PURE__ */ e.createElement(
370
+ S,
371
+ {
372
+ style: { maxWidth: "576px" },
373
+ title: l.toLanguageString(Lt, n[Lt]),
374
+ expanded: $,
375
+ tabIndex: 0,
376
+ onAction: sl
377
+ },
378
+ /* @__PURE__ */ e.createElement(L, null, $ && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper" }, /* @__PURE__ */ e.createElement(T, { selected: m === "pie", onClick: Gl, icon: lr }, l.toLanguageString(Et, n[Et])))))
379
+ ), /* @__PURE__ */ e.createElement(
380
+ S,
381
+ {
382
+ style: { maxWidth: "576px" },
383
+ title: l.toLanguageString(At, n[At]),
384
+ expanded: ee,
385
+ tabIndex: 0,
386
+ onAction: gl
387
+ },
388
+ /* @__PURE__ */ e.createElement(L, null, ee && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper" }, /* @__PURE__ */ e.createElement(T, { selected: m === "column" && X, onClick: Ml, icon: nr }, l.toLanguageString(kt, n[kt])), /* @__PURE__ */ e.createElement(T, { selected: m === "column" && G, onClick: Rl, icon: rr }, l.toLanguageString(pt, n[pt])), /* @__PURE__ */ e.createElement(T, { selected: m === "column" && H, onClick: Dl, icon: or }, l.toLanguageString(Ft, n[Ft])))))
389
+ ), /* @__PURE__ */ e.createElement(
390
+ S,
391
+ {
392
+ style: { maxWidth: "576px" },
393
+ title: l.toLanguageString(ft, n[ft]),
394
+ expanded: te,
395
+ tabIndex: 0,
396
+ onAction: ml
397
+ },
398
+ /* @__PURE__ */ e.createElement(L, null, te && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper" }, /* @__PURE__ */ e.createElement(T, { selected: m === "line" && X, onClick: Kl, icon: ir }, l.toLanguageString(zt, n[zt])), /* @__PURE__ */ e.createElement(T, { selected: m === "line" && G, onClick: Ol, icon: cr }, l.toLanguageString(yt, n[yt])), /* @__PURE__ */ e.createElement(T, { selected: m === "line" && H, onClick: Xl, icon: sr }, l.toLanguageString(Tt, n[Tt])))))
399
+ ), /* @__PURE__ */ e.createElement(
400
+ S,
401
+ {
402
+ style: { maxWidth: "576px" },
403
+ title: l.toLanguageString(Wt, n[Wt]),
404
+ expanded: ae,
405
+ tabIndex: 0,
406
+ onAction: xl
407
+ },
408
+ /* @__PURE__ */ e.createElement(L, null, ae && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper" }, /* @__PURE__ */ e.createElement(T, { selected: m === "scatter", onClick: Hl, icon: dr }, l.toLanguageString(It, n[It])))))
409
+ ))), /* @__PURE__ */ e.createElement(Y, { title: l.toLanguageString(Nt, n[Nt]) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
410
+ S,
411
+ {
412
+ style: { maxWidth: "576px" },
413
+ title: l.toLanguageString(wt, n[wt]),
414
+ expanded: le,
415
+ tabIndex: 0,
416
+ onAction: bl
417
+ },
418
+ /* @__PURE__ */ e.createElement(L, null, le && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(
419
+ I,
420
+ {
421
+ legend: m === "scatter" ? l.toLanguageString(Pt, n[Pt]) : l.toLanguageString(Vt, n[Vt])
422
+ },
423
+ /* @__PURE__ */ e.createElement(
424
+ B,
425
+ {
426
+ data: a.columns || [],
427
+ value: a.categoryField,
428
+ onChange: Yl,
429
+ ...h
430
+ }
431
+ )
432
+ ), _e(m) && /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Bt, n[Bt]) }, /* @__PURE__ */ e.createElement(
433
+ gr,
434
+ {
435
+ data: a.series,
436
+ initialData: a.initialSeries,
437
+ onChange: jl
438
+ }
439
+ )), m === "pie" && /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Mt, n[Mt]) }, /* @__PURE__ */ e.createElement(
440
+ B,
441
+ {
442
+ data: a.columns || [],
443
+ value: a.valueField || "",
444
+ ...h,
445
+ onChange: Ul
446
+ }
447
+ )))))
448
+ ))), /* @__PURE__ */ e.createElement(Y, { title: l.toLanguageString(Rt, n[Rt]) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
449
+ S,
450
+ {
451
+ style: { maxWidth: "576px" },
452
+ title: l.toLanguageString(Dt, n[Dt]),
453
+ expanded: ne,
454
+ tabIndex: 0,
455
+ onAction: vl
456
+ },
457
+ /* @__PURE__ */ e.createElement(L, null, ne && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Kt, n[Kt]) }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { labelText: l.toLanguageString(Ot, n[Ot]), editorId: "left" }, /* @__PURE__ */ e.createElement(
458
+ M,
459
+ {
460
+ id: "left",
461
+ value: W.left !== void 0 ? W.left : null,
462
+ onChange: ql,
463
+ placeholder: l.toLanguageString(w, n[w]),
464
+ min: 0,
465
+ max: 1e3,
466
+ step: 1,
467
+ fillMode: "outline"
468
+ }
469
+ )), /* @__PURE__ */ e.createElement(g, { labelText: l.toLanguageString(Xt, n[Xt]), editorId: "right" }, /* @__PURE__ */ e.createElement(
470
+ M,
471
+ {
472
+ id: "right",
473
+ value: W.right !== void 0 ? W.right : null,
474
+ onChange: Jl,
475
+ placeholder: l.toLanguageString(w, n[w]),
476
+ min: 0,
477
+ max: 1e3,
478
+ step: 1,
479
+ fillMode: "outline"
480
+ }
481
+ )), /* @__PURE__ */ e.createElement(g, { labelText: l.toLanguageString(Gt, n[Gt]), editorId: "top" }, /* @__PURE__ */ e.createElement(
482
+ M,
483
+ {
484
+ id: "top",
485
+ value: W.top !== void 0 ? W.top : null,
486
+ onChange: Ql,
487
+ placeholder: l.toLanguageString(w, n[w]),
488
+ min: 0,
489
+ max: 1e3,
490
+ step: 1,
491
+ fillMode: "outline"
492
+ }
493
+ )), /* @__PURE__ */ e.createElement(g, { labelText: l.toLanguageString(Ht, n[Ht]), editorId: "bottom" }, /* @__PURE__ */ e.createElement(
494
+ M,
495
+ {
496
+ id: "bottom",
497
+ value: W.bottom !== void 0 ? W.bottom : null,
498
+ onChange: Zl,
499
+ placeholder: l.toLanguageString(w, n[w]),
500
+ min: 0,
501
+ max: 1e3,
502
+ step: 1,
503
+ fillMode: "outline"
504
+ }
505
+ )))), /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Yt, n[Yt]) }, /* @__PURE__ */ e.createElement(g, { labelText: l.toLanguageString(jt, n[jt]), editorId: "background" }, /* @__PURE__ */ e.createElement(
506
+ N,
507
+ {
508
+ id: "background",
509
+ value: ((Fe = a.area) == null ? void 0 : Fe.background) || "",
510
+ onChange: _l,
511
+ view: "gradient",
512
+ fillMode: "outline"
513
+ }
514
+ ))))))
515
+ ), /* @__PURE__ */ e.createElement(
516
+ S,
517
+ {
518
+ style: { maxWidth: "576px" },
519
+ title: l.toLanguageString(Ut, n[Ut]),
520
+ expanded: re,
521
+ tabIndex: 0,
522
+ onAction: El
523
+ },
524
+ /* @__PURE__ */ e.createElement(L, null, re && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "apply-to-title", labelText: l.toLanguageString(qt, n[qt]) }, /* @__PURE__ */ e.createElement(
525
+ B,
526
+ {
527
+ id: "apply-to-title",
528
+ data: F,
529
+ textField: "text",
530
+ dataItemKey: "value",
531
+ value: F.find((t) => t.value === f.value),
532
+ onChange: en,
533
+ ...h
534
+ }
535
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "titleText", labelText: l.toLanguageString(Jt, n[Jt]) }, /* @__PURE__ */ e.createElement(
536
+ j,
537
+ {
538
+ id: "titleText",
539
+ placeholder: f.value === F[0].value ? F[0].text : F[1].text,
540
+ value: D.text,
541
+ onChange: tn,
542
+ onKeyDown: (t) => t.stopPropagation()
543
+ }
544
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "titleFont", labelText: l.toLanguageString(Qt, n[Qt]) }, /* @__PURE__ */ e.createElement(
545
+ E,
546
+ {
547
+ id: "titleFont",
548
+ data: A,
549
+ textField: "text",
550
+ dataItemKey: "value",
551
+ placeholder: l.toLanguageString(Zt, n[Zt]),
552
+ value: A.find((t) => t.value === k(D.font).name) || u,
553
+ onChange: an,
554
+ itemRender: V,
555
+ ...h
556
+ }
557
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "titleFontSize", labelText: l.toLanguageString(_t, n[_t]) }, /* @__PURE__ */ e.createElement(
558
+ E,
559
+ {
560
+ id: "titleFontSize",
561
+ data: p,
562
+ textField: "text",
563
+ dataItemKey: "value",
564
+ placeholder: l.toLanguageString($t, n[$t]),
565
+ value: p.find((t) => t.value === k(D.font).size) || u,
566
+ onChange: ln,
567
+ itemRender: V,
568
+ ...h
569
+ }
570
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "titleColor", labelText: l.toLanguageString(ea, n[ea]) }, /* @__PURE__ */ e.createElement(
571
+ N,
572
+ {
573
+ id: "titleColor",
574
+ value: D.color || "",
575
+ onChange: nn,
576
+ view: "gradient",
577
+ fillMode: "outline"
578
+ }
579
+ ))))))
580
+ ), /* @__PURE__ */ e.createElement(
581
+ S,
582
+ {
583
+ style: { maxWidth: "576px" },
584
+ title: l.toLanguageString(ta, n[ta]),
585
+ expanded: oe,
586
+ tabIndex: 0,
587
+ onAction: kl
588
+ },
589
+ /* @__PURE__ */ e.createElement(L, null, oe && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(g, { editorId: "apply-to-series", labelText: l.toLanguageString(aa, n[aa]) }, /* @__PURE__ */ e.createElement(
590
+ B,
591
+ {
592
+ id: "apply-to-series",
593
+ data: a.series,
594
+ textField: "name",
595
+ dataItemKey: "name",
596
+ defaultItem: K,
597
+ disabled: !_e(m),
598
+ value: a.series.find((t) => t.name === C) || K,
599
+ onChange: wl,
600
+ ...h
601
+ }
602
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "seriesColor", labelText: l.toLanguageString(la, n[la]) }, /* @__PURE__ */ e.createElement(
603
+ N,
604
+ {
605
+ id: "seriesColor",
606
+ value: C ? (fe = a.series.find((t) => t.name === C)) == null ? void 0 : fe.color : "",
607
+ onChange: rn,
608
+ disabled: !C,
609
+ view: "gradient",
610
+ fillMode: "outline"
611
+ }
612
+ )), /* @__PURE__ */ e.createElement(g, null, /* @__PURE__ */ e.createElement(
613
+ Ze,
614
+ {
615
+ label: l.toLanguageString(na, n[na]),
616
+ checked: C ? (ye = (ze = a.series.find((t) => t.name === C)) == null ? void 0 : ze.labels) == null ? void 0 : ye.visible : a.series.every((t) => {
617
+ var r;
618
+ return (r = t.labels) == null ? void 0 : r.visible;
619
+ }),
620
+ onChange: on
621
+ }
622
+ )))))
623
+ ), /* @__PURE__ */ e.createElement(
624
+ S,
625
+ {
626
+ style: { maxWidth: "576px" },
627
+ title: l.toLanguageString(ra, n[ra]),
628
+ expanded: ie,
629
+ tabIndex: 0,
630
+ onAction: Fl
631
+ },
632
+ /* @__PURE__ */ e.createElement(L, null, ie && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(Ja, { editorId: "show-legend" }, l.toLanguageString(oa, n[oa])), /* @__PURE__ */ e.createElement(
633
+ ur,
634
+ {
635
+ id: "show-legend",
636
+ checked: (Te = a.legend) == null ? void 0 : Te.visible,
637
+ onChange: cn
638
+ }
639
+ ), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "legendLabelsFont", labelText: l.toLanguageString(ia, n[ia]) }, /* @__PURE__ */ e.createElement(
640
+ E,
641
+ {
642
+ id: "legendLabelsFont",
643
+ data: A,
644
+ textField: "text",
645
+ dataItemKey: "value",
646
+ placeholder: l.toLanguageString(ca, n[ca]),
647
+ value: A.find((t) => {
648
+ var r, d, x;
649
+ return t.value === ((x = k(((d = (r = a.legend) == null ? void 0 : r.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : x.name);
650
+ }) || u,
651
+ onChange: dn,
652
+ itemRender: V,
653
+ disabled: ((We = a.legend) == null ? void 0 : We.visible) === !1,
654
+ ...h
655
+ }
656
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "legendLabelsSize", labelText: l.toLanguageString(sa, n[sa]) }, /* @__PURE__ */ e.createElement(
657
+ E,
658
+ {
659
+ id: "legendLabelsSize",
660
+ data: p,
661
+ textField: "text",
662
+ dataItemKey: "value",
663
+ placeholder: l.toLanguageString(da, n[da]),
664
+ value: p.find((t) => {
665
+ var r, d, x;
666
+ return t.value === ((x = k(((d = (r = a.legend) == null ? void 0 : r.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : x.size);
667
+ }) || u,
668
+ onChange: sn,
669
+ disabled: ((Ie = a.legend) == null ? void 0 : Ie.visible) === !1,
670
+ ...h
671
+ }
672
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "legendLabelsColor", labelText: l.toLanguageString(ga, n[ga]) }, /* @__PURE__ */ e.createElement(
673
+ N,
674
+ {
675
+ id: "legendLabelsColor",
676
+ value: ((we = (Ne = a.legend) == null ? void 0 : Ne.labels) == null ? void 0 : we.color) || "",
677
+ onChange: gn,
678
+ disabled: ((Pe = a.legend) == null ? void 0 : Pe.visible) === !1,
679
+ view: "gradient",
680
+ fillMode: "outline"
681
+ }
682
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "legendPosition", labelText: l.toLanguageString(ua, n[ua]) }, /* @__PURE__ */ e.createElement(
683
+ B,
684
+ {
685
+ id: "legendPosition",
686
+ data: J,
687
+ textField: "text",
688
+ dataItemKey: "value",
689
+ value: J.find((t) => {
690
+ var r;
691
+ return t.value === ((r = a.legend) == null ? void 0 : r.position);
692
+ }),
693
+ onChange: un,
694
+ disabled: ((Ve = a.legend) == null ? void 0 : Ve.visible) === !1,
695
+ ...h
696
+ }
697
+ ))))))
698
+ ), m !== "pie" && /* @__PURE__ */ e.createElement(
699
+ S,
700
+ {
701
+ style: { maxWidth: "576px" },
702
+ title: m === "scatter" ? l.toLanguageString(ma, n[ma]) : l.toLanguageString(ha, n[ha]),
703
+ expanded: ce,
704
+ tabIndex: 0,
705
+ onAction: zl
706
+ },
707
+ /* @__PURE__ */ e.createElement(L, null, ce && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(xa, n[xa]) }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
708
+ j,
709
+ {
710
+ placeholder: l.toLanguageString(Ca, n[Ca]),
711
+ value: ((Be = a.categoryAxis[0].title) == null ? void 0 : Be.text) || "",
712
+ onChange: mn,
713
+ onKeyDown: (t) => t.stopPropagation()
714
+ }
715
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "categoryAxisTitleFont", labelText: l.toLanguageString(ba, n[ba]) }, /* @__PURE__ */ e.createElement(
716
+ E,
717
+ {
718
+ id: "categoryAxisTitleFont",
719
+ data: A,
720
+ textField: "text",
721
+ dataItemKey: "value",
722
+ itemRender: V,
723
+ placeholder: l.toLanguageString(Sa, n[Sa]),
724
+ value: A.find((t) => {
725
+ var r, d;
726
+ return t.value === ((d = k(((r = a.categoryAxis[0].title) == null ? void 0 : r.font) || "")) == null ? void 0 : d.name);
727
+ }) || u,
728
+ onChange: xn,
729
+ ...h
730
+ }
731
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "categoryAxisTitleFontSize", labelText: l.toLanguageString(va, n[va]) }, /* @__PURE__ */ e.createElement(
732
+ E,
733
+ {
734
+ id: "categoryAxisTitleFontSize",
735
+ data: p,
736
+ textField: "text",
737
+ dataItemKey: "value",
738
+ placeholder: l.toLanguageString(La, n[La]),
739
+ value: p.find((t) => {
740
+ var r, d;
741
+ return t.value === ((d = k(((r = a.categoryAxis[0].title) == null ? void 0 : r.font) || "")) == null ? void 0 : d.size);
742
+ }) || u,
743
+ onChange: hn,
744
+ ...h
745
+ }
746
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "categoryAxisTitleColor", labelText: l.toLanguageString(Ea, n[Ea]) }, /* @__PURE__ */ e.createElement(
747
+ N,
748
+ {
749
+ id: "categoryAxisTitleColor",
750
+ view: "gradient",
751
+ value: ((Me = a.categoryAxis[0].title) == null ? void 0 : Me.color) || "",
752
+ onChange: Cn,
753
+ fillMode: "outline"
754
+ }
755
+ )))), /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Aa, n[Aa]) }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "categoryAxisLabelsFont", labelText: l.toLanguageString(ka, n[ka]) }, /* @__PURE__ */ e.createElement(
756
+ E,
757
+ {
758
+ id: "categoryAxisLabelsFont",
759
+ data: A,
760
+ textField: "text",
761
+ dataItemKey: "value",
762
+ placeholder: l.toLanguageString(pa, n[pa]),
763
+ value: A.find((t) => {
764
+ var r, d;
765
+ return t.value === ((d = k(((r = a.categoryAxis[0].labels) == null ? void 0 : r.font) || "")) == null ? void 0 : d.name);
766
+ }) || u,
767
+ onChange: Sn,
768
+ itemRender: V,
769
+ ...h
770
+ }
771
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "categoryAxisLabelsFontSize", labelText: l.toLanguageString(Fa, n[Fa]) }, /* @__PURE__ */ e.createElement(
772
+ E,
773
+ {
774
+ id: "categoryAxisLabelsFontSize",
775
+ data: p,
776
+ textField: "text",
777
+ dataItemKey: "value",
778
+ placeholder: l.toLanguageString(fa, n[fa]),
779
+ value: p.find((t) => {
780
+ var r, d;
781
+ return t.value === ((d = k(((r = a.categoryAxis[0].labels) == null ? void 0 : r.font) || "")) == null ? void 0 : d.size);
782
+ }) || u,
783
+ onChange: bn,
784
+ ...h
785
+ }
786
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "categoryAxisLabelsColor", labelText: l.toLanguageString(za, n[za]) }, /* @__PURE__ */ e.createElement(
787
+ N,
788
+ {
789
+ id: "categoryAxisLabelsColor",
790
+ view: "gradient",
791
+ value: ((Re = a.categoryAxis[0].labels) == null ? void 0 : Re.color) || "",
792
+ onChange: vn,
793
+ fillMode: "outline"
794
+ }
795
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "categoryAxisLabelsRotation", labelText: l.toLanguageString(ya, n[ya]) }, /* @__PURE__ */ e.createElement(
796
+ M,
797
+ {
798
+ id: "categoryAxisLabelsRotation",
799
+ value: typeof ((De = a.categoryAxis[0].labels) == null ? void 0 : De.rotation) == "number" ? (Ke = a.categoryAxis[0].labels) == null ? void 0 : Ke.rotation : null,
800
+ placeholder: l.toLanguageString(Ta, n[Ta]),
801
+ onChange: Ln,
802
+ fillMode: "outline",
803
+ min: -360,
804
+ max: 360,
805
+ step: 1
806
+ }
807
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
808
+ Ze,
809
+ {
810
+ label: l.toLanguageString(Wa, n[Wa]),
811
+ checked: a.categoryAxis[0].reverse || !1,
812
+ onChange: En
813
+ }
814
+ )))))))
815
+ ), m !== "pie" && /* @__PURE__ */ e.createElement(
816
+ S,
817
+ {
818
+ style: { maxWidth: "576px" },
819
+ title: m === "scatter" ? l.toLanguageString(Ia, n[Ia]) : l.toLanguageString(Na, n[Na]),
820
+ expanded: se,
821
+ tabIndex: 0,
822
+ onAction: Tl
823
+ },
824
+ /* @__PURE__ */ e.createElement(L, null, se && /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(wa, n[wa]) }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
825
+ j,
826
+ {
827
+ placeholder: l.toLanguageString(Pa, n[Pa]),
828
+ value: ((Xe = (Oe = a.valueAxis[0]) == null ? void 0 : Oe.title) == null ? void 0 : Xe.text) || "",
829
+ onChange: An,
830
+ onKeyDown: (t) => t.stopPropagation()
831
+ }
832
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "valueAxisTitleFont", labelText: l.toLanguageString(Va, n[Va]) }, /* @__PURE__ */ e.createElement(
833
+ E,
834
+ {
835
+ id: "valueAxisTitleFont",
836
+ data: A,
837
+ textField: "text",
838
+ dataItemKey: "value",
839
+ itemRender: V,
840
+ placeholder: l.toLanguageString(Ba, n[Ba]),
841
+ value: A.find((t) => {
842
+ var r, d, x;
843
+ return t.value === ((x = k(((d = (r = a.valueAxis[0]) == null ? void 0 : r.title) == null ? void 0 : d.font) || "")) == null ? void 0 : x.name);
844
+ }) || u,
845
+ onChange: pn,
846
+ ...h
847
+ }
848
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "valueAxisTitleFontSize", labelText: l.toLanguageString(Ma, n[Ma]) }, /* @__PURE__ */ e.createElement(
849
+ E,
850
+ {
851
+ id: "valueAxisTitleFontSize",
852
+ data: p,
853
+ textField: "text",
854
+ dataItemKey: "value",
855
+ placeholder: l.toLanguageString(Ra, n[Ra]),
856
+ value: p.find((t) => {
857
+ var r, d, x;
858
+ return t.value === ((x = k(((d = (r = a.valueAxis[0]) == null ? void 0 : r.title) == null ? void 0 : d.font) || "")) == null ? void 0 : x.size);
859
+ }) || u,
860
+ onChange: kn,
861
+ ...h
862
+ }
863
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "valueAxisTitleColor", labelText: l.toLanguageString(Da, n[Da]) }, /* @__PURE__ */ e.createElement(
864
+ N,
865
+ {
866
+ id: "valueAxisTitleColor",
867
+ view: "gradient",
868
+ value: ((He = (Ge = a.valueAxis[0]) == null ? void 0 : Ge.title) == null ? void 0 : He.color) || "",
869
+ onChange: Fn,
870
+ fillMode: "outline"
871
+ }
872
+ )))), /* @__PURE__ */ e.createElement(I, { legend: l.toLanguageString(Ka, n[Ka]) }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "valueAxisLabelsFormat", labelText: l.toLanguageString(Oa, n[Oa]) }, /* @__PURE__ */ e.createElement(
873
+ B,
874
+ {
875
+ id: "valueAxisLabelsFormat",
876
+ data: Z,
877
+ textField: "text",
878
+ dataItemKey: "value",
879
+ defaultItem: Q,
880
+ value: Z.find((t) => {
881
+ var r, d;
882
+ return t.value === ((d = (r = a.valueAxis[0]) == null ? void 0 : r.labels) == null ? void 0 : d.format);
883
+ }) || Q,
884
+ onChange: Wn,
885
+ ...h
886
+ }
887
+ )), /* @__PURE__ */ e.createElement(g, { className: "k-col-span-2", editorId: "valueAxisLabelsFont", labelText: l.toLanguageString(Xa, n[Xa]) }, /* @__PURE__ */ e.createElement(
888
+ E,
889
+ {
890
+ id: "valueAxisLabelsFont",
891
+ data: A,
892
+ textField: "text",
893
+ dataItemKey: "value",
894
+ placeholder: l.toLanguageString(Ga, n[Ga]),
895
+ value: A.find((t) => {
896
+ var r, d, x;
897
+ return t.value === ((x = k(((d = (r = a.valueAxis[0]) == null ? void 0 : r.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : x.name);
898
+ }) || u,
899
+ onChange: zn,
900
+ itemRender: V,
901
+ ...h
902
+ }
903
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "valueAxisLabelsFontSize", labelText: l.toLanguageString(Ha, n[Ha]) }, /* @__PURE__ */ e.createElement(
904
+ E,
905
+ {
906
+ id: "valueAxisLabelsFontSize",
907
+ data: p,
908
+ textField: "text",
909
+ dataItemKey: "value",
910
+ placeholder: l.toLanguageString(Ya, n[Ya]),
911
+ value: p.find((t) => {
912
+ var r, d, x;
913
+ return t.value === ((x = k(((d = (r = a.valueAxis[0]) == null ? void 0 : r.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : x.size);
914
+ }) || u,
915
+ onChange: fn,
916
+ ...h
917
+ }
918
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "valueAxisLabelsColor", labelText: l.toLanguageString(ja, n[ja]) }, /* @__PURE__ */ e.createElement(
919
+ N,
920
+ {
921
+ id: "valueAxisLabelsColor",
922
+ view: "gradient",
923
+ value: ((je = (Ye = a.valueAxis[0]) == null ? void 0 : Ye.labels) == null ? void 0 : je.color) || "",
924
+ onChange: yn,
925
+ fillMode: "outline"
926
+ }
927
+ )), /* @__PURE__ */ e.createElement(g, { editorId: "valueAxisLabelsRotation", labelText: l.toLanguageString(Ua, n[Ua]) }, /* @__PURE__ */ e.createElement(
928
+ M,
929
+ {
930
+ id: "valueAxisLabelsRotation",
931
+ value: typeof ((qe = (Ue = a.valueAxis[0]) == null ? void 0 : Ue.labels) == null ? void 0 : qe.rotation) == "number" ? (Qe = (Je = a.valueAxis[0]) == null ? void 0 : Je.labels) == null ? void 0 : Qe.rotation : null,
932
+ placeholder: l.toLanguageString(qa, n[qa]),
933
+ onChange: Tn,
934
+ fillMode: "outline",
935
+ min: -360,
936
+ max: 360,
937
+ step: 1
938
+ }
939
+ )))))))
940
+ )))))
941
+ )
942
+ );
943
+ };
944
+ export {
945
+ Dr as ChartWizard
946
+ };