@hybridcore/ui 1.6.22 → 1.6.24

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.
@@ -1,45 +1,211 @@
1
- import { R as T, A as Y } from "../../../AnimatedTheme-ktdO3Bel.js";
2
- import { useThemeProps as R, useTheme as E } from "@mui/material";
3
- import I from "lodash";
4
- import { useId as G, useRef as O, useEffect as P } from "react";
5
- import { humanizeLabel as V } from "../_common/format.js";
1
+ import { R as O, A as L } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as X, useTheme as S } from "@mui/material";
3
+ import j from "lodash";
4
+ import { useId as E, useRef as Y, useEffect as z } from "react";
5
+ import { humanizeLabel as I } from "../_common/format.js";
6
6
  import { attachCombinedAxisTooltip as q } from "../_common/tooltip.js";
7
- import { colorSetFromPalette as z, applyDateAxisLabelFormat as B, applyValueFormat as H } from "../_common/utils.js";
8
- import { c as i } from "../../../Entity-BJCuhdq_.js";
9
- import { X as N, V as U } from "../../../AxisRenderer-BCQoUJw6.js";
10
- import { X as W } from "../../../XYCursor-CVUSpqb9.js";
11
- import { A as F, a as Z } from "../../../AxisRendererY-AXWvGU6r.js";
12
- import { C as _ } from "../../../CategoryAxis-B6NqW8qd.js";
13
- import { L as $ } from "../../../LineSeries-D_IL2qGF.js";
14
- import { D as j, G as J } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
- import { S as K } from "../../../Scrollbar-CTI7_8Qw.js";
16
- import { D as M } from "../../../DateAxis-DEXKps1S.js";
17
- const xe = (X) => {
18
- const f = R({ props: X, name: "HCLogaritmicScale" }), {
19
- dimensions: t,
20
- values: s,
21
- data: p,
22
- initDelay: k = 0,
23
- baseInterval: h,
24
- colors: A,
25
- skipEmptyDates: x = !1,
26
- sx: L,
27
- ...S
28
- } = f, a = E(), g = `hc-logaritmic-scale-${G().replace(/:/g, "")}`, c = O(null);
29
- let n = null;
30
- t.length < 1 ? n = "LogaritmicScale requires at least 1 dimension" : s.length < 1 && (n = "LogaritmicScale requires at least 1 value"), P(() => {
31
- if (n) return;
32
- let d;
33
- return d = setTimeout(() => {
34
- var w, v, D, b;
35
- const e = T.new(g);
36
- c.current = e, e.setThemes([Y.new(e)]), e.interfaceColors.setAll({
37
- text: i(a.palette.text.primary),
38
- grid: i(a.palette.divider),
39
- stroke: i(a.palette.divider)
7
+ import { colorSetFromPalette as H, applyDateAxisLabelFormat as U, applyValueFormat as W } from "../_common/utils.js";
8
+ import { m as R, q as Z, f as x, c as f } from "../../../Entity-BJCuhdq_.js";
9
+ import { X as $, V as J } from "../../../AxisRenderer-BCQoUJw6.js";
10
+ import { X as K } from "../../../XYCursor-CVUSpqb9.js";
11
+ import { A as N, a as Q } from "../../../AxisRendererY-AXWvGU6r.js";
12
+ import { C as tt } from "../../../CategoryAxis-B6NqW8qd.js";
13
+ import { L as et } from "../../../LineSeries-D_IL2qGF.js";
14
+ import { D as st, G as it } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
+ import { R as V } from "../../../RoundedRectangle-BKLX1LKM.js";
16
+ import { C, G as rt } from "../../../Tooltip-vyZRZWih.js";
17
+ import { B as at } from "../../../Button-BLY4PVJC.js";
18
+ import { D as nt } from "../../../DateAxis-DEXKps1S.js";
19
+ class D extends C {
20
+ constructor() {
21
+ super(...arguments), Object.defineProperty(this, "thumb", {
22
+ enumerable: !0,
23
+ configurable: !0,
24
+ writable: !0,
25
+ value: this._makeThumb()
26
+ }), Object.defineProperty(this, "startGrip", {
27
+ enumerable: !0,
28
+ configurable: !0,
29
+ writable: !0,
30
+ value: this._makeButton()
31
+ }), Object.defineProperty(this, "endGrip", {
32
+ enumerable: !0,
33
+ configurable: !0,
34
+ writable: !0,
35
+ value: this._makeButton()
36
+ }), Object.defineProperty(this, "_thumbBusy", {
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0,
40
+ value: !1
41
+ }), Object.defineProperty(this, "_startDown", {
42
+ enumerable: !0,
43
+ configurable: !0,
44
+ writable: !0,
45
+ value: !1
46
+ }), Object.defineProperty(this, "_endDown", {
47
+ enumerable: !0,
48
+ configurable: !0,
49
+ writable: !0,
50
+ value: !1
51
+ }), Object.defineProperty(this, "_thumbDown", {
52
+ enumerable: !0,
53
+ configurable: !0,
54
+ writable: !0,
55
+ value: !1
56
+ }), Object.defineProperty(this, "_gripDown", {
57
+ enumerable: !0,
58
+ configurable: !0,
59
+ writable: !0,
60
+ value: void 0
61
+ });
62
+ }
63
+ _addOrientationClass() {
64
+ this._settings.themeTags = R(this._settings.themeTags, ["scrollbar", this._settings.orientation]), this._settings.background || (this._settings.background = V.new(this._root, {
65
+ themeTags: R(this._settings.themeTags, ["main", "background"])
66
+ }));
67
+ }
68
+ _makeButton() {
69
+ return this.children.push(at.new(this._root, {
70
+ themeTags: ["resize", "button", this.get("orientation")],
71
+ icon: rt.new(this._root, {
72
+ themeTags: ["icon"]
73
+ })
74
+ }));
75
+ }
76
+ _makeThumb() {
77
+ return this.children.push(V.new(this._root, {
78
+ themeTags: ["thumb", this.get("orientation")]
79
+ }));
80
+ }
81
+ _handleAnimation(t) {
82
+ t && this._disposers.push(t.events.on("stopped", () => {
83
+ this.setPrivateRaw("isBusy", !1), this._thumbBusy = !1;
84
+ }));
85
+ }
86
+ _afterNew() {
87
+ this._addOrientationClass(), super._afterNew();
88
+ const t = this.startGrip, e = this.endGrip, i = this.thumb, o = this.get("background");
89
+ o && this._disposers.push(o.events.on("click", (s) => {
90
+ this.setPrivateRaw("isBusy", !0);
91
+ const n = this._display.toLocal(s.point), h = this.width(), l = this.height(), d = this.get("orientation");
92
+ let u;
93
+ d == "vertical" ? u = (n.y - i.height() / 2) / l : u = (n.x - i.width() / 2) / h;
94
+ let a, p;
95
+ d == "vertical" ? (a = u * l, p = "y") : (a = u * h, p = "x");
96
+ const m = this.get("animationDuration", 0);
97
+ m > 0 ? (this._thumbBusy = !0, this._handleAnimation(this.thumb.animate({ key: p, to: a, duration: m, easing: this.get("animationEasing") }))) : (this.thumb.set(p, a), this._root.events.once("frameended", () => {
98
+ this.setPrivateRaw("isBusy", !1);
99
+ }));
100
+ })), this._disposers.push(i.events.on("dblclick", (s) => {
101
+ if (!Z(s.originalEvent, this))
102
+ return;
103
+ const n = this.get("animationDuration", 0), h = this.get("animationEasing");
104
+ this.animate({ key: "start", to: 0, duration: n, easing: h }), this.animate({ key: "end", to: 1, duration: n, easing: h });
105
+ })), this._disposers.push(t.events.on("pointerdown", () => {
106
+ this.setPrivateRaw("isBusy", !0), this._startDown = !0, this._gripDown = "start";
107
+ })), this._disposers.push(e.events.on("pointerdown", () => {
108
+ this.setPrivateRaw("isBusy", !0), this._endDown = !0, this._gripDown = "end";
109
+ })), this._disposers.push(i.events.on("pointerdown", () => {
110
+ this.setPrivateRaw("isBusy", !0), this._thumbDown = !0, this._gripDown = void 0;
111
+ })), this._disposers.push(t.events.on("globalpointerup", () => {
112
+ this._startDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._startDown = !1;
113
+ })), this._disposers.push(e.events.on("globalpointerup", () => {
114
+ this._endDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._endDown = !1;
115
+ })), this._disposers.push(i.events.on("globalpointerup", () => {
116
+ this._thumbDown && (this.setPrivateRaw("isBusy", !1), this._released()), this._thumbDown = !1;
117
+ })), this._disposers.push(t.on("x", () => {
118
+ this._updateThumb();
119
+ })), this._disposers.push(e.on("x", () => {
120
+ this._updateThumb();
121
+ })), this._disposers.push(t.on("y", () => {
122
+ this._updateThumb();
123
+ })), this._disposers.push(e.on("y", () => {
124
+ this._updateThumb();
125
+ })), this._disposers.push(i.events.on("positionchanged", () => {
126
+ this._updateGripsByThumb();
127
+ })), this.get("orientation") == "vertical" ? (t.set("x", 0), e.set("x", 0), this._disposers.push(i.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height() - i.height()), 0))), this._disposers.push(i.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(e.adapters.add("x", (s) => this.width() / 2)), this._disposers.push(t.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0))), this._disposers.push(e.adapters.add("y", (s) => Math.max(Math.min(Number(s), this.height()), 0)))) : (t.set("y", 0), e.set("y", 0), this._disposers.push(i.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width() - i.width()), 0))), this._disposers.push(i.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(e.adapters.add("y", (s) => this.height() / 2)), this._disposers.push(t.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))), this._disposers.push(e.adapters.add("x", (s) => Math.max(Math.min(Number(s), this.width()), 0))));
128
+ }
129
+ _updateChildren() {
130
+ super._updateChildren(), (this.isDirty("end") || this.isDirty("start") || this._sizeDirty) && this.updateGrips();
131
+ }
132
+ _changed() {
133
+ if (super._changed(), this.isDirty("start") || this.isDirty("end")) {
134
+ const t = "rangechanged";
135
+ this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this, start: this.get("start", 0), end: this.get("end", 1), grip: this._gripDown });
136
+ }
137
+ }
138
+ _released() {
139
+ const t = "released";
140
+ this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this });
141
+ }
142
+ /**
143
+ * @ignore
144
+ */
145
+ updateGrips() {
146
+ const t = this.startGrip, e = this.endGrip, i = this.get("orientation"), o = this.height(), s = this.width();
147
+ i == "vertical" ? (t.set("y", o * this.get("start", 0)), e.set("y", o * this.get("end", 1))) : (t.set("x", s * this.get("start", 0)), e.set("x", s * this.get("end", 1)));
148
+ const n = this.getPrivate("positionTextFunction"), h = Math.round(this.get("start", 0) * 100), l = Math.round(this.get("end", 0) * 100);
149
+ let d, u;
150
+ n ? (d = n.call(this, this.get("start", 0)), u = n.call(this, this.get("end", 0))) : (d = h + "%", u = l + "%"), t.set("ariaLabel", this._t("From %1", void 0, d)), t.set("ariaValueNow", "" + h), t.set("ariaValueText", h + "%"), t.set("ariaValueMin", "0"), t.set("ariaValueMax", "100"), e.set("ariaLabel", this._t("To %1", void 0, u)), e.set("ariaValueNow", "" + l), e.set("ariaValueText", l + "%"), e.set("ariaValueMin", "0"), e.set("ariaValueMax", "100");
151
+ }
152
+ _updateThumb() {
153
+ const t = this.thumb, e = this.startGrip, i = this.endGrip, o = this.height(), s = this.width();
154
+ let n = e.x(), h = i.x(), l = e.y(), d = i.y(), u = 0, a = 1;
155
+ this.get("orientation") == "vertical" ? x(l) && x(d) && (!this._thumbBusy && !t.isDragging() && (t.set("height", d - l), t.set("y", l)), u = l / o, a = d / o) : x(n) && x(h) && (!this._thumbBusy && !t.isDragging() && (t.set("width", h - n), t.set("x", n)), u = n / s, a = h / s), this.getPrivate("isBusy") && (this.get("start") != u || this.get("end") != a) && (this.set("start", u), this.set("end", a));
156
+ const p = this.getPrivate("positionTextFunction"), m = Math.round(this.get("start", 0) * 100), _ = Math.round(this.get("end", 0) * 100);
157
+ let g, w;
158
+ p ? (g = p.call(this, this.get("start", 0)), w = p.call(this, this.get("end", 0))) : (g = m + "%", w = _ + "%"), t.set("ariaLabel", this._t("From %1 to %2", void 0, g, w)), t.set("ariaValueNow", "" + m), t.set("ariaValueText", m + "%");
159
+ }
160
+ _updateGripsByThumb() {
161
+ const t = this.thumb, e = this.startGrip, i = this.endGrip;
162
+ if (this.get("orientation") == "vertical") {
163
+ const o = t.height();
164
+ e.set("y", t.y()), i.set("y", t.y() + o);
165
+ } else {
166
+ const o = t.width();
167
+ e.set("x", t.x()), i.set("x", t.x() + o);
168
+ }
169
+ }
170
+ }
171
+ Object.defineProperty(D, "className", {
172
+ enumerable: !0,
173
+ configurable: !0,
174
+ writable: !0,
175
+ value: "Scrollbar"
176
+ });
177
+ Object.defineProperty(D, "classNames", {
178
+ enumerable: !0,
179
+ configurable: !0,
180
+ writable: !0,
181
+ value: C.classNames.concat([D.className])
182
+ });
183
+ const Gt = (G) => {
184
+ const t = X({ props: G, name: "HCLogaritmicScale" }), {
185
+ dimensions: e,
186
+ values: i,
187
+ data: o,
188
+ initDelay: s = 0,
189
+ baseInterval: n,
190
+ colors: h,
191
+ skipEmptyDates: l = !1,
192
+ sx: d,
193
+ ...u
194
+ } = t, a = S(), m = `hc-logaritmic-scale-${E().replace(/:/g, "")}`, _ = Y(null);
195
+ let g = null;
196
+ e.length < 1 ? g = "LogaritmicScale requires at least 1 dimension" : i.length < 1 && (g = "LogaritmicScale requires at least 1 value"), z(() => {
197
+ if (g) return;
198
+ let T;
199
+ return T = setTimeout(() => {
200
+ var P, B, M, F;
201
+ const r = O.new(m);
202
+ _.current = r, r.setThemes([L.new(r)]), r.interfaceColors.setAll({
203
+ text: f(a.palette.text.primary),
204
+ grid: f(a.palette.divider),
205
+ stroke: f(a.palette.divider)
40
206
  });
41
- const r = e.container.children.push(
42
- N.new(e, {
207
+ const c = r.container.children.push(
208
+ $.new(r, {
43
209
  panX: !0,
44
210
  panY: !0,
45
211
  wheelX: "none",
@@ -48,81 +214,81 @@ const xe = (X) => {
48
214
  pinchZoomX: !0
49
215
  })
50
216
  );
51
- r.set("colors", z(e, A)), r.set(
217
+ c.set("colors", H(r, h)), c.set(
52
218
  "cursor",
53
- W.new(e, { behavior: "none" })
219
+ K.new(r, { behavior: "none" })
54
220
  ).lineY.set("visible", !1);
55
- let o, u = p;
56
- if (t[0].type === "date") {
57
- u = I.orderBy(p, [t[0].value]);
58
- const l = x ? J : M;
59
- o = r.xAxes.push(
60
- l.new(e, {
221
+ let b, A = o;
222
+ if (e[0].type === "date") {
223
+ A = j.orderBy(o, [e[0].value]);
224
+ const y = l ? it : nt;
225
+ b = c.xAxes.push(
226
+ y.new(r, {
61
227
  maxDeviation: 0.1,
62
228
  groupData: !1,
63
- baseInterval: h || { timeUnit: "day", count: 1 },
64
- renderer: F.new(e, {})
229
+ baseInterval: n || { timeUnit: "day", count: 1 },
230
+ renderer: N.new(r, {})
65
231
  })
66
- ), (w = o.get("renderer")) == null || w.grid.template.setAll({
67
- stroke: i(a.palette.divider),
232
+ ), (P = b.get("renderer")) == null || P.grid.template.setAll({
233
+ stroke: f(a.palette.divider),
68
234
  strokeOpacity: 1
69
- }), B(o, t[0]);
235
+ }), U(b, e[0]);
70
236
  } else
71
- o = r.xAxes.push(
72
- _.new(e, {
73
- categoryField: t[0].value,
74
- renderer: F.new(e, {})
237
+ b = c.xAxes.push(
238
+ tt.new(r, {
239
+ categoryField: e[0].value,
240
+ renderer: N.new(r, {})
75
241
  })
76
- ), e.numberFormatter.setAll({
242
+ ), r.numberFormatter.setAll({
77
243
  numberFormat: "#",
78
244
  numericFields: ["valueX"]
79
- }), o.data.setAll(u), (v = o.get("renderer")) == null || v.grid.template.setAll({
80
- stroke: i(a.palette.divider),
245
+ }), b.data.setAll(A), (B = b.get("renderer")) == null || B.grid.template.setAll({
246
+ stroke: f(a.palette.divider),
81
247
  strokeOpacity: 1
82
248
  });
83
- const y = r.yAxes.push(
84
- U.new(e, {
249
+ const k = c.yAxes.push(
250
+ J.new(r, {
85
251
  logarithmic: !0,
86
- renderer: Z.new(e, { minorGridEnabled: !0 })
252
+ renderer: Q.new(r, { minorGridEnabled: !0 })
87
253
  })
88
254
  );
89
- (D = y.get("renderer")) == null || D.grid.template.setAll({
90
- stroke: i(a.palette.divider),
255
+ (M = k.get("renderer")) == null || M.grid.template.setAll({
256
+ stroke: f(a.palette.divider),
91
257
  strokeOpacity: 1
92
- }), s.forEach((l) => {
93
- const m = r.series.push(
94
- $.new(e, {
95
- name: l.label ?? V(l.name),
96
- xAxis: o,
97
- yAxis: y,
98
- valueYField: l.dataFieldName,
99
- ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
258
+ }), i.forEach((y) => {
259
+ const v = c.series.push(
260
+ et.new(r, {
261
+ name: y.label ?? I(y.name),
262
+ xAxis: b,
263
+ yAxis: k,
264
+ valueYField: y.dataFieldName,
265
+ ...e[0].type === "date" ? { valueXField: e[0].value } : { categoryXField: e[0].value }
100
266
  })
101
267
  );
102
- m.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (m.data.processor = j.new(e, {
268
+ v.strokes.template.setAll({ strokeWidth: 3 }), e[0].type === "date" && (v.data.processor = st.new(r, {
103
269
  dateFormat: "i",
104
- dateFields: [t[0].value]
105
- })), m.data.setAll(u), m.appear(1e3);
270
+ dateFields: [e[0].value]
271
+ })), v.data.setAll(A), v.appear(1e3);
106
272
  }), q({
107
- root: e,
108
- chart: r,
109
- xAxis: o,
273
+ root: r,
274
+ chart: c,
275
+ xAxis: b,
110
276
  theme: a,
111
- isDateAxis: t[0].type === "date",
112
- baseInterval: h,
277
+ isDateAxis: e[0].type === "date",
278
+ baseInterval: n,
113
279
  follow: !0
114
- }), r.set(
280
+ }), c.set(
115
281
  "scrollbarX",
116
- K.new(e, { orientation: "horizontal" })
117
- ), H(e, (b = s == null ? void 0 : s[0]) == null ? void 0 : b.format), r.appear(1e3, 100);
118
- }, k), () => {
119
- var e;
120
- d && clearTimeout(d), (e = c.current) == null || e.dispose(), c.current = null;
282
+ D.new(r, { orientation: "horizontal" })
283
+ ), W(r, (F = i == null ? void 0 : i[0]) == null ? void 0 : F.format), c.appear(1e3, 100);
284
+ }, s), () => {
285
+ var r;
286
+ T && clearTimeout(T), (r = _.current) == null || r.dispose(), _.current = null;
121
287
  };
122
- }, [p, t, s, a.palette.mode, A, x]);
123
- const C = { ...f };
124
- return { chartId: g, ownerState: C, sx: L, error: n, other: S };
288
+ }, [o, e, i, a.palette.mode, h, l]);
289
+ const w = { ...t };
290
+ return { chartId: m, ownerState: w, sx: d, error: g, other: u };
125
291
  };
126
292
  export {
127
- xe as useLogaritmicScaleLogic
293
+ Gt as useLogaritmicScaleLogic
128
294
  };
@@ -9,7 +9,7 @@ import "../../../conditional-wrapper/index.js";
9
9
  import "../../helpers.js";
10
10
  import "../../styled.js";
11
11
  import "../TopLabelWrapper.js";
12
- import { C as b } from "../../../../index-BtlzPygz.js";
12
+ import { C as b } from "../../../../index-BQ4_OA4b.js";
13
13
  export {
14
14
  b as CompositeList
15
15
  };
@@ -9,7 +9,7 @@ import "../../../geometry-picker/index.js";
9
9
  import "../../../phone-input/index.js";
10
10
  import "../../helpers.js";
11
11
  import "../../styled.js";
12
- import { V as d } from "../../../../index-BtlzPygz.js";
12
+ import { V as d } from "../../../../index-BQ4_OA4b.js";
13
13
  import "../composite-matrix/index.js";
14
14
  import "../TopLabelWrapper.js";
15
15
  export {
@@ -1,54 +1,56 @@
1
- import { jsx as s, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as v } from "react/jsx-runtime";
2
2
  import l from "lodash";
3
- import v from "react";
4
- import { VariablesContainer as x, FieldContainer as y } from "../../styled.js";
5
- import { V as C } from "../../../../index-BtlzPygz.js";
6
- const B = (d) => {
3
+ import x from "react";
4
+ import { VariablesContainer as y, FieldContainer as C } from "../../styled.js";
5
+ import { V as I } from "../../../../index-BQ4_OA4b.js";
6
+ const P = (d) => {
7
7
  const {
8
8
  template: n,
9
9
  value: i,
10
10
  mapboxAccessToken: u,
11
11
  variant: p = "outlined",
12
12
  labelPosition: c = "default",
13
- fieldOptions: e,
13
+ fieldOptions: r,
14
+ mode: m = "create",
14
15
  onChange: f
15
- } = d, m = v.useMemo(() => {
16
- const r = (n == null ? void 0 : n.properties.filter((o) => o.visible)) ?? [], t = l.orderBy(r, "id");
16
+ } = d, b = x.useMemo(() => {
17
+ const e = (n == null ? void 0 : n.properties.filter((o) => o.visible)) ?? [], t = l.orderBy(e, "id");
17
18
  return l.orderBy(
18
19
  t,
19
20
  (o) => {
20
21
  var a;
21
- return ((a = e == null ? void 0 : e[o.propertyId]) == null ? void 0 : a.order) ?? 0;
22
+ return ((a = r == null ? void 0 : r[o.propertyId]) == null ? void 0 : a.order) ?? 0;
22
23
  }
23
24
  );
24
- }, [n, e]), b = (r) => {
25
+ }, [n, r]), h = (e) => {
25
26
  f({
26
- target: { value: { ...i, ...r } }
27
+ target: { value: { ...i, ...e } }
27
28
  });
28
29
  };
29
- return n === void 0 ? null : /* @__PURE__ */ s(x, { children: m.filter((r) => {
30
+ return n === void 0 ? null : /* @__PURE__ */ s(y, { children: b.filter((e) => {
30
31
  var t;
31
- return e ? !((t = e[r.propertyId]) != null && t.hidden) : !0;
32
- }).map((r) => {
32
+ return r ? !((t = r[e.propertyId]) != null && t.hidden) : !0;
33
+ }).map((e) => {
33
34
  var o;
34
- const t = i ? i[r.propertyId] : "";
35
- return /* @__PURE__ */ h(y, { children: [
35
+ const t = i ? i[e.propertyId] : "";
36
+ return /* @__PURE__ */ v(C, { children: [
36
37
  /* @__PURE__ */ s(
37
- C,
38
+ I,
38
39
  {
39
- property: r,
40
+ property: e,
40
41
  value: t,
41
42
  mapboxAccessToken: u,
42
43
  variant: p,
43
44
  labelPosition: c,
44
- fieldOptions: e,
45
- onChange: b
45
+ fieldOptions: r,
46
+ mode: m,
47
+ onChange: h
46
48
  }
47
49
  ),
48
- e && ((o = e[r.propertyId]) == null ? void 0 : o.helperText)
49
- ] }, r.propertyId);
50
+ r && ((o = r[e.propertyId]) == null ? void 0 : o.helperText)
51
+ ] }, e.propertyId);
50
52
  }) });
51
53
  };
52
54
  export {
53
- B as Variables
55
+ P as Variables
54
56
  };